(self["webpackChunkapp"] = self["webpackChunkapp"] || []).push([[1679],{ /***/ 1679: /*!*****************************************************!*\ !*** ./src/app/logistic-events/exit/exit.module.ts ***! \*****************************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "ExitPageModule": () => (/* binding */ ExitPageModule) /* 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 _exit_page__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./exit.page */ 69592); /* 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: _exit_page__WEBPACK_IMPORTED_MODULE_2__.ExitPage } ]; class ExitPageModule { } ExitPageModule.ɵfac = function ExitPageModule_Factory(t) { return new (t || ExitPageModule)(); }; ExitPageModule.ɵmod = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdefineNgModule"]({ type: ExitPageModule }); ExitPageModule.ɵ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"](ExitPageModule, { declarations: [_exit_page__WEBPACK_IMPORTED_MODULE_2__.ExitPage], imports: [src_app_shared_module_shared_module_module__WEBPACK_IMPORTED_MODULE_1__.SharedModuleModule, _angular_router__WEBPACK_IMPORTED_MODULE_0__.RouterModule] }); })(); /***/ }), /***/ 69592: /*!***************************************************!*\ !*** ./src/app/logistic-events/exit/exit.page.ts ***! \***************************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "ExitPage": () => (/* binding */ ExitPage) /* 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_14__ = __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 _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_15__ = __webpack_require__(/*! @ngx-translate/core */ 38699); function ExitPage_div_6_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](0, "div", 8)(1, "div", 9); _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_EXIT_TEXT_NO_EVENTS")); } } function ExitPage_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", 26); _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelement"](2, "app-avatar", 27); _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](3, "div", 28)(4, "div", 29); _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](5); _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](6, "div", 30)(7, "span", 31); _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__["ɵɵ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, 6, "PG_EXIT_TEXT_DRIVER")); } } function ExitPage_div_7_ng_container_13_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementContainerStart"](0); _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](1, "div", 32); _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", 33); _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_EXIT_TEXT_LICENSEPLATONE")); _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](3); _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtextInterpolate"](event_r3.driver.licensePlateOne); } } function ExitPage_div_7_ng_container_15_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementContainerStart"](0); _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](1, "div", 32); _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", 33); _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_EXIT_TEXT_LICENSEPLATTWO")); _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](3); _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtextInterpolate"](event_r3.driver.licensePlateTwo); } } function ExitPage_div_7_ng_container_18_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementContainerStart"](0); _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](1, "div", 32); _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", 33); _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_EXIT_TEXT_NOTES")); _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](3); _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtextInterpolate"](event_r3.notes); } } function ExitPage_div_7_Template(rf, ctx) { if (rf & 1) { const _r13 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵgetCurrentView"](); _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](0, "div", 10)(1, "div", 11); _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵlistener"]("click", function ExitPage_div_7_Template_div_click_1_listener() { const restoredCtx = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵrestoreView"](_r13); const event_r3 = restoredCtx.$implicit; const ctx_r12 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵnextContext"](); return _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵresetView"](ctx_r12.onEventClick(event_r3)); }); _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](2, "div", 12)(3, "div", 13); _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](4); _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](5, "div", 14); _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](6); _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()(); _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](7, "div", 15); _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](8); _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()(); _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](9, "div", 16); _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵlistener"]("click", function ExitPage_div_7_Template_div_click_9_listener() { const restoredCtx = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵrestoreView"](_r13); const event_r3 = restoredCtx.$implicit; const ctx_r14 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵnextContext"](); return _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵresetView"](ctx_r14.onEventClick(event_r3)); }); _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtemplate"](10, ExitPage_div_7_ng_container_10_Template, 10, 8, "ng-container", 7); _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](11, "div", 17)(12, "div", 18); _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtemplate"](13, ExitPage_div_7_ng_container_13_Template, 6, 4, "ng-container", 7); _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](14, "div", 18); _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtemplate"](15, ExitPage_div_7_ng_container_15_Template, 6, 4, "ng-container", 7); _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()(); _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](16, "div", 17)(17, "div", 18); _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtemplate"](18, ExitPage_div_7_ng_container_18_Template, 6, 4, "ng-container", 7); _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()()(); _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](19, "div", 19)(20, "div", 20)(21, "div", 21); _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵlistener"]("click", function ExitPage_div_7_Template_div_click_21_listener() { const restoredCtx = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵrestoreView"](_r13); 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.createEntry(event_r3)); }); _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](22); _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵpipe"](23, "translate"); _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()(); _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](24, "div", 20)(25, "div", 22); _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵlistener"]("click", function ExitPage_div_7_Template_div_click_25_listener() { const restoredCtx = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵrestoreView"](_r13); const event_r3 = restoredCtx.$implicit; const ctx_r16 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵnextContext"](); return _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵresetView"](ctx_r16.verifyIsAllGuestsHaveEmail(event_r3)); }); _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelement"](26, "ion-icon", 23); _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](27, "div", 24); _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵlistener"]("click", function ExitPage_div_7_Template_div_click_27_listener() { const restoredCtx = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵrestoreView"](_r13); 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.shareEvent(event_r3)); }); _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelement"](28, "ion-icon", 25); _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"); _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"](3); _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngIf", event_r3.driver && event_r3.driver.licensePlateOne); _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](2); _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngIf", 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"](23, 9, "PG_EXIT_BTN_CREATE_ENTRANCE"), " "); } } function ExitPage_ng_container_10_ion_fab_1_Template(rf, ctx) { if (rf & 1) { const _r21 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵgetCurrentView"](); _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](0, "ion-fab", 35)(1, "ion-fab-button", 36); _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵlistener"]("click", function ExitPage_ng_container_10_ion_fab_1_Template_ion_fab_button_click_1_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵrestoreView"](_r21); const ctx_r20 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵnextContext"](2); return _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵresetView"](ctx_r20.onGoToCreateEvent()); }); _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelement"](2, "ion-icon", 37); _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()(); } if (rf & 2) { const connectionsStatus_r18 = _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_r18.status === "Offline"); } } function ExitPage_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, ExitPage_ng_container_10_ion_fab_1_Template, 3, 1, "ion-fab", 34); _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()); } } class ExitPage { constructor(logisticCompanyService, inviteApiService, navigationService, momentService, loadingService, notificatorService, profileManagerService, router, socialSharing, calendar, modalController, logService, authService, apiService, // private readonly cantCreateEventService: CantCreateEventModalService, activatedRoute, enterExitIonTabsManagerService, geolocationService, portalLoginManagerService, androidPermissions, permissionsAndroidService, modalPermissionsService, platform, resumeCreateEventInterruptedService, translateConfigService, stateService, sessionAddFlowService, userPhotoService) { var _this = this; this.logisticCompanyService = logisticCompanyService; this.inviteApiService = inviteApiService; 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.permissionsAndroidService = permissionsAndroidService; this.modalPermissionsService = modalPermissionsService; 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.context = ''; this.processGetEventsErrorResponse = error => { console.log('processGetEventsErrorResponse'); console.log('error:', error); this.logService.logError('http::processGetEventsErrorResponse', '', error); this.loadingService.hide(null, 'loading-events'); const notification = { title: this.translateConfigService.translate('TOAST_TITLE_ERROR'), message: this.translateConfigService.translate('PG_EXIT_TOAST_EVENTS_ERROR_MESSAGE'), type: 'error' }; this.notificatorService.notify(notification); }; 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.navigateToQRCode = () => { this.navigationService.forward(['/home']); }; this.shareEvent = event => { const profile = this.profileManagerService.getProfileLogistic(); const eventName = event.title; const startAt = this.momentService.formatAsEventAt(event.startAt); const companyName = profile.company && profile.company.name ? profile.company.name : ''; const minutesAllowedToDoCheckInBeforeCheckInStart = event.checkinStartAt; const url = event.fullPathLocator; const location = this.getCompanyAddress(event); const message = 'Olá, estou te convidando para o evento "' + eventName + '" na empresa ' + companyName + '.\n\n' + 'Quando: ' + startAt + '\n\n' + 'Onde: ' + location + '\n\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 subject = this.translateConfigService.translate('SHARE_EVENT_SUBJECT'); const message2 = this.mensageShared(eventName, companyName, startAt, location, url, 'OTHERS'); this.socialSharing.share(message2, 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.createEntry = event => { this.loadingService.show('Carregando dados', '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 _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* (response) { yield _this.loadingService.hide(null, '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; event.useLocatorPreAuthorized = null; event.useOwnLocator = null; event.locatorPreAuthorized = null; event.locator = ''; _this.goToCreateEventName(event, 'CLONE_EXIT'); }); return function (_x) { return _ref.apply(this, arguments); }; }()).catch( /*#__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* (error) { yield _this.loadingService.hide(null, 'loading-event-data'); _this.logService.logError('http::logisticEventApiService.getEvent', '', error); const notification = { title: _this.translateConfigService.translate('TOAST_TITLE_ERROR'), message: _this.translateConfigService.translate('PG_EXIT_TOAST_EVENTS_DATA_ERROR_MESSAGE'), type: 'error' }; _this.notificatorService.notify(notification); }); return function (_x2) { return _ref2.apply(this, arguments); }; }()); }; this.verifyIsAllGuestsHaveEmail = event => { this.eventBeingShare = event; // const assistants = this.eventBeingShare?.assistants; // const isMissingEmail = assistants.find(assistant => !assistant?.email); // if (isMissingEmail) { // this.openUpdateUserEmailModal(assistants); // } else { // this.addToCalendar(this.eventBeingShare); // } this.addToCalendar(this.eventBeingShare); }; this.openUpdateUserEmailModal = /*#__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* (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 _ref3.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 profile = this.profileManagerService.getProfileLogistic(); const eventName = event.title; const startDate = new Date(event.startAt); const startAt = this.momentService.formatAsEventAt(event.startAt); const endDate = new Date(event.endAt); const companyName = profile.company && profile.company.name ? profile.company.name : ''; const minutesAllowedToDoCheckInBeforeCheckInStart = event.checkinStartAt; 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 attendees = []; if (event?.driver['email']) { attendees.push(event?.driver['email']); } event?.assistants.forEach(assistant => { if (assistant['email']) { attendees.push(assistant['email']); } }); const options = { 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); }; 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 = 'EXIT') => { const action = event ? 'edit' : 'create'; const navigationExtras = { state: { action, eventType, event } }; this.navigationService.forward(['/logistic-events/create/event-name'], 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(null, '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(null, '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(null, 'on-create-event'); const notification = { title: _this.translateConfigService.translate('PG_EXIT_TOAST_NO_ACCESS_PROFILE_TITLE'), message: _this.translateConfigService.translate('PG_EXIT_TOAST_NO_ACCESS_PROFILE_MESSAGE'), type: 'error', timeout: 5000 }; _this.notificatorService.notify(notification); } })).catch(error => { _this.loadingService.hide(null, 'on-create-event'); const notification = { title: _this.translateConfigService.translate('PG_EXIT_TOAST_ERROR_REQUEST_TITLE'), message: _this.translateConfigService.translate('PG_EXIT_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; resolve(); }; this.processGetVOUserProfilesErrorResponse = (response, reject) => { reject(); }; this.selectProfileModalVOOnProfileSelectCreateEventCallback = profile => { this.profileManagerService.setProfileLogistic(profile); this.authService.getToken().then(token => this.portalLoginManagerService.getAccessToken(profile.login, profile.portal, token)).then( /*#__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) { const accessToken = response.access_token; const companyInstance = profile.company.instanceName; const { authorized } = yield _this.checkSoftLock(companyInstance, accessToken); if (!authorized) { _this.modalPermissionsService.openModal({ permission: 'GPS' }).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* (value) { if (value) { const hasAccessCoarseLocation = _this.platform.is('cordova') ? yield _this.permissionsAndroidService.hasPermission(_this.androidPermissions.PERMISSION.ACCESS_COARSE_LOCATION) : { hasPermission: true }; const { lat, lng } = yield _this.geoCoordinates('geolocation::afterProfileSelectionLogistic', '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::afterProfileSelectionPageExitLogitist', '', 'modal-permission-rejected'); return; } }); return function (_x5) { return _ref7.apply(this, arguments); }; }()); } else { _this.handleVerifyCoordinatesSuccessResponse({ authorized }); } }); return function (_x4) { return _ref6.apply(this, arguments); }; }()); }; 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* (response) { if (response.authorized) { _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 _ref8.apply(this, arguments); }; }(); this.handleVerifyCoordinatesErrorResponse = error => { this.logService.logError('http::exitHandleVerifyCoordinatesErrorResponse', '', error); const notification = { title: this.translateConfigService.translate('PG_EXIT_TOAST_ERROR_CHECKING_LOCATION_MESSAGE'), message: this.translateConfigService.translate('PG_EXIT_TOAST_ERROR_CHECKING_LOCATION_MESSAGE'), type: 'error', timeout: 5000 }; this.notificatorService.notify(notification); }; this.selectProfileModalVOOnBackCreateEventCallback = () => {}; this.shouldShowAddEventButton = () => this.context !== 'VIEWING_TO_CREATE_FROM'; 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(); } } }); } ionViewDidEnter() { this.getVoProfiles(); this.resetEventsAndPage(); this.getEvents(this.page, false); } ionViewWillLeave() { this.resetEventsAndPage(); } 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_EXIT_LOADING_EVENTS'), 'loading-events'); } const filter = { // 'eventStartAt.greaterOrEqualThan': this.getStartAtFilterValue(), // 'eventEndAt.lessOrEqualThan': this.getEndAtFilterValue(), 'happensOn.equals': this.getStartAtFilterValue(), size: this.numberRegistersPagination, page, 'eventStatus.in': 'OPENED', 'eventBehavior.in': 'EXIT', sort: ['startAt,asc', 'endAt,asc', 'status,asc'] }; this.logisticCompanyService.getEventsV2(filter).then(res => { if (res.exit.events.length > 0) { this.processGetEventsSuccessResponse(res.exit.events); this.infiniteScroll.complete(); } else { this.infiniteScroll.disabled = true; this.loadingService.hide(null, 'loading-events'); } }).catch(error => { this.infiniteScroll.disabled = true; this.processGetEventsErrorResponse(error); }).finally(() => { this.loadingService.hide(null, '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) { for (let i = 0; i < response.length; i++) { this.events.push(response[i]); } this.loadingService.hide(null, '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); } } resetEventsAndPage() { this.page = 0; this.events = []; } geoCoordinates(logError, tagLoading) { 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 { const currentPosition = yield _this2.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) { console.log('error:', error); _this2.loadingService.hide(null, tagLoading); _this2.logService.logError(logError, '', error); let message = ''; let title = ''; if (error?.coarseLocation === 'denied' || error?.location === 'denied') { title = _this2.translateConfigService.translate('TOAST_LOCATION_PERMISSION_DENIED_TITLE'); message = _this2.translateConfigService.translate('TOAST_LOCATION_PERMISSION_DENIED_MESSAGE'); } else { title = _this2.translateConfigService.translate('PG_EXIT_TOAST_GETTING_LOCATION_TITLE'); message = _this2.translateConfigService.translate('PG_EXIT_TOAST_GETTING_LOCATION_MESSAGE'); } const notification = { title, message, type: 'error', timeout: 8000 }; _this2.notificatorService.notify(notification); return; } })(); } resumeCreateEvent(eventType) { let eventInprogress = false; const { logistic, vo, action, event } = this.resumeCreateEventInterruptedService.getResumeCreationInterrupted(); const props = { target: 'LOGISTIC', eventType: 'EXIT', 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) { console.log(logistic, vo); eventInprogress = true; } return eventInprogress; } 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; } } getCompanyInstanceRelatedProfile(companyInstance) { let token = null; return new Promise((resolve, reject) => { const processGetCompanyInstanceRelatedLoginSuccessResponse = response => { const profiles = response; console.log(profiles); 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) { console.log('http::processGetCompanyInstanceRelatedLoginErrorResponse', error); this.logService.logError('http::processGetCompanyInstanceRelatedLoginErrorResponse', '', error); const profile = this.profileManagerService.getProfile(); if (profile) { this.navigationService.forward(['/view-logistic-event/'], navigationExtras); } else { return; } } checkSoftLock(companyInstance, accessToken) { 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* () { try { const { authorized } = yield _this3.apiService.checkSoftLock(companyInstance, null, null, accessToken).toPromise(); return { authorized }; } catch (error) { // geo/verify-coordinates _this3.logService.logError('http:api:geo:verify-coodinates', 'CheckSoftLock HttpErro', error); throw error; } })(); } cantCreateEvent() { var _this4 = this; return (0,_Volumes_case_workspace_work_APPS_KA_APP_WORK_NOW_KA_PASS_V2_2_6_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* () { const modal = yield _this4.modalController.create({ component: _shared_components_modais__WEBPACK_IMPORTED_MODULE_3__.CantCreateEventModalComponent, componentProps: {}, cssClass: 'can-create-modal' }); yield modal.present(); })(); } } ExitPage.ɵfac = function ExitPage_Factory(t) { return new (t || ExitPage)(_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__.InviteApiService), _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_14__.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__.PermissionsAndroidService), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_5__.ModalPermissionsService), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdirectiveInject"](_ionic_angular__WEBPACK_IMPORTED_MODULE_14__.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)); }; ExitPage.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdefineComponent"]({ type: ExitPage, selectors: [["app-exit"]], viewQuery: function ExitPage_Query(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵviewQuery"](_ionic_angular__WEBPACK_IMPORTED_MODULE_14__.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, "page-title"], [1, "sub-title"], [1, "events"], ["class", "empty", 4, "ngIf"], [3, "className", 4, "ngFor", "ngForOf"], [2, "z-index", "100000", 3, "ionInfinite"], ["loadingSpinner", "crescent"], [4, "ngIf"], [1, "empty"], [1, "text"], [3, "className"], [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-entry-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"], [1, "label"], [1, "value"], ["vertical", "top", "horizontal", "end", "slot", "fixed", 4, "ngIf"], ["vertical", "top", "horizontal", "end", "slot", "fixed"], [3, "disabled", "click"], ["name", "add"]], template: function ExitPage_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](0, "ion-content")(1, "div", 0)(2, "div", 1); _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", 2); _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtemplate"](6, ExitPage_div_6_Template, 4, 3, "div", 3); _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtemplate"](7, ExitPage_div_7_Template, 29, 11, "div", 4); _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](8, "ion-infinite-scroll", 5); _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵlistener"]("ionInfinite", function ExitPage_Template_ion_infinite_scroll_ionInfinite_8_listener($event) { return ctx.callInfiniteScroll($event); }); _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelement"](9, "ion-infinite-scroll-content", 6); _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()(); _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtemplate"](10, ExitPage_ng_container_10_Template, 2, 1, "ng-container", 7); _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_EXIT_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__.NgForOf, _angular_common__WEBPACK_IMPORTED_MODULE_12__.NgIf, _ionic_angular__WEBPACK_IMPORTED_MODULE_14__.IonContent, _ionic_angular__WEBPACK_IMPORTED_MODULE_14__.IonFab, _ionic_angular__WEBPACK_IMPORTED_MODULE_14__.IonFabButton, _ionic_angular__WEBPACK_IMPORTED_MODULE_14__.IonIcon, _ionic_angular__WEBPACK_IMPORTED_MODULE_14__.IonInfiniteScroll, _ionic_angular__WEBPACK_IMPORTED_MODULE_14__.IonInfiniteScrollContent, _shared_components_avatar_avatar_component__WEBPACK_IMPORTED_MODULE_13__.AvatarComponent, _angular_common__WEBPACK_IMPORTED_MODULE_12__.AsyncPipe, _ngx_translate_core__WEBPACK_IMPORTED_MODULE_15__.TranslatePipe], styles: ["ion-content[_ngcontent-%COMP%] {\n --background: #f1f1f1;\n}\n\n.page-title[_ngcontent-%COMP%] {\n margin-top: 30px;\n margin-bottom: 26px;\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: 12px auto;\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 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;\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}\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 gap: 6px;\n margin-top: 2px;\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%] .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-entry-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/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImV4aXQucGFnZS5zY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0VBQ0UscUJBQUE7QUFDRjs7QUFDQTtFQUNFLGdCQUFBO0VBQ0EsbUJBQUE7QUFFRjs7QUFBRTtFQUNFLDZCQUFBO0VBQ0EsaUJBQUE7RUFDQSxrQkFBQTtBQUVKOztBQUNFO0VBQ0Usa0JBQUE7RUFDQSxjQUFBO0VBQ0EsZ0JBQUE7RUFDQSxlQUFBO0FBQ0o7O0FBR0E7O0VBRUUsYUFBQTtFQUNBLHVCQUFBO0VBQ0EsbUJBQUE7RUFDQSxZQUFBO0VBQ0EsY0FBQTtFQUNBLGdCQUFBO0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hbGlnbi1pdGVtczogY2VudGVyO1xuICAgICAgICBib3JkZXI6IDFweCBzb2xpZCAjZWVlO1xuICAgICAgICBwYWRkaW5nOiAwLjI1ZW0gMC43NWVtO1xuICAgICAgICBib3JkZXItcmFkaXVzOiAzMnB4O1xuICAgICAgICBtYXJnaW4tcmlnaHQ6IDhweDtcblxuICAgICAgICBpb24taWNvbiB7XG4gICAgICAgICAgbWFyZ2luLWxlZnQ6IDRweDtcbiAgICAgICAgICBjb2xvcjogIzBlYzI1NDtcbiAgICAgICAgICBtYXJnaW4tdG9wOiAycHg7XG4gICAgICAgIH1cbiAgICAgIH1cbiAgICB9XG4gIH1cbn1cblxuLmV2ZW50IHtcbiAgYm9yZGVyOiAxcHggc29saWQgI2VlZTtcbiAgYm94LXNoYWRvdzogMnB4IDJweCA4cHggcmdiYSg2NywgNjAsIDk4LCAwLjEpO1xuICBiYWNrZ3JvdW5kLWNvbG9yOiAjZmZmO1xuICBib3JkZXItcmFkaXVzOiA4cHg7XG4gIHdpZHRoOiA5MCU7XG4gIG1hcmdpbjogMTJweCBhdXRvO1xuXG4gIC50b3Age1xuICAgIGRpc3BsYXk6IGZsZXg7XG4gICAgcGFkZGluZzogMTZweDtcbiAgICBib3JkZXItYm90dG9tOiAxcHggc29saWQgI2VlZTtcbiAgICBmbGV4LWRpcmVjdGlvbjogY29sdW1uO1xuXG4gICAgLmRhdGUge1xuICAgICAgZGlzcGxheTogZmxleDtcbiAgICAgIGp1c3RpZnktY29udGVudDogZmxleC1zdGFydDtcbiAgICAgIGZvbnQtc2l6ZTogMC45ZW07XG4gICAgICBjb2xvcjogIzY1Njc2ODtcbiAgICAgIG1hcmdpbi10b3A6IDhweDtcbiAgICB9XG5cbiAgICAudGl0bGUge1xuICAgICAgZm9udC1zaXplOiBpbml0aWFsICFpbXBvcnRhbnQ7XG4gICAgICBmb250LXNpemU6IGluaXRpYWwgIWltcG9ydGFudDtcbiAgICAgIC5jb250ZW50IHtcbiAgICAgICAgZm9udC13ZWlnaHQ6IGJvbGQ7XG4gICAgICB9XG5cbiAgICAgIC5jb21wYW55IHtcbiAgICAgICAgZm9udC1zaXplOiAwLjllbTtcbiAgICAgIH1cbiAgICB9XG4gIH1cblxuICAubWlkZGxlIHtcbiAgICBkaXNwbGF5OiBmbGV4O1xuICAgIHBhZGRpbmc6IDE2cHg7XG4gICAgYm9yZGVyLWJvdHRvbTogMXB4IHNvbGlkICNlZWU7XG4gICAgZmxleC1kaXJlY3Rpb246IGNvbHVtbjtcblxuICAgIC5yb3cge1xuICAgICAgZGlzcGxheTogZmxleDtcbiAgICAgIGZsZXgtZGlyZWN0aW9uOiByb3c7XG4gICAgICBmbGV4LWdyb3c6IDE7XG4gICAgICBtYXJnaW4tYm90dG9tOiA4cHg7XG5cbiAgICAgIC5maWVsZCB7XG4gICAgICAgIGRpc3BsYXk6IGZsZXg7XG4gICAgICAgIGZsZXgtZGlyZWN0aW9uOiBjb2x1bW47XG4gICAgICAgIHdpZHRoOiA1MCU7XG5cbiAgICAgICAgLmxhYmVsIHtcbiAgICAgICAgICBmb250LXdlaWdodDogYm9sZDtcbiAgICAgICAgfVxuICAgICAgfVxuICAgIH1cblxuICAgIC5kcml2ZXItY2FyZCB7XG4gICAgICBkaXNwbGF5OiBmbGV4O1xuICAgICAgYWxpZ24taXRlbXM6IGNlbnRlcjtcbiAgICAgIGdhcDogMTBweDtcbiAgICAgIG1hcmdpbi1ib3R0b206IDhweDtcblxuICAgICAgYXBwLWF2YXRhciB7XG4gICAgICAgIGZsZXgtc2hyaW5rOiAwO1xuICAgICAgfVxuXG4gICAgICAuZHJpdmVyLWluZm8ge1xuICAgICAgICBmbGV4OiAxO1xuICAgICAgICBtaW4td2lkdGg6IDA7XG5cbiAgICAgICAgLmRyaXZlci1uYW1lIHtcbiAgICAgICAgICBmb250LXNpemU6IDAuOWVtO1xuICAgICAgICAgIGZvbnQtd2VpZ2h0OiBib2xkO1xuICAgICAgICAgIGNvbG9yOiAjMzMzO1xuICAgICAgICB9XG5cbiAgICAgICAgLmRyaXZlci1tZXRhIHtcbiAgICAgICAgICBkaXNwbGF5OiBmbGV4O1xuICAgICAgICAgIGFsaWduLWl0ZW1zOiBjZW50ZXI7XG4gICAgICAgICAgZ2FwOiA2cHg7XG4gICAgICAgICAgbWFyZ2luLXRvcDogMnB4O1xuXG4gICAgICAgICAgLmRyaXZlci1yb2xlLWxhYmVsIHtcbiAgICAgICAgICAgIGZvbnQtc2l6ZTogMC44ZW07XG4gICAgICAgICAgICBjb2xvcjogI2FhYTtcbiAgICAgICAgICB9XG4gICAgICAgIH1cbiAgICAgIH1cbiAgICB9XG5cbiAgICAuZGF0ZSB7XG4gICAgICBkaXNwbGF5OiBmbGV4O1xuICAgICAganVzdGlmeS1jb250ZW50OiBmbGV4LXN0YXJ0O1xuICAgICAgZm9udC1zaXplOiAwLjllbTtcbiAgICAgIGNvbG9yOiAjNjU2NzY4O1xuICAgICAgbWFyZ2luLXRvcDogOHB4O1xuICAgIH1cblxuICAgIC50aXRsZSB7XG4gICAgICBmb250LXNpemU6IGluaXRpYWwgIWltcG9ydGFudDtcbiAgICAgIC5jb250ZW50IHtcbiAgICAgICAgZm9udC13ZWlnaHQ6IGJvbGQ7XG4gICAgICB9XG5cbiAgICAgIC5jb21wYW55IHtcbiAgICAgICAgZm9udC1zaXplOiAwLjllbTtcbiAgICAgIH1cbiAgICB9XG4gIH1cblxuICAuYm90dG9tIHtcbiAgICBkaXNwbGF5OiBmbGV4O1xuICAgIHBhZGRpbmc6IDE2cHg7XG4gICAganVzdGlmeS1jb250ZW50OiBzcGFjZS1iZXR3ZWVuO1xuXG4gICAgLmFjdGlvbnMge1xuICAgICAgZGlzcGxheTogZmxleDtcbiAgICAgIGp1c3RpZnktY29udGVudDogY2VudGVyO1xuICAgICAgYWxpZ24taXRlbXM6IGNlbnRlcjtcblxuICAgICAgLmNyZWF0ZS1lbnRyeS1ob2xkZXIge1xuICAgICAgICBib3JkZXItcmFkaXVzOiAzOHB4O1xuICAgICAgICBkaXNwbGF5OiBmbGV4O1xuICAgICAgICBqdXN0aWZ5LWNvbnRlbnQ6IGNlbnRlcjtcbiAgICAgICAgYWxpZ24taXRlbXM6IGNlbnRlcjtcbiAgICAgICAgYm9yZGVyOiAycHggc29saWQgIzBlYzI1NDtcbiAgICAgICAgYmFja2dyb3VuZC1jb2xvcjogI2ZmZjtcbiAgICAgICAgY29sb3I6ICMwZWMyNTQ7XG4gICAgICAgIGhlaWdodDogMzhweDtcbiAgICAgICAgcGFkZGluZzogMCAxMnB4O1xuICAgICAgfVxuXG4gICAgICAuY2FsZW5kYXItaG9sZGVyLFxuICAgICAgLnNoYXJlLWhvbGRlciB7XG4gICAgICAgIGhlaWdodDogMzhweDtcbiAgICAgICAgd2lkdGg6IDM4cHg7XG4gICAgICAgIGJvcmRlci1yYWRpdXM6IDM4cHg7XG4gICAgICAgIGRpc3BsYXk6IGZsZXg7XG4gICAgICAgIGp1c3RpZnktY29udGVudDogY2VudGVyO1xuICAgICAgICBhbGlnbi1pdGVtczogY2VudGVyO1xuICAgICAgICBib3JkZXI6IDJweCBzb2xpZCAjMGVjMjU0O1xuICAgICAgICBiYWNrZ3JvdW5kLWNvbG9yOiAjZmZmO1xuICAgICAgICBjb2xvcjogIzBlYzI1NDtcbiAgICAgICAgZm9udC1zaXplOiAyNHB4O1xuICAgICAgfVxuXG4gICAgICAuc2hhcmUtaG9sZGVyIHtcbiAgICAgICAgbWFyZ2luLWxlZnQ6IDEycHg7XG4gICAgICB9XG4gICAgfVxuXG4gICAgLy8uYWN0aW9ucyB7XG4gICAgLy8gIGRpc3BsYXk6IGZsZXg7XG4gICAgLy8gIGp1c3RpZnktY29udGVudDogY2VudGVyO1xuICAgIC8vICBhbGlnbi1pdGVtczogY2VudGVyO1xuICAgIC8vICB3aWR0aDogNDAlO1xuICAgIC8vXG4gICAgLy8gIGJ1dHRvbiB7XG4gICAgLy8gICAgZm9udC1zaXplOiAxZW07XG4gICAgLy8gICAgY29sb3I6ICMwZWMyNTQ7XG4gICAgLy8gICAgYmFja2dyb3VuZC1jb2xvcjogI0ZGRjtcbiAgICAvLyAgICBwYWRkaW5nOiAwLjVlbSAxLjI1ZW07XG4gICAgLy8gICAgYm9yZGVyLXJhZGl1czogMzJweDtcbiAgICAvLyAgICBib3JkZXI6IDFweCBzb2xpZCAjMGVjMjU0O1xuICAgIC8vICAgIHRyYW5zaXRpb246IGJhY2tncm91bmQtY29sb3IgMC4xcyBlYXNlLW91dDtcbiAgICAvL1xuICAgIC8vICAgICY6YWN0aXZlIHtcbiAgICAvLyAgICAgIGJhY2tncm91bmQtY29sb3I6ICMwZWMyNTQ7XG4gICAgLy8gICAgICBjb2xvcjogI0ZGRjtcbiAgICAvLyAgICAgIHRyYW5zaXRpb246IGJhY2tncm91bmQtY29sb3IgMC4xcyBlYXNlLW91dDtcbiAgICAvLyAgICB9XG4gICAgLy8gIH1cbiAgICAvL31cbiAgfVxufVxuIl19 */"] }); /***/ }) }]) //# sourceMappingURL=1679.js.map