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

/***/ 28214:
/*!********************************************************************************************!*\
  !*** ./src/app/create-event/create-event-event-resume/create-event-event-resume.module.ts ***!
  \********************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "CreateEventEventResumePageModule": () => (/* binding */ CreateEventEventResumePageModule)
/* harmony export */ });
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/router */ 61380);
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_angular_router__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _shared_pipes_pipes_module__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @shared/pipes/pipes.module */ 24586);
/* harmony import */ var src_app_shared_module_shared_module_module__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! src/app/shared-module/shared-module.module */ 69270);
/* harmony import */ var _create_event_event_resume_page__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./create-event-event-resume.page */ 59853);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @angular/core */ 45449);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_angular_core__WEBPACK_IMPORTED_MODULE_4__);






const routes = [
    {
        path: '',
        component: _create_event_event_resume_page__WEBPACK_IMPORTED_MODULE_3__.CreateEventEventResumePage
    }
];
class CreateEventEventResumePageModule {
}
CreateEventEventResumePageModule.ɵfac = function CreateEventEventResumePageModule_Factory(t) { return new (t || CreateEventEventResumePageModule)(); };
CreateEventEventResumePageModule.ɵmod = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdefineNgModule"]({ type: CreateEventEventResumePageModule });
CreateEventEventResumePageModule.ɵinj = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdefineInjector"]({ imports: [src_app_shared_module_shared_module_module__WEBPACK_IMPORTED_MODULE_2__.SharedModuleModule, _shared_pipes_pipes_module__WEBPACK_IMPORTED_MODULE_1__.PipesModule, _angular_router__WEBPACK_IMPORTED_MODULE_0__.RouterModule.forChild(routes)] });
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵsetNgModuleScope"](CreateEventEventResumePageModule, { declarations: [_create_event_event_resume_page__WEBPACK_IMPORTED_MODULE_3__.CreateEventEventResumePage], imports: [src_app_shared_module_shared_module_module__WEBPACK_IMPORTED_MODULE_2__.SharedModuleModule, _shared_pipes_pipes_module__WEBPACK_IMPORTED_MODULE_1__.PipesModule, _angular_router__WEBPACK_IMPORTED_MODULE_0__.RouterModule] }); })();


/***/ }),

/***/ 59853:
/*!******************************************************************************************!*\
  !*** ./src/app/create-event/create-event-event-resume/create-event-event-resume.page.ts ***!
  \******************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "CreateEventEventResumePage": () => (/* binding */ CreateEventEventResumePage)
/* 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 moment__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! moment */ 56908);
/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(moment__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var src_app_logistic_events_components__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! src/app/logistic-events/components */ 34645);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/core */ 45449);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_angular_core__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var _shared_services__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @shared/services */ 17253);
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @angular/router */ 61380);
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_angular_router__WEBPACK_IMPORTED_MODULE_5__);
/* harmony import */ var _ionic_angular__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @ionic/angular */ 93819);
/* harmony import */ var _shared_services_state_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @shared/services/state.service */ 21284);
/* harmony import */ var _shared_services_focus_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @shared/services/focus.service */ 37763);
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @angular/common */ 90944);
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_angular_common__WEBPACK_IMPORTED_MODULE_8__);
/* harmony import */ var _shared_components_avatar_avatar_component__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../shared/components/avatar/avatar.component */ 87871);
/* harmony import */ var _shared_components_header_header_component__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../shared/components/header/header.component */ 36290);
/* harmony import */ var _shared_components_list_recurrence_dates_list_recurrence_dates_component__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../shared/components/list-recurrence-dates/list-recurrence-dates.component */ 96893);
/* harmony import */ var _ngx_translate_core__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @ngx-translate/core */ 38699);















function CreateEventEventResumePage_ng_container_10_div_2_button_1_Template(rf, ctx) {
  if (rf & 1) {
    const _r22 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵgetCurrentView"]();

    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "button", 30);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵlistener"]("click", function CreateEventEventResumePage_ng_container_10_div_2_button_1_Template_button_click_0_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵrestoreView"](_r22);
      const ctx_r21 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"](3);
      return _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵresetView"](ctx_r21.createEvent());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵpipe"](2, "translate");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
  }

  if (rf & 2) {
    const connectionsStatus_r16 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"](2).ngIf;
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("disabled", connectionsStatus_r16.status === "Offline");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵpipeBind1"](2, 2, "PG_CREATE_RESUME_STEP_BTN_CREATE"), " ");
  }
}

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

    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "button", 30);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵlistener"]("click", function CreateEventEventResumePage_ng_container_10_div_2_button_2_Template_button_click_0_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵrestoreView"](_r25);
      const ctx_r24 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"](3);
      return _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵresetView"](ctx_r24.updateEvent());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵpipe"](2, "translate");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
  }

  if (rf & 2) {
    const connectionsStatus_r16 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"](2).ngIf;
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("disabled", connectionsStatus_r16.status === "Offline");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵpipeBind1"](2, 2, "PG_CREATE_RESUME_STEP_BTN_SALVE"), " ");
  }
}

function CreateEventEventResumePage_ng_container_10_div_2_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "div", 28);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](1, CreateEventEventResumePage_ng_container_10_div_2_button_1_Template, 3, 4, "button", 29);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](2, CreateEventEventResumePage_ng_container_10_div_2_button_2_Template, 3, 4, "button", 29);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
  }

  if (rf & 2) {
    const ctx_r17 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", ctx_r17.isCreating());
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", ctx_r17.isEditing());
  }
}

function CreateEventEventResumePage_ng_container_10_div_3_button_4_Template(rf, ctx) {
  if (rf & 1) {
    const _r29 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵgetCurrentView"]();

    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "button", 32);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵlistener"]("click", function CreateEventEventResumePage_ng_container_10_div_3_button_4_Template_button_click_0_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵrestoreView"](_r29);
      const ctx_r28 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"](3);
      return _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵresetView"](ctx_r28.reproveEvent());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵpipe"](2, "translate");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
  }

  if (rf & 2) {
    const connectionsStatus_r16 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"](2).ngIf;
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("disabled", connectionsStatus_r16.status === "Offline");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵpipeBind1"](2, 2, "PG_CREATE_RESUME_STEP_BTN_REPROVE"), " ");
  }
}

function CreateEventEventResumePage_ng_container_10_div_3_Template(rf, ctx) {
  if (rf & 1) {
    const _r32 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵgetCurrentView"]();

    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "div", 28)(1, "button", 30);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵlistener"]("click", function CreateEventEventResumePage_ng_container_10_div_3_Template_button_click_1_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵrestoreView"](_r32);
      const ctx_r31 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵresetView"](ctx_r31.approveEvent());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵpipe"](3, "translate");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](4, CreateEventEventResumePage_ng_container_10_div_3_button_4_Template, 3, 4, "button", 31);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
  }

  if (rf & 2) {
    const connectionsStatus_r16 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"]().ngIf;
    const ctx_r18 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("disabled", connectionsStatus_r16.status === "Offline");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵpipeBind1"](3, 3, "PG_CREATE_RESUME_STEP_BTN_APPROVE"), " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", !ctx_r18.isApproveEventReview());
  }
}

function CreateEventEventResumePage_ng_container_10_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementContainerStart"](0);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](1, "div", 26);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](2, CreateEventEventResumePage_ng_container_10_div_2_Template, 3, 2, "div", 27);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](3, CreateEventEventResumePage_ng_container_10_div_3_Template, 5, 5, "div", 27);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementContainerEnd"]();
  }

  if (rf & 2) {
    const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", ctx_r0.isCreating() || ctx_r0.isEditing() && !ctx_r0.isApproveEventReview());
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", ctx_r0.isApprovingEvent() || ctx_r0.isApproveEventReview());
  }
}

function CreateEventEventResumePage_div_26_div_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "div", 35);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](1, "app-avatar", 36);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](2, "div", 37);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
  }

  if (rf & 2) {
    const guest_r35 = ctx.$implicit;
    const ctx_r34 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"](2);
    let tmp_2_0;
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("firstName", guest_r35.firstName)("lastName", guest_r35.lastName)("thumbnailImage", (tmp_2_0 = (tmp_2_0 = guest_r35 == null ? null : guest_r35.image) !== null && tmp_2_0 !== undefined ? tmp_2_0 : guest_r35 == null ? null : guest_r35.thumbnailImage) !== null && tmp_2_0 !== undefined ? tmp_2_0 : null)("size", "sm");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtextInterpolate1"](" ", ctx_r34.helperService.normalizeName(guest_r35.firstName, guest_r35.lastName), " ");
  }
}

function CreateEventEventResumePage_div_26_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "div", 33);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](1, CreateEventEventResumePage_div_26_div_1_Template, 4, 5, "div", 34);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
  }

  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngForOf", ctx_r1.guests);
  }
}

function CreateEventEventResumePage_div_27_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "div", 38);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵpipe"](2, "translate");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
  }

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

function CreateEventEventResumePage_div_41_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "div", 39)(1, "div", 13);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵpipe"](3, "translate");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](4, "app-list-recurrence-dates", 40);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
  }

  if (rf & 2) {
    const ctx_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵpipeBind1"](3, 3, "TEXT_RECURRENCES_DATES"));
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("showShortDateList", true)("recurrenceDates", ctx_r3.recurrenceDates);
  }
}

function CreateEventEventResumePage_div_46_div_1_div_5_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "div", 46);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
  }

  if (rf & 2) {
    const host_r37 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"]().$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtextInterpolate"](host_r37.department);
  }
}

function CreateEventEventResumePage_div_46_div_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "div", 43);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](1, "app-avatar", 36);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](2, "div", 44)(3, "div", 37);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](5, CreateEventEventResumePage_div_46_div_1_div_5_Template, 2, 1, "div", 45);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
  }

  if (rf & 2) {
    const host_r37 = ctx.$implicit;
    const ctx_r36 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"](2);
    let tmp_2_0;
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("firstName", host_r37.firstName)("lastName", host_r37.lastName)("thumbnailImage", (tmp_2_0 = (tmp_2_0 = host_r37 == null ? null : host_r37.photos == null ? null : host_r37.photos[0] == null ? null : host_r37.photos[0].faceImageThumbnail) !== null && tmp_2_0 !== undefined ? tmp_2_0 : host_r37 == null ? null : host_r37.thumbnailImage) !== null && tmp_2_0 !== undefined ? tmp_2_0 : null)("size", "sm");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtextInterpolate1"](" ", ctx_r36.helperService.normalizeName(host_r37.firstName, host_r37.lastName), " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", host_r37.department);
  }
}

function CreateEventEventResumePage_div_46_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "div", 41);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](1, CreateEventEventResumePage_div_46_div_1_Template, 6, 6, "div", 42);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
  }

  if (rf & 2) {
    const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngForOf", ctx_r4.hosts);
  }
}

function CreateEventEventResumePage_div_47_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "div", 47);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵpipe"](2, "translate");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
  }

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

function CreateEventEventResumePage_ng_container_54_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementContainerStart"](0);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](1, "div", 16)(2, "div", 13);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵpipe"](4, "translate");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](5, "div", 11);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementContainerEnd"]();
  }

  if (rf & 2) {
    const ctx_r6 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵpipeBind1"](4, 2, "PG_CREATE_RESUME_STEP_TEXT_GROUP"), " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtextInterpolate"](ctx_r6.group == null ? null : ctx_r6.group.description);
  }
}

function CreateEventEventResumePage_div_59_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "div", 11);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵpipe"](2, "translate");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
  }

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

function CreateEventEventResumePage_div_60_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "div", 11);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵpipe"](2, "translate");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
  }

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

function CreateEventEventResumePage_div_64_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "div", 11);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵpipe"](2, "translate");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
  }

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

function CreateEventEventResumePage_div_65_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "div", 11);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵpipe"](2, "translate");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
  }

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

function CreateEventEventResumePage_div_69_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "div", 11);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵpipe"](2, "translate");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
  }

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

function CreateEventEventResumePage_div_70_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "div", 11);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵpipe"](2, "translate");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
  }

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

function CreateEventEventResumePage_div_75_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "div", 11);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵpipe"](2, "translate");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
  }

  if (rf & 2) {
    const ctx_r13 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtextInterpolate2"](" ", ctx_r13.checkInStartAt, "", _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵpipeBind1"](2, 2, "PG_CREATE_RESUME_STEP_TEXT_MINUTES"), " ");
  }
}

function CreateEventEventResumePage_div_76_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "div", 11);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵpipe"](2, "translate");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
  }

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

function CreateEventEventResumePage_div_77_div_4_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "div", 11);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
  }

  if (rf & 2) {
    const bookei_r41 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtextInterpolate"](bookei_r41 == null ? null : bookei_r41.name);
  }
}

function CreateEventEventResumePage_div_77_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "div", 23)(1, "div", 13);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵpipe"](3, "translate");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](4, CreateEventEventResumePage_div_77_div_4_Template, 2, 1, "div", 48);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
  }

  if (rf & 2) {
    const ctx_r15 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵpipeBind1"](3, 2, "PG_CREATE_RESUME_STEP_TEXT_ROOM_RESERVATIONS"), " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngForOf", ctx_r15.bookeis);
  }
}

class CreateEventEventResumePage {
  constructor(createEventService, navigationService, loadingService, notificatorService, momentService, activatedRoute, router, helperService, logService, // private readonly geolocationService: GeolocationService,
  profileManagerService, modalController, apiService, authService, portalLoginManagerService, translateConfigService, resumeCreateEventInterruptedService, stateService, focusService, userPhotoService) {
    var _this = this;

    this.createEventService = createEventService;
    this.navigationService = navigationService;
    this.loadingService = loadingService;
    this.notificatorService = notificatorService;
    this.momentService = momentService;
    this.activatedRoute = activatedRoute;
    this.router = router;
    this.helperService = helperService;
    this.logService = logService;
    this.profileManagerService = profileManagerService;
    this.modalController = modalController;
    this.apiService = apiService;
    this.authService = authService;
    this.portalLoginManagerService = portalLoginManagerService;
    this.translateConfigService = translateConfigService;
    this.resumeCreateEventInterruptedService = resumeCreateEventInterruptedService;
    this.stateService = stateService;
    this.focusService = focusService;
    this.userPhotoService = userPhotoService;
    this.isLimitedProfile = false;
    this.existPendings = false;
    this.recurrenceDates = [];

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

    this.navigateToPendingLiberations = () => {
      this.navigationService.forward(['/push-notifications']);
    };

    this.setEventValues = event => {
      if (event) {
        this.event = event;
        this.isNew = !event.id;
        this.title = event.title;
        this.startAt = this.momentService.formatAsEventAt(event.startAt);
        this.recurrent = event?.recurrent ? event.recurrent : false;
        this.recurrenceDates = event?.recurrenceDates ? event.recurrenceDates : [];
        const lastDateRecurrence = !!event?.recurrenceDates ? event?.recurrenceDates[event?.recurrenceDates?.length - 1] : null;
        const date = lastDateRecurrence?.happensAt;
        this.formatDateEntAt(event, lastDateRecurrence);
        this.hosts = event.hosts;
        this.guests = event.guests;
        this.multiCheckin = event.multiCheckin;
        this.allowCompanion = event.allowCompanion;
        this.needAuthorization = event.needAuthorization;
        this.checkInStartAt = event.checkinStartAt;
        this.floor = event.floor;
        this.group = event.group;
        this.bookeis = event.bookeis;
        this.bookeisToCancel = this.existIdEvent ? this.createEventService.getBookeisToCancel() : [];
      }
    };

    this.onFixEventErrors = () => {
      // @ts-ignore
      this.event.autoRelease = !this.event.needAuthorization;

      if (this.createEventService.getAction() === 'approve-event-review') {
        this.createEventService.setAction('approve-event-edit');
      }

      const navigationExtras = {
        state: {
          event: this.event,
          isLimitedProfile: this.isLimitedProfile,
          action: this.createEventService.getAction(),
          approveEventReview: this.createEventService.getApproveEventReview() ? this.createEventService.getApproveEventReview() : null
        }
      };
      this.navigationService.back(['/create-event-event-name-step'], navigationExtras);
    };

    this.getInitials = (firstName, lastName) => {
      const firstNameInitial = firstName ? firstName.substring(0, 1) : '';
      const lastNameInitial = lastName ? lastName.substring(0, 1) : '';
      return (firstNameInitial + lastNameInitial).toUpperCase();
    };

    this.createEvent = /*#__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.show(_this.translateConfigService.translate('PG_CREATE_RESUME_STEP_LOADING_CREATING_EVENT'), 'create-event');

      const data = {
        startAt: _this.createEventService.getStartDate(),
        endAt: _this.createEventService.getEndDate(),
        title: _this.createEventService.getTitle(),
        hosts: _this.createEventGetHosts(),
        guests: _this.createEventService.getGuests(),
        floor: _this.createEventService.getSelectedFloor(),
        group: _this.createEventService.getSelectedGroup(),
        allowCompanion: _this.createEventService.getCompanionAllowed(),
        autoRelease: !_this.createEventService.getNeedAuthorization(),
        multiCheckin: _this.createEventService.getMultiCheckIn(),
        checkinStartAt: _this.createEventService.getCheckInStartAt(),
        bookeis: _this.createEventService.getBookings(),
        recurrent: _this.createEventService.getRecurrent(),
        recurrenceDates: _this.createEventService.getRecurrenceDates(),
        geoCoordinates: {
          lat: 0,
          lng: 0
        }
      }; // if (this.profileManagerService.isExpeditionProfile()) {
      //   const geoCoordinates = await this.geoCoordinates('geolocation::createEvent', 'create-event');
      //   if (!geoCoordinates.lat || !geoCoordinates.lng) {
      //     return;
      //   }
      //   data.geoCoordinates = geoCoordinates;
      // }

      console.log(data);

      _this.createEventService.createEvent(data).then(_this.handleCreateEventSuccessResponse).catch(_this.handleCreateEventErrorResponse);
    });

    this.createEventGetHosts = () => {
      let hosts = this.createEventService.getHosts();
      hosts = hosts.map(h => ({ ...h,
        company: h.company ? h.company.name : ''
      }));
      return hosts;
    };

    this.handleCreateEventSuccessResponse = response => {
      this.loadingService.hide(null, 'create-event');
      const notification = {
        title: this.translateConfigService.translate('PG_CREATE_RESUME_STEP_TOAST_CREATE_TITLE'),
        message: this.translateConfigService.translate('PG_CREATE_RESUME_STEP_TOAST_CREATE_MESSAGE'),
        type: 'success'
      };
      this.createEventService.setLocator(response.locator);
      this.notificatorService.notify(notification);
      const navigationExtras = {
        state: {
          event: { ...this.event,
            id: response?.id,
            location: response?.company?.address ?? '',
            company: response?.company ?? '',
            fullPathLocator: response?.fullPathLocator ?? ''
          }
        }
      };
      this.navigationService.forward(['/create-event-event-share-step'], navigationExtras);
    };

    this.handleCreateEventErrorResponse = error => {
      console.log('handleCreateEventErrorResponse');
      console.log('error:', error);
      this.logService.logError('http::handleCreateEventErrorResponse', '', error);
      this.loadingService.hide(null, 'create-event');
      let message = '';
      let asset_already_booked = false; // KA_APP-701

      let event_crowded = false;
      let too_much_invites = false;
      let too_much_dates = false;

      if (error.status === 400) {
        if (error.error.errorKey === 'notmatched') {
          message = this.translateConfigService.translate('PG_CREATE_RESUME_STEP_TOAST_NOMATCHED');
        } else if (error.error.errorKey === 'asset_already_booked') {
          asset_already_booked = true;
          message = this.translateConfigService.translate('PG_CREATE_RESUME_STEP_TOAST_BOOKED');
        } else if (error.error.errorKey === 'event_crowded' || error.error.errorKey === 'too_much_invites') {
          // KA_APP-701
          event_crowded = true;
          too_much_invites = true;
          const maxInvites = this.createEventService.getMaxInvites();
          message = this.translateConfigService.translate('PG_CREATE_RESUME_STEP_TOAST_EVENT_CROWDED', {
            count: maxInvites
          });
        } else if (error.error.errorKey === 'too_much_dates') {
          // KA_APP-701
          const maxDatesRecurrence = this.createEventService.getMaxDatesRecurrence();
          too_much_dates = true;
          message = this.translateConfigService.translate('TOAST_MAX_RECURRENCES_DATE', {
            count: maxDatesRecurrence
          });
        } else if (error.error.errorKey === 'people_already_checkin') {
          message = this.translateConfigService.translate('PG_CREATE_RESUME_STEP_TOAST_MESSSAGE_PEOPLE_ALREADY_CHECKIN');
        } else {
          message = this.translateConfigService.translate('PG_CREATE_RESUME_STEP_TOAST_ERROR_CREATE');
        } // KA_APP-701


        this.logService.logError('http::handleCreateEventErrorResponse', error?.error?.message ?? '', error);
      } else if (error.status === 403) {
        message = this.translateConfigService.translate('PG_CREATE_RESUME_STEP_TOAST_FORBIDDEN');
      } else {
        message = this.translateConfigService.translate('PG_CREATE_RESUME_STEP_TOAST_ERROR_CREATE');
      } // KA_APP-701


      const notification = {
        title: asset_already_booked || event_crowded || too_much_invites || too_much_dates ? '' : this.translateConfigService.translate('PG_CREATE_RESUME_STEP_TOAST_CREATE_ERROR_TITLE'),
        message,
        type: 'error',
        timeout: 10000
      };
      this.notificatorService.notify(notification);
    };

    this.updateEvent = /*#__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.show(_this.translateConfigService.translate('PG_CREATE_RESUME_STEP_LOADING_UPDATING_EVENT'), 'update-event');

      const data = {
        id: _this.createEventService.getId(),
        startAt: _this.createEventService.getStartDate(),
        endAt: _this.createEventService.getEndDate(),
        title: _this.createEventService.getTitle(),
        hosts: _this.createEventGetHosts(),
        guests: _this.createEventService.getGuests(),
        floor: _this.createEventService.getSelectedFloor(),
        group: _this.createEventService.getSelectedGroup(),
        allowCompanion: _this.createEventService.getCompanionAllowed(),
        autoRelease: !_this.createEventService.getNeedAuthorization(),
        multiCheckin: _this.createEventService.getMultiCheckIn(),
        checkinStartAt: _this.createEventService.getCheckInStartAt(),
        bookeis: _this.createEventService.getBookings(),
        bookeisToCancel: _this.existIdEvent ? _this.createEventService.getBookeisToCancel() : [],
        invitesToDelete: _this.existIdEvent ? _this.createEventService.getInvitesToDelete() : [],
        recurrent: _this.createEventService.getRecurrent(),
        recurrenceDates: _this.createEventService.getRecurrenceDates(),
        geoCoordinates: {
          lat: 0,
          lng: 0
        },
        locator: _this.createEventService.getLocator()
      };

      _this.createEventService.updateEvent(data).then(_this.handleUpdateEventSuccessResponse).catch(_this.handleUpdateEventErrorResponse).finally(() => {
        _this.loadingService.hide(null, 'update-event');
      });
      /*
       const profile = this.profileManagerService.getProfile();
      if (this.profileManagerService.isExpeditionProfile()) {
        try {
          const { authorized } = await this.checkSoftLock(profile);
          if (!authorized) {
            try {
              const geoCoordinates = await this.geoCoordinates(
                'geolocation::updateEvent',
                'update-event'
              );
              data.geoCoordinates = geoCoordinates;
                       try {
                const accessToken = (await this.getProfileRelatedAccessToken(profile)) as string;
                try {
                  const verifyCoordinates = await this.apiService
                    .verifyCoordinates(
                      profile.company.instanceName,
                      geoCoordinates.lat,
                      geoCoordinates.lng,
                      accessToken
                    )
                    .toPromise();
                  if (verifyCoordinates?.authorized) {
                    return this.createEventService
                      .updateEvent(data)
                      .then(this.handleUpdateEventSuccessResponse)
                      .catch(this.handleUpdateEventErrorResponse)
                      .finally(() => {
                        this.loadingService.hide(null, 'update-event');
                      });
                  } else {
                    this.loadingService.hide(null, 'update-event');
                    this.handleOutOfArea();
                  }
                } catch (error) {
                  this.loadingService.hide(null, 'update-event');
                  this.handleVerifyCoordinatesError(error);
                  this.logService.logError(
                    'http::handleVerifyCoordinatesError::updateEvent',
                    'UpdateEvent Erro verifying coordinates api',
                    error
                  );
                }
              } catch (error) {
                this.loadingService.hide(null, 'update-event');
                this.logService.logError(
                  'http::getProfileRelatedAccessToken::updateEvent',
                  'UpdateEvent error get profile related access token',
                  error
                );
              }
            } catch (error) {
              this.loadingService.hide(null, 'update-event');
              this.logService.logError(
                'http::geoCoordinates::updateEvent',
                'UpdateEvent erro geolocation device',
                error
              );
            }
          } else {
            return this.createEventService
              .updateEvent(data)
              .then(this.handleUpdateEventSuccessResponse)
              .catch(this.handleUpdateEventErrorResponse)
              .finally(() => {
                this.loadingService.hide(null, 'update-event');
              });
          }
        } catch (error) {
          this.loadingService.hide(null, 'update-event');
          this.logService.logError(
            'http::checkSoftLock::updateEvent',
            'UpdateEvent erro check soft lock',
            error
          );
        }
      } else {
               }
      */

    });

    this.handleUpdateEventSuccessResponse = response => {
      console.log('handleUpdateEventSuccessResponse');
      console.log('response:', response);
      const companyInstanceName = response.company.instanceName;
      this.loadingService.hide(null, 'update-event');
      const notification = {
        title: this.translateConfigService.translate('PG_CREATE_RESUME_STEP_TOAST_UPDATE_TITLE'),
        message: this.translateConfigService.translate('PG_CREATE_RESUME_STEP_TOAST_UPDATE_MESSAGE'),
        type: 'success'
      };
      this.event.floor = this.event.floor?.description;
      this.event.autoRelease = !this.createEventService.getNeedAuthorization();
      this.notificatorService.notify(notification);
      const eventId = this.event.id;
      const navigationExtras = {
        state: {
          eventId,
          companyInstanceName
        }
      };
      this.createEventService.clearInvitesToDelete(); // KA_APP-704

      this.resumeCreateEventInterruptedService.clearAll();
      this.createEventService.clearCreateEventData();
      this.navigationService.root(['/view-event/'], navigationExtras);
    };

    this.handleUpdateEventErrorResponse = error => {
      console.log('handleUpdateEventErrorResponse');
      console.log('error:', error);
      this.logService.logError('http::handleUpdateEventErrorResponse', '', error);
      this.loadingService.hide(null, 'update-event');
      let event_crowded = false;
      let too_much_invites = false;
      let too_much_dates = false;
      let message = '';
      let asset_already_booked = false;

      if (error.status === 400) {
        if (error.error.errorKey === 'notmatched') {
          message = this.translateConfigService.translate('PG_CREATE_RESUME_STEP_TOAST_NOMATCHED');
        } else if (error.error.errorKey === 'asset_already_booked') {
          asset_already_booked = true;
          message = this.translateConfigService.translate('PG_CREATE_RESUME_STEP_TOAST_BOOKED');
        } else if (error.error.errorKey === 'people_already_checkin') {
          message = this.translateConfigService.translate('PG_CREATE_RESUME_STEP_TOAST_MESSSAGE_PEOPLE_ALREADY_CHECKIN');
        } else if (error.error.errorKey === 'event_crowded' || error.error.errorKey === 'too_much_invites') {
          // KA_APP-701
          event_crowded = true;
          too_much_invites = true;
          const maxInvites = this.createEventService.getMaxInvites();
          message = this.translateConfigService.translate('PG_CREATE_RESUME_STEP_TOAST_EVENT_CROWDED', {
            count: maxInvites
          });
        } else if (error.error.errorKey === 'too_much_dates') {
          // KA_APP-701
          const maxDatesRecurrence = this.createEventService.getMaxDatesRecurrence();
          too_much_dates = true;
          message = this.translateConfigService.translate('TOAST_MAX_RECURRENCES_DATE', {
            count: maxDatesRecurrence
          });
        } else if (error.error.errorKey === 'people_already_checkin') {
          message = this.translateConfigService.translate('PG_CREATE_RESUME_STEP_TOAST_MESSSAGE_PEOPLE_ALREADY_CHECKIN');
        } else {
          message = this.translateConfigService.translate('PG_CREATE_RESUME_STEP_TOAST_ERROR_UPDATE');
        }
      } else if (error.status === 403) {
        message = this.translateConfigService.translate('PG_CREATE_RESUME_STEP_TOAST_FORBIDDEN_UPDATE');
      } else {
        message = this.translateConfigService.translate('PG_CREATE_RESUME_STEP_TOAST_ERROR_UPDATE');
      }

      const notification = {
        title: asset_already_booked ? '' : this.translateConfigService.translate('PG_CREATE_RESUME_STEP_TOAST_CREATE_ERROR_TITLE'),
        message,
        type: 'error'
      };
      this.notificatorService.notify(notification);
    };

    this.approveEvent = /*#__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.show(_this.translateConfigService.translate('LOADING_APROVING'), 'approve-event-review');

      const data = {
        id: _this.createEventService.getId(),
        startAt: _this.createEventService.getStartDate(),
        endAt: _this.createEventService.getEndDate(),
        title: _this.createEventService.getTitle(),
        hosts: _this.createEventGetHosts(),
        guests: _this.createEventService.getGuests(),
        floor: _this.createEventService.getSelectedFloor(),
        group: _this.createEventService.getSelectedGroup(),
        allowCompanion: _this.createEventService.getCompanionAllowed(),
        autoRelease: !_this.createEventService.getNeedAuthorization(),
        multiCheckin: _this.createEventService.getMultiCheckIn(),
        checkinStartAt: _this.createEventService.getCheckInStartAt(),
        bookeis: _this.createEventService.getBookings(),
        bookeisToCancel: _this.existIdEvent ? _this.createEventService.getBookeisToCancel() : [],
        recurrent: _this.createEventService.getRecurrent(),
        recurrenceDates: _this.createEventService.getRecurrenceDates(),
        geoCoordinates: null,
        locator: _this.createEventService.getLocator()
      };

      _this.createEventService.approveEvent(data).then(_this.handleApproveEventSuccessResponse).catch(_this.handleApproveEventErrorResponse).finally(() => {
        _this.loadingService.hide(null, 'approve-event-review');
      });
      /*
      const profile = this.profileManagerService.getProfile();
               if (this.profileManagerService.isExpeditionProfile()) {
        try {
          const { authorized } = await this.checkSoftLock(profile);
          if (!authorized) {
            const geoCoordinates = await this.geoCoordinates(
              'geolocation::approveEvent',
              'approve-event-review'
            );
                     try {
              const accessToken = (await this.getProfileRelatedAccessToken(profile)) as string;
                       try {
                const verifyCoordinates = await this.apiService
                  .verifyCoordinates(
                    profile.company.instanceName,
                    geoCoordinates.lat,
                    geoCoordinates.lng,
                    accessToken
                  )
                  .toPromise();
                if (verifyCoordinates?.authorized) {
                  data.geoCoordinates = geoCoordinates;
                           this.createEventService
                    .approveEvent(data)
                    .then(this.handleApproveEventSuccessResponse)
                    .catch(this.handleApproveEventErrorResponse)
                    .finally(() => {
                      this.loadingService.hide(null, 'approve-event-review');
                    });
                } else {
                  this.loadingService.hide(null, 'approve-event-review');
                  this.handleOutOfArea();
                }
              } catch (error) {
                this.loadingService.hide(null, 'approve-event-review');
                this.handleVerifyCoordinatesError(error);
                this.logService.logError(
                  'http::handleVerifyCoordinatesError::approveEvent',
                  'approveEvent Erro verifying coordinates api',
                  error
                );
              }
            } catch (error) {
              this.loadingService.hide(null, 'approve-event-review');
              this.logService.logError(
                'http::getProfileRelatedAccessToken::approveEvent',
                'approveEvent error get profile related access token',
                error
              );
            }
          } else {
            this.createEventService
              .approveEvent(data)
              .then(this.handleApproveEventSuccessResponse)
              .catch(this.handleApproveEventErrorResponse)
              .finally(() => {
                this.loadingService.hide(null, 'approve-event-review');
              });
          }
        } catch (error) {
          this.loadingService.hide(null, 'approve-event-review');
          this.logService.logError(
            'http::checkSoftLock::approveEvent',
            'approveEvent erro check soft lock',
            error
          );
        }
      } else {
        this.createEventService
          .approveEvent(data)
          .then(this.handleApproveEventSuccessResponse)
          .catch(this.handleApproveEventErrorResponse)
          .finally(() => {
            this.loadingService.hide(null, 'approve-event-review');
          });
      }
      */

    });

    this.handleOutOfArea = () => {
      this.loadingService.hide(null, 'on-delete-event');
      const notification = {
        title: this.translateConfigService.translate('PG_CREATE_RESUME_STEP_TOAST_OUTOFAREA_TITLE'),
        message: this.translateConfigService.translate('PG_CREATE_RESUME_STEP_TOAST_MESSAGE_OUTOFAREA'),
        type: 'error',
        timeout: 5000
      };
      this.notificatorService.notify(notification);
    };

    this.handleVerifyCoordinatesError = error => {
      this.loadingService.hide(null, 'on-delete-event');
      this.loadingService.hide(null, 'approve-event-review');
      this.loadingService.hide(null, 'update-event');
      const notification = {
        title: this.translateConfigService.translate('PG_CREATE_RESUME_STEP_TOAST_GETTING_LOCATION_TITLE'),
        message: this.translateConfigService.translate('PG_CREATE_RESUME_STEP_TOAST_MESSAGE_GETTING_LOCATION'),
        type: 'error',
        timeout: 5000
      };
      this.notificatorService.notify(notification);
      this.logService.logError('http::handleVerifyCoordinatesErrorResponse', 'Erro verifying coordinates api', error);
    };

    this.getProfileRelatedAccessToken = profile => new Promise((resolve, reject) => {
      this.authService.getToken().then(response => {
        const token = response;
        return this.portalLoginManagerService.getAccessToken(profile.login, profile.portal, token);
      }).then(getUserProfileLoginResponse => {
        const accessToken = getUserProfileLoginResponse.access_token;
        resolve(accessToken);
      }).catch(reject);
    });

    this.handleApproveEventSuccessResponse = response => {
      console.log('handleApproveEventSuccessResponse');
      console.log('response:', response);
      const companyInstanceName = response.company.instanceName;
      this.loadingService.hide(null, 'approve-event-review');
      const notification = {
        title: this.translateConfigService.translate('PG_CREATE_RESUME_STEP_TOAST_AUTHORIZED_TITLE'),
        message: this.translateConfigService.translate('PG_CREATE_RESUME_STEP_TOAST_AUTHORIZED_MESSAGE'),
        type: 'success'
      };
      this.notificatorService.notify(notification); // @ts-ignore

      const eventId = this.event.id;
      const navigationExtras = {
        state: {
          eventId,
          companyInstanceName
        }
      };
      const isApproveEventReview = this.isApproveEventReview();

      if (!isApproveEventReview) {
        this.navigationService.forward(['/view-event/'], navigationExtras);
      } else {
        this.createEventService.clearCreateEventData();
        this.resumeCreateEventInterruptedService.clearProfileLogisticCreationInterrupte();
        this.resumeCreateEventInterruptedService.clearProfileVoCreationInterrupte();
        this.resumeCreateEventInterruptedService.clearResumeCreationInterrupte();
        this.navigationService.forward(['/push-notifications/']);
        localStorage.setItem('forcer_reload', 'TRUE');
      }
    };

    this.handleApproveEventErrorResponse = error => {
      console.log('handleApproveEventErrorResponse');
      console.log('error:', error);
      this.logService.logError('http::handleApproveEventErrorResponse', '', error);
      this.loadingService.hide(null, 'approve-event-review');
      let message = '';
      let asset_already_booked = false;

      if (error.status === 400) {
        if (error.error.errorKey === 'notmatched') {
          message = this.translateConfigService.translate('PG_CREATE_RESUME_STEP_TOAST_NOMATCHED');
        } else if (error.error.errorKey === 'asset_already_booked') {
          asset_already_booked = true;
          message = this.translateConfigService.translate('PG_CREATE_RESUME_STEP_TOAST_BOOKED');
        } else {
          message = this.translateConfigService.translate('PG_CREATE_RESUME_STEP_TOAST_ERROR_UPDATE');
        }
      } else if (error.status === 403) {
        message = this.translateConfigService.translate('PG_CREATE_RESUME_STEP_TOAST_FORBIDDEN_UPDATE');
      } else {
        message = this.translateConfigService.translate('PG_CREATE_RESUME_STEP_TOAST_ERROR_UPDATE');
      }

      const notification = {
        title: asset_already_booked ? '' : this.translateConfigService.translate('PG_CREATE_RESUME_STEP_TOAST_CREATE_ERROR_TITLE'),
        message,
        type: 'error'
      };
      this.notificatorService.notify(notification);
    };

    this.reproveEvent = /*#__PURE__*/(0,_Volumes_case_workspace_work_APPS_KA_APP_WORK_NOW_KA_PASS_V2_2_6_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* () {
      const modal = yield _this.modalController.create({
        component: src_app_logistic_events_components__WEBPACK_IMPORTED_MODULE_2__.JustifySelfInviteWithoutLocatorComponent
      });
      modal.onDidDismiss().then( /*#__PURE__*/function () {
        var _ref5 = (0,_Volumes_case_workspace_work_APPS_KA_APP_WORK_NOW_KA_PASS_V2_2_6_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* (modalResponse) {
          const reason = modalResponse.data.reason;

          if (reason === null) {
            return;
          }

          _this.loadingService.show(_this.translateConfigService.translate('PG_CREATE_RESUME_STEP_LOADING_FAILING_EVENT'), 'reprove-event');

          const data = {
            id: _this.createEventService.getId(),
            message: reason
          };

          _this.createEventService.denyEvent(data).then(_this.handleReproveEventSuccessResponse).catch(_this.handleReproveEventErrorResponse).finally(() => {
            _this.loadingService.hide(null, 'reprove-event');
          });
        });

        return function (_x) {
          return _ref5.apply(this, arguments);
        };
      }());
      yield modal.present();
    });

    this.handleReproveEventSuccessResponse = response => {
      console.log('handleReproveEventSuccessResponse');
      console.log('response:', response);
      this.loadingService.hide(null, 'reprove-event');
      const notification = {
        title: this.translateConfigService.translate('PG_CREATE_RESUME_STEP_TOAST_REPROVE_TITLE'),
        message: this.translateConfigService.translate('PG_CREATE_RESUME_STEP_TOAST_REPROVE_MESSAGE'),
        type: 'success'
      };
      this.notificatorService.notify(notification);
      this.navigationService.forward(['/push-notifications']);
    };

    this.handleReproveEventErrorResponse = error => {
      console.log('handleReproveEventErrorResponse');
      console.log('error:', error);
      this.logService.logError('http::handleReproveEventErrorResponse', '', error);
      this.loadingService.hide(null, 'reprove-event');
      let message = '';
      let asset_already_booked = false;

      if (error.status === 400) {
        if (error.error.errorKey === 'notmatched') {
          message = this.translateConfigService.translate('PG_CREATE_RESUME_STEP_TOAST_NOMATCHED');
        } else if (error.error.errorKey === 'asset_already_booked') {
          asset_already_booked = true;
          message = this.translateConfigService.translate('PG_CREATE_RESUME_STEP_TOAST_BOOKED');
        } else {
          message = this.translateConfigService.translate('PG_CREATE_RESUME_STEP_TOAST_ERROR_UPDATE');
        }
      } else if (error.status === 403) {
        message = this.translateConfigService.translate('PG_CREATE_RESUME_STEP_TOAST_FORBIDDEN_UPDATE');
      } else {
        message = this.translateConfigService.translate('PG_CREATE_RESUME_STEP_TOAST_ERROR_UPDATE');
      }

      const notification = {
        title: asset_already_booked ? '' : this.translateConfigService.translate('PG_CREATE_RESUME_STEP_TOAST_CREATE_ERROR_TITLE'),
        message,
        type: 'error'
      };
      this.notificatorService.notify(notification);
    };

    this.isEditing = () => this.createEventService.getAction() === 'edit';

    this.isApproveEventReview = () => this.createEventService.getApproveEventReview() === 'TRUE';

    this.isCreating = () => this.createEventService.getAction() === 'create';

    this.isApprovingEvent = () => this.createEventService.getAction() === 'approve-event-review' || this.createEventService.getAction() === 'approve-event-edit';

    this.title = '';
    this.startAt = '';
    this.endAt = '';
    this.hosts = [];
    this.guests = [];
    this.floor = {
      description: ''
    };
    this.existIdEvent = !this.createEventService.getIsNew();
    this.activatedRoute.queryParams.subscribe(params => {
      if (this.router.getCurrentNavigation().extras.state) {
        this.event = this.router.getCurrentNavigation().extras.state.event;
        this.setEventValues(this.event);
        this.isLimitedProfile = this.router.getCurrentNavigation().extras.state.isLimitedProfile ? this.router.getCurrentNavigation().extras.state.isLimitedProfile : false;
      }
    });
  }

  ionViewDidEnter() {// this.verifyNotifications;
  }

  ionViewWillEnter() {
    this.focusService.applyFocusQuerySelector('create_event_resume', 3500);
    this.userPhotoService.enrichUsersWithPhotos([...(this.hosts ?? []), ...(this.guests ?? [])]);
  }

  ionViewDidLeave() {}
  /*
  private async geoCoordinates(logError, tagLoading) {
    try {
      const currentPosition = await this.geolocationService.getCurrentPosition().toPromise();
      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);
      this.loadingService.hide(null, tagLoading);
      this.logService.logError(logError, '', error);
         const notification: NotificatorNotification = {
        title: this.translateConfigService.translate(
          'PG_CREATE_RESUME_STEP_TOAST_GETTING_LOCATION_TITLE'
        ),
        message: this.translateConfigService.translate(
          'PG_CREATE_RESUME_STEP_TOAST_MESSAGE_GETTING_LOCATION'
        ),
        type: 'error',
        timeout: 5000
      };
         this.notificatorService.notify(notification);
      return;
    }
  } */


  formatDateHourEndAt(date, hour) {
    const dateOnly = moment__WEBPACK_IMPORTED_MODULE_1___default()(date).format('DD/MM/YYYY');
    const hounOnly = moment__WEBPACK_IMPORTED_MODULE_1___default()(hour).format('HH[h]mm[min]');
    return `${dateOnly + ' ás ' + hounOnly}`;
  }

  formatDateEntAt(event, lastDateRecurrence) {
    const enddate = new Date(event.endAt);
    const dateRecurrence = lastDateRecurrence?.happensAt;

    if (event?.id && event?.recurrent && dateRecurrence) {
      this.endAt = this.formatDateHourEndAt(dateRecurrence, event.endAt);
    } else if (event?.id && !dateRecurrence) {
      this.endAt = this.formatDateHourEndAt(enddate, event.endAt);
    } else {
      this.endAt = this.momentService.formatAsEventAt(event.endAt);
    }
  }

  checkSoftLock(profile) {
    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 companyInstance = profile.company.instanceName;
        const accessToken = yield _this2.getProfileRelatedAccessToken(profile);

        try {
          const {
            authorized
          } = yield _this2.apiService.checkSoftLock(companyInstance, null, null, accessToken).toPromise();
          return {
            authorized
          };
        } catch (error) {
          // geo/verify-coordinates
          _this2.logService.logError('http::api:geo:verify-coodinates', 'CheckSoftLock HttpError', error);

          throw error;
        }
      } catch (error) {
        _this2.logService.logError('http::getProfileRelatedAccessToken::checkSoftLock', 'checkSoftLock error get profile related access token', error);

        throw error;
      }
    })();
  }

}

CreateEventEventResumePage.ɵfac = function CreateEventEventResumePage_Factory(t) {
  return new (t || CreateEventEventResumePage)(_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_4__.CreateEventService), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_4__.NavigationService), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_4__.LoadingService), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_4__.NotificatorService), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_4__.MomentService), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_angular_router__WEBPACK_IMPORTED_MODULE_5__.ActivatedRoute), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_angular_router__WEBPACK_IMPORTED_MODULE_5__.Router), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_4__.HelperService), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_4__.LogService), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_4__.ProfileManagerService), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_ionic_angular__WEBPACK_IMPORTED_MODULE_12__.ModalController), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_4__.ApiService), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_4__.AuthService), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_4__.PortalLoginManagerService), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_4__.TranslateConfigService), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_4__.ResumeCreateEventInterruptedService), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_shared_services_state_service__WEBPACK_IMPORTED_MODULE_6__.StateService), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_shared_services_focus_service__WEBPACK_IMPORTED_MODULE_7__.FocusService), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_4__.UserPhotoService));
};

CreateEventEventResumePage.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdefineComponent"]({
  type: CreateEventEventResumePage,
  selectors: [["app-create-event-event-resume"]],
  decls: 78,
  vars: 61,
  consts: [["defaultHref", "create-event-event-options", 3, "title", "showBadge", "refresh", "menuToggle"], [1, "centralized-content"], [1, "page-title"], ["id", "create_event_resume", "tabindex", "1", 1, "sub-title"], [1, "actions"], [1, "button-holder"], [4, "ngIf"], [1, "fix-errors"], ["type", "button", 3, "click"], [1, "event"], [1, "section", "title"], [1, "value"], [1, "section", "guests"], [1, "label"], ["class", "guests-holder", 4, "ngIf"], ["class", "guests-empty", 4, "ngIf"], [1, "section"], [1, "start-at"], [1, "end-at"], ["class", "section recurrences", 4, "ngIf"], [1, "section", "hosts"], ["class", "hosts-holder", 4, "ngIf"], ["class", "hosts-empty", 4, "ngIf"], [1, "section", "option"], ["class", "value", 4, "ngIf"], ["class", "section option", 4, "ngIf"], [1, "button-group"], ["class", "create-event", 4, "ngIf"], [1, "create-event"], ["type", "submit", 3, "disabled", "click", 4, "ngIf"], ["type", "submit", 3, "disabled", "click"], ["type", "submit", "class", "danger", 3, "disabled", "click", 4, "ngIf"], ["type", "submit", 1, "danger", 3, "disabled", "click"], [1, "guests-holder"], ["class", "guest", 4, "ngFor", "ngForOf"], [1, "guest"], [3, "firstName", "lastName", "thumbnailImage", "size"], [1, "full-name"], [1, "guests-empty"], [1, "section", "recurrences"], [3, "showShortDateList", "recurrenceDates"], [1, "hosts-holder"], ["class", "host", 4, "ngFor", "ngForOf"], [1, "host"], [1, "host-info"], ["class", "department", 4, "ngIf"], [1, "department"], [1, "hosts-empty"], ["class", "value", 4, "ngFor", "ngForOf"]],
  template: function CreateEventEventResumePage_Template(rf, ctx) {
    if (rf & 1) {
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](0, "app-header", 0);
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵpipe"](1, "translate");
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](2, "ion-content")(3, "div", 1)(4, "div", 2)(5, "div", 3);
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](6);
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵpipe"](7, "translate");
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](8, "div", 4)(9, "div", 5);
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](10, CreateEventEventResumePage_ng_container_10_Template, 4, 2, "ng-container", 6);
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵpipe"](11, "async");
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](12, "div", 7)(13, "button", 8);
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵlistener"]("click", function CreateEventEventResumePage_Template_button_click_13_listener() {
        return ctx.onFixEventErrors();
      });
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](14);
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵpipe"](15, "translate");
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()()()();
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](16, "ion-row")(17, "ion-col")(18, "div", 9)(19, "div", 10)(20, "div", 11);
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](21);
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](22, "div", 12)(23, "div", 13);
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](24);
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵpipe"](25, "translate");
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](26, CreateEventEventResumePage_div_26_Template, 2, 1, "div", 14);
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](27, CreateEventEventResumePage_div_27_Template, 3, 3, "div", 15);
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](28, "div", 16)(29, "div", 17)(30, "div", 13);
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](31);
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵpipe"](32, "translate");
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](33, "div", 11);
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](34);
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](35, "div", 18)(36, "div", 13);
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](37);
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵpipe"](38, "translate");
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](39, "div", 11);
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](40);
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()()();
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](41, CreateEventEventResumePage_div_41_Template, 5, 5, "div", 19);
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](42, "div", 20)(43, "div", 13);
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](44);
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵpipe"](45, "translate");
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](46, CreateEventEventResumePage_div_46_Template, 2, 1, "div", 21);
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](47, CreateEventEventResumePage_div_47_Template, 3, 3, "div", 22);
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](48, "div", 16)(49, "div", 13);
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](50);
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵpipe"](51, "translate");
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](52, "div", 11);
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](53);
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](54, CreateEventEventResumePage_ng_container_54_Template, 7, 4, "ng-container", 6);
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](55, "div", 23)(56, "div", 13);
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](57);
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵpipe"](58, "translate");
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](59, CreateEventEventResumePage_div_59_Template, 3, 3, "div", 24);
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](60, CreateEventEventResumePage_div_60_Template, 3, 3, "div", 24);
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](61, "div", 13);
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](62);
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵpipe"](63, "translate");
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](64, CreateEventEventResumePage_div_64_Template, 3, 3, "div", 24);
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](65, CreateEventEventResumePage_div_65_Template, 3, 3, "div", 24);
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](66, "div", 13);
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](67);
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵpipe"](68, "translate");
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](69, CreateEventEventResumePage_div_69_Template, 3, 3, "div", 24);
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](70, CreateEventEventResumePage_div_70_Template, 3, 3, "div", 24);
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](71, "div", 23)(72, "div", 13);
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](73);
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵpipe"](74, "translate");
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](75, CreateEventEventResumePage_div_75_Template, 3, 4, "div", 24);
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](76, CreateEventEventResumePage_div_76_Template, 3, 3, "div", 24);
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](77, CreateEventEventResumePage_div_77_Template, 5, 4, "div", 25);
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()()()()();
    }

    if (rf & 2) {
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("title", _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵpipeBind1"](1, 35, "PG_CREATE_RESUME_STEP_HEADER_TITLE"))("showBadge", true)("refresh", false)("menuToggle", false);
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](6);
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵpipeBind1"](7, 37, "PG_CREATE_RESUME_STEP_TEXT_SUBTITLE"), " ");
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](4);
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵpipeBind1"](11, 39, ctx.stateService.getState()));
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](4);
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵpipeBind1"](15, 41, "PG_CREATE_RESUME_STEP_BTN_EDIT"), " ");
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](7);
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtextInterpolate"](ctx.title);
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](3);
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵpipeBind1"](25, 43, "PG_CREATE_RESUME_STEP_TEXT_GUESTS"), " ");
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](2);
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", ctx.guests.length);
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](1);
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", !ctx.guests.length);
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](4);
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵpipeBind1"](32, 45, "PG_CREATE_RESUME_STEP_TEXT_STARTAT"), " ");
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](3);
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtextInterpolate"](ctx.startAt);
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](3);
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵpipeBind1"](38, 47, "PG_CREATE_RESUME_STEP_TEXT_ENDAT"), " ");
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](3);
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtextInterpolate"](ctx.endAt);
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](1);
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", ctx.recurrent);
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](3);
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵpipeBind1"](45, 49, "PG_CREATE_RESUME_STEP_TEXT_HOSTS"), " ");
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](2);
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", ctx.hosts.length);
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](1);
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", !ctx.hosts.length);
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](3);
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵpipeBind1"](51, 51, "PG_CREATE_RESUME_STEP_TEXT_FLOOR"), " ");
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](3);
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtextInterpolate"](ctx.floor == null ? null : ctx.floor.description);
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](1);
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", ctx.group);
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](3);
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵpipeBind1"](58, 53, "PG_CREATE_RESUME_STEP_TEXT_MULTICHECKIN"), " ");
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](2);
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", ctx.multiCheckin);
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](1);
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", !ctx.multiCheckin);
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](2);
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵpipeBind1"](63, 55, "PG_CREATE_RESUME_STEP_TEXT_NEED_AUTHORIZATION"), " ");
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](2);
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", ctx.needAuthorization);
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](1);
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", !ctx.needAuthorization);
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](2);
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵpipeBind1"](68, 57, "PG_CREATE_RESUME_STEP_TEXT_CAN_ESCORTS"), " ");
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](2);
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", ctx.allowCompanion);
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](1);
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", !ctx.allowCompanion);
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](3);
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵpipeBind1"](74, 59, "PG_CREATE_RESUME_STEP_TEXT_EARLY_CHECKIN"), " ");
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](2);
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", ctx.checkInStartAt);
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](1);
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", !ctx.checkInStartAt);
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](1);
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", (ctx.bookeis == null ? null : ctx.bookeis.length) > 0);
    }
  },
  dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_8__.NgForOf, _angular_common__WEBPACK_IMPORTED_MODULE_8__.NgIf, _ionic_angular__WEBPACK_IMPORTED_MODULE_12__.IonCol, _ionic_angular__WEBPACK_IMPORTED_MODULE_12__.IonContent, _ionic_angular__WEBPACK_IMPORTED_MODULE_12__.IonRow, _shared_components_avatar_avatar_component__WEBPACK_IMPORTED_MODULE_9__.AvatarComponent, _shared_components_header_header_component__WEBPACK_IMPORTED_MODULE_10__.HeaderComponent, _shared_components_list_recurrence_dates_list_recurrence_dates_component__WEBPACK_IMPORTED_MODULE_11__.ListRecurrenceDatesComponent, _angular_common__WEBPACK_IMPORTED_MODULE_8__.AsyncPipe, _ngx_translate_core__WEBPACK_IMPORTED_MODULE_13__.TranslatePipe],
  styles: ["ion-content[_ngcontent-%COMP%] {\n  --background: #f1f1f1;\n}\n\nion-toolbar[_ngcontent-%COMP%] {\n  font-family: \"Nunito\", sans-serif;\n}\n\nion-toolbar[_ngcontent-%COMP%]   ion-img[_ngcontent-%COMP%] {\n  height: 25px;\n  width: 25px;\n}\n\nion-toolbar[_ngcontent-%COMP%]   ion-title[_ngcontent-%COMP%] {\n  letter-spacing: 1px;\n}\n\nion-toolbar[_ngcontent-%COMP%]   ion-button[_ngcontent-%COMP%]   fa-icon[_ngcontent-%COMP%] {\n  display: flex;\n  justify-content: center;\n  align-items: center;\n  height: 24px;\n  padding: 0;\n  width: 24px;\n  margin: 0;\n  font-size: 19px;\n  color: #656768;\n}\n\nion-toolbar[_ngcontent-%COMP%]   ion-button.hover[_ngcontent-%COMP%] {\n  background: #fff;\n}\n\n.centralized-content[_ngcontent-%COMP%] {\n  height: calc(100vh - 56px);\n  display: flex;\n  justify-content: flex-start;\n  flex-direction: column;\n}\n\n.centralized-content[_ngcontent-%COMP%]   .page-title[_ngcontent-%COMP%] {\n  margin-top: 30px;\n  margin-bottom: 26px;\n}\n\n.centralized-content[_ngcontent-%COMP%]   .page-title[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%] {\n  font-size: initial !important;\n  font-weight: bold !important;\n  text-align: center !important;\n}\n\n.centralized-content[_ngcontent-%COMP%]   .page-title[_ngcontent-%COMP%]   .sub-title[_ngcontent-%COMP%] {\n  text-align: center !important;\n  color: #656768 !important;\n  font-size: 0.9em !important;\n  margin-top: 4px !important;\n}\n\n.centralized-content[_ngcontent-%COMP%]   .actions[_ngcontent-%COMP%] {\n  display: flex;\n  align-content: center;\n  justify-content: center;\n}\n\n.centralized-content[_ngcontent-%COMP%]   .actions[_ngcontent-%COMP%]   .button-holder[_ngcontent-%COMP%] {\n  display: flex;\n  justify-content: center;\n  align-items: center;\n  flex-direction: column;\n  margin: 0;\n}\n\n.centralized-content[_ngcontent-%COMP%]   .actions[_ngcontent-%COMP%]   .fix-errors[_ngcontent-%COMP%] {\n  margin-top: 24px;\n}\n\n.centralized-content[_ngcontent-%COMP%]   .actions[_ngcontent-%COMP%]   button[type=submit][_ngcontent-%COMP%] {\n  padding: 0.75em 1.5em;\n  border-radius: 50px;\n  background-color: #0ec254;\n  color: #fff;\n  font-size: 1em;\n  transition: background-color 0.1s ease-out;\n}\n\n.centralized-content[_ngcontent-%COMP%]   .actions[_ngcontent-%COMP%]   button[type=submit][_ngcontent-%COMP%]:active {\n  background-color: #fff;\n  color: #0ec254;\n  transition: background-color 0.1s ease-out;\n}\n\n.centralized-content[_ngcontent-%COMP%]   .actions[_ngcontent-%COMP%]   button[type=submit][_ngcontent-%COMP%]:focus {\n  outline: none;\n}\n\n.centralized-content[_ngcontent-%COMP%]   .actions[_ngcontent-%COMP%]   button.danger[_ngcontent-%COMP%] {\n  margin-left: 24px;\n}\n\n.centralized-content[_ngcontent-%COMP%]   .event[_ngcontent-%COMP%] {\n  margin-top: 24px;\n  background-color: #fff;\n  margin: 20px;\n}\n\n.centralized-content[_ngcontent-%COMP%]   .section[_ngcontent-%COMP%] {\n  padding: 12px 0;\n  border-bottom: 1px solid #eee;\n}\n\n.centralized-content[_ngcontent-%COMP%]   .section[_ngcontent-%COMP%]   .label[_ngcontent-%COMP%] {\n  width: 80%;\n  margin: 0 10% 2px;\n  font-size: 0.8em;\n  color: #656768;\n}\n\n.centralized-content[_ngcontent-%COMP%]   .section[_ngcontent-%COMP%]   .value[_ngcontent-%COMP%] {\n  width: 80%;\n  margin: 0 10%;\n}\n\n.centralized-content[_ngcontent-%COMP%]   .section.title[_ngcontent-%COMP%]   .value[_ngcontent-%COMP%] {\n  font-weight: bold;\n  color: #333;\n  font-size: 1.2em;\n  text-align: center;\n}\n\n.centralized-content[_ngcontent-%COMP%]   .section.guests[_ngcontent-%COMP%]   .guest[_ngcontent-%COMP%], .centralized-content[_ngcontent-%COMP%]   .section.guests[_ngcontent-%COMP%]   .host[_ngcontent-%COMP%], .centralized-content[_ngcontent-%COMP%]   .section.hosts[_ngcontent-%COMP%]   .guest[_ngcontent-%COMP%], .centralized-content[_ngcontent-%COMP%]   .section.hosts[_ngcontent-%COMP%]   .host[_ngcontent-%COMP%] {\n  display: flex;\n  width: 80%;\n  margin: 0 10% 4px;\n  padding: 4px 8px;\n  align-items: center;\n  gap: 10px;\n}\n\n.centralized-content[_ngcontent-%COMP%]   .section.guests[_ngcontent-%COMP%]   .guest[_ngcontent-%COMP%]   app-avatar[_ngcontent-%COMP%], .centralized-content[_ngcontent-%COMP%]   .section.guests[_ngcontent-%COMP%]   .host[_ngcontent-%COMP%]   app-avatar[_ngcontent-%COMP%], .centralized-content[_ngcontent-%COMP%]   .section.hosts[_ngcontent-%COMP%]   .guest[_ngcontent-%COMP%]   app-avatar[_ngcontent-%COMP%], .centralized-content[_ngcontent-%COMP%]   .section.hosts[_ngcontent-%COMP%]   .host[_ngcontent-%COMP%]   app-avatar[_ngcontent-%COMP%] {\n  flex-shrink: 0;\n}\n\n.centralized-content[_ngcontent-%COMP%]   .section.guests[_ngcontent-%COMP%]   .guest[_ngcontent-%COMP%]   .host-info[_ngcontent-%COMP%], .centralized-content[_ngcontent-%COMP%]   .section.guests[_ngcontent-%COMP%]   .host[_ngcontent-%COMP%]   .host-info[_ngcontent-%COMP%], .centralized-content[_ngcontent-%COMP%]   .section.hosts[_ngcontent-%COMP%]   .guest[_ngcontent-%COMP%]   .host-info[_ngcontent-%COMP%], .centralized-content[_ngcontent-%COMP%]   .section.hosts[_ngcontent-%COMP%]   .host[_ngcontent-%COMP%]   .host-info[_ngcontent-%COMP%] {\n  flex: 1;\n  min-width: 0;\n}\n\n.centralized-content[_ngcontent-%COMP%]   .section.guests[_ngcontent-%COMP%]   .guest[_ngcontent-%COMP%]   .full-name[_ngcontent-%COMP%], .centralized-content[_ngcontent-%COMP%]   .section.guests[_ngcontent-%COMP%]   .host[_ngcontent-%COMP%]   .full-name[_ngcontent-%COMP%], .centralized-content[_ngcontent-%COMP%]   .section.hosts[_ngcontent-%COMP%]   .guest[_ngcontent-%COMP%]   .full-name[_ngcontent-%COMP%], .centralized-content[_ngcontent-%COMP%]   .section.hosts[_ngcontent-%COMP%]   .host[_ngcontent-%COMP%]   .full-name[_ngcontent-%COMP%] {\n  color: #333;\n}\n\n.centralized-content[_ngcontent-%COMP%]   .section.guests[_ngcontent-%COMP%]   .guest[_ngcontent-%COMP%]   .department[_ngcontent-%COMP%], .centralized-content[_ngcontent-%COMP%]   .section.guests[_ngcontent-%COMP%]   .host[_ngcontent-%COMP%]   .department[_ngcontent-%COMP%], .centralized-content[_ngcontent-%COMP%]   .section.hosts[_ngcontent-%COMP%]   .guest[_ngcontent-%COMP%]   .department[_ngcontent-%COMP%], .centralized-content[_ngcontent-%COMP%]   .section.hosts[_ngcontent-%COMP%]   .host[_ngcontent-%COMP%]   .department[_ngcontent-%COMP%] {\n  font-size: 0.8em;\n  color: #aaa;\n}\n\n.centralized-content[_ngcontent-%COMP%]   .section.guests[_ngcontent-%COMP%]   .hosts-empty[_ngcontent-%COMP%], .centralized-content[_ngcontent-%COMP%]   .section.guests[_ngcontent-%COMP%]   .guests-empty[_ngcontent-%COMP%], .centralized-content[_ngcontent-%COMP%]   .section.hosts[_ngcontent-%COMP%]   .hosts-empty[_ngcontent-%COMP%], .centralized-content[_ngcontent-%COMP%]   .section.hosts[_ngcontent-%COMP%]   .guests-empty[_ngcontent-%COMP%] {\n  width: 80%;\n  margin: 0 10% 4px;\n}\n\n.pulsate-fwd[_ngcontent-%COMP%] {\n  animation: pulsate-fwd 0.5s ease-in-out infinite both;\n  outline: none;\n}\n\n@keyframes pulsate-fwd {\n  0% {\n    transform: scale(1);\n  }\n  50% {\n    transform: scale(1.5);\n  }\n  100% {\n    transform: scale(1);\n  }\n}\n/*# sourceMappingURL=data:application/json;base64,[encoded data, 6176 characters] */"]
});

/***/ }),

/***/ 30834:
/*!*********************************************************************************************!*\
  !*** ./src/app/logistic-events/components/card-founduser-lg/card-founduser-lg.component.ts ***!
  \*********************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "CardFounduserLgComponent": () => (/* binding */ CardFounduserLgComponent)
/* harmony export */ });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ 45449);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_angular_core__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _shared_services__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @shared/services */ 17253);
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/common */ 90944);
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_angular_common__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _ionic_angular__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @ionic/angular */ 93819);
/* harmony import */ var _shared_components_avatar_avatar_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../shared/components/avatar/avatar.component */ 87871);






function CardFounduserLgComponent_ng_container_0_ng_container_6_div_1_Template(rf, ctx) { if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 7);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
    const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", ctx_r4.foundUser.document, " ");
} }
function CardFounduserLgComponent_ng_container_0_ng_container_6_Template(rf, ctx) { if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerStart"](0);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, CardFounduserLgComponent_ng_container_0_ng_container_6_div_1_Template, 2, 1, "div", 6);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerEnd"]();
} if (rf & 2) {
    const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r2.foundUser == null ? null : ctx_r2.foundUser.document);
} }
function CardFounduserLgComponent_ng_container_0_ng_container_7_div_1_Template(rf, ctx) { if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 7);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
    const ctx_r5 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", ctx_r5.foundUser.company, " ");
} }
function CardFounduserLgComponent_ng_container_0_ng_container_7_Template(rf, ctx) { if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerStart"](0);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, CardFounduserLgComponent_ng_container_0_ng_container_7_div_1_Template, 2, 1, "div", 6);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerEnd"]();
} if (rf & 2) {
    const ctx_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r3.foundUser == null ? null : ctx_r3.foundUser.company);
} }
function CardFounduserLgComponent_ng_container_0_Template(rf, ctx) { if (rf & 1) {
    const _r7 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerStart"](0);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 1);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function CardFounduserLgComponent_ng_container_0_Template_div_click_1_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r7); const ctx_r6 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵresetView"](ctx_r6.userSelect.emit(ctx_r6.foundUser)); });
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](2, "app-avatar", 2);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "div", 3)(4, "div", 4);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](6, CardFounduserLgComponent_ng_container_0_ng_container_6_Template, 2, 1, "ng-container", 0);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](7, CardFounduserLgComponent_ng_container_0_ng_container_7_Template, 2, 1, "ng-container", 0);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](8, "ion-ripple-effect", 5);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerEnd"]();
} if (rf & 2) {
    const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
    let tmp_2_0;
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("firstName", ctx_r0.foundUser.firstName)("lastName", ctx_r0.foundUser.lastName)("thumbnailImage", (tmp_2_0 = (tmp_2_0 = ctx_r0.foundUser == null ? null : ctx_r0.foundUser.image) !== null && tmp_2_0 !== undefined ? tmp_2_0 : ctx_r0.foundUser == null ? null : ctx_r0.foundUser.thumbnailImage) !== null && tmp_2_0 !== undefined ? tmp_2_0 : null)("size", "md");
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", ctx_r0.helperService.normalizeName(ctx_r0.foundUser.firstName, ctx_r0.foundUser.lastName), " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r0.typeofuser === "driver");
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r0.typeofuser === "assistant");
} }
function CardFounduserLgComponent_ng_container_1_div_6_Template(rf, ctx) { if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 14);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](1, "ion-skeleton-text", 15);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "div", 3)(3, "div", 4);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](4, "ion-skeleton-text", 16);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "div", 7);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](6, "ion-skeleton-text", 17);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()()();
} }
const _c0 = function () { return [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]; };
function CardFounduserLgComponent_ng_container_1_Template(rf, ctx) { if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerStart"](0);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 8)(2, "div", 9)(3, "div", 10);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](4, "ion-skeleton-text", 11)(5, "ion-skeleton-text", 12);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](6, CardFounduserLgComponent_ng_container_1_div_6_Template, 7, 0, "div", 13);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerEnd"]();
} if (rf & 2) {
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction0"](1, _c0));
} }
class CardFounduserLgComponent {
    constructor(helperService) {
        this.helperService = helperService;
        this.skeleton = false;
        this.userSelect = new _angular_core__WEBPACK_IMPORTED_MODULE_0__.EventEmitter();
    }
    ngOnInit() { }
}
CardFounduserLgComponent.ɵfac = function CardFounduserLgComponent_Factory(t) { return new (t || CardFounduserLgComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_1__.HelperService)); };
CardFounduserLgComponent.ɵcmp = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: CardFounduserLgComponent, selectors: [["app-card-founduser-lg"]], inputs: { foundUser: "foundUser", skeleton: "skeleton", typeofuser: "typeofuser" }, outputs: { userSelect: "userSelect" }, decls: 2, vars: 2, consts: [[4, "ngIf"], [1, "result", "ion-activatable", 3, "click"], [3, "firstName", "lastName", "thumbnailImage", "size"], [1, "user-info"], [1, "full-name"], ["type", "bounded"], ["class", "company", 4, "ngIf"], [1, "company"], [1, "results"], [1, "sub-title"], [1, "ion-text-center", 2, "display", "flex", "flex-direction", "column", "align-items", "center"], ["animated", "", 2, "width", "100%"], ["animated", "", 2, "width", "60%"], ["class", "result", 4, "ngFor", "ngForOf"], [1, "result"], ["animated", "", 1, "avatar-skeleton"], ["animated", "", 2, "width", "85%"], ["animated", "", 2, "width", "50%"]], template: function CardFounduserLgComponent_Template(rf, ctx) { if (rf & 1) {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](0, CardFounduserLgComponent_ng_container_0_Template, 9, 7, "ng-container", 0);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, CardFounduserLgComponent_ng_container_1_Template, 7, 2, "ng-container", 0);
    } if (rf & 2) {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.foundUser && !ctx.skeleton);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.skeleton);
    } }, dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_2__.NgForOf, _angular_common__WEBPACK_IMPORTED_MODULE_2__.NgIf, _ionic_angular__WEBPACK_IMPORTED_MODULE_4__.IonRippleEffect, _ionic_angular__WEBPACK_IMPORTED_MODULE_4__.IonSkeletonText, _shared_components_avatar_avatar_component__WEBPACK_IMPORTED_MODULE_3__.AvatarComponent], styles: [".avatar-skeleton[_ngcontent-%COMP%] {\n  width: 40px;\n  height: 40px;\n  border-radius: 50%;\n  flex-shrink: 0;\n}\n\n.result[_ngcontent-%COMP%] {\n  position: relative;\n  margin: 10px 0;\n  border: 1px solid #eee;\n  border-radius: 4px;\n  padding: 6px 10px;\n  display: flex;\n  align-items: center;\n  gap: 10px;\n}\n\n.result[_ngcontent-%COMP%]   app-avatar[_ngcontent-%COMP%] {\n  flex-shrink: 0;\n}\n\n.result[_ngcontent-%COMP%]   .user-info[_ngcontent-%COMP%] {\n  flex: 1;\n  min-width: 0;\n}\n\n.result[_ngcontent-%COMP%]   .company[_ngcontent-%COMP%] {\n  color: #aaa;\n  font-size: 0.8em;\n}\n\n.results[_ngcontent-%COMP%] {\n  padding: 1em;\n  overflow: scroll;\n  height: 100%;\n}\n\n.results[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%] {\n  font-size: initial !important;\n  font-weight: bold;\n  text-align: left;\n}\n\n.results[_ngcontent-%COMP%]   .sub-title[_ngcontent-%COMP%] {\n  margin: 10px 0px;\n  font-size: 0.9em;\n  background-color: #eee;\n  border: 1px solid #ccc;\n  padding: 8px;\n  border-radius: 2px;\n  text-align: center;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImNhcmQtZm91bmR1c2VyLWxnLmNvbXBvbmVudC5zY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0VBQ0UsV0FBQTtFQUNBLFlBQUE7RUFDQSxrQkFBQTtFQUNBLGNBQUE7QUFDRjs7QUFDQTtFQUNFLGtCQUFBO0VBQ0EsY0FBQTtFQUNBLHNCQUFBO0VBQ0Esa0JBQUE7RUFDQSxpQkFBQTtFQUNBLGFBQUE7RUFDQSxtQkFBQTtFQUNBLFNBQUE7QUFFRjs7QUFBRTtFQUNFLGNBQUE7QUFFSjs7QUFDRTtFQUNFLE9BQUE7RUFDQSxZQUFBO0FBQ0o7O0FBRUU7RUFDRSxXQUFBO0VBQ0EsZ0JBQUE7QUFBSjs7QUFHQTtFQUNFLFlBQUE7RUFDQSxnQkFBQTtFQUNBLFlBQUE7QUFBRjs7QUFFRTtFQUNFLDZCQUFBO0VBQ0EsaUJBQUE7RUFDQSxnQkFBQTtBQUFKOztBQUdFO0VBQ0UsZ0JBQUE7RUFDQSxnQkFBQTtFQUNBLHNCQUFBO0VBQ0Esc0JBQUE7RUFDQSxZQUFBO0VBQ0Esa0JBQUE7RUFDQSxrQkFBQTtBQURKIiwiZmlsZSI6ImNhcmQtZm91bmR1c2VyLWxnLmNvbXBvbmVudC5zY3NzIiwic291cmNlc0NvbnRlbnQiOlsiLmF2YXRhci1za2VsZXRvbiB7XG4gIHdpZHRoOiA0MHB4O1xuICBoZWlnaHQ6IDQwcHg7XG4gIGJvcmRlci1yYWRpdXM6IDUwJTtcbiAgZmxleC1zaHJpbms6IDA7XG59XG4ucmVzdWx0IHtcbiAgcG9zaXRpb246IHJlbGF0aXZlO1xuICBtYXJnaW46IDEwcHggMDtcbiAgYm9yZGVyOiAxcHggc29saWQgI2VlZTtcbiAgYm9yZGVyLXJhZGl1czogNHB4O1xuICBwYWRkaW5nOiA2cHggMTBweDtcbiAgZGlzcGxheTogZmxleDtcbiAgYWxpZ24taXRlbXM6IGNlbnRlcjtcbiAgZ2FwOiAxMHB4O1xuXG4gIGFwcC1hdmF0YXIge1xuICAgIGZsZXgtc2hyaW5rOiAwO1xuICB9XG5cbiAgLnVzZXItaW5mbyB7XG4gICAgZmxleDogMTtcbiAgICBtaW4td2lkdGg6IDA7XG4gIH1cblxuICAuY29tcGFueSB7XG4gICAgY29sb3I6ICNhYWE7XG4gICAgZm9udC1zaXplOiAwLjhlbTtcbiAgfVxufVxuLnJlc3VsdHMge1xuICBwYWRkaW5nOiAxZW07XG4gIG92ZXJmbG93OiBzY3JvbGw7XG4gIGhlaWdodDogMTAwJTtcblxuICAudGl0bGUge1xuICAgIGZvbnQtc2l6ZTogaW5pdGlhbCAhaW1wb3J0YW50O1xuICAgIGZvbnQtd2VpZ2h0OiBib2xkO1xuICAgIHRleHQtYWxpZ246IGxlZnQ7XG4gIH1cblxuICAuc3ViLXRpdGxlIHtcbiAgICBtYXJnaW46IDEwcHggMHB4O1xuICAgIGZvbnQtc2l6ZTogMC45ZW07XG4gICAgYmFja2dyb3VuZC1jb2xvcjogI2VlZTtcbiAgICBib3JkZXI6IDFweCBzb2xpZCAjY2NjO1xuICAgIHBhZGRpbmc6IDhweDtcbiAgICBib3JkZXItcmFkaXVzOiAycHg7XG4gICAgdGV4dC1hbGlnbjogY2VudGVyO1xuICB9XG59XG4iXX0= */"] });


/***/ }),

/***/ 34645:
/*!*****************************************************!*\
  !*** ./src/app/logistic-events/components/index.ts ***!
  \*****************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "CardFounduserLgComponent": () => (/* reexport safe */ _card_founduser_lg_card_founduser_lg_component__WEBPACK_IMPORTED_MODULE_0__.CardFounduserLgComponent),
/* harmony export */   "JustifySelfInviteWithoutLocatorComponent": () => (/* reexport safe */ _justify_self_invite_without_locator_justify_self_invite_without_locator_component__WEBPACK_IMPORTED_MODULE_1__.JustifySelfInviteWithoutLocatorComponent),
/* harmony export */   "LogisticJustifySelfInviteWithLocatorComponent": () => (/* reexport safe */ _logistic_justify_self_invite_with_locator_logistic_justify_self_invite_with_locator_component__WEBPACK_IMPORTED_MODULE_2__.LogisticJustifySelfInviteWithLocatorComponent),
/* harmony export */   "SelectLogisticEventTypeModalComponent": () => (/* reexport safe */ _select_logistic_event_type_modal_select_logistic_event_type_modal_component__WEBPACK_IMPORTED_MODULE_3__.SelectLogisticEventTypeModalComponent),
/* harmony export */   "SelectorForAssistantsToAddToEventComponent": () => (/* reexport safe */ _selector_for_assistants_to_add_to_event_selector_for_assistants_to_add_to_event_component__WEBPACK_IMPORTED_MODULE_4__.SelectorForAssistantsToAddToEventComponent),
/* harmony export */   "SelectorForDriverToAddToEventComponent": () => (/* reexport safe */ _selector_for_driver_to_add_to_event_selector_for_driver_to_add_to_event_component__WEBPACK_IMPORTED_MODULE_5__.SelectorForDriverToAddToEventComponent),
/* harmony export */   "SolveDriverCheckinConflictComponent": () => (/* reexport safe */ _solve_driver_checkin_conflict_solve_driver_checkin_conflict_component__WEBPACK_IMPORTED_MODULE_6__.SolveDriverCheckinConflictComponent)
/* harmony export */ });
/* harmony import */ var _card_founduser_lg_card_founduser_lg_component__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./card-founduser-lg/card-founduser-lg.component */ 30834);
/* harmony import */ var _justify_self_invite_without_locator_justify_self_invite_without_locator_component__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./justify-self-invite-without-locator/justify-self-invite-without-locator.component */ 72113);
/* harmony import */ var _logistic_justify_self_invite_with_locator_logistic_justify_self_invite_with_locator_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./logistic-justify-self-invite-with-locator/logistic-justify-self-invite-with-locator.component */ 45003);
/* harmony import */ var _select_logistic_event_type_modal_select_logistic_event_type_modal_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./select-logistic-event-type-modal/select-logistic-event-type-modal.component */ 70534);
/* harmony import */ var _selector_for_assistants_to_add_to_event_selector_for_assistants_to_add_to_event_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./selector-for-assistants-to-add-to-event/selector-for-assistants-to-add-to-event.component */ 82366);
/* harmony import */ var _selector_for_driver_to_add_to_event_selector_for_driver_to_add_to_event_component__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./selector-for-driver-to-add-to-event/selector-for-driver-to-add-to-event.component */ 33200);
/* harmony import */ var _solve_driver_checkin_conflict_solve_driver_checkin_conflict_component__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./solve-driver-checkin-conflict/solve-driver-checkin-conflict.component */ 73543);









/***/ }),

/***/ 72113:
/*!*********************************************************************************************************************************!*\
  !*** ./src/app/logistic-events/components/justify-self-invite-without-locator/justify-self-invite-without-locator.component.ts ***!
  \*********************************************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "JustifySelfInviteWithoutLocatorComponent": () => (/* binding */ JustifySelfInviteWithoutLocatorComponent)
/* harmony export */ });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ 45449);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_angular_core__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _shared_services__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @shared/services */ 17253);
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/forms */ 2508);
/* harmony import */ var _ionic_angular__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @ionic/angular */ 93819);
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/common */ 90944);
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_angular_common__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _ngx_translate_core__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @ngx-translate/core */ 38699);






function JustifySelfInviteWithoutLocatorComponent_div_19_div_1_Template(rf, ctx) { if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 16);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
    const e_r2 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", e_r2.message, " ");
} }
function JustifySelfInviteWithoutLocatorComponent_div_19_Template(rf, ctx) { if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 14);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, JustifySelfInviteWithoutLocatorComponent_div_19_div_1_Template, 2, 1, "div", 15);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
    const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx_r0.getFieldInputValidationErrors("reason"));
} }
class JustifySelfInviteWithoutLocatorComponent {
    constructor(ngZoneService, createLogisticEventService, formBuilder, modalController, notificatorService, translateConfigService) {
        this.ngZoneService = ngZoneService;
        this.createLogisticEventService = createLogisticEventService;
        this.formBuilder = formBuilder;
        this.modalController = modalController;
        this.notificatorService = notificatorService;
        this.translateConfigService = translateConfigService;
        this.reasonFormErrors = [];
        this.onClose = () => {
            this.modalController.dismiss({
                reason: null
            });
        };
        this.onSubmit = () => {
            const reason = this.reasonForm.controls.reason.value;
            const data = {
                reason
            };
            const validationResult = this.validateInput(data);
            if (!!validationResult.length) {
                this.setValidationErrors(validationResult);
                const notification = {
                    title: this.translateConfigService.translate('TOAST_INVALID_DATA_TITLE'),
                    message: this.translateConfigService.translate('TOAST_INVALID_DATA_NESSAGE'),
                    type: 'error'
                };
                this.notificatorService.notify(notification);
            }
            else {
                this.modalController.dismiss({
                    reason
                });
            }
        };
        this.validateInput = data => {
            const errors = [];
            const reasonInputValidationErrors = this.validateReasonInput(data);
            if (reasonInputValidationErrors) {
                errors.push(reasonInputValidationErrors);
            }
            return errors;
        };
        this.validateReasonInput = data => {
            if (!data.reason || data.reason.length < 1) {
                return {
                    message: this.translateConfigService.translate('MD_JUSTIFY_INVITE_WITOUT_LOCATOR_JUSTIFICATION_PROVIDED'),
                    field: 'reason'
                };
            }
            return null;
        };
        this.setValidationErrors = errors => {
            this.reasonFormErrors = errors;
        };
        this.thereIsFieldInputValidationErrors = field => this.reasonFormErrors.find(e => e.field === field);
        this.getFieldInputValidationErrors = field => this.reasonFormErrors.filter(e => e.field === field);
    }
    ngOnInit() {
        this.reasonForm = this.formBuilder.group({
            reason: ['']
        });
    }
}
JustifySelfInviteWithoutLocatorComponent.ɵfac = function JustifySelfInviteWithoutLocatorComponent_Factory(t) { return new (t || JustifySelfInviteWithoutLocatorComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_1__.NgZoneService), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_1__.CreateLogisticEventService), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_3__.UntypedFormBuilder), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_ionic_angular__WEBPACK_IMPORTED_MODULE_4__.ModalController), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_1__.NotificatorService), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_1__.TranslateConfigService)); };
JustifySelfInviteWithoutLocatorComponent.ɵcmp = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: JustifySelfInviteWithoutLocatorComponent, selectors: [["app-justify-self-invite-without-locator"]], decls: 25, vars: 15, consts: [[3, "ngClass"], [1, "content"], [1, "modal-container"], [1, "modal-title"], [1, "button-holder"], [1, "back", 3, "click"], [1, "title"], [1, "modal-body"], [3, "formGroup", "ngSubmit"], [1, "input-holder"], ["maxlength", "55", "id", "reason", "formControlName", "reason", 3, "placeholder"], ["class", "errors", 4, "ngIf"], [1, "modal-footer"], ["type", "submit", 3, "click"], [1, "errors"], ["class", "error", 4, "ngFor", "ngForOf"], [1, "error"]], template: function JustifySelfInviteWithoutLocatorComponent_Template(rf, ctx) { if (rf & 1) {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 0)(1, "div", 1)(2, "div", 2)(3, "div", 3)(4, "div", 4)(5, "button", 5);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function JustifySelfInviteWithoutLocatorComponent_Template_button_click_5_listener() { return ctx.onClose(); });
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](6);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](7, "translate");
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "div", 6);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](9);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](10, "translate");
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](11, "div", 7)(12, "ion-row")(13, "ion-col")(14, "form", 8);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("ngSubmit", function JustifySelfInviteWithoutLocatorComponent_Template_form_ngSubmit_14_listener() { return ctx.onSubmit(); });
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](15, "div", 9)(16, "textarea", 10);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](17, "translate");
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](18, "                ");
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](19, JustifySelfInviteWithoutLocatorComponent_div_19_Template, 2, 1, "div", 11);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()()()()();
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](20, "div", 12)(21, "div", 4)(22, "button", 13);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function JustifySelfInviteWithoutLocatorComponent_Template_button_click_22_listener() { return ctx.onSubmit(); });
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](23);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](24, "translate");
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()()()()()();
    } if (rf & 2) {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngClass", "selector");
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](6);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind1"](7, 7, "BTN_BACK"));
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind1"](10, 9, "MD_JUSTIFY_INVITE_WITOUT_LOCATOR_TITLE"));
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("formGroup", ctx.reasonForm);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("placeholder", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind1"](17, 11, "MD_JUSTIFY_INVITE_WITOUT_LOCATOR_INPUT"));
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.thereIsFieldInputValidationErrors("reason"));
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind1"](24, 13, "MD_JUSTIFY_INVITE_WITOUT_LOCATOR_BTN_CONFIRM_REFUSAL"), " ");
    } }, dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_2__.NgClass, _angular_common__WEBPACK_IMPORTED_MODULE_2__.NgForOf, _angular_common__WEBPACK_IMPORTED_MODULE_2__.NgIf, _ionic_angular__WEBPACK_IMPORTED_MODULE_4__.IonCol, _ionic_angular__WEBPACK_IMPORTED_MODULE_4__.IonRow, _angular_forms__WEBPACK_IMPORTED_MODULE_3__["ɵNgNoValidate"], _angular_forms__WEBPACK_IMPORTED_MODULE_3__.DefaultValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_3__.NgControlStatus, _angular_forms__WEBPACK_IMPORTED_MODULE_3__.NgControlStatusGroup, _angular_forms__WEBPACK_IMPORTED_MODULE_3__.MaxLengthValidator, _angular_forms__WEBPACK_IMPORTED_MODULE_3__.FormGroupDirective, _angular_forms__WEBPACK_IMPORTED_MODULE_3__.FormControlName, _ngx_translate_core__WEBPACK_IMPORTED_MODULE_5__.TranslatePipe], styles: [".selector[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%] {\n  height: 100vh;\n}\n.selector[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .modal-container[_ngcontent-%COMP%] {\n  box-shadow: 0px -6px 3px rgba(0, 0, 0, 0.1);\n  margin-top: 0;\n  transition: margin-top 1s ease;\n  background-color: #fff;\n  height: 100%;\n  overflow: scroll;\n}\n.selector[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .modal-container[_ngcontent-%COMP%]   .modal-title[_ngcontent-%COMP%] {\n  display: flex;\n  padding-top: 1em;\n  justify-content: center;\n  align-items: center;\n  flex-direction: column;\n}\n.selector[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .modal-container[_ngcontent-%COMP%]   .modal-title[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%] {\n  font-size: initial !important;\n  font-weight: bold;\n  text-align: center;\n  margin: 32px;\n  margin-bottom: 8px;\n}\n.selector[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .modal-container[_ngcontent-%COMP%]   .modal-title[_ngcontent-%COMP%]   .button-holder[_ngcontent-%COMP%] {\n  justify-content: center;\n  margin: 0;\n}\n.selector[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .modal-container[_ngcontent-%COMP%]   .input-holder[_ngcontent-%COMP%] {\n  margin-top: 8px;\n  display: flex;\n  justify-content: center;\n  align-items: center;\n  flex-direction: column;\n}\n.selector[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .modal-container[_ngcontent-%COMP%]   .input-holder[_ngcontent-%COMP%]   .upper-options[_ngcontent-%COMP%] {\n  display: flex;\n  justify-content: center;\n  align-items: center;\n}\n.selector[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .modal-container[_ngcontent-%COMP%]   .input-holder[_ngcontent-%COMP%]   .upper-options[_ngcontent-%COMP%]   .new-holder[_ngcontent-%COMP%] {\n  margin-top: 18px;\n}\n.selector[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .modal-container[_ngcontent-%COMP%]   .input-holder[_ngcontent-%COMP%]   .upper-options[_ngcontent-%COMP%]   .new-holder[_ngcontent-%COMP%]   .button-holder[_ngcontent-%COMP%] {\n  margin-top: 0;\n}\n.selector[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .modal-container[_ngcontent-%COMP%]   .modal-body[_ngcontent-%COMP%]   textarea[_ngcontent-%COMP%] {\n  -webkit-appearance: none;\n     -moz-appearance: none;\n          appearance: none;\n  border: 1px solid #eee;\n  border-radius: 8px;\n  color: #656768;\n  width: 100%;\n  padding: 8px 8px;\n  margin-top: 18px;\n}\n.selector[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .modal-container[_ngcontent-%COMP%]   .modal-body[_ngcontent-%COMP%]   textarea[_ngcontent-%COMP%]:focus {\n  border: 1px solid #656768;\n  outline: none;\n}\n.selector[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .modal-container[_ngcontent-%COMP%]   .modal-footer[_ngcontent-%COMP%]   .button-holder[_ngcontent-%COMP%] {\n  display: flex;\n  justify-content: center;\n  align-items: center;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImp1c3RpZnktc2VsZi1pbnZpdGUtd2l0aG91dC1sb2NhdG9yLmNvbXBvbmVudC5zY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUNFO0VBQ0UsYUFBQTtBQUFKO0FBRUk7RUFDRSwyQ0FBQTtFQUNBLGFBQUE7RUFDQSw4QkFBQTtFQUNBLHNCQUFBO0VBQ0EsWUFBQTtFQUNBLGdCQUFBO0FBQU47QUFFTTtFQUNFLGFBQUE7RUFDQSxnQkFBQTtFQUNBLHVCQUFBO0VBQ0EsbUJBQUE7RUFDQSxzQkFBQTtBQUFSO0FBRVE7RUFDRSw2QkFBQTtFQUNBLGlCQUFBO0VBQ0Esa0JBQUE7RUFDQSxZQUFBO0VBQ0Esa0JBQUE7QUFBVjtBQUdRO0VBQ0UsdUJBQUE7RUFDQSxTQUFBO0FBRFY7QUFLTTtFQUNFLGVBQUE7RUFDQSxhQUFBO0VBQ0EsdUJBQUE7RUFDQSxtQkFBQTtFQUNBLHNCQUFBO0FBSFI7QUFLUTtFQUNFLGFBQUE7RUFDQSx1QkFBQTtFQUNBLG1CQUFBO0FBSFY7QUFLVTtFQUNFLGdCQUFBO0FBSFo7QUFLWTtFQUNFLGFBQUE7QUFIZDtBQVVRO0VBQ0Usd0JBQUE7S0FBQSxxQkFBQTtVQUFBLGdCQUFBO0VBQ0Esc0JBQUE7RUFDQSxrQkFBQTtFQUNBLGNBQUE7RUFDQSxXQUFBO0VBQ0EsZ0JBQUE7RUFDQSxnQkFBQTtBQVJWO0FBVVU7RUFDRSx5QkFBQTtFQUNBLGFBQUE7QUFSWjtBQWNRO0VBQ0UsYUFBQTtFQUNBLHVCQUFBO0VBQ0EsbUJBQUE7QUFaViIsImZpbGUiOiJqdXN0aWZ5LXNlbGYtaW52aXRlLXdpdGhvdXQtbG9jYXRvci5jb21wb25lbnQuc2NzcyIsInNvdXJjZXNDb250ZW50IjpbIi5zZWxlY3RvciB7XG4gIC5jb250ZW50IHtcbiAgICBoZWlnaHQ6IDEwMHZoO1xuXG4gICAgLm1vZGFsLWNvbnRhaW5lciB7XG4gICAgICBib3gtc2hhZG93OiAwcHggLTZweCAzcHggcmdiYSgwLCAwLCAwLCAwLjEpO1xuICAgICAgbWFyZ2luLXRvcDogMDtcbiAgICAgIHRyYW5zaXRpb246IG1hcmdpbi10b3AgMXMgZWFzZTtcbiAgICAgIGJhY2tncm91bmQtY29sb3I6ICNmZmY7XG4gICAgICBoZWlnaHQ6IDEwMCU7XG4gICAgICBvdmVyZmxvdzogc2Nyb2xsO1xuXG4gICAgICAubW9kYWwtdGl0bGUge1xuICAgICAgICBkaXNwbGF5OiBmbGV4O1xuICAgICAgICBwYWRkaW5nLXRvcDogMWVtO1xuICAgICAgICBqdXN0aWZ5LWNvbnRlbnQ6IGNlbnRlcjtcbiAgICAgICAgYWxpZ24taXRlbXM6IGNlbnRlcjtcbiAgICAgICAgZmxleC1kaXJlY3Rpb246IGNvbHVtbjtcblxuICAgICAgICAudGl0bGUge1xuICAgICAgICAgIGZvbnQtc2l6ZTogaW5pdGlhbCAhaW1wb3J0YW50O1xuICAgICAgICAgIGZvbnQtd2VpZ2h0OiBib2xkO1xuICAgICAgICAgIHRleHQtYWxpZ246IGNlbnRlcjtcbiAgICAgICAgICBtYXJnaW46IDMycHg7XG4gICAgICAgICAgbWFyZ2luLWJvdHRvbTogOHB4O1xuICAgICAgICB9XG5cbiAgICAgICAgLmJ1dHRvbi1ob2xkZXIge1xuICAgICAgICAgIGp1c3RpZnktY29udGVudDogY2VudGVyO1xuICAgICAgICAgIG1hcmdpbjogMDtcbiAgICAgICAgfVxuICAgICAgfVxuXG4gICAgICAuaW5wdXQtaG9sZGVyIHtcbiAgICAgICAgbWFyZ2luLXRvcDogOHB4O1xuICAgICAgICBkaXNwbGF5OiBmbGV4O1xuICAgICAgICBqdXN0aWZ5LWNvbnRlbnQ6IGNlbnRlcjtcbiAgICAgICAgYWxpZ24taXRlbXM6IGNlbnRlcjtcbiAgICAgICAgZmxleC1kaXJlY3Rpb246IGNvbHVtbjtcblxuICAgICAgICAudXBwZXItb3B0aW9ucyB7XG4gICAgICAgICAgZGlzcGxheTogZmxleDtcbiAgICAgICAgICBqdXN0aWZ5LWNvbnRlbnQ6IGNlbnRlcjtcbiAgICAgICAgICBhbGlnbi1pdGVtczogY2VudGVyO1xuXG4gICAgICAgICAgLm5ldy1ob2xkZXIge1xuICAgICAgICAgICAgbWFyZ2luLXRvcDogMThweDtcblxuICAgICAgICAgICAgLmJ1dHRvbi1ob2xkZXIge1xuICAgICAgICAgICAgICBtYXJnaW4tdG9wOiAwO1xuICAgICAgICAgICAgfVxuICAgICAgICAgIH1cbiAgICAgICAgfVxuICAgICAgfVxuXG4gICAgICAubW9kYWwtYm9keSB7XG4gICAgICAgIHRleHRhcmVhIHtcbiAgICAgICAgICBhcHBlYXJhbmNlOiBub25lO1xuICAgICAgICAgIGJvcmRlcjogMXB4IHNvbGlkICNlZWU7XG4gICAgICAgICAgYm9yZGVyLXJhZGl1czogOHB4O1xuICAgICAgICAgIGNvbG9yOiAjNjU2NzY4O1xuICAgICAgICAgIHdpZHRoOiAxMDAlO1xuICAgICAgICAgIHBhZGRpbmc6IDhweCA4cHg7XG4gICAgICAgICAgbWFyZ2luLXRvcDogMThweDtcblxuICAgICAgICAgICY6Zm9jdXMge1xuICAgICAgICAgICAgYm9yZGVyOiAxcHggc29saWQgIzY1Njc2ODtcbiAgICAgICAgICAgIG91dGxpbmU6IG5vbmU7XG4gICAgICAgICAgfVxuICAgICAgICB9XG4gICAgICB9XG5cbiAgICAgIC5tb2RhbC1mb290ZXIge1xuICAgICAgICAuYnV0dG9uLWhvbGRlciB7XG4gICAgICAgICAgZGlzcGxheTogZmxleDtcbiAgICAgICAgICBqdXN0aWZ5LWNvbnRlbnQ6IGNlbnRlcjtcbiAgICAgICAgICBhbGlnbi1pdGVtczogY2VudGVyO1xuICAgICAgICB9XG4gICAgICB9XG4gICAgfVxuICB9XG59XG4iXX0= */"] });


/***/ }),

/***/ 45003:
/*!*********************************************************************************************************************************************!*\
  !*** ./src/app/logistic-events/components/logistic-justify-self-invite-with-locator/logistic-justify-self-invite-with-locator.component.ts ***!
  \*********************************************************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "LogisticJustifySelfInviteWithLocatorComponent": () => (/* binding */ LogisticJustifySelfInviteWithLocatorComponent)
/* harmony export */ });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ 45449);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_angular_core__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/forms */ 2508);
/* harmony import */ var _ionic_angular__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @ionic/angular */ 93819);
/* harmony import */ var _shared_services__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @shared/services */ 17253);
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/common */ 90944);
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_angular_common__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _ngx_translate_core__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @ngx-translate/core */ 38699);






function LogisticJustifySelfInviteWithLocatorComponent_ng_container_12_Template(rf, ctx) { if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerStart"](0);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 16)(2, "div", 17);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](4, "translate");
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "div", 18)(6, "div", 19);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](7);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerEnd"]();
} if (rf & 2) {
    const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind1"](4, 3, "MD_JUSTIFY_LG_INVITE_WITOUT_LOCATOR_DESTINATION"), " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate2"]("", ctx_r0.data == null ? null : ctx_r0.data.firstName, " ", ctx_r0.data == null ? null : ctx_r0.data.lastName, "");
} }
function LogisticJustifySelfInviteWithLocatorComponent_div_22_div_1_Template(rf, ctx) { if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 22);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
    const e_r3 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", e_r3.message, " ");
} }
function LogisticJustifySelfInviteWithLocatorComponent_div_22_Template(rf, ctx) { if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 20);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, LogisticJustifySelfInviteWithLocatorComponent_div_22_div_1_Template, 2, 1, "div", 21);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx_r1.getFieldInputValidationErrors("reason"));
} }
const _c0 = function (a0) { return { "no-margim": a0 }; };
class LogisticJustifySelfInviteWithLocatorComponent {
    constructor(formBuilder, modalController, notificatorService, translateConfigService) {
        this.formBuilder = formBuilder;
        this.modalController = modalController;
        this.notificatorService = notificatorService;
        this.translateConfigService = translateConfigService;
        this.data = null;
        this.reasonFormErrors = [];
        this.onClose = () => {
            this.modalController.dismiss({
                reason: null
            });
        };
        this.onSubmit = () => {
            const reason = this.reasonForm.controls.reason.value;
            const data = {
                reason
            };
            const validationResult = this.validateInput(data);
            if (!!validationResult.length) {
                this.setValidationErrors(validationResult);
                const notification = {
                    title: this.translateConfigService.translate('TOAST_INVALID_DATA_TITLE'),
                    message: this.translateConfigService.translate('TOAST_INVALID_DATA_NESSAGE'),
                    type: 'error'
                };
                this.notificatorService.notify(notification);
            }
            else {
                this.modalController.dismiss({
                    reason
                });
            }
        };
        this.validateInput = data => {
            const errors = [];
            const reasonInputValidationErrors = this.validateReasonInput(data);
            if (reasonInputValidationErrors) {
                errors.push(reasonInputValidationErrors);
            }
            return errors;
        };
        this.validateReasonInput = data => {
            if (!data.reason || data.reason.length < 1) {
                return {
                    message: this.translateConfigService.translate('MD_JUSTIFY_LG_INVITE_WITOUT_LOCATOR_JUSTIFICATION_PROVIDED'),
                    field: 'reason'
                };
            }
            return null;
        };
        this.setValidationErrors = errors => {
            this.reasonFormErrors = errors;
        };
        this.thereIsFieldInputValidationErrors = field => this.reasonFormErrors.find(e => e.field === field);
        this.getFieldInputValidationErrors = field => this.reasonFormErrors.filter(e => e.field === field);
    }
    ngOnInit() {
        this.reasonForm = this.formBuilder.group({
            reason: ['']
        });
    }
}
LogisticJustifySelfInviteWithLocatorComponent.ɵfac = function LogisticJustifySelfInviteWithLocatorComponent_Factory(t) { return new (t || LogisticJustifySelfInviteWithLocatorComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_3__.UntypedFormBuilder), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_ionic_angular__WEBPACK_IMPORTED_MODULE_4__.ModalController), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_1__.NotificatorService), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_1__.TranslateConfigService)); };
LogisticJustifySelfInviteWithLocatorComponent.ɵcmp = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: LogisticJustifySelfInviteWithLocatorComponent, selectors: [["app-logistic-justify-self-invite-with-locator"]], inputs: { data: "data" }, decls: 28, vars: 23, consts: [[3, "ngClass"], [1, "content"], [1, "modal-container"], [1, "modal-title"], [1, "button-holder"], [1, "back", 3, "click"], [1, "title"], [1, "modal-body"], [4, "ngIf"], [3, "formGroup", "ngSubmit"], [1, "input-holder", 3, "ngClass"], ["maxlength", "55", "id", "reason", "formControlName", "reason", 3, "ngClass", "placeholder"], [1, "count"], ["class", "errors", 4, "ngIf"], [1, "modal-footer"], ["type", "submit", 3, "click"], [1, "destination-holder", 2, "margin-top", "0", "padding", "0 2.5em"], [1, "destination-label"], [1, "destination-box"], [1, "name"], [1, "errors"], ["class", "error", 4, "ngFor", "ngForOf"], [1, "error"]], template: function LogisticJustifySelfInviteWithLocatorComponent_Template(rf, ctx) { if (rf & 1) {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 0)(1, "div", 1)(2, "div", 2)(3, "div", 3)(4, "div", 4)(5, "button", 5);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function LogisticJustifySelfInviteWithLocatorComponent_Template_button_click_5_listener() { return ctx.onClose(); });
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](6);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](7, "translate");
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "div", 6);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](9);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](10, "translate");
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](11, "div", 7);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](12, LogisticJustifySelfInviteWithLocatorComponent_ng_container_12_Template, 8, 5, "ng-container", 8);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](13, "ion-row")(14, "ion-col")(15, "form", 9);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("ngSubmit", function LogisticJustifySelfInviteWithLocatorComponent_Template_form_ngSubmit_15_listener() { return ctx.onSubmit(); });
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](16, "div", 10)(17, "textarea", 11);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](18, "translate");
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](19, "                ");
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](20, "div", 12);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](21);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](22, LogisticJustifySelfInviteWithLocatorComponent_div_22_Template, 2, 1, "div", 13);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()()()()();
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](23, "div", 14)(24, "div", 4)(25, "button", 15);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function LogisticJustifySelfInviteWithLocatorComponent_Template_button_click_25_listener() { return ctx.onSubmit(); });
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](26);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](27, "translate");
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()()()()()();
    } if (rf & 2) {
        let tmp_8_0;
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngClass", "selector");
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](6);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind1"](7, 11, "BTN_BACK"));
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind1"](10, 13, "MD_JUSTIFY_LG_INVITE_WITOUT_LOCATOR_TITLE"));
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.data == null ? null : ctx.data.event);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("formGroup", ctx.reasonForm);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction1"](19, _c0, (ctx.data == null ? null : ctx.data.event) ? "no-margim" : ""));
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction1"](21, _c0, (ctx.data == null ? null : ctx.data.event) ? "no-margim" : ""))("placeholder", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind1"](18, 15, "MD_JUSTIFY_LG_INVITE_WITOUT_LOCATOR_INPUT"));
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"]("", (ctx.reasonForm == null ? null : (tmp_8_0 = ctx.reasonForm.get("reason")) == null ? null : tmp_8_0.value == null ? null : tmp_8_0.value.length) || 0, "/55");
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.thereIsFieldInputValidationErrors("reason"));
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind1"](27, 17, "MD_JUSTIFY_LG_INVITE_WITOUT_LOCATOR_BTN_CONFIRM_REFUSAL"), " ");
    } }, dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_2__.NgClass, _angular_common__WEBPACK_IMPORTED_MODULE_2__.NgForOf, _angular_common__WEBPACK_IMPORTED_MODULE_2__.NgIf, _ionic_angular__WEBPACK_IMPORTED_MODULE_4__.IonCol, _ionic_angular__WEBPACK_IMPORTED_MODULE_4__.IonRow, _angular_forms__WEBPACK_IMPORTED_MODULE_3__["ɵNgNoValidate"], _angular_forms__WEBPACK_IMPORTED_MODULE_3__.DefaultValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_3__.NgControlStatus, _angular_forms__WEBPACK_IMPORTED_MODULE_3__.NgControlStatusGroup, _angular_forms__WEBPACK_IMPORTED_MODULE_3__.MaxLengthValidator, _angular_forms__WEBPACK_IMPORTED_MODULE_3__.FormGroupDirective, _angular_forms__WEBPACK_IMPORTED_MODULE_3__.FormControlName, _ngx_translate_core__WEBPACK_IMPORTED_MODULE_5__.TranslatePipe], styles: ["ion-content.selector.ios[_ngcontent-%COMP%] {\n  --offset-top: 0px !important;\n}\n\n.selector[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%] {\n  height: auto;\n  max-height: 100%;\n}\n\n.selector[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .modal-container[_ngcontent-%COMP%] {\n  box-shadow: 0px -6px 3px rgba(0, 0, 0, 0.1);\n  margin-top: 0;\n  transition: margin-top 1s ease;\n  background-color: #fff;\n  height: auto;\n  max-height: 100%;\n  overflow-y: auto;\n}\n\n.selector[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .modal-container[_ngcontent-%COMP%]   .modal-title[_ngcontent-%COMP%] {\n  display: flex;\n  padding-top: 1em;\n  justify-content: center;\n  align-items: center;\n  flex-direction: column;\n}\n\n.selector[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .modal-container[_ngcontent-%COMP%]   .modal-title[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%] {\n  font-size: initial !important;\n  font-weight: bold;\n  text-align: center;\n  margin: 32px;\n  margin-bottom: 8px;\n}\n\n.selector[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .modal-container[_ngcontent-%COMP%]   .modal-title[_ngcontent-%COMP%]   .button-holder[_ngcontent-%COMP%] {\n  justify-content: center;\n  margin: 0;\n}\n\n.selector[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .modal-container[_ngcontent-%COMP%]   .input-holder[_ngcontent-%COMP%] {\n  margin-top: 8px;\n  display: flex;\n  justify-content: center;\n  align-items: center;\n  flex-direction: column;\n}\n\n.selector[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .modal-container[_ngcontent-%COMP%]   .input-holder[_ngcontent-%COMP%]   .upper-options[_ngcontent-%COMP%] {\n  display: flex;\n  justify-content: center;\n  align-items: center;\n}\n\n.selector[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .modal-container[_ngcontent-%COMP%]   .input-holder[_ngcontent-%COMP%]   .upper-options[_ngcontent-%COMP%]   .new-holder[_ngcontent-%COMP%] {\n  margin-top: 18px;\n}\n\n.selector[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .modal-container[_ngcontent-%COMP%]   .input-holder[_ngcontent-%COMP%]   .upper-options[_ngcontent-%COMP%]   .new-holder[_ngcontent-%COMP%]   .button-holder[_ngcontent-%COMP%] {\n  margin-top: 0;\n}\n\n.selector[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .modal-container[_ngcontent-%COMP%]   .modal-body[_ngcontent-%COMP%]   .destination-label[_ngcontent-%COMP%] {\n  font-weight: 500;\n  font-size: 14px;\n  color: #333333;\n  width: 100%;\n  text-align: left;\n  margin-bottom: 6px;\n}\n\n.selector[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .modal-container[_ngcontent-%COMP%]   .modal-body[_ngcontent-%COMP%]   .destination-box[_ngcontent-%COMP%] {\n  background: #f5f5f5;\n  border: 1px solid #e0e0e0;\n  border-radius: 4px;\n  padding: 8px;\n  width: 100%;\n  display: flex;\n  flex-direction: row;\n  align-items: center;\n  justify-content: flex-start;\n  gap: 8px;\n}\n\n.selector[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .modal-container[_ngcontent-%COMP%]   .modal-body[_ngcontent-%COMP%]   .destination-box[_ngcontent-%COMP%]   .photo[_ngcontent-%COMP%] {\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  width: auto;\n}\n\n.selector[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .modal-container[_ngcontent-%COMP%]   .modal-body[_ngcontent-%COMP%]   .destination-box[_ngcontent-%COMP%]   .photo[_ngcontent-%COMP%]   ion-avatar[_ngcontent-%COMP%] {\n  width: 48px;\n  height: 48px;\n}\n\n.selector[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .modal-container[_ngcontent-%COMP%]   .modal-body[_ngcontent-%COMP%]   .destination-box[_ngcontent-%COMP%]   .photo[_ngcontent-%COMP%]   .initials.escort[_ngcontent-%COMP%] {\n  width: 48px !important;\n  height: 48px !important;\n  min-width: 48px !important;\n  border-radius: 50%;\n  display: flex;\n  justify-content: center;\n  align-items: center;\n  background-color: #eee;\n}\n\n.selector[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .modal-container[_ngcontent-%COMP%]   .modal-body[_ngcontent-%COMP%]   .destination-box[_ngcontent-%COMP%]   .name[_ngcontent-%COMP%] {\n  text-align: left;\n  font-size: 12px;\n  color: #666666;\n  width: auto;\n}\n\n@media (max-width: 480px) {\n  .selector[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .modal-container[_ngcontent-%COMP%]   .modal-body[_ngcontent-%COMP%]   .destination-box[_ngcontent-%COMP%] {\n    padding: 6px;\n    gap: 6px;\n  }\n  .selector[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .modal-container[_ngcontent-%COMP%]   .modal-body[_ngcontent-%COMP%]   .destination-label[_ngcontent-%COMP%] {\n    font-size: 13px;\n  }\n  .selector[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .modal-container[_ngcontent-%COMP%]   .modal-body[_ngcontent-%COMP%]   .destination-box[_ngcontent-%COMP%]   .photo[_ngcontent-%COMP%]   ion-avatar[_ngcontent-%COMP%], .selector[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .modal-container[_ngcontent-%COMP%]   .modal-body[_ngcontent-%COMP%]   .destination-box[_ngcontent-%COMP%]   .photo[_ngcontent-%COMP%]   .initials.escort[_ngcontent-%COMP%] {\n    width: 44px;\n    height: 44px;\n    min-width: 44px;\n  }\n  .selector[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .modal-container[_ngcontent-%COMP%]   .modal-body[_ngcontent-%COMP%]   .destination-box[_ngcontent-%COMP%]   .name[_ngcontent-%COMP%] {\n    font-size: 12px;\n  }\n}\n\n.selector[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .modal-container[_ngcontent-%COMP%]   .modal-body[_ngcontent-%COMP%]   .count[_ngcontent-%COMP%] {\n  align-self: flex-start;\n  font-size: 11px;\n  color: #bbb;\n  margin-top: 2px;\n}\n\n.selector[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .modal-container[_ngcontent-%COMP%]   .modal-body[_ngcontent-%COMP%]   textarea.no-margim[_ngcontent-%COMP%] {\n  margin-top: 0;\n}\n\n.selector[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .modal-container[_ngcontent-%COMP%]   .modal-body[_ngcontent-%COMP%]   textarea[_ngcontent-%COMP%] {\n  -webkit-appearance: none;\n     -moz-appearance: none;\n          appearance: none;\n  border: 1px solid #eee;\n  border-radius: 8px;\n  color: #656768;\n  width: 100%;\n  padding: 8px 8px;\n  margin-top: 18px;\n}\n\n.selector[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .modal-container[_ngcontent-%COMP%]   .modal-body[_ngcontent-%COMP%]   textarea[_ngcontent-%COMP%]:focus {\n  border: 1px solid #656768;\n  outline: none;\n}\n\n.selector[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .modal-container[_ngcontent-%COMP%]   .modal-footer[_ngcontent-%COMP%] {\n  margin-bottom: 1em;\n  display: flex;\n  justify-content: center;\n  padding: 1em;\n}\n\n.selector[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .modal-container[_ngcontent-%COMP%]   .modal-footer[_ngcontent-%COMP%]   .button-holder[_ngcontent-%COMP%] {\n  text-align: center;\n  margin: auto;\n  width: 100%;\n  display: flex;\n  justify-content: center;\n}\n/*# sourceMappingURL=data:application/json;base64,[encoded data, 7448 characters] */"] });


/***/ }),

/***/ 70534:
/*!***************************************************************************************************************************!*\
  !*** ./src/app/logistic-events/components/select-logistic-event-type-modal/select-logistic-event-type-modal.component.ts ***!
  \***************************************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "SelectLogisticEventTypeModalComponent": () => (/* binding */ SelectLogisticEventTypeModalComponent)
/* harmony export */ });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ 45449);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_angular_core__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _ionic_angular__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @ionic/angular */ 93819);
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/common */ 90944);
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_angular_common__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _ngx_translate_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @ngx-translate/core */ 38699);




function SelectLogisticEventTypeModalComponent_ion_card_11_Template(rf, ctx) { if (rf & 1) {
    const _r4 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "ion-card", 12);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function SelectLogisticEventTypeModalComponent_ion_card_11_Template_ion_card_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r4); const ctx_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵresetView"](ctx_r3.createNewConventional()); });
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "ion-label")(2, "h6", 13);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](4, "translate");
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "p", 14);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](7, "translate");
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()()();
} if (rf & 2) {
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind1"](4, 2, "MD_EVENT_TYPE_VISITOR"));
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind1"](7, 4, "MD_EVENT_TYPE_VISITOR_NEW_EVENT"), " ");
} }
function SelectLogisticEventTypeModalComponent_ion_card_12_Template(rf, ctx) { if (rf & 1) {
    const _r6 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "ion-card", 12);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function SelectLogisticEventTypeModalComponent_ion_card_12_Template_ion_card_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r6); const ctx_r5 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵresetView"](ctx_r5.createNewEntry()); });
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "ion-label")(2, "h6", 13);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](4, "translate");
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "p", 14);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](7, "translate");
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()()();
} if (rf & 2) {
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind1"](4, 2, "MD_EVENT_TYPE_CARGO_ARRIVAL"), " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind1"](7, 4, "MD_EVENT_TYPE_CARGO_ARRIVAL_NEW"), " ");
} }
function SelectLogisticEventTypeModalComponent_ion_card_13_Template(rf, ctx) { if (rf & 1) {
    const _r8 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "ion-card", 12);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function SelectLogisticEventTypeModalComponent_ion_card_13_Template_ion_card_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r8); const ctx_r7 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵresetView"](ctx_r7.createNewExit()); });
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "ion-label")(2, "h6", 13);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](4, "translate");
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "p", 14);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](7, "translate");
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()()();
} if (rf & 2) {
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind1"](4, 2, "MD_EVENT_TYPE_CARGO_DEPARTURE"));
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind1"](7, 4, "MD_EVENT_TYPE_CARGO_DEPARTURE_NEW"), " ");
} }
class SelectLogisticEventTypeModalComponent {
    constructor(modalController) {
        this.modalController = modalController;
        this.availableTypes = [];
        this.createNewConventional = () => {
            this.modalController.dismiss({
                type: 'CONVENTIONAL'
            });
        };
        this.createNewEntry = () => {
            this.modalController.dismiss({
                type: 'NEW_ENTRY'
            });
        };
        this.createEntryFromExit = () => {
            this.modalController.dismiss({
                type: 'CLONE_EXIT'
            });
        };
        this.createNewExit = () => {
            this.modalController.dismiss({
                type: 'NEW_EXIT'
            });
        };
        this.createExitFromEntry = () => {
            this.modalController.dismiss({
                type: 'CLONE_ENTRY'
            });
        };
        this.back = () => {
            this.modalController.dismiss(null);
        };
    }
}
SelectLogisticEventTypeModalComponent.ɵfac = function SelectLogisticEventTypeModalComponent_Factory(t) { return new (t || SelectLogisticEventTypeModalComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_ionic_angular__WEBPACK_IMPORTED_MODULE_2__.ModalController)); };
SelectLogisticEventTypeModalComponent.ɵcmp = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: SelectLogisticEventTypeModalComponent, selectors: [["app-select-logistic-event-type-modal"]], inputs: { availableTypes: "availableTypes" }, decls: 18, vars: 10, consts: [[3, "ngClass"], [1, "content"], [1, "background"], [1, "modal-container"], [1, "modal-title"], ["tabindex", "1"], [1, "modal-body"], [1, "types"], ["lines", "none", 2, "padding", "0 2px"], ["button", "", "class", "type ion-no-padding", 3, "click", 4, "ngIf"], [1, "modal-footer"], ["mode", "ios", "fill", "clear", 1, "reject", 3, "click"], ["button", "", 1, "type", "ion-no-padding", 3, "click"], [1, "name"], [1, "description", "ion-text-wrap"]], template: function SelectLogisticEventTypeModalComponent_Template(rf, ctx) { if (rf & 1) {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 0)(1, "div", 1);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](2, "div", 2);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "div", 3)(4, "div", 4)(5, "h6", 5);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](6);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](7, "translate");
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "div", 6)(9, "div", 7)(10, "ion-list", 8);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](11, SelectLogisticEventTypeModalComponent_ion_card_11_Template, 8, 6, "ion-card", 9);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](12, SelectLogisticEventTypeModalComponent_ion_card_12_Template, 8, 6, "ion-card", 9);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](13, SelectLogisticEventTypeModalComponent_ion_card_13_Template, 8, 6, "ion-card", 9);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()()();
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](14, "div", 10)(15, "ion-button", 11);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function SelectLogisticEventTypeModalComponent_Template_ion_button_click_15_listener() { return ctx.back(); });
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](16);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](17, "translate");
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()()()()();
    } if (rf & 2) {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngClass", "select-logistic-event-type-modal");
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](6);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind1"](7, 6, "MD_EVENT_TYPE_TITLE"));
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.availableTypes.includes("CONVENTIONAL"));
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.availableTypes.includes("ENTRY"));
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.availableTypes.includes("EXIT"));
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind1"](17, 8, "BTN_BACK"), " ");
    } }, dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_1__.NgClass, _angular_common__WEBPACK_IMPORTED_MODULE_1__.NgIf, _ionic_angular__WEBPACK_IMPORTED_MODULE_2__.IonButton, _ionic_angular__WEBPACK_IMPORTED_MODULE_2__.IonCard, _ionic_angular__WEBPACK_IMPORTED_MODULE_2__.IonLabel, _ionic_angular__WEBPACK_IMPORTED_MODULE_2__.IonList, _ngx_translate_core__WEBPACK_IMPORTED_MODULE_3__.TranslatePipe], styles: [".select-logistic-event-type-modal[_ngcontent-%COMP%] {\n  width: 100vw;\n  transition: height 0.5s ease-in-out;\n  overflow: hidden;\n  z-index: 1000;\n  height: 100vh;\n}\n.select-logistic-event-type-modal[_ngcontent-%COMP%]   h1[_ngcontent-%COMP%], .select-logistic-event-type-modal[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%], .select-logistic-event-type-modal[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%], .select-logistic-event-type-modal[_ngcontent-%COMP%]   h4[_ngcontent-%COMP%], .select-logistic-event-type-modal[_ngcontent-%COMP%]   h5[_ngcontent-%COMP%], .select-logistic-event-type-modal[_ngcontent-%COMP%]   h6[_ngcontent-%COMP%] {\n  all: unset !important;\n}\n.select-logistic-event-type-modal[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%] {\n  height: 100vh;\n  position: absolute;\n  width: 100vw;\n  top: 0;\n  color: #383a3e;\n}\n.select-logistic-event-type-modal[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .background[_ngcontent-%COMP%] {\n  position: absolute;\n  height: 100vh;\n  width: 100vw;\n  background-color: #333;\n  opacity: 0.3;\n  top: 0;\n  transition: opacity 0.5s ease-out;\n}\n.select-logistic-event-type-modal[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .modal-container[_ngcontent-%COMP%] {\n  height: 60vh;\n  background-color: #fff;\n  width: 86vw;\n  margin: auto;\n  border-radius: 8px;\n  padding: 24px;\n  box-shadow: 2px 2px 0 0 rgba(0, 0, 0, 0.1);\n  position: relative;\n  margin-top: 20vh;\n  transition: margin-top 1s ease;\n}\n.select-logistic-event-type-modal[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .modal-container[_ngcontent-%COMP%]   .modal-title[_ngcontent-%COMP%] {\n  text-align: center;\n  font-weight: 500;\n  position: absolute;\n  top: 0;\n  height: 3.5em;\n  line-height: 3.5em;\n  width: calc(100% - 48px);\n  background-color: #fff;\n}\n.select-logistic-event-type-modal[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .modal-container[_ngcontent-%COMP%]   .modal-body[_ngcontent-%COMP%] {\n  position: absolute;\n  height: calc(100% - 7em);\n  width: calc(100% - 48px);\n  top: 3.5em;\n  overflow-y: scroll;\n  text-align: justify;\n  font-size: 0.9em;\n  background-color: #fff;\n}\n.select-logistic-event-type-modal[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .modal-container[_ngcontent-%COMP%]   .modal-body[_ngcontent-%COMP%]   ion-card[_ngcontent-%COMP%] {\n  margin: 0;\n  box-shadow: none;\n}\n.select-logistic-event-type-modal[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .modal-container[_ngcontent-%COMP%]   .modal-body[_ngcontent-%COMP%]   .type[_ngcontent-%COMP%] {\n  padding: 8px 12px;\n  border: 1px solid #eee;\n  border-radius: 4px;\n  margin-bottom: 8px;\n}\n.select-logistic-event-type-modal[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .modal-container[_ngcontent-%COMP%]   .modal-body[_ngcontent-%COMP%]   .type[_ngcontent-%COMP%]   .name[_ngcontent-%COMP%] {\n  font-weight: bold;\n}\n.select-logistic-event-type-modal[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .modal-container[_ngcontent-%COMP%]   .modal-body[_ngcontent-%COMP%]   .type[_ngcontent-%COMP%]   .description[_ngcontent-%COMP%] {\n  color: #656768;\n}\n.select-logistic-event-type-modal[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .modal-container[_ngcontent-%COMP%]   .modal-footer[_ngcontent-%COMP%] {\n  position: absolute;\n  bottom: 0;\n  height: 3.5em;\n  width: calc(100% - 48px);\n  line-height: 3.5em;\n  display: flex;\n  justify-content: center;\n  align-items: center;\n  overflow: hidden;\n  background-color: #fff;\n}\n.select-logistic-event-type-modal[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .modal-container[_ngcontent-%COMP%]   .modal-footer[_ngcontent-%COMP%]   ion-button[_ngcontent-%COMP%] {\n  font-size: 1em;\n  background-color: #fff;\n  color: #656768;\n  padding: 0.75em 1.25em;\n  border-radius: 32px;\n  transition: background-color 0.1s ease-out;\n  height: 36px;\n}\n.select-logistic-event-type-modal[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .modal-container[_ngcontent-%COMP%]   .modal-footer[_ngcontent-%COMP%]   ion-button[_ngcontent-%COMP%]:active {\n  background-color: #eee;\n  color: #656768;\n  transition: background-color 0.1s ease-out;\n}\n.select-logistic-event-type-modal[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .modal-container[_ngcontent-%COMP%]   .modal-footer[_ngcontent-%COMP%]   ion-button.accept[_ngcontent-%COMP%] {\n  color: #0ec254;\n}\n.select-logistic-event-type-modal[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .modal-container[_ngcontent-%COMP%]   .modal-footer[_ngcontent-%COMP%]   ion-button.accept[_ngcontent-%COMP%]:active {\n  background-color: #0ec254;\n  color: #fff;\n  transition: background-color 0.1s ease-out;\n}\n/*# sourceMappingURL=data:application/json;base64,[encoded data, 5260 characters] */"] });


/***/ }),

/***/ 82366:
/*!*****************************************************************************************************************************************!*\
  !*** ./src/app/logistic-events/components/selector-for-assistants-to-add-to-event/selector-for-assistants-to-add-to-event.component.ts ***!
  \*****************************************************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "SelectorForAssistantsToAddToEventComponent": () => (/* binding */ SelectorForAssistantsToAddToEventComponent)
/* harmony export */ });
/* harmony import */ var _Volumes_case_workspace_work_APPS_KA_APP_WORK_NOW_KA_PASS_V2_2_6_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js */ 71670);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ 45449);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_angular_core__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _ionic_angular__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @ionic/angular */ 93819);
/* harmony import */ var _shared_components__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @shared/components */ 7667);
/* harmony import */ var _shared_services__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @shared/services */ 17253);
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @angular/forms */ 2508);
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @angular/common */ 90944);
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_angular_common__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var _card_founduser_lg_card_founduser_lg_component__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../card-founduser-lg/card-founduser-lg.component */ 30834);
/* harmony import */ var _ngx_translate_core__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @ngx-translate/core */ 38699);












function SelectorForAssistantsToAddToEventComponent_div_29_ng_container_7_ng_container_1_Template(rf, ctx) {
  if (rf & 1) {
    const _r7 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();

    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementContainerStart"](0);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "app-card-founduser-lg", 23);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("userSelect", function SelectorForAssistantsToAddToEventComponent_div_29_ng_container_7_ng_container_1_Template_app_card_founduser_lg_userSelect_1_listener() {
      const restoredCtx = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r7);
      const foundUser_r5 = restoredCtx.$implicit;
      const ctx_r6 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](3);
      return _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵresetView"](ctx_r6.onUserSelect(foundUser_r5));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementContainerEnd"]();
  }

  if (rf & 2) {
    const foundUser_r5 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("foundUser", foundUser_r5);
  }
}

function SelectorForAssistantsToAddToEventComponent_div_29_ng_container_7_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementContainerStart"](0);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](1, SelectorForAssistantsToAddToEventComponent_div_29_ng_container_7_ng_container_1_Template, 2, 1, "ng-container", 22);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementContainerEnd"]();
  }

  if (rf & 2) {
    const ctx_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", ctx_r3.foundUsers);
  }
}

function SelectorForAssistantsToAddToEventComponent_div_29_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 20)(1, "div", 7);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipe"](3, "translate");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "div", 21);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipe"](6, "translate");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](7, SelectorForAssistantsToAddToEventComponent_div_29_ng_container_7_Template, 2, 1, "ng-container", 16);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
  }

  if (rf & 2) {
    const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipeBind1"](3, 3, "MD_ASSISTANT_USERS_FOUND"));
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipeBind1"](6, 5, "MD_ASSISTANT_TAP_ITEM"), " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r0.isLoading);
  }
}

function SelectorForAssistantsToAddToEventComponent_ng_container_30_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementContainerStart"](0);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](1, "app-card-founduser-lg", 24);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementContainerEnd"]();
  }

  if (rf & 2) {
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("skeleton", true);
  }
}

class SelectorForAssistantsToAddToEventComponent {
  constructor(ngZoneService, createLogisticEventService, formBuilder, modalController, changeDetectorRef, helperService, logService, userPhotoService) {
    var _this = this;

    this.ngZoneService = ngZoneService;
    this.createLogisticEventService = createLogisticEventService;
    this.formBuilder = formBuilder;
    this.modalController = modalController;
    this.changeDetectorRef = changeDetectorRef;
    this.helperService = helperService;
    this.logService = logService;
    this.userPhotoService = userPhotoService;
    this.page = 0;
    this.size = 15;

    this.onClose = user => {
      this.modalController.dismiss(user);
    };

    this.onUserSelect = user => {
      user.fullName = this.helperService.normalizeName(user.firstName, user.lastName);
      setTimeout(() => {
        this.onClose(user);
      }, 750);
    };

    this.onCreateGuest = /*#__PURE__*/(0,_Volumes_case_workspace_work_APPS_KA_APP_WORK_NOW_KA_PASS_V2_2_6_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* () {
      const modal = yield _this.modalController.create({
        component: _shared_components__WEBPACK_IMPORTED_MODULE_2__.CreateAssistantComponent
      });
      modal.onDidDismiss().then(_this.onModalDismissCallback);
      yield modal.present();
    });

    this.onModalDismissCallback = detail => {
      if (detail && detail.data) {
        this.onUserSelect(detail.data);
      }
    };

    this.onUpdateContactInfoSuccessResponse = contact => {
      console.log('onUpdateContactInfoSuccessResponse');
      console.log('contact:', contact);
    };

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

    this.onInputChange = e => {
      const {
        value
      } = e.target;
      this.infiniteScroll.disabled = false;

      if (this.searchTimeout) {
        clearTimeout(this.searchTimeout);
      }

      this.searchTimeout = setTimeout(() => {
        if (value.length > 1) {
          this.foundUsers = [];
          this.page = 0;
        }

        this.doSearch(value);
      }, 750);
    };

    this.doSearch = searchTerm => {
      // const searchTerms = searchTerm.split(' ');
      // const firstName = searchTerms[0].trim();
      // const lastName = searchTerms.slice(1).join(' ');
      // const data = {
      //   'firstName.contains': firstName ? firstName : ''
      // };
      // if (lastName.trim().length > 0) {
      //   data['lastName.contains'] = lastName.trim();
      // }
      searchTerm = searchTerm.trim();
      const data = {
        searchTerm
      };
      this.dataTerms = data;
      this.createLogisticEventService.getCompanyAssistants(data, this.page, this.size).then(this.handleGetGuestsSuccessResponse).catch(this.handleGetGuestsErrorResponse).finally(() => this.isLoading = true);
    };

    this.handleGetGuestsSuccessResponse = response => {
      console.log('handleGetGuestsSuccessResponse');
      console.log('response:', response);
      this.setFoundUsers(response);
      this.userPhotoService.enrichUsersWithPhotos(response);
    };

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

    this.setFoundUsers = foundUsers => {
      // this.foundUsers = foundUsers.sort((a: any, b: any) => (a.firstName > b.firstName && 1) || -1);
      this.foundUsers = foundUsers;
      this.changeDetectorRef.detectChanges(); // Does not work, but does not hurt either.

      scrollBy(0, 1); // It wasn't detecting changes.
    };
  }

  ngOnInit() {
    this.foundUsers = [];
    this.searchTimeout = null;
    this.userForm = this.formBuilder.group({
      searchTerm: ['']
    });
  }

  ionViewWillEnter() {
    this.onInputChange({
      target: {
        value: ''
      }
    });
  }

  loadData(event) {
    this.page += 1;
    this.loadMore(this.page, event);
  }

  loadMore(page, infiniteScroll) {
    this.createLogisticEventService.getCompanyDrivers(this.dataTerms, page, this.size, !!infiniteScroll).then(drivers => {
      this.isLoading = true;

      if (drivers.length > 0) {
        this.handleGetGuestsSuccessResponse(this.foundUsers.concat(drivers));

        if (this.size > 0) {
          infiniteScroll.target.complete();
        }
      } else {
        infiniteScroll.target.disabled = true;
      }
    }).catch(err => {
      this.handleGetGuestsErrorResponse(err);
      infiniteScroll.target.complete();
      infiniteScroll.target.disabled = true;
    });
  }

}

SelectorForAssistantsToAddToEventComponent.ɵfac = function SelectorForAssistantsToAddToEventComponent_Factory(t) {
  return new (t || SelectorForAssistantsToAddToEventComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_3__.NgZoneService), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_3__.CreateLogisticEventService), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_6__.UntypedFormBuilder), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_ionic_angular__WEBPACK_IMPORTED_MODULE_7__.ModalController), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__.ChangeDetectorRef), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_3__.HelperService), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_3__.LogService), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_3__.UserPhotoService));
};

SelectorForAssistantsToAddToEventComponent.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineComponent"]({
  type: SelectorForAssistantsToAddToEventComponent,
  selectors: [["app-selector-for-assistants-to-add-to-event"]],
  viewQuery: function SelectorForAssistantsToAddToEventComponent_Query(rf, ctx) {
    if (rf & 1) {
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵviewQuery"](_ionic_angular__WEBPACK_IMPORTED_MODULE_7__.IonInfiniteScroll, 5);
    }

    if (rf & 2) {
      let _t;

      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵloadQuery"]()) && (ctx.infiniteScroll = _t.first);
    }
  },
  decls: 35,
  vars: 16,
  consts: [[1, "fix-header-modal-ios", "ion-no-border"], [3, "ngClass"], [1, "content"], [1, "modal-container"], [1, "modal-title"], [1, "button-holder"], [1, "back", 3, "click"], [1, "title"], [1, "modal-body"], [3, "formGroup"], [1, "input-holder"], [1, "upper-options"], ["id", "name", "type", "text", "formControlName", "searchTerm", 3, "placeholder", "keyup"], [1, "new-holder"], ["type", "button", 3, "click"], ["class", "results", 4, "ngIf"], [4, "ngIf"], [1, "modal-footer"], ["threshold", "15%", "position", "bottom", 3, "ionInfinite"], ["IonInfiniteScroll", ""], [1, "results"], [1, "sub-title"], [4, "ngFor", "ngForOf"], ["typeofuser", "assistant", 3, "foundUser", "userSelect"], [3, "skeleton"]],
  template: function SelectorForAssistantsToAddToEventComponent_Template(rf, ctx) {
    if (rf & 1) {
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "ion-header", 0)(1, "ion-toolbar");
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](2, "ion-title");
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()();
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "ion-content", 1)(4, "div", 2)(5, "div", 3)(6, "div", 4)(7, "div", 5)(8, "button", 6);
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function SelectorForAssistantsToAddToEventComponent_Template_button_click_8_listener() {
        return ctx.onClose();
      });
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](9);
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipe"](10, "translate");
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()();
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](11, "div", 7);
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](12);
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipe"](13, "translate");
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()();
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](14, "div", 8)(15, "ion-row")(16, "ion-col")(17, "form", 9)(18, "div", 10)(19, "div", 11)(20, "input", 12);
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("keyup", function SelectorForAssistantsToAddToEventComponent_Template_input_keyup_20_listener($event) {
        return ctx.onInputChange($event);
      });
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipe"](21, "translate");
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](22, "div", 13)(23, "div", 5)(24, "button", 14);
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function SelectorForAssistantsToAddToEventComponent_Template_button_click_24_listener() {
        return ctx.onCreateGuest();
      });
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](25);
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipe"](26, "translate");
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()()()()()()()();
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](27, "ion-row")(28, "ion-col");
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](29, SelectorForAssistantsToAddToEventComponent_div_29_Template, 8, 7, "div", 15);
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](30, SelectorForAssistantsToAddToEventComponent_ng_container_30_Template, 2, 1, "ng-container", 16);
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()()();
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](31, "div", 17);
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()();
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](32, "ion-infinite-scroll", 18, 19);
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("ionInfinite", function SelectorForAssistantsToAddToEventComponent_Template_ion_infinite_scroll_ionInfinite_32_listener($event) {
        return ctx.loadData($event);
      });
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](34, "ion-infinite-scroll-content");
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()();
    }

    if (rf & 2) {
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngClass", "selector");
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](6);
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipeBind1"](10, 8, "MD_ASSISTANT_BTN_CLOSE"), " ");
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipeBind1"](13, 10, "MD_ASSISTANT_TITLE"));
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](5);
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("formGroup", ctx.userForm);
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("placeholder", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipeBind1"](21, 12, "MD_ASSISTANT_INPUT"));
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](5);
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipeBind1"](26, 14, "MD_ASSISTANT_BTN_NEW"), " ");
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", !!ctx.foundUsers.length);
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", !ctx.isLoading);
    }
  },
  dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_4__.NgClass, _angular_common__WEBPACK_IMPORTED_MODULE_4__.NgForOf, _angular_common__WEBPACK_IMPORTED_MODULE_4__.NgIf, _ionic_angular__WEBPACK_IMPORTED_MODULE_7__.IonCol, _ionic_angular__WEBPACK_IMPORTED_MODULE_7__.IonContent, _ionic_angular__WEBPACK_IMPORTED_MODULE_7__.IonHeader, _ionic_angular__WEBPACK_IMPORTED_MODULE_7__.IonInfiniteScroll, _ionic_angular__WEBPACK_IMPORTED_MODULE_7__.IonInfiniteScrollContent, _ionic_angular__WEBPACK_IMPORTED_MODULE_7__.IonRow, _ionic_angular__WEBPACK_IMPORTED_MODULE_7__.IonTitle, _ionic_angular__WEBPACK_IMPORTED_MODULE_7__.IonToolbar, _angular_forms__WEBPACK_IMPORTED_MODULE_6__["ɵNgNoValidate"], _angular_forms__WEBPACK_IMPORTED_MODULE_6__.DefaultValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_6__.NgControlStatus, _angular_forms__WEBPACK_IMPORTED_MODULE_6__.NgControlStatusGroup, _angular_forms__WEBPACK_IMPORTED_MODULE_6__.FormGroupDirective, _angular_forms__WEBPACK_IMPORTED_MODULE_6__.FormControlName, _card_founduser_lg_card_founduser_lg_component__WEBPACK_IMPORTED_MODULE_5__.CardFounduserLgComponent, _ngx_translate_core__WEBPACK_IMPORTED_MODULE_8__.TranslatePipe],
  styles: ["ion-content.selector.ios[_ngcontent-%COMP%] {\n  --offset-top: 0px !important;\n}\nion-content.selector.ios[_ngcontent-%COMP%]   ion-fab.fab[_ngcontent-%COMP%] {\n  position: fixed;\n  margin-top: 10px;\n}\nion-header.fix-header-modal-ios[_ngcontent-%COMP%]   ion-toolbar[_ngcontent-%COMP%] {\n  height: 0px !important;\n  --background: #fff;\n}\n.selector[_ngcontent-%COMP%]   .modal-container[_ngcontent-%COMP%] {\n  box-shadow: 0px -6px 3px rgba(0, 0, 0, 0.1);\n  margin-top: 0;\n  transition: margin-top 1s ease;\n  background-color: #fff;\n  height: 100%;\n  overflow: scroll;\n}\n.selector[_ngcontent-%COMP%]   .modal-container[_ngcontent-%COMP%]   .modal-title[_ngcontent-%COMP%] {\n  display: flex;\n  padding-top: 1.5em;\n  justify-content: center;\n  align-items: center;\n  flex-direction: column;\n}\n.selector[_ngcontent-%COMP%]   .modal-container[_ngcontent-%COMP%]   .modal-title[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%] {\n  font-size: initial !important;\n  font-weight: bold;\n  text-align: center;\n  margin: 32px;\n  margin-bottom: 8px;\n}\n.selector[_ngcontent-%COMP%]   .modal-container[_ngcontent-%COMP%]   .modal-title[_ngcontent-%COMP%]   .button-holder[_ngcontent-%COMP%] {\n  justify-content: center;\n  margin: 0;\n}\n.selector[_ngcontent-%COMP%]   .modal-container[_ngcontent-%COMP%]   .input-holder[_ngcontent-%COMP%] {\n  margin-top: 8px;\n  display: flex;\n  justify-content: center;\n  align-items: center;\n  flex-direction: column;\n  width: 100%;\n}\n.selector[_ngcontent-%COMP%]   .modal-container[_ngcontent-%COMP%]   .input-holder[_ngcontent-%COMP%]   .upper-options[_ngcontent-%COMP%] {\n  display: flex;\n  justify-content: center;\n  align-items: center;\n}\n.selector[_ngcontent-%COMP%]   .modal-container[_ngcontent-%COMP%]   .input-holder[_ngcontent-%COMP%]   .upper-options[_ngcontent-%COMP%]   .new-holder[_ngcontent-%COMP%] {\n  margin-top: 18px;\n}\n.selector[_ngcontent-%COMP%]   .modal-container[_ngcontent-%COMP%]   .input-holder[_ngcontent-%COMP%]   .upper-options[_ngcontent-%COMP%]   .new-holder[_ngcontent-%COMP%]   .button-holder[_ngcontent-%COMP%] {\n  margin-top: 0;\n}\n.selector[_ngcontent-%COMP%]   .modal-container[_ngcontent-%COMP%]   .input-holder[_ngcontent-%COMP%]   .bottom-options[_ngcontent-%COMP%] {\n  display: flex;\n  justify-content: center;\n  align-items: center;\n}\n.selector[_ngcontent-%COMP%]   .modal-container[_ngcontent-%COMP%]   .input-holder[_ngcontent-%COMP%]   .bottom-options[_ngcontent-%COMP%]   .new-holder[_ngcontent-%COMP%] {\n  margin-top: 18px;\n}\n.selector[_ngcontent-%COMP%]   .modal-container[_ngcontent-%COMP%]   .input-holder[_ngcontent-%COMP%]   .bottom-options[_ngcontent-%COMP%]   .new-holder[_ngcontent-%COMP%]   .button-holder[_ngcontent-%COMP%] {\n  margin-top: 0;\n  width: 100%;\n}\n.selector[_ngcontent-%COMP%]   .modal-container[_ngcontent-%COMP%]   .modal-body[_ngcontent-%COMP%]   .results[_ngcontent-%COMP%] {\n  overflow: scroll;\n  height: 100%;\n  padding: 1em;\n}\n.selector[_ngcontent-%COMP%]   .modal-container[_ngcontent-%COMP%]   .modal-body[_ngcontent-%COMP%]   .results[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%] {\n  font-size: initial !important;\n  width: 80%;\n  margin: 0 10% 2px;\n  font-weight: bold;\n  text-align: center;\n}\n.selector[_ngcontent-%COMP%]   .modal-container[_ngcontent-%COMP%]   .modal-body[_ngcontent-%COMP%]   .results[_ngcontent-%COMP%]   .sub-title[_ngcontent-%COMP%] {\n  margin: 10px 0;\n  font-size: 0.9em;\n  background-color: #eee;\n  border: 1px solid #ccc;\n  padding: 8px;\n  border-radius: 2px;\n  text-align: center;\n}\n.selector[_ngcontent-%COMP%]   .modal-container[_ngcontent-%COMP%]   .modal-body[_ngcontent-%COMP%]   .results[_ngcontent-%COMP%]   .result[_ngcontent-%COMP%] {\n  width: 95%;\n  margin: 10px 10px 10px 10px;\n  border: 1px solid #eee;\n  border-radius: 4px;\n  padding: 10px 10px;\n}\n.selector[_ngcontent-%COMP%]   .modal-container[_ngcontent-%COMP%]   .modal-body[_ngcontent-%COMP%]   .results[_ngcontent-%COMP%]   .result[_ngcontent-%COMP%]   .company[_ngcontent-%COMP%] {\n  color: #aaa;\n}\n/*# sourceMappingURL=data:application/json;base64,[encoded data, 4648 characters] */"]
});

/***/ }),

/***/ 33200:
/*!*********************************************************************************************************************************!*\
  !*** ./src/app/logistic-events/components/selector-for-driver-to-add-to-event/selector-for-driver-to-add-to-event.component.ts ***!
  \*********************************************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "SelectorForDriverToAddToEventComponent": () => (/* binding */ SelectorForDriverToAddToEventComponent)
/* harmony export */ });
/* harmony import */ var _Volumes_case_workspace_work_APPS_KA_APP_WORK_NOW_KA_PASS_V2_2_6_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js */ 71670);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ 45449);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_angular_core__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _ionic_angular__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @ionic/angular */ 93819);
/* harmony import */ var _shared_components__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @shared/components */ 7667);
/* harmony import */ var _shared_services__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @shared/services */ 17253);
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @angular/forms */ 2508);
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @angular/common */ 90944);
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_angular_common__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var _card_founduser_lg_card_founduser_lg_component__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../card-founduser-lg/card-founduser-lg.component */ 30834);
/* harmony import */ var _ngx_translate_core__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @ngx-translate/core */ 38699);












function SelectorForDriverToAddToEventComponent_div_26_ng_container_4_ng_container_1_Template(rf, ctx) {
  if (rf & 1) {
    const _r7 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();

    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementContainerStart"](0);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "app-card-founduser-lg", 24);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("userSelect", function SelectorForDriverToAddToEventComponent_div_26_ng_container_4_ng_container_1_Template_app_card_founduser_lg_userSelect_1_listener() {
      const restoredCtx = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r7);
      const foundUser_r5 = restoredCtx.$implicit;
      const ctx_r6 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](3);
      return _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵresetView"](ctx_r6.onUserSelect(foundUser_r5));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementContainerEnd"]();
  }

  if (rf & 2) {
    const foundUser_r5 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("foundUser", foundUser_r5);
  }
}

function SelectorForDriverToAddToEventComponent_div_26_ng_container_4_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementContainerStart"](0);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](1, SelectorForDriverToAddToEventComponent_div_26_ng_container_4_ng_container_1_Template, 2, 1, "ng-container", 23);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementContainerEnd"]();
  }

  if (rf & 2) {
    const ctx_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", ctx_r3.foundUsers);
  }
}

function SelectorForDriverToAddToEventComponent_div_26_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 21)(1, "div", 22);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipe"](3, "translate");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](4, SelectorForDriverToAddToEventComponent_div_26_ng_container_4_Template, 2, 1, "ng-container", 17);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
  }

  if (rf & 2) {
    const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipeBind1"](3, 2, "MD_DRIVER_SUBTITLE"));
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r0.isLoading);
  }
}

function SelectorForDriverToAddToEventComponent_ng_container_27_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementContainerStart"](0);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](1, "app-card-founduser-lg", 25);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementContainerEnd"]();
  }

  if (rf & 2) {
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("skeleton", true);
  }
}

class SelectorForDriverToAddToEventComponent {
  constructor(createLogisticEventService, formBuilder, modalController, changeDetectorRef, helperService, logService, userPhotoService) {
    var _this = this;

    this.createLogisticEventService = createLogisticEventService;
    this.formBuilder = formBuilder;
    this.modalController = modalController;
    this.changeDetectorRef = changeDetectorRef;
    this.helperService = helperService;
    this.logService = logService;
    this.userPhotoService = userPhotoService;
    this.isLoading = false;
    this.page = 0;
    this.size = 15;

    this.onClose = user => {
      this.modalController.dismiss(user);
    };

    this.onUserSelect = user => {
      user.fullName = this.helperService.normalizeName(user.firstName, user.lastName);
      setTimeout(() => {
        this.onClose(user);
      }, 750);
    };

    this.onCreateDriver = /*#__PURE__*/(0,_Volumes_case_workspace_work_APPS_KA_APP_WORK_NOW_KA_PASS_V2_2_6_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* () {
      const modal = yield _this.modalController.create({
        component: _shared_components__WEBPACK_IMPORTED_MODULE_2__.CreateDriverComponent
      });
      modal.onDidDismiss().then(res => {
        _this.onModalDismissCallback(res);
      });
      yield modal.present();
    });

    this.onInputChange = e => {
      const {
        value
      } = e.target;
      this.infiniteScroll.disabled = false;

      if (this.searchTimeout) {
        clearTimeout(this.searchTimeout);
      }

      this.searchTimeout = setTimeout(() => {
        if (value.length > 1) {
          this.foundUsers = [];
          this.page = 0;
        }

        this.doSearch(value);
      }, 750);
    };

    this.doSearch = searchTerm => {
      // const searchTerms = searchTerm.split(' ');
      // const firstName = searchTerms[0].trim();
      // const lastName = searchTerms.slice(1).join(' ');
      // const data = {
      //   'firstName.contains': firstName ? firstName : ''
      // };
      // if (lastName.trim().length > 0) {
      //   data['lastName.contains'] = lastName.trim();
      // }
      searchTerm = searchTerm.trim();
      const data = {
        searchTerm
      };
      this.dataTerms = data;
      this.createLogisticEventService.getCompanyDrivers(data, this.page, this.size).then(this.handleGetCompanyDriversSuccessResponse).catch(this.handleGetgetCompanyDriversErrorResponse).finally(() => this.isLoading = true);
    };

    this.handleGetCompanyDriversSuccessResponse = response => {
      console.log('handleGetCompanyDriversSuccessResponse');
      console.log('response:', response);
      this.setFoundUsers(response);
      this.userPhotoService.enrichUsersWithPhotos(response);
    };

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

    this.setFoundUsers = foundUsers => {
      // this.foundUsers = foundUsers.sort((a: any, b: any) => (a.firstName > b.firstName && 1) || -1);
      this.foundUsers = foundUsers;
      console.log('foundUsers', foundUsers);
      this.changeDetectorRef.detectChanges(); // Does not work, but does not hurt either.

      scrollBy(0, 1); // It wasn't detecting changes.
    };
  }

  ngOnInit() {
    this.foundUsers = [];
    this.searchTimeout = null;
    this.userForm = this.formBuilder.group({
      searchTerm: ['']
    });
  }

  ionViewWillEnter() {
    this.onInputChange({
      target: {
        value: ''
      }
    });
  }

  onModalDismissCallback(detail) {
    if (detail && detail.data) {
      this.onUserSelect(detail.data);
    }
  }

  loadData(event) {
    this.page += 1;
    this.loadMore(this.page, event);
  }

  loadMore(page, infiniteScroll) {
    this.createLogisticEventService.getCompanyDrivers(this.dataTerms, page, this.size, !!infiniteScroll).then(drivers => {
      this.isLoading = true;

      if (drivers.length > 0) {
        this.handleGetCompanyDriversSuccessResponse(this.foundUsers.concat(drivers));

        if (this.size > 0) {
          infiniteScroll.target.complete();
        }
      } else {
        infiniteScroll.target.disabled = true;
      }
    }).catch(err => {
      this.handleGetCompanyDriversSuccessResponse(err);
      infiniteScroll.target.complete();
      infiniteScroll.target.disabled = true;
    });
  }

}

SelectorForDriverToAddToEventComponent.ɵfac = function SelectorForDriverToAddToEventComponent_Factory(t) {
  return new (t || SelectorForDriverToAddToEventComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_3__.CreateLogisticEventService), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_6__.UntypedFormBuilder), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_ionic_angular__WEBPACK_IMPORTED_MODULE_7__.ModalController), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__.ChangeDetectorRef), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_3__.HelperService), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_3__.LogService), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_3__.UserPhotoService));
};

SelectorForDriverToAddToEventComponent.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineComponent"]({
  type: SelectorForDriverToAddToEventComponent,
  selectors: [["app-selector-for-driver-to-add-to-event"]],
  viewQuery: function SelectorForDriverToAddToEventComponent_Query(rf, ctx) {
    if (rf & 1) {
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵviewQuery"](_ionic_angular__WEBPACK_IMPORTED_MODULE_7__.IonInfiniteScroll, 5);
    }

    if (rf & 2) {
      let _t;

      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵloadQuery"]()) && (ctx.infiniteScroll = _t.first);
    }
  },
  decls: 32,
  vars: 10,
  consts: [[1, "fix-header-modal-ios", "ion-no-border"], [3, "ngClass"], ["horizontal", "center", "slot", "fixed", 1, "fab", 3, "click"], ["color", "medium"], ["name", "close"], [1, "content"], [1, "modal-container"], [1, "modal-title"], [1, "button-holder"], [1, "modal-body"], [3, "formGroup"], [1, "input-holder"], [1, "upper-options"], ["id", "name", "type", "text", "formControlName", "searchTerm", 2, "height", "47px", 3, "placeholder", "keyup"], [1, "new-holder"], ["type", "button", 3, "click"], ["class", "results", 4, "ngIf"], [4, "ngIf"], [1, "modal-footer"], ["threshold", "15%", "position", "bottom", 3, "ionInfinite"], ["IonInfiniteScroll", ""], [1, "results"], [1, "sub-title"], [4, "ngFor", "ngForOf"], ["typeofuser", "driver", 3, "foundUser", "userSelect"], [3, "skeleton"]],
  template: function SelectorForDriverToAddToEventComponent_Template(rf, ctx) {
    if (rf & 1) {
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "ion-header", 0)(1, "ion-toolbar");
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](2, "ion-title");
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()();
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "ion-content", 1)(4, "ion-fab", 2);
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function SelectorForDriverToAddToEventComponent_Template_ion_fab_click_4_listener() {
        return ctx.onClose();
      });
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "ion-fab-button", 3);
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](6, "ion-icon", 4);
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()();
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](7, "div", 5)(8, "div", 6)(9, "div", 7);
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](10, "div", 8);
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](11, "div", 9)(12, "ion-row")(13, "ion-col")(14, "form", 10)(15, "div", 11)(16, "div", 12)(17, "input", 13);
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("keyup", function SelectorForDriverToAddToEventComponent_Template_input_keyup_17_listener($event) {
        return ctx.onInputChange($event);
      });
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipe"](18, "translate");
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](19, "div", 14)(20, "div", 8)(21, "button", 15);
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function SelectorForDriverToAddToEventComponent_Template_button_click_21_listener() {
        return ctx.onCreateDriver();
      });
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](22);
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipe"](23, "translate");
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()()()()()()()();
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](24, "ion-row")(25, "ion-col");
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](26, SelectorForDriverToAddToEventComponent_div_26_Template, 5, 4, "div", 16);
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](27, SelectorForDriverToAddToEventComponent_ng_container_27_Template, 2, 1, "ng-container", 17);
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()()();
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](28, "div", 18);
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()();
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](29, "ion-infinite-scroll", 19, 20);
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("ionInfinite", function SelectorForDriverToAddToEventComponent_Template_ion_infinite_scroll_ionInfinite_29_listener($event) {
        return ctx.loadData($event);
      });
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](31, "ion-infinite-scroll-content");
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()();
    }

    if (rf & 2) {
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngClass", "selector");
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](11);
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("formGroup", ctx.userForm);
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("placeholder", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipeBind1"](18, 6, "MD_DRIVER_INPUT"));
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](5);
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipeBind1"](23, 8, "MD_DRIVER_BTN_NEW"), " ");
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", !!ctx.foundUsers.length);
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", !ctx.isLoading);
    }
  },
  dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_4__.NgClass, _angular_common__WEBPACK_IMPORTED_MODULE_4__.NgForOf, _angular_common__WEBPACK_IMPORTED_MODULE_4__.NgIf, _ionic_angular__WEBPACK_IMPORTED_MODULE_7__.IonCol, _ionic_angular__WEBPACK_IMPORTED_MODULE_7__.IonContent, _ionic_angular__WEBPACK_IMPORTED_MODULE_7__.IonFab, _ionic_angular__WEBPACK_IMPORTED_MODULE_7__.IonFabButton, _ionic_angular__WEBPACK_IMPORTED_MODULE_7__.IonHeader, _ionic_angular__WEBPACK_IMPORTED_MODULE_7__.IonIcon, _ionic_angular__WEBPACK_IMPORTED_MODULE_7__.IonInfiniteScroll, _ionic_angular__WEBPACK_IMPORTED_MODULE_7__.IonInfiniteScrollContent, _ionic_angular__WEBPACK_IMPORTED_MODULE_7__.IonRow, _ionic_angular__WEBPACK_IMPORTED_MODULE_7__.IonTitle, _ionic_angular__WEBPACK_IMPORTED_MODULE_7__.IonToolbar, _angular_forms__WEBPACK_IMPORTED_MODULE_6__["ɵNgNoValidate"], _angular_forms__WEBPACK_IMPORTED_MODULE_6__.DefaultValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_6__.NgControlStatus, _angular_forms__WEBPACK_IMPORTED_MODULE_6__.NgControlStatusGroup, _angular_forms__WEBPACK_IMPORTED_MODULE_6__.FormGroupDirective, _angular_forms__WEBPACK_IMPORTED_MODULE_6__.FormControlName, _card_founduser_lg_card_founduser_lg_component__WEBPACK_IMPORTED_MODULE_5__.CardFounduserLgComponent, _ngx_translate_core__WEBPACK_IMPORTED_MODULE_8__.TranslatePipe],
  styles: ["ion-content.selector[_ngcontent-%COMP%] {\n  --offset-top: 0px !important;\n}\nion-content.selector[_ngcontent-%COMP%]   ion-fab.fab[_ngcontent-%COMP%] {\n  position: fixed;\n  margin-top: 10px;\n}\nion-header.fix-header-modal-ios[_ngcontent-%COMP%]   ion-toolbar[_ngcontent-%COMP%] {\n  height: 0px !important;\n  --background: #fff;\n}\n.selector[_ngcontent-%COMP%]   .modal-container[_ngcontent-%COMP%] {\n  box-shadow: 0px -6px 3px rgba(0, 0, 0, 0.1);\n  margin-top: 0;\n  transition: margin-top 1s ease;\n  background-color: #fff;\n  height: 100%;\n  overflow: scroll;\n}\n.selector[_ngcontent-%COMP%]   .modal-container[_ngcontent-%COMP%]   .modal-title[_ngcontent-%COMP%] {\n  display: flex;\n  padding-top: 3.5em;\n  justify-content: center;\n  align-items: center;\n  flex-direction: column;\n}\n.selector[_ngcontent-%COMP%]   .modal-container[_ngcontent-%COMP%]   .modal-title[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%] {\n  font-size: initial !important;\n  font-weight: bold;\n  text-align: center;\n  margin: 32px;\n  margin-bottom: 8px;\n}\n.selector[_ngcontent-%COMP%]   .modal-container[_ngcontent-%COMP%]   .modal-title[_ngcontent-%COMP%]   .button-holder[_ngcontent-%COMP%] {\n  justify-content: center;\n  margin: 0;\n}\n.selector[_ngcontent-%COMP%]   .modal-container[_ngcontent-%COMP%]   .input-holder[_ngcontent-%COMP%] {\n  margin-top: 8px;\n  display: flex;\n  justify-content: center;\n  align-items: center;\n  flex-direction: column;\n  width: 100%;\n}\n.selector[_ngcontent-%COMP%]   .modal-container[_ngcontent-%COMP%]   .input-holder[_ngcontent-%COMP%]   .upper-options[_ngcontent-%COMP%] {\n  display: flex;\n  justify-content: center;\n  align-items: center;\n}\n.selector[_ngcontent-%COMP%]   .modal-container[_ngcontent-%COMP%]   .input-holder[_ngcontent-%COMP%]   .upper-options[_ngcontent-%COMP%]   .new-holder[_ngcontent-%COMP%] {\n  margin-top: 18px;\n}\n.selector[_ngcontent-%COMP%]   .modal-container[_ngcontent-%COMP%]   .input-holder[_ngcontent-%COMP%]   .upper-options[_ngcontent-%COMP%]   .new-holder[_ngcontent-%COMP%]   .button-holder[_ngcontent-%COMP%] {\n  margin-top: 0;\n}\n.selector[_ngcontent-%COMP%]   .modal-container[_ngcontent-%COMP%]   .input-holder[_ngcontent-%COMP%]   .bottom-options[_ngcontent-%COMP%] {\n  display: flex;\n  justify-content: center;\n  align-items: center;\n}\n.selector[_ngcontent-%COMP%]   .modal-container[_ngcontent-%COMP%]   .input-holder[_ngcontent-%COMP%]   .bottom-options[_ngcontent-%COMP%]   .new-holder[_ngcontent-%COMP%] {\n  margin-top: 18px;\n}\n.selector[_ngcontent-%COMP%]   .modal-container[_ngcontent-%COMP%]   .input-holder[_ngcontent-%COMP%]   .bottom-options[_ngcontent-%COMP%]   .new-holder[_ngcontent-%COMP%]   .button-holder[_ngcontent-%COMP%] {\n  margin-top: 0;\n  width: 100%;\n}\n.selector[_ngcontent-%COMP%]   .modal-container[_ngcontent-%COMP%]   .modal-body[_ngcontent-%COMP%]   .results[_ngcontent-%COMP%] {\n  overflow: scroll;\n  height: 100%;\n  padding: 1em;\n}\n.selector[_ngcontent-%COMP%]   .modal-container[_ngcontent-%COMP%]   .modal-body[_ngcontent-%COMP%]   .results[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%] {\n  font-size: initial !important;\n  width: 80%;\n  margin: 0 10% 2px;\n  font-weight: bold;\n  text-align: center;\n}\n.selector[_ngcontent-%COMP%]   .modal-container[_ngcontent-%COMP%]   .modal-body[_ngcontent-%COMP%]   .results[_ngcontent-%COMP%]   .sub-title[_ngcontent-%COMP%] {\n  margin: 10px 0;\n  font-size: 0.9em;\n  background-color: #eee;\n  border: 1px solid #ccc;\n  padding: 8px;\n  border-radius: 2px;\n  text-align: center;\n}\n.selector[_ngcontent-%COMP%]   .modal-container[_ngcontent-%COMP%]   .modal-body[_ngcontent-%COMP%]   .results[_ngcontent-%COMP%]   .result[_ngcontent-%COMP%] {\n  width: 95%;\n  margin: 10px 10px 10px 10px;\n  border: 1px solid #eee;\n  border-radius: 4px;\n  padding: 10px 10px;\n}\n.selector[_ngcontent-%COMP%]   .modal-container[_ngcontent-%COMP%]   .modal-body[_ngcontent-%COMP%]   .results[_ngcontent-%COMP%]   .result[_ngcontent-%COMP%]   .company[_ngcontent-%COMP%] {\n  color: #aaa;\n}\n/*# sourceMappingURL=data:application/json;base64,[encoded data, 4628 characters] */"]
});

/***/ }),

/***/ 73543:
/*!*********************************************************************************************************************!*\
  !*** ./src/app/logistic-events/components/solve-driver-checkin-conflict/solve-driver-checkin-conflict.component.ts ***!
  \*********************************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "SolveDriverCheckinConflictComponent": () => (/* binding */ SolveDriverCheckinConflictComponent)
/* harmony export */ });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ 45449);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_angular_core__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _ionic_angular__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @ionic/angular */ 93819);
/* harmony import */ var _shared_services__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @shared/services */ 17253);
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/common */ 90944);
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_angular_common__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _ngx_translate_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @ngx-translate/core */ 38699);





function SolveDriverCheckinConflictComponent_div_11_Template(rf, ctx) { if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 10);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](1, "ion-spinner", 11);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function SolveDriverCheckinConflictComponent_div_12_Template(rf, ctx) { if (rf & 1) {
    const _r3 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 12)(1, "ion-row")(2, "ion-col")(3, "div", 13)(4, "div", 14)(5, "button", 15);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function SolveDriverCheckinConflictComponent_div_12_Template_button_click_5_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r3); const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵresetView"](ctx_r2.deny()); });
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](7, "translate");
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "button", 15);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function SolveDriverCheckinConflictComponent_div_12_Template_button_click_8_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r3); const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵresetView"](ctx_r4.authorize()); });
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](9);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](10, "translate");
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()()()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](11, "ion-row")(12, "ion-col")(13, "div", 16)(14, "div", 17)(15, "div", 18);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](16);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](17, "translate");
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](18, "div", 19);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](19, "div", 20);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](20, "div", 21);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](21);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](22, "div", 22)(23, "div", 18);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](24);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](25, "translate");
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](26, "div", 19);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](27);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](28, "div", 23)(29, "div", 18);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](30);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](31, "translate");
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](32, "div", 19);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](33);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](34, "div", 24)(35, "div", 18);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](36);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](37, "translate");
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](38, "div", 19);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](39);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](40, "div", 25)(41, "div", 18);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](42);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](43, "translate");
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](44, "div", 19);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](45);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()()()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](46, "ion-row")(47, "ion-col")(48, "div", 16)(49, "div", 17)(50, "div", 18);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](51);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](52, "translate");
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](53, "div", 19);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](54, "div", 20);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](55, "div", 21);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](56);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](57, "div", 22)(58, "div", 18);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](59);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](60, "translate");
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](61, "div", 19);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](62);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](63, "div", 23)(64, "div", 18);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](65);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](66, "translate");
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](67, "div", 19);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](68);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](69, "div", 24)(70, "div", 18);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](71);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](72, "translate");
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](73, "div", 19);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](74);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](75, "div", 25)(76, "div", 18);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](77);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](78, "translate");
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](79, "div", 19);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](80);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()()()()()();
} if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind1"](7, 22, "MD_DRIVER_CONFLICT_BTN_CONFIRM_REFUSAL"), " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind1"](10, 24, "MD_DRIVER_CONFLICT_BTN_ALLOW"), " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](7);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind1"](17, 26, "MD_DRIVER_CONFLICT_REGISTERED_DRIVER"));
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", ctx_r1.registeredDriverInvite.driver.fullName, " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind1"](25, 28, "MD_DRIVER_CONFLICT_LICENSEPLATONE"));
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", ctx_r1.getLicensePlateOneToBeRendered(ctx_r1.registeredDriverInvite), " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind1"](31, 30, "MD_DRIVER_CONFLICT_LICENSEPLATTWO"));
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", ctx_r1.getLicensePlateTwoToBeRendered(ctx_r1.registeredDriverInvite), " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind1"](37, 32, "MD_DRIVER_CONFLICT_ON_FOOT"));
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", ctx_r1.getOnFootToBeRendered(ctx_r1.registeredDriverInvite), " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind1"](43, 34, "MD_DRIVER_CONFLICT_VEHICLE_HAS_TRAILER"));
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", ctx_r1.getOnFootToBeRendered(ctx_r1.getHasCartToBeRendered), " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind1"](52, 36, "MD_DRIVER_CONFLICT_DRIVER_CHECKIN"));
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", ctx_r1.candidateDriverInvite.driver.fullName, " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind1"](60, 38, "MD_DRIVER_CONFLICT_LICENSEPLATONE"));
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", ctx_r1.getLicensePlateOneToBeRendered(ctx_r1.candidateDriverInvite), " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind1"](66, 40, "MD_DRIVER_CONFLICT_LICENSEPLATTWO"));
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", ctx_r1.getLicensePlateTwoToBeRendered(ctx_r1.candidateDriverInvite), " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind1"](72, 42, "MD_DRIVER_CONFLICT_ON_FOOT"));
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", ctx_r1.getOnFootToBeRendered(ctx_r1.candidateDriverInvite), " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind1"](78, 44, "MD_DRIVER_CONFLICT_VEHICLE_HAS_TRAILER"));
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", ctx_r1.getOnFootToBeRendered(ctx_r1.getHasCartToBeRendered), " ");
} }
class SolveDriverCheckinConflictComponent {
    constructor(modalController, portalLoginManagerService, profileManagerService, logisticEventApiService, authService, loadingService, translateConfigService) {
        this.modalController = modalController;
        this.portalLoginManagerService = portalLoginManagerService;
        this.profileManagerService = profileManagerService;
        this.logisticEventApiService = logisticEventApiService;
        this.authService = authService;
        this.loadingService = loadingService;
        this.translateConfigService = translateConfigService;
        this.loaded = false;
        this.comparePendingApprovals = () => {
            const profile = this.profileManagerService.getProfileLogistic();
            return new Promise((resolve, reject) => {
                this.authService
                    .getToken()
                    .then(token => this.portalLoginManagerService.getAccessToken(profile.login, profile.portal, token))
                    .then((response) => {
                    const accessToken = response.access_token;
                    return this.logisticEventApiService
                        .comparePendingApprovals(this.instanceName, this.inviteId, accessToken)
                        .subscribe(resolve, reject);
                })
                    .catch(reject);
            }).finally(() => (this.loaded = true));
        };
        this.handleComparePendingApprovalsSuccessResponse = response => {
            console.log('handleComparePendingApprovalsSuccessResponse:', response);
            this.loadingService.hide(null, 'loading-drivers-data');
            const current = response.current;
            const previous = response.previous;
            this.registeredDriverInvite = previous;
            this.candidateDriverInvite = current;
        };
        this.handleComparePendingApprovalsErrorResponse = error => {
            this.loadingService.hide(null, 'loading-drivers-data');
            console.log('handleComparePendingApprovalsErrorResponse:', error);
        };
        this.getLicensePlateOneToBeRendered = data => {
            if (data && data.driver && data.driver.licensePlateOne) {
                return data.driver.licensePlateOne;
            }
            return;
        };
        this.getLicensePlateTwoToBeRendered = data => {
            if (data && data.driver && data.driver.licensePlateTwo) {
                return data.driver.licensePlateTwo;
            }
            return;
        };
        this.getOnFootToBeRendered = data => {
            if (data && data.driver) {
                return data.driver.onFoot
                    ? this.translateConfigService.translate('TEXT_YES')
                    : this.translateConfigService.translate('TEXT_NOT');
            }
            return;
        };
        this.getHasCartToBeRendered = data => {
            if (data && data.driver) {
                return data.driver.hasCart
                    ? this.translateConfigService.translate('TEXT_YES')
                    : this.translateConfigService.translate('TEXT_NOT');
            }
            return;
        };
        this.deny = () => {
            const data = {
                action: 'deny',
                invite: {
                    companyInstance: this.candidateDriverInvite.company.instanceName,
                    inviteId: this.candidateDriverInvite.driver.inviteId,
                    eventId: this.candidateDriverInvite.driver.eventId,
                    event: {
                        eventId: this.candidateDriverInvite.driver.eventId,
                        target: this.candidateDriverInvite.target
                    },
                    ...this.candidateDriverInvite
                }
            };
            this.modalController.dismiss(data);
        };
        this.authorize = () => {
            const data = {
                action: 'authorize',
                invite: {
                    eventId: this.candidateDriverInvite.driver.eventId,
                    companyInstance: this.candidateDriverInvite.company.instanceName,
                    inviteId: this.candidateDriverInvite.driver.inviteId,
                    event: {
                        eventId: this.candidateDriverInvite.driver.eventId,
                        target: this.candidateDriverInvite.target
                    },
                    ...this.candidateDriverInvite
                }
            };
            this.modalController.dismiss(data);
        };
        this.onClose = () => {
            this.modalController.dismiss();
        };
    }
    ngOnInit() {
        this.loadingService.show(this.translateConfigService.translate('LOADING_DATA'), 'loading-drivers-data');
        this.comparePendingApprovals()
            .then(this.handleComparePendingApprovalsSuccessResponse)
            .catch(this.handleComparePendingApprovalsErrorResponse);
    }
}
SolveDriverCheckinConflictComponent.ɵfac = function SolveDriverCheckinConflictComponent_Factory(t) { return new (t || SolveDriverCheckinConflictComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_ionic_angular__WEBPACK_IMPORTED_MODULE_3__.ModalController), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_1__.PortalLoginManagerService), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_1__.ProfileManagerService), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_1__.LogisticEventApiService), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_1__.AuthService), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_1__.LoadingService), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_1__.TranslateConfigService)); };
SolveDriverCheckinConflictComponent.ɵcmp = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: SolveDriverCheckinConflictComponent, selectors: [["app-solve-driver-checkin-conflict"]], inputs: { inviteId: "inviteId", instanceName: "instanceName" }, decls: 14, vars: 9, consts: [[3, "ngClass"], [1, "content"], [1, "modal-container"], [1, "modal-title"], [1, "button-holder"], [1, "back", 3, "click"], [1, "title"], ["class", "spinner", 4, "ngIf"], ["class", "modal-body", 4, "ngIf"], [1, "modal-footer"], [1, "spinner"], ["mode", "ios", "name", "crescent"], [1, "modal-body"], [1, "section", "bottom"], [1, "actions", "two-or-more"], ["type", "button", 3, "click"], [1, "driver-holder"], [1, "item", "driver-details"], [1, "label"], [1, "value"], [1, "photo"], [1, "name"], [1, "item", "license-plate-one-details"], [1, "item", "license-plate-two-details"], [1, "item", "entrance-type-details"], [1, "item", "has-cart-details"]], template: function SolveDriverCheckinConflictComponent_Template(rf, ctx) { if (rf & 1) {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 0)(1, "div", 1)(2, "div", 2)(3, "div", 3)(4, "div", 4)(5, "button", 5);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function SolveDriverCheckinConflictComponent_Template_button_click_5_listener() { return ctx.onClose(); });
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](6);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](7, "translate");
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "div", 6);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](9);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](10, "translate");
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](11, SolveDriverCheckinConflictComponent_div_11_Template, 2, 0, "div", 7);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](12, SolveDriverCheckinConflictComponent_div_12_Template, 81, 46, "div", 8);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](13, "div", 9);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()()();
    } if (rf & 2) {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngClass", "selector");
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](6);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind1"](7, 5, "BTN_BACK"));
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind1"](10, 7, "MD_DRIVER_CONFLICT_TITLE"), " ");
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", !ctx.loaded);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.registeredDriverInvite && ctx.candidateDriverInvite && ctx.loaded);
    } }, dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_2__.NgClass, _angular_common__WEBPACK_IMPORTED_MODULE_2__.NgIf, _ionic_angular__WEBPACK_IMPORTED_MODULE_3__.IonCol, _ionic_angular__WEBPACK_IMPORTED_MODULE_3__.IonRow, _ionic_angular__WEBPACK_IMPORTED_MODULE_3__.IonSpinner, _ngx_translate_core__WEBPACK_IMPORTED_MODULE_4__.TranslatePipe], styles: ["ion-content.selector.ios[_ngcontent-%COMP%] {\n  --offset-top: 0px !important;\n}\n\n.selector[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%] {\n  height: 100vh;\n}\n\n.selector[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .modal-container[_ngcontent-%COMP%] {\n  box-shadow: 0px -6px 3px rgba(0, 0, 0, 0.1);\n  margin-top: 0;\n  transition: margin-top 1s ease;\n  background-color: #fff;\n  height: 100%;\n  overflow: scroll;\n}\n\n.selector[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .modal-container[_ngcontent-%COMP%]   .modal-title[_ngcontent-%COMP%] {\n  display: flex;\n  padding-top: 1em;\n  justify-content: center;\n  align-items: center;\n  flex-direction: column;\n}\n\n.selector[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .modal-container[_ngcontent-%COMP%]   .modal-title[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%] {\n  font-size: initial !important;\n  font-weight: bold;\n  text-align: center;\n  margin: 32px;\n  margin-bottom: 24px 32px 8px 32px;\n}\n\n.selector[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .modal-container[_ngcontent-%COMP%]   .modal-title[_ngcontent-%COMP%]   .button-holder[_ngcontent-%COMP%] {\n  justify-content: center;\n  margin: 0;\n}\n\n.selector[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .modal-container[_ngcontent-%COMP%]   .input-holder[_ngcontent-%COMP%] {\n  margin-top: 8px;\n  display: flex;\n  justify-content: center;\n  align-items: center;\n  flex-direction: column;\n}\n\n.selector[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .modal-container[_ngcontent-%COMP%]   .input-holder[_ngcontent-%COMP%]   .upper-options[_ngcontent-%COMP%] {\n  display: flex;\n  justify-content: center;\n  align-items: center;\n}\n\n.selector[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .modal-container[_ngcontent-%COMP%]   .input-holder[_ngcontent-%COMP%]   .upper-options[_ngcontent-%COMP%]   .new-holder[_ngcontent-%COMP%] {\n  margin-top: 18px;\n}\n\n.selector[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .modal-container[_ngcontent-%COMP%]   .input-holder[_ngcontent-%COMP%]   .upper-options[_ngcontent-%COMP%]   .new-holder[_ngcontent-%COMP%]   .button-holder[_ngcontent-%COMP%] {\n  margin-top: 0;\n}\n\n.selector[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .modal-container[_ngcontent-%COMP%]   .input-holder[_ngcontent-%COMP%]   .bottom-options[_ngcontent-%COMP%] {\n  display: flex;\n  justify-content: center;\n  align-items: center;\n}\n\n.selector[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .modal-container[_ngcontent-%COMP%]   .input-holder[_ngcontent-%COMP%]   .bottom-options[_ngcontent-%COMP%]   .new-holder[_ngcontent-%COMP%] {\n  margin-top: 18px;\n}\n\n.selector[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .modal-container[_ngcontent-%COMP%]   .input-holder[_ngcontent-%COMP%]   .bottom-options[_ngcontent-%COMP%]   .new-holder[_ngcontent-%COMP%]   .button-holder[_ngcontent-%COMP%] {\n  margin-top: 0;\n  width: 100%;\n}\n\n.selector[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .modal-container[_ngcontent-%COMP%]   .modal-body[_ngcontent-%COMP%]   .actions[_ngcontent-%COMP%] {\n  display: flex;\n  align-items: center;\n  width: 100%;\n  margin: 8px;\n}\n\n.selector[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .modal-container[_ngcontent-%COMP%]   .modal-body[_ngcontent-%COMP%]   .actions.two-or-more[_ngcontent-%COMP%] {\n  justify-content: space-around;\n}\n\n.selector[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .modal-container[_ngcontent-%COMP%]   .modal-body[_ngcontent-%COMP%]   .actions.only-one[_ngcontent-%COMP%] {\n  justify-content: center;\n}\n\n.selector[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .modal-container[_ngcontent-%COMP%]   .modal-body[_ngcontent-%COMP%]   .actions[_ngcontent-%COMP%]   button[_ngcontent-%COMP%] {\n  font-size: 1em;\n  color: #0ec254;\n  background-color: #fff;\n  padding: 0.5em 1.25em;\n  border-radius: 32px;\n  border: 1px solid #0ec254;\n  transition: background-color 0.1s ease-out;\n}\n\n.selector[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .modal-container[_ngcontent-%COMP%]   .modal-body[_ngcontent-%COMP%]   .actions[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]:active {\n  background-color: #0ec254;\n  color: #fff;\n  transition: background-color 0.1s ease-out;\n}\n\n.selector[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .modal-container[_ngcontent-%COMP%]   .modal-body[_ngcontent-%COMP%]   .driver-holder[_ngcontent-%COMP%] {\n  padding: 16px;\n  border: 1px solid #eee;\n  border-radius: 8px;\n}\n\n.selector[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .modal-container[_ngcontent-%COMP%]   .modal-body[_ngcontent-%COMP%]   .driver-holder[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%] {\n  margin-bottom: 12px;\n}\n\n.selector[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .modal-container[_ngcontent-%COMP%]   .modal-body[_ngcontent-%COMP%]   .driver-holder[_ngcontent-%COMP%]   .label[_ngcontent-%COMP%] {\n  font-weight: bold;\n}\n\n.selector[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .modal-container[_ngcontent-%COMP%]   .modal-body[_ngcontent-%COMP%]   .driver-holder[_ngcontent-%COMP%]   .driver-details[_ngcontent-%COMP%]   .label[_ngcontent-%COMP%] {\n  color: #0ec254;\n}\n\n.selector[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .spinner[_ngcontent-%COMP%] {\n  display: flex;\n  justify-content: center;\n  align-items: center;\n  height: 50vh;\n}\n/*# sourceMappingURL=data:application/json;base64,[encoded data, 5504 characters] */"] });


/***/ }),

/***/ 37763:
/*!**************************************************!*\
  !*** ./src/app/shared/services/focus.service.ts ***!
  \**************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "FocusService": () => (/* binding */ FocusService)
/* harmony export */ });
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/router */ 61380);
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_angular_router__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! rxjs/operators */ 59151);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ 45449);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_angular_core__WEBPACK_IMPORTED_MODULE_1__);




class FocusService {
    constructor(router) {
        this.router = router;
    }
    focusInRouterNavigate() {
        this.router.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_2__.filter)(event => event instanceof _angular_router__WEBPACK_IMPORTED_MODULE_0__.NavigationEnd)).subscribe(() => {
            const mainHeader = document.querySelector('#focusHeader');
            if (mainHeader) {
                mainHeader?.focus();
            }
        });
    }
    /**
     *
     * @param selector ID preference selector exemple: this.applyFocusQuerySelector('myselectorid', 300)
     * not necessary # .
     * @param time
     */
    applyFocusQuerySelector(selector, time) {
        setTimeout(() => {
            const nextTag = document.querySelector(`#${selector}`);
            nextTag?.focus();
        }, time);
    }
}
FocusService.ɵfac = function FocusService_Factory(t) { return new (t || FocusService)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](_angular_router__WEBPACK_IMPORTED_MODULE_0__.Router)); };
FocusService.ɵprov = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineInjectable"]({ token: FocusService, factory: FocusService.ɵfac, providedIn: 'root' });


/***/ })

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