0xV3NOMx
Linux ip-172-26-7-228 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64



Your IP : 18.191.26.149


Current Path : /var/www/egov/build/static/js/
Upload File :
Current File : /var/www/egov/build/static/js/227.db06dea5.chunk.js

(window.webpackJsonp=window.webpackJsonp||[]).push([[227],{1411:function(t,e,r){"use strict";r.r(e);var n=r(3),a=r(68),o=r(100),c=r(101),i=r(103),l=r(102),u=r(104),s=r(2),f=r.n(s),p=r(1377),h=r(1343),d=r(272),y=r(1335),v=r(1337),m=r(1338),g=r(941),w=r(541),E=r(105),b=r(271),x=r(267);function L(){L=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,a=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},c=o.iterator||"@@iterator",i=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,r){return t[e]=r}}function s(t,e,r,n){var o=e&&e.prototype instanceof m?e:m,c=Object.create(o.prototype),i=new C(n||[]);return a(c,"_invoke",{value:_(t,r,i)}),c}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=s;var p="suspendedStart",h="suspendedYield",d="executing",y="completed",v={};function m(){}function g(){}function w(){}var E={};u(E,c,function(){return this});var b=Object.getPrototypeOf,x=b&&b(b(N([])));x&&x!==r&&n.call(x,c)&&(E=x);var k=w.prototype=m.prototype=Object.create(E);function S(t){["next","throw","return"].forEach(function(e){u(t,e,function(t){return this._invoke(e,t)})})}function O(t,e){function r(a,o,c,i){var l=f(t[a],t,o);if("throw"!==l.type){var u=l.arg,s=u.value;return s&&"object"==typeof s&&n.call(s,"__await")?e.resolve(s.__await).then(function(t){r("next",t,c,i)},function(t){r("throw",t,c,i)}):e.resolve(s).then(function(t){u.value=t,c(u)},function(t){return r("throw",t,c,i)})}i(l.arg)}var o;a(this,"_invoke",{value:function(t,n){function a(){return new e(function(e,a){r(t,n,e,a)})}return o=o?o.then(a,a):a()}})}function _(e,r,n){var a=p;return function(o,c){if(a===d)throw new Error("Generator is already running");if(a===y){if("throw"===o)throw c;return{value:t,done:!0}}for(n.method=o,n.arg=c;;){var i=n.delegate;if(i){var l=A(i,n);if(l){if(l===v)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(a===p)throw a=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);a=d;var u=f(e,r,n);if("normal"===u.type){if(a=n.done?y:h,u.arg===v)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(a=y,n.method="throw",n.arg=u.arg)}}}function A(e,r){var n=r.method,a=e.iterator[n];if(a===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,A(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),v;var o=f(a,e.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[e.resultName]=c.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,v):c:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,v)}function j(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function T(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function C(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(j,this),this.reset(!0)}function N(e){if(e||""===e){var r=e[c];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var a=-1,o=function r(){for(;++a<e.length;)if(n.call(e,a))return r.value=e[a],r.done=!1,r;return r.value=t,r.done=!0,r};return o.next=o}}throw new TypeError(typeof e+" is not iterable")}return g.prototype=w,a(k,"constructor",{value:w,configurable:!0}),a(w,"constructor",{value:g,configurable:!0}),g.displayName=u(w,l,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,w):(t.__proto__=w,u(t,l,"GeneratorFunction")),t.prototype=Object.create(k),t},e.awrap=function(t){return{__await:t}},S(O.prototype),u(O.prototype,i,function(){return this}),e.AsyncIterator=O,e.async=function(t,r,n,a,o){void 0===o&&(o=Promise);var c=new O(s(t,r,n,a),o);return e.isGeneratorFunction(r)?c:c.next().then(function(t){return t.done?t.value:c.next()})},S(k),u(k,l,"Generator"),u(k,c,function(){return this}),u(k,"toString",function(){return"[object Generator]"}),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=N,C.prototype={constructor:C,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(T),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function a(n,a){return i.type="throw",i.arg=e,r.next=n,a&&(r.method="next",r.arg=t),!!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 l=n.call(c,"catchLoc"),u=n.call(c,"finallyLoc");if(l&&u){if(this.prev<c.catchLoc)return a(c.catchLoc,!0);if(this.prev<c.finallyLoc)return a(c.finallyLoc)}else if(l){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(t,e){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"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var c=o?o.completion:{};return c.type=t,c.arg=e,o?(this.method="next",this.next=o.finallyLoc,v):this.complete(c)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),v},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),T(r),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var a=n.arg;T(r)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:N(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),v}},e}var k=r(287),S=r.n(k),O=r(274);function _(){_=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,a=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},c=o.iterator||"@@iterator",i=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,r){return t[e]=r}}function s(t,e,r,n){var o=e&&e.prototype instanceof m?e:m,c=Object.create(o.prototype),i=new C(n||[]);return a(c,"_invoke",{value:O(t,r,i)}),c}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=s;var p="suspendedStart",h="suspendedYield",d="executing",y="completed",v={};function m(){}function g(){}function w(){}var E={};u(E,c,function(){return this});var b=Object.getPrototypeOf,x=b&&b(b(N([])));x&&x!==r&&n.call(x,c)&&(E=x);var L=w.prototype=m.prototype=Object.create(E);function k(t){["next","throw","return"].forEach(function(e){u(t,e,function(t){return this._invoke(e,t)})})}function S(t,e){function r(a,o,c,i){var l=f(t[a],t,o);if("throw"!==l.type){var u=l.arg,s=u.value;return s&&"object"==typeof s&&n.call(s,"__await")?e.resolve(s.__await).then(function(t){r("next",t,c,i)},function(t){r("throw",t,c,i)}):e.resolve(s).then(function(t){u.value=t,c(u)},function(t){return r("throw",t,c,i)})}i(l.arg)}var o;a(this,"_invoke",{value:function(t,n){function a(){return new e(function(e,a){r(t,n,e,a)})}return o=o?o.then(a,a):a()}})}function O(e,r,n){var a=p;return function(o,c){if(a===d)throw new Error("Generator is already running");if(a===y){if("throw"===o)throw c;return{value:t,done:!0}}for(n.method=o,n.arg=c;;){var i=n.delegate;if(i){var l=A(i,n);if(l){if(l===v)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(a===p)throw a=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);a=d;var u=f(e,r,n);if("normal"===u.type){if(a=n.done?y:h,u.arg===v)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(a=y,n.method="throw",n.arg=u.arg)}}}function A(e,r){var n=r.method,a=e.iterator[n];if(a===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,A(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),v;var o=f(a,e.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[e.resultName]=c.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,v):c:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,v)}function j(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function T(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function C(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(j,this),this.reset(!0)}function N(e){if(e||""===e){var r=e[c];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var a=-1,o=function r(){for(;++a<e.length;)if(n.call(e,a))return r.value=e[a],r.done=!1,r;return r.value=t,r.done=!0,r};return o.next=o}}throw new TypeError(typeof e+" is not iterable")}return g.prototype=w,a(L,"constructor",{value:w,configurable:!0}),a(w,"constructor",{value:g,configurable:!0}),g.displayName=u(w,l,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,w):(t.__proto__=w,u(t,l,"GeneratorFunction")),t.prototype=Object.create(L),t},e.awrap=function(t){return{__await:t}},k(S.prototype),u(S.prototype,i,function(){return this}),e.AsyncIterator=S,e.async=function(t,r,n,a,o){void 0===o&&(o=Promise);var c=new S(s(t,r,n,a),o);return e.isGeneratorFunction(r)?c:c.next().then(function(t){return t.done?t.value:c.next()})},k(L),u(L,l,"Generator"),u(L,c,function(){return this}),u(L,"toString",function(){return"[object Generator]"}),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=N,C.prototype={constructor:C,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(T),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function a(n,a){return i.type="throw",i.arg=e,r.next=n,a&&(r.method="next",r.arg=t),!!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 l=n.call(c,"catchLoc"),u=n.call(c,"finallyLoc");if(l&&u){if(this.prev<c.catchLoc)return a(c.catchLoc,!0);if(this.prev<c.finallyLoc)return a(c.finallyLoc)}else if(l){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(t,e){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"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var c=o?o.completion:{};return c.type=t,c.arg=e,o?(this.method="next",this.next=o.finallyLoc,v):this.complete(c)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),v},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),T(r),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var a=n.arg;T(r)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:N(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),v}},e}var A=function(t){function e(){var t,r;Object(o.a)(this,e);for(var n=arguments.length,c=new Array(n),u=0;u<n;u++)c[u]=arguments[u];return(r=Object(i.a)(this,(t=Object(l.a)(e)).call.apply(t,[this].concat(c)))).state={atteblock:!1,degree:"All",sem:"All",sect:"All",coll:"",table:[],typ:"Blocked"},r.componentDidMount=Object(a.a)(_().mark(function t(){return _().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:r.props.getAttColl();case 1:case"end":return t.stop()}},t)})),r.colldet=function(){var t=Object(a.a)(_().mark(function t(e,n){return _().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:r.setState({coll:n.value}),r.setState({degree:"All"}),r.setState({sem:"All"}),r.setState({sect:"All"}),r.props.getAttDegree(n.value);case 5:case"end":return t.stop()}},t)}));return function(e,r){return t.apply(this,arguments)}}(),r.degreeSel=function(){var t=Object(a.a)(_().mark(function t(e,n){return _().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:r.setState({degree:n.value}),r.setState({sem:"All"}),r.setState({sect:"All"}),r.props.getSemDegr(r.state.coll,n.value);case 4:case"end":return t.stop()}},t)}));return function(e,r){return t.apply(this,arguments)}}(),r.getSem=function(){var t=Object(a.a)(_().mark(function t(e,n){return _().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:r.setState({sem:n.value}),r.setState({sect:"All"}),r.props.getSecSem(r.state.coll,r.state.degree,n.value);case 3:case"end":return t.stop()}},t)}));return function(e,r){return t.apply(this,arguments)}}(),r.handleSec=function(){var t=Object(a.a)(_().mark(function t(e,n){return _().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:r.setState({sect:n.value});case 1:case"end":return t.stop()}},t)}));return function(e,r){return t.apply(this,arguments)}}(),r.handleType=function(){var t=Object(a.a)(_().mark(function t(e,n){return _().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:r.setState({typ:n.value});case 1:case"end":return t.stop()}},t)}));return function(e,r){return t.apply(this,arguments)}}(),r.handleCancel=Object(a.a)(_().mark(function t(){return _().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:r.setState({coll:"",degree:"All",sem:"All",sect:"All",typ:"Blocked",atteblock:!1});case 1:case"end":return t.stop()}},t)})),r.viewAttBlock=Object(a.a)(_().mark(function t(){var e,n,a,o,c,i,l,u,s,f,p;return _().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(e=r.state,n=e.coll,a=e.degree,o=e.sem,c=e.sect,i=e.typ,""!=n){t.next=5;break}return l={header:"Error",content:"Select College"},r.props.showError(l),t.abrupt("return");case 5:if(""!=a){t.next=9;break}return u={header:"Error",content:"Select Degree"},r.props.showError(u),t.abrupt("return");case 9:if(""!=o){t.next=13;break}return s={header:"Error",content:"Select Sem"},r.props.showError(s),t.abrupt("return");case 13:if(""!=c){t.next=17;break}return f={header:"Error",content:"Select Sec"},r.props.showError(f),t.abrupt("return");case 17:if(""!=i){t.next=21;break}return p={header:"Error",content:"Select Type"},r.props.showError(p),t.abrupt("return");case 21:return t.next=23,r.props.viewAtteBlock(r.state.coll,r.state.degree,r.state.sem,r.state.sect,r.state.typ);case 23:return t.next=25,r.setState({table:r.props.attview});case 25:r.setState({atteblock:!0});case 26:case"end":return t.stop()}},t)})),r.handleCheckBox=function(t,e){var n=r.state.table.map(function(r,n){return e===n?("T"==t.status?r.status="F":r.status="T",r):r});r.setState({table:n})},r.handleSave=Object(a.a)(_().mark(function t(){return _().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,r.props.saveAttBlock(r.state.coll,r.state.degree,r.state.sem,r.state.sect,r.state.typ,r.state.table);case 2:case"end":return t.stop()}},t)})),r.reportAttBlock=Object(a.a)(_().mark(function t(){var e,n,a,o,c,i,l,u,s,f,p;return _().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(r.setState({teachSub:!0}),e=r.state,n=e.coll,a=e.degree,o=e.sem,c=e.sect,i=e.typ,""!=n){t.next=6;break}return l={header:"Error",content:"Select College"},r.props.showError(l),t.abrupt("return");case 6:if(""!=a){t.next=10;break}return u={header:"Error",content:"Select Degree"},r.props.showError(u),t.abrupt("return");case 10:if(""!=o){t.next=14;break}return s={header:"Error",content:"Select Sem"},r.props.showError(s),t.abrupt("return");case 14:if(""!=c){t.next=18;break}return f={header:"Error",content:"Select Sec"},r.props.showError(f),t.abrupt("return");case 18:if(""!=i){t.next=22;break}return p={header:"Error",content:"Select Type"},r.props.showError(p),t.abrupt("return");case 22:window.open(O.c+"attBlockReport&univcode="+r.props.univcode+"&coll="+n+"&degree="+a+"&sem="+o+"&sec="+c+"&date="+S()(r.state.date).format("YYYY-MM-DD")+"&format=PDF","_blank");case 23:case"end":return t.stop()}},t)})),r}return Object(u.a)(e,t),Object(c.a)(e,[{key:"render",value:function(){var t=this,e=this.state,r=e.atteblock,a=e.degree,o=e.sem,c=e.coll,i=e.typ,l=e.sect,u=this.props,s=u.attcoll,w=u.attdegre,E=u.attsem,b=u.attsec,x=(u.attview,[{key:1,value:"All",text:"All"}]),L=s.map(function(t){return{key:t.fcollcode,value:t.fcollcode,text:t.fcollcode+" - "+t.fcollname}}),k=w.map(function(t){return{key:t.fdegree,value:t.fdegree,text:t.fdegree+" - "+t.fdescpn}}),S=[].concat(x,Object(n.a)(k)),O=E.map(function(t){return{key:t.fexamno,value:t.fexamno,text:t.fexamno+" - "+t.fexamname}}),_=[].concat(x,Object(n.a)(O)),A=b.map(function(t){return{key:t.fsec,value:t.fsec,text:t.fsec}}),j=[].concat(x,Object(n.a)(A)),T=[].concat([{key:1,value:"Blocked",text:"Blocked"},{key:2,value:"UB",text:"Unblock"}],x);return f.a.createElement("div",null,f.a.createElement(p.a,{fluid:!0},f.a.createElement(p.a.Content,null,f.a.createElement(p.a.Header,{style:{display:"flex"}},f.a.createElement("h4",null,"Attendance Block"),f.a.createElement("div",{className:"ml-auto"},f.a.createElement(h.a,{basic:!0,color:"green",icon:"save",onClick:this.handleSave,content:"Save"}),f.a.createElement(h.a,{basic:!0,color:"blue",onClick:this.reportAttBlock,content:"Report",icon:"file"}),f.a.createElement(h.a,{basic:!0,color:"black",icon:"ban",onClick:this.handleCancel,content:"Cancel"}),f.a.createElement(g.a,{to:"/Dashboard"},f.a.createElement(h.a,{basic:!0,color:"red",content:"Exit",icon:"home"})))),f.a.createElement(d.a,null),f.a.createElement(p.a.Description,null,f.a.createElement(y.a.Group,null,f.a.createElement(y.a.Field,null,f.a.createElement("div",null,f.a.createElement("label",null,"College"),f.a.createElement("label",{style:{marginLeft:"9px"}},":"),f.a.createElement(v.a,{search:!0,selection:!0,style:{width:"400px"},placeholder:"Select Degree",options:L,value:c,onChange:this.colldet})),f.a.createElement("div",{style:{marginTop:"5px"}},f.a.createElement("label",null,"Degree"),f.a.createElement("label",{style:{marginLeft:"12px"}},":"),f.a.createElement(v.a,{search:!0,selection:!0,style:{width:"400px"},placeholder:"Select Degree",options:S,value:a,onChange:this.degreeSel})),f.a.createElement("div",null,f.a.createElement("label",null,"Sem"),f.a.createElement("label",{style:{marginLeft:"27px"}},":"),f.a.createElement(v.a,{search:!0,selection:!0,style:{marginTop:"5px",width:"400px"},placeholder:"Select Sem",options:_,value:o,onChange:this.getSem})),f.a.createElement("div",null,f.a.createElement("label",null,"Section"),f.a.createElement("label",{style:{marginLeft:"9px"}},":"),f.a.createElement(v.a,{search:!0,selection:!0,style:{marginTop:"5px",width:"400px"},placeholder:"Select Section",options:j,value:l,onChange:this.handleSec})),f.a.createElement("div",null,f.a.createElement("label",null,"Type"),f.a.createElement("label",{style:{marginLeft:"25px"}},":"),f.a.createElement(v.a,{search:!0,selection:!0,style:{marginTop:"5px",width:"400px"},placeholder:"Select Type",options:T,value:i,onChange:this.handleType})),f.a.createElement("div",null,f.a.createElement(h.a,{style:{marginTop:"5px",marginLeft:"52px"},content:"View",color:"blue",onClick:this.viewAttBlock})))),r?f.a.createElement(m.a,null,f.a.createElement(m.a.Header,null,f.a.createElement(m.a.Row,null,f.a.createElement(m.a.HeaderCell,{style:{textAlign:"center"},width:1},"Sl. No."),f.a.createElement(m.a.HeaderCell,{width:4},"Teacher Name"),f.a.createElement(m.a.HeaderCell,{width:4},"Class Name"),f.a.createElement(m.a.HeaderCell,{style:{textAlign:"center"},width:1},"Section"),f.a.createElement(m.a.HeaderCell,{width:4},"Subject Name"),f.a.createElement(m.a.HeaderCell,{width:4},"Remarks"),f.a.createElement(m.a.HeaderCell,{style:{textAlign:"center"},width:1},"Status"))),f.a.createElement(m.a.Body,null,this.state.table.map(function(e,r){return f.a.createElement(m.a.Row,{key:r},f.a.createElement(m.a.Cell,{style:{textAlign:"center"}},r+1),f.a.createElement(m.a.Cell,null,e.fteachcode+"-"+e.fteachname),f.a.createElement(m.a.Cell,null,e.fclassid+"-"+e.fclassname),f.a.createElement(m.a.Cell,{style:{textAlign:"center"}},e.fsection),f.a.createElement(m.a.Cell,null,e.fsubcode+"-"+e.fsubname),f.a.createElement(m.a.Cell,null,e.fblockremarks),f.a.createElement(m.a.Cell,{style:{textAlign:"center"}},f.a.createElement("input",{type:"checkbox",name:"status",value:e.status,onChange:function(n){t.handleCheckBox(e,r)},checked:"T"==e.status})))}))):null))))}}]),e}(s.Component);e.default=Object(E.b)(function(t){return{attcoll:t.attcoll,attdegre:t.attdegree,attsem:t.attsem,attsec:t.attsec,attview:t.viewblock,univcode:t.univ.funivcode}},{getAttColl:w.a,getAttDegree:w.b,getSemDegr:w.d,getSecSem:w.c,viewAtteBlock:function(t,e,r,n,o){return function(){var c=Object(a.a)(L().mark(function a(c,i){var l,u,s;return L().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return l=i(),c({type:"SET_LOADER"}),a.next=4,b.a.post("/app.php?a=viewAtteBlock&univcode="+l.univ.funivcode+"&coll="+t+"&degree="+e+"&sem="+r+"&sec="+n+"&typ="+o);case 4:if(u=a.sent,c({type:"UNSET_LOADER"}),-1!==u.data.error_code){a.next=12;break}return s={header:"Error",content:u.data.data.msg},c(Object(x.A)(s)),a.abrupt("return");case 12:c({type:"GET_ATT_BLOCK",payload:u.data});case 13:case"end":return a.stop()}},a)}));return function(t,e){return c.apply(this,arguments)}}()},saveAttBlock:function(t,e,r,n,o,c){return function(){var i=Object(a.a)(L().mark(function a(i,l){var u,s,f,p;return L().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return u=l(),i({type:"SET_LOADER"}),a.next=4,b.a.post("/app.php?a=saveAttBlock&univcode="+u.univ.funivcode+"&mob="+u.user.fmobileno,{data:{coll:t,degree:e,sem:r,sec:n,typ:o,table:c}});case 4:if(s=a.sent,i({type:"UNSET_LOADER"}),-1!==s.data.error_code){a.next=12;break}return f={header:"Error",content:s.data.data.msg},i(Object(x.A)(f)),a.abrupt("return");case 12:p={header:"success",content:s.data.status},i(Object(x.A)(p),{type:"GET_SAVE_ATT_BLOCK",payload:s.data});case 14:case"end":return a.stop()}},a)}));return function(t,e){return i.apply(this,arguments)}}()}})(A)},541:function(t,e,r){"use strict";r.d(e,"a",function(){return i}),r.d(e,"b",function(){return l}),r.d(e,"d",function(){return u}),r.d(e,"c",function(){return s}),r.d(e,"e",function(){return f});var n=r(68),a=r(271),o=r(267);function c(){c=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,a=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",l=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,r){return t[e]=r}}function f(t,e,r,n){var o=e&&e.prototype instanceof g?e:g,c=Object.create(o.prototype),i=new C(n||[]);return a(c,"_invoke",{value:_(t,r,i)}),c}function p(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=f;var h="suspendedStart",d="suspendedYield",y="executing",v="completed",m={};function g(){}function w(){}function E(){}var b={};s(b,i,function(){return this});var x=Object.getPrototypeOf,L=x&&x(x(N([])));L&&L!==r&&n.call(L,i)&&(b=L);var k=E.prototype=g.prototype=Object.create(b);function S(t){["next","throw","return"].forEach(function(e){s(t,e,function(t){return this._invoke(e,t)})})}function O(t,e){function r(a,o,c,i){var l=p(t[a],t,o);if("throw"!==l.type){var u=l.arg,s=u.value;return s&&"object"==typeof s&&n.call(s,"__await")?e.resolve(s.__await).then(function(t){r("next",t,c,i)},function(t){r("throw",t,c,i)}):e.resolve(s).then(function(t){u.value=t,c(u)},function(t){return r("throw",t,c,i)})}i(l.arg)}var o;a(this,"_invoke",{value:function(t,n){function a(){return new e(function(e,a){r(t,n,e,a)})}return o=o?o.then(a,a):a()}})}function _(e,r,n){var a=h;return function(o,c){if(a===y)throw new Error("Generator is already running");if(a===v){if("throw"===o)throw c;return{value:t,done:!0}}for(n.method=o,n.arg=c;;){var i=n.delegate;if(i){var l=A(i,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===h)throw a=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);a=y;var u=p(e,r,n);if("normal"===u.type){if(a=n.done?v:d,u.arg===m)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(a=v,n.method="throw",n.arg=u.arg)}}}function A(e,r){var n=r.method,a=e.iterator[n];if(a===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,A(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),m;var o=p(a,e.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,m;var c=o.arg;return c?c.done?(r[e.resultName]=c.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,m):c:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,m)}function j(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function T(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function C(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(j,this),this.reset(!0)}function N(e){if(e||""===e){var r=e[i];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var a=-1,o=function r(){for(;++a<e.length;)if(n.call(e,a))return r.value=e[a],r.done=!1,r;return r.value=t,r.done=!0,r};return o.next=o}}throw new TypeError(typeof e+" is not iterable")}return w.prototype=E,a(k,"constructor",{value:E,configurable:!0}),a(E,"constructor",{value:w,configurable:!0}),w.displayName=s(E,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===w||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,E):(t.__proto__=E,s(t,u,"GeneratorFunction")),t.prototype=Object.create(k),t},e.awrap=function(t){return{__await:t}},S(O.prototype),s(O.prototype,l,function(){return this}),e.AsyncIterator=O,e.async=function(t,r,n,a,o){void 0===o&&(o=Promise);var c=new O(f(t,r,n,a),o);return e.isGeneratorFunction(r)?c:c.next().then(function(t){return t.done?t.value:c.next()})},S(k),s(k,u,"Generator"),s(k,i,function(){return this}),s(k,"toString",function(){return"[object Generator]"}),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=N,C.prototype={constructor:C,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(T),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function a(n,a){return i.type="throw",i.arg=e,r.next=n,a&&(r.method="next",r.arg=t),!!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 l=n.call(c,"catchLoc"),u=n.call(c,"finallyLoc");if(l&&u){if(this.prev<c.catchLoc)return a(c.catchLoc,!0);if(this.prev<c.finallyLoc)return a(c.finallyLoc)}else if(l){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(t,e){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"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var c=o?o.completion:{};return c.type=t,c.arg=e,o?(this.method="next",this.next=o.finallyLoc,m):this.complete(c)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),m},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),T(r),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var a=n.arg;T(r)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:N(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),m}},e}var i=function(){return function(){var t=Object(n.a)(c().mark(function t(e,r){var n,i,l,u;return c().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return n=r(),e({type:"SET_LOADER"}),i=n.user.fcollcode?n.user.fcollcode:"",t.next=5,a.a.post("/app.php?a=getAttColl&univcode="+n.univ.funivcode+"&collcode="+i);case 5:if(l=t.sent,e({type:"UNSET_LOADER"}),-1!==l.data.error_code){t.next=13;break}return u={header:"Error",content:l.data.data.msg},e(Object(o.A)(u)),t.abrupt("return");case 13:e({type:"GET_ATT_COLL",payload:l.data});case 14:case"end":return t.stop()}},t)}));return function(e,r){return t.apply(this,arguments)}}()},l=function(t){return function(){var e=Object(n.a)(c().mark(function e(r,n){var i,l,u;return c().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return i=n(),r({type:"SET_LOADER"}),e.next=4,a.a.post("/app.php?a=getAttDegree&univcode="+i.univ.funivcode+"&coll="+t);case 4:if(l=e.sent,r({type:"UNSET_LOADER"}),-1!==l.data.error_code){e.next=12;break}return u={header:"Error",content:l.data.data.msg},r(Object(o.A)(u)),e.abrupt("return");case 12:r({type:"GET_ATT_DEGREE",payload:l.data});case 13:case"end":return e.stop()}},e)}));return function(t,r){return e.apply(this,arguments)}}()},u=function(t,e){return function(){var r=Object(n.a)(c().mark(function r(n,i){var l,u,s;return c().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return l=i(),n({type:"SET_LOADER"}),r.next=4,a.a.post("/app.php?a=getSemDegr&univcode="+l.univ.funivcode+"&coll="+t+"&degree="+e);case 4:if(u=r.sent,n({type:"UNSET_LOADER"}),-1!==u.data.error_code){r.next=12;break}return s={header:"Error",content:u.data.data.msg},n(Object(o.A)(s)),r.abrupt("return");case 12:n({type:"GET_ATT_SEM",payload:u.data});case 13:case"end":return r.stop()}},r)}));return function(t,e){return r.apply(this,arguments)}}()},s=function(t,e,r){return function(){var i=Object(n.a)(c().mark(function n(i,l){var u,s,f;return c().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return u=l(),i({type:"SET_LOADER"}),n.next=4,a.a.post("/app.php?a=getSecSem&univcode="+u.univ.funivcode+"&coll="+t+"&degree="+e+"&sem="+r);case 4:if(s=n.sent,i({type:"UNSET_LOADER"}),-1!==s.data.error_code){n.next=12;break}return f={header:"Error",content:s.data.data.msg},i(Object(o.A)(f)),n.abrupt("return");case 12:i({type:"GET_ATT_SEC",payload:s.data});case 13:case"end":return n.stop()}},n)}));return function(t,e){return i.apply(this,arguments)}}()},f=function(t,e,r,i,l,u,s,f,p){return function(){var h=Object(n.a)(c().mark(function n(h,d){var y,v,m;return c().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return y=d(),h({type:"SET_LOADER"}),n.next=4,a.a.post("/app.php?a=viewAttSet&univcode="+y.univ.funivcode+"&coll="+t+"&degree="+e+"&sem="+r+"&sec="+i+"&typ="+l+"&date="+u+"&datetyp="+s+"&todate="+f+"&datetotyp="+p);case 4:if(v=n.sent,h({type:"UNSET_LOADER"}),-1!==v.data.error_code){n.next=12;break}return m={header:"Error",content:v.data.data.msg},h(Object(o.A)(m),h({type:"CLEAR_ATT_VIEW",payload:v.data})),n.abrupt("return");case 12:h({type:"GET_ATT_VIEW",payload:v.data});case 13:case"end":return n.stop()}},n)}));return function(t,e){return h.apply(this,arguments)}}()}}}]);
//# sourceMappingURL=227.db06dea5.chunk.js.map