1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3768],{66928:function(e,t,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/teacher/queue",function(){return i(75452)}])},93005:function(e,t){"use strict";t.Z={src:"/_next/static/media/CloseProblemIcon.4217f8ed.svg",height:60,width:60,blurWidth:0,blurHeight:0}},30525:function(e,t,i){"use strict";i.d(t,{U:function(){return S}});var n=i(85893),o=i(99226),r=i(15861),l=i(26447),s=i(83321),a=i(67294),d=i(7631),c=i(33489),h=i(51049),u=i(11163),m=i(25675),x=i.n(m),p={src:"/_next/static/media/StartIcon.16878997.svg",height:24,width:24,blurWidth:0,blurHeight:0},v={src:"/_next/static/media/EndIcon.93182da8.svg",height:24,width:25,blurWidth:0,blurHeight:0},g=i(22120),f=i(81134),j=i(73123);let w=()=>(0,a.useContext)(j.u),b={title:{color:"#5E6163",marginBottom:"5px"},datetime:{color:"#44484A",fontSize:"34px",fontWeight:500,lineHeight:"42px"},datetimeHorizontal:{color:"#44484A",fontSize:"24px",fontWeight:500},buttonRow:{marginTop:"28px"},bottomButton:{marginTop:"24px"},iconContainer:{borderRadius:"5px",width:"40px",height:"40px",display:"flex",justifyContent:"center",alignItems:"center"}},Z=()=>(0,n.jsx)(o.Z,{sx:{...b.iconContainer,background:"#EDF4E3"},children:(0,n.jsx)(x(),{src:p,alt:"Start",width:24,height:24})}),C=()=>(0,n.jsx)(o.Z,{sx:{...b.iconContainer,background:"#ECF3F9"},children:(0,n.jsx)(x(),{src:v,alt:"Start",width:24,height:24})}),S=e=>{let t=(0,d.m)(),i=(0,u.useRouter)(),{t:m}=(0,g.$G)(),{shifts:x,refreshShifts:p}=(0,c.b)(),{showConfirmation:v}=(0,f.p)(),{setshiftActive:j}=w(),[S,y]=a.useState(),T=async()=>{try{if(!S)return;let e=await v({title:m("teacherUpcomingShiftComponent.startShiftDialogTitle"),message:m("teacherUpcomingShiftComponent.startShiftDialogDescription"),confirmButtonText:m("teacherUpcomingShiftComponent.startShiftDialogConfirmButtonLabel")});if(!e)return;let i=await t.shift.startShift(S.id);if(!i.ok)throw Error(i.error.message);j(!0),y(i.data),p()}catch(e){console.error(e)}},k=async()=>{try{if(!S)return;let e=await v({title:m("teacherUpcomingShiftComponent.endShiftDialogTitle"),message:m("teacherUpcomingShiftComponent.endShiftDialogDescription"),confirmButtonText:m("teacherUpcomingShiftComponent.endShiftDialogConfirmButtonLabel"),primaryButtonColor:"error"});if(!e)return;let i=await t.shift.endShift(S.id);if(!i.ok)throw Error(i.error.message);j(!1),y(i.data),p()}catch(e){console.error(e)}};return(a.useEffect(()=>{if(!x)return;let e=new Date,t=x.find(t=>{let i=new Date(t.endTime);return i>e});y(t)},[x]),S)?(0,n.jsxs)(o.Z,{sx:{marginBottom:e.horizontal?"16px":void 0},children:[!e.horizontal&&(0,n.jsx)(r.Z,{sx:b.title,children:m("teacherUpcomingShiftComponent.title")}),!e.horizontal&&(0,n.jsx)(r.Z,{sx:b.datetime,children:new Date(S.startTime).toLocaleDateString("sv-se",{year:"numeric",month:"long",day:"numeric"})}),!e.horizontal&&(0,n.jsx)(r.Z,{sx:b.datetime,children:P(S)}),(0,n.jsxs)(l.Z,{direction:"row",alignItems:e.horizontal?"center":void 0,spacing:3,sx:e.horizontal?void 0:b.buttonRow,children:[(0,n.jsx)(s.Z,{startIcon:(0,n.jsx)(Z,{}),onClick:T,disabled:null!==S.started||!(()=>{let e=new Date,t=new Date(S.startTime),i=t.getTime()-e.getTime();return 10>=Math.floor(i/1e3/60)})(),children:m("teacherUpcomingShiftComponent.startShiftButtonLabel")}),(0,n.jsx)(s.Z,{startIcon:(0,n.jsx)(C,{}),onClick:k,disabled:null===S.started||null!==S.ended,children:m("teacherUpcomingShiftComponent.endShiftButtonLabel")}),e.horizontal&&(0,n.jsx)(r.Z,{sx:b.datetimeHorizontal,children:P(S)})]}),!e.hideButton&&(0,n.jsx)(h.KM,{sx:b.bottomButton,onClick:()=>i.push("/teacher/queue"),children:m("teacherUpcomingShiftComponent.viewShiftButtonLabel")})]}):(0,n.jsx)("div",{children:m("teacherUpcomingShiftComponent.noUpcomingShiftsMessage")})};function P(e){if(!e||!e.startTime||!e.endTime)return;new Intl.DateTimeFormat("sv-SE",{month:"short",day:"numeric"}).format(new Date(e.startTime));let t=new Date(e.startTime).toLocaleTimeString("sv-se",{hour:"2-digit",minute:"2-digit"}),i=new Date(e.endTime).toLocaleTimeString("sv-se",{hour:"2-digit",minute:"2-digit"});return"".concat(t," - ").concat(i)}},96821:function(e,t,i){"use strict";i.r(t);var n=i(85893),o=i(6585),r=i(16628),l=i(34386),s=i(93946),a=i(88
1085),d=i(25675),c=i.n(d);i(67294);var h=i(63730);let u=e=>{let t=()=>{e.onClose()},i=()=>{let t=window.open();t?t.document.write('<img src="'.concat(e.src,'" alt="attachment" />')):console.error("Unable to open new window. Please check your browser settings.")};return(0,n.jsx)(o.Z,{in:!0,children:(0,n.jsx)(r.Z,{in:!0,children:(0,n.jsxs)(a.Z,{style:m,children:[(0,n.jsxs)(a.Z,{direction:"row",spacing:2,sx:{width:"100%",position:"absolute",top:0,display:"flex",justifyContent:"end",padding:3},children:[(0,n.jsx)(l.Z,{title:"\xd6ppna i ny flik",placement:"top",children:(0,n.jsx)(s.Z,{onClick:i,children:(0,n.jsx)(h.Z,{icon:"mdi:dock-window",fontSize:25,color:"white"})})}),(0,n.jsx)(s.Z,{onClick:t,children:(0,n.jsx)(h.Z,{icon:"mdi:close",fontSize:25,color:"white"})})]}),(0,n.jsx)(c(),{style:{width:"100%",height:"100%",objectFit:"contain",objectPosition:"center"},width:200,height:200,src:e.src,alt:e.alt})]})})})};t.default=u;let m={width:"100%",height:"100%",objectFit:"cover",objectPosition:"center",position:"absolute",zIndex:99,display:"flex",justifyContent:"center",alignItems:"center",background:"#000000e3",borderRadius:15}},75452:function(e,t,i){"use strict";i.r(t),i.d(t,{default:function(){return et}});var n=i(85893),o=i(67294),r=i(26447),l=i(86886),s=i(67358),a=i(38895),d=i(15861),c=i(22797),h=i(78462),u=i(19294),m=i(98619),x=i(18987),p=i(87952),v=i(59334),g=i(66242),f=i(99226),j=i(78445),w=i(44267),b=i(65450),Z=i(9974),C=i(89007),S=i(50135),P=i(7631),y=i(55008),T=i(45013),k={src:"/_next/static/media/JoinRoomIcon.93167616.svg",height:60,width:60,blurWidth:0,blurHeight:0},D={src:"/_next/static/media/ResolvedIcon.1e578c59.svg",height:60,width:60,blurWidth:0,blurHeight:0},I=i(93005),B=i(34386),E=i(93946),R=i(25675),q=i.n(R),z=i(22120),N=i(18152);let _=()=>(0,n.jsx)(q(),{src:k,alt:"Overview",width:60,height:60}),U=()=>(0,n.jsx)(q(),{src:D,alt:"FocusRoom",width:60,height:60}),W=()=>(0,n.jsx)(q(),{src:I.Z,alt:"PublicRoom",width:60,height:60}),L=e=>{let{t}=(0,z.$G)(),i=()=>{e.onJoinStudentRoom()},o=()=>{e.onProblemResolved()},r=()=>{e.onCancel()};return(0,n.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",width:"50%",marginTop:"20px",marginLeft:"auto",marginRight:"auto"},children:[(0,n.jsx)(N.Rs,{children:(0,n.jsx)(B.Z,{title:t("teacherPage.queue.joinRoomButtonTooltip"),placement:"top",children:(0,n.jsx)(E.Z,{onClick:i,children:(0,n.jsx)(_,{})})})}),(0,n.jsx)(N.Rs,{children:(0,n.jsx)(B.Z,{title:t("teacherPage.queue.resolveProblemButtonTooltip"),placement:"top",children:(0,n.jsx)(E.Z,{onClick:o,children:(0,n.jsx)(U,{})})})}),(0,n.jsx)(N.Rs,{children:(0,n.jsx)(B.Z,{title:t("teacherPage.queue.cancelProblemButtonTooltip"),placement:"top",children:(0,n.jsx)(E.Z,{onClick:r,children:(0,n.jsx)(W,{})})})})]})};var F=i(30381),H=i.n(F),J=i(96821),A=i(23918),O=i(63730);let M=e=>{let t=e.match(/^data:([a-zA-Z0-9]+\/[a-zA-Z0-9-.+]+);base64,/);return t?t[1]:null},G=e=>{let t=M(e);return t?t.startsWith("image/")?"Image":t.startsWith("application/pdf")?"PDF":t.startsWith("video/")?"Video":t.startsWith("application/vnd.openxmlformats-officedocument.wordprocessingml.document")?"Word Document":t.startsWith("application/vnd.openxmlformats-officedocument.spreadsheetml.sheet")?"Excel Spreadsheet":t.startsWith("application/vnd.openxmlformats-officedocument.presentationml.presentation")?"PowerPoint Presentation":"Unknown":"Unknown"};var $=i(81134),K=i(33489);let X=e=>{let{t}=(0,z.$G)();return(0,n.jsx)(f.Z,{sx:{maxHeight:"100%"},children:e.bookedPasses.map((i,o)=>{var r,l,s,a,c,h;return(0,n.jsxs)(f.Z,{sx:{display:"flex",alignItems:"center",...o!==e.bookedPasses.length-1?{mb:5.3}:{}},children:[(0,n.jsx)(p.Z,{src:(null===(r=i.user)||void 0===r?void 0:null===(l=r.avatar)||void 0===l?void 0:l.src)||"",sx:{mr:3,width:38,height:38}}),(0,n.jsxs)(f.Z,{sx:{width:"100%",display:"flex",flexWrap:"wrap",alignItems:"center",justifyContent:"space-between"},children:[(0,n.jsxs)(f.Z,{sx:{mr:2,display:"flex",mb:.4,flexDirection:"column"},children:[(0,n.jsx)(d.Z,{sx:{fontWeight:500,lineHeight:1.71,letterSpacing:"0.22px",fontSize:"0.875rem !important"},children:"".concat(null===(s=i.user)||void 0===s?void 0:s.firstName," ").concat(null===(a=i.user)||void 0===a?void 0:a.lastName)}),(0,n.jsxs)(f.Z,{sx:{display:"flex",alignItems:"center","& svg":{mr:1,color:"text.secondary",verticalAlign:"middle"}},children:[(0,n.jsx)(O.Z,{fontSize:"0.875rem",icon:"mdi:calendar-blank-outline"}),(0,n.jsx)(d.Z,{variant:"caption",children:null===(c=i.shift)||void 0===c?void 0:c.name})]})]}),(0,n.jsx)(B.Z,{title:t("teacherPage.queue.journal"),placement:"top",children:(0,n.jsx)(E.Z,{onClick:()=>e.onOpenJournal(i.user),children:(0,n.jsx)(O.Z,{icon:"mdi:playlist-edit",fontSize:20})})})]})]},null===(h=i.user)||void 0===h?void 0:h.id)})})};var V=i(54476),Q=i(30525);let Y=()=>(0,n.jsx)(O.Z,{icon:"mdi:chevron-down"}),ee=()=>{var e,t,i,T,k,D,I,B;let{showConfirmation:E}=(0,$.p)(),{settings:R,saveSettings:q}=(0,A.r)(),N=(0,P.m)(),{t:_}
1=(0,z.$G)(),[U,W]=o.useState([]),[F,M]=o.useState(!0),[ee,et]=o.useState(-1),[ei,en]=o.useState(""),[eo,er]=(0,o.useState)([]),[el,es]=(0,o.useState)(),[ea,ed]=(0,o.useState)([]),[ec,eh]=(0,o.useState)({open:!1,user:{}}),[eu,em]=o.useState(!1),[ex,ep]=o.useState(!0),[ev,eg]=o.useState(!1),{shifts:ef}=(0,K.b)(),ej=o.useMemo(()=>ef.find(e=>new Date(e.endTime)>new Date),[ef]),ew=o.useMemo(()=>U.filter(e=>e.status===y.TT.New),[U]),eb=o.useMemo(()=>U.sort((e,t)=>e.closed&&t.closed?new Date(t.closed).getTime()-new Date(e.closed).getTime():0).filter(e=>e.status===y.TT.Resolved||e.status===y.TT.Closed),[U]),eZ=e=>{et(e),en("")},eC=e=>{let t=new Date(e+"Z");return isNaN(t.getTime())?"":t.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})},eS=async()=>{try{let e=await N.problem.getAllForActiveShift();W(e.data)}catch(e){console.error("failed fetching problems. Error:",e)}finally{M(!1)}},eP=()=>U.find(e=>e.id===ee),ey=async()=>{var e,t;let i={...eP()};await N.problem.update({...i,teacherJoined:i.teacherJoined?i.teacherJoined:H()().toDate().toISOString()});let n=null===(e=eP())||void 0===e?void 0:null===(t=e.room)||void 0===t?void 0:t.roomKey;n?window.open("/rooms/"+String(n),"_blank"):console.error("Could not find the student's room link.")},eT=async()=>{let e=null==ej?void 0:ej.id;if(e)try{let t=await N.shift.get(e);if(!t.ok)throw t.error;ed(t.data.bookedPasses)}catch(e){console.error("Failed to fetch users for shift",e)}},ek=async()=>{var e,t,i,n,o,r,l,s,a,d,c,h;let u=await E({title:_("teacherPage.queue.resolveProblemConfirmationTitle"),message:_("teacherPage.queue.resolveProblemConfirmationDescription"),confirmButtonText:_("teacherPage.queue.resolveProblemConfirmationButtonText")});if(!u)return;let m=await N.problem.update({id:null===(e=eP())||void 0===e?void 0:e.id,status:y.TT.Resolved,created:null===(t=eP())||void 0===t?void 0:t.created,teacherJoined:null===(i=eP())||void 0===i?void 0:i.teacherJoined,description:null===(n=eP())||void 0===n?void 0:n.description,attachments:null===(o=eP())||void 0===o?void 0:o.attachments,rating:null===(r=eP())||void 0===r?void 0:r.rating,closed:H()().toDate().toISOString(),roomId:null===(l=eP())||void 0===l?void 0:null===(s=l.room)||void 0===s?void 0:s.id,studentId:null===(a=eP())||void 0===a?void 0:null===(d=a.student)||void 0===d?void 0:d.id,shiftId:null===(c=eP())||void 0===c?void 0:null===(h=c.shift)||void 0===h?void 0:h.id,teacherNotes:ei});if(!m.ok){console.error("Could not resolve problem. Error:",m.error);return}await eS()},eD=async()=>{var e,t,i,n,o,r,l,s,a,d,c,h;let u=await E({title:_("teacherPage.queue.cancelProblemConfirmationTitle"),message:_("teacherPage.queue.cancelProblemConfirmationDescription"),confirmButtonText:_("teacherPage.queue.cancelProblemConfirmationButtonText")});if(!u)return;let m=await N.problem.update({id:null===(e=eP())||void 0===e?void 0:e.id,status:y.TT.Closed,created:null===(t=eP())||void 0===t?void 0:t.created,teacherJoined:null===(i=eP())||void 0===i?void 0:i.teacherJoined,description:null===(n=eP())||void 0===n?void 0:n.description,attachments:null===(o=eP())||void 0===o?void 0:o.attachments,rating:null===(r=eP())||void 0===r?void 0:r.rating,closed:H()().toDate().toISOString(),teacherNotes:ei,roomId:null===(l=eP())||void 0===l?void 0:null===(s=l.room)||void 0===s?void 0:s.id,studentId:null===(a=eP())||void 0===a?void 0:null===(d=a.student)||void 0===d?void 0:d.id,shiftId:null===(c=eP())||void 0===c?void 0:null===(h=c.shift)||void 0===h?void 0:h.id});if(!m.ok){console.error("Could not cancel problem. Error:",m.error);return}await eS()},eI=async()=>{var e;let t=null===(e=eP())||void 0===e?void 0:e.id;if(!t)return;let i=await N.problem.getAttachments(t);er(i.data)},eB=()=>{q({...R,navCollapsed:!1}),es(void 0)},eE=e=>{let t=window.open();t&&t.document.write('\n <html>\n <body style="margin: 0;">\n <iframe width="100%" height="100%" src="'.concat(e,'" frameborder="0"></iframe>\n </body>\n </html>\n '))},eR=(0,o.useCallback)(e=>{eh({open:!0,user:e})},[]),eq=(0,o.useCallback)(()=>{eh(e=>({...e,open:!1}))},[]);return(0,o.useEffect)(()=>{eI()},[ee]),(0,o.useEffect)(()=>{let e=setInterval(()=>{eS()},3e4);return eS(),()=>clearInterval(e)},[]),(0,o.useEffect)(()=>{ej&&eT()},[ej]),F?(0,n.jsx)("div",{children:_("teacherPage.queue.loading")}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(Q.U,{hideButton:!0,horizontal:!0}),(0,n.jsxs)("div",{style:{position:"relative"},children:[el&&(0,n.jsx)(J.default,{src:el,alt:"",onClose:eB}),(0,n.jsx)(r.Z,{spacing:3,children:(0,n.jsxs)(l.ZP,{container:!0,spacing:6,children:[(0,n.jsxs)(l.ZP,{item:!0,xs:12,md:5,lg:4,children:[(0,n.jsxs)(s.Z,{expanded:eu,onChange:(e,t)=>
1em(t),children:[(0,n.jsx)(a.Z,{expandIcon:Y(),children:(0,n.jsx)(d.Z,{children:"".concat(ea.length," ").concat(_("teacherPage.queue.registeredStudents"))})}),(0,n.jsx)(c.Z,{children:(0,n.jsx)(X,{bookedPasses:ea,onOpenJournal:eR})})]}),(0,n.jsxs)(s.Z,{expanded:ex,onChange:(e,t)=>ep(t),children:[(0,n.jsx)(a.Z,{expandIcon:Y(),children:(0,n.jsxs)(d.Z,{children:[_("teacherPage.queue.unresolvedProblemsListTitle")," (",ew.length,")"]})}),(0,n.jsx)(c.Z,{children:(0,n.jsx)(h.Z,{children:null==ew?void 0:ew.map((e,t)=>{var i,o,r,s,a,d;return(0,n.jsx)(u.ZP,{disablePadding:!0,children:(0,n.jsxs)(m.Z,{selected:ee===e.id,onClick:()=>eZ(e.id),sx:{borderRadius:"6px"},children:[(0,n.jsx)(x.Z,{children:(0,n.jsx)(p.Z,{src:(null===(i=e.student)||void 0===i?void 0:null===(o=i.avatar)||void 0===o?void 0:o.src)||"",alt:"profile-pic",sx:{height:32,width:32}})}),(0,n.jsx)(v.Z,{primary:(0,n.jsxs)(l.ZP,{sx:{display:"flex",justifyContent:"space-between",width:"100%"},children:[(0,n.jsxs)("span",{children:[null===(r=e.student)||void 0===r?void 0:r.firstName," ",null===(s=e.student)||void 0===s?void 0:s.lastName]}),(0,n.jsx)("span",{children:eC(null!==(d=e.created)&&void 0!==d?d:"")})]}),secondary:null===(a=e.shift)||void 0===a?void 0:a.name})]})},e.id)})})})]}),(0,n.jsxs)(s.Z,{expanded:ev,onChange:(e,t)=>
1eg(t),children:[(0,n.jsx)(a.Z,{expandIcon:Y(),children:(0,n.jsxs)(d.Z,{children:[_("teacherPage.queue.resolvedProblemsListTitle")," (",eb.length,")"]})}),(0,n.jsx)(c.Z,{children:(0,n.jsx)(h.Z,{children:null==eb?void 0:eb.map((e,t)=>{var i,o,r,s,a,d;return(0,n.jsx)(u.ZP,{disablePadding:!0,children:(0,n.jsxs)(m.Z,{selected:ee===e.id,onClick:()=>eZ(e.id),sx:{borderRadius:"6px"},children:[(0,n.jsx)(x.Z,{children:(0,n.jsx)(p.Z,{src:(null===(i=e.student)||void 0===i?void 0:null===(o=i.avatar)||void 0===o?void 0:o.src)||"",alt:"Caroline Black",sx:{height:32,width:32}})}),(0,n.jsx)(v.Z,{primary:(0,n.jsxs)(l.ZP,{sx:{display:"flex",justifyContent:"space-between",width:"100%"},children:[(0,n.jsxs)("span",{children:[null===(r=e.student)||void 0===r?void 0:r.firstName," ",null===(s=e.student)||void 0===s?void 0:s.lastName]}),(0,n.jsx)("span",{children:eC(null!==(d=e.closed)&&void 0!==d?d:"")})]}),secondary:null===(a=e.shift)||void 0===a?void 0:a.name})]})},e.id)})})})]})]}),(0,n.jsx)(l.ZP,{item:!0,xs:12,md:7,lg:8,children:(0,n.jsx)(l.ZP,{container:!0,spacing:6,children:(0,n.jsx)(l.ZP,{item:!0,xs:12,children:ee>-1&&eP()&&(0,n.jsxs)(g.Z,{sx:{display:"flex",flexDirection:"column",minHeight:"700px"},children:[(0,n.jsxs)(f.Z,{sx:{flexGrow:1,overflow:"auto"},children:[(0,n.jsx)(j.Z,{title:"".concat(null===(e=eP())||void 0===e?void 0:null===(t=e.student)||void 0===t?void 0:t.firstName," ").concat(null===(i=eP())||void 0===i?void 0:null===(T=i.student)||void 0===T?void 0:T.lastName),sx:{borderBottom:"solid 1px #E5E5E5"}}),(0,n.jsxs)(w.Z,{children:[(0,n.jsx)(d.Z,{sx:{marginTop:"20px",marginBottom:"10px"},children:_("teacherPage.queue.questionLabel")}),(0,n.jsx)(d.Z,{sx:{padding:"10px 40px 10px 40px",border:"solid 1px #BEC0C0",borderRadius:"6px"},variant:"subtitle1",children:null===(k=eP())||void 0===k?void 0:k.description})]}),(0,n.jsx)(w.Z,{children:(null===(D=eP())||void 0===D?void 0:D.attachments)&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(d.Z,{sx:{marginTop:"20px",marginBottom:"10px"},children:_("teacherPage.queue.attachmentLabel")}),(0,n.jsx)(d.Z,{sx:{padding:"10px 40px 10px 40px",border:"solid 1px #BEC0C0",borderRadius:"6px"},variant:"subtitle1",children:null===(I=eP())||void 0===I?void 0:I.attachments})]})}),(null==eo?void 0:eo.length)>0&&(0,n.jsxs)(w.Z,{children:[(0,n.jsx)(d.Z,{children:_("teacherPage.queue.attachmentLabel")}),(0,n.jsx)(b.Z,{sx:{width:500,height:220},cols:3,rowHeight:200,children:null==eo?void 0:eo.map(e=>(0,n.jsx)(Z.Z,{onClick:()=>{eE(e)},children:e.startsWith("data:image")?(0,n.jsx)(C.Z,{children:(0,n.jsx)("img",{srcSet:"".concat(e),src:"".concat(e),alt:"attachment",loading:"lazy"})}):(0,n.jsxs)(r.Z,{sx:{height:"100%",display:"flex",justifyContent:"center",alignItems:"center",backgroundColor:"#F0F5FB",borderRadius:2},gap:2,children:[(0,n.jsx)(O.Z,{icon:"mdi:file-document-outline"}),(0,n.jsx)(d.Z,{children:G(e)})]})},e))})]}),(0,n.jsxs)(w.Z,{children:[(0,n.jsx)(d.Z,{sx:{marginTop:"20px",marginBottom:"10px"},children:_("teacherPage.queue.teacherCommentLabel")}),(0,n.jsx)(S.Z,{sx:{border:"solid 1px #BEC0C0",borderRadius:"6px",width:"100%"},multiline:!0,rows:4,variant:"outlined",value:ei,onChange:e=>en(e.target.value)})]})]}),(null===(B=eP())||void 0===B?void 0:B.status)===y.TT.New&&(0,n.jsx)(f.Z,{sx:{marginBottom:"30px"},children:(0,n.jsx)(L,{onJoinStudentRoom:ey,onProblemResolved:ek,onCancel:eD})})]})})})})]})})]}),(0,n.jsx)(V.Z,{user:ec.user,open:ec.open,onClose:eq})]})};ee.acl={action:T.H.Read,subject:T.D.TeacherPage};var et=ee}},function(e){e.O(0,[4885,6886,2395,135,4386,7912,63,5985,4476,9774,2888,179],function(){return e(e.s=66928)}),_N_E=e.O()}]);
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.