import{F as b,P as d,_ as v,R as V,a1 as t,X as a,e,a2 as s,a0 as i,bm as p,ao as _,aQ as u}from"./vendor-DYYUXsKb.js";import{a_ as C,bc as k}from"./index-DlGZkra7.js";import{_ as $}from"./billing-details-section.vue_vue_type_script_setup_true_lang-sSTlQPIr.js";import{O as A}from"./order-summary-Bvu9y3wq.js";import{u as D}from"./useCheckout-Ct_B6cll.js";import{_ as I}from"./proceed-to.vue_vue_type_script_setup_true_lang-zrTGaIvT.js";import"./address-selection.vue_vue_type_script_setup_true_lang-CpJ-Eel9.js";import"./useSaveForLater-Ckq7X4Ku.js";/* empty css                                                                      */import"./address-type.enum-CGCAFS3X.js";/* empty css                                                         */const G=b({__name:"billing",setup(L){const{cart:r,payment:f,selectedLineItems:n,hasValidationErrors:g,allItemsAreDigital:y}=C(),{isValidPayment:m}=D(),{analytics:h}=k();return(o,l)=>{const c=d("VcAlert"),w=d("VcLayout");return V(),v(w,{"sidebar-position":"right","sticky-sidebar":""},{sidebar:t(()=>[a(e(A),{cart:e(r),"selected-items":e(n),"no-shipping":e(y),footnote:""},{footer:t(()=>[a(e(I),{to:{name:"Review"},disabled:!e(m),"test-id":"checkout.review-order-button",onClick:l[0]||(l[0]=P=>e(h)("addPaymentInfo",{...e(r),items:e(n)},{},e(f)?.paymentGatewayCode))},{default:t(()=>[s(i(o.$t("common.buttons.review_order")),1)]),_:1},8,["disabled"]),a(p,{name:"slide-fade-top",mode:"out-in",appear:""},{default:t(()=>[_(a(c,{color:"warning",size:"sm",variant:"solid-light",class:"mt-4",icon:""},{default:t(()=>[s(i(o.$t("common.messages.fill_all_required")),1)]),_:1},512),[[u,!e(m)]])]),_:1}),a(p,{name:"slide-fade-top",mode:"out-in",appear:""},{default:t(()=>[_(a(c,{color:"warning",size:"sm",variant:"solid-light",class:"mt-4",icon:""},{default:t(()=>[s(i(o.$t("common.messages.something_went_wrong")),1)]),_:1},512),[[u,e(g)]])]),_:1})]),_:1},8,["cart","selected-items","no-shipping"])]),default:t(()=>[a(e($))]),_:1})}}});export{G as default};
//# sourceMappingURL=billing-DqEkAxRI.js.map
