PageSourceSearch

https://studycafe.se/_next/static/chunks/pages/dashboard-1acbaccafafeee9b.js

js studycafe.se collected 2026-10-08 03:20:49 UTC 22,105 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8026],{40528:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/dashboard",function(){return r(94260)}])},50613:function(e,t,r){"use strict";var i=r(85893),n=r(87918),o=r(86010),a=r(50591);let s=e=>{let{sx:t,skin:r,color:s,rounded:c}=e,d=(0,a.Z)(),l={primary:{...d.primaryLight},secondary:{...d.secondaryLight},success:{...d.successLight},error:{...d.errorLight},warning:{...d.warningLight},info:{...d.infoLight}},h={...e};return h.rounded=void 0,(0,i.jsx)(n.Z,{...h,variant:"filled",className:(0,o.Z)({"MuiChip-rounded":c,"MuiChip-light":"light"===r}),sx:"light"===r&&s?Object.assign(l[s],t):t})};t.Z=s},81010:function(e,t,r){"use strict";var i=r(85893),n=r(67294),o=r(41664),a=r.n(o),s=r(99226),c=r(38333),d=r(67720),l=r(18972),h=r(93946),x=r(63730),p=r(23918);let g=e=>{let{children:t,option:r}=e;return r.href?(0,i.jsx)(s.Z,{component:a(),href:r.href,...r.linkProps,sx:{px:4,py:1.5,width:"100%",display:"flex",color:"inherit",alignItems:"center",textDecoration:"none"},children:t}):(0,i.jsx)(i.Fragment,{children:t})},u=e=>{let{icon:t,options:r,menuProps:o,iconProps:a,leftAlignMenu:s,iconButtonProps:u}=e,[m,f]=(0,n.useState)(null),{settings:b}=(0,p.r)(),{direction:j}=b,C=e=>{f(e.currentTarget)},Z=()=>{f(null)};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(h.Z,{"aria-haspopup":"true",onClick:C,...u,children:t||(0,i.jsx)(x.Z,{icon:"mdi:dots-vertical",...a})}),(0,i.jsx)(c.Z,{keepMounted:!0,anchorEl:m,onClose:Z,open:!!m,...!s&&{anchorOrigin:{vertical:"bottom",horizontal:"ltr"===j?"right":"left"},transformOrigin:{vertical:"top",horizontal:"ltr"===j?"right":"left"}},...o,children:r.map((e,t)=>"string"==typeof e?(0,i.jsx)(l.Z,{onClick:Z,children:e},t):"divider"in e?e.divider&&(0,i.jsx)(d.Z,{...e.dividerProps},t):(0,i.jsx)(l.Z,{...e.menuItemProps,...e.href&&{sx:{p:0}},onClick:t=>{Z(),e.menuItemProps&&e.menuItemProps.onClick&&e.menuItemProps.onClick(t)},children:(0,i.jsxs)(g,{option:e,children:[e.icon?e.icon:null,e.text]})},t))})]})};t.Z=u},50591:function(e,t,r){"use strict";var i=r(2734),n=r(25812);let o=()=>{let e=(0,i.Z)();return{primaryFilled:{color:e.palette.primary.contrastText,backgroundColor:e.palette.primary.main},primaryLight:{color:e.palette.primary.main,backgroundColor:(0,n.E)(e.palette.primary.main,.12)},secondaryFilled:{color:e.palette.secondary.contrastText,backgroundColor:e.palette.secondary.main},secondaryLight:{color:e.palette.secondary.main,backgroundColor:(0,n.E)(e.palette.secondary.main,.12)},successFilled:{color:e.palette.success.contrastText,backgroundColor:e.palette.success.main},successLight:{color:e.palette.success.main,backgroundColor:(0,n.E)(e.palette.success.main,.12)},errorFilled:{color:e.palette.error.contrastText,backgroundColor:e.palette.error.main},errorLight:{color:e.palette.error.main,backgroundColor:(0,n.E)(e.palette.error.main,.12)},warningFilled:{color:e.palette.warning.contrastText,backgroundColor:e.palette.warning.main},warningLight:{color:e.palette.warning.main,backgroundColor:(0,n.E)(e.palette.warning.main,.12)},infoFilled:{color:e.palette.info.contrastText,backgroundColor:e.palette.info.main},infoLight:{color:e.palette.info.main,backgroundColor:(0,n.E)(e.palette.info.main,.12)}}};t.Z=o},18152:function(e,t,r){"use strict";r.d(t,{Rs:function(){return l},XJ:function(){return h},tr:function(){return o},v3:function(){return c},xH:function(){return d}});var i=r(85893),n=r(85321);let o={container:{hidden:{opacity:1,scale:0},visible:{opacity:1,scale:1,transition:{delayChildren:.05,staggerChildren:.05}}},item:{hidden:{y:20,opacity:0},visible:{y:0,opacity:1}}},a={containerVariants:{hidden:{opacity:0},visible:{opacity:1,transition:{staggerChildren:.05}}},cardVariants:{hidden:{opacity:0,y:20},visible:{opacity:1,y:0,transition:{duration:.2}}}},s={scale:.85,borderRadius:"100%"},c=e=>(0,i.jsx)(n.E.div,{variants:a.containerVariants,initial:"hidden",animate:"visible",children:e.children}),d=e=>(0,i.jsx)(n.E.div,{variants:e.variants||a.cardVariants,children:e.children}),l=e=>(0,i.jsx)(n.E.div,{whileTap:s,children:e.children}),h=e=>(0,i.jsx)(n.E.div,{...e,initial:{scale:.9},animate:{scale:1},transition:{type:"spring",stiffness:260,damping:20},children:e.children})},31535:function(e,t,r){"use strict";var i=r(63805),n=r.n(i);let o=()=>{let e=n()({tablet:!0,featureDetect:!0}),t=!!navigator.userAgent.match(/CriOS/),r=!!navigator.userAgent.match(/FxiOS/),i=!!navigator.userAgent.match(/OPT/),o=!!navigator.userAgent.match(/Android/i);return{isMobileOrTablet:e,isChromeOnAppleDevice:t,isFirefoxOnAppleDevice:r,isOperaTouchOnAppleDevice:i,isAndroidDevice:o}};t.Z=o},50328:function(e,t,r){"use strict";var i=r(85893),n=r(67294),o=r(99226),a=r(93946),s=r(50594),c=r(22120);let d="mobileInfoTextDismissed",l=()=>
1{let[e,t]=(0,n.useState)(!0),{t:r}=(0,c.$G)();(0,n.useEffect)(()=>{let e="true"===localStorage.getItem(d);t(!e)},[]);let l=()=>{t(!1),localStorage.setItem(d,"true")};return e?(0,i.jsxs)(o.Z,{sx:{backgroundColor:"#FFEDF0",borderRadius:"5px",border:"1px solid #E5E5E5",textAlign:"center",color:"text.primary",width:"100%",fontSize:"16px",lineHeight:"24px",padding:2,marginLeft:"auto",marginRight:"auto",position:"relative"},children:[r("components.mobileInfoText.bestExperienceMessage"),(0,i.jsx)(a.Z,{size:"small",sx:{position:"absolute",top:"8px",right:"8px"},onClick:l,"aria-label":"close",children:(0,i.jsx)(s.Z,{fontSize:"small"})})]}):null};t.Z=l},30525:function(e,t,r){"use strict";r.d(t,{U:function(){return w}});var i=r(85893),n=r(99226),o=r(15861),a=r(26447),s=r(83321),c=r(67294),d=r(7631),l=r(33489),h=r(51049),x=r(11163),p=r(25675),g=r.n(p),u={src:"/_next/static/media/StartIcon.16878997.svg",height:24,width:24,blurWidth:0,blurHeight:0},m={src:"/_next/static/media/EndIcon.93182da8.svg",height:24,width:25,blurWidth:0,blurHeight:0},f=r(22120),b=r(81134),j=r(73123);let C=()=>(0,c.useContext)(j.u),Z={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"}},F=()=>(0,i.jsx)(n.Z,{sx:{...Z.iconContainer,background:"#EDF4E3"},children:(0,i.jsx)(g(),{src:u,alt:"Start",width:24,height:24})}),A=()=>(0,i.jsx)(n.Z,{sx:{...Z.iconContainer,background:"#ECF3F9"},children:(0,i.jsx)(g(),{src:m,alt:"Start",width:24,height:24})}),w=e=>{let t=(0,d.m)(),r=(0,x.useRouter)(),{t:p}=(0,f.$G)(),{shifts:g,refreshShifts:u}=(0,l.b)(),{showConfirmation:m}=(0,b.p)(),{setshiftActive:j}=C(),[w,D]=c.useState(),v=async()=>{try{if(!w)return;let e=await m({title:p("teacherUpcomingShiftComponent.startShiftDialogTitle"),message:p("teacherUpcomingShiftComponent.startShiftDialogDescription"),confirmButtonText:p("teacherUpcomingShiftComponent.startShiftDialogConfirmButtonLabel")});if(!e)return;let r=await t.shift.startShift(w.id);if(!r.ok)throw Error(r.error.message);j(!0),D(r.data),u()}catch(e){console.error(e)}},S=async()=>{try{if(!w)return;let e=await m({title:p("teacherUpcomingShiftComponent.endShiftDialogTitle"),message:p("teacherUpcomingShiftComponent.endShiftDialogDescription"),confirmButtonText:p("teacherUpcomingShiftComponent.endShiftDialogConfirmButtonLabel"),primaryButtonColor:"error"});if(!e)return;let r=await t.shift.endShift(w.id);if(!r.ok)throw Error(r.error.message);j(!1),D(r.data),u()}catch(e){console.error(e)}};return(c.useEffect(()=>{if(!g)return;let e=new Date,t=g.find(t=>{let r=new Date(t.endTime);return r>e});D(t)},[g]),w)?(0,i.jsxs)(n.Z,{sx:{marginBottom:e.horizontal?"16px":void 0},children:[!e.horizontal&&(0,i.jsx)(o.Z,{sx:Z.title,children:p("teacherUpcomingShiftComponent.title")}),!e.horizontal&&(0,i.jsx)(o.Z,{sx:Z.datetime,children:new Date(w.startTime).toLocaleDateString("sv-se",{year:"numeric",month:"long",day:"numeric"})}),!e.horizontal&&(0,i.jsx)(o.Z,{sx:Z.datetime,children:k(w)}),(0,i.jsxs)(a.Z,{direction:"row",alignItems:e.horizontal?"center":void 0,spacing:3,sx:e.horizontal?void 0:Z.buttonRow,children:[(0,i.jsx)(s.Z,{startIcon:(0,i.jsx)(F,{}),onClick:v,disabled:null!==w.started||!(()=>{let e=new Date,t=new Date(w.startTime),r=t.getTime()-e.getTime();return 10>=Math.floor(r/1e3/60)})(),children:p("teacherUpcomingShiftComponent.startShiftButtonLabel")}),(0,i.jsx)(s.Z,{startIcon:(0,i.jsx)(A,{}),onClick:S,disabled:null===w.started||null!==w.ended,children:p("teacherUpcomingShiftComponent.endShiftButtonLabel")}),e.horizontal&&(0,i.jsx)(o.Z,{sx:Z.datetimeHorizontal,children:k(w)})]}),!e.hideButton&&(0,i.jsx)(h.KM,{sx:Z.bottomButton,onClick:()=>r.push("/teacher/queue"),children:p("teacherUpcomingShiftComponent.viewShiftButtonLabel")})]}):(0,i.jsx)("div",{children:p("teacherUpcomingShiftComponent.noUpcomingShiftsMessage")})};function k(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"}),r=new Date(e.endTime).toLocaleTimeString("sv-se",{hour:"2-digit",minute:"2-digit"});return"".concat(t," - ").concat(r)}},94260:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return et}});var i=r(85893),n=r(67218),o=r(45013),a=r(55008),s=r(67294),c=r(86886),d=r(99226),l=r(15861),h=r(66242),x=r(26447),p=r(44267),g=r(11163),u=r.n(g),m={src:"/_next/static/media/privateRoomCardIcon.3a0ab7be.png",height:89,width:85,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAYAAADED76LAAAAeElEQVR42n1OWwqAMAzzgfONrxML3a6wzcMW04oy/XAQurRJ2ux+HK3hYBcONAErR2qSoSvRWDEolXuX47+gZ1QAZ8tBHYmJKmBUotGeBD0wSNVVkTYZziAde1sBNeLNVeUmqjPZ9YoOe55yEcxfDhQ/AkQf9kk5AcmGUW/dyrTpAAAAAElFTkSuQmCC",blurWidth:8,blurHeight:8},f={src:"/_next/static/media/publicRoomCardIcon.6a34b11a.png",height:84,width:86,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAMAAADz0U65AAAAaVBMVEXE4uzD4u7D4fDD4e/C4fDC4e/D4PDD4O/C4PDC4O/D4fDD4e/C4PDE4fPE4PLC4e/C4O/D4fDC4fDD4PDD4O/D4fDD4O/C4O/C4PDD4fDC4O/C4PDD4PDC4PDC4PDD4fDC4PDD4O/C4fCFTujcAAAAI3RSTlMAAAAAAAAAAAAAAQEBAwMODhMTExMUFBQVFhsgISEjJCQlJv1TjlEAAABDSURBVHjaHcZHFoAgDAXAb6KIYkVjw8r9D+kjsxoc73XGoY+4wVn3PS2CdY72jRCYaxZfpDTVOpcaEp9rrIykMctkfpRdA52vioIiAAAAAElFTkSuQmCC",blurWidth:8,blurHeight:8},b=r(79417),j=r(5152),C=r.n(j),Z=r(22120),F=r(83321),A=r(18979),w=r(47776);let k=Number("3"),D=()=>{let{subscription:e}=(0,n.a)(),t=(0,g.useRouter)(),[r,o]=s.useState({title:"",description:(0,i.jsx)(i.Fragment,{}),backgroundColor:"#FFFFFF"});return(s.useEffect(()=>
1{let{totalPasses:r,queuePassTickets:n,oneOnOneTickets:a}=(0,w.M)(e);o({title:"\uD83D\uDCC5 Dina pass",description:(0,i.jsxs)(i.Fragment,{children:[n>0&&(0,i.jsxs)(l.Z,{children:[n," pass kvar denna vecka."]}),a>0&&(0,i.jsxs)(l.Z,{children:[a," privatlektioner kvar denna vecka."]})]}),backgroundColor:"#F0F5FB",cta:0===r?(null==e?void 0:e.productId)===k?(0,i.jsx)(l.Z,{children:"K\xf6p fler pass f\xf6r att forts\xe4tta."}):(0,i.jsx)(l.Z,{children:"Nya pass tillg\xe4ngliga n\xe4sta vecka"}):(0,i.jsx)(F.Z,{variant:"contained",color:"primary",onClick:()=>t.push("/book"),size:"small",children:"Visa kalender"})})},[e]),e)?(0,i.jsx)(h.Z,{onClick:()=>t.push("/book"),sx:{...v.card,backgroundColor:r.backgroundColor},children:(0,i.jsxs)(x.Z,{direction:"row",children:[(0,i.jsx)(d.Z,{sx:{...v.rectangle}}),(0,i.jsxs)(p.Z,{sx:v.cardContent,children:[(0,i.jsxs)(d.Z,{children:[(0,i.jsx)(l.Z,{component:"div"}),(0,i.jsx)(l.Z,{component:"div",sx:v.title,children:r.title}),(0,i.jsx)(l.Z,{component:"div",sx:v.description,children:r.description})]}),r.cta&&(0,i.jsx)(d.Z,{mt:2,children:r.cta})]})]})}):(0,i.jsx)(d.Z,{sx:{height:"136px"},children:(0,i.jsx)(A.Z,{variant:"rectangular",animation:"wave",height:136,sx:{borderRadius:"6px",backgroundColor:"#F0F5FB"}})})},v={title:{fontSize:"20px",fontWeight:"500",lineHeight:"24px",height:"24px",marginBottom:"10px"},description:{fontSize:"16px",fontWeight:"400",lineHeight:"24px",height:"48px"},card:{background:"#FFFFFF",borderRadius:"6px",border:"1px solid #E5E5E5",boxShadow:"none",cursor:"pointer",backgroundRepeat:"no-repeat",backgroundPosition:"bottom right 24px"},cardLarge:{height:"359px",background:"#FFFFFF",borderRadius:"6px",border:"1px solid #E5E5E5",boxShadow:"none",cursor:"pointer",backgroundRepeat:"no-repeat",backgroundPosition:"bottom right 24px"},cardContent:{padding:"20px 20px 20px 25px"},rectangle:{width:"6px"}};var S=r(18152),E=r(31535),P=r(50328),T=r(2734);let y=C()(()=>Promise.all([r.e(3662),r.e(4646)]).then(r.bind(r,14646)),{loadableGenerated:{webpack:()=>[14646]},ssr:!1}),R={welcome:{fontSize:22,color:"#4B494F",opacity:.6,lineHeight:"20px"},title:{fontSize:38,fontWeight:"500",lineHeight:"32px",marginTop:"24px",marginBottom:"20px"},headerContainer:{marginTop:"44px",marginLeft:"30px"},card:{height:"161px",background:"#FFFFFF",borderRadius:"6px",border:"1px solid #E5E5E5",boxShadow:"none",cursor:"pointer",backgroundRepeat:"no-repeat",backgroundPosition:"bottom right 24px"},cardLarge:{height:"359px",background:"#FFFFFF",borderRadius:"6px",border:"1px solid #E5E5E5",boxShadow:"none",cursor:"pointer",backgroundRepeat:"no-repeat",backgroundPosition:"bottom right 24px",justifyContent:"space-between",paddingRight:"20px"},cardContent:{padding:"20px 0px 20px 25px"},rectangle:{width:"6px"}};function L(){let{t:e}=(0,Z.$G)(),t=(0,E.Z)();(0,T.Z)();let{user:r}=(0,n.a)(),o=(0,g.useRouter)(),a=[{title:e("studentDashboardComponent.privateRoomCardTitle"),color:"#F8937E",href:"/rooms/private",icon:m},{title:e("studentDashboardComponent.courseRoomCardTitle"),color:"#C4DFF2",href:"/rooms/course",icon:f}];return(0,i.jsx)(S.v3,{children:(0,i.jsxs)(c.ZP,{container:!0,spacing:5,children:[(0,i.jsxs)(c.ZP,{item:!0,xs:12,children:[t.isMobileOrTablet&&(0,i.jsx)(P.Z,{}),(0,i.jsxs)(d.Z,{sx:R.headerContainer,children:[(0,i.jsxs)(l.Z,{sx:R.welcome,children:[e("studentDashboardComponent.welcome"),", ",null==r?void 0:r.firstName]}),(0,i.jsx)(l.Z,{sx:R.title,children:e("studentDashboardComponent.title")})]})]}),(0,i.jsx)(c.ZP,{item:!0,xs:12,md:4,children:(0,i.jsx)(S.xH,{children:(0,i.jsx)(D,{})})}),a.map((t,r)=>{var n;return(0,i.jsx)(c.ZP,{item:!0,xs:12,md:4,children:(0,i.jsx)(S.xH,{children:(0,i.jsx)(h.Z,{onClick:()=>o.push(t.href),sx:{...R.card,backgroundImage:"url(".concat(null===(n=t.icon)||void 0===n?void 0:n.src,")"),backgroundPosition:"bottom 0px right"},children:(0,i.jsx)(x.Z,{direction:"row",children:(0,i.jsx)(p.Z,{sx:R.cardContent,children:(0,i.jsxs)(d.Z,{children:[(0,i.jsx)(l.Z,{component:"div",children:e("studentDashboardComponent.roomCardLabel")}),(0,i.jsx)(l.Z,{component:"div",sx:{...R.title,fontSize:"24px"},children:t.title})]})})})})})},"card-"+r)}),(0,i.jsx)(c.ZP,{item:!0,xs:12,md:4,children:(0,i.jsx)(S.xH,{children:(0,i.jsx)(h.Z,{sx:R.cardLarge,children:(0,i.jsx)(p.Z,{sx:R.cardContent,children:(0,i.jsx)(b.j,{page:"dashboard",hidePassCount:!0})})})})}),(0,i.jsx)(c.ZP,{item:!0,xs:12,md:8,children:(0,i.jsx)(S.xH,{children:(0,i.jsx)(h.Z,{sx:R.cardLarge,children:(0,i.jsx)(p.Z,{sx:R.cardContent,children:(0,i.jsx)(y,{})})})})})]})})}L.acl={action:o.H.Read,subject:o.D.GeneralPage};var z=r(30525),I=r(7631),B=r(78462),H=r(19294),U=r(48885),O=r(33489),M=r(86501),W=r(63730);let N={title:{fontSize:"20px",fontWeight:"500",lineHeight:"32px"},itemTitle:{fontSize:"16px",fontWeight:"600",lineHeight:"24px"},description:{color:"#4B494FCC",fontSize:"12px",lineHeight:"14px"},itemIcon:{height:"40px",width:"40px",left:"0px",top:"0px",borderRadius:"5px",padding:"9px",backgroundColor:"#FFEDF0",textAlign:"center",verticalAlign:"middle"}},G={height:300},V=e=>{let{containerStyles:t=G}=e,{t:r}=(0,Z.$G)(),n=(0,I.m)(),{shifts:o}=(0,O.b)(),c=s.useMemo(()=>null==o?void 0:o.filter(e=>{let t=new Date,r=new Date(e.endTime);return r>t}
1),[o]),h=async(e,t)=>{try{if(t===a.IF.QueuePass)throw Error("Cannot join room for QueuePass shifts");if(!e)throw Error("Room ID not found");let r=await n.room.get(e);if(r.error)throw Error(r.error.message);await u().push("/rooms/".concat(r.data.roomKey))}catch(e){var r;console.error(e),M.ZP.error((null===(r=e.error)||void 0===r?void 0:r.message)||"Failed to join room",{duration:5e3})}};return(0,i.jsxs)(d.Z,{sx:t,children:[(0,i.jsx)(l.Z,{sx:N.title,children:r("teacherShiftsComponent.title")}),(0,i.jsx)(B.Z,{sx:{maxHeight:"95%",overflow:"auto"},children:c&&c.length>0?c.map((e,t)=>{var r;let n=e.type===a.IF.QueuePass;return console.log("Shift:",e.name,"Type:",e.type,"IsQueuePass:",n,"RoomId:",e.roomId),(0,i.jsxs)(H.ZP,{disablePadding:!0,sx:{...N.itemContainer,cursor:n?"default":"pointer",padding:"8px 0",display:"flex",width:"100%"},onClick:()=>{n||h(e.roomId,e.type)},children:[(0,i.jsx)(d.Z,{sx:N.itemIcon,children:(0,i.jsx)(l.Z,{sx:{...N.itemTitle,fontSize:"24px"},children:null===(r=e.name)||void 0===r?void 0:r.charAt(0)})}),(0,i.jsxs)(x.Z,{sx:{marginLeft:"12px",flex:1},children:[(0,i.jsx)(l.Z,{sx:N.itemTitle,children:e.name}),(0,i.jsx)(l.Z,{sx:N.description,children:function(e){if(!e||!e.startTime||!e.endTime)return;let t=new Intl.DateTimeFormat("sv-SE",{month:"short",day:"numeric"}).format(new Date(e.startTime)),r=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(r," - ").concat(i)}(e)})]}),e.roomId&&(0,i.jsx)(U.Z,{sx:{minWidth:"auto",ml:"auto"},children:(0,i.jsx)(W.Z,{icon:"mdi:open-in-app",fontSize:20})})]},t)}):(0,i.jsx)(l.Z,{sx:N.description,children:r("teacherShiftsComponent.noShifts","No upcoming shifts")})})]})};var _={src:"/_next/static/media/TeacherUpcomingShiftBackground.e8fb4101.svg",height:217,width:279,blurWidth:0,blurHeight:0};let Q=C()(()=>Promise.all([r.e(3662),r.e(108)]).then(r.bind(r,80108)),{loadableGenerated:{webpack:()=>[80108]},ssr:!1}),X=C()(()=>Promise.all([r.e(3662),r.e(8945)]).then(r.bind(r,98945)),{loadableGenerated:{webpack:()=>[98945]},ssr:!1}),Y=C()(()=>Promise.all([r.e(3662),r.e(4190)]).then(r.bind(r,4190)),{loadableGenerated:{webpack:()=>[4190]},ssr:!1}),K={welcome:{fontSize:22,color:"#4B494F",opacity:.6,lineHeight:"20px"},title:{fontSize:38,fontWeight:"500",lineHeight:"32px",marginTop:"24px",marginBottom:"20px"},headerContainer:{marginTop:"44px",marginLeft:"30px"},card:{height:"136px",background:"#FFFFFF",borderRadius:"6px",border:"2px solid #EFEFEF",boxShadow:"none",cursor:"pointer",backgroundRepeat:"no-repeat",backgroundPosition:"bottom right 24px"},cardLarge:{height:"359px",background:"#FFFFFF",borderRadius:"6px",border:"2px solid #EFEFEF",boxShadow:"none",cursor:"pointer",backgroundRepeat:"no-repeat",backgroundPosition:"bottom right 24px"},cardContent:{padding:"24px",height:"100%"},rectangle:{width:"6px"},nextShiftContainer:{padding:"25px",height:"100%",background:"url(".concat(_.src,") no-repeat bottom 0px right 0px")}};function $(){let{t:e}=(0,Z.$G)(),{user:t}=(0,n.a)();return(0,i.jsx)(i.Fragment,{children:(0,i.jsxs)(c.ZP,{container:!0,spacing:5,children:[(0,i.jsx)(c.ZP,{item:!0,xs:12,children:(0,i.jsx)(d.Z,{sx:K.headerContainer,children:(0,i.jsxs)(l.Z,{sx:K.welcome,children:[e("teacherDashboardComponent.welcome"),", ",null==t?void 0:t.firstName]})})}),(0,i.jsx)(c.ZP,{item:!0,xs:12,md:8,children:(0,i.jsx)(h.Z,{sx:K.cardLarge,children:(0,i.jsx)(p.Z,{sx:K.cardContent,children:(0,i.jsx)(d.Z,{sx:K.nextShiftContainer,children:(0,i.jsx)(z.U,{})})})})}),(0,i.jsx)(c.ZP,{item:!0,xs:12,md:4,children:(0,i.jsx)(h.Z,{sx:K.cardLarge,children:(0,i.jsx)(p.Z,{sx:K.cardContent,children:(0,i.jsx)(V,{})})})}),(0,i.jsx)(c.ZP,{item:!0,xs:12,children:(0,i.jsx)(h.Z,{sx:K.cardLarge,children:(0,i.jsx)(p.Z,{sx:K.cardContent,children:(0,i.jsx)(Q,{})})})}),(0,i.jsx)(c.ZP,{item:!0,xs:12,md:6,children:(0,i.jsx)(h.Z,{sx:K.cardLarge,children:(0,i.jsx)(p.Z,{sx:K.cardContent,children:(0,i.jsx)(X,{})})})}),(0,i.jsx)(c.ZP,{item:!0,xs:12,md:6,children:(0,i.jsx)(h.Z,{sx:K.cardLarge,children:(0,i.jsx)(p.Z,{sx:K.cardContent,children:(0,i.jsx)(Y,{})})})})]})})}$.acl={action:o.H.Read,subject:o.D.AdminPage},C()(()=>Promise.all([r.e(3662),r.e(7049)]).then(r.bind(r,67049)),{loadableGenerated:{webpack:()=>[67049]},ssr:!1});
1let J={welcome:{fontSize:38,color:"#44484A",lineHeight:"32px",fontWeight:"500",marginBottom:"25px"},title:{fontSize:38,fontWeight:"500",lineHeight:"32px",marginTop:"24px",marginBottom:"20px"},headerContainer:{marginTop:"44px",marginLeft:"30px"},card:{height:"136px",background:"#FFFFFF",borderRadius:"6px",border:"2px solid #EFEFEF",boxShadow:"none",cursor:"pointer",backgroundRepeat:"no-repeat",backgroundPosition:"bottom right 24px"},cardLarge:{height:"359px",background:"#FFFFFF",borderRadius:"6px",border:"2px solid #EFEFEF",boxShadow:"none",cursor:"pointer",backgroundRepeat:"no-repeat",backgroundPosition:"bottom right 24px"},cardContent:{padding:"24px",height:"100%"},rectangle:{width:"6px"},nextShiftContainer:{padding:"25px",height:"100%",background:"url(".concat(_.src,") no-repeat bottom 0px right 0px")}};function q(){let{t:e}=(0,Z.$G)(),{user:t}=(0,n.a)();return(0,i.jsxs)(c.ZP,{container:!0,spacing:5,children:[(0,i.jsx)(c.ZP,{item:!0,xs:12,children:(0,i.jsx)(d.Z,{sx:J.headerContainer,children:(0,i.jsxs)(l.Z,{sx:J.welcome,children:[e("teacherDashboardComponent.welcome"),", ",null==t?void 0:t.firstName]})})}),(0,i.jsx)(c.ZP,{item:!0,xs:12,md:8,children:(0,i.jsx)(h.Z,{sx:J.cardLarge,children:(0,i.jsx)(p.Z,{sx:J.cardContent,children:(0,i.jsx)(d.Z,{sx:J.nextShiftContainer,children:(0,i.jsx)(z.U,{})})})})}),(0,i.jsx)(c.ZP,{item:!0,xs:12,md:4,children:(0,i.jsx)(h.Z,{sx:J.cardLarge,children:(0,i.jsx)(p.Z,{sx:J.cardContent,children:(0,i.jsx)(V,{})})})})]})}function ee(){let{user:e}=(0,n.a)();return(()=>{switch(null==e?void 0:e.role){case a.i4.Admin:case a.i4.OrganizationAdmin:return(0,i.jsx)($,{});case a.i4.Teacher:return(0,i.jsx)(q,{});case a.i4.Student:return(0,i.jsx)(L,{});default:return(0,i.jsx)(i.Fragment,{})}})()}q.acl={action:o.H.Read,subject:o.D.TeacherPage},ee.acl={action:o.H.Read,subject:o.D.GeneralPage};var et=ee}},function(e){e.O(0,[6886,7912,7749,8526,9417,9774,2888,179],function(){return e(e.s=40528)}),_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.