import{M as h,E as v,U as r,R as u,O as c,V as a,X as m,W as l,Z as o,Y as s,e as i,a8 as d}from"./vendor-CsGITfgk.js";import"./index-GCDRvGOr.js";import{u as b}from"./useCheckout-BIeRS8rr.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"},P=h({__name:"payment-result",props:{status:{}},setup(f){const y=f,{placedOrder:p}=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(()=>[m(_,{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{P as default};
//# sourceMappingURL=payment-result-Do_Oc2jE.js.map
