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

/***/ 84420:
/*!**********************************************************************!*\
  !*** ./src/app/pages/configuration/notification/debounce.service.ts ***!
  \**********************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "DebounceService": () => (/* binding */ DebounceService)
/* harmony export */ });
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! rxjs */ 92218);
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! rxjs */ 84505);
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! rxjs/operators */ 80823);
/* 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__);



class DebounceService {
    constructor() {
        this.debouceTime = 5000;
        this.saveSubject = new rxjs__WEBPACK_IMPORTED_MODULE_1__.Subject();
        this.saveCallback = null;
        // Observable para o progress do countdown
        this.countdownProgress$ = new rxjs__WEBPACK_IMPORTED_MODULE_2__.BehaviorSubject(0);
        this.isCountingDown$ = new rxjs__WEBPACK_IMPORTED_MODULE_2__.BehaviorSubject(false);
        this.lastSaveTime = 0;
        this.MIN_SAVE_INTERVAL = 1000; // 1 segundo mínimo entre saves
        this.saveSubject.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_3__.debounceTime)(this.debouceTime)).subscribe(() => {
            this.triggerSave();
        });
    }
    notifyChange() {
        console.log('🔵 DebounceService.notifyChange() chamado');
        // Inicia o countdown visual
        this.startCountdown();
        this.saveSubject.next();
    }
    startCountdown() {
        // console.log('🟡 Iniciando countdown...');
        this.isCountingDown$.next(true);
        this.countdownProgress$.next(0);
        const interval = 100; // Atualiza a cada 100ms
        const totalSteps = this.debouceTime / interval;
        let currentStep = 0;
        const countdownInterval = setInterval(() => {
            currentStep++;
            const progress = (currentStep / totalSteps) * 100;
            this.countdownProgress$.next(progress);
            // console.log(`🟢 Progress: ${progress.toFixed(1)}%`);
            if (currentStep >= totalSteps) {
                clearInterval(countdownInterval);
                this.isCountingDown$.next(false);
                this.countdownProgress$.next(0);
                console.log('🔴 Countdown finalizado');
            }
        }, interval);
    }
    triggerSave() {
        const now = Date.now();
        // Evita saves muito frequentes (opcional)
        if (now - this.lastSaveTime < this.MIN_SAVE_INTERVAL) {
            console.log('🟡 Save ignorado - muito frequente');
            return;
        }
        this.lastSaveTime = now;
        if (this.saveCallback) {
            console.log('🟢 Executando save callback');
            this.saveCallback();
        }
        else {
            console.warn('Save callback não foi configurado');
        }
    }
    setSaveCallback(callback) {
        this.saveCallback = callback;
    }
}
DebounceService.ɵfac = function DebounceService_Factory(t) { return new (t || DebounceService)(); };
DebounceService.ɵprov = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"]({ token: DebounceService, factory: DebounceService.ɵfac, providedIn: 'root' });


/***/ }),

/***/ 86665:
/*!*********************************************************************************!*\
  !*** ./src/app/pages/configuration/notification/notification-routing.module.ts ***!
  \*********************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "NotificationPageRoutingModule": () => (/* binding */ NotificationPageRoutingModule)
/* 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 _notification_page__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./notification.page */ 2279);
/* 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__);




const routes = [
    {
        path: '',
        component: _notification_page__WEBPACK_IMPORTED_MODULE_1__.NotificationPage
    }
];
class NotificationPageRoutingModule {
}
NotificationPageRoutingModule.ɵfac = function NotificationPageRoutingModule_Factory(t) { return new (t || NotificationPageRoutingModule)(); };
NotificationPageRoutingModule.ɵmod = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdefineNgModule"]({ type: NotificationPageRoutingModule });
NotificationPageRoutingModule.ɵinj = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdefineInjector"]({ imports: [_angular_router__WEBPACK_IMPORTED_MODULE_0__.RouterModule.forChild(routes), _angular_router__WEBPACK_IMPORTED_MODULE_0__.RouterModule] });
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵsetNgModuleScope"](NotificationPageRoutingModule, { imports: [_angular_router__WEBPACK_IMPORTED_MODULE_0__.RouterModule], exports: [_angular_router__WEBPACK_IMPORTED_MODULE_0__.RouterModule] }); })();


/***/ }),

/***/ 13149:
/*!*************************************************************************!*\
  !*** ./src/app/pages/configuration/notification/notification.module.ts ***!
  \*************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "NotificationPageModule": () => (/* binding */ NotificationPageModule)
/* harmony export */ });
/* harmony import */ var _notification_routing_module__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./notification-routing.module */ 86665);
/* harmony import */ var _notification_page__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./notification.page */ 2279);
/* 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 _shared_components_components_module__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @shared/components/components.module */ 15626);
/* 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__);





class NotificationPageModule {
}
NotificationPageModule.ɵfac = function NotificationPageModule_Factory(t) { return new (t || NotificationPageModule)(); };
NotificationPageModule.ɵmod = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdefineNgModule"]({ type: NotificationPageModule });
NotificationPageModule.ɵinj = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdefineInjector"]({ imports: [src_app_shared_module_shared_module_module__WEBPACK_IMPORTED_MODULE_2__.SharedModuleModule, _shared_components_components_module__WEBPACK_IMPORTED_MODULE_3__.ComponentsModule, _notification_routing_module__WEBPACK_IMPORTED_MODULE_0__.NotificationPageRoutingModule] });
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵsetNgModuleScope"](NotificationPageModule, { declarations: [_notification_page__WEBPACK_IMPORTED_MODULE_1__.NotificationPage], imports: [src_app_shared_module_shared_module_module__WEBPACK_IMPORTED_MODULE_2__.SharedModuleModule, _shared_components_components_module__WEBPACK_IMPORTED_MODULE_3__.ComponentsModule, _notification_routing_module__WEBPACK_IMPORTED_MODULE_0__.NotificationPageRoutingModule] }); })();


/***/ }),

/***/ 2279:
/*!***********************************************************************!*\
  !*** ./src/app/pages/configuration/notification/notification.page.ts ***!
  \***********************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "NotificationPage": () => (/* binding */ NotificationPage)
/* 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 _shared_interfaces__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @shared/interfaces */ 98424);
/* harmony import */ var _shared_services__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @shared/services */ 17253);
/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! moment */ 56908);
/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(moment__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var capacitor_notify_persistent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! capacitor-notify-persistent */ 60850);
/* harmony import */ var _capacitor_core__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @capacitor/core */ 26549);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @angular/core */ 45449);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_angular_core__WEBPACK_IMPORTED_MODULE_6__);
/* harmony import */ var _ionic_angular__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @ionic/angular */ 93819);
/* harmony import */ var _debounce_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./debounce.service */ 84420);
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @angular/common */ 90944);
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_angular_common__WEBPACK_IMPORTED_MODULE_8__);
/* harmony import */ var _shared_components_header_header_component__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../../shared/components/header/header.component */ 36290);
/* harmony import */ var _shared_components_customtimepicker_customtimepicker_component__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../../shared/components/customtimepicker/customtimepicker.component */ 31044);
/* harmony import */ var _shared_components_accordion_accordion_component__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../../shared/components/accordion/accordion.component */ 7415);
/* harmony import */ var _ngx_translate_core__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @ngx-translate/core */ 38699);
















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

    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](0, "li", 29);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵlistener"]("click", function NotificationPage_div_10_div_12_li_7_Template_li_click_0_listener() {
      const restoredCtx = _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵrestoreView"](_r7);
      const i_r5 = restoredCtx.index;
      const ctx_r6 = _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵnextContext"](3);
      return _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵresetView"](ctx_r6.toggleDayActivation(i_r5));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]();
  }

  if (rf & 2) {
    const day_r4 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵclassProp"]("notification-config__day--active", day_r4.activated)("notification-config__day--deactive", !day_r4.activated);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtextInterpolate1"](" ", day_r4.shortLabel[0], " ");
  }
}

function NotificationPage_div_10_div_12_Template(rf, ctx) {
  if (rf & 1) {
    const _r9 = _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵgetCurrentView"]();

    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](0, "div")(1, "div", 16)(2, "div", 17);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵpipe"](4, "translate");
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](5, "div", 18)(6, "ul", 19);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtemplate"](7, NotificationPage_div_10_div_12_li_7_Template, 2, 5, "li", 20);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](8, "div", 21)(9, "div", 22)(10, "span", 23);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](11);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵpipe"](12, "translate");
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](13, "div", 24)(14, "app-custom-timepicker", 25);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵlistener"]("timeSet", function NotificationPage_div_10_div_12_Template_app_custom_timepicker_timeSet_14_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵrestoreView"](_r9);
      const ctx_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵresetView"](ctx_r8.openPickerHourDialog("startAt", $event));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](15, "div", 26);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelement"](16, "ion-icon", 27);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](17, "div", 22)(18, "span", 23);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](19);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵpipe"](20, "translate");
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](21, "div", 24)(22, "app-custom-timepicker", 25);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵlistener"]("timeSet", function NotificationPage_div_10_div_12_Template_app_custom_timepicker_timeSet_22_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵrestoreView"](_r9);
      const ctx_r10 = _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵresetView"](ctx_r10.openPickerHourDialog("endAt", $event));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]()()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](23, "div", 28);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵlistener"]("click", function NotificationPage_div_10_div_12_Template_div_click_23_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵrestoreView"](_r9);
      const ctx_r11 = _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵresetView"](ctx_r11.enableCustomizeByDay());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](24);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵpipe"](25, "translate");
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]()();
  }

  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵpipeBind1"](4, 9, "CONFIGS.NOTIFICATION.SELECT_DAYS"), " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("ngForOf", ctx_r1.weekDays);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵpipeBind1"](12, 11, "CONFIGS.NOTIFICATION.START"));
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("isNotificationScreen", true)("valueHour", ctx_r1.getActiveDaysStartTime());
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵpipeBind1"](20, 13, "CONFIGS.NOTIFICATION.END"));
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("isNotificationScreen", true)("valueHour", ctx_r1.getActiveDaysEndTime());
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵpipeBind1"](25, 15, "CONFIGS.NOTIFICATION.CUSTOMIZE_BY_DAY"), " ");
  }
}

function NotificationPage_div_10_div_13_li_7_Template(rf, ctx) {
  if (rf & 1) {
    const _r17 = _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵgetCurrentView"]();

    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](0, "li", 29);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵlistener"]("click", function NotificationPage_div_10_div_13_li_7_Template_li_click_0_listener() {
      const restoredCtx = _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵrestoreView"](_r17);
      const i_r15 = restoredCtx.index;
      const ctx_r16 = _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵnextContext"](3);
      return _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵresetView"](ctx_r16.toggleDayActivation(i_r15));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]();
  }

  if (rf & 2) {
    const day_r14 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵclassProp"]("notification-config__day--active", day_r14.activated)("notification-config__day--deactive", !day_r14.activated);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtextInterpolate1"](" ", day_r14.shortLabel[0], " ");
  }
}

function NotificationPage_div_10_div_13_div_20_Template(rf, ctx) {
  if (rf & 1) {
    const _r21 = _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵgetCurrentView"]();

    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](0, "div", 38)(1, "div", 39)(2, "span", 40);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](4, "div", 41)(5, "app-custom-timepicker", 25);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵlistener"]("timeSet", function NotificationPage_div_10_div_13_div_20_Template_app_custom_timepicker_timeSet_5_listener($event) {
      const restoredCtx = _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵrestoreView"](_r21);
      const i_r19 = restoredCtx.index;
      const ctx_r20 = _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵnextContext"](3);
      return _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵresetView"](ctx_r20.openPickerHourDialog("startAt", $event, i_r19));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](6, "div", 42);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelement"](7, "ion-icon", 27);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](8, "div", 41)(9, "app-custom-timepicker", 25);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵlistener"]("timeSet", function NotificationPage_div_10_div_13_div_20_Template_app_custom_timepicker_timeSet_9_listener($event) {
      const restoredCtx = _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵrestoreView"](_r21);
      const i_r19 = restoredCtx.index;
      const ctx_r22 = _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵnextContext"](3);
      return _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵresetView"](ctx_r22.openPickerHourDialog("endAt", $event, i_r19));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]()()()();
  }

  if (rf & 2) {
    const day_r18 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵclassProp"]("notification-config__day-row--disabled", !day_r18.activated);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵclassProp"]("notification-config__day-label--disabled", !day_r18.activated);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtextInterpolate1"](" ", day_r18.shortLabel, " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵclassProp"]("notification-config__hour-box--disabled", !day_r18.activated);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("isNotificationScreen", true)("valueHour", day_r18.startAt);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵclassProp"]("notification-config__hour-box--disabled", !day_r18.activated);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("isNotificationScreen", true)("valueHour", day_r18.endAt);
  }
}

function NotificationPage_div_10_div_13_Template(rf, ctx) {
  if (rf & 1) {
    const _r24 = _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵgetCurrentView"]();

    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](0, "div")(1, "div", 16)(2, "div", 17);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵpipe"](4, "translate");
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](5, "div", 18)(6, "ul", 19);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtemplate"](7, NotificationPage_div_10_div_13_li_7_Template, 2, 5, "li", 20);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](8, "div", 30)(9, "ion-row", 31);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelement"](10, "ion-col", 32);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](11, "ion-col", 33)(12, "span", 34);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](13);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵpipe"](14, "translate");
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelement"](15, "ion-col", 35);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](16, "ion-col", 33)(17, "span", 36);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](18);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵpipe"](19, "translate");
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtemplate"](20, NotificationPage_div_10_div_13_div_20_Template, 10, 13, "div", 37);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](21, "div", 28);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵlistener"]("click", function NotificationPage_div_10_div_13_Template_div_click_21_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵrestoreView"](_r24);
      const ctx_r23 = _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵresetView"](ctx_r23.disableCustomizeByDay());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](22);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵpipe"](23, "translate");
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]()()();
  }

  if (rf & 2) {
    const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵpipeBind1"](4, 6, "CONFIGS.NOTIFICATION.SELECT_DAYS"), " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("ngForOf", ctx_r2.weekDays);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵpipeBind1"](14, 8, "CONFIGS.NOTIFICATION.START"), " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵpipeBind1"](19, 10, "CONFIGS.NOTIFICATION.END"), " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("ngForOf", ctx_r2.weekDays);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵpipeBind1"](23, 12, "CONFIGS.NOTIFICATION.USE_SAME_TIME"), " ");
  }
}

function NotificationPage_div_10_Template(rf, ctx) {
  if (rf & 1) {
    const _r26 = _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵgetCurrentView"]();

    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](0, "div", 6)(1, "div", 7)(2, "div", 8);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelement"](3, "ion-icon", 9);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](4, "div", 10);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelement"](5, "div", 11);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵpipe"](6, "translate");
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](7, "div", 12);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](8);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵpipe"](9, "translate");
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](10, "div", 13)(11, "ion-toggle", 14);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵlistener"]("ionChange", function NotificationPage_div_10_Template_ion_toggle_ionChange_11_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵrestoreView"](_r26);
      const ctx_r25 = _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵresetView"](ctx_r25.togglePersistent($event));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtemplate"](12, NotificationPage_div_10_div_12_Template, 26, 17, "div", 15);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtemplate"](13, NotificationPage_div_10_div_13_Template, 24, 14, "div", 15);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]();
  }

  if (rf & 2) {
    const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵpropertyInterpolate"]("innerHTML", _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵpipeBind1"](6, 5, "CONFIGS.NOTIFICATION.ALERT_CONTINUOUS"), _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵsanitizeHtml"]);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵpipeBind1"](9, 7, "CONFIGS.NOTIFICATION.ALERT_CONTINUOUS_DESCRIPTION"), " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("checked", ctx_r0.activatedNotificationPersistent);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("ngIf", !ctx_r0.isCustomizeByDay);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("ngIf", ctx_r0.isCustomizeByDay);
  }
}

class NotificationPage {
  constructor(configsNotifications, apiService, authService, ngZoneService, actionSheetController, translateConfigService, debounceService, loadingService, notificatorService, logtronService) {
    this.configsNotifications = configsNotifications;
    this.apiService = apiService;
    this.authService = authService;
    this.ngZoneService = ngZoneService;
    this.actionSheetController = actionSheetController;
    this.translateConfigService = translateConfigService;
    this.debounceService = debounceService;
    this.loadingService = loadingService;
    this.notificatorService = notificatorService;
    this.logtronService = logtronService;
    this.weekDays = [];
    this.notificationConfig = null;
    this.activatedNotificationChecked = true;
    this.activatedNotificationPersistent = true;
    this.autoActivetDays = null;
    this.isCustomizeByDay = false;
    this.isOpenAccordion = true;
    this.refId = null;
    this.dayLabels = ['Segunda-feira', 'Terça-feira', 'Quarta-feira', 'Quinta-feira', 'Sexta-feira', 'Sábado', 'Domingo'];
    this.subscriptions = [];
  }

  ngOnInit() {
    this.initNoticationLoad();
  }

  initNoticationLoad() {
    const verfyPermission = this.verfyPermissionListenerNotification();

    if (!verfyPermission) {
      this.requestPermissionActionNotificationListener();
    }

    this.loadConfigNotifications();
    this.authService.getRefId().then(res => {
      this.refId = res;
    });
    this.setupDebounce();
  }

  ngOnDestroy() {
    this.subscriptions.forEach(s => s.unsubscribe());
  }

  togglePersistent(event) {
    this.ngZoneService.run(() => {
      const checked = event?.target?.checked;
      this.activatedNotificationPersistent = checked;
      this.notificationConfig.persistent = checked;
    });
    this.debounceService.notifyChange();
  }

  toggleNotification(value) {
    var _this = this;

    return (0,_Volumes_case_workspace_work_APPS_KA_APP_WORK_NOW_KA_PASS_V2_2_6_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* () {
      const checked = !value['target']['checked'];
      console.log('toggleNotification - page', checked);

      if (!checked) {
        yield _this.presentationReactiveOptions();
      } else {
        _this.loadingService.show(_this.translateConfigService.translate('CONFIGS.NOTIFICATION.TOGGLE_WAIT'), 'toggleNotification');

        _this.notificationConfig.activated = true;

        _this.debounceService.notifyChange();

        _this.loadingService.hide(0, 'toggleNotification');
      }
    })();
  }

  setupDebounce() {
    this.debounceService.setSaveCallback(() => {
      this.saveConfiguration();
    });
  } // Função para pegar o horário de início dos dias ativos


  getActiveDaysStartTime() {
    const activeDays = this.weekDays.filter(d => d.activated);

    if (activeDays.length > 0) {
      try {
        // Remove segundos se existirem
        const time = activeDays[0].startAt?.split(':').slice(0, 2).join(':');
        return time || '08:00';
      } catch (error) {
        return '08:00';
      }
    }

    return '08:00';
  } // Função para pegar o horário de fim dos dias ativos


  getActiveDaysEndTime() {
    const activeDays = this.weekDays.filter(d => d.activated);

    if (activeDays.length > 0) {
      try {
        // Remove segundos se existirem
        const time = activeDays[0].endAt?.split(':').slice(0, 2).join(':');
        return time || '18:00';
      } catch (error) {
        return '18:00';
      }
    }

    return '18:00';
  }

  enableCustomizeByDay() {
    this.isCustomizeByDay = true;
  }

  disableCustomizeByDay() {
    this.isCustomizeByDay = false;
  }

  isEnablePlugin() {
    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 {
          value: isEnabled
        } = yield capacitor_notify_persistent__WEBPACK_IMPORTED_MODULE_4__.NotifyPersistent.isEnabled();

        if (isEnabled) {
          _this2.disablePlugin();

          return;
        }

        _this2.enabledPlugin();
      } catch (error) {
        _this2.logtronService.logError('notification.isEnablePlugin', 'Error enabling plugin', error);

        console.log('Error plugin', error);
      }
    })();
  }

  presentationReactiveOptions() {
    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 header = _this3.translateConfigService.translate('CONFIGS.NOTIFICATION.REACTIVATE_TITLE');

      const textCancel = _this3.translateConfigService.translate('CONFIGS.NOTIFICATION.REACTIVATE_CANCEL'); // Pegue as opções já traduzidas do service


      const options = _this3.configsNotifications.autoActivateOptions(); // Monte os botões para o ActionSheet


      const buttons = options.map(option => ({
        role: '',
        text: option.label,
        cssClass: 'select-day',
        handler: () => {
          _this3.autoActivetDays = {
            autoReactivateDate: option.autoReactivateDate
          };
          _this3.notificationConfig.autoActivateDate = option.autoReactivateDate.toString();
          _this3.notificationConfig.activated = false;

          _this3.disablePlugin();

          _this3.debounceService.notifyChange();
        }
      })); // Adicione o botão de cancelar no final

      buttons.push({
        text: textCancel,
        role: 'cancel',
        cssClass: 'cancel',
        handler: function () {
          var _ref = (0,_Volumes_case_workspace_work_APPS_KA_APP_WORK_NOW_KA_PASS_V2_2_6_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* () {
            _this3.notificationConfig.autoActivateDate = null;
            _this3.notificationConfig.activated = false;

            _this3.debounceService.notifyChange();
          });

          return function handler() {
            return _ref.apply(this, arguments);
          };
        }()
      });
      const actionSheet = yield _this3.actionSheetController.create({
        header,
        mode: 'ios',
        buttons,
        cssClass: 'custom-sheet-notication-days-reactive'
      });
      yield actionSheet.present();
      const {
        role,
        data
      } = yield actionSheet.onWillDismiss();

      if (role && role === 'backdrop') {
        _this3.ngZoneService.run(() => {
          _this3.activatedNotificationChecked = true;
          _this3.isOpenAccordion = true;
        });
      } else if (role === 'cancel') {
        console.log('actionSheet', role);

        _this3.ngZoneService.run(() => {
          _this3.notificationConfig.activated = false;
          _this3.notificationConfig.autoActivateDate = null;
          _this3.autoActivetDays = {
            autoReactivateDate: null
          };
        });

        _this3.debounceService.notifyChange();
      }
    })();
  }

  loadConfigNotifications() {
    var _this4 = this;

    return (0,_Volumes_case_workspace_work_APPS_KA_APP_WORK_NOW_KA_PASS_V2_2_6_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* () {
      _this4.loadingService.show('Carregando', 'loadConfigNotifications');

      try {
        const notificationConfig = yield _this4.apiService.getNotificationsConfiguration().toPromise();
        setTimeout(() => {
          _this4.ngZoneService.run(() => {
            _this4.isOpenAccordion = notificationConfig.activated;
            _this4.activatedNotificationChecked = notificationConfig.activated;
            _this4.activatedNotificationPersistent = notificationConfig.persistent;

            if (_this4.activatedNotificationPersistent) {
              _this4.enabledPlugin();
            }

            if (notificationConfig.autoActivateDate) {
              _this4.autoActivetDays = {
                autoReactivateDate: moment__WEBPACK_IMPORTED_MODULE_3___default()(notificationConfig.autoActivateDate)
              };
            } else {
              _this4.autoActivetDays = null;
            }
          });
        }, 1);
        _this4.weekDays = _this4.dayLabels.map((label, idx) => {
          const p = notificationConfig.periodsConfig.find(pc => pc.dayOfWeek === idx + 1);
          return {
            label: _this4.configsNotifications.getLocalizedWeekdays()[idx].label,
            shortLabel: _this4.configsNotifications.getLocalizedWeekdays()[idx].shortLabel,
            activated: p?.activated ?? false,
            startAt: p?.startAt.substring(0, 5) ?? '00:00',
            endAt: p?.endAt.substring(0, 5) ?? '23:59',
            dayOfWeek: p.dayOfWeek
          };
        });
        _this4.notificationConfig = notificationConfig;

        _this4.loadingService.hide(0, 'loadConfigNotifications');
      } catch (error) {
        _this4.logtronService.logError('notification.loadConfigNotifications', 'Error loading notification configuration', error);

        _this4.isOpenAccordion = false;
        console.error('Erro ao carregar configuração', error);
        const notification = {
          title: _this4.translateConfigService.translate('CONFIGS.NOTIFICATION.ERROR_TITLE_GET_CONFIG'),
          message: _this4.translateConfigService.translate('CONFIGS.NOTIFICATION.ERROR_MESSAGE_GET_CONFIG') + ' ' + error?.status,
          type: 'error'
        };

        _this4.notificatorService.notify(notification);

        _this4.loadingService.hide(0, 'loadConfigNotifications');
      }
    })();
  }

  openPickerHourDialog(field, time, dayIndex) {
    console.log('🟣 openPickerHourDialog chamado:', field, time, dayIndex); // Se dayIndex não foi passado, é a tela padrão (aplicar a todos os dias ativos)

    if (dayIndex === undefined) {
      this.updateAllActiveDays(field, time);
    } else {
      // Se dayIndex foi passado, é a tela de personalização (aplicar apenas ao dia específico)
      this.updatePeriodConfig(field, time, dayIndex);
    } // Notifica o debounce service


    this.debounceService.notifyChange();
  } // Nova função para atualizar todos os dias ativos


  updateAllActiveDays(field, time) {
    const updatedTime = this.setSecondsTo59(time); // Corrigir: usar forEach corretamente

    this.weekDays.forEach((day, index) => {
      if (day.activated) {
        if (field === 'startAt') {
          this.weekDays[index].startAt = updatedTime;
        } else if (field === 'endAt') {
          this.weekDays[index].endAt = updatedTime;
        }
      }
    });
    console.log(`Horário ${field} aplicado a todos os dias ativos:`, updatedTime);
    const activeDays = this.weekDays.filter(d => d.activated).map(d => d.shortLabel);
  } // Função para atualizar o periodsConfig


  updatePeriodConfig(field, time, dayIndex) {
    // Valida se o índice está dentro do range
    if (dayIndex < 0 || dayIndex >= this.weekDays.length) {
      console.error('Índice do dia inválido:', dayIndex + 1);
      return;
    } // Ajusta os segundos para 59


    const updatedTime = this.setSecondsTo59(time); // Atualiza o weekDays com o novo horário

    if (field === 'startAt') {
      this.weekDays[dayIndex].startAt = updatedTime;
      console.log('this.weekDays[dayIndex].startAt', this.weekDays[dayIndex].startAt);
    } else if (field === 'endAt') {
      console.log('this.weekDays[dayIndex].endAt', this.weekDays[dayIndex].endAt);
      this.weekDays[dayIndex].endAt = updatedTime;
    }
    /* console.log('wekkesDays updatePeriodConfig', this.weekDays);
    console.log(`Horário ${field} atualizado para o dia ${dayIndex + 1}:, updatedTime`);*/

  }

  saveConfiguration() {
    var _this5 = 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 {
          activated,
          persistent,
          periodsConfig
        } = _this5.notificationConfig;

        if (!!activated && periodsConfig.length < -1) {
          return;
        }

        const body = {
          activated,
          persistent,
          defaultValue: false,
          autoActivateDate: activated ? null : _this5.autoActivetDays?.autoReactivateDate ?? null,
          periodsConfig: _this5.weekDays.map((d, idx) => ({
            dayOfWeek: d.dayOfWeek || idx + 1,
            activated: d.activated,
            startAt: _this5.setSecondsTo59(d.startAt),
            endAt: _this5.setSecondsTo59(d.endAt)
          }))
        };
        console.log('Salvando configuração com horários individuais:', body); // this.loadingService.show('Aguarde...', 'saveConfiguration');

        const response = yield _this5.apiService.updateNotificationsConfiguration(body).toPromise();
        setTimeout(() => {
          _this5.ngZoneService.run(() => {
            _this5.isOpenAccordion = response.activated;
            _this5.activatedNotificationChecked = response.activated;
            _this5.activatedNotificationPersistent = response.persistent;

            if (response.autoActivateDate) {
              _this5.autoActivetDays = {
                autoReactivateDate: moment__WEBPACK_IMPORTED_MODULE_3___default()(response.autoActivateDate)
              };
            } else {
              _this5.autoActivetDays = null;
            }
          });
        }, 1);
        const notification = {
          title: _this5.translateConfigService.translate('CONFIGS.NOTIFICATION.SUCCESS_TITLE_SAVE_CONFIG'),
          message: _this5.translateConfigService.translate('CONFIGS.NOTIFICATION.SUCCESS_MESSAGE_SAVE_CONFIG'),
          type: 'success'
        };

        _this5.notificatorService.notify(notification);

        _this5.loadingService.hide(0, 'saveConfiguration');
      } catch (error) {
        console.error('Erro ao salvar configuração', error);

        _this5.logtronService.logError('notification.saveConfiguration', 'Error saving notification configuration', error);

        const notification = {
          title: _this5.translateConfigService.translate('CONFIGS.NOTIFICATION.ERROR_TITLE_SAVE_CONFIG'),
          message: _this5.translateConfigService.translate('CONFIGS.NOTIFICATION.ERROR_MESSAGE_SAVE_CONFIG'),
          type: 'error'
        };

        _this5.notificatorService.notify(notification);
      }

      _this5.loadingService.hide(0, 'saveConfiguration');
    })();
  }

  toggleDayActivation(dayIndex) {
    console.log('🟣 toggleDayActivation chamado para dia:', dayIndex); // Inverte o estado do dia

    this.weekDays[dayIndex].activated = !this.weekDays[dayIndex].activated; // Notifica o debounce para salvar automaticamente

    this.debounceService.notifyChange();
    console.log(`Dia ${dayIndex} ${this.weekDays[dayIndex].activated ? 'ativado' : 'desativado'}`);
  }

  enabledPlugin() {
    var _this6 = 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 {
        yield capacitor_notify_persistent__WEBPACK_IMPORTED_MODULE_4__.NotifyPersistent.enablePlugin();

        _this6.ngZoneService.run(() => {});
      } catch (error) {
        console.log('error', error);
      } finally {
        if (_capacitor_core__WEBPACK_IMPORTED_MODULE_5__.Capacitor.getPlatform() === 'android') {
          _this6.requestPermissionActionNotificationListener();
        }
      }
    })();
  }

  disablePlugin() {
    var _this7 = 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 {
        yield capacitor_notify_persistent__WEBPACK_IMPORTED_MODULE_4__.NotifyPersistent.disablePlugin();

        _this7.ngZoneService.run(() => {});
      } catch (error) {
        console.log('error', error);
      } finally {
        if (_capacitor_core__WEBPACK_IMPORTED_MODULE_5__.Capacitor.getPlatform() === 'android') {
          _this7.requestPermissionActionNotificationListener();
        }
      }
    })();
  } // Função para ajustar segundos para 59


  setSecondsTo59(time) {
    if (!time) return '00:00:59';
    const m = moment__WEBPACK_IMPORTED_MODULE_3___default()(time, ['HH:mm', 'HH:mm:ss'], true);

    if (!m.isValid()) {
      const match = time.match(/^(\d{1,2}):(\d{2})$/);

      if (match) {
        return `${match[1].padStart(2, '0')}:${match[2]}:59`;
      }

      return '00:00:59';
    }

    m.seconds(59);
    return m.format('HH:mm:ss');
  }

  verfyPermissionListenerNotification() {
    var _this8 = 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 {
          receive: checkPermissionListener
        } = yield capacitor_notify_persistent__WEBPACK_IMPORTED_MODULE_4__.NotifyPersistent.checkPermissionActionNotificationListener();

        if (checkPermissionListener === 'granted') {
          return true; // Tem permissão para manipular notificação
        }
      } catch (error) {
        console.log('error', error);

        _this8.logtronService.logError('notification.verfyPermissionListenerNotification', 'Error verifying permission listener notification', error);

        return false;
      }
    })();
  }

  requestPermissionActionNotificationListener() {
    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 {
        receive: requestPermission
      } = yield capacitor_notify_persistent__WEBPACK_IMPORTED_MODULE_4__.NotifyPersistent.requestPermissionActionNotificationListener();

      if (requestPermission === 'granted') {
        return true;
      } else {
        return false;
      }
    })();
  }

}

NotificationPage.ɵfac = function NotificationPage_Factory(t) {
  return new (t || NotificationPage)(_angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_2__.ConfigsNotification), _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_2__.ApiService), _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_2__.AuthService), _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_2__.NgZoneService), _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵdirectiveInject"](_ionic_angular__WEBPACK_IMPORTED_MODULE_12__.ActionSheetController), _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_2__.TranslateConfigService), _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵdirectiveInject"](_debounce_service__WEBPACK_IMPORTED_MODULE_7__.DebounceService), _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_2__.LoadingService), _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_2__.NotificatorService), _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_2__.LogService));
};

NotificationPage.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵdefineComponent"]({
  type: NotificationPage,
  selectors: [["app-notification"]],
  decls: 11,
  vars: 11,
  consts: [[3, "title", "refresh"], [1, "notification-config"], [1, "notification-config__title"], [1, "notification-config__title-text"], [3, "autoActivetDays", "isOpenAccordion", "checked", "toggle", "presentationReactiveOptions"], ["customContent", "", 4, "ngIf"], ["customContent", ""], [1, "notification-config__card", "notification-config__card--persistent"], [1, "notification-config__icon"], ["slot", "start", "name", "alert-circle"], [1, "notification-config__content"], [1, "notification-config__card-title", 3, "innerHTML"], [1, "notification-config__card-description"], [1, "notification-config__toggle"], [3, "checked", "ionChange"], [4, "ngIf"], [1, "notification-config__card", "notification-config__card--select-days"], [1, "notification-config__tile"], [1, "notification-config__list-days"], [1, "notification-config__days-list"], ["class", "notification-config__day", 3, "notification-config__day--active", "notification-config__day--deactive", "click", 4, "ngFor", "ngForOf"], [1, "notification-config__hours"], [1, "notification-config__hour-group"], [1, "notification-config__hour-label"], [1, "notification-config__hour-box"], [3, "isNotificationScreen", "valueHour", "timeSet"], [1, "notification-config__hour-arrow"], ["name", "chevron-forward-outline"], [1, "notification-config__customize", 3, "click"], [1, "notification-config__day", 3, "click"], [1, "notification-config__days-table"], [2, "width", "100%"], ["size", "4"], ["size", "3"], [1, "notification-config__days-header-label-start"], ["size", "2"], [1, "notification-config__days-header-label-end"], ["class", "notification-config__day-row", 3, "notification-config__day-row--disabled", 4, "ngFor", "ngForOf"], [1, "notification-config__day-row"], [1, "line---notification-config__day-row", 2, "display", "flex", "align-items", "center", "gap", "0.3rem", "width", "100%", "margin", "0 1em"], [1, "notification-config__day-label"], [1, "notification-config__hour-box", "expanded"], [1, "notification-config__hour-arrow", "expanded"]],
  template: function NotificationPage_Template(rf, ctx) {
    if (rf & 1) {
      _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelement"](0, "app-header", 0);
      _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵpipe"](1, "translate");
      _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](2, "ion-content")(3, "div", 1)(4, "div", 2)(5, "ion-text")(6, "p", 3);
      _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](7);
      _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵpipe"](8, "translate");
      _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]()()();
      _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](9, "app-accordion", 4);
      _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵlistener"]("toggle", function NotificationPage_Template_app_accordion_toggle_9_listener($event) {
        return ctx.toggleNotification($event);
      })("presentationReactiveOptions", function NotificationPage_Template_app_accordion_presentationReactiveOptions_9_listener() {
        return ctx.presentationReactiveOptions();
      });
      _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtemplate"](10, NotificationPage_div_10_Template, 14, 9, "div", 5);
      _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]()()();
    }

    if (rf & 2) {
      _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("title", _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵpipeBind1"](1, 7, "CONFIGS.NOTIFICATION.TITLE"))("refresh", false);
      _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](7);
      _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵpipeBind1"](8, 9, "CONFIGS.NOTIFICATION.TITLE"), " ");
      _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](2);
      _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("autoActivetDays", ctx.autoActivetDays)("isOpenAccordion", ctx.isOpenAccordion)("checked", ctx.activatedNotificationChecked);
      _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](1);
      _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("ngIf", (ctx.notificationConfig == null ? null : ctx.notificationConfig.periodsConfig == null ? null : ctx.notificationConfig.periodsConfig.length) > 0);
    }
  },
  dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_8__.NgForOf, _angular_common__WEBPACK_IMPORTED_MODULE_8__.NgIf, _ionic_angular__WEBPACK_IMPORTED_MODULE_12__.IonCol, _ionic_angular__WEBPACK_IMPORTED_MODULE_12__.IonContent, _ionic_angular__WEBPACK_IMPORTED_MODULE_12__.IonIcon, _ionic_angular__WEBPACK_IMPORTED_MODULE_12__.IonRow, _ionic_angular__WEBPACK_IMPORTED_MODULE_12__.IonText, _ionic_angular__WEBPACK_IMPORTED_MODULE_12__.IonToggle, _ionic_angular__WEBPACK_IMPORTED_MODULE_12__.BooleanValueAccessor, _shared_components_header_header_component__WEBPACK_IMPORTED_MODULE_9__.HeaderComponent, _shared_components_customtimepicker_customtimepicker_component__WEBPACK_IMPORTED_MODULE_10__.CustomTimepickerComponent, _shared_components_accordion_accordion_component__WEBPACK_IMPORTED_MODULE_11__.AccordionComponent, _ngx_translate_core__WEBPACK_IMPORTED_MODULE_13__.TranslatePipe],
  styles: ["ion-content[_ngcontent-%COMP%] {\n  --background: #f9f9f9;\n}\n\n.w-100[_ngcontent-%COMP%] {\n  width: 100%;\n}\n\n.notification-config[_ngcontent-%COMP%] {\n  padding: 1rem;\n}\n\n.notification-config__title[_ngcontent-%COMP%] {\n  font-size: 1.4rem;\n  font-weight: 600;\n  margin-bottom: 1rem;\n  color: var(--ion-color-dark);\n}\n\n.notification-config__title[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]   span[_ngcontent-%COMP%] {\n  font-weight: bold;\n}\n\n.notification-config__title-text[_ngcontent-%COMP%] {\n  margin: 0;\n  font-size: 1.2rem;\n  font-weight: 500;\n}\n\n.notification-config__card[_ngcontent-%COMP%] {\n  display: flex;\n  align-items: center;\n  border-radius: 8px;\n  justify-content: space-between;\n  padding: 0 8px;\n}\n\n.notification-config__card--persistent[_ngcontent-%COMP%] {\n  background: #f7f7f7;\n}\n\n.notification-config__card--select-days[_ngcontent-%COMP%] {\n  flex-direction: column;\n  align-items: flex-start;\n  margin-top: 1em;\n}\n\n.notification-config__tile[_ngcontent-%COMP%] {\n  margin-right: 1rem;\n  font-weight: bold;\n  color: #1e1e1e;\n}\n\n.notification-config__list-days[_ngcontent-%COMP%] {\n  margin: 1em 0;\n  width: 100%;\n}\n\n.notification-config__days-list[_ngcontent-%COMP%] {\n  display: flex;\n  padding: 0;\n  margin: 0;\n  list-style: none;\n  width: 100%;\n  justify-content: space-between;\n}\n\n.notification-config__day[_ngcontent-%COMP%] {\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  width: 2rem;\n  height: 2rem;\n  border-radius: 50%;\n  background: transparent;\n  font-weight: bold;\n  border: solid 1px;\n  font-size: 1rem;\n  -webkit-user-select: none;\n     -moz-user-select: none;\n          user-select: none;\n  cursor: pointer;\n  transition: all 0.2s;\n}\n\n.notification-config__day--active[_ngcontent-%COMP%] {\n  border-color: #6cc13b;\n  color: #6cc13b;\n}\n\n.notification-config__day--deactive[_ngcontent-%COMP%] {\n  color: #999999;\n  border-color: #999999;\n  background: transparent;\n}\n\n.notification-config__icon[_ngcontent-%COMP%] {\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  flex-shrink: 0;\n}\n\n.notification-config__icon[_ngcontent-%COMP%]   ion-icon[_ngcontent-%COMP%] {\n  font-size: 28px;\n  color: #d9d9d9;\n}\n\n.notification-config__content[_ngcontent-%COMP%] {\n  flex: 1;\n  display: flex;\n  flex-direction: column;\n  justify-content: center;\n  padding: 0.5em 0.3em;\n}\n\n.notification-config__card-title[_ngcontent-%COMP%] {\n  font-size: 1rem;\n  font-weight: 600;\n  margin-bottom: 0.25rem;\n  color: var(--ion-color-dark);\n}\n\n.notification-config__card-description[_ngcontent-%COMP%] {\n  font-size: 0.63rem;\n  color: var(--ion-color-dark);\n}\n\n.notification-config__toggle[_ngcontent-%COMP%] {\n  display: flex;\n  flex-direction: column;\n  justify-content: center;\n}\n\n.notification-config__toggle[_ngcontent-%COMP%]   ion-toggle[_ngcontent-%COMP%] {\n  display: flex;\n  align-items: center;\n  --handle-height: 1.4em;\n  --handle-width: 1.4em;\n  width: 2.7em;\n  --handle-max-height: auto;\n  contain: none;\n  overflow: visible;\n}\n\n.notification-config__toggle[_ngcontent-%COMP%]   ion-toggle[_ngcontent-%COMP%]::part(track), .notification-config__toggle[_ngcontent-%COMP%]   ion-toggle.toggle-checked[_ngcontent-%COMP%]::part(track) {\n  height: 14px;\n}\n\n.notification-config__toggle[_ngcontent-%COMP%]   ion-toggle.toggle-checked[_ngcontent-%COMP%]::part(handle) {\n  background: var(--ion-color-primary) !important;\n}\n\n.notification-config__toggle[_ngcontent-%COMP%]   ion-toggle.toggle-checked[_ngcontent-%COMP%]::part(track) {\n  background-color: #c7e3af;\n}\n\n.notification-config__hours[_ngcontent-%COMP%] {\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  gap: 0.5rem;\n  margin: 1rem 1em 2em 1em;\n}\n\n.notification-config__hour-group[_ngcontent-%COMP%] {\n  display: flex;\n  flex-direction: column;\n  align-items: center;\n  flex: 1;\n}\n\n.notification-config__hour-label[_ngcontent-%COMP%] {\n  font-size: 1em;\n  color: #1e1e1e;\n  font-weight: 600;\n  margin-bottom: 0.3rem;\n  display: flex;\n  justify-content: flex-start;\n  width: 100%;\n  padding: 0 0.8em;\n}\n\n.notification-config__hour-box[_ngcontent-%COMP%] {\n  background: #f7f7f7;\n  border-radius: 4px;\n  font-size: 2.2em;\n  color: #6cc13b;\n  font-weight: 400;\n  letter-spacing: 0px;\n  min-width: 114px;\n  min-height: 55px;\n  text-align: center;\n  display: flex;\n  align-items: center;\n  justify-content: center;\n}\n\n.notification-config__hour-box--disabled[_ngcontent-%COMP%] {\n  background: #f3f3f3;\n  color: #bdbdbd;\n}\n\n.notification-config__hour-arrow[_ngcontent-%COMP%] {\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  color: #d3d3d3;\n  font-size: 2.5rem;\n  height: 100%;\n  position: relative;\n  top: 0.34em;\n}\n\n.notification-config__hour-arrow[_ngcontent-%COMP%]   ion-icon[_ngcontent-%COMP%] {\n  font-size: 2.3rem;\n  color: #d3d3d3;\n}\n\n.notification-config__days-table[_ngcontent-%COMP%] {\n  display: flex;\n  flex-direction: column;\n  gap: 0.8rem;\n  align-items: center;\n  margin: 0 auto;\n  padding: 0 0.3em;\n}\n\n.notification-config__days-header[_ngcontent-%COMP%] {\n  display: flex;\n  gap: 1em;\n  margin: 10px 0 -10px;\n  width: 95%;\n  justify-content: center;\n  padding: 0 0.5em;\n  align-items: center;\n}\n\n.notification-config__days-header-center[_ngcontent-%COMP%] {\n  width: 100%;\n  height: 30px;\n}\n\n.notification-config__days-header-label-end[_ngcontent-%COMP%], .notification-config__days-header-label-start[_ngcontent-%COMP%] {\n  font-weight: 600;\n  font-size: 1em;\n  color: #1e1e1e;\n}\n\n.notification-config__day-row[_ngcontent-%COMP%] {\n  display: flex;\n  justify-content: space-between;\n  align-items: center;\n  width: 100%;\n}\n\n.notification-config__day-row--disabled[_ngcontent-%COMP%] {\n  opacity: 0.3;\n  pointer-events: none;\n}\n\n.notification-config__day-label[_ngcontent-%COMP%] {\n  flex: 1;\n  font-size: 1.34rem;\n  font-weight: 600;\n  color: #6cc13b;\n  text-align: right;\n  display: flex;\n}\n\n.notification-config__day-label--disabled[_ngcontent-%COMP%] {\n  color: #bdbdbd;\n}\n\n.notification-config__day-row[_ngcontent-%COMP%]   .notification-config__hour-box[_ngcontent-%COMP%] {\n  background: #f7f7f7;\n  border-radius: 4px;\n  font-size: 2.2em;\n  color: #6cc13b;\n  font-weight: 400;\n  letter-spacing: 0px;\n  min-width: 100px;\n  min-height: 45px;\n  text-align: center;\n  display: flex;\n  align-items: center;\n  justify-content: center;\n}\n\n.notification-config__day-row[_ngcontent-%COMP%]   .notification-config__hour-box--disabled[_ngcontent-%COMP%] {\n  background: #f3f3f3;\n  color: #bdbdbd;\n}\n\n.notification-config__hour-box.expanded[_ngcontent-%COMP%] {\n  min-width: 98px !important;\n  min-height: 45px !important;\n  font-size: 24px !important;\n}\n\n.notification-config__day-row[_ngcontent-%COMP%]   .notification-config__hour-arrow[_ngcontent-%COMP%] {\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  color: #d3d3d3;\n  font-size: 2.5rem;\n  height: 100%;\n  position: relative;\n  top: 0.34em;\n}\n\n.notification-config__day-row[_ngcontent-%COMP%]   .notification-config__hour-arrow[_ngcontent-%COMP%]   ion-icon[_ngcontent-%COMP%] {\n  font-size: 2.3rem;\n  color: #d3d3d3;\n}\n\n.notification-config__day-row[_ngcontent-%COMP%]   .notification-config__hour-arrow.expanded[_ngcontent-%COMP%] {\n  top: 0;\n}\n\n.notification-config__day-row[_ngcontent-%COMP%]   .notification-config__hour-arrow.expanded[_ngcontent-%COMP%]   ion-icon[_ngcontent-%COMP%] {\n  font-size: 1.7rem !important;\n  top: 0 !important;\n}\n\n.notification-config__customize[_ngcontent-%COMP%] {\n  margin: 1em auto;\n  display: flex;\n  justify-content: center;\n  align-items: center;\n  color: #6cc13b;\n  border: 2px solid #6cb52d;\n  border-radius: 4px;\n  font-size: 0.8em;\n  font-weight: 800;\n  padding: 0.3rem 0.6rem;\n  width: -webkit-fit-content;\n  width: -moz-fit-content;\n  width: fit-content;\n  cursor: pointer;\n  transition: background 0.2s;\n}\n\n.notification-config__customize[_ngcontent-%COMP%]:hover {\n  background: #eafbe2;\n}\n\n@keyframes slideDown {\n  from {\n    transform: translateY(-100%);\n    opacity: 0;\n  }\n  to {\n    transform: translateY(0);\n    opacity: 1;\n  }\n}\n/*# sourceMappingURL=data:application/json;base64,[encoded data, 12896 characters] */"]
});

/***/ })

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