import{_ as p,r as g,I as y,g as v,e as b,c,o as r,C as a,a as e,P as k,l as o,T as d,Q as w,F as $,j as I,D as f,t as s,f as _}from"./app-L4cdeQDO.js";/* empty css            */const S={class:"content"},T={class:"enrollment-status d-flex justify-content-center align-items-center"},q={class:"container text-center"},C={key:0,class:"status-card success"},Y={class:"fw-bold text-success"},x={class:"message"},N={key:0,class:"status-card failed"},R={class:"fw-bold text-danger"},V={class:"message"},j={key:0,class:"status-card cancel"},B={class:"fw-bold text-warning"},E={class:"message"},P={key:0,class:"status-card cancel"},z={class:"fw-bold text-warning"},D={class:"message"},F={__name:"EnrollStatus",setup(H){const m=y(),h=b(),l=g(m.query.status),i=g(m.query.course_id);return v(()=>{m.query.status||h.push("/")}),(t,n)=>{const u=I("router-link");return r(),c($,null,[a(k),e("main",S,[e("section",T,[e("div",q,[a(d,{name:"fade"},{default:o(()=>[l.value==="success"?(r(),c("div",C,[n[0]||(n[0]=e("i",{class:"ri-checkbox-circle-fill icon text-success"},null,-1)),e("h3",Y,s(t.$t("Congratulations"))+" 🎉",1),e("p",x,s(t.$t("You have successfully enrolled in the course! Watch your course video lessons, complete assignments, and take quizzes to start your learning journey")),1),a(u,{to:"/play/"+i.value,class:"btn btn-primary btn-lg"},{default:o(()=>[_(s(t.$t("Start learning"))+"🚀 ",1)]),_:1},8,["to"])])):f("",!0)]),_:1}),a(d,{name:"fade"},{default:o(()=>[l.value==="failed"||l.value==="fail"?(r(),c("div",N,[n[1]||(n[1]=e("i",{class:"ri-close-circle-fill icon text-danger"},null,-1)),e("h3",R,s(t.$t("Sorry! Something went wrong"))+" 😢",1),e("p",V,s(t.$t("Please try again. If the problem persists, contact the support team")),1),a(u,{to:"/checkout/"+i.value,class:"btn btn-outline-danger"},{default:o(()=>[_(s(t.$t("Try again"))+" 🔄 ",1)]),_:1},8,["to"])])):f("",!0)]),_:1}),a(d,{name:"fade"},{default:o(()=>[l.value==="cancel"||l.value==="closed"?(r(),c("div",j,[n[2]||(n[2]=e("i",{class:"ri-close-circle-fill icon text-warning"},null,-1)),e("h3",B,s(t.$t("Your payment has been cancelled"))+" ⚠️",1),e("p",E,s(t.$t("You have cancelled the Your payment. If this was a mistake, you can try again")),1),a(u,{to:"/checkout/"+i.value,class:"btn btn-warning"},{default:o(()=>[_(s(t.$t("Try again"))+" 🔄 ",1)]),_:1},8,["to"])])):f("",!0)]),_:1}),a(d,{name:"fade"},{default:o(()=>[l.value==="timeout"?(r(),c("div",P,[n[3]||(n[3]=e("i",{class:"ri-close-circle-fill icon text-warning"},null,-1)),e("h3",z,s(t.$t("Payment Request Timeout"))+" ⚠️",1),e("p",D,s(t.$t("You have cancelled the registration. If this was a mistake, you can try again")),1),a(u,{to:"/checkout/"+i.value,class:"btn btn-warning"},{default:o(()=>[_(s(t.$t("Re-register"))+" 🔄 ",1)]),_:1},8,["to"])])):f("",!0)]),_:1})])])]),a(w)],64)}}},W=p(F,[["__scopeId","data-v-944f8f5f"]]);export{W as default};
