-
Notifications
You must be signed in to change notification settings - Fork 0
/
chunk-U3BA7ZTQ.js
1 lines (1 loc) · 3.21 KB
/
chunk-U3BA7ZTQ.js
1
import{y as L}from"./chunk-TL3SOKZG.js";import{a as P,c as C,d as E,f as v,h as W,i as k,n as V,o as q}from"./chunk-2UOGX6KS.js";import{i as M}from"./chunk-FB7CDEED.js";import{$a as p,Pa as m,V as y,Za as i,_a as t,ab as S,bb as _,db as w,mb as a,rb as u,sb as g,tb as f,ya as s,yb as b,za as h}from"./chunk-XIWENJHJ.js";import"./chunk-BL3FZZIZ.js";var F=(()=>{let o=class o{constructor(r,l){this.router=r,this.store=l,this.username="Deepak",this.password="Kunda1965!",this.email="[email protected]!",this.secondPassword="Kunda1965!",this.submitted=!1}isValid(){var r=!0;return this.username===""&&(r=!1),this.password===""&&(r=!1),this.email===""&&(r=!1),this.secondPassword===""&&(r=!1),this.secondPassword!==this.password&&(r=!1),r}onSignup(){this.isValid()&&(this.submitted=!0)}onLogin(){this.router.navigateByUrl("/login")}};o.\u0275fac=function(l){return new(l||o)(h(M),h(L))},o.\u0275cmp=y({type:o,selectors:[["page-signup"]],standalone:!0,features:[b],decls:35,vars:8,consts:[[1,"container"],["novalidate",""],["for","username"],["name","username","label","User name","type","text","required","",1,"inputtext",3,"ngModelChange","ngModel"],[3,"hidden"],["for","email"],["name","email","label","Email","type","email","required","",1,"inputtext",3,"ngModelChange","ngModel"],["for","password"],["name","password","label","Password","type","password","required","",1,"inputtext",3,"ngModelChange","ngModel"],["for","secondPassword"],["name","secondPassword","label","Repeat","type","password","required","",1,"inputtext",3,"ngModelChange","ngModel"],[1,"padding","row"],["type","submit",1,"col","btn",3,"click"],["type","submit","expand","block",1,"btn","col","full-width",3,"click"]],template:function(l,e){l&1&&(i(0,"div",0)(1,"form",1)(2,"fieldset")(3,"legend"),a(4,"Username/Password"),t(),i(5,"label",2),a(6,"Username"),t(),i(7,"input",3),f("ngModelChange",function(n){return g(e.username,n)||(e.username=n),n}),t(),p(8,"br"),i(9,"p",4),a(10,"Username is required"),t(),i(11,"label",5),a(12,"email"),t(),i(13,"input",6),f("ngModelChange",function(n){return g(e.email,n)||(e.email=n),n}),t(),p(14,"br"),i(15,"p",4),a(16,"email is required"),t(),i(17,"label",7),a(18,"password"),t(),i(19,"input",8),f("ngModelChange",function(n){return g(e.password,n)||(e.password=n),n}),t(),i(20,"p",4),a(21,"Password is required"),t(),p(22,"br"),S(23),i(24,"label",9),a(25,"Repeat password"),t(),i(26,"input",10),f("ngModelChange",function(n){return g(e.secondPassword,n)||(e.secondPassword=n),n}),t(),p(27,"br"),i(28,"p",4),a(29,"Password must match"),t(),_(),t(),i(30,"div",11)(31,"button",12),w("click",function(){return e.onLogin()}),a(32,"Login"),t(),i(33,"button",13),w("click",function(){return e.onSignup()}),a(34,"Create"),t()()()()),l&2&&(s(7),u("ngModel",e.username),s(2),m("hidden",e.isValid()||e.submitted==!1),s(4),u("ngModel",e.email),s(2),m("hidden",e.isValid()||e.submitted==!1),s(4),u("ngModel",e.password),s(),m("hidden",e.isValid()||e.submitted==!1),s(6),u("ngModel",e.secondPassword),s(2),m("hidden",e.isValid()||e.submitted==!1))},dependencies:[q,k,P,C,E,V,W,v],styles:[".container[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;height:90vh;margin-left:22px;padding-right:22px}"]});let c=o;return c})();export{F as SignupPage};