<!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-PIUORPZM.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-B1o5-lZ8.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__ = ["RHMaisPortal"];

        // 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__ = ["EmpFch","EmpFormation","GetSalary","HRDashboard","EmpHolidays","TPHolidays","TPUnavailabilities","TPSchedSwp","TPCompTime","TPScales","Reports","Projects","TPOvertime","TPIrregularities","TPPresences","TPClockings","TPAbsence"];

        // 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("{\"form_holidays\":\"\",\"smtp_enabled\":\"1\",\"tp_devices\":\"0.1\",\"req_path\":\"0\",\"form_presences_with_time_compensation\":\"\",\"select_description\":\"Projeto e Tarefa\",\"mfa_enabled\":\"1\",\"form_presences_without_time_compensation\":\"\",\"alert_list\":\"\",\"req_files\":\"0\",\"show_events\":\"0\",\"notify_users\":\"\",\"req_obs\":\"0\",\"language\":\"pt\",\"tp_prj\":\"\",\"compression_rate\":\"\",\"show_documents\":\"0\",\"timesheet_obs\":\"0\",\"overtime_tolerances\":\"0\"}");

        // 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 04";
    </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.
    -->
    
        
        <!-- UMD bundle (plugin-vite-preset's build.lib format), not an ES module — loaded as a plain classic script, matching the sandbox's `<script src="..." defer>` usage exactly. -->
        <script src="/assets/rhmais-portal.js" defer></script>
    
</body>
</html>
