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.223.239.65
(window.webpackJsonp=window.webpackJsonp||[]).push([[255,307],{1419:function(e,t,r){"use strict";r.r(t);var n=r(0),a=r(3),o=r(68),c=r(100),i=r(101),s=r(103),u=r(102),l=r(104),p=r(2),d=r.n(p),h=r(941),f=r(105),m=r(267),v=r(1377),y=r(949),g=r(1343),b=r(272),E=r(1335),w=r(1337),x=r(271);function O(){O=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,a=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},c=o.iterator||"@@iterator",i=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function u(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,r){return e[t]=r}}function l(e,t,r,n){var o=t&&t.prototype instanceof y?t:y,c=Object.create(o.prototype),i=new D(n||[]);return a(c,"_invoke",{value:A(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=l;var d="suspendedStart",h="suspendedYield",f="executing",m="completed",v={};function y(){}function g(){}function b(){}var E={};u(E,c,function(){return this});var w=Object.getPrototypeOf,x=w&&w(w(N([])));x&&x!==r&&n.call(x,c)&&(E=x);var j=b.prototype=y.prototype=Object.create(E);function S(e){["next","throw","return"].forEach(function(t){u(e,t,function(e){return this._invoke(t,e)})})}function L(e,t){function r(a,o,c,i){var s=p(e[a],e,o);if("throw"!==s.type){var u=s.arg,l=u.value;return l&&"object"==typeof l&&n.call(l,"__await")?t.resolve(l.__await).then(function(e){r("next",e,c,i)},function(e){r("throw",e,c,i)}):t.resolve(l).then(function(e){u.value=e,c(u)},function(e){return r("throw",e,c,i)})}i(s.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=d;return function(o,c){if(a===f)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 s=_(i,n);if(s){if(s===v)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(a===d)throw a=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);a=f;var u=p(t,r,n);if("normal"===u.type){if(a=n.done?m:h,u.arg===v)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(a=m,n.method="throw",n.arg=u.arg)}}}function _(t,r){var n=r.method,a=t.iterator[n];if(a===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,_(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),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 T(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 k(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function D(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(T,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 g.prototype=b,a(j,"constructor",{value:b,configurable:!0}),a(b,"constructor",{value:g,configurable:!0}),g.displayName=u(b,s,"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,u(e,s,"GeneratorFunction")),e.prototype=Object.create(j),e},t.awrap=function(e){return{__await:e}},S(L.prototype),u(L.prototype,i,function(){return this}),t.AsyncIterator=L,t.async=function(e,r,n,a,o){void 0===o&&(o=Promise);var c=new L(l(e,r,n,a),o);return t.isGeneratorFunction(r)?c:c.next().then(function(e){return e.done?e.value:c.next()})},S(j),u(j,s,"Generator"),u(j,c,function(){return this}),u(j,"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,D.prototype={constructor:D,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(k),!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 s=n.call(c,"catchLoc"),u=n.call(c,"finallyLoc");if(s&&u){if(this.prev<c.catchLoc)return a(c.catchLoc,!0);if(this.prev<c.finallyLoc)return a(c.finallyLoc)}else if(s){if(this.prev<c.catchLoc)return a(c.catchLoc,!0)}else{if(!u)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),k(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;k(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}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:{},c=o.iterator||"@@iterator",i=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function u(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,r){return e[t]=r}}function l(e,t,r,n){var o=t&&t.prototype instanceof y?t:y,c=Object.create(o.prototype),i=new D(n||[]);return a(c,"_invoke",{value:A(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=l;var d="suspendedStart",h="suspendedYield",f="executing",m="completed",v={};function y(){}function g(){}function b(){}var E={};u(E,c,function(){return this});var w=Object.getPrototypeOf,x=w&&w(w(N([])));x&&x!==r&&n.call(x,c)&&(E=x);var O=b.prototype=y.prototype=Object.create(E);function S(e){["next","throw","return"].forEach(function(t){u(e,t,function(e){return this._invoke(t,e)})})}function L(e,t){function r(a,o,c,i){var s=p(e[a],e,o);if("throw"!==s.type){var u=s.arg,l=u.value;return l&&"object"==typeof l&&n.call(l,"__await")?t.resolve(l.__await).then(function(e){r("next",e,c,i)},function(e){r("throw",e,c,i)}):t.resolve(l).then(function(e){u.value=e,c(u)},function(e){return r("throw",e,c,i)})}i(s.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=d;return function(o,c){if(a===f)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 s=_(i,n);if(s){if(s===v)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(a===d)throw a=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);a=f;var u=p(t,r,n);if("normal"===u.type){if(a=n.done?m:h,u.arg===v)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(a=m,n.method="throw",n.arg=u.arg)}}}function _(t,r){var n=r.method,a=t.iterator[n];if(a===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,_(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),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 T(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 k(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function D(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(T,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 g.prototype=b,a(O,"constructor",{value:b,configurable:!0}),a(b,"constructor",{value:g,configurable:!0}),g.displayName=u(b,s,"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,u(e,s,"GeneratorFunction")),e.prototype=Object.create(O),e},t.awrap=function(e){return{__await:e}},S(L.prototype),u(L.prototype,i,function(){return this}),t.AsyncIterator=L,t.async=function(e,r,n,a,o){void 0===o&&(o=Promise);var c=new L(l(e,r,n,a),o);return t.isGeneratorFunction(r)?c:c.next().then(function(e){return e.done?e.value:c.next()})},S(O),u(O,s,"Generator"),u(O,c,function(){return this}),u(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=N,D.prototype={constructor:D,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(k),!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 s=n.call(c,"catchLoc"),u=n.call(c,"finallyLoc");if(s&&u){if(this.prev<c.catchLoc)return a(c.catchLoc,!0);if(this.prev<c.finallyLoc)return a(c.finallyLoc)}else if(s){if(this.prev<c.catchLoc)return a(c.catchLoc,!0)}else{if(!u)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),k(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;k(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 S=[],L=function(e){function t(e){var r;return Object(c.a)(this,t),(r=Object(s.a)(this,Object(u.a)(t).call(this,e))).componentDidMount=Object(o.a)(j().mark(function e(){return j().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r.props.getdatedeg(r.props.collcode);case 2:r.setState({frmsubmit:!1}),r.setState({datefrom:!1}),r.setState({todate:!1}),"055"!=r.props.univcode&&r.setState({sub:"All",Element:"All"});case 6:case"end":return e.stop()}},e)})),r.handledatedegree=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}),e.next=3,r.props.getdatesem(n.value,r.props.collcode);case 3:r.setState({frmsubmit:!1});case 4:case"end":return e.stop()}},e)}));return function(t,r){return e.apply(this,arguments)}}(),r.handleSem=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({sem:n.value}),e.next=3,r.props.getdatesub(n.value,r.state.degree,r.props.collcode);case 3:r.setState({frmsubmit:!1});case 4:case"end":return e.stop()}},e)}));return function(t,r){return e.apply(this,arguments)}}(),r.handleSubject=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({sub:n.value}),e.next=3,r.props.getdatelement(n.value,r.state.degree,r.state.sem,r.props.collcode);case 3:r.setState({frmsubmit:!1});case 4:case"end":return e.stop()}},e)}));return function(t,r){return e.apply(this,arguments)}}(),r.handleChangeElement=function(){var e=Object(o.a)(j().mark(function e(t,n){var a,o,c,i;return j().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if("055"!=r.props.univcode){e.next=8;break}return e.next=3,r.props.getMaxTest(r.state,n.value);case 3:return S=[],e.next=6,r.props.test.fnotest;case 6:for(a=e.sent,o=0;o<parseInt(a);o++)i=o+1,(c={}).key=o,c.value="Test "+i,c.text="Test "+i,S.push(c);case 8:r.setState({Element:n.value});case 9:case"end":return e.stop()}},e)}));return function(t,r){return e.apply(this,arguments)}}(),r.viewDateFromAndTo=function(){var e=Object(o.a)(j().mark(function e(t,n){var a,o,c,i,s;return j().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(""!==r.state.degree){e.next=4;break}return a={header:"Error",content:"Select degree"},r.props.showError(a),e.abrupt("return");case 4:if(""!==r.state.sem){e.next=8;break}return o={header:"Error",content:"Select sem"},r.props.showError(o),e.abrupt("return");case 8:if(""!==r.state.sub){e.next=12;break}return c={header:"Error",content:"Select Subject"},r.props.showError(c),e.abrupt("return");case 12:if(""!==r.state.Element){e.next=16;break}return i={header:"Error",content:"Select Elements"},r.props.showError(i),e.abrupt("return");case 16:if("055"!=r.props.univcode){e.next=21;break}if(""!=r.state.test){e.next=21;break}return s={header:"Error",content:"Select Test"},r.props.showError(s),e.abrupt("return");case 21:return e.next=23,r.props.viewdatesentry(r.state.degree,r.state.sem,r.state.sub,r.state.Element,r.props.collcode,r.state.test);case 23:r.setState({dates:!0}),r.setState({frmsubmit:!0});case 25:case"end":return e.stop()}},e)}));return function(t,r){return e.apply(this,arguments)}}(),r.handleDateChangeFrom=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({datefrom:n.value});case 1:case"end":return e.stop()}},e)}));return function(t,r){return e.apply(this,arguments)}}(),r.handleDateChangeTo=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({todate:n.value});case 1:case"end":return e.stop()}},e)}));return function(t,r){return e.apply(this,arguments)}}(),r.saveDatesFromAndTO=Object(o.a)(j().mark(function e(){var t,n,a,o;return j().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(""!==r.state.sem){e.next=8;break}return n={header:"Error",content:"Select sem"},r.props.showError(n),e.abrupt("return");case 8:if(""!==r.state.sub){e.next=12;break}return a={header:"Error",content:"Select Subject"},r.props.showError(a),e.abrupt("return");case 12:if(""!==r.state.Element){e.next=16;break}return o={header:"Error",content:"Select Elements"},r.props.showError(o),e.abrupt("return");case 16:return e.next=18,r.props.updatefromandto(r.state.degree,r.state.sem,r.state.sub,r.state.Element,r.state.datefrom,r.state.todate,r.state.test);case 18:return e.next=20,r.props.viewdatesentry(r.state.degree,r.state.sem,r.state.sub,r.state.Element,r.props.collcode);case 20:case"end":return e.stop()}},e)})),r.handleCancel=function(){r.setState({degree:"",sem:"",sub:"",Element:"",datefrom:"",todate:"",dates:!1,frmsubmit:!1})},r.state={degree:"",sem:"",sub:"",Element:"",datefrom:"",todate:"",dates:!1,frmsubmit:!1,test:""},r}return Object(l.a)(t,e),Object(i.a)(t,[{key:"render",value:function(){var e=this,t=this.state,r=t.degree,o=t.sem,c=t.sub,i=t.Element,s=t.fromdate,u=t.todate,l=[{key:"All",value:"All",text:"All"}],p=this.props.deg.map(function(e,t){return{key:t,value:e.FDEGREE,text:e.FDEGREE+"-"+e.FDEscpn}}),f=this.props.sem.map(function(e,t){return{key:t,value:e.fexamno,text:e.fexamno+"-"+e.fexamname}}),m=this.props.sub.map(function(e,t){return{key:t,value:e.fcsubcode,text:e.fcsubcode+" - "+e.fsubname}}),x=[].concat(l,Object(a.a)(m)),O=this.props.Element.map(function(e,t){return{key:t,value:e.fsubname,text:e.fsubname}}),j=[].concat(l,Object(a.a)(O)),L=Object(a.a)(S);return d.a.createElement("div",null,d.a.createElement(v.a,{fluid:!0},d.a.createElement(y.a,null,d.a.createElement(v.a.Header,{style:{display:"flex"}},d.a.createElement("h4",null,"Update Last Date (Marks)"),d.a.createElement("div",{className:"ml-auto"},d.a.createElement(g.a,{basic:!0,color:"green",icon:"save",onClick:this.saveDatesFromAndTO,content:"Save"}),d.a.createElement(g.a,{basic:!0,color:"blue",icon:"ban",content:"Cancel",onClick:this.handleCancel}),d.a.createElement(h.a,{to:"/dashboard"},d.a.createElement(g.a,{basic:!0,color:"red",content:"Exit",icon:"home"})))),d.a.createElement(b.a,null),d.a.createElement(v.a.Description,{style:{height:"630px",overflowY:"auto"}},d.a.createElement(E.a,null,d.a.createElement(E.a.Group,null,d.a.createElement(E.a.Field,{width:6},d.a.createElement("label",null,"Degree"),d.a.createElement(w.a,{fluid:!0,selection:!0,search:!0,value:r,options:p,name:"degree",placeholder:"Select Degree",onChange:this.handledatedegree})),d.a.createElement(E.a.Field,{width:6},d.a.createElement("label",null,"Sem"),d.a.createElement(w.a,{fluid:!0,selection:!0,search:!0,value:o,options:f,name:"sem",placeholder:"Select Semister",onChange:this.handleSem}))),d.a.createElement(E.a.Group,null,d.a.createElement(E.a.Field,{width:6},d.a.createElement("label",null,"Subject"),d.a.createElement(w.a,{fluid:!0,selection:!0,search:!0,value:c,options:x,name:"sub",placeholder:"Select Subject",onChange:this.handleSubject})),d.a.createElement(E.a.Field,{width:6},d.a.createElement("label",null,"Elements"),d.a.createElement(w.a,{fluid:!0,selection:!0,search:!0,value:i,options:j,name:"Elements",placeholder:"Select Elements",onChange:this.handleChangeElement}))),d.a.createElement(E.a.Group,null,"055"==this.props.univcode&&d.a.createElement(E.a.Field,{width:6},d.a.createElement("label",null,"Test"),d.a.createElement(w.a,{fluid:!0,selection:!0,search:!0,value:this.state.test,options:L,name:"test",placeholder:"Select Test",onChange:function(t,r){return e.setState({test:r.value})}})),d.a.createElement(E.a.Field,null,d.a.createElement(g.a,{basic:!0,color:"blue",style:{position:"relative",top:"23px"},icon:"eye",onClick:this.viewDateFromAndTo,content:"View"}))),this.state.dates?d.a.createElement("div",null,d.a.createElement(E.a.Group,null,d.a.createElement(E.a.Field,{width:6},d.a.createElement("label",null,"New Date"),d.a.createElement(E.a.Input,{type:"date",value:s,placeholder:"From Date",name:"fromdate",onChange:this.handleDateChangeFrom})),d.a.createElement(E.a.Field,{width:6},d.a.createElement(E.a.Input,{type:"date",value:u,placeholder:"To Date",name:"todate",style:{paddingTop:"23px"},onChange:this.handleDateChangeTo}))),d.a.createElement("label",null)):null),d.a.createElement("br",null),this.state.frmsubmit?d.a.createElement("table",{style:{width:"100%"}},d.a.createElement("thead",{style:{position:"sticky",top:0,backgroundColor:"tan",border:"1px solid"}},d.a.createElement("tr",null),d.a.createElement("tr",{style:{height:"40px"}},d.a.createElement("th",{style:{border:"1px solid",textAlign:"center"}},"Sl. No."),d.a.createElement("th",{style:{border:"1px solid",textAlign:"center",width:"150px"}},"Subject"),"055"==this.props.univcode&&d.a.createElement("th",{style:{border:"1px solid",textAlign:"center"}},"Element"),d.a.createElement("th",{style:{border:"1px solid",textAlign:"center"}},"055"==this.props.univcode?"Test":" Element name"),d.a.createElement("th",{style:{border:"1px solid",textAlign:"center"}},"Date From"),d.a.createElement("th",{style:{border:"1px solid",textAlign:"center"}},"To Date"))),d.a.createElement("tbody",null),this.props.table.map(function(t,r){return d.a.createElement("tr",{key:r},d.a.createElement("td",{style:Object(n.a)(Object(n.a)({border:"1px solid",textAlign:"center"},"border","1px solid"),"width","50px")},r+1),d.a.createElement("td",{style:Object(n.a)(Object(n.a)({border:"1px solid",paddingLeft:"10px"},"border","1px solid"),"width","85px")},t.fcsubcode,"-",t.subjectname),"055"==e.props.univcode&&d.a.createElement("td",{style:Object(n.a)(Object(n.a)({border:"1px solid",textAlign:"center"},"border","1px solid"),"width","135px")},t.factivity),d.a.createElement("td",{style:Object(n.a)(Object(n.a)({border:"1px solid",textAlign:"center"},"border","1px solid"),"width","135px")},t.subdetname),d.a.createElement("td",{style:Object(n.a)(Object(n.a)({border:"1px solid",textAlign:"center"},"border","1px solid"),"width","85px")},t.fiafrom),d.a.createElement("td",{style:Object(n.a)(Object(n.a)({border:"1px solid",textAlign:"center"},"border","1px solid"),"width","75px")},t.fiato))})):null))))}}]),t}(p.Component);t.default=Object(f.b)(function(e){return{univcode:e.univ.funivcode,collcode:e.user.fuserid,deg:e.getdatedeg,sem:e.getdatesem,sub:e.getdatesub,Element:e.getdatelement,table:e.viewdatesentry,test:e.getTest}},{showError:m.A,getdatedeg:function(e){return function(){var t=Object(o.a)(O().mark(function t(r,n){var a,o,c,i;return O().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return a=n(),r({type:"SET_LOADER"}),t.next=4,x.a.get("/app.php?a=getdatedeg&univcode="+a.univ.funivcode+"&collcode="+e);case 4:o=t.sent,r({type:"UNSET_LOADER"}),"object"!==typeof o.data?(c={header:"Error",content:"Something went wrong"},r(Object(m.A)(c))):-1===o.data.error_code?(i={header:"Error",content:o.data.data.msg},r(Object(m.A)(i))):r({type:"GET_DATE_DEGREE_DATA",payload:o.data});case 7:case"end":return t.stop()}},t)}));return function(e,r){return t.apply(this,arguments)}}()},getdatesem:function(e,t){return function(){var r=Object(o.a)(O().mark(function r(n,a){var o,c,i,s;return O().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return o=a(),n({type:"SET_LOADER"}),r.next=4,x.a.get("/app.php?a=getdatesem&univcode="+o.univ.funivcode+"&collcode="+t+"°ree="+e);case 4:c=r.sent,n({type:"UNSET_LOADER"}),"object"!==typeof c.data?(i={header:"Error",content:"Something went wrong"},n(Object(m.A)(i))):-1===c.data.error_code?(s={header:"Error",content:c.data.data.msg},n(Object(m.A)(s))):n({type:"GET_DATE_SEM_DATA",payload:c.data});case 7:case"end":return r.stop()}},r)}));return function(e,t){return r.apply(this,arguments)}}()},getdatesub:function(e,t,r){return function(){var n=Object(o.a)(O().mark(function n(a,o){var c,i,s,u;return O().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return c=o(),a({type:"SET_LOADER"}),n.next=4,x.a.get("/app.php?a=getdatesub&univcode="+c.univ.funivcode+"&collcode="+r+"°ree="+t+"&sem="+e);case 4:i=n.sent,a({type:"UNSET_LOADER"}),"object"!==typeof i.data?(s={header:"Error",content:"Something went wrong"},a(Object(m.A)(s))):-1===i.data.error_code?(u={header:"Error",content:i.data.data.msg},a(Object(m.A)(u))):a({type:"GET_DATE_SUB_DATA",payload:i.data});case 7:case"end":return n.stop()}},n)}));return function(e,t){return n.apply(this,arguments)}}()},getdatelement:function(e,t,r,n){return function(){var a=Object(o.a)(O().mark(function a(o,c){var i,s,u,l;return O().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return i=c(),o({type:"SET_LOADER"}),a.next=4,x.a.get("/app.php?a=getdatelement&univcode="+i.univ.funivcode+"&collcode="+n+"°ree="+t+"&sem="+r+"&sub="+e);case 4:s=a.sent,o({type:"UNSET_LOADER"}),"object"!==typeof s.data?(u={header:"Error",content:"Something went wrong"},o(Object(m.A)(u))):-1===s.data.error_code?(l={header:"Error",content:s.data.data.msg},o(Object(m.A)(l))):o({type:"GET_DATE_ELEMENT_DATA",payload:s.data});case 7:case"end":return a.stop()}},a)}));return function(e,t){return a.apply(this,arguments)}}()},viewdatesentry:function(e,t,r,n,a,c){return function(){var a=Object(o.a)(O().mark(function a(o,i){var s,u,l,p;return O().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return s=i(),o({type:"SET_LOADER"}),a.next=4,x.a.get("/app.php?a=viewdatesentry&univcode="+s.univ.funivcode+"°ree="+e+"&sem="+t+"&sub="+r+"&Element="+n+"&test="+c);case 4:u=a.sent,o({type:"UNSET_LOADER"}),"object"!==typeof u.data?(l={header:"Error",content:"Something went wrong"},o(Object(m.A)(l))):-1===u.data.error_code?(p={header:"Error",content:u.data.data.msg},o(Object(m.A)(p))):o({type:"VIEW_DATE_TABLE_DATA",payload:u.data});case 7:case"end":return a.stop()}},a)}));return function(e,t){return a.apply(this,arguments)}}()},updatefromandto:function(e,t,r,n,a,c,i){return function(){var s=Object(o.a)(O().mark(function o(s,u){var l,p,d,h,f;return O().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return l=u(),s({type:"SET_LOADER"}),o.next=4,x.a.post("/app.php?a=updatefromandto&univcode="+l.univ.funivcode+"&sub="+r+"&Element="+n+"&datefrom="+a+"&todate="+c+"°ree="+e+"&sem="+t+"&test="+i);case 4:p=o.sent,s({type:"UNSET_LOADER"}),"object"!==typeof p.data?(d={header:"Error",content:"Something went wrong"},s(Object(m.A)(d))):-1===p.data.error_code?(h={header:"Error",content:p.data.data.msg},s(Object(m.A)(h))):(f={header:"Succes",content:p.data.data.msg},s(Object(m.A)(f)));case 7:case"end":return o.stop()}},o)}));return function(e,t){return s.apply(this,arguments)}}()},getMaxTest:function(e,t){return function(){var r=Object(o.a)(O().mark(function r(n,a){var o,c,i,s;return O().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return o=a(),n({type:"SET_LOADER"}),r.next=4,x.a.get("/app.php?a=getMaxTest&univcode="+o.univ.funivcode+"°ree="+e.degree+"&sem="+e.sem+"&sub="+e.sub+"&element="+t);case 4:c=r.sent,n({type:"UNSET_LOADER"}),"object"!==typeof c.data?(i={header:"Error",content:"Something went wrong"},n(Object(m.A)(i))):-1===c.data.error_code?(s={header:"Error",content:c.data.data.msg},n(Object(m.A)(s))):n({type:"GET_NO_TEST",payload:c.data});case 7:case"end":return r.stop()}},r)}));return function(e,t){return r.apply(this,arguments)}}()}})(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),s=r.n(i),u=r(349),l=r(613),p=r(611),d=r(269);function h(e){var t=e.children,r=e.className,n=e.clearing,o=e.content,i=e.fitted,f=e.hidden,m=e.horizontal,v=e.inverted,y=e.section,g=e.vertical,b=c()("ui",Object(u.a)(n,"clearing"),Object(u.a)(i,"fitted"),Object(u.a)(f,"hidden"),Object(u.a)(m,"horizontal"),Object(u.a)(v,"inverted"),Object(u.a)(y,"section"),Object(u.a)(g,"vertical"),"divider",r),E=Object(l.a)(h,e),w=Object(p.a)(h,e);return s.a.createElement(w,a()({},E,{className:b}),d.a.isNil(t)?o:t)}h.handledProps=["as","children","className","clearing","content","fitted","hidden","horizontal","inverted","section","vertical"],h.propTypes={},t.a=h}}]);
//# sourceMappingURL=255.347bf572.chunk.js.map
|