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


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

(window.webpackJsonp=window.webpackJsonp||[]).push([[112],{1086:function(e,t,a){"use strict";a.r(t);var n=a(41),r=a.n(n),c=a(68),l=a(99),i=a(100),o=a(102),s=a(101),u=a(103),d=a(1),m=a.n(d),f=a(858),p=a(1139),h=a(1106),E=a(272),v=a(1e3),b=a(1101),w=a(998),y=a(1098),g=a(104),k=a(492),C=a(266),O=function(e){function t(){var e,a;Object(l.a)(this,t);for(var n=arguments.length,i=new Array(n),u=0;u<n;u++)i[u]=arguments[u];return(a=Object(o.a)(this,(e=Object(s.a)(t)).call.apply(e,[this].concat(i)))).state={fverifyremarks:"",fverifystatus:"",searchVal:"",tabledet:a.props.mcfviewdetail},a.componentDidMount=Object(c.a)(r.a.mark(function e(){var t,n,c;return r.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t=a.props.match.params.fpath.split("*"),console.log(t.length),n=t[0],c=t[1]+"/"+t[2]+"/"+t[3],console.log(n,c),e.next=7,a.props.ViewMcfDetails(n,c);case 7:a.setState({tabledet:a.props.mcfviewdetail});case 8:case"end":return e.stop()}},e)})),a.handlechkboxchange=function(e,t){console.log(e,t);var n=a.state.tabledet.map(function(a,n){return n===t&&(a.fverifystatus=e?"T":"F"),a});a.setState({tabledet:n})},a.handlechkboxchangeAll=function(e,t){var n=a.state.tabledet.map(function(t,a){return t.fverifystatus=e?"T":"F",t});a.setState({tabledet:n}),a.setState({fverifystatus:e})},a.handleRemarks=function(e,t){console.log(e,t);var n=a.state.tabledet.map(function(a,n){return n===t&&(a.fverifyremarks=e),a});a.setState({tabledet:n})},a.searchTable=function(e,t){var n=t.value,r="";""!==n?(r=a.state.tabledet.filter(function(e){return Object.keys(e).some(function(t){return e[t].toLowerCase().includes(n.toLowerCase())})}),a.setState({tabledet:r})):a.setState({tabledet:a.props.mcfviewdetail}),console.log(r),a.setState({string:r,searchVal:t.value})},a.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,a.props.savestateremarks(a.state.tabledet);case 2:case"end":return e.stop()}},e)})),a}return Object(u.a)(t,e),Object(i.a)(t,[{key:"render",value:function(){var e=this,t=this.state,a=(t.fverifyremarks,t.fverifystatus),n=(t.errorMessage,t.tabledet);return m.a.createElement("div",{className:"animated fadeIn"},m.a.createElement(p.a,{fluid:!0},m.a.createElement(p.a.Content,null,m.a.createElement(p.a.Header,{style:{display:"flex"}},m.a.createElement("h4",null,"MCF Verify Details"),m.a.createElement("div",{className:"ml-auto"},m.a.createElement(f.a,{to:"/mcfverifynew"},m.a.createElement(h.a,{basic:!0,color:"Black",content:"Back",icon:"arrow left"})),m.a.createElement(h.a,{basic:!0,color:"green",content:"Save",onClick:this.handleSave,icon:"save"}),m.a.createElement(f.a,{to:"/dashboard"},m.a.createElement(h.a,{basic:!0,color:"red",content:"Exit",icon:"home"})))),m.a.createElement(E.a,null),m.a.createElement(p.a.Description,null,m.a.createElement("div",{class:"ui search",style:{padding:"10px"}},m.a.createElement("div",{class:"ui icon input"},m.a.createElement(v.a,{icon:"search",fluid:!0,style:{width:"72em",fontSize:"1.1em"},placeholder:"Search...",onChange:this.searchTable,value:this.state.searchVal}),m.a.createElement("i",{class:"search icon"}))),m.a.createElement("div",{className:"ui mini form"},m.a.createElement(b.a,{celled:!0},m.a.createElement(b.a.Header,null,m.a.createElement(b.a.Row,null,m.a.createElement(b.a.HeaderCell,{style:{width:"5%"},singleLine:!0,textAlign:"center"},"Sl. No."),m.a.createElement(b.a.HeaderCell,{style:{width:"5%"},textAlign:"center"},"Log SLNO."),m.a.createElement(b.a.HeaderCell,{style:{width:"6%"},textAlign:"center"},"Company Name"),m.a.createElement(b.a.HeaderCell,{textAlign:"center",style:{width:"10%"}},"Log Name"),m.a.createElement(b.a.HeaderCell,{style:{width:"18%"},textAlign:"center"},"Remarks"),m.a.createElement(b.a.HeaderCell,{style:{width:"7%"},textAlign:"center"},"Host Name"),m.a.createElement(b.a.HeaderCell,{style:{width:"7%"},textAlign:"center"},"Client ID"),m.a.createElement(b.a.HeaderCell,{style:{width:"7%"},textAlign:"center"},"DB Name"),m.a.createElement(b.a.HeaderCell,{style:{width:"8%"},textAlign:"center"},"Date"),m.a.createElement(b.a.HeaderCell,{style:{width:"5%"},textAlign:"center"},"Select",m.a.createElement(w.a,{onChange:function(t,a){return e.handlechkboxchangeAll(a.checked)},value:a,checked:a})),m.a.createElement(b.a.HeaderCell,{style:{width:"40%"},textAlign:"center"},"Remarks"))),m.a.createElement(b.a.Body,null,n.map(function(t,a){return m.a.createElement(b.a.Row,null,m.a.createElement(b.a.Cell,null,a+1),m.a.createElement(b.a.Cell,null,m.a.createElement("b",null,t.fslno)),m.a.createElement(b.a.Cell,null,m.a.createElement("b",null,t.fcompname)),m.a.createElement(b.a.Cell,null,m.a.createElement("b",null,t.flogname)),m.a.createElement(b.a.Cell,null,m.a.createElement("b",null,t.fremarks)),m.a.createElement(b.a.Cell,null,m.a.createElement("b",null,t.fhostname)),m.a.createElement(b.a.Cell,null,m.a.createElement("b",null,t.fclientid)),m.a.createElement(b.a.Cell,null,m.a.createElement("b",null,t.fdbname)),m.a.createElement(b.a.Cell,null,m.a.createElement("b",null,t.fdate)),m.a.createElement(b.a.Cell,{textAlign:"center",style:{fontSize:"1.2em",padding:"0.4em"}},m.a.createElement(w.a,{onChange:function(t,n){return e.handlechkboxchange(n.checked,a)},value:t.fverifystatus,checked:"T"==t.fverifystatus})),m.a.createElement(b.a.Cell,null,m.a.createElement("b",null,m.a.createElement(y.a.Input,{type:"text",placeholder:"Remarks",name:"fverifyremarks",value:t.fverifyremarks,onChange:function(t,n){return e.handleRemarks(n.value,a)}}))))}))))))))}}]),t}(d.Component);t.default=Object(g.b)(function(e){return{mcfviewdetail:e.mcfviewdetail}},{ViewMcfDetails:k.a,showError:C.w,changeCheckBox:k.b,changeRemarks:k.c,savestateremarks:k.e})(O)},272:function(e,t,a){"use strict";var n=a(268),r=a.n(n),c=a(265),l=a.n(c),i=a(1),o=a.n(i),s=a(333),u=a(551),d=a(549),m=a(267);function f(e){var t=e.children,a=e.className,n=e.clearing,c=e.content,i=e.fitted,p=e.hidden,h=e.horizontal,E=e.inverted,v=e.section,b=e.vertical,w=l()("ui",Object(s.a)(n,"clearing"),Object(s.a)(i,"fitted"),Object(s.a)(p,"hidden"),Object(s.a)(h,"horizontal"),Object(s.a)(E,"inverted"),Object(s.a)(v,"section"),Object(s.a)(b,"vertical"),"divider",a),y=Object(u.a)(f,e),g=Object(d.a)(f,e);return o.a.createElement(g,r()({},y,{className:w}),m.a.isNil(t)?c:t)}f.handledProps=["as","children","className","clearing","content","fitted","hidden","horizontal","inverted","section","vertical"],f.propTypes={},t.a=f},492:function(e,t,a){"use strict";a.d(t,"d",function(){return s}),a.d(t,"b",function(){return u}),a.d(t,"c",function(){return d}),a.d(t,"a",function(){return m}),a.d(t,"e",function(){return f});var n=a(41),r=a.n(n),c=a(68),l=a(269),i=a(266),o=a(290),s=function(e){return function(){var t=Object(c.a)(r.a.mark(function t(a,n){var c,o,s,u;return r.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return c=n(),a({type:"SET_LOADER"}),console.log(e),t.next=5,l.a.get("/app.php",{params:{a:"mcfverifynew",date:e.date,univcode:c.user.fcuruniv,user:c.user.fname}});case 5:o=t.sent,a({type:"UNSET_LOADER"}),"object"!==typeof o.data?(s={header:"Error",content:"Something went wrong"},a(Object(i.w)(s))):-1===o.data.error_code?(u={header:"Error",content:o.data.data.msg},a(Object(i.w)(u))):a({type:"MCF_VERIFY_NEW",payload:o.data});case 8:case"end":return t.stop()}},t)}));return function(e,a){return t.apply(this,arguments)}}()},u=function(e,t){return function(){var a=Object(c.a)(r.a.mark(function a(n,c){return r.a.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:n({type:"CHECK_STATUS",payload:{cond:e,ind:t}});case 1:case"end":return a.stop()}},a)}));return function(e,t){return a.apply(this,arguments)}}()},d=function(e,t){return function(){var a=Object(c.a)(r.a.mark(function a(n,c){return r.a.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:n({type:"CHECK_REMARKS",payload:{cond:e,ind:t}});case 1:case"end":return a.stop()}},a)}));return function(e,t){return a.apply(this,arguments)}}()},m=function(e,t){return function(){var a=Object(c.a)(r.a.mark(function a(n,c){var o,s,u;return r.a.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return c(),n({type:"SET_LOADER"}),n({type:"DELETE_QPSTATS"}),a.next=5,l.a.get("/app.php",{params:{a:"mcfviewdetails",univcode1:e,date:t}});case 5:if(o=a.sent,n({type:"UNSET_LOADER"}),"object"===typeof o.data){a.next=13;break}return s={header:"Error",content:"Something went wrong"},n(Object(i.w)(s)),a.abrupt("return");case 13:if(-1!==o.data.error_code){a.next=19;break}return u={header:"Error",content:o.data.data.msg},n(Object(i.w)(u)),a.abrupt("return");case 19:n({type:"MCF_VIEW",payload:o.data});case 20:case"end":return a.stop()}},a)}));return function(e,t){return a.apply(this,arguments)}}()},f=function(e){return function(){var t=Object(c.a)(r.a.mark(function t(a,n){var c,s,u,d,m;return r.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return c=n(),a({type:"SET_LOADER"}),t.next=4,l.a.post("/app.php?a=updatestaturemarks&univcode="+c.univ.funivcode+"&user="+c.user.fname,{mcfviewdetailarray:e});case 4:s=t.sent,a({type:"UNSET_LOADER"}),"object"!==typeof s.data?(u={header:"Error",content:"Something went wrong"},a(Object(i.w)(u))):-1===s.data.error_code?(d={header:"Error",content:s.data.data.msg},a(Object(i.w)(d))):(m={header:"Success",content:s.data.data.msg},a(Object(i.w)(m)),o.k.push("/mcfverifynew"));case 7:case"end":return t.stop()}},t)}));return function(e,a){return t.apply(this,arguments)}}()}}}]);
//# sourceMappingURL=112.d9cc8fab.chunk.js.map