import"./index-Bf5vN7WQ.js";import{F as h,m as v,P as r,_ as u,R as c,a1 as a,X as m,T as l,a2 as o,a0 as s,e as i,W as d}from"./vendor-BeMjADS_.js";import{u as b}from"./useCheckout-7y4nce05.js";import"./address-type.enum-CGCAFS3X.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"},N=h({__name:"payment-result",props:{status:{}},setup(f){const _=f,{placedOrder:p}=b(),e=v(()=>_.status==="success");return(t,C)=>{const y=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(()=>[m(y,{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}),l("div",V,s(t.$t(e.value?"pages.payment_result.subtitle.success":"pages.payment_result.subtitle.failed",[i(p).number])),1),l("div",null,[o(s(t.$t(e.value?"pages.payment_result.text.success":"pages.payment_result.text.failed"))+" ",1),l("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})),m(n,{to:{name:"OrderDetails",params:{orderId:i(p).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{N as default};
//# sourceMappingURL=payment-result-Bi5sMz2N.js.map
