import{F as v,P as u,_,R as f,a1 as e,X as o,W as w,e as t,Y as C,a2 as n,a0 as m,bn as g,ao as h,aS as b}from"./vendor-3e8OGtgt.js";import{b6 as S,bl as A}from"./index-D8gWJXbr.js";import{u as B}from"./useCheckout-CHO_XUT0.js";import{_ as L}from"./order-comment-section.vue_vue_type_script_setup_true_lang-CjKmfHeM.js";import{O as N}from"./order-summary-Cp-Lh4-f.js";import{_ as O}from"./proceed-to.vue_vue_type_script_setup_true_lang-prQdLsnz.js";import{_ as z}from"./shipping-details-section.vue_vue_type_script_setup_true_lang-q1RKLyN0.js";import"./address-type.enum-CGCAFS3X.js";/* empty css                                                                     */import"./useSaveForLater-sGI0zOD1.js";/* empty css                                                                      */import"./address-selection.vue_vue_type_script_setup_true_lang-Cgm9Ufs8.js";import"./useXPickup-NhA4QZcc.js";const x=v({__name:"shipping",setup(D){const{cart:r,shipment:V,selectedLineItems:l,hasValidationErrors:k}=S(),{comment:i,isValidShipment:c}=B(),{analytics:y}=A();return(s,a)=>{const d=u("VcAlert"),$=u("VcLayout");return f(),_($,{"sidebar-position":"right","sticky-sidebar":""},{sidebar:e(()=>[o(t(N),{cart:t(r),"selected-items":t(l),footnote:""},{footer:e(()=>[o(t(O),{to:{name:"Billing"},disabled:!t(c),"test-id":"checkout.billing-button",onClick:a[1]||(a[1]=p=>t(y)("addShippingInfo",{...t(r),items:t(l)},{},t(V)?.shipmentMethodOption))},{default:e(()=>[n(m(s.$t("common.buttons.go_to_billing")),1)]),_:1},8,["disabled"]),o(g,{name:"slide-fade-top",mode:"out-in",appear:""},{default:e(()=>[h(o(d,{color:"warning",size:"sm",variant:"solid-light",class:"mt-4",icon:""},{default:e(()=>[n(m(s.$t("common.messages.fill_all_required")),1)]),_:1},512),[[b,!t(c)]])]),_:1}),o(g,{name:"slide-fade-top",mode:"out-in",appear:""},{default:e(()=>[h(o(d,{color:"warning",size:"sm",variant:"solid-light",class:"mt-4",icon:""},{default:e(()=>[n(m(s.$t("common.messages.something_went_wrong")),1)]),_:1},512),[[b,t(k)]])]),_:1})]),_:1},8,["cart","selected-items"])]),default:e(()=>[o(t(z)),s.$cfg.checkout_comment_enabled?(f(),_(t(L),{key:0,comment:t(i),"onUpdate:comment":a[0]||(a[0]=p=>C(i)?i.value=p:null),class:"mt-5"},null,8,["comment"])):w("",!0)]),_:1})}}});export{x as default};
//# sourceMappingURL=shipping-DL_woRTo.js.map
