PageSourceSearch

https://schoolhouse.world/_next/static/chunks/pages/classrooms/[id]/certifications-a016af22d962dc00.js

js schoolhouse.world collected 2026-09-24 09:13:06 UTC 8,353 bytes, 3 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3204],{8666:(e,r,o)=>{"use strict";o.d(r,{Ay:()=>g,DX:()=>h,zF:()=>u});var i=o(18153),n=o(59803),t=o(39955),l=o(89099),c=o(81188),d=o(2715),s=o(54443),a=o(85279);let u="All Topics";function h({includeAllTopics:e,excludeOther:r=!1,includeSATBootcamp:o=!1,customWhere:i}){let n=(0,s.I)(),t=(0,l.useRouter)(),c=e?u:null,a=null!=t.query.course?`${t.query.course}`:c,g=n.many(d.A.getAll({excludeOther:r,includeSATBootcamp:o,customWhere:i})).map(e=>e(d.A.name));return e?{course:a,courses:[u].concat(g)}:{course:a,courses:g}}let g=({courses:e,course:r,text:o,width:d="15rem"})=>{let s=(0,l.useRouter)(),u=e.filter(e=>null!=e).map(e=>({label:e,value:e})),h=null==r?u[0]:u.find(e=>e.value===r);return(0,i.FD)(n.s,{align:"center",children:[null==o?null:(0,i.Y)(t.a,{fontWeight:"bold",mr:2,children:o}),(0,i.Y)(t.a,{width:d,children:(0,i.Y)(a.A,{instanceId:"course-finder",name:"course-finder",options:u,defaultValue:h,onChange:e=>{var r;return r=e?.value??"",void s.replace({query:{...s.query,course:r,sort:"coursesequence",page:"1"}}).catch(e=>{c.A.error("Navigation failed",{err:e})})},isClearable:!1,components:{IndicatorSeparator:()=>null}})})]})}},11219:(e,r,o)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/classrooms/[id]/certifications",function(){return o(35114)}])},21847:(e,r,o)=>{"use strict";o.d(r,{Kx:()=>t,Ww:()=>n,nD:()=>c,nZ:()=>l});var i=o(52276);let n=["not-started","in-review","certified","rejected"],t={status:"not-started"},l={"not-started":{bgColor:"bg.subtle",boxColor:"transparent",barColor:"neutrals.emphasized",tableIconColor:"neutrals.focusRing",iconColor:"neutrals.focusRing",icon:i.WWz},"in-review":{bgColor:"bg.warning",boxColor:"warning.solid",barColor:"warning.solid",tableIconColor:"warning.contrast",iconColor:"warning.fg",icon:i.AoE},certified:{bgColor:"bg.success",boxColor:"success.solid",barColor:"success.border",tableIconColor:"success.contrast",iconColor:"success.solid",icon:i.e68},rejected:{bgColor:"bg.error",boxColor:"error.border",barColor:"error.border",tableIconColor:"error.contrast",iconColor:"error.border",icon:i.GRI}},c={"not-started":"Not Started","in-review":"In Review",certified:"Certified",rejected:"Rejected"}},35114:(e,r,o)=>{"use strict";o.r(r),o.d(r,{__N_SSP:()=>K,default:()=>U});var i=o(18153),n=o(76032),t=o(39955),l=o(59803),c=o(82736),d=o(91921),s=o(99407),a=o(63973),u=o(55791),h=o(43043),g=o(2665),p=o(64435),b=o(79736),f=o(89099),A=o(6869),m=o(35525),x=o(78107),C=o(2715),w=o(97390),y=o(76135),Y=o(55720),v=o(4724),_=o(54443),R=o(75292),D=o(15369),I=o(78919),E=o(30778),F=o(16425),j=o(46304),W=o(77489),$=o(97460),S=o(41954),T=o(21847);function z({certificationStatus:e}){return(0,i.FD)(l.s,{padding:"16px",bgColor:T.nZ[e].bgColor,direction:"row",align:"center",rounded:"lg",minW:"152px",minH:"56px",gap:2,children:[(0,i.Y)(l.s,{bgColor:T.nZ[e].boxColor,rounded:"lg",height:"24px",width:"24px",padding:"16px",align:"center",justify:"center",children:(0,i.Y)($.g,{icon:T.nZ[e].icon,color:(0,S.A)(T.nZ[e].tableIconColor),width:"12px",height:"12px"})}),(0,i.Y)(d.E,{fontSize:"md",color:"fg.muted",fontWeight:"semibold",children:T.nD[e]})]})}var N=o(47808);function k({certificationInfo:e,isCourseChallenge:r}){let{status:o,tooltipText:n}=e,{bgColor:t,boxColor:c,icon:d,tableIconColor:s}=T.nZ[o];return(0,i.Y)(p.Td,{bgColor:t,maxH:"56px",borderRight:r?"2px solid":void 0,borderRightColor:r?"border":void 0,children:(0,i.Y)(N.A,{disabled:null==n,content:`${n}`,children:(0,i.Y)(l.s,{justify:"center",children:(0,i.Y)(l.s,{bgColor:c,rounded:"lg",height:"24px",width:"24px",padding:"16px",align:"center",justify:"center",children:(0,i.Y)($.g,{icon:d,color:(0,S.A)(s)})})})})})}var O=o(80730),X=o(13540),q=o(8666),Z=o(49783),H=o(46860),L=o(72968);let P=(0,F.A)(function(){let e=(0,_.I)(),r=(0,f.useRouter)(),o=(0,R.Jd)(),F=(0,v.U)(),$=Number.parseInt(`${r.query.id}`,10),S=e.one(x.A.where({id:$})),P=S(x.A.id),K=S(x.A.title),U=S(x.A.user_id);if(!F.dryRun){if(null==P)throw new D.A("Oh no! This classroom does not exist or has been deleted");if(!(o.id===U||(0,W.OK)(o,"admin:super")))throw new D.A("Oh no! You are not authorized to access this page.")}let{course:B,courses:G}=(0,q.DX)({includeAllTopics:!1,excludeOther:!0}),V=(0,I.Xs)`${null==B?C.A.getDefault():C.A.getByName(B)}`,J=e.one(V),M=J(C.A.name),Q=J.many(y.A.where({courseId:C.A.id,order:[[y.A.weight,"desc"]]},(0,I.Xs)`(ARRAY_LENGTH(${y.A.certification_types}, 1) >= 1)`)),ee=e.many(m.A.where({classroomId:$,include:[{association:"User",required:!0}],order:[[Y.Ay.display_name,"asc"]]}
1)),er=0===ee.length,eo=ee.map(e=>{let r=e.many(A.Ay.where({userId:m.A.user_id,include:[{association:"Topic",required:!0}]},(0,I.Xs)`${y.A.course_id} = (SELECT ${C.A.id} ${V})`)),o={};return r.forEach(e=>{let r=e(y.A.id)??0,i=e(A.Ay.approved_at),n=e(A.Ay.rejected_at),t=null!=i?"certified":null!=n?"rejected":"in-review",l=(0,E.$y)(e(A.Ay.reported_score)??""),c=e(A.Ay.review_reason)??"",d="certified"===t?`Score: ${l}%`:"rejected"===t?`Score: ${l}%
2Rejection Reason: ${c}`:null;o[r]={status:t,tooltipText:d}}),{name:e(Y.Ay.display_name)??"",avatarUrl:e(Y.Ay.avatar_url)??"",progressionLevel:e(Y.Ay.progression_level),id:e(Y.Ay.id)??0,topicIdToCertificationRequests:o}});return(0,i.Y)(Z.A,{title:`${K} - Classifications`,children:(0,i.FD)(n.B,{direction:{base:"column",lg:"row"},flex:1,children:[(0,i.Y)(X.A,{classroom:S}),(0,i.FD)(t.a,{padding:"35px",flex:1,alignItems:"left",maxW:"1080px",children:[(0,i.FD)(l.s,{direction:"column",gap:2,mb:"42px",children:[(0,i.FD)(l.s,{direction:"row",justify:"space-between",align:"center",children:[(0,i.Y)(c.D,{size:"xl",as:"h3",children:M}),(0,i.Y)(q.Ay,{courses:G,course:B,text:"Course"})]}),(0,i.FD)(d.E,{children:["View your students' certification progress in ",M," topics."]})]}),(0,i.Y)(l.s,{direction:"row",align:"center",gap:4,mb:"32px",children:T.Ww.map(e=>(0,i.Y)(z,{certificationStatus:e},e))}),er?(0,i.Y)(O.A,{code:S(x.A.code)??""}):(0,i.Y)(t.a,{overflowX:"scroll",overflowY:"scroll",maxH:"400px",children:(0,i.FD)(s.X,{variant:"simple",children:[(0,i.FD)(a.d,{children:[(0,i.Y)(u.Th,{minW:"224px",position:"sticky",left:"0",top:"0",bg:"bg.panel",borderRight:"2px solid",borderRightColor:"border",zIndex:2,textAlign:"center",children:"Student"}),Q.map(e=>{let r=e(y.A.name),o=r===w.OlA;return(0,i.Y)(N.A,{content:r,children:(0,i.Y)(u.Th,{maxW:o?void 0:"150px",borderRight:o?"2px solid":void 0,borderRightColor:o?"border":void 0,top:"0",bg:"bg.panel",position:"sticky",textAlign:"center",children:(0,i.Y)(d.E,{fontSize:"xs",variant:o?"eyebrow":void 0,fontWeight:o?"extrabold":"bold",noOfLines:2,children:r})})},e(y.A.id)??0)})]}),(0,i.Y)(h.N,{children:eo.map(({id:e,avatarUrl:r,name:o,progressionLevel:n,topicIdToCertificationRequests:t})=>(0,i.FD)(g.Tr,{children:[(0,i.Y)(p.Td,{position:"sticky",left:"0",bg:"bg.panel",zIndex:2,borderRight:"2px solid",borderRightColor:"border",children:(0,i.FD)(b.z,{children:[(0,i.Y)(L.A,{src:r,name:o,size:"sm",progressionLevel:n}),(0,i.Y)(H.A,{href:(0,j.rjF)($,e,"certifications"),color:"fg",children:o})]})}),Q.map(e=>{let r=e(y.A.id)??0,o=e(y.A.name);return(0,i.Y)(k,{certificationInfo:t[r]??T.Kx,isCourseChallenge:o===w.OlA},r)})]},e))})]})})]})]})})},{userRoles:["user:basic"]});var K=!0;let U=P},80730:(e,r,o)=>{"use strict";o.d(r,{A:()=>u});var i=o(18153),n=o(34185),t=o(39955),l=o(59803),c=o(91921),d=o(38890),s=o(52276),a=o(97460);function u({code:e}){let{hasCopied:r,onCopy:o}=(0,n.i)(e);return(0,i.Y)(t.a,{borderRadius:"8px",width:"100%",border:"2px",borderColor:"border",backgroundColor:"bg",children:(0,i.Y)(t.a,{p:"80px",children:(0,i.FD)(l.s,{direction:"column",align:"center",gap:4,children:[(0,i.Y)(c.E,{fontWeight:"bold",color:"fg.subtle",children:"Share your class code for students to join your classroom."}),(0,i.Y)(d.$,{onClick:o,py:"22px",minW:"222px",variant:"outline",children:(0,i.FD)(l.s,{direction:"column",align:"center",children:[(0,i.Y)(c.E,{color:"primary.fg",fontWeight:"medium",fontSize:"10px",lineHeight:"12px",children:!0===r?"Class Code Copied!":"Copy Class Code"}),(0,i.FD)(l.s,{direction:"row",align:"center",gap:3,children:[(0,i.Y)(t.a,{children:(0,i.Y)(a.g,{icon:s.jPR})}),(0,i.Y)(c.E,{color:"primary.fg",children:e})]})]})})]})})})}}},e=>{e.O(0,[6425,8556,636,6593,8792],()=>e(e.s=11219)),_N_E=e.O()}]);
3//# sourceMappingURL=certifications-a016af22d962dc00.js.map

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.