(self["webpackChunkapp"] = self["webpackChunkapp"] || []).push([[2493],{ /***/ 30834: /*!*********************************************************************************************!*\ !*** ./src/app/logistic-events/components/card-founduser-lg/card-founduser-lg.component.ts ***! \*********************************************************************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "CardFounduserLgComponent": () => (/* binding */ CardFounduserLgComponent) /* harmony export */ }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ 45449); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_angular_core__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var _shared_services__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @shared/services */ 17253); /* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/common */ 90944); /* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_angular_common__WEBPACK_IMPORTED_MODULE_2__); /* harmony import */ var _ionic_angular__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @ionic/angular */ 93819); /* harmony import */ var _shared_components_avatar_avatar_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../shared/components/avatar/avatar.component */ 87871); function CardFounduserLgComponent_ng_container_0_ng_container_6_div_1_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 7); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); } if (rf & 2) { const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](3); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", ctx_r4.foundUser.document, " "); } } function CardFounduserLgComponent_ng_container_0_ng_container_6_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerStart"](0); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, CardFounduserLgComponent_ng_container_0_ng_container_6_div_1_Template, 2, 1, "div", 6); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerEnd"](); } if (rf & 2) { const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r2.foundUser == null ? null : ctx_r2.foundUser.document); } } function CardFounduserLgComponent_ng_container_0_ng_container_7_div_1_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 7); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); } if (rf & 2) { const ctx_r5 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](3); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", ctx_r5.foundUser.company, " "); } } function CardFounduserLgComponent_ng_container_0_ng_container_7_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerStart"](0); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, CardFounduserLgComponent_ng_container_0_ng_container_7_div_1_Template, 2, 1, "div", 6); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerEnd"](); } if (rf & 2) { const ctx_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r3.foundUser == null ? null : ctx_r3.foundUser.company); } } function CardFounduserLgComponent_ng_container_0_Template(rf, ctx) { if (rf & 1) { const _r7 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerStart"](0); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 1); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function CardFounduserLgComponent_ng_container_0_Template_div_click_1_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r7); const ctx_r6 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵresetView"](ctx_r6.userSelect.emit(ctx_r6.foundUser)); }); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](2, "app-avatar", 2); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "div", 3)(4, "div", 4); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](5); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](6, CardFounduserLgComponent_ng_container_0_ng_container_6_Template, 2, 1, "ng-container", 0); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](7, CardFounduserLgComponent_ng_container_0_ng_container_7_Template, 2, 1, "ng-container", 0); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](8, "ion-ripple-effect", 5); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerEnd"](); } if (rf & 2) { const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); let tmp_2_0; _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("firstName", ctx_r0.foundUser.firstName)("lastName", ctx_r0.foundUser.lastName)("thumbnailImage", (tmp_2_0 = (tmp_2_0 = ctx_r0.foundUser == null ? null : ctx_r0.foundUser.image) !== null && tmp_2_0 !== undefined ? tmp_2_0 : ctx_r0.foundUser == null ? null : ctx_r0.foundUser.thumbnailImage) !== null && tmp_2_0 !== undefined ? tmp_2_0 : null)("size", "md"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", ctx_r0.helperService.normalizeName(ctx_r0.foundUser.firstName, ctx_r0.foundUser.lastName), " "); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r0.typeofuser === "driver"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r0.typeofuser === "assistant"); } } function CardFounduserLgComponent_ng_container_1_div_6_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 14); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](1, "ion-skeleton-text", 15); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "div", 3)(3, "div", 4); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](4, "ion-skeleton-text", 16); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "div", 7); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](6, "ion-skeleton-text", 17); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()()(); } } const _c0 = function () { return [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]; }; function CardFounduserLgComponent_ng_container_1_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerStart"](0); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 8)(2, "div", 9)(3, "div", 10); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](4, "ion-skeleton-text", 11)(5, "ion-skeleton-text", 12); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()(); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](6, CardFounduserLgComponent_ng_container_1_div_6_Template, 7, 0, "div", 13); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerEnd"](); } if (rf & 2) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](6); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction0"](1, _c0)); } } class CardFounduserLgComponent { constructor(helperService) { this.helperService = helperService; this.skeleton = false; this.userSelect = new _angular_core__WEBPACK_IMPORTED_MODULE_0__.EventEmitter(); } ngOnInit() { } } CardFounduserLgComponent.ɵfac = function CardFounduserLgComponent_Factory(t) { return new (t || CardFounduserLgComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_1__.HelperService)); }; CardFounduserLgComponent.ɵcmp = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: CardFounduserLgComponent, selectors: [["app-card-founduser-lg"]], inputs: { foundUser: "foundUser", skeleton: "skeleton", typeofuser: "typeofuser" }, outputs: { userSelect: "userSelect" }, decls: 2, vars: 2, consts: [[4, "ngIf"], [1, "result", "ion-activatable", 3, "click"], [3, "firstName", "lastName", "thumbnailImage", "size"], [1, "user-info"], [1, "full-name"], ["type", "bounded"], ["class", "company", 4, "ngIf"], [1, "company"], [1, "results"], [1, "sub-title"], [1, "ion-text-center", 2, "display", "flex", "flex-direction", "column", "align-items", "center"], ["animated", "", 2, "width", "100%"], ["animated", "", 2, "width", "60%"], ["class", "result", 4, "ngFor", "ngForOf"], [1, "result"], ["animated", "", 1, "avatar-skeleton"], ["animated", "", 2, "width", "85%"], ["animated", "", 2, "width", "50%"]], template: function CardFounduserLgComponent_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](0, CardFounduserLgComponent_ng_container_0_Template, 9, 7, "ng-container", 0); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, CardFounduserLgComponent_ng_container_1_Template, 7, 2, "ng-container", 0); } if (rf & 2) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.foundUser && !ctx.skeleton); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.skeleton); } }, dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_2__.NgForOf, _angular_common__WEBPACK_IMPORTED_MODULE_2__.NgIf, _ionic_angular__WEBPACK_IMPORTED_MODULE_4__.IonRippleEffect, _ionic_angular__WEBPACK_IMPORTED_MODULE_4__.IonSkeletonText, _shared_components_avatar_avatar_component__WEBPACK_IMPORTED_MODULE_3__.AvatarComponent], styles: [".avatar-skeleton[_ngcontent-%COMP%] {\n width: 40px;\n height: 40px;\n border-radius: 50%;\n flex-shrink: 0;\n}\n\n.result[_ngcontent-%COMP%] {\n position: relative;\n margin: 10px 0;\n border: 1px solid #eee;\n border-radius: 4px;\n padding: 6px 10px;\n display: flex;\n align-items: center;\n gap: 10px;\n}\n\n.result[_ngcontent-%COMP%] app-avatar[_ngcontent-%COMP%] {\n flex-shrink: 0;\n}\n\n.result[_ngcontent-%COMP%] .user-info[_ngcontent-%COMP%] {\n flex: 1;\n min-width: 0;\n}\n\n.result[_ngcontent-%COMP%] .company[_ngcontent-%COMP%] {\n color: #aaa;\n font-size: 0.8em;\n}\n\n.results[_ngcontent-%COMP%] {\n padding: 1em;\n overflow: scroll;\n height: 100%;\n}\n\n.results[_ngcontent-%COMP%] .title[_ngcontent-%COMP%] {\n font-size: initial !important;\n font-weight: bold;\n text-align: left;\n}\n\n.results[_ngcontent-%COMP%] .sub-title[_ngcontent-%COMP%] {\n margin: 10px 0px;\n font-size: 0.9em;\n background-color: #eee;\n border: 1px solid #ccc;\n padding: 8px;\n border-radius: 2px;\n text-align: center;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImNhcmQtZm91bmR1c2VyLWxnLmNvbXBvbmVudC5zY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0VBQ0UsV0FBQTtFQUNBLFlBQUE7RUFDQSxrQkFBQTtFQUNBLGNBQUE7QUFDRjs7QUFDQTtFQUNFLGtCQUFBO0VBQ0EsY0FBQTtFQUNBLHNCQUFBO0VBQ0Esa0JBQUE7RUFDQSxpQkFBQTtFQUNBLGFBQUE7RUFDQSxtQkFBQTtFQUNBLFNBQUE7QUFFRjs7QUFBRTtFQUNFLGNBQUE7QUFFSjs7QUFDRTtFQUNFLE9BQUE7RUFDQSxZQUFBO0FBQ0o7O0FBRUU7RUFDRSxXQUFBO0VBQ0EsZ0JBQUE7QUFBSjs7QUFHQTtFQUNFLFlBQUE7RUFDQSxnQkFBQTtFQUNBLFlBQUE7QUFBRjs7QUFFRTtFQUNFLDZCQUFBO0VBQ0EsaUJBQUE7RUFDQSxnQkFBQTtBQUFKOztBQUdFO0VBQ0UsZ0JBQUE7RUFDQSxnQkFBQTtFQUNBLHNCQUFBO0VBQ0Esc0JBQUE7RUFDQSxZQUFBO0VBQ0Esa0JBQUE7RUFDQSxrQkFBQTtBQURKIiwiZmlsZSI6ImNhcmQtZm91bmR1c2VyLWxnLmNvbXBvbmVudC5zY3NzIiwic291cmNlc0NvbnRlbnQiOlsiLmF2YXRhci1za2VsZXRvbiB7XG4gIHdpZHRoOiA0MHB4O1xuICBoZWlnaHQ6IDQwcHg7XG4gIGJvcmRlci1yYWRpdXM6IDUwJTtcbiAgZmxleC1zaHJpbms6IDA7XG59XG4ucmVzdWx0IHtcbiAgcG9zaXRpb246IHJlbGF0aXZlO1xuICBtYXJnaW46IDEwcHggMDtcbiAgYm9yZGVyOiAxcHggc29saWQgI2VlZTtcbiAgYm9yZGVyLXJhZGl1czogNHB4O1xuICBwYWRkaW5nOiA2cHggMTBweDtcbiAgZGlzcGxheTogZmxleDtcbiAgYWxpZ24taXRlbXM6IGNlbnRlcjtcbiAgZ2FwOiAxMHB4O1xuXG4gIGFwcC1hdmF0YXIge1xuICAgIGZsZXgtc2hyaW5rOiAwO1xuICB9XG5cbiAgLnVzZXItaW5mbyB7XG4gICAgZmxleDogMTtcbiAgICBtaW4td2lkdGg6IDA7XG4gIH1cblxuICAuY29tcGFueSB7XG4gICAgY29sb3I6ICNhYWE7XG4gICAgZm9udC1zaXplOiAwLjhlbTtcbiAgfVxufVxuLnJlc3VsdHMge1xuICBwYWRkaW5nOiAxZW07XG4gIG92ZXJmbG93OiBzY3JvbGw7XG4gIGhlaWdodDogMTAwJTtcblxuICAudGl0bGUge1xuICAgIGZvbnQtc2l6ZTogaW5pdGlhbCAhaW1wb3J0YW50O1xuICAgIGZvbnQtd2VpZ2h0OiBib2xkO1xuICAgIHRleHQtYWxpZ246IGxlZnQ7XG4gIH1cblxuICAuc3ViLXRpdGxlIHtcbiAgICBtYXJnaW46IDEwcHggMHB4O1xuICAgIGZvbnQtc2l6ZTogMC45ZW07XG4gICAgYmFja2dyb3VuZC1jb2xvcjogI2VlZTtcbiAgICBib3JkZXI6IDFweCBzb2xpZCAjY2NjO1xuICAgIHBhZGRpbmc6IDhweDtcbiAgICBib3JkZXItcmFkaXVzOiAycHg7XG4gICAgdGV4dC1hbGlnbjogY2VudGVyO1xuICB9XG59XG4iXX0= */"] }); /***/ }), /***/ 34645: /*!*****************************************************!*\ !*** ./src/app/logistic-events/components/index.ts ***! \*****************************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "CardFounduserLgComponent": () => (/* reexport safe */ _card_founduser_lg_card_founduser_lg_component__WEBPACK_IMPORTED_MODULE_0__.CardFounduserLgComponent), /* harmony export */ "JustifySelfInviteWithoutLocatorComponent": () => (/* reexport safe */ _justify_self_invite_without_locator_justify_self_invite_without_locator_component__WEBPACK_IMPORTED_MODULE_1__.JustifySelfInviteWithoutLocatorComponent), /* harmony export */ "LogisticJustifySelfInviteWithLocatorComponent": () => (/* reexport safe */ _logistic_justify_self_invite_with_locator_logistic_justify_self_invite_with_locator_component__WEBPACK_IMPORTED_MODULE_2__.LogisticJustifySelfInviteWithLocatorComponent), /* harmony export */ "SelectLogisticEventTypeModalComponent": () => (/* reexport safe */ _select_logistic_event_type_modal_select_logistic_event_type_modal_component__WEBPACK_IMPORTED_MODULE_3__.SelectLogisticEventTypeModalComponent), /* harmony export */ "SelectorForAssistantsToAddToEventComponent": () => (/* reexport safe */ _selector_for_assistants_to_add_to_event_selector_for_assistants_to_add_to_event_component__WEBPACK_IMPORTED_MODULE_4__.SelectorForAssistantsToAddToEventComponent), /* harmony export */ "SelectorForDriverToAddToEventComponent": () => (/* reexport safe */ _selector_for_driver_to_add_to_event_selector_for_driver_to_add_to_event_component__WEBPACK_IMPORTED_MODULE_5__.SelectorForDriverToAddToEventComponent), /* harmony export */ "SolveDriverCheckinConflictComponent": () => (/* reexport safe */ _solve_driver_checkin_conflict_solve_driver_checkin_conflict_component__WEBPACK_IMPORTED_MODULE_6__.SolveDriverCheckinConflictComponent) /* harmony export */ }); /* harmony import */ var _card_founduser_lg_card_founduser_lg_component__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./card-founduser-lg/card-founduser-lg.component */ 30834); /* harmony import */ var _justify_self_invite_without_locator_justify_self_invite_without_locator_component__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./justify-self-invite-without-locator/justify-self-invite-without-locator.component */ 72113); /* harmony import */ var _logistic_justify_self_invite_with_locator_logistic_justify_self_invite_with_locator_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./logistic-justify-self-invite-with-locator/logistic-justify-self-invite-with-locator.component */ 45003); /* harmony import */ var _select_logistic_event_type_modal_select_logistic_event_type_modal_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./select-logistic-event-type-modal/select-logistic-event-type-modal.component */ 70534); /* harmony import */ var _selector_for_assistants_to_add_to_event_selector_for_assistants_to_add_to_event_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./selector-for-assistants-to-add-to-event/selector-for-assistants-to-add-to-event.component */ 82366); /* harmony import */ var _selector_for_driver_to_add_to_event_selector_for_driver_to_add_to_event_component__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./selector-for-driver-to-add-to-event/selector-for-driver-to-add-to-event.component */ 33200); /* harmony import */ var _solve_driver_checkin_conflict_solve_driver_checkin_conflict_component__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./solve-driver-checkin-conflict/solve-driver-checkin-conflict.component */ 73543); /***/ }), /***/ 72113: /*!*********************************************************************************************************************************!*\ !*** ./src/app/logistic-events/components/justify-self-invite-without-locator/justify-self-invite-without-locator.component.ts ***! \*********************************************************************************************************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "JustifySelfInviteWithoutLocatorComponent": () => (/* binding */ JustifySelfInviteWithoutLocatorComponent) /* harmony export */ }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ 45449); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_angular_core__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var _shared_services__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @shared/services */ 17253); /* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/forms */ 2508); /* harmony import */ var _ionic_angular__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @ionic/angular */ 93819); /* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/common */ 90944); /* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_angular_common__WEBPACK_IMPORTED_MODULE_2__); /* harmony import */ var _ngx_translate_core__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @ngx-translate/core */ 38699); function JustifySelfInviteWithoutLocatorComponent_div_19_div_1_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 16); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); } if (rf & 2) { const e_r2 = ctx.$implicit; _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", e_r2.message, " "); } } function JustifySelfInviteWithoutLocatorComponent_div_19_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 14); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, JustifySelfInviteWithoutLocatorComponent_div_19_div_1_Template, 2, 1, "div", 15); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); } if (rf & 2) { const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx_r0.getFieldInputValidationErrors("reason")); } } class JustifySelfInviteWithoutLocatorComponent { constructor(ngZoneService, createLogisticEventService, formBuilder, modalController, notificatorService, translateConfigService) { this.ngZoneService = ngZoneService; this.createLogisticEventService = createLogisticEventService; this.formBuilder = formBuilder; this.modalController = modalController; this.notificatorService = notificatorService; this.translateConfigService = translateConfigService; this.reasonFormErrors = []; this.onClose = () => { this.modalController.dismiss({ reason: null }); }; this.onSubmit = () => { const reason = this.reasonForm.controls.reason.value; const data = { reason }; const validationResult = this.validateInput(data); if (!!validationResult.length) { this.setValidationErrors(validationResult); const notification = { title: this.translateConfigService.translate('TOAST_INVALID_DATA_TITLE'), message: this.translateConfigService.translate('TOAST_INVALID_DATA_NESSAGE'), type: 'error' }; this.notificatorService.notify(notification); } else { this.modalController.dismiss({ reason }); } }; this.validateInput = data => { const errors = []; const reasonInputValidationErrors = this.validateReasonInput(data); if (reasonInputValidationErrors) { errors.push(reasonInputValidationErrors); } return errors; }; this.validateReasonInput = data => { if (!data.reason || data.reason.length < 1) { return { message: this.translateConfigService.translate('MD_JUSTIFY_INVITE_WITOUT_LOCATOR_JUSTIFICATION_PROVIDED'), field: 'reason' }; } return null; }; this.setValidationErrors = errors => { this.reasonFormErrors = errors; }; this.thereIsFieldInputValidationErrors = field => this.reasonFormErrors.find(e => e.field === field); this.getFieldInputValidationErrors = field => this.reasonFormErrors.filter(e => e.field === field); } ngOnInit() { this.reasonForm = this.formBuilder.group({ reason: [''] }); } } JustifySelfInviteWithoutLocatorComponent.ɵfac = function JustifySelfInviteWithoutLocatorComponent_Factory(t) { return new (t || JustifySelfInviteWithoutLocatorComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_1__.NgZoneService), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_1__.CreateLogisticEventService), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_3__.UntypedFormBuilder), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_ionic_angular__WEBPACK_IMPORTED_MODULE_4__.ModalController), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_1__.NotificatorService), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_1__.TranslateConfigService)); }; JustifySelfInviteWithoutLocatorComponent.ɵcmp = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: JustifySelfInviteWithoutLocatorComponent, selectors: [["app-justify-self-invite-without-locator"]], decls: 25, vars: 15, consts: [[3, "ngClass"], [1, "content"], [1, "modal-container"], [1, "modal-title"], [1, "button-holder"], [1, "back", 3, "click"], [1, "title"], [1, "modal-body"], [3, "formGroup", "ngSubmit"], [1, "input-holder"], ["maxlength", "55", "id", "reason", "formControlName", "reason", 3, "placeholder"], ["class", "errors", 4, "ngIf"], [1, "modal-footer"], ["type", "submit", 3, "click"], [1, "errors"], ["class", "error", 4, "ngFor", "ngForOf"], [1, "error"]], template: function JustifySelfInviteWithoutLocatorComponent_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 0)(1, "div", 1)(2, "div", 2)(3, "div", 3)(4, "div", 4)(5, "button", 5); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function JustifySelfInviteWithoutLocatorComponent_Template_button_click_5_listener() { return ctx.onClose(); }); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](6); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](7, "translate"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()(); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "div", 6); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](9); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](10, "translate"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()(); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](11, "div", 7)(12, "ion-row")(13, "ion-col")(14, "form", 8); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("ngSubmit", function JustifySelfInviteWithoutLocatorComponent_Template_form_ngSubmit_14_listener() { return ctx.onSubmit(); }); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](15, "div", 9)(16, "textarea", 10); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](17, "translate"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](18, " "); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](19, JustifySelfInviteWithoutLocatorComponent_div_19_Template, 2, 1, "div", 11); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()()()()(); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](20, "div", 12)(21, "div", 4)(22, "button", 13); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function JustifySelfInviteWithoutLocatorComponent_Template_button_click_22_listener() { return ctx.onSubmit(); }); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](23); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](24, "translate"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()()()()()(); } if (rf & 2) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngClass", "selector"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](6); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind1"](7, 7, "BTN_BACK")); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind1"](10, 9, "MD_JUSTIFY_INVITE_WITOUT_LOCATOR_TITLE")); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("formGroup", ctx.reasonForm); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("placeholder", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind1"](17, 11, "MD_JUSTIFY_INVITE_WITOUT_LOCATOR_INPUT")); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.thereIsFieldInputValidationErrors("reason")); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind1"](24, 13, "MD_JUSTIFY_INVITE_WITOUT_LOCATOR_BTN_CONFIRM_REFUSAL"), " "); } }, dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_2__.NgClass, _angular_common__WEBPACK_IMPORTED_MODULE_2__.NgForOf, _angular_common__WEBPACK_IMPORTED_MODULE_2__.NgIf, _ionic_angular__WEBPACK_IMPORTED_MODULE_4__.IonCol, _ionic_angular__WEBPACK_IMPORTED_MODULE_4__.IonRow, _angular_forms__WEBPACK_IMPORTED_MODULE_3__["ɵNgNoValidate"], _angular_forms__WEBPACK_IMPORTED_MODULE_3__.DefaultValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_3__.NgControlStatus, _angular_forms__WEBPACK_IMPORTED_MODULE_3__.NgControlStatusGroup, _angular_forms__WEBPACK_IMPORTED_MODULE_3__.MaxLengthValidator, _angular_forms__WEBPACK_IMPORTED_MODULE_3__.FormGroupDirective, _angular_forms__WEBPACK_IMPORTED_MODULE_3__.FormControlName, _ngx_translate_core__WEBPACK_IMPORTED_MODULE_5__.TranslatePipe], styles: [".selector[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] {\n height: 100vh;\n}\n.selector[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] {\n box-shadow: 0px -6px 3px rgba(0, 0, 0, 0.1);\n margin-top: 0;\n transition: margin-top 1s ease;\n background-color: #fff;\n height: 100%;\n overflow: scroll;\n}\n.selector[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-title[_ngcontent-%COMP%] {\n display: flex;\n padding-top: 1em;\n justify-content: center;\n align-items: center;\n flex-direction: column;\n}\n.selector[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-title[_ngcontent-%COMP%] .title[_ngcontent-%COMP%] {\n font-size: initial !important;\n font-weight: bold;\n text-align: center;\n margin: 32px;\n margin-bottom: 8px;\n}\n.selector[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-title[_ngcontent-%COMP%] .button-holder[_ngcontent-%COMP%] {\n justify-content: center;\n margin: 0;\n}\n.selector[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .input-holder[_ngcontent-%COMP%] {\n margin-top: 8px;\n display: flex;\n justify-content: center;\n align-items: center;\n flex-direction: column;\n}\n.selector[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .input-holder[_ngcontent-%COMP%] .upper-options[_ngcontent-%COMP%] {\n display: flex;\n justify-content: center;\n align-items: center;\n}\n.selector[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .input-holder[_ngcontent-%COMP%] .upper-options[_ngcontent-%COMP%] .new-holder[_ngcontent-%COMP%] {\n margin-top: 18px;\n}\n.selector[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .input-holder[_ngcontent-%COMP%] .upper-options[_ngcontent-%COMP%] .new-holder[_ngcontent-%COMP%] .button-holder[_ngcontent-%COMP%] {\n margin-top: 0;\n}\n.selector[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%] {\n -webkit-appearance: none;\n -moz-appearance: none;\n appearance: none;\n border: 1px solid #eee;\n border-radius: 8px;\n color: #656768;\n width: 100%;\n padding: 8px 8px;\n margin-top: 18px;\n}\n.selector[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]:focus {\n border: 1px solid #656768;\n outline: none;\n}\n.selector[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-footer[_ngcontent-%COMP%] .button-holder[_ngcontent-%COMP%] {\n display: flex;\n justify-content: center;\n align-items: center;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImp1c3RpZnktc2VsZi1pbnZpdGUtd2l0aG91dC1sb2NhdG9yLmNvbXBvbmVudC5zY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUNFO0VBQ0UsYUFBQTtBQUFKO0FBRUk7RUFDRSwyQ0FBQTtFQUNBLGFBQUE7RUFDQSw4QkFBQTtFQUNBLHNCQUFBO0VBQ0EsWUFBQTtFQUNBLGdCQUFBO0FBQU47QUFFTTtFQUNFLGFBQUE7RUFDQSxnQkFBQTtFQUNBLHVCQUFBO0VBQ0EsbUJBQUE7RUFDQSxzQkFBQTtBQUFSO0FBRVE7RUFDRSw2QkFBQTtFQUNBLGlCQUFBO0VBQ0Esa0JBQUE7RUFDQSxZQUFBO0VBQ0Esa0JBQUE7QUFBVjtBQUdRO0VBQ0UsdUJBQUE7RUFDQSxTQUFBO0FBRFY7QUFLTTtFQUNFLGVBQUE7RUFDQSxhQUFBO0VBQ0EsdUJBQUE7RUFDQSxtQkFBQTtFQUNBLHNCQUFBO0FBSFI7QUFLUTtFQUNFLGFBQUE7RUFDQSx1QkFBQTtFQUNBLG1CQUFBO0FBSFY7QUFLVTtFQUNFLGdCQUFBO0FBSFo7QUFLWTtFQUNFLGFBQUE7QUFIZDtBQVVRO0VBQ0Usd0JBQUE7S0FBQSxxQkFBQTtVQUFBLGdCQUFBO0VBQ0Esc0JBQUE7RUFDQSxrQkFBQTtFQUNBLGNBQUE7RUFDQSxXQUFBO0VBQ0EsZ0JBQUE7RUFDQSxnQkFBQTtBQVJWO0FBVVU7RUFDRSx5QkFBQTtFQUNBLGFBQUE7QUFSWjtBQWNRO0VBQ0UsYUFBQTtFQUNBLHVCQUFBO0VBQ0EsbUJBQUE7QUFaViIsImZpbGUiOiJqdXN0aWZ5LXNlbGYtaW52aXRlLXdpdGhvdXQtbG9jYXRvci5jb21wb25lbnQuc2NzcyIsInNvdXJjZXNDb250ZW50IjpbIi5zZWxlY3RvciB7XG4gIC5jb250ZW50IHtcbiAgICBoZWlnaHQ6IDEwMHZoO1xuXG4gICAgLm1vZGFsLWNvbnRhaW5lciB7XG4gICAgICBib3gtc2hhZG93OiAwcHggLTZweCAzcHggcmdiYSgwLCAwLCAwLCAwLjEpO1xuICAgICAgbWFyZ2luLXRvcDogMDtcbiAgICAgIHRyYW5zaXRpb246IG1hcmdpbi10b3AgMXMgZWFzZTtcbiAgICAgIGJhY2tncm91bmQtY29sb3I6ICNmZmY7XG4gICAgICBoZWlnaHQ6IDEwMCU7XG4gICAgICBvdmVyZmxvdzogc2Nyb2xsO1xuXG4gICAgICAubW9kYWwtdGl0bGUge1xuICAgICAgICBkaXNwbGF5OiBmbGV4O1xuICAgICAgICBwYWRkaW5nLXRvcDogMWVtO1xuICAgICAgICBqdXN0aWZ5LWNvbnRlbnQ6IGNlbnRlcjtcbiAgICAgICAgYWxpZ24taXRlbXM6IGNlbnRlcjtcbiAgICAgICAgZmxleC1kaXJlY3Rpb246IGNvbHVtbjtcblxuICAgICAgICAudGl0bGUge1xuICAgICAgICAgIGZvbnQtc2l6ZTogaW5pdGlhbCAhaW1wb3J0YW50O1xuICAgICAgICAgIGZvbnQtd2VpZ2h0OiBib2xkO1xuICAgICAgICAgIHRleHQtYWxpZ246IGNlbnRlcjtcbiAgICAgICAgICBtYXJnaW46IDMycHg7XG4gICAgICAgICAgbWFyZ2luLWJvdHRvbTogOHB4O1xuICAgICAgICB9XG5cbiAgICAgICAgLmJ1dHRvbi1ob2xkZXIge1xuICAgICAgICAgIGp1c3RpZnktY29udGVudDogY2VudGVyO1xuICAgICAgICAgIG1hcmdpbjogMDtcbiAgICAgICAgfVxuICAgICAgfVxuXG4gICAgICAuaW5wdXQtaG9sZGVyIHtcbiAgICAgICAgbWFyZ2luLXRvcDogOHB4O1xuICAgICAgICBkaXNwbGF5OiBmbGV4O1xuICAgICAgICBqdXN0aWZ5LWNvbnRlbnQ6IGNlbnRlcjtcbiAgICAgICAgYWxpZ24taXRlbXM6IGNlbnRlcjtcbiAgICAgICAgZmxleC1kaXJlY3Rpb246IGNvbHVtbjtcblxuICAgICAgICAudXBwZXItb3B0aW9ucyB7XG4gICAgICAgICAgZGlzcGxheTogZmxleDtcbiAgICAgICAgICBqdXN0aWZ5LWNvbnRlbnQ6IGNlbnRlcjtcbiAgICAgICAgICBhbGlnbi1pdGVtczogY2VudGVyO1xuXG4gICAgICAgICAgLm5ldy1ob2xkZXIge1xuICAgICAgICAgICAgbWFyZ2luLXRvcDogMThweDtcblxuICAgICAgICAgICAgLmJ1dHRvbi1ob2xkZXIge1xuICAgICAgICAgICAgICBtYXJnaW4tdG9wOiAwO1xuICAgICAgICAgICAgfVxuICAgICAgICAgIH1cbiAgICAgICAgfVxuICAgICAgfVxuXG4gICAgICAubW9kYWwtYm9keSB7XG4gICAgICAgIHRleHRhcmVhIHtcbiAgICAgICAgICBhcHBlYXJhbmNlOiBub25lO1xuICAgICAgICAgIGJvcmRlcjogMXB4IHNvbGlkICNlZWU7XG4gICAgICAgICAgYm9yZGVyLXJhZGl1czogOHB4O1xuICAgICAgICAgIGNvbG9yOiAjNjU2NzY4O1xuICAgICAgICAgIHdpZHRoOiAxMDAlO1xuICAgICAgICAgIHBhZGRpbmc6IDhweCA4cHg7XG4gICAgICAgICAgbWFyZ2luLXRvcDogMThweDtcblxuICAgICAgICAgICY6Zm9jdXMge1xuICAgICAgICAgICAgYm9yZGVyOiAxcHggc29saWQgIzY1Njc2ODtcbiAgICAgICAgICAgIG91dGxpbmU6IG5vbmU7XG4gICAgICAgICAgfVxuICAgICAgICB9XG4gICAgICB9XG5cbiAgICAgIC5tb2RhbC1mb290ZXIge1xuICAgICAgICAuYnV0dG9uLWhvbGRlciB7XG4gICAgICAgICAgZGlzcGxheTogZmxleDtcbiAgICAgICAgICBqdXN0aWZ5LWNvbnRlbnQ6IGNlbnRlcjtcbiAgICAgICAgICBhbGlnbi1pdGVtczogY2VudGVyO1xuICAgICAgICB9XG4gICAgICB9XG4gICAgfVxuICB9XG59XG4iXX0= */"] }); /***/ }), /***/ 45003: /*!*********************************************************************************************************************************************!*\ !*** ./src/app/logistic-events/components/logistic-justify-self-invite-with-locator/logistic-justify-self-invite-with-locator.component.ts ***! \*********************************************************************************************************************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "LogisticJustifySelfInviteWithLocatorComponent": () => (/* binding */ LogisticJustifySelfInviteWithLocatorComponent) /* harmony export */ }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ 45449); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_angular_core__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/forms */ 2508); /* harmony import */ var _ionic_angular__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @ionic/angular */ 93819); /* harmony import */ var _shared_services__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @shared/services */ 17253); /* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/common */ 90944); /* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_angular_common__WEBPACK_IMPORTED_MODULE_2__); /* harmony import */ var _ngx_translate_core__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @ngx-translate/core */ 38699); function LogisticJustifySelfInviteWithLocatorComponent_ng_container_12_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerStart"](0); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 16)(2, "div", 17); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](3); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](4, "translate"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "div", 18)(6, "div", 19); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](7); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()()(); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerEnd"](); } if (rf & 2) { const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind1"](4, 3, "MD_JUSTIFY_LG_INVITE_WITOUT_LOCATOR_DESTINATION"), " "); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate2"]("", ctx_r0.data == null ? null : ctx_r0.data.firstName, " ", ctx_r0.data == null ? null : ctx_r0.data.lastName, ""); } } function LogisticJustifySelfInviteWithLocatorComponent_div_22_div_1_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 22); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); } if (rf & 2) { const e_r3 = ctx.$implicit; _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", e_r3.message, " "); } } function LogisticJustifySelfInviteWithLocatorComponent_div_22_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 20); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, LogisticJustifySelfInviteWithLocatorComponent_div_22_div_1_Template, 2, 1, "div", 21); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); } if (rf & 2) { const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx_r1.getFieldInputValidationErrors("reason")); } } const _c0 = function (a0) { return { "no-margim": a0 }; }; class LogisticJustifySelfInviteWithLocatorComponent { constructor(formBuilder, modalController, notificatorService, translateConfigService) { this.formBuilder = formBuilder; this.modalController = modalController; this.notificatorService = notificatorService; this.translateConfigService = translateConfigService; this.data = null; this.reasonFormErrors = []; this.onClose = () => { this.modalController.dismiss({ reason: null }); }; this.onSubmit = () => { const reason = this.reasonForm.controls.reason.value; const data = { reason }; const validationResult = this.validateInput(data); if (!!validationResult.length) { this.setValidationErrors(validationResult); const notification = { title: this.translateConfigService.translate('TOAST_INVALID_DATA_TITLE'), message: this.translateConfigService.translate('TOAST_INVALID_DATA_NESSAGE'), type: 'error' }; this.notificatorService.notify(notification); } else { this.modalController.dismiss({ reason }); } }; this.validateInput = data => { const errors = []; const reasonInputValidationErrors = this.validateReasonInput(data); if (reasonInputValidationErrors) { errors.push(reasonInputValidationErrors); } return errors; }; this.validateReasonInput = data => { if (!data.reason || data.reason.length < 1) { return { message: this.translateConfigService.translate('MD_JUSTIFY_LG_INVITE_WITOUT_LOCATOR_JUSTIFICATION_PROVIDED'), field: 'reason' }; } return null; }; this.setValidationErrors = errors => { this.reasonFormErrors = errors; }; this.thereIsFieldInputValidationErrors = field => this.reasonFormErrors.find(e => e.field === field); this.getFieldInputValidationErrors = field => this.reasonFormErrors.filter(e => e.field === field); } ngOnInit() { this.reasonForm = this.formBuilder.group({ reason: [''] }); } } LogisticJustifySelfInviteWithLocatorComponent.ɵfac = function LogisticJustifySelfInviteWithLocatorComponent_Factory(t) { return new (t || LogisticJustifySelfInviteWithLocatorComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_3__.UntypedFormBuilder), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_ionic_angular__WEBPACK_IMPORTED_MODULE_4__.ModalController), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_1__.NotificatorService), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_1__.TranslateConfigService)); }; LogisticJustifySelfInviteWithLocatorComponent.ɵcmp = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: LogisticJustifySelfInviteWithLocatorComponent, selectors: [["app-logistic-justify-self-invite-with-locator"]], inputs: { data: "data" }, decls: 28, vars: 23, consts: [[3, "ngClass"], [1, "content"], [1, "modal-container"], [1, "modal-title"], [1, "button-holder"], [1, "back", 3, "click"], [1, "title"], [1, "modal-body"], [4, "ngIf"], [3, "formGroup", "ngSubmit"], [1, "input-holder", 3, "ngClass"], ["maxlength", "55", "id", "reason", "formControlName", "reason", 3, "ngClass", "placeholder"], [1, "count"], ["class", "errors", 4, "ngIf"], [1, "modal-footer"], ["type", "submit", 3, "click"], [1, "destination-holder", 2, "margin-top", "0", "padding", "0 2.5em"], [1, "destination-label"], [1, "destination-box"], [1, "name"], [1, "errors"], ["class", "error", 4, "ngFor", "ngForOf"], [1, "error"]], template: function LogisticJustifySelfInviteWithLocatorComponent_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 0)(1, "div", 1)(2, "div", 2)(3, "div", 3)(4, "div", 4)(5, "button", 5); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function LogisticJustifySelfInviteWithLocatorComponent_Template_button_click_5_listener() { return ctx.onClose(); }); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](6); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](7, "translate"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()(); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "div", 6); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](9); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](10, "translate"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()(); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](11, "div", 7); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](12, LogisticJustifySelfInviteWithLocatorComponent_ng_container_12_Template, 8, 5, "ng-container", 8); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](13, "ion-row")(14, "ion-col")(15, "form", 9); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("ngSubmit", function LogisticJustifySelfInviteWithLocatorComponent_Template_form_ngSubmit_15_listener() { return ctx.onSubmit(); }); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](16, "div", 10)(17, "textarea", 11); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](18, "translate"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](19, " "); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](20, "div", 12); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](21); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](22, LogisticJustifySelfInviteWithLocatorComponent_div_22_Template, 2, 1, "div", 13); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()()()()(); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](23, "div", 14)(24, "div", 4)(25, "button", 15); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function LogisticJustifySelfInviteWithLocatorComponent_Template_button_click_25_listener() { return ctx.onSubmit(); }); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](26); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](27, "translate"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()()()()()(); } if (rf & 2) { let tmp_8_0; _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngClass", "selector"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](6); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind1"](7, 11, "BTN_BACK")); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind1"](10, 13, "MD_JUSTIFY_LG_INVITE_WITOUT_LOCATOR_TITLE")); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.data == null ? null : ctx.data.event); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("formGroup", ctx.reasonForm); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction1"](19, _c0, (ctx.data == null ? null : ctx.data.event) ? "no-margim" : "")); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction1"](21, _c0, (ctx.data == null ? null : ctx.data.event) ? "no-margim" : ""))("placeholder", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind1"](18, 15, "MD_JUSTIFY_LG_INVITE_WITOUT_LOCATOR_INPUT")); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"]("", (ctx.reasonForm == null ? null : (tmp_8_0 = ctx.reasonForm.get("reason")) == null ? null : tmp_8_0.value == null ? null : tmp_8_0.value.length) || 0, "/55"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.thereIsFieldInputValidationErrors("reason")); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind1"](27, 17, "MD_JUSTIFY_LG_INVITE_WITOUT_LOCATOR_BTN_CONFIRM_REFUSAL"), " "); } }, dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_2__.NgClass, _angular_common__WEBPACK_IMPORTED_MODULE_2__.NgForOf, _angular_common__WEBPACK_IMPORTED_MODULE_2__.NgIf, _ionic_angular__WEBPACK_IMPORTED_MODULE_4__.IonCol, _ionic_angular__WEBPACK_IMPORTED_MODULE_4__.IonRow, _angular_forms__WEBPACK_IMPORTED_MODULE_3__["ɵNgNoValidate"], _angular_forms__WEBPACK_IMPORTED_MODULE_3__.DefaultValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_3__.NgControlStatus, _angular_forms__WEBPACK_IMPORTED_MODULE_3__.NgControlStatusGroup, _angular_forms__WEBPACK_IMPORTED_MODULE_3__.MaxLengthValidator, _angular_forms__WEBPACK_IMPORTED_MODULE_3__.FormGroupDirective, _angular_forms__WEBPACK_IMPORTED_MODULE_3__.FormControlName, _ngx_translate_core__WEBPACK_IMPORTED_MODULE_5__.TranslatePipe], styles: ["ion-content.selector.ios[_ngcontent-%COMP%] {\n --offset-top: 0px !important;\n}\n\n.selector[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] {\n height: auto;\n max-height: 100%;\n}\n\n.selector[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] {\n box-shadow: 0px -6px 3px rgba(0, 0, 0, 0.1);\n margin-top: 0;\n transition: margin-top 1s ease;\n background-color: #fff;\n height: auto;\n max-height: 100%;\n overflow-y: auto;\n}\n\n.selector[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-title[_ngcontent-%COMP%] {\n display: flex;\n padding-top: 1em;\n justify-content: center;\n align-items: center;\n flex-direction: column;\n}\n\n.selector[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-title[_ngcontent-%COMP%] .title[_ngcontent-%COMP%] {\n font-size: initial !important;\n font-weight: bold;\n text-align: center;\n margin: 32px;\n margin-bottom: 8px;\n}\n\n.selector[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-title[_ngcontent-%COMP%] .button-holder[_ngcontent-%COMP%] {\n justify-content: center;\n margin: 0;\n}\n\n.selector[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .input-holder[_ngcontent-%COMP%] {\n margin-top: 8px;\n display: flex;\n justify-content: center;\n align-items: center;\n flex-direction: column;\n}\n\n.selector[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .input-holder[_ngcontent-%COMP%] .upper-options[_ngcontent-%COMP%] {\n display: flex;\n justify-content: center;\n align-items: center;\n}\n\n.selector[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .input-holder[_ngcontent-%COMP%] .upper-options[_ngcontent-%COMP%] .new-holder[_ngcontent-%COMP%] {\n margin-top: 18px;\n}\n\n.selector[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .input-holder[_ngcontent-%COMP%] .upper-options[_ngcontent-%COMP%] .new-holder[_ngcontent-%COMP%] .button-holder[_ngcontent-%COMP%] {\n margin-top: 0;\n}\n\n.selector[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%] .destination-label[_ngcontent-%COMP%] {\n font-weight: 500;\n font-size: 14px;\n color: #333333;\n width: 100%;\n text-align: left;\n margin-bottom: 6px;\n}\n\n.selector[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%] .destination-box[_ngcontent-%COMP%] {\n background: #f5f5f5;\n border: 1px solid #e0e0e0;\n border-radius: 4px;\n padding: 8px;\n width: 100%;\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: flex-start;\n gap: 8px;\n}\n\n.selector[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%] .destination-box[_ngcontent-%COMP%] .photo[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n justify-content: center;\n width: auto;\n}\n\n.selector[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%] .destination-box[_ngcontent-%COMP%] .photo[_ngcontent-%COMP%] ion-avatar[_ngcontent-%COMP%] {\n width: 48px;\n height: 48px;\n}\n\n.selector[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%] .destination-box[_ngcontent-%COMP%] .photo[_ngcontent-%COMP%] .initials.escort[_ngcontent-%COMP%] {\n width: 48px !important;\n height: 48px !important;\n min-width: 48px !important;\n border-radius: 50%;\n display: flex;\n justify-content: center;\n align-items: center;\n background-color: #eee;\n}\n\n.selector[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%] .destination-box[_ngcontent-%COMP%] .name[_ngcontent-%COMP%] {\n text-align: left;\n font-size: 12px;\n color: #666666;\n width: auto;\n}\n\n@media (max-width: 480px) {\n .selector[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%] .destination-box[_ngcontent-%COMP%] {\n padding: 6px;\n gap: 6px;\n }\n .selector[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%] .destination-label[_ngcontent-%COMP%] {\n font-size: 13px;\n }\n .selector[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%] .destination-box[_ngcontent-%COMP%] .photo[_ngcontent-%COMP%] ion-avatar[_ngcontent-%COMP%], .selector[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%] .destination-box[_ngcontent-%COMP%] .photo[_ngcontent-%COMP%] .initials.escort[_ngcontent-%COMP%] {\n width: 44px;\n height: 44px;\n min-width: 44px;\n }\n .selector[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%] .destination-box[_ngcontent-%COMP%] .name[_ngcontent-%COMP%] {\n font-size: 12px;\n }\n}\n\n.selector[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%] .count[_ngcontent-%COMP%] {\n align-self: flex-start;\n font-size: 11px;\n color: #bbb;\n margin-top: 2px;\n}\n\n.selector[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%] textarea.no-margim[_ngcontent-%COMP%] {\n margin-top: 0;\n}\n\n.selector[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%] {\n -webkit-appearance: none;\n -moz-appearance: none;\n appearance: none;\n border: 1px solid #eee;\n border-radius: 8px;\n color: #656768;\n width: 100%;\n padding: 8px 8px;\n margin-top: 18px;\n}\n\n.selector[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]:focus {\n border: 1px solid #656768;\n outline: none;\n}\n\n.selector[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-footer[_ngcontent-%COMP%] {\n margin-bottom: 1em;\n display: flex;\n justify-content: center;\n padding: 1em;\n}\n\n.selector[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-footer[_ngcontent-%COMP%] .button-holder[_ngcontent-%COMP%] {\n text-align: center;\n margin: auto;\n width: 100%;\n display: flex;\n justify-content: center;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImxvZ2lzdGljLWp1c3RpZnktc2VsZi1pbnZpdGUtd2l0aC1sb2NhdG9yLmNvbXBvbmVudC5zY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0VBQ0UsNEJBQUE7QUFDRjs7QUFHRTtFQUNFLFlBQUE7RUFDQSxnQkFBQTtBQUFKOztBQUVJO0VBQ0UsMkNBQUE7RUFDQSxhQUFBO0VBQ0EsOEJBQUE7RUFDQSxzQkFBQTtFQUNBLFlBQUE7RUFDQSxnQkFBQTtFQUNBLGdCQUFBO0FBQU47O0FBRU07RUFDRSxhQUFBO0VBQ0EsZ0JBQUE7RUFDQSx1QkFBQTtFQUNBLG1CQUFBO0VBQ0Esc0JBQUE7QUFBUjs7QUFFUTtFQUNFLDZCQUFBO0VBQ0EsaUJBQUE7RUFDQSxrQkFBQTtFQUNBLFlBQUE7RUFDQSxrQkFBQTtBQUFWOztBQUdRO0VBQ0UsdUJBQUE7RUFDQSxTQUFBO0FBRFY7O0FBS007RUFDRSxlQUFBO0VBQ0EsYUFBQTtFQUNBLHVCQUFBO0VBQ0EsbUJBQUE7RUFDQSxzQkFBQTtBQUhSOztBQUtRO0VBQ0UsYUFBQTtFQUNBLHVCQUFBO0VBQ0EsbUJBQUE7QUFIVjs7QUFLVTtFQUNFLGdCQUFBO0FBSFo7O0FBS1k7RUFDRSxhQUFBO0FBSGQ7O0FBVVE7RUFDRSxnQkFBQTtFQUNBLGVBQUE7RUFDQSxjQUFBO0VBQ0EsV0FBQTtFQUNBLGdCQUFBO0VBQ0Esa0JBQUE7QUFSVjs7QUFXUTtFQUNFLG1CQUFBO0VBQ0EseUJBQUE7RUFDQSxrQkFBQTtFQUNBLFlBQUE7RUFDQSxXQUFBO0VBQ0EsYUFBQTtFQUNBLG1CQUFBO0VBQ0EsbUJBQUE7RUFDQSwyQkFBQTtFQUNBLFFBQUE7QUFUVjs7QUFZUTtFQUNFLGFBQUE7RUFDQSxtQkFBQTtFQUNBLHVCQUFBO0VBQ0EsV0FBQTtBQVZWOztBQWFRO0VBQ0UsV0FBQTtFQUNBLFlBQUE7QUFYVjs7QUFjUTtFQUNFLHNCQUFBO0VBQ0EsdUJBQUE7RUFDQSwwQkFBQTtFQUNBLGtCQUFBO0VBQ0EsYUFBQTtFQUNBLHVCQUFBO0VBQ0EsbUJBQUE7RUFDQSxzQkFBQTtBQVpWOztBQWVRO0VBQ0UsZ0JBQUE7RUFDQSxlQUFBO0VBQ0EsY0FBQTtFQUNBLFdBQUE7QUFiVjs7QUFnQlE7RUFDRTtJQUNFLFlBQUE7SUFDQSxRQUFBO0VBZFY7RUFpQlE7SUFDRSxlQUFBO0VBZlY7RUFrQlE7O0lBRUUsV0FBQTtJQUNBLFlBQUE7SUFDQSxlQUFBO0VBaEJWO0VBbUJRO0lBQ0UsZUFBQTtFQWpCVjtBQUNGOztBQW9CUTtFQUNFLHNCQUFBO0VBQ0EsZUFBQTtFQUNBLFdBQUE7RUFDQSxlQUFBO0FBbEJWOztBQXFCUTtFQUNFLGFBQUE7QUFuQlY7O0FBcUJRO0VBQ0Usd0JBQUE7S0FBQSxxQkFBQTtVQUFBLGdCQUFBO0VBQ0Esc0JBQUE7RUFDQSxrQkFBQTtFQUNBLGNBQUE7RUFDQSxXQUFBO0VBQ0EsZ0JBQUE7RUFDQSxnQkFBQTtBQW5CVjs7QUFxQlU7RUFDRSx5QkFBQTtFQUNBLGFBQUE7QUFuQlo7O0FBdUJNO0VBQ0Usa0JBQUE7RUFDQSxhQUFBO0VBQ0EsdUJBQUE7RUFDQSxZQUFBO0FBckJSOztBQXNCUTtFQUNFLGtCQUFBO0VBQ0EsWUFBQTtFQUNBLFdBQUE7RUFDQSxhQUFBO0VBQ0EsdUJBQUE7QUFwQlYiLCJmaWxlIjoibG9naXN0aWMtanVzdGlmeS1zZWxmLWludml0ZS13aXRoLWxvY2F0b3IuY29tcG9uZW50LnNjc3MiLCJzb3VyY2VzQ29udGVudCI6WyJpb24tY29udGVudC5zZWxlY3Rvci5pb3Mge1xuICAtLW9mZnNldC10b3A6IDBweCAhaW1wb3J0YW50O1xufVxuXG4uc2VsZWN0b3Ige1xuICAuY29udGVudCB7XG4gICAgaGVpZ2h0OiBhdXRvO1xuICAgIG1heC1oZWlnaHQ6IDEwMCU7XG5cbiAgICAubW9kYWwtY29udGFpbmVyIHtcbiAgICAgIGJveC1zaGFkb3c6IDBweCAtNnB4IDNweCByZ2JhKDAsIDAsIDAsIDAuMSk7XG4gICAgICBtYXJnaW4tdG9wOiAwO1xuICAgICAgdHJhbnNpdGlvbjogbWFyZ2luLXRvcCAxcyBlYXNlO1xuICAgICAgYmFja2dyb3VuZC1jb2xvcjogI2ZmZjtcbiAgICAgIGhlaWdodDogYXV0bztcbiAgICAgIG1heC1oZWlnaHQ6IDEwMCU7XG4gICAgICBvdmVyZmxvdy15OiBhdXRvO1xuXG4gICAgICAubW9kYWwtdGl0bGUge1xuICAgICAgICBkaXNwbGF5OiBmbGV4O1xuICAgICAgICBwYWRkaW5nLXRvcDogMWVtO1xuICAgICAgICBqdXN0aWZ5LWNvbnRlbnQ6IGNlbnRlcjtcbiAgICAgICAgYWxpZ24taXRlbXM6IGNlbnRlcjtcbiAgICAgICAgZmxleC1kaXJlY3Rpb246IGNvbHVtbjtcblxuICAgICAgICAudGl0bGUge1xuICAgICAgICAgIGZvbnQtc2l6ZTogaW5pdGlhbCAhaW1wb3J0YW50O1xuICAgICAgICAgIGZvbnQtd2VpZ2h0OiBib2xkO1xuICAgICAgICAgIHRleHQtYWxpZ246IGNlbnRlcjtcbiAgICAgICAgICBtYXJnaW46IDMycHg7XG4gICAgICAgICAgbWFyZ2luLWJvdHRvbTogOHB4O1xuICAgICAgICB9XG5cbiAgICAgICAgLmJ1dHRvbi1ob2xkZXIge1xuICAgICAgICAgIGp1c3RpZnktY29udGVudDogY2VudGVyO1xuICAgICAgICAgIG1hcmdpbjogMDtcbiAgICAgICAgfVxuICAgICAgfVxuXG4gICAgICAuaW5wdXQtaG9sZGVyIHtcbiAgICAgICAgbWFyZ2luLXRvcDogOHB4O1xuICAgICAgICBkaXNwbGF5OiBmbGV4O1xuICAgICAgICBqdXN0aWZ5LWNvbnRlbnQ6IGNlbnRlcjtcbiAgICAgICAgYWxpZ24taXRlbXM6IGNlbnRlcjtcbiAgICAgICAgZmxleC1kaXJlY3Rpb246IGNvbHVtbjtcblxuICAgICAgICAudXBwZXItb3B0aW9ucyB7XG4gICAgICAgICAgZGlzcGxheTogZmxleDtcbiAgICAgICAgICBqdXN0aWZ5LWNvbnRlbnQ6IGNlbnRlcjtcbiAgICAgICAgICBhbGlnbi1pdGVtczogY2VudGVyO1xuXG4gICAgICAgICAgLm5ldy1ob2xkZXIge1xuICAgICAgICAgICAgbWFyZ2luLXRvcDogMThweDtcblxuICAgICAgICAgICAgLmJ1dHRvbi1ob2xkZXIge1xuICAgICAgICAgICAgICBtYXJnaW4tdG9wOiAwO1xuICAgICAgICAgICAgfVxuICAgICAgICAgIH1cbiAgICAgICAgfVxuICAgICAgfVxuXG4gICAgICAubW9kYWwtYm9keSB7XG4gICAgICAgIC5kZXN0aW5hdGlvbi1sYWJlbCB7XG4gICAgICAgICAgZm9udC13ZWlnaHQ6IDUwMDtcbiAgICAgICAgICBmb250LXNpemU6IDE0cHg7XG4gICAgICAgICAgY29sb3I6ICMzMzMzMzM7XG4gICAgICAgICAgd2lkdGg6IDEwMCU7XG4gICAgICAgICAgdGV4dC1hbGlnbjogbGVmdDtcbiAgICAgICAgICBtYXJnaW4tYm90dG9tOiA2cHg7XG4gICAgICAgIH1cblxuICAgICAgICAuZGVzdGluYXRpb24tYm94IHtcbiAgICAgICAgICBiYWNrZ3JvdW5kOiAjZjVmNWY1O1xuICAgICAgICAgIGJvcmRlcjogMXB4IHNvbGlkICNlMGUwZTA7XG4gICAgICAgICAgYm9yZGVyLXJhZGl1czogNHB4O1xuICAgICAgICAgIHBhZGRpbmc6IDhweDtcbiAgICAgICAgICB3aWR0aDogMTAwJTtcbiAgICAgICAgICBkaXNwbGF5OiBmbGV4O1xuICAgICAgICAgIGZsZXgtZGlyZWN0aW9uOiByb3c7XG4gICAgICAgICAgYWxpZ24taXRlbXM6IGNlbnRlcjtcbiAgICAgICAgICBqdXN0aWZ5LWNvbnRlbnQ6IGZsZXgtc3RhcnQ7XG4gICAgICAgICAgZ2FwOiA4cHg7XG4gICAgICAgIH1cblxuICAgICAgICAuZGVzdGluYXRpb24tYm94IC5waG90byB7XG4gICAgICAgICAgZGlzcGxheTogZmxleDtcbiAgICAgICAgICBhbGlnbi1pdGVtczogY2VudGVyO1xuICAgICAgICAgIGp1c3RpZnktY29udGVudDogY2VudGVyO1xuICAgICAgICAgIHdpZHRoOiBhdXRvO1xuICAgICAgICB9XG5cbiAgICAgICAgLmRlc3RpbmF0aW9uLWJveCAucGhvdG8gaW9uLWF2YXRhciB7XG4gICAgICAgICAgd2lkdGg6IDQ4cHg7XG4gICAgICAgICAgaGVpZ2h0OiA0OHB4O1xuICAgICAgICB9XG5cbiAgICAgICAgLmRlc3RpbmF0aW9uLWJveCAucGhvdG8gLmluaXRpYWxzLmVzY29ydCB7XG4gICAgICAgICAgd2lkdGg6IDQ4cHggIWltcG9ydGFudDtcbiAgICAgICAgICBoZWlnaHQ6IDQ4cHggIWltcG9ydGFudDtcbiAgICAgICAgICBtaW4td2lkdGg6IDQ4cHggIWltcG9ydGFudDtcbiAgICAgICAgICBib3JkZXItcmFkaXVzOiA1MCU7XG4gICAgICAgICAgZGlzcGxheTogZmxleDtcbiAgICAgICAgICBqdXN0aWZ5LWNvbnRlbnQ6IGNlbnRlcjtcbiAgICAgICAgICBhbGlnbi1pdGVtczogY2VudGVyO1xuICAgICAgICAgIGJhY2tncm91bmQtY29sb3I6ICNlZWU7XG4gICAgICAgIH1cblxuICAgICAgICAuZGVzdGluYXRpb24tYm94IC5uYW1lIHtcbiAgICAgICAgICB0ZXh0LWFsaWduOiBsZWZ0O1xuICAgICAgICAgIGZvbnQtc2l6ZTogMTJweDtcbiAgICAgICAgICBjb2xvcjogIzY2NjY2NjtcbiAgICAgICAgICB3aWR0aDogYXV0bztcbiAgICAgICAgfVxuXG4gICAgICAgIEBtZWRpYSAobWF4LXdpZHRoOiA0ODBweCkge1xuICAgICAgICAgIC5kZXN0aW5hdGlvbi1ib3gge1xuICAgICAgICAgICAgcGFkZGluZzogNnB4O1xuICAgICAgICAgICAgZ2FwOiA2cHg7XG4gICAgICAgICAgfVxuXG4gICAgICAgICAgLmRlc3RpbmF0aW9uLWxhYmVsIHtcbiAgICAgICAgICAgIGZvbnQtc2l6ZTogMTNweDtcbiAgICAgICAgICB9XG5cbiAgICAgICAgICAuZGVzdGluYXRpb24tYm94IC5waG90byBpb24tYXZhdGFyLFxuICAgICAgICAgIC5kZXN0aW5hdGlvbi1ib3ggLnBob3RvIC5pbml0aWFscy5lc2NvcnQge1xuICAgICAgICAgICAgd2lkdGg6IDQ0cHg7XG4gICAgICAgICAgICBoZWlnaHQ6IDQ0cHg7XG4gICAgICAgICAgICBtaW4td2lkdGg6IDQ0cHg7XG4gICAgICAgICAgfVxuXG4gICAgICAgICAgLmRlc3RpbmF0aW9uLWJveCAubmFtZSB7XG4gICAgICAgICAgICBmb250LXNpemU6IDEycHg7XG4gICAgICAgICAgfVxuICAgICAgICB9XG5cbiAgICAgICAgLmNvdW50IHtcbiAgICAgICAgICBhbGlnbi1zZWxmOiBmbGV4LXN0YXJ0O1xuICAgICAgICAgIGZvbnQtc2l6ZTogMTFweDtcbiAgICAgICAgICBjb2xvcjogI2JiYjtcbiAgICAgICAgICBtYXJnaW4tdG9wOiAycHg7XG4gICAgICAgIH1cblxuICAgICAgICB0ZXh0YXJlYS5uby1tYXJnaW0ge1xuICAgICAgICAgIG1hcmdpbi10b3A6IDA7XG4gICAgICAgIH1cbiAgICAgICAgdGV4dGFyZWEge1xuICAgICAgICAgIGFwcGVhcmFuY2U6IG5vbmU7XG4gICAgICAgICAgYm9yZGVyOiAxcHggc29saWQgI2VlZTtcbiAgICAgICAgICBib3JkZXItcmFkaXVzOiA4cHg7XG4gICAgICAgICAgY29sb3I6ICM2NTY3Njg7XG4gICAgICAgICAgd2lkdGg6IDEwMCU7XG4gICAgICAgICAgcGFkZGluZzogOHB4IDhweDtcbiAgICAgICAgICBtYXJnaW4tdG9wOiAxOHB4O1xuXG4gICAgICAgICAgJjpmb2N1cyB7XG4gICAgICAgICAgICBib3JkZXI6IDFweCBzb2xpZCAjNjU2NzY4O1xuICAgICAgICAgICAgb3V0bGluZTogbm9uZTtcbiAgICAgICAgICB9XG4gICAgICAgIH1cbiAgICAgIH1cbiAgICAgIC5tb2RhbC1mb290ZXIge1xuICAgICAgICBtYXJnaW4tYm90dG9tOiAxZW07XG4gICAgICAgIGRpc3BsYXk6IGZsZXg7XG4gICAgICAgIGp1c3RpZnktY29udGVudDogY2VudGVyO1xuICAgICAgICBwYWRkaW5nOiAxZW07XG4gICAgICAgIC5idXR0b24taG9sZGVyIHtcbiAgICAgICAgICB0ZXh0LWFsaWduOiBjZW50ZXI7XG4gICAgICAgICAgbWFyZ2luOiBhdXRvO1xuICAgICAgICAgIHdpZHRoOiAxMDAlO1xuICAgICAgICAgIGRpc3BsYXk6IGZsZXg7XG4gICAgICAgICAganVzdGlmeS1jb250ZW50OiBjZW50ZXI7XG4gICAgICAgIH1cbiAgICAgIH1cbiAgICB9XG4gIH1cbn1cbiJdfQ== */"] }); /***/ }), /***/ 70534: /*!***************************************************************************************************************************!*\ !*** ./src/app/logistic-events/components/select-logistic-event-type-modal/select-logistic-event-type-modal.component.ts ***! \***************************************************************************************************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "SelectLogisticEventTypeModalComponent": () => (/* binding */ SelectLogisticEventTypeModalComponent) /* harmony export */ }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ 45449); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_angular_core__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var _ionic_angular__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @ionic/angular */ 93819); /* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/common */ 90944); /* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_angular_common__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var _ngx_translate_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @ngx-translate/core */ 38699); function SelectLogisticEventTypeModalComponent_ion_card_11_Template(rf, ctx) { if (rf & 1) { const _r4 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "ion-card", 12); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function SelectLogisticEventTypeModalComponent_ion_card_11_Template_ion_card_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r4); const ctx_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵresetView"](ctx_r3.createNewConventional()); }); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "ion-label")(2, "h6", 13); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](3); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](4, "translate"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "p", 14); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](6); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](7, "translate"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()()(); } if (rf & 2) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind1"](4, 2, "MD_EVENT_TYPE_VISITOR")); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind1"](7, 4, "MD_EVENT_TYPE_VISITOR_NEW_EVENT"), " "); } } function SelectLogisticEventTypeModalComponent_ion_card_12_Template(rf, ctx) { if (rf & 1) { const _r6 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "ion-card", 12); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function SelectLogisticEventTypeModalComponent_ion_card_12_Template_ion_card_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r6); const ctx_r5 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵresetView"](ctx_r5.createNewEntry()); }); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "ion-label")(2, "h6", 13); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](3); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](4, "translate"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "p", 14); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](6); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](7, "translate"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()()(); } if (rf & 2) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind1"](4, 2, "MD_EVENT_TYPE_CARGO_ARRIVAL"), " "); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind1"](7, 4, "MD_EVENT_TYPE_CARGO_ARRIVAL_NEW"), " "); } } function SelectLogisticEventTypeModalComponent_ion_card_13_Template(rf, ctx) { if (rf & 1) { const _r8 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "ion-card", 12); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function SelectLogisticEventTypeModalComponent_ion_card_13_Template_ion_card_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r8); const ctx_r7 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵresetView"](ctx_r7.createNewExit()); }); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "ion-label")(2, "h6", 13); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](3); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](4, "translate"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "p", 14); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](6); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](7, "translate"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()()(); } if (rf & 2) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind1"](4, 2, "MD_EVENT_TYPE_CARGO_DEPARTURE")); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind1"](7, 4, "MD_EVENT_TYPE_CARGO_DEPARTURE_NEW"), " "); } } class SelectLogisticEventTypeModalComponent { constructor(modalController) { this.modalController = modalController; this.availableTypes = []; this.createNewConventional = () => { this.modalController.dismiss({ type: 'CONVENTIONAL' }); }; this.createNewEntry = () => { this.modalController.dismiss({ type: 'NEW_ENTRY' }); }; this.createEntryFromExit = () => { this.modalController.dismiss({ type: 'CLONE_EXIT' }); }; this.createNewExit = () => { this.modalController.dismiss({ type: 'NEW_EXIT' }); }; this.createExitFromEntry = () => { this.modalController.dismiss({ type: 'CLONE_ENTRY' }); }; this.back = () => { this.modalController.dismiss(null); }; } } SelectLogisticEventTypeModalComponent.ɵfac = function SelectLogisticEventTypeModalComponent_Factory(t) { return new (t || SelectLogisticEventTypeModalComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_ionic_angular__WEBPACK_IMPORTED_MODULE_2__.ModalController)); }; SelectLogisticEventTypeModalComponent.ɵcmp = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: SelectLogisticEventTypeModalComponent, selectors: [["app-select-logistic-event-type-modal"]], inputs: { availableTypes: "availableTypes" }, decls: 18, vars: 10, consts: [[3, "ngClass"], [1, "content"], [1, "background"], [1, "modal-container"], [1, "modal-title"], ["tabindex", "1"], [1, "modal-body"], [1, "types"], ["lines", "none", 2, "padding", "0 2px"], ["button", "", "class", "type ion-no-padding", 3, "click", 4, "ngIf"], [1, "modal-footer"], ["mode", "ios", "fill", "clear", 1, "reject", 3, "click"], ["button", "", 1, "type", "ion-no-padding", 3, "click"], [1, "name"], [1, "description", "ion-text-wrap"]], template: function SelectLogisticEventTypeModalComponent_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 0)(1, "div", 1); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](2, "div", 2); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "div", 3)(4, "div", 4)(5, "h6", 5); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](6); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](7, "translate"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()(); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "div", 6)(9, "div", 7)(10, "ion-list", 8); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](11, SelectLogisticEventTypeModalComponent_ion_card_11_Template, 8, 6, "ion-card", 9); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](12, SelectLogisticEventTypeModalComponent_ion_card_12_Template, 8, 6, "ion-card", 9); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](13, SelectLogisticEventTypeModalComponent_ion_card_13_Template, 8, 6, "ion-card", 9); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()()(); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](14, "div", 10)(15, "ion-button", 11); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function SelectLogisticEventTypeModalComponent_Template_ion_button_click_15_listener() { return ctx.back(); }); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](16); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](17, "translate"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()()()()(); } if (rf & 2) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngClass", "select-logistic-event-type-modal"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](6); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind1"](7, 6, "MD_EVENT_TYPE_TITLE")); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.availableTypes.includes("CONVENTIONAL")); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.availableTypes.includes("ENTRY")); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.availableTypes.includes("EXIT")); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind1"](17, 8, "BTN_BACK"), " "); } }, dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_1__.NgClass, _angular_common__WEBPACK_IMPORTED_MODULE_1__.NgIf, _ionic_angular__WEBPACK_IMPORTED_MODULE_2__.IonButton, _ionic_angular__WEBPACK_IMPORTED_MODULE_2__.IonCard, _ionic_angular__WEBPACK_IMPORTED_MODULE_2__.IonLabel, _ionic_angular__WEBPACK_IMPORTED_MODULE_2__.IonList, _ngx_translate_core__WEBPACK_IMPORTED_MODULE_3__.TranslatePipe], styles: [".select-logistic-event-type-modal[_ngcontent-%COMP%] {\n width: 100vw;\n transition: height 0.5s ease-in-out;\n overflow: hidden;\n z-index: 1000;\n height: 100vh;\n}\n.select-logistic-event-type-modal[_ngcontent-%COMP%] h1[_ngcontent-%COMP%], .select-logistic-event-type-modal[_ngcontent-%COMP%] h2[_ngcontent-%COMP%], .select-logistic-event-type-modal[_ngcontent-%COMP%] h3[_ngcontent-%COMP%], .select-logistic-event-type-modal[_ngcontent-%COMP%] h4[_ngcontent-%COMP%], .select-logistic-event-type-modal[_ngcontent-%COMP%] h5[_ngcontent-%COMP%], .select-logistic-event-type-modal[_ngcontent-%COMP%] h6[_ngcontent-%COMP%] {\n all: unset !important;\n}\n.select-logistic-event-type-modal[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] {\n height: 100vh;\n position: absolute;\n width: 100vw;\n top: 0;\n color: #383a3e;\n}\n.select-logistic-event-type-modal[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .background[_ngcontent-%COMP%] {\n position: absolute;\n height: 100vh;\n width: 100vw;\n background-color: #333;\n opacity: 0.3;\n top: 0;\n transition: opacity 0.5s ease-out;\n}\n.select-logistic-event-type-modal[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] {\n height: 60vh;\n background-color: #fff;\n width: 86vw;\n margin: auto;\n border-radius: 8px;\n padding: 24px;\n box-shadow: 2px 2px 0 0 rgba(0, 0, 0, 0.1);\n position: relative;\n margin-top: 20vh;\n transition: margin-top 1s ease;\n}\n.select-logistic-event-type-modal[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-title[_ngcontent-%COMP%] {\n text-align: center;\n font-weight: 500;\n position: absolute;\n top: 0;\n height: 3.5em;\n line-height: 3.5em;\n width: calc(100% - 48px);\n background-color: #fff;\n}\n.select-logistic-event-type-modal[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%] {\n position: absolute;\n height: calc(100% - 7em);\n width: calc(100% - 48px);\n top: 3.5em;\n overflow-y: scroll;\n text-align: justify;\n font-size: 0.9em;\n background-color: #fff;\n}\n.select-logistic-event-type-modal[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%] ion-card[_ngcontent-%COMP%] {\n margin: 0;\n box-shadow: none;\n}\n.select-logistic-event-type-modal[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%] .type[_ngcontent-%COMP%] {\n padding: 8px 12px;\n border: 1px solid #eee;\n border-radius: 4px;\n margin-bottom: 8px;\n}\n.select-logistic-event-type-modal[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%] .type[_ngcontent-%COMP%] .name[_ngcontent-%COMP%] {\n font-weight: bold;\n}\n.select-logistic-event-type-modal[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%] .type[_ngcontent-%COMP%] .description[_ngcontent-%COMP%] {\n color: #656768;\n}\n.select-logistic-event-type-modal[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-footer[_ngcontent-%COMP%] {\n position: absolute;\n bottom: 0;\n height: 3.5em;\n width: calc(100% - 48px);\n line-height: 3.5em;\n display: flex;\n justify-content: center;\n align-items: center;\n overflow: hidden;\n background-color: #fff;\n}\n.select-logistic-event-type-modal[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-footer[_ngcontent-%COMP%] ion-button[_ngcontent-%COMP%] {\n font-size: 1em;\n background-color: #fff;\n color: #656768;\n padding: 0.75em 1.25em;\n border-radius: 32px;\n transition: background-color 0.1s ease-out;\n height: 36px;\n}\n.select-logistic-event-type-modal[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-footer[_ngcontent-%COMP%] ion-button[_ngcontent-%COMP%]:active {\n background-color: #eee;\n color: #656768;\n transition: background-color 0.1s ease-out;\n}\n.select-logistic-event-type-modal[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-footer[_ngcontent-%COMP%] ion-button.accept[_ngcontent-%COMP%] {\n color: #0ec254;\n}\n.select-logistic-event-type-modal[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-footer[_ngcontent-%COMP%] ion-button.accept[_ngcontent-%COMP%]:active {\n background-color: #0ec254;\n color: #fff;\n transition: background-color 0.1s ease-out;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNlbGVjdC1sb2dpc3RpYy1ldmVudC10eXBlLW1vZGFsLmNvbXBvbmVudC5zY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0VBVUUsWUFBQTtFQUNBLG1DQUFBO0VBQ0EsZ0JBQUE7RUFDQSxhQUFBO0VBQ0EsYUFBQTtBQVJGO0FBSkU7Ozs7OztFQU1FLHFCQUFBO0FBTUo7QUFFRTtFQUNFLGFBQUE7RUFDQSxrQkFBQTtFQUNBLFlBQUE7RUFDQSxNQUFBO0VBQ0EsY0FBQTtBQUFKO0FBRUk7RUFDRSxrQkFBQTtFQUNBLGFBQUE7RUFDQSxZQUFBO0VBQ0Esc0JBQUE7RUFDQSxZQUFBO0VBQ0EsTUFBQTtFQUNBLGlDQUFBO0FBQU47QUFHSTtFQUNFLFlBQUE7RUFDQSxzQkFBQTtFQUNBLFdBQUE7RUFDQSxZQUFBO0VBQ0Esa0JBQUE7RUFDQSxhQUFBO0VBQ0EsMENBQUE7RUFDQSxrQkFBQTtFQUNBLGdCQUFBO0VBQ0EsOEJBQUE7QUFETjtBQUdNO0VBQ0Usa0JBQUE7RUFDQSxnQkFBQTtFQUNBLGtCQUFBO0VBQ0EsTUFBQTtFQUNBLGFBQUE7RUFDQSxrQkFBQTtFQUNBLHdCQUFBO0VBQ0Esc0JBQUE7QUFEUjtBQUlNO0VBQ0Usa0JBQUE7RUFDQSx3QkFBQTtFQUNBLHdCQUFBO0VBQ0EsVUFBQTtFQUNBLGtCQUFBO0VBQ0EsbUJBQUE7RUFDQSxnQkFBQTtFQUNBLHNCQUFBO0FBRlI7QUFHUTtFQUNFLFNBQUE7RUFDQSxnQkFBQTtBQURWO0FBSVE7RUFDRSxpQkFBQTtFQUNBLHNCQUFBO0VBQ0Esa0JBQUE7RUFDQSxrQkFBQTtBQUZWO0FBSVU7RUFDRSxpQkFBQTtBQUZaO0FBS1U7RUFDRSxjQUFBO0FBSFo7QUFRTTtFQUNFLGtCQUFBO0VBQ0EsU0FBQTtFQUNBLGFBQUE7RUFDQSx3QkFBQTtFQUNBLGtCQUFBO0VBQ0EsYUFBQTtFQUNBLHVCQUFBO0VBQ0EsbUJBQUE7RUFDQSxnQkFBQTtFQUNBLHNCQUFBO0FBTlI7QUFRUTtFQUNFLGNBQUE7RUFDQSxzQkFBQTtFQUNBLGNBQUE7RUFDQSxzQkFBQTtFQUNBLG1CQUFBO0VBQ0EsMENBQUE7RUFDQSxZQUFBO0FBTlY7QUFPVTtFQUNFLHNCQUFBO0VBQ0EsY0FBQTtFQUNBLDBDQUFBO0FBTFo7QUFRVTtFQUNFLGNBQUE7QUFOWjtBQVFZO0VBQ0UseUJBQUE7RUFDQSxXQUFBO0VBQ0EsMENBQUE7QUFOZCIsImZpbGUiOiJzZWxlY3QtbG9naXN0aWMtZXZlbnQtdHlwZS1tb2RhbC5jb21wb25lbnQuc2NzcyIsInNvdXJjZXNDb250ZW50IjpbIi5zZWxlY3QtbG9naXN0aWMtZXZlbnQtdHlwZS1tb2RhbCB7XG4gIC8vIHJlc2V0IGgxLCBoMiwgaDMsIGg0LCBoNSwgaDZcbiAgaDEsXG4gIGgyLFxuICBoMyxcbiAgaDQsXG4gIGg1LFxuICBoNiB7XG4gICAgYWxsOiB1bnNldCAhaW1wb3J0YW50O1xuICB9XG4gIHdpZHRoOiAxMDB2dztcbiAgdHJhbnNpdGlvbjogaGVpZ2h0IDAuNXMgZWFzZS1pbi1vdXQ7XG4gIG92ZXJmbG93OiBoaWRkZW47XG4gIHotaW5kZXg6IDEwMDA7XG4gIGhlaWdodDogMTAwdmg7XG5cbiAgLmNvbnRlbnQge1xuICAgIGhlaWdodDogMTAwdmg7XG4gICAgcG9zaXRpb246IGFic29sdXRlO1xuICAgIHdpZHRoOiAxMDB2dztcbiAgICB0b3A6IDA7XG4gICAgY29sb3I6ICMzODNhM2U7XG5cbiAgICAuYmFja2dyb3VuZCB7XG4gICAgICBwb3NpdGlvbjogYWJzb2x1dGU7XG4gICAgICBoZWlnaHQ6IDEwMHZoO1xuICAgICAgd2lkdGg6IDEwMHZ3O1xuICAgICAgYmFja2dyb3VuZC1jb2xvcjogIzMzMztcbiAgICAgIG9wYWNpdHk6IDAuMztcbiAgICAgIHRvcDogMDtcbiAgICAgIHRyYW5zaXRpb246IG9wYWNpdHkgMC41cyBlYXNlLW91dDtcbiAgICB9XG5cbiAgICAubW9kYWwtY29udGFpbmVyIHtcbiAgICAgIGhlaWdodDogNjB2aDtcbiAgICAgIGJhY2tncm91bmQtY29sb3I6ICNmZmY7XG4gICAgICB3aWR0aDogODZ2dztcbiAgICAgIG1hcmdpbjogYXV0bztcbiAgICAgIGJvcmRlci1yYWRpdXM6IDhweDtcbiAgICAgIHBhZGRpbmc6IDI0cHg7XG4gICAgICBib3gtc2hhZG93OiAycHggMnB4IDAgMCByZ2JhKDAsIDAsIDAsIDAuMSk7XG4gICAgICBwb3NpdGlvbjogcmVsYXRpdmU7XG4gICAgICBtYXJnaW4tdG9wOiAyMHZoO1xuICAgICAgdHJhbnNpdGlvbjogbWFyZ2luLXRvcCAxcyBlYXNlO1xuXG4gICAgICAubW9kYWwtdGl0bGUge1xuICAgICAgICB0ZXh0LWFsaWduOiBjZW50ZXI7XG4gICAgICAgIGZvbnQtd2VpZ2h0OiA1MDA7XG4gICAgICAgIHBvc2l0aW9uOiBhYnNvbHV0ZTtcbiAgICAgICAgdG9wOiAwO1xuICAgICAgICBoZWlnaHQ6IDMuNWVtO1xuICAgICAgICBsaW5lLWhlaWdodDogMy41ZW07XG4gICAgICAgIHdpZHRoOiBjYWxjKDEwMCUgLSA0OHB4KTtcbiAgICAgICAgYmFja2dyb3VuZC1jb2xvcjogI2ZmZjtcbiAgICAgIH1cblxuICAgICAgLm1vZGFsLWJvZHkge1xuICAgICAgICBwb3NpdGlvbjogYWJzb2x1dGU7XG4gICAgICAgIGhlaWdodDogY2FsYygxMDAlIC0gN2VtKTtcbiAgICAgICAgd2lkdGg6IGNhbGMoMTAwJSAtIDQ4cHgpO1xuICAgICAgICB0b3A6IDMuNWVtO1xuICAgICAgICBvdmVyZmxvdy15OiBzY3JvbGw7XG4gICAgICAgIHRleHQtYWxpZ246IGp1c3RpZnk7XG4gICAgICAgIGZvbnQtc2l6ZTogMC45ZW07XG4gICAgICAgIGJhY2tncm91bmQtY29sb3I6ICNmZmY7XG4gICAgICAgIGlvbi1jYXJkIHtcbiAgICAgICAgICBtYXJnaW46IDA7XG4gICAgICAgICAgYm94LXNoYWRvdzogbm9uZTtcbiAgICAgICAgfVxuXG4gICAgICAgIC50eXBlIHtcbiAgICAgICAgICBwYWRkaW5nOiA4cHggMTJweDtcbiAgICAgICAgICBib3JkZXI6IDFweCBzb2xpZCAjZWVlO1xuICAgICAgICAgIGJvcmRlci1yYWRpdXM6IDRweDtcbiAgICAgICAgICBtYXJnaW4tYm90dG9tOiA4cHg7XG5cbiAgICAgICAgICAubmFtZSB7XG4gICAgICAgICAgICBmb250LXdlaWdodDogYm9sZDtcbiAgICAgICAgICB9XG5cbiAgICAgICAgICAuZGVzY3JpcHRpb24ge1xuICAgICAgICAgICAgY29sb3I6ICM2NTY3Njg7XG4gICAgICAgICAgfVxuICAgICAgICB9XG4gICAgICB9XG5cbiAgICAgIC5tb2RhbC1mb290ZXIge1xuICAgICAgICBwb3NpdGlvbjogYWJzb2x1dGU7XG4gICAgICAgIGJvdHRvbTogMDtcbiAgICAgICAgaGVpZ2h0OiAzLjVlbTtcbiAgICAgICAgd2lkdGg6IGNhbGMoMTAwJSAtIDQ4cHgpO1xuICAgICAgICBsaW5lLWhlaWdodDogMy41ZW07XG4gICAgICAgIGRpc3BsYXk6IGZsZXg7XG4gICAgICAgIGp1c3RpZnktY29udGVudDogY2VudGVyO1xuICAgICAgICBhbGlnbi1pdGVtczogY2VudGVyO1xuICAgICAgICBvdmVyZmxvdzogaGlkZGVuO1xuICAgICAgICBiYWNrZ3JvdW5kLWNvbG9yOiAjZmZmO1xuXG4gICAgICAgIGlvbi1idXR0b24ge1xuICAgICAgICAgIGZvbnQtc2l6ZTogMWVtO1xuICAgICAgICAgIGJhY2tncm91bmQtY29sb3I6ICNmZmY7XG4gICAgICAgICAgY29sb3I6ICM2NTY3Njg7XG4gICAgICAgICAgcGFkZGluZzogMC43NWVtIDEuMjVlbTtcbiAgICAgICAgICBib3JkZXItcmFkaXVzOiAzMnB4O1xuICAgICAgICAgIHRyYW5zaXRpb246IGJhY2tncm91bmQtY29sb3IgMC4xcyBlYXNlLW91dDtcbiAgICAgICAgICBoZWlnaHQ6IDM2cHg7XG4gICAgICAgICAgJjphY3RpdmUge1xuICAgICAgICAgICAgYmFja2dyb3VuZC1jb2xvcjogI2VlZTtcbiAgICAgICAgICAgIGNvbG9yOiAjNjU2NzY4O1xuICAgICAgICAgICAgdHJhbnNpdGlvbjogYmFja2dyb3VuZC1jb2xvciAwLjFzIGVhc2Utb3V0O1xuICAgICAgICAgIH1cblxuICAgICAgICAgICYuYWNjZXB0IHtcbiAgICAgICAgICAgIGNvbG9yOiAjMGVjMjU0O1xuXG4gICAgICAgICAgICAmOmFjdGl2ZSB7XG4gICAgICAgICAgICAgIGJhY2tncm91bmQtY29sb3I6ICMwZWMyNTQ7XG4gICAgICAgICAgICAgIGNvbG9yOiAjZmZmO1xuICAgICAgICAgICAgICB0cmFuc2l0aW9uOiBiYWNrZ3JvdW5kLWNvbG9yIDAuMXMgZWFzZS1vdXQ7XG4gICAgICAgICAgICB9XG4gICAgICAgICAgfVxuICAgICAgICB9XG4gICAgICB9XG4gICAgfVxuICB9XG59XG4iXX0= */"] }); /***/ }), /***/ 82366: /*!*****************************************************************************************************************************************!*\ !*** ./src/app/logistic-events/components/selector-for-assistants-to-add-to-event/selector-for-assistants-to-add-to-event.component.ts ***! \*****************************************************************************************************************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "SelectorForAssistantsToAddToEventComponent": () => (/* binding */ SelectorForAssistantsToAddToEventComponent) /* harmony export */ }); /* harmony import */ var _Volumes_case_workspace_work_APPS_KA_APP_WORK_NOW_KA_PASS_V2_2_6_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js */ 71670); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ 45449); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_angular_core__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var _ionic_angular__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @ionic/angular */ 93819); /* harmony import */ var _shared_components__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @shared/components */ 7667); /* harmony import */ var _shared_services__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @shared/services */ 17253); /* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @angular/forms */ 2508); /* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @angular/common */ 90944); /* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_angular_common__WEBPACK_IMPORTED_MODULE_4__); /* harmony import */ var _card_founduser_lg_card_founduser_lg_component__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../card-founduser-lg/card-founduser-lg.component */ 30834); /* harmony import */ var _ngx_translate_core__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @ngx-translate/core */ 38699); function SelectorForAssistantsToAddToEventComponent_div_29_ng_container_7_ng_container_1_Template(rf, ctx) { if (rf & 1) { const _r7 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"](); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementContainerStart"](0); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "app-card-founduser-lg", 23); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("userSelect", function SelectorForAssistantsToAddToEventComponent_div_29_ng_container_7_ng_container_1_Template_app_card_founduser_lg_userSelect_1_listener() { const restoredCtx = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r7); const foundUser_r5 = restoredCtx.$implicit; const ctx_r6 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](3); return _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵresetView"](ctx_r6.onUserSelect(foundUser_r5)); }); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementContainerEnd"](); } if (rf & 2) { const foundUser_r5 = ctx.$implicit; _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("foundUser", foundUser_r5); } } function SelectorForAssistantsToAddToEventComponent_div_29_ng_container_7_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementContainerStart"](0); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](1, SelectorForAssistantsToAddToEventComponent_div_29_ng_container_7_ng_container_1_Template, 2, 1, "ng-container", 22); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementContainerEnd"](); } if (rf & 2) { const ctx_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", ctx_r3.foundUsers); } } function SelectorForAssistantsToAddToEventComponent_div_29_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 20)(1, "div", 7); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipe"](3, "translate"); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "div", 21); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](5); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipe"](6, "translate"); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](7, SelectorForAssistantsToAddToEventComponent_div_29_ng_container_7_Template, 2, 1, "ng-container", 16); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"](); } if (rf & 2) { const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipeBind1"](3, 3, "MD_ASSISTANT_USERS_FOUND")); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipeBind1"](6, 5, "MD_ASSISTANT_TAP_ITEM"), " "); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r0.isLoading); } } function SelectorForAssistantsToAddToEventComponent_ng_container_30_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementContainerStart"](0); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](1, "app-card-founduser-lg", 24); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementContainerEnd"](); } if (rf & 2) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("skeleton", true); } } class SelectorForAssistantsToAddToEventComponent { constructor(ngZoneService, createLogisticEventService, formBuilder, modalController, changeDetectorRef, helperService, logService, userPhotoService) { var _this = this; this.ngZoneService = ngZoneService; this.createLogisticEventService = createLogisticEventService; this.formBuilder = formBuilder; this.modalController = modalController; this.changeDetectorRef = changeDetectorRef; this.helperService = helperService; this.logService = logService; this.userPhotoService = userPhotoService; this.page = 0; this.size = 15; this.onClose = user => { this.modalController.dismiss(user); }; this.onUserSelect = user => { user.fullName = this.helperService.normalizeName(user.firstName, user.lastName); setTimeout(() => { this.onClose(user); }, 750); }; this.onCreateGuest = /*#__PURE__*/(0,_Volumes_case_workspace_work_APPS_KA_APP_WORK_NOW_KA_PASS_V2_2_6_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* () { const modal = yield _this.modalController.create({ component: _shared_components__WEBPACK_IMPORTED_MODULE_2__.CreateAssistantComponent }); modal.onDidDismiss().then(_this.onModalDismissCallback); yield modal.present(); }); this.onModalDismissCallback = detail => { if (detail && detail.data) { this.onUserSelect(detail.data); } }; this.onUpdateContactInfoSuccessResponse = contact => { console.log('onUpdateContactInfoSuccessResponse'); console.log('contact:', contact); }; this.onUpdateContactInfoErrorResponse = error => { console.log('onUpdateContactInfoErrorResponse'); console.log('error:', error); }; this.onInputChange = e => { const { value } = e.target; this.infiniteScroll.disabled = false; if (this.searchTimeout) { clearTimeout(this.searchTimeout); } this.searchTimeout = setTimeout(() => { if (value.length > 1) { this.foundUsers = []; this.page = 0; } this.doSearch(value); }, 750); }; this.doSearch = searchTerm => { // const searchTerms = searchTerm.split(' '); // const firstName = searchTerms[0].trim(); // const lastName = searchTerms.slice(1).join(' '); // const data = { // 'firstName.contains': firstName ? firstName : '' // }; // if (lastName.trim().length > 0) { // data['lastName.contains'] = lastName.trim(); // } searchTerm = searchTerm.trim(); const data = { searchTerm }; this.dataTerms = data; this.createLogisticEventService.getCompanyAssistants(data, this.page, this.size).then(this.handleGetGuestsSuccessResponse).catch(this.handleGetGuestsErrorResponse).finally(() => this.isLoading = true); }; this.handleGetGuestsSuccessResponse = response => { console.log('handleGetGuestsSuccessResponse'); console.log('response:', response); this.setFoundUsers(response); this.userPhotoService.enrichUsersWithPhotos(response); }; this.handleGetGuestsErrorResponse = error => { this.logService.logError('http::handleGetGuestsErrorResponse', '', error); console.log('handleGetGuestsErrorResponse'); console.log('error:', error); }; this.setFoundUsers = foundUsers => { // this.foundUsers = foundUsers.sort((a: any, b: any) => (a.firstName > b.firstName && 1) || -1); this.foundUsers = foundUsers; this.changeDetectorRef.detectChanges(); // Does not work, but does not hurt either. scrollBy(0, 1); // It wasn't detecting changes. }; } ngOnInit() { this.foundUsers = []; this.searchTimeout = null; this.userForm = this.formBuilder.group({ searchTerm: [''] }); } ionViewWillEnter() { this.onInputChange({ target: { value: '' } }); } loadData(event) { this.page += 1; this.loadMore(this.page, event); } loadMore(page, infiniteScroll) { this.createLogisticEventService.getCompanyDrivers(this.dataTerms, page, this.size, !!infiniteScroll).then(drivers => { this.isLoading = true; if (drivers.length > 0) { this.handleGetGuestsSuccessResponse(this.foundUsers.concat(drivers)); if (this.size > 0) { infiniteScroll.target.complete(); } } else { infiniteScroll.target.disabled = true; } }).catch(err => { this.handleGetGuestsErrorResponse(err); infiniteScroll.target.complete(); infiniteScroll.target.disabled = true; }); } } SelectorForAssistantsToAddToEventComponent.ɵfac = function SelectorForAssistantsToAddToEventComponent_Factory(t) { return new (t || SelectorForAssistantsToAddToEventComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_3__.NgZoneService), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_3__.CreateLogisticEventService), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_6__.UntypedFormBuilder), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_ionic_angular__WEBPACK_IMPORTED_MODULE_7__.ModalController), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__.ChangeDetectorRef), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_3__.HelperService), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_3__.LogService), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_3__.UserPhotoService)); }; SelectorForAssistantsToAddToEventComponent.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineComponent"]({ type: SelectorForAssistantsToAddToEventComponent, selectors: [["app-selector-for-assistants-to-add-to-event"]], viewQuery: function SelectorForAssistantsToAddToEventComponent_Query(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵviewQuery"](_ionic_angular__WEBPACK_IMPORTED_MODULE_7__.IonInfiniteScroll, 5); } if (rf & 2) { let _t; _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵloadQuery"]()) && (ctx.infiniteScroll = _t.first); } }, decls: 35, vars: 16, consts: [[1, "fix-header-modal-ios", "ion-no-border"], [3, "ngClass"], [1, "content"], [1, "modal-container"], [1, "modal-title"], [1, "button-holder"], [1, "back", 3, "click"], [1, "title"], [1, "modal-body"], [3, "formGroup"], [1, "input-holder"], [1, "upper-options"], ["id", "name", "type", "text", "formControlName", "searchTerm", 3, "placeholder", "keyup"], [1, "new-holder"], ["type", "button", 3, "click"], ["class", "results", 4, "ngIf"], [4, "ngIf"], [1, "modal-footer"], ["threshold", "15%", "position", "bottom", 3, "ionInfinite"], ["IonInfiniteScroll", ""], [1, "results"], [1, "sub-title"], [4, "ngFor", "ngForOf"], ["typeofuser", "assistant", 3, "foundUser", "userSelect"], [3, "skeleton"]], template: function SelectorForAssistantsToAddToEventComponent_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "ion-header", 0)(1, "ion-toolbar"); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](2, "ion-title"); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()(); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "ion-content", 1)(4, "div", 2)(5, "div", 3)(6, "div", 4)(7, "div", 5)(8, "button", 6); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function SelectorForAssistantsToAddToEventComponent_Template_button_click_8_listener() { return ctx.onClose(); }); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](9); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipe"](10, "translate"); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()(); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](11, "div", 7); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](12); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipe"](13, "translate"); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()(); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](14, "div", 8)(15, "ion-row")(16, "ion-col")(17, "form", 9)(18, "div", 10)(19, "div", 11)(20, "input", 12); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("keyup", function SelectorForAssistantsToAddToEventComponent_Template_input_keyup_20_listener($event) { return ctx.onInputChange($event); }); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipe"](21, "translate"); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](22, "div", 13)(23, "div", 5)(24, "button", 14); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function SelectorForAssistantsToAddToEventComponent_Template_button_click_24_listener() { return ctx.onCreateGuest(); }); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](25); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipe"](26, "translate"); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()()()()()()()(); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](27, "ion-row")(28, "ion-col"); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](29, SelectorForAssistantsToAddToEventComponent_div_29_Template, 8, 7, "div", 15); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](30, SelectorForAssistantsToAddToEventComponent_ng_container_30_Template, 2, 1, "ng-container", 16); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()()(); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](31, "div", 17); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()(); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](32, "ion-infinite-scroll", 18, 19); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("ionInfinite", function SelectorForAssistantsToAddToEventComponent_Template_ion_infinite_scroll_ionInfinite_32_listener($event) { return ctx.loadData($event); }); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](34, "ion-infinite-scroll-content"); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()(); } if (rf & 2) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngClass", "selector"); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](6); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipeBind1"](10, 8, "MD_ASSISTANT_BTN_CLOSE"), " "); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipeBind1"](13, 10, "MD_ASSISTANT_TITLE")); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](5); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("formGroup", ctx.userForm); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("placeholder", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipeBind1"](21, 12, "MD_ASSISTANT_INPUT")); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](5); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipeBind1"](26, 14, "MD_ASSISTANT_BTN_NEW"), " "); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", !!ctx.foundUsers.length); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", !ctx.isLoading); } }, dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_4__.NgClass, _angular_common__WEBPACK_IMPORTED_MODULE_4__.NgForOf, _angular_common__WEBPACK_IMPORTED_MODULE_4__.NgIf, _ionic_angular__WEBPACK_IMPORTED_MODULE_7__.IonCol, _ionic_angular__WEBPACK_IMPORTED_MODULE_7__.IonContent, _ionic_angular__WEBPACK_IMPORTED_MODULE_7__.IonHeader, _ionic_angular__WEBPACK_IMPORTED_MODULE_7__.IonInfiniteScroll, _ionic_angular__WEBPACK_IMPORTED_MODULE_7__.IonInfiniteScrollContent, _ionic_angular__WEBPACK_IMPORTED_MODULE_7__.IonRow, _ionic_angular__WEBPACK_IMPORTED_MODULE_7__.IonTitle, _ionic_angular__WEBPACK_IMPORTED_MODULE_7__.IonToolbar, _angular_forms__WEBPACK_IMPORTED_MODULE_6__["ɵNgNoValidate"], _angular_forms__WEBPACK_IMPORTED_MODULE_6__.DefaultValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_6__.NgControlStatus, _angular_forms__WEBPACK_IMPORTED_MODULE_6__.NgControlStatusGroup, _angular_forms__WEBPACK_IMPORTED_MODULE_6__.FormGroupDirective, _angular_forms__WEBPACK_IMPORTED_MODULE_6__.FormControlName, _card_founduser_lg_card_founduser_lg_component__WEBPACK_IMPORTED_MODULE_5__.CardFounduserLgComponent, _ngx_translate_core__WEBPACK_IMPORTED_MODULE_8__.TranslatePipe], styles: ["ion-content.selector.ios[_ngcontent-%COMP%] {\n --offset-top: 0px !important;\n}\nion-content.selector.ios[_ngcontent-%COMP%] ion-fab.fab[_ngcontent-%COMP%] {\n position: fixed;\n margin-top: 10px;\n}\nion-header.fix-header-modal-ios[_ngcontent-%COMP%] ion-toolbar[_ngcontent-%COMP%] {\n height: 0px !important;\n --background: #fff;\n}\n.selector[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] {\n box-shadow: 0px -6px 3px rgba(0, 0, 0, 0.1);\n margin-top: 0;\n transition: margin-top 1s ease;\n background-color: #fff;\n height: 100%;\n overflow: scroll;\n}\n.selector[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-title[_ngcontent-%COMP%] {\n display: flex;\n padding-top: 1.5em;\n justify-content: center;\n align-items: center;\n flex-direction: column;\n}\n.selector[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-title[_ngcontent-%COMP%] .title[_ngcontent-%COMP%] {\n font-size: initial !important;\n font-weight: bold;\n text-align: center;\n margin: 32px;\n margin-bottom: 8px;\n}\n.selector[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-title[_ngcontent-%COMP%] .button-holder[_ngcontent-%COMP%] {\n justify-content: center;\n margin: 0;\n}\n.selector[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .input-holder[_ngcontent-%COMP%] {\n margin-top: 8px;\n display: flex;\n justify-content: center;\n align-items: center;\n flex-direction: column;\n width: 100%;\n}\n.selector[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .input-holder[_ngcontent-%COMP%] .upper-options[_ngcontent-%COMP%] {\n display: flex;\n justify-content: center;\n align-items: center;\n}\n.selector[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .input-holder[_ngcontent-%COMP%] .upper-options[_ngcontent-%COMP%] .new-holder[_ngcontent-%COMP%] {\n margin-top: 18px;\n}\n.selector[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .input-holder[_ngcontent-%COMP%] .upper-options[_ngcontent-%COMP%] .new-holder[_ngcontent-%COMP%] .button-holder[_ngcontent-%COMP%] {\n margin-top: 0;\n}\n.selector[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .input-holder[_ngcontent-%COMP%] .bottom-options[_ngcontent-%COMP%] {\n display: flex;\n justify-content: center;\n align-items: center;\n}\n.selector[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .input-holder[_ngcontent-%COMP%] .bottom-options[_ngcontent-%COMP%] .new-holder[_ngcontent-%COMP%] {\n margin-top: 18px;\n}\n.selector[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .input-holder[_ngcontent-%COMP%] .bottom-options[_ngcontent-%COMP%] .new-holder[_ngcontent-%COMP%] .button-holder[_ngcontent-%COMP%] {\n margin-top: 0;\n width: 100%;\n}\n.selector[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%] .results[_ngcontent-%COMP%] {\n overflow: scroll;\n height: 100%;\n padding: 1em;\n}\n.selector[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%] .results[_ngcontent-%COMP%] .title[_ngcontent-%COMP%] {\n font-size: initial !important;\n width: 80%;\n margin: 0 10% 2px;\n font-weight: bold;\n text-align: center;\n}\n.selector[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%] .results[_ngcontent-%COMP%] .sub-title[_ngcontent-%COMP%] {\n margin: 10px 0;\n font-size: 0.9em;\n background-color: #eee;\n border: 1px solid #ccc;\n padding: 8px;\n border-radius: 2px;\n text-align: center;\n}\n.selector[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%] .results[_ngcontent-%COMP%] .result[_ngcontent-%COMP%] {\n width: 95%;\n margin: 10px 10px 10px 10px;\n border: 1px solid #eee;\n border-radius: 4px;\n padding: 10px 10px;\n}\n.selector[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%] .results[_ngcontent-%COMP%] .result[_ngcontent-%COMP%] .company[_ngcontent-%COMP%] {\n color: #aaa;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNlbGVjdG9yLWZvci1hc3Npc3RhbnRzLXRvLWFkZC10by1ldmVudC5jb21wb25lbnQuc2NzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTtFQUNFLDRCQUFBO0FBQ0Y7QUFBRTtFQUNFLGVBQUE7RUFDQSxnQkFBQTtBQUVKO0FBRUU7RUFDRSxzQkFBQTtFQUNBLGtCQUFBO0FBQ0o7QUFJRTtFQUNFLDJDQUFBO0VBQ0EsYUFBQTtFQUNBLDhCQUFBO0VBQ0Esc0JBQUE7RUFDQSxZQUFBO0VBQ0EsZ0JBQUE7QUFESjtBQUdJO0VBQ0UsYUFBQTtFQUNBLGtCQUFBO0VBQ0EsdUJBQUE7RUFDQSxtQkFBQTtFQUNBLHNCQUFBO0FBRE47QUFHTTtFQUNFLDZCQUFBO0VBQ0EsaUJBQUE7RUFDQSxrQkFBQTtFQUNBLFlBQUE7RUFDQSxrQkFBQTtBQURSO0FBSU07RUFDRSx1QkFBQTtFQUNBLFNBQUE7QUFGUjtBQU1JO0VBQ0UsZUFBQTtFQUNBLGFBQUE7RUFDQSx1QkFBQTtFQUNBLG1CQUFBO0VBQ0Esc0JBQUE7RUFDQSxXQUFBO0FBSk47QUFNTTtFQUNFLGFBQUE7RUFDQSx1QkFBQTtFQUNBLG1CQUFBO0FBSlI7QUFNUTtFQUNFLGdCQUFBO0FBSlY7QUFNVTtFQUNFLGFBQUE7QUFKWjtBQVNNO0VBQ0UsYUFBQTtFQUNBLHVCQUFBO0VBQ0EsbUJBQUE7QUFQUjtBQVNRO0VBQ0UsZ0JBQUE7QUFQVjtBQVNVO0VBQ0UsYUFBQTtFQUNBLFdBQUE7QUFQWjtBQWNNO0VBQ0UsZ0JBQUE7RUFDQSxZQUFBO0VBQ0EsWUFBQTtBQVpSO0FBY1E7RUFDRSw2QkFBQTtFQUNBLFVBQUE7RUFDQSxpQkFBQTtFQUNBLGlCQUFBO0VBQ0Esa0JBQUE7QUFaVjtBQWVRO0VBQ0UsY0FBQTtFQUNBLGdCQUFBO0VBQ0Esc0JBQUE7RUFDQSxzQkFBQTtFQUNBLFlBQUE7RUFDQSxrQkFBQTtFQUNBLGtCQUFBO0FBYlY7QUFnQlE7RUFDRSxVQUFBO0VBQ0EsMkJBQUE7RUFDQSxzQkFBQTtFQUNBLGtCQUFBO0VBQ0Esa0JBQUE7QUFkVjtBQWdCVTtFQUNFLFdBQUE7QUFkWiIsImZpbGUiOiJzZWxlY3Rvci1mb3ItYXNzaXN0YW50cy10by1hZGQtdG8tZXZlbnQuY29tcG9uZW50LnNjc3MiLCJzb3VyY2VzQ29udGVudCI6WyJpb24tY29udGVudC5zZWxlY3Rvci5pb3Mge1xuICAtLW9mZnNldC10b3A6IDBweCAhaW1wb3J0YW50O1xuICBpb24tZmFiLmZhYiB7XG4gICAgcG9zaXRpb246IGZpeGVkO1xuICAgIG1hcmdpbi10b3A6IDEwcHg7XG4gIH1cbn1cbmlvbi1oZWFkZXIuZml4LWhlYWRlci1tb2RhbC1pb3Mge1xuICBpb24tdG9vbGJhciB7XG4gICAgaGVpZ2h0OiAwcHggIWltcG9ydGFudDtcbiAgICAtLWJhY2tncm91bmQ6ICNmZmY7XG4gIH1cbn1cblxuLnNlbGVjdG9yIHtcbiAgLm1vZGFsLWNvbnRhaW5lciB7XG4gICAgYm94LXNoYWRvdzogMHB4IC02cHggM3B4IHJnYmEoMCwgMCwgMCwgMC4xKTtcbiAgICBtYXJnaW4tdG9wOiAwO1xuICAgIHRyYW5zaXRpb246IG1hcmdpbi10b3AgMXMgZWFzZTtcbiAgICBiYWNrZ3JvdW5kLWNvbG9yOiAjZmZmO1xuICAgIGhlaWdodDogMTAwJTtcbiAgICBvdmVyZmxvdzogc2Nyb2xsO1xuXG4gICAgLm1vZGFsLXRpdGxlIHtcbiAgICAgIGRpc3BsYXk6IGZsZXg7XG4gICAgICBwYWRkaW5nLXRvcDogMS41ZW07XG4gICAgICBqdXN0aWZ5LWNvbnRlbnQ6IGNlbnRlcjtcbiAgICAgIGFsaWduLWl0ZW1zOiBjZW50ZXI7XG4gICAgICBmbGV4LWRpcmVjdGlvbjogY29sdW1uO1xuXG4gICAgICAudGl0bGUge1xuICAgICAgICBmb250LXNpemU6IGluaXRpYWwgIWltcG9ydGFudDtcbiAgICAgICAgZm9udC13ZWlnaHQ6IGJvbGQ7XG4gICAgICAgIHRleHQtYWxpZ246IGNlbnRlcjtcbiAgICAgICAgbWFyZ2luOiAzMnB4O1xuICAgICAgICBtYXJnaW4tYm90dG9tOiA4cHg7XG4gICAgICB9XG5cbiAgICAgIC5idXR0b24taG9sZGVyIHtcbiAgICAgICAganVzdGlmeS1jb250ZW50OiBjZW50ZXI7XG4gICAgICAgIG1hcmdpbjogMDtcbiAgICAgIH1cbiAgICB9XG5cbiAgICAuaW5wdXQtaG9sZGVyIHtcbiAgICAgIG1hcmdpbi10b3A6IDhweDtcbiAgICAgIGRpc3BsYXk6IGZsZXg7XG4gICAgICBqdXN0aWZ5LWNvbnRlbnQ6IGNlbnRlcjtcbiAgICAgIGFsaWduLWl0ZW1zOiBjZW50ZXI7XG4gICAgICBmbGV4LWRpcmVjdGlvbjogY29sdW1uO1xuICAgICAgd2lkdGg6IDEwMCU7XG5cbiAgICAgIC51cHBlci1vcHRpb25zIHtcbiAgICAgICAgZGlzcGxheTogZmxleDtcbiAgICAgICAganVzdGlmeS1jb250ZW50OiBjZW50ZXI7XG4gICAgICAgIGFsaWduLWl0ZW1zOiBjZW50ZXI7XG5cbiAgICAgICAgLm5ldy1ob2xkZXIge1xuICAgICAgICAgIG1hcmdpbi10b3A6IDE4cHg7XG5cbiAgICAgICAgICAuYnV0dG9uLWhvbGRlciB7XG4gICAgICAgICAgICBtYXJnaW4tdG9wOiAwO1xuICAgICAgICAgIH1cbiAgICAgICAgfVxuICAgICAgfVxuXG4gICAgICAuYm90dG9tLW9wdGlvbnMge1xuICAgICAgICBkaXNwbGF5OiBmbGV4O1xuICAgICAgICBqdXN0aWZ5LWNvbnRlbnQ6IGNlbnRlcjtcbiAgICAgICAgYWxpZ24taXRlbXM6IGNlbnRlcjtcblxuICAgICAgICAubmV3LWhvbGRlciB7XG4gICAgICAgICAgbWFyZ2luLXRvcDogMThweDtcblxuICAgICAgICAgIC5idXR0b24taG9sZGVyIHtcbiAgICAgICAgICAgIG1hcmdpbi10b3A6IDA7XG4gICAgICAgICAgICB3aWR0aDogMTAwJTtcbiAgICAgICAgICB9XG4gICAgICAgIH1cbiAgICAgIH1cbiAgICB9XG5cbiAgICAubW9kYWwtYm9keSB7XG4gICAgICAucmVzdWx0cyB7XG4gICAgICAgIG92ZXJmbG93OiBzY3JvbGw7XG4gICAgICAgIGhlaWdodDogMTAwJTtcbiAgICAgICAgcGFkZGluZzogMWVtO1xuXG4gICAgICAgIC50aXRsZSB7XG4gICAgICAgICAgZm9udC1zaXplOiBpbml0aWFsICFpbXBvcnRhbnQ7XG4gICAgICAgICAgd2lkdGg6IDgwJTtcbiAgICAgICAgICBtYXJnaW46IDAgMTAlIDJweDtcbiAgICAgICAgICBmb250LXdlaWdodDogYm9sZDtcbiAgICAgICAgICB0ZXh0LWFsaWduOiBjZW50ZXI7XG4gICAgICAgIH1cblxuICAgICAgICAuc3ViLXRpdGxlIHtcbiAgICAgICAgICBtYXJnaW46IDEwcHggMDtcbiAgICAgICAgICBmb250LXNpemU6IDAuOWVtO1xuICAgICAgICAgIGJhY2tncm91bmQtY29sb3I6ICNlZWU7XG4gICAgICAgICAgYm9yZGVyOiAxcHggc29saWQgI2NjYztcbiAgICAgICAgICBwYWRkaW5nOiA4cHg7XG4gICAgICAgICAgYm9yZGVyLXJhZGl1czogMnB4O1xuICAgICAgICAgIHRleHQtYWxpZ246IGNlbnRlcjtcbiAgICAgICAgfVxuXG4gICAgICAgIC5yZXN1bHQge1xuICAgICAgICAgIHdpZHRoOiA5NSU7XG4gICAgICAgICAgbWFyZ2luOiAxMHB4IDEwcHggMTBweCAxMHB4O1xuICAgICAgICAgIGJvcmRlcjogMXB4IHNvbGlkICNlZWU7XG4gICAgICAgICAgYm9yZGVyLXJhZGl1czogNHB4O1xuICAgICAgICAgIHBhZGRpbmc6IDEwcHggMTBweDtcblxuICAgICAgICAgIC5jb21wYW55IHtcbiAgICAgICAgICAgIGNvbG9yOiAjYWFhO1xuICAgICAgICAgIH1cbiAgICAgICAgfVxuICAgICAgfVxuICAgIH1cbiAgfVxufVxuIl19 */"] }); /***/ }), /***/ 33200: /*!*********************************************************************************************************************************!*\ !*** ./src/app/logistic-events/components/selector-for-driver-to-add-to-event/selector-for-driver-to-add-to-event.component.ts ***! \*********************************************************************************************************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "SelectorForDriverToAddToEventComponent": () => (/* binding */ SelectorForDriverToAddToEventComponent) /* harmony export */ }); /* harmony import */ var _Volumes_case_workspace_work_APPS_KA_APP_WORK_NOW_KA_PASS_V2_2_6_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js */ 71670); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ 45449); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_angular_core__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var _ionic_angular__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @ionic/angular */ 93819); /* harmony import */ var _shared_components__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @shared/components */ 7667); /* harmony import */ var _shared_services__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @shared/services */ 17253); /* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @angular/forms */ 2508); /* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @angular/common */ 90944); /* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_angular_common__WEBPACK_IMPORTED_MODULE_4__); /* harmony import */ var _card_founduser_lg_card_founduser_lg_component__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../card-founduser-lg/card-founduser-lg.component */ 30834); /* harmony import */ var _ngx_translate_core__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @ngx-translate/core */ 38699); function SelectorForDriverToAddToEventComponent_div_26_ng_container_4_ng_container_1_Template(rf, ctx) { if (rf & 1) { const _r7 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"](); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementContainerStart"](0); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "app-card-founduser-lg", 24); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("userSelect", function SelectorForDriverToAddToEventComponent_div_26_ng_container_4_ng_container_1_Template_app_card_founduser_lg_userSelect_1_listener() { const restoredCtx = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r7); const foundUser_r5 = restoredCtx.$implicit; const ctx_r6 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](3); return _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵresetView"](ctx_r6.onUserSelect(foundUser_r5)); }); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementContainerEnd"](); } if (rf & 2) { const foundUser_r5 = ctx.$implicit; _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("foundUser", foundUser_r5); } } function SelectorForDriverToAddToEventComponent_div_26_ng_container_4_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementContainerStart"](0); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](1, SelectorForDriverToAddToEventComponent_div_26_ng_container_4_ng_container_1_Template, 2, 1, "ng-container", 23); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementContainerEnd"](); } if (rf & 2) { const ctx_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", ctx_r3.foundUsers); } } function SelectorForDriverToAddToEventComponent_div_26_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 21)(1, "div", 22); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipe"](3, "translate"); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](4, SelectorForDriverToAddToEventComponent_div_26_ng_container_4_Template, 2, 1, "ng-container", 17); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"](); } if (rf & 2) { const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipeBind1"](3, 2, "MD_DRIVER_SUBTITLE")); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r0.isLoading); } } function SelectorForDriverToAddToEventComponent_ng_container_27_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementContainerStart"](0); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](1, "app-card-founduser-lg", 25); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementContainerEnd"](); } if (rf & 2) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("skeleton", true); } } class SelectorForDriverToAddToEventComponent { constructor(createLogisticEventService, formBuilder, modalController, changeDetectorRef, helperService, logService, userPhotoService) { var _this = this; this.createLogisticEventService = createLogisticEventService; this.formBuilder = formBuilder; this.modalController = modalController; this.changeDetectorRef = changeDetectorRef; this.helperService = helperService; this.logService = logService; this.userPhotoService = userPhotoService; this.isLoading = false; this.page = 0; this.size = 15; this.onClose = user => { this.modalController.dismiss(user); }; this.onUserSelect = user => { user.fullName = this.helperService.normalizeName(user.firstName, user.lastName); setTimeout(() => { this.onClose(user); }, 750); }; this.onCreateDriver = /*#__PURE__*/(0,_Volumes_case_workspace_work_APPS_KA_APP_WORK_NOW_KA_PASS_V2_2_6_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* () { const modal = yield _this.modalController.create({ component: _shared_components__WEBPACK_IMPORTED_MODULE_2__.CreateDriverComponent }); modal.onDidDismiss().then(res => { _this.onModalDismissCallback(res); }); yield modal.present(); }); this.onInputChange = e => { const { value } = e.target; this.infiniteScroll.disabled = false; if (this.searchTimeout) { clearTimeout(this.searchTimeout); } this.searchTimeout = setTimeout(() => { if (value.length > 1) { this.foundUsers = []; this.page = 0; } this.doSearch(value); }, 750); }; this.doSearch = searchTerm => { // const searchTerms = searchTerm.split(' '); // const firstName = searchTerms[0].trim(); // const lastName = searchTerms.slice(1).join(' '); // const data = { // 'firstName.contains': firstName ? firstName : '' // }; // if (lastName.trim().length > 0) { // data['lastName.contains'] = lastName.trim(); // } searchTerm = searchTerm.trim(); const data = { searchTerm }; this.dataTerms = data; this.createLogisticEventService.getCompanyDrivers(data, this.page, this.size).then(this.handleGetCompanyDriversSuccessResponse).catch(this.handleGetgetCompanyDriversErrorResponse).finally(() => this.isLoading = true); }; this.handleGetCompanyDriversSuccessResponse = response => { console.log('handleGetCompanyDriversSuccessResponse'); console.log('response:', response); this.setFoundUsers(response); this.userPhotoService.enrichUsersWithPhotos(response); }; this.handleGetgetCompanyDriversErrorResponse = error => { console.log('handleGetgetCompanyDriversErrorResponse'); this.logService.logError('http::handleGetgetCompanyDriversErrorResponse', '', error); console.log('error:', error); }; this.setFoundUsers = foundUsers => { // this.foundUsers = foundUsers.sort((a: any, b: any) => (a.firstName > b.firstName && 1) || -1); this.foundUsers = foundUsers; console.log('foundUsers', foundUsers); this.changeDetectorRef.detectChanges(); // Does not work, but does not hurt either. scrollBy(0, 1); // It wasn't detecting changes. }; } ngOnInit() { this.foundUsers = []; this.searchTimeout = null; this.userForm = this.formBuilder.group({ searchTerm: [''] }); } ionViewWillEnter() { this.onInputChange({ target: { value: '' } }); } onModalDismissCallback(detail) { if (detail && detail.data) { this.onUserSelect(detail.data); } } loadData(event) { this.page += 1; this.loadMore(this.page, event); } loadMore(page, infiniteScroll) { this.createLogisticEventService.getCompanyDrivers(this.dataTerms, page, this.size, !!infiniteScroll).then(drivers => { this.isLoading = true; if (drivers.length > 0) { this.handleGetCompanyDriversSuccessResponse(this.foundUsers.concat(drivers)); if (this.size > 0) { infiniteScroll.target.complete(); } } else { infiniteScroll.target.disabled = true; } }).catch(err => { this.handleGetCompanyDriversSuccessResponse(err); infiniteScroll.target.complete(); infiniteScroll.target.disabled = true; }); } } SelectorForDriverToAddToEventComponent.ɵfac = function SelectorForDriverToAddToEventComponent_Factory(t) { return new (t || SelectorForDriverToAddToEventComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_3__.CreateLogisticEventService), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_6__.UntypedFormBuilder), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_ionic_angular__WEBPACK_IMPORTED_MODULE_7__.ModalController), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__.ChangeDetectorRef), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_3__.HelperService), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_3__.LogService), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_3__.UserPhotoService)); }; SelectorForDriverToAddToEventComponent.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineComponent"]({ type: SelectorForDriverToAddToEventComponent, selectors: [["app-selector-for-driver-to-add-to-event"]], viewQuery: function SelectorForDriverToAddToEventComponent_Query(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵviewQuery"](_ionic_angular__WEBPACK_IMPORTED_MODULE_7__.IonInfiniteScroll, 5); } if (rf & 2) { let _t; _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵloadQuery"]()) && (ctx.infiniteScroll = _t.first); } }, decls: 32, vars: 10, consts: [[1, "fix-header-modal-ios", "ion-no-border"], [3, "ngClass"], ["horizontal", "center", "slot", "fixed", 1, "fab", 3, "click"], ["color", "medium"], ["name", "close"], [1, "content"], [1, "modal-container"], [1, "modal-title"], [1, "button-holder"], [1, "modal-body"], [3, "formGroup"], [1, "input-holder"], [1, "upper-options"], ["id", "name", "type", "text", "formControlName", "searchTerm", 2, "height", "47px", 3, "placeholder", "keyup"], [1, "new-holder"], ["type", "button", 3, "click"], ["class", "results", 4, "ngIf"], [4, "ngIf"], [1, "modal-footer"], ["threshold", "15%", "position", "bottom", 3, "ionInfinite"], ["IonInfiniteScroll", ""], [1, "results"], [1, "sub-title"], [4, "ngFor", "ngForOf"], ["typeofuser", "driver", 3, "foundUser", "userSelect"], [3, "skeleton"]], template: function SelectorForDriverToAddToEventComponent_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "ion-header", 0)(1, "ion-toolbar"); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](2, "ion-title"); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()(); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "ion-content", 1)(4, "ion-fab", 2); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function SelectorForDriverToAddToEventComponent_Template_ion_fab_click_4_listener() { return ctx.onClose(); }); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "ion-fab-button", 3); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](6, "ion-icon", 4); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()(); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](7, "div", 5)(8, "div", 6)(9, "div", 7); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](10, "div", 8); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](11, "div", 9)(12, "ion-row")(13, "ion-col")(14, "form", 10)(15, "div", 11)(16, "div", 12)(17, "input", 13); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("keyup", function SelectorForDriverToAddToEventComponent_Template_input_keyup_17_listener($event) { return ctx.onInputChange($event); }); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipe"](18, "translate"); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](19, "div", 14)(20, "div", 8)(21, "button", 15); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function SelectorForDriverToAddToEventComponent_Template_button_click_21_listener() { return ctx.onCreateDriver(); }); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](22); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipe"](23, "translate"); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()()()()()()()(); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](24, "ion-row")(25, "ion-col"); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](26, SelectorForDriverToAddToEventComponent_div_26_Template, 5, 4, "div", 16); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](27, SelectorForDriverToAddToEventComponent_ng_container_27_Template, 2, 1, "ng-container", 17); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()()(); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](28, "div", 18); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()(); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](29, "ion-infinite-scroll", 19, 20); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("ionInfinite", function SelectorForDriverToAddToEventComponent_Template_ion_infinite_scroll_ionInfinite_29_listener($event) { return ctx.loadData($event); }); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](31, "ion-infinite-scroll-content"); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()(); } if (rf & 2) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngClass", "selector"); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](11); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("formGroup", ctx.userForm); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("placeholder", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipeBind1"](18, 6, "MD_DRIVER_INPUT")); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](5); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipeBind1"](23, 8, "MD_DRIVER_BTN_NEW"), " "); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", !!ctx.foundUsers.length); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", !ctx.isLoading); } }, dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_4__.NgClass, _angular_common__WEBPACK_IMPORTED_MODULE_4__.NgForOf, _angular_common__WEBPACK_IMPORTED_MODULE_4__.NgIf, _ionic_angular__WEBPACK_IMPORTED_MODULE_7__.IonCol, _ionic_angular__WEBPACK_IMPORTED_MODULE_7__.IonContent, _ionic_angular__WEBPACK_IMPORTED_MODULE_7__.IonFab, _ionic_angular__WEBPACK_IMPORTED_MODULE_7__.IonFabButton, _ionic_angular__WEBPACK_IMPORTED_MODULE_7__.IonHeader, _ionic_angular__WEBPACK_IMPORTED_MODULE_7__.IonIcon, _ionic_angular__WEBPACK_IMPORTED_MODULE_7__.IonInfiniteScroll, _ionic_angular__WEBPACK_IMPORTED_MODULE_7__.IonInfiniteScrollContent, _ionic_angular__WEBPACK_IMPORTED_MODULE_7__.IonRow, _ionic_angular__WEBPACK_IMPORTED_MODULE_7__.IonTitle, _ionic_angular__WEBPACK_IMPORTED_MODULE_7__.IonToolbar, _angular_forms__WEBPACK_IMPORTED_MODULE_6__["ɵNgNoValidate"], _angular_forms__WEBPACK_IMPORTED_MODULE_6__.DefaultValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_6__.NgControlStatus, _angular_forms__WEBPACK_IMPORTED_MODULE_6__.NgControlStatusGroup, _angular_forms__WEBPACK_IMPORTED_MODULE_6__.FormGroupDirective, _angular_forms__WEBPACK_IMPORTED_MODULE_6__.FormControlName, _card_founduser_lg_card_founduser_lg_component__WEBPACK_IMPORTED_MODULE_5__.CardFounduserLgComponent, _ngx_translate_core__WEBPACK_IMPORTED_MODULE_8__.TranslatePipe], styles: ["ion-content.selector[_ngcontent-%COMP%] {\n --offset-top: 0px !important;\n}\nion-content.selector[_ngcontent-%COMP%] ion-fab.fab[_ngcontent-%COMP%] {\n position: fixed;\n margin-top: 10px;\n}\nion-header.fix-header-modal-ios[_ngcontent-%COMP%] ion-toolbar[_ngcontent-%COMP%] {\n height: 0px !important;\n --background: #fff;\n}\n.selector[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] {\n box-shadow: 0px -6px 3px rgba(0, 0, 0, 0.1);\n margin-top: 0;\n transition: margin-top 1s ease;\n background-color: #fff;\n height: 100%;\n overflow: scroll;\n}\n.selector[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-title[_ngcontent-%COMP%] {\n display: flex;\n padding-top: 3.5em;\n justify-content: center;\n align-items: center;\n flex-direction: column;\n}\n.selector[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-title[_ngcontent-%COMP%] .title[_ngcontent-%COMP%] {\n font-size: initial !important;\n font-weight: bold;\n text-align: center;\n margin: 32px;\n margin-bottom: 8px;\n}\n.selector[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-title[_ngcontent-%COMP%] .button-holder[_ngcontent-%COMP%] {\n justify-content: center;\n margin: 0;\n}\n.selector[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .input-holder[_ngcontent-%COMP%] {\n margin-top: 8px;\n display: flex;\n justify-content: center;\n align-items: center;\n flex-direction: column;\n width: 100%;\n}\n.selector[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .input-holder[_ngcontent-%COMP%] .upper-options[_ngcontent-%COMP%] {\n display: flex;\n justify-content: center;\n align-items: center;\n}\n.selector[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .input-holder[_ngcontent-%COMP%] .upper-options[_ngcontent-%COMP%] .new-holder[_ngcontent-%COMP%] {\n margin-top: 18px;\n}\n.selector[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .input-holder[_ngcontent-%COMP%] .upper-options[_ngcontent-%COMP%] .new-holder[_ngcontent-%COMP%] .button-holder[_ngcontent-%COMP%] {\n margin-top: 0;\n}\n.selector[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .input-holder[_ngcontent-%COMP%] .bottom-options[_ngcontent-%COMP%] {\n display: flex;\n justify-content: center;\n align-items: center;\n}\n.selector[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .input-holder[_ngcontent-%COMP%] .bottom-options[_ngcontent-%COMP%] .new-holder[_ngcontent-%COMP%] {\n margin-top: 18px;\n}\n.selector[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .input-holder[_ngcontent-%COMP%] .bottom-options[_ngcontent-%COMP%] .new-holder[_ngcontent-%COMP%] .button-holder[_ngcontent-%COMP%] {\n margin-top: 0;\n width: 100%;\n}\n.selector[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%] .results[_ngcontent-%COMP%] {\n overflow: scroll;\n height: 100%;\n padding: 1em;\n}\n.selector[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%] .results[_ngcontent-%COMP%] .title[_ngcontent-%COMP%] {\n font-size: initial !important;\n width: 80%;\n margin: 0 10% 2px;\n font-weight: bold;\n text-align: center;\n}\n.selector[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%] .results[_ngcontent-%COMP%] .sub-title[_ngcontent-%COMP%] {\n margin: 10px 0;\n font-size: 0.9em;\n background-color: #eee;\n border: 1px solid #ccc;\n padding: 8px;\n border-radius: 2px;\n text-align: center;\n}\n.selector[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%] .results[_ngcontent-%COMP%] .result[_ngcontent-%COMP%] {\n width: 95%;\n margin: 10px 10px 10px 10px;\n border: 1px solid #eee;\n border-radius: 4px;\n padding: 10px 10px;\n}\n.selector[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%] .results[_ngcontent-%COMP%] .result[_ngcontent-%COMP%] .company[_ngcontent-%COMP%] {\n color: #aaa;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNlbGVjdG9yLWZvci1kcml2ZXItdG8tYWRkLXRvLWV2ZW50LmNvbXBvbmVudC5zY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0VBQ0UsNEJBQUE7QUFDRjtBQUFFO0VBQ0UsZUFBQTtFQUNBLGdCQUFBO0FBRUo7QUFFRTtFQUNFLHNCQUFBO0VBQ0Esa0JBQUE7QUFDSjtBQUdFO0VBQ0UsMkNBQUE7RUFDQSxhQUFBO0VBQ0EsOEJBQUE7RUFDQSxzQkFBQTtFQUNBLFlBQUE7RUFDQSxnQkFBQTtBQUFKO0FBRUk7RUFDRSxhQUFBO0VBQ0Esa0JBQUE7RUFDQSx1QkFBQTtFQUNBLG1CQUFBO0VBQ0Esc0JBQUE7QUFBTjtBQUVNO0VBQ0UsNkJBQUE7RUFDQSxpQkFBQTtFQUNBLGtCQUFBO0VBQ0EsWUFBQTtFQUNBLGtCQUFBO0FBQVI7QUFHTTtFQUNFLHVCQUFBO0VBQ0EsU0FBQTtBQURSO0FBS0k7RUFDRSxlQUFBO0VBQ0EsYUFBQTtFQUNBLHVCQUFBO0VBQ0EsbUJBQUE7RUFDQSxzQkFBQTtFQUNBLFdBQUE7QUFITjtBQUtNO0VBQ0UsYUFBQTtFQUNBLHVCQUFBO0VBQ0EsbUJBQUE7QUFIUjtBQUtRO0VBQ0UsZ0JBQUE7QUFIVjtBQUtVO0VBQ0UsYUFBQTtBQUhaO0FBUU07RUFDRSxhQUFBO0VBQ0EsdUJBQUE7RUFDQSxtQkFBQTtBQU5SO0FBUVE7RUFDRSxnQkFBQTtBQU5WO0FBUVU7RUFDRSxhQUFBO0VBQ0EsV0FBQTtBQU5aO0FBYU07RUFDRSxnQkFBQTtFQUNBLFlBQUE7RUFDQSxZQUFBO0FBWFI7QUFhUTtFQUNFLDZCQUFBO0VBQ0EsVUFBQTtFQUNBLGlCQUFBO0VBQ0EsaUJBQUE7RUFDQSxrQkFBQTtBQVhWO0FBY1E7RUFDRSxjQUFBO0VBQ0EsZ0JBQUE7RUFDQSxzQkFBQTtFQUNBLHNCQUFBO0VBQ0EsWUFBQTtFQUNBLGtCQUFBO0VBQ0Esa0JBQUE7QUFaVjtBQWVRO0VBQ0UsVUFBQTtFQUNBLDJCQUFBO0VBQ0Esc0JBQUE7RUFDQSxrQkFBQTtFQUNBLGtCQUFBO0FBYlY7QUFlVTtFQUNFLFdBQUE7QUFiWiIsImZpbGUiOiJzZWxlY3Rvci1mb3ItZHJpdmVyLXRvLWFkZC10by1ldmVudC5jb21wb25lbnQuc2NzcyIsInNvdXJjZXNDb250ZW50IjpbImlvbi1jb250ZW50LnNlbGVjdG9yIHtcbiAgLS1vZmZzZXQtdG9wOiAwcHggIWltcG9ydGFudDtcbiAgaW9uLWZhYi5mYWIge1xuICAgIHBvc2l0aW9uOiBmaXhlZDtcbiAgICBtYXJnaW4tdG9wOiAxMHB4O1xuICB9XG59XG5pb24taGVhZGVyLmZpeC1oZWFkZXItbW9kYWwtaW9zIHtcbiAgaW9uLXRvb2xiYXIge1xuICAgIGhlaWdodDogMHB4ICFpbXBvcnRhbnQ7XG4gICAgLS1iYWNrZ3JvdW5kOiAjZmZmO1xuICB9XG59XG4uc2VsZWN0b3Ige1xuICAubW9kYWwtY29udGFpbmVyIHtcbiAgICBib3gtc2hhZG93OiAwcHggLTZweCAzcHggcmdiYSgwLCAwLCAwLCAwLjEpO1xuICAgIG1hcmdpbi10b3A6IDA7XG4gICAgdHJhbnNpdGlvbjogbWFyZ2luLXRvcCAxcyBlYXNlO1xuICAgIGJhY2tncm91bmQtY29sb3I6ICNmZmY7XG4gICAgaGVpZ2h0OiAxMDAlO1xuICAgIG92ZXJmbG93OiBzY3JvbGw7XG5cbiAgICAubW9kYWwtdGl0bGUge1xuICAgICAgZGlzcGxheTogZmxleDtcbiAgICAgIHBhZGRpbmctdG9wOiAzLjVlbTtcbiAgICAgIGp1c3RpZnktY29udGVudDogY2VudGVyO1xuICAgICAgYWxpZ24taXRlbXM6IGNlbnRlcjtcbiAgICAgIGZsZXgtZGlyZWN0aW9uOiBjb2x1bW47XG5cbiAgICAgIC50aXRsZSB7XG4gICAgICAgIGZvbnQtc2l6ZTogaW5pdGlhbCAhaW1wb3J0YW50O1xuICAgICAgICBmb250LXdlaWdodDogYm9sZDtcbiAgICAgICAgdGV4dC1hbGlnbjogY2VudGVyO1xuICAgICAgICBtYXJnaW46IDMycHg7XG4gICAgICAgIG1hcmdpbi1ib3R0b206IDhweDtcbiAgICAgIH1cblxuICAgICAgLmJ1dHRvbi1ob2xkZXIge1xuICAgICAgICBqdXN0aWZ5LWNvbnRlbnQ6IGNlbnRlcjtcbiAgICAgICAgbWFyZ2luOiAwO1xuICAgICAgfVxuICAgIH1cblxuICAgIC5pbnB1dC1ob2xkZXIge1xuICAgICAgbWFyZ2luLXRvcDogOHB4O1xuICAgICAgZGlzcGxheTogZmxleDtcbiAgICAgIGp1c3RpZnktY29udGVudDogY2VudGVyO1xuICAgICAgYWxpZ24taXRlbXM6IGNlbnRlcjtcbiAgICAgIGZsZXgtZGlyZWN0aW9uOiBjb2x1bW47XG4gICAgICB3aWR0aDogMTAwJTtcblxuICAgICAgLnVwcGVyLW9wdGlvbnMge1xuICAgICAgICBkaXNwbGF5OiBmbGV4O1xuICAgICAgICBqdXN0aWZ5LWNvbnRlbnQ6IGNlbnRlcjtcbiAgICAgICAgYWxpZ24taXRlbXM6IGNlbnRlcjtcblxuICAgICAgICAubmV3LWhvbGRlciB7XG4gICAgICAgICAgbWFyZ2luLXRvcDogMThweDtcblxuICAgICAgICAgIC5idXR0b24taG9sZGVyIHtcbiAgICAgICAgICAgIG1hcmdpbi10b3A6IDA7XG4gICAgICAgICAgfVxuICAgICAgICB9XG4gICAgICB9XG5cbiAgICAgIC5ib3R0b20tb3B0aW9ucyB7XG4gICAgICAgIGRpc3BsYXk6IGZsZXg7XG4gICAgICAgIGp1c3RpZnktY29udGVudDogY2VudGVyO1xuICAgICAgICBhbGlnbi1pdGVtczogY2VudGVyO1xuXG4gICAgICAgIC5uZXctaG9sZGVyIHtcbiAgICAgICAgICBtYXJnaW4tdG9wOiAxOHB4O1xuXG4gICAgICAgICAgLmJ1dHRvbi1ob2xkZXIge1xuICAgICAgICAgICAgbWFyZ2luLXRvcDogMDtcbiAgICAgICAgICAgIHdpZHRoOiAxMDAlO1xuICAgICAgICAgIH1cbiAgICAgICAgfVxuICAgICAgfVxuICAgIH1cblxuICAgIC5tb2RhbC1ib2R5IHtcbiAgICAgIC5yZXN1bHRzIHtcbiAgICAgICAgb3ZlcmZsb3c6IHNjcm9sbDtcbiAgICAgICAgaGVpZ2h0OiAxMDAlO1xuICAgICAgICBwYWRkaW5nOiAxZW07XG5cbiAgICAgICAgLnRpdGxlIHtcbiAgICAgICAgICBmb250LXNpemU6IGluaXRpYWwgIWltcG9ydGFudDtcbiAgICAgICAgICB3aWR0aDogODAlO1xuICAgICAgICAgIG1hcmdpbjogMCAxMCUgMnB4O1xuICAgICAgICAgIGZvbnQtd2VpZ2h0OiBib2xkO1xuICAgICAgICAgIHRleHQtYWxpZ246IGNlbnRlcjtcbiAgICAgICAgfVxuXG4gICAgICAgIC5zdWItdGl0bGUge1xuICAgICAgICAgIG1hcmdpbjogMTBweCAwO1xuICAgICAgICAgIGZvbnQtc2l6ZTogMC45ZW07XG4gICAgICAgICAgYmFja2dyb3VuZC1jb2xvcjogI2VlZTtcbiAgICAgICAgICBib3JkZXI6IDFweCBzb2xpZCAjY2NjO1xuICAgICAgICAgIHBhZGRpbmc6IDhweDtcbiAgICAgICAgICBib3JkZXItcmFkaXVzOiAycHg7XG4gICAgICAgICAgdGV4dC1hbGlnbjogY2VudGVyO1xuICAgICAgICB9XG5cbiAgICAgICAgLnJlc3VsdCB7XG4gICAgICAgICAgd2lkdGg6IDk1JTtcbiAgICAgICAgICBtYXJnaW46IDEwcHggMTBweCAxMHB4IDEwcHg7XG4gICAgICAgICAgYm9yZGVyOiAxcHggc29saWQgI2VlZTtcbiAgICAgICAgICBib3JkZXItcmFkaXVzOiA0cHg7XG4gICAgICAgICAgcGFkZGluZzogMTBweCAxMHB4O1xuXG4gICAgICAgICAgLmNvbXBhbnkge1xuICAgICAgICAgICAgY29sb3I6ICNhYWE7XG4gICAgICAgICAgfVxuICAgICAgICB9XG4gICAgICB9XG4gICAgfVxuICB9XG59XG4iXX0= */"] }); /***/ }), /***/ 73543: /*!*********************************************************************************************************************!*\ !*** ./src/app/logistic-events/components/solve-driver-checkin-conflict/solve-driver-checkin-conflict.component.ts ***! \*********************************************************************************************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "SolveDriverCheckinConflictComponent": () => (/* binding */ SolveDriverCheckinConflictComponent) /* harmony export */ }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ 45449); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_angular_core__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var _ionic_angular__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @ionic/angular */ 93819); /* harmony import */ var _shared_services__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @shared/services */ 17253); /* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/common */ 90944); /* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_angular_common__WEBPACK_IMPORTED_MODULE_2__); /* harmony import */ var _ngx_translate_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @ngx-translate/core */ 38699); function SolveDriverCheckinConflictComponent_div_11_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 10); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](1, "ion-spinner", 11); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); } } function SolveDriverCheckinConflictComponent_div_12_Template(rf, ctx) { if (rf & 1) { const _r3 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 12)(1, "ion-row")(2, "ion-col")(3, "div", 13)(4, "div", 14)(5, "button", 15); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function SolveDriverCheckinConflictComponent_div_12_Template_button_click_5_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r3); const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵresetView"](ctx_r2.deny()); }); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](6); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](7, "translate"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "button", 15); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function SolveDriverCheckinConflictComponent_div_12_Template_button_click_8_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r3); const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵresetView"](ctx_r4.authorize()); }); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](9); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](10, "translate"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()()()()(); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](11, "ion-row")(12, "ion-col")(13, "div", 16)(14, "div", 17)(15, "div", 18); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](16); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](17, "translate"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](18, "div", 19); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](19, "div", 20); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](20, "div", 21); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](21); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()()(); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](22, "div", 22)(23, "div", 18); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](24); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](25, "translate"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](26, "div", 19); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](27); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()(); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](28, "div", 23)(29, "div", 18); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](30); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](31, "translate"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](32, "div", 19); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](33); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()(); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](34, "div", 24)(35, "div", 18); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](36); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](37, "translate"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](38, "div", 19); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](39); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()(); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](40, "div", 25)(41, "div", 18); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](42); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](43, "translate"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](44, "div", 19); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](45); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()()()()(); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](46, "ion-row")(47, "ion-col")(48, "div", 16)(49, "div", 17)(50, "div", 18); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](51); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](52, "translate"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](53, "div", 19); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](54, "div", 20); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](55, "div", 21); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](56); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()()(); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](57, "div", 22)(58, "div", 18); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](59); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](60, "translate"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](61, "div", 19); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](62); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()(); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](63, "div", 23)(64, "div", 18); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](65); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](66, "translate"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](67, "div", 19); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](68); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()(); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](69, "div", 24)(70, "div", 18); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](71); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](72, "translate"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](73, "div", 19); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](74); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()(); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](75, "div", 25)(76, "div", 18); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](77); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](78, "translate"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](79, "div", 19); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](80); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()()()()()(); } if (rf & 2) { const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](6); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind1"](7, 22, "MD_DRIVER_CONFLICT_BTN_CONFIRM_REFUSAL"), " "); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind1"](10, 24, "MD_DRIVER_CONFLICT_BTN_ALLOW"), " "); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](7); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind1"](17, 26, "MD_DRIVER_CONFLICT_REGISTERED_DRIVER")); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", ctx_r1.registeredDriverInvite.driver.fullName, " "); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind1"](25, 28, "MD_DRIVER_CONFLICT_LICENSEPLATONE")); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", ctx_r1.getLicensePlateOneToBeRendered(ctx_r1.registeredDriverInvite), " "); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind1"](31, 30, "MD_DRIVER_CONFLICT_LICENSEPLATTWO")); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", ctx_r1.getLicensePlateTwoToBeRendered(ctx_r1.registeredDriverInvite), " "); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind1"](37, 32, "MD_DRIVER_CONFLICT_ON_FOOT")); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", ctx_r1.getOnFootToBeRendered(ctx_r1.registeredDriverInvite), " "); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind1"](43, 34, "MD_DRIVER_CONFLICT_VEHICLE_HAS_TRAILER")); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", ctx_r1.getOnFootToBeRendered(ctx_r1.getHasCartToBeRendered), " "); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](6); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind1"](52, 36, "MD_DRIVER_CONFLICT_DRIVER_CHECKIN")); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", ctx_r1.candidateDriverInvite.driver.fullName, " "); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind1"](60, 38, "MD_DRIVER_CONFLICT_LICENSEPLATONE")); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", ctx_r1.getLicensePlateOneToBeRendered(ctx_r1.candidateDriverInvite), " "); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind1"](66, 40, "MD_DRIVER_CONFLICT_LICENSEPLATTWO")); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", ctx_r1.getLicensePlateTwoToBeRendered(ctx_r1.candidateDriverInvite), " "); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind1"](72, 42, "MD_DRIVER_CONFLICT_ON_FOOT")); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", ctx_r1.getOnFootToBeRendered(ctx_r1.candidateDriverInvite), " "); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind1"](78, 44, "MD_DRIVER_CONFLICT_VEHICLE_HAS_TRAILER")); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", ctx_r1.getOnFootToBeRendered(ctx_r1.getHasCartToBeRendered), " "); } } class SolveDriverCheckinConflictComponent { constructor(modalController, portalLoginManagerService, profileManagerService, logisticEventApiService, authService, loadingService, translateConfigService) { this.modalController = modalController; this.portalLoginManagerService = portalLoginManagerService; this.profileManagerService = profileManagerService; this.logisticEventApiService = logisticEventApiService; this.authService = authService; this.loadingService = loadingService; this.translateConfigService = translateConfigService; this.loaded = false; this.comparePendingApprovals = () => { const profile = this.profileManagerService.getProfileLogistic(); return new Promise((resolve, reject) => { this.authService .getToken() .then(token => this.portalLoginManagerService.getAccessToken(profile.login, profile.portal, token)) .then((response) => { const accessToken = response.access_token; return this.logisticEventApiService .comparePendingApprovals(this.instanceName, this.inviteId, accessToken) .subscribe(resolve, reject); }) .catch(reject); }).finally(() => (this.loaded = true)); }; this.handleComparePendingApprovalsSuccessResponse = response => { console.log('handleComparePendingApprovalsSuccessResponse:', response); this.loadingService.hide(null, 'loading-drivers-data'); const current = response.current; const previous = response.previous; this.registeredDriverInvite = previous; this.candidateDriverInvite = current; }; this.handleComparePendingApprovalsErrorResponse = error => { this.loadingService.hide(null, 'loading-drivers-data'); console.log('handleComparePendingApprovalsErrorResponse:', error); }; this.getLicensePlateOneToBeRendered = data => { if (data && data.driver && data.driver.licensePlateOne) { return data.driver.licensePlateOne; } return; }; this.getLicensePlateTwoToBeRendered = data => { if (data && data.driver && data.driver.licensePlateTwo) { return data.driver.licensePlateTwo; } return; }; this.getOnFootToBeRendered = data => { if (data && data.driver) { return data.driver.onFoot ? this.translateConfigService.translate('TEXT_YES') : this.translateConfigService.translate('TEXT_NOT'); } return; }; this.getHasCartToBeRendered = data => { if (data && data.driver) { return data.driver.hasCart ? this.translateConfigService.translate('TEXT_YES') : this.translateConfigService.translate('TEXT_NOT'); } return; }; this.deny = () => { const data = { action: 'deny', invite: { companyInstance: this.candidateDriverInvite.company.instanceName, inviteId: this.candidateDriverInvite.driver.inviteId, eventId: this.candidateDriverInvite.driver.eventId, event: { eventId: this.candidateDriverInvite.driver.eventId, target: this.candidateDriverInvite.target }, ...this.candidateDriverInvite } }; this.modalController.dismiss(data); }; this.authorize = () => { const data = { action: 'authorize', invite: { eventId: this.candidateDriverInvite.driver.eventId, companyInstance: this.candidateDriverInvite.company.instanceName, inviteId: this.candidateDriverInvite.driver.inviteId, event: { eventId: this.candidateDriverInvite.driver.eventId, target: this.candidateDriverInvite.target }, ...this.candidateDriverInvite } }; this.modalController.dismiss(data); }; this.onClose = () => { this.modalController.dismiss(); }; } ngOnInit() { this.loadingService.show(this.translateConfigService.translate('LOADING_DATA'), 'loading-drivers-data'); this.comparePendingApprovals() .then(this.handleComparePendingApprovalsSuccessResponse) .catch(this.handleComparePendingApprovalsErrorResponse); } } SolveDriverCheckinConflictComponent.ɵfac = function SolveDriverCheckinConflictComponent_Factory(t) { return new (t || SolveDriverCheckinConflictComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_ionic_angular__WEBPACK_IMPORTED_MODULE_3__.ModalController), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_1__.PortalLoginManagerService), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_1__.ProfileManagerService), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_1__.LogisticEventApiService), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_1__.AuthService), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_1__.LoadingService), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_1__.TranslateConfigService)); }; SolveDriverCheckinConflictComponent.ɵcmp = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: SolveDriverCheckinConflictComponent, selectors: [["app-solve-driver-checkin-conflict"]], inputs: { inviteId: "inviteId", instanceName: "instanceName" }, decls: 14, vars: 9, consts: [[3, "ngClass"], [1, "content"], [1, "modal-container"], [1, "modal-title"], [1, "button-holder"], [1, "back", 3, "click"], [1, "title"], ["class", "spinner", 4, "ngIf"], ["class", "modal-body", 4, "ngIf"], [1, "modal-footer"], [1, "spinner"], ["mode", "ios", "name", "crescent"], [1, "modal-body"], [1, "section", "bottom"], [1, "actions", "two-or-more"], ["type", "button", 3, "click"], [1, "driver-holder"], [1, "item", "driver-details"], [1, "label"], [1, "value"], [1, "photo"], [1, "name"], [1, "item", "license-plate-one-details"], [1, "item", "license-plate-two-details"], [1, "item", "entrance-type-details"], [1, "item", "has-cart-details"]], template: function SolveDriverCheckinConflictComponent_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 0)(1, "div", 1)(2, "div", 2)(3, "div", 3)(4, "div", 4)(5, "button", 5); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function SolveDriverCheckinConflictComponent_Template_button_click_5_listener() { return ctx.onClose(); }); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](6); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](7, "translate"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()(); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "div", 6); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](9); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](10, "translate"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()(); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](11, SolveDriverCheckinConflictComponent_div_11_Template, 2, 0, "div", 7); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](12, SolveDriverCheckinConflictComponent_div_12_Template, 81, 46, "div", 8); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](13, "div", 9); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()()(); } if (rf & 2) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngClass", "selector"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](6); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind1"](7, 5, "BTN_BACK")); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind1"](10, 7, "MD_DRIVER_CONFLICT_TITLE"), " "); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", !ctx.loaded); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.registeredDriverInvite && ctx.candidateDriverInvite && ctx.loaded); } }, dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_2__.NgClass, _angular_common__WEBPACK_IMPORTED_MODULE_2__.NgIf, _ionic_angular__WEBPACK_IMPORTED_MODULE_3__.IonCol, _ionic_angular__WEBPACK_IMPORTED_MODULE_3__.IonRow, _ionic_angular__WEBPACK_IMPORTED_MODULE_3__.IonSpinner, _ngx_translate_core__WEBPACK_IMPORTED_MODULE_4__.TranslatePipe], styles: ["ion-content.selector.ios[_ngcontent-%COMP%] {\n --offset-top: 0px !important;\n}\n\n.selector[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] {\n height: 100vh;\n}\n\n.selector[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] {\n box-shadow: 0px -6px 3px rgba(0, 0, 0, 0.1);\n margin-top: 0;\n transition: margin-top 1s ease;\n background-color: #fff;\n height: 100%;\n overflow: scroll;\n}\n\n.selector[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-title[_ngcontent-%COMP%] {\n display: flex;\n padding-top: 1em;\n justify-content: center;\n align-items: center;\n flex-direction: column;\n}\n\n.selector[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-title[_ngcontent-%COMP%] .title[_ngcontent-%COMP%] {\n font-size: initial !important;\n font-weight: bold;\n text-align: center;\n margin: 32px;\n margin-bottom: 24px 32px 8px 32px;\n}\n\n.selector[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-title[_ngcontent-%COMP%] .button-holder[_ngcontent-%COMP%] {\n justify-content: center;\n margin: 0;\n}\n\n.selector[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .input-holder[_ngcontent-%COMP%] {\n margin-top: 8px;\n display: flex;\n justify-content: center;\n align-items: center;\n flex-direction: column;\n}\n\n.selector[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .input-holder[_ngcontent-%COMP%] .upper-options[_ngcontent-%COMP%] {\n display: flex;\n justify-content: center;\n align-items: center;\n}\n\n.selector[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .input-holder[_ngcontent-%COMP%] .upper-options[_ngcontent-%COMP%] .new-holder[_ngcontent-%COMP%] {\n margin-top: 18px;\n}\n\n.selector[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .input-holder[_ngcontent-%COMP%] .upper-options[_ngcontent-%COMP%] .new-holder[_ngcontent-%COMP%] .button-holder[_ngcontent-%COMP%] {\n margin-top: 0;\n}\n\n.selector[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .input-holder[_ngcontent-%COMP%] .bottom-options[_ngcontent-%COMP%] {\n display: flex;\n justify-content: center;\n align-items: center;\n}\n\n.selector[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .input-holder[_ngcontent-%COMP%] .bottom-options[_ngcontent-%COMP%] .new-holder[_ngcontent-%COMP%] {\n margin-top: 18px;\n}\n\n.selector[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .input-holder[_ngcontent-%COMP%] .bottom-options[_ngcontent-%COMP%] .new-holder[_ngcontent-%COMP%] .button-holder[_ngcontent-%COMP%] {\n margin-top: 0;\n width: 100%;\n}\n\n.selector[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n width: 100%;\n margin: 8px;\n}\n\n.selector[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%] .actions.two-or-more[_ngcontent-%COMP%] {\n justify-content: space-around;\n}\n\n.selector[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%] .actions.only-one[_ngcontent-%COMP%] {\n justify-content: center;\n}\n\n.selector[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%] button[_ngcontent-%COMP%] {\n font-size: 1em;\n color: #0ec254;\n background-color: #fff;\n padding: 0.5em 1.25em;\n border-radius: 32px;\n border: 1px solid #0ec254;\n transition: background-color 0.1s ease-out;\n}\n\n.selector[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:active {\n background-color: #0ec254;\n color: #fff;\n transition: background-color 0.1s ease-out;\n}\n\n.selector[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%] .driver-holder[_ngcontent-%COMP%] {\n padding: 16px;\n border: 1px solid #eee;\n border-radius: 8px;\n}\n\n.selector[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%] .driver-holder[_ngcontent-%COMP%] .item[_ngcontent-%COMP%] {\n margin-bottom: 12px;\n}\n\n.selector[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%] .driver-holder[_ngcontent-%COMP%] .label[_ngcontent-%COMP%] {\n font-weight: bold;\n}\n\n.selector[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%] .driver-holder[_ngcontent-%COMP%] .driver-details[_ngcontent-%COMP%] .label[_ngcontent-%COMP%] {\n color: #0ec254;\n}\n\n.selector[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .spinner[_ngcontent-%COMP%] {\n display: flex;\n justify-content: center;\n align-items: center;\n height: 50vh;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNvbHZlLWRyaXZlci1jaGVja2luLWNvbmZsaWN0LmNvbXBvbmVudC5zY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0VBQ0UsNEJBQUE7QUFDRjs7QUFHRTtFQUNFLGFBQUE7QUFBSjs7QUFFSTtFQUNFLDJDQUFBO0VBQ0EsYUFBQTtFQUNBLDhCQUFBO0VBQ0Esc0JBQUE7RUFDQSxZQUFBO0VBQ0EsZ0JBQUE7QUFBTjs7QUFFTTtFQUNFLGFBQUE7RUFDQSxnQkFBQTtFQUNBLHVCQUFBO0VBQ0EsbUJBQUE7RUFDQSxzQkFBQTtBQUFSOztBQUVRO0VBQ0UsNkJBQUE7RUFDQSxpQkFBQTtFQUNBLGtCQUFBO0VBQ0EsWUFBQTtFQUNBLGlDQUFBO0FBQVY7O0FBR1E7RUFDRSx1QkFBQTtFQUNBLFNBQUE7QUFEVjs7QUFLTTtFQUNFLGVBQUE7RUFDQSxhQUFBO0VBQ0EsdUJBQUE7RUFDQSxtQkFBQTtFQUNBLHNCQUFBO0FBSFI7O0FBS1E7RUFDRSxhQUFBO0VBQ0EsdUJBQUE7RUFDQSxtQkFBQTtBQUhWOztBQUtVO0VBQ0UsZ0JBQUE7QUFIWjs7QUFLWTtFQUNFLGFBQUE7QUFIZDs7QUFRUTtFQUNFLGFBQUE7RUFDQSx1QkFBQTtFQUNBLG1CQUFBO0FBTlY7O0FBUVU7RUFDRSxnQkFBQTtBQU5aOztBQVFZO0VBQ0UsYUFBQTtFQUNBLFdBQUE7QUFOZDs7QUFhUTtFQUNFLGFBQUE7RUFDQSxtQkFBQTtFQUNBLFdBQUE7RUFDQSxXQUFBO0FBWFY7O0FBYVU7RUFDRSw2QkFBQTtBQVhaOztBQWNVO0VBQ0UsdUJBQUE7QUFaWjs7QUFlVTtFQUNFLGNBQUE7RUFDQSxjQUFBO0VBQ0Esc0JBQUE7RUFDQSxxQkFBQTtFQUNBLG1CQUFBO0VBQ0EseUJBQUE7RUFDQSwwQ0FBQTtBQWJaOztBQWVZO0VBQ0UseUJBQUE7RUFDQSxXQUFBO0VBQ0EsMENBQUE7QUFiZDs7QUFrQlE7RUFDRSxhQUFBO0VBQ0Esc0JBQUE7RUFDQSxrQkFBQTtBQWhCVjs7QUFrQlU7RUFDRSxtQkFBQTtBQWhCWjs7QUFtQlU7RUFDRSxpQkFBQTtBQWpCWjs7QUF3Qlk7RUFDRSxjQUFBO0FBdEJkOztBQTZCSTtFQUVFLGFBQUE7RUFFQSx1QkFBQTtFQUVBLG1CQUFBO0VBQ0EsWUFBQTtBQTNCTiIsImZpbGUiOiJzb2x2ZS1kcml2ZXItY2hlY2tpbi1jb25mbGljdC5jb21wb25lbnQuc2NzcyIsInNvdXJjZXNDb250ZW50IjpbImlvbi1jb250ZW50LnNlbGVjdG9yLmlvcyB7XG4gIC0tb2Zmc2V0LXRvcDogMHB4ICFpbXBvcnRhbnQ7XG59XG5cbi5zZWxlY3RvciB7XG4gIC5jb250ZW50IHtcbiAgICBoZWlnaHQ6IDEwMHZoO1xuXG4gICAgLm1vZGFsLWNvbnRhaW5lciB7XG4gICAgICBib3gtc2hhZG93OiAwcHggLTZweCAzcHggcmdiYSgwLCAwLCAwLCAwLjEpO1xuICAgICAgbWFyZ2luLXRvcDogMDtcbiAgICAgIHRyYW5zaXRpb246IG1hcmdpbi10b3AgMXMgZWFzZTtcbiAgICAgIGJhY2tncm91bmQtY29sb3I6ICNmZmY7XG4gICAgICBoZWlnaHQ6IDEwMCU7XG4gICAgICBvdmVyZmxvdzogc2Nyb2xsO1xuXG4gICAgICAubW9kYWwtdGl0bGUge1xuICAgICAgICBkaXNwbGF5OiBmbGV4O1xuICAgICAgICBwYWRkaW5nLXRvcDogMWVtO1xuICAgICAgICBqdXN0aWZ5LWNvbnRlbnQ6IGNlbnRlcjtcbiAgICAgICAgYWxpZ24taXRlbXM6IGNlbnRlcjtcbiAgICAgICAgZmxleC1kaXJlY3Rpb246IGNvbHVtbjtcblxuICAgICAgICAudGl0bGUge1xuICAgICAgICAgIGZvbnQtc2l6ZTogaW5pdGlhbCAhaW1wb3J0YW50O1xuICAgICAgICAgIGZvbnQtd2VpZ2h0OiBib2xkO1xuICAgICAgICAgIHRleHQtYWxpZ246IGNlbnRlcjtcbiAgICAgICAgICBtYXJnaW46IDMycHg7XG4gICAgICAgICAgbWFyZ2luLWJvdHRvbTogMjRweCAzMnB4IDhweCAzMnB4O1xuICAgICAgICB9XG5cbiAgICAgICAgLmJ1dHRvbi1ob2xkZXIge1xuICAgICAgICAgIGp1c3RpZnktY29udGVudDogY2VudGVyO1xuICAgICAgICAgIG1hcmdpbjogMDtcbiAgICAgICAgfVxuICAgICAgfVxuXG4gICAgICAuaW5wdXQtaG9sZGVyIHtcbiAgICAgICAgbWFyZ2luLXRvcDogOHB4O1xuICAgICAgICBkaXNwbGF5OiBmbGV4O1xuICAgICAgICBqdXN0aWZ5LWNvbnRlbnQ6IGNlbnRlcjtcbiAgICAgICAgYWxpZ24taXRlbXM6IGNlbnRlcjtcbiAgICAgICAgZmxleC1kaXJlY3Rpb246IGNvbHVtbjtcblxuICAgICAgICAudXBwZXItb3B0aW9ucyB7XG4gICAgICAgICAgZGlzcGxheTogZmxleDtcbiAgICAgICAgICBqdXN0aWZ5LWNvbnRlbnQ6IGNlbnRlcjtcbiAgICAgICAgICBhbGlnbi1pdGVtczogY2VudGVyO1xuXG4gICAgICAgICAgLm5ldy1ob2xkZXIge1xuICAgICAgICAgICAgbWFyZ2luLXRvcDogMThweDtcblxuICAgICAgICAgICAgLmJ1dHRvbi1ob2xkZXIge1xuICAgICAgICAgICAgICBtYXJnaW4tdG9wOiAwO1xuICAgICAgICAgICAgfVxuICAgICAgICAgIH1cbiAgICAgICAgfVxuXG4gICAgICAgIC5ib3R0b20tb3B0aW9ucyB7XG4gICAgICAgICAgZGlzcGxheTogZmxleDtcbiAgICAgICAgICBqdXN0aWZ5LWNvbnRlbnQ6IGNlbnRlcjtcbiAgICAgICAgICBhbGlnbi1pdGVtczogY2VudGVyO1xuXG4gICAgICAgICAgLm5ldy1ob2xkZXIge1xuICAgICAgICAgICAgbWFyZ2luLXRvcDogMThweDtcblxuICAgICAgICAgICAgLmJ1dHRvbi1ob2xkZXIge1xuICAgICAgICAgICAgICBtYXJnaW4tdG9wOiAwO1xuICAgICAgICAgICAgICB3aWR0aDogMTAwJTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgICB9XG4gICAgICAgIH1cbiAgICAgIH1cblxuICAgICAgLm1vZGFsLWJvZHkge1xuICAgICAgICAuYWN0aW9ucyB7XG4gICAgICAgICAgZGlzcGxheTogZmxleDtcbiAgICAgICAgICBhbGlnbi1pdGVtczogY2VudGVyO1xuICAgICAgICAgIHdpZHRoOiAxMDAlO1xuICAgICAgICAgIG1hcmdpbjogOHB4O1xuXG4gICAgICAgICAgJi50d28tb3ItbW9yZSB7XG4gICAgICAgICAgICBqdXN0aWZ5LWNvbnRlbnQ6IHNwYWNlLWFyb3VuZDtcbiAgICAgICAgICB9XG5cbiAgICAgICAgICAmLm9ubHktb25lIHtcbiAgICAgICAgICAgIGp1c3RpZnktY29udGVudDogY2VudGVyO1xuICAgICAgICAgIH1cblxuICAgICAgICAgIGJ1dHRvbiB7XG4gICAgICAgICAgICBmb250LXNpemU6IDFlbTtcbiAgICAgICAgICAgIGNvbG9yOiAjMGVjMjU0O1xuICAgICAgICAgICAgYmFja2dyb3VuZC1jb2xvcjogI2ZmZjtcbiAgICAgICAgICAgIHBhZGRpbmc6IDAuNWVtIDEuMjVlbTtcbiAgICAgICAgICAgIGJvcmRlci1yYWRpdXM6IDMycHg7XG4gICAgICAgICAgICBib3JkZXI6IDFweCBzb2xpZCAjMGVjMjU0O1xuICAgICAgICAgICAgdHJhbnNpdGlvbjogYmFja2dyb3VuZC1jb2xvciAwLjFzIGVhc2Utb3V0O1xuXG4gICAgICAgICAgICAmOmFjdGl2ZSB7XG4gICAgICAgICAgICAgIGJhY2tncm91bmQtY29sb3I6ICMwZWMyNTQ7XG4gICAgICAgICAgICAgIGNvbG9yOiAjZmZmO1xuICAgICAgICAgICAgICB0cmFuc2l0aW9uOiBiYWNrZ3JvdW5kLWNvbG9yIDAuMXMgZWFzZS1vdXQ7XG4gICAgICAgICAgICB9XG4gICAgICAgICAgfVxuICAgICAgICB9XG5cbiAgICAgICAgLmRyaXZlci1ob2xkZXIge1xuICAgICAgICAgIHBhZGRpbmc6IDE2cHg7XG4gICAgICAgICAgYm9yZGVyOiAxcHggc29saWQgI2VlZTtcbiAgICAgICAgICBib3JkZXItcmFkaXVzOiA4cHg7XG5cbiAgICAgICAgICAuaXRlbSB7XG4gICAgICAgICAgICBtYXJnaW4tYm90dG9tOiAxMnB4O1xuICAgICAgICAgIH1cblxuICAgICAgICAgIC5sYWJlbCB7XG4gICAgICAgICAgICBmb250LXdlaWdodDogYm9sZDtcbiAgICAgICAgICB9XG5cbiAgICAgICAgICAudmFsdWUge1xuICAgICAgICAgIH1cblxuICAgICAgICAgIC5kcml2ZXItZGV0YWlscyB7XG4gICAgICAgICAgICAubGFiZWwge1xuICAgICAgICAgICAgICBjb2xvcjogIzBlYzI1NDtcbiAgICAgICAgICAgIH1cbiAgICAgICAgICB9XG4gICAgICAgIH1cbiAgICAgIH1cbiAgICB9XG5cbiAgICAuc3Bpbm5lciB7XG4gICAgICBkaXNwbGF5OiAtd2Via2l0LWJveDtcbiAgICAgIGRpc3BsYXk6IGZsZXg7XG4gICAgICAtd2Via2l0LWJveC1wYWNrOiBjZW50ZXI7XG4gICAgICBqdXN0aWZ5LWNvbnRlbnQ6IGNlbnRlcjtcbiAgICAgIC13ZWJraXQtYm94LWFsaWduOiBjZW50ZXI7XG4gICAgICBhbGlnbi1pdGVtczogY2VudGVyO1xuICAgICAgaGVpZ2h0OiA1MHZoO1xuICAgIH1cbiAgfVxufVxuIl19 */"] }); /***/ }), /***/ 92493: /*!****************************************************************************!*\ !*** ./src/app/logistic-events/create/event-resume/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 */ "EventResumePageModule": () => (/* binding */ EventResumePageModule) /* 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 _event_resume_page__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./event-resume.page */ 23428); /* 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: _event_resume_page__WEBPACK_IMPORTED_MODULE_3__.EventResumePage } ]; class EventResumePageModule { } EventResumePageModule.ɵfac = function EventResumePageModule_Factory(t) { return new (t || EventResumePageModule)(); }; EventResumePageModule.ɵmod = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdefineNgModule"]({ type: EventResumePageModule }); EventResumePageModule.ɵ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"](EventResumePageModule, { declarations: [_event_resume_page__WEBPACK_IMPORTED_MODULE_3__.EventResumePage], 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] }); })(); /***/ }), /***/ 23428: /*!**************************************************************************!*\ !*** ./src/app/logistic-events/create/event-resume/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 */ "EventResumePage": () => (/* binding */ EventResumePage) /* 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 _components__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../components */ 34645); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/core */ 45449); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_angular_core__WEBPACK_IMPORTED_MODULE_2__); /* harmony import */ var _shared_services__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @shared/services */ 17253); /* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @angular/router */ 61380); /* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_angular_router__WEBPACK_IMPORTED_MODULE_4__); /* harmony import */ var _ionic_angular__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @ionic/angular */ 93819); /* harmony import */ var _shared_services_focus_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @shared/services/focus.service */ 37763); /* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @angular/common */ 90944); /* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_angular_common__WEBPACK_IMPORTED_MODULE_6__); /* harmony import */ var _shared_components_avatar_avatar_component__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../shared/components/avatar/avatar.component */ 87871); /* harmony import */ var _shared_components_header_header_component__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../../shared/components/header/header.component */ 36290); /* harmony import */ var _shared_components_list_recurrence_dates_list_recurrence_dates_component__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../../shared/components/list-recurrence-dates/list-recurrence-dates.component */ 96893); /* harmony import */ var _ngx_translate_core__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @ngx-translate/core */ 38699); function EventResumePage_div_11_button_1_Template(rf, ctx) { if (rf & 1) { const _r17 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"](); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "button", 32); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function EventResumePage_div_11_button_1_Template_button_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r17); const ctx_r16 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2); return _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵresetView"](ctx_r16.createEvent()); }); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "span", 33); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](2); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipe"](3, "translate"); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()(); } if (rf & 2) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipeBind1"](3, 1, "PG_CREATE_RESUME_LG_STEP_BTN_CREATE")); } } function EventResumePage_div_11_button_2_Template(rf, ctx) { if (rf & 1) { const _r19 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"](); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "button", 32); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function EventResumePage_div_11_button_2_Template_button_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r19); const ctx_r18 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2); return _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵresetView"](ctx_r18.updateEvent()); }); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "span", 33); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](2); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipe"](3, "translate"); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()(); } if (rf & 2) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipeBind1"](3, 1, "PG_CREATE_RESUME_LG_STEP_BTN_SALVE")); } } function EventResumePage_div_11_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 30); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](1, EventResumePage_div_11_button_1_Template, 4, 3, "button", 31); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](2, EventResumePage_div_11_button_2_Template, 4, 3, "button", 31); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); } if (rf & 2) { const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r0.isCreating()); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r0.isEditing()); } } function EventResumePage_div_12_button_5_Template(rf, ctx) { if (rf & 1) { const _r22 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"](); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "button", 35); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function EventResumePage_div_12_button_5_Template_button_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r22); const ctx_r21 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2); return _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵresetView"](ctx_r21.reproveEvent()); }); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "span", 10); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](2); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipe"](3, "translate"); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()(); } if (rf & 2) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipeBind1"](3, 1, "PG_CREATE_RESUME_LG_STEP_BTN_REPROVE")); } } function EventResumePage_div_12_Template(rf, ctx) { if (rf & 1) { const _r24 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"](); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 30)(1, "button", 32); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function EventResumePage_div_12_Template_button_click_1_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r24); const ctx_r23 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](); return _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵresetView"](ctx_r23.approveEvent()); }); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "span", 10); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](3); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipe"](4, "translate"); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()(); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](5, EventResumePage_div_12_button_5_Template, 4, 3, "button", 34); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); } if (rf & 2) { const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipeBind1"](4, 2, "PG_CREATE_RESUME_LG_STEP_BTN_APPROVE"), ""); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", !ctx_r1.isApproveEventReview()); } } function EventResumePage_div_29_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 36)(1, "div", 37); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](2, "app-avatar", 38); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](3, "div", 39); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](4); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()()(); } if (rf & 2) { const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](); let tmp_0_0; let tmp_1_0; let tmp_1_1; let tmp_2_0; _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("firstName", (tmp_0_0 = (tmp_0_0 = ctx_r2.driver == null ? null : ctx_r2.driver["firstName"]) !== null && tmp_0_0 !== undefined ? tmp_0_0 : ctx_r2.driver == null ? null : ctx_r2.driver.fullName == null ? null : (tmp_0_0 = ctx_r2.driver.fullName.split(" ")) == null ? null : tmp_0_0[0]) !== null && tmp_0_0 !== undefined ? tmp_0_0 : "")("lastName", (tmp_1_0 = (tmp_1_0 = ctx_r2.driver == null ? null : ctx_r2.driver["lastName"]) !== null && tmp_1_0 !== undefined ? tmp_1_0 : ctx_r2.driver == null ? null : ctx_r2.driver.fullName == null ? null : (tmp_1_0 = ctx_r2.driver.fullName.split(" ")) == null ? null : (tmp_1_1 = tmp_1_0.slice(1)) == null ? null : tmp_1_1.join(" ")) !== null && tmp_1_0 !== undefined ? tmp_1_0 : "")("thumbnailImage", (tmp_2_0 = ctx_r2.driver == null ? null : ctx_r2.driver["thumbnailImage"]) !== null && tmp_2_0 !== undefined ? tmp_2_0 : null)("size", "sm"); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate"](ctx_r2.driver == null ? null : ctx_r2.driver.fullName); } } function EventResumePage_div_30_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 40); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipe"](2, "translate"); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); } if (rf & 2) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipeBind1"](2, 1, "PG_CREATE_RESUME_LG_STEP_TEXT_NOT_DRIVER_SELECTED"), " "); } } function EventResumePage_div_44_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 41)(1, "div", 42); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](2); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipe"](3, "translate"); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](4, "app-list-recurrence-dates", 43); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); } if (rf & 2) { const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipeBind1"](3, 3, "TEXT_RECURRENCES_DATES")); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("showShortDateList", true)("recurrenceDates", ctx_r4.recurrenceDates); } } function EventResumePage_div_45_div_4_div_1_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 37); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](1, "app-avatar", 38); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "div", 47); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](3); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()(); } if (rf & 2) { const assistant_r28 = ctx.$implicit; let tmp_0_0; let tmp_1_0; let tmp_1_1; let tmp_2_0; _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("firstName", (tmp_0_0 = (tmp_0_0 = assistant_r28 == null ? null : assistant_r28.firstName) !== null && tmp_0_0 !== undefined ? tmp_0_0 : assistant_r28 == null ? null : assistant_r28.fullName == null ? null : (tmp_0_0 = assistant_r28.fullName.split(" ")) == null ? null : tmp_0_0[0]) !== null && tmp_0_0 !== undefined ? tmp_0_0 : "")("lastName", (tmp_1_0 = (tmp_1_0 = assistant_r28 == null ? null : assistant_r28.lastName) !== null && tmp_1_0 !== undefined ? tmp_1_0 : assistant_r28 == null ? null : assistant_r28.fullName == null ? null : (tmp_1_0 = assistant_r28.fullName.split(" ")) == null ? null : (tmp_1_1 = tmp_1_0.slice(1)) == null ? null : tmp_1_1.join(" ")) !== null && tmp_1_0 !== undefined ? tmp_1_0 : "")("thumbnailImage", (tmp_2_0 = assistant_r28 == null ? null : assistant_r28.thumbnailImage) !== null && tmp_2_0 !== undefined ? tmp_2_0 : null)("size", "sm"); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate"](assistant_r28.fullName); } } function EventResumePage_div_45_div_4_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 36); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](1, EventResumePage_div_45_div_4_div_1_Template, 4, 5, "div", 46); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); } if (rf & 2) { const ctx_r25 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngForOf", ctx_r25.assistants); } } function EventResumePage_div_45_div_5_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 48); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipe"](2, "translate"); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); } if (rf & 2) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipeBind1"](2, 1, "PG_CREATE_RESUME_LG_STEP_NOT_ASSISTANT_SELECTED"), " "); } } function EventResumePage_div_45_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 14)(1, "div", 44); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](2); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipe"](3, "translate"); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](4, EventResumePage_div_45_div_4_Template, 2, 1, "div", 16); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](5, EventResumePage_div_45_div_5_Template, 3, 3, "div", 45); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); } if (rf & 2) { const ctx_r5 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipeBind1"](3, 3, "PG_CREATE_RESUME_LG_STEP_TEXT_ASSISTANTS"), " "); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r5.assistants.length); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", !ctx_r5.assistants.length); } } function EventResumePage_ng_container_46_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementContainerStart"](0); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 49)(2, "div", 44); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](3); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipe"](4, "translate"); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](5, "div", 50); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](6); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()(); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementContainerEnd"](); } if (rf & 2) { const ctx_r6 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipeBind1"](4, 2, "PG_CREATE_RESUME_LG_STEP_TEXT_LICENSEPLATONE"), " "); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate"](ctx_r6.licensePlateOne); } } function EventResumePage_div_47_div_4_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 50); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipe"](2, "translate"); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); } if (rf & 2) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipeBind1"](2, 1, "TEXT_YES")); } } function EventResumePage_div_47_div_5_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 50); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipe"](2, "translate"); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); } if (rf & 2) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipeBind1"](2, 1, "TEXT_NOT")); } } function EventResumePage_div_47_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 49)(1, "div", 44); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](2); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipe"](3, "translate"); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](4, EventResumePage_div_47_div_4_Template, 3, 3, "div", 51); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](5, EventResumePage_div_47_div_5_Template, 3, 3, "div", 51); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); } if (rf & 2) { const ctx_r7 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipeBind1"](3, 3, "PG_CREATE_RESUME_LG_STEP_TEXT_HASCART"), " "); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r7.hasCart); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", !ctx_r7.hasCart); } } function EventResumePage_ng_container_48_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementContainerStart"](0); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 49)(2, "div", 44); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](3); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipe"](4, "translate"); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](5, "div", 50); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](6); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()(); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementContainerEnd"](); } if (rf & 2) { const ctx_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipeBind1"](4, 2, "PG_CREATE_RESUME_LG_STEP_TEXT_LICENSEPLATTWO"), " "); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate"](ctx_r8.licensePlateTwo); } } function EventResumePage_div_49_div_4_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 50); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipe"](2, "translate"); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); } if (rf & 2) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipeBind1"](2, 1, "TEXT_YES")); } } function EventResumePage_div_49_div_5_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 50); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipe"](2, "translate"); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); } if (rf & 2) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipeBind1"](2, 1, "TEXT_NOT")); } } function EventResumePage_div_49_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 49)(1, "div", 44); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](2); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipe"](3, "translate"); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](4, EventResumePage_div_49_div_4_Template, 3, 3, "div", 51); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](5, EventResumePage_div_49_div_5_Template, 3, 3, "div", 51); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); } if (rf & 2) { const ctx_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipeBind1"](3, 3, "PG_CREATE_RESUME_LG_STEP_TEXT_ON_FOOT"), " "); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r9.onFoot); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", !ctx_r9.onFoot); } } function EventResumePage_div_50_div_4_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 50); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipe"](2, "translate"); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); } if (rf & 2) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipeBind1"](2, 1, "TEXT_YES")); } } function EventResumePage_div_50_div_5_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 50); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipe"](2, "translate"); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); } if (rf & 2) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipeBind1"](2, 1, "TEXT_NOT")); } } function EventResumePage_div_50_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 52)(1, "div", 44); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](2); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipe"](3, "translate"); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](4, EventResumePage_div_50_div_4_Template, 3, 3, "div", 51); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](5, EventResumePage_div_50_div_5_Template, 3, 3, "div", 51); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); } if (rf & 2) { const ctx_r10 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipeBind1"](3, 3, "PG_CREATE_RESUME_LG_STEP_TEXT_LOCATOR_PRE_AUTHORIZED"), " "); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r10.locatorPreAuthorized); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", !ctx_r10.locatorPreAuthorized); } } function EventResumePage_div_51_div_4_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 50); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipe"](2, "translate"); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); } if (rf & 2) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipeBind1"](2, 1, "TEXT_YES")); } } function EventResumePage_div_51_div_5_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 50); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipe"](2, "translate"); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); } if (rf & 2) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipeBind1"](2, 1, "TEXT_NOT")); } } function EventResumePage_div_51_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 49)(1, "div", 44); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](2); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipe"](3, "translate"); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](4, EventResumePage_div_51_div_4_Template, 3, 3, "div", 51); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](5, EventResumePage_div_51_div_5_Template, 3, 3, "div", 51); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); } if (rf & 2) { const ctx_r11 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipeBind1"](3, 3, "PG_CREATE_RESUME_LG_STEP_TEXT_PRE_AUTHORIZED"), " "); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", !ctx_r11.needAuthorization); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r11.needAuthorization); } } function EventResumePage_div_52_div_4_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 50); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipe"](2, "translate"); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); } if (rf & 2) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipeBind1"](2, 1, "TEXT_YES")); } } function EventResumePage_div_52_div_5_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 50); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipe"](2, "translate"); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); } if (rf & 2) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipeBind1"](2, 1, "TEXT_NOT")); } } function EventResumePage_div_52_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 49)(1, "div", 44); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](2); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipe"](3, "translate"); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](4, EventResumePage_div_52_div_4_Template, 3, 3, "div", 51); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](5, EventResumePage_div_52_div_5_Template, 3, 3, "div", 51); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); } if (rf & 2) { const ctx_r12 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipeBind1"](3, 3, "PG_CREATE_RESUME_LG_STEP_TEXT_MULTI_CHECKIN")); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r12.multiCheckin); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", !ctx_r12.multiCheckin); } } function EventResumePage_ng_container_53_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementContainerStart"](0); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 53)(2, "div", 44); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](3); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipe"](4, "translate"); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](5, "div", 50); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](6); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()(); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementContainerEnd"](); } if (rf & 2) { const ctx_r13 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipeBind1"](4, 2, "PG_CREATE_RESUME_LG_STEP_TEXT_NOTES")); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate"](ctx_r13.notes); } } class EventResumePage { constructor(createLogisticEventService, navigationService, loadingService, notificatorService, momentService, activatedRoute, router, logService, geolocationService, modalController, resumeCreateEventInterruptedService, translateConfigService, focusService, apiService, authService, profileManagerService, portalLoginManagerService, userPhotoService) { var _this = this; this.createLogisticEventService = createLogisticEventService; this.navigationService = navigationService; this.loadingService = loadingService; this.notificatorService = notificatorService; this.momentService = momentService; this.activatedRoute = activatedRoute; this.router = router; this.logService = logService; this.geolocationService = geolocationService; this.modalController = modalController; this.resumeCreateEventInterruptedService = resumeCreateEventInterruptedService; this.translateConfigService = translateConfigService; this.focusService = focusService; this.apiService = apiService; this.authService = authService; this.profileManagerService = profileManagerService; this.portalLoginManagerService = portalLoginManagerService; this.userPhotoService = userPhotoService; 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.endAt = this.momentService.formatAsEventAt(event.endAt); this.driver = event.driver; this.assistants = event.assistants; this.needAuthorization = event.needAuthorization; this.multiCheckin = event.multiCheckin; this.hasCart = event.hasCart; this.onFoot = event.onFoot; this.licensePlateOne = event.licensePlateOne; this.licensePlateTwo = event.licensePlateTwo; this.notes = event.notes; this.directionEvent = event.directionEvent; this.locator = event.locator; this.useOwnLocator = event.useOwnLocator; this.useLocatorPreAuthorized = event.useLocatorPreAuthorized; this.locatorPreAuthorized = event.locatorPreAuthorized; this.recurrent = this.createLogisticEventService.getRecurrent(); this.recurrenceDates = this.createLogisticEventService.getRecurrenceDates(); } }; this.onFixEventErrors = () => { // @ts-ignore this.event.autoRelease = !this.event.needAuthorization; const eventType = this.createLogisticEventService.getType(); let action = this.createLogisticEventService.getAction(); if (action === 'approve-event-review') { action = 'approve-event-edit'; } const navigationExtras = { state: { action, event: this.event, eventType, approveEventReview: this.createLogisticEventService.getApproveEventReview() ? this.createLogisticEventService.getApproveEventReview() : null } }; this.navigationService.back(['/logistic-events/create/event-name'], navigationExtras); }; this.getInitialsFromFullName = fullName => { const names = fullName.split(' '); const firstName = names[0] ? names[0] : ''; const lastName = names[names.length - 1] ? names[names.length - 1] : ''; const firstNameInitial = firstName ? firstName.substring(0, 1) : ''; const lastNameInitial = lastName ? lastName.substring(0, 1) : ''; return (firstNameInitial + lastNameInitial).toUpperCase(); }; 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_LG_STEP_LOADING_CREATING_EVENT'), 'create-event'); const profile = _this.profileManagerService.getProfile(); let geoCoordinates = null; try { const accessToken = yield _this.getProfileRelatedAccessToken(profile); try { const { authorized } = yield _this.checkSoftLock(accessToken); try { if (!authorized) { geoCoordinates = yield _this.geoCoordinates('geolocation::createEventLogistic', 'create-event'); } } catch (error) { console.log('Erro ao pegar coordendas do dispositvo GPS'); _this.logService.logError('geolocation::createEvent::geoCoordinates', 'Error get coordenates on Device GPS', error); } } catch (error) { _this.logService.logError('http::createEvent::checkSoftLock', 'Error checkSoftLock', error); console.log('erro check checkSoftLock'); } } catch (error) { console.log('Erro ao obter accessToken'); _this.logService.logError('http::createEvent::getProfileRelatedAccessToken', 'Error get Profile Related AccessToken', error); } let type = _this.createLogisticEventService.getType(); if (type === 'CLONE_EXIT') { type = 'ENTRY'; } else if (type === 'CLONE_ENTRY') { type = 'EXIT'; } const data = { type, title: _this.createLogisticEventService.getTitle(), startAt: _this.createLogisticEventService.getStartDate(), endAt: _this.createLogisticEventService.getEndDate(), driver: _this.createLogisticEventService.getDriver(), assistants: _this.createLogisticEventService.getAssistants(), autoRelease: !_this.createLogisticEventService.getNeedAuthorization(), hasCart: _this.createLogisticEventService.getHasCart(), onFoot: _this.createLogisticEventService.getOnFoot(), multiCheckin: _this.createLogisticEventService.getMultiCheckIn(), directionEvent: _this.directionEvent, licensePlateOne: _this.createLogisticEventService.getLicensePlateOne(), licensePlateTwo: _this.createLogisticEventService.getLicensePlateTwo(), notes: _this.createLogisticEventService.getNotes(), locator: _this.createLogisticEventService.getLocator(), useOwnLocator: _this.createLogisticEventService.getUseOwnLocator(), useLocatorPreAuthorized: _this.createLogisticEventService.getUseLocatorPreAuthorized(), locatorPreAuthorized: _this.createLogisticEventService.getLocatorPreAuthorized(), geoCoordinates, recurrent: _this.createLogisticEventService.getRecurrent(), recurrenceDates: _this.createLogisticEventService.getRecurrenceDates() }; _this.createLogisticEventService.createEvent(data).then(_this.handleCreateEventSuccessResponse).catch(_this.handleCreateEventErrorResponse); }); this.handleCreateEventSuccessResponse = response => { this.loadingService.hide(null, 'create-event'); if (response.behavior == 'EXIT') { this.navigationService.forward(['/home']); this.resumeCreateEventInterruptedService.clearProfileLogisticCreationInterrupte(); this.resumeCreateEventInterruptedService.clearResumeCreationInterrupte(); this.createLogisticEventService.clearCreateEventData(); } else { this.navigationService.forward(['/logistic-events/create/event-share']); } const notification = { title: this.translateConfigService.translate('PG_CREATE_RESUME_LG_STEP_TOAST_CREATE_TITLE'), message: this.translateConfigService.translate('PG_CREATE_RESUME_LG_STEP_TOAST_CREATE_MESSAGE'), type: 'success', timeout: 5000 }; this.createLogisticEventService.setLocator(response.locator); this.notificatorService.notify(notification); }; this.handleCreateEventErrorResponse = error => { console.log('handleCreateEventErrorResponse'); console.log('error:', error); this.logService.logError('http::handleCreateEventErrorResponseLogistic', '', error); this.loadingService.hide(null, 'create-event'); let message = ''; if (error.status === 400) { if (error.error.errorKey === 'notmatched') { message = this.translateConfigService.translate('PG_CREATE_RESUME_LG_STEP_TOAST_NOMATCHED'); } else if (error.error.errorKey === 'geocoordinatesunauthorized') { message = this.translateConfigService.translate('PG_CREATE_RESUME_LG_STEP_TOAST_COORDINATES_UNAUTHORIZED'); } else if (error.error.fieldErrors[0].field === 'locator' && error.error.fieldErrors[0].message === 'inUse') { message = this.translateConfigService.translate('PG_CREATE_RESUME_LG_STEP_TOAST_LOCATOR_INUSE'); } else { message = this.translateConfigService.translate('PG_CREATE_RESUME_LG_STEP_TOAST_ERROR_UPDATE'); } } else if (error.status === 403) { message = this.translateConfigService.translate('PG_CREATE_RESUME_LG_STEP_TOAST_FORBIDDEN_UPDATE'); } else { message = this.translateConfigService.translate('PG_CREATE_RESUME_LG_STEP_TOAST_ERROR_UPDATE'); } const notification = { title: this.translateConfigService.translate('TOAST_TITLE_ERROR'), message, type: 'error' }; 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_LG_STEP_LOADING_UPDATING_EVENT'), 'update-event'); let geoCoordinates = null; const profile = _this.profileManagerService.getProfile(); try { const accessToken = yield _this.getProfileRelatedAccessToken(profile); try { const { authorized } = yield _this.checkSoftLock(accessToken); try { if (!authorized) { geoCoordinates = yield _this.geoCoordinates('geolocation::updateEventLogistic', 'update-event'); } } catch (error) { console.log('Erro ao pegar coordendas do dispositvo GPS'); _this.loadingService.hide(null, 'update-event'); _this.logService.logError('geolocation::updateEventLogistic::geoCoordinates', 'Error get coordenates on Device GPS', error); } } catch (error) { _this.loadingService.hide(null, 'update-event'); _this.logService.logError('http::updateEventLogistic::checkSoftLock', 'Error checkSoftLock', error); console.log('erro check checkSoftLock'); } } catch (error) { console.log('Erro ao obter accessToken'); _this.loadingService.hide(null, 'update-event'); _this.logService.logError('http::updateEventLogistic::getProfileRelatedAccessToken', 'Error get Profile Related AccessToken', error); } const data = { id: _this.createLogisticEventService.getId(), type: _this.createLogisticEventService.getType(), title: _this.createLogisticEventService.getTitle(), startAt: _this.createLogisticEventService.getStartDate(), endAt: _this.createLogisticEventService.getEndDate(), driver: _this.createLogisticEventService.getDriver(), assistants: _this.createLogisticEventService.getAssistants(), autoRelease: !_this.createLogisticEventService.getNeedAuthorization(), hasCart: _this.createLogisticEventService.getHasCart(), onFoot: _this.createLogisticEventService.getOnFoot(), licensePlateOne: _this.createLogisticEventService.getLicensePlateOne(), licensePlateTwo: _this.createLogisticEventService.getLicensePlateTwo(), notes: _this.createLogisticEventService.getNotes(), multiCheckin: _this.createLogisticEventService.getMultiCheckIn(), locator: _this.createLogisticEventService.getLocator(), directionEvent: _this.directionEvent, useOwnLocator: _this.createLogisticEventService.getUseOwnLocator(), useLocatorPreAuthorized: _this.createLogisticEventService.getUseLocatorPreAuthorized(), locatorPreAuthorized: _this.createLogisticEventService.getLocatorPreAuthorized(), geoCoordinates, recurrent: _this.createLogisticEventService.getRecurrent(), recurrenceDates: _this.createLogisticEventService.getRecurrenceDates() }; _this.createLogisticEventService.updateEvent(data).then(_this.handleUpdateEventSuccessResponse).catch(_this.handleUpdateEventErrorResponse).finally(() => { _this.loadingService.hide(null, 'update-event'); }); }); this.handleUpdateEventSuccessResponse = response => { console.log('handleUpdateEventSuccessResponse'); console.log('response:', response); this.loadingService.hide(null, 'update-event'); const notification = { title: this.translateConfigService.translate('PG_CREATE_RESUME_LG_STEP_TOAST_UPDATE_TITLE'), message: this.translateConfigService.translate('PG_CREATE_RESUME_LG_STEP_TOAST_UPDATE_MESSAGE'), type: 'success' }; this.notificatorService.notify(notification); // @ts-ignore const eventId = this.event.id; const companyInstanceName = response.company.instanceName; const navigationExtras = { state: { eventId, companyInstanceName } }; this.resumeCreateEventInterruptedService.clearProfileVoCreationInterrupte(); this.resumeCreateEventInterruptedService.clearResumeCreationInterrupte(); this.navigationService.forward(['/view-logistic-event/'], navigationExtras); }; this.handleUpdateEventErrorResponse = error => { console.log('handleUpdateEventErrorResponse'); console.log('error:', error); this.logService.logError('http::handleUpdateEventErrorResponseLogistic', '', error); this.loadingService.hide(null, 'update-event'); let message = ''; if (error.status === 400) { if (error.error.errorKey === 'notmatched') { message = this.translateConfigService.translate('PG_CREATE_RESUME_LG_STEP_TOAST_NOMATCHED'); } else if (error.error.errorKey === 'geocoordinatesunauthorized') { message = this.translateConfigService.translate('PG_CREATE_RESUME_LG_STEP_TOAST_COORDINATES_UNAUTHORIZED_UPDATE'); } else if (error.error.fieldErrors[0].field === 'locator' && error.error.fieldErrors[0].message === 'inUse') { message = this.translateConfigService.translate('PG_CREATE_RESUME_LG_STEP_TOAST_LOCATOR_INUSE'); } else { message = this.translateConfigService.translate('PG_CREATE_RESUME_LG_STEP_TOAST_ERROR_UPDATE'); } } else if (error.status === 403) { message = this.translateConfigService.translate('PG_CREATE_RESUME_LG_STEP_TOAST_FORBIDDEN_UPDATE'); } else { message = this.translateConfigService.translate('PG_CREATE_RESUME_LG_STEP_TOAST_ERROR_UPDATE'); } const notification = { title: this.translateConfigService.translate('TOAST_TITLE_ERROR'), 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'); let geoCoordinates = null; const profile = _this.profileManagerService.getProfile(); try { const accessToken = yield _this.getProfileRelatedAccessToken(profile); try { const { authorized } = yield _this.checkSoftLock(accessToken); try { if (!authorized) { geoCoordinates = yield _this.geoCoordinates('geolocation::approveEventLogistic', 'update-event'); } } catch (error) { _this.loadingService.hide(null, 'approve-event-review'); console.log('Erro ao pegar coordendas do dispositvo GPS'); _this.logService.logError('geolocation::approveEventLogistic::geoCoordinates', 'Error get coordenates on Device GPS', error); } } catch (error) { _this.loadingService.hide(null, 'approve-event-review'); _this.logService.logError('http::approveEventLogistic::checkSoftLock', 'Error checkSoftLock', error); console.log('erro check checkSoftLock'); } } catch (error) { console.log('Erro ao obter accessToken'); _this.loadingService.hide(null, 'approve-event-review'); _this.logService.logError('http::approveEventLogistic::getProfileRelatedAccessToken', 'Error get Profile Related AccessToken', error); } const data = { id: _this.createLogisticEventService.getId(), type: _this.createLogisticEventService.getType(), title: _this.createLogisticEventService.getTitle(), startAt: _this.createLogisticEventService.getStartDate(), endAt: _this.createLogisticEventService.getEndDate(), driver: _this.createLogisticEventService.getDriver(), assistants: _this.createLogisticEventService.getAssistants(), autoRelease: !_this.createLogisticEventService.getNeedAuthorization(), hasCart: _this.createLogisticEventService.getHasCart(), onFoot: _this.createLogisticEventService.getOnFoot(), licensePlateOne: _this.createLogisticEventService.getLicensePlateOne(), licensePlateTwo: _this.createLogisticEventService.getLicensePlateTwo(), notes: _this.createLogisticEventService.getNotes(), multiCheckin: _this.createLogisticEventService.getMultiCheckIn(), geoCoordinates }; _this.createLogisticEventService.approveEvent(data).then(_this.handleApproveEventSuccessResponse).catch(_this.handleApproveEventErrorResponse).finally(() => { _this.loadingService.hide(null, 'approve-event-review'); }); }); 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_LG_STEP_TOAST_APPROVE_TITLE'), message: this.translateConfigService.translate('PG_CREATE_RESUME_LG_STEP_TOAST_APPROVE_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-logistic-event/'], navigationExtras); } else { this.navigationService.forward(['/push-notifications']); localStorage.setItem('forcer_reload', 'TRUE'); } }; this.handleApproveEventErrorResponse = error => { console.log('handleApproveEventErrorResponse'); console.log('error:', error); this.logService.logError('http::handleApproveEventErrorResponseLogistic', '', error); this.loadingService.hide(null, 'approve-event-review'); let message = ''; if (error.status === 400) { if (error.error.errorKey === 'notmatched') { message = this.translateConfigService.translate('PG_CREATE_RESUME_LG_STEP_TOAST_NOMATCHED'); } else { message = this.translateConfigService.translate('PG_CREATE_RESUME_LG_STEP_TOAST_ERROR_UPDATE'); } } else if (error.status === 403) { message = this.translateConfigService.translate('PG_CREATE_RESUME_LG_STEP_TOAST_FORBIDDEN_UPDATE'); } else { message = this.translateConfigService.translate('PG_CREATE_RESUME_LG_STEP_TOAST_ERROR_UPDATE'); } const notification = { title: this.translateConfigService.translate('TOAST_TITLE_ERROR'), 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: _components__WEBPACK_IMPORTED_MODULE_1__.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_LG_STEP_LOADING_FAILING_EVENT'), 'reprove-event'); const data = { id: _this.createLogisticEventService.getId(), message: reason }; _this.createLogisticEventService.denyEvent(data).then(_this.handleReproveEventSuccessResponse).catch(_this.handleReproveEventErrorResponse); }); 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_LG_STEP_TOAST_REPROVE_TITLE'), message: this.translateConfigService.translate('PG_CREATE_RESUME_LG_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::handleReproveEventErrorResponseLogistic', '', error); this.loadingService.hide(null, 'reprove-event'); let message = ''; if (error.status === 400) { if (error.error.errorKey === 'notmatched') { message = this.translateConfigService.translate('PG_CREATE_RESUME_LG_STEP_TOAST_NOMATCHED'); } else { message = this.translateConfigService.translate('PG_CREATE_RESUME_LG_STEP_TOAST_ERROR_UPDATE'); } } else if (error.status === 403) { message = this.translateConfigService.translate('PG_CREATE_RESUME_LG_STEP_TOAST_FORBIDDEN_UPDATE'); } else { message = this.translateConfigService.translate('PG_CREATE_RESUME_LG_STEP_TOAST_ERROR_UPDATE'); } const notification = { title: this.translateConfigService.translate('TOAST_TITLE_ERROR'), message, type: 'error' }; this.notificatorService.notify(notification); }; this.isEditing = () => this.createLogisticEventService.getAction() === 'edit' && !(this.createLogisticEventService.getType() === 'CLONE_ENTRY' || this.createLogisticEventService.getType() === 'CLONE_EXIT'); this.isCreating = () => { console.log('isCreating type:', this.createLogisticEventService.getType()); console.log('isCreating action:', this.createLogisticEventService.getAction()); return this.createLogisticEventService.getType() === 'CLONE_EXIT' || this.createLogisticEventService.getType() === 'CLONE_ENTRY' || this.createLogisticEventService.getType() === 'ENTRY' && this.createLogisticEventService.getAction() === 'create' || this.createLogisticEventService.getType() === 'EXIT' && this.createLogisticEventService.getAction() === 'create'; }; this.isApprovingEvent = () => this.createLogisticEventService.getAction() === 'approve-event-review' || this.createLogisticEventService.getAction() === 'approve-event-edit'; this.title = ''; this.startAt = ''; this.endAt = ''; this.licensePlateOne = ''; this.licensePlateTwo = ''; this.notes = ''; this.locator = ''; this.useOwnLocator = false; this.useLocatorPreAuthorized = false; this.locatorPreAuthorized = false; this.driver = null; this.onFoot = false; this.hasCart = false; this.needAuthorization = false; this.assistants = []; this.activatedRoute.queryParams.subscribe(params => { if (this.router.getCurrentNavigation().extras.state) { this.event = this.router.getCurrentNavigation().extras.state.event; this.setEventValues(this.event); } }); } ionViewWillEnter() { this.focusService.applyFocusQuerySelector('create_event_resume', 3500); const usersToEnrich = [...(this.assistants ?? [])]; if (this.driver) usersToEnrich.push(this.driver); this.userPhotoService.enrichUsersWithPhotos(usersToEnrich); } ionViewDidLeave() {} isApproveEventReview() { return this.createLogisticEventService.getApproveEventReview() === 'TRUE'; } geoCoordinates(logError, tagLoading) { var _this2 = this; return (0,_Volumes_case_workspace_work_APPS_KA_APP_WORK_NOW_KA_PASS_V2_2_6_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* () { try { const currentPosition = yield _this2.geolocationService.getCurrentPositionAndRequestPermission(); const lat = currentPosition && currentPosition.coords && currentPosition.coords.latitude ? currentPosition.coords.latitude : null; const lng = currentPosition && currentPosition.coords && currentPosition.coords.longitude ? currentPosition.coords.longitude : null; const geoCoordinates = { lat, lng }; return geoCoordinates; } catch (error) { _this2.loadingService.hide(null, tagLoading); _this2.logService.logError(logError, '', error); const notification = { title: _this2.translateConfigService.translate('PG_CREATE_RESUME_LG_STEP_TOAST_GETTING_LOCATION_TITLE'), message: _this2.translateConfigService.translate('PG_CREATE_RESUME_LG_STEP_TOAST_GETTING_LOCATION_MESSAGE'), type: 'error', timeout: 5000 }; _this2.notificatorService.notify(notification); return error; } })(); } getProfileRelatedAccessToken(profile) { return 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); }); } checkSoftLock(accessToken) { var _this3 = this; return (0,_Volumes_case_workspace_work_APPS_KA_APP_WORK_NOW_KA_PASS_V2_2_6_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* () { const profile = _this3.profileManagerService.getProfile(); const companyInstance = profile?.company?.instanceName; try { const { authorized } = yield _this3.apiService.checkSoftLock(companyInstance, null, null, accessToken).toPromise(); return { authorized }; } catch (error) { throw error; } })(); } } EventResumePage.ɵfac = function EventResumePage_Factory(t) { return new (t || EventResumePage)(_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_3__.CreateLogisticEventService), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_3__.NavigationService), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_3__.LoadingService), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_3__.NotificatorService), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_3__.MomentService), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](_angular_router__WEBPACK_IMPORTED_MODULE_4__.ActivatedRoute), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](_angular_router__WEBPACK_IMPORTED_MODULE_4__.Router), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_3__.LogService), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_3__.GeolocationService), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](_ionic_angular__WEBPACK_IMPORTED_MODULE_10__.ModalController), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_3__.ResumeCreateEventInterruptedService), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_3__.TranslateConfigService), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](_shared_services_focus_service__WEBPACK_IMPORTED_MODULE_5__.FocusService), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_3__.ApiService), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_3__.AuthService), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_3__.ProfileManagerService), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_3__.PortalLoginManagerService), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_3__.UserPhotoService)); }; EventResumePage.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdefineComponent"]({ type: EventResumePage, selectors: [["app-event-resume"]], decls: 54, vars: 41, consts: [["defaultHref", "/logistic-events/create/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"], [1, "button-group"], ["class", "create-event", 4, "ngIf"], [1, "fix-errors"], ["type", "button", 1, "back", 3, "click"], ["tabindex", "3"], ["tabindex", "4", "role", "contentinfo", 1, "event"], [1, "section", "title"], ["tabindex", "5", 1, "value"], [1, "section", "guests"], ["tabindex", "6", 1, "label"], ["class", "guests-holder", 4, "ngIf"], ["class", "hosts-empty", "tabindex", "7", 4, "ngIf"], [1, "section"], [1, "start-at"], ["tabindex", "8", 1, "label"], ["tabindex", "9", 1, "value"], [1, "end-at"], ["tabindex", "10", 1, "label"], ["tabindex", "11", 1, "value"], ["class", "section recurrences", 4, "ngIf"], ["class", "section guests", 4, "ngIf"], [4, "ngIf"], ["class", "section option multi-check-in", 4, "ngIf"], ["class", "section option locator-pre-authorized", 4, "ngIf"], [1, "create-event"], ["type", "submit", 3, "click", 4, "ngIf"], ["type", "submit", 3, "click"], ["tabindex", "2"], ["class", "danger", 3, "click", 4, "ngIf"], [1, "danger", 3, "click"], [1, "guests-holder"], [1, "guest"], [3, "firstName", "lastName", "thumbnailImage", "size"], ["tabindex", "7", 1, "full-name"], ["tabindex", "7", 1, "hosts-empty"], [1, "section", "recurrences"], ["tabindex", "12", 1, "label"], [3, "showShortDateList", "recurrenceDates"], [1, "label"], ["class", "guests-empty", 4, "ngIf"], ["class", "guest", 4, "ngFor", "ngForOf"], [1, "full-name"], [1, "guests-empty"], [1, "section", "option", "multi-check-in"], [1, "value"], ["class", "value", 4, "ngIf"], [1, "section", "option", "locator-pre-authorized"], [1, "section", "option", "add-companion"]], template: function EventResumePage_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](0, "app-header", 0); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipe"](1, "translate"); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "ion-content")(3, "div", 1)(4, "div", 2)(5, "div", 3); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](6); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipe"](7, "translate"); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()(); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](8, "div", 4)(9, "div", 5)(10, "div", 6); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](11, EventResumePage_div_11_Template, 3, 2, "div", 7); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](12, EventResumePage_div_12_Template, 6, 4, "div", 7); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](13, "div", 8)(14, "button", 9); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function EventResumePage_Template_button_click_14_listener() { return ctx.onFixEventErrors(); }); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](15, "span", 10); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](16); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipe"](17, "translate"); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()()()()(); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](18, "ion-row")(19, "ion-col")(20, "div", 11)(21, "div", 12)(22, "div", 13); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipe"](23, "translate"); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](24); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()(); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](25, "div", 14)(26, "div", 15); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](27); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipe"](28, "translate"); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](29, EventResumePage_div_29_Template, 5, 5, "div", 16); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](30, EventResumePage_div_30_Template, 3, 3, "div", 17); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](31, "div", 18)(32, "div", 19)(33, "div", 20); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](34); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipe"](35, "translate"); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](36, "div", 21); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](37); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()(); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](38, "div", 22)(39, "div", 23); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](40); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipe"](41, "translate"); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](42, "div", 24); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](43); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()()(); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](44, EventResumePage_div_44_Template, 5, 5, "div", 25); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](45, EventResumePage_div_45_Template, 6, 5, "div", 26); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](46, EventResumePage_ng_container_46_Template, 7, 4, "ng-container", 27); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](47, EventResumePage_div_47_Template, 6, 5, "div", 28); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](48, EventResumePage_ng_container_48_Template, 7, 4, "ng-container", 27); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](49, EventResumePage_div_49_Template, 6, 5, "div", 28); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](50, EventResumePage_div_50_Template, 6, 5, "div", 29); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](51, EventResumePage_div_51_Template, 6, 5, "div", 28); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](52, EventResumePage_div_52_Template, 6, 5, "div", 28); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](53, EventResumePage_ng_container_53_Template, 7, 4, "ng-container", 27); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()()()()(); } if (rf & 2) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("title", _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipeBind1"](1, 27, "PG_CREATE_RESUME_LG_STEP_HEADER_TITLE"))("showBadge", true)("refresh", false)("menuToggle", false); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](6); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipeBind1"](7, 29, "PG_CREATE_RESUME_LG_STEP_TEXT_SUBTITLE"), " "); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](5); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx.isCreating() || ctx.isEditing() && !ctx.isApproveEventReview()); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx.isApprovingEvent() || ctx.isApproveEventReview()); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](4); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipeBind1"](17, 31, "PG_CREATE_RESUME_LG_STEP_BTN_EDIT")); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](6); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵattribute"]("aria-label", _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipeBind1"](23, 33, "PG_CREATE_RESUME_LG_STEP_BTN_EDIT")); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", ctx.title, " "); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipeBind1"](28, 35, "PG_CREATE_RESUME_LG_STEP_TEXT_DRIVER"), " "); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx.driver); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx.driver === null); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](4); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipeBind1"](35, 37, "PG_CREATE_RESUME_LG_STEP_TEXT_STARTAT"), " "); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate"](ctx.startAt); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipeBind1"](41, 39, "PG_CREATE_RESUME_LG_STEP_TEXT_ENDAT"), " "); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate"](ctx.endAt); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx.recurrent); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx.directionEvent === "ENTRY" || ctx.directionEvent === "CLONE_EXIT"); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx.licensePlateOne); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", !ctx.hasCart && !ctx.licensePlateTwo && !ctx.onFoot); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx.licensePlateTwo); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx.onFoot && !ctx.licensePlateOne); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx.useOwnLocator && ctx.useLocatorPreAuthorized && (ctx.directionEvent === "ENTRY" || ctx.directionEvent === "CLONE_EXIT")); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx.directionEvent === "ENTRY" || ctx.directionEvent === "CLONE_EXIT"); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx.multiCheckin && (ctx.directionEvent === "ENTRY" || ctx.directionEvent === "CLONE_EXIT")); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx.notes); } }, dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_6__.NgForOf, _angular_common__WEBPACK_IMPORTED_MODULE_6__.NgIf, _ionic_angular__WEBPACK_IMPORTED_MODULE_10__.IonCol, _ionic_angular__WEBPACK_IMPORTED_MODULE_10__.IonContent, _ionic_angular__WEBPACK_IMPORTED_MODULE_10__.IonRow, _shared_components_avatar_avatar_component__WEBPACK_IMPORTED_MODULE_7__.AvatarComponent, _shared_components_header_header_component__WEBPACK_IMPORTED_MODULE_8__.HeaderComponent, _shared_components_list_recurrence_dates_list_recurrence_dates_component__WEBPACK_IMPORTED_MODULE_9__.ListRecurrenceDatesComponent, _ngx_translate_core__WEBPACK_IMPORTED_MODULE_11__.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;\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%] .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: 20px;\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%] .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 flex: 1;\n min-width: 0;\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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImV2ZW50LXJlc3VtZS5wYWdlLnNjc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7RUFDRSxxQkFBQTtBQUNGOztBQUNBO0VBQ0UsaUNBQUE7QUFFRjs7QUFBRTtFQUNFLFlBQUE7RUFDQSxXQUFBO0FBRUo7O0FBQ0U7RUFDRSxtQkFBQTtBQUNKOztBQUdJO0VBQ0UsYUFBQTtFQUNBLHVCQUFBO0VBQ0EsbUJBQUE7RUFDQSxZQUFBO0VBQ0EsVUFBQTtFQUNBLFdBQUE7RUFDQSxTQUFBO0VBQ0EsZUFBQTtFQUNBLGNBQUE7QUFETjs7QUFJSTtFQUNFLGdCQUFBO0FBRk47O0FBT0E7RUFDRSwwQkFBQTtFQUNBLGFBQUE7RUFDQSwyQkFBQTtFQUNBLHNCQUFBO0FBSkY7O0FBTUU7RUFDRSxnQkFBQTtFQUNBLG1CQUFBO0FBSko7O0FBTUk7RUFDRSw2QkFBQTtFQUNBLGlCQUFBO0VBQ0Esa0JBQUE7QUFKTjs7QUFPSTtFQUNFLGtCQUFBO0VBQ0EsY0FBQTtFQUNBLGdCQUFBO0VBQ0EsZUFBQTtBQUxOOztBQVNFO0VBQ0UsYUFBQTtFQUNBLHFCQUFBO0VBQ0EsdUJBQUE7QUFQSjs7QUFTSTtFQUNFLGFBQUE7RUFDQSx1QkFBQTtFQUNBLG1CQUFBO0VBQ0Esc0JBQUE7RUFDQSxTQUFBO0FBUE47O0FBVUk7RUFDRSxnQkFBQTtBQVJOOztBQVdJO0VBQ0UscUJBQUE7RUFDQSxtQkFBQTtFQUNBLHlCQUFBO0VBQ0EsV0FBQTtFQUNBLGNBQUE7RUFDQSwwQ0FBQTtBQVROOztBQVdNO0VBQ0Usc0JBQUE7RUFDQSxjQUFBO0VBQ0EsMENBQUE7QUFUUjs7QUFZTTtFQUNFLGFBQUE7QUFWUjs7QUFlTTtFQUNFLGlCQUFBO0FBYlI7O0FBa0JFO0VBQ0UsZ0JBQUE7RUFDQSxzQkFBQTtFQUNBLFlBQUE7QUFoQko7O0FBbUJFO0VBQ0UsZUFBQTtFQUNBLDZCQUFBO0FBakJKOztBQW1CSTtFQUNFLFVBQUE7RUFDQSxpQkFBQTtFQUNBLGdCQUFBO0VBQ0EsY0FBQTtBQWpCTjs7QUFvQkk7RUFDRSxVQUFBO0VBQ0EsYUFBQTtBQWxCTjs7QUFzQk07RUFDRSxpQkFBQTtFQUNBLFdBQUE7RUFDQSxnQkFBQTtFQUNBLGtCQUFBO0FBcEJSOztBQTBCTTs7O0VBRUUsYUFBQTtFQUNBLFVBQUE7RUFDQSxpQkFBQTtFQUNBLGdCQUFBO0VBQ0EsbUJBQUE7RUFDQSxTQUFBO0FBdkJSOztBQXlCUTs7O0VBQ0UsY0FBQTtBQXJCVjs7QUF3QlE7OztFQUNFLE9BQUE7RUFDQSxZQUFBO0FBcEJWOztBQXVCUTs7O0VBQ0UsZ0JBQUE7RUFDQSxXQUFBO0FBbkJWOztBQXVCTTs7O0VBRUUsVUFBQTtFQUNBLGlCQUFBO0FBcEJSOztBQXlCQTtFQUNFLHFEQUFBO0VBQ0EsYUFBQTtBQXRCRjs7QUF5QkE7RUFDRTtJQUNFLG1CQUFBO0VBdEJGO0VBd0JBO0lBQ0UscUJBQUE7RUF0QkY7RUF3QkE7SUFDRSxtQkFBQTtFQXRCRjtBQUNGIiwiZmlsZSI6ImV2ZW50LXJlc3VtZS5wYWdlLnNjc3MiLCJzb3VyY2VzQ29udGVudCI6WyJpb24tY29udGVudCB7XG4gIC0tYmFja2dyb3VuZDogI2YxZjFmMTtcbn1cbmlvbi10b29sYmFyIHtcbiAgZm9udC1mYW1pbHk6IFwiTnVuaXRvXCIsIHNhbnMtc2VyaWY7XG5cbiAgaW9uLWltZyB7XG4gICAgaGVpZ2h0OiAyNXB4O1xuICAgIHdpZHRoOiAyNXB4O1xuICB9XG5cbiAgaW9uLXRpdGxlIHtcbiAgICBsZXR0ZXItc3BhY2luZzogMXB4O1xuICB9XG5cbiAgaW9uLWJ1dHRvbiB7XG4gICAgZmEtaWNvbiB7XG4gICAgICBkaXNwbGF5OiBmbGV4O1xuICAgICAganVzdGlmeS1jb250ZW50OiBjZW50ZXI7XG4gICAgICBhbGlnbi1pdGVtczogY2VudGVyO1xuICAgICAgaGVpZ2h0OiAyNHB4O1xuICAgICAgcGFkZGluZzogMDtcbiAgICAgIHdpZHRoOiAyNHB4O1xuICAgICAgbWFyZ2luOiAwO1xuICAgICAgZm9udC1zaXplOiAxOXB4O1xuICAgICAgY29sb3I6ICM2NTY3Njg7XG4gICAgfVxuXG4gICAgJi5ob3ZlciB7XG4gICAgICBiYWNrZ3JvdW5kOiAjZmZmO1xuICAgIH1cbiAgfVxufVxuXG4uY2VudHJhbGl6ZWQtY29udGVudCB7XG4gIGhlaWdodDogY2FsYygxMDB2aCAtIDU2cHgpO1xuICBkaXNwbGF5OiBmbGV4O1xuICBqdXN0aWZ5LWNvbnRlbnQ6IGZsZXgtc3RhcnQ7XG4gIGZsZXgtZGlyZWN0aW9uOiBjb2x1bW47XG5cbiAgLnBhZ2UtdGl0bGUge1xuICAgIG1hcmdpbi10b3A6IDMwcHg7XG4gICAgbWFyZ2luLWJvdHRvbTogMjZweDtcblxuICAgIC50aXRsZSB7XG4gICAgICBmb250LXNpemU6IGluaXRpYWwgIWltcG9ydGFudDtcbiAgICAgIGZvbnQtd2VpZ2h0OiBib2xkO1xuICAgICAgdGV4dC1hbGlnbjogY2VudGVyO1xuICAgIH1cblxuICAgIC5zdWItdGl0bGUge1xuICAgICAgdGV4dC1hbGlnbjogY2VudGVyO1xuICAgICAgY29sb3I6ICM2NTY3Njg7XG4gICAgICBmb250LXNpemU6IDAuOWVtO1xuICAgICAgbWFyZ2luLXRvcDogNHB4O1xuICAgIH1cbiAgfVxuXG4gIC5hY3Rpb25zIHtcbiAgICBkaXNwbGF5OiBmbGV4O1xuICAgIGFsaWduLWNvbnRlbnQ6IGNlbnRlcjtcbiAgICBqdXN0aWZ5LWNvbnRlbnQ6IGNlbnRlcjtcblxuICAgIC5idXR0b24taG9sZGVyIHtcbiAgICAgIGRpc3BsYXk6IGZsZXg7XG4gICAgICBqdXN0aWZ5LWNvbnRlbnQ6IGNlbnRlcjtcbiAgICAgIGFsaWduLWl0ZW1zOiBjZW50ZXI7XG4gICAgICBmbGV4LWRpcmVjdGlvbjogY29sdW1uO1xuICAgICAgbWFyZ2luOiAwO1xuICAgIH1cblxuICAgIC5maXgtZXJyb3JzIHtcbiAgICAgIG1hcmdpbi10b3A6IDI0cHg7XG4gICAgfVxuXG4gICAgYnV0dG9uW3R5cGU9XCJzdWJtaXRcIl0ge1xuICAgICAgcGFkZGluZzogMC43NWVtIDEuNWVtO1xuICAgICAgYm9yZGVyLXJhZGl1czogNTBweDtcbiAgICAgIGJhY2tncm91bmQtY29sb3I6ICMwZWMyNTQ7XG4gICAgICBjb2xvcjogI2ZmZjtcbiAgICAgIGZvbnQtc2l6ZTogMWVtO1xuICAgICAgdHJhbnNpdGlvbjogYmFja2dyb3VuZC1jb2xvciAwLjFzIGVhc2Utb3V0O1xuXG4gICAgICAmOmFjdGl2ZSB7XG4gICAgICAgIGJhY2tncm91bmQtY29sb3I6ICNmZmY7XG4gICAgICAgIGNvbG9yOiAjMGVjMjU0O1xuICAgICAgICB0cmFuc2l0aW9uOiBiYWNrZ3JvdW5kLWNvbG9yIDAuMXMgZWFzZS1vdXQ7XG4gICAgICB9XG5cbiAgICAgICY6Zm9jdXMge1xuICAgICAgICBvdXRsaW5lOiBub25lO1xuICAgICAgfVxuICAgIH1cblxuICAgIGJ1dHRvbiB7XG4gICAgICAmLmRhbmdlciB7XG4gICAgICAgIG1hcmdpbi1sZWZ0OiAyNHB4O1xuICAgICAgfVxuICAgIH1cbiAgfVxuXG4gIC5ldmVudCB7XG4gICAgbWFyZ2luLXRvcDogMjBweDtcbiAgICBiYWNrZ3JvdW5kLWNvbG9yOiAjZmZmO1xuICAgIG1hcmdpbjogMjBweDtcbiAgfVxuXG4gIC5zZWN0aW9uIHtcbiAgICBwYWRkaW5nOiAxMnB4IDA7XG4gICAgYm9yZGVyLWJvdHRvbTogMXB4IHNvbGlkICNlZWU7XG5cbiAgICAubGFiZWwge1xuICAgICAgd2lkdGg6IDgwJTtcbiAgICAgIG1hcmdpbjogMCAxMCUgMnB4O1xuICAgICAgZm9udC1zaXplOiAwLjhlbTtcbiAgICAgIGNvbG9yOiAjNjU2NzY4O1xuICAgIH1cblxuICAgIC52YWx1ZSB7XG4gICAgICB3aWR0aDogODAlO1xuICAgICAgbWFyZ2luOiAwIDEwJTtcbiAgICB9XG5cbiAgICAmLnRpdGxlIHtcbiAgICAgIC52YWx1ZSB7XG4gICAgICAgIGZvbnQtd2VpZ2h0OiBib2xkO1xuICAgICAgICBjb2xvcjogIzMzMztcbiAgICAgICAgZm9udC1zaXplOiAxLjJlbTtcbiAgICAgICAgdGV4dC1hbGlnbjogY2VudGVyO1xuICAgICAgfVxuICAgIH1cblxuICAgICYuZ3Vlc3RzLFxuICAgICYuaG9zdHMge1xuICAgICAgLmd1ZXN0LFxuICAgICAgLmhvc3Qge1xuICAgICAgICBkaXNwbGF5OiBmbGV4O1xuICAgICAgICB3aWR0aDogODAlO1xuICAgICAgICBtYXJnaW46IDAgMTAlIDRweDtcbiAgICAgICAgcGFkZGluZzogNHB4IDhweDtcbiAgICAgICAgYWxpZ24taXRlbXM6IGNlbnRlcjtcbiAgICAgICAgZ2FwOiAxMHB4O1xuXG4gICAgICAgIGFwcC1hdmF0YXIge1xuICAgICAgICAgIGZsZXgtc2hyaW5rOiAwO1xuICAgICAgICB9XG5cbiAgICAgICAgLmZ1bGwtbmFtZSB7XG4gICAgICAgICAgZmxleDogMTtcbiAgICAgICAgICBtaW4td2lkdGg6IDA7XG4gICAgICAgIH1cblxuICAgICAgICAuZGVwYXJ0bWVudCB7XG4gICAgICAgICAgZm9udC1zaXplOiAwLjhlbTtcbiAgICAgICAgICBjb2xvcjogI2FhYTtcbiAgICAgICAgfVxuICAgICAgfVxuXG4gICAgICAuaG9zdHMtZW1wdHksXG4gICAgICAuZ3Vlc3RzLWVtcHR5IHtcbiAgICAgICAgd2lkdGg6IDgwJTtcbiAgICAgICAgbWFyZ2luOiAwIDEwJSA0cHg7XG4gICAgICB9XG4gICAgfVxuICB9XG59XG4ucHVsc2F0ZS1md2Qge1xuICBhbmltYXRpb246IHB1bHNhdGUtZndkIDAuNXMgZWFzZS1pbi1vdXQgaW5maW5pdGUgYm90aDtcbiAgb3V0bGluZTogbm9uZTtcbn1cblxuQGtleWZyYW1lcyBwdWxzYXRlLWZ3ZCB7XG4gIDAlIHtcbiAgICB0cmFuc2Zvcm06IHNjYWxlKDEpO1xuICB9XG4gIDUwJSB7XG4gICAgdHJhbnNmb3JtOiBzY2FsZSgxLjUpO1xuICB9XG4gIDEwMCUge1xuICAgIHRyYW5zZm9ybTogc2NhbGUoMSk7XG4gIH1cbn1cbiJdfQ== */"] }); /***/ }), /***/ 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=2493.js.map