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 : 13.58.110.182
(window.webpackJsonp=window.webpackJsonp||[]).push([[193,307],{1428:function(e,t,r){"use strict";r.r(t);var n=r(3),a=r(0),o=r(68),i=r(100),c=r(101),u=r(103),l=r(102),s=r(104),p=r(2),h=r.n(p),d=r(105),f=r(941),g=r(267),y=r(1377),v=r(949),m=r(1343),E=r(272),w=r(1335),b=r(1337),x=r(1155),O=r(1153),L=r(284),_=r(271);function A(){A=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",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 v?t:v,i=Object.create(o.prototype),c=new R(n||[]);return a(i,"_invoke",{value:j(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 h="suspendedStart",d="suspendedYield",f="executing",g="completed",y={};function v(){}function m(){}function E(){}var w={};l(w,i,function(){return this});var b=Object.getPrototypeOf,x=b&&b(b(C([])));x&&x!==r&&n.call(x,i)&&(w=x);var O=E.prototype=v.prototype=Object.create(w);function L(e){["next","throw","return"].forEach(function(t){l(e,t,function(e){return this._invoke(t,e)})})}function _(e,t){function r(a,o,i,c){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,i,c)},function(e){r("throw",e,i,c)}):t.resolve(s).then(function(e){l.value=e,i(l)},function(e){return r("throw",e,i,c)})}c(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 j(t,r,n){var a=h;return function(o,i){if(a===f)throw new Error("Generator is already running");if(a===g){if("throw"===o)throw i;return{value:e,done:!0}}for(n.method=o,n.arg=i;;){var c=n.delegate;if(c){var u=S(c,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=g,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);a=f;var l=p(t,r,n);if("normal"===l.type){if(a=n.done?g:d,l.arg===y)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(a=g,n.method="throw",n.arg=l.arg)}}}function S(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,S(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=p(a,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,y;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,y):i:(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 T(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function R(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function C(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 m.prototype=E,a(O,"constructor",{value:E,configurable:!0}),a(E,"constructor",{value:m,configurable:!0}),m.displayName=l(E,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,E):(e.__proto__=E,l(e,u,"GeneratorFunction")),e.prototype=Object.create(O),e},t.awrap=function(e){return{__await:e}},L(_.prototype),l(_.prototype,c,function(){return this}),t.AsyncIterator=_,t.async=function(e,r,n,a,o){void 0===o&&(o=Promise);var i=new _(s(e,r,n,a),o);return t.isGeneratorFunction(r)?i:i.next().then(function(e){return e.done?e.value:i.next()})},L(O),l(O,u,"Generator"),l(O,i,function(){return this}),l(O,"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=C,R.prototype={constructor:R,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(T),!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 u=n.call(i,"catchLoc"),l=n.call(i,"finallyLoc");if(u&&l){if(this.prev<i.catchLoc)return a(i.catchLoc,!0);if(this.prev<i.finallyLoc)return a(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return a(i.catchLoc,!0)}else{if(!l)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,y):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),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),T(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;T(r)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:C(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),y}},t}function j(){j=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",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 v?t:v,i=Object.create(o.prototype),c=new R(n||[]);return a(i,"_invoke",{value:A(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 h="suspendedStart",d="suspendedYield",f="executing",g="completed",y={};function v(){}function m(){}function E(){}var w={};l(w,i,function(){return this});var b=Object.getPrototypeOf,x=b&&b(b(C([])));x&&x!==r&&n.call(x,i)&&(w=x);var O=E.prototype=v.prototype=Object.create(w);function L(e){["next","throw","return"].forEach(function(t){l(e,t,function(e){return this._invoke(t,e)})})}function _(e,t){function r(a,o,i,c){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,i,c)},function(e){r("throw",e,i,c)}):t.resolve(s).then(function(e){l.value=e,i(l)},function(e){return r("throw",e,i,c)})}c(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 A(t,r,n){var a=h;return function(o,i){if(a===f)throw new Error("Generator is already running");if(a===g){if("throw"===o)throw i;return{value:e,done:!0}}for(n.method=o,n.arg=i;;){var c=n.delegate;if(c){var u=S(c,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=g,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);a=f;var l=p(t,r,n);if("normal"===l.type){if(a=n.done?g:d,l.arg===y)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(a=g,n.method="throw",n.arg=l.arg)}}}function S(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,S(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=p(a,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,y;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,y):i:(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 T(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function R(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function C(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 m.prototype=E,a(O,"constructor",{value:E,configurable:!0}),a(E,"constructor",{value:m,configurable:!0}),m.displayName=l(E,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,E):(e.__proto__=E,l(e,u,"GeneratorFunction")),e.prototype=Object.create(O),e},t.awrap=function(e){return{__await:e}},L(_.prototype),l(_.prototype,c,function(){return this}),t.AsyncIterator=_,t.async=function(e,r,n,a,o){void 0===o&&(o=Promise);var i=new _(s(e,r,n,a),o);return t.isGeneratorFunction(r)?i:i.next().then(function(e){return e.done?e.value:i.next()})},L(O),l(O,u,"Generator"),l(O,i,function(){return this}),l(O,"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=C,R.prototype={constructor:R,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(T),!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 u=n.call(i,"catchLoc"),l=n.call(i,"finallyLoc");if(u&&l){if(this.prev<i.catchLoc)return a(i.catchLoc,!0);if(this.prev<i.finallyLoc)return a(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return a(i.catchLoc,!0)}else{if(!l)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,y):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),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),T(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;T(r)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:C(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),y}},t}var S=function(e){function t(){var e,r;Object(i.a)(this,t);for(var c=arguments.length,s=new Array(c),p=0;p<c;p++)s[p]=arguments[p];return(r=Object(u.a)(this,(e=Object(l.a)(t)).call.apply(e,[this].concat(s)))).state={deggrp:"",centre:"",degree:"",sem:"",range1:"0",range2:"Z",frmsubmit:!1,selectAllChecked:!1,isAcknowledged:!1,selectedRows:[]},r.componentDidMount=function(){r.props.loaddegreegroup()},r.handleChangeDeggrp=function(){var e=Object(o.a)(j().mark(function e(t,n){return j().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r.setState({deggrp:n.value,frmsubmit:!1}),e.next=3,r.props.loadexamappcentre(n.value);case 3:case"end":return e.stop()}},e)}));return function(t,r){return e.apply(this,arguments)}}(),r.handleChangeCentre=function(){var e=Object(o.a)(j().mark(function e(t,n){return j().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r.setState({centre:n.value,frmsubmit:!1,selectedRows:[]}),e.next=3,r.props.loadexamappdegree(n.value,r.state.deggrp);case 3:case"end":return e.stop()}},e)}));return function(t,r){return e.apply(this,arguments)}}(),r.handleChangeDegree=function(){var e=Object(o.a)(j().mark(function e(t,n){return j().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r.setState({degree:n.value,frmsubmit:!1}),e.next=3,r.props.loadexamappsem(n.value,r.state.deggrp,r.state.centre);case 3:case"end":return e.stop()}},e)}));return function(t,r){return e.apply(this,arguments)}}(),r.handleChangeSem=function(){var e=Object(o.a)(j().mark(function e(t,n){return j().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:r.setState({sem:n.value,frmsubmit:!1});case 1:case"end":return e.stop()}},e)}));return function(t,r){return e.apply(this,arguments)}}(),r.handleChangeRange=function(e,t){var n=t.name,o=t.value;r.setState(Object(a.a)({},n,o))},r.getExmAppDetails=Object(o.a)(j().mark(function e(){var t,n,a,o,i,c;return j().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.centre){e.next=8;break}return n={header:"Error",content:"Select Centre"},r.props.showError(n),e.abrupt("return");case 8:if(""!==r.state.degree){e.next=12;break}return a={header:"Error",content:"Select Degree"},r.props.showError(a),e.abrupt("return");case 12:if(""!==r.state.sem){e.next=16;break}return o={header:"Error",content:"Select Sem"},r.props.showError(o),e.abrupt("return");case 16:if(""!==r.state.range1){e.next=20;break}return i={header:"Error",content:"Select Range From"},r.props.showError(i),e.abrupt("return");case 20:if(""!==r.state.range2){e.next=24;break}return c={header:"Error",content:"Select Range To"},r.props.showError(c),e.abrupt("return");case 24:return e.next=26,r.props.loadexamappdetails(r.state.deggrp,r.state.centre,r.state.degree,r.state.sem,r.state.range1,r.state.range2);case 26:r.setState({frmsubmit:!0,selectedRows:[],selectAllChecked:!1});case 27:case"end":return e.stop()}},e)})),r.handleCancel=function(){r.setState({deggrp:"",centre:"",degree:"",sem:"",range1:"0",range2:"Z",frmsubmit:!1,selectedRows:[],selectAllChecked:!1})},r.handleRowSelect=function(e,t){var a=r.state,o=a.selectedRows;a.selectAllChecked||(r.isRowSelected(e,t)?r.setState({selectedRows:o.filter(function(r){return r.fdegree!==e||r.fcntrcode!==t})}):r.setState({selectedRows:[].concat(Object(n.a)(o),[{fdegree:e,fcntrcode:t}])}))},r.isRowSelected=function(e,t){return r.state.selectedRows.some(function(r){return r.fdegree===e&&r.fcntrcode===t})},r.handleCheckboxChange=function(e,t){var n=t.checked;r.setState({isAcknowledged:n})},r.handleSave=function(){var e=r.state,t=e.selectedRows,n=e.deggrp,a=e.centre,o=e.sem,i=e.range1,c=e.range2,u=e.degree,l=e.isAcknowledged;if(0!==t.length)r.props.saveexamappdetails(t,n,a,o,i,c,u,l);else{r.props.showError({header:"Error",content:"Select at least one row to save"})}},r.handleSelectAllChange=function(){var e=r.state,t=e.selectAllChecked;e.table;r.setState({selectAllChecked:!-t});var n=t?[]:r.props.table.map(function(e){return{fdegree:e.fdegree,fcntrcode:e.fcntrcode}});r.setState({selectedRows:n})},r}return Object(s.a)(t,e),Object(c.a)(t,[{key:"render",value:function(){var e=this,t=[{key:"All",value:"All",text:"All"}],r=this.props.deggrp.map(function(e){return{key:e.fdeggrp,value:e.fdeggrp,text:e.fdescpn}}),a=this.props.degree.map(function(e){return{key:e.fdegree,value:e.fdegree,text:e.fdegree+" - "+e.fdescpn}}),o=[].concat(t,Object(n.a)(a)),i=this.props.centre.map(function(e){return{key:e.fcntrcode,value:e.fcntrcode,text:e.fcntrcode+"-"+e.collegename}}),c=[].concat(t,Object(n.a)(i)),u=this.props.sem.map(function(e){return{key:e.fexamno,value:e.fexamno,text:e.fexamno+" - "+e.fexamname}}),l=[].concat(t,Object(n.a)(u)),s={textAlign:"center"};return h.a.createElement("div",null,h.a.createElement(y.a,{fluid:!0},h.a.createElement(v.a,null,h.a.createElement(y.a.Header,{style:{display:"flex"}},h.a.createElement("h4",null,"Exam App Acknowledgement"),h.a.createElement("div",{className:"ml-auto"},h.a.createElement(m.a,{size:"mini",basic:!0,color:"yellow",icon:"save",content:"Save",onClick:this.handleSave}),h.a.createElement(m.a,{size:"mini",basic:!0,color:"blue",icon:"ban",content:"Clear",onClick:this.handleCancel}),h.a.createElement(f.a,{to:"/dashboard"},h.a.createElement(m.a,{size:"mini",basic:!0,color:"red",content:"Exit",icon:"home"})))),h.a.createElement(E.a,null),h.a.createElement(y.a.Description,{style:{height:"auto"}},h.a.createElement(w.a,null,h.a.createElement(w.a.Group,null,h.a.createElement(w.a.Field,{width:6},h.a.createElement("label",null,"Degree Group"),h.a.createElement(b.a,{fluid:!0,selection:!0,search:!0,value:this.state.deggrp,options:r,name:"deggrp",placeholder:"Select Degree Group",onChange:this.handleChangeDeggrp})),h.a.createElement(w.a.Field,{width:6},h.a.createElement("label",null,"Centre"),h.a.createElement(b.a,{fluid:!0,selection:!0,search:!0,value:this.state.centre,options:c,name:"centre",placeholder:"Select Centre",onChange:this.handleChangeCentre}))),h.a.createElement(w.a.Group,null,h.a.createElement(w.a.Field,{width:6},h.a.createElement("label",null,"Degree"),h.a.createElement(b.a,{fluid:!0,selection:!0,search:!0,value:this.state.degree,options:o,name:"degree",placeholder:"Select Degree",onChange:this.handleChangeDegree})),h.a.createElement(w.a.Field,{width:6},h.a.createElement("label",null,"Sem/Year"),h.a.createElement(b.a,{fluid:!0,selection:!0,search:!0,value:this.state.sem,options:l,name:"sem",placeholder:"Select Sem",onChange:this.handleChangeSem}))),h.a.createElement(w.a.Group,null,h.a.createElement(w.a.Field,{width:3},h.a.createElement("label",null,"Reg.No. Range"),h.a.createElement(x.a,{fluid:!0,value:this.state.range1,name:"range1",placeholder:"Enter Value",onChange:this.handleChangeRange,style:s})),h.a.createElement(w.a.Field,{width:3,style:{marginTop:"23px"}},h.a.createElement(x.a,{fluid:!0,value:this.state.range2,name:"range2",placeholder:"Enter Value",onChange:this.handleChangeRange,style:s})),h.a.createElement(w.a.Field,{style:{display:"flex",alignItems:"center"}},h.a.createElement(O.a,{style:{width:"20px",height:"20px"},checked:this.state.isAcknowledged,onChange:this.handleCheckboxChange}),h.a.createElement("label",null,"Acknowledgement For Previous Year Students ?"))),h.a.createElement(w.a.Group,null,h.a.createElement(w.a.Field,null,h.a.createElement(m.a,{style:{marginTop:"23px"},basic:!0,color:"blue",onClick:this.getExmAppDetails,content:"View"})))),this.state.frmsubmit&&h.a.createElement("div",{style:{overflowY:"scroll",maxHeight:"700px"}},h.a.createElement("table",{style:{width:"100%",border:"1px solid"}},h.a.createElement("thead",{style:{backgroundColor:"#1e7f91",color:"white",height:"40px",position:"sticky",top:0,zIndex:1}},h.a.createElement("tr",null,h.a.createElement("th",{style:{borderBottom:"1px solid",borderRight:"1px solid",textAlign:"center"}},"Sl. No."),h.a.createElement("th",{style:{borderBottom:"1px solid",borderRight:"1px solid",textAlign:"center"}},"Centre Code"),h.a.createElement("th",{style:{borderBottom:"1px solid",borderRight:"1px solid",textAlign:"center"}},"Centre Name"),h.a.createElement("th",{style:{borderBottom:"1px solid",borderRight:"1px solid",textAlign:"center"}},"Degree"),h.a.createElement("th",{style:{borderBottom:"1px solid",borderRight:"1px solid",textAlign:"center"}},"Action",h.a.createElement("br",null),h.a.createElement("input",{type:"checkbox",onChange:this.handleSelectAllChange,checked:this.state.selectAllChecked,style:{width:"18px",height:"18px"}})))),h.a.createElement("tbody",null,this.props.table.map(function(t,r){return h.a.createElement("tr",{key:r},h.a.createElement("td",{style:{border:"1px solid",textAlign:"center",height:"30px"}},r+1),h.a.createElement("td",{style:{border:"1px solid",textAlign:"center",height:"30px"}},t.fcntrcode),h.a.createElement("td",{style:{border:"1px solid",textAlign:"center",height:"30px"}},t.collegename),h.a.createElement("td",{style:{borderBottom:"1px solid",borderRight:"1px solid",textAlign:"center",height:"30px",paddingLeft:"10px"}},t.fdegree,"(",t.total_count,")"),h.a.createElement("td",{style:{borderBottom:"1px solid",borderRight:"1px solid",textAlign:"center",height:"30px",paddingLeft:"10px"}},h.a.createElement("input",{type:"checkbox",onChange:function(){return e.handleRowSelect(t.fdegree,t.fcntrcode)},checked:e.state.selectAllChecked||e.isRowSelected(t.fdegree,t.fcntrcode),style:{width:"18px",height:"18px"}})))}))))))))}}]),t}(p.Component);t.default=Object(d.b)(function(e){return{deggrp:e.deggrpexamcentre,centre:e.loadexamappcentre,degree:e.loadexamappdegree,sem:e.loadexamappsem,table:e.loadexamappdetails,collcode:e.user.fuserid,univcode:e.univ.funivcode,userid:e.user.fuserid,usertype:e.user.fcurtype}},{showError:g.A,loaddegreegroup:L.c,loadexamappcentre:function(e){return function(){var t=Object(o.a)(A().mark(function t(r,n){var a,o,i,c;return A().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return a=n(),r({type:"SET_LOADER"}),t.next=4,_.a.get("/app.php?a=loadexamappcentre&univcode="+a.univ.funivcode+"°grp="+e);case 4:o=t.sent,r({type:"UNSET_LOADER"}),"object"!==typeof o.data?(i={header:"Error",content:"Something went wrong"},r(Object(g.A)(i))):-1==o.data.error_code?(c={header:"Error",content:o.data.data.msg},r(Object(g.A)(c))):r({type:"GET_EXM_CENTRE_DATA",payload:o.data});case 7:case"end":return t.stop()}},t)}));return function(e,r){return t.apply(this,arguments)}}()},loadexamappdegree:function(e,t){return function(){var r=Object(o.a)(A().mark(function r(n,a){var o,i,c,u;return A().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return o=a(),n({type:"SET_LOADER"}),r.next=4,_.a.get("/app.php?a=loadexamappdegree&univcode="+o.univ.funivcode+"¢re="+e+"°grp="+t);case 4:i=r.sent,n({type:"UNSET_LOADER"}),"object"!==typeof i.data?(c={header:"Error",content:"Something went wrong"},n(Object(g.A)(c))):-1==i.data.error_code?(u={header:"Error",content:i.data.data.msg},n(Object(g.A)(u))):n({type:"GET_EXM_DEGREE_DATA",payload:i.data});case 7:case"end":return r.stop()}},r)}));return function(e,t){return r.apply(this,arguments)}}()},loadexamappsem:function(e,t,r){return function(){var n=Object(o.a)(A().mark(function n(a,o){var i,c,u,l;return A().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return i=o(),a({type:"SET_LOADER"}),n.next=4,_.a.get("/app.php?a=loadexamappsem&univcode="+i.univ.funivcode+"°ree="+e+"°grp="+t+"¢re="+r);case 4:c=n.sent,a({type:"UNSET_LOADER"}),"object"!==typeof c.data?(u={header:"Error",content:"Something went wrong"},a(Object(g.A)(u))):-1==c.data.error_code?(l={header:"Error",content:c.data.data.msg},a(Object(g.A)(l))):a({type:"GET_EXM_SEM_DATA",payload:c.data});case 7:case"end":return n.stop()}},n)}));return function(e,t){return n.apply(this,arguments)}}()},loadexamappdetails:function(e,t,r,n,a,i){return function(){var c=Object(o.a)(A().mark(function o(c,u){var l,s,p,h;return A().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return l=u(),c({type:"SET_LOADER"}),o.next=4,_.a.get("/app.php?a=loadexamappdetails&univcode="+l.univ.funivcode+"°grp="+e+"¢re="+t+"°ree="+r+"&sem="+n+"&range1="+a+"&range2="+i);case 4:s=o.sent,c({type:"UNSET_LOADER"}),"object"!==typeof s.data?(p={header:"Error",content:"Something went wrong"},c(Object(g.A)(p))):-1==s.data.error_code?(h={header:"Error",content:s.data.data.msg},c({type:"CLEAR_EXM_DET_DATA",payload:s.data}),c(Object(g.A)(h))):c({type:"GET_EXM_DET_DATA",payload:s.data});case 7:case"end":return o.stop()}},o)}));return function(e,t){return c.apply(this,arguments)}}()},saveexamappdetails:function(e,t,r,n,a,i,c,u){return function(){var l=Object(o.a)(A().mark(function o(l,s){var p,h,d,f;return A().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return p=s(),l({type:"SET_LOADER"}),o.next=4,_.a.post("/app.php?a=saveexamappdetails&univcode="+p.univ.funivcode+"&selectedRows="+JSON.stringify(e)+"°grp="+t+"¢re="+r+"&sem="+n+"&range1="+a+"&range2="+i+"°ree="+c+"&isAcknowledged="+u);case 4:h=o.sent,l({type:"UNSET_LOADER"}),"object"!==typeof h.data?(d={header:"Error",content:"Something went wrong"},l(Object(g.A)(d))):-1==h.data.error_code?(f={header:"Error",content:h.data.data.msg},l(Object(g.A)(f))):l({type:"GET_EXM_SEM_DATA",payload:h.data});case 7:case"end":return o.stop()}},o)}));return function(e,t){return l.apply(this,arguments)}}()}})(S)},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),u=r.n(c),l=r(349),s=r(613),p=r(611),h=r(269);function d(e){var t=e.children,r=e.className,n=e.clearing,o=e.content,c=e.fitted,f=e.hidden,g=e.horizontal,y=e.inverted,v=e.section,m=e.vertical,E=i()("ui",Object(l.a)(n,"clearing"),Object(l.a)(c,"fitted"),Object(l.a)(f,"hidden"),Object(l.a)(g,"horizontal"),Object(l.a)(y,"inverted"),Object(l.a)(v,"section"),Object(l.a)(m,"vertical"),"divider",r),w=Object(s.a)(d,e),b=Object(p.a)(d,e);return u.a.createElement(b,a()({},w,{className:E}),h.a.isNil(t)?o:t)}d.handledProps=["as","children","className","clearing","content","fitted","hidden","horizontal","inverted","section","vertical"],d.propTypes={},t.a=d},284:function(e,t,r){"use strict";r.d(t,"c",function(){return c}),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 h}),r.d(t,"g",function(){return d});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",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,i=Object.create(o.prototype),c=new R(n||[]);return a(i,"_invoke",{value:j(e,r,c)}),i}function h(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",f="suspendedYield",g="executing",y="completed",v={};function m(){}function E(){}function w(){}var b={};s(b,c,function(){return this});var x=Object.getPrototypeOf,O=x&&x(x(C([])));O&&O!==r&&n.call(O,c)&&(b=O);var L=w.prototype=m.prototype=Object.create(b);function _(e){["next","throw","return"].forEach(function(t){s(e,t,function(e){return this._invoke(t,e)})})}function A(e,t){function r(a,o,i,c){var u=h(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,i,c)},function(e){r("throw",e,i,c)}):t.resolve(s).then(function(e){l.value=e,i(l)},function(e){return r("throw",e,i,c)})}c(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 j(t,r,n){var a=d;return function(o,i){if(a===g)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 u=S(c,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===d)throw a=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);a=g;var l=h(t,r,n);if("normal"===l.type){if(a=n.done?y:f,l.arg===v)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(a=y,n.method="throw",n.arg=l.arg)}}}function S(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,S(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=h(a,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,v;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,v):i:(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 T(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function R(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function C(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 E.prototype=w,a(L,"constructor",{value:w,configurable:!0}),a(w,"constructor",{value:E,configurable:!0}),E.displayName=s(w,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,w):(e.__proto__=w,s(e,l,"GeneratorFunction")),e.prototype=Object.create(L),e},t.awrap=function(e){return{__await:e}},_(A.prototype),s(A.prototype,u,function(){return this}),t.AsyncIterator=A,t.async=function(e,r,n,a,o){void 0===o&&(o=Promise);var i=new A(p(e,r,n,a),o);return t.isGeneratorFunction(r)?i:i.next().then(function(e){return e.done?e.value:i.next()})},_(L),s(L,l,"Generator"),s(L,c,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=C,R.prototype={constructor:R,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(T),!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 u=n.call(i,"catchLoc"),l=n.call(i,"finallyLoc");if(u&&l){if(this.prev<i.catchLoc)return a(i.catchLoc,!0);if(this.prev<i.finallyLoc)return a(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return a(i.catchLoc,!0)}else{if(!l)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,v):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),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),T(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;T(r)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:C(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),v}},t}var c=function(){return function(){var e=Object(n.a)(i().mark(function e(t,r){var n,c,u,l,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:"",u="",u="051"==n.user.fcuruniv?"loaddeggrpnotif":"loaddeggrpexamcentre",e.next=7,a.a.get("/app.php",{params:{a:u,univcode:n.user.fcuruniv,fcollcode:c}});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)(i().mark(function t(r,n){var c,u,l,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: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)(i().mark(function t(r,n){var c,u,l,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: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)(i().mark(function t(r,n){var c,u,l,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: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)(i().mark(function t(r,n){var c,u,l,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: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)}}()},h=function(e,t){return function(){var r=Object(n.a)(i().mark(function r(n,o){var c,u;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: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 c=Object(n.a)(i().mark(function n(c,u){var l,s,p,h;return i().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return l=u(),c({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,c({type:"UNSET_LOADER"}),0===s.data.error_code?(p={header:"Success",content:s.data.data.msg},c(Object(o.A)(p))):(h={header:"Error",content:s.data.data.msg},c(Object(o.A)(h)));case 7:case"end":return n.stop()}},n)}));return function(e,t){return c.apply(this,arguments)}}()}}}]);
//# sourceMappingURL=193.273cd664.chunk.js.map
|