PageSourceSearch

https://studycafe.se/_next/static/chunks/108.989a4de2902a0d53.js

js studycafe.se collected 2026-10-08 03:21:37 UTC 3,023 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[108],{80108:function(e,t,i){i.r(t);var a=i(85893),o=i(2734),r=i(99226),s=i(86886),l=i(15861),n=i(67294),d=i(7631),p=i(96486),c=i(22120),h=i(94987);let f={title:{fontSize:"20px",fontWeight:"500",lineHeight:"32px"},itemTitle:{fontSize:"16px",fontWeight:"600",lineHeight:"24px"},description:{color:"#4B494FCC",fontSize:"14px",lineHeight:"21px"},legendContainer:{marginTop:"38px"},legendItem:{marginTop:"20px"},imageContainer:{display:"flex",width:"40px",height:"40px",borderRadius:"5px",alignItems:"center",justifyContent:"center"}},u=()=>{var e,t,i;(0,o.Z)();let u=(0,d.m)(),{t:g}=(0,c.$G)(),[m,x]=n.useState(),[b,v]=n.useState([]);return(p.sum(null===(e=null==m?void 0:m.find(e=>"Private"===e.name))||void 0===e?void 0:e.data),p.sum(null===(t=null==m?void 0:m.find(e=>"Course"===e.name))||void 0===t?void 0:t.data),p.sum(null===(i=null==m?void 0:m.find(e=>"Focus"===e.name))||void 0===i?void 0:i.data),n.useEffect(()=>{let e=async()=>{let e=await u.reports.getTeacherAverageProblemLifespan();if(e.error||!e.data)throw Error("Failed to fetch data");let t=e.data;p.groupBy(t,"roomType");let i=p.uniq(t.map(e=>e.teacherName));v(i);let a=t.map(e=>p.toNumber(e.avgProblemLifespanInMinutes?e.avgProblemLifespanInMinutes.toFixed(2):0));x([{name:"Antal minuter",color:"#FF9B9B",data:a}])};e()},[]),m)?(0,a.jsx)(r.Z,{children:(0,a.jsx)(s.ZP,{container:!0,children:(0,a.jsxs)(s.ZP,{item:!0,xs:12,children:[(0,a.jsx)(l.Z,{sx:f.title,children:g("avgTeacherProblemLifeSpanComponent.title")}),(0,a.jsx)(l.Z,{sx:f.description,children:g("avgTeacherProblemLifeSpanComponent.legendDescription")}),(0,a.jsx)(h.Z,{series:m,categories:b,height:280,chartId:"avg-teacher-problem-lifespan-graph",showLegend:!1})]})})}):null};t.default=u},94987:function(e,t,i){i.d(t,{Z:function(){return c}});var a=i(85893),o=i(67294),r=i(2734),s=i(5152),l=i.n(s);let n=l()(()=>Promise.all([i.e(4814),i.e(7229)]).then(i.bind(i,47229)),{loadableGenerated:{webpack:()=>[47229]},ssr:!1}),d={bg:"#f8d3ff",series1:"#826af9",series2:"#d2b0ff"},p=e=>{let t=(0,r.Z)(),[i,s]=(0,o.useState)(null),[l,p]=(0,o.useState)(null),c={chart:{offsetX:-10,stacked:!0,parentHeightOffset:0,toolbar:{show:!1},id:e.chartId},fill:{opacity:1},dataLabels:{enabled:!1},colors:[d.series1,d.series2],legend:{show:e.showLegend,position:"top",horizontalAlign:"left",labels:{colors:t.palette.text.secondary},markers:{offsetY:1,offsetX:-3},itemMargin:{vertical:3,horizontal:10}},stroke:{show:!0,colors:["transparent"]},plotOptions:{bar:{columnWidth:"25%"}},grid:{borderColor:t.palette.divider,xaxis:{lines:{show:!0}}},yaxis:{labels:{style:{colors:t.palette.text.disabled}}},xaxis:{axisBorder:{show:!1},axisTicks:{color:t.palette.divider},categories:e.categories,crosshairs:{stroke:{color:t.palette.divider}},labels:{style:{colors:t.palette.text.disabled}}},responsive:[{breakpoint:600,options:{plotOptions:{bar:{columnWidth:"35%"}}}}]};return(0,a.jsx)(n,{type:"bar",height:e.height||400,options:c,series:e.series})};var c=p}}]);

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.