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

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

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "CreateEventEventOptionsPageModule": () => (/* binding */ CreateEventEventOptionsPageModule)
/* harmony export */ });
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/common */ 90944);
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_angular_common__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @angular/forms */ 2508);
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/router */ 61380);
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_angular_router__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _create_event_event_options_page__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./create-event-event-options.page */ 9204);
/* harmony import */ var src_app_shared_module_shared_module_module__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! src/app/shared-module/shared-module.module */ 69270);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @angular/core */ 45449);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_angular_core__WEBPACK_IMPORTED_MODULE_4__);







const routes = [
    {
        path: '',
        component: _create_event_event_options_page__WEBPACK_IMPORTED_MODULE_2__.CreateEventEventOptionsPage,
    },
];
class CreateEventEventOptionsPageModule {
}
CreateEventEventOptionsPageModule.ɵfac = function CreateEventEventOptionsPageModule_Factory(t) { return new (t || CreateEventEventOptionsPageModule)(); };
CreateEventEventOptionsPageModule.ɵmod = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdefineNgModule"]({ type: CreateEventEventOptionsPageModule });
CreateEventEventOptionsPageModule.ɵinj = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdefineInjector"]({ imports: [_angular_common__WEBPACK_IMPORTED_MODULE_0__.CommonModule, _angular_forms__WEBPACK_IMPORTED_MODULE_5__.FormsModule, src_app_shared_module_shared_module_module__WEBPACK_IMPORTED_MODULE_3__.SharedModuleModule, _angular_router__WEBPACK_IMPORTED_MODULE_1__.RouterModule.forChild(routes)] });
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵsetNgModuleScope"](CreateEventEventOptionsPageModule, { declarations: [_create_event_event_options_page__WEBPACK_IMPORTED_MODULE_2__.CreateEventEventOptionsPage], imports: [_angular_common__WEBPACK_IMPORTED_MODULE_0__.CommonModule, _angular_forms__WEBPACK_IMPORTED_MODULE_5__.FormsModule, src_app_shared_module_shared_module_module__WEBPACK_IMPORTED_MODULE_3__.SharedModuleModule, _angular_router__WEBPACK_IMPORTED_MODULE_1__.RouterModule] }); })();


/***/ }),

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

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "CreateEventEventOptionsPage": () => (/* binding */ CreateEventEventOptionsPage)
/* harmony export */ });
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @angular/forms */ 2508);
/* 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 _shared_services_focus_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @shared/services/focus.service */ 37763);
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/common */ 90944);
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_angular_common__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var _ionic_angular__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @ionic/angular */ 93819);
/* harmony import */ var _shared_components_header_header_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../shared/components/header/header.component */ 36290);
/* harmony import */ var _ngx_translate_core__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @ngx-translate/core */ 38699);









function CreateEventEventOptionsPage_div_54_Template(rf, ctx) { if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 22)(1, "div", 23);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](3, "translate");
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "span");
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](6, "min. ");
    _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"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind1"](3, 2, "PG_CREATE_OPTIONS_STEP_TEXT_CHECKINSTART_MAX"), " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](ctx_r0.maxcheckInStartAt);
} }
function CreateEventEventOptionsPage_div_55_div_1_Template(rf, ctx) { if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 23);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
    const error_r3 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](error_r3.message);
} }
function CreateEventEventOptionsPage_div_55_Template(rf, ctx) { if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 22);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, CreateEventEventOptionsPage_div_55_div_1_Template, 2, 1, "div", 24);
    _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.eventTitleFormErrors);
} }
class CreateEventEventOptionsPage {
    constructor(createEventService, navigationService, commonService, notificatorService, fb, translateConfigService, focusService, profileManagerService) {
        this.createEventService = createEventService;
        this.navigationService = navigationService;
        this.commonService = commonService;
        this.notificatorService = notificatorService;
        this.fb = fb;
        this.translateConfigService = translateConfigService;
        this.focusService = focusService;
        this.profileManagerService = profileManagerService;
        this.defaultMultiCheckIn = false;
        this.defaultCompanionAllowed = true;
        this.defaultNeedAuthorization = true;
        this.defaultCheckInStartAt = 15;
        /**
         * Multi Checkin
         * @description
         *  Se ativado, permite aos convidados saírem e retornarem ao evento, realizando novos check-ins.
         *
         * `Se seu convidado vai precisar entrar mais de uma vez no mesmo dia no mesmo evento você deve permitir múltiplos check-ins. Cada QR Code gerado durante o check-in vale apenas para uma entrada.`
         */
        this.multiCheckin = this.defaultMultiCheckIn;
        /**
         * Allow Companion
         * @description
         *  Permita a entrada de acompanhantes. Se ativado, permite que convidados do evento, cadastrem novos convidados.
         *
         * `Convidados muitas vezes trazem acompanhantes.
         * Essa permissão garante que seu convidado possa entrar com seus acompanhantes, cadastrando os dados deles durante o check-in.
         * Ao final do cadastro, o acompanhante também deverá fazer seu check-in.`
         */
        this.allowCompanion = this.defaultCompanionAllowed;
        /**
         * Need Authorization
         * @description
         *  Se ativado, os convidados cadastrados neste evento deverão aguardar autorização do anfitrião.
         *
         * `Se você quer que o seu convidado faça o check-in e entre sem pedir a sua autorização basta cadastrá-los no evento e desmarcar esta opção.
         *  Visitantes que tentarem realizar o check-in para este evento e que não estejam pré-cadastrados pelo anfitrião, dependerão de autorização apesar desta opção.`
      
         */
        this.needAuthorization = this.defaultNeedAuthorization;
        /**
         * Check-in Start At
         * @description
         *  Quantos minutos de antecedência o anfitrião deverá aguardar para liberar check-in.
         *  Liberação de checkin à partir de `15` minutos de antecedência
         */
        this.checkInStartAt = this.defaultCheckInStartAt;
        this.maxcheckInStartAt = 60;
        this.navigateToQRCode = () => {
            this.navigationService.forward(['/home']);
        };
        this.navigateToPendingLiberations = () => {
            this.navigationService.forward(['/push-notifications']);
        };
        this.onSubmit = () => {
            this.cleanValidationErrors();
            const checkInStartAt = this.commonService.clearString(this.checkInStartAt);
            const data = {
                checkInStartAt
            };
            const validationResult = this.validateInput(data);
            if (!!validationResult.length) {
                this.setValidationErrors(validationResult);
                const notification = {
                    title: this.translateConfigService.translate('PG_CREATE_OPTIONS_STEP_TOAST_INVALID_DATA_TITLE'),
                    message: this.translateConfigService.translate('PG_CREATE_OPTIONS_STEP_TOAST_INVALID_DATA_MESSAGE'),
                    type: 'error'
                };
                this.notificatorService.notify(notification);
            }
            else {
                this.createEventService.setMultiCheckIn(this.multiCheckin);
                this.createEventService.setCompanionAllowed(this.allowCompanion);
                this.createEventService.setNeedAuthorization(this.needAuthorization);
                this.createEventService.setCheckInStartAt(checkInStartAt);
                this.goToEventResume();
            }
        };
        this.validateInput = data => {
            const errors = [];
            const titleInputValidationErrors = this.validateCheckInStartAtInput(data);
            if (titleInputValidationErrors) {
                errors.push(titleInputValidationErrors);
            }
            return errors;
        };
        this.validateCheckInStartAtInput = data => {
            const regex = /^\d+$/;
            if (!data.checkInStartAt || !regex.test(data.checkInStartAt)) {
                return {
                    message: this.translateConfigService.translate('PG_CREATE_OPTIONS_STEP_TEXT_CHECKINSTART'),
                    field: 'title'
                };
            }
            if (this.checkInStartAtForm.errors && this.checkInStartAtForm.errors.max) {
                return {
                    message: `${this.translateConfigService.translate('PG_CREATE_OPTIONS_STEP_TEXT_CHECKINSTART_MAX')} ${this.maxcheckInStartAt}min.`,
                    field: 'title'
                };
            }
            return null;
        };
        this.onMultiCheckinChange = event => {
            const { checked } = event.target;
            this.multiCheckin = checked;
        };
        this.onCompanionAllowedChange = event => {
            const { checked } = event.target;
            this.allowCompanion = checked;
        };
        this.onNeedAuthorizationChange = event => {
            const { checked } = event.target;
            this.needAuthorization = checked;
        };
        this.onCheckInStartAtChange = event => {
            const { value } = event.target;
            this.checkInStartAt = value;
        };
        this.goToEventResume = () => {
            const event = {
                id: this.createEventService.getId(),
                title: this.createEventService.getTitle(),
                startAt: this.createEventService.getStartDate(),
                endAt: this.createEventService.getEndDate(),
                floor: this.createEventService.getSelectedFloor(),
                group: this.createEventService.getSelectedGroup(),
                hosts: this.createEventService.getHosts(),
                guests: this.createEventService.getGuests(),
                multiCheckin: this.createEventService.getMultiCheckIn(),
                allowCompanion: this.createEventService.getCompanionAllowed(),
                needAuthorization: this.createEventService.getNeedAuthorization(),
                checkinStartAt: this.createEventService.getCheckInStartAt(),
                bookeis: this.createEventService.getBookings(),
                bookeisToCancel: this.existIdEvent ? this.createEventService.getBookeisToCancel() : [],
                recurrent: this.createEventService.getRecurrent(),
                recurrenceDates: this.createEventService.getRecurrenceDates()
            };
            const navigationExtras = {
                state: {
                    event,
                    isLimitedProfile: false
                }
            };
            this.navigationService.forward(['/create-event-event-resume'], navigationExtras);
        };
        this.goOneStepBack = () => {
            this.navigationService.back(['/create-event-event-guests']);
        };
        this.setValidationErrors = errors => {
            this.eventTitleFormErrors = errors;
        };
        this.cleanValidationErrors = () => {
            this.eventTitleFormErrors = [];
        };
        this.existIdEvent = !this.createEventService.getIsNew();
    }
    ionViewWillEnter() {
        this.focusService.applyFocusQuerySelector('create_event_options', 3500);
    }
    ngOnInit() {
        let checkInStartAt = 15;
        if (!this.createEventService.getIsNew()) {
            this.multiCheckin = this.createEventService.getMultiCheckIn();
            this.allowCompanion = this.createEventService.getCompanionAllowed();
            this.needAuthorization = this.createEventService.getNeedAuthorization();
            this.checkInStartAt = this.createEventService.getCheckInStartAt();
            checkInStartAt = this.createEventService.getCheckInStartAt()
                ? this.defaultCheckInStartAt
                : 15;
        }
        else {
            const { multiCheckin, allowCompanion, checkinStartAt, autoRelease: needAuthorization } = this.createEventService.getSettingsCompany() ?? {};
            this.multiCheckin = multiCheckin !== undefined ? multiCheckin : this.defaultMultiCheckIn;
            this.allowCompanion =
                allowCompanion !== undefined ? allowCompanion : this.defaultCompanionAllowed;
            this.needAuthorization =
                needAuthorization !== undefined ? !needAuthorization : this.defaultNeedAuthorization;
            this.checkInStartAt =
                checkinStartAt !== undefined ? checkinStartAt : this.defaultCheckInStartAt;
        }
        checkInStartAt = this.checkInStartAt;
        this.eventTitleFormErrors = [];
        this.form = this.fb.group({
            checkInStartAt: [checkInStartAt, [_angular_forms__WEBPACK_IMPORTED_MODULE_5__.Validators.max(this.maxcheckInStartAt)]]
        });
    }
    get checkInStartAtForm() {
        return this.form.get('checkInStartAt');
    }
    ionViewDidEnter() {
        //this.verifyNotifications;
    }
    ionViewDidLeave() { }
    isLimited2Profile() {
        const profile = this.profileManagerService.getProfile();
        return profile?.authorities?.includes('ROLE_COMPANY_LIMITED2') || false;
    }
}
CreateEventEventOptionsPage.ɵfac = function CreateEventEventOptionsPage_Factory(t) { return new (t || CreateEventEventOptionsPage)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_1__.CreateEventService), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_1__.NavigationService), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_1__.CommonService), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_1__.NotificatorService), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_5__.UntypedFormBuilder), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_1__.TranslateConfigService), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_shared_services_focus_service__WEBPACK_IMPORTED_MODULE_2__.FocusService), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_1__.ProfileManagerService)); };
CreateEventEventOptionsPage.ɵcmp = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: CreateEventEventOptionsPage, selectors: [["app-create-event-event-options"]], decls: 63, vars: 62, consts: [["defaultHref", "create-event-event-guests", 3, "title", "showBadge", "refresh", "menuToggle"], [1, "centralized-content"], [2, "width", "100%", "height", "10px"], [1, "ion-margin-vertical"], [1, "input-holder"], ["id", "create_event_options", 1, "input"], ["tabindex", "2", "type", "checkbox", "id", "multi-check-in", "name", "multiCheckin", 3, "checked", "change"], ["for", "multi-check-in", "tabindex", "1"], [1, "options"], [3, "ngClass", "click"], [1, "input"], ["type", "checkbox", "id", "companion-allowed", "name", "allowCompanion", 3, "checked", "change"], ["for", "companion-allowed"], ["type", "checkbox", "id", "auto-release", "name", "autoRelease", 3, "checked", "disabled", "change"], ["for", "auto-release"], ["for", "check-in-start-at"], [3, "formGroup"], ["type", "tel", "id", "check-in-start-at", "name", "checkInStartAt", "formControlName", "checkInStartAt", 3, "maxlength", "max", "input"], ["class", "errors", 4, "ngIf"], [1, "button-holder"], ["type", "button", 1, "back", 3, "click"], ["type", "submit", 3, "disabled", "click"], [1, "errors"], [1, "error"], ["class", "error", 4, "ngFor", "ngForOf"]], template: function CreateEventEventOptionsPage_Template(rf, ctx) { if (rf & 1) {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](0, "app-header", 0);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](1, "translate");
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "ion-content")(3, "div", 1);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](4, "div", 2);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "ion-row")(6, "ion-col", 3)(7, "div", 4)(8, "div", 5)(9, "input", 6);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("change", function CreateEventEventOptionsPage_Template_input_change_9_listener($event) { return ctx.onMultiCheckinChange($event); });
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](10, "label", 7);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](11);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](12, "translate");
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](13, "div", 8)(14, "div", 9);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function CreateEventEventOptionsPage_Template_div_click_14_listener() { return ctx.onMultiCheckinChange({ target: { checked: true } }); });
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](15);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](16, "translate");
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](17, "div", 9);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function CreateEventEventOptionsPage_Template_div_click_17_listener() { return ctx.onMultiCheckinChange({ target: { checked: false } }); });
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](18);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](19, "translate");
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()()();
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](20, "div", 4)(21, "div", 10)(22, "input", 11);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("change", function CreateEventEventOptionsPage_Template_input_change_22_listener($event) { return ctx.onCompanionAllowedChange($event); });
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](23, "label", 12);
        _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", 8)(27, "div", 9);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function CreateEventEventOptionsPage_Template_div_click_27_listener() { return ctx.onCompanionAllowedChange({ target: { checked: true } }); });
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](28);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](29, "translate");
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](30, "div", 9);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function CreateEventEventOptionsPage_Template_div_click_30_listener() { return ctx.onCompanionAllowedChange({ target: { checked: false } }); });
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](31);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](32, "translate");
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()()();
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](33, "div", 4)(34, "div", 10)(35, "input", 13);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("change", function CreateEventEventOptionsPage_Template_input_change_35_listener($event) { return ctx.onNeedAuthorizationChange($event); });
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](36, "label", 14);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](37);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](38, "translate");
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](39, "div", 8)(40, "div", 9);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function CreateEventEventOptionsPage_Template_div_click_40_listener() { return !ctx.isLimited2Profile() && ctx.onNeedAuthorizationChange({ target: { checked: true } }); });
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](41);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](42, "translate");
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](43, "div", 9);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function CreateEventEventOptionsPage_Template_div_click_43_listener() { return !ctx.isLimited2Profile() && ctx.onNeedAuthorizationChange({ target: { checked: false } }); });
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](44);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](45, "translate");
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()()();
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](46, "div", 4)(47, "div", 10)(48, "label", 15);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](49);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](50, "translate");
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](51, "form", 16)(52, "input", 17);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("input", function CreateEventEventOptionsPage_Template_input_input_52_listener($event) { return ctx.onCheckInStartAtChange($event); });
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](53, "br");
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](54, CreateEventEventOptionsPage_div_54_Template, 7, 4, "div", 18);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](55, CreateEventEventOptionsPage_div_55_Template, 2, 1, "div", 18);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](56, "div", 19)(57, "button", 20);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function CreateEventEventOptionsPage_Template_button_click_57_listener() { return ctx.goOneStepBack(); });
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](58);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](59, "translate");
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](60, "button", 21);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function CreateEventEventOptionsPage_Template_button_click_60_listener() { return ctx.onSubmit(); });
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](61);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](62, "translate");
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()()()()()();
    } if (rf & 2) {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("title", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind1"](1, 36, "PG_CREATE_OPTIONS_STEP_HEADER_TITLE"))("showBadge", true)("refresh", false)("menuToggle", false);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](9);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("checked", ctx.multiCheckin);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind1"](12, 38, "PG_CREATE_OPTIONS_STEP_TEXT_MULTCHECKIN"), " ");
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngClass", "option yes " + (ctx.multiCheckin ? "active" : ""));
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind1"](16, 40, "PG_CREATE_OPTIONS_STEP_TEXT_MULTCHECKIN_YES"), " ");
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngClass", "option no " + (!ctx.multiCheckin ? "active" : ""));
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind1"](19, 42, "PG_CREATE_OPTIONS_STEP_TEXT_MULTCHECKIN_NO"), " ");
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("checked", ctx.allowCompanion);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind1"](25, 44, "PG_CREATE_OPTIONS_STEP_TEXT_COMPANION_ALLOWED"), " ");
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngClass", "option yes " + (ctx.allowCompanion ? "active" : ""));
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind1"](29, 46, "PG_CREATE_OPTIONS_STEP_TEXT_COMPANION_ALLOWED_YES"), " ");
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngClass", "option no " + (!ctx.allowCompanion ? "active" : ""));
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind1"](32, 48, "PG_CREATE_OPTIONS_STEP_TEXT_COMPANION_ALLOWED_NO"), " ");
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("checked", ctx.needAuthorization)("disabled", ctx.isLimited2Profile());
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind1"](38, 50, "PG_CREATE_OPTIONS_STEP_TEXT_NEED_AUTHORIZATION"), " ");
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵclassProp"]("disabled", ctx.isLimited2Profile());
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngClass", "option yes " + (ctx.needAuthorization ? "active" : ""));
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind1"](42, 52, "PG_CREATE_OPTIONS_STEP_TEXT_NEED_AUTHORIZATION_YES"), " ");
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵclassProp"]("disabled", ctx.isLimited2Profile());
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngClass", "option no " + (!ctx.needAuthorization ? "active" : ""));
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind1"](45, 54, "PG_CREATE_OPTIONS_STEP_TEXT_NEED_AUTHORIZATION_NO"), " ");
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind1"](50, 56, "PG_CREATE_OPTIONS_STEP_TEXT_CHECKIN_STARTAT"), " ");
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("formGroup", ctx.form);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("maxlength", 2)("max", ctx.maxcheckInStartAt);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.checkInStartAtForm == null ? null : ctx.checkInStartAtForm.errors == null ? null : ctx.checkInStartAtForm.errors.max);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.eventTitleFormErrors);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind1"](59, 58, "BTN_BACK"), " ");
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("disabled", ctx.checkInStartAtForm == null ? null : ctx.checkInStartAtForm.errors == null ? null : ctx.checkInStartAtForm.errors.max);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind1"](62, 60, "BTN_NEXT"), " ");
    } }, dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_3__.NgClass, _angular_common__WEBPACK_IMPORTED_MODULE_3__.NgForOf, _angular_common__WEBPACK_IMPORTED_MODULE_3__.NgIf, _angular_forms__WEBPACK_IMPORTED_MODULE_5__["ɵNgNoValidate"], _angular_forms__WEBPACK_IMPORTED_MODULE_5__.DefaultValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_5__.NgControlStatus, _angular_forms__WEBPACK_IMPORTED_MODULE_5__.NgControlStatusGroup, _angular_forms__WEBPACK_IMPORTED_MODULE_5__.MaxLengthValidator, _ionic_angular__WEBPACK_IMPORTED_MODULE_6__.IonCol, _ionic_angular__WEBPACK_IMPORTED_MODULE_6__.IonContent, _ionic_angular__WEBPACK_IMPORTED_MODULE_6__.IonRow, _angular_forms__WEBPACK_IMPORTED_MODULE_5__.FormGroupDirective, _angular_forms__WEBPACK_IMPORTED_MODULE_5__.FormControlName, _shared_components_header_header_component__WEBPACK_IMPORTED_MODULE_4__.HeaderComponent, _ngx_translate_core__WEBPACK_IMPORTED_MODULE_7__.TranslatePipe], styles: ["ion-content[_ngcontent-%COMP%] {\n  --background: #f1f1f1;\n}\n\nion-toolbar[_ngcontent-%COMP%] {\n  font-family: \"Nunito\", sans-serif;\n}\n\nion-toolbar[_ngcontent-%COMP%]   ion-img[_ngcontent-%COMP%] {\n  height: 25px;\n  width: 25px;\n}\n\nion-toolbar[_ngcontent-%COMP%]   ion-title[_ngcontent-%COMP%] {\n  letter-spacing: 1px;\n}\n\nion-toolbar[_ngcontent-%COMP%]   ion-button[_ngcontent-%COMP%]   fa-icon[_ngcontent-%COMP%] {\n  display: flex;\n  justify-content: center;\n  align-items: center;\n  height: 24px;\n  padding: 0;\n  width: 24px;\n  margin: 0;\n  font-size: 19px;\n  color: #656768;\n}\n\nion-toolbar[_ngcontent-%COMP%]   ion-button.hover[_ngcontent-%COMP%] {\n  background: #fff;\n}\n\n.centralized-content[_ngcontent-%COMP%] {\n  height: calc(100vh - 56px);\n  display: flex;\n  justify-content: flex-start;\n  flex-direction: column;\n}\n\n.centralized-content[_ngcontent-%COMP%]   .errors[_ngcontent-%COMP%] {\n  width: 80%;\n  margin: 12px 10% 0;\n  color: #f0181b;\n  text-align: center;\n}\n\n.centralized-content[_ngcontent-%COMP%]   .page-title[_ngcontent-%COMP%] {\n  margin-top: 30px;\n  margin-bottom: 26px;\n}\n\n.centralized-content[_ngcontent-%COMP%]   .page-title[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%] {\n  font-size: initial !important;\n  font-weight: bold;\n  text-align: center;\n}\n\n.centralized-content[_ngcontent-%COMP%]   .page-title[_ngcontent-%COMP%]   .sub-title[_ngcontent-%COMP%] {\n  text-align: center;\n  color: #656768;\n  font-size: 0.9em;\n  margin-top: 4px;\n}\n\n.centralized-content[_ngcontent-%COMP%]   .input-holder[_ngcontent-%COMP%] {\n  margin-top: 24px;\n  margin-bottom: 24px;\n}\n\n.centralized-content[_ngcontent-%COMP%]   .input-holder[_ngcontent-%COMP%]:first-of-type {\n  margin-top: 0;\n}\n\n.centralized-content[_ngcontent-%COMP%]   .input-holder[_ngcontent-%COMP%]   .input[_ngcontent-%COMP%] {\n  display: block;\n}\n\n.centralized-content[_ngcontent-%COMP%]   .input-holder[_ngcontent-%COMP%]   .input[_ngcontent-%COMP%]   input[type=checkbox][_ngcontent-%COMP%] {\n  display: none;\n}\n\n.centralized-content[_ngcontent-%COMP%]   .input-holder[_ngcontent-%COMP%]   .options[_ngcontent-%COMP%] {\n  margin-top: 4px;\n  display: flex;\n  justify-content: flex-start;\n  align-items: center;\n}\n\n.centralized-content[_ngcontent-%COMP%]   .input-holder[_ngcontent-%COMP%]   .options[_ngcontent-%COMP%]   .option[_ngcontent-%COMP%] {\n  padding: 6px 12px;\n  border-radius: 50px;\n  border: 1px solid #eee;\n  background-color: #fff;\n  transition: background-color 0.35s ease, border-color 0.35s ease;\n}\n\n.centralized-content[_ngcontent-%COMP%]   .input-holder[_ngcontent-%COMP%]   .options[_ngcontent-%COMP%]   .option.yes[_ngcontent-%COMP%] {\n  margin-right: 8px;\n}\n\n.centralized-content[_ngcontent-%COMP%]   .input-holder[_ngcontent-%COMP%]   .options[_ngcontent-%COMP%]   .option.active[_ngcontent-%COMP%] {\n  color: #fff;\n  background-color: #0ec254;\n  border-color: #0ec254;\n  transition: background-color 0.35s ease, border-color 0.35s ease;\n}\n\n.pulsate-fwd[_ngcontent-%COMP%] {\n  animation: pulsate-fwd 0.5s ease-in-out infinite both;\n  outline: none;\n}\n\n@keyframes pulsate-fwd {\n  0% {\n    transform: scale(1);\n  }\n  50% {\n    transform: scale(1.5);\n  }\n  100% {\n    transform: scale(1);\n  }\n}\n\n.disabled[_ngcontent-%COMP%] {\n  opacity: 0.5;\n  pointer-events: none;\n  cursor: not-allowed;\n}\n\ninput[disabled][_ngcontent-%COMP%] {\n  opacity: 0.5;\n  cursor: not-allowed;\n}\n\n.option.disabled[_ngcontent-%COMP%] {\n  opacity: 0.5;\n  pointer-events: none;\n  cursor: not-allowed;\n}\n/*# sourceMappingURL=data:application/json;base64,[encoded data, 4836 characters] */"] });


/***/ }),

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

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




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


/***/ })

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