Linux ip-172-26-7-228 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64
Your IP : 3.142.130.127
(window.webpackJsonp=window.webpackJsonp||[]).push([[248,307],{1349:function(e,t,r){"use strict";r.r(t);var n=r(68),a=r(0),o=r(100),i=r(101),l=r(103),c=r(102),u=r(104),s=r(2),f=r.n(s),h=r(1377),p=r(1343),d=r(272),y=r(1335),m=r(1337),v=r(941),g=r(271),w=r(267);function E(){E=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",l=o.asyncIterator||"@@asyncIterator",c=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),l=new N(n||[]);return a(i,"_invoke",{value:A(e,r,l)}),i}function f(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",p="suspendedYield",d="executing",y="completed",m={};function v(){}function g(){}function w(){}var b={};u(b,i,function(){return this});var x=Object.getPrototypeOf,L=x&&x(x(T([])));L&&L!==r&&n.call(L,i)&&(b=L);var O=w.prototype=v.prototype=Object.create(b);function C(e){["next","throw","return"].forEach(function(t){u(e,t,function(e){return this._invoke(t,e)})})}function j(e,t){function r(a,o,i,l){var c=f(e[a],e,o);if("throw"!==c.type){var u=c.arg,s=u.value;return s&&"object"==typeof s&&n.call(s,"__await")?t.resolve(s.__await).then(function(e){r("next",e,i,l)},function(e){r("throw",e,i,l)}):t.resolve(s).then(function(e){u.value=e,i(u)},function(e){return r("throw",e,i,l)})}l(c.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===d)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 l=n.delegate;if(l){var c=k(l,n);if(c){if(c===m)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(a===h)throw a=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);a=d;var u=f(t,r,n);if("normal"===u.type){if(a=n.done?y:p,u.arg===m)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(a=y,n.method="throw",n.arg=u.arg)}}}function k(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,k(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=f(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 S(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 _(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function N(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function T(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 g.prototype=w,a(O,"constructor",{value:w,configurable:!0}),a(w,"constructor",{value:g,configurable:!0}),g.displayName=u(w,c,"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,w):(e.__proto__=w,u(e,c,"GeneratorFunction")),e.prototype=Object.create(O),e},t.awrap=function(e){return{__await:e}},C(j.prototype),u(j.prototype,l,function(){return this}),t.AsyncIterator=j,t.async=function(e,r,n,a,o){void 0===o&&(o=Promise);var i=new j(s(e,r,n,a),o);return t.isGeneratorFunction(r)?i:i.next().then(function(e){return e.done?e.value:i.next()})},C(O),u(O,c,"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=T,N.prototype={constructor:N,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)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 l.type="throw",l.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],l=i.completion;if("root"===i.tryLoc)return a("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return a(i.catchLoc,!0);if(this.prev<i.finallyLoc)return a(i.finallyLoc)}else if(c){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),_(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;_(r)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:T(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),m}},t}var b=function(e){return function(){var t=Object(n.a)(E().mark(function t(r,n){var a,o,i,l,c;return E().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return a=n(),r({type:"SET_LOADER"}),o=""!=a.user.fcurtype&&a.user.fcurtype>=500?a.user.fcollcode:"",t.next=5,g.a.get("/app.php",{params:{a:"admStats",univcode:a.univ.funivcode,fdeggrp:a.user.fdeggrp,fcollcode:o,frtype:e}});case 5:i=t.sent,r({type:"UNSET_LOADER"}),"object"!==typeof i.data?(l={header:"Error",content:"Something went wrong"},r(Object(w.A)(l))):-1==i.data.error_code?(c={header:"Error",content:i.data.data.msg},r(Object(w.A)(c))):r({type:"GET_ADM_STATS",payload:i.data});case 8:case"end":return t.stop()}},t)}));return function(e,r){return t.apply(this,arguments)}}()},x=r(105),L=r(1338),O=function(e){function t(){var e,r;Object(o.a)(this,t);for(var n=arguments.length,a=new Array(n),i=0;i<n;i++)a[i]=arguments[i];return(r=Object(l.a)(this,(e=Object(c.a)(t)).call.apply(e,[this].concat(a)))).state={},r}return Object(u.a)(t,e),Object(i.a)(t,[{key:"render",value:function(){var e=this.props.collAdmStats;return f.a.createElement(f.a.Fragment,null,f.a.createElement(L.a,{celled:!0,padded:!0,selectable:!0},f.a.createElement(L.a.Header,null,f.a.createElement(L.a.Row,{textAlign:"center"},f.a.createElement(L.a.HeaderCell,null,"SL. No."),f.a.createElement(L.a.HeaderCell,null,"Degree Code"),f.a.createElement(L.a.HeaderCell,null,"Degree Name"),f.a.createElement(L.a.HeaderCell,null,"Upd. by Coll."),f.a.createElement(L.a.HeaderCell,null,"App. filled"),f.a.createElement(L.a.HeaderCell,null,"Pending Count"),f.a.createElement(L.a.HeaderCell,null,"Ack Done"),f.a.createElement(L.a.HeaderCell,null,"Ack Pending"),f.a.createElement(L.a.HeaderCell,null,"Approval Done"),f.a.createElement(L.a.HeaderCell,null,"Approval Pending"))),f.a.createElement(L.a.Body,null,e.map(function(e,t){return f.a.createElement(L.a.Row,{key:t+1},f.a.createElement(L.a.Cell,{textAlign:"center"},t+1),f.a.createElement(L.a.Cell,{textAlign:"center"},e.fdegree),f.a.createElement(L.a.Cell,null,e.fdescpn),f.a.createElement(L.a.Cell,{textAlign:"center"},e.fcount),f.a.createElement(L.a.Cell,{textAlign:"center"},e.ffinsubdone),f.a.createElement(L.a.Cell,{textAlign:"center"},e.fadmpend),f.a.createElement(L.a.Cell,{textAlign:"center"},e.fackdone),f.a.createElement(L.a.Cell,{textAlign:"center"},e.fackpend),f.a.createElement(L.a.Cell,{textAlign:"center"},e.fapprdone),f.a.createElement(L.a.Cell,{textAlign:"center"},e.fapprpend))}))))}}]),t}(s.Component),C=Object(x.b)(function(e){return{collAdmStats:e.admCollStats}},{showError:w.A})(O);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",l=o.asyncIterator||"@@asyncIterator",c=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),l=new N(n||[]);return a(i,"_invoke",{value:A(e,r,l)}),i}function f(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",p="suspendedYield",d="executing",y="completed",m={};function v(){}function g(){}function w(){}var E={};u(E,i,function(){return this});var b=Object.getPrototypeOf,x=b&&b(b(T([])));x&&x!==r&&n.call(x,i)&&(E=x);var L=w.prototype=v.prototype=Object.create(E);function O(e){["next","throw","return"].forEach(function(t){u(e,t,function(e){return this._invoke(t,e)})})}function C(e,t){function r(a,o,i,l){var c=f(e[a],e,o);if("throw"!==c.type){var u=c.arg,s=u.value;return s&&"object"==typeof s&&n.call(s,"__await")?t.resolve(s.__await).then(function(e){r("next",e,i,l)},function(e){r("throw",e,i,l)}):t.resolve(s).then(function(e){u.value=e,i(u)},function(e){return r("throw",e,i,l)})}l(c.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===d)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 l=n.delegate;if(l){var c=k(l,n);if(c){if(c===m)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(a===h)throw a=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);a=d;var u=f(t,r,n);if("normal"===u.type){if(a=n.done?y:p,u.arg===m)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(a=y,n.method="throw",n.arg=u.arg)}}}function k(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,k(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=f(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 S(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 _(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function N(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function T(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 g.prototype=w,a(L,"constructor",{value:w,configurable:!0}),a(w,"constructor",{value:g,configurable:!0}),g.displayName=u(w,c,"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,w):(e.__proto__=w,u(e,c,"GeneratorFunction")),e.prototype=Object.create(L),e},t.awrap=function(e){return{__await:e}},O(C.prototype),u(C.prototype,l,function(){return this}),t.AsyncIterator=C,t.async=function(e,r,n,a,o){void 0===o&&(o=Promise);var i=new C(s(e,r,n,a),o);return t.isGeneratorFunction(r)?i:i.next().then(function(e){return e.done?e.value:i.next()})},O(L),u(L,c,"Generator"),u(L,i,function(){return this}),u(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=T,N.prototype={constructor:N,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)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 l.type="throw",l.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],l=i.completion;if("root"===i.tryLoc)return a("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return a(i.catchLoc,!0);if(this.prev<i.finallyLoc)return a(i.finallyLoc)}else if(c){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),_(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;_(r)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:T(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),m}},t}var A=function(e){function t(){var e,r;Object(o.a)(this,t);for(var a=arguments.length,i=new Array(a),u=0;u<a;u++)i[u]=arguments[u];return(r=Object(l.a)(this,(e=Object(c.a)(t)).call.apply(e,[this].concat(i)))).state={expandedRows:null,curCollcode:""},r.handleRowClick=function(){var e=Object(n.a)(j().mark(function e(t,n){var a;return j().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:a=r.state.expandedRows,r.setState({expandedRows:t===a?null:t,curCollcode:n});case 2:case"end":return e.stop()}},e)}));return function(t,r){return e.apply(this,arguments)}}(),r}return Object(u.a)(t,e),Object(i.a)(t,[{key:"renderItem",value:function(e,t){var r=this,n=[f.a.createElement(L.a.Row,{key:"row-data-"+t,onClick:function(){return r.handleRowClick(t,e.fcollcode)}},f.a.createElement(L.a.Cell,{textAlign:"center"},t+1),f.a.createElement(L.a.Cell,{textAlign:"center"},e.fcollcode),f.a.createElement(L.a.Cell,null,e.fcollname),f.a.createElement(L.a.Cell,null,e.fmobile,"/ ",e.fphone),f.a.createElement(L.a.Cell,{textAlign:"center"},e.fcount),f.a.createElement(L.a.Cell,{textAlign:"center"},e.ffinsubdone),f.a.createElement(L.a.Cell,{textAlign:"center"},e.fadmpend),f.a.createElement(L.a.Cell,{textAlign:"center"},e.fackdone),f.a.createElement(L.a.Cell,{textAlign:"center"},e.fackpend),f.a.createElement(L.a.Cell,{textAlign:"center"},e.fapprdone),f.a.createElement(L.a.Cell,{textAlign:"center"},e.fapprpend))];if(this.state.expandedRows==t){var a=this.props.collAdmStats.collDegDet;a.length>0&&n.push(f.a.createElement(f.a.Fragment,null,a.filter(function(e){return e.fcollcode==r.state.curCollcode}).map(function(e,t){return f.a.createElement(L.a.Row,{key:t+1},f.a.createElement(L.a.Cell,{colSpan:"4"},e.fdegree," - ",e.fdescpn),f.a.createElement(L.a.Cell,{textAlign:"center"},e.fcount),f.a.createElement(L.a.Cell,{textAlign:"center"},e.ffinsubdone),f.a.createElement(L.a.Cell,{textAlign:"center"},e.fadmpend),f.a.createElement(L.a.Cell,{textAlign:"center"},e.fackdone),f.a.createElement(L.a.Cell,{textAlign:"center"},e.fackpend),f.a.createElement(L.a.Cell,{textAlign:"center"},e.fapprdone),f.a.createElement(L.a.Cell,{textAlign:"center"},e.fapprpend))})))}return n}},{key:"render",value:function(){var e=this,t=this.props.collAdmStats.collDet,r=[];return t.map(function(t,n){var a=e.renderItem(t,n);r=r.concat(a)}),f.a.createElement("div",{style:{overflowX:"scroll"}},f.a.createElement(L.a,{celled:!0,selectable:!0,className:"animated fadeIn",padded:!0},f.a.createElement(L.a.Header,null,f.a.createElement(L.a.Row,{textAlign:"center"},f.a.createElement(L.a.HeaderCell,null,"SL. No."),f.a.createElement(L.a.HeaderCell,null,"College Code"),f.a.createElement(L.a.HeaderCell,null,"College Name"),f.a.createElement(L.a.HeaderCell,null,"Contact"),f.a.createElement(L.a.HeaderCell,null,"Upd. by Coll."),f.a.createElement(L.a.HeaderCell,null,"App. filled"),f.a.createElement(L.a.HeaderCell,null,"Pending Count"),f.a.createElement(L.a.HeaderCell,null,"Ack Done"),f.a.createElement(L.a.HeaderCell,null,"Ack Pending"),f.a.createElement(L.a.HeaderCell,null,"Approval Done"),f.a.createElement(L.a.HeaderCell,null,"Approval Pending"))),f.a.createElement(L.a.Body,null,r)))}}]),t}(s.Component),k=Object(x.b)(function(e){return{collAdmStats:e.admCollStats}},{showError:w.A,getAdmStats:b})(A),S=r(273);function _(){_=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",l=o.asyncIterator||"@@asyncIterator",c=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),l=new N(n||[]);return a(i,"_invoke",{value:j(e,r,l)}),i}function f(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",p="suspendedYield",d="executing",y="completed",m={};function v(){}function g(){}function w(){}var E={};u(E,i,function(){return this});var b=Object.getPrototypeOf,x=b&&b(b(T([])));x&&x!==r&&n.call(x,i)&&(E=x);var L=w.prototype=v.prototype=Object.create(E);function O(e){["next","throw","return"].forEach(function(t){u(e,t,function(e){return this._invoke(t,e)})})}function C(e,t){function r(a,o,i,l){var c=f(e[a],e,o);if("throw"!==c.type){var u=c.arg,s=u.value;return s&&"object"==typeof s&&n.call(s,"__await")?t.resolve(s.__await).then(function(e){r("next",e,i,l)},function(e){r("throw",e,i,l)}):t.resolve(s).then(function(e){u.value=e,i(u)},function(e){return r("throw",e,i,l)})}l(c.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===d)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 l=n.delegate;if(l){var c=A(l,n);if(c){if(c===m)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(a===h)throw a=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);a=d;var u=f(t,r,n);if("normal"===u.type){if(a=n.done?y:p,u.arg===m)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(a=y,n.method="throw",n.arg=u.arg)}}}function A(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,A(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=f(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 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 S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function N(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function T(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 g.prototype=w,a(L,"constructor",{value:w,configurable:!0}),a(w,"constructor",{value:g,configurable:!0}),g.displayName=u(w,c,"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,w):(e.__proto__=w,u(e,c,"GeneratorFunction")),e.prototype=Object.create(L),e},t.awrap=function(e){return{__await:e}},O(C.prototype),u(C.prototype,l,function(){return this}),t.AsyncIterator=C,t.async=function(e,r,n,a,o){void 0===o&&(o=Promise);var i=new C(s(e,r,n,a),o);return t.isGeneratorFunction(r)?i:i.next().then(function(e){return e.done?e.value:i.next()})},O(L),u(L,c,"Generator"),u(L,i,function(){return this}),u(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=T,N.prototype={constructor:N,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(S),!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 l.type="throw",l.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],l=i.completion;if("root"===i.tryLoc)return a("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return a(i.catchLoc,!0);if(this.prev<i.finallyLoc)return a(i.finallyLoc)}else if(c){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),S(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;S(r)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:T(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),m}},t}var N=function(e){function t(){var e,r;Object(o.a)(this,t);for(var i=arguments.length,u=new Array(i),s=0;s<i;s++)u[s]=arguments[s];return(r=Object(l.a)(this,(e=Object(c.a)(t)).call.apply(e,[this].concat(u)))).state={rtype:"",shwTbl:!1},r.handleChange=function(e,t){switch(t.type){case"text":r.setState(Object(a.a)({},t.name,t.value));default:r.setState(Object(a.a)({},t.name,t.value))}r.setState({shwTbl:!1})},r.handleSubmit=Object(n.a)(_().mark(function e(){var t;return _().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t=r.state.rtype,e.next=3,r.props.getAdmStats(t);case 3:r.setState({shwTbl:!0});case 4:case"end":return e.stop()}},e)})),r}return Object(u.a)(t,e),Object(i.a)(t,[{key:"render",value:function(){var e=Object(S.i)();return f.a.createElement(f.a.Fragment,null,f.a.createElement(h.a,{fluid:!0,className:"animated fadeIn"},f.a.createElement(h.a.Content,null,f.a.createElement(h.a.Header,{style:{display:"flex"}},f.a.createElement("h4",null,"Admission Statistics"),f.a.createElement("div",{className:"ml-auto"},f.a.createElement(v.a,{to:"/dashboard"},f.a.createElement(p.a,{basic:!0,color:"red",content:"Exit",icon:"home"})))),f.a.createElement(d.a,null),f.a.createElement(h.a.Description,{style:{height:"".concat(e,"px"),overflowY:"auto"}},f.a.createElement(y.a,null,f.a.createElement(y.a.Field,{width:6},f.a.createElement("label",null,"Select"),f.a.createElement(m.a,{placeholder:"Select here",search:!0,selection:!0,id:"rtype",name:"rtype",options:[{key:"c",value:"collwise",text:"College Wise"},{key:"d",value:"degwise",text:"Degree Wise"}],onChange:this.handleChange}))),f.a.createElement(p.a,{basic:!0,size:"small",color:"green",content:"Submit",onClick:this.handleSubmit,className:"mt-2 mb-3"}),"collwise"==this.state.rtype&&this.state.shwTbl&&f.a.createElement(k,null),"degwise"==this.state.rtype&&this.state.shwTbl&&f.a.createElement(C,null)))))}}]),t}(s.Component);t.default=Object(x.b)(function(e){return{collAdmStats:e.admCollStats}},{getAdmStats:b,showError:w.A})(N)},272:function(e,t,r){"use strict";var n=r(270),a=r.n(n),o=r(268),i=r.n(o),l=r(2),c=r.n(l),u=r(349),s=r(613),f=r(611),h=r(269);function p(e){var t=e.children,r=e.className,n=e.clearing,o=e.content,l=e.fitted,d=e.hidden,y=e.horizontal,m=e.inverted,v=e.section,g=e.vertical,w=i()("ui",Object(u.a)(n,"clearing"),Object(u.a)(l,"fitted"),Object(u.a)(d,"hidden"),Object(u.a)(y,"horizontal"),Object(u.a)(m,"inverted"),Object(u.a)(v,"section"),Object(u.a)(g,"vertical"),"divider",r),E=Object(s.a)(p,e),b=Object(f.a)(p,e);return c.a.createElement(b,a()({},E,{className:w}),h.a.isNil(t)?o:t)}p.handledProps=["as","children","className","clearing","content","fitted","hidden","horizontal","inverted","section","vertical"],p.propTypes={},t.a=p}}]);
//# sourceMappingURL=248.e547d550.chunk.js.map
|