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.216.156.226
(window["webpackJsonpQP-Tran"]=window["webpackJsonpQP-Tran"]||[]).push([[35],{412:function(t,e,r){"use strict";r.r(e);var n=r(127),a=r(52),o=r(0),i=r.n(o),c=r(12),l=r(36),u=r(422),s=r(114),h=r(80),f=r.n(h);function p(){p=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},a=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",i=n.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(j){c=function(t,e,r){return t[e]=r}}function l(t,e,r,n){var a=e&&e.prototype instanceof h?e:h,o=Object.create(a.prototype),i=new k(n||[]);return o._invoke=function(t,e,r){var n="suspendedStart";return function(a,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===a)throw o;return N()}for(r.method=a,r.arg=o;;){var i=r.delegate;if(i){var c=x(i,r);if(c){if(c===s)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var l=u(t,e,r);if("normal"===l.type){if(n=r.done?"completed":"suspendedYield",l.arg===s)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(n="completed",r.method="throw",r.arg=l.arg)}}}(t,r,i),o}function u(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(j){return{type:"throw",arg:j}}}t.wrap=l;var s={};function h(){}function f(){}function d(){}var g={};c(g,a,(function(){return this}));var v=Object.getPrototypeOf,m=v&&v(v(S([])));m&&m!==e&&r.call(m,a)&&(g=m);var y=d.prototype=h.prototype=Object.create(g);function w(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function b(t,e){var n;this._invoke=function(a,o){function i(){return new e((function(n,i){!function n(a,o,i,c){var l=u(t[a],t,o);if("throw"!==l.type){var s=l.arg,h=s.value;return h&&"object"==typeof h&&r.call(h,"__await")?e.resolve(h.__await).then((function(t){n("next",t,i,c)}),(function(t){n("throw",t,i,c)})):e.resolve(h).then((function(t){s.value=t,i(s)}),(function(t){return n("throw",t,i,c)}))}c(l.arg)}(a,o,n,i)}))}return n=n?n.then(i,i):i()}}function x(t,e){var r=t.iterator[e.method];if(void 0===r){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,x(t,e),"throw"===e.method))return s;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return s}var n=u(r,t.iterator,e.arg);if("throw"===n.type)return e.method="throw",e.arg=n.arg,e.delegate=null,s;var a=n.arg;return a?a.done?(e[t.resultName]=a.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,s):a:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,s)}function E(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function k(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(E,this),this.reset(!0)}function S(t){if(t){var e=t[a];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:N}}function N(){return{value:void 0,done:!0}}return f.prototype=d,c(y,"constructor",d),c(d,"constructor",f),f.displayName=c(d,i,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===f||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,c(t,i,"GeneratorFunction")),t.prototype=Object.create(y),t},t.awrap=function(t){return{__await:t}},w(b.prototype),c(b.prototype,o,(function(){return this})),t.AsyncIterator=b,t.async=function(e,r,n,a,o){void 0===o&&(o=Promise);var i=new b(l(e,r,n,a),o);return t.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},w(y),c(y,i,"Generator"),c(y,a,(function(){return this})),c(y,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},t.values=S,k.prototype={constructor:k,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(L),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return i.type="throw",i.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],i=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var c=r.call(o,"catchLoc"),l=r.call(o,"finallyLoc");if(c&&l){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var a=this.tryEntries[n];if(a.tryLoc<=this.prev&&r.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=t,i.arg=e,o?(this.method="next",this.next=o.finallyLoc,s):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),s},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),L(r),s}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var a=n.arg;L(r)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:S(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),s}},t}e.default=function(t){var e=Object(c.g)();"/bcu"==t.match.path?localStorage.setItem("univcode","041"):"/rcub"==t.match.path?localStorage.setItem("univcode","027"):"/demo"==t.match.path&&localStorage.setItem("univcode","098");var h=Object(o.useState)(""),d=Object(a.a)(h,2),g=d[0],v=d[1];Object(o.useEffect)((function(){(function(){var t=Object(n.a)(p().mark((function t(){var e;return p().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,s.a.get("app.php?a=getUnivName&univcode=".concat(localStorage.getItem("univcode")),{headers:{"X-Auth-Type":"LOADUNIV"}});case 3:e=t.sent,v(e.data.data.FUNIVNAME),t.next=10;break;case 7:t.prev=7,t.t0=t.catch(0),console.log(t.t0);case 10:case"end":return t.stop()}}),t,null,[[0,7]])})));return function(){return t.apply(this,arguments)}})()()}),[]);var m=Object(o.useState)(""),y=Object(a.a)(m,2),w=y[0],b=y[1],x=Object(o.useState)(""),E=Object(a.a)(x,2),L=E[0],k=E[1],S=function(){var t=Object(n.a)(p().mark((function t(){var r;return p().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(""!=w){t.next=3;break}return f.a.fire("Enter User Name"),t.abrupt("return");case 3:if(""!=L){t.next=6;break}return f.a.fire("Enter Password"),t.abrupt("return");case 6:return console.log("hkjhkjhk: ",localStorage.getItem("univcode")),t.prev=7,t.next=10,s.a.get("app.php?a=qptranvaliddate&univcode=".concat(localStorage.getItem("univcode"),"&username=").concat(w,"&paswword=").concat(L),{headers:{"X-Auth-Type":"LOGREGN"}});case 10:if(0!=(r=t.sent).data.error_code){t.next=21;break}localStorage.setItem("token",r.data.data.token),localStorage.setItem("collcode",r.data.data.loginfo.fcollcode),localStorage.setItem("user",r.data.data.loginfo.fuser),localStorage.setItem("usertype",r.data.data.loginfo.fusertype),localStorage.setItem("name",r.data.data.loginfo.fname),localStorage.setItem("mob",r.data.data.loginfo.fmobileno),"A"==localStorage.getItem("usertype")?e.push("/dashboard"):e.push("/dashboardcollege"),t.next=23;break;case 21:return f.a.fire(r.data.data.msg),t.abrupt("return");case 23:t.next=28;break;case 25:t.prev=25,t.t0=t.catch(7),console.log(t.t0);case 28:case"end":return t.stop()}}),t,null,[[7,25]])})));return function(){return t.apply(this,arguments)}}(),N=localStorage.getItem("univcode");return i.a.createElement("div",{style:{backgroundColor:"white",borderRadius:"10px",width:"100%",height:"100%"}},i.a.createElement("div",null,i.a.createElement("div",{className:"brand-logo"},i.a.createElement("img",{src:r(188)("./".concat(N,".jpg")),alt:"logo",style:{width:"120px",height:"100px"}}),i.a.createElement("b",{style:{color:"#0763c5"}},g)),i.a.createElement("hr",null),i.a.createElement("div",{style:{display:"flex"}},i.a.createElement("div",{className:"col-lg-7",style:{marginRight:"5px",paddingLeft:"0px",paddingRight:"0px"}},i.a.createElement("p",{style:{backgroundColor:"rgb(7 99 197)",color:"white",fontSize:"16px",textAlign:"center"}},"Notification"),i.a.createElement("div",null)),i.a.createElement("div",{className:"col-lg-5 pr-1",style:{paddingLeft:"0px",paddingRight:"0px"}},i.a.createElement("p",{style:{backgroundColor:"rgb(7 99 197)",color:"white",fontSize:"16px",textAlign:"center"}},"Login"),i.a.createElement(u.a,{className:"p-5"},i.a.createElement(u.a.Group,null,i.a.createElement(u.a.Input,{type:"email",onChange:function(t,e){b(e.value)},value:w,style:{width:"476px"},placeholder:"Username",className:"h-auto"})),i.a.createElement(u.a.Group,{className:"d-flex"},i.a.createElement(u.a.Input,{type:"password",onChange:function(t,e){k(e.value)},value:L,style:{width:"476px"},placeholder:"Password",className:"h-auto"})),i.a.createElement("div",{className:"mt-3"},i.a.createElement(l.b,{className:"btn btn-block btn-lg font-weight-medium auth-form-btn",onClick:function(){return S()},style:{backgroundColor:"rgb(7 99 197)",color:"white"}},"SIGN IN")))))))}}}]);
//# sourceMappingURL=35.f38a1a73.chunk.js.map
|