text: (this.webpackJsonp1984=this.webpackJsonp1984||[]).push([[0],{515:function(e,t,a){"use strict";a.r(t);var n=a(80),r=a.n(n),c=a(21);Boolean("localhost"===window.location.hostname||"[::1]"===window.location.hostname||window.location.hostname.match(/^127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/));a(385);var i=a(18),l=a(615),s=a(543),o=a(574),j=Object(s.a)((function(){return Object(o.a)({"@global":{"*":{boxSizing:"border-box",margin:0,padding:0},html:{"-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale",height:"100%",width:"100%"},body:{backgroundColor:"#f4f6f8",height:"100%",width:"100%"},a:{textDecoration:"none"},"#root":{height:"100%",width:"100%"}}})})),d=function(){return j(),null},u=a(218);u.Chart.helpers.extend(u.Chart.elements.Rectangle.prototype,{draw:function(){var e,t,a,n,r,c,i,l,s=this._chart.ctx,o=this._view,j=o.borderWidth,d=this._chart.config.options.cornerRadius;if(d<0&&(d=0),"undefined"===typeof d&&(d=0),o.horizontal?(e=o.base,t=o.x,a=o.y-o.height/2,n=o.y+o.height/2,r=t>e?1:-1,c=1,i=o.borderSkipped||"left"):(e=o.x-o.width/2,t=o.x+o.width/2,a=o.y,r=1,c=(n=o.base)>a?1:-1,i=o.borderSkipped||"bottom"),j){var u=Math.min(Math.abs(e-t),Math.abs(a-n)),b=(j=j>u?u:j)/2,h=e+("left"!==i?b*r:0),x=t+("right"!==i?-b*r:0),p=a+("top"!==i?b*c:0),m=n+("bottom"!==i?-b*c:0);h!==x&&(a=p,n=m),p!==m&&(e=h,t=x)}s.beginPath(),s.fillStyle=o.backgroundColor,s.strokeStyle=o.borderColor,s.lineWidth=j;var O=[[e,n],[e,a],[t,a],[t,n]],g=["bottom","left","top","right"].indexOf(i,0);function f(e){return O[(g+e)%4]}-1===g&&(g=0);var v=f(0);s.moveTo(v[0],v[1]);for(var y=1;y<4;y+=1){v=f(y);var w=y+1;4===w&&(w=0);var S=O[2][0]-O[1][0],C=O[0][1]-O[1][1],k=O[1][0],T=O[1][1];if((l=d)>Math.abs(C)/2&&(l=Math.floor(Math.abs(C)/2)),l>Math.abs(S)/2&&(l=Math.floor(Math.abs(S)/2)),C<0){var W=k,P=k+S,I=T+C,N=T+C,M=k,q=k+S,B=T,E=T;s.moveTo(M+l,B),s.lineTo(q-l,E),s.quadraticCurveTo(q,E,q,E-l),s.lineTo(P,N+l),s.quadraticCurveTo(P,N,P-l,N),s.lineTo(W+l,I),s.quadraticCurveTo(W,I,W,I+l),s.lineTo(M,B-l),s.quadraticCurveTo(M,B,M+l,B)}else if(S<0){var D=k+S,z=k,A=T,F=T,U=k+S,H=k,L=T+C,_=T+C;s.moveTo(U+l,L),s.lineTo(H-l,_),s.quadraticCurveTo(H,_,H,_-l),s.lineTo(z,F+l),s.quadraticCurveTo(z,F,z-l,F),s.lineTo(D+l,A),s.quadraticCurveTo(D,A,D,A+l),s.lineTo(U,L-l),s.quadraticCurveTo(U,L,U+l,L)}else s.moveTo(k+l,T),s.lineTo(k+S-l,T),s.quadraticCurveTo(k+S,T,k+S,T+l),s.lineTo(k+S,T+C-l),s.quadraticCurveTo(k+S,T+C,k+S-l,T+C),s.lineTo(k+l,T+C),s.quadraticCurveTo(k,T+C,k,T+C-l),s.lineTo(k,T+l),s.quadraticCurveTo(k,T,k+l,T)}s.fill(),j&&s.stroke()}});var b=a(373),h=a(17),x=Object(b.a)({palette:{background:{default:"#F4F6F8",paper:h.a.common.white},primary:{contrastText:"#ffffff",main:"#5664d2"},text:{primary:"#172b4d",secondary:"#6b778c"}},shadows:["none","0 0 0 1px rgba(63,63,68,0.05), 0 1px 2px 0 rgba(63,63,68,0.15)","0 0 1px 0 rgba(0,0,0,0.31), 0 2px 2px -2px rgba(0,0,0,0.25)","0 0 1px 0 rgba(0,0,0,0.31), 0 3px 4px -2px rgba(0,0,0,0.25)","0 0 1px 0 rgba(0,0,0,0.31), 0 3px 4px -2px rgba(0,0,0,0.25)","0 0 1px 0 rgba(0,0,0,0.31), 0 4px 6px -2px rgba(0,0,0,0.25)","0 0 1px 0 rgba(0,0,0,0.31), 0 4px 6px -2px rgba(0,0,0,0.25)","0 0 1px 0 rgba(0,0,0,0.31), 0 4px 8px -2px rgba(0,0,0,0.25)","0 0 1px 0 rgba(0,0,0,0.31), 0 5px 8px -2px rgba(0,0,0,0.25)","0 0 1px 0 rgba(0,0,0,0.31), 0 6px 12px -4px rgba(0,0,0,0.25)","0 0 1px 0 rgba(0,0,0,0.31), 0 7px 12px -4px rgba(0,0,0,0.25)","0 0 1px 0 rgba(0,0,0,0.31), 0 6px 16px -4px rgba(0,0,0,0.25)","0 0 1px 0 rgba(0,0,0,0.31), 0 7px 16px -4px rgba(0,0,0,0.25)","0 0 1px 0 rgba(0,0,0,0.31), 0 8px 18px -8px rgba(0,0,0,0.25)","0 0 1px 0 rgba(0,0,0,0.31), 0 9px 18px -8px rgba(0,0,0,0.25)","0 0 1px 0 rgba(0,0,0,0.31), 0 10px 20px -8px rgba(0,0,0,0.25)","0 0 1px 0 rgba(0,0,0,0.31), 0 11px 20px -8px rgba(0,0,0,0.25)","0 0 1px 0 rgba(0,0,0,0.31), 0 12px 22px -8px rgba(0,0,0,0.25)","0 0 1px 0 rgba(0,0,0,0.31), 0 13px 22px -8px rgba(0,0,0,0.25)","0 0 1px 0 rgba(0,0,0,0.31), 0 14px 24px -8px rgba(0,0,0,0.25)","0 0 1px 0 rgba(0,0,0,0.31), 0 16px 28px -8px rgba(0,0,0,0.25)","0 0 1px 0 rgba(0,0,0,0.31), 0 18px 30px -8px rgba(0,0,0,0.25)","0 0 1px 0 rgba(0,0,0,0.31), 0 20px 32px -8px rgba(0,0,0,0.25)","0 0 1px 0 rgba(0,0,0,0.31), 0 22px 34px -8px rgba(0,0,0,0.25)","0 0 1px 0 rgba(0,0,0,0.31), 0 24px 36px -8px rgba(0,0,0,0.25)"],typography:{h1:{fontWeight:500,fontSize:35,letterSpacing:"-0.24px"},h2:{fontWeight:500,fontSize:29,letterSpacing:"-0.24px"},h3:{fontWeight:500,fontSize:24,letterSpacing:"-0.06px"},h4:{fontWeight:500,fontSize:20,letterSpacing:"-0.06px"},h5:{fontWeight:500,fontSize:16,letterSpacing:"-0.05px"},h6:{fontWeight:500,fontSize:14,letterSpacing:"-0.05px"},overline:{fontWeight:500}}}),p=a(10),m=a(6),O=a(1),g=a(5),f=a(14),v=a(113),y=a(566),w=a(575),S=a(577),C=a(546),k=a(567),T=a(578),W=a(568),P=a(362),I=a.n(P),N=a(360),M=a.n(N),q=a(361),B=a.n(q),E=a(0),D=function(e){return Object(E.jsx)("img",Object(f.a)({alt:"Logo",src:"/static/logo.svg"},e))},z=function(e){var t=e.onMobileNavOpen,a=Object(v.a)(e,["onMobileNavOpen"]),n=Object(O.useState)([]),r=Object(p.a)(n,1)[0],l=Object(i.h)(),s=Object(y.a)(["user"]),o=Object(p.a)(s,3),j=(o[0],o[1],o[2]);return Object(E.jsx)(w.a,Object(f.a)(Object(f.a)({elevation:0},a),{},{children:Object(E.jsxs)(S.a,{children:[Object(E.jsx)(c.b,{to:"/",children:Object(E.jsx)(D,{})}),Object(E.jsx)(C.a,{sx:{flexGrow:1}}),Object(E.jsxs)(k.a,{lgDown:!0,children:[Object(E.jsx)(T.a,{color:"inherit",children:Object(E.jsx)(W.a,{badgeContent:r.length,color:"primary",variant:"dot",children:Object(E.jsx)(M.a,{})})}),Object(E.jsx)(T.a,{color:"inherit",children:Object(E.jsx)(B.a,{onClick:function(){j("invalid"),window.localStorage.clear(),l("/login")}})})]}),Object(E.jsx)(k.a,{lgUp:!0,children:Object(E.jsx)(T.a,{color:"inherit",onClick:t,children:Object(E.jsx)(I.a,{})})})]})}))},A=a(571),F=a(525),U=a(580),H=a(581),L=a(582),_=a(549),R=a(550),J=a(551),G=a(552),V=a(222),Y=a(579),K=function(e){var t=e.href,a=e.icon,n=e.title,r=Object(v.a)(e,["href","icon","title"]),l=Object(i.g)(),s=Object(y.a)(["user"]),o=Object(p.a)(s,3),j=(o[0],o[1],o[2]),d=!!t&&!!Object(i.d)({path:t,end:!1},l.pathname);return Object(E.jsx)(V.b,Object(f.a)(Object(f.a)({disableGutters:!0,sx:{display:"flex",py:0}},r),{},{children:Object(E.jsxs)(Y.a,{component:c.c,sx:Object(f.a)(Object(f.a)({color:"text.secondary",fontWeight:"medium",justifyContent:"flex-start",letterSpacing:0,py:1.25,textTransform:"none",width:"100%"},d&&{color:"primary.main"}),{},{"& svg":{mr:1}}),onClick:function(){"/login"==t&&(j("invalid"),window.localStorage.clear())},to:t,children:[a&&Object(E.jsx)(a,{size:"20"}),Object(E.jsx)("span",{children:n})]})}))},Q=[{href:"/app/classes",icon:_.a,title:"Class"},{href:"/app/checkin",icon:R.a,title:"Now Checking"},{href:"/app/StudentsManager",icon:J.a,title:"Students"},{href:"/login",icon:G.a,title:"Logout"}];function $(e){var t=e.onMobileClose,a=e.openMobile,n=Object(i.g)(),r=Object(O.useState)({name:"none",email:"none",uni:"none"}),l=Object(p.a)(r,2),s=l[0],o=l[1];Object(O.useEffect)((function(){JSON.parse(window.localStorage.getItem("UserInfo"))&&o(JSON.parse(window.localStorage.getItem("UserInfo")))}),[]),Object(O.useEffect)((function(){a&&t&&t()}),[n.pathname]);var j=Object(E.jsxs)(C.a,{sx:{display:"flex",flexDirection:"column",height:"100%"},children:[Object(E.jsxs)(C.a,{sx:{alignItems:"center",display:"flex",flexDirection:"column",p:2},children:[Object(E.jsx)(A.a,{component:c.b,src:"/static/images/avatars/avatar_12.png",sx:{cursor:"pointer",width:64,height:64},to:"/"}),Object(E.jsx)(F.a,{color:"textPrimary",variant:"h5",children:s.name}),Object(E.jsx)(F.a,{color:"textSecondary",variant:"body2",children:s.email})]}),Object(E.jsx)(U.a,{}),Object(E.jsx)(C.a,{sx:{p:2},children:Object(E.jsx)(H.a,{children:Q.map((function(e){return Object(E.jsx)(K,{href:e.href,title:e.title,icon:e.icon},e.title)}))})})]});return Object(E.jsxs)(E.Fragment,{children:[Object(E.jsx)(k.a,{lgUp:!0,children:Object(E.jsx)(L.a,{anchor:"left",onClose:t,open:a,variant:"temporary",PaperProps:{sx:{width:256}},children:j})}),Object(E.jsx)(k.a,{lgDown:!0,children:Object(E.jsx)(L.a,{anchor:"left",open:!0,variant:"persistent",PaperProps:{sx:{width:256,top:64,height:"calc(100% - 64px)"}},children:j})})]})}$.defaultProps={onMobileClose:function(){},openMobile:!1};var X=Object(g.a)("div")((function(e){return{backgroundColor:e.theme.palette.background.default,display:"flex",height:"100%",overflow:"hidden",width:"100%"}})),Z=Object(g.a)("div")((function(e){var t=e.theme;return Object(m.a)({display:"flex",flex:"1 1 auto",overflow:"hidden",paddingTop:64},t.breakpoints.up("lg"),{paddingLeft:256})})),ee=Object(g.a)("div")({display:"flex",flex:"1 1 auto",overflow:"hidden"}),te=Object(g.a)("div")({flex:"1 1 auto",height:"100%",overflow:"auto"}),ae=function(){var e=Object(O.useState)(!1),t=Object(p.a)(e,2),a=t[0],n=t[1];return Object(E.jsxs)(X,{children:[Object(E.jsx)(z,{onMobileNavOpen:function(){return n(!0)}}),Object(E.jsx)($,{onMobileClose:function(){return n(!1)},openMobile:a}),Object(E.jsx)(Z,{children:Object(E.jsx)(ee,{children:Object(E.jsx)(te,{children:Object(E.jsx)(i.b,{})})})})]})},ne=function(e){return Object(E.jsx)(w.a,Object(f.a)(Object(f.a)({elevation:0},e),{},{children:Object(E.jsx)(S.a,{sx:{height:64},children:Object(E.jsx)(c.b,{to:"/",children:Object(E.jsx)(D,{})})})}))},re=Object(g.a)("div")((function(e){return{backgroundColor:e.theme.palette.background.paper,display:"flex",height:"100%",overflow:"hidden",width:"100%"}})),ce=Object(g.a)("div")({display:"flex",flex:"1 1 auto",overflow:"hidden",paddingTop:64}),ie=Object(g.a)("div")({display:"flex",flex:"1 1 auto",overflow:"hidden"}),le=Object(g.a)("div")({flex:"1 1 auto",height:"100%",overflow:"auto"}),se=function(){return Object(E.jsxs)(re,{children:[Object(E.jsx)(ne,{}),Object(E.jsx)(ce,{children:Object(E.jsx)(ie,{children:Object(E.jsx)(le,{children:Object(E.jsx)(i.b,{})})})})]})},oe=a(25),je=a(597),de=a(587),ue=a(215),be=a.n(ue),he=a(583),xe=a(584),pe=a(585),me="/static/images/avatars/avatar_6.png",Oe="Los Angeles",ge="USA",fe="Katarina Smith",ve="GTM-7",ye=function(e){return Object(E.jsxs)(he.a,Object(f.a)(Object(f.a)({},e),{},{children:[Object(E.jsx)(xe.a,{children:Object(E.jsxs)(C.a,{sx:{alignItems:"center",display:"flex",flexDirection:"column"},children:[Object(E.jsx)(A.a,{src:me,sx:{height:100,width:100}}),Object(E.jsx)(F.a,{color:"textPrimary",gutterBottom:!0,variant:"h3",children:fe}),Object(E.jsx)(F.a,{color:"textSecondary",variant:"body1",children:"".concat(Oe," ").concat(ge)}),Object(E.jsx)(F.a,{color:"textSecondary",variant:"body1",children:"".concat(be()().format("hh:mm A")," ").concat(ve)})]})}),Object(E.jsx)(U.a,{}),Object(E.jsx)(pe.a,{children:Object(E.jsx)(Y.a,{color:"primary",fullWidth:!0,variant:"text",children:"Upload picture"})})]}))},we=a(586),Se=a(588),Ce=[{value:"alabama",label:"Alabama"},{value:"new-york",label:"New York"},{value:"san-francisco",label:"San Francisco"}],ke=function(e){var t=Object(O.useState)({firstName:"Katarina",lastName:"Smith",email:"demo@devias.io",phone:"",state:"Alabama",country:"USA"}),a=Object(p.a)(t,2),n=a[0],r=a[1],c=function(e){r(Object(f.a)(Object(f.a)({},n),{},Object(m.a)({},e.target.name,e.target.value)))};return Object(E.jsx)("form",Object(f.a)(Object(f.a)({autoComplete:"off",noValidate:!0},e),{},{children:Object(E.jsxs)(he.a,{children:[Object(E.jsx)(we.a,{subheader:"The information can be edited",title:"Profile"}),Object(E.jsx)(U.a,{}),Object(E.jsx)(xe.a,{children:Object(E.jsxs)(de.a,{container:!0,spacing:3,children:[Object(E.jsx)(de.a,{item:!0,md:6,xs:12,children:Object(E.jsx)(Se.a,{fullWidth:!0,helperText:"Please specify the first name",label:"First name",name:"firstName",onChange:c,required:!0,value:n.firstName,variant:"outlined"})}),Object(E.jsx)(de.a,{item:!0,md:6,xs:12,children:Object(E.jsx)(Se.a,{fullWidth:!0,label:"Last name",name:"lastName",onChange:c,required:!0,value:n.lastName,variant:"outlined"})}),Object(E.jsx)(de.a,{item:!0,md:6,xs:12,children:Object(E.jsx)(Se.a,{fullWidth:!0,label:"Email Address",name:"email",onChange:c,required:!0,value:n.email,variant:"outlined"})}),Object(E.jsx)(de.a,{item:!0,md:6,xs:12,children:Object(E.jsx)(Se.a,{fullWidth:!0,label:"Phone Number",name:"phone",onChange:c,type:"number",value:n.phone,variant:"outlined"})}),Object(E.jsx)(de.a,{item:!0,md:6,xs:12,children:Object(E.jsx)(Se.a,{fullWidth:!0,label:"Country",name:"country",onChange:c,required:!0,value:n.country,variant:"outlined"})}),Object(E.jsx)(de.a,{item:!0,md:6,xs:12,children:Object(E.jsx)(Se.a,{fullWidth:!0,label:"Select State",name:"state",onChange:c,required:!0,select:!0,SelectProps:{native:!0},value:n.state,variant:"outlined",children:Ce.map((function(e){return Object(E.jsx)("option",{value:e.value,children:e.label},e.value)}))})})]})}),Object(E.jsx)(U.a,{}),Object(E.jsx)(C.a,{sx:{display:"flex",justifyContent:"flex-end",p:2},children:Object(E.jsx)(Y.a,{color:"primary",variant:"contained",children:"Save details"})})]})}))},Te=function(){return Object(E.jsxs)(E.Fragment,{children:[Object(E.jsx)(oe.a,{children:Object(E.jsx)("title",{children:"Account | 1984"})}),Object(E.jsx)(C.a,{sx:{backgroundColor:"background.default",minHeight:"100%",py:3},children:Object(E.jsx)(je.a,{maxWidth:"lg",children:Object(E.jsxs)(de.a,{container:!0,spacing:3,children:[Object(E.jsx)(de.a,{item:!0,lg:4,md:6,xs:12,children:Object(E.jsx)(ye,{})}),Object(E.jsx)(de.a,{item:!0,lg:8,md:6,xs:12,children:Object(E.jsx)(ke,{})})]})})})]})},We=a(16),Pe=a.n(We),Ie=a(28),Ne=a(29),Me=a.n(Ne);function qe(){return(qe=Object(Ie.a)(Pe.a.mark((function e(t,a,n,r,c,i,l){var s;return Pe.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Me.a.post("/api/lecture/create",{type:t,university:a,lecture:n,lectureClass:r,professor:c,email:i,timetable:l});case 3:return s=e.sent,e.abrupt("return",s.data);case 7:return e.prev=7,e.t0=e.catch(0),console.log(e.t0.response.status),console.log(e.t0.response.data),e.abrupt("return",!1);case 12:case"end":return e.stop()}}),e,null,[[0,7]])})))).apply(this,arguments)}function Be(){return(Be=Object(Ie.a)(Pe.a.mark((function e(t){var a,n;return Pe.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,a="/api/lecture/lecturelist/"+t,e.next=4,Me.a.get(a);case 4:return n=e.sent,e.abrupt("return",n.data);case 8:return e.prev=8,e.t0=e.catch(0),console.log(e.t0.response.status),console.log(e.t0.response.data),e.abrupt("return",!1);case 13:case"end":return e.stop()}}),e,null,[[0,8]])})))).apply(this,arguments)}function Ee(){return(Ee=Object(Ie.a)(Pe.a.mark((function e(t){var a,n;return Pe.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,a="/api/lecture/lecturelistinfo/"+t,e.next=4,Me.a.get(a);case 4:return n=e.sent,e.abrupt("return",n.data);case 8:return e.prev=8,e.t0=e.catch(0),console.log(e.t0.response.status),console.log(e.t0.response.data),e.abrupt("return",!1);case 13:case"end":return e.stop()}}),e,null,[[0,8]])})))).apply(this,arguments)}function De(){return(De=Object(Ie.a)(Pe.a.mark((function e(t){var a,n;return Pe.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,a="/api/lecture/lectureAllWeekInfo/"+t,e.next=4,Me.a.get(a);case 4:return n=e.sent,e.abrupt("return",n.data);case 8:return e.prev=8,e.t0=e.catch(0),console.log(e.t0.response.status),console.log(e.t0.response.data),e.abrupt("return",!1);case 13:case"end":return e.stop()}}),e,null,[[0,8]])})))).apply(this,arguments)}function ze(){return(ze=Object(Ie.a)(Pe.a.mark((function e(t){var a,n;return Pe.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,console.log("id"+t),a="/api/lecture/lectureWeekInfo/"+t,e.next=5,Me.a.get(a);case 5:return n=e.sent,e.abrupt("return",n.data);case 9:return e.prev=9,e.t0=e.catch(0),console.log(e.t0.response.status),console.log(e.t0.response.data),e.abrupt("return",!1);case 14:case"end":return e.stop()}}),e,null,[[0,9]])})))).apply(this,arguments)}function Ae(){return(Ae=Object(Ie.a)(Pe.a.mark((function e(t,a,n,r,c,i,l,s,o,j){var d,u,b;return Pe.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,d=new Date,u=d.setMinutes(d.getMinutes()+0),e.next=5,Me.a.post("/api/lecture/start",{lectureName:t,lectureCode:a,week:n,day:r,startTime:u,endTime:l,checkTime:c,lateTime:i,professorName:s,way:o,email:j});case 5:return b=e.sent,e.abrupt("return",b.data);case 9:return e.prev=9,e.t0=e.catch(0),console.log(e.t0.response.status),console.log(e.t0.response.data),e.abrupt("return",!1);case 14:case"end":return e.stop()}}),e,null,[[0,9]])})))).apply(this,arguments)}function Fe(){return(Fe=Object(Ie.a)(Pe.a.mark((function e(t){var a,n;return Pe.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,a="/api/lecture/lectureWeekInfo/"+t,e.next=4,Me.a.get(a);case 4:return n=e.sent,e.abrupt("return",n.data);case 8:return e.prev=8,e.t0=e.catch(0),console.log(e.t0.response.status),console.log(e.t0.response.data),e.abrupt("return",!1);case 13:case"end":return e.stop()}}),e,null,[[0,8]])})))).apply(this,arguments)}function Ue(){return(Ue=Object(Ie.a)(Pe.a.mark((function e(t){var a,n;return Pe.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,a="/api/lecture/attendList/"+t,e.next=4,Me.a.get(a);case 4:return n=e.sent,e.abrupt("return",n.data);case 8:return e.prev=8,e.t0=e.catch(0),console.log(e.t0.response.status),console.log(e.t0.response.data),e.abrupt("return",!1);case 13:case"end":return e.stop()}}),e,null,[[0,8]])})))).apply(this,arguments)}function He(){return(He=Object(Ie.a)(Pe.a.mark((function e(t,a,n,r){var c;return Pe.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Me.a.post("/api/lecture/studentssetting",{lectureCode:t,email:a,attendance:n,permission:r});case 3:return c=e.sent,e.abrupt("return",c.data);case 7:return e.prev=7,e.t0=e.catch(0),console.log(e.t0.response.status),console.log(e.t0.response.data),e.abrupt("return",!1);case 12:case"end":return e.stop()}}),e,null,[[0,7]])})))).apply(this,arguments)}function Le(){return(Le=Object(Ie.a)(Pe.a.mark((function e(t,a){var n;return Pe.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Me.a.post("/api/attend/active",{lectureCode:t,token:a});case 3:return n=e.sent,e.abrupt("return",n.data);case 7:return e.prev=7,e.t0=e.catch(0),console.log(e.t0.response.status),console.log(e.t0.response.data),e.abrupt("return",!1);case 12:case"end":return e.stop()}}),e,null,[[0,7]])})))).apply(this,arguments)}var _e=a(102),Re=a.n(_e),Je=a(598),Ge=a(599),Ve=a(600),Ye=a(601),Ke=a(564),Qe=a(602),$e=a(569);function Xe(){var e=Object(O.useState)([]),t=Object(p.a)(e,2),a=t[0],n=t[1],r=Object(i.h)(),c=Object(O.useState)(10),l=Object(p.a)(c,2),s=l[0],o=l[1],j=Object(O.useState)(0),d=Object(p.a)(j,2),u=d[0],b=d[1],h=Object(O.useState)([{code:"None",name:"None"}]),x=Object(p.a)(h,2),m=x[0],g=x[1];Object(O.useEffect)((function(){window.localStorage.getItem("UserInfo")&&function(e){return Ee.apply(this,arguments)}(JSON.parse(window.localStorage.getItem("UserInfo")).email).then((function(e){g(e)}))}),[]);var f=function(e){r("/app/StudentsManager2/"+e)};return Object(E.jsxs)(he.a,{children:[Object(E.jsx)(Re.a,{children:Object(E.jsx)(C.a,{sx:{minWidth:1050},children:Object(E.jsxs)(Je.a,{children:[Object(E.jsx)(Ge.a,{children:Object(E.jsxs)(Ve.a,{children:[Object(E.jsx)(Ye.a,{padding:"checkbox",children:Object(E.jsx)(Ke.a,{checked:a.length===m.length,color:"primary",indeterminate:a.length>0&&a.length<m.length,onChange:function(e){var t;t=e.target.checked?m.map((function(e,t){return t})):[],n(t)}})}),Object(E.jsx)(Ye.a,{children:"Lecture"}),Object(E.jsx)(Ye.a,{children:"Type"}),Object(E.jsx)(Ye.a,{children:"Class"})]})}),Object(E.jsx)(Qe.a,{children:m.slice(0,s).map((function(e,t){return Object(E.jsxs)(Ve.a,{hover:!0,selected:-1!==a.indexOf(t),children:[Object(E.jsx)(Ye.a,{padding:"checkbox",children:Object(E.jsx)(Ke.a,{checked:-1!==a.indexOf(t),onChange:function(e){return function(e,t){var r=a.indexOf(t),c=[];-1===r?c=c.concat(a,t):0===r?c=c.concat(a.slice(1)):r===a.length-1?c=c.concat(a.slice(0,-1)):r>0&&(c=c.concat(a.slice(0,r),a.slice(r+1))),n(c)}(0,t)},value:"true"})}),Object(E.jsx)(Ye.a,{onClick:function(t){return f(e._id)},children:Object(E.jsx)(C.a,{sx:{alignItems:"center",display:"flex"},children:Object(E.jsx)(F.a,{color:"textPrimary",variant:"body1",children:e.lecture})})}),Object(E.jsx)(Ye.a,{onClick:function(t){return f(e._id)},children:e.type}),Object(E.jsx)(Ye.a,{onClick:function(t){return f(e._id)},children:e.lectureClass})]},t)}))})]})})}),Object(E.jsx)($e.a,{component:"div",count:m.length,onPageChange:function(e,t){b(t)},onRowsPerPageChange:function(e){o(e.target.value)},page:u,rowsPerPage:s,rowsPerPageOptions:[5,10,25]})]})}var Ze=a(604),et=a(377),tt=a(559),at=function(e){return Object(E.jsxs)(C.a,Object(f.a)(Object(f.a)({},e),{},{children:[Object(E.jsx)(C.a,{sx:{display:"flex",justifyContent:"flex-end"}}),Object(E.jsx)(C.a,{sx:{mt:3},children:Object(E.jsx)(he.a,{children:Object(E.jsx)(xe.a,{children:Object(E.jsx)(C.a,{sx:{maxWidth:500},children:Object(E.jsx)(Se.a,{fullWidth:!0,InputProps:{startAdornment:Object(E.jsx)(Ze.a,{position:"start",children:Object(E.jsx)(et.a,{fontSize:"small",color:"action",children:Object(E.jsx)(tt.a,{})})})},placeholder:"Search Student",variant:"outlined"})})})})})]}))};function nt(){return Object(E.jsxs)(E.Fragment,{children:[Object(E.jsx)(oe.a,{children:Object(E.jsx)("title",{children:"Students | 1984"})}),Object(E.jsx)(C.a,{sx:{backgroundColor:"background.default",minHeight:"100%",py:3},children:Object(E.jsxs)(je.a,{maxWidth:!1,children:[Object(E.jsx)(at,{}),Object(E.jsx)(C.a,{sx:{pt:3},children:Object(E.jsx)(Xe,{})})]})})]})}function rt(e){var t=Object(O.useState)([]),a=Object(p.a)(t,2),n=a[0],r=a[1],c=Object(i.h)(),l=Object(O.useState)(10),s=Object(p.a)(l,2),o=s[0],j=s[1],d=Object(O.useState)(0),u=Object(p.a)(d,2),b=u[0],h=u[1],x=Object(O.useState)([{code:"None",name:"None"}]),m=Object(p.a)(x,2),g=m[0],f=m[1];Object(O.useEffect)((function(){window.localStorage.getItem("UserInfo")&&function(e){return De.apply(this,arguments)}(e.lectureWeekId).then((function(e){f(e)}))}),[]);var v=function(e){var t="/app/StudentsManager3/"+e;window.localStorage.setItem("selectedWeek",e),console.log(e),c(t)};return Object(E.jsxs)(he.a,{children:[Object(E.jsx)(Re.a,{children:Object(E.jsx)(C.a,{sx:{minWidth:1050},children:Object(E.jsxs)(Je.a,{children:[Object(E.jsx)(Ge.a,{children:Object(E.jsxs)(Ve.a,{children:[Object(E.jsx)(Ye.a,{padding:"checkbox",children:Object(E.jsx)(Ke.a,{checked:n.length===g.length,color:"primary",indeterminate:n.length>0&&n.length<g.length,onChange:function(e){var t;t=e.target.checked?g.map((function(e,t){return t})):[],r(t)}})}),Object(E.jsx)(Ye.a,{children:"LectureWeek"}),Object(E.jsx)(Ye.a,{children:"Time"}),Object(E.jsx)(Ye.a,{children:"CheckTime"}),Object(E.jsx)(Ye.a,{children:"Way"})]})}),Object(E.jsx)(Qe.a,{children:g.slice(0,o).map((function(e,t){return Object(E.jsxs)(Ve.a,{hover:!0,selected:-1!==n.indexOf(t),children:[Object(E.jsx)(Ye.a,{padding:"checkbox",children:Object(E.jsx)(Ke.a,{checked:-1!==n.indexOf(t),onChange:function(e){return function(e,t){var a=n.indexOf(t),c=[];-1===a?c=c.concat(n,t):0===a?c=c.concat(n.slice(1)):a===n.length-1?c=c.concat(n.slice(0,-1)):a>0&&(c=c.concat(n.slice(0,a),n.slice(a+1))),r(c)}(0,t)},value:"true"})}),Object(E.jsx)(Ye.a,{onClick:function(t){return v(e._id)},children:Object(E.jsx)(C.a,{sx:{alignItems:"center",display:"flex"},children:Object(E.jsx)(F.a,{color:"textPrimary",variant:"body1",children:e.week+"\uc8fc\ucc28"})})}),Object(E.jsx)(Ye.a,{onClick:function(t){return v(e._id)},children:new Date(parseInt(e.startTime)).toLocaleString()}),Object(E.jsx)(Ye.a,{onClick:function(t){return v(e._id)},children:e.checkTime+"\ubd84"}),Object(E.jsx)(Ye.a,{onClick:function(t){return v(e._id)},children:"true"==e.way?"Active":"Passive"})]},t)}))})]})})}),Object(E.jsx)($e.a,{component:"div",count:g.length,onPageChange:function(e,t){h(t)},onRowsPerPageChange:function(e){j(e.target.value)},page:b,rowsPerPage:o,rowsPerPageOptions:[5,10,25]})]})}function ct(){var e=Object(i.i)().id;return Object(E.jsxs)(E.Fragment,{children:[Object(E.jsx)(oe.a,{children:Object(E.jsx)("title",{children:"Students | 1984"})}),Object(E.jsx)(C.a,{sx:{backgroundColor:"background.default",minHeight:"100%",py:3},children:Object(E.jsxs)(je.a,{maxWidth:!1,children:[Object(E.jsx)(at,{}),Object(E.jsx)(C.a,{sx:{pt:3},children:Object(E.jsx)(rt,{lectureWeekId:e})})]})})]})}var it=a(57),lt=a(605),st=a(606),ot=a(607),jt=a(591),dt=a(592),ut=a(593),bt=a(603),ht=a(608),xt=Object(s.a)((function(e){return{root:{flexGrow:15,flexDirection:"column",display:"flex",justifyContent:"center"},formControl:{margin:e.spacing(0)},selectEmpty:{marginTop:e.spacing(1)},control:{marginTop:6,marginBottom:2,display:"flex",flexDirection:"column"},control2:{marginTop:15,marginBottom:0},control3:{marginTop:5,marginBottom:0}}}));function pt(e){var t=xt(),a=Object(O.useState)(!1),n=Object(p.a)(a,2),r=n[0],c=n[1],i=function(){c(!1)};return Object(E.jsxs)(E.Fragment,{children:[Object(E.jsx)(Y.a,{color:"primary",variant:"contained",onClick:function(){c(!0)},children:"Settings"}),Object(E.jsxs)(lt.a,{open:r,onClose:i,"aria-labelledby":"alert-dialog-title","aria-describedby":"alert-dialog-description",maxWidth:"xs",children:[Object(E.jsxs)(st.a,{children:[Object(E.jsx)(C.a,{className:t.control3,children:Object(E.jsx)(F.a,{fontSize:"2rem",variant:"h3",children:"Settings"})}),Object(E.jsxs)(C.a,{className:t.control2,children:["You can Setting your Students Attendance",Object(E.jsx)("br",{}),"And Device Changing Permission"]})]}),Object(E.jsx)(ot.a,{children:Object(E.jsx)(it.a,{initialValues:{attendance:3,permission:"null"},onSubmit:function(t){console.log("asdasd"),function(e,t,a,n){return He.apply(this,arguments)}(window.localStorage.getItem("selectedWeek"),e.email,t.attendance,t.permission).then((function(e){e.success&&i()}))},children:function(e){e.errors,e.handleBlur;var a=e.handleChange,n=e.handleSubmit,r=(e.touched,e.values);return Object(E.jsx)("form",{onSubmit:n,children:Object(E.jsxs)("div",{className:t.root,children:[Object(E.jsxs)(de.a,{container:!0,justify:"center",spacing:3,children:[Object(E.jsx)(de.a,{item:!0,xs:12,children:Object(E.jsxs)(jt.a,{variant:"outlined",className:t.formControl,fullWidth:!0,children:[Object(E.jsx)(dt.a,{id:"attendance",children:"Attendance"}),Object(E.jsxs)(ut.a,{name:"attendance",value:r.attendance,onChange:a,displayEmpty:!0,className:t.selectEmpty,inputProps:{"aria-label":"Without label"},children:[Object(E.jsx)(bt.a,{value:0,children:"Attend"}),Object(E.jsx)(bt.a,{value:1,children:"late"}),Object(E.jsx)(bt.a,{value:2,children:"run"}),Object(E.jsx)(bt.a,{value:3,children:"None"})]})]})}),Object(E.jsx)(de.a,{item:!0,xs:12,children:Object(E.jsxs)(jt.a,{variant:"outlined",className:t.formControl,fullWidth:!0,children:[Object(E.jsx)(dt.a,{id:"permission",children:"Permssion"}),Object(E.jsxs)(ut.a,{name:"permission",value:r.permission,onChange:a,displayEmpty:!0,className:t.selectEmpty,inputProps:{"aria-label":"Without label"},children:[Object(E.jsx)(bt.a,{value:"true",children:"Available"}),Object(E.jsx)(bt.a,{value:"false",children:"Deny"}),Object(E.jsx)(bt.a,{value:"null",children:"None"})]})]})})]}),Object(E.jsx)(ht.a,{children:Object(E.jsxs)(C.a,{sx:{py:1},children:[Object(E.jsx)(Y.a,{onClick:i,variant:"outlined",color:"primary",children:"cancel"}),"   ",Object(E.jsx)(Y.a,{variant:"contained",color:"primary",type:"submit",children:"Confirm"})]})})]})})}})})]})]})}function mt(e){var t=Object(O.useState)([]),a=Object(p.a)(t,2),n=a[0],r=a[1],c=Object(O.useState)(10),i=Object(p.a)(c,2),l=i[0],s=i[1],o=Object(O.useState)(0),j=Object(p.a)(o,2),d=j[0],u=j[1],b=Object(O.useState)([{code:"None",name:"None"}]),h=Object(p.a)(b,2),x=h[0],m=h[1];Object(O.useEffect)((function(){(function(e){return ze.apply(this,arguments)})(e.lectureWeekId).then((function(e){console.log(e),m(e.students)}))}),[]);return Object(E.jsxs)(he.a,{children:[Object(E.jsx)(Re.a,{children:Object(E.jsx)(C.a,{sx:{minWidth:1050},children:Object(E.jsxs)(Je.a,{children:[Object(E.jsx)(Ge.a,{children:Object(E.jsxs)(Ve.a,{children:[Object(E.jsx)(Ye.a,{padding:"checkbox",children:Object(E.jsx)(Ke.a,{checked:n.length===x.length,color:"primary",indeterminate:n.length>0&&n.length<x.length,onChange:function(e){var t;t=e.target.checked?x.map((function(e,t){return t})):[],r(t)}})}),Object(E.jsx)(Ye.a,{children:"Name"}),Object(E.jsx)(Ye.a,{children:"Attend"}),Object(E.jsx)(Ye.a,{children:"Time"}),Object(E.jsx)(Ye.a,{children:"Changed Device"}),Object(E.jsx)(Ye.a,{})]})}),Object(E.jsx)(Qe.a,{children:x.slice(0,l).map((function(e,t){return Object(E.jsxs)(Ve.a,{hover:!0,selected:-1!==n.indexOf(t),children:[Object(E.jsx)(Ye.a,{padding:"checkbox",children:Object(E.jsx)(Ke.a,{checked:-1!==n.indexOf(t),onChange:function(e){return function(e,t){var a=n.indexOf(t),c=[];-1===a?c=c.concat(n,t):0===a?c=c.concat(n.slice(1)):a===n.length-1?c=c.concat(n.slice(0,-1)):a>0&&(c=c.concat(n.slice(0,a),n.slice(a+1))),r(c)}(0,t)},value:"true"})}),Object(E.jsx)(Ye.a,{children:Object(E.jsx)(C.a,{sx:{alignItems:"center",display:"flex"},children:Object(E.jsx)(F.a,{color:"textPrimary",variant:"body1",children:e.name})})}),Object(E.jsxs)(Ye.a,{children:[e.attend&&!e.late&&"\ucd9c\uc11d",e.attend&&e.late&&"\uc9c0\uac01",!e.attend&&!e.late&&"\uacb0\uc11d"]}),Object(E.jsx)(Ye.a,{}),Object(E.jsx)(Ye.a,{}),Object(E.jsx)(Ye.a,{children:Object(E.jsx)(pt,{email:e.email})})]},t)}))})]})})}),Object(E.jsx)($e.a,{component:"div",count:x.length,onPageChange:function(e,t){u(t)},onRowsPerPageChange:function(e){s(e.target.value)},page:d,rowsPerPage:l,rowsPerPageOptions:[5,10,25]})]})}function Ot(){var e=Object(i.i)().id;return Object(E.jsxs)(E.Fragment,{children:[Object(E.jsx)(oe.a,{children:Object(E.jsx)("title",{children:"Students | 1984"})}),Object(E.jsx)(C.a,{sx:{backgroundColor:"background.default",minHeight:"100%",py:3},children:Object(E.jsxs)(je.a,{maxWidth:!1,children:[Object(E.jsx)(at,{}),Object(E.jsx)(C.a,{sx:{pt:3},children:Object(E.jsx)(mt,{lectureWeekId:e})})]})})]})}function gt(){return(gt=Object(Ie.a)(Pe.a.mark((function e(t,a){var n;return Pe.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Me.a.post("/api/account/signin",{email:t,password:a});case 3:return n=e.sent,e.abrupt("return",n.data);case 7:return e.prev=7,e.t0=e.catch(0),console.log(e.t0.response.status),console.log(e.t0.response.data),e.abrupt("return",!1);case 12:case"end":return e.stop()}}),e,null,[[0,7]])})))).apply(this,arguments)}function ft(){return(ft=Object(Ie.a)(Pe.a.mark((function e(t,a,n,r,c,i,l,s){var o;return Pe.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Me.a.post("/api/account/signup",{type:t,name:a,email:n,password:r,phone:c,university:i,department:l,number:s});case 3:return o=e.sent,e.abrupt("return",o.data);case 7:return e.prev=7,e.t0=e.catch(0),e.abrupt("return",!1);case 10:case"end":return e.stop()}}),e,null,[[0,7]])})))).apply(this,arguments)}function vt(){return(vt=Object(Ie.a)(Pe.a.mark((function e(t){var a;return Pe.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Me.a.post("/api/test",{email:t});case 3:return a=e.sent,e.abrupt("return",a.data);case 7:return e.prev=7,e.t0=e.catch(0),console.log(e.t0.response.status),console.log(e.t0.response.data),e.abrupt("return",!1);case 12:case"end":return e.stop()}}),e,null,[[0,7]])})))).apply(this,arguments)}function yt(){var e=Object(i.h)(),t=Object(O.useState)(!1),a=Object(p.a)(t,2),n=a[0],r=a[1];return Object(O.useEffect)((function(){(function(e){return vt.apply(this,arguments)})("name").then((function(t){t?(e("/app/classes"),r(!1)):(e("/login"),r(!1))}))}),[]),Object(E.jsxs)(E.Fragment,{children:[" ",n?Object(E.jsxs)("div",{children:[" ",Object(E.jsx)(oe.a,{children:Object(E.jsx)("title",{children:"Dashboard | 1984"})}),Object(E.jsx)(C.a,{sx:{backgroundColor:"background.default",minHeight:"100%",py:3},children:Object(E.jsx)(je.a,{maxWidth:!1})})," "]}):Object(E.jsx)("div",{children:" "})]})}var wt=a(32),St=a(609),Ct=a(610),kt=a(565),Tt=Object(s.a)((function(e){return{paper:{marginTop:e.spacing(15),display:"flex",flexDirection:"column",alignItems:"center"},footer:{}}})),Wt={backgroundColor:"#ffffff",borderTop:"1px solid #ffffff",textAlign:"column",padding:"20px",position:"fixed",left:"0",bottom:"0",height:"80px",width:"100%"},Pt={display:"block",padding:"20px",height:"60px",width:"100%"};function It(){return Object(E.jsxs)(F.a,{variant:"body2",color:"textSecondary",children:["Copyright \xa9 ",Object(E.jsx)(St.a,{color:"inherit",href:"",children:"BabyForce"})," ",(new Date).getFullYear(),"."]})}var Nt=function(){var e=Object(i.h)(),t=Tt(),a=Object(O.useState)(!1),n=Object(p.a)(a,2),r=n[0],l=n[1];return window.localStorage.clear(),Object(E.jsxs)(E.Fragment,{children:[Object(E.jsx)(oe.a,{children:Object(E.jsx)("title",{children:"Login | 1984"})}),Object(E.jsx)("div",{className:t.paper,children:Object(E.jsx)(C.a,{children:Object(E.jsx)(je.a,{maxWidth:"sm",children:Object(E.jsx)(it.a,{initialValues:{email:"",password:""},validationSchema:wt.b().shape({email:wt.c().email("Must be a valid email").max(255).required("Email is required"),password:wt.c().max(255).required("Password is required")}),onSubmit:function(t){(function(e,t){return gt.apply(this,arguments)})(t.email,t.password).then((function(t){t.success?"student"==t.type?(e("/login",{replace:!0}),l(!0)):(window.localStorage.setItem("UserInfo",JSON.stringify(t)),t.nowPlaying&&function(e){return Fe.apply(this,arguments)}(t.nowPlaying).then((function(e){if(e){var t=new Date(parseInt(e.startTime)),a=t.setHours(t.getHours()),n=new Date(a);window.localStorage.setItem("lectureWeekCode",e._id),window.localStorage.setItem("way",e.way),window.localStorage.setItem("startTime",n);var r=n.setMinutes(n.getMinutes()+e.checkTime),c=n.setMinutes(n.getMinutes()+e.lateTime),i=new Date(a),l=i.setMinutes(i.getMinutes()+e.endTime);window.localStorage.setItem("checkTime",r),window.localStorage.setItem("lateTime",c),window.localStorage.setItem("endTime",l),window.localStorage.setItem("lectureName",e.lectureName),window.localStorage.setItem("week",e.week)}})),e("/app/dashboard",{replace:!0})):l(!0)}))},children:function(e){var t=e.errors,a=e.handleBlur,n=e.handleChange,i=e.handleSubmit,l=e.touched,s=e.values;return Object(E.jsxs)("form",{onSubmit:i,children:[Object(E.jsxs)(C.a,{sx:{mb:0},children:[Object(E.jsx)(F.a,{color:"textPrimary",fontSize:"4rem",variant:"h2",children:"1984"}),Object(E.jsx)(F.a,{color:"textSecondary",gutterBottom:!0,variant:"body2",fontSize:"1rem",children:"Students Manage Platform for Professor"})]}),Object(E.jsx)(Se.a,{error:Boolean(l.email&&t.email),fullWidth:!0,helperText:l.email&&t.email,label:"Email Address",margin:"normal",name:"email",onBlur:a,onChange:n,type:"email",value:s.email}),Object(E.jsx)(Se.a,{error:Boolean(l.password&&t.password),fullWidth:!0,helperText:l.password&&t.password,label:"Password",margin:"normal",name:"password",onBlur:a,onChange:n,type:"password",value:s.password,variant:"outlined"}),Object(E.jsx)(Ct.a,{in:r,children:Object(E.jsx)(kt.a,{variant:"outlined",severity:"error",children:"Incorrect Email and/or Password."})}),Object(E.jsx)(C.a,{sx:{py:1},children:Object(E.jsx)(Y.a,{color:"primary",fullWidth:!0,size:"large",type:"submit",variant:"contained",children:"Sign in now"})}),Object(E.jsxs)(F.a,{color:"textSecondary",variant:"body1",children:["Don't have an account?",Object(E.jsx)(St.a,{component:c.b,to:"/register",variant:"h6",children:"Sign up"})]})]})}})})})}),Object(E.jsxs)("div",{children:[Object(E.jsx)("div",{style:Pt}),Object(E.jsx)("div",{style:Wt,children:Object(E.jsx)("footer",{className:t.footer,children:Object(E.jsx)(je.a,{maxWidth:"sm",children:Object(E.jsxs)(F.a,{variant:"body1",children:["Developed By BabyForce as a JoongBu Univ Senier Project",Object(E.jsx)(It,{})]})})})})]})]})},Mt=function(){return Object(E.jsxs)(E.Fragment,{children:[Object(E.jsx)(oe.a,{children:Object(E.jsx)("title",{children:"404 | Material Kit"})}),Object(E.jsx)(C.a,{sx:{backgroundColor:"background.default",display:"flex",flexDirection:"column",height:"100%",justifyContent:"center"},children:Object(E.jsxs)(je.a,{maxWidth:"md",children:[Object(E.jsx)(F.a,{align:"center",color:"textPrimary",variant:"h1",children:"404: The page you are looking for isn\u2019t here"}),Object(E.jsx)(F.a,{align:"center",color:"textPrimary",variant:"subtitle2",children:"You either tried some shady route or you came here by mistake. Whichever it is, try using the navigation"}),Object(E.jsx)(C.a,{sx:{textAlign:"center"},children:Object(E.jsx)("img",{alt:"Under development",src:"/static/images/undraw_page_not_found_su7k.svg",style:{marginTop:50,display:"inline-block",maxWidth:"100%",width:560}})})]})})]})},qt=a(611),Bt=a(369),Et=a.n(Bt),Dt=Object(s.a)((function(e){return{formControl:{marginTop:15,marginBottom:7},selectEmpty:{marginTop:e.spacing(0)},control2:{marginTop:15,marginBottom:0},control3:{marginTop:5,marginBottom:0},root:{marginTop:23,flexGrow:1,flexDirection:"column",display:"flex",justifyContent:"center"}}}));function zt(){var e=Object(i.h)(),t=Dt(),a=Object(O.useState)(!1),n=Object(p.a)(a,2),r=n[0],c=n[1],l=Object(O.useState)({day:"",time:"",hour:""}),s=Object(p.a)(l,2),o=s[0],j=s[1],d=o.day,u=o.time,b=o.hour,h=function(e){var t=e.target,a=t.name,n=t.value;j(Object(f.a)(Object(f.a)({},o),{},Object(m.a)({},a,n)))},x=Object(O.useState)([]),g=Object(p.a)(x,2),v=g[0],y=g[1],w=function(e){y(v.filter((function(t){return t.id!==e})))},S=JSON.parse(window.localStorage.getItem("UserInfo")),k=Object(O.useRef)(0),T=function(){var e={id:k.current,day:d,time:u,hour:b};y(v.concat(e)),k.current+=1},W=function(){c(!1)};return Object(E.jsxs)(E.Fragment,{children:[Object(E.jsx)(Y.a,{variant:"contained",color:"primary",onClick:function(){c(!0)},children:"Create Lecture"}),Object(E.jsxs)(lt.a,{open:r,onClose:W,"aria-labelledby":"alert-dialog-title","aria-describedby":"alert-dialog-description",children:[Object(E.jsxs)(st.a,{children:[Object(E.jsx)(C.a,{className:t.control3,children:Object(E.jsx)(F.a,{fontSize:"2rem",variant:"h3",children:"Create Lecture"})}),Object(E.jsxs)(C.a,{className:t.control2,children:["When you create lecture Enter right information.",Object(E.jsx)("br",{}),"if you are not, may cause problem later"]})]}),Object(E.jsx)(ot.a,{children:Object(E.jsx)(it.a,{initialValues:{lecture:"",lectureClass:"",type:""},validationSchema:wt.b().shape({lecture:wt.c().max(255).required("Lecture name is required"),lectureClass:wt.c().max(255).required("class Name is required")}),onSubmit:function(t){(function(e,t,a,n,r,c,i){return qe.apply(this,arguments)})(t.type,S.univerity,t.lecture,t.lectureClass,S.name,S.email,v).then((function(t){t.success&&(W(),e("/app/classes"))})),e("/app/dashboard",{replace:!0})},children:function(e){var a=e.errors,n=e.handleBlur,r=e.handleChange,c=e.handleSubmit,i=e.touched,l=e.values;return Object(E.jsxs)("form",{onSubmit:c,children:[Object(E.jsx)(Se.a,{error:Boolean(i.lecture&&a.lecture),fullWidth:!0,helperText:i.lecture&&a.lecture,label:"Lecture Name",margin:"dense",name:"lecture",onBlur:n,onChange:r,value:l.lecture}),Object(E.jsx)(Se.a,{error:Boolean(i.lectureClass&&a.lectureClass),fullWidth:!0,helperText:i.lectureClass&&a.lectureClass,label:"Class Name",margin:"normal",name:"lectureClass",onBlur:n,onChange:r,value:l.lectureClass}),Object(E.jsxs)(C.a,{className:t.formControl,children:[Object(E.jsxs)(jt.a,{variant:"outlined",fullWidth:!0,children:[Object(E.jsx)(dt.a,{id:"demo-simple-select-outlined-label",children:"Type"}),Object(E.jsxs)(ut.a,{name:"type",value:l.type,onChange:r,displayEmpty:!0,className:t.selectEmpty,inputProps:{"aria-label":"Without label"},children:[Object(E.jsx)(bt.a,{value:"\uc804\uacf5",children:"\uc804\uacf5"}),Object(E.jsx)(bt.a,{value:"\uad50\uc591",children:"\uad50\uc591"}),Object(E.jsx)(bt.a,{value:"\uae30\ud0c0",children:"\uae30\ud0c0"})]})]}),Object(E.jsx)("div",{className:t.root,children:Object(E.jsxs)(de.a,{container:!0,spacing:3,children:[Object(E.jsx)(de.a,{item:!0,xs:4,children:Object(E.jsxs)(jt.a,{variant:"outlined",fullWidth:!0,children:[Object(E.jsx)(dt.a,{id:"demo-simple-select-outlined-label",children:"Day"}),Object(E.jsxs)(ut.a,{name:"day",onChange:h,displayEmpty:!0,className:t.selectEmpty,inputProps:{"aria-label":"Without label"},children:[Object(E.jsx)(bt.a,{value:1,children:"\uc6d4\uc694\uc77c"}),Object(E.jsx)(bt.a,{value:2,children:"\ud654\uc694\uc77c"}),Object(E.jsx)(bt.a,{value:3,children:"\uc218\uc694\uc77c"}),Object(E.jsx)(bt.a,{value:4,children:"\ubaa9\uc694\uc77c"}),Object(E.jsx)(bt.a,{value:5,children:"\uae08\uc694\uc77c"}),Object(E.jsx)(bt.a,{value:6,children:"\ud1a0\uc694\uc77c"}),Object(E.jsx)(bt.a,{value:0,children:"\uc77c\uc694\uc77c"})]})]})}),Object(E.jsx)(de.a,{item:!0,xs:4,children:Object(E.jsxs)(jt.a,{variant:"outlined",fullWidth:!0,children:[Object(E.jsx)(dt.a,{id:"demo-simple-select-outlined-label",children:"Time"}),Object(E.jsxs)(ut.a,{name:"time",onChange:h,displayEmpty:!0,className:t.selectEmpty,inputProps:{"aria-label":"Without label"},children:[Object(E.jsx)(bt.a,{value:9,children:"AM 9:00"}),Object(E.jsx)(bt.a,{value:10,children:"AM 10:00"}),Object(E.jsx)(bt.a,{value:11,children:"AM 11:00"}),Object(E.jsx)(bt.a,{value:12,children:"PM 00:00"}),Object(E.jsx)(bt.a,{value:13,children:"PM 1:00"}),Object(E.jsx)(bt.a,{value:14,children:"PM 2:00"}),Object(E.jsx)(bt.a,{value:15,children:"PM 3:00"}),Object(E.jsx)(bt.a,{value:16,children:"PM 4:00"}),Object(E.jsx)(bt.a,{value:17,children:"PM 5:00"}),Object(E.jsx)(bt.a,{value:18,children:"PM 6:00"}),Object(E.jsx)(bt.a,{value:19,children:"PM 7:00"}),Object(E.jsx)(bt.a,{value:20,children:"PM 8:00"})]})]})}),Object(E.jsx)(de.a,{item:!0,xs:4,children:Object(E.jsxs)(jt.a,{variant:"outlined",fullWidth:!0,children:[Object(E.jsx)(dt.a,{id:"demo-simple-select-outlined-label",children:"Hour"}),Object(E.jsxs)(ut.a,{name:"hour",onChange:h,displayEmpty:!0,className:t.selectEmpty,inputProps:{"aria-label":"Without label"},children:[Object(E.jsx)(bt.a,{value:60,children:"1 Hours"}),Object(E.jsx)(bt.a,{value:120,children:"2 Hours"}),Object(E.jsx)(bt.a,{value:180,children:"3 Hours"}),Object(E.jsx)(bt.a,{value:240,children:"4 Hours"}),Object(E.jsx)(bt.a,{value:300,children:"5 Hours"}),Object(E.jsx)(bt.a,{value:360,children:"6 Hours"})]})]})}),Object(E.jsx)(de.a,{item:!0,xs:12,children:Object(E.jsx)(Y.a,{onClick:T,variant:"outlined",color:"primary",children:"Add TimeTable"})})]})}),Object(E.jsx)("div",{children:v.map((function(e){return Object(E.jsx)(At,{timetable:e,onRemove:w},e.id)}))})]}),Object(E.jsx)(ht.a,{children:Object(E.jsxs)(C.a,{sx:{py:1},children:[Object(E.jsx)(Y.a,{onClick:W,variant:"outlined",color:"primary",children:"cancle"}),"   ",Object(E.jsx)(Y.a,{variant:"contained",color:"primary",type:"submit",children:"Add Lecture"})]})})]})}})})]})]})}function At(e){var t=e.timetable,a=e.onRemove;return Object(E.jsx)("div",{children:Object(E.jsxs)(F.a,{fontSize:"1.4rem",variant:"h1",children:["| Day : ",t.day," | Time : ",t.time," | Hour :"," ",t.hour," |",Object(E.jsx)(T.a,{onClick:function(){return a(t.id)},children:Object(E.jsx)(Et.a,{})})]})})}function Ft(){return Object(E.jsxs)(C.a,{children:[Object(E.jsx)(C.a,{sx:{display:"flex",justifyContent:"flex-end"},children:Object(E.jsx)(zt,{})}),Object(E.jsx)(C.a,{sx:{mt:3},children:Object(E.jsx)(he.a,{children:Object(E.jsx)(xe.a,{children:Object(E.jsx)(C.a,{sx:{maxWidth:500},children:Object(E.jsx)(Se.a,{fullWidth:!0,InputProps:{startAdornment:Object(E.jsx)(Ze.a,{position:"start",children:Object(E.jsx)(et.a,{fontSize:"small",color:"action",children:Object(E.jsx)(tt.a,{})})})},placeholder:"Search class",variant:"outlined"})})})})})]})}var Ut=Object(s.a)((function(e){return{root:{flexGrow:15,flexDirection:"column",display:"flex",justifyContent:"center"},formControl:{margin:e.spacing(0)},selectEmpty:{marginTop:e.spacing(1)},control:{marginTop:6,marginBottom:2,display:"flex",flexDirection:"column"},control2:{marginTop:15,marginBottom:0},control3:{marginTop:5,marginBottom:0}}}));function Ht(e){var t=Ut(),a=Object(O.useState)(!1),n=Object(p.a)(a,2),r=n[0],c=n[1],l=Object(i.h)(),s=JSON.parse(window.localStorage.getItem("UserInfo")),o="",j=0,d=0,u=new Date,b=(new Date).getDay(),h=new Date(u.getFullYear(),2,2),x=new Date(u.getFullYear(),7,30),m=new Array("\uc77c\uc694\uc77c","\uc6d4\uc694\uc77c","\ud654\uc694\uc77c","\uc218\uc694\uc77c","\ubaa9\uc694\uc77c","\uae08\uc694\uc77c","\ud1a0\uc694\uc77c");Object(O.useEffect)((function(){j=u<x?Math.floor((u-h)/864e5/7):Math.floor((u-x)/864e5/7),e.timetable&&e.timetable.map((function(e){e.day==b?(o=m[e.day],d=e.hour):console.log("\uac15\uc758\uc2dc\uac04\uc774 \uc544\ub2d9\ub2c8\ub2e4.")}))}),[r]);var g=function(){c(!1)};return Object(E.jsxs)(E.Fragment,{children:[Object(E.jsx)(Y.a,{color:"primary",variant:"contained",onClick:function(){c(!0)},children:"Start"}),Object(E.jsxs)(lt.a,{open:r,onClose:g,"aria-labelledby":"alert-dialog-title","aria-describedby":"alert-dialog-description",maxWidth:"xs",children:[Object(E.jsxs)(st.a,{children:[Object(E.jsx)(C.a,{className:t.control3,children:Object(E.jsx)(F.a,{fontSize:"2rem",variant:"h3",children:"Starting Lecture"})}),Object(E.jsxs)(C.a,{className:t.control2,children:["When you start lecture set the Right date and day.",Object(E.jsx)("br",{}),"if you are not, may cause problem later"]})]}),Object(E.jsx)(ot.a,{children:Object(E.jsx)(it.a,{initialValues:{checkTime:5,lateTime:10,way:!0},onSubmit:function(t){(function(e,t,a,n,r,c,i,l,s,o){return Ae.apply(this,arguments)})(e.name,e.code,j,o,t.checkTime,t.lateTime,d,s.name,t.way,s.email).then((function(a){if(a.success){var n=new Date,r=new Date,c=r.setMinutes(r.getMinutes()+0);window.localStorage.setItem("lectureWeekCode",a.code),window.localStorage.setItem("way",t.way),window.localStorage.setItem("startTime",c);var i=n.setMinutes(n.getMinutes()+t.checkTime),s=n.setMinutes(n.getMinutes()+t.lateTime),o=new Date,u=o.setMinutes(o.getMinutes()+d);window.localStorage.setItem("checkTime",i),window.localStorage.setItem("lateTime",s),window.localStorage.setItem("endTime",u),window.localStorage.setItem("lectureName",e.name),window.localStorage.setItem("week",j),g(),l("/app/checkin")}}))},children:function(e){var a=e.handleChange,n=e.handleSubmit,r=e.values;return Object(E.jsx)("form",{onSubmit:n,children:Object(E.jsxs)("div",{className:t.root,children:[Object(E.jsxs)(de.a,{container:!0,justify:"center",spacing:3,children:[Object(E.jsx)(de.a,{item:!0,xs:12,children:Object(E.jsxs)(jt.a,{variant:"outlined",className:t.formControl,fullWidth:!0,children:[Object(E.jsx)(dt.a,{id:"way",children:"Type"}),Object(E.jsxs)(ut.a,{name:"way",value:r.way,onChange:a,displayEmpty:!0,className:t.selectEmpty,inputProps:{"aria-label":"Without label"},children:[Object(E.jsx)(bt.a,{value:!0,children:"Active QR Check"}),Object(E.jsx)(bt.a,{value:!1,children:"Passive QR Check"})]})]})}),Object(E.jsx)(de.a,{item:!0,xs:6,children:Object(E.jsxs)(jt.a,{variant:"outlined",className:t.formControl,fullWidth:!0,children:[Object(E.jsx)(dt.a,{id:"checkTime",children:"Time"}),Object(E.jsxs)(ut.a,{name:"checkTime",value:r.checkTime,onChange:a,displayEmpty:!0,className:t.selectEmpty,inputProps:{"aria-label":"Without label"},children:[Object(E.jsx)(bt.a,{value:5,children:"5 minutes"}),Object(E.jsx)(bt.a,{value:10,children:"10 minutes"}),Object(E.jsx)(bt.a,{value:15,children:"15 minutes"})]})]})}),Object(E.jsx)(de.a,{item:!0,xs:6,children:Object(E.jsxs)(jt.a,{variant:"outlined",className:t.formControl,fullWidth:!0,children:[Object(E.jsx)(dt.a,{id:"lateTime",children:"Late"}),Object(E.jsxs)(ut.a,{name:"lateTime",value:r.lateTime,onChange:a,displayEmpty:!0,className:t.selectEmpty,inputProps:{"aria-label":"Without label"},children:[Object(E.jsx)(bt.a,{value:10,children:"10 minutes"}),Object(E.jsx)(bt.a,{value:15,children:"15 minutes"}),Object(E.jsx)(bt.a,{value:20,children:"20 minutes"})]})]})})]}),Object(E.jsx)(ht.a,{children:Object(E.jsxs)(C.a,{sx:{py:1},children:[Object(E.jsx)(Y.a,{onClick:g,variant:"outlined",color:"primary",children:"cancle"}),"   ",Object(E.jsx)(Y.a,{variant:"contained",color:"primary",type:"submit",children:"Start Lecture"})]})})]})})}})})]})]})}function Lt(e){var t=e.product,a=Object(v.a)(e,["product"]);return Object(E.jsxs)(he.a,Object(f.a)(Object(f.a)({sx:{display:"flex",flexDirection:"column",height:"100%"}},a),{},{children:[Object(E.jsxs)(xe.a,{children:[Object(E.jsx)(C.a,{sx:{display:"flex",justifyContent:"center",pb:3},children:Object(E.jsx)(A.a,{alt:"Product",src:t.name,variant:"square"})}),Object(E.jsx)(F.a,{align:"center",color:"textPrimary",gutterBottom:!0,variant:"h2",children:t.name}),Object(E.jsx)(F.a,{align:"center",color:"textPrimary",variant:"body1",children:t.code})]}),Object(E.jsx)(C.a,{sx:{flexGrow:1}}),Object(E.jsx)(U.a,{}),Object(E.jsx)(C.a,{sx:{p:2},children:Object(E.jsxs)(de.a,{container:!0,spacing:2,sx:{justifyContent:"space-between"},children:[Object(E.jsx)(de.a,{item:!0,sx:{alignItems:"center",display:"flex"},children:Object(E.jsx)(F.a,{color:"textSecondary",display:"inline",sx:{pl:1},variant:"body2"})}),Object(E.jsx)(de.a,{item:!0,sx:{alignItems:"center",display:"flex"},children:Object(E.jsx)(Ht,{name:t.name,code:t.code,timetable:t.timetable})})]})})]}))}function _t(){var e=Object(O.useState)([{code:"None",name:"None"}]),t=Object(p.a)(e,2),a=t[0],n=t[1],r=JSON.parse(window.localStorage.getItem("UserInfo"));return Object(O.useEffect)((function(){(function(e){return Be.apply(this,arguments)})(r.email).then((function(e){e&&n(e)}))}),[]),Object(E.jsxs)(E.Fragment,{children:[Object(E.jsx)(oe.a,{children:Object(E.jsx)("title",{children:"classes | 1984"})}),Object(E.jsx)(C.a,{sx:{backgroundColor:"background.default",minHeight:"100%",py:3},children:Object(E.jsxs)(je.a,{maxWidth:!1,children:[Object(E.jsx)(Ft,{}),Object(E.jsx)(C.a,{sx:{pt:3},children:Object(E.jsx)(de.a,{container:!0,spacing:3,children:a.map((function(e,t){return Object(E.jsx)(de.a,{item:!0,lg:4,md:6,xs:12,children:Object(E.jsx)(Lt,{product:e})},t)}))})}),Object(E.jsx)(C.a,{sx:{display:"flex",justifyContent:"center",pt:3},children:Object(E.jsx)(qt.a,{color:"primary",count:3,size:"small"})})]})})]})}var Rt=a(370),Jt=a.n(Rt),Gt=a(612),Vt=a(613),Yt=Object(s.a)((function(e){return{root:{width:"100%",maxWidth:"25vw",backgroundColor:e.palette.background.paper,position:"relative",overflow:"auto",maxHeight:"40vw"},listSection:{backgroundColor:"inherit"},ul:{backgroundColor:"inherit",padding:0},listItemText:{fontSize:"2.7rem"}}}));function Kt(e){var t=Yt(),a=Object(O.useState)(!1),n=Object(p.a)(a,2),r=n[0],c=n[1],i=Object(O.useState)([]),l=Object(p.a)(i,2),s=l[0],o=l[1];Object(O.useEffect)((function(){r&&(function(e){return Ue.apply(this,arguments)}(e.code).then((function(e){o(e)})),c(!1))}),[r]);return Object(E.jsxs)(E.Fragment,{children:[Object(E.jsx)(Y.a,{variant:"contained",color:"primary",onClick:function(){c(!0)},children:"Refresh"}),Object(E.jsx)(H.a,{component:"nav",className:t.root,children:s.map((function(e,a){return Object(E.jsx)(E.Fragment,{children:!e.attend&&Object(E.jsxs)(V.b,{button:!0,children:[Object(E.jsx)(Gt.a,{children:Object(E.jsx)(A.a,{src:"/static/images/avatars/avatar_12.png"})}),Object(E.jsx)(Vt.a,{classes:{primary:t.listItemText},primary:e.name})]},a)})}))})]})}var Qt=a(371),$t=a.n(Qt),Xt=a(576),Zt=a(561),ea=Object(s.a)((function(e){return{root:{flexGrow:1},qe:{height:"40vw",alignItems:"center",justifyContent:"center",display:"flex"},qe2:{height:"40vw",flexDirection:"column",fontSize:"2.7em",display:"flex",padding:e.spacing(1)},qe3:{height:"40vh",alignItems:"center",justifyContent:"center",display:"flex"},qe4:{height:"40vh",flexDirection:"column",fontSize:"2.7em",display:"flex",padding:e.spacing(1)},qe5:{height:60,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"},listRoot:{width:"100%",height:400,maxWidth:300,backgroundColor:e.palette.background.paper},control:{marginTop:2,marginBottom:2,display:"flex",flexDirection:"column"}}}));function ta(e){var t=ea(),a=Object(O.useState)(!0),n=Object(p.a)(a,2),r=n[0],c=n[1],i=Object(O.useState)("null"),l=Object(p.a)(i,2),s=l[0],o=l[1],j=Object(O.useState)(!1),d=Object(p.a)(j,2),u=d[0],b=d[1],h=Object(O.useState)(!1),x=Object(p.a)(h,2),m=x[0],g=x[1],f=Object(O.useState)(!1),v=Object(p.a)(f,2),y=v[0],w=v[1],S=Object(O.useState)(!1),k=Object(p.a)(S,2),T=k[0],W=k[1],P=Object(O.useState)("35vw"),I=Object(p.a)(P,2),N=I[0],M=I[1],q=Object(O.useState)(!0),B=Object(p.a)(q,2),D=B[0],z=B[1],A=Object(O.useState)(5),U=Object(p.a)(A,2),H=U[0],L=U[1],_=Object(O.useState)(0),R=Object(p.a)(_,2),J=R[0],G=R[1],V=window.localStorage.getItem("lectureWeekCode"),Y=window.localStorage.getItem("lectureName"),K=window.localStorage.getItem("week"),Q=window.localStorage.getItem("checkTime");Object(O.useEffect)((function(){u&&r&&($(),c(!1))}),[u]),Object(O.useEffect)((function(){V?(z(window.localStorage.getItem("way")),b(!0),w(!0)):b(!1)}),[u]),Object(O.useEffect)((function(){var e=setInterval((function(){var e=new Date,t=e.setMinutes(e.getMinutes());L(Math.floor((Q-t)/60/1e3)),G(Math.floor((Q-t)/1e3%60))}),1e3);window.localStorage.getItem("attendUser")&&o(window.localStorage.getItem("attendUser"));var t=new Date,a=t.setMinutes(t.getMinutes());return a>parseInt(window.localStorage.getItem("endTime"))&&b(!1),a>parseInt(window.localStorage.getItem("checkTime"))&&(g(!0),w(!1),Q=window.localStorage.getItem("lateTime")),a>parseInt(window.localStorage.getItem("lateTime"))&&(g(!1),w(!1)),document.documentElement.clientWidth<660&&(W(!0),M("35vh")),document.documentElement.clientWidth>660&&(W(!1),M("35vw")),function(){return clearInterval(e)}}),[H,J]);function $(){return X.apply(this,arguments)}function X(){return(X=Object(Ie.a)(Pe.a.mark((function e(){var t;return Pe.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=window.localStorage.getItem("lectureWeekCode"),e.next=3,Me.a.get("/api/longpolling/"+t).then((function(e){window.localStorage.setItem("attendUser",e.data.name),$()})).catch((function(e){console.log("failed"),setTimeout($,5e3)}));case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}return Object(E.jsxs)(E.Fragment,{children:[Object(E.jsx)(oe.a,{children:Object(E.jsx)("title",{children:"Check In | 1984"})}),Object(E.jsx)(C.a,{sx:{backgroundColor:"background.default",minHeight:"100%",py:3},children:Object(E.jsx)(je.a,{maxWidth:!1,children:Object(E.jsxs)(de.a,{container:!0,spacing:3,children:[Object(E.jsx)(de.a,{item:!0,lg:12,md:12,xl:12,xs:12,children:Object(E.jsx)(Xt.a,{elevation:3,className:t.qe5,children:u?Object(E.jsxs)(F.a,{fontSize:"2rem",variant:"h3",children:[Y," ",K,"\uc8fc\ucc28 \uac15\uc758\uc785\ub2c8\ub2e4."]}):Object(E.jsx)(F.a,{fontSize:"2rem",variant:"h3",children:"\uac15\uc758\uac00 \uc9c4\ud589\uc911\uc774\uc9c0 \uc54a\uc2b5\ub2c8\ub2e4"})})}),Object(E.jsxs)(de.a,{item:!0,lg:8,md:12,xl:6,xs:12,children:[Object(E.jsx)(Xt.a,{elevation:3,className:T?t.qe3:t.qe,children:u?Object(E.jsxs)(C.a,{children:["false"==D&&Object(E.jsx)(Jt.a,{value:V,size:.35*document.documentElement.clientWidth}),"true"==D&&Object(E.jsx)($t.a,{delay:300,onError:function(e){console.error(e)},onScan:function(e){e&&function(e,t){return Le.apply(this,arguments)}(V,e).then((function(e){console.log(e.success)}))},style:{height:N,width:N}}),Object(E.jsx)("br",{}),y&&!m&&Object(E.jsxs)(F.a,{align:"center",variant:"h3",fontSize:"2.4rem",children:["\ucd9c\uc11d \uc778\uc815 "," ",H,":",J<10?"0".concat(J):J," \ub0a8\uc558\uc2b5\ub2c8\ub2e4."]}),!y&&m&&Object(E.jsxs)(F.a,{align:"center",variant:"h3",fontSize:"2.4rem",children:["\uc9c0\uac01 \uc778\uc815 ",H,":",J<10?"0".concat(J):J," \ub0a8\uc558\uc2b5\ub2c8\ub2e4."]}),!y&&!m&&Object(E.jsx)(F.a,{align:"center",fontSize:"2rem",variant:"h3",children:"\uacb0\uc11d\uc785\ub2c8\ub2e4"})]}):Object(E.jsx)(F.a,{color:"textPrimary",variant:"body1",children:"\uac15\uc758\uac00 \uc9c4\ud589\uc911\uc774\uc9c0 \uc54a\uc2b5\ub2c8\ub2e4"})}),Object(E.jsx)("br",{}),Object(E.jsx)(Ct.a,{in:!("null"==s),children:Object(E.jsxs)(kt.a,{color:"info",severity:"success",variant:"outlined",children:[Object(E.jsx)(Zt.a,{children:Object(E.jsx)("strong",{children:"Checked In!"})}),Object(E.jsxs)("strong",{children:[" ",s," "]})," \ub2d8 \ucd9c\uc11d\ub418\uc5c8\uc2b5\ub2c8\ub2e4."]})})]}),Object(E.jsx)(de.a,{item:!0,lg:2,md:6,xl:2,xs:6,children:Object(E.jsx)(Xt.a,{elevation:3,className:T?t.qe4:t.qe2,children:u?Object(E.jsx)(Kt,{code:V}):Object(E.jsx)("div",{})})}),Object(E.jsx)(de.a,{item:!0,lg:2,md:6,xl:2,xs:6,children:Object(E.jsx)(Xt.a,{elevation:3,className:T?t.qe4:t.qe2,children:u?Object(E.jsx)(E.Fragment,{}):Object(E.jsx)("div",{})})})]})})})]})}var aa=a(596),na=Object(s.a)((function(e){return{paper:{marginTop:e.spacing(15),display:"flex",flexDirection:"column",alignItems:"center"},formControl:{marginTop:15,marginBottom:7}}})),ra=function(){var e=Object(i.h)(),t=na(),a=Object(O.useState)(!1),n=Object(p.a)(a,2),r=n[0],l=n[1];return Object(E.jsxs)(E.Fragment,{children:[Object(E.jsx)(oe.a,{children:Object(E.jsx)("title",{children:"Register | 1984"})}),Object(E.jsx)("div",{className:t.paper,children:Object(E.jsx)(C.a,{children:Object(E.jsx)(je.a,{maxWidth:"sm",children:Object(E.jsx)(it.a,{initialValues:{email:"",name:"",password:"",phone:"",type:"",university:"",department:"",number:"",policy:!1},validationSchema:wt.b().shape({name:wt.c().max(255).required("Name is required"),number:wt.c().max(255).required("Number is required"),phone:wt.c().matches(/^\d{2,3}-\d{3,4}-\d{4}$/,"Phone number is not valid"),email:wt.c().email("Must be a valid email").max(255).required("Email is required"),department:wt.c().max(255).required("Department is required"),university:wt.c().max(255).required("University is required"),password:wt.c().max(255).required("password is required"),policy:wt.a().oneOf([!0],"This field must be checked")}),onSubmit:function(t){(function(e,t,a,n,r,c,i,l){return ft.apply(this,arguments)})(t.type,t.name,t.email,t.password,t.phone,t.university,t.department,t.number).then((function(t){t?e("/login"):l(!0)}))},children:function(e){var a=e.errors,n=e.handleBlur,i=e.handleChange,l=e.handleSubmit,s=e.touched,o=e.values;return Object(E.jsxs)("form",{onSubmit:l,children:[Object(E.jsxs)(C.a,{sx:{mb:3},children:[Object(E.jsx)(F.a,{color:"textPrimary",variant:"h2",children:"Create new account"}),Object(E.jsx)(F.a,{color:"textSecondary",gutterBottom:!0,variant:"body2",children:"Use your email to create new account"})]}),Object(E.jsx)(Se.a,{error:Boolean(s.name&&a.name),fullWidth:!0,helperText:s.name&&a.name,label:"Name",margin:"normal",name:"name",onBlur:n,onChange:i,value:o.name,variant:"outlined"}),Object(E.jsx)(Se.a,{error:Boolean(s.email&&a.email),fullWidth:!0,helperText:s.email&&a.email,label:"Email Address",margin:"normal",name:"email",onBlur:n,onChange:i,type:"email",value:o.email,variant:"outlined"}),Object(E.jsx)(Se.a,{error:Boolean(s.password&&a.password),fullWidth:!0,helperText:s.password&&a.password,label:"Password",margin:"normal",name:"password",onBlur:n,onChange:i,type:"password",value:o.password,variant:"outlined"}),Object(E.jsx)(Se.a,{error:Boolean(s.phone&&a.phone),fullWidth:!0,helperText:s.phone&&a.phone,label:"Phone",margin:"normal",name:"phone",onBlur:n,onChange:i,value:o.phone,variant:"outlined"}),Object(E.jsx)(C.a,{className:t.formControl,children:Object(E.jsxs)(jt.a,{variant:"outlined",fullWidth:!0,children:[Object(E.jsx)(dt.a,{id:"demo-simple-select-outlined-label",children:"Type"}),Object(E.jsxs)(ut.a,{labelId:"type",id:"type",value:o.type,onChange:i,name:"type",label:"type",children:[Object(E.jsx)(bt.a,{value:"student",children:"student"}),Object(E.jsx)(bt.a,{value:"professor",children:"professor"})]})]})}),Object(E.jsx)(Se.a,{error:Boolean(s.university&&a.university),fullWidth:!0,helperText:s.university&&a.university,label:"University",margin:"normal",name:"university",onBlur:n,onChange:i,value:o.university,variant:"outlined"}),Object(E.jsx)(Se.a,{error:Boolean(s.department&&a.department),fullWidth:!0,helperText:s.department&&a.department,label:"Department",margin:"normal",name:"department",onBlur:n,onChange:i,value:o.department,variant:"outlined"}),Object(E.jsx)(Se.a,{error:Boolean(s.number&&a.number),fullWidth:!0,helperText:s.number&&a.number,label:"Unique Number",margin:"normal",name:"number",onBlur:n,onChange:i,value:o.number,variant:"outlined"}),Object(E.jsx)(Ct.a,{in:r,children:Object(E.jsx)(kt.a,{severity:"error",children:"Incorrect Email and/or Password."})}),Object(E.jsxs)(C.a,{sx:{alignItems:"center",display:"flex",ml:-1},children:[Object(E.jsx)(Ke.a,{checked:o.policy,name:"policy",onChange:i}),Object(E.jsxs)(F.a,{color:"textSecondary",variant:"body1",children:["I have read the"," ",Object(E.jsx)(St.a,{color:"primary",component:c.b,to:"#",underline:"always",variant:"h6",children:"Terms and Conditions"})]})]}),Boolean(s.policy&&a.policy)&&Object(E.jsx)(aa.a,{error:!0,children:a.policy}),Object(E.jsx)(C.a,{sx:{py:2},children:Object(E.jsx)(Y.a,{color:"primary",fullWidth:!0,size:"large",type:"submit",variant:"contained",children:"Sign up now"})}),Object(E.jsxs)(F.a,{color:"textSecondary",variant:"body1",children:["Have an account?"," ",Object(E.jsx)(St.a,{component:c.b,to:"/login",variant:"h6",children:"Sign in"})]})]})}})})})})]})},ca=a(614),ia=function(e){return Object(E.jsx)("form",Object(f.a)(Object(f.a)({},e),{},{children:Object(E.jsxs)(he.a,{children:[Object(E.jsx)(we.a,{subheader:"Manage the notifications",title:"Notifications"}),Object(E.jsx)(U.a,{}),Object(E.jsx)(xe.a,{children:Object(E.jsxs)(de.a,{container:!0,spacing:6,wrap:"wrap",children:[Object(E.jsxs)(de.a,{item:!0,md:4,sm:6,sx:{display:"flex",flexDirection:"column"},xs:12,children:[Object(E.jsx)(F.a,{color:"textPrimary",gutterBottom:!0,variant:"h6",children:"Notifications"}),Object(E.jsx)(ca.a,{control:Object(E.jsx)(Ke.a,{color:"primary",defaultChecked:!0}),label:"Email"}),Object(E.jsx)(ca.a,{control:Object(E.jsx)(Ke.a,{color:"primary",defaultChecked:!0}),label:"Push Notifications"}),Object(E.jsx)(ca.a,{control:Object(E.jsx)(Ke.a,{}),label:"Text Messages"}),Object(E.jsx)(ca.a,{control:Object(E.jsx)(Ke.a,{color:"primary",defaultChecked:!0}),label:"Phone calls"})]}),Object(E.jsxs)(de.a,{item:!0,md:4,sm:6,sx:{display:"flex",flexDirection:"column"},xs:12,children:[Object(E.jsx)(F.a,{color:"textPrimary",gutterBottom:!0,variant:"h6",children:"Messages"}),Object(E.jsx)(ca.a,{control:Object(E.jsx)(Ke.a,{color:"primary",defaultChecked:!0}),label:"Email"}),Object(E.jsx)(ca.a,{control:Object(E.jsx)(Ke.a,{}),label:"Push Notifications"}),Object(E.jsx)(ca.a,{control:Object(E.jsx)(Ke.a,{color:"primary",defaultChecked:!0}),label:"Phone calls"})]})]})}),Object(E.jsx)(U.a,{}),Object(E.jsx)(C.a,{sx:{display:"flex",justifyContent:"flex-end",p:2},children:Object(E.jsx)(Y.a,{color:"primary",variant:"contained",children:"Save"})})]})}))},la=function(e){var t=Object(O.useState)({password:"",confirm:""}),a=Object(p.a)(t,2),n=a[0],r=a[1],c=function(e){r(Object(f.a)(Object(f.a)({},n),{},Object(m.a)({},e.target.name,e.target.value)))};return Object(E.jsx)("form",Object(f.a)(Object(f.a)({},e),{},{children:Object(E.jsxs)(he.a,{children:[Object(E.jsx)(we.a,{subheader:"Update password",title:"Password"}),Object(E.jsx)(U.a,{}),Object(E.jsxs)(xe.a,{children:[Object(E.jsx)(Se.a,{fullWidth:!0,label:"Password",margin:"normal",name:"password",onChange:c,type:"password",value:n.password,variant:"outlined"}),Object(E.jsx)(Se.a,{fullWidth:!0,label:"Confirm password",margin:"normal",name:"confirm",onChange:c,type:"password",value:n.confirm,variant:"outlined"})]}),Object(E.jsx)(U.a,{}),Object(E.jsx)(C.a,{sx:{display:"flex",justifyContent:"flex-end",p:2},children:Object(E.jsx)(Y.a,{color:"primary",variant:"contained",children:"Update"})})]})}))},sa=function(){return Object(E.jsxs)(E.Fragment,{children:[Object(E.jsx)(oe.a,{children:Object(E.jsx)("title",{children:"Settings | Material Kit"})}),Object(E.jsx)(C.a,{sx:{backgroundColor:"background.default",minHeight:"100%",py:3},children:Object(E.jsxs)(je.a,{maxWidth:"lg",children:[Object(E.jsx)(ia,{}),Object(E.jsx)(C.a,{sx:{pt:3},children:Object(E.jsx)(la,{})})]})})]})},oa=[{path:"app",element:Object(E.jsx)(ae,{}),children:[{path:"account",element:Object(E.jsx)(Te,{})},{path:"StudentsManager",element:Object(E.jsx)(nt,{})},{path:"StudentsManager2/:id",element:Object(E.jsx)(ct,{})},{path:"StudentsManager3/:id",element:Object(E.jsx)(Ot,{})},{path:"dashboard",element:Object(E.jsx)(yt,{})},{path:"classes",element:Object(E.jsx)(_t,{})},{path:"checkin",element:Object(E.jsx)(ta,{})},{path:"settings",element:Object(E.jsx)(sa,{})},{path:"*",element:Object(E.jsx)(i.a,{to:"/404"})}]},{path:"/",element:Object(E.jsx)(se,{}),children:[{path:"login",element:Object(E.jsx)(Nt,{})},{path:"register",element:Object(E.jsx)(ra,{})},{path:"404",element:Object(E.jsx)(Mt,{})},{path:"/",element:Object(E.jsx)(i.a,{to:"/app/dashboard"})},{path:"*",element:Object(E.jsx)(i.a,{to:"/404"})}]}],ja=function(){var e=Object(i.k)(oa);return Object(E.jsxs)(l.a,{theme:x,children:[Object(E.jsx)(d,{}),e]})};r.a.render(Object(E.jsx)(c.a,{children:Object(E.jsx)(ja,{})}),document.getElementById("root")),"serviceWorker"in navigator&&navigator.serviceWorker.ready.then((function(e){e.unregister()}))}},[[515,1,2]]]);
  //# sourceMappingURL=main.aa5e8e31.chunk.js.map