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

/***/ 78734:
/*!******************************************************************************!*\
  !*** ./src/app/logistic-events/create/event-options/event-options.module.ts ***!
  \******************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "EventOptionsPageModule": () => (/* binding */ EventOptionsPageModule)
/* 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 _event_options_page__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./event-options.page */ 92183);
/* 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 _angular_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/core */ 45449);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_angular_core__WEBPACK_IMPORTED_MODULE_3__);





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


/***/ }),

/***/ 92183:
/*!****************************************************************************!*\
  !*** ./src/app/logistic-events/create/event-options/event-options.page.ts ***!
  \****************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "EventOptionsPage": () => (/* binding */ EventOptionsPage)
/* 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 _shared_services__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @shared/services */ 17253);
/* harmony import */ var _shared_services_focus_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @shared/services/focus.service */ 37763);
/* 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 _ionic_angular__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @ionic/angular */ 93819);
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @angular/forms */ 2508);
/* harmony import */ var _shared_components_header_header_component__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../shared/components/header/header.component */ 36290);
/* harmony import */ var _ngx_translate_core__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @ngx-translate/core */ 38699);










function EventOptionsPage_div_7_div_7_div_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 19);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
  }

  if (rf & 2) {
    const error_r6 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](error_r6.message);
  }
}

function EventOptionsPage_div_7_div_7_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 17);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](1, EventOptionsPage_div_7_div_7_div_1_Template, 2, 1, "div", 18);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
  }

  if (rf & 2) {
    const ctx_r4 = _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_r4.eventTitleFormErrors);
  }
}

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

    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 5)(1, "div", 6)(2, "label", 14);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipe"](4, "translate");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "input", 15);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("ngModelChange", function EventOptionsPage_div_7_Template_input_ngModelChange_5_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r8);
      const ctx_r7 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵresetView"](ctx_r7.locator = $event);
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipe"](6, "translate");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](7, EventOptionsPage_div_7_div_7_Template, 2, 1, "div", 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"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipeBind1"](4, 4, "PG_CREATE_OPTIONS_LG_STEP_TEXT_LOCATOR"));
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("placeholder", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipeBind1"](6, 6, "PG_CREATE_OPTIONS_LG_STEP_INPUT_LOCATOR"))("ngModel", ctx_r0.locator);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r0.eventTitleFormErrors);
  }
}

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

    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 5)(1, "div", 6)(2, "input", 20);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("change", function EventOptionsPage_div_8_Template_input_change_2_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r10);
      const ctx_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵresetView"](ctx_r9.onMultiCheckinChange($event));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "label", 21);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](4, "Multi check-in");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "div", 22)(6, "div", 23);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function EventOptionsPage_div_8_Template_div_click_6_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r10);
      const ctx_r11 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵresetView"](ctx_r11.onMultiCheckinChange({
        target: {
          checked: true
        }
      }));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](7);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipe"](8, "translate");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](9, "div", 24);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function EventOptionsPage_div_8_Template_div_click_9_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r10);
      const ctx_r12 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵresetView"](ctx_r12.onMultiCheckinChange({
        target: {
          checked: false
        }
      }));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](10);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipe"](11, "translate");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()()();
  }

  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("checked", ctx_r1.multiCheckin);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngClass", "option yes " + (ctx_r1.multiCheckin ? "active" : ""));
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipeBind1"](8, 5, "TEXT_YES"), " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngClass", "option no " + (!ctx_r1.multiCheckin ? "active" : ""));
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipeBind1"](11, 7, "TEXT_NOT"), " ");
  }
}

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

    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 5)(1, "div", 6)(2, "input", 25);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("change", function EventOptionsPage_div_9_Template_input_change_2_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r14);
      const ctx_r13 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵresetView"](ctx_r13.onLocatorPreAuthorizedChange($event));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "label", 26);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipe"](5, "translate");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](6, "div", 22)(7, "div", 27);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function EventOptionsPage_div_9_Template_div_click_7_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r14);
      const ctx_r15 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵresetView"](ctx_r15.onLocatorPreAuthorizedChange({
        target: {
          checked: true
        }
      }));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](8);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipe"](9, "translate");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](10, "div", 28);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function EventOptionsPage_div_9_Template_div_click_10_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r14);
      const ctx_r16 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵresetView"](ctx_r16.onLocatorPreAuthorizedChange({
        target: {
          checked: false
        }
      }));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](11);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipe"](12, "translate");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()()();
  }

  if (rf & 2) {
    const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("checked", ctx_r2.locatorPreAuthorized);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipeBind1"](5, 6, "PG_CREATE_OPTIONS_LG_STEP_TEXT_LOCATOR_PRE_AUTHORIZED"));
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngClass", "option yes " + (ctx_r2.locatorPreAuthorized ? "active" : ""));
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipeBind1"](9, 8, "TEXT_YES"), " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngClass", "option no " + (!ctx_r2.locatorPreAuthorized ? "active" : ""));
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipeBind1"](12, 10, "TEXT_NOT"), " ");
  }
}

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

    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 5)(1, "div", 6)(2, "input", 29);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("change", function EventOptionsPage_div_10_Template_input_change_2_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r18);
      const ctx_r17 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵresetView"](ctx_r17.onNeedAuthorizationChange($event));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "label", 30);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipe"](5, "translate");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](6, "div", 22)(7, "div", 31);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function EventOptionsPage_div_10_Template_div_click_7_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r18);
      const ctx_r19 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵresetView"](ctx_r19.onNeedAuthorizationChange({
        target: {
          checked: false
        }
      }));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](8);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipe"](9, "translate");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](10, "div", 32);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function EventOptionsPage_div_10_Template_div_click_10_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r18);
      const ctx_r20 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵresetView"](ctx_r20.onNeedAuthorizationChange({
        target: {
          checked: true
        }
      }));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](11);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipe"](12, "translate");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()()();
  }

  if (rf & 2) {
    const ctx_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("checked", !ctx_r3.needAuthorization);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipeBind1"](5, 6, "PG_CREATE_OPTIONS_LG_STEP_TEXT_NEED_AUTHORIZATION"));
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngClass", "option yes " + (!ctx_r3.needAuthorization ? "active" : ""));
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipeBind1"](9, 8, "TEXT_YES"), " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngClass", "option no " + (ctx_r3.needAuthorization ? "active" : ""));
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipeBind1"](12, 10, "TEXT_NOT"), " ");
  }
}

class EventOptionsPage {
  constructor(createLogisticEventService, navigationService, commonService, apiService, authService, profileManagerService, notificatorService, pendingRelease, portalLoginManagerService, loadingService, translateConfigService, focusService) {
    this.createLogisticEventService = createLogisticEventService;
    this.navigationService = navigationService;
    this.commonService = commonService;
    this.apiService = apiService;
    this.authService = authService;
    this.profileManagerService = profileManagerService;
    this.notificatorService = notificatorService;
    this.pendingRelease = pendingRelease;
    this.portalLoginManagerService = portalLoginManagerService;
    this.loadingService = loadingService;
    this.translateConfigService = translateConfigService;
    this.focusService = focusService;
    this.existPendings = false;
    this.needAuthorization = false;
    this.locator = '';
    this.useOwnLocator = false;
    this.useLocatorPreAuthorized = false;
    this.locatorPreAuthorized = false;
    this.directionEvent = '';
    this.defaultNotes = '';
    this.defaultDriver = null;
    this.notes = this.defaultNotes;
    this.driver = this.defaultDriver;

    this.onMultiCheckinChange = event => {
      const {
        checked
      } = event.target;
      this.multiCheckin = checked;
    };

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

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

    this.onSubmit = () => {
      this.cleanValidationErrors();
      const notes = this.commonService.clearString(this.notes);
      const locator = this.commonService.clearString(this.locator);
      const data = {
        notes,
        locator,
        directionEvent: this.directionEvent
      };
      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.createLogisticEventService.setMultiCheckIn(this.multiCheckin);
        this.createLogisticEventService.setNeedAuthorization(this.needAuthorization);
        this.createLogisticEventService.setNotes(notes);
        this.createLogisticEventService.setLocator(this.locator);
        this.createLogisticEventService.setLocatorPreAuthorized(this.locatorPreAuthorized);
        this.goToEventResume();
      }
    };

    this.validateInput = data => {
      const errors = [];
      const titleInputValidationErrors = this.validateLocatorInput(data);

      if (titleInputValidationErrors) {
        errors.push(titleInputValidationErrors);
      }

      return errors;
    };

    this.validateLocatorInput = data => {
      if (this.useOwnLocator && ( // eslint-disable-next-line eqeqeq
      this.directionEvent == 'ENTRY' || this.directionEvent == 'CLONE_EXIT')) {
        if (!data.locator || data.locator.length < 1) {
          return {
            message: this.translateConfigService.translate('PG_CREATE_OPTIONS_LG_STEP_TEXT_FIELD_LOCATOR'),
            field: 'title'
          };
        } else if (data.locator.length > 20) {
          return {
            message: this.translateConfigService.translate('PG_CREATE_OPTIONS_LG_STEP_TEXT_FIELD_LOCATOR_TO_LARGE'),
            field: 'title'
          };
        }
      }

      return null;
    };

    this.onLocatorPreAuthorizedChange = event => {
      const {
        checked
      } = event.target;
      this.locatorPreAuthorized = checked;
    };

    this.onNeedAuthorizationChange = event => {
      const {
        checked
      } = event.target;
      this.needAuthorization = checked;
    };

    this.onCheckInStartAtChange = event => {
      const {
        value
      } = event.target;
      this.notes = value;
    };

    this.goToEventResume = () => {
      const event = {
        id: this.createLogisticEventService.getId(),
        title: this.createLogisticEventService.getTitle(),
        startAt: this.createLogisticEventService.getStartDate(),
        endAt: this.createLogisticEventService.getEndDate(),
        driver: this.createLogisticEventService.getDriver(),
        assistants: this.createLogisticEventService.getAssistants(),
        licensePlateOne: this.createLogisticEventService.getLicensePlateOne(),
        licensePlateTwo: this.createLogisticEventService.getLicensePlateTwo(),
        hasCart: this.createLogisticEventService.getHasCart(),
        onFoot: this.createLogisticEventService.getOnFoot(),
        locator: this.createLogisticEventService.getLocator(),
        multiCheckin: this.createLogisticEventService.getMultiCheckIn(),
        useOwnLocator: this.createLogisticEventService.getUseOwnLocator(),
        useLocatorPreAuthorized: this.createLogisticEventService.getUseLocatorPreAuthorized(),
        locatorPreAuthorized: this.createLogisticEventService.getLocatorPreAuthorized(),
        needAuthorization: this.createLogisticEventService.getNeedAuthorization(),
        notes: this.createLogisticEventService.getNotes(),
        directionEvent: this.directionEvent
      };
      const navigationExtras = {
        state: {
          event
        }
      };
      this.navigationService.forward(['/logistic-events/create/event-resume'], navigationExtras);
    };

    this.goOneStepBack = () => {
      const hasDriver = !!this.createLogisticEventService.getDriver();
      const isOnFoot = this.createLogisticEventService.getOnFoot();

      if (hasDriver) {
        if (isOnFoot) {
          this.navigationService.back(['/logistic-events/create/event-transport-type']);
        } else {
          this.navigationService.back(['/logistic-events/create/event-first-license-plate']);
        }
      } else {
        this.navigationService.back(['/logistic-events/create/event-transport-type']);
      }
    };

    this.setValidationErrors = errors => {
      this.eventTitleFormErrors = errors;
    };

    this.cleanValidationErrors = () => {
      this.eventTitleFormErrors = [];
    };
  }

  ionViewWillEnter() {
    this.focusService.applyFocusQuerySelector('create_event_options', 3500);
  }

  ngOnInit() {
    this.needAuthorization = this.createLogisticEventService.getNeedAuthorization();
    this.notes = this.createLogisticEventService.getNotes();
    this.locator = this.createLogisticEventService.getLocator();
    this.useOwnLocator = this.createLogisticEventService.getUseOwnLocator();
    this.useLocatorPreAuthorized = this.createLogisticEventService.getUseLocatorPreAuthorized();
    this.locatorPreAuthorized = this.createLogisticEventService.getLocatorPreAuthorized();
    this.multiCheckin = this.createLogisticEventService.getMultiCheckIn();
    this.eventTitleFormErrors = [];
    let driver = this.createLogisticEventService.getDriver();
    driver = driver ? driver === 'null' ? null : driver : null;
    this.driver = driver;
  }

  ionViewDidEnter() {
    var _this = this;

    return (0,_Volumes_case_workspace_work_APPS_KA_APP_WORK_NOW_KA_PASS_V2_2_6_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* () {
      if (_this.createLogisticEventService.getUseOwnLocator() === null || _this.createLogisticEventService.getUseLocatorPreAuthorized() === null || _this.createLogisticEventService.getLocatorPreAuthorized() === null) {
        _this.loadingService.show(_this.translateConfigService.translate('LOADING_DATA'), 'logistic-event-options');

        yield _this.verifySelfReleaseLocator().then(res => {
          debugger;
          console.warn('[DEBUG verifySelfReleaseLocator] res:', JSON.stringify(res));
          console.warn('[DEBUG verifySelfReleaseLocator] res.useLocatorPreAuthorized:', res.useLocatorPreAuthorized, '| type:', typeof res.useLocatorPreAuthorized);
          console.warn('[DEBUG verifySelfReleaseLocator] res.locatorPreAuthorizedDefaultValue:', res.locatorPreAuthorizedDefaultValue, '| type:', typeof res.locatorPreAuthorizedDefaultValue);
          console.warn('[DEBUG verifySelfReleaseLocator] res.useOwnLocator:', res.useOwnLocator, '| type:', typeof res.useOwnLocator);

          _this.createLogisticEventService.setUseOwnLocator(res.useOwnLocator);

          _this.createLogisticEventService.setUseLocatorPreAuthorized(res.useLocatorPreAuthorized);

          _this.createLogisticEventService.setLocatorPreAuthorized(res.locatorPreAuthorizedDefaultValue);

          _this.useOwnLocator = _this.createLogisticEventService.getUseOwnLocator();
          _this.useLocatorPreAuthorized = _this.createLogisticEventService.getUseLocatorPreAuthorized();
          _this.locatorPreAuthorized = _this.createLogisticEventService.getLocatorPreAuthorized();
        }).catch(error => {
          console.log(error);
        }).finally(() => _this.loadingService.hide(null, 'logistic-event-options'));
      }

      _this.directionEvent = _this.createLogisticEventService.getType();
    })();
  }

  ionViewDidLeave() {}

  verifySelfReleaseLocator() {
    return new Promise((resolve, reject) => {
      const profile = this.profileManagerService.getProfileLogistic();
      this.authService.getToken().then(token => {
        this.portalLoginManagerService.getAccessToken(profile.login, profile.portal, token).then(response => {
          const instanceName = profile.company.instanceName;
          const accessToken = response.access_token;
          this.apiService.getSelfReleaseLocator(instanceName, accessToken).subscribe(res => {
            resolve(res);
          }, error => {
            reject(error);
          });
        });
      }).catch(reject);
    });
  }

}

EventOptionsPage.ɵfac = function EventOptionsPage_Factory(t) {
  return new (t || EventOptionsPage)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_2__.CreateLogisticEventService), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_2__.NavigationService), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_2__.CommonService), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_2__.ApiService), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_2__.AuthService), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_2__.ProfileManagerService), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_2__.NotificatorService), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_2__.PendingReleaseService), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_2__.PortalLoginManagerService), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_2__.LoadingService), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_2__.TranslateConfigService), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_shared_services_focus_service__WEBPACK_IMPORTED_MODULE_3__.FocusService));
};

EventOptionsPage.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineComponent"]({
  type: EventOptionsPage,
  selectors: [["app-event-options"]],
  decls: 27,
  vars: 23,
  consts: [["defaultHref", "/logistic-events/create/event-transport-type", 3, "title", "showBadge", "refresh", "menuToggle"], [1, "centralized-content"], [2, "width", "100%", "height", "10px"], [1, "ion-margin-vertical"], ["class", "input-holder", 4, "ngIf"], [1, "input-holder"], [1, "input"], ["for", "check-in-start-at", "tabindex", "12"], ["tabindex", "13", "type", "text", "id", "check-in-start-at", "maxlength", "55", "name", "notes", 3, "placeholder", "ngModel", "input"], [1, "button-holder"], ["type", "button", 1, "back", 3, "click"], ["tabindex", "15"], ["type", "submit", 3, "click"], ["tabindex", "14"], ["id", "create_event_options", "for", "locator", "tabindex", "1"], ["tabindex", "2", "type", "text", "id", "locator", "name", "locator", "onkeypress", "return /[0-9a-zA-Z]/i.test(event.key)", "maxlength", "20", 3, "placeholder", "ngModel", "ngModelChange"], ["class", "errors", 4, "ngIf"], [1, "errors"], ["class", "error", 4, "ngFor", "ngForOf"], [1, "error"], ["type", "checkbox", "id", "multi-check-in", "name", "multiCheckin", 3, "checked", "change"], ["for", "multi-check-in", "tabindex", "3"], [1, "options"], ["tabindex", "4", 3, "ngClass", "click"], ["tabindex", "5", 3, "ngClass", "click"], ["type", "checkbox", "id", "locator-pre-authorized", "name", "locatorPreAuthorized", 3, "checked", "change"], ["for", "locator-pre-authorized", "tabindex", "6"], ["tabindex", "7", 3, "ngClass", "click"], ["tabindex", "8", 3, "ngClass", "click"], ["type", "checkbox", "id", "auto-release", "name", "autoRelease", 3, "checked", "change"], ["for", "auto-release", "tabindex", "9"], ["tabindex", "10", 3, "ngClass", "click"], ["tabindex", "11", 3, "ngClass", "click"]],
  template: function EventOptionsPage_Template(rf, ctx) {
    if (rf & 1) {
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](0, "app-header", 0);
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipe"](1, "translate");
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "ion-content")(3, "div", 1);
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](4, "div", 2);
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "ion-row")(6, "ion-col", 3);
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](7, EventOptionsPage_div_7_Template, 8, 8, "div", 4);
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](8, EventOptionsPage_div_8_Template, 12, 9, "div", 4);
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](9, EventOptionsPage_div_9_Template, 13, 12, "div", 4);
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](10, EventOptionsPage_div_10_Template, 13, 12, "div", 4);
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](11, "div", 5)(12, "div", 6)(13, "label", 7);
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](14);
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipe"](15, "translate");
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](16, "input", 8);
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("input", function EventOptionsPage_Template_input_input_16_listener($event) {
        return ctx.onCheckInStartAtChange($event);
      });
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipe"](17, "translate");
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()()();
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](18, "div", 9)(19, "button", 10);
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function EventOptionsPage_Template_button_click_19_listener() {
        return ctx.goOneStepBack();
      });
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](20, "span", 11);
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](21);
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipe"](22, "translate");
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()();
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](23, "button", 12);
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function EventOptionsPage_Template_button_click_23_listener() {
        return ctx.onSubmit();
      });
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](24, "span", 13);
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](25);
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipe"](26, "translate");
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()()()()()()();
    }

    if (rf & 2) {
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("title", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipeBind1"](1, 13, "PG_CREATE_OPTIONS_LG_STEP_HEADER_TITLE"))("showBadge", true)("refresh", false)("menuToggle", false);
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](7);
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx.useOwnLocator && (ctx.directionEvent === "ENTRY" || ctx.directionEvent === "CLONE_EXIT"));
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx.directionEvent === "ENTRY" || ctx.directionEvent === "CLONE_EXIT");
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx.useOwnLocator && ctx.useLocatorPreAuthorized && (ctx.directionEvent === "ENTRY" || ctx.directionEvent === "CLONE_EXIT"));
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx.directionEvent === "ENTRY" || ctx.directionEvent === "CLONE_EXIT");
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipeBind1"](15, 15, "PG_CREATE_OPTIONS_LG_STEP_TEXT_NOTES"));
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("placeholder", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipeBind1"](17, 17, "PG_CREATE_OPTIONS_LG_STEP_INPUT_NOTES"))("ngModel", ctx.notes);
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](5);
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipeBind1"](22, 19, "BTN_BACK"));
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipeBind1"](26, 21, "BTN_NEXT"), "");
    }
  },
  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_6__.IonCol, _ionic_angular__WEBPACK_IMPORTED_MODULE_6__.IonContent, _ionic_angular__WEBPACK_IMPORTED_MODULE_6__.IonRow, _angular_forms__WEBPACK_IMPORTED_MODULE_7__.DefaultValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_7__.NgControlStatus, _angular_forms__WEBPACK_IMPORTED_MODULE_7__.MaxLengthValidator, _angular_forms__WEBPACK_IMPORTED_MODULE_7__.NgModel, _shared_components_header_header_component__WEBPACK_IMPORTED_MODULE_5__.HeaderComponent, _ngx_translate_core__WEBPACK_IMPORTED_MODULE_8__.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%]   .errors[_ngcontent-%COMP%] {\n  width: 80%;\n  margin: 12px 10% 0;\n  color: #f0181b;\n  text-align: center;\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;\n  text-align: center;\n}\n\n.centralized-content[_ngcontent-%COMP%]   .page-title[_ngcontent-%COMP%]   .sub-title[_ngcontent-%COMP%] {\n  text-align: center;\n  color: #656768;\n  font-size: 0.9em;\n  margin-top: 4px;\n}\n\n.centralized-content[_ngcontent-%COMP%]   .input-holder[_ngcontent-%COMP%] {\n  margin-top: 20px;\n  margin-bottom: 20px;\n}\n\n.centralized-content[_ngcontent-%COMP%]   .input-holder[_ngcontent-%COMP%]:first-of-type {\n  margin-top: 0;\n}\n\n.centralized-content[_ngcontent-%COMP%]   .input-holder[_ngcontent-%COMP%]   .input[_ngcontent-%COMP%] {\n  display: block;\n}\n\n.centralized-content[_ngcontent-%COMP%]   .input-holder[_ngcontent-%COMP%]   .input[_ngcontent-%COMP%]   input[type=checkbox][_ngcontent-%COMP%] {\n  display: none;\n}\n\n.centralized-content[_ngcontent-%COMP%]   .input-holder[_ngcontent-%COMP%]   .input[_ngcontent-%COMP%]   input[type=text][_ngcontent-%COMP%] {\n  margin-top: 8px;\n}\n\n.centralized-content[_ngcontent-%COMP%]   .input-holder[_ngcontent-%COMP%]   .input[_ngcontent-%COMP%]   input[type=text][_ngcontent-%COMP%]::-webkit-input-placeholder {\n  opacity: 0.4; \n}\n\n.centralized-content[_ngcontent-%COMP%]   .input-holder[_ngcontent-%COMP%]   .options[_ngcontent-%COMP%] {\n  margin-top: 10px;\n  display: flex;\n  justify-content: flex-start;\n  align-items: center;\n}\n\n.centralized-content[_ngcontent-%COMP%]   .input-holder[_ngcontent-%COMP%]   .options[_ngcontent-%COMP%]   .option[_ngcontent-%COMP%] {\n  padding: 6px 12px;\n  border-radius: 50px;\n  border: 1px solid #eee;\n  background-color: #fff;\n  transition: background-color 0.35s ease, border-color 0.35s ease;\n}\n\n.centralized-content[_ngcontent-%COMP%]   .input-holder[_ngcontent-%COMP%]   .options[_ngcontent-%COMP%]   .option.yes[_ngcontent-%COMP%] {\n  margin-right: 8px;\n}\n\n.centralized-content[_ngcontent-%COMP%]   .input-holder[_ngcontent-%COMP%]   .options[_ngcontent-%COMP%]   .option.active[_ngcontent-%COMP%] {\n  color: #fff;\n  background-color: #0ec254;\n  border-color: #0ec254;\n  transition: background-color 0.35s ease, border-color 0.35s ease;\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, 4640 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=8734.js.map