Linux ip-172-26-7-228 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64
Your IP : 18.218.123.194
(window.webpackJsonp=window.webpackJsonp||[]).push([[4],{1001:function(e,t,a){},1310:function(e,t,a){"use strict";a.r(t);a(545),a(991);!function(){if("function"===typeof window.CustomEvent)return!1;function e(e,t){t=t||{bubbles:!1,cancelable:!1,detail:void 0};var a=document.createEvent("CustomEvent");return a.initCustomEvent(e,t.bubbles,t.cancelable,t.detail),a}e.prototype=window.Event.prototype,window.CustomEvent=e}();var n=a(1),r=a.n(n),o=a(114),c=a.n(o),l=(a(998),a(1001),a(159)),u=a(59),i=a(195),s=a(72),m=a(1560),d=a(1534),f=a(1552),g=a(1559),E=r.a.lazy(function(){return Promise.all([a.e(0),a.e(1),a.e(2),a.e(3),a.e(5)]).then(a.bind(null,1558))}),b=r.a.lazy(function(){return Promise.all([a.e(0),a.e(1),a.e(2),a.e(6)]).then(a.bind(null,1541))}),h=r.a.lazy(function(){return Promise.all([a.e(0),a.e(1),a.e(7)]).then(a.bind(null,1542))}),p=r.a.lazy(function(){return Promise.all([a.e(0),a.e(1),a.e(2),a.e(3),a.e(8)]).then(a.bind(null,1551))}),O=r.a.lazy(function(){return Promise.all([a.e(0),a.e(1),a.e(9)]).then(a.bind(null,1544))}),v=r.a.lazy(function(){return Promise.all([a.e(0),a.e(1),a.e(10)]).then(a.bind(null,1557))}),S=r.a.lazy(function(){return a.e(11).then(a.bind(null,1545))}),y=r.a.lazy(function(){return a.e(12).then(a.bind(null,1554))}),_=r.a.lazy(function(){return Promise.all([a.e(0),a.e(1),a.e(13)]).then(a.bind(null,1546))}),P=r.a.lazy(function(){return a.e(14).then(a.bind(null,1547))}),C=r.a.lazy(function(){return Promise.all([a.e(21),a.e(15)]).then(a.bind(null,1548))}),j=r.a.lazy(function(){return Promise.all([a.e(0),a.e(1),a.e(2),a.e(3),a.e(16)]).then(a.bind(null,1555))}),R=r.a.lazy(function(){return Promise.all([a.e(0),a.e(2),a.e(17)]).then(a.bind(null,1549))}),I=r.a.lazy(function(){return Promise.all([a.e(0),a.e(1),a.e(2),a.e(20),a.e(18)]).then(a.bind(null,1550))}),w=function(){var e=Object(n.useContext)(l.a),t=e.load,a=e.err_msg,o=Object(n.useContext)(l.a),c=(o.confirmload,o.confirm_err_msg),w=Object(u.a)(t,2),k=w[0],z=(w[1],Object(u.a)(a,2)),x=z[0],M=z[1],L=Object(u.a)(c,2),B=L[0],N=L[1];return r.a.createElement("div",null,r.a.createElement(m.a,{active:k,page:!0},r.a.createElement(d.a,{size:"massive"},"Loading")),r.a.createElement(f.a,{size:"mini",open:x.open,dimmer:"inverted"},r.a.createElement(f.a.Header,{style:{backgroundColor:x.color,color:"#fff"}},x.header),r.a.createElement(f.a.Content,null,r.a.createElement("div",{dangerouslySetInnerHTML:{__html:x.message}})),r.a.createElement(f.a.Actions,null,r.a.createElement(g.a,{style:{backgroundColor:x.color},positive:!0,onClick:function(){return M({type:"CLOSE_MSG_BOX"})}},"OK"))),r.a.createElement(f.a,{size:"mini",open:B.open,dimmer:"inverted"},r.a.createElement(f.a.Header,{style:{backgroundColor:B.color,color:"#fff"}},B.header),r.a.createElement(f.a.Content,null,r.a.createElement("div",{dangerouslySetInnerHTML:{__html:B.message}})),r.a.createElement(f.a.Actions,null,r.a.createElement(g.a,{basic:!0,color:"red",content:"Red",onClick:function(){return N({type:"CLOSE_CONFIRM_MSG_BOX"})}},"CANCEL"),r.a.createElement(g.a,{basic:!0,color:"blue",content:"Blue",onClick:function(){return N({type:"OK_CONFIRM_MSG_BOX"})}},"OK"))),r.a.createElement(i.a,null,r.a.createElement(r.a.Suspense,{fallback:r.a.createElement("div",{className:"animated fadeIn pt-3 text-center"},"Loading...")},r.a.createElement(s.Switch,null,r.a.createElement(s.Route,{exact:!0,path:["/bcu","/rcub","/dud","/sdu","/demo","/gcg","/srun","/acu","/dypatil","/reva","/msruas","/kus","/vskub","/surana","/acm","/epcet","/jssun"],name:"Login Page",render:function(e){return r.a.createElement(b,e)}}),r.a.createElement(s.Route,{exact:!0,path:["/bcu/admin","/rcub/admin","/sdu/admin","/dud/admin","/demo/admin","/gcg/admin","/srun/admin","/acu/admin","/dypatil/admin","/reva/admin","/msruas/admin","/kus/admin","/vskub/admin","/surana/admin","/acm/admin","/epcet/admin","/jssun/admin"],name:"Admin Login Page",render:function(e){return r.a.createElement(h,e)}}),r.a.createElement(s.Route,{path:"/admin",name:"Admin Login Page",render:function(e){return r.a.createElement(p,e)}}),r.a.createElement(s.Route,{exact:!0,path:"/twofa",name:"Two Factor Auth",render:function(e){return r.a.createElement(O,e)}}),r.a.createElement(s.Route,{exact:!0,path:"/register",name:"Register Page",render:function(e){return r.a.createElement(v,e)}}),r.a.createElement(s.Route,{exact:!0,path:"/forgot-passwd",name:"Forgot Password",render:function(e){return r.a.createElement(_,e)}}),r.a.createElement(s.Route,{exact:!0,path:"/404",name:"Page 404",render:function(e){return r.a.createElement(S,e)}}),r.a.createElement(s.Route,{exact:!0,path:"/500",name:"Page 500",render:function(e){return r.a.createElement(y,e)}}),r.a.createElement(s.Route,{exact:!0,path:"/barcode",name:"Barcode",render:function(e){return r.a.createElement(P,e)}}),r.a.createElement(s.Route,{exact:!0,path:"/barcode-drop",name:"Barcode Dropzone",render:function(e){return r.a.createElement(C,e)}}),r.a.createElement(s.Route,{exact:!0,path:"/evaluate/:ifqpcode/:ifregcode/:ifvalno",name:"Evaluation",render:function(e){return r.a.createElement(j,e)}}),r.a.createElement(s.Route,{exact:!0,path:"/viewEval/:ifqpcode/:ifregcode/:ifvalno",name:"View Evaluation",render:function(e){return r.a.createElement(R,e)}}),r.a.createElement(s.Route,{path:"/dashboard",name:"Home",render:function(e){return r.a.createElement(E,e)}}),r.a.createElement(s.Route,{exact:!0,path:"/verticalEvaluate/:qpcode/:regcode/:valno",name:"Evaluation",render:function(e){return r.a.createElement(I,e)}}),r.a.createElement(s.Redirect,{from:"/",to:"/404"})))))},k=function(){return r.a.createElement(l.b,null,r.a.createElement(w,null))};c.a.render(r.a.createElement(k,null),document.getElementById("root"))},159:function(e,t,a){"use strict";a.d(t,"a",function(){return c});var n=a(59),r=a(1),o=a.n(r),c=o.a.createContext(null);function l(e,t){switch(t.type){case"CLOSE_MSG_BOX":return{open:!1,header:"",message:"",color:""};case"OPEN_MSG_BOX":var a="#1c8bc3";return"error"==t.payload.header.toLowerCase()?a="#e53935":"success"==t.payload.header.toLowerCase()&&(a="#388e3c"),{open:!0,header:t.payload.header,message:t.payload.message,color:a};default:return e}}function u(e,t){switch(t.type){case"CLOSE_CONFIRM_MSG_BOX":return{open:!1,header:"",message:"",color:""};case"OPEN_CONFIRM_MSG_BOX":return{open:!0,header:t.payload.header,message:t.payload.message,color:"#3d6a7f"};case"CANCEL_CONFIRM_MSG_BOX":return{open:!1,header:"",message:"",color:"",confirm:""};case"OK_CONFIRM_MSG_BOX":return{open:!1,header:"",message:"",color:"",confirm:"ok"};default:return e}}t.b=function(e){var t=e.children,a=Object(r.useReducer)(l,{open:!1,header:"",message:"",color:""}),i=Object(n.a)(a,2),s=i[0],m=i[1],d=Object(r.useReducer)(u,{open:!1,header:"",message:"",color:"",confirm:"ok"}),f=Object(n.a)(d,2),g=f[0],E=f[1],b=Object(r.useState)(!1),h=Object(n.a)(b,2),p=h[0],O=h[1],v=Object(r.useState)(""),S=Object(n.a)(v,2),y=S[0],_=S[1],P=Object(r.useState)(""),C=Object(n.a)(P,2),j=C[0],R=C[1],I=Object(r.useState)(""),w=Object(n.a)(I,2),k=w[0],z=w[1],x=Object(r.useState)(!1),M=Object(n.a)(x,2),L=M[0],B=M[1],N=Object(r.useState)(""),G=Object(n.a)(N,2),X=G[0],F=G[1],A=Object(r.useState)(null),H=Object(n.a)(A,2),q=H[0],K=H[1];Object(r.useEffect)(function(){"/srun"===sessionStorage.getItem("rootPath")?K("050"):"/gcg"===sessionStorage.getItem("rootPath")?K("033"):"/bcu"===sessionStorage.getItem("rootPath")?K("041"):"/rcub"===sessionStorage.getItem("rootPath")?K("027"):"/sdu"===sessionStorage.getItem("rootPath")?K("020"):"/demo"===sessionStorage.getItem("rootPath")?K("098"):"/acu"===sessionStorage.getItem("rootPath")?K("040"):"/reva"===sessionStorage.getItem("rootPath")?K("030"):"/dypatil"===sessionStorage.getItem("rootPath")?K("051"):"/msruas"===sessionStorage.getItem("rootPath")?K("053"):"/kus"===sessionStorage.getItem("rootPath")?K("003D"):"/vskub"===sessionStorage.getItem("rootPath")?K("026"):"/surana"===sessionStorage.getItem("rootPath")?K("060"):K(sessionStorage.getItem("univcode"))},[]);var T={err_msg:[s,m],confirm_err_msg:[g,E],load:[p,O],auth_token:[y,_],teachcode:[j,R],qpcode:[k,z],rev:[L,B],val:[X,F],univcode:q};return o.a.createElement(c.Provider,{value:T},t)}},544:function(e,t,a){e.exports=a(1310)}},[[544,22,19]]]);
//# sourceMappingURL=main.b013322d.chunk.js.map
|