import{K as b,B as h,S as c,P as r,M as u,T as a,V as m,U as l,X as o,W as s,b as d,a7 as i}from"./vendor-bSWkQivH.js";import{aM as v}from"./index-Dqv5IkpS.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=b({__name:"payment-result",props:{status:{}},setup(f){const y=f,{placedOrder:p}=v(),e=h(()=>y.status==="success");return(t,B)=>{const _=c("VcTypography"),n=c("VcButton"),g=c("VcEmptyPage");return u(),r(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",[d(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?i("",!0):(u(),r(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:d(p).id}},"prepend-icon":"document-text"},{default:a(()=>[o(s(t.$t("common.buttons.show_order")),1)]),_:1},8,["to"]),e.value?(u(),r(n,{key:1,to:"/"},{default:a(()=>[o(s(t.$t("common.buttons.home")),1)]),_:1})):i("",!0)])])]),_:1},8,["icon","status-color"])}}});export{P as default};
//# sourceMappingURL=payment-result-0F-QQXhm.js.map
