PageSourceSearch

https://www.alsa.ma/o/com.babel.alsa.ma.general/portlets/login/cod…/main.bundle.js?t=1762171312000

js alsa.ma collected 2026-10-02 18:06:58 UTC 32,364 bytes, 474 lines download raw bytes

1webpackJsonp(["main"],{
2
3/***/ "./src/$$_lazy_route_resource lazy recursive":
4/***/ (function(module, exports) {
5
6function webpackEmptyAsyncContext(req) {
7	// Here Promise.resolve().then() is used instead of new Promise() to prevent
8	// uncatched exception popping up in devtools
9	return Promise.resolve().then(function() {
10		throw new Error("Cannot find module '" + req + "'.");
11	});
12}
13webpackEmptyAsyncContext.keys = function() { return []; };
14webpackEmptyAsyncContext.resolve = webpackEmptyAsyncContext;
15module.exports = webpackEmptyAsyncContext;
16webpackEmptyAsyncContext.id = "./src/$$_lazy_route_resource lazy recursive";
17
18/***/ }),
19
20/***/ "./src/app/login.component.css":
21/***/ (function(module, exports) {
22
23module.exports = ""
24
25/***/ }),
26
27/***/ "./src/app/login.component.html":
28/***/ (function(module, exports) {
29
30module.exports = "<!-- formularios de login -->\r\n<div *ngIf=\"!liferayUserNoAdmin\">\r\n\t<div id=\"lognInIcon\">\r\n\t\t<a (click)=\"toggleLoginModalWindow()\" href=\"#\" id=\"signInDropDown\" class=\"icn-user dropdown-toggle\">\r\n\t\t\t<span>{{i18nL.zz01_form_login_label}}</span>\r\n\t\t</a>\r\n\t</div>\r\n\r\n\t<div id=\"lognInPopUp\" class=\"dropdown-menu dropdown-menu-right {{modalCerrarSesionClass}}\">\r\n\t\t<!-- Login -->\r\n\t\t<div *ngIf=\"showLogIn\">\r\n\t\t\t<form id=\"loginForm\">\r\n\t\t\t\t<fieldset class=\"container-fluid\">\r\n\t\t\t\t\t<div class=\"form-row row\">\r\n\t\t\t\t\t\t<div class=\"form-group col-xs-12\">\r\n\t\t\t\t\t\t\t<label for=\"userName\">{{i18nL.form_email}}</label>\r\n\t\t\t\t\t\t\t<input name=\"{{portletName}}userName\" id=\"userName\" class=\"{{userNameClass}} form-control\"\r\n\t\t\t\t\t\t\t\ttype=\"text\" (focusout)=\"clearClass(1)\" maxlength=\"200\">\r\n\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t<div class=\"form-group col-xs-12\">\r\n\t\t\t\t\t\t\t<label for=\"userPass\">{{i18nL.zz01_form_user_pass}}</label>\r\n\t\t\t\t\t\t\t<input name=\"{{portletName}}userPass\" id=\"userPass\" class=\"{{passwordClass}} form-control\"\r\n\t\t\t\t\t\t\t\ttype=\"password\" (focusout)=\"clearClass(2)\" maxlength=\"70\">\r\n\t\t\t\t\t\t</div>\r\n\t\t\t\t\t</div>\r\n\t\t\t\t\t<!-- Ha olvidado su contraseña -->\r\n\t\t\t\t\t<div class=\"form-row row\">\r\n\t\t\t\t\t\t<div class=\"form-group col-xs-12\">\r\n\t\t\t\t\t\t\t<a href=\"#\" (click)=\"showRecoverPasswordForm()\"\r\n\t\t\t\t\t\t\t\tclass=\"login-normal-link\">{{i18nL.form_recover_password}}</a>\r\n\t\t\t\t\t\t</div>\r\n\t\t\t\t\t</div>\r\n\t\t\t\t\t<div class=\"form-row row\">\r\n\t\t\t\t\t\t<div class=\"form-group col-xs-12\">\r\n\t\t\t\t\t\t\t<button (click)=\"validateLoginForm();\"\r\n\t\t\t\t\t\t\t\tclass=\"btn btn-primary\">{{i18nL.zz01_form_login_label}}</button>\r\n\t\t\t\t\t\t</div>\r\n\t\t\t\t\t</div>\r\n\r\n\t\t\t\t\t<!-- Abrir crear nueva cuenta -->\r\n\t\t\t\t\t<div class=\"form-row row\">\r\n\t\t\t\t\t\t<div class=\"form-group col-xs-12\">\r\n\t\t\t\t\t\t\t<a href=\"#\" (click)=\"showSignUpForm()\">{{i18nL.zz01_form_login_goSignUp}}</a>\r\n\t\t\t\t\t\t</div>\r\n\t\t\t\t\t</div>\r\n\r\n\t\t\t\t</fieldset>\r\n\r\n\t\t\t</form>\r\n\t\t</div>\r\n\r\n\t\t<!-- Recover Password -->\r\n\t\t<div *ngIf=\"showRecoverPassword\">\r\n\t\t\t<form id=\"showRecoverPasswordForm\">\r\n\t\t\t\t<fieldset class=\"container-fluid\">\r\n\t\t\t\t\t<div class=\"form-row row\">\r\n\t\t\t\t\t\t<div class=\"form-group col-xs-12\">\r\n\t\t\t\t\t\t\t<label for=\"userNameRecoverPassword\">{{i18nL.form_email}}</label>\r\n\t\t\t\t\t\t\t<input name=\"{{portletName}}userNameRecoverPassword\" id=\"userNameRecoverPassword\"\r\n\t\t\t\t\t\t\t\tclass=\"{{userNameRecoverPasswordClass}} form-control\" type=\"text\"\r\n\t\t\t\t\t\t\t\t(focusout)=\"clearClass(20)\" maxlength=\"200\">\r\n\t\t\t\t\t\t</div>\r\n\t\t\t\t\t</div>\r\n\t\t\t\t\t<div class=\"form-row row\">\r\n\t\t\t\t\t\t<div class=\"form-group col-xs-12\">\r\n\t\t\t\t\t\t\t<button (click)=\"sendRecoverPassword();\"\r\n\t\t\t\t\t\t\t\tclass=\"btn btn-primary\">{{i18nL.form_enviar}}</button>\r\n\t\t\t\t\t\t</div>\r\n\t\t\t\t\t</div>\r\n\t\t\t\t\t<!-- Atras -->\r\n\t\t\t\t\t<div class=\"form-row row\">\r\n\t\t\t\t\t\t<div class=\"form-group col-xs-12\">\r\n\t\t\t\t\t\t\t<a href=\"#\" (click)=\"showLoginForm()\">{{i18nL.alsa_atras}}</a>\r\n\t\t\t\t\t\t</div>\r\n\t\t\t\t\t</div>\r\n\r\n\t\t\t\t</fieldset>\r\n\r\n\t\t\t</form>\r\n\t\t</div>\r\n\r\n\t\t<!-- Sign Up -->\r\n\t\t<div *ngIf=\"showSignUp\" id=\"sectionSignUp\">\r\n\t\t\t<small>{{i18nL.form_required_field}}</small>\r\n\r\n\t\t\t<form id=\"signUpForm\">\r\n\t\t\t\t<fieldset class=\"container-fluid\">\r\n\t\t\t\t\t<div class=\"form-row row\">\r\n\r\n\t\t\t\t\t\t<!-- email del nuevo usuario -->\r\n\t\t\t\t\t\t<div class=\"form-group col-xs-12\">\r\n\t\t\t\t\t\t\t<label for=\"signUpUserName\">{{i18nL.form_email}} <span class=\"asterisco\">*</span></label>\r\n\t\t\t\t\t\t\t<input name=\"{{portletName}}signUpUserName\" id=\"signUpUserName\"\r\n\t\t\t\t\t\t\t\tclass=\"{{signUpUserNameClass}} form-control\" type=\"email\" (focusout)=\"clearClass(3)\"\r\n\t\t\t\t\t\t\t\tmaxlength=\"200\">\r\n\t\t\t\t\t\t</div>\r\n\r\n\t\t\t\t\t\t<!-- Campo \"nombre\" -->\r\n\t\t\t\t\t\t<div class=\"form-group col-xs-12\">\r\n\t\t\t\t\t\t\t<label for=\"signUpName\">{{i18nL.form_nombre}}<span class=\"asterisco\">*</span></label>\r\n\t\t\t\t\t\t\t<input name=\"{{portletName}}signUpName\" id=\"signUpName\"\r\n\t\t\t\t\t\t\t\tclass=\"{{signUpNameClass}} form-control\" type=\"text\" (focusout)=\"clearClass(6)\"\r\n\t\t\t\t\t\t\t\tmaxlength=\"70\">\r\n\t\t\t\t\t\t</div>\r\n\r\n\t\t\t\t\t\t<!-- Campo \"apellidos\" -->\r\n\t\t\t\t\t\t<div class=\"form-group col-xs-12\">\r\n\t\t\t\t\t\t\t<label for=\"signUpSurname\">{{i18nL.form_apellidos}}<span class=\"asterisco\">*</span></label>\r\n\t\t\t\t\t\t\t<input name=\"{{portletName}}signUpSurname\" id=\"signUpSurname\"\r\n\t\t\t\t\t\t\t\tclass=\"{{signUpSurnameClass}} form-control\" type=\"text\" (focusout)=\"clearClass(7)\"\r\n\t\t\t\t\t\t\t\tmaxlength=\"70\">\r\n\t\t\t\t\t\t</div>\r\n\r\n\t\t\t\t\t\t<!-- Campo \"documento de identidad\" -->\r\n\t\t\t\t\t\t<div class=\"form-group col-xs-12\">\r\n\t\t\t\t\t\t\t<label for=\"signUpCIN\">{{i18nL.form_DNI}} <span class=\"asterisco\">*</span></label>\r\n\t\t\t\t\t\t\t<input name=\"{{portletName}}signUpCIN\" id=\"signUpCIN\" type=\"text\"\r\n\t\t\t\t\t\t\t\tclass=\"{{signUpCINClass}c} form-ontrol\" (focusout)=\"clearClass(8)\" maxlength=\"10\"\r\n\t\t\t\t\t\t\t\t(keypress)=\"omit_special_char($event)\">\r\n\t\t\t\t\t\t</div>\r\n\r\n\t\t\t\t\t\t<!-- Campo \"fecha de nacimiento\" -->\r\n\t\t\t\t\t\t<div class=\"form-group col-xs-12\">\r\n\t\t\t\t\t\t\t<label for=\"signUpBirthdate\">{{i18nL.zz01_form_signUp_birthdate}} <span\r\n\t\t\t\t\t\t\t\t\tclass=\"asterisco\">*</span></label>\r\n\t\t\t\t\t\t\t<input name=\"{{portletName}}signUpBirthdate\" id=\"signUpBirthdate\" type=\"date\"\r\n\t\t\t\t\t\t\t\tclass=\"{{dateClass}} form-control\" (focusout)=\"clearClass(9)\"\r\n\t\t\t\t\t\t\t\tmin=\"{{minDate | date:'yyyy-MM-dd'}}\" max=\"{{maxDate | date:'yyyy-MM-dd'}}\">\r\n\t\t\t\t\t\t</div>\r\n\r\n\t\t\t\t\t\t<!-- Campo \"direccion\" -->\r\n\t\t\t\t\t\t<div class=\"form-group col-xs-12\">\r\n\t\t\t\t\t\t\t<label for=\"signUpAddress\">{{i18nL.form_direccion}} <span class=\"asterisco\">*</span></label>\r\n\t\t\t\t\t\t\t<textarea rows=\"4\" cols=\"30\" id=\"signUpAddress\" name=\"{{portletName}}signUpAddress\"\r\n\t\t\t\t\t\t\t\tclass=\"{{signUpAddressClass}} form-control\" (focusout)=\"clearClass(10)\"\r\n\t\t\t\t\t\t\t\tmaxlength=\"200\"></textarea>\r\n\t\t\t\t\t\t</div>
30\r\n\r\n\t\t\t\t\t\t<!-- Campo de seleccion de ciudad -->\r\n\t\t\t\t\t\t<div class=\"form-group col-xs-12\">\r\n\t\t\t\t\t\t\t<label for=\"signUpCity\">{{i18nL.zz01_form_city}} <span class=\"asterisco\">*</span></label>\r\n\t\t\t\t\t\t\t<select name=\"{{portletName}}signUpCity\" id=\"signUpCity\" class=\"form-control select-login\">\r\n\t\t\t\t\t\t\t\t<option value=\"\" selected></option>\r\n\t\t\t\t\t\t\t\t<option value=\"1\">{{i18nL.marrakech}}</option>\r\n\t\t\t\t\t\t\t\t<option value=\"2\">{{i18nL.agadir}}</option>\r\n\t\t\t\t\t\t\t\t<option value=\"3\">{{i18nL.tanger}}</option>\r\n\t\t\t\t\t\t\t\t<option value=\"4\">{{i18nL.khouribga}}</option>\r\n\t\t\t\t\t\t\t\t<option value=\"5\">{{i18nL.zz01_rabat}}</option>\r\n\t\t\t\t\t\t\t</select>\r\n\t\t\t\t\t\t</div>\r\n\r\n\t\t\t\t\t\t<!-- Campo \"telefono\" -->\r\n\t\t\t\t\t\t<div class=\"form-group col-xs-12\">\r\n\t\t\t\t\t\t\t<label for=\"signUpPhone\">{{i18nL.form_telefono}} <span class=\"asterisco\">*</span></label>\r\n\t\t\t\t\t\t\t<input name=\"{{portletName}}signUpPhone\" class=\"{{signUpPhoneClass}} form-control\"\r\n\t\t\t\t\t\t\t\tonkeypress='return event.charCode >= 48 && event.charCode <= 57' id=\"signUpPhone\"\r\n\t\t\t\t\t\t\t\ttype=\"text\" (focusout)=\"clearClass(11)\" maxlength=\"10\">\r\n\t\t\t\t\t\t</div>\r\n\r\n\t\t\t\t\t</div>\r\n\r\n\t\t\t\t\t<!-- Boton de registro -->\r\n\t\t\t\t\t<div class=\"form-row row\">\r\n\t\t\t\t\t\t<div class=\"form-group col-xs-12\">\r\n\t\t\t\t\t\t\t<button (click)=\"validateSignUpForm();\"\r\n\t\t\t\t\t\t\t\tclass=\"btn btn-primary\">{{i18nL.zz01_form_signUp_label}}</button>\r\n\t\t\t\t\t\t</div>\r\n\t\t\t\t\t</div>\r\n\r\n\t\t\t\t\t<!-- Enlace de accion \"atras\" -->\r\n\t\t\t\t\t<div class=\"form-row row\">\r\n\t\t\t\t\t\t<div class=\"form-group col-xs-12\">\r\n\t\t\t\t\t\t\t<a href=\"#\" (click)=\"showLoginForm()\">{{i18nL.alsa_atras}}</a>\r\n\t\t\t\t\t\t</div>\r\n\t\t\t\t\t</div>\r\n\t\t\t\t</fieldset>\r\n\t\t\t</form>\r\n\t\t</div>\r\n\r\n\t\t<!-- Resultados -->\r\n\t\t<div *ngIf=\"showResponse\">\r\n\t\t\t<div>\r\n\t\t\t\t<div class=\"spinner {{responseFormSpinner}}\">\r\n\t\t\t\t\t<div></div>\r\n\t\t\t\t\t<div></div>\r\n\t\t\t\t\t<div></div>\r\n\t\t\t\t\t<div></div>\r\n\t\t\t\t</div>\r\n\r\n\t\t\t\t<div class=\"container-fluid\">\r\n\t\t\t\t\t<div class=\"form-row row\">\r\n\t\t\t\t\t\t<div class=\"form-group col-xs-12\">\r\n\t\t\t\t\t\t\t<!-- Proceso correcto -->\r\n\t\t\t\t\t\t\t<div id=\"successSendingForm\" class=\"{{successResponseForm}} c-text\">\r\n\t\t\t\t\t\t\t\t<p class=\"c-successful-text\">{{responseText}}</p>\r\n\t\t\t\t\t\t\t</div>\r\n\r\n\t\t\t\t\t\t\t<!-- Proceso erroneo -->\r\n\t\t\t\t\t\t\t<div id=\"errorSendingForm\" class=\"{{errorResponseForm}} c-text\">\r\n\t\t\t\t\t\t\t\t<p class=\"c-error-text icn-close\">{{responseText}}</p>\r\n\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t</div>\r\n\t\t\t\t\t</div>\r\n\t\t\t\t\t<div class=\"form-row row\">\r\n\t\t\t\t\t\t<div class=\"form-group col-xs-12\">\r\n\t\t\t\t\t\t\t<a href=\"#\" (click)=\"showLoginForm()\">{{i18nL.alsa_atras}}</a>\r\n\t\t\t\t\t\t</div>\r\n\t\t\t\t\t</div>\r\n\t\t\t\t</div>\r\n\r\n\t\t\t</div>\r\n\t\t</div>\r\n\r\n\t</div>\r\n</div>\r\n\r\n<!-- cierre de sesion -->\r\n<div *ngIf=\"liferayUserNoAdmin\">\r\n\t<div id=\"lognOutIcon\" class=\"icn-check\">\r\n\t\t<a href=\"#\" id=\"signOutDropDown\" (click)=\"toggleLoginModalWindow()\" class=\"icn-user dropdown-toggle\">\r\n\t\t\t<span>{{i18nL.zz01_form_login_label}}</span>\r\n\t\t</a>\r\n\t</div>\r\n\r\n\t<div id=\"lognOutPopUp\" class=\"dropdown-menu dropdown-menu-right {{modalCerrarSesionClass}}\">\r\n\t\t<div *ngIf=\"!showResponse\" id=\"sectionCerrarSesion\">\r\n\t\t\t<form id=\"redirectLogOutForm\" method=\"post\">\r\n\t\t\t\t<fieldset class=\"container-fluid\">\r\n\t\t\t\t\t<div class=\"form-row row\">\r\n\t\t\t\t\t\t<div class=\"form-group col-xs-12\">\r\n\t\t\t\t\t\t\t<ul>\r\n\t\t\t\t\t\t\t\t<!-- Enlace de ir al area privada del usuario -->\r\n\t\t\t\t\t\t\t\t<li>\r\n\t\t\t\t\t\t\t\t\t<a href=\"{{areaPrivadaURL}}\">{{i18nL.zz01_loginSignUp_ir_area_privada}}</a>\r\n\t\t\t\t\t\t\t\t</li>\r\n\r\n\t\t\t\t\t\t\t\t<!-- Enlace de cierre de sesion -->\r\n\t\t\t\t\t\t\t\t<li>\r\n\t\t\t\t\t\t\t\t\t<a (click)=\"logOutForm()\">{{i18nL.zz01_loginSignUp_close_session}}</a>\r\n\t\t\t\t\t\t\t\t</li>\r\n\t\t\t\t\t\t\t</ul>\r\n\t\t\t\t\t\t</div>\r\n\t\t\t\t\t</div>\r\n\t\t\t\t</fieldset>\r\n\t\t\t</form>\r\n\t\t</div>\r\n\t\t<!-- Resultados -->\r\n\t\t<div *ngIf=\"showResponse\">\r\n\t\t\t<div class=\"container\">\r\n\t\t\t\t<div class=\"form-group col-xs-12\">\r\n\t\t\t\t\t<div>\r\n\t\t\t\t\t\t<div class=\"spinner {{responseFormSpinner}}\">\r\n\t\t\t\t\t\t\t<div></div>\r\n\t\t\t\t\t\t\t<div></div>\r\n\t\t\t\t\t\t\t<div></div>\r\n\t\t\t\t\t\t\t<div></div>\r\n\t\t\t\t\t\t</div>\r\n\t\t\t\t\t</div>\r\n\t\t\t\t</div>\r\n\t\t\t</div>\r\n\t\t</div>\r\n\t</div>\r\n</div>"
31
32/***/ }),
33
34/***/ "./src/app/login.component.ts":
35/***/ (function(module, __webpack_exports__, __webpack_require__) {
36
37"use strict";
38/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return AppComponent; });
39/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__("./node_modules/@angular/core/esm5/core.js");
40/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_http__ = __webpack_require__("./node_modules/@angular/http/esm5/http.js");
41var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
42    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
43    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
44    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
45    return c > 3 && r && Object.defineProperty(target, key, r), r;
46};
47var __metadata = (this && this.__metadata) || function (k, v) {
48    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
49};
50var __param = (this && this.__param) || function (paramIndex, decorator) {
51    return function (target, key) { decorator(target, key, paramIndex); }
52};
53
54
55var AppComponent = /** @class */ (function () {
56    /*--------------------------------------------- Constructores ------------------------------------------------*/
57    function AppComponent(ajaxRequest) {
58        this.ajaxRequest = ajaxRequest;
59        this.required_error_class = 'error-input';
60        this.i18nL = i18nVS;
61        this.liferayUserNoAdmin = liferayUserNoAdmin;
62        this.MarruecosLogout = MarruecosLogout;
63        this.userNameClass = '';
64        this.passwordClass = '';
65        this.signUpUserNameClass = '';
66        this.signUpNameClass = '';
67        this.signUpSurnameClass = '';
68        this.signUpCINClass = '';
69        this.dateClass = '';
70        this.signUpAddressClass = '';
71        this.signUpCityClass = '';
72        this.signUpPhoneClass = '';
73        this.userNameRecoverPasswordClass = '';
74        this.showLogIn = true;
75        this.showSignUp = false;
76        this.showResponse = false;
77        this.showRecoverPassword = false;
78        this.checkResultado = null;
79        this.modalCerrarSesionClass = 'invisible';
80        this.responseFormSpinner = "";
81        this.errorResponseForm = "invisible";
82        this.successResponseForm = "invisible";
83        this.responseText = "";
84        this.responseMapKey = 0;
85        // Controlamos las fechas minimas y maximas de la fecha de nacimiento
86        this.maxDate = new Date();
87        this.minDate = new Date();
88        this.onWebServiceError = new __WEBPACK_IMPORTED_MODULE_0__angular_core__["t" /* EventEmitter */]();
89    }
90    /*----------------------------------------------- Funciones ----------------------------------------------------*/
91    AppComponent.prototype.toggleLoginModalWindow = function () {
92        showLoginPopUp = !showLoginPopUp;
93    };
94    AppComponent.prototype.toggleLoginModalWindowCorrutine = function () {
95        var _this = this;
96        if (showLoginPopUp) {
97            this.modalCerrarSesionClass = 'visible';
98        }
99        else {
100            this.modalCerrarSesionClass = 'invisible';
101        }
102        setTimeout(function () { return _this.toggleLoginModalWindowCorrutine(); }, 250);
103    };
104    AppComponent.prototype.clearClass = function (input) {
105        switch (input) {
106            case 1: {
107                if (this.userNameInput.value.trim() !== '') {
108                    this.userNameClass = '';
109                }
110                break;
111            }
112            case 2: {
113                if (this.userPassInput.value.trim() !== '') {
114                    this.passwordClass = '';
115                }
116                break;
117            }
118            case 3: {
119                if (this.signUpUserNameInput.value.trim() !== '') {
120                    this.signUpUserNameClass = '';
121                }
122                break;
123            }
124            case 6: {
125                if (this.signUpNameInput.value.trim() !== '') {
126                    this.signUpNameClass = '';
127                }
128                break;
129            }
130            case 7: {
131                if (this.signUpSurnameInput.value.trim() !== '') {
132                    this.signUpSurnameClass = '';
133                }
134                break;
135            }
136            case 8: {
137                if (this.signUpCINInput.value.trim() !== '') {
138                    this.signUpCINClass = '';
139                }
140                break;
141            }
142            case 9: {
143                if (this.signUpBirthdateInput.value.trim() !== '') {
144                    this.dateClass = '';
145                }
146                break;
147            }
148            case 10: {
149                if (this.signUpAddressInput.value.trim() !== '') {
150                    this.signUpAddressClass = '';
151                }
152                break;
153            }
154            case 11: {
155                if (this.signUpPhoneInput.value.trim() !== '') {
156                    this.signUpPhoneClass = '';
157                }
158                break;
159            }
160            case 20: {
161                if (this.userNameRecoverPasswordInput.value.trim() !== '') {
162                    this.userNameRecoverPasswordInput = '';
163                }
164                break;
165            }
166            default: {
167                console.log("Clear input undefined");
168                break;
169            }
170        }
171    };
172    AppComponent.prototype.validateLoginForm = function () {
173        var formularioValidado = true;
174        if (this.userNameInput.value.trim() === '') {
175            this.userNameInput.placeholder = this.i18nL.form_campoObligatorio;
176            this.userNameClass = this.required_error_class;
177            formularioValidado = false;
178        }
179        if (this.userPassInput.value.trim() === '') {
180            this.userPassInput.placeholder = this.i18nL.form_campoObligatorio;
181            this.passwordClass = this.required_error_class;
182            formularioValidado = false;
183        }
184        // Si el formulario valida lo mandamos por ajax
185        if (formularioValidado) {
186            this.showResponseForm();
187            this.responseMapKey = sendFormFunction("loginForm", MarruecosLogin);
188        }
189        // Evitamos que el formulario se envie
190        return false;
191    };
192    AppComponent.prototype.validateSignUpForm = function () {
193        var formularioValidado = true;
194        if (this.signUpUserNameInput.value.trim() === '') {
195            this.signUpUserNameInput.placeholder = this.i18nL.form_campoObligatorio;
196            this.signUpUserNameClass = this.required_error_class;
197            formularioValidado = false;
198        }
199        if (this.signUpNameInput.value.trim() === '') {
200            this.signUpNameInput.placeholder = this.i18nL.form_campoObligatorio;
201            this.signUpNameClass = this.required_error_class;
202            formularioValidado = false;
203        }
204        if (this.signUpSurnameInput.value.trim() === '') {
205            this.signUpSurnameInput.placeholder = this.i18nL.form_campoObligatorio;
206            this.signUpSurnameClass = this.required_error_class;
207            formularioValidado = false;
208        }
209        if (this.signUpCINInput.value.trim() === '') {
210            this.signUpCINInput.placeholder = this.i18nL.form_campoObligatorio;
211            this.signUpCINClass = this.required_error_class;
212            formularioValidado = false;
213        }
214        if (this.signUpBirthdateInput.value.trim() === '') {
215            this.signUpBirthdateInput.placeholder = this.i18nL.form_campoObligatorio;
216            this.dateClass = this.required_error_class;
217            formularioValidado = false;
218        }
219        if (this.signUpAddressInput.value.trim() === '') {
220            this.signUpAddressInput.placeholder = this.i18nL.form_campoObligatorio;
221            this.signUpAddressClass = this.required_error_class;
222            formularioValidado = false;
223        }
224        if (this.signUpPhoneInput.value.trim() === '') {
225            this.signUpPhoneInput.placeholder = this.i18nL.form_campoObligatorio;
226            this.signUpPhoneClass = this.required_error_class;
227            formularioValidado = false;
228        }
229        if (this.signUpCityInput.value.trim() === '') {
230            this.signUpCityClass = this.required_error_class;
231            formularioValidado = false;
232        }
233        // Si el formulario valida lo mandamos por ajax
234        if (formularioValidado) {
235            this.showResponseForm();
236            this.responseMapKey = sendFormFunction("signUpForm", MarruecosSignUp);
237        }
238        // Evitamos que el formulario se envie
239        return false;
240    };
241    AppComponent.prototype.showRecoverPasswordForm = function () {
242        this.resetView();
243        this.showRecoverPassword = true;
244    };
245    AppComponent.prototype.sendRecoverPassword = function () {
246        // Si el formulario valida lo mandamos por ajax
247        if (this.userNameRecoverPasswordInput.value.trim() === '') {
248            this.userNameRecoverPasswordInput.placeholder = this.i18nL.form_campoObligatorio;
249            this.userNameRecoverPasswordClass = this.required_error_class;
250            return false;
251        }
252        this.responseMapKey = sendFormFunction("showRecoverPasswordForm", MarruecosSendRecoverPassword);
253        this.showResponseForm();
254        return false;
255    };
256    AppComponent.prototype.logOutForm = function () {
257        this.showResponseForm();
258        this.responseMapKey = sendFormFunction("redirectLogOutForm", MarruecosLogout);
259        // Quitamos la cookie que indicaba que estabas logueado
260        setLiferayUserWasLoggedCookie(false);
261    };
262    AppComponent.prototype.resetView = function () {
263        this.showLogIn = false;
264        this.showSignUp = false;
265        this.showRecoverPassword = false;
266        this.showResponse = false;
267    };
268    AppComponent.prototype.showSignUpForm = function () {
269        this.resetView();
270        this.showSignUp = true;
271    };
272    // cuando estamos en el formulario de registro de nuevo usuario nos permite volver al formulario de login
273    AppComponent.prototype.showLoginForm = function () {
274        this.resetView();
275        this.showLogIn = true;
276    };
277    AppComponent.prototype.showResponseForm = function () {
278        this.resetView();
279        this.showResponse = true;
280        this.checkForResponseCorutine();
281        this.responseFormSpinner = "";
282        this.successResponseForm = "invisible";
283        this.errorResponseForm = "invisible";
284        this.responseText = "";
285    };
286    AppComponent.prototype.checkForResponseCorutine = function () {
287        var _this = this;
288        if (typeof responsesMap.get(this.responseMapKey) != 'undefined' && responsesMap.get(this.responseMapKey) != "" && this.showResponse) {
289            this.responseFormSpinner = "invisible";
290            var actualResponse = JSON.parse(responsesMap.get(this.responseMapKey));
291            if (actualResponse.success != null) {
292                this.successResponseForm = "";
293                this.responseText = actualResponse.success;
294            }
295            else {
296                this.errorResponseForm = "";
297                this.responseText = actualResponse.error;
298            }
299            // ActionId para refrescar la pagina tras el logout
300            if (actualResponse.actionId == 1) {
301                location.reload();
302            }
303            // ActionId para ir al area privada tras un login satisfactorio
304            if (actualResponse.actionId == 2) {
305                location.href = actualResponse.extraInformation;
306            }
307            this.responseMapKey = -1;
308        }
309        else {
310            setTimeout(function () { return _this.checkForResponseCorutine(); }, 250);
311        }
312    };
313    /**
314     * valida objetos JSON
315     * @param res recurso a validar
316     */
317    AppComponent.prototype.validateJSON = function (res, url) {
318        try {
319            this.checkResultado = res.json();
320        }
321        catch (error) {
322            console.log(res);
323            this.errorEnElJson("Error parseando el json", url);
324        }
325    };
326    AppComponent.prototype.omit_special_char = function (event) {
327        var k = event.charCode; // k = event.keyCode;  (Both can be used)
328        return ((k > 64 && k < 91) || (k > 96 && k < 123) || k == 8 /*|| k == 32*/ || (k >= 48 && k <= 57));
329    };
330    /**
331     * Procesa errores detectados en el formato JSON
332     */
333    AppComponent.prototype.errorEnElJson = function (err, url) {
334        console.log('Error en la llamada: ' + err);
335        console.log(url);
336        this.onWebServiceError.emit(true);
337    };
338    /*--------------------------------------------- Eventos ------------------------------------------------------*/
339    AppComponent.prototype.ngOnInit = function () {
340        this.portletName = portletNameLogin;
341        this.areaPrivadaURL = areaPrivadaURL;
342        this.maxDate.setFullYear(this.maxDate.getFullYear() - 1);
343        this.minDate.setFullYear(this.minDate.getFullYear() - 100);
344        this.toggleLoginModalWindowCorrutine();
345    };
346    AppComponent.prototype.ngAfterViewChecked = function () {
347        // Inputs del login
348        this.userNameInput = document.getElementById("userName");
349        this.userPassInput = document.getElementById("userPass");
350        // Inputs del signUp
351        this.signUpUserNameInput = document.getElementById("signUpUserName");
352        this.signUpNameInput = document.getElementById("signUpName");
353        this.signUpSurnameInput = document.getElementById("signUpSurname");
354        this.signUpCINInput = document.getElementById("signUpCIN");
355        this.signUpBirthdateInput = document.getElementById("signUpBirthdate");
356        this.signUpAddressInput = document.getElementById("signUpAddress");
357        this.signUpCityInput = document.getElementById("signUpCity");
358        this.signUpPhoneInput = document.getElementById("signUpPhone");
359        this.userNameRecoverPasswordInput = document.getElementById("userNameRecoverPassword");
360        // En caso de que nos encontremos en marruecos no se pondra ninguna
361        if (this.signUpCityInput != null && this.signUpCityInput.value == "") {
362            this.signUpCityInput.value = idCiudadLiferay;
363        }
364    };
365    __decorate([
366        Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["K" /* Output */])(),
367        __metadata("design:type", __WEBPACK_IMPORTED_MODULE_0__angular_core__["t" /* EventEmitter */])
368    ], AppComponent.prototype, "onWebServiceError", void 0);
369    AppComponent = __decorate([
370        Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["m" /* Component */])({
371            selector: 'app-login-sign-up',
372            template: __webpack_require__("./src/app/login.component.html"),
373            styles: [__webpack_require__("./src/app/login.component.css")]
374        }),
375        __param(0, Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["v" /* Inject */])(__WEBPACK_IMPORTED_MODULE_1__angular_http__["a" /* Http */])),
376        __metadata("design:paramtypes", [Object])
377    ], AppComponent);
378    return AppComponent;
379}());
380
381
382
383/***/ }),
384
385/***/ "./src/app/login.module.ts":
386/***/ (function(module, __webpack_exports__, __webpack_require__) {
387
388"use strict";
389/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return AppModule; });
390/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_platform_browser__ = __webpack_require__("./node_modules/@angular/platform-browser/esm5/platform-browser.js");
391/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_core__ = __webpack_require__("./node_modules/@angular/core/esm5/core.js");
392/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__angular_http__ = __webpack_require__("./node_modules/@angular/http/esm5/http.js");
393/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__login_component__ = __webpack_require__("./src/app/login.component.ts");
394var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
395    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
396    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
397    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
398    return c > 3 && r && Object.defineProperty(target, key, r), r;
399};
400
401
402
403
404var AppModule = /** @class */ (function () {
405    function AppModule() {
406    }
407    AppModule = __decorate([
408        Object(__WEBPACK_IMPORTED_MODULE_1__angular_core__["E" /* NgModule */])({
409            declarations: [
410                __WEBPACK_IMPORTED_MODULE_3__login_component__["a" /* AppComponent */]
411            ],
412            imports: [
413                __WEBPACK_IMPORTED_MODULE_0__angular_platform_browser__["a" /* BrowserModule */],
414                __WEBPACK_IMPORTED_MODULE_2__angular_http__["b" /* HttpModule */]
415            ],
416            providers: [],
417            bootstrap: [__WEBPACK_IMPORTED_MODULE_3__login_component__["a" /* AppComponent */]]
418        })
419    ], AppModule);
420    return AppModule;
421}());
422
423
424
425/***/ }),
426
427/***/ "./src/environments/environment.ts":
428/***/ (function(module, __webpack_exports__, __webpack_require__) {
429
430"use strict";
431/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return environment; });
432// The file contents for the current environment will overwrite these during build.
433// The build system defaults to the dev environment which uses `environment.ts`, but if you do
434// `ng build --env=prod` then `environment.prod.ts` will be used instead.
435// The list of which env maps to which file can be found in `.angular-cli.json`.
436var environment = {
437    production: true
438};
439
440
441/***/ }),
442
443/***/ "./src/main.ts":
444/***/ (function(module, __webpack_exports__, __webpack_require__) {
445
446"use strict";
447Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
448/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__("./node_modules/@angular/core/esm5/core.js");
449/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_platform_browser_dynamic__ = __webpack_require__("./node_modules/@angular/platform-browser-dynamic/esm5/platform-browser-dynamic.js");
450/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__app_login_module__ = __webpack_require__("./src/app/login.module.ts");
451/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__environments_environment__ = __webpack_require__("./src/environments/environment.ts");
452
453
454
455
456if (__WEBPACK_IMPORTED_MODULE_3__environments_environment__["a" /* environment */].production) {
457    Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["_6" /* enableProdMode */])();
458}
459Object(__WEBPACK_IMPORTED_MODULE_1__angular_platform_browser_dynamic__["a" /* platformBrowserDynamic */])().bootstrapModule(__WEBPACK_IMPORTED_MODULE_2__app_login_module__["a" /* AppModule */])
460    .catch(function (err) { return console.log(err); });
461
462
463/***/ })
463,
464
465/***/ 0:
466/***/ (function(module, exports, __webpack_require__) {
467
468module.exports = __webpack_require__("./src/main.ts");
469
470
471/***/ })
472
473},[0]);
474//# sourceMappingURL=main.bundle.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.