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.191.72.220
(window.webpackJsonp=window.webpackJsonp||[]).push([[239],{1292:function(e,t,r){"use strict";r.r(t);var n=r(3),a=r(68),o=r(100),c=r(101),i=r(103),u=r(102),l=r(104),s=r(2),p=r.n(s),f=r(941),d=r(1337),h=r(298),m=r(300),v=r(105),y=r(267),g=r(284);function E(){E=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",i=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function l(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,r){return e[t]=r}}function s(e,t,r,n){var o=t&&t.prototype instanceof y?t:y,c=Object.create(o.prototype),i=new T(n||[]);return a(c,"_invoke",{value:k(e,r,i)}),c}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 f="suspendedStart",d="suspendedYield",h="executing",m="completed",v={};function y(){}function g(){}function b(){}var w={};l(w,c,function(){return this});var x=Object.getPrototypeOf,O=x&&x(x(D([])));O&&O!==r&&n.call(O,c)&&(w=O);var L=b.prototype=y.prototype=Object.create(w);function S(e){["next","throw","return"].forEach(function(t){l(e,t,function(e){return this._invoke(t,e)})})}function j(e,t){function r(a,o,c,i){var u=p(e[a],e,o);if("throw"!==u.type){var l=u.arg,s=l.value;return s&&"object"==typeof s&&n.call(s,"__await")?t.resolve(s.__await).then(function(e){r("next",e,c,i)},function(e){r("throw",e,c,i)}):t.resolve(s).then(function(e){l.value=e,c(l)},function(e){return r("throw",e,c,i)})}i(u.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 k(t,r,n){var a=f;return function(o,c){if(a===h)throw new Error("Generator is already running");if(a===m){if("throw"===o)throw c;return{value:e,done:!0}}for(n.method=o,n.arg=c;;){var i=n.delegate;if(i){var u=N(i,n);if(u){if(u===v)continue;return u}}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=h;var l=p(t,r,n);if("normal"===l.type){if(a=n.done?m:d,l.arg===v)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(a=m,n.method="throw",n.arg=l.arg)}}}function N(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,N(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),v;var o=p(a,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,v;var c=o.arg;return c?c.done?(r[t.resultName]=c.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,v):c:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,v)}function _(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 A(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(_,this),this.reset(!0)}function D(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 g.prototype=b,a(L,"constructor",{value:b,configurable:!0}),a(b,"constructor",{value:g,configurable:!0}),g.displayName=l(b,u,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,l(e,u,"GeneratorFunction")),e.prototype=Object.create(L),e},t.awrap=function(e){return{__await:e}},S(j.prototype),l(j.prototype,i,function(){return this}),t.AsyncIterator=j,t.async=function(e,r,n,a,o){void 0===o&&(o=Promise);var c=new j(s(e,r,n,a),o);return t.isGeneratorFunction(r)?c:c.next().then(function(e){return e.done?e.value:c.next()})},S(L),l(L,u,"Generator"),l(L,c,function(){return this}),l(L,"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=D,T.prototype={constructor:T,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(A),!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 i.type="throw",i.arg=t,r.next=n,a&&(r.method="next",r.arg=e),!!a}for(var o=this.tryEntries.length-1;o>=0;--o){var c=this.tryEntries[o],i=c.completion;if("root"===c.tryLoc)return a("end");if(c.tryLoc<=this.prev){var u=n.call(c,"catchLoc"),l=n.call(c,"finallyLoc");if(u&&l){if(this.prev<c.catchLoc)return a(c.catchLoc,!0);if(this.prev<c.finallyLoc)return a(c.finallyLoc)}else if(u){if(this.prev<c.catchLoc)return a(c.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<c.finallyLoc)return a(c.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 c=o?o.completion:{};return c.type=e,c.arg=t,o?(this.method="next",this.next=o.finallyLoc,v):this.complete(c)},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),v},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),A(r),v}},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;A(r)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:D(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),v}},t}var b=function(e){function t(){var e,r;Object(o.a)(this,t);for(var n=arguments.length,c=new Array(n),l=0;l<n;l++)c[l]=arguments[l];return(r=Object(i.a)(this,(e=Object(u.a)(t)).call.apply(e,[this].concat(c)))).state={exam:"",board:"All",qpcode:"All",degree:"All",sem:"All",status:"All",data:[],search:"",loading:!1,type:"current"},r.componentDidMount=function(){r.props.loadYearAndMode(r.state.type)},r.chnageExam=function(){var e=Object(a.a)(E().mark(function e(t){var n,a;return E().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r.setState({exam:t.value,loading:!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)(E().mark(function e(t){return E().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:r.setState({board:t.value,loading:!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)(E().mark(function e(t){return E().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:r.setState({qpcode:t.value,loading:!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)(E().mark(function e(t){return E().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",r.setState({degree:t.value,loading:!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)(E().mark(function e(t){return E().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",r.setState({sem:t.value,loading:!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)(E().mark(function e(t){return E().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",r.setState({status:t.value,loading:!1}));case 1:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}(),r.submitHandler=Object(a.a)(E().mark(function e(){var t,n,a,o,c,i,u,l,s;return E().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,c=n.qpcode,i=n.degree,u=n.sem,l=n.status,(s=new FormData).append("univcode",r.props.univ.funivcode),s.append("exam",a),s.append("board",o),s.append("qpcode",c),s.append("degree",i),s.append("sem",u),s.append("status",l),s.append("type",r.state.type),e.next=16,r.props.selectFinalQp(s);case 16:return e.next=18,r.setState({data:r.props.getData,loading:!0});case 18:case"end":return e.stop()}},e)})),r.checkFinalQPaper=function(){var e=Object(a.a)(E().mark(function e(t,n,a){var o;return E().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:o=r.state.data.map(function(e,r){return a.fteachcode===e.fteachcode&&a.fset===e.fset&&a.fqpcode===e.fqpcode?(t.target.checked?e.ffinalpaper="T":e.ffinalpaper="",e.fcheckStatus="T",e):e}),r.setState({data:o});case 2:case"end":return e.stop()}},e)}));return function(t,r,n){return e.apply(this,arguments)}}(),r.saveFinalPaper=Object(a.a)(E().mark(function e(){var t,n,a,o,c,i,u,l,s;return E().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.data.map(function(e,t){"T"===e.fcheckStatus&&n.push(e)}),a=r.state,o=a.exam,c=a.board,i=a.qpcode,u=a.degree,l=a.sem,(s=new FormData).append("univcode",r.props.univ.funivcode),s.append("exam",o),s.append("board",c),s.append("qpcode",i),s.append("degree",u),s.append("sem",l),s.append("type",r.state.type),s.append("data",JSON.stringify(n)),e.next=18,r.props.saveQPFinalPaper(s);case 18:case"end":return e.stop()}},e)})),r.changeType=function(e){r.setState({type:e.value,exam:"",loading:!1}),r.props.loadYearAndMode(e.value)},r.deleteHandler=function(e,t,n){var a=r.state.data;a[t].fdeleted=e.target.checked?"T":"F",a[t].fcheckStatus="T",r.setState({data:a})},r}return Object(l.a)(t,e),Object(c.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)),c=this.props.subject.map(function(e,t){return{key:t,text:"".concat(e.fqpcode," - ").concat(e.fsubname),value:e.fqpcode}}),i=[].concat(t,Object(n.a)(c)),u=this.props.degree.map(function(e,t){return{key:t,text:e.fdegree+" - "+e.fdescpn,value:e.fdegree}}),l=[].concat(t,Object(n.a)(u)),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"}]),h=[].concat(t,[{key:"selected",text:"Selected",value:"selected"},{key:"notselected",text:"Not Selected",value:"not_selected"}]);return p.a.createElement("section",null,p.a.createElement("div",{className:"container-fluid"},p.a.createElement("div",{className:"card"},p.a.createElement("div",{className:"card-body"},p.a.createElement("div",{className:"d-flex justify-content-between"},p.a.createElement("h4",{className:"card-title"},"Select Final Question Paper"),p.a.createElement("div",null,p.a.createElement("button",{className:"btn btn-outline-primary mr-2",onClick:function(){return e.saveFinalPaper()}},"Save"),p.a.createElement(f.a,{to:{pathname:"/dashboard"}},p.a.createElement("button",{className:"btn btn-outline-danger"},"Exit")))),p.a.createElement("div",{className:"my-4"},p.a.createElement("hr",null)),p.a.createElement("div",{className:"input-elements"},p.a.createElement("form",{className:"container"},p.a.createElement("div",{className:"row"},p.a.createElement("div",{className:"col-md-3"},p.a.createElement("label",{htmlFor:"exam",className:"form-label"},"Type"),p.a.createElement(d.a,{fluid:!0,search:!0,selection:!0,value:this.state.type,options:[{key:"current",text:"Current",value:"current"},{key:"old",text:"Old",value:"old"}],allowAdditions:!0,onChange:function(t,r){return e.changeType(r)}})),p.a.createElement("div",{className:"col-md-3"},p.a.createElement("label",{htmlFor:"exam",className:"form-label"},"Exam"),p.a.createElement(d.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("div",{className:"col-md-3"},p.a.createElement("label",{htmlFor:"board",className:"form-label"},"Board"),p.a.createElement(d.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("div",{className:"col-md-3"},p.a.createElement("label",{htmlFor:"qpode",className:"form-label"},"Qp Code"),p.a.createElement(d.a,{fluid:!0,search:!0,selection:!0,value:this.state.qpcode,options:i,allowAdditions:!0,placeholder:"QP Code",onChange:function(t,r){return e.changeSubjectQp(r)}}))),p.a.createElement("div",{className:"row my-3"},p.a.createElement("div",{className:"col-md-3"},p.a.createElement("label",{htmlFor:"degree",className:"form-label"},"Degree"),p.a.createElement(d.a,{fluid:!0,search:!0,selection:!0,value:this.state.degree,options:l,allowAdditions:!0,placeholder:"Degree",onChange:function(t,r){return e.changeDegree(r)}})),p.a.createElement("div",{className:"col-md-3"},p.a.createElement("label",{htmlFor:"sem",className:"form-label"},"Sem"),p.a.createElement(d.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("div",{className:"col-md-3"},p.a.createElement("label",{htmlFor:"status",className:"form-label"},"Status"),p.a.createElement(d.a,{fluid:!0,search:!0,selection:!0,value:this.state.status,options:h,allowAdditions:!0,placeholder:"Status",onChange:function(t,r){return e.statusChange(r)}})),p.a.createElement("div",{className:"col-md-3 mt-4 pt-2"},p.a.createElement("button",{className:"btn btn-success",onClick:this.submitHandler},"Submit"))))),this.state.loading&&p.a.createElement("div",{className:"table-responsive",style:{height:"450px"}},p.a.createElement("table",{className:"table table-bordered"},p.a.createElement("thead",{className:"sticky-top text-center bg-success",style:{zIndex:2}},p.a.createElement("tr",null,p.a.createElement("td",{colSpan:12},p.a.createElement("input",{type:"text",className:"form-control rounded-pill",placeholder:"Search...",onChange:function(t){return e.setState({search:t.target.value})}}))),p.a.createElement("tr",null,p.a.createElement("th",null,"Sl. No."),p.a.createElement("th",null,"Exam Date"),p.a.createElement("th",null,"QP Code"),p.a.createElement("th",null,"Subject"),p.a.createElement("th",null,"Qp No."),p.a.createElement("th",null,"Teacher Name"),p.a.createElement("th",null,"View QP"),p.a.createElement("th",null,"View Ans Key"),p.a.createElement("th",null,"View Mod. Form"),p.a.createElement("th",null,"Final Paper Date Time"),p.a.createElement("th",null,"Action"),p.a.createElement("th",null,"Delete?"))),p.a.createElement("tbody",{className:"text-center"},this.state.data.length>0?this.state.data.filter(function(t){return t.fqpcode.toLowerCase().includes(e.state.search.toLowerCase())||t.fsubname.toLowerCase().includes(e.state.search.toLowerCase())||t.fteachcode.toLowerCase().includes(e.state.search.toLowerCase())||t.fteachname.toLowerCase().includes(e.state.search.toLowerCase())}).map(function(t,r){var n="https://moderator-upd.s3.ap-south-1.amazonaws.com/",a=n+t.fmodqpupd,o=n+t.fmodanskey,c=n+t.fmodform;return p.a.createElement("tr",{key:r},p.a.createElement("td",null,r+1),p.a.createElement("td",null,t.fexamdate),p.a.createElement("td",null,t.fqpcode),p.a.createElement("td",{className:"text-left"},t.fsubname),p.a.createElement("td",null,t.fset),p.a.createElement("td",{className:"text-left"},t.fteachcode+" - "+t.fteachname),p.a.createElement("td",null,p.a.createElement("a",{href:a,target:"_blank",rel:"noopener noreferrer"},"View")),p.a.createElement("td",null,p.a.createElement("a",{href:o,target:"_blank",rel:"noopener noreferrer"},"View")),p.a.createElement("td",null,p.a.createElement("a",{href:c,target:"_blank",rel:"noopener noreferrer"},"View")),p.a.createElement("td",null,t.ffinalpaperdate),p.a.createElement("td",null,p.a.createElement("input",{type:"checkbox",disabled:"T"===t.ffinalqpstatus,checked:"T"===t.ffinalpaper,onChange:function(n){return e.checkFinalQPaper(n,r,t)}}),p.a.createElement("p",null,"old"===e.state.type&&"T"===t.ffinalpaper&&"old"===e.state.type&&"T"!==t.fcheckStatus||"T"===t.ffinalqpstatus?"used("+t.ffinalpaperdate+")":"")),p.a.createElement("td",null,p.a.createElement("input",{type:"checkbox",disabled:"T"===t.ffinalqpstatus,checked:"T"===t.fdeleted,onChange:function(n){return e.deleteHandler(n,r,t)}})))}):p.a.createElement("tr",null,p.a.createElement("td",{className:"text-center",colSpan:12},"No Data Found")))))))))}}]),t}(s.Component);t.default=Object(v.b)(function(e){return{univ:e.univ,year:e.loadYearAndMode,boards:e.boaddet,subject:e.boardsubj,degree:e.loadmastersdeg,getData:e.selectFinalQp}},{loadYearAndMode:h.m,getBoardDet:m.k,getBoardSubj:m.l,loadmastersdeg:g.d,selectFinalQp:m.E,saveQPFinalPaper:m.A,showError:y.A})(b)},284:function(e,t,r){"use strict";r.d(t,"c",function(){return i}),r.d(t,"d",function(){return u}),r.d(t,"e",function(){return l}),r.d(t,"b",function(){return s}),r.d(t,"f",function(){return p}),r.d(t,"a",function(){return f}),r.d(t,"g",function(){return d});var n=r(68),a=r(271),o=r(267);function c(){c=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",u=o.asyncIterator||"@@asyncIterator",l=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 g?t:g,c=Object.create(o.prototype),i=new T(n||[]);return a(c,"_invoke",{value:k(e,r,i)}),c}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=p;var d="suspendedStart",h="suspendedYield",m="executing",v="completed",y={};function g(){}function E(){}function b(){}var w={};s(w,i,function(){return this});var x=Object.getPrototypeOf,O=x&&x(x(D([])));O&&O!==r&&n.call(O,i)&&(w=O);var L=b.prototype=g.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,c,i){var u=f(e[a],e,o);if("throw"!==u.type){var l=u.arg,s=l.value;return s&&"object"==typeof s&&n.call(s,"__await")?t.resolve(s.__await).then(function(e){r("next",e,c,i)},function(e){r("throw",e,c,i)}):t.resolve(s).then(function(e){l.value=e,c(l)},function(e){return r("throw",e,c,i)})}i(u.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 k(t,r,n){var a=d;return function(o,c){if(a===m)throw new Error("Generator is already running");if(a===v){if("throw"===o)throw c;return{value:e,done:!0}}for(n.method=o,n.arg=c;;){var i=n.delegate;if(i){var u=N(i,n);if(u){if(u===y)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(a===d)throw a=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);a=m;var l=f(t,r,n);if("normal"===l.type){if(a=n.done?v:h,l.arg===y)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(a=v,n.method="throw",n.arg=l.arg)}}}function N(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,N(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var o=f(a,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,y;var c=o.arg;return c?c.done?(r[t.resultName]=c.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,y):c:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function _(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 A(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(_,this),this.reset(!0)}function D(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 E.prototype=b,a(L,"constructor",{value:b,configurable:!0}),a(b,"constructor",{value:E,configurable:!0}),E.displayName=s(b,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===E||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,s(e,l,"GeneratorFunction")),e.prototype=Object.create(L),e},t.awrap=function(e){return{__await:e}},S(j.prototype),s(j.prototype,u,function(){return this}),t.AsyncIterator=j,t.async=function(e,r,n,a,o){void 0===o&&(o=Promise);var c=new j(p(e,r,n,a),o);return t.isGeneratorFunction(r)?c:c.next().then(function(e){return e.done?e.value:c.next()})},S(L),s(L,l,"Generator"),s(L,i,function(){return this}),s(L,"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=D,T.prototype={constructor:T,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(A),!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 i.type="throw",i.arg=t,r.next=n,a&&(r.method="next",r.arg=e),!!a}for(var o=this.tryEntries.length-1;o>=0;--o){var c=this.tryEntries[o],i=c.completion;if("root"===c.tryLoc)return a("end");if(c.tryLoc<=this.prev){var u=n.call(c,"catchLoc"),l=n.call(c,"finallyLoc");if(u&&l){if(this.prev<c.catchLoc)return a(c.catchLoc,!0);if(this.prev<c.finallyLoc)return a(c.finallyLoc)}else if(u){if(this.prev<c.catchLoc)return a(c.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<c.finallyLoc)return a(c.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 c=o?o.completion:{};return c.type=e,c.arg=t,o?(this.method="next",this.next=o.finallyLoc,y):this.complete(c)},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),y},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),A(r),y}},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;A(r)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:D(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),y}},t}var i=function(){return function(){var e=Object(n.a)(c().mark(function e(t,r){var n,i,u,l,s,p;return c().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=r(),t({type:"SET_LOADER"}),i=n.user.fcollcode?n.user.fcollcode:"",u="",u="051"==n.user.fcuruniv?"loaddeggrpnotif":"loaddeggrpexamcentre",e.next=7,a.a.get("/app.php",{params:{a:u,univcode:n.user.fcuruniv,fcollcode:i}});case 7:l=e.sent,t({type:"UNSET_LOADER"}),"object"!==typeof l.data?(s={header:"Error",content:"Something went wrong"},t(Object(o.A)(s))):-1===l.data.error_code?(p={header:"Error",content:l.data.data.msg},t(Object(o.A)(p))):t({type:"LOAD_DEGGRP_EXAMCENTRE",payload:l.data});case 10:case"end":return e.stop()}},e)}));return function(t,r){return e.apply(this,arguments)}}()},u=function(e){return function(){var t=Object(n.a)(c().mark(function t(r,n){var i,u,l,s;return c().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return i=n(),r({type:"SET_LOADER"}),t.next=4,a.a.get("/app.php",{params:{a:"loadmastersdeg",deggrp:e,univcode:i.user.fcuruniv}});case 4:u=t.sent,r({type:"UNSET_LOADER"}),"object"!==typeof u.data?(l={header:"Error",content:"Something went wrong"},r(Object(o.A)(l))):-1===u.data.error_code?(s={header:"Error",content:u.data.data.msg},r(Object(o.A)(s))):r({type:"LOAD_MASTERS_DEGREE",payload:u.data});case 7:case"end":return t.stop()}},t)}));return function(e,r){return t.apply(this,arguments)}}()},l=function(e){return function(){var t=Object(n.a)(c().mark(function t(r,n){var i,u,l,s;return c().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return i=n(),r({type:"SET_LOADER"}),t.next=4,a.a.get("/app.php",{params:{a:"loadsubrptsem",degree:e,univcode:i.user.fcuruniv}});case 4:u=t.sent,r({type:"UNSET_LOADER"}),"object"!==typeof u.data?(l={header:"Error",content:"Something went wrong"},r(Object(o.A)(l))):-1===u.data.error_code?(s={header:"Error",content:u.data.data.msg},r(Object(o.A)(s))):r({type:"LOAD_SUB_SEMESTER",payload:u.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)(c().mark(function t(r,n){var i,u,l,s;return c().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return i=n(),r({type:"SET_LOADER"}),t.next=4,a.a.post("/app.php?a=loadallexamcentre&univcode="+i.univ.funivcode+"°grp="+e.deggrp,{data:e});case 4:u=t.sent,r({type:"UNSET_LOADER"}),"object"!==typeof u.data?(l={header:"Error",content:"Something went wrong"},r(Object(o.A)(l))):-1===u.data.error_code?(s={header:"Error",content:u.data.data.msg},r(Object(o.A)(s))):r({type:"LOAD_ALL_EXAMCENTRE",payload:u.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)(c().mark(function t(r,n){var i,u,l,s;return c().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return i=n(),r({type:"SET_LOADER"}),t.next=4,a.a.post("/app.php?a=loadtableexamcentre&univcode="+i.univ.funivcode+"°grp="+e.deggrp+"&reportorder="+e.reportorder,{data:e});case 4:u=t.sent,r({type:"UNSET_LOADER"}),"object"!==typeof u.data?(l={header:"Error",content:"Something went wrong"},r(Object(o.A)(l))):-1===u.data.error_code?(s={header:"Error",content:u.data.data.msg},r(Object(o.A)(s))):r({type:"LOAD_TABLE_EXAMCENTRE",payload:u.data});case 7:case"end":return t.stop()}},t)}));return function(e,r){return t.apply(this,arguments)}}()},f=function(e,t){return function(){var r=Object(n.a)(c().mark(function r(n,o){var i,u;return c().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return i=o(),n({type:"SET_LOADER"}),r.next=4,a.a.post("/app.php?a=getVerfyData&univcode="+i.univ.funivcode+"°gp="+e+"&fstatus="+t);case 4:u=r.sent,n({type:"UNSET_LOADER"}),-1===u.data.error_code?n({type:"CLEAR_GET_VERF_NOTI"}):n({type:"GET_VERF_NOTI",payload:u.data});case 7:case"end":return r.stop()}},r)}));return function(e,t){return r.apply(this,arguments)}}()},d=function(e,t,r){return function(){var i=Object(n.a)(c().mark(function n(i,u){var l,s,p,f;return c().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return l=u(),i({type:"SET_LOADER"}),n.next=4,a.a.post("/app.php?a=saveVerifyNotifi&univcode="+l.univ.funivcode+"&findata="+e+"&userid="+t+"&usertype="+r);case 4:s=n.sent,i({type:"UNSET_LOADER"}),0===s.data.error_code?(p={header:"Success",content:s.data.data.msg},i(Object(o.A)(p))):(f={header:"Error",content:s.data.data.msg},i(Object(o.A)(f)));case 7:case"end":return n.stop()}},n)}));return function(e,t){return i.apply(this,arguments)}}()}}}]);
//# sourceMappingURL=239.2e7a1876.chunk.js.map
|