import{F as b,P as d,_ as v,R as V,a1 as t,X as o,e,a2 as s,a0 as i,bq as p,aq as u,aY as _}from"./vendor-D8NNcBCx.js";import{b8 as C,bo as k}from"./index-ID5VX6TZ.js";import{_ as $}from"./billing-details-section.vue_vue_type_script_setup_true_lang-BEQ4l2Ah.js";import{O as A}from"./order-summary-BtlnZ6Hr.js";import{u as q}from"./useCheckout-BQiuPsi0.js";import{_ as D}from"./proceed-to.vue_vue_type_script_setup_true_lang-Mh-Cg_Gx.js";import"./address-selection.vue_vue_type_script_setup_true_lang-DRJ8Ntk0.js";import"./payment-processing-cyber-source.vue_vue_type_script_setup_true_lang-Ck9WwNo7.js";import"./index-Ci9Q1-By.js";import"./useSaveForLater-DWQgy-P3.js";import"./address-type.enum-CGCAFS3X.js";const G=b({__name:"billing",setup(I){const{cart:n,payment:f,selectedLineItems:r,hasValidationErrors:g,allItemsAreDigital:y}=C(),{isValidPayment:m}=q(),{analytics:h}=k();return(a,l)=>{const c=d("VcAlert"),w=d("VcLayout");return V(),v(w,{"sidebar-position":"right",sticky:""},{sidebar:t(()=>[o(e(A),{cart:e(n),"selected-items":e(r),"no-shipping":e(y),footnote:""},{footer:t(()=>[o(e(D),{to:{name:"Review"},disabled:!e(m),"test-id":"checkout.review-order-button",onClick:l[0]||(l[0]=L=>e(h)("addPaymentInfo",{...e(n),items:e(r)},{},e(f)?.paymentGatewayCode))},{default:t(()=>[s(i(a.$t("common.buttons.review_order")),1)]),_:1},8,["disabled"]),o(p,{name:"slide-fade-top",mode:"out-in",appear:""},{default:t(()=>[u(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),[[_,!e(m)]])]),_:1}),o(p,{name:"slide-fade-top",mode:"out-in",appear:""},{default:t(()=>[u(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),[[_,e(g)]])]),_:1})]),_:1},8,["cart","selected-items","no-shipping"])]),default:t(()=>[o(e($))]),_:1})}}});export{G as default};
//# sourceMappingURL=billing-CJVeQO0A.js.map
