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 : 3.15.34.105
(window.webpackJsonp=window.webpackJsonp||[]).push([[196,307],{1318:function(e,t,r){"use strict";r.r(t);var n=r(3),a=r(68),o=r(100),i=r(101),c=r(103),l=r(102),u=r(104),s=r(2),p=r.n(s),d=r(941),f=r(298),h=r(1377),y=r(1343),m=r(272),g=r(1335),v=r(1337),b=r(300),E=r(105),w=r(267),x=r(284);function O(){O=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,a=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",c=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function u(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,r){return e[t]=r}}function s(e,t,r,n){var o=t&&t.prototype instanceof g?t:g,i=Object.create(o.prototype),c=new C(n||[]);return a(i,"_invoke",{value:L(e,r,c)}),i}function p(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=s;var d="suspendedStart",f="suspendedYield",h="executing",y="completed",m={};function g(){}function v(){}function b(){}var E={};u(E,i,function(){return this});var w=Object.getPrototypeOf,x=w&&w(w(F([])));x&&x!==r&&n.call(x,i)&&(E=x);var A=b.prototype=g.prototype=Object.create(E);function S(e){["next","throw","return"].forEach(function(t){u(e,t,function(e){return this._invoke(t,e)})})}function j(e,t){function r(a,o,i,c){var l=p(e[a],e,o);if("throw"!==l.type){var u=l.arg,s=u.value;return s&&"object"==typeof s&&n.call(s,"__await")?t.resolve(s.__await).then(function(e){r("next",e,i,c)},function(e){r("throw",e,i,c)}):t.resolve(s).then(function(e){u.value=e,i(u)},function(e){return r("throw",e,i,c)})}c(l.arg)}var o;a(this,"_invoke",{value:function(e,n){function a(){return new t(function(t,a){r(e,n,t,a)})}return o=o?o.then(a,a):a()}})}function L(t,r,n){var a=d;return function(o,i){if(a===h)throw new Error("Generator is already running");if(a===y){if("throw"===o)throw i;return{value:e,done:!0}}for(n.method=o,n.arg=i;;){var c=n.delegate;if(c){var l=_(c,n);if(l){if(l===m)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(a===d)throw a=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);a=h;var u=p(t,r,n);if("normal"===u.type){if(a=n.done?y:f,u.arg===m)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(a=y,n.method="throw",n.arg=u.arg)}}}function _(t,r){var n=r.method,a=t.iterator[n];if(a===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,_(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),m;var o=p(a,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,m;var i=o.arg;return i?i.done?(r[t.resultName]=i.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,m):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,m)}function k(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function P(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function F(t){if(t||""===t){var r=t[i];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var a=-1,o=function r(){for(;++a<t.length;)if(n.call(t,a))return r.value=t[a],r.done=!1,r;return r.value=e,r.done=!0,r};return o.next=o}}throw new TypeError(typeof t+" is not iterable")}return v.prototype=b,a(A,"constructor",{value:b,configurable:!0}),a(b,"constructor",{value:v,configurable:!0}),v.displayName=u(b,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===v||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,u(e,l,"GeneratorFunction")),e.prototype=Object.create(A),e},t.awrap=function(e){return{__await:e}},S(j.prototype),u(j.prototype,c,function(){return this}),t.AsyncIterator=j,t.async=function(e,r,n,a,o){void 0===o&&(o=Promise);var i=new j(s(e,r,n,a),o);return t.isGeneratorFunction(r)?i:i.next().then(function(e){return e.done?e.value:i.next()})},S(A),u(A,l,"Generator"),u(A,i,function(){return this}),u(A,"toString",function(){return"[object Generator]"}),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=F,C.prototype={constructor:C,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(P),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function a(n,a){return c.type="throw",c.arg=t,r.next=n,a&&(r.method="next",r.arg=e),!!a}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],c=i.completion;if("root"===i.tryLoc)return a("end");if(i.tryLoc<=this.prev){var l=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(l&&u){if(this.prev<i.catchLoc)return a(i.catchLoc,!0);if(this.prev<i.finallyLoc)return a(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return a(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return a(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,m):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),m},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),P(r),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var a=n.arg;P(r)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:F(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),m}},t}var A=function(e){function t(){var e,r;Object(o.a)(this,t);for(var n=arguments.length,i=new Array(n),u=0;u<n;u++)i[u]=arguments[u];return(r=Object(c.a)(this,(e=Object(l.a)(t)).call.apply(e,[this].concat(i)))).state={exam:"",board:"All",qpcode:"All",degree:"All",sem:"All",status:"All",data:[],search:"",loading:!1,type:"current",formSubmit:!1,searchQP:"",finQP:null,indexSet:"",finQPFile:"",finAns:null,finAnsFile:""},r.componentDidMount=function(){r.props.loadYearAndMode(r.state.type)},r.chnageExam=function(){var e=Object(a.a)(O().mark(function e(t){var n,a;return O().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r.setState({exam:t.value,loading:!1,formSubmit:!1});case 2:r.props.getBoardDet(t.value),n=t.value.split("*"),a=n[0],r.props.loadmastersdeg(a);case 6:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}(),r.changeBoard=function(){var e=Object(a.a)(O().mark(function e(t){return O().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:r.setState({board:t.value,loading:!1,formSubmit:!1}),r.props.getBoardSubj(r.state.exam,t.value);case 2:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}(),r.changeSubjectQp=function(){var e=Object(a.a)(O().mark(function e(t){return O().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:r.setState({qpcode:t.value,loading:!1,formSubmit:!1});case 1:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}(),r.changeDegree=function(){var e=Object(a.a)(O().mark(function e(t){return O().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",r.setState({degree:t.value,loading:!1,formSubmit:!1}));case 1:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}(),r.changeSem=function(){var e=Object(a.a)(O().mark(function e(t){return O().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",r.setState({sem:t.value,loading:!1,formSubmit:!1}));case 1:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}(),r.statusChange=function(){var e=Object(a.a)(O().mark(function e(t){return O().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",r.setState({status:t.value,loading:!1,formSubmit:!1}));case 1:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}(),r.submitHandler=Object(a.a)(O().mark(function e(){var t,n,a,o,i,c,l,u,s;return O().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(""!==r.state.exam){e.next=4;break}return t={header:"Error",content:"Select Exam"},r.props.showError(t),e.abrupt("return");case 4:return n=r.state,a=n.exam,o=n.board,i=n.qpcode,c=n.degree,l=n.sem,u=n.status,(s=new FormData).append("univcode",r.props.univ.funivcode),s.append("exam",a),s.append("board",o),s.append("qpcode",i),s.append("degree",c),s.append("sem",l),s.append("status",u),e.next=15,r.props.getFinQPData(s);case 15:return e.next=17,r.setState({data:r.props.getData,formSubmit:!0});case 17:case"end":return e.stop()}},e)})),r.changeHandler=function(e,t,n){r.setState({indexSet:t}),"QP"===n?r.setState({finQPFile:e.target.files[0],finQP:t}):"Ans"===n&&r.setState({finAnsFile:e.target.files[0],finAns:t})},r.uploadFinalQPFile=function(){var e=Object(a.a)(O().mark(function e(t,n){var a,o,i,c,l,u,s;return O().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(null!==r.state.finQPFile){e.next=4;break}return a={header:"Error",content:"Please Select Final QP File"},r.props.showError(a),e.abrupt("return");case 4:return o=r.state,i=o.finQPFile,c=o.finQP,l=o.finAnsFile,u=o.finAns,(s=new FormData).append("univcode",r.props.univ.funivcode),s.append("userid",r.props.userid),s.append("exam",r.state.exam),s.append("finQPFile",i),s.append("finQP",c),s.append("finAnsFile",l),s.append("finAns",u),s.append("data",JSON.stringify(t)),e.next=16,r.props.uploadFinalQP(s);case 16:return e.next=18,r.submitHandler();case 18:case"end":return e.stop()}},e)}));return function(t,r){return e.apply(this,arguments)}}(),r}return Object(u.a)(t,e),Object(i.a)(t,[{key:"render",value:function(){var e=this,t=[{key:"All",text:"All",value:"All"}],r=this.props.year.map(function(e,t){return{key:t,text:e.fdesexam,value:e.fexamyear}}),a=this.props.boards.map(function(e,t){return{key:t,text:e.fboardname,value:e.fboardcode}}),o=[].concat(t,Object(n.a)(a)),i=this.props.subject.map(function(e,t){return{key:t,text:"".concat(e.fqpcode," - ").concat(e.fsubname),value:e.fqpcode}}),c=[].concat(t,Object(n.a)(i)),l=this.props.degree.map(function(e,t){return{key:t,text:e.fdegree+" - "+e.fdescpn,value:e.fdegree}}),u=[].concat(t,Object(n.a)(l)),s=[].concat(t,[{key:"A",value:"A",text:"I Semester"},{key:"B",value:"B",text:"II Semester"},{key:"C",value:"C",text:"III Semester"},{key:"D",value:"D",text:"IV Semester"},{key:"E",value:"E",text:"V Semester"},{key:"F",value:"F",text:"VI Semester"},{key:"G",value:"G",text:"VII Semester"},{key:"H",value:"H",text:"VIII Semester"},{key:"I",value:"I",text:"IX Semester"},{key:"J",value:"J",text:"X Semester"}]),f=[].concat(t,[{key:"Uploaded",text:"Uploaded",value:"Uploaded"},{key:"Not Uploaded",text:"Not Uploaded",value:"Not Uploaded"}]);return p.a.createElement(h.a,{fluid:!0},p.a.createElement(h.a.Content,null,p.a.createElement(h.a.Header,{style:{display:"flex"}},p.a.createElement("h4",null,"Final Question Paper"),p.a.createElement("div",{className:"ml-auto"},p.a.createElement(y.a,{basic:!0,color:"black",icon:"ban",content:"Clear",onClick:function(){e.setState({exam:"",board:"All",qpcode:"All",degree:"All",sem:"All",status:"All",data:[],formSubmit:!1})}}),p.a.createElement(d.a,{to:"/dashboard"},p.a.createElement(y.a,{basic:!0,color:"red",content:"Exit",icon:"home"})))),p.a.createElement(m.a,null),p.a.createElement(h.a.Description,null,p.a.createElement(g.a,null,p.a.createElement(g.a.Group,null,p.a.createElement(g.a.Field,{width:4},p.a.createElement("label",null,"Exam"),p.a.createElement(v.a,{fluid:!0,search:!0,selection:!0,value:this.state.exam,options:r,allowAdditions:!0,placeholder:"Exam",onChange:function(t,r){return e.chnageExam(r)}})),p.a.createElement(g.a.Field,{width:4},p.a.createElement("label",null,"Board"),p.a.createElement(v.a,{fluid:!0,search:!0,selection:!0,value:this.state.board,options:o,allowAdditions:!0,placeholder:"Board",onChange:function(t,r){return e.changeBoard(r)}})),p.a.createElement(g.a.Field,{width:4},p.a.createElement("label",null,"QP Code"),p.a.createElement(v.a,{fluid:!0,search:!0,selection:!0,value:this.state.qpcode,options:c,allowAdditions:!0,placeholder:"QP Code",onChange:function(t,r){return e.changeSubjectQp(r)}}))),p.a.createElement(g.a.Group,null,p.a.createElement(g.a.Field,{width:4},p.a.createElement("label",null,"Degree"),p.a.createElement(v.a,{fluid:!0,search:!0,selection:!0,value:this.state.degree,options:u,allowAdditions:!0,placeholder:"Degree",onChange:function(t,r){return e.changeDegree(r)}})),p.a.createElement(g.a.Field,{width:4},p.a.createElement("label",null,"Sem"),p.a.createElement(v.a,{fluid:!0,search:!0,selection:!0,value:this.state.sem,options:s,allowAdditions:!0,placeholder:"sem",onChange:function(t,r){return e.changeSem(r)}})),p.a.createElement(g.a.Field,{width:4},p.a.createElement("label",null,"Status"),p.a.createElement(v.a,{fluid:!0,search:!0,selection:!0,value:this.state.status,options:f,allowAdditions:!0,placeholder:"Status",onChange:function(t,r){return e.statusChange(r)}})),p.a.createElement(g.a.Field,{width:4},p.a.createElement(y.a,{style:{position:"absolute",bottom:"3px"},basic:!0,content:"Submit",color:"blue",onClick:function(){return e.submitHandler()}})))),this.state.formSubmit&&p.a.createElement("div",{style:{height:"550px",overflowY:"auto",border:"1px solid grey"}},p.a.createElement("table",{style:{width:"100%",border:"1px solid"}},p.a.createElement("thead",{style:{backgroundColor:"#1e7f91",color:"white",height:"40px",position:"sticky",top:0,zIndex:2}},p.a.createElement("tr",null,p.a.createElement("td",{colSpan:8},p.a.createElement("input",{placeholder:"Search...",onChange:function(t){e.setState({searchQP:t.target.value})},value:this.state.searchQP,style:{width:"100%",padding:"5px",margin:"10px 0",borderRadius:"15px"}}))),p.a.createElement("tr",null,p.a.createElement("th",{style:{borderRight:"1px solid grey",borderCollapse:"collapse",width:"5%",textAlign:"center"}},"Sl. No."),p.a.createElement("th",{style:{borderRight:"1px solid grey",borderCollapse:"collapse",width:"10%",textAlign:"center"}},"QP Code"),p.a.createElement("th",{style:{borderRight:"1px solid grey",borderCollapse:"collapse",width:"40%",textAlign:"center"}},"Subject Name"),p.a.createElement("th",{style:{borderRight:"1px solid grey",borderCollapse:"collapse",width:"10%",textAlign:"center"}},"QP"),p.a.createElement("th",{style:{borderRight:"1px solid grey",borderCollapse:"collapse",width:"10%",textAlign:"center"}},"Ans"),p.a.createElement("th",{style:{borderRight:"1px solid grey",borderCollapse:"collapse",width:"10%",textAlign:"center"}},"QP Upload"),p.a.createElement("th",{style:{borderRight:"1px solid grey",borderCollapse:"collapse",width:"10%",textAlign:"center"}},"Ans Upload"),p.a.createElement("th",{style:{borderRight:"1px solid grey",borderCollapse:"collapse",width:"5%",textAlign:"center"}},"Action"))),p.a.createElement("tbody",null,this.props.getData.length>0?this.state.data.filter(function(t){return t.fqpcode.toLowerCase().includes(e.state.searchQP.toLowerCase())}).map(function(t,r){var n="https://moderator-upd.s3.ap-south-1.amazonaws.com/"+t.ffinalqppath,a="https://moderator-upd.s3.ap-south-1.amazonaws.com/"+t.ffinalanspath;return p.a.createElement("tr",{key:r},p.a.createElement("td",{align:"center",style:{border:"1px solid grey",borderCollapse:"collapse"}},r+1),p.a.createElement("td",{align:"center",style:{border:"1px solid grey",borderCollapse:"collapse",paddingLeft:"10px"}},t.fqpcode),p.a.createElement("td",{style:{border:"1px solid grey",borderCollapse:"collapse",paddingLeft:"10px"}},t.fsubname),p.a.createElement("td",{align:"center",style:{border:"1px solid grey",borderCollapse:"collapse"}},""!==t.ffinalqppath?p.a.createElement("a",{href:n},"View"):"Not Uploaded"),p.a.createElement("td",{align:"center",style:{border:"1px solid grey",borderCollapse:"collapse"}},""!==t.ffinalanspath?p.a.createElement("a",{href:a},"View"):"Not Uploaded"),p.a.createElement("td",{align:"center",style:{border:"1px solid grey",borderCollapse:"collapse"}},p.a.createElement("input",{type:"file",onChange:function(t){return e.changeHandler(t,r,"QP")}})),p.a.createElement("td",{align:"center",style:{border:"1px solid grey",borderCollapse:"collapse"}},p.a.createElement("input",{type:"file",onChange:function(t){return e.changeHandler(t,r,"Ans")}})),p.a.createElement("td",{align:"center",style:{border:"1px solid grey",borderCollapse:"collapse"}},p.a.createElement(y.a,{basic:!0,icon:"upload",color:"green",onClick:function(){return e.uploadFinalQPFile(t,r)}})))}):p.a.createElement("tr",null,p.a.createElement("td",{colSpan:10,style:{textAlign:"center",height:"30px"}},"No Data Found"))))))))}}]),t}(s.Component);t.default=Object(E.b)(function(e){return{univ:e.univ,year:e.loadYearAndMode,boards:e.boaddet,subject:e.boardsubj,degree:e.loadmastersdeg,getData:e.finQPDat,userid:e.user.fuserid}},{loadYearAndMode:f.m,getBoardDet:b.k,getBoardSubj:b.l,loadmastersdeg:x.d,getFinQPData:b.n,showError:w.A,uploadFinalQP:b.H})(A)},272:function(e,t,r){"use strict";var n=r(270),a=r.n(n),o=r(268),i=r.n(o),c=r(2),l=r.n(c),u=r(349),s=r(613),p=r(611),d=r(269);function f(e){var t=e.children,r=e.className,n=e.clearing,o=e.content,c=e.fitted,h=e.hidden,y=e.horizontal,m=e.inverted,g=e.section,v=e.vertical,b=i()("ui",Object(u.a)(n,"clearing"),Object(u.a)(c,"fitted"),Object(u.a)(h,"hidden"),Object(u.a)(y,"horizontal"),Object(u.a)(m,"inverted"),Object(u.a)(g,"section"),Object(u.a)(v,"vertical"),"divider",r),E=Object(s.a)(f,e),w=Object(p.a)(f,e);return l.a.createElement(w,a()({},E,{className:b}),d.a.isNil(t)?o:t)}f.handledProps=["as","children","className","clearing","content","fitted","hidden","horizontal","inverted","section","vertical"],f.propTypes={},t.a=f},284:function(e,t,r){"use strict";r.d(t,"c",function(){return c}),r.d(t,"d",function(){return l}),r.d(t,"e",function(){return u}),r.d(t,"b",function(){return s}),r.d(t,"f",function(){return p}),r.d(t,"a",function(){return d}),r.d(t,"g",function(){return f});var n=r(68),a=r(271),o=r(267);function i(){i=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,a=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},c=o.iterator||"@@iterator",l=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function p(e,t,r,n){var o=t&&t.prototype instanceof v?t:v,i=Object.create(o.prototype),c=new C(n||[]);return a(i,"_invoke",{value:L(e,r,c)}),i}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=p;var f="suspendedStart",h="suspendedYield",y="executing",m="completed",g={};function v(){}function b(){}function E(){}var w={};s(w,c,function(){return this});var x=Object.getPrototypeOf,O=x&&x(x(F([])));O&&O!==r&&n.call(O,c)&&(w=O);var A=E.prototype=v.prototype=Object.create(w);function S(e){["next","throw","return"].forEach(function(t){s(e,t,function(e){return this._invoke(t,e)})})}function j(e,t){function r(a,o,i,c){var l=d(e[a],e,o);if("throw"!==l.type){var u=l.arg,s=u.value;return s&&"object"==typeof s&&n.call(s,"__await")?t.resolve(s.__await).then(function(e){r("next",e,i,c)},function(e){r("throw",e,i,c)}):t.resolve(s).then(function(e){u.value=e,i(u)},function(e){return r("throw",e,i,c)})}c(l.arg)}var o;a(this,"_invoke",{value:function(e,n){function a(){return new t(function(t,a){r(e,n,t,a)})}return o=o?o.then(a,a):a()}})}function L(t,r,n){var a=f;return function(o,i){if(a===y)throw new Error("Generator is already running");if(a===m){if("throw"===o)throw i;return{value:e,done:!0}}for(n.method=o,n.arg=i;;){var c=n.delegate;if(c){var l=_(c,n);if(l){if(l===g)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(a===f)throw a=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);a=y;var u=d(t,r,n);if("normal"===u.type){if(a=n.done?m:h,u.arg===g)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(a=m,n.method="throw",n.arg=u.arg)}}}function _(t,r){var n=r.method,a=t.iterator[n];if(a===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,_(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var o=d(a,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,g;var i=o.arg;return i?i.done?(r[t.resultName]=i.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,g):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function k(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function P(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function F(t){if(t||""===t){var r=t[c];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var a=-1,o=function r(){for(;++a<t.length;)if(n.call(t,a))return r.value=t[a],r.done=!1,r;return r.value=e,r.done=!0,r};return o.next=o}}throw new TypeError(typeof t+" is not iterable")}return b.prototype=E,a(A,"constructor",{value:E,configurable:!0}),a(E,"constructor",{value:b,configurable:!0}),b.displayName=s(E,u,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===b||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,E):(e.__proto__=E,s(e,u,"GeneratorFunction")),e.prototype=Object.create(A),e},t.awrap=function(e){return{__await:e}},S(j.prototype),s(j.prototype,l,function(){return this}),t.AsyncIterator=j,t.async=function(e,r,n,a,o){void 0===o&&(o=Promise);var i=new j(p(e,r,n,a),o);return t.isGeneratorFunction(r)?i:i.next().then(function(e){return e.done?e.value:i.next()})},S(A),s(A,u,"Generator"),s(A,c,function(){return this}),s(A,"toString",function(){return"[object Generator]"}),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=F,C.prototype={constructor:C,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(P),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function a(n,a){return c.type="throw",c.arg=t,r.next=n,a&&(r.method="next",r.arg=e),!!a}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],c=i.completion;if("root"===i.tryLoc)return a("end");if(i.tryLoc<=this.prev){var l=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(l&&u){if(this.prev<i.catchLoc)return a(i.catchLoc,!0);if(this.prev<i.finallyLoc)return a(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return a(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return a(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,g):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),P(r),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var a=n.arg;P(r)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:F(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),g}},t}var c=function(){return function(){var e=Object(n.a)(i().mark(function e(t,r){var n,c,l,u,s,p;return i().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=r(),t({type:"SET_LOADER"}),c=n.user.fcollcode?n.user.fcollcode:"",l="",l="051"==n.user.fcuruniv?"loaddeggrpnotif":"loaddeggrpexamcentre",e.next=7,a.a.get("/app.php",{params:{a:l,univcode:n.user.fcuruniv,fcollcode:c}});case 7:u=e.sent,t({type:"UNSET_LOADER"}),"object"!==typeof u.data?(s={header:"Error",content:"Something went wrong"},t(Object(o.A)(s))):-1===u.data.error_code?(p={header:"Error",content:u.data.data.msg},t(Object(o.A)(p))):t({type:"LOAD_DEGGRP_EXAMCENTRE",payload:u.data});case 10:case"end":return e.stop()}},e)}));return function(t,r){return e.apply(this,arguments)}}()},l=function(e){return function(){var t=Object(n.a)(i().mark(function t(r,n){var c,l,u,s;return i().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return c=n(),r({type:"SET_LOADER"}),t.next=4,a.a.get("/app.php",{params:{a:"loadmastersdeg",deggrp:e,univcode:c.user.fcuruniv}});case 4:l=t.sent,r({type:"UNSET_LOADER"}),"object"!==typeof l.data?(u={header:"Error",content:"Something went wrong"},r(Object(o.A)(u))):-1===l.data.error_code?(s={header:"Error",content:l.data.data.msg},r(Object(o.A)(s))):r({type:"LOAD_MASTERS_DEGREE",payload:l.data});case 7:case"end":return t.stop()}},t)}));return function(e,r){return t.apply(this,arguments)}}()},u=function(e){return function(){var t=Object(n.a)(i().mark(function t(r,n){var c,l,u,s;return i().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return c=n(),r({type:"SET_LOADER"}),t.next=4,a.a.get("/app.php",{params:{a:"loadsubrptsem",degree:e,univcode:c.user.fcuruniv}});case 4:l=t.sent,r({type:"UNSET_LOADER"}),"object"!==typeof l.data?(u={header:"Error",content:"Something went wrong"},r(Object(o.A)(u))):-1===l.data.error_code?(s={header:"Error",content:l.data.data.msg},r(Object(o.A)(s))):r({type:"LOAD_SUB_SEMESTER",payload:l.data});case 7:case"end":return t.stop()}},t)}));return function(e,r){return t.apply(this,arguments)}}()},s=function(e){return function(){var t=Object(n.a)(i().mark(function t(r,n){var c,l,u,s;return i().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return c=n(),r({type:"SET_LOADER"}),t.next=4,a.a.post("/app.php?a=loadallexamcentre&univcode="+c.univ.funivcode+"°grp="+e.deggrp,{data:e});case 4:l=t.sent,r({type:"UNSET_LOADER"}),"object"!==typeof l.data?(u={header:"Error",content:"Something went wrong"},r(Object(o.A)(u))):-1===l.data.error_code?(s={header:"Error",content:l.data.data.msg},r(Object(o.A)(s))):r({type:"LOAD_ALL_EXAMCENTRE",payload:l.data});case 7:case"end":return t.stop()}},t)}));return function(e,r){return t.apply(this,arguments)}}()},p=function(e){return function(){var t=Object(n.a)(i().mark(function t(r,n){var c,l,u,s;return i().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return c=n(),r({type:"SET_LOADER"}),t.next=4,a.a.post("/app.php?a=loadtableexamcentre&univcode="+c.univ.funivcode+"°grp="+e.deggrp+"&reportorder="+e.reportorder,{data:e});case 4:l=t.sent,r({type:"UNSET_LOADER"}),"object"!==typeof l.data?(u={header:"Error",content:"Something went wrong"},r(Object(o.A)(u))):-1===l.data.error_code?(s={header:"Error",content:l.data.data.msg},r(Object(o.A)(s))):r({type:"LOAD_TABLE_EXAMCENTRE",payload:l.data});case 7:case"end":return t.stop()}},t)}));return function(e,r){return t.apply(this,arguments)}}()},d=function(e,t){return function(){var r=Object(n.a)(i().mark(function r(n,o){var c,l;return i().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return c=o(),n({type:"SET_LOADER"}),r.next=4,a.a.post("/app.php?a=getVerfyData&univcode="+c.univ.funivcode+"°gp="+e+"&fstatus="+t);case 4:l=r.sent,n({type:"UNSET_LOADER"}),-1===l.data.error_code?n({type:"CLEAR_GET_VERF_NOTI"}):n({type:"GET_VERF_NOTI",payload:l.data});case 7:case"end":return r.stop()}},r)}));return function(e,t){return r.apply(this,arguments)}}()},f=function(e,t,r){return function(){var c=Object(n.a)(i().mark(function n(c,l){var u,s,p,d;return i().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return u=l(),c({type:"SET_LOADER"}),n.next=4,a.a.post("/app.php?a=saveVerifyNotifi&univcode="+u.univ.funivcode+"&findata="+e+"&userid="+t+"&usertype="+r);case 4:s=n.sent,c({type:"UNSET_LOADER"}),0===s.data.error_code?(p={header:"Success",content:s.data.data.msg},c(Object(o.A)(p))):(d={header:"Error",content:s.data.data.msg},c(Object(o.A)(d)));case 7:case"end":return n.stop()}},n)}));return function(e,t){return c.apply(this,arguments)}}()}}}]);
//# sourceMappingURL=196.f7d1b171.chunk.js.map
|