1import{r as s,a3 as h,a2 as n,Z as a,ah as b,aO as f}from"./vendor-mui-BWh-6WAH.js";import{U as S,d as g,S as y,T as w,b as A,Z as l,_ as L,A as T,a as C,n as N,a2 as R,a3 as I}from"./index-Df_dD346.js";import{g as v,s as t}from"./PracticePage.module-MJwZVCdm.js";import{D as x}from"./DataGrid-VOl9ZZ7s.js";import"./__commonjsHelpers__-BosuxZz1.js";import"./vendor-sweetalert2-CokzRhbv.js";import"./HorizontalTabPanel-BgDatnKi.js";import"./CheckBox-BcghMeM6.js";import"./Chip-Chd6695n.js";import"./Tabs.module-7o-Hithh.js";import"./vendor-mui-datatables-5emXELfe.js";import"./index.es-CLmToPHp.js";function z(){const{dispatch:o}=s.useContext(S),[i,c]=s.useState([]),[d,m]=s.useState(!0);s.useEffect(()=>{const e=async()=>{try{const r=await T.get("/api/annotations/user"),{data:u}=r.data;c(u),m(!1)}catch(r){await C(r)}};o(g("Explained Solutions")),o(y("100%")),o(w(!1)),o(A(!0)),e()},[]);const p=[{label:"Problem Code",name:"problemCode",options:{sort:!1,customHeadLabelRender:e=>a("div",{style:{color:"white"},children:e.label})}},{label:"Problem Name",name:"problemData",options:{sort:!1,customBodyRender:e=>a(n,{children:a(N,{href:`${e?.problemLink}`,value:e?.problemName,className:t["m-link"]})}),customHeadLabelRender:e=>a("div",{style:{color:"white"},children:e.label})}},{label:"Language",name:"languageName",options:{customHeadLabelRender:e=>a("div",{style:{color:"white"},children:e.label})}},{label:"Popularity",name:"popularity",options:{customHeadLabelRender:e=>a("div",{style:{color:"white"},children:e.label})}},{label:"View Solution",name:"submissionId",options:{sort:!1,customHeadLabelRender:e=>a("div",{style:{color:"white"},children:e.label}),customBodyRender:e=>a("a",{href:`/viewsolution/${e}`,children:a(b,{"aria-label":"View Solution",component:"span",className:t.tableCTA,size:"large",children:a(f,{fontSize:"small",className:t.forwardIcon})})})}}];return h(n,{children:[v("annotations"),a("div",{className:l(t.recentPracticeContainer,t.dark),children:a("div",{className:l(t.practiceContainer,t.dark),children:a(x,{columns:p,serverSide:!1,fullData:i,muiThemeStyles:L(I,R),noRecordsMessage:d?"Fetching your explained solutions...":"Sorry, no data to display"})})})]})}export{z 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.