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.17.76.163
(window.webpackJsonp=window.webpackJsonp||[]).push([[299],{1171:function(e,t,r){"use strict";r.r(t);var n=r(3),a=r(0),l=r(68),o=r(100),c=r(101),i=r(103),u=r(102),s=r(104),p=r(2),f=r.n(p),g=r(941),d=r(1377),h=r(1343),m=r(272),y=r(1335),v=r(1337),E=r(1338),b=r(105),w=r(267),C=(r(649),r(274)),x=r(273),L=r(398);r(351),r(1137),r(168);function O(){O=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,a=Object.defineProperty||function(e,t,r){e[t]=r.value},l="function"==typeof Symbol?Symbol:{},o=l.iterator||"@@iterator",c=l.asyncIterator||"@@asyncIterator",i=l.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 l=t&&t.prototype instanceof y?t:y,o=Object.create(l.prototype),c=new D(n||[]);return a(o,"_invoke",{value:j(e,r,c)}),o}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",g="suspendedYield",d="executing",h="completed",m={};function y(){}function v(){}function E(){}var b={};u(b,o,function(){return this});var w=Object.getPrototypeOf,C=w&&w(w(A([])));C&&C!==r&&n.call(C,o)&&(b=C);var x=E.prototype=y.prototype=Object.create(b);function L(e){["next","throw","return"].forEach(function(t){u(e,t,function(e){return this._invoke(t,e)})})}function S(e,t){function r(a,l,o,c){var i=p(e[a],e,l);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,o,c)},function(e){r("throw",e,o,c)}):t.resolve(s).then(function(e){u.value=e,o(u)},function(e){return r("throw",e,o,c)})}c(i.arg)}var l;a(this,"_invoke",{value:function(e,n){function a(){return new t(function(t,a){r(e,n,t,a)})}return l=l?l.then(a,a):a()}})}function j(t,r,n){var a=f;return function(l,o){if(a===d)throw new Error("Generator is already running");if(a===h){if("throw"===l)throw o;return{value:e,done:!0}}for(n.method=l,n.arg=o;;){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===f)throw a=h,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);a=d;var u=p(t,r,n);if("normal"===u.type){if(a=n.done?h:g,u.arg===m)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(a=h,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 l=p(a,t.iterator,r.arg);if("throw"===l.type)return r.method="throw",r.arg=l.arg,r.delegate=null,m;var o=l.arg;return o?o.done?(r[t.resultName]=o.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,m):o:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,m)}function N(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 T(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function D(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(N,this),this.reset(!0)}function A(t){if(t||""===t){var r=t[o];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var a=-1,l=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 l.next=l}}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(S.prototype),u(S.prototype,c,function(){return this}),t.AsyncIterator=S,t.async=function(e,r,n,a,l){void 0===l&&(l=Promise);var o=new S(s(e,r,n,a),l);return t.isGeneratorFunction(r)?o:o.next().then(function(e){return e.done?e.value:o.next()})},L(x),u(x,i,"Generator"),u(x,o,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=A,D.prototype={constructor:D,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),!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 l=this.tryEntries.length-1;l>=0;--l){var o=this.tryEntries[l],c=o.completion;if("root"===o.tryLoc)return a("end");if(o.tryLoc<=this.prev){var i=n.call(o,"catchLoc"),u=n.call(o,"finallyLoc");if(i&&u){if(this.prev<o.catchLoc)return a(o.catchLoc,!0);if(this.prev<o.finallyLoc)return a(o.finallyLoc)}else if(i){if(this.prev<o.catchLoc)return a(o.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return a(o.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 l=a;break}}l&&("break"===e||"continue"===e)&&l.tryLoc<=t&&t<=l.finallyLoc&&(l=null);var o=l?l.completion:{};return o.type=e,o.arg=t,l?(this.method="next",this.next=l.finallyLoc,m):this.complete(o)},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),T(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;T(r)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:A(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),m}},t}var S=function(e){function t(){var e,r;Object(o.a)(this,t);for(var c=arguments.length,s=new Array(c),p=0;p<c;p++)s[p]=arguments[p];return(r=Object(i.a)(this,(e=Object(u.a)(t)).call.apply(e,[this].concat(s)))).state={frmDeggrp:"",reportType:"Active College List",deggrp:[],degree:[],college:[],displayTbl:!1,fdeggrp:"",fyear:"",fexamtype:"",fexamdate:"",type:"",frmsubmit:!1,title:""},r.componentDidMount=Object(l.a)(O().mark(function e(){return O().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r.props.loaddegreegroupclgrpt();case 2:"021"==r.props.univcode||"052"==r.props.univcode?r.setState({deggrp:["All"],college:["All"],type:"pdf",title:"College and Contact Details"}):r.setState({title:"College / Centre"});case 3:case"end":return e.stop()}},e)})),r.handleChangeDeggrp=function(){var e=Object(l.a)(O().mark(function e(t,n){return O().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r.setState({deggrp:n.value});case 2: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(l.a)(O().mark(function e(t,n){return O().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r.setState({college:n.value});case 2:return e.next=4,r.props.getDegreeReport(r.state);case 4:case"end":return e.stop()}},e)}));return function(t,r){return e.apply(this,arguments)}}(),r.handleChangeDegree=function(e,t){r.setState({degree:t.value})},r.typeChange=function(e,t){r.setState({type:t.value})},r.searchTable=function(e,t){var n=t.value,a=r.props.submitdata.filter(function(e){return Object.keys(e).some(function(t){return e[t].toLowerCase().includes(n.toLowerCase())})});r.setState({submitdata:a,searchVal:t.value})},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({displayTbl:!1})},r.handleSubmit=Object(l.a)(O().mark(function e(){var t,n,a,l,o;return O().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if("500"!=r.props.fcurtype&&"600"!=r.props.fcurtype&&"501"!=r.props.fcurtype){e.next=3;break}return e.next=3,r.setState({college:[r.props.fcollcode]});case 3:return t=r.state,n=t.reportType,a=t.degree,l=t.deggrp,o=t.type,e.next=6,r.props.getClgtab(n,r.state.college,a,l,o);case 6:r.setState({frmsubmit:!0});case 7:case"end":return e.stop()}},e)})),r.handleReport=Object(l.a)(O().mark(function e(){var t,n,a,l,o,c;return O().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if("500"!=r.props.fcurtype&&"600"!=r.props.fcurtype&&"501"!=r.props.fcurtype){e.next=3;break}return e.next=3,r.setState({college:[r.props.fcollcode]});case 3:t=r.state,n=t.reportType,a=t.college,l=t.degree,o=t.deggrp,"pdf"==(c=t.type)?window.open(C.c+n+"&univcode="+r.props.univcode+"°grp="+JSON.stringify(o)+"&college="+JSON.stringify(a)+"°ree="+JSON.stringify(l)+"&val="+n+"&format=PDF","_blank"):"xl"==c&&window.open(C.c+"college_reports_xl&univcode="+r.props.univcode+"°grp="+JSON.stringify(o)+"&college="+JSON.stringify(a)+"°ree="+JSON.stringify(l)+"&val="+n);case 5:case"end":return e.stop()}},e)})),r.handleCancel=function(){r.setState({reportType:"Active College List",deggrp:[],degree:[],college:[],type:""})},r.renderHeader=function(){return f.a.createElement(d.a.Header,{style:{display:"flex"}},f.a.createElement("h3",null,r.state.title),f.a.createElement("div",{className:"ml-auto"},f.a.createElement(h.a,{basic:!0,color:"blue",onClick:r.handleReport,content:"Report",icon:"file"}),f.a.createElement(h.a,{basic:!0,color:"black",icon:"ban",onClick:r.handleCancel,content:"Cancel"}),f.a.createElement(g.a,{to:"/dashboard"},f.a.createElement(h.a,{basic:!0,color:"red",content:"Exit",icon:"home"}))))},r.renderForm=function(){var e=r.state,t=(e.displayTbl,e.reportType),a=e.college,l=e.degree,o=e.deggrp,c=[{value:"All",text:"All"}],i=r.props.degcentre.map(function(e){return{key:e.fdeggrp,value:e.fdeggrp,text:e.fdeggrp+" - "+e.fdescpn}}),u=[].concat(c,Object(n.a)(i)),s=r.props.college.map(function(e){return{key:e.fcollege,value:e.fcollege,text:e.fcollege+" - "+e.fcollname}}),p=[].concat(c,Object(n.a)(s)),g=r.props.degree.map(function(e){return{key:e.fdegree,value:e.fdegree,text:e.fdegree+" - "+e.fdescpn}}),b=[].concat(c,Object(n.a)(g)),w=Object(x.i)();return f.a.createElement("div",{className:"animated fadeIn"},f.a.createElement(d.a,{fluid:!0},f.a.createElement(d.a.Content,null,r.renderHeader(),f.a.createElement(m.a,null),f.a.createElement(d.a.Description,{style:{overflowY:"auto",height:"".concat(w,"px")}},f.a.createElement("div",{className:"col-md-6"},f.a.createElement(y.a,null,"500"!==r.props.fcurtype&&"501"!==r.props.fcurtype&&f.a.createElement(y.a.Group,null,f.a.createElement(y.a.Field,{width:16},f.a.createElement("label",null,"Degree Group"),f.a.createElement(v.a,{fluid:!0,search:!0,multiple:!0,selection:!0,onChange:r.handleChangeDeggrp,value:o,name:"deggrp",placeholder:"Degree Group",options:u}))),"500"!==r.props.fcurtype&&"501"!==r.props.fcurtype&&f.a.createElement(y.a.Group,null,f.a.createElement(y.a.Field,{width:16},f.a.createElement("label",null,"College"),f.a.createElement(v.a,{placeholder:"Select College",name:"college",value:a,selection:!0,search:!0,options:p,multiple:!0,onChange:r.handleChangeCollege}))),"500"!==r.props.fcurtype&&"501"!==r.props.fcurtype&&f.a.createElement(y.a.Group,null,f.a.createElement(y.a.Field,{width:16},f.a.createElement("label",null,"Report Type"),f.a.createElement(v.a,{placeholder:"Select Report Type",name:"reportType",value:t,selection:!0,search:!0,options:[{value:"All College List",text:"College List (All)"},{value:"Active College List",text:"College List (Active)"},{value:"degreeWiseCollegeList",text:"Degree Wise College List"},{value:"collwisedeglist",text:"College Wise Degree List"}],onChange:r.handleChange}))),"degreeWiseCollegeList"==t||"collwisedeglist"==t?f.a.createElement(y.a.Group,null,f.a.createElement(y.a.Field,{width:16},f.a.createElement("label",null,"Degree"),f.a.createElement(v.a,{placeholder:"Select Degree",name:"degree",value:l,selection:!0,search:!0,options:b,multiple:!0,onChange:r.handleChangeDegree}))):null,f.a.createElement(y.a.Group,null,f.a.createElement(y.a.Field,{width:16},f.a.createElement("label",null,"Type"),f.a.createElement(v.a,{placeholder:"Select Report Type",name:"type",value:r.state.type,selection:!0,search:!0,options:[{value:"xl",text:"Excel"},{value:"pdf",text:"PDF"}],onChange:r.typeChange}))),"Active College List"==t?f.a.createElement(h.a,{color:"blue",onClick:r.handleSubmit},"Submit"):null,f.a.createElement("br",null))),r.state.frmsubmit?f.a.createElement("div",{className:"mt-3"},f.a.createElement("hr",null),f.a.createElement("div",{style:{marginBottom:"1em",backgroundColor:"white"},className:"stick"}),f.a.createElement("div",null,f.a.createElement(E.a,{celled:!0,padded:!0,selectable:!0,size:"small",color:"olive",className:"tbl sticky"},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,"College Code"),f.a.createElement(E.a.HeaderCell,null,"College Name"),f.a.createElement(E.a.HeaderCell,null,"Town"),f.a.createElement(E.a.HeaderCell,null,"Principal Name"),f.a.createElement(E.a.HeaderCell,null,"Mobile"),f.a.createElement(E.a.HeaderCell,null,"Alt. Contact"),f.a.createElement(E.a.HeaderCell,null,"Email Id"))),f.a.createElement(E.a.Body,null,r.props.submitdata.map(function(e,t){return f.a.createElement(E.a.Row,{key:t,style:{overflow:"hidden"}},f.a.createElement(E.a.Cell,{textAlign:"center"},t+1),f.a.createElement(E.a.Cell,null,e.fcollcode),f.a.createElement(E.a.Cell,null,e.fcollname),f.a.createElement(E.a.Cell,null,e.town),f.a.createElement(E.a.Cell,null,e.fprincipalname),f.a.createElement(E.a.Cell,null,e.fmobile),f.a.createElement(E.a.Cell,null,e.faltmobile),f.a.createElement(E.a.Cell,null,e.femail))}))))):null))))},r}return Object(s.a)(t,e),Object(c.a)(t,[{key:"render",value:function(){return this.renderForm()}}]),t}(p.Component);t.default=Object(b.b)(function(e){return{degcentre:e.loaddegreegroupclgrpt,collegeReport:e.collegeReport,univcode:e.univ.funivcode,user:e.user,college:e.getcollegereport,degree:e.getdegreereport,submitdata:e.submitcollegereport,fcurtype:e.user.fcurtype,fcollcode:e.user.fcollcode}},{fetchDegGrp:w.j,getReport:w.t,showError:w.A,getCollegeReport:L.c,getDegreeReport:L.d,getClgtab:L.a,loaddegreegroupclgrpt:L.e})(S)}}]);
//# sourceMappingURL=299.0442bb24.chunk.js.map
|