-
Notifications
You must be signed in to change notification settings - Fork 0
/
9-es5.d4764aca38707fde4363.js
1 lines (1 loc) · 6.79 KB
/
9-es5.d4764aca38707fde4363.js
1
function _defineProperties(e,n){for(var o=0;o<n.length;o++){var t=n[o];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(e,t.key,t)}}function _createClass(e,n,o){return n&&_defineProperties(e.prototype,n),o&&_defineProperties(e,o),e}function _classCallCheck(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(window.webpackJsonp=window.webpackJsonp||[]).push([[9],{"nxS/":function(e,n,o){"use strict";o.r(n),o.d(n,"RegisterModule",(function(){return C}));var t=o("ofXK"),r=o("3Pt+"),a=o("tyNb"),i=function e(){_classCallCheck(this,e)},l=o("fXoL"),s=o("udns");function c(e,n){1&e&&(l.Sb(0,"div",20),l.Bc(1," Ocurrio un error al registrarse "),l.Sb(2,"button",21),l.Sb(3,"span",22),l.Bc(4,"\xd7"),l.Rb(),l.Rb(),l.Rb())}function b(e,n){1&e&&(l.Sb(0,"small",23),l.Bc(1,"Nombre obligatorio"),l.Rb())}function m(e,n){1&e&&(l.Sb(0,"small",23),l.Bc(1,"Correo obligatorio"),l.Rb())}function u(e,n){1&e&&(l.Sb(0,"small",23),l.Bc(1,"Contrase\xf1a obligatorio"),l.Rb())}var p,d,g,f=[{path:"",component:(p=function(){function e(n,o,t){_classCallCheck(this,e),this.formBuilder=n,this.authService=o,this.router=t,this.registro=!1,this.creaFormulario()}return _createClass(e,[{key:"ngOnInit",value:function(){this.usuario=new i}},{key:"creaFormulario",value:function(){this.formulario=this.formBuilder.group({nombre:["",[r.n.required,r.n.minLength(5)]],email:["",[r.n.required,r.n.pattern("[a-z0-9._%+-]+@[a-z0-9.-]+.[a-z]{2,3}$")]],password:["",[r.n.required,r.n.pattern("^(?=.*?[A-Z])(?=.*?[a-z])(?=.*?[0-9])(?=.*?[^ws]).{7,}$")]]})}},{key:"validarCampos",value:function(e){return this.formulario.get(e).invalid&&this.formulario.get(e).touched}},{key:"registrar",value:function(){}},{key:"nombreNoValido",get:function(){return this.validarCampos("nombre")}},{key:"emailNoValido",get:function(){return this.validarCampos("email")}},{key:"passwordNoValido",get:function(){return this.validarCampos("password")}}]),e}(),p.\u0275fac=function(e){return new(e||p)(l.Nb(r.b),l.Nb(s.a),l.Nb(a.b))},p.\u0275cmp=l.Hb({type:p,selectors:[["app-register"]],decls:31,vars:11,consts:[[1,"container-login"],["style","position: absolute;","class","alert alert-danger alert-dismissible fade show float-sm-right","role","alert",4,"ngIf"],[1,"login","animate__animated","animate__fadeInDown"],[1,"form-signin",3,"formGroup","ngSubmit"],[1,"text-center","mb-4"],["src","assets/images/logo.png","alt","","width","82","height","82",1,"mb-4"],[1,"h3","mb-3","font-weight-normal"],[1,"form-label-group"],["formControlName","nombre","name","nombre","type","text","id","inputNombre","placeholder","Nombre",1,"form-control"],["for","inputNombre"],["class","form-text text-danger",4,"ngIf"],["formControlName","email","name","email","type","email","id","inputEmail","placeholder","Correo",1,"form-control"],["for","inputEmail"],["formControlName","password","name","password","type","password","id","inputPassword","placeholder","Contrase\xf1a","required","",1,"form-control"],["for","inputPassword"],[1,"form-label-group","text-right"],["routerLink","/login",1,"stretched-link"],["type","submit",1,"btn","btn-lg","btn-primary","btn-block"],[1,"text-center","p-4"],["routerLink","/home",1,"ruta-home","badge","badge-success"],["role","alert",1,"alert","alert-danger","alert-dismissible","fade","show","float-sm-right",2,"position","absolute"],["type","button","data-dismiss","alert","aria-label","Close",1,"close"],["aria-hidden","true"],[1,"form-text","text-danger"]],template:function(e,n){1&e&&(l.Sb(0,"div",0),l.zc(1,c,5,0,"div",1),l.Sb(2,"div",2),l.Sb(3,"form",3),l.ec("ngSubmit",(function(){return n.registrar()})),l.Sb(4,"div",4),l.Ob(5,"img",5),l.Sb(6,"h1",6),l.Bc(7,"Registrarse"),l.Rb(),l.Rb(),l.Sb(8,"div",7),l.Ob(9,"input",8),l.Sb(10,"label",9),l.Bc(11,"Nombre"),l.Rb(),l.zc(12,b,2,0,"small",10),l.Rb(),l.Sb(13,"div",7),l.Ob(14,"input",11),l.Sb(15,"label",12),l.Bc(16,"Correo"),l.Rb(),l.zc(17,m,2,0,"small",10),l.Rb(),l.Sb(18,"div",7),l.Ob(19,"input",13),l.Sb(20,"label",14),l.Bc(21,"Contrase\xf1a"),l.Rb(),l.zc(22,u,2,0,"small",10),l.Rb(),l.Sb(23,"div",15),l.Sb(24,"a",16),l.Bc(25," Ya tienes cuenta? / Ingresar"),l.Rb(),l.Rb(),l.Sb(26,"button",17),l.Bc(27,"Crear cuenta"),l.Rb(),l.Rb(),l.Rb(),l.Sb(28,"div",18),l.Sb(29,"a",19),l.Bc(30,"Ver portafolio"),l.Rb(),l.Rb(),l.Rb()),2&e&&(l.Ab(1),l.lc("ngIf",n.registro),l.Ab(2),l.lc("formGroup",n.formulario),l.Ab(6),l.Fb("is-invalid",n.nombreNoValido),l.Ab(3),l.lc("ngIf",n.nombreNoValido),l.Ab(2),l.Fb("is-invalid",n.emailNoValido),l.Ab(3),l.lc("ngIf",n.emailNoValido),l.Ab(2),l.Fb("is-invalid",n.passwordNoValido),l.Ab(3),l.lc("ngIf",n.passwordNoValido))},directives:[t.k,r.p,r.i,r.d,r.a,r.h,r.c,r.l,a.d],styles:[".container-login[_ngcontent-%COMP%]{background:#a10ee6}.login[_ngcontent-%COMP%]{display:flex;align-items:center;padding-top:40px;padding-bottom:40px}.form-signin[_ngcontent-%COMP%]{width:100%;max-width:400px;padding:15px;margin:auto;background-color:#f5f5f5;border-radius:2em 1em 4em/.5em 3em}.form-label-group[_ngcontent-%COMP%]{position:relative;margin-bottom:1rem}.form-label-group[_ngcontent-%COMP%] > input[_ngcontent-%COMP%], .form-label-group[_ngcontent-%COMP%] > label[_ngcontent-%COMP%]{height:3.125rem;padding:.75rem}.form-label-group[_ngcontent-%COMP%] > label[_ngcontent-%COMP%]{position:absolute;top:0;left:0;display:block;width:100%;margin-bottom:0;line-height:1.5;color:#495057;pointer-events:none;cursor:text;border:1px solid transparent;border-radius:.25rem;transition:all .1s ease-in-out}.ruta-home[_ngcontent-%COMP%]{font-size:20px}.form-label-group[_ngcontent-%COMP%] input[_ngcontent-%COMP%]::-ms-input-placeholder{color:transparent}.form-label-group[_ngcontent-%COMP%] input[_ngcontent-%COMP%]::-moz-placeholder{color:transparent}.form-label-group[_ngcontent-%COMP%] input[_ngcontent-%COMP%]::placeholder{color:transparent}.form-label-group[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:not(:placeholder-shown){padding-top:1.25rem;padding-bottom:.25rem}.form-label-group[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:not(:placeholder-shown) ~ label[_ngcontent-%COMP%]{padding-top:.25rem;padding-bottom:.25rem;font-size:12px;color:#777}@supports (-ms-ime-align:auto){.form-label-group[_ngcontent-%COMP%] > label[_ngcontent-%COMP%]{display:none}.form-label-group[_ngcontent-%COMP%] input[_ngcontent-%COMP%]::-ms-input-placeholder{color:#777}}@media (-ms-high-contrast:active),(-ms-high-contrast:none){.form-label-group[_ngcontent-%COMP%] > label[_ngcontent-%COMP%]{display:none}.form-label-group[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:-ms-input-placeholder{color:#777}}"]}),p)}],h=((g=function e(){_classCallCheck(this,e)}).\u0275mod=l.Lb({type:g}),g.\u0275inj=l.Kb({factory:function(e){return new(e||g)},imports:[[a.e.forChild(f)],a.e]}),g),C=((d=function e(){_classCallCheck(this,e)}).\u0275mod=l.Lb({type:d}),d.\u0275inj=l.Kb({factory:function(e){return new(e||d)},imports:[[t.c,h,r.k]]}),d)}}]);