import{_ as g,r as m,I as p,i as y,f as b,c,s as a,a as e,O as v,x as o,T as u,P as k,F as w,y as $,o as r,G as d,t,e as f}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"},I={class:"fw-bold text-success"},P={class:"message"},Y={key:0,class:"status-card failed"},C={class:"fw-bold text-danger"},N={class:"message"},R={key:0,class:"status-card cancel"},V={class:"fw-bold text-warning"},B={class:"message"},E={key:0,class:"status-card cancel"},j={class:"fw-bold text-warning"},z={class:"message"},F={__name:"PlanEnrollStatus",setup(D){const _=p(),h=b(),l=m(_.query.status);return m(_.query.course_id),y(()=>{_.query.status||h.push("/")}),(s,n)=>{const i=$("router-link");return r(),c(w,null,[a(v),e("main",S,[e("section",T,[e("div",q,[a(u,{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",I,t(s.$t("Congratulations"))+" 🎉",1),e("p",P,t(s.$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(i,{to:"/dashboard",class:"btn btn-primary btn-lg"},{default:o(()=>[f(t(s.$t("Start learning"))+"🚀 ",1)]),_:1})])):d("",!0)]),_:1}),a(u,{name:"fade"},{default:o(()=>[l.value==="failed"||l.value==="fail"?(r(),c("div",Y,[n[1]||(n[1]=e("i",{class:"ri-close-circle-fill icon text-danger"},null,-1)),e("h3",C,t(s.$t("Sorry! Something went wrong"))+" 😢",1),e("p",N,t(s.$t("Please try again. If the problem persists, contact the support team")),1),a(i,{to:"/plan-checkout",class:"btn btn-outline-danger"},{default:o(()=>[f(t(s.$t("Try again"))+" 🔄 ",1)]),_:1})])):d("",!0)]),_:1}),a(u,{name:"fade"},{default:o(()=>[l.value==="cancel"||l.value==="closed"?(r(),c("div",R,[n[2]||(n[2]=e("i",{class:"ri-close-circle-fill icon text-warning"},null,-1)),e("h3",V,t(s.$t("Your payment has been cancelled"))+" ⚠️",1),e("p",B,t(s.$t("You have cancelled the Your payment. If this was a mistake, you can try again")),1),a(i,{to:"/plan-checkout",class:"btn btn-warning"},{default:o(()=>[f(t(s.$t("Try again"))+" 🔄 ",1)]),_:1})])):d("",!0)]),_:1}),a(u,{name:"fade"},{default:o(()=>[l.value==="timeout"?(r(),c("div",E,[n[3]||(n[3]=e("i",{class:"ri-close-circle-fill icon text-warning"},null,-1)),e("h3",j,t(s.$t("Payment Request Timeout"))+" ⚠️",1),e("p",z,t(s.$t("You have cancelled the registration. If this was a mistake, you can try again")),1),a(i,{to:"/plan-checkout",class:"btn btn-warning"},{default:o(()=>[f(t(s.$t("Re-register"))+" 🔄 ",1)]),_:1})])):d("",!0)]),_:1})])])]),a(k)],64)}}},M=g(F,[["__scopeId","data-v-3acc7b29"]]);export{M as default};
