(self["webpackChunkapp"] = self["webpackChunkapp"] || []).push([[3105],{

/***/ 3105:
/*!************************************************************************************!*\
  !*** ./src/app/register/identity-validator-code/identity-validator-code.module.ts ***!
  \************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "IdentityValidatorCodePageModule": () => (/* binding */ IdentityValidatorCodePageModule)
/* harmony export */ });
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/common */ 90944);
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_angular_common__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @angular/forms */ 2508);
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/router */ 61380);
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_angular_router__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _ionic_angular__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @ionic/angular */ 93819);
/* harmony import */ var _identity_validator_code_page__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./identity-validator-code.page */ 72353);
/* harmony import */ var _shared_module_shared_module_module__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../shared-module/shared-module.module */ 69270);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @angular/core */ 45449);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_angular_core__WEBPACK_IMPORTED_MODULE_4__);








const routes = [
    {
        path: '',
        component: _identity_validator_code_page__WEBPACK_IMPORTED_MODULE_2__.IdentityValidatorCodePage
    }
];
class IdentityValidatorCodePageModule {
}
IdentityValidatorCodePageModule.ɵfac = function IdentityValidatorCodePageModule_Factory(t) { return new (t || IdentityValidatorCodePageModule)(); };
IdentityValidatorCodePageModule.ɵmod = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdefineNgModule"]({ type: IdentityValidatorCodePageModule });
IdentityValidatorCodePageModule.ɵinj = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdefineInjector"]({ imports: [_shared_module_shared_module_module__WEBPACK_IMPORTED_MODULE_3__.SharedModuleModule,
        _angular_common__WEBPACK_IMPORTED_MODULE_0__.CommonModule,
        _angular_forms__WEBPACK_IMPORTED_MODULE_5__.FormsModule,
        _angular_forms__WEBPACK_IMPORTED_MODULE_5__.ReactiveFormsModule,
        _ionic_angular__WEBPACK_IMPORTED_MODULE_6__.IonicModule,
        _angular_router__WEBPACK_IMPORTED_MODULE_1__.RouterModule.forChild(routes)] });
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵsetNgModuleScope"](IdentityValidatorCodePageModule, { declarations: [_identity_validator_code_page__WEBPACK_IMPORTED_MODULE_2__.IdentityValidatorCodePage], imports: [_shared_module_shared_module_module__WEBPACK_IMPORTED_MODULE_3__.SharedModuleModule,
        _angular_common__WEBPACK_IMPORTED_MODULE_0__.CommonModule,
        _angular_forms__WEBPACK_IMPORTED_MODULE_5__.FormsModule,
        _angular_forms__WEBPACK_IMPORTED_MODULE_5__.ReactiveFormsModule,
        _ionic_angular__WEBPACK_IMPORTED_MODULE_6__.IonicModule, _angular_router__WEBPACK_IMPORTED_MODULE_1__.RouterModule] }); })();


/***/ }),

/***/ 72353:
/*!**********************************************************************************!*\
  !*** ./src/app/register/identity-validator-code/identity-validator-code.page.ts ***!
  \**********************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "IdentityValidatorCodePage": () => (/* binding */ IdentityValidatorCodePage)
/* harmony export */ });
/* harmony import */ var _Volumes_case_workspace_work_APPS_KA_APP_WORK_NOW_KA_PASS_V2_2_6_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js */ 71670);
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @angular/forms */ 2508);
/* harmony import */ var _shared_components__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @shared/components */ 7667);
/* harmony import */ var _shared_components_modais__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @shared/components/modais */ 90340);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/core */ 45449);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_angular_core__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var _shared_services__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @shared/services */ 17253);
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @angular/router */ 61380);
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_angular_router__WEBPACK_IMPORTED_MODULE_5__);
/* harmony import */ var _shared_services_focus_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @shared/services/focus.service */ 37763);
/* harmony import */ var _ionic_angular__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @ionic/angular */ 93819);
/* harmony import */ var _shared_services_init_register_has_company_storage_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @shared/services/init.register.has-company.storage.service */ 91056);
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @angular/common */ 90944);
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_angular_common__WEBPACK_IMPORTED_MODULE_8__);
/* harmony import */ var _shared_components_full_logo_full_logo_component__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../shared/components/full-logo/full-logo.component */ 33159);
/* harmony import */ var _shared_components_privacy_footer_privacy_footer_component__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../shared/components/privacy-footer/privacy-footer.component */ 71237);
/* harmony import */ var _ngx_translate_core__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @ngx-translate/core */ 38699);
















function IdentityValidatorCodePage_ion_text_14_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "ion-text")(1, "div", 19);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
  }

  if (rf & 2) {
    const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtextInterpolate"](ctx_r0.obfuscatedEmail);
  }
}

const _c0 = function (a0) {
  return {
    "min-height": a0,
    "position": "relative"
  };
};

const _c1 = function (a0) {
  return {
    "": a0
  };
};

const _c2 = function (a0) {
  return {
    "input-holder-small-device": a0
  };
};

const _c3 = function (a0) {
  return {
    "small-device": a0
  };
};

class IdentityValidatorCodePage {
  constructor(formBuilder, api, activatedRoute, notificatorService, loadingService, keyboardService, deviceInfoService, navigationService, commonService, storageService, logService, translateConfigService, focusService, authService, saveFlowStorageResetKeyService, showToastModalErroCodeZero, modalCtrl, initRegisterHasCompanyStorageService) {
    var _this = this;

    this.formBuilder = formBuilder;
    this.api = api;
    this.activatedRoute = activatedRoute;
    this.notificatorService = notificatorService;
    this.loadingService = loadingService;
    this.keyboardService = keyboardService;
    this.deviceInfoService = deviceInfoService;
    this.navigationService = navigationService;
    this.commonService = commonService;
    this.storageService = storageService;
    this.logService = logService;
    this.translateConfigService = translateConfigService;
    this.focusService = focusService;
    this.authService = authService;
    this.saveFlowStorageResetKeyService = saveFlowStorageResetKeyService;
    this.showToastModalErroCodeZero = showToastModalErroCodeZero;
    this.modalCtrl = modalCtrl;
    this.initRegisterHasCompanyStorageService = initRegisterHasCompanyStorageService;

    this.onSubmit = () => {
      const errors = this.codeForm.get('code').errors;

      if (errors) {
        const title = this.translateConfigService.translate('PG_IDENTIFY_VALIDATOR_CODE_TOAST_INVALID_CODE_TITLE');
        const message = this.translateConfigService.translate('PG_IDENTIFY_VALIDATOR_CODE_TOAST_INVALID_CODE_MESSAGE');
        const notification = {
          title,
          message,
          type: 'error'
        };
        this.notificatorService.notify(notification);
      } else {
        this.submitted = true;
        let onHideSubscription = null;

        const onKeyboardHideCallback = () => {
          if (onHideSubscription) {
            onHideSubscription.unsubscribe();
          }

          this.loadingService.show(this.translateConfigService.translate('LOADING_PROCESSING_DATA'), 'identity-validator-code');
          const code = this.commonService.clearString(this.codeForm.controls.code.value);
          const uuid = this.uuid;
          const document = this.document;
          const foreign = this.foreign;

          if (this.context === 'validate-email') {
            this.api.accountActivate(code, uuid, document, foreign).subscribe(this.accountActivateSuccessResponse, this.accountActivateErrorResponse);
          } else if (this.context === 'change-device-identifier' || this.context === 'forgot-pin' || this.context === 'has-company') {
            return this.forgortPinORDeviceResetFinisth(code, uuid, document, foreign);
          }
        };

        onHideSubscription = this.keyboardService.onHideObservable?.subscribe(onKeyboardHideCallback);

        if (!this.keyboardService.isVisible()) {
          onKeyboardHideCallback();
        } else {
          this.keyboardService.hide();
        }
      }
    };

    this.accountActivateSuccessResponse = /*#__PURE__*/function () {
      var _ref = (0,_Volumes_case_workspace_work_APPS_KA_APP_WORK_NOW_KA_PASS_V2_2_6_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* (response) {
        _this.submitted = false;
        yield _this.loadingService.hide(null, 'identity-validator-code');

        const titleServiceError = _this.translateConfigService.translate('PG_IDENTIFY_VALIDATOR_CODE_TOAST_SERVICE_ERROR_TITLE');

        const messageServiceError = _this.translateConfigService.translate('TOAST_SERVICE_TEMPORARILY_UNAVAILABLE_MESSAGE');

        if (response) {
          if (response.codeType === 'email-validation') {
            _this.goToEmailValidationNextStep();
          } else if (response.codeType === 'company-invite') {
            _this.storageService.set('company-invitation-data', {
              locator: response.locator,
              invitationKey: response.invitationKey
            });

            _this.goToEmailValidationNextStep();
          } else {
            const notification = {
              title: titleServiceError,
              message: `${messageServiceError} (cod. NoCoDeTyPe)`,
              type: 'error'
            };

            _this.notificatorService.notify(notification);
          }
        } else {
          const notification = {
            title: titleServiceError,
            message: `${messageServiceError} (cod. NoBoDy)`,
            type: 'error'
          };

          _this.notificatorService.notify(notification);
        }
      });

      return function (_x) {
        return _ref.apply(this, arguments);
      };
    }();

    this.goToEmailValidationNextStep = () => {
      const uuid = this.uuid;
      const document = this.document;
      const foreign = this.foreign;
      const navigationOptions = {
        queryParams: {
          uuid,
          document,
          foreign
        }
      };
      this.navigationService.forward(['/identity-insert-password'], navigationOptions);
    };

    this.accountActivateErrorResponse = /*#__PURE__*/function () {
      var _ref2 = (0,_Volumes_case_workspace_work_APPS_KA_APP_WORK_NOW_KA_PASS_V2_2_6_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* (response) {
        console.log('accountActivateErrorResponse');
        console.log(response);
        _this.submitted = false;
        yield _this.loadingService.hide(null, 'identity-validator-code');

        _this.logService.logError('http::accountActivateErrorResponse', '', response);

        if (response?.status === 0) {
          _this.showToastModalErroCodeZero.showToast();

          _this.logService.logError('http::accountActivateErrorResponse', 'Unknown error', response);

          return;
        }

        if (response?.status === 400) {
          const nomatchforeignflag = response?.error && response.error.errorKey === 'nomatchforeignflag';
          const invitenotmatched = response?.error && response.error.message === 'error.invitenotmatched';
          const nomatch = response?.error && response?.error?.errorKey === 'nomatch';

          if (nomatchforeignflag) {
            const translateKey = _this.foreign ? 'PG_IDENTIFY_COMPANY_CODE_TOAST_NOT_ENABLED_FOREINGFLAG_MESSAGE' : 'PG_IDENTIFY_COMPANY_CODE_TOAST_NOMATCHFOREINGFLAG_MESSAGE';

            _this.logService.logError('http::accountActivateErrorResponseNoMatch', '', response);

            const titleNomatchForeignflag = _this.translateConfigService.translate('PG_IDENTIFY_COMPANY_CODE_TOAST_NOMATCHFOREINGFLAG_TITLE');

            const messageNomatchForeignflag = _this.translateConfigService.translate(translateKey);

            const notification = {
              title: titleNomatchForeignflag,
              message: messageNomatchForeignflag,
              type: 'error',
              timeout: 10000
            };
            return _this.notificatorService.notify(notification);
          } else if (invitenotmatched) {
            const textDocumentForeign = _this.translateConfigService.translate('PG_INVITE_COMPANY_CODE_TOAST_INVALID_NAME_MESSAGE_TEXT_FOREIGN');

            const textMessage = _this.translateConfigService.translate('PG_INVITE_COMPANY_CODE_TOAST_INVALID_NAME_MESSAGE');

            const message = `${textMessage} ${_this.foreign ? textDocumentForeign : 'CPF'}.`;
            const notification = {
              title: _this.translateConfigService.translate('PG_INVITE_COMPANY_CODE_TOAST_INVALID_NAME_TITLE'),
              message,
              type: 'error',
              timeout: 12000
            };
            return _this.notificatorService.notify(notification);
          } else if (nomatch) {
            const titleNomatch = _this.translateConfigService.translate('PG_IDENTIFY_COMPANY_CODE_TOAST_NOMATCH_TITTLE');

            const messageNomatch = _this.translateConfigService.translate('PG_IDENTIFY_COMPANY_CODE_TOAST_NOMATCH_MESSAGE');

            const notification = {
              title: titleNomatch,
              message: messageNomatch,
              type: 'error',
              timeout: 10000,
              action: {
                label: _this.translateConfigService.translate('PG_IDENTIFY_COMPANY_CODE_TOAST_NOMATCH_MESSAGE_ACTION_LABEL'),
                customAction: _this.openModalNoMatchName.bind(_this)
              }
            };
            return _this.notificatorService.notify(notification);
          }

          const title = _this.translateConfigService.translate('PG_IDENTIFY_VALIDATOR_CODE_TOAST_INVALID_DATA_TITLE');

          const message = `${_this.translateConfigService.translate('PG_IDENTIFY_VALIDATOR_CODE_TOAST_INVALID_DATA_MESSAGE')} (cod. ${response.status})`;
          return _this.toastNotificationError(title, message, 5000);
        }

        const {
          title,
          message
        } = _this.getTitleAndMessage(response);

        _this.toastNotificationError(title, message, 1000);
      });

      return function (_x2) {
        return _ref2.apply(this, arguments);
      };
    }();

    this.cancel = /*#__PURE__*/(0,_Volumes_case_workspace_work_APPS_KA_APP_WORK_NOW_KA_PASS_V2_2_6_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* () {
      if (_this.context === 'forgot-pin') {
        yield _this.saveFlowStorageResetKeyService.clearInitForgot();

        _this.navigationService.root(['/identity-check']);
      } else {
        _this.navigationService.forward(['/start']);
      }
    });
    this.activatedRoute.queryParams.subscribe( /*#__PURE__*/function () {
      var _ref4 = (0,_Volumes_case_workspace_work_APPS_KA_APP_WORK_NOW_KA_PASS_V2_2_6_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* (params) {
        let uuidStorage = null;
        const storageIsReady = yield _this.storageService.ready();

        if (storageIsReady) {
          uuidStorage = yield _this.authService.getUUID();
        }

        _this.uuid = uuidStorage ? uuidStorage : params.uuid ? params.uuid : '';
        _this.document = params.document ? params.document : '';
        _this.obfuscatedEmail = params.obfuscatedEmail ? params.obfuscatedEmail : '';
        _this.context = params.context ? params.context : '';
        _this.foreign = params.foreign === 'true';
      });

      return function (_x3) {
        return _ref4.apply(this, arguments);
      };
    }());
  }

  ionViewWillEnter() {
    this.submitted = false;
    this.focusService.applyFocusQuerySelector('insertCode', 3000);
  }

  ngOnInit() {
    this.codeForm = this.formBuilder.group({
      code: ['', [_angular_forms__WEBPACK_IMPORTED_MODULE_11__.Validators.required, _angular_forms__WEBPACK_IMPORTED_MODULE_11__.Validators.minLength(6), _angular_forms__WEBPACK_IMPORTED_MODULE_11__.Validators.maxLength(8)]]
    });
  }

  openModal(args) {
    var _this2 = this;

    return (0,_Volumes_case_workspace_work_APPS_KA_APP_WORK_NOW_KA_PASS_V2_2_6_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* () {
      if (!args) {
        return;
      }

      const modal = yield _this2.modalCtrl.create({
        component: args === 'not-receive-code' ? _shared_components_modais__WEBPACK_IMPORTED_MODULE_2__.NotReceiveCodeComponent : _shared_components_modais__WEBPACK_IMPORTED_MODULE_2__.NotExistEmailComponent,
        cssClass: 'modal-receive-code-or-not-receive-email'
      });
      yield modal.present();
      const {
        data,
        role
      } = yield modal.onDidDismiss();
    })();
  }

  getTitleAndMessage(response) {
    let title = '';
    let message = '';
    const codStatus = response?.status ? `(cod. ${response.status})` : '';
    const status = response?.status;
    title = this.translateConfigService.translate('PG_IDENTIFY_VALIDATOR_CODE_TOAST_SERVICE_ERROR_TITLE');
    message = `${this.translateConfigService.translate('TOAST_SERVICE_TEMPORARILY_UNAVAILABLE_MESSAGE')}  ${codStatus}`;
    return {
      title,
      message
    };
  }

  toastNotificationError(title, message, timeout) {
    const notification = {
      title,
      message,
      type: 'error',
      timeout
    };
    this.notificatorService.notify(notification);
  }

  forgortPinORDeviceResetFinisth(code, uuid, document, foreign) {
    var _this3 = this;

    return (0,_Volumes_case_workspace_work_APPS_KA_APP_WORK_NOW_KA_PASS_V2_2_6_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* () {
      let dataResetKeyInit = yield _this3.saveFlowStorageResetKeyService.getDataResetKeyInit();
      const isInitForgot = yield _this3.saveFlowStorageResetKeyService.getInitForgot();

      if (isInitForgot && isInitForgot?.isInitiatedForgotten || _this3.context === 'forgot-pin') {
        if (dataResetKeyInit && dataResetKeyInit?.document && code) {
          dataResetKeyInit.resetKey = code;
          yield _this3.saveFlowStorageResetKeyService.setDataResetKeyInit(dataResetKeyInit);
          return _this3.resetPinForget(dataResetKeyInit.newHashedPin, code);
        }

        return _this3.api.accountDeviceResetFinish(code, uuid, document, foreign).subscribe(_this3.accountActivateSuccessResponse, _this3.accountActivateErrorResponse);
      } else {
        return _this3.api.accountDeviceResetFinish(code, uuid, document, foreign).subscribe(_this3.accountActivateSuccessResponse, _this3.accountActivateErrorResponse);
      }
    })();
  }

  resetPinForget(newHashedPin, resetKey) {
    var _this4 = this;

    return (0,_Volumes_case_workspace_work_APPS_KA_APP_WORK_NOW_KA_PASS_V2_2_6_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* () {
      let err = null;

      try {
        yield _this4.api.resetPinFinish({
          newHashedPin,
          resetKey
        }).toPromise();

        _this4.loadingService.hide(null, 'identity-validator-code').then(() => {
          _this4.navigationService.root(['/home']);
        });
      } catch (error) {
        err = error;

        _this4.handleErrorResetPinFinish(error);

        _this4.logService.log('httpError::resetPinFinsh', 'Error request http  /pins/reset-finish', error);
      } finally {
        _this4.loadingService.hide(null, 'identity-validator-code');

        if (!err) {
          _this4.saveFlowStorageResetKeyService.clearAllDataResetKeyInit();
        } // KA_APP-715


        _this4.initRegisterHasCompanyStorageService.remove();
      }
    })();
  }

  handleErrorResetPinFinish(response) {
    this.submitted = false;

    if (response?.error) {
      const title = this.translateConfigService.translate('TOAST_TITLE_ERROR');
      const message = this.translateConfigService.translate('PG_IDENTIFY_INSERT_CODE_INVALID');

      if (response.error.errorKey === 'reset_key_not_found') {
        const notification = {
          title,
          message,
          type: 'error',
          timeout: 8000
        };
        this.notificatorService.notify(notification);
        this.logService.log('httpError::resetPinFinsh', 'reset_key_not_found', response);
      } else {
        this.logService.log('httpError::resetPinFinsh', '', response);
      }
    }
  }

  openModalNoMatchName() {
    var _this5 = this;

    return (0,_Volumes_case_workspace_work_APPS_KA_APP_WORK_NOW_KA_PASS_V2_2_6_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* () {
      const translateKey = _this5.foreign ? 'PG_IDENTIFY_COMPANY_CODE_NOMATCH_MESSAGE_FOREING' : 'PG_IDENTIFY_COMPANY_CODE_NOMATCH_MESSAGE';

      const isSmallDevice = _this5.deviceInfoService.isSmallScreen();

      const isMediumDevice = _this5.deviceInfoService.isMediumSmallScreen();

      const height = _this5.deviceInfoService.getDeviceHeight();

      const defaultDevice = 'modal-generic-component-invalidName class-default';
      const calcHeigth = `calc(100% - 32%)`;
      const cssClass = isSmallDevice ? 'modal-generic-component-invalidName -small' : isMediumDevice ? 'modal-generic-component-invalidName -medium' : defaultDevice;
      const props = {
        title: null,
        description: `${_this5.translateConfigService.translate(translateKey)}`,
        type: 'error',
        typename: _shared_components__WEBPACK_IMPORTED_MODULE_1__.TypenameComponet.nomatchInvalidName,
        img: null,
        actionsButton: [{
          label: _this5.translateConfigService.translate('BTN_CLOSE'),
          enabled: true,
          action: () => _this5.modalCtrl.dismiss()
        }]
      };
      const modal = yield _this5.modalCtrl.create({
        component: _shared_components__WEBPACK_IMPORTED_MODULE_1__.GenericModalComponent,
        cssClass,
        componentProps: {
          props
        }
      });
      modal.style.setProperty('--height', `${calcHeigth}`);
      yield modal.present();
    })();
  }

}

IdentityValidatorCodePage.ɵfac = function IdentityValidatorCodePage_Factory(t) {
  return new (t || IdentityValidatorCodePage)(_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_11__.UntypedFormBuilder), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_4__.ApiService), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_angular_router__WEBPACK_IMPORTED_MODULE_5__.ActivatedRoute), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_4__.NotificatorService), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_4__.LoadingService), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_4__.KeyboardService), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_4__.DeviceInfoService), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_4__.NavigationService), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_4__.CommonService), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_4__.StorageService), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_4__.LogService), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_4__.TranslateConfigService), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_shared_services_focus_service__WEBPACK_IMPORTED_MODULE_6__.FocusService), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_4__.AuthService), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_4__.SaveFlowStorageResetKeyService), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_4__.ShowToastAndModalErroCodeZeroService), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_ionic_angular__WEBPACK_IMPORTED_MODULE_12__.ModalController), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_shared_services_init_register_has_company_storage_service__WEBPACK_IMPORTED_MODULE_7__.InitRegisterHasCompanyStorageService));
};

IdentityValidatorCodePage.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdefineComponent"]({
  type: IdentityValidatorCodePage,
  selectors: [["app-identity-validator-code"]],
  decls: 38,
  vars: 37,
  consts: [[1, "ion-no-border", 2, "height", "0"], [3, "ngStyle"], [3, "ngClass"], [1, "identy-validate-code-page"], [1, "flex-auto"], [3, "formGroup", "ngSubmit"], [1, "input-holder", 3, "ngClass"], [1, "text-send-code-to-email"], [4, "ngIf"], ["id", "code", "type", "code", "formControlName", "code", 3, "maxlength", "placeholder"], [1, "btns-modal"], [1, "btn-not", "receive-code"], ["mode", "ios", "shape", "round", 3, "click"], [1, "btn-not", "existe-email"], [1, "button-holder"], ["type", "button", "tabindex", "4", 1, "back", 3, "click"], ["type", "submit", 3, "disabled", "click"], ["tabindex", "2"], ["tabindex", "4", 1, "footer-privacy", 3, "ngClass"], [1, "obfuscated-email"]],
  template: function IdentityValidatorCodePage_Template(rf, ctx) {
    if (rf & 1) {
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](0, "ion-header", 0);
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](1, "ion-content")(2, "ion-grid", 1)(3, "ion-row")(4, "ion-col", 2);
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](5, "app-full-logo", 3);
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](6, "ion-row", 4)(7, "ion-col", 2)(8, "form", 5);
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵlistener"]("ngSubmit", function IdentityValidatorCodePage_Template_form_ngSubmit_8_listener() {
        return ctx.onSubmit();
      });
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](9, "div", 6)(10, "ion-label")(11, "ion-text", 7);
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](12);
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵpipe"](13, "translate");
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](14, IdentityValidatorCodePage_ion_text_14_Template, 3, 1, "ion-text", 8);
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](15, "input", 9);
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵpipe"](16, "translate");
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](17, "div", 10)(18, "div", 11)(19, "ion-button", 12);
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵlistener"]("click", function IdentityValidatorCodePage_Template_ion_button_click_19_listener() {
        return ctx.openModal("not-receive-code");
      });
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](20, "span");
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](21);
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵpipe"](22, "translate");
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()()();
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](23, "div", 13)(24, "ion-button", 12);
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵlistener"]("click", function IdentityValidatorCodePage_Template_ion_button_click_24_listener() {
        return ctx.openModal("not-exist-email");
      });
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](25, "span");
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](26);
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵpipe"](27, "translate");
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()()()()()()();
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](28, "div", 14)(29, "button", 15);
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵlistener"]("click", function IdentityValidatorCodePage_Template_button_click_29_listener() {
        return ctx.cancel();
      });
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](30);
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵpipe"](31, "translate");
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](32, "button", 16);
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵlistener"]("click", function IdentityValidatorCodePage_Template_button_click_32_listener() {
        return ctx.onSubmit();
      });
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](33, "span", 17);
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](34);
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵpipe"](35, "translate");
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()()();
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](36, "span", 18);
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](37, "app-privacy-footer");
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()()();
    }

    if (rf & 2) {
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](2);
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngStyle", _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵpureFunction1"](27, _c0, ctx.deviceInfoService.getDeviceHeight() + "px"));
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](2);
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵpureFunction1"](29, _c1, ctx.deviceInfoService.isSmallScreen() ? "ion-margin-bottom" : "ion-margin-vertical"));
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](3);
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵpureFunction1"](31, _c1, ctx.deviceInfoService.isSmallScreen() ? "ion-no-margin" : "ion-margin-vertical"));
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](1);
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("formGroup", ctx.codeForm);
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](1);
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵpureFunction1"](33, _c2, ctx.deviceInfoService.isSmallScreen()));
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](3);
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵpipeBind1"](13, 15, "SEND_CODE_EMAIL"));
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](2);
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", ctx.obfuscatedEmail);
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](1);
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("maxlength", 8)("placeholder", _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵpipeBind1"](16, 17, "INPUT_INSERT_CODE"));
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](6);
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵpipeBind1"](22, 19, "NOT_RECEIVE_CODE"), " ");
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](5);
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵpipeBind1"](27, 21, "NOT_EXIST_EMAIL"), " ");
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](4);
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵpipeBind1"](31, 23, "PG_IDENTIFY_VALIDATOR_CODE_BTN_CANCEL"), " ");
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](2);
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("disabled", ctx.submitted);
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](2);
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵpipeBind1"](35, 25, "PG_IDENTIFY_VALIDATOR_CODE_BTN_NEXT"), "");
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](2);
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵpureFunction1"](35, _c3, ctx.deviceInfoService.isSmallScreen()));
    }
  },
  dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_8__.NgClass, _angular_common__WEBPACK_IMPORTED_MODULE_8__.NgIf, _angular_common__WEBPACK_IMPORTED_MODULE_8__.NgStyle, _ionic_angular__WEBPACK_IMPORTED_MODULE_12__.IonButton, _ionic_angular__WEBPACK_IMPORTED_MODULE_12__.IonCol, _ionic_angular__WEBPACK_IMPORTED_MODULE_12__.IonContent, _ionic_angular__WEBPACK_IMPORTED_MODULE_12__.IonGrid, _ionic_angular__WEBPACK_IMPORTED_MODULE_12__.IonHeader, _ionic_angular__WEBPACK_IMPORTED_MODULE_12__.IonLabel, _ionic_angular__WEBPACK_IMPORTED_MODULE_12__.IonRow, _ionic_angular__WEBPACK_IMPORTED_MODULE_12__.IonText, _angular_forms__WEBPACK_IMPORTED_MODULE_11__["ɵNgNoValidate"], _angular_forms__WEBPACK_IMPORTED_MODULE_11__.DefaultValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_11__.NgControlStatus, _angular_forms__WEBPACK_IMPORTED_MODULE_11__.NgControlStatusGroup, _angular_forms__WEBPACK_IMPORTED_MODULE_11__.MaxLengthValidator, _angular_forms__WEBPACK_IMPORTED_MODULE_11__.FormGroupDirective, _angular_forms__WEBPACK_IMPORTED_MODULE_11__.FormControlName, _shared_components_full_logo_full_logo_component__WEBPACK_IMPORTED_MODULE_9__.FullLogoComponent, _shared_components_privacy_footer_privacy_footer_component__WEBPACK_IMPORTED_MODULE_10__.PrivacyFooterComponent, _ngx_translate_core__WEBPACK_IMPORTED_MODULE_13__.TranslatePipe],
  styles: [".obfuscated-email[_ngcontent-%COMP%] {\n  text-align: center;\n  margin: 8px 0;\n  font-weight: bold;\n}\n\n.btns-modal[_ngcontent-%COMP%] {\n  display: flex;\n  position: relative;\n  flex-direction: column;\n  align-content: center;\n  align-items: center;\n  margin: 24px 0;\n}\n\n.btns-modal[_ngcontent-%COMP%]   .btn-not[_ngcontent-%COMP%]   ion-button[_ngcontent-%COMP%] {\n  font-size: 0.9em;\n  line-height: 18px;\n  --color: #0ec254;\n  --border-radius: 32px;\n  --background-hover: #0ec254;\n  --background: #ebeaea !important;\n  --background-activated: #0ec254;\n  --background-focused: #0ec254;\n  --color-activated: #fff;\n  --color-hover: #fff;\n  --color-focused: #fff;\n  --padding-top: 8px;\n  --padding-bottom: 8px;\n  height: 28px;\n  display: flex;\n  align-items: center;\n}\n\n.btns-modal[_ngcontent-%COMP%]   .btn-not[_ngcontent-%COMP%]   ion-button[_ngcontent-%COMP%]   span[_ngcontent-%COMP%] {\n  font-weight: 700;\n}\n\n.btns-modal[_ngcontent-%COMP%]   .btn-not.receive-code[_ngcontent-%COMP%] {\n  margin-bottom: 4px;\n}\n\n.btns-modal[_ngcontent-%COMP%]   .btn-not.existe-email[_ngcontent-%COMP%] {\n  margin-top: 4px;\n}\n\n.button-holder[_ngcontent-%COMP%] {\n  margin: 24px auto 0 !important;\n}\n\n.input-holder[_ngcontent-%COMP%] {\n  text-align: center;\n  \n  \n  \n  \n  \n  \n}\n\n.input-holder[_ngcontent-%COMP%]   .text-send-code-to-email[_ngcontent-%COMP%] {\n  font-size: 1em;\n  font-weight: 400;\n  line-height: 22px;\n  letter-spacing: 0px;\n}\n\n.input-holder.input-holder-small-device[_ngcontent-%COMP%] {\n  width: 100%;\n  margin: 32px auto 0;\n  padding: 0px 8px;\n}\n\n.input-holder[_ngcontent-%COMP%]   [_ngcontent-%COMP%]::placeholder {\n  text-transform: initial !important;\n}\n\ninput[type=code][_ngcontent-%COMP%] {\n  text-align: center;\n  text-transform: uppercase;\n}\n\n.footer-privacy[_ngcontent-%COMP%] {\n  margin-bottom: calc(30px + env(safe-area-inset-bottom)) !important;\n}\n\n.footer-privacy.small-device[_ngcontent-%COMP%] {\n  bottom: calc(10px + env(safe-area-inset-bottom)) !important;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImlkZW50aXR5LXZhbGlkYXRvci1jb2RlLnBhZ2Uuc2NzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQU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xuICA6Oi1tcy1pbnB1dC1wbGFjZWhvbGRlciB7XG4gICAgdGV4dC10cmFuc2Zvcm06IGluaXRpYWwgIWltcG9ydGFudDtcbiAgfVxuICAvKiBNT0RFUk4gQlJPV1NFUiAqL1xuICA6OnBsYWNlaG9sZGVyIHtcbiAgICB0ZXh0LXRyYW5zZm9ybTogaW5pdGlhbCAhaW1wb3J0YW50O1xuICB9XG59XG5pbnB1dFt0eXBlPVwiY29kZVwiXSB7XG4gIHRleHQtYWxpZ246IGNlbnRlcjtcbiAgdGV4dC10cmFuc2Zvcm06IHVwcGVyY2FzZTtcbn1cblxuLmZvb3Rlci1wcml2YWN5IHtcbiAgbWFyZ2luLWJvdHRvbTogY2FsYygzMHB4ICsgZW52KHNhZmUtYXJlYS1pbnNldC1ib3R0b20pKSAhaW1wb3J0YW50O1xuICAmLnNtYWxsLWRldmljZSB7XG4gICAgYm90dG9tOiBjYWxjKDEwcHggKyBlbnYoc2FmZS1hcmVhLWluc2V0LWJvdHRvbSkpICFpbXBvcnRhbnQ7XG4gIH1cbn1cbiJdfQ== */"]
});

/***/ }),

/***/ 37763:
/*!**************************************************!*\
  !*** ./src/app/shared/services/focus.service.ts ***!
  \**************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "FocusService": () => (/* binding */ FocusService)
/* harmony export */ });
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/router */ 61380);
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_angular_router__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! rxjs/operators */ 59151);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ 45449);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_angular_core__WEBPACK_IMPORTED_MODULE_1__);




class FocusService {
    constructor(router) {
        this.router = router;
    }
    focusInRouterNavigate() {
        this.router.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_2__.filter)(event => event instanceof _angular_router__WEBPACK_IMPORTED_MODULE_0__.NavigationEnd)).subscribe(() => {
            const mainHeader = document.querySelector('#focusHeader');
            if (mainHeader) {
                mainHeader?.focus();
            }
        });
    }
    /**
     *
     * @param selector ID preference selector exemple: this.applyFocusQuerySelector('myselectorid', 300)
     * not necessary # .
     * @param time
     */
    applyFocusQuerySelector(selector, time) {
        setTimeout(() => {
            const nextTag = document.querySelector(`#${selector}`);
            nextTag?.focus();
        }, time);
    }
}
FocusService.ɵfac = function FocusService_Factory(t) { return new (t || FocusService)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](_angular_router__WEBPACK_IMPORTED_MODULE_0__.Router)); };
FocusService.ɵprov = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineInjectable"]({ token: FocusService, factory: FocusService.ɵfac, providedIn: 'root' });


/***/ }),

/***/ 91056:
/*!******************************************************************************!*\
  !*** ./src/app/shared/services/init.register.has-company.storage.service.ts ***!
  \******************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "InitRegisterHasCompanyStorageService": () => (/* binding */ InitRegisterHasCompanyStorageService)
/* harmony export */ });
/* harmony import */ var _Volumes_case_workspace_work_APPS_KA_APP_WORK_NOW_KA_PASS_V2_2_6_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js */ 71670);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ 45449);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_angular_core__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _simple_storage_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./simple.storage.service */ 19725);



class InitRegisterHasCompanyStorageService {
  constructor(simpleStorageService) {
    this.simpleStorageService = simpleStorageService;
    this.KEY = 'REGISTER_HAS_COMPANY';
    this.cache = null; // Cache em memória opcional
  }

  set(data) {
    this.simpleStorageService.set(this.KEY, data);
    this.cache = data; // Atualiza o cache
  }

  get() {
    const data = this.simpleStorageService.get(this.KEY);
    this.cache = data; // Atualiza o cache

    return data;
  }

  remove() {
    var _this = this;

    return (0,_Volumes_case_workspace_work_APPS_KA_APP_WORK_NOW_KA_PASS_V2_2_6_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* () {
      _this.simpleStorageService.remove(_this.KEY);

      _this.cache = null; // Limpa o cache
    })();
  }

}

InitRegisterHasCompanyStorageService.ɵfac = function InitRegisterHasCompanyStorageService_Factory(t) {
  return new (t || InitRegisterHasCompanyStorageService)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](_simple_storage_service__WEBPACK_IMPORTED_MODULE_2__.SimpleStorageService));
};

InitRegisterHasCompanyStorageService.ɵprov = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineInjectable"]({
  token: InitRegisterHasCompanyStorageService,
  factory: InitRegisterHasCompanyStorageService.ɵfac,
  providedIn: 'root'
});

/***/ }),

/***/ 19725:
/*!***********************************************************!*\
  !*** ./src/app/shared/services/simple.storage.service.ts ***!
  \***********************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "SimpleStorageService": () => (/* binding */ SimpleStorageService)
/* harmony export */ });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ 45449);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_angular_core__WEBPACK_IMPORTED_MODULE_0__);

class SimpleStorageService {
    constructor() { }
    set(key, value) {
        localStorage.setItem(key, JSON.stringify(value));
    }
    get(key) {
        const item = JSON.parse(localStorage.getItem(key));
        return item ?? null;
    }
    remove(key) {
        localStorage.removeItem(key);
    }
    clear() {
        localStorage.clear();
    }
}
SimpleStorageService.ɵfac = function SimpleStorageService_Factory(t) { return new (t || SimpleStorageService)(); };
SimpleStorageService.ɵprov = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"]({ token: SimpleStorageService, factory: SimpleStorageService.ɵfac, providedIn: 'root' });


/***/ })

}])
//# sourceMappingURL=3105.js.map