1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./BueiKkaL.js","./RRqRSKUl.js","./entry.CxLIYWAA.css","./CbmN1N9p.js","./7rvzrFYk.js","./C6WMCzhN.js","./DFMaPr-r.js","./BundledInvoicesTable.BEPt42Vg.css","./7R3YcHRw.js","./CG9EoR2C.js","./VdAEsFeu.js"])))=>i.map(i=>d[i]); 2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{};e.SENTRY_RELEASE={id:"CMS.Nuxt.main-20260930.3-2.37.57-nuxt"};var t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="c76e9e4e-06d0-4105-906e-15008a9acf97",e._sentryDebugIdIdentifier="sentry-dbid-c76e9e4e-06d0-4105-906e-15008a9acf97")}catch(s){}}();import{bd as e,bz as t,bA as s,b6 as a,bB as c,bh as l,b5 as n,b4 as o,b7 as r,aS as i,aK as u,aT as d,aL as m,aU as _,bC as b,aM as p,aW as h,aV as g,bn as k,a_ as y,a$ as f,aX as v,aY as x,aZ as w,bD as E,aN as T,aO as I,bE as D,bF as L,b9 as P}from"./RRqRSKUl.js";const j={class:"w-100 mb-3 mt-4 text-center text-md-start d-flex align-items-center"},R={class:"h1-sm mb-0"},$={class:"ms-auto d-inline-flex"},A={key:1,class:"mb-5 text-center text-lg-start"},O={class:"begin-checkout-block"},V={class:"d-flex flex-column flex-lg-row mt-4"},N={class:"me-lg-3"},M={key:0},C={class:"alert alert-danger text-start"},S=["innerHTML"],H={class:"ms-lg-auto"},q={class:"d-flex flex-column flex-sm-row align-items-center justify-content-center w-100"},B={class:"mb-0 me-2 text-uppercase"},F={class:"h1-sm fw-bold mb-0 order-total-price"},G={class:"d-inline-block"},K={class:"text-center text-lg-end"},U={class:"d-flex align-items-center mb-2"},Y={class:"h4 mb-0"},z={class:"text-center text-lg-start"},W={class:"begin-checkout-block"},X={class:"d-flex flex-column flex-lg-row mt-4"},Z={class:"me-lg-3"},J={class:"lh-sm mt-1"},Q={key:0},ee={class:"alert alert-danger text-start"},te=["innerHTML"],se={class:"ms-lg-auto"},ae={class:"d-flex flex-column flex-sm-row align-items-center justify-content-center w-100"},ce={class:"mb-0 me-2 text-uppercase"},le={class:"h1-sm fw-bold mb-0 order-total-price"},ne={class:"d-inline-block"},oe={class:"text-center text-lg-end"},re={key:1},ie={__name:"index",setup(ie){const ue=T(()=>I(()=>import("./BueiKkaL.js"),__vite__mapDeps([0,1,2]),import.meta.url)),de=T(()=>I(()=>import("./CbmN1N9p.js"),__vite__mapDeps([3,1,2]),import.meta.url)),me=T(()=>I(()=>import("./7rvzrFYk.js"),__vite__mapDeps([4,1,2]),import.meta.url)),_e=T(()=>I(()=>import("./C6WMCzhN.js"),__vite__mapDeps([5,1,2]),import.meta.url)),be=T(()=>I(()=>import("./DFMaPr-r.js"),__vite__mapDeps([6,1,2,7]),import.meta.url)),pe=T(()=>I(()=>import("./7R3YcHRw.js"),__vite__mapDeps([8,1,2]),import.meta.url)),he=T(()=>I(()=>import("./CG9EoR2C.js"),__vite__mapDeps([9,1,2]),import.meta.url)),ge=T(()=>I(()=>import("./VdAEsFeu.js"),__vite__mapDeps([10,1,2]),import.meta.url)),ke=e(),ye=t(),fe=s();a();const ve=c(),xe=l(),we=P(!1),Ee=_(()=>fe.bundling?fe.bundledInvoices.reduce((e,t)=>e+t.total_price,0):ye.products.reduce((e,t)=>e+t.totalPrice,0));n.openPage("checkout");const Te=xe.currency.unit_text,Ie=e=>Number(e.total_price??(e.products||[]).reduce((e,t)=>e+Number(t.totalPrice||0),0)),De=_(()=>ye.stockGroups.length>0?ye.stockGroups:0===ye.products.length?[]:[{stock:xe.stock,products:ye.products,total_price:Ie({products:ye.products})}]),Le=_(()=>fe.bundling?ye.products:De.value.flatMap(e=>e.products||[])),Pe=_(()=>fe.bundling?ye.products.length>0:De.value.length>0),je=Le.value.reduce((e,t)=>e+t.totalPrice,0),Re=Le.value.map(e=>({item_id:e.part_number,item_name:e.name,item_category:e.category_name,item_brand:e.brand_name,price:e.netto_price,quantity:e.quantity}),0);n.push({event:"begin_checkout",ecommerce:{currency:Te,value:je,items:Re}});const $e={showPartNumber:!1,showTotal:!0,showTimer:!0,showFooter:!1},{t:Ae}=o();r({title:Ae("checkout.cart_title"),meta:[{name:"robots",content:"noindex,nofollow"}]});const Oe=async(e=null)=>{if(we.value)return;we.value=!0;const t=e?`?stock_id=${e}`:"",s=ke({name:"checkout-shipping"})+"/"+t;let a=s;ve.isLoggedIn()||(a=ke({name:"login"})+`/?redirect=${encodeURIComponent(s)}`);try{await L().push(a)}catch(c){throw we.value=!1,c}},Ve=async()=>{await D("checkout/bundle/cancel",{method:"POST"}),await ye.clear(),fe.refreshCheckoutKey(),fe.bundling=!1,fe.bundledInvoices=[]};return i(()=>ye.productsDirty,ye.fetchCheckoutData),(e,t)=>{const s=b("i18n-t");return p(),u(m(ue),null,{default:d(()=>[h("div",j,[h("h1",R,[g(s,{keypath:m(fe).bundling?"checkout.bundle_cart_title":"checkout.cart_title",tag:"span"},{country:d(()=>[k(y(m(xe).ship_country.name)+" ",1),g(m(pe),{country:m(xe).ship_country.code,class:"ms-2"},null,8,["country"])]),_:1},8,["keypath"])]),h("div",$,[m(fe).bundling?(p(),u(m(ge),{key:0})):f("",!0),m(fe).bundling?(p(),v("button",{key:1,onClick:Ve,class:"btn btn-danger ms-2"},y(e.$t("alerts.cancel")),1)):f("",!0)])]),m(Pe)?(p(),v(x,{key:0},[m(fe).bundling?(p(),u(m(be),{key:0,invoices:m(fe).bundledInvoices},null,8,["invoices"])):f("",!0),m(fe).bundling?(p(),v("div",A,[h("div",O,[h("div",V,[h("div",N,[m(ye).checkoutErrors.length?(p(),v("div",M,[h("div",C,[(p(!0),v(x,null,w(m(ye).checkoutErrors,e=>(p(),v("div",{class:"row pb-2",key:e},[h("div",{class:"col",innerHTML:e},null,8,S)]))),128))])])):f("",!0)]),h("div",H,[h("div",q,[h("p",B,y(e.$t("checkout.total_price_without_delivery"))+": ",1),h("h2",F,[g(m(_e),{"watch-key":m(Ee)},{default:d(()=>[h("span",G,y(e.$formatter.price(m(Ee))),1)]),_:1},8,["watch-key"])])]),h("div",K,[g(m(me),{label:"checkout.begin_checkout","disable-button":m(ye).checkoutErrors.length>0,loading:m(we),onNext:Oe},null,8,["disable-button","loading"])])])])])])):(p(!0),v(x,{key:2},w(m(De),t=>{return p(),v("div",{key:t.stock.id,class:"mb-5"},[h("div",U,[h("h2",Y,y(e.$t("checkout.ships_from",{country:(s=t.stock,s?.friendly_name||s?.name||"")})),1),t.stock.country_code?(p(),u(m(pe),{key:0,country:t.stock.country_code,class:"ms-2"},null,8,["country"])):f("",!0)]),g(m(de),E({ref_for:!0},$e,{products:t.products,"show-vat":m(ye).withVat}),null,16,["products","show-vat"]),h("div",z,[h("div",W,[h("div",X,[h("div",Z,[h("p",J,[h("small",null,y(e.$t("checkout.pricing_subject_to_change")),1)]),m(ye).checkoutErrors.length?(p(),v("div",Q,[h("div",ee,[(p(!0),v(x,null,w(m(ye).checkoutErrors,e=>(p(),v("div",{class:"row pb-2",key:e},[h("div",{class:"col",innerHTML:e},null,8,te)]))),128))])])):f("",!0)]),h("div",se,[h("div",ae,[h("p",ce,y(e.$t("checkout.total_price_without_delivery"))+": ",1),h("h2",le,[g(m(_e),{"watch-key":Ie(t)},{default:d(()=>[h("span",ne,y(e.$formatter.price(Ie(t))),1)]),_:2}
2,1032,["watch-key"])])]),h("div",oe,[g(m(me),{label:"checkout.begin_checkout","disable-button":m(ye).checkoutErrors.length>0,loading:m(we),onNext:e=>Oe(t.stock.id)},null,8,["disable-button","loading","onNext"])])])])])])]);var s}),128))],64)):(p(),v("span",re,y(e.$t("checkout.cart_empty")),1)),g(m(he),{id:"BundleModal"})]),_:1})}}};export{ie as default}; 3//# sourceMappingURL=C2EZT6bD.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.