1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./CvhVCtQa.js","./OoBjbzSN.js","./entry.B7XQVWJ8.css","./DK78EyyW.js","./6nZ02ezp.js","./CbJ1gOnd.js","./CLezgTwi.js","./hM8sZM-5.js","./DRwcmeHW.js","./B6jBln0y.js","./B9Uf9vy8.js","./rS3mTLdS.js","./Cr62P2R1.js"])))=>i.map(i=>d[i]); 2import{$ as K,cb as R,D as W,a_ as G,w,bT as X,aZ as Y,p as c,J as h,K as m,b as e,q as p,_ as b,L as n,aH as tt,ab as et,Z as t,av as f,t as l,am as st,ak as at,b4 as ot,b6 as nt,j as d,ac as rt,bV as lt,V as it,cc as dt}from"./OoBjbzSN.js";import{_ as ct}from"./B6jBln0y.js";import{_ as ut}from"./C_wwBWC2.js";import{_ as mt}from"./DaviME7h.js";import{c as _t}from"./Bkrz28my.js";import{u as gt,a as pt,b as xt,c as bt}from"./CeQFl-SM.js";import{_ as ft}from"./C8tdCacw.js";(function(){try{var s=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},i=new s.Error().stack;i&&(s._sentryDebugIds=s._sentryDebugIds||{},s._sentryDebugIds[i]="1e6bba67-9295-48d2-9fa9-be51dc8888cc",s._sentryDebugIdIdentifier="sentry-dbid-1e6bba67-9295-48d2-9fa9-be51dc8888cc")}catch{}})();const y={red:{textClass:"text-rose-500",rgb:"rgb(244 63 94)"},green:{textClass:"text-emerald-500",rgb:"rgb(16 185 129)"},neutral:{textClass:"",rgb:"rgb(100 116 139)"}};function yt(s){return s==null?y.neutral:s?y.green:y.red}const ht=K(()=>R(()=>import("./CvhVCtQa.js"),__vite__mapDeps([0,1,2,3,4,5]),import.meta.url).then(s=>s.default||s.default||s)),vt=_t("components/Exam/ResultQuestions.vue",()=>R(()=>import("./CLezgTwi.js"),__vite__mapDeps([6,7,1,2,8,9,10,11,12]),import.meta.url).then(s=>s.default||s)),kt={class:"flex items-center justify-between gap-2"},Ct={class:"text-lg font-bold tracking-tight text-gray-900 dark:text-highlighted"},wt={class:"flex flex-col md:flex-row items-center gap-16"},Rt={class:"flex flex-col items-center justify-center"},St={class:"grid grid-cols-2 gap-3 flex-1 w-full"},Et={class:"rounded-lg bg-gray-50 dark:bg-muted px-4 py-3"},Dt={class:"inline-flex items-center gap-1.5 text-base font-semibold"},$t={class:"rounded-lg bg-gray-50 dark:bg-muted px-4 py-3"},zt={class:"text-base font-semibold text-gray-900 dark:text-highlighted capitalize"},Tt={class:"rounded-lg bg-gray-50 dark:bg-muted px-4 py-3"},At={class:"text-xs font-medium text-gray-500 dark:text-muted mb-1.5"},Lt={class:"text-base font-semibold tabular-nums text-gray-900 dark:text-highlighted"},Vt={class:"rounded-lg bg-gray-50 dark:bg-muted px-4 py-3"},Bt={class:"text-base font-semibold tabular-nums text-gray-900 dark:text-highlighted"},It={class:"flex flex-col gap-3"},Mt={class:"relative flex h-full items-center justify-between px-3 text-sm font-semibold text-gray-900 dark:text-highlighted tabular-nums"},Pt={class:"truncate"},Nt={class:"shrink-0"},Ot=W({__name:"Result",setup(s){const i=G(),_=Number(i.params.id),g=i.params.certification,S=g.startsWith("ccnp")?"CCNP":"CCNA",{attempt:E,status:D,error:$}=gt(_),{results:z,status:T,error:A}=pt(_),{settings:L}=xt(g),{settings:V}=bt(g),a=d(()=>E.value?.data??null),B=d(()=>z.value?.data??[]),I=d(()=>a.value?.isDemo?V.value?.passRate:L.value?.passRate),M=d(()=>D.value!=="success"||T.value!=="success");w(()=>$.value??A.value,r=>{r?.statusCode===403&&it("/login")},{immediate:!0});const P=d(()=>{const r=a.value?.currentTime??0,o=Math.floor(r/60),u=String(r%60).padStart(2,"0");return`${o} min ${u} secs`}),v=d(()=>yt(a.value?.passed)),N=d(()=>a.value?.rate??0),O=lt(),k=X(()=>O.value?N.value:0,{duration:1e3}),Q=Y().create(ht);return w(a,r=>{"finished"in i.query&&(!r?.passed||r.rate==null||dt(()=>{Q.open({certificationSlug:g,certName:S,rate:Math.round(r.rate??0)})},2e3))},{immediate:!0}),(r,o)=>{const u=ct,U=tt,j=ut,q=mt,F=st,C=et,Z=vt,H=rt;return c(),h(H,{class:"max-w-5xl pt-10 pb-16"},{default:m(()=>[e(M)?(c(),p(b,{key:0},[n(u,{class:"h-44 rounded-2xl mb-12"}),n(u,{class:"h-64 rounded-2xl mb-12"}),n(u,{class:"h-16 rounded-xl mb-6"}),n(u,{class:"h-96 rounded-2xl"})],64)):(c(),p(b,{key:1},[n(U,{to:`/network/${e(g)}/exam-simulator`,icon:"i-material-symbols:arrow-back-rounded",color:"neutral",variant:"soft",size:"lg",class:"rounded-full mb-6","aria-label":"Back"},null,8,["to"]),n(C,{class:"mb-12"},{header:m(()=>[t("div",kt,[t("h2",Ct," Final Score "+l(e(a)?.certification.title),1),e(a)?.isDemo?(c(),h(j,{key:0,label:"Demo",color:"primary",variant:"soft",size:"md"})):at("",!0)])]),default:m(()=>[t("div",wt,[n(q,{value:e(k),class:"shrink-0 size-64","gauge-primary-color":e(v).rgb,"gauge-secondary-color":"light-dark(var(--color-gray-100), var(--ui-bg-accented))","circle-stroke-width":10},{default:m(()=>[t("div",Rt,[t("span",{class:f(["text-4xl font-bold tabular-nums",e(v).textClass])},l(Math.round(e(k)))+"% ",3),o[0]||(o[0]=t("span",{class:"text-xs uppercase tracking-wider font-semibold text-gray-500 dark:text-muted mt-1"}," Score ",-1))])]),_:1},8,["value","gauge-primary-color"]),t("div",St,[t("div",Et,[o[1]||(o[1]=t("p",{class:"text-xs font-medium text-gray-500 dark:text-muted mb-1.5"},"Result",-1)),t("p",Dt,[n(F,{name:e(a)?.passed?"i-material-symbols:check-circle-rounded":"i-material-symbols:cancel-rounded",class:f(["size-4",e(a)?.passed?"text-emerald-500":"text-rose-500"])},null,8,["name","class"]),t("span",{class:f(e(a)?.passed?"text-emerald-700":"text-rose-700")},l(e(a)?.passed?"Passed":"Failed"),3)])]),t("div",$t,[o[2]||(o[2]=t("p",{class:"text-xs font-medium text-gray-500 dark:text-muted mb-1.5"},"Mode",-1)),t("p",zt,l(e(a)?.mode),1)]),t("div",Tt,[t("p",At,l(e(a)?.mode==="study"?"Questions":"Duration"),1),t("p",Lt,l(e(a)?.mode==="study"?e(a)?.totalQuestions:e(P)),1)]),t("div",Vt,[o[3]||(o[3]=t("p",{class:"text-xs font-medium text-gray-500 dark:text-muted mb-1.5"},"Pass rate",-1)),t("p",Bt,l(e(I)??"â")+"% ",1)])])])]),_:1}),n(C,{class:"mb-12"},{header:m(()=>[...o[4]||(o[4]=[t("h2",{class:"text-lg font-bold tracking-tight text-gray-900 dark:text-highlighted"}," Section Analysis ",-1)])]),default:m(()=>[t("div",It,[(c(!0),p(b,null,ot(e(a)?.ratePerTopic,(x,J)=>(c(),p("div",{key:J,class:"relative h-10 rounded bg-gray-50 dark:bg-muted overflow-hidden"},[t("div",{class:"absolute inset-y-0 left-0 bg-blue-200 dark:bg-primary/40 transition-all duration-700",style:nt({width:`${x.rate}%`})},null,4),t("div",Mt,[t("span",Pt,l(x.title),1),t("span",Nt,l(x.rate)+"%",1)])]))),128))])]),_:1}),n(Z,{"hydrate-on-visible":"","questions-result":e(B)},null,8,["questions-result"])],64))]),_:1})}}}),Qt=Object.assign(Ot,{__name:"ExamResult"}),Ut={};function jt(s,i){const _=Qt;return c(),h(_)}const Xt=ft(Ut,[["render",jt]]);export{Xt 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.