"use strict";(self.webpackChunkBriane=self.webpackChunkBriane||[]).push([[951],{8951:(C,m,n)=>{n.r(m),n.d(m,{RegisterModule:()=>b});var d=n(69808),o=n(34182),a=n(68555),u=n(35226),g=n.n(u),c=n(84872),e=n(5e3),p=n(16027);function f(r,s){1&r&&(e.TgZ(0,"div",12)(1,"p",22),e._uU(2," Las contrase\xf1as no son iguales. "),e.qZA()())}const v=[{path:"",component:(()=>{class r{constructor(t,i){this._userService=t,this._router=i}validarPassword(t,i){return l=>l.controls[t].value===l.controls[i].value?null:{isOk:!0}}ngOnInit(){init_plugins(),this.forma=new o.cw({dni:new o.NI(null,o.kI.required),name:new o.NI(null,o.kI.required),email:new o.NI(null,[o.kI.required,o.kI.email]),password:new o.NI(null,o.kI.required),password2:new o.NI(null,o.kI.required),condiciones:new o.NI(!1)},{validators:this.validarPassword("password","password2")})}onSubmit(){!this.forma.valid||(this.user=new c.n(this.forma.value.name,this.forma.value.email,this.forma.value.password,"",0,!1,"",this.forma.value.dni),this.forma.value.password.length<6?g().fire("Mensaje","La constrase\xf1a debe tener al menos 6 caracteres.","warning"):this._userService.userRegister(this.user).subscribe(t=>{this._router.navigate(["/login"])}))}}return r.\u0275fac=function(t){return new(t||r)(e.Y36(p.KD),e.Y36(a.F0))},r.\u0275cmp=e.Xpm({type:r,selectors:[["app-register"]],decls:39,vars:2,consts:[["id","wrapper",1,"login-register","login-sidebar",2,"background-image","url(assets/images/background/login-register.jpg)"],[1,"login-box","card",2,"width","350px !important"],[1,"card-body"],["ngNativeValidate","","id","loginform","action","index.html",1,"form-horizontal","form-material",3,"formGroup","ngSubmit"],["href","javascript:void(0)",1,"text-center","db"],["src","assets/images/logo-icon.png","alt","Home"],["src","assets/images/logo-text.png","alt","Home"],[1,"box-title","m-t-40","m-b-0"],[1,"form-group","m-t-20"],[1,"col-xs-12"],["formControlName","dni","name","dni","type","text","required","","placeholder","DNI",1,"form-control"],["formControlName","name","name","name","type","text","required","","placeholder","Nombre",1,"form-control"],[1,"form-group"],["formControlName","email","name","email","type","email","required","","placeholder","Email",1,"form-control"],["formControlName","password","name","password","type","password","required","","placeholder","Password",1,"form-control"],["formControlName","password2","name","password2","type","password","required","","placeholder","Confirmar Password",1,"form-control"],["class","form-group",4,"ngIf"],[1,"form-group","text-center","m-t-20"],["type","submit",1,"btn","btn-info","btn-lg","btn-block","text-uppercase","waves-effect","waves-light"],[1,"form-group","m-b-0"],[1,"col-sm-12","text-center"],["routerLink","/login",1,"text-info","m-l-5"],[1,"text-danger"]],template:function(t,i){1&t&&(e.TgZ(0,"section",0)(1,"div",1)(2,"div",2)(3,"form",3),e.NdJ("ngSubmit",function(){return i.onSubmit()}),e.TgZ(4,"a",4),e._UZ(5,"img",5)(6,"br")(7,"img",6),e.qZA(),e.TgZ(8,"h3",7),e._uU(9,"Registrarse"),e.qZA(),e.TgZ(10,"small"),e._uU(11,"Cree su cuenta e ingrese"),e.qZA(),e.TgZ(12,"div",8)(13,"div",9),e._UZ(14,"input",10),e.qZA()(),e.TgZ(15,"div",8)(16,"div",9),e._UZ(17,"input",11),e.qZA()(),e.TgZ(18,"div",12)(19,"div",9),e._UZ(20,"input",13),e.qZA()(),e.TgZ(21,"div",12)(22,"div",9),e._UZ(23,"input",14),e.qZA()(),e.TgZ(24,"div",12)(25,"div",9),e._UZ(26,"input",15),e.qZA()(),e.YNc(27,f,3,0,"div",16),e.TgZ(28,"div",17)(29,"div",9)(30,"button",18),e._uU(31,"Registrarse"),e.qZA()()(),e.TgZ(32,"div",19)(33,"div",20)(34,"p"),e._uU(35,"\xbfYa tienes una cuenta? "),e.TgZ(36,"a",21)(37,"b"),e._uU(38,"Ingresar"),e.qZA()()()()()()()()()),2&t&&(e.xp6(3),e.Q6J("formGroup",i.forma),e.xp6(24),e.Q6J("ngIf",(null==i.forma.errors?null:i.forma.errors.isOk)&&!i.forma.pristine))},directives:[o.JL,o.sg,o.Fj,o.JJ,o.u,o.Q7,d.O5,a.yS],styles:[".login-register[_ngcontent-%COMP%]{background-size:cover;background-repeat:no-repeat;background-position:center center;height:100%;width:100%;padding:10% 0;position:fixed}.login-box[_ngcontent-%COMP%]{width:400px;margin:0 auto}.login-box[_ngcontent-%COMP%]   .footer[_ngcontent-%COMP%]{width:100%;left:0px}.login-box[_ngcontent-%COMP%]   .social[_ngcontent-%COMP%]{display:block;margin-bottom:30px}#recoverform[_ngcontent-%COMP%]{display:none}.login-sidebar[_ngcontent-%COMP%]{padding:0;margin-top:0}.login-sidebar[_ngcontent-%COMP%]   .login-box[_ngcontent-%COMP%]{position:absolute;height:100%}"]}),r})()}];let h=(()=>{class r{}return r.\u0275fac=function(t){return new(t||r)},r.\u0275mod=e.oAB({type:r}),r.\u0275inj=e.cJS({imports:[[a.Bz.forChild(v)],a.Bz]}),r})(),b=(()=>{class r{}return r.\u0275fac=function(t){return new(t||r)},r.\u0275mod=e.oAB({type:r}),r.\u0275inj=e.cJS({imports:[[d.ez,h,o.u5,o.UX]]}),r})()}}]);