Linux ip-172-26-7-228 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64
Your IP : 52.14.219.203
(window.webpackJsonp=window.webpackJsonp||[]).push([[34],{1105:function(e,a,t){"use strict";t.r(a);var n=t(99),r=t(100),l=t(102),o=t(101),c=t(103),s=t(1),i=t.n(s),u=t(858),m=t(104),d=t(867),p=t(868),f=t(869),h=t(586),g=t(587),b=t(384),v=t(290),E=t(41),y=t.n(E),O=t(68),j=t(1098),w=t(1100),C=t(1106),N=t(1139),x=t(1101),R=t(266),P=function(e){function a(){var e,t;Object(n.a)(this,a);for(var r=arguments.length,c=new Array(r),s=0;s<r;s++)c[s]=arguments[s];return(t=Object(l.a)(this,(e=Object(o.a)(a)).call.apply(e,[this].concat(c)))).handleChange=function(e,a){var n=a.name,r=a.value;t.props.changeRegn(n,r)},t.getUnivs=function(){var e=Object(O.a)(y.a.mark(function e(a,n){return y.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.props.changeRegn(n.name,n.value);case 2:t.props.getUnivs();case 3:case"end":return e.stop()}},e)}));return function(a,t){return e.apply(this,arguments)}}(),t.validateRegno=function(){var e=t.props.regn,a=e.fstate,n=e.funivcode,r=e.fuserid;if(""!==a)if(""!==n)if(""!==r)t.props.validateRegno();else{t.props.showError({header:"Error",content:"Enter Reg. No. / Teacher Code"})}else{t.props.showError({header:"Error",content:"Select University"})}else{t.props.showError({header:"Error",content:"Select State"})}},t}return Object(c.a)(a,e),Object(r.a)(a,[{key:"componentDidMount",value:function(){this.props.getStates()}},{key:"render",value:function(){var e=this.props.regn,a=e.states,t=e.univs,n=e.fstate,r=e.funivcode,l=e.fuserid,o=e.fregvalid,c=e.studinfo,s=a.map(function(e,a){return{key:a,value:e.fstatecode,text:e.fstate}}),u=t.map(function(e,a){return{key:a,value:e.funivcode,text:e.funivname}});return i.a.createElement(j.a,{onSubmit:this.validateRegno},i.a.createElement(j.a.Field,{required:!0},i.a.createElement(w.a,{size:"mini",error:this.props.dgerror,fluid:!0,search:!0,selection:!0,placeholder:"Select State",openOnFocus:!1,name:"fstate",value:n,options:s,searchInput:{autoFocus:!0},onChange:this.getUnivs,required:!0})),i.a.createElement(j.a.Field,{required:!0},i.a.createElement(w.a,{size:"mini",error:this.props.dgerror,fluid:!0,search:!0,selection:!0,placeholder:"Select University",name:"funivcode",value:r,options:u,onChange:this.handleChange,required:!0})),i.a.createElement(j.a.Field,null,i.a.createElement(j.a.Input,{name:"fuserid",type:"text",icon:"user",iconPosition:"left",placeholder:"Reg. No. / Teach. Code",maxLength:"8",minLength:"5",value:l,onChange:this.handleChange,required:!0})),i.a.createElement("div",{className:"row"},i.a.createElement("div",{className:"col-md-6"},o?null:i.a.createElement(C.a,{color:"blue",className:"px-4"},"Validate"))),o?i.a.createElement(N.a,{fluid:!0},i.a.createElement(N.a.Content,null,i.a.createElement(x.a,{basic:"very",celled:!0,collapsing:!0,columns:"16",padded:!0,singleLine:!0},"900"===c.fusertype?i.a.createElement(x.a.Body,null,i.a.createElement(x.a.Row,null,i.a.createElement(x.a.Cell,null,"Name"),i.a.createElement(x.a.Cell,null,i.a.createElement("b",null,c.fname))),i.a.createElement(x.a.Row,null,i.a.createElement(x.a.Cell,null,"Father Name"),i.a.createElement(x.a.Cell,null,i.a.createElement("b",null,c.ffather))),i.a.createElement(x.a.Row,null,i.a.createElement(x.a.Cell,null,"Mother Name"),i.a.createElement(x.a.Cell,null,i.a.createElement("b",null,c.fmother)))):i.a.createElement(x.a.Body,null,i.a.createElement(x.a.Row,null,i.a.createElement(x.a.Cell,null,"Name"),i.a.createElement(x.a.Cell,null,i.a.createElement("b",null,c.fname))),i.a.createElement(x.a.Row,null,i.a.createElement(x.a.Cell,null,"Date of birth"),i.a.createElement(x.a.Cell,null,i.a.createElement("b",null,c.fdob))))))):null)}}]),a}(s.Component),k=Object(m.b)(function(e){return{regn:e.regn}},{getStates:v.i,showError:R.w,changeRegn:v.d,getUnivs:v.j,validateRegno:v.u})(P),M=function(e){function a(){var e,t;Object(n.a)(this,a);for(var r=arguments.length,c=new Array(r),s=0;s<r;s++)c[s]=arguments[s];return(t=Object(l.a)(this,(e=Object(o.a)(a)).call.apply(e,[this].concat(c)))).handleChange=function(e,a){var n=a.name,r=a.value;t.props.changeRegn(n,r)},t.validateMobileno=function(){var e=t.props.regn;if(e.fpasswd===e.fcpasswd)t.props.validatemob();else{t.props.showError({header:"Error",content:"Password and confirm password should be same"})}},t}return Object(c.a)(a,e),Object(r.a)(a,[{key:"render",value:function(){var e=this.props.regn,a=e.fmobileno,t=e.femail,n=e.fpasswd,r=e.fcpasswd,l=e.fregvalid,o=e.fmobvalid;return i.a.createElement("div",{className:"mt-3"},l?i.a.createElement(j.a,{onSubmit:this.validateMobileno},i.a.createElement(j.a.Field,null,i.a.createElement(j.a.Input,{required:!0,autoComplete:"off",name:"fmobileno",type:"text",icon:"mobile alternate",iconPosition:"left",placeholder:"Mobile No.",maxLength:"10",minLength:"10",value:a,onChange:this.handleChange})),i.a.createElement(j.a.Field,null,i.a.createElement(j.a.Input,{required:!0,name:"femail",type:"email",icon:"envelope outline",iconPosition:"left",placeholder:"Email ID",maxLength:"70",minLength:"6",value:t,onChange:this.handleChange})),i.a.createElement(j.a.Field,null,i.a.createElement(j.a.Input,{required:!0,name:"fpasswd",type:"password",icon:"lock",iconPosition:"left",placeholder:"Password",minLength:"8",maxLength:"25",value:n,onChange:this.handleChange})),i.a.createElement(j.a.Field,null,i.a.createElement(j.a.Input,{required:!0,name:"fcpasswd",type:"password",icon:"lock",iconPosition:"left",placeholder:"Confirm Password",minLength:"8",maxLength:"25",value:r,onChange:this.handleChange}),i.a.createElement("div",{className:"row"},i.a.createElement("div",{className:"col-md-6"},i.a.createElement(C.a,{color:"blue",className:"px-4"},o?"Resend-OTP":"Send-OTP"))))):null)}}]),a}(s.Component),L=Object(m.b)(function(e){return{regn:e.regn}},{showError:R.w,changeRegn:v.d,validatemob:v.v})(M),T=function(e){function a(){var e,t;Object(n.a)(this,a);for(var r=arguments.length,c=new Array(r),s=0;s<r;s++)c[s]=arguments[s];return(t=Object(l.a)(this,(e=Object(o.a)(a)).call.apply(e,[this].concat(c)))).handleChange=function(e,a){var n=a.name,r=a.value;t.props.changeRegn(n,r)},t.signup=function(){t.props.signup()},t}return Object(c.a)(a,e),Object(r.a)(a,[{key:"render",value:function(){var e=this.props.regn,a=e.fmotp,t=e.feotp,n=e.fmobvalid;return i.a.createElement("div",{className:"mt-3"},n?i.a.createElement(j.a,{onSubmit:this.signup},i.a.createElement(j.a.Field,null,i.a.createElement(j.a.Input,{name:"fmotp",type:"text",icon:"mobile alternate",iconPosition:"left",placeholder:"Mobile OTP",maxLength:"6",minLength:"6",value:a,onChange:this.handleChange,required:!0})),i.a.createElement(j.a.Field,null,i.a.createElement(j.a.Input,{name:"feotp",type:"text",icon:"envelope outline",iconPosition:"left",placeholder:"Email OTP",maxLength:"6",minLength:"6",value:t,onChange:this.handleChange,required:!0}),i.a.createElement("div",{className:"row"},i.a.createElement("div",{className:"col-md-6"},i.a.createElement(C.a,{color:"blue",className:"px-4"},"Sign UP"))))):null)}}]),a}(s.Component),S=Object(m.b)(function(e){return{regn:e.regn}},{showError:R.w,changeRegn:v.d,signup:v.t})(T),F=function(e){function a(){return Object(n.a)(this,a),Object(l.a)(this,Object(o.a)(a).apply(this,arguments))}return Object(c.a)(a,e),Object(r.a)(a,[{key:"componentWillUnmount",value:function(){this.props.clearRegn()}},{key:"render",value:function(){return i.a.createElement("div",{className:"app flex-row align-items-center"},i.a.createElement(d.a,null,i.a.createElement(p.a,{className:"justify-content-center"},i.a.createElement(b.a,null),i.a.createElement(f.a,{md:"9",lg:"7",xl:"6"},i.a.createElement(h.a,{className:"mx-4"},i.a.createElement(g.a,{className:"p-4"},i.a.createElement("h1",null,"Registration"),i.a.createElement("p",{className:"text-muted"},"Create your account"),i.a.createElement(k,null),i.a.createElement(L,null),i.a.createElement(S,null),i.a.createElement("div",{className:"row"},i.a.createElement("div",{style:{margin:"1em auto"}},i.a.createElement("b",null,"Have you already registered?",i.a.createElement(u.a,{to:"/",className:"ui link"},"Click Here"))))))))))}}]),a}(s.Component);a.default=Object(m.b)(function(e){return{regn:e.regn}},{clearRegn:v.g})(F)},462:function(e,a){e.exports=function(e){var a=typeof e;return!!e&&("object"==a||"function"==a)}},586:function(e,a,t){"use strict";var n=t(8),r=t(35),l=t(1),o=t.n(l),c=t(4),s=t.n(c),i=t(265),u=t.n(i),m=t(286),d={tag:m.e,inverse:s.a.bool,color:s.a.string,block:Object(m.a)(s.a.bool,'Please use the props "body"'),body:s.a.bool,outline:s.a.bool,className:s.a.string,cssModule:s.a.object,innerRef:s.a.oneOfType([s.a.object,s.a.string,s.a.func])},p=function(e){var a=e.className,t=e.cssModule,l=e.color,c=e.block,s=e.body,i=e.inverse,d=e.outline,p=e.tag,f=e.innerRef,h=Object(r.a)(e,["className","cssModule","color","block","body","inverse","outline","tag","innerRef"]),g=Object(m.c)(u()(a,"card",!!i&&"text-white",!(!c&&!s)&&"card-body",!!l&&(d?"border":"bg")+"-"+l),t);return o.a.createElement(p,Object(n.a)({},h,{className:g,ref:f}))};p.propTypes=d,p.defaultProps={tag:"div"},a.a=p},587:function(e,a,t){"use strict";var n=t(8),r=t(35),l=t(1),o=t.n(l),c=t(4),s=t.n(c),i=t(265),u=t.n(i),m=t(286),d={tag:m.e,className:s.a.string,cssModule:s.a.object,innerRef:s.a.oneOfType([s.a.object,s.a.string,s.a.func])},p=function(e){var a=e.className,t=e.cssModule,l=e.innerRef,c=e.tag,s=Object(r.a)(e,["className","cssModule","innerRef","tag"]),i=Object(m.c)(u()(a,"card-body"),t);return o.a.createElement(c,Object(n.a)({},s,{className:i,ref:l}))};p.propTypes=d,p.defaultProps={tag:"div"},a.a=p},868:function(e,a,t){"use strict";var n=t(8),r=t(35),l=t(1),o=t.n(l),c=t(4),s=t.n(c),i=t(265),u=t.n(i),m=t(286),d={tag:m.e,noGutters:s.a.bool,className:s.a.string,cssModule:s.a.object,form:s.a.bool},p=function(e){var a=e.className,t=e.cssModule,l=e.noGutters,c=e.tag,s=e.form,i=Object(r.a)(e,["className","cssModule","noGutters","tag","form"]),d=Object(m.c)(u()(a,l?"no-gutters":null,s?"form-row":"row"),t);return o.a.createElement(c,Object(n.a)({},i,{className:d}))};p.propTypes=d,p.defaultProps={tag:"div"},a.a=p},869:function(e,a,t){"use strict";var n=t(8),r=t(35),l=t(462),o=t.n(l),c=t(1),s=t.n(c),i=t(4),u=t.n(i),m=t(265),d=t.n(m),p=t(286),f=u.a.oneOfType([u.a.number,u.a.string]),h=u.a.oneOfType([u.a.bool,u.a.number,u.a.string,u.a.shape({size:u.a.oneOfType([u.a.bool,u.a.number,u.a.string]),push:Object(p.a)(f,'Please use the prop "order"'),pull:Object(p.a)(f,'Please use the prop "order"'),order:f,offset:f})]),g={tag:p.e,xs:h,sm:h,md:h,lg:h,xl:h,className:u.a.string,cssModule:u.a.object,widths:u.a.array},b={tag:"div",widths:["xs","sm","md","lg","xl"]},v=function(e,a,t){return!0===t||""===t?e?"col":"col-"+a:"auto"===t?e?"col-auto":"col-"+a+"-auto":e?"col-"+t:"col-"+a+"-"+t},E=function(e){var a=e.className,t=e.cssModule,l=e.widths,c=e.tag,i=Object(r.a)(e,["className","cssModule","widths","tag"]),u=[];l.forEach(function(a,n){var r=e[a];if(delete i[a],r||""===r){var l=!n;if(o()(r)){var c,s=l?"-":"-"+a+"-",m=v(l,a,r.size);u.push(Object(p.c)(d()(((c={})[m]=r.size||""===r.size,c["order"+s+r.order]=r.order||0===r.order,c["offset"+s+r.offset]=r.offset||0===r.offset,c)),t))}else{var f=v(l,a,r);u.push(f)}}}),u.length||u.push("col");var m=Object(p.c)(d()(a,u),t);return s.a.createElement(c,Object(n.a)({},i,{className:m}))};E.propTypes=g,E.defaultProps=b,a.a=E}}]);
//# sourceMappingURL=34.0531d91d.chunk.js.map
|