<!DOCTYPE HTML>
<html lang="pt">
<head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Portal do Colaborador</title>
    <!-- Placeholder, same trick as legacy's own `index.html` — `main.tsx`'s `applyCompanyFavicon()`
         overwrites `href` once `window.__HRPORTAL_GLOBAL_CONFIGS__.favicon` is known, but a real
         `<link rel="icon">` element must exist upfront for that `document.querySelector` to find. -->
    <link rel="icon" href="data:," />

    <!--
      Production stylesheets, resolved from the CI-copied manifest.json
      (react-plugin-architecture tasks.md 3.5). Wrapped in its own th:block so
      `th:unless` (higher precedence than th:each on the *same* tag would be
      the wrong way round) gates the whole block before `th:each` ever
      evaluates ${prod...}, which doesn't exist as a model attribute in dev mode.
    -->
    
        <link href="/assets/index-BpNV0FN2.css" rel="stylesheet" type="text/css"/>
    
</head>
<body>
    <div id="root"></div>

    <!--
      Dev mode: point at a running `vite dev` server instead of built assets
      (design.md Decision 11, tasks.md 3.1/3.3). This three-script sequence
      (Fast Refresh preamble, HMR client, entry module) matches Vite's
      documented backend-integration pattern for @vitejs/plugin-react exactly —
      omitting the preamble makes React Fast Refresh throw at runtime.
    -->
    

    <!-- Production: hashed entry script resolved from the CI-copied manifest.json (tasks.md 3.5) -->
    <script type="module" src="/assets/index-go44YPHn.js"></script>

    <script>
        // Whether the platform has completed initial setup (InstallerService.isInstalled()) —
        // the SPA renders the InstallerPage instead of the normal app tree when false.
        window.__HRPORTAL_INSTALLED__ = true;

        // Real migrated-plugin list — every loaded Plugin bean with hasReactFrontend()==true
        // (react-plugin-architecture tasks.md 4/5, PluginResourcesLister.getReactPlugins()).
        window.__HRPORTAL_EXPECTED_PLUGINS__ = [];

        // Same active-modules list the AngularJS bootstrap uses (HomeController.hrPortalApp,
        // SettingsService.getActiveModules) — feeds FeatureFlagProvider's activeFlags
        // (dashboard-migrate design.md Decision 2).
        window.__HRPORTAL_ACTIVE_MODULES__ = ["HRDashboard","EmpHolidays","TPHolidays","TPUnavailabilities","TPSchedSwp","TPCompTime","TPScales","Expenses","Projects","Chat","TPClockings","TPIrregularities","TPPresences"];

        // Same `configs` source/shape as the AngularJS bootstrap's `GlobalConfigs`
        // (HomeController.hrPortalApp, SettingsService.getConfigValues) — keyed by each
        // PortalConfigs enum constant's wire name (e.g. "show_events", "show_documents").
        window.__HRPORTAL_GLOBAL_CONFIGS__ = JSON.parse("{\"smtp_enabled\":\"1\",\"form_holidays\":\"\",\"show_documents\":\"0\",\"notify_users\":\"\",\"overtime_tolerances\":\"0\",\"timesheet_obs\":\"0\",\"form_presences_with_time_compensation\":\"\",\"language\":\"pt\",\"req_files\":\"0\",\"req_path\":\"0\",\"form_presences_without_time_compensation\":\"\",\"show_events\":\"0\",\"tp_devices\":\"\",\"select_description\":\"Projeto e Tarefa\",\"req_obs\":\"0\",\"mfa_enabled\":\"1\"}");

        // Same value as `$rootScope.HRPortalVersion | versionMask` (HRPortalApp.js) — already
        // formatted server-side (HomeController.formatHRPortalVersion) so the dashboard just
        // displays it (e.g. "v26.00 Rev 06").
        window.__HRPORTAL_VERSION__ = "v27.00 Rev 03 Hotfix 01";
    </script>

    <!--
      One React-frontend plugin per iteration — dev mode gets the same 3-script Fast-Refresh
      trio as the host itself (each plugin runs its own separate `vite dev` server/port, so each
      needs its own preamble+HMR-client pair), prod mode gets its single CI-copied hashed script.
    -->
    
</body>
</html>
