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


Current Path : /var/www/egov/build/static/js/
Upload File :
Current File : /var/www/egov/build/static/js/256.c939852a.chunk.js

(window.webpackJsonp=window.webpackJsonp||[]).push([[256,307],{1237:function(e,t,r){"use strict";r.r(t);var n=r(68),a=r(69),o=r(2),c=r.n(o),i=r(271),l=r(105),u=r(1333),s=r(1343),p=r(1377),f=r(272),h=r(1335),d=r(1337),g=r(1155),m=r(941),v=r(267),y=r(109);r(171);function b(){b=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:{},c=o.iterator||"@@iterator",i=o.asyncIterator||"@@asyncIterator",l=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,c=Object.create(o.prototype),i=new F(n||[]);return a(c,"_invoke",{value:_(e,r,i)}),c}function p(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=s;var f="suspendedStart",h="suspendedYield",d="executing",g="completed",m={};function v(){}function y(){}function E(){}var w={};u(w,c,function(){return this});var O=Object.getPrototypeOf,x=O&&O(O(G([])));x&&x!==r&&n.call(x,c)&&(w=x);var j=E.prototype=v.prototype=Object.create(w);function S(e){["next","throw","return"].forEach(function(t){u(e,t,function(e){return this._invoke(t,e)})})}function k(e,t){function r(a,o,c,i){var l=p(e[a],e,o);if("throw"!==l.type){var u=l.arg,s=u.value;return s&&"object"==typeof s&&n.call(s,"__await")?t.resolve(s.__await).then(function(e){r("next",e,c,i)},function(e){r("throw",e,c,i)}):t.resolve(s).then(function(e){u.value=e,c(u)},function(e){return r("throw",e,c,i)})}i(l.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 _(t,r,n){var a=f;return function(o,c){if(a===d)throw new Error("Generator is already running");if(a===g){if("throw"===o)throw c;return{value:e,done:!0}}for(n.method=o,n.arg=c;;){var i=n.delegate;if(i){var l=L(i,n);if(l){if(l===m)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(a===f)throw a=g,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);a=d;var u=p(t,r,n);if("normal"===u.type){if(a=n.done?g:h,u.arg===m)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(a=g,n.method="throw",n.arg=u.arg)}}}function L(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,L(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),m;var o=p(a,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,m;var c=o.arg;return c?c.done?(r[t.resultName]=c.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,m):c:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,m)}function C(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 N(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function F(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(C,this),this.reset(!0)}function G(t){if(t||""===t){var r=t[c];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 y.prototype=E,a(j,"constructor",{value:E,configurable:!0}),a(E,"constructor",{value:y,configurable:!0}),y.displayName=u(E,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,E):(e.__proto__=E,u(e,l,"GeneratorFunction")),e.prototype=Object.create(j),e},t.awrap=function(e){return{__await:e}},S(k.prototype),u(k.prototype,i,function(){return this}),t.AsyncIterator=k,t.async=function(e,r,n,a,o){void 0===o&&(o=Promise);var c=new k(s(e,r,n,a),o);return t.isGeneratorFunction(r)?c:c.next().then(function(e){return e.done?e.value:c.next()})},S(j),u(j,l,"Generator"),u(j,c,function(){return this}),u(j,"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=G,F.prototype={constructor:F,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(N),!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 i.type="throw",i.arg=t,r.next=n,a&&(r.method="next",r.arg=e),!!a}for(var o=this.tryEntries.length-1;o>=0;--o){var c=this.tryEntries[o],i=c.completion;if("root"===c.tryLoc)return a("end");if(c.tryLoc<=this.prev){var l=n.call(c,"catchLoc"),u=n.call(c,"finallyLoc");if(l&&u){if(this.prev<c.catchLoc)return a(c.catchLoc,!0);if(this.prev<c.finallyLoc)return a(c.finallyLoc)}else if(l){if(this.prev<c.catchLoc)return a(c.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<c.finallyLoc)return a(c.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 c=o?o.completion:{};return c.type=e,c.arg=t,o?(this.method="next",this.next=o.finallyLoc,m):this.complete(c)},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),m},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),N(r),m}},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;N(r)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:G(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),m}},t}t.default=Object(l.b)(function(e){return{user:e.user,univ:e.univ,deggrp:e.deggrp,fcurtype:e.user.fcurtype,fcollcode:e.user.fcollcode}},{})(function(e){var t=Object(o.useState)(""),r=Object(a.a)(t,2),l=r[0],E=r[1],w=Object(o.useState)(""),O=Object(a.a)(w,2),x=O[0],j=O[1],S=Object(o.useState)("0"),k=Object(a.a)(S,2),_=k[0],L=k[1],C=Object(o.useState)("z"),N=Object(a.a)(C,2),F=N[0],G=N[1],T=Object(o.useState)(""),P=Object(a.a)(T,2),R=P[0],A=P[1],D=Object(o.useState)([]),z=Object(a.a)(D,2),M=(z[0],z[1],Object(o.useState)("0")),B=Object(a.a)(M,2),U=B[0],X=B[1],I=Object(o.useState)("z"),H=Object(a.a)(I,2),J=H[0],Y=H[1],K=Object(o.useState)("0"),q=Object(a.a)(K,2),Q=q[0],V=q[1],W=Object(o.useState)("z"),Z=Object(a.a)(W,2),$=Z[0],ee=Z[1],te=Object(o.useContext)(y.a),re=te.err_msg,ne=(te.load,Object(a.a)(re,2)),ae=ne[0],oe=ne[1],ce=function(){var e=Object(n.a)(b().mark(function e(){return b().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:E(""),L("0"),G("z"),A("");case 4:case"end":return e.stop()}},e)}));return function(){return e.apply(this,arguments)}}();Object(o.useEffect)(function(){ie()},[]);var ie=function(){var t=Object(n.a)(b().mark(function t(){var r,n,a,o,c;return b().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return r="","500"!=e.fcurtype&&"501"!=e.fcurtype||""!=e.fcollcode&&(r=e.fcollcode),t.next=4,i.a.get("/app.php",{params:{a:"getDegreeGroup",univcode:e.user.fcuruniv,college:r}});case 4:if("object"===typeof(n=t.sent).data){t.next=11;break}return a={header:"Error",content:"Something went wrong"},Object(v.A)(a),t.abrupt("return");case 11:if(0!==n.data.error_code){t.next=17;break}return o=n.data.data.deggrp.map(function(e,t){return{key:t,value:e.fdeggrp,text:e.fdeggrp+"-"+e.fdescpn}}),j(o),t.abrupt("return");case 17:return c={header:"Error",content:n.data.data.msg},Object(v.A)(c),t.abrupt("return");case 20:case"end":return t.stop()}},t)}));return function(){return t.apply(this,arguments)}}(),le=function(){var t=Object(n.a)(b().mark(function t(){var r,n,a;return b().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(""!=l){t.next=3;break}return oe({type:"OPEN_MSG_BOX",payload:{header:"Error",message:"Select Degree Group"}}),t.abrupt("return");case 3:if(""!=R){t.next=6;break}return oe({type:"OPEN_MSG_BOX",payload:{header:"Error",message:"Select Status"}}),t.abrupt("return");case 6:if(""!=_){t.next=9;break}return oe({type:"OPEN_MSG_BOX",payload:{header:"Error",message:"Enter Register no. From"}}),t.abrupt("return");case 9:if(""!=F){t.next=12;break}return oe({type:"OPEN_MSG_BOX",payload:{header:"Error",message:"Enter Register no. To"}}),t.abrupt("return");case 12:return t.next=14,i.a.post("/app.php?a=enableExamAppForm&univcode="+e.univ.funivcode,{data:{deggrp:l,regnofrom:_,regnoto:F,status:R,collfrom:Q,collto:$,degfrom:U,degto:J}});case 14:if("object"===typeof(r=t.sent).data){t.next=21;break}return n={header:"Error",content:"Something went wrong"},Object(v.A)(n),t.abrupt("return");case 21:if(0!==r.data.error_code){t.next=28;break}return oe({type:"OPEN_MSG_BOX",payload:{header:"Success",message:r.data.data.msg}}),t.next=25,ce();case 25:return t.abrupt("return");case 28:return a={header:"Error",content:r.data.data.msg},Object(v.A)(a),t.abrupt("return");case 31:case"end":return t.stop()}},t)}));return function(){return t.apply(this,arguments)}}();return e.deggrp.map(function(e,t){return{key:t,value:e.fdeggrp,text:"".concat(e.fdeggrp)}}),c.a.createElement(c.a.Fragment,null,c.a.createElement(u.a,{size:"mini",open:ae.open,dimmer:"inverted",style:{height:"180px"}},c.a.createElement(u.a.Header,{style:{backgroundColor:ae.color,color:"#fff"}},ae.header),c.a.createElement(u.a.Content,null,c.a.createElement("div",{dangerouslySetInnerHTML:{__html:ae.message}})),c.a.createElement(u.a.Actions,null,c.a.createElement(s.a,{positive:!0,onClick:function(){return oe({type:"CLOSE_MSG_BOX"})}},"OK"))),c.a.createElement("div",{className:"animated fadeIn"},c.a.createElement(p.a,{fluid:!0,style:{minHeight:"82vh"}},c.a.createElement(p.a.Content,null,c.a.createElement(p.a.Header,{style:{display:"flex"},className:"sticky"},c.a.createElement("h4",null,"Enable / Disable Exam Application Form (Studentwise)"),c.a.createElement("div",{className:"ml-auto"},c.a.createElement(s.a,{basic:!0,color:"black",content:"Cancel",icon:"ban",onClick:function(){ce()}}),c.a.createElement(m.a,{to:"/dashboard"},c.a.createElement(s.a,{basic:!0,color:"red",content:"Exit",icon:"home"})))),c.a.createElement(f.a,null),c.a.createElement("div",{className:"col-md-6"},c.a.createElement(h.a,null,c.a.createElement(h.a.Field,{width:16},c.a.createElement("label",null,"Degree Group"),c.a.createElement(d.a,{placeholder:"Select Degree Group",name:"deggrp",value:l,selection:!0,search:!0,options:x,onChange:function(e,t){E(t.value)}})),c.a.createElement(h.a.Group,null,c.a.createElement(h.a.Field,{width:8},c.a.createElement("label",null,"College Range"),c.a.createElement(g.a,{type:"text",value:Q,placeholder:"College Range From",name:"collfrom",onChange:function(e){return V(e.target.value.toUpperCase())}})),c.a.createElement(h.a.Field,{width:8},c.a.createElement(g.a,{type:"text",value:$,placeholder:"College Range To",name:"collto",style:{marginTop:"22px"},onChange:function(e){return ee(e.target.value.toUpperCase())}}))),c.a.createElement(h.a.Group,null,c.a.createElement(h.a.Field,{width:8},c.a.createElement("label",null,"Degree Range"),c.a.createElement(g.a,{type:"text",value:U,placeholder:"Degree Range From",name:"degfrom",onChange:function(e){return X(e.target.value.toUpperCase())}})),c.a.createElement(h.a.Field,{width:8},c.a.createElement(g.a,{type:"text",value:J,placeholder:"Degree Range To",name:"degto",style:{marginTop:"22px"},onChange:function(e){return Y(e.target.value.toUpperCase())}}))),c.a.createElement(h.a.Group,null,c.a.createElement(h.a.Field,{width:8},c.a.createElement("label",null,"Reg. No. Range"),c.a.createElement(g.a,{type:"text",value:_,placeholder:"Reg. No. From",name:"regnofrom",onChange:function(e){return L(e.target.value.toUpperCase())}})),c.a.createElement(h.a.Field,{width:8},c.a.createElement(g.a,{type:"text",value:F,placeholder:"Reg. No. To",name:"regnoto",style:{marginTop:"22px"},onChange:function(e){return G(e.target.value.toUpperCase())}}))),c.a.createElement(h.a.Field,{width:16},c.a.createElement("label",null,"Status"),c.a.createElement(d.a,{placeholder:"-Select-",name:"status",value:R,selection:!0,options:[{key:"0",text:"Select",value:""},{key:"1",text:"Disable",value:"T"},{key:"2",text:"Enable",value:"F"}],onChange:function(e,t){A(t.value)}})),c.a.createElement("p",null,c.a.createElement("b",null,"Please disable student before enableing studentwise")),c.a.createElement(s.a,{color:"blue",onClick:le},"Save")))))))},v.j)},272:function(e,t,r){"use strict";var n=r(270),a=r.n(n),o=r(268),c=r.n(o),i=r(2),l=r.n(i),u=r(349),s=r(613),p=r(611),f=r(269);function h(e){var t=e.children,r=e.className,n=e.clearing,o=e.content,i=e.fitted,d=e.hidden,g=e.horizontal,m=e.inverted,v=e.section,y=e.vertical,b=c()("ui",Object(u.a)(n,"clearing"),Object(u.a)(i,"fitted"),Object(u.a)(d,"hidden"),Object(u.a)(g,"horizontal"),Object(u.a)(m,"inverted"),Object(u.a)(v,"section"),Object(u.a)(y,"vertical"),"divider",r),E=Object(s.a)(h,e),w=Object(p.a)(h,e);return l.a.createElement(w,a()({},E,{className:b}),f.a.isNil(t)?o:t)}h.handledProps=["as","children","className","clearing","content","fitted","hidden","horizontal","inverted","section","vertical"],h.propTypes={},t.a=h}}]);
//# sourceMappingURL=256.c939852a.chunk.js.map