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 : 3.145.55.25


Current Path : /var/www/egov/build/static/js/
Upload File :
Current File : /var/www/egov/build/static/js/23.48b2cd18.chunk.js

(window.webpackJsonp=window.webpackJsonp||[]).push([[23],{1140:function(e,t,r){"use strict";r.r(t);var n=r(68),a=r(1),o=r(3),c=r(100),i=r(101),u=r(103),l=r(102),s=r(104),p=r(2),f=r.n(p),h=(r(304),r(1377)),d=r(1343),g=r(1335),v=r(1337),y=r(321),m=r(272),E=r(1338),w=r(105),b=r(267),x=r(271),O=r(286);function L(){L=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",u=o.toStringTag||"@@toStringTag";function l(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,r){return e[t]=r}}function s(e,t,r,n){var o=t&&t.prototype instanceof y?t:y,c=Object.create(o.prototype),i=new A(n||[]);return a(c,"_invoke",{value:C(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=s;var f="suspendedStart",h="suspendedYield",d="executing",g="completed",v={};function y(){}function m(){}function E(){}var w={};l(w,c,function(){return this});var b=Object.getPrototypeOf,x=b&&b(b(R([])));x&&x!==r&&n.call(x,c)&&(w=x);var O=E.prototype=y.prototype=Object.create(w);function _(e){["next","throw","return"].forEach(function(t){l(e,t,function(e){return this._invoke(t,e)})})}function j(e,t){function r(a,o,c,i){var u=p(e[a],e,o);if("throw"!==u.type){var l=u.arg,s=l.value;return s&&"object"==typeof s&&n.call(s,"__await")?t.resolve(s.__await).then(function(e){r("next",e,c,i)},function(e){r("throw",e,c,i)}):t.resolve(s).then(function(e){l.value=e,c(l)},function(e){return r("throw",e,c,i)})}i(u.arg)}var o;a(this,"_invoke",{value:function(e,n){function a(){return new t(function(t,a){r(e,n,t,a)})}return o=o?o.then(a,a):a()}})}function C(t,r,n){var a=f;return function(o,c){if(a===d)throw new Error("Generator is already running");if(a===g){if("throw"===o)throw c;return{value:e,done:!0}}for(n.method=o,n.arg=c;;){var i=n.delegate;if(i){var u=G(i,n);if(u){if(u===v)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(a===f)throw a=g,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);a=d;var l=p(t,r,n);if("normal"===l.type){if(a=n.done?g:h,l.arg===v)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(a=g,n.method="throw",n.arg=l.arg)}}}function G(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,G(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 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 k(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function A(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function R(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 m.prototype=E,a(O,"constructor",{value:E,configurable:!0}),a(E,"constructor",{value:m,configurable:!0}),m.displayName=l(E,u,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===m||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,E):(e.__proto__=E,l(e,u,"GeneratorFunction")),e.prototype=Object.create(O),e},t.awrap=function(e){return{__await:e}},_(j.prototype),l(j.prototype,i,function(){return this}),t.AsyncIterator=j,t.async=function(e,r,n,a,o){void 0===o&&(o=Promise);var c=new j(s(e,r,n,a),o);return t.isGeneratorFunction(r)?c:c.next().then(function(e){return e.done?e.value:c.next()})},_(O),l(O,u,"Generator"),l(O,c,function(){return this}),l(O,"toString",function(){return"[object Generator]"}),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=R,A.prototype={constructor:A,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 u=n.call(c,"catchLoc"),l=n.call(c,"finallyLoc");if(u&&l){if(this.prev<c.catchLoc)return a(c.catchLoc,!0);if(this.prev<c.finallyLoc)return a(c.finallyLoc)}else if(u){if(this.prev<c.catchLoc)return a(c.catchLoc,!0)}else{if(!l)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:R(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),v}},t}var _=r(406),j=r(273);function C(){C=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",u=o.toStringTag||"@@toStringTag";function l(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,r){return e[t]=r}}function s(e,t,r,n){var o=t&&t.prototype instanceof y?t:y,c=Object.create(o.prototype),i=new A(n||[]);return a(c,"_invoke",{value:j(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=s;var f="suspendedStart",h="suspendedYield",d="executing",g="completed",v={};function y(){}function m(){}function E(){}var w={};l(w,c,function(){return this});var b=Object.getPrototypeOf,x=b&&b(b(R([])));x&&x!==r&&n.call(x,c)&&(w=x);var O=E.prototype=y.prototype=Object.create(w);function L(e){["next","throw","return"].forEach(function(t){l(e,t,function(e){return this._invoke(t,e)})})}function _(e,t){function r(a,o,c,i){var u=p(e[a],e,o);if("throw"!==u.type){var l=u.arg,s=l.value;return s&&"object"==typeof s&&n.call(s,"__await")?t.resolve(s.__await).then(function(e){r("next",e,c,i)},function(e){r("throw",e,c,i)}):t.resolve(s).then(function(e){l.value=e,c(l)},function(e){return r("throw",e,c,i)})}i(u.arg)}var o;a(this,"_invoke",{value:function(e,n){function a(){return new t(function(t,a){r(e,n,t,a)})}return o=o?o.then(a,a):a()}})}function j(t,r,n){var a=f;return function(o,c){if(a===d)throw new Error("Generator is already running");if(a===g){if("throw"===o)throw c;return{value:e,done:!0}}for(n.method=o,n.arg=c;;){var i=n.delegate;if(i){var u=G(i,n);if(u){if(u===v)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(a===f)throw a=g,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);a=d;var l=p(t,r,n);if("normal"===l.type){if(a=n.done?g:h,l.arg===v)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(a=g,n.method="throw",n.arg=l.arg)}}}function G(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,G(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 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 k(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function A(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function R(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 m.prototype=E,a(O,"constructor",{value:E,configurable:!0}),a(E,"constructor",{value:m,configurable:!0}),m.displayName=l(E,u,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===m||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,E):(e.__proto__=E,l(e,u,"GeneratorFunction")),e.prototype=Object.create(O),e},t.awrap=function(e){return{__await:e}},L(_.prototype),l(_.prototype,i,function(){return this}),t.AsyncIterator=_,t.async=function(e,r,n,a,o){void 0===o&&(o=Promise);var c=new _(s(e,r,n,a),o);return t.isGeneratorFunction(r)?c:c.next().then(function(e){return e.done?e.value:c.next()})},L(O),l(O,u,"Generator"),l(O,c,function(){return this}),l(O,"toString",function(){return"[object Generator]"}),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=R,A.prototype={constructor:A,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 u=n.call(c,"catchLoc"),l=n.call(c,"finallyLoc");if(u&&l){if(this.prev<c.catchLoc)return a(c.catchLoc,!0);if(this.prev<c.finallyLoc)return a(c.finallyLoc)}else if(u){if(this.prev<c.catchLoc)return a(c.catchLoc,!0)}else{if(!l)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:R(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),v}},t}var G=function(e){function t(){var e,r;Object(c.a)(this,t);for(var i=arguments.length,s=new Array(i),p=0;p<i;p++)s[p]=arguments[p];return(r=Object(u.a)(this,(e=Object(l.a)(t)).call.apply(e,[this].concat(s)))).state={frmsubmit:!1,lrvopt:[],fdggrpopt:[],fdegopt:[],fcollopt:[],degopt:[]},r.handleChange=function(e,t){if(r.props.changeGrpCreation(t.name,t.value),"fdeggrp"===t.name&&""!=t.value){r.props.getDegree(t.name,t.value),r.props.changeGrpCreation("fdegree",""),r.props.changeGrpCreation("fcollcode","");var n=[{key:"All",value:"All",text:"All"}];setTimeout(function(){if(0!==r.props.degree.length){var e=r.props.degree.map(function(e,t){return{key:t,value:e.fdegree,text:"".concat(e.fdegree," - ").concat(e.fdescpn)}});r.setState({degopt:[].concat(n,Object(o.a)(e))})}else r.setState({degopt:[].concat(n)})},1e3)}"fdegree"===t.name&&""!=t.value&&r.props.getCollGrp(t.name,t.value),"flevel"!==t.name||"Teacher"!=t.value&&"Principal"!=t.value||r.props.getCollTeachers(),r.setState({frmsubmit:!1})},r.handleCheckbox=function(e,t,n){var o=Object(a.a)({},t,{checked:e.target.checked?"T":"F"});r.props.changeGrpData(o,t.fcode)},r.submitFrom=Object(n.a)(C().mark(function e(){return C().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r.props.submitFromData();case 2:r.setState({frmsubmit:!0});case 3:case"end":return e.stop()}},e)})),r.addMembers=Object(n.a)(C().mark(function e(){return C().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r.props.addMembersToGroup(r.props.match.params.groupId);case 2:case"end":return e.stop()}},e)})),r}return Object(s.a)(t,e),Object(i.a)(t,[{key:"componentDidMount",value:function(){var e=Object(n.a)(C().mark(function e(){var t,r;return C().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.props.getLevel();case 2:return e.next=4,this.props.getGroupHeadForEdit(this.props.match.params.groupId);case 4:"021"==this.props.funivcode&&"500"==this.props.fcurtype?(t=[{key:"Teacher",value:"Teacher",text:"Teacher"},{key:"Student",value:"Student",text:"Student"}],this.setState({lrvopt:t})):"021"==this.props.funivcode&&"308"==this.props.fcurtype?(r=[{key:"Principal",value:"Principal",text:"Principal"},{key:"Teacher",value:"Teacher",text:"Teacher"},{key:"Student",value:"Student",text:"Student"}],this.setState({lrvopt:r})):this.setState({lrvopt:this.props.flevels.map(function(e,t){return{key:t,value:e.FLELNAME,text:e.FLELNAME}})}),this.setState({fdggrpopt:this.props.deggrp.map(function(e,t){return{key:t,value:e.fdeggrp,text:"".concat(e.fdeggrp," - ").concat(e.fdescpn)}}),fcollopt:this.props.coll.map(function(e,t){return{key:t,value:e.fcollcode,text:"".concat(e.fcollcode," - ").concat(e.fcollname)}})});case 6:case"end":return e.stop()}},e,this)}));return function(){return e.apply(this,arguments)}}()},{key:"render",value:function(){var e=this,t=this.props.grpCreation,r=(t.level,t.flevel),n=t.fdeggrp,a=(t.college,t.degree,t.fcollcode),o=t.fdegree,c=t.fgrptype,i=(t.fcollege,this.props.tabledata),u=Object(j.i)();this.props.deggrp;return f.a.createElement("div",null,f.a.createElement(h.a,{fluid:!0},f.a.createElement(h.a.Content,null,f.a.createElement(h.a.Header,{style:{display:"flex"}},f.a.createElement("h4",null,"Add Members to ",f.a.createElement("b",null,this.props.grp.head.ftitle)),f.a.createElement("div",{className:"ml-auto"},f.a.createElement(d.a,{basic:!0,size:"mini",color:"blue",content:"Save",onClick:this.addMembers,icon:"add"}))),f.a.createElement(h.a.Description,{style:{overflowY:"auto",height:"".concat(u-12,"px"),padding:"1.3em"}},f.a.createElement(g.a,null,f.a.createElement("div",null,f.a.createElement("div",null,f.a.createElement(g.a.Group,null,f.a.createElement(g.a.Field,{width:16},f.a.createElement("label",null,"Type of Members"),f.a.createElement(v.a,{placeholder:"Select Level",search:!0,selection:!0,name:"flevel",value:r,options:this.state.lrvopt,onChange:this.handleChange}))),"Student"==r?f.a.createElement(g.a.Group,null,f.a.createElement(g.a.Field,{width:16},f.a.createElement("label",null,"Degree Group"),f.a.createElement(v.a,{placeholder:"Select Degree Group",search:!0,selection:!0,name:"fdeggrp",value:n,options:this.state.fdggrpopt,onChange:this.handleChange}))):null,"Student"==r?f.a.createElement(g.a.Group,null,f.a.createElement(g.a.Field,{width:16},f.a.createElement("label",null,"Select Degree"),f.a.createElement(v.a,{placeholder:"Select Degree Range",search:!0,selection:!0,name:"fdegree",value:o,options:this.state.degopt,onChange:this.handleChange}))):null,"600"==this.props.user.fcurtype||"500"==this.props.user.fcurtype?null:f.a.createElement(g.a.Group,null,f.a.createElement(g.a.Field,{width:16},f.a.createElement("label",null,"Select College"),f.a.createElement(v.a,{placeholder:"Select College Range",search:!0,selection:!0,name:"fcollcode",value:a,options:this.state.fcollopt,onChange:this.handleChange}))),f.a.createElement(g.a.Group,{inline:!0},f.a.createElement("label",null,"Type Group"),f.a.createElement(g.a.Radio,{label:"All",value:"A",name:"fgrptype",checked:"A"==c,onChange:this.handleChange}),"All"!=a&&"All"!=o||"Student"!=r?f.a.createElement(g.a.Radio,{label:"Custom",value:"C",name:"fgrptype",checked:"C"==c,onChange:this.handleChange}):null),f.a.createElement(y.a,{color:"blue"},f.a.createElement(y.a.List,null,f.a.createElement(y.a.Item,null,"All - All the members who belong to above selected criterion will be added to the group."),f.a.createElement(y.a.Item,null,"Custom - Select the members individually to add to the group."))),"C"==c?f.a.createElement("button",{class:"ui primary button",onClick:this.submitFrom},"Submit"):null),this.state.frmsubmit?f.a.createElement("div",null,f.a.createElement(m.a,null),f.a.createElement(E.a,{celled:!0,padded:!0,selectable:!0,size:"small",color:"olive",className:"tbl sticky1",unstackable:!0},f.a.createElement(E.a.Header,null,f.a.createElement(E.a.Row,{textAlign:"center"},f.a.createElement(E.a.HeaderCell,null,"Sl.No."),f.a.createElement(E.a.HeaderCell,null,"Code"),f.a.createElement(E.a.HeaderCell,null,"College Code"),f.a.createElement(E.a.HeaderCell,null,"Name"),f.a.createElement(E.a.HeaderCell,null,"Select"))),f.a.createElement(E.a.Body,null,i.length>0?i.map(function(t,r){return f.a.createElement(E.a.Row,{key:r,style:{overflow:"hidden"}},f.a.createElement(E.a.Cell,{textAlign:"center"},r+1),f.a.createElement(E.a.Cell,null,t.fcode),f.a.createElement(E.a.Cell,null,t.fcollcode),f.a.createElement(E.a.Cell,null,t.fname),f.a.createElement(E.a.Cell,null,f.a.createElement("div",{className:"ui checkbox"},f.a.createElement("input",{type:"checkbox",name:t.fcode,value:"true",onChange:function(n){return e.handleCheckbox(n,t,r)},checked:"T"==t.checked}),f.a.createElement("label",null," "))))}):f.a.createElement("h4",{style:{textAlign:"center"}},"No Data")))):null))))))}}]),t}(p.Component);t.default=Object(w.b)(function(e){return{grpCreation:e.grpCreation,flevels:e.grpCreation.flevel,deggrp:e.grpCreation.fdeggrp,coll:e.grpCreation.fcollege,degree:e.getDeg,tabledata:e.grpData,grp:e.grpEdit,user:e.user,funivcode:e.univ.funivcode,fcurtype:e.user.fcurtype}},{showError:b.A,changeGrpCreation:function(e,t){return{type:"CHANGE_GRPCRE",payload:{name:e,value:t}}},getLevel:function(e){return function(){var t=Object(n.a)(L().mark(function t(r,n){var a,o,c;return L().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return a=n(),o=a.user.fcollcode?a.user.fcollcode:"",t.next=4,x.a.post("app.php?a=getLevel&univcode="+a.univ.funivcode+"&fcurtype="+a.user.fcurtype+"&fcollcode="+o,{data:e});case 4:"object"!==typeof(c=t.sent).data?r({type:"SET_ERROR",payload:{error_code:-1,data:{msg:"Something went wrong"},status:"failure"}}):0===c.data.error_code?r({type:"getLevel",payload:c.data}):r({type:"SET_ERROR",payload:c});case 6:case"end":return t.stop()}},t)}));return function(e,r){return t.apply(this,arguments)}}()},getDegree:function(e,t){return function(){var e=Object(n.a)(L().mark(function e(r,n){var a,o;return L().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return a=n(),e.next=3,x.a.get("app.php?a=getDegreeGrps&univcode="+a.univ.funivcode+"&deggrp="+t+"&flevel="+a.grpCreation.flevel+"&fcurtype="+a.user.fcurtype+"&fuserid="+a.user.fuserid+"&fcollcode="+a.user.fcollcode);case 3:-1===(o=e.sent).data.error_code?r({type:"CLR_DEGR",payload:{msg:"Something went wrong"}}):0===o.data.error_code?r({type:"GET_DEGR",payload:o.data}):r({type:"SET_ERROR",payload:o});case 5:case"end":return e.stop()}},e)}));return function(t,r){return e.apply(this,arguments)}}()},getCollGrp:function(e,t){return function(){var e=Object(n.a)(L().mark(function e(r,n){var a,o;return L().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return a=n(),e.next=3,x.a.post("app.php?a=getDegGrpColl&univcode="+a.univ.funivcode+"&deggrp="+t,{fdegree:a.grpCreation.fdegree}).catch(function(e){var t={header:"Error",content:e.message};return r(Object(b.A)(t)),!0});case 3:"object"!==typeof(o=e.sent).data?r({type:"SET_ERROR",payload:{error_code:-1,data:{msg:"Something went wrong"},status:"failure"}}):0===o.data.error_code?r({type:"GRP_GET_COLLEGES",payload:o.data}):r({type:"SET_ERROR",payload:o});case 5:case"end":return e.stop()}},e)}));return function(t,r){return e.apply(this,arguments)}}()},submitFromData:function(){return function(){var e=Object(n.a)(L().mark(function e(t,r){var n,a,o;return L().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=r(),t({type:"SET_LOADER"}),a="500"==n.user.fcurtype||"600"==n.user.fcurtype?n.user.fcollcode:n.grpCreation.fcollcode,e.next=5,x.a.post("app.php?a=submitFromData&univcode="+n.univ.funivcode,{fdegree:n.grpCreation.fdegree,fcollcode:a,flevel:n.grpCreation.flevel,fgrptype:n.grpCreation.fgrptype,fdeggrp:n.grpCreation.fdeggrp}).catch(function(e){});case 5:o=e.sent,t({type:"UNSET_LOADER"}),"object"!==typeof o.data?t({type:"CLEAR_GRPCRE",payload:{error_code:-1,data:{msg:"No Data Found"},status:"failure"}.msg}):0===o.data.error_code?t({type:"GRP_GET_FORMDATA",payload:o.data}):t({type:"CLEAR_GRPCRE",payload:o});case 8:case"end":return e.stop()}},e)}));return function(t,r){return e.apply(this,arguments)}}()},changeGrpData:function(e,t){return{type:"CHANGE_GRPDATA",payload:{newel:e,fregno:t}}},cancelGroup:function(){return{type:"CANCEL_GRPCRE"}},getGroupHeadForEdit:_.f,addMembersToGroup:function(e){return function(){var t=Object(n.a)(L().mark(function t(r,n){var a,o,c,i,u;return L().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return a=n(),o="500"==a.user.fcurtype||"600"==a.user.fcurtype?a.user.fcollcode:a.grpCreation.fcollcode,r({type:"SET_LOADER"}),t.next=5,x.a.post("app.php?a=addMembersToGroup&univcode="+a.univ.funivcode,{fdegree:a.grpCreation.fdegree,fcollcode:o,flevel:a.grpCreation.flevel,fgrptype:a.grpCreation.fgrptype,fdeggrp:a.grpCreation.fdeggrp,groupId:e,members:a.grpData});case 5:c=t.sent,r({type:"UNSET_LOADER"}),"object"!==typeof c.data?r({type:"SET_ERROR",payload:{error_code:-1,data:{msg:"Something went wrong"},status:"failure"}}):0===c.data.error_code?(i={header:"Success",content:c.data.data.msg},r(Object(b.A)(i)),r({type:"CANCEL_GRPCRE"}),O.l.push("/utils/message-board/"+e)):(u={header:"Error",content:c.data.data.msg},r(Object(b.A)(u)));case 8:case"end":return t.stop()}},t)}));return function(e,r){return t.apply(this,arguments)}}()},getCollTeachers:function(){return function(){var e=Object(n.a)(L().mark(function e(t,r){var n,a;return L().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:n=r(),a=n.activeCollege.map(function(e){return{fcollcode:e.fcollcode,college_name:"".concat(e.fcollname,", ").concat(e.town)}}),t({type:"GRP_GET_COLLEGES",payload:{data:a}});case 4:case"end":return e.stop()}},e)}));return function(t,r){return e.apply(this,arguments)}}()},cancelGrpCreate:function(){return{type:"CANCEL_GRPCRE"}}})(G)},406:function(e,t,r){"use strict";r.d(t,"g",function(){return u}),r.d(t,"h",function(){return l}),r.d(t,"i",function(){return s}),r.d(t,"k",function(){return p}),r.d(t,"b",function(){return f}),r.d(t,"a",function(){return h}),r.d(t,"e",function(){return d}),r.d(t,"j",function(){return g}),r.d(t,"f",function(){return v}),r.d(t,"d",function(){return y}),r.d(t,"c",function(){return m});var n=r(68),a=r(271),o=r(267),c=r(286);function i(){i=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,a=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},c=o.iterator||"@@iterator",u=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function p(e,t,r,n){var o=t&&t.prototype instanceof m?t:m,c=Object.create(o.prototype),i=new A(n||[]);return a(c,"_invoke",{value:C(e,r,i)}),c}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=p;var h="suspendedStart",d="suspendedYield",g="executing",v="completed",y={};function m(){}function E(){}function w(){}var b={};s(b,c,function(){return this});var x=Object.getPrototypeOf,O=x&&x(x(R([])));O&&O!==r&&n.call(O,c)&&(b=O);var L=w.prototype=m.prototype=Object.create(b);function _(e){["next","throw","return"].forEach(function(t){s(e,t,function(e){return this._invoke(t,e)})})}function j(e,t){function r(a,o,c,i){var u=f(e[a],e,o);if("throw"!==u.type){var l=u.arg,s=l.value;return s&&"object"==typeof s&&n.call(s,"__await")?t.resolve(s.__await).then(function(e){r("next",e,c,i)},function(e){r("throw",e,c,i)}):t.resolve(s).then(function(e){l.value=e,c(l)},function(e){return r("throw",e,c,i)})}i(u.arg)}var o;a(this,"_invoke",{value:function(e,n){function a(){return new t(function(t,a){r(e,n,t,a)})}return o=o?o.then(a,a):a()}})}function C(t,r,n){var a=h;return function(o,c){if(a===g)throw new Error("Generator is already running");if(a===v){if("throw"===o)throw c;return{value:e,done:!0}}for(n.method=o,n.arg=c;;){var i=n.delegate;if(i){var u=G(i,n);if(u){if(u===y)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(a===h)throw a=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);a=g;var l=f(t,r,n);if("normal"===l.type){if(a=n.done?v:d,l.arg===y)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(a=v,n.method="throw",n.arg=l.arg)}}}function G(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,G(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var o=f(a,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,y;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,y):c:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}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 k(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function A(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function R(t){if(t||""===t){var r=t[c];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var a=-1,o=function r(){for(;++a<t.length;)if(n.call(t,a))return r.value=t[a],r.done=!1,r;return r.value=e,r.done=!0,r};return o.next=o}}throw new TypeError(typeof t+" is not iterable")}return E.prototype=w,a(L,"constructor",{value:w,configurable:!0}),a(w,"constructor",{value:E,configurable:!0}),E.displayName=s(w,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===E||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,w):(e.__proto__=w,s(e,l,"GeneratorFunction")),e.prototype=Object.create(L),e},t.awrap=function(e){return{__await:e}},_(j.prototype),s(j.prototype,u,function(){return this}),t.AsyncIterator=j,t.async=function(e,r,n,a,o){void 0===o&&(o=Promise);var c=new j(p(e,r,n,a),o);return t.isGeneratorFunction(r)?c:c.next().then(function(e){return e.done?e.value:c.next()})},_(L),s(L,l,"Generator"),s(L,c,function(){return this}),s(L,"toString",function(){return"[object Generator]"}),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=R,A.prototype={constructor:A,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 u=n.call(c,"catchLoc"),l=n.call(c,"finallyLoc");if(u&&l){if(this.prev<c.catchLoc)return a(c.catchLoc,!0);if(this.prev<c.finallyLoc)return a(c.finallyLoc)}else if(u){if(this.prev<c.catchLoc)return a(c.catchLoc,!0)}else{if(!l)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,y):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),y},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),k(r),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var a=n.arg;k(r)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:R(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),y}},t}var u=function(e){return function(){var e=Object(n.a)(i().mark(function e(t,r){var n,c,u,l;return i().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=r(),e.next=3,a.a.get("/app.php",{params:{a:"getMessageGroups",univcode:n.univ.funivcode,user:n.user}});case 3:"object"!==typeof(c=e.sent).data?(u={header:"Error",content:"Something went wrong"},t(Object(o.A)(u))):0===c.data.error_code?t({type:"GET_MSG_GROUPS",payload:c.data}):(l={header:"Error",content:c.data.data.msg},t(Object(o.A)(l)));case 5:case"end":return e.stop()}},e)}));return function(t,r){return e.apply(this,arguments)}}()},l=function(e){return function(){var t=Object(n.a)(i().mark(function t(r,n){var c,u,l,s;return i().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return c=n(),t.next=3,a.a.get("/app.php",{params:{a:"getMessagesForGroup",univcode:c.univ.funivcode,groupid:e}});case 3:"object"!==typeof(u=t.sent).data?(l={header:"Error",content:"Something went wrong"},r(Object(o.A)(l))):0===u.data.error_code?r({type:"GET_MSGS_FOR_GROUP",payload:u.data}):(s={header:"Error",content:u.data.data.msg},r(Object(o.A)(s)));case 5:case"end":return t.stop()}},t)}));return function(e,r){return t.apply(this,arguments)}}()},s=function(e){return function(){var t=Object(n.a)(i().mark(function t(r,n){var c,u,l,s;return i().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return c=n(),r({type:"SET_LOADER"}),t.next=4,a.a.get("/app.php",{params:{a:"getUsersForGroup",univcode:c.univ.funivcode,groupid:e}});case 4:u=t.sent,r({type:"UNSET_LOADER"}),"object"!==typeof u.data?(l={header:"Error",content:"Something went wrong"},r(Object(o.A)(l))):0===u.data.error_code?r({type:"GET_USERS_FOR_GROUP",payload:u.data}):(s={header:"Error",content:u.data.data.msg},r(Object(o.A)(s)));case 7:case"end":return t.stop()}},t)}));return function(e,r){return t.apply(this,arguments)}}()},p=function(e){return function(){var t=Object(n.a)(i().mark(function t(r,n){var c,u,l,s;return i().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return c=n(),t.next=3,a.a.post("/app.php?a=sendMessage&univcode="+c.univ.funivcode,{msg:e});case 3:"object"!==typeof(u=t.sent).data?(l={header:"Error",content:"Something went wrong"},r(Object(o.A)(l))):0===u.data.error_code?r({type:"UPDATE_MESSAGE",payload:e}):(s={header:"Error",content:u.data.data.msg},r(Object(o.A)(s)));case 5:case"end":return t.stop()}},t)}));return function(e,r){return t.apply(this,arguments)}}()},f=function(e,t){return{type:"CHANGE_GROUP_HEAD",payload:{name:e,value:t}}},h=function(){return{type:"CANCEL_GROUP_HEAD"}},d=function(){return{type:"EMPTY_USERS_FOR_GROUP"}},g=function(){return function(){var e=Object(n.a)(i().mark(function e(t,r){var n,l,s,p,f;return i().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=r(),e.next=3,a.a.post("/app.php?a=handleSaveGroup&univcode="+n.univ.funivcode,{group:n.grpEdit.head,user:n.user});case 3:"object"!==typeof(l=e.sent).data?(s={header:"Error",content:"Something went wrong"},t(Object(o.A)(s))):0===l.data.error_code?(p={header:"Success",content:l.data.data.msg},t(Object(o.A)(p)),t(h()),c.l.push("/utils/message-board/add-members/"+l.data.data.fgrpid),t(u("sometype"))):(f={header:"Error",content:l.data.data.msg},t(Object(o.A)(f)));case 5:case"end":return e.stop()}},e)}));return function(t,r){return e.apply(this,arguments)}}()},v=function(e){return function(){var t=Object(n.a)(i().mark(function t(r,n){var c,u,l,s;return i().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return c=n(),t.next=3,a.a.get("/app.php",{params:{a:"getGroupHeadForEdit",univcode:c.univ.funivcode,groupid:e}});case 3:"object"!==typeof(u=t.sent).data?(l={header:"Error",content:"Something went wrong"},r(Object(o.A)(l))):0===u.data.error_code?r({type:"GET_GROUP_HEAD",payload:u.data}):(s={header:"Error",content:u.data.data.msg},r(Object(o.A)(s)));case 5:case"end":return t.stop()}},t)}));return function(e,r){return t.apply(this,arguments)}}()},y=function(e){return function(){var t=Object(n.a)(i().mark(function t(r,n){var c,u,l,s;return i().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return c=n(),t.next=3,a.a.post("/app.php?a=deleteGroupMsg&univcode="+c.univ.funivcode,e);case 3:"object"!==typeof(u=t.sent).data?(l={header:"Error",content:"Something went wrong"},r(Object(o.A)(l))):-1===u.data.error_code&&(s={header:"Error",content:u.data.data.msg},r(Object(o.A)(s)));case 5:case"end":return t.stop()}},t)}));return function(e,r){return t.apply(this,arguments)}}()},m=function(e){return function(){var t=Object(n.a)(i().mark(function t(r,n){var c,u,l,s,p;return i().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return c=n(),t.next=3,a.a.get("/app.php",{params:{a:"deleteGrpDet",univcode:c.univ.funivcode,groupid:e}});case 3:"object"!==typeof(u=t.sent).data?(l={header:"Error",content:"Something went wrong"},r(Object(o.A)(l))):-1===u.data.error_code?(s={header:"Error",content:u.data.data.msg},r(Object(o.A)(s))):(p={header:"Success",content:u.data.data.msg},r(Object(o.A)(p)));case 5:case"end":return t.stop()}},t)}));return function(e,r){return t.apply(this,arguments)}}()}}}]);
//# sourceMappingURL=23.48b2cd18.chunk.js.map