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.116.118.214
(window.webpackJsonp=window.webpackJsonp||[]).push([[268,307],{1430:function(e,t,r){"use strict";r.r(t);var n=r(3),a=r(68),o=r(100),i=r(101),c=r(103),l=r(102),u=r(104),s=r(2),h=r.n(s),p=r(105),f=r(941),d=r(267),g=r(1377),m=r(949),v=r(1343),y=r(272),E=r(1335),w=r(1337),x=r(1338),b=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",l=o.toStringTag||"@@toStringTag";function u(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,r){return e[t]=r}}function s(e,t,r,n){var o=t&&t.prototype instanceof v?t:v,i=Object.create(o.prototype),c=new T(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=s;var p="suspendedStart",f="suspendedYield",d="executing",g="completed",m={};function v(){}function y(){}function E(){}var w={};u(w,i,function(){return this});var x=Object.getPrototypeOf,b=x&&x(x(C([])));b&&b!==r&&n.call(b,i)&&(w=b);var O=E.prototype=v.prototype=Object.create(w);function L(e){["next","throw","return"].forEach(function(t){u(e,t,function(e){return this._invoke(t,e)})})}function _(e,t){function r(a,o,i,c){var l=h(e[a],e,o);if("throw"!==l.type){var u=l.arg,s=u.value;return s&&"object"==typeof s&&n.call(s,"__await")?t.resolve(s.__await).then(function(e){r("next",e,i,c)},function(e){r("throw",e,i,c)}):t.resolve(s).then(function(e){u.value=e,i(u)},function(e){return r("throw",e,i,c)})}c(l.arg)}var o;a(this,"_invoke",{value:function(e,n){function a(){return new t(function(t,a){r(e,n,t,a)})}return o=o?o.then(a,a):a()}})}function j(t,r,n){var a=p;return function(o,i){if(a===d)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 l=S(c,n);if(l){if(l===m)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(a===p)throw a=g,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);a=d;var u=h(t,r,n);if("normal"===u.type){if(a=n.done?g:f,u.arg===m)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(a=g,n.method="throw",n.arg=u.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")),m;var o=h(a,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,m;var i=o.arg;return i?i.done?(r[t.resultName]=i.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,m):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,m)}function R(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 D(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(R,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 y.prototype=E,a(O,"constructor",{value:E,configurable:!0}),a(E,"constructor",{value:y,configurable:!0}),y.displayName=u(E,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,E):(e.__proto__=E,u(e,l,"GeneratorFunction")),e.prototype=Object.create(O),e},t.awrap=function(e){return{__await:e}},L(_.prototype),u(_.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),u(O,l,"Generator"),u(O,i,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=C,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(D),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function a(n,a){return c.type="throw",c.arg=t,r.next=n,a&&(r.method="next",r.arg=e),!!a}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],c=i.completion;if("root"===i.tryLoc)return a("end");if(i.tryLoc<=this.prev){var l=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(l&&u){if(this.prev<i.catchLoc)return a(i.catchLoc,!0);if(this.prev<i.finallyLoc)return a(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return a(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return a(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,m):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),m},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),D(r),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var a=n.arg;D(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),m}},t}function O(){O=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,a=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",c=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function u(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,r){return e[t]=r}}function s(e,t,r,n){var o=t&&t.prototype instanceof v?t:v,i=Object.create(o.prototype),c=new T(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=s;var p="suspendedStart",f="suspendedYield",d="executing",g="completed",m={};function v(){}function y(){}function E(){}var w={};u(w,i,function(){return this});var x=Object.getPrototypeOf,b=x&&x(x(C([])));b&&b!==r&&n.call(b,i)&&(w=b);var A=E.prototype=v.prototype=Object.create(w);function L(e){["next","throw","return"].forEach(function(t){u(e,t,function(e){return this._invoke(t,e)})})}function _(e,t){function r(a,o,i,c){var l=h(e[a],e,o);if("throw"!==l.type){var u=l.arg,s=u.value;return s&&"object"==typeof s&&n.call(s,"__await")?t.resolve(s.__await).then(function(e){r("next",e,i,c)},function(e){r("throw",e,i,c)}):t.resolve(s).then(function(e){u.value=e,i(u)},function(e){return r("throw",e,i,c)})}c(l.arg)}var o;a(this,"_invoke",{value:function(e,n){function a(){return new t(function(t,a){r(e,n,t,a)})}return o=o?o.then(a,a):a()}})}function j(t,r,n){var a=p;return function(o,i){if(a===d)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 l=S(c,n);if(l){if(l===m)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(a===p)throw a=g,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);a=d;var u=h(t,r,n);if("normal"===u.type){if(a=n.done?g:f,u.arg===m)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(a=g,n.method="throw",n.arg=u.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")),m;var o=h(a,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,m;var i=o.arg;return i?i.done?(r[t.resultName]=i.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,m):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,m)}function R(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 D(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(R,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 y.prototype=E,a(A,"constructor",{value:E,configurable:!0}),a(E,"constructor",{value:y,configurable:!0}),y.displayName=u(E,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,E):(e.__proto__=E,u(e,l,"GeneratorFunction")),e.prototype=Object.create(A),e},t.awrap=function(e){return{__await:e}},L(_.prototype),u(_.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(A),u(A,l,"Generator"),u(A,i,function(){return this}),u(A,"toString",function(){return"[object Generator]"}),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=C,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(D),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function a(n,a){return c.type="throw",c.arg=t,r.next=n,a&&(r.method="next",r.arg=e),!!a}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],c=i.completion;if("root"===i.tryLoc)return a("end");if(i.tryLoc<=this.prev){var l=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(l&&u){if(this.prev<i.catchLoc)return a(i.catchLoc,!0);if(this.prev<i.finallyLoc)return a(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return a(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return a(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,m):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),m},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),D(r),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var a=n.arg;D(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),m}},t}var L=function(e){function t(){var e,r;Object(o.a)(this,t);for(var n=arguments.length,i=new Array(n),u=0;u<n;u++)i[u]=arguments[u];return(r=Object(c.a)(this,(e=Object(l.a)(t)).call.apply(e,[this].concat(i)))).state={deggrp:"All",examdate:"All",degree:"All",sem:"All",currentPage:1,itemsPerPage:10},r.componentDidMount=function(){r.viewall()},r.viewall=Object(a.a)(O().mark(function e(){var t,n,a,o,i;return O().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r.props.getdeggrpresult();case 2:return e.next=4,r.props.getExamdateResult(r.state.deggrp);case 4:return e.next=6,r.props.getDegreeResult(r.state.examdate,r.state.deggrp);case 6:return e.next=8,r.props.getSemResult(r.state.degree,r.state.deggrp,r.state.examdate);case 8:return t=r.state,n=t.deggrp,a=t.examdate,o=t.degree,i=t.sem,e.next=11,r.props.viewResultDate(n,a,o,i);case 11:case"end":return e.stop()}},e)})),r.handleChangeDeggrp=function(){var e=Object(a.a)(O().mark(function e(t,n){return O().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.getExamdateResult(n.value);case 4:return e.next=6,r.props.getDegreeResult(r.state.examdate,r.state.deggrp);case 6:return e.next=8,r.props.getSemResult(r.state.degree,r.state.deggrp,r.state.examdate);case 8:r.setState({examdate:"All",degree:"All",sem:"All"});case 9:case"end":return e.stop()}},e)}));return function(t,r){return e.apply(this,arguments)}}(),r.handleChangeDate=function(){var e=Object(a.a)(O().mark(function e(t,n){return O().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r.setState({examdate:n.value});case 2:return e.next=4,r.props.getDegreeResult(n.value,r.state.deggrp);case 4:return e.next=6,r.props.getSemResult(r.state.degree,r.state.deggrp,r.state.examdate);case 6:r.setState({degree:"All",sem:"All"});case 7:case"end":return e.stop()}},e)}));return function(t,r){return e.apply(this,arguments)}}(),r.handleChangeDegree=function(){var e=Object(a.a)(O().mark(function e(t,n){return O().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.getSemResult(n.value,r.state.deggrp,r.state.examdate);case 4:r.setState({sem:"All"});case 5:case"end":return e.stop()}},e)}));return function(t,r){return e.apply(this,arguments)}}(),r.handleChangeSem=function(){var e=Object(a.a)(O().mark(function e(t,n){return O().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r.setState({sem:n.value});case 2:case"end":return e.stop()}},e)}));return function(t,r){return e.apply(this,arguments)}}(),r.handleFileChange=function(){var e=Object(a.a)(O().mark(function e(t){var n;return O().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:n=t.target.files[0],r.setState({file:n});case 2:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}(),r.handleViewResult=Object(a.a)(O().mark(function e(){var t,n,a,o,i;return O().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t=r.state,n=t.deggrp,a=t.examdate,o=t.degree,i=t.sem,e.next=3,r.props.viewResultDate(n,a,o,i);case 3:case"end":return e.stop()}},e)})),r.handleClear=function(){r.setState({deggrp:"All",examdate:"All",degree:"All",sem:"All"})},r.handlePageChange=function(e){r.setState({currentPage:e})},r}return Object(u.a)(t,e),Object(i.a)(t,[{key:"render",value:function(){for(var e=this,t=[{key:"All",text:"All",value:"All"}],r=this.props.deggrp.map(function(e){return{key:e.fdeggrp,value:e.fdeggrp,text:e.fdeggrp+" - "+e.fdescpn}}),a=this.props.deggrp.length>0?[].concat(t,Object(n.a)(r)):t,o=this.props.date.map(function(e){return{key:e.fexamdate,value:e.fexamdate,text:e.fexamdate}}),i=this.props.date.length>0?[].concat(t,Object(n.a)(o)):t,c=this.props.degree.map(function(e){return{key:e.fdegree,value:e.fdegree,text:e.fdegree+" - "+e.fdescpn}}),l=this.props.degree.length>0?[].concat(t,Object(n.a)(c)):t,u=this.props.sem.map(function(e){return{key:e.fexamno,value:e.fexamno,text:e.fexamno+" - "+e.fexamname}}),s=this.props.sem.length>0?[].concat(t,Object(n.a)(u)):t,p=this.state.currentPage*this.state.itemsPerPage,d=p-this.state.itemsPerPage,b=this.props.results.slice(d,p),A=[],O=1;O<=Math.ceil(this.props.results.length/this.state.itemsPerPage);O++)A.push(O);return h.a.createElement("div",null,h.a.createElement(g.a,{fluid:!0},h.a.createElement(m.a,null,h.a.createElement(g.a.Header,{style:{display:"flex"}},h.a.createElement("h4",null,"Result Announcement Dates"),h.a.createElement("div",{className:"ml-auto"},h.a.createElement(v.a,{size:"mini",basic:!0,color:"blue",icon:"ban",content:"Clear",onClick:this.handleClear}),h.a.createElement(f.a,{to:"/dashboard"},h.a.createElement(v.a,{size:"mini",basic:!0,color:"red",content:"Exit",icon:"home"})))),h.a.createElement(y.a,null),h.a.createElement(g.a.Description,{style:{height:"auto"}},h.a.createElement(E.a,null,h.a.createElement(E.a.Group,null,h.a.createElement(E.a.Field,{width:6},h.a.createElement("label",null,"Degree Group"),h.a.createElement(w.a,{fluid:!0,selection:!0,search:!0,value:this.state.deggrp,options:a,name:"deggrp",placeholder:"Select Client",onChange:this.handleChangeDeggrp})),h.a.createElement(E.a.Field,{width:6},h.a.createElement("label",null,"Exam Date"),h.a.createElement(w.a,{fluid:!0,selection:!0,search:!0,value:this.state.examdate,options:i,name:"examdate",placeholder:"Select Exam Date",onChange:this.handleChangeDate}))),h.a.createElement(E.a.Group,null,h.a.createElement(E.a.Field,{width:6},h.a.createElement("label",null,"Degree"),h.a.createElement(w.a,{fluid:!0,selection:!0,search:!0,value:this.state.degree,options:l,name:"degree",placeholder:"Select Degree",onChange:this.handleChangeDegree})),h.a.createElement(E.a.Field,{width:6},h.a.createElement("label",null,"Semester"),h.a.createElement(w.a,{fluid:!0,selection:!0,search:!0,value:this.state.sem,options:s,name:"sem",placeholder:"Select Semester Type",onChange:this.handleChangeSem}))),h.a.createElement(E.a.Group,null,h.a.createElement(E.a.Field,null,h.a.createElement(v.a,{style:{marginTop:"23px"},basic:!0,color:"blue",icon:"eye",onClick:this.handleViewResult,content:"View"})))),h.a.createElement("div",null,h.a.createElement(x.a,{celled:!0,style:{fontSize:"1.1em"}},h.a.createElement(x.a.Header,null,h.a.createElement(x.a.Row,{style:{fontSize:"small"}},h.a.createElement(x.a.HeaderCell,{style:{textAlign:"center"}},"Sl.No"),h.a.createElement(x.a.HeaderCell,{style:{textAlign:"center"}},"Degree Group"),h.a.createElement(x.a.HeaderCell,{style:{textAlign:"center"}},"Degree"),h.a.createElement(x.a.HeaderCell,{style:{textAlign:"center"}},"Semester"),h.a.createElement(x.a.HeaderCell,{style:{textAlign:"center"}},"Exam Date"),h.a.createElement(x.a.HeaderCell,{style:{textAlign:"center"}},"Student Count"),h.a.createElement(x.a.HeaderCell,{style:{textAlign:"center"}},"Result Date"))),h.a.createElement(x.a.Body,null,b.map(function(e,t){return h.a.createElement(x.a.Row,{style:{fontSize:"smaller"}},h.a.createElement(x.a.Cell,{textAlign:"center"},t+1),h.a.createElement(x.a.Cell,{textAlign:"center"},e.fdeggrp),h.a.createElement(x.a.Cell,{textAlign:"left"},e.fdegree),h.a.createElement(x.a.Cell,{textAlign:"center"},e.fexamno),h.a.createElement(x.a.Cell,{textAlign:"center"},e.fexamdate),h.a.createElement(x.a.Cell,{textAlign:"center"},e.regno),h.a.createElement(x.a.Cell,{textAlign:"left"},e.fresultdate))}))),h.a.createElement("div",{style:{textAlign:"center",marginTop:"10px"}},h.a.createElement(v.a,{disabled:1===this.state.currentPage,onClick:function(){return e.handlePageChange(e.state.currentPage-1)}},"Previous"),A.map(function(t){return h.a.createElement(v.a,{key:t,onClick:function(){return e.handlePageChange(t)},active:t===e.state.currentPage},t)}),h.a.createElement(v.a,{disabled:this.state.currentPage===Math.ceil(this.props.results.length/this.state.itemsPerPage),onClick:function(){return e.handlePageChange(e.state.currentPage+1)}},"Next")))))))}}]),t}(s.Component);t.default=Object(p.b)(function(e){return console.log(e.getExamdateResult,"vvvv"),{collcode:e.user.fuserid,univcode:e.univ.funivcode,userid:e.user.fuserid,usertype:e.user.fcurtype,universties:e.loaduniversities,deggrp:e.getdeggrpresult,date:e.getExamdateResult,degree:e.getDegreeResult,sem:e.getSemResult,results:e.viewResultDate}},{showError:d.A,getdeggrpresult:function(){return function(){var e=Object(a.a)(A().mark(function e(t,r){var n,a,o,i;return A().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=r(),t({type:"SET_LOADER"}),e.next=4,b.a.get("/app.php?a=getdeggrpresult&univcode="+n.univ.funivcode);case 4:a=e.sent,t({type:"UNSET_LOADER"}),"object"!==typeof a.data?(o={header:"Error",content:"Something went wrong"},t(Object(d.A)(o))):-1==a.data.error_code?(i={header:"Error",content:a.data.data.msg},t(Object(d.A)(i))):-1==a.data.error_code?t({type:"CLEAR_UNIVERSITY_DATA",payload:[]}):t({type:"GET_UNIVERSITY_DATA",payload:a.data});case 7:case"end":return e.stop()}},e)}));return function(t,r){return e.apply(this,arguments)}}()},getExamdateResult:function(e){return function(){var t=Object(a.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,b.a.get("/app.php?a=getExamdateResult&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(d.A)(i))):-1==o.data.error_code?(c={header:"Error",content:o.data.data.msg},r(Object(d.A)(c))):-1==o.data.error_code?r({type:"CLEAR_EXAMDATE_DATA",payload:[]}):r({type:"GET_EXAMDATE_DATA",payload:o.data});case 7:case"end":return t.stop()}},t)}));return function(e,r){return t.apply(this,arguments)}}()},getDegreeResult:function(e,t){return function(){var r=Object(a.a)(A().mark(function r(n,a){var o,i,c,l;return A().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return o=a(),n({type:"SET_LOADER"}),r.next=4,b.a.get("/app.php?a=getDegreeResult&univcode="+o.univ.funivcode+"&date="+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(d.A)(c))):-1==i.data.error_code?(l={header:"Error",content:i.data.data.msg},n(Object(d.A)(l))):-1==i.data.error_code?n({type:"CLEAR_DEGREE_RESULT_DATA",payload:[]}):n({type:"GET_DEGREE_RESULT_DATA",payload:i.data});case 7:case"end":return r.stop()}},r)}));return function(e,t){return r.apply(this,arguments)}}()},getSemResult:function(e,t,r){return function(){var n=Object(a.a)(A().mark(function n(a,o){var i,c,l,u;return A().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return i=o(),a({type:"SET_LOADER"}),n.next=4,b.a.get("/app.php?a=getSemResult&univcode="+i.univ.funivcode+"°ree="+e+"°grp="+t+"&date="+r);case 4:c=n.sent,a({type:"UNSET_LOADER"}),"object"!==typeof c.data?(l={header:"Error",content:"Something went wrong"},a(Object(d.A)(l))):-1==c.data.error_code?(u={header:"Error",content:c.data.data.msg},a(Object(d.A)(u))):-1==c.data.error_code?a({type:"CLEAR_SEM_RESULT_DATA",payload:[]}):a({type:"GET_SEM_RESULT_DATA",payload:c.data});case 7:case"end":return n.stop()}},n)}));return function(e,t){return n.apply(this,arguments)}}()},viewResultDate:function(e,t,r,n){return function(){var o=Object(a.a)(A().mark(function a(o,i){var c,l,u,s;return A().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return c=i(),o({type:"SET_LOADER"}),a.next=4,b.a.get("/app.php?a=viewResultDate&univcode="+c.univ.funivcode+"°grp="+e+"&examdate="+t+"°ree="+r+"&sem="+n);case 4:l=a.sent,o({type:"UNSET_LOADER"}),console.log(l),"object"!==typeof l.data?(u={header:"Error",content:"Something went wrong"},o(Object(d.A)(u))):-1==l.data.error_code?(s={header:"Error",content:l.data.msg},o(Object(d.A)(s))):-1==l.data.error_code?o({type:"CLEAR_RESULT_DATE",payload:[]}):o({type:"GET_RESULT_DATE",payload:l.data.data});case 8:case"end":return a.stop()}},a)}));return function(e,t){return o.apply(this,arguments)}}()}})(L)},272:function(e,t,r){"use strict";var n=r(270),a=r.n(n),o=r(268),i=r.n(o),c=r(2),l=r.n(c),u=r(349),s=r(613),h=r(611),p=r(269);function f(e){var t=e.children,r=e.className,n=e.clearing,o=e.content,c=e.fitted,d=e.hidden,g=e.horizontal,m=e.inverted,v=e.section,y=e.vertical,E=i()("ui",Object(u.a)(n,"clearing"),Object(u.a)(c,"fitted"),Object(u.a)(d,"hidden"),Object(u.a)(g,"horizontal"),Object(u.a)(m,"inverted"),Object(u.a)(v,"section"),Object(u.a)(y,"vertical"),"divider",r),w=Object(s.a)(f,e),x=Object(h.a)(f,e);return l.a.createElement(x,a()({},w,{className:E}),p.a.isNil(t)?o:t)}f.handledProps=["as","children","className","clearing","content","fitted","hidden","horizontal","inverted","section","vertical"],f.propTypes={},t.a=f}}]);
//# sourceMappingURL=268.1bf87ad5.chunk.js.map
|