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


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

(window.webpackJsonp=window.webpackJsonp||[]).push([[131],{1117:function(e,t,a){"use strict";a.r(t);var n=a(99),r=a(100),l=a(102),c=a(101),o=a(103),i=a(1),s=a.n(i),u=a(858),p=a(104),d=a(1139),h=a(1106),m=a(272),f=a(1098),y=a(1100),b=(a(288),a(266)),g=a(41),v=a.n(g),E=a(68),w=a(269),C=a(0),O=a(1101),T=a(1e3),j=function(e){function t(){var e,a;Object(n.a)(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(a=Object(l.a)(this,(e=Object(c.a)(t)).call.apply(e,[this].concat(o)))).state={HTCnt:{header:[],body:[],width:[],align:[]},searchVal:"",width:[]},a.searchTable=function(e,t){var n=t.value,r=a.props.HTCnt.body.filter(function(e){return Object.keys(e).some(function(t){return e[t].toString().toLowerCase().includes(n.toLowerCase())})});a.setState({HTCnt:Object(C.a)({},a.state.HTCnt,{body:r}),searchVal:t.value})},a.buildtr=function(e){var t=[],n=a.state.HTCnt.align,r=0;for(var l in e)e.hasOwnProperty(l)&&t.push(s.a.createElement(O.a.Cell,{textAlign:n[r]},e[l])),r++;return t},a}return Object(o.a)(t,e),Object(r.a)(t,[{key:"componentDidMount",value:function(){this.setState({HTCnt:this.props.HTCnt,searchVal:""})}},{key:"componentDidUpdate",value:function(e){this.props.HTCnt.body!==e.HTCnt.body&&this.setState({HTCnt:this.props.HTCnt,searchVal:""})}},{key:"render",value:function(){var e=this,t=this.state.HTCnt,a=t.header,n=t.body,r=t.width,l=n.map(function(t,a){return s.a.createElement(O.a.Row,{key:a}," ",e.buildtr(t))});return s.a.createElement("div",null,s.a.createElement(m.a,null),s.a.createElement("div",{style:{margin:"1em 1em",backgroundColor:"white"},className:"stick"},s.a.createElement(T.a,{fluid:!0,icon:"search",placeholder:"Search...",value:this.state.searchVal,onChange:this.searchTable})),s.a.createElement("div",{className:this.props.wclass},s.a.createElement(O.a,{className:"sticky",celled:!0,compact:!0},s.a.createElement(O.a.Header,null,s.a.createElement(O.a.Row,null,a.map(function(e,t){return s.a.createElement(O.a.HeaderCell,{style:{width:"".concat(r[t],"%")},textAlign:"center"},e)}))),s.a.createElement(O.a.Body,null,l))))}}]),t}(i.Component),H=Object(p.b)(function(e){return{HTCnt:e.HTCnt}},{showError:b.w})(j),S=function(e){function t(){var e,a;Object(n.a)(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(a=Object(l.a)(this,(e=Object(c.a)(t)).call.apply(e,[this].concat(o)))).state={fdeggrp:"",frmSubmit:!1,frtype:""},a.changeRType=function(e,t){a.setState({frtype:t.value})},a.getPrBatchdet=function(){var e=a.state,t=(e.fdeggrp,e.frtype);if(""!=t)a.setState({frmSubmit:!0}),a.props.fetchHTDwonloadCnt(t);else{a.props.showError({header:"Error",content:"Select Report Type"})}},a.handleCancel=function(){a.setState({fdeggrp:"",frmSubmit:!1,frtype:""})},a}return Object(o.a)(t,e),Object(r.a)(t,[{key:"render",value:function(){return s.a.createElement("div",{className:"animated fadeIn"},s.a.createElement(d.a,{fluid:!0},s.a.createElement(d.a.Content,null,s.a.createElement(d.a.Header,{style:{display:"flex"}},s.a.createElement("h4",null,"Hall Ticket Download Status"),s.a.createElement("div",{className:"ml-auto"},s.a.createElement(h.a,{basic:!0,color:"black",icon:"ban",onClick:this.handleCancel,content:"Cancel"}),s.a.createElement(u.a,{to:"/dashboard"},s.a.createElement(h.a,{basic:!0,color:"red",content:"Exit",icon:"home"})))),s.a.createElement(m.a,null),s.a.createElement(d.a.Description,{style:{overflowY:"auto",height:"72vh"}},s.a.createElement("div",{className:"col-md-12"},s.a.createElement(f.a,null,s.a.createElement(f.a.Field,{width:8},s.a.createElement("label",null,"Report Type"),s.a.createElement(y.a,{placeholder:"Report Type",fluid:!0,search:!0,selection:!0,options:[{key:"Summary",text:"Summary",value:"Summary"},{key:"Collegewise",text:"Collegewise",value:"Collegewise"},{key:"Degreewise",text:"Degreewise",value:"Degreewise"}],value:this.state.frtype,onChange:this.changeRType})),s.a.createElement(h.a,{color:"blue",onClick:this.getPrBatchdet},"Submit"))),s.a.createElement("div",{className:"ui mini form",style:{fontSize:"1.1536em"}},this.state.frmSubmit?s.a.createElement(H,{type:this.state.frtype,wclass:"col-md-12"}):null)))))}}]),t}(i.Component);t.default=Object(p.b)(function(e){return{HTCnt:e.HTCnt}},{showError:b.w,fetchHTDwonloadCnt:function(e){return function(){var t=Object(E.a)(v.a.mark(function t(a,n){var r,l;return v.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return r=n(),a({type:"SET_LOADER"}),t.next=4,w.a.get("/app.php",{params:{a:"fetchHTDwonloadCnt",fdeggrp:r.user.fdeggrp,frtype:e,univcode:r.univ.funivcode}});case 4:l=t.sent,a({type:"UNSET_LOADER"}),"object"!==typeof l.data?a({type:"SET_ERROR",payload:{error_code:-1,data:{msg:"Something went wrong wile fetching HT Download status Details"},status:"failure"}}):-1===l.data.error_code?a({type:"SET_ERROR",payload:l.data}):(console.log(l.data),a({type:"FETCH_HTCNT",payload:l.data}));case 7:case"end":return t.stop()}},t)}));return function(e,a){return t.apply(this,arguments)}}()}})(S)},272:function(e,t,a){"use strict";var n=a(268),r=a.n(n),l=a(265),c=a.n(l),o=a(1),i=a.n(o),s=a(333),u=a(551),p=a(549),d=a(267);function h(e){var t=e.children,a=e.className,n=e.clearing,l=e.content,o=e.fitted,m=e.hidden,f=e.horizontal,y=e.inverted,b=e.section,g=e.vertical,v=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)(y,"inverted"),Object(s.a)(b,"section"),Object(s.a)(g,"vertical"),"divider",a),E=Object(u.a)(h,e),w=Object(p.a)(h,e);return i.a.createElement(w,r()({},E,{className:v}),d.a.isNil(t)?l:t)}h.handledProps=["as","children","className","clearing","content","fitted","hidden","horizontal","inverted","section","vertical"],h.propTypes={},t.a=h},288:function(e,t,a){"use strict";var n=a(41),r=a.n(n),l=a(68),c=a(99),o=a(100),i=a(102),s=a(101),u=a(103),p=a(1),d=a.n(p),h=a(104),m=a(1098),f=a(1100),y=a(266),b=function(e){function t(){return Object(c.a)(this,t),Object(i.a)(this,Object(s.a)(t).apply(this,arguments))}return Object(u.a)(t,e),Object(o.a)(t,[{key:"componentDidMount",value:function(){var e=Object(l.a)(r.a.mark(function e(){return r.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:case"end":return e.stop()}},e)}));return function(){return e.apply(this,arguments)}}()},{key:"render",value:function(){var e=this.props.deggrp.map(function(e,t){return{key:t,value:e.fdeggrp,text:"".concat(e.fdeggrp," - ").concat(e.fdescpn)}});console.log(this.props.pdeggrp);var t=this.props.pdeggrp,a=t.fdeggrp,n=t.fyear,r=t.fexamtype,l=t.fexamdate;return d.a.createElement("div",null,d.a.createElement(m.a.Field,null,d.a.createElement("label",null,"Degree Group"),d.a.createElement(f.a,{size:"mini",fluid:!0,search:!0,selection:!0,value:a,onChange:this.props.changeDeggrp,placeholder:"Select Degree Group",disabled:this.props.disabled,openOnFocus:!1,options:e,selectOnBlur:!1})),d.a.createElement(m.a.Group,null,d.a.createElement(m.a.Input,{placeholder:"Year",value:n,width:4,label:"Year",readOnly:!0}),d.a.createElement(m.a.Input,{placeholder:"Type",value:r,width:3,label:"Type",readOnly:!0}),d.a.createElement(m.a.Input,{placeholder:"Exam Date",label:"Exam Date",width:10,value:l,readOnly:!0})))}}]),t}(p.Component);t.a=Object(h.b)(function(e){return{deggrp:e.deggrp,user:e.user}},{fetchDegGrp:y.j})(b)}}]);
//# sourceMappingURL=131.4ab77edd.chunk.js.map