(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[105],{26164:(e,s,t)=>{"use strict";t.d(s,{cn:()=>l});var a=t(61512),r=t(58520);function l(){for(var e=arguments.length,s=Array(e),t=0;t{Promise.resolve().then(t.bind(t,68930))},38240:(e,s,t)=>{"use strict";t.d(s,{SessionProvider:()=>i,w:()=>n});var a=t(69298),r=t(83130);let l=(0,r.createContext)(void 0);function i(e){let{children:s,session:t}=e,[i,n]=(0,r.useState)(t),[d,c]=(0,r.useState)(!0);return(0,r.useEffect)(()=>{n(t),c(!1)},[t]),(0,a.jsx)(l.Provider,{value:{session:i,loading:d},children:s})}function n(){let e=(0,r.useContext)(l);if(void 0===e)throw Error("useSession must be used within a SessionProvider");return e}},46583:(e,s,t)=>{"use strict";t.d(s,{$:()=>c,r:()=>d});var a=t(69298),r=t(83130),l=t(80182),i=t(22554),n=t(26164);let d=(0,i.F)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),c=r.forwardRef((e,s)=>{let{className:t,variant:r,size:i,asChild:c=!1,...o}=e,x=c?l.DX:"button";return(0,a.jsx)(x,{className:(0,n.cn)(d({variant:r,size:i,className:t})),ref:s,...o})});c.displayName="Button"},67110:(e,s,t)=>{"use strict";t.d(s,{k:()=>n});var a=t(69298),r=t(83130),l=t(49359),i=t(26164);let n=r.forwardRef((e,s)=>{let{className:t,value:r,...n}=e;return(0,a.jsx)(l.bL,{ref:s,className:(0,i.cn)("relative h-4 w-full overflow-hidden rounded-full bg-secondary",t),...n,children:(0,a.jsx)(l.C1,{className:"h-full w-full flex-1 bg-primary transition-all",style:{transform:"translateX(-".concat(100-(r||0),"%)")}})})});n.displayName=l.bL.displayName},68930:(e,s,t)=>{"use strict";t.r(s),t.d(s,{default:()=>J});var a=t(69298),r=t(87728),l=t(7290);let i=(0,l.createServerReference)("409fcdd239a83db2cd0fa3bec38b5b07c392831b2e",l.callServer,void 0,l.findSourceMapURL,"getUserAttempts");var n=t(12488),d=t(83130),c=t(84195),o=t(80419),x=t(31029),m=t(10663),u=t(19352),h=t(54235),f=t(33704),g=t(88128),j=t(91034),p=t(38048),N=t(79717),v=t(46583),b=t(8651),w=t(26164);let y=d.forwardRef((e,s)=>{let{className:t,orientation:r="horizontal",decorative:l=!0,...i}=e;return(0,a.jsx)(b.b,{ref:s,decorative:l,orientation:r,className:(0,w.cn)("shrink-0 bg-border","horizontal"===r?"h-[1px] w-full":"h-full w-[1px]",t),...i})});y.displayName=b.b.displayName;var k=t(38240),A=t(67110),S=t(95715),R=t(75304),z=t(96495),Z=t(28574),B=t(62232),D=t(79063),q=t(15893),L=t(88922),C=t(26181),W=t(8463),E=t(10932),T=t(52663),_=t(11630),K=t(54453),M=t(24865),P=t(54878),F=t(7269),I=t(84378),G=t(61940),O=t(29110),$=t(84346);let H={primary:"#3B82F6",success:"#10B981",warning:"#F59E0B",danger:"#EF4444"};function U(e){let{quizzes:s,userAttempts:t=[]}=e,r=s.filter(e=>"active"===e.status).length,l=t.length,i=t.filter(e=>e.passed).length,n=t.length>0?t.reduce((e,s)=>e+s.score,0)/t.length:0,d=r>0?l/r*100:0,c=l>0?i/l*100:0,o=[{name:"Lulus",value:i,color:H.success},{name:"Gagal",value:l-i,color:H.danger},{name:"Belum Dikerjakan",value:r-l,color:"#E5E7EB"}].filter(e=>e.value>0),x=t.sort((e,s)=>new Date(s.submittedAt).getTime()-new Date(e.submittedAt).getTime()).slice(0,5).reverse().map((e,s)=>({quiz:e.quiz.title.length>15?e.quiz.title.substring(0,15)+"...":e.quiz.title,score:e.score,passed:e.passed,date:new Date(e.submittedAt).toLocaleDateString("id-ID",{month:"short",day:"numeric"})})),h=[{range:"Excellent (90-100)",min:90,max:100,color:H.success},{range:"Good (80-89)",min:80,max:89,color:"#84CC16"},{range:"Fair (70-79)",min:70,max:79,color:H.warning},{range:"Poor (< 70)",min:0,max:69,color:H.danger}].map(e=>({category:e.range,count:t.filter(s=>s.score>=e.min&&s.score<=e.max).length,color:e.color})).filter(e=>e.count>0);return(0,a.jsxs)("div",{className:"space-y-6",children:[(0,a.jsx)(N.Zp,{className:"bg-muted",children:(0,a.jsx)(N.Wu,{className:"p-4 lg:p-6",children:(0,a.jsxs)("div",{className:"flex flex-col sm:flex-row sm:items-center justify-between gap-4",children:[(0,a.jsxs)("div",{className:"flex-1",children:[(0,a.jsx)("h2",{className:"text-xl lg:text-2xl font-bold mb-2",children:"Selamat Datang di Dashboard!"}),(0,a.jsx)("p",{className:"text-sm lg:text-base text-muted-foreground",children:"Pantau progress belajar dan hasil kuis Anda di sini"})]}),(0,a.jsxs)("div",{className:"text-center sm:text-right",children:[(0,a.jsxs)("div",{className:"text-2xl lg:text-3xl font-bold",children:[Math.round(n),"%"]}),(0,a.jsx)("div",{className:"text-sm text-muted-foreground",children:"Rata-rata Skor"})]})]})})}),(0,a.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-2 xl:grid-cols-4 gap-4 lg:gap-6",children:[(0,a.jsxs)(N.Zp,{className:"border-l-4 border-l-primary",children:[(0,a.jsxs)(N.aR,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[(0,a.jsx)(N.ZB,{className:"text-sm font-medium",children:"Total Kuis"}),(0,a.jsx)(_.A,{className:"h-4 w-4 text-muted-foreground flex-shrink-0"})]}),(0,a.jsxs)(N.Wu,{children:[(0,a.jsx)("div",{className:"text-2xl font-bold",children:r}),(0,a.jsx)(A.k,{value:d,className:"mt-2"}),(0,a.jsxs)("p",{className:"text-xs text-muted-foreground mt-1",children:[l," dari ",r," selesai (",Math.round(d),"%)"]})]})]}),(0,a.jsxs)(N.Zp,{className:"border-l-4 border-l-green-500",children:[(0,a.jsxs)(N.aR,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[(0,a.jsx)(N.ZB,{className:"text-sm font-medium",children:"Kuis Lulus"}),(0,a.jsx)(K.A,{className:"h-4 w-4 text-green-500 flex-shrink-0"})]}),(0,a.jsxs)(N.Wu,{children:[(0,a.jsx)("div",{className:"text-2xl font-bold",children:i}),(0,a.jsxs)("div",{className:"flex items-center space-x-2 text-xs text-muted-foreground",children:[(0,a.jsx)(M.A,{className:"h-3 w-3 text-green-500 flex-shrink-0"}),(0,a.jsxs)("span",{children:["Tingkat kelulusan: ",Math.round(c),"%"]})]})]})]}),(0,a.jsxs)(N.Zp,{className:"border-l-4 border-l-orange-500",children:[(0,a.jsxs)(N.aR,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[(0,a.jsx)(N.ZB,{className:"text-sm font-medium",children:"Rata-rata Skor"}),(0,a.jsx)(P.A,{className:"h-4 w-4 text-orange-500 flex-shrink-0"})]}),(0,a.jsxs)(N.Wu,{children:[(0,a.jsxs)("div",{className:"text-2xl font-bold",children:[Math.round(n),"%"]}),(0,a.jsxs)("div",{className:"flex items-center space-x-2 text-xs text-muted-foreground",children:[(0,a.jsx)(u.A,{className:"h-3 w-3 flex-shrink-0"}),(0,a.jsx)("span",{children:n>=90?"Excellent!":n>=80?"Good!":n>=70?"Fair":"Needs Improvement"})]})]})]}),(0,a.jsxs)(N.Zp,{className:"border-l-4 border-l-secondary",children:[(0,a.jsxs)(N.aR,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[(0,a.jsx)(N.ZB,{className:"text-sm font-medium",children:"Terakhir Aktif"}),(0,a.jsx)(F.A,{className:"h-4 w-4 text-muted-foreground flex-shrink-0"})]}),(0,a.jsxs)(N.Wu,{children:[(0,a.jsx)("div",{className:"text-lg font-bold",children:t.length>0?new Date(Math.max(...t.map(e=>new Date(e.submittedAt).getTime()))).toLocaleDateString("id-ID",{day:"numeric",month:"short"}):"Belum ada"}),(0,a.jsxs)("p",{className:"text-xs text-muted-foreground",children:[t.length," total percobaan"]})]})]})]}),t.length>0&&(0,a.jsxs)("div",{className:"grid grid-cols-1 xl:grid-cols-2 gap-4 lg:gap-6",children:[(0,a.jsxs)(N.Zp,{children:[(0,a.jsx)(N.aR,{children:(0,a.jsxs)(N.ZB,{className:"flex items-center space-x-2 text-sm lg:text-base",children:[(0,a.jsx)(I.A,{className:"h-4 w-4 lg:h-5 lg:w-5 flex-shrink-0"}),(0,a.jsx)("span",{children:"Status Kuis"})]})}),(0,a.jsxs)(N.Wu,{children:[(0,a.jsx)("div",{className:"h-[200px] sm:h-[250px]",children:(0,a.jsx)(S.u,{width:"100%",height:"100%",children:(0,a.jsxs)(R.r,{children:[(0,a.jsx)(z.F,{data:o,cx:"50%",cy:"50%",innerRadius:40,outerRadius:70,paddingAngle:5,dataKey:"value",children:o.map((e,s)=>(0,a.jsx)(Z.f,{fill:e.color},"cell-".concat(s)))}),(0,a.jsx)(B.m,{})]})})}),(0,a.jsx)("div",{className:"flex flex-wrap justify-center gap-4 mt-4",children:o.map((e,s)=>(0,a.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,a.jsx)("div",{className:"w-3 h-3 rounded-full flex-shrink-0",style:{backgroundColor:e.color}}),(0,a.jsxs)("span",{className:"text-sm",children:[e.name,": ",e.value]})]},s))})]})]}),x.length>0&&(0,a.jsxs)(N.Zp,{children:[(0,a.jsx)(N.aR,{children:(0,a.jsxs)(N.ZB,{className:"flex items-center space-x-2 text-sm lg:text-base",children:[(0,a.jsx)(G.A,{className:"h-4 w-4 lg:h-5 lg:w-5 flex-shrink-0"}),(0,a.jsx)("span",{children:"Performa Terkini"})]})}),(0,a.jsx)(N.Wu,{children:(0,a.jsx)("div",{className:"h-[200px] sm:h-[250px]",children:(0,a.jsx)(S.u,{width:"100%",height:"100%",children:(0,a.jsxs)(D.b,{data:x,margin:{top:20,right:30,left:20,bottom:5},children:[(0,a.jsx)(q.d,{strokeDasharray:"3 3"}),(0,a.jsx)(L.W,{dataKey:"quiz",tick:{fontSize:12},interval:0,angle:-45,textAnchor:"end",height:80}),(0,a.jsx)(C.h,{domain:[0,100],tick:{fontSize:12}}),(0,a.jsx)(B.m,{formatter:e=>["".concat(e,"%"),"Skor"]}),(0,a.jsx)(W.N,{type:"monotone",dataKey:"score",stroke:H.primary,strokeWidth:3,dot:{fill:H.primary,strokeWidth:2,r:6}})]})})})})]})]}),h.length>0&&(0,a.jsxs)(N.Zp,{children:[(0,a.jsx)(N.aR,{children:(0,a.jsxs)(N.ZB,{className:"flex items-center space-x-2 text-sm lg:text-base",children:[(0,a.jsx)(O.A,{className:"h-4 w-4 lg:h-5 lg:w-5 flex-shrink-0"}),(0,a.jsx)("span",{children:"Distribusi Performa"})]})}),(0,a.jsx)(N.Wu,{children:(0,a.jsx)("div",{className:"h-[180px] sm:h-[200px]",children:(0,a.jsx)(S.u,{width:"100%",height:"100%",children:(0,a.jsxs)(E.E,{data:h,margin:{top:20,right:30,left:20,bottom:5},children:[(0,a.jsx)(q.d,{strokeDasharray:"3 3"}),(0,a.jsx)(L.W,{dataKey:"category",tick:{fontSize:11},angle:-45,textAnchor:"end",height:80}),(0,a.jsx)(C.h,{tick:{fontSize:12}}),(0,a.jsx)(B.m,{}),(0,a.jsx)(T.y,{dataKey:"count",radius:[4,4,0,0],children:h.map((e,s)=>(0,a.jsx)(Z.f,{fill:e.color},"cell-".concat(s)))})]})})})})]}),t.length>0&&(0,a.jsxs)(N.Zp,{children:[(0,a.jsx)(N.aR,{children:(0,a.jsxs)(N.ZB,{className:"flex items-center space-x-2",children:[(0,a.jsx)(m.A,{className:"h-5 w-5"}),(0,a.jsx)("span",{children:"Aktivitas Terkini"})]})}),(0,a.jsx)(N.Wu,{children:(0,a.jsx)("div",{className:"space-y-3",children:t.sort((e,s)=>new Date(s.submittedAt).getTime()-new Date(e.submittedAt).getTime()).slice(0,5).map((e,s)=>(0,a.jsxs)("div",{className:"flex items-center justify-between p-3 rounded-lg bg-muted/50",children:[(0,a.jsxs)("div",{className:"flex items-center space-x-3",children:[e.passed?(0,a.jsx)(M.A,{className:"h-5 w-5 text-green-500"}):(0,a.jsx)($.A,{className:"h-5 w-5 text-red-500"}),(0,a.jsxs)("div",{children:[(0,a.jsx)("div",{className:"font-medium",children:e.quiz.title}),(0,a.jsxs)("div",{className:"text-sm text-muted-foreground",children:[e.passed?"Lulus":"Gagal"," - Passing Score: ",e.quiz.passingScore,"%"]})]})]}),(0,a.jsxs)("div",{className:"text-right",children:[(0,a.jsxs)("div",{className:"font-medium text-lg",children:[Math.round(e.score),"%"]}),(0,a.jsx)("div",{className:"text-sm text-muted-foreground",children:new Date(e.submittedAt).toLocaleDateString("id-ID")})]})]},e.id))})})]}),0===t.length&&(0,a.jsx)(N.Zp,{children:(0,a.jsxs)(N.Wu,{className:"text-center py-12",children:[(0,a.jsx)(_.A,{className:"h-12 w-12 text-muted-foreground mx-auto mb-4"}),(0,a.jsx)("h3",{className:"text-lg font-semibold mb-2",children:"Belum Ada Aktivitas"}),(0,a.jsx)("p",{className:"text-muted-foreground mb-4",children:"Anda belum mengerjakan kuis apapun. Mulai dengan memilih kuis yang tersedia!"})]})})]})}function J(){let e=(0,n.useRouter)(),{session:s,loading:t}=(0,k.w)(),[l,b]=(0,d.useState)([]),[w,A]=(0,d.useState)([]),[S,R]=(0,d.useState)({}),[z,Z]=(0,d.useState)(null),[B,D]=(0,d.useState)(null),[q,L]=(0,d.useState)(!0);(0,d.useEffect)(()=>t?void 0:(null==s?void 0:s.user)?s.user.isAdmin?void e.push("/admin"):void(async()=>{L(!0);let e=(await (0,r.q)()).filter(e=>"active"===e.status);if(b(e),s.user){A(await i(s.user.id));let t={};e.forEach(e=>{let a=localStorage.getItem("quiz_attempt_".concat(s.user.email,"_").concat(e.id));if(a){let s=JSON.parse(a);t[e.id]={passed:s.passed,score:s.score}}else t[e.id]=null}),R(t);let a=localStorage.getItem("active_quiz_session_".concat(s.user.email));a&&Z(JSON.parse(a))}L(!1)})():void e.push("/login"),[s,t,e]);let C=(s,t)=>{D(s),e.push(t)};if(t||q)return(0,a.jsx)("div",{className:"flex h-[calc(100vh-4rem)] items-center justify-center",children:(0,a.jsx)(c.A,{className:"h-16 w-16 animate-spin text-primary"})});let W=null==s?void 0:s.user;if(!W)return(0,a.jsx)("div",{className:"flex h-[calc(100vh-4rem)] items-center justify-center",children:(0,a.jsx)("p",{children:"Sesi tidak ditemukan. Mengarahkan ke halaman login..."})});let E=!!z,T=l.filter(e=>!!S[e.id]),_=l.filter(e=>!S[e.id]);return(0,a.jsxs)("div",{className:"container mx-auto py-10 px-4",children:[(0,a.jsxs)("div",{className:"mb-8",children:[(0,a.jsx)("h1",{className:"text-4xl font-bold font-headline",children:"Dasbor Peserta"}),(0,a.jsxs)("p",{className:"text-lg text-muted-foreground",children:["Selamat datang, ",W.name,"! Pantau progress dan pilih kuis untuk memulai."]})]}),(0,a.jsx)("div",{className:"mb-8",children:(0,a.jsx)(U,{quizzes:l,userAttempts:w})}),(0,a.jsxs)("div",{className:"space-y-12",children:[(0,a.jsxs)("div",{children:[(0,a.jsxs)("h2",{className:"text-2xl font-semibold mb-4 flex items-center gap-2",children:[(0,a.jsx)(o.A,{})," Kuis Tersedia"]}),_.length>0?(0,a.jsx)("div",{className:"grid gap-6 md:grid-cols-2 lg:grid-cols-3",children:_.map((e,s)=>{let t=E&&z.quizId===e.id,r=!E||t;return(0,a.jsxs)(N.Zp,{className:"flex flex-col transition-shadow duration-300 ".concat(r?"hover:shadow-lg":"opacity-50 cursor-not-allowed"),children:[(0,a.jsxs)(N.aR,{children:[(0,a.jsx)(N.ZB,{className:"text-xl font-bold",children:e.title}),(0,a.jsx)(N.BT,{className:"mt-1",children:e.description})]}),(0,a.jsxs)(N.Wu,{className:"flex-grow space-y-3",children:[(0,a.jsxs)("div",{className:"flex items-center text-sm text-muted-foreground gap-2",children:[(0,a.jsx)(x.A,{className:"h-4 w-4 text-primary"}),(0,a.jsxs)("span",{children:[e.questions.length," soal"]})]}),(0,a.jsxs)("div",{className:"flex items-center text-sm text-muted-foreground gap-2",children:[(0,a.jsx)(m.A,{className:"h-4 w-4 text-primary"}),(0,a.jsxs)("span",{children:[e.timeLimitSeconds/60," menit"]})]}),(0,a.jsxs)("div",{className:"flex items-center text-sm text-muted-foreground gap-2",children:[(0,a.jsx)(u.A,{className:"h-4 w-4 text-primary"}),(0,a.jsxs)("span",{children:["Skor kelulusan: ",e.passingScore,"%"]})]})]}),(0,a.jsx)(N.wL,{className:"bg-muted/50 p-4",children:(0,a.jsxs)(v.$,{onClick:()=>C(e.id,"/quiz/".concat(e.slug)),className:"w-full",disabled:B===e.id||!r,children:[B===e.id?(0,a.jsx)(c.A,{className:"mr-2 h-4 w-4 animate-spin"}):t?(0,a.jsx)(h.A,{}):(0,a.jsx)(f.A,{}),t?"Lanjutkan Kuis":"Mulai Kuis"]})})]},"".concat(e.id,"-").concat(s))})}):(0,a.jsxs)("div",{className:"flex flex-col items-center justify-center text-center p-12 border-2 border-dashed rounded-lg",children:[(0,a.jsx)(g.A,{className:"h-16 w-16 text-green-500 mb-4"}),(0,a.jsx)("h3",{className:"text-xl font-semibold",children:"Semua Kuis Selesai!"}),(0,a.jsx)("p",{className:"text-muted-foreground",children:"Anda telah menyelesaikan semua kuis yang tersedia. Hebat!"})]})]}),(0,a.jsx)(y,{}),(0,a.jsxs)("div",{children:[(0,a.jsxs)("h2",{className:"text-2xl font-semibold mb-4 flex items-center gap-2",children:[(0,a.jsx)(j.A,{})," Riwayat Kuis"]}),T.length>0?(0,a.jsx)("div",{className:"grid gap-6 md:grid-cols-2 lg:grid-cols-3",children:T.map((e,s)=>{let t=S[e.id];return(0,a.jsxs)(N.Zp,{className:"flex flex-col transition-shadow duration-300 hover:shadow-lg",children:[(0,a.jsxs)(N.aR,{children:[(0,a.jsx)(N.ZB,{className:"text-xl font-bold",children:e.title}),(0,a.jsx)(N.BT,{className:"mt-1",children:e.description})]}),(0,a.jsxs)(N.Wu,{className:"flex-grow space-y-3",children:[(0,a.jsxs)("div",{className:"flex items-center text-sm text-muted-foreground gap-2",children:[(0,a.jsx)(x.A,{className:"h-4 w-4 text-primary"}),(0,a.jsxs)("span",{children:[e.questions.length," soal"]})]}),(0,a.jsxs)("div",{className:"flex items-center text-sm text-muted-foreground gap-2",children:[(0,a.jsx)(m.A,{className:"h-4 w-4 text-primary"}),(0,a.jsxs)("span",{children:[e.timeLimitSeconds/60," menit"]})]}),(0,a.jsxs)("div",{className:"flex items-center text-sm text-muted-foreground gap-2",children:[(0,a.jsx)(u.A,{className:"h-4 w-4 text-primary"}),(0,a.jsxs)("span",{children:["Skor kelulusan: ",e.passingScore,"%"]})]})]}),(0,a.jsxs)(N.wL,{className:"bg-muted/50 p-4 flex flex-col items-stretch gap-4",children:[t&&(0,a.jsxs)("div",{className:"text-center p-2 rounded-md font-semibold text-sm ".concat(t.passed?"bg-green-100 text-green-800":"bg-red-100 text-red-800"),children:[t.passed?"Lulus":"Gagal"," (Skor: ",t.score.toFixed(0),"%)"]}),(0,a.jsxs)(v.$,{onClick:()=>C(e.id,"/quiz/results?quizId=".concat(e.id)),className:"w-full",variant:"outline",disabled:B===e.id,children:[B===e.id?(0,a.jsx)(c.A,{className:"mr-2 h-4 w-4 animate-spin"}):(0,a.jsx)(p.A,{}),"Lihat Hasil"]})]})]},"".concat(e.id,"-").concat(s))})}):(0,a.jsxs)("div",{className:"flex flex-col items-center justify-center text-center p-12 border-2 border-dashed rounded-lg",children:[(0,a.jsx)(j.A,{className:"h-16 w-16 text-muted-foreground mb-4"}),(0,a.jsx)("h3",{className:"text-xl font-semibold",children:"Belum Ada Riwayat"}),(0,a.jsx)("p",{className:"text-muted-foreground",children:"Anda belum menyelesaikan kuis apa pun. Mulai kerjakan kuis dari daftar di atas!"})]})]})]})]})}},79717:(e,s,t)=>{"use strict";t.d(s,{BT:()=>c,Wu:()=>o,ZB:()=>d,Zp:()=>i,aR:()=>n,wL:()=>x});var a=t(69298),r=t(83130),l=t(26164);let i=r.forwardRef((e,s)=>{let{className:t,...r}=e;return(0,a.jsx)("div",{ref:s,className:(0,l.cn)("rounded-lg border bg-card text-card-foreground shadow-sm",t),...r})});i.displayName="Card";let n=r.forwardRef((e,s)=>{let{className:t,...r}=e;return(0,a.jsx)("div",{ref:s,className:(0,l.cn)("flex flex-col space-y-1.5 p-6",t),...r})});n.displayName="CardHeader";let d=r.forwardRef((e,s)=>{let{className:t,...r}=e;return(0,a.jsx)("div",{ref:s,className:(0,l.cn)("text-2xl font-semibold leading-none tracking-tight",t),...r})});d.displayName="CardTitle";let c=r.forwardRef((e,s)=>{let{className:t,...r}=e;return(0,a.jsx)("div",{ref:s,className:(0,l.cn)("text-sm text-muted-foreground",t),...r})});c.displayName="CardDescription";let o=r.forwardRef((e,s)=>{let{className:t,...r}=e;return(0,a.jsx)("div",{ref:s,className:(0,l.cn)("p-6 pt-0",t),...r})});o.displayName="CardContent";let x=r.forwardRef((e,s)=>{let{className:t,...r}=e;return(0,a.jsx)("div",{ref:s,className:(0,l.cn)("flex items-center p-6 pt-0",t),...r})});x.displayName="CardFooter"},87728:(e,s,t)=>{"use strict";t.d(s,{q:()=>r});var a=t(7290);let r=(0,a.createServerReference)("0069a68eb7355a33e2055d9032e54fe9cdf723e463",a.callServer,void 0,a.findSourceMapURL,"getQuizzes")}},e=>{var s=s=>e(e.s=s);e.O(0,[348,221,386,521,801,358],()=>s(28262)),_N_E=e.O()}]);