import"./index-DtNTt4xe.js";import{F as h,m as v,P as r,_ as u,R as c,a1 as a,X as m,T as p,a2 as o,a0 as s,e as i,W as d}from"./vendor-d3O24IFR.js";import{u as b}from"./useCheckout-Duk0rK2Z.js";/* empty css                                                                      */import"./address-type.enum-CGCAFS3X.js";/* empty css                                                                     */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"},j=h({__name:"payment-result",props:{status:{}},setup(f){const _=f,{placedOrder:l}=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}),p("div",V,s(t.$t(e.value?"pages.payment_result.subtitle.success":"pages.payment_result.subtitle.failed",[i(l).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})),m(n,{to:{name:"OrderDetails",params:{orderId:i(l).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{j as default};
//# sourceMappingURL=payment-result-BjfEVTIr.js.map
