import{C as v,N as d,K as C,E as V,O as t,Q as o,u as e,S as s,R as i,bb as u,a2 as _,aE as f}from"./vendor-BGtMsOoo.js";import{ae as $,aD as k}from"./index-CRze-aDK.js";import{_ as A}from"./billing-details-section.vue_vue_type_script_setup_true_lang-BJKcktNq.js";import{O as D}from"./order-summary-BfC6AHs9.js";import{u as S}from"./order-summary.vue_vue_type_style_index_0_scoped_471240a6_lang-DB8A0s2y.js";import{_ as E}from"./proceed-to.vue_vue_type_script_setup_true_lang-BpsSeiLK.js";import"./address-selection.vue_vue_type_script_setup_true_lang-BjP7icJi.js";import"./address-line.vue_vue_type_script_setup_true_lang-C5lgR6Et.js";import"./address-type.enum-CGCAFS3X.js";import"./useUserCheckoutDefaults-BlmbrerI.js";import"./useOrganizationAddresses-DFhlvSxC.js";import"./payment-policies.vue_vue_type_style_index_0_lang-BQUPSUyI.js";import"./add-or-update-address-modal.vue_vue_type_script_setup_true_lang-EfEQeCT4.js";import"./address-form.vue_vue_type_script_setup_true_lang-OQrHDDSp.js";const H=v({__name:"billing",setup(I){const{cart:r,payment:g,selectedLineItems:n,hasValidationErrors:y,allItemsAreDigital:h}=$(),{isValidPayment:m}=S(),{analytics:w}=k();return(a,l)=>{const c=d("VcAlert"),b=d("VcLayout");return V(),C(b,{"sidebar-position":"right","sticky-sidebar":""},{sidebar:t(()=>[o(e(D),{cart:e(r),"selected-items":e(n),"no-shipping":e(h),footnote:""},{footer:t(()=>[o(e(E),{to:{name:"Review"},disabled:!e(m),onClick:l[0]||(l[0]=L=>{var p;return e(w)("addPaymentInfo",{...e(r),items:e(n)},{},(p=e(g))==null?void 0:p.paymentGatewayCode)})},{default:t(()=>[s(i(a.$t("common.buttons.review_order")),1)]),_:1},8,["disabled"]),o(u,{name:"slide-fade-top",mode:"out-in",appear:""},{default:t(()=>[_(o(c,{color:"warning",size:"sm",variant:"solid-light",class:"mt-4",icon:""},{default:t(()=>[s(i(a.$t("common.messages.fill_all_required")),1)]),_:1},512),[[f,!e(m)]])]),_:1}),o(u,{name:"slide-fade-top",mode:"out-in",appear:""},{default:t(()=>[_(o(c,{color:"warning",size:"sm",variant:"solid-light",class:"mt-4",icon:""},{default:t(()=>[s(i(a.$t("common.messages.something_went_wrong")),1)]),_:1},512),[[f,e(y)]])]),_:1})]),_:1},8,["cart","selected-items","no-shipping"])]),default:t(()=>[o(e(A))]),_:1})}}});export{H as default};
//# sourceMappingURL=billing-CjCpaqlq.js.map
