This repository was archived by the owner on Sep 17, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path4531.13eb2213.chunk.js
1 lines (1 loc) · 7.75 KB
/
4531.13eb2213.chunk.js
1
"use strict";(self.webpackChunkacellus=self.webpackChunkacellus||[]).push([[4531],{31239:function(e,r,n){n.d(r,{A:function(){return c}});var t=n(1413),a=n(29439),o=n(47313),i=n(47292);function s(e,r){var n,a,o=r.payload,s={},u={};switch(o&&(o.error?(s=o).action=r.type:u=o),r.type){case i.cS:return(0,t.Z)((0,t.Z)({},e),{},{error:"",called:r.next,loading:!0});case i.aE:return(0,t.Z)((0,t.Z)({},e),{},{error:s,teacherDevCourses:u,loading:!1});case i.pV:return(0,t.Z)((0,t.Z)({},e),{},{error:s,settings:u,loading:!1});case i.I4:var l=e.settings;return u.contactInfo?l.contactInfo=u.contactInfo:u.features?l.features=u.features:u.grading?l.grading=u.grading:l=e.settings,(0,t.Z)((0,t.Z)({},e),{},{error:s,settings:l,loading:!1});case i.fU:return(0,t.Z)((0,t.Z)({},e),{},{error:s,mediaServers:u,loading:!1});case i.fo:return(0,t.Z)((0,t.Z)({},e),{},{error:s,users:u,usersCalled:!0,loading:!1});case i.KC:var d=e.mediaServers;return u.length?d.mediaServers=u:d=e.mediaServers,(0,t.Z)((0,t.Z)({},e),{},{error:s,mediaServers:d,loading:!1});case i.zE:return(0,t.Z)((0,t.Z)({},e),{},{error:s,enrollmentGroups:u,loading:!1});case i.nZ:var c=e.enrollmentGroups;return u.enrollmentGroupID?null===(n=c.groups)||void 0===n||n.push(u):c=e.enrollmentGroups,(0,t.Z)((0,t.Z)({},e),{},{error:s,enrollmentGroups:c,loading:!1});case i.dO:return(0,t.Z)((0,t.Z)({},e),{},{error:s,transferData:u,loading:!1});case i.ag:var m=e.enrollmentGroups;return u.enrollmentGroupID?null===(a=m.groups)||void 0===a||a.find((function(e){return e.enrollmentGroupID===u.enrollmentGroupID})).courses.push(u.course):m=e.enrollmentGroups,(0,t.Z)((0,t.Z)({},e),{},{error:s,enrollmentGroups:m,loading:!1});case i.vh:return(0,t.Z)((0,t.Z)({},e),{},{usersCalled:!1});default:throw Error("Unhandled Action: ".concat(r.type))}}var u=n(46417),l=(0,o.createContext)(),d={teacherDevCourses:{},settings:{},mediaServers:{},enrollmentGroups:{},users:{},usersCalled:!1,called:"",error:{},loading:!1,licenses:[],spreadSheet:"",transferData:{}};function c(e){var r=(0,o.useReducer)(s,d),n=(0,a.Z)(r,2),i=n[0],c=n[1];return(0,u.jsx)(l.Provider,{value:(0,t.Z)((0,t.Z)({},i),{},{dispatch:c}),children:e.children})}},47292:function(e,r,n){n.d(r,{Dn:function(){return o},Et:function(){return w},I4:function(){return _},Jw:function(){return y},KC:function(){return S},QJ:function(){return t},VQ:function(){return m},Wy:function(){return a},a9:function(){return h},aE:function(){return T},ag:function(){return C},cS:function(){return D},dO:function(){return E},eQ:function(){return d},fU:function(){return i},fl:function(){return c},fo:function(){return Z},gy:function(){return f},nZ:function(){return x},pV:function(){return u},sZ:function(){return l},uV:function(){return s},vh:function(){return G},x:function(){return v},zE:function(){return p},zk:function(){return g}});var t="GET_ANSWER_DATA",a="GET_CLASSES",o="GET_ALERTS",i="GET_MEDIA_SERVERS",s="GET_MONITOR_LIST",u="GET_SETTINGS",l="GET_STUDENT",d="GET_STUDENT_ENROLLMENT",c="GET_STUDENT_ENROLLMENT_COMP",m="GET_STUDENT_ENROLLMENT_ARCHIVED",p="GET_COURSE_ENROLLMENT",E="GET_TRANSFER_STUDENT",g="GET_STUDENT_GRADES",h="GET_STUDENT_STEPS_COMPLETED",T="GET_TEACHER_DEV_COURSES",Z="GET_USERS",f="RESET_STUDENT_DATA",D="SET_LOADING",S="UPDATE_MEDIA_SERVERS",_="UPDATE_SETTINGS",v="UPDATE_STUDENT",w="UPDATE_COURSE_ENROLLMENT",x="ADD_ENROLLMENT_GROUP",C="ADD_COURSE_TO_ENROLLMENT",G="DELETE_STUDENTS",y="DELETE_COURSE_ENROLLMENT"},44531:function(e,r,n){n.r(r),n.d(r,{SubpageWrapper:function(){return S},default:function(){return T}});var t=n(29439),a=n(43681),o=n(47313),i=n(58467),s=n(79250),u=n(70187),l=n(51083),d=n(31239),c=n(1413),m=n(47292);function p(e,r){var n=r.payload,t={},a={};switch(n&&(n.error?(t=n).action=r.type:a=n),r.type){case m.QJ:return(0,c.Z)((0,c.Z)({},e),{},{error:t,answerData:a,loading:!1});case m.Wy:return(0,c.Z)((0,c.Z)({},e),{},{error:t,classes:a,loading:!1});case m.Dn:return(0,c.Z)((0,c.Z)({},e),{},{error:t,alerts:a,loading:!1});case m.uV:return(0,c.Z)((0,c.Z)({},e),{},{error:t,monitorList:a,loading:!1});case m.sZ:return(0,c.Z)((0,c.Z)({},e),{},{error:t,student:a,loading:!1});case m.eQ:return(0,c.Z)((0,c.Z)({},e),{},{error:t,enrollmentData:a,loading:!1});case m.VQ:return(0,c.Z)((0,c.Z)({},e),{},{error:t,enrollmentArchivedData:a,loading:!1});case m.fl:return(0,c.Z)((0,c.Z)({},e),{},{error:t,enrollmentCompletedData:a,loading:!1});case m.zk:return(0,c.Z)((0,c.Z)({},e),{},{error:t,assignmentData:a,loading:!1});case m.a9:return(0,c.Z)((0,c.Z)({},e),{},{error:t,stepsCompletedData:a,loading:!1});case m.gy:return(0,c.Z)((0,c.Z)({},e),{},{assignmentData:{},answerData:{},classes:{},monitorList:{},enrollmentData:{},student:{},stepsCompletedData:{}});case m.cS:return(0,c.Z)((0,c.Z)({},e),{},{error:"",called:r.next,loading:!0});case m.x:var o=(0,c.Z)((0,c.Z)({},e.student),a);return(0,c.Z)((0,c.Z)({},e),{},{error:t,student:o,loading:!1});case m.Et:var i=e.enrollmentData;return void 0!==a.displayCourseID?i.courses.find((function(e){return e.displayCourseID===a.displayCourseID})).currentPosition=a.id:i=e.enrollmentData,(0,c.Z)((0,c.Z)({},e),{},{enrollmentData:i,loading:!1,error:t});case m.Jw:i=e.enrollmentData;return void 0!==a.displayCourseID?i.courses=i.courses.filter((function(e){return e.displayCourseID!==a.displayCourseID})):i=e.enrollmentData,(0,c.Z)((0,c.Z)({},e),{},{enrollmentData:i,loading:!1,error:t});default:throw Error("Unhandled Action: ".concat(r.type))}}var E=n(46417),g=(0,o.createContext)();function h(e){var r=(0,o.useReducer)(p,{alerts:{},answerData:{},assignmentData:{},called:"",classDetails:{},classes:{},enrollmentArchivedData:{},enrollmentCompletedData:{},enrollmentData:{},error:{},loading:!1,monitorList:{},stepsCompletedData:{},student:{}}),n=(0,t.Z)(r,2),a=n[0],i=n[1];return(0,E.jsx)(g.Provider,{value:(0,c.Z)((0,c.Z)({},a),{},{dispatch:i}),children:e.children})}function T(){return(0,E.jsx)(h,{children:(0,E.jsx)(D,{})})}function Z(){return(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)(E.Fragment,{children:"Transfer"}),(0,E.jsx)(C,{children:"\xa0Student"})]})}var f=[{name:"General",path:["","/teacher/manage-users/course-enrollment","/teacher/manage-users/add-student","/teacher/manage-users/add-teacher","/teacher/manage-users/import-students","/teacher/manage-users/year-end","/teacher/manage-users"],exact:!0},{name:(0,E.jsx)(Z,{}),path:"transfer-student"},{name:"# Cards",path:"sign-in-cards"},{name:"Licenses",path:"licenses"},{name:"Action Log",path:"action-log"},{name:"Archives",path:"archives"}];function D(){var e=(0,o.useState)(""),r=(0,t.Z)(e,2),n=r[0],a=r[1];return(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)(u.ZP,{fullWidth:!0,type:"route",navigation:f,selectedTab:n,setSelectedTab:a,textStyle:_,buttonStyles:v,barStyle:w,mobilePath:"/teacher/manage-users/"}),(0,E.jsx)(d.A,{children:(0,E.jsx)(S,{children:(0,E.jsx)(o.Suspense,{fallback:(0,E.jsx)(s.Z,{strokeStyle:x}),children:(0,E.jsx)(i.j3,{})})})})]})}var S=(0,a.Z)(l.i)({flex:"1 1 0%",paddingBottom:"var(--spacing)",paddingTop:"var(--spacing)","@media (min-width: 1024px)":{paddingTop:"2.5rem"}}),_={"--tw-text-opacity":"1",color:"rgb(55 106 215 / var(--tw-text-opacity))"},v={paddingTop:"0.5rem","@media (min-width: 768px)":{width:"9rem !important"},"@media (min-width: 1024px)":{width:"10rem !important"},"@media (min-width: 1280px)":{width:"15rem !important"},"@media (min-width: 1536px)":{width:"15rem !important"},"@media (min-width: 1750px)":{width:"16rem !important"}},w={"--tw-border-opacity":"1",borderColor:"rgb(55 106 215 / var(--tw-border-opacity))","--tw-bg-opacity":"1",backgroundColor:"rgb(55 106 215 / var(--tw-bg-opacity))","@media (min-width: 768px)":{width:"9rem"},"@media (min-width: 1024px)":{width:"10rem"},"@media (min-width: 1280px)":{width:"15rem"},"@media (min-width: 1536px)":{width:"15rem"},"@media (min-width: 1750px)":{width:"16rem"}},x={stroke:"#537EDC"},C=a.Z.span({display:"none",fontSize:"inherit",color:"inherit","@media (min-width: 1280px)":{display:"block"}})}}]);