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


Current Path : /var/www/tdvsapp/static/js/
Upload File :
Current File : /var/www/tdvsapp/static/js/10.4070e960.chunk.js

(window.webpackJsonp=window.webpackJsonp||[]).push([[10],{1149:function(e,t,r){"use strict";function a(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}r.d(t,"a",function(){return a})},1164:function(e,t,r){"use strict";r.d(t,"a",function(){return n});var a=r(1149);function n(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"===typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){Object(a.a)(e,t,r[t])})}return e}},1166:function(e,t,r){"use strict";var a=r(1148),n=r.n(a),o=r(71),i=n.a.create({baseURL:o.a,headers:{"X-Auth-Origin":"E-GOVERNANCE"}});t.a=i},1180:function(e,t,r){"use strict";var a=r(11),n=r.n(a),o=r(12),i=r.n(o),c=r(1),l=r.n(c),s=r(77),u=r(514),d=r(515),f=r(15);function p(e){var t=e.children,r=e.className,a=e.content,o=e.fluid,c=e.text,h=e.textAlign,m=i()("ui",Object(s.a)(c,"text"),Object(s.a)(o,"fluid"),Object(s.d)(h),"container",r),v=Object(u.a)(p,e),y=Object(d.a)(p,e);return l.a.createElement(y,n()({},v,{className:m}),f.a.isNil(t)?a:t)}p.handledProps=["as","children","className","content","fluid","text","textAlign"],p.propTypes={},t.a=p},1285:function(e,t,r){"use strict";var a=r(11),n=r.n(a),o=(r(331),r(134)),i=r.n(o),c=r(12),l=r.n(c),s=r(1),u=r.n(s),d=r(77),f=r(514),p=r(515),h=r(15);function m(e){var t=e.children,r=e.className,a=l()(r),o=Object(f.a)(m,e),i=Object(p.a)(m,e);return u.a.createElement(i,n()({},o,{className:a}),t)}m.handledProps=["as","children","className"],m.defaultProps={as:"tbody"},m.propTypes={};var v=m,y=r(517),g=r(520);function b(e){var t=e.active,r=e.children,a=e.className,o=e.collapsing,i=e.content,c=e.disabled,s=e.error,m=e.icon,v=e.negative,y=e.positive,O=e.selectable,E=e.singleLine,w=e.textAlign,j=e.verticalAlign,x=e.warning,N=e.width,_=l()(Object(d.a)(t,"active"),Object(d.a)(o,"collapsing"),Object(d.a)(c,"disabled"),Object(d.a)(s,"error"),Object(d.a)(v,"negative"),Object(d.a)(y,"positive"),Object(d.a)(O,"selectable"),Object(d.a)(E,"single line"),Object(d.a)(x,"warning"),Object(d.d)(w),Object(d.f)(j),Object(d.g)(N,"wide"),a),P=Object(f.a)(b,e),L=Object(p.a)(b,e);return h.a.isNil(r)?u.a.createElement(L,n()({},P,{className:_}),g.a.create(m),i):u.a.createElement(L,n()({},P,{className:_}),r)}b.handledProps=["active","as","children","className","collapsing","content","disabled","error","icon","negative","positive","selectable","singleLine","textAlign","verticalAlign","warning","width"],b.defaultProps={as:"td"},b.propTypes={},b.create=Object(y.f)(b,function(e){return{content:e}});var O=b;function E(e){var t=e.children,r=e.className,a=e.content,o=e.fullWidth,i=l()(Object(d.a)(o,"full-width"),r),c=Object(f.a)(E,e),s=Object(p.a)(E,e);return u.a.createElement(s,n()({},c,{className:i}),h.a.isNil(t)?a:t)}E.handledProps=["as","children","className","content","fullWidth"],E.defaultProps={as:"thead"},E.propTypes={};var w=E;function j(e){var t=e.as,r=Object(f.a)(j,e);return u.a.createElement(w,n()({},r,{as:t}))}j.handledProps=["as"],j.propTypes={},j.defaultProps={as:"tfoot"};var x=j;function N(e){var t=e.as,r=e.className,a=e.sorted,o=l()(Object(d.e)(a,"sorted"),r),i=Object(f.a)(N,e);return u.a.createElement(O,n()({},i,{as:t,className:o}))}N.handledProps=["as","className","sorted"],N.propTypes={},N.defaultProps={as:"th"};var _=N;function P(e){var t=e.active,r=e.cellAs,a=e.cells,o=e.children,c=e.className,s=e.disabled,m=e.error,v=e.negative,y=e.positive,g=e.textAlign,b=e.verticalAlign,E=e.warning,w=l()(Object(d.a)(t,"active"),Object(d.a)(s,"disabled"),Object(d.a)(m,"error"),Object(d.a)(v,"negative"),Object(d.a)(y,"positive"),Object(d.a)(E,"warning"),Object(d.d)(g),Object(d.f)(b),c),j=Object(f.a)(P,e),x=Object(p.a)(P,e);return h.a.isNil(o)?u.a.createElement(x,n()({},j,{className:w}),i()(a,function(e){return O.create(e,{defaultProps:{as:r}})})):u.a.createElement(x,n()({},j,{className:w}),o)}P.handledProps=["active","as","cellAs","cells","children","className","disabled","error","negative","positive","textAlign","verticalAlign","warning"],P.defaultProps={as:"tr",cellAs:"td"},P.propTypes={},P.create=Object(y.f)(P,function(e){return{cells:e}});var L=P;function S(e){var t=e.attached,r=e.basic,a=e.celled,o=e.children,c=e.className,s=e.collapsing,m=e.color,y=e.columns,g=e.compact,b=e.definition,O=e.fixed,E=e.footerRow,j=e.headerRow,N=e.headerRows,_=e.inverted,P=e.padded,T=e.renderBodyRow,k=e.selectable,G=e.singleLine,M=e.size,C=e.sortable,A=e.stackable,I=e.striped,F=e.structured,B=e.tableData,R=e.textAlign,X=e.unstackable,D=e.verticalAlign,U=l()("ui",m,M,Object(d.a)(a,"celled"),Object(d.a)(s,"collapsing"),Object(d.a)(b,"definition"),Object(d.a)(O,"fixed"),Object(d.a)(_,"inverted"),Object(d.a)(k,"selectable"),Object(d.a)(G,"single line"),Object(d.a)(C,"sortable"),Object(d.a)(A,"stackable"),Object(d.a)(I,"striped"),Object(d.a)(F,"structured"),Object(d.a)(X,"unstackable"),Object(d.b)(t,"attached"),Object(d.b)(r,"basic"),Object(d.b)(g,"compact"),Object(d.b)(P,"padded"),Object(d.d)(R),Object(d.f)(D),Object(d.g)(y,"column"),"table",c),H=Object(f.a)(S,e),V=Object(p.a)(S,e);if(!h.a.isNil(o))return u.a.createElement(V,n()({},H,{className:U}),o);var Y={defaultProps:{cellAs:"th"}},z=(j||N)&&u.a.createElement(w,null,L.create(j,Y),i()(N,function(e){return L.create(e,Y)}));return u.a.createElement(V,n()({},H,{className:U}),z,u.a.createElement(v,null,T&&i()(B,function(e,t){return L.create(T(e,t))})),E&&u.a.createElement(x,null,L.create(E)))}S.handledProps=["as","attached","basic","celled","children","className","collapsing","color","columns","compact","definition","fixed","footerRow","headerRow","headerRows","inverted","padded","renderBodyRow","selectable","singleLine","size","sortable","stackable","striped","structured","tableData","textAlign","unstackable","verticalAlign"],S.defaultProps={as:"table"},S.propTypes={},S.Body=v,S.Cell=O,S.Footer=x,S.Header=w,S.HeaderCell=_,S.Row=L;t.a=S},1557:function(e,t,r){"use strict";r.r(t);var a=r(1),n=r.n(a),o=r(59),i=r(1149),c=r(1164),l=n.a.createContext(null),s=function(e){var t=e.children;var r=Object(a.useReducer)(function(e,t){switch(t.type){case"SET_UNIVS":return Object(c.a)({},e,{univ:t.payload});case"EDIT_REGN":var r=t.payload;return Object(c.a)({},e,Object(i.a)({},r.name,r.value));case"SET_TEACH_INFO":return Object(c.a)({},e,{teachinfo:t.payload,valid:!0});case"UPDATE_OTP_STATUS":return Object(c.a)({},e,{otpsent:!0});default:return e}},{univ:[],funivcode:"",fteachcode:"",teachinfo:{fdob:"",fmobile:"",fteachcode:"",fteachname:""},teachvalid:!1,valid:!1,otpsent:!1,fpasswd:"",fcpasswd:"",fotp:"",feotp:""}),s=Object(o.a)(r,2),u=s[0],d=s[1],f=Object(a.useState)([]),p=Object(o.a)(f,2),h={univ:[p[0],p[1]],regn_store:[u,d]};return n.a.createElement(l.Provider,{value:h},t)},u=r(1180),d=r(1524),f=r(195),p=r(1553),h=r(1556),m=r(1559),v=r(1285),y=r(159),g=r(1166),b=function(e){var t=Object(a.useContext)(l).regn_store,r=Object(a.useContext)(y.a),i=r.load,c=r.err_msg,s=Object(o.a)(i,2),u=(s[0],s[1]),f=Object(o.a)(c,2),b=(f[0],f[1]),O=Object(o.a)(t,2),E=O[0],w=O[1];Object(a.useEffect)(function(){g.a.get("/get-univ?univcode=000").then(function(e){var t=e.data;0==t.status?w({type:"SET_UNIVS",payload:t.data}):b({type:"OPEN_MSG_BOX",payload:{header:"Message",message:t.data.msg}})})},[]);var j=E.univ,x=E.fteachcode,N=E.teachinfo,_=(E.teachvalid,E.funivcode),P=j.map(function(e){return{key:e.funivcode,text:e.funivname,value:e.funivcode}});return n.a.createElement(p.a,null,n.a.createElement(p.a.Field,{required:!0},n.a.createElement(h.a,{size:"mini",fluid:!0,selection:!0,placeholder:"Select University",name:"funivcode",value:_,options:P,disabled:e.valid,onChange:function(e,t){return w({type:"EDIT_REGN",payload:{name:t.name,value:t.value}})}})),n.a.createElement(p.a.Field,null,n.a.createElement(p.a.Input,{name:"fteachcode",type:"text",icon:"user",iconPosition:"left",placeholder:"Teacher Code",maxLength:"20",minLength:"5",value:x,readOnly:e.valid,onChange:function(e,t){return w({type:"EDIT_REGN",payload:{name:t.name,value:t.value}})}})),e.valid?null:n.a.createElement("div",{className:"row"},n.a.createElement("div",{className:"col-md-6"},n.a.createElement(m.a,{color:"blue",className:"px-4",onClick:function(){""!=_?x.length<3?b({type:"OPEN_MSG_BOX",payload:{header:"Message",message:"Enter valid teacher code."}}):(u(!0),g.a.get("/get-teach-info",{params:{univcode:_,fteachcode:x}}).then(function(e){u(!1);var t=e.data;0==t.status?w({type:"SET_TEACH_INFO",payload:t.data}):b({type:"OPEN_MSG_BOX",payload:{header:"Message",message:t.msg}})}).catch(function(e){u(!1),b({type:"OPEN_MSG_BOX",payload:{header:"Message",message:e.message}})})):b({type:"OPEN_MSG_BOX",payload:{header:"Message",message:"Select university code."}})}},"Validate"))),e.valid?n.a.createElement(d.a,{fluid:!0,style:{marginBottom:"1em"}},n.a.createElement(d.a.Content,null,n.a.createElement(v.a,{basic:"very",celled:!0,collapsing:!0,columns:"16",padded:!0,singleLine:!0},n.a.createElement(v.a.Body,null,n.a.createElement(v.a.Row,null,n.a.createElement(v.a.Cell,null,"Name"),n.a.createElement(v.a.Cell,null,n.a.createElement("b",null,N.fteachname))),n.a.createElement(v.a.Row,null,n.a.createElement(v.a.Cell,null,"Date of birth"),n.a.createElement(v.a.Cell,null,n.a.createElement("b",null,N.fdob))))))):null)},O=r(1147);function E(){E=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,a=Object.defineProperty||function(e,t,r){e[t]=r.value},n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",i=n.asyncIterator||"@@asyncIterator",c=n.toStringTag||"@@toStringTag";function l(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(S){l=function(e,t,r){return e[t]=r}}function s(e,t,r,n){var o=t&&t.prototype instanceof f?t:f,i=Object.create(o.prototype),c=new _(n||[]);return a(i,"_invoke",{value:w(e,r,c)}),i}function u(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(S){return{type:"throw",arg:S}}}e.wrap=s;var d={};function f(){}function p(){}function h(){}var m={};l(m,o,function(){return this});var v=Object.getPrototypeOf,y=v&&v(v(P([])));y&&y!==t&&r.call(y,o)&&(m=y);var g=h.prototype=f.prototype=Object.create(m);function b(e){["next","throw","return"].forEach(function(t){l(e,t,function(e){return this._invoke(t,e)})})}function O(e,t){var n;a(this,"_invoke",{value:function(a,o){function i(){return new t(function(n,i){!function a(n,o,i,c){var l=u(e[n],e,o);if("throw"!==l.type){var s=l.arg,d=s.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then(function(e){a("next",e,i,c)},function(e){a("throw",e,i,c)}):t.resolve(d).then(function(e){s.value=e,i(s)},function(e){return a("throw",e,i,c)})}c(l.arg)}(a,o,n,i)})}return n=n?n.then(i,i):i()}})}function w(e,t,r){var a="suspendedStart";return function(n,o){if("executing"===a)throw new Error("Generator is already running");if("completed"===a){if("throw"===n)throw o;return L()}for(r.method=n,r.arg=o;;){var i=r.delegate;if(i){var c=j(i,r);if(c){if(c===d)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===a)throw a="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);a="executing";var l=u(e,t,r);if("normal"===l.type){if(a=r.done?"completed":"suspendedYield",l.arg===d)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(a="completed",r.method="throw",r.arg=l.arg)}}}function j(e,t){var r=t.method,a=e.iterator[r];if(void 0===a)return t.delegate=null,"throw"===r&&e.iterator.return&&(t.method="return",t.arg=void 0,j(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),d;var n=u(a,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,d;var o=n.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function x(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 _(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(x,this),this.reset(!0)}function P(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var a=-1,n=function t(){for(;++a<e.length;)if(r.call(e,a))return t.value=e[a],t.done=!1,t;return t.value=void 0,t.done=!0,t};return n.next=n}}return{next:L}}function L(){return{value:void 0,done:!0}}return p.prototype=h,a(g,"constructor",{value:h,configurable:!0}),a(h,"constructor",{value:p,configurable:!0}),p.displayName=l(h,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,l(e,c,"GeneratorFunction")),e.prototype=Object.create(g),e},e.awrap=function(e){return{__await:e}},b(O.prototype),l(O.prototype,i,function(){return this}),e.AsyncIterator=O,e.async=function(t,r,a,n,o){void 0===o&&(o=Promise);var i=new O(s(t,r,a,n),o);return e.isGeneratorFunction(r)?i:i.next().then(function(e){return e.done?e.value:i.next()})},b(g),l(g,c,"Generator"),l(g,o,function(){return this}),l(g,"toString",function(){return"[object Generator]"}),e.keys=function(e){var t=Object(e),r=[];for(var a in t)r.push(a);return r.reverse(),function e(){for(;r.length;){var a=r.pop();if(a in t)return e.value=a,e.done=!1,e}return e.done=!0,e}},e.values=P,_.prototype={constructor:_,reset:function(e){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(N),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function a(r,a){return i.type="throw",i.arg=e,t.next=r,a&&(t.method="next",t.arg=void 0),!!a}for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n],i=o.completion;if("root"===o.tryLoc)return a("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 a(o.catchLoc,!0);if(this.prev<o.finallyLoc)return a(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return a(o.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return a(o.finallyLoc)}}}},abrupt:function(e,t){for(var a=this.tryEntries.length-1;a>=0;--a){var n=this.tryEntries[a];if(n.tryLoc<=this.prev&&r.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var o=n;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,d):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),d},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),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var a=r.completion;if("throw"===a.type){var n=a.arg;N(r)}return n}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:P(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},e}var w=function(){var e=Object(a.useContext)(l).regn_store,t=Object(o.a)(e,2),r=t[0],i=t[1],s=r.teachinfo,u=(r.fpasswd,r.fcpasswd,r.otpsent),d=r.funivcode,f=Object(a.useContext)(y.a).err_msg,h=Object(o.a)(f,2),v=(h[0],h[1]),b=function(){var e=Object(O.a)(E().mark(function e(){var t,r;return E().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,g.a.post("/save-teach-regn?univcode="+d,Object(c.a)({},s));case 2:0==(t=e.sent).data.status?(r=t.data,i({type:"UPDATE_OTP_STATUS",payload:{data:r}}),v({type:"OPEN_MSG_BOX",payload:{header:"Success",message:t.data.msg}})):v({type:"OPEN_MSG_BOX",payload:{header:"Error",message:t.data.msg}});case 4:case"end":return e.stop()}},e)}));return function(){return e.apply(this,arguments)}}(),w=s.fmobile?s.fmobile.slice(0,2)+s.fmobile.slice(2).replace(/.(?=...)/g,"*"):"",j=s.femail.replace(/^(.)(.*)(.@.*)$/,function(e,t,r,a){return t+r.replace(/./g,"*")+a});return n.a.createElement("div",{className:"mt-3"},n.a.createElement(p.a,{onSubmit:b},n.a.createElement(p.a.Field,null,n.a.createElement(p.a.Input,{autoComplete:"off",name:"fmobileno",type:"text",icon:"mobile alternate",iconPosition:"left",placeholder:"Mobile No.",maxLength:"10",minLength:"10",value:w,readOnly:!0})),n.a.createElement(p.a.Field,null,n.a.createElement(p.a.Input,{autoComplete:"off",name:"femail",type:"text",icon:"mail outline",iconPosition:"left",placeholder:"Email Id.",value:j,readOnly:!0})),n.a.createElement(p.a.Field,null,n.a.createElement("div",{className:"row"},n.a.createElement("div",{className:"col-md-6"},n.a.createElement(m.a,{color:"blue"},u?"Resend-OTP":"Send-OTP"))))))},j=r(72),x=r(1148),N=r.n(x),_=r(71);function P(){P=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,a=Object.defineProperty||function(e,t,r){e[t]=r.value},n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",i=n.asyncIterator||"@@asyncIterator",c=n.toStringTag||"@@toStringTag";function l(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(S){l=function(e,t,r){return e[t]=r}}function s(e,t,r,n){var o=t&&t.prototype instanceof f?t:f,i=Object.create(o.prototype),c=new N(n||[]);return a(i,"_invoke",{value:E(e,r,c)}),i}function u(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(S){return{type:"throw",arg:S}}}e.wrap=s;var d={};function f(){}function p(){}function h(){}var m={};l(m,o,function(){return this});var v=Object.getPrototypeOf,y=v&&v(v(_([])));y&&y!==t&&r.call(y,o)&&(m=y);var g=h.prototype=f.prototype=Object.create(m);function b(e){["next","throw","return"].forEach(function(t){l(e,t,function(e){return this._invoke(t,e)})})}function O(e,t){var n;a(this,"_invoke",{value:function(a,o){function i(){return new t(function(n,i){!function a(n,o,i,c){var l=u(e[n],e,o);if("throw"!==l.type){var s=l.arg,d=s.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then(function(e){a("next",e,i,c)},function(e){a("throw",e,i,c)}):t.resolve(d).then(function(e){s.value=e,i(s)},function(e){return a("throw",e,i,c)})}c(l.arg)}(a,o,n,i)})}return n=n?n.then(i,i):i()}})}function E(e,t,r){var a="suspendedStart";return function(n,o){if("executing"===a)throw new Error("Generator is already running");if("completed"===a){if("throw"===n)throw o;return L()}for(r.method=n,r.arg=o;;){var i=r.delegate;if(i){var c=w(i,r);if(c){if(c===d)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===a)throw a="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);a="executing";var l=u(e,t,r);if("normal"===l.type){if(a=r.done?"completed":"suspendedYield",l.arg===d)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(a="completed",r.method="throw",r.arg=l.arg)}}}function w(e,t){var r=t.method,a=e.iterator[r];if(void 0===a)return t.delegate=null,"throw"===r&&e.iterator.return&&(t.method="return",t.arg=void 0,w(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),d;var n=u(a,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,d;var o=n.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function j(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 x(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function N(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(j,this),this.reset(!0)}function _(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var a=-1,n=function t(){for(;++a<e.length;)if(r.call(e,a))return t.value=e[a],t.done=!1,t;return t.value=void 0,t.done=!0,t};return n.next=n}}return{next:L}}function L(){return{value:void 0,done:!0}}return p.prototype=h,a(g,"constructor",{value:h,configurable:!0}),a(h,"constructor",{value:p,configurable:!0}),p.displayName=l(h,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,l(e,c,"GeneratorFunction")),e.prototype=Object.create(g),e},e.awrap=function(e){return{__await:e}},b(O.prototype),l(O.prototype,i,function(){return this}),e.AsyncIterator=O,e.async=function(t,r,a,n,o){void 0===o&&(o=Promise);var i=new O(s(t,r,a,n),o);return e.isGeneratorFunction(r)?i:i.next().then(function(e){return e.done?e.value:i.next()})},b(g),l(g,c,"Generator"),l(g,o,function(){return this}),l(g,"toString",function(){return"[object Generator]"}),e.keys=function(e){var t=Object(e),r=[];for(var a in t)r.push(a);return r.reverse(),function e(){for(;r.length;){var a=r.pop();if(a in t)return e.value=a,e.done=!1,e}return e.done=!0,e}},e.values=_,N.prototype={constructor:N,reset:function(e){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(x),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function a(r,a){return i.type="throw",i.arg=e,t.next=r,a&&(t.method="next",t.arg=void 0),!!a}for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n],i=o.completion;if("root"===o.tryLoc)return a("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 a(o.catchLoc,!0);if(this.prev<o.finallyLoc)return a(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return a(o.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return a(o.finallyLoc)}}}},abrupt:function(e,t){for(var a=this.tryEntries.length-1;a>=0;--a){var n=this.tryEntries[a];if(n.tryLoc<=this.prev&&r.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var o=n;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,d):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),d},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),x(r),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var a=r.completion;if("throw"===a.type){var n=a.arg;x(r)}return n}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:_(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},e}var L=function(){var e=Object(a.useContext)(l).regn_store,t=Object(o.a)(e,2),r=t[0],i=t[1],s=r.teachinfo,u=(r.otpsent,r.fotp),d=r.funivcode,f=r.feotp,h=Object(a.useContext)(y.a).err_msg,v=Object(o.a)(h,2),b=(v[0],v[1]),E=Object(a.useState)(""),w=Object(o.a)(E,2),x=w[0],L=w[1],S=Object(a.useState)(""),T=Object(o.a)(S,2),k=T[0],G=T[1],M=Object(j.useHistory)(),C=function(){var e=Object(O.a)(P().mark(function e(){var t;return P().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!(u.length<4)){e.next=3;break}return b({type:"OPEN_MSG_BOX",payload:{header:"Message",message:"Enter Mobile OTP of atleast 4 characters !!!"}}),e.abrupt("return");case 3:if(!(f.length<4)){e.next=6;break}return b({type:"OPEN_MSG_BOX",payload:{header:"Message",message:"Enter Email OTP of atleast 4 characters !!!"}}),e.abrupt("return");case 6:return e.next=8,g.a.post("/signup-teach-regn?univcode="+d,Object(c.a)({},s,{fotp:u,feotp:f}));case 8:0==(t=e.sent).data.status?(b({type:"OPEN_MSG_BOX",payload:{header:"Success",message:t.data.msg}}),M.push(sessionStorage.getItem("rootPath"))):b({type:"OPEN_MSG_BOX",payload:{header:"Message",message:t.data.msg}});case 10:case"end":return e.stop()}},e)}));return function(){return e.apply(this,arguments)}}(),A=function(){var e=Object(O.a)(P().mark(function e(){var t;return P().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!(u.length<4)){e.next=3;break}return b({type:"OPEN_MSG_BOX",payload:{header:"Message",message:"Enter Mobile OTP of atleast 4 characters !!!"}}),e.abrupt("return");case 3:if(!(f.length<4)){e.next=6;break}return b({type:"OPEN_MSG_BOX",payload:{header:"Message",message:"Enter Email OTP of atleast 4 characters !!!"}}),e.abrupt("return");case 6:if("030x"!==d){e.next=13;break}if(x===k){e.next=10;break}return b({type:"OPEN_MSG_BOX",payload:{header:"Message",message:"Password did not match !!!"}}),e.abrupt("return");case 10:if(!(x.length<8)){e.next=13;break}return b({type:"OPEN_MSG_BOX",payload:{header:"Message",message:"Password should be atleast 8 characters !!!"}}),e.abrupt("return");case 13:return t=_.b+"a=registerTeacherData&univcode=".concat(d),e.next=16,N.a.post(t,Object(c.a)({},s,{fotp:u,feotp:f,fpassword:x})).then(function(e){0===e.data.error_code?b({type:"OPEN_MSG_BOX",payload:{header:"Success",message:e.data.data.msg}}):b({type:"OPEN_MSG_BOX",payload:{header:"Message",message:e.data.data.msg}})});case 16:case"end":return e.stop()}},e)}));return function(){return e.apply(this,arguments)}}();return n.a.createElement("div",{style:{marginTop:"1em"}},n.a.createElement(p.a,null,n.a.createElement(p.a.Field,null,n.a.createElement(p.a.Input,{name:"fotp",type:"text",icon:"mobile alternate",iconPosition:"left",placeholder:"Mobile OTP",maxLength:"10",minLength:"10",value:u,onChange:function(e,t){return i({type:"EDIT_REGN",payload:{name:t.name,value:t.value}})}})),n.a.createElement(p.a.Field,null,n.a.createElement(p.a.Input,{name:"feotp",type:"text",icon:"mail outline",iconPosition:"left",placeholder:"Email OTP",maxLength:"10",minLength:"10",value:f,onChange:function(e,t){return i({type:"EDIT_REGN",payload:{name:t.name,value:t.value}})}})),"030x"===d&&n.a.createElement("div",null,n.a.createElement(p.a.Field,null,n.a.createElement(p.a.Input,{name:"fpassword",type:"text",icon:"lock",iconPosition:"left",placeholder:"Password",value:x,onChange:function(e,t){return L(t.value)}})),n.a.createElement(p.a.Field,null,n.a.createElement(p.a.Input,{name:"fpassword",type:"text",icon:"lock",iconPosition:"left",placeholder:"Password",value:k,onChange:function(e,t){return G(t.value)}}))),n.a.createElement(p.a.Field,null,"030x"!==d?n.a.createElement(m.a,{color:"blue",onClick:C},"Sign UP"):n.a.createElement(m.a,{color:"blue",onClick:A},"Sign UP"))))},S=function(){var e=Object(a.useContext)(l).regn_store,t=Object(o.a)(e,2),r=t[0],i=(t[1],r.valid),c=r.otpsent;return n.a.createElement("div",{className:"app flex-row align-items-center login-bg"},n.a.createElement(u.a,{fluid:!0},n.a.createElement(d.a,{fluid:!0,raised:!0,className:"card-center",style:{width:"30%"}},n.a.createElement(d.a.Content,{className:"p-4"},n.a.createElement("h3",null,"Takshila - Digital Valuation System"),n.a.createElement("div",{className:"login-divider"}," "),n.a.createElement("h4",null,"Registration"),n.a.createElement("p",{className:"text-muted"},"Create your account"),n.a.createElement(b,{valid:i}),i?n.a.createElement(w,null):null,c?n.a.createElement(L,null):null,n.a.createElement("div",{className:"row"},n.a.createElement("div",{style:{margin:"1em auto"}},n.a.createElement("b",null,"Have you already registered?"," ",n.a.createElement(f.b,{to:sessionStorage.getItem("rootPath"),className:"ui link"},"Click Here"))))))))};t.default=function(){return n.a.createElement(s,null,n.a.createElement(S,null))}},71:function(e,t,r){"use strict";r.d(t,"c",function(){return a}),r.d(t,"a",function(){return n}),r.d(t,"b",function(){return o}),r.d(t,"d",function(){return i});var a=window.location.protocol+"//universitysolutions.in/univadmin/app.php?a=",n="http://localhost:8080",o="https://universitysolutions.in/univadmin/app.php?",i="https://universitysolutions.in/tdvs-php/app.php?a="}}]);
//# sourceMappingURL=10.4070e960.chunk.js.map