-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path1653.4d3ec92ab26bd9a1.js
1 lines (1 loc) · 9.58 KB
/
1653.4d3ec92ab26bd9a1.js
1
"use strict";(self.webpackChunkfuse=self.webpackChunkfuse||[]).push([[1653],{81653:(B,c,i)=>{i.r(c),i.d(c,{default:()=>P});var n=i(89417),g=i(88834),f=i(82765),p=i(53719),h=i(99213),F=i(59042),v=i(9183),x=i(51188),k=i(87122),d=i(55364),t=i(17705),C=i(35524);const U=["signUpNgForm"],E=()=>["/sign-in"];function b(e,r){1&e&&(t.j41(0,"mat-error"),t.EFF(1," El nombre son obligatorios. "),t.k0s())}function w(e,r){1&e&&(t.j41(0,"mat-error"),t.EFF(1," El nombre no deben superar los 250 caracteres. "),t.k0s())}function y(e,r){1&e&&(t.j41(0,"mat-error"),t.EFF(1," El Primer Apellido son obligatorios. "),t.k0s())}function j(e,r){1&e&&(t.j41(0,"mat-error"),t.EFF(1," El Primer Apellido no deben superar los 250 caracteres. "),t.k0s())}function S(e,r){1&e&&(t.j41(0,"mat-error"),t.EFF(1," El Segundo Apellido no deben superar los 250 caracteres. "),t.k0s())}function A(e,r){1&e&&(t.j41(0,"mat-error"),t.EFF(1," El correo electr\xf3nico es obligatorio "),t.k0s())}function _(e,r){1&e&&(t.j41(0,"mat-error"),t.EFF(1," Por favor ingrese un correo electr\xf3nico v\xe1lido "),t.k0s())}function R(e,r){1&e&&t.nrm(0,"mat-icon",22),2&e&&t.Y8G("svgIcon","mat_solid:visibility")}function N(e,r){1&e&&t.nrm(0,"mat-icon",22),2&e&&t.Y8G("svgIcon","mat_solid:visibility_off")}function $(e,r){1&e&&(t.j41(0,"mat-error"),t.EFF(1,' La contrase\xf1a deber\xe1 tener entre 8 y 100 caracteres e incluir may\xfasculas, min\xfasculas n\xfameros y s\xedmbolos como: ! " ? $ % ^ &. '),t.k0s())}function T(e,r){1&e&&(t.j41(0,"mat-error"),t.EFF(1," La contrase\xf1a es obligatoria "),t.k0s())}function G(e,r){1&e&&t.nrm(0,"mat-icon",22),2&e&&t.Y8G("svgIcon","mat_solid:visibility")}function M(e,r){1&e&&t.nrm(0,"mat-icon",22),2&e&&t.Y8G("svgIcon","mat_solid:visibility_off")}function I(e,r){1&e&&(t.j41(0,"mat-error"),t.EFF(1," La contrase\xf1a es obligatoria "),t.k0s())}function Y(e,r){if(1&e&&(t.j41(0,"mat-error"),t.EFF(1),t.k0s()),2&e){const s=t.XpG();t.R7$(),t.SpI(" ",s.signUpForm.get("pwd2").getError("mustMatch")," ")}}function L(e,r){1&e&&(t.j41(0,"span"),t.EFF(1," Crear cuenta "),t.k0s())}function D(e,r){1&e&&t.nrm(0,"mat-progress-spinner",29),2&e&&t.Y8G("diameter",24)("mode","indeterminate")}const P=[{path:"",component:(()=>{class e{constructor(s,a,o){this._authService=s,this._formBuilder=a,this._router=o}ngOnInit(){this.signUpForm=this._formBuilder.group({name:["",[n.k0.required,n.k0.minLength(3),n.k0.maxLength(255),d.t.onlyAlphabetsWithAccentPattern()]],lastname1:["",[n.k0.required,n.k0.maxLength(255),d.t.onlyAlphabetsWithAccentPattern()]],lastname2:["",[n.k0.minLength(3),n.k0.maxLength(255),d.t.onlyAlphabetsWithAccentPattern()]],email:["",[n.k0.required,n.k0.email]],pwd:["*",[n.k0.required,n.k0.minLength(8),n.k0.maxLength(100),d.t.strongPasWordPattern()]],pwd2:["*",[n.k0.required]],agreements:[!0,n.k0.requiredTrue]},{validators:[d.t.mustMatch("pwd","pwd2")]})}signUp(){if(this.signUpForm.invalid)return;const s=this.signUpForm.getRawValue();delete s.pwd2,this.signUpForm.disable(),this._authService.signUp(s).subscribe(a=>{this._router.navigateByUrl("/confirmation-required")},a=>{this.signUpForm.enable(),this.signUpForm.reset()})}static#t=this.\u0275fac=function(a){return new(a||e)(t.rXU(C.u),t.rXU(n.ze),t.rXU(x.Ix))};static#e=this.\u0275cmp=t.VBU({type:e,selectors:[["auth-sign-up"]],viewQuery:function(a,o){if(1&a&&t.GBs(U,5),2&a){let m;t.mGM(m=t.lsd())&&(o.signUpNgForm=m.first)}},standalone:!0,features:[t.aNF],decls:73,vars:36,consts:[["passwordField",""],["passwordField2",""],[1,"flex","flex-col","items-center","flex-auto","min-w-0","sm:flex-row","md:items-start","sm:justify-center","md:justify-start"],[1,"relative","items-center","justify-center","flex-auto","hidden","w-2/3","h-screen","p-16","overflow-hidden","bg-white","bg-cover","dark:bg-transparent","md:flex","lg:px-28","dark:border-r"],[1,"relative","z-10","w-2/3","aspect-auto"],["src","assets/images/illustrations/auth-dark.svg","alt","Imagen de Inicio"],[1,"border-l","overflow-auto","w-full","px-4","py-8","md:flex","md:items-center","md:justify-end","sm:w-auto","md:h-full","sm:p-12","md:p-16","sm:rounded-2xl","md:rounded-none","sm:shadow","md:shadow-none","sm:bg-card",2,"height","100vh !important"],[1,"w-full","mx-auto","max-w-80","sm:w-80","sm:mx-0","overflow-auto","px-2","md:mt-20"],["src","assets/images/logo/logo-text.svg","alt","Logo image",1,"h-18","w-auto","dark:hidden","aspect-auto"],["src","assets/images/logo/logo-text-on-dark.svg","alt","Logo image",1,"h-18","w-auto","hidden","dark:flex","aspect-auto"],[1,"mt-8","text-4xl","font-extrabold","leading-tight","tracking-tight"],[1,"flex","items-baseline","mt-0.5","font-medium"],[1,"ml-1","text-primary-500","hover:underline",3,"routerLink"],[1,"mt-8",3,"formGroup"],[1,"w-full","fuse-mat-dense"],["id","name","matInput","","required","",3,"formControlName","maxlength"],["id","lastname1","matInput","","required","",3,"formControlName","maxlength"],["id","lastname2","matInput","",3,"formControlName","maxlength"],["id","email","matInput","",3,"formControlName"],[1,"w-full","fuse-mat-dense","pb-4",3,"subscriptSizing"],["id","pwd","matInput","","type","password","required","",3,"formControlName","minlength","maxlength"],["mat-icon-button","","type","button","matSuffix","",3,"click"],[1,"icon-size-5",3,"svgIcon"],["id","pwd2","matInput","","type","password","required","",3,"formControlName"],[1,"inline-flex","items-end","w-full","mt-1.5"],[3,"color","formControlName"],["href","https://athendat.site/#/terms","target","_blank",1,"ml-1","text-primary-500","hover:underline"],["href","https://athendat.site/#/privacy","target","_blank",1,"ml-1","text-primary-500","hover:underline"],["mat-flat-button","",1,"w-full","mt-6","fuse-mat-button-large",3,"click","color","disabled"],[3,"diameter","mode"]],template:function(a,o){if(1&a){const m=t.RV6();t.j41(0,"div",2)(1,"div",3)(2,"div",4),t.nrm(3,"img",5),t.k0s()(),t.j41(4,"div",6)(5,"div",7)(6,"div"),t.nrm(7,"img",8)(8,"img",9),t.k0s(),t.j41(9,"div",10),t.EFF(10,"Registro"),t.k0s(),t.j41(11,"div",11)(12,"div"),t.EFF(13,"\xbfYa tiene un cuenta?"),t.k0s(),t.j41(14,"a",12),t.EFF(15," Iniciar Sesi\xf3n "),t.k0s()(),t.j41(16,"form",13)(17,"mat-form-field",14)(18,"mat-label"),t.EFF(19,"Nombre"),t.k0s(),t.nrm(20,"input",15),t.DNE(21,b,2,0,"mat-error")(22,w,2,0,"mat-error"),t.k0s(),t.j41(23,"mat-form-field",14)(24,"mat-label"),t.EFF(25,"Primer Apellido"),t.k0s(),t.nrm(26,"input",16),t.DNE(27,y,2,0,"mat-error")(28,j,2,0,"mat-error"),t.k0s(),t.j41(29,"mat-form-field",14)(30,"mat-label"),t.EFF(31,"Segundo Apellido"),t.k0s(),t.nrm(32,"input",17),t.DNE(33,S,2,0,"mat-error"),t.k0s(),t.j41(34,"mat-form-field",14)(35,"mat-label"),t.EFF(36,"Correo electr\xf3nico"),t.k0s(),t.nrm(37,"input",18),t.DNE(38,A,2,0,"mat-error")(39,_,2,0,"mat-error"),t.k0s(),t.j41(40,"mat-form-field",19)(41,"mat-label"),t.EFF(42,"Contrase\xf1a"),t.k0s(),t.nrm(43,"input",20,0),t.j41(45,"button",21),t.bIt("click",function(){t.eBV(m);const l=t.sdS(44);return t.Njj(l.type="password"===l.type?"text":"password")}),t.DNE(46,R,1,1,"mat-icon",22)(47,N,1,1,"mat-icon",22),t.k0s(),t.DNE(48,$,2,0,"mat-error")(49,T,2,0,"mat-error"),t.k0s(),t.j41(50,"mat-form-field",14)(51,"mat-label"),t.EFF(52,"Repita la contrase\xf1a"),t.k0s(),t.nrm(53,"input",23,1),t.j41(55,"button",21),t.bIt("click",function(){t.eBV(m);const l=t.sdS(54);return t.Njj(l.type="password"===l.type?"text":"password")}),t.DNE(56,G,1,1,"mat-icon",22)(57,M,1,1,"mat-icon",22),t.k0s(),t.DNE(58,I,2,0,"mat-error")(59,Y,2,1,"mat-error"),t.k0s(),t.j41(60,"div",24)(61,"mat-checkbox",25)(62,"span"),t.EFF(63,"Estoy de acuerdo con los"),t.k0s(),t.j41(64,"a",26),t.EFF(65,"T\xe9rminos de Uso "),t.k0s(),t.j41(66,"span"),t.EFF(67,"y la"),t.k0s(),t.j41(68,"a",27),t.EFF(69,"Pol\xedtica de Privacidad "),t.k0s()()(),t.j41(70,"button",28),t.bIt("click",function(){return t.eBV(m),t.Njj(o.signUp())}),t.DNE(71,L,2,0,"span")(72,D,1,2,"mat-progress-spinner",29),t.k0s()()()()()}if(2&a){const m=t.sdS(44),u=t.sdS(54);t.R7$(14),t.Y8G("routerLink",t.lJ4(35,E)),t.R7$(2),t.Y8G("formGroup",o.signUpForm),t.R7$(4),t.Y8G("formControlName","name")("maxlength",255),t.R7$(),t.vxM(o.signUpForm.get("name").hasError("required")?21:-1),t.R7$(),t.vxM(o.signUpForm.get("name").hasError("maxlength")?22:-1),t.R7$(4),t.Y8G("formControlName","lastname1")("maxlength",255),t.R7$(),t.vxM(o.signUpForm.get("lastname1").hasError("required")?27:-1),t.R7$(),t.vxM(o.signUpForm.get("lastname1").hasError("maxlength")?28:-1),t.R7$(4),t.Y8G("formControlName","lastname2")("maxlength",255),t.R7$(),t.vxM(o.signUpForm.get("lastname2").hasError("maxlength")?33:-1),t.R7$(4),t.Y8G("formControlName","email"),t.R7$(),t.vxM(o.signUpForm.get("email").hasError("required")?38:-1),t.R7$(),t.vxM(o.signUpForm.get("email").hasError("email")?39:-1),t.R7$(),t.Y8G("subscriptSizing","dynamic"),t.R7$(3),t.Y8G("formControlName","pwd")("minlength",8)("maxlength",100),t.R7$(3),t.vxM("password"===m.type?46:-1),t.R7$(),t.vxM("text"===m.type?47:-1),t.R7$(),t.vxM(o.signUpForm.get("pwd").hasError("pattern")||o.signUpForm.get("pwd").hasError("minlength")?48:-1),t.R7$(),t.vxM(o.signUpForm.get("pwd").hasError("required")?49:-1),t.R7$(4),t.Y8G("formControlName","pwd2"),t.R7$(3),t.vxM("password"===u.type?56:-1),t.R7$(),t.vxM("text"===u.type?57:-1),t.R7$(),t.vxM(o.signUpForm.get("pwd2").hasError("required")?58:-1),t.R7$(),t.vxM(o.signUpForm.get("pwd2").hasError("mustMatch")?59:-1),t.R7$(2),t.Y8G("color","primary")("formControlName","agreements"),t.R7$(9),t.Y8G("color","primary")("disabled",o.signUpForm.disabled||o.signUpForm.invalid),t.R7$(),t.vxM(o.signUpForm.disabled?-1:71),t.R7$(),t.vxM(o.signUpForm.disabled?72:-1)}},dependencies:[x.Wk,n.YN,n.qT,n.me,n.BC,n.cb,n.YS,n.xh,n.tU,n.X1,n.j4,n.JD,p.RG,p.rl,p.nJ,p.TL,p.yw,F.fS,F.fg,g.Hl,g.$z,g.iY,h.m_,h.An,f.g7,f.So,v.D6,v.LG],encapsulation:2,data:{animation:k.X}})}return e})()}]}}]);