import{F as w,P as d,_ as v,R as V,a1 as t,X as a,e,a2 as s,a0 as i,bq as p,ao as u,aW as _}from"./vendor-DpspMRYS.js";import{b6 as C,bl as k}from"./index-BN2vBFYR.js";import{_ as $}from"./billing-details-section.vue_vue_type_script_setup_true_lang-emZvjCrX.js";import{O as A}from"./order-summary-Cr4ZXpe6.js";import{u as D}from"./useCheckout-Bx5JH5jY.js";import{_ as I}from"./proceed-to.vue_vue_type_script_setup_true_lang-BBfHJvcA.js";import"./address-selection.vue_vue_type_script_setup_true_lang-DDqrZv8W.js";import"./useSaveForLater-D74ysr4I.js";import"./address-type.enum-CGCAFS3X.js";const x=w({__name:"billing",setup(L){const{cart:n,payment:f,selectedLineItems:r,hasValidationErrors:g,allItemsAreDigital:y}=C(),{isValidPayment:m}=D(),{analytics:b}=k();return(o,l)=>{const c=d("VcAlert"),h=d("VcLayout");return V(),v(h,{"sidebar-position":"right","sticky-sidebar":""},{sidebar:t(()=>[a(e(A),{cart:e(n),"selected-items":e(r),"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(b)("addPaymentInfo",{...e(n),items:e(r)},{},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(()=>[u(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),[[_,!e(m)]])]),_:1}),a(p,{name:"slide-fade-top",mode:"out-in",appear:""},{default:t(()=>[u(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),[[_,e(g)]])]),_:1})]),_:1},8,["cart","selected-items","no-shipping"])]),default:t(()=>[a(e($))]),_:1})}}});export{x as default};
//# sourceMappingURL=billing-Du15m0pd.js.map
