1"use strict";(globalThis.webpackChunkproductdeal_site=globalThis.webpackChunkproductdeal_site||[]).push([[610],{9373(e,s,o){o.d(s,{A:()=>n});o(5043);var t=o(477),r=o(2597),c=o(2960),a=o(3880),l=o(579);function n(e){let{children:s}=e;const{currentLanguage:o}=(0,t.o)(),{themeId:n,market:i}=(0,r.zn)(),d=(0,c._8)({themeId:n,market:i,locale:o});return(0,l.jsxs)("div",{className:"shop-cart-trust-block",children:[s,d?(0,l.jsx)(a.A,{size:"compact",className:"shop-cart-trust-block__platform"}):null]})}},9244(e,s,o){o.d(s,{A:()=>c});var t=o(5043),r=o(579);function c(e){let{candidates:s=[],src:o,srcSet:c,sizes:a,alt:l="",className:n,loading:i,decoding:d="async",placeholderClassName:h="shop-resilient-image__placeholder",placeholder:u}=e;const p=(0,t.useMemo)(()=>function(e,s){const o=new Set,t=[];for(const r of[...Array.isArray(e)?e:[],s]){const e=String(r||"").trim();e&&!o.has(e)&&(o.add(e),t.push(e))}return t}(s,o),[s,o]),[m,k]=(0,t.useState)(()=>new Set),v=p.filter(e=>!m.has(e))[0]||null;return v?(0,r.jsx)("img",{src:v,srcSet:c,sizes:a,alt:l,className:n,loading:i,decoding:d,onError:()=>{k(e=>{if(e.has(v))return e;const s=new Set(e);return s.add(v),s})}}):u||(0,r.jsx)("span",{className:h,"aria-hidden":!0,children:(0,r.jsx)("svg",{width:"48",height:"48",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,r.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1,d:"M4 16l4.586-4.586a2 2 0 012.828 0L16 16m-2-2l1.586-1.586a2 2 0 012.828 0L20 14m-6-6h.01M6 20h12a2 2 0 002-2V6a2 2 0 00-2-2H6a2 2 0 00-2 2v12a2 2 0 002 2z"})})})}},1610(e,s,o){o.r(s),o.d(s,{default:()=>D});var t=o(5043),r=o(3216),c=o(5475),a=o(8842),l=o(477),n=o(821),i=o(15),d=o(2597),h=o(3568),u=o(7494),p=o(8724),m=o(4051),k=o(8442);const v=/^[^\s@]+@[^\s@]+\.[^\s@]+$/,x={Nederland:/^\d{4}\s?[A-Z]{2}$/i,"Belgi\xeb":/^\d{4}$/,Duitsland:/^\d{5}$/,Frankrijk:/^\d{5}$/,Luxemburg:/^\d{4}$/,Oostenrijk:/^\d{4}$/,"Itali\xeb":/^\d{5}$/,Denemarken:/^\d{4}$/,Zweden:/^\d{3}\s?\d{2}$/};function j(e){return String(e||"").trim().length>0}function f(e,s){const o=x[String(s||"").trim()];return!o||o.test(String(e||"").trim().toUpperCase().replace(/\s+/g," "))}var y=o(9244),g=o(8569),b=(o(8078),o(579));function _(e){let{open:s,title:o,closeLabel:r,onClose:c}=e;return(0,t.useEffect)(()=>{if(!s)return;const e=e=>{"Escape"===e.key&&c()};document.addEventListener("keydown",e);const o=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.removeEventListener("keydown",e),document.body.style.overflow=o}},[s,c]),s?(0,b.jsx)("div",{className:"shop-terms-modal",role:"dialog","aria-modal":"true","aria-labelledby":"shop-terms-modal-title",onClick:c,children:(0,b.jsxs)("div",{className:"shop-terms-modal__panel",onClick:e=>e.stopPropagation(),children:[(0,b.jsxs)("header",{className:"shop-terms-modal__head",children:[(0,b.jsx)("h2",{id:"shop-terms-modal-title",children:o}),(0,b.jsx)("button",{type:"button",className:"shop-terms-modal__close",onClick:c,"aria-label":r,children:"\xd7"})]}),(0,b.jsx)("div",{className:"shop-terms-modal__body",children:(0,b.jsx)(g.A,{})})]})}):null}function N(e){let{back:s,primaryLabel:o,onPrimary:r,primaryDisabled:c=!1,primaryClassName:a="shop-checkout-nav__next",stickyExtra:l=null,onStickyChange:n}=e;const i=(0,t.useRef)(null),[d,h]=(0,t.useState)(!1);return(0,t.useEffect)(()=>{const e=i.current;if(!e)return void h(!1);const s=new IntersectionObserver(e=>{let[s]=e;return h(!s.isIntersecting)},{threshold:0,rootMargin:"0px 0px -1px 0px"});return s.observe(e),()=>s.disconnect()},[o,c]),(0,t.useEffect)(()=>(null===n||void 0===n||n(d),()=>null===n||void 0===n?void 0:n(!1)),[d,n]),(0,b.jsxs)(b.Fragment,{children:[(0,b.jsxs)("div",{className:"shop-checkout-nav",ref:i,children:[s,(0,b.jsx)("button",{type:"button",className:a,onClick:r,disabled:c,children:o})]}),d?(0,b.jsxs)("div",{className:"shop-checkout-sticky",role:"region","aria-label":o,children:[l,(0,b.jsx)("button",{type:"button",className:`shop-checkout-sticky__btn ${a}`,onClick:r,disabled:c,children:o})]}):null]})}var S=o(9373),w=o(6322),C=o(9557),P=o(3547),A=o(6873),E=o(9946);o(5772);const T="shop-checkout-draft";function L(e,s,o){let{loading:t=!1}=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return t?o.checkoutPlacing||"\u2026":null!=e&&Number.isFinite(Number(e))?0===Number(e)?o.cartShippingFree:(0,m.Jh)(Number(e),s):o.checkoutPlacing||"\u2026"}function B(e){const s=(0,E.E3)(e);return{email:"",voornaam:"",achternaam:"",bedrijf:"",adres:"",huisnr:"",plaats:"",postcode:"",land:s,telefoon:"",fAdres:"",fHuisnr:"",fPlaats:"",fPostcode:"",fLand:s}}function I(e){let s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"EUR";return null!=e&&Number.isFinite(Number(e))?(0,m.Jh)(Number(e),s):"\u2014"}function D(){var e,s,o;const m=(0,r.Zp)(),x=(0,r.zy)(),{currentLanguage:g}=(0,l.o)(),{shopFetch:D,site:M,market:$}=(0,d.zn)(),R=(0,h.Le)(),{items:O,count:F,subtotal:H}=(0,p.gY)(),U=(0,k.OU)(),q=(0,n.xS)("/p/winkelwagen",g),z=(null===M||void 0===M?void 0:M.siteId)||"",J=(0,t.useMemo)(()=>(0,E.Xu)(z,$),[z,$]),V=J.length<2,W=function(){try{const e=sessionStorage.getItem(T);return e?JSON.parse(e):null}catch{return null}}(),[K,Q]=(0,t.useState)((null===W||void 0===W?void 0:W.step)||1),[Z,G]=(0,t.useState)(()=>({...B($),...(null===W||void 0===W?void 0:W.form)||{}})),[X,Y]=(0,t.useState)(!1!==(null===W||void 0===W?void 0:W.sameAddress)),[ee,se]=(0,t.useState)((null===W||void 0===W?void 0:W.paymentMethod)||("NL"===String($||"").toUpperCase()?"ideal":"creditcard")),[oe,te]=(0,t.useState)(Boolean(null===W||void 0===W?void 0:W.newsletter)),[re,ce]=(0,t.useState)(null),[ae,le]=(0,t.useState)(!1),[ne,ie]=(0,t.useState)(""),[de,he]=(0,t.useState)(!1),[ue,pe]=(0,t.useState)(null),[me,ke]=(0,t.useState)(!1),[ve,xe]=(0,t.useState)(""),[je,fe]=(0,t.useState)({}),[ye,ge]=(0,t.useState)(""),[be,_e]=(0,t.useState)([]),[Ne,Se]=(0,t.useState)(!1),[we,Ce]=(0,t.useState)(""),[Pe,Ae]=(0,t.useState)(!1),[Ee,Te]=(0,t.useState)(!1),Le=(0,t.useRef)(!1),[Be,Ie]=(0,t.useState)(""),[De,Me]=(0,t.useState)(""),[$e,Re]=(0,t.useState)(""),[Oe,Fe]=(0,t.useState)(""),[He,Ue]=(0,t.useState)(!1),[qe,ze]=(0,t.useState)("");(0,t.useEffect)(()=>{var e;const s=(0,E.E3)($),o=null===W||void 0===W||null===(e=W.form)||void 0===e?void 0:e.land;o&&J.includes(o)||G(e=>J.includes(e.land)?e:{...e,land:s,fLand:X||V?s:e.fLand})},[$,null===W||void 0===W||null===(e=W.form)||void 0===e?void 0:e.land,X,V,J]);const Je=(null===re||void 0===re?void 0:re.sellerGroups)||[],Ve=null!=(null===re||void 0===re?void 0:re.sellerShippingTotal)?Number(re.sellerShippingTotal):null,We=function(e,s){const o=(Array.isArray(e)?e:[]).map(e=>String((null===e||void 0===e?void 0:e.deliveryTimeText)||"").trim()).filter(
1Boolean);return o.length?[...new Set(o)].join(" \xb7 "):s.checkoutShipStandardDays}(Je,R),Ke=Number(null===re||void 0===re?void 0:re.discountAmount)||0,Qe=(null===re||void 0===re?void 0:re.currency)||(null===(s=O[0])||void 0===s?void 0:s.priceCurrency)||"EUR",Ze=(0,t.useMemo)(()=>{const e=new Map;for(const s of(null===re||void 0===re?void 0:re.lines)||[])null!==s&&void 0!==s&&s.cartLineId&&e.set(s.cartLineId,s);return e},[re]),Ge=null!=(null===re||void 0===re?void 0:re.subtotal)?Number(re.subtotal):null,Xe="paypal"===String(ee||"").toLowerCase()?1.95:.99;const Ye=null!=(null===re||void 0===re?void 0:re.serviceFee)?Number(re.serviceFee):null,es=null!=Ye&&Math.abs(Ye-Xe)<.001?Ye:Xe,ss=null!=(null===re||void 0===re?void 0:re.total)&&null!=Ye?Number(re.total)-Ye+es:H+es+(null!=Ve?Ve:0)-Ke,os=(0,t.useMemo)(()=>be.find(e=>e.id===ee)||null,[be,ee]),ts=(0,t.useMemo)(()=>[{id:1,label:R.checkoutStepAddress},{id:2,label:R.checkoutStepShipping},{id:3,label:R.checkoutStepPayment},{id:4,label:R.checkoutStepReview}],[R]);(0,t.useEffect)(()=>{const e=(0,A.hP)(x.search);Ie(e)},[x.search]),(0,t.useEffect)(()=>{if(0===F)return void ce(null);let e=!1;le(!0),ie("");const s=async(o,t,r)=>{const c=(0,E.Eu)(Z.land)||void 0,a={lines:(0,P.n)(O),locale:g,shippingMethod:"standard",paymentMethod:ee,shippingAddress:{countryCode:c||void 0,postalCode:String(Z.postcode||"").trim()||void 0}};o&&(a.rewardToken=o),t&&(a.voucherCode=t,a.customerEmail=String(Z.email||"").trim()||void 0);const l=await D((0,i.y)("/api/commerce/validate-cart"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(a)}),n=await l.json().catch(()=>({}));if(!e){if(!l.ok||!n.success){const e=Array.isArray(n.errors)?n.errors.join(" "):n.error||R.checkoutQuoteError||"Verzendkosten laden mislukt";if(t&&!r)return Re(""),ze(e||R.cartCouponInvalid),void await s(o,"",!0);if(o&&!r)return(0,A.vu)(),Ie(""),Me(R.cartMovementDiscountInvalid),void await s("",t,!0);throw new Error(e)}ce(n),Number(n.voucherDiscountAmount)>0?ze(R.cartCouponOk):t||ze(""),Number(n.movementDiscountAmount)>0?Me(R.cartMovementDiscountActive):o||Me("")}};return s(Be||(0,A.QW)(),$e,!1).catch(s=>{e||(ce(null),ie(s.message||R.checkoutQuoteError||"Verzendkosten laden mislukt"))}).finally(()=>{e||le(!1)}),()=>{e=!0}},[O,F,g,Be,$e,ee,Z.land,Z.postcode,Z.email,D,R]),(0,t.useEffect)(()=>{Le.current||0===F||de||ae&&!re||(Le.current=!0,(0,C.xS)({currency:Qe,value:Number.isFinite(ss)?ss:void 0,items:(0,C.PS)(O)}))},[F,de,ae,re,Qe,ss,O]),(0,t.useEffect)(()=>{if(0===F)return void _e([]);let e=!1;Se(!0),Ce("");const s=new URLSearchParams({locale:g,currency:Qe});return Number.isFinite(ss)&&ss>0&&s.set("amount",String(ss)),D(`${(0,i.y)("/api/commerce/payment-methods")}?${s.toString()}`).then(async s=>{const o=await s.json().catch(()=>({}));if(e)return;if(!s.ok||!o.success)throw new Error(o.error||R.checkoutPayMethodsError||"Betaalmethoden laden mislukt");const t=Array.isArray(o.methods)?o.methods:[];_e(t),se(e=>function(e,s){var o;const t=Array.isArray(e)?e:[],r=String(s||"").trim();if(r&&t.some(e=>e.id===r))return r;const c=t.find(e=>(null===e||void 0===e?void 0:e.id)&&"applepay"!==e.id&&"googlepay"!==e.id);return(null===c||void 0===c?void 0:c.id)||(null===(o=t[0])||void 0===o?void 0:o.id)||r||"creditcard"}(t,e))}).catch(s=>{e||(_e([]),Ce(s.message||R.checkoutPayMethodsError||"Betaalmethoden laden mislukt"))}).finally(()=>{e||Se(!1)}),()=>{e=!0}},[F,g,Qe,ss,D,R.checkoutPayMethodsError]),(0,t.useEffect)(()=>{0!==F||de||m(q,{replace:!0})},[F,de,m,q]),(0,t.useEffect)(()=>{!function(e){try{sessionStorage.setItem(T,JSON.stringify(e))}catch{}}({step:K,form:Z,sameAddress:X,paymentMethod:ee,newsletter:oe})},[K,Z,X,ee,oe]),(0,t.useEffect)(()=>{"undefined"!==typeof window&&window.scrollTo({top:0,left:0,behavior:"auto"})},[K]);const rs=(0,b.jsxs)("div",{className:"shop-checkout-sticky__total",children:[(0,b.jsx)("span",{children:R.cartTotal}),(0,b.jsx)("strong",{children:I(ss,Qe)})]});function cs(e){const s=je[e];return s?"email"===e&&"invalid"===s?R.checkoutErrorEmailInvalid:"postcodeCountry"===s?R.checkoutErrorPostcodeCountry||R.checkoutFormErrorSummary:R.checkoutErrorRequired.replace("{field}",function(e){return{email:R.checkoutEmail,voornaam:R.checkoutFirstName,achternaam:R.checkoutLastName,adres:R.checkoutStreet,huisnr:R.checkoutHouseNo,postcode:R.checkoutPostcode,plaats:R.checkoutCity,telefoon:R.checkoutPhone,land:R.checkoutCountry,fAdres:R.checkoutStreet,fHuisnr:R.checkoutHouseNo,fPostcode:R.checkoutPostcode,fPlaats:R.checkoutCity}[e]||e}(e)):null}function as(e){let s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return`shop-checkout-field${s?` ${s}`:""}${cs(e)?" shop-checkout-field--error":""}`}function ls(e){return s=>{G(o=>({...o,[e]:s.target.value})),fe(s=>{if(!s[e])return s;const o={...s};return delete o[e],o}),ge("")}}const ns=null!==ue&&void 0!==ue&&ue.id?R.checkoutPayRetryButton||"Betaal opnieuw":R.checkoutPlaceOrder;function is(){if(me)return;xe(""),ke(!0);const e="undefined"!==typeof window&&window.location.origin||(null===M||void 0===M?void 0:M.publicBaseUrl)||null,s=s=>function(e,s){return D((0,i.y)("/api/commerce/checkout/payment"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({orderId:e.id,orderNumber:e.orderNumber,locale:g,publicBaseUrl:s})}).then(async e=>{const s=await e.json().catch(()=>({}));if(!e.ok||!s.success||!s.checkoutUrl)throw new Error(s.error||"Betaling starten mislukt");try{sessionStorage.removeItem(T)}catch{}window.location.replace(s.checkoutUrl)})}
1(s,e).catch(e=>{xe(e.message||R.checkoutPayRetryError||"Betaling starten mislukt"),ke(!1)});null!==ue&&void 0!==ue&&ue.id?s(ue):D((0,i.y)("/api/commerce/checkout/start"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({lines:(0,P.n)(O),form:Z,newsletterOptIn:oe,sameBillingAsShipping:X,shippingMethod:"standard",paymentMethod:ee,locale:g,publicBaseUrl:e,rewardToken:Be||(0,A.QW)()||void 0,voucherCode:$e||void 0})}).then(async e=>{var s;const o=await e.json().catch(()=>({}));if(!e.ok||!o.success){var t;if(o.retryable&&null!==(t=o.order)&&void 0!==t&&t.id)return pe(o.order),xe(o.error||R.checkoutPayRetryError||"Betaling starten mislukt"),void ke(!1);const e=Array.isArray(o.errors)?o.errors.join(" "):o.error||"Bestelling plaatsen mislukt";throw new Error(e)}null!==(s=o.order)&&void 0!==s&&s.id&&pe(o.order),function(e){if(!e)throw new Error("Betaling starten mislukt");try{sessionStorage.removeItem(T),(0,A.vu)()}catch{}window.location.replace(e)}(o.checkoutUrl)}).catch(e=>{xe(e.message||"Bestelling plaatsen mislukt"),ke(!1)})}return de?(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(a.A,{title:R.checkoutSuccessTitle,robots:"noindex, nofollow"}),(0,b.jsx)("div",{className:"shop-cart-page shop-checkout-page",children:(0,b.jsxs)("div",{className:"shop-cart-page__inner shop-checkout-page__success",children:[(0,b.jsx)("h1",{children:R.checkoutSuccessTitle}),(0,b.jsx)("p",{children:R.checkoutSuccessText}),null!==ue&&void 0!==ue&&ue.orderNumber?(0,b.jsxs)("p",{className:"shop-checkout-page__order-number",children:[R.checkoutOrderNumber||"Bestelnummer",": ",(0,b.jsx)("strong",{children:ue.orderNumber})]}):null,(0,b.jsx)(c.N_,{to:(0,n.xS)("/p",g),className:"shop-cart-page__cta",children:R.cartContinueShopping})]})})]}):(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(a.A,{title:R.checkoutPageTitle,description:R.checkoutPageDescription,robots:"noindex, nofollow"}),(0,b.jsx)("div",{className:"shop-cart-page shop-checkout-page"+(Ee?" shop-checkout-page--sticky-nav":""),children:(0,b.jsxs)("div",{className:"shop-cart-page__inner shop-checkout-page__shell",children:[(0,b.jsx)("nav",{className:"shop-checkout-steps","aria-label":R.checkoutPageTitle,children:ts.map((e,s)=>{const o=e.id===K,t=e.id<K;return(0,b.jsxs)("button",{type:"button",className:`shop-checkout-steps__item${o?" shop-checkout-steps__item--active":""}${t?" shop-checkout-steps__item--done":""}`,onClick:()=>t&&Q(e.id),disabled:e.id>K,children:[(0,b.jsx)("span",{className:"shop-checkout-steps__num",children:t?"\u2713":e.id}),(0,b.jsx)("span",{className:"shop-checkout-steps__label",children:e.label}),s<ts.length-1?(0,b.jsx)("span",{className:"shop-checkout-steps__sep","aria-hidden":!0}):null]},e.id)})}),(0,b.jsxs)("div",{className:"shop-checkout-page__layout",children:[(0,b.jsxs)("div",{className:"shop-checkout-page__main",children:[1===K?(0,b.jsxs)("section",{className:"shop-checkout-panel",children:[(0,b.jsx)("header",{className:"shop-checkout-panel__head",children:(0,b.jsx)("h2",{children:R.checkoutStepAddress})}),(0,b.jsxs)("div",{className:"shop-checkout-panel__body",children:[ye?(0,b.jsx)("p",{className:"shop-checkout-page__error shop-checkout-page__error--summary",role:"alert",children:ye}):null,(0,b.jsxs)("label",{className:as("email","shop-checkout-field--full"),children:[(0,b.jsxs)("span",{children:[R.checkoutEmail," *"]}),(0,b.jsx)("input",{type:"email",value:Z.email,onChange:ls("email"),placeholder:"[email protected]","aria-invalid":cs("email")?"true":void 0,"aria-describedby":cs("email")?"checkout-email-error":"checkout-email-hint"}),cs("email")?(0,b.jsx)("small",{className:"shop-checkout-field__error",id:"checkout-email-error",role:"alert",children:cs("email")}):(0,b.jsx)("small",{id:"checkout-email-hint",children:R.checkoutEmailHint})]}),(0,b.jsxs)("div",{className:"shop-checkout-field-row",children:[(0,b.jsxs)("label",{className:as("voornaam"),children:[(0,b.jsxs)("span",{children:[R.checkoutFirstName," *"]}),(0,b.jsx)("input",{type:"text",value:Z.voornaam,onChange:ls("voornaam"),"aria-invalid":cs("voornaam")?"true":void 0,"aria-describedby":cs("voorna
1am")?"checkout-voornaam-error":void 0}),cs("voornaam")?(0,b.jsx)("small",{className:"shop-checkout-field__error",id:"checkout-voornaam-error",role:"alert",children:cs("voornaam")}):null]}),(0,b.jsxs)("label",{className:as("achternaam"),children:[(0,b.jsxs)("span",{children:[R.checkoutLastName," *"]}),(0,b.jsx)("input",{type:"text",value:Z.achternaam,onChange:ls("achternaam"),"aria-invalid":cs("achternaam")?"true":void 0,"aria-describedby":cs("achternaam")?"checkout-achternaam-error":void 0}),cs("achternaam")?(0,b.jsx)("small",{className:"shop-checkout-field__error",id:"checkout-achternaam-error",role:"alert",children:cs("achternaam")}):null]})]}),(0,b.jsxs)("label",{className:"shop-checkout-field shop-checkout-field--full",children:[(0,b.jsx)("span",{children:R.checkoutCompany}),(0,b.jsx)("input",{type:"text",value:Z.bedrijf,onChange:ls("bedrijf")})]}),(0,b.jsxs)("div",{className:"shop-checkout-field-row shop-checkout-field-row--address",children:[(0,b.jsxs)("label",{className:as("adres"),children:[(0,b.jsxs)("span",{children:[R.checkoutStreet," *"]}),(0,b.jsx)("input",{type:"text",value:Z.adres,onChange:ls("adres"),"aria-invalid":cs("adres")?"true":void 0,"aria-describedby":cs("adres")?"checkout-adres-error":void 0}),cs("adres")?(0,b.jsx)("small",{className:"shop-checkout-field__error",id:"checkout-adres-error",role:"alert",children:cs("adres")}):null]}),(0,b.jsxs)("label",{className:as("huisnr","shop-checkout-field--narrow"),children:[(0,b.jsxs)("span",{children:[R.checkoutHouseNo," *"]}),(0,b.jsx)("input",{type:"text",value:Z.huisnr,onChange:ls("huisnr"),"aria-invalid":cs("huisnr")?"true":void 0,"aria-describedby":cs("huisnr")?"checkout-huisnr-error":void 0}),cs("huisnr")?(0,b.jsx)("small",{className:"shop-checkout-field__error",id:"checkout-huisnr-error",role:"alert",children:cs("huisnr")}):null]})]}),(0,b.jsxs)("div",{className:"shop-checkout-field-row",children:[(0,b.jsxs)("label",{className:as("postcode"),children:[(0,b.jsxs)("span",{children:[R.checkoutPostcode," *"]}),(0,b.jsx)("input",{type:"text",value:Z.postcode,onChange:ls("postcode"),"aria-invalid":cs("postcode")?"true":void 0,"aria-describedby":cs("postcode")?"checkout-postcode-error":void 0}),cs("postcode")?(0,b.jsx)("small",{className:"shop-checkout-field__error",id:"checkout-postcode-error",role:"alert",children:cs("postcode")}):null]}),(0,b.jsxs)("label",{className:as("plaats"),children:[(0,b.jsxs)("span",{children:[R.checkoutCity," *"]}),(0,b.jsx)("input",{type:"text",value:Z.plaats,onChange:ls("plaats"),"aria-invalid":cs("plaats")?"true":void 0,"aria-describedby":cs("plaats")?"checkout-plaats-error":void 0}),cs("plaats")?(0,b.jsx)("small",{className:"shop-checkout-field__error",id:"checkout-plaats-error",role:"alert",children:cs("plaats")}):null]})]}),(0,b.jsxs)("label",{className:as("land","shop-checkout-field--full"),children:[(0,b.jsxs)("span",{children:[R.checkoutCountry," *"]}),(0,b.jsx)("select",{value:Z.land,onChange:ls("land"),disabled:V,"aria-invalid":cs("land")?"true":void 0,"aria-describedby":cs("land")?"checkout-land-error":void 0,children:J.map(e=>(0,b.jsx)("option",{value:e,children:e},e))}),cs("land")?(0,b.jsx)("small",{className:"shop-checkout-field__error",id:"checkout-land-error",role:"alert",children:cs("land")}):null]}),(0,b.jsxs)("label",{className:as("telefoon","shop-checkout-field--full"),children:[(0,b.jsxs)("span",{children:[R.checkoutPhone," *"]}),(0,b.jsx)("input",{type:"tel",value:Z.telefoon,onChange:ls("telefoon"),"aria-invalid":cs("telefoon")?"true":void 0,"aria-describedby":cs("telefoon")?"checkout-telefoon-error":void 0}),cs("telefoon")?(0,b.jsx)("small",{className:"shop-checkout-field__error",id:"checkout-telefoon-error",role:"alert",children:cs("telefoon")}):null]}),(0,b.jsxs)("label",{className:"shop-checkout-check",children:[(0,b.jsx)("input",{type:"checkbox",checked:X,onChange:e=>{Y(e.target.checked),fe(e=>{const s={...e};return delete s.fAdres,delete s.fHuisnr,delete s.fPostcode,delete s.fPlaats,s}),ge("")}}),(0,b.jsx)("span",{children:R.checkoutSameAddress})]}),X?null:(0,b.jsxs)("div",{className:"shop-checkout-billing",children:[(0,b.jsx)("p",{children:R.checkoutBillingTitle}),(0,b.jsxs)("div",{className:"shop-checkout-field-row shop-checkout-field-row--address",children:[(0,b.jsxs)("label",{className:as("fAdres"),children:[(0,b.jsxs)("span",{children:[R.checkoutStreet," *"]}),(0,b.jsx)("input",{type:"text",value:Z.fAdres,onChange:ls("fAdres"),"aria-invalid":cs("fAdres")?"true":void 0,"aria-describedby":cs("fAdres")?"checkout-fAdres-error":void 0}),cs("fAdres")?(0,b.jsx)("small",{className:"shop-checkout-field__error",id:"checkout-fAdres-error",role:"alert",children:cs("fAdres")}):null]}),(0,b.jsxs)("label",{className:as("fHuisnr","shop-checkout-field--narrow"),children:[(0,b.jsxs)("span",{children:[R.checkoutHouseNo," *"]}),(0,b.jsx)("input",{type:"text",value:Z.fHuisnr,onChange:ls("fHuisnr"),"aria-invalid":cs("fHuisnr")?"true":void 0,"aria-describedby":cs("fHuisnr")?"checkout-fHuisnr-error":void 0}),cs("fHuisnr")?(0,b.jsx)("small",{className:"shop-checkout-field__error",id:"checkout-fHuisnr-error",role:"alert",children:cs("fHuisnr")}):null]})]}),(0,b.jsxs)("div",{className:"shop-checkout-field-row",children:[(0,b.jsxs)("label",{className:as("fPostcode"),children:[(0,b.jsxs)("span",{children:[R.checkoutPostcode," *"]}),(0,b.jsx)("input",{type:"text",value:Z.fPostcode,onChange:ls("fPostcode"),"aria-invalid":cs("fPostcode")?"true":void 0,"aria-describedby":cs("fPostcode")?"checkout-fPostcode-error":void 0}),cs("fPostcode")?(0,b.jsx)("small",{className:"shop-checkout-field__error",id:"checkout-fPostcode-error",role:"alert",children:cs("fPostcode")}):null]}),(0,b.jsxs)("label",{className:as("fPlaats"),children:[(0,b.jsxs)("span",{children:[R.checkoutCity," *"]}),(0,b.jsx)("input",{type:"text",value:Z.fPlaats,onChange:ls("fPlaats"),"aria-invalid":cs("fPlaats")?"true":void 0,"aria-describedby":cs("fPlaats")?"checkout-fPlaats-error":void 0}),cs("fPlaats")?(0,b.jsx)("small",{className:"shop-checkout-field__error",id:"checkout-fPlaats-error",role:"alert",children:cs("fPlaats")}):null]})]}),(0,b.jsxs)("label",{className:"shop-checkout-field shop-checkout-field--full",children:[(0,b.jsxs)("span",{children:[R.checkoutCountry," *"]}),(0,b.jsx)("select",{value:Z.fLand,onChange:ls("fLand"),disabled:V,children:J.map(e=>(0,b.jsx)("option",{value:e,children:e},e))})]})]}),(0,b.jsx)(N,{back:(0,b.jsx)(c.N_,{to:q,className:"shop-checkout-nav__back",children:R.checkoutBackCart}),primaryLabel:R.checkoutNext,onPrimary:function(){const e=function(e,s){const o={},t=String(e.email||"").trim();return t?v.test(t)||(o.email="invalid"):o.email="required",j(e.voornaam)||(o.voorna
1am="required"),j(e.achternaam)||(o.achternaam="required"),j(e.adres)||(o.adres="required"),j(e.huisnr)||(o.huisnr="required"),j(e.postcode)||(o.postcode="required"),j(e.plaats)||(o.plaats="required"),j(e.telefoon)||(o.telefoon="required"),j(e.postcode)&&j(e.land)&&!f(e.postcode,e.land)&&(o.postcode="postcodeCountry",o.land="postcodeCountry"),s||(j(e.fAdres)||(o.fAdres="required"),j(e.fHuisnr)||(o.fHuisnr="required"),j(e.fPostcode)||(o.fPostcode="required"),j(e.fPlaats)||(o.fPlaats="required"),j(e.fPostcode)&&j(e.fLand||e.land)&&!f(e.fPostcode,e.fLand||e.land)&&(o.fPostcode="postcodeCountry",o.fLand="postcodeCountry")),o}(Z,X);if(Object.keys(e).length>0)return fe(e),void ge(R.checkoutFormErrorSummary);fe({}),ge(""),Q(2)},stickyExtra:rs,onStickyChange:Te})]})]}):null,2===K?(0,b.jsxs)("section",{className:"shop-checkout-panel",children:[(0,b.jsx)("header",{className:"shop-checkout-panel__head",children:(0,b.jsx)("h2",{children:R.checkoutStepShipping})}),(0,b.jsxs)("div",{className:"shop-checkout-panel__body",children:[ne?(0,b.jsx)("p",{className:"shop-checkout-page__error",role:"alert",children:ne}):null,(0,b.jsx)("div",{className:"shop-checkout-options",children:(0,b.jsxs)("label",{className:"shop-checkout-option shop-checkout-option--active",children:[(0,b.jsx)("input",{type:"radio",name:"shipping",checked:!0,readOnly:!0}),(0,b.jsxs)("span",{className:"shop-checkout-option__main",children:[(0,b.jsx)("strong",{children:R.checkoutShipStandard}),(0,b.jsx)("small",{children:We})]}),(0,b.jsx)("span",{className:"shop-checkout-option__price",children:L(Ve,Qe,R,{loading:ae&&null==re})})]})}),Je.length>1?(0,b.jsx)("dl",{className:"shop-cart-summary__rows shop-checkout-shipping-breakdown",children:Je.map(e=>(0,b.jsxs)("div",{children:[(0,b.jsx)("dt",{children:(0,u._m)(R.cartShippingSeller,{seller:e.sellerName||R.favoritesSoldBy})}),(0,b.jsx)("dd",{children:L(e.shippingCost,Qe,R)})]},e.sellerId||e.sellerName))}):null,(0,b.jsx)(N,{back:(0,b.jsx)("button",{type:"button",className:"shop-checkout-nav__back",onClick:()=>Q(1),children:R.checkoutBack}),primaryLabel:R.checkoutNext,onPrimary:()=>Q(3),primaryDisabled:ae||Boolean(ne)||!re,stickyExtra:rs,onStickyChange:Te})]})]}):null,3===K?(0,b.jsxs)("section",{className:"shop-checkout-panel",children:[(0,b.jsx)("header",{className:"shop-checkout-panel__head",children:(0,b.jsx)("h2",{children:R.checkoutStepPayment})}),(0,b.jsxs)("div",{className:"shop-checkout-panel__body",children:[we?(0,b.jsx)("p",{className:"shop-checkout-page__error",role:"alert",children:we}):null,(0,b.jsxs)("div",{className:"shop-checkout-options",children:[Ne?(0,b.jsx)("p",{className:"shop-checkout-panel__hint",children:R.checkoutPlacing||"\u2026"}):null,be.map(e=>(0,b.jsxs)("label",{className:"shop-checkout-option shop-checkout-option--payment"+(ee===e.id?" shop-checkout-option--active":""),children:[(0,b.jsx)("input",{type:"radio",name:"payment",checked:ee===e.id,onChange:()=>se(e.id)}),e.imageUrl?(0,b.jsx)("img",{src:e.imageUrl,alt:"",className:"shop-checkout-option__logo"}):e.domain?(0,b.jsx)("img",{src:`https://www.google.com/s2/favicons?sz=64&domain=${e.domain}`,alt:"",className:"shop-checkout-option__logo"}):null,(0,b.jsx)("span",{className:"shop-checkout-option__main",children:(0,b.jsx)("strong",{children:e.label})})]},e.id))]}),(0,b.jsx)(N,{back:(0,b.jsx)("button",{type:"button",className:"shop-checkout-nav__back",onClick:()=>Q(2),children:R.checkoutBack}),primaryLabel:R.checkoutNext,onPrimary:()=>Q(4),primaryDisabled:Ne||Boolean(we)||0===be.length,stickyExtra:rs,onStickyChange:Te})]})]}):null,4===K?(0,b.jsxs)("section",{className:"shop-checkout-panel",children:[(0,b.jsx)("header",{className:"shop-checkout-panel__head",children:(0,b.jsx)("h2",{children:R.checkoutStepReview})}),(0,b.jsxs)("div",{className:"shop-checkout-panel__body",children:[De?(0,b.jsx)("p",{className:"shop-cart-movement-reward-notice",children:De}):null,(0,b.jsx)("div",{className:"shop-checkout-voucher",children:He||$e?(0,b.jsxs)("div",{className:"shop-checkout-voucher__panel",children:[(0,b.jsx)("label",{className:"shop-checkout-voucher__label",htmlFor:"checkout-voucher-code",children:R.cartCouponToggle}),(0,b.jsxs)("div",{className:"shop-checkout-voucher__row",children:[(0,b.jsx)("input",{id:"checkout-voucher-code",type:"text",className:"shop-checkout-voucher__input",value:Oe||$e,onChange:e=>Fe(e.target.value),onKeyDown:e=>{if("Enter"!==e.key)return;e.preventDefault();const s=String(Oe||"").trim().toUpperCase();Re(s),Ue(Boolean(s))},placeholder:R.cartCouponPlaceholder,autoComplete:"off",spellCheck:!1}),(0,b.jsx)("button",{type:"button",className:"shop-checkout-voucher__apply",onClick:()=>{const e=String(Oe||"").trim().toUpperCase();Re(e),Ue(Boolean(e))},children:R.cartCouponApply})]}),$e&&Number(null===re||void 0===re?void 0:re.voucherDiscountAmount)>0?(0,b.jsxs)("p",{className:"shop-checkout-voucher__status shop-checkout-voucher__status--ok",role:"status",children:[R.cartCouponOk," \xb7 ",(0,b.jsx)("button",{type:"button",className:"shop-checkout-voucher__clear",onClick:()=>{Re(""),Fe(""),Ue(!1),ze("")},children:R.cartCouponRemove||"Verwijderen"})]}):null,!qe||Number(null===re||void 0===re?void 0:re.voucherDiscountAmount)>0?null:(0,b.jsx)("p",{className:"shop-checkout-voucher__status shop-checkout-voucher__status--error",role:"alert",children:qe})]}):(0,b.jsxs)("button",{type:"button",className:"shop-checkout-voucher__toggle",onClick:()=>Ue(!0),children:[(0,b.jsx)("span",{className:"shop-checkout-voucher__toggle-icon","aria-hidden":!0,
1children:"%"}),(0,b.jsxs)("span",{className:"shop-checkout-voucher__toggle-text",children:[(0,b.jsx)("strong",{children:R.cartCouponToggle}),(0,b.jsx)("small",{children:R.cartCouponPlaceholder})]}),(0,b.jsx)("span",{className:"shop-checkout-voucher__toggle-chevron","aria-hidden":!0,children:"\u203a"})]})}),(0,b.jsx)("ul",{className:"shop-checkout-review-lines",children:O.map(e=>{const s=Ze.get(e.cartLineId),o=null!=(null===s||void 0===s?void 0:s.lineTotal)?I(s.lineTotal,Qe):U((e.priceValue||0)*e.qty,e.priceCurrency||"EUR");return(0,b.jsxs)("li",{children:[(0,b.jsx)("div",{className:"shop-checkout-review-lines__media",children:(0,b.jsx)(y.A,{src:e.imageLink,alt:""})}),(0,b.jsxs)("div",{children:[e.brand?(0,b.jsx)("p",{className:"shop-cart-line__brand",children:e.brand}):null,(0,b.jsx)("p",{className:"shop-cart-line__title",children:e.title}),(0,b.jsx)("p",{className:"shop-cart-line__meta",children:e.seller?`${R.favoritesSoldBy} ${e.seller}`:null})]}),(0,b.jsxs)("span",{children:[e.qty,"\xd7"]}),(0,b.jsx)("strong",{children:o})]},e.cartLineId)})}),(0,b.jsxs)("dl",{className:"shop-cart-summary__rows shop-checkout-review-totals",children:[(0,b.jsxs)("div",{children:[(0,b.jsx)("dt",{children:R.cartSubtotalItems.replace("{count}",String(F))}),(0,b.jsx)("dd",{children:null!=Ge?I(Ge,Qe):U(H,(null===(o=O[0])||void 0===o?void 0:o.priceCurrency)||"EUR")})]}),Number(null===re||void 0===re?void 0:re.movementDiscountAmount)>0?(0,b.jsxs)("div",{className:"shop-cart-summary__discount",children:[(0,b.jsx)("dt",{children:(0,A.OT)(R,null===re||void 0===re?void 0:re.discountPercent,null===re||void 0===re?void 0:re.movementRewardTier)}),(0,b.jsxs)("dd",{children:["\u2212 ",I(re.movementDiscountAmount,Qe)]})]}):null,Number(null===re||void 0===re?void 0:re.voucherDiscountAmount)>0?(0,b.jsxs)("div",{className:"shop-cart-summary__discount",children:[(0,b.jsx)("dt",{children:R.cartCouponDiscount||"Tegoedbon"}),(0,b.jsxs)("dd",{children:["\u2212 ",I(re.voucherDiscountAmount,Qe)]})]}):!(Ke>0)||null!==re&&void 0!==re&&re.movementDiscountAmount||null!==re&&void 0!==re&&re.voucherDiscountAmount?null:(0,b.jsxs)("div",{className:"shop-cart-summary__discount",children:[(0,b.jsx)("dt",{children:(0,A.OT)(R,null===re||void 0===re?void 0:re.discountPercent,null===re||void 0===re?void 0:re.movementRewardTier)}),(0,b.jsxs)("dd",{children:["\u2212 ",I(Ke,Qe)]})]}),(0,b.jsxs)("div",{children:[(0,b.jsx)("dt",{children:R.checkoutServiceFee}),(0,b.jsx)("dd",{children:I(es,Qe)})]}),(0,b.jsxs)("div",{children:[(0,b.jsx)("dt",{children:R.checkoutShipStandard}),(0,b.jsx)("dd",{children:L(Ve,Qe,R,{loading:ae&&null==re})})]}),Je.length>1?Je.map(e=>(0,b.jsxs)("div",{children:[(0,b.jsx)("dt",{children:(0,u._m)(R.cartShippingSeller,{seller:e.sellerName||"\u2014"})}),(0,b.jsx)("dd",{children:L(e.shippingCost,Qe,R)})]},`ship-${e.sellerId||e.sellerName}`)):null]}),(0,b.jsxs)("div",{className:"shop-cart-summary__total",children:[(0,b.jsx)("span",{children:R.cartTotal}),(0,b.jsx)("strong",{children:I(ss,Qe)})]}),(0,b.jsxs)("p",{className:"shop-checkout-disclaimer",children:[R.checkoutTermsPrefix," ",(0,b.jsx)("button",{type:"button",className:"shop-checkout-disclaimer__link",onClick:()=>Ae(!0),children:R.footerTerms}),"."]}),(0,b.jsxs)("label",{className:"shop-checkout-check",children:[(0,b.jsx)("input",{type:"checkbox",checked:oe,onChange:e=>te(e.target.checked)}),(0,b.jsx)("span",{children:R.checkoutNewsletter})]}),ve?(0,b.jsx)("p",{className:"shop-checkout-page__error",role:"alert",children:ve}):null,(0,b.jsx)(N,{back:(0,b.jsx)("button",{type:"button",className:"shop-checkout-nav__back",onClick:()=>Q(3),children:R.checkoutBack}),primaryLabel:me?R.checkoutPlacing||"Bezig\u2026":ns,onPrimary:is,primaryDisabled:me,primaryClassName:"shop-checkout-nav__buy",stickyExtra:rs,onStickyChange:Te})]})]}):null]}),(0,b.jsxs)("aside",{className:"shop-checkout-page__aside",children:[(0,b.jsxs)("div",{className:"shop-checkout-summary",children:[(0,b.jsx)("div",{className:"shop-checkout-summary__head",children:(0,b.jsx)("h3",{children:R.checkoutStepReview})}),(0,b.jsxs)("div",{className:"shop-checkout-summary__total",children:[(0,b.jsx)("span",{children:R.cartTotal}),(0,b.jsx)("strong",{children:I(ss,Qe)})]}),4===K?(0,b.jsxs)("div",{className:"shop-checkout-summary__foot",children:[ve?(0,b.jsx)("p",{className:"shop-checkout-page__error",role:"alert",children:ve}):null,(0,b.jsx)("button",{type:"button",className:"shop-checkout-summary__buy",onClick:is,disabled:me,children:me?R.checkoutPlacing||"Bezig\u2026":ns}
1)]}):null]}),K>1?(0,b.jsxs)("div",{className:"shop-checkout-sidebar-card",children:[(0,b.jsxs)("div",{className:"shop-checkout-sidebar-card__head",children:[(0,b.jsx)("h3",{children:R.checkoutStepAddress}),(0,b.jsx)("button",{type:"button",onClick:()=>Q(1),"aria-label":R.checkoutEdit,children:"\u270e"})]}),(0,b.jsxs)("p",{children:[Z.voornaam," ",Z.achternaam,(0,b.jsx)("br",{}),Z.adres," ",Z.huisnr,(0,b.jsx)("br",{}),Z.postcode," ",Z.plaats,(0,b.jsx)("br",{}),Z.land]})]}):null,K>2?(0,b.jsxs)("div",{className:"shop-checkout-sidebar-card",children:[(0,b.jsxs)("div",{className:"shop-checkout-sidebar-card__head",children:[(0,b.jsx)("h3",{children:R.checkoutStepShipping}),(0,b.jsx)("button",{type:"button",onClick:()=>Q(2),"aria-label":R.checkoutEdit,children:"\u270e"})]}),(0,b.jsxs)("p",{children:[R.checkoutShipStandard," \xb7 ",L(Ve,Qe,R)]})]}):null,K>3?(0,b.jsxs)("div",{className:"shop-checkout-sidebar-card",children:[(0,b.jsxs)("div",{className:"shop-checkout-sidebar-card__head",children:[(0,b.jsx)("h3",{children:R.checkoutStepPayment}),(0,b.jsx)("button",{type:"button",onClick:()=>Q(3),"aria-label":R.checkoutEdit,children:"\u270e"})]}),(0,b.jsx)("p",{children:(null===os||void 0===os?void 0:os.label)||ee})]}):null,(0,b.jsx)(S.A,{children:(0,b.jsxs)("ul",{className:"shop-cart-trust",children:[(0,b.jsx)("li",{children:R.cartTrustSecure}),(0,b.jsx)("li",{children:R.cartTrustReturns}),(0,b.jsx)("li",{className:"shop-cart-trust__guarantee",children:(0,b.jsx)(w.A,{variant:"list",showIcon:!1})})]})})]})]})]})}),me?(0,b.jsx)("div",{className:"shop-checkout-placing",role:"status","aria-live":"polite","aria-busy":"true",children:(0,b.jsxs)("div",{className:"shop-checkout-placing__card",children:[(0,b.jsx)("div",{className:"shop-checkout-placing__spinner","aria-hidden":!0}),(0,b.jsx)("h2",{className:"shop-checkout-placing__title",children:R.checkoutPlacingTitle||R.checkoutReturnPendingTitle}),(0,b.jsx)("p",{className:"shop-checkout-placing__text",children:R.checkoutPlacingText||R.checkoutReturnPendingText})]})}):null,(0,b.jsx)(_,{open:Pe,title:R.footerTerms,closeLabel:R.checkoutTermsClose||"Sluiten",onClose:()=>Ae(!1)})]})}},3547(e,s,o){function t(e){return(e||[]).map(e=>({cartLineId:e.cartLineId,offerId:e.offerId,groupKey:e.groupKey,qty:e.qty,sellerId:e.sellerId,sellerKey:e.sellerKey,seller:e.seller,sellerName:e.seller,sellerDomain:e.sellerDomain,slug:e.slug,title:e.title,brand:e.brand,priceValue:e.priceValue,priceCurrency:e.priceCurrency,imageLink:e.imageLink,size:e.size,color:e.color,deliveryTime:e.deliveryTime}))}o.d(s,{n:()=>t})},6873(e,s,o){o.d(s,{OT:()=>l,QW:()=>c,hP:()=>r,vu:()=>a});const t="sportdeal-movement-reward";function r(e){var s;if("undefined"===typeof window)return c();const o=null===(s=new URLSearchParams(e||window.location.search).get("reward"))||void 0===s?void 0:s.trim();if(o){try{sessionStorage.setItem(t,o)}catch{}return function(){if("undefined"!==typeof window)try{const e=new URL(window.location.href);if(!e.searchParams.has("reward"))return;e.searchParams.delete("reward");const s=`${e.pathname}${e.search}${e.hash}`;window.history.replaceState({},"",s)}catch{}}(),o}return c()}function c(){if("undefined"===typeof window)return"";try{var e;return(null===(e=sessionStorage.getItem(t))||void 0===e?void 0:e.trim())||""}catch{return""}}function a(){if("undefined"!==typeof window)try{sessionStorage.removeItem(t)}catch{}}function l(e,s,o){const t=Number(s),r=Number.isFinite(t)?t%1===0?String(t):t.toFixed(1).replace(".",","):"";return o&&null!==e&&void 0!==e&&e.cartMovementDiscountWithTier?e.cartMovementDiscountWithTier.replace("{tier}",function(e,s){return e&&s?"bronze"===e?s.cartMovementTierBronze||"Brons":"silver"===e?s.cartMovementTierSilver||"Zilver":"gold"===e?s.cartMovementTierGold||"Goud":String(e):""}(o,e)).replace("{percent}",r):((null===e||void 0===e?void 0:e.cartMovementDiscount)||"Beweegkorting ({percent}%)").replace("{percent}",r)}}}]); 2//# sourceMappingURL=610.6b4c658e.chunk.js.map
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.