PageSourceSearch

https://a11y-consultant.netlify.app/assets/UserProfile-CMKEzoV3.js

js a11y-consultant.netlify.app collected 2026-10-03 10:23:51 UTC 2,216 bytes, 1 lines download raw bytes

1import{_ as g,y as h,u as y,b as i,k as P,d as Q,B as b,c as n,a as s,t as a,h as l,i as S,o as d}from"./index-B8kYZif7.js";import{u as M}from"./useMasteryStatus-q6gvOLCz.js";const k={class:"profile-container"},w={key:0,class:"loading"},A={key:1,class:"profile-content"},C={class:"profile-section"},B={class:"info-grid"},q={class:"info-item"},x={class:"value"},z={class:"info-item"},D={class:"value"},E={class:"profile-section"},L={class:"stats-grid"},U={class:"stat-card"},I={class:"stat-value"},N={class:"stat-card"},R={class:"stat-value"},V={class:"stat-card mastered-card"},j={class:"stat-value"},F={__name:"UserProfile",setup(G){const o=h(),f=S();y();const r=i(null),u=i(0),{masteredQuestions:m,attemptedQuestions:H,loading:J}=M();P(()=>{var e;return(e=r.value)!=null&&e.questions_completed?Math.round(r.value.questions_completed):0});const c=i(!0);return o.isAuthenticated||f.push("/"),Q(async()=>{if(o.user)try{const e=await b(o.user.id);r.value=e,e.total_attempts>0&&(u.value=Math.round(e.correct_answers/e.total_attempts*100))}catch(e){console.error("Error fetching user progress:",e)}finally{c.value=!1}}),(e,t)=>{var _,v,p;return d(),n("div",k,[t[8]||(t[8]=s("h2",null,"User Profile",-1)),c.value?(d(),n("div",w," Loading profile data... ")):(d(),n("div",A,[s("div",C,[t[2]||(t[2]=s("h3",null,"Account Information",-1)),s("div",B,[s("div",q,[t[0]||(t[0]=s("span",{class:"label"},"Email:",-1)),s("span",x,a((_=l(o).user)==null?void 0:_.email),1)]),s("div",z,[t[1]||(t[1]=s("span",{class:"label"},"Member Since:",-1)),s("span",D,a(new Date((v=l(o).user)==null?void 0:v.created_at).toLocaleDateString()),1)])])]),s("div",E,[t[7]||(t[7]=s("h3",null,"CPACC Quiz Progress",-1)),s("div",L,[s("div",U,[s("div",I,a(u.value)+"%",1),t[3]||(t[3]=s("div",{class:"stat-label"},"Correct Answers",-1))]),s("div",N,[s("div",R,a(((p=r.value)==null?void 0:p.questions_completed)??0),1),t[4]||(t[4]=s("div",{class:"stat-label"},"Questions Completed",-1))]),s("div",V,[s("div",j,a(l(m)),1),t[5]||(t[5]=s("div",{class:"stat-label"},"Questions Mastered",-1)),t[6]||(t[6]=s("div",{class:"stat-description"},"Questions answered correctly 3+ times",-1))])])])]))])}}},T=g(F,[["__scopeId","data-v-e9ef9180"]]);export{T 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.