2168 lines
160 KiB
JavaScript
2168 lines
160 KiB
JavaScript
|
|
"use strict";
|
||
|
|
(self["webpackChunkvuexy"] = self["webpackChunkvuexy"] || []).push([[478],{
|
||
|
|
|
||
|
|
/***/ 90415:
|
||
|
|
/*!***********************************************************************!*\
|
||
|
|
!*** ./src/app/main/asistente-virtual/asistente-virtual.component.ts ***!
|
||
|
|
\***********************************************************************/
|
||
|
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
||
|
|
|
||
|
|
__webpack_require__.r(__webpack_exports__);
|
||
|
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
||
|
|
/* harmony export */ "AsistenteVirtualComponent": () => (/* binding */ AsistenteVirtualComponent)
|
||
|
|
/* harmony export */ });
|
||
|
|
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ 94650);
|
||
|
|
/* harmony import */ var _services_apicore_api_service__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @services/apicore/api.service */ 89780);
|
||
|
|
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/common */ 36895);
|
||
|
|
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/forms */ 24006);
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
const _c0 = ["chatMessages"];
|
||
|
|
|
||
|
|
function AsistenteVirtualComponent_div_0_Template(rf, ctx) {
|
||
|
|
if (rf & 1) {
|
||
|
|
const _r3 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
|
||
|
|
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 2)(1, "a", 3);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function AsistenteVirtualComponent_div_0_Template_a_click_1_listener() {
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r3);
|
||
|
|
const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
|
||
|
|
return _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵresetView"](ctx_r2.chat_box());
|
||
|
|
});
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](2, "img", 4);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()();
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
function AsistenteVirtualComponent_div_1_div_2_Template(rf, ctx) {
|
||
|
|
if (rf & 1) {
|
||
|
|
const _r9 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
|
||
|
|
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 18)(1, "div", 19);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2, " Asistente Virtual ");
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "span", 20);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function AsistenteVirtualComponent_div_1_div_2_Template_span_click_3_listener() {
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r9);
|
||
|
|
const ctx_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2);
|
||
|
|
return _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵresetView"](ctx_r8.hideChat());
|
||
|
|
});
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](4, "i", 21);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()();
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "div", 22);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](6, "img", 23);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](7, "div", 24)(8, "p");
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](9, "\u00A1Hola! Soy ");
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](10, "strong");
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](11, "SANDRA ");
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](12, ", \u00BFen qu\u00E9 puedo ayudarlo?");
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()()();
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
function AsistenteVirtualComponent_div_1_div_3_div_18_Template(rf, ctx) {
|
||
|
|
if (rf & 1) {
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 36)(1, "div", 37)(2, "span", 38);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](3, "img", 39);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "div", 40);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](5);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()();
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](6, "div", 37);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](7, "br");
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](8, "span", 29);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](9, "img", 30);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](10, "div", 31);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](11);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()()();
|
||
|
|
}
|
||
|
|
|
||
|
|
if (rf & 2) {
|
||
|
|
const item_r12 = ctx.$implicit;
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](5);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", item_r12.preg, " ");
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](6);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", item_r12.resp, " ");
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
function AsistenteVirtualComponent_div_1_div_3_div_19_Template(rf, ctx) {
|
||
|
|
if (rf & 1) {
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 41)(1, "div", 42);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](2, "div", 43)(3, "div", 43)(4, "div", 43);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()();
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
function AsistenteVirtualComponent_div_1_div_3_Template(rf, ctx) {
|
||
|
|
if (rf & 1) {
|
||
|
|
const _r14 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
|
||
|
|
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 25)(1, "div", 19);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2, " Asistente Virtual ");
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "span", 20);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function AsistenteVirtualComponent_div_1_div_3_Template_span_click_3_listener() {
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r14);
|
||
|
|
const ctx_r13 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2);
|
||
|
|
return _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵresetView"](ctx_r13.hideChat());
|
||
|
|
});
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](4, "i", 21);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()();
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](5, "div", 26);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](6, "div", 27)(7, "div", 28)(8, "span", 29);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](9, "img", 30);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](10, "div", 31)(11, "p", 32);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](12, "\u00A1Hola! Soy ");
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](13, "strong");
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](14, "SANDRA IA");
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](15, ", \u00BFen qu\u00E9 puedo ayudarlo? ");
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](16, "span", 33);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](17, "|");
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()()()();
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](18, AsistenteVirtualComponent_div_1_div_3_div_18_Template, 12, 2, "div", 34);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](19, AsistenteVirtualComponent_div_1_div_3_div_19_Template, 5, 0, "div", 35);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()();
|
||
|
|
}
|
||
|
|
|
||
|
|
if (rf & 2) {
|
||
|
|
const ctx_r5 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](18);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", ctx_r5.client);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r5.hidden);
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
const _c1 = function () {
|
||
|
|
return {
|
||
|
|
standalone: true
|
||
|
|
};
|
||
|
|
};
|
||
|
|
|
||
|
|
function AsistenteVirtualComponent_div_1_Template(rf, ctx) {
|
||
|
|
if (rf & 1) {
|
||
|
|
const _r16 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
|
||
|
|
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 5)(1, "div", 6);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](2, AsistenteVirtualComponent_div_1_div_2_Template, 13, 0, "div", 7);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](3, AsistenteVirtualComponent_div_1_div_3_Template, 20, 2, "div", 8);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "div", 9)(5, "form", 10, 11)(7, "input", 12, 13);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function AsistenteVirtualComponent_div_1_Template_input_click_7_listener() {
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r16);
|
||
|
|
const ctx_r15 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
|
||
|
|
return _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵresetView"](ctx_r15.ChatMessages());
|
||
|
|
})("ngModelChange", function AsistenteVirtualComponent_div_1_Template_input_ngModelChange_7_listener($event) {
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r16);
|
||
|
|
const ctx_r17 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
|
||
|
|
return _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵresetView"](ctx_r17.msj = $event);
|
||
|
|
});
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](9, "button", 14);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function AsistenteVirtualComponent_div_1_Template_button_click_9_listener() {
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r16);
|
||
|
|
const ctx_r18 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
|
||
|
|
return _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵresetView"](ctx_r18.ChatBot());
|
||
|
|
});
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](10, "i", 15);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()();
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](11, "p", 16)(12, "a", 17);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](13, "Powered by Code-Epic Technologies");
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()()()();
|
||
|
|
}
|
||
|
|
|
||
|
|
if (rf & 2) {
|
||
|
|
const _r6 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵreference"](6);
|
||
|
|
|
||
|
|
const _r7 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵreference"](8);
|
||
|
|
|
||
|
|
const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r1.ChatWelcome);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r1.ChatMessage);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵclassProp"]("error", !_r7.valid && _r6.submitted);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngModel", ctx_r1.msj)("ngModelOptions", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpureFunction0"](6, _c1));
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
class AsistenteVirtualComponent {
|
||
|
|
apiService;
|
||
|
|
xAPI = {
|
||
|
|
funcion: '',
|
||
|
|
parametros: ''
|
||
|
|
};
|
||
|
|
chatMessages;
|
||
|
|
messages = [];
|
||
|
|
userInput = '';
|
||
|
|
status = false;
|
||
|
|
msj;
|
||
|
|
preg;
|
||
|
|
hidden = false;
|
||
|
|
msjAux;
|
||
|
|
client = [];
|
||
|
|
boot = [];
|
||
|
|
MostrarChat = false;
|
||
|
|
ChatWelcome = false;
|
||
|
|
ChatMessage = false;
|
||
|
|
|
||
|
|
constructor(apiService) {
|
||
|
|
this.apiService = apiService;
|
||
|
|
}
|
||
|
|
|
||
|
|
ngOnInit() {
|
||
|
|
this.status = true; // this.escribirComoMaquina("¡Hola! Bienvenid@ Soy SANDRA IA, ¿en qué puedo ayudarlo?.", 50, "texto-maquina");
|
||
|
|
}
|
||
|
|
|
||
|
|
ChatBot() {
|
||
|
|
this.msjAux = this.msj;
|
||
|
|
this.msj = '';
|
||
|
|
this.hidden = true;
|
||
|
|
this.xAPI.funcion = 'CHATBOOT';
|
||
|
|
this.xAPI.parametros = this.msjAux;
|
||
|
|
this.apiService.Ejecutar(this.xAPI).subscribe(data => {
|
||
|
|
// console.log(data)
|
||
|
|
if (data.Cuerpo.length > 0) {
|
||
|
|
data.Cuerpo.map(e => {
|
||
|
|
e.preg = this.msjAux;
|
||
|
|
this.client.push(e);
|
||
|
|
});
|
||
|
|
} else {
|
||
|
|
this.client.push({
|
||
|
|
resp: 'Oops lo siento, en este momento estoy presentando problemas con la conexion a internet, por favor intente mas tarde!',
|
||
|
|
preg: this.msjAux
|
||
|
|
});
|
||
|
|
}
|
||
|
|
|
||
|
|
this.hidden = false;
|
||
|
|
}, error => {
|
||
|
|
this.client.push({
|
||
|
|
resp: 'Problemas con BackEnd, porfavor contacte al administrador!',
|
||
|
|
preg: this.msjAux
|
||
|
|
});
|
||
|
|
this.hidden = false;
|
||
|
|
});
|
||
|
|
}
|
||
|
|
|
||
|
|
chat_box() {
|
||
|
|
this.client = [];
|
||
|
|
this.msj = '';
|
||
|
|
this.status = false;
|
||
|
|
this.MostrarChat = true;
|
||
|
|
this.ChatWelcome = true;
|
||
|
|
}
|
||
|
|
|
||
|
|
ChatMessages() {
|
||
|
|
this.ChatWelcome = false;
|
||
|
|
this.ChatMessage = true;
|
||
|
|
}
|
||
|
|
|
||
|
|
hideChat() {
|
||
|
|
this.client = [];
|
||
|
|
this.msj = '';
|
||
|
|
this.MostrarChat = false;
|
||
|
|
this.ChatMessage = false;
|
||
|
|
this.status = true;
|
||
|
|
}
|
||
|
|
|
||
|
|
escribirComoMaquina(texto, velocidad, tipo) {
|
||
|
|
var i = 0;
|
||
|
|
var intervalo = setInterval(function () {
|
||
|
|
document.getElementById(tipo).textContent += texto.charAt(i);
|
||
|
|
i++;
|
||
|
|
|
||
|
|
if (i >= texto.length) {
|
||
|
|
clearInterval(intervalo);
|
||
|
|
document.getElementById(tipo).innerHTML += "<br>";
|
||
|
|
this.escribirComoMaquina(texto, velocidad);
|
||
|
|
}
|
||
|
|
}, velocidad);
|
||
|
|
}
|
||
|
|
|
||
|
|
enviarMensaje() {
|
||
|
|
const mensajeUsuario = this.userInput; // Simular respuesta del chat
|
||
|
|
|
||
|
|
const respuestaChat = 'Hola, ¿en qué puedo ayudarte?';
|
||
|
|
this.messages.push(mensajeUsuario);
|
||
|
|
this.messages.push(respuestaChat);
|
||
|
|
this.userInput = '';
|
||
|
|
this.scrollChat();
|
||
|
|
}
|
||
|
|
|
||
|
|
scrollChat() {
|
||
|
|
setTimeout(() => {
|
||
|
|
const chatMessagesElement = this.chatMessages.nativeElement;
|
||
|
|
chatMessagesElement.scrollTop = chatMessagesElement.scrollHeight;
|
||
|
|
}, 100);
|
||
|
|
}
|
||
|
|
|
||
|
|
static ɵfac = function AsistenteVirtualComponent_Factory(t) {
|
||
|
|
return new (t || AsistenteVirtualComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_services_apicore_api_service__WEBPACK_IMPORTED_MODULE_0__.ApiService));
|
||
|
|
};
|
||
|
|
static ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineComponent"]({
|
||
|
|
type: AsistenteVirtualComponent,
|
||
|
|
selectors: [["app-asistente-virtual"]],
|
||
|
|
viewQuery: function AsistenteVirtualComponent_Query(rf, ctx) {
|
||
|
|
if (rf & 1) {
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵviewQuery"](_c0, 5);
|
||
|
|
}
|
||
|
|
|
||
|
|
if (rf & 2) {
|
||
|
|
let _t;
|
||
|
|
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵloadQuery"]()) && (ctx.chatMessages = _t.first);
|
||
|
|
}
|
||
|
|
},
|
||
|
|
decls: 2,
|
||
|
|
vars: 2,
|
||
|
|
consts: [["id", "chat-circle", 4, "ngIf"], ["class", "chat-box", "style", "position: auto; z-index: 1;", 4, "ngIf"], ["id", "chat-circle"], [1, "btn-whatsapp", "fondo-negro", 3, "click"], ["src", "assets/images/logo/logo.png", "width", "80%", "height", "80%", "alt", "ChatBoot"], [1, "chat-box", 2, "position", "auto", "z-index", "1"], [1, "chat-box-body"], ["class", "chat-box-welcome__header", 4, "ngIf"], ["id", "chat-box__wraper", 4, "ngIf"], [1, "chat-input-box"], [1, "chat-input__form"], ["formUsersRegister", "ngForm"], ["type", "text", "autocomplete", "off", "required", "", "id", "chat-input__text", "placeholder", "Preguntame...", 1, "chat-input__text", 3, "ngModel", "ngModelOptions", "click", "ngModelChange"], ["ChatBoot", "ngModel"], ["id", "chat-submit", 1, "chat-submit", 3, "click"], [1, "fa", "fa-send-o"], [1, "chat-box__sign"], ["href", "https://code-epic.com", "target", "_blank"], [1, "chat-box-welcome__header"], [1, "chat-box-header"], [1, "chat-box-toggle", 3, "click"], [1, "fa", "fa-minus-square-o"], ["id", "chat-box-welcome__ava"], ["src", "assets/images/logo/logo.png", 1, "chat-box-welcome_robot"], [1, "chat-box-welcome__welcome-text"], ["id", "chat-box__wraper"], [1, "chat-box-overlay"], [1, "chat-logs", 2, "overflow", "scroll", "background-image", "url('https://cdn.wallpapersafari.com/28/83/ls0Ajp.jpg')", "height", "400px"], ["id", "cm-msg-0", 1, "chat-msg", "bot", 2, "padding", "1px"], [1, "msg-avatar"], ["width", "60px", "src", "assets/images/logo/logo.png", 1, "chat-box-overlay_robot"], [1, "cm-msg-text"], [1, "maquina-escribir"], [1, "cursor"], ["class", "", 4, "ngFor", "ngForOf"], ["class", "spin-container", 4, "ngIf"], [1, ""], [1, "chat-msg", "bot"], [1, "msg-avatar-client"], ["width", "60px", "src", "assets/images/avatar.png", 1, "chat-box-overlay_robot"], [1, "cm-msg-text-client"], [1, "spin-container"], [1, "spiner"], ["aria-hidden", "true"]],
|
||
|
|
template: function AsistenteVirtualComponent_Template(rf, ctx) {
|
||
|
|
if (rf & 1) {
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](0, AsistenteVirtualComponent_div_0_Template, 3, 0, "div", 0);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](1, AsistenteVirtualComponent_div_1_Template, 14, 7, "div", 1);
|
||
|
|
}
|
||
|
|
|
||
|
|
if (rf & 2) {
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx.status);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx.MostrarChat);
|
||
|
|
}
|
||
|
|
},
|
||
|
|
dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_2__.NgForOf, _angular_common__WEBPACK_IMPORTED_MODULE_2__.NgIf, _angular_forms__WEBPACK_IMPORTED_MODULE_3__["ɵNgNoValidate"], _angular_forms__WEBPACK_IMPORTED_MODULE_3__.DefaultValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_3__.NgControlStatus, _angular_forms__WEBPACK_IMPORTED_MODULE_3__.NgControlStatusGroup, _angular_forms__WEBPACK_IMPORTED_MODULE_3__.RequiredValidator, _angular_forms__WEBPACK_IMPORTED_MODULE_3__.NgModel, _angular_forms__WEBPACK_IMPORTED_MODULE_3__.NgForm],
|
||
|
|
styles: ["@charset \"UTF-8\";\n\nhtml[_ngcontent-%COMP%], body[_ngcontent-%COMP%] {\n background: #efefef;\n height: 100%;\n font-family: \"Roboto\", \"Helvetica Neue\", Arial, sans-serif;\n}\n#center-text[_ngcontent-%COMP%] {\n display: flex;\n flex: 1;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n height: 100%;\n}\n\n.chat-circle_robot[_ngcontent-%COMP%] {\n margin-left: 3.5px;\n margin-top: 3.5px;\n}\n.chat-box-overlay_robot[_ngcontent-%COMP%] {\n margin-left: -1.5px;\n margin-top: -0.5px;\n}\nchat-box-overlay_robot[_ngcontent-%COMP%] .chat-box-welcome_robot[_ngcontent-%COMP%] {\n margin-left: -50px;\n top: -10px;\n left: 50px;\n right: 50px;\n}\n\n.chat-box-welcome__company-name[_ngcontent-%COMP%], .chat-box__sign[_ngcontent-%COMP%] {\n font-family: \"Roboto\", \"Helvetica Neue\", \"Arial\", sans-serif;\n position: relative;\n}\n\n.chat-box__sign[_ngcontent-%COMP%] {\n font-size: 9px;\n line-height: 20px;\n color: #b5b5b5;\n}\n.chat-input-box[_ngcontent-%COMP%] {\n text-align: center;\n position: relative;\n}\n.btn#my-btn[_ngcontent-%COMP%] {\n background: white;\n padding-top: 13px;\n padding-bottom: 12px;\n border-radius: 45px;\n padding-right: 40px;\n padding-left: 40px;\n color: #5865C3;\n}\n\n#chat-circle[_ngcontent-%COMP%], .chat-box-welcome__header[_ngcontent-%COMP%], .chat-box-header[_ngcontent-%COMP%], .chat-msg.bot[_ngcontent-%COMP%] > .msg-avatar[_ngcontent-%COMP%] {\n background-image: linear-gradient(#1ba261 60%, #1ba261 40%);\n}\n.options-btn[_ngcontent-%COMP%] {\n border: 1px solid rgb(255, 255, 255);\n}\n.spiner[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] {\n background: rgb(0, 0, 0);\n}\n\n#chat-circle[_ngcontent-%COMP%] {\n position: fixed;\n bottom: 65px;\n right: 0px;\n width: 100px;\n height: 100px;\n border-radius: 50%;\n padding: -80px;\n cursor: pointer;\n background-image: linear-gradient(to top left, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0));\n}\n#chat-overlay[_ngcontent-%COMP%] {\n background: rgba(255, 255, 255, 0.1);\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n border-radius: 50%;\n}\n.chat-circle_robot[_ngcontent-%COMP%] {\n top: 100;\n left: 100;\n width: 80%;\n height: 80%;\n}\n.chat-box-welcome[_ngcontent-%COMP%] {\n background: #f8f8f8;\n position: fixed;\n right: 30px;\n bottom: 50px;\n width: 350px;\n max-width: 85vw;\n max-height: 100vh;\n border-radius: 3px;\n box-shadow: 0px 5px 35px 9px #ccc;\n}\n.chat-box-welcome__header[_ngcontent-%COMP%] {\n height: 420px;\n border-top-left-radius: 3px;\n border-top-right-radius: 3px;\n}\n.chat-box__header-text[_ngcontent-%COMP%] {\n color: white;\n padding-left: 10px;\n font-size: 20px;\n padding-top: 13px;\n}\n#chat-box-welcome__ava[_ngcontent-%COMP%] {\n border-radius: 50%;\n position: absolute;\n top: 98px;\n left: 124px;\n width: 200px;\n height: 200px;\n border-radius: 50%;\n color: white;\n}\n.chat-box-welcome_robot[_ngcontent-%COMP%] {\n height: 100px;\n position: absolute;\n}\n.chat-box-welcome__welcome-text[_ngcontent-%COMP%] {\n color: #fff;\n text-align: center;\n width: 80%;\n position: relative;\n top: 45%;\n left: 50%;\n transform: translateX(-50%);\n}\n.chat-box-welcome__welcome-text[_ngcontent-%COMP%] p[_ngcontent-%COMP%] {\n font-size: 20px;\n}\n\n.chat-box[_ngcontent-%COMP%] {\n background: #f8f8f8;\n position: fixed;\n right: 30px;\n bottom: 50px;\n width: 350px;\n max-width: 85vw;\n max-height: 100vh;\n border-radius: 3px;\n box-shadow: 0px 5px 35px 9px #ccc;\n}\n.chat-box-toggle[_ngcontent-%COMP%] {\n float: right;\n margin-right: 15px;\n cursor: pointer;\n}\n.chat-box-header[_ngcontent-%COMP%] {\n position: relative;\n height: 50px;\n border-top-left-radius: 3px;\n border-top-right-radius: 3px;\n color: white;\n padding-left: 10px;\n font-size: 20px;\n padding-top: 13px;\n}\n.chat-box-body[_ngcontent-%COMP%] {\n position: relative;\n height: 370px;\n height: auto;\n border-bottom: 1px solid rgba(181, 181, 181, 0.42);\n overflow
|
||
|
|
});
|
||
|
|
}
|
||
|
|
|
||
|
|
/***/ }),
|
||
|
|
|
||
|
|
/***/ 60109:
|
||
|
|
/*!********************************************************************************************************!*\
|
||
|
|
!*** ./src/app/main/pages/authentication/auth-forgot-password-v1/auth-forgot-password-v1.component.ts ***!
|
||
|
|
\********************************************************************************************************/
|
||
|
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
||
|
|
|
||
|
|
__webpack_require__.r(__webpack_exports__);
|
||
|
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
||
|
|
/* harmony export */ "AuthForgotPasswordV1Component": () => (/* binding */ AuthForgotPasswordV1Component)
|
||
|
|
/* harmony export */ });
|
||
|
|
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @angular/forms */ 24006);
|
||
|
|
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! rxjs/operators */ 7625);
|
||
|
|
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! rxjs */ 8929);
|
||
|
|
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/core */ 94650);
|
||
|
|
/* harmony import */ var _core_services_config_service__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @core/services/config.service */ 52553);
|
||
|
|
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @angular/common */ 36895);
|
||
|
|
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @angular/router */ 34793);
|
||
|
|
/* harmony import */ var _angular_flex_layout_extended__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @angular/flex-layout/extended */ 24784);
|
||
|
|
/* harmony import */ var _core_directives_core_ripple_effect_core_ripple_effect_directive__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @core/directives/core-ripple-effect/core-ripple-effect.directive */ 75287);
|
||
|
|
/* harmony import */ var _core_directives_core_feather_icons_core_feather_icons__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @core/directives/core-feather-icons/core-feather-icons */ 66279);
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
function AuthForgotPasswordV1Component_div_17_div_1_Template(rf, ctx) {
|
||
|
|
if (rf & 1) {
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "div");
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](1, "Email is required");
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
function AuthForgotPasswordV1Component_div_17_div_2_Template(rf, ctx) {
|
||
|
|
if (rf & 1) {
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "div");
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](1, "Email must be a valid email address");
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
function AuthForgotPasswordV1Component_div_17_Template(rf, ctx) {
|
||
|
|
if (rf & 1) {
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "div", 18);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](1, AuthForgotPasswordV1Component_div_17_div_1_Template, 2, 0, "div", 19);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](2, AuthForgotPasswordV1Component_div_17_div_2_Template, 2, 0, "div", 19);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
|
||
|
|
}
|
||
|
|
|
||
|
|
if (rf & 2) {
|
||
|
|
const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"]();
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](1);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", ctx_r0.f.email.errors.required);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](1);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", ctx_r0.f.email.errors.email);
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
const _c0 = function (a0) {
|
||
|
|
return {
|
||
|
|
"is-invalid": a0
|
||
|
|
};
|
||
|
|
};
|
||
|
|
|
||
|
|
class AuthForgotPasswordV1Component {
|
||
|
|
_coreConfigService;
|
||
|
|
_formBuilder; // Public
|
||
|
|
|
||
|
|
emailVar;
|
||
|
|
coreConfig;
|
||
|
|
forgotPasswordForm;
|
||
|
|
submitted = false; // Private
|
||
|
|
|
||
|
|
_unsubscribeAll;
|
||
|
|
/**
|
||
|
|
* Constructor
|
||
|
|
*
|
||
|
|
* @param {CoreConfigService} _coreConfigService
|
||
|
|
* @param {FormBuilder} _formBuilder
|
||
|
|
*
|
||
|
|
*/
|
||
|
|
|
||
|
|
constructor(_coreConfigService, _formBuilder) {
|
||
|
|
this._coreConfigService = _coreConfigService;
|
||
|
|
this._formBuilder = _formBuilder;
|
||
|
|
this._unsubscribeAll = new rxjs__WEBPACK_IMPORTED_MODULE_4__.Subject(); // Configure the layout
|
||
|
|
|
||
|
|
this._coreConfigService.config = {
|
||
|
|
layout: {
|
||
|
|
navbar: {
|
||
|
|
hidden: true
|
||
|
|
},
|
||
|
|
footer: {
|
||
|
|
hidden: true
|
||
|
|
},
|
||
|
|
menu: {
|
||
|
|
hidden: true
|
||
|
|
},
|
||
|
|
customizer: false,
|
||
|
|
enableLocalStorage: false
|
||
|
|
}
|
||
|
|
};
|
||
|
|
} // convenience getter for easy access to form fields
|
||
|
|
|
||
|
|
|
||
|
|
get f() {
|
||
|
|
return this.forgotPasswordForm.controls;
|
||
|
|
}
|
||
|
|
/**
|
||
|
|
* On Submit
|
||
|
|
*/
|
||
|
|
|
||
|
|
|
||
|
|
onSubmit() {
|
||
|
|
this.submitted = true; // stop here if form is invalid
|
||
|
|
|
||
|
|
if (this.forgotPasswordForm.invalid) {
|
||
|
|
return;
|
||
|
|
}
|
||
|
|
} // Lifecycle Hooks
|
||
|
|
// -----------------------------------------------------------------------------------------------------
|
||
|
|
|
||
|
|
/**
|
||
|
|
* On init
|
||
|
|
*/
|
||
|
|
|
||
|
|
|
||
|
|
ngOnInit() {
|
||
|
|
this.forgotPasswordForm = this._formBuilder.group({
|
||
|
|
email: ['', [_angular_forms__WEBPACK_IMPORTED_MODULE_5__.Validators.required, _angular_forms__WEBPACK_IMPORTED_MODULE_5__.Validators.email]]
|
||
|
|
}); // Subscribe to config changes
|
||
|
|
|
||
|
|
this._coreConfigService.config.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.takeUntil)(this._unsubscribeAll)).subscribe(config => {
|
||
|
|
this.coreConfig = config;
|
||
|
|
});
|
||
|
|
}
|
||
|
|
/**
|
||
|
|
* On destroy
|
||
|
|
*/
|
||
|
|
|
||
|
|
|
||
|
|
ngOnDestroy() {
|
||
|
|
// Unsubscribe from all subscriptions
|
||
|
|
this._unsubscribeAll.next();
|
||
|
|
|
||
|
|
this._unsubscribeAll.complete();
|
||
|
|
}
|
||
|
|
|
||
|
|
static ɵfac = function AuthForgotPasswordV1Component_Factory(t) {
|
||
|
|
return new (t || AuthForgotPasswordV1Component)(_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_core_services_config_service__WEBPACK_IMPORTED_MODULE_0__.CoreConfigService), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_5__.UntypedFormBuilder));
|
||
|
|
};
|
||
|
|
static ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdefineComponent"]({
|
||
|
|
type: AuthForgotPasswordV1Component,
|
||
|
|
selectors: [["app-auth-forgot-password-v1"]],
|
||
|
|
decls: 24,
|
||
|
|
vars: 7,
|
||
|
|
consts: [[1, "auth-wrapper", "auth-v1", "px-2"], [1, "auth-inner", "py-2"], [1, "card", "mb-0"], [1, "card-body"], ["href", "javascript:void(0);", 1, "brand-logo"], ["alt", "brand-logo", "height", "28", 3, "src"], [1, "brand-text", "text-primary", "ml-1"], [1, "card-title", "mb-1"], [1, "card-text", "mb-2"], [1, "auth-forgot-password-form", "mt-2", 3, "formGroup", "ngSubmit"], [1, "form-group"], ["for", "forgot-password-email", 1, "form-label"], ["type", "text", "placeholder", "john@example.com", "formControlName", "email", "aria-describedby", "forgot-password-email", "tabindex", "1", "autofocus", "", 1, "form-control", 3, "ngClass"], ["class", "invalid-feedback", 4, "ngIf"], ["tabindex", "2", "rippleEffect", "", 1, "btn", "btn-primary", "btn-block"], [1, "text-center", "mt-2"], ["routerLink", "/"], ["data-feather", "chevron-left", 1, "mb-25"], [1, "invalid-feedback"], [4, "ngIf"]],
|
||
|
|
template: function AuthForgotPasswordV1Component_Template(rf, ctx) {
|
||
|
|
if (rf & 1) {
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "div", 0)(1, "div", 1)(2, "div", 2)(3, "div", 3)(4, "a", 4);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](5, "img", 5);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](6, "h2", 6);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](7);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](8, "h4", 7);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](9, "Has olvidado tu contrase\u00F1a? \uD83D\uDD12");
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](10, "p", 8);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](11, "Ingresa tu correo electr\u00F3nico y te enviaremos instrucciones para restablecer tu contrase\u00F1a");
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](12, "form", 9);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵlistener"]("ngSubmit", function AuthForgotPasswordV1Component_Template_form_ngSubmit_12_listener() {
|
||
|
|
return ctx.onSubmit();
|
||
|
|
});
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](13, "div", 10)(14, "label", 11);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](15, "Correo electr\u00F3nico");
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](16, "input", 12);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](17, AuthForgotPasswordV1Component_div_17_Template, 3, 2, "div", 13);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](18, "button", 14);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](19, "Enviar enlace");
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](20, "p", 15)(21, "a", 16);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](22, "i", 17);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](23, " Atr\u00E1s ");
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()()()()()();
|
||
|
|
}
|
||
|
|
|
||
|
|
if (rf & 2) {
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](5);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵpropertyInterpolate"]("src", ctx.coreConfig.app.appLogoImage, _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵsanitizeUrl"]);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](2);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtextInterpolate"](ctx.coreConfig.app.appName);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](5);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("formGroup", ctx.forgotPasswordForm);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](4);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵpureFunction1"](5, _c0, ctx.submitted && ctx.f.email.errors));
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](1);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", ctx.submitted && ctx.f.email.errors);
|
||
|
|
}
|
||
|
|
},
|
||
|
|
dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_7__.NgClass, _angular_common__WEBPACK_IMPORTED_MODULE_7__.NgIf, _angular_router__WEBPACK_IMPORTED_MODULE_8__.RouterLinkWithHref, _angular_forms__WEBPACK_IMPORTED_MODULE_5__["ɵNgNoValidate"], _angular_forms__WEBPACK_IMPORTED_MODULE_5__.DefaultValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_5__.NgControlStatus, _angular_forms__WEBPACK_IMPORTED_MODULE_5__.NgControlStatusGroup, _angular_forms__WEBPACK_IMPORTED_MODULE_5__.FormGroupDirective, _angular_forms__WEBPACK_IMPORTED_MODULE_5__.FormControlName, _angular_flex_layout_extended__WEBPACK_IMPORTED_MODULE_9__.DefaultClassDirective, _core_directives_core_ripple_effect_core_ripple_effect_directive__WEBPACK_IMPORTED_MODULE_1__.RippleEffectDirective, _core_directives_core_feather_icons_core_feather_icons__WEBPACK_IMPORTED_MODULE_2__.FeatherIconDirective],
|
||
|
|
styles: [".auth-wrapper {\n display: flex;\n flex-basis: 100%;\n min-height: 100vh;\n min-height: calc(var(--vh, 1vh) * 100);\n width: 100%;\n}\n.auth-wrapper .auth-inner {\n width: 100%;\n position: relative;\n}\n.auth-wrapper.auth-v1 {\n align-items: center;\n justify-content: center;\n overflow: hidden;\n}\n.auth-wrapper.auth-v1 .auth-inner:before {\n width: 244px;\n height: 243px;\n content: \" \";\n position: absolute;\n top: -54px;\n left: -46px;\n background-image: url(\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAPQAAADzCAMAAACG9Mt0AAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAA9KADAAQAAAABAAAA8wAAAADhQHfUAAAAyVBMVEUAAAD///+AgP+AgP9mZv+AgNWAgP9tbf9gYP+AgP9xcf9mZv+AZuaAgP9dXf90dOhiYv92dv9mZu5mZv93d+53d/9paf94afCAcfFrXvJra/9mZvJzZvJzc/JoaP96b/Rqav91aupsYvV2bOt2bPVxaPZ7cfZqavZyau1waPd4aO9xafBxafh4afB1bfh4avFuZ/F2afJzZvJzZ/N0aPN0bvN3bPR0ae5yZ/R3be93bfR1au9zafBxbPVzavV0a/F0a/ZyafFwaPKZm3nTAAAAQ3RSTlMAAQIEBQYGBwgICQoKCgsLDQ0PDw8PERESExMUFBQWFxgYGhoaGxsdHSAgIiIiIyQlJygqLCwtLi8vLzAzNDU3Nzg7h9vbHgAAA9RJREFUeNrt3ftS2kAUx/Fc1gSyWsErtuJdRDQiiteolb7/QzUoTm07k4AzObuu3/MCez45yWbzT36eZ6b8erO1e1B97baadd+zocJWmg0HaXe/+uqmg2GWtkLT5Lle1m9LdhG2+1lvzuiUO1knEF81yFc1N+35m15kZOGodz1vyLx+v2Lseq/erxtZd/NuweCTtfiwaWLOD5FnsqI7+VnP3y8afnEs3Es/1+H1qvETwuq18B7e6VlwLup1ZM8kWWQBOsrmHL7GVtxvYRZYgQ4ywae61ffsqH5Lbq20bQm6ncp9P2ehJegwE/u+rl95ttSwLrVSc2ANetAU28dSa9Cp2E623bUG3d2VWmn/wBq0XCugQYMGLdVKoOJaoiuok1NdXSW1WAUfRPtRUllflaJf5ZE/O9pXVbZUPTov5c+IDqvtRwStdTgLutoxy6GnGfYb2o+1I2gd+1OiqzfLocvVE7TSDqG1mgodaqfQZbvZC9rXjqG1X45WzqFVKVpk0LLo4lGP0ZGD6KgMnTiITkrQgXYQrYNitHISrYrRsZPouBhdcxJdK0YnTqKTYrR2Eq1BgwYNGjRo0KBBgwYNGjRo0KBBgwYNGjRo0KBBgwYNGjRo0KBBgwYNGjRo0KBBgwYNGjRo0KBBgwYNGjRo0KBBgwYNGjRo0KBBgwYNGjRoh9DH59ag86ACoSYOL61B55EUQk1s3VqDzsNHhJpYe7QGncfMSHUxaliCHgcKSXVxeWQJehwdJdXF4dAS9DgkTKqLxuibFeiXODixNi7OrEC/BP+JtbE0WrYA/RrxKNfH2YUF6NegSbk+Gk87xtErN6EsWm88fzeMXpwE9EruLns/l42io4dJFLPo2/Po1w+D6IW7t9Bt2SPx3vOOMfS7eHVZtN54ulg2go56138Ct4XRunE2Ovsmjg46WeddUoUWr6WL0fCoIYgO2/2s91fstDZQjcPL0ePt5flpdXUwqW46uMrS1j95JNpQrW0dHp9UV/uT2m416/8HVGg3qzhpBjRo0KBBgwYNGjRo0KBBgwYNGjRo0KBBgwYNGjRo0KBBgwYNGjRo0KBBgwYNGjRo0KBBgwYNGjRo0KBBgwYNGjRo0KBBgwYNGjRo0KBBgwYNGjRo0KC/FDpx0pwUo2tOomvF6NhJdFyMVk6iVTE6cBIdeF9vJyvZx/I/AzuIjsrQvoNovwzt4FamSs0Ojrp80PmvoB0zh940pb7azf1yg7t0LIt978uppzbnalfucDW92ZndLPRmKweGPduYJ+zoM5/Dk+gD5NdvLhXXPp88qcUqmEH5G5JZRs6cuxwIAAAAAElFTkSuQmCC\");\n}\n@media (max-width: 575.98px) {\n .auth-wrapper.auth-v1 .auth-inner:before {\n display: none;\n }\n}\n.auth-wrapper.auth-v1 .auth-inner:after {\n width: 272px;\n height: 272px;\n content: \" \";\n position: absolute;\n bottom: -55px;\n right: -75px;\n background-image: url(\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAARAAAAEQCAMAAABP1NsnAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAABEKADAAQAAAABAAABEAAAAAAQWxS2AAAAwFBMVEUAAAD///+AgICAgP9VVaqqVf+qqv+AgL+AgP9mZsxmZv+ZZv+AgNWAgP9tbdttbf+Sbf+AYN+AgN+AgP9xceNmZv+AZuaAZv90dOh0dP9qav+AauqAav+AgP92dv9tbf+Abe2Abf93Zu53d+6AcO94afCAcfF5a+R5a/JzZuaAZvKAc/J5bed5bfOAaPN6b/R1auqAavR6ZvV6cPV2bOuAbPV7aPZ2be2AbfZ7au17avZ3Zu53b+57a+97a/d4aO9J6CoeAAAAQHRSTlMAAQICAwMDBAQFBQUGBgcHBwgICAkKCgoLCwwMDAwNDg4ODw8QERITExQUFBUVFhcYGBkZGhobHBwdHR4eHx8gJ5uMWwAAA/FJREFUeNrt2G1XEkEYxvHZNk2xHGzdbKFl0cTwgdSkCKzu7/+t4pw6sAjtjIueE/f8r3fMO35nZnbuy5gVGcvfzJe0rnTfGI+MggGJRUZnbpPIhJKt88nU53JnFULvyISY6KAv8vPj0vr2rYwiE2Z2B9J+uNYcyyQxwWZvaeGH3G4bMjsvI/kcwTC/V+7kLoahlITzQojP3ZFgsJCh7IJQzpX0QFj4uMiY18eDMZ9bZCF9OQahnK6cm/Y7js0sh/LF3Auv1PlQd3MxbdXYIQspV44EEEAAAWTNDAYYkKdJbNMsLzYueZbaZ2iM46RVbHBaiZ9Js+nHEdli42N9XuSen5hGp1CQTuOJQDRsD99N4gMSpYWapNH6IJo83CIeILZQFesEaber79NCWRoukOpNEnW0gXQqD81w6ACxhbrYde7VuFCYeA2QRCNIsgZISyNIqz6IyhPjOjNVIFYniK3dmKU6QdLaJUimEySrDZLrBMlrgxRKU7sxCw/EMe0CAggggADySJCqxixIkKpNEh6IozELD8RxjQACCCCAAPJIkKrGLEgQXqqAAEJjxrQLCCCAAEJjRmNGY8a0CwgggABCYwYIfQgggNCYMe0CAggggNCY0ZjRmDHtAgIIIIAAQmNGHwIIIDRmTLuAAAIIIDRmNGY0Zky7gAACCCCA0JjRhwACCI0Z0y4ggAACCI0ZjRmNGdMuIIAAAgggNGb0IYAAQmPGtAsIIIAAQmNGY0ZjxrQLCCCAAAIIjRl9CCCA0Jgx7QICCCCA0JjRmNGYMe0CAggggABCY0YfAgggNGZ
|
||
|
|
encapsulation: 2
|
||
|
|
});
|
||
|
|
}
|
||
|
|
|
||
|
|
/***/ }),
|
||
|
|
|
||
|
|
/***/ 60928:
|
||
|
|
/*!************************************************************************************!*\
|
||
|
|
!*** ./src/app/main/pages/authentication/auth-login-v1/auth-login-v1.component.ts ***!
|
||
|
|
\************************************************************************************/
|
||
|
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
||
|
|
|
||
|
|
__webpack_require__.r(__webpack_exports__);
|
||
|
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
||
|
|
/* harmony export */ "AuthLoginV1Component": () => (/* binding */ AuthLoginV1Component)
|
||
|
|
/* harmony export */ });
|
||
|
|
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @angular/forms */ 24006);
|
||
|
|
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! rxjs/operators */ 7625);
|
||
|
|
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! rxjs */ 8929);
|
||
|
|
/* harmony import */ var environments_environment__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! environments/environment */ 92340);
|
||
|
|
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @angular/core */ 94650);
|
||
|
|
/* harmony import */ var _services_apicore_task_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @services/apicore/task.service */ 46930);
|
||
|
|
/* harmony import */ var ng_recaptcha__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ng-recaptcha */ 94700);
|
||
|
|
/* harmony import */ var _core_services_config_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @core/services/config.service */ 52553);
|
||
|
|
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @angular/router */ 34793);
|
||
|
|
/* harmony import */ var _services_seguridad_login_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @services/seguridad/login.service */ 38072);
|
||
|
|
/* harmony import */ var ngx_toastr__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ngx-toastr */ 97185);
|
||
|
|
/* harmony import */ var _services_util_util_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @services/util/util.service */ 34380);
|
||
|
|
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! @angular/common */ 36895);
|
||
|
|
/* harmony import */ var _angular_flex_layout_extended__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! @angular/flex-layout/extended */ 24784);
|
||
|
|
/* harmony import */ var _core_directives_core_ripple_effect_core_ripple_effect_directive__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @core/directives/core-ripple-effect/core-ripple-effect.directive */ 75287);
|
||
|
|
/* harmony import */ var _core_directives_core_feather_icons_core_feather_icons__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @core/directives/core-feather-icons/core-feather-icons */ 66279);
|
||
|
|
/* harmony import */ var app_main_asistente_virtual_asistente_virtual_component__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! app/main/asistente-virtual/asistente-virtual.component */ 90415);
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
function AuthLoginV1Component_div_16_div_1_Template(rf, ctx) {
|
||
|
|
if (rf & 1) {
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](0, "div");
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](1, "Usuario es requerido");
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]();
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
function AuthLoginV1Component_div_16_Template(rf, ctx) {
|
||
|
|
if (rf & 1) {
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](0, "div", 43);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtemplate"](1, AuthLoginV1Component_div_16_div_1_Template, 2, 0, "div", 44);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]();
|
||
|
|
}
|
||
|
|
|
||
|
|
if (rf & 2) {
|
||
|
|
const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵnextContext"]();
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"](1);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵproperty"]("ngIf", ctx_r0.f.email.errors.required);
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
function AuthLoginV1Component_div_29_div_1_Template(rf, ctx) {
|
||
|
|
if (rf & 1) {
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](0, "div");
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](1, "contrase\u00F1a es requerida");
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]();
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
const _c0 = function (a0) {
|
||
|
|
return {
|
||
|
|
"d-block": a0
|
||
|
|
};
|
||
|
|
};
|
||
|
|
|
||
|
|
function AuthLoginV1Component_div_29_Template(rf, ctx) {
|
||
|
|
if (rf & 1) {
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](0, "div", 45);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtemplate"](1, AuthLoginV1Component_div_29_div_1_Template, 2, 0, "div", 44);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]();
|
||
|
|
}
|
||
|
|
|
||
|
|
if (rf & 2) {
|
||
|
|
const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵnextContext"]();
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵpureFunction1"](2, _c0, ctx_r1.submitted && ctx_r1.f.password.errors));
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"](1);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵproperty"]("ngIf", ctx_r1.f.password.errors.required);
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
const _c1 = function (a0) {
|
||
|
|
return {
|
||
|
|
"is-invalid": a0
|
||
|
|
};
|
||
|
|
};
|
||
|
|
|
||
|
|
const _c2 = function (a0) {
|
||
|
|
return {
|
||
|
|
"is-invalid error": a0
|
||
|
|
};
|
||
|
|
};
|
||
|
|
|
||
|
|
const _c3 = function (a0, a1) {
|
||
|
|
return {
|
||
|
|
"icon-eye-off": a0,
|
||
|
|
"icon-eye": a1
|
||
|
|
};
|
||
|
|
};
|
||
|
|
|
||
|
|
class AuthLoginV1Component {
|
||
|
|
taskService;
|
||
|
|
recaptchaV3Service;
|
||
|
|
_coreConfigService;
|
||
|
|
_formBuilder;
|
||
|
|
router;
|
||
|
|
loginService;
|
||
|
|
toastrService;
|
||
|
|
utilservice;
|
||
|
|
token; // Public
|
||
|
|
|
||
|
|
fechafinal;
|
||
|
|
fechaX;
|
||
|
|
build;
|
||
|
|
coreConfig;
|
||
|
|
loginForm;
|
||
|
|
submitted = false;
|
||
|
|
passwordTextType;
|
||
|
|
usuario;
|
||
|
|
clave;
|
||
|
|
loading = false;
|
||
|
|
isHidden = true;
|
||
|
|
iToken = {
|
||
|
|
token: ""
|
||
|
|
};
|
||
|
|
itk; // Private
|
||
|
|
|
||
|
|
_unsubscribeAll;
|
||
|
|
/**
|
||
|
|
* Constructor
|
||
|
|
*
|
||
|
|
* @param {CoreConfigService} _coreConfigService
|
||
|
|
* @param {FormBuilder} _formBuilder
|
||
|
|
*/
|
||
|
|
|
||
|
|
constructor(taskService, recaptchaV3Service, _coreConfigService, _formBuilder, router, loginService, toastrService, utilservice) {
|
||
|
|
this.taskService = taskService;
|
||
|
|
this.recaptchaV3Service = recaptchaV3Service;
|
||
|
|
this._coreConfigService = _coreConfigService;
|
||
|
|
this._formBuilder = _formBuilder;
|
||
|
|
this.router = router;
|
||
|
|
this.loginService = loginService;
|
||
|
|
this.toastrService = toastrService;
|
||
|
|
this.utilservice = utilservice;
|
||
|
|
|
||
|
|
if (sessionStorage.getItem("token") != undefined) {
|
||
|
|
this.router.navigate(["home"]);
|
||
|
|
}
|
||
|
|
|
||
|
|
this._unsubscribeAll = new rxjs__WEBPACK_IMPORTED_MODULE_9__.Subject(); // Configure the layout
|
||
|
|
|
||
|
|
this._coreConfigService.config = {
|
||
|
|
layout: {
|
||
|
|
navbar: {
|
||
|
|
hidden: true
|
||
|
|
},
|
||
|
|
menu: {
|
||
|
|
hidden: true
|
||
|
|
},
|
||
|
|
footer: {
|
||
|
|
hidden: true
|
||
|
|
},
|
||
|
|
customizer: false,
|
||
|
|
enableLocalStorage: false
|
||
|
|
}
|
||
|
|
};
|
||
|
|
} // convenience getter for easy access to form fields
|
||
|
|
|
||
|
|
|
||
|
|
get f() {
|
||
|
|
return this.loginForm.controls;
|
||
|
|
}
|
||
|
|
/**
|
||
|
|
* Toggle password
|
||
|
|
*/
|
||
|
|
|
||
|
|
|
||
|
|
togglePasswordTextType() {
|
||
|
|
this.passwordTextType = !this.passwordTextType;
|
||
|
|
}
|
||
|
|
|
||
|
|
version = "1.0.0";
|
||
|
|
fecha = "";
|
||
|
|
/**
|
||
|
|
* On init
|
||
|
|
*/
|
||
|
|
|
||
|
|
ngOnInit() {
|
||
|
|
this.getCurrentDate();
|
||
|
|
this.fechafinal = environments_environment__WEBPACK_IMPORTED_MODULE_0__.environment.buildDateTime;
|
||
|
|
this.fechaX = this.utilservice.FechaMoment(environments_environment__WEBPACK_IMPORTED_MODULE_0__.environment.buildDateTime);
|
||
|
|
this.build = this.utilservice.FechaMomentL(environments_environment__WEBPACK_IMPORTED_MODULE_0__.environment.buildDateTime).replace(/\//g, '.');
|
||
|
|
this.version = environments_environment__WEBPACK_IMPORTED_MODULE_0__.environment.version; // this.fecha = environment.fecha;
|
||
|
|
|
||
|
|
this.loginForm = this._formBuilder.group({
|
||
|
|
email: ["", [_angular_forms__WEBPACK_IMPORTED_MODULE_10__.Validators.required]],
|
||
|
|
password: ["", _angular_forms__WEBPACK_IMPORTED_MODULE_10__.Validators.required]
|
||
|
|
}); // Subscribe to config changes
|
||
|
|
|
||
|
|
this._coreConfigService.config.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_11__.takeUntil)(this._unsubscribeAll)).subscribe(config => {
|
||
|
|
this.coreConfig = config;
|
||
|
|
});
|
||
|
|
}
|
||
|
|
|
||
|
|
getCurrentDate() {
|
||
|
|
return new Date().toLocaleDateString(); // or format as you prefer
|
||
|
|
}
|
||
|
|
|
||
|
|
login() {
|
||
|
|
this.submitted = true; // stop here if form is invalid
|
||
|
|
|
||
|
|
if (this.loginForm.invalid) {
|
||
|
|
return;
|
||
|
|
} else {
|
||
|
|
this.loading = true;
|
||
|
|
this.loginService.getLogin(this.loginForm.value.email, this.loginForm.value.password).subscribe(itk => {
|
||
|
|
this.loading = false;
|
||
|
|
this.isHidden = false;
|
||
|
|
this.loginService.Iniciar(itk.token);
|
||
|
|
}, error => {
|
||
|
|
this.loading = false;
|
||
|
|
this.isHidden = false;
|
||
|
|
this.utilservice.AlertMini("top-end", "error", "Error al acceder a los datos de conexion del Bus Empresarial", 3000);
|
||
|
|
});
|
||
|
|
}
|
||
|
|
}
|
||
|
|
/**
|
||
|
|
* On destroy
|
||
|
|
*/
|
||
|
|
|
||
|
|
|
||
|
|
ngOnDestroy() {
|
||
|
|
this._unsubscribeAll.next();
|
||
|
|
|
||
|
|
this._unsubscribeAll.complete();
|
||
|
|
}
|
||
|
|
|
||
|
|
static ɵfac = function AuthLoginV1Component_Factory(t) {
|
||
|
|
return new (t || AuthLoginV1Component)(_angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵdirectiveInject"](_services_apicore_task_service__WEBPACK_IMPORTED_MODULE_1__.TaskService), _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵdirectiveInject"](ng_recaptcha__WEBPACK_IMPORTED_MODULE_12__.ReCaptchaV3Service), _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵdirectiveInject"](_core_services_config_service__WEBPACK_IMPORTED_MODULE_2__.CoreConfigService), _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_10__.UntypedFormBuilder), _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵdirectiveInject"](_angular_router__WEBPACK_IMPORTED_MODULE_13__.Router), _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵdirectiveInject"](_services_seguridad_login_service__WEBPACK_IMPORTED_MODULE_3__.LoginService), _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵdirectiveInject"](ngx_toastr__WEBPACK_IMPORTED_MODULE_14__.ToastrService), _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵdirectiveInject"](_services_util_util_service__WEBPACK_IMPORTED_MODULE_4__.UtilService));
|
||
|
|
};
|
||
|
|
static ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵdefineComponent"]({
|
||
|
|
type: AuthLoginV1Component,
|
||
|
|
selectors: [["app-auth-login-v1"]],
|
||
|
|
decls: 68,
|
||
|
|
vars: 24,
|
||
|
|
consts: [[1, "login__heading", "auth-wrapper", "auth-v1", "px-2"], [1, "auth-inner", "py-2"], [1, "card", "mb-0"], [1, "card-body"], ["href", "javascript:void(0);", 1, "brand-logo"], ["alt", "brand-logo", "height", "30", 3, "src"], [1, "brand-text", "text-primary", "ml-1"], [1, "card", "mb-1", "text-center"], [1, "auth-login-form", "mt-2", 3, "formGroup", "ngSubmit"], [1, "form-group"], ["for", "login-email", 1, "form-label"], ["type", "text", "formControlName", "email", "placeholder", "Usuario", "aria-describedby", "login-email", "tabindex", "1", "autofocus", "", 1, "form-control", 3, "ngClass"], ["class", "invalid-feedback", 4, "ngIf"], [1, "d-flex", "justify-content-between"], ["for", "login-password"], ["routerLink", "/authentication/forgot-password-v1"], [1, "input-group", "input-group-merge", "form-password-toggle"], ["formControlName", "password", "tabindex", "2", "placeholder", "\u00B7\u00B7\u00B7\u00B7\u00B7\u00B7\u00B7\u00B7\u00B7", "aria-describedby", "login-password", 1, "form-control", "form-control-merge", 3, "type", "ngClass"], [1, "input-group-append"], [1, "input-group-text", "cursor-pointer"], [1, "feather", "font-small-4", 3, "ngClass", "click"], ["class", "invalid-feedback", 3, "ngClass", 4, "ngIf"], [1, "custom-control", "custom-checkbox"], ["type", "checkbox", "id", "remember-me", "tabindex", "3", 1, "custom-control-input"], ["for", "remember-me", 1, "custom-control-label"], ["tabindex", "4", "rippleEffect", "", 1, "btn", "btn-primary", "btn-block"], [1, "login"], [1, "login__heading"], [1, "login__circuit-mask"], [1, "text-center", "mt-2"], ["routerLink", "/authentication/register-v1"], [1, "divider", "my-2"], [1, "divider-text"], [1, "auth-footer-btn", "d-flex", "justify-content-center"], ["href", "javascript:void(0)", 1, "btn", "btn-facebook"], ["data-feather", "facebook"], ["href", "javascript:void(0)", 1, "btn", "btn-twitter", "white"], ["data-feather", "twitter"], ["href", "javascript:void(0)", 1, "btn", "btn-google"], ["data-feather", "mail"], ["href", "javascript:void(0)", 1, "btn", "btn-github"], ["data-feather", "github"], [1, "card-text", "text-center"], [1, "invalid-feedback"], [4, "ngIf"], [1, "invalid-feedback", 3, "ngClass"]],
|
||
|
|
template: function AuthLoginV1Component_Template(rf, ctx) {
|
||
|
|
if (rf & 1) {
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](0, "div", 0)(1, "div", 1)(2, "div", 2)(3, "div", 3)(4, "a", 4);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelement"](5, "img", 5);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](6, "h2", 6);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](7);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]()();
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](8, "h2", 7)(9, "strong");
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](10, "Sandra Server");
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]()();
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](11, "form", 8);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵlistener"]("ngSubmit", function AuthLoginV1Component_Template_form_ngSubmit_11_listener() {
|
||
|
|
return ctx.login();
|
||
|
|
});
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](12, "div", 9)(13, "label", 10);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](14, "Usuario");
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]();
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelement"](15, "input", 11);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtemplate"](16, AuthLoginV1Component_div_16_Template, 2, 1, "div", 12);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]();
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](17, "div", 9)(18, "div", 13)(19, "label", 14);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](20, "Clave");
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]();
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](21, "a", 15)(22, "small");
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](23, "Has olvidado tu contrase\u00F1a?");
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]()()();
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](24, "div", 16);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelement"](25, "input", 17);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](26, "div", 18)(27, "span", 19)(28, "i", 20);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵlistener"]("click", function AuthLoginV1Component_Template_i_click_28_listener() {
|
||
|
|
return ctx.togglePasswordTextType();
|
||
|
|
});
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]()()()();
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtemplate"](29, AuthLoginV1Component_div_29_Template, 2, 4, "div", 21);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]();
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](30, "div", 9)(31, "div", 22);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelement"](32, "input", 23);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](33, "label", 24);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](34, " Recu\u00E9rdame ");
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]()()();
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](35, "button", 25);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](36, "Iniciar Sesi\u00F3n");
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]()();
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](37, "div", 26);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelement"](38, "h1", 27)(39, "span", 28);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]();
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](40, "p", 29)(41, "span");
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](42, "Nuevo en nuestra plataforma?");
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]();
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](43, "a", 30)(44, "span");
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](45, "\u00A0Crea una cuenta");
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]()()();
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](46, "div", 31)(47, "div", 32);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](48, "o");
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]()();
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](49, "div", 33)(50, "a", 34);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelement"](51, "i", 35);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]();
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](52, "a", 36);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelement"](53, "i", 37);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]();
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](54, "a", 38);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelement"](55, "i", 39);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]();
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](56, "a", 40);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelement"](57, "i", 41);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]()();
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](58, "div", 31)(59, "p", 42)(60, "small");
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](61);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵpipe"](62, "date");
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelement"](63, "br");
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](64);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelement"](65, "br");
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](66);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]()()()()();
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelement"](67, "app-asistente-virtual");
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]()();
|
||
|
|
}
|
||
|
|
|
||
|
|
if (rf & 2) {
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"](5);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵpropertyInterpolate"]("src", ctx.coreConfig.app.appLogoImage, _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵsanitizeUrl"]);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"](2);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtextInterpolate1"]("", ctx.coreConfig.app.appName, " Technologies");
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"](4);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵproperty"]("formGroup", ctx.loginForm);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"](4);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵpureFunction1"](17, _c1, ctx.submitted && ctx.f.email.errors));
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"](1);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵproperty"]("ngIf", ctx.submitted && ctx.f.email.errors);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"](9);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵproperty"]("type", ctx.passwordTextType ? "text" : "password")("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵpureFunction1"](19, _c2, ctx.submitted && ctx.f.password.errors));
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"](3);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵpureFunction2"](21, _c3, ctx.passwordTextType, !ctx.passwordTextType));
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"](1);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵproperty"]("ngIf", ctx.submitted && ctx.f.password.errors);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"](32);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtextInterpolate3"](" ", "\u00A9", " ", ctx.coreConfig.app.appName, " ", _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵpipeBind2"](62, 14, ctx.getCurrentDate(), "yyyy"), " - Todos los derechos reservados ");
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"](3);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtextInterpolate1"](" ", ctx.version, " ");
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"](2);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtextInterpolate1"](" Build: ", ctx.fechaX, " ");
|
||
|
|
}
|
||
|
|
},
|
||
|
|
dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_15__.NgClass, _angular_common__WEBPACK_IMPORTED_MODULE_15__.NgIf, _angular_router__WEBPACK_IMPORTED_MODULE_13__.RouterLinkWithHref, _angular_forms__WEBPACK_IMPORTED_MODULE_10__["ɵNgNoValidate"], _angular_forms__WEBPACK_IMPORTED_MODULE_10__.DefaultValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_10__.NgControlStatus, _angular_forms__WEBPACK_IMPORTED_MODULE_10__.NgControlStatusGroup, _angular_forms__WEBPACK_IMPORTED_MODULE_10__.FormGroupDirective, _angular_forms__WEBPACK_IMPORTED_MODULE_10__.FormControlName, _angular_flex_layout_extended__WEBPACK_IMPORTED_MODULE_16__.DefaultClassDirective, _core_directives_core_ripple_effect_core_ripple_effect_directive__WEBPACK_IMPORTED_MODULE_5__.RippleEffectDirective, _core_directives_core_feather_icons_core_feather_icons__WEBPACK_IMPORTED_MODULE_6__.FeatherIconDirective, app_main_asistente_virtual_asistente_virtual_component__WEBPACK_IMPORTED_MODULE_7__.AsistenteVirtualComponent, _angular_common__WEBPACK_IMPORTED_MODULE_15__.DatePipe],
|
||
|
|
styles: [".auth-wrapper {\n display: flex;\n flex-basis: 100%;\n min-height: 100vh;\n min-height: calc(var(--vh, 1vh) * 100);\n width: 100%;\n}\n.auth-wrapper .auth-inner {\n width: 100%;\n position: relative;\n}\n.auth-wrapper.auth-v1 {\n align-items: center;\n justify-content: center;\n overflow: hidden;\n}\n.auth-wrapper.auth-v1 .auth-inner:before {\n width: 244px;\n height: 243px;\n content: \" \";\n position: absolute;\n top: -54px;\n left: -46px;\n background-image: url(\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAPQAAADzCAMAAACG9Mt0AAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAA9KADAAQAAAABAAAA8wAAAADhQHfUAAAAyVBMVEUAAAD///+AgP+AgP9mZv+AgNWAgP9tbf9gYP+AgP9xcf9mZv+AZuaAgP9dXf90dOhiYv92dv9mZu5mZv93d+53d/9paf94afCAcfFrXvJra/9mZvJzZvJzc/JoaP96b/Rqav91aupsYvV2bOt2bPVxaPZ7cfZqavZyau1waPd4aO9xafBxafh4afB1bfh4avFuZ/F2afJzZvJzZ/N0aPN0bvN3bPR0ae5yZ/R3be93bfR1au9zafBxbPVzavV0a/F0a/ZyafFwaPKZm3nTAAAAQ3RSTlMAAQIEBQYGBwgICQoKCgsLDQ0PDw8PERESExMUFBQWFxgYGhoaGxsdHSAgIiIiIyQlJygqLCwtLi8vLzAzNDU3Nzg7h9vbHgAAA9RJREFUeNrt3ftS2kAUx/Fc1gSyWsErtuJdRDQiiteolb7/QzUoTm07k4AzObuu3/MCez45yWbzT36eZ6b8erO1e1B97baadd+zocJWmg0HaXe/+uqmg2GWtkLT5Lle1m9LdhG2+1lvzuiUO1knEF81yFc1N+35m15kZOGodz1vyLx+v2Lseq/erxtZd/NuweCTtfiwaWLOD5FnsqI7+VnP3y8afnEs3Es/1+H1qvETwuq18B7e6VlwLup1ZM8kWWQBOsrmHL7GVtxvYRZYgQ4ywae61ffsqH5Lbq20bQm6ncp9P2ehJegwE/u+rl95ttSwLrVSc2ANetAU28dSa9Cp2E623bUG3d2VWmn/wBq0XCugQYMGLdVKoOJaoiuok1NdXSW1WAUfRPtRUllflaJf5ZE/O9pXVbZUPTov5c+IDqvtRwStdTgLutoxy6GnGfYb2o+1I2gd+1OiqzfLocvVE7TSDqG1mgodaqfQZbvZC9rXjqG1X45WzqFVKVpk0LLo4lGP0ZGD6KgMnTiITkrQgXYQrYNitHISrYrRsZPouBhdcxJdK0YnTqKTYrR2Eq1BgwYNGjRo0KBBgwYNGjRo0KBBgwYNGjRo0KBBgwYNGjRo0KBBgwYNGjRo0KBBgwYNGjRo0KBBgwYNGjRo0KBBgwYNGjRo0KBBgwYNGjRoh9DH59ag86ACoSYOL61B55EUQk1s3VqDzsNHhJpYe7QGncfMSHUxaliCHgcKSXVxeWQJehwdJdXF4dAS9DgkTKqLxuibFeiXODixNi7OrEC/BP+JtbE0WrYA/RrxKNfH2YUF6NegSbk+Gk87xtErN6EsWm88fzeMXpwE9EruLns/l42io4dJFLPo2/Po1w+D6IW7t9Bt2SPx3vOOMfS7eHVZtN54ulg2go56138Ct4XRunE2Ovsmjg46WeddUoUWr6WL0fCoIYgO2/2s91fstDZQjcPL0ePt5flpdXUwqW46uMrS1j95JNpQrW0dHp9UV/uT2m416/8HVGg3qzhpBjRo0KBBgwYNGjRo0KBBgwYNGjRo0KBBgwYNGjRo0KBBgwYNGjRo0KBBgwYNGjRo0KBBgwYNGjRo0KBBgwYNGjRo0KBBgwYNGjRo0KBBgwYNGjRo0KC/FDpx0pwUo2tOomvF6NhJdFyMVk6iVTE6cBIdeF9vJyvZx/I/AzuIjsrQvoNovwzt4FamSs0Ojrp80PmvoB0zh940pb7azf1yg7t0LIt978uppzbnalfucDW92ZndLPRmKweGPduYJ+zoM5/Dk+gD5NdvLhXXPp88qcUqmEH5G5JZRs6cuxwIAAAAAElFTkSuQmCC\");\n}\n@media (max-width: 575.98px) {\n .auth-wrapper.auth-v1 .auth-inner:before {\n display: none;\n }\n}\n.auth-wrapper.auth-v1 .auth-inner:after {\n width: 272px;\n height: 272px;\n content: \" \";\n position: absolute;\n bottom: -55px;\n right: -75px;\n background-image: url(\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAARAAAAEQCAMAAABP1NsnAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAABEKADAAQAAAABAAABEAAAAAAQWxS2AAAAwFBMVEUAAAD///+AgICAgP9VVaqqVf+qqv+AgL+AgP9mZsxmZv+ZZv+AgNWAgP9tbdttbf+Sbf+AYN+AgN+AgP9xceNmZv+AZuaAZv90dOh0dP9qav+AauqAav+AgP92dv9tbf+Abe2Abf93Zu53d+6AcO94afCAcfF5a+R5a/JzZuaAZvKAc/J5bed5bfOAaPN6b/R1auqAavR6ZvV6cPV2bOuAbPV7aPZ2be2AbfZ7au17avZ3Zu53b+57a+97a/d4aO9J6CoeAAAAQHRSTlMAAQICAwMDBAQFBQUGBgcHBwgICAkKCgoLCwwMDAwNDg4ODw8QERITExQUFBUVFhcYGBkZGhobHBwdHR4eHx8gJ5uMWwAAA/FJREFUeNrt2G1XEkEYxvHZNk2xHGzdbKFl0cTwgdSkCKzu7/+t4pw6sAjtjIueE/f8r3fMO35nZnbuy5gVGcvfzJe0rnTfGI+MggGJRUZnbpPIhJKt88nU53JnFULvyISY6KAv8vPj0vr2rYwiE2Z2B9J+uNYcyyQxwWZvaeGH3G4bMjsvI/kcwTC/V+7kLoahlITzQojP3ZFgsJCh7IJQzpX0QFj4uMiY18eDMZ9bZCF9OQahnK6cm/Y7js0sh/LF3Auv1PlQd3MxbdXYIQspV44EEEAAAWTNDAYYkKdJbNMsLzYueZbaZ2iM46RVbHBaiZ9Js+nHEdli42N9XuSen5hGp1CQTuOJQDRsD99N4gMSpYWapNH6IJo83CIeILZQFesEaber79NCWRoukOpNEnW0gXQqD81w6ACxhbrYde7VuFCYeA2QRCNIsgZISyNIqz6IyhPjOjNVIFYniK3dmKU6QdLaJUimEySrDZLrBMlrgxRKU7sxCw/EMe0CAggggADySJCqxixIkKpNEh6IozELD8RxjQACCCCAAPJIkKrGLEgQXqqAAEJjxrQLCCCAAEJjRmNGY8a0CwgggABCYwYIfQgggNCYMe0CAggggNCY0ZjRmDHtAgIIIIAAQmNGHwIIIDRmTLuAAAIIIDRmNGY0Zky7gAACCCCA0JjRhwACCI0Z0y4ggAACCI0ZjRmNGdMuIIAAAgggNGb0IYAAQmPGtAsIIIAAQmNGY0ZjxrQLCCCAAAIIjRl9CCCA0Jgx7QICCCCA0JjRmNGYMe0CAggggABCY0YfAgggNGZ
|
||
|
|
encapsulation: 2
|
||
|
|
});
|
||
|
|
}
|
||
|
|
|
||
|
|
/***/ }),
|
||
|
|
|
||
|
|
/***/ 56436:
|
||
|
|
/*!******************************************************************************************!*\
|
||
|
|
!*** ./src/app/main/pages/authentication/auth-register-v1/auth-register-v1.component.ts ***!
|
||
|
|
\******************************************************************************************/
|
||
|
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
||
|
|
|
||
|
|
__webpack_require__.r(__webpack_exports__);
|
||
|
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
||
|
|
/* harmony export */ "AuthRegisterV1Component": () => (/* binding */ AuthRegisterV1Component)
|
||
|
|
/* harmony export */ });
|
||
|
|
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @angular/forms */ 24006);
|
||
|
|
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! rxjs/operators */ 7625);
|
||
|
|
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! rxjs */ 8929);
|
||
|
|
/* harmony import */ var environments_environment__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! environments/environment */ 92340);
|
||
|
|
/* harmony import */ var _services_apicore_api_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @services/apicore/api.service */ 89780);
|
||
|
|
/* harmony import */ var _services_seguridad_login_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @services/seguridad/login.service */ 38072);
|
||
|
|
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @angular/core */ 94650);
|
||
|
|
/* harmony import */ var _core_services_config_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @core/services/config.service */ 52553);
|
||
|
|
/* harmony import */ var _services_util_util_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @services/util/util.service */ 34380);
|
||
|
|
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @angular/router */ 34793);
|
||
|
|
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @angular/common */ 36895);
|
||
|
|
/* harmony import */ var _angular_flex_layout_extended__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @angular/flex-layout/extended */ 24784);
|
||
|
|
/* harmony import */ var _core_directives_core_ripple_effect_core_ripple_effect_directive__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @core/directives/core-ripple-effect/core-ripple-effect.directive */ 75287);
|
||
|
|
/* harmony import */ var _core_directives_core_feather_icons_core_feather_icons__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @core/directives/core-feather-icons/core-feather-icons */ 66279);
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
function AuthRegisterV1Component_div_16_div_1_Template(rf, ctx) {
|
||
|
|
if (rf & 1) {
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](0, "div");
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](1, "Usuario es requerido");
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
function AuthRegisterV1Component_div_16_Template(rf, ctx) {
|
||
|
|
if (rf & 1) {
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](0, "div", 42);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtemplate"](1, AuthRegisterV1Component_div_16_div_1_Template, 2, 0, "div", 43);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
|
||
|
|
}
|
||
|
|
|
||
|
|
if (rf & 2) {
|
||
|
|
const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"]();
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](1);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngIf", ctx_r0.f.user.errors.required);
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
function AuthRegisterV1Component_div_25_div_1_Template(rf, ctx) {
|
||
|
|
if (rf & 1) {
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](0, "div");
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](1, "Contrase\u00F1a es requerido");
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
const _c0 = function (a0) {
|
||
|
|
return {
|
||
|
|
"d-block": a0
|
||
|
|
};
|
||
|
|
};
|
||
|
|
|
||
|
|
function AuthRegisterV1Component_div_25_Template(rf, ctx) {
|
||
|
|
if (rf & 1) {
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](0, "div", 44);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtemplate"](1, AuthRegisterV1Component_div_25_div_1_Template, 2, 0, "div", 43);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
|
||
|
|
}
|
||
|
|
|
||
|
|
if (rf & 2) {
|
||
|
|
const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"]();
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵpureFunction1"](2, _c0, ctx_r1.submitted && ctx_r1.f.password.errors));
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](1);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngIf", ctx_r1.f.password.errors.required);
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
const _c1 = function (a0) {
|
||
|
|
return {
|
||
|
|
"is-invalid": a0
|
||
|
|
};
|
||
|
|
};
|
||
|
|
|
||
|
|
const _c2 = function (a0) {
|
||
|
|
return {
|
||
|
|
"is-invalid error": a0
|
||
|
|
};
|
||
|
|
};
|
||
|
|
|
||
|
|
const _c3 = function (a0, a1) {
|
||
|
|
return {
|
||
|
|
"icon-eye-off": a0,
|
||
|
|
"icon-eye": a1
|
||
|
|
};
|
||
|
|
};
|
||
|
|
|
||
|
|
class AuthRegisterV1Component {
|
||
|
|
_coreConfigService;
|
||
|
|
_formBuilder;
|
||
|
|
utilservice;
|
||
|
|
apiService;
|
||
|
|
loginService;
|
||
|
|
router; // Public
|
||
|
|
|
||
|
|
coreConfig;
|
||
|
|
passwordTextType;
|
||
|
|
registerForm;
|
||
|
|
submitted = false;
|
||
|
|
version;
|
||
|
|
fecha;
|
||
|
|
xUser = {
|
||
|
|
_id: undefined,
|
||
|
|
cedula: '',
|
||
|
|
nombre: '',
|
||
|
|
login: '',
|
||
|
|
correo: '',
|
||
|
|
clave: '',
|
||
|
|
sucursal: '',
|
||
|
|
direccion: '',
|
||
|
|
cargo: '',
|
||
|
|
telefono: '',
|
||
|
|
sistema: '',
|
||
|
|
token: '',
|
||
|
|
Perfil: undefined,
|
||
|
|
Aplicacion: [],
|
||
|
|
firmadigital: undefined
|
||
|
|
}; // Private
|
||
|
|
|
||
|
|
_unsubscribeAll;
|
||
|
|
/**
|
||
|
|
* Constructor
|
||
|
|
*
|
||
|
|
* @param {CoreConfigService} _coreConfigService
|
||
|
|
* @param {FormBuilder} _formBuilder
|
||
|
|
*/
|
||
|
|
|
||
|
|
constructor(_coreConfigService, _formBuilder, utilservice, apiService, loginService, router) {
|
||
|
|
this._coreConfigService = _coreConfigService;
|
||
|
|
this._formBuilder = _formBuilder;
|
||
|
|
this.utilservice = utilservice;
|
||
|
|
this.apiService = apiService;
|
||
|
|
this.loginService = loginService;
|
||
|
|
this.router = router;
|
||
|
|
this._unsubscribeAll = new rxjs__WEBPACK_IMPORTED_MODULE_8__.Subject(); // Configure the layout
|
||
|
|
|
||
|
|
this._coreConfigService.config = {
|
||
|
|
layout: {
|
||
|
|
navbar: {
|
||
|
|
hidden: true
|
||
|
|
},
|
||
|
|
menu: {
|
||
|
|
hidden: true
|
||
|
|
},
|
||
|
|
footer: {
|
||
|
|
hidden: true
|
||
|
|
},
|
||
|
|
customizer: false,
|
||
|
|
enableLocalStorage: false
|
||
|
|
}
|
||
|
|
};
|
||
|
|
} // convenience getter for easy access to form fields
|
||
|
|
|
||
|
|
|
||
|
|
get f() {
|
||
|
|
return this.registerForm.controls;
|
||
|
|
}
|
||
|
|
/**
|
||
|
|
* Toggle password
|
||
|
|
*/
|
||
|
|
|
||
|
|
|
||
|
|
togglePasswordTextType() {
|
||
|
|
this.passwordTextType = !this.passwordTextType;
|
||
|
|
}
|
||
|
|
/**
|
||
|
|
* On Submit
|
||
|
|
*/
|
||
|
|
|
||
|
|
|
||
|
|
onSubmit() {
|
||
|
|
this.submitted = true;
|
||
|
|
|
||
|
|
if (this.registerForm.invalid) {
|
||
|
|
return;
|
||
|
|
} else {
|
||
|
|
// this.xUser.login = this.registerForm.value.user
|
||
|
|
// this.xUser.clave = this.registerForm.value.password
|
||
|
|
// var obj = {
|
||
|
|
// "coleccion": "usuario",
|
||
|
|
// "objeto": this.xUser,
|
||
|
|
// "donde": `{\"id\":\"${this.registerForm.value.id}\"}`,
|
||
|
|
// "driver": "MGDBA",
|
||
|
|
// "upsert": true
|
||
|
|
// }
|
||
|
|
this.loginService.getCrear(this.registerForm.value.user, this.registerForm.value.clave).subscribe(data => {
|
||
|
|
this.router.navigate(['/']);
|
||
|
|
this.utilservice.AlertMini('top-end', 'success', `Usuario creado exitosamente!`, 3000);
|
||
|
|
}, error => {
|
||
|
|
this.utilservice.AlertMini('top-end', 'error', 'Error al Guardadar los Datos', 3000);
|
||
|
|
});
|
||
|
|
}
|
||
|
|
} // Lifecycle Hooks
|
||
|
|
// -----------------------------------------------------------------------------------------------------
|
||
|
|
|
||
|
|
/**
|
||
|
|
* On init
|
||
|
|
*/
|
||
|
|
|
||
|
|
|
||
|
|
ngOnInit() {
|
||
|
|
// const hash = CryptoJS.SHA256('za7896321').toString();
|
||
|
|
// console.log(hash);
|
||
|
|
this.version = environments_environment__WEBPACK_IMPORTED_MODULE_0__.environment.version;
|
||
|
|
this.fecha = environments_environment__WEBPACK_IMPORTED_MODULE_0__.environment.fecha;
|
||
|
|
this.registerForm = this._formBuilder.group({
|
||
|
|
user: ['', [_angular_forms__WEBPACK_IMPORTED_MODULE_9__.Validators.required]],
|
||
|
|
password: ['', _angular_forms__WEBPACK_IMPORTED_MODULE_9__.Validators.required]
|
||
|
|
}); // Subscribe to config changes
|
||
|
|
|
||
|
|
this._coreConfigService.config.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_10__.takeUntil)(this._unsubscribeAll)).subscribe(config => {
|
||
|
|
this.coreConfig = config;
|
||
|
|
});
|
||
|
|
}
|
||
|
|
/**
|
||
|
|
* On destroy
|
||
|
|
*/
|
||
|
|
|
||
|
|
|
||
|
|
ngOnDestroy() {
|
||
|
|
// Unsubscribe from all subscriptions
|
||
|
|
this._unsubscribeAll.next();
|
||
|
|
|
||
|
|
this._unsubscribeAll.complete();
|
||
|
|
}
|
||
|
|
|
||
|
|
static ɵfac = function AuthRegisterV1Component_Factory(t) {
|
||
|
|
return new (t || AuthRegisterV1Component)(_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵdirectiveInject"](_core_services_config_service__WEBPACK_IMPORTED_MODULE_3__.CoreConfigService), _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_9__.UntypedFormBuilder), _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵdirectiveInject"](_services_util_util_service__WEBPACK_IMPORTED_MODULE_4__.UtilService), _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵdirectiveInject"](_services_apicore_api_service__WEBPACK_IMPORTED_MODULE_1__.ApiService), _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵdirectiveInject"](_services_seguridad_login_service__WEBPACK_IMPORTED_MODULE_2__.LoginService), _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵdirectiveInject"](_angular_router__WEBPACK_IMPORTED_MODULE_11__.Router));
|
||
|
|
};
|
||
|
|
static ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵdefineComponent"]({
|
||
|
|
type: AuthRegisterV1Component,
|
||
|
|
selectors: [["app-auth-register-v1"]],
|
||
|
|
decls: 61,
|
||
|
|
vars: 18,
|
||
|
|
consts: [[1, "auth-wrapper", "auth-v1", "px-2"], [1, "auth-inner", "py-2"], [1, "card", "mb-0"], [1, "card-body"], ["href", "javascript:void(0);", 1, "brand-logo"], ["alt", "brand-logo", "height", "28", 3, "src"], [1, "brand-text", "text-primary", "ml-1"], [1, "mb-1", "text-center"], [1, "auth-register-form", "mt-2", 3, "formGroup", "ngSubmit"], [1, "form-group"], ["for", "register-email", 1, "form-label"], ["type", "text", "formControlName", "user", "placeholder", "Ingrese nombre de usuario", "aria-describedby", "register-email", "tabindex", "2", 1, "form-control", 3, "ngClass"], ["class", "invalid-feedback", 4, "ngIf"], ["for", "register-password", 1, "form-label"], [1, "input-group", "input-group-merge", "form-password-toggle"], ["formControlName", "password", "placeholder", "\u00B7\u00B7\u00B7\u00B7\u00B7\u00B7\u00B7\u00B7\u00B7\u00B7\u00B7\u00B7", "aria-describedby", "register-password", "tabindex", "3", 1, "form-control", "form-control-merge", 3, "type", "ngClass"], [1, "input-group-append"], [1, "input-group-text", "cursor-pointer"], [1, "feather", "font-small-4", 3, "ngClass", "click"], ["class", "invalid-feedback", 3, "ngClass", 4, "ngIf"], [1, "custom-control", "custom-checkbox"], ["type", "checkbox", "id", "register-privacy-policy", "tabindex", "4", 1, "custom-control-input"], ["for", "register-privacy-policy", 1, "custom-control-label"], ["href", "javascript:void(0);"], ["tabindex", "5", "rippleEffect", "", 1, "btn", "btn-primary", "btn-block"], [1, "login"], [1, "login__heading"], [1, "login__circuit-mask"], [1, "text-center", "mt-2"], ["routerLink", "/"], [1, "divider", "my-2"], [1, "divider-text"], [1, "auth-footer-btn", "d-flex", "justify-content-center"], ["href", "javascript:void(0)", 1, "btn", "btn-facebook"], ["data-feather", "facebook"], ["href", "javascript:void(0)", 1, "btn", "btn-twitter", "white"], ["data-feather", "twitter"], ["href", "javascript:void(0)", 1, "btn", "btn-google"], ["data-feather", "mail"], ["href", "javascript:void(0)", 1, "btn", "btn-github"], ["data-feather", "github"], [1, "card-text", "text-center"], [1, "invalid-feedback"], [4, "ngIf"], [1, "invalid-feedback", 3, "ngClass"]],
|
||
|
|
template: function AuthRegisterV1Component_Template(rf, ctx) {
|
||
|
|
if (rf & 1) {
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](0, "div", 0)(1, "div", 1)(2, "div", 2)(3, "div", 3)(4, "a", 4);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelement"](5, "img", 5);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](6, "h2", 6);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](7);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]()();
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](8, "h2", 7)(9, "strong");
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](10, "Sandra Server");
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]()();
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](11, "form", 8);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵlistener"]("ngSubmit", function AuthRegisterV1Component_Template_form_ngSubmit_11_listener() {
|
||
|
|
return ctx.onSubmit();
|
||
|
|
});
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](12, "div", 9)(13, "label", 10);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](14, "Nombre de Usuario");
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelement"](15, "input", 11);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtemplate"](16, AuthRegisterV1Component_div_16_Template, 2, 1, "div", 12);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](17, "div", 9)(18, "label", 13);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](19, "Contrase\u00F1a");
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](20, "div", 14);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelement"](21, "input", 15);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](22, "div", 16)(23, "span", 17)(24, "i", 18);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵlistener"]("click", function AuthRegisterV1Component_Template_i_click_24_listener() {
|
||
|
|
return ctx.togglePasswordTextType();
|
||
|
|
});
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]()()()();
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtemplate"](25, AuthRegisterV1Component_div_25_Template, 2, 4, "div", 19);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](26, "div", 9)(27, "div", 20);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelement"](28, "input", 21);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](29, "label", 22);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](30, " Acepto la ");
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](31, "a", 23);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](32, "Pol\u00EDtica de Privacidad y los T\u00E9rminos.");
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]()()()();
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](33, "button", 24);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](34, "Crear cuenta");
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]()();
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](35, "div", 25);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelement"](36, "h1", 26)(37, "span", 27);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](38, "p", 28)(39, "span");
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](40, "Ya tienes una cuenta? ");
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](41, "a", 29)(42, "span");
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](43, " Inicia sesi\u00F3n");
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]()()();
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](44, "div", 30)(45, "div", 31);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](46, "o");
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]()();
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](47, "div", 32)(48, "a", 33);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelement"](49, "i", 34);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](50, "a", 35);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelement"](51, "i", 36);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](52, "a", 37);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelement"](53, "i", 38);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](54, "a", 39);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelement"](55, "i", 40);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]()();
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](56, "p", 41)(57, "small");
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](58);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelement"](59, "br");
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](60);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]()()()()()();
|
||
|
|
}
|
||
|
|
|
||
|
|
if (rf & 2) {
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](5);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵpropertyInterpolate"]("src", ctx.coreConfig.app.appLogoImage, _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵsanitizeUrl"]);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](2);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtextInterpolate1"]("", ctx.coreConfig.app.appName, " Technologies");
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](4);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("formGroup", ctx.registerForm);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](4);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵpureFunction1"](11, _c1, ctx.submitted && ctx.f.user.errors));
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](1);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngIf", ctx.submitted && ctx.f.user.errors);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](5);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("type", ctx.passwordTextType ? "text" : "password")("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵpureFunction1"](13, _c2, ctx.submitted && ctx.f.password.errors));
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](3);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵpureFunction2"](15, _c3, ctx.passwordTextType, !ctx.passwordTextType));
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](1);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngIf", ctx.submitted && ctx.f.password.errors);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](33);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtextInterpolate1"]("Broglie ", ctx.version, " ");
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](2);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtextInterpolate1"](" ", ctx.fecha, "");
|
||
|
|
}
|
||
|
|
},
|
||
|
|
dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_12__.NgClass, _angular_common__WEBPACK_IMPORTED_MODULE_12__.NgIf, _angular_router__WEBPACK_IMPORTED_MODULE_11__.RouterLinkWithHref, _angular_forms__WEBPACK_IMPORTED_MODULE_9__["ɵNgNoValidate"], _angular_forms__WEBPACK_IMPORTED_MODULE_9__.DefaultValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_9__.NgControlStatus, _angular_forms__WEBPACK_IMPORTED_MODULE_9__.NgControlStatusGroup, _angular_forms__WEBPACK_IMPORTED_MODULE_9__.FormGroupDirective, _angular_forms__WEBPACK_IMPORTED_MODULE_9__.FormControlName, _angular_flex_layout_extended__WEBPACK_IMPORTED_MODULE_13__.DefaultClassDirective, _core_directives_core_ripple_effect_core_ripple_effect_directive__WEBPACK_IMPORTED_MODULE_5__.RippleEffectDirective, _core_directives_core_feather_icons_core_feather_icons__WEBPACK_IMPORTED_MODULE_6__.FeatherIconDirective],
|
||
|
|
styles: [".auth-wrapper {\n display: flex;\n flex-basis: 100%;\n min-height: 100vh;\n min-height: calc(var(--vh, 1vh) * 100);\n width: 100%;\n}\n.auth-wrapper .auth-inner {\n width: 100%;\n position: relative;\n}\n.auth-wrapper.auth-v1 {\n align-items: center;\n justify-content: center;\n overflow: hidden;\n}\n.auth-wrapper.auth-v1 .auth-inner:before {\n width: 244px;\n height: 243px;\n content: \" \";\n position: absolute;\n top: -54px;\n left: -46px;\n background-image: url(\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAPQAAADzCAMAAACG9Mt0AAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAA9KADAAQAAAABAAAA8wAAAADhQHfUAAAAyVBMVEUAAAD///+AgP+AgP9mZv+AgNWAgP9tbf9gYP+AgP9xcf9mZv+AZuaAgP9dXf90dOhiYv92dv9mZu5mZv93d+53d/9paf94afCAcfFrXvJra/9mZvJzZvJzc/JoaP96b/Rqav91aupsYvV2bOt2bPVxaPZ7cfZqavZyau1waPd4aO9xafBxafh4afB1bfh4avFuZ/F2afJzZvJzZ/N0aPN0bvN3bPR0ae5yZ/R3be93bfR1au9zafBxbPVzavV0a/F0a/ZyafFwaPKZm3nTAAAAQ3RSTlMAAQIEBQYGBwgICQoKCgsLDQ0PDw8PERESExMUFBQWFxgYGhoaGxsdHSAgIiIiIyQlJygqLCwtLi8vLzAzNDU3Nzg7h9vbHgAAA9RJREFUeNrt3ftS2kAUx/Fc1gSyWsErtuJdRDQiiteolb7/QzUoTm07k4AzObuu3/MCez45yWbzT36eZ6b8erO1e1B97baadd+zocJWmg0HaXe/+uqmg2GWtkLT5Lle1m9LdhG2+1lvzuiUO1knEF81yFc1N+35m15kZOGodz1vyLx+v2Lseq/erxtZd/NuweCTtfiwaWLOD5FnsqI7+VnP3y8afnEs3Es/1+H1qvETwuq18B7e6VlwLup1ZM8kWWQBOsrmHL7GVtxvYRZYgQ4ywae61ffsqH5Lbq20bQm6ncp9P2ehJegwE/u+rl95ttSwLrVSc2ANetAU28dSa9Cp2E623bUG3d2VWmn/wBq0XCugQYMGLdVKoOJaoiuok1NdXSW1WAUfRPtRUllflaJf5ZE/O9pXVbZUPTov5c+IDqvtRwStdTgLutoxy6GnGfYb2o+1I2gd+1OiqzfLocvVE7TSDqG1mgodaqfQZbvZC9rXjqG1X45WzqFVKVpk0LLo4lGP0ZGD6KgMnTiITkrQgXYQrYNitHISrYrRsZPouBhdcxJdK0YnTqKTYrR2Eq1BgwYNGjRo0KBBgwYNGjRo0KBBgwYNGjRo0KBBgwYNGjRo0KBBgwYNGjRo0KBBgwYNGjRo0KBBgwYNGjRo0KBBgwYNGjRo0KBBgwYNGjRoh9DH59ag86ACoSYOL61B55EUQk1s3VqDzsNHhJpYe7QGncfMSHUxaliCHgcKSXVxeWQJehwdJdXF4dAS9DgkTKqLxuibFeiXODixNi7OrEC/BP+JtbE0WrYA/RrxKNfH2YUF6NegSbk+Gk87xtErN6EsWm88fzeMXpwE9EruLns/l42io4dJFLPo2/Po1w+D6IW7t9Bt2SPx3vOOMfS7eHVZtN54ulg2go56138Ct4XRunE2Ovsmjg46WeddUoUWr6WL0fCoIYgO2/2s91fstDZQjcPL0ePt5flpdXUwqW46uMrS1j95JNpQrW0dHp9UV/uT2m416/8HVGg3qzhpBjRo0KBBgwYNGjRo0KBBgwYNGjRo0KBBgwYNGjRo0KBBgwYNGjRo0KBBgwYNGjRo0KBBgwYNGjRo0KBBgwYNGjRo0KBBgwYNGjRo0KBBgwYNGjRo0KC/FDpx0pwUo2tOomvF6NhJdFyMVk6iVTE6cBIdeF9vJyvZx/I/AzuIjsrQvoNovwzt4FamSs0Ojrp80PmvoB0zh940pb7azf1yg7t0LIt978uppzbnalfucDW92ZndLPRmKweGPduYJ+zoM5/Dk+gD5NdvLhXXPp88qcUqmEH5G5JZRs6cuxwIAAAAAElFTkSuQmCC\");\n}\n@media (max-width: 575.98px) {\n .auth-wrapper.auth-v1 .auth-inner:before {\n display: none;\n }\n}\n.auth-wrapper.auth-v1 .auth-inner:after {\n width: 272px;\n height: 272px;\n content: \" \";\n position: absolute;\n bottom: -55px;\n right: -75px;\n background-image: url(\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAARAAAAEQCAMAAABP1NsnAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAABEKADAAQAAAABAAABEAAAAAAQWxS2AAAAwFBMVEUAAAD///+AgICAgP9VVaqqVf+qqv+AgL+AgP9mZsxmZv+ZZv+AgNWAgP9tbdttbf+Sbf+AYN+AgN+AgP9xceNmZv+AZuaAZv90dOh0dP9qav+AauqAav+AgP92dv9tbf+Abe2Abf93Zu53d+6AcO94afCAcfF5a+R5a/JzZuaAZvKAc/J5bed5bfOAaPN6b/R1auqAavR6ZvV6cPV2bOuAbPV7aPZ2be2AbfZ7au17avZ3Zu53b+57a+97a/d4aO9J6CoeAAAAQHRSTlMAAQICAwMDBAQFBQUGBgcHBwgICAkKCgoLCwwMDAwNDg4ODw8QERITExQUFBUVFhcYGBkZGhobHBwdHR4eHx8gJ5uMWwAAA/FJREFUeNrt2G1XEkEYxvHZNk2xHGzdbKFl0cTwgdSkCKzu7/+t4pw6sAjtjIueE/f8r3fMO35nZnbuy5gVGcvfzJe0rnTfGI+MggGJRUZnbpPIhJKt88nU53JnFULvyISY6KAv8vPj0vr2rYwiE2Z2B9J+uNYcyyQxwWZvaeGH3G4bMjsvI/kcwTC/V+7kLoahlITzQojP3ZFgsJCh7IJQzpX0QFj4uMiY18eDMZ9bZCF9OQahnK6cm/Y7js0sh/LF3Auv1PlQd3MxbdXYIQspV44EEEAAAWTNDAYYkKdJbNMsLzYueZbaZ2iM46RVbHBaiZ9Js+nHEdli42N9XuSen5hGp1CQTuOJQDRsD99N4gMSpYWapNH6IJo83CIeILZQFesEaber79NCWRoukOpNEnW0gXQqD81w6ACxhbrYde7VuFCYeA2QRCNIsgZISyNIqz6IyhPjOjNVIFYniK3dmKU6QdLaJUimEySrDZLrBMlrgxRKU7sxCw/EMe0CAggggADySJCqxixIkKpNEh6IozELD8RxjQACCCCAAPJIkKrGLEgQXqqAAEJjxrQLCCCAAEJjRmNGY8a0CwgggABCYwYIfQgggNCYMe0CAggggNCY0ZjRmDHtAgIIIIAAQmNGHwIIIDRmTLuAAAIIIDRmNGY0Zky7gAACCCCA0JjRhwACCI0Z0y4ggAACCI0ZjRmNGdMuIIAAAgggNGb0IYAAQmPGtAsIIIAAQmNGY0ZjxrQLCCCAAAIIjRl9CCCA0Jgx7QICCCCA0JjRmNGYMe0CAggggABCY0YfAgggNGZ
|
||
|
|
encapsulation: 2
|
||
|
|
});
|
||
|
|
}
|
||
|
|
|
||
|
|
/***/ }),
|
||
|
|
|
||
|
|
/***/ 10667:
|
||
|
|
/*!******************************************************************************************************!*\
|
||
|
|
!*** ./src/app/main/pages/authentication/auth-reset-password-v1/auth-reset-password-v1.component.ts ***!
|
||
|
|
\******************************************************************************************************/
|
||
|
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
||
|
|
|
||
|
|
__webpack_require__.r(__webpack_exports__);
|
||
|
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
||
|
|
/* harmony export */ "AuthResetPasswordV1Component": () => (/* binding */ AuthResetPasswordV1Component)
|
||
|
|
/* harmony export */ });
|
||
|
|
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @angular/forms */ 24006);
|
||
|
|
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! rxjs/operators */ 7625);
|
||
|
|
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! rxjs */ 8929);
|
||
|
|
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/core */ 94650);
|
||
|
|
/* harmony import */ var _core_services_config_service__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @core/services/config.service */ 52553);
|
||
|
|
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @angular/common */ 36895);
|
||
|
|
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @angular/router */ 34793);
|
||
|
|
/* harmony import */ var _angular_flex_layout_extended__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @angular/flex-layout/extended */ 24784);
|
||
|
|
/* harmony import */ var _core_directives_core_ripple_effect_core_ripple_effect_directive__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @core/directives/core-ripple-effect/core-ripple-effect.directive */ 75287);
|
||
|
|
/* harmony import */ var _core_directives_core_feather_icons_core_feather_icons__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @core/directives/core-feather-icons/core-feather-icons */ 66279);
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
function AuthResetPasswordV1Component_div_22_div_1_Template(rf, ctx) {
|
||
|
|
if (rf & 1) {
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "div");
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](1, "Password is required");
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
const _c0 = function (a0) {
|
||
|
|
return {
|
||
|
|
"d-block": a0
|
||
|
|
};
|
||
|
|
};
|
||
|
|
|
||
|
|
function AuthResetPasswordV1Component_div_22_Template(rf, ctx) {
|
||
|
|
if (rf & 1) {
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "div", 25);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](1, AuthResetPasswordV1Component_div_22_div_1_Template, 2, 0, "div", 26);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
|
||
|
|
}
|
||
|
|
|
||
|
|
if (rf & 2) {
|
||
|
|
const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"]();
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵpureFunction1"](2, _c0, ctx_r0.submitted && ctx_r0.f.newPassword.errors));
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](1);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", ctx_r0.f.newPassword.errors.required);
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
function AuthResetPasswordV1Component_div_32_div_1_Template(rf, ctx) {
|
||
|
|
if (rf & 1) {
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "div");
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](1, "Password is required");
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
function AuthResetPasswordV1Component_div_32_Template(rf, ctx) {
|
||
|
|
if (rf & 1) {
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "div", 25);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](1, AuthResetPasswordV1Component_div_32_div_1_Template, 2, 0, "div", 26);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
|
||
|
|
}
|
||
|
|
|
||
|
|
if (rf & 2) {
|
||
|
|
const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"]();
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵpureFunction1"](2, _c0, ctx_r1.submitted && ctx_r1.f.confirmPassword.errors));
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](1);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", ctx_r1.f.confirmPassword.errors.required);
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
const _c1 = function (a0) {
|
||
|
|
return {
|
||
|
|
"is-invalid error": a0
|
||
|
|
};
|
||
|
|
};
|
||
|
|
|
||
|
|
const _c2 = function (a0, a1) {
|
||
|
|
return {
|
||
|
|
"icon-eye-off": a0,
|
||
|
|
"icon-eye": a1
|
||
|
|
};
|
||
|
|
};
|
||
|
|
|
||
|
|
class AuthResetPasswordV1Component {
|
||
|
|
_coreConfigService;
|
||
|
|
_formBuilder; // Public
|
||
|
|
|
||
|
|
coreConfig;
|
||
|
|
passwordTextType;
|
||
|
|
confPasswordTextType;
|
||
|
|
resetPasswordForm;
|
||
|
|
submitted = false; // Private
|
||
|
|
|
||
|
|
_unsubscribeAll;
|
||
|
|
/**
|
||
|
|
* Constructor
|
||
|
|
*
|
||
|
|
* @param {CoreConfigService} _coreConfigService
|
||
|
|
* @param {FormBuilder} _formBuilder
|
||
|
|
*/
|
||
|
|
|
||
|
|
constructor(_coreConfigService, _formBuilder) {
|
||
|
|
this._coreConfigService = _coreConfigService;
|
||
|
|
this._formBuilder = _formBuilder;
|
||
|
|
this._unsubscribeAll = new rxjs__WEBPACK_IMPORTED_MODULE_4__.Subject(); // Configure the layout
|
||
|
|
|
||
|
|
this._coreConfigService.config = {
|
||
|
|
layout: {
|
||
|
|
navbar: {
|
||
|
|
hidden: true
|
||
|
|
},
|
||
|
|
menu: {
|
||
|
|
hidden: true
|
||
|
|
},
|
||
|
|
footer: {
|
||
|
|
hidden: true
|
||
|
|
},
|
||
|
|
customizer: false,
|
||
|
|
enableLocalStorage: false
|
||
|
|
}
|
||
|
|
};
|
||
|
|
} // convenience getter for easy access to form fields
|
||
|
|
|
||
|
|
|
||
|
|
get f() {
|
||
|
|
return this.resetPasswordForm.controls;
|
||
|
|
}
|
||
|
|
/**
|
||
|
|
* Toggle password
|
||
|
|
*/
|
||
|
|
|
||
|
|
|
||
|
|
togglePasswordTextType() {
|
||
|
|
this.passwordTextType = !this.passwordTextType;
|
||
|
|
}
|
||
|
|
/**
|
||
|
|
* Toggle confirm password
|
||
|
|
*/
|
||
|
|
|
||
|
|
|
||
|
|
toggleConfPasswordTextType() {
|
||
|
|
this.confPasswordTextType = !this.confPasswordTextType;
|
||
|
|
}
|
||
|
|
/**
|
||
|
|
* On Submit
|
||
|
|
*/
|
||
|
|
|
||
|
|
|
||
|
|
onSubmit() {
|
||
|
|
this.submitted = true; // stop here if form is invalid
|
||
|
|
|
||
|
|
if (this.resetPasswordForm.invalid) {
|
||
|
|
return;
|
||
|
|
}
|
||
|
|
} // Lifecycle Hooks
|
||
|
|
// -----------------------------------------------------------------------------------------------------
|
||
|
|
|
||
|
|
/**
|
||
|
|
* On init
|
||
|
|
*/
|
||
|
|
|
||
|
|
|
||
|
|
ngOnInit() {
|
||
|
|
this.resetPasswordForm = this._formBuilder.group({
|
||
|
|
newPassword: ['', [_angular_forms__WEBPACK_IMPORTED_MODULE_5__.Validators.required]],
|
||
|
|
confirmPassword: ['', [_angular_forms__WEBPACK_IMPORTED_MODULE_5__.Validators.required]]
|
||
|
|
}); // Subscribe to config changes
|
||
|
|
|
||
|
|
this._coreConfigService.config.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.takeUntil)(this._unsubscribeAll)).subscribe(config => {
|
||
|
|
this.coreConfig = config;
|
||
|
|
});
|
||
|
|
}
|
||
|
|
/**
|
||
|
|
* On destroy
|
||
|
|
*/
|
||
|
|
|
||
|
|
|
||
|
|
ngOnDestroy() {
|
||
|
|
// Unsubscribe from all subscriptions
|
||
|
|
this._unsubscribeAll.next();
|
||
|
|
|
||
|
|
this._unsubscribeAll.complete();
|
||
|
|
}
|
||
|
|
|
||
|
|
static ɵfac = function AuthResetPasswordV1Component_Factory(t) {
|
||
|
|
return new (t || AuthResetPasswordV1Component)(_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_core_services_config_service__WEBPACK_IMPORTED_MODULE_0__.CoreConfigService), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_5__.UntypedFormBuilder));
|
||
|
|
};
|
||
|
|
static ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdefineComponent"]({
|
||
|
|
type: AuthResetPasswordV1Component,
|
||
|
|
selectors: [["app-auth-reset-password-v1"]],
|
||
|
|
decls: 39,
|
||
|
|
vars: 21,
|
||
|
|
consts: [[1, "auth-wrapper", "auth-v1", "px-2"], [1, "auth-inner", "py-2"], [1, "card", "mb-0"], [1, "card-body"], ["href", "javascript:void(0);", 1, "brand-logo"], ["alt", "brand-logo", "height", "28", 3, "src"], [1, "brand-text", "text-primary", "ml-1"], [1, "card-title", "mb-1"], [1, "card-text", "mb-2"], [1, "auth-reset-password-form", "mt-2", 3, "formGroup", "ngSubmit"], [1, "form-group"], [1, "d-flex", "justify-content-between"], ["for", "reset-password-new"], [1, "input-group", "input-group-merge", "form-password-toggle"], ["formControlName", "newPassword", "placeholder", "\u00B7\u00B7\u00B7\u00B7\u00B7\u00B7\u00B7\u00B7\u00B7\u00B7\u00B7\u00B7", "aria-describedby", "reset-password-new", "tabindex", "1", "autofocus", "", 1, "form-control", "form-control-merge", 3, "type", "ngClass"], [1, "input-group-append"], [1, "input-group-text", "cursor-pointer"], [1, "feather", "font-small-4", 3, "ngClass", "click"], ["class", "invalid-feedback", 3, "ngClass", 4, "ngIf"], ["for", "reset-password-confirm"], ["formControlName", "confirmPassword", "placeholder", "\u00B7\u00B7\u00B7\u00B7\u00B7\u00B7\u00B7\u00B7\u00B7\u00B7\u00B7\u00B7", "aria-describedby", "reset-password-confirm", "tabindex", "2", 1, "form-control", "form-control-merge", 3, "type", "ngClass"], ["tabindex", "3", "rippleEffect", "", 1, "btn", "btn-primary", "btn-block"], [1, "text-center", "mt-2"], ["routerLink", "/"], ["data-feather", "chevron-left", 1, "mb-25"], [1, "invalid-feedback", 3, "ngClass"], [4, "ngIf"]],
|
||
|
|
template: function AuthResetPasswordV1Component_Template(rf, ctx) {
|
||
|
|
if (rf & 1) {
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "div", 0)(1, "div", 1)(2, "div", 2)(3, "div", 3)(4, "a", 4);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](5, "img", 5);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](6, "h2", 6);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](7);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](8, "h4", 7);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](9, "Reset Password \uD83D\uDD12");
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](10, "p", 8);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](11, "Your new password must be different from previously used passwords");
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](12, "form", 9);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵlistener"]("ngSubmit", function AuthResetPasswordV1Component_Template_form_ngSubmit_12_listener() {
|
||
|
|
return ctx.onSubmit();
|
||
|
|
});
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](13, "div", 10)(14, "div", 11)(15, "label", 12);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](16, "New Password");
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](17, "div", 13);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](18, "input", 14);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](19, "div", 15)(20, "span", 16)(21, "i", 17);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵlistener"]("click", function AuthResetPasswordV1Component_Template_i_click_21_listener() {
|
||
|
|
return ctx.togglePasswordTextType();
|
||
|
|
});
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()()()();
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](22, AuthResetPasswordV1Component_div_22_Template, 2, 4, "div", 18);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](23, "div", 10)(24, "div", 11)(25, "label", 19);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](26, "Confirm Password");
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](27, "div", 13);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](28, "input", 20);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](29, "div", 15)(30, "span", 16)(31, "i", 17);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵlistener"]("click", function AuthResetPasswordV1Component_Template_i_click_31_listener() {
|
||
|
|
return ctx.toggleConfPasswordTextType();
|
||
|
|
});
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()()()();
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](32, AuthResetPasswordV1Component_div_32_Template, 2, 4, "div", 18);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](33, "button", 21);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](34, "Set New Password");
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](35, "p", 22)(36, "a", 23);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](37, "i", 24);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](38, " Back to login ");
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()()()()()();
|
||
|
|
}
|
||
|
|
|
||
|
|
if (rf & 2) {
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](5);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵpropertyInterpolate"]("src", ctx.coreConfig.app.appLogoImage, _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵsanitizeUrl"]);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](2);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtextInterpolate"](ctx.coreConfig.app.appName);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](5);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("formGroup", ctx.resetPasswordForm);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](6);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("type", ctx.passwordTextType ? "text" : "password")("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵpureFunction1"](11, _c1, ctx.submitted && ctx.f.newPassword.errors));
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](3);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵpureFunction2"](13, _c2, ctx.passwordTextType, !ctx.passwordTextType));
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](1);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", ctx.submitted && ctx.f.newPassword.errors);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](6);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("type", ctx.confPasswordTextType ? "text" : "password")("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵpureFunction1"](16, _c1, ctx.submitted && ctx.f.confirmPassword.errors));
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](3);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵpureFunction2"](18, _c2, ctx.confPasswordTextType, !ctx.confPasswordTextType));
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](1);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", ctx.submitted && ctx.f.confirmPassword.errors);
|
||
|
|
}
|
||
|
|
},
|
||
|
|
dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_7__.NgClass, _angular_common__WEBPACK_IMPORTED_MODULE_7__.NgIf, _angular_router__WEBPACK_IMPORTED_MODULE_8__.RouterLinkWithHref, _angular_forms__WEBPACK_IMPORTED_MODULE_5__["ɵNgNoValidate"], _angular_forms__WEBPACK_IMPORTED_MODULE_5__.DefaultValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_5__.NgControlStatus, _angular_forms__WEBPACK_IMPORTED_MODULE_5__.NgControlStatusGroup, _angular_forms__WEBPACK_IMPORTED_MODULE_5__.FormGroupDirective, _angular_forms__WEBPACK_IMPORTED_MODULE_5__.FormControlName, _angular_flex_layout_extended__WEBPACK_IMPORTED_MODULE_9__.DefaultClassDirective, _core_directives_core_ripple_effect_core_ripple_effect_directive__WEBPACK_IMPORTED_MODULE_1__.RippleEffectDirective, _core_directives_core_feather_icons_core_feather_icons__WEBPACK_IMPORTED_MODULE_2__.FeatherIconDirective],
|
||
|
|
styles: [".auth-wrapper {\n display: flex;\n flex-basis: 100%;\n min-height: 100vh;\n min-height: calc(var(--vh, 1vh) * 100);\n width: 100%;\n}\n.auth-wrapper .auth-inner {\n width: 100%;\n position: relative;\n}\n.auth-wrapper.auth-v1 {\n align-items: center;\n justify-content: center;\n overflow: hidden;\n}\n.auth-wrapper.auth-v1 .auth-inner:before {\n width: 244px;\n height: 243px;\n content: \" \";\n position: absolute;\n top: -54px;\n left: -46px;\n background-image: url(\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAPQAAADzCAMAAACG9Mt0AAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAA9KADAAQAAAABAAAA8wAAAADhQHfUAAAAyVBMVEUAAAD///+AgP+AgP9mZv+AgNWAgP9tbf9gYP+AgP9xcf9mZv+AZuaAgP9dXf90dOhiYv92dv9mZu5mZv93d+53d/9paf94afCAcfFrXvJra/9mZvJzZvJzc/JoaP96b/Rqav91aupsYvV2bOt2bPVxaPZ7cfZqavZyau1waPd4aO9xafBxafh4afB1bfh4avFuZ/F2afJzZvJzZ/N0aPN0bvN3bPR0ae5yZ/R3be93bfR1au9zafBxbPVzavV0a/F0a/ZyafFwaPKZm3nTAAAAQ3RSTlMAAQIEBQYGBwgICQoKCgsLDQ0PDw8PERESExMUFBQWFxgYGhoaGxsdHSAgIiIiIyQlJygqLCwtLi8vLzAzNDU3Nzg7h9vbHgAAA9RJREFUeNrt3ftS2kAUx/Fc1gSyWsErtuJdRDQiiteolb7/QzUoTm07k4AzObuu3/MCez45yWbzT36eZ6b8erO1e1B97baadd+zocJWmg0HaXe/+uqmg2GWtkLT5Lle1m9LdhG2+1lvzuiUO1knEF81yFc1N+35m15kZOGodz1vyLx+v2Lseq/erxtZd/NuweCTtfiwaWLOD5FnsqI7+VnP3y8afnEs3Es/1+H1qvETwuq18B7e6VlwLup1ZM8kWWQBOsrmHL7GVtxvYRZYgQ4ywae61ffsqH5Lbq20bQm6ncp9P2ehJegwE/u+rl95ttSwLrVSc2ANetAU28dSa9Cp2E623bUG3d2VWmn/wBq0XCugQYMGLdVKoOJaoiuok1NdXSW1WAUfRPtRUllflaJf5ZE/O9pXVbZUPTov5c+IDqvtRwStdTgLutoxy6GnGfYb2o+1I2gd+1OiqzfLocvVE7TSDqG1mgodaqfQZbvZC9rXjqG1X45WzqFVKVpk0LLo4lGP0ZGD6KgMnTiITkrQgXYQrYNitHISrYrRsZPouBhdcxJdK0YnTqKTYrR2Eq1BgwYNGjRo0KBBgwYNGjRo0KBBgwYNGjRo0KBBgwYNGjRo0KBBgwYNGjRo0KBBgwYNGjRo0KBBgwYNGjRo0KBBgwYNGjRo0KBBgwYNGjRoh9DH59ag86ACoSYOL61B55EUQk1s3VqDzsNHhJpYe7QGncfMSHUxaliCHgcKSXVxeWQJehwdJdXF4dAS9DgkTKqLxuibFeiXODixNi7OrEC/BP+JtbE0WrYA/RrxKNfH2YUF6NegSbk+Gk87xtErN6EsWm88fzeMXpwE9EruLns/l42io4dJFLPo2/Po1w+D6IW7t9Bt2SPx3vOOMfS7eHVZtN54ulg2go56138Ct4XRunE2Ovsmjg46WeddUoUWr6WL0fCoIYgO2/2s91fstDZQjcPL0ePt5flpdXUwqW46uMrS1j95JNpQrW0dHp9UV/uT2m416/8HVGg3qzhpBjRo0KBBgwYNGjRo0KBBgwYNGjRo0KBBgwYNGjRo0KBBgwYNGjRo0KBBgwYNGjRo0KBBgwYNGjRo0KBBgwYNGjRo0KBBgwYNGjRo0KBBgwYNGjRo0KC/FDpx0pwUo2tOomvF6NhJdFyMVk6iVTE6cBIdeF9vJyvZx/I/AzuIjsrQvoNovwzt4FamSs0Ojrp80PmvoB0zh940pb7azf1yg7t0LIt978uppzbnalfucDW92ZndLPRmKweGPduYJ+zoM5/Dk+gD5NdvLhXXPp88qcUqmEH5G5JZRs6cuxwIAAAAAElFTkSuQmCC\");\n}\n@media (max-width: 575.98px) {\n .auth-wrapper.auth-v1 .auth-inner:before {\n display: none;\n }\n}\n.auth-wrapper.auth-v1 .auth-inner:after {\n width: 272px;\n height: 272px;\n content: \" \";\n position: absolute;\n bottom: -55px;\n right: -75px;\n background-image: url(\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAARAAAAEQCAMAAABP1NsnAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAABEKADAAQAAAABAAABEAAAAAAQWxS2AAAAwFBMVEUAAAD///+AgICAgP9VVaqqVf+qqv+AgL+AgP9mZsxmZv+ZZv+AgNWAgP9tbdttbf+Sbf+AYN+AgN+AgP9xceNmZv+AZuaAZv90dOh0dP9qav+AauqAav+AgP92dv9tbf+Abe2Abf93Zu53d+6AcO94afCAcfF5a+R5a/JzZuaAZvKAc/J5bed5bfOAaPN6b/R1auqAavR6ZvV6cPV2bOuAbPV7aPZ2be2AbfZ7au17avZ3Zu53b+57a+97a/d4aO9J6CoeAAAAQHRSTlMAAQICAwMDBAQFBQUGBgcHBwgICAkKCgoLCwwMDAwNDg4ODw8QERITExQUFBUVFhcYGBkZGhobHBwdHR4eHx8gJ5uMWwAAA/FJREFUeNrt2G1XEkEYxvHZNk2xHGzdbKFl0cTwgdSkCKzu7/+t4pw6sAjtjIueE/f8r3fMO35nZnbuy5gVGcvfzJe0rnTfGI+MggGJRUZnbpPIhJKt88nU53JnFULvyISY6KAv8vPj0vr2rYwiE2Z2B9J+uNYcyyQxwWZvaeGH3G4bMjsvI/kcwTC/V+7kLoahlITzQojP3ZFgsJCh7IJQzpX0QFj4uMiY18eDMZ9bZCF9OQahnK6cm/Y7js0sh/LF3Auv1PlQd3MxbdXYIQspV44EEEAAAWTNDAYYkKdJbNMsLzYueZbaZ2iM46RVbHBaiZ9Js+nHEdli42N9XuSen5hGp1CQTuOJQDRsD99N4gMSpYWapNH6IJo83CIeILZQFesEaber79NCWRoukOpNEnW0gXQqD81w6ACxhbrYde7VuFCYeA2QRCNIsgZISyNIqz6IyhPjOjNVIFYniK3dmKU6QdLaJUimEySrDZLrBMlrgxRKU7sxCw/EMe0CAggggADySJCqxixIkKpNEh6IozELD8RxjQACCCCAAPJIkKrGLEgQXqqAAEJjxrQLCCCAAEJjRmNGY8a0CwgggABCYwYIfQgggNCYMe0CAggggNCY0ZjRmDHtAgIIIIAAQmNGHwIIIDRmTLuAAAIIIDRmNGY0Zky7gAACCCCA0JjRhwACCI0Z0y4ggAACCI0ZjRmNGdMuIIAAAgggNGb0IYAAQmPGtAsIIIAAQmNGY0ZjxrQLCCCAAAIIjRl9CCCA0Jgx7QICCCCA0JjRmNGYMe0CAggggABCY0YfAgggNGZ
|
||
|
|
encapsulation: 2
|
||
|
|
});
|
||
|
|
}
|
||
|
|
|
||
|
|
/***/ }),
|
||
|
|
|
||
|
|
/***/ 35982:
|
||
|
|
/*!********************************************************************!*\
|
||
|
|
!*** ./src/app/main/pages/authentication/authentication.module.ts ***!
|
||
|
|
\********************************************************************/
|
||
|
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
||
|
|
|
||
|
|
__webpack_require__.r(__webpack_exports__);
|
||
|
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
||
|
|
/* harmony export */ "AuthenticationModule": () => (/* binding */ AuthenticationModule)
|
||
|
|
/* harmony export */ });
|
||
|
|
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @angular/common */ 36895);
|
||
|
|
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @angular/forms */ 24006);
|
||
|
|
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @angular/router */ 34793);
|
||
|
|
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ 65765);
|
||
|
|
/* harmony import */ var _core_common_module__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @core/common.module */ 75078);
|
||
|
|
/* harmony import */ var _auth_login_v1_auth_login_v1_component__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./auth-login-v1/auth-login-v1.component */ 60928);
|
||
|
|
/* harmony import */ var _auth_register_v1_auth_register_v1_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./auth-register-v1/auth-register-v1.component */ 56436);
|
||
|
|
/* harmony import */ var _auth_reset_password_v1_auth_reset_password_v1_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./auth-reset-password-v1/auth-reset-password-v1.component */ 10667);
|
||
|
|
/* harmony import */ var _auth_forgot_password_v1_auth_forgot_password_v1_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./auth-forgot-password-v1/auth-forgot-password-v1.component */ 60109);
|
||
|
|
/* harmony import */ var app_main_asistente_virtual_asistente_virtual_component__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! app/main/asistente-virtual/asistente-virtual.component */ 90415);
|
||
|
|
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @angular/core */ 94650);
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
// routing
|
||
|
|
|
||
|
|
const routes = [{
|
||
|
|
path: '',
|
||
|
|
component: _auth_login_v1_auth_login_v1_component__WEBPACK_IMPORTED_MODULE_1__.AuthLoginV1Component
|
||
|
|
}, {
|
||
|
|
path: 'login',
|
||
|
|
component: _auth_login_v1_auth_login_v1_component__WEBPACK_IMPORTED_MODULE_1__.AuthLoginV1Component
|
||
|
|
}, {
|
||
|
|
path: 'authentication/register-v1',
|
||
|
|
component: _auth_register_v1_auth_register_v1_component__WEBPACK_IMPORTED_MODULE_2__.AuthRegisterV1Component
|
||
|
|
}, {
|
||
|
|
path: 'authentication/reset-password-v1',
|
||
|
|
component: _auth_reset_password_v1_auth_reset_password_v1_component__WEBPACK_IMPORTED_MODULE_3__.AuthResetPasswordV1Component
|
||
|
|
}, {
|
||
|
|
path: 'authentication/forgot-password-v1',
|
||
|
|
component: _auth_forgot_password_v1_auth_forgot_password_v1_component__WEBPACK_IMPORTED_MODULE_4__.AuthForgotPasswordV1Component
|
||
|
|
}];
|
||
|
|
class AuthenticationModule {
|
||
|
|
static ɵfac = function AuthenticationModule_Factory(t) {
|
||
|
|
return new (t || AuthenticationModule)();
|
||
|
|
};
|
||
|
|
static ɵmod = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵdefineNgModule"]({
|
||
|
|
type: AuthenticationModule
|
||
|
|
});
|
||
|
|
static ɵinj = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵdefineInjector"]({
|
||
|
|
imports: [_angular_common__WEBPACK_IMPORTED_MODULE_7__.CommonModule, _angular_router__WEBPACK_IMPORTED_MODULE_8__.RouterModule.forChild(routes), _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_9__.NgbModule, _angular_forms__WEBPACK_IMPORTED_MODULE_10__.FormsModule, _angular_forms__WEBPACK_IMPORTED_MODULE_10__.ReactiveFormsModule, _core_common_module__WEBPACK_IMPORTED_MODULE_0__.CoreCommonModule]
|
||
|
|
});
|
||
|
|
}
|
||
|
|
|
||
|
|
(function () {
|
||
|
|
(typeof ngJitMode === "undefined" || ngJitMode) && _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵsetNgModuleScope"](AuthenticationModule, {
|
||
|
|
declarations: [_auth_login_v1_auth_login_v1_component__WEBPACK_IMPORTED_MODULE_1__.AuthLoginV1Component, _auth_register_v1_auth_register_v1_component__WEBPACK_IMPORTED_MODULE_2__.AuthRegisterV1Component, _auth_reset_password_v1_auth_reset_password_v1_component__WEBPACK_IMPORTED_MODULE_3__.AuthResetPasswordV1Component, _auth_forgot_password_v1_auth_forgot_password_v1_component__WEBPACK_IMPORTED_MODULE_4__.AuthForgotPasswordV1Component, app_main_asistente_virtual_asistente_virtual_component__WEBPACK_IMPORTED_MODULE_5__.AsistenteVirtualComponent],
|
||
|
|
imports: [_angular_common__WEBPACK_IMPORTED_MODULE_7__.CommonModule, _angular_router__WEBPACK_IMPORTED_MODULE_8__.RouterModule, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_9__.NgbModule, _angular_forms__WEBPACK_IMPORTED_MODULE_10__.FormsModule, _angular_forms__WEBPACK_IMPORTED_MODULE_10__.ReactiveFormsModule, _core_common_module__WEBPACK_IMPORTED_MODULE_0__.CoreCommonModule]
|
||
|
|
});
|
||
|
|
})();
|
||
|
|
|
||
|
|
/***/ }),
|
||
|
|
|
||
|
|
/***/ 10825:
|
||
|
|
/*!*******************************************************************!*\
|
||
|
|
!*** ./src/app/main/pages/miscellaneous/error/error.component.ts ***!
|
||
|
|
\*******************************************************************/
|
||
|
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
||
|
|
|
||
|
|
__webpack_require__.r(__webpack_exports__);
|
||
|
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
||
|
|
/* harmony export */ "ErrorComponent": () => (/* binding */ ErrorComponent)
|
||
|
|
/* harmony export */ });
|
||
|
|
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! rxjs/operators */ 7625);
|
||
|
|
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! rxjs */ 8929);
|
||
|
|
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @angular/core */ 94650);
|
||
|
|
/* harmony import */ var _core_services_config_service__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @core/services/config.service */ 52553);
|
||
|
|
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @angular/router */ 34793);
|
||
|
|
/* harmony import */ var _core_directives_core_ripple_effect_core_ripple_effect_directive__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @core/directives/core-ripple-effect/core-ripple-effect.directive */ 75287);
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
class ErrorComponent {
|
||
|
|
_coreConfigService;
|
||
|
|
coreConfig; // Private
|
||
|
|
|
||
|
|
_unsubscribeAll;
|
||
|
|
/**
|
||
|
|
* Constructor
|
||
|
|
*
|
||
|
|
* @param {CoreConfigService} _coreConfigService
|
||
|
|
*/
|
||
|
|
|
||
|
|
constructor(_coreConfigService) {
|
||
|
|
this._coreConfigService = _coreConfigService;
|
||
|
|
this._unsubscribeAll = new rxjs__WEBPACK_IMPORTED_MODULE_2__.Subject(); // Configure the layout
|
||
|
|
|
||
|
|
this._coreConfigService.config = {
|
||
|
|
layout: {
|
||
|
|
navbar: {
|
||
|
|
hidden: true
|
||
|
|
},
|
||
|
|
footer: {
|
||
|
|
hidden: true
|
||
|
|
},
|
||
|
|
menu: {
|
||
|
|
hidden: true
|
||
|
|
},
|
||
|
|
customizer: false,
|
||
|
|
enableLocalStorage: false
|
||
|
|
}
|
||
|
|
};
|
||
|
|
} // Lifecycle Hooks
|
||
|
|
// -----------------------------------------------------------------------------------------------------
|
||
|
|
|
||
|
|
/**
|
||
|
|
* On init
|
||
|
|
*/
|
||
|
|
|
||
|
|
|
||
|
|
ngOnInit() {
|
||
|
|
// Subscribe to config changes
|
||
|
|
this._coreConfigService.config.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_3__.takeUntil)(this._unsubscribeAll)).subscribe(config => {
|
||
|
|
this.coreConfig = config;
|
||
|
|
});
|
||
|
|
}
|
||
|
|
/**
|
||
|
|
* On destroy
|
||
|
|
*/
|
||
|
|
|
||
|
|
|
||
|
|
ngOnDestroy() {
|
||
|
|
// Unsubscribe from all subscriptions
|
||
|
|
this._unsubscribeAll.next();
|
||
|
|
|
||
|
|
this._unsubscribeAll.complete();
|
||
|
|
}
|
||
|
|
|
||
|
|
static ɵfac = function ErrorComponent_Factory(t) {
|
||
|
|
return new (t || ErrorComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdirectiveInject"](_core_services_config_service__WEBPACK_IMPORTED_MODULE_0__.CoreConfigService));
|
||
|
|
};
|
||
|
|
static ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdefineComponent"]({
|
||
|
|
type: ErrorComponent,
|
||
|
|
selectors: [["app-error"]],
|
||
|
|
decls: 20,
|
||
|
|
vars: 4,
|
||
|
|
consts: [[1, "misc-wrapper"], ["href", "javascript:void(0);", 1, "brand-logo"], ["alt", "brand-logo", "height", "28", 3, "src"], [1, "brand-text", "text-primary", "ml-1"], [1, "misc-inner", "d-lg-flex", "col-lg-12", "align-items-center", "p-5"], [1, "w-100", "text-center"], [1, "mb-1"], [1, "mb-2"], [1, "btn-whatsapp"], ["alt", "Error page", "width", "200px", 1, "img-fluid", "drop", 3, "src"], [1, "mb-1", "drop"], ["align", "center", "routerLink", "/", "rippleEffect", "", 1, "btn", "btn-danger", "mb-2", "btn-sm-block"]],
|
||
|
|
template: function ErrorComponent_Template(rf, ctx) {
|
||
|
|
if (rf & 1) {
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](0, "div", 0)(1, "a", 1);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelement"](2, "img", 2);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](3, "h2", 3);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](4);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()();
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](5, "div", 4)(6, "div", 5)(7, "h1", 6)(8, "strong");
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](9);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()();
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](10, "h2", 6);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](11, "P\u00E1gina no encontrada \uD83D\uDD75\uD83C\uDFFB\u200D\u2640\uFE0F");
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](12, "p", 7);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](13, "Ups! \uD83D\uDE16 La URL solicitada no se encontr\u00F3 en este servidor.");
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](14, "div", 8);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelement"](15, "img", 9);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](16, "p", 10);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelement"](17, "br");
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](18, "a", 11);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](19, "Regresar al Inicio");
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()()()()();
|
||
|
|
}
|
||
|
|
|
||
|
|
if (rf & 2) {
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](2);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵpropertyInterpolate"]("src", ctx.coreConfig.app.appLogoImage, _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵsanitizeUrl"]);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](2);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtextInterpolate"](ctx.coreConfig.app.appName);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](5);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtextInterpolate"](ctx.coreConfig.app.appTitle);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](6);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("src", ctx.coreConfig.layout.skin === "dark" ? "assets/images/logo/logo.png" : "assets/images/logo/logo.png", _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵsanitizeUrl"]);
|
||
|
|
}
|
||
|
|
},
|
||
|
|
dependencies: [_angular_router__WEBPACK_IMPORTED_MODULE_5__.RouterLinkWithHref, _core_directives_core_ripple_effect_core_ripple_effect_directive__WEBPACK_IMPORTED_MODULE_1__.RippleEffectDirective],
|
||
|
|
styles: [".misc-wrapper[_ngcontent-%COMP%] {\n display: flex;\n flex-basis: 100%;\n min-height: 100vh;\n width: 100%;\n align-items: center;\n justify-content: center;\n}\n.misc-wrapper[_ngcontent-%COMP%] .misc-inner[_ngcontent-%COMP%] {\n position: relative;\n max-width: 750px;\n}\n.misc-wrapper[_ngcontent-%COMP%] .brand-logo[_ngcontent-%COMP%] {\n display: flex;\n justify-content: center;\n position: absolute;\n top: 2rem;\n left: 2rem;\n margin: 0;\n}\n.misc-wrapper[_ngcontent-%COMP%] .brand-logo[_ngcontent-%COMP%] .brand-text[_ngcontent-%COMP%] {\n font-weight: 600;\n}\n@media (max-height: 625px) {\n .misc-wrapper[_ngcontent-%COMP%] .misc-inner[_ngcontent-%COMP%] {\n margin-top: 4rem;\n }\n}\n.drop[_ngcontent-%COMP%] {\n filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.7));\n}\n.btn-whatsapp[_ngcontent-%COMP%] {\n position: fixed;\n z-index: -1;\n bottom: 20px;\n right: 740px;\n top: 100px;\n}\n.btn-whatsapp[_ngcontent-%COMP%]:before, .btn-whatsapp[_ngcontent-%COMP%]:after {\n content: \"\";\n position: absolute;\n top: 10px;\n left: 10px;\n width: 180px;\n height: 180px;\n border-radius: 50%;\n background-color: #eda409;\n opacity: 0;\n animation: onda 1s infinite;\n}\n.btn-whatsapp[_ngcontent-%COMP%]:before {\n animation-delay: 0.2s;\n}\n.btn-whatsapp[_ngcontent-%COMP%]:after {\n animation-delay: 0.5s;\n}\n.btn-whatsapp[_ngcontent-%COMP%] img[_ngcontent-%COMP%] {\n position: relative;\n z-index: 2;\n}\n@keyframes onda {\n 0% {\n transform: scale(1);\n }\n 15% {\n opacity: 1;\n }\n 100% {\n opacity: 0;\n transform: scale(2.5);\n }\n}"]
|
||
|
|
});
|
||
|
|
}
|
||
|
|
|
||
|
|
/***/ }),
|
||
|
|
|
||
|
|
/***/ 48057:
|
||
|
|
/*!*******************************************************************************!*\
|
||
|
|
!*** ./src/app/main/pages/miscellaneous/maintenance/maintenance.component.ts ***!
|
||
|
|
\*******************************************************************************/
|
||
|
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
||
|
|
|
||
|
|
__webpack_require__.r(__webpack_exports__);
|
||
|
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
||
|
|
/* harmony export */ "MaintenanceComponent": () => (/* binding */ MaintenanceComponent)
|
||
|
|
/* harmony export */ });
|
||
|
|
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! rxjs/operators */ 7625);
|
||
|
|
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! rxjs */ 8929);
|
||
|
|
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @angular/core */ 94650);
|
||
|
|
/* harmony import */ var _core_services_config_service__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @core/services/config.service */ 52553);
|
||
|
|
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @angular/router */ 34793);
|
||
|
|
/* harmony import */ var _core_directives_core_ripple_effect_core_ripple_effect_directive__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @core/directives/core-ripple-effect/core-ripple-effect.directive */ 75287);
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
class MaintenanceComponent {
|
||
|
|
_coreConfigService;
|
||
|
|
coreConfig; // Private
|
||
|
|
|
||
|
|
_unsubscribeAll;
|
||
|
|
/**
|
||
|
|
* Constructor
|
||
|
|
*
|
||
|
|
* @param {CoreConfigService} _coreConfigService
|
||
|
|
*/
|
||
|
|
|
||
|
|
constructor(_coreConfigService) {
|
||
|
|
this._coreConfigService = _coreConfigService;
|
||
|
|
this._unsubscribeAll = new rxjs__WEBPACK_IMPORTED_MODULE_2__.Subject(); // Configure the layout
|
||
|
|
|
||
|
|
this._coreConfigService.config = {
|
||
|
|
layout: {
|
||
|
|
navbar: {
|
||
|
|
hidden: true
|
||
|
|
},
|
||
|
|
footer: {
|
||
|
|
hidden: true
|
||
|
|
},
|
||
|
|
menu: {
|
||
|
|
hidden: true
|
||
|
|
},
|
||
|
|
customizer: false,
|
||
|
|
enableLocalStorage: false
|
||
|
|
}
|
||
|
|
};
|
||
|
|
} // Lifecycle Hooks
|
||
|
|
// -----------------------------------------------------------------------------------------------------
|
||
|
|
|
||
|
|
/**
|
||
|
|
* On init
|
||
|
|
*/
|
||
|
|
|
||
|
|
|
||
|
|
ngOnInit() {
|
||
|
|
// Subscribe to config changes
|
||
|
|
this._coreConfigService.config.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_3__.takeUntil)(this._unsubscribeAll)).subscribe(config => {
|
||
|
|
this.coreConfig = config;
|
||
|
|
});
|
||
|
|
}
|
||
|
|
/**
|
||
|
|
* On destroy
|
||
|
|
*/
|
||
|
|
|
||
|
|
|
||
|
|
ngOnDestroy() {
|
||
|
|
// Unsubscribe from all subscriptions
|
||
|
|
this._unsubscribeAll.next();
|
||
|
|
|
||
|
|
this._unsubscribeAll.complete();
|
||
|
|
}
|
||
|
|
|
||
|
|
static ɵfac = function MaintenanceComponent_Factory(t) {
|
||
|
|
return new (t || MaintenanceComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdirectiveInject"](_core_services_config_service__WEBPACK_IMPORTED_MODULE_0__.CoreConfigService));
|
||
|
|
};
|
||
|
|
static ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdefineComponent"]({
|
||
|
|
type: MaintenanceComponent,
|
||
|
|
selectors: [["app-maintenance"]],
|
||
|
|
decls: 20,
|
||
|
|
vars: 4,
|
||
|
|
consts: [[1, "misc-wrapper"], ["href", "javascript:void(0);", 1, "brand-logo"], ["alt", "brand-logo", "height", "28", 3, "src"], [1, "brand-text", "text-primary", "ml-1"], [1, "misc-inner", "d-lg-flex", "col-lg-12", "align-items-center", "p-5"], [1, "w-100", "text-center"], [1, "mb-1"], [1, "mb-3"], [1, "btn-whatsapp"], ["alt", "Error page", "width", "200px", 1, "img-fluid", "drop", 3, "src"], [1, "mb-1", "drop"], ["align", "center", "routerLink", "/", "rippleEffect", "", 1, "btn", "btn-danger", "mb-2", "btn-sm-block"]],
|
||
|
|
template: function MaintenanceComponent_Template(rf, ctx) {
|
||
|
|
if (rf & 1) {
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](0, "div", 0)(1, "a", 1);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelement"](2, "img", 2);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](3, "h2", 3);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](4);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()();
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](5, "div", 4)(6, "div", 5)(7, "h1", 6)(8, "strong");
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](9);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()();
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](10, "h2", 6);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](11, "Sistema en Mantenimiento\uD83D\uDEE0");
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](12, "p", 7);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](13, "Disculpe las molestias, pero estamos realizando un mantenimiento en este momento.");
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](14, "div", 8);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelement"](15, "img", 9);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](16, "p", 10);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelement"](17, "br");
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](18, "a", 11);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](19, "Regresar al Inicio");
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()()()()();
|
||
|
|
}
|
||
|
|
|
||
|
|
if (rf & 2) {
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](2);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵpropertyInterpolate"]("src", ctx.coreConfig.app.appLogoImage, _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵsanitizeUrl"]);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](2);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtextInterpolate"](ctx.coreConfig.app.appName);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](5);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtextInterpolate"](ctx.coreConfig.app.appTitle);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](6);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("src", ctx.coreConfig.layout.skin === "dark" ? "assets/images/logo/logo.png" : "assets/images/logo/logo.png", _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵsanitizeUrl"]);
|
||
|
|
}
|
||
|
|
},
|
||
|
|
dependencies: [_angular_router__WEBPACK_IMPORTED_MODULE_5__.RouterLinkWithHref, _core_directives_core_ripple_effect_core_ripple_effect_directive__WEBPACK_IMPORTED_MODULE_1__.RippleEffectDirective],
|
||
|
|
styles: [".misc-wrapper[_ngcontent-%COMP%] {\n display: flex;\n flex-basis: 100%;\n min-height: 100vh;\n width: 100%;\n align-items: center;\n justify-content: center;\n}\n.misc-wrapper[_ngcontent-%COMP%] .misc-inner[_ngcontent-%COMP%] {\n position: relative;\n max-width: 750px;\n}\n.misc-wrapper[_ngcontent-%COMP%] .brand-logo[_ngcontent-%COMP%] {\n display: flex;\n justify-content: center;\n position: absolute;\n top: 2rem;\n left: 2rem;\n margin: 0;\n}\n.misc-wrapper[_ngcontent-%COMP%] .brand-logo[_ngcontent-%COMP%] .brand-text[_ngcontent-%COMP%] {\n font-weight: 600;\n}\n@media (max-height: 625px) {\n .misc-wrapper[_ngcontent-%COMP%] .misc-inner[_ngcontent-%COMP%] {\n margin-top: 4rem;\n }\n}\n.drop[_ngcontent-%COMP%] {\n filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.7));\n}\n.btn-whatsapp[_ngcontent-%COMP%] {\n position: fixed;\n z-index: -1;\n bottom: 20px;\n right: 740px;\n top: 100px;\n}\n.btn-whatsapp[_ngcontent-%COMP%]:before, .btn-whatsapp[_ngcontent-%COMP%]:after {\n content: \"\";\n position: absolute;\n top: 10px;\n left: 10px;\n width: 180px;\n height: 180px;\n border-radius: 50%;\n background-color: #eda409;\n opacity: 0;\n animation: onda 1s infinite;\n}\n.btn-whatsapp[_ngcontent-%COMP%]:before {\n animation-delay: 0.2s;\n}\n.btn-whatsapp[_ngcontent-%COMP%]:after {\n animation-delay: 0.5s;\n}\n.btn-whatsapp[_ngcontent-%COMP%] img[_ngcontent-%COMP%] {\n position: relative;\n z-index: 2;\n}\n@keyframes onda {\n 0% {\n transform: scale(1);\n }\n 15% {\n opacity: 1;\n }\n 100% {\n opacity: 0;\n transform: scale(2.5);\n }\n}"]
|
||
|
|
});
|
||
|
|
}
|
||
|
|
|
||
|
|
/***/ }),
|
||
|
|
|
||
|
|
/***/ 79034:
|
||
|
|
/*!******************************************************************!*\
|
||
|
|
!*** ./src/app/main/pages/miscellaneous/miscellaneous.module.ts ***!
|
||
|
|
\******************************************************************/
|
||
|
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
||
|
|
|
||
|
|
__webpack_require__.r(__webpack_exports__);
|
||
|
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
||
|
|
/* harmony export */ "MiscellaneousModule": () => (/* binding */ MiscellaneousModule)
|
||
|
|
/* harmony export */ });
|
||
|
|
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @angular/common */ 36895);
|
||
|
|
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @angular/router */ 34793);
|
||
|
|
/* harmony import */ var _core_common_module__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @core/common.module */ 75078);
|
||
|
|
/* harmony import */ var _error_error_component__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./error/error.component */ 10825);
|
||
|
|
/* harmony import */ var _maintenance_maintenance_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./maintenance/maintenance.component */ 48057);
|
||
|
|
/* harmony import */ var _not_authorized_not_authorized_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./not-authorized/not-authorized.component */ 17804);
|
||
|
|
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @angular/core */ 94650);
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
// routing
|
||
|
|
|
||
|
|
const routes = [{
|
||
|
|
path: 'miscellaneous/error',
|
||
|
|
component: _error_error_component__WEBPACK_IMPORTED_MODULE_1__.ErrorComponent
|
||
|
|
}, {
|
||
|
|
path: 'miscellaneous/maintenance',
|
||
|
|
component: _maintenance_maintenance_component__WEBPACK_IMPORTED_MODULE_2__.MaintenanceComponent
|
||
|
|
}, {
|
||
|
|
path: 'miscellaneous/not-authorized',
|
||
|
|
component: _not_authorized_not_authorized_component__WEBPACK_IMPORTED_MODULE_3__.NotAuthorizedComponent
|
||
|
|
}];
|
||
|
|
class MiscellaneousModule {
|
||
|
|
static ɵfac = function MiscellaneousModule_Factory(t) {
|
||
|
|
return new (t || MiscellaneousModule)();
|
||
|
|
};
|
||
|
|
static ɵmod = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdefineNgModule"]({
|
||
|
|
type: MiscellaneousModule
|
||
|
|
});
|
||
|
|
static ɵinj = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdefineInjector"]({
|
||
|
|
imports: [_angular_common__WEBPACK_IMPORTED_MODULE_5__.CommonModule, _angular_router__WEBPACK_IMPORTED_MODULE_6__.RouterModule.forChild(routes), _core_common_module__WEBPACK_IMPORTED_MODULE_0__.CoreCommonModule]
|
||
|
|
});
|
||
|
|
}
|
||
|
|
|
||
|
|
(function () {
|
||
|
|
(typeof ngJitMode === "undefined" || ngJitMode) && _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵsetNgModuleScope"](MiscellaneousModule, {
|
||
|
|
declarations: [_error_error_component__WEBPACK_IMPORTED_MODULE_1__.ErrorComponent, _maintenance_maintenance_component__WEBPACK_IMPORTED_MODULE_2__.MaintenanceComponent, _not_authorized_not_authorized_component__WEBPACK_IMPORTED_MODULE_3__.NotAuthorizedComponent],
|
||
|
|
imports: [_angular_common__WEBPACK_IMPORTED_MODULE_5__.CommonModule, _angular_router__WEBPACK_IMPORTED_MODULE_6__.RouterModule, _core_common_module__WEBPACK_IMPORTED_MODULE_0__.CoreCommonModule]
|
||
|
|
});
|
||
|
|
})();
|
||
|
|
|
||
|
|
/***/ }),
|
||
|
|
|
||
|
|
/***/ 17804:
|
||
|
|
/*!*************************************************************************************!*\
|
||
|
|
!*** ./src/app/main/pages/miscellaneous/not-authorized/not-authorized.component.ts ***!
|
||
|
|
\*************************************************************************************/
|
||
|
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
||
|
|
|
||
|
|
__webpack_require__.r(__webpack_exports__);
|
||
|
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
||
|
|
/* harmony export */ "NotAuthorizedComponent": () => (/* binding */ NotAuthorizedComponent)
|
||
|
|
/* harmony export */ });
|
||
|
|
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! rxjs/operators */ 7625);
|
||
|
|
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! rxjs */ 8929);
|
||
|
|
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @angular/core */ 94650);
|
||
|
|
/* harmony import */ var _core_services_config_service__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @core/services/config.service */ 52553);
|
||
|
|
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @angular/router */ 34793);
|
||
|
|
/* harmony import */ var _core_directives_core_ripple_effect_core_ripple_effect_directive__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @core/directives/core-ripple-effect/core-ripple-effect.directive */ 75287);
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
class NotAuthorizedComponent {
|
||
|
|
_coreConfigService;
|
||
|
|
coreConfig; // Private
|
||
|
|
|
||
|
|
_unsubscribeAll;
|
||
|
|
/**
|
||
|
|
* Constructor
|
||
|
|
*
|
||
|
|
* @param {CoreConfigService} _coreConfigService
|
||
|
|
*/
|
||
|
|
|
||
|
|
constructor(_coreConfigService) {
|
||
|
|
this._coreConfigService = _coreConfigService;
|
||
|
|
this._unsubscribeAll = new rxjs__WEBPACK_IMPORTED_MODULE_2__.Subject(); // Configure the layout
|
||
|
|
|
||
|
|
this._coreConfigService.config = {
|
||
|
|
layout: {
|
||
|
|
navbar: {
|
||
|
|
hidden: true
|
||
|
|
},
|
||
|
|
footer: {
|
||
|
|
hidden: true
|
||
|
|
},
|
||
|
|
menu: {
|
||
|
|
hidden: true
|
||
|
|
},
|
||
|
|
customizer: false,
|
||
|
|
enableLocalStorage: false
|
||
|
|
}
|
||
|
|
};
|
||
|
|
} // Lifecycle Hooks
|
||
|
|
// -----------------------------------------------------------------------------------------------------
|
||
|
|
|
||
|
|
/**
|
||
|
|
* On init
|
||
|
|
*/
|
||
|
|
|
||
|
|
|
||
|
|
ngOnInit() {
|
||
|
|
// Subscribe to config changes
|
||
|
|
this._coreConfigService.config.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_3__.takeUntil)(this._unsubscribeAll)).subscribe(config => {
|
||
|
|
this.coreConfig = config;
|
||
|
|
});
|
||
|
|
}
|
||
|
|
|
||
|
|
salir() {
|
||
|
|
sessionStorage.removeItem('token');
|
||
|
|
window.location.href = '/';
|
||
|
|
}
|
||
|
|
/**
|
||
|
|
* On destroy
|
||
|
|
*/
|
||
|
|
|
||
|
|
|
||
|
|
ngOnDestroy() {
|
||
|
|
// Unsubscribe from all subscriptions
|
||
|
|
this._unsubscribeAll.next();
|
||
|
|
|
||
|
|
this._unsubscribeAll.complete();
|
||
|
|
}
|
||
|
|
|
||
|
|
static ɵfac = function NotAuthorizedComponent_Factory(t) {
|
||
|
|
return new (t || NotAuthorizedComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdirectiveInject"](_core_services_config_service__WEBPACK_IMPORTED_MODULE_0__.CoreConfigService));
|
||
|
|
};
|
||
|
|
static ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdefineComponent"]({
|
||
|
|
type: NotAuthorizedComponent,
|
||
|
|
selectors: [["app-not-authorized"]],
|
||
|
|
decls: 23,
|
||
|
|
vars: 4,
|
||
|
|
consts: [[1, "misc-wrapper"], ["href", "javascript:void(0);", 1, "brand-logo"], ["alt", "brand-logo", "height", "28", 3, "src"], [1, "brand-text", "text-primary", "ml-1"], [1, "misc-inner", "d-lg-flex", "col-lg-12", "align-items-center", "p-5"], [1, "w-100", "text-center"], [1, "mb-1"], [1, "mb-2"], [1, "btn-whatsapp"], ["alt", "Error page", "width", "200px", 1, "img-fluid", "drop", 3, "src"], [1, "mb-1", "drop"], ["align", "center", "routerLink", "/", "rippleEffect", "", 1, "btn", "btn-warning", "mb-2", "btn-sm-block"], ["align", "center", "rippleEffect", "", 1, "btn", "btn-danger", "mb-2", "btn-sm-block", 3, "click"]],
|
||
|
|
template: function NotAuthorizedComponent_Template(rf, ctx) {
|
||
|
|
if (rf & 1) {
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](0, "div", 0)(1, "a", 1);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelement"](2, "img", 2);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](3, "h2", 3);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](4);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()();
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](5, "div", 4)(6, "div", 5)(7, "h1", 6)(8, "strong");
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](9);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()();
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](10, "h2", 6);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](11, "Usted no est\u00E1 autorizado! \uD83D\uDD10");
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](12, "p", 7);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](13, "No tienes permisos para ingresar a esta URL, te recomendamos salir de esta p\u00E1gina");
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](14, "div", 8);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelement"](15, "img", 9);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](16, "p", 10);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelement"](17, "br");
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](18, "a", 11);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](19, "Salir de esta P\u00E1gina");
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](20, " \u00A0 ");
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](21, "a", 12);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵlistener"]("click", function NotAuthorizedComponent_Template_a_click_21_listener() {
|
||
|
|
return ctx.salir();
|
||
|
|
});
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](22, "Cerrar Sesi\u00F3n");
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()()()()();
|
||
|
|
}
|
||
|
|
|
||
|
|
if (rf & 2) {
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](2);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵpropertyInterpolate"]("src", ctx.coreConfig.app.appLogoImage, _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵsanitizeUrl"]);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](2);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtextInterpolate"](ctx.coreConfig.app.appName);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](5);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtextInterpolate"](ctx.coreConfig.app.appTitle);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](6);
|
||
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("src", ctx.coreConfig.layout.skin === "dark" ? "assets/images/logo/logo.png" : "assets/images/logo/logo.png", _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵsanitizeUrl"]);
|
||
|
|
}
|
||
|
|
},
|
||
|
|
dependencies: [_angular_router__WEBPACK_IMPORTED_MODULE_5__.RouterLinkWithHref, _core_directives_core_ripple_effect_core_ripple_effect_directive__WEBPACK_IMPORTED_MODULE_1__.RippleEffectDirective],
|
||
|
|
styles: [".misc-wrapper[_ngcontent-%COMP%] {\n display: flex;\n flex-basis: 100%;\n min-height: 100vh;\n width: 100%;\n align-items: center;\n justify-content: center;\n}\n.misc-wrapper[_ngcontent-%COMP%] .misc-inner[_ngcontent-%COMP%] {\n position: relative;\n max-width: 750px;\n}\n.misc-wrapper[_ngcontent-%COMP%] .brand-logo[_ngcontent-%COMP%] {\n display: flex;\n justify-content: center;\n position: absolute;\n top: 2rem;\n left: 2rem;\n margin: 0;\n}\n.misc-wrapper[_ngcontent-%COMP%] .brand-logo[_ngcontent-%COMP%] .brand-text[_ngcontent-%COMP%] {\n font-weight: 600;\n}\n@media (max-height: 625px) {\n .misc-wrapper[_ngcontent-%COMP%] .misc-inner[_ngcontent-%COMP%] {\n margin-top: 4rem;\n }\n}\n.drop[_ngcontent-%COMP%] {\n filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.7));\n}\n.btn-whatsapp[_ngcontent-%COMP%] {\n position: fixed;\n z-index: -1;\n bottom: 20px;\n right: 740px;\n top: 100px;\n}\n.btn-whatsapp[_ngcontent-%COMP%]:before, .btn-whatsapp[_ngcontent-%COMP%]:after {\n content: \"\";\n position: absolute;\n top: 10px;\n left: 10px;\n width: 180px;\n height: 180px;\n border-radius: 50%;\n background-color: #eda409;\n opacity: 0;\n animation: onda 1s infinite;\n}\n.btn-whatsapp[_ngcontent-%COMP%]:before {\n animation-delay: 0.2s;\n}\n.btn-whatsapp[_ngcontent-%COMP%]:after {\n animation-delay: 0.5s;\n}\n.btn-whatsapp[_ngcontent-%COMP%] img[_ngcontent-%COMP%] {\n position: relative;\n z-index: 2;\n}\n@keyframes onda {\n 0% {\n transform: scale(1);\n }\n 15% {\n opacity: 1;\n }\n 100% {\n opacity: 0;\n transform: scale(2.5);\n }\n}"]
|
||
|
|
});
|
||
|
|
}
|
||
|
|
|
||
|
|
/***/ }),
|
||
|
|
|
||
|
|
/***/ 37478:
|
||
|
|
/*!********************************************!*\
|
||
|
|
!*** ./src/app/main/pages/pages.module.ts ***!
|
||
|
|
\********************************************/
|
||
|
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
||
|
|
|
||
|
|
__webpack_require__.r(__webpack_exports__);
|
||
|
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
||
|
|
/* harmony export */ "PagesModule": () => (/* binding */ PagesModule)
|
||
|
|
/* harmony export */ });
|
||
|
|
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @angular/common */ 36895);
|
||
|
|
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @angular/forms */ 24006);
|
||
|
|
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ 65765);
|
||
|
|
/* harmony import */ var _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @ng-select/ng-select */ 88796);
|
||
|
|
/* harmony import */ var _core_common_module__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @core/common.module */ 75078);
|
||
|
|
/* harmony import */ var app_layout_components_content_header_content_header_module__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! app/layout/components/content-header/content-header.module */ 50619);
|
||
|
|
/* harmony import */ var _authentication_authentication_module__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./authentication/authentication.module */ 35982);
|
||
|
|
/* harmony import */ var _miscellaneous_miscellaneous_module__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./miscellaneous/miscellaneous.module */ 79034);
|
||
|
|
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @angular/core */ 94650);
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
class PagesModule {
|
||
|
|
static ɵfac = function PagesModule_Factory(t) {
|
||
|
|
return new (t || PagesModule)();
|
||
|
|
};
|
||
|
|
static ɵmod = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdefineNgModule"]({
|
||
|
|
type: PagesModule
|
||
|
|
});
|
||
|
|
static ɵinj = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdefineInjector"]({
|
||
|
|
imports: [_angular_common__WEBPACK_IMPORTED_MODULE_5__.CommonModule, _core_common_module__WEBPACK_IMPORTED_MODULE_0__.CoreCommonModule, app_layout_components_content_header_content_header_module__WEBPACK_IMPORTED_MODULE_1__.ContentHeaderModule, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_6__.NgbModule, _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_7__.NgSelectModule, _angular_forms__WEBPACK_IMPORTED_MODULE_8__.FormsModule, _authentication_authentication_module__WEBPACK_IMPORTED_MODULE_2__.AuthenticationModule, _miscellaneous_miscellaneous_module__WEBPACK_IMPORTED_MODULE_3__.MiscellaneousModule]
|
||
|
|
});
|
||
|
|
}
|
||
|
|
|
||
|
|
(function () {
|
||
|
|
(typeof ngJitMode === "undefined" || ngJitMode) && _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵsetNgModuleScope"](PagesModule, {
|
||
|
|
imports: [_angular_common__WEBPACK_IMPORTED_MODULE_5__.CommonModule, _core_common_module__WEBPACK_IMPORTED_MODULE_0__.CoreCommonModule, app_layout_components_content_header_content_header_module__WEBPACK_IMPORTED_MODULE_1__.ContentHeaderModule, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_6__.NgbModule, _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_7__.NgSelectModule, _angular_forms__WEBPACK_IMPORTED_MODULE_8__.FormsModule, _authentication_authentication_module__WEBPACK_IMPORTED_MODULE_2__.AuthenticationModule, _miscellaneous_miscellaneous_module__WEBPACK_IMPORTED_MODULE_3__.MiscellaneousModule]
|
||
|
|
});
|
||
|
|
})();
|
||
|
|
|
||
|
|
/***/ })
|
||
|
|
|
||
|
|
}]);
|