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

/***/ 54493:
/*!*************************************************************!*\
  !*** ./src/app/logistic-events/entrance/entrance.module.ts ***!
  \*************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "EntrancePageModule": () => (/* binding */ EntrancePageModule)
/* 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 src_app_shared_module_shared_module_module__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! src/app/shared-module/shared-module.module */ 69270);
/* harmony import */ var _entrance_page__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./entrance.page */ 49109);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/core */ 45449);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_angular_core__WEBPACK_IMPORTED_MODULE_3__);





const routes = [
    {
        path: '',
        component: _entrance_page__WEBPACK_IMPORTED_MODULE_2__.EntrancePage
    }
];
class EntrancePageModule {
}
EntrancePageModule.ɵfac = function EntrancePageModule_Factory(t) { return new (t || EntrancePageModule)(); };
EntrancePageModule.ɵmod = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdefineNgModule"]({ type: EntrancePageModule });
EntrancePageModule.ɵinj = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdefineInjector"]({ imports: [src_app_shared_module_shared_module_module__WEBPACK_IMPORTED_MODULE_1__.SharedModuleModule, _angular_router__WEBPACK_IMPORTED_MODULE_0__.RouterModule.forChild(routes)] });
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵsetNgModuleScope"](EntrancePageModule, { declarations: [_entrance_page__WEBPACK_IMPORTED_MODULE_2__.EntrancePage], imports: [src_app_shared_module_shared_module_module__WEBPACK_IMPORTED_MODULE_1__.SharedModuleModule, _angular_router__WEBPACK_IMPORTED_MODULE_0__.RouterModule] }); })();


/***/ }),

/***/ 49109:
/*!***********************************************************!*\
  !*** ./src/app/logistic-events/entrance/entrance.page.ts ***!
  \***********************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "EntrancePage": () => (/* binding */ EntrancePage)
/* 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 _environment__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @environment */ 92340);
/* harmony import */ var _ionic_angular__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! @ionic/angular */ 93819);
/* harmony import */ var _shared_components__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @shared/components */ 7667);
/* harmony import */ var _shared_components_modais__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @shared/components/modais */ 90340);
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! rxjs/operators */ 44661);
/* 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__);
/* harmony import */ var _shared_services__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @shared/services */ 17253);
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @angular/router */ 61380);
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_angular_router__WEBPACK_IMPORTED_MODULE_6__);
/* harmony import */ var _awesome_cordova_plugins_social_sharing_ngx__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @awesome-cordova-plugins/social-sharing/ngx */ 26436);
/* harmony import */ var _awesome_cordova_plugins_calendar_ngx__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @awesome-cordova-plugins/calendar/ngx */ 39020);
/* harmony import */ var _awesome_cordova_plugins_android_permissions_ngx__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @awesome-cordova-plugins/android-permissions/ngx */ 4824);
/* harmony import */ var _shared_services_state_service__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @shared/services/state.service */ 21284);
/* harmony import */ var _shared_services_sessionaddflow_service__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @shared/services/sessionaddflow.service */ 80698);
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @angular/common */ 90944);
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(_angular_common__WEBPACK_IMPORTED_MODULE_12__);
/* harmony import */ var _shared_components_avatar_avatar_component__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../../shared/components/avatar/avatar.component */ 87871);
/* harmony import */ var _ngx_translate_core__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! @ngx-translate/core */ 38699);



















function EntrancePage_div_6_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](0, "div", 9)(1, "div", 10);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵpipe"](3, "translate");
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()();
  }

  if (rf & 2) {
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵpipeBind1"](3, 1, "PG_ENTRANCE_TEXT_NO_EVENTS"));
  }
}

function EntrancePage_div_7_ng_container_10_span_10_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](0, "span", 35);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵpipe"](2, "translate");
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
  }

  if (rf & 2) {
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵpipeBind1"](2, 1, "PG_ENTRANCE_TEXT_WAITING_FOR_PARKING"), " ");
  }
}

function EntrancePage_div_7_ng_container_10_span_11_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](0, "span", 36);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵpipe"](2, "translate");
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
  }

  if (rf & 2) {
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵpipeBind1"](2, 1, "PG_ENTRANCE_TEXT_OCCUPYING_PARKING"), " ");
  }
}

function EntrancePage_div_7_ng_container_10_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementContainerStart"](0);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](1, "div", 27);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelement"](2, "app-avatar", 28);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](3, "div", 29)(4, "div", 30);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](6, "div", 31)(7, "span", 32);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](8);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵpipe"](9, "translate");
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtemplate"](10, EntrancePage_div_7_ng_container_10_span_10_Template, 3, 3, "span", 33);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtemplate"](11, EntrancePage_div_7_ng_container_10_span_11_Template, 3, 3, "span", 34);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementContainerEnd"]();
  }

  if (rf & 2) {
    const event_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵnextContext"]().$implicit;
    let tmp_0_0;
    let tmp_1_0;
    let tmp_1_1;
    let tmp_2_0;
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("firstName", (tmp_0_0 = event_r3 == null ? null : event_r3.driver == null ? null : event_r3.driver.fullName == null ? null : (tmp_0_0 = event_r3.driver.fullName.split(" ")) == null ? null : tmp_0_0[0]) !== null && tmp_0_0 !== undefined ? tmp_0_0 : "")("lastName", (tmp_1_0 = event_r3 == null ? null : event_r3.driver == null ? null : event_r3.driver.fullName == null ? null : (tmp_1_0 = event_r3.driver.fullName.split(" ")) == null ? null : (tmp_1_1 = tmp_1_0.slice(1)) == null ? null : tmp_1_1.join(" ")) !== null && tmp_1_0 !== undefined ? tmp_1_0 : "")("thumbnailImage", (tmp_2_0 = event_r3 == null ? null : event_r3.driver == null ? null : event_r3.driver.thumbnailImage) !== null && tmp_2_0 !== undefined ? tmp_2_0 : null)("size", "sm");
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtextInterpolate"](event_r3 == null ? null : event_r3.driver == null ? null : event_r3.driver.fullName);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵpipeBind1"](9, 8, "PG_ENTRANCE_TEXT_DRIVER"));
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngIf", (event_r3 == null ? null : event_r3.driver == null ? null : event_r3.driver.status) === "WAITING_FOR_PARKING");
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngIf", !(event_r3 == null ? null : event_r3.driver == null ? null : event_r3.driver.onFoot) && (event_r3 == null ? null : event_r3.driver == null ? null : event_r3.driver.leftParking) === false && ((event_r3 == null ? null : event_r3.driver == null ? null : event_r3.driver.status) === "QRCODE_PRINTED" || (event_r3 == null ? null : event_r3.driver == null ? null : event_r3.driver.status) === "MULTICHECKIN"));
  }
}

function EntrancePage_div_7_ng_container_12_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementContainerStart"](0);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](1, "div", 19)(2, "div", 37);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵpipe"](4, "translate");
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](5, "div", 38);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵpipe"](7, "translate");
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementContainerEnd"]();
  }

  if (rf & 2) {
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵpipeBind1"](4, 2, "PG_ENTRANCE_TEXT_ON_FOOT"));
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵpipeBind1"](7, 4, "TEXT_YES"));
  }
}

function EntrancePage_div_7_ng_container_14_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementContainerStart"](0);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](1, "div", 37);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵpipe"](3, "translate");
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](4, "div", 38);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementContainerEnd"]();
  }

  if (rf & 2) {
    const event_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵnextContext"]().$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵpipeBind1"](3, 2, "PG_ENTRANCE_TEXT_LICENSEPLATONE"));
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtextInterpolate"](event_r3.driver.licensePlateOne);
  }
}

function EntrancePage_div_7_ng_container_16_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementContainerStart"](0);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](1, "div", 37);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵpipe"](3, "translate");
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](4, "div", 38);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementContainerEnd"]();
  }

  if (rf & 2) {
    const event_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵnextContext"]().$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵpipeBind1"](3, 2, "PG_ENTRANCE_TEXT_LICENSEPLATTWO"));
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtextInterpolate"](event_r3.driver.licensePlateTwo);
  }
}

function EntrancePage_div_7_ng_container_19_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementContainerStart"](0);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](1, "div", 37);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵpipe"](3, "translate");
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](4, "div", 38);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementContainerEnd"]();
  }

  if (rf & 2) {
    const event_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵnextContext"]().$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵpipeBind1"](3, 2, "PG_ENTRANCE_TEXT_NOTES"));
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtextInterpolate"](event_r3.notes);
  }
}

const _c0 = function (a0, a1) {
  return {
    "waiting": a0,
    "occupying": a1
  };
};

function EntrancePage_div_7_Template(rf, ctx) {
  if (rf & 1) {
    const _r16 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵgetCurrentView"]();

    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](0, "div", 11)(1, "div", 12);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵlistener"]("click", function EntrancePage_div_7_Template_div_click_1_listener() {
      const restoredCtx = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵrestoreView"](_r16);
      const event_r3 = restoredCtx.$implicit;
      const ctx_r15 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵresetView"](ctx_r15.onEventClick(event_r3));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](2, "div", 13)(3, "div", 14);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](5, "div", 15);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](7, "div", 16);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](8);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](9, "div", 17);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵlistener"]("click", function EntrancePage_div_7_Template_div_click_9_listener() {
      const restoredCtx = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵrestoreView"](_r16);
      const event_r3 = restoredCtx.$implicit;
      const ctx_r17 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵresetView"](ctx_r17.onEventClick(event_r3));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtemplate"](10, EntrancePage_div_7_ng_container_10_Template, 12, 10, "ng-container", 8);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](11, "div", 18);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtemplate"](12, EntrancePage_div_7_ng_container_12_Template, 8, 6, "ng-container", 8);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](13, "div", 19);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtemplate"](14, EntrancePage_div_7_ng_container_14_Template, 6, 4, "ng-container", 8);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](15, "div", 19);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtemplate"](16, EntrancePage_div_7_ng_container_16_Template, 6, 4, "ng-container", 8);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](17, "div", 18)(18, "div", 19);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtemplate"](19, EntrancePage_div_7_ng_container_19_Template, 6, 4, "ng-container", 8);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](20, "div", 20)(21, "div", 21)(22, "div", 22);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵlistener"]("click", function EntrancePage_div_7_Template_div_click_22_listener() {
      const restoredCtx = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵrestoreView"](_r16);
      const event_r3 = restoredCtx.$implicit;
      const ctx_r18 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵresetView"](ctx_r18.createExit(event_r3));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](23);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵpipe"](24, "translate");
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](25, "div", 21)(26, "div", 23);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵlistener"]("click", function EntrancePage_div_7_Template_div_click_26_listener() {
      const restoredCtx = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵrestoreView"](_r16);
      const event_r3 = restoredCtx.$implicit;
      const ctx_r19 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵresetView"](ctx_r19.verifyIsAllGuestsHaveEmail(event_r3));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelement"](27, "ion-icon", 24);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](28, "div", 25);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵlistener"]("click", function EntrancePage_div_7_Template_div_click_28_listener() {
      const restoredCtx = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵrestoreView"](_r16);
      const event_r3 = restoredCtx.$implicit;
      const ctx_r20 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵresetView"](ctx_r20.shareEvent(event_r3));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelement"](29, "ion-icon", 26);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()()()();
  }

  if (rf & 2) {
    const event_r3 = ctx.$implicit;
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("className", "event")("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵpureFunction2"](13, _c0, (event_r3 == null ? null : event_r3.driver == null ? null : event_r3.driver.status) === "WAITING_FOR_PARKING", !(event_r3 == null ? null : event_r3.driver == null ? null : event_r3.driver.onFoot) && (event_r3 == null ? null : event_r3.driver == null ? null : event_r3.driver.leftParking) === false && ((event_r3 == null ? null : event_r3.driver == null ? null : event_r3.driver.status) === "QRCODE_PRINTED" || (event_r3 == null ? null : event_r3.driver == null ? null : event_r3.driver.status) === "MULTICHECKIN")));
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtextInterpolate"](ctx_r1.getEventTitleToTheView(event_r3));
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtextInterpolate"](event_r3.company ? event_r3.company.name : "");
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtextInterpolate"](event_r3.date);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngIf", event_r3 == null ? null : event_r3.driver);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngIf", (event_r3 == null ? null : event_r3.driver == null ? null : event_r3.driver.onFoot) && !(event_r3 == null ? null : event_r3.driver == null ? null : event_r3.driver.licensePlateOne));
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngIf", (event_r3 == null ? null : event_r3.driver) && (event_r3 == null ? null : event_r3.driver == null ? null : event_r3.driver.licensePlateOne));
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngIf", (event_r3 == null ? null : event_r3.driver) && event_r3.driver.licensePlateTwo);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngIf", event_r3.notes);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵpipeBind1"](24, 11, "PG_ENTRANCE_BTN_CREATE_EXIT"), " ");
  }
}

function EntrancePage_ng_container_10_ion_fab_1_Template(rf, ctx) {
  if (rf & 1) {
    const _r25 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵgetCurrentView"]();

    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](0, "ion-fab", 41)(1, "ion-fab-button", 42);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵlistener"]("click", function EntrancePage_ng_container_10_ion_fab_1_Template_ion_fab_button_click_1_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵrestoreView"](_r25);
      const ctx_r24 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵresetView"](ctx_r24.onGoToCreateEvent());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelement"](2, "ion-icon", 43);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()();
  }

  if (rf & 2) {
    const connectionsStatus_r21 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵnextContext"]().ngIf;
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("disabled", connectionsStatus_r21.status === "Offline");
  }
}

function EntrancePage_ng_container_10_ion_fab_2_Template(rf, ctx) {
  if (rf & 1) {
    const _r28 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵgetCurrentView"]();

    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](0, "ion-fab", 44);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵlistener"]("click", function EntrancePage_ng_container_10_ion_fab_2_Template_ion_fab_click_0_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵrestoreView"](_r28);
      const ctx_r27 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵresetView"](ctx_r27.onGoToParking());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](1, "div", 45)(2, "span");
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](3, "E");
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()()();
  }
}

function EntrancePage_ng_container_10_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementContainerStart"](0);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtemplate"](1, EntrancePage_ng_container_10_ion_fab_1_Template, 3, 1, "ion-fab", 39);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtemplate"](2, EntrancePage_ng_container_10_ion_fab_2_Template, 4, 0, "ion-fab", 40);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementContainerEnd"]();
  }

  if (rf & 2) {
    const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngIf", ctx_r2.shouldShowAddEventButton());
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngIf", ctx_r2.isEnabledParking && ctx_r2.isLoadingSettingModulesFinished);
  }
}

class EntrancePage {
  constructor(logisticCompanyService, navigationService, momentService, loadingService, notificatorService, profileManagerService, router, socialSharing, calendar, modalController, logService, authService, apiService, activatedRoute, enterExitIonTabsManagerService, geolocationService, portalLoginManagerService, androidPermissions, modalPermissionsService, permissionsAndroidService, platform, resumeCreateEventInterruptedService, translateConfigService, stateService, sessionAddFlowService, userPhotoService) {
    var _this = this;

    this.logisticCompanyService = logisticCompanyService;
    this.navigationService = navigationService;
    this.momentService = momentService;
    this.loadingService = loadingService;
    this.notificatorService = notificatorService;
    this.profileManagerService = profileManagerService;
    this.router = router;
    this.socialSharing = socialSharing;
    this.calendar = calendar;
    this.modalController = modalController;
    this.logService = logService;
    this.authService = authService;
    this.apiService = apiService;
    this.activatedRoute = activatedRoute;
    this.enterExitIonTabsManagerService = enterExitIonTabsManagerService;
    this.geolocationService = geolocationService;
    this.portalLoginManagerService = portalLoginManagerService;
    this.androidPermissions = androidPermissions;
    this.modalPermissionsService = modalPermissionsService;
    this.permissionsAndroidService = permissionsAndroidService;
    this.platform = platform;
    this.resumeCreateEventInterruptedService = resumeCreateEventInterruptedService;
    this.translateConfigService = translateConfigService;
    this.stateService = stateService;
    this.sessionAddFlowService = sessionAddFlowService;
    this.userPhotoService = userPhotoService;
    this.events = [];
    this.voProfiles = [];
    this.numberRegistersPagination = 10;
    this.page = 0;
    this.loaded = false;
    this.isEnabledParking = false;
    this.isLoadingSettingModulesFinished = false;
    this.context = '';

    this.onEventClick = event => {
      const companyInstanceName = event && event.company ? event.company.instanceName : '';
      const navigationExtras = {
        state: {
          viewType: this.context,
          eventId: event.id,
          companyInstanceName
        }
      };
      this.getCompanyInstanceRelatedProfile(companyInstanceName).then(profileRelated => {
        this.navigationService.forward(['/view-logistic-event/'], navigationExtras);
      }).catch(error => {
        this.handleErrorGetCompanyInstanceRelated(error, navigationExtras);
      });
    };

    this.pullDownToGetEvents = event => {
      this.loadingService.show(this.translateConfigService.translate('PG_ENTRANCE_LOADING_EVENTS'), 'loading-events');
      this.events = [];
      this.page = 0; // const today = new Date();

      const filter = {
        // 'eventStartAt.greaterOrEqualThan': this.getStartAtFilterValue(),
        // 'eventEndAt.lessOrEqualThan': this.getEndAtFilterValue(),
        'happensOn.equals': this.getStartAtFilterValue(),
        size: this.numberRegistersPagination,
        page: this.page,
        'eventStatus.in': 'OPENED',
        'eventBehavior.in': 'ENTRY',
        sort: ['startAt,asc', 'endAt,asc', 'status,asc']
      };
      this.logisticCompanyService.getEventsV2(filter).then(response => {
        if (event) {
          event.target.complete();
        }

        this.processGetEventsSuccessResponse(response);
      }).catch(error => {
        if (event) {
          event.target.complete();
        }

        this.processGetEventsErrorResponse(error);
      }).finally(() => {
        this.loadingService.hide(0, 'loading-events');
      });
    };

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

    this.shareEvent = event => {
      const companyName = this.companyName(event);
      const eventName = event.title;
      const startAt = this.momentService.formatAsEventAt(event.startAt);
      const url = event.fullPathLocator;
      const location = this.getCompanyAddress(event);
      const subject = this.translateConfigService.translate('SHARE_EVENT_SUBJECT');
      const message = this.mensageShared(eventName, companyName, startAt, location, url, 'OTHERS');
      this.socialSharing.share(message, subject, '', '').then(this.shareSuccessResponse).catch(this.shareErrorResponse);
    };

    this.shareSuccessResponse = response => {
      console.log('shareSuccessResponse');
      console.log('response:', response);
    };

    this.shareErrorResponse = error => {
      console.log('shareErrorResponse');
      console.log('error:', error);
    };

    this.createExit = /*#__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* (event) {
        _this.loadingService.show(_this.translateConfigService.translate('LOADING_DATA'), 'loading-event-data');

        const eventId = event.id;
        const companyInstanceName = event.company ? event.company.instanceName : '';
        const filter = {};

        _this.logisticCompanyService.getEvent(eventId, filter, companyInstanceName).then( /*#__PURE__*/function () {
          var _ref2 = (0,_Volumes_case_workspace_work_APPS_KA_APP_WORK_NOW_KA_PASS_V2_2_6_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* (response) {
            yield _this.loadingService.hide(0, 'loading-event-data');
            event = response;
            event = { ...event,
              licensePlateOne: event.driver && event.driver.licensePlateOne ? event.driver.licensePlateOne : null,
              licensePlateTwo: event.driver && event.driver.licensePlateTwo ? event.driver.licensePlateTwo : null,
              hasCart: event.driver && event.driver.hasCart ? event.driver.hasCart : false,
              onFoot: event.driver && event.driver.onFoot ? event.driver.onFoot : false
            };
            delete event.id;

            _this.goToCreateEventName(event, 'CLONE_ENTRY');
          });

          return function (_x2) {
            return _ref2.apply(this, arguments);
          };
        }()).catch( /*#__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 _this.loadingService.hide(0, 'loading-event-data');
          const notification = {
            title: _this.translateConfigService.translate('TOAST_TITLE_ERROR'),
            message: _this.translateConfigService.translate('PG_ENTRANCE_TOAST_EVENTS_DATA_ERROR_MESSAGE'),
            type: 'error'
          };

          _this.notificatorService.notify(notification);
        }));
      });

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

    this.verifyIsAllGuestsHaveEmail = event => {
      this.eventBeingShare = event; // const driver = event.driver['email'];
      // const isMissingEmail = event?.assistants.find(assistant => !assistant['email']);
      // if (isMissingEmail) {
      //   this.openUpdateUserEmailModal(event?.assistants);
      // } else {
      // }

      this.addToCalendar(this.eventBeingShare);
    };

    this.openUpdateUserEmailModal = /*#__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* (guests) {
        guests = guests.filter(guest => !guest.email);
        const modal = yield _this.modalController.create({
          component: _shared_components__WEBPACK_IMPORTED_MODULE_2__.UpdateUserEmailComponent,
          componentProps: {
            guests
          }
        });
        modal.onDidDismiss().then(_this.onModalDismissCallback);
        yield modal.present();
      });

      return function (_x3) {
        return _ref4.apply(this, arguments);
      };
    }();

    this.onModalDismissCallback = detail => {
      console.log('onModalDismissCallback detail:', detail);

      if (detail && detail.data) {
        const guests = detail.data.guests;
        this.updateGuestsData(guests);

        if (detail.data.share) {
          this.addToCalendar(this.eventBeingShare);
        }
      }
    };

    this.updateGuestsData = updatedGuests => {
      let guests = this.eventBeingShare.guests;
      guests = guests.map(guest => {
        const foundGuest = updatedGuests.find(updatedGuest => updatedGuest.id === guest.id);

        if (foundGuest) {
          return foundGuest;
        }

        return guest;
      });
      this.eventBeingShare.guests = guests;
    };

    this.addToCalendar = event => {
      const companyName = this.companyName(event);
      const eventName = event.title;
      const startDate = new Date(event.startAt);
      const startAt = this.momentService.formatAsEventAt(event.startAt);
      const endDate = new Date(event.endAt);
      const wcUrl = _environment__WEBPACK_IMPORTED_MODULE_1__.environment.wc_url;
      const locator = event.locator;
      const url = 'https://' + wcUrl + '/?l=' + locator;
      const location = this.getCompanyAddress(event); // const notes =
      //   'Olá, estou te convidando para o evento "' +
      //   eventName +
      //   '" na empresa ' +
      //   companyName +
      //   '.\n' +
      //   'Chegando ao local utilize este link (' +
      //   url +
      //   ') para realizar seu checkin e entrar sem filas e sem passar pela recepção. ' +
      //   'O checkin estará liberado com ' +
      //   minutesAllowedToDoCheckInBeforeCheckInStart +
      //   ' minutos de antecedência';

      const attendees = [];

      if (event?.driver['email']) {
        attendees.push(event?.driver['email']);
      }

      event?.assistants.forEach(assistant => {
        if (assistant['email']) {
          attendees.push(assistant['email']);
        }
      });
      const options = {
        url: event?.fullPathLocator ? event?.fullPathLocator : url,
        attendees: attendees.length ? attendees : null
      };
      const notes = this.mensageShared(eventName, companyName, startAt, location, url, 'CALENDAR'); // Interactively (options)

      this.calendar.createEventInteractivelyWithOptions(eventName, location, notes, startDate, endDate, options).then(this.addToCalendarSuccessResponse).catch(this.addToCalendarErrorResponse); // Interactively
      // this.calendar.createEventInteractively(title, location, notes, startDate, endDate)
      //   .then(this.addToCalendarSuccessResponse)
      //   .catch(this.addToCalendarErrorResponse);
      // Silently (options)
      // this.calendar.createEventWithOptions(title, location, notes, startDate, endDate, options)
      //   .then(this.addToCalendarSuccessResponse)
      //   .catch(this.addToCalendarErrorResponse);
      // Silently
      // this.calendar.createEvent(title, location, notes, startDate, endDate)
      //   .then(this.addToCalendarSuccessResponse)
      //   .catch(this.addToCalendarErrorResponse);
    };

    this.getCompanyAddress = event => event.company && event.company.address ? event.company.address : '';

    this.addToCalendarSuccessResponse = response => {
      console.log('addToCalendarSuccessResponse:', response);
    };

    this.addToCalendarErrorResponse = response => {
      this.logService.logError('http::addToCalendarErrorResponse', '', response);
      console.log('addToCalendarErrorResponse:', response);
    };

    this.getGuestClass = guest => guest.status.toLowerCase().replace(/_/g, '-');

    this.getEventTitleToTheView = event => event.title;

    this.goToCreateEventName = (event = null, eventType = 'ENTRY') => {
      const action = event ? 'edit' : 'create';
      const navigationExtras = {
        state: {
          action,
          eventType,
          event
        }
      };
      this.navigationService.forward(['/logistic-events/create/event-name'], navigationExtras);
    };

    this.goToParkingManagement = () => {
      const navigationExtras = {
        state: {}
      };
      this.navigationService.forward(['/modules/parking/management'], navigationExtras);
    };

    this.thereAreProfiles = () => this.voProfiles.length > 0;

    this.getNonLimitedProfiles = () => {
      const goodProfiles = [];
      this.voProfiles.forEach(p => {
        if (p.authorities && p.authorities.includes('ROLE_COMPANY_LIMITED')) {
          if (p.authorities.length !== 1) {
            goodProfiles.push(p);
          }
        } else {
          goodProfiles.push(p);
        }
      });
      return goodProfiles;
    };

    this.getExpeditionProfiles = () => {
      const goodProfiles = [];
      this.voProfiles.forEach(p => {
        if (p.authorities && p.authorities.includes('ROLE_LOGI_EXP')) {
          goodProfiles.push(p);
        }
      });
      return goodProfiles;
    };

    this.thereAreNonLimitedProfiles = () => !!this.getNonLimitedProfiles().length;

    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();

      const eventInprogress = _this.resumeCreateEvent();

      if (eventInprogress) {
        return;
      }

      _this.loadingService.show(_this.translateConfigService.translate('LOADING_CHECKING_DATA'), 'on-create-event');

      if (!_this.thereAreNonLimitedProfiles()) {
        _this.loadingService.hide(0, 'on-create-event').then(() => {
          _this.cantCreateEvent();
        });
      } else {
        _this.getVoProfiles().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* () {
          _this.loadingService.hide(0, 'on-create-event');

          const expeditionProfiles = _this.getExpeditionProfiles();

          const isCreationInterrupted = _this.resumeCreateEventInterruptedService.getResumeCreationInterrupted();

          if (isCreationInterrupted.logistic.eventType) {
            return;
          }

          if (expeditionProfiles && expeditionProfiles.length > 1) {
            const modal = yield _this.modalController.create({
              component: _shared_components__WEBPACK_IMPORTED_MODULE_2__.SelectProfileModalComponent,
              componentProps: {
                profiles: _this.getExpeditionProfiles()
              }
            });
            modal.onDidDismiss().then(response => {
              if (response.data) {
                _this.selectProfileModalVOOnProfileSelectCreateEventCallback(response.data);
              } else {
                _this.selectProfileModalVOOnBackCreateEventCallback();
              }
            });
            yield modal.present();
          } else if (expeditionProfiles[0]) {
            _this.selectProfileModalVOOnProfileSelectCreateEventCallback(expeditionProfiles[0]);
          } else {
            _this.loadingService.hide(0, 'on-create-event');

            const notification = {
              title: _this.translateConfigService.translate('PG_ENTRANCE_TOAST_NO_ACCESS_PROFILE_TITLE'),
              message: _this.translateConfigService.translate('PG_ENTRANCE_TOAST_NO_ACCESS_PROFILE_MESSAGE'),
              type: 'error',
              timeout: 5000
            };

            _this.notificatorService.notify(notification);
          }
        })).catch(error => {
          _this.loadingService.hide(0, 'on-create-event');

          const notification = {
            title: _this.translateConfigService.translate('PG_ENTRANCE_TOAST_ERROR_REQUEST_TITLE'),
            message: _this.translateConfigService.translate('PG_ENTRANCE_TOAST_MESSAGE_ERROR_REQUEST'),
            type: 'error',
            timeout: 5000
          };

          _this.notificatorService.notify(notification);
        });
      }
    });

    this.getVoProfiles = () => new Promise((resolve, reject) => {
      this.authService.getToken().then(token => {
        this.apiService.getUserProfiles('LG', token).subscribe(response => this.processGetVOUserProfilesSuccessResponse(response, resolve), response => this.processGetVOUserProfilesErrorResponse(response, reject));
      });
    });

    this.processGetVOUserProfilesSuccessResponse = (response, resolve) => {
      this.voProfiles = response;
      this.getModulesByCompanyID();
      resolve();
    };

    this.processGetVOUserProfilesErrorResponse = (response, reject) => {
      reject();
    };

    this.selectProfileModalVOOnProfileSelectCreateEventCallback = (profile, parking) => {
      this.profileManagerService.setProfileLogistic(profile);
      this.authService.getToken().then(token => this.portalLoginManagerService.getAccessToken(profile.login, profile.portal, token)).then( /*#__PURE__*/function () {
        var _ref7 = (0,_Volumes_case_workspace_work_APPS_KA_APP_WORK_NOW_KA_PASS_V2_2_6_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* (response) {
          const accessToken = response.access_token;
          const companyInstance = profile.company.instanceName;
          const siteInstanceName = profile.company?.site.instanceName;

          if (parking && siteInstanceName) {
            _this.accessToken = accessToken;
            _this.companyInstance = companyInstance;
            _this.companyID = profile.company.id;
            console.log('this.companyID', _this.companyID);
            return _this.handleVerifyCoordinatesSuccessResponse({
              authorized: true,
              parking
            });
          }

          const {
            authorized
          } = yield _this.checkSoftLock(companyInstance, accessToken);

          if (!authorized) {
            _this.modalPermissionsService.openModal({
              permission: 'GPS'
            }).then( /*#__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* (value) {
                if (value) {
                  const hasAccessCoarseLocation = _this.platform.is('cordova') ? yield _this.permissionsAndroidService.hasPermission(_this.androidPermissions.PERMISSION.ACCESS_COARSE_LOCATION) : {
                    hasPermission: true
                  };

                  _this.loadingService.show(_this.translateConfigService.translate('LOADING_CHECKING_DATA'), 'on-create-event');

                  const {
                    lat,
                    lng
                  } = yield _this.geoCoordinates('geolocation::afterProfileSelection', 'on-create-event');

                  if (!lat || !lng) {
                    return;
                  }

                  _this.apiService.verifyCoordinates(profile.company.instanceName, lat, lng, accessToken).subscribe(_this.handleVerifyCoordinatesSuccessResponse, _this.handleVerifyCoordinatesErrorResponse);
                } else {
                  _this.logService.logError('permissionModal::afterProfileSelectionPageEntraceLogitist', '', 'modal-permission-rejected');

                  return;
                }
              });

              return function (_x5) {
                return _ref8.apply(this, arguments);
              };
            }());
          } else {
            _this.handleVerifyCoordinatesSuccessResponse({
              authorized
            });
          }
        });

        return function (_x4) {
          return _ref7.apply(this, arguments);
        };
      }());
    };

    this.handleVerifyCoordinatesSuccessResponse = /*#__PURE__*/function () {
      var _ref9 = (0,_Volumes_case_workspace_work_APPS_KA_APP_WORK_NOW_KA_PASS_V2_2_6_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* (response) {
        const token = yield _this.authService.getToken();

        if (response?.parking && token) {
          return _this.goToParkingManagement();
        }

        if (response.authorized) {
          _this.loadingService.hide();

          _this.goToCreateEventName();
        } else {
          const modal = yield _this.modalController.create({
            component: _shared_components__WEBPACK_IMPORTED_MODULE_2__.CantCreateEventFromHereModalComponent
          });
          modal.onDidDismiss().then(() => {});
          yield modal.present();
        }
      });

      return function (_x6) {
        return _ref9.apply(this, arguments);
      };
    }();

    this.handleVerifyCoordinatesErrorResponse = error => {
      this.logService.logError('http::entranceHandleVerifyCoordinatesErrorResponse', '', error);
      this.loadingService.hide();
      const notification = {
        title: this.translateConfigService.translate('PG_ENTRANCE_TOAST_ERROR_CHECKING_LOCATION_TITLE'),
        message: this.translateConfigService.translate('PG_ENTRANCE_TOAST_ERROR_CHECKING_LOCATION_MESSAGE'),
        type: 'error',
        timeout: 5000
      };
      this.notificatorService.notify(notification);
    };

    this.selectProfileModalVOOnBackCreateEventCallback = () => {};

    this.shouldShowAddEventButton = () => this.context !== 'VIEWING_TO_CREATE_FROM';

    this.waitingForParking = event => {
      const waitingForParking = event?.driver?.status === 'WAITING_FOR_PARKING';
      console.log('waitingForParking event?.driver?.status', event?.driver?.status);
      console.log('waitingForParking id', event?.id);
      console.log('waitingForParking  ', waitingForParking);
      return waitingForParking;
    };

    this.occupyingParking = event => {
      const occupyingParking = event?.driver?.driver && !event?.driver?.onFoot && event?.driver?.leftParking === false && (event?.driver?.status === 'QRCODE_PRINTED' || event?.driver?.status === 'MULTICHECKIN');
      console.log('occupyingParking event?.driver?.status', event?.driver?.status);
      console.log('occupyingParking  ', occupyingParking);
      console.log('occupyingParking id', event?.id);
      return occupyingParking;
    }; // Ordenar os eventos com base no status do motorista


    this.eventsSortedByStatus = events => {
      return events.sort((a, b) => {
        const aStatus = a.driver ? a.driver.status === 'WAITING_FOR_PARKING' ? 1 : 0 : 0;
        const bStatus = b.driver ? b.driver.status === 'WAITING_FOR_PARKING' ? 1 : 0 : 0;
        return bStatus - aStatus; // Move os eventos relevantes para o topo
      });
    };

    this.hasModules = (modules, targetModule) => {
      return modules.flat().includes(targetModule);
    };

    this.sessionAddFlowService.clearSessionId();
    this.activatedRoute.queryParams.subscribe(params => {
      if (this.router.getCurrentNavigation().extras.state) {
        this.context = this.router.getCurrentNavigation().extras.state.context;

        if (this.context === 'VIEWING_TO_CREATE_FROM') {
          this.enterExitIonTabsManagerService.hide();
        } else {
          this.enterExitIonTabsManagerService.show();
        }
      }
    });
  }

  ngOnInit() {
    console.log('Ioninit');
  }

  ionViewWillEnter() {
    this.resetEventsPage();
    this.getEvents(this.page, false);
    this.getVoProfiles();
    this.resumeCreateEvent();
  }

  ionViewWillLeave() {
    this.resetEventsPage();
  }

  callInfiniteScroll(event) {
    setTimeout(() => {
      event.target.complete();
      this.page += 1;
      this.getEvents(this.page, event);
    }, 500);
  }

  getEvents(page, infiniteScroll) {
    this.loaded = false;

    if (!infiniteScroll) {
      this.loadingService.show(this.translateConfigService.translate('PG_ENTRANCE_LOADING_EVENTS'), 'loading-events'); // this.events = [];
    }

    const filter = {
      // 'eventStartAt.greaterOrEqualThan': this.getStartAtFilterValue(),
      // 'eventEndAt.lessOrEqualThan': this.getEndAtFilterValue(),
      'happensOn.equals': this.getStartAtFilterValue(),
      size: this.numberRegistersPagination,
      page,
      'eventStatus.in': 'OPENED',
      'eventBehavior.in': 'ENTRY',
      sort: ['startAt,asc', 'endAt,asc', 'status,asc']
    };
    this.logisticCompanyService.getEventsV2(filter).then(res => {
      if (res.entry.events.length > 0) {
        this.processGetEventsSuccessResponse(res.entry.events);
        this.infiniteScroll.complete();
      } else {
        this.infiniteScroll.disabled = true;
        this.loadingService.hide(0, 'loading-events');
      }
    }).catch(error => {
      this.infiniteScroll.disabled = true;
      this.processGetEventsErrorResponse(error);
    }).finally(() => {
      this.loadingService.hide(0, 'loading-events');
      this.loaded = true;
    });
  }

  getStartAtFilterValue(date = null) {
    date = date ? new Date(date) : new Date();
    date.setHours(0, 0, 0, 0);
    return date.toISOString();
  }

  getEndAtFilterValue(date = null) {
    date = date ? new Date(date) : new Date();
    date.setHours(23, 59, 59, 999);
    return date.toISOString();
  }

  processGetEventsSuccessResponse(response) {
    // CÓDIGO COMENTADO POR POSSÍVEL REDUNDÂNCIA, JÁ QUE A REQUISIÇÃO JÁ QUE NA REQUISIÇÃO O FILTRO É APLICADO AO CAMPO STATUS
    // let events = response && response.entry && response.entry.events ? response.entry.events : [];
    // .filter(event => event.status !== 'WAITING_FOR_EVENT_APPROVE');
    this.eventsSortedByStatus(response);

    for (let i = 0; i < response.length; i++) {
      this.events.push(response[i]);
    } // this.ngZoneService.run(() => {
    // this.events.push(events);
    // });


    this.loadingService.hide(0, 'loading-events');
    this.enrichPhotos(response);
  }

  enrichPhotos(events) {
    const toEnrich = events.filter(event => !!event.driver).map(event => event.driver);

    if (toEnrich.length) {
      this.userPhotoService.enrichUsersWithPhotos(toEnrich);
    }
  }

  processGetEventsErrorResponse(error) {
    this.logService.logError('http::processGetEventsErrorResponse', '', error);
    this.loadingService.hide(0, 'loading-events');
    const notification = {
      title: this.translateConfigService.translate('TOAST_TITLE_ERROR'),
      message: this.translateConfigService.translate('PG_ENTRANCE_TOAST_EVENTS_ERROR_MESSAGE'),
      type: 'error'
    };
    this.notificatorService.notify(notification);
  }

  onGoToParking() {
    var _this2 = this;

    const parking = true; // if (parking) {
    //   return this.goToParkingManagement();
    // }

    this.sessionAddFlowService.clearSessionId();
    const eventInprogress = this.resumeCreateEvent();

    if (eventInprogress) {
      return;
    }

    this.loadingService.show(this.translateConfigService.translate('LOADING_CHECKING_DATA'), 'on-create-event');
    this.getVoProfiles().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.loadingService.hide(0, 'on-create-event');

      const expeditionProfiles = _this2.getExpeditionProfiles();

      const isCreationInterrupted = _this2.resumeCreateEventInterruptedService.getResumeCreationInterrupted();

      if (isCreationInterrupted.logistic.eventType) {
        return;
      }

      if (expeditionProfiles && expeditionProfiles.length > 1) {
        const modal = yield _this2.modalController.create({
          component: _shared_components__WEBPACK_IMPORTED_MODULE_2__.SelectProfileModalComponent,
          componentProps: {
            profiles: _this2.getExpeditionProfiles()
          }
        });
        modal.onDidDismiss().then(response => {
          if (response.data) {
            _this2.selectProfileModalVOOnProfileSelectCreateEventCallback(response.data, parking);
          } else {
            _this2.selectProfileModalVOOnBackCreateEventCallback();
          }
        });
        yield modal.present();
      } else if (expeditionProfiles[0]) {
        _this2.selectProfileModalVOOnProfileSelectCreateEventCallback(expeditionProfiles[0], parking);
      } else {
        _this2.loadingService.hide(0, 'on-create-event');

        const notification = {
          title: _this2.translateConfigService.translate('PG_ENTRANCE_TOAST_NO_ACCESS_PROFILE_TITLE'),
          message: _this2.translateConfigService.translate('PG_ENTRANCE_TOAST_NO_ACCESS_PROFILE_MESSAGE'),
          type: 'error',
          timeout: 5000
        };

        _this2.notificatorService.notify(notification);
      }
    })).catch(error => {
      this.loadingService.hide(0, 'on-create-event');
      const notification = {
        title: this.translateConfigService.translate('PG_ENTRANCE_TOAST_ERROR_REQUEST_TITLE'),
        message: this.translateConfigService.translate('PG_ENTRANCE_TOAST_MESSAGE_ERROR_REQUEST'),
        type: 'error',
        timeout: 5000
      };
      this.notificatorService.notify(notification);
    });
  }

  resetEventsPage() {
    this.page = 0;
    this.events = [];
  }

  companyName(event) {
    const profile = this.profileManagerService.getProfileLogistic();
    const companyName = profile && profile.company && profile.company.name ? profile.company.name : '';
    const companyNameEvent = event && event.company && event.company.name ? event.company.name : '';
    const nameCompany = companyNameEvent ? companyNameEvent : companyName;
    return nameCompany;
  }

  geoCoordinates(logError, tagLoading) {
    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.loadingService.hide(0, tagLoading);

      try {
        const currentPosition = yield _this3.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) {
        _this3.loadingService.hide(0, tagLoading);

        _this3.logService.logError(logError, '', error);

        let message = '';
        let title = '';

        if (error?.code === 1) {
          title = _this3.translateConfigService.translate('TOAST_ACCESS_DENIED_GEOLOCATION_TITLE');
          message = _this3.translateConfigService.translate('TOAST_ACCESS_DENIED_GEOLOCATION_MESSAGE');
        } else if (error?.coarseLocation === 'denied' || error?.location === 'denied') {
          title = _this3.translateConfigService.translate('TOAST_LOCATION_PERMISSION_DENIED_TITLE');
          message = _this3.translateConfigService.translate('TOAST_LOCATION_PERMISSION_DENIED_MESSAGE');
        } else {
          title = _this3.translateConfigService.translate('PG_ENTRANCE_TOAST_GETTING_LOCATION_TITLE');
          message = _this3.translateConfigService.translate('PG_ENTRANCE_TOAST_GETTING_LOCATION_MESSAGE');
        }

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

        _this3.notificatorService.notify(notification);

        throw error;
      }
    })();
  }

  resumeCreateEvent(eventType) {
    let eventInprogress = false;
    const {
      logistic,
      vo,
      action,
      event
    } = this.resumeCreateEventInterruptedService.getResumeCreationInterrupted();
    const props = {
      target: 'LOGISTIC',
      eventType: 'ENTRY',
      canCreateEvent: true,
      action,
      event: {
        id: event?.id ? event.id : '',
        instanceName: event?.instanceName ? event.instanceName : ''
      }
    };
    this.resumeCreateEventInterruptedService.showModalResumeCreateEventInterrupted(props);

    if (logistic.eventType !== '' || logistic.eventType.length > 1 || vo) {
      eventInprogress = true;
    }

    return eventInprogress;
  }

  getCompanyInstanceRelatedProfile(companyInstance) {
    let token = null;
    return new Promise((resolve, reject) => {
      const processGetCompanyInstanceRelatedLoginSuccessResponse = response => {
        const profiles = response;
        const foundProfile = this.getProfile(profiles, companyInstance);

        if (foundProfile) {
          this.profileManagerService.setProfile(foundProfile);
          resolve(foundProfile);
        } else {
          reject('Does not have desired profile');
        }
      };

      const processGetCompanyInstanceRelatedLoginErrorResponse = error => {
        this.logService.logError('http::processGetCompanyInstanceRelatedLoginErrorResponse', '', error);
        reject(error);
      };

      this.authService.getToken().then(response => {
        token = response;
        this.apiService.getUserProfiles('VO', token).subscribe(processGetCompanyInstanceRelatedLoginSuccessResponse, processGetCompanyInstanceRelatedLoginErrorResponse);
      });
    });
  }

  getProfile(profiles, companyInstance) {
    return profiles.find(p => p.company.instanceName === companyInstance && p.login !== null);
  }

  handleErrorGetCompanyInstanceRelated(error, navigationExtras) {
    this.logService.logError('http::processGetCompanyInstanceRelatedLoginErrorResponse', '', error);
    const profile = this.profileManagerService.getProfile();

    if (profile) {
      this.navigationService.forward(['/view-logistic-event/'], navigationExtras);
    } else {
      return;
    }
  }

  mensageShared(nameEvent, companyName, startAt, location, url, socialShare) {
    const text1 = this.translateConfigService.translate('SHARE_TEXT_1'); // Olá, estou te convidando para o evento

    const text2 = this.translateConfigService.translate('SHARE_TEXT_2'); // na empresa

    const text3 = this.translateConfigService.translate('SHARE_TEXT_3'); // agendado para

    const text4 = this.translateConfigService.translate('SHARE_TEXT_4'); // no

    const text5 = this.translateConfigService.translate('SHARE_TEXT_5'); // Chegando no local acesse o link

    const text6 = this.translateConfigService.translate('SHARE_TEXT_6_LG'); // para realizar seu checkin e entrar sem filas e sem passar pela recepção.

    const text8 = this.translateConfigService.translate('SHARE_TEXT_8'); // Para ter acesso ao link, salve o meu contato.

    const textinvite = `${text1} "${nameEvent}" ${text2} ${companyName}`;
    const textinviteStartAt = `${text3} ${startAt}`;
    const textinviteLocation = `${text4} ${location}`;
    const textNotes = `${text5} ${url} ${text6}`;
    let textFull = '';

    if (socialShare === 'CALENDAR') {
      textFull = `${textinvite}, ${textNotes}\n\n${text8}`;
      return textFull;
    } else {
      textFull = `${textinvite}, ${textinviteStartAt}, ${textinviteLocation}.\n\n${textNotes}\n\n${text8}`;
      return textFull;
    }
  }

  checkSoftLock(companyInstance, accessToken) {
    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 {
        const {
          authorized
        } = yield _this4.apiService.checkSoftLock(companyInstance, null, null, accessToken).toPromise();
        return {
          authorized
        };
      } catch (error) {
        // geo/verify-coordinates
        _this4.logService.logError('http:api:geo:verify-coodinates', 'CheckSoftLock HttpErro', error);

        throw error;
      }
    })();
  }

  cantCreateEvent() {
    var _this5 = this;

    return (0,_Volumes_case_workspace_work_APPS_KA_APP_WORK_NOW_KA_PASS_V2_2_6_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* () {
      const modal = yield _this5.modalController.create({
        component: _shared_components_modais__WEBPACK_IMPORTED_MODULE_3__.CantCreateEventModalComponent,
        componentProps: {},
        cssClass: 'can-create-modal'
      });
      yield modal.present();
    })();
  }

  getModulesByCompanyID() {
    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 profile = _this6.profileManagerService.getProfileLogistic();

      if (!profile && profile?.login) {
        return;
      }

      const companyInstance = profile?.company?.instanceName;
      const companyID = profile?.company?.id;

      try {
        const access_token = yield _this6.getToken();

        _this6.apiService.parkingGetSettingsModulesByCompanyID(companyInstance, access_token, companyID).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_14__.finalize)(() => {
          _this6.isLoadingSettingModulesFinished = true;
        })).subscribe(dataSettings => {
          const modules = dataSettings.site.modules; // this.hasModules(modules, 'employee_parking_control') ||

          _this6.isEnabledParking = _this6.hasModules(modules, 'visitor_parking_control');
        });
      } catch (error) {
        console.log('error');
      }
    })();
  }

  getToken() {
    var _this7 = this;

    const profile = this.profileManagerService.getProfileLogistic();

    if (!profile && profile?.login) {}

    return this.authService.getToken().then(token => this.portalLoginManagerService.getAccessToken(profile.login, profile.portal, token)).then( /*#__PURE__*/function () {
      var _ref1 = (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) {
        _this7.accessToken = response.access_token;
        return response.access_token;
      });

      return function (_x7) {
        return _ref1.apply(this, arguments);
      };
    }());
  }

}

EntrancePage.ɵfac = function EntrancePage_Factory(t) {
  return new (t || EntrancePage)(_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_5__.LogisticCompanyService), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_5__.NavigationService), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_5__.MomentService), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_5__.LoadingService), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_5__.NotificatorService), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_5__.ProfileManagerService), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdirectiveInject"](_angular_router__WEBPACK_IMPORTED_MODULE_6__.Router), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdirectiveInject"](_awesome_cordova_plugins_social_sharing_ngx__WEBPACK_IMPORTED_MODULE_7__.SocialSharing), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdirectiveInject"](_awesome_cordova_plugins_calendar_ngx__WEBPACK_IMPORTED_MODULE_8__.Calendar), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdirectiveInject"](_ionic_angular__WEBPACK_IMPORTED_MODULE_15__.ModalController), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_5__.LogService), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_5__.AuthService), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_5__.ApiService), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdirectiveInject"](_angular_router__WEBPACK_IMPORTED_MODULE_6__.ActivatedRoute), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_5__.EnterExitIonTabsManagerService), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_5__.GeolocationService), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_5__.PortalLoginManagerService), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdirectiveInject"](_awesome_cordova_plugins_android_permissions_ngx__WEBPACK_IMPORTED_MODULE_9__.AndroidPermissions), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_5__.ModalPermissionsService), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_5__.PermissionsAndroidService), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdirectiveInject"](_ionic_angular__WEBPACK_IMPORTED_MODULE_15__.Platform), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_5__.ResumeCreateEventInterruptedService), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_5__.TranslateConfigService), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdirectiveInject"](_shared_services_state_service__WEBPACK_IMPORTED_MODULE_10__.StateService), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdirectiveInject"](_shared_services_sessionaddflow_service__WEBPACK_IMPORTED_MODULE_11__.SessionaddflowService), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_5__.UserPhotoService));
};

EntrancePage.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdefineComponent"]({
  type: EntrancePage,
  selectors: [["app-entrance"]],
  viewQuery: function EntrancePage_Query(rf, ctx) {
    if (rf & 1) {
      _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵviewQuery"](_ionic_angular__WEBPACK_IMPORTED_MODULE_15__.IonInfiniteScroll, 5);
    }

    if (rf & 2) {
      let _t;

      _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵloadQuery"]()) && (ctx.infiniteScroll = _t.first);
    }
  },
  decls: 12,
  vars: 8,
  consts: [[1, "entrance-page"], [1, "page-title"], [1, "sub-title"], [1, "events"], ["class", "empty", 4, "ngIf"], [3, "className", "ngClass", 4, "ngFor", "ngForOf"], [2, "z-index", "100000", 3, "ionInfinite"], ["loadingSpinner", "crescent"], [4, "ngIf"], [1, "empty"], [1, "text"], [3, "className", "ngClass"], [1, "top", 3, "click"], [1, "title"], [1, "content"], [1, "company"], [1, "date"], [1, "middle", 3, "click"], [1, "row"], [1, "field"], [1, "bottom"], [1, "actions"], [1, "create-exit-holder", 3, "click"], [1, "calendar-holder", 3, "click"], ["slot", "start", "name", "calendar", "mode", "ios"], [1, "share-holder", 3, "click"], ["slot", "start", "name", "share", "mode", "ios"], [1, "driver-card"], [3, "firstName", "lastName", "thumbnailImage", "size"], [1, "driver-info"], [1, "driver-name"], [1, "driver-meta"], [1, "driver-role-label"], ["class", "parking-badge waiting", 4, "ngIf"], ["class", "parking-badge occupying", 4, "ngIf"], [1, "parking-badge", "waiting"], [1, "parking-badge", "occupying"], [1, "label"], [1, "value"], ["vertical", "top", "horizontal", "start", "slot", "fixed", "class", "fab-e-add", 4, "ngIf"], ["class", "fab-e-parking", "vertical", "top", "horizontal", "end", "slot", "fixed", "style", "z-index: 10000", 3, "click", 4, "ngIf"], ["vertical", "top", "horizontal", "start", "slot", "fixed", 1, "fab-e-add"], [3, "disabled", "click"], ["name", "add"], ["vertical", "top", "horizontal", "end", "slot", "fixed", 1, "fab-e-parking", 2, "z-index", "10000", 3, "click"], [1, "e-parking"]],
  template: function EntrancePage_Template(rf, ctx) {
    if (rf & 1) {
      _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](0, "ion-content", 0)(1, "div", 1)(2, "div", 2);
      _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](3);
      _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵpipe"](4, "translate");
      _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()();
      _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](5, "div", 3);
      _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtemplate"](6, EntrancePage_div_6_Template, 4, 3, "div", 4);
      _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtemplate"](7, EntrancePage_div_7_Template, 30, 16, "div", 5);
      _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](8, "ion-infinite-scroll", 6);
      _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵlistener"]("ionInfinite", function EntrancePage_Template_ion_infinite_scroll_ionInfinite_8_listener($event) {
        return ctx.callInfiniteScroll($event);
      });
      _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelement"](9, "ion-infinite-scroll-content", 7);
      _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()();
      _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtemplate"](10, EntrancePage_ng_container_10_Template, 3, 2, "ng-container", 8);
      _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵpipe"](11, "async");
      _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
    }

    if (rf & 2) {
      _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](3);
      _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵpipeBind1"](4, 4, "PG_ENTRANCE_TEXT_TITLE"));
      _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](3);
      _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngIf", ctx.loaded && ctx.events && ctx.events.length === 0);
      _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](1);
      _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngForOf", ctx.events);
      _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](3);
      _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngIf", _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵpipeBind1"](11, 6, ctx.stateService.getState()));
    }
  },
  dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_12__.NgClass, _angular_common__WEBPACK_IMPORTED_MODULE_12__.NgForOf, _angular_common__WEBPACK_IMPORTED_MODULE_12__.NgIf, _ionic_angular__WEBPACK_IMPORTED_MODULE_15__.IonContent, _ionic_angular__WEBPACK_IMPORTED_MODULE_15__.IonFab, _ionic_angular__WEBPACK_IMPORTED_MODULE_15__.IonFabButton, _ionic_angular__WEBPACK_IMPORTED_MODULE_15__.IonIcon, _ionic_angular__WEBPACK_IMPORTED_MODULE_15__.IonInfiniteScroll, _ionic_angular__WEBPACK_IMPORTED_MODULE_15__.IonInfiniteScrollContent, _shared_components_avatar_avatar_component__WEBPACK_IMPORTED_MODULE_13__.AvatarComponent, _angular_common__WEBPACK_IMPORTED_MODULE_12__.AsyncPipe, _ngx_translate_core__WEBPACK_IMPORTED_MODULE_16__.TranslatePipe],
  styles: ["ion-content[_ngcontent-%COMP%] {\n  --background: #f1f1f1;\n}\n\n.page-title[_ngcontent-%COMP%] {\n  margin-top: 30px;\n  margin-bottom: 2em;\n}\n\n.page-title[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%] {\n  font-size: initial !important;\n  font-weight: bold;\n  text-align: center;\n}\n\n.page-title[_ngcontent-%COMP%]   .sub-title[_ngcontent-%COMP%] {\n  text-align: center;\n  color: #656768;\n  font-size: 0.9em;\n  margin-top: 4px;\n}\n\n.empty[_ngcontent-%COMP%], .not-empty[_ngcontent-%COMP%] {\n  display: flex;\n  justify-content: center;\n  align-items: center;\n  padding: 3em;\n  color: #656768;\n  font-size: 0.9em;\n}\n\n.empty[_ngcontent-%COMP%]   .text[_ngcontent-%COMP%], .not-empty[_ngcontent-%COMP%]   .text[_ngcontent-%COMP%] {\n  text-align: center;\n}\n\n.empty[_ngcontent-%COMP%]   .text[_ngcontent-%COMP%]   .pull-to-reload-message[_ngcontent-%COMP%], .not-empty[_ngcontent-%COMP%]   .text[_ngcontent-%COMP%]   .pull-to-reload-message[_ngcontent-%COMP%] {\n  display: inline-flex;\n  justify-content: center;\n  align-items: center;\n  margin-top: 1em;\n}\n\n.empty[_ngcontent-%COMP%]   .text[_ngcontent-%COMP%]   .pull-to-reload-message[_ngcontent-%COMP%]   span[_ngcontent-%COMP%], .not-empty[_ngcontent-%COMP%]   .text[_ngcontent-%COMP%]   .pull-to-reload-message[_ngcontent-%COMP%]   span[_ngcontent-%COMP%] {\n  display: inline-flex;\n  justify-content: center;\n  align-items: center;\n  border: 1px solid #eee;\n  padding: 0.25em 0.75em;\n  border-radius: 32px;\n  margin-right: 8px;\n}\n\n.empty[_ngcontent-%COMP%]   .text[_ngcontent-%COMP%]   .pull-to-reload-message[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]   ion-icon[_ngcontent-%COMP%], .not-empty[_ngcontent-%COMP%]   .text[_ngcontent-%COMP%]   .pull-to-reload-message[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]   ion-icon[_ngcontent-%COMP%] {\n  margin-left: 4px;\n  color: #0ec254;\n  margin-top: 2px;\n}\n\n.not-empty[_ngcontent-%COMP%] {\n  display: flex;\n  justify-content: center;\n  align-items: center;\n  padding: 1em;\n  color: #656768;\n  font-size: 0.9em;\n  margin-bottom: 2em;\n}\n\n.not-empty[_ngcontent-%COMP%]   .text[_ngcontent-%COMP%] {\n  text-align: center;\n}\n\n.not-empty[_ngcontent-%COMP%]   .text[_ngcontent-%COMP%]   .pull-to-reload-message[_ngcontent-%COMP%] {\n  display: inline-flex;\n  justify-content: center;\n  align-items: center;\n  margin-top: 0;\n}\n\n.not-empty[_ngcontent-%COMP%]   .text[_ngcontent-%COMP%]   .pull-to-reload-message[_ngcontent-%COMP%]   span[_ngcontent-%COMP%] {\n  display: inline-flex;\n  justify-content: center;\n  align-items: center;\n  border: 1px solid #eee;\n  padding: 0.25em 0.75em;\n  border-radius: 32px;\n  margin-right: 8px;\n}\n\n.not-empty[_ngcontent-%COMP%]   .text[_ngcontent-%COMP%]   .pull-to-reload-message[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]   ion-icon[_ngcontent-%COMP%] {\n  margin-left: 4px;\n  color: #0ec254;\n  margin-top: 2px;\n}\n\n.event[_ngcontent-%COMP%] {\n  border: 1px solid #eee;\n  box-shadow: 2px 2px 8px rgba(67, 60, 98, 0.1);\n  background-color: #fff;\n  border-radius: 8px;\n  width: 90%;\n  margin: 1.2em auto;\n}\n\n.event.waiting[_ngcontent-%COMP%] {\n  border-top: 5px solid #5abcea;\n}\n\n.event.occupying[_ngcontent-%COMP%] {\n  border-top: 5px solid #61bc03;\n}\n\n.event[_ngcontent-%COMP%]   .top[_ngcontent-%COMP%] {\n  display: flex;\n  padding: 16px;\n  border-bottom: 1px solid #eee;\n  flex-direction: column;\n}\n\n.event[_ngcontent-%COMP%]   .top[_ngcontent-%COMP%]   .date[_ngcontent-%COMP%] {\n  display: flex;\n  justify-content: flex-start;\n  font-size: 0.9em;\n  color: #656768;\n  margin-top: 8px;\n}\n\n.event[_ngcontent-%COMP%]   .top[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%] {\n  font-size: initial !important;\n}\n\n.event[_ngcontent-%COMP%]   .top[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%] {\n  font-weight: bold;\n}\n\n.event[_ngcontent-%COMP%]   .top[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]   .company[_ngcontent-%COMP%] {\n  font-size: 0.9em !important;\n}\n\n.event[_ngcontent-%COMP%]   .middle[_ngcontent-%COMP%] {\n  display: flex;\n  padding: 16px;\n  border-bottom: 1px solid #eee;\n  flex-direction: column;\n  gap: 1em;\n}\n\n.event[_ngcontent-%COMP%]   .middle[_ngcontent-%COMP%]   .row[_ngcontent-%COMP%] {\n  display: flex;\n  flex-direction: row;\n  flex-grow: 1;\n  margin-bottom: 8px;\n}\n\n.event[_ngcontent-%COMP%]   .middle[_ngcontent-%COMP%]   .row[_ngcontent-%COMP%]   .field[_ngcontent-%COMP%] {\n  display: flex;\n  flex-direction: column;\n  width: 50%;\n}\n\n.event[_ngcontent-%COMP%]   .middle[_ngcontent-%COMP%]   .row[_ngcontent-%COMP%]   .field[_ngcontent-%COMP%]   .label[_ngcontent-%COMP%] {\n  font-weight: bold;\n}\n\n.event[_ngcontent-%COMP%]   .middle[_ngcontent-%COMP%]   .driver-card[_ngcontent-%COMP%] {\n  display: flex;\n  align-items: center;\n  gap: 10px;\n  margin-bottom: 8px;\n}\n\n.event[_ngcontent-%COMP%]   .middle[_ngcontent-%COMP%]   .driver-card[_ngcontent-%COMP%]   app-avatar[_ngcontent-%COMP%] {\n  flex-shrink: 0;\n}\n\n.event[_ngcontent-%COMP%]   .middle[_ngcontent-%COMP%]   .driver-card[_ngcontent-%COMP%]   .driver-info[_ngcontent-%COMP%] {\n  flex: 1;\n  min-width: 0;\n}\n\n.event[_ngcontent-%COMP%]   .middle[_ngcontent-%COMP%]   .driver-card[_ngcontent-%COMP%]   .driver-info[_ngcontent-%COMP%]   .driver-name[_ngcontent-%COMP%] {\n  font-size: 0.9em;\n  font-weight: bold;\n  color: #333;\n}\n\n.event[_ngcontent-%COMP%]   .middle[_ngcontent-%COMP%]   .driver-card[_ngcontent-%COMP%]   .driver-info[_ngcontent-%COMP%]   .driver-meta[_ngcontent-%COMP%] {\n  display: flex;\n  align-items: center;\n  flex-wrap: wrap;\n  margin-top: 0;\n  justify-content: space-between;\n  position: relative;\n}\n\n.event[_ngcontent-%COMP%]   .middle[_ngcontent-%COMP%]   .driver-card[_ngcontent-%COMP%]   .driver-info[_ngcontent-%COMP%]   .driver-meta[_ngcontent-%COMP%]   .driver-role-label[_ngcontent-%COMP%] {\n  font-size: 0.8em;\n  color: #aaa;\n}\n\n.event[_ngcontent-%COMP%]   .middle[_ngcontent-%COMP%]   .driver-card[_ngcontent-%COMP%]   .driver-info[_ngcontent-%COMP%]   .driver-meta[_ngcontent-%COMP%]   .parking-badge[_ngcontent-%COMP%] {\n  font-size: 0.75em;\n  font-weight: bold;\n  color: #fff;\n  padding: 1px 8px;\n  border-radius: 32px;\n  margin-top: 5px;\n  position: absolute;\n  right: 0;\n}\n\n.event[_ngcontent-%COMP%]   .middle[_ngcontent-%COMP%]   .driver-card[_ngcontent-%COMP%]   .driver-info[_ngcontent-%COMP%]   .driver-meta[_ngcontent-%COMP%]   .parking-badge.waiting[_ngcontent-%COMP%] {\n  background: #5abcea;\n}\n\n.event[_ngcontent-%COMP%]   .middle[_ngcontent-%COMP%]   .driver-card[_ngcontent-%COMP%]   .driver-info[_ngcontent-%COMP%]   .driver-meta[_ngcontent-%COMP%]   .parking-badge.occupying[_ngcontent-%COMP%] {\n  background: #61bc03;\n}\n\n.event[_ngcontent-%COMP%]   .middle[_ngcontent-%COMP%]   .date[_ngcontent-%COMP%] {\n  display: flex;\n  justify-content: flex-start;\n  font-size: 0.9em;\n  color: #656768;\n  margin-top: 8px;\n}\n\n.event[_ngcontent-%COMP%]   .middle[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%] {\n  font-size: initial !important;\n}\n\n.event[_ngcontent-%COMP%]   .middle[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%] {\n  font-weight: bold;\n}\n\n.event[_ngcontent-%COMP%]   .middle[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]   .company[_ngcontent-%COMP%] {\n  font-size: 0.9em;\n}\n\n.event[_ngcontent-%COMP%]   .bottom[_ngcontent-%COMP%] {\n  display: flex;\n  padding: 16px;\n  justify-content: space-between;\n}\n\n.event[_ngcontent-%COMP%]   .bottom[_ngcontent-%COMP%]   .actions[_ngcontent-%COMP%] {\n  display: flex;\n  justify-content: center;\n  align-items: center;\n}\n\n.event[_ngcontent-%COMP%]   .bottom[_ngcontent-%COMP%]   .actions[_ngcontent-%COMP%]   .create-exit-holder[_ngcontent-%COMP%] {\n  border-radius: 38px;\n  display: flex;\n  justify-content: center;\n  align-items: center;\n  border: 2px solid #0ec254;\n  background-color: #fff;\n  color: #0ec254;\n  height: 38px;\n  padding: 0 12px;\n}\n\n.event[_ngcontent-%COMP%]   .bottom[_ngcontent-%COMP%]   .actions[_ngcontent-%COMP%]   .calendar-holder[_ngcontent-%COMP%], .event[_ngcontent-%COMP%]   .bottom[_ngcontent-%COMP%]   .actions[_ngcontent-%COMP%]   .share-holder[_ngcontent-%COMP%] {\n  height: 38px;\n  width: 38px;\n  border-radius: 38px;\n  display: flex;\n  justify-content: center;\n  align-items: center;\n  border: 2px solid #0ec254;\n  background-color: #fff;\n  color: #0ec254;\n  font-size: 24px;\n}\n\n.event[_ngcontent-%COMP%]   .bottom[_ngcontent-%COMP%]   .actions[_ngcontent-%COMP%]   .share-holder[_ngcontent-%COMP%] {\n  margin-left: 12px;\n}\n\nion-fab.fab-e-parking[_ngcontent-%COMP%] {\n  background: #fff !important;\n  width: 40px;\n  height: 40px;\n  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);\n  border-radius: 50%;\n  margin: 0.57em 0.6em;\n  display: flex;\n  justify-content: center;\n  align-items: center;\n}\n\nion-fab.fab-e-parking[_ngcontent-%COMP%]   .e-parking[_ngcontent-%COMP%] {\n  width: 40px;\n  height: 40px;\n  position: relative;\n  border: solid 3px #eb3238;\n  border-radius: 50%;\n  display: flex;\n  flex-direction: column;\n  justify-content: center;\n  align-items: center;\n  background-color: #fff;\n}\n\nion-fab.fab-e-parking[_ngcontent-%COMP%]   .e-parking[_ngcontent-%COMP%]   span[_ngcontent-%COMP%] {\n  font-weight: 800;\n  font-size: 1.6em;\n  display: flex;\n  width: 39px;\n  height: 39px;\n  align-items: center;\n  justify-content: center;\n  border-radius: 50%;\n}\n\nion-fab.fab-e-add[_ngcontent-%COMP%] {\n  -webkit-margin-start: 0.55em;\n          margin-inline-start: 0.55em;\n  z-index: 1000000;\n}\n/*# sourceMappingURL=data:application/json;base64,[encoded data, 13432 characters] */"]
});

/***/ })

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