"use strict";
(self["webpackChunkskote"] = self["webpackChunkskote"] || []).push([["src_app_account_account_module_ts"],{

/***/ 87185:
/*!***************************************************!*\
  !*** ./src/app/account/account-routing.module.ts ***!
  \***************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   AccountRoutingModule: () => (/* binding */ AccountRoutingModule)
/* harmony export */ });
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/router */ 75187);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ 65879);



const routes = [{
  path: 'auth',
  loadChildren: () => Promise.resolve(/*! import() */).then(__webpack_require__.bind(__webpack_require__, /*! ./auth/auth.module */ 78945)).then(m => m.AuthModule)
}];
class AccountRoutingModule {
  static #_ = this.ɵfac = function AccountRoutingModule_Factory(t) {
    return new (t || AccountRoutingModule)();
  };
  static #_2 = this.ɵmod = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineNgModule"]({
    type: AccountRoutingModule
  });
  static #_3 = this.ɵinj = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjector"]({
    imports: [_angular_router__WEBPACK_IMPORTED_MODULE_1__.RouterModule.forChild(routes), _angular_router__WEBPACK_IMPORTED_MODULE_1__.RouterModule]
  });
}
(function () {
  (typeof ngJitMode === "undefined" || ngJitMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵsetNgModuleScope"](AccountRoutingModule, {
    imports: [_angular_router__WEBPACK_IMPORTED_MODULE_1__.RouterModule],
    exports: [_angular_router__WEBPACK_IMPORTED_MODULE_1__.RouterModule]
  });
})();

/***/ }),

/***/ 91995:
/*!*******************************************!*\
  !*** ./src/app/account/account.module.ts ***!
  \*******************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   AccountModule: () => (/* binding */ AccountModule)
/* harmony export */ });
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/common */ 96814);
/* harmony import */ var _account_routing_module__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./account-routing.module */ 87185);
/* harmony import */ var _auth_auth_module__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./auth/auth.module */ 78945);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/core */ 65879);




class AccountModule {
  static #_ = this.ɵfac = function AccountModule_Factory(t) {
    return new (t || AccountModule)();
  };
  static #_2 = this.ɵmod = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdefineNgModule"]({
    type: AccountModule
  });
  static #_3 = this.ɵinj = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdefineInjector"]({
    imports: [_angular_common__WEBPACK_IMPORTED_MODULE_3__.CommonModule, _account_routing_module__WEBPACK_IMPORTED_MODULE_0__.AccountRoutingModule, _auth_auth_module__WEBPACK_IMPORTED_MODULE_1__.AuthModule]
  });
}
(function () {
  (typeof ngJitMode === "undefined" || ngJitMode) && _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵsetNgModuleScope"](AccountModule, {
    imports: [_angular_common__WEBPACK_IMPORTED_MODULE_3__.CommonModule, _account_routing_module__WEBPACK_IMPORTED_MODULE_0__.AccountRoutingModule, _auth_auth_module__WEBPACK_IMPORTED_MODULE_1__.AuthModule]
  });
})();

/***/ }),

/***/ 1731:
/*!**********************************************!*\
  !*** ./src/app/account/auth/auth-routing.ts ***!
  \**********************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   AuthRoutingModule: () => (/* binding */ AuthRoutingModule)
/* harmony export */ });
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/router */ 75187);
/* harmony import */ var _login2_login2_component__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./login2/login2.component */ 27669);
/* harmony import */ var _lockscreen2_lockscreen2_component__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./lockscreen2/lockscreen2.component */ 78935);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/core */ 65879);





const routes = [{
  path: 'login-2',
  component: _login2_login2_component__WEBPACK_IMPORTED_MODULE_0__.Login2Component
}, {
  path: 'lock-screen',
  component: _lockscreen2_lockscreen2_component__WEBPACK_IMPORTED_MODULE_1__.Lockscreen2Component
}];
class AuthRoutingModule {
  static #_ = this.ɵfac = function AuthRoutingModule_Factory(t) {
    return new (t || AuthRoutingModule)();
  };
  static #_2 = this.ɵmod = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdefineNgModule"]({
    type: AuthRoutingModule
  });
  static #_3 = this.ɵinj = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdefineInjector"]({
    imports: [_angular_router__WEBPACK_IMPORTED_MODULE_3__.RouterModule.forChild(routes), _angular_router__WEBPACK_IMPORTED_MODULE_3__.RouterModule]
  });
}
(function () {
  (typeof ngJitMode === "undefined" || ngJitMode) && _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵsetNgModuleScope"](AuthRoutingModule, {
    imports: [_angular_router__WEBPACK_IMPORTED_MODULE_3__.RouterModule],
    exports: [_angular_router__WEBPACK_IMPORTED_MODULE_3__.RouterModule]
  });
})();

/***/ }),

/***/ 78945:
/*!*********************************************!*\
  !*** ./src/app/account/auth/auth.module.ts ***!
  \*********************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   AuthModule: () => (/* binding */ AuthModule)
/* harmony export */ });
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @angular/common */ 96814);
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @angular/forms */ 56223);
/* harmony import */ var ngx_bootstrap_alert__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ngx-bootstrap/alert */ 72237);
/* harmony import */ var ngx_slick_carousel__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ngx-slick-carousel */ 54236);
/* harmony import */ var _shared_ui_ui_module__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../shared/ui/ui.module */ 52540);
/* harmony import */ var _login2_login2_component__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./login2/login2.component */ 27669);
/* harmony import */ var _auth_routing__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./auth-routing */ 1731);
/* harmony import */ var ngx_mask__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ngx-mask */ 43735);
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ 85406);
/* harmony import */ var _login_panel_login_panel_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./login-panel/login-panel.component */ 7521);
/* harmony import */ var _lockscreen2_lockscreen2_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./lockscreen2/lockscreen2.component */ 78935);
/* harmony import */ var _acerca_de_acerca_de_component__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./acerca-de/acerca-de.component */ 43989);
/* harmony import */ var src_app_pages_dashboards_dashboards_module__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! src/app/pages/dashboards/dashboards.module */ 44804);
/* harmony import */ var primeng_inputgroupaddon__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! primeng/inputgroupaddon */ 41757);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @angular/core */ 65879);



// Swiper Slider













class AuthModule {
  static #_ = this.ɵfac = function AuthModule_Factory(t) {
    return new (t || AuthModule)();
  };
  static #_2 = this.ɵmod = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵdefineNgModule"]({
    type: AuthModule
  });
  static #_3 = this.ɵinj = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵdefineInjector"]({
    providers: [(0,ngx_mask__WEBPACK_IMPORTED_MODULE_8__.provideNgxMask)()],
    imports: [_angular_common__WEBPACK_IMPORTED_MODULE_9__.CommonModule, _angular_forms__WEBPACK_IMPORTED_MODULE_10__.ReactiveFormsModule, _angular_forms__WEBPACK_IMPORTED_MODULE_10__.FormsModule, ngx_bootstrap_alert__WEBPACK_IMPORTED_MODULE_11__.AlertModule.forRoot(), _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_12__.NgbAlertModule, _shared_ui_ui_module__WEBPACK_IMPORTED_MODULE_0__.UIModule, _auth_routing__WEBPACK_IMPORTED_MODULE_2__.AuthRoutingModule, ngx_slick_carousel__WEBPACK_IMPORTED_MODULE_13__.SlickCarouselModule, src_app_pages_dashboards_dashboards_module__WEBPACK_IMPORTED_MODULE_6__.DashboardsModule, primeng_inputgroupaddon__WEBPACK_IMPORTED_MODULE_14__.InputGroupAddonModule]
  });
}
(function () {
  (typeof ngJitMode === "undefined" || ngJitMode) && _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵsetNgModuleScope"](AuthModule, {
    declarations: [_login2_login2_component__WEBPACK_IMPORTED_MODULE_1__.Login2Component, _login_panel_login_panel_component__WEBPACK_IMPORTED_MODULE_3__.LoginPanelComponent, _lockscreen2_lockscreen2_component__WEBPACK_IMPORTED_MODULE_4__.Lockscreen2Component, _acerca_de_acerca_de_component__WEBPACK_IMPORTED_MODULE_5__.AcercaDeComponent],
    imports: [_angular_common__WEBPACK_IMPORTED_MODULE_9__.CommonModule, _angular_forms__WEBPACK_IMPORTED_MODULE_10__.ReactiveFormsModule, _angular_forms__WEBPACK_IMPORTED_MODULE_10__.FormsModule, ngx_bootstrap_alert__WEBPACK_IMPORTED_MODULE_11__.AlertModule, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_12__.NgbAlertModule, _shared_ui_ui_module__WEBPACK_IMPORTED_MODULE_0__.UIModule, _auth_routing__WEBPACK_IMPORTED_MODULE_2__.AuthRoutingModule, ngx_slick_carousel__WEBPACK_IMPORTED_MODULE_13__.SlickCarouselModule, ngx_mask__WEBPACK_IMPORTED_MODULE_8__.NgxMaskDirective, ngx_mask__WEBPACK_IMPORTED_MODULE_8__.NgxMaskPipe, src_app_pages_dashboards_dashboards_module__WEBPACK_IMPORTED_MODULE_6__.DashboardsModule, primeng_inputgroupaddon__WEBPACK_IMPORTED_MODULE_14__.InputGroupAddonModule]
  });
})();

/***/ }),

/***/ 78935:
/*!*******************************************************************!*\
  !*** ./src/app/account/auth/lockscreen2/lockscreen2.component.ts ***!
  \*******************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   Lockscreen2Component: () => (/* binding */ Lockscreen2Component)
/* harmony export */ });
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @angular/forms */ 56223);
/* harmony import */ var _environments_environment__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../../environments/environment */ 20553);
/* harmony import */ var src_app_core_services_viewHelper_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! src/app/core/services/viewHelper.service */ 90556);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @angular/core */ 65879);
/* harmony import */ var _core_services_auth_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../core/services/auth.service */ 90304);
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @angular/router */ 75187);
/* harmony import */ var ngx_toastr__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ngx-toastr */ 2425);
/* harmony import */ var src_app_core_services_socket_connection_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! src/app/core/services/socket-connection.service */ 46295);
/* harmony import */ var src_app_core_services_stateful_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! src/app/core/services/stateful.service */ 689);
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @angular/common */ 96814);












function Lockscreen2Component_div_59_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "div", 56);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](1, " Contrase\u00F1a es necesaria ");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
  }
}
function Lockscreen2Component_div_60_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "div", 56);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](1, " Contrase\u00F1a debe tener m\u00E1s de 5 caracteres ");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
  }
}
function Lockscreen2Component_div_61_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "div", 56);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](1, " Contrase\u00F1a debe tener menos de 20 caracteres ");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
  }
}
const _c0 = a0 => ({
  "is-invalid": a0
});
const _c1 = (a0, a1) => ({
  "mdi-eye-off-outline": a0,
  "mdi-eye-outline": a1
});
class Lockscreen2Component {
  constructor(authenticationService, router, authService, formBuilder, toastr, socketConn, sf, vh) {
    this.authenticationService = authenticationService;
    this.router = router;
    this.authService = authService;
    this.formBuilder = formBuilder;
    this.toastr = toastr;
    this.socketConn = socketConn;
    this.sf = sf;
    this.vh = vh;
    this.unsubscribe = [];
    // set the currenr year
    this.year = new Date().getFullYear();
    this.version = _environments_environment__WEBPACK_IMPORTED_MODULE_0__.environment.version;
    this.versionApi = '0.0';
    this.licencia_msj = '';
    this.fieldTextType = false;
  }
  ngOnInit() {
    // document.body.classList.add('auth-body-bg');
    document.body.setAttribute('data-layout', '');
    this.setForm();
    this.currentUser = this.authenticationService.usuario;
  }
  ngOnDestroy() {
    this.unsubscribe.forEach(sb => sb.unsubscribe());
  }
  setForm() {
    this.lockform = this.formBuilder.group({
      password: ['', _angular_forms__WEBPACK_IMPORTED_MODULE_6__.Validators.compose([_angular_forms__WEBPACK_IMPORTED_MODULE_6__.Validators.required, _angular_forms__WEBPACK_IMPORTED_MODULE_6__.Validators.minLength(5), _angular_forms__WEBPACK_IMPORTED_MODULE_6__.Validators.maxLength(20)])]
    });
    document.getElementById('password').focus();
    this.vh.inicializar();
    this.vh.formGroup = this.lockform;
  }
  get f() {
    return this.lockform.controls;
  }
  volverLogin() {
    this.authenticationService.logout();
  }
  onSubmit() {
    // stop here if form is invalid
    if (this.lockform.invalid) {
      return;
    } else {
      if (_environments_environment__WEBPACK_IMPORTED_MODULE_0__.environment.defaultauth === 'API') {
        const sucursal = this.currentUser.Sucursal;
        const empresa = this.currentUser.Empresa;
        const lockSub = this.authService.login(this.currentUser.User.Nombre, this.f.password.value, this.currentUser.IdSucursal).subscribe(resp => {
          if (resp.Succeeded) {
            //Guardamos sucursal y empresa
            resp.Data.Sucursal = sucursal;
            resp.Data.Empresa = empresa;
            //guardamos en localstorage
            this.authService.setAuthFromLocalStorageData(resp.Data);
            //PM SINWEB-54
            //buscamos los datos del usuario
            const loginUsuario = this.authService.getUsuario(resp.Data.IdUsrUsuario).subscribe(user => {
              //guardamos en localstorage
              this.authService.setAuthFromLocalStorageUser(user.Data);
              this.router.navigateByUrl(this.sf.getState(this.sf.pagenames.BTN_VOLVER));
            });
          }
        });
        this.unsubscribe.push(lockSub);
      } else {
        //
      }
    }
  }
  toggleFieldTextType() {
    this.fieldTextType = !this.fieldTextType;
  }
  static #_ = this.ɵfac = function Lockscreen2Component_Factory(t) {
    return new (t || Lockscreen2Component)(_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵdirectiveInject"](_core_services_auth_service__WEBPACK_IMPORTED_MODULE_2__.AuthService), _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵdirectiveInject"](_angular_router__WEBPACK_IMPORTED_MODULE_7__.Router), _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵdirectiveInject"](_core_services_auth_service__WEBPACK_IMPORTED_MODULE_2__.AuthService), _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_6__.UntypedFormBuilder), _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵdirectiveInject"](ngx_toastr__WEBPACK_IMPORTED_MODULE_8__.ToastrService), _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵdirectiveInject"](src_app_core_services_socket_connection_service__WEBPACK_IMPORTED_MODULE_3__.SocketConnectionService), _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵdirectiveInject"](src_app_core_services_stateful_service__WEBPACK_IMPORTED_MODULE_4__.StatefulService), _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵdirectiveInject"](src_app_core_services_viewHelper_service__WEBPACK_IMPORTED_MODULE_1__.ViewHelperService));
  };
  static #_2 = this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵdefineComponent"]({
    type: Lockscreen2Component,
    selectors: [["app-lockscreen2"]],
    features: [_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵProvidersFeature"]([src_app_core_services_viewHelper_service__WEBPACK_IMPORTED_MODULE_1__.ViewHelperService])],
    decls: 93,
    vars: 20,
    consts: [[1, "acount-pages", "custom-login", "page-content"], [1, "container", "p-0"], [1, "row", "justify-content-center"], [1, "col-12", "col-xl-10", "px-0"], [1, "card", "m-0"], [1, "card-body", "d-flex", "justify-content-center", "align-items-center", "p-0"], [1, "col-6", "d-none", "d-md-block", "position-relative", "p-5"], [1, "my-5"], ["href", "https://sinergial.com.ar/", "target", "_blank", "rel", "noopener noreferrer", 1, "d-flex", "auth-logo", "justify-content-center"], ["src", "assets/images/logo-dark.png", "alt", "", "height", "70", 1, "auth-logo-dark"], ["src", "assets/images/logo-light.png", "alt", "", "height", "70", 1, "auth-logo-light"], [1, "d-flex", "flex-column", "justify-content-center", "mt-5", "text-center"], [1, "col"], ["href", "https://www.facebook.com/Oliverinformatica/", "target", "_blank", "rel", "noopener noreferrer"], [1, "mdi", "mdi-facebook", "font-size-24", "text-primary"], ["href", "https://www.instagram.com/oliverinformatica/", "target", "_blank", "rel", "noopener noreferrer"], [1, "mdi", "mdi-instagram", "font-size-24", "text-primary"], ["href", "https://www.linkedin.com/company/oliver-inform%C3%A1tica/", "target", "_blank", "rel", "noopener noreferrer"], [1, "mdi", "mdi-linkedin", "font-size-24", "text-primary"], ["href", "https://wa.me/5493585175140", "target", "_blank", "rel", "noopener noreferrer", 1, "text-muted"], [1, "mdi", "mdi-whatsapp", "font-size-24", "text-primary"], ["href", "https://wa.me/5493585091929", "target", "_blank", "rel", "noopener noreferrer", 1, "text-muted"], [1, "mb-0"], ["href", "https://www.oliver.ar/", "target", "_blank", "rel", "noopener noreferrer"], [1, "position-absolute", "text-center", 2, "bottom", "0", "left", "0", "right", "0"], [1, "col-12", "col-md-6", "p-5", "text-white", "position-relative", "bg-primary"], [1, "my-auto"], [1, "my-5", "d-block", "d-md-none"], ["src", "assets/images/logo-light.png", "alt", "", "height", "70"], [1, "text-danger"], [1, "mt-4"], [3, "formGroup", "ngSubmit"], [1, "user-thumb", "text-center", "mb-4"], ["src", "assets/images/users/avatar-1.jpg", "alt", "thumbnail", 1, "rounded-circle", "img-thumbnail", "avatar-md"], [1, "font-size-15", "mt-3"], [1, "mb-3"], ["for", "userpassword"], [1, "input-group"], ["formControlName", "password", "autocomplete", "off", "id", "password", "placeholder", "Insertar contrase\u00F1a", "aria-label", "Password", "aria-describedby", "password-addon", 1, "form-control", 3, "type", "ngClass"], [1, "input-group-prepend"], [1, "input-group-text", 3, "click"], [1, "mdi", 3, "ngClass"], ["class", "invalid-feedback animate__animated animate__shakeX", 4, "ngIf"], [1, "text-end"], ["type", "submit", 1, "btn", "btn-dark", "w-md", "waves-effect", "waves-light", 3, "disabled"], [1, "mt-5", "text-center"], [1, "fw-medium", "text-dark", 2, "cursor", "pointer", 3, "click"], [1, "d-flex", "d-md-none", "flex-column", "justify-content-center", "mt-2", "text-center"], [1, "mdi", "mdi-facebook", "font-size-24", "text-white"], [1, "mdi", "mdi-instagram", "font-size-24", "text-white"], [1, "mdi", "mdi-linkedin", "font-size-24", "text-white"], ["href", "https://wa.me/5493585175140", "target", "_blank", "rel", "noopener noreferrer", 1, "text-white"], [1, "mdi", "mdi-whatsapp", "font-size-24", "text-white"], ["href", "https://wa.me/5493585091929", "target", "_blank", "rel", "noopener noreferrer", 1, "text-white"], ["href", "https://www.oliver.ar/", "target", "_blank", "rel", "noopener noreferrer", 1, "text-white"], [1, "position-absolute", "text-center", "d-block", "d-md-none", 2, "bottom", "0", "left", "0", "right", "0"], [1, "invalid-feedback", "animate__animated", "animate__shakeX"]],
    template: function Lockscreen2Component_Template(rf, ctx) {
      if (rf & 1) {
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "div")(1, "div", 0)(2, "div", 1)(3, "div", 2)(4, "div", 3)(5, "div", 4)(6, "div", 5)(7, "div", 6)(8, "div", 7)(9, "a", 8);
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](10, "img", 9)(11, "img", 10);
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](12, "div", 11)(13, "div", 12)(14, "a", 13);
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](15, "i", 14);
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](16, "a", 15);
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](17, "i", 16);
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](18, "a", 17);
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](19, "i", 18);
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](20, "div", 12)(21, "a", 19);
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](22, "i", 20);
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](23, " Comercial");
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](24, " \u00A0 ");
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](25, "a", 21);
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](26, "i", 20);
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](27, " HelpDesk");
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](28, "p", 22)(29, "a", 23);
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](30, "www.oliver.ar");
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](31);
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](32, "div", 24)(33, "p");
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](34);
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()()();
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](35, "div", 25)(36, "div", 26)(37, "div", 27)(38, "a", 8);
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](39, "img", 28);
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](40, "div")(41, "h5", 29);
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](42, "Sistema Bloqueado");
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](43, "p", 29);
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](44, " Ingrese su contrase\u00F1a para desbloquear el sistema. ");
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](45, "div", 30)(46, "form", 31);
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵlistener"]("ngSubmit", function Lockscreen2Component_Template_form_ngSubmit_46_listener() {
          return ctx.onSubmit();
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](47, "div", 32);
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](48, "img", 33);
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](49, "h5", 34);
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](50);
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](51, "div", 35)(52, "label", 36);
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](53, "Contrase\u00F1a");
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](54, "div", 37);
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](55, "input", 38);
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](56, "div", 39)(57, "span", 40);
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵlistener"]("click", function Lockscreen2Component_Template_span_click_57_listener() {
          return ctx.toggleFieldTextType();
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](58, "i", 41);
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](59, Lockscreen2Component_div_59_Template, 2, 0, "div", 42)(60, Lockscreen2Component_div_60_Template, 2, 0, "div", 42)(61, Lockscreen2Component_div_61_Template, 2, 0, "div", 42);
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](62, "div", 43)(63, "button", 44);
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](64, " DESBLOQUEAR ");
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()()();
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](65, "div", 45)(66, "p");
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](67, " No eres tu? Ir a ");
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](68, "a", 46);
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵlistener"]("click", function Lockscreen2Component_Template_a_click_68_listener() {
          return ctx.volverLogin();
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](69, " Iniciar sesi\u00F3n ");
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()()()();
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](70, "div", 47)(71, "div", 12)(72, "a", 13);
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](73, "i", 48);
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](74, "a", 15);
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](75, "i", 49);
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](76, "a", 17);
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](77, "i", 50);
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](78, "div", 12)(79, "a", 51);
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](80, "i", 52);
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](81, " Comercial");
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](82, " \u00A0 ");
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](83, "a", 53);
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](84, "i", 52);
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](85, " HelpDesk");
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](86, "p", 22)(87, "a", 54);
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](88, "www.oliver.ar");
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](89);
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](90, "div", 55)(91, "p");
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](92);
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()()()()()()()()()()();
      }
      if (rf & 2) {
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](31);
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate1"](" | \u00A9 ", ctx.year, ". ");
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](3);
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate2"]("Versi\u00F3n ", ctx.version, " - API ", ctx.versionApi, "");
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](12);
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("formGroup", ctx.lockform);
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](4);
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate1"](" ", ctx.currentUser.User.Nombre, " ");
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](5);
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("type", ctx.fieldTextType ? "text" : "password")("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵpureFunction1"](15, _c0, ctx.vh.isControlInvalid("password")));
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](3);
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵpureFunction2"](17, _c1, !ctx.fieldTextType, ctx.fieldTextType));
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", ctx.vh.controlHasError("required", "password"));
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", ctx.vh.controlHasError("minlength", "password"));
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", ctx.vh.controlHasError("maxlength", "password"));
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](2);
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("disabled", !ctx.lockform.valid);
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](26);
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate1"](" | \u00A9 ", ctx.year, ". ");
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](3);
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate2"]("Versi\u00F3n ", ctx.version, " - API ", ctx.versionApi, "");
      }
    },
    dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_9__.NgClass, _angular_common__WEBPACK_IMPORTED_MODULE_9__.NgIf, _angular_forms__WEBPACK_IMPORTED_MODULE_6__["ɵNgNoValidate"], _angular_forms__WEBPACK_IMPORTED_MODULE_6__.DefaultValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_6__.NgControlStatus, _angular_forms__WEBPACK_IMPORTED_MODULE_6__.NgControlStatusGroup, _angular_forms__WEBPACK_IMPORTED_MODULE_6__.FormGroupDirective, _angular_forms__WEBPACK_IMPORTED_MODULE_6__.FormControlName],
    styles: [".custom-login[_ngcontent-%COMP%] {\n  padding-top: 3rem;\n  margin-top: 6rem;\n  margin-bottom: 3rem;\n  padding: 94px 18px 60px 18px;\n}\n.custom-login[_ngcontent-%COMP%]   .card[_ngcontent-%COMP%] {\n  border-radius: 1rem;\n  overflow: hidden;\n}\n@media screen and (max-width: 767px) {\n  .custom-login[_ngcontent-%COMP%] {\n    margin-top: 0;\n  }\n}\n@media screen and (max-width: 567px) {\n  .custom-login[_ngcontent-%COMP%] {\n    min-height: 100dvh;\n    background-color: var(--bs-primary);\n    padding-top: 0;\n    margin-bottom: 0;\n  }\n  .custom-login[_ngcontent-%COMP%]   .container[_ngcontent-%COMP%] {\n    min-height: 100dvh;\n  }\n  .custom-login[_ngcontent-%COMP%]   .container[_ngcontent-%COMP%]   .row[_ngcontent-%COMP%] {\n    min-height: 100dvh;\n  }\n  .custom-login[_ngcontent-%COMP%]   .container[_ngcontent-%COMP%]   .row[_ngcontent-%COMP%]   div.col-12[_ngcontent-%COMP%] {\n    min-height: 100dvh;\n  }\n  .custom-login[_ngcontent-%COMP%]   .container[_ngcontent-%COMP%]   .row[_ngcontent-%COMP%]   div.col-12[_ngcontent-%COMP%]   .card[_ngcontent-%COMP%] {\n    border-radius: 0;\n    background-color: var(--bs-primary) !important;\n    min-height: 100dvh;\n    box-shadow: none;\n  }\n  .custom-login[_ngcontent-%COMP%]   .container[_ngcontent-%COMP%]   .row[_ngcontent-%COMP%]   div.col-12[_ngcontent-%COMP%]   .card[_ngcontent-%COMP%]   .card-body[_ngcontent-%COMP%] {\n    background-color: var(--bs-primary) !important;\n    min-height: 100dvh;\n    box-shadow: none;\n  }\n}"]
  });
}

/***/ }),

/***/ 7521:
/*!*******************************************************************!*\
  !*** ./src/app/account/auth/login-panel/login-panel.component.ts ***!
  \*******************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   LoginPanelComponent: () => (/* binding */ LoginPanelComponent)
/* harmony export */ });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ 65879);
/* harmony import */ var ngx_slick_carousel__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ngx-slick-carousel */ 54236);


class LoginPanelComponent {
  constructor() {
    this.slideConfig = {
      slidesToShow: 1,
      slidesToScroll: 1,
      arrows: false,
      dots: true,
      autoplay: true,
      infinite: true
    };
  }
  ngOnInit() {}
  static #_ = this.ɵfac = function LoginPanelComponent_Factory(t) {
    return new (t || LoginPanelComponent)();
  };
  static #_2 = this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({
    type: LoginPanelComponent,
    selectors: [["app-login-panel"]],
    decls: 37,
    vars: 1,
    consts: [[1, "auth-full-bg", "pt-lg-5", "p-4"], [1, "w-100"], [1, "bg-overlay"], [1, "d-flex", "h-100", "flex-column"], [1, "p-4", "mt-auto"], [1, "row", "justify-content-center"], [1, "col-lg-7"], [1, "text-center", "bg-overlay-small"], [1, "mb-3"], [1, "text-dark"], ["dir", "ltr"], ["dir", "ltr", 1, "owl-theme", "auth-review-carousel", 3, "config"], ["ngxSlickItem", "", 1, "item"], [1, "py-3"], [1, "font-size-16", "text-dark"], [1, "font-size-16", "mb-4"], [1, "float-end", "text-xl-start", "text-center"], ["src", "assets/images/logo-oliver.png", "alt", "", "height", "70", 1, "auth-logo-dark"]],
    template: function LoginPanelComponent_Template(rf, ctx) {
      if (rf & 1) {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 0)(1, "div", 1);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](2, "div", 2);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "div", 3)(4, "div", 4)(5, "div", 5)(6, "div", 6)(7, "div", 7)(8, "h4", 8);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](9, " Descubr\u00ED qu\u00E9 puede hacer ");
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](10, "span", 9);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](11, "Sinergial ADVANCE");
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](12, " por tu empresa. ");
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](13, "div", 10)(14, "ngx-slick-carousel", 11)(15, "div", 12)(16, "div", 13)(17, "div")(18, "h4", 14);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](19, " \u00BFQu\u00E9 es Sinergial ADVANCE? ");
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](20, "p", 15);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](21, " El software de gesti\u00F3n integral, que con diferentes versiones se adapta a tus necesidades. ");
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()()();
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](22, "div", 12)(23, "div", 13)(24, "div")(25, "h4", 14);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](26, " Haga crecer su empresa con M\u00F3dulos de Sinergial ADVANCE ");
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](27, "p", 15);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](28, " Los m\u00F3dulos agregan a la plataforma funcionalidades que se adaptan a sus necesidades. ");
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()()();
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](29, "div", 12)(30, "div", 13)(31, "div");
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](32, "h4", 14);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](33, "p", 15);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](34, " \" Desde hace m\u00E1s de 20 a\u00F1os acompa\u00F1amos y potenciamos el crecimiento de nuestros clientes \" ");
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()()()()()()()()();
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](35, "div", 16);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](36, "img", 17);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()()()();
      }
      if (rf & 2) {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](14);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("config", ctx.slideConfig);
      }
    },
    dependencies: [ngx_slick_carousel__WEBPACK_IMPORTED_MODULE_1__.SlickCarouselComponent, ngx_slick_carousel__WEBPACK_IMPORTED_MODULE_1__.SlickItemDirective]
  });
}

/***/ }),

/***/ 27669:
/*!*********************************************************!*\
  !*** ./src/app/account/auth/login2/login2.component.ts ***!
  \*********************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   Login2Component: () => (/* binding */ Login2Component)
/* harmony export */ });
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! @angular/forms */ 56223);
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! rxjs/operators */ 94664);
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! rxjs/operators */ 81374);
/* harmony import */ var _environments_environment__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../../environments/environment */ 20553);
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! rxjs */ 22096);
/* harmony import */ var src_app_core_services_alertCustom_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! src/app/core/services/alertCustom.service */ 53206);
/* harmony import */ var src_app_core_services_viewHelper_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! src/app/core/services/viewHelper.service */ 90556);
/* harmony import */ var src_app_account_auth_acerca_de_acerca_de_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! src/app/account/auth/acerca-de/acerca-de.component */ 43989);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! @angular/core */ 65879);
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! @angular/router */ 75187);
/* harmony import */ var _core_services_auth_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../core/services/auth.service */ 90304);
/* harmony import */ var _core_services_authfake_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../core/services/authfake.service */ 39634);
/* harmony import */ var ngx_toastr__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ngx-toastr */ 2425);
/* harmony import */ var src_app_core_services_core_sucursal_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! src/app/core/services/core/sucursal.service */ 38396);
/* harmony import */ var src_app_core_services_core_empresa_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! src/app/core/services/core/empresa.service */ 10984);
/* harmony import */ var src_app_core_services_stateful_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! src/app/core/services/stateful.service */ 689);
/* harmony import */ var src_app_core_services_configGeneral_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! src/app/core/services/configGeneral.service */ 99757);
/* harmony import */ var src_app_core_services_config_service__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! src/app/core/services/config.service */ 56375);
/* harmony import */ var src_app_core_services_socket_connection_service__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! src/app/core/services/socket-connection.service */ 46295);
/* harmony import */ var _angular_service_worker__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! @angular/service-worker */ 70040);
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ 85406);
/* harmony import */ var src_app_core_services_event_service__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! src/app/core/services/event.service */ 42608);
/* harmony import */ var src_app_core_services_core_infoAPI_service__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! src/app/core/services/core/infoAPI.service */ 63384);
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! @angular/common */ 96814);
/* harmony import */ var _shared_ui_select_loading_select_loading_component__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../../../shared/ui/select-loading/select-loading.component */ 24718);
/* harmony import */ var _pages_dashboards_panel_soporte_panel_soporte_component__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../../../pages/dashboards/panel-soporte/panel-soporte.component */ 73556);




























function Login2Component_div_51_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](0, "div", 59);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](1, " Usuario es necesario ");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]();
  }
}
function Login2Component_div_52_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](0, "div", 59);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](1, " Usuario debe tener m\u00E1s de 5 caracteres ");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]();
  }
}
function Login2Component_div_53_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](0, "div", 59);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](1, " Usuario debe tener menos de 20 caracteres ");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]();
  }
}
function Login2Component_div_62_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](0, "div", 59);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](1, " Contrase\u00F1a es necesaria ");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]();
  }
}
function Login2Component_div_63_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](0, "div", 59);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](1, " Contrase\u00F1a debe tener m\u00E1s de 5 caracteres ");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]();
  }
}
function Login2Component_div_64_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](0, "div", 59);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](1, " Contrase\u00F1a debe tener menos de 20 caracteres ");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]();
  }
}
const _c0 = a0 => ({
  "is-invalid": a0
});
const _c1 = (a0, a1) => ({
  "mdi-eye-off-outline": a0,
  "mdi-eye-outline": a1
});
/**
 * Login-2 component
 */
class Login2Component {
  constructor(formBuilder, route, router, authService, authFackservice, toastr, sucursalServices, empresaService, sf, configGralService, config, socketConn, updateSW, vh, modalService, alert, eventService, infoApiService) {
    this.formBuilder = formBuilder;
    this.route = route;
    this.router = router;
    this.authService = authService;
    this.authFackservice = authFackservice;
    this.toastr = toastr;
    this.sucursalServices = sucursalServices;
    this.empresaService = empresaService;
    this.sf = sf;
    this.configGralService = configGralService;
    this.config = config;
    this.socketConn = socketConn;
    this.updateSW = updateSW;
    this.vh = vh;
    this.modalService = modalService;
    this.alert = alert;
    this.eventService = eventService;
    this.infoApiService = infoApiService;
    this.LICENCIA_INHABILITADA = 'Su número de licencia está inhabilitado, por favor contáctese con nuestras oficinas';
    this.LICENCIA_INVALIDA = 'El número de licencia ingresado no es válido, por favor verifique que sea correcto.';
    this.LICENCIA_ERROR = 'Se produjo un error de conexión al intentar validar el número de licencia.';
    this.REGISTRO_SERIAL_EXITO = 'La licencia del cliente es la siguiente: ';
    this.LICENCIA_NULL = 'No se ha abtenido el número de licencia';
    this.unsubscribe = [];
    this.accessToken = '';
    this.fieldTextType = false;
    this.year = new Date().getFullYear();
    this.version = _environments_environment__WEBPACK_IMPORTED_MODULE_0__.environment.version;
    this.versionApi = '0.0';
    this.mensajeAlerta = '';
    this.licencia_msj = '';
    this.submitted = false;
    this.error = '';
    // MC SINWEB-293 Nueva forma de comprobacion de actualizacion disponible
    this.updateSW.versionUpdates.subscribe(event => {
      switch (event.type) {
        case 'VERSION_DETECTED':
          console.log(`(Login) Descargando nueva version: ${event.version.hash}`);
          break;
        case 'VERSION_READY':
          document.location.reload();
          break;
      }
    });
  }
  // set the currenr year
  ngOnInit() {
    //this.obtenerDatosApi();
    // document.body.classList.add('auth-body-bg');
    document.body.setAttribute('data-layout', '');
    this.setForm();
    this.cargarEmpresas();
    this.returnUrl = this.route.snapshot.queryParams['returnUrl'] || '/';
  }
  ngOnDestroy() {
    this.unsubscribe.forEach(sb => sb.unsubscribe());
  }
  obtenerDatosApi() {
    let data = {};
    this.infoApiService.fetch(data).subscribe(data => {
      this.versionApi = data.Data.Version.split('.').slice(0, 2).join('.');
    }, error => {
      this.versionApi = 'ERROR';
    });
  }
  setForm() {
    this.loginForm = this.formBuilder.group({
      usuario: [this.sf.getState(this.sf.pagenames.USUARIO_RECUERDAME), _angular_forms__WEBPACK_IMPORTED_MODULE_17__.Validators.compose([_angular_forms__WEBPACK_IMPORTED_MODULE_17__.Validators.required, _angular_forms__WEBPACK_IMPORTED_MODULE_17__.Validators.minLength(5), _angular_forms__WEBPACK_IMPORTED_MODULE_17__.Validators.maxLength(20)])],
      password: ['', _angular_forms__WEBPACK_IMPORTED_MODULE_17__.Validators.compose([_angular_forms__WEBPACK_IMPORTED_MODULE_17__.Validators.required, _angular_forms__WEBPACK_IMPORTED_MODULE_17__.Validators.minLength(5), _angular_forms__WEBPACK_IMPORTED_MODULE_17__.Validators.maxLength(20)])],
      empresa: ['-1', [_angular_forms__WEBPACK_IMPORTED_MODULE_17__.Validators.required]],
      sucursal: ['-1', [_angular_forms__WEBPACK_IMPORTED_MODULE_17__.Validators.required]],
      checkRecordar: [this.sf.getState(this.sf.pagenames.USUARIO_RECUERDAME) !== '']
    });
    if (this.sf.getState(this.sf.pagenames.USUARIO_RECUERDAME) !== '') {
      document.getElementById('password').focus();
    } else {
      document.getElementById('usuario').focus();
    }
    this.vh.inicializar();
    this.vh.formGroup = this.loginForm;
    this.unsubscribe.push(this.loginForm.controls.empresa.valueChanges.subscribe(idEmpresa => {
      this.loginForm.controls.sucursal.setValue('');
      this.cargarSucursales(idEmpresa);
    }));
  }
  cargarEmpresas() {
    this.empresas = [];
    let datos = {};
    const susc = this.empresaService.fetch(datos, null, {
      header: true
    }).subscribe(resp => {
      this.formatSelectEmpresa(resp.Data);
      if (resp.Data.length == 1) {
        this.f.empresa.setValue(resp.Data[0].Id);
      } else {
        this.f.empresa.setValue(-1);
      }
    });
    susc.unsubscribe;
  }
  formatSelectEmpresa(data) {
    data.forEach(element => {
      this.empresas.push({
        Id: element.Id,
        Nombre: element.NombreComercial
      });
    });
  }
  cargarSucursales(idEmpresa) {
    this.sucursales = [];
    let datos = {
      IdEmpresa: idEmpresa
    };
    const susc = this.sucursalServices.fetch(datos, null, {
      header: true
    }).subscribe(resp => {
      this.sucursales = resp.Data;
      if (resp.Data.length == 1) {
        this.f.sucursal.setValue(resp.Data[0].Id);
      } else {
        this.f.sucursal.setValue(-1);
      }
    });
    susc.unsubscribe;
  }
  // convenience getter for easy access to form fields
  get f() {
    return this.loginForm.controls;
  }
  /**
   * Form submit
   */
  onSubmit() {
    this.submitted = true;
    // stop here if form is invalid
    if (this.loginForm.invalid) {
      return;
    } else {
      //guardamos el usuario
      if (this.getCheckRecordar()) {
        this.sf.changeState(this.sf.pagenames.USUARIO_RECUERDAME, this.f.usuario.value);
      } else {
        this.sf.changeState(this.sf.pagenames.USUARIO_RECUERDAME, '');
      }
      if (_environments_environment__WEBPACK_IMPORTED_MODULE_0__.environment.defaultauth === 'API') {
        // this.loginAPI();
        this.config.cargarConfig();
        this.verificarLicencia();
      } else {
        this.login();
      }
    }
  }
  /* PM SINWEB-233  */
  verificarLicencia() {
    let modoDesarrollo = this.config.config.cliente.validacion.includes('i02B');
    if (this.config.config.cliente.serial == '') {
      this.abrirModalAcercaDe(modoDesarrollo);
    } else {
      this.validarLicencia(modoDesarrollo);
    }
  }
  abrirModalAcercaDe(modoDesarrollo) {
    const modalRef = this.modalService.open(src_app_account_auth_acerca_de_acerca_de_component__WEBPACK_IMPORTED_MODULE_3__.AcercaDeComponent, {
      size: 'md',
      scrollable: true
    });
    modalRef.componentInstance.modoAcercaDe = false;
    modalRef.result.then(data => {
      if (data.licencia != '') {
        this.registrarLicencia(data.licencia);
        this.validarLicencia(modoDesarrollo, data);
      } else {
        this.toastr.error(this.LICENCIA_NULL);
      }
    }, () => {});
  }
  validarLicencia(modoDesarrollo, dataModal) {
    const LicenciaSub = this.authService.checkLicencia(this.config.config.cliente.serial, modoDesarrollo).subscribe(licencia => {
      if (!licencia.activo) {
        this.toastr.error(this.LICENCIA_INHABILITADA);
      } else {
        if (licencia.error && (!this.authService.fechaLicenciaValida() || dataModal !== undefined)) {
          switch (licencia.status) {
            case 400:
              this.toastr.error(this.LICENCIA_INVALIDA);
              break;
            case 404:
              this.toastr.error(this.LICENCIA_ERROR);
              break;
            case 0:
              this.toastr.error(this.LICENCIA_ERROR);
              break;
            default:
              this.toastr.error(this.LICENCIA_ERROR);
              break;
          }
          this.eliminarLicencia();
        } else {
          if (!dataModal) {
            licencia.desarrollo = modoDesarrollo;
            this.authService.setLicencia(licencia);
            this.loginAPI();
          } else {
            let detalle = '<strong>Serial: </strong><br>' + this.config.config.cliente.serial + '<br>' + '<strong>Validación: </strong><br>' + dataModal.validacion;
            this.alert.showDetails(this.REGISTRO_SERIAL_EXITO, detalle);
          }
        }
      }
    });
    this.unsubscribe.push(LicenciaSub);
  }
  registrarLicencia(licencia) {
    //cambiar valor de page.json de cliente.serial por el valor de licencia
    this.config.config.cliente.serial = this.authService.encryptLicencia(licencia);
  }
  eliminarLicencia() {
    this.config.config.cliente.serial = '';
    this.authService.eliminarLicencia();
  }
  loginAPI() {
    // MC Sprint 28 Se aplican cambios para obtener token de API Integra
    this.authService.login(this.f.usuario.value, this.f.password.value, this.f.sucursal.value).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_18__.switchMap)(resp => {
      if (resp.Succeeded) {
        this.accessToken = resp.Data.Token;
        //Guardamos sucursal y empresa
        const formData = this.loginForm.value;
        resp.Data.Sucursal = this.getValue(this.sucursales, formData.sucursal).Nombre;
        resp.Data.Empresa = this.getValue(this.empresas, formData.empresa).Nombre; //this.getValue(this.empresas,formData.empresa);
        //guardamos en localstorage
        this.authService.setAuthFromLocalStorageData(resp.Data);
        //PM SINWEB-54
        // this.socketConn.InicializarConnection();
        //buscamos los datos del usuario
        this.getUsuario(resp.Data.IdUsrUsuario);
        //SP SINWEB-88 se carga la configuracion.
        //this.configGralService.cargarConfig();
        return this.authService.getIntegraClientCredentials();
      } else {
        return (0,rxjs__WEBPACK_IMPORTED_MODULE_19__.of)(null);
      }
    }), (0,rxjs_operators__WEBPACK_IMPORTED_MODULE_18__.switchMap)(respApiClientCred => {
      if (respApiClientCred.Succeeded) {
        const body = {
          client_id: respApiClientCred.Data.ClientId,
          secret_key: respApiClientCred.Data.SecretKey
        };
        return this.authService.authenticateIntegra(body);
      } else {
        return (0,rxjs__WEBPACK_IMPORTED_MODULE_19__.of)(null);
      }
    })).subscribe(respAuthInt => {
      if (respAuthInt) {
        const authInt = {
          token: respAuthInt.token,
          expiracion: respAuthInt.expiracion
        };
        this.authService.setAuthFromLocalStorageIntegra(authInt);
      }
    });
  }
  getUsuario(IdUsrUsuario) {
    const loginUsuario = this.authService.getUsuario(IdUsrUsuario).subscribe(user => {
      if (user.Succeeded) {
        //guardamos en localstorage
        this.authService.setAuthFromLocalStorageUser(user.Data);
        //SINWEB-72 Buscamos el empleado
        if (user.Data.length !== 0) {
          //PM SINWEB-93 verificamos el id del usuario en las cookies
          this.checkStateful(user.Data.Id);
          this.configGralService.cargarConfig();
          this.getEmpleado(user.Data.Id);
        } else {
          this.toastr.error('Error');
        }
      }
    });
    this.unsubscribe.push(loginUsuario);
  }
  getEmpleado(userId) {
    const loginEmpleado = this.authService.getEmpleado(userId).subscribe(empleado => {
      if (empleado.Succeeded) {
        if (empleado.Data.length !== 0) {
          this.authService.setAuthFromLocalStorageEmpleado(empleado.Data[0]);
        } else {
          this.toastr.warning('El usuario no tiene empleado asignado');
        }
        //SINWEB-14 Buscamos los permisos de usuario
        this.getPermisos(userId);
      }
    }, error => {
      this.getPermisos(userId);
    });
    this.unsubscribe.push(loginEmpleado);
  }
  getPermisos(userId) {
    const loginPermiso = this.authService.getPermisos(userId, this.f.sucursal.value).subscribe(permisos => {
      if (permisos.Succeeded) {
        this.authService.setPermisos(permisos.Data);
        this.router.navigateByUrl('/inicio');
      }
    }, error => {
      this.router.navigateByUrl('/inicio');
      //SINWEB-14 Buscamos los permisos de usuario
    });
    this.unsubscribe.push(loginPermiso);
  }
  login() {
    this.authFackservice.login(this.f.usuario.value, this.f.password.value).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_20__.first)()).subscribe(data => {
      this.router.navigate(['/inicio']);
    }, error => {
      this.error = error ? error : '';
    });
  }
  getValue(conjunto, idValue) {
    return conjunto.find(s => s.Id == idValue);
  }
  checkStateful(idUsr) {
    this.sf.changeDefaultValue(this.sf.pagenames.USUARIO, idUsr);
    const usrState = this.sf.getState(this.sf.pagenames.USUARIO);
    //Si el usuario es diferente al almacenado en cookie
    if (idUsr !== Number(usrState)) {
      //eliminamos estados almacenados en cookie
      this.sf.deleteAllStates();
      this.sf.changeState(this.sf.pagenames.USUARIO, idUsr);
    }
  }
  getCheckRecordar() {
    return this.f.checkRecordar.value;
  }
  setCheckRecordar() {
    this.f.checkRecordar.setValue(!this.getCheckRecordar());
  }
  toggleFieldTextType() {
    this.fieldTextType = !this.fieldTextType;
  }
  static #_ = this.ɵfac = function Login2Component_Factory(t) {
    return new (t || Login2Component)(_angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_17__.UntypedFormBuilder), _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵdirectiveInject"](_angular_router__WEBPACK_IMPORTED_MODULE_21__.ActivatedRoute), _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵdirectiveInject"](_angular_router__WEBPACK_IMPORTED_MODULE_21__.Router), _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵdirectiveInject"](_core_services_auth_service__WEBPACK_IMPORTED_MODULE_4__.AuthService), _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵdirectiveInject"](_core_services_authfake_service__WEBPACK_IMPORTED_MODULE_5__.AuthfakeauthenticationService), _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵdirectiveInject"](ngx_toastr__WEBPACK_IMPORTED_MODULE_22__.ToastrService), _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵdirectiveInject"](src_app_core_services_core_sucursal_service__WEBPACK_IMPORTED_MODULE_6__.SucursalService), _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵdirectiveInject"](src_app_core_services_core_empresa_service__WEBPACK_IMPORTED_MODULE_7__.EmpresaService), _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵdirectiveInject"](src_app_core_services_stateful_service__WEBPACK_IMPORTED_MODULE_8__.StatefulService), _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵdirectiveInject"](src_app_core_services_configGeneral_service__WEBPACK_IMPORTED_MODULE_9__.ConfigGeneralService), _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵdirectiveInject"](src_app_core_services_config_service__WEBPACK_IMPORTED_MODULE_10__.ConfigService), _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵdirectiveInject"](src_app_core_services_socket_connection_service__WEBPACK_IMPORTED_MODULE_11__.SocketConnectionService), _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵdirectiveInject"](_angular_service_worker__WEBPACK_IMPORTED_MODULE_23__.SwUpdate), _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵdirectiveInject"](src_app_core_services_viewHelper_service__WEBPACK_IMPORTED_MODULE_2__.ViewHelperService), _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵdirectiveInject"](_ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_24__.NgbModal), _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵdirectiveInject"](src_app_core_services_alertCustom_service__WEBPACK_IMPORTED_MODULE_1__.AlertCustomService), _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵdirectiveInject"](src_app_core_services_event_service__WEBPACK_IMPORTED_MODULE_12__.EventService), _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵdirectiveInject"](src_app_core_services_core_infoAPI_service__WEBPACK_IMPORTED_MODULE_13__.InfoAPIService));
  };
  static #_2 = this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵdefineComponent"]({
    type: Login2Component,
    selectors: [["app-login2"]],
    features: [_angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵProvidersFeature"]([src_app_core_services_viewHelper_service__WEBPACK_IMPORTED_MODULE_2__.ViewHelperService, src_app_core_services_alertCustom_service__WEBPACK_IMPORTED_MODULE_1__.AlertCustomService])],
    decls: 104,
    vars: 40,
    consts: [[1, "acount-pages", "custom-login", "page-content"], [1, "container", "p-0"], [1, "row", "justify-content-center"], [1, "col-12", "col-xl-10", "px-0"], [1, "card", "m-0"], [1, "card-body", "d-flex", "justify-content-center", "align-items-center", "p-0"], [1, "col-6", "d-none", "d-md-block", "position-relative", "p-5"], [1, "my-5"], ["href", "https://sinergial.com.ar/", "target", "_blank", "rel", "noopener noreferrer", 1, "d-flex", "auth-logo", "justify-content-center"], ["src", "assets/images/logo-dark.png", "alt", "", "height", "70", 1, "auth-logo-dark"], ["src", "assets/images/logo-light.png", "alt", "", "height", "70", 1, "auth-logo-light"], [1, "d-flex", "flex-column", "justify-content-center", "mt-5", "text-center"], [1, "col"], ["href", "https://www.facebook.com/Oliverinformatica/", "target", "_blank", "rel", "noopener noreferrer"], [1, "mdi", "mdi-facebook", "font-size-24", "text-primary"], ["href", "https://www.instagram.com/oliverinformatica/", "target", "_blank", "rel", "noopener noreferrer"], [1, "mdi", "mdi-instagram", "font-size-24", "text-primary"], ["href", "https://www.linkedin.com/company/oliver-inform%C3%A1tica/", "target", "_blank", "rel", "noopener noreferrer"], [1, "mdi", "mdi-linkedin", "font-size-24", "text-primary"], ["href", "https://wa.me/5493585175140", "target", "_blank", "rel", "noopener noreferrer", 1, "text-muted"], [1, "mdi", "mdi-whatsapp", "font-size-24", "text-primary"], ["href", "https://wa.me/5493585091929", "target", "_blank", "rel", "noopener noreferrer", 1, "text-muted"], [1, "mb-0"], ["href", "https://www.oliverinformatica.com/", "target", "_blank", "rel", "noopener noreferrer"], [1, "position-absolute", "text-center", 2, "bottom", "0", "left", "0", "right", "0"], [1, "col-12", "col-md-6", "p-5", "text-white", "position-relative", "bg-primary"], [1, "my-auto"], [1, "my-5", "d-block", "d-md-none"], ["src", "assets/images/logo-light.png", "alt", "", "height", "70"], [1, "text-center"], [1, "mt-4"], [3, "formGroup", "ngSubmit"], [1, "mb-3"], ["for", "usuario"], ["data-cy", "user-input", "type", "usuario", "id", "usuario", "formControlName", "usuario", "autocomplete", "off", "placeholder", "Insertar usuario", 1, "form-control", 3, "ngClass"], ["class", "invalid-feedback animate__animated animate__shakeX", 4, "ngIf"], ["for", "userpassword"], [1, "input-group"], ["data-cy", "pass-input", "formControlName", "password", "autocomplete", "off", "placeholder", "Insertar contrase\u00F1a", "aria-label", "Password", "aria-describedby", "password-addon", "id", "password", 1, "form-control", 3, "type", "ngClass"], [1, "input-group-prepend"], [1, "input-group-text", 3, "click"], [1, "mdi", 3, "ngClass"], [1, "col-md-12"], ["id", "select-empresa", 3, "defaultValue", "defaultValueDis", "defaultString", "items", "valueSelected", "loading", "valueSelect"], ["id", "select-sucursal", 3, "defaultValue", "defaultValueDis", "defaultString", "items", "valueSelected", "loading", "valueSelect"], [1, "mt-3", "d-grid"], ["data-cy", "login-button", "type", "submit", 1, "btn", "btn-dark", "btn-block", 3, "disabled"], [1, "form-check", "mt-1"], ["data-cy", "remember-input", "type", "checkbox", "id", "formCheck1", 1, "form-check-input", 3, "checked", "change"], ["for", "formCheck1", 1, "form-check-label"], [1, "d-flex", "d-md-none", "flex-column", "justify-content-center", "mt-2", "text-center"], [1, "mdi", "mdi-facebook", "font-size-24", "text-white"], [1, "mdi", "mdi-instagram", "font-size-24", "text-white"], [1, "mdi", "mdi-linkedin", "font-size-24", "text-white"], ["href", "https://wa.me/5493585175140", "target", "_blank", "rel", "noopener noreferrer", 1, "text-white"], [1, "mdi", "mdi-whatsapp", "font-size-24", "text-white"], ["href", "https://wa.me/5493585091929", "target", "_blank", "rel", "noopener noreferrer", 1, "text-white"], ["href", "https://www.oliverinformatica.com/", "target", "_blank", "rel", "noopener noreferrer", 1, "text-white"], [1, "position-absolute", "text-center", "d-block", "d-md-none", 2, "bottom", "0", "left", "0", "right", "0"], [1, "invalid-feedback", "animate__animated", "animate__shakeX"]],
    template: function Login2Component_Template(rf, ctx) {
      if (rf & 1) {
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelement"](0, "app-panel-soporte");
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](1, "div", 0)(2, "div", 1)(3, "div", 2)(4, "div", 3)(5, "div", 4)(6, "div", 5)(7, "div", 6)(8, "div", 7)(9, "a", 8);
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelement"](10, "img", 9)(11, "img", 10);
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](12, "div", 11)(13, "div", 12)(14, "a", 13);
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelement"](15, "i", 14);
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](16, "a", 15);
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelement"](17, "i", 16);
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](18, "a", 17);
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelement"](19, "i", 18);
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](20, "div", 12)(21, "a", 19);
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelement"](22, "i", 20);
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](23, " Comercial");
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](24, " \u00A0 ");
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](25, "a", 21);
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelement"](26, "i", 20);
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](27, " HelpDesk");
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](28, "p", 22)(29, "a", 23);
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](30, "www.oliverinformatica.com");
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](31);
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](32, "div", 24)(33, "p");
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](34);
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]()()();
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](35, "div", 25)(36, "div", 26)(37, "div", 27)(38, "a", 8);
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelement"](39, "img", 28);
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](40, "div", 29)(41, "h5");
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](42, "Bienvenido !");
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](43, "p");
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](44, "Iniciar sesi\u00F3n");
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](45, "div", 30)(46, "form", 31);
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵlistener"]("ngSubmit", function Login2Component_Template_form_ngSubmit_46_listener() {
          return ctx.onSubmit();
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](47, "div", 32)(48, "label", 33);
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](49, "Usuario");
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelement"](50, "input", 34);
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtemplate"](51, Login2Component_div_51_Template, 2, 0, "div", 35)(52, Login2Component_div_52_Template, 2, 0, "div", 35)(53, Login2Component_div_53_Template, 2, 0, "div", 35);
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](54, "div", 32)(55, "label", 36);
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](56, "Contrase\u00F1a");
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](57, "div", 37);
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelement"](58, "input", 38);
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](59, "div", 39)(60, "span", 40);
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵlistener"]("click", function Login2Component_Template_span_click_60_listener() {
          return ctx.toggleFieldTextType();
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelement"](61, "i", 41);
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtemplate"](62, Login2Component_div_62_Template, 2, 0, "div", 35)(63, Login2Component_div_63_Template, 2, 0, "div", 35)(64, Login2Component_div_64_Template, 2, 0, "div", 35);
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelement"](65, "div", 32);
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](66, "div", 32)(67, "div", 42)(68, "select-loading", 43);
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵlistener"]("valueSelect", function Login2Component_Template_select_loading_valueSelect_68_listener($event) {
          return ctx.f.empresa.setValue($event);
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵpipe"](69, "async");
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]()()();
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](70, "div", 32)(71, "div", 42)(72, "select-loading", 44);
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵlistener"]("valueSelect", function Login2Component_Template_select_loading_valueSelect_72_listener($event) {
          return ctx.f.sucursal.setValue($event);
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵpipe"](73, "async");
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]()()();
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](74, "div", 45)(75, "button", 46);
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](76, " INGRESAR ");
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](77, "div", 47)(78, "input", 48);
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵlistener"]("change", function Login2Component_Template_input_change_78_listener() {
          return ctx.setCheckRecordar();
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](79, "label", 49);
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](80, " Recu\u00E9rdame ");
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]()()()();
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](81, "div", 50)(82, "div", 12)(83, "a", 13);
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelement"](84, "i", 51);
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](85, "a", 15);
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelement"](86, "i", 52);
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](87, "a", 17);
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelement"](88, "i", 53);
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](89, "div", 12)(90, "a", 54);
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelement"](91, "i", 55);
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](92, " Comercial");
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](93, " \u00A0 ");
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](94, "a", 56);
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelement"](95, "i", 55);
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](96, " HelpDesk");
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](97, "p", 22)(98, "a", 57);
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](99, "www.oliverinformatica.com");
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](100);
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](101, "div", 58)(102, "p");
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](103);
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]()()()()()()()()()();
      }
      if (rf & 2) {
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"](31);
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtextInterpolate1"](" | \u00A9 ", ctx.year, ". ");
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"](3);
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtextInterpolate1"]("Versi\u00F3n ", ctx.version, "");
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"](12);
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵproperty"]("formGroup", ctx.loginForm);
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"](4);
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵpureFunction1"](33, _c0, ctx.vh.isControlInvalid("usuario")));
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵproperty"]("ngIf", ctx.vh.controlHasError("required", "usuario"));
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵproperty"]("ngIf", ctx.vh.controlHasError("minlength", "usuario"));
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵproperty"]("ngIf", ctx.vh.controlHasError("maxlength", "usuario"));
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"](5);
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵproperty"]("type", ctx.fieldTextType ? "text" : "password")("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵpureFunction1"](35, _c0, ctx.vh.isControlInvalid("password")));
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"](3);
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵpureFunction2"](37, _c1, !ctx.fieldTextType, ctx.fieldTextType));
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵproperty"]("ngIf", ctx.vh.controlHasError("required", "password"));
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵproperty"]("ngIf", ctx.vh.controlHasError("minlength", "password"));
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵproperty"]("ngIf", ctx.vh.controlHasError("maxlength", "password"));
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"](4);
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵproperty"]("defaultValue", -1)("defaultValueDis", true)("defaultString", "Seleccione la empresa")("items", ctx.empresas)("valueSelected", ctx.f.empresa.value)("loading", _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵpipeBind1"](69, 29, ctx.empresaService.isLoading$));
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"](4);
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵproperty"]("defaultValue", -1)("defaultValueDis", true)("defaultString", "Seleccione la sucursal")("items", ctx.sucursales)("valueSelected", ctx.f.sucursal.value)("loading", _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵpipeBind1"](73, 31, ctx.sucursalServices.isLoading$));
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"](3);
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵproperty"]("disabled", !ctx.loginForm.valid || ctx.loginForm.controls.sucursal.value === -1 || ctx.loginForm.controls.empresa.value === -1);
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"](3);
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵproperty"]("checked", ctx.getCheckRecordar());
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"](22);
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtextInterpolate1"](" | \u00A9 ", ctx.year, ". ");
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"](3);
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtextInterpolate1"]("Versi\u00F3n ", ctx.version, "");
      }
    },
    dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_25__.NgClass, _angular_common__WEBPACK_IMPORTED_MODULE_25__.NgIf, _angular_forms__WEBPACK_IMPORTED_MODULE_17__["ɵNgNoValidate"], _angular_forms__WEBPACK_IMPORTED_MODULE_17__.DefaultValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_17__.NgControlStatus, _angular_forms__WEBPACK_IMPORTED_MODULE_17__.NgControlStatusGroup, _angular_forms__WEBPACK_IMPORTED_MODULE_17__.FormGroupDirective, _angular_forms__WEBPACK_IMPORTED_MODULE_17__.FormControlName, _shared_ui_select_loading_select_loading_component__WEBPACK_IMPORTED_MODULE_14__.SelectLoadingComponent, _pages_dashboards_panel_soporte_panel_soporte_component__WEBPACK_IMPORTED_MODULE_15__.PanelSoporteComponent, _angular_common__WEBPACK_IMPORTED_MODULE_25__.AsyncPipe],
    styles: [".custom-login[_ngcontent-%COMP%] {\n  padding-top: 3rem;\n  margin-top: 6rem;\n  margin-bottom: 3rem;\n  padding: 94px 18px 60px 18px;\n}\n.custom-login[_ngcontent-%COMP%]   .card[_ngcontent-%COMP%] {\n  border-radius: 1rem;\n  overflow: hidden;\n}\n@media screen and (max-width: 767px) {\n  .custom-login[_ngcontent-%COMP%] {\n    margin-top: 0;\n  }\n}\n@media screen and (max-width: 567px) {\n  .custom-login[_ngcontent-%COMP%] {\n    min-height: 100dvh;\n    background-color: var(--bs-primary);\n    padding-top: 0;\n    margin-bottom: 0;\n  }\n  .custom-login[_ngcontent-%COMP%]   .container[_ngcontent-%COMP%] {\n    min-height: 100dvh;\n  }\n  .custom-login[_ngcontent-%COMP%]   .container[_ngcontent-%COMP%]   .row[_ngcontent-%COMP%] {\n    min-height: 100dvh;\n  }\n  .custom-login[_ngcontent-%COMP%]   .container[_ngcontent-%COMP%]   .row[_ngcontent-%COMP%]   div.col-12[_ngcontent-%COMP%] {\n    min-height: 100dvh;\n  }\n  .custom-login[_ngcontent-%COMP%]   .container[_ngcontent-%COMP%]   .row[_ngcontent-%COMP%]   div.col-12[_ngcontent-%COMP%]   .card[_ngcontent-%COMP%] {\n    border-radius: 0;\n    background-color: var(--bs-primary) !important;\n    min-height: 100dvh;\n    box-shadow: none;\n  }\n  .custom-login[_ngcontent-%COMP%]   .container[_ngcontent-%COMP%]   .row[_ngcontent-%COMP%]   div.col-12[_ngcontent-%COMP%]   .card[_ngcontent-%COMP%]   .card-body[_ngcontent-%COMP%] {\n    background-color: var(--bs-primary) !important;\n    min-height: 100dvh;\n    box-shadow: none;\n  }\n}"]
  });
}

/***/ }),

/***/ 72237:
/*!***************************************************************************!*\
  !*** ./node_modules/ngx-bootstrap/alert/fesm2022/ngx-bootstrap-alert.mjs ***!
  \***************************************************************************/
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   AlertComponent: () => (/* binding */ AlertComponent),
/* harmony export */   AlertConfig: () => (/* binding */ AlertConfig),
/* harmony export */   AlertModule: () => (/* binding */ AlertModule)
/* harmony export */ });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! tslib */ 97582);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ 65879);
/* harmony import */ var ngx_bootstrap_utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ngx-bootstrap/utils */ 43161);
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/common */ 96814);






function AlertComponent_ng_template_0_ng_template_1_Template(rf, ctx) {
  if (rf & 1) {
    const _r3 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "button", 2);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function AlertComponent_ng_template_0_ng_template_1_Template_button_click_0_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r3);
      const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵresetView"](ctx_r2.close());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "span", 3);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2, "\xD7");
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "span", 4);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](4, "Close");
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()();
  }
}
function AlertComponent_ng_template_0_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 1);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, AlertComponent_ng_template_0_ng_template_1_Template, 5, 0, "ng-template", 0);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵprojection"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵclassMap"]("alert alert-" + ctx_r0.type);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngClass", ctx_r0.classes);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r0.dismissible);
  }
}
const _c0 = ["*"];
class AlertConfig {
  constructor() {
    /** default alert type */
    this.type = 'warning';
    /** is alerts are dismissible by default */
    this.dismissible = false;
    /** default time before alert will dismiss */
    this.dismissOnTimeout = undefined;
  }
  static #_ = this.ɵfac = function AlertConfig_Factory(t) {
    return new (t || AlertConfig)();
  };
  static #_2 = this.ɵprov = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"]({
    token: AlertConfig,
    factory: AlertConfig.ɵfac,
    providedIn: 'root'
  });
}
(() => {
  (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](AlertConfig, [{
    type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Injectable,
    args: [{
      providedIn: 'root'
    }]
  }], null, null);
})();
class AlertComponent {
  constructor(_config, changeDetection) {
    this.changeDetection = changeDetection;
    /** Alert type.
     * Provides one of four bootstrap supported contextual classes:
     * `success`, `info`, `warning` and `danger`
     */
    this.type = 'warning';
    /** If set, displays an inline "Close" button */
    this.dismissible = false;
    /** Is alert visible */
    this.isOpen = true;
    /** This event fires immediately after close instance method is called,
     * $event is an instance of Alert component.
     */
    this.onClose = new _angular_core__WEBPACK_IMPORTED_MODULE_0__.EventEmitter();
    /** This event fires when alert closed, $event is an instance of Alert component */
    this.onClosed = new _angular_core__WEBPACK_IMPORTED_MODULE_0__.EventEmitter();
    this.classes = '';
    this.dismissibleChange = new _angular_core__WEBPACK_IMPORTED_MODULE_0__.EventEmitter();
    Object.assign(this, _config);
    this.dismissibleChange.subscribe(( /*dismissible: boolean*/
    ) => {
      this.classes = this.dismissible ? 'alert-dismissible' : '';
      this.changeDetection.markForCheck();
    });
  }
  ngOnInit() {
    if (this.dismissOnTimeout) {
      // if dismissOnTimeout used as attr without binding, it will be a string
      setTimeout(() => this.close(), parseInt(this.dismissOnTimeout, 10));
    }
  }
  // todo: animation ` If the .fade and .in classes are present on the element,
  // the alert will fade out before it is removed`
  /**
   * Closes an alert by removing it from the DOM.
   */
  close() {
    if (!this.isOpen) {
      return;
    }
    this.onClose.emit(this);
    this.isOpen = false;
    this.changeDetection.markForCheck();
    this.onClosed.emit(this);
  }
  static #_ = this.ɵfac = function AlertComponent_Factory(t) {
    return new (t || AlertComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](AlertConfig), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__.ChangeDetectorRef));
  };
  static #_2 = this.ɵcmp = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({
    type: AlertComponent,
    selectors: [["alert"], ["bs-alert"]],
    inputs: {
      type: "type",
      dismissible: "dismissible",
      dismissOnTimeout: "dismissOnTimeout",
      isOpen: "isOpen"
    },
    outputs: {
      onClose: "onClose",
      onClosed: "onClosed"
    },
    ngContentSelectors: _c0,
    decls: 1,
    vars: 1,
    consts: [[3, "ngIf"], ["role", "alert", 3, "ngClass"], ["type", "button", "aria-label", "Close", 1, "close", "btn-close", 3, "click"], ["aria-hidden", "true", 1, "visually-hidden"], [1, "sr-only", "visually-hidden"]],
    template: function AlertComponent_Template(rf, ctx) {
      if (rf & 1) {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵprojectionDef"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](0, AlertComponent_ng_template_0_Template, 3, 4, "ng-template", 0);
      }
      if (rf & 2) {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.isOpen);
      }
    },
    dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_1__.NgClass, _angular_common__WEBPACK_IMPORTED_MODULE_1__.NgIf],
    encapsulation: 2,
    changeDetection: 0
  });
}
(0,tslib__WEBPACK_IMPORTED_MODULE_2__.__decorate)([(0,ngx_bootstrap_utils__WEBPACK_IMPORTED_MODULE_3__.OnChange)(), (0,tslib__WEBPACK_IMPORTED_MODULE_2__.__metadata)("design:type", Object)], AlertComponent.prototype, "dismissible", void 0);
(() => {
  (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](AlertComponent, [{
    type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Component,
    args: [{
      selector: 'alert,bs-alert',
      changeDetection: _angular_core__WEBPACK_IMPORTED_MODULE_0__.ChangeDetectionStrategy.OnPush,
      template: "<ng-template [ngIf]=\"isOpen\">\n  <div [class]=\"'alert alert-' + type\" role=\"alert\" [ngClass]=\"classes\">\n    <ng-template [ngIf]=\"dismissible\">\n      <button type=\"button\" class=\"close btn-close\" aria-label=\"Close\" (click)=\"close()\">\n        <span aria-hidden=\"true\" class=\"visually-hidden\">&times;</span>\n        <span class=\"sr-only visually-hidden\">Close</span>\n      </button>\n    </ng-template>\n    <ng-content></ng-content>\n  </div>\n</ng-template>\n"
    }]
  }], function () {
    return [{
      type: AlertConfig
    }, {
      type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.ChangeDetectorRef
    }];
  }, {
    type: [{
      type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input
    }],
    dismissible: [{
      type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input
    }],
    dismissOnTimeout: [{
      type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input
    }],
    isOpen: [{
      type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input
    }],
    onClose: [{
      type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Output
    }],
    onClosed: [{
      type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Output
    }]
  });
})();
class AlertModule {
  static forRoot() {
    return {
      ngModule: AlertModule,
      providers: []
    };
  }
  static #_ = this.ɵfac = function AlertModule_Factory(t) {
    return new (t || AlertModule)();
  };
  static #_2 = this.ɵmod = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineNgModule"]({
    type: AlertModule
  });
  static #_3 = this.ɵinj = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjector"]({
    imports: [_angular_common__WEBPACK_IMPORTED_MODULE_1__.CommonModule]
  });
}
(() => {
  (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](AlertModule, [{
    type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.NgModule,
    args: [{
      imports: [_angular_common__WEBPACK_IMPORTED_MODULE_1__.CommonModule],
      declarations: [AlertComponent],
      exports: [AlertComponent]
    }]
  }], null, null);
})();

/**
 * Generated bundle index. Do not edit.
 */


//# sourceMappingURL=ngx-bootstrap-alert.mjs.map

/***/ })

}]);