-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path212.1b789f5900a3bfcf.js
1 lines (1 loc) · 8.59 KB
/
212.1b789f5900a3bfcf.js
1
"use strict";(self.webpackChunkfuse=self.webpackChunkfuse||[]).push([[212],{6832:(j,d,n)=>{n.r(d),n.d(d,{default:()=>F});var C=n(1368),r=n(6504),u=n(7816),c=n(3840),l=n(4060),f=n(1560),p=n(8416),h=n(7488),y=n(9892),w=n(8384),I=n(4620),e=n(4496),x=n(3080);const E=["signUpNgForm"];function R(t,a){if(1&t&&(e.I0R(0,"fuse-alert",43),e.OEk(1),e.C$Y()),2&t){const i=e.GaO();e.E7m("appearance","outline")("showIcon",!1)("type",i.alert.type)("@shake","error"===i.alert.type),e.yG2(),e.oRS(" ",i.alert.message," ")}}function U(t,a){1&t&&(e.I0R(0,"mat-error"),e.OEk(1," Full name is required "),e.C$Y())}function Y(t,a){1&t&&(e.I0R(0,"mat-error"),e.OEk(1," Email address is required "),e.C$Y())}function k(t,a){1&t&&(e.I0R(0,"mat-error"),e.OEk(1," Please enter a valid email address "),e.C$Y())}function G(t,a){1&t&&e.wR5(0,"mat-icon",44),2&t&&e.E7m("svgIcon","heroicons_solid:eye")}function $(t,a){1&t&&e.wR5(0,"mat-icon",44),2&t&&e.E7m("svgIcon","heroicons_solid:eye-slash")}function b(t,a){1&t&&(e.I0R(0,"span"),e.OEk(1," Create your free account "),e.C$Y())}function A(t,a){1&t&&e.wR5(0,"mat-progress-spinner",45),2&t&&e.E7m("diameter",24)("mode","indeterminate")}const O=()=>["/sign-in"],v=()=>["./"],F=[{path:"",component:(()=>{class t{constructor(i,s,o){this._authService=i,this._formBuilder=s,this._router=o,this.alert={type:"success",message:""},this.showAlert=!1}ngOnInit(){this.signUpForm=this._formBuilder.group({name:["",r.AQ.required],email:["",[r.AQ.required,r.AQ.email]],password:["",r.AQ.required],company:[""],agreements:["",r.AQ.requiredTrue]})}signUp(){this.signUpForm.invalid||(this.signUpForm.disable(),this.showAlert=!1,this._authService.signUp(this.signUpForm.value).subscribe(i=>{this._router.navigateByUrl("/confirmation-required")},i=>{this.signUpForm.enable(),this.signUpNgForm.resetForm(),this.alert={type:"error",message:"Something went wrong, please try again."},this.showAlert=!0}))}static#e=this.\u0275fac=function(s){return new(s||t)(e.GI1(x.o),e.GI1(r.KE),e.GI1(y.E5))};static#t=this.\u0275cmp=e.In1({type:t,selectors:[["auth-sign-up"]],viewQuery:function(s,o){if(1&s&&e.CC$(E,5),2&s){let m;e.wto(m=e.Gqi())&&(o.signUpNgForm=m.first)}},standalone:!0,features:[e.UHJ],decls:79,vars:23,consts:[[1,"flex","flex-col","sm:flex-row","items-center","md:items-start","sm:justify-center","md:justify-start","flex-auto","min-w-0"],[1,"md:flex","md:items-center","md:justify-end","w-full","sm:w-auto","md:h-full","md:w-1/2","py-8","px-4","sm:p-12","md:p-16","sm:rounded-2xl","md:rounded-none","sm:shadow","md:shadow-none","sm:bg-card"],[1,"w-full","max-w-80","sm:w-80","mx-auto","sm:mx-0"],[1,"w-12"],["src","assets/images/logo/logo.svg"],[1,"mt-8","text-4xl","font-extrabold","tracking-tight","leading-tight"],[1,"flex","items-baseline","mt-0.5","font-medium"],[1,"ml-1","text-primary-500","hover:underline",3,"routerLink"],["class","mt-8",3,"appearance","showIcon","type",4,"ngIf"],[1,"mt-8",3,"formGroup"],["signUpNgForm","ngForm"],[1,"w-full"],["id","name","matInput","",3,"formControlName"],[4,"ngIf"],["id","email","matInput","",3,"formControlName"],["id","password","matInput","","type","password",3,"formControlName"],["passwordField",""],["mat-icon-button","","type","button","matSuffix","",3,"click"],["class","icon-size-5",3,"svgIcon",4,"ngIf"],["id","company-confirm","matInput","",3,"formControlName"],[1,"inline-flex","items-end","w-full","mt-1.5"],[1,"-ml-2",3,"color","formControlName"],["mat-flat-button","",1,"fuse-mat-button-large","w-full","mt-6",3,"color","disabled","click"],[3,"diameter","mode",4,"ngIf"],[1,"relative","hidden","md:flex","flex-auto","items-center","justify-center","w-1/2","h-full","p-16","lg:px-28","overflow-hidden","bg-gray-800","dark:border-l"],["viewBox","0 0 960 540","width","100%","height","100%","preserveAspectRatio","xMidYMax slice","xmlns","http://www.w3.org/2000/svg",1,"absolute","inset-0","pointer-events-none"],["fill","none","stroke","currentColor","stroke-width","100",1,"text-gray-700","opacity-25"],["r","234","cx","196","cy","23"],["r","234","cx","790","cy","491"],["viewBox","0 0 220 192","width","220","height","192","fill","none",1,"absolute","-top-16","-right-16","text-gray-700"],["id","837c3e70-6c3a-44e6-8854-cc48c737b659","x","0","y","0","width","20","height","20","patternUnits","userSpaceOnUse"],["x","0","y","0","width","4","height","4","fill","currentColor"],["width","220","height","192","fill","url(#837c3e70-6c3a-44e6-8854-cc48c737b659)"],[1,"z-10","relative","w-full","max-w-2xl"],[1,"text-7xl","font-bold","leading-none","text-gray-100"],[1,"mt-6","text-lg","tracking-tight","leading-6","text-gray-400"],[1,"flex","items-center","mt-8"],[1,"flex","flex-0","items-center","-space-x-1.5"],["src","assets/images/avatars/female-18.jpg",1,"flex-0","w-10","h-10","rounded-full","ring-4","ring-offset-1","ring-gray-800","ring-offset-gray-800","object-cover"],["src","assets/images/avatars/female-11.jpg",1,"flex-0","w-10","h-10","rounded-full","ring-4","ring-offset-1","ring-gray-800","ring-offset-gray-800","object-cover"],["src","assets/images/avatars/male-09.jpg",1,"flex-0","w-10","h-10","rounded-full","ring-4","ring-offset-1","ring-gray-800","ring-offset-gray-800","object-cover"],["src","assets/images/avatars/male-16.jpg",1,"flex-0","w-10","h-10","rounded-full","ring-4","ring-offset-1","ring-gray-800","ring-offset-gray-800","object-cover"],[1,"ml-4","font-medium","tracking-tight","text-gray-400"],[1,"mt-8",3,"appearance","showIcon","type"],[1,"icon-size-5",3,"svgIcon"],[3,"diameter","mode"]],template:function(s,o){if(1&s){const m=e.KQA();e.I0R(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),e.wR5(4,"img",4),e.C$Y(),e.I0R(5,"div",5),e.OEk(6,"Sign up"),e.C$Y(),e.I0R(7,"div",6)(8,"div"),e.OEk(9,"Already have an account?"),e.C$Y(),e.I0R(10,"a",7),e.OEk(11,"Sign in "),e.C$Y()(),e.yuY(12,R,2,5,"fuse-alert",8),e.I0R(13,"form",9,10)(15,"mat-form-field",11)(16,"mat-label"),e.OEk(17,"Full name"),e.C$Y(),e.wR5(18,"input",12),e.yuY(19,U,2,0,"mat-error",13),e.C$Y(),e.I0R(20,"mat-form-field",11)(21,"mat-label"),e.OEk(22,"Email address"),e.C$Y(),e.wR5(23,"input",14),e.yuY(24,Y,2,0,"mat-error",13)(25,k,2,0,"mat-error",13),e.C$Y(),e.I0R(26,"mat-form-field",11)(27,"mat-label"),e.OEk(28,"Password"),e.C$Y(),e.wR5(29,"input",15,16),e.I0R(31,"button",17),e.qCj("click",function(){e.usT(m);const g=e.Gew(30);return e.CGJ(g.type="password"===g.type?"text":"password")}),e.yuY(32,G,1,1,"mat-icon",18)(33,$,1,1,"mat-icon",18),e.C$Y(),e.I0R(34,"mat-error"),e.OEk(35," Password is required "),e.C$Y()(),e.I0R(36,"mat-form-field",11)(37,"mat-label"),e.OEk(38,"Company"),e.C$Y(),e.wR5(39,"input",19),e.C$Y(),e.I0R(40,"div",20)(41,"mat-checkbox",21)(42,"span"),e.OEk(43,"I agree with"),e.C$Y(),e.I0R(44,"a",7),e.OEk(45,"Terms "),e.C$Y(),e.I0R(46,"span"),e.OEk(47,"and"),e.C$Y(),e.I0R(48,"a",7),e.OEk(49,"Privacy Policy "),e.C$Y()()(),e.I0R(50,"button",22),e.qCj("click",function(){return o.signUp()}),e.yuY(51,b,2,0,"span",13)(52,A,1,2,"mat-progress-spinner",23),e.C$Y()()()(),e.I0R(53,"div",24),e.S2Z(),e.I0R(54,"svg",25)(55,"g",26),e.wR5(56,"circle",27)(57,"circle",28),e.C$Y()(),e.I0R(58,"svg",29)(59,"defs")(60,"pattern",30),e.wR5(61,"rect",31),e.C$Y()(),e.wR5(62,"rect",32),e.C$Y(),e.gRP(),e.I0R(63,"div",33)(64,"div",34)(65,"div"),e.OEk(66,"Welcome to"),e.C$Y(),e.I0R(67,"div"),e.OEk(68,"our community"),e.C$Y()(),e.I0R(69,"div",35),e.OEk(70," Fuse helps developers to build organized and well coded dashboards full of beautiful and rich modules. Join us and start building your application today. "),e.C$Y(),e.I0R(71,"div",36)(72,"div",37),e.wR5(73,"img",38)(74,"img",39)(75,"img",40)(76,"img",41),e.C$Y(),e.I0R(77,"div",42),e.OEk(78,"More than 17k people joined us, it's your turn"),e.C$Y()()()()()}if(2&s){const m=e.Gew(30);e.yG2(10),e.E7m("routerLink",e.q4q(20,O)),e.yG2(2),e.E7m("ngIf",o.showAlert),e.yG2(),e.E7m("formGroup",o.signUpForm),e.yG2(5),e.E7m("formControlName","name"),e.yG2(),e.E7m("ngIf",o.signUpForm.get("name").hasError("required")),e.yG2(4),e.E7m("formControlName","email"),e.yG2(),e.E7m("ngIf",o.signUpForm.get("email").hasError("required")),e.yG2(),e.E7m("ngIf",o.signUpForm.get("email").hasError("email")),e.yG2(4),e.E7m("formControlName","password"),e.yG2(3),e.E7m("ngIf","password"===m.type),e.yG2(),e.E7m("ngIf","text"===m.type),e.yG2(6),e.E7m("formControlName","company"),e.yG2(2),e.E7m("color","primary")("formControlName","agreements"),e.yG2(3),e.E7m("routerLink",e.q4q(21,v)),e.yG2(4),e.E7m("routerLink",e.q4q(22,v)),e.yG2(2),e.E7m("color","primary")("disabled",o.signUpForm.disabled),e.yG2(),e.E7m("ngIf",!o.signUpForm.disabled),e.yG2(),e.E7m("ngIf",o.signUpForm.disabled)}},dependencies:[y.ER,C.u_,I.G,r.y,r.sz,r.ot,r.ue,r.u,r.sl,r.uW,r.Wo,l.wb,l.Up,l.w5,l.wJ,l.Gm,p.cN,p.yi,u.oJ,u.Gw,u.um,f.oB,f.qL,c.Vn,c.WK,h.kB,h.cm],encapsulation:2,data:{animation:w.u}})}return t})()}]}}]);