Files
kapp/3467.js
T
2026-05-12 16:58:11 -03:00

6692 lines
417 KiB
JavaScript

(self["webpackChunkapp"] = self["webpackChunkapp"] || []).push([[3467],{
/***/ 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 */ });
/// <reference types="@capacitor/cli" />
/**
* 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');
/***/ }),
/***/ 3467:
/*!*************************************!*\
!*** ./src/app/home/home.module.ts ***!
\*************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ "HomePageModule": () => (/* binding */ HomePageModule)
/* 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 _techiediaries_ngx_qrcode__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @techiediaries/ngx-qrcode */ 33244);
/* harmony import */ var _shared_components_countdown_countdown_component__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../shared/components/countdown/countdown.component */ 69977);
/* harmony import */ var _shared_module_shared_module_module__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../shared-module/shared-module.module */ 69270);
/* harmony import */ var _home_page__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./home.page */ 62267);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @angular/core */ 45449);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_angular_core__WEBPACK_IMPORTED_MODULE_4__);
const routes = [
{
path: '',
component: _home_page__WEBPACK_IMPORTED_MODULE_3__.HomePage
}
];
class HomePageModule {
}
HomePageModule.ɵfac = function HomePageModule_Factory(t) { return new (t || HomePageModule)(); };
HomePageModule.ɵmod = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdefineNgModule"]({ type: HomePageModule });
HomePageModule.ɵinj = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdefineInjector"]({ imports: [_shared_module_shared_module_module__WEBPACK_IMPORTED_MODULE_2__.SharedModuleModule, _techiediaries_ngx_qrcode__WEBPACK_IMPORTED_MODULE_5__.NgxQRCodeModule, _angular_router__WEBPACK_IMPORTED_MODULE_0__.RouterModule.forChild(routes)] });
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵsetNgModuleScope"](HomePageModule, { declarations: [_home_page__WEBPACK_IMPORTED_MODULE_3__.HomePage, _shared_components_countdown_countdown_component__WEBPACK_IMPORTED_MODULE_1__.CountdownComponent], imports: [_shared_module_shared_module_module__WEBPACK_IMPORTED_MODULE_2__.SharedModuleModule, _techiediaries_ngx_qrcode__WEBPACK_IMPORTED_MODULE_5__.NgxQRCodeModule, _angular_router__WEBPACK_IMPORTED_MODULE_0__.RouterModule], exports: [_shared_components_countdown_countdown_component__WEBPACK_IMPORTED_MODULE_1__.CountdownComponent] }); })();
/***/ }),
/***/ 62267:
/*!***********************************!*\
!*** ./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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImhvbWUucGFnZS5zY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0VBQ0UsNkJBQUE7RUFDQSwyQkFBQTtBQUNGO0FBRUU7RUFDRSxrQkFBQTtFQUNBLE1BQUE7RUFDQSxPQUFBO0VBQ0EsUUFBQTtFQUNBLFdBQUE7RUFDQSxXQUFBO0FBQUo7QUFFSTtFQUNFLGtCQUFBO0VBQ0EsV0FBQTtFQUNBLGdCQUFBO0VBQ0EsV0FBQTtBQUFOO0FBR0k7RUFDRSxhQUFBO0VBQ0EsbUJBQUE7RUFDQSx1QkFBQTtFQUNBLFdBQUE7RUFDQSxtQkFBQTtFQUNBLGtCQUFBO0VBQ0EsV0FBQTtBQUROO0FBR007RUFDRSxjQUFBO0VBQ0EsaUJBQUE7RUFDQSwwQkFBQTtFQUNBLG1CQUFBO0VBQ0EsYUFBQTtFQUNBLG1CQUFBO0FBRFI7QUFHUTtFQUNFLGlCQUFBO0VBQ0EsZ0JBQUE7QUFEVjtBQUlRO0VBQ0UsY0FBQTtFQUNBLG1CQUFBO0VBQ0Esb0JBQUE7QUFGVjtBQU9JO0VBQ0Usa0JBQUE7RUFDQSxXQUFBO0VBQ0EsV0FBQTtBQUxOO0FBU0U7RUFDRSxnQkFBQTtFQUNBLGFBQUE7RUFDQSxzQkFBQTtFQUNBLGtCQUFBO0VBQ0EsZ0JBQUE7RUFDQSw2QkFBQTtFQUNBLHNCQUFBO0VBRUEsWUFBQTtFQUNBLGNBQUE7QUFSSjtBQVVJO0VBQ0UsV0FBQTtFQUNBLFVBQUE7RUFDQSxhQUFBO0VBQ0EsbUJBQUE7RUFDQSx1QkFBQTtFQUNBLHNCQUFBO0VBQ0Esa0NBQUE7RUFDQSxxQkFBQTtBQVJOO0FBVU07RUFDRSxXQUFBO0VBQ0EsWUFBQTtFQUNBLFlBQUE7RUFDQSxjQUFBO0FBUlI7QUFZSTtFQUNFLGFBQUE7RUFDQSw2QkFBQTtFQUNBLFdBQUE7RUFDQSxVQUFBO0VBQ0Esc0JBQUE7RUFDQSxzQkFBQTtFQUNBLFVBQUE7RUFDQSxZQUFBO0FBVk47QUFhSTtFQUNFLGFBQUE7RUFDQSxzQkFBQTtFQUNBLHVCQUFBO0VBQ0EsbUJBQUE7RUFDQSxVQUFBO0VBQ0EsWUFBQTtFQUNBLGFBQUE7RUFDQSxpQkFBQTtBQVhOO0FBYU07RUFFRSxhQUFBO0FBWlI7QUFlTTtFQUNFLHFCQUFBO0VBQ0EsY0FBQTtBQWJSO0FBZ0JNO0VBQ0UsU0FBQTtFQUNBLGFBQUE7RUFDQSx1QkFBQTtFQUNBLG1CQUFBO0FBZFI7QUFrQkk7RUFDRSxPQUFBO0VBQ0EsYUFBQTtFQUNBLHVCQUFBO0VBQ0EsbUJBQUE7RUFDQSxVQUFBO0VBQ0EsYUFBQTtFQUNBLGVBQUE7QUFoQk47QUFrQk07RUFDRSxjQUFBO0FBaEJSO0FBb0JJO0VBQ0Usa0JBQUE7RUFDQSxVQUFBO0VBQ0EsK0JBQUE7RUFBQSw0QkFBQTtFQUFBLHVCQUFBO0VBQ0EsV0FBQTtFQUNBLHVCQUFBO0VBQ0EsbUJBQUE7QUFsQk47QUFxQkk7RUFDRSxhQUFBO0VBQ0EsdUJBQUE7RUFDQSxtQkFBQTtBQW5CTjtBQXNCSTtFQUNFLGFBQUE7RUFDQSx1QkFBQTtFQUNBLG1CQUFBO0FBcEJOO0FBd0JJO0VBRUUsNkJBQUE7RUFDQSxhQUFBO0VBQ0EsdUJBQUE7RUFDQSxtQkFBQTtBQXZCTjtBQTJCRTtFQUNFLGFBQUE7RUFDQSx1QkFBQTtFQUNBLG1CQUFBO0VBQ0Esc0JBQUE7RUFDQSxXQUFBO0FBekJKO0FBNEJFO0VBQ0Usa0JBQUE7QUExQko7QUE2QkU7RUFDRSxXQUFBO0VBQ0Esa0JBQUE7RUFDQSxtQkFBQTtBQTNCSjtBQThCRTtFQUNFLGtCQUFBO0VBQ0EsaUJBQUE7RUFDQSxhQUFBO0VBQ0EsdUJBQUE7RUFDQSxtQkFBQTtFQUNBLFdBQUE7QUE1Qko7QUE4Qkk7RUFDRSwrREFBQTtFQUNBLGVBQUE7RUFDQSxvQkFBQTtFQUNBLDZCQUFBO0VBQ0EsZ0JBQUE7RUFDQSxxQ0FBQTtFQUNBLGNBQUE7RUFDQSxlQUFBO0VBQ0EsZUFBQTtBQTVCTjtBQThCTTtFQUNFLHNCQUFBO0FBNUJSO0FBZ0NJO0VBQ0UsNkJBQUE7RUFDQSxnQkFBQTtFQUNBLHFDQUFBO0VBQ0Esd0NBQUE7RUFDQSxzQ0FBQTtFQUNBLGdCQUFBO0VBQ0EsZUFBQTtFQUNBLGVBQUE7QUE5Qk47QUFpQ0k7RUFDRSxnQkFBQTtFQUNBLGVBQUE7QUEvQk47QUFtQ0k7RUFHRSxnQkFBQTtBQW5DTjtBQXNDSTtFQUVFLGlCQUFBO0FBckNOO0FBd0NJO0VBRUUsbUJBQUE7QUF2Q047QUEwQ0k7RUFDRSxhQUFBO0VBQ0EsdUJBQUE7RUFDQSxtQkFBQTtFQUNBLHNCQUFBO0FBeENOO0FBMENNO0VBQ0UsZ0JBQUE7RUFDQSxxQ0FBQTtFQUNBLFdBQUE7RUFDQSx5QkFBQTtFQUNBLDBEQUFBO0VBQ0EsbUJBQUE7RUFDQSwrREFBQTtFQUNBLDhCQUFBO0FBeENSO0FBMENRO0VBQ0Usc0JBQUE7QUF4Q1Y7QUE2Q0k7RUFDRSxhQUFBO0VBQ0EsdUJBQUE7RUFDQSxtQkFBQTtFQUNBLHNCQUFBO0VBQ0EsV0FBQTtBQTNDTjtBQTZDTTtFQUNFLDhCQUFBO0VBQ0EsYUFBQTtFQUNBLHFDQUFBO0VBQ0EsYUFBQTtFQUNBLHFCQUFBO0VBQ0Esd0NBQUE7RUFDQSxzQ0FBQTtFQUNBLHFCQUFBO0VBQ0EsK0RBQUE7RUFDQSxrQkFBQTtBQTNDUjtBQTZDUTtFQUNFLHNCQUFBO0FBM0NWO0FBK0NNO0VBQ0Usa0JBQUE7QUE3Q1I7QUFnRE07RUFDRSxXQUFBO0VBQ0Esa0JBQUE7QUE5Q1I7QUFtREU7RUFDRSxhQUFBO0VBQ0Esa0JBQUE7RUFDQSxzQkFBQTtFQUNBLHFCQUFBO0VBQ0EsV0FBQTtFQUNBLG1CQUFBO0FBakRKO0FBbURJO0VBQ0UsYUFBQTtFQUNBLHNCQUFBO0VBQ0EsV0FBQTtFQUNBLG1CQUFBO0FBakROO0FBbURNO0VBQ0Usa0JBQUE7QUFqRFI7QUFxREk7RUFDRSxVQUFBO0VBQ0EsWUFBQTtFQUNBLG1CQUFBO0FBbkROO0FBdURFO0VBQ0Usa0JBQUE7RUFFQSxhQUFBO0VBQ0Esd0JBQUE7RUFFQSxtQkFBQTtFQUdBLHNCQUFBO0VBQ0Esd0JBQUE7RUFDQSxjQUFBO0VBQ0EsY0FBQTtFQUNBLHVCQUFBO0FBckRKO0FBeURNO0VBRUUsYUFBQTtBQXhEUjtBQTRESTtFQUNFLGVBQUE7RUFDQSxjQUFBO0VBQ0EsV0FBQTtFQUNBLHlCQUFBO0VBQ0Esc0JBQUE7RUFDQSxtQkFBQTtFQUNBLDBDQUFBO0FBMUROO0FBNERNO0VBQ0UsdUJBQUE7RUFDQSxXQUFBO0FBMURSO0FBK0RFO0VBQ0UsYUFBQTtFQUNBLHVCQUFBO0VBQ0EsbUJBQUE7RUFDQSxzQkFBQTtBQTdESjtBQStESTtFQUNFLGdCQUFBO0VBQ0EscUNBQUE7RUFDQSxXQUFBO0VBQ0EseUJBQUE7RUFDQSwwREFBQTtFQUNBLG1CQUFBO0VBQ0EsK0RBQUE7RUFDQSw4QkFBQTtBQTdETjtBQStETTtFQUNFLHNCQUFBO0FBN0RSO0FBbUVBO0VBQ0U7SUFDRSxpQkFBQTtFQWhFRjtBQUNGIiwiZmlsZSI6ImhvbWUucGFnZS5zY3NzIiwic291cmNlc0NvbnRlbnQiOlsiaW9uLWNvbnRlbnQge1xuICAtLW92ZXJmbG93OiBoaWRkZW4gIWltcG9ydGFudDtcbiAgb3ZlcmZsb3c6IGhpZGRlbiAhaW1wb3J0YW50O1xuXG4gIC8vIFNuYWNrYmFyIGZvcmEgZG8gaG9tZV9jb250ZW50XG4gIC5ob21lLXNuYWNrYmFyIHtcbiAgICBwb3NpdGlvbjogcmVsYXRpdmU7XG4gICAgdG9wOiAwO1xuICAgIGxlZnQ6IDA7XG4gICAgcmlnaHQ6IDA7XG4gICAgd2lkdGg6IDEwMCU7XG4gICAgei1pbmRleDogMTA7XG5cbiAgICAmX19jb250YWluZXIge1xuICAgICAgcG9zaXRpb246IHJlbGF0aXZlO1xuICAgICAgd2lkdGg6IDEwMCU7XG4gICAgICBtYXgtaGVpZ2h0OiA2NHB4O1xuICAgICAgei1pbmRleDogMTA7XG4gICAgfVxuXG4gICAgJl9fYXV0b21hdGljLXRpbWUge1xuICAgICAgZGlzcGxheTogZmxleDtcbiAgICAgIGFsaWduLWl0ZW1zOiBjZW50ZXI7XG4gICAgICBqdXN0aWZ5LWNvbnRlbnQ6IGNlbnRlcjtcbiAgICAgIHdpZHRoOiAxMDAlO1xuICAgICAgYmFja2dyb3VuZDogI2YyZjJmMjtcbiAgICAgIHBvc2l0aW9uOiByZWxhdGl2ZTtcbiAgICAgIHotaW5kZXg6IDEwO1xuXG4gICAgICAmX19tZXNzYWdlIHtcbiAgICAgICAgY29sb3I6ICM1OTU5NTk7XG4gICAgICAgIGZvbnQtc2l6ZTogMC44cmVtO1xuICAgICAgICBwYWRkaW5nOiAwLjRlbSA4cHggMC40ZW0gMDtcbiAgICAgICAgdGV4dC1hbGlnbjoganVzdGlmeTtcbiAgICAgICAgZGlzcGxheTogZmxleDtcbiAgICAgICAgYWxpZ24taXRlbXM6IGNlbnRlcjtcblxuICAgICAgICAmLS1zbWFsbC1zY3JlZW4ge1xuICAgICAgICAgIGZvbnQtc2l6ZTogMTEuOHB4O1xuICAgICAgICAgIHBhZGRpbmc6IDJweCA1cHg7XG4gICAgICAgIH1cblxuICAgICAgICAmX19pY29uIHtcbiAgICAgICAgICBmb250LXNpemU6IDJlbTtcbiAgICAgICAgICBwYWRkaW5nLWxlZnQ6IDAuNmVtO1xuICAgICAgICAgIHBhZGRpbmctcmlnaHQ6IDAuNGVtO1xuICAgICAgICB9XG4gICAgICB9XG4gICAgfVxuXG4gICAgJl9fb2ZmbGluZSB7XG4gICAgICBwb3NpdGlvbjogcmVsYXRpdmU7XG4gICAgICB3aWR0aDogMTAwJTtcbiAgICAgIHotaW5kZXg6IDEwO1xuICAgIH1cbiAgfVxuXG4gIC5ob21lX2NvbnRlbnQge1xuICAgIGJhY2tncm91bmQ6ICNmZmY7XG4gICAgZGlzcGxheTogZmxleDtcbiAgICBmbGV4LWRpcmVjdGlvbjogY29sdW1uO1xuICAgIHBvc2l0aW9uOiByZWxhdGl2ZTtcbiAgICBvdmVyZmxvdzogaGlkZGVuO1xuICAgIGp1c3RpZnktY29udGVudDogc3BhY2UtZXZlbmx5O1xuICAgIHBhZGRpbmctYm90dG9tOiAxLjVyZW07XG4gICAgLy8gcm93LWdhcDogMC41cmVtO1xuICAgIGhlaWdodDogMTAwJTtcbiAgICBmbGV4OiAxIDEgYXV0bztcblxuICAgICZfX2Jhbm5lciB7XG4gICAgICB3aWR0aDogMTAwJTtcbiAgICAgIHotaW5kZXg6IDg7XG4gICAgICBkaXNwbGF5OiBmbGV4O1xuICAgICAgYWxpZ24taXRlbXM6IGNlbnRlcjtcbiAgICAgIGp1c3RpZnktY29udGVudDogY2VudGVyO1xuICAgICAgZmxleC1kaXJlY3Rpb246IGNvbHVtbjtcbiAgICAgIGFuaW1hdGlvbjogZmFkZUluIDAuNXMgZWFzZS1pbi1vdXQ7XG4gICAgICBwYWRkaW5nOiAwICFpbXBvcnRhbnQ7XG5cbiAgICAgIGlmcmFtZSB7XG4gICAgICAgIHdpZHRoOiAxMDAlO1xuICAgICAgICBoZWlnaHQ6IDEwMCU7XG4gICAgICAgIGJvcmRlcjogbm9uZTtcbiAgICAgICAgZGlzcGxheTogYmxvY2s7XG4gICAgICB9XG4gICAgfVxuXG4gICAgJl9faW52aXRlX2FuZF9jb3VudGRvd24ge1xuICAgICAgZGlzcGxheTogZmxleDtcbiAgICAgIGp1c3RpZnktY29udGVudDogc3BhY2UtZXZlbmx5O1xuICAgICAgd2lkdGg6IDEwMCU7XG4gICAgICB6LWluZGV4OiA1O1xuICAgICAgZmxleC1kaXJlY3Rpb246IGNvbHVtbjtcbiAgICAgIGJveC1zaXppbmc6IGJvcmRlci1ib3g7XG4gICAgICBmbGV4OiBhdXRvO1xuICAgICAgaGVpZ2h0OiAxMDAlO1xuICAgIH1cblxuICAgICZfX2ludml0ZV9zZWN0aW9uIHtcbiAgICAgIGRpc3BsYXk6IGZsZXg7XG4gICAgICBmbGV4LWRpcmVjdGlvbjogY29sdW1uO1xuICAgICAganVzdGlmeS1jb250ZW50OiBjZW50ZXI7XG4gICAgICBhbGlnbi1pdGVtczogY2VudGVyO1xuICAgICAgei1pbmRleDogNTtcbiAgICAgIG1pbi13aWR0aDogMDtcbiAgICAgIG1pbi1oZWlnaHQ6IDA7XG4gICAgICBwYWRkaW5nOiAwLjVyZW0gMDtcblxuICAgICAgJi5oYXNCYW5uZXIge1xuICAgICAgICAvLyBmbGV4OiAxO1xuICAgICAgICBtaW4taGVpZ2h0OiAwO1xuICAgICAgfVxuXG4gICAgICAmLm5vQmFubmVyIHtcbiAgICAgICAgZmxleDogbm9uZSAhaW1wb3J0YW50O1xuICAgICAgICBtYXJnaW46IDVyZW0gMDtcbiAgICAgIH1cblxuICAgICAgaW9uLWJ1dHRvbiB7XG4gICAgICAgIG1hcmdpbjogMDtcbiAgICAgICAgZGlzcGxheTogZmxleDtcbiAgICAgICAganVzdGlmeS1jb250ZW50OiBjZW50ZXI7XG4gICAgICAgIGFsaWduLWl0ZW1zOiBjZW50ZXI7XG4gICAgICB9XG4gICAgfVxuXG4gICAgJl9fZXJyb3Ige1xuICAgICAgZmxleDogMTtcbiAgICAgIGRpc3BsYXk6IGZsZXg7XG4gICAgICBqdXN0aWZ5LWNvbnRlbnQ6IGNlbnRlcjtcbiAgICAgIGFsaWduLWl0ZW1zOiBjZW50ZXI7XG4gICAgICB6LWluZGV4OiA2O1xuICAgICAgbWluLWhlaWdodDogMDtcbiAgICAgIHBhZGRpbmc6IDAgMXJlbTtcblxuICAgICAgJjpub3QoOmVtcHR5KSB7XG4gICAgICAgIGZsZXg6IDEgMSBhdXRvO1xuICAgICAgfVxuICAgIH1cblxuICAgICZfX2NvdW50ZG93biB7XG4gICAgICBwb3NpdGlvbjogcmVsYXRpdmU7XG4gICAgICB6LWluZGV4OiA5O1xuICAgICAgbWF4LWhlaWdodDogbWF4LWNvbnRlbnQ7XG4gICAgICB3aWR0aDogMTAwJTtcbiAgICAgIGp1c3RpZnktY29udGVudDogY2VudGVyO1xuICAgICAgYWxpZ24taXRlbXM6IGNlbnRlcjtcbiAgICB9XG5cbiAgICAmX19xcmNvZGUge1xuICAgICAgZGlzcGxheTogZmxleDtcbiAgICAgIGp1c3RpZnktY29udGVudDogY2VudGVyO1xuICAgICAgYWxpZ24taXRlbXM6IGNlbnRlcjtcbiAgICB9XG5cbiAgICAmX19ib3hxciB7XG4gICAgICBkaXNwbGF5OiBmbGV4O1xuICAgICAganVzdGlmeS1jb250ZW50OiBjZW50ZXI7XG4gICAgICBhbGlnbi1pdGVtczogY2VudGVyO1xuXG4gICAgfVxuXG4gICAgJl9fcXItY29kZS1ob2xkZXIge1xuXG4gICAgICB3aWR0aDogbWluKDgwdncsIDQwdmgsIDMwOHB4KTtcbiAgICAgIGRpc3BsYXk6IGZsZXg7XG4gICAgICBqdXN0aWZ5LWNvbnRlbnQ6IGNlbnRlcjtcbiAgICAgIGFsaWduLWl0ZW1zOiBjZW50ZXI7XG4gICAgfVxuICB9XG5cbiAgLmhvbWVfY29udGVudF9faW52aXRlX3NlY3Rpb25fX2J1dHRvbl9ob2xkZXIge1xuICAgIGRpc3BsYXk6IGZsZXg7XG4gICAganVzdGlmeS1jb250ZW50OiBjZW50ZXI7XG4gICAgYWxpZ24taXRlbXM6IGNlbnRlcjtcbiAgICBmbGV4LWRpcmVjdGlvbjogY29sdW1uO1xuICAgIHdpZHRoOiAxMDAlO1xuICB9XG5cbiAgLmhvbWVfY29udGVudF9faW52aXRlX3NlY3Rpb25fX2J1dHRvbl9ob2xkZXJfX2ludml0ZSB7XG4gICAgYWxpZ24tc2VsZjogY2VudGVyO1xuICB9XG5cbiAgLmhvbWVfY29udGVudF9faW52aXRlX3NlY3Rpb25fX2J1dHRvbl9ob2xkZXJfX21lc3NhZ2Uge1xuICAgIHdpZHRoOiAxMDAlO1xuICAgIHRleHQtYWxpZ246IGNlbnRlcjtcbiAgICBwYWRkaW5nOiAwLjVyZW0gMWVtO1xuICB9XG5cbiAgLmhpbnQge1xuICAgIHRleHQtYWxpZ246IGNlbnRlcjtcbiAgICBmb250LXNpemU6IDAuODVlbTtcbiAgICBkaXNwbGF5OiBmbGV4O1xuICAgIGp1c3RpZnktY29udGVudDogY2VudGVyO1xuICAgIGFsaWduLWl0ZW1zOiBjZW50ZXI7XG4gICAgd2lkdGg6IDEwMCU7XG5cbiAgICBpb24tYnV0dG9uIHtcbiAgICAgIHRyYW5zaXRpb246IGJhY2tncm91bmQtY29sb3IgMC4xcyBlYXNlLW91dCwgdHJhbnNmb3JtIDAuMXMgZWFzZTtcbiAgICAgIC0tYm94LXNoYWRvdzogMDtcbiAgICAgIHRleHQtdHJhbnNmb3JtOiBub25lO1xuICAgICAgaGVpZ2h0OiBjbGFtcCg0MHB4LCA4dmgsIDJlbSk7XG4gICAgICBtaW4taGVpZ2h0OiA0MHB4O1xuICAgICAgZm9udC1zaXplOiBjbGFtcCgwLjdyZW0sIDN2dywgMS4xcmVtKTtcbiAgICAgIGZvbnQtc2l6ZTogMWVtO1xuICAgICAgbWluLXdpZHRoOiAxOHZ3O1xuICAgICAgbWF4LXdpZHRoOiAzMHZ3O1xuXG4gICAgICAmOmFjdGl2ZSB7XG4gICAgICAgIHRyYW5zZm9ybTogc2NhbGUoMC45Nyk7XG4gICAgICB9XG4gICAgfVxuXG4gICAgaW9uLWJ1dHRvbi5zbWFsbC1zY3JlZW4ge1xuICAgICAgaGVpZ2h0OiBjbGFtcCgzMHB4LCA4dmgsIDJlbSk7XG4gICAgICBtaW4taGVpZ2h0OiAzMHB4O1xuICAgICAgZm9udC1zaXplOiBjbGFtcCgwLjdyZW0sIDN2dywgMS4xcmVtKTtcbiAgICAgIC0tcGFkZGluZy1zdGFydDogY2xhbXAoMWVtLCAzdncsIDEuMjVlbSk7XG4gICAgICAtLXBhZGRpbmctZW5kOiBjbGFtcCgxZW0sIDN2dywgMS4yNWVtKTtcbiAgICAgIGZvbnQtc2l6ZTogMC45ZW07XG4gICAgICBtaW4td2lkdGg6IDE2dnc7XG4gICAgICBtYXgtd2lkdGg6IDE5dnc7XG4gICAgfVxuXG4gICAgJi0tc21hbGwtc2NyZWVuIHtcbiAgICAgIGZvbnQtc2l6ZTogMC43ZW07XG4gICAgICBwYWRkaW5nOiAwLjZyZW07XG4gICAgfVxuXG4gICAgLy8gU3Vwb3J0ZSDDoHMgdmFyaWHDp8O1ZXMgZGUgQkVNIGUgY2xhc3NlIGF0dWFsIHVzYWRhIG5vIEhUTUxcbiAgICAmLS1zbWFsbF9zY3JlZW4sXG4gICAgJi0tc21hbGwtc2NyZWVuLFxuICAgICYuc21hbGxfc2NyZWVuIHtcbiAgICAgIHBhZGRpbmctdG9wOiAxZW07XG4gICAgfVxuXG4gICAgJi0tdG9hc3Rfc2hvd19mY20sXG4gICAgJi50b2FzdF9zaG93X2ZjbSB7XG4gICAgICBwYWRkaW5nLXRvcDogMnJlbTtcbiAgICB9XG5cbiAgICAmLS10b2FzdF9zaG93X2ZjbV9zbWFsbCxcbiAgICAmLnRvYXN0X3Nob3dfZmNtX3NtYWxsIHtcbiAgICAgIHBhZGRpbmctdG9wOiAyLjVyZW07XG4gICAgfVxuXG4gICAgJl9fYXNzb2NpYXRlX2NvbXBhbnkge1xuICAgICAgZGlzcGxheTogZmxleDtcbiAgICAgIGp1c3RpZnktY29udGVudDogY2VudGVyO1xuICAgICAgYWxpZ24taXRlbXM6IGNlbnRlcjtcbiAgICAgIGZsZXgtZGlyZWN0aW9uOiBjb2x1bW47XG5cbiAgICAgIGJ1dHRvbiB7XG4gICAgICAgIG1hcmdpbi10b3A6IDE2cHg7XG4gICAgICAgIGZvbnQtc2l6ZTogY2xhbXAoMC43cmVtLCAzdncsIDEuMXJlbSk7XG4gICAgICAgIGNvbG9yOiAjZmZmO1xuICAgICAgICBiYWNrZ3JvdW5kLWNvbG9yOiAjMGVjMjU0O1xuICAgICAgICBwYWRkaW5nOiBjbGFtcCgwLjVlbSwgMnZ3LCAwLjc1ZW0pIGNsYW1wKDFlbSwgNHZ3LCAxLjI1ZW0pO1xuICAgICAgICBib3JkZXItcmFkaXVzOiAzMnB4O1xuICAgICAgICB0cmFuc2l0aW9uOiBiYWNrZ3JvdW5kLWNvbG9yIDAuMXMgZWFzZS1vdXQsIHRyYW5zZm9ybSAwLjFzIGVhc2U7XG4gICAgICAgIGhlaWdodDogY2xhbXAoMzBweCwgOHZoLCA1MHB4KTtcblxuICAgICAgICAmOmFjdGl2ZSB7XG4gICAgICAgICAgdHJhbnNmb3JtOiBzY2FsZSgwLjk3KTtcbiAgICAgICAgfVxuICAgICAgfVxuICAgIH1cblxuICAgICZfX2J1dHRvbl9ob2xkZXIge1xuICAgICAgZGlzcGxheTogZmxleDtcbiAgICAgIGp1c3RpZnktY29udGVudDogY2VudGVyO1xuICAgICAgYWxpZ24taXRlbXM6IGNlbnRlcjtcbiAgICAgIGZsZXgtZGlyZWN0aW9uOiBjb2x1bW47XG4gICAgICB3aWR0aDogMTAwJTtcblxuICAgICAgaW9uLWJ1dHRvbiB7XG4gICAgICAgIGhlaWdodDogY2xhbXAoMzBweCwgOHZoLCA1MHB4KTtcbiAgICAgICAgbWFyZ2luLXRvcDogMDtcbiAgICAgICAgZm9udC1zaXplOiBjbGFtcCgwLjdyZW0sIDN2dywgMS4xcmVtKTtcbiAgICAgICAgLS1jb2xvcjogI2ZmZjtcbiAgICAgICAgLS1iYWNrZ3JvdW5kOiAjMGVjMjU0O1xuICAgICAgICAtLXBhZGRpbmctc3RhcnQ6IGNsYW1wKDFlbSwgM3Z3LCAxLjI1ZW0pO1xuICAgICAgICAtLXBhZGRpbmctZW5kOiBjbGFtcCgxZW0sIDN2dywgMS4yNWVtKTtcbiAgICAgICAgLS1ib3JkZXItcmFkaXVzOiAzMnB4O1xuICAgICAgICB0cmFuc2l0aW9uOiBiYWNrZ3JvdW5kLWNvbG9yIDAuMXMgZWFzZS1vdXQsIHRyYW5zZm9ybSAwLjFzIGVhc2U7XG4gICAgICAgIGFsaWduLXNlbGY6IGNlbnRlcjtcblxuICAgICAgICAmOmFjdGl2ZSB7XG4gICAgICAgICAgdHJhbnNmb3JtOiBzY2FsZSgwLjk3KTtcbiAgICAgICAgfVxuICAgICAgfVxuXG4gICAgICAmX19pbnZpdGUge1xuICAgICAgICBhbGlnbi1zZWxmOiBjZW50ZXI7XG4gICAgICB9XG5cbiAgICAgICZfX21lc3NhZ2Uge1xuICAgICAgICB3aWR0aDogMTAwJTtcbiAgICAgICAgdGV4dC1hbGlnbjogY2VudGVyO1xuICAgICAgfVxuICAgIH1cbiAgfVxuXG4gIC5ob21lX2NvbnRlbnRfX2ludml0ZV9zZWN0aW9uX19za2VsZXRvbiB7XG4gICAgZGlzcGxheTogZmxleDtcbiAgICBwb3NpdGlvbjogcmVsYXRpdmU7XG4gICAgZmxleC1kaXJlY3Rpb246IGNvbHVtbjtcbiAgICBhbGlnbi1jb250ZW50OiBjZW50ZXI7XG4gICAgd2lkdGg6IDEwMCU7XG4gICAgYWxpZ24taXRlbXM6IGNlbnRlcjtcblxuICAgICZfX3RleHRzIHtcbiAgICAgIGRpc3BsYXk6IGZsZXg7XG4gICAgICBmbGV4LWRpcmVjdGlvbjogY29sdW1uO1xuICAgICAgd2lkdGg6IDEwMCU7XG4gICAgICBhbGlnbi1pdGVtczogY2VudGVyO1xuXG4gICAgICA+aW9uLXNrZWxldG9uLXRleHQge1xuICAgICAgICBib3JkZXItcmFkaXVzOiA4cHg7XG4gICAgICB9XG4gICAgfVxuXG4gICAgJl9fYnV0dG9uIHtcbiAgICAgIHdpZHRoOiA4ZW07XG4gICAgICBoZWlnaHQ6IDM2cHg7XG4gICAgICBib3JkZXItcmFkaXVzOiAzMHB4O1xuICAgIH1cbiAgfVxuXG4gIC5ob21lX2NvbnRlbnRfX2Vycm9yX19jb250YWluZXIge1xuICAgIHBvc2l0aW9uOiByZWxhdGl2ZTtcbiAgICBkaXNwbGF5OiAtd2Via2l0LWJveDtcbiAgICBkaXNwbGF5OiBmbGV4O1xuICAgIC13ZWJraXQtYm94LXBhY2s6IGNlbnRlcjtcbiAgICAtd2Via2l0LWJveC1hbGlnbjogY2VudGVyO1xuICAgIGFsaWduLWl0ZW1zOiBjZW50ZXI7XG4gICAgLXdlYmtpdC1ib3gtb3JpZW50OiB2ZXJ0aWNhbDtcbiAgICAtd2Via2l0LWJveC1kaXJlY3Rpb246IG5vcm1hbDtcbiAgICBmbGV4LWRpcmVjdGlvbjogY29sdW1uO1xuICAgIGhlaWdodDogY2FsYygxMDAlIC0gM2VtKTtcbiAgICBwYWRkaW5nOiAwIDJlbTtcbiAgICBjb2xvcjogIzY1Njc2ODtcbiAgICBqdXN0aWZ5LWNvbnRlbnQ6IGNlbnRlcjtcblxuICAgICZfX21lc3NhZ2Uge1xuXG4gICAgICAmX190aXRsZSxcbiAgICAgICZfX2Rlc2NyaXB0aW9uIHtcbiAgICAgICAgbWFyZ2luOiA0cHggMDtcbiAgICAgIH1cbiAgICB9XG5cbiAgICAmX19yZXN0YXJ0X2J1dHRvbiB7XG4gICAgICBtYXJnaW4tdG9wOiAxZW07XG4gICAgICBmb250LXNpemU6IDFlbTtcbiAgICAgIGNvbG9yOiAjZmZmO1xuICAgICAgYmFja2dyb3VuZC1jb2xvcjogIzBlYzI1NDtcbiAgICAgIHBhZGRpbmc6IDAuNzVlbSAxLjI1ZW07XG4gICAgICBib3JkZXItcmFkaXVzOiAzMnB4O1xuICAgICAgdHJhbnNpdGlvbjogYmFja2dyb3VuZC1jb2xvciAwLjFzIGVhc2Utb3V0O1xuXG4gICAgICBidXR0b24ge1xuICAgICAgICBiYWNrZ3JvdW5kOiB0cmFuc3BhcmVudDtcbiAgICAgICAgY29sb3I6ICNmZmY7XG4gICAgICB9XG4gICAgfVxuICB9XG5cbiAgLmhvbWVfY29udGVudF9faW52aXRlX3NlY3Rpb25fX2Fzc29jaWF0ZV9jb21wYW55IHtcbiAgICBkaXNwbGF5OiBmbGV4O1xuICAgIGp1c3RpZnktY29udGVudDogY2VudGVyO1xuICAgIGFsaWduLWl0ZW1zOiBjZW50ZXI7XG4gICAgZmxleC1kaXJlY3Rpb246IGNvbHVtbjtcblxuICAgIGJ1dHRvbiB7XG4gICAgICBtYXJnaW4tdG9wOiAxNnB4O1xuICAgICAgZm9udC1zaXplOiBjbGFtcCgwLjdyZW0sIDN2dywgMS4xcmVtKTtcbiAgICAgIGNvbG9yOiAjZmZmO1xuICAgICAgYmFja2dyb3VuZC1jb2xvcjogIzBlYzI1NDtcbiAgICAgIHBhZGRpbmc6IGNsYW1wKDAuNWVtLCAydncsIDAuNzVlbSkgY2xhbXAoMWVtLCA0dncsIDEuMjVlbSk7XG4gICAgICBib3JkZXItcmFkaXVzOiAzMnB4O1xuICAgICAgdHJhbnNpdGlvbjogYmFja2dyb3VuZC1jb2xvciAwLjFzIGVhc2Utb3V0LCB0cmFuc2Zvcm0gMC4xcyBlYXNlO1xuICAgICAgaGVpZ2h0OiBjbGFtcCgzMHB4LCA4dmgsIDUwcHgpO1xuXG4gICAgICAmOmFjdGl2ZSB7XG4gICAgICAgIHRyYW5zZm9ybTogc2NhbGUoMC45Nyk7XG4gICAgICB9XG4gICAgfVxuICB9XG59XG5cbkBtZWRpYSAoaW52ZXJ0ZWQtY29sb3JzOiBpbnZlcnRlZCkge1xuICAuaXNJbnZlcnRDb2xvcklzRW5hYmxlUmV2ZXJ0IHtcbiAgICBmaWx0ZXI6IGludmVydCgxKTtcbiAgfVxufVxuIl19 */"]
});
/***/ }),
/***/ 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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImNhcmQtZm91bmR1c2VyLWxnLmNvbXBvbmVudC5zY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0VBQ0UsV0FBQTtFQUNBLFlBQUE7RUFDQSxrQkFBQTtFQUNBLGNBQUE7QUFDRjs7QUFDQTtFQUNFLGtCQUFBO0VBQ0EsY0FBQTtFQUNBLHNCQUFBO0VBQ0Esa0JBQUE7RUFDQSxpQkFBQTtFQUNBLGFBQUE7RUFDQSxtQkFBQTtFQUNBLFNBQUE7QUFFRjs7QUFBRTtFQUNFLGNBQUE7QUFFSjs7QUFDRTtFQUNFLE9BQUE7RUFDQSxZQUFBO0FBQ0o7O0FBRUU7RUFDRSxXQUFBO0VBQ0EsZ0JBQUE7QUFBSjs7QUFHQTtFQUNFLFlBQUE7RUFDQSxnQkFBQTtFQUNBLFlBQUE7QUFBRjs7QUFFRTtFQUNFLDZCQUFBO0VBQ0EsaUJBQUE7RUFDQSxnQkFBQTtBQUFKOztBQUdFO0VBQ0UsZ0JBQUE7RUFDQSxnQkFBQTtFQUNBLHNCQUFBO0VBQ0Esc0JBQUE7RUFDQSxZQUFBO0VBQ0Esa0JBQUE7RUFDQSxrQkFBQTtBQURKIiwiZmlsZSI6ImNhcmQtZm91bmR1c2VyLWxnLmNvbXBvbmVudC5zY3NzIiwic291cmNlc0NvbnRlbnQiOlsiLmF2YXRhci1za2VsZXRvbiB7XG4gIHdpZHRoOiA0MHB4O1xuICBoZWlnaHQ6IDQwcHg7XG4gIGJvcmRlci1yYWRpdXM6IDUwJTtcbiAgZmxleC1zaHJpbms6IDA7XG59XG4ucmVzdWx0IHtcbiAgcG9zaXRpb246IHJlbGF0aXZlO1xuICBtYXJnaW46IDEwcHggMDtcbiAgYm9yZGVyOiAxcHggc29saWQgI2VlZTtcbiAgYm9yZGVyLXJhZGl1czogNHB4O1xuICBwYWRkaW5nOiA2cHggMTBweDtcbiAgZGlzcGxheTogZmxleDtcbiAgYWxpZ24taXRlbXM6IGNlbnRlcjtcbiAgZ2FwOiAxMHB4O1xuXG4gIGFwcC1hdmF0YXIge1xuICAgIGZsZXgtc2hyaW5rOiAwO1xuICB9XG5cbiAgLnVzZXItaW5mbyB7XG4gICAgZmxleDogMTtcbiAgICBtaW4td2lkdGg6IDA7XG4gIH1cblxuICAuY29tcGFueSB7XG4gICAgY29sb3I6ICNhYWE7XG4gICAgZm9udC1zaXplOiAwLjhlbTtcbiAgfVxufVxuLnJlc3VsdHMge1xuICBwYWRkaW5nOiAxZW07XG4gIG92ZXJmbG93OiBzY3JvbGw7XG4gIGhlaWdodDogMTAwJTtcblxuICAudGl0bGUge1xuICAgIGZvbnQtc2l6ZTogaW5pdGlhbCAhaW1wb3J0YW50O1xuICAgIGZvbnQtd2VpZ2h0OiBib2xkO1xuICAgIHRleHQtYWxpZ246IGxlZnQ7XG4gIH1cblxuICAuc3ViLXRpdGxlIHtcbiAgICBtYXJnaW46IDEwcHggMHB4O1xuICAgIGZvbnQtc2l6ZTogMC45ZW07XG4gICAgYmFja2dyb3VuZC1jb2xvcjogI2VlZTtcbiAgICBib3JkZXI6IDFweCBzb2xpZCAjY2NjO1xuICAgIHBhZGRpbmc6IDhweDtcbiAgICBib3JkZXItcmFkaXVzOiAycHg7XG4gICAgdGV4dC1hbGlnbjogY2VudGVyO1xuICB9XG59XG4iXX0= */"] });
/***/ }),
/***/ 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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImp1c3RpZnktc2VsZi1pbnZpdGUtd2l0aG91dC1sb2NhdG9yLmNvbXBvbmVudC5zY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUNFO0VBQ0UsYUFBQTtBQUFKO0FBRUk7RUFDRSwyQ0FBQTtFQUNBLGFBQUE7RUFDQSw4QkFBQTtFQUNBLHNCQUFBO0VBQ0EsWUFBQTtFQUNBLGdCQUFBO0FBQU47QUFFTTtFQUNFLGFBQUE7RUFDQSxnQkFBQTtFQUNBLHVCQUFBO0VBQ0EsbUJBQUE7RUFDQSxzQkFBQTtBQUFSO0FBRVE7RUFDRSw2QkFBQTtFQUNBLGlCQUFBO0VBQ0Esa0JBQUE7RUFDQSxZQUFBO0VBQ0Esa0JBQUE7QUFBVjtBQUdRO0VBQ0UsdUJBQUE7RUFDQSxTQUFBO0FBRFY7QUFLTTtFQUNFLGVBQUE7RUFDQSxhQUFBO0VBQ0EsdUJBQUE7RUFDQSxtQkFBQTtFQUNBLHNCQUFBO0FBSFI7QUFLUTtFQUNFLGFBQUE7RUFDQSx1QkFBQTtFQUNBLG1CQUFBO0FBSFY7QUFLVTtFQUNFLGdCQUFBO0FBSFo7QUFLWTtFQUNFLGFBQUE7QUFIZDtBQVVRO0VBQ0Usd0JBQUE7S0FBQSxxQkFBQTtVQUFBLGdCQUFBO0VBQ0Esc0JBQUE7RUFDQSxrQkFBQTtFQUNBLGNBQUE7RUFDQSxXQUFBO0VBQ0EsZ0JBQUE7RUFDQSxnQkFBQTtBQVJWO0FBVVU7RUFDRSx5QkFBQTtFQUNBLGFBQUE7QUFSWjtBQWNRO0VBQ0UsYUFBQTtFQUNBLHVCQUFBO0VBQ0EsbUJBQUE7QUFaViIsImZpbGUiOiJqdXN0aWZ5LXNlbGYtaW52aXRlLXdpdGhvdXQtbG9jYXRvci5jb21wb25lbnQuc2NzcyIsInNvdXJjZXNDb250ZW50IjpbIi5zZWxlY3RvciB7XG4gIC5jb250ZW50IHtcbiAgICBoZWlnaHQ6IDEwMHZoO1xuXG4gICAgLm1vZGFsLWNvbnRhaW5lciB7XG4gICAgICBib3gtc2hhZG93OiAwcHggLTZweCAzcHggcmdiYSgwLCAwLCAwLCAwLjEpO1xuICAgICAgbWFyZ2luLXRvcDogMDtcbiAgICAgIHRyYW5zaXRpb246IG1hcmdpbi10b3AgMXMgZWFzZTtcbiAgICAgIGJhY2tncm91bmQtY29sb3I6ICNmZmY7XG4gICAgICBoZWlnaHQ6IDEwMCU7XG4gICAgICBvdmVyZmxvdzogc2Nyb2xsO1xuXG4gICAgICAubW9kYWwtdGl0bGUge1xuICAgICAgICBkaXNwbGF5OiBmbGV4O1xuICAgICAgICBwYWRkaW5nLXRvcDogMWVtO1xuICAgICAgICBqdXN0aWZ5LWNvbnRlbnQ6IGNlbnRlcjtcbiAgICAgICAgYWxpZ24taXRlbXM6IGNlbnRlcjtcbiAgICAgICAgZmxleC1kaXJlY3Rpb246IGNvbHVtbjtcblxuICAgICAgICAudGl0bGUge1xuICAgICAgICAgIGZvbnQtc2l6ZTogaW5pdGlhbCAhaW1wb3J0YW50O1xuICAgICAgICAgIGZvbnQtd2VpZ2h0OiBib2xkO1xuICAgICAgICAgIHRleHQtYWxpZ246IGNlbnRlcjtcbiAgICAgICAgICBtYXJnaW46IDMycHg7XG4gICAgICAgICAgbWFyZ2luLWJvdHRvbTogOHB4O1xuICAgICAgICB9XG5cbiAgICAgICAgLmJ1dHRvbi1ob2xkZXIge1xuICAgICAgICAgIGp1c3RpZnktY29udGVudDogY2VudGVyO1xuICAgICAgICAgIG1hcmdpbjogMDtcbiAgICAgICAgfVxuICAgICAgfVxuXG4gICAgICAuaW5wdXQtaG9sZGVyIHtcbiAgICAgICAgbWFyZ2luLXRvcDogOHB4O1xuICAgICAgICBkaXNwbGF5OiBmbGV4O1xuICAgICAgICBqdXN0aWZ5LWNvbnRlbnQ6IGNlbnRlcjtcbiAgICAgICAgYWxpZ24taXRlbXM6IGNlbnRlcjtcbiAgICAgICAgZmxleC1kaXJlY3Rpb246IGNvbHVtbjtcblxuICAgICAgICAudXBwZXItb3B0aW9ucyB7XG4gICAgICAgICAgZGlzcGxheTogZmxleDtcbiAgICAgICAgICBqdXN0aWZ5LWNvbnRlbnQ6IGNlbnRlcjtcbiAgICAgICAgICBhbGlnbi1pdGVtczogY2VudGVyO1xuXG4gICAgICAgICAgLm5ldy1ob2xkZXIge1xuICAgICAgICAgICAgbWFyZ2luLXRvcDogMThweDtcblxuICAgICAgICAgICAgLmJ1dHRvbi1ob2xkZXIge1xuICAgICAgICAgICAgICBtYXJnaW4tdG9wOiAwO1xuICAgICAgICAgICAgfVxuICAgICAgICAgIH1cbiAgICAgICAgfVxuICAgICAgfVxuXG4gICAgICAubW9kYWwtYm9keSB7XG4gICAgICAgIHRleHRhcmVhIHtcbiAgICAgICAgICBhcHBlYXJhbmNlOiBub25lO1xuICAgICAgICAgIGJvcmRlcjogMXB4IHNvbGlkICNlZWU7XG4gICAgICAgICAgYm9yZGVyLXJhZGl1czogOHB4O1xuICAgICAgICAgIGNvbG9yOiAjNjU2NzY4O1xuICAgICAgICAgIHdpZHRoOiAxMDAlO1xuICAgICAgICAgIHBhZGRpbmc6IDhweCA4cHg7XG4gICAgICAgICAgbWFyZ2luLXRvcDogMThweDtcblxuICAgICAgICAgICY6Zm9jdXMge1xuICAgICAgICAgICAgYm9yZGVyOiAxcHggc29saWQgIzY1Njc2ODtcbiAgICAgICAgICAgIG91dGxpbmU6IG5vbmU7XG4gICAgICAgICAgfVxuICAgICAgICB9XG4gICAgICB9XG5cbiAgICAgIC5tb2RhbC1mb290ZXIge1xuICAgICAgICAuYnV0dG9uLWhvbGRlciB7XG4gICAgICAgICAgZGlzcGxheTogZmxleDtcbiAgICAgICAgICBqdXN0aWZ5LWNvbnRlbnQ6IGNlbnRlcjtcbiAgICAgICAgICBhbGlnbi1pdGVtczogY2VudGVyO1xuICAgICAgICB9XG4gICAgICB9XG4gICAgfVxuICB9XG59XG4iXX0= */"] });
/***/ }),
/***/ 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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImxvZ2lzdGljLWp1c3RpZnktc2VsZi1pbnZpdGUtd2l0aC1sb2NhdG9yLmNvbXBvbmVudC5zY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0VBQ0UsNEJBQUE7QUFDRjs7QUFHRTtFQUNFLFlBQUE7RUFDQSxnQkFBQTtBQUFKOztBQUVJO0VBQ0UsMkNBQUE7RUFDQSxhQUFBO0VBQ0EsOEJBQUE7RUFDQSxzQkFBQTtFQUNBLFlBQUE7RUFDQSxnQkFBQTtFQUNBLGdCQUFBO0FBQU47O0FBRU07RUFDRSxhQUFBO0VBQ0EsZ0JBQUE7RUFDQSx1QkFBQTtFQUNBLG1CQUFBO0VBQ0Esc0JBQUE7QUFBUjs7QUFFUTtFQUNFLDZCQUFBO0VBQ0EsaUJBQUE7RUFDQSxrQkFBQTtFQUNBLFlBQUE7RUFDQSxrQkFBQTtBQUFWOztBQUdRO0VBQ0UsdUJBQUE7RUFDQSxTQUFBO0FBRFY7O0FBS007RUFDRSxlQUFBO0VBQ0EsYUFBQTtFQUNBLHVCQUFBO0VBQ0EsbUJBQUE7RUFDQSxzQkFBQTtBQUhSOztBQUtRO0VBQ0UsYUFBQTtFQUNBLHVCQUFBO0VBQ0EsbUJBQUE7QUFIVjs7QUFLVTtFQUNFLGdCQUFBO0FBSFo7O0FBS1k7RUFDRSxhQUFBO0FBSGQ7O0FBVVE7RUFDRSxnQkFBQTtFQUNBLGVBQUE7RUFDQSxjQUFBO0VBQ0EsV0FBQTtFQUNBLGdCQUFBO0VBQ0Esa0JBQUE7QUFSVjs7QUFXUTtFQUNFLG1CQUFBO0VBQ0EseUJBQUE7RUFDQSxrQkFBQTtFQUNBLFlBQUE7RUFDQSxXQUFBO0VBQ0EsYUFBQTtFQUNBLG1CQUFBO0VBQ0EsbUJBQUE7RUFDQSwyQkFBQTtFQUNBLFFBQUE7QUFUVjs7QUFZUTtFQUNFLGFBQUE7RUFDQSxtQkFBQTtFQUNBLHVCQUFBO0VBQ0EsV0FBQTtBQVZWOztBQWFRO0VBQ0UsV0FBQTtFQUNBLFlBQUE7QUFYVjs7QUFjUTtFQUNFLHNCQUFBO0VBQ0EsdUJBQUE7RUFDQSwwQkFBQTtFQUNBLGtCQUFBO0VBQ0EsYUFBQTtFQUNBLHVCQUFBO0VBQ0EsbUJBQUE7RUFDQSxzQkFBQTtBQVpWOztBQWVRO0VBQ0UsZ0JBQUE7RUFDQSxlQUFBO0VBQ0EsY0FBQTtFQUNBLFdBQUE7QUFiVjs7QUFnQlE7RUFDRTtJQUNFLFlBQUE7SUFDQSxRQUFBO0VBZFY7RUFpQlE7SUFDRSxlQUFBO0VBZlY7RUFrQlE7O0lBRUUsV0FBQTtJQUNBLFlBQUE7SUFDQSxlQUFBO0VBaEJWO0VBbUJRO0lBQ0UsZUFBQTtFQWpCVjtBQUNGOztBQW9CUTtFQUNFLHNCQUFBO0VBQ0EsZUFBQTtFQUNBLFdBQUE7RUFDQSxlQUFBO0FBbEJWOztBQXFCUTtFQUNFLGFBQUE7QUFuQlY7O0FBcUJRO0VBQ0Usd0JBQUE7S0FBQSxxQkFBQTtVQUFBLGdCQUFBO0VBQ0Esc0JBQUE7RUFDQSxrQkFBQTtFQUNBLGNBQUE7RUFDQSxXQUFBO0VBQ0EsZ0JBQUE7RUFDQSxnQkFBQTtBQW5CVjs7QUFxQlU7RUFDRSx5QkFBQTtFQUNBLGFBQUE7QUFuQlo7O0FBdUJNO0VBQ0Usa0JBQUE7RUFDQSxhQUFBO0VBQ0EsdUJBQUE7RUFDQSxZQUFBO0FBckJSOztBQXNCUTtFQUNFLGtCQUFBO0VBQ0EsWUFBQTtFQUNBLFdBQUE7RUFDQSxhQUFBO0VBQ0EsdUJBQUE7QUFwQlYiLCJmaWxlIjoibG9naXN0aWMtanVzdGlmeS1zZWxmLWludml0ZS13aXRoLWxvY2F0b3IuY29tcG9uZW50LnNjc3MiLCJzb3VyY2VzQ29udGVudCI6WyJpb24tY29udGVudC5zZWxlY3Rvci5pb3Mge1xuICAtLW9mZnNldC10b3A6IDBweCAhaW1wb3J0YW50O1xufVxuXG4uc2VsZWN0b3Ige1xuICAuY29udGVudCB7XG4gICAgaGVpZ2h0OiBhdXRvO1xuICAgIG1heC1oZWlnaHQ6IDEwMCU7XG5cbiAgICAubW9kYWwtY29udGFpbmVyIHtcbiAgICAgIGJveC1zaGFkb3c6IDBweCAtNnB4IDNweCByZ2JhKDAsIDAsIDAsIDAuMSk7XG4gICAgICBtYXJnaW4tdG9wOiAwO1xuICAgICAgdHJhbnNpdGlvbjogbWFyZ2luLXRvcCAxcyBlYXNlO1xuICAgICAgYmFja2dyb3VuZC1jb2xvcjogI2ZmZjtcbiAgICAgIGhlaWdodDogYXV0bztcbiAgICAgIG1heC1oZWlnaHQ6IDEwMCU7XG4gICAgICBvdmVyZmxvdy15OiBhdXRvO1xuXG4gICAgICAubW9kYWwtdGl0bGUge1xuICAgICAgICBkaXNwbGF5OiBmbGV4O1xuICAgICAgICBwYWRkaW5nLXRvcDogMWVtO1xuICAgICAgICBqdXN0aWZ5LWNvbnRlbnQ6IGNlbnRlcjtcbiAgICAgICAgYWxpZ24taXRlbXM6IGNlbnRlcjtcbiAgICAgICAgZmxleC1kaXJlY3Rpb246IGNvbHVtbjtcblxuICAgICAgICAudGl0bGUge1xuICAgICAgICAgIGZvbnQtc2l6ZTogaW5pdGlhbCAhaW1wb3J0YW50O1xuICAgICAgICAgIGZvbnQtd2VpZ2h0OiBib2xkO1xuICAgICAgICAgIHRleHQtYWxpZ246IGNlbnRlcjtcbiAgICAgICAgICBtYXJnaW46IDMycHg7XG4gICAgICAgICAgbWFyZ2luLWJvdHRvbTogOHB4O1xuICAgICAgICB9XG5cbiAgICAgICAgLmJ1dHRvbi1ob2xkZXIge1xuICAgICAgICAgIGp1c3RpZnktY29udGVudDogY2VudGVyO1xuICAgICAgICAgIG1hcmdpbjogMDtcbiAgICAgICAgfVxuICAgICAgfVxuXG4gICAgICAuaW5wdXQtaG9sZGVyIHtcbiAgICAgICAgbWFyZ2luLXRvcDogOHB4O1xuICAgICAgICBkaXNwbGF5OiBmbGV4O1xuICAgICAgICBqdXN0aWZ5LWNvbnRlbnQ6IGNlbnRlcjtcbiAgICAgICAgYWxpZ24taXRlbXM6IGNlbnRlcjtcbiAgICAgICAgZmxleC1kaXJlY3Rpb246IGNvbHVtbjtcblxuICAgICAgICAudXBwZXItb3B0aW9ucyB7XG4gICAgICAgICAgZGlzcGxheTogZmxleDtcbiAgICAgICAgICBqdXN0aWZ5LWNvbnRlbnQ6IGNlbnRlcjtcbiAgICAgICAgICBhbGlnbi1pdGVtczogY2VudGVyO1xuXG4gICAgICAgICAgLm5ldy1ob2xkZXIge1xuICAgICAgICAgICAgbWFyZ2luLXRvcDogMThweDtcblxuICAgICAgICAgICAgLmJ1dHRvbi1ob2xkZXIge1xuICAgICAgICAgICAgICBtYXJnaW4tdG9wOiAwO1xuICAgICAgICAgICAgfVxuICAgICAgICAgIH1cbiAgICAgICAgfVxuICAgICAgfVxuXG4gICAgICAubW9kYWwtYm9keSB7XG4gICAgICAgIC5kZXN0aW5hdGlvbi1sYWJlbCB7XG4gICAgICAgICAgZm9udC13ZWlnaHQ6IDUwMDtcbiAgICAgICAgICBmb250LXNpemU6IDE0cHg7XG4gICAgICAgICAgY29sb3I6ICMzMzMzMzM7XG4gICAgICAgICAgd2lkdGg6IDEwMCU7XG4gICAgICAgICAgdGV4dC1hbGlnbjogbGVmdDtcbiAgICAgICAgICBtYXJnaW4tYm90dG9tOiA2cHg7XG4gICAgICAgIH1cblxuICAgICAgICAuZGVzdGluYXRpb24tYm94IHtcbiAgICAgICAgICBiYWNrZ3JvdW5kOiAjZjVmNWY1O1xuICAgICAgICAgIGJvcmRlcjogMXB4IHNvbGlkICNlMGUwZTA7XG4gICAgICAgICAgYm9yZGVyLXJhZGl1czogNHB4O1xuICAgICAgICAgIHBhZGRpbmc6IDhweDtcbiAgICAgICAgICB3aWR0aDogMTAwJTtcbiAgICAgICAgICBkaXNwbGF5OiBmbGV4O1xuICAgICAgICAgIGZsZXgtZGlyZWN0aW9uOiByb3c7XG4gICAgICAgICAgYWxpZ24taXRlbXM6IGNlbnRlcjtcbiAgICAgICAgICBqdXN0aWZ5LWNvbnRlbnQ6IGZsZXgtc3RhcnQ7XG4gICAgICAgICAgZ2FwOiA4cHg7XG4gICAgICAgIH1cblxuICAgICAgICAuZGVzdGluYXRpb24tYm94IC5waG90byB7XG4gICAgICAgICAgZGlzcGxheTogZmxleDtcbiAgICAgICAgICBhbGlnbi1pdGVtczogY2VudGVyO1xuICAgICAgICAgIGp1c3RpZnktY29udGVudDogY2VudGVyO1xuICAgICAgICAgIHdpZHRoOiBhdXRvO1xuICAgICAgICB9XG5cbiAgICAgICAgLmRlc3RpbmF0aW9uLWJveCAucGhvdG8gaW9uLWF2YXRhciB7XG4gICAgICAgICAgd2lkdGg6IDQ4cHg7XG4gICAgICAgICAgaGVpZ2h0OiA0OHB4O1xuICAgICAgICB9XG5cbiAgICAgICAgLmRlc3RpbmF0aW9uLWJveCAucGhvdG8gLmluaXRpYWxzLmVzY29ydCB7XG4gICAgICAgICAgd2lkdGg6IDQ4cHggIWltcG9ydGFudDtcbiAgICAgICAgICBoZWlnaHQ6IDQ4cHggIWltcG9ydGFudDtcbiAgICAgICAgICBtaW4td2lkdGg6IDQ4cHggIWltcG9ydGFudDtcbiAgICAgICAgICBib3JkZXItcmFkaXVzOiA1MCU7XG4gICAgICAgICAgZGlzcGxheTogZmxleDtcbiAgICAgICAgICBqdXN0aWZ5LWNvbnRlbnQ6IGNlbnRlcjtcbiAgICAgICAgICBhbGlnbi1pdGVtczogY2VudGVyO1xuICAgICAgICAgIGJhY2tncm91bmQtY29sb3I6ICNlZWU7XG4gICAgICAgIH1cblxuICAgICAgICAuZGVzdGluYXRpb24tYm94IC5uYW1lIHtcbiAgICAgICAgICB0ZXh0LWFsaWduOiBsZWZ0O1xuICAgICAgICAgIGZvbnQtc2l6ZTogMTJweDtcbiAgICAgICAgICBjb2xvcjogIzY2NjY2NjtcbiAgICAgICAgICB3aWR0aDogYXV0bztcbiAgICAgICAgfVxuXG4gICAgICAgIEBtZWRpYSAobWF4LXdpZHRoOiA0ODBweCkge1xuICAgICAgICAgIC5kZXN0aW5hdGlvbi1ib3gge1xuICAgICAgICAgICAgcGFkZGluZzogNnB4O1xuICAgICAgICAgICAgZ2FwOiA2cHg7XG4gICAgICAgICAgfVxuXG4gICAgICAgICAgLmRlc3RpbmF0aW9uLWxhYmVsIHtcbiAgICAgICAgICAgIGZvbnQtc2l6ZTogMTNweDtcbiAgICAgICAgICB9XG5cbiAgICAgICAgICAuZGVzdGluYXRpb24tYm94IC5waG90byBpb24tYXZhdGFyLFxuICAgICAgICAgIC5kZXN0aW5hdGlvbi1ib3ggLnBob3RvIC5pbml0aWFscy5lc2NvcnQge1xuICAgICAgICAgICAgd2lkdGg6IDQ0cHg7XG4gICAgICAgICAgICBoZWlnaHQ6IDQ0cHg7XG4gICAgICAgICAgICBtaW4td2lkdGg6IDQ0cHg7XG4gICAgICAgICAgfVxuXG4gICAgICAgICAgLmRlc3RpbmF0aW9uLWJveCAubmFtZSB7XG4gICAgICAgICAgICBmb250LXNpemU6IDEycHg7XG4gICAgICAgICAgfVxuICAgICAgICB9XG5cbiAgICAgICAgLmNvdW50IHtcbiAgICAgICAgICBhbGlnbi1zZWxmOiBmbGV4LXN0YXJ0O1xuICAgICAgICAgIGZvbnQtc2l6ZTogMTFweDtcbiAgICAgICAgICBjb2xvcjogI2JiYjtcbiAgICAgICAgICBtYXJnaW4tdG9wOiAycHg7XG4gICAgICAgIH1cblxuICAgICAgICB0ZXh0YXJlYS5uby1tYXJnaW0ge1xuICAgICAgICAgIG1hcmdpbi10b3A6IDA7XG4gICAgICAgIH1cbiAgICAgICAgdGV4dGFyZWEge1xuICAgICAgICAgIGFwcGVhcmFuY2U6IG5vbmU7XG4gICAgICAgICAgYm9yZGVyOiAxcHggc29saWQgI2VlZTtcbiAgICAgICAgICBib3JkZXItcmFkaXVzOiA4cHg7XG4gICAgICAgICAgY29sb3I6ICM2NTY3Njg7XG4gICAgICAgICAgd2lkdGg6IDEwMCU7XG4gICAgICAgICAgcGFkZGluZzogOHB4IDhweDtcbiAgICAgICAgICBtYXJnaW4tdG9wOiAxOHB4O1xuXG4gICAgICAgICAgJjpmb2N1cyB7XG4gICAgICAgICAgICBib3JkZXI6IDFweCBzb2xpZCAjNjU2NzY4O1xuICAgICAgICAgICAgb3V0bGluZTogbm9uZTtcbiAgICAgICAgICB9XG4gICAgICAgIH1cbiAgICAgIH1cbiAgICAgIC5tb2RhbC1mb290ZXIge1xuICAgICAgICBtYXJnaW4tYm90dG9tOiAxZW07XG4gICAgICAgIGRpc3BsYXk6IGZsZXg7XG4gICAgICAgIGp1c3RpZnktY29udGVudDogY2VudGVyO1xuICAgICAgICBwYWRkaW5nOiAxZW07XG4gICAgICAgIC5idXR0b24taG9sZGVyIHtcbiAgICAgICAgICB0ZXh0LWFsaWduOiBjZW50ZXI7XG4gICAgICAgICAgbWFyZ2luOiBhdXRvO1xuICAgICAgICAgIHdpZHRoOiAxMDAlO1xuICAgICAgICAgIGRpc3BsYXk6IGZsZXg7XG4gICAgICAgICAganVzdGlmeS1jb250ZW50OiBjZW50ZXI7XG4gICAgICAgIH1cbiAgICAgIH1cbiAgICB9XG4gIH1cbn1cbiJdfQ== */"] });
/***/ }),
/***/ 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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNlbGVjdC1sb2dpc3RpYy1ldmVudC10eXBlLW1vZGFsLmNvbXBvbmVudC5zY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0VBVUUsWUFBQTtFQUNBLG1DQUFBO0VBQ0EsZ0JBQUE7RUFDQSxhQUFBO0VBQ0EsYUFBQTtBQVJGO0FBSkU7Ozs7OztFQU1FLHFCQUFBO0FBTUo7QUFFRTtFQUNFLGFBQUE7RUFDQSxrQkFBQTtFQUNBLFlBQUE7RUFDQSxNQUFBO0VBQ0EsY0FBQTtBQUFKO0FBRUk7RUFDRSxrQkFBQTtFQUNBLGFBQUE7RUFDQSxZQUFBO0VBQ0Esc0JBQUE7RUFDQSxZQUFBO0VBQ0EsTUFBQTtFQUNBLGlDQUFBO0FBQU47QUFHSTtFQUNFLFlBQUE7RUFDQSxzQkFBQTtFQUNBLFdBQUE7RUFDQSxZQUFBO0VBQ0Esa0JBQUE7RUFDQSxhQUFBO0VBQ0EsMENBQUE7RUFDQSxrQkFBQTtFQUNBLGdCQUFBO0VBQ0EsOEJBQUE7QUFETjtBQUdNO0VBQ0Usa0JBQUE7RUFDQSxnQkFBQTtFQUNBLGtCQUFBO0VBQ0EsTUFBQTtFQUNBLGFBQUE7RUFDQSxrQkFBQTtFQUNBLHdCQUFBO0VBQ0Esc0JBQUE7QUFEUjtBQUlNO0VBQ0Usa0JBQUE7RUFDQSx3QkFBQTtFQUNBLHdCQUFBO0VBQ0EsVUFBQTtFQUNBLGtCQUFBO0VBQ0EsbUJBQUE7RUFDQSxnQkFBQTtFQUNBLHNCQUFBO0FBRlI7QUFHUTtFQUNFLFNBQUE7RUFDQSxnQkFBQTtBQURWO0FBSVE7RUFDRSxpQkFBQTtFQUNBLHNCQUFBO0VBQ0Esa0JBQUE7RUFDQSxrQkFBQTtBQUZWO0FBSVU7RUFDRSxpQkFBQTtBQUZaO0FBS1U7RUFDRSxjQUFBO0FBSFo7QUFRTTtFQUNFLGtCQUFBO0VBQ0EsU0FBQTtFQUNBLGFBQUE7RUFDQSx3QkFBQTtFQUNBLGtCQUFBO0VBQ0EsYUFBQTtFQUNBLHVCQUFBO0VBQ0EsbUJBQUE7RUFDQSxnQkFBQTtFQUNBLHNCQUFBO0FBTlI7QUFRUTtFQUNFLGNBQUE7RUFDQSxzQkFBQTtFQUNBLGNBQUE7RUFDQSxzQkFBQTtFQUNBLG1CQUFBO0VBQ0EsMENBQUE7RUFDQSxZQUFBO0FBTlY7QUFPVTtFQUNFLHNCQUFBO0VBQ0EsY0FBQTtFQUNBLDBDQUFBO0FBTFo7QUFRVTtFQUNFLGNBQUE7QUFOWjtBQVFZO0VBQ0UseUJBQUE7RUFDQSxXQUFBO0VBQ0EsMENBQUE7QUFOZCIsImZpbGUiOiJzZWxlY3QtbG9naXN0aWMtZXZlbnQtdHlwZS1tb2RhbC5jb21wb25lbnQuc2NzcyIsInNvdXJjZXNDb250ZW50IjpbIi5zZWxlY3QtbG9naXN0aWMtZXZlbnQtdHlwZS1tb2RhbCB7XG4gIC8vIHJlc2V0IGgxLCBoMiwgaDMsIGg0LCBoNSwgaDZcbiAgaDEsXG4gIGgyLFxuICBoMyxcbiAgaDQsXG4gIGg1LFxuICBoNiB7XG4gICAgYWxsOiB1bnNldCAhaW1wb3J0YW50O1xuICB9XG4gIHdpZHRoOiAxMDB2dztcbiAgdHJhbnNpdGlvbjogaGVpZ2h0IDAuNXMgZWFzZS1pbi1vdXQ7XG4gIG92ZXJmbG93OiBoaWRkZW47XG4gIHotaW5kZXg6IDEwMDA7XG4gIGhlaWdodDogMTAwdmg7XG5cbiAgLmNvbnRlbnQge1xuICAgIGhlaWdodDogMTAwdmg7XG4gICAgcG9zaXRpb246IGFic29sdXRlO1xuICAgIHdpZHRoOiAxMDB2dztcbiAgICB0b3A6IDA7XG4gICAgY29sb3I6ICMzODNhM2U7XG5cbiAgICAuYmFja2dyb3VuZCB7XG4gICAgICBwb3NpdGlvbjogYWJzb2x1dGU7XG4gICAgICBoZWlnaHQ6IDEwMHZoO1xuICAgICAgd2lkdGg6IDEwMHZ3O1xuICAgICAgYmFja2dyb3VuZC1jb2xvcjogIzMzMztcbiAgICAgIG9wYWNpdHk6IDAuMztcbiAgICAgIHRvcDogMDtcbiAgICAgIHRyYW5zaXRpb246IG9wYWNpdHkgMC41cyBlYXNlLW91dDtcbiAgICB9XG5cbiAgICAubW9kYWwtY29udGFpbmVyIHtcbiAgICAgIGhlaWdodDogNjB2aDtcbiAgICAgIGJhY2tncm91bmQtY29sb3I6ICNmZmY7XG4gICAgICB3aWR0aDogODZ2dztcbiAgICAgIG1hcmdpbjogYXV0bztcbiAgICAgIGJvcmRlci1yYWRpdXM6IDhweDtcbiAgICAgIHBhZGRpbmc6IDI0cHg7XG4gICAgICBib3gtc2hhZG93OiAycHggMnB4IDAgMCByZ2JhKDAsIDAsIDAsIDAuMSk7XG4gICAgICBwb3NpdGlvbjogcmVsYXRpdmU7XG4gICAgICBtYXJnaW4tdG9wOiAyMHZoO1xuICAgICAgdHJhbnNpdGlvbjogbWFyZ2luLXRvcCAxcyBlYXNlO1xuXG4gICAgICAubW9kYWwtdGl0bGUge1xuICAgICAgICB0ZXh0LWFsaWduOiBjZW50ZXI7XG4gICAgICAgIGZvbnQtd2VpZ2h0OiA1MDA7XG4gICAgICAgIHBvc2l0aW9uOiBhYnNvbHV0ZTtcbiAgICAgICAgdG9wOiAwO1xuICAgICAgICBoZWlnaHQ6IDMuNWVtO1xuICAgICAgICBsaW5lLWhlaWdodDogMy41ZW07XG4gICAgICAgIHdpZHRoOiBjYWxjKDEwMCUgLSA0OHB4KTtcbiAgICAgICAgYmFja2dyb3VuZC1jb2xvcjogI2ZmZjtcbiAgICAgIH1cblxuICAgICAgLm1vZGFsLWJvZHkge1xuICAgICAgICBwb3NpdGlvbjogYWJzb2x1dGU7XG4gICAgICAgIGhlaWdodDogY2FsYygxMDAlIC0gN2VtKTtcbiAgICAgICAgd2lkdGg6IGNhbGMoMTAwJSAtIDQ4cHgpO1xuICAgICAgICB0b3A6IDMuNWVtO1xuICAgICAgICBvdmVyZmxvdy15OiBzY3JvbGw7XG4gICAgICAgIHRleHQtYWxpZ246IGp1c3RpZnk7XG4gICAgICAgIGZvbnQtc2l6ZTogMC45ZW07XG4gICAgICAgIGJhY2tncm91bmQtY29sb3I6ICNmZmY7XG4gICAgICAgIGlvbi1jYXJkIHtcbiAgICAgICAgICBtYXJnaW46IDA7XG4gICAgICAgICAgYm94LXNoYWRvdzogbm9uZTtcbiAgICAgICAgfVxuXG4gICAgICAgIC50eXBlIHtcbiAgICAgICAgICBwYWRkaW5nOiA4cHggMTJweDtcbiAgICAgICAgICBib3JkZXI6IDFweCBzb2xpZCAjZWVlO1xuICAgICAgICAgIGJvcmRlci1yYWRpdXM6IDRweDtcbiAgICAgICAgICBtYXJnaW4tYm90dG9tOiA4cHg7XG5cbiAgICAgICAgICAubmFtZSB7XG4gICAgICAgICAgICBmb250LXdlaWdodDogYm9sZDtcbiAgICAgICAgICB9XG5cbiAgICAgICAgICAuZGVzY3JpcHRpb24ge1xuICAgICAgICAgICAgY29sb3I6ICM2NTY3Njg7XG4gICAgICAgICAgfVxuICAgICAgICB9XG4gICAgICB9XG5cbiAgICAgIC5tb2RhbC1mb290ZXIge1xuICAgICAgICBwb3NpdGlvbjogYWJzb2x1dGU7XG4gICAgICAgIGJvdHRvbTogMDtcbiAgICAgICAgaGVpZ2h0OiAzLjVlbTtcbiAgICAgICAgd2lkdGg6IGNhbGMoMTAwJSAtIDQ4cHgpO1xuICAgICAgICBsaW5lLWhlaWdodDogMy41ZW07XG4gICAgICAgIGRpc3BsYXk6IGZsZXg7XG4gICAgICAgIGp1c3RpZnktY29udGVudDogY2VudGVyO1xuICAgICAgICBhbGlnbi1pdGVtczogY2VudGVyO1xuICAgICAgICBvdmVyZmxvdzogaGlkZGVuO1xuICAgICAgICBiYWNrZ3JvdW5kLWNvbG9yOiAjZmZmO1xuXG4gICAgICAgIGlvbi1idXR0b24ge1xuICAgICAgICAgIGZvbnQtc2l6ZTogMWVtO1xuICAgICAgICAgIGJhY2tncm91bmQtY29sb3I6ICNmZmY7XG4gICAgICAgICAgY29sb3I6ICM2NTY3Njg7XG4gICAgICAgICAgcGFkZGluZzogMC43NWVtIDEuMjVlbTtcbiAgICAgICAgICBib3JkZXItcmFkaXVzOiAzMnB4O1xuICAgICAgICAgIHRyYW5zaXRpb246IGJhY2tncm91bmQtY29sb3IgMC4xcyBlYXNlLW91dDtcbiAgICAgICAgICBoZWlnaHQ6IDM2cHg7XG4gICAgICAgICAgJjphY3RpdmUge1xuICAgICAgICAgICAgYmFja2dyb3VuZC1jb2xvcjogI2VlZTtcbiAgICAgICAgICAgIGNvbG9yOiAjNjU2NzY4O1xuICAgICAgICAgICAgdHJhbnNpdGlvbjogYmFja2dyb3VuZC1jb2xvciAwLjFzIGVhc2Utb3V0O1xuICAgICAgICAgIH1cblxuICAgICAgICAgICYuYWNjZXB0IHtcbiAgICAgICAgICAgIGNvbG9yOiAjMGVjMjU0O1xuXG4gICAgICAgICAgICAmOmFjdGl2ZSB7XG4gICAgICAgICAgICAgIGJhY2tncm91bmQtY29sb3I6ICMwZWMyNTQ7XG4gICAgICAgICAgICAgIGNvbG9yOiAjZmZmO1xuICAgICAgICAgICAgICB0cmFuc2l0aW9uOiBiYWNrZ3JvdW5kLWNvbG9yIDAuMXMgZWFzZS1vdXQ7XG4gICAgICAgICAgICB9XG4gICAgICAgICAgfVxuICAgICAgICB9XG4gICAgICB9XG4gICAgfVxuICB9XG59XG4iXX0= */"] });
/***/ }),
/***/ 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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNlbGVjdG9yLWZvci1hc3Npc3RhbnRzLXRvLWFkZC10by1ldmVudC5jb21wb25lbnQuc2NzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTtFQUNFLDRCQUFBO0FBQ0Y7QUFBRTtFQUNFLGVBQUE7RUFDQSxnQkFBQTtBQUVKO0FBRUU7RUFDRSxzQkFBQTtFQUNBLGtCQUFBO0FBQ0o7QUFJRTtFQUNFLDJDQUFBO0VBQ0EsYUFBQTtFQUNBLDhCQUFBO0VBQ0Esc0JBQUE7RUFDQSxZQUFBO0VBQ0EsZ0JBQUE7QUFESjtBQUdJO0VBQ0UsYUFBQTtFQUNBLGtCQUFBO0VBQ0EsdUJBQUE7RUFDQSxtQkFBQTtFQUNBLHNCQUFBO0FBRE47QUFHTTtFQUNFLDZCQUFBO0VBQ0EsaUJBQUE7RUFDQSxrQkFBQTtFQUNBLFlBQUE7RUFDQSxrQkFBQTtBQURSO0FBSU07RUFDRSx1QkFBQTtFQUNBLFNBQUE7QUFGUjtBQU1JO0VBQ0UsZUFBQTtFQUNBLGFBQUE7RUFDQSx1QkFBQTtFQUNBLG1CQUFBO0VBQ0Esc0JBQUE7RUFDQSxXQUFBO0FBSk47QUFNTTtFQUNFLGFBQUE7RUFDQSx1QkFBQTtFQUNBLG1CQUFBO0FBSlI7QUFNUTtFQUNFLGdCQUFBO0FBSlY7QUFNVTtFQUNFLGFBQUE7QUFKWjtBQVNNO0VBQ0UsYUFBQTtFQUNBLHVCQUFBO0VBQ0EsbUJBQUE7QUFQUjtBQVNRO0VBQ0UsZ0JBQUE7QUFQVjtBQVNVO0VBQ0UsYUFBQTtFQUNBLFdBQUE7QUFQWjtBQWNNO0VBQ0UsZ0JBQUE7RUFDQSxZQUFBO0VBQ0EsWUFBQTtBQVpSO0FBY1E7RUFDRSw2QkFBQTtFQUNBLFVBQUE7RUFDQSxpQkFBQTtFQUNBLGlCQUFBO0VBQ0Esa0JBQUE7QUFaVjtBQWVRO0VBQ0UsY0FBQTtFQUNBLGdCQUFBO0VBQ0Esc0JBQUE7RUFDQSxzQkFBQTtFQUNBLFlBQUE7RUFDQSxrQkFBQTtFQUNBLGtCQUFBO0FBYlY7QUFnQlE7RUFDRSxVQUFBO0VBQ0EsMkJBQUE7RUFDQSxzQkFBQTtFQUNBLGtCQUFBO0VBQ0Esa0JBQUE7QUFkVjtBQWdCVTtFQUNFLFdBQUE7QUFkWiIsImZpbGUiOiJzZWxlY3Rvci1mb3ItYXNzaXN0YW50cy10by1hZGQtdG8tZXZlbnQuY29tcG9uZW50LnNjc3MiLCJzb3VyY2VzQ29udGVudCI6WyJpb24tY29udGVudC5zZWxlY3Rvci5pb3Mge1xuICAtLW9mZnNldC10b3A6IDBweCAhaW1wb3J0YW50O1xuICBpb24tZmFiLmZhYiB7XG4gICAgcG9zaXRpb246IGZpeGVkO1xuICAgIG1hcmdpbi10b3A6IDEwcHg7XG4gIH1cbn1cbmlvbi1oZWFkZXIuZml4LWhlYWRlci1tb2RhbC1pb3Mge1xuICBpb24tdG9vbGJhciB7XG4gICAgaGVpZ2h0OiAwcHggIWltcG9ydGFudDtcbiAgICAtLWJhY2tncm91bmQ6ICNmZmY7XG4gIH1cbn1cblxuLnNlbGVjdG9yIHtcbiAgLm1vZGFsLWNvbnRhaW5lciB7XG4gICAgYm94LXNoYWRvdzogMHB4IC02cHggM3B4IHJnYmEoMCwgMCwgMCwgMC4xKTtcbiAgICBtYXJnaW4tdG9wOiAwO1xuICAgIHRyYW5zaXRpb246IG1hcmdpbi10b3AgMXMgZWFzZTtcbiAgICBiYWNrZ3JvdW5kLWNvbG9yOiAjZmZmO1xuICAgIGhlaWdodDogMTAwJTtcbiAgICBvdmVyZmxvdzogc2Nyb2xsO1xuXG4gICAgLm1vZGFsLXRpdGxlIHtcbiAgICAgIGRpc3BsYXk6IGZsZXg7XG4gICAgICBwYWRkaW5nLXRvcDogMS41ZW07XG4gICAgICBqdXN0aWZ5LWNvbnRlbnQ6IGNlbnRlcjtcbiAgICAgIGFsaWduLWl0ZW1zOiBjZW50ZXI7XG4gICAgICBmbGV4LWRpcmVjdGlvbjogY29sdW1uO1xuXG4gICAgICAudGl0bGUge1xuICAgICAgICBmb250LXNpemU6IGluaXRpYWwgIWltcG9ydGFudDtcbiAgICAgICAgZm9udC13ZWlnaHQ6IGJvbGQ7XG4gICAgICAgIHRleHQtYWxpZ246IGNlbnRlcjtcbiAgICAgICAgbWFyZ2luOiAzMnB4O1xuICAgICAgICBtYXJnaW4tYm90dG9tOiA4cHg7XG4gICAgICB9XG5cbiAgICAgIC5idXR0b24taG9sZGVyIHtcbiAgICAgICAganVzdGlmeS1jb250ZW50OiBjZW50ZXI7XG4gICAgICAgIG1hcmdpbjogMDtcbiAgICAgIH1cbiAgICB9XG5cbiAgICAuaW5wdXQtaG9sZGVyIHtcbiAgICAgIG1hcmdpbi10b3A6IDhweDtcbiAgICAgIGRpc3BsYXk6IGZsZXg7XG4gICAgICBqdXN0aWZ5LWNvbnRlbnQ6IGNlbnRlcjtcbiAgICAgIGFsaWduLWl0ZW1zOiBjZW50ZXI7XG4gICAgICBmbGV4LWRpcmVjdGlvbjogY29sdW1uO1xuICAgICAgd2lkdGg6IDEwMCU7XG5cbiAgICAgIC51cHBlci1vcHRpb25zIHtcbiAgICAgICAgZGlzcGxheTogZmxleDtcbiAgICAgICAganVzdGlmeS1jb250ZW50OiBjZW50ZXI7XG4gICAgICAgIGFsaWduLWl0ZW1zOiBjZW50ZXI7XG5cbiAgICAgICAgLm5ldy1ob2xkZXIge1xuICAgICAgICAgIG1hcmdpbi10b3A6IDE4cHg7XG5cbiAgICAgICAgICAuYnV0dG9uLWhvbGRlciB7XG4gICAgICAgICAgICBtYXJnaW4tdG9wOiAwO1xuICAgICAgICAgIH1cbiAgICAgICAgfVxuICAgICAgfVxuXG4gICAgICAuYm90dG9tLW9wdGlvbnMge1xuICAgICAgICBkaXNwbGF5OiBmbGV4O1xuICAgICAgICBqdXN0aWZ5LWNvbnRlbnQ6IGNlbnRlcjtcbiAgICAgICAgYWxpZ24taXRlbXM6IGNlbnRlcjtcblxuICAgICAgICAubmV3LWhvbGRlciB7XG4gICAgICAgICAgbWFyZ2luLXRvcDogMThweDtcblxuICAgICAgICAgIC5idXR0b24taG9sZGVyIHtcbiAgICAgICAgICAgIG1hcmdpbi10b3A6IDA7XG4gICAgICAgICAgICB3aWR0aDogMTAwJTtcbiAgICAgICAgICB9XG4gICAgICAgIH1cbiAgICAgIH1cbiAgICB9XG5cbiAgICAubW9kYWwtYm9keSB7XG4gICAgICAucmVzdWx0cyB7XG4gICAgICAgIG92ZXJmbG93OiBzY3JvbGw7XG4gICAgICAgIGhlaWdodDogMTAwJTtcbiAgICAgICAgcGFkZGluZzogMWVtO1xuXG4gICAgICAgIC50aXRsZSB7XG4gICAgICAgICAgZm9udC1zaXplOiBpbml0aWFsICFpbXBvcnRhbnQ7XG4gICAgICAgICAgd2lkdGg6IDgwJTtcbiAgICAgICAgICBtYXJnaW46IDAgMTAlIDJweDtcbiAgICAgICAgICBmb250LXdlaWdodDogYm9sZDtcbiAgICAgICAgICB0ZXh0LWFsaWduOiBjZW50ZXI7XG4gICAgICAgIH1cblxuICAgICAgICAuc3ViLXRpdGxlIHtcbiAgICAgICAgICBtYXJnaW46IDEwcHggMDtcbiAgICAgICAgICBmb250LXNpemU6IDAuOWVtO1xuICAgICAgICAgIGJhY2tncm91bmQtY29sb3I6ICNlZWU7XG4gICAgICAgICAgYm9yZGVyOiAxcHggc29saWQgI2NjYztcbiAgICAgICAgICBwYWRkaW5nOiA4cHg7XG4gICAgICAgICAgYm9yZGVyLXJhZGl1czogMnB4O1xuICAgICAgICAgIHRleHQtYWxpZ246IGNlbnRlcjtcbiAgICAgICAgfVxuXG4gICAgICAgIC5yZXN1bHQge1xuICAgICAgICAgIHdpZHRoOiA5NSU7XG4gICAgICAgICAgbWFyZ2luOiAxMHB4IDEwcHggMTBweCAxMHB4O1xuICAgICAgICAgIGJvcmRlcjogMXB4IHNvbGlkICNlZWU7XG4gICAgICAgICAgYm9yZGVyLXJhZGl1czogNHB4O1xuICAgICAgICAgIHBhZGRpbmc6IDEwcHggMTBweDtcblxuICAgICAgICAgIC5jb21wYW55IHtcbiAgICAgICAgICAgIGNvbG9yOiAjYWFhO1xuICAgICAgICAgIH1cbiAgICAgICAgfVxuICAgICAgfVxuICAgIH1cbiAgfVxufVxuIl19 */"]
});
/***/ }),
/***/ 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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNlbGVjdG9yLWZvci1kcml2ZXItdG8tYWRkLXRvLWV2ZW50LmNvbXBvbmVudC5zY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0VBQ0UsNEJBQUE7QUFDRjtBQUFFO0VBQ0UsZUFBQTtFQUNBLGdCQUFBO0FBRUo7QUFFRTtFQUNFLHNCQUFBO0VBQ0Esa0JBQUE7QUFDSjtBQUdFO0VBQ0UsMkNBQUE7RUFDQSxhQUFBO0VBQ0EsOEJBQUE7RUFDQSxzQkFBQTtFQUNBLFlBQUE7RUFDQSxnQkFBQTtBQUFKO0FBRUk7RUFDRSxhQUFBO0VBQ0Esa0JBQUE7RUFDQSx1QkFBQTtFQUNBLG1CQUFBO0VBQ0Esc0JBQUE7QUFBTjtBQUVNO0VBQ0UsNkJBQUE7RUFDQSxpQkFBQTtFQUNBLGtCQUFBO0VBQ0EsWUFBQTtFQUNBLGtCQUFBO0FBQVI7QUFHTTtFQUNFLHVCQUFBO0VBQ0EsU0FBQTtBQURSO0FBS0k7RUFDRSxlQUFBO0VBQ0EsYUFBQTtFQUNBLHVCQUFBO0VBQ0EsbUJBQUE7RUFDQSxzQkFBQTtFQUNBLFdBQUE7QUFITjtBQUtNO0VBQ0UsYUFBQTtFQUNBLHVCQUFBO0VBQ0EsbUJBQUE7QUFIUjtBQUtRO0VBQ0UsZ0JBQUE7QUFIVjtBQUtVO0VBQ0UsYUFBQTtBQUhaO0FBUU07RUFDRSxhQUFBO0VBQ0EsdUJBQUE7RUFDQSxtQkFBQTtBQU5SO0FBUVE7RUFDRSxnQkFBQTtBQU5WO0FBUVU7RUFDRSxhQUFBO0VBQ0EsV0FBQTtBQU5aO0FBYU07RUFDRSxnQkFBQTtFQUNBLFlBQUE7RUFDQSxZQUFBO0FBWFI7QUFhUTtFQUNFLDZCQUFBO0VBQ0EsVUFBQTtFQUNBLGlCQUFBO0VBQ0EsaUJBQUE7RUFDQSxrQkFBQTtBQVhWO0FBY1E7RUFDRSxjQUFBO0VBQ0EsZ0JBQUE7RUFDQSxzQkFBQTtFQUNBLHNCQUFBO0VBQ0EsWUFBQTtFQUNBLGtCQUFBO0VBQ0Esa0JBQUE7QUFaVjtBQWVRO0VBQ0UsVUFBQTtFQUNBLDJCQUFBO0VBQ0Esc0JBQUE7RUFDQSxrQkFBQTtFQUNBLGtCQUFBO0FBYlY7QUFlVTtFQUNFLFdBQUE7QUFiWiIsImZpbGUiOiJzZWxlY3Rvci1mb3ItZHJpdmVyLXRvLWFkZC10by1ldmVudC5jb21wb25lbnQuc2NzcyIsInNvdXJjZXNDb250ZW50IjpbImlvbi1jb250ZW50LnNlbGVjdG9yIHtcbiAgLS1vZmZzZXQtdG9wOiAwcHggIWltcG9ydGFudDtcbiAgaW9uLWZhYi5mYWIge1xuICAgIHBvc2l0aW9uOiBmaXhlZDtcbiAgICBtYXJnaW4tdG9wOiAxMHB4O1xuICB9XG59XG5pb24taGVhZGVyLmZpeC1oZWFkZXItbW9kYWwtaW9zIHtcbiAgaW9uLXRvb2xiYXIge1xuICAgIGhlaWdodDogMHB4ICFpbXBvcnRhbnQ7XG4gICAgLS1iYWNrZ3JvdW5kOiAjZmZmO1xuICB9XG59XG4uc2VsZWN0b3Ige1xuICAubW9kYWwtY29udGFpbmVyIHtcbiAgICBib3gtc2hhZG93OiAwcHggLTZweCAzcHggcmdiYSgwLCAwLCAwLCAwLjEpO1xuICAgIG1hcmdpbi10b3A6IDA7XG4gICAgdHJhbnNpdGlvbjogbWFyZ2luLXRvcCAxcyBlYXNlO1xuICAgIGJhY2tncm91bmQtY29sb3I6ICNmZmY7XG4gICAgaGVpZ2h0OiAxMDAlO1xuICAgIG92ZXJmbG93OiBzY3JvbGw7XG5cbiAgICAubW9kYWwtdGl0bGUge1xuICAgICAgZGlzcGxheTogZmxleDtcbiAgICAgIHBhZGRpbmctdG9wOiAzLjVlbTtcbiAgICAgIGp1c3RpZnktY29udGVudDogY2VudGVyO1xuICAgICAgYWxpZ24taXRlbXM6IGNlbnRlcjtcbiAgICAgIGZsZXgtZGlyZWN0aW9uOiBjb2x1bW47XG5cbiAgICAgIC50aXRsZSB7XG4gICAgICAgIGZvbnQtc2l6ZTogaW5pdGlhbCAhaW1wb3J0YW50O1xuICAgICAgICBmb250LXdlaWdodDogYm9sZDtcbiAgICAgICAgdGV4dC1hbGlnbjogY2VudGVyO1xuICAgICAgICBtYXJnaW46IDMycHg7XG4gICAgICAgIG1hcmdpbi1ib3R0b206IDhweDtcbiAgICAgIH1cblxuICAgICAgLmJ1dHRvbi1ob2xkZXIge1xuICAgICAgICBqdXN0aWZ5LWNvbnRlbnQ6IGNlbnRlcjtcbiAgICAgICAgbWFyZ2luOiAwO1xuICAgICAgfVxuICAgIH1cblxuICAgIC5pbnB1dC1ob2xkZXIge1xuICAgICAgbWFyZ2luLXRvcDogOHB4O1xuICAgICAgZGlzcGxheTogZmxleDtcbiAgICAgIGp1c3RpZnktY29udGVudDogY2VudGVyO1xuICAgICAgYWxpZ24taXRlbXM6IGNlbnRlcjtcbiAgICAgIGZsZXgtZGlyZWN0aW9uOiBjb2x1bW47XG4gICAgICB3aWR0aDogMTAwJTtcblxuICAgICAgLnVwcGVyLW9wdGlvbnMge1xuICAgICAgICBkaXNwbGF5OiBmbGV4O1xuICAgICAgICBqdXN0aWZ5LWNvbnRlbnQ6IGNlbnRlcjtcbiAgICAgICAgYWxpZ24taXRlbXM6IGNlbnRlcjtcblxuICAgICAgICAubmV3LWhvbGRlciB7XG4gICAgICAgICAgbWFyZ2luLXRvcDogMThweDtcblxuICAgICAgICAgIC5idXR0b24taG9sZGVyIHtcbiAgICAgICAgICAgIG1hcmdpbi10b3A6IDA7XG4gICAgICAgICAgfVxuICAgICAgICB9XG4gICAgICB9XG5cbiAgICAgIC5ib3R0b20tb3B0aW9ucyB7XG4gICAgICAgIGRpc3BsYXk6IGZsZXg7XG4gICAgICAgIGp1c3RpZnktY29udGVudDogY2VudGVyO1xuICAgICAgICBhbGlnbi1pdGVtczogY2VudGVyO1xuXG4gICAgICAgIC5uZXctaG9sZGVyIHtcbiAgICAgICAgICBtYXJnaW4tdG9wOiAxOHB4O1xuXG4gICAgICAgICAgLmJ1dHRvbi1ob2xkZXIge1xuICAgICAgICAgICAgbWFyZ2luLXRvcDogMDtcbiAgICAgICAgICAgIHdpZHRoOiAxMDAlO1xuICAgICAgICAgIH1cbiAgICAgICAgfVxuICAgICAgfVxuICAgIH1cblxuICAgIC5tb2RhbC1ib2R5IHtcbiAgICAgIC5yZXN1bHRzIHtcbiAgICAgICAgb3ZlcmZsb3c6IHNjcm9sbDtcbiAgICAgICAgaGVpZ2h0OiAxMDAlO1xuICAgICAgICBwYWRkaW5nOiAxZW07XG5cbiAgICAgICAgLnRpdGxlIHtcbiAgICAgICAgICBmb250LXNpemU6IGluaXRpYWwgIWltcG9ydGFudDtcbiAgICAgICAgICB3aWR0aDogODAlO1xuICAgICAgICAgIG1hcmdpbjogMCAxMCUgMnB4O1xuICAgICAgICAgIGZvbnQtd2VpZ2h0OiBib2xkO1xuICAgICAgICAgIHRleHQtYWxpZ246IGNlbnRlcjtcbiAgICAgICAgfVxuXG4gICAgICAgIC5zdWItdGl0bGUge1xuICAgICAgICAgIG1hcmdpbjogMTBweCAwO1xuICAgICAgICAgIGZvbnQtc2l6ZTogMC45ZW07XG4gICAgICAgICAgYmFja2dyb3VuZC1jb2xvcjogI2VlZTtcbiAgICAgICAgICBib3JkZXI6IDFweCBzb2xpZCAjY2NjO1xuICAgICAgICAgIHBhZGRpbmc6IDhweDtcbiAgICAgICAgICBib3JkZXItcmFkaXVzOiAycHg7XG4gICAgICAgICAgdGV4dC1hbGlnbjogY2VudGVyO1xuICAgICAgICB9XG5cbiAgICAgICAgLnJlc3VsdCB7XG4gICAgICAgICAgd2lkdGg6IDk1JTtcbiAgICAgICAgICBtYXJnaW46IDEwcHggMTBweCAxMHB4IDEwcHg7XG4gICAgICAgICAgYm9yZGVyOiAxcHggc29saWQgI2VlZTtcbiAgICAgICAgICBib3JkZXItcmFkaXVzOiA0cHg7XG4gICAgICAgICAgcGFkZGluZzogMTBweCAxMHB4O1xuXG4gICAgICAgICAgLmNvbXBhbnkge1xuICAgICAgICAgICAgY29sb3I6ICNhYWE7XG4gICAgICAgICAgfVxuICAgICAgICB9XG4gICAgICB9XG4gICAgfVxuICB9XG59XG4iXX0= */"]
});
/***/ }),
/***/ 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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNvbHZlLWRyaXZlci1jaGVja2luLWNvbmZsaWN0LmNvbXBvbmVudC5zY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0VBQ0UsNEJBQUE7QUFDRjs7QUFHRTtFQUNFLGFBQUE7QUFBSjs7QUFFSTtFQUNFLDJDQUFBO0VBQ0EsYUFBQTtFQUNBLDhCQUFBO0VBQ0Esc0JBQUE7RUFDQSxZQUFBO0VBQ0EsZ0JBQUE7QUFBTjs7QUFFTTtFQUNFLGFBQUE7RUFDQSxnQkFBQTtFQUNBLHVCQUFBO0VBQ0EsbUJBQUE7RUFDQSxzQkFBQTtBQUFSOztBQUVRO0VBQ0UsNkJBQUE7RUFDQSxpQkFBQTtFQUNBLGtCQUFBO0VBQ0EsWUFBQTtFQUNBLGlDQUFBO0FBQVY7O0FBR1E7RUFDRSx1QkFBQTtFQUNBLFNBQUE7QUFEVjs7QUFLTTtFQUNFLGVBQUE7RUFDQSxhQUFBO0VBQ0EsdUJBQUE7RUFDQSxtQkFBQTtFQUNBLHNCQUFBO0FBSFI7O0FBS1E7RUFDRSxhQUFBO0VBQ0EsdUJBQUE7RUFDQSxtQkFBQTtBQUhWOztBQUtVO0VBQ0UsZ0JBQUE7QUFIWjs7QUFLWTtFQUNFLGFBQUE7QUFIZDs7QUFRUTtFQUNFLGFBQUE7RUFDQSx1QkFBQTtFQUNBLG1CQUFBO0FBTlY7O0FBUVU7RUFDRSxnQkFBQTtBQU5aOztBQVFZO0VBQ0UsYUFBQTtFQUNBLFdBQUE7QUFOZDs7QUFhUTtFQUNFLGFBQUE7RUFDQSxtQkFBQTtFQUNBLFdBQUE7RUFDQSxXQUFBO0FBWFY7O0FBYVU7RUFDRSw2QkFBQTtBQVhaOztBQWNVO0VBQ0UsdUJBQUE7QUFaWjs7QUFlVTtFQUNFLGNBQUE7RUFDQSxjQUFBO0VBQ0Esc0JBQUE7RUFDQSxxQkFBQTtFQUNBLG1CQUFBO0VBQ0EseUJBQUE7RUFDQSwwQ0FBQTtBQWJaOztBQWVZO0VBQ0UseUJBQUE7RUFDQSxXQUFBO0VBQ0EsMENBQUE7QUFiZDs7QUFrQlE7RUFDRSxhQUFBO0VBQ0Esc0JBQUE7RUFDQSxrQkFBQTtBQWhCVjs7QUFrQlU7RUFDRSxtQkFBQTtBQWhCWjs7QUFtQlU7RUFDRSxpQkFBQTtBQWpCWjs7QUF3Qlk7RUFDRSxjQUFBO0FBdEJkOztBQTZCSTtFQUVFLGFBQUE7RUFFQSx1QkFBQTtFQUVBLG1CQUFBO0VBQ0EsWUFBQTtBQTNCTiIsImZpbGUiOiJzb2x2ZS1kcml2ZXItY2hlY2tpbi1jb25mbGljdC5jb21wb25lbnQuc2NzcyIsInNvdXJjZXNDb250ZW50IjpbImlvbi1jb250ZW50LnNlbGVjdG9yLmlvcyB7XG4gIC0tb2Zmc2V0LXRvcDogMHB4ICFpbXBvcnRhbnQ7XG59XG5cbi5zZWxlY3RvciB7XG4gIC5jb250ZW50IHtcbiAgICBoZWlnaHQ6IDEwMHZoO1xuXG4gICAgLm1vZGFsLWNvbnRhaW5lciB7XG4gICAgICBib3gtc2hhZG93OiAwcHggLTZweCAzcHggcmdiYSgwLCAwLCAwLCAwLjEpO1xuICAgICAgbWFyZ2luLXRvcDogMDtcbiAgICAgIHRyYW5zaXRpb246IG1hcmdpbi10b3AgMXMgZWFzZTtcbiAgICAgIGJhY2tncm91bmQtY29sb3I6ICNmZmY7XG4gICAgICBoZWlnaHQ6IDEwMCU7XG4gICAgICBvdmVyZmxvdzogc2Nyb2xsO1xuXG4gICAgICAubW9kYWwtdGl0bGUge1xuICAgICAgICBkaXNwbGF5OiBmbGV4O1xuICAgICAgICBwYWRkaW5nLXRvcDogMWVtO1xuICAgICAgICBqdXN0aWZ5LWNvbnRlbnQ6IGNlbnRlcjtcbiAgICAgICAgYWxpZ24taXRlbXM6IGNlbnRlcjtcbiAgICAgICAgZmxleC1kaXJlY3Rpb246IGNvbHVtbjtcblxuICAgICAgICAudGl0bGUge1xuICAgICAgICAgIGZvbnQtc2l6ZTogaW5pdGlhbCAhaW1wb3J0YW50O1xuICAgICAgICAgIGZvbnQtd2VpZ2h0OiBib2xkO1xuICAgICAgICAgIHRleHQtYWxpZ246IGNlbnRlcjtcbiAgICAgICAgICBtYXJnaW46IDMycHg7XG4gICAgICAgICAgbWFyZ2luLWJvdHRvbTogMjRweCAzMnB4IDhweCAzMnB4O1xuICAgICAgICB9XG5cbiAgICAgICAgLmJ1dHRvbi1ob2xkZXIge1xuICAgICAgICAgIGp1c3RpZnktY29udGVudDogY2VudGVyO1xuICAgICAgICAgIG1hcmdpbjogMDtcbiAgICAgICAgfVxuICAgICAgfVxuXG4gICAgICAuaW5wdXQtaG9sZGVyIHtcbiAgICAgICAgbWFyZ2luLXRvcDogOHB4O1xuICAgICAgICBkaXNwbGF5OiBmbGV4O1xuICAgICAgICBqdXN0aWZ5LWNvbnRlbnQ6IGNlbnRlcjtcbiAgICAgICAgYWxpZ24taXRlbXM6IGNlbnRlcjtcbiAgICAgICAgZmxleC1kaXJlY3Rpb246IGNvbHVtbjtcblxuICAgICAgICAudXBwZXItb3B0aW9ucyB7XG4gICAgICAgICAgZGlzcGxheTogZmxleDtcbiAgICAgICAgICBqdXN0aWZ5LWNvbnRlbnQ6IGNlbnRlcjtcbiAgICAgICAgICBhbGlnbi1pdGVtczogY2VudGVyO1xuXG4gICAgICAgICAgLm5ldy1ob2xkZXIge1xuICAgICAgICAgICAgbWFyZ2luLXRvcDogMThweDtcblxuICAgICAgICAgICAgLmJ1dHRvbi1ob2xkZXIge1xuICAgICAgICAgICAgICBtYXJnaW4tdG9wOiAwO1xuICAgICAgICAgICAgfVxuICAgICAgICAgIH1cbiAgICAgICAgfVxuXG4gICAgICAgIC5ib3R0b20tb3B0aW9ucyB7XG4gICAgICAgICAgZGlzcGxheTogZmxleDtcbiAgICAgICAgICBqdXN0aWZ5LWNvbnRlbnQ6IGNlbnRlcjtcbiAgICAgICAgICBhbGlnbi1pdGVtczogY2VudGVyO1xuXG4gICAgICAgICAgLm5ldy1ob2xkZXIge1xuICAgICAgICAgICAgbWFyZ2luLXRvcDogMThweDtcblxuICAgICAgICAgICAgLmJ1dHRvbi1ob2xkZXIge1xuICAgICAgICAgICAgICBtYXJnaW4tdG9wOiAwO1xuICAgICAgICAgICAgICB3aWR0aDogMTAwJTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgICB9XG4gICAgICAgIH1cbiAgICAgIH1cblxuICAgICAgLm1vZGFsLWJvZHkge1xuICAgICAgICAuYWN0aW9ucyB7XG4gICAgICAgICAgZGlzcGxheTogZmxleDtcbiAgICAgICAgICBhbGlnbi1pdGVtczogY2VudGVyO1xuICAgICAgICAgIHdpZHRoOiAxMDAlO1xuICAgICAgICAgIG1hcmdpbjogOHB4O1xuXG4gICAgICAgICAgJi50d28tb3ItbW9yZSB7XG4gICAgICAgICAgICBqdXN0aWZ5LWNvbnRlbnQ6IHNwYWNlLWFyb3VuZDtcbiAgICAgICAgICB9XG5cbiAgICAgICAgICAmLm9ubHktb25lIHtcbiAgICAgICAgICAgIGp1c3RpZnktY29udGVudDogY2VudGVyO1xuICAgICAgICAgIH1cblxuICAgICAgICAgIGJ1dHRvbiB7XG4gICAgICAgICAgICBmb250LXNpemU6IDFlbTtcbiAgICAgICAgICAgIGNvbG9yOiAjMGVjMjU0O1xuICAgICAgICAgICAgYmFja2dyb3VuZC1jb2xvcjogI2ZmZjtcbiAgICAgICAgICAgIHBhZGRpbmc6IDAuNWVtIDEuMjVlbTtcbiAgICAgICAgICAgIGJvcmRlci1yYWRpdXM6IDMycHg7XG4gICAgICAgICAgICBib3JkZXI6IDFweCBzb2xpZCAjMGVjMjU0O1xuICAgICAgICAgICAgdHJhbnNpdGlvbjogYmFja2dyb3VuZC1jb2xvciAwLjFzIGVhc2Utb3V0O1xuXG4gICAgICAgICAgICAmOmFjdGl2ZSB7XG4gICAgICAgICAgICAgIGJhY2tncm91bmQtY29sb3I6ICMwZWMyNTQ7XG4gICAgICAgICAgICAgIGNvbG9yOiAjZmZmO1xuICAgICAgICAgICAgICB0cmFuc2l0aW9uOiBiYWNrZ3JvdW5kLWNvbG9yIDAuMXMgZWFzZS1vdXQ7XG4gICAgICAgICAgICB9XG4gICAgICAgICAgfVxuICAgICAgICB9XG5cbiAgICAgICAgLmRyaXZlci1ob2xkZXIge1xuICAgICAgICAgIHBhZGRpbmc6IDE2cHg7XG4gICAgICAgICAgYm9yZGVyOiAxcHggc29saWQgI2VlZTtcbiAgICAgICAgICBib3JkZXItcmFkaXVzOiA4cHg7XG5cbiAgICAgICAgICAuaXRlbSB7XG4gICAgICAgICAgICBtYXJnaW4tYm90dG9tOiAxMnB4O1xuICAgICAgICAgIH1cblxuICAgICAgICAgIC5sYWJlbCB7XG4gICAgICAgICAgICBmb250LXdlaWdodDogYm9sZDtcbiAgICAgICAgICB9XG5cbiAgICAgICAgICAudmFsdWUge1xuICAgICAgICAgIH1cblxuICAgICAgICAgIC5kcml2ZXItZGV0YWlscyB7XG4gICAgICAgICAgICAubGFiZWwge1xuICAgICAgICAgICAgICBjb2xvcjogIzBlYzI1NDtcbiAgICAgICAgICAgIH1cbiAgICAgICAgICB9XG4gICAgICAgIH1cbiAgICAgIH1cbiAgICB9XG5cbiAgICAuc3Bpbm5lciB7XG4gICAgICBkaXNwbGF5OiAtd2Via2l0LWJveDtcbiAgICAgIGRpc3BsYXk6IGZsZXg7XG4gICAgICAtd2Via2l0LWJveC1wYWNrOiBjZW50ZXI7XG4gICAgICBqdXN0aWZ5LWNvbnRlbnQ6IGNlbnRlcjtcbiAgICAgIC13ZWJraXQtYm94LWFsaWduOiBjZW50ZXI7XG4gICAgICBhbGlnbi1pdGVtczogY2VudGVyO1xuICAgICAgaGVpZ2h0OiA1MHZoO1xuICAgIH1cbiAgfVxufVxuIl19 */"] });
/***/ }),
/***/ 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'
});
/***/ }),
/***/ 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' });
/***/ }),
/***/ 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())
});
/***/ })
}])
//# sourceMappingURL=3467.js.map