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.15.223.129
(window.webpackJsonp=window.webpackJsonp||[]).push([[298],{1399:function(e,t,r){"use strict";r.r(t);var n=r(3),a=r(0),o=r(68),l=r(100),c=r(101),i=r(103),u=r(102),s=r(104),f=r(2),h=r.n(f),p=r(941),d=r(1377),g=r(1343),m=r(272),y=r(1335),v=r(1337),E=r(1338),w=r(105),b=r(267),C=(r(649),r(274)),x=r(273),L=r(398),O=(r(351),r(271));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:{},l=o.iterator||"@@iterator",c=o.asyncIterator||"@@asyncIterator",i=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 y?t:y,l=Object.create(o.prototype),c=new T(n||[]);return a(l,"_invoke",{value:_(e,r,c)}),l}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",g="completed",m={};function y(){}function v(){}function E(){}var w={};u(w,l,function(){return this});var b=Object.getPrototypeOf,C=b&&b(b(R([])));C&&C!==r&&n.call(C,l)&&(w=C);var x=E.prototype=y.prototype=Object.create(w);function L(e){["next","throw","return"].forEach(function(t){u(e,t,function(e){return this._invoke(t,e)})})}function O(e,t){function r(a,o,l,c){var i=f(e[a],e,o);if("throw"!==i.type){var u=i.arg,s=u.value;return s&&"object"==typeof s&&n.call(s,"__await")?t.resolve(s.__await).then(function(e){r("next",e,l,c)},function(e){r("throw",e,l,c)}):t.resolve(s).then(function(e){u.value=e,l(u)},function(e){return r("throw",e,l,c)})}c(i.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 _(t,r,n){var a=h;return function(o,l){if(a===d)throw new Error("Generator is already running");if(a===g){if("throw"===o)throw l;return{value:e,done:!0}}for(n.method=o,n.arg=l;;){var c=n.delegate;if(c){var i=k(c,n);if(i){if(i===m)continue;return i}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(a===h)throw a=g,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?g:p,u.arg===m)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(a=g,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 l=o.arg;return l?l.done?(r[t.resultName]=l.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,m):l:(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 N(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function R(t){if(t||""===t){var r=t[l];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 v.prototype=E,a(x,"constructor",{value:E,configurable:!0}),a(E,"constructor",{value:v,configurable:!0}),v.displayName=u(E,i,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===v||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,E):(e.__proto__=E,u(e,i,"GeneratorFunction")),e.prototype=Object.create(x),e},t.awrap=function(e){return{__await:e}},L(O.prototype),u(O.prototype,c,function(){return this}),t.AsyncIterator=O,t.async=function(e,r,n,a,o){void 0===o&&(o=Promise);var l=new O(s(e,r,n,a),o);return t.isGeneratorFunction(r)?l:l.next().then(function(e){return e.done?e.value:l.next()})},L(x),u(x,i,"Generator"),u(x,l,function(){return this}),u(x,"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,T.prototype={constructor:T,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(N),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function a(n,a){return c.type="throw",c.arg=t,r.next=n,a&&(r.method="next",r.arg=e),!!a}for(var o=this.tryEntries.length-1;o>=0;--o){var l=this.tryEntries[o],c=l.completion;if("root"===l.tryLoc)return a("end");if(l.tryLoc<=this.prev){var i=n.call(l,"catchLoc"),u=n.call(l,"finallyLoc");if(i&&u){if(this.prev<l.catchLoc)return a(l.catchLoc,!0);if(this.prev<l.finallyLoc)return a(l.finallyLoc)}else if(i){if(this.prev<l.catchLoc)return a(l.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<l.finallyLoc)return a(l.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 l=o?o.completion:{};return l.type=e,l.arg=t,o?(this.method="next",this.next=o.finallyLoc,m):this.complete(l)},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),N(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;N(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),m}},t}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:{},l=o.iterator||"@@iterator",c=o.asyncIterator||"@@asyncIterator",i=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 y?t:y,l=Object.create(o.prototype),c=new T(n||[]);return a(l,"_invoke",{value:j(e,r,c)}),l}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",g="completed",m={};function y(){}function v(){}function E(){}var w={};u(w,l,function(){return this});var b=Object.getPrototypeOf,C=b&&b(b(R([])));C&&C!==r&&n.call(C,l)&&(w=C);var x=E.prototype=y.prototype=Object.create(w);function L(e){["next","throw","return"].forEach(function(t){u(e,t,function(e){return this._invoke(t,e)})})}function O(e,t){function r(a,o,l,c){var i=f(e[a],e,o);if("throw"!==i.type){var u=i.arg,s=u.value;return s&&"object"==typeof s&&n.call(s,"__await")?t.resolve(s.__await).then(function(e){r("next",e,l,c)},function(e){r("throw",e,l,c)}):t.resolve(s).then(function(e){u.value=e,l(u)},function(e){return r("throw",e,l,c)})}c(i.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,l){if(a===d)throw new Error("Generator is already running");if(a===g){if("throw"===o)throw l;return{value:e,done:!0}}for(n.method=o,n.arg=l;;){var c=n.delegate;if(c){var i=k(c,n);if(i){if(i===m)continue;return i}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(a===h)throw a=g,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?g:p,u.arg===m)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(a=g,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 l=o.arg;return l?l.done?(r[t.resultName]=l.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,m):l:(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 N(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function R(t){if(t||""===t){var r=t[l];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 v.prototype=E,a(x,"constructor",{value:E,configurable:!0}),a(E,"constructor",{value:v,configurable:!0}),v.displayName=u(E,i,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===v||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,E):(e.__proto__=E,u(e,i,"GeneratorFunction")),e.prototype=Object.create(x),e},t.awrap=function(e){return{__await:e}},L(O.prototype),u(O.prototype,c,function(){return this}),t.AsyncIterator=O,t.async=function(e,r,n,a,o){void 0===o&&(o=Promise);var l=new O(s(e,r,n,a),o);return t.isGeneratorFunction(r)?l:l.next().then(function(e){return e.done?e.value:l.next()})},L(x),u(x,i,"Generator"),u(x,l,function(){return this}),u(x,"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,T.prototype={constructor:T,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(N),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function a(n,a){return c.type="throw",c.arg=t,r.next=n,a&&(r.method="next",r.arg=e),!!a}for(var o=this.tryEntries.length-1;o>=0;--o){var l=this.tryEntries[o],c=l.completion;if("root"===l.tryLoc)return a("end");if(l.tryLoc<=this.prev){var i=n.call(l,"catchLoc"),u=n.call(l,"finallyLoc");if(i&&u){if(this.prev<l.catchLoc)return a(l.catchLoc,!0);if(this.prev<l.finallyLoc)return a(l.finallyLoc)}else if(i){if(this.prev<l.catchLoc)return a(l.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<l.finallyLoc)return a(l.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 l=o?o.completion:{};return l.type=e,l.arg=t,o?(this.method="next",this.next=o.finallyLoc,m):this.complete(l)},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),N(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;N(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),m}},t}var k=function(e){function t(){var e,r;Object(l.a)(this,t);for(var c=arguments.length,s=new Array(c),f=0;f<c;f++)s[f]=arguments[f];return(r=Object(i.a)(this,(e=Object(u.a)(t)).call.apply(e,[this].concat(s)))).state={reportType:"Center College List",deggrp:[],college:[],frmsubmit:!1},r.componentDidMount=Object(o.a)(_().mark(function e(){return _().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r.props.loaddegreegroupclgrpt();case 2:case"end":return e.stop()}},e)})),r.handleChangeDeggrp=function(){var e=Object(o.a)(_().mark(function e(t,n){return _().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r.setState({deggrp:n.value});case 2:r.props.getCollegeReport(r.state.deggrp);case 3:case"end":return e.stop()}},e)}));return function(t,r){return e.apply(this,arguments)}}(),r.handleChangeCollege=function(){var e=Object(o.a)(_().mark(function e(t,n){return _().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r.setState({college:n.value});case 2:case"end":return e.stop()}},e)}));return function(t,r){return e.apply(this,arguments)}}(),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({frmsubmit:!1})},r.handleSubmit=function(){var e=r.state,t=e.reportType,n=e.deggrp,a=e.college;r.props.getCentreReports(t,n,a),r.setState({frmsubmit:!0})},r.handleReport=function(){var e=r.state,t=e.reportType,n=e.deggrp,a=e.college;if(""!==n)window.open(C.c+t+"&univcode="+r.props.univcode+"°grp="+JSON.stringify(n)+"&college="+JSON.stringify(a)+"&val="+t+"&format=PDF","_blank");else{r.props.showError({header:"Error",content:"Select Degree Group"})}},r.handleCancel=function(){r.setState({reportType:"",fdeggrpfrm:"0",fdeggrpto:"ZZZZ",fcollfrm:"0",fcollto:"ZZZZ",reportFormat:"",frmDeggrp:""})},r.renderHeader=function(){return h.a.createElement(d.a.Header,{style:{display:"flex"}},h.a.createElement("h3",null,"Centre Reports"),h.a.createElement("div",{className:"ml-auto"},h.a.createElement(g.a,{basic:!0,color:"blue",onClick:r.handleReport,content:"Report",icon:"file"}),h.a.createElement(g.a,{basic:!0,color:"black",icon:"ban",onClick:r.handleCancel,content:"Cancel"}),h.a.createElement(p.a,{to:"/dashboard"},h.a.createElement(g.a,{basic:!0,color:"red",content:"Exit",icon:"home"}))))},r.renderForm=function(){var e=r.state,t=(e.displayTbl,e.reportType),a=e.deggrp,o=e.college,l=[{value:"All",text:"All"}],c=r.props.degcentre.map(function(e){return{key:e.fdeggrp,value:e.fdeggrp,text:e.fdeggrp+" - "+e.fdescpn}}),i=[].concat(l,Object(n.a)(c)),u=r.props.college.map(function(e){return{key:e.fcollege,value:e.fcollege,text:e.fcollege+" - "+e.fcollname}}),s=[].concat(l,Object(n.a)(u)),f=Object(x.i)();return h.a.createElement("div",{className:"animated fadeIn"},h.a.createElement(d.a,{fluid:!0},h.a.createElement(d.a.Content,null,r.renderHeader(),h.a.createElement(m.a,null),h.a.createElement(d.a.Description,{style:{overflowY:"auto",height:"".concat(f,"px")}},h.a.createElement("div",{className:"col-md-6"},h.a.createElement(y.a,null,h.a.createElement(y.a.Group,null,h.a.createElement(y.a.Field,{width:16},h.a.createElement("label",null,"Degree Group"),h.a.createElement(v.a,{fluid:!0,search:!0,multiple:!0,selection:!0,onChange:r.handleChangeDeggrp,value:a,name:"deggrp",placeholder:"Degree Group",options:i}))),h.a.createElement(y.a.Group,null,h.a.createElement(y.a.Field,{width:16},h.a.createElement("label",null,"College"),h.a.createElement(v.a,{placeholder:"Select College",name:"college",value:o,selection:!0,search:!0,options:s,multiple:!0,onChange:r.handleChangeCollege}))),h.a.createElement(y.a.Group,null,h.a.createElement(y.a.Field,{width:16},h.a.createElement("label",null,"Report Type"),h.a.createElement(v.a,{placeholder:"Select Report Type",name:"reportType",value:t,selection:!0,search:!0,options:[{value:"Center College List",text:"Center List"},{value:"Center List With Tagged Colleges",text:"Center List (With Tagged Colleges)"}],onChange:r.handleChange}))),h.a.createElement(g.a,{color:"blue",onClick:r.handleSubmit},"Submit"),h.a.createElement("br",null)),function(){if(r.state.frmsubmit)return"Center College List"==r.state.reportType?h.a.createElement("div",{className:"mt-3"},h.a.createElement("hr",null),h.a.createElement("div",{style:{marginBottom:"1em",backgroundColor:"white"},className:"stick"}),h.a.createElement("div",null,h.a.createElement(E.a,{celled:!0,padded:!0,selectable:!0,size:"small",color:"olive",className:"tbl sticky",style:{width:"1100px"}},h.a.createElement(E.a.Header,null,h.a.createElement(E.a.Row,{textAlign:"center"},h.a.createElement(E.a.HeaderCell,null,"Sl.No."),h.a.createElement(E.a.HeaderCell,null,"Center Code"),h.a.createElement(E.a.HeaderCell,null,"Center Name"),h.a.createElement(E.a.HeaderCell,null,"Town"),h.a.createElement(E.a.HeaderCell,null,"Principal Name"),h.a.createElement(E.a.HeaderCell,null,"Mobile"),h.a.createElement(E.a.HeaderCell,null,"Alt. Contact"),h.a.createElement(E.a.HeaderCell,null,"Email Id"))),h.a.createElement(E.a.Body,null,r.props.submittable.map(function(e,t){return h.a.createElement(E.a.Row,{key:t,style:{overflow:"hidden"}},h.a.createElement(E.a.Cell,{textAlign:"center"},t+1),h.a.createElement(E.a.Cell,null,e.fcollcode),h.a.createElement(E.a.Cell,null,e.fcollname),h.a.createElement(E.a.Cell,null,e.town),h.a.createElement(E.a.Cell,null,e.fprincipalname),h.a.createElement(E.a.Cell,null,e.fmobile),h.a.createElement(E.a.Cell,null,e.faltmobile),h.a.createElement(E.a.Cell,null,e.femail))}))))):h.a.createElement("div",{className:"mt-3"},h.a.createElement("hr",null),h.a.createElement("div",{style:{marginBottom:"1em",backgroundColor:"white"},className:"stick"}),h.a.createElement("div",null,h.a.createElement(E.a,{celled:!0,padded:!0,selectable:!0,structured:!0,size:"small",color:"olive",style:{width:"1100px"}},h.a.createElement(E.a.Header,null,h.a.createElement(E.a.Row,{textAlign:"center"},h.a.createElement(E.a.HeaderCell,{rowSpan:"2"},"Sl.No."),h.a.createElement(E.a.HeaderCell,{colSpan:"3"},"Center"),h.a.createElement(E.a.HeaderCell,{colSpan:"3"},"Tagged Colleges")),h.a.createElement(E.a.Row,{textAlign:"center"},h.a.createElement(E.a.HeaderCell,null,"Code"),h.a.createElement(E.a.HeaderCell,null,"Name"),h.a.createElement(E.a.HeaderCell,null,"Contact"),h.a.createElement(E.a.HeaderCell,null,"Code"),h.a.createElement(E.a.HeaderCell,null,"Name"),h.a.createElement(E.a.HeaderCell,null,"Contact"))),h.a.createElement(E.a.Body,null,r.props.submittable.map(function(e,t){return h.a.createElement(E.a.Row,{key:t,style:{overflow:"hidden"}},h.a.createElement(E.a.Cell,{textAlign:"center"},t+1),h.a.createElement(E.a.Cell,null,e.cnt_code),h.a.createElement(E.a.Cell,null,e.center_name),h.a.createElement(E.a.Cell,null,e.cnt_contact),h.a.createElement(E.a.Cell,null,e.tagged_code),h.a.createElement(E.a.Cell,null,e.tagged_colg_name),h.a.createElement(E.a.Cell,null,e.tagged_contact))})))))}())))))},r}return Object(s.a)(t,e),Object(c.a)(t,[{key:"render",value:function(){return this.renderForm()}}]),t}(f.Component);t.default=Object(w.b)(function(e){return{degcentre:e.loaddegreegroupclgrpt,deggrp:e.deggrp,collegeReport:e.collegeReport,univcode:e.univ.funivcode,user:e.user,college:e.getcollegereport,submittable:e.getcentrereport}},{fetchDegGrp:b.j,getReport:b.t,showError:b.A,getCollegeReport:L.c,getCentreReports:function(e,t,r){return function(){var n=Object(o.a)(j().mark(function n(a,o){var l,c,i,u,s;return j().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return l=o(),a({type:"SET_LOADER"}),c="","500"==l.user.fcurtype||"501"==l.user.fcurtype?""!==l.user.fcollcode&&(c=[l.user.fcollcode]):c=[r],n.next=6,O.a.get("/app.php",{params:{a:"getCentreReports",deggrp:t,college:c,reportType:e,univcode:l.user.fcuruniv}});case 6:i=n.sent,a({type:"UNSET_LOADER"}),"object"!==typeof i.data?(u={header:"Error",content:"Something went wrong"},a(Object(b.A)(u))):-1===i.data.error_code?(s={header:"Error",content:i.data.data.msg},a(Object(b.A)(s))):a({type:"CENTER_REPORT",payload:i.data});case 9:case"end":return n.stop()}},n)}));return function(e,t){return n.apply(this,arguments)}}()},loaddegreegroupclgrpt:L.e})(k)}}]);
//# sourceMappingURL=298.3cc6fc73.chunk.js.map
|