PageSourceSearch

https://www.fixmer.be/_next/static/chunks/pages/cart/order-confirmation-0aaacc54c6aae32b.js

js fixmer.be collected 2026-10-07 03:38:53 UTC 16,227 bytes, 1 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},l=(new e.Error).stack;l&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[l]="f730a0ce-0ecc-4960-9c92-6b24f92a62d7",e._sentryDebugIdIdentifier="sentry-dbid-f730a0ce-0ecc-4960-9c92-6b24f92a62d7")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8703,7572,8991,8773,8805,9992],{5790:function(e,l,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/cart/order-confirmation",function(){return t(3058)}])},39266:function(e,l,t){"use strict";t.r(l);var a=t(85893),s=t(31885),r=t(9008),n=t.n(r),i=t(11163);l.default=e=>{var l,t,r;let{story:c,name:d,translatedPaths:o,noIndex:x,children:m}=e,u=(0,i.useRouter)(),{t:h}=(0,s.$G)(),f=null==o?void 0:null===(l=o.find(e=>"nl"===e.lang))||void 0===l?void 0:l.path,p="";return"Profile Homepage"===d?p="Homepage":"products"===d?p=h("title.products"):d&&(p=d),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(n(),{children:[(0,a.jsx)("title",{children:"".concat(p," | Fixmer")}),(0,a.jsx)("link",{rel:"canonical",href:"".concat("https://www.fixmer.be","/").concat(u.locale).concat(u.asPath.split("?")[0])}),(0,a.jsx)("meta",{property:"og:url",content:"".concat("https://www.fixmer.be","/").concat(u.locale).concat(u.asPath.split("?")[0])}),(0,a.jsx)("meta",{property:"og:type",content:"website"}),(null==c?void 0:c.og_title)&&(null==c?void 0:c.og_title)!==""?(0,a.jsx)("meta",{property:"og:title",content:c.og_title}):null,(null==c?void 0:c.og_description)&&(null==c?void 0:c.og_description)!==""?(0,a.jsx)("meta",{property:"og:description",content:c.og_description}):null,(null==c?void 0:null===(t=c.og_image)||void 0===t?void 0:t.filename)&&(null==c?void 0:null===(r=c.og_image)||void 0===r?void 0:r.filename)!==""?(0,a.jsx)("meta",{property:"og:image",content:c.og_image.filename}):null,(null==c?void 0:c.meta_title)&&(null==c?void 0:c.meta_title)!==""?(0,a.jsx)("meta",{property:"title",content:"".concat(null==c?void 0:c.meta_title," | Fixmer")}):null,(null==c?void 0:c.meta_description)&&(null==c?void 0:c.meta_description)!==""?(0,a.jsx)("meta",{property:"description",content:null==c?void 0:c.meta_description}):null,(null==c?void 0:c.meta_image)&&(null==c?void 0:c.meta_image.filename)!==""?(0,a.jsx)("meta",{property:"image",content:null==c?void 0:c.meta_image.filename}):null,o&&o.length>0?(0,a.jsxs)(a.Fragment,{children:[o.map(e=>(0,a.jsx)("link",{href:"".concat("https://www.fixmer.be","/").concat(e.lang).concat(e.path),rel:"alternate",hrefLang:e.lang},e.lang)),(0,a.jsx)("link",{href:"".concat("https://www.fixmer.be","/").concat("nl").concat(f),rel:"alternate",hrefLang:"x-default"})]}):null,x?(0,a.jsx)("meta",{name:"robots",content:"noindex,nofollow"}):null]}),m]})}},79992:function(e,l,t){"use strict";t.r(l);var a=t(85893),s=t(31885),r=t(47220),n=t(29883);l.default=e=>{let{tobaccoProductsTotal:l,tobaccoProductsTotalBeforePromo:t,nonTobaccoProductsTotalBeforePromo:i,nonTobaccoProductsTotal:c,totalExcl:d,totalExclBeforePromo:o,vat:x,totalIncl:m,totalInclBeforePromo:u,totalExclLabel:h,totalInclLabel:f,vatLabel:p,specialBTWLabel:g,buttons:j,isLoading:v,isError:b}=e,{t:y}=(0,s.$G)(),showLoading=(e,l)=>l?(0,a.jsx)(r.default,{}):e,N="px-4 g768:px-6";return(0,a.jsxs)("div",{className:"w-full",children:[(0,a.jsxs)("div",{children:[l&&c?(0,a.jsx)("div",{className:"border-b border-fixmerLightGrey mb-4 w-full",children:(0,a.jsxs)("div",{className:N,children:[(0,a.jsxs)("div",{className:"flex items-center mb-4 justify-between",children:[(0,a.jsxs)("div",{className:"flex flex-col max-w-[50%] gap-y-2",children:[(0,a.jsx)("p",{className:"h4-like g1280:text-body text-fixmerGrey",children:y("cart.tobaccoTotal")}),(0,a.jsxs)("p",{className:"h5-like g1280:text-[0.8rem] text-fixmerGrey",children:["(",y("cart.specialVATRegime"),")"]})]}),showLoading((0,a.jsx)(n.default,{reducedPrice:l,price:null!=t?t:l,styling:"extraSmall",className:"justify-end",gap:"small"}),v)]}),(0,a.jsxs)("div",{className:"flex items-center mb-4 justify-between",children:[(0,a.jsxs)("div",{className:"flex flex-col max-w-[50%] gap-y-2",children:[(0,a.jsx)("p",{className:"h4-like g1280:text-body text-fixmerGrey",children:y("cart.totalNonTobaccoProducts")}),(0,a.jsxs)("p",{className:"h5-like g1280:text-[0.8rem] text-fixmerGrey",children:["(",y("cart.exclVAT"),")"]})]}),showLoading((0,a.jsx)(n.default,{reducedPrice:c,price:null!=i?i:l,styling:"extraSmall",className:"justify-end",gap:"small"}),v)]})]})}):null,x&&d?(0,a.jsx)("div",{className:"border-b border-fixmerLightGrey w-full",children:(0,a.jsxs)("div",{className:N,children:[(0,a.jsxs)("div",{className:"flex items-center mb-4 justify-between",children:[(0,a.jsxs)("div",{className:"flex flex-col max-w-[50%]  gap-y-2",children:[(0,a.jsx)("p",{className:"h4-like g1280:h5-like text-fixmerGrey",children:null!=h?h:y("general.total")}),(0,a.jsxs)("p",{className:"h5-like g1280:text-[0.8rem] text-fixmerGrey",children:["(",null!=g?g:y("cart.exclVAT"),")"]})]}),showLoading((0,a.jsx)(n.default,{price:null!=o?o:d,reducedPrice:d,styling:"medium",className:"justify-end",gap:"small"}),v)]}),(0,a.jsxs)("div",{className:"flex items-center justify-between mb-4",children:[(0,a.jsx)("p",{className:"h4-like g1280:text-body text-fixmerGrey",children:null!=p?p:y("general.vat")}),showLoading((0,a.jsx)(n.default,{price:x,className:"justify-end",styling:"extraSmall",gap:"small"}),v)]})]})}):null,(0,a.jsxs)("div",{className:"flex mt-4 items-center justify-between ".concat(N),children:[(0,a.jsxs)("div",{className:"flex flex-col max-w-[50%] gap-y-2",children:[(0,a.jsx)("p",{className:"h4-like g1280:h5-like text-fixmerGrey",children:null!=f?f:y("general.total")}),(0,a.jsxs)("p",{className:"h5-like g1280:text-body text-fixmerGrey",children:["(",null!=g?g:y("cart.inclVAT"),")"]})]}),showLoading((0,a.jsx)(n.default,{reducedPrice:m,price:null!=u?u:m,className:"justify-end",styling:"medium",gap:"small"}),v)]})]}),b?(0,a.jsx)("p",{className:"text-fixmerRed my-3 ".concat(N),children:y("order.error")}):null,j?(0,a.jsx)("div",{className:"mt-4 ".concat(N),children:j}):null]})}},47572:function(e,l,t){"use strict";t.r(l);var a=t(85893);l.default=e=>{let{children:l,topContainer:t,className:s="",roundedTopDesktop:r}=e;return(0,a.jsx)("div",{className:"w-full bottom-4 relative rounded-2xl ".concat(t?"":"bg-fixmerBackgroun
1dGrey","  ").concat(r?"rounded-t-2xl":"g768:rounded-t-none rounded-t-2xl"),children:(0,a.jsx)("div",{className:"py-[0.1px] g1024:min-h-[60vh] ".concat(s),children:l})})}},11809:function(e,l,t){"use strict";var a=t(85893);l.Z=e=>{let{id:l,name:t,favoriteList:s,label:r,selected:n,inverse:i,onSelect:c}=e;return(0,a.jsxs)("div",{className:"flex items-center gap-3",children:[(0,a.jsx)("input",{className:"checkbox appearance-none cursor-pointer rounded m-0 w-4 h-4 ".concat(i?"border-fixmerWhite checkbox-inverse":"border-fixmerBlue"," border border-solid"),id:l.toString(),onChange:()=>{s?null==c||c(l,n):null==c||c(t)},name:t,checked:n,type:"checkbox"}),(0,a.jsx)("label",{htmlFor:l.toString(),className:" ".concat(i?"text-fixmerWhite":""," flex gap-2 cursor-pointer w-fit items-center"),children:r})]})}},65149:function(e,l,t){"use strict";var a=t(85893),s=t(11809);l.Z=e=>{let{title:l,filters:t,inverse:r}=e;return(0,a.jsxs)("div",{className:"mt-6 g768:mt-0 flex-1",children:[l?(0,a.jsx)("h3",{className:"h2-like g768:h3-like h-10 mb-6 ".concat(r?"text-fixmerWhite":""),children:l}):null,(0,a.jsx)("div",{className:"flex flex-col gap-4",children:null==t?void 0:t.map(e=>(0,a.jsx)(a.Fragment,{children:(0,a.jsx)("div",{className:"min-w-[10rem] w-fit",children:(0,a.jsx)(s.Z,{id:e.id,name:e.name,label:e.label,selected:e.selected,onSelect:e.onSelect,inverse:r,favoriteList:e.favoriteList},e.id)})}))})]})}},3058:function(e,l,t){"use strict";t.r(l),t.d(l,{__N_SSP:function(){return y},default:function(){return N}});var a=t(85893),s=t(31885),r=t(11163),n=t(67294),i=t(39266),c=t(58889),d=t(2797),o=t(79992),x=t(48794),m=t(47572),u=t(65149),h=t(35772),f=t(94831),p=t(35222),g=t(82970),j=t(57402),v=t(74110),b=t(4630);let OrderConfirmationPage=e=>{var l,t,i,g,y,N,w,P;let _,{businessUnit:k,nearestDelivery:T,additionalDeliveries:L}=e,{t:C}=(0,s.$G)(),{locale:S}=(0,r.useRouter)(),{cartWithPrices:B,cartProductsCount:G,cartId:A,cartCreateOrder:I,isPlacingOrder:V,isCartLoading:D}=(0,n.useContext)(j.A),{cart:E,cartError:O}=null!=B?B:{},[W,F]=(0,n.useState)(!1),[R,Z]=(0,n.useState)(!1),[Q,q]=(0,n.useState)((null==E?void 0:E.type)==="standard"?null==T?void 0:T.delivery_date:void 0),[z,$]=(0,n.useState)(""),[H,X]=(0,n.useState)(""),handlePlaceOrder=async()=>{let e=await I({orderConfirmationLink:"/order",deliveryDate:Q,poNumber:z,remarks:H,onError:()=>{F(!0)}});E&&e&&(0,v.qz)(E,e)},J=0===G;E&&!J&&A||(_=C("cart.emptyCart")),O&&(_=O.message),(0,n.useEffect)(()=>{E&&!R&&((0,v.xz)(E),Z(!0))},[E]);let changeDeliveryDate=e=>{q(e)},K=[];return T&&K.push({id:T.delivery_date,name:T.delivery_date,label:T.delivery_date?(0,b.hQ)(new Date(T.delivery_date),S,"/"):"",selected:!Q||T.delivery_date===Q,onSelect:changeDeliveryDate}),null==L||L.map(e=>{K.push({id:e.delivery_date,name:e.delivery_date,label:(0,b.hQ)(new Date(e.delivery_date),S,"/"),selected:e.delivery_date===Q,onSelect:changeDeliveryDate})}),(0,a.jsxs)("div",{className:"w-full",children:[(0,a.jsx)(p.default,{size:"large",backLink:"/cart",title:C("cart.confirmation")}),(0,a.jsx)(m.default,{children:(0,a.jsx)(x.default,{type:"large",children:E&&!J?(0,a.jsxs)("div",{className:"min-h-[8rem] cartContainer flex-col gap-x-6 g1280:flex-row flex",children:[(0,a.jsxs)("div",{className:"g1280:w-[70%] cartSection flex flex-col gap-6 w-full",children:[(0,a.jsxs)("div",{className:"mb-8 g1280:hidden topPrice g1280:mt-0 g1280:px-8 g1280:py-16",children:[(0,a.jsxs)("h4",{className:"mb-8 g1280:block hidden",children:[" ",C("cart.pricesOverview")," "]}),(0,a.jsx)(o.default,{totalIncl:E.totalVatIncl,totalInclBeforePromo:E.totalVatInclBeforePromo,isLoading:D})]}),(0,a.jsx)("div",{className:"w-full bg-fixmerWhite cartList g768:py-8 py-4 rounded-3xl",children:(0,a.jsxs)("div",{className:"px-4 g768:px-8 pb-4",children:[(0,a.jsxs)("h4",{className:"mb-4",children:[" ",C("account.shippingAddress")," "]}),(0,a.jsxs)("p",{className:"flex flex-col",children:[(0,a.jsxs)("span",{className:"flex gap-2",children:[(0,a.jsx)("span",{children:k.defaultShippingAddress.streetName}),(0,a.jsx)("span",{children:k.defaultShippingAddress.streetNumber})]}),(0,a.jsxs)("span",{className:"flex gap-1",children:[(0,a.jsx)("span",{children:k.defaultShippingAddress.postalCode}),(0,a.jsxs)("span",{children:[" ",k.defaultShippingAddress.city]}),(0,a.jsx)("span",{children:k.defaultShippingAddress.country})]})]})]})}),(0,a.jsx)("div",{className:"w-full bg-fixmerWhite cartList g768:py-8 py-4 rounded-3xl",children:(0,a.jsxs)("div",{className:"px-4 g768:px-8 pb-4",children:[(0,a.jsxs)("h4",{className:"mb-4",children:[" ",C("account.billingAddress")," "]}),(0,a.jsxs)("p",{className:"flex flex-col",children:[(0,a.jsxs)("span",{className:"flex gap-2",children:[(0,a.jsx)("span",{children:k.defaultBillingAddress.streetName}),(0,a.jsx)("span",{children:k.defaultBillingAddress.streetNumber})]}),(0,a.jsxs)("span",{className:"flex gap-1",children:[(0,a.jsx)("span",{children:k.defaultBillingAddress.postalCode}),(0,a.jsxs)("span",{children:[" ",k.defaultBillingAddress.city]}),(0,a.jsx)("span",{children:k.defaultBillingAddress.country})]})]})]})}),T?(0,a.jsx)("div",{className:"w-full bg-fixmerWhite cartList g768:py-8 py-4 rounded-3xl",children:(0,a.jsxs)("div",{className:"px-4 g768:px-8 pb-4",children:[(0,a.jsx)("h4",{className:"mb-4",children:C("account.delivery")}),"standard"===E.type?(0,a.jsx)(a.Fragment,{children:K.length>1?(0,a.jsx)(u.Z,{filters:K}):(0,a.jsx)("p",{children:(0,b.hQ)(new Date(T.delivery_date),S,"/")})}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("p",{children:C("order.confirmation.deliveries")}),(0,a.jsx)("ul",{className:"flex flex-col gap-2 mt-4 ml-6",children:E.dates.map(e=>(0,a.jsx)("li",{className:"text-fixmerBlue list-disc",children:(0,b.hQ)(new Date(e.date),S,"/")},e.date))})]})]})}):null,(0,a.jsx)("div",{className:"w-full bg-fixmerWhite cartList g768:py-8 py-4 rounded-3xl",children:(0,a.jsxs)("div",{className:"px-4 g768:px-8 pb-4 flex flex-col gap-4",children:[(0,a.jsxs)("h4",{className:"mb-4",children:[" ",C("order.remarks")," "]}),(0,a.jsx)("p",{children:C("order.remarks.description")}),(0,a.jsxs)("div",{children:[(0,a.jsx)(h.default,{className:"border border-fixmerGrey rounded-full text-xs",label:C("order.poNumber"),name:"poNumber",required:!0,maxLength:35,onChange:e=>$(e.currentTarget.value.slice(0,35)),value:z}),(0,a.jsxs)("p",{className:"mt-1 ml-8 text-xs text-fixmerGrey tabular-nums",children:[z.length,"/",35]})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)(f.Z,{className:"border border-fixmerGrey rounded-3xl",label:C("order.remarks"),name:"remarks",required:!0,rows:8,maxLength:300,onChange:e=>X(e.currentTarget.value.slice(0,300)),value:H}),(0,a.jsxs)("p",{className:"mt-1 ml-8 text-xs text-fixmerGrey tabular-nums",children:[H.length,"/",300]})]})]})})]}),(0,a.jsx)("div",{className:"g1280:w-[30%] cartSection w-full",children:(0,a.jsxs)("div",{className:"g1280:bg-white g1280:rounded-3xl cartList cartPriceCalculation mt-8 g1280:mt-0 pb-4 g768:pb-6 g1280:pt-12",children:[(0,a.jsxs)("h4",{className:"mb-6 g1280:block hidden px-4 g768:px-6",children:[" ",C("cart.pricesOverview")," "]}),(null===(l=E.nonTobaccoProducts)||void 0===l?void 0:l.products)&&(null===(t=E.nonTobaccoProducts)||void 0===t?void 0:t.products.length)>0?(0,a.jsx)(o.default,{tobaccoProductsTotal:null===(i=E.tobaccoProducts)||void 0===i?void 0:i.total,tobaccoProductsTotalBeforePromo:null===(g=E.tobaccoProducts)||void 0===g?void 0:g.totalBeforePromo,nonTobaccoProductsTotal:null===(y=E.nonTobaccoProducts)||void 0===y?void 0:y.totalVatExcl,nonTobaccoProductsTotalBeforePromo:null===(N=E.nonTobaccoProducts)||void 0===N?void 0:N.totalVatExclBeforePromo,totalExcl:E.totalVatExcl,totalExclBeforePromo:E.totalVatExclBeforePromo,vat:E.totalVat,totalIncl:E.totalVatIncl,totalInclBeforePromo:E.totalVatInclBeforePromo,isLoading:D,isError:W,buttons:(0,a.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,a.jsx)(c.default,{styling:"primary",fullWidth:!0,hideChevron:!0,label:C("general.confirmOrder"),onClick:()=>handlePlaceOrder(),disabled:D}),(0,a.jsx)(c.default,{styling:"tertiary",fullWidth:!0,hideChevron:!0,label:C("general.continueShopping"),link:"/".concat(C("general.products"))})]})}):(0,a.jsx)(o.default,{tobaccoProductsTotal:null===(w=E.tobaccoProducts)||void 0===w?void 0:w.total,tobaccoProductsTotalBeforePromo:null===(P=E.tobaccoProducts)||void 0===P?void 0:P.totalBeforePromo,totalIncl:E.totalVatIncl,totalInclBeforePromo:E.totalVatInclBeforePromo,specialBTWLabel:C("cart.specialVATRegime"),isLoading:D,buttons:(0,a.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,a.jsx)(c.default,{styling:"primary",fullWidth:!0,hideChevron:!0,label:C("general.confirmOrder"),onClick:()=>handlePlaceOrder(),disabled:D}),(0,a.jsx)(c.default,{styling:"tertiary",fullWidth:!0,hideChevron:!0,label:C("general.continueShopping"),link:"/".concat(C("general.products"))})]})})]})})]}):(0,a.jsx)("div",{className:"flex flex-col gap-6",children:(0,a.jsx)("div",{className:"w-[70%] p-8 bg-fixmerWhite rounded-2xl",children:D||V?(0,a.jsx)("div",{className:"py-8",children:(0,a.jsx)(d.default,{})}):_===C("cart.emptyCart")?(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{children:_}),(0,a.jsx)("div",{className:"mt-6",children:(0,a.jsx)(c.default,{link:"/".concat(C("general.products")),styling:"primary",label:C("cart.goToProducts")})})]}):(0,a.jsxs)("div",{className:"flex flex-col gap-6",children:[(0,a.jsx)("p",{children:_}),(0,a.jsx)(c.default,{label:C("general.returnToCart"),link:"/cart",styling:"primary"})]})})})})})]})};OrderConfirmationPage.getLayout=(e,l,t)=>(0,a.jsx)(i.default,{name:"Order Confirmation",translatedPaths:t,noIndex:!0,children:(0,a.jsx)(g.default,{...l,translatedPaths:t,children:(0,a.jsx)(m.default,{topContainer:!0,roundedTopDesktop:!0,className:"mt-6",children:e})})});var y=!0,N=OrderConfirmationPage}},function(e){e.O(0,[7169,2970,5222,9774,2888,179],function(){return e(e.s=5790)}),_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.