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.137.170.76


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

(window.webpackJsonp=window.webpackJsonp||[]).push([[110],{1031:function(e,a,t){"use strict";t.r(a);var n=t(3),l=t(41),r=t.n(l),c=t(68),o=t(99),i=t(100),s=t(102),h=t(101),d=t(103),u=t(1),p=t.n(u),m=t(1139),f=t(1106),g=t(272),C=t(1098),b=t(1100),E=t(999),O=t(104),v=t(266),L=t(482),w=t(858),A=t(270),F=[],k=function(e){function a(){var e,t;Object(o.a)(this,a);for(var n=arguments.length,l=new Array(n),i=0;i<n;i++)l[i]=arguments[i];return(t=Object(s.a)(this,(e=Object(h.a)(a)).call.apply(e,[this].concat(l)))).state={checkbox:"",checkbox1:"",getallclg:!0,colcode:"",flag:!1,shodrop1:!1,shodrop:!1,error:!1,errorMessage:"",frmsubmit:!1,fdeggrp:""},t.setDeggrp=function(e){t.setState({fdeggrp:e})},t.handleSave=Object(c.a)(r.a.mark(function e(){return r.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.props.SaveCollegeForm(t.props.Collegeformdata);case 2:t.handleCancel();case 3:case"end":return e.stop()}},e)})),t.handleCancel=function(){t.setState({flag:!1,colcode:""}),t.props.CancelForm()},t.handleChangeSelectClg=function(){var e=Object(c.a)(r.a.mark(function e(a,n){var l;return r.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n.name,l=n.value,e.next=3,t.props.Collegeform("FCOLLCODE",l);case 3:return t.setState({colcode:l}),t.props.collegeList.map(function(){var e=Object(c.a)(r.a.mark(function e(a){return r.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,l===a.fcollcode;case 2:if(!e.sent){e.next=11;break}return e.t1=p.a,e.t2=p.a.Fragment,e.next=7,t.props.GetSpecificCollege(l);case 7:e.t3=e.sent,e.t0=e.t1.createElement.call(e.t1,e.t2,null," ",e.t3),e.next=12;break;case 11:e.t0=null;case 12:return e.abrupt("return",e.t0);case 13:case"end":return e.stop()}},e)}));return function(a){return e.apply(this,arguments)}}()),e.next=7,t.setState({flag:!0});case 7:case"end":return e.stop()}},e)}));return function(a,t){return e.apply(this,arguments)}}(),t.handleChange=function(){var e=Object(c.a)(r.a.mark(function e(a,n){var l,c,o;return r.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(l=n.name,c=n.value,""!=t.props.Collegeformdata.FCOLLNAME&&""!=t.props.Collegeformdata.FTOWN&&""!=t.props.Collegeformdata.FCOLLCODE&&t.setState({flag:!0}),"ffaculty"===l){e.next=5;break}return e.next=5,t.props.Collegeform(l,c,typeof c);case 5:if("ffaculty"!=l){e.next=13;break}if("object"!=typeof c||"ffaculty"!=l){e.next=13;break}return t.props.SpecificCollegeDetails.ffaculty?t.props.SpecificCollegeDetails.ffaculty:"",o="",c.map(function(e,a){return a<c.length&&""!=e?o="".concat(e,"*").concat(o):null}),e.next=13,t.props.Collegeform(l,o);case 13:if(e.t0="NA"==c,!e.t0){e.next=17;break}return e.next=17,t.setState({checkbox:"NA"});case 17:if(e.t1="A"==c,!e.t1){e.next=21;break}return e.next=21,t.setState({checkbox:"A"});case 21:if(e.t2="AUTO"==c,!e.t2){e.next=25;break}return e.next=25,t.setState({checkbox1:"AUTO"});case 25:if(e.t3="AFF"==c,!e.t3){e.next=29;break}return e.next=29,t.setState({checkbox1:"AFF"});case 29:case"end":return e.stop()}},e)}));return function(a,t){return e.apply(this,arguments)}}(),t.add=Object(c.a)(r.a.mark(function e(){return r.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.setState({getallclg:!1});case 2:case"end":return e.stop()}},e)})),t.renderHeader=function(){return p.a.createElement(m.a.Header,{style:{display:"flex"}},p.a.createElement("h4",null,"College Form"),p.a.createElement("div",{className:"ml-auto"},p.a.createElement(f.a,{disabled:!t.state.flag,basic:!0,color:"green",content:"Save",onClick:t.handleSave,icon:"save"}),p.a.createElement(f.a,{basic:!0,onClick:t.handleCancel,color:"black",icon:"ban",content:"Cancel"}),p.a.createElement(w.a,{to:"/dashboard"},p.a.createElement(f.a,{basic:!0,color:"red",content:"Exit",icon:"home"}))))},t}return Object(d.a)(a,e),Object(i.a)(a,[{key:"componentDidMount",value:function(){this.props.getCollegeList()}},{key:"render",value:function(){var e,a=this.props.deggrp;F=a.map(function(e,a){return{key:a,value:e.fdeggrp,text:e.fdeggrp}});var t=this.props.Collegeformdata,l=t.FADMSTATUS,r=this.props.collegeList.map(function(e){return{value:e.fcollcode,text:"".concat(e.fcollcode," ").concat(e.fcollname)}});if(null!=t.ffaculty)var c=t.ffaculty.split("*");c=void 0==c?[]:c;var o=Object(A.i)();return p.a.createElement("div",{className:"animated fadeIn"},p.a.createElement(m.a,{fluid:!0},p.a.createElement(m.a.Content,null,this.renderHeader(),p.a.createElement(g.a,null),p.a.createElement(m.a.Description,{style:{height:"".concat(o,"px"),overflowY:"auto"}},p.a.createElement("div",{className:"col-md-8"},p.a.createElement(C.a,null,p.a.createElement(C.a.Group,null,p.a.createElement(C.a.Field,{width:16},p.a.createElement("label",null,"College List"),p.a.createElement(b.a,(e={size:"mini",fluid:!0,openOnFocus:!1,selectOnBlur:!1,searchInput:{autoFocus:!0},placeholder:"Select college ",name:"collegeOptionsList",allowAdditions:!0,onAddItem:this.add},Object(n.a)(e,"openOnFocus",!1),Object(n.a)(e,"selectOnBlur",!1),Object(n.a)(e,"value",this.state.colcode),Object(n.a)(e,"selection",!0),Object(n.a)(e,"search",!0),Object(n.a)(e,"options",r),Object(n.a)(e,"onChange",this.handleChangeSelectClg),e)))),(this.state.flag||this.state.shodrop1)&&p.a.createElement(p.a.Fragment,null,p.a.createElement(C.a.Group,{width:16},p.a.createElement(C.a.Input,{width:3,placeholder:"College Code",value:t.FCOLLCODE?t.FCOLLCODE:this.state.colcode,label:"College Code",name:"FCOLLCODE",readOnly:""!=this.props.Collegeformdata.FCOLLCODE||""!=this.state.colcode,onChange:this.handleChange}),p.a.createElement(C.a.Input,{width:10,id:"FCOLLNAME",name:"FCOLLNAME",label:"College Name",value:t.FCOLLNAME,placeholder:"College Name",onChange:this.handleChange}),p.a.createElement(C.a.Input,{placeholder:"Consituency",width:4,label:"Consituency",name:"FTOWN",value:t.FTOWN,onChange:this.handleChange})),p.a.createElement(C.a.Group,{width:16},p.a.createElement(C.a.Input,{placeholder:"Address Line1",width:8,label:"Address Line1",name:"FCOLLADD1",value:t.FCOLLADD1,onChange:this.handleChange}),p.a.createElement(C.a.Input,{placeholder:"Land Line number",value:t.FPHONE,width:8,label:"Land Line number",name:"FPHONE",onChange:this.handleChange})),p.a.createElement(C.a.Group,{width:16},p.a.createElement(C.a.Input,{placeholder:"Enter Address Line2",width:8,label:"Address Line2",name:"FCOLLADD2",value:t.FCOLLADD2,onChange:this.handleChange}),p.a.createElement(C.a.Input,{placeholder:"Mobile Number",value:t.fmobile,width:8,label:"Mobile",name:"fmobile",onChange:this.handleChange})),p.a.createElement(C.a.Group,{width:16},p.a.createElement(C.a.Input,{placeholder:"Address Line3",width:8,label:"Address Line3",name:"FCOLLADD3",value:t.FCOLLADD3,onChange:this.handleChange}),p.a.createElement(C.a.Input,{placeholder:"Alternate Mobile",value:t.faltmobile,width:8,label:"Alternate Mobile",name:"faltmobile",onChange:this.handleChange})),p.a.createElement(C.a.Group,{width:16},p.a.createElement(C.a.Input,{placeholder:"Address Line4",width:8,label:"Address Line4",name:"FCOLLADD4",value:t.FCOLLADD4,onChange:this.handleChange}),p.a.createElement(C.a.Input,{placeholder:"Email",value:t.FEMAILC,width:8,label:"Email",name:"FEMAILC",onChange:this.handleChange})),p.a.createElement(C.a.Group,null,p.a.createElement(C.a.Field,{width:8,inline:!0},p.a.createElement("label",null,"Admission Status "),p.a.createElement(C.a.Field,{width:8,control:E.a,name:"FADMSTATUS",label:"A",value:"A",checked:"A"==(""!=this.state.checkbox?this.state.checkbox:l),onChange:this.handleChange}),p.a.createElement(C.a.Field,{width:8,control:E.a,name:"FADMSTATUS",label:"NA",value:"NA",checked:"NA"==(""!=this.state.checkbox?this.state.checkbox:l),onChange:this.handleChange})),p.a.createElement(C.a.Field,{width:8,inline:!0},p.a.createElement("label",null,"College Type "),p.a.createElement(C.a.Field,{width:8,control:E.a,name:"FCOLLTYPE",label:"AFFILIATED",value:"AFF",checked:"AFF"==(""!=this.state.checkbox1?this.state.checkbox1:t.FCOLLTYPE),onChange:this.handleChange}),p.a.createElement(C.a.Field,{width:8,control:E.a,name:"FCOLLTYPE",label:"AUTONOMOUS",value:"AUTO",checked:"AUTO"==(""!=this.state.checkbox1?this.state.checkbox1:t.FCOLLTYPE),onChange:this.handleChange}))),p.a.createElement(C.a.Group,{width:16},p.a.createElement(C.a.Field,{width:8},p.a.createElement("label",null,"Select Degree Group"),c.length>0&&p.a.createElement(b.a,{label:"sss",name:"ffaculty",fluid:!0,search:!0,selection:!0,onChange:this.handleChange,placeholder:"Select Degree",options:F,value:c,multiple:!0,disabled:this.props.disabled}),c.length<=0&&p.a.createElement(b.a,{label:"sss",name:"ffaculty",fluid:!0,search:!0,selection:!0,onChange:this.handleChange,placeholder:"Select Degree",options:F,value:c,multiple:!0,disabled:this.props.disabled})),p.a.createElement(C.a.Input,{placeholder:"Principle Name",value:t.FPRINCIPALNAME,width:8,label:"Principal Name",name:"FPRINCIPALNAME",onChange:this.handleChange})),p.a.createElement(C.a.Group,{width:16},p.a.createElement(C.a.Input,{placeholder:"Branch Account number",width:8,label:"Branch Account number",name:"fbankaccno",value:t.fbankaccno,onChange:this.handleChange}),p.a.createElement(C.a.Input,{placeholder:"Branch Code",value:t.fbranchcode,width:8,label:"Branch Code",name:"fbranchcode",onChange:this.handleChange})),p.a.createElement(C.a.Group,{width:16},p.a.createElement(C.a.Input,{placeholder:"Bank Name",width:8,label:"Bank Name",name:"fbank",value:t.fbank,onChange:this.handleChange}),p.a.createElement(C.a.Input,{placeholder:"IFSC CODE",value:t.fifsccode,width:8,label:"IFSC CODE",name:"fifsccode",onChange:this.handleChange})),p.a.createElement(C.a.Group,{width:16},p.a.createElement(C.a.Input,{placeholder:"Branch Name",width:8,label:"Branch Name",name:"fbankbranch",value:t.fbankbranch,onChange:this.handleChange}),p.a.createElement(C.a.Input,{placeholder:"Bank Location",value:t.fbankplace,width:8,label:"Bank Location",name:"fbankplace",onChange:this.handleChange}))))),p.a.createElement(g.a,null)))))}}]),a}(u.Component);a.default=Object(O.b)(function(e){return{saveDeggrp:e.saveDeggrp,univcode:e.user.fcuruniv,collegeList:e.collegeList,deggrp:e.deggrp,Collegeformdata:e.CollegeForm,SpecificCollegeDetails:e.GetSpecificCollege}},{showError:v.w,getCollegeList:L.e,SaveCollegeForm:L.d,Collegeform:L.b,CancelForm:L.a,GetSpecificCollege:L.c})(k)},272:function(e,a,t){"use strict";var n=t(268),l=t.n(n),r=t(265),c=t.n(r),o=t(1),i=t.n(o),s=t(333),h=t(551),d=t(549),u=t(267);function p(e){var a=e.children,t=e.className,n=e.clearing,r=e.content,o=e.fitted,m=e.hidden,f=e.horizontal,g=e.inverted,C=e.section,b=e.vertical,E=c()("ui",Object(s.a)(n,"clearing"),Object(s.a)(o,"fitted"),Object(s.a)(m,"hidden"),Object(s.a)(f,"horizontal"),Object(s.a)(g,"inverted"),Object(s.a)(C,"section"),Object(s.a)(b,"vertical"),"divider",t),O=Object(h.a)(p,e),v=Object(d.a)(p,e);return i.a.createElement(v,l()({},O,{className:E}),u.a.isNil(a)?r:a)}p.handledProps=["as","children","className","clearing","content","fitted","hidden","horizontal","inverted","section","vertical"],p.propTypes={},a.a=p},482:function(e,a,t){"use strict";t.d(a,"b",function(){return i}),t.d(a,"a",function(){return s}),t.d(a,"e",function(){return h}),t.d(a,"c",function(){return d}),t.d(a,"d",function(){return u});var n=t(41),l=t.n(n),r=t(68),c=t(269),o=t(266),i=function(e,a){return{type:"COLLEGE_FORM",payload:{name:e,value:a}}},s=function(){return{type:"CANCEL_FORM",payload:1}},h=function(){return function(){var e=Object(r.a)(l.a.mark(function e(a,t){var n,r,i,s;return l.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=t(),a({type:"SET_LOADER"}),e.next=4,c.a.get("app.php?a=GetAllCollegeList&univcode="+n.univ.funivcode);case 4:r=e.sent,a({type:"UNSET_LOADER"}),"object"!==typeof r.data?(i={header:"Error",content:"Something went wrong"},a(Object(o.w)(i))):-1===r.data.error_code?(s={header:"Error",content:r.data.data.msg},a(Object(o.w)(s))):a({type:"ALL_COLLEGE_LIST",payload:r.data});case 7:case"end":return e.stop()}},e)}));return function(a,t){return e.apply(this,arguments)}}()},d=function(e){return function(){var a=Object(r.a)(l.a.mark(function a(t,n){var r,i,s,h;return l.a.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return r=n(),t({type:"SET_LOADER"}),a.next=4,c.a.get("app.php?a=GetSpecificCollege&collcode="+e+"&univcode="+r.univ.funivcode);case 4:i=a.sent,t({type:"UNSET_LOADER"}),"object"!==typeof i.data?(s={header:"Error",content:"Something went wrong"},t(Object(o.w)(s))):-1===i.data.error_code?(h={header:"Error",content:i.data.data.msg},t(Object(o.w)(h))):t({type:"GET_SPECIFIC_COLLEGE",payload:i.data});case 7:case"end":return a.stop()}},a)}));return function(e,t){return a.apply(this,arguments)}}()},u=function(e){return console.log(e),function(){var a=Object(r.a)(l.a.mark(function a(t,n){var r,i,s,h,d;return l.a.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return t({type:"SET_LOADER"}),r=n(),a.next=4,c.a.post("/app.php?a=InsertOrUpdateCollegeDetails&univcode="+r.univ.funivcode,{data:e});case 4:i=a.sent,t({type:"UNSET_LOADER"}),console.log("response",i,typeof i.data),"object"!==typeof i.data?(s={header:"Error",content:"Something went wrong"},t(Object(o.w)(s))):-1===i.data.error_code?(h={header:"Error",content:i.data.data.msg},t(Object(o.w)(h))):(d={header:"Success",content:i.data.msg},t(Object(o.w)(d)));case 8:case"end":return a.stop()}},a)}));return function(e,t){return a.apply(this,arguments)}}()}}}]);
//# sourceMappingURL=110.23550499.chunk.js.map