import{C as h,q as v,N as r,K as u,E as c,O as a,Q as l,P as p,S as o,R as s,u as i,a3 as d}from"./vendor-BGtMsOoo.js";import"./index-CRze-aDK.js";import{u as b}from"./order-summary.vue_vue_type_style_index_0_scoped_471240a6_lang-DB8A0s2y.js";import"./address-type.enum-CGCAFS3X.js";import"./useUserCheckoutDefaults-BlmbrerI.js";import"./useOrganizationAddresses-DFhlvSxC.js";import"./payment-policies.vue_vue_type_style_index_0_lang-BQUPSUyI.js";import"./add-or-update-address-modal.vue_vue_type_script_setup_true_lang-EfEQeCT4.js";import"./address-form.vue_vue_type_script_setup_true_lang-OQrHDDSp.js";const V={class:"order-first mb-3 text-base font-bold"},k={class:"mt-10 flex flex-wrap justify-center gap-3 sm:justify-start"},S=h({__name:"payment-result",props:{status:{}},setup(f){const y=f,{placedOrder:m}=b(),e=v(()=>y.status==="success");return(t,C)=>{const _=r("VcTypography"),n=r("VcButton"),g=r("VcEmptyPage");return c(),u(g,{icon:e.value?"outline-payment-successful":"outline-payment-failed","status-color":e.value?"success":"danger",image:"basket.jpg"},{default:a(()=>[l(_,{tag:"h1",class:"order-first mb-3"},{default:a(()=>[o(s(t.$t(e.value?"pages.payment_result.title.success":"pages.payment_result.title.failed")),1)]),_:1}),p("div",V,s(t.$t(e.value?"pages.payment_result.subtitle.success":"pages.payment_result.subtitle.failed",[i(m).number])),1),p("div",null,[o(s(t.$t(e.value?"pages.payment_result.text.success":"pages.payment_result.text.failed"))+" ",1),p("div",k,[e.value?d("",!0):(c(),u(n,{key:0,to:{name:"CheckoutPayment",replace:!0},"prepend-icon":"chevron-left"},{default:a(()=>[o(s(t.$t("common.buttons.payment_details")),1)]),_:1})),l(n,{to:{name:"OrderDetails",params:{orderId:i(m).id}},"prepend-icon":"document-text"},{default:a(()=>[o(s(t.$t("common.buttons.show_order")),1)]),_:1},8,["to"]),e.value?(c(),u(n,{key:1,to:"/"},{default:a(()=>[o(s(t.$t("common.buttons.home")),1)]),_:1})):d("",!0)])])]),_:1},8,["icon","status-color"])}}});export{S as default};
//# sourceMappingURL=payment-result-CIthAZ6-.js.map
