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



Your IP : 18.224.45.82


Current Path : /var/www/egov/build/static/js/
Upload File :
Current File : /var/www/egov/build/static/js/114.fd32b76c.chunk.js

(window.webpackJsonp=window.webpackJsonp||[]).push([[114],{1062:function(e,t,r){"use strict";r.r(t);var a=r(3),n=r(0),c=r(41),o=r.n(c),l=r(68),u=r(99),s=r(100),i=r(102),d=r(101),p=r(103),g=r(1),f=r.n(g),h=r(858),b=r(1139),m=r(1106),v=r(272),E=r(1098),w=r(1100),j=r(104),C=r(266),O=(r(271),r(270)),x=r(323),y=function(e){function t(){var e,r;Object(u.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(d.a)(t)).call.apply(e,[this].concat(s)))).state={deggrp:"",college:[],degree:[],subject:[],centre:""},r.handleChangedeggrp=function(){var e=Object(l.a)(o.a.mark(function e(t,a){return o.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r.setState({deggrp:a.value});case 2:return e.next=4,r.props.getDegreeList(r.state.deggrp);case 4:case"end":return e.stop()}},e)}));return function(t,r){return e.apply(this,arguments)}}(),r.handleChangedegree=function(){var e=Object(l.a)(o.a.mark(function e(t,a){return o.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r.setState({degree:a.value});case 2:return e.next=4,r.props.getCollegeList(r.state.degree);case 4:case"end":return e.stop()}},e)}));return function(t,r){return e.apply(this,arguments)}}(),r.handleChangecollege=function(){var e=Object(l.a)(o.a.mark(function e(t,a){return o.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r.setState({college:a.value});case 2:return e.next=4,r.props.getSubjectList(r.state);case 4:case"end":return e.stop()}},e)}));return function(t,r){return e.apply(this,arguments)}}(),r.handleChangeSubject=function(){var e=Object(l.a)(o.a.mark(function e(t,a){return o.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r.setState({subject:a.value});case 2:return e.next=4,r.props.getCentreCode();case 4:case"end":return e.stop()}},e)}));return function(t,r){return e.apply(this,arguments)}}(),r.handleChangeCentre=function(){var e=Object(l.a)(o.a.mark(function e(t,a){return o.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r.setState({centre:a.value});case 2:return e.next=4,r.props.getCentreCode();case 4:case"end":return e.stop()}},e)}));return function(t,r){return e.apply(this,arguments)}}(),r.handleCancel=Object(l.a)(o.a.mark(function e(){return o.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:r.setState({deggrp:"",college:[],degree:[],subject:[],centre:""});case 1:case"end":return e.stop()}},e)})),r.handleSubmit=Object(l.a)(o.a.mark(function e(){var t,a,n,c,l;return o.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(""!=r.state.deggrp){e.next=4;break}return t={header:"Error",content:"Select Degree Group"},r.props.showError(t),e.abrupt("return");case 4:if(""!=r.state.degree){e.next=8;break}return a={header:"Error",content:"Select degree"},r.props.showError(a),e.abrupt("return");case 8:if(""!=r.state.college){e.next=12;break}return n={header:"Error",content:"Select College"},r.props.showError(n),e.abrupt("return");case 12:if(""!=r.state.subject){e.next=16;break}return c={header:"Error",content:"Select Subject"},r.props.showError(c),e.abrupt("return");case 16:if(""!=r.state.centre){e.next=20;break}return l={header:"Error",content:"Select Centre Code"},r.props.showError(l),e.abrupt("return");case 20:return e.next=22,r.props.savePracticalExamCentre(r.state);case 22:case"end":return e.stop()}},e)})),r.changecenter=function(e,t,c){var o;console.log(e,t,c),o=Object(n.a)({},t,Object(a.a)({},e.name,e.value)),r.props.changecenterpractical(o,c)},r.handleSave=Object(l.a)(o.a.mark(function e(){var t,a,n,c;return o.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(""!=r.state.degree){e.next=4;break}return t={header:"Error",content:"Select degree"},r.props.showError(t),e.abrupt("return");case 4:if(0!=r.state.table){e.next=8;break}return a={header:"Error",content:"Invalid Save"},r.props.showError(a),e.abrupt("return");case 8:if(console.log(r.props),n=r.props.practicalTable,console.log("hii",n,n.length),!(n.filter(function(e,t){return""==e.fcentre}).length>0)){e.next=18;break}return c={header:"Error",content:"Fill Details Before saving. "},r.props.showError(c),e.abrupt("return");case 18:return e.next=20,r.props.updatepracticalcenter(n,r.state.degree,r.state.deggrpfrom,r.state.subfrom,r.state.subto);case 20:r.handleCancel();case 21:case"end":return e.stop()}},e)})),r.renderHeader=function(){return f.a.createElement(b.a.Header,{style:{display:"flex"}},f.a.createElement("h3",null,"Set Practical Exam Center"),f.a.createElement("div",{className:"ml-auto"},f.a.createElement(m.a,{basic:!0,color:"black",icon:"ban",content:"Cancel",onClick:r.handleCancel}),f.a.createElement(h.a,{to:"/dashboard"},f.a.createElement(m.a,{basic:!0,color:"red",content:"Exit",icon:"home"}))))},r}return Object(p.a)(t,e),Object(s.a)(t,[{key:"componentDidMount",value:function(){this.props.loadrvrtdeggrp()}},{key:"render",value:function(){var e=this.state,t=e.centre,r=e.deggrp,a=e.degree,n=e.college,c=e.subject,o=Object(O.i)(),l=this.props.degreeList.map(function(e){return{value:e.fdegree,text:"".concat(e.fdegree,"- ").concat(e.fdescpn)}}),u=this.props.getrvrtdeggrp.map(function(e){return{key:e.fdeggrp,value:e.fdeggrp,text:e.fdescpn}}),s=this.props.getcollegelistpractical.map(function(e){return{key:e.fcollcode,value:e.fcollcode,text:e.fcollname}}),i=this.props.getsubjectlistpractical.map(function(e){return{key:e.fcsubcode,value:e.fcsubcode,text:e.fsubname}}),d=this.props.getcentrecodepractical.map(function(e){return{key:e.fcollcode,value:e.fcollcode,text:e.fcollname}});return f.a.createElement("div",{className:"animated fadeIn"},f.a.createElement(b.a,{fluid:!0},f.a.createElement(b.a.Content,null,this.renderHeader(),f.a.createElement(v.a,null),f.a.createElement(b.a.Description,{style:{overflowY:"auto",overflowX:"hidden",height:"".concat(o,"px")}},f.a.createElement("div",{className:"col-md-9"},f.a.createElement(E.a,null,f.a.createElement("div",{className:"col-md-8 col-lg-8 col-sm-12"},f.a.createElement(E.a.Group,null,f.a.createElement(E.a.Field,{width:16},f.a.createElement("label",null,"Degree Group"),f.a.createElement(w.a,{fluid:!0,search:!0,selection:!0,onChange:this.handleChangedeggrp,value:r,name:"deggrp",placeholder:"Degree Group",options:u}))),f.a.createElement(E.a.Field,{width:16},f.a.createElement("label",null,"Degree Range"),f.a.createElement(w.a,{placeholder:"Degree range",name:"degree",value:a,multiple:!0,selection:!0,search:!0,options:l,onChange:this.handleChangedegree})),f.a.createElement(E.a.Group,null,f.a.createElement(E.a.Field,{width:16},f.a.createElement("label",null,"College Range"),f.a.createElement(w.a,{placeholder:"College Range",name:"college",value:n,multiple:!0,selection:!0,search:!0,options:s,onChange:this.handleChangecollege}))),f.a.createElement(E.a.Group,null,f.a.createElement(E.a.Field,{width:16},f.a.createElement("label",null,"Subject Range"),f.a.createElement(w.a,{placeholder:"Subject Range",name:"degree",value:c,multiple:!0,selection:!0,search:!0,options:i,onChange:this.handleChangeSubject}))),f.a.createElement(E.a.Group,null,f.a.createElement(E.a.Field,{width:16},f.a.createElement("label",null,"Centre Code"),f.a.createElement(w.a,{placeholder:"Subject Range",name:"centre",value:t,selection:!0,search:!0,options:d,onChange:this.handleChangeCentre})))),f.a.createElement(m.a,{color:"blue",onClick:this.handleSubmit},"Save"),f.a.createElement("br",null)))))))}}]),t}(g.Component);t.default=Object(j.b)(function(e){return console.log(e),{degreelist:e.resultStatsDegList,collegelist:e.resultStatsClgList,user:e.user,degreeList:e.studyDegree,practicalTable:e.practicalCenter,getrvrtdeggrp:e.getrvrtdeggrp,getcollegelistpractical:e.getcollegelistpractical,getsubjectlistpractical:e.getsubjectlistpractical,getcentrecodepractical:e.getcentrecodepractical}},{getDegreeList:x.d,getpracticalcenters:x.f,changecenterpractical:x.a,showError:C.w,updatepracticalcenter:x.i,loadrvrtdeggrp:x.g,getCollegeList:x.c,getSubjectList:x.e,getCentreCode:x.b,savePracticalExamCentre:x.h})(y)},272:function(e,t,r){"use strict";var a=r(268),n=r.n(a),c=r(265),o=r.n(c),l=r(1),u=r.n(l),s=r(333),i=r(551),d=r(549),p=r(267);function g(e){var t=e.children,r=e.className,a=e.clearing,c=e.content,l=e.fitted,f=e.hidden,h=e.horizontal,b=e.inverted,m=e.section,v=e.vertical,E=o()("ui",Object(s.a)(a,"clearing"),Object(s.a)(l,"fitted"),Object(s.a)(f,"hidden"),Object(s.a)(h,"horizontal"),Object(s.a)(b,"inverted"),Object(s.a)(m,"section"),Object(s.a)(v,"vertical"),"divider",r),w=Object(i.a)(g,e),j=Object(d.a)(g,e);return u.a.createElement(j,n()({},w,{className:E}),p.a.isNil(t)?c:t)}g.handledProps=["as","children","className","clearing","content","fitted","hidden","horizontal","inverted","section","vertical"],g.propTypes={},t.a=g},323:function(e,t,r){"use strict";r.d(t,"g",function(){return u}),r.d(t,"d",function(){return s}),r.d(t,"f",function(){return i}),r.d(t,"a",function(){return d}),r.d(t,"i",function(){return p}),r.d(t,"c",function(){return g}),r.d(t,"e",function(){return f}),r.d(t,"b",function(){return h}),r.d(t,"h",function(){return b});var a=r(41),n=r.n(a),c=r(68),o=r(269),l=r(266),u=function(){return function(){var e=Object(c.a)(n.a.mark(function e(t,r){var a,c,u,s;return n.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return a=r(),t({type:"SET_LOADER"}),e.next=4,o.a.get("/app.php",{params:{a:"getdeggrprvrt",univcode:a.user.fcuruniv}});case 4:c=e.sent,t({type:"UNSET_LOADER"}),"object"!==typeof c.data?(u={header:"Error",content:"Something went wrong"},t(Object(l.w)(u))):-1===c.data.error_code?(s={header:"Error",content:c.data.data.msg},t(Object(l.w)(s))):t({type:"RVRT_DEGGRP",payload:c.data});case 7:case"end":return e.stop()}},e)}));return function(t,r){return e.apply(this,arguments)}}()},s=function(e){return function(){var t=Object(c.a)(n.a.mark(function t(r,a){var c,u,s,i;return n.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return c=a(),console.log(c),t.next=4,o.a.get("app.php?a=PracticalCenterDegreeList&univcode="+c.univ.funivcode+"&deggrp="+e);case 4:"object"!==typeof(u=t.sent).data?(s={header:"Error",content:"Something went wrong"},r(Object(l.w)(s))):-1===u.data.error_code?(i={header:"Error",content:u.data.data.msg},r(Object(l.w)(i))):(console.log(u.data),r({type:"ALL_DEGREE_LIST",payload:u.data}));case 6:case"end":return t.stop()}},t)}));return function(e,r){return t.apply(this,arguments)}}()},i=function(e,t,r,a,u,s,i){return function(){var d=Object(c.a)(n.a.mark(function c(d,p){var g,f,h,b;return n.a.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return g=p(),console.log(g),n.next=4,o.a.get("app.php?a=PracticalCenterData&univcode="+g.univ.funivcode+"&fcollcode="+g.user.fcollcode+"&deggrpfrom="+r+"&deggrpto="+a+"&subfrom="+e+"&subto="+t+"&degree="+u+"&clgfrom="+s+"&clgto="+i);case 4:"object"!==typeof(f=n.sent).data?(h={header:"Error",content:"Something went wrong"},d(Object(l.w)(h))):-1===f.data.error_code?(b={header:"Error",content:f.data.data.msg},d(Object(l.w)(b))):(console.log(f.data),d({type:"PRACTICAL_CENTERS",payload:f.data}));case 6:case"end":return n.stop()}},c)}));return function(e,t){return d.apply(this,arguments)}}()},d=function(e,t){return console.log(e,t),{type:"PRACTICAL_CENTERS_CHANGE",payload:{el:e,i:t}}},p=function(e,t,r,a,u){return function(){var s=Object(c.a)(n.a.mark(function c(s,i){var d,p,g,f,h;return n.a.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return d=i(),console.log(e,t,r),s({type:"SET_LOADER"}),n.next=5,o.a.post("/app.php?a=updatepracticalcenter&univcode="+d.univ.funivcode,{data:{fdeggrp:r,univcode:d.univ.funivcode,updcntr:e,subfrom:a,subto:u,user:d.user,deg:t}});case 5:p=n.sent,s({type:"UNSET_LOADER"}),"object"!==typeof p.data?s({type:"SET_ERROR",payload:{error_code:-1,data:{msg:"Something went wrong"},status:"failure"}}):-1===p.data.error_code?(console.log(p.data),g={header:"Error",content:p.data.data.msg},s(Object(l.w)(g))):0===p.data.error_code?(f={header:"Success",content:p.data.data.msg},s(Object(l.w)(f))):(h={header:"Error",content:"Something went wrong"},s(Object(l.w)(h)));case 8:case"end":return n.stop()}},c)}));return function(e,t){return s.apply(this,arguments)}}()},g=function(e){return function(){var t=Object(c.a)(n.a.mark(function t(r,a){var c,u,s,i;return n.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return c=a(),console.log(c),t.next=4,o.a.get("/app.php",{params:{a:"PracticalCenterCollegeList",univcode:c.user.fcuruniv,degree:e}});case 4:"object"!==typeof(u=t.sent).data?(s={header:"Error",content:"Something went wrong"},r(Object(l.w)(s))):-1===u.data.error_code?(i={header:"Error",content:u.data.data.msg},r(Object(l.w)(i))):(console.log(u.data),r({type:"ALL_COLLEGE_LIST",payload:u.data}));case 6:case"end":return t.stop()}},t)}));return function(e,r){return t.apply(this,arguments)}}()},f=function(e){return function(){var t=Object(c.a)(n.a.mark(function t(r,a){var c,u,s,i;return n.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return c=a(),console.log(c),t.next=4,o.a.get("/app.php",{params:{a:"PracticalCenterSubjectList",univcode:c.user.fcuruniv,degree:e.degree,college:e.college}});case 4:"object"!==typeof(u=t.sent).data?(s={header:"Error",content:"Something went wrong"},r(Object(l.w)(s))):-1===u.data.error_code?(i={header:"Error",content:u.data.data.msg},r(Object(l.w)(i))):(console.log(u.data),r({type:"ALL_SUBJECT_LIST",payload:u.data}));case 6:case"end":return t.stop()}},t)}));return function(e,r){return t.apply(this,arguments)}}()},h=function(e){return function(){var e=Object(c.a)(n.a.mark(function e(t,r){var a,c,u,s;return n.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return a=r(),console.log(a),e.next=4,o.a.get("/app.php",{params:{a:"PracticalCenterCodeList",univcode:a.user.fcuruniv}});case 4:"object"!==typeof(c=e.sent).data?(u={header:"Error",content:"Something went wrong"},t(Object(l.w)(u))):-1===c.data.error_code?(s={header:"Error",content:c.data.data.msg},t(Object(l.w)(s))):(console.log(c.data),t({type:"ALL_CENTRE_LIST",payload:c.data}));case 6:case"end":return e.stop()}},e)}));return function(t,r){return e.apply(this,arguments)}}()},b=function(e){return function(){var t=Object(c.a)(n.a.mark(function t(r,a){var c,u,s,i,d;return n.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return c=a(),console.log(c),t.next=4,o.a.get("/app.php",{params:{a:"savePracticalExamCentre",univcode:c.user.fcuruniv,deg:e.degree,sub:e.subject,cen:e.centre,col:e.college}});case 4:"object"!==typeof(u=t.sent).data?(s={header:"Error",content:"Something went wrong"},r(Object(l.w)(s))):-1===u.data.error_code?(i={header:"Error",content:u.data.data.msg},r(Object(l.w)(i))):(d={header:"Success",content:u.data.data.msg},r(Object(l.w)(d)));case 6:case"end":return t.stop()}},t)}));return function(e,r){return t.apply(this,arguments)}}()}}}]);
//# sourceMappingURL=114.fd32b76c.chunk.js.map