PageSourceSearch

https://hertoghemedicalschool.eu/_nuxt/D6GMC8Cf.js

js hertoghemedicalschool.eu collected 2026-10-04 05:36:47 UTC 10,823 bytes, 1 lines download raw bytes

1import{_ as W}from"./6v8FTlvH.js";import{_ as X}from"./BQLoDy2P.js";import{_ as Y}from"./DnMc_4FV.js";import{a as Z,i as k,j as tt,a4 as et,R as st,o,b as a,g as t,e as u,t as r,F as G,q as A,l as N,f as d,al as nt,x as ot,_ as at,z as lt,I as it,a3 as rt,c as j,h as v,m as i,n as M,af as U,A as H,$ as dt,Z as ct,H as ut}from"./BwKVe53Z.js";import{_ as pt}from"./BmTdTZ_c.js";import{_ as gt}from"./DE96i6TP.js";import{_ as mt}from"./Dnvi7Emk.js";import{u as _t}from"./_oYF-o3C.js";import"./DYlNuAdF.js";import"./BuRhBEhl.js";const ft={class:"bg-white rounded-lg shadow-xl max-w-md w-full mx-4 p-6"},xt={class:"flex items-center justify-between mb-4"},vt={class:"text-sm text-gray-600 mb-6"},yt={class:"flex flex-col gap-3"},bt={class:"flex gap-3 mt-6"},ht=["disabled"],wt=Z({__name:"ExamLanguageSelectorModal",props:{isOpen:{type:Boolean,default:!1},availableLanguages:{type:Array,default:()=>[]},examId:{type:[Number,String,null],default:null},currentLocale:{type:String,default:"en"},isQuiz:{type:Boolean,default:!1}},emits:["close","start"],setup(y,{emit:b}){const g=y,z=b,m=k(null);tt(()=>g.isOpen,p=>{if(p&&g.availableLanguages.length>0){const _=g.availableLanguages.find(w=>w.code===g.currentLocale);m.value=_||g.availableLanguages[0]}});const B=p=>{m.value=p},Q=()=>{m.value&&z("start",m.value)},h=()=>{z("close")};return et(()=>{const p=_=>{_.key==="Escape"&&g.isOpen&&h()};window.addEventListener("keydown",p),st(()=>{window.removeEventListener("keydown",p)})}),(p,_)=>{const w=at;return y.isOpen?(o(),a("div",{key:0,class:"fixed inset-0 z-50 flex items-center justify-center bg-black bg-opacity-50",onClick:nt(h,["self"])},[t("div",ft,[t("div",xt,[_[0]||(_[0]=t("h3",{class:"text-xl font-semibold text-gray-900"}," Select Language ",-1)),t("button",{onClick:h,class:"text-gray-400 hover:text-gray-600 transition-colors"},[u(w,{name:"mdi:close",class:"w-6 h-6"})])]),t("p",vt," Choose the language in which you want to take this "+r(y.isQuiz?"quiz":"exam"),1),t("div",yt,[(o(!0),a(G,null,A(y.availableLanguages,f=>{var C;return o(),N(mt,{key:f.id,language:f,active:((C=d(m))==null?void 0:C.id)===f.id,onChange:q=>B(f)},null,8,["language","active","onChange"])}),128))]),t("div",bt,[t("button",{onClick:h,class:"flex-1 px-4 py-2 border border-gray-300 rounded-lg text-gray-700 hover:bg-gray-50 transition-colors"}," Cancel "),t("button",{onClick:Q,disabled:!d(m),class:"flex-1 px-4 py-2 bg-gradient-primary text-white rounded-lg hover:opacity-90 transition-opacity disabled:opacity-50 disabled:cursor-not-allowed"},r(y.isQuiz?"Start Quiz":"Start Exam"),9,ht)])])])):ot("",!0)}}}),kt=lt(wt,[["__scopeId","data-v-c5ab071e"]]),zt={class:"relative"}
1,Pt={class:"mt-5 contatiner-padding"},$t={class:"bg-white shadow-lg flex flex-col items-center justify-center text-center default-padding-top pb-section-lg"},Ct={class:"flex items-center gap-[16px] lg:flex-row flex-col pt-[23px] px-button-container"},qt=["onClick"],Lt={class:"text-nowrap"},St={class:"contatiner-padding flex items-start lg:flex-row flex-col p-exams-main gap-exams-main"},Et={class:"flex-grow w-full"},jt={key:0,class:"flex items-center justify-center py-20"},Mt={key:1},At={class:"flex items-center justify-between pb-exams-header"},Bt={class:"font-normal leading-[27px] text-[#303031] flex flex-col gap-[15px] fs-exam-text"},Ft={class:"flex items-center justify-between"},It=["onClick"],Nt={key:0,class:"text-gray-600"},Qt={class:"text-small"},Dt={key:1},Vt={class:"flex items-center justify-between mb-1"},Ot={class:"font-medium text-sm"},Tt={key:0},Rt={key:0,class:"text-green-600"},Ut={key:1,class:"text-red-600"},Ht={key:1,class:"text-blue-600"},Zt={class:"text-sm"},Gt={class:"font-bold"},Jt={class:"text-small text-gray-600"},Kt={class:"mt-2"},Wt={class:"h-[12px] bg-[#FBEDE7] w-full rounded-lg overflow-hidden"},Xt={class:"font-normal leading-[27px] text-[#303031] flex flex-col gap-[15px] fs-exam-text"},Yt={class:"flex items-center justify-between"},te=["onClick"],ee={key:0,class:"text-gray-600"},se={class:"text-small"},ne={key:1},oe={class:"flex items-center justify-between mb-1"},ae={class:"font-medium text-sm"},le={key:0},ie={key:0,class:"text-green-600"},re={key:1,class:"text-red-600"},de={key:1,class:"text-blue-600"},ce={class:"text-sm"},ue={class:"font-bold"},pe={class:"text-small text-gray-600"},ge={class:"mt-2"},me={class:"h-[12px] bg-[#FBEDE7] w-full rounded-lg overflow-hidden"},_e={class:"flex justify-center pt-explore-link"},$e=Z({__name:"my-exams",async setup(y){let b,g;const z=it(),{data:m,status:B,refresh:Q}=([b,g]=rt(()=>_t("my-exams",()=>dt("/my-exams"))),b=await b,g(),b),h=j(()=>B.value==="pending"),p=j(()=>m.value?m.value.map(n=>{const e=n.exam_questions_count||0,x=n.total_points||e,l=n.user_exam,P=(l==null?void 0:l.points)??0,$=n.pass_percentage||n.required_points||60,S=x>0?P/x*100:0,s=(l==null?void 0:l.status)||"not_started",c=(l==null?void 0:l.status)==="passed",E=(l==null?void 0:l.status)==="failed";let O=`<div>${n.name}</div>`;if(n.translations&&n.translations.length>0){const K=n.translations.map(T=>{var R;return`${T.name} <span style="color: #9CA3AF;">(${((R=T.language)==null?void 0:R.name)||"Unknown"})</span>`}).join(" • ");O+=`<div style="font-size: 0.75rem; color: #6B7280; margin-top: 0.25rem; text-transform: none;">${K}</div>`}return{title:O,content:n.description,exam:n,totalQuestions:e,totalPoints:x,userPoints:P,progressPercentage:S,passPercentage:$,requiredPoints:Math.ceil(x*$/100),status:s,isPassed:c,isFailed:E,isCompleted:s==="passed"||s==="failed",isInProgress:s==="in_progress",notStarted:!l}}):[]),_=j(()=>p.value.filter(n=>n.exam.is_quiz)),w=j(()=>p.value.filter(n=>!n.exam.is_quiz)),f=k(0),C=[{name:"All"},{name:"Active"},{name:"Completed"}],q=k(!1),F=k([]),L=k(null),I=k(!1),D=n=>{var e,x;if(n.available_languages&&n.available_languages.length>1)F.value=n.available_languages,L.value=n.id,I.value=n.is_quiz||!1,q.value=!0;else{const l=((x=(e=n.available_languages)==null?void 0:e[0])==null?void 0:x.code)||z.params.locale;ct({name:"locale-quiz-quiz",params:{locale:l,quiz:n.id}})}},V=()=>{q.value=!1,F.value=[],L.value=null,I.value=!1},J=n=>{const e=`/${n.code}/quiz/${L.value}`;window.location.href=e,V()};return(n,e)=>{const x=W,l=X,P=Y,$=ut,S=pt;return o(),a("div",zt,[e[20]||(e[20]=t("section",{class:"bg-[#FBEDE7] absolute inset-0 z-[-300] h-exams-bg"},null,-1)),u(x,{right:"",class:"default-padding-top px-6"},{default:v(()=>e[0]||(e[0]=[t("span",{class:"text-white"}," exams ",-1)])),_:1}),t("div",Pt,[t("div",$t,[u(l,null,{default:v(()=>e[1]||(e[1]=[i("My Exams")])),_:1}),t("div",Ct,[(o(),a(G,null,A(C,(s,c)=>t("button",{onClick:E=>f.value=c,key:`button-${c}`,class:M(["text-center justify-center px-[24px] py-[12px] font-medium text-[16px] leading-[26px] gap-[12px] flex items-center lg:w-auto w-full",{"text-white bg-gradient-primary":d(f)==c,"text-[#666666] bg-white border":d(f)!=c}])},[t("span",Lt,r(s.name),1),t("span",{class:M([d(f)==c?"text-white":"text-primary-color"])},"+",2)],10,qt)),64))])])]),t("div",St,[u(gt),t("section",Et,[d(h)?(o(),a("div",jt,e[2]||(e[2]=[t("div",{class:"flex flex-col items-center gap-4"},[t("div",{class:"w-16 h-16 border-4 border-primary-color border-t-transparent roun
1ded-full animate-spin"}),t("p",{class:"text-gray-600"},"Loading exams...")],-1)]))):(o(),a("div",Mt,[t("div",At,[e[3]||(e[3]=t("div",null,null,-1)),t("div",null,[u(P,{title:"Explore More",link:"/certifications"})])]),u(l,{class:"pb-6"},{default:v(()=>e[4]||(e[4]=[i("My Exams")])),_:1}),u(S,{items:d(w)},U({_:2},[A(d(w),(s,c)=>({name:`content-${c+1}`,fn:v(()=>[t("div",Bt,[t("div",Ft,[e[6]||(e[6]=t("p",null,"Exam Progress",-1)),!s.exam.user_exam||!s.exam.user_exam.started_at?(o(),a("button",{key:0,onClick:E=>D(s.exam),class:"text-primary-color hover:scale-110 duration-300 cursor-pointer bg-transparent border-none"}," Start Now ",8,It)):(o(),N($,{key:1,to:{name:"locale-quiz-quiz",params:{quiz:s.exam.id}},class:"text-primary-color hover:scale-110 duration-300"},{default:v(()=>e[5]||(e[5]=[i(" View Exam ")])),_:2},1032,["to"]))]),s.notStarted?(o(),a("div",Nt,[e[7]||(e[7]=t("p",{class:"text-sm"},"Not Started",-1)),t("p",Qt,[i(r(s.totalQuestions)+" questions • Pass: ",1),t("b",null,r(s.passPercentage)+"%",1)])])):(o(),a("div",Dt,[t("div",Vt,[t("p",Ot,[s.isCompleted?(o(),a("span",Tt,[s.isPassed?(o(),a("span",Rt,"✅ Passed")):(o(),a("span",Ut,"❌ Failed"))])):(o(),a("span",Ht,"In Progress"))]),t("p",Zt,[e[8]||(e[8]=i(" Score: ")),t("b",null,r(s.userPoints)+" / "+r(s.totalPoints),1),e[9]||(e[9]=i(" points ")),t("span",Gt,"("+r(Math.round(s.progressPercentage))+"%)",1)])]),t("p",Jt,[e[10]||(e[10]=i(" Required: ")),t("b",null,r(s.passPercentage)+"%",1),e[11]||(e[11]=i(" to pass "))])])),t("div",Kt,[t("div",Wt,[t("div",{class:M(["h-full rounded-lg transition-all duration-300",{"bg-gradient-primary":!s.isCompleted||s.isPassed,"bg-red-500":s.isFailed}]),style:H({width:`${Math.min(100,s.progressPercentage)}%`})},null,6)])])])])}))]),1032,["items"]),u(l,{class:"py-6"},{default:v(()=>e[12]||(e[12]=[i("My Quizzes")])),_:1}),u(S,{items:d(_)},U({_:2},[A(d(_),(s,c)=>({name:`content-${c+1}`,fn:v(()=>[t("div",Xt,[t("div",Yt,[e[14]||(e[14]=t("p",null,"Exam Progress",-1)),!s.exam.user_exam||!s.exam.user_exam.started_at?(o(),a("button",{key:0,onClick:E=>D(s.exam),class:"text-primary-color hover:scale-110 duration-300 cursor-pointer bg-transparent border-none"}," Start Now ",8,te)):(o(),N($,{key:1,to:{name:"locale-quiz-quiz",params:{quiz:s.exam.id}},class:"text-primary-color hover:scale-110 duration-300"},{default:v(()=>e[13]||(e[13]=[i(" View Exam ")])),_:2},1032,["to"]))]),s.notStarted?(o(),a("div",ee,[e[15]||(e[15]=t("p",{class:"text-sm"},"Not Started",-1)),t("p",se,[i(r(s.totalQuestions)+" questions • Pass: ",1),t("b",null,r(s.passPercentage)+"%",1)])])):(o(),a("div",ne,[t("div",oe,[t("p",ae,[s.isCompleted?(o(),a("span",le,[s.isPassed?(o(),a("span",ie,"✅ Passed")):(o(),a("span",re,"❌ Failed"))])):(o(),a("span",de,"In Progress"))]),t("p",ce,[e[16]||(e[16]=i(" Score: ")),t("b",null,r(s.userPoints)+" / "+r(s.totalPoints),1),e[17]||(e[17]=i(" points ")),t("span",ue,"("+r(Math.round(s.progressPercentage))+"%)",1)])]),t("p",pe,[e[18]||(e[18]=i(" Required: ")),t("b",null,r(s.passPercentage)+"%",1),e[19]||(e[19]=i(" to pass "))])])),t("div",ge,[t("div",me,[t("div",{class:M(["h-full rounded-lg transition-all duration-300",{"bg-gradient-primary":!s.isCompleted||s.isPassed,"bg-red-500":s.isFailed}]),style:H({width:`${Math.min(100,s.progressPercentage)}%`})},null,6)])])])])}))]),1032,["items"]),t("div",_e,[u(P,{title:"Buy New Certification",link:"/certifications"})])]))])]),u(kt,{"is-open":d(q),"available-languages":d(F),"exam-id":d(L),"current-locale":d(z).params.locale,"is-quiz":d(I),onClose:V,onStart:J},null,8,["is-open","available-languages","exam-id","current-locale","is-quiz"])])}}});export{$e as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.