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


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

(window.webpackJsonp=window.webpackJsonp||[]).push([[52,120],{1018:function(e,t,a){"use strict";a.r(t);var l=a(3),r=a(99),n=a(100),o=a(102),c=a(101),d=a(103),i=a(1),s=a.n(i),m=a(858),p=a(1139),u=a(1106),g=a(272),f=a(1098),h=a(1100),E=a(104),C=a(266),b=a(588),v=a(271),y=a(270),w=function(e){function t(){var e,a;Object(r.a)(this,t);for(var n=arguments.length,d=new Array(n),i=0;i<n;i++)d[i]=arguments[i];return(a=Object(o.a)(this,(e=Object(c.a)(t)).call.apply(e,[this].concat(d)))).state={frmDeggrp:"",reportType:"College Wise",fdeggrpfrm:"0",fdeggrpto:"zzzzz",fcollfrm:"0",fcollto:"zzzzz",displayTbl:!1},a.getDegrees=function(e,t){a.setState({frmDeggrp:t.value})},a.handleChange=function(e,t){switch(t.type){case"text":a.setState(Object(l.a)({},t.name,t.value));default:a.setState(Object(l.a)({},t.name,t.value))}a.setState({displayTbl:!1})},a.handleSubmit=function(){var e=a.props.user.fdeggrp,t=a.state,l=t.reportType,r=t.fdeggrpfrm,n=t.fdeggrpto,o=t.fcollfrm,c=t.fcollto;if(""!==e)a.props.getReport(l,"tables",e,r,n,o,c),a.setState({displayTbl:!0});else{a.props.showError({header:"Error",content:"Select Degree Group"})}},a.handleReport=function(){var e=a.props.user.fdeggrp,t=a.state,l=t.reportType,r=t.fdeggrpfrm,n=t.fdeggrpto,o=t.fcollfrm,c=t.fcollto;if(console.log(a.state),""!==e)window.open(v.c+"admissioncombinationwiseintake&univcode="+a.props.univcode+"&deggrp="+e+"&fdeggrpfrom="+r+"&fdeggrpto="+n+"&fcollfrom="+o+"&fcollto="+c+"&val="+l+"&format=PDF","_blank");else{a.props.showError({header:"Error",content:"Select Degree Group"})}},a.handleCancel=function(){a.setState({reportType:"",fdeggrpfrm:"0",fdeggrpto:"zzzzz",fcollfrm:"0",fcollto:"zzzzz",reportFormat:"",frmDeggrp:""})},a.renderHeader=function(){return s.a.createElement(p.a.Header,{style:{display:"flex"}},s.a.createElement("h3",null,"Intake Report"),s.a.createElement("div",{className:"ml-auto"},s.a.createElement(u.a,{basic:!0,color:"blue",onClick:a.handleReport,content:"Report",icon:"file"}),s.a.createElement(u.a,{basic:!0,color:"black",icon:"ban",onClick:a.handleCancel,content:"Cancel"}),s.a.createElement(m.a,{to:"/dashboard"},s.a.createElement(u.a,{basic:!0,color:"red",content:"Exit",icon:"home"}))))},a.renderForm=function(){var e=a.state,t=e.displayTbl,l=e.reportType,r=e.fdeggrpfrm,n=e.fdeggrpto,o=e.fcollfrm,c=e.fcollto,d=Object(y.i)();return console.log(l,t),s.a.createElement("div",{className:"animated fadeIn"},s.a.createElement(p.a,{fluid:!0},s.a.createElement(p.a.Content,null,a.renderHeader(),s.a.createElement(g.a,null),s.a.createElement(p.a.Description,{style:{overflowY:"auto",height:"".concat(d,"px")}},s.a.createElement("div",{className:"col-md-6"},s.a.createElement(f.a,null,"College Wise"==l?s.a.createElement("div",null,s.a.createElement(f.a.Group,null,s.a.createElement(f.a.Input,{placeholder:"From",value:o,width:8,name:"fcollfrm",onChange:a.handleChange,label:"College Code Range"}),s.a.createElement(f.a.Input,{placeholder:"To",name:"fcollto",value:c,width:8,onChange:a.handleChange,style:{marginTop:"1.6em"}}))):null,s.a.createElement(f.a.Group,null,s.a.createElement(f.a.Input,{placeholder:"From",value:r,width:8,name:"fdeggrpfrm",onChange:a.handleChange,label:"Degree Group Range"}),s.a.createElement(f.a.Input,{placeholder:"To",name:"fdeggrpto",value:n,width:8,onChange:a.handleChange,style:{marginTop:"1.6em"}})),s.a.createElement(f.a.Group,null,s.a.createElement(f.a.Field,{width:16},s.a.createElement("label",null,"Report Type"),s.a.createElement(h.a,{placeholder:"Select Report Type",name:"reportType",value:l,selection:!0,search:!0,options:[{value:"College Wise",text:"College Wise"},{value:"Degree Wise",text:"Degree Wise"}],onChange:a.handleChange}))),s.a.createElement("br",null))),t?s.a.createElement(b.default,{reportdet:a.props.collegeReport,rtype:l}):null))))},a}return Object(d.a)(t,e),Object(n.a)(t,[{key:"render",value:function(){return this.renderForm()}}]),t}(i.Component);t.default=Object(E.b)(function(e){return{deggrp:e.deggrp,collegeReport:e.collegeReport,univcode:e.univ.funivcode,user:e.user}},{fetchDegGrp:C.j,getReport:C.r,showError:C.w})(w)},272:function(e,t,a){"use strict";var l=a(268),r=a.n(l),n=a(265),o=a.n(n),c=a(1),d=a.n(c),i=a(333),s=a(551),m=a(549),p=a(267);function u(e){var t=e.children,a=e.className,l=e.clearing,n=e.content,c=e.fitted,g=e.hidden,f=e.horizontal,h=e.inverted,E=e.section,C=e.vertical,b=o()("ui",Object(i.a)(l,"clearing"),Object(i.a)(c,"fitted"),Object(i.a)(g,"hidden"),Object(i.a)(f,"horizontal"),Object(i.a)(h,"inverted"),Object(i.a)(E,"section"),Object(i.a)(C,"vertical"),"divider",a),v=Object(s.a)(u,e),y=Object(m.a)(u,e);return d.a.createElement(y,r()({},v,{className:b}),p.a.isNil(t)?n:t)}u.handledProps=["as","children","className","clearing","content","fitted","hidden","horizontal","inverted","section","vertical"],u.propTypes={},t.a=u},294:function(e,t,a){},588:function(e,t,a){"use strict";a.r(t);var l=a(99),r=a(100),n=a(102),o=a(101),c=a(103),d=a(1),i=a.n(d),s=a(1e3),m=a(1101),p=(a(294),a(167),function(e){function t(){var e,a;Object(l.a)(this,t);for(var r=arguments.length,c=new Array(r),d=0;d<r;d++)c[d]=arguments[d];return(a=Object(n.a)(this,(e=Object(o.a)(t)).call.apply(e,[this].concat(c)))).state={colgdet:[],searchVal:""},a.searchTable=function(e,t){var l=t.value,r=a.props.reportdet.filter(function(e){return Object.keys(e).some(function(t){return e[t].toLowerCase().includes(l.toLowerCase())})});a.setState({colgdet:r,searchVal:t.value})},a.renderTable=function(){var e=a.state.colgdet;return i.a.createElement("div",{className:"mt-3"},i.a.createElement("hr",null),i.a.createElement("div",{style:{marginBottom:"1em",backgroundColor:"white"},className:"stick"},i.a.createElement(s.a,{icon:"search",fluid:!0,placeholder:"Search...",onChange:a.searchTable,value:a.state.searchVal,style:{fontSize:"1.1em"}})),i.a.createElement("div",null,i.a.createElement(m.a,{celled:!0,padded:!0,selectable:!0,size:"small",color:"olive",className:"tbl sticky"},i.a.createElement(m.a.Header,null,i.a.createElement(m.a.Row,{textAlign:"center"},i.a.createElement(m.a.HeaderCell,null,"Sl.No."),i.a.createElement(m.a.HeaderCell,null,"College Code"),i.a.createElement(m.a.HeaderCell,null,"College Name"),i.a.createElement(m.a.HeaderCell,null,"Town"),i.a.createElement(m.a.HeaderCell,null,"Principal Name"),i.a.createElement(m.a.HeaderCell,null,"Mobile"),i.a.createElement(m.a.HeaderCell,null,"Alt. Contact"),i.a.createElement(m.a.HeaderCell,null,"Email Id"))),i.a.createElement(m.a.Body,null,e.map(function(e,t){return i.a.createElement(m.a.Row,{key:t,style:{overflow:"hidden"}},i.a.createElement(m.a.Cell,{textAlign:"center"},t+1),i.a.createElement(m.a.Cell,null,e.fcollcode),i.a.createElement(m.a.Cell,null,e.fcollname),i.a.createElement(m.a.Cell,null,e.town),i.a.createElement(m.a.Cell,null,e.fprincipalname),i.a.createElement(m.a.Cell,null,e.fmobile),i.a.createElement(m.a.Cell,null,e.faltmobile),i.a.createElement(m.a.Cell,null,e.femail))})))))},a.renderTaggedTable=function(){var e=a.state.colgdet;return i.a.createElement("div",{className:"mt-3"},i.a.createElement("hr",null),i.a.createElement("div",{style:{marginBottom:"1em",backgroundColor:"white"},className:"stick"},i.a.createElement(s.a,{icon:"search",fluid:!0,placeholder:"Search...",onChange:a.searchTable,value:a.state.searchVal,style:{fontSize:"1.1em"}})),i.a.createElement("div",null,i.a.createElement(m.a,{celled:!0,padded:!0,selectable:!0,structured:!0,size:"small",color:"olive"},i.a.createElement(m.a.Header,null,i.a.createElement(m.a.Row,{textAlign:"center"},i.a.createElement(m.a.HeaderCell,{rowSpan:"2"},"Sl.No."),i.a.createElement(m.a.HeaderCell,{colSpan:"3"},"Center"),i.a.createElement(m.a.HeaderCell,{colSpan:"3"},"Tagged Colleges")),i.a.createElement(m.a.Row,{textAlign:"center"},i.a.createElement(m.a.HeaderCell,null,"Code"),i.a.createElement(m.a.HeaderCell,null,"Name"),i.a.createElement(m.a.HeaderCell,null,"Contact"),i.a.createElement(m.a.HeaderCell,null,"Code"),i.a.createElement(m.a.HeaderCell,null,"Name"),i.a.createElement(m.a.HeaderCell,null,"Contact"))),i.a.createElement(m.a.Body,null,e.map(function(e,t){return i.a.createElement(m.a.Row,{key:t,style:{overflow:"hidden"}},i.a.createElement(m.a.Cell,{textAlign:"center"},t+1),i.a.createElement(m.a.Cell,null,e.cnt_code),i.a.createElement(m.a.Cell,null,e.center_name),i.a.createElement(m.a.Cell,null,e.cnt_contact),i.a.createElement(m.a.Cell,null,e.tagged_code),i.a.createElement(m.a.Cell,null,e.tagged_colg_name),i.a.createElement(m.a.Cell,null,e.tagged_contact))})))))},a}return Object(c.a)(t,e),Object(r.a)(t,[{key:"componentDidMount",value:function(){this.setState({colgdet:this.props.reportdet})}},{key:"componentDidUpdate",value:function(e){this.props.reportdet!==e.reportdet&&this.setState({colgdet:this.props.reportdet})}},{key:"render",value:function(){return console.log(this.props.reportdet,this.props.reportdet,this.props.rtype),null==this.props.reportdet?null:null!==this.props.reportdet&&"Center List With Tagged Colleges"==this.props.rtype?this.renderTaggedTable():this.renderTable()}}]),t}(d.Component));t.default=p}}]);
//# sourceMappingURL=52.0d04aff5.chunk.js.map