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

/***/ 28338:
/*!*********************************************************************************!*\
  !*** ./src/app/insert-company-invite-code/insert-company-invite-code.module.ts ***!
  \*********************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "InsertCompanyInviteCodePageModule": () => (/* binding */ InsertCompanyInviteCodePageModule)
/* 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 _insert_company_invite_code_page__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./insert-company-invite-code.page */ 12874);
/* harmony import */ var _shared_module_shared_module_module__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../shared-module/shared-module.module */ 69270);
/* 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__);





const routes = [
    {
        path: '',
        component: _insert_company_invite_code_page__WEBPACK_IMPORTED_MODULE_1__.InsertCompanyInviteCodePage
    }
];
class InsertCompanyInviteCodePageModule {
}
InsertCompanyInviteCodePageModule.ɵfac = function InsertCompanyInviteCodePageModule_Factory(t) { return new (t || InsertCompanyInviteCodePageModule)(); };
InsertCompanyInviteCodePageModule.ɵmod = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdefineNgModule"]({ type: InsertCompanyInviteCodePageModule });
InsertCompanyInviteCodePageModule.ɵinj = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdefineInjector"]({ imports: [
        // CommonModule,
        // FormsModule,
        // IonicModule,
        // FontAwesomeModule,
        // ReactiveFormsModule,
        _shared_module_shared_module_module__WEBPACK_IMPORTED_MODULE_2__.SharedModuleModule,
        _angular_router__WEBPACK_IMPORTED_MODULE_0__.RouterModule.forChild(routes)] });
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵsetNgModuleScope"](InsertCompanyInviteCodePageModule, { declarations: [_insert_company_invite_code_page__WEBPACK_IMPORTED_MODULE_1__.InsertCompanyInviteCodePage], imports: [
        // CommonModule,
        // FormsModule,
        // IonicModule,
        // FontAwesomeModule,
        // ReactiveFormsModule,
        _shared_module_shared_module_module__WEBPACK_IMPORTED_MODULE_2__.SharedModuleModule, _angular_router__WEBPACK_IMPORTED_MODULE_0__.RouterModule] }); })();


/***/ }),

/***/ 12874:
/*!*******************************************************************************!*\
  !*** ./src/app/insert-company-invite-code/insert-company-invite-code.page.ts ***!
  \*******************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "InsertCompanyInviteCodePage": () => (/* binding */ InsertCompanyInviteCodePage)
/* 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_6__ = __webpack_require__(/*! @angular/forms */ 2508);
/* harmony import */ var _shared_services__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @shared/services */ 17253);
/* harmony import */ var _shared_services_sessionaddflow_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @shared/services/sessionaddflow.service */ 80698);
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @angular/common */ 90944);
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_angular_common__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var _ionic_angular__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @ionic/angular */ 93819);
/* harmony import */ var _shared_components_header_header_component__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../shared/components/header/header.component */ 36290);
/* harmony import */ var _ngx_translate_core__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @ngx-translate/core */ 38699);










function InsertCompanyInviteCodePage_div_15_div_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 14);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
  }

  if (rf & 2) {
    const error_r2 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](error_r2.message);
  }
}

function InsertCompanyInviteCodePage_div_15_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 12);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](1, InsertCompanyInviteCodePage_div_15_div_1_Template, 2, 1, "div", 13);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
  }

  if (rf & 2) {
    const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", ctx_r0.codeFormErrors);
  }
}

class InsertCompanyInviteCodePage {
  constructor(formBuilder, notificatorService, navigationService, loadingService, commonService, apiService, authService, pendingRelease, logService, translateConfigService, sessionAddFlowService) {
    var _this = this;

    this.formBuilder = formBuilder;
    this.notificatorService = notificatorService;
    this.navigationService = navigationService;
    this.loadingService = loadingService;
    this.commonService = commonService;
    this.apiService = apiService;
    this.authService = authService;
    this.pendingRelease = pendingRelease;
    this.logService = logService;
    this.translateConfigService = translateConfigService;
    this.sessionAddFlowService = sessionAddFlowService;
    this.existPendings = false;

    this.navigateToQRCode = () => {
      this.navigationService.forward(['/home']);
    };

    this.onSubmit = () => {
      this.cleanValidationErrors();
      const code = this.commonService.clearString(this.codeForm.controls.code.value);
      const data = {
        code
      };
      const validationResult = this.validateInput(data);

      if (!!validationResult.length) {
        this.setValidationErrors(validationResult);
        const notification = {
          title: this.translateConfigService.translate('PG_INVITE_COMPANY_CODE_TOAST_INVALID_DATA_TITLE'),
          message: this.translateConfigService.translate('PG_INVITE_COMPANY_CODE_TOAST_INVALID_DATA_MESSAGE'),
          type: 'error'
        };
        this.notificatorService.notify(notification);
      } else {
        this.authService.getToken().then(token => {
          this.loadingService.show(this.translateConfigService.translate('PG_INVITE_COMPANY_CODE_LOADING_VALIDATING'), 'code-validation');
          this.apiService.validateCompanyInviteCode(data.code, token).subscribe(this.processValidateCompanyInviteCodeSuccessResponse, this.processValidateCompanyInviteCodeErrorResponse);
        });
      }
    };

    this.processValidateCompanyInviteCodeSuccessResponse = response => {
      console.log('processValidateCompanyInviteCodeSuccessResponse');
      const {
        locator,
        invitationKey
      } = response;
      this.locator = locator;
      this.invitationKey = invitationKey;
      this.validateLink();
    };

    this.processValidateCompanyInviteCodeErrorResponse = error => {
      console.log('processValidateCompanyInviteCodeErrorResponse');
      console.log('error:', error);
      this.logService.logError('http::processValidateCompanyInviteCodeErrorResponse', '', error);
      this.loadingService.hide(null, 'code-validation');
      const notification = {
        title: this.translateConfigService.translate('PG_INVITE_COMPANY_CODE_TOAST_INVALID_CODE_TITLE'),
        message: this.translateConfigService.translate('PG_INVITE_COMPANY_CODE_TOAST_INVALID_CODE_MESSAGE'),
        type: 'error',
        timeout: 5000
      };
      this.notificatorService.notify(notification);
    };

    this.validateLink = () => {
      let token = '';
      this.authService.getToken().then(tokenReceived => {
        token = tokenReceived;
        return this.authService.getForeigner();
      }).then(foreigner => {
        this.apiService.validateInvite(this.locator, this.invitationKey, token, foreigner).subscribe(this.processValidateInviteSuccessResponse, this.processValidateInviteErrorResponse);
      });
    };

    this.processValidateInviteSuccessResponse = () => {
      this.loadingService.hide(null, 'code-validation').then(() => {
        const notification = {
          title: this.translateConfigService.translate('PG_INVITE_COMPANY_CODE_TOAST_RATE_INVITE_TITLE'),
          message: this.translateConfigService.translate('PG_INVITE_COMPANY_CODE_TOAST_RATE_INVITE_MESSAGE'),
          type: 'success',
          timeout: 6000
        };
        this.notificatorService.notify(notification);
        this.goToDeepPage(this.locator, this.invitationKey);
      });
    };

    this.processValidateInviteErrorResponse = response => {
      console.log('processValidateInviteErrorResponse');
      console.log('response:', JSON.stringify(response));
      this.loadingService.hide(null, 'code-validation').then( /*#__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 (response && response.status) {
          if (response.status === 400 && response.error && response.error.message === 'error.invitenotvalid') {
            const notification = {
              title: _this.translateConfigService.translate('PG_INVITE_COMPANY_CODE_TOAST_INVALID_INVITE_TITLE'),
              message: _this.translateConfigService.translate('PG_INVITE_COMPANY_CODE_TOAST_INVALID_INVITE_MESSAGE'),
              type: 'error',
              timeout: 5000
            };
            return _this.notificatorService.notify(notification);
          } else if (response.status === 400 && response.error && response.error.message === 'error.accountnotfound') {
            const notification = {
              title: _this.translateConfigService.translate('PG_INVITE_COMPANY_CODE_TOAST_ACCOUNT_NOTFOUND_TITLE'),
              message: _this.translateConfigService.translate('PG_INVITE_COMPANY_CODE_TOAST_ACCOUNT_NOTFOUND_MESSAGE'),
              type: 'error',
              timeout: 5000
            };
            return _this.notificatorService.notify(notification);
          } else if (response.status === 400 && response.error && response.error.message === 'error.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 (response.status === 400 && response.error.errorKey === '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 {
            _this.logService.logError('http::processValidateInviteErrorResponseWithStatusElseCase', '', response);

            const notification = {
              title: _this.translateConfigService.translate('PG_INVITE_COMPANY_CODE_TOAST_SERVICE_ERROR_TITLE'),
              message: `${_this.translateConfigService.translate('PG_INVITE_COMPANY_CODE_TOAST_SERVICE_ERROR_TITLE')} (cod. ${response.status})`,
              type: 'error',
              timeout: 5000
            };
            return _this.notificatorService.notify(notification);
          }
        } else {
          _this.logService.logError('http::processValidateInviteErrorResponseWithoutStatusElseCase', '', response);

          const notification = {
            title: _this.translateConfigService.translate('PG_INVITE_COMPANY_CODE_TOAST_SERVICE_ERROR_TITLE'),
            message: `${_this.translateConfigService.translate('PG_INVITE_COMPANY_CODE_TOAST_SERVICE_ERROR_TITLE')} (cod. NKNwN)`,
            type: 'error',
            timeout: 5000
          };
          return _this.notificatorService.notify(notification);
        }
      }));
    };

    this.validateInput = data => {
      const errors = [];
      const codeInputValidationErrors = this.validateCodeInput(data);

      if (codeInputValidationErrors) {
        errors.push(codeInputValidationErrors);
      }

      return errors;
    };

    this.validateCodeInput = data => {
      if (!data.code || data.code.length < 1) {
        return {
          message: this.translateConfigService.translate('PG_INVITE_COMPANY_CODE_TEXT_CODE_REQUIRED'),
          field: 'code'
        };
      }

      return null;
    };

    this.setValidationErrors = errors => {
      console.log('setValidationErrors:', errors);
      this.codeFormErrors = errors;
    };

    this.cleanValidationErrors = () => {
      this.codeFormErrors = [];
    };

    this.goToHome = () => {
      this.cleanValidationErrors();
      this.navigationService.back(['/home']);
    };

    this.goToDeepPage = (locator, invitationKey) => {
      const navigationExtras = {
        queryParams: {
          l: locator,
          k: invitationKey,
          origin: 'CODE'
        }
      };
      this.navigationService.forward(['/deep'], navigationExtras);
    };

    this.codeForm = this.formBuilder.group({
      code: ['']
    });
    this.sessionAddFlowService.clearAndGenerateSessionId();
  }

  ionViewDidEnter() {
    this.authService.getForeigner().then(foreign => {
      this.foreign = foreign;
    }); // this.verifyNotifications;
  }

  ionViewDidLeave() {}

}

InsertCompanyInviteCodePage.ɵfac = function InsertCompanyInviteCodePage_Factory(t) {
  return new (t || InsertCompanyInviteCodePage)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_6__.UntypedFormBuilder), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_2__.NotificatorService), _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__.LoadingService), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_2__.CommonService), _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__.AuthService), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_2__.PendingReleaseService), _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_sessionaddflow_service__WEBPACK_IMPORTED_MODULE_3__.SessionaddflowService));
};

InsertCompanyInviteCodePage.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineComponent"]({
  type: InsertCompanyInviteCodePage,
  selectors: [["app-insert-company-invite-code"]],
  decls: 23,
  vars: 19,
  consts: [[3, "title", "showBadge", "refresh"], [1, "centralized-content"], [1, "page-title"], [1, "title"], [1, "ion-margin-vertical"], [3, "formGroup", "ngSubmit"], [1, "input-holder"], ["type", "text", "formControlName", "code", 3, "placeholder"], ["class", "errors", 4, "ngIf"], [1, "button-holder"], ["type", "button", 1, "back", 3, "click"], ["type", "submit"], [1, "errors"], ["class", "error", 4, "ngFor", "ngForOf"], [1, "error"]],
  template: function InsertCompanyInviteCodePage_Template(rf, ctx) {
    if (rf & 1) {
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](0, "app-header", 0);
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipe"](1, "translate");
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "ion-content")(3, "div", 1)(4, "div", 2)(5, "div", 3)(6, "h1");
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](7);
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipe"](8, "translate");
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()()();
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](9, "ion-row")(10, "ion-col", 4)(11, "form", 5);
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("ngSubmit", function InsertCompanyInviteCodePage_Template_form_ngSubmit_11_listener() {
        return ctx.onSubmit();
      });
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](12, "div", 6);
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](13, "input", 7);
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipe"](14, "translate");
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](15, InsertCompanyInviteCodePage_div_15_Template, 2, 1, "div", 8);
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](16, "div", 9)(17, "button", 10);
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function InsertCompanyInviteCodePage_Template_button_click_17_listener() {
        return ctx.goToHome();
      });
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](18);
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipe"](19, "translate");
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](20, "button", 11);
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](21);
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipe"](22, "translate");
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()()()()()()();
    }

    if (rf & 2) {
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("title", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipeBind1"](1, 9, "PG_INVITE_COMPANY_CODE_HEADER_TITLE"))("showBadge", true)("refresh", false);
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](7);
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipeBind1"](8, 11, "PG_INVITE_COMPANY_CODE_TEXT"));
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("formGroup", ctx.codeForm);
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("placeholder", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipeBind1"](14, 13, "PG_INVITE_COMPANY_CODE_INPUT"));
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx.codeFormErrors);
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipeBind1"](19, 15, "BTN_BACK"), " ");
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipeBind1"](22, 17, "BTN_NEXT"));
    }
  },
  dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_4__.NgForOf, _angular_common__WEBPACK_IMPORTED_MODULE_4__.NgIf, _ionic_angular__WEBPACK_IMPORTED_MODULE_7__.IonCol, _ionic_angular__WEBPACK_IMPORTED_MODULE_7__.IonContent, _ionic_angular__WEBPACK_IMPORTED_MODULE_7__.IonRow, _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, _shared_components_header_header_component__WEBPACK_IMPORTED_MODULE_5__.HeaderComponent, _ngx_translate_core__WEBPACK_IMPORTED_MODULE_8__.TranslatePipe],
  styles: ["ion-content[_ngcontent-%COMP%] {\n  --background: #f1f1f1;\n}\n\nion-toolbar[_ngcontent-%COMP%] {\n  font-family: \"Nunito\", sans-serif;\n  --border-style: none;\n}\n\nion-toolbar[_ngcontent-%COMP%]   ion-img[_ngcontent-%COMP%] {\n  height: 25px;\n  width: 25px;\n}\n\nion-toolbar[_ngcontent-%COMP%]   ion-title[_ngcontent-%COMP%] {\n  letter-spacing: 1px;\n}\n\nion-toolbar[_ngcontent-%COMP%]   ion-button[_ngcontent-%COMP%]   fa-icon[_ngcontent-%COMP%] {\n  display: flex;\n  justify-content: center;\n  align-items: center;\n  height: 24px;\n  padding: 0;\n  width: 24px;\n  margin: 0;\n  font-size: 19px;\n  color: #656768;\n}\n\nion-toolbar[_ngcontent-%COMP%]   ion-button.hover[_ngcontent-%COMP%] {\n  background: #fff;\n}\n\n.centralized-content[_ngcontent-%COMP%] {\n  height: calc(100vh - 56px);\n  display: flex;\n  justify-content: flex-start;\n  flex-direction: column;\n}\n\n.centralized-content[_ngcontent-%COMP%]   .input-holder[_ngcontent-%COMP%]   input[type=text][_ngcontent-%COMP%] {\n  text-align: center;\n  text-transform: uppercase;\n  letter-spacing: 12px;\n}\n\n.centralized-content[_ngcontent-%COMP%]   .errors[_ngcontent-%COMP%] {\n  width: 80%;\n  margin: 12px 10% 0;\n  color: #f0181b;\n  text-align: center;\n}\n\n.centralized-content[_ngcontent-%COMP%]   .page-title[_ngcontent-%COMP%] {\n  margin-top: 32px;\n  margin-bottom: 32px;\n}\n\n.centralized-content[_ngcontent-%COMP%]   .page-title[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%] {\n  font-size: initial !important;\n  font-weight: bold;\n  text-align: center;\n}\n\n.centralized-content[_ngcontent-%COMP%]   .page-title[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]   h1[_ngcontent-%COMP%] {\n  font-size: 1.1rem !important;\n  padding-inline: 16px;\n}\n\n.centralized-content[_ngcontent-%COMP%]   .page-title[_ngcontent-%COMP%]   .sub-title[_ngcontent-%COMP%] {\n  text-align: center;\n  color: #656768;\n  font-size: 0.9em;\n  margin-top: 4px;\n}\n\n.pulsate-fwd[_ngcontent-%COMP%] {\n  animation: pulsate-fwd 0.5s ease-in-out infinite both;\n  outline: none;\n}\n\n@keyframes pulsate-fwd {\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