import{K as V,S as p,P as v,M as C,T as a,V as t,b as e,X as o,W as i,bj as _,a6 as f,aL as u}from"./vendor-bSWkQivH.js";import{aj as $,aM as k,aQ as A}from"./index-Dqv5IkpS.js";import{_ as L}from"./billing-details-section.vue_vue_type_script_setup_true_lang-BNYMECX3.js";import{O as S}from"./order-summary-DbBBQpx2.js";import{_ as D}from"./proceed-to.vue_vue_type_script_setup_true_lang-CzPN8rQE.js";import"./address-selection.vue_vue_type_script_setup_true_lang-CVSe4ho1.js";const O=V({__name:"billing",setup(I){const{cart:n,payment:g,selectedLineItems:r,hasValidationErrors:y,allItemsAreDigital:h}=$(),{isValidPayment:m}=k(),{analytics:w}=A();return(s,l)=>{const c=p("VcAlert"),b=p("VcLayout");return C(),v(b,{"sidebar-position":"right","sticky-sidebar":""},{sidebar:a(()=>[t(e(S),{cart:e(n),"selected-items":e(r),"no-shipping":e(h),footnote:""},{footer:a(()=>[t(e(D),{to:{name:"Review"},disabled:!e(m),onClick:l[0]||(l[0]=P=>{var d;return e(w)("addPaymentInfo",{...e(n),items:e(r)},{},(d=e(g))==null?void 0:d.paymentGatewayCode)})},{default:a(()=>[o(i(s.$t("common.buttons.review_order")),1)]),_:1},8,["disabled"]),t(_,{name:"slide-fade-top",mode:"out-in",appear:""},{default:a(()=>[f(t(c,{color:"warning",size:"sm",variant:"solid-light",class:"mt-4",icon:""},{default:a(()=>[o(i(s.$t("common.messages.fill_all_required")),1)]),_:1},512),[[u,!e(m)]])]),_:1}),t(_,{name:"slide-fade-top",mode:"out-in",appear:""},{default:a(()=>[f(t(c,{color:"warning",size:"sm",variant:"solid-light",class:"mt-4",icon:""},{default:a(()=>[o(i(s.$t("common.messages.something_went_wrong")),1)]),_:1},512),[[u,e(y)]])]),_:1})]),_:1},8,["cart","selected-items","no-shipping"])]),default:a(()=>[t(e(L))]),_:1})}}});export{O as default};
//# sourceMappingURL=billing-DemBSo1s.js.map
