import{F as w,P as d,_ as v,R as V,a1 as t,X as o,e,a2 as s,a0 as i,bm as p,ao as u,aQ as _}from"./vendor-DYYUXsKb.js";import{b6 as C,bl as k}from"./index-BjgfEvRF.js";import{_ as $}from"./billing-details-section.vue_vue_type_script_setup_true_lang-C-vFmY2A.js";import{O as A}from"./order-summary-BYk5d0To.js";import{u as D}from"./useCheckout-07KxsLTC.js";import{_ as I}from"./proceed-to.vue_vue_type_script_setup_true_lang-uQzgVGcE.js";import"./address-selection.vue_vue_type_script_setup_true_lang-DMTbshuo.js";import"./useSaveForLater-C5rBLxnB.js";/* empty css                                                                      */import"./address-type.enum-CGCAFS3X.js";/* empty css                                                                     */const G=w({__name:"billing",setup(L){const{cart:r,payment:f,selectedLineItems:n,hasValidationErrors:g,allItemsAreDigital:y}=C(),{isValidPayment:m}=D(),{analytics:b}=k();return(a,l)=>{const c=d("VcAlert"),h=d("VcLayout");return V(),v(h,{"sidebar-position":"right","sticky-sidebar":""},{sidebar:t(()=>[o(e(A),{cart:e(r),"selected-items":e(n),"no-shipping":e(y),footnote:""},{footer:t(()=>[o(e(I),{to:{name:"Review"},disabled:!e(m),"test-id":"checkout.review-order-button",onClick:l[0]||(l[0]=P=>e(b)("addPaymentInfo",{...e(r),items:e(n)},{},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-BrPPN_xf.js.map
