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

/***/ 67726:
/*!****************************************************************************************************************!*\
  !*** ./src/app/register/identity-insert-password-confirmation/identity-insert-password-confirmation.module.ts ***!
  \****************************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "IdentityInsertPasswordConfirmationPageModule": () => (/* binding */ IdentityInsertPasswordConfirmationPageModule)
/* 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 _shared_module_shared_module_module__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../shared-module/shared-module.module */ 69270);
/* harmony import */ var _identity_insert_password_confirmation_page__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./identity-insert-password-confirmation.page */ 66037);
/* 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_insert_password_confirmation_page__WEBPACK_IMPORTED_MODULE_3__.IdentityInsertPasswordConfirmationPage
    }
];
class IdentityInsertPasswordConfirmationPageModule {
}
IdentityInsertPasswordConfirmationPageModule.ɵfac = function IdentityInsertPasswordConfirmationPageModule_Factory(t) { return new (t || IdentityInsertPasswordConfirmationPageModule)(); };
IdentityInsertPasswordConfirmationPageModule.ɵmod = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdefineNgModule"]({ type: IdentityInsertPasswordConfirmationPageModule });
IdentityInsertPasswordConfirmationPageModule.ɵinj = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdefineInjector"]({ imports: [_shared_module_shared_module_module__WEBPACK_IMPORTED_MODULE_2__.SharedModuleModule,
        _angular_common__WEBPACK_IMPORTED_MODULE_0__.CommonModule,
        _angular_forms__WEBPACK_IMPORTED_MODULE_5__.ReactiveFormsModule,
        _angular_forms__WEBPACK_IMPORTED_MODULE_5__.FormsModule,
        _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"](IdentityInsertPasswordConfirmationPageModule, { declarations: [_identity_insert_password_confirmation_page__WEBPACK_IMPORTED_MODULE_3__.IdentityInsertPasswordConfirmationPage], imports: [_shared_module_shared_module_module__WEBPACK_IMPORTED_MODULE_2__.SharedModuleModule,
        _angular_common__WEBPACK_IMPORTED_MODULE_0__.CommonModule,
        _angular_forms__WEBPACK_IMPORTED_MODULE_5__.ReactiveFormsModule,
        _angular_forms__WEBPACK_IMPORTED_MODULE_5__.FormsModule,
        _ionic_angular__WEBPACK_IMPORTED_MODULE_6__.IonicModule, _angular_router__WEBPACK_IMPORTED_MODULE_1__.RouterModule] }); })();


/***/ }),

/***/ 66037:
/*!**************************************************************************************************************!*\
  !*** ./src/app/register/identity-insert-password-confirmation/identity-insert-password-confirmation.page.ts ***!
  \**************************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "IdentityInsertPasswordConfirmationPage": () => (/* binding */ IdentityInsertPasswordConfirmationPage)
/* 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 _angular_forms__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @angular/forms */ 2508);
/* harmony import */ var _ionic_angular__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @ionic/angular */ 93819);
/* harmony import */ var _shared_services__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @shared/services */ 17253);
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/router */ 61380);
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_angular_router__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var _shared_services_init_register_has_company_storage_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @shared/services/init.register.has-company.storage.service */ 91056);
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @angular/common */ 90944);
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_angular_common__WEBPACK_IMPORTED_MODULE_5__);
/* harmony import */ var _shared_components_full_logo_full_logo_component__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../shared/components/full-logo/full-logo.component */ 33159);
/* harmony import */ var _ngx_translate_core__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @ngx-translate/core */ 38699);











const _c0 = ["pin"];

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

class IdentityInsertPasswordConfirmationPage {
  constructor(formBuilder, platform, notificatorService, activatedRoute, loadingService, keyboardService, cryptoService, storageService, authService, deviceInfoService, navigationService, lockService, logService, translateConfigService, saveFlowStorageResetKeyService, apiService, managertokenUaamobileService, initRegisterHasCompanyStorageService) {
    var _this = this;

    this.formBuilder = formBuilder;
    this.platform = platform;
    this.notificatorService = notificatorService;
    this.activatedRoute = activatedRoute;
    this.loadingService = loadingService;
    this.keyboardService = keyboardService;
    this.cryptoService = cryptoService;
    this.storageService = storageService;
    this.authService = authService;
    this.deviceInfoService = deviceInfoService;
    this.navigationService = navigationService;
    this.lockService = lockService;
    this.logService = logService;
    this.translateConfigService = translateConfigService;
    this.saveFlowStorageResetKeyService = saveFlowStorageResetKeyService;
    this.apiService = apiService;
    this.managertokenUaamobileService = managertokenUaamobileService;
    this.initRegisterHasCompanyStorageService = initRegisterHasCompanyStorageService;

    this.focusInput = () => {
      this.pinInputElement.nativeElement.focus();
    };

    this.onPinChange = () => {
      if (this.lockService.isLock('updating-pin-value')) {
        return;
      }

      if (this.shouldSubmit()) {
        setTimeout(this.onSubmit, 250);
      } else {
        this.lockService.unlock('updating-pin-value');
      }
    };

    this.shouldSubmit = () => this.pinForm.controls.pin.value.length === 4;

    this.resetPin = () => {
      this.pinForm.controls.pin.setValue('');
    };

    this.onSubmit = () => {
      const pin = this.pinForm.controls.pin.value;
      const validationResult = this.validateInput(pin);

      if (!validationResult) {
        this.keyboardService.hide();
        this.resetPin();
        this.lockService.unlock('updating-pin-value');
        const title = this.translateConfigService.translate('PG_IDENTIFY_INSERT_PASSWORD_CONFIRMATION_TOAST_INVALID_DATA_TITLE');
        const message = this.translateConfigService.translate('PG_IDENTIFY_INSERT_PASSWORD_CONFIRMATION_TOAST_INVALID_DATA_MESSAGE');
        const notification = {
          title,
          message,
          type: 'error'
        };
        this.notificatorService.notify(notification);
      } else {
        let onHideSubscription = null;

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

          this.loadingService.show(this.translateConfigService.translate('LOADING_PROCESSING_DATA'), 'on-set-password');
          this.cryptoService.digest(pin).then(this.onCryptoDigestSuccessResponse, this.onCryptoDigestErrorResponse);
        };

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

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

    this.validateInput = data => data && typeof data === 'string' && data.length === 4 && data === this.confirmationPin;

    this.onCryptoDigestSuccessResponse = response => {
      console.log('onCryptoDigestSuccessResponse');
      this.resetPin();
      this.lockService.unlock('updating-pin-value');
      const initRegisterdataStorage = this.initRegisterHasCompanyStorageService.get(); // KA_APP-715

      this.loadingService.hide(null, 'on-set-password').then(() => this.authService.register()).then(() => this.authService.updateLastAccessAt()).then(() => this.storageService.set('e2872ebbbf66ce5458a11804be66f215ef42d4ce', response)).then(() => this.authService.setDocument(this.document || initRegisterdataStorage?.document)) // KA_APP-715
      .then(() => this.authService.setForeigner(this.foreign || initRegisterdataStorage?.foreign)) // KA_APP-715
      .then(() => this.authService.setAuthenticated()).then(() => this.authService.setLogOff(false)).then(() => {}).catch(this.onCryptoDigestErrorResponse).finally( /*#__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* () {
        const data = yield _this.saveFlowStorageResetKeyService.getDataResetKeyInit();
        yield _this.managertokenUaamobileService.initStartGetTokenUaaMobile();

        _this.loadingService.show(_this.translateConfigService.translate('LOADING_AUTHENTICATING'), 'auth'); //


        try {
          if (data && data?.obfuscatedEmail && response) {
            data.newHashedPin = response;
            const navigationOptions = {
              queryParams: {
                document: data.document,
                obfuscatedEmail: data.obfuscatedEmail,
                email: data.email,
                firstName: data.firstName,
                refId: data.refId,
                context: 'forgot-pin',
                foreign: _this.foreign // KA_APP-715

              }
            };
            yield _this.saveFlowStorageResetKeyService.setDataResetKeyInit(data); // KA_APP-715

            _this.initRegisterHasCompanyStorageService.set({
              document: data.document ?? initRegisterdataStorage?.document,
              obfuscatedEmail: data.obfuscatedEmail,
              email: data.email,
              firstName: data.firstName,
              refId: data.refId,
              context: 'forgot-pin',
              foreign: _this.foreign
            }); // await this.resetPinForget(response, dataResetKeyFinish.resetKey);


            _this.navigationService.forward(['/identity-validator-code'], navigationOptions);
          } else {
            const navigationOptions = {
              queryParams: {
                notResetSession: true
              }
            };

            _this.initRegisterHasCompanyStorageService.remove(); // KA_APP-715


            _this.navigationService.root(['/home'], navigationOptions);
          }
        } catch (error) {
          _this.logService.logError('http::getToken:IdentityAppFlow', '', error);
        } finally {
          _this.loadingService.hide(null, 'auth');
        }
      }));
    };

    this.onCryptoDigestErrorResponse = response => {
      console.log('onCryptoDigestErrorResponse');
      console.log(response);
      this.logService.logError('user::onCryptoDigestErrorResponse', '', response);
      this.loadingService.hide(null, 'on-set-password').then(() => {
        this.resetPin();
        this.lockService.unlock('updating-pin-value');
        const title = this.translateConfigService.translate('PG_IDENTIFY_INSERT_PASSWORD_CONFIRMATION_TOAST_ERROR_TITLE');
        const message = this.translateConfigService.translate('PG_IDENTIFY_INSERT_PASSWORD_CONFIRMATION_TOAST_ERROR_MESSAGE');
        const notification = {
          title,
          message,
          type: 'error'
        };
        this.notificatorService.notify(notification);
      });
    };

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

    this.activatedRoute.queryParams.subscribe( /*#__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* (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.confirmationPin = params.pin ? params.pin : '';
        _this.document = params.document ? params.document : '';
        _this.foreign = params.foreign === 'true';
      });

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

  ngOnInit() {
    this.pinForm = this.formBuilder.group({
      pin: ['']
    });
  }

  ionViewDidEnter() {
    setTimeout(() => {
      this.focusInput();

      if (this.platform.is('android')) {
        this.keyboardService.show();
      }
    }, 250);
  }

  resetPinForget(newHashedPin, resetKey) {
    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* () {
      let err = null;

      try {
        yield _this2.apiService.resetPinFinish({
          newHashedPin,
          resetKey
        }).toPromise();

        _this2.navigationService.root(['/home']);
      } catch (error) {
        err = error;

        _this2.handleErrorResetPinFinish(error);

        _this2.logService.log('httpError::resetPinFinsh', 'Error request http  /pins/reset-finish', error);
      } finally {
        if (!err) {
          _this2.saveFlowStorageResetKeyService.clearAllDataResetKeyInit();
        }
      }
    })();
  }

  handleErrorResetPinFinish(response) {
    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,
          message: '',
          type: 'error',
          timeout: 10000,
          action: {
            label: 'Voltar!',
            customAction: this.onbackFix.bind(this)
          }
        };
        this.notificatorService.notify(notification);
        this.logService.log('httpError::resetPinFinsh', 'reset_key_not_found', response);
      } else {
        this.logService.log('httpError::resetPinFinsh', '', response);
      }
    }
  }

  onbackFix() {
    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* () {
      const data = yield _this3.saveFlowStorageResetKeyService.getDataResetKeyInit();
      const uuid = _this3.uuid;
      const document = data.document;
      data.resetKey;
      const navigationOptions = {
        queryParams: {
          uuid,
          document,
          context: 'forgot-pin',
          foreign: true,
          obfuscatedEmail: data.obfuscatedEmail,
          firstName: data.firstName
        }
      };

      _this3.navigationService.back(['/identity-validator-code'], navigationOptions);

      yield _this3.saveFlowStorageResetKeyService.setDataResetKeyInit(data);
    })();
  }

}

IdentityInsertPasswordConfirmationPage.ɵfac = function IdentityInsertPasswordConfirmationPage_Factory(t) {
  return new (t || IdentityInsertPasswordConfirmationPage)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_7__.UntypedFormBuilder), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_ionic_angular__WEBPACK_IMPORTED_MODULE_8__.Platform), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_2__.NotificatorService), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_router__WEBPACK_IMPORTED_MODULE_3__.ActivatedRoute), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_2__.LoadingService), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_2__.KeyboardService), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_2__.CryptoService), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_2__.StorageService), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_2__.AuthService), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_2__.DeviceInfoService), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_2__.NavigationService), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_2__.LockService), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_2__.LogService), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_2__.TranslateConfigService), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_2__.SaveFlowStorageResetKeyService), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_2__.ApiService), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_2__.ManagerTokenUaamobileService), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_shared_services_init_register_has_company_storage_service__WEBPACK_IMPORTED_MODULE_4__.InitRegisterHasCompanyStorageService));
};

IdentityInsertPasswordConfirmationPage.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineComponent"]({
  type: IdentityInsertPasswordConfirmationPage,
  selectors: [["app-identity-insert-password-confirmation"]],
  viewQuery: function IdentityInsertPasswordConfirmationPage_Query(rf, ctx) {
    if (rf & 1) {
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵviewQuery"](_c0, 5);
    }

    if (rf & 2) {
      let _t;

      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵloadQuery"]()) && (ctx.pinInputElement = _t.first);
    }
  },
  decls: 22,
  vars: 16,
  consts: [[1, "ion-no-border", 2, "height", "0"], [3, "ngStyle"], [1, "ion-margin-vertical"], [1, "flex-auto"], [1, "input-holder"], ["for", "pin", "tabindex", "0"], [3, "formGroup", "ngSubmit"], ["id", "pin", "type", "password", "formControlName", "pin", "maxlength", "4", "pattern", "[0-9]*", "inputmode", "numeric", 3, "placeholder", "input"], ["pin", ""], [1, "button-holder"], ["type", "button", 1, "back", 3, "click"]],
  template: function IdentityInsertPasswordConfirmationPage_Template(rf, ctx) {
    if (rf & 1) {
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](0, "ion-header", 0);
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "ion-content")(2, "ion-grid", 1)(3, "ion-row")(4, "ion-col", 2);
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](5, "app-full-logo");
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()();
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](6, "ion-row", 3)(7, "ion-col", 2)(8, "form")(9, "div", 4)(10, "label", 5);
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipe"](11, "translate");
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](12);
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipe"](13, "translate");
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](14, "form", 6);
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("ngSubmit", function IdentityInsertPasswordConfirmationPage_Template_form_ngSubmit_14_listener() {
        return ctx.onSubmit();
      });
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](15, "input", 7, 8);
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("input", function IdentityInsertPasswordConfirmationPage_Template_input_input_15_listener() {
        return ctx.onPinChange();
      });
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipe"](17, "translate");
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()()();
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](18, "div", 9)(19, "button", 10);
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function IdentityInsertPasswordConfirmationPage_Template_button_click_19_listener() {
        return ctx.goOneStepBack();
      });
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](20);
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipe"](21, "translate");
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()()()()()()();
    }

    if (rf & 2) {
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngStyle", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpureFunction1"](14, _c1, ctx.deviceInfoService.getDeviceHeight() + "px"));
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](8);
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵattribute"]("aria-label", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipeBind1"](11, 6, "PG_IDENTIFY_INSERT_PASSWORD_CONFIRMATION_TEXT"));
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipeBind1"](13, 8, "PG_IDENTIFY_INSERT_PASSWORD_CONFIRMATION_TEXT"), " ");
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("formGroup", ctx.pinForm);
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("placeholder", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipeBind1"](17, 10, "PG_IDENTIFY_INSERT_PASSWORD_CONFIRMATION_INPUT"));
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](5);
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipeBind1"](21, 12, "PG_IDENTIFY_INSERT_PASSWORD_CONFIRMATION_BTN_CHANGE_PASS"), " ");
    }
  },
  dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_5__.NgStyle, _ionic_angular__WEBPACK_IMPORTED_MODULE_8__.IonCol, _ionic_angular__WEBPACK_IMPORTED_MODULE_8__.IonContent, _ionic_angular__WEBPACK_IMPORTED_MODULE_8__.IonGrid, _ionic_angular__WEBPACK_IMPORTED_MODULE_8__.IonHeader, _ionic_angular__WEBPACK_IMPORTED_MODULE_8__.IonRow, _angular_forms__WEBPACK_IMPORTED_MODULE_7__["ɵNgNoValidate"], _angular_forms__WEBPACK_IMPORTED_MODULE_7__.DefaultValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_7__.NgControlStatus, _angular_forms__WEBPACK_IMPORTED_MODULE_7__.NgControlStatusGroup, _angular_forms__WEBPACK_IMPORTED_MODULE_7__.MaxLengthValidator, _angular_forms__WEBPACK_IMPORTED_MODULE_7__.PatternValidator, _angular_forms__WEBPACK_IMPORTED_MODULE_7__.FormGroupDirective, _angular_forms__WEBPACK_IMPORTED_MODULE_7__.FormControlName, _angular_forms__WEBPACK_IMPORTED_MODULE_7__.NgForm, _shared_components_full_logo_full_logo_component__WEBPACK_IMPORTED_MODULE_6__.FullLogoComponent, _ngx_translate_core__WEBPACK_IMPORTED_MODULE_9__.TranslatePipe],
  styles: [".input-holder[_ngcontent-%COMP%] {\n  text-align: center;\n  width: 95%;\n}\n.input-holder[_ngcontent-%COMP%]   .hidden[_ngcontent-%COMP%] {\n  height: 0;\n  width: 0;\n  padding: 0;\n  border: none;\n}\n.input-holder[_ngcontent-%COMP%]   input[_ngcontent-%COMP%] {\n  text-align: center;\n}\n.input-holder[_ngcontent-%COMP%]   .lonely-inputs[_ngcontent-%COMP%] {\n  display: flex;\n  justify-content: space-evenly;\n  margin-top: 36px;\n}\n.input-holder[_ngcontent-%COMP%]   .lonely-inputs[_ngcontent-%COMP%]   .lonely-input-holder[_ngcontent-%COMP%] {\n  position: relative;\n  width: 70px;\n  height: 70px;\n}\n.input-holder[_ngcontent-%COMP%]   .lonely-inputs[_ngcontent-%COMP%]   .lonely-input-holder[_ngcontent-%COMP%]   .bullet[_ngcontent-%COMP%] {\n  position: absolute;\n  top: 35px;\n  left: 35px;\n  height: 0;\n  width: 0;\n  background-color: #fff;\n  border-radius: 70px;\n  box-shadow: 0 0 0 rgba(0, 0, 0, 0);\n  transition: top 0.25s ease, left 0.25s ease, height 0.25s ease, width 0.25s ease, box-shadow 0.25s ease;\n}\n.input-holder[_ngcontent-%COMP%]   .lonely-inputs[_ngcontent-%COMP%]   .lonely-input-holder[_ngcontent-%COMP%]   .bullet.valid[_ngcontent-%COMP%] {\n  top: 17px;\n  left: 17px;\n  height: 35px;\n  width: 35px;\n  box-shadow: 0 0 8px rgba(0, 0, 0, 0.3);\n  transition: top 0.25s ease, left 0.25s ease, height 0.25s ease, width 0.25s ease, box-shadow 0.25s ease;\n}\n.input-holder[_ngcontent-%COMP%]   .lonely-inputs[_ngcontent-%COMP%]   .lonely-input-holder[_ngcontent-%COMP%]   input.lonely-input[_ngcontent-%COMP%] {\n  margin-top: 0;\n  width: 70px;\n  height: 70px;\n  border-radius: 70px;\n  padding: 0;\n  text-align: center;\n  line-height: 36px;\n  font-size: 1.75em;\n  background-color: #eee;\n  transition: background-color 0.25s ease;\n  box-shadow: inset 0 0 8px rgba(122, 122, 122, 0.1);\n  border: none;\n  color: transparent;\n  caret-color: transparent;\n}\n.input-holder[_ngcontent-%COMP%]   .lonely-inputs[_ngcontent-%COMP%]   .lonely-input-holder[_ngcontent-%COMP%]   input.lonely-input[_ngcontent-%COMP%]:focus {\n  outline: none;\n}\n.input-holder[_ngcontent-%COMP%]   .lonely-inputs[_ngcontent-%COMP%]   .lonely-input-holder[_ngcontent-%COMP%]   input.lonely-input.current[_ngcontent-%COMP%] {\n  animation-name: current-input;\n  animation-duration: 1.25s;\n  animation-iteration-count: infinite;\n}\n@keyframes current-input {\n  0% {\n    background-color: #eee;\n  }\n  50% {\n    background-color: #ccc;\n  }\n  100% {\n    background-color: #eee;\n  }\n}\n.input-holder[_ngcontent-%COMP%]   .lonely-inputs[_ngcontent-%COMP%]   .lonely-input-holder[_ngcontent-%COMP%]   input.lonely-input.valid[_ngcontent-%COMP%] {\n  background-color: #0ec254;\n  transition: background-color 0.25s ease;\n}\n.button-holder[_ngcontent-%COMP%] {\n  margin-top: 48px;\n  justify-content: center;\n}\n/*# sourceMappingURL=data:application/json;base64,[encoded data, 4532 characters] */"]
});

/***/ }),

/***/ 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=7726.js.map