import{_ as g,r as m,I as p,g as y,e as b,c,o as r,C as a,a as e,P as v,l as o,T as u,Q as k,F as w,j as $,D as d,t,f}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"},I={class:"fw-bold text-success"},P={class:"message"},Y={key:0,class:"status-card failed"},x={class:"fw-bold text-danger"},N={class:"message"},R={key:0,class:"status-card cancel"},V={class:"fw-bold text-warning"},j={class:"message"},B={key:0,class:"status-card cancel"},E={class:"fw-bold text-warning"},z={class:"message"},D={__name:"PlanEnrollStatus",setup(F){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",C,[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",x,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",j,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",B,[n[3]||(n[3]=e("i",{class:"ri-close-circle-fill icon text-warning"},null,-1)),e("h3",E,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)}}},Q=g(D,[["__scopeId","data-v-3acc7b29"]]);export{Q as default};
