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

/***/ 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' });


/***/ }),

/***/ 91056:
/*!******************************************************************************!*\
  !*** ./src/app/shared/services/init.register.has-company.storage.service.ts ***!
  \******************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "InitRegisterHasCompanyStorageService": () => (/* binding */ InitRegisterHasCompanyStorageService)
/* harmony export */ });
/* harmony import */ var _Volumes_case_workspace_work_APPS_KA_APP_WORK_NOW_KA_PASS_V2_2_6_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js */ 71670);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ 45449);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_angular_core__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _simple_storage_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./simple.storage.service */ 19725);



class InitRegisterHasCompanyStorageService {
  constructor(simpleStorageService) {
    this.simpleStorageService = simpleStorageService;
    this.KEY = 'REGISTER_HAS_COMPANY';
    this.cache = null; // Cache em memória opcional
  }

  set(data) {
    this.simpleStorageService.set(this.KEY, data);
    this.cache = data; // Atualiza o cache
  }

  get() {
    const data = this.simpleStorageService.get(this.KEY);
    this.cache = data; // Atualiza o cache

    return data;
  }

  remove() {
    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* () {
      _this.simpleStorageService.remove(_this.KEY);

      _this.cache = null; // Limpa o cache
    })();
  }

}

InitRegisterHasCompanyStorageService.ɵfac = function InitRegisterHasCompanyStorageService_Factory(t) {
  return new (t || InitRegisterHasCompanyStorageService)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](_simple_storage_service__WEBPACK_IMPORTED_MODULE_2__.SimpleStorageService));
};

InitRegisterHasCompanyStorageService.ɵprov = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineInjectable"]({
  token: InitRegisterHasCompanyStorageService,
  factory: InitRegisterHasCompanyStorageService.ɵfac,
  providedIn: 'root'
});

/***/ }),

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

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "SimpleStorageService": () => (/* binding */ SimpleStorageService)
/* harmony export */ });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ 45449);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_angular_core__WEBPACK_IMPORTED_MODULE_0__);

class SimpleStorageService {
    constructor() { }
    set(key, value) {
        localStorage.setItem(key, JSON.stringify(value));
    }
    get(key) {
        const item = JSON.parse(localStorage.getItem(key));
        return item ?? null;
    }
    remove(key) {
        localStorage.removeItem(key);
    }
    clear() {
        localStorage.clear();
    }
}
SimpleStorageService.ɵfac = function SimpleStorageService_Factory(t) { return new (t || SimpleStorageService)(); };
SimpleStorageService.ɵprov = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"]({ token: SimpleStorageService, factory: SimpleStorageService.ɵfac, providedIn: 'root' });


/***/ }),

/***/ 98030:
/*!***************************************!*\
  !*** ./src/app/start/start.module.ts ***!
  \***************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "StartPageModule": () => (/* binding */ StartPageModule)
/* 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 _start_page__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./start.page */ 95104);
/* 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_legal_modal_legal_modal_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../shared/components/legal-modal/legal-modal.component */ 19338);
/* harmony import */ var _shared_components_permissions_modal_permissions_modal_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../shared/components/permissions-modal/permissions-modal.component */ 99476);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @angular/core */ 45449);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_angular_core__WEBPACK_IMPORTED_MODULE_5__);







const routes = [
    {
        path: '',
        component: _start_page__WEBPACK_IMPORTED_MODULE_1__.StartPage
    }
];
class StartPageModule {
}
StartPageModule.ɵfac = function StartPageModule_Factory(t) { return new (t || StartPageModule)(); };
StartPageModule.ɵmod = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵdefineNgModule"]({ type: StartPageModule });
StartPageModule.ɵinj = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵdefineInjector"]({ imports: [src_app_shared_module_shared_module_module__WEBPACK_IMPORTED_MODULE_2__.SharedModuleModule, _angular_router__WEBPACK_IMPORTED_MODULE_0__.RouterModule.forChild(routes)] });
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵsetNgModuleScope"](StartPageModule, { declarations: [_start_page__WEBPACK_IMPORTED_MODULE_1__.StartPage, _shared_components_legal_modal_legal_modal_component__WEBPACK_IMPORTED_MODULE_3__.LegalModalComponent, _shared_components_permissions_modal_permissions_modal_component__WEBPACK_IMPORTED_MODULE_4__.PermissionsModalComponent], imports: [src_app_shared_module_shared_module_module__WEBPACK_IMPORTED_MODULE_2__.SharedModuleModule, _angular_router__WEBPACK_IMPORTED_MODULE_0__.RouterModule] }); })();


/***/ }),

/***/ 95104:
/*!*************************************!*\
  !*** ./src/app/start/start.page.ts ***!
  \*************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "StartPage": () => (/* binding */ StartPage)
/* 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 _capacitor_app__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @capacitor/app */ 93253);
/* harmony import */ var _shared_components_modais__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @shared/components/modais */ 90340);
/* harmony import */ var _shared_components_modais_environment_switcher_modal_environment_switcher_modal_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @shared/components/modais/environment-switcher-modal/environment-switcher-modal.component */ 71609);
/* 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__);
/* harmony import */ var _shared_services__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @shared/services */ 17253);
/* harmony import */ var _ionic_angular__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @ionic/angular */ 93819);
/* harmony import */ var _shared_services_focus_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @shared/services/focus.service */ 37763);
/* harmony import */ var _shared_services_init_register_has_company_storage_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @shared/services/init.register.has-company.storage.service */ 91056);
/* 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_full_logo_full_logo_component__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../shared/components/full-logo/full-logo.component */ 33159);
/* harmony import */ var _shared_components_privacy_footer_privacy_footer_component__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../shared/components/privacy-footer/privacy-footer.component */ 71237);
/* harmony import */ var _shared_components_translate_btn_translate_btn_component__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../shared/components/translate-btn/translate-btn.component */ 17029);
/* harmony import */ var _ngx_translate_core__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @ngx-translate/core */ 38699);















function StartPage_div_5_Template(rf, ctx) {
  if (rf & 1) {
    const _r2 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵgetCurrentView"]();

    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](0, "div", 13);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵlistener"]("click", function StartPage_div_5_Template_div_click_0_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵrestoreView"](_r2);
      const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵresetView"](ctx_r1.onBadgeTap());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
  }

  if (rf & 2) {
    const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵclassProp"]("env-dev", ctx_r0.currentEnvironmentType === "dev")("env-homol", ctx_r0.currentEnvironmentType === "homol");
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtextInterpolate1"](" ", ctx_r0.currentEnvironmentType === "dev" ? "DEV" : "HOMOL", "\n");
  }
}

class StartPage {
  constructor(legalModalService, notificatorService, menuController, navigationService, insomniaService, translateConfigService, modalCtrl, focusService, initRegisterHasCompanyStorageService, loadingService, environmentSwitcher, storageService) {
    this.legalModalService = legalModalService;
    this.notificatorService = notificatorService;
    this.menuController = menuController;
    this.navigationService = navigationService;
    this.insomniaService = insomniaService;
    this.translateConfigService = translateConfigService;
    this.modalCtrl = modalCtrl;
    this.focusService = focusService;
    this.initRegisterHasCompanyStorageService = initRegisterHasCompanyStorageService;
    this.loadingService = loadingService;
    this.environmentSwitcher = environmentSwitcher;
    this.storageService = storageService;
    this.isOpen = false;
    this.currentEnvironmentType = 'dev'; // Será atualizado no ionViewWillEnter
    // Easter egg para trocar ambiente -

    this.tapCount = 0; // Taps

    this.TAP_THRESHOLD = 7; // 7 toques para ativar
    // Easter egg para reativar debug console

    this.badgeTapCount = 0; // debug console

    this.BADGE_TAP_THRESHOLD = 20; // 5 toques no badge

    this.ionViewWillEnter = () => {
      this.allowItToRest();
      this.setDisableRightSideMenu(); // Atualizar o tipo de ambiente para o badge

      const currentEnv = this.environmentSwitcher.getCurrentEnvironment();
      this.currentEnvironmentType = currentEnv.type;
    };

    this.checkUniqueDeviceId = () => {
      this.navigationService.forward(['/identity-validator']);
    };

    this.setDisableRightSideMenu = () => {
      this.menuController.enable(false).then(this.onSetDisableRightSideMenuSuccessResponse).catch(this.onSetDisableRightSideMenuErrorResponse);
    };

    this.onSetDisableRightSideMenuSuccessResponse = response => {};

    this.onSetDisableRightSideMenuErrorResponse = response => {
      console.log('onSetDisableRightSideMenuErrorResponse');
      console.log(response);
    };

    this.openLegalModal = () => {
      this.modalLegal();
    };

    this.onRejectCallback = () => {
      this.legalModalService.hideModal();
      const message = this.translateConfigService.translate('PG_START_TOAST_ACCEPT');
      const title = this.translateConfigService.translate('PG_START_TOAST_NOTICE_TITLE');
      const notification = {
        title,
        message,
        type: 'error'
      };
      this.notificatorService.notify(notification);
    };

    this.onSuccessCallback = () => {
      this.checkUniqueDeviceId();
    };

    this.allowItToRest = () => {
      this.insomniaService.allowSleepAgain().then(this.allowItToRestSuccessResponse).catch(this.allowItToRestErrorResponse);
    };

    this.allowItToRestSuccessResponse = () => {};

    this.allowItToRestErrorResponse = response => {
      console.log('allowItToRestErrorResponse');
      console.log(response);
    };

    this.languageCurrent = this.translateConfigService.languageCurrent;
  }

  ionViewDidEnter() {
    this.focusService.applyFocusQuerySelector('start', 100);
    this.initRegisterHasCompanyStorageService.remove();
  }

  onStart() {
    this.openLegalModal();
  }

  modalLegal() {
    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 modal = yield _this.modalCtrl.create({
        component: _shared_components_modais__WEBPACK_IMPORTED_MODULE_2__.LegalModalComponent,
        cssClass: 'legal-modal-start',
        componentProps: {}
      });
      yield modal.present();
      const {
        data
      } = yield modal.onDidDismiss();

      if (data?.accept) {
        // await close modal and next page.
        setTimeout(() => {
          _this.navigationService.forward(['/identity-validator']);
        }, 400);
      } else {
        if (data) {
          _this.onRejectCallback();
        }
      }
    })();
  } // Easter egg: 7 toques no logo para abrir seletor de ambiente - ()
  // IMPORTANTE: Só funciona em DEV e HOMOL, bloqueado em PROD


  onLogoTap() {
    // Bloquear em produção
    const currentEnv = this.environmentSwitcher.getCurrentEnvironment();

    if (currentEnv.production && currentEnv.type === 'prod') {
      // Em produção, não fazer nada (easter egg desabilitado)
      console.log('[EnvironmentSwitcher] Easter egg desabilitado em produção'); // Opcional: mostrar mensagem apenas se o usuário insistir (10+ toques)

      this.tapCount++;

      if (this.tapCount >= 10) {
        console.log('[EnvironmentSwitcher] Easter egg desabilitado em produção');
        this.tapCount = 0;
      }

      return;
    }

    this.tapCount++; // Reset após 2 segundos de inatividade

    clearTimeout(this.tapTimeout);
    this.tapTimeout = setTimeout(() => {
      this.tapCount = 0;
    }, 2000); // Ativa o seletor após 7 toques

    if (this.tapCount >= this.TAP_THRESHOLD) {
      this.tapCount = 0;
      clearTimeout(this.tapTimeout);
      this.openEnvironmentSwitcher();
    }
  }

  openEnvironmentSwitcher() {
    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* () {
      const modal = yield _this2.modalCtrl.create({
        component: _shared_components_modais_environment_switcher_modal_environment_switcher_modal_component__WEBPACK_IMPORTED_MODULE_3__.EnvironmentSwitcherModalComponent,
        cssClass: 'environment-switcher-modal',
        backdropDismiss: true
      });
      yield modal.present();
      const {
        data
      } = yield modal.onDidDismiss();

      if (data?.selected) {
        yield _this2.switchEnvironmentAndClearStorage(data.environment);
      }
    })();
  }

  switchEnvironmentAndClearStorage(envType) {
    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* () {
      console.log(`[StartPage] Iniciando troca para: ${envType}`);

      _this3.loadingService.show('Trocando ambiente...', 'switch-environment');

      try {
        // Limpar todo o storage
        yield _this3.storageService.startStorage();
        console.log('[StartPage] Storage inicializado');
        yield _this3.storageService.clear();
        console.log('[StartPage] Storage limpo'); // Limpar localStorage

        localStorage.clear();
        console.log('[StartPage] localStorage limpo'); // Remover listeners do app

        yield _capacitor_app__WEBPACK_IMPORTED_MODULE_1__.App.removeAllListeners();
        console.log('[StartPage] Listeners removidos'); // Trocar o ambiente

        yield _this3.environmentSwitcher.switchEnvironment(envType);
        console.log('[StartPage] Ambiente trocado no serviço');

        _this3.loadingService.hide(null, 'switch-environment'); // Notificar sucesso


        const envNames = {
          dev: 'Desenvolvimento',
          homol: 'Homologação',
          prod: 'Produção'
        };
        const notification = {
          title: 'Ambiente Alterado',
          message: `Ambiente trocado para ${envNames[envType]}. Recarregando...`,
          type: 'success',
          timeout: 2000
        };

        _this3.notificatorService.notify(notification); // Recarregar a aplicação após 500ms (mais rápido)


        console.log('[StartPage] Recarregando app em 500ms...');
        setTimeout(() => {
          console.log('[StartPage] Recarregando agora!');
          window.location.reload();
        }, 500);
      } catch (error) {
        console.error('[StartPage] Erro ao trocar ambiente:', error);

        _this3.loadingService.hide(null, 'switch-environment');

        const notification = {
          title: 'Erro',
          message: 'Erro ao trocar ambiente',
          type: 'error',
          timeout: 3000
        };

        _this3.notificatorService.notify(notification);
      }
    })();
  } // Easter egg: 5 toques no badge para reativar debug console
  // IMPORTANTE: Só funciona em DEV e HOMOL, bloqueado em PROD


  onBadgeTap() {
    // Bloquear em produção
    const currentEnv = this.environmentSwitcher.getCurrentEnvironment();

    if (currentEnv.production && currentEnv.type === 'prod') {
      console.log('[DebugConsole] Easter egg desabilitado em produção');
      return;
    }

    this.badgeTapCount++;
    clearTimeout(this.badgeTapTimeout);
    this.badgeTapTimeout = setTimeout(() => {
      this.badgeTapCount = 0;
    }, 2000);

    if (this.badgeTapCount >= this.BADGE_TAP_THRESHOLD) {
      this.badgeTapCount = 0;
      clearTimeout(this.badgeTapTimeout); // Reativar debug console

      localStorage.setItem('ka_debug_console_enabled', 'true');
      const notification = {
        title: 'Debug Console',
        message: 'Debug Console reativado! Recarregue a página.',
        type: 'success',
        timeout: 3000
      };
      this.notificatorService.notify(notification);
      setTimeout(() => {
        window.location.reload();
      }, 1000);
    }
  }

}

StartPage.ɵfac = function StartPage_Factory(t) {
  return new (t || StartPage)(_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_5__.LegalModalService), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_5__.NotificatorService), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdirectiveInject"](_ionic_angular__WEBPACK_IMPORTED_MODULE_12__.MenuController), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_5__.NavigationService), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_5__.InsomniaService), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_5__.TranslateConfigService), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdirectiveInject"](_ionic_angular__WEBPACK_IMPORTED_MODULE_12__.ModalController), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdirectiveInject"](_shared_services_focus_service__WEBPACK_IMPORTED_MODULE_6__.FocusService), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdirectiveInject"](_shared_services_init_register_has_company_storage_service__WEBPACK_IMPORTED_MODULE_7__.InitRegisterHasCompanyStorageService), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_5__.LoadingService), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_5__.EnvironmentSwitcherService), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_5__.StorageService));
};

StartPage.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdefineComponent"]({
  type: StartPage,
  selectors: [["app-start"]],
  decls: 24,
  vars: 7,
  consts: [[1, "ion-no-border"], ["id", "start", "tabindex", "0"], ["slot", "end", 1, "btn-translate"], ["class", "environment-badge", 3, "env-dev", "env-homol", "click", 4, "ngIf"], [1, "start-page"], [1, "ion-margin-vertical"], [2, "cursor", "pointer", 3, "click"], [1, "flex-auto"], [1, "welcome-message"], ["tabindex", "1", 3, "innerHTML"], ["size", "12"], [1, "start-button-holder"], ["type", "button", 3, "click"], [1, "environment-badge", 3, "click"]],
  template: function StartPage_Template(rf, ctx) {
    if (rf & 1) {
      _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](0, "ion-header", 0);
      _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelement"](1, "p", 1);
      _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](2, "ion-toolbar")(3, "ion-buttons", 2);
      _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelement"](4, "app-translate-btn");
      _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()()();
      _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtemplate"](5, StartPage_div_5_Template, 2, 5, "div", 3);
      _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](6, "ion-content", 4)(7, "ion-grid")(8, "ion-row")(9, "ion-col", 5)(10, "div", 6);
      _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵlistener"]("click", function StartPage_Template_div_click_10_listener() {
        return ctx.onLogoTap();
      });
      _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelement"](11, "app-full-logo");
      _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()()();
      _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](12, "ion-row", 7)(13, "ion-col", 5)(14, "div", 8)(15, "ion-text");
      _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelement"](16, "p", 9);
      _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵpipe"](17, "translate");
      _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()()();
      _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](18, "ion-col", 10)(19, "div", 11)(20, "button", 12);
      _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵlistener"]("click", function StartPage_Template_button_click_20_listener() {
        return ctx.onStart();
      });
      _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](21);
      _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵpipe"](22, "translate");
      _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()()()()();
      _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelement"](23, "app-privacy-footer");
      _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
    }

    if (rf & 2) {
      _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](5);
      _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngIf", ctx.currentEnvironmentType !== "prod");
      _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](11);
      _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("innerHTML", _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵpipeBind1"](17, 3, "PG_START_WELCOME"), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵsanitizeHtml"]);
      _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](5);
      _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵpipeBind1"](22, 5, "PG_START_BTN_START"));
    }
  },
  dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_8__.NgIf, _ionic_angular__WEBPACK_IMPORTED_MODULE_12__.IonButtons, _ionic_angular__WEBPACK_IMPORTED_MODULE_12__.IonCol, _ionic_angular__WEBPACK_IMPORTED_MODULE_12__.IonContent, _ionic_angular__WEBPACK_IMPORTED_MODULE_12__.IonGrid, _ionic_angular__WEBPACK_IMPORTED_MODULE_12__.IonHeader, _ionic_angular__WEBPACK_IMPORTED_MODULE_12__.IonRow, _ionic_angular__WEBPACK_IMPORTED_MODULE_12__.IonText, _ionic_angular__WEBPACK_IMPORTED_MODULE_12__.IonToolbar, _shared_components_full_logo_full_logo_component__WEBPACK_IMPORTED_MODULE_9__.FullLogoComponent, _shared_components_privacy_footer_privacy_footer_component__WEBPACK_IMPORTED_MODULE_10__.PrivacyFooterComponent, _shared_components_translate_btn_translate_btn_component__WEBPACK_IMPORTED_MODULE_11__.TranslateBtnComponent, _ngx_translate_core__WEBPACK_IMPORTED_MODULE_13__.TranslatePipe],
  styles: [".start-page[_ngcontent-%COMP%] {\n  overflow: hidden;\n  height: 100vh;\n  position: relative;\n}\n.start-page[_ngcontent-%COMP%]   .btn-translate[_ngcontent-%COMP%] {\n  position: absolute;\n  z-index: 10000;\n  right: 0;\n  top: 1em;\n}\nion-header[_ngcontent-%COMP%] {\n  height: 0;\n}\nion-header[_ngcontent-%COMP%]   #start[_ngcontent-%COMP%] {\n  margin: 0;\n}\nion-header[_ngcontent-%COMP%]   ion-toolbar[_ngcontent-%COMP%] {\n  --background: #fff;\n}\n.half-top[_ngcontent-%COMP%] {\n  height: 50vh;\n}\n.half-bottom[_ngcontent-%COMP%] {\n  height: 50vh;\n  display: flex;\n  flex-direction: column;\n  justify-content: center;\n  align-items: center;\n}\n.logo-holder[_ngcontent-%COMP%] {\n  padding-top: 48px;\n  text-align: center;\n}\n.welcome-message[_ngcontent-%COMP%] {\n  text-align: center;\n  margin: 0 2em;\n  color: #383a3e;\n  font-size: 1.1em;\n}\n.welcome-message[_ngcontent-%COMP%]   ion-text[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]    > p[_ngcontent-%COMP%] {\n  font-weight: bold;\n  color: #6cb52d;\n  font-family: \"Nunito\", sans-serif;\n  letter-spacing: 1px;\n}\n.start-button-holder[_ngcontent-%COMP%] {\n  text-align: center;\n  margin-top: 3em;\n}\n.start-button-holder[_ngcontent-%COMP%]   button[_ngcontent-%COMP%] {\n  padding: 0.75em 1.5em;\n  border-radius: 50px;\n  background-color: #0ec254;\n  color: #fff;\n  font-size: 1em;\n  transition: background-color 0.1s ease-out;\n}\n.start-button-holder[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]:active {\n  background-color: #fff;\n  color: #0ec254;\n  transition: background-color 0.1s ease-out;\n}\n.start-button-holder[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]:focus {\n  outline: none;\n}\n.environment-badge[_ngcontent-%COMP%] {\n  position: fixed;\n  top: 60px;\n  right: 16px;\n  padding: 6px 12px;\n  border-radius: 12px;\n  font-size: 11px;\n  font-weight: 700;\n  letter-spacing: 0.5px;\n  z-index: 9999;\n  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);\n  animation: fadeIn 0.3s ease-in;\n}\n.environment-badge.env-dev[_ngcontent-%COMP%] {\n  background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);\n  color: white;\n}\n.environment-badge.env-homol[_ngcontent-%COMP%] {\n  background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);\n  color: white;\n}\n@keyframes fadeIn {\n  from {\n    opacity: 0;\n    transform: translateY(-10px);\n  }\n  to {\n    opacity: 1;\n    transform: translateY(0);\n  }\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInN0YXJ0LnBhZ2Uuc2NzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTtFQUNFLGdCQUFBO0VBQ0EsYUFBQTtFQUNBLGtCQUFBO0FBQ0Y7QUFBRTtFQUNFLGtCQUFBO0VBQ0EsY0FBQTtFQUNBLFFBQUE7RUFDQSxRQUFBO0FBRUo7QUFFQTtFQUNFLFNBQUE7QUFDRjtBQUFFO0VBQ0UsU0FBQTtBQUVKO0FBQUU7RUFDRSxrQkFBQTtBQUVKO0FBQ0E7RUFDRSxZQUFBO0FBRUY7QUFDQTtFQUNFLFlBQUE7RUFDQSxhQUFBO0VBQ0Esc0JBQUE7RUFDQSx1QkFBQTtFQUNBLG1CQUFBO0FBRUY7QUFDQTtFQUNFLGlCQUFBO0VBQ0Esa0JBQUE7QUFFRjtBQUNBO0VBQ0Usa0JBQUE7RUFDQSxhQUFBO0VBQ0EsY0FBQTtFQUNBLGdCQUFBO0FBRUY7QUFDSTtFQUNFLGlCQUFBO0VBQ0EsY0FBQTtFQUNBLGlDQUFBO0VBQ0EsbUJBQUE7QUFDTjtBQUlBO0VBQ0Usa0JBQUE7RUFDQSxlQUFBO0FBREY7QUFHRTtFQUNFLHFCQUFBO0VBQ0EsbUJBQUE7RUFDQSx5QkFBQTtFQUNBLFdBQUE7RUFDQSxjQUFBO0VBQ0EsMENBQUE7QUFESjtBQUdJO0VBQ0Usc0JBQUE7RUFDQSxjQUFBO0VBQ0EsMENBQUE7QUFETjtBQUlJO0VBQ0UsYUFBQTtBQUZOO0FBUUE7RUFDRSxlQUFBO0VBQ0EsU0FBQTtFQUNBLFdBQUE7RUFDQSxpQk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