import{_ as y,r as h,I as p,i as v,f as b,c,s as a,a as e,O as k,x as o,T as d,P as w,F as $,y as I,o as r,G as f,t as s,e as _}from"./app-C3pBWUn1.js";/* empty css            */const S={class:"content"},T={class:"enrollment-status d-flex justify-content-center align-items-center"},q={class:"container text-center"},x={key:0,class:"status-card success"},Y={class:"fw-bold text-success"},C={class:"message"},N={key:0,class:"status-card failed"},R={class:"fw-bold text-danger"},V={class:"message"},B={key:0,class:"status-card cancel"},E={class:"fw-bold text-warning"},P={class:"message"},j={key:0,class:"status-card cancel"},z={class:"fw-bold text-warning"},F={class:"message"},D={__name:"EnrollStatus",setup(G){const m=p(),g=b(),l=h(m.query.status),i=h(m.query.course_id);return v(()=>{m.query.status||g.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",x,[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",C,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",B,[n[2]||(n[2]=e("i",{class:"ri-close-circle-fill icon text-warning"},null,-1)),e("h3",E,s(t.$t("Your payment has been cancelled"))+" ⚠️",1),e("p",P,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",j,[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",F,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)}}},O=y(D,[["__scopeId","data-v-944f8f5f"]]);export{O as default};
