(self["webpackChunkapp"] = self["webpackChunkapp"] || []).push([[3879],{ /***/ 70602: /*!***********************************************************************!*\ !*** ./custom-plugins/capacitor-notify-persistent/src/definitions.ts ***! \***********************************************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "Importance": () => (/* binding */ Importance), /* harmony export */ "Visibility": () => (/* binding */ Visibility) /* harmony export */ }); /// /** * The importance level. * * For more details, see the [Android Developer Docs](https://developer.android.com/reference/android/app/NotificationManager#IMPORTANCE_DEFAULT) * * @since 1.4.0 */ var Importance; (function (Importance) { /** * @since 1.4.0 */ Importance[Importance["Min"] = 1] = "Min"; /** * @since 1.4.0 */ Importance[Importance["Low"] = 2] = "Low"; /** * @since 1.4.0 */ Importance[Importance["Default"] = 3] = "Default"; /** * @since 1.4.0 */ Importance[Importance["High"] = 4] = "High"; /** * @since 1.4.0 */ Importance[Importance["Max"] = 5] = "Max"; })(Importance || (Importance = {})); /** * The notification visibility. * * For more details, see the [Android Developer Docs](https://developer.android.com/reference/androidx/core/app/NotificationCompat#VISIBILITY_PRIVATE()) * * @since 1.4.0 */ var Visibility; (function (Visibility) { /** * @since 1.4.0 */ Visibility[Visibility["Secret"] = -1] = "Secret"; /** * @since 1.4.0 */ Visibility[Visibility["Private"] = 0] = "Private"; /** * @since 1.4.0 */ Visibility[Visibility["Public"] = 1] = "Public"; })(Visibility || (Visibility = {})); /***/ }), /***/ 87494: /*!*****************************************************************!*\ !*** ./custom-plugins/capacitor-notify-persistent/src/index.ts ***! \*****************************************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "Importance": () => (/* reexport safe */ _definitions__WEBPACK_IMPORTED_MODULE_1__.Importance), /* harmony export */ "NotifyPersistent": () => (/* binding */ NotifyPersistent), /* harmony export */ "Visibility": () => (/* reexport safe */ _definitions__WEBPACK_IMPORTED_MODULE_1__.Visibility) /* harmony export */ }); /* harmony import */ var _capacitor_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @capacitor/core */ 26549); /* harmony import */ var _definitions__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./definitions */ 70602); const NotifyPersistent = (0,_capacitor_core__WEBPACK_IMPORTED_MODULE_0__.registerPlugin)('NotifyPersistent'); /***/ }), /***/ 63879: /*!*******************************************!*\ !*** ./src/app/account/account.module.ts ***! \*******************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "AccountPageModule": () => (/* binding */ AccountPageModule) /* 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 _shared_pipes_pipes_module__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @shared/pipes/pipes.module */ 24586); /* harmony import */ var _shared_module_shared_module_module__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../shared-module/shared-module.module */ 69270); /* harmony import */ var _account_page__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./account.page */ 97282); /* harmony import */ var _modal_change_email_modal_change_email_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./modal-change-email/modal-change-email.component */ 8180); /* harmony import */ var _modal_confirm_code_change_email_modal_confirm_code_change_email_component__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./modal-confirm-code-change-email/modal-confirm-code-change-email.component */ 2586); /* harmony import */ var _modal_confirm_delete_account_modal_confirm_delete_account_component__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./modal-confirm-delete-account/modal-confirm-delete-account.component */ 49730); /* harmony import */ var _shared_components_components_module__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @shared/components/components.module */ 15626); /* harmony import */ var _modal_confirm_pin_facial_email_modal_confirm_pin_facial_email_component__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./modal-confirm-pin-facial-email/modal-confirm-pin-facial-email.component */ 61050); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @angular/core */ 45449); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(_angular_core__WEBPACK_IMPORTED_MODULE_9__); const routes = [ { path: '', component: _account_page__WEBPACK_IMPORTED_MODULE_3__.AccountPage } ]; class AccountPageModule { } AccountPageModule.ɵfac = function AccountPageModule_Factory(t) { return new (t || AccountPageModule)(); }; AccountPageModule.ɵmod = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵdefineNgModule"]({ type: AccountPageModule }); AccountPageModule.ɵinj = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵdefineInjector"]({ imports: [_shared_module_shared_module_module__WEBPACK_IMPORTED_MODULE_2__.SharedModuleModule, _shared_components_components_module__WEBPACK_IMPORTED_MODULE_7__.ComponentsModule, _shared_pipes_pipes_module__WEBPACK_IMPORTED_MODULE_1__.PipesModule, _angular_router__WEBPACK_IMPORTED_MODULE_0__.RouterModule.forChild(routes)] }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵsetNgModuleScope"](AccountPageModule, { declarations: [_account_page__WEBPACK_IMPORTED_MODULE_3__.AccountPage, _modal_confirm_delete_account_modal_confirm_delete_account_component__WEBPACK_IMPORTED_MODULE_6__.ModalConfirmDeleteAccountComponent, _modal_change_email_modal_change_email_component__WEBPACK_IMPORTED_MODULE_4__.ModalChangeEmailComponent, _modal_confirm_code_change_email_modal_confirm_code_change_email_component__WEBPACK_IMPORTED_MODULE_5__.ModalConfirmCodeChangeEmailComponent, _modal_confirm_pin_facial_email_modal_confirm_pin_facial_email_component__WEBPACK_IMPORTED_MODULE_8__.ModalConfirmPinFacialEmailComponent], imports: [_shared_module_shared_module_module__WEBPACK_IMPORTED_MODULE_2__.SharedModuleModule, _shared_components_components_module__WEBPACK_IMPORTED_MODULE_7__.ComponentsModule, _shared_pipes_pipes_module__WEBPACK_IMPORTED_MODULE_1__.PipesModule, _angular_router__WEBPACK_IMPORTED_MODULE_0__.RouterModule] }); })(); /***/ }), /***/ 97282: /*!*****************************************!*\ !*** ./src/app/account/account.page.ts ***! \*****************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "AccountPage": () => (/* binding */ AccountPage) /* 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 _capacitor_community_privacy_screen__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @capacitor-community/privacy-screen */ 76657); /* harmony import */ var _capacitor_app__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @capacitor/app */ 93253); /* harmony import */ var _capacitor_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @capacitor/core */ 26549); /* harmony import */ var _capacitor_camera__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @capacitor/camera */ 4241); /* harmony import */ var _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! @fortawesome/free-solid-svg-icons */ 9306); /* harmony import */ var _shared_components__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @shared/components */ 7667); /* harmony import */ var br_mask__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! br-mask */ 56833); /* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! rxjs */ 92218); /* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! rxjs/operators */ 85921); /* harmony import */ var _home_home_page__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../home/home.page */ 62267); /* harmony import */ var _modal_change_email_modal_change_email_component__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./modal-change-email/modal-change-email.component */ 8180); /* harmony import */ var _environment__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @environment */ 92340); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @angular/core */ 45449); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(_angular_core__WEBPACK_IMPORTED_MODULE_10__); /* harmony import */ var _shared_services__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @shared/services */ 17253); /* harmony import */ var _ionic_angular__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! @ionic/angular */ 93819); /* harmony import */ var _shared_services_state_service__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @shared/services/state.service */ 21284); /* harmony import */ var _shared_services_photo_service__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @shared/services/photo.service */ 37043); /* harmony import */ var _shared_services_focus_service__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! @shared/services/focus.service */ 37763); /* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! @angular/router */ 61380); /* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_15___default = /*#__PURE__*/__webpack_require__.n(_angular_router__WEBPACK_IMPORTED_MODULE_15__); /* harmony import */ var _shared_services_email_update_service__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! @shared/services/email-update.service */ 59439); /* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! @angular/common */ 90944); /* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_17___default = /*#__PURE__*/__webpack_require__.n(_angular_common__WEBPACK_IMPORTED_MODULE_17__); /* harmony import */ var _fortawesome_angular_fontawesome__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! @fortawesome/angular-fontawesome */ 19200); /* harmony import */ var _shared_components_header_header_component__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ../shared/components/header/header.component */ 36290); /* harmony import */ var _shared_components_translate_btn_translate_btn_component__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ../shared/components/translate-btn/translate-btn.component */ 17029); /* harmony import */ var _ngx_translate_core__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! @ngx-translate/core */ 38699); // import { NotifyPersistent } from 'capacitor-notify-persistent'; function AccountPage_ion_img_22_Template(rf, ctx) { if (rf & 1) { const _r9 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵgetCurrentView"](); _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](0, "ion-img", 25); _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵlistener"]("click", function AccountPage_ion_img_22_Template_ion_img_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵrestoreView"](_r9); const ctx_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵnextContext"](); return _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵresetView"](ctx_r8.showPhoto({ photo: ctx_r8.photoStorage })); }); _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵpipe"](1, "translate"); _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"](); } if (rf & 2) { const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵnextContext"](); _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("alt", _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵpipeBind1"](1, 2, "ACCESSIBILITY.ARIA_LABELS.PHOTO_PROFILE"))("src", "data:image/png;base64," + ctx_r0.photoStorage); } } function AccountPage_ion_img_23_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelement"](0, "ion-img", 26); _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵpipe"](1, "translate"); } if (rf & 2) { const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵnextContext"](); _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("alt", _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵpipeBind1"](1, 2, "ACCESSIBILITY.ARIA_LABELS.NOT_PHOTO_PROFILE"))("src", ctx_r1.nophoto); } } function AccountPage_ng_container_28_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementContainerStart"](0); _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](1, "div", 27); _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelement"](2, "ion-skeleton-text", 28); _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](3, "div", 29); _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelement"](4, "ion-skeleton-text", 30); _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](5, "div", 31); _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelement"](6, "ion-skeleton-text", 32)(7, "ion-skeleton-text", 33); _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementContainerEnd"](); } } function AccountPage_ng_container_29_div_1_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](0, "div", 37); _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](1); _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"](); } if (rf & 2) { const ctx_r10 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵnextContext"](2); _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtextInterpolate1"](" ", ctx_r10.fullName, " "); } } function AccountPage_ng_container_29_div_2_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](0, "div", 38); _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](1); _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"](); } if (rf & 2) { const ctx_r11 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵnextContext"](2); _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtextInterpolate1"](" ", ctx_r11.document, " "); } } function AccountPage_ng_container_29_div_3_Template(rf, ctx) { if (rf & 1) { const _r14 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵgetCurrentView"](); _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](0, "div", 39); _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵlistener"]("click", function AccountPage_ng_container_29_div_3_Template_div_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵrestoreView"](_r14); const ctx_r13 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵnextContext"](2); return _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵresetView"](ctx_r13.openChangeEmail()); }); _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](1, "label", 40); _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](2); _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵpipe"](3, "translate"); _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](4, "div", 41)(5, "span"); _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](6); _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](7, "span"); _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelement"](8, "fa-icon", 42); _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]()()(); } if (rf & 2) { const ctx_r12 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵnextContext"](2); _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"](2); _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵpipeBind1"](3, 3, "PG_ACCOUNT_ACCESS_MAIL"), " "); _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"](4); _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtextInterpolate1"](" ", ctx_r12.login, ""); _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"](2); _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("icon", ctx_r12.faEditIcon); } } function AccountPage_ng_container_29_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementContainerStart"](0); _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtemplate"](1, AccountPage_ng_container_29_div_1_Template, 2, 1, "div", 34); _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtemplate"](2, AccountPage_ng_container_29_div_2_Template, 2, 1, "div", 35); _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtemplate"](3, AccountPage_ng_container_29_div_3_Template, 9, 5, "div", 36); _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementContainerEnd"](); } if (rf & 2) { const ctx_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵnextContext"](); _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("ngIf", ctx_r3.fullName); _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("ngIf", ctx_r3.document); _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("ngIf", ctx_r3.login); } } function AccountPage_ng_container_36_ion_row_1_div_6_span_3_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](0, "span", 54)(1, "strong"); _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](2); _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]()(); } if (rf & 2) { const profile_r16 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵnextContext"](2).$implicit; _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"](2); _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtextInterpolate1"](" ", profile_r16 == null ? null : profile_r16.accessProfilesDesc == null ? null : profile_r16.accessProfilesDesc.join(" + "), " "); } } function AccountPage_ng_container_36_ion_row_1_div_6_span_4_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](0, "span", 54)(1, "strong"); _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](2); _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵpipe"](3, "translate"); _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]()(); } if (rf & 2) { _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"](2); _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵpipeBind1"](3, 1, "ROLE_NOT_FOUND"), " "); } } function AccountPage_ng_container_36_ion_row_1_div_6_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](0, "div", 52); _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](1); _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵpipe"](2, "translate"); _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtemplate"](3, AccountPage_ng_container_36_ion_row_1_div_6_span_3_Template, 3, 1, "span", 53); _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtemplate"](4, AccountPage_ng_container_36_ion_row_1_div_6_span_4_Template, 4, 3, "span", 53); _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"](); } if (rf & 2) { const profile_r16 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵnextContext"]().$implicit; let tmp_1_0; _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵpipeBind1"](2, 3, "PG_ACCOUNT_ACCESS_PROFILE"), " "); _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"](2); _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("ngIf", ((tmp_1_0 = profile_r16 == null ? null : profile_r16.authorities == null ? null : profile_r16.authorities.length) !== null && tmp_1_0 !== undefined ? tmp_1_0 : 0) > 0); _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("ngIf", (profile_r16 == null ? null : profile_r16.authorities == null ? null : profile_r16.authorities.length) === 0); } } function AccountPage_ng_container_36_ion_row_1_Template(rf, ctx) { if (rf & 1) { const _r23 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵgetCurrentView"](); _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](0, "ion-row", 44)(1, "ion-col", 45)(2, "div", 46); _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](3); _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](4, "div", 47); _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](5); _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtemplate"](6, AccountPage_ng_container_36_ion_row_1_div_6_Template, 5, 5, "div", 48); _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](7, "ion-col", 49)(8, "div", 50); _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵlistener"]("click", function AccountPage_ng_container_36_ion_row_1_Template_div_click_8_listener() { const restoredCtx = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵrestoreView"](_r23); const profile_r16 = restoredCtx.$implicit; const ctx_r22 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵnextContext"](2); return _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵresetView"](ctx_r22.goRemoveCompanyAssociationModal(profile_r16)); }); _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelement"](9, "ion-icon", 51); _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]()()(); } if (rf & 2) { const profile_r16 = ctx.$implicit; const ctx_r15 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵnextContext"](2); _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"](3); _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtextInterpolate1"](" ", profile_r16 == null ? null : profile_r16.company == null ? null : profile_r16.company.name, " "); _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"](2); _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtextInterpolate1"](" ", profile_r16 == null ? null : profile_r16.company == null ? null : profile_r16.company.address, " "); _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("ngIf", !ctx_r15.skeltonProfileDescription); } } function AccountPage_ng_container_36_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementContainerStart"](0); _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtemplate"](1, AccountPage_ng_container_36_ion_row_1_Template, 10, 3, "ion-row", 43); _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementContainerEnd"](); } if (rf & 2) { const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵnextContext"](); _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("ngForOf", ctx_r4.goodprofilesAvaliables); } } function AccountPage_ng_template_37_span_0_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](0, "span", 56); _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](1); _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵpipe"](2, "translate"); _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"](); } if (rf & 2) { _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵpipeBind1"](2, 1, "PG_ACCOUNT_NOT_ACCESS_PROFILE"), " "); } } function AccountPage_ng_template_37_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtemplate"](0, AccountPage_ng_template_37_span_0_Template, 3, 3, "span", 55); } if (rf & 2) { const ctx_r6 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵnextContext"](); _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("ngIf", ctx_r6.profilesLoaded && (ctx_r6.goodprofilesAvaliables == null ? null : ctx_r6.goodprofilesAvaliables.length) === 0); } } function AccountPage_ng_container_39_ion_row_1_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](0, "ion-row", 44)(1, "ion-col", 57)(2, "div", 58); _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelement"](3, "ion-skeleton-text", 59); _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](4, "div", 60); _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelement"](5, "ion-skeleton-text", 61); _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](6, "div", 62); _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelement"](7, "ion-skeleton-text", 63)(8, "ion-skeleton-text", 64); _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]()(); _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](9, "ion-col", 65)(10, "div", 66); _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelement"](11, "ion-skeleton-text", 67); _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]()()(); } } const _c0 = function () { return [0, 1, 2, 3]; }; function AccountPage_ng_container_39_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementContainerStart"](0); _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtemplate"](1, AccountPage_ng_container_39_ion_row_1_Template, 12, 0, "ion-row", 43); _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementContainerEnd"](); } if (rf & 2) { _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("ngForOf", _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵpureFunction0"](1, _c0)); } } const _c1 = function (a0) { return { "opacity-0": a0 }; }; const _c2 = function () { return ["/delete-account"]; }; class AccountPage { constructor(apiService, authService, logService, storageService, notificatorService, loadingService, navigationService, resumeToPinService, resumeToGenerateQRCode, modalController, profileManagerService, portalLoginManagerService, translateConfigService, createEventService, resumeCreateEventInterruptedService, stateService, photoService, cameraService, brMask, utilsService, modalHelpService, focusService, home, loaderService, activatedRoute, router, ngZone, managerTokenUaamobileService, emailUpdateService) { var _this = this; this.apiService = apiService; this.authService = authService; this.logService = logService; this.storageService = storageService; this.notificatorService = notificatorService; this.loadingService = loadingService; this.navigationService = navigationService; this.resumeToPinService = resumeToPinService; this.resumeToGenerateQRCode = resumeToGenerateQRCode; this.modalController = modalController; this.profileManagerService = profileManagerService; this.portalLoginManagerService = portalLoginManagerService; this.translateConfigService = translateConfigService; this.createEventService = createEventService; this.resumeCreateEventInterruptedService = resumeCreateEventInterruptedService; this.stateService = stateService; this.photoService = photoService; this.cameraService = cameraService; this.brMask = brMask; this.utilsService = utilsService; this.modalHelpService = modalHelpService; this.focusService = focusService; this.home = home; this.loaderService = loaderService; this.activatedRoute = activatedRoute; this.router = router; this.ngZone = ngZone; this.managerTokenUaamobileService = managerTokenUaamobileService; this.emailUpdateService = emailUpdateService; this.voProfiles = []; this.fullName = ''; this.document = ''; this.login = ''; this.foreigner = false; this.existPendings = false; this.nophoto = './assets/img/no-photo.png'; this.faEditIcon = _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_20__.faPen; this.goodprofilesAvaliables = []; this.skeletonProfiles = true; this.skeletonAccountData = true; this.profilesLoaded = false; this.userCurrentLang = 'en'; this.photoStorage = ''; this.skeltonProfileDescription = false; this.email = ''; this.isDevEnvironment = !_environment__WEBPACK_IMPORTED_MODULE_9__.environment.production; this.currentEnvironmentType = _environment__WEBPACK_IMPORTED_MODULE_9__.environment.type; // Env this.isOffline = false; this.destroy$ = new rxjs__WEBPACK_IMPORTED_MODULE_21__.Subject(); this.token = ''; this.navigateToPendingLiberations = () => { this.navigationService.forward(['/push-notifications']); }; this.getAccount = /*#__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* () { try { _this.loadingService.show(_this.translateConfigService.translate('LOADING_DATA'), 'loading-account-details'); // Mock token since we'll get it from elsewhere const token = yield _this.managerTokenUaamobileService.getNewToken(); _this.token = token; // Try to get account from storage first const account = yield _this.authService.getAccount(); if (account?.fullName) { // Use cached account data if available yield _this.handleGetAccountSuccessResponse(account); } else { // Fetch from API if not in storage _this.apiService.account(token).subscribe(_this.handleGetAccountSuccessResponse, _this.handleGetAccountErrorResponse); } } catch (error) { _this.skeletonProfiles = false; _this.skeletonAccountData = false; _this.loadingService.hide(0, 'loading-account-details'); const title = _this.translateConfigService.translate('TOAST_TITLE_ERROR'); const message = _this.translateConfigService.translate('PG_ACCOUNT_TOAST_ERROR_LOAD_DATA_ACCOUNT'); _this.notificatorService.notify({ title, message, type: 'error' }); // Try to use cached data as fallback const fallbackAccount = yield _this.authService.getAccount(); if (fallbackAccount?.fullName) { yield _this.handleGetAccountSuccessResponse(fallbackAccount); } _this.logService.logError('getAccount::error', '', error); } finally { _this.loadingService.hide(0, 'loading-account-details'); _this.focusService.applyFocusQuerySelector('page_account-details', 1000); _this.skeletonProfiles = false; _this.skeletonAccountData = false; _this.skeltonProfileDescription = false; console.log('finish'); } }); this.handleGetAccountSuccessResponse = /*#__PURE__*/function () { var _ref2 = (0,_Volumes_case_workspace_work_APPS_KA_APP_WORK_NOW_KA_PASS_V2_2_6_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* (response) { const dataresponnse = !response?.fullName || !response?.email || !response?.document || !response?.refId; if (dataresponnse) { _this.logService.logError('handleGetAccountSuccessResponse::missingData', 'Dados faltando na resposta da conta', response); return; } _this.authService.setAccount(response); _this.fullName = response?.fullName; _this.login = response?.login; _this.email = response?.email; _this.document = response?.document; _this.refId = response?.refId; _this.document = _this.cpfMask(response?.document); yield _this.getPhoto(response?.refId); _this.skeletonAccountData = false; _this.getProfiles(); _this.dataAccount = { fullName: _this.fullName, login: _this.login, email: _this.email, document: _this.document, refId: _this.refId, emailVerified: false }; }); return function (_x) { return _ref2.apply(this, arguments); }; }(); this.handleGetAccountErrorResponse = response => { console.log('handleGetAccountErrorResponse:', response); const title = this.translateConfigService.translate('TOAST_TITLE_ERROR'); const message = this.translateConfigService.translate('PG_ACCOUNT_TOAST_ERROR_LOAD_DATA_ACCOUNT'); this.loadingService.hide(0, 'loading-account-details'); const notification = { title, message, type: 'error' }; this.notificatorService.notify(notification); this.logService.logError('handleGetAccountErrorResponse::error', '', response); }; this.navigateToQRCode = () => { this.navigationService.forward(['/home']); }; this.logout = /*#__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.logService.logEvent('user::menuLogoutStart'); const modal = yield _this.modalController.create({ component: _shared_components__WEBPACK_IMPORTED_MODULE_5__.ConfirmLogoutModalComponent, componentProps: {} }); modal.onDidDismiss().then(response => { if (response?.data) { _this.logService.logEvent('user::menuLogoutConfirmed'); _this.doLogout(); } else { _this.logService.logEvent('user::menuLogoutRejected'); } }); yield modal.present(); }); this.doLogout = () => { this.loadingService.show(this.translateConfigService.translate('PG_ACCOUNT_LOADING_UNRESGISTER'), 'menu-unregister'); this.logService.logEvent('user::menuDoLogout'); this.resumeToPinService.stop(); this.resumeToGenerateQRCode.stop(); this.authService.getToken().then(token => { this.apiService.accountDelete(token).subscribe(() => { this.logService.logEvent('http::accountDeleteSuccess'); this.authService.unregister().then(() => this.loadingService.hide(0, 'menu-unregister')).then(() => { this.clearProfileStorage(); this.navigationService.root(['start']); }); }, error => { this.logService.logError('http::accountDelete', '', error); this.authService.unregister().then(() => this.loadingService.hide(0, 'menu-unregister')).then(() => { _capacitor_app__WEBPACK_IMPORTED_MODULE_2__.App.removeAllListeners().then(() => {}).finally(() => { this.clearProfileStorage(); this.navigationService.root(['start']); this.home.stopAllIntervals('AccountPage::menu::doLogout'); }); }); }); }); }; // DEV ONLY: Clear all storage and logout this.clearStorageAndLogout = /*#__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.logService.logEvent('dev::clearStorageAndLogout'); _this.loadingService.show('Limpando storage...', 'dev-clear-storage'); try { // Clear all storage - exit clean DEV yield _this.storageService.startStorage(); yield _this.storageService.clear(); // Clear profile storage _this.clearProfileStorage(); // Remove app listeners yield _capacitor_app__WEBPACK_IMPORTED_MODULE_2__.App.removeAllListeners(); // Stop intervals _this.home.stopAllIntervals('AccountPage::dev::clearStorageAndLogout'); _this.loadingService.hide(0, 'dev-clear-storage'); // Navigate to login _this.navigationService.root(['start']); const notification = { title: 'Storage Limpo', message: 'Todos os dados foram removidos', type: 'success', timeout: 3000 }; _this.notificatorService.notify(notification); } catch (error) { _this.loadingService.hide(0, 'dev-clear-storage'); _this.logService.logError('dev::clearStorageAndLogout', '', error); const notification = { title: 'Erro', message: 'Erro ao limpar storage', type: 'error', timeout: 3000 }; _this.notificatorService.notify(notification); } }); this.handleFaceCaptureResult = /*#__PURE__*/function () { var _ref5 = (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* (result) { const data = { colaborator: true, refId: _this.refId, faceImageContentType: 'png', faceImage: result.base64, validationType: result.validationType }; _this.photoStorage = data?.faceImage ?? _this.photoStorage; _this.userThumbnailPhoto = data; _this.setPhotoStorage({ faceImage: data.faceImage ?? _this.photoStorage, synchronized: true, validated: data.validated ?? false, hasPhoto: data.faceImageThumbnail !== null }); yield _this.updatePhoto(data, true); }); return function (_x2) { return _ref5.apply(this, arguments); }; }(); this.goRemoveCompanyAssociationModal = /*#__PURE__*/function () { var _ref6 = (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* (data) { if (!data?.company?.instanceName) { return; } const navigationExtras = { state: { companyInstanceName: data?.company?.instanceName, companyName: data?.company?.name, company: data?.company } }; _this.navigationService.forward(['/remove-company-association'], navigationExtras); }); return function (_x3) { return _ref6.apply(this, arguments); }; }(); this.handleTakePhotoSuccessResponse = /*#__PURE__*/function () { var _ref7 = (0,_Volumes_case_workspace_work_APPS_KA_APP_WORK_NOW_KA_PASS_V2_2_6_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* (response) { const faceImage = response?.base64String; const data = { colaborator: true, refId: _this.refId, faceImageContentType: response?.format ? response?.format : 'png', faceImage }; _this.photoStorage = data.faceImage; _this.userThumbnailPhoto = data; _this.setPhotoStorage({ faceImage: data.faceImage, synchronized: true, validated: data.validated ?? false, hasPhoto: data.faceImageThumbnail !== null }); yield _this.updatePhoto(data, true); }); return function (_x4) { return _ref7.apply(this, arguments); }; }(); this.handleTakePhotoErrorResponse = response => { this.logService.logError('error:takePhotoPlugin', 'Erro take photo plugin', response); }; this.getProfiles = () => { let token = ''; this.authService.getToken().then(Storetoken => new Promise((resolve, reject) => { token = Storetoken; this.apiService.getUserProfiles('VO,LG,GF', token).subscribe(resolve, reject); })).then(res => this.processGetVOAndLGUserProfilesSuccessResponse(res, token)).catch(error => { this.loadingService.hide(0, 'loading-account-details'); const title = this.translateConfigService.translate('PG_ACCOUNT_TOAST_ERROR_REQUEST_TITLE'); const message = this.translateConfigService.translate('PG_ACCOUNT_TOAST_MESSAGE_ERROR_REQUEST'); this.logService.logError('getProfiles::http', 'Method getProfiles account', error); const notification = { title, message, type: 'error' }; this.notificatorService.notify(notification); }).finally(() => { this.skeletonProfiles = false; this.skeltonProfileDescription = false; this.profilesLoaded = true; this.loadingService.hide(0, 'loading-account-details'); }); }; this.processGetVOAndLGUserProfilesSuccessResponse = /*#__PURE__*/function () { var _ref8 = (0,_Volumes_case_workspace_work_APPS_KA_APP_WORK_NOW_KA_PASS_V2_2_6_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* (response, token) { _this.loadingService.hide(0, 'loading-account-details'); _this.voProfiles = response && response?.length > 0 ? response?.filter(profile => profile.portal === 'VO' && profile.company !== null) : []; _this.lgProfiles = response && response?.length > 0 ? response?.filter(profile => profile.portal === 'LG' && profile.company !== null) : []; _this.goodprofilesAvaliables = _this.goodProfiles(response); // KA_APP-702 _this.profileManagerService.setProfileList(_this.voProfiles); _this.profileManagerService.setProfileLogisticList(_this.lgProfiles); _this.getAuthoritiesDescriptions(token); }); return function (_x5, _x6) { return _ref8.apply(this, arguments); }; }(); // Exibir todos os perfils que vier da api this.filterGoodProfiles = profiles => { const goodProfiles = []; profiles.forEach(p => { if (p.authorities && p.authorities.length !== 0) { goodProfiles.push(p); } else if (p.authorities.length === 0) { p.authorities = []; goodProfiles.push(p); } }); return goodProfiles; }; this.activatedRoute.queryParams.subscribe(params => { if (params?.reload === 'true') { this.ngOnInit(); this.router.navigate([], { relativeTo: this.activatedRoute, queryParams: {}, replaceUrl: true }); } }); } ionViewWillEnter() { 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.userCurrentLang = _this2.translateConfigService.getCurrentLang(); if (_this2.userCurrentLang === 'pt') { _this2.userCurrentLang = 'pt-BR'; } })(); } ngOnInit() { 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* () { _this3.start(); _this3.statusConnectionAndRestartStart(); _this3.emailUpdateService.state$.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_22__.takeUntil)(_this3.destroy$)).subscribe(state => { console.log('EmailUpdateService state changed:', state); if (state.step === 'completed' && state.dataAccount) { console.log('Email update completed, updating account page data:', state.dataAccount); _this3.ngZone.run( /*#__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* () { _this3.email = state.dataAccount.email; _this3.login = state.dataAccount.login; _this3.dataAccount.email = state.dataAccount.email; _this3.dataAccount.login = state.dataAccount.login; _this3.dataAccount.emailVerified = state.dataAccount.emailVerified; const getAccountStorage = yield _this3.authService.getAccount(); const newAccount = { ...getAccountStorage, email: state.dataAccount.email, login: state.dataAccount.login, emailVerified: state.dataAccount.emailVerified }; _this3.authService.setAccount(newAccount); console.log('Account page data updated successfully'); _this3.emailUpdateService.reset(); })); } }); })(); } start() { 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 photoInStorage = yield _this4.authService.getPhoto(); if (_this4.hasFaceImageAndSynchronizedProperties(photoInStorage)) { _this4.photoStorage = photoInStorage?.faceImage; } else { // Retro compatibility _this4.photoStorage = photoInStorage; } _this4.getAccount(); })(); } ngOnDestroy() { this.destroy$.next(true); this.destroy$.unsubscribe(); } takePhoto() { var _this5 = this; return (0,_Volumes_case_workspace_work_APPS_KA_APP_WORK_NOW_KA_PASS_V2_2_6_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* () { const isNative = _capacitor_core__WEBPACK_IMPORTED_MODULE_3__.Capacitor.isNativePlatform(); if (isNative) yield _capacitor_community_privacy_screen__WEBPACK_IMPORTED_MODULE_1__.PrivacyScreen.disable(); try { yield _this5.openFaceCapture(); } catch (error) { _this5.handleTakePhotoErrorResponse(error); } finally { if (isNative) yield _capacitor_community_privacy_screen__WEBPACK_IMPORTED_MODULE_1__.PrivacyScreen.enable(); } })(); } openFaceCapture() { 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* () { const modal = yield _this6.modalController.create({ component: _shared_components__WEBPACK_IMPORTED_MODULE_5__.FaceCaptureComponent, cssClass: 'face-capture-modal' }); yield modal.present(); const { data } = yield modal.onDidDismiss(); if (data?.base64) { yield _this6.handleFaceCaptureResult(data); } else if (data === null) { // Fallback → fluxo nativo existente (sem mudança alguma) const photo = yield _this6.cameraService.takePicture(_capacitor_camera__WEBPACK_IMPORTED_MODULE_4__.CameraSource.Camera); _this6.handleTakePhotoSuccessResponse(photo); } })(); } doRefresh(event) { this.skeletonProfiles = true; this.skeletonAccountData = true; console.log(this.isOffline); if (!this.isOffline) { this.authService.clearAccount(); this.authService.clearPhoto(); } setTimeout(() => { this.start(); event.target.complete(); this.skeletonProfiles = false; this.skeletonAccountData = false; }, 2000); } showPhoto(_x7) { 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* ({ photo }) { if (!photo) { return; } const description = _this7.fullName; const title = ''; const img = 'data:image/png;base64,' + photo; const getCssClassAndcalcHeigth = _this7.modalHelpService.getCssClass('modal-generic-component-showphoto-profile', ''); const props = { type: 'image', typename: 'image', title, description, img, actionsButton: [{ label: _this7.translateConfigService.translate('BTN_CLOSE'), enabled: true, action: () => _this7.modalController.dismiss() }] }; const modal = yield _this7.modalController.create({ component: _shared_components__WEBPACK_IMPORTED_MODULE_5__.GenericModalComponent, componentProps: { props }, cssClass: getCssClassAndcalcHeigth.cssClass }); yield modal.present(); }).apply(this, arguments); } openChangeEmail() { var _this8 = 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 _this8.modalController.create({ component: _modal_change_email_modal_change_email_component__WEBPACK_IMPORTED_MODULE_8__.ModalChangeEmailComponent, cssClass: 'modal-change-email', componentProps: { dataAccount: _this8.dataAccount } }); yield modal.present(); })(); } setLanguageSelect(event) { this.userCurrentLang = event?.lang == 'pt' ? 'pt-BR' : event?.lang; this.skeletonProfiles = true; this.skeltonProfileDescription = true; this.profilesLoaded = false; this.getProfiles(); } 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(); localStorage.removeItem('store_current_config'); localStorage.removeItem('firstRequestGetProfile'); localStorage.removeItem('basePlatformUrl'); localStorage.removeItem('ka_fcmMobileToken'); } getToken(uuid, document) { var _this9 = 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 foreigner = !!(yield _this9.authService.getForeigner()); let tokenStorage = ''; try { const needsToRenewToken = yield _this9.authService.needsToRenewToken(); tokenStorage = yield _this9.authService.getToken(); const tokenIsExpired = yield _this9.authService.isExpiredToken(); const passwordHash = yield _this9.authService.getPasswordHash(); if (_this9.isOffline && !tokenIsExpired) { return tokenStorage; } if (!tokenIsExpired && !needsToRenewToken) { return tokenStorage; } if (tokenIsExpired && !_this9.isOffline) { const getTokenApi = yield _this9.apiService.getToken(uuid, document, passwordHash, foreigner).toPromise(); if (getTokenApi && getTokenApi.refId) { yield _this9.authService.updateTokenGeneratedAt(); _this9.authService.setRefId(getTokenApi.refId); return getTokenApi.access_token; } } else if (needsToRenewToken) { const getTokenApi = yield _this9.apiService.getToken(uuid, document, passwordHash, foreigner).toPromise(); if (getTokenApi && getTokenApi.refId) { yield _this9.authService.updateTokenGeneratedAt(); _this9.authService.setRefId(getTokenApi.refId); return getTokenApi.access_token; } else { if (!tokenIsExpired) { return tokenStorage; } } } return tokenStorage; } catch (error) { const er = { ...error, uuid, document, foreigner }; throw new Error(JSON.stringify(er)); } })(); } statusConnectionAndRestartStart() { this.stateService.getState().pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_22__.takeUntil)(this.destroy$)).subscribe(state => { if (state.status === 'Offline') { this.isOffline = true; } else { if (this.isOffline) { this.isOffline = false; const timeout = setTimeout(() => { clearTimeout(timeout); }, 1000); } } }); } getPhoto(refId) { var _this0 = 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 photoInStorage = yield _this0.authService.getPhoto(); const token = yield _this0.getToken(_this0.uuid, _this0.documentStorage); let photoSyncColaborator; if (!_this0.hasValidPhotoInStorage(photoInStorage)) { try { photoSyncColaborator = yield _this0.photoService.getPhoto(token, refId).toPromise(); if (photoSyncColaborator && photoSyncColaborator?.faceImageThumbnail) { _this0.handleSyncSuccess(photoSyncColaborator); } else { _this0.handleSyncFailure(); } } catch (error) { if (error.status !== 404) { _this0.logService.logError('handleErrorGetPhoto', 'Erro get photo http', error); } } } _this0.updateUserPhoto(photoInStorage); })(); } updatePhoto(_x8) { var _this1 = 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* (data, showLoad = false) { if (showLoad) { _this1.loaderService.show('', 1500); } try { const token = yield _this1.getToken(_this1.uuid, _this1.documentStorage); const updatePhoto = yield _this1.photoService.updatePhoto(token, data).toPromise(); _this1.handleUpdatePhotoNotification(updatePhoto); if (updatePhoto) { const payload = { synchronized: true, faceImage: data?.faceImage, validated: updatePhoto?.validated ?? false, hasPhoto: updatePhoto?.faceImageThumbnail !== null }; _this1.setPhotoStorage(payload); } } catch (error) { _this1.loaderService.hide(); _this1.handleErrorUpdatePhotoNotification(error); } finally { _this1.loaderService.hide(); } }).apply(this, arguments); } handleUpdatePhotoNotification(updatePhoto) { const title = this.translateConfigService.translate('PG_ACCOUNT_TOAST_SUCCESS_UPDATE_PHOTO_TITLE'); const notification = { title, message: '', type: 'success', timeout: 5000 }; this.notificatorService.notify(notification); } handleErrorUpdatePhotoNotification(error) { this.logService.logError('httpPost:photo', 'Erro http update photo', error); const title = this.translateConfigService.translate('PG_ACCOUNT_TOAST_ERROR_UPDATE_PHOTO_TITLE'); const notification = { title, message: '', type: 'error', timeout: 5000 }; this.notificatorService.notify(notification); } cpfMask(documet) { if (this.utilsService.isValidCPF(documet)) { const config = new br_mask__WEBPACK_IMPORTED_MODULE_6__.BrMaskModel(); config.person = true; return this.brMask.writeCreateValue(documet, config); } else { return documet; } } setPhotoStorage(data) { var _this10 = 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* () { _this10.authService.clearPhoto(); _this10.authService.setPhoto({ faceImage: data.faceImage ?? '', synchronized: data.synchronized, validated: data.validated ?? false, hasPhoto: data.hasPhoto ?? false }); })(); } goodProfiles(profiles) { let goodProfiles = this.filterGoodProfiles(profiles); this.filterGoodProfiles(this.lgProfiles).forEach(lgprofile => { goodProfiles.push(lgprofile); }); goodProfiles = goodProfiles.filter((value, index, self) => index === self.findIndex(t => t.company.instanceName === value.company.instanceName)); return goodProfiles; } getAuthoritiesDescriptions(token) { var _this11 = 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 { const goodProfiles = _this11.goodprofilesAvaliables.map(({ company, authorities }) => ({ instanceName: company.instanceName, authorities })); const authoritiesTranslated = yield _this11.getApiTranslateAuthorities(goodProfiles, token); _this11.handleSuccessGetTranslateRoles(authoritiesTranslated); } catch (error) { _this11.handleErrorGetTranslateRoles(error); } finally { _this11.skeltonProfileDescription = false; } })(); } handleErrorGetTranslateRoles(error) { this.logService.logError('getTranslateRolesAuthorities::http', 'Erro request get authorities', error); } handleSuccessGetTranslateRoles(autohrities) { this.goodprofilesAvaliables.forEach(goodAvaliables => { const respLang = autohrities.find(resp => resp.instanceName === goodAvaliables.company.instanceName); if (respLang) { const desc = respLang.translations.find(lang => lang.lang === this.userCurrentLang); if (desc) { goodAvaliables.accessProfilesDesc = desc.descriptions; } } }); } getApiTranslateAuthorities(data, token) { return this.apiService.getTranslateRolesProfile(data, token).toPromise(); } hasValidPhotoInStorage(photoInStorage) { if (this.hasFaceImageAndSynchronizedProperties(photoInStorage)) { return photoInStorage && photoInStorage?.faceImage; } else { return !!photoInStorage; } } handleSyncSuccess(photoSyncColaborator) { // Process and update the photo based on the API response const updatedPhoto = { faceImage: photoSyncColaborator?.faceImageThumbnail, synchronized: true, validated: photoSyncColaborator?.validated ?? false, hasPhoto: photoSyncColaborator?.faceImageThumbnail !== null }; this.setPhotoStorage(updatedPhoto); this.photoStorage = photoSyncColaborator?.faceImageThumbnail ?? ''; } handleSyncFailure() { // Handle the case when the API call for photo retrieval fails const updatedPhoto = { faceImage: null, synchronized: false, validated: false, hasPhoto: false }; this.setPhotoStorage(updatedPhoto); } updateUserPhoto(photoInStorage) { var _this12 = 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 = { colaborator: true, refId: _this12.refId, faceImageContentType: 'png', faceImage: '' }; if (_this12.hasFaceImageAndSynchronizedProperties(photoInStorage)) { if (!photoInStorage?.synchronized && photoInStorage?.faceImage) { data.faceImage = photoInStorage.faceImage; yield _this12.updatePhoto(data); } else { data.faceImage = photoInStorage.faceImage; console.log('🚀 ~ synchronized::file: account.page.ts:769 ~ AccountPage ~ updateUserPhoto ~ data:', data); } } else { if (photoInStorage) { data.faceImage = photoInStorage; yield _this12.updatePhoto(data); } } })(); } hasFaceImageAndSynchronizedProperties(photoInStorage) { if (photoInStorage?.hasOwnProperty('faceImage') && photoInStorage?.hasOwnProperty('synchronized')) { return true; } else { return false; } } } AccountPage.ɵfac = function AccountPage_Factory(t) { return new (t || AccountPage)(_angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_11__.ApiService), _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_11__.AuthService), _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_11__.LogService), _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_11__.StorageService), _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_11__.NotificatorService), _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_11__.LoadingService), _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_11__.NavigationService), _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_11__.ResumeToPinService), _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_11__.ResumeToGenerateQrCodeService), _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵdirectiveInject"](_ionic_angular__WEBPACK_IMPORTED_MODULE_23__.ModalController), _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_11__.ProfileManagerService), _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_11__.PortalLoginManagerService), _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_11__.TranslateConfigService), _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_11__.CreateEventService), _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_11__.ResumeCreateEventInterruptedService), _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵdirectiveInject"](_shared_services_state_service__WEBPACK_IMPORTED_MODULE_12__.StateService), _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵdirectiveInject"](_shared_services_photo_service__WEBPACK_IMPORTED_MODULE_13__.PhotoService), _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_11__.CameraService), _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵdirectiveInject"](br_mask__WEBPACK_IMPORTED_MODULE_6__.BrMaskDirective), _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_11__.UtilsService), _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_11__.ModalHelperService), _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵdirectiveInject"](_shared_services_focus_service__WEBPACK_IMPORTED_MODULE_14__.FocusService), _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵdirectiveInject"](_home_home_page__WEBPACK_IMPORTED_MODULE_7__.HomePage), _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_11__.LoaderService), _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵdirectiveInject"](_angular_router__WEBPACK_IMPORTED_MODULE_15__.ActivatedRoute), _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵdirectiveInject"](_angular_router__WEBPACK_IMPORTED_MODULE_15__.Router), _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_11__.NgZoneService), _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_11__.ManagerTokenUaamobileService), _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵdirectiveInject"](_shared_services_email_update_service__WEBPACK_IMPORTED_MODULE_16__.EmailUpdateService)); }; AccountPage.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵdefineComponent"]({ type: AccountPage, selectors: [["app-account"]], features: [_angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵProvidersFeature"]([br_mask__WEBPACK_IMPORTED_MODULE_6__.BrMaskDirective, _home_home_page__WEBPACK_IMPORTED_MODULE_7__.HomePage])], decls: 44, vars: 29, consts: [[3, "title", "showBadge", "refresh"], [1, "account-page"], ["slot", "fixed", "pullFactor", "0.9", "pullMin", "60", "pullMax", "120", 2, "background-color", "transparent", 3, "ionRefresh"], [1, "content-account", 3, "ngClass"], [1, "account-details"], [1, ""], ["id", "page_account-details", "tabindex", "1", 1, "title"], ["tabindex", "2", 1, "btn-translate"], [3, "languageSelectOnClose"], [1, "ion-margin-vertical"], ["size", "12"], [1, "account-card-photo"], ["tabindex", "3", 1, "account-card-photo__img"], ["tabindex", "4", "role", "img", 3, "alt", "src", "click", 4, "ngIf"], ["tabindex", "4", "role", "img", 3, "alt", "src", 4, "ngIf"], ["tabindex", "5", 1, "account-card-photo__img__eclipse-camera", 3, "click"], ["aria-hidden", "true", "slot", "icon-only", "name", "camera-outline"], [1, "account-card-photo__infos"], [4, "ngIf"], ["tabindex", "10", 1, "account-details"], ["tabindex", "11", 1, "title"], [4, "ngIf", "ngIfElse"], ["noProfile", ""], [1, "button-holder"], ["tabindex", "15", "mode", "ios", "color", "danger", "routerLinkActive", "router-link-active", "fill", "clear", "shape", "round", 3, "routerLink"], ["tabindex", "4", "role", "img", 3, "alt", "src", "click"], ["tabindex", "4", "role", "img", 3, "alt", "src"], [1, "account-card-photo__infos__fullname", "ion-text-wrap"], ["animated", "", 2, "width", "70%", "height", "20px", "margin-bottom", "8px"], [1, "account-card-photo__infos__document"], ["animated", "", 2, "width", "50%", "height", "16px", "margin-bottom", "8px"], [1, "account-card-photo__infos__email", "ion-text-wrap"], ["animated", "", 2, "width", "30%", "height", "14px", "margin-bottom", "4px"], ["animated", "", 2, "width", "60%", "height", "16px"], ["class", "account-card-photo__infos__fullname ion-text-wrap", "tabindex", "6", 4, "ngIf"], ["class", "account-card-photo__infos__document", "tabindex", "7", 4, "ngIf"], ["class", "account-card-photo__infos__email ion-text-wrap", 3, "click", 4, "ngIf"], ["tabindex", "6", 1, "account-card-photo__infos__fullname", "ion-text-wrap"], ["tabindex", "7", 1, "account-card-photo__infos__document"], [1, "account-card-photo__infos__email", "ion-text-wrap", 3, "click"], ["tabindex", "8", "for", "email"], ["tabindex", "9", 1, "email"], [1, "fa-edit", 3, "icon"], ["class", "item-card-company", 4, "ngFor", "ngForOf"], [1, "item-card-company"], ["size", "10", "tabindex", "11"], ["tabindex", "12", 1, "item-card-company__companyName"], ["tabindex", "13", 1, "item-card-company__address"], ["class", "item-card-company__profile_access", 4, "ngIf"], ["size", "2", "tabindex", "16"], [1, "item-card-company__remove_access_button_company", 3, "click"], ["tabindex", "15", "name", "trash-outline", "slot", "icon-only"], [1, "item-card-company__profile_access"], ["class", "profile-access", "tabindex", "14", 4, "ngIf"], ["tabindex", "14", 1, "profile-access"], ["class", "no-profile", "tabindex", "11", 4, "ngIf"], ["tabindex", "11", 1, "no-profile"], ["size", "10"], [1, "item-card-company__companyName"], ["animated", "", 2, "width", "85%", "height", "16px", "margin-bottom", "8px"], [1, "item-card-company__address"], ["animated", "", 2, "width", "100%", "height", "12px", "margin-bottom", "4px"], [1, "item-card-company__profile_access", 2, "display", "flex", "gap", "0.2em"], ["animated", "", 2, "width", "40%", "height", "11px", "margin-bottom", "4px"], ["animated", "", 2, "width", "75%", "height", "13px"], ["size", "2"], [1, "item-card-company__remove_access_button_company"], ["animated", "", 2, "width", "24px", "height", "24px", "border-radius", "50%"]], template: function AccountPage_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelement"](0, "app-header", 0); _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵpipe"](1, "translate"); _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](2, "ion-content", 1)(3, "ion-refresher", 2); _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵlistener"]("ionRefresh", function AccountPage_Template_ion_refresher_ionRefresh_3_listener($event) { return ctx.doRefresh($event); }); _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelement"](4, "ion-refresher-content"); _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](5, "div", 3)(6, "ion-grid")(7, "ion-row")(8, "ion-col")(9, "ion-row")(10, "ion-col")(11, "div", 4)(12, "div", 5)(13, "div", 6); _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](14); _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵpipe"](15, "translate"); _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](16, "div", 7)(17, "app-translate-btn", 8); _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵlistener"]("languageSelectOnClose", function AccountPage_Template_app_translate_btn_languageSelectOnClose_17_listener($event) { return ctx.setLanguageSelect($event); }); _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]()()()()()(); _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](18, "ion-row", 9)(19, "ion-col", 10)(20, "div", 11)(21, "div", 12); _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtemplate"](22, AccountPage_ion_img_22_Template, 2, 4, "ion-img", 13); _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtemplate"](23, AccountPage_ion_img_23_Template, 2, 4, "ion-img", 14); _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](24, "div", 15); _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵlistener"]("click", function AccountPage_Template_div_click_24_listener() { return ctx.takePhoto(); }); _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵpipe"](25, "translate"); _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelement"](26, "ion-icon", 16); _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]()(); _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](27, "div", 17); _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtemplate"](28, AccountPage_ng_container_28_Template, 8, 0, "ng-container", 18); _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtemplate"](29, AccountPage_ng_container_29_Template, 4, 3, "ng-container", 18); _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]()()()(); _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](30, "ion-row")(31, "ion-col")(32, "div", 19)(33, "div", 20); _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](34); _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵpipe"](35, "translate"); _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]()()()(); _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtemplate"](36, AccountPage_ng_container_36_Template, 2, 1, "ng-container", 21); _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtemplate"](37, AccountPage_ng_template_37_Template, 1, 1, "ng-template", null, 22, _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtemplateRefExtractor"]); _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtemplate"](39, AccountPage_ng_container_39_Template, 2, 2, "ng-container", 18); _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]()()(); _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](40, "div", 23)(41, "ion-button", 24); _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](42); _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵpipe"](43, "translate"); _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]()()()(); } if (rf & 2) { const _r5 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵreference"](38); let tmp_11_0; _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("title", _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵpipeBind1"](1, 16, "PG_ACCOUNT_HEADER_TITLE"))("showBadge", true)("refresh", false); _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"](5); _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵpureFunction1"](26, _c1, ctx.skeletonAccountData)); _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"](9); _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵpipeBind1"](15, 18, "PG_ACCOUNT_ACCOUNT_DETAILS"), " "); _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"](8); _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("ngIf", ctx.photoStorage); _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("ngIf", !ctx.photoStorage); _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵattribute"]("aria-label", _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵpipeBind1"](25, 20, "ACCESSIBILITY.ARIA_LABELS.TAKE_PHOTO_PROFILE")); _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"](4); _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("ngIf", ctx.skeletonAccountData); _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("ngIf", !ctx.skeletonAccountData); _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"](5); _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵpipeBind1"](35, 22, "PG_ACCOUNT_ACCESS_PROFILES")); _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"](2); _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("ngIf", ((tmp_11_0 = ctx.goodprofilesAvaliables == null ? null : ctx.goodprofilesAvaliables.length) !== null && tmp_11_0 !== undefined ? tmp_11_0 : 0) > 0)("ngIfElse", _r5); _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"](3); _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("ngIf", ctx.skeletonProfiles && (ctx.goodprofilesAvaliables == null ? null : ctx.goodprofilesAvaliables.length) === 0); _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"](2); _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("routerLink", _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵpureFunction0"](28, _c2)); _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵpipeBind1"](43, 24, "BNT_DELETE_ACCOUNT"), " "); } }, dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_17__.NgClass, _angular_common__WEBPACK_IMPORTED_MODULE_17__.NgForOf, _angular_common__WEBPACK_IMPORTED_MODULE_17__.NgIf, _ionic_angular__WEBPACK_IMPORTED_MODULE_23__.IonButton, _ionic_angular__WEBPACK_IMPORTED_MODULE_23__.IonCol, _ionic_angular__WEBPACK_IMPORTED_MODULE_23__.IonContent, _ionic_angular__WEBPACK_IMPORTED_MODULE_23__.IonGrid, _ionic_angular__WEBPACK_IMPORTED_MODULE_23__.IonIcon, _ionic_angular__WEBPACK_IMPORTED_MODULE_23__.IonImg, _ionic_angular__WEBPACK_IMPORTED_MODULE_23__.IonRefresher, _ionic_angular__WEBPACK_IMPORTED_MODULE_23__.IonRefresherContent, _ionic_angular__WEBPACK_IMPORTED_MODULE_23__.IonRow, _ionic_angular__WEBPACK_IMPORTED_MODULE_23__.IonSkeletonText, _ionic_angular__WEBPACK_IMPORTED_MODULE_23__.RouterLinkDelegate, _fortawesome_angular_fontawesome__WEBPACK_IMPORTED_MODULE_24__.FaIconComponent, _shared_components_header_header_component__WEBPACK_IMPORTED_MODULE_18__.HeaderComponent, _shared_components_translate_btn_translate_btn_component__WEBPACK_IMPORTED_MODULE_19__.TranslateBtnComponent, _angular_router__WEBPACK_IMPORTED_MODULE_15__.RouterLink, _angular_router__WEBPACK_IMPORTED_MODULE_15__.RouterLinkActive, _ngx_translate_core__WEBPACK_IMPORTED_MODULE_25__.TranslatePipe], styles: ["ion-content[_ngcontent-%COMP%] {\n --background: #f1f1f1;\n}\nion-content[_ngcontent-%COMP%] .btn-translate[_ngcontent-%COMP%] {\n position: absolute;\n right: -0.5em;\n top: -0.8em;\n}\n.content-account[_ngcontent-%COMP%] {\n display: flex;\n height: 100%;\n width: 100%;\n flex-direction: column;\n justify-content: space-evenly;\n}\n.content-account[_ngcontent-%COMP%] ion-grid[_ngcontent-%COMP%] {\n margin: 0 auto;\n width: 100%;\n}\nion-toolbar[_ngcontent-%COMP%] {\n font-family: \"Nunito\", sans-serif;\n}\nion-toolbar[_ngcontent-%COMP%] ion-img[_ngcontent-%COMP%] {\n height: 25px;\n width: 25px;\n}\nion-toolbar[_ngcontent-%COMP%] ion-title[_ngcontent-%COMP%] {\n letter-spacing: 1px;\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}\nion-toolbar[_ngcontent-%COMP%] ion-button.hover[_ngcontent-%COMP%] {\n background: #fff;\n}\n.account-details[_ngcontent-%COMP%] .title[_ngcontent-%COMP%] {\n font-size: initial !important;\n position: relative;\n font-weight: bold;\n}\nion-row.item-card-company[_ngcontent-%COMP%] ion-col[_ngcontent-%COMP%] {\n padding: 0;\n}\n.item-card-company[_ngcontent-%COMP%] {\n background: #fff;\n border-radius: 8px;\n padding: 0.43rem 0.8rem;\n margin: 0.8em 0.5em;\n font-weight: 300;\n font-size: 0.7rem;\n line-height: 1.6em;\n}\n.item-card-company__companyName[_ngcontent-%COMP%] {\n font-weight: 700;\n display: flex;\n font-size: 0.85rem;\n line-height: 1.8em;\n align-items: center;\n color: var(--ion-color-primary);\n}\n.item-card-company__address[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n color: #757575;\n}\n.item-card-company__profile_access[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n color: #757575;\n}\n.item-card-company__profile_access[_ngcontent-%COMP%] > .profile-access[_ngcontent-%COMP%] {\n font-weight: 800;\n -webkit-padding-start: 0.3em;\n padding-inline-start: 0.3em;\n}\n.item-card-company__remove_access_button_company[_ngcontent-%COMP%] {\n display: flex;\n justify-content: flex-end;\n align-items: center;\n height: 100%;\n}\n.item-card-company__remove_access_button_company[_ngcontent-%COMP%] ion-icon[_ngcontent-%COMP%] {\n color: #a6a6a6;\n font-size: 2.3em;\n}\n.button-holder[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n justify-content: center;\n margin: 2em auto;\n font-weight: 600;\n}\n.no-profile[_ngcontent-%COMP%] {\n -webkit-padding-start: 0.3em;\n padding-inline-start: 0.3em;\n}\n.account-card-photo[_ngcontent-%COMP%] {\n background: #fff;\n border-radius: 8px;\n display: flex;\n width: 100%;\n position: relative;\n min-height: 124px;\n padding: 12px 8px;\n border: solid 1px rgba(204, 204, 204, 0.3098039216);\n align-items: center;\n}\n.account-card-photo__img[_ngcontent-%COMP%] {\n position: relative;\n}\n.account-card-photo__img[_ngcontent-%COMP%] ion-img[_ngcontent-%COMP%] {\n max-height: 97px;\n min-height: 97px;\n width: 97px;\n background-color: #f1f1f1;\n overflow: hidden;\n border: solid 3px var(--ion-color-primary);\n position: relative;\n border-radius: 50%;\n}\n.account-card-photo__img[_ngcontent-%COMP%] ion-img[_ngcontent-%COMP%]::part(image) {\n object-fit: cover !important;\n position: absolute !important;\n}\n.account-card-photo__img__eclipse-camera[_ngcontent-%COMP%] {\n position: absolute;\n bottom: 0;\n right: 0;\n background: var(--ion-color-primary);\n width: 30px;\n height: 30px;\n display: flex;\n justify-content: center;\n align-items: center;\n border-radius: 50%;\n}\n.account-card-photo__img__eclipse-camera[_ngcontent-%COMP%] ion-icon[_ngcontent-%COMP%] {\n font-size: 1.1em;\n color: #fff;\n}\n.account-card-photo__infos[_ngcontent-%COMP%] {\n display: flex;\n flex-direction: column;\n justify-content: space-evenly;\n -webkit-padding-start: 0.9em;\n padding-inline-start: 0.9em;\n width: 100%;\n}\n.account-card-photo__infos__fullname[_ngcontent-%COMP%] {\n font-style: normal;\n font-weight: 800;\n font-size: 1em;\n line-height: 22px;\n display: flex;\n align-items: center;\n color: var(--ion-color-primary);\n}\n.account-card-photo__infos__document[_ngcontent-%COMP%] {\n font-style: normal;\n font-weight: 700;\n font-size: 0.9em;\n line-height: 120%;\n display: flex;\n align-items: center;\n color: #383a3e;\n padding-top: 3px;\n}\n.account-card-photo__infos__email[_ngcontent-%COMP%] {\n padding-top: 9px;\n}\n.account-card-photo__infos__email[_ngcontent-%COMP%] label[_ngcontent-%COMP%] {\n font-weight: 300;\n font-size: 0.8em;\n line-height: 120%;\n display: flex;\n align-items: center;\n color: #999999;\n}\n.account-card-photo__infos__email[_ngcontent-%COMP%] > .email[_ngcontent-%COMP%] {\n font-weight: 700;\n font-size: 0.8em;\n line-height: 120%;\n display: flex;\n align-items: center;\n color: #383a3e;\n overflow-wrap: anywhere;\n position: relative;\n justify-content: flex-start;\n}\n.account-card-photo__infos__email[_ngcontent-%COMP%] > .email[_ngcontent-%COMP%] span[_ngcontent-%COMP%] {\n padding: 0 0.3em 0 0;\n display: flex;\n}\n.account-card-photo__infos__email[_ngcontent-%COMP%] > .email[_ngcontent-%COMP%] span[_ngcontent-%COMP%] fa-icon[_ngcontent-%COMP%] {\n display: flex;\n justify-content: center;\n align-items: center;\n height: 1em;\n padding: 0;\n width: 1em;\n margin: 0;\n font-size: 1em;\n color: #6cb52d;\n}\n@keyframes fadeIn {\n from {\n opacity: 0;\n transform: translateY(-10px);\n }\n to {\n opacity: 1;\n transform: translateY(0);\n }\n}\n.relative_bottom_btn_delete_account__bottom_btn_delete_account[_ngcontent-%COMP%] {\n position: absolute;\n bottom: 0;\n}\n.ion-activatable[_ngcontent-%COMP%] {\n position: relative;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImFjY291bnQucGFn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2x1dGUgIWltcG9ydGFudDtcbiAgICB9XG5cbiAgICAmX19lY2xpcHNlLWNhbWVyYSB7XG4gICAgICBwb3NpdGlvbjogYWJzb2x1dGU7XG4gICAgICBib3R0b206IDA7XG4gICAgICByaWdodDogMDtcbiAgICAgIGJhY2tncm91bmQ6IHZhcigtLWlvbi1jb2xvci1wcmltYXJ5KTtcbiAgICAgIHdpZHRoOiAzMHB4O1xuICAgICAgaGVpZ2h0OiAzMHB4O1xuICAgICAgZGlzcGxheTogZmxleDtcbiAgICAgIGp1c3RpZnktY29udGVudDogY2VudGVyO1xuICAgICAgYWxpZ24taXRlbXM6IGNlbnRlcjtcbiAgICAgIGJvcmRlci1yYWRpdXM6IDUwJTtcblxuICAgICAgaW9uLWljb24ge1xuICAgICAgICBmb250LXNpemU6IDEuMWVtO1xuICAgICAgICBjb2xvcjogI2ZmZjtcbiAgICAgIH1cbiAgICB9XG4gIH1cblxuICAmX19pbmZvcyB7XG4gICAgZGlzcGxheTogZmxleDtcbiAgICBmbGV4LWRpcmVjdGlvbjogY29sdW1uO1xuICAgIGp1c3RpZnktY29udGVudDogc3BhY2UtZXZlbmx5O1xuICAgIC13ZWJraXQtcGFkZGluZy1zdGFydDogMC45ZW07XG4gICAgcGFkZGluZy1pbmxpbmUtc3RhcnQ6IDAuOWVtO1xuICAgIHdpZHRoOiAxMDAlO1xuXG4gICAgJl9fZnVsbG5hbWUge1xuICAgICAgZm9udC1zdHlsZTogbm9ybWFsO1xuICAgICAgZm9udC13ZWlnaHQ6IDgwMDtcbiAgICAgIGZvbnQtc2l6ZTogMWVtO1xuICAgICAgbGluZS1oZWlnaHQ6IDIycHg7XG4gICAgICBkaXNwbGF5OiBmbGV4O1xuICAgICAgYWxpZ24taXRlbXM6IGNlbnRlcjtcbiAgICAgIGNvbG9yOiB2YXIoLS1pb24tY29sb3ItcHJpbWFyeSk7XG4gICAgfVxuXG4gICAgJl9fZG9jdW1lbnQge1xuICAgICAgZm9udC1zdHlsZTogbm9yb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RpZnktY29udGVudDogY2VudGVyO1xuICAgICAgICAgICAgYWxpZ24taXRlbXM6IGNlbnRlcjtcbiAgICAgICAgICAgIGhlaWdodDogMWVtO1xuICAgICAgICAgICAgcGFkZGluZzogMDtcbiAgICAgICAgICAgIHdpZHRoOiAxZW07XG4gICAgICAgICAgICBtYXJnaW46IDA7XG4gICAgICAgICAgICBmb250LXNpemU6IDFlbTtcbiAgICAgICAgICAgIGNvbG9yOiAjNmNiNTJkO1xuICAgICAgICAgIH1cbiAgICAgICAgfVxuICAgICAgfVxuICAgIH1cbiAgfVxufVxuXG5Aa2V5ZnJhbWVzIGZhZGVJbiB7XG4gIGZyb20ge1xuICAgIG9wYWNpdHk6IDA7XG4gICAgdHJhbnNmb3JtOiB0cmFuc2xhdGVZKC0xMHB4KTtcbiAgfVxuICB0byB7XG4gICAgb3BhY2l0eTogMTtcbiAgICB0cmFuc2Zvcm06IHRyYW5zbGF0ZVkoMCk7XG4gIH1cbn1cblxuLnJlbGF0aXZlX2JvdHRvbV9idG5fZGVsZXRlX2FjY291bnQge1xuICAmX19ib3R0b21fYnRuX2RlbGV0ZV9hY2NvdW50IHtcbiAgICBwb3NpdGlvbjogYWJzb2x1dGU7XG4gICAgYm90dG9tOiAwO1xuICB9XG59XG5cbi5pb24tYWN0aXZhdGFibGUge1xuICBwb3NpdGlvbjogcmVsYXRpdmU7XG59XG4iXX0= */"] }); /***/ }), /***/ 8180: /*!****************************************************************************!*\ !*** ./src/app/account/modal-change-email/modal-change-email.component.ts ***! \****************************************************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "ModalChangeEmailComponent": () => (/* binding */ ModalChangeEmailComponent) /* harmony export */ }); /* harmony import */ var _Volumes_case_workspace_work_APPS_KA_APP_WORK_NOW_KA_PASS_V2_2_6_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js */ 71670); /* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @angular/forms */ 2508); /* harmony import */ var _modal_confirm_code_change_email_modal_confirm_code_change_email_component__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../modal-confirm-code-change-email/modal-confirm-code-change-email.component */ 2586); /* 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_7__ = __webpack_require__(/*! @ionic/angular */ 93819); /* harmony import */ var _shared_services__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @shared/services */ 17253); /* harmony import */ var _shared_services_email_update_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @shared/services/email-update.service */ 59439); /* 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 _ngx_translate_core__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @ngx-translate/core */ 38699); function ModalChangeEmailComponent_ion_text_14_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "ion-text", 13)(1, "p"); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](2); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipe"](3, "translate"); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()(); } if (rf & 2) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipeBind1"](3, 1, "MD_CHANGE_EMAIL.ERROR_INVALID_EMAIL")); } } class ModalChangeEmailComponent { constructor(modalCtrl, formBuilder, commonService, utilsService, notificatorService, translateConfigService, loaderService, apiService, logService, emailUpdateService) { this.modalCtrl = modalCtrl; this.formBuilder = formBuilder; this.commonService = commonService; this.utilsService = utilsService; this.notificatorService = notificatorService; this.translateConfigService = translateConfigService; this.loaderService = loaderService; this.apiService = apiService; this.logService = logService; this.emailUpdateService = emailUpdateService; this.validateForm = form => { const email = this.commonService.clearString(form.controls.email.value); return this.utilsService.validateEmail(email); }; } ngOnInit() { this.emailForm = this.formBuilder.group({ email: ['', [_angular_forms__WEBPACK_IMPORTED_MODULE_6__.Validators.required, _angular_forms__WEBPACK_IMPORTED_MODULE_6__.Validators.email]] }); } submit() { 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 validationResult = _this.validateForm(_this.emailForm); let title = _this.translateConfigService.translate('TOAST_INVALID_DATA_TITLE'); let message = _this.translateConfigService.translate('TOAST_INVALID_DATA_MESSAGE'); if (!validationResult) { const notification = { title, message, type: 'error', cssCustom: 'toast-change-email' }; _this.notificatorService.notify(notification); return false; } _this.updateEmail(); return true; })(); } updateEmail() { var _this2 = this; const email = this.emailForm.value?.email; if (!this.dataAccount.refId) { return; } const updating = this.translateConfigService.translate('MD_CHANGE_EMAIL.TOAST_UPDATING_TITLE'); const titleSuccess = this.translateConfigService.translate('MD_CHANGE_EMAIL.TOAST_CODE_SENT_TITLE_SUCCESS'); const messageSuccess = this.translateConfigService.translate('MD_CHANGE_EMAIL.TOAST_CODE_SENT_MESSAGE_SUCCESS'); const titleError = this.translateConfigService.translate('MD_CHANGE_EMAIL.TOAST_CODE_SENT_TITLE_ERROR'); const messageError = this.translateConfigService.translate('MD_CHANGE_EMAIL.TOAST_CODE_SENT_MESSAGE_ERROR'); this.loaderService.show(updating); this.apiService.updateEmail(email, this.dataAccount.refId).subscribe({ next: 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* (data) { _this2.dataAccount.email = email; _this2.loaderService.hide(); _this2.toast(titleSuccess, messageSuccess, 'success'); // Inicializar o service com os dados _this2.emailUpdateService.startEmailUpdate(email, _this2.dataAccount); // Fechar este modal e abrir o modal de confirmação de código _this2.closeModal(); yield _this2.openConfirmCodeModal(email); }); return function next(_x) { return _ref.apply(this, arguments); }; }(), error: error => { this.loaderService.hide(); this.toast(titleError, messageError, 'error', 10000); // LogService.logError: (classifier: string, message?: string, data?: any) this.logService.logError('http', 'error ao atualizar o e-mail', { email, error }); } }); } openConfirmCodeModal(email) { 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* () { _this3.emailUpdateService.setCodeVerificationStep(); const modal = yield _this3.modalCtrl.create({ component: _modal_confirm_code_change_email_modal_confirm_code_change_email_component__WEBPACK_IMPORTED_MODULE_1__.ModalConfirmCodeChangeEmailComponent, componentProps: { dataAccount: { ..._this3.dataAccount, email: email // Email atualizado } }, backdropDismiss: false, cssClass: 'modal-confirm-code-change-email' }); yield modal.present(); })(); } closeModal(value) { console.log('closeModal', value); this.modalCtrl.dismiss({ value, close: true }, 'cancel'); } toast(_x2, _x3, _x4) { 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* (title, message, type, timeout = 5000) { const notification = { title, message, type, timeout, cssCustom: 'toast-change-email' }; _this4.notificatorService.notify(notification); }).apply(this, arguments); } } ModalChangeEmailComponent.ɵfac = function ModalChangeEmailComponent_Factory(t) { return new (t || ModalChangeEmailComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](_ionic_angular__WEBPACK_IMPORTED_MODULE_7__.ModalController), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_6__.FormBuilder), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_3__.CommonService), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_3__.UtilsService), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_3__.NotificatorService), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_3__.TranslateConfigService), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_3__.LoaderService), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_3__.ApiService), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_3__.LogService), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](_shared_services_email_update_service__WEBPACK_IMPORTED_MODULE_4__.EmailUpdateService)); }; ModalChangeEmailComponent.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdefineComponent"]({ type: ModalChangeEmailComponent, selectors: [["app-modal-change-email"]], inputs: { dataAccount: "dataAccount" }, decls: 24, vars: 19, consts: [[1, "content_modal_changel_email"], ["tabindex", "1", 1, "content_modal_changel_email__title"], [1, "content_modal_changel_email__input"], [3, "formGroup"], [1, "content_modal_changel_email__input__subtitle"], ["tabindex", "2", "inputmode", "email", "type", "email", "formControlName", "email", 3, "autofocus", "placeholder"], [1, "error-message"], ["color", "danger", 4, "ngIf"], [1, "content_modal_changel_email__btns"], [1, "content_modal_changel_email__btns_cancel"], ["mode", "ios", "fill", "clear", "tabindex", "3", 3, "click"], [1, "content_modal_changel_email__btns_update"], ["mode", "ios", "color", "primary", "shape", "round", "tabindex", "4", 3, "disabled", "click"], ["color", "danger"]], template: function ModalChangeEmailComponent_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 0)(1, "div", 1)(2, "ion-text")(3, "h6"); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](4); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipe"](5, "translate"); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()()(); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](6, "div", 2)(7, "form", 3)(8, "ion-label", 4); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](9); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipe"](10, "translate"); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](11, "input", 5); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipe"](12, "translate"); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](13, "div", 6); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](14, ModalChangeEmailComponent_ion_text_14_Template, 4, 3, "ion-text", 7); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()(); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](15, "div", 8)(16, "div", 9)(17, "ion-button", 10); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function ModalChangeEmailComponent_Template_ion_button_click_17_listener() { return ctx.closeModal(); }); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](18); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipe"](19, "translate"); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()(); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](20, "div", 11)(21, "ion-button", 12); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function ModalChangeEmailComponent_Template_ion_button_click_21_listener() { return ctx.submit(); }); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](22); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipe"](23, "translate"); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()()()(); } if (rf & 2) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](4); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipeBind1"](5, 9, "MD_CHANGE_EMAIL.TITLE")); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("formGroup", ctx.emailForm); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipeBind1"](10, 11, "MD_CHANGE_EMAIL.SUBTITLE"), " "); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("autofocus", true)("placeholder", _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipeBind1"](12, 13, "MD_CHANGE_EMAIL.PLACEHOLDER") + " : " + (ctx.dataAccount == null ? null : ctx.dataAccount.email)); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx.emailForm.controls.email.invalid && ctx.emailForm.controls.email.touched); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](4); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipeBind1"](19, 15, "MD_CHANGE_EMAIL.BTN_CANCEL"), " "); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("disabled", !ctx.emailForm.valid); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipeBind1"](23, 17, "MD_CHANGE_EMAIL.BTN_UPDATE"), " "); } }, dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_5__.NgIf, _ionic_angular__WEBPACK_IMPORTED_MODULE_7__.IonButton, _ionic_angular__WEBPACK_IMPORTED_MODULE_7__.IonLabel, _ionic_angular__WEBPACK_IMPORTED_MODULE_7__.IonText, _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, _ngx_translate_core__WEBPACK_IMPORTED_MODULE_8__.TranslatePipe], styles: [".content_modal_changel_email[_ngcontent-%COMP%] {\n display: flex;\n position: relative;\n flex-direction: column;\n justify-content: space-around;\n align-items: center;\n background: #fff;\n padding: 1em;\n height: 100%;\n}\n.content_modal_changel_email__title[_ngcontent-%COMP%] {\n color: #383a3e;\n text-align: center;\n font-size: 18px;\n font-family: Nunito;\n font-style: normal;\n font-weight: 600;\n line-height: 120%;\n}\n.content_modal_changel_email__input[_ngcontent-%COMP%] {\n width: 100%;\n text-align: center;\n display: flex;\n align-items: center;\n justify-content: center;\n flex-direction: column;\n}\n.content_modal_changel_email__input__subtitle[_ngcontent-%COMP%] {\n color: #999;\n text-align: center;\n font-size: 14px;\n font-family: Nunito;\n font-style: normal;\n font-weight: 400;\n line-height: 120%;\n padding-bottom: 10px;\n}\n.content_modal_changel_email__input[_ngcontent-%COMP%] form[_ngcontent-%COMP%] {\n width: 100%;\n}\n.content_modal_changel_email__input[_ngcontent-%COMP%] input[_ngcontent-%COMP%] {\n margin-top: 0.5em;\n height: 48px;\n width: 100%;\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_changel_email__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_changel_email__input[_ngcontent-%COMP%] input[_ngcontent-%COMP%]::placeholder {\n color: var(--ion-color-medium);\n opacity: 0.5;\n}\n.content_modal_changel_email__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_changel_email__btns[_ngcontent-%COMP%] {\n width: 100%;\n display: flex;\n justify-content: space-between;\n}\n.content_modal_changel_email__btns[_ngcontent-%COMP%] ion-button[_ngcontent-%COMP%] {\n width: 118px;\n height: 40px;\n border-radius: 32px;\n}\n.content_modal_changel_email__btns_cancel[_ngcontent-%COMP%] ion-button[_ngcontent-%COMP%] {\n background: rgba(153, 153, 153, 0.13);\n --color: #757575;\n text-align: center;\n font-size: 16px;\n font-family: Nunito;\n font-style: normal;\n font-weight: 400;\n line-height: normal;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIm1vZGFsLWNoYW5nZS1lbWFpbC5jb21wb25lbnQuc2NzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTtFQUNFLGFBQUE7RUFDQSxrQkFBQTtFQUNBLHNCQUFBO0VBQ0EsNkJBQUE7RUFDQSxtQkFBQTtFQUNBLGdCQUFBO0VBQ0EsWUFBQTtFQUNBLFlBQUE7QUFDRjtBQUFFO0VBQ0UsY0FBQTtFQUNBLGtCQUFBO0VBQ0EsZUFBQTtFQUNBLG1CQUFBO0VBQ0Esa0JBQUE7RUFDQSxnQkFBQTtFQUNBLGlCQUFBO0FBRUo7QUFDRTtFQUNFLFdBQUE7RUFDQSxrQkFBQTtFQUNBLGFBQUE7RUFDQSxtQkFBQTtFQUVBLHVCQUFBO0VBQ0Esc0JBQUE7QUFBSjtBQUNJO0VBQ0UsV0FBQTtFQUNBLGtCQUFBO0VBQ0EsZUFBQTtFQUNBLG1CQUFBO0VBQ0Esa0JBQUE7RUFDQSxnQkFBQTtFQUNBLGlCQUFBO0VBQ0Esb0JBQUE7QUFDTjtBQUNJO0VBQ0UsV0FBQTtBQUNOO0FBQ0k7RUFDRSxpQkFBQTtFQUNBLFlBQUE7RUFDQSxXQUFBO0VBQ0Esa0JBQUE7RUFDQSxxQ0FBQTtFQUNBLHlCQUFBO0VBQ0Esb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9sZGVyIHtcbiAgICAgIGNvbG9yOiB2YXIoLS1pb24tY29sb3ItbWVkaXVtKTtcbiAgICAgIG9wYWNpdHk6IDAuNTtcbiAgICB9XG5cbiAgICBpbnB1dFt0eXBlPSdwYXNzd29yZCddOmZvY3VzOjotd2Via2l0LWlucHV0LXBsYWNlaG9sZGVyIHtcbiAgICAgIGNvbG9yOiB2YXIoLS1pb24tY29sb3ItZGFyayk7XG4gICAgICBvcGFjaXR5OiAwLjU7XG4gICAgfVxuICB9XG4gICZfX2J0bnMge1xuICAgIHdpZHRoOiAxMDAlO1xuICAgIGRpc3BsYXk6IGZsZXg7XG4gICAganVzdGlmeS1jb250ZW50OiBzcGFjZS1iZXR3ZWVuO1xuICAgIGlvbi1idXR0b24ge1xuICAgICAgd2lkdGg6IDExOHB4O1xuICAgICAgaGVpZ2h0OiA0MHB4O1xuICAgICAgYm9yZGVyLXJhZGl1czogMzJweDtcbiAgICB9XG4gICAgJl9jYW5jZWwge1xuICAgICAgaW9uLWJ1dHRvbiB7XG4gICAgICAgIGJhY2tncm91bmQ6IHJnYmEoMTUzLCAxNTMsIDE1MywgMC4xMyk7XG4gICAgICAgIC0tY29sb3I6ICM3NTc1NzU7XG4gICAgICAgIHRleHQtYWxpZ246IGNlbnRlcjtcbiAgICAgICAgZm9udC1zaXplOiAxNnB4O1xuICAgICAgICBmb250LWZhbWlseTogTnVuaXRvO1xuICAgICAgICBmb250LXN0eWxlOiBub3JtYWw7XG4gICAgICAgIGZvbnQtd2VpZ2h0OiA0MDA7XG4gICAgICAgIGxpbmUtaGVpZ2h0OiBub3JtYWw7XG4gICAgICB9XG4gICAgfVxuICAgICZfdXBkYXRlIHtcbiAgICB9XG4gIH1cbn1cbiJdfQ== */"] }); /***/ }), /***/ 2586: /*!******************************************************************************************************!*\ !*** ./src/app/account/modal-confirm-code-change-email/modal-confirm-code-change-email.component.ts ***! \******************************************************************************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "ModalConfirmCodeChangeEmailComponent": () => (/* binding */ ModalConfirmCodeChangeEmailComponent) /* harmony export */ }); /* harmony import */ var _Volumes_case_workspace_work_APPS_KA_APP_WORK_NOW_KA_PASS_V2_2_6_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js */ 71670); /* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @angular/forms */ 2508); /* harmony import */ var _modal_confirm_pin_facial_email_modal_confirm_pin_facial_email_component__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../modal-confirm-pin-facial-email/modal-confirm-pin-facial-email.component */ 61050); /* 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_7__ = __webpack_require__(/*! @ionic/angular */ 93819); /* harmony import */ var _shared_services__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @shared/services */ 17253); /* harmony import */ var _shared_services_email_update_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @shared/services/email-update.service */ 59439); /* 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 _ngx_translate_core__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @ngx-translate/core */ 38699); const _c0 = function (a0) { return { seconds: a0 }; }; function ModalConfirmCodeChangeEmailComponent_ion_text_16_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "ion-text", 14)(1, "p"); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](2); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipe"](3, "translate"); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()(); } if (rf & 2) { const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipeBind2"](3, 1, "MD_CONFIRM_CHANGE_EMAIL.COUNTDOWN", _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpureFunction1"](4, _c0, ctx_r0.secondsRemaining))); } } function ModalConfirmCodeChangeEmailComponent_div_17_Template(rf, ctx) { if (rf & 1) { const _r3 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"](); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 15)(1, "ion-button", 16); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function ModalConfirmCodeChangeEmailComponent_div_17_Template_ion_button_click_1_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r3); const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](); return _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵresetView"](ctx_r2.resendCode()); }); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](2); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipe"](3, "translate"); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()(); } if (rf & 2) { const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("disabled", !ctx_r1.canResend()); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵattribute"]("aria-disabled", !ctx_r1.canResend()); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipeBind1"](3, 3, "MD_CONFIRM_CHANGE_EMAIL.RESEND_CODE"), " "); } } class ModalConfirmCodeChangeEmailComponent { constructor(modalCtrl, formBuilder, translateConfigService, loadingService, notificatorService, apiService, logService, commonService, emailUpdateService) { this.modalCtrl = modalCtrl; this.formBuilder = formBuilder; this.translateConfigService = translateConfigService; this.loadingService = loadingService; this.notificatorService = notificatorService; this.apiService = apiService; this.logService = logService; this.commonService = commonService; this.emailUpdateService = emailUpdateService; this.countdownSeconds = 60; this.secondsRemaining = 0; this.countdownActive = false; this.showResendButton = false; } ngOnInit() { 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.codeForm = _this.formBuilder.group({ code: ['', [_angular_forms__WEBPACK_IMPORTED_MODULE_6__.Validators.required, _angular_forms__WEBPACK_IMPORTED_MODULE_6__.Validators.minLength(7), _angular_forms__WEBPACK_IMPORTED_MODULE_6__.Validators.maxLength(7)]] }); _this.startCountdown(); })(); } ngOnDestroy() { this.clearCountdown(); } closeModal() { 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* () { const isModalOpen = yield _this2.modalCtrl.getTop(); if (isModalOpen) { isModalOpen.dismiss({ close: true }, 'cancel'); } })(); } verifyCode() { 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* () { if (!_this3.validateForm()) { return; } const verificationCode = _this3.codeForm.value?.code; if (!_this3.dataAccount.refId || !_this3.dataAccount.email || !verificationCode) { return; } yield _this3.openPinFacialModal(verificationCode); })(); } openPinFacialModal(verificationCode) { 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 modal = yield _this4.modalCtrl.create({ component: _modal_confirm_pin_facial_email_modal_confirm_pin_facial_email_component__WEBPACK_IMPORTED_MODULE_1__.ModalConfirmPinFacialEmailComponent, componentProps: { actionType: 'verify_email', actionData: { email: _this4.dataAccount.email, refId: _this4.dataAccount.refId, verificationCode: verificationCode } }, backdropDismiss: false, cssClass: 'modal-confirm-pin-facial-email' }); yield modal.present(); const { data } = yield modal.onDidDismiss(); if (data && data.success) { yield _this4.executeEmailVerification(verificationCode); _this4.modalCtrl.dismiss({ success: true, closeAllModals: true, dataAccount: _this4.dataAccount }, 'confirm'); } })(); } executeEmailVerification(verificationCode) { var _this5 = this; return (0,_Volumes_case_workspace_work_APPS_KA_APP_WORK_NOW_KA_PASS_V2_2_6_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* () { const verifying = _this5.translateConfigService.translate('MD_CONFIRM_CODE_CHANGE_EMAIL.VERIFYING'); const titleSuccess = _this5.translateConfigService.translate('MD_CONFIRM_CODE_CHANGE_EMAIL.SUCCESS_TITLE'); const messageSuccess = _this5.translateConfigService.translate('MD_CONFIRM_CODE_CHANGE_EMAIL.SUCCESS_MESSAGE'); let titleError = _this5.translateConfigService.translate('MD_CONFIRM_CODE_CHANGE_EMAIL.ERROR_TITLE'); let messageError = _this5.translateConfigService.translate('MD_CONFIRM_CODE_CHANGE_EMAIL.ERROR_MESSAGE'); _this5.loadingService.show(verifying || 'Verificando...', 'confirm-email'); // transforma o codigo em uppercase verificationCode = verificationCode.toUpperCase(); const payload = { email: _this5.dataAccount.email, refId: _this5.dataAccount.refId, verificationCode: verificationCode }; return new Promise((resolve, reject) => { _this5.apiService.updateEmailFinish(payload).subscribe({ next: 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* (data) { _this5.dataAccount = { ..._this5.dataAccount, email: _this5.dataAccount.email, login: _this5.dataAccount.email, emailVerified: true }; const notification = { title: titleSuccess || 'E-mail verificado!', message: messageSuccess || 'Seu email foi verificado com sucesso!', type: 'success', timeout: 3000, cssCustom: 'toast-change-email' }; _this5.loadingService.hide(null, 'confirm-email').then(() => { _this5.notificatorService.notify(notification); _this5.emailUpdateService.completeEmailUpdate(_this5.dataAccount); _this5.closeModal(); resolve(); }); }); return function next(_x) { return _ref.apply(this, arguments); }; }(), error: error => { const messageErrorEmailUsed = _this5.translateConfigService.translate('MD_CONFIRM_CODE_CHANGE_EMAIL.ERROR_EMAIL_USED'); const messageErrorSameEmailForThisRefId = _this5.translateConfigService.translate('MD_CONFIRM_CODE_CHANGE_EMAIL.ERROR_SAME_EMAIL_FOR_THIS_REFID'); if (error?.status === 400) { titleError = ''; const errorKey = error?.error?.errorKey; const errorMessageByKey = { email_used: messageErrorEmailUsed, same_email_for_this_refid: messageErrorSameEmailForThisRefId }; messageError = errorMessageByKey[errorKey] ?? messageError; } const notification = { title: titleError, message: messageError || 'Código inválido ou expirado. Tente novamente.', type: 'error', timeout: 8000, cssCustom: 'toast-change-email' }; _this5.loadingService.hide(null, 'confirm-email').then(() => { _this5.notificatorService.notify(notification); }); _this5.logService.logError('http', 'Erro ao verificar código de email', { email: _this5.dataAccount.email, refId: _this5.dataAccount.refId, error }); _this5.showResendButton = true; _this5.clearCountdown(); _this5.secondsRemaining = 0; reject(error); } }); }); })(); } validateForm() { const code = this.commonService.clearString(this.codeForm.controls.code.value); const validationResultError = this.codeForm.get('code')?.errors; if (validationResultError || !code) { const title = this.translateConfigService.translate('PG_IDENTIFY_VALIDATOR_CODE_TOAST_INVALID_CODE_TITLE') || 'Código inválido'; const message = this.translateConfigService.translate('PG_IDENTIFY_VALIDATOR_CODE_TOAST_INVALID_CODE_MESSAGE') || 'Por favor, insira um código válido'; const notification = { title, message, type: 'error', cssCustom: 'toast-change-email', timeout: 8000 }; this.notificatorService.notify(notification); return false; } return true; } startCountdown() { this.clearCountdown(); this.secondsRemaining = this.countdownSeconds; this.countdownActive = true; this.showResendButton = false; this.countdownIntervalId = setInterval(() => { this.secondsRemaining = Math.max(0, this.secondsRemaining - 1); if (this.secondsRemaining === 0) { this.clearCountdown(); this.showResendButton = true; } }, 1000); } clearCountdown() { if (this.countdownIntervalId) { clearInterval(this.countdownIntervalId); this.countdownIntervalId = null; } this.countdownActive = false; } canResend() { return !this.countdownActive && this.secondsRemaining === 0; } resendCode() { if (!this.canResend()) { return; } const updating = this.translateConfigService.translate('MD_CHANGE_EMAIL.TOAST_UPDATING_TITLE') || 'Atualizando...'; const titleSuccess = this.translateConfigService.translate('MD_CHANGE_EMAIL.TOAST_CODE_SENT_TITLE_SUCCESS') || 'Código enviado'; const messageSuccess = this.translateConfigService.translate('MD_CHANGE_EMAIL.TOAST_NEW_CODE_SENT_MESSAGE_SUCCESS') || 'Um novo código foi enviado para seu e-mail.'; let titleError = this.translateConfigService.translate('MD_CHANGE_EMAIL.TOAST_CODE_SENT_TITLE_ERROR') || 'Ops!'; let messageError = this.translateConfigService.translate('MD_CHANGE_EMAIL.TOAST_CODE_SENT_MESSAGE_ERROR') || 'Erro ao enviar código de verificação'; this.loadingService.show(updating, 'confirm-email'); this.apiService.updateEmail(this.dataAccount.email, this.dataAccount.refId).subscribe({ next: () => { this.loadingService.hide(null, 'confirm-email'); const notification = { title: titleSuccess, message: messageSuccess, type: 'success', timeout: 8000, cssCustom: 'toast-change-email' }; this.notificatorService.notify(notification); this.startCountdown(); }, error: error => { console.table(error); this.loadingService.hide(null, 'confirm-email'); const notification = { title: titleError, message: messageError, type: 'error', timeout: 8000, cssCustom: 'toast-change-email' }; this.notificatorService.notify(notification); this.logService.logError('http', 'Erro ao reenviar código de email', { email: this.dataAccount.email, refId: this.dataAccount.refId, error }); } }); } } ModalConfirmCodeChangeEmailComponent.ɵfac = function ModalConfirmCodeChangeEmailComponent_Factory(t) { return new (t || ModalConfirmCodeChangeEmailComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](_ionic_angular__WEBPACK_IMPORTED_MODULE_7__.ModalController), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_6__.FormBuilder), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_3__.TranslateConfigService), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_3__.LoadingService), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_3__.NotificatorService), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_3__.ApiService), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_3__.LogService), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_3__.CommonService), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](_shared_services_email_update_service__WEBPACK_IMPORTED_MODULE_4__.EmailUpdateService)); }; ModalConfirmCodeChangeEmailComponent.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdefineComponent"]({ type: ModalConfirmCodeChangeEmailComponent, selectors: [["app-modal-confirm-code-change-email"]], inputs: { dataAccount: "dataAccount" }, decls: 27, vars: 20, consts: [[1, "content_modal_changel_email_confirm"], ["tabindex", "1", 1, "content_modal_changel_email_confirm__title"], [1, "content_modal_changel_email_confirm__subtitle"], [1, "content_modal_changel_email_confirm__input"], [3, "formGroup"], ["tabindex", "2", "maxlength", "7", "type", "text", "inputmode", "text", "formControlName", "code", 3, "placeholder", "autofocus"], [1, "content_modal_changel_email_confirm__actions"], ["class", "content_modal_changel_email_confirm__actions_countdown", "aria-live", "polite", "role", "status", 4, "ngIf"], ["class", "content_modal_changel_email_confirm__actions_resend", 4, "ngIf"], [1, "content_modal_changel_email_confirm__btns"], [1, "content_modal_changel_email_confirm__btns_cancel"], ["mode", "ios", "fill", "clear", "tabindex", "4", 3, "click"], [1, "content_modal_changel_email_confirm__btns_update"], ["mode", "ios", "color", "primary", "shape", "round", "tabindex", "5", 3, "disabled", "click"], ["aria-live", "polite", "role", "status", 1, "content_modal_changel_email_confirm__actions_countdown"], [1, "content_modal_changel_email_confirm__actions_resend"], ["mode", "ios", "fill", "clear", "tabindex", "3", 1, "resend-link", 3, "disabled", "click"]], template: function ModalConfirmCodeChangeEmailComponent_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 0)(1, "div", 1)(2, "ion-text")(3, "h6"); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](4); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipe"](5, "translate"); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()()(); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](6, "div", 2)(7, "ion-text")(8, "p"); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](9); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipe"](10, "translate"); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()()(); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](11, "div", 3)(12, "form", 4); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](13, "input", 5); _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); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](16, ModalConfirmCodeChangeEmailComponent_ion_text_16_Template, 4, 6, "ion-text", 7); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](17, ModalConfirmCodeChangeEmailComponent_div_17_Template, 4, 5, "div", 8); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()(); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](18, "div", 9)(19, "div", 10)(20, "ion-button", 11); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function ModalConfirmCodeChangeEmailComponent_Template_ion_button_click_20_listener() { return ctx.closeModal(); }); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](21); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipe"](22, "translate"); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()(); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](23, "div", 12)(24, "ion-button", 13); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function ModalConfirmCodeChangeEmailComponent_Template_ion_button_click_24_listener() { return ctx.verifyCode(); }); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](25); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipe"](26, "translate"); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()()()(); } if (rf & 2) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](4); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipeBind1"](5, 10, "MD_CONFIRM_CHANGE_EMAIL.TITLE")); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](5); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipeBind1"](10, 12, "MD_CONFIRM_CHANGE_EMAIL.SUBTITLE")); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("formGroup", ctx.codeForm); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpropertyInterpolate"]("placeholder", _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipeBind1"](14, 14, "MD_CONFIRM_CHANGE_EMAIL.PLACEHOLDER")); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("autofocus", true); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx.secondsRemaining > 0 && !ctx.showResendButton); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx.showResendButton); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](4); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipeBind1"](22, 16, "MD_CONFIRM_CHANGE_EMAIL.BTN_CANCEL"), " "); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("disabled", !ctx.codeForm.valid); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipeBind1"](26, 18, "MD_CONFIRM_CHANGE_EMAIL.BTN_VERIFY"), " "); } }, dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_5__.NgIf, _ionic_angular__WEBPACK_IMPORTED_MODULE_7__.IonButton, _ionic_angular__WEBPACK_IMPORTED_MODULE_7__.IonText, _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__.MaxLengthValidator, _angular_forms__WEBPACK_IMPORTED_MODULE_6__.FormGroupDirective, _angular_forms__WEBPACK_IMPORTED_MODULE_6__.FormControlName, _ngx_translate_core__WEBPACK_IMPORTED_MODULE_8__.TranslatePipe], styles: ["@charset \"UTF-8\";\n.content_modal_changel_email_confirm[_ngcontent-%COMP%] {\n background: #fff;\n display: flex;\n flex-direction: column;\n justify-content: space-around;\n height: 100%;\n position: relative;\n align-items: center;\n padding: 1em;\n}\n.content_modal_changel_email_confirm__title[_ngcontent-%COMP%] ion-text[_ngcontent-%COMP%] h6[_ngcontent-%COMP%] {\n color: #383a3e;\n text-align: center;\n font-size: 18px;\n font-family: Nunito;\n font-style: normal;\n font-weight: 600;\n position: relative;\n top: 0.5em;\n line-height: 120%;\n}\n.content_modal_changel_email_confirm__subtitle[_ngcontent-%COMP%] ion-text[_ngcontent-%COMP%] p[_ngcontent-%COMP%] {\n color: #383a3e;\n text-align: center;\n font-size: 16px;\n font-family: Nunito;\n font-style: normal;\n font-weight: 400;\n line-height: 120%;\n}\n.content_modal_changel_email_confirm__input[_ngcontent-%COMP%] {\n text-align: center;\n width: 100%;\n \n \n}\n.content_modal_changel_email_confirm__input[_ngcontent-%COMP%] input[_ngcontent-%COMP%] {\n text-transform: uppercase;\n text-align: center;\n width: 100%;\n height: 48px;\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_changel_email_confirm__input[_ngcontent-%COMP%] input[type=text][_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_changel_email_confirm__input[_ngcontent-%COMP%] input[_ngcontent-%COMP%]::placeholder {\n color: var(--ion-color-medium);\n opacity: 0.5;\n text-transform: lowercase;\n}\n.content_modal_changel_email_confirm__input[_ngcontent-%COMP%] input[type=text][_ngcontent-%COMP%]:focus::-webkit-input-placeholder {\n color: var(--ion-color-dark);\n opacity: 0.5;\n text-transform: lowercase;\n}\n.content_modal_changel_email_confirm__actions[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n justify-content: center;\n margin: 0.5rem 0 2em;\n}\n.content_modal_changel_email_confirm__actions_countdown[_ngcontent-%COMP%] ion-text[_ngcontent-%COMP%], .content_modal_changel_email_confirm__actions_countdown[_ngcontent-%COMP%] p[_ngcontent-%COMP%] {\n color: #6CB52D;\n font-size: 0.9rem;\n line-height: 120%;\n margin: 0 0 0.5em;\n font-weight: 500;\n}\n.content_modal_changel_email_confirm__actions_resend[_ngcontent-%COMP%] .resend-link[_ngcontent-%COMP%] {\n --color: var(--ion-color-primary);\n font-size: 16px;\n font-size: 16px;\n text-decoration: none;\n font-weight: 800;\n margin: 0;\n padding: 0;\n max-height: 23px;\n}\n.content_modal_changel_email_confirm__actions_resend[_ngcontent-%COMP%] .resend-link[disabled][_ngcontent-%COMP%] {\n --color: var(--ion-color-medium);\n opacity: 0.6;\n}\n.content_modal_changel_email_confirm__btns[_ngcontent-%COMP%] {\n width: 100%;\n display: flex;\n justify-content: space-between;\n}\n.content_modal_changel_email_confirm__btns[_ngcontent-%COMP%] ion-button[_ngcontent-%COMP%] {\n width: 118px;\n height: 40px;\n border-radius: 32px;\n}\n.content_modal_changel_email_confirm__btns_cancel[_ngcontent-%COMP%] ion-button[_ngcontent-%COMP%] {\n background: rgba(153, 153, 153, 0.13);\n --color: #757575;\n text-align: center;\n font-size: 16px;\n font-family: Nunito;\n font-style: normal;\n font-weight: 400;\n line-height: normal;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIm1vZGFsLWNvbmZpcm0tY29kZS1jaGFuZ2UtZW1haWwuY29tcG9uZW50LnNjc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsZ0JBQWdCO0FBQWhCO0VBQ0UsZ0JBQUE7RUFDQSxhQUFBO0VBQ0Esc0JBQUE7RUFDQSw2QkFBQTtFQUNBLFlBQUE7RUFDQSxrQkFBQTtFQUNBLG1CQUFBO0VBQ0EsWUFBQTtBQUVGO0FBRU07RUFDRSxjQUFBO0VBQ0Esa0JBQUE7RUFDQSxlQUFBO0VBQ0EsbUJBQUE7RUFDQSxrQkFBQTtFQUNBLGdCQUFBO0VBQ0Esa0JBQUE7RUFDQSxVQUFBO0VBQ0EsaUJBQUE7QUFBUjtBQU9NO0VBQ0UsY0FBQTtFQUNBLGtCQUFBO0VBQ0E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l0eTogMC42O1xuICAgICAgfVxuICAgIH1cbiAgfVxuXG4gICZfX2J0bnMge1xuICAgIHdpZHRoOiAxMDAlO1xuICAgIGRpc3BsYXk6IGZsZXg7XG4gICAganVzdGlmeS1jb250ZW50OiBzcGFjZS1iZXR3ZWVuO1xuXG4gICAgaW9uLWJ1dHRvbiB7XG4gICAgICB3aWR0aDogMTE4cHg7XG4gICAgICBoZWlnaHQ6IDQwcHg7XG4gICAgICBib3JkZXItcmFkaXVzOiAzMnB4O1xuICAgIH1cblxuICAgICZfY2FuY2VsIHtcbiAgICAgIGlvbi1idXR0b24ge1xuICAgICAgICBiYWNrZ3JvdW5kOiByZ2JhKDE1MywgMTUzLCAxNTMsIDAuMTMpO1xuICAgICAgICAtLWNvbG9yOiAjNzU3NTc1O1xuICAgICAgICB0ZXh0LWFsaWduOiBjZW50ZXI7XG4gICAgICAgIGZvbnQtc2l6ZTogMTZweDtcbiAgICAgICAgZm9udC1mYW1pbHk6IE51bml0bztcbiAgICAgICAgZm9udC1zdHlsZTogbm9ybWFsO1xuICAgICAgICBmb250LXdlaWdodDogNDAwO1xuICAgICAgICBsaW5lLWhlaWdodDogbm9ybWFsO1xuICAgICAgfVxuICAgIH1cblxuICB9XG59XG4iXX0= */"] }); /***/ }), /***/ 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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIm1vZGFsLWNvbmZpcm0tZGVsZXRlLWFjY291bnQuY29tcG9uZW50LnNjc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsZ0JBQWdCO0FBQWhCO0VBQ0UsZ0JBQUE7RUFDQSxhQUFBO0VBQ0Esc0JBQUE7RUFDQSw2QkFBQTtFQUNBLFlBQUE7RUFDQSxrQkFBQTtFQUNBLG1CQUFBO0VBQ0EsWUFBQTtBQUVGO0FBREU7RUFDRSxnQkFBQTtFQUNBLGNBQUE7RUFDQSxpQkFBQTtFQUNBLGtCQUFBO0VBQ0Esa0JBQUE7RUFDQSxjQUFBO0VBQ0EsbUJBQUE7QUFHSjtBQURFO0VBQ0UsWUFBQTtFQUNBLFlBQUE7RUFDQSxrQkFBQTtFQUNBLGNBQUE7RUFDQSxhQUFBO0VBQ0EsbUJBQUE7RUFDQSxlQUFBO0VBQ0EsdUJBQUE7RUFXQSx3Q0FBQTtFQVlBLG9FQUFBO0FBbEJKO0FBSEk7RUFDRSxZQUFBO0VBQ0EsWUFBQTtFQUNBLGtCQUFBO0VBQ0EscUNBQUE7RUFDQSx5QkFBQTtFQUNBLG1CQUFBO0FBS047QUFESTtFQUNFLHFDQUFBO0VBQ0EscUNBQUE7RUFDQSxpQkFBQTtFQUNBLGFBQUEsRUFBQSxnREFBQTtBQUdOO0FBREk7RUFDRSw4QkFBQTtFQUNBLFlBQUE7QUFHTjtBQUNJO0VBQ0UsNE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ZXJyb3IsXG4gICZfX3JlbW92ZV9zdWNjZXNzIHtcbiAgICBib3JkZXI6IDFweCBzb2xpZCAjZTNlMmUyO1xuICB9XG4gIEBrZXlmcmFtZXMgc2hha2Uge1xuICAgIDAlIHtcbiAgICAgIG1hcmdpbi1sZWZ0OiAwcmVtO1xuICAgIH1cbiAgICAyNSUge1xuICAgICAgbWFyZ2luLWxlZnQ6IDAuNXJlbTtcbiAgICB9XG4gICAgNzUlIHtcbiAgICAgIG1hcmdpbi1sZWZ0OiAtMC41cmVtO1xuICAgIH1cbiAgICAxMDAlIHtcbiAgICAgIG1hcmdpbi1sZWZ0OiAwcmVtO1xuICAgIH1cbiAgfVxufVxuIl19 */"] }); /***/ }), /***/ 61050: /*!****************************************************************************************************!*\ !*** ./src/app/account/modal-confirm-pin-facial-email/modal-confirm-pin-facial-email.component.ts ***! \****************************************************************************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "ModalConfirmPinFacialEmailComponent": () => (/* binding */ ModalConfirmPinFacialEmailComponent) /* 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 _capacitor_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @capacitor/core */ 26549); /* harmony import */ var _aparajita_capacitor_biometric_auth__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aparajita/capacitor-biometric-auth */ 54362); /* harmony import */ var _shared_services__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @shared/services */ 17253); /* harmony import */ var _ionic_angular__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @ionic/angular */ 93819); /* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @angular/forms */ 2508); /* 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 _ngx_translate_core__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @ngx-translate/core */ 38699); const _c0 = ["pinDeleteAccount"]; function ModalConfirmPinFacialEmailComponent_div_12_ion_icon_2_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](0, "ion-icon", 17); } } function ModalConfirmPinFacialEmailComponent_div_12_ion_icon_3_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](0, "ion-icon", 18); } } function ModalConfirmPinFacialEmailComponent_div_12_ion_label_4_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, "PG_IDENTITY_CHECK_TEXT_FINGER_BIOMETRIC"), " "); } } function ModalConfirmPinFacialEmailComponent_div_12_ion_label_5_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, "PG_IDENTITY_CHECK_TEXT_FINGER_FACIAL"), " "); } } function ModalConfirmPinFacialEmailComponent_div_12_Template(rf, ctx) { if (rf & 1) { const _r7 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"](); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 12)(1, "ion-button", 13); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function ModalConfirmPinFacialEmailComponent_div_12_Template_ion_button_click_1_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r7); const ctx_r6 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵresetView"](ctx_r6.showFingerPrint($event)); }); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](2, ModalConfirmPinFacialEmailComponent_div_12_ion_icon_2_Template, 1, 0, "ion-icon", 14); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](3, ModalConfirmPinFacialEmailComponent_div_12_ion_icon_3_Template, 1, 0, "ion-icon", 15); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](4, ModalConfirmPinFacialEmailComponent_div_12_ion_label_4_Template, 3, 3, "ion-label", 16); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](5, ModalConfirmPinFacialEmailComponent_div_12_ion_label_5_Template, 3, 3, "ion-label", 16); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()(); } if (rf & 2) { const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r1.typeFinger === "finger" || ctx_r1.typeFinger === "biometric"); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r1.typeFinger === "face"); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r1.typeFinger !== "face"); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r1.typeFinger === "face"); } } class ModalConfirmPinFacialEmailComponent { constructor(logService, modalCtrl, lockService, formBuilder, keyboardService, platform, loaderService, authService, notificatorService, translateConfigService, domCtrl, renderer, overlayService) { var _this = this; this.logService = logService; this.modalCtrl = modalCtrl; this.lockService = lockService; this.formBuilder = formBuilder; this.keyboardService = keyboardService; this.platform = platform; this.loaderService = loaderService; this.authService = authService; this.notificatorService = notificatorService; this.translateConfigService = translateConfigService; this.domCtrl = domCtrl; this.renderer = renderer; this.overlayService = overlayService; this.isFingerAvaliable = false; this.subscription$ = []; this.didItComeFromSideMenu = false; this.actionType = 'verify_email'; this.actionData = null; this.onSuccessCallback = null; this.setFocus = () => { if (this.platform.is('android')) { setTimeout(() => { this.focusInput(); this.keyboardService.show(); }, 1000); } else { this.focusInput(); } }; this.focusInput = () => { this.pinInputElementConfirmEmail.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')); let onHideSubscription = null; const nativeElement = this.pinInputElementConfirmEmail.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.loaderService.hide(); _this.addClassSuccess(); yield _this.executeAction(); } else { _this.loaderService.hide(); _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.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.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(); } }; } 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: [''] }); const modalData = yield _this2.modalCtrl.getTop(); if (modalData && modalData.componentProps) { _this2.actionType = modalData.componentProps.actionType || 'verify_email'; _this2.actionData = modalData.componentProps.actionData || null; _this2.onSuccessCallback = modalData.componentProps.onSuccessCallback || null; } if (_capacitor_core__WEBPACK_IMPORTED_MODULE_2__.Capacitor.getPlatform() !== 'web') { // const checkBiometryDevice = await NativeBiometric.isAvailable(); const checkBiometryDevice = yield _aparajita_capacitor_biometric_auth__WEBPACK_IMPORTED_MODULE_3__.BiometricAuth.checkBiometry(); _this2.isFingerAvaliable = checkBiometryDevice.isAvailable; if (checkBiometryDevice.isAvailable) { _this2.isAvaliableFinger(checkBiometryDevice.biometryType); } } else { _this2.isFingerAvaliable = false; } })(); } 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_3__.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_3__.AndroidBiometryStrength.weak, androidConfirmationRequired: true }; try { // const authenticate = await NativeBiometric.verifyIdentity(options); const authenticate = yield _aparajita_capacitor_biometric_auth__WEBPACK_IMPORTED_MODULE_3__.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')); const response = yield _this5.authService.validatePassword(null, isValidate); if (response) { _this5.loaderService.hide(); yield _this5.executeAction(); } else { _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) { _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); } finally { _this5.loaderService.hide(); } })(); } isAvaliableFinger(value) { switch (value) { case _aparajita_capacitor_biometric_auth__WEBPACK_IMPORTED_MODULE_3__.BiometryType.faceAuthentication || _aparajita_capacitor_biometric_auth__WEBPACK_IMPORTED_MODULE_3__.BiometryType.faceId: this.typeFinger = 'face'; break; case _aparajita_capacitor_biometric_auth__WEBPACK_IMPORTED_MODULE_3__.BiometryType.fingerprintAuthentication: this.typeFinger = 'biometric'; break; case _aparajita_capacitor_biometric_auth__WEBPACK_IMPORTED_MODULE_3__.BiometryType.touchId: this.typeFinger = 'finger'; break; case _aparajita_capacitor_biometric_auth__WEBPACK_IMPORTED_MODULE_3__.BiometryType.irisAuthentication: this.typeFinger = 'iris'; break; } } addClassSuccess() { this.domCtrl.write(() => { this.renderer.removeClass(this.pinInputElementConfirmEmail.nativeElement, 'content_modal__shake-horizontal_error'); this.renderer.addClass(this.pinInputElementConfirmEmail.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); } }); } executeAction() { 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* () { try { switch (_this6.actionType) { case 'verify_email': if (_this6.onSuccessCallback) { yield _this6.onSuccessCallback(); } _this6.modalCtrl.dismiss({ success: true }, 'confirm'); break; default: console.warn('Tipo de ação não reconhecido:', _this6.actionType); _this6.close(); break; } } catch (error) { _this6.logService.logError('modal-pin-facial', 'Erro ao executar ação', error); _this6.close(); } })(); } toast(_x, _x2) { 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* (header, message, color = 'danger') { const toast = yield _this7.overlayService.toast({ header, message, mode: 'ios', duration: 5000, color }).finally(() => {}); }).apply(this, arguments); } } ModalConfirmPinFacialEmailComponent.ɵfac = function ModalConfirmPinFacialEmailComponent_Factory(t) { return new (t || ModalConfirmPinFacialEmailComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_4__.LogService), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_ionic_angular__WEBPACK_IMPORTED_MODULE_6__.ModalController), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_4__.LockService), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_7__.UntypedFormBuilder), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_4__.KeyboardService), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_ionic_angular__WEBPACK_IMPORTED_MODULE_6__.Platform), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_4__.LoaderService), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_4__.AuthService), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_4__.NotificatorService), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_4__.TranslateConfigService), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_ionic_angular__WEBPACK_IMPORTED_MODULE_6__.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_4__.OverlayService)); }; ModalConfirmPinFacialEmailComponent.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineComponent"]({ type: ModalConfirmPinFacialEmailComponent, selectors: [["app-modal-confirm-pin-facial-email"]], viewQuery: function ModalConfirmPinFacialEmailComponent_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.pinInputElementConfirmEmail = _t.first); } }, decls: 17, vars: 12, 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", ""], ["class", "content_modal__fingeer_btn", 4, "ngIf"], [1, "content_modal__btn_close", 3, "click"], ["mode", "ios", "color", "primary", "shape", "round", "tabindex", "4"], [1, "content_modal__fingeer_btn"], ["mode", "ios", "fill", "clear", "tabindex", "3", 3, "click"], ["style", "padding-right: 0.2em;", "aria-hidden", "true", "name", "finger-print", 4, "ngIf"], ["src", "../../assets/icon/faceid.svg", 4, "ngIf"], [4, "ngIf"], ["aria-hidden", "true", "name", "finger-print", 2, "padding-right", "0.2em"], ["src", "../../assets/icon/faceid.svg"]], template: function ModalConfirmPinFacialEmailComponent_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 ModalConfirmPinFacialEmailComponent_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 ModalConfirmPinFacialEmailComponent_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 ModalConfirmPinFacialEmailComponent_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__["ɵɵtemplate"](12, ModalConfirmPinFacialEmailComponent_div_12_Template, 6, 4, "div", 9); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](13, "div", 10); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function ModalConfirmPinFacialEmailComponent_Template_div_click_13_listener() { return ctx.close(); }); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](14, "ion-button", 11); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](15); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipe"](16, "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, 6, "MD_CONFIRM_PIN.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, 8, "MD_CONFIRM_PIN.PLACEHOLDER")); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx.isFingerAvaliable); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipeBind1"](16, 10, "BTN_CLOSE"), " "); } }, dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_5__.NgIf, _ionic_angular__WEBPACK_IMPORTED_MODULE_6__.IonButton, _ionic_angular__WEBPACK_IMPORTED_MODULE_6__.IonIcon, _ionic_angular__WEBPACK_IMPORTED_MODULE_6__.IonLabel, _ionic_angular__WEBPACK_IMPORTED_MODULE_6__.IonText, _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, _ngx_translate_core__WEBPACK_IMPORTED_MODULE_8__.TranslatePipe], styles: [".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 color: #383a3e;\n text-align: center;\n font-size: 18px;\n font-family: Nunito;\n font-style: normal;\n font-weight: 400;\n line-height: 120%;\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.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}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: /*!***********************************!*\ !*** ./src/app/home/home.page.ts ***! \***********************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "HomePage": () => (/* binding */ HomePage) /* 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_common_http__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/common/http */ 59584); /* harmony import */ var _angular_common_http__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_angular_common_http__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var _shared_components__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @shared/components */ 7667); /* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! rxjs */ 24383); /* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(/*! rxjs */ 64139); /* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! rxjs/operators */ 44661); /* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! rxjs/operators */ 83910); /* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! rxjs/operators */ 59095); /* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! rxjs/operators */ 88759); /* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(/*! rxjs/operators */ 47418); /* 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 _shared_components_modais__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @shared/components/modais */ 90340); /* harmony import */ var _shared_interfaces_connection_state__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @shared/interfaces/connection.state */ 72877); /* harmony import */ var capacitor_native_settings__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! capacitor-native-settings */ 82599); /* harmony import */ var _constants_config_general__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../constants/config.general */ 8782); /* harmony import */ var _logistic_events_components__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../logistic-events/components */ 34645); /* harmony import */ var custom_plugins_capacitor_notify_persistent_src__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! custom-plugins/capacitor-notify-persistent/src */ 87494); /* harmony import */ var _capawesome_capacitor_android_edge_to_edge_support__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @capawesome/capacitor-android-edge-to-edge-support */ 93914); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @angular/core */ 45449); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(_angular_core__WEBPACK_IMPORTED_MODULE_12__); /* harmony import */ var _ionic_angular__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(/*! @ionic/angular */ 93819); /* harmony import */ var _shared_services__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @shared/services */ 17253); /* harmony import */ var _shared_services_firebase_fcm_service__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! @shared/services/firebase/fcm.service */ 88044); /* harmony import */ var _shared_services_sessionaddflow_service__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! @shared/services/sessionaddflow.service */ 80698); /* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! @angular/router */ 61380); /* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_16___default = /*#__PURE__*/__webpack_require__.n(_angular_router__WEBPACK_IMPORTED_MODULE_16__); /* harmony import */ var _shared_services_focus_service__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! @shared/services/focus.service */ 37763); /* harmony import */ var _shared_services_check_invert_color_service__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! @shared/services/check-invert-color.service */ 15492); /* harmony import */ var _shared_services_native_settings_service__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! @shared/services/native-settings.service */ 90003); /* harmony import */ var _shared_services_help_diagnostic_dev_service__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! @shared/services/help.diagnostic.dev.service */ 86697); /* harmony import */ var _shared_services_state_service__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! @shared/services/state.service */ 21284); /* harmony import */ var _angular_platform_browser__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(/*! @angular/platform-browser */ 34497); /* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! @angular/common */ 90944); /* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_22___default = /*#__PURE__*/__webpack_require__.n(_angular_common__WEBPACK_IMPORTED_MODULE_22__); /* harmony import */ var _shared_components_header_header_component__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ../shared/components/header/header.component */ 36290); /* harmony import */ var _shared_components_offline_offline_component__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ../shared/components/offline/offline.component */ 81838); /* harmony import */ var _techiediaries_ngx_qrcode__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(/*! @techiediaries/ngx-qrcode */ 33244); /* harmony import */ var _shared_components_countdown_countdown_component__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ../shared/components/countdown/countdown.component */ 69977); /* harmony import */ var _ngx_translate_core__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(/*! @ngx-translate/core */ 38699); /* eslint-disable @typescript-eslint/dot-notation */ /* eslint-disable eqeqeq */ /* eslint-disable @typescript-eslint/no-unused-expressions */ /* eslint-disable max-len */ /* eslint-disable @typescript-eslint/naming-convention */ function HomePage_ng_container_2_ng_container_3_div_1_Template(rf, ctx) { if (rf & 1) { const _r12 = _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵgetCurrentView"](); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](0, "div", 11); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵlistener"]("click", function HomePage_ng_container_2_ng_container_3_div_1_Template_div_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵrestoreView"](_r12); const ctx_r11 = _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵnextContext"](3); return _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵresetView"](ctx_r11.openSettingTime()); }); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](1, "div", 12)(2, "div", 13); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelement"](3, "ion-icon", 14); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelement"](4, "div", 15); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵpipe"](5, "translate"); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"]()(); } if (rf & 2) { const ctx_r10 = _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵnextContext"](3); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵproperty"]("className", "home-snackbar__automatic-time__message " + (ctx_r10.isSmallScreen || ctx_r10.isMediumSmallScreen ? "home-snackbar__automatic-time__message--small-screen" : "")); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵadvance"](3); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵproperty"]("innerHTML", _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵpipeBind1"](5, 2, "PG_HOME_BTN_NOT_AUTOMATIC_TIME"), _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵsanitizeHtml"]); } } function HomePage_ng_container_2_ng_container_3_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementContainerStart"](0); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtemplate"](1, HomePage_ng_container_2_ng_container_3_div_1_Template, 6, 4, "div", 10); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementContainerEnd"](); } if (rf & 2) { const ctx_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵnextContext"](2); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵproperty"]("ngIf", !ctx_r8.startError); } } function HomePage_ng_container_2_ng_container_4_Template(rf, ctx) { if (rf & 1) { const _r14 = _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵgetCurrentView"](); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementContainerStart"](0); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](1, "div", 16)(2, "app-offline", 17); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵlistener"]("onReload", function HomePage_ng_container_2_ng_container_4_Template_app_offline_onReload_2_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵrestoreView"](_r14); const ctx_r13 = _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵnextContext"](2); return _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵresetView"](ctx_r13.onRestart()); }); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"]()(); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementContainerEnd"](); } if (rf & 2) { _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵadvance"](2); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵproperty"]("smallMessage", true)("isHome", true)("showOffline", true); } } function HomePage_ng_container_2_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementContainerStart"](0); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](1, "div", 8)(2, "div", 9); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtemplate"](3, HomePage_ng_container_2_ng_container_3_Template, 2, 1, "ng-container", 2); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtemplate"](4, HomePage_ng_container_2_ng_container_4_Template, 3, 3, "ng-container", 2); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"]()(); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementContainerEnd"](); } if (rf & 2) { const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵnextContext"](); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵadvance"](3); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵproperty"]("ngIf", !ctx_r0.isAutomaticTimeEnabled); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵproperty"]("ngIf", ctx_r0.isOffline); } } const _c0 = function (a0) { return { "height": a0 }; }; const _c1 = function (a1) { return { "border": "none", "min-height": a1 }; }; function HomePage_ng_container_4_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementContainerStart"](0); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](1, "div", 18); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelement"](2, "iframe", 19); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementContainerEnd"](); } if (rf & 2) { const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵnextContext"](); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵproperty"]("ngStyle", _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵpureFunction1"](3, _c0, ctx_r1.hasBannerLogLoad ? ctx_r1.iframeHeight : "0px")); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵproperty"]("ngStyle", _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵpureFunction1"](5, _c1, ctx_r1.iframeHeight))("src", ctx_r1.safeUrlIFrame, _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵsanitizeResourceUrl"]); } } function HomePage_div_5_ng_container_2_div_2_div_4_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](0, "div", 29); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelement"](1, "ion-skeleton-text", 30); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"](); } } function HomePage_div_5_ng_container_2_div_2_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](0, "div", 24)(1, "div", 25); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelement"](2, "ion-skeleton-text", 26)(3, "ion-skeleton-text", 27); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtemplate"](4, HomePage_div_5_ng_container_2_div_2_div_4_Template, 2, 0, "div", 28); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"](); } if (rf & 2) { const ctx_r18 = _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵnextContext"](3); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵadvance"](4); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵproperty"]("ngIf", !ctx_r18.isSmallScreen); } } function HomePage_div_5_ng_container_2_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementContainerStart"](0); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](1, "div", 12); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtemplate"](2, HomePage_div_5_ng_container_2_div_2_Template, 5, 1, "div", 23); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementContainerEnd"](); } if (rf & 2) { const ctx_r15 = _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵnextContext"](2); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵproperty"]("className", "hint " + (ctx_r15.isSmallScreen && !ctx_r15.thereAreProfiles && !ctx_r15.isUltraSmallScreen ? "small_screen" : "")); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵproperty"]("ngIf", !ctx_r15.startError && !ctx_r15.isOffline && !ctx_r15.finishrequestStartVOProfiles && !ctx_r15.isExpiredSabugo); } } const _c2 = function (a0) { return { "small-screen": a0 }; }; function HomePage_div_5_div_3_ng_container_1_ion_button_2_Template(rf, ctx) { if (rf & 1) { const _r27 = _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵgetCurrentView"](); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](0, "ion-button", 38); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵlistener"]("click", function HomePage_div_5_div_3_ng_container_1_ion_button_2_Template_ion_button_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵrestoreView"](_r27); const ctx_r26 = _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵnextContext"](4); return _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵresetView"](ctx_r26.onGoToCreateEvent()); }); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtext"](1); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵpipe"](2, "translate"); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"](); } if (rf & 2) { const ctx_r23 = _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵnextContext"](4); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵpureFunction1"](4, _c2, ctx_r23.isSmallScreen || ctx_r23.isMediumSmallScreen || ctx_r23.isUltraSmallScreen && ctx_r23.hasBannerLogLoad)); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵpipeBind1"](2, 2, "PG_HOME_BTN_INVITE"), " "); } } function HomePage_div_5_div_3_ng_container_1_ion_button_3_Template(rf, ctx) { if (rf & 1) { const _r29 = _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵgetCurrentView"](); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](0, "ion-button", 39); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵlistener"]("click", function HomePage_div_5_div_3_ng_container_1_ion_button_3_Template_ion_button_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵrestoreView"](_r29); const ctx_r28 = _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵnextContext"](4); return _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵresetView"](ctx_r28.onGoToCreateEvent()); }); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtext"](1); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵpipe"](2, "translate"); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"](); } if (rf & 2) { const ctx_r24 = _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵnextContext"](4); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵpureFunction1"](5, _c2, ctx_r24.isSmallScreen || ctx_r24.isMediumSmallScreen || ctx_r24.isUltraSmallScreen && ctx_r24.hasBannerLogLoad))("disabled", true); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtextInterpolate1"]("", _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵpipeBind1"](2, 3, "PG_HOME_BTN_LOADING"), " "); } } function HomePage_div_5_div_3_ng_container_1_div_4_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](0, "div", 40)(1, "span"); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtext"](2); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵpipe"](3, "translate"); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"]()(); } if (rf & 2) { _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵadvance"](2); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵpipeBind1"](3, 1, "PG_HOME_TEXT_WAIT_INTERNET"), " "); } } function HomePage_div_5_div_3_ng_container_1_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementContainerStart"](0); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](1, "div", 34); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtemplate"](2, HomePage_div_5_div_3_ng_container_1_ion_button_2_Template, 3, 6, "ion-button", 35); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtemplate"](3, HomePage_div_5_div_3_ng_container_1_ion_button_3_Template, 3, 7, "ion-button", 36); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtemplate"](4, HomePage_div_5_div_3_ng_container_1_div_4_Template, 4, 3, "div", 37); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementContainerEnd"](); } if (rf & 2) { const ctx_r20 = _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵnextContext"](3); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵadvance"](2); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵproperty"]("ngIf", !ctx_r20.inviteButtonDisable); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵproperty"]("ngIf", ctx_r20.inviteButtonDisable); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵproperty"]("ngIf", ctx_r20.inviteButtonDisable); } } function HomePage_div_5_div_3_ng_template_2_div_0_Template(rf, ctx) { if (rf & 1) { const _r32 = _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵgetCurrentView"](); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](0, "div", 42)(1, "span"); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtext"](2); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵpipe"](3, "translate"); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](4, "button", 43); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵlistener"]("click", function HomePage_div_5_div_3_ng_template_2_div_0_Template_button_click_4_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵrestoreView"](_r32); const ctx_r31 = _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵnextContext"](4); return _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵresetView"](ctx_r31.onGoToInsertCompanyInviteCode()); }); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtext"](5); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵpipe"](6, "translate"); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"]()(); } if (rf & 2) { _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵadvance"](2); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵpipeBind1"](3, 2, "PG_HOME_TEXT_IS_NOT_ASSOCIATED_COMPANY"), " "); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵadvance"](3); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵpipeBind1"](6, 4, "PG_HOME_BTN_ASSOCIATE_COMPANY"), " "); } } function HomePage_div_5_div_3_ng_template_2_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtemplate"](0, HomePage_div_5_div_3_ng_template_2_div_0_Template, 7, 6, "div", 41); } if (rf & 2) { const ctx_r22 = _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵnextContext"](3); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵproperty"]("ngIf", !ctx_r22.isOffline && ctx_r22.finishrequestStartVOProfiles); } } const _c3 = function (a0, a1) { return { "toast_show_fcm": a0, "toast_show_fcm_small": a1 }; }; function HomePage_div_5_div_3_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](0, "div", 31); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtemplate"](1, HomePage_div_5_div_3_ng_container_1_Template, 5, 3, "ng-container", 32); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtemplate"](2, HomePage_div_5_div_3_ng_template_2_Template, 1, 1, "ng-template", null, 33, _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtemplateRefExtractor"]); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"](); } if (rf & 2) { const _r21 = _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵreference"](3); const ctx_r16 = _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵnextContext"](2); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵproperty"]("className", "hint " + (ctx_r16.isSmallScreen || ctx_r16.isMediumSmallScreen && !ctx_r16.thereAreProfiles && !ctx_r16.isUltraSmallScreen ? "small_screen" : ""))("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵpureFunction2"](4, _c3, ctx_r16.toastShowFcm && !ctx_r16.isSmallScreen && !ctx_r16.hasBannerLogLoad, ctx_r16.toastShowFcm && (ctx_r16.isSmallScreen || ctx_r16.isMediumSmallScreen || ctx_r16.isUltraSmallScreen) && !ctx_r16.hasBannerLogLoad)); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵproperty"]("ngIf", ctx_r16.finishrequestStartVOProfiles && ctx_r16.thereAreProfiles)("ngIfElse", _r21); } } function HomePage_div_5_div_4_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](0, "div", 44); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelement"](1, "app-countdown", 45); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"](); } if (rf & 2) { const ctx_r17 = _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵnextContext"](2); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵproperty"]("qrCodeValidityCountDown", ctx_r17.qrCodeValidityCountDown)("duration", ctx_r17.qrCodeValidityIntervalInSeconds)("paused", ctx_r17.pausedCountdown)("hasBanner", ctx_r17.hasBannerLogLoad)("displayCircularCountdown", ctx_r17.displayCircularCountdown); } } function HomePage_div_5_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](0, "div", 20)(1, "div", 21); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtemplate"](2, HomePage_div_5_ng_container_2_Template, 3, 2, "ng-container", 2); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtemplate"](3, HomePage_div_5_div_3_Template, 4, 7, "div", 22); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtemplate"](4, HomePage_div_5_div_4_Template, 2, 5, "div", 5); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"](); } if (rf & 2) { const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵnextContext"](); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵadvance"](2); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵproperty"]("ngIf", !ctx_r2.hasBannerLogLoad && !(ctx_r2.httpErrorResonse == null ? null : ctx_r2.httpErrorResonse.error) && !ctx_r2.finishrequestStartVOProfiles); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵproperty"]("ngIf", !ctx_r2.isOffline && !(ctx_r2.httpErrorResonse == null ? null : ctx_r2.httpErrorResonse.error) && ctx_r2.finishrequestStartVOProfiles); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵproperty"]("ngIf", ctx_r2.qrCode && !ctx_r2.isExpiredSabugo); } } function HomePage_ng_container_6_div_1_ng_container_1_div_2_div_4_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](0, "div", 29); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelement"](1, "ion-skeleton-text", 30); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"](); } } function HomePage_ng_container_6_div_1_ng_container_1_div_2_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](0, "div", 24)(1, "div", 25); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelement"](2, "ion-skeleton-text", 26)(3, "ion-skeleton-text", 27); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtemplate"](4, HomePage_ng_container_6_div_1_ng_container_1_div_2_div_4_Template, 2, 0, "div", 28); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"](); } if (rf & 2) { const ctx_r36 = _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵnextContext"](4); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵadvance"](4); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵproperty"]("ngIf", !ctx_r36.isSmallScreen); } } function HomePage_ng_container_6_div_1_ng_container_1_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementContainerStart"](0); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](1, "div", 12); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtemplate"](2, HomePage_ng_container_6_div_1_ng_container_1_div_2_Template, 5, 1, "div", 23); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementContainerEnd"](); } if (rf & 2) { const ctx_r34 = _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵnextContext"](3); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵproperty"]("className", "hint " + (ctx_r34.isSmallScreen && !ctx_r34.thereAreProfiles && !ctx_r34.isUltraSmallScreen ? "small_screen" : "")); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵproperty"]("ngIf", !ctx_r34.startError && !ctx_r34.isOffline && !ctx_r34.finishrequestStartVOProfiles && !ctx_r34.isExpiredSabugo); } } function HomePage_ng_container_6_div_1_div_2_ng_container_1_ion_button_2_Template(rf, ctx) { if (rf & 1) { const _r45 = _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵgetCurrentView"](); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](0, "ion-button", 49); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵlistener"]("click", function HomePage_ng_container_6_div_1_div_2_ng_container_1_ion_button_2_Template_ion_button_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵrestoreView"](_r45); const ctx_r44 = _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵnextContext"](5); return _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵresetView"](ctx_r44.onGoToCreateEvent()); }); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtext"](1); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵpipe"](2, "translate"); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"](); } if (rf & 2) { _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵpipeBind1"](2, 1, "PG_HOME_BTN_INVITE"), " "); } } function HomePage_ng_container_6_div_1_div_2_ng_container_1_ion_button_3_Template(rf, ctx) { if (rf & 1) { const _r47 = _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵgetCurrentView"](); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](0, "ion-button", 39); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵlistener"]("click", function HomePage_ng_container_6_div_1_div_2_ng_container_1_ion_button_3_Template_ion_button_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵrestoreView"](_r47); const ctx_r46 = _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵnextContext"](5); return _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵresetView"](ctx_r46.onGoToCreateEvent()); }); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtext"](1); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵpipe"](2, "translate"); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"](); } if (rf & 2) { const ctx_r42 = _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵnextContext"](5); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵpureFunction1"](5, _c2, ctx_r42.isSmallScreen || ctx_r42.isMediumSmallScreen || ctx_r42.isUltraSmallScreen && ctx_r42.hasBannerLogLoad))("disabled", true); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtextInterpolate1"]("", _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵpipeBind1"](2, 3, "PG_HOME_BTN_LOADING"), " "); } } function HomePage_ng_container_6_div_1_div_2_ng_container_1_div_4_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](0, "div", 40)(1, "span"); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtext"](2); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵpipe"](3, "translate"); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"]()(); } if (rf & 2) { _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵadvance"](2); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵpipeBind1"](3, 1, "PG_HOME_TEXT_WAIT_INTERNET"), " "); } } function HomePage_ng_container_6_div_1_div_2_ng_container_1_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementContainerStart"](0); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](1, "div", 34); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtemplate"](2, HomePage_ng_container_6_div_1_div_2_ng_container_1_ion_button_2_Template, 3, 3, "ion-button", 48); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtemplate"](3, HomePage_ng_container_6_div_1_div_2_ng_container_1_ion_button_3_Template, 3, 7, "ion-button", 36); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtemplate"](4, HomePage_ng_container_6_div_1_div_2_ng_container_1_div_4_Template, 4, 3, "div", 37); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementContainerEnd"](); } if (rf & 2) { const ctx_r38 = _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵnextContext"](4); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵadvance"](2); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵproperty"]("ngIf", !ctx_r38.inviteButtonDisable); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵproperty"]("ngIf", ctx_r38.inviteButtonDisable); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵproperty"]("ngIf", ctx_r38.inviteButtonDisable); } } function HomePage_ng_container_6_div_1_div_2_ng_template_2_div_0_Template(rf, ctx) { if (rf & 1) { const _r50 = _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵgetCurrentView"](); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](0, "div", 42)(1, "span"); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtext"](2); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵpipe"](3, "translate"); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](4, "button", 43); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵlistener"]("click", function HomePage_ng_container_6_div_1_div_2_ng_template_2_div_0_Template_button_click_4_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵrestoreView"](_r50); const ctx_r49 = _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵnextContext"](5); return _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵresetView"](ctx_r49.onGoToInsertCompanyInviteCode()); }); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtext"](5); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵpipe"](6, "translate"); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"]()(); } if (rf & 2) { _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵadvance"](2); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵpipeBind1"](3, 2, "PG_HOME_TEXT_IS_NOT_ASSOCIATED_COMPANY"), " "); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵadvance"](3); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵpipeBind1"](6, 4, "PG_HOME_BTN_ASSOCIATE_COMPANY"), " "); } } function HomePage_ng_container_6_div_1_div_2_ng_template_2_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtemplate"](0, HomePage_ng_container_6_div_1_div_2_ng_template_2_div_0_Template, 7, 6, "div", 41); } if (rf & 2) { const ctx_r40 = _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵnextContext"](4); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵproperty"]("ngIf", !ctx_r40.isOffline && ctx_r40.finishrequestStartVOProfiles); } } function HomePage_ng_container_6_div_1_div_2_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](0, "div", 31); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtemplate"](1, HomePage_ng_container_6_div_1_div_2_ng_container_1_Template, 5, 3, "ng-container", 32); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtemplate"](2, HomePage_ng_container_6_div_1_div_2_ng_template_2_Template, 1, 1, "ng-template", null, 33, _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtemplateRefExtractor"]); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"](); } if (rf & 2) { const _r39 = _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵreference"](3); const ctx_r35 = _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵnextContext"](3); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵproperty"]("className", "hint " + (ctx_r35.isSmallScreen || ctx_r35.isMediumSmallScreen && !ctx_r35.thereAreProfiles && !ctx_r35.isUltraSmallScreen ? "small_screen" : ""))("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵpureFunction2"](4, _c3, ctx_r35.toastShowFcm && !ctx_r35.isSmallScreen && !ctx_r35.hasBannerLogLoad, ctx_r35.toastShowFcm && (ctx_r35.isSmallScreen || ctx_r35.isMediumSmallScreen || ctx_r35.isUltraSmallScreen) && !ctx_r35.hasBannerLogLoad)); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵproperty"]("ngIf", ctx_r35.finishrequestStartVOProfiles && ctx_r35.thereAreProfiles)("ngIfElse", _r39); } } const _c4 = function (a0, a1) { return { "hasBanner": a0, "noBanner": a1 }; }; function HomePage_ng_container_6_div_1_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](0, "div", 47); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtemplate"](1, HomePage_ng_container_6_div_1_ng_container_1_Template, 3, 2, "ng-container", 2); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtemplate"](2, HomePage_ng_container_6_div_1_div_2_Template, 4, 7, "div", 22); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"](); } if (rf & 2) { const ctx_r33 = _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵnextContext"](2); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵpureFunction2"](3, _c4, ctx_r33.hasBannerLogLoad, !ctx_r33.hasBannerLogLoad)); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵproperty"]("ngIf", !ctx_r33.hasBannerLogLoad && !(ctx_r33.httpErrorResonse == null ? null : ctx_r33.httpErrorResonse.error) && !ctx_r33.finishrequestStartVOProfiles); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵproperty"]("ngIf", !ctx_r33.isOffline && !(ctx_r33.httpErrorResonse == null ? null : ctx_r33.httpErrorResonse.error) && ctx_r33.finishrequestStartVOProfiles); } } function HomePage_ng_container_6_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementContainerStart"](0); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtemplate"](1, HomePage_ng_container_6_div_1_Template, 3, 6, "div", 46); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementContainerEnd"](); } if (rf & 2) { const ctx_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵnextContext"](); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵproperty"]("ngIf", !ctx_r3.isOffline); } } function HomePage_ng_container_7_ng_container_1_div_22_Template(rf, ctx) { if (rf & 1) { const _r55 = _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵgetCurrentView"](); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](0, "div", 62)(1, "button", 63); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵlistener"]("click", function HomePage_ng_container_7_ng_container_1_div_22_Template_button_click_1_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵrestoreView"](_r55); const ctx_r54 = _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵnextContext"](3); return _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵresetView"](ctx_r54.onRestart()); }); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtext"](2); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵpipe"](3, "translate"); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"]()(); } if (rf & 2) { _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵadvance"](2); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵpipeBind1"](3, 1, "PG_HOME_BTN_RETRY_AGAIN"), " "); } } function HomePage_ng_container_7_ng_container_1_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementContainerStart"](0); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](1, "div", 50)(2, "div", 51)(3, "div", 52)(4, "div", 53)(5, "strong"); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtext"](6); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵpipe"](7, "translate"); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"]()(); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](8, "div", 54)(9, "ion-text", 55)(10, "p", 56); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelement"](11, "span", 57); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵpipe"](12, "translate"); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](13, "p", 58); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelement"](14, "span", 57); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵpipe"](15, "translate"); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](16, "p", 59); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelement"](17, "span", 57); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵpipe"](18, "translate"); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](19, "p", 60); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelement"](20, "span", 57); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵpipe"](21, "translate"); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"]()()()(); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtemplate"](22, HomePage_ng_container_7_ng_container_1_div_22_Template, 4, 3, "div", 61); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"]()(); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementContainerEnd"](); } if (rf & 2) { const ctx_r51 = _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵnextContext"](2); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵadvance"](6); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵpipeBind1"](7, 6, "PG_HOME_TEXT_TOKEN_INVALID_TITLE"), " "); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵadvance"](5); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵproperty"]("innerHTML", _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵpipeBind1"](12, 8, "PG_HOME_TEXT_TOKEN_INVALID_TEXT_P1"), _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵsanitizeHtml"]); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵadvance"](3); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵproperty"]("innerHTML", _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵpipeBind1"](15, 10, "PG_HOME_TEXT_TOKEN_INVALID_TEXT_P2"), _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵsanitizeHtml"]); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵadvance"](3); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵproperty"]("innerHTML", _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵpipeBind1"](18, 12, "PG_HOME_TEXT_TOKEN_INVALID_TEXT_P3"), _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵsanitizeHtml"]); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵadvance"](3); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵproperty"]("innerHTML", _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵpipeBind1"](21, 14, "PG_HOME_TEXT_TOKEN_INVALID_TEXT_P4"), _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵsanitizeHtml"]); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵadvance"](2); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵproperty"]("ngIf", !ctx_r51.isOffline); } } function HomePage_ng_container_7_ng_container_2_ng_container_4_span_5_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](0, "span"); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtext"](1); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"](); } if (rf & 2) { const ctx_r60 = _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵnextContext"](4); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtextInterpolate1"](" (cod. ", ctx_r60.httpErrorResonse == null ? null : ctx_r60.httpErrorResonse.status, ") "); } } function HomePage_ng_container_7_ng_container_2_ng_container_4_Template(rf, ctx) { if (rf & 1) { const _r62 = _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵgetCurrentView"](); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementContainerStart"](0); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](1, "ion-text", 64)(2, "p"); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtext"](3); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵpipe"](4, "translate"); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtemplate"](5, HomePage_ng_container_7_ng_container_2_ng_container_4_span_5_Template, 2, 1, "span", 2); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](6, "p"); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtext"](7); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵpipe"](8, "translate"); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](9, "span")(10, "a", 65); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵlistener"]("click", function HomePage_ng_container_7_ng_container_2_ng_container_4_Template_a_click_10_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵrestoreView"](_r62); const ctx_r61 = _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵnextContext"](3); return _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵresetView"](ctx_r61.showToastModalErroCodeZero.openModalCodeZero()); }); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtext"](11); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵpipe"](12, "translate"); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtext"](13); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵpipe"](14, "translate"); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"]()(); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementContainerEnd"](); } if (rf & 2) { const ctx_r56 = _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵnextContext"](3); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵadvance"](3); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵpipeBind1"](4, 5, "TOAST_MESSAGE_CODE_ZERO_TITLE"), " "); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵadvance"](2); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵproperty"]("ngIf", (ctx_r56.httpErrorResonse == null ? null : ctx_r56.httpErrorResonse.status) === 0); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵadvance"](2); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵpipeBind1"](8, 7, "TOAST_MESSAGE_CODE_ZERO")); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵadvance"](4); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵpipeBind1"](12, 9, "TOAST_MESSAGE_CODE_ZERO_ACTION"), " "); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵadvance"](2); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵpipeBind1"](14, 11, "TOAST_MESSAGE_CODE_ZERO_MESSAGE"), ". "); } } function HomePage_ng_container_7_ng_container_2_ng_container_5_span_3_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](0, "span"); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtext"](1); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"](); } if (rf & 2) { const ctx_r63 = _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵnextContext"](4); let tmp_0_0; _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtextInterpolate1"](" (cod. ", (ctx_r63.httpErrorResonse == null ? null : ctx_r63.httpErrorResonse.status) || ((tmp_0_0 = ctx_r63.httpErrorResonse) == null ? null : tmp_0_0.codeError), ") "); } } function HomePage_ng_container_7_ng_container_2_ng_container_5_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementContainerStart"](0); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtext"](1); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵpipe"](2, "translate"); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtemplate"](3, HomePage_ng_container_7_ng_container_2_ng_container_5_span_3_Template, 2, 1, "span", 2); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementContainerEnd"](); } if (rf & 2) { const ctx_r57 = _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵnextContext"](3); let tmp_1_0; _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵpipeBind1"](2, 2, "TOAST_SERVICE_TEMPORARILY_UNAVAILABLE_MESSAGE"), " "); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵadvance"](2); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵproperty"]("ngIf", (ctx_r57.httpErrorResonse == null ? null : ctx_r57.httpErrorResonse.status) || ((tmp_1_0 = ctx_r57.httpErrorResonse) == null ? null : tmp_1_0.codeError)); } } function HomePage_ng_container_7_ng_container_2_div_6_Template(rf, ctx) { if (rf & 1) { const _r65 = _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵgetCurrentView"](); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](0, "div", 62)(1, "button", 63); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵlistener"]("click", function HomePage_ng_container_7_ng_container_2_div_6_Template_button_click_1_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵrestoreView"](_r65); const ctx_r64 = _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵnextContext"](3); return _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵresetView"](ctx_r64.onRestart(false)); }); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtext"](2); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵpipe"](3, "translate"); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"]()(); } if (rf & 2) { _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵadvance"](2); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵpipeBind1"](3, 1, "PG_HOME_BTN_RETRY_AGAIN"), " "); } } function HomePage_ng_container_7_ng_container_2_div_7_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](0, "div", 62)(1, "p"); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtext"](2); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵpipe"](3, "translate"); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"]()(); } if (rf & 2) { _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵadvance"](2); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵpipeBind1"](3, 1, "COMPONENT_OFFLINE_TEXT_NO_INTERNT_CONNECTION_SIMPLE")); } } function HomePage_ng_container_7_ng_container_2_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementContainerStart"](0); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](1, "div", 50)(2, "div", 51)(3, "div", 52); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtemplate"](4, HomePage_ng_container_7_ng_container_2_ng_container_4_Template, 15, 13, "ng-container", 2); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtemplate"](5, HomePage_ng_container_7_ng_container_2_ng_container_5_Template, 4, 4, "ng-container", 2); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtemplate"](6, HomePage_ng_container_7_ng_container_2_div_6_Template, 4, 3, "div", 61); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtemplate"](7, HomePage_ng_container_7_ng_container_2_div_7_Template, 4, 3, "div", 61); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"]()(); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementContainerEnd"](); } if (rf & 2) { const ctx_r52 = _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵnextContext"](2); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵadvance"](4); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵproperty"]("ngIf", ctx_r52.httpErrorResonse && (ctx_r52.httpErrorResonse == null ? null : ctx_r52.httpErrorResonse.status) === 0); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵproperty"]("ngIf", ctx_r52.httpErrorResonse && (ctx_r52.httpErrorResonse == null ? null : ctx_r52.httpErrorResonse.status) !== 0); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵproperty"]("ngIf", !ctx_r52.isOffline); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵproperty"]("ngIf", ctx_r52.isOffline); } } function HomePage_ng_container_7_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementContainerStart"](0); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtemplate"](1, HomePage_ng_container_7_ng_container_1_Template, 23, 16, "ng-container", 2); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtemplate"](2, HomePage_ng_container_7_ng_container_2_Template, 8, 4, "ng-container", 2); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementContainerEnd"](); } if (rf & 2) { const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵnextContext"](); let tmp_1_0; _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵproperty"]("ngIf", ctx_r4.isExpiredSabugo && ctx_r4.isOffline); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵproperty"]("ngIf", !ctx_r4.isOffline && ctx_r4.startError && ((ctx_r4.httpErrorResonse == null ? null : ctx_r4.httpErrorResonse.error) || ((tmp_1_0 = ctx_r4.httpErrorResonse) == null ? null : tmp_1_0.codeError))); } } function HomePage_div_8_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](0, "div", 44); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelement"](1, "app-countdown", 45); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"](); } if (rf & 2) { const ctx_r5 = _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵnextContext"](); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵproperty"]("qrCodeValidityCountDown", ctx_r5.qrCodeValidityCountDown)("duration", ctx_r5.qrCodeValidityIntervalInSeconds)("paused", ctx_r5.pausedCountdown)("hasBanner", ctx_r5.hasBannerLogLoad)("displayCircularCountdown", ctx_r5.displayCircularCountdown); } } function HomePage_div_10_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](0, "div", 66); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelement"](1, "ngx-qrcode", 67); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"](); } if (rf & 2) { const ctx_r6 = _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵnextContext"](); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵproperty"]("margin", 1)("value", ctx_r6.qrCode); } } function HomePage_ng_container_11_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementContainerStart"](0); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](1, "div", 66)(2, "div", 68); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelement"](3, "ion-skeleton-text", 69); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"]()(); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementContainerEnd"](); } } const _c5 = function (a0, a1) { return { filter: a0, height: a1 }; }; const _c6 = function (a0) { return { "small-qr": a0 }; }; class HomePage { constructor(menuController, insomniaService, storageService, screenBrightnessService, authService, apiService, qrCodeService, ngZoneService, loadingService, navController, notificatorService, deviceInfo, navigationService, platform, resumeToPinService, resumeToGenerateQRCode, profileManagerService, modalController, logService, toastController, geolocationService, modalPermissionsService, badgeStoreService, networkService, loaderService, timeSettingsService, resumeCreateEventInterruptedService, translateConfigService, eventInstantService, createEventService, fcmService, sessionAddFlowService, activatedRoute, focusService, // private dateTimeService: DatetimeService KA_APP-565 checkInverColorService, managerTokenUaamobile, managerSabugo, nativeSettings, helpDevDiagnosticService, showToastModalErroCodeZero, router, stateService, domSanitizer) { var _this = this; this.menuController = menuController; this.insomniaService = insomniaService; this.storageService = storageService; this.screenBrightnessService = screenBrightnessService; this.authService = authService; this.apiService = apiService; this.qrCodeService = qrCodeService; this.ngZoneService = ngZoneService; this.loadingService = loadingService; this.navController = navController; this.notificatorService = notificatorService; this.deviceInfo = deviceInfo; this.navigationService = navigationService; this.platform = platform; this.resumeToPinService = resumeToPinService; this.resumeToGenerateQRCode = resumeToGenerateQRCode; this.profileManagerService = profileManagerService; this.modalController = modalController; this.logService = logService; this.toastController = toastController; this.geolocationService = geolocationService; this.modalPermissionsService = modalPermissionsService; this.badgeStoreService = badgeStoreService; this.networkService = networkService; this.loaderService = loaderService; this.timeSettingsService = timeSettingsService; this.resumeCreateEventInterruptedService = resumeCreateEventInterruptedService; this.translateConfigService = translateConfigService; this.eventInstantService = eventInstantService; this.createEventService = createEventService; this.fcmService = fcmService; this.sessionAddFlowService = sessionAddFlowService; this.activatedRoute = activatedRoute; this.focusService = focusService; this.checkInverColorService = checkInverColorService; this.managerTokenUaamobile = managerTokenUaamobile; this.managerSabugo = managerSabugo; this.nativeSettings = nativeSettings; this.helpDevDiagnosticService = helpDevDiagnosticService; this.showToastModalErroCodeZero = showToastModalErroCodeZero; this.router = router; this.stateService = stateService; this.domSanitizer = domSanitizer; this.displayCircularCountdown = true; this.isOffline = false; this.startError = null; this.isExpiredSabugo = false; this.finishrequestStartVOProfiles = false; this.httpErrorResonse = null; this.voProfiles = []; this.lgProfiles = []; this.inviteButtonDisable = false; this.isAutomaticTimeEnabled = true; this.hasBannerLogLoad = false; this.urlIFrame = ''; this.safeUrlIFrame = this.domSanitizer.bypassSecurityTrustResourceUrl(''); this.subscriptions = []; this.portais = _constants_config_general__WEBPACK_IMPORTED_MODULE_8__.configOptions.portalParams.portais; this.creatinigEvent = false; this.timeoutNotification = 5000; this.stopTimeout = true; this.durationLong = 15000; this.CONFIG_KEY = 'notificationConfigApplied'; this.onGoToCreateEvent = /*#__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.sessionAddFlowService.clearSessionId(); _this.creatinigEvent = true; const eventInprogress = _this.resumeCreateEvent(); if (eventInprogress) { return; } _this.loadingService.show(_this.translateConfigService.translate('LOADING_CHECKING_DATA'), 'on-create-event'); _this.inviteButtonDisable = true; const token = yield _this.authService.getToken(); if (!token) { _this.handleErroTokenOnCrateEventAction(); return; } else { const sub = _this.apiService.getUserProfiles(_this.portais, token).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_26__.finalize)(() => { _this.loadingService.hide(0, 'on-create-event'); })).subscribe(_this.processGetVOAndLGUserProfilesSuccessResponse, err => { _this.inviteButtonDisable = false; return _this.processGetVOAndLGUserProfilesErrorResponse(err); }); _this.subscriptions.push(sub); } }); this.onGoToInsertCompanyInviteCode = () => { const navigationExtras = {}; this.navigationService.forward(['/insert-company-invite-code'], navigationExtras); }; this.startQRCodeGenerateResumeService = () => { this.resumeToGenerateQRCode.start(this.viewGuardCallback); }; this.startViewGuardService = () => { this.resumeToPinService.start(); }; this.viewGuardCallback = () => { this.platform.ready().then(() => { this.setBrightnessToMax(); this.dontFallAsleep(); this.restartEncryptionService(); }).catch(() => {}).finally(() => { const profilesList = this.profileManagerService.getProfileList(); !this.isOffline && !profilesList?.length ? this.getVoAndLgProfiles() : null; // se tiver offline nem vai.. }); }; this.verifyIfSignUpProcedureRemainsCompanyInvitationData = /*#__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.storageService.get('company-invitation-data').then(companyInvitationData => { if (companyInvitationData && companyInvitationData?.locator && companyInvitationData?.invitationKey) { _this.goToAcceptCompanyInvitePage(companyInvitationData.locator, companyInvitationData.invitationKey); _this.storageService.remove('company-invitation-data'); } }); }); this.goToAcceptCompanyInvitePage = (locator, invitationKey) => { const navigationExtras = { queryParams: { l: locator, k: invitationKey, origin: 'SIGNUP' } }; this.navigationService.forward(['/deep'], navigationExtras); }; this.processGetVOUserProfilesSuccessResponse = response => { this.voProfiles = response && response?.length > 0 ? response.filter(profile => profile?.portal === 'VO') : []; this.lgProfiles = response && response?.length > 0 ? response.filter(profile => profile?.portal === 'LG') : []; localStorage.setItem('firstRequestGetProfile', JSON.stringify(true)); this.profileManagerService.setProfileList(this.voProfiles); this.profileManagerService.setProfileLogisticList(this.lgProfiles); }; this.unregisterDevice = () => { this.logService.logEvent('unregisterDevice::function'); this.authService.unregister().then(() => this.navController.navigateRoot(['start'])).then(() => { this.hideLoadingAll('Home::unregisterDevice'); this.logService.logEvent('unregisterDevice::goneToStartPage'); const title = this.translateConfigService.translate('PG_HOME_TOAST_DEVICE_UNREGISTERED_TITLE'); const message = this.translateConfigService.translate('PG_HOME_TOAST_DEVICE_UNREGISTERED_MESSAGE'); this.showNotification(title, message, 'error', 10000); }).catch(error => { this.logService.logError('unregisterDevice::error', '', error); }).finally(() => { this.stopAllIntervals('Home::unregisterDevice'); localStorage.removeItem('store_current_config'); localStorage.removeItem('firstRequestGetProfile'); localStorage.removeItem('basePlatformUrl'); this.fcmService.deleteTokenFcm(); _capacitor_app__WEBPACK_IMPORTED_MODULE_3__.App.removeAllListeners().then(() => {}); }); }; this.onStartError = /*#__PURE__*/function () { var _ref3 = (0,_Volumes_case_workspace_work_APPS_KA_APP_WORK_NOW_KA_PASS_V2_2_6_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* (response) { _this.loadingService.hide(0, 'start'); _this.finishrequestStartVOProfiles = true; const isExpiredSabugo = yield _this.authService.isExpiredSabugo(); const tokenIsExpired = yield _this.authService.isExpiredToken(); const timeOutRequest = response?.codeError ?? null; const errorSendLogTron = { ...response, isExpiredSabugo, tokenIsExpired, timeOutRequest }; if (isExpiredSabugo) { _this.isExpiredSabugo = isExpiredSabugo; _this.setStartError(true); _this.stopCountdown(); _this.clearQRCodeData(); _this.stopAllIntervals('Home::onStartError'); _this.authService.clearSabugo(); } if (response && response?.status && response?.status === 401) { _this.logService.logEvent('onStartError::status_code_401', response.message ? response.message : '', errorSendLogTron); if (response?.error?.message === 'error.account.not-found' || response?.error?.message === 'error.account.not-activated') { _this.logService.logEvent('onStartError::unregisterDevice()', response.error.message ? response.error.message : '', errorSendLogTron); _this.unregisterDevice(); } } if (!_this.isOffline) { if (response instanceof _angular_common_http__WEBPACK_IMPORTED_MODULE_1__.HttpErrorResponse || errorSendLogTron) { _this.stopCountdown(); _this.clearQRCodeData(); _this.ngZoneService.run(() => { _this.httpErrorResonse = response ?? errorSendLogTron; _this.isExpiredSabugo = isExpiredSabugo; _this.setStartError(true); }); } } _this.logService.logError('onStartError::error', '', errorSendLogTron); _this.stopServices(); }); return function (_x) { return _ref3.apply(this, arguments); }; }(); this.setStartError = error => { this.ngZoneService.run(() => { this.startError = error; }); }; this.getSabugoError = /*#__PURE__*/function () { var _ref4 = (0,_Volumes_case_workspace_work_APPS_KA_APP_WORK_NOW_KA_PASS_V2_2_6_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* (response) { _this.logService.logError('getSabugoError::error', '', response); if (response && response instanceof _angular_common_http__WEBPACK_IMPORTED_MODULE_1__.HttpErrorResponse && response?.status === 401) { _this.managerTokenUaamobile.getNewToken().then(() => _this.start()); } else { _this.onStartError(response); } }); return function (_x2) { return _ref4.apply(this, arguments); }; }(); this.setBrightnessToMax = () => { this.screenBrightnessService.setMax(); }; this.restoreBrightness = () => { this.screenBrightnessService.restoreBrightness(); }; this.dontFallAsleep = () => { this.insomniaService.keepAwake().then(this.dontFallAsleepSuccessResponse).catch(this.dontFallAsleepErrorResponse); }; this.allowItToRest = () => { this.insomniaService.allowSleepAgain().then(this.allowItToRestSuccessResponse).catch(this.allowItToRestErrorResponse); }; this.allowItToRestSuccessResponse = () => {}; this.allowItToRestErrorResponse = () => {}; this.dontFallAsleepSuccessResponse = () => {}; this.dontFallAsleepErrorResponse = error => { this.logService.logError('insomnia::dontFallAsleepErrorResponse', '', error); }; this.restartEncryptionService = () => { this.restartCountdown(); this.startEncryptionService(); }; this.startEncryptionService = /*#__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.loadingService.hide(0, 'start'); try { const encrypt = yield _this.encrypt(); if (encrypt && encrypt?.success) { return _this.startCountdown(); } } catch (error) { _this.handleEncryptError(error); } }); this.stopCountdown = () => { this.pauseCountdown(); if (this.countdownSetIntervalId) { clearInterval(this.countdownSetIntervalId); this.countdownSetIntervalId = null; } }; this.handleEncryptError = response => { this.logService.logError('handleEncryptError', 'Erro encrypt QR', { response }); this.stopCountdown(); this.clearQRCodeData(); }; this.restartCountdown = () => { this.stopCountdown(); this.qrCodeValidityCountDown = this.qrCodeValidityIntervalInSeconds; }; this.stopSabugoWatcher = () => { if (this.sabugoWatcherIntervalId) { clearInterval(this.sabugoWatcherIntervalId); this.sabugoWatcherIntervalId = null; } }; this.clearQRCodeData = () => { this.ngZoneService.run(() => { this.qrCode = null; }); }; this.unPauseCountdown = () => { this.ngZoneService.run(() => { this.pausedCountdown = false; }); }; this.pauseCountdown = () => { this.ngZoneService.run(() => { this.pausedCountdown = true; }); }; this.processGetVOAndLGUserProfilesSuccessResponse = /*#__PURE__*/function () { var _ref6 = (0,_Volumes_case_workspace_work_APPS_KA_APP_WORK_NOW_KA_PASS_V2_2_6_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* (response) { _this.profileManagerService.setProfileList(response); _this.updateRequestProfileAtTimestamp(); _this.loadingService.hide(0, 'on-create-event'); _this.voProfiles = response && response?.length > 0 ? response.filter(profile => profile?.portal === 'VO') : []; _this.lgProfiles = response && response?.length > 0 ? response.filter(profile => profile?.portal === 'LG') : []; _this.profileManagerService.setProfileList(_this.voProfiles); _this.profileManagerService.setProfileLogisticList(_this.lgProfiles); const isCreationInterrupted = _this.resumeCreateEventInterruptedService.getResumeCreationInterrupted(); if (isCreationInterrupted?.logistic?.eventType || isCreationInterrupted?.vo) { _this.inviteButtonDisable = false; return; } else { _this.OpenModaltoselectGoodProfiles(); } }); return function (_x3) { return _ref6.apply(this, arguments); }; }(); this.selectProfileModalVOOnProfileSelectCreateEventCallback = /*#__PURE__*/function () { var _ref7 = (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* (profile) { _this.inviteButtonDisable = true; _this.setProfileCurrentCorrect(profile); _this.profileManagerService.setProfile(profile); const isExpeditionProfile = _this.profileManagerService.isExpeditionProfile(profile); if (isExpeditionProfile) { const availableTypes = ['ENTRY', 'CLONE_EXIT', 'EXIT', 'CLONE_ENTRY']; if (_this.profileManagerService.isCollaboratorProfile(profile) || _this.profileManagerService.isLimited2Profile(profile)) { availableTypes.push('CONVENTIONAL'); } const modal = yield _this.modalController.create({ component: _logistic_events_components__WEBPACK_IMPORTED_MODULE_9__.SelectLogisticEventTypeModalComponent, componentProps: { availableTypes }, backdropDismiss: false }); modal.onDidDismiss().then(response => { _this.inviteButtonDisable = false; if (response.data) { if (response.data.type !== 'CONVENTIONAL') { _this.openPermissionModal(profile, response); } if (response.data.type === 'CONVENTIONAL') { _this.resumeCreateEventInterruptedService.setProfileVoCreationInterrupte(profile); _this.showModalSelectEventInstantOrDefault().then(responseCloseModal => { if (responseCloseModal['close'] && !responseCloseModal['typeEvent']) { return; } if (responseCloseModal && responseCloseModal['typeEvent'] === 'instant') { _this.eventInstantService.createEventVO().then(_ => _).catch().finally(() => { _this.sessionAddFlowService.clearSessionId(); _this.inviteButtonDisable = false; }); return; } else { const navigationExtras = { state: { event: null, action: 'create' } }; _this.navigationService.forward(['/create-event-event-name-step'], navigationExtras); } }); _this.inviteButtonDisable = false; _this.creatinigEvent = false; } } }); yield modal.present(); } else { _this.profileManagerService.setProfile(profile); _this.resumeCreateEventInterruptedService.setProfileVoCreationInterrupte(profile); _this.loadingService.hide(0, 'on-create-event'); _this.creatinigEvent = false; _this.showModalSelectEventInstantOrDefault().then(responseCloseModal => { _this.inviteButtonDisable = false; if (responseCloseModal['close'] && !responseCloseModal['typeEvent']) { return; } if (responseCloseModal && responseCloseModal['typeEvent'] === 'instant') { _this.eventInstantService.createEventVO().then(_ => _).catch().finally(() => { _this.sessionAddFlowService.clearSessionId(); _this.inviteButtonDisable = false; }); return; } else { const navigationExtras = { state: { event: null, action: 'create' } }; _this.navigationService.forward(['/create-event-event-name-step'], navigationExtras); _this.creatinigEvent = false; } }).catch(() => { _this.inviteButtonDisable = false; const navigationExtras = { state: { event: null, action: 'create' } }; _this.navigationService.forward(['/create-event-event-name-step'], navigationExtras); _this.creatinigEvent = false; }).finally(() => _this.inviteButtonDisable = false); } }); return function (_x4) { return _ref7.apply(this, arguments); }; }(); this.selectProfileModalVOOnBackCreateEventCallback = () => {}; this.handleVerifyCoordinatesSuccessResponse = /*#__PURE__*/function () { var _ref8 = (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* (verifyCoordinatesResponse, response) { _this.profileManagerService.getProfile(); if (verifyCoordinatesResponse.authorized) { if (response.data.type === 'NEW_ENTRY') { const navigationExtras = { state: { action: 'create', eventType: 'ENTRY', event: null } }; _this.navigationService.forward(['/logistic-events/create/event-name'], navigationExtras); } else if (response.data.type === 'CLONE_EXIT') { _this.navigationService.forward(['/logistic-events/entrance']); } else if (response.data.type === 'NEW_EXIT') { const navigationExtras = { state: { action: 'create', eventType: 'EXIT', event: null } }; _this.navigationService.forward(['/logistic-events/create/event-name'], navigationExtras); } else if (response.data.type === 'CLONE_ENTRY') { _this.navigationService.forward(['/logistic-events/exit']); } _this.inviteButtonDisable = false; _this.creatinigEvent = false; } else { _this.inviteButtonDisable = false; _this.creatinigEvent = false; const modal = yield _this.modalController.create({ component: _shared_components__WEBPACK_IMPORTED_MODULE_2__.CantCreateEventFromHereModalComponent }); modal.onDidDismiss().then(() => {}); yield modal.present(); } }); return function (_x5, _x6) { return _ref8.apply(this, arguments); }; }(); this.handleVerifyCoordinatesErrorResponse = error => { this.logService.logError('http::handleVerifyCoordinatesErrorResponse', '', error); const title = this.translateConfigService.translate('PG_HOME_TOAST_ERROR_CHECKING_LOCATION_TITLE'); const message = this.translateConfigService.translate('PG_HOME_TOAST_MESSAGE_ERROR_CHECKING_LOCATION'); this.showNotification(title, message, 'error', this.timeoutNotification); }; this.updateRequestProfileAtTimestamp = () => this.storageService.set('requestProfileListMenu', Date.now()); // Inicializar safeUrlIFrame com valor seguro para evitar erro NG0904 // this.safeUrlIFrame = this.domSanitizer.bypassSecurityTrustResourceUrl('about:blank'); this.isAndroid = _capacitor_core__WEBPACK_IMPORTED_MODULE_4__.Capacitor.getPlatform() === 'android'; this.qrCodeValidityIntervalInSeconds = 40; this.qrCodeValidityCountDown = this.qrCodeValidityIntervalInSeconds; this.ngZoneService.run(() => { this.pausedCountdown = true; }); this.isSmallScreen = this.deviceInfo.isSmallScreen(); this.isUltraSmallScreen = this.deviceInfo.isUltraSmallScreen(); this.isMediumSmallScreen = this.deviceInfo.isMediumSmallScreen(); // ISSUE LOG - banner this.updateCountdownDisplayMode(); this.key = new Uint8Array([247, 52, 131, 225, 116, 25, 132, 135, 230, 221, 27, 98, 127, 174, 130, 2]); this.setStartError(null); this.onResumeActiveApp(); this.checkAutomaticTimeZone(); } get deviceHeight() { return window?.innerHeight ? `${window?.innerHeight}px` : '100vh'; } clearTempStorage() { this.storageService.remove('checkinDataApp'); localStorage.removeItem('checkinData'); this.storageService.remove('wallet_qrcodes'); } ionViewWillEnter() { 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* () { try { yield _this2.managerTokenUaamobile.initStartGetTokenUaaMobile(); } catch (error) { _this2.onStartError(error); return; } finally { _this2.start().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* () { yield _this2.authService.updateLastAccessAt(); _this2.startViewGuardService(); _this2.startQRCodeGenerateResumeService(); })).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* () { _this2.loaderService.hide(); _this2.platform.ready().then(() => { setTimeout( /*#__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* () { _this2.setBrightnessToMax(); _this2.dontFallAsleep(); if (_this2.platformIsResume) { _this2.start(); _this2.platformIsResume = false; } yield _this2.checkInvertedColor(); }), 500); }); })); } })(); } ionViewDidEnter() { 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* () { _this3.focusService.applyFocusQuerySelector('btnInviteHome', 2000); _this3.getDateParams(); })(); } ionViewWillLeave() { this.platformIsResume = false; this.loaderService.hide(); this.stopCountdown(); this.allowItToRest(); this.restoreBrightness(); // clearInterval(this.intervalCheckIsNeedToRenewSabugo); // It may happen that the user enters the view but this.hideLoadingAll('ionViewWillLeave'); this.subscriptions.forEach(s => s?.unsubscribe); this.toastController.getTop().then(toast => { if (toast) { toast.dismiss(); this.toastShowFcm = false; } }); } ngOnInit() { 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* () { _this4.menuController.enable(true); if (_capacitor_core__WEBPACK_IMPORTED_MODULE_4__.Capacitor.getPlatform() === 'android') { const color = '#6CB52D'; _capawesome_capacitor_android_edge_to_edge_support__WEBPACK_IMPORTED_MODULE_11__.EdgeToEdge.setBackgroundColor({ color }); } // ISSUE - LOG - Banner _this4.iframeHeight = _this4.deviceInfo.getIframeHeightStyle(); console.log('iframeHeight', _this4.iframeHeight); _this4.updateCountdownDisplayMode(); _this4.addResizeListener(); const GeneratingQRCode = _this4.translateConfigService.translate('PG_HOME_LOADING_GENERATINGQRCODE'); _this4.loaderService.show(GeneratingQRCode); const networkSubscription = _this4.stateService.getState().subscribe( /*#__PURE__*/function () { var _ref10 = (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* (status) { _this4.ngZoneService.run(() => { if (status.status === _shared_interfaces_connection_state__WEBPACK_IMPORTED_MODULE_6__.ConnectionStatus.Online) { _this4.loaderService.hide(); if (_this4.isOffline) { _this4.isOffline = false; _this4.onRestart(); _this4.loaderService.hide(); const sub = _this4.logService.sendLogs().pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_27__.take)(1)).subscribe(); _this4.subscriptions.push(sub); } } else if (status.status === _shared_interfaces_connection_state__WEBPACK_IMPORTED_MODULE_6__.ConnectionStatus.Offline) { _this4.loaderService.hide(); _this4.isOffline = true; } }); _this4.hasBannerLog(); }); return function (_x7) { return _ref10.apply(this, arguments); }; }()); _this4.subscriptions.push(networkSubscription); })(); } ngOnDestroy() { this.subscriptions.forEach(sub => sub.unsubscribe()); this.stopAllIntervals('Home::OnDestroy'); this.subscribeToPauseEventAndHandleActivityIOs(); // ISSUE - LOG - Banner this.removeResizeListener(); } stopAllIntervals(_pageAccess) { this.stopCountdown(); this.stopSabugoWatcher(); this.managerTokenUaamobile.stopTokenWatcher(); console.log('stopAllIntervals', _pageAccess); } // eslint-disable-next-line @typescript-eslint/member-ordering get thereAreProfiles() { return this.voProfiles.length > 0 || this.lgProfiles.length > 0; } openSettingTime() { !this.platform.is('cordova') ? console.warn('Por favor, rode no emulador.') : this.timeSettingsService.open().then(_ => _).catch(err => err); } onRestart() { 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* (loadingCheckNewConnection = true) { _this5.stopTimeout = false; const isAuthenticated = yield _this5.isAuthenticated(); if (!isAuthenticated) { _this5.stopServices(); return; } const textloadingUpdateData = _this5.translateConfigService.translate('PG_HOME_LOADING_UPDATING_DATA'); const textloadingnewConnection = _this5.translateConfigService.translate('PG_HOME_LOADING_CHECKING_NEW_CONNECTION'); _this5.loaderService.show(loadingCheckNewConnection ? textloadingnewConnection : textloadingUpdateData, 2000); let isExpiredSabugo = yield _this5.authService.isExpiredSabugo(); if (isExpiredSabugo) { _this5.managerTokenUaamobile.stopTokenWatcher(); _this5.stopSabugoWatcher(); _this5.pauseCountdown(); _this5.stopCountdown(); _this5.restartCountdown(); _this5.clearQRCodeData(); } _this5.loadingService.hide(0, 'onrestart'); _this5.hideLoadingAll('wait-newtork'); _this5.ngZoneService.run( /*#__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* () { try { const tokenUaamobile = yield _this5.managerTokenUaamobile.restartGetToken(); if (tokenUaamobile && !tokenUaamobile?.error) { yield _this5.managerSabugo.getSabugo(); isExpiredSabugo = yield _this5.authService.isExpiredSabugo(); } _this5.isExpiredSabugo = isExpiredSabugo; if (_this5.httpErrorResonse?.error || _this5.httpErrorResonse?.['codeError']) { _this5.start().then(() => { _this5.httpErrorResonse = null; _this5.isExpiredSabugo = isExpiredSabugo; _this5.setStartError(null); _this5.stopCountdown(); _this5.qrCodeValidityCountDown = 40; _this5.startCountdown(); _this5.hideLoadingAll('wait-newtork'); _this5.loadingService.hide(0, 'onrestart'); }).finally(() => { _this5.loadingService.hide(0, 'onrestart'); _this5.hideLoadingAll('wait-newtork'); _this5.loaderService.hide(); }); } } catch (error) { _this5.loadingService.hide(0, 'onrestart'); _this5.loaderService.hide(); _this5.setStartError(true); if (error instanceof _angular_common_http__WEBPACK_IMPORTED_MODULE_1__.HttpErrorResponse || error['codeError']) { _this5.ngZoneService.run(() => { _this5.httpErrorResonse = error; _this5.isExpiredSabugo = isExpiredSabugo; }); _this5.pooling(true, 10000); _this5.loaderService.hide(); } } })).catch(() => { _this5.loaderService.hide(); _this5.loadingService.hide(0, 'onrestart'); _this5.hideLoadingAll('wait-newtork'); }).finally(() => { _this5.loaderService.hide(); _this5.hideLoadingAll('wait-newtork'); _this5.loadingService.hide(0, 'onrestart'); }); _this5.loadingService.hide(0, 'onrestart'); _this5.loaderService.hide(); }).apply(this, arguments); } start() { 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* () { const isAuthenticated = yield _this6.authService.isAuthenticated(); if (!isAuthenticated) { return; } _this6.qrCodeService.init(_this6.key); try { const isavailableStorage = yield _this6.storageService.startStorage(); if (!isavailableStorage) { throw 'storage not avaliable'; } return _this6.starInitSabugo(); } catch (error) { if (!_this6.isOffline) { _this6.onStartError(error); } return; } finally { _this6.loaderService.hide(); _this6.loadingService.hide(0, 'start'); _this6.verifyIfSignUpProcedureRemainsCompanyInvitationData(); const timeOutgetUserNotificationPermission = setTimeout(() => { if (!_this6.isOffline) { if (_capacitor_core__WEBPACK_IMPORTED_MODULE_4__.Capacitor.isNativePlatform()) { _this6.getUserNotificationPermission(); clearTimeout(timeOutgetUserNotificationPermission); } } _this6.firstRequestGetProfiles(); _this6.pendingsReleasesExists(); }, 1200); } })(); } starInitSabugo() { 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* () { const isExpiredToken = yield _this7.authService.isExpiredToken(); if (!isExpiredToken) { try { const sabugo = yield _this7.managerSabugo.getSabugo(); _this7.sabugo = sabugo; _this7.watchSabugo(); _this7.managerTokenUaamobile.watchToken(); if (sabugo) { _this7.startEncryptionService(); } return sabugo; } catch (error) { if (!_this7.isOffline) { _this7.onStartError(error); } } } else { try { if (!_this7.isOffline) { const tokenUaamobile = yield _this7.managerTokenUaamobile.initStartGetTokenUaaMobile(); if (tokenUaamobile?.['codeError'] || tokenUaamobile instanceof _angular_common_http__WEBPACK_IMPORTED_MODULE_1__.HttpErrorResponse) { throw tokenUaamobile; } } const sabugo = yield _this7.managerSabugo.getSabugo(); _this7.sabugo = sabugo; _this7.watchSabugo(); _this7.managerTokenUaamobile.watchToken(); if (sabugo) { _this7.startEncryptionService(); } return sabugo; } catch (error) { if (!_this7.isOffline) { _this7.onStartError(error); } } } })(); } getVoAndLgProfiles() { var _this8 = 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 { const profiles = yield _this8.apiService.getUserProfiles(_this8.portais, _this8.tokenLogin).toPromise(); return _this8.processGetVOUserProfilesSuccessResponse(profiles); } catch (error) { return _this8.processGetVOUserProfilesErrorResponse(error); } finally { _this8.finishrequestStartVOProfiles = true; _this8.loaderService.hide(); _this8.loadingService.hide(0, 'wait-newtork'); } })(); } processGetVOUserProfilesErrorResponse(error) { this.logService.logError('processGetVOUserProfilesErrorResponse', '', { error }); return error; } getProfilesAbleToCreateEvent(profiles) { return this.profileManagerService.getProfilesAbleToCreateEvent(profiles, true); } startCountdown() { var _this9 = this; this.restartCountdown(); const setIntervalCallback = () => { this.ngZoneService.run( /*#__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* () { _this9.qrCodeValidityCountDown--; if (!_this9.qrCodeValidityCountDown) { _this9.stopCountdown(); try { const encrypt = yield _this9.encrypt(); if (encrypt && encrypt?.success) { return _this9.startCountdown(); } } catch (error) { return _this9.handleEncryptError(error); } } })); }; this.countdownSetIntervalId = Number(setInterval(setIntervalCallback, 1000)); this.unPauseCountdown(); } encrypt() { var _this0 = 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 errorReject = { data: { message: 'Encryption failed: QR code is null or undefined', error: true } }; return new Promise( /*#__PURE__*/function () { var _ref13 = (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* (resolve, reject) { try { const encryptSabugo = yield _this0.qrCodeService.encrypt(_this0.sabugo, _this0.qrCodeValidityIntervalInSeconds, _this0.authService.getPlatformAndAppTimeDifference()); _this0.ngZoneService.run(() => { _this0.qrCode = btoa(String.fromCharCode.apply(null, encryptSabugo)); if (!_this0.qrCode) { return reject({ error: errorReject, success: false }); } else { return resolve({ error: null, success: true }); } }); } catch (error) { _this0.logService.logError('encrypt::error', `${errorReject.data.message}`, { error }); return reject({ error: { ...errorReject, error } }); } }); return function (_x8, _x9) { return _ref13.apply(this, arguments); }; }()); })(); } watchSabugo() { var _this1 = 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 isAuthenticated = yield _this1.isAuthenticated(); if (!isAuthenticated) { if (_this1.sabugoWatcherIntervalId) { clearInterval(_this1.sabugoWatcherIntervalId); } return; } const sabugoValitTimeInSeconds = yield _this1.authService.getSabugoValitTimeInSeconds(); const sabugoValitTimeInMilliseconds = sabugoValitTimeInSeconds * 1000; _this1.sabugoWatcherIntervalId = setInterval(() => { _this1.stopSabugoWatcher(); _this1.stopCountdown(); _this1.restartCountdown(); _this1.clearQRCodeData(); if (!isAuthenticated) { if (_this1.sabugoWatcherIntervalId) { clearInterval(_this1.sabugoWatcherIntervalId); } return; } _this1.updateSabugo().then(() => { _this1.loadingService.hide(0, 'watch-sabugo-update-sabugo'); _this1.startEncryptionService(); _this1.watchSabugo(); }).catch(error => { _this1.loadingService.hide(0, 'watch-sabugo-update-sabugo'); _this1.managerTokenUaamobile.stopTokenWatcher(); _this1.getSabugoError(error); }); }, sabugoValitTimeInMilliseconds); return _this1.sabugoWatcherIntervalId; })(); } updateSabugo() { const loadingUpdateData = this.translateConfigService.translate('PG_HOME_LOADING_UPDATING_DATA'); this.loaderService.show(loadingUpdateData); return this.managerSabugo.getSabugo().then(sabugo => { this.sabugo = sabugo; return this.authService.setSabugo(sabugo); }).finally(() => { this.loaderService.hide(); }); } processGetVOAndLGUserProfilesErrorResponse(_err) { this.logService.logError('http::getVOAndLGUserProfiles', '', _err); this.inviteButtonDisable = false; this.loadingService.hide(0, 'on-create-event'); const title = this.translateConfigService.translate('PG_HOME_TOAST_ERROR_REQUEST_TITLE'); const message = this.translateConfigService.translate('PG_HOME_TOAST_MESSAGE_ERROR_REQUEST'); this.showNotification(title, message, 'error', this.timeoutNotification); } /* private getCompanyInstanceRelatedAccessToken = (companyInstance, portal = 'VO') => { let token = null; return new Promise((resolve, reject) => { const processGetCompanyInstanceRelatedLoginSuccessResponse = response => { const profiles = response; const foundProfile = profiles.find( profile => profile?.company?.instanceName === companyInstance ); if (foundProfile && foundProfile?.login && foundProfile?.portal) { const sub = this.apiService .getUserProfileLogin(foundProfile.login, foundProfile.portal, token) .subscribe( (getUserProfileLoginResponse: { access_token: string }) => { const accessToken = getUserProfileLoginResponse?.access_token; if (accessToken) { this.inviteButtonDisable = false; resolve(accessToken); } else { reject('Does not have desired profile'); this.logService.logError('getUserProfileLogin', 'Does not have desired profile', { accessToken: null }); } }, error => { reject(error); } ); this.subscriptions.push(sub); } else { reject('Does not have desired profile'); this.logService.logError('getUserProfileLogin', 'Does not have desired profile', { foundProfile: null }); } }; const processGetCompanyInstanceRelatedLoginErrorResponse = error => { console.log('processGetCompanyInstanceRelatedLoginErrorResponse'); console.log('error:', error); this.logService.logError( 'http::processGetCompanyInstanceRelatedLoginErrorResponse', '', error ); reject(error); }; this.authService.getToken().then(response => { token = response; const sub = this.apiService .getUserProfiles(portal, token) .subscribe( processGetCompanyInstanceRelatedLoginSuccessResponse, processGetCompanyInstanceRelatedLoginErrorResponse ); this.subscriptions.push(sub); }); }); }; */ getCompanyInstanceRelatedAccessToken(companyInstance, portal = 'VO') { return new Promise((resolve, reject) => { this.authService.getToken().then(token => { const sub = this.apiService.getUserProfiles(portal, token).subscribe(response => { const profiles = response; const foundProfile = profiles.find(profile => profile?.company?.instanceName === companyInstance); if (foundProfile && foundProfile?.login && foundProfile?.portal) { const loginSub = this.apiService.getUserProfileLogin(foundProfile.login, foundProfile.portal, token).subscribe(getUserProfileLoginResponse => { const accessToken = getUserProfileLoginResponse?.access_token; if (accessToken) { this.inviteButtonDisable = false; resolve(accessToken); } else { reject('Does not have desired profile'); this.logService.logError('getUserProfileLogin', 'Does not have desired profile', { accessToken: null }); } }, error => { reject(error); }); this.subscriptions.push(loginSub); } else { reject('Does not have desired profile'); this.logService.logError('getUserProfileLogin', 'Does not have desired profile', { foundProfile: null }); } }, error => { this.logService.logError('http::processGetCompanyInstanceRelatedLoginErrorResponse', '', error); reject(error); }); this.subscriptions.push(sub); }); }); } pendingsReleasesExists() { this.badgeStoreService.initialize(); } OpenModaltoselectGoodProfiles() { var _this10 = 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* () { // Obtenha perfis válidos de voProfiles e lgProfiles const profilesCollection = [..._this10.voProfiles, ..._this10.lgProfiles]; let { limitedProfile, profiles: goodProfiles } = _this10.getProfilesAbleToCreateEvent(profilesCollection); // Filtra perfis para garantir que apenas perfis únicos por company.instanceName sejam mantidos goodProfiles = goodProfiles.filter((value, index, self) => index === self.findIndex(t => t?.company?.instanceName === value?.company?.instanceName)); if (limitedProfile || (_this10.voProfiles.length >= 1 || _this10.lgProfiles.length >= 1) && goodProfiles.length === 0) { _this10.loadingService.hide(0, 'on-create-event').then(() => { _this10.inviteButtonDisable = false; _this10.cantCreateEvent(); }); } else { if (goodProfiles && goodProfiles.length > 1) { // this.isExistProfileSelectedResumeInterrupted(goodProfiles); const modal = yield _this10.modalController.create({ component: _shared_components__WEBPACK_IMPORTED_MODULE_2__.SelectProfileModalComponent, backdropDismiss: false, componentProps: { profiles: goodProfiles } }); modal.onDidDismiss().then(response => { _this10.inviteButtonDisable = false; if (response.data) { _this10.selectProfileModalVOOnProfileSelectCreateEventCallback(response.data); } else { _this10.selectProfileModalVOOnBackCreateEventCallback(); } }); yield modal.present(); } else if (goodProfiles[0]) { _this10.selectProfileModalVOOnProfileSelectCreateEventCallback(goodProfiles[0]); } else { _this10.loadingService.hide(0, 'on-create-event'); _this10.inviteButtonDisable = false; const title = _this10.translateConfigService.translate('PG_HOME_TOAST_NO_ACCESS_PROFILE_TITLE'); const message = _this10.translateConfigService.translate('PG_HOME_TOAST_NO_ACCESS_PROFILE_MESSAGE'); _this10.showNotification(title, message, 'error', _this10.timeoutNotification); } } })(); } handleErroTokenOnCrateEventAction() { this.logService.logError('handleErroTokenOnCrateEventAction', 'erro get token profile'); } firstRequestGetProfiles() { var _this11 = 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* () { _this11.tokenLogin = yield _this11.managerTokenUaamobile.initStartGetTokenUaaMobile(); const getFirstRquest = localStorage.getItem('firstRequestGetProfile'); const existFirstRquest = getFirstRquest ? getFirstRquest : null; const profilesList = _this11.profileManagerService.getProfileList(); _this11.setProfileOnlyOne(); if (!existFirstRquest || profilesList.length <= 0) { yield _this11.getVoAndLgProfiles(); _this11.inviteButtonDisable = false; } else { _this11.voProfiles = profilesList; _this11.finishrequestStartVOProfiles = true; } })(); } onResumeActiveApp() { var _this12 = 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 isAuthenticated = yield _this12.authService.isAuthenticated(); if (!isAuthenticated) { return; } _capacitor_app__WEBPACK_IMPORTED_MODULE_3__.App.addListener('appStateChange', state => { if (state.isActive) { _this12.ngZoneService.run(() => { _this12.handleResumeState(state); }); } else { if (!_this12.creatinigEvent) { _this12.ngZoneService.run(() => { _this12.handlePauseActivity(); }); } } }); })(); } checkAutomaticTimeZone() { this.platform.is('cordova') || this.platform.is('capacitor') ? this.platform.ready().then(() => { if (this.isAndroid) { this.timeSettingsService.checkAutomaticTime().then(res => { if (res == 'true') { this.isAutomaticTimeEnabled = true; } else { this.isAutomaticTimeEnabled = false; } }).catch(err => { if (err) { console.warn('Erro plugin checkAutomaticTime ', err); } }); } else { this.isAutomaticTimeEnabled = true; } }) : console.log('Run in browser'); // TODO: KA_APP-565 /* this.platform.is('cordova') || this.platform.is('capacitor') ? this.platform.ready().then(() => { if (this.isAndroid) { this.timeSettingsService .checkAutomaticTime() .then(res => { if (res == 'true') { this.isAutomaticTimeEnabled = true; } else { this.isAutomaticTimeEnabled = false; } }) .catch(err => { if (err) { console.warn('Erro plugin checkAutomaticTime ', err); } }); } else { if (!this.isOffline) { const sub = this.dateTimeService.checkDateTimeDifference().subscribe(res => { this.isAutomaticTimeEnabled = !res.isDifferent; }); this.subscriptions.push(sub); } else { this.isAutomaticTimeEnabled = true; } } }) : console.log('Run in device'); */ } resumeCreateEvent(eventType) { let eventInprogress = false; const { logistic, vo, action, event } = this.resumeCreateEventInterruptedService.getResumeCreationInterrupted(); let target = null; if (logistic.eventType !== '' || logistic.eventType.length > 1) { target = 'LOGISTIC'; } else if (logistic.eventType === '' || !logistic.eventType) { target = 'VO'; } const props = { target, eventType: eventType ? eventType : '', canCreateEvent: true, action, event: { id: event?.id ? event.id : '', instanceName: event?.instanceName ? event?.instanceName : '' } }; this.resumeCreateEventInterruptedService.showModalResumeCreateEventInterrupted(props); this.inviteButtonDisable = false; if (logistic.eventType !== '' || logistic.eventType.length > 1 || vo) { eventInprogress = true; } return eventInprogress; } setProfileCurrentCorrect(profile) { if (profile?.authorities.includes('ROLE_LOGI_EXP')) { this.profileManagerService.setProfileLogistic(profile); this.profileManagerService.setProfile(profile); this.resumeCreateEventInterruptedService.setProfileLogisticCreationInterrupte(profile); } else { this.profileManagerService.setProfile(profile); this.resumeCreateEventInterruptedService.setProfileVoCreationInterrupte(profile); } } setProfileOnlyOne() { const profiles = this.profileManagerService.getProfileList(); if (profiles && profiles.length > 0 && profiles.length === 1) { // this.profileManagerService.setProfile(profiles[0]); this.setProfileCurrentCorrect(profiles[0]); } } /* private reportLogtron(newSabugoResult) { const getSabugoRequestStart = Date.now(); const getSabugoRequestEnd = Date.now(); const requestTimeDifference = Math.floor((getSabugoRequestEnd - getSabugoRequestStart) / 2); const platformEpochSecond = newSabugoResult.platformEpochSecond * 1000; const now = Date.now() - requestTimeDifference; const platformAndAppTimeDifference = now - platformEpochSecond; this.logTimeAgnosticFeatureData( getSabugoRequestStart, getSabugoRequestEnd, platformEpochSecond, now, requestTimeDifference, platformAndAppTimeDifference ); } private logTimeAgnosticFeatureData = ( getSabugoRequestStart, getSabugoRequestEnd, platformEpochMillisecond, appEpochMillisecond, requestTimeDifference, platformAndAppTimeDifference ) => { let result; if (platformAndAppTimeDifference > 0) { result = 'App is ahead'; } else if (platformAndAppTimeDifference < 0) { result = 'App is behind'; } else { result = 'App and platform are even'; } const data = { getSabugoRequestStart, getSabugoRequestEnd, requestTimeDifference, platformEpochMillisecond, appEpochMillisecond, result }; this.logService.logEvent('logTimeAgnosticFeatureData::function', '', data); }; */ showModalSelectEventInstantOrDefault() { var _this13 = 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 _this13.modalController.create({ component: _shared_components_modais__WEBPACK_IMPORTED_MODULE_5__.ModalEventInstantComponent, cssClass: 'event-instant-', componentProps: {} }); yield modal.present(); try { const { data } = yield modal.onDidDismiss(); if (!data) { return { close: true, typeEvent: null }; } if (data) { if (data && data.typeEvent) { if (data.typeEvent === 'instant') { return { ...data, close: true }; } else { return false; } } } } catch (error) { return false; } })(); } showNotification(title, message, type, timeout = 5000) { const notification = { title, message, type, timeout }; this.notificatorService.notify(notification); } getGeoCoordinatesDevice(logError, tagLoading) { var _this14 = 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 { lat, lng } = yield _this14.geoCoordinates(logError, tagLoading); return { lat, lng }; })(); } geoCoordinates(logError, tagLoading) { var _this15 = 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 { const currentPosition = yield _this15.geolocationService.getCurrentPositionAndRequestPermission(); const lat = currentPosition && currentPosition.coords && currentPosition.coords.latitude ? currentPosition.coords.latitude : null; const lng = currentPosition && currentPosition.coords && currentPosition.coords.longitude ? currentPosition.coords.longitude : null; const geoCoordinates = { lat, lng }; return geoCoordinates; } catch (error) { _this15.inviteButtonDisable = false; _this15.loadingService.hide(0, tagLoading); const title = _this15.translateConfigService.translate('PG_HOME_TOAST_ERROR_GETTING_LOCATION_TITLE'); const message = _this15.translateConfigService.translate('PG_HOME_TOAST_MESSAGE_ERROR_GETTING_LOCATION'); _this15.showNotification(title, message, 'error', _this15.timeoutNotification); _this15.logService.logError(logError, '', error); return error; } })(); } openPermissionModal(profile, response) { var _this16 = 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 companyInstance = profile.company.instanceName; try { const accessToken = yield _this16.getAccessToken(companyInstance, profile); try { const { authorized } = yield _this16.checkSoftLock(companyInstance, accessToken); try { const onDismissModalPermission = authorized ? authorized : yield _this16.modalPermissionsService.openModal({ permission: 'GPS' }); if (onDismissModalPermission) { _this16.inviteButtonDisable = false; yield _this16.handlePermissionGranted(profile, authorized, accessToken, response); return; } else { _this16.handlePermissionRejected(); } } catch (error) { _this16.inviteButtonDisable = false; _this16.handlePermissionRejected(); } } catch (error) { _this16.logService.logError('http:error', 'checkSoftLock', { data: error }); return _this16.handleVerifyCoordinatesErrorResponse(error); } } catch (error) { _this16.handleAccessTokenError(error); } })(); } handlePermissionGranted(profile, authorized, accessToken, response) { var _this17 = this; return (0,_Volumes_case_workspace_work_APPS_KA_APP_WORK_NOW_KA_PASS_V2_2_6_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* () { if (!authorized) { try { yield _this17.geolocationService.getCurrentPositionAndRequestPermission(); const { lat, lng } = yield _this17.getDeviceCoordinates(); try { if (lat && lng) { const setCoordinates = { lat, lng, authorized: false }; _this17.createEventService.setGeoCoordinates(setCoordinates); const res = yield _this17.apiService.verifyCoordinates(profile.company.instanceName, lat, lng, accessToken).toPromise(); if (res && res['authorized']) { _this17.createEventService.setGeoCoordinates(res); } _this17.handleVerifyCoordinatesSuccessResponse(res, response); } } catch (error) { _this17.inviteButtonDisable = false; _this17.creatinigEvent = false; return _this17.handleVerifyCoordinatesErrorResponse(error); } } catch (err) { _this17.handleGeolocationError(err); _this17.inviteButtonDisable = false; _this17.creatinigEvent = false; } } else { _this17.handleVerifyCoordinatesSuccessResponse({ authorized }, response); } })(); } getAccessToken(companyInstance, profile) { var _this18 = 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 { const getCompanyInstanceRelatedAccessTokenResponse = yield _this18.getCompanyInstanceRelatedAccessToken(companyInstance, profile.portal); return getCompanyInstanceRelatedAccessTokenResponse; } catch (error) { _this18.logService.logError('http::getCompanyInstanceRelatedAccessToken', '', error); const title = _this18.translateConfigService.translate('PG_HOME_TOAST_ERROR_GET_TOKEN_TITLE'); const message = _this18.translateConfigService.translate('PG_HOME_TOAST_MESSAGE_ERROR_GET_TOKEN'); _this18.showNotification(title, message, 'error', _this18.timeoutNotification); throw error; } })(); } getDeviceCoordinates() { var _this19 = 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 { const { lat, lng } = yield _this19.getGeoCoordinatesDevice('geolocation::afterProfileSelection', 'on-create-event'); return { lat, lng }; } catch (error) { // Tratar o erro ao obter as coordenadas do dispositivo throw error; } })(); } checkSoftLock(companyInstance, accessToken) { var _this20 = 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 { const { authorized } = yield _this20.apiService.checkSoftLock(companyInstance, null, null, accessToken).toPromise(); return { authorized }; } catch (error) { if (error instanceof _angular_common_http__WEBPACK_IMPORTED_MODULE_1__.HttpErrorResponse) { _this20.logService.logError('http::error', 'check Soft Lock Error Http', error); } throw error; } })(); } handleGeolocationError(err) { this.loadingService.hide(0, ''); this.inviteButtonDisable = false; let title = ''; let message = ''; const userDenied = err['coarseLocation'] === 'denied' || err['location'] === 'denied' || err['message'] === 'Location permission was denied'; if (userDenied) { title = this.translateConfigService.translate('TOAST_LOCATION_PERMISSION_DENIED_TITLE'); message = this.translateConfigService.translate('TOAST_LOCATION_PERMISSION_DENIED_MESSAGE'); } else { title = this.translateConfigService.translate('PG_HOME_TOAST_ERROR_GETTING_LOCATION_TITLE'); message = this.translateConfigService.translate('PG_HOME_TOAST_MESSAGE_ERROR_GETTING_LOCATION'); } const timeout = userDenied ? 10000 : this.timeoutNotification; this.showNotification(title, message, 'error', timeout); this.logService.logError('device:getCurrentPositionAndRequestPermission', err); } handleAccessTokenError(error) { this.logService.logError('http::getCompanyInstanceRelatedAccessToken', '', error); const title = this.translateConfigService.translate('PG_HOME_TOAST_ERROR_GET_TOKEN_TITLE'); const message = this.translateConfigService.translate('PG_HOME_TOAST_MESSAGE_ERROR_GET_TOKEN'); this.showNotification(title, message, 'error', this.timeoutNotification); } handlePermissionRejected() { this.inviteButtonDisable = false; this.logService.logError('permissionModal::afterProfileSelectionPageHome', '', { data: 'modal-permission-rejected' }); } getDateParams() { const sub = this.activatedRoute?.queryParams.subscribe(params => { if (!params?.notResetSession) { this.sessionAddFlowService.clearAndGenerateSessionId(); } }); this.subscriptions.push(sub); } cantCreateEvent() { var _this21 = 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 _this21.modalController.create({ component: _shared_components_modais__WEBPACK_IMPORTED_MODULE_5__.CantCreateEventModalComponent, componentProps: {}, cssClass: 'can-create-modal' }); yield modal.present(); })(); } checkInvertedColor() { var _this22 = this; return (0,_Volumes_case_workspace_work_APPS_KA_APP_WORK_NOW_KA_PASS_V2_2_6_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* () { if (_this22.isAndroid) { try { const invertColorIsEnabled = yield _this22.checkInverColorService.isEnabled(); _this22.invertColorIsEnabled = invertColorIsEnabled ? true : false; } catch (error) { _this22.invertColorIsEnabled = false; _this22.logService.logError('error:invertColor', 'Erro in check device Is Colors Invert is Enable', error); } } else { _this22.invertColorIsEnabled = false; } })(); } /* Authenticated */ isAuthenticated() { var _this23 = 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 uuidPromisse = yield _this23.authService.getRefId(); const isAuthenticated = yield _this23.authService.isAuthenticated(); return isAuthenticated && uuidPromisse; })(); } stopServices() { var _this24 = 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* () { clearInterval(_this24.sabugoWatcherIntervalId); _this24.resumeToPinService.stop(); _this24.resumeToGenerateQRCode.stop(); _this24.managerTokenUaamobile.stopTokenWatcher(); _this24.stopSabugoWatcher(); _this24.stopTimeout = false; _this24.pooling(true, 15000); yield _this24.helpDevDiagnosticService.sendDiagnosticLogTron(); })(); } getUserNotificationPermission() { var _this25 = 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 permission = yield _this25.fcmService.checkPermissionsAndRequestPermission(); const permissionState = permission === 'denied' ? 'userDenied' : permission; const showToast = permissionState !== 'granted' && permissionState !== 'prompt' && permissionState !== 'prompt-with-rationale'; if (showToast) { _this25.showToasNotificanPlugin(true, permissionState); _this25.fcmService.removeTokenStorage(); _this25.logService.logError('checkPermissionsAndRequestPermission::error', `FCM status Permission ${permissionState}`, ''); return; } if (permission === 'granted') { yield _this25.fcmService.getTokenFcm(); yield _this25.enabledPlugin(); } })(); } showToasNotificanPlugin(isFcm, error) { var _this26 = this; return (0,_Volumes_case_workspace_work_APPS_KA_APP_WORK_NOW_KA_PASS_V2_2_6_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* () { if (_this26.toastShowFcm) { return; } _this26.toastController.getTop().then(toast => { if (toast) { toast.dismiss(); } }); let message = 'Permissão necessária!. Para remover as notificações persistentes, é preciso liberar o acesso nas configurações.'; let textBtn = 'Permitir'; _this26.toastShowFcm = true; if (isFcm) { _this26.fcmService.removeTokenStorage(); textBtn = _this26.translateConfigService.translate('PG_HOME_TOAST_USER_DENIED_BTN_ADJUST'); if (error === 'userDenied') { const messageDenied = _this26.translateConfigService.translate('PG_HOME_TOAST_USER_DENIED_MESSAGE'); message = messageDenied; _this26.logService.logEvent('grantPermission::permissionDenied'); } else { const messageNotEnabling = _this26.translateConfigService.translate('PG_HOME_TOAST_ERROR_ENABLING_NOTIFICATIONS'); message = messageNotEnabling; } } const toast = yield _this26.toastController.create({ header: '', message, position: 'top', cssClass: 'custom_toast_error_notification', color: 'danger', duration: 15000, mode: 'ios', buttons: [{ text: textBtn, handler: function () { var _ref14 = (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* () { _this26.toastShowFcm = false; if (isFcm) { _this26.fcmService.deleteTokenFcm(); _this26.nativeSettings.openSetting(capacitor_native_settings__WEBPACK_IMPORTED_MODULE_7__.AndroidSettings.AppNotification, capacitor_native_settings__WEBPACK_IMPORTED_MODULE_7__.IOSSettings.Notifications); } else { yield _this26.requestPermissionActionNotificationListener(); } }); return function handler() { return _ref14.apply(this, arguments); }; }() }, { icon: 'close-circle-sharp', role: 'cancel', handler: () => { toast.dismiss(); _this26.toastShowFcm = false; } }] }); toast.addEventListener('ionToastWillPresent', () => _this26.applyStyles(toast)); yield toast.present(); const { data, role } = yield toast.onDidDismiss(); if (data || role) { _this26.toastShowFcm = false; } })(); } applyStyles(toast) { const container = toast?.shadowRoot?.querySelector('.toast-content'); if (container) { this.toastShowFcm = true; container.style.padding = '0.4em 1em'; } } pooling(scheduleNext = true, duration = this.durationLong) { if (this.stopTimeout || !this.httpErrorResonse) { return; } clearTimeout(this.setTimeOut); if (scheduleNext && !this.stopTimeout) { this.setTimeOut = setTimeout(() => { this.onRestart(false); }, duration); } } hideLoadingAll(_arg0) { this.loadingService.hide(0, 'wait-newtork'); this.loadingService.hide(0, 'onrestart'); this.loadingService.hide(0, 'on-create-event'); this.loadingService.hide(0, 'start'); this.loadingService.hide(0, 'watch-sabugo-update-sabugo'); this.loadingService.hide(0, 'watch-token-update-token'); } subscribeToPauseEventAndHandleActivityIOs() { const isIOS = _capacitor_core__WEBPACK_IMPORTED_MODULE_4__.Capacitor.getPlatform() === 'ios'; if (isIOS) { this.platform.pause.subscribe(() => { this.ngZoneService.run(() => { this.handlePauseActivity(); }); }); } } handleResumeState(_state) { var _this27 = this; this.httpErrorResonse = null; this.isExpiredSabugo = false; this.qrCodeValidityCountDown = 40; this.setStartError(null); this.stopCountdown(); this.startCountdown(); const GeneratingQRCode = this.translateConfigService.translate('PG_HOME_LOADING_GENERATINGQRCODE'); const routerHome = this.router.url; if (routerHome.includes('/home')) { this.viewGuardCallback(); this.loaderService.show(GeneratingQRCode); } this.setStartError(null); if (this.platformIsResume && !this.creatinigEvent) { this.platformIsResume = false; this.start().then(_ => _).catch().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* () { _this27.loaderService.hide(); _this27.isExpiredSabugo = yield _this27.authService.isExpiredSabugo(); setTimeout( /*#__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* () { _this27.networkService.initializeNetworkEvents(); _this27.loadingService.hide(0, 'onrestart'); _this27.checkAutomaticTimeZone(); // this.getUserNotificationPermission(); yield _this27.checkInvertedColor(); }), 900); })); } } handlePauseActivity() { this.platformIsResume = true; this.httpErrorResonse = null; this.setStartError(null); this.stopAllIntervals('Home::handlePauseActivity'); this.restartCountdown(); this.clearQRCodeData(); this.restoreBrightness(); this.allowItToRest(); if (!this.isOffline) { this.managerTokenUaamobile.initStartGetTokenUaaMobile().then(() => { this.managerSabugo.getSabugo().then(); }); } } enabledPlugin() { var _this28 = 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 { yield custom_plugins_capacitor_notify_persistent_src__WEBPACK_IMPORTED_MODULE_10__.NotifyPersistent.enablePlugin(); _this28.logService.logError('notification-plugin', 'Plugin habilitado com sucesso'); } catch (error) { _this28.logService.logError('notification-plugin', 'Falha ao habilitar o plugin de notificações persistentes', error); _this28.showToasNotificanPlugin(false, error); } finally { if (_capacitor_core__WEBPACK_IMPORTED_MODULE_4__.Capacitor.getPlatform() === 'android') { try { const permissionListenerNotification = yield _this28.verfyPermissionListenerNotification(); if (permissionListenerNotification === 'granted') { _this28.logService.logEvent('notification-permission', 'Permissão de notificação persistente concedida'); // Verificar permissão de Full Screen Intent (Android 12+) try { const fullScreenResult = yield custom_plugins_capacitor_notify_persistent_src__WEBPACK_IMPORTED_MODULE_10__.NotifyPersistent.canUseFullScreenIntent(); if (!fullScreenResult.canUse && fullScreenResult.requiresPermission) { _this28.logService.logWarning('full-screen-intent-permission', 'Permissão de Full Screen Intent não concedida (Android 12+)'); } else if (fullScreenResult.canUse) { _this28.logService.logEvent('full-screen-intent-permission', 'Permissão de Full Screen Intent concedida'); } } catch (fullScreenError) { // Não bloqueia o fluxo se houver erro na verificação _this28.logService.logError('full-screen-intent-permission', 'Erro ao verificar permissão de Full Screen Intent', fullScreenError); } _this28.loadConfigNotificationDefault(); return; } _this28.logService.logError('notification-permission', 'Permissão de notificação persistente negada'); _this28.showToasNotificanPlugin(false, 'denied'); } catch (permError) { _this28.logService.logError('notification-permission', 'Erro ao verificar permissão de notificação persistente', permError); _this28.showToasNotificanPlugin(false, permError); } } } })(); } verfyPermissionListenerNotification() { 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 { const { receive: checkPermissionListener } = yield custom_plugins_capacitor_notify_persistent_src__WEBPACK_IMPORTED_MODULE_10__.NotifyPersistent.checkPermissionActionNotificationListener(); return checkPermissionListener; } catch (error) { console.log('error', error); return error; } })(); } requestPermissionActionNotificationListener() { 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 { receive: requestPermission } = yield custom_plugins_capacitor_notify_persistent_src__WEBPACK_IMPORTED_MODULE_10__.NotifyPersistent.requestPermissionActionNotificationListener(); return requestPermission; })(); } loadConfigNotificationDefault() { var _this29 = this; return (0,_Volumes_case_workspace_work_APPS_KA_APP_WORK_NOW_KA_PASS_V2_2_6_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* () { if (localStorage.getItem(_this29.CONFIG_KEY) === 'true') { return; } try { const notificationConfig = yield _this29.apiService.getNotificationsConfiguration().toPromise(); if (!notificationConfig?.defaultValue) { return; } yield _this29.trySetConfigNotificationDefault(notificationConfig); } catch (error) { _this29.logService.logError('http', 'get notification configuration home::' + error['message'], error); _this29.retryUntilSuccess(5000); } })(); } trySetConfigNotificationDefault(notificationConfig) { var _this30 = 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 { notificationConfig.activated = true; notificationConfig.persistent = true; notificationConfig.defaultValue = false; _this30.enabledPlugin(); const response = yield _this30.apiService.updateNotificationsConfiguration(notificationConfig).toPromise(); console.log('✅ Configuração aplicada com sucesso:', response); localStorage.setItem(_this30.CONFIG_KEY, 'true'); } catch (error) { _this30.logService.logError('http', 'update notification configuration home:: ' + error['message'], error); throw error; } })(); } /** * Retry com backoff exponencial (ex.: 5s, 10s, 20s, 40s... máx 5min) */ retryUntilSuccess(delayMs) { var _this31 = this; const MAX_DELAY = 5 * 60 * 1000; setTimeout( /*#__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 (localStorage.getItem(_this31.CONFIG_KEY) === 'true') { return; } try { const notificationConfig = yield _this31.apiService.getNotificationsConfiguration().toPromise(); if (notificationConfig?.defaultValue) { yield _this31.trySetConfigNotificationDefault(notificationConfig); return; } } catch (err) { console.warn(`Tentativa falhou, tentando novamente em ${delayMs / 1000}s...`, err); } const nextDelay = Math.min(delayMs * 2, MAX_DELAY); _this31.retryUntilSuccess(nextDelay); }), delayMs); } // ISSUE - LOG - Banner hasBannerLog() { (0,rxjs__WEBPACK_IMPORTED_MODULE_28__.from)(this.authService.getRefId()).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_29__.switchMap)(refId => this.apiService.hasBannnerLog(refId).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_30__.tap)(res => { // res.bannerUrl = 'https://qasplataforma.logcp.com.br/key-access'; // res.bannerUrl = 'https://plataforma.logcp.com.br'; // res.hasBanner = 'LOG'; if (res.hasBanner === 'LOG' && res.bannerUrl) { this.ngZoneService.run(() => { try { this.hasBannerLogLoad = true; this.safeUrlIFrame = this.domSanitizer.bypassSecurityTrustResourceUrl(res.bannerUrl); this.updateCountdownDisplayMode(); } catch (error) { console.error('Erro ao sanitizar URL do iframe:', error); this.hasBannerLogLoad = false; } }); } }))), (0,rxjs_operators__WEBPACK_IMPORTED_MODULE_27__.take)(1), (0,rxjs_operators__WEBPACK_IMPORTED_MODULE_31__.catchError)(_err => (0,rxjs__WEBPACK_IMPORTED_MODULE_32__.of)(err => { console.log('err', err); }))).subscribe(); } // ISSUE - LOG - Banner updateIframeHeight() { this.iframeHeight = this.deviceInfo.getIframeHeightStyle(); this.updateCountdownDisplayMode(); } // ISSUE - LOG - Banner updateCountdownDisplayMode() { if (this.isSmallScreen || this.isUltraSmallScreen) { this.displayCircularCountdown = false; return; } const availableHeight = this.deviceInfo.getAvailableHeight(); const getHeightToolbar = this.deviceInfo.getHeightToolbar(); const realAvailableHeight = availableHeight + getHeightToolbar; console.log('realAvailableHeight', realAvailableHeight); if (this.hasBannerLogLoad) { this.displayCircularCountdown = realAvailableHeight > 880; } else { this.displayCircularCountdown = realAvailableHeight >= 700; } } // ISSUE - LOG - Banner addResizeListener() { this.resizeListener = () => this.onWindowResize(); window.addEventListener('resize', this.resizeListener); } // ISSUE - LOG - Banner removeResizeListener() { if (this.resizeListener) { window.removeEventListener('resize', this.resizeListener); this.resizeListener = null; } } // ISSUE - LOG - Banner onWindowResize() { this.deviceInfo.updateDeviceHeightFromWindow(); this.isSmallScreen = this.deviceInfo.isSmallScreen(); this.isUltraSmallScreen = this.deviceInfo.isUltraSmallScreen(); this.isMediumSmallScreen = this.deviceInfo.isMediumSmallScreen(); this.updateIframeHeight(); } } HomePage.ɵfac = function HomePage_Factory(t) { return new (t || HomePage)(_angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵdirectiveInject"](_ionic_angular__WEBPACK_IMPORTED_MODULE_33__.MenuController), _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_13__.InsomniaService), _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_13__.StorageService), _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_13__.ScreenBrightnessManagerService), _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_13__.AuthService), _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_13__.ApiService), _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_13__.QrcodeService), _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_13__.NgZoneService), _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_13__.LoadingService), _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵdirectiveInject"](_ionic_angular__WEBPACK_IMPORTED_MODULE_33__.NavController), _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_13__.NotificatorService), _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_13__.DeviceInfoService), _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_13__.NavigationService), _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵdirectiveInject"](_ionic_angular__WEBPACK_IMPORTED_MODULE_33__.Platform), _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_13__.ResumeToPinService), _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_13__.ResumeToGenerateQrCodeService), _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_13__.ProfileManagerService), _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵdirectiveInject"](_ionic_angular__WEBPACK_IMPORTED_MODULE_33__.ModalController), _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_13__.LogService), _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵdirectiveInject"](_ionic_angular__WEBPACK_IMPORTED_MODULE_33__.ToastController), _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_13__.GeolocationService), _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_13__.ModalPermissionsService), _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_13__.BadgeStoreService), _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_13__.NetworkService), _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_13__.LoaderService), _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_13__.TimeSettingsService), _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_13__.ResumeCreateEventInterruptedService), _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_13__.TranslateConfigService), _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_13__.EventInstantService), _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_13__.CreateEventService), _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵdirectiveInject"](_shared_services_firebase_fcm_service__WEBPACK_IMPORTED_MODULE_14__.FcmService), _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵdirectiveInject"](_shared_services_sessionaddflow_service__WEBPACK_IMPORTED_MODULE_15__.SessionaddflowService), _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵdirectiveInject"](_angular_router__WEBPACK_IMPORTED_MODULE_16__.ActivatedRoute), _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵdirectiveInject"](_shared_services_focus_service__WEBPACK_IMPORTED_MODULE_17__.FocusService), _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵdirectiveInject"](_shared_services_check_invert_color_service__WEBPACK_IMPORTED_MODULE_18__.CheckInvertColorService), _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_13__.ManagerTokenUaamobileService), _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_13__.ManagerSabugo), _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵdirectiveInject"](_shared_services_native_settings_service__WEBPACK_IMPORTED_MODULE_19__.NativeSettingsService), _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵdirectiveInject"](_shared_services_help_diagnostic_dev_service__WEBPACK_IMPORTED_MODULE_20__.HelpDevDiagnosticService), _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_13__.ShowToastAndModalErroCodeZeroService), _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵdirectiveInject"](_angular_router__WEBPACK_IMPORTED_MODULE_16__.Router), _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵdirectiveInject"](_shared_services_state_service__WEBPACK_IMPORTED_MODULE_21__.StateService), _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵdirectiveInject"](_angular_platform_browser__WEBPACK_IMPORTED_MODULE_34__.DomSanitizer)); }; HomePage.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵdefineComponent"]({ type: HomePage, selectors: [["app-home"]], decls: 12, vars: 17, consts: [[3, "isHome", "showBadge"], ["forceOverscroll", "false", 3, "ngStyle"], [4, "ngIf"], [1, "home_content"], ["class", "home_content__invite_and_countdown", 4, "ngIf"], ["class", "home_content__countdown", 4, "ngIf"], [1, "home_content__qrcode", 3, "ngClass"], ["class", "home_content__boxqr", 4, "ngIf"], [1, "home-snackbar"], [1, "home-snackbar__container"], ["class", "home-snackbar__automatic-time", 3, "click", 4, "ngIf"], [1, "home-snackbar__automatic-time", 3, "click"], [3, "className"], [1, "home-snackbar__automatic-time__message__icon"], ["mode", "ios", "name", "alert"], [1, "home-snackbar__automatic-time__message__text", 3, "innerHTML"], [1, "home-snackbar__offline"], [3, "smallMessage", "isHome", "showOffline", "onReload"], [1, "home_content__banner", 3, "ngStyle"], ["title", "Banner Publicit\u00E1rio", "sandbox", "allow-scripts allow-same-origin allow-popups allow-top-navigation-by-user-activation", "loading", "lazy", "width", "100%", "frameborder", "0", 3, "ngStyle", "src"], [1, "home_content__invite_and_countdown"], [1, "home_content__invite_section"], ["id", "btnInviteHome", 3, "className", "ngClass", 4, "ngIf"], ["class", "home_content__invite_section__skeleton", 4, "ngIf"], [1, "home_content__invite_section__skeleton"], [1, "home_content__invite_section__skeleton__texts"], ["animated", "", 2, "width", "100%"], ["animated", "", 2, "width", "70%"], ["class", "home_content__invite_section__skeleton__button", 4, "ngIf"], [1, "home_content__invite_section__skeleton__button"], ["animated", ""], ["id", "btnInviteHome", 3, "className", "ngClass"], [4, "ngIf", "ngIfElse"], ["associateCompany", ""], [1, "home_content__invite_section__button_holder"], ["mode", "ios", "class", "home_content__invite_section__button_holder__invite ", "shape", "round", 3, "ngClass", "disabled", "click", 4, "ngIf"], ["class", "home_content__invite_section__button_holder__invite", "shape", "round", 3, "ngClass", "disabled", "click", 4, "ngIf"], ["class", "home_content__invite_section__button_holder__message", 4, "ngIf"], ["mode", "ios", "shape", "round", 1, "home_content__invite_section__button_holder__invite", 3, "ngClass", "disabled", "click"], ["shape", "round", 1, "home_content__invite_section__button_holder__invite", 3, "ngClass", "disabled", "click"], [1, "home_content__invite_section__button_holder__message"], ["style", "margin: 0", "class", "home_content__invite_section__associate_company", 4, "ngIf"], [1, "home_content__invite_section__associate_company", 2, "margin", "0"], [3, "click"], [1, "home_content__countdown"], [3, "qrCodeValidityCountDown", "duration", "paused", "hasBanner", "displayCircularCountdown"], ["class", "home_content__invite_section", 3, "ngClass", 4, "ngIf"], [1, "home_content__invite_section", 3, "ngClass"], ["mode", "ios", "class", "home_content__invite_section__button_holder__invite", "shape", "round", 3, "disabled", "click", 4, "ngIf"], ["mode", "ios", "shape", "round", 1, "home_content__invite_section__button_holder__invite", 3, "disabled", "click"], [1, "home_content__error"], [1, "home_content__error__container"], [1, "home_content__error__container__message"], [1, "home_content__error__container__message__title", "ion-text-center"], [1, "home_content__error__container__message__description"], ["color", "medium"], [1, "ion-text-justify", "P1"], [3, "innerHTML"], [1, "P2"], [1, "P3"], [1, "ion-text-justify", "P4"], ["class", "home_content__error__container__restart_button", 4, "ngIf"], [1, "home_content__error__container__restart_button"], ["type", "button", 3, "click"], ["color", "danger"], [2, "text-decoration", "none", 3, "click"], [1, "home_content__boxqr"], ["alt", "QrCode", 1, "home_content__qr-code-holder", 3, "margin", "value"], [1, "home_content__code_holder"], ["animated", "", 2, "width", "300px", "height", "300px"]], template: function HomePage_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelement"](0, "app-header", 0); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](1, "ion-content", 1); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtemplate"](2, HomePage_ng_container_2_Template, 5, 2, "ng-container", 2); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](3, "div", 3); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtemplate"](4, HomePage_ng_container_4_Template, 3, 7, "ng-container", 2); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtemplate"](5, HomePage_div_5_Template, 5, 3, "div", 4); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtemplate"](6, HomePage_ng_container_6_Template, 2, 1, "ng-container", 2); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtemplate"](7, HomePage_ng_container_7_Template, 3, 2, "ng-container", 2); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtemplate"](8, HomePage_div_8_Template, 2, 5, "div", 5); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](9, "div", 6); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtemplate"](10, HomePage_div_10_Template, 2, 2, "div", 7); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtemplate"](11, HomePage_ng_container_11_Template, 4, 0, "ng-container", 2); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"]()()(); } if (rf & 2) { _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵproperty"]("isHome", true)("showBadge", true); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵproperty"]("ngStyle", _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵpureFunction2"](12, _c5, ctx.invertColorIsEnabled ? "invert(1)" : "", ctx.availableHeight + "px")); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵproperty"]("ngIf", !ctx.isAutomaticTimeEnabled || ctx.isOffline); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵadvance"](2); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵproperty"]("ngIf", ctx.hasBannerLogLoad && !ctx.isOffline && ctx.safeUrlIFrame); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵproperty"]("ngIf", !ctx.hasBannerLogLoad && !ctx.isOffline); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵproperty"]("ngIf", ctx.hasBannerLogLoad); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵproperty"]("ngIf", ctx.isExpiredSabugo || ctx.isOffline); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵproperty"]("ngIf", ctx.qrCode && !ctx.isExpiredSabugo && ctx.hasBannerLogLoad && !ctx.isMediumSmallScreen); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵpureFunction1"](15, _c6, ctx.hasBannerLogLoad && (ctx.isSmallScreen || ctx.isMediumSmallScreen))); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵproperty"]("ngIf", ctx.qrCode && !ctx.isExpiredSabugo); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵproperty"]("ngIf", !ctx.qrCode && !ctx.isOffline && !ctx.isExpiredSabugo && !(ctx.httpErrorResonse == null ? null : ctx.httpErrorResonse.error)); } }, dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_22__.NgClass, _angular_common__WEBPACK_IMPORTED_MODULE_22__.NgIf, _angular_common__WEBPACK_IMPORTED_MODULE_22__.NgStyle, _ionic_angular__WEBPACK_IMPORTED_MODULE_33__.IonButton, _ionic_angular__WEBPACK_IMPORTED_MODULE_33__.IonContent, _ionic_angular__WEBPACK_IMPORTED_MODULE_33__.IonIcon, _ionic_angular__WEBPACK_IMPORTED_MODULE_33__.IonSkeletonText, _ionic_angular__WEBPACK_IMPORTED_MODULE_33__.IonText, _shared_components_header_header_component__WEBPACK_IMPORTED_MODULE_23__.HeaderComponent, _shared_components_offline_offline_component__WEBPACK_IMPORTED_MODULE_24__.OfflineComponent, _techiediaries_ngx_qrcode__WEBPACK_IMPORTED_MODULE_35__.QrcodeComponent, _shared_components_countdown_countdown_component__WEBPACK_IMPORTED_MODULE_25__.CountdownComponent, _ngx_translate_core__WEBPACK_IMPORTED_MODULE_36__.TranslatePipe], styles: ["ion-content[_ngcontent-%COMP%] {\n --overflow: hidden !important;\n overflow: hidden !important;\n}\nion-content[_ngcontent-%COMP%] .home-snackbar[_ngcontent-%COMP%] {\n position: relative;\n top: 0;\n left: 0;\n right: 0;\n width: 100%;\n z-index: 10;\n}\nion-content[_ngcontent-%COMP%] .home-snackbar__container[_ngcontent-%COMP%] {\n position: relative;\n width: 100%;\n max-height: 64px;\n z-index: 10;\n}\nion-content[_ngcontent-%COMP%] .home-snackbar__automatic-time[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n justify-content: center;\n width: 100%;\n background: #f2f2f2;\n position: relative;\n z-index: 10;\n}\nion-content[_ngcontent-%COMP%] .home-snackbar__automatic-time__message[_ngcontent-%COMP%] {\n color: #595959;\n font-size: 0.8rem;\n padding: 0.4em 8px 0.4em 0;\n text-align: justify;\n display: flex;\n align-items: center;\n}\nion-content[_ngcontent-%COMP%] .home-snackbar__automatic-time__message--small-screen[_ngcontent-%COMP%] {\n font-size: 11.8px;\n padding: 2px 5px;\n}\nion-content[_ngcontent-%COMP%] .home-snackbar__automatic-time__message__icon[_ngcontent-%COMP%] {\n font-size: 2em;\n padding-left: 0.6em;\n padding-right: 0.4em;\n}\nion-content[_ngcontent-%COMP%] .home-snackbar__offline[_ngcontent-%COMP%] {\n position: relative;\n width: 100%;\n z-index: 10;\n}\nion-content[_ngcontent-%COMP%] .home_content[_ngcontent-%COMP%] {\n background: #fff;\n display: flex;\n flex-direction: column;\n position: relative;\n overflow: hidden;\n justify-content: space-evenly;\n padding-bottom: 1.5rem;\n height: 100%;\n flex: 1 1 auto;\n}\nion-content[_ngcontent-%COMP%] .home_content__banner[_ngcontent-%COMP%] {\n width: 100%;\n z-index: 8;\n display: flex;\n align-items: center;\n justify-content: center;\n flex-direction: column;\n animation: fadeIn 0.5s ease-in-out;\n padding: 0 !important;\n}\nion-content[_ngcontent-%COMP%] .home_content__banner[_ngcontent-%COMP%] iframe[_ngcontent-%COMP%] {\n width: 100%;\n height: 100%;\n border: none;\n display: block;\n}\nion-content[_ngcontent-%COMP%] .home_content__invite_and_countdown[_ngcontent-%COMP%] {\n display: flex;\n justify-content: space-evenly;\n width: 100%;\n z-index: 5;\n flex-direction: column;\n box-sizing: border-box;\n flex: auto;\n height: 100%;\n}\nion-content[_ngcontent-%COMP%] .home_content__invite_section[_ngcontent-%COMP%] {\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n z-index: 5;\n min-width: 0;\n min-height: 0;\n padding: 0.5rem 0;\n}\nion-content[_ngcontent-%COMP%] .home_content__invite_section.hasBanner[_ngcontent-%COMP%] {\n min-height: 0;\n}\nion-content[_ngcontent-%COMP%] .home_content__invite_section.noBanner[_ngcontent-%COMP%] {\n flex: none !important;\n margin: 5rem 0;\n}\nion-content[_ngcontent-%COMP%] .home_content__invite_section[_ngcontent-%COMP%] ion-button[_ngcontent-%COMP%] {\n margin: 0;\n display: flex;\n justify-content: center;\n align-items: center;\n}\nion-content[_ngcontent-%COMP%] .home_content__error[_ngcontent-%COMP%] {\n flex: 1;\n display: flex;\n justify-content: center;\n align-items: center;\n z-index: 6;\n min-height: 0;\n padding: 0 1rem;\n}\nion-content[_ngcontent-%COMP%] .home_content__error[_ngcontent-%COMP%]:not(:empty) {\n flex: 1 1 auto;\n}\nion-content[_ngcontent-%COMP%] .home_content__countdown[_ngcontent-%COMP%] {\n position: relative;\n z-index: 9;\n max-height: -webkit-max-content;\n max-height: -moz-max-content;\n max-height: max-content;\n width: 100%;\n justify-content: center;\n align-items: center;\n}\nion-content[_ngcontent-%COMP%] .home_content__qrcode[_ngcontent-%COMP%] {\n display: flex;\n justify-content: center;\n align-items: center;\n}\nion-content[_ngcontent-%COMP%] .home_content__boxqr[_ngcontent-%COMP%] {\n display: flex;\n justify-content: center;\n align-items: center;\n}\nion-content[_ngcontent-%COMP%] .home_content__qr-code-holder[_ngcontent-%COMP%] {\n width: min(80vw, 40vh, 308px);\n display: flex;\n justify-content: center;\n align-items: center;\n}\nion-content[_ngcontent-%COMP%] .home_content__invite_section__button_holder[_ngcontent-%COMP%] {\n display: flex;\n justify-content: center;\n align-items: center;\n flex-direction: column;\n width: 100%;\n}\nion-content[_ngcontent-%COMP%] .home_content__invite_section__button_holder__invite[_ngcontent-%COMP%] {\n align-self: center;\n}\nion-content[_ngcontent-%COMP%] .home_content__invite_section__button_holder__message[_ngcontent-%COMP%] {\n width: 100%;\n text-align: center;\n padding: 0.5rem 1em;\n}\nion-content[_ngcontent-%COMP%] .hint[_ngcontent-%COMP%] {\n text-align: center;\n font-size: 0.85em;\n display: flex;\n justify-content: center;\n align-items: center;\n width: 100%;\n}\nion-content[_ngcontent-%COMP%] .hint[_ngcontent-%COMP%] ion-button[_ngcontent-%COMP%] {\n transition: background-color 0.1s ease-out, transform 0.1s ease;\n --box-shadow: 0;\n text-transform: none;\n height: clamp(40px, 8vh, 2em);\n min-height: 40px;\n font-size: clamp(0.7rem, 3vw, 1.1rem);\n font-size: 1em;\n min-width: 18vw;\n max-width: 30vw;\n}\nion-content[_ngcontent-%COMP%] .hint[_ngcontent-%COMP%] ion-button[_ngcontent-%COMP%]:active {\n transform: scale(0.97);\n}\nion-content[_ngcontent-%COMP%] .hint[_ngcontent-%COMP%] ion-button.small-screen[_ngcontent-%COMP%] {\n height: clamp(30px, 8vh, 2em);\n min-height: 30px;\n font-size: clamp(0.7rem, 3vw, 1.1rem);\n --padding-start: clamp(1em, 3vw, 1.25em);\n --padding-end: clamp(1em, 3vw, 1.25em);\n font-size: 0.9em;\n min-width: 16vw;\n max-width: 19vw;\n}\nion-content[_ngcontent-%COMP%] .hint--small-screen[_ngcontent-%COMP%] {\n font-size: 0.7em;\n padding: 0.6rem;\n}\nion-content[_ngcontent-%COMP%] .hint--small_screen[_ngcontent-%COMP%], ion-content[_ngcontent-%COMP%] .hint--small-screen[_ngcontent-%COMP%], ion-content[_ngcontent-%COMP%] .hint.small_screen[_ngcontent-%COMP%] {\n padding-top: 1em;\n}\nion-content[_ngcontent-%COMP%] .hint--toast_show_fcm[_ngcontent-%COMP%], ion-content[_ngcontent-%COMP%] .hint.toast_show_fcm[_ngcontent-%COMP%] {\n padding-top: 2rem;\n}\nion-content[_ngcontent-%COMP%] .hint--toast_show_fcm_small[_ngcontent-%COMP%], ion-content[_ngcontent-%COMP%] .hint.toast_show_fcm_small[_ngcontent-%COMP%] {\n padding-top: 2.5rem;\n}\nion-content[_ngcontent-%COMP%] .hint__associate_company[_ngcontent-%COMP%] {\n display: flex;\n justify-content: center;\n align-items: center;\n flex-direction: column;\n}\nion-content[_ngcontent-%COMP%] .hint__associate_company[_ngcontent-%COMP%] button[_ngcontent-%COMP%] {\n margin-top: 16px;\n font-size: clamp(0.7rem, 3vw, 1.1rem);\n color: #fff;\n background-color: #0ec254;\n padding: clamp(0.5em, 2vw, 0.75em) clamp(1em, 4vw, 1.25em);\n border-radius: 32px;\n transition: background-color 0.1s ease-out, transform 0.1s ease;\n height: clamp(30px, 8vh, 50px);\n}\nion-content[_ngcontent-%COMP%] .hint__associate_company[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:active {\n transform: scale(0.97);\n}\nion-content[_ngcontent-%COMP%] .hint__button_holder[_ngcontent-%COMP%] {\n display: flex;\n justify-content: center;\n align-items: center;\n flex-direction: column;\n width: 100%;\n}\nion-content[_ngcontent-%COMP%] .hint__button_holder[_ngcontent-%COMP%] ion-button[_ngcontent-%COMP%] {\n height: clamp(30px, 8vh, 50px);\n margin-top: 0;\n font-size: clamp(0.7rem, 3vw, 1.1rem);\n --color: #fff;\n --background: #0ec254;\n --padding-start: clamp(1em, 3vw, 1.25em);\n --padding-end: clamp(1em, 3vw, 1.25em);\n --border-radius: 32px;\n transition: background-color 0.1s ease-out, transform 0.1s ease;\n align-self: center;\n}\nion-content[_ngcontent-%COMP%] .hint__button_holder[_ngcontent-%COMP%] ion-button[_ngcontent-%COMP%]:active {\n transform: scale(0.97);\n}\nion-content[_ngcontent-%COMP%] .hint__button_holder__invite[_ngcontent-%COMP%] {\n align-self: center;\n}\nion-content[_ngcontent-%COMP%] .hint__button_holder__message[_ngcontent-%COMP%] {\n width: 100%;\n text-align: center;\n}\nion-content[_ngcontent-%COMP%] .home_content__invite_section__skeleton[_ngcontent-%COMP%] {\n display: flex;\n position: relative;\n flex-direction: column;\n align-content: center;\n width: 100%;\n align-items: center;\n}\nion-content[_ngcontent-%COMP%] .home_content__invite_section__skeleton__texts[_ngcontent-%COMP%] {\n display: flex;\n flex-direction: column;\n width: 100%;\n align-items: center;\n}\nion-content[_ngcontent-%COMP%] .home_content__invite_section__skeleton__texts[_ngcontent-%COMP%] > ion-skeleton-text[_ngcontent-%COMP%] {\n border-radius: 8px;\n}\nion-content[_ngcontent-%COMP%] .home_content__invite_section__skeleton__button[_ngcontent-%COMP%] {\n width: 8em;\n height: 36px;\n border-radius: 30px;\n}\nion-content[_ngcontent-%COMP%] .home_content__error__container[_ngcontent-%COMP%] {\n position: relative;\n display: flex;\n -webkit-box-pack: center;\n align-items: center;\n flex-direction: column;\n height: calc(100% - 3em);\n padding: 0 2em;\n color: #656768;\n justify-content: center;\n}\nion-content[_ngcontent-%COMP%] .home_content__error__container__message__title[_ngcontent-%COMP%], ion-content[_ngcontent-%COMP%] .home_content__error__container__message__description[_ngcontent-%COMP%] {\n margin: 4px 0;\n}\nion-content[_ngcontent-%COMP%] .home_content__error__container__restart_button[_ngcontent-%COMP%] {\n margin-top: 1em;\n font-size: 1em;\n color: #fff;\n background-color: #0ec254;\n padding: 0.75em 1.25em;\n border-radius: 32px;\n transition: background-color 0.1s ease-out;\n}\nion-content[_ngcontent-%COMP%] .home_content__error__container__restart_button[_ngcontent-%COMP%] button[_ngcontent-%COMP%] {\n background: transparent;\n color: #fff;\n}\nion-content[_ngcontent-%COMP%] .home_content__invite_section__associate_company[_ngcontent-%COMP%] {\n display: flex;\n justify-content: center;\n align-items: center;\n flex-direction: column;\n}\nion-content[_ngcontent-%COMP%] .home_content__invite_section__associate_company[_ngcontent-%COMP%] button[_ngcontent-%COMP%] {\n margin-top: 16px;\n font-size: clamp(0.7rem, 3vw, 1.1rem);\n color: #fff;\n background-color: #0ec254;\n padding: clamp(0.5em, 2vw, 0.75em) clamp(1em, 4vw, 1.25em);\n border-radius: 32px;\n transition: background-color 0.1s ease-out, transform 0.1s ease;\n height: clamp(30px, 8vh, 50px);\n}\nion-content[_ngcontent-%COMP%] .home_content__invite_section__associate_company[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:active {\n transform: scale(0.97);\n}\n@media (inverted-colors: inverted) {\n .isInvertColorIsEnableRevert[_ngcontent-%COMP%] {\n filter: invert(1);\n }\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImhvbWUucGFnZS5zY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0VBQ0UsNkJBQUE7RUFDQSwyQkFBQTtBQUNGO0FBRUU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1xuICAgICAgZGlzcGxheTogZmxleDtcbiAgICAgIGp1c3RpZnktY29udGVudDogc3BhY2UtZXZlbmx5O1xuICAgICAgd2lkdGg6IDEwMCU7XG4gICAgICB6LWluZGV4OiA1O1xuICAgICAgZmxleC1kaXJlY3Rpb246IGNvbHVtbjtcbiAgICAgIGJveC1zaXppbmc6IGJvcmRlci1ib3g7XG4gICAgICBmbGV4OiBhdXRvO1xuICAgICAgaGVpZ2h0OiAxMDAlO1xuICAgIH1cblxuICAgICZfX2ludml0ZV9zZWN0aW9uIHtcbiAgICAgIGRpc3BsYXk6IGZsZXg7XG4gICAgICBmbGV4LWRpcmVjdGlvbjogY29sdW1uO1xuICAgICAganVzdGlmeS1jb250ZW50OiBjZW50ZXI7XG4gICAgICBhbGlnbi1pdGVtczogY2VudGVyO1xuICAgICAgei1pbmRleDogNTtcbiAgICAgIG1pbi13aWR0aDogMDtcbiAgICAgIG1pbi1oZWlnaHQ6IDA7XG4gICAgICBwYWRkaW5nOiAwLjVyZW0gMDtcblxuICAgICAgJi5oYXNCYW5uZXIge1xuICAgICAgICAvLyBmbGV4OiAxO1xuICAgICAgICBtaW4taGVpZ2h0OiAwO1xuICAgICAgfVxuXG4gICAgICAmLm5vQmFubmVyIHtcbiAgICAgICAgZmxleDogbm9uZSAhaW1wb3J0YW50O1xuICAgICAgICBtYXJnaW46IDVyZW0gMDtcbiAgICAgIH1cblxuICAgICAgaW9uLWJ1dHRvbiB7XG4gICAgICAgIG1hcmdpbjogMDtcbiAgICAgICAgZGlzcGxheTogZmxleDtcbiAgICAgICAganVzdGlmeS1jb250ZW50OiBjZW50ZXI7XG4gICAgICAgIGFsaWduLWl0ZW1zOiBjZW50ZXI7XG4gICAgICB9XG4gICAgfVxuXG4gICAgJl9fZXJyb3Ige1xuICAgICAgZmxleDogMTtcbiAgICAgIGRpc3BsYXk6IGZsZXg7XG4gICAgICBqdXN0aWZ5LWNvbnRlbnQ6IGNlbnRlcjtcbiAgICAgIGFsaWduLWl0ZW1zOiBjZW50ZXI7XG4gICAgICB6LWluZGV4OiA2O1xuICAgICAgbWluLWhlaWdodDogMDtcbiAgICAgIHBhZGRpbmc6IDAgMXJlbTtcblxuICAgICAgJjpub3QoOmVtcHR5KSB7XG4gICAgICAgIGZsZXg6IDEgMSBhdXRvO1xuICAgICAgfVxuICAgIH1cblxuICAgICZfX2NvdW50ZG93biB7XG4gICAgICBwb3NpdGlvbjogcmVsYXRpdmU7XG4gICAgICB6LWluZGV4OiA5O1xuICAgICAgbWF4LWhlaWdodDogbWF4LWNvbnRlbnQ7XG4gICAgICB3aWR0aDogMTAwJTtcbiAgICAgIGp1c3RpZnktY29udGVudDogY2VudGVyO1xuICAgICAgYWxpZ24taXRlbXM6IGNlbnRlcjtcbiAgICB9XG5cbiAgICAmX19xcmNvZGUge1xuICAgICAgZGlzcGxheTogZmxleDtcbiAgICAgIGp1c3RpZnktY29udGVudDogY2VudGVyO1xuICAgICAgYWxpZ24taXRlbXM6IGNlbnRlcjtcbiAgICB9XG5cbiAgICAmX19ib3hxciB7XG4gICAgICBkaXNwbGF5OiBmbGV4O1xuICAgICAganVzdGlmeS1jb250ZW50OiBjZW50ZXI7XG4gICAgICBhbGlnbi1pdGVtczogY2VudGVyO1xuXG4gICAgfVxuXG4gICAgJl9fcXItY29kZS1ob2xkZXIge1xuXG4gICAgICB3aWR0aDogbWluKDgwdncsIDQwdmgsIDMwOHB4KTtcbiAgICAgIGRpc3BsYXk6IGZsZXg7XG4gICAgICBqdXN0aWZ5LWNvbnRlbnQ6IGNlbnRlcjtcbiAgICAgIGFsaWduLWl0ZW1zOiBjZW50ZXI7XG4gICAgfVxuICB9XG5cbiAgLmhvbWVfY29udGVudF9faW52aXRlX3NlY3Rpb25fX2J1dHRvbl9ob2xkZXIge1xuICAgIGRpc3BsYXk6IGZsZXg7XG4gICAganVzdGlmeS1jb250ZW50OiBjZW50ZXI7XG4gICAgYWxpZ24taXRlbXM6IGNlbnRlcjtcbiAgICBmbGV4LWRpcm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0ZXI6IGludmVydCgxKTtcbiAgfVxufVxuIl19 */"] }); /***/ }), /***/ 30834: /*!*********************************************************************************************!*\ !*** ./src/app/logistic-events/components/card-founduser-lg/card-founduser-lg.component.ts ***! \*********************************************************************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "CardFounduserLgComponent": () => (/* binding */ CardFounduserLgComponent) /* 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__); /* harmony import */ var _shared_services__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @shared/services */ 17253); /* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/common */ 90944); /* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_angular_common__WEBPACK_IMPORTED_MODULE_2__); /* harmony import */ var _ionic_angular__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @ionic/angular */ 93819); /* harmony import */ var _shared_components_avatar_avatar_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../shared/components/avatar/avatar.component */ 87871); function CardFounduserLgComponent_ng_container_0_ng_container_6_div_1_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 7); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); } if (rf & 2) { const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](3); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", ctx_r4.foundUser.document, " "); } } function CardFounduserLgComponent_ng_container_0_ng_container_6_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerStart"](0); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, CardFounduserLgComponent_ng_container_0_ng_container_6_div_1_Template, 2, 1, "div", 6); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerEnd"](); } if (rf & 2) { const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r2.foundUser == null ? null : ctx_r2.foundUser.document); } } function CardFounduserLgComponent_ng_container_0_ng_container_7_div_1_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 7); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); } if (rf & 2) { const ctx_r5 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](3); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", ctx_r5.foundUser.company, " "); } } function CardFounduserLgComponent_ng_container_0_ng_container_7_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerStart"](0); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, CardFounduserLgComponent_ng_container_0_ng_container_7_div_1_Template, 2, 1, "div", 6); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerEnd"](); } if (rf & 2) { const ctx_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r3.foundUser == null ? null : ctx_r3.foundUser.company); } } function CardFounduserLgComponent_ng_container_0_Template(rf, ctx) { if (rf & 1) { const _r7 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerStart"](0); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 1); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function CardFounduserLgComponent_ng_container_0_Template_div_click_1_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r7); const ctx_r6 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵresetView"](ctx_r6.userSelect.emit(ctx_r6.foundUser)); }); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](2, "app-avatar", 2); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "div", 3)(4, "div", 4); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](5); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](6, CardFounduserLgComponent_ng_container_0_ng_container_6_Template, 2, 1, "ng-container", 0); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](7, CardFounduserLgComponent_ng_container_0_ng_container_7_Template, 2, 1, "ng-container", 0); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](8, "ion-ripple-effect", 5); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerEnd"](); } if (rf & 2) { const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); let tmp_2_0; _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("firstName", ctx_r0.foundUser.firstName)("lastName", ctx_r0.foundUser.lastName)("thumbnailImage", (tmp_2_0 = (tmp_2_0 = ctx_r0.foundUser == null ? null : ctx_r0.foundUser.image) !== null && tmp_2_0 !== undefined ? tmp_2_0 : ctx_r0.foundUser == null ? null : ctx_r0.foundUser.thumbnailImage) !== null && tmp_2_0 !== undefined ? tmp_2_0 : null)("size", "md"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", ctx_r0.helperService.normalizeName(ctx_r0.foundUser.firstName, ctx_r0.foundUser.lastName), " "); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r0.typeofuser === "driver"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r0.typeofuser === "assistant"); } } function CardFounduserLgComponent_ng_container_1_div_6_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 14); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](1, "ion-skeleton-text", 15); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "div", 3)(3, "div", 4); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](4, "ion-skeleton-text", 16); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "div", 7); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](6, "ion-skeleton-text", 17); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()()(); } } const _c0 = function () { return [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]; }; function CardFounduserLgComponent_ng_container_1_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerStart"](0); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 8)(2, "div", 9)(3, "div", 10); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](4, "ion-skeleton-text", 11)(5, "ion-skeleton-text", 12); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()(); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](6, CardFounduserLgComponent_ng_container_1_div_6_Template, 7, 0, "div", 13); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerEnd"](); } if (rf & 2) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](6); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction0"](1, _c0)); } } class CardFounduserLgComponent { constructor(helperService) { this.helperService = helperService; this.skeleton = false; this.userSelect = new _angular_core__WEBPACK_IMPORTED_MODULE_0__.EventEmitter(); } ngOnInit() { } } CardFounduserLgComponent.ɵfac = function CardFounduserLgComponent_Factory(t) { return new (t || CardFounduserLgComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_1__.HelperService)); }; CardFounduserLgComponent.ɵcmp = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: CardFounduserLgComponent, selectors: [["app-card-founduser-lg"]], inputs: { foundUser: "foundUser", skeleton: "skeleton", typeofuser: "typeofuser" }, outputs: { userSelect: "userSelect" }, decls: 2, vars: 2, consts: [[4, "ngIf"], [1, "result", "ion-activatable", 3, "click"], [3, "firstName", "lastName", "thumbnailImage", "size"], [1, "user-info"], [1, "full-name"], ["type", "bounded"], ["class", "company", 4, "ngIf"], [1, "company"], [1, "results"], [1, "sub-title"], [1, "ion-text-center", 2, "display", "flex", "flex-direction", "column", "align-items", "center"], ["animated", "", 2, "width", "100%"], ["animated", "", 2, "width", "60%"], ["class", "result", 4, "ngFor", "ngForOf"], [1, "result"], ["animated", "", 1, "avatar-skeleton"], ["animated", "", 2, "width", "85%"], ["animated", "", 2, "width", "50%"]], template: function CardFounduserLgComponent_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](0, CardFounduserLgComponent_ng_container_0_Template, 9, 7, "ng-container", 0); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, CardFounduserLgComponent_ng_container_1_Template, 7, 2, "ng-container", 0); } if (rf & 2) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.foundUser && !ctx.skeleton); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.skeleton); } }, dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_2__.NgForOf, _angular_common__WEBPACK_IMPORTED_MODULE_2__.NgIf, _ionic_angular__WEBPACK_IMPORTED_MODULE_4__.IonRippleEffect, _ionic_angular__WEBPACK_IMPORTED_MODULE_4__.IonSkeletonText, _shared_components_avatar_avatar_component__WEBPACK_IMPORTED_MODULE_3__.AvatarComponent], styles: [".avatar-skeleton[_ngcontent-%COMP%] {\n width: 40px;\n height: 40px;\n border-radius: 50%;\n flex-shrink: 0;\n}\n\n.result[_ngcontent-%COMP%] {\n position: relative;\n margin: 10px 0;\n border: 1px solid #eee;\n border-radius: 4px;\n padding: 6px 10px;\n display: flex;\n align-items: center;\n gap: 10px;\n}\n\n.result[_ngcontent-%COMP%] app-avatar[_ngcontent-%COMP%] {\n flex-shrink: 0;\n}\n\n.result[_ngcontent-%COMP%] .user-info[_ngcontent-%COMP%] {\n flex: 1;\n min-width: 0;\n}\n\n.result[_ngcontent-%COMP%] .company[_ngcontent-%COMP%] {\n color: #aaa;\n font-size: 0.8em;\n}\n\n.results[_ngcontent-%COMP%] {\n padding: 1em;\n overflow: scroll;\n height: 100%;\n}\n\n.results[_ngcontent-%COMP%] .title[_ngcontent-%COMP%] {\n font-size: initial !important;\n font-weight: bold;\n text-align: left;\n}\n\n.results[_ngcontent-%COMP%] .sub-title[_ngcontent-%COMP%] {\n margin: 10px 0px;\n font-size: 0.9em;\n background-color: #eee;\n border: 1px solid #ccc;\n padding: 8px;\n border-radius: 2px;\n text-align: center;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImNhcmQtZm91bmR1c2VyLWxnLmNvbXBvbmVudC5zY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0VBQ0UsV0FBQTtFQUNBLFlBQUE7RUFDQSxrQkFBQTtFQUNBLGNBQUE7QUFDRjs7QUFDQTtFQUNFLGtCQUFBO0VBQ0EsY0FBQTtFQUNBLHNCQUFBO0VBQ0Esa0JBQUE7RUFDQSxpQkFBQTtFQUNBLGFBQUE7RUFDQSxtQkFBQTtFQUNBLFNBQUE7QUFFRjs7QUFBRTtFQUNFLGNBQUE7QUFFSjs7QUFDRTtFQUNFLE9BQUE7RUFDQS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GZvbnQtc2l6ZTogaW5pdGlhbCAhaW1wb3J0YW50O1xuICAgIGZvbnQtd2VpZ2h0OiBib2xkO1xuICAgIHRleHQtYWxpZ246IGxlZnQ7XG4gIH1cblxuICAuc3ViLXRpdGxlIHtcbiAgICBtYXJnaW46IDEwcHggMHB4O1xuICAgIGZvbnQtc2l6ZTogMC45ZW07XG4gICAgYmFja2dyb3VuZC1jb2xvcjogI2VlZTtcbiAgICBib3JkZXI6IDFweCBzb2xpZCAjY2NjO1xuICAgIHBhZGRpbmc6IDhweDtcbiAgICBib3JkZXItcmFkaXVzOiAycHg7XG4gICAgdGV4dC1hbGlnbjogY2VudGVyO1xuICB9XG59XG4iXX0= */"] }); /***/ }), /***/ 34645: /*!*****************************************************!*\ !*** ./src/app/logistic-events/components/index.ts ***! \*****************************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "CardFounduserLgComponent": () => (/* reexport safe */ _card_founduser_lg_card_founduser_lg_component__WEBPACK_IMPORTED_MODULE_0__.CardFounduserLgComponent), /* harmony export */ "JustifySelfInviteWithoutLocatorComponent": () => (/* reexport safe */ _justify_self_invite_without_locator_justify_self_invite_without_locator_component__WEBPACK_IMPORTED_MODULE_1__.JustifySelfInviteWithoutLocatorComponent), /* harmony export */ "LogisticJustifySelfInviteWithLocatorComponent": () => (/* reexport safe */ _logistic_justify_self_invite_with_locator_logistic_justify_self_invite_with_locator_component__WEBPACK_IMPORTED_MODULE_2__.LogisticJustifySelfInviteWithLocatorComponent), /* harmony export */ "SelectLogisticEventTypeModalComponent": () => (/* reexport safe */ _select_logistic_event_type_modal_select_logistic_event_type_modal_component__WEBPACK_IMPORTED_MODULE_3__.SelectLogisticEventTypeModalComponent), /* harmony export */ "SelectorForAssistantsToAddToEventComponent": () => (/* reexport safe */ _selector_for_assistants_to_add_to_event_selector_for_assistants_to_add_to_event_component__WEBPACK_IMPORTED_MODULE_4__.SelectorForAssistantsToAddToEventComponent), /* harmony export */ "SelectorForDriverToAddToEventComponent": () => (/* reexport safe */ _selector_for_driver_to_add_to_event_selector_for_driver_to_add_to_event_component__WEBPACK_IMPORTED_MODULE_5__.SelectorForDriverToAddToEventComponent), /* harmony export */ "SolveDriverCheckinConflictComponent": () => (/* reexport safe */ _solve_driver_checkin_conflict_solve_driver_checkin_conflict_component__WEBPACK_IMPORTED_MODULE_6__.SolveDriverCheckinConflictComponent) /* harmony export */ }); /* harmony import */ var _card_founduser_lg_card_founduser_lg_component__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./card-founduser-lg/card-founduser-lg.component */ 30834); /* harmony import */ var _justify_self_invite_without_locator_justify_self_invite_without_locator_component__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./justify-self-invite-without-locator/justify-self-invite-without-locator.component */ 72113); /* harmony import */ var _logistic_justify_self_invite_with_locator_logistic_justify_self_invite_with_locator_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./logistic-justify-self-invite-with-locator/logistic-justify-self-invite-with-locator.component */ 45003); /* harmony import */ var _select_logistic_event_type_modal_select_logistic_event_type_modal_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./select-logistic-event-type-modal/select-logistic-event-type-modal.component */ 70534); /* harmony import */ var _selector_for_assistants_to_add_to_event_selector_for_assistants_to_add_to_event_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./selector-for-assistants-to-add-to-event/selector-for-assistants-to-add-to-event.component */ 82366); /* harmony import */ var _selector_for_driver_to_add_to_event_selector_for_driver_to_add_to_event_component__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./selector-for-driver-to-add-to-event/selector-for-driver-to-add-to-event.component */ 33200); /* harmony import */ var _solve_driver_checkin_conflict_solve_driver_checkin_conflict_component__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./solve-driver-checkin-conflict/solve-driver-checkin-conflict.component */ 73543); /***/ }), /***/ 72113: /*!*********************************************************************************************************************************!*\ !*** ./src/app/logistic-events/components/justify-self-invite-without-locator/justify-self-invite-without-locator.component.ts ***! \*********************************************************************************************************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "JustifySelfInviteWithoutLocatorComponent": () => (/* binding */ JustifySelfInviteWithoutLocatorComponent) /* 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__); /* harmony import */ var _shared_services__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @shared/services */ 17253); /* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/forms */ 2508); /* harmony import */ var _ionic_angular__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @ionic/angular */ 93819); /* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/common */ 90944); /* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_angular_common__WEBPACK_IMPORTED_MODULE_2__); /* harmony import */ var _ngx_translate_core__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @ngx-translate/core */ 38699); function JustifySelfInviteWithoutLocatorComponent_div_19_div_1_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 16); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); } if (rf & 2) { const e_r2 = ctx.$implicit; _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", e_r2.message, " "); } } function JustifySelfInviteWithoutLocatorComponent_div_19_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 14); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, JustifySelfInviteWithoutLocatorComponent_div_19_div_1_Template, 2, 1, "div", 15); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); } if (rf & 2) { const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx_r0.getFieldInputValidationErrors("reason")); } } class JustifySelfInviteWithoutLocatorComponent { constructor(ngZoneService, createLogisticEventService, formBuilder, modalController, notificatorService, translateConfigService) { this.ngZoneService = ngZoneService; this.createLogisticEventService = createLogisticEventService; this.formBuilder = formBuilder; this.modalController = modalController; this.notificatorService = notificatorService; this.translateConfigService = translateConfigService; this.reasonFormErrors = []; this.onClose = () => { this.modalController.dismiss({ reason: null }); }; this.onSubmit = () => { const reason = this.reasonForm.controls.reason.value; const data = { reason }; const validationResult = this.validateInput(data); if (!!validationResult.length) { this.setValidationErrors(validationResult); const notification = { title: this.translateConfigService.translate('TOAST_INVALID_DATA_TITLE'), message: this.translateConfigService.translate('TOAST_INVALID_DATA_NESSAGE'), type: 'error' }; this.notificatorService.notify(notification); } else { this.modalController.dismiss({ reason }); } }; this.validateInput = data => { const errors = []; const reasonInputValidationErrors = this.validateReasonInput(data); if (reasonInputValidationErrors) { errors.push(reasonInputValidationErrors); } return errors; }; this.validateReasonInput = data => { if (!data.reason || data.reason.length < 1) { return { message: this.translateConfigService.translate('MD_JUSTIFY_INVITE_WITOUT_LOCATOR_JUSTIFICATION_PROVIDED'), field: 'reason' }; } return null; }; this.setValidationErrors = errors => { this.reasonFormErrors = errors; }; this.thereIsFieldInputValidationErrors = field => this.reasonFormErrors.find(e => e.field === field); this.getFieldInputValidationErrors = field => this.reasonFormErrors.filter(e => e.field === field); } ngOnInit() { this.reasonForm = this.formBuilder.group({ reason: [''] }); } } JustifySelfInviteWithoutLocatorComponent.ɵfac = function JustifySelfInviteWithoutLocatorComponent_Factory(t) { return new (t || JustifySelfInviteWithoutLocatorComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_1__.NgZoneService), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_1__.CreateLogisticEventService), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_3__.UntypedFormBuilder), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_ionic_angular__WEBPACK_IMPORTED_MODULE_4__.ModalController), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_1__.NotificatorService), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_1__.TranslateConfigService)); }; JustifySelfInviteWithoutLocatorComponent.ɵcmp = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: JustifySelfInviteWithoutLocatorComponent, selectors: [["app-justify-self-invite-without-locator"]], decls: 25, vars: 15, consts: [[3, "ngClass"], [1, "content"], [1, "modal-container"], [1, "modal-title"], [1, "button-holder"], [1, "back", 3, "click"], [1, "title"], [1, "modal-body"], [3, "formGroup", "ngSubmit"], [1, "input-holder"], ["maxlength", "55", "id", "reason", "formControlName", "reason", 3, "placeholder"], ["class", "errors", 4, "ngIf"], [1, "modal-footer"], ["type", "submit", 3, "click"], [1, "errors"], ["class", "error", 4, "ngFor", "ngForOf"], [1, "error"]], template: function JustifySelfInviteWithoutLocatorComponent_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 0)(1, "div", 1)(2, "div", 2)(3, "div", 3)(4, "div", 4)(5, "button", 5); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function JustifySelfInviteWithoutLocatorComponent_Template_button_click_5_listener() { return ctx.onClose(); }); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](6); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](7, "translate"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()(); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "div", 6); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](9); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](10, "translate"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()(); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](11, "div", 7)(12, "ion-row")(13, "ion-col")(14, "form", 8); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("ngSubmit", function JustifySelfInviteWithoutLocatorComponent_Template_form_ngSubmit_14_listener() { return ctx.onSubmit(); }); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](15, "div", 9)(16, "textarea", 10); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](17, "translate"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](18, " "); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](19, JustifySelfInviteWithoutLocatorComponent_div_19_Template, 2, 1, "div", 11); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()()()()(); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](20, "div", 12)(21, "div", 4)(22, "button", 13); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function JustifySelfInviteWithoutLocatorComponent_Template_button_click_22_listener() { return ctx.onSubmit(); }); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](23); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](24, "translate"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()()()()()(); } if (rf & 2) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngClass", "selector"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](6); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind1"](7, 7, "BTN_BACK")); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind1"](10, 9, "MD_JUSTIFY_INVITE_WITOUT_LOCATOR_TITLE")); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("formGroup", ctx.reasonForm); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("placeholder", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind1"](17, 11, "MD_JUSTIFY_INVITE_WITOUT_LOCATOR_INPUT")); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.thereIsFieldInputValidationErrors("reason")); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind1"](24, 13, "MD_JUSTIFY_INVITE_WITOUT_LOCATOR_BTN_CONFIRM_REFUSAL"), " "); } }, dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_2__.NgClass, _angular_common__WEBPACK_IMPORTED_MODULE_2__.NgForOf, _angular_common__WEBPACK_IMPORTED_MODULE_2__.NgIf, _ionic_angular__WEBPACK_IMPORTED_MODULE_4__.IonCol, _ionic_angular__WEBPACK_IMPORTED_MODULE_4__.IonRow, _angular_forms__WEBPACK_IMPORTED_MODULE_3__["ɵNgNoValidate"], _angular_forms__WEBPACK_IMPORTED_MODULE_3__.DefaultValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_3__.NgControlStatus, _angular_forms__WEBPACK_IMPORTED_MODULE_3__.NgControlStatusGroup, _angular_forms__WEBPACK_IMPORTED_MODULE_3__.MaxLengthValidator, _angular_forms__WEBPACK_IMPORTED_MODULE_3__.FormGroupDirective, _angular_forms__WEBPACK_IMPORTED_MODULE_3__.FormControlName, _ngx_translate_core__WEBPACK_IMPORTED_MODULE_5__.TranslatePipe], styles: [".selector[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] {\n height: 100vh;\n}\n.selector[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] {\n box-shadow: 0px -6px 3px rgba(0, 0, 0, 0.1);\n margin-top: 0;\n transition: margin-top 1s ease;\n background-color: #fff;\n height: 100%;\n overflow: scroll;\n}\n.selector[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-title[_ngcontent-%COMP%] {\n display: flex;\n padding-top: 1em;\n justify-content: center;\n align-items: center;\n flex-direction: column;\n}\n.selector[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-title[_ngcontent-%COMP%] .title[_ngcontent-%COMP%] {\n font-size: initial !important;\n font-weight: bold;\n text-align: center;\n margin: 32px;\n margin-bottom: 8px;\n}\n.selector[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-title[_ngcontent-%COMP%] .button-holder[_ngcontent-%COMP%] {\n justify-content: center;\n margin: 0;\n}\n.selector[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .input-holder[_ngcontent-%COMP%] {\n margin-top: 8px;\n display: flex;\n justify-content: center;\n align-items: center;\n flex-direction: column;\n}\n.selector[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .input-holder[_ngcontent-%COMP%] .upper-options[_ngcontent-%COMP%] {\n display: flex;\n justify-content: center;\n align-items: center;\n}\n.selector[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .input-holder[_ngcontent-%COMP%] .upper-options[_ngcontent-%COMP%] .new-holder[_ngcontent-%COMP%] {\n margin-top: 18px;\n}\n.selector[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .input-holder[_ngcontent-%COMP%] .upper-options[_ngcontent-%COMP%] .new-holder[_ngcontent-%COMP%] .button-holder[_ngcontent-%COMP%] {\n margin-top: 0;\n}\n.selector[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%] {\n -webkit-appearance: none;\n -moz-appearance: none;\n appearance: none;\n border: 1px solid #eee;\n border-radius: 8px;\n color: #656768;\n width: 100%;\n padding: 8px 8px;\n margin-top: 18px;\n}\n.selector[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]:focus {\n border: 1px solid #656768;\n outline: none;\n}\n.selector[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-footer[_ngcontent-%COMP%] .button-holder[_ngcontent-%COMP%] {\n display: flex;\n justify-content: center;\n align-items: center;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImp1c3RpZnktc2VsZi1pbnZpdGUtd2l0aG91dC1sb2NhdG9yLmNvbXBvbmVudC5zY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUNFO0VBQ0UsYUFBQTtBQUFKO0FBRUk7RUFDRSwyQ0FBQTtFQUNBLGFBQUE7RUFDQSw4QkFBQTtFQUNBLHNCQUFBO0VBQ0EsWUFBQTtFQUNBLGdCQUFBO0FBQU47QUFFTTtFQUNFLGFBQUE7RUFDQSxnQkFBQTtFQUNBLHVCQUFBO0VBQ0EsbUJBQUE7RUFDQSxzQkFBQTtBQUFSO0FBRVE7RUFDRSw2QkFBQTtFQUNBLGlCQUFBO0VBQ0Esa0JBQUE7RUFDQSxZQUFBO0VBQ0Esa0JBQUE7QUFBVjtBQUdRO0VBQ0UsdUJBQUE7RUFDQSxTQUFBO0FBRFY7QUFLTTtFQUNFLGVBQUE7RUFDQSxhQUFBO0VBQ0EsdUJBQUE7RUFDQSxtQkFBQTtFQUNBLHNCQUFBO0FBSFI7QUFLUTtFQUNFLGFBQUE7RUFDQSx1QkFBQTtFQUNBLG1CQUFBO0FBSFY7QUFLVTtFQUNFLGdCQUFBO0FBSFo7QUFLWTtFQUNFLGFBQUE7QUFIZDtBQVVRO0VBQ0Usd0JBQUE7S0FBQSxxQkFBQTtVQUFBLGdCQUFBO0VBQ0Esc0JBQUE7RUFDQSxrQkFBQTtFQUNBLGNBQUE7RUFDQSxXQUFBO0VB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1xuICAgICAgICAgIGp1c3RpZnktY29udGVudDogY2VudGVyO1xuICAgICAgICAgIG1hcmdpbjogMDtcbiAgICAgICAgfVxuICAgICAgfVxuXG4gICAgICAuaW5wdXQtaG9sZGVyIHtcbiAgICAgICAgbWFyZ2luLXRvcDogOHB4O1xuICAgICAgICBkaXNwbGF5OiBmbGV4O1xuICAgICAgICBqdXN0aWZ5LWNvbnRlbnQ6IGNlbnRlcjtcbiAgICAgICAgYWxpZ24taXRlbXM6IGNlbnRlcjtcbiAgICAgICAgZmxleC1kaXJlY3Rpb246IGNvbHVtbjtcblxuICAgICAgICAudXBwZXItb3B0aW9ucyB7XG4gICAgICAgICAgZGlzcGxheTogZmxleDtcbiAgICAgICAgICBqdXN0aWZ5LWNvbnRlbnQ6IGNlbnRlcjtcbiAgICAgICAgICBhbGlnbi1pdGVtczogY2VudGVyO1xuXG4gICAgICAgICAgLm5ldy1ob2xkZXIge1xuICAgICAgICAgICAgbWFyZ2luLXRvcDogMThweDtcblxuICAgICAgICAgICAgLmJ1dHRvbi1ob2xkZXIge1xuICAgICAgICAgICAgICBtYXJnaW4tdG9wOiAwO1xuICAgICAgICAgICAgfVxuICAgICAgICAgIH1cbiAgICAgICAgfVxuICAgICAgfVxuXG4gICAgICAubW9kYWwtYm9keSB7XG4gICAgICAgIHRleHRhcmVhIHtcbiAgICAgICAgICBhcHBlYXJhbmNlOiBub25lO1xuICAgICAgICAgIGJvcmRlcjogMXB4IHNvbGlkICNlZWU7XG4gICAgICAgICAgYm9yZGVyLXJhZGl1czogOHB4O1xuICAgICAgICAgIGNvbG9yOiAjNjU2NzY4O1xuICAgICAgICAgIHdpZHRoOiAxMDAlO1xuICAgICAgICAgIHBhZGRpbmc6IDhweCA4cHg7XG4gICAgICAgICAgbWFyZ2luLXRvcDogMThweDtcblxuICAgICAgICAgICY6Zm9jdXMge1xuICAgICAgICAgICAgYm9yZGVyOiAxcHggc29saWQgIzY1Njc2ODtcbiAgICAgICAgICAgIG91dGxpbmU6IG5vbmU7XG4gICAgICAgICAgfVxuICAgICAgICB9XG4gICAgICB9XG5cbiAgICAgIC5tb2RhbC1mb290ZXIge1xuICAgICAgICAuYnV0dG9uLWhvbGRlciB7XG4gICAgICAgICAgZGlzcGxheTogZmxleDtcbiAgICAgICAgICBqdXN0aWZ5LWNvbnRlbnQ6IGNlbnRlcjtcbiAgICAgICAgICBhbGlnbi1pdGVtczogY2VudGVyO1xuICAgICAgICB9XG4gICAgICB9XG4gICAgfVxuICB9XG59XG4iXX0= */"] }); /***/ }), /***/ 45003: /*!*********************************************************************************************************************************************!*\ !*** ./src/app/logistic-events/components/logistic-justify-self-invite-with-locator/logistic-justify-self-invite-with-locator.component.ts ***! \*********************************************************************************************************************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "LogisticJustifySelfInviteWithLocatorComponent": () => (/* binding */ LogisticJustifySelfInviteWithLocatorComponent) /* 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__); /* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/forms */ 2508); /* harmony import */ var _ionic_angular__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @ionic/angular */ 93819); /* harmony import */ var _shared_services__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @shared/services */ 17253); /* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/common */ 90944); /* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_angular_common__WEBPACK_IMPORTED_MODULE_2__); /* harmony import */ var _ngx_translate_core__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @ngx-translate/core */ 38699); function LogisticJustifySelfInviteWithLocatorComponent_ng_container_12_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerStart"](0); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 16)(2, "div", 17); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](3); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](4, "translate"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "div", 18)(6, "div", 19); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](7); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()()(); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerEnd"](); } if (rf & 2) { const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind1"](4, 3, "MD_JUSTIFY_LG_INVITE_WITOUT_LOCATOR_DESTINATION"), " "); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate2"]("", ctx_r0.data == null ? null : ctx_r0.data.firstName, " ", ctx_r0.data == null ? null : ctx_r0.data.lastName, ""); } } function LogisticJustifySelfInviteWithLocatorComponent_div_22_div_1_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 22); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); } if (rf & 2) { const e_r3 = ctx.$implicit; _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", e_r3.message, " "); } } function LogisticJustifySelfInviteWithLocatorComponent_div_22_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 20); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, LogisticJustifySelfInviteWithLocatorComponent_div_22_div_1_Template, 2, 1, "div", 21); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); } if (rf & 2) { const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx_r1.getFieldInputValidationErrors("reason")); } } const _c0 = function (a0) { return { "no-margim": a0 }; }; class LogisticJustifySelfInviteWithLocatorComponent { constructor(formBuilder, modalController, notificatorService, translateConfigService) { this.formBuilder = formBuilder; this.modalController = modalController; this.notificatorService = notificatorService; this.translateConfigService = translateConfigService; this.data = null; this.reasonFormErrors = []; this.onClose = () => { this.modalController.dismiss({ reason: null }); }; this.onSubmit = () => { const reason = this.reasonForm.controls.reason.value; const data = { reason }; const validationResult = this.validateInput(data); if (!!validationResult.length) { this.setValidationErrors(validationResult); const notification = { title: this.translateConfigService.translate('TOAST_INVALID_DATA_TITLE'), message: this.translateConfigService.translate('TOAST_INVALID_DATA_NESSAGE'), type: 'error' }; this.notificatorService.notify(notification); } else { this.modalController.dismiss({ reason }); } }; this.validateInput = data => { const errors = []; const reasonInputValidationErrors = this.validateReasonInput(data); if (reasonInputValidationErrors) { errors.push(reasonInputValidationErrors); } return errors; }; this.validateReasonInput = data => { if (!data.reason || data.reason.length < 1) { return { message: this.translateConfigService.translate('MD_JUSTIFY_LG_INVITE_WITOUT_LOCATOR_JUSTIFICATION_PROVIDED'), field: 'reason' }; } return null; }; this.setValidationErrors = errors => { this.reasonFormErrors = errors; }; this.thereIsFieldInputValidationErrors = field => this.reasonFormErrors.find(e => e.field === field); this.getFieldInputValidationErrors = field => this.reasonFormErrors.filter(e => e.field === field); } ngOnInit() { this.reasonForm = this.formBuilder.group({ reason: [''] }); } } LogisticJustifySelfInviteWithLocatorComponent.ɵfac = function LogisticJustifySelfInviteWithLocatorComponent_Factory(t) { return new (t || LogisticJustifySelfInviteWithLocatorComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_3__.UntypedFormBuilder), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_ionic_angular__WEBPACK_IMPORTED_MODULE_4__.ModalController), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_1__.NotificatorService), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_1__.TranslateConfigService)); }; LogisticJustifySelfInviteWithLocatorComponent.ɵcmp = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: LogisticJustifySelfInviteWithLocatorComponent, selectors: [["app-logistic-justify-self-invite-with-locator"]], inputs: { data: "data" }, decls: 28, vars: 23, consts: [[3, "ngClass"], [1, "content"], [1, "modal-container"], [1, "modal-title"], [1, "button-holder"], [1, "back", 3, "click"], [1, "title"], [1, "modal-body"], [4, "ngIf"], [3, "formGroup", "ngSubmit"], [1, "input-holder", 3, "ngClass"], ["maxlength", "55", "id", "reason", "formControlName", "reason", 3, "ngClass", "placeholder"], [1, "count"], ["class", "errors", 4, "ngIf"], [1, "modal-footer"], ["type", "submit", 3, "click"], [1, "destination-holder", 2, "margin-top", "0", "padding", "0 2.5em"], [1, "destination-label"], [1, "destination-box"], [1, "name"], [1, "errors"], ["class", "error", 4, "ngFor", "ngForOf"], [1, "error"]], template: function LogisticJustifySelfInviteWithLocatorComponent_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 0)(1, "div", 1)(2, "div", 2)(3, "div", 3)(4, "div", 4)(5, "button", 5); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function LogisticJustifySelfInviteWithLocatorComponent_Template_button_click_5_listener() { return ctx.onClose(); }); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](6); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](7, "translate"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()(); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "div", 6); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](9); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](10, "translate"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()(); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](11, "div", 7); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](12, LogisticJustifySelfInviteWithLocatorComponent_ng_container_12_Template, 8, 5, "ng-container", 8); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](13, "ion-row")(14, "ion-col")(15, "form", 9); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("ngSubmit", function LogisticJustifySelfInviteWithLocatorComponent_Template_form_ngSubmit_15_listener() { return ctx.onSubmit(); }); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](16, "div", 10)(17, "textarea", 11); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](18, "translate"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](19, " "); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](20, "div", 12); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](21); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](22, LogisticJustifySelfInviteWithLocatorComponent_div_22_Template, 2, 1, "div", 13); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()()()()(); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](23, "div", 14)(24, "div", 4)(25, "button", 15); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function LogisticJustifySelfInviteWithLocatorComponent_Template_button_click_25_listener() { return ctx.onSubmit(); }); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](26); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](27, "translate"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()()()()()(); } if (rf & 2) { let tmp_8_0; _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngClass", "selector"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](6); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind1"](7, 11, "BTN_BACK")); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind1"](10, 13, "MD_JUSTIFY_LG_INVITE_WITOUT_LOCATOR_TITLE")); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.data == null ? null : ctx.data.event); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("formGroup", ctx.reasonForm); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction1"](19, _c0, (ctx.data == null ? null : ctx.data.event) ? "no-margim" : "")); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction1"](21, _c0, (ctx.data == null ? null : ctx.data.event) ? "no-margim" : ""))("placeholder", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind1"](18, 15, "MD_JUSTIFY_LG_INVITE_WITOUT_LOCATOR_INPUT")); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"]("", (ctx.reasonForm == null ? null : (tmp_8_0 = ctx.reasonForm.get("reason")) == null ? null : tmp_8_0.value == null ? null : tmp_8_0.value.length) || 0, "/55"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.thereIsFieldInputValidationErrors("reason")); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind1"](27, 17, "MD_JUSTIFY_LG_INVITE_WITOUT_LOCATOR_BTN_CONFIRM_REFUSAL"), " "); } }, dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_2__.NgClass, _angular_common__WEBPACK_IMPORTED_MODULE_2__.NgForOf, _angular_common__WEBPACK_IMPORTED_MODULE_2__.NgIf, _ionic_angular__WEBPACK_IMPORTED_MODULE_4__.IonCol, _ionic_angular__WEBPACK_IMPORTED_MODULE_4__.IonRow, _angular_forms__WEBPACK_IMPORTED_MODULE_3__["ɵNgNoValidate"], _angular_forms__WEBPACK_IMPORTED_MODULE_3__.DefaultValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_3__.NgControlStatus, _angular_forms__WEBPACK_IMPORTED_MODULE_3__.NgControlStatusGroup, _angular_forms__WEBPACK_IMPORTED_MODULE_3__.MaxLengthValidator, _angular_forms__WEBPACK_IMPORTED_MODULE_3__.FormGroupDirective, _angular_forms__WEBPACK_IMPORTED_MODULE_3__.FormControlName, _ngx_translate_core__WEBPACK_IMPORTED_MODULE_5__.TranslatePipe], styles: ["ion-content.selector.ios[_ngcontent-%COMP%] {\n --offset-top: 0px !important;\n}\n\n.selector[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] {\n height: auto;\n max-height: 100%;\n}\n\n.selector[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] {\n box-shadow: 0px -6px 3px rgba(0, 0, 0, 0.1);\n margin-top: 0;\n transition: margin-top 1s ease;\n background-color: #fff;\n height: auto;\n max-height: 100%;\n overflow-y: auto;\n}\n\n.selector[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-title[_ngcontent-%COMP%] {\n display: flex;\n padding-top: 1em;\n justify-content: center;\n align-items: center;\n flex-direction: column;\n}\n\n.selector[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-title[_ngcontent-%COMP%] .title[_ngcontent-%COMP%] {\n font-size: initial !important;\n font-weight: bold;\n text-align: center;\n margin: 32px;\n margin-bottom: 8px;\n}\n\n.selector[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-title[_ngcontent-%COMP%] .button-holder[_ngcontent-%COMP%] {\n justify-content: center;\n margin: 0;\n}\n\n.selector[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .input-holder[_ngcontent-%COMP%] {\n margin-top: 8px;\n display: flex;\n justify-content: center;\n align-items: center;\n flex-direction: column;\n}\n\n.selector[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .input-holder[_ngcontent-%COMP%] .upper-options[_ngcontent-%COMP%] {\n display: flex;\n justify-content: center;\n align-items: center;\n}\n\n.selector[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .input-holder[_ngcontent-%COMP%] .upper-options[_ngcontent-%COMP%] .new-holder[_ngcontent-%COMP%] {\n margin-top: 18px;\n}\n\n.selector[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .input-holder[_ngcontent-%COMP%] .upper-options[_ngcontent-%COMP%] .new-holder[_ngcontent-%COMP%] .button-holder[_ngcontent-%COMP%] {\n margin-top: 0;\n}\n\n.selector[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%] .destination-label[_ngcontent-%COMP%] {\n font-weight: 500;\n font-size: 14px;\n color: #333333;\n width: 100%;\n text-align: left;\n margin-bottom: 6px;\n}\n\n.selector[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%] .destination-box[_ngcontent-%COMP%] {\n background: #f5f5f5;\n border: 1px solid #e0e0e0;\n border-radius: 4px;\n padding: 8px;\n width: 100%;\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: flex-start;\n gap: 8px;\n}\n\n.selector[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%] .destination-box[_ngcontent-%COMP%] .photo[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n justify-content: center;\n width: auto;\n}\n\n.selector[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%] .destination-box[_ngcontent-%COMP%] .photo[_ngcontent-%COMP%] ion-avatar[_ngcontent-%COMP%] {\n width: 48px;\n height: 48px;\n}\n\n.selector[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%] .destination-box[_ngcontent-%COMP%] .photo[_ngcontent-%COMP%] .initials.escort[_ngcontent-%COMP%] {\n width: 48px !important;\n height: 48px !important;\n min-width: 48px !important;\n border-radius: 50%;\n display: flex;\n justify-content: center;\n align-items: center;\n background-color: #eee;\n}\n\n.selector[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%] .destination-box[_ngcontent-%COMP%] .name[_ngcontent-%COMP%] {\n text-align: left;\n font-size: 12px;\n color: #666666;\n width: auto;\n}\n\n@media (max-width: 480px) {\n .selector[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%] .destination-box[_ngcontent-%COMP%] {\n padding: 6px;\n gap: 6px;\n }\n .selector[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%] .destination-label[_ngcontent-%COMP%] {\n font-size: 13px;\n }\n .selector[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%] .destination-box[_ngcontent-%COMP%] .photo[_ngcontent-%COMP%] ion-avatar[_ngcontent-%COMP%], .selector[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%] .destination-box[_ngcontent-%COMP%] .photo[_ngcontent-%COMP%] .initials.escort[_ngcontent-%COMP%] {\n width: 44px;\n height: 44px;\n min-width: 44px;\n }\n .selector[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%] .destination-box[_ngcontent-%COMP%] .name[_ngcontent-%COMP%] {\n font-size: 12px;\n }\n}\n\n.selector[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%] .count[_ngcontent-%COMP%] {\n align-self: flex-start;\n font-size: 11px;\n color: #bbb;\n margin-top: 2px;\n}\n\n.selector[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%] textarea.no-margim[_ngcontent-%COMP%] {\n margin-top: 0;\n}\n\n.selector[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%] {\n -webkit-appearance: none;\n -moz-appearance: none;\n appearance: none;\n border: 1px solid #eee;\n border-radius: 8px;\n color: #656768;\n width: 100%;\n padding: 8px 8px;\n margin-top: 18px;\n}\n\n.selector[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]:focus {\n border: 1px solid #656768;\n outline: none;\n}\n\n.selector[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-footer[_ngcontent-%COMP%] {\n margin-bottom: 1em;\n display: flex;\n justify-content: center;\n padding: 1em;\n}\n\n.selector[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-footer[_ngcontent-%COMP%] .button-holder[_ngcontent-%COMP%] {\n text-align: center;\n margin: auto;\n width: 100%;\n display: flex;\n justify-content: center;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImxvZ2lzdGljLWp1c3RpZnktc2VsZi1pbnZpdGUtd2l0aC1sb2NhdG9yLmNvbXBvbmVudC5zY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0VBQ0UsNEJBQUE7QUFDRjs7QUFHRTtFQUNFLFlBQUE7RUFDQSxnQkFBQTtBQUFKOztBQUVJO0VBQ0UsMkNBQUE7RUFDQSxhQUFBO0VBQ0EsOEJBQUE7RUFDQSxzQkFBQTtFQUNBLFlBQUE7RUFDQSxnQkFBQTtFQUNBLGdCQUFBO0FBQU47O0FBRU07RUFDRSxhQUFBO0VBQ0EsZ0JBQUE7RUFDQSx1QkFBQTtFQUNBLG1CQUFBO0VBQ0Esc0JBQUE7QUFBUjs7QUFFUTtFQUNFLDZCQUFBO0VBQ0EsaUJBQUE7RUFDQSxrQkFBQTtFQUNBLFlBQUE7RUFDQSxrQkFBQTtBQUFWOztBQUdRO0VBQ0UsdUJBQUE7RUFDQSxTQUFBO0FBRFY7O0FBS007RUFDRSxlQUFBO0VBQ0EsYUFBQTtFQUNBLHVCQUFBO0VBQ0EsbUJBQUE7RUFDQSxzQkFBQTtBQUhSOztBQUtRO0VBQ0UsYUFBQTtFQUNBLHVCQUFBO0VBQ0EsbUJBQUE7QUFIVjs7QUFLVTtFQUNFLGdCQUFBO0FBSFo7O0FBS1k7RUFDRSxhQUFBO0FBSGQ7O0FBVVE7RUFDRSxnQkFBQTtFQUNBLGVBQUE7RUFDQSxjQUFBO0VBQ0EsV0FBQTtFQUNBLGdCQUFBO0VBQ0Esa0JBQUE7QUFSVjs7QUFXUTtFQUNFLG1CQUFBO0VBQ0EseUJBQUE7RUFDQSx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O1xuICAgICAgICB9XG5cbiAgICAgICAgLmJ1dHRvbi1ob2xkZXIge1xuICAgICAgICAgIGp1c3RpZnktY29udGVudDogY2VudGVyO1xuICAgICAgICAgIG1hcmdpbjogMDtcbiAgICAgICAgfVxuICAgICAgfVxuXG4gICAgICAuaW5wdXQtaG9sZGVyIHtcbiAgICAgICAgbWFyZ2luLXRvcDogOHB4O1xuICAgICAgICBkaXNwbGF5OiBmbGV4O1xuICAgICAgICBqdXN0aWZ5LWNvbnRlbnQ6IGNlbnRlcjtcbiAgICAgICAgYWxpZ24taXRlbXM6IGNlbnRlcjtcbiAgICAgICAgZmxleC1kaXJlY3Rpb246IGNvbHVtbjtcblxuICAgICAgICAudXBwZXItb3B0aW9ucyB7XG4gICAgICAgICAgZGlzcGxheTogZmxleDtcbiAgICAgICAgICBqdXN0aWZ5LWNvbnRlbnQ6IGNlbnRlcjtcbiAgICAgICAgICBhbGlnbi1pdGVtczogY2VudGVyO1xuXG4gICAgICAgICAgLm5ldy1ob2xkZXIge1xuICAgICAgICAgICAgbWFyZ2luLXRvcDogMThweDtcblxuICAgICAgICAgICAgLmJ1dHRvbi1ob2xkZXIge1xuICAgICAgICAgICAgICBtYXJnaW4tdG9wOiAwO1xuICAgICAgICAgICAgfVxuICAgICAgICAgIH1cbiAgICAgICAgfVxuICAgICAgfVxuXG4gICAgICAubW9kYWwtYm9keSB7XG4gICAgICAgIC5kZXN0aW5hdGlvbi1sYWJlbCB7XG4gICAgICAgICAgZm9udC13ZWlnaHQ6IDUwMDtcbiAgICAgICAgICBmb250LXNpemU6IDE0cHg7XG4gICAgICAgICAgY29sb3I6ICMzMzMzMzM7XG4gICAgICAgICAgd2lkdGg6IDEwMCU7XG4gICAgICAgICAgdGV4dC1hbGlnbjogbGVmdDtcbiAgICAgICAgICBtYXJnaW4tYm90dG9tOiA2cHg7XG4gICAgICAgIH1cblxuICAgICAgICAuZGVzdGluYXRpb24tYm94IHtcbiAgICAgICAgICBiYWNrZ3JvdW5kOiAjZjVmNWY1O1xuICAgICAgICAgIGJvcmRlcjogMXB4IHNvbGlkICNlMGUwZTA7XG4gICAgICAgICAgYm9yZGVyLXJhZGl1czogNHB4O1xuICAgICAgICAgIHBhZGRpbmc6IDhweDtcbiAgICAgICAgICB3aWR0aDogMTAwJTtcbiAgICAgICAgICBkaXNwbGF5OiBmbGV4O1xuICAgICAgICAgIGZsZXgtZGlyZWN0aW9uOiByb3c7XG4gICAgICAgICAgYWxpZ24taXRlbXM6IGNlbnRlcjtcbiAgICAgICAgICBqdXN0aWZ5LWNvbnRlbnQ6IGZsZXgtc3RhcnQ7XG4gICAgICAgICAgZ2FwOiA4cHg7XG4gICAgICAgIH1cblxuICAgICAgICAuZGVzdGluYXRpb24tYm94IC5waG90byB7XG4gICAgICAgICAgZGlzcGxheTogZmxleDtcbiAgICAgICAgICBhbGlnbi1pdGVtczogY2VudGVyO1xuICAgICAgICAgIGp1c3RpZnktY29udGVudDogY2VudGVyO1xuICAgICAgICAgIHdpZHRoOiBhdXRvO1xuICAgICAgICB9XG5cbiAgICAgICAgLmRlc3RpbmF0aW9uLWJveCAucGhvdG8gaW9uLWF2YXRhciB7XG4gICAgICAgICAgd2lkdGg6IDQ4cHg7XG4gICAgICAgICAgaGVpZ2h0OiA0OHB4O1xuICAgICAgICB9XG5cbiAgICAgICAgLmRlc3RpbmF0aW9uLWJveCAucGhvdG8gLmluaXRpYWxzLmVzY29ydCB7XG4gICAgICAgICAgd2lkdGg6IDQ4cHggIWltcG9ydGFudDtcbiAgICAgICAgICBoZWlnaHQ6IDQ4cHggIWltcG9ydGFudDtcbiAgICAgICAgICBtaW4td2lkdGg6IDQ4cHggIWltcG9ydGFudDtcbiAgICAgICAgICBib3JkZXItcmFkaXVzOiA1MCU7XG4gICAgICAgICAgZGlzcGxheTogZmxleDtcbiAgICAgICAgICBqdXN0aWZ5LWNvbnRlbnQ6IGNlbnRlcjtcbiAgICAgICAgICBhbGlnbi1pdGVtczogY2VudGVyO1xuICAgICAgICAgIGJhY2tncm91bmQtY29sb3I6ICNlZWU7XG4gICAgICAgIH1cblxuICAgICAgICAuZGVzdGluYXRpb24tYm94IC5uYW1lIHtcbiAgICAgICAgICB0ZXh0LWFsaWduOiBsZWZ0O1xuICAgICAgICAgIGZvbnQtc2l6ZTogMTJweDtcbiAgICAgICAgICBjb2xvcjogIzY2NjY2NjtcbiAgICAgICAgICB3aWR0aDogYXV0bztcbiAgICAgICAgfVxuXG4gICAgICAgIEBtZWRpYSAobWF4LXdpZHRoOiA0ODBweCkge1xuICAgICAgICAgIC5kZXN0aW5hdGlvbi1ib3gge1xuICAgICAgICAgICAgcGFkZGluZzogNnB4O1xuICAgICAgICAgICAgZ2FwOiA2cHg7XG4gICAgICAgICAgfVxuXG4gICAgICAgICAgLmRlc3RpbmF0aW9uLWxhYmVsIHtcbiAgICAgICAgICAgIGZvbnQtc2l6ZTogMTNweDtcbiAgICAgICAgICB9XG5cbiAgICAgICAgICAuZGVzdGluYXRpb24tYm94IC5waG90byBpb24tYXZhdGFyLFxuICAgICAgICAgIC5kZXN0aW5hdGlvbi1ib3ggLnBob3RvIC5pbml0aWFscy5lc2NvcnQge1xuICAgICAgICAgICAgd2lkdGg6IDQ0cHg7XG4gICAgICAgICAgICBoZWlnaHQ6IDQ0cHg7XG4gICAgICAgICAgICBtaW4td2lkdGg6IDQ0cHg7XG4gICAgICAgICAgfVxuXG4gICAgICAgICAgLmRlc3RpbmF0aW9uLWJveCAubmFtZSB7XG4gICAgICAgICAgICBmb250LXNpemU6IDEycHg7XG4gICAgICAgICAgfVxuICAgICAgICB9XG5cbiAgICAgICAgLmNvdW50IHtcbiAgICAgICAgICBhbGlnbi1zZWxmOiBmbGV4LXN0YXJ0O1xuICAgICAgICAgIGZvbnQtc2l6ZTogMTFweDtcbiAgICAgICAgICBjb2xvcjogI2JiYjtcbiAgICAgICAgICBtYXJnaW4tdG9wOiAycHg7XG4gICAgICAgIH1cblxuICAgICAgICB0ZXh0YXJlYS5uby1tYXJnaW0ge1xuICAgICAgICAgIG1hcmdpbi10b3A6IDA7XG4gICAgICAgIH1cbiAgICAgICAgdGV4dGFyZWEge1xuICAgICAgICAgIGFwcGVhcmFuY2U6IG5vbmU7XG4gICAgICAgICAgYm9yZGVyOiAxcHggc29saWQgI2VlZTtcbiAgICAgICAgICBib3JkZXItcmFkaXVzOiA4cHg7XG4gICAgICAgICAgY29sb3I6ICM2NTY3Njg7XG4gICAgICAgICAgd2lkdGg6IDEwMCU7XG4gICAgICAgICAgcGFkZGluZzogOHB4IDhweDtcbiAgICAgICAgICBtYXJnaW4tdG9wOiAxOHB4O1xuXG4gICAgICAgICAgJjpmb2N1cyB7XG4gICAgICAgICAgICBib3JkZXI6IDFweCBzb2xpZCAjNjU2NzY4O1xuICAgICAgICAgICAgb3V0bGluZTogbm9uZTtcbiAgICAgICAgICB9XG4gICAgICAgIH1cbiAgICAgIH1cbiAgICAgIC5tb2RhbC1mb290ZXIge1xuICAgICAgICBtYXJnaW4tYm90dG9tOiAxZW07XG4gICAgICAgIGRpc3BsYXk6IGZsZXg7XG4gICAgICAgIGp1c3RpZnktY29udGVudDogY2VudGVyO1xuICAgICAgICBwYWRkaW5nOiAxZW07XG4gICAgICAgIC5idXR0b24taG9sZGVyIHtcbiAgICAgICAgICB0ZXh0LWFsaWduOiBjZW50ZXI7XG4gICAgICAgICAgbWFyZ2luOiBhdXRvO1xuICAgICAgICAgIHdpZHRoOiAxMDAlO1xuICAgICAgICAgIGRpc3BsYXk6IGZsZXg7XG4gICAgICAgICAganVzdGlmeS1jb250ZW50OiBjZW50ZXI7XG4gICAgICAgIH1cbiAgICAgIH1cbiAgICB9XG4gIH1cbn1cbiJdfQ== */"] }); /***/ }), /***/ 70534: /*!***************************************************************************************************************************!*\ !*** ./src/app/logistic-events/components/select-logistic-event-type-modal/select-logistic-event-type-modal.component.ts ***! \***************************************************************************************************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "SelectLogisticEventTypeModalComponent": () => (/* binding */ SelectLogisticEventTypeModalComponent) /* 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__); /* harmony import */ var _ionic_angular__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @ionic/angular */ 93819); /* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/common */ 90944); /* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_angular_common__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var _ngx_translate_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @ngx-translate/core */ 38699); function SelectLogisticEventTypeModalComponent_ion_card_11_Template(rf, ctx) { if (rf & 1) { const _r4 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "ion-card", 12); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function SelectLogisticEventTypeModalComponent_ion_card_11_Template_ion_card_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r4); const ctx_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵresetView"](ctx_r3.createNewConventional()); }); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "ion-label")(2, "h6", 13); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](3); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](4, "translate"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "p", 14); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](6); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](7, "translate"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()()(); } if (rf & 2) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind1"](4, 2, "MD_EVENT_TYPE_VISITOR")); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind1"](7, 4, "MD_EVENT_TYPE_VISITOR_NEW_EVENT"), " "); } } function SelectLogisticEventTypeModalComponent_ion_card_12_Template(rf, ctx) { if (rf & 1) { const _r6 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "ion-card", 12); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function SelectLogisticEventTypeModalComponent_ion_card_12_Template_ion_card_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r6); const ctx_r5 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵresetView"](ctx_r5.createNewEntry()); }); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "ion-label")(2, "h6", 13); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](3); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](4, "translate"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "p", 14); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](6); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](7, "translate"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()()(); } if (rf & 2) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind1"](4, 2, "MD_EVENT_TYPE_CARGO_ARRIVAL"), " "); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind1"](7, 4, "MD_EVENT_TYPE_CARGO_ARRIVAL_NEW"), " "); } } function SelectLogisticEventTypeModalComponent_ion_card_13_Template(rf, ctx) { if (rf & 1) { const _r8 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "ion-card", 12); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function SelectLogisticEventTypeModalComponent_ion_card_13_Template_ion_card_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r8); const ctx_r7 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵresetView"](ctx_r7.createNewExit()); }); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "ion-label")(2, "h6", 13); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](3); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](4, "translate"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "p", 14); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](6); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](7, "translate"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()()(); } if (rf & 2) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind1"](4, 2, "MD_EVENT_TYPE_CARGO_DEPARTURE")); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind1"](7, 4, "MD_EVENT_TYPE_CARGO_DEPARTURE_NEW"), " "); } } class SelectLogisticEventTypeModalComponent { constructor(modalController) { this.modalController = modalController; this.availableTypes = []; this.createNewConventional = () => { this.modalController.dismiss({ type: 'CONVENTIONAL' }); }; this.createNewEntry = () => { this.modalController.dismiss({ type: 'NEW_ENTRY' }); }; this.createEntryFromExit = () => { this.modalController.dismiss({ type: 'CLONE_EXIT' }); }; this.createNewExit = () => { this.modalController.dismiss({ type: 'NEW_EXIT' }); }; this.createExitFromEntry = () => { this.modalController.dismiss({ type: 'CLONE_ENTRY' }); }; this.back = () => { this.modalController.dismiss(null); }; } } SelectLogisticEventTypeModalComponent.ɵfac = function SelectLogisticEventTypeModalComponent_Factory(t) { return new (t || SelectLogisticEventTypeModalComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_ionic_angular__WEBPACK_IMPORTED_MODULE_2__.ModalController)); }; SelectLogisticEventTypeModalComponent.ɵcmp = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: SelectLogisticEventTypeModalComponent, selectors: [["app-select-logistic-event-type-modal"]], inputs: { availableTypes: "availableTypes" }, decls: 18, vars: 10, consts: [[3, "ngClass"], [1, "content"], [1, "background"], [1, "modal-container"], [1, "modal-title"], ["tabindex", "1"], [1, "modal-body"], [1, "types"], ["lines", "none", 2, "padding", "0 2px"], ["button", "", "class", "type ion-no-padding", 3, "click", 4, "ngIf"], [1, "modal-footer"], ["mode", "ios", "fill", "clear", 1, "reject", 3, "click"], ["button", "", 1, "type", "ion-no-padding", 3, "click"], [1, "name"], [1, "description", "ion-text-wrap"]], template: function SelectLogisticEventTypeModalComponent_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 0)(1, "div", 1); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](2, "div", 2); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "div", 3)(4, "div", 4)(5, "h6", 5); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](6); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](7, "translate"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()(); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "div", 6)(9, "div", 7)(10, "ion-list", 8); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](11, SelectLogisticEventTypeModalComponent_ion_card_11_Template, 8, 6, "ion-card", 9); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](12, SelectLogisticEventTypeModalComponent_ion_card_12_Template, 8, 6, "ion-card", 9); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](13, SelectLogisticEventTypeModalComponent_ion_card_13_Template, 8, 6, "ion-card", 9); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()()(); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](14, "div", 10)(15, "ion-button", 11); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function SelectLogisticEventTypeModalComponent_Template_ion_button_click_15_listener() { return ctx.back(); }); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](16); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](17, "translate"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()()()()(); } if (rf & 2) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngClass", "select-logistic-event-type-modal"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](6); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind1"](7, 6, "MD_EVENT_TYPE_TITLE")); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.availableTypes.includes("CONVENTIONAL")); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.availableTypes.includes("ENTRY")); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.availableTypes.includes("EXIT")); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind1"](17, 8, "BTN_BACK"), " "); } }, dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_1__.NgClass, _angular_common__WEBPACK_IMPORTED_MODULE_1__.NgIf, _ionic_angular__WEBPACK_IMPORTED_MODULE_2__.IonButton, _ionic_angular__WEBPACK_IMPORTED_MODULE_2__.IonCard, _ionic_angular__WEBPACK_IMPORTED_MODULE_2__.IonLabel, _ionic_angular__WEBPACK_IMPORTED_MODULE_2__.IonList, _ngx_translate_core__WEBPACK_IMPORTED_MODULE_3__.TranslatePipe], styles: [".select-logistic-event-type-modal[_ngcontent-%COMP%] {\n width: 100vw;\n transition: height 0.5s ease-in-out;\n overflow: hidden;\n z-index: 1000;\n height: 100vh;\n}\n.select-logistic-event-type-modal[_ngcontent-%COMP%] h1[_ngcontent-%COMP%], .select-logistic-event-type-modal[_ngcontent-%COMP%] h2[_ngcontent-%COMP%], .select-logistic-event-type-modal[_ngcontent-%COMP%] h3[_ngcontent-%COMP%], .select-logistic-event-type-modal[_ngcontent-%COMP%] h4[_ngcontent-%COMP%], .select-logistic-event-type-modal[_ngcontent-%COMP%] h5[_ngcontent-%COMP%], .select-logistic-event-type-modal[_ngcontent-%COMP%] h6[_ngcontent-%COMP%] {\n all: unset !important;\n}\n.select-logistic-event-type-modal[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] {\n height: 100vh;\n position: absolute;\n width: 100vw;\n top: 0;\n color: #383a3e;\n}\n.select-logistic-event-type-modal[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .background[_ngcontent-%COMP%] {\n position: absolute;\n height: 100vh;\n width: 100vw;\n background-color: #333;\n opacity: 0.3;\n top: 0;\n transition: opacity 0.5s ease-out;\n}\n.select-logistic-event-type-modal[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] {\n height: 60vh;\n background-color: #fff;\n width: 86vw;\n margin: auto;\n border-radius: 8px;\n padding: 24px;\n box-shadow: 2px 2px 0 0 rgba(0, 0, 0, 0.1);\n position: relative;\n margin-top: 20vh;\n transition: margin-top 1s ease;\n}\n.select-logistic-event-type-modal[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-title[_ngcontent-%COMP%] {\n text-align: center;\n font-weight: 500;\n position: absolute;\n top: 0;\n height: 3.5em;\n line-height: 3.5em;\n width: calc(100% - 48px);\n background-color: #fff;\n}\n.select-logistic-event-type-modal[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%] {\n position: absolute;\n height: calc(100% - 7em);\n width: calc(100% - 48px);\n top: 3.5em;\n overflow-y: scroll;\n text-align: justify;\n font-size: 0.9em;\n background-color: #fff;\n}\n.select-logistic-event-type-modal[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%] ion-card[_ngcontent-%COMP%] {\n margin: 0;\n box-shadow: none;\n}\n.select-logistic-event-type-modal[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%] .type[_ngcontent-%COMP%] {\n padding: 8px 12px;\n border: 1px solid #eee;\n border-radius: 4px;\n margin-bottom: 8px;\n}\n.select-logistic-event-type-modal[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%] .type[_ngcontent-%COMP%] .name[_ngcontent-%COMP%] {\n font-weight: bold;\n}\n.select-logistic-event-type-modal[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%] .type[_ngcontent-%COMP%] .description[_ngcontent-%COMP%] {\n color: #656768;\n}\n.select-logistic-event-type-modal[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-footer[_ngcontent-%COMP%] {\n position: absolute;\n bottom: 0;\n height: 3.5em;\n width: calc(100% - 48px);\n line-height: 3.5em;\n display: flex;\n justify-content: center;\n align-items: center;\n overflow: hidden;\n background-color: #fff;\n}\n.select-logistic-event-type-modal[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-footer[_ngcontent-%COMP%] ion-button[_ngcontent-%COMP%] {\n font-size: 1em;\n background-color: #fff;\n color: #656768;\n padding: 0.75em 1.25em;\n border-radius: 32px;\n transition: background-color 0.1s ease-out;\n height: 36px;\n}\n.select-logistic-event-type-modal[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-footer[_ngcontent-%COMP%] ion-button[_ngcontent-%COMP%]:active {\n background-color: #eee;\n color: #656768;\n transition: background-color 0.1s ease-out;\n}\n.select-logistic-event-type-modal[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-footer[_ngcontent-%COMP%] ion-button.accept[_ngcontent-%COMP%] {\n color: #0ec254;\n}\n.select-logistic-event-type-modal[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-footer[_ngcontent-%COMP%] ion-button.accept[_ngcontent-%COMP%]:active {\n background-color: #0ec254;\n color: #fff;\n transition: background-color 0.1s ease-out;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNlbGVjdC1sb2dpc3RpYy1ldmVudC10eXBlLW1vZGFsLmNvbXBvbmVudC5zY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0VBVUUsWUFBQTtFQUNBLG1DQUFBO0VBQ0EsZ0JBQUE7RUFDQSxhQUFBO0VBQ0EsYUFBQTtBQVJGO0FBSkU7Ozs7OztFQU1FLHFCQUFBO0FBTUo7QUFFRTtFQUNFLGFBQUE7RUFDQSxrQkFBQTtFQUNBLFlBQUE7RUFDQSxNQUFB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IC50eXBlIHtcbiAgICAgICAgICBwYWRkaW5nOiA4cHggMTJweDtcbiAgICAgICAgICBib3JkZXI6IDFweCBzb2xpZCAjZWVlO1xuICAgICAgICAgIGJvcmRlci1yYWRpdXM6IDRweDtcbiAgICAgICAgICBtYXJnaW4tYm90dG9tOiA4cHg7XG5cbiAgICAgICAgICAubmFtZSB7XG4gICAgICAgICAgICBmb250LXdlaWdodDogYm9sZDtcbiAgICAgICAgICB9XG5cbiAgICAgICAgICAuZGVzY3JpcHRpb24ge1xuICAgICAgICAgICAgY29sb3I6ICM2NTY3Njg7XG4gICAgICAgICAgfVxuICAgICAgICB9XG4gICAgICB9XG5cbiAgICAgIC5tb2RhbC1mb290ZXIge1xuICAgICAgICBwb3NpdGlvbjogYWJzb2x1dGU7XG4gICAgICAgIGJvdHRvbTogMDtcbiAgICAgICAgaGVpZ2h0OiAzLjVlbTtcbiAgICAgICAgd2lkdGg6IGNhbGMoMTAwJSAtIDQ4cHgpO1xuICAgICAgICBsaW5lLWhlaWdodDogMy41ZW07XG4gICAgICAgIGRpc3BsYXk6IGZsZXg7XG4gICAgICAgIGp1c3RpZnktY29udGVudDogY2VudGVyO1xuICAgICAgICBhbGlnbi1pdGVtczogY2VudGVyO1xuICAgICAgICBvdmVyZmxvdzogaGlkZGVuO1xuICAgICAgICBiYWNrZ3JvdW5kLWNvbG9yOiAjZmZmO1xuXG4gICAgICAgIGlvbi1idXR0b24ge1xuICAgICAgICAgIGZvbnQtc2l6ZTogMWVtO1xuICAgICAgICAgIGJhY2tncm91bmQtY29sb3I6ICNmZmY7XG4gICAgICAgICAgY29sb3I6ICM2NTY3Njg7XG4gICAgICAgICAgcGFkZGluZzogMC43NWVtIDEuMjVlbTtcbiAgICAgICAgICBib3JkZXItcmFkaXVzOiAzMnB4O1xuICAgICAgICAgIHRyYW5zaXRpb246IGJhY2tncm91bmQtY29sb3IgMC4xcyBlYXNlLW91dDtcbiAgICAgICAgICBoZWlnaHQ6IDM2cHg7XG4gICAgICAgICAgJjphY3RpdmUge1xuICAgICAgICAgICAgYmFja2dyb3VuZC1jb2xvcjogI2VlZTtcbiAgICAgICAgICAgIGNvbG9yOiAjNjU2NzY4O1xuICAgICAgICAgICAgdHJhbnNpdGlvbjogYmFja2dyb3VuZC1jb2xvciAwLjFzIGVhc2Utb3V0O1xuICAgICAgICAgIH1cblxuICAgICAgICAgICYuYWNjZXB0IHtcbiAgICAgICAgICAgIGNvbG9yOiAjMGVjMjU0O1xuXG4gICAgICAgICAgICAmOmFjdGl2ZSB7XG4gICAgICAgICAgICAgIGJhY2tncm91bmQtY29sb3I6ICMwZWMyNTQ7XG4gICAgICAgICAgICAgIGNvbG9yOiAjZmZmO1xuICAgICAgICAgICAgICB0cmFuc2l0aW9uOiBiYWNrZ3JvdW5kLWNvbG9yIDAuMXMgZWFzZS1vdXQ7XG4gICAgICAgICAgICB9XG4gICAgICAgICAgfVxuICAgICAgICB9XG4gICAgICB9XG4gICAgfVxuICB9XG59XG4iXX0= */"] }); /***/ }), /***/ 82366: /*!*****************************************************************************************************************************************!*\ !*** ./src/app/logistic-events/components/selector-for-assistants-to-add-to-event/selector-for-assistants-to-add-to-event.component.ts ***! \*****************************************************************************************************************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "SelectorForAssistantsToAddToEventComponent": () => (/* binding */ SelectorForAssistantsToAddToEventComponent) /* 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 _ionic_angular__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @ionic/angular */ 93819); /* harmony import */ var _shared_components__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @shared/components */ 7667); /* harmony import */ var _shared_services__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @shared/services */ 17253); /* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @angular/forms */ 2508); /* 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 _card_founduser_lg_card_founduser_lg_component__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../card-founduser-lg/card-founduser-lg.component */ 30834); /* harmony import */ var _ngx_translate_core__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @ngx-translate/core */ 38699); function SelectorForAssistantsToAddToEventComponent_div_29_ng_container_7_ng_container_1_Template(rf, ctx) { if (rf & 1) { const _r7 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"](); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementContainerStart"](0); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "app-card-founduser-lg", 23); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("userSelect", function SelectorForAssistantsToAddToEventComponent_div_29_ng_container_7_ng_container_1_Template_app_card_founduser_lg_userSelect_1_listener() { const restoredCtx = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r7); const foundUser_r5 = restoredCtx.$implicit; const ctx_r6 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](3); return _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵresetView"](ctx_r6.onUserSelect(foundUser_r5)); }); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementContainerEnd"](); } if (rf & 2) { const foundUser_r5 = ctx.$implicit; _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("foundUser", foundUser_r5); } } function SelectorForAssistantsToAddToEventComponent_div_29_ng_container_7_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementContainerStart"](0); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](1, SelectorForAssistantsToAddToEventComponent_div_29_ng_container_7_ng_container_1_Template, 2, 1, "ng-container", 22); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementContainerEnd"](); } if (rf & 2) { const ctx_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", ctx_r3.foundUsers); } } function SelectorForAssistantsToAddToEventComponent_div_29_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 20)(1, "div", 7); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipe"](3, "translate"); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "div", 21); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](5); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipe"](6, "translate"); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](7, SelectorForAssistantsToAddToEventComponent_div_29_ng_container_7_Template, 2, 1, "ng-container", 16); _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"](2); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipeBind1"](3, 3, "MD_ASSISTANT_USERS_FOUND")); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipeBind1"](6, 5, "MD_ASSISTANT_TAP_ITEM"), " "); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r0.isLoading); } } function SelectorForAssistantsToAddToEventComponent_ng_container_30_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementContainerStart"](0); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](1, "app-card-founduser-lg", 24); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementContainerEnd"](); } if (rf & 2) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("skeleton", true); } } class SelectorForAssistantsToAddToEventComponent { constructor(ngZoneService, createLogisticEventService, formBuilder, modalController, changeDetectorRef, helperService, logService, userPhotoService) { var _this = this; this.ngZoneService = ngZoneService; this.createLogisticEventService = createLogisticEventService; this.formBuilder = formBuilder; this.modalController = modalController; this.changeDetectorRef = changeDetectorRef; this.helperService = helperService; this.logService = logService; this.userPhotoService = userPhotoService; this.page = 0; this.size = 15; this.onClose = user => { this.modalController.dismiss(user); }; this.onUserSelect = user => { user.fullName = this.helperService.normalizeName(user.firstName, user.lastName); setTimeout(() => { this.onClose(user); }, 750); }; this.onCreateGuest = /*#__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 modal = yield _this.modalController.create({ component: _shared_components__WEBPACK_IMPORTED_MODULE_2__.CreateAssistantComponent }); modal.onDidDismiss().then(_this.onModalDismissCallback); yield modal.present(); }); this.onModalDismissCallback = detail => { if (detail && detail.data) { this.onUserSelect(detail.data); } }; this.onUpdateContactInfoSuccessResponse = contact => { console.log('onUpdateContactInfoSuccessResponse'); console.log('contact:', contact); }; this.onUpdateContactInfoErrorResponse = error => { console.log('onUpdateContactInfoErrorResponse'); console.log('error:', error); }; this.onInputChange = e => { const { value } = e.target; this.infiniteScroll.disabled = false; if (this.searchTimeout) { clearTimeout(this.searchTimeout); } this.searchTimeout = setTimeout(() => { if (value.length > 1) { this.foundUsers = []; this.page = 0; } this.doSearch(value); }, 750); }; this.doSearch = searchTerm => { // const searchTerms = searchTerm.split(' '); // const firstName = searchTerms[0].trim(); // const lastName = searchTerms.slice(1).join(' '); // const data = { // 'firstName.contains': firstName ? firstName : '' // }; // if (lastName.trim().length > 0) { // data['lastName.contains'] = lastName.trim(); // } searchTerm = searchTerm.trim(); const data = { searchTerm }; this.dataTerms = data; this.createLogisticEventService.getCompanyAssistants(data, this.page, this.size).then(this.handleGetGuestsSuccessResponse).catch(this.handleGetGuestsErrorResponse).finally(() => this.isLoading = true); }; this.handleGetGuestsSuccessResponse = response => { console.log('handleGetGuestsSuccessResponse'); console.log('response:', response); this.setFoundUsers(response); this.userPhotoService.enrichUsersWithPhotos(response); }; this.handleGetGuestsErrorResponse = error => { this.logService.logError('http::handleGetGuestsErrorResponse', '', error); console.log('handleGetGuestsErrorResponse'); console.log('error:', error); }; this.setFoundUsers = foundUsers => { // this.foundUsers = foundUsers.sort((a: any, b: any) => (a.firstName > b.firstName && 1) || -1); this.foundUsers = foundUsers; this.changeDetectorRef.detectChanges(); // Does not work, but does not hurt either. scrollBy(0, 1); // It wasn't detecting changes. }; } ngOnInit() { this.foundUsers = []; this.searchTimeout = null; this.userForm = this.formBuilder.group({ searchTerm: [''] }); } ionViewWillEnter() { this.onInputChange({ target: { value: '' } }); } loadData(event) { this.page += 1; this.loadMore(this.page, event); } loadMore(page, infiniteScroll) { this.createLogisticEventService.getCompanyDrivers(this.dataTerms, page, this.size, !!infiniteScroll).then(drivers => { this.isLoading = true; if (drivers.length > 0) { this.handleGetGuestsSuccessResponse(this.foundUsers.concat(drivers)); if (this.size > 0) { infiniteScroll.target.complete(); } } else { infiniteScroll.target.disabled = true; } }).catch(err => { this.handleGetGuestsErrorResponse(err); infiniteScroll.target.complete(); infiniteScroll.target.disabled = true; }); } } SelectorForAssistantsToAddToEventComponent.ɵfac = function SelectorForAssistantsToAddToEventComponent_Factory(t) { return new (t || SelectorForAssistantsToAddToEventComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_3__.NgZoneService), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_3__.CreateLogisticEventService), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_6__.UntypedFormBuilder), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_ionic_angular__WEBPACK_IMPORTED_MODULE_7__.ModalController), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__.ChangeDetectorRef), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_3__.HelperService), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_3__.LogService), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_3__.UserPhotoService)); }; SelectorForAssistantsToAddToEventComponent.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineComponent"]({ type: SelectorForAssistantsToAddToEventComponent, selectors: [["app-selector-for-assistants-to-add-to-event"]], viewQuery: function SelectorForAssistantsToAddToEventComponent_Query(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵviewQuery"](_ionic_angular__WEBPACK_IMPORTED_MODULE_7__.IonInfiniteScroll, 5); } if (rf & 2) { let _t; _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵloadQuery"]()) && (ctx.infiniteScroll = _t.first); } }, decls: 35, vars: 16, consts: [[1, "fix-header-modal-ios", "ion-no-border"], [3, "ngClass"], [1, "content"], [1, "modal-container"], [1, "modal-title"], [1, "button-holder"], [1, "back", 3, "click"], [1, "title"], [1, "modal-body"], [3, "formGroup"], [1, "input-holder"], [1, "upper-options"], ["id", "name", "type", "text", "formControlName", "searchTerm", 3, "placeholder", "keyup"], [1, "new-holder"], ["type", "button", 3, "click"], ["class", "results", 4, "ngIf"], [4, "ngIf"], [1, "modal-footer"], ["threshold", "15%", "position", "bottom", 3, "ionInfinite"], ["IonInfiniteScroll", ""], [1, "results"], [1, "sub-title"], [4, "ngFor", "ngForOf"], ["typeofuser", "assistant", 3, "foundUser", "userSelect"], [3, "skeleton"]], template: function SelectorForAssistantsToAddToEventComponent_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "ion-header", 0)(1, "ion-toolbar"); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](2, "ion-title"); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()(); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "ion-content", 1)(4, "div", 2)(5, "div", 3)(6, "div", 4)(7, "div", 5)(8, "button", 6); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function SelectorForAssistantsToAddToEventComponent_Template_button_click_8_listener() { return ctx.onClose(); }); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](9); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipe"](10, "translate"); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()(); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](11, "div", 7); _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, "div", 8)(15, "ion-row")(16, "ion-col")(17, "form", 9)(18, "div", 10)(19, "div", 11)(20, "input", 12); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("keyup", function SelectorForAssistantsToAddToEventComponent_Template_input_keyup_20_listener($event) { return ctx.onInputChange($event); }); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipe"](21, "translate"); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](22, "div", 13)(23, "div", 5)(24, "button", 14); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function SelectorForAssistantsToAddToEventComponent_Template_button_click_24_listener() { return ctx.onCreateGuest(); }); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](25); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipe"](26, "translate"); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()()()()()()()(); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](27, "ion-row")(28, "ion-col"); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](29, SelectorForAssistantsToAddToEventComponent_div_29_Template, 8, 7, "div", 15); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](30, SelectorForAssistantsToAddToEventComponent_ng_container_30_Template, 2, 1, "ng-container", 16); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()()(); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](31, "div", 17); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()(); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](32, "ion-infinite-scroll", 18, 19); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("ionInfinite", function SelectorForAssistantsToAddToEventComponent_Template_ion_infinite_scroll_ionInfinite_32_listener($event) { return ctx.loadData($event); }); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](34, "ion-infinite-scroll-content"); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()(); } if (rf & 2) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngClass", "selector"); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](6); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipeBind1"](10, 8, "MD_ASSISTANT_BTN_CLOSE"), " "); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipeBind1"](13, 10, "MD_ASSISTANT_TITLE")); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](5); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("formGroup", ctx.userForm); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("placeholder", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipeBind1"](21, 12, "MD_ASSISTANT_INPUT")); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](5); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipeBind1"](26, 14, "MD_ASSISTANT_BTN_NEW"), " "); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", !!ctx.foundUsers.length); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", !ctx.isLoading); } }, dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_4__.NgClass, _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__.IonHeader, _ionic_angular__WEBPACK_IMPORTED_MODULE_7__.IonInfiniteScroll, _ionic_angular__WEBPACK_IMPORTED_MODULE_7__.IonInfiniteScrollContent, _ionic_angular__WEBPACK_IMPORTED_MODULE_7__.IonRow, _ionic_angular__WEBPACK_IMPORTED_MODULE_7__.IonTitle, _ionic_angular__WEBPACK_IMPORTED_MODULE_7__.IonToolbar, _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, _card_founduser_lg_card_founduser_lg_component__WEBPACK_IMPORTED_MODULE_5__.CardFounduserLgComponent, _ngx_translate_core__WEBPACK_IMPORTED_MODULE_8__.TranslatePipe], styles: ["ion-content.selector.ios[_ngcontent-%COMP%] {\n --offset-top: 0px !important;\n}\nion-content.selector.ios[_ngcontent-%COMP%] ion-fab.fab[_ngcontent-%COMP%] {\n position: fixed;\n margin-top: 10px;\n}\nion-header.fix-header-modal-ios[_ngcontent-%COMP%] ion-toolbar[_ngcontent-%COMP%] {\n height: 0px !important;\n --background: #fff;\n}\n.selector[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] {\n box-shadow: 0px -6px 3px rgba(0, 0, 0, 0.1);\n margin-top: 0;\n transition: margin-top 1s ease;\n background-color: #fff;\n height: 100%;\n overflow: scroll;\n}\n.selector[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-title[_ngcontent-%COMP%] {\n display: flex;\n padding-top: 1.5em;\n justify-content: center;\n align-items: center;\n flex-direction: column;\n}\n.selector[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-title[_ngcontent-%COMP%] .title[_ngcontent-%COMP%] {\n font-size: initial !important;\n font-weight: bold;\n text-align: center;\n margin: 32px;\n margin-bottom: 8px;\n}\n.selector[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-title[_ngcontent-%COMP%] .button-holder[_ngcontent-%COMP%] {\n justify-content: center;\n margin: 0;\n}\n.selector[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .input-holder[_ngcontent-%COMP%] {\n margin-top: 8px;\n display: flex;\n justify-content: center;\n align-items: center;\n flex-direction: column;\n width: 100%;\n}\n.selector[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .input-holder[_ngcontent-%COMP%] .upper-options[_ngcontent-%COMP%] {\n display: flex;\n justify-content: center;\n align-items: center;\n}\n.selector[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .input-holder[_ngcontent-%COMP%] .upper-options[_ngcontent-%COMP%] .new-holder[_ngcontent-%COMP%] {\n margin-top: 18px;\n}\n.selector[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .input-holder[_ngcontent-%COMP%] .upper-options[_ngcontent-%COMP%] .new-holder[_ngcontent-%COMP%] .button-holder[_ngcontent-%COMP%] {\n margin-top: 0;\n}\n.selector[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .input-holder[_ngcontent-%COMP%] .bottom-options[_ngcontent-%COMP%] {\n display: flex;\n justify-content: center;\n align-items: center;\n}\n.selector[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .input-holder[_ngcontent-%COMP%] .bottom-options[_ngcontent-%COMP%] .new-holder[_ngcontent-%COMP%] {\n margin-top: 18px;\n}\n.selector[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .input-holder[_ngcontent-%COMP%] .bottom-options[_ngcontent-%COMP%] .new-holder[_ngcontent-%COMP%] .button-holder[_ngcontent-%COMP%] {\n margin-top: 0;\n width: 100%;\n}\n.selector[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%] .results[_ngcontent-%COMP%] {\n overflow: scroll;\n height: 100%;\n padding: 1em;\n}\n.selector[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%] .results[_ngcontent-%COMP%] .title[_ngcontent-%COMP%] {\n font-size: initial !important;\n width: 80%;\n margin: 0 10% 2px;\n font-weight: bold;\n text-align: center;\n}\n.selector[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%] .results[_ngcontent-%COMP%] .sub-title[_ngcontent-%COMP%] {\n margin: 10px 0;\n font-size: 0.9em;\n background-color: #eee;\n border: 1px solid #ccc;\n padding: 8px;\n border-radius: 2px;\n text-align: center;\n}\n.selector[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%] .results[_ngcontent-%COMP%] .result[_ngcontent-%COMP%] {\n width: 95%;\n margin: 10px 10px 10px 10px;\n border: 1px solid #eee;\n border-radius: 4px;\n padding: 10px 10px;\n}\n.selector[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%] .results[_ngcontent-%COMP%] .result[_ngcontent-%COMP%] .company[_ngcontent-%COMP%] {\n color: #aaa;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNlbGVjdG9yLWZvci1hc3Npc3RhbnRzLXRvLWFkZC10by1ldmVudC5jb21wb25lbnQuc2NzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTtFQUNFLDRCQUFBO0FBQ0Y7QUFBRTtFQUNFLGVBQUE7RUFDQSxnQkFBQTtBQUVKO0FBRUU7RUFDRSxzQkFBQTtFQUNBLGtCQUFBO0FBQ0o7QUFJRTtFQUNFLDJDQUFBO0VBQ0EsYUFBQTtFQUNBLDhCQUFBO0VBQ0Esc0JBQUE7RUFDQSxZQUFBO0VBQ0EsZ0JB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VyIHtcbiAgICAgICAganVzdGlmeS1jb250ZW50OiBjZW50ZXI7XG4gICAgICAgIG1hcmdpbjogMDtcbiAgICAgIH1cbiAgICB9XG5cbiAgICAuaW5wdXQtaG9sZGVyIHtcbiAgICAgIG1hcmdpbi10b3A6IDhweDtcbiAgICAgIGRpc3BsYXk6IGZsZXg7XG4gICAgICBqdXN0aWZ5LWNvbnRlbnQ6IGNlbnRlcjtcbiAgICAgIGFsaWduLWl0ZW1zOiBjZW50ZXI7XG4gICAgICBmbGV4LWRpcmVjdGlvbjogY29sdW1uO1xuICAgICAgd2lkdGg6IDEwMCU7XG5cbiAgICAgIC51cHBlci1vcHRpb25zIHtcbiAgICAgICAgZGlzcGxheTogZmxleDtcbiAgICAgICAganVzdGlmeS1jb250ZW50OiBjZW50ZXI7XG4gICAgICAgIGFsaWduLWl0ZW1zOiBjZW50ZXI7XG5cbiAgICAgICAgLm5ldy1ob2xkZXIge1xuICAgICAgICAgIG1hcmdpbi10b3A6IDE4cHg7XG5cbiAgICAgICAgICAuYnV0dG9uLWhvbGRlciB7XG4gICAgICAgICAgICBtYXJnaW4tdG9wOiAwO1xuICAgICAgICAgIH1cbiAgICAgICAgfVxuICAgICAgfVxuXG4gICAgICAuYm90dG9tLW9wdGlvbnMge1xuICAgICAgICBkaXNwbGF5OiBmbGV4O1xuICAgICAgICBqdXN0aWZ5LWNvbnRlbnQ6IGNlbnRlcjtcbiAgICAgICAgYWxpZ24taXRlbXM6IGNlbnRlcjtcblxuICAgICAgICAubmV3LWhvbGRlciB7XG4gICAgICAgICAgbWFyZ2luLXRvcDogMThweDtcblxuICAgICAgICAgIC5idXR0b24taG9sZGVyIHtcbiAgICAgICAgICAgIG1hcmdpbi10b3A6IDA7XG4gICAgICAgICAgICB3aWR0aDogMTAwJTtcbiAgICAgICAgICB9XG4gICAgICAgIH1cbiAgICAgIH1cbiAgICB9XG5cbiAgICAubW9kYWwtYm9keSB7XG4gICAgICAucmVzdWx0cyB7XG4gICAgICAgIG92ZXJmbG93OiBzY3JvbGw7XG4gICAgICAgIGhlaWdodDogMTAwJTtcbiAgICAgICAgcGFkZGluZzogMWVtO1xuXG4gICAgICAgIC50aXRsZSB7XG4gICAgICAgICAgZm9udC1zaXplOiBpbml0aWFsICFpbXBvcnRhbnQ7XG4gICAgICAgICAgd2lkdGg6IDgwJTtcbiAgICAgICAgICBtYXJnaW46IDAgMTAlIDJweDtcbiAgICAgICAgICBmb250LXdlaWdodDogYm9sZDtcbiAgICAgICAgICB0ZXh0LWFsaWduOiBjZW50ZXI7XG4gICAgICAgIH1cblxuICAgICAgICAuc3ViLXRpdGxlIHtcbiAgICAgICAgICBtYXJnaW46IDEwcHggMDtcbiAgICAgICAgICBmb250LXNpemU6IDAuOWVtO1xuICAgICAgICAgIGJhY2tncm91bmQtY29sb3I6ICNlZWU7XG4gICAgICAgICAgYm9yZGVyOiAxcHggc29saWQgI2NjYztcbiAgICAgICAgICBwYWRkaW5nOiA4cHg7XG4gICAgICAgICAgYm9yZGVyLXJhZGl1czogMnB4O1xuICAgICAgICAgIHRleHQtYWxpZ246IGNlbnRlcjtcbiAgICAgICAgfVxuXG4gICAgICAgIC5yZXN1bHQge1xuICAgICAgICAgIHdpZHRoOiA5NSU7XG4gICAgICAgICAgbWFyZ2luOiAxMHB4IDEwcHggMTBweCAxMHB4O1xuICAgICAgICAgIGJvcmRlcjogMXB4IHNvbGlkICNlZWU7XG4gICAgICAgICAgYm9yZGVyLXJhZGl1czogNHB4O1xuICAgICAgICAgIHBhZGRpbmc6IDEwcHggMTBweDtcblxuICAgICAgICAgIC5jb21wYW55IHtcbiAgICAgICAgICAgIGNvbG9yOiAjYWFhO1xuICAgICAgICAgIH1cbiAgICAgICAgfVxuICAgICAgfVxuICAgIH1cbiAgfVxufVxuIl19 */"] }); /***/ }), /***/ 33200: /*!*********************************************************************************************************************************!*\ !*** ./src/app/logistic-events/components/selector-for-driver-to-add-to-event/selector-for-driver-to-add-to-event.component.ts ***! \*********************************************************************************************************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "SelectorForDriverToAddToEventComponent": () => (/* binding */ SelectorForDriverToAddToEventComponent) /* 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 _ionic_angular__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @ionic/angular */ 93819); /* harmony import */ var _shared_components__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @shared/components */ 7667); /* harmony import */ var _shared_services__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @shared/services */ 17253); /* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @angular/forms */ 2508); /* 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 _card_founduser_lg_card_founduser_lg_component__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../card-founduser-lg/card-founduser-lg.component */ 30834); /* harmony import */ var _ngx_translate_core__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @ngx-translate/core */ 38699); function SelectorForDriverToAddToEventComponent_div_26_ng_container_4_ng_container_1_Template(rf, ctx) { if (rf & 1) { const _r7 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"](); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementContainerStart"](0); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "app-card-founduser-lg", 24); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("userSelect", function SelectorForDriverToAddToEventComponent_div_26_ng_container_4_ng_container_1_Template_app_card_founduser_lg_userSelect_1_listener() { const restoredCtx = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r7); const foundUser_r5 = restoredCtx.$implicit; const ctx_r6 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](3); return _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵresetView"](ctx_r6.onUserSelect(foundUser_r5)); }); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementContainerEnd"](); } if (rf & 2) { const foundUser_r5 = ctx.$implicit; _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("foundUser", foundUser_r5); } } function SelectorForDriverToAddToEventComponent_div_26_ng_container_4_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementContainerStart"](0); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](1, SelectorForDriverToAddToEventComponent_div_26_ng_container_4_ng_container_1_Template, 2, 1, "ng-container", 23); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementContainerEnd"](); } if (rf & 2) { const ctx_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", ctx_r3.foundUsers); } } function SelectorForDriverToAddToEventComponent_div_26_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 21)(1, "div", 22); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipe"](3, "translate"); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](4, SelectorForDriverToAddToEventComponent_div_26_ng_container_4_Template, 2, 1, "ng-container", 17); _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"](2); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipeBind1"](3, 2, "MD_DRIVER_SUBTITLE")); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r0.isLoading); } } function SelectorForDriverToAddToEventComponent_ng_container_27_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementContainerStart"](0); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](1, "app-card-founduser-lg", 25); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementContainerEnd"](); } if (rf & 2) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("skeleton", true); } } class SelectorForDriverToAddToEventComponent { constructor(createLogisticEventService, formBuilder, modalController, changeDetectorRef, helperService, logService, userPhotoService) { var _this = this; this.createLogisticEventService = createLogisticEventService; this.formBuilder = formBuilder; this.modalController = modalController; this.changeDetectorRef = changeDetectorRef; this.helperService = helperService; this.logService = logService; this.userPhotoService = userPhotoService; this.isLoading = false; this.page = 0; this.size = 15; this.onClose = user => { this.modalController.dismiss(user); }; this.onUserSelect = user => { user.fullName = this.helperService.normalizeName(user.firstName, user.lastName); setTimeout(() => { this.onClose(user); }, 750); }; this.onCreateDriver = /*#__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 modal = yield _this.modalController.create({ component: _shared_components__WEBPACK_IMPORTED_MODULE_2__.CreateDriverComponent }); modal.onDidDismiss().then(res => { _this.onModalDismissCallback(res); }); yield modal.present(); }); this.onInputChange = e => { const { value } = e.target; this.infiniteScroll.disabled = false; if (this.searchTimeout) { clearTimeout(this.searchTimeout); } this.searchTimeout = setTimeout(() => { if (value.length > 1) { this.foundUsers = []; this.page = 0; } this.doSearch(value); }, 750); }; this.doSearch = searchTerm => { // const searchTerms = searchTerm.split(' '); // const firstName = searchTerms[0].trim(); // const lastName = searchTerms.slice(1).join(' '); // const data = { // 'firstName.contains': firstName ? firstName : '' // }; // if (lastName.trim().length > 0) { // data['lastName.contains'] = lastName.trim(); // } searchTerm = searchTerm.trim(); const data = { searchTerm }; this.dataTerms = data; this.createLogisticEventService.getCompanyDrivers(data, this.page, this.size).then(this.handleGetCompanyDriversSuccessResponse).catch(this.handleGetgetCompanyDriversErrorResponse).finally(() => this.isLoading = true); }; this.handleGetCompanyDriversSuccessResponse = response => { console.log('handleGetCompanyDriversSuccessResponse'); console.log('response:', response); this.setFoundUsers(response); this.userPhotoService.enrichUsersWithPhotos(response); }; this.handleGetgetCompanyDriversErrorResponse = error => { console.log('handleGetgetCompanyDriversErrorResponse'); this.logService.logError('http::handleGetgetCompanyDriversErrorResponse', '', error); console.log('error:', error); }; this.setFoundUsers = foundUsers => { // this.foundUsers = foundUsers.sort((a: any, b: any) => (a.firstName > b.firstName && 1) || -1); this.foundUsers = foundUsers; console.log('foundUsers', foundUsers); this.changeDetectorRef.detectChanges(); // Does not work, but does not hurt either. scrollBy(0, 1); // It wasn't detecting changes. }; } ngOnInit() { this.foundUsers = []; this.searchTimeout = null; this.userForm = this.formBuilder.group({ searchTerm: [''] }); } ionViewWillEnter() { this.onInputChange({ target: { value: '' } }); } onModalDismissCallback(detail) { if (detail && detail.data) { this.onUserSelect(detail.data); } } loadData(event) { this.page += 1; this.loadMore(this.page, event); } loadMore(page, infiniteScroll) { this.createLogisticEventService.getCompanyDrivers(this.dataTerms, page, this.size, !!infiniteScroll).then(drivers => { this.isLoading = true; if (drivers.length > 0) { this.handleGetCompanyDriversSuccessResponse(this.foundUsers.concat(drivers)); if (this.size > 0) { infiniteScroll.target.complete(); } } else { infiniteScroll.target.disabled = true; } }).catch(err => { this.handleGetCompanyDriversSuccessResponse(err); infiniteScroll.target.complete(); infiniteScroll.target.disabled = true; }); } } SelectorForDriverToAddToEventComponent.ɵfac = function SelectorForDriverToAddToEventComponent_Factory(t) { return new (t || SelectorForDriverToAddToEventComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_3__.CreateLogisticEventService), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_6__.UntypedFormBuilder), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_ionic_angular__WEBPACK_IMPORTED_MODULE_7__.ModalController), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__.ChangeDetectorRef), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_3__.HelperService), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_3__.LogService), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_3__.UserPhotoService)); }; SelectorForDriverToAddToEventComponent.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineComponent"]({ type: SelectorForDriverToAddToEventComponent, selectors: [["app-selector-for-driver-to-add-to-event"]], viewQuery: function SelectorForDriverToAddToEventComponent_Query(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵviewQuery"](_ionic_angular__WEBPACK_IMPORTED_MODULE_7__.IonInfiniteScroll, 5); } if (rf & 2) { let _t; _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵloadQuery"]()) && (ctx.infiniteScroll = _t.first); } }, decls: 32, vars: 10, consts: [[1, "fix-header-modal-ios", "ion-no-border"], [3, "ngClass"], ["horizontal", "center", "slot", "fixed", 1, "fab", 3, "click"], ["color", "medium"], ["name", "close"], [1, "content"], [1, "modal-container"], [1, "modal-title"], [1, "button-holder"], [1, "modal-body"], [3, "formGroup"], [1, "input-holder"], [1, "upper-options"], ["id", "name", "type", "text", "formControlName", "searchTerm", 2, "height", "47px", 3, "placeholder", "keyup"], [1, "new-holder"], ["type", "button", 3, "click"], ["class", "results", 4, "ngIf"], [4, "ngIf"], [1, "modal-footer"], ["threshold", "15%", "position", "bottom", 3, "ionInfinite"], ["IonInfiniteScroll", ""], [1, "results"], [1, "sub-title"], [4, "ngFor", "ngForOf"], ["typeofuser", "driver", 3, "foundUser", "userSelect"], [3, "skeleton"]], template: function SelectorForDriverToAddToEventComponent_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "ion-header", 0)(1, "ion-toolbar"); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](2, "ion-title"); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()(); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "ion-content", 1)(4, "ion-fab", 2); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function SelectorForDriverToAddToEventComponent_Template_ion_fab_click_4_listener() { return ctx.onClose(); }); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "ion-fab-button", 3); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](6, "ion-icon", 4); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()(); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](7, "div", 5)(8, "div", 6)(9, "div", 7); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](10, "div", 8); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](11, "div", 9)(12, "ion-row")(13, "ion-col")(14, "form", 10)(15, "div", 11)(16, "div", 12)(17, "input", 13); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("keyup", function SelectorForDriverToAddToEventComponent_Template_input_keyup_17_listener($event) { return ctx.onInputChange($event); }); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipe"](18, "translate"); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](19, "div", 14)(20, "div", 8)(21, "button", 15); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function SelectorForDriverToAddToEventComponent_Template_button_click_21_listener() { return ctx.onCreateDriver(); }); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](22); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipe"](23, "translate"); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()()()()()()()(); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](24, "ion-row")(25, "ion-col"); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](26, SelectorForDriverToAddToEventComponent_div_26_Template, 5, 4, "div", 16); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](27, SelectorForDriverToAddToEventComponent_ng_container_27_Template, 2, 1, "ng-container", 17); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()()(); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](28, "div", 18); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()(); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](29, "ion-infinite-scroll", 19, 20); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("ionInfinite", function SelectorForDriverToAddToEventComponent_Template_ion_infinite_scroll_ionInfinite_29_listener($event) { return ctx.loadData($event); }); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](31, "ion-infinite-scroll-content"); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()(); } if (rf & 2) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngClass", "selector"); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](11); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("formGroup", ctx.userForm); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("placeholder", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipeBind1"](18, 6, "MD_DRIVER_INPUT")); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](5); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipeBind1"](23, 8, "MD_DRIVER_BTN_NEW"), " "); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", !!ctx.foundUsers.length); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", !ctx.isLoading); } }, dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_4__.NgClass, _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__.IonFab, _ionic_angular__WEBPACK_IMPORTED_MODULE_7__.IonFabButton, _ionic_angular__WEBPACK_IMPORTED_MODULE_7__.IonHeader, _ionic_angular__WEBPACK_IMPORTED_MODULE_7__.IonIcon, _ionic_angular__WEBPACK_IMPORTED_MODULE_7__.IonInfiniteScroll, _ionic_angular__WEBPACK_IMPORTED_MODULE_7__.IonInfiniteScrollContent, _ionic_angular__WEBPACK_IMPORTED_MODULE_7__.IonRow, _ionic_angular__WEBPACK_IMPORTED_MODULE_7__.IonTitle, _ionic_angular__WEBPACK_IMPORTED_MODULE_7__.IonToolbar, _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, _card_founduser_lg_card_founduser_lg_component__WEBPACK_IMPORTED_MODULE_5__.CardFounduserLgComponent, _ngx_translate_core__WEBPACK_IMPORTED_MODULE_8__.TranslatePipe], styles: ["ion-content.selector[_ngcontent-%COMP%] {\n --offset-top: 0px !important;\n}\nion-content.selector[_ngcontent-%COMP%] ion-fab.fab[_ngcontent-%COMP%] {\n position: fixed;\n margin-top: 10px;\n}\nion-header.fix-header-modal-ios[_ngcontent-%COMP%] ion-toolbar[_ngcontent-%COMP%] {\n height: 0px !important;\n --background: #fff;\n}\n.selector[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] {\n box-shadow: 0px -6px 3px rgba(0, 0, 0, 0.1);\n margin-top: 0;\n transition: margin-top 1s ease;\n background-color: #fff;\n height: 100%;\n overflow: scroll;\n}\n.selector[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-title[_ngcontent-%COMP%] {\n display: flex;\n padding-top: 3.5em;\n justify-content: center;\n align-items: center;\n flex-direction: column;\n}\n.selector[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-title[_ngcontent-%COMP%] .title[_ngcontent-%COMP%] {\n font-size: initial !important;\n font-weight: bold;\n text-align: center;\n margin: 32px;\n margin-bottom: 8px;\n}\n.selector[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-title[_ngcontent-%COMP%] .button-holder[_ngcontent-%COMP%] {\n justify-content: center;\n margin: 0;\n}\n.selector[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .input-holder[_ngcontent-%COMP%] {\n margin-top: 8px;\n display: flex;\n justify-content: center;\n align-items: center;\n flex-direction: column;\n width: 100%;\n}\n.selector[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .input-holder[_ngcontent-%COMP%] .upper-options[_ngcontent-%COMP%] {\n display: flex;\n justify-content: center;\n align-items: center;\n}\n.selector[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .input-holder[_ngcontent-%COMP%] .upper-options[_ngcontent-%COMP%] .new-holder[_ngcontent-%COMP%] {\n margin-top: 18px;\n}\n.selector[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .input-holder[_ngcontent-%COMP%] .upper-options[_ngcontent-%COMP%] .new-holder[_ngcontent-%COMP%] .button-holder[_ngcontent-%COMP%] {\n margin-top: 0;\n}\n.selector[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .input-holder[_ngcontent-%COMP%] .bottom-options[_ngcontent-%COMP%] {\n display: flex;\n justify-content: center;\n align-items: center;\n}\n.selector[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .input-holder[_ngcontent-%COMP%] .bottom-options[_ngcontent-%COMP%] .new-holder[_ngcontent-%COMP%] {\n margin-top: 18px;\n}\n.selector[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .input-holder[_ngcontent-%COMP%] .bottom-options[_ngcontent-%COMP%] .new-holder[_ngcontent-%COMP%] .button-holder[_ngcontent-%COMP%] {\n margin-top: 0;\n width: 100%;\n}\n.selector[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%] .results[_ngcontent-%COMP%] {\n overflow: scroll;\n height: 100%;\n padding: 1em;\n}\n.selector[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%] .results[_ngcontent-%COMP%] .title[_ngcontent-%COMP%] {\n font-size: initial !important;\n width: 80%;\n margin: 0 10% 2px;\n font-weight: bold;\n text-align: center;\n}\n.selector[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%] .results[_ngcontent-%COMP%] .sub-title[_ngcontent-%COMP%] {\n margin: 10px 0;\n font-size: 0.9em;\n background-color: #eee;\n border: 1px solid #ccc;\n padding: 8px;\n border-radius: 2px;\n text-align: center;\n}\n.selector[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%] .results[_ngcontent-%COMP%] .result[_ngcontent-%COMP%] {\n width: 95%;\n margin: 10px 10px 10px 10px;\n border: 1px solid #eee;\n border-radius: 4px;\n padding: 10px 10px;\n}\n.selector[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%] .results[_ngcontent-%COMP%] .result[_ngcontent-%COMP%] .company[_ngcontent-%COMP%] {\n color: #aaa;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNlbGVjdG9yLWZvci1kcml2ZXItdG8tYWRkLXRvLWV2ZW50LmNvbXBvbmVudC5zY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0VBQ0UsNEJBQUE7QUFDRjtBQUFFO0VBQ0UsZUFBQTtFQUNBLGdCQUFBO0FBRUo7QUFFRTtFQUNFLHNCQUFBO0VBQ0Esa0JBQUE7QUFDSjtBQUdFO0VBQ0UsMkNBQUE7RUFDQSxhQUFBO0VBQ0EsOEJBQUE7RUFDQSxzQkFBQTtFQUNBLFlBQUE7RUFDQSxnQkFBQTtBQUFKO0FBRUk7RUFDRSxhQUFBO0VBQ0Esa0JBQUE7RUFDQSx1QkFBQTtFQUNBLG1CQUFBO0VBQ0Esc0JBQUE7QUFBTjtBQUVNO0VBQ0UsNkJBQUE7RUFDQSxpQkFBQTtFQUNBLGtCQUFBO0VBQ0EsWUFBQTtFQUNBLGtCQUFBO0FBQVI7QUFHTTtFQUNFLHVCQUFBO0VBQ0EsU0FBQTtBQURSO0FBS0k7RUFDRSxlQUFBO0VBQ0EsYUFBQTtFQUNBLHVCQUFBO0VBQ0EsbUJBQUE7RUFDQSxzQkFBQTtFQUNBLFdBQUE7QUFITjtBQUtNO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ICAubW9kYWwtY29udGFpbmVyIHtcbiAgICBib3gtc2hhZG93OiAwcHggLTZweCAzcHggcmdiYSgwLCAwLCAwLCAwLjEpO1xuICAgIG1hcmdpbi10b3A6IDA7XG4gICAgdHJhbnNpdGlvbjogbWFyZ2luLXRvcCAxcyBlYXNlO1xuICAgIGJhY2tncm91bmQtY29sb3I6ICNmZmY7XG4gICAgaGVpZ2h0OiAxMDAlO1xuICAgIG92ZXJmbG93OiBzY3JvbGw7XG5cbiAgICAubW9kYWwtdGl0bGUge1xuICAgICAgZGlzcGxheTogZmxleDtcbiAgICAgIHBhZGRpbmctdG9wOiAzLjVlbTtcbiAgICAgIGp1c3RpZnktY29udGVudDogY2VudGVyO1xuICAgICAgYWxpZ24taXRlbXM6IGNlbnRlcjtcbiAgICAgIGZsZXgtZGlyZWN0aW9uOiBjb2x1bW47XG5cbiAgICAgIC50aXRsZSB7XG4gICAgICAgIGZvbnQtc2l6ZTogaW5pdGlhbCAhaW1wb3J0YW50O1xuICAgICAgICBmb250LXdlaWdodDogYm9sZDtcbiAgICAgICAgdGV4dC1hbGlnbjogY2VudGVyO1xuICAgICAgICBtYXJnaW46IDMycHg7XG4gICAgICAgIG1hcmdpbi1ib3R0b206IDhweDtcbiAgICAgIH1cblxuICAgICAgLmJ1dHRvbi1ob2xkZXIge1xuICAgICAgICBqdXN0aWZ5LWNvbnRlbnQ6IGNlbnRlcjtcbiAgICAgICAgbWFyZ2luOiAwO1xuICAgICAgfVxuICAgIH1cblxuICAgIC5pbnB1dC1ob2xkZXIge1xuICAgICAgbWFyZ2luLXRvcDogOHB4O1xuICAgICAgZGlzcGxheTogZmxleDtcbiAgICAgIGp1c3RpZnktY29udGVudDogY2VudGVyO1xuICAgICAgYWxpZ24taXRlbXM6IGNlbnRlcjtcbiAgICAgIGZsZXgtZGlyZWN0aW9uOiBjb2x1bW47XG4gICAgICB3aWR0aDogMTAwJTtcblxuICAgICAgLnVwcGVyLW9wdGlvbnMge1xuICAgICAgICBkaXNwbGF5OiBmbGV4O1xuICAgICAgICBqdXN0aWZ5LWNvbnRlbnQ6IGNlbnRlcjtcbiAgICAgICAgYWxpZ24taXRlbXM6IGNlbnRlcjtcblxuICAgICAgICAubmV3LWhvbGRlciB7XG4gICAgICAgICAgbWFyZ2luLXRvcDogMThweDtcblxuICAgICAgICAgIC5idXR0b24taG9sZGVyIHtcbiAgICAgICAgICAgIG1hcmdpbi10b3A6IDA7XG4gICAgICAgICAgfVxuICAgICAgICB9XG4gICAgICB9XG5cbiAgICAgIC5ib3R0b20tb3B0aW9ucyB7XG4gICAgICAgIGRpc3BsYXk6IGZsZXg7XG4gICAgICAgIGp1c3RpZnktY29udGVudDogY2VudGVyO1xuICAgICAgICBhbGlnbi1pdGVtczogY2VudGVyO1xuXG4gICAgICAgIC5uZXctaG9sZGVyIHtcbiAgICAgICAgICBtYXJnaW4tdG9wOiAxOHB4O1xuXG4gICAgICAgICAgLmJ1dHRvbi1ob2xkZXIge1xuICAgICAgICAgICAgbWFyZ2luLXRvcDogMDtcbiAgICAgICAgICAgIHdpZHRoOiAxMDAlO1xuICAgICAgICAgIH1cbiAgICAgICAgfVxuICAgICAgfVxuICAgIH1cblxuICAgIC5tb2RhbC1ib2R5IHtcbiAgICAgIC5yZXN1bHRzIHtcbiAgICAgICAgb3ZlcmZsb3c6IHNjcm9sbDtcbiAgICAgICAgaGVpZ2h0OiAxMDAlO1xuICAgICAgICBwYWRkaW5nOiAxZW07XG5cbiAgICAgICAgLnRpdGxlIHtcbiAgICAgICAgICBmb250LXNpemU6IGluaXRpYWwgIWltcG9ydGFudDtcbiAgICAgICAgICB3aWR0aDogODAlO1xuICAgICAgICAgIG1hcmdpbjogMCAxMCUgMnB4O1xuICAgICAgICAgIGZvbnQtd2VpZ2h0OiBib2xkO1xuICAgICAgICAgIHRleHQtYWxpZ246IGNlbnRlcjtcbiAgICAgICAgfVxuXG4gICAgICAgIC5zdWItdGl0bGUge1xuICAgICAgICAgIG1hcmdpbjogMTBweCAwO1xuICAgICAgICAgIGZvbnQtc2l6ZTogMC45ZW07XG4gICAgICAgICAgYmFja2dyb3VuZC1jb2xvcjogI2VlZTtcbiAgICAgICAgICBib3JkZXI6IDFweCBzb2xpZCAjY2NjO1xuICAgICAgICAgIHBhZGRpbmc6IDhweDtcbiAgICAgICAgICBib3JkZXItcmFkaXVzOiAycHg7XG4gICAgICAgICAgdGV4dC1hbGlnbjogY2VudGVyO1xuICAgICAgICB9XG5cbiAgICAgICAgLnJlc3VsdCB7XG4gICAgICAgICAgd2lkdGg6IDk1JTtcbiAgICAgICAgICBtYXJnaW46IDEwcHggMTBweCAxMHB4IDEwcHg7XG4gICAgICAgICAgYm9yZGVyOiAxcHggc29saWQgI2VlZTtcbiAgICAgICAgICBib3JkZXItcmFkaXVzOiA0cHg7XG4gICAgICAgICAgcGFkZGluZzogMTBweCAxMHB4O1xuXG4gICAgICAgICAgLmNvbXBhbnkge1xuICAgICAgICAgICAgY29sb3I6ICNhYWE7XG4gICAgICAgICAgfVxuICAgICAgICB9XG4gICAgICB9XG4gICAgfVxuICB9XG59XG4iXX0= */"] }); /***/ }), /***/ 73543: /*!*********************************************************************************************************************!*\ !*** ./src/app/logistic-events/components/solve-driver-checkin-conflict/solve-driver-checkin-conflict.component.ts ***! \*********************************************************************************************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "SolveDriverCheckinConflictComponent": () => (/* binding */ SolveDriverCheckinConflictComponent) /* 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__); /* harmony import */ var _ionic_angular__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @ionic/angular */ 93819); /* harmony import */ var _shared_services__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @shared/services */ 17253); /* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/common */ 90944); /* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_angular_common__WEBPACK_IMPORTED_MODULE_2__); /* harmony import */ var _ngx_translate_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @ngx-translate/core */ 38699); function SolveDriverCheckinConflictComponent_div_11_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 10); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](1, "ion-spinner", 11); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); } } function SolveDriverCheckinConflictComponent_div_12_Template(rf, ctx) { if (rf & 1) { const _r3 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 12)(1, "ion-row")(2, "ion-col")(3, "div", 13)(4, "div", 14)(5, "button", 15); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function SolveDriverCheckinConflictComponent_div_12_Template_button_click_5_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r3); const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵresetView"](ctx_r2.deny()); }); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](6); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](7, "translate"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "button", 15); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function SolveDriverCheckinConflictComponent_div_12_Template_button_click_8_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r3); const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵresetView"](ctx_r4.authorize()); }); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](9); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](10, "translate"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()()()()(); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](11, "ion-row")(12, "ion-col")(13, "div", 16)(14, "div", 17)(15, "div", 18); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](16); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](17, "translate"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](18, "div", 19); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](19, "div", 20); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](20, "div", 21); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](21); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()()(); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](22, "div", 22)(23, "div", 18); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](24); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](25, "translate"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](26, "div", 19); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](27); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()(); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](28, "div", 23)(29, "div", 18); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](30); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](31, "translate"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](32, "div", 19); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](33); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()(); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](34, "div", 24)(35, "div", 18); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](36); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](37, "translate"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](38, "div", 19); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](39); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()(); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](40, "div", 25)(41, "div", 18); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](42); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](43, "translate"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](44, "div", 19); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](45); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()()()()(); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](46, "ion-row")(47, "ion-col")(48, "div", 16)(49, "div", 17)(50, "div", 18); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](51); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](52, "translate"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](53, "div", 19); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](54, "div", 20); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](55, "div", 21); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](56); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()()(); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](57, "div", 22)(58, "div", 18); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](59); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](60, "translate"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](61, "div", 19); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](62); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()(); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](63, "div", 23)(64, "div", 18); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](65); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](66, "translate"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](67, "div", 19); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](68); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()(); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](69, "div", 24)(70, "div", 18); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](71); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](72, "translate"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](73, "div", 19); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](74); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()(); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](75, "div", 25)(76, "div", 18); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](77); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](78, "translate"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](79, "div", 19); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](80); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()()()()()(); } if (rf & 2) { const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](6); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind1"](7, 22, "MD_DRIVER_CONFLICT_BTN_CONFIRM_REFUSAL"), " "); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind1"](10, 24, "MD_DRIVER_CONFLICT_BTN_ALLOW"), " "); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](7); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind1"](17, 26, "MD_DRIVER_CONFLICT_REGISTERED_DRIVER")); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", ctx_r1.registeredDriverInvite.driver.fullName, " "); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind1"](25, 28, "MD_DRIVER_CONFLICT_LICENSEPLATONE")); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", ctx_r1.getLicensePlateOneToBeRendered(ctx_r1.registeredDriverInvite), " "); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind1"](31, 30, "MD_DRIVER_CONFLICT_LICENSEPLATTWO")); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", ctx_r1.getLicensePlateTwoToBeRendered(ctx_r1.registeredDriverInvite), " "); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind1"](37, 32, "MD_DRIVER_CONFLICT_ON_FOOT")); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", ctx_r1.getOnFootToBeRendered(ctx_r1.registeredDriverInvite), " "); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind1"](43, 34, "MD_DRIVER_CONFLICT_VEHICLE_HAS_TRAILER")); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", ctx_r1.getOnFootToBeRendered(ctx_r1.getHasCartToBeRendered), " "); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](6); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind1"](52, 36, "MD_DRIVER_CONFLICT_DRIVER_CHECKIN")); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", ctx_r1.candidateDriverInvite.driver.fullName, " "); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind1"](60, 38, "MD_DRIVER_CONFLICT_LICENSEPLATONE")); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", ctx_r1.getLicensePlateOneToBeRendered(ctx_r1.candidateDriverInvite), " "); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind1"](66, 40, "MD_DRIVER_CONFLICT_LICENSEPLATTWO")); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", ctx_r1.getLicensePlateTwoToBeRendered(ctx_r1.candidateDriverInvite), " "); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind1"](72, 42, "MD_DRIVER_CONFLICT_ON_FOOT")); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", ctx_r1.getOnFootToBeRendered(ctx_r1.candidateDriverInvite), " "); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind1"](78, 44, "MD_DRIVER_CONFLICT_VEHICLE_HAS_TRAILER")); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", ctx_r1.getOnFootToBeRendered(ctx_r1.getHasCartToBeRendered), " "); } } class SolveDriverCheckinConflictComponent { constructor(modalController, portalLoginManagerService, profileManagerService, logisticEventApiService, authService, loadingService, translateConfigService) { this.modalController = modalController; this.portalLoginManagerService = portalLoginManagerService; this.profileManagerService = profileManagerService; this.logisticEventApiService = logisticEventApiService; this.authService = authService; this.loadingService = loadingService; this.translateConfigService = translateConfigService; this.loaded = false; this.comparePendingApprovals = () => { const profile = this.profileManagerService.getProfileLogistic(); return new Promise((resolve, reject) => { this.authService .getToken() .then(token => this.portalLoginManagerService.getAccessToken(profile.login, profile.portal, token)) .then((response) => { const accessToken = response.access_token; return this.logisticEventApiService .comparePendingApprovals(this.instanceName, this.inviteId, accessToken) .subscribe(resolve, reject); }) .catch(reject); }).finally(() => (this.loaded = true)); }; this.handleComparePendingApprovalsSuccessResponse = response => { console.log('handleComparePendingApprovalsSuccessResponse:', response); this.loadingService.hide(null, 'loading-drivers-data'); const current = response.current; const previous = response.previous; this.registeredDriverInvite = previous; this.candidateDriverInvite = current; }; this.handleComparePendingApprovalsErrorResponse = error => { this.loadingService.hide(null, 'loading-drivers-data'); console.log('handleComparePendingApprovalsErrorResponse:', error); }; this.getLicensePlateOneToBeRendered = data => { if (data && data.driver && data.driver.licensePlateOne) { return data.driver.licensePlateOne; } return; }; this.getLicensePlateTwoToBeRendered = data => { if (data && data.driver && data.driver.licensePlateTwo) { return data.driver.licensePlateTwo; } return; }; this.getOnFootToBeRendered = data => { if (data && data.driver) { return data.driver.onFoot ? this.translateConfigService.translate('TEXT_YES') : this.translateConfigService.translate('TEXT_NOT'); } return; }; this.getHasCartToBeRendered = data => { if (data && data.driver) { return data.driver.hasCart ? this.translateConfigService.translate('TEXT_YES') : this.translateConfigService.translate('TEXT_NOT'); } return; }; this.deny = () => { const data = { action: 'deny', invite: { companyInstance: this.candidateDriverInvite.company.instanceName, inviteId: this.candidateDriverInvite.driver.inviteId, eventId: this.candidateDriverInvite.driver.eventId, event: { eventId: this.candidateDriverInvite.driver.eventId, target: this.candidateDriverInvite.target }, ...this.candidateDriverInvite } }; this.modalController.dismiss(data); }; this.authorize = () => { const data = { action: 'authorize', invite: { eventId: this.candidateDriverInvite.driver.eventId, companyInstance: this.candidateDriverInvite.company.instanceName, inviteId: this.candidateDriverInvite.driver.inviteId, event: { eventId: this.candidateDriverInvite.driver.eventId, target: this.candidateDriverInvite.target }, ...this.candidateDriverInvite } }; this.modalController.dismiss(data); }; this.onClose = () => { this.modalController.dismiss(); }; } ngOnInit() { this.loadingService.show(this.translateConfigService.translate('LOADING_DATA'), 'loading-drivers-data'); this.comparePendingApprovals() .then(this.handleComparePendingApprovalsSuccessResponse) .catch(this.handleComparePendingApprovalsErrorResponse); } } SolveDriverCheckinConflictComponent.ɵfac = function SolveDriverCheckinConflictComponent_Factory(t) { return new (t || SolveDriverCheckinConflictComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_ionic_angular__WEBPACK_IMPORTED_MODULE_3__.ModalController), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_1__.PortalLoginManagerService), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_1__.ProfileManagerService), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_1__.LogisticEventApiService), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_1__.AuthService), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_1__.LoadingService), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_1__.TranslateConfigService)); }; SolveDriverCheckinConflictComponent.ɵcmp = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: SolveDriverCheckinConflictComponent, selectors: [["app-solve-driver-checkin-conflict"]], inputs: { inviteId: "inviteId", instanceName: "instanceName" }, decls: 14, vars: 9, consts: [[3, "ngClass"], [1, "content"], [1, "modal-container"], [1, "modal-title"], [1, "button-holder"], [1, "back", 3, "click"], [1, "title"], ["class", "spinner", 4, "ngIf"], ["class", "modal-body", 4, "ngIf"], [1, "modal-footer"], [1, "spinner"], ["mode", "ios", "name", "crescent"], [1, "modal-body"], [1, "section", "bottom"], [1, "actions", "two-or-more"], ["type", "button", 3, "click"], [1, "driver-holder"], [1, "item", "driver-details"], [1, "label"], [1, "value"], [1, "photo"], [1, "name"], [1, "item", "license-plate-one-details"], [1, "item", "license-plate-two-details"], [1, "item", "entrance-type-details"], [1, "item", "has-cart-details"]], template: function SolveDriverCheckinConflictComponent_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 0)(1, "div", 1)(2, "div", 2)(3, "div", 3)(4, "div", 4)(5, "button", 5); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function SolveDriverCheckinConflictComponent_Template_button_click_5_listener() { return ctx.onClose(); }); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](6); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](7, "translate"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()(); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "div", 6); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](9); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](10, "translate"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()(); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](11, SolveDriverCheckinConflictComponent_div_11_Template, 2, 0, "div", 7); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](12, SolveDriverCheckinConflictComponent_div_12_Template, 81, 46, "div", 8); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](13, "div", 9); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()()(); } if (rf & 2) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngClass", "selector"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](6); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind1"](7, 5, "BTN_BACK")); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind1"](10, 7, "MD_DRIVER_CONFLICT_TITLE"), " "); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", !ctx.loaded); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.registeredDriverInvite && ctx.candidateDriverInvite && ctx.loaded); } }, dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_2__.NgClass, _angular_common__WEBPACK_IMPORTED_MODULE_2__.NgIf, _ionic_angular__WEBPACK_IMPORTED_MODULE_3__.IonCol, _ionic_angular__WEBPACK_IMPORTED_MODULE_3__.IonRow, _ionic_angular__WEBPACK_IMPORTED_MODULE_3__.IonSpinner, _ngx_translate_core__WEBPACK_IMPORTED_MODULE_4__.TranslatePipe], styles: ["ion-content.selector.ios[_ngcontent-%COMP%] {\n --offset-top: 0px !important;\n}\n\n.selector[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] {\n height: 100vh;\n}\n\n.selector[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] {\n box-shadow: 0px -6px 3px rgba(0, 0, 0, 0.1);\n margin-top: 0;\n transition: margin-top 1s ease;\n background-color: #fff;\n height: 100%;\n overflow: scroll;\n}\n\n.selector[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-title[_ngcontent-%COMP%] {\n display: flex;\n padding-top: 1em;\n justify-content: center;\n align-items: center;\n flex-direction: column;\n}\n\n.selector[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-title[_ngcontent-%COMP%] .title[_ngcontent-%COMP%] {\n font-size: initial !important;\n font-weight: bold;\n text-align: center;\n margin: 32px;\n margin-bottom: 24px 32px 8px 32px;\n}\n\n.selector[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-title[_ngcontent-%COMP%] .button-holder[_ngcontent-%COMP%] {\n justify-content: center;\n margin: 0;\n}\n\n.selector[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .input-holder[_ngcontent-%COMP%] {\n margin-top: 8px;\n display: flex;\n justify-content: center;\n align-items: center;\n flex-direction: column;\n}\n\n.selector[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .input-holder[_ngcontent-%COMP%] .upper-options[_ngcontent-%COMP%] {\n display: flex;\n justify-content: center;\n align-items: center;\n}\n\n.selector[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .input-holder[_ngcontent-%COMP%] .upper-options[_ngcontent-%COMP%] .new-holder[_ngcontent-%COMP%] {\n margin-top: 18px;\n}\n\n.selector[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .input-holder[_ngcontent-%COMP%] .upper-options[_ngcontent-%COMP%] .new-holder[_ngcontent-%COMP%] .button-holder[_ngcontent-%COMP%] {\n margin-top: 0;\n}\n\n.selector[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .input-holder[_ngcontent-%COMP%] .bottom-options[_ngcontent-%COMP%] {\n display: flex;\n justify-content: center;\n align-items: center;\n}\n\n.selector[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .input-holder[_ngcontent-%COMP%] .bottom-options[_ngcontent-%COMP%] .new-holder[_ngcontent-%COMP%] {\n margin-top: 18px;\n}\n\n.selector[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .input-holder[_ngcontent-%COMP%] .bottom-options[_ngcontent-%COMP%] .new-holder[_ngcontent-%COMP%] .button-holder[_ngcontent-%COMP%] {\n margin-top: 0;\n width: 100%;\n}\n\n.selector[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n width: 100%;\n margin: 8px;\n}\n\n.selector[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%] .actions.two-or-more[_ngcontent-%COMP%] {\n justify-content: space-around;\n}\n\n.selector[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%] .actions.only-one[_ngcontent-%COMP%] {\n justify-content: center;\n}\n\n.selector[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%] button[_ngcontent-%COMP%] {\n font-size: 1em;\n color: #0ec254;\n background-color: #fff;\n padding: 0.5em 1.25em;\n border-radius: 32px;\n border: 1px solid #0ec254;\n transition: background-color 0.1s ease-out;\n}\n\n.selector[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:active {\n background-color: #0ec254;\n color: #fff;\n transition: background-color 0.1s ease-out;\n}\n\n.selector[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%] .driver-holder[_ngcontent-%COMP%] {\n padding: 16px;\n border: 1px solid #eee;\n border-radius: 8px;\n}\n\n.selector[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%] .driver-holder[_ngcontent-%COMP%] .item[_ngcontent-%COMP%] {\n margin-bottom: 12px;\n}\n\n.selector[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%] .driver-holder[_ngcontent-%COMP%] .label[_ngcontent-%COMP%] {\n font-weight: bold;\n}\n\n.selector[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%] .driver-holder[_ngcontent-%COMP%] .driver-details[_ngcontent-%COMP%] .label[_ngcontent-%COMP%] {\n color: #0ec254;\n}\n\n.selector[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .spinner[_ngcontent-%COMP%] {\n display: flex;\n justify-content: center;\n align-items: center;\n height: 50vh;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNvbHZlLWRyaXZlci1jaGVja2luLWNvbmZsaWN0LmNvbXBvbmVudC5zY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0VBQ0UsNEJBQUE7QUFDRjs7QUFHRTtFQUNFLGFBQUE7QUFBSjs7QUFFSTtFQUNFLDJDQUFBO0VBQ0EsYUFBQTtFQUNBLDhCQUFBO0VBQ0Esc0JBQUE7RUFDQSxZQUFBO0VBQ0EsZ0JBQUE7QUFBTjs7QUFFTTtFQUNFLGFBQUE7RUFDQSxnQkFBQTtFQUNBLHVCQUFBO0VBQ0EsbUJBQUE7RUFDQSxzQkFBQTtBQUFSOztBQUVRO0VBQ0UsNkJBQUE7RUFDQSxpQkFBQTtFQUNBLGtCQUFBO0VBQ0EsWUFBQTtFQUNBLGlDQUFBO0FBQVY7O0FBR1E7RUFDRSx1QkFBQTtF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cDogMHB4ICFpbXBvcnRhbnQ7XG59XG5cbi5zZWxlY3RvciB7XG4gIC5jb250ZW50IHtcbiAgICBoZWlnaHQ6IDEwMHZoO1xuXG4gICAgLm1vZGFsLWNvbnRhaW5lciB7XG4gICAgICBib3gtc2hhZG93OiAwcHggLTZweCAzcHggcmdiYSgwLCAwLCAwLCAwLjEpO1xuICAgICAgbWFyZ2luLXRvcDogMDtcbiAgICAgIHRyYW5zaXRpb246IG1hcmdpbi10b3AgMXMgZWFzZTtcbiAgICAgIGJhY2tncm91bmQtY29sb3I6ICNmZmY7XG4gICAgICBoZWlnaHQ6IDEwMCU7XG4gICAgICBvdmVyZmxvdzogc2Nyb2xsO1xuXG4gICAgICAubW9kYWwtdGl0bGUge1xuICAgICAgICBkaXNwbGF5OiBmbGV4O1xuICAgICAgICBwYWRkaW5nLXRvcDogMWVtO1xuICAgICAgICBqdXN0aWZ5LWNvbnRlbnQ6IGNlbnRlcjtcbiAgICAgICAgYWxpZ24taXRlbXM6IGNlbnRlcjtcbiAgICAgICAgZmxleC1kaXJlY3Rpb246IGNvbHVtbjtcblxuICAgICAgICAudGl0bGUge1xuICAgICAgICAgIGZvbnQtc2l6ZTogaW5pdGlhbCAhaW1wb3J0YW50O1xuICAgICAgICAgIGZvbnQtd2VpZ2h0OiBib2xkO1xuICAgICAgICAgIHRleHQtYWxpZ246IGNlbnRlcjtcbiAgICAgICAgICBtYXJnaW46IDMycHg7XG4gICAgICAgICAgbWFyZ2luLWJvdHRvbTogMjRweCAzMnB4IDhweCAzMnB4O1xuICAgICAgICB9XG5cbiAgICAgICAgLmJ1dHRvbi1ob2xkZXIge1xuICAgICAgICAgIGp1c3RpZnktY29udGVudDogY2VudGVyO1xuICAgICAgICAgIG1hcmdpbjogMDtcbiAgICAgICAgfVxuICAgICAgfVxuXG4gICAgICAuaW5wdXQtaG9sZGVyIHtcbiAgICAgICAgbWFyZ2luLXRvcDogOHB4O1xuICAgICAgICBkaXNwbGF5OiBmbGV4O1xuICAgICAgICBqdXN0aWZ5LWNvbnRlbnQ6IGNlbnRlcjtcbiAgICAgICAgYWxpZ24taXRlbXM6IGNlbnRlcjtcbiAgICAgICAgZmxleC1kaXJlY3Rpb246IGNvbHVtbjtcblxuICAgICAgICAudXBwZXItb3B0aW9ucyB7XG4gICAgICAgICAgZGlzcGxheTogZmxleDtcbiAgICAgICAgICBqdXN0aWZ5LWNvbnRlbnQ6IGNlbnRlcjtcbiAgICAgICAgICBhbGlnbi1pdGVtczogY2VudGVyO1xuXG4gICAgICAgICAgLm5ldy1ob2xkZXIge1xuICAgICAgICAgICAgbWFyZ2luLXRvcDogMThweDtcblxuICAgICAgICAgICAgLmJ1dHRvbi1ob2xkZXIge1xuICAgICAgICAgICAgICBtYXJnaW4tdG9wOiAwO1xuICAgICAgICAgICAgfVxuICAgICAgICAgIH1cbiAgICAgICAgfVxuXG4gICAgICAgIC5ib3R0b20tb3B0aW9ucyB7XG4gICAgICAgICAgZGlzcGxheTogZmxleDtcbiAgICAgICAgICBqdXN0aWZ5LWNvbnRlbnQ6IGNlbnRlcjtcbiAgICAgICAgICBhbGlnbi1pdGVtczogY2VudGVyO1xuXG4gICAgICAgICAgLm5ldy1ob2xkZXIge1xuICAgICAgICAgICAgbWFyZ2luLXRvcDogMThweDtcblxuICAgICAgICAgICAgLmJ1dHRvbi1ob2xkZXIge1xuICAgICAgICAgICAgICBtYXJnaW4tdG9wOiAwO1xuICAgICAgICAgICAgICB3aWR0aDogMTAwJTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgICB9XG4gICAgICAgIH1cbiAgICAgIH1cblxuICAgICAgLm1vZGFsLWJvZHkge1xuICAgICAgICAuYWN0aW9ucyB7XG4gICAgICAgICAgZGlzcGxheTogZmxleDtcbiAgICAgICAgICBhbGlnbi1pdGVtczogY2VudGVyO1xuICAgICAgICAgIHdpZHRoOiAxMDAlO1xuICAgICAgICAgIG1hcmdpbjogOHB4O1xuXG4gICAgICAgICAgJi50d28tb3ItbW9yZSB7XG4gICAgICAgICAgICBqdXN0aWZ5LWNvbnRlbnQ6IHNwYWNlLWFyb3VuZDtcbiAgICAgICAgICB9XG5cbiAgICAgICAgICAmLm9ubHktb25lIHtcbiAgICAgICAgICAgIGp1c3RpZnktY29udGVudDogY2VudGVyO1xuICAgICAgICAgIH1cblxuICAgICAgICAgIGJ1dHRvbiB7XG4gICAgICAgICAgICBmb250LXNpemU6IDFlbTtcbiAgICAgICAgICAgIGNvbG9yOiAjMGVjMjU0O1xuICAgICAgICAgICAgYmFja2dyb3VuZC1jb2xvcjogI2ZmZjtcbiAgICAgICAgICAgIHBhZGRpbmc6IDAuNWVtIDEuMjVlbTtcbiAgICAgICAgICAgIGJvcmRlci1yYWRpdXM6IDMycHg7XG4gICAgICAgICAgICBib3JkZXI6IDFweCBzb2xpZCAjMGVjMjU0O1xuICAgICAgICAgICAgdHJhbnNpdGlvbjogYmFja2dyb3VuZC1jb2xvciAwLjFzIGVhc2Utb3V0O1xuXG4gICAgICAgICAgICAmOmFjdGl2ZSB7XG4gICAgICAgICAgICAgIGJhY2tncm91bmQtY29sb3I6ICMwZWMyNTQ7XG4gICAgICAgICAgICAgIGNvbG9yOiAjZmZmO1xuICAgICAgICAgICAgICB0cmFuc2l0aW9uOiBiYWNrZ3JvdW5kLWNvbG9yIDAuMXMgZWFzZS1vdXQ7XG4gICAgICAgICAgICB9XG4gICAgICAgICAgfVxuICAgICAgICB9XG5cbiAgICAgICAgLmRyaXZlci1ob2xkZXIge1xuICAgICAgICAgIHBhZGRpbmc6IDE2cHg7XG4gICAgICAgICAgYm9yZGVyOiAxcHggc29saWQgI2VlZTtcbiAgICAgICAgICBib3JkZXItcmFkaXVzOiA4cHg7XG5cbiAgICAgICAgICAuaXRlbSB7XG4gICAgICAgICAgICBtYXJnaW4tYm90dG9tOiAxMnB4O1xuICAgICAgICAgIH1cblxuICAgICAgICAgIC5sYWJlbCB7XG4gICAgICAgICAgICBmb250LXdlaWdodDogYm9sZDtcbiAgICAgICAgICB9XG5cbiAgICAgICAgICAudmFsdWUge1xuICAgICAgICAgIH1cblxuICAgICAgICAgIC5kcml2ZXItZGV0YWlscyB7XG4gICAgICAgICAgICAubGFiZWwge1xuICAgICAgICAgICAgICBjb2xvcjogIzBlYzI1NDtcbiAgICAgICAgICAgIH1cbiAgICAgICAgICB9XG4gICAgICAgIH1cbiAgICAgIH1cbiAgICB9XG5cbiAgICAuc3Bpbm5lciB7XG4gICAgICBkaXNwbGF5OiAtd2Via2l0LWJveDtcbiAgICAgIGRpc3BsYXk6IGZsZXg7XG4gICAgICAtd2Via2l0LWJveC1wYWNrOiBjZW50ZXI7XG4gICAgICBqdXN0aWZ5LWNvbnRlbnQ6IGNlbnRlcjtcbiAgICAgIC13ZWJraXQtYm94LWFsaWduOiBjZW50ZXI7XG4gICAgICBhbGlnbi1pdGVtczogY2VudGVyO1xuICAgICAgaGVpZ2h0OiA1MHZoO1xuICAgIH1cbiAgfVxufVxuIl19 */"] }); /***/ }), /***/ 15492: /*!***************************************************************!*\ !*** ./src/app/shared/services/check-invert-color.service.ts ***! \***************************************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "CheckInvertColorService": () => (/* binding */ CheckInvertColorService) /* 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 _capacitor_capacitor_check_invert_color__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @capacitor/capacitor-check-invert-color */ 70957); /* 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__); class CheckInvertColorService { constructor() {} isEnabled() { 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 enable = false; try { const { invertedColorsEnabled } = yield _capacitor_capacitor_check_invert_color__WEBPACK_IMPORTED_MODULE_1__.CheckInvertColor.checkInversionStatus(); enable = invertedColorsEnabled; } catch (error) { enable = false; return; } return enable; })(); } } CheckInvertColorService.ɵfac = function CheckInvertColorService_Factory(t) { return new (t || CheckInvertColorService)(); }; CheckInvertColorService.ɵprov = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdefineInjectable"]({ token: CheckInvertColorService, factory: CheckInvertColorService.ɵfac, providedIn: 'root' }); /***/ }), /***/ 59439: /*!*********************************************************!*\ !*** ./src/app/shared/services/email-update.service.ts ***! \*********************************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "EmailUpdateService": () => (/* binding */ EmailUpdateService) /* harmony export */ }); /* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! rxjs */ 84505); /* 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 EmailUpdateService { constructor() { this.stateSubject = new rxjs__WEBPACK_IMPORTED_MODULE_1__.BehaviorSubject({ step: 'initial', isUpdating: false }); this.state$ = this.stateSubject.asObservable(); } getCurrentState() { return this.stateSubject.value; } updateState(newState) { const currentState = this.getCurrentState(); this.stateSubject.next({ ...currentState, ...newState }); } startEmailUpdate(newEmail, dataAccount) { this.updateState({ newEmail, dataAccount, isUpdating: true, step: 'initial' }); } setCodeVerificationStep() { this.updateState({ step: 'code_verification' }); } setPinVerificationStep() { this.updateState({ step: 'pin_verification' }); } completeEmailUpdate(updatedDataAccount) { this.updateState({ dataAccount: updatedDataAccount, step: 'completed', isUpdating: false }); } reset() { this.stateSubject.next({ step: 'initial', isUpdating: false }); } } EmailUpdateService.ɵfac = function EmailUpdateService_Factory(t) { return new (t || EmailUpdateService)(); }; EmailUpdateService.ɵprov = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"]({ token: EmailUpdateService, factory: EmailUpdateService.ɵfac, providedIn: 'root' }); /***/ }), /***/ 37763: /*!**************************************************!*\ !*** ./src/app/shared/services/focus.service.ts ***! \**************************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "FocusService": () => (/* binding */ FocusService) /* harmony export */ }); /* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/router */ 61380); /* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_angular_router__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! rxjs/operators */ 59151); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ 45449); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_angular_core__WEBPACK_IMPORTED_MODULE_1__); class FocusService { constructor(router) { this.router = router; } focusInRouterNavigate() { this.router.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_2__.filter)(event => event instanceof _angular_router__WEBPACK_IMPORTED_MODULE_0__.NavigationEnd)).subscribe(() => { const mainHeader = document.querySelector('#focusHeader'); if (mainHeader) { mainHeader?.focus(); } }); } /** * * @param selector ID preference selector exemple: this.applyFocusQuerySelector('myselectorid', 300) * not necessary # . * @param time */ applyFocusQuerySelector(selector, time) { setTimeout(() => { const nextTag = document.querySelector(`#${selector}`); nextTag?.focus(); }, time); } } FocusService.ɵfac = function FocusService_Factory(t) { return new (t || FocusService)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](_angular_router__WEBPACK_IMPORTED_MODULE_0__.Router)); }; FocusService.ɵprov = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineInjectable"]({ token: FocusService, factory: FocusService.ɵfac, providedIn: 'root' }); /***/ }), /***/ 86697: /*!****************************************************************!*\ !*** ./src/app/shared/services/help.diagnostic.dev.service.ts ***! \****************************************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "HelpDevDiagnosticService": () => (/* binding */ HelpDevDiagnosticService) /* 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 _capacitor_app__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @capacitor/app */ 93253); /* harmony import */ var _capacitor_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @capacitor/core */ 26549); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/core */ 45449); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_angular_core__WEBPACK_IMPORTED_MODULE_3__); /* harmony import */ var _auth_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./auth.service */ 10629); /* harmony import */ var _firebase__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./firebase */ 64673); /* harmony import */ var _ionic_angular__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @ionic/angular */ 93819); /* harmony import */ var _storage_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./storage.service */ 1303); /* harmony import */ var _log_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./log.service */ 23753); class HelpDevDiagnosticService { constructor(auth, fcmFirebase, platform, storageService, logService) { this.auth = auth; this.fcmFirebase = fcmFirebase; this.platform = platform; this.storageService = storageService; this.logService = logService; } sendDiagnosticLogTron() { 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 help = yield _this.statusCheck(); const platFormOs = _capacitor_core__WEBPACK_IMPORTED_MODULE_2__.Capacitor.getPlatform(); const data = { ...help, buildVesion: help.appInfo.build, appVersion: help.appInfo.version, platFormOs }; _this.logService.logEvent('event::diagnostic', 'Help Diagnostic app', JSON.stringify(data)); })(); } statusCheck() { 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* () { return new Promise((resolve, reject) => { _this2.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* () { _this2.storageService.startStorage().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* () { try { const promisseAll = yield Promise.all([_this2.auth.getLogOff(), _this2.auth.getToken(), _this2.auth.isExpiredToken(), _this2.auth.needsToRenewToken(), _this2.auth.getSabugoGeneratedAt(), _this2.auth.needsToRenewSabugo(), _this2.auth.isExpiredSabugo(), _this2.fcmFirebase.getTokenFcm(), { getTokenFcmStorage: _this2.fcmFirebase.getTokenStorage() }, yield _capacitor_app__WEBPACK_IMPORTED_MODULE_1__.App.getInfo(), yield _this2.auth.getRefId()]); const logOff = promisseAll[0]; const token = promisseAll[1]; const isExpiredToken = promisseAll[2]; const needsToRenewToken = promisseAll[3]; const getSabugoGeneratedAt = promisseAll[4]; const needsToRenewSabugo = promisseAll[5]; const isExpiredSabugo = promisseAll[6]; const getTokenFcm = promisseAll[7]; const getTokenFcmStorage = promisseAll[8].getTokenFcmStorage; const appInfo = promisseAll[9]; const refId = promisseAll[10]; const data = { logOff, token, isExpiredToken, needsToRenewToken, getSabugoGeneratedAt, needsToRenewSabugo, isExpiredSabugo, getTokenFcm, getTokenFcmStorage, appInfo, refId }; return resolve(data); } catch (error) { return reject(error); } })); })); }); })(); } } HelpDevDiagnosticService.ɵfac = function HelpDevDiagnosticService_Factory(t) { return new (t || HelpDevDiagnosticService)(_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵinject"](_auth_service__WEBPACK_IMPORTED_MODULE_4__.AuthService), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵinject"](_firebase__WEBPACK_IMPORTED_MODULE_5__.FcmService), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵinject"](_ionic_angular__WEBPACK_IMPORTED_MODULE_8__.Platform), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵinject"](_storage_service__WEBPACK_IMPORTED_MODULE_6__.StorageService), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵinject"](_log_service__WEBPACK_IMPORTED_MODULE_7__.LogService)); }; HelpDevDiagnosticService.ɵprov = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdefineInjectable"]({ token: HelpDevDiagnosticService, factory: HelpDevDiagnosticService.ɵfac, providedIn: 'root' }); /***/ }), /***/ 90003: /*!************************************************************!*\ !*** ./src/app/shared/services/native-settings.service.ts ***! \************************************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "NativeSettingsService": () => (/* binding */ NativeSettingsService) /* harmony export */ }); /* harmony import */ var capacitor_native_settings__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! capacitor-native-settings */ 82599); /* 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 _ionic_angular__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @ionic/angular */ 93819); class NativeSettingsService { constructor(platform) { this.platform = platform; } openSetting(optionAndroid, optionIOS) { this.platform.ready().then(() => { capacitor_native_settings__WEBPACK_IMPORTED_MODULE_0__.NativeSettings.open({ optionAndroid, optionIOS }); }); } } NativeSettingsService.ɵfac = function NativeSettingsService_Factory(t) { return new (t || NativeSettingsService)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](_ionic_angular__WEBPACK_IMPORTED_MODULE_2__.Platform)); }; NativeSettingsService.ɵprov = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineInjectable"]({ token: NativeSettingsService, factory: NativeSettingsService.ɵfac, providedIn: 'root' }); /***/ }), /***/ 37043: /*!**************************************************!*\ !*** ./src/app/shared/services/photo.service.ts ***! \**************************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "PhotoService": () => (/* binding */ PhotoService) /* harmony export */ }); /* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! rxjs */ 92218); /* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! rxjs */ 12378); /* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! rxjs */ 45398); /* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! rxjs/operators */ 46774); /* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! rxjs/operators */ 59095); /* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! rxjs/operators */ 85921); /* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! rxjs/operators */ 44661); /* 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__); /* harmony import */ var _api_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./api.service */ 94761); class PhotoService { constructor(apiService) { this.apiService = apiService; this.destroy$ = new rxjs__WEBPACK_IMPORTED_MODULE_2__.Subject(); } getPhoto(token, refId) { return this.apiService.getUserThumbnailPhoto(token, refId); } updatePhoto(token, data) { let subscription; return new rxjs__WEBPACK_IMPORTED_MODULE_3__.Observable(observer => { subscription = this.retryUpdatePhoto(token, data).subscribe(value => { observer.next(value); observer.complete(); }, error => observer.error(error)); }); } retryUpdatePhoto(token, data) { return this.updatePhotoSendAPI(token, data).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.retryWhen)(errors => errors.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.switchMap)((error, index) => { console.log('Erro, Tentativa:', index); if (index < 2) { return (0,rxjs__WEBPACK_IMPORTED_MODULE_6__.timer)(0); // Tentar imediatamente 3 vezes } else { const randomSeconds = Math.floor(Math.random() * 10 * 60) + 60; const timeValue = randomSeconds >= 60 ? Math.floor(randomSeconds / 60) : randomSeconds; const milliseconds = randomSeconds * 1000; const timeUnit = randomSeconds >= 60 ? 'minuto(s)' : 'segundo(s)'; const delayTime = milliseconds; // Delay aleatório de 1 a 10 minutos console.log(`Aguardando ${timeValue} ${timeUnit} (${milliseconds} milissegundos) antes de tentar novamente...`); return (0,rxjs__WEBPACK_IMPORTED_MODULE_6__.timer)(delayTime).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.switchMap)(() => { console.log('Tentando novamente após atraso...'); return this.retryUpdatePhoto(token, data); })); } }), (0,rxjs_operators__WEBPACK_IMPORTED_MODULE_7__.takeUntil)(this.destroy$))), (0,rxjs_operators__WEBPACK_IMPORTED_MODULE_8__.finalize)(() => { this.unsubscribe(); })); } updatePhotoSendAPI(token, data) { return this.apiService.updatePhoto(token, data); } unsubscribe() { this.destroy$.next(); this.destroy$.complete(); } } PhotoService.ɵfac = function PhotoService_Factory(t) { return new (t || PhotoService)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](_api_service__WEBPACK_IMPORTED_MODULE_1__.ApiService)); }; PhotoService.ɵprov = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"]({ token: PhotoService, factory: PhotoService.ɵfac, providedIn: 'root' }); /***/ }), /***/ 74658: /*!*****************************************************************************!*\ !*** ./custom-plugins/capacitor-check-invert-color/dist/esm/definitions.js ***! \*****************************************************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { __webpack_require__.r(__webpack_exports__); /***/ }), /***/ 70957: /*!***********************************************************************!*\ !*** ./custom-plugins/capacitor-check-invert-color/dist/esm/index.js ***! \***********************************************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "CheckInvertColor": () => (/* binding */ CheckInvertColor) /* harmony export */ }); /* harmony import */ var _capacitor_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @capacitor/core */ 21092); /* harmony import */ var _definitions__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./definitions */ 74658); /* eslint-disable @typescript-eslint/naming-convention */ const CheckInvertColor = (0,_capacitor_core__WEBPACK_IMPORTED_MODULE_0__.registerPlugin)('CheckInvertColor', { web: () => __webpack_require__.e(/*! import() */ 8905).then(__webpack_require__.bind(__webpack_require__, /*! ./web */ 88905)).then(m => new m.CheckInvertColorWeb()) }); /***/ }), /***/ 21092: /*!************************************************************************************************!*\ !*** ./custom-plugins/capacitor-check-invert-color/node_modules/@capacitor/core/dist/index.js ***! \************************************************************************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "Capacitor": () => (/* binding */ Capacitor), /* harmony export */ "CapacitorCookies": () => (/* binding */ CapacitorCookies), /* harmony export */ "CapacitorException": () => (/* binding */ CapacitorException), /* harmony export */ "CapacitorHttp": () => (/* binding */ CapacitorHttp), /* harmony export */ "CapacitorPlatforms": () => (/* binding */ CapacitorPlatforms), /* harmony export */ "ExceptionCode": () => (/* binding */ ExceptionCode), /* harmony export */ "Plugins": () => (/* binding */ Plugins), /* harmony export */ "WebPlugin": () => (/* binding */ WebPlugin), /* harmony export */ "WebView": () => (/* binding */ WebView), /* harmony export */ "addPlatform": () => (/* binding */ addPlatform), /* harmony export */ "buildRequestInit": () => (/* binding */ buildRequestInit), /* harmony export */ "registerPlugin": () => (/* binding */ registerPlugin), /* harmony export */ "registerWebPlugin": () => (/* binding */ registerWebPlugin), /* harmony export */ "setPlatform": () => (/* binding */ setPlatform) /* 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); /*! Capacitor: https://capacitorjs.com/ - MIT License */ const createCapacitorPlatforms = win => { const defaultPlatformMap = new Map(); defaultPlatformMap.set('web', { name: 'web' }); const capPlatforms = win.CapacitorPlatforms || { currentPlatform: { name: 'web' }, platforms: defaultPlatformMap }; const addPlatform = (name, platform) => { capPlatforms.platforms.set(name, platform); }; const setPlatform = name => { if (capPlatforms.platforms.has(name)) { capPlatforms.currentPlatform = capPlatforms.platforms.get(name); } }; capPlatforms.addPlatform = addPlatform; capPlatforms.setPlatform = setPlatform; return capPlatforms; }; const initPlatforms = win => win.CapacitorPlatforms = createCapacitorPlatforms(win); /** * @deprecated Set `CapacitorCustomPlatform` on the window object prior to runtime executing in the web app instead */ const CapacitorPlatforms = /*#__PURE__*/initPlatforms(typeof globalThis !== 'undefined' ? globalThis : typeof self !== 'undefined' ? self : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : {}); /** * @deprecated Set `CapacitorCustomPlatform` on the window object prior to runtime executing in the web app instead */ const addPlatform = CapacitorPlatforms.addPlatform; /** * @deprecated Set `CapacitorCustomPlatform` on the window object prior to runtime executing in the web app instead */ const setPlatform = CapacitorPlatforms.setPlatform; const legacyRegisterWebPlugin = (cap, webPlugin) => { var _a; const config = webPlugin.config; const Plugins = cap.Plugins; if (!(config === null || config === void 0 ? void 0 : config.name)) { // TODO: add link to upgrade guide throw new Error(`Capacitor WebPlugin is using the deprecated "registerWebPlugin()" function, but without the config. Please use "registerPlugin()" instead to register this web plugin."`); } // TODO: add link to upgrade guide console.warn(`Capacitor plugin "${config.name}" is using the deprecated "registerWebPlugin()" function`); if (!Plugins[config.name] || ((_a = config === null || config === void 0 ? void 0 : config.platforms) === null || _a === void 0 ? void 0 : _a.includes(cap.getPlatform()))) { // Add the web plugin into the plugins registry if there already isn't // an existing one. If it doesn't already exist, that means // there's no existing native implementation for it. // - OR - // If we already have a plugin registered (meaning it was defined in the native layer), // then we should only overwrite it if the corresponding web plugin activates on // a certain platform. For example: Geolocation uses the WebPlugin on Android but not iOS Plugins[config.name] = webPlugin; } }; var ExceptionCode; (function (ExceptionCode) { /** * API is not implemented. * * This usually means the API can't be used because it is not implemented for * the current platform. */ ExceptionCode["Unimplemented"] = "UNIMPLEMENTED"; /** * API is not available. * * This means the API can't be used right now because: * - it is currently missing a prerequisite, such as network connectivity * - it requires a particular platform or browser version */ ExceptionCode["Unavailable"] = "UNAVAILABLE"; })(ExceptionCode || (ExceptionCode = {})); class CapacitorException extends Error { constructor(message, code, data) { super(message); this.message = message; this.code = code; this.data = data; } } const getPlatformId = win => { var _a, _b; if (win === null || win === void 0 ? void 0 : win.androidBridge) { return 'android'; } else if ((_b = (_a = win === null || win === void 0 ? void 0 : win.webkit) === null || _a === void 0 ? void 0 : _a.messageHandlers) === null || _b === void 0 ? void 0 : _b.bridge) { return 'ios'; } else { return 'web'; } }; const createCapacitor = win => { var _a, _b, _c, _d, _e; const capCustomPlatform = win.CapacitorCustomPlatform || null; const cap = win.Capacitor || {}; const Plugins = cap.Plugins = cap.Plugins || {}; /** * @deprecated Use `capCustomPlatform` instead, default functions like registerPlugin will function with the new object. */ const capPlatforms = win.CapacitorPlatforms; const defaultGetPlatform = () => { return capCustomPlatform !== null ? capCustomPlatform.name : getPlatformId(win); }; const getPlatform = ((_a = capPlatforms === null || capPlatforms === void 0 ? void 0 : capPlatforms.currentPlatform) === null || _a === void 0 ? void 0 : _a.getPlatform) || defaultGetPlatform; const defaultIsNativePlatform = () => getPlatform() !== 'web'; const isNativePlatform = ((_b = capPlatforms === null || capPlatforms === void 0 ? void 0 : capPlatforms.currentPlatform) === null || _b === void 0 ? void 0 : _b.isNativePlatform) || defaultIsNativePlatform; const defaultIsPluginAvailable = pluginName => { const plugin = registeredPlugins.get(pluginName); if (plugin === null || plugin === void 0 ? void 0 : plugin.platforms.has(getPlatform())) { // JS implementation available for the current platform. return true; } if (getPluginHeader(pluginName)) { // Native implementation available. return true; } return false; }; const isPluginAvailable = ((_c = capPlatforms === null || capPlatforms === void 0 ? void 0 : capPlatforms.currentPlatform) === null || _c === void 0 ? void 0 : _c.isPluginAvailable) || defaultIsPluginAvailable; const defaultGetPluginHeader = pluginName => { var _a; return (_a = cap.PluginHeaders) === null || _a === void 0 ? void 0 : _a.find(h => h.name === pluginName); }; const getPluginHeader = ((_d = capPlatforms === null || capPlatforms === void 0 ? void 0 : capPlatforms.currentPlatform) === null || _d === void 0 ? void 0 : _d.getPluginHeader) || defaultGetPluginHeader; const handleError = err => win.console.error(err); const pluginMethodNoop = (_target, prop, pluginName) => { return Promise.reject(`${pluginName} does not have an implementation of "${prop}".`); }; const registeredPlugins = new Map(); const defaultRegisterPlugin = (pluginName, jsImplementations = {}) => { const registeredPlugin = registeredPlugins.get(pluginName); if (registeredPlugin) { console.warn(`Capacitor plugin "${pluginName}" already registered. Cannot register plugins twice.`); return registeredPlugin.proxy; } const platform = getPlatform(); const pluginHeader = getPluginHeader(pluginName); let jsImplementation; const loadPluginImplementation = /*#__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 (!jsImplementation && platform in jsImplementations) { jsImplementation = typeof jsImplementations[platform] === 'function' ? jsImplementation = yield jsImplementations[platform]() : jsImplementation = jsImplementations[platform]; } else if (capCustomPlatform !== null && !jsImplementation && 'web' in jsImplementations) { jsImplementation = typeof jsImplementations['web'] === 'function' ? jsImplementation = yield jsImplementations['web']() : jsImplementation = jsImplementations['web']; } return jsImplementation; }); return function loadPluginImplementation() { return _ref.apply(this, arguments); }; }(); const createPluginMethod = (impl, prop) => { var _a, _b; if (pluginHeader) { const methodHeader = pluginHeader === null || pluginHeader === void 0 ? void 0 : pluginHeader.methods.find(m => prop === m.name); if (methodHeader) { if (methodHeader.rtype === 'promise') { return options => cap.nativePromise(pluginName, prop.toString(), options); } else { return (options, callback) => cap.nativeCallback(pluginName, prop.toString(), options, callback); } } else if (impl) { return (_a = impl[prop]) === null || _a === void 0 ? void 0 : _a.bind(impl); } } else if (impl) { return (_b = impl[prop]) === null || _b === void 0 ? void 0 : _b.bind(impl); } else { throw new CapacitorException(`"${pluginName}" plugin is not implemented on ${platform}`, ExceptionCode.Unimplemented); } }; const createPluginMethodWrapper = prop => { let remove; const wrapper = (...args) => { const p = loadPluginImplementation().then(impl => { const fn = createPluginMethod(impl, prop); if (fn) { const p = fn(...args); remove = p === null || p === void 0 ? void 0 : p.remove; return p; } else { throw new CapacitorException(`"${pluginName}.${prop}()" is not implemented on ${platform}`, ExceptionCode.Unimplemented); } }); if (prop === 'addListener') { p.remove = /*#__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* () { return remove(); }); } return p; }; // Some flair ✨ wrapper.toString = () => `${prop.toString()}() { [capacitor code] }`; Object.defineProperty(wrapper, 'name', { value: prop, writable: false, configurable: false }); return wrapper; }; const addListener = createPluginMethodWrapper('addListener'); const removeListener = createPluginMethodWrapper('removeListener'); const addListenerNative = (eventName, callback) => { const call = addListener({ eventName }, callback); const remove = /*#__PURE__*/function () { var _ref3 = (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 callbackId = yield call; removeListener({ eventName, callbackId }, callback); }); return function remove() { return _ref3.apply(this, arguments); }; }(); const p = new Promise(resolve => call.then(() => resolve({ remove }))); p.remove = /*#__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* () { console.warn(`Using addListener() without 'await' is deprecated.`); yield remove(); }); return p; }; const proxy = new Proxy({}, { get(_, prop) { switch (prop) { // https://github.com/facebook/react/issues/20030 case '$$typeof': return undefined; case 'toJSON': return () => ({}); case 'addListener': return pluginHeader ? addListenerNative : addListener; case 'removeListener': return removeListener; default: return createPluginMethodWrapper(prop); } } }); Plugins[pluginName] = proxy; registeredPlugins.set(pluginName, { name: pluginName, proxy, platforms: new Set([...Object.keys(jsImplementations), ...(pluginHeader ? [platform] : [])]) }); return proxy; }; const registerPlugin = ((_e = capPlatforms === null || capPlatforms === void 0 ? void 0 : capPlatforms.currentPlatform) === null || _e === void 0 ? void 0 : _e.registerPlugin) || defaultRegisterPlugin; // Add in convertFileSrc for web, it will already be available in native context if (!cap.convertFileSrc) { cap.convertFileSrc = filePath => filePath; } cap.getPlatform = getPlatform; cap.handleError = handleError; cap.isNativePlatform = isNativePlatform; cap.isPluginAvailable = isPluginAvailable; cap.pluginMethodNoop = pluginMethodNoop; cap.registerPlugin = registerPlugin; cap.Exception = CapacitorException; cap.DEBUG = !!cap.DEBUG; cap.isLoggingEnabled = !!cap.isLoggingEnabled; // Deprecated props cap.platform = cap.getPlatform(); cap.isNative = cap.isNativePlatform(); return cap; }; const initCapacitorGlobal = win => win.Capacitor = createCapacitor(win); const Capacitor = /*#__PURE__*/initCapacitorGlobal(typeof globalThis !== 'undefined' ? globalThis : typeof self !== 'undefined' ? self : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : {}); const registerPlugin = Capacitor.registerPlugin; /** * @deprecated Provided for backwards compatibility for Capacitor v2 plugins. * Capacitor v3 plugins should import the plugin directly. This "Plugins" * export is deprecated in v3, and will be removed in v4. */ const Plugins = Capacitor.Plugins; /** * Provided for backwards compatibility. Use the registerPlugin() API * instead, and provide the web plugin as the "web" implmenetation. * For example * * export const Example = registerPlugin('Example', { * web: () => import('./web').then(m => new m.Example()) * }) * * @deprecated Deprecated in v3, will be removed from v4. */ const registerWebPlugin = plugin => legacyRegisterWebPlugin(Capacitor, plugin); /** * Base class web plugins should extend. */ class WebPlugin { constructor(config) { this.listeners = {}; this.windowListeners = {}; if (config) { // TODO: add link to upgrade guide console.warn(`Capacitor WebPlugin "${config.name}" config object was deprecated in v3 and will be removed in v4.`); this.config = config; } } addListener(eventName, listenerFunc) { var _this = this; const listeners = this.listeners[eventName]; if (!listeners) { this.listeners[eventName] = []; } this.listeners[eventName].push(listenerFunc); // If we haven't added a window listener for this event and it requires one, // go ahead and add it const windowListener = this.windowListeners[eventName]; if (windowListener && !windowListener.registered) { this.addWindowListener(windowListener); } const remove = /*#__PURE__*/function () { var _ref5 = (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* () { return _this.removeListener(eventName, listenerFunc); }); return function remove() { return _ref5.apply(this, arguments); }; }(); const p = Promise.resolve({ remove }); Object.defineProperty(p, 'remove', { value: function () { var _ref6 = (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* () { console.warn(`Using addListener() without 'await' is deprecated.`); yield remove(); }); return function value() { return _ref6.apply(this, arguments); }; }() }); return p; } removeAllListeners() { 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.listeners = {}; for (const listener in _this2.windowListeners) { _this2.removeWindowListener(_this2.windowListeners[listener]); } _this2.windowListeners = {}; })(); } notifyListeners(eventName, data) { const listeners = this.listeners[eventName]; if (listeners) { listeners.forEach(listener => listener(data)); } } hasListeners(eventName) { return !!this.listeners[eventName].length; } registerWindowListener(windowEventName, pluginEventName) { this.windowListeners[pluginEventName] = { registered: false, windowEventName, pluginEventName, handler: event => { this.notifyListeners(pluginEventName, event); } }; } unimplemented(msg = 'not implemented') { return new Capacitor.Exception(msg, ExceptionCode.Unimplemented); } unavailable(msg = 'not available') { return new Capacitor.Exception(msg, ExceptionCode.Unavailable); } removeListener(eventName, listenerFunc) { 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 listeners = _this3.listeners[eventName]; if (!listeners) { return; } const index = listeners.indexOf(listenerFunc); _this3.listeners[eventName].splice(index, 1); // If there are no more listeners for this type of event, // remove the window listener if (!_this3.listeners[eventName].length) { _this3.removeWindowListener(_this3.windowListeners[eventName]); } })(); } addWindowListener(handle) { window.addEventListener(handle.windowEventName, handle.handler); handle.registered = true; } removeWindowListener(handle) { if (!handle) { return; } window.removeEventListener(handle.windowEventName, handle.handler); handle.registered = false; } } const WebView = /*#__PURE__*/registerPlugin('WebView'); /******** END WEB VIEW PLUGIN ********/ /******** COOKIES PLUGIN ********/ /** * Safely web encode a string value (inspired by js-cookie) * @param str The string value to encode */ const encode = str => encodeURIComponent(str).replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent).replace(/[()]/g, escape); /** * Safely web decode a string value (inspired by js-cookie) * @param str The string value to decode */ const decode = str => str.replace(/(%[\dA-F]{2})+/gi, decodeURIComponent); class CapacitorCookiesPluginWeb extends WebPlugin { getCookies() { 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 cookies = document.cookie; const cookieMap = {}; cookies.split(';').forEach(cookie => { if (cookie.length <= 0) return; // Replace first "=" with CAP_COOKIE to prevent splitting on additional "=" let [key, value] = cookie.replace(/=/, 'CAP_COOKIE').split('CAP_COOKIE'); key = decode(key).trim(); value = decode(value).trim(); cookieMap[key] = value; }); return cookieMap; })(); } setCookie(options) { 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 { // Safely Encoded Key/Value const encodedKey = encode(options.key); const encodedValue = encode(options.value); // Clean & sanitize options const expires = `; expires=${(options.expires || '').replace('expires=', '')}`; // Default is "; expires=" const path = (options.path || '/').replace('path=', ''); // Default is "path=/" const domain = options.url != null && options.url.length > 0 ? `domain=${options.url}` : ''; document.cookie = `${encodedKey}=${encodedValue || ''}${expires}; path=${path}; ${domain};`; } catch (error) { return Promise.reject(error); } })(); } deleteCookie(options) { 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 { document.cookie = `${options.key}=; Max-Age=0`; } catch (error) { return Promise.reject(error); } })(); } clearCookies() { 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 { const cookies = document.cookie.split(';') || []; for (const cookie of cookies) { document.cookie = cookie.replace(/^ +/, '').replace(/=.*/, `=;expires=${new Date().toUTCString()};path=/`); } } catch (error) { return Promise.reject(error); } })(); } clearAllCookies() { 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* () { try { yield _this4.clearCookies(); } catch (error) { return Promise.reject(error); } })(); } } const CapacitorCookies = registerPlugin('CapacitorCookies', { web: () => new CapacitorCookiesPluginWeb() }); // UTILITY FUNCTIONS /** * Read in a Blob value and return it as a base64 string * @param blob The blob value to convert to a base64 string */ const readBlobAsBase64 = /*#__PURE__*/function () { var _ref7 = (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* (blob) { return new Promise((resolve, reject) => { const reader = new FileReader(); reader.onload = () => { const base64String = reader.result; // remove prefix "data:application/pdf;base64," resolve(base64String.indexOf(',') >= 0 ? base64String.split(',')[1] : base64String); }; reader.onerror = error => reject(error); reader.readAsDataURL(blob); }); }); return function readBlobAsBase64(_x) { return _ref7.apply(this, arguments); }; }(); /** * Normalize an HttpHeaders map by lowercasing all of the values * @param headers The HttpHeaders object to normalize */ const normalizeHttpHeaders = (headers = {}) => { const originalKeys = Object.keys(headers); const loweredKeys = Object.keys(headers).map(k => k.toLocaleLowerCase()); const normalized = loweredKeys.reduce((acc, key, index) => { acc[key] = headers[originalKeys[index]]; return acc; }, {}); return normalized; }; /** * Builds a string of url parameters that * @param params A map of url parameters * @param shouldEncode true if you should encodeURIComponent() the values (true by default) */ const buildUrlParams = (params, shouldEncode = true) => { if (!params) return null; const output = Object.entries(params).reduce((accumulator, entry) => { const [key, value] = entry; let encodedValue; let item; if (Array.isArray(value)) { item = ''; value.forEach(str => { encodedValue = shouldEncode ? encodeURIComponent(str) : str; item += `${key}=${encodedValue}&`; }); // last character will always be "&" so slice it off item.slice(0, -1); } else { encodedValue = shouldEncode ? encodeURIComponent(value) : value; item = `${key}=${encodedValue}`; } return `${accumulator}&${item}`; }, ''); // Remove initial "&" from the reduce return output.substr(1); }; /** * Build the RequestInit object based on the options passed into the initial request * @param options The Http plugin options * @param extra Any extra RequestInit values */ const buildRequestInit = (options, extra = {}) => { const output = Object.assign({ method: options.method || 'GET', headers: options.headers }, extra); // Get the content-type const headers = normalizeHttpHeaders(options.headers); const type = headers['content-type'] || ''; // If body is already a string, then pass it through as-is. if (typeof options.data === 'string') { output.body = options.data; } // Build request initializers based off of content-type else if (type.includes('application/x-www-form-urlencoded')) { const params = new URLSearchParams(); for (const [key, value] of Object.entries(options.data || {})) { params.set(key, value); } output.body = params.toString(); } else if (type.includes('multipart/form-data') || options.data instanceof FormData) { const form = new FormData(); if (options.data instanceof FormData) { options.data.forEach((value, key) => { form.append(key, value); }); } else { for (const key of Object.keys(options.data)) { form.append(key, options.data[key]); } } output.body = form; const headers = new Headers(output.headers); headers.delete('content-type'); // content-type will be set by `window.fetch` to includy boundary output.headers = headers; } else if (type.includes('application/json') || typeof options.data === 'object') { output.body = JSON.stringify(options.data); } return output; }; // WEB IMPLEMENTATION class CapacitorHttpPluginWeb extends WebPlugin { /** * Perform an Http request given a set of options * @param options Options to build the HTTP request */ request(options) { 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 requestInit = buildRequestInit(options, options.webFetchExtra); const urlParams = buildUrlParams(options.params, options.shouldEncodeUrlParams); const url = urlParams ? `${options.url}?${urlParams}` : options.url; const response = yield fetch(url, requestInit); const contentType = response.headers.get('content-type') || ''; // Default to 'text' responseType so no parsing happens let { responseType = 'text' } = response.ok ? options : {}; // If the response content-type is json, force the response to be json if (contentType.includes('application/json')) { responseType = 'json'; } let data; let blob; switch (responseType) { case 'arraybuffer': case 'blob': blob = yield response.blob(); data = yield readBlobAsBase64(blob); break; case 'json': data = yield response.json(); break; case 'document': case 'text': default: data = yield response.text(); } // Convert fetch headers to Capacitor HttpHeaders const headers = {}; response.headers.forEach((value, key) => { headers[key] = value; }); return { data, headers, status: response.status, url: response.url }; })(); } /** * Perform an Http GET request given a set of options * @param options Options to build the HTTP request */ get(options) { 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* () { return _this5.request(Object.assign(Object.assign({}, options), { method: 'GET' })); })(); } /** * Perform an Http POST request given a set of options * @param options Options to build the HTTP request */ post(options) { 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* () { return _this6.request(Object.assign(Object.assign({}, options), { method: 'POST' })); })(); } /** * Perform an Http PUT request given a set of options * @param options Options to build the HTTP request */ put(options) { 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* () { return _this7.request(Object.assign(Object.assign({}, options), { method: 'PUT' })); })(); } /** * Perform an Http PATCH request given a set of options * @param options Options to build the HTTP request */ patch(options) { var _this8 = 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* () { return _this8.request(Object.assign(Object.assign({}, options), { method: 'PATCH' })); })(); } /** * Perform an Http DELETE request given a set of options * @param options Options to build the HTTP request */ delete(options) { var _this9 = 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* () { return _this9.request(Object.assign(Object.assign({}, options), { method: 'DELETE' })); })(); } } const CapacitorHttp = registerPlugin('CapacitorHttp', { web: () => new CapacitorHttpPluginWeb() }); /******** END HTTP PLUGIN ********/ /***/ }), /***/ 92938: /*!************************************************************************!*\ !*** ./node_modules/capacitor-native-settings/dist/esm/definitions.js ***! \************************************************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "AndroidSettings": () => (/* binding */ AndroidSettings), /* harmony export */ "IOSSettings": () => (/* binding */ IOSSettings) /* harmony export */ }); var AndroidSettings; (function (AndroidSettings) { /** * Show settings for accessibility modules */ AndroidSettings["Accessibility"] = "accessibility"; /** * Show add account screen for creating a new account */ AndroidSettings["Account"] = "account"; /** * Show settings to allow entering/exiting airplane mode */ AndroidSettings["AirplaneMode"] = "airplane_mode"; /** * Show settings to allow configuration of APNs */ AndroidSettings["Apn"] = "apn"; /** * Show screen of details about a particular application */ AndroidSettings["ApplicationDetails"] = "application_details"; /** * Show settings to allow configuration of application development-related settings */ AndroidSettings["ApplicationDevelopment"] = "application_development"; /** * Show settings to allow configuration of application-related settings */ AndroidSettings["Application"] = "application"; /** * Show settings to allow configuration of application-specific notifications */ AndroidSettings["AppNotification"] = "app_notification"; /** * Show screen for controlling which apps can ignore battery optimizations */ AndroidSettings["BatteryOptimization"] = "battery_optimization"; /** * Show settings to allow configuration of Bluetooth */ AndroidSettings["Bluetooth"] = "bluetooth"; /** * Show settings for video captioning */ AndroidSettings["Captioning"] = "captioning"; /** * Show settings to allow configuration of cast endpoints */ AndroidSettings["Cast"] = "cast"; /** * Show settings for selection of 2G/3G/4G */ AndroidSettings["DataRoaming"] = "data_roaming"; /** * Show settings to allow configuration of date and time */ AndroidSettings["Date"] = "date"; /** * Show settings to allow configuration of display */ AndroidSettings["Display"] = "display"; /** * Show Daydream settings */ AndroidSettings["Dream"] = "dream"; /** * Show Home selection settings */ AndroidSettings["Home"] = "home"; /** * Show settings to configure input methods, in particular allowing the user to enable input methods */ AndroidSettings["Keyboard"] = "keyboard"; /** * Show settings to enable/disable input method subtypes */ AndroidSettings["KeyboardSubType"] = "keyboard_subtype"; /** * Show settings to allow configuration of locale */ AndroidSettings["Locale"] = "locale"; /** * Show settings to allow configuration of current location sources */ AndroidSettings["Location"] = "location"; /** * Show settings to manage installed applications */ AndroidSettings["ManageApplications"] = "manage_applications"; /** * Show settings to manage all applications */ AndroidSettings["ManageAllApplications"] = "manage_all_applications"; /** * Show settings for memory card storage */ AndroidSettings["MemoryCard"] = "memory_card"; /** * Show settings for selecting the network operator */ AndroidSettings["Network"] = "network"; /** * Show NFC Sharing settings */ AndroidSettings["NfcSharing"] = "nfcsharing"; /** * Show NFC Tap & Pay settings */ AndroidSettings["NfcPayment"] = "nfc_payment"; /** * Show NFC settings */ AndroidSettings["NfcSettings"] = "nfc_settings"; /** * Show the top level print settings */ AndroidSettings["Print"] = "print"; /** * Show settings to allow configuration of privacy options */ AndroidSettings["Privacy"] = "privacy"; /** * Show settings to allow configuration of quick launch shortcuts */ AndroidSettings["QuickLaunch"] = "quick_launch"; /** * Show settings for global search */ AndroidSettings["Search"] = "search"; /** * Show settings to allow configuration of security and location privacy */ AndroidSettings["Security"] = "security"; /** * Show system settings */ AndroidSettings["Settings"] = "settings"; /** * Show the regulatory information screen for the device */ AndroidSettings["ShowRegulatoryInfo"] = "show_regulatory_info"; /** * Show settings to a llow configuration of sound and volume */ AndroidSettings["Sound"] = "sound"; /** * Show settings for internal storage */ AndroidSettings["Storage"] = "storage"; /** * Show settings to allow configuration of sync settings */ AndroidSettings["Sync"] = "sync"; /** * Show settings for configuring Text-to-Speech (TTS) output */ AndroidSettings["TextToSpeech"] = "text_to_speech"; /** * Show settings to control access to usage information */ AndroidSettings["Usage"] = "usage"; /** * Show settings to manage the user input dictionary */ AndroidSettings["UserDictionary"] = "user_dictionary"; /** * Show settings to configure input methods, in particular allowing the user to enable input methods */ AndroidSettings["VoiceInput"] = "voice_input"; /** * Show settings to allow configuration of VPN */ AndroidSettings["VPN"] = "vpn"; /** * Show settings to allow configuration of Wi-Fi */ AndroidSettings["Wifi"] = "wifi"; /** * Show settings to allow configuration of a static IP address for Wi-Fi */ AndroidSettings["WifiIp"] = "wifi_ip"; /** * Show settings to allow configuration of wireless controls such as Wi-Fi, Bluetooth and Mobile networks */ AndroidSettings["Wireless"] = "wireless"; /** * Zen mode settings. */ AndroidSettings["ZenMode"] = "zen_mode"; /** * Zen mode priority settings. * Note that this may not work on every single device. * See: https://github.com/RaphaelWoude/capacitor-native-settings/pull/63 */ AndroidSettings["ZenModePriority"] = "zen_mode_priority"; /** * Zen mode blocked effects settings. * Note that this may not work on every single device. * See: https://github.com/RaphaelWoude/capacitor-native-settings/pull/63 */ AndroidSettings["ZenModeBlockedEffects"] = "zen_mode_blocked_effects"; })(AndroidSettings || (AndroidSettings = {})); var IOSSettings; (function (IOSSettings) { /** * Settings > About page */ IOSSettings["About"] = "about"; /** * Opens your app-specific settings screen. Note that this is the only officially supported settings screen by Apple. */ IOSSettings["App"] = "app"; /** * Opens app-specific notification settings screen for iOS 15.4+; opens general app-specific settings for earlier versions." */ IOSSettings["AppNotification"] = "appNotification"; /** * Used to set if and when the screen should be automatically locked. */ IOSSettings["AutoLock"] = "autoLock"; /** * Bluetooth settings. Allows the users to enable/disable bluetooth and to search for devices. */ IOSSettings["Bluetooth"] = "bluetooth"; /** * Date and time settings. */ IOSSettings["DateTime"] = "dateTime"; /** * FaceTime settings. */ IOSSettings["FaceTime"] = "facetime"; /** * Opens iOS general settings screen. */ IOSSettings["General"] = "general"; /** * Keyboard settings. */ IOSSettings["Keyboard"] = "keyboard"; /** * iCloud settings. */ IOSSettings["ICloud"] = "iCloud"; /** * iCloud Storage and Backup settings. */ IOSSettings["ICloudStorageBackup"] = "iCloudStorageBackup"; /** * Language and region settings. */ IOSSettings["International"] = "international"; /** * Show settings to allow configuration of current location sources */ IOSSettings["LocationServices"] = "locationServices"; /** * Music settings. */ IOSSettings["Music"] = "music"; /** * Notes settings. */ IOSSettings["Notes"] = "notes"; /** * Notifications settings. */ IOSSettings["Notifications"] = "notifications"; /** * Phone settings. */ IOSSettings["Phone"] = "phone"; /** * Photos settings. */ IOSSettings["Photos"] = "photos"; /** * Allows the user to manage configuration profiles that are installed on the phone. */ IOSSettings["ManagedConfigurationList"] = "managedConfigurationList"; /** * Screen where the user can reset the phone to factory settings. */ IOSSettings["Reset"] = "reset"; /** * Ringtone settings. */ IOSSettings["Ringtone"] = "ringtone"; /** * Used to set phone volume, vibration settings, etc. */ IOSSettings["Sounds"] = "sounds"; /** * Software update screen. */ IOSSettings["SoftwareUpdate"] = "softwareUpdate"; /** * Store settings. */ IOSSettings["Store"] = "store"; /** * Tracking settings. */ IOSSettings["Tracking"] = "tracking"; /** * VPN settings. */ IOSSettings["VPN"] = "vpn"; /** * Wallpaper settings. */ IOSSettings["Wallpaper"] = "wallpaper"; /** * WiFi settings. */ IOSSettings["WiFi"] = "wifi"; /** * Tethering settings (used to create a hotspot with mobile data). */ IOSSettings["Tethering"] = "tethering"; /** * Do Not Disturb settings. */ IOSSettings["DoNotDisturb"] = "doNotDisturb"; /** * Touch id passcode settings. */ IOSSettings["TouchIdPasscode"] = "touchIdPasscode"; /** * Screen Time settings. */ IOSSettings["ScreenTime"] = "screenTime"; /** * Accessibility settings. */ IOSSettings["Accessibility"] = "accessibility"; })(IOSSettings || (IOSSettings = {})); /***/ }), /***/ 82599: /*!******************************************************************!*\ !*** ./node_modules/capacitor-native-settings/dist/esm/index.js ***! \******************************************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "AndroidSettings": () => (/* reexport safe */ _definitions__WEBPACK_IMPORTED_MODULE_1__.AndroidSettings), /* harmony export */ "IOSSettings": () => (/* reexport safe */ _definitions__WEBPACK_IMPORTED_MODULE_1__.IOSSettings), /* harmony export */ "NativeSettings": () => (/* binding */ NativeSettings) /* harmony export */ }); /* harmony import */ var _capacitor_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @capacitor/core */ 26549); /* harmony import */ var _definitions__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./definitions */ 92938); const NativeSettings = (0,_capacitor_core__WEBPACK_IMPORTED_MODULE_0__.registerPlugin)('NativeSettings', { web: () => __webpack_require__.e(/*! import() */ 4285).then(__webpack_require__.bind(__webpack_require__, /*! ./web */ 34285)).then(m => new m.NativeSettingsWeb()) }); /***/ }), /***/ 45398: /*!*****************************************************************!*\ !*** ./node_modules/rxjs/_esm2015/internal/observable/timer.js ***! \*****************************************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "timer": () => (/* binding */ timer) /* harmony export */ }); /* harmony import */ var _Observable__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../Observable */ 12378); /* harmony import */ var _scheduler_async__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../scheduler/async */ 10328); /* harmony import */ var _util_isNumeric__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../util/isNumeric */ 7269); /* harmony import */ var _util_isScheduler__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../util/isScheduler */ 27507); function timer(dueTime = 0, periodOrScheduler, scheduler) { let period = -1; if ((0,_util_isNumeric__WEBPACK_IMPORTED_MODULE_0__.isNumeric)(periodOrScheduler)) { period = Number(periodOrScheduler) < 1 && 1 || Number(periodOrScheduler); } else if ((0,_util_isScheduler__WEBPACK_IMPORTED_MODULE_1__.isScheduler)(periodOrScheduler)) { scheduler = periodOrScheduler; } if (!(0,_util_isScheduler__WEBPACK_IMPORTED_MODULE_1__.isScheduler)(scheduler)) { scheduler = _scheduler_async__WEBPACK_IMPORTED_MODULE_2__.async; } return new _Observable__WEBPACK_IMPORTED_MODULE_3__.Observable(subscriber => { const due = (0,_util_isNumeric__WEBPACK_IMPORTED_MODULE_0__.isNumeric)(dueTime) ? dueTime : +dueTime - scheduler.now(); return scheduler.schedule(dispatch, due, { index: 0, period, subscriber }); }); } function dispatch(state) { const { index, period, subscriber } = state; subscriber.next(index); if (subscriber.closed) { return; } else if (period === -1) { return subscriber.complete(); } state.index = index + 1; this.schedule(state, period); } /***/ }), /***/ 7269: /*!***************************************************************!*\ !*** ./node_modules/rxjs/_esm2015/internal/util/isNumeric.js ***! \***************************************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "isNumeric": () => (/* binding */ isNumeric) /* harmony export */ }); /* harmony import */ var _isArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./isArray */ 94327); function isNumeric(val) { return !(0,_isArray__WEBPACK_IMPORTED_MODULE_0__.isArray)(val) && val - parseFloat(val) + 1 >= 0; } /***/ }) }]) //# sourceMappingURL=3879.js.map