-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path932.b2cdeb4a9a2a67d2.js
1 lines (1 loc) · 7.11 KB
/
932.b2cdeb4a9a2a67d2.js
1
"use strict";(self.webpackChunkwpa_bancamovil=self.webpackChunkwpa_bancamovil||[]).push([[932],{2932:(y,c,a)=>{a.r(c),a.d(c,{AuthModule:()=>z});var m=a(6895),p=a(4293),g=a(6561),o=a(1571),d=a(6518),r=a(433);function Z(t,e){if(1&t&&(o.TgZ(0,"div")(1,"p",12),o._uU(2),o.qZA()()),2&t){const i=o.oxw();o.xp6(2),o.hij("",null==i.usuario.autorizacion?null:i.usuario.autorizacion.celular," ")}}function f(t,e){1&t&&(o.TgZ(0,"p",12),o._uU(1,"No disponible"),o.qZA())}function h(t,e){if(1&t&&(o.TgZ(0,"div")(1,"p",12),o._uU(2),o.qZA()()),2&t){const i=o.oxw();o.xp6(2),o.hij("",null==i.usuario.autorizacion?null:i.usuario.autorizacion.telefono," ")}}function b(t,e){1&t&&(o.TgZ(0,"p",12),o._uU(1,"No disponible"),o.qZA())}const v=function(){return["/pq/home"]};let A=(()=>{class t{constructor(i){this.authService=i,this.cuentaBancaria=this.enmascarar(this.authService.usuario.autorizacion?.cuentaBancaria,3),this.visible=!0}get usuario(){return{...this.authService.usuario}}ngOnInit(){}enmascarar(i,n){let u=n,l=i.replace(/[a-z0-9\-_.]+/gi,s=>s.substring(0,u)+s.split("").slice(u,i.length).map(x=>"*").join(""));return console.log(l),l}enmascararCorreo(i,n){let u=n,l=i.replace(/[a-z0-9\-_.]+/gi,s=>s.substring(0,u)+s.split("").slice(u,i.length).map(x=>"*").join(""));return console.log(l),l}mostrarDatos(i){return this.visible=null!==i,this.visible}}return t.\u0275fac=function(i){return new(i||t)(o.Y36(d.e))},t.\u0275cmp=o.Xpm({type:t,selectors:[["app-perfil"]],decls:88,vars:13,consts:[[1,"limiter"],[1,"container-login100","bg-gradient-primary-to-secondary"],[1,"wrap-login100","p-l-25","p-r-25","p-t-25","p-b-54"],["autocomplete","on",1,"login100-form"],[1,"login100-form-title"],[1,"label-input100-info",2,"padding","0px 5px 10px"],[1,"wrap-input100","m-b-23"],[2,"position","absolute"],[3,"width"],[1,"pi","pi-angle-double-right"],[1,"output"],[1,"pi","pi-user"],[1,"label-input100"],[1,"pi","pi-users"],[1,"pi","pi-wallet"],[1,"pi","pi-mobile"],[4,"ngIf","ngIfElse"],["sinCelular",""],[1,"pi","pi-phone"],["sinTelefono",""],[1,"pi","pi-envelope"],[1,"text-right","p-t-8","p-b-31"],[1,"flex-col-c","p-t-25","p-b-20"],["oncontextmenu","return false;",1,"flex-col-c","p-t-5",3,"routerLink"]],template:function(i,n){if(1&i&&(o.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"form",3),o._UZ(4,"div",4)(5,"br")(6,"br")(7,"br")(8,"br")(9,"div",5),o.TgZ(10,"div",6)(11,"table"),o._UZ(12,"br")(13,"br"),o.TgZ(14,"h5",7),o._uU(15,"MI PERFIL"),o.qZA(),o._UZ(16,"br")(17,"br"),o.TgZ(18,"tr")(19,"td",8),o._UZ(20,"i",9),o.qZA(),o.TgZ(21,"td")(22,"p",10),o._uU(23),o.qZA()()(),o._UZ(24,"br"),o.TgZ(25,"tr",7),o._uU(26,"Datos de usuario"),o.qZA(),o._UZ(27,"br")(28,"br"),o.TgZ(29,"tr")(30,"td",8),o._UZ(31,"i",11),o.qZA(),o.TgZ(32,"td")(33,"p",10),o._uU(34,"Nombre Completo:"),o.qZA(),o.TgZ(35,"p",12),o._uU(36),o.qZA()()(),o.TgZ(37,"tr")(38,"td"),o._UZ(39,"i",13),o.qZA(),o.TgZ(40,"td")(41,"p",10),o._uU(42,"Rol:"),o.qZA(),o.TgZ(43,"p",12),o._uU(44),o.qZA()()(),o.TgZ(45,"tr")(46,"td"),o._UZ(47,"i",14),o.qZA(),o.TgZ(48,"td")(49,"p",10),o._uU(50,"Informaci\xf3n Cuenta Bancaria:"),o.qZA(),o.TgZ(51,"p",12),o._uU(52),o.qZA()()(),o._UZ(53,"br"),o.TgZ(54,"tr",7),o._uU(55,"Datos de contacto"),o.qZA(),o._UZ(56,"br")(57,"br"),o.TgZ(58,"tr")(59,"td"),o._UZ(60,"i",15),o.qZA(),o.TgZ(61,"td")(62,"p",10),o._uU(63,"N\xfamero tel\xe9fono celular:"),o.qZA(),o.YNc(64,Z,3,1,"div",16),o.YNc(65,f,2,0,"ng-template",null,17,o.W1O),o.qZA()(),o.TgZ(67,"tr")(68,"td"),o._UZ(69,"i",18),o.qZA(),o.TgZ(70,"td")(71,"p",10),o._uU(72,"N\xfamero tel\xe9fono convencional:"),o.qZA(),o.YNc(73,h,3,1,"div",16),o.YNc(74,b,2,0,"ng-template",null,19,o.W1O),o.qZA()(),o.TgZ(76,"tr")(77,"td"),o._UZ(78,"i",20),o.qZA(),o.TgZ(79,"td")(80,"p",10),o._uU(81,"Correo electr\xf3nico:"),o.qZA(),o.TgZ(82,"p",12),o._uU(83),o.qZA()()()()(),o._UZ(84,"div",21),o.TgZ(85,"div",22)(86,"a",23),o._uU(87," Regresar "),o.qZA()()()()()()),2&i){const u=o.MAs(66),l=o.MAs(75);o.xp6(19),o.Q6J("width",30),o.xp6(4),o.hij("\xdaltimo acceso al aplicativo: ",null==n.usuario.autorizacion?null:n.usuario.autorizacion.ultimoAccesoAplicativo,""),o.xp6(7),o.Q6J("width",25),o.xp6(6),o.Oqu(null==n.usuario.autorizacion?null:n.usuario.autorizacion.nombre),o.xp6(8),o.Oqu(null==n.usuario.autorizacion?null:n.usuario.autorizacion.roles),o.xp6(8),o.hij("N\xfamero de cuenta: ",n.cuentaBancaria,""),o.xp6(12),o.Q6J("ngIf",n.mostrarDatos(null==n.usuario.autorizacion?null:n.usuario.autorizacion.celular))("ngIfElse",u),o.xp6(9),o.Q6J("ngIf",n.mostrarDatos(null==n.usuario.autorizacion?null:n.usuario.autorizacion.telefono))("ngIfElse",l),o.xp6(10),o.Oqu(null==n.usuario.autorizacion?null:n.usuario.autorizacion.correo),o.xp6(3),o.Q6J("routerLink",o.DdM(12,v))}},dependencies:[m.O5,r._Y,r.JL,p.yS],styles:["#apartado1[_ngcontent-%COMP%]{width:300px;height:100px;border:3px solid brown;border-radius:22px}"]}),t})(),U=(()=>{class t{constructor(i){this.fb=i,this.miFormulario=this.fb.group({username:["",[r.kI.required,r.kI.minLength(10)]],password:["",[r.kI.required,r.kI.minLength(6)]]})}registro(){console.log(this.miFormulario.value),console.log(this.miFormulario.valid)}}return t.\u0275fac=function(i){return new(i||t)(o.Y36(r.qu))},t.\u0275cmp=o.Xpm({type:t,selectors:[["app-registro"]],decls:27,vars:2,consts:[[1,"limiter"],[1,"container-login100","bg-gradient-primary-to-secondary"],[1,"wrap-login100","p-l-55","p-r-55","p-t-25","p-b-54"],["autocomplete","off",1,"login100-form",3,"formGroup","ngSubmit"],[1,"login100-form-title","p-b-49"],[1,"wrap-input100","m-b-23"],[1,"label-input100"],["type","text","formControlName","nombre","placeholder","Ingrese su nombre",1,"input100"],[1,"focus-input100"],[1,"wrap-input100"],["type","password","formControlName","password","placeholder","Ingrese su contrase\xf1a",1,"input100"],[1,"text-right","p-t-8","p-b-31"],[1,"container-login100-form-btn"],[1,"wrap-login100-form-btn"],[1,"login100-form-bgbtn"],["type","submit",1,"login100-form-btn",3,"disabled"],[1,"flex-col-c","p-t-60"],[1,"txt1","p-b-17"],["routerLink","/login",1,"txt2"]],template:function(i,n){1&i&&(o.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"form",3),o.NdJ("ngSubmit",function(){return n.registro()}),o.TgZ(4,"span",4),o._uU(5," Nuevo usuario "),o.qZA(),o.TgZ(6,"div",5)(7,"span",6),o._uU(8,"Nombre"),o.qZA(),o._UZ(9,"input",7)(10,"span",8),o.qZA(),o.TgZ(11,"div",9)(12,"span",6),o._uU(13,"Password"),o.qZA(),o._UZ(14,"input",10)(15,"span",8),o.qZA(),o._UZ(16,"div",11),o.TgZ(17,"div",12)(18,"div",13),o._UZ(19,"div",14),o.TgZ(20,"button",15),o._uU(21," Registrar "),o.qZA()()(),o.TgZ(22,"div",16)(23,"span",17),o._uU(24," '\xbfYa tienes cuenta?' "),o.qZA(),o.TgZ(25,"a",18),o._uU(26," Ingresa una aqu\xed "),o.qZA()()()()()()),2&i&&(o.xp6(3),o.Q6J("formGroup",n.miFormulario),o.xp6(17),o.Q6J("disabled",n.miFormulario.invalid))},dependencies:[r._Y,r.Fj,r.JJ,r.JL,r.sg,r.u,p.yS]}),t})();var T=a(1778);const _=[{path:"",children:[{path:"registro",component:U},{path:"otp",component:g._,canActivate:[T.z]},{path:"perfil",component:A}]}];let q=(()=>{class t{}return t.\u0275fac=function(i){return new(i||t)},t.\u0275mod=o.oAB({type:t}),t.\u0275inj=o.cJS({imports:[p.Bz.forChild(_),p.Bz]}),t})();var C=a(3889);let z=(()=>{class t{}return t.\u0275fac=function(i){return new(i||t)},t.\u0275mod=o.oAB({type:t}),t.\u0275inj=o.cJS({imports:[m.ez,r.UX,q,C.m]}),t})()}}]);