PageSourceSearch

https://studycafe.se/_next/static/chunks/8945.b6a5d30efd3485bd.js

js studycafe.se collected 2026-10-08 03:21:44 UTC 2,975 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8945],{98945:function(e,t,i){i.r(t);var o=i(85893),a=i(2734),r=i(99226),n=i(86886),s=i(15861),l=i(67294),d=i(7631),p=i(96486),c=i(22120),h=i(94987);let u={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"}},f=()=>{var e,t,i;(0,a.Z)();let f=(0,d.m)(),{t:g}=(0,c.$G)(),[x,m]=l.useState(),[b,v]=l.useState([]);return(p.sum(null===(e=null==x?void 0:x.find(e=>"Private"===e.name))||void 0===e?void 0:e.data),p.sum(null===(t=null==x?void 0:x.find(e=>"Course"===e.name))||void 0===t?void 0:t.data),p.sum(null===(i=null==x?void 0:x.find(e=>"Focus"===e.name))||void 0===i?void 0:i.data),l.useEffect(()=>{let e=async()=>{let e=await f.reports.getTeacherTimeToJoinAverage();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.name));v(i);let o=t.map(e=>p.toNumber(e.durationInMinutes?e.durationInMinutes.toFixed(2):0));m([{name:"Antal minuter",color:"#FFD6A5",data:o}])};e()},[]),x)?(0,o.jsx)(r.Z,{children:(0,o.jsx)(n.ZP,{container:!0,children:(0,o.jsxs)(n.ZP,{item:!0,xs:12,children:[(0,o.jsx)(s.Z,{sx:u.title,children:g("avgTimeToJoinComponent.title")}),(0,o.jsx)(s.Z,{sx:u.description,children:g("avgTimeToJoinComponent.legendDescription")}),(0,o.jsx)(h.Z,{series:x,categories:b,height:280,chartId:"avg-teacher-problem-created-to-join-graph",showLegend:!1})]})})}):null};t.default=f},94987:function(e,t,i){i.d(t,{Z:function(){return c}});var o=i(85893),a=i(67294),r=i(2734),n=i(5152),s=i.n(n);let l=s()(()=>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,n]=(0,a.useState)(null),[s,p]=(0,a.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,o.jsx)(l,{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.