1import{_ as p}from"./SubmitButton.be4aeb14.js";import{r as h,u as f,a as b,d as g,e as s,t,m as e,g as o,f as l,w as n,j as v,_ as w,k as x,n as y}from"./entry.ca6fca3d.js";import{u as d}from"./useSnackbar.a60946ea.js";import{_ as k}from"./robot.673eced5.js";import{_ as C}from"./eotd.94b090b9.js";import{_ as A}from"./cotw.c4b1f6f5.js";import"./useSnackbarStore.9fd4bd50.js";const T=""+globalThis.__publicAssetsURL("images/badge.png"),V=""+globalThis.__publicAssetsURL("images/certificate.png"),N={class:"grow w-full h-full flex flex-col"},S={class:"flex flex-col grow justify-between"},j={class:"space-y-6"},B={class:"rounded-xl w-full p-4 md:p-8 bg-gradient-to-tl from-primary-200 to-primary-500 text-white flex justify-between relative h-36 mt-12"},D={class:"text-2xl mb-3"},M={class:"font-semibold"},O=s("p",null,"Welcome to your dashboard",-1),R=s("img",{src:k,alt:"robot",class:"h-52 w-auto absolute right-0 -bottom-6"},null,-1),U={class:"grid grid-cols-1 sm:grid-cols-2 xl:grid-cols-4 gap-4 md:gap-8"},E={class:"stat-card"},H=s("img",{src:T,alt:"badge"},null,-1),L=s("div",null,"Unclaimed Credits",-1),W={class:"stat-card"},$=s("img",{src:V,alt:"badge"},null,-1),P=s("div",null,"Certificates",-1),q={class:"stat-card"},z=s("img",{src:C,alt:"badge"},null,-1),F=s("div",null,"Missed EOTDs",-1),G={class:"stat-card"},I=s("img",{src:A,alt:"badge"},null,-1),J=s("div",null,"Missed COTWs",-1),_="Dashboard",is={__name:"index",setup(K){const c=h(!1);f({title:_});const a=b().user,m=async()=>{c.value=!0;try{const i=await y("POST","cme/redeem");d().show(i.message,"success"),window.location.reload()}catch(i){d().show(i.data.message,"error")}c.value=!1};return(i,X)=>{const u=p,r=w;return x(),g("form",N,[s("div",null,[s("div",{class:"text-xl text-slate-800 font-bold border-b border-slate-200"},[s("span",{class:"mb-5 block"},t(_))])]),s("div",S,[s("div",j,[s("section",B,[s("div",null,[s("span",D,[e(" Hey "),s("span",M,t(o(a).first_name),1),e(" ! ð ")]),O]),R]),s("div",U,[s("div",E,[H,s("section",null,[s("span",null,t(o(a).unclaimed_credits),1),L]),l(u,{onClick:v(m,["prevent"]),class:"btn btn-sm primary",loading:o(c)},{default:n(()=>[e(" Redeem Now ")]),_:1},8,["onClick","loading"])]),s("div",W,[$,s("section",null,[s("span",null,t(o(a).certificates.length),1),P]),l(r,{to:{name:"account-certificates"},class:"btn btn-sm primary"},{default:n(()=>[e(" View Certificates ")]),_:1})]),s("div",q,[z,s("section",null,[s("span",null,t(o(a).missed_eotds),1),F]),l(r,{to:{name:"echo-of-the-day-archive"},class:"btn btn-sm primary"},{default:n(()=>[e(" View Archive ")]),_:1})]),s("div",G,[I,s("section",null,[s("span",null,t(o(a).missed_cotws),1),J]),l(r,{to:{name:"case-of-the-week-archive"},class:"btn btn-sm primary"},{default:n(()=>[e(" View Archive ")]),_:1})])])])])])}}};export{is 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.