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
Apache
: 172.26.7.228 | : 3.138.134.247
Cant Read [ /etc/named.conf ]
5.6.40-24+ubuntu18.04.1+deb.sury.org+1
www-data
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
HASH IDENTIFIER
README
+ Create Folder
+ Create File
/
var /
www /
tdvsapp /
static /
js /
[ HOME SHELL ]
Name
Size
Permission
Action
0.0eb6c13f.chunk.js
27.08
KB
-rw-rw-r--
0.0eb6c13f.chunk.js.map
113.84
KB
-rw-rw-r--
0.2a8c8e14.chunk.js
27.08
KB
-rw-rw-r--
0.2a8c8e14.chunk.js.map
113.84
KB
-rw-rw-r--
1.02e3e9fa.chunk.js
36.12
KB
-rw-rw-r--
1.02e3e9fa.chunk.js.map
183.91
KB
-rw-rw-r--
1.5b25a566.chunk.js
36.12
KB
-rw-rw-r--
1.5b25a566.chunk.js.map
183.91
KB
-rw-rw-r--
10.4070e960.chunk.js
28.68
KB
-rw-rw-r--
10.4070e960.chunk.js.map
79.85
KB
-rw-rw-r--
10.a1b514df.chunk.js
36.42
KB
-rw-rw-r--
10.a1b514df.chunk.js.map
92.81
KB
-rw-rw-r--
10.a31b7e5b.chunk.js
36.5
KB
-rw-rw-r--
10.a31b7e5b.chunk.js.map
92.86
KB
-rw-rw-r--
11.1d23ce16.chunk.js
3.11
KB
-rw-rw-r--
11.1d23ce16.chunk.js.map
11.24
KB
-rw-rw-r--
11.acaee0aa.chunk.js
3.1
KB
-rw-rw-r--
11.acaee0aa.chunk.js.map
11.25
KB
-rw-rw-r--
12.4bd43931.chunk.js
10.07
KB
-rw-rw-r--
12.4bd43931.chunk.js.map
45.98
KB
-rw-rw-r--
12.d34d8c55.chunk.js
10.07
KB
-rw-rw-r--
12.d34d8c55.chunk.js.map
45.97
KB
-rw-rw-r--
13.0b93b679.chunk.js
11.87
KB
-rw-rw-r--
13.0b93b679.chunk.js.map
26.08
KB
-rw-rw-r--
13.89e27764.chunk.js
11.86
KB
-rw-rw-r--
13.89e27764.chunk.js.map
26.08
KB
-rw-rw-r--
13.d3959f8e.chunk.js
11.78
KB
-rw-rw-r--
13.d3959f8e.chunk.js.map
26.03
KB
-rw-rw-r--
14.2fd531d9.chunk.js
14.6
KB
-rw-rw-r--
14.2fd531d9.chunk.js.map
35.21
KB
-rw-rw-r--
14.cd7f09b1.chunk.js
14.6
KB
-rw-rw-r--
14.cd7f09b1.chunk.js.map
35.21
KB
-rw-rw-r--
15.12754be9.chunk.js
7.77
KB
-rw-rw-r--
15.12754be9.chunk.js.map
12.92
KB
-rw-rw-r--
15.cff866e5.chunk.js
7.77
KB
-rw-rw-r--
15.cff866e5.chunk.js.map
12.92
KB
-rw-rw-r--
16.23f7a7f1.chunk.js
532.16
KB
-rw-rw-r--
16.23f7a7f1.chunk.js.map
1.62
MB
-rw-rw-r--
16.45419109.chunk.js
532.24
KB
-rw-rw-r--
16.45419109.chunk.js.map
1.62
MB
-rw-rw-r--
16.7fd30f9c.chunk.js
532.23
KB
-rw-rw-r--
16.7fd30f9c.chunk.js.map
1.62
MB
-rw-rw-r--
17.554f74a4.chunk.js
24.25
KB
-rw-rw-r--
17.554f74a4.chunk.js.map
64.23
KB
-rw-rw-r--
17.ac4f351d.chunk.js
24.16
KB
-rw-rw-r--
17.ac4f351d.chunk.js.map
64.18
KB
-rw-rw-r--
17.bfc51017.chunk.js
24.23
KB
-rw-rw-r--
17.bfc51017.chunk.js.map
64.23
KB
-rw-rw-r--
18.053252a6.chunk.js
35.46
KB
-rw-rw-r--
18.053252a6.chunk.js.map
89.92
KB
-rw-rw-r--
18.41dde321.chunk.js
35.14
KB
-rw-rw-r--
18.41dde321.chunk.js.map
88.56
KB
-rw-rw-r--
18.45d4730b.chunk.js
35.43
KB
-rw-rw-r--
18.45d4730b.chunk.js.map
89.93
KB
-rw-rw-r--
18.53fd3589.chunk.js
35.42
KB
-rw-rw-r--
18.53fd3589.chunk.js.map
89.98
KB
-rw-rw-r--
18.75ffdae6.chunk.js
35.46
KB
-rw-rw-r--
18.75ffdae6.chunk.js.map
89.93
KB
-rw-rw-r--
18.a10b5b5c.chunk.js
35.43
KB
-rw-rw-r--
18.a10b5b5c.chunk.js.map
89.86
KB
-rw-rw-r--
18.a34a958b.chunk.js
35.49
KB
-rw-rw-r--
18.a34a958b.chunk.js.map
90.01
KB
-rw-rw-r--
18.a8287c74.chunk.js
35.15
KB
-rw-rw-r--
18.a8287c74.chunk.js.map
88.56
KB
-rw-rw-r--
19.75de75df.chunk.js
493.6
KB
-rw-rw-r--
19.75de75df.chunk.js.map
2.24
MB
-rw-rw-r--
19.7977b260.chunk.js
493.63
KB
-rw-rw-r--
19.7977b260.chunk.js.map
2.24
MB
-rw-rw-r--
2.03a0ba5f.chunk.js
29.97
KB
-rw-rw-r--
2.03a0ba5f.chunk.js.map
134.19
KB
-rw-rw-r--
2.e6d9f977.chunk.js
29.97
KB
-rw-rw-r--
2.e6d9f977.chunk.js.map
134.19
KB
-rw-rw-r--
20.58d47a8a.chunk.js
8.88
KB
-rw-rw-r--
20.58d47a8a.chunk.js.map
48.64
KB
-rw-rw-r--
20.675e319b.chunk.js
8.88
KB
-rw-rw-r--
20.675e319b.chunk.js.map
48.64
KB
-rw-rw-r--
21.20cd6cbb.chunk.js
54.23
KB
-rw-rw-r--
21.20cd6cbb.chunk.js.map
168.02
KB
-rw-rw-r--
21.4c5bdbd1.chunk.js
54.23
KB
-rw-rw-r--
21.4c5bdbd1.chunk.js.map
168.02
KB
-rw-rw-r--
3.0f9e9fe4.chunk.js
10.63
KB
-rw-rw-r--
3.0f9e9fe4.chunk.js.map
57.4
KB
-rw-rw-r--
3.58c3c7ed.chunk.js
10.63
KB
-rw-rw-r--
3.58c3c7ed.chunk.js.map
57.36
KB
-rw-rw-r--
5.057af134.chunk.js
145.02
KB
-rw-rw-r--
5.057af134.chunk.js.map
346.55
KB
-rw-rw-r--
5.be8b653d.chunk.js
145.01
KB
-rw-rw-r--
5.be8b653d.chunk.js.map
346.66
KB
-rw-rw-r--
5.cceb84cc.chunk.js
145.01
KB
-rw-rw-r--
5.cceb84cc.chunk.js.map
346.55
KB
-rw-rw-r--
5.ef201a5d.chunk.js
145.01
KB
-rw-rw-r--
5.ef201a5d.chunk.js.map
346.67
KB
-rw-rw-r--
6.2c17c533.chunk.js
52.42
KB
-rw-rw-r--
6.2c17c533.chunk.js.map
91.31
KB
-rw-rw-r--
6.add7fe41.chunk.js
52.32
KB
-rw-rw-r--
6.add7fe41.chunk.js.map
91.55
KB
-rw-rw-r--
6.d4267600.chunk.js
52.42
KB
-rw-rw-r--
6.d4267600.chunk.js.map
91.35
KB
-rw-rw-r--
7.1712ad5d.chunk.js
48.94
KB
-rw-rw-r--
7.1712ad5d.chunk.js.map
78.27
KB
-rw-rw-r--
7.24fda52a.chunk.js
48.93
KB
-rw-rw-r--
7.24fda52a.chunk.js.map
78.27
KB
-rw-rw-r--
7.993420a0.chunk.js
48.86
KB
-rw-rw-r--
7.993420a0.chunk.js.map
78.22
KB
-rw-rw-r--
8.04cfe69e.chunk.js
1.95
MB
-rw-rw-r--
8.04cfe69e.chunk.js.map
6.28
MB
-rw-rw-r--
8.9b4d1011.chunk.js
1.95
MB
-rw-rw-r--
8.9b4d1011.chunk.js.map
6.28
MB
-rw-rw-r--
8.fae877be.chunk.js
1.92
MB
-rw-rw-r--
8.fae877be.chunk.js.map
6.23
MB
-rw-rw-r--
9.c7f08bdd.chunk.js
27.45
KB
-rw-rw-r--
9.c7f08bdd.chunk.js.map
54.52
KB
-rw-rw-r--
9.dc48fc0d.chunk.js
27.37
KB
-rw-rw-r--
9.dc48fc0d.chunk.js.map
54.47
KB
-rw-rw-r--
9.f678ad45.chunk.js
27.44
KB
-rw-rw-r--
9.f678ad45.chunk.js.map
54.52
KB
-rw-rw-r--
main.38565251.chunk.js
8.08
KB
-rw-rw-r--
main.38565251.chunk.js.map
24.24
KB
-rw-rw-r--
main.b013322d.chunk.js
8.07
KB
-rw-rw-r--
main.b013322d.chunk.js.map
24.24
KB
-rw-rw-r--
runtime~main.025f1491.js
3.53
KB
-rw-rw-r--
runtime~main.025f1491.js.map
16.05
KB
-rw-rw-r--
runtime~main.196f2ffb.js
3.53
KB
-rw-rw-r--
runtime~main.196f2ffb.js.map
16.05
KB
-rw-rw-r--
runtime~main.2af8b252.js
3.53
KB
-rw-rw-r--
runtime~main.2af8b252.js.map
16.05
KB
-rw-rw-r--
runtime~main.436a0018.js
3.53
KB
-rw-rw-r--
runtime~main.436a0018.js.map
16.05
KB
-rw-rw-r--
runtime~main.5f277618.js
3.53
KB
-rw-rw-r--
runtime~main.5f277618.js.map
16.05
KB
-rw-rw-r--
runtime~main.8f412e19.js
3.53
KB
-rw-rw-r--
runtime~main.8f412e19.js.map
16.05
KB
-rw-rw-r--
runtime~main.ae7c93ed.js
3.53
KB
-rw-rw-r--
runtime~main.ae7c93ed.js.map
16.05
KB
-rw-rw-r--
runtime~main.bccf2c7c.js
3.53
KB
-rw-rw-r--
runtime~main.bccf2c7c.js.map
16.05
KB
-rw-rw-r--
runtime~main.e034a8a2.js
3.53
KB
-rw-rw-r--
runtime~main.e034a8a2.js.map
16.05
KB
-rw-rw-r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : 10.a1b514df.chunk.js
(window.webpackJsonp=window.webpackJsonp||[]).push([[10],{1153:function(e,t,r){"use strict";function n(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 n})},1166:function(e,t,r){"use strict";r.d(t,"a",function(){return a});var n=r(1153);function a(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},a=Object.keys(r);"function"===typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),a.forEach(function(t){Object(n.a)(e,t,r[t])})}return e}},1168:function(e,t,r){"use strict";var n=r(1152),a=r.n(n),o=r(53),i=a.a.create({baseURL:o.a,headers:{"X-Auth-Origin":"E-GOVERNANCE"}});t.a=i},1182:function(e,t,r){"use strict";var n=r(11),a=r.n(n),o=r(12),i=r.n(o),c=r(1),l=r.n(c),u=r(79),s=r(518),f=r(519),d=r(15);function h(e){var t=e.children,r=e.className,n=e.content,o=e.fluid,c=e.text,p=e.textAlign,v=i()("ui",Object(u.a)(c,"text"),Object(u.a)(o,"fluid"),Object(u.d)(p),"container",r),m=Object(s.a)(h,e),y=Object(f.a)(h,e);return l.a.createElement(y,a()({},m,{className:v}),d.a.isNil(t)?n:t)}h.handledProps=["as","children","className","content","fluid","text","textAlign"],h.propTypes={},t.a=h},1286:function(e,t,r){"use strict";var n=r(11),a=r.n(n),o=(r(335),r(138)),i=r.n(o),c=r(12),l=r.n(c),u=r(1),s=r.n(u),f=r(79),d=r(518),h=r(519),p=r(15);function v(e){var t=e.children,r=e.className,n=l()(r),o=Object(d.a)(v,e),i=Object(h.a)(v,e);return s.a.createElement(i,a()({},o,{className:n}),t)}v.handledProps=["as","children","className"],v.defaultProps={as:"tbody"},v.propTypes={};var m=v,y=r(521),g=r(524);function b(e){var t=e.active,r=e.children,n=e.className,o=e.collapsing,i=e.content,c=e.disabled,u=e.error,v=e.icon,m=e.negative,y=e.positive,O=e.selectable,w=e.singleLine,E=e.textAlign,x=e.verticalAlign,j=e.warning,_=e.width,L=l()(Object(f.a)(t,"active"),Object(f.a)(o,"collapsing"),Object(f.a)(c,"disabled"),Object(f.a)(u,"error"),Object(f.a)(m,"negative"),Object(f.a)(y,"positive"),Object(f.a)(O,"selectable"),Object(f.a)(w,"single line"),Object(f.a)(j,"warning"),Object(f.d)(E),Object(f.f)(x),Object(f.g)(_,"wide"),n),N=Object(d.a)(b,e),P=Object(h.a)(b,e);return p.a.isNil(r)?s.a.createElement(P,a()({},N,{className:L}),g.a.create(v),i):s.a.createElement(P,a()({},N,{className:L}),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 w(e){var t=e.children,r=e.className,n=e.content,o=e.fullWidth,i=l()(Object(f.a)(o,"full-width"),r),c=Object(d.a)(w,e),u=Object(h.a)(w,e);return s.a.createElement(u,a()({},c,{className:i}),p.a.isNil(t)?n:t)}w.handledProps=["as","children","className","content","fullWidth"],w.defaultProps={as:"thead"},w.propTypes={};var E=w;function x(e){var t=e.as,r=Object(d.a)(x,e);return s.a.createElement(E,a()({},r,{as:t}))}x.handledProps=["as"],x.propTypes={},x.defaultProps={as:"tfoot"};var j=x;function _(e){var t=e.as,r=e.className,n=e.sorted,o=l()(Object(f.e)(n,"sorted"),r),i=Object(d.a)(_,e);return s.a.createElement(O,a()({},i,{as:t,className:o}))}_.handledProps=["as","className","sorted"],_.propTypes={},_.defaultProps={as:"th"};var L=_;function N(e){var t=e.active,r=e.cellAs,n=e.cells,o=e.children,c=e.className,u=e.disabled,v=e.error,m=e.negative,y=e.positive,g=e.textAlign,b=e.verticalAlign,w=e.warning,E=l()(Object(f.a)(t,"active"),Object(f.a)(u,"disabled"),Object(f.a)(v,"error"),Object(f.a)(m,"negative"),Object(f.a)(y,"positive"),Object(f.a)(w,"warning"),Object(f.d)(g),Object(f.f)(b),c),x=Object(d.a)(N,e),j=Object(h.a)(N,e);return p.a.isNil(o)?s.a.createElement(j,a()({},x,{className:E}),i()(n,function(e){return O.create(e,{defaultProps:{as:r}})})):s.a.createElement(j,a()({},x,{className:E}),o)}N.handledProps=["active","as","cellAs","cells","children","className","disabled","error","negative","positive","textAlign","verticalAlign","warning"],N.defaultProps={as:"tr",cellAs:"td"},N.propTypes={},N.create=Object(y.f)(N,function(e){return{cells:e}});var P=N;function S(e){var t=e.attached,r=e.basic,n=e.celled,o=e.children,c=e.className,u=e.collapsing,v=e.color,y=e.columns,g=e.compact,b=e.definition,O=e.fixed,w=e.footerRow,x=e.headerRow,_=e.headerRows,L=e.inverted,N=e.padded,k=e.renderBodyRow,T=e.selectable,G=e.singleLine,A=e.size,C=e.sortable,M=e.stackable,F=e.striped,I=e.structured,R=e.tableData,B=e.textAlign,X=e.unstackable,D=e.verticalAlign,U=l()("ui",v,A,Object(f.a)(n,"celled"),Object(f.a)(u,"collapsing"),Object(f.a)(b,"definition"),Object(f.a)(O,"fixed"),Object(f.a)(L,"inverted"),Object(f.a)(T,"selectable"),Object(f.a)(G,"single line"),Object(f.a)(C,"sortable"),Object(f.a)(M,"stackable"),Object(f.a)(F,"striped"),Object(f.a)(I,"structured"),Object(f.a)(X,"unstackable"),Object(f.b)(t,"attached"),Object(f.b)(r,"basic"),Object(f.b)(g,"compact"),Object(f.b)(N,"padded"),Object(f.d)(B),Object(f.f)(D),Object(f.g)(y,"column"),"table",c),H=Object(d.a)(S,e),V=Object(h.a)(S,e);if(!p.a.isNil(o))return s.a.createElement(V,a()({},H,{className:U}),o);var Y={defaultProps:{cellAs:"th"}},z=(x||_)&&s.a.createElement(E,null,P.create(x,Y),i()(_,function(e){return P.create(e,Y)}));return s.a.createElement(V,a()({},H,{className:U}),z,s.a.createElement(m,null,k&&i()(R,function(e,t){return P.create(k(e,t))})),w&&s.a.createElement(j,null,P.create(w)))}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=m,S.Cell=O,S.Footer=j,S.Header=E,S.HeaderCell=L,S.Row=P;t.a=S},1557:function(e,t,r){"use strict";r.r(t);var n=r(1),a=r.n(n),o=r(50),i=r(1153),c=r(1166),l=a.a.createContext(null),u=function(e){var t=e.children;var r=Object(n.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:""}),u=Object(o.a)(r,2),s=u[0],f=u[1],d=Object(n.useState)([]),h=Object(o.a)(d,2),p={univ:[h[0],h[1]],regn_store:[s,f]};return a.a.createElement(l.Provider,{value:p},t)},s=r(1182),f=r(1525),d=r(199),h=r(1151),p=r(1553),v=r(1556),m=r(1559),y=r(1286),g=r(163),b=r(84);r(1168);function O(){O=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n=Object.defineProperty||function(e,t,r){e[t]=r.value},a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",i=a.asyncIterator||"@@asyncIterator",c=a.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 u(e,t,r,a){var o=t&&t.prototype instanceof d?t:d,i=Object.create(o.prototype),c=new L(a||[]);return n(i,"_invoke",{value:E(e,r,c)}),i}function s(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(S){return{type:"throw",arg:S}}}e.wrap=u;var f={};function d(){}function h(){}function p(){}var v={};l(v,o,function(){return this});var m=Object.getPrototypeOf,y=m&&m(m(N([])));y&&y!==t&&r.call(y,o)&&(v=y);var g=p.prototype=d.prototype=Object.create(v);function b(e){["next","throw","return"].forEach(function(t){l(e,t,function(e){return this._invoke(t,e)})})}function w(e,t){var a;n(this,"_invoke",{value:function(n,o){function i(){return new t(function(a,i){!function n(a,o,i,c){var l=s(e[a],e,o);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"==typeof f&&r.call(f,"__await")?t.resolve(f.__await).then(function(e){n("next",e,i,c)},function(e){n("throw",e,i,c)}):t.resolve(f).then(function(e){u.value=e,i(u)},function(e){return n("throw",e,i,c)})}c(l.arg)}(n,o,a,i)})}return a=a?a.then(i,i):i()}})}function E(e,t,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 P()}for(r.method=a,r.arg=o;;){var i=r.delegate;if(i){var c=x(i,r);if(c){if(c===f)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=s(e,t,r);if("normal"===l.type){if(n=r.done?"completed":"suspendedYield",l.arg===f)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(n="completed",r.method="throw",r.arg=l.arg)}}}function x(e,t){var r=t.method,n=e.iterator[r];if(void 0===n)return t.delegate=null,"throw"===r&&e.iterator.return&&(t.method="return",t.arg=void 0,x(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var a=s(n,e.iterator,t.arg);if("throw"===a.type)return t.method="throw",t.arg=a.arg,t.delegate=null,f;var o=a.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,f):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}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 _(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(j,this),this.reset(!0)}function N(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 n=-1,a=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return a.next=a}}return{next:P}}function P(){return{value:void 0,done:!0}}return h.prototype=p,n(g,"constructor",{value:p,configurable:!0}),n(p,"constructor",{value:h,configurable:!0}),h.displayName=l(p,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,p):(e.__proto__=p,l(e,c,"GeneratorFunction")),e.prototype=Object.create(g),e},e.awrap=function(e){return{__await:e}},b(w.prototype),l(w.prototype,i,function(){return this}),e.AsyncIterator=w,e.async=function(t,r,n,a,o){void 0===o&&(o=Promise);var i=new w(u(t,r,n,a),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 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}},e.values=N,L.prototype={constructor:L,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(_),!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 n(r,n){return i.type="throw",i.arg=e,t.next=r,n&&(t.method="next",t.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(e,t){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"===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,f):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),f},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),_(r),f}},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;_(r)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:N(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},e}var w=function(e){var t=Object(n.useContext)(l).regn_store,r=Object(n.useContext)(g.a),i=r.load,c=r.err_msg,u=Object(o.a)(i,2),s=(u[0],u[1]),d=Object(o.a)(c,2),w=(d[0],d[1]),E=Object(o.a)(t,2),x=E[0],j=E[1],_=x.univ,L=x.fteachcode,N=x.teachinfo,P=(x.teachvalid,x.funivcode);Object(n.useEffect)(function(){S()},[]);var S=function(){var e=Object(h.a)(O().mark(function e(){var t;return O().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,b.a.get("/app.php?a=getUnivDetails&univcode=000");case 3:if(0!==(t=e.sent).data.error_code){e.next=8;break}j({type:"SET_UNIVS",payload:t.data.data}),e.next=10;break;case 8:return w({type:"OPEN_MSG_BOX",payload:{header:"Message",message:t.data.data.msg}}),e.abrupt("return");case 10:console.log(t),e.next=15;break;case 13:e.prev=13,e.t0=e.catch(0);case 15:case"end":return e.stop()}},e,null,[[0,13]])}));return function(){return e.apply(this,arguments)}}(),k=_.map(function(e){return{key:e.funivcode,text:e.funivname,value:e.funivcode}}),T=function(){var e=Object(h.a)(O().mark(function e(){var t;return O().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(""!=P){e.next=3;break}return w({type:"OPEN_MSG_BOX",payload:{header:"Message",message:"Select university code."}}),e.abrupt("return");case 3:if(!(L.length<3)){e.next=6;break}return w({type:"OPEN_MSG_BOX",payload:{header:"Message",message:"Enter valid teacher code."}}),e.abrupt("return");case 6:return s(!0),e.next=9,b.a.get("/app.php?a=validateTeacherCode&univcode="+P+"&fteachcode="+L);case 9:if(t=e.sent,s(!1),console.log(t),0!==t.data.error_code){e.next=16;break}j({type:"SET_TEACH_INFO",payload:t.data.data[0]}),e.next=18;break;case 16:return w({type:"OPEN_MSG_BOX",payload:{header:"Message",message:t.data.data.msg}}),e.abrupt("return");case 18:console.log(t);case 19:case"end":return e.stop()}},e)}));return function(){return e.apply(this,arguments)}}();return a.a.createElement(p.a,null,a.a.createElement(p.a.Field,{required:!0},a.a.createElement(v.a,{size:"mini",fluid:!0,selection:!0,placeholder:"Select University",name:"funivcode",value:P,options:k,disabled:e.valid,onChange:function(e,t){return j({type:"EDIT_REGN",payload:{name:t.name,value:t.value}})}})),a.a.createElement(p.a.Field,null,a.a.createElement(p.a.Input,{name:"fteachcode",type:"text",icon:"user",iconPosition:"left",placeholder:"Teacher Code",maxLength:"20",minLength:"5",value:L,readOnly:e.valid,onChange:function(e,t){return j({type:"EDIT_REGN",payload:{name:t.name,value:t.value}})}})),e.valid?null:a.a.createElement("div",{className:"row"},a.a.createElement("div",{className:"col-md-6"},a.a.createElement(m.a,{color:"blue",className:"px-4",onClick:T},"Validate"))),e.valid?a.a.createElement(f.a,{fluid:!0,style:{marginBottom:"1em"}},a.a.createElement(f.a.Content,null,a.a.createElement(y.a,{basic:"very",celled:!0,collapsing:!0,columns:"16",padded:!0,singleLine:!0},a.a.createElement(y.a.Body,null,a.a.createElement(y.a.Row,null,a.a.createElement(y.a.Cell,null,"Name"),a.a.createElement(y.a.Cell,null,a.a.createElement("b",null,N.fteachname))),a.a.createElement(y.a.Row,null,a.a.createElement(y.a.Cell,null,"Date of birth"),a.a.createElement(y.a.Cell,null,a.a.createElement("b",null,N.fdob))))))):null)};function E(){E=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n=Object.defineProperty||function(e,t,r){e[t]=r.value},a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",i=a.asyncIterator||"@@asyncIterator",c=a.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 u(e,t,r,a){var o=t&&t.prototype instanceof d?t:d,i=Object.create(o.prototype),c=new L(a||[]);return n(i,"_invoke",{value:w(e,r,c)}),i}function s(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(S){return{type:"throw",arg:S}}}e.wrap=u;var f={};function d(){}function h(){}function p(){}var v={};l(v,o,function(){return this});var m=Object.getPrototypeOf,y=m&&m(m(N([])));y&&y!==t&&r.call(y,o)&&(v=y);var g=p.prototype=d.prototype=Object.create(v);function b(e){["next","throw","return"].forEach(function(t){l(e,t,function(e){return this._invoke(t,e)})})}function O(e,t){var a;n(this,"_invoke",{value:function(n,o){function i(){return new t(function(a,i){!function n(a,o,i,c){var l=s(e[a],e,o);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"==typeof f&&r.call(f,"__await")?t.resolve(f.__await).then(function(e){n("next",e,i,c)},function(e){n("throw",e,i,c)}):t.resolve(f).then(function(e){u.value=e,i(u)},function(e){return n("throw",e,i,c)})}c(l.arg)}(n,o,a,i)})}return a=a?a.then(i,i):i()}})}function w(e,t,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 P()}for(r.method=a,r.arg=o;;){var i=r.delegate;if(i){var c=x(i,r);if(c){if(c===f)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=s(e,t,r);if("normal"===l.type){if(n=r.done?"completed":"suspendedYield",l.arg===f)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(n="completed",r.method="throw",r.arg=l.arg)}}}function x(e,t){var r=t.method,n=e.iterator[r];if(void 0===n)return t.delegate=null,"throw"===r&&e.iterator.return&&(t.method="return",t.arg=void 0,x(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var a=s(n,e.iterator,t.arg);if("throw"===a.type)return t.method="throw",t.arg=a.arg,t.delegate=null,f;var o=a.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,f):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}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 _(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(j,this),this.reset(!0)}function N(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 n=-1,a=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return a.next=a}}return{next:P}}function P(){return{value:void 0,done:!0}}return h.prototype=p,n(g,"constructor",{value:p,configurable:!0}),n(p,"constructor",{value:h,configurable:!0}),h.displayName=l(p,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,p):(e.__proto__=p,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,n,a,o){void 0===o&&(o=Promise);var i=new O(u(t,r,n,a),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 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}},e.values=N,L.prototype={constructor:L,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(_),!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 n(r,n){return i.type="throw",i.arg=e,t.next=r,n&&(t.method="next",t.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(e,t){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"===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,f):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),f},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),_(r),f}},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;_(r)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:N(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},e}var x=function(){var e=Object(n.useContext)(l).regn_store,t=Object(o.a)(e,2),r=t[0],i=t[1],c=r.teachinfo,u=(r.fpasswd,r.fcpasswd,r.otpsent),s=r.funivcode,f=Object(n.useContext)(g.a).err_msg,d=Object(o.a)(f,2),v=(d[0],d[1]),y=function(){var e=Object(h.a)(E().mark(function e(){var t,r,n;return E().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return(t=new FormData).append("data",JSON.stringify(c)),e.next=4,b.a.post("/app.php?a=sendOtpTeacherRegistration&univcode="+s,t);case 4:if(0!==(r=e.sent).data.error_code){e.next=11;break}n=r.data.data,i({type:"UPDATE_OTP_STATUS",payload:{data:n}}),v({type:"OPEN_MSG_BOX",payload:{header:"Success",message:r.data.data.msg}}),e.next=13;break;case 11:return v({type:"OPEN_MSG_BOX",payload:{header:"Message",message:r.data.data.msg}}),e.abrupt("return");case 13:console.log(r);case 14:case"end":return e.stop()}},e)}));return function(){return e.apply(this,arguments)}}(),O=c.fmobile?c.fmobile.slice(0,2)+c.fmobile.slice(2).replace(/.(?=...)/g,"*"):"",w=c.femail.replace(/^(.)(.*)(.@.*)$/,function(e,t,r,n){return t+r.replace(/./g,"*")+n});return a.a.createElement("div",{className:"mt-3"},a.a.createElement(p.a,{onSubmit:y},a.a.createElement(p.a.Field,null,a.a.createElement(p.a.Input,{autoComplete:"off",name:"fmobileno",type:"text",icon:"mobile alternate",iconPosition:"left",placeholder:"Mobile No.",maxLength:"10",minLength:"10",value:O,readOnly:!0})),a.a.createElement(p.a.Field,null,a.a.createElement(p.a.Input,{autoComplete:"off",name:"femail",type:"text",icon:"mail outline",iconPosition:"left",placeholder:"Email Id.",value:w,readOnly:!0})),a.a.createElement(p.a.Field,null,a.a.createElement("div",{className:"row"},a.a.createElement("div",{className:"col-md-6"},a.a.createElement(m.a,{color:"blue"},u?"Resend-OTP":"Send-OTP"))))))},j=r(54),_=r(1152),L=r.n(_),N=r(53);function P(){P=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n=Object.defineProperty||function(e,t,r){e[t]=r.value},a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",i=a.asyncIterator||"@@asyncIterator",c=a.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 u(e,t,r,a){var o=t&&t.prototype instanceof d?t:d,i=Object.create(o.prototype),c=new _(a||[]);return n(i,"_invoke",{value:w(e,r,c)}),i}function s(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(S){return{type:"throw",arg:S}}}e.wrap=u;var f={};function d(){}function h(){}function p(){}var v={};l(v,o,function(){return this});var m=Object.getPrototypeOf,y=m&&m(m(L([])));y&&y!==t&&r.call(y,o)&&(v=y);var g=p.prototype=d.prototype=Object.create(v);function b(e){["next","throw","return"].forEach(function(t){l(e,t,function(e){return this._invoke(t,e)})})}function O(e,t){var a;n(this,"_invoke",{value:function(n,o){function i(){return new t(function(a,i){!function n(a,o,i,c){var l=s(e[a],e,o);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"==typeof f&&r.call(f,"__await")?t.resolve(f.__await).then(function(e){n("next",e,i,c)},function(e){n("throw",e,i,c)}):t.resolve(f).then(function(e){u.value=e,i(u)},function(e){return n("throw",e,i,c)})}c(l.arg)}(n,o,a,i)})}return a=a?a.then(i,i):i()}})}function w(e,t,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=E(i,r);if(c){if(c===f)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=s(e,t,r);if("normal"===l.type){if(n=r.done?"completed":"suspendedYield",l.arg===f)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(n="completed",r.method="throw",r.arg=l.arg)}}}function E(e,t){var r=t.method,n=e.iterator[r];if(void 0===n)return t.delegate=null,"throw"===r&&e.iterator.return&&(t.method="return",t.arg=void 0,E(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var a=s(n,e.iterator,t.arg);if("throw"===a.type)return t.method="throw",t.arg=a.arg,t.delegate=null,f;var o=a.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,f):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}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 j(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 L(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 n=-1,a=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return a.next=a}}return{next:N}}function N(){return{value:void 0,done:!0}}return h.prototype=p,n(g,"constructor",{value:p,configurable:!0}),n(p,"constructor",{value:h,configurable:!0}),h.displayName=l(p,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,p):(e.__proto__=p,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,n,a,o){void 0===o&&(o=Promise);var i=new O(u(t,r,n,a),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 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}},e.values=L,_.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(j),!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 n(r,n){return i.type="throw",i.arg=e,t.next=r,n&&(t.method="next",t.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(e,t){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"===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,f):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),f},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),j(r),f}},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;j(r)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:L(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},e}var S=function(){var e=Object(n.useContext)(l).regn_store,t=Object(o.a)(e,2),r=t[0],i=t[1],u=r.teachinfo,s=(r.otpsent,r.fotp),f=r.funivcode,d=r.feotp,v=Object(n.useContext)(g.a).err_msg,y=Object(o.a)(v,2),O=(y[0],y[1]),w=Object(n.useState)(""),E=Object(o.a)(w,2),x=E[0],_=E[1],S=Object(n.useState)(""),k=Object(o.a)(S,2),T=k[0],G=k[1],A=Object(j.useHistory)(),C=function(){var e=Object(h.a)(P().mark(function e(){var t,r;return P().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!(s.length<4)){e.next=3;break}return O({type:"OPEN_MSG_BOX",payload:{header:"Message",message:"Enter Mobile OTP of atleast 4 characters !!!"}}),e.abrupt("return");case 3:if(!(d.length<4)){e.next=6;break}return O({type:"OPEN_MSG_BOX",payload:{header:"Message",message:"Enter Email OTP of atleast 4 characters !!!"}}),e.abrupt("return");case 6:return(t=new FormData).append("data",JSON.stringify(u)),e.next=10,b.a.post("/app.php?a=teacherRegistration&univcode="+f+"&otp="+s+"&eotp="+d,t);case 10:if(0!=(r=e.sent).data.error_code){e.next=16;break}O({type:"OPEN_MSG_BOX",payload:{header:"Success",message:r.data.data.msg}}),A.push(sessionStorage.getItem("rootPath")),e.next=18;break;case 16:return O({type:"OPEN_MSG_BOX",payload:{header:"Message",message:r.data.data.msg}}),e.abrupt("return");case 18:case"end":return e.stop()}},e)}));return function(){return e.apply(this,arguments)}}(),M=function(){var e=Object(h.a)(P().mark(function e(){var t;return P().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!(s.length<4)){e.next=3;break}return O({type:"OPEN_MSG_BOX",payload:{header:"Message",message:"Enter Mobile OTP of atleast 4 characters !!!"}}),e.abrupt("return");case 3:if(!(d.length<4)){e.next=6;break}return O({type:"OPEN_MSG_BOX",payload:{header:"Message",message:"Enter Email OTP of atleast 4 characters !!!"}}),e.abrupt("return");case 6:if("030x"!==f){e.next=13;break}if(x===T){e.next=10;break}return O({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 O({type:"OPEN_MSG_BOX",payload:{header:"Message",message:"Password should be atleast 8 characters !!!"}}),e.abrupt("return");case 13:return t=N.b+"a=registerTeacherData&univcode=".concat(f),e.next=16,L.a.post(t,Object(c.a)({},u,{fotp:s,feotp:d,fpassword:x})).then(function(e){0===e.data.error_code?O({type:"OPEN_MSG_BOX",payload:{header:"Success",message:e.data.data.msg}}):O({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 a.a.createElement("div",{style:{marginTop:"1em"}},a.a.createElement(p.a,null,a.a.createElement(p.a.Field,null,a.a.createElement(p.a.Input,{name:"fotp",type:"text",icon:"mobile alternate",iconPosition:"left",placeholder:"Mobile OTP",maxLength:"4",minLength:"4",value:s,onChange:function(e,t){return i({type:"EDIT_REGN",payload:{name:t.name,value:t.value}})}})),a.a.createElement(p.a.Field,null,a.a.createElement(p.a.Input,{name:"feotp",type:"text",icon:"mail outline",iconPosition:"left",placeholder:"Email OTP",maxLength:"4",minLength:"4",value:d,onChange:function(e,t){return i({type:"EDIT_REGN",payload:{name:t.name,value:t.value}})}})),"030x"===f&&a.a.createElement("div",null,a.a.createElement(p.a.Field,null,a.a.createElement(p.a.Input,{name:"fpassword",type:"text",icon:"lock",iconPosition:"left",placeholder:"Password",value:x,onChange:function(e,t){return _(t.value)}})),a.a.createElement(p.a.Field,null,a.a.createElement(p.a.Input,{name:"fpassword",type:"text",icon:"lock",iconPosition:"left",placeholder:"Password",value:T,onChange:function(e,t){return G(t.value)}}))),a.a.createElement(p.a.Field,null,"030x"!==f?a.a.createElement(m.a,{color:"blue",onClick:C},"Sign UP"):a.a.createElement(m.a,{color:"blue",onClick:M},"Sign UP"))))},k=function(){var e=Object(n.useContext)(l).regn_store,t=Object(o.a)(e,2),r=t[0],i=(t[1],r.valid),c=r.otpsent;return a.a.createElement("div",{className:"app flex-row align-items-center login-bg"},a.a.createElement(s.a,{fluid:!0},a.a.createElement(f.a,{fluid:!0,raised:!0,className:"card-center",style:{width:"30%"}},a.a.createElement(f.a.Content,{className:"p-4"},a.a.createElement("h3",null,"Takshila - Digital Valuation System"),a.a.createElement("div",{className:"login-divider"}," "),a.a.createElement("h4",null,"Registration"),a.a.createElement("p",{className:"text-muted"},"Create your account"),a.a.createElement(w,{valid:i}),i?a.a.createElement(x,null):null,c?a.a.createElement(S,null):null,a.a.createElement("div",{className:"row"},a.a.createElement("div",{style:{margin:"1em auto"}},a.a.createElement("b",null,"Have you already registered?"," ",a.a.createElement(d.b,{to:sessionStorage.getItem("rootPath"),className:"ui link"},"Click Here"))))))))};t.default=function(){return a.a.createElement(u,null,a.a.createElement(k,null))}},53:function(e,t,r){"use strict";r.d(t,"a",function(){return n}),r.d(t,"c",function(){return a}),r.d(t,"b",function(){return o});var n="https://app.universitysolutions.in",a=window.location.protocol+"//universitysolutions.in/univadmin/app.php?a=",o="https://universitysolutions.in/univadmin/app.php?"},84:function(e,t,r){"use strict";var n=r(1152),a=r.n(n),o=window.location.protocol+"//universitysolutions.in/tdvs-php",i=a.a.create({baseURL:o,headers:{"X-Auth-Origin":"TDVS"}});i.interceptors.request.use(function(e){var t;return(t=sessionStorage.getItem("token"))&&(e.headers.Authorization=t),e},function(e){return Promise.reject(e)});t.a=i}}]); //# sourceMappingURL=10.a1b514df.chunk.js.map
Close