PageSourceSearch

https://www.gimkit.com/assets/App-CAH-81Va.js

js gimkit.com collected 2026-10-01 10:37:07 UTC 5,031 bytes, 1 lines download raw bytes

1import{y as T,j as t,E as b,n as k,z as w,r as n,f as I,C as N,T as A,A as E}from"./index-CkxI7_WM.js";import{u as G,C as F,G as S,a as L,c as M,b as O}from"./App-DxoVudNF.js";import{u as V}from"./useQuery-DbC7gnmj.js";import{N as x}from"./NavigateTo-cV2zPRFW.js";import{a as _,b as $,u as z,R as W}from"./ReportAccuracyMeter-TDuShi8e.js";import{R as q}from"./ReportParticipantsAndGroups-A61igSmE.js";import{F as H}from"./useClasses-t6MuFVNo.js";import{U as K}from"./App-CaoaI4KF.js";import"./Paper-B9iUGaZa.js";import"./index-B25mdQOF.js";import"./index-DCFcQ57T.js";import"./index-bxckgtGi.js";import"./context-D63U_AGn.js";import"./index-DKkH-j24.js";import"./index-B12w7PGS.js";import"./index-B-rKDuQH.js";import"./move-B6cBRaci.js";import"./useForm-8qfugZPm.js";import"./useBreakpoint-KHRag4rm.js";import"./useForceUpdate-DuaZduwR.js";import"./QuestionCircleOutlined-BCzktR0X.js";import"./FontAwesomeIcon-Cw_yUsQx.js";import"./CheckOutlined-4V3W3aKD.js";import"./EditOutlined-C0-AixKr.js";import"./UsergroupAddOutlined-Dxzdp3Sm.js";import"./DeleteOutlined-GAB2NDiE.js";import"./StopPropagation-jekF225_.js";import"./App-BtYAFvNv.js";import"./Shortcut-WBrbH8xl.js";import"./Names-DfDh6qGd.js";import"./AccessibleAnchor-FhDwE-9_.js";import"./App-CnLCqXOS.js";import"./mobxreact.esm-BvpPUWv7.js";import"./index-W1bcsZ7K.js";import"./index-B2aNdC7z.js";import"./index-C8khnLkM.js";import"./colors-DeP7YnlJ.js";import"./motion-BmzJ48FE.js";import"./useWarningOnMountInDevelopment-BnBGySFR.js";import"./getCloudinaryUrl-Drn97BLG.js";import"./polished.esm-CWrCz8BX.js";import"./inheritsLoose-CPkBXjuP.js";import"./progress-CMzrAa3P.js";import"./styleChecker-DPpYXhNV.js";import"./index-DoGsramQ.js";import"./DownOutlined-WRNDoWPE.js";import"./index-CwRPpT5r.js";import"./useBubbleLock-BW1BgTpz.js";import"./index-CfVE_-58.js";import"./Sizes-BhgpZp_e.js";import"./price-1Xs9YDh1.js";import"./TrackPostHogEvent-DoQSMGhn.js";import"./StarOutlined-koaMvy06.js";const U="group-reports",B=(e,r)=>V({queryKey:[U,r,{page:e}],keepPreviousData:!0,staleTime:1e3*60,retry:2,queryFn:()=>T({url:"/api/game-report/fetch-all",data:{page:e,groupId:r}})}),c=35,Q=e=>e.totalItems?t.jsxs("div",{id:"group-reports-container",className:"maxWidth",children:[t.jsx(b,{theme:{components:{Table:{cellPaddingBlock:16,cellPaddingInline:c}}},children:t.jsx(H,{className:"maxWidth",dataSource:e.data.map(r=>({key:r._id,...r})),columns:Y,bordered:!0,pagination:!1,tableLayout:"auto",size:"large",onRow:r=>({onClick:()=>{x(`/report/${r._id}`)},style:{cursor:"pointer"}}),loading:{spinning:e.isFetching,indicator:null},sticky:{offsetHeader:e.containerTopOffset,getContainer:()=>document.getElementById("group-reports-container")}})}),e.pagination?t.jsx("div",{className:"maxWidth flex-center",style:{padding:`${c}px 0px`},children:e.pagination}):null]}):t.jsxs("div",{style:{padding:c,flex:1},className:"flex-column flex-center",children:[t.jsx("img",{src:"/client/img/dashboard/report.svg",style:{height:80}}),t.jsxs("div",{style:{textAlign:"center",fontSize:"1.15em",marginTop:10},children:["Check back here after you host a live game or assignment with this class! ",t.jsx("br",{}),"All their reports will be displayed here for you to easily check in on their progress."]})]}),Y=[{title:"Kit",dataIndex:"kit",key:"report-kit",render:(e,r)=>t.jsx(_,{kit:e,dateId:r._id,assignmentId:r.mapAssignment})},{title:"Accuracy",dataIndex:"accuracy",key:"report-accuracy",render:e=>t.jsx($,{percent:e})},{title:"Participants",dataIndex:"groups",key:"report-groups",render:(e,r)=>t.jsx(q,{reportId:r._id,participants:r.participants,groups:[]})}],Yt=()=>{const{id:e}=k(),[r,h]=w(),p=Math.max(1,Number(r.get("page"))??1),{isLoading:y,error:m,data:o}=G(e),{isLoading:j,error:l,data:i,isFetching:P}=B(p,e),[v,C]=n.useState(0),d=n.useRef(null);z(d,s=>{var f;C(((f=s.target)==null?void 0:f.offsetTop)??0)});const a=n.useMemo(()=>{if(m)return m;if(l)return l},[m,e,o,l]);n.useEffect(()=>{window.scrollTo(0,0)},[p]);const u=!i||!i.totalItems?null:t.jsx(W,{total:i.totalItems,current:p,onPageChange:s=>{h({page:s})}}),R=()=>{var s;return y||j?t.jsx(E,{paragraph:{rows:4},title:!1,active:!0,className:"maxWidth",style:{padding:35}}):a?t.jsx("div",{style:{padding:35},children:((s=a==null?void 0:a.message)==null?void 0:s.text)||"There was an error fetching this class. Please try again."}):t.jsx(Q,{data:(i==null?void 0:i.items)??[],pagination:u,containerTopOffset:v,isFetching:P,totalItems:(i==null?void 0:i.totalItems)??0})},g=I();return t.jsxs(F,{style:g?void 0:{filter:"blur(4px)"},children:[t.jsx(K,{id:"class progress",visible:!g,copy:{title:"View class progress with Pro",de
1scription:`To view all reports for a class in one place, upgrade to ${N} Pro.`},close:()=>{x(`/class/${e}`)}}),t.jsx(A,{title:o!=null&&o.name?`${o==null?void 0:o.name} | Reports`:"Class Reports"}),t.jsx(S,{id:e}),t.jsxs(L,{ref:d,children:[a?t.jsx("div",{style:{height:35}}):t.jsx(M,{data:o,customRightComponent:u}),t.jsx(O,{className:"flex",style:{padding:0},children:R()})]})]})};export{Yt 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.