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 : 52.15.109.209
(window.webpackJsonp=window.webpackJsonp||[]).push([[282,307],{1232:function(e,t,r){"use strict";r.r(t);var n=r(68),a=r(69),o=r(2),i=r.n(o),l=r(941),c=r(105),u=r(1377),s=r(1343),f=r(272),h=r(1335),m=r(1338),d=(r(274),r(273),r(271)),p=r(267);function g(){g=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,a=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",l=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,r){return e[t]=r}}function s(e,t,r,n){var o=t&&t.prototype instanceof v?t:v,i=Object.create(o.prototype),l=new _(n||[]);return a(i,"_invoke",{value:N(e,r,l)}),i}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=s;var h="suspendedStart",m="suspendedYield",d="executing",p="completed",y={};function v(){}function E(){}function b(){}var w={};u(w,i,function(){return this});var x=Object.getPrototypeOf,j=x&&x(x(z([])));j&&j!==r&&n.call(j,i)&&(w=j);var O=b.prototype=v.prototype=Object.create(w);function L(e){["next","throw","return"].forEach(function(t){u(e,t,function(e){return this._invoke(t,e)})})}function S(e,t){function r(a,o,i,l){var c=f(e[a],e,o);if("throw"!==c.type){var u=c.arg,s=u.value;return s&&"object"==typeof s&&n.call(s,"__await")?t.resolve(s.__await).then(function(e){r("next",e,i,l)},function(e){r("throw",e,i,l)}):t.resolve(s).then(function(e){u.value=e,i(u)},function(e){return r("throw",e,i,l)})}l(c.arg)}var o;a(this,"_invoke",{value:function(e,n){function a(){return new t(function(t,a){r(e,n,t,a)})}return o=o?o.then(a,a):a()}})}function N(t,r,n){var a=h;return function(o,i){if(a===d)throw new Error("Generator is already running");if(a===p){if("throw"===o)throw i;return{value:e,done:!0}}for(n.method=o,n.arg=i;;){var l=n.delegate;if(l){var c=C(l,n);if(c){if(c===y)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(a===h)throw a=p,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);a=d;var u=f(t,r,n);if("normal"===u.type){if(a=n.done?p:m,u.arg===y)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(a=p,n.method="throw",n.arg=u.arg)}}}function C(t,r){var n=r.method,a=t.iterator[n];if(a===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,C(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var o=f(a,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,y;var i=o.arg;return i?i.done?(r[t.resultName]=i.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,y):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function k(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function A(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function _(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function z(t){if(t||""===t){var r=t[i];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var a=-1,o=function r(){for(;++a<t.length;)if(n.call(t,a))return r.value=t[a],r.done=!1,r;return r.value=e,r.done=!0,r};return o.next=o}}throw new TypeError(typeof t+" is not iterable")}return E.prototype=b,a(O,"constructor",{value:b,configurable:!0}),a(b,"constructor",{value:E,configurable:!0}),E.displayName=u(b,c,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===E||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,u(e,c,"GeneratorFunction")),e.prototype=Object.create(O),e},t.awrap=function(e){return{__await:e}},L(S.prototype),u(S.prototype,l,function(){return this}),t.AsyncIterator=S,t.async=function(e,r,n,a,o){void 0===o&&(o=Promise);var i=new S(s(e,r,n,a),o);return t.isGeneratorFunction(r)?i:i.next().then(function(e){return e.done?e.value:i.next()})},L(O),u(O,c,"Generator"),u(O,i,function(){return this}),u(O,"toString",function(){return"[object Generator]"}),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=z,_.prototype={constructor:_,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(A),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function a(n,a){return l.type="throw",l.arg=t,r.next=n,a&&(r.method="next",r.arg=e),!!a}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],l=i.completion;if("root"===i.tryLoc)return a("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return a(i.catchLoc,!0);if(this.prev<i.finallyLoc)return a(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return a(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return a(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,y):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),y},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),A(r),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var a=n.arg;A(r)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:z(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),y}},t}t.default=Object(c.b)(function(e){return{user:e.user,univ:e.univ}},{})(function(e){var t=Object(o.useState)([]),r=Object(a.a)(t,2),c=r[0],y=r[1],v=Object(o.useState)(!1),E=Object(a.a)(v,2),b=E[0],w=E[1],x=Object(o.useState)(""),j=Object(a.a)(x,2),O=j[0],L=j[1],S=Object(o.useState)(""),N=Object(a.a)(S,2),C=N[0],k=N[1];Object(o.useEffect)(function(){function e(){return(e=Object(n.a)(g().mark(function e(){return g().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 A=function(){var t=Object(n.a)(g().mark(function t(r,n){var a,o,i;return g().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,d.a.get("/app.php",{params:{a:"getsearchgrv",univcode:e.univ.funivcode,grvid:O,regno:C}});case 2:if("object"===typeof(a=t.sent).data){t.next=9;break}return o={header:"Error",content:"Something went wrong"},Object(p.A)(o),t.abrupt("return");case 9:if(0!==a.data.error_code){t.next=15;break}return y(a.data.data),w(!0),t.abrupt("return");case 15:return i={header:"Error",content:a.data.data.msg},Object(p.A)(i),t.abrupt("return");case 18:case"end":return t.stop()}},t)}));return function(e,r){return t.apply(this,arguments)}}();return i.a.createElement(i.a.Fragment,null,i.a.createElement("div",{className:"animated fadeIn"},i.a.createElement(u.a,{fluid:!0,style:{minHeight:"82vh"}},i.a.createElement(u.a.Content,null,i.a.createElement(u.a.Header,{style:{display:"flex"}},i.a.createElement("h4",null,"Search Grievance"),i.a.createElement("div",{className:"ml-auto"},i.a.createElement(s.a,{basic:!0,color:"black",content:"cancel",icon:"cancel",onClick:function(){L(""),k(""),w(!1)}}),i.a.createElement(l.a,{to:"/dashboard"},i.a.createElement(s.a,{basic:!0,color:"red",content:"Exit",icon:"home"})))),i.a.createElement(f.a,null),i.a.createElement("div",{className:"col-md-12"},i.a.createElement(h.a,null,i.a.createElement(h.a.Field,{style:{display:"flex",alignItems:"center",height:"3em"}},i.a.createElement("label",{style:{fontSize:"0.9em"}},"GRV ID"),i.a.createElement(h.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 L(t.value.toUpperCase())}}),i.a.createElement(h.a,null,i.a.createElement(s.a,{color:"blue",style:{padding:"1em",paddingTop:"0.5em",paddingBottom:"0.5em",marginBottom:"0.5em"},onClick:function(e,t){A(e,t)}},"Search")),i.a.createElement("label",{style:{fontSize:"0.9em",marginLeft:"2em"}},"Reg No."),i.a.createElement(h.a.Input,{type:"text",value:C,maxLength:8,placeholder:"Regno",className:"col-md-2",name:"regno",style:{marginTop:"0.6em",height:"2em"},onChange:function(e,t){return k(t.value.toUpperCase())}}),i.a.createElement(h.a,null,i.a.createElement(s.a,{color:"blue",style:{padding:"1em",paddingTop:"0.5em",paddingBottom:"0.5em",marginBottom:"0.5em"},onClick:function(e,t){A(e,t)}},"Search"))))),1==b?i.a.createElement("div",{className:"ui mini form"},i.a.createElement(m.a,{celled:!0,padded:!0,selectable:!0,structured:!0,size:"small",color:"olive",style:{marginTop:"25px"}},i.a.createElement(m.a.Header,{style:{fontSize:"1.2em"}},i.a.createElement(m.a.Row,null,i.a.createElement(m.a.HeaderCell,{style:{width:"5%"},singleLine:!0,textAlign:"center"},i.a.createElement("label",null,"Sl. No.")),i.a.createElement(m.a.HeaderCell,{style:{width:"7%"},textAlign:"center"},i.a.createElement("label",null,"GRV ID")),i.a.createElement(m.a.HeaderCell,{style:{width:"7%"},textAlign:"center"},i.a.createElement("label",null,"Reg No.")),i.a.createElement(m.a.HeaderCell,{style:{width:"7%"},textAlign:"center"},i.a.createElement("label",null,"Student Name")),i.a.createElement(m.a.HeaderCell,{style:{width:"20%"},textAlign:"center"},i.a.createElement("label",null,"Subject")),i.a.createElement(m.a.HeaderCell,{style:{width:"7%"},textAlign:"center"},i.a.createElement("label",null,"Action")))),i.a.createElement(m.a.Body,null,c.map(function(e,t){return i.a.createElement(m.a.Row,null,i.a.createElement(m.a.Cell,{textAlign:"center",style:{fontSize:"1.2em"}},t+1),i.a.createElement(m.a.Cell,{textAlign:"center",style:{fontSize:"1.2em"}},e.fgrvid),i.a.createElement(m.a.Cell,{textAlign:"center",style:{fontSize:"1.2em"}},e.fregno),i.a.createElement(m.a.Cell,{textAlign:"left",style:{fontSize:"1.2em"}},e.fgrvfrom),i.a.createElement(m.a.Cell,{textAlign:"left",style:{fontSize:"1.2em"}},e.fgrvsub),i.a.createElement(m.a.Cell,{textAlign:"center",style:{fontSize:"1.2em",padding:"0.4em"}},i.a.createElement(l.a,{to:{pathname:"/utils/grv/".concat(e.fgrvid),query:{grvid:e.fgrvid}}},i.a.createElement(s.a,{color:"green",style:{padding:"0.5em 1.5em"}},"View"))))})))):null))))})},272:function(e,t,r){"use strict";var n=r(270),a=r.n(n),o=r(268),i=r.n(o),l=r(2),c=r.n(l),u=r(349),s=r(613),f=r(611),h=r(269);function m(e){var t=e.children,r=e.className,n=e.clearing,o=e.content,l=e.fitted,d=e.hidden,p=e.horizontal,g=e.inverted,y=e.section,v=e.vertical,E=i()("ui",Object(u.a)(n,"clearing"),Object(u.a)(l,"fitted"),Object(u.a)(d,"hidden"),Object(u.a)(p,"horizontal"),Object(u.a)(g,"inverted"),Object(u.a)(y,"section"),Object(u.a)(v,"vertical"),"divider",r),b=Object(s.a)(m,e),w=Object(f.a)(m,e);return c.a.createElement(w,a()({},b,{className:E}),h.a.isNil(t)?o:t)}m.handledProps=["as","children","className","clearing","content","fitted","hidden","horizontal","inverted","section","vertical"],m.propTypes={},t.a=m}}]);
//# sourceMappingURL=282.830b0336.chunk.js.map
|