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


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

(window.webpackJsonp=window.webpackJsonp||[]).push([[172],{1075:function(e,t,a){"use strict";a.r(t);var n=a(41),l=a.n(n),r=a(68),c=a(69),i=a(1),o=a.n(i),m=a(858),s=a(104),d=a(1139),u=a(1106),g=a(272),f=a(1098),p=a(1101),E=(a(271),a(270),a(269)),b=a(266);t.default=Object(s.b)(function(e){return console.log(e),{user:e.user,univ:e.univ}},{})(function(e){var t=Object(i.useState)([]),a=Object(c.a)(t,2),n=a[0],s=a[1],h=Object(i.useState)(!1),v=Object(c.a)(h,2),y=v[0],j=v[1],x=Object(i.useState)(""),w=Object(c.a)(x,2),O=w[0],S=w[1],C=Object(i.useState)(""),N=Object(c.a)(C,2),z=N[0],A=N[1];Object(i.useEffect)(function(){function e(){return(e=Object(r.a)(l.a.mark(function e(){return l.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:case"end":return e.stop()}},e)}))).apply(this,arguments)}!function(){e.apply(this,arguments)}()},[]);var k=function(){var t=Object(r.a)(l.a.mark(function t(a,n){var r,c,i;return l.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return console.log(O),t.next=3,E.a.get("/app.php",{params:{a:"getsearchgrv",univcode:e.univ.funivcode,grvid:O,regno:z}});case 3:if("object"===typeof(r=t.sent).data){t.next=10;break}return c={header:"Error",content:"Something went wrong"},Object(b.w)(c),t.abrupt("return");case 10:if(0!==r.data.error_code){t.next=16;break}return s(r.data.data),j(!0),t.abrupt("return");case 16:return i={header:"Error",content:r.data.data.msg},Object(b.w)(i),t.abrupt("return");case 19:case"end":return t.stop()}},t)}));return function(e,a){return t.apply(this,arguments)}}();return o.a.createElement(o.a.Fragment,null,o.a.createElement("div",{className:"animated fadeIn"},o.a.createElement(d.a,{fluid:!0,style:{minHeight:"82vh"}},o.a.createElement(d.a.Content,null,o.a.createElement(d.a.Header,{style:{display:"flex"}},o.a.createElement("h4",null,"Search Grievance"),o.a.createElement("div",{className:"ml-auto"},o.a.createElement(u.a,{basic:!0,color:"black",content:"cancel",icon:"cancel",onClick:function(){S(""),A(""),j(!1)}}),o.a.createElement(m.a,{to:"/dashboard"},o.a.createElement(u.a,{basic:!0,color:"red",content:"Exit",icon:"home"})))),o.a.createElement(g.a,null),o.a.createElement("div",{className:"col-md-12"},o.a.createElement(f.a,null,o.a.createElement(f.a.Field,{style:{display:"flex",alignItems:"center",height:"3em"}},o.a.createElement("label",{style:{fontSize:"0.9em"}},"GRV ID"),o.a.createElement(f.a.Input,{type:"text",value:O,maxLength:8,placeholder:"GRV ID",name:"grvid",className:"col-md-2",style:{marginTop:"0.6em",height:"2em"},onChange:function(e,t){return S(t.value)}}),o.a.createElement(f.a,null,o.a.createElement(u.a,{color:"blue",style:{padding:"1em",paddingTop:"0.5em",paddingBottom:"0.5em",marginBottom:"0.5em"},onClick:function(e,t){k(e,t)}},"Search")),o.a.createElement("label",{style:{fontSize:"0.9em",marginLeft:"2em"}},"Reg No."),o.a.createElement(f.a.Input,{type:"text",value:z,maxLength:8,placeholder:"Regno",className:"col-md-2",name:"regno",style:{marginTop:"0.6em",height:"2em"},onChange:function(e,t){return A(t.value)}}),o.a.createElement(f.a,null,o.a.createElement(u.a,{color:"blue",style:{padding:"1em",paddingTop:"0.5em",paddingBottom:"0.5em",marginBottom:"0.5em"},onClick:function(e,t){k(e,t)}},"Search"))))),1==y?o.a.createElement("div",{className:"ui mini form"},o.a.createElement(p.a,{celled:!0,padded:!0,selectable:!0,structured:!0,size:"small",color:"olive",style:{marginTop:"25px"}},o.a.createElement(p.a.Header,{style:{fontSize:"1.2em"}},o.a.createElement(p.a.Row,null,o.a.createElement(p.a.HeaderCell,{style:{width:"5%"},singleLine:!0,textAlign:"center"},o.a.createElement("label",null,"Sl. No.")),o.a.createElement(p.a.HeaderCell,{style:{width:"7%"},textAlign:"center"},o.a.createElement("label",null,"GRV ID")),o.a.createElement(p.a.HeaderCell,{style:{width:"7%"},textAlign:"center"},o.a.createElement("label",null,"Reg No.")),o.a.createElement(p.a.HeaderCell,{style:{width:"7%"},textAlign:"center"},o.a.createElement("label",null,"Student Name")),o.a.createElement(p.a.HeaderCell,{style:{width:"20%"},textAlign:"center"},o.a.createElement("label",null,"Subject")),o.a.createElement(p.a.HeaderCell,{style:{width:"7%"},textAlign:"center"},o.a.createElement("label",null,"Action")))),o.a.createElement(p.a.Body,null,n.map(function(e,t){return o.a.createElement(p.a.Row,null,o.a.createElement(p.a.Cell,{textAlign:"center",style:{fontSize:"1.2em"}},t+1),o.a.createElement(p.a.Cell,{textAlign:"center",style:{fontSize:"1.2em"}},e.fgrvid),o.a.createElement(p.a.Cell,{textAlign:"center",style:{fontSize:"1.2em"}},e.fregno),o.a.createElement(p.a.Cell,{textAlign:"left",style:{fontSize:"1.2em"}},e.fgrvfrom),o.a.createElement(p.a.Cell,{textAlign:"left",style:{fontSize:"1.2em"}},e.fgrvsub),o.a.createElement(p.a.Cell,{textAlign:"center",style:{fontSize:"1.2em",padding:"0.4em"}},o.a.createElement(m.a,{to:{pathname:"/utils/grv/".concat(e.fgrvid),query:{grvid:e.fgrvid}}},o.a.createElement(u.a,{color:"green",style:{padding:"0.5em 1.5em"}},"View"))))})))):null))))})},272:function(e,t,a){"use strict";var n=a(268),l=a.n(n),r=a(265),c=a.n(r),i=a(1),o=a.n(i),m=a(333),s=a(551),d=a(549),u=a(267);function g(e){var t=e.children,a=e.className,n=e.clearing,r=e.content,i=e.fitted,f=e.hidden,p=e.horizontal,E=e.inverted,b=e.section,h=e.vertical,v=c()("ui",Object(m.a)(n,"clearing"),Object(m.a)(i,"fitted"),Object(m.a)(f,"hidden"),Object(m.a)(p,"horizontal"),Object(m.a)(E,"inverted"),Object(m.a)(b,"section"),Object(m.a)(h,"vertical"),"divider",a),y=Object(s.a)(g,e),j=Object(d.a)(g,e);return o.a.createElement(j,l()({},y,{className:v}),u.a.isNil(t)?r:t)}g.handledProps=["as","children","className","clearing","content","fitted","hidden","horizontal","inverted","section","vertical"],g.propTypes={},t.a=g}}]);
//# sourceMappingURL=172.0447baea.chunk.js.map