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

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

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "DeleteAccountPageRoutingModule": () => (/* binding */ DeleteAccountPageRoutingModule)
/* 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 _delete_account_page__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./delete-account.page */ 52526);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/core */ 45449);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_angular_core__WEBPACK_IMPORTED_MODULE_2__);




const routes = [
    {
        path: '',
        component: _delete_account_page__WEBPACK_IMPORTED_MODULE_1__.DeleteAccountPage
    }
];
class DeleteAccountPageRoutingModule {
}
DeleteAccountPageRoutingModule.ɵfac = function DeleteAccountPageRoutingModule_Factory(t) { return new (t || DeleteAccountPageRoutingModule)(); };
DeleteAccountPageRoutingModule.ɵmod = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdefineNgModule"]({ type: DeleteAccountPageRoutingModule });
DeleteAccountPageRoutingModule.ɵinj = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdefineInjector"]({ imports: [_angular_router__WEBPACK_IMPORTED_MODULE_0__.RouterModule.forChild(routes), _angular_router__WEBPACK_IMPORTED_MODULE_0__.RouterModule] });
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵsetNgModuleScope"](DeleteAccountPageRoutingModule, { imports: [_angular_router__WEBPACK_IMPORTED_MODULE_0__.RouterModule], exports: [_angular_router__WEBPACK_IMPORTED_MODULE_0__.RouterModule] }); })();


/***/ }),

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

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "DeleteAccountPageModule": () => (/* binding */ DeleteAccountPageModule)
/* harmony export */ });
/* harmony import */ var _delete_account_routing_module__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./delete-account-routing.module */ 83644);
/* harmony import */ var src_app_shared_module_shared_module_module__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! src/app/shared-module/shared-module.module */ 69270);
/* harmony import */ var _delete_account_page__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./delete-account.page */ 52526);
/* 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__);




class DeleteAccountPageModule {
}
DeleteAccountPageModule.ɵfac = function DeleteAccountPageModule_Factory(t) { return new (t || DeleteAccountPageModule)(); };
DeleteAccountPageModule.ɵmod = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdefineNgModule"]({ type: DeleteAccountPageModule });
DeleteAccountPageModule.ɵinj = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdefineInjector"]({ imports: [src_app_shared_module_shared_module_module__WEBPACK_IMPORTED_MODULE_1__.SharedModuleModule, _delete_account_routing_module__WEBPACK_IMPORTED_MODULE_0__.DeleteAccountPageRoutingModule] });
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵsetNgModuleScope"](DeleteAccountPageModule, { declarations: [_delete_account_page__WEBPACK_IMPORTED_MODULE_2__.DeleteAccountPage], imports: [src_app_shared_module_shared_module_module__WEBPACK_IMPORTED_MODULE_1__.SharedModuleModule, _delete_account_routing_module__WEBPACK_IMPORTED_MODULE_0__.DeleteAccountPageRoutingModule] }); })();


/***/ }),

/***/ 52526:
/*!***************************************************************!*\
  !*** ./src/app/account/delete-account/delete-account.page.ts ***!
  \***************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "DeleteAccountPage": () => (/* binding */ DeleteAccountPage)
/* 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 _modal_confirm_delete_account_modal_confirm_delete_account_component__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../modal-confirm-delete-account/modal-confirm-delete-account.component */ 49730);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/core */ 45449);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_angular_core__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _ionic_angular__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @ionic/angular */ 93819);
/* harmony import */ var _shared_services_sessionaddflow_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @shared/services/sessionaddflow.service */ 80698);
/* harmony import */ var _shared_components_header_header_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../shared/components/header/header.component */ 36290);
/* 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 _ngx_translate_core__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @ngx-translate/core */ 38699);









const _c0 = function () {
  return ["/account"];
};

class DeleteAccountPage {
  constructor(modalCtrl, sessionAddFlowService) {
    this.modalCtrl = modalCtrl;
    this.sessionAddFlowService = sessionAddFlowService;
  }

  ngOnInit() {
    this.sessionAddFlowService.createXKACSessionId();
  }

  openModalConfirmDelete() {
    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* () {
      const modal = yield _this.modalCtrl.create({
        component: _modal_confirm_delete_account_modal_confirm_delete_account_component__WEBPACK_IMPORTED_MODULE_1__.ModalConfirmDeleteAccountComponent,
        cssClass: 'modal-confirm-delete-account '
      });
      yield modal.present();
      const {
        data: closeModal
      } = yield modal.onDidDismiss();
    })();
  }

}

DeleteAccountPage.ɵfac = function DeleteAccountPage_Factory(t) {
  return new (t || DeleteAccountPage)(_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](_ionic_angular__WEBPACK_IMPORTED_MODULE_6__.ModalController), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](_shared_services_sessionaddflow_service__WEBPACK_IMPORTED_MODULE_3__.SessionaddflowService));
};

DeleteAccountPage.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdefineComponent"]({
  type: DeleteAccountPage,
  selectors: [["app-delete-account"]],
  decls: 28,
  vars: 25,
  consts: [["defaultHref", "/account", 3, "refresh", "toQRCode", "title"], [1, "content"], [1, "content__title"], [1, "content__description"], [1, "content__description__desc_01", 3, "innerHTML"], [1, "content__description__desc_02"], [1, "content__end-description"], [1, "content__btns"], [1, "content__btns__not-delete"], ["routerLinkActive", "router-link-active", "shape", "round", 1, "no_delete_btn", 3, "routerLink"], [1, "content__btns__yes-delete"], ["mode", "ios", "color", "danger", "fill", "clear", 3, "click"]],
  template: function DeleteAccountPage_Template(rf, ctx) {
    if (rf & 1) {
      _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](0, "app-header", 0);
      _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipe"](1, "translate");
      _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "ion-content")(3, "div", 1)(4, "div", 2)(5, "h3");
      _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](6);
      _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipe"](7, "translate");
      _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()();
      _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](8, "div", 3)(9, "ul");
      _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](10, "li", 4);
      _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipe"](11, "translate");
      _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](12, "li", 5);
      _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](13);
      _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipe"](14, "translate");
      _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()()();
      _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](15, "div", 6)(16, "h4");
      _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](17);
      _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipe"](18, "translate");
      _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()();
      _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](19, "div", 7)(20, "div", 8)(21, "ion-button", 9);
      _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](22);
      _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipe"](23, "translate");
      _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()();
      _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](24, "div", 10)(25, "ion-button", 11);
      _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function DeleteAccountPage_Template_ion_button_click_25_listener() {
        return ctx.openModalConfirmDelete();
      });
      _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](26);
      _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipe"](27, "translate");
      _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()()()()();
    }

    if (rf & 2) {
      _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("refresh", false)("toQRCode", false)("title", _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipeBind1"](1, 10, "PG_DELETE_ACCOUNT.HEADER_TITLE"));
      _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](6);
      _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipeBind1"](7, 12, "PG_DELETE_ACCOUNT.TITLE"));
      _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](4);
      _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("innerHTML", _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipeBind1"](11, 14, "PG_DELETE_ACCOUNT.DESC_01"), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵsanitizeHtml"]);
      _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3);
      _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipeBind1"](14, 16, "PG_DELETE_ACCOUNT.DESC_02"));
      _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](4);
      _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipeBind1"](18, 18, "PG_DELETE_ACCOUNT.DESC_03"));
      _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](4);
      _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("routerLink", _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpureFunction0"](24, _c0));
      _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
      _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipeBind1"](23, 20, "PG_DELETE_ACCOUNT.BTN_NOT_DELETE"), " ");
      _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](4);
      _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipeBind1"](27, 22, "PG_DELETE_ACCOUNT.BTN_CONFIRM"), " ");
    }
  },
  dependencies: [_ionic_angular__WEBPACK_IMPORTED_MODULE_6__.IonButton, _ionic_angular__WEBPACK_IMPORTED_MODULE_6__.IonContent, _ionic_angular__WEBPACK_IMPORTED_MODULE_6__.RouterLinkDelegate, _shared_components_header_header_component__WEBPACK_IMPORTED_MODULE_4__.HeaderComponent, _angular_router__WEBPACK_IMPORTED_MODULE_5__.RouterLink, _angular_router__WEBPACK_IMPORTED_MODULE_5__.RouterLinkActive, _ngx_translate_core__WEBPACK_IMPORTED_MODULE_7__.TranslatePipe],
  styles: ["ion-content[_ngcontent-%COMP%] {\n  --background: #efefef;\n}\n\n.content[_ngcontent-%COMP%] {\n  padding: 1em 2em;\n  display: flex;\n  color: #383a3e;\n  flex-direction: column;\n  height: 100%;\n  align-items: center;\n}\n\n.content__title[_ngcontent-%COMP%] {\n  text-align: center;\n}\n\n.content__title[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%] {\n  font-size: 18px !important;\n  font-weight: 600;\n}\n\n.content__description[_ngcontent-%COMP%] {\n  line-height: 25px;\n  letter-spacing: 0.045em;\n  color: #383a3e;\n}\n\n.content__description[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%] {\n  padding: 0 1em;\n}\n\n.content__description[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]   li[_ngcontent-%COMP%] {\n  font-weight: 400;\n  font-size: 1em !important;\n}\n\n.content__description__desc_01[_ngcontent-%COMP%] {\n  padding-bottom: 15.5px;\n}\n\n.content__description__desc_02[_ngcontent-%COMP%] {\n  padding-top: 0.8em;\n  padding-bottom: 1.5em;\n}\n\n.content__end-description[_ngcontent-%COMP%] {\n  margin-bottom: 3em;\n  line-height: 25px;\n  display: flex;\n  align-items: center;\n  text-align: center;\n  letter-spacing: 0.045em;\n  color: #000000;\n}\n\n.content__end-description[_ngcontent-%COMP%]   h4[_ngcontent-%COMP%] {\n  font-weight: 600;\n  font-size: 1em;\n}\n\n.content__btns[_ngcontent-%COMP%] {\n  display: flex;\n  flex-direction: column;\n  align-items: center;\n}\n\n.content__btns[_ngcontent-%COMP%]   ion-button[_ngcontent-%COMP%] {\n  width: 250px;\n  height: 40px;\n  text-transform: initial;\n}\n\n.content__btns[_ngcontent-%COMP%]   ion-button.no_delete_btn[_ngcontent-%COMP%] {\n  --background: #CCCCCC;\n  --box-shadow: none !important;\n  --color: #FFF;\n}\n\n.content__btns__not-delete[_ngcontent-%COMP%] {\n  padding-bottom: 0.5em;\n}\n\n.content__btns__yes-delete[_ngcontent-%COMP%] {\n  margin-bottom: 2em;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImRlbGV0ZS1hY2NvdW50LnBhZ2Uuc2NzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTtFQUNFLHFCQUFBO0FBQ0Y7O0FBQ0E7RUFDRSxnQkFBQTtFQUNBLGFBQUE7RUFDQSxjQUFBO0VBQ0Esc0JBQUE7RUFDQSxZQUFBO0VBQ0EsbUJBQUE7QUFFRjs7QUFERTtFQUNFLGtCQUFBO0FBR0o7O0FBRkk7RUFDRSwwQkFBQTtFQUNBLGdCQUFBO0FBSU47O0FBREU7RUFDRSxpQkFBQTtFQUVBLHVCQUFBO0VBQ0EsY0FBQTtBQUVKOztBQURJO0VBQ0UsY0FBQTtBQUdOOztBQUZNO0VBQ0UsZ0JBQUE7RUFDQSx5QkFBQTtBQUlSOztBQURJO0VBQ0Usc0JBQUE7QUFHTjs7QUFESTtFQUNFLGtCQUFBO0VBQ0EscUJBQUE7QUFHTjs7QUFBRTtFQUNFLGtCQUFBO0VBQ0EsaUJBQUE7RUFDQSxhQUFBO0VBQ0EsbUJBQUE7RUFDQSxrQkFBQTtFQUNBLHVCQUFBO0VBQ0EsY0FBQTtBQUVKOztBQURJO0VBQ0UsZ0JBQUE7RUFDQSxjQUFBO0FBR047O0FBQUU7RUFDRSxhQUFBO0VBQ0Esc0JBQUE7RUFDQSxtQkFBQTtBQUVKOztBQURJO0VBQ0UsWUFBQTtFQUNBLFlBQUE7RUFDQSx1QkFBQTtBQUdOOztBQUZNO0VBQ0UscUJBQUE7RUFDQSw2QkFBQTtFQUNBLGFBQUE7QUFJUjs7QUFESTtFQUNFLHFCQUFBO0FBR047O0FBREk7RUFDRSxrQkFBQTtBQUdOIiwiZmlsZSI6ImRlbGV0ZS1hY2NvdW50LnBhZ2Uuc2NzcyIsInNvdXJjZXNDb250ZW50IjpbImlvbi1jb250ZW50IHtcbiAgLS1iYWNrZ3JvdW5kOiAjZWZlZmVmO1xufVxuLmNvbnRlbnQge1xuICBwYWRkaW5nOiAxZW0gMmVtO1xuICBkaXNwbGF5OiBmbGV4O1xuICBjb2xvcjogIzM4M2EzZTtcbiAgZmxleC1kaXJlY3Rpb246IGNvbHVtbjtcbiAgaGVpZ2h0OiAxMDAlO1xuICBhbGlnbi1pdGVtczogY2VudGVyO1xuICAmX190aXRsZSB7XG4gICAgdGV4dC1hbGlnbjogY2VudGVyO1xuICAgIGgzIHtcbiAgICAgIGZvbnQtc2l6ZTogMThweCAhaW1wb3J0YW50O1xuICAgICAgZm9udC13ZWlnaHQ6IDYwMDtcbiAgICB9XG4gIH1cbiAgJl9fZGVzY3JpcHRpb24ge1xuICAgIGxpbmUtaGVpZ2h0OiAyNXB4O1xuICAgXG4gICAgbGV0dGVyLXNwYWNpbmc6IDAuMDQ1ZW07XG4gICAgY29sb3I6ICMzODNhM2U7XG4gICAgdWwge1xuICAgICAgcGFkZGluZzogMCAxZW07XG4gICAgICBsaSB7XG4gICAgICAgIGZvbnQtd2VpZ2h0OiA0MDA7XG4gICAgICAgIGZvbnQtc2l6ZTogMWVtICFpbXBvcnRhbnQ7XG4gICAgICB9XG4gICAgfVxuICAgICZfX2Rlc2NfMDEge1xuICAgICAgcGFkZGluZy1ib3R0b206IDE1LjVweDtcbiAgICB9XG4gICAgJl9fZGVzY18wMiB7XG4gICAgICBwYWRkaW5nLXRvcDogMC44ZW07XG4gICAgICBwYWRkaW5nLWJvdHRvbTogMS41ZW07XG4gICAgfVxuICB9XG4gICZfX2VuZC1kZXNjcmlwdGlvbiB7XG4gICAgbWFyZ2luLWJvdHRvbTogM2VtO1xuICAgIGxpbmUtaGVpZ2h0OiAyNXB4O1xuICAgIGRpc3BsYXk6IGZsZXg7XG4gICAgYWxpZ24taXRlbXM6IGNlbnRlcjtcbiAgICB0ZXh0LWFsaWduOiBjZW50ZXI7XG4gICAgbGV0dGVyLXNwYWNpbmc6IDAuMDQ1ZW07XG4gICAgY29sb3I6ICMwMDAwMDA7XG4gICAgaDQge1xuICAgICAgZm9udC13ZWlnaHQ6IDYwMDtcbiAgICAgIGZvbnQtc2l6ZTogMWVtO1xuICAgIH1cbiAgfVxuICAmX19idG5zIHtcbiAgICBkaXNwbGF5OiBmbGV4O1xuICAgIGZsZXgtZGlyZWN0aW9uOiBjb2x1bW47XG4gICAgYWxpZ24taXRlbXM6IGNlbnRlcjtcbiAgICBpb24tYnV0dG9uIHtcbiAgICAgIHdpZHRoOiAyNTBweDtcbiAgICAgIGhlaWdodDogNDBweDtcbiAgICAgIHRleHQtdHJhbnNmb3JtOiBpbml0aWFsO1xuICAgICAgJi5ub19kZWxldGVfYnRuIHtcbiAgICAgICAgLS1iYWNrZ3JvdW5kOiAjQ0NDQ0NDO1xuICAgICAgICAtLWJveC1zaGFkb3c6IG5vbmUgIWltcG9ydGFudDtcbiAgICAgICAgLS1jb2xvcjogI0ZGRjtcbiAgICAgIH1cbiAgICB9XG4gICAgJl9fbm90LWRlbGV0ZSB7XG4gICAgICBwYWRkaW5nLWJvdHRvbTogMC41ZW07XG4gICAgfVxuICAgICZfX3llcy1kZWxldGUge1xuICAgICAgbWFyZ2luLWJvdHRvbTogMmVtO1xuICAgIH1cbiAgfVxufVxuIl19 */"]
});

/***/ }),

/***/ 49730:
/*!************************************************************************************************!*\
  !*** ./src/app/account/modal-confirm-delete-account/modal-confirm-delete-account.component.ts ***!
  \************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "ModalConfirmDeleteAccountComponent": () => (/* binding */ ModalConfirmDeleteAccountComponent)
/* 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 _aparajita_capacitor_biometric_auth__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @aparajita/capacitor-biometric-auth */ 54362);
/* harmony import */ var _capacitor_app__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @capacitor/app */ 93253);
/* harmony import */ var _capacitor_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @capacitor/core */ 26549);
/* harmony import */ var _capacitor_network__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @capacitor/network */ 54984);
/* harmony import */ var _shared_services__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @shared/services */ 17253);
/* harmony import */ var _ionic_angular__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @ionic/angular */ 93819);
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @angular/forms */ 2508);
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @angular/common */ 90944);
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_angular_common__WEBPACK_IMPORTED_MODULE_7__);
/* harmony import */ var _ngx_translate_core__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @ngx-translate/core */ 38699);












const _c0 = ["pinDeleteAccount"];

function ModalConfirmDeleteAccountComponent_ion_icon_14_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](0, "ion-icon", 16);
  }
}

function ModalConfirmDeleteAccountComponent_ion_icon_15_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](0, "ion-icon", 17);
  }
}

function ModalConfirmDeleteAccountComponent_ion_label_16_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "ion-label");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipe"](2, "translate");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
  }

  if (rf & 2) {
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipeBind1"](2, 1, "MD_DELETE_ACCOUNT.TEXT_FINGER_BIOMETRIC"), " ");
  }
}

function ModalConfirmDeleteAccountComponent_ion_label_17_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "ion-label");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipe"](2, "translate");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
  }

  if (rf & 2) {
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipeBind1"](2, 1, "MD_DELETE_ACCOUNT.TEXT_FINGER_FACIAL"), " ");
  }
}

class ModalConfirmDeleteAccountComponent {
  constructor(logService, apiService, modalCtrl, lockService, formBuilder, keyboardService, platform, loadingService, loaderService, authService, notificatorService, navigationService, createEventService, resumeCreateEventInterruptedService, translateConfigService, domCtrl, renderer, overlayService, profileManagerService, portalLoginManagerService, authLoginTokenService, managerTokenUaamobile, fcmService) {
    var _this = this;

    this.logService = logService;
    this.apiService = apiService;
    this.modalCtrl = modalCtrl;
    this.lockService = lockService;
    this.formBuilder = formBuilder;
    this.keyboardService = keyboardService;
    this.platform = platform;
    this.loadingService = loadingService;
    this.loaderService = loaderService;
    this.authService = authService;
    this.notificatorService = notificatorService;
    this.navigationService = navigationService;
    this.createEventService = createEventService;
    this.resumeCreateEventInterruptedService = resumeCreateEventInterruptedService;
    this.translateConfigService = translateConfigService;
    this.domCtrl = domCtrl;
    this.renderer = renderer;
    this.overlayService = overlayService;
    this.profileManagerService = profileManagerService;
    this.portalLoginManagerService = portalLoginManagerService;
    this.authLoginTokenService = authLoginTokenService;
    this.managerTokenUaamobile = managerTokenUaamobile;
    this.fcmService = fcmService;
    this.isFingerAvaliable = false;
    this.subscription$ = [];
    this.didItComeFromSideMenu = false;

    this.setFocus = () => {
      if (this.platform.is('android')) {
        setTimeout(() => {
          this.focusInput();
          this.keyboardService.show();
        }, 1000);
      } else {
        this.focusInput();
      }
    };

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

    this.onPinChange = event => {
      const inputValue = this.pinForm.controls.pin.value;

      if (inputValue.length === 4) {
        console.log(inputValue);
        const timeOut = setTimeout(() => {
          this.onSubmit();
          clearTimeout(timeOut);
        }, 250);
      } else {
        this.lockService.unlock('updating-pin-value');
      }
    };

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

    this.onSubmit = () => {
      this.loaderService.show(this.translateConfigService.translate('LOADING_CHECKING_DATA') // 'on-check-password-show'
      );
      let onHideSubscription = null;
      const nativeElement = this.pinInputElementDeleteAccount.nativeElement;

      const onKeyboardHideCallback = /*#__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* () {
          if (onHideSubscription) {
            onHideSubscription.unsubscribe();
          }

          const pin = _this.pinForm.controls.pin.value;

          try {
            const response = yield _this.authService.validatePassword(pin);

            if (response) {
              // this.loadingService.hide(null, 'on-check-password-show');
              _this.loaderService.hide();

              _this.addClassSuccess();

              const deleteAccount = yield _this.deleteAccount();

              if (deleteAccount) {
                _this.close();

                _this.cleanDeviceStorage();
              }
            } else {
              _this.loaderService.hide(); // this.loadingService.hide(null, 'on-check-password-show');


              _this.addRemoveClass(nativeElement, 'content_modal__shake-horizontal_error', true);

              setTimeout(() => {
                _this.addRemoveClass(nativeElement, 'content_modal__shake-horizontal_error', false);
              }, 2000);

              _this.resetPin();

              _this.lockService.unlock('updating-pin-value');

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

              const message = _this.translateConfigService.translate('PG_IDENTITY_CHECK_TOAST_INVALID_PIN_MESSAGE');

              _this.toast(title, message);

              _this.logService.logEvent('insert-pin', 'The user entered an incorrect PIN');
            }
          } catch (error) {
            _this.loaderService.hide(); // this.loadingService.hide(null, 'on-check-password-show');


            _this.resetPin();

            _this.lockService.unlock('updating-pin-value');

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

            const message = _this.translateConfigService.translate('PG_IDENTITY_CHECK_TOAST_ERROR_MESSAGE');

            const notification = {
              title,
              message,
              type: 'error'
            };

            _this.cleanDeviceStorage();

            _this.notificatorService.notify(notification);

            _this.logService.logEvent('pin::storage', 'An error occurred while retrieving the PIN from storage', error);
          } finally {
            _this.loaderService.hide();
          }
        });

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

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

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

    this.cleanDeviceStorage = /*#__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* () {
      _this.managerTokenUaamobile.stopTokenWatcher();

      _capacitor_app__WEBPACK_IMPORTED_MODULE_3__.App.removeAllListeners().then(v => console.log(v));
      _capacitor_network__WEBPACK_IMPORTED_MODULE_5__.Network.removeAllListeners().then(v => console.log(v));

      _this.logService.logEvent('user::modalDeleteAccount');

      try {
        yield _this.authService.unregister();

        _this.clearProfileStorage();

        _this.navigationService.root(['start']);

        _this.logService.logEvent('storage::modalCleanDeviceStorage_Success');
      } catch (error) {
        _this.logService.logError('storage::modalCleanDeviceStorage_Error', '', error);

        _this.clearProfileStorage();

        _this.navigationService.root(['start']);
      } finally {
        const title = _this.translateConfigService.translate('MD_DELETE_ACCOUNT.TOAST_SUCCESS_DELETE_ACCOUNT_TITLE');

        const message = _this.translateConfigService.translate('MD_DELETE_ACCOUNT.TOAST_SUCCESS_DELETE_ACCOUNT_MESSAGE');

        _this.toast(title, message, 'success');
      }
    });
  }

  ngOnInit() {
    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* () {
      _this2.pinForm = _this2.formBuilder.group({
        pin: ['']
      });

      if (_capacitor_core__WEBPACK_IMPORTED_MODULE_4__.Capacitor.getPlatform() !== 'web') {
        // const checkBiometryDevice = await NativeBiometric.isAvailable();
        const checkBiometryDevice = yield _aparajita_capacitor_biometric_auth__WEBPACK_IMPORTED_MODULE_2__.BiometricAuth.checkBiometry();
        _this2.isFingerAvaliable = checkBiometryDevice.isAvailable;

        if (checkBiometryDevice.isAvailable) {
          _this2.isAvaliableFinger(checkBiometryDevice.biometryType);
        }
      }
    })();
  }

  close() {
    this.modalCtrl.dismiss();
  }

  ngOnDestroy() {
    this.subscription$.forEach(sub => sub.unsubscribe);
  }

  showFingerPrint(clickBtn) {
    var _this3 = this;

    this.platform.ready().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* () {
      // const checkBiometryDevice = await NativeBiometric.isAvailable();
      const checkBiometryDevice = yield _aparajita_capacitor_biometric_auth__WEBPACK_IMPORTED_MODULE_2__.BiometricAuth.checkBiometry();
      _this3.isFingerAvaliable = checkBiometryDevice.isAvailable;

      if (checkBiometryDevice.isAvailable) {
        _this3.isAvaliableFinger(checkBiometryDevice.biometryType);

        const timeout = setTimeout(() => {
          if (_this3.didItComeFromSideMenu && _this3.platform.is('ios') && _this3.typeFinger === 'face' && !clickBtn) {
            return;
          } else {
            _this3.showFingerprintAuthentication();
          }

          clearTimeout(timeout);
        }, 100);
      }
    }));
  }

  showFingerprintAuthentication() {
    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* () {
      const cancelButtonTitle = _this4.translateConfigService.translate('PG_IDENTITY_CHECK_FINGER_CANCELTITLE');

      const description = _this4.translateConfigService.translate('PG_IDENTITY_CHECK_FINGER_DESCRIPTION');

      const title = _this4.translateConfigService.translate('PG_IDENTITY_CHECK_FINGER_TITLE');

      const subtitle = _this4.translateConfigService.translate('PG_IDENTITY_CHECK_FINGER_SUBTITLE');

      const options = {
        reason: description,
        androidSubtitle: subtitle,
        androidTitle: title,
        cancelTitle: cancelButtonTitle,
        allowDeviceCredential: true,
        androidBiometryStrength: _aparajita_capacitor_biometric_auth__WEBPACK_IMPORTED_MODULE_2__.AndroidBiometryStrength.weak,
        androidConfirmationRequired: true
      };

      try {
        const authenticate = yield _aparajita_capacitor_biometric_auth__WEBPACK_IMPORTED_MODULE_2__.BiometricAuth.authenticate(options);
        console.log(authenticate);

        _this4.onSubmitFingerPrint(true);
      } catch (error) {
        console.log('Error authent', error);

        _this4.logService.logError('plugin_biometric::modal_delete_account', 'error authenticating biometric|facial', error);

        throw new Error(error);
      }
    })();
  }

  onSubmitFingerPrint(isValidate) {
    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* () {
      try {
        _this5.loaderService.show(_this5.translateConfigService.translate('LOADING_CHECKING_DATA')); // this.loadingService.show(
        //   this.translateConfigService.translate('LOADING_CHECKING_DATA'),
        //   'on-check-password-show'
        // );


        const response = yield _this5.authService.validatePassword(null, isValidate);

        if (response) {
          _this5.loaderService.hide(); // this.loadingService.hide(null, 'on-check-password-show');


          const deleteAccount = yield _this5.deleteAccount();

          if (deleteAccount) {
            _this5.close();

            _this5.cleanDeviceStorage();
          }
        } else {
          // this.loadingService.hide(null, 'on-check-password-show');
          _this5.loaderService.hide();

          _this5.lockService.unlock('updating-pin-value');

          const title = _this5.translateConfigService.translate('PG_IDENTITY_CHECK_TOAST_INVALID_PIN_TITLE');

          const message = _this5.translateConfigService.translate('PG_IDENTITY_CHECK_TOAST_INVALID_PIN_MESSAGE');

          _this5.toast(title, message);

          _this5.logService.logEvent('invalid:biometria_or_facial', 'Invalid biometrics or facial recognition when attempting to delete the account.');
        }
      } catch (error) {
        // this.loadingService.hide(null, 'on-check-password-show');
        _this5.loaderService.hide();

        _this5.lockService.unlock('updating-pin-value');

        const title = _this5.translateConfigService.translate('PG_IDENTITY_CHECK_TOAST_ERROR_TITLE');

        const message = _this5.translateConfigService.translate('PG_IDENTITY_CHECK_TOAST_ERROR_MESSAGE');

        _this5.toast(title, message);

        _this5.logService.logEvent('pin::storage', 'An error occurred while retrieving the PIN from storage', error);

        _this5.cleanDeviceStorage();
      } finally {
        _this5.loaderService.hide();
      }
    })();
  }

  isAvaliableFinger(value) {
    switch (value) {
      case _aparajita_capacitor_biometric_auth__WEBPACK_IMPORTED_MODULE_2__.BiometryType.faceAuthentication || _aparajita_capacitor_biometric_auth__WEBPACK_IMPORTED_MODULE_2__.BiometryType.faceId:
        this.typeFinger = 'face';
        break;

      case _aparajita_capacitor_biometric_auth__WEBPACK_IMPORTED_MODULE_2__.BiometryType.fingerprintAuthentication:
        this.typeFinger = 'biometric';
        break;

      case _aparajita_capacitor_biometric_auth__WEBPACK_IMPORTED_MODULE_2__.BiometryType.touchId:
        this.typeFinger = 'finger';
        break;

      case _aparajita_capacitor_biometric_auth__WEBPACK_IMPORTED_MODULE_2__.BiometryType.irisAuthentication:
        this.typeFinger = 'iris';
        break;
    }
  }

  addClassSuccess() {
    this.domCtrl.write(() => {
      this.renderer.removeClass(this.pinInputElementDeleteAccount.nativeElement, 'content_modal__shake-horizontal_error');
      this.renderer.addClass(this.pinInputElementDeleteAccount.nativeElement, 'content_modal__shake-success');
    });
  }

  addRemoveClass(element, className, add) {
    this.domCtrl.write(() => {
      if (add) {
        this.renderer.addClass(element, className);
      } else {
        this.renderer.removeClass(element, className);
      }
    });
  }

  toast(_x, _x2) {
    var _this6 = 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* (header, message, color = 'danger') {
      const toast = yield _this6.overlayService.toast({
        header,
        message,
        mode: 'ios',
        duration: 5000,
        color
      }).finally(() => {});
    }).apply(this, arguments);
  }

  deleteAccount() {
    var _this7 = 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* () {
      _this7.loaderService.show(_this7.translateConfigService.translate('PG_ACCOUNT_LOADING_UNRESGISTER'));

      let deleted = false;

      try {
        const token = yield _this7.authLoginTokenService.getToken();

        try {
          yield _this7.apiService.confirmDeleteAccount(token).toPromise();
          deleted = true;

          _this7.loaderService.hide();

          return deleted;
        } catch (error) {
          deleted = false;

          _this7.loaderService.hide();

          _this7.logService.logError('http::ModalaccountDelete', '', error);

          const statusCode = error?.status ? 'cod.' + error?.status : '';

          const title = _this7.translateConfigService.translate('MD_DELETE_ACCOUNT.TOAST_ERROR_DELETE_ACCOUNT_TITLE');

          const message = `${_this7.translateConfigService.translate('MD_DELETE_ACCOUNT.TOAST_ERROR_DELETE_ACCOUNT_MESSAGE')} ${statusCode}`;

          _this7.toast(title, message, 'danger');

          return deleted;
        }
      } catch (error) {
        _this7.logService.logError('httpError::getTokenModalDeleteAccount', 'delete account error', error);

        return deleted;
      } finally {
        _this7.loaderService.hide();

        _this7.loadingService.hide(null, 'modal-delete-account');

        if (deleted) {
          _this7.logService.logEvent('user::modalConfirmedDeleteAccount');
        }
      }
    })();
  }

  clearProfileStorage() {
    this.profileManagerService.clearProfile();
    this.profileManagerService.clearProfileList();
    this.profileManagerService.clearProfileListVOandLG();
    this.portalLoginManagerService.clearPortalProfiles();
    this.profileManagerService.clearProfileLogisticList();
    this.profileManagerService.clearProfileLogistic();
    this.createEventService.clearCreateEventData();
    this.resumeCreateEventInterruptedService.clearAll();
    this.authService.clearAccount();
    this.authService.clearPhoto();
    this.fcmService.deleteTokenFcm();
    localStorage.removeItem('store_current_config');
    localStorage.removeItem('firstRequestGetProfile');
    localStorage.removeItem('basePlatformUrl');
  }

}

ModalConfirmDeleteAccountComponent.ɵfac = function ModalConfirmDeleteAccountComponent_Factory(t) {
  return new (t || ModalConfirmDeleteAccountComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_6__.LogService), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_6__.ApiService), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_ionic_angular__WEBPACK_IMPORTED_MODULE_8__.ModalController), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_6__.LockService), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_9__.UntypedFormBuilder), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_6__.KeyboardService), _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_6__.LoadingService), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_6__.LoaderService), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_6__.AuthService), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_6__.NotificatorService), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_6__.NavigationService), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_6__.CreateEventService), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_6__.ResumeCreateEventInterruptedService), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_6__.TranslateConfigService), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_ionic_angular__WEBPACK_IMPORTED_MODULE_8__.DomController), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__.Renderer2), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_6__.OverlayService), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_6__.ProfileManagerService), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_6__.PortalLoginManagerService), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_6__.AuthLoginTokenService), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_6__.ManagerTokenUaamobileService), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_6__.FcmService));
};

ModalConfirmDeleteAccountComponent.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineComponent"]({
  type: ModalConfirmDeleteAccountComponent,
  selectors: [["app-modal-confirm-delete-account"]],
  viewQuery: function ModalConfirmDeleteAccountComponent_Query(rf, ctx) {
    if (rf & 1) {
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵviewQuery"](_c0, 5, _angular_core__WEBPACK_IMPORTED_MODULE_1__.ElementRef);
    }

    if (rf & 2) {
      let _t;

      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵloadQuery"]()) && (ctx.pinInputElementDeleteAccount = _t.first);
    }
  },
  decls: 22,
  vars: 15,
  consts: [[1, "content_modal"], ["tabindex", "5", 1, "content_modal__btn_close_icon", 3, "click"], ["slot", "icon-only", "name", "close"], ["tabindex", "1", 1, "content_modal__title"], [3, "innerHTML"], [1, "content_modal__input"], [3, "formGroup", "ngSubmit"], ["tabindex", "2", "id", "pinDeleteAccount", "type", "password", "formControlName", "pin", "maxlength", "4", "pattern", "[0-9]*", "inputmode", "numeric", 3, "autofocus", "placeholder", "input"], ["pinDeleteAccount", ""], [1, "content_modal__fingeer_btn"], ["mode", "ios", "fill", "clear", "tabindex", "3", 3, "click"], ["aria-hidden", "true", "name", "finger-print", 4, "ngIf"], ["src", "../../assets/icon/faceid.svg", 4, "ngIf"], [4, "ngIf"], [1, "content_modal__btn_close", 3, "click"], ["mode", "ios", "color", "primary", "shape", "round", "tabindex", "4"], ["aria-hidden", "true", "name", "finger-print"], ["src", "../../assets/icon/faceid.svg"]],
  template: function ModalConfirmDeleteAccountComponent_Template(rf, ctx) {
    if (rf & 1) {
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 0)(1, "div", 1);
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function ModalConfirmDeleteAccountComponent_Template_div_click_1_listener() {
        return ctx.close();
      });
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](2, "ion-icon", 2);
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "div", 3)(4, "ion-text");
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](5, "span", 4);
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipe"](6, "translate");
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()();
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](7, "div", 5)(8, "form", 6);
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("ngSubmit", function ModalConfirmDeleteAccountComponent_Template_form_ngSubmit_8_listener() {
        return ctx.onSubmit();
      });
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](9, "input", 7, 8);
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("input", function ModalConfirmDeleteAccountComponent_Template_input_input_9_listener($event) {
        return ctx.onPinChange($event);
      });
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipe"](11, "translate");
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()()();
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](12, "div", 9)(13, "ion-button", 10);
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function ModalConfirmDeleteAccountComponent_Template_ion_button_click_13_listener($event) {
        return ctx.showFingerPrint($event);
      });
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](14, ModalConfirmDeleteAccountComponent_ion_icon_14_Template, 1, 0, "ion-icon", 11);
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](15, ModalConfirmDeleteAccountComponent_ion_icon_15_Template, 1, 0, "ion-icon", 12);
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](16, ModalConfirmDeleteAccountComponent_ion_label_16_Template, 3, 3, "ion-label", 13);
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](17, ModalConfirmDeleteAccountComponent_ion_label_17_Template, 3, 3, "ion-label", 13);
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()();
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](18, "div", 14);
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function ModalConfirmDeleteAccountComponent_Template_div_click_18_listener() {
        return ctx.close();
      });
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](19, "ion-button", 15);
      _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"](5);
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("innerHTML", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipeBind1"](6, 9, "MD_DELETE_ACCOUNT.TITLE"), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵsanitizeHtml"]);
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
      _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"]("autofocus", true)("placeholder", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipeBind1"](11, 11, "MD_DELETE_ACCOUNT.CHECK_INPUT"));
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](5);
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx.typeFinger === "finger" || ctx.typeFinger === "biometric");
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx.typeFinger === "face");
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx.typeFinger !== "face");
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx.typeFinger === "face");
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipeBind1"](21, 13, "BTN_CLOSE"), " ");
    }
  },
  dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_7__.NgIf, _ionic_angular__WEBPACK_IMPORTED_MODULE_8__.IonButton, _ionic_angular__WEBPACK_IMPORTED_MODULE_8__.IonIcon, _ionic_angular__WEBPACK_IMPORTED_MODULE_8__.IonLabel, _ionic_angular__WEBPACK_IMPORTED_MODULE_8__.IonText, _angular_forms__WEBPACK_IMPORTED_MODULE_9__["ɵNgNoValidate"], _angular_forms__WEBPACK_IMPORTED_MODULE_9__.DefaultValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_9__.NgControlStatus, _angular_forms__WEBPACK_IMPORTED_MODULE_9__.NgControlStatusGroup, _angular_forms__WEBPACK_IMPORTED_MODULE_9__.MaxLengthValidator, _angular_forms__WEBPACK_IMPORTED_MODULE_9__.PatternValidator, _angular_forms__WEBPACK_IMPORTED_MODULE_9__.FormGroupDirective, _angular_forms__WEBPACK_IMPORTED_MODULE_9__.FormControlName, _ngx_translate_core__WEBPACK_IMPORTED_MODULE_10__.TranslatePipe],
  styles: ["@charset \"UTF-8\";\n.content_modal[_ngcontent-%COMP%] {\n  background: #fff;\n  display: flex;\n  flex-direction: column;\n  justify-content: space-evenly;\n  height: 100%;\n  position: relative;\n  align-items: center;\n  padding: 1em;\n}\n.content_modal__title[_ngcontent-%COMP%] {\n  font-weight: 400;\n  font-size: 1em;\n  line-height: 19px;\n  text-align: center;\n  padding-top: 0.5em;\n  color: #757575;\n  padding-inline: 1em;\n}\n.content_modal__input[_ngcontent-%COMP%] {\n  height: 50px;\n  width: 308px;\n  text-align: center;\n  padding: 1em 0;\n  display: flex;\n  align-items: center;\n  margin-top: 1em;\n  justify-content: center;\n  \n  \n}\n.content_modal__input[_ngcontent-%COMP%]   input[_ngcontent-%COMP%] {\n  width: 308px;\n  height: 45px;\n  text-align: center;\n  background: rgba(227, 226, 226, 0.04);\n  border: 1px solid #e3e2e2;\n  border-radius: 36px;\n}\n.content_modal__input[_ngcontent-%COMP%]   input[type=password][_ngcontent-%COMP%]:focus {\n  border-color: var(--ion-color-medium);\n  caret-color: var(--ion-color-primary);\n  border-width: 1px;\n  outline: none; \n}\n.content_modal__input[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]::placeholder {\n  color: var(--ion-color-medium);\n  opacity: 0.5;\n}\n.content_modal__input[_ngcontent-%COMP%]   input[type=password][_ngcontent-%COMP%]:focus::-webkit-input-placeholder {\n  color: var(--ion-color-dark);\n  opacity: 0.5;\n}\n.content_modal__fingeer_btn[_ngcontent-%COMP%] {\n  height: 2.65em;\n  display: flex;\n  align-items: center;\n}\n.content_modal__btn_close_icon[_ngcontent-%COMP%] {\n  position: absolute;\n  top: 1em;\n  right: 1em;\n}\n.content_modal__btn_close_icon[_ngcontent-%COMP%]   ion-icon[_ngcontent-%COMP%] {\n  font-size: 1.53em;\n  color: #c5c5c5;\n}\n.content_modal__btn_close[_ngcontent-%COMP%]   ion-button[_ngcontent-%COMP%] {\n  width: 118px;\n  height: 40px;\n}\n.content_modal__shake-horizontal_error[_ngcontent-%COMP%] {\n  border: 1px solid var(--ion-color-danger) !important;\n  box-shadow: 0 0 0.5em red;\n  animation: shake 0.2s ease-in-out 0s 2;\n  -webkit-animation: shake 0.2s ease-in-out 0s 2;\n}\n.content_modal__shake-success[_ngcontent-%COMP%] {\n  border: 1px solid var(--ion-color-primary) !important;\n}\n.content_modal__remove_error[_ngcontent-%COMP%], .content_modal__remove_success[_ngcontent-%COMP%] {\n  border: 1px solid #e3e2e2;\n}\n@keyframes shake {\n  0% {\n    margin-left: 0rem;\n  }\n  25% {\n    margin-left: 0.5rem;\n  }\n  75% {\n    margin-left: -0.5rem;\n  }\n  100% {\n    margin-left: 0rem;\n  }\n}\n/*# sourceMappingURL=data:application/json;base64,[encoded data, 4432 characters] */"]
});

/***/ })

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