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.139.86.74
(window.webpackJsonp=window.webpackJsonp||[]).push([[175,307],{1219:function(e,t,r){"use strict";r.r(t);var n=r(0),a=r(1),o=r(68),c=r(100),i=r(101),u=r(103),l=r(102),s=r(104),p=r(2),f=r.n(p),h=r(941),d=r(1377),g=r(1343),v=r(272),y=r(1335),m=r(1337),b=r(105),w=r(267),E=(r(274),r(273)),j=r(336);function x(){x=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:C(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",h="suspendedYield",d="executing",g="completed",v={};function y(){}function m(){}function b(){}var w={};l(w,c,function(){return this});var E=Object.getPrototypeOf,j=E&&E(E(N([])));j&&j!==r&&n.call(j,c)&&(w=j);var L=b.prototype=y.prototype=Object.create(w);function O(e){["next","throw","return"].forEach(function(t){l(e,t,function(e){return this._invoke(t,e)})})}function S(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 C(t,r,n){var a=f;return function(o,c){if(a===d)throw new Error("Generator is already running");if(a===g){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=_(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=g,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);a=d;var l=p(t,r,n);if("normal"===l.type){if(a=n.done?g:h,l.arg===v)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(a=g,n.method="throw",n.arg=l.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")),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 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 A(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function N(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 m.prototype=b,a(L,"constructor",{value:b,configurable:!0}),a(b,"constructor",{value:m,configurable:!0}),m.displayName=l(b,u,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===m||"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}},O(S.prototype),l(S.prototype,i,function(){return this}),t.AsyncIterator=S,t.async=function(e,r,n,a,o){void 0===o&&(o=Promise);var c=new S(s(e,r,n,a),o);return t.isGeneratorFunction(r)?c:c.next().then(function(e){return e.done?e.value:c.next()})},O(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=N,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:N(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),v}},t}var L=function(e){function t(){var e,r;Object(c.a)(this,t);for(var i=arguments.length,s=new Array(i),p=0;p<i;p++)s[p]=arguments[p];return(r=Object(u.a)(this,(e=Object(l.a)(t)).call.apply(e,[this].concat(s)))).state={deggrp:"",college:[],degree:[],subject:[],centre:""},r.handleChangedeggrp=function(){var e=Object(o.a)(x().mark(function e(t,n){return x().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r.setState({deggrp:n.value});case 2:return e.next=4,r.props.getDegreeList(r.state.deggrp);case 4:case"end":return e.stop()}},e)}));return function(t,r){return e.apply(this,arguments)}}(),r.handleChangedegree=function(){var e=Object(o.a)(x().mark(function e(t,n){return x().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r.setState({degree:n.value});case 2:return e.next=4,r.props.getCollegeList(r.state.degree);case 4:case"end":return e.stop()}},e)}));return function(t,r){return e.apply(this,arguments)}}(),r.handleChangecollege=function(){var e=Object(o.a)(x().mark(function e(t,n){return x().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r.setState({college:n.value});case 2:return e.next=4,r.props.getSubjectList(r.state);case 4:case"end":return e.stop()}},e)}));return function(t,r){return e.apply(this,arguments)}}(),r.handleChangeSubject=function(){var e=Object(o.a)(x().mark(function e(t,n){return x().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r.setState({subject:n.value});case 2:return e.next=4,r.props.getCentreCode();case 4:case"end":return e.stop()}},e)}));return function(t,r){return e.apply(this,arguments)}}(),r.handleChangeCentre=function(){var e=Object(o.a)(x().mark(function e(t,n){return x().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r.setState({centre:n.value});case 2:return e.next=4,r.props.getCentreCode();case 4:case"end":return e.stop()}},e)}));return function(t,r){return e.apply(this,arguments)}}(),r.handleCancel=Object(o.a)(x().mark(function e(){return x().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:r.setState({deggrp:"",college:[],degree:[],subject:[],centre:""});case 1:case"end":return e.stop()}},e)})),r.handleSubmit=Object(o.a)(x().mark(function e(){var t,n,a,o,c;return x().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(""!=r.state.deggrp){e.next=4;break}return t={header:"Error",content:"Select Degree Group"},r.props.showError(t),e.abrupt("return");case 4:if(""!=r.state.degree){e.next=8;break}return n={header:"Error",content:"Select degree"},r.props.showError(n),e.abrupt("return");case 8:if(""!=r.state.college){e.next=12;break}return a={header:"Error",content:"Select College"},r.props.showError(a),e.abrupt("return");case 12:if(""!=r.state.subject){e.next=16;break}return o={header:"Error",content:"Select Subject"},r.props.showError(o),e.abrupt("return");case 16:if(""!=r.state.centre){e.next=20;break}return c={header:"Error",content:"Select Centre Code"},r.props.showError(c),e.abrupt("return");case 20:return e.next=22,r.props.savePracticalExamCentre(r.state);case 22:case"end":return e.stop()}},e)})),r.changecenter=function(e,t,o){var c;c=Object(a.a)({},t,Object(n.a)({},e.name,e.value)),r.props.changecenterpractical(c,o)},r.handleSave=Object(o.a)(x().mark(function e(){var t,n,a,o;return x().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(""!=r.state.degree){e.next=4;break}return t={header:"Error",content:"Select degree"},r.props.showError(t),e.abrupt("return");case 4:if(0!=r.state.table){e.next=8;break}return n={header:"Error",content:"Invalid Save"},r.props.showError(n),e.abrupt("return");case 8:if(a=r.props.practicalTable,!(a.filter(function(e,t){return""==e.fcentre}).length>0)){e.next=16;break}return o={header:"Error",content:"Fill Details Before saving. "},r.props.showError(o),e.abrupt("return");case 16:return e.next=18,r.props.updatepracticalcenter(a,r.state.degree,r.state.deggrpfrom,r.state.subfrom,r.state.subto);case 18:r.handleCancel();case 19:case"end":return e.stop()}},e)})),r.renderHeader=function(){return f.a.createElement(d.a.Header,{style:{display:"flex"}},f.a.createElement("h3",null,"Set Practical Exam Center"),f.a.createElement("div",{className:"ml-auto"},f.a.createElement(g.a,{basic:!0,color:"black",icon:"ban",content:"Cancel",onClick:r.handleCancel}),f.a.createElement(h.a,{to:"/dashboard"},f.a.createElement(g.a,{basic:!0,color:"red",content:"Exit",icon:"home"}))))},r}return Object(s.a)(t,e),Object(i.a)(t,[{key:"componentDidMount",value:function(){this.props.loadrvrtdeggrp()}},{key:"render",value:function(){var e=this.state,t=e.centre,r=e.deggrp,n=e.degree,a=e.college,o=e.subject,c=Object(E.i)(),i=this.props.degreeList.map(function(e){return{value:e.fdegree,text:"".concat(e.fdegree,"- ").concat(e.fdescpn)}}),u=this.props.getrvrtdeggrp.map(function(e){return{key:e.fdeggrp,value:e.fdeggrp,text:e.fdescpn}}),l=this.props.getcollegelistpractical.map(function(e){return{key:e.fcollcode,value:e.fcollcode,text:e.fcollname}}),s=this.props.getsubjectlistpractical.map(function(e){return{key:e.fcsubcode,value:e.fcsubcode,text:e.fsubname}}),p=this.props.getcentrecodepractical.map(function(e){return{key:e.fcollcode,value:e.fcollcode,text:e.fcollname}});return f.a.createElement("div",{className:"animated fadeIn"},f.a.createElement(d.a,{fluid:!0},f.a.createElement(d.a.Content,null,this.renderHeader(),f.a.createElement(v.a,null),f.a.createElement(d.a.Description,{style:{overflowY:"auto",overflowX:"hidden",height:"".concat(c,"px")}},f.a.createElement("div",{className:"col-md-9"},f.a.createElement(y.a,null,f.a.createElement("div",{className:"col-md-8 col-lg-8 col-sm-12"},f.a.createElement(y.a.Group,null,f.a.createElement(y.a.Field,{width:16},f.a.createElement("label",null,"Degree Group"),f.a.createElement(m.a,{fluid:!0,search:!0,selection:!0,onChange:this.handleChangedeggrp,value:r,name:"deggrp",placeholder:"Degree Group",options:u}))),f.a.createElement(y.a.Field,{width:16},f.a.createElement("label",null,"Degree Range"),f.a.createElement(m.a,{placeholder:"Degree range",name:"degree",value:n,multiple:!0,selection:!0,search:!0,options:i,onChange:this.handleChangedegree})),f.a.createElement(y.a.Group,null,f.a.createElement(y.a.Field,{width:16},f.a.createElement("label",null,"College Range"),f.a.createElement(m.a,{placeholder:"College Range",name:"college",value:a,multiple:!0,selection:!0,search:!0,options:l,onChange:this.handleChangecollege}))),f.a.createElement(y.a.Group,null,f.a.createElement(y.a.Field,{width:16},f.a.createElement("label",null,"Subject Range"),f.a.createElement(m.a,{placeholder:"Subject Range",name:"degree",value:o,multiple:!0,selection:!0,search:!0,options:s,onChange:this.handleChangeSubject}))),f.a.createElement(y.a.Group,null,f.a.createElement(y.a.Field,{width:16},f.a.createElement("label",null,"Centre Code"),f.a.createElement(m.a,{placeholder:"Subject Range",name:"centre",value:t,selection:!0,search:!0,options:p,onChange:this.handleChangeCentre})))),f.a.createElement(g.a,{color:"blue",onClick:this.handleSubmit},"Save"),f.a.createElement("br",null)))))))}}]),t}(p.Component);t.default=Object(b.b)(function(e){return{degreelist:e.resultStatsDegList,collegelist:e.resultStatsClgList,user:e.user,degreeList:e.studyDegree,practicalTable:e.practicalCenter,getrvrtdeggrp:e.getrvrtdeggrp,getcollegelistpractical:e.getcollegelistpractical,getsubjectlistpractical:e.getsubjectlistpractical,getcentrecodepractical:e.getcentrecodepractical}},{getDegreeList:j.d,getpracticalcenters:j.f,changecenterpractical:j.a,showError:w.A,updatepracticalcenter:j.i,loadrvrtdeggrp:j.g,getCollegeList:j.c,getSubjectList:j.e,getCentreCode:j.b,savePracticalExamCentre:j.h})(L)},272:function(e,t,r){"use strict";var n=r(270),a=r.n(n),o=r(268),c=r.n(o),i=r(2),u=r.n(i),l=r(349),s=r(613),p=r(611),f=r(269);function h(e){var t=e.children,r=e.className,n=e.clearing,o=e.content,i=e.fitted,d=e.hidden,g=e.horizontal,v=e.inverted,y=e.section,m=e.vertical,b=c()("ui",Object(l.a)(n,"clearing"),Object(l.a)(i,"fitted"),Object(l.a)(d,"hidden"),Object(l.a)(g,"horizontal"),Object(l.a)(v,"inverted"),Object(l.a)(y,"section"),Object(l.a)(m,"vertical"),"divider",r),w=Object(s.a)(h,e),E=Object(p.a)(h,e);return u.a.createElement(E,a()({},w,{className:b}),f.a.isNil(t)?o:t)}h.handledProps=["as","children","className","clearing","content","fitted","hidden","horizontal","inverted","section","vertical"],h.propTypes={},t.a=h},336:function(e,t,r){"use strict";r.d(t,"g",function(){return i}),r.d(t,"d",function(){return u}),r.d(t,"f",function(){return l}),r.d(t,"a",function(){return s}),r.d(t,"i",function(){return p}),r.d(t,"c",function(){return f}),r.d(t,"e",function(){return h}),r.d(t,"b",function(){return d}),r.d(t,"h",function(){return g});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 m?t:m,c=Object.create(o.prototype),i=new T(n||[]);return a(c,"_invoke",{value:C(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 h="suspendedStart",d="suspendedYield",g="executing",v="completed",y={};function m(){}function b(){}function w(){}var E={};s(E,i,function(){return this});var j=Object.getPrototypeOf,x=j&&j(j(N([])));x&&x!==r&&n.call(x,i)&&(E=x);var L=w.prototype=m.prototype=Object.create(E);function O(e){["next","throw","return"].forEach(function(t){s(e,t,function(e){return this._invoke(t,e)})})}function S(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 C(t,r,n){var a=h;return function(o,c){if(a===g)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=_(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===h)throw a=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);a=g;var l=f(t,r,n);if("normal"===l.type){if(a=n.done?v:d,l.arg===y)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(a=v,n.method="throw",n.arg=l.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")),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 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 A(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function N(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 b.prototype=w,a(L,"constructor",{value:w,configurable:!0}),a(w,"constructor",{value:b,configurable:!0}),b.displayName=s(w,l,"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,w):(e.__proto__=w,s(e,l,"GeneratorFunction")),e.prototype=Object.create(L),e},t.awrap=function(e){return{__await:e}},O(S.prototype),s(S.prototype,u,function(){return this}),t.AsyncIterator=S,t.async=function(e,r,n,a,o){void 0===o&&(o=Promise);var c=new S(p(e,r,n,a),o);return t.isGeneratorFunction(r)?c:c.next().then(function(e){return e.done?e.value:c.next()})},O(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=N,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:N(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;return c().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=r(),t({type:"SET_LOADER"}),e.next=4,a.a.get("/app.php",{params:{a:"getdeggrprvrt",univcode:n.user.fcuruniv}});case 4:i=e.sent,t({type:"UNSET_LOADER"}),"object"!==typeof i.data?(u={header:"Error",content:"Something went wrong"},t(Object(o.A)(u))):-1===i.data.error_code?(l={header:"Error",content:i.data.data.msg},t(Object(o.A)(l))):t({type:"RVRT_DEGGRP",payload:i.data});case 7: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(),t.next=3,a.a.get("app.php?a=PracticalCenterDegreeList&univcode="+i.univ.funivcode+"°grp="+e);case 3:"object"!==typeof(u=t.sent).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:"ALL_DEGREE_LIST",payload:u.data});case 5:case"end":return t.stop()}},t)}));return function(e,r){return t.apply(this,arguments)}}()},l=function(e,t,r,i,u,l,s){return function(){var p=Object(n.a)(c().mark(function n(p,f){var h,d,g,v;return c().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return h=f(),n.next=3,a.a.get("app.php?a=PracticalCenterData&univcode="+h.univ.funivcode+"&fcollcode="+h.user.fcollcode+"°grpfrom="+r+"°grpto="+i+"&subfrom="+e+"&subto="+t+"°ree="+u+"&clgfrom="+l+"&clgto="+s);case 3:"object"!==typeof(d=n.sent).data?(g={header:"Error",content:"Something went wrong"},p(Object(o.A)(g))):-1===d.data.error_code?(v={header:"Error",content:d.data.data.msg},p(Object(o.A)(v))):p({type:"PRACTICAL_CENTERS",payload:d.data});case 5:case"end":return n.stop()}},n)}));return function(e,t){return p.apply(this,arguments)}}()},s=function(e,t){return{type:"PRACTICAL_CENTERS_CHANGE",payload:{el:e,i:t}}},p=function(e,t,r,i,u){return function(){var l=Object(n.a)(c().mark(function n(l,s){var p,f,h,d,g;return c().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return p=s(),l({type:"SET_LOADER"}),n.next=4,a.a.post("/app.php?a=updatepracticalcenter&univcode="+p.univ.funivcode,{data:{fdeggrp:r,univcode:p.univ.funivcode,updcntr:e,subfrom:i,subto:u,user:p.user,deg:t}});case 4:f=n.sent,l({type:"UNSET_LOADER"}),"object"!==typeof f.data?l({type:"SET_ERROR",payload:{error_code:-1,data:{msg:"Something went wrong"},status:"failure"}}):-1===f.data.error_code?(h={header:"Error",content:f.data.data.msg},l(Object(o.A)(h))):0===f.data.error_code?(d={header:"Success",content:f.data.data.msg},l(Object(o.A)(d))):(g={header:"Error",content:"Something went wrong"},l(Object(o.A)(g)));case 7:case"end":return n.stop()}},n)}));return function(e,t){return l.apply(this,arguments)}}()},f=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(),t.next=3,a.a.get("/app.php",{params:{a:"PracticalCenterCollegeList",univcode:i.user.fcuruniv,degree:e}});case 3:"object"!==typeof(u=t.sent).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:"ALL_COLLEGE_LIST",payload:u.data});case 5:case"end":return t.stop()}},t)}));return function(e,r){return t.apply(this,arguments)}}()},h=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(),t.next=3,a.a.get("/app.php",{params:{a:"PracticalCenterSubjectList",univcode:i.user.fcuruniv,degree:e.degree,college:e.college}});case 3:"object"!==typeof(u=t.sent).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:"ALL_SUBJECT_LIST",payload:u.data});case 5:case"end":return t.stop()}},t)}));return function(e,r){return t.apply(this,arguments)}}()},d=function(e){return function(){var e=Object(n.a)(c().mark(function e(t,r){var n,i,u,l;return c().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=r(),e.next=3,a.a.get("/app.php",{params:{a:"PracticalCenterCodeList",univcode:n.user.fcuruniv}});case 3:"object"!==typeof(i=e.sent).data?(u={header:"Error",content:"Something went wrong"},t(Object(o.A)(u))):-1===i.data.error_code?(l={header:"Error",content:i.data.data.msg},t(Object(o.A)(l))):t({type:"ALL_CENTRE_LIST",payload:i.data});case 5:case"end":return e.stop()}},e)}));return function(t,r){return e.apply(this,arguments)}}()},g=function(e){return function(){var t=Object(n.a)(c().mark(function t(r,n){var i,u,l,s,p;return c().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return i=n(),t.next=3,a.a.get("/app.php",{params:{a:"savePracticalExamCentre",univcode:i.user.fcuruniv,deg:e.degree,sub:e.subject,cen:e.centre,col:e.college}});case 3:"object"!==typeof(u=t.sent).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))):(p={header:"Success",content:u.data.data.msg},r(Object(o.A)(p)));case 5:case"end":return t.stop()}},t)}));return function(e,r){return t.apply(this,arguments)}}()}}}]);
//# sourceMappingURL=175.4653e3f7.chunk.js.map
|