@metaboliccode-dev/widget 0.2.13 → 0.2.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,9 +1,9 @@
1
1
  import './index.css';var qr = Object.defineProperty;
2
2
  var Jr = (e, r, n) => r in e ? qr(e, r, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[r] = n;
3
3
  var yt = (e, r, n) => Jr(e, typeof r != "symbol" ? r + "" : r, n);
4
- import { useAgCharts as Se, ensureAgChartsModules as _r } from "./ag-charts.js";
5
- import { jsx as t, jsxs as l, Fragment as te } from "react/jsx-runtime";
6
- import { useRef as F, useState as H, useLayoutEffect as _e, useMemo as j, useId as at, useCallback as B, isValidElement as $r, cloneElement as en, useEffect as V, useContext as ot, createContext as qt, lazy as Q, useReducer as tn, Component as rn, Suspense as nn, StrictMode as an } from "react";
4
+ import { useAgCharts as Me, ensureAgChartsModules as _r } from "./ag-charts.js";
5
+ import { jsx as t, jsxs as l, Fragment as ae } from "react/jsx-runtime";
6
+ import { useRef as F, useState as k, useLayoutEffect as $e, useMemo as j, useId as at, useCallback as I, isValidElement as $r, cloneElement as en, useEffect as V, useContext as ot, createContext as qt, lazy as Q, useReducer as tn, Component as rn, Suspense as nn, StrictMode as an } from "react";
7
7
  import { A as lt, a as on } from "./vendor-ag-charts-W8mi59GS.js";
8
8
  import { createRoot as ln } from "react-dom/client";
9
9
  import { createPortal as Jt } from "react-dom";
@@ -79,7 +79,7 @@ function _t(e) {
79
79
  "--mb-category-panel-header-height": o.categoryPanelHeaderHeight
80
80
  };
81
81
  }
82
- const sn = "data:image/svg+xml,%3csvg%20width='220'%20height='29'%20viewBox='0%200%20220%2029'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_96_1263)'%3e%3cpath%20d='M15.7296%2020.8716C17.8177%2020.8716%2019.5105%2019.1788%2019.5105%2017.0906C19.5105%2015.0024%2017.8177%2013.3096%2015.7296%2013.3096C13.6414%2013.3096%2011.9486%2015.0024%2011.9486%2017.0906C11.9486%2019.1788%2013.6414%2020.8716%2015.7296%2020.8716Z'%20fill='black'/%3e%3cpath%20d='M40.1166%204.41165H45.1623L49.4822%2016.4983H49.6826L54.0024%204.41165H59.0704V21.8914H55.2761V10.6776H55.0757L51.0542%2021.8914H48.1061L44.1113%2010.6776H43.9109V21.8914H40.1166V4.41165Z'%20fill='black'/%3e%3cpath%20d='M61.6623%2015.572V14.8238C61.6623%2011.0784%2063.7866%208.17925%2068.4049%208.17925C73.0231%208.17925%2074.7733%2010.8023%2074.7733%2014.6457V15.7946H65.283V15.9461C65.283%2018.2173%2066.1559%2019.2416%2068.4049%2019.2416C70.4045%2019.2416%2071.1749%2018.3197%2071.2283%2017.4959L71.2551%2017.1218H74.7777C74.7287%2019.7938%2072.8316%2022.2165%2068.3336%2022.2165C63.8356%2022.2165%2061.6668%2019.3218%2061.6668%2015.572H61.6623ZM71.2239%2013.6258C71.0502%2011.8044%2070.2753%2010.9805%2068.3291%2010.9805C66.383%2010.9805%2065.4567%2011.8044%2065.3097%2013.6258H71.2283H71.2239Z'%20fill='black'/%3e%3cpath%20d='M77.9798%2018.1193V11.5015H76.0336V8.50436H77.9798V5.73432L81.6494%204.93715V8.50881H84.9449V11.506H81.6494V17.9011C81.6494%2018.5736%2081.9745%2018.8987%2082.647%2018.8987H84.9182V21.8959C84.0453%2021.9938%2083.0967%2022.0963%2081.9478%2022.0963C79.1243%2022.0963%2077.9753%2020.9473%2077.9753%2018.1238L77.9798%2018.1193Z'%20fill='black'/%3e%3cpath%20d='M95.3972%2019.295H95.1968C94.4219%2021.1699%2093.2996%2022.2655%2090.6498%2022.2655C88.1514%2022.2655%2086.4057%2020.9428%2086.4057%2018.5691V17.8699C86.4057%2015.6744%2088.1024%2014.1246%2091.3%2014.1246H95.2457V13.176C95.2457%2011.5772%2094.5198%2010.927%2092.8988%2010.927C91.2777%2010.927%2090.5251%2011.5015%2090.4538%2012.5481L90.4271%2012.8999H86.9044C87.0291%209.75132%2088.9263%208.13026%2093.0992%208.13026C96.9959%208.13026%2098.9198%209.55537%2098.9198%2013.323V18.1193C98.9198%2018.7918%2099.1959%2019.0456%2099.8684%2019.0456H100.394V21.8914C99.8461%2021.9894%2099.2449%2022.0918%2098.3231%2022.0918C96.4749%2022.0918%2095.4016%2021.3169%2095.4016%2019.295H95.3972ZM91.8522%2019.491C94.2482%2019.491%2095.2502%2018.7918%2095.2502%2016.6452V16.2979H91.7275C90.5518%2016.2979%2090.004%2016.8724%2090.004%2017.7942V18.0926C90.004%2018.9922%2090.6275%2019.491%2091.8522%2019.491Z'%20fill='black'/%3e%3cpath%20d='M115.843%2014.8728V15.523C115.843%2019.5444%20114.044%2022.2165%20110.597%2022.2165C108.125%2022.2165%20106.802%2021.0185%20106.174%2018.872H105.974V21.8914H102.304V3.66346H105.974V11.5282H106.174C106.798%209.38168%20108.121%208.18371%20110.597%208.18371C114.044%208.18371%20115.843%2010.8825%20115.843%2014.8772V14.8728ZM109.074%2019.0189C111.171%2019.0189%20112.044%2018.1193%20112.044%2015.7457V14.6724C112.044%2012.2764%20111.171%2011.3768%20109.074%2011.3768C106.851%2011.3768%20105.979%2012.2764%20105.979%2014.6234V15.8971C105.979%2018.1193%20106.851%2019.0189%20109.074%2019.0189Z'%20fill='black'/%3e%3cpath%20d='M131.167%2014.8238V15.572C131.167%2019.3173%20129.021%2022.2165%20124.398%2022.2165C119.775%2022.2165%20117.655%2019.3218%20117.655%2015.572V14.8238C117.655%2011.0784%20119.802%208.17925%20124.398%208.17925C128.994%208.17925%20131.167%2011.074%20131.167%2014.8238ZM124.402%2019.1703C126.451%2019.1703%20127.373%2018.2975%20127.373%2015.9505V14.4542C127.373%2012.1339%20126.447%2011.2566%20124.402%2011.2566C122.358%2011.2566%20121.454%2012.1295%20121.454%2014.4542V15.9505C121.454%2018.2975%20122.381%2019.1703%20124.402%2019.1703Z'%20fill='black'/%3e%3cpath%20d='M133.519%203.65901H137.188V21.8869H133.519V3.65901Z'%20fill='black'/%3e%3cpath%20d='M139.963%203.76144H143.859V6.65618H139.963V3.76144ZM140.065%208.50436H143.735V21.8914H140.065V8.50436Z'%20fill='black'/%3e%3cpath%20d='M155.34%2016.7699H158.863C158.814%2019.7404%20156.988%2022.212%20152.668%2022.212C148.072%2022.212%20146.002%2019.3173%20146.002%2015.5675V14.8193C146.002%2011.074%20148.072%208.1748%20152.668%208.1748C156.988%208.1748%20158.81%2010.6732%20158.863%2013.4922H155.34L155.314%2013.1181C155.265%2012.1428%20154.539%2011.2432%20152.668%2011.2432C150.571%2011.2432%20149.796%2012.2408%20149.796%2014.4408V15.9371C149.796%2018.1327%20150.571%2019.157%20152.668%2019.157C154.543%2019.157%20155.265%2018.1594%20155.314%2017.1351L155.34%2016.761V16.7699Z'%20fill='black'/%3e%3cpath%20d='M160.903%2012.8955C160.903%205.58736%20162.221%203.55213%20169.066%203.55213C175.287%203.55213%20176.695%205.5161%20176.695%209.77359V9.86711H175.421V9.82257C175.421%206.28654%20174.45%204.78128%20169.062%204.78128C163.236%204.78128%20162.217%206.07723%20162.217%2012.8955C162.217%2019.7137%20163.232%2021.0096%20169.062%2021.0096C174.588%2021.0096%20175.488%2019.7137%20175.488%2015.6699V15.5987H176.784V15.6922C176.784%2020.4307%20175.443%2022.2343%20169.062%2022.2343C162.217%2022.2343%20160.898%2020.1991%20160.898%2012.891L160.903%2012.8955Z'%20fill='black'/%3e%3cpath%20d='M179.3%2015.6254C179.3%2010.7712%20180.431%209.1991%20185.334%209.1991C190.238%209.1991%20191.347%2010.7712%20191.347%2015.6254C191.347%2020.4797%20190.215%2022.0295%20185.334%2022.0295C180.453%2022.0295%20179.3%2020.4574%20179.3%2015.6254ZM185.334%2020.8716C189.267%2020.8716%20190.073%2019.8784%20190.073%2015.621C190.073%2011.3635%20189.262%2010.3481%20185.334%2010.3481C181.406%2010.3481%20180.569%2011.3412%20180.569%2015.621C180.569%2019.9007%20181.38%2020.8716%20185.334%2020.8716Z'%20fill='black'/%3e%3cpath%20d='M193.827%2015.6254C193.827%2010.7712%20194.843%209.1991%20199.398%209.1991C202.961%209.1991%20203.723%2010.0319%20204.253%2011.3946H204.297V3.90395H205.522V21.8914H204.297V19.8339H204.275C203.767%2021.1521%20202.957%2022.0295%20199.398%2022.0295C194.843%2022.0295%20193.827%2020.4574%20193.827%2015.6254ZM199.724%2020.8716C203.398%2020.8716%20204.302%2019.7137%20204.302%2016.8234V14.4185C204.302%2011.4837%20203.398%2010.3481%20199.724%2010.3481C195.862%2010.3481%20195.101%2011.3189%20195.101%2015.621C195.101%2019.923%20195.862%2020.8716%20199.724%2020.8716Z'%20fill='black'/%3e%3cpath%20d='M208.368%2015.6254C208.368%2010.7934%20209.432%209.1991%20214.242%209.1991C218.588%209.1991%20219.929%2010.5173%20219.929%2014.5655V15.9772H209.641C209.664%2019.9542%20210.381%2020.925%20214.451%2020.925C217.551%2020.925%20218.66%2020.3238%20218.66%2017.7586V17.6428H219.906V17.7809C219.906%2021.1343%20218.357%2022.0339%20214.451%2022.0339C209.432%2022.0339%20208.372%2020.4841%20208.372%2015.6299L208.368%2015.6254ZM218.655%2014.8594V14.3295C218.655%2011.2299%20217.729%2010.308%20214.237%2010.308C210.536%2010.308%20209.681%2011.3234%20209.637%2014.8639H218.655V14.8594Z'%20fill='black'/%3e%3cpath%20d='M22.0045%2028.5003H4.99231C2.23563%2028.5003%200%2026.2647%200%2023.508C0%2019.6736%204.13725%2017.2687%207.46842%2019.1703L22.2449%2027.5963C22.6769%2027.8412%2022.5032%2028.5048%2022.0045%2028.5048V28.5003Z'%20fill='black'/%3e%3cpath%20d='M22.2628%206.27764L30.7866%2020.9963C32.1672%2023.3833%2031.3567%2026.4384%2028.9696%2027.8234C25.6518%2029.7428%2021.4968%2027.3691%2021.47%2023.5347L21.3542%206.52257C21.3542%206.02379%2022.0089%205.84566%2022.2583%206.27764H22.2628Z'%20fill='black'/%3e%3cpath%20d='M2.99271%2017.2242L11.5032%202.49666C12.8838%200.10962%2015.9389%20-0.709816%2018.3259%200.670751C21.6437%202.58573%2021.6571%207.37318%2018.3482%209.30597L3.66073%2017.8878C3.22874%2018.1372%202.74777%2017.6562%202.99717%2017.2242H2.99271Z'%20fill='black'/%3e%3cpath%20d='M72.9607%2027.1465H40.5352C40.2057%2027.1465%2039.9385%2026.8793%2039.9385%2026.5497C39.9385%2026.2202%2040.2057%2025.9529%2040.5352%2025.9529H72.9607C73.2903%2025.9529%2073.5575%2026.2202%2073.5575%2026.5497C73.5575%2026.8793%2073.2903%2027.1465%2072.9607%2027.1465Z'%20fill='black'/%3e%3cpath%20d='M109.684%2027.1465H77.2583C76.9287%2027.1465%2076.6615%2026.8793%2076.6615%2026.5497C76.6615%2026.2201%2076.9287%2025.9529%2077.2583%2025.9529H109.684C110.013%2025.9529%20110.281%2026.2201%20110.281%2026.5497C110.281%2026.8793%20110.013%2027.1465%20109.684%2027.1465Z'%20fill='black'/%3e%3cpath%20d='M146.402%2027.1465H113.977C113.647%2027.1465%20113.38%2026.8793%20113.38%2026.5497C113.38%2026.2201%20113.647%2025.9529%20113.977%2025.9529H146.402C146.732%2025.9529%20146.999%2026.2201%20146.999%2026.5497C146.999%2026.8793%20146.732%2027.1465%20146.402%2027.1465Z'%20fill='black'/%3e%3cpath%20d='M183.126%2027.1465H150.7C150.37%2027.1465%20150.103%2026.8793%20150.103%2026.5497C150.103%2026.2201%20150.37%2025.9529%20150.7%2025.9529H183.126C183.455%2025.9529%20183.722%2026.2201%20183.722%2026.5497C183.722%2026.8793%20183.455%2027.1465%20183.126%2027.1465Z'%20fill='black'/%3e%3cpath%20d='M219.849%2027.1465H187.423C187.094%2027.1465%20186.826%2026.8793%20186.826%2026.5497C186.826%2026.2201%20187.094%2025.9529%20187.423%2025.9529H219.849C220.178%2025.9529%20220.445%2026.2201%20220.445%2026.5497C220.445%2026.8793%20220.178%2027.1465%20219.849%2027.1465Z'%20fill='black'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_96_1263'%3e%3crect%20width='220'%20height='28.502'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e", cn = "data:image/svg+xml,%3csvg%20width='32'%20height='29'%20viewBox='0%200%2032%2029'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M15.7297%2020.8716C17.8179%2020.8716%2019.5107%2019.1788%2019.5107%2017.0906C19.5107%2015.0024%2017.8179%2013.3096%2015.7297%2013.3096C13.6415%2013.3096%2011.9487%2015.0024%2011.9487%2017.0906C11.9487%2019.1788%2013.6415%2020.8716%2015.7297%2020.8716Z'%20fill='black'/%3e%3cpath%20d='M22.0045%2028.5003H4.99231C2.23563%2028.5003%200%2026.2647%200%2023.508C0%2019.6736%204.13725%2017.2687%207.46842%2019.1703L22.2449%2027.5963C22.6769%2027.8412%2022.5032%2028.5048%2022.0045%2028.5048V28.5003Z'%20fill='black'/%3e%3cpath%20d='M22.263%206.27764L30.7869%2020.9963C32.1674%2023.3833%2031.3569%2026.4384%2028.9699%2027.8234C25.6521%2029.7428%2021.497%2027.3691%2021.4703%2023.5347L21.3545%206.52257C21.3545%206.02379%2022.0091%205.84566%2022.2585%206.27764H22.263Z'%20fill='black'/%3e%3cpath%20d='M2.99266%2017.2242L11.5032%202.49666C12.8838%200.109618%2015.9388%20-0.709818%2018.3259%200.670749C21.6437%202.58573%2021.657%207.37318%2018.3481%209.30597L3.66067%2017.8878C3.22869%2018.1372%202.74772%2017.6562%202.99711%2017.2242H2.99266Z'%20fill='black'/%3e%3c/svg%3e", dn = "290px", k = {
82
+ const sn = "data:image/svg+xml,%3csvg%20width='220'%20height='29'%20viewBox='0%200%20220%2029'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_96_1263)'%3e%3cpath%20d='M15.7296%2020.8716C17.8177%2020.8716%2019.5105%2019.1788%2019.5105%2017.0906C19.5105%2015.0024%2017.8177%2013.3096%2015.7296%2013.3096C13.6414%2013.3096%2011.9486%2015.0024%2011.9486%2017.0906C11.9486%2019.1788%2013.6414%2020.8716%2015.7296%2020.8716Z'%20fill='black'/%3e%3cpath%20d='M40.1166%204.41165H45.1623L49.4822%2016.4983H49.6826L54.0024%204.41165H59.0704V21.8914H55.2761V10.6776H55.0757L51.0542%2021.8914H48.1061L44.1113%2010.6776H43.9109V21.8914H40.1166V4.41165Z'%20fill='black'/%3e%3cpath%20d='M61.6623%2015.572V14.8238C61.6623%2011.0784%2063.7866%208.17925%2068.4049%208.17925C73.0231%208.17925%2074.7733%2010.8023%2074.7733%2014.6457V15.7946H65.283V15.9461C65.283%2018.2173%2066.1559%2019.2416%2068.4049%2019.2416C70.4045%2019.2416%2071.1749%2018.3197%2071.2283%2017.4959L71.2551%2017.1218H74.7777C74.7287%2019.7938%2072.8316%2022.2165%2068.3336%2022.2165C63.8356%2022.2165%2061.6668%2019.3218%2061.6668%2015.572H61.6623ZM71.2239%2013.6258C71.0502%2011.8044%2070.2753%2010.9805%2068.3291%2010.9805C66.383%2010.9805%2065.4567%2011.8044%2065.3097%2013.6258H71.2283H71.2239Z'%20fill='black'/%3e%3cpath%20d='M77.9798%2018.1193V11.5015H76.0336V8.50436H77.9798V5.73432L81.6494%204.93715V8.50881H84.9449V11.506H81.6494V17.9011C81.6494%2018.5736%2081.9745%2018.8987%2082.647%2018.8987H84.9182V21.8959C84.0453%2021.9938%2083.0967%2022.0963%2081.9478%2022.0963C79.1243%2022.0963%2077.9753%2020.9473%2077.9753%2018.1238L77.9798%2018.1193Z'%20fill='black'/%3e%3cpath%20d='M95.3972%2019.295H95.1968C94.4219%2021.1699%2093.2996%2022.2655%2090.6498%2022.2655C88.1514%2022.2655%2086.4057%2020.9428%2086.4057%2018.5691V17.8699C86.4057%2015.6744%2088.1024%2014.1246%2091.3%2014.1246H95.2457V13.176C95.2457%2011.5772%2094.5198%2010.927%2092.8988%2010.927C91.2777%2010.927%2090.5251%2011.5015%2090.4538%2012.5481L90.4271%2012.8999H86.9044C87.0291%209.75132%2088.9263%208.13026%2093.0992%208.13026C96.9959%208.13026%2098.9198%209.55537%2098.9198%2013.323V18.1193C98.9198%2018.7918%2099.1959%2019.0456%2099.8684%2019.0456H100.394V21.8914C99.8461%2021.9894%2099.2449%2022.0918%2098.3231%2022.0918C96.4749%2022.0918%2095.4016%2021.3169%2095.4016%2019.295H95.3972ZM91.8522%2019.491C94.2482%2019.491%2095.2502%2018.7918%2095.2502%2016.6452V16.2979H91.7275C90.5518%2016.2979%2090.004%2016.8724%2090.004%2017.7942V18.0926C90.004%2018.9922%2090.6275%2019.491%2091.8522%2019.491Z'%20fill='black'/%3e%3cpath%20d='M115.843%2014.8728V15.523C115.843%2019.5444%20114.044%2022.2165%20110.597%2022.2165C108.125%2022.2165%20106.802%2021.0185%20106.174%2018.872H105.974V21.8914H102.304V3.66346H105.974V11.5282H106.174C106.798%209.38168%20108.121%208.18371%20110.597%208.18371C114.044%208.18371%20115.843%2010.8825%20115.843%2014.8772V14.8728ZM109.074%2019.0189C111.171%2019.0189%20112.044%2018.1193%20112.044%2015.7457V14.6724C112.044%2012.2764%20111.171%2011.3768%20109.074%2011.3768C106.851%2011.3768%20105.979%2012.2764%20105.979%2014.6234V15.8971C105.979%2018.1193%20106.851%2019.0189%20109.074%2019.0189Z'%20fill='black'/%3e%3cpath%20d='M131.167%2014.8238V15.572C131.167%2019.3173%20129.021%2022.2165%20124.398%2022.2165C119.775%2022.2165%20117.655%2019.3218%20117.655%2015.572V14.8238C117.655%2011.0784%20119.802%208.17925%20124.398%208.17925C128.994%208.17925%20131.167%2011.074%20131.167%2014.8238ZM124.402%2019.1703C126.451%2019.1703%20127.373%2018.2975%20127.373%2015.9505V14.4542C127.373%2012.1339%20126.447%2011.2566%20124.402%2011.2566C122.358%2011.2566%20121.454%2012.1295%20121.454%2014.4542V15.9505C121.454%2018.2975%20122.381%2019.1703%20124.402%2019.1703Z'%20fill='black'/%3e%3cpath%20d='M133.519%203.65901H137.188V21.8869H133.519V3.65901Z'%20fill='black'/%3e%3cpath%20d='M139.963%203.76144H143.859V6.65618H139.963V3.76144ZM140.065%208.50436H143.735V21.8914H140.065V8.50436Z'%20fill='black'/%3e%3cpath%20d='M155.34%2016.7699H158.863C158.814%2019.7404%20156.988%2022.212%20152.668%2022.212C148.072%2022.212%20146.002%2019.3173%20146.002%2015.5675V14.8193C146.002%2011.074%20148.072%208.1748%20152.668%208.1748C156.988%208.1748%20158.81%2010.6732%20158.863%2013.4922H155.34L155.314%2013.1181C155.265%2012.1428%20154.539%2011.2432%20152.668%2011.2432C150.571%2011.2432%20149.796%2012.2408%20149.796%2014.4408V15.9371C149.796%2018.1327%20150.571%2019.157%20152.668%2019.157C154.543%2019.157%20155.265%2018.1594%20155.314%2017.1351L155.34%2016.761V16.7699Z'%20fill='black'/%3e%3cpath%20d='M160.903%2012.8955C160.903%205.58736%20162.221%203.55213%20169.066%203.55213C175.287%203.55213%20176.695%205.5161%20176.695%209.77359V9.86711H175.421V9.82257C175.421%206.28654%20174.45%204.78128%20169.062%204.78128C163.236%204.78128%20162.217%206.07723%20162.217%2012.8955C162.217%2019.7137%20163.232%2021.0096%20169.062%2021.0096C174.588%2021.0096%20175.488%2019.7137%20175.488%2015.6699V15.5987H176.784V15.6922C176.784%2020.4307%20175.443%2022.2343%20169.062%2022.2343C162.217%2022.2343%20160.898%2020.1991%20160.898%2012.891L160.903%2012.8955Z'%20fill='black'/%3e%3cpath%20d='M179.3%2015.6254C179.3%2010.7712%20180.431%209.1991%20185.334%209.1991C190.238%209.1991%20191.347%2010.7712%20191.347%2015.6254C191.347%2020.4797%20190.215%2022.0295%20185.334%2022.0295C180.453%2022.0295%20179.3%2020.4574%20179.3%2015.6254ZM185.334%2020.8716C189.267%2020.8716%20190.073%2019.8784%20190.073%2015.621C190.073%2011.3635%20189.262%2010.3481%20185.334%2010.3481C181.406%2010.3481%20180.569%2011.3412%20180.569%2015.621C180.569%2019.9007%20181.38%2020.8716%20185.334%2020.8716Z'%20fill='black'/%3e%3cpath%20d='M193.827%2015.6254C193.827%2010.7712%20194.843%209.1991%20199.398%209.1991C202.961%209.1991%20203.723%2010.0319%20204.253%2011.3946H204.297V3.90395H205.522V21.8914H204.297V19.8339H204.275C203.767%2021.1521%20202.957%2022.0295%20199.398%2022.0295C194.843%2022.0295%20193.827%2020.4574%20193.827%2015.6254ZM199.724%2020.8716C203.398%2020.8716%20204.302%2019.7137%20204.302%2016.8234V14.4185C204.302%2011.4837%20203.398%2010.3481%20199.724%2010.3481C195.862%2010.3481%20195.101%2011.3189%20195.101%2015.621C195.101%2019.923%20195.862%2020.8716%20199.724%2020.8716Z'%20fill='black'/%3e%3cpath%20d='M208.368%2015.6254C208.368%2010.7934%20209.432%209.1991%20214.242%209.1991C218.588%209.1991%20219.929%2010.5173%20219.929%2014.5655V15.9772H209.641C209.664%2019.9542%20210.381%2020.925%20214.451%2020.925C217.551%2020.925%20218.66%2020.3238%20218.66%2017.7586V17.6428H219.906V17.7809C219.906%2021.1343%20218.357%2022.0339%20214.451%2022.0339C209.432%2022.0339%20208.372%2020.4841%20208.372%2015.6299L208.368%2015.6254ZM218.655%2014.8594V14.3295C218.655%2011.2299%20217.729%2010.308%20214.237%2010.308C210.536%2010.308%20209.681%2011.3234%20209.637%2014.8639H218.655V14.8594Z'%20fill='black'/%3e%3cpath%20d='M22.0045%2028.5003H4.99231C2.23563%2028.5003%200%2026.2647%200%2023.508C0%2019.6736%204.13725%2017.2687%207.46842%2019.1703L22.2449%2027.5963C22.6769%2027.8412%2022.5032%2028.5048%2022.0045%2028.5048V28.5003Z'%20fill='black'/%3e%3cpath%20d='M22.2628%206.27764L30.7866%2020.9963C32.1672%2023.3833%2031.3567%2026.4384%2028.9696%2027.8234C25.6518%2029.7428%2021.4968%2027.3691%2021.47%2023.5347L21.3542%206.52257C21.3542%206.02379%2022.0089%205.84566%2022.2583%206.27764H22.2628Z'%20fill='black'/%3e%3cpath%20d='M2.99271%2017.2242L11.5032%202.49666C12.8838%200.10962%2015.9389%20-0.709816%2018.3259%200.670751C21.6437%202.58573%2021.6571%207.37318%2018.3482%209.30597L3.66073%2017.8878C3.22874%2018.1372%202.74777%2017.6562%202.99717%2017.2242H2.99271Z'%20fill='black'/%3e%3cpath%20d='M72.9607%2027.1465H40.5352C40.2057%2027.1465%2039.9385%2026.8793%2039.9385%2026.5497C39.9385%2026.2202%2040.2057%2025.9529%2040.5352%2025.9529H72.9607C73.2903%2025.9529%2073.5575%2026.2202%2073.5575%2026.5497C73.5575%2026.8793%2073.2903%2027.1465%2072.9607%2027.1465Z'%20fill='black'/%3e%3cpath%20d='M109.684%2027.1465H77.2583C76.9287%2027.1465%2076.6615%2026.8793%2076.6615%2026.5497C76.6615%2026.2201%2076.9287%2025.9529%2077.2583%2025.9529H109.684C110.013%2025.9529%20110.281%2026.2201%20110.281%2026.5497C110.281%2026.8793%20110.013%2027.1465%20109.684%2027.1465Z'%20fill='black'/%3e%3cpath%20d='M146.402%2027.1465H113.977C113.647%2027.1465%20113.38%2026.8793%20113.38%2026.5497C113.38%2026.2201%20113.647%2025.9529%20113.977%2025.9529H146.402C146.732%2025.9529%20146.999%2026.2201%20146.999%2026.5497C146.999%2026.8793%20146.732%2027.1465%20146.402%2027.1465Z'%20fill='black'/%3e%3cpath%20d='M183.126%2027.1465H150.7C150.37%2027.1465%20150.103%2026.8793%20150.103%2026.5497C150.103%2026.2201%20150.37%2025.9529%20150.7%2025.9529H183.126C183.455%2025.9529%20183.722%2026.2201%20183.722%2026.5497C183.722%2026.8793%20183.455%2027.1465%20183.126%2027.1465Z'%20fill='black'/%3e%3cpath%20d='M219.849%2027.1465H187.423C187.094%2027.1465%20186.826%2026.8793%20186.826%2026.5497C186.826%2026.2201%20187.094%2025.9529%20187.423%2025.9529H219.849C220.178%2025.9529%20220.445%2026.2201%20220.445%2026.5497C220.445%2026.8793%20220.178%2027.1465%20219.849%2027.1465Z'%20fill='black'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_96_1263'%3e%3crect%20width='220'%20height='28.502'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e", cn = "data:image/svg+xml,%3csvg%20width='32'%20height='29'%20viewBox='0%200%2032%2029'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M15.7297%2020.8716C17.8179%2020.8716%2019.5107%2019.1788%2019.5107%2017.0906C19.5107%2015.0024%2017.8179%2013.3096%2015.7297%2013.3096C13.6415%2013.3096%2011.9487%2015.0024%2011.9487%2017.0906C11.9487%2019.1788%2013.6415%2020.8716%2015.7297%2020.8716Z'%20fill='black'/%3e%3cpath%20d='M22.0045%2028.5003H4.99231C2.23563%2028.5003%200%2026.2647%200%2023.508C0%2019.6736%204.13725%2017.2687%207.46842%2019.1703L22.2449%2027.5963C22.6769%2027.8412%2022.5032%2028.5048%2022.0045%2028.5048V28.5003Z'%20fill='black'/%3e%3cpath%20d='M22.263%206.27764L30.7869%2020.9963C32.1674%2023.3833%2031.3569%2026.4384%2028.9699%2027.8234C25.6521%2029.7428%2021.497%2027.3691%2021.4703%2023.5347L21.3545%206.52257C21.3545%206.02379%2022.0091%205.84566%2022.2585%206.27764H22.263Z'%20fill='black'/%3e%3cpath%20d='M2.99266%2017.2242L11.5032%202.49666C12.8838%200.109618%2015.9388%20-0.709818%2018.3259%200.670749C21.6437%202.58573%2021.657%207.37318%2018.3481%209.30597L3.66067%2017.8878C3.22869%2018.1372%202.74772%2017.6562%202.99711%2017.2242H2.99266Z'%20fill='black'/%3e%3c/svg%3e", dn = "290px", H = {
83
83
  title: "",
84
84
  logo: {
85
85
  src: sn,
@@ -181,36 +181,36 @@ function mn() {
181
181
  }
182
182
  function un() {
183
183
  return {
184
- ...k,
185
- logo: { ...k.logo },
186
- fonts: { ...k.fonts },
187
- colors: { ...k.colors },
188
- radius: { ...k.radius },
189
- sizes: { ...k.sizes },
190
- button: { ...k.button },
191
- sideMenu: { ...k.sideMenu },
192
- badge: { ...k.badge }
184
+ ...H,
185
+ logo: { ...H.logo },
186
+ fonts: { ...H.fonts },
187
+ colors: { ...H.colors },
188
+ radius: { ...H.radius },
189
+ sizes: { ...H.sizes },
190
+ button: { ...H.button },
191
+ sideMenu: { ...H.sideMenu },
192
+ badge: { ...H.badge }
193
193
  };
194
194
  }
195
195
  function bn(e) {
196
- var p, v, u, f, h, g, y, C, N, w, P, A, S, L, z, G, D, q, $;
196
+ var g, v, u, h, f, p, y, C, N, w, P, A, S, T, z, G, B, q, $;
197
197
  if (!e)
198
198
  return un();
199
199
  const r = {
200
- ...k.sizes,
200
+ ...H.sizes,
201
201
  ...e.sizes
202
- }, n = ((p = e.card) == null ? void 0 : p.padding) ?? r.cardPadding ?? k.sizes.cardPadding, a = {
203
- ...k.button,
202
+ }, n = ((g = e.card) == null ? void 0 : g.padding) ?? r.cardPadding ?? H.sizes.cardPadding, a = {
203
+ ...H.button,
204
204
  ...e.button,
205
- borderRadius: ((v = e.button) == null ? void 0 : v.borderRadius) ?? ((u = e.radius) == null ? void 0 : u.button) ?? k.button.borderRadius
205
+ borderRadius: ((v = e.button) == null ? void 0 : v.borderRadius) ?? ((u = e.radius) == null ? void 0 : u.button) ?? H.button.borderRadius
206
206
  }, o = {
207
- ...k.badge,
207
+ ...H.badge,
208
208
  ...e.badge,
209
- borderRadius: ((f = e.badge) == null ? void 0 : f.borderRadius) ?? ((h = e.radius) == null ? void 0 : h.badge) ?? k.badge.borderRadius
209
+ borderRadius: ((h = e.badge) == null ? void 0 : h.borderRadius) ?? ((f = e.radius) == null ? void 0 : f.badge) ?? H.badge.borderRadius
210
210
  }, i = {
211
- ...k.colors,
211
+ ...H.colors,
212
212
  ...e.colors
213
- }, s = ((g = e.colors) == null ? void 0 : g.sideMenuItemText) ?? i.textPrimary, c = ((y = e.colors) == null ? void 0 : y.sideMenuItemTextActive) ?? i.textPrimary, d = {
213
+ }, s = ((p = e.colors) == null ? void 0 : p.sideMenuItemText) ?? i.textPrimary, c = ((y = e.colors) == null ? void 0 : y.sideMenuItemTextActive) ?? i.textPrimary, d = {
214
214
  ...i,
215
215
  sideMenuItemText: s,
216
216
  sideMenuItemTextActive: c,
@@ -220,30 +220,30 @@ function bn(e) {
220
220
  badgeValueBackground: ((P = e.colors) == null ? void 0 : P.badgeValueBackground) ?? i.navHoverBackground,
221
221
  badgeValueText: ((A = e.colors) == null ? void 0 : A.badgeValueText) ?? i.textPrimary,
222
222
  badgeValueBorder: ((S = e.colors) == null ? void 0 : S.badgeValueBorder) ?? i.badgeValueBorder,
223
- cardInlineButtonBackground: ((L = e.colors) == null ? void 0 : L.cardInlineButtonBackground) ?? i.cardBackground,
223
+ cardInlineButtonBackground: ((T = e.colors) == null ? void 0 : T.cardInlineButtonBackground) ?? i.cardBackground,
224
224
  cardInlineButtonBorder: ((z = e.colors) == null ? void 0 : z.cardInlineButtonBorder) ?? i.cardBorder,
225
225
  cardInlineButtonText: ((G = e.colors) == null ? void 0 : G.cardInlineButtonText) ?? i.textPrimary,
226
- cardInlineButtonHoverBackground: ((D = e.colors) == null ? void 0 : D.cardInlineButtonHoverBackground) ?? i.navHoverBackground
226
+ cardInlineButtonHoverBackground: ((B = e.colors) == null ? void 0 : B.cardInlineButtonHoverBackground) ?? i.navHoverBackground
227
227
  }, m = {
228
- ...k.sideMenu,
228
+ ...H.sideMenu,
229
229
  ...e.sideMenu
230
230
  }, b = {
231
231
  ...m,
232
232
  borderRadius: ((q = e.sideMenu) == null ? void 0 : q.borderRadius) ?? (e.sideMenu === void 0 ? ($ = e.radius) == null ? void 0 : $.navItem : void 0) ?? m.borderRadius
233
233
  };
234
234
  return {
235
- title: e.title ?? k.title,
235
+ title: e.title ?? H.title,
236
236
  logo: {
237
- ...k.logo,
237
+ ...H.logo,
238
238
  ...e.logo
239
239
  },
240
240
  fonts: {
241
- ...k.fonts,
241
+ ...H.fonts,
242
242
  ...e.fonts
243
243
  },
244
244
  colors: d,
245
245
  radius: {
246
- ...k.radius,
246
+ ...H.radius,
247
247
  ...e.radius,
248
248
  button: a.borderRadius,
249
249
  badge: o.borderRadius
@@ -257,7 +257,7 @@ function bn(e) {
257
257
  badge: o
258
258
  };
259
259
  }
260
- const hn = "inline-flex cursor-pointer items-center gap-[var(--mb-button-gap)] rounded-[var(--mb-button-radius)] border border-[color:var(--mb-color-button-border)] [border-width:var(--mb-button-border-width)] bg-[color:var(--mb-color-button-bg)] px-[var(--mb-button-padding-x)] py-[var(--mb-button-padding-y)] [font-size:var(--mb-button-font-size)] [font-weight:var(--mb-button-font-weight)] text-[color:var(--mb-color-button-text)] shadow-[var(--mb-button-shadow)] transition hover:bg-[color:var(--mb-color-button-hover)] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[color:var(--mb-color-focus-ring)] focus-visible:ring-offset-2 focus-visible:ring-offset-[color:var(--mb-color-focus-offset)] disabled:cursor-not-allowed disabled:opacity-50", fn = "inline-flex cursor-pointer items-center gap-[var(--mb-button-gap)] rounded-[var(--mb-button-radius)] border-0 bg-[color:var(--mb-color-nav-hover)] px-4 py-3.5 text-[15px] font-medium leading-normal text-[color:var(--mb-color-text)] shadow-none transition hover:bg-[color:var(--mb-color-nav-active)] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[color:var(--mb-color-focus-ring)] focus-visible:ring-offset-2 focus-visible:ring-offset-[color:var(--mb-color-focus-offset)] disabled:cursor-not-allowed disabled:opacity-50", gn = "flex w-full min-w-0 shrink-0 cursor-pointer items-center justify-center gap-0 rounded-[var(--mb-side-menu-radius)] border border-transparent px-2 py-[var(--mb-side-menu-padding-y)] text-left [font-size:var(--mb-side-menu-font-size)] [font-weight:var(--mb-side-menu-font-weight)] [border-width:var(--mb-side-menu-border-width)] shadow-[var(--mb-side-menu-shadow)] transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[color:var(--mb-color-focus-ring)] focus-visible:ring-offset-2 focus-visible:ring-offset-[color:var(--mb-color-focus-offset)] disabled:cursor-not-allowed disabled:opacity-50 lg:justify-start lg:gap-[var(--mb-side-menu-gap)] lg:px-[var(--mb-side-menu-padding-x)]", pn = "flex h-8 w-full min-w-0 shrink-0 cursor-pointer items-center justify-center gap-2 rounded-[var(--mb-side-menu-radius)] border-0 bg-transparent px-3 py-0 text-left text-sm text-[color:var(--mb-color-text)] shadow-none transition-colors hover:bg-[color:var(--mb-color-nav-hover)] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[color:var(--mb-color-focus-ring)] focus-visible:ring-offset-2 focus-visible:ring-offset-[color:var(--mb-color-focus-offset)] disabled:cursor-not-allowed disabled:opacity-50 lg:justify-start [&_svg]:block", Me = "inline-flex shrink-0 cursor-pointer items-center gap-1.5 rounded-none rounded-br-[length:var(--mb-radius-button)] rounded-tr-[length:var(--mb-radius-button)] border-0 px-5 py-2.5 text-sm font-bold uppercase tracking-wide text-white shadow-none transition hover:brightness-90 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[color:var(--mb-color-focus-ring)] focus-visible:ring-offset-2 focus-visible:ring-offset-[color:var(--mb-color-card-bg)] disabled:cursor-not-allowed disabled:opacity-50 [&_svg]:shrink-0 [&_svg]:text-white", xn = `${Me} bg-[#3a9e6a]`, vn = `${Me} bg-[#d94040]`, wn = `${Me} bg-[#d94040]`, yn = `${Me} bg-[#e09a1a]`;
260
+ const hn = "inline-flex cursor-pointer items-center gap-[var(--mb-button-gap)] rounded-[var(--mb-button-radius)] border border-[color:var(--mb-color-button-border)] [border-width:var(--mb-button-border-width)] bg-[color:var(--mb-color-button-bg)] px-[var(--mb-button-padding-x)] py-[var(--mb-button-padding-y)] [font-size:var(--mb-button-font-size)] [font-weight:var(--mb-button-font-weight)] text-[color:var(--mb-color-button-text)] shadow-[var(--mb-button-shadow)] transition hover:bg-[color:var(--mb-color-button-hover)] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[color:var(--mb-color-focus-ring)] focus-visible:ring-offset-2 focus-visible:ring-offset-[color:var(--mb-color-focus-offset)] disabled:cursor-not-allowed disabled:opacity-50", fn = "inline-flex cursor-pointer items-center gap-[var(--mb-button-gap)] rounded-[var(--mb-button-radius)] border-0 bg-[color:var(--mb-color-nav-hover)] px-4 py-3.5 text-[15px] font-medium leading-normal text-[color:var(--mb-color-text)] shadow-none transition hover:bg-[color:var(--mb-color-nav-active)] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[color:var(--mb-color-focus-ring)] focus-visible:ring-offset-2 focus-visible:ring-offset-[color:var(--mb-color-focus-offset)] disabled:cursor-not-allowed disabled:opacity-50", gn = "flex w-full min-w-0 shrink-0 cursor-pointer items-center justify-center gap-0 rounded-[var(--mb-side-menu-radius)] border border-transparent px-2 py-[var(--mb-side-menu-padding-y)] text-left [font-size:var(--mb-side-menu-font-size)] [font-weight:var(--mb-side-menu-font-weight)] [border-width:var(--mb-side-menu-border-width)] shadow-[var(--mb-side-menu-shadow)] transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[color:var(--mb-color-focus-ring)] focus-visible:ring-offset-2 focus-visible:ring-offset-[color:var(--mb-color-focus-offset)] disabled:cursor-not-allowed disabled:opacity-50 lg:justify-start lg:gap-[var(--mb-side-menu-gap)] lg:px-[var(--mb-side-menu-padding-x)]", pn = "flex h-8 w-full min-w-0 shrink-0 cursor-pointer items-center justify-center gap-2 rounded-[var(--mb-side-menu-radius)] border-0 bg-transparent px-3 py-0 text-left text-sm text-[color:var(--mb-color-text)] shadow-none transition-colors hover:bg-[color:var(--mb-color-nav-hover)] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[color:var(--mb-color-focus-ring)] focus-visible:ring-offset-2 focus-visible:ring-offset-[color:var(--mb-color-focus-offset)] disabled:cursor-not-allowed disabled:opacity-50 lg:justify-start [&_svg]:block", ke = "inline-flex shrink-0 cursor-pointer items-center gap-1.5 rounded-none rounded-br-[length:var(--mb-radius-button)] rounded-tr-[length:var(--mb-radius-button)] border-0 px-5 py-2.5 text-sm font-bold uppercase tracking-wide text-white shadow-none transition hover:brightness-90 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[color:var(--mb-color-focus-ring)] focus-visible:ring-offset-2 focus-visible:ring-offset-[color:var(--mb-color-card-bg)] disabled:cursor-not-allowed disabled:opacity-50 [&_svg]:shrink-0 [&_svg]:text-white", xn = `${ke} bg-[#3a9e6a]`, vn = `${ke} bg-[#d94040]`, wn = `${ke} bg-[#d94040]`, yn = `${ke} bg-[#e09a1a]`;
261
261
  function M({
262
262
  className: e = "",
263
263
  fullWidth: r = !1,
@@ -306,7 +306,7 @@ function An(e) {
306
306
  }
307
307
  return e;
308
308
  }
309
- const Tn = {
309
+ const Ln = {
310
310
  default: "border-[color:var(--mb-color-badge-border)] bg-[color:var(--mb-color-badge-bg)] text-[color:var(--mb-color-badge-text)] [border-width:var(--mb-badge-border-width)] px-[length:var(--mb-badge-padding-x)] py-[length:var(--mb-badge-padding-y)]",
311
311
  value: "border-[color:var(--mb-color-badge-value-border)] bg-[color:var(--mb-color-badge-value-bg)] text-[color:var(--mb-color-badge-value-text)] [border-width:var(--mb-badge-border-width)] px-[length:var(--mb-badge-value-padding-x)] py-[length:var(--mb-badge-value-padding-y)]"
312
312
  };
@@ -318,12 +318,12 @@ function _({
318
318
  return /* @__PURE__ */ t(
319
319
  "span",
320
320
  {
321
- className: `inline-flex shrink-0 items-center justify-center rounded-[length:var(--mb-badge-radius)] border border-solid [font-size:var(--mb-badge-font-size)] [font-weight:var(--mb-badge-font-weight)] ${Tn[n]} ${r}`.trim(),
321
+ className: `inline-flex shrink-0 items-center justify-center rounded-[length:var(--mb-badge-radius)] border border-solid [font-size:var(--mb-badge-font-size)] [font-weight:var(--mb-badge-font-weight)] ${Ln[n]} ${r}`.trim(),
322
322
  children: An(e)
323
323
  }
324
324
  );
325
325
  }
326
- function T({
326
+ function L({
327
327
  children: e,
328
328
  className: r = ""
329
329
  }) {
@@ -338,7 +338,7 @@ function T({
338
338
  }
339
339
  );
340
340
  }
341
- const $t = "data:image/svg+xml,%3csvg%20width='40'%20height='40'%20viewBox='0%200%2040%2040'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M27.7784%2037.6667H6.69083C3.27029%2037.6667%200.5%2034.894%200.5%2031.476C0.5%2026.7256%205.6308%2023.7444%209.75802%2026.0975L28.0753%2036.5429C28.6102%2036.8496%2028.3943%2037.6667%2027.7784%2037.6667Z'%20fill='%23E9AD80'/%3e%3cpath%20d='M28.0974%2010.1165L38.6657%2028.3622C40.3784%2031.3214%2039.3699%2035.1099%2036.4107%2036.8226C32.2982%2039.2027%2027.1477%2036.2582%2027.1159%2031.5079L26.9735%2010.4232C26.9686%209.80485%2027.7857%209.58401%2028.0949%2010.1165'%20fill='%23E49B67'/%3e%3cpath%20d='M4.21009%2023.6879L14.7563%205.42744C16.4666%202.46828%2020.2527%201.4549%2023.2144%203.16513C27.3294%205.54031%2027.3441%2011.4758%2023.2414%2013.8706L5.03455%2024.5074C4.50209%2024.8191%203.90092%2024.2228%204.21009%2023.6879Z'%20fill='%23ECC09C'/%3e%3cpath%20d='M20.8171%2025.9674H19.6737V21.9114H19.6614L18.3585%2023.0426L17.7278%2022.3187L19.3988%2020.8588H20.8196V25.9674H20.8171ZM20%2018.8345C17.4138%2018.8345%2015.3158%2020.9324%2015.3158%2023.5186C15.3158%2026.1048%2017.4138%2028.2027%2020%2028.2027C22.5863%2028.2027%2024.6842%2026.1048%2024.6842%2023.5186C24.6842%2020.9324%2022.5863%2018.8345%2020%2018.8345Z'%20fill='%23EFC160'/%3e%3c/svg%3e", er = "data:image/svg+xml,%3csvg%20width='40'%20height='40'%20viewBox='0%200%2040%2040'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M27.7784%2037.6667H6.69083C3.27029%2037.6667%200.5%2034.894%200.5%2031.476C0.5%2026.7256%205.6308%2023.7443%209.75802%2026.0974L28.0753%2036.5429C28.6127%2036.8496%2028.3943%2037.6667%2027.7784%2037.6667Z'%20fill='%2395C9EA'/%3e%3cpath%20d='M28.0974%2010.1165L38.6657%2028.3622C40.3784%2031.3214%2039.3699%2035.1099%2036.4107%2036.8226C32.2982%2039.2027%2027.1477%2036.2582%2027.1159%2031.5078L26.9735%2010.4232C26.9686%209.80483%2027.7857%209.584%2028.0974%2010.1165Z'%20fill='%237ABFE4'/%3e%3cpath%20d='M4.21009%2023.6879L14.7563%205.42746C16.4666%202.46829%2020.2527%201.45491%2023.2144%203.16514C27.3294%205.54033%2027.3441%2011.4758%2023.2414%2013.8707L5.03455%2024.5075C4.50209%2024.8191%203.90092%2024.2228%204.21009%2023.6879Z'%20fill='%23B0D5EE'/%3e%3cpath%20d='M22.2354%2025.9674H17.7646V24.9687C17.7646%2024.4044%2017.8702%2024.0093%2018.1253%2023.7517C18.3953%2023.4818%2018.783%2023.337%2019.7424%2023.1873C20.4515%2023.0745%2020.768%2022.996%2020.9128%2022.8512C21.011%2022.753%2021.0502%2022.6205%2021.0502%2022.3506C21.0502%2021.8182%2020.9251%2021.7004%2020.0123%2021.7004C19.0995%2021.7004%2018.9866%2021.8182%2018.9866%2022.4291V22.515H17.8554V22.3187C17.8554%2021.1483%2018.2309%2020.7533%2020.0246%2020.7533C21.8182%2020.7533%2022.2084%2021.1606%2022.2084%2022.331C22.2084%2022.8831%2022.1176%2023.2708%2021.8477%2023.5407C21.5655%2023.8179%2021.1508%2023.9554%2020.2503%2024.0928C19.4749%2024.2105%2019.1854%2024.2891%2019.048%2024.4289C18.9498%2024.5271%2018.9302%2024.6596%2018.9302%2024.9417V25.0129H22.2378V25.9674H22.2354ZM20%2018.8345C17.4138%2018.8345%2015.3158%2020.9324%2015.3158%2023.5186C15.3158%2026.1048%2017.4138%2028.2027%2020%2028.2027C22.5863%2028.2027%2024.6842%2026.1048%2024.6842%2023.5186C24.6842%2020.9324%2022.5863%2018.8345%2020%2018.8345Z'%20fill='%2396D7E1'/%3e%3c/svg%3e", tr = "data:image/svg+xml,%3csvg%20width='40'%20height='40'%20viewBox='0%200%2040%2040'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M28.0753%2036.5428L9.75802%2026.0974C5.6308%2023.7443%200.5%2026.7255%200.5%2031.4759C0.5%2034.8964%203.27274%2037.6666%206.69083%2037.6666H27.7784C28.3968%2037.6666%2028.6127%2036.8471%2028.0778%2036.5428'%20fill='%2398D2AE'/%3e%3cpath%20d='M38.6657%2028.3622L28.0973%2010.1165C27.7882%209.58158%2026.9711%209.80486%2026.976%2010.4232L27.1183%2031.5079C27.1502%2036.2582%2032.3006%2039.2051%2036.4131%2036.8226C39.3723%2035.1099%2040.3808%2031.3214%2038.6681%2028.3622'%20fill='%237FC99C'/%3e%3cpath%20d='M5.03455%2024.5075L23.2414%2013.8707C27.3441%2011.4734%2027.3294%205.54036%2023.2144%203.16518C20.2527%201.45495%2016.4666%202.46833%2014.7563%205.42995L4.21009%2023.688C3.90092%2024.2229%204.50209%2024.8191%205.03455%2024.5075Z'%20fill='%23B1DCC0'/%3e%3cpath%20d='M19.9976%2026.176C18.2824%2026.176%2017.7548%2025.8594%2017.7548%2024.6105V24.4117H18.8664V24.4976C18.8664%2025.1209%2019.0112%2025.2337%2019.9976%2025.2337C20.984%2025.2337%2021.1018%2025.1086%2021.1018%2024.5884C21.1018%2024.0682%2020.9496%2023.9504%2020.0221%2023.9504H19.4038V23.0229H20.0221C20.9496%2023.0229%2021.0478%2022.8978%2021.0478%2022.4193C21.0478%2021.9409%2020.8956%2021.801%2019.9706%2021.801C19.0455%2021.801%2018.9179%2021.9065%2018.9179%2022.4709V22.5567H17.8064V22.3604C17.8064%2021.163%2018.3192%2020.8612%2019.9951%2020.8612C21.671%2020.8612%2022.1912%2021.1974%2022.1912%2022.2427C22.1912%2022.9861%2021.9483%2023.3198%2021.3103%2023.4523V23.4646C21.9876%2023.6216%2022.2427%2023.9578%2022.2427%2024.7332C22.2427%2025.8447%2021.7103%2026.1735%2019.9951%2026.1735M20%2018.8345C17.4138%2018.8345%2015.3158%2020.9324%2015.3158%2023.5186C15.3158%2026.1048%2017.4138%2028.2027%2020%2028.2027C22.5863%2028.2027%2024.6842%2026.1048%2024.6842%2023.5186C24.6842%2020.9324%2022.5863%2018.8345%2020%2018.8345Z'%20fill='%238ECB84'/%3e%3c/svg%3e", rr = "data:image/svg+xml,%3csvg%20width='40'%20height='40'%20viewBox='0%200%2040%2040'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M28.0753%2036.5429L9.75802%2026.0975C5.6308%2023.7444%200.5%2026.7256%200.5%2031.476C0.5%2034.8965%203.27274%2037.6667%206.69083%2037.6667H27.7784C28.3968%2037.6667%2028.6127%2036.8472%2028.0778%2036.5429'%20fill='%23EC8792'/%3e%3cpath%20d='M38.6657%2028.3622L28.0973%2010.1165C27.7882%209.58158%2026.9711%209.80486%2026.976%2010.4232L27.1183%2031.5079C27.1502%2036.2582%2032.3006%2039.2051%2036.4131%2036.8226C39.3723%2035.1099%2040.3808%2031.3214%2038.6681%2028.3622'%20fill='%23E86C7F'/%3e%3cpath%20d='M5.03455%2024.5075L23.2414%2013.8707C27.3441%2011.4734%2027.3294%205.54036%2023.2144%203.16518C20.2527%201.45495%2016.4666%202.46833%2014.7563%205.42995L4.21009%2023.688C3.90092%2024.2229%204.50209%2024.8191%205.03455%2024.5075Z'%20fill='%23F1A4A9'/%3e%3cpath%20d='M22.2477%2025.0276H21.5361V26.0729H20.4638V25.0276H17.4334V23.8449L20.0319%2020.9643H21.5385V24.1001H22.2501V25.0276H22.2477ZM20%2018.8345C17.4138%2018.8345%2015.3158%2020.9324%2015.3158%2023.5186C15.3158%2026.1048%2017.4138%2028.2027%2020%2028.2027C22.5863%2028.2027%2024.6842%2026.1048%2024.6842%2023.5186C24.6842%2020.9324%2022.5863%2018.8345%2020%2018.8345Z'%20fill='%23F3756A'/%3e%3cpath%20d='M18.5131%2024.0879V24.1026H20.4663V21.9261H20.4515L18.5131%2024.0879Z'%20fill='%23E86C7F'/%3e%3c/svg%3e", nr = "data:image/svg+xml,%3csvg%20width='40'%20height='40'%20viewBox='0%200%2040%2040'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M28.0753%2036.5429L9.75802%2026.0975C5.6308%2023.7444%200.5%2026.7256%200.5%2031.476C0.5%2034.8965%203.27274%2037.6667%206.69083%2037.6667H27.7784C28.3968%2037.6667%2028.6127%2036.8472%2028.0753%2036.5429Z'%20fill='%239291C7'/%3e%3cpath%20d='M38.6657%2028.3622L28.0973%2010.1165C27.7882%209.58158%2026.9711%209.80486%2026.976%2010.4232L27.1183%2031.5079C27.1502%2036.2582%2032.3006%2039.2051%2036.4131%2036.8226C39.3723%2035.1099%2040.3808%2031.3214%2038.6681%2028.3622'%20fill='%237D7DBB'/%3e%3cpath%20d='M5.03455%2024.5075L23.2414%2013.8707C27.3441%2011.4734%2027.3294%205.54036%2023.2144%203.16518C20.2527%201.45495%2016.4666%202.46833%2014.7563%205.42995L4.21009%2023.688C3.90092%2024.2229%204.50209%2024.8191%205.03455%2024.5075Z'%20fill='%23A9A8D4'/%3e%3cpath%20d='M20.1153%2026.3478C18.4517%2026.3478%2017.907%2026.019%2017.907%2024.9933V24.8019H19.0185V24.8878C19.0185%2025.3074%2019.2295%2025.408%2020.1031%2025.408C21.0895%2025.408%2021.195%2025.2829%2021.195%2024.5983C21.195%2023.9137%2021.0772%2023.7763%2020.1031%2023.7763C19.3473%2023.7763%2019.1437%2023.8622%2019.0774%2024.2032H17.9928V21.1337H22.1495V22.0808H19.0799V23.2782H19.0921C19.2712%2022.9764%2019.6786%2022.8782%2020.4589%2022.8782C21.7863%2022.8782%2022.3335%2023.234%2022.3335%2024.5737C22.3335%2025.9797%2021.887%2026.3478%2020.1178%2026.3478M20%2018.8345C17.4113%2018.8345%2015.3158%2020.9324%2015.3158%2023.5187C15.3158%2026.1049%2017.4138%2028.2028%2020%2028.2028C22.5863%2028.2028%2024.6842%2026.1049%2024.6842%2023.5187C24.6842%2020.9324%2022.5863%2018.8345%2020%2018.8345Z'%20fill='%239081BD'/%3e%3c/svg%3e", Ln = {
341
+ const $t = "data:image/svg+xml,%3csvg%20width='40'%20height='40'%20viewBox='0%200%2040%2040'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M27.7784%2037.6667H6.69083C3.27029%2037.6667%200.5%2034.894%200.5%2031.476C0.5%2026.7256%205.6308%2023.7444%209.75802%2026.0975L28.0753%2036.5429C28.6102%2036.8496%2028.3943%2037.6667%2027.7784%2037.6667Z'%20fill='%23E9AD80'/%3e%3cpath%20d='M28.0974%2010.1165L38.6657%2028.3622C40.3784%2031.3214%2039.3699%2035.1099%2036.4107%2036.8226C32.2982%2039.2027%2027.1477%2036.2582%2027.1159%2031.5079L26.9735%2010.4232C26.9686%209.80485%2027.7857%209.58401%2028.0949%2010.1165'%20fill='%23E49B67'/%3e%3cpath%20d='M4.21009%2023.6879L14.7563%205.42744C16.4666%202.46828%2020.2527%201.4549%2023.2144%203.16513C27.3294%205.54031%2027.3441%2011.4758%2023.2414%2013.8706L5.03455%2024.5074C4.50209%2024.8191%203.90092%2024.2228%204.21009%2023.6879Z'%20fill='%23ECC09C'/%3e%3cpath%20d='M20.8171%2025.9674H19.6737V21.9114H19.6614L18.3585%2023.0426L17.7278%2022.3187L19.3988%2020.8588H20.8196V25.9674H20.8171ZM20%2018.8345C17.4138%2018.8345%2015.3158%2020.9324%2015.3158%2023.5186C15.3158%2026.1048%2017.4138%2028.2027%2020%2028.2027C22.5863%2028.2027%2024.6842%2026.1048%2024.6842%2023.5186C24.6842%2020.9324%2022.5863%2018.8345%2020%2018.8345Z'%20fill='%23EFC160'/%3e%3c/svg%3e", er = "data:image/svg+xml,%3csvg%20width='40'%20height='40'%20viewBox='0%200%2040%2040'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M27.7784%2037.6667H6.69083C3.27029%2037.6667%200.5%2034.894%200.5%2031.476C0.5%2026.7256%205.6308%2023.7443%209.75802%2026.0974L28.0753%2036.5429C28.6127%2036.8496%2028.3943%2037.6667%2027.7784%2037.6667Z'%20fill='%2395C9EA'/%3e%3cpath%20d='M28.0974%2010.1165L38.6657%2028.3622C40.3784%2031.3214%2039.3699%2035.1099%2036.4107%2036.8226C32.2982%2039.2027%2027.1477%2036.2582%2027.1159%2031.5078L26.9735%2010.4232C26.9686%209.80483%2027.7857%209.584%2028.0974%2010.1165Z'%20fill='%237ABFE4'/%3e%3cpath%20d='M4.21009%2023.6879L14.7563%205.42746C16.4666%202.46829%2020.2527%201.45491%2023.2144%203.16514C27.3294%205.54033%2027.3441%2011.4758%2023.2414%2013.8707L5.03455%2024.5075C4.50209%2024.8191%203.90092%2024.2228%204.21009%2023.6879Z'%20fill='%23B0D5EE'/%3e%3cpath%20d='M22.2354%2025.9674H17.7646V24.9687C17.7646%2024.4044%2017.8702%2024.0093%2018.1253%2023.7517C18.3953%2023.4818%2018.783%2023.337%2019.7424%2023.1873C20.4515%2023.0745%2020.768%2022.996%2020.9128%2022.8512C21.011%2022.753%2021.0502%2022.6205%2021.0502%2022.3506C21.0502%2021.8182%2020.9251%2021.7004%2020.0123%2021.7004C19.0995%2021.7004%2018.9866%2021.8182%2018.9866%2022.4291V22.515H17.8554V22.3187C17.8554%2021.1483%2018.2309%2020.7533%2020.0246%2020.7533C21.8182%2020.7533%2022.2084%2021.1606%2022.2084%2022.331C22.2084%2022.8831%2022.1176%2023.2708%2021.8477%2023.5407C21.5655%2023.8179%2021.1508%2023.9554%2020.2503%2024.0928C19.4749%2024.2105%2019.1854%2024.2891%2019.048%2024.4289C18.9498%2024.5271%2018.9302%2024.6596%2018.9302%2024.9417V25.0129H22.2378V25.9674H22.2354ZM20%2018.8345C17.4138%2018.8345%2015.3158%2020.9324%2015.3158%2023.5186C15.3158%2026.1048%2017.4138%2028.2027%2020%2028.2027C22.5863%2028.2027%2024.6842%2026.1048%2024.6842%2023.5186C24.6842%2020.9324%2022.5863%2018.8345%2020%2018.8345Z'%20fill='%2396D7E1'/%3e%3c/svg%3e", tr = "data:image/svg+xml,%3csvg%20width='40'%20height='40'%20viewBox='0%200%2040%2040'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M28.0753%2036.5428L9.75802%2026.0974C5.6308%2023.7443%200.5%2026.7255%200.5%2031.4759C0.5%2034.8964%203.27274%2037.6666%206.69083%2037.6666H27.7784C28.3968%2037.6666%2028.6127%2036.8471%2028.0778%2036.5428'%20fill='%2398D2AE'/%3e%3cpath%20d='M38.6657%2028.3622L28.0973%2010.1165C27.7882%209.58158%2026.9711%209.80486%2026.976%2010.4232L27.1183%2031.5079C27.1502%2036.2582%2032.3006%2039.2051%2036.4131%2036.8226C39.3723%2035.1099%2040.3808%2031.3214%2038.6681%2028.3622'%20fill='%237FC99C'/%3e%3cpath%20d='M5.03455%2024.5075L23.2414%2013.8707C27.3441%2011.4734%2027.3294%205.54036%2023.2144%203.16518C20.2527%201.45495%2016.4666%202.46833%2014.7563%205.42995L4.21009%2023.688C3.90092%2024.2229%204.50209%2024.8191%205.03455%2024.5075Z'%20fill='%23B1DCC0'/%3e%3cpath%20d='M19.9976%2026.176C18.2824%2026.176%2017.7548%2025.8594%2017.7548%2024.6105V24.4117H18.8664V24.4976C18.8664%2025.1209%2019.0112%2025.2337%2019.9976%2025.2337C20.984%2025.2337%2021.1018%2025.1086%2021.1018%2024.5884C21.1018%2024.0682%2020.9496%2023.9504%2020.0221%2023.9504H19.4038V23.0229H20.0221C20.9496%2023.0229%2021.0478%2022.8978%2021.0478%2022.4193C21.0478%2021.9409%2020.8956%2021.801%2019.9706%2021.801C19.0455%2021.801%2018.9179%2021.9065%2018.9179%2022.4709V22.5567H17.8064V22.3604C17.8064%2021.163%2018.3192%2020.8612%2019.9951%2020.8612C21.671%2020.8612%2022.1912%2021.1974%2022.1912%2022.2427C22.1912%2022.9861%2021.9483%2023.3198%2021.3103%2023.4523V23.4646C21.9876%2023.6216%2022.2427%2023.9578%2022.2427%2024.7332C22.2427%2025.8447%2021.7103%2026.1735%2019.9951%2026.1735M20%2018.8345C17.4138%2018.8345%2015.3158%2020.9324%2015.3158%2023.5186C15.3158%2026.1048%2017.4138%2028.2027%2020%2028.2027C22.5863%2028.2027%2024.6842%2026.1048%2024.6842%2023.5186C24.6842%2020.9324%2022.5863%2018.8345%2020%2018.8345Z'%20fill='%238ECB84'/%3e%3c/svg%3e", rr = "data:image/svg+xml,%3csvg%20width='40'%20height='40'%20viewBox='0%200%2040%2040'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M28.0753%2036.5429L9.75802%2026.0975C5.6308%2023.7444%200.5%2026.7256%200.5%2031.476C0.5%2034.8965%203.27274%2037.6667%206.69083%2037.6667H27.7784C28.3968%2037.6667%2028.6127%2036.8472%2028.0778%2036.5429'%20fill='%23EC8792'/%3e%3cpath%20d='M38.6657%2028.3622L28.0973%2010.1165C27.7882%209.58158%2026.9711%209.80486%2026.976%2010.4232L27.1183%2031.5079C27.1502%2036.2582%2032.3006%2039.2051%2036.4131%2036.8226C39.3723%2035.1099%2040.3808%2031.3214%2038.6681%2028.3622'%20fill='%23E86C7F'/%3e%3cpath%20d='M5.03455%2024.5075L23.2414%2013.8707C27.3441%2011.4734%2027.3294%205.54036%2023.2144%203.16518C20.2527%201.45495%2016.4666%202.46833%2014.7563%205.42995L4.21009%2023.688C3.90092%2024.2229%204.50209%2024.8191%205.03455%2024.5075Z'%20fill='%23F1A4A9'/%3e%3cpath%20d='M22.2477%2025.0276H21.5361V26.0729H20.4638V25.0276H17.4334V23.8449L20.0319%2020.9643H21.5385V24.1001H22.2501V25.0276H22.2477ZM20%2018.8345C17.4138%2018.8345%2015.3158%2020.9324%2015.3158%2023.5186C15.3158%2026.1048%2017.4138%2028.2027%2020%2028.2027C22.5863%2028.2027%2024.6842%2026.1048%2024.6842%2023.5186C24.6842%2020.9324%2022.5863%2018.8345%2020%2018.8345Z'%20fill='%23F3756A'/%3e%3cpath%20d='M18.5131%2024.0879V24.1026H20.4663V21.9261H20.4515L18.5131%2024.0879Z'%20fill='%23E86C7F'/%3e%3c/svg%3e", nr = "data:image/svg+xml,%3csvg%20width='40'%20height='40'%20viewBox='0%200%2040%2040'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M28.0753%2036.5429L9.75802%2026.0975C5.6308%2023.7444%200.5%2026.7256%200.5%2031.476C0.5%2034.8965%203.27274%2037.6667%206.69083%2037.6667H27.7784C28.3968%2037.6667%2028.6127%2036.8472%2028.0753%2036.5429Z'%20fill='%239291C7'/%3e%3cpath%20d='M38.6657%2028.3622L28.0973%2010.1165C27.7882%209.58158%2026.9711%209.80486%2026.976%2010.4232L27.1183%2031.5079C27.1502%2036.2582%2032.3006%2039.2051%2036.4131%2036.8226C39.3723%2035.1099%2040.3808%2031.3214%2038.6681%2028.3622'%20fill='%237D7DBB'/%3e%3cpath%20d='M5.03455%2024.5075L23.2414%2013.8707C27.3441%2011.4734%2027.3294%205.54036%2023.2144%203.16518C20.2527%201.45495%2016.4666%202.46833%2014.7563%205.42995L4.21009%2023.688C3.90092%2024.2229%204.50209%2024.8191%205.03455%2024.5075Z'%20fill='%23A9A8D4'/%3e%3cpath%20d='M20.1153%2026.3478C18.4517%2026.3478%2017.907%2026.019%2017.907%2024.9933V24.8019H19.0185V24.8878C19.0185%2025.3074%2019.2295%2025.408%2020.1031%2025.408C21.0895%2025.408%2021.195%2025.2829%2021.195%2024.5983C21.195%2023.9137%2021.0772%2023.7763%2020.1031%2023.7763C19.3473%2023.7763%2019.1437%2023.8622%2019.0774%2024.2032H17.9928V21.1337H22.1495V22.0808H19.0799V23.2782H19.0921C19.2712%2022.9764%2019.6786%2022.8782%2020.4589%2022.8782C21.7863%2022.8782%2022.3335%2023.234%2022.3335%2024.5737C22.3335%2025.9797%2021.887%2026.3478%2020.1178%2026.3478M20%2018.8345C17.4113%2018.8345%2015.3158%2020.9324%2015.3158%2023.5187C15.3158%2026.1049%2017.4138%2028.2028%2020%2028.2028C22.5863%2028.2028%2024.6842%2026.1049%2024.6842%2023.5187C24.6842%2020.9324%2022.5863%2018.8345%2020%2018.8345Z'%20fill='%239081BD'/%3e%3c/svg%3e", Tn = {
342
342
  1: $t,
343
343
  2: er,
344
344
  3: tr,
@@ -346,10 +346,10 @@ const $t = "data:image/svg+xml,%3csvg%20width='40'%20height='40'%20viewBox='0%20
346
346
  5: nr
347
347
  };
348
348
  function ee({ triadNumber: e, className: r = "size-10" }) {
349
- const n = Ln[e];
349
+ const n = Tn[e];
350
350
  return n ? /* @__PURE__ */ t("img", { src: n, alt: "", className: `${r} shrink-0 object-contain` }) : null;
351
351
  }
352
- const Oe = "text-xl font-bold text-[color:var(--mb-color-text)]";
352
+ const Ee = "text-xl font-bold text-[color:var(--mb-color-text)]";
353
353
  function it({
354
354
  title: e,
355
355
  trailing: r,
@@ -357,12 +357,12 @@ function it({
357
357
  className: a = ""
358
358
  }) {
359
359
  return r && n ? /* @__PURE__ */ l("div", { className: `mb-2 flex items-center gap-1.5 ${a}`.trim(), children: [
360
- /* @__PURE__ */ t("h2", { className: Oe, children: e }),
360
+ /* @__PURE__ */ t("h2", { className: Ee, children: e }),
361
361
  r
362
362
  ] }) : r ? /* @__PURE__ */ l("div", { className: `mb-4 flex items-start justify-between gap-4 ${a}`.trim(), children: [
363
- /* @__PURE__ */ t("h2", { className: Oe, children: e }),
363
+ /* @__PURE__ */ t("h2", { className: Ee, children: e }),
364
364
  r
365
- ] }) : /* @__PURE__ */ t("h2", { className: `mb-2 ${Oe} ${a}`.trim(), children: e });
365
+ ] }) : /* @__PURE__ */ t("h2", { className: `mb-2 ${Ee} ${a}`.trim(), children: e });
366
366
  }
367
367
  function ar({ size: e = 14 }) {
368
368
  return /* @__PURE__ */ l(
@@ -388,8 +388,8 @@ const Pn = [
388
388
  { color: "#E53935", position: 0 },
389
389
  { color: "#FFB300", position: 50 },
390
390
  { color: "#4CAF50", position: 100 }
391
- ], Sn = ["0", "20", "40", "60", "80", "100"], Mn = 24, Ct = 26, At = 13, Hn = 2;
392
- function kn(e) {
391
+ ], Sn = ["0", "20", "40", "60", "80", "100"], Mn = 24, Ct = 26, At = 13, kn = 2;
392
+ function Hn(e) {
393
393
  return `linear-gradient(to right, ${e.map((n) => `${n.color} ${n.position}%`).join(", ")})`;
394
394
  }
395
395
  function or({
@@ -399,7 +399,7 @@ function or({
399
399
  labels: a,
400
400
  barHeight: o = Mn
401
401
  }) {
402
- const i = Math.min(100, Math.max(0, r)), s = `${i}%`, c = n ? At + Hn + o : o;
402
+ const i = Math.min(100, Math.max(0, r)), s = `${i}%`, c = n ? At + kn + o : o;
403
403
  return /* @__PURE__ */ l("div", { className: "w-full min-w-0", children: [
404
404
  /* @__PURE__ */ l("div", { className: "relative w-full", style: { height: c }, children: [
405
405
  /* @__PURE__ */ t(
@@ -431,7 +431,7 @@ function or({
431
431
  style: {
432
432
  height: "100%",
433
433
  width: i >= 100 ? "100%" : `${100 / i * 100}%`,
434
- background: kn(e)
434
+ background: Hn(e)
435
435
  }
436
436
  }
437
437
  )
@@ -462,13 +462,13 @@ const jn = {
462
462
  colorBadgeValueBg: "#EBEBEB",
463
463
  fontFamily: "ui-sans-serif, system-ui, sans-serif"
464
464
  };
465
- function $e(e) {
465
+ function et(e) {
466
466
  const r = e.trim();
467
467
  if (!r || typeof document > "u") return r;
468
468
  const n = document.createElement("div");
469
469
  return n.style.backgroundColor = r, n.style.backgroundColor || r;
470
470
  }
471
- function Tt(e) {
471
+ function Lt(e) {
472
472
  const r = e.trim();
473
473
  if (!r || typeof document > "u") return r;
474
474
  const n = document.createElement("div");
@@ -485,19 +485,19 @@ function Bn(e, r) {
485
485
  return `rgb(${o[0]}, ${o[1]}, ${o[2]})`;
486
486
  }
487
487
  function In(e, r) {
488
- const n = $e(r.trim() || "#ffffff"), a = $e(e.trim() || "#f1f5f9");
488
+ const n = et(r.trim() || "#ffffff"), a = et(e.trim() || "#f1f5f9");
489
489
  return Bn(a, n);
490
490
  }
491
491
  function st() {
492
- const e = F(null), [r, n] = H(null);
493
- return _e(() => {
492
+ const e = F(null), [r, n] = k(null);
493
+ return $e(() => {
494
494
  const a = e.current;
495
495
  if (!a) return;
496
496
  const o = getComputedStyle(a), i = o.getPropertyValue("--mb-color-text").trim() || "#1C2024", s = o.getPropertyValue("--mb-color-text-muted").trim() || "#64748b", c = o.getPropertyValue("--mb-color-card-border").trim() || "#e5e5e5", d = o.getPropertyValue("--mb-color-badge-value-bg").trim() || "#f1f5f9", m = o.getPropertyValue("--mb-color-card-bg").trim() || "#ffffff";
497
497
  n({
498
- colorText: Tt(i),
499
- colorTextMuted: Tt(s),
500
- colorCardBorder: $e(c),
498
+ colorText: Lt(i),
499
+ colorTextMuted: Lt(s),
500
+ colorCardBorder: et(c),
501
501
  colorBadgeValueBg: In(d, m),
502
502
  fontFamily: o.fontFamily || "ui-sans-serif, system-ui, sans-serif"
503
503
  });
@@ -507,7 +507,7 @@ function st() {
507
507
  themeReady: r !== null
508
508
  };
509
509
  }
510
- const Ee = 78;
510
+ const Fe = 78;
511
511
  function Dn(e, r, n) {
512
512
  const a = Math.min(100, Math.max(0, e));
513
513
  return {
@@ -560,20 +560,20 @@ function Rn({
560
560
  score: e,
561
561
  showIndicator: r = !0
562
562
  }) {
563
- Se();
563
+ Me();
564
564
  const { ref: n, theme: a, themeReady: o } = st(), i = j(() => Dn(e, r, a), [e, r, a]);
565
565
  return /* @__PURE__ */ t(
566
566
  "div",
567
567
  {
568
568
  ref: n,
569
569
  className: "relative min-w-0 w-full overflow-x-clip [&_.ag-charts-wrapper]:!overflow-x-clip [&_.ag-charts-wrapper]:!bg-transparent [&_.ag-charts-canvas-center]:!bg-transparent",
570
- style: { minHeight: Ee },
570
+ style: { minHeight: Fe },
571
571
  children: /* @__PURE__ */ t(
572
572
  lt,
573
573
  {
574
574
  options: i,
575
575
  className: "block min-w-0 w-full overflow-x-clip",
576
- style: { height: Ee, minHeight: Ee }
576
+ style: { height: Fe, minHeight: Fe }
577
577
  },
578
578
  o ? "mb-branded" : "mb-fallback"
579
579
  )
@@ -582,7 +582,7 @@ function Rn({
582
582
  }
583
583
  const zn = 3e3, On = 5e3, En = 330;
584
584
  function Fn(e, r, n, a) {
585
- const o = r > 0 ? r : 1, i = Math.min(zn, o), s = Math.min(On, o), c = i + (s - i) * 0.33, d = i + (s - i) * 0.66, m = Array.from({ length: 8 }, (b, p) => Math.round(o * p / 7));
585
+ const o = r > 0 ? r : 1, i = Math.min(zn, o), s = Math.min(On, o), c = i + (s - i) * 0.33, d = i + (s - i) * 0.66, m = Array.from({ length: 8 }, (b, g) => Math.round(o * g / 7));
586
586
  return {
587
587
  type: "radial-gauge",
588
588
  value: Math.min(o, Math.max(0, e)),
@@ -642,7 +642,7 @@ function lr({
642
642
  max: r,
643
643
  centerValueColor: n
644
644
  }) {
645
- Se();
645
+ Me();
646
646
  const { ref: a, theme: o, themeReady: i } = st(), s = j(
647
647
  () => Fn(e, r, o, n),
648
648
  [e, r, o, n]
@@ -664,7 +664,7 @@ function lr({
664
664
  }
665
665
  );
666
666
  }
667
- function ne({ className: e }) {
667
+ function re({ className: e }) {
668
668
  return /* @__PURE__ */ l(
669
669
  "svg",
670
670
  {
@@ -877,13 +877,13 @@ function Yn({
877
877
  {
878
878
  className: r ? "flex min-h-11 w-full items-center gap-3 p-3" : "flex min-h-11 w-full items-center gap-3 border-t border-[color:rgba(0,0,47,0.15)] p-3",
879
879
  children: [
880
- /* @__PURE__ */ t("span", { className: "inline-flex size-4 shrink-0 items-center justify-center text-[color:var(--mb-color-text)]", children: /* @__PURE__ */ t(ne, { className: "size-4" }) }),
880
+ /* @__PURE__ */ t("span", { className: "inline-flex size-4 shrink-0 items-center justify-center text-[color:var(--mb-color-text)]", children: /* @__PURE__ */ t(re, { className: "size-4" }) }),
881
881
  /* @__PURE__ */ t("p", { className: "min-w-0 flex-1 text-sm leading-5 text-[color:var(--mb-color-text)]", children: e })
882
882
  ]
883
883
  }
884
884
  );
885
885
  }
886
- const be = [
886
+ const he = [
887
887
  { color: "#E97180", activeColor: "#F05452", label: "Low Alert" },
888
888
  { color: "#E1CB7F", activeColor: "#E2CC00", label: "Low Normal" },
889
889
  { color: "#86CD95", activeColor: "#459D54", label: "Optimal" },
@@ -893,7 +893,7 @@ const be = [
893
893
  { color: "#86CD95", activeColor: "#459D54", label: "Low Trend" },
894
894
  { color: "#E1CB7F", activeColor: "#E2CC00", label: "Moderate Trend" },
895
895
  { color: "#E97180", activeColor: "#F05452", label: "High Trend" }
896
- ], Xn = 24, et = 12, mr = 14, Fe = 32, Vn = 26;
896
+ ], Xn = 24, tt = 12, mr = 14, Ge = 32, Vn = 26;
897
897
  function Zn(e, r, n) {
898
898
  const a = Math.min(100, Math.max(0, e));
899
899
  if (n === "continuous") return a;
@@ -908,7 +908,7 @@ function Wn(e) {
908
908
  b: parseInt(r.slice(4, 6), 16)
909
909
  };
910
910
  }
911
- function Lt(e, r = 0.3) {
911
+ function Tt(e, r = 0.3) {
912
912
  const n = Wn(e);
913
913
  if (!n) return e;
914
914
  const a = Math.round(n.r + (255 - n.r) * (1 - r)), o = Math.round(n.g + (255 - n.g) * (1 - r)), i = Math.round(n.b + (255 - n.b) * (1 - r));
@@ -916,11 +916,11 @@ function Lt(e, r = 0.3) {
916
916
  }
917
917
  function Un(e, r) {
918
918
  const n = e.length, a = e.slice(0, -1).map((i, s) => ({
919
- color: s === r ? i.activeColor ?? i.color : Lt(i.color),
919
+ color: s === r ? i.activeColor ?? i.color : Tt(i.color),
920
920
  stop: (s + 1) * 100 / n
921
921
  })), o = e[n - 1];
922
922
  return a.push({
923
- color: n - 1 === r ? o.activeColor ?? o.color : Lt(o.color),
923
+ color: n - 1 === r ? o.activeColor ?? o.color : Tt(o.color),
924
924
  stop: void 0
925
925
  }), a;
926
926
  }
@@ -930,7 +930,7 @@ function Qn(e, r) {
930
930
  direction: "horizontal",
931
931
  value: 0,
932
932
  background: { fill: "transparent" },
933
- padding: { top: 2, right: mr, bottom: 4, left: et },
933
+ padding: { top: 2, right: mr, bottom: 4, left: tt },
934
934
  tooltip: { enabled: !1 },
935
935
  highlight: { enabled: !1 },
936
936
  targets: [],
@@ -965,23 +965,23 @@ function oe({
965
965
  showIndicator: a = !0,
966
966
  highlightedSegmentIndex: o
967
967
  }) {
968
- Se();
968
+ Me();
969
969
  const i = e.length, s = o !== void 0 ? Math.min(i - 1, Math.max(0, o)) : ur(r, i), c = j(() => Qn(e, s), [e, s]);
970
970
  if (i === 0) return null;
971
- const d = Zn(r, i, n), m = `calc(${et}px + (100% - ${et + mr}px) * ${d / 100})`;
971
+ const d = Zn(r, i, n), m = `calc(${tt}px + (100% - ${tt + mr}px) * ${d / 100})`;
972
972
  return /* @__PURE__ */ l("div", { className: "w-full", children: [
973
973
  /* @__PURE__ */ l(
974
974
  "div",
975
975
  {
976
976
  className: "relative w-full overflow-visible [&_.ag-charts-wrapper]:!overflow-visible [&_.ag-charts-wrapper]:!bg-transparent [&_.ag-charts-canvas-center]:!bg-transparent",
977
- style: { minHeight: Fe },
977
+ style: { minHeight: Ge },
978
978
  children: [
979
979
  /* @__PURE__ */ t(
980
980
  lt,
981
981
  {
982
982
  options: c,
983
983
  className: "pointer-events-none block w-full overflow-visible",
984
- style: { height: Fe, minHeight: Fe }
984
+ style: { height: Ge, minHeight: Ge }
985
985
  }
986
986
  ),
987
987
  a ? /* @__PURE__ */ t(
@@ -1003,7 +1003,7 @@ function oe({
1003
1003
  {
1004
1004
  className: "mt-1.5 grid gap-x-0.5 gap-y-1 text-center text-[10px] leading-snug text-[color:var(--mb-color-text-muted)] sm:text-[11px]",
1005
1005
  style: { gridTemplateColumns: `repeat(${i}, minmax(0, 1fr))` },
1006
- children: e.map((b, p) => /* @__PURE__ */ t("span", { className: "min-w-0 break-words px-0.5", children: b.label }, `${b.label}-${p}`))
1006
+ children: e.map((b, g) => /* @__PURE__ */ t("span", { className: "min-w-0 break-words px-0.5", children: b.label }, `${b.label}-${g}`))
1007
1007
  }
1008
1008
  )
1009
1009
  ] });
@@ -1057,17 +1057,17 @@ function $n({
1057
1057
  ) : null;
1058
1058
  }) });
1059
1059
  }
1060
- const tt = 292, ue = 240, Pt = 50;
1060
+ const rt = 292, be = 240, Pt = 50;
1061
1061
  function ea(e) {
1062
1062
  return e > 1 ? Math.min(1, e / 100) : Math.max(0, Math.min(1, e));
1063
1063
  }
1064
1064
  function ta(e, r, n, a) {
1065
1065
  return {
1066
1066
  data: e,
1067
- width: tt,
1068
- height: ue,
1069
- minWidth: tt,
1070
- minHeight: ue,
1067
+ width: rt,
1068
+ height: be,
1069
+ minWidth: rt,
1070
+ minHeight: be,
1071
1071
  background: { fill: "transparent" },
1072
1072
  padding: { top: 2, right: 4, bottom: 2, left: 4 },
1073
1073
  animation: { enabled: !1 },
@@ -1128,7 +1128,7 @@ function ra({
1128
1128
  fill: n,
1129
1129
  stroke: a
1130
1130
  }) {
1131
- Se();
1131
+ Me();
1132
1132
  const { ref: o, theme: i, themeReady: s } = st(), c = j(() => e.map((m, b) => ({
1133
1133
  category: m,
1134
1134
  value: ea(r[b] ?? 0) * 100
@@ -1141,7 +1141,7 @@ function ra({
1141
1141
  {
1142
1142
  ref: o,
1143
1143
  className: "mx-auto w-full max-w-[292px] shrink-0 overflow-hidden leading-none [&_.ag-charts-wrapper]:!bg-transparent [&_.ag-charts-canvas-center]:!bg-transparent",
1144
- style: { width: `min(100%, ${tt}px)`, height: ue },
1144
+ style: { width: `min(100%, ${rt}px)`, height: be },
1145
1145
  role: "img",
1146
1146
  "aria-label": `Radar chart for ${e.join(", ")}`,
1147
1147
  children: /* @__PURE__ */ t(
@@ -1149,7 +1149,7 @@ function ra({
1149
1149
  {
1150
1150
  options: d,
1151
1151
  className: "block h-full w-full max-h-full",
1152
- style: { height: ue, maxHeight: ue }
1152
+ style: { height: be, maxHeight: be }
1153
1153
  },
1154
1154
  s ? "tr-branded" : "tr-fallback"
1155
1155
  )
@@ -1158,7 +1158,7 @@ function ra({
1158
1158
  }
1159
1159
  function na({ text: e }) {
1160
1160
  return /* @__PURE__ */ l("div", { className: "flex min-h-11 items-center gap-3 py-2", children: [
1161
- /* @__PURE__ */ t(ne, { className: "shrink-0" }),
1161
+ /* @__PURE__ */ t(re, { className: "shrink-0" }),
1162
1162
  /* @__PURE__ */ t("span", { className: "text-sm leading-snug text-[color:var(--mb-color-text)]", children: e })
1163
1163
  ] });
1164
1164
  }
@@ -1169,11 +1169,11 @@ function St({ rows: e = [] }) {
1169
1169
  className: `grid grid-cols-1 border-[rgba(0,0,47,0.15)] sm:grid-cols-2 ${n > 0 ? "border-t" : ""}`,
1170
1170
  children: [
1171
1171
  /* @__PURE__ */ l("div", { className: "flex min-h-11 min-w-0 items-center gap-3 px-3 py-2.5", children: [
1172
- /* @__PURE__ */ t(ne, { className: "shrink-0" }),
1172
+ /* @__PURE__ */ t(re, { className: "shrink-0" }),
1173
1173
  /* @__PURE__ */ t("span", { className: "min-w-0 text-sm leading-snug text-[color:var(--mb-color-text)]", children: r.left })
1174
1174
  ] }),
1175
- /* @__PURE__ */ t("div", { className: "flex min-h-11 min-w-0 items-center gap-3 border-t border-[rgba(0,0,47,0.15)] px-3 py-2.5 sm:border-t-0 sm:border-[rgba(0,0,47,0.15)]", children: r.right ? /* @__PURE__ */ l(te, { children: [
1176
- /* @__PURE__ */ t(ne, { className: "shrink-0" }),
1175
+ /* @__PURE__ */ t("div", { className: "flex min-h-11 min-w-0 items-center gap-3 border-t border-[rgba(0,0,47,0.15)] px-3 py-2.5 sm:border-t-0 sm:border-[rgba(0,0,47,0.15)]", children: r.right ? /* @__PURE__ */ l(ae, { children: [
1176
+ /* @__PURE__ */ t(re, { className: "shrink-0" }),
1177
1177
  /* @__PURE__ */ t("span", { className: "min-w-0 text-sm leading-snug text-[color:var(--mb-color-text)]", children: r.right })
1178
1178
  ] }) : null })
1179
1179
  ]
@@ -1181,7 +1181,7 @@ function St({ rows: e = [] }) {
1181
1181
  `${r.left}-${n}`
1182
1182
  )) });
1183
1183
  }
1184
- function Ls(e) {
1184
+ function Ps(e) {
1185
1185
  const {
1186
1186
  metricTitle: r,
1187
1187
  statusText: n,
@@ -1192,8 +1192,8 @@ function Ls(e) {
1192
1192
  riskRows: c,
1193
1193
  nutrientsLeadParagraph: d,
1194
1194
  nutrientRows: m
1195
- } = e, b = Kn(be, a);
1196
- return /* @__PURE__ */ l(T, { className: "flex flex-col gap-4", children: [
1195
+ } = e, b = Kn(he, a);
1196
+ return /* @__PURE__ */ l(L, { className: "flex flex-col gap-4", children: [
1197
1197
  /* @__PURE__ */ l("div", { className: "flex flex-wrap items-start justify-between gap-3", children: [
1198
1198
  /* @__PURE__ */ t("h2", { className: "text-xl font-bold text-[color:var(--mb-color-text)]", children: r }),
1199
1199
  /* @__PURE__ */ t("p", { className: "text-xl font-bold", style: { color: b }, children: n })
@@ -1201,7 +1201,7 @@ function Ls(e) {
1201
1201
  /* @__PURE__ */ t(
1202
1202
  oe,
1203
1203
  {
1204
- segments: be,
1204
+ segments: he,
1205
1205
  indicatorPercent: a,
1206
1206
  indicatorPosition: "segmentCenter"
1207
1207
  }
@@ -1227,7 +1227,7 @@ function Mt(e) {
1227
1227
  return 50;
1228
1228
  }
1229
1229
  }
1230
- function re(e) {
1230
+ function te(e) {
1231
1231
  return Math.min(100, Math.max(0, e));
1232
1232
  }
1233
1233
  function He(e) {
@@ -1237,74 +1237,74 @@ function He(e) {
1237
1237
  }
1238
1238
  function aa(e, r, n, a) {
1239
1239
  if (n !== void 0 && Number.isFinite(n))
1240
- return re(n);
1240
+ return te(n);
1241
1241
  if (e === null || !Number.isFinite(e)) return 50;
1242
1242
  const o = (a == null ? void 0 : a.mapping) ?? "relativeTotal", i = r.filter((v) => v !== null && Number.isFinite(v));
1243
1243
  if (o === "relativeTotal") {
1244
1244
  if (i.length === 0) return 50;
1245
1245
  const v = Math.min(...i), u = Math.max(...i);
1246
- return u === v ? 50 : re((e - v) / (u - v) * 100);
1246
+ return u === v ? 50 : te((e - v) / (u - v) * 100);
1247
1247
  }
1248
1248
  if (o === "absoluteLinear") {
1249
1249
  const v = (a == null ? void 0 : a.scaleMin) ?? 0, u = (a == null ? void 0 : a.scaleMax) ?? 200;
1250
- return u === v ? 50 : re((e - v) / (u - v) * 100);
1250
+ return u === v ? 50 : te((e - v) / (u - v) * 100);
1251
1251
  }
1252
1252
  const s = (a == null ? void 0 : a.thresholdLowBelow) ?? 100, c = (a == null ? void 0 : a.thresholdHighAbove) ?? 160;
1253
1253
  if (c <= s) return 50;
1254
1254
  const d = 100 / 3;
1255
1255
  if (e <= s) {
1256
1256
  const v = s > 0 ? s : 1;
1257
- return re(e / v * d);
1257
+ return te(e / v * d);
1258
1258
  }
1259
1259
  if (e <= c) {
1260
1260
  const v = c - s, u = v > 0 ? (e - s) / v : 0;
1261
- return re(d + u * d);
1261
+ return te(d + u * d);
1262
1262
  }
1263
- const m = c - s, b = m > 0 ? m : 1, p = Math.min(1, (e - c) / b);
1264
- return re(2 * d + p * d);
1263
+ const m = c - s, b = m > 0 ? m : 1, g = Math.min(1, (e - c) / b);
1264
+ return te(2 * d + g * d);
1265
1265
  }
1266
1266
  function Z({ content: e, children: r, side: n = "top" }) {
1267
- const a = at(), o = F(null), i = F(null), [s, c] = H(!1), [d, m] = H(null), b = F(null), p = B(() => {
1267
+ const a = at(), o = F(null), i = F(null), [s, c] = k(!1), [d, m] = k(null), b = F(null), g = I(() => {
1268
1268
  b.current !== null && cancelAnimationFrame(b.current), b.current = requestAnimationFrame(() => {
1269
1269
  b.current = null;
1270
- const f = o.current, h = i.current;
1271
- if (!f || !h) return;
1272
- const g = f.getBoundingClientRect(), y = h.getBoundingClientRect(), C = 4, N = 12, w = window.innerWidth, P = window.innerHeight;
1273
- let A = n === "top" ? g.top - y.height - C : g.bottom + C, S = g.left + g.width / 2 - y.width / 2;
1274
- S = Math.max(N, Math.min(S, w - y.width - N)), n === "top" && A < N ? A = g.bottom + C : n === "bottom" && A + y.height > P - N && (A = g.top - y.height - C), A = Math.max(N, Math.min(A, P - y.height - N)), m({ top: A, left: S });
1270
+ const h = o.current, f = i.current;
1271
+ if (!h || !f) return;
1272
+ const p = h.getBoundingClientRect(), y = f.getBoundingClientRect(), C = 4, N = 12, w = window.innerWidth, P = window.innerHeight;
1273
+ let A = n === "top" ? p.top - y.height - C : p.bottom + C, S = p.left + p.width / 2 - y.width / 2;
1274
+ S = Math.max(N, Math.min(S, w - y.width - N)), n === "top" && A < N ? A = p.bottom + C : n === "bottom" && A + y.height > P - N && (A = p.top - y.height - C), A = Math.max(N, Math.min(A, P - y.height - N)), m({ top: A, left: S });
1275
1275
  });
1276
1276
  }, [n]);
1277
- _e(() => {
1277
+ $e(() => {
1278
1278
  if (!s) {
1279
1279
  b.current !== null && (cancelAnimationFrame(b.current), b.current = null), m(null);
1280
1280
  return;
1281
1281
  }
1282
- return window.addEventListener("scroll", p, !0), window.addEventListener("resize", p), () => {
1283
- b.current !== null && (cancelAnimationFrame(b.current), b.current = null), window.removeEventListener("scroll", p, !0), window.removeEventListener("resize", p);
1282
+ return window.addEventListener("scroll", g, !0), window.addEventListener("resize", g), () => {
1283
+ b.current !== null && (cancelAnimationFrame(b.current), b.current = null), window.removeEventListener("scroll", g, !0), window.removeEventListener("resize", g);
1284
1284
  };
1285
- }, [s, p, e]), _e(() => {
1286
- s && p();
1285
+ }, [s, g, e]), $e(() => {
1286
+ s && g();
1287
1287
  });
1288
1288
  const v = $r(r) ? en(r, {
1289
1289
  "aria-describedby": s ? a : void 0,
1290
- onMouseEnter: (f) => {
1291
- var h, g;
1292
- (g = (h = r.props).onMouseEnter) == null || g.call(h, f), c(!0);
1290
+ onMouseEnter: (h) => {
1291
+ var f, p;
1292
+ (p = (f = r.props).onMouseEnter) == null || p.call(f, h), c(!0);
1293
1293
  },
1294
- onMouseLeave: (f) => {
1295
- var h, g;
1296
- (g = (h = r.props).onMouseLeave) == null || g.call(h, f), c(!1);
1294
+ onMouseLeave: (h) => {
1295
+ var f, p;
1296
+ (p = (f = r.props).onMouseLeave) == null || p.call(f, h), c(!1);
1297
1297
  },
1298
- onFocus: (f) => {
1299
- var h, g;
1300
- (g = (h = r.props).onFocus) == null || g.call(h, f), c(!0);
1298
+ onFocus: (h) => {
1299
+ var f, p;
1300
+ (p = (f = r.props).onFocus) == null || p.call(f, h), c(!0);
1301
1301
  },
1302
- onBlur: (f) => {
1303
- var h, g;
1304
- (g = (h = r.props).onBlur) == null || g.call(h, f), c(!1);
1302
+ onBlur: (h) => {
1303
+ var f, p;
1304
+ (p = (f = r.props).onBlur) == null || p.call(f, h), c(!1);
1305
1305
  }
1306
1306
  }) : r, u = typeof document < "u" ? document.body : null;
1307
- return /* @__PURE__ */ l(te, { children: [
1307
+ return /* @__PURE__ */ l(ae, { children: [
1308
1308
  /* @__PURE__ */ t("span", { ref: o, className: "inline-flex", children: v }),
1309
1309
  s && u ? Jt(
1310
1310
  /* @__PURE__ */ t(
@@ -1334,7 +1334,7 @@ function Z({ content: e, children: r, side: n = "top" }) {
1334
1334
  ] });
1335
1335
  }
1336
1336
  const X = "rounded-full p-0.5 text-[color:var(--mb-color-text-muted)] transition hover:text-[color:var(--mb-color-text)] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[color:var(--mb-color-focus-ring)]", oa = "whitespace-nowrap !border-[color:var(--mb-color-card-inline-button-border)] !bg-[color:var(--mb-color-card-inline-button-bg)] !px-3 !py-2 !text-sm !font-medium !text-[color:var(--mb-color-card-inline-button-text)] [&_svg]:!text-[color:var(--mb-color-card-inline-button-text)] !shadow-none hover:!bg-[color:var(--mb-color-card-inline-button-hover)]", br = "whitespace-nowrap !border-[color:var(--mb-color-card-border)] !bg-transparent !px-3 !py-2 !text-sm !font-medium !text-[color:var(--mb-color-text)] [&_svg]:!text-[color:var(--mb-color-text)] !shadow-none transition-[background-color,border-color] duration-150 ease-out hover:!border-[color:var(--mb-color-button-border)] hover:!bg-[color:var(--mb-color-card-inline-button-hover)] disabled:hover:!border-[color:var(--mb-color-card-border)] disabled:hover:!bg-transparent";
1337
- function Ce({
1337
+ function Ae({
1338
1338
  value: e,
1339
1339
  variant: r = "default",
1340
1340
  className: n = ""
@@ -1389,7 +1389,7 @@ function de({
1389
1389
  }
1390
1390
  );
1391
1391
  }
1392
- function Ge({
1392
+ function Ye({
1393
1393
  ariaLabel: e,
1394
1394
  tooltip: r,
1395
1395
  onClick: n
@@ -1406,7 +1406,7 @@ function Ge({
1406
1406
  }
1407
1407
  ) });
1408
1408
  }
1409
- function ke({
1409
+ function je({
1410
1410
  segments: e,
1411
1411
  indicatorPercent: r,
1412
1412
  indicatorPosition: n = "segmentCenter"
@@ -1433,7 +1433,7 @@ function me(e, r) {
1433
1433
  const n = e.length, a = Math.min(100, Math.max(0, r)), o = 100 / n, i = Math.min(n - 1, Math.floor(a / o));
1434
1434
  return (s = e[i]) == null ? void 0 : s.color;
1435
1435
  }
1436
- function Ht({
1436
+ function kt({
1437
1437
  columnHeaders: e,
1438
1438
  rows: r,
1439
1439
  rangeBar: n
@@ -1453,7 +1453,7 @@ function Ht({
1453
1453
  }
1454
1454
  ),
1455
1455
  /* @__PURE__ */ t("div", { className: "flex min-w-0 justify-start self-center py-2.5", children: /* @__PURE__ */ t(
1456
- Ce,
1456
+ Ae,
1457
1457
  {
1458
1458
  value: a.current,
1459
1459
  variant: a.valueVariant,
@@ -1461,7 +1461,7 @@ function Ht({
1461
1461
  }
1462
1462
  ) }),
1463
1463
  /* @__PURE__ */ t("div", { className: "flex min-w-0 justify-start self-center py-2.5", children: /* @__PURE__ */ t(
1464
- Ce,
1464
+ Ae,
1465
1465
  {
1466
1466
  value: a.previous,
1467
1467
  variant: a.valueVariant,
@@ -1471,7 +1471,7 @@ function Ht({
1471
1471
  o < r.length - 1 ? /* @__PURE__ */ t("div", { className: "col-span-full border-b border-gray-200" }) : null
1472
1472
  ] }, `${a.label}-${o}`))
1473
1473
  ] }),
1474
- /* @__PURE__ */ t(ke, { ...n })
1474
+ /* @__PURE__ */ t(je, { ...n })
1475
1475
  ] });
1476
1476
  }
1477
1477
  function sa({
@@ -1491,12 +1491,12 @@ function sa({
1491
1491
  children: n.label
1492
1492
  }
1493
1493
  ),
1494
- /* @__PURE__ */ t(Ce, { value: n.value, variant: n.valueVariant ?? "default" })
1494
+ /* @__PURE__ */ t(Ae, { value: n.value, variant: n.valueVariant ?? "default" })
1495
1495
  ]
1496
1496
  },
1497
1497
  `${a}-${n.label}`
1498
1498
  )) }),
1499
- /* @__PURE__ */ t(ke, { ...r })
1499
+ /* @__PURE__ */ t(je, { ...r })
1500
1500
  ] });
1501
1501
  }
1502
1502
  function ca({
@@ -1531,7 +1531,7 @@ function ca({
1531
1531
  },
1532
1532
  o
1533
1533
  )) }),
1534
- /* @__PURE__ */ t(ke, { ...r })
1534
+ /* @__PURE__ */ t(je, { ...r })
1535
1535
  ] });
1536
1536
  }
1537
1537
  function da({
@@ -1551,26 +1551,26 @@ function da({
1551
1551
  className: "flex flex-col gap-1.5 py-2.5 sm:flex-row sm:items-center sm:justify-between sm:gap-3",
1552
1552
  children: [
1553
1553
  /* @__PURE__ */ t("span", { className: "shrink-0 text-sm text-[color:var(--mb-color-text)]", children: i.label }),
1554
- /* @__PURE__ */ t("div", { className: "flex min-w-0 justify-start sm:justify-end", children: /* @__PURE__ */ t(Ce, { value: i.value, className: "max-w-full whitespace-normal text-center" }) })
1554
+ /* @__PURE__ */ t("div", { className: "flex min-w-0 justify-start sm:justify-end", children: /* @__PURE__ */ t(Ae, { value: i.value, className: "max-w-full whitespace-normal text-center" }) })
1555
1555
  ]
1556
1556
  },
1557
1557
  `${s}-${i.label}`
1558
1558
  )) }),
1559
- /* @__PURE__ */ t(ke, { ...a })
1559
+ /* @__PURE__ */ t(je, { ...a })
1560
1560
  ] });
1561
1561
  }
1562
- function ae(e) {
1562
+ function ne(e) {
1563
1563
  if (e.layout === "labAnalysis") {
1564
- const { title: u, markers: f, trendZone: h } = e, g = Mt(h), y = me(Y, g);
1564
+ const { title: u, markers: h, trendZone: f } = e, p = Mt(f), y = me(Y, p);
1565
1565
  return /* @__PURE__ */ l(ce, { trendColor: y, children: [
1566
1566
  /* @__PURE__ */ t(de, { title: u, trendColor: y }),
1567
1567
  /* @__PURE__ */ t(
1568
1568
  ca,
1569
1569
  {
1570
- markers: f,
1570
+ markers: h,
1571
1571
  rangeBar: {
1572
1572
  segments: Y,
1573
- indicatorPercent: g,
1573
+ indicatorPercent: p,
1574
1574
  indicatorPosition: "segmentCenter"
1575
1575
  }
1576
1576
  }
@@ -1578,19 +1578,19 @@ function ae(e) {
1578
1578
  ] });
1579
1579
  }
1580
1580
  if (e.layout === "labResults") {
1581
- const { category: u, onInfoClick: f } = e, h = me(Y, u.indicatorPercent);
1582
- return /* @__PURE__ */ l(ce, { trendColor: h, children: [
1581
+ const { category: u, onInfoClick: h } = e, f = me(Y, u.indicatorPercent);
1582
+ return /* @__PURE__ */ l(ce, { trendColor: f, children: [
1583
1583
  /* @__PURE__ */ t(
1584
1584
  de,
1585
1585
  {
1586
1586
  title: u.title,
1587
- trendColor: h,
1587
+ trendColor: f,
1588
1588
  trailingInfo: /* @__PURE__ */ t(
1589
- Ge,
1589
+ Ye,
1590
1590
  {
1591
1591
  ariaLabel: u.infoAriaLabel,
1592
1592
  tooltip: u.infoTooltip ?? u.infoAriaLabel,
1593
- onClick: f
1593
+ onClick: h
1594
1594
  }
1595
1595
  )
1596
1596
  }
@@ -1613,14 +1613,14 @@ function ae(e) {
1613
1613
  if (e.layout === "metricRows") {
1614
1614
  const {
1615
1615
  title: u,
1616
- infoAriaLabel: f,
1617
- infoTooltip: h,
1618
- onInfoClick: g,
1616
+ infoAriaLabel: h,
1617
+ infoTooltip: f,
1618
+ onInfoClick: p,
1619
1619
  showInfoButton: y = !0,
1620
1620
  rows: C,
1621
1621
  indicatorPercent: N,
1622
1622
  indicatorPosition: w,
1623
- segments: P = be
1623
+ segments: P = he
1624
1624
  } = e, A = me(P, N);
1625
1625
  return /* @__PURE__ */ l(ce, { trendColor: A, children: [
1626
1626
  /* @__PURE__ */ t(
@@ -1629,11 +1629,11 @@ function ae(e) {
1629
1629
  title: u,
1630
1630
  trendColor: A,
1631
1631
  trailingInfo: y ? /* @__PURE__ */ t(
1632
- Ge,
1632
+ Ye,
1633
1633
  {
1634
- ariaLabel: f,
1635
- tooltip: h ?? f,
1636
- onClick: g
1634
+ ariaLabel: h,
1635
+ tooltip: f ?? h,
1636
+ onClick: p
1637
1637
  }
1638
1638
  ) : void 0
1639
1639
  }
@@ -1654,9 +1654,9 @@ function ae(e) {
1654
1654
  if (e.layout === "questionnaire") {
1655
1655
  const {
1656
1656
  category: u,
1657
- currentRangeLabel: f = "Current Range",
1658
- previousRangeLabel: h = "Previous Range",
1659
- onInfoClick: g
1657
+ currentRangeLabel: h = "Current Range",
1658
+ previousRangeLabel: f = "Previous Range",
1659
+ onInfoClick: p
1660
1660
  } = e, y = Mt(u.trendZone), C = me(Y, y);
1661
1661
  return /* @__PURE__ */ l(ce, { trendColor: C, children: [
1662
1662
  /* @__PURE__ */ t(
@@ -1665,19 +1665,19 @@ function ae(e) {
1665
1665
  title: u.title,
1666
1666
  trendColor: C,
1667
1667
  trailingInfo: /* @__PURE__ */ t(
1668
- Ge,
1668
+ Ye,
1669
1669
  {
1670
1670
  ariaLabel: u.infoAriaLabel,
1671
1671
  tooltip: u.infoTooltip ?? u.infoAriaLabel,
1672
- onClick: g
1672
+ onClick: p
1673
1673
  }
1674
1674
  )
1675
1675
  }
1676
1676
  ),
1677
1677
  /* @__PURE__ */ t(
1678
- Ht,
1678
+ kt,
1679
1679
  {
1680
- columnHeaders: [f, h],
1680
+ columnHeaders: [h, f],
1681
1681
  rows: [
1682
1682
  {
1683
1683
  label: "Symptom Score",
@@ -1721,7 +1721,7 @@ function ae(e) {
1721
1721
  children: /* @__PURE__ */ l(ce, { trendColor: d, children: [
1722
1722
  /* @__PURE__ */ t(de, { title: r.title, trendColor: d }),
1723
1723
  /* @__PURE__ */ t(
1724
- Ht,
1724
+ kt,
1725
1725
  {
1726
1726
  columnHeaders: [n, a],
1727
1727
  rows: [
@@ -1772,7 +1772,7 @@ function ua(e) {
1772
1772
  descriptionPrimary: c,
1773
1773
  descriptionSecondary: d
1774
1774
  } = e;
1775
- return /* @__PURE__ */ l(T, { className: "flex min-w-0 flex-col", children: [
1775
+ return /* @__PURE__ */ l(L, { className: "flex min-w-0 flex-col", children: [
1776
1776
  /* @__PURE__ */ l("div", { className: "mb-6 flex flex-wrap items-center justify-between gap-3", children: [
1777
1777
  /* @__PURE__ */ l("div", { className: "flex min-w-0 flex-1 items-center gap-2", children: [
1778
1778
  /* @__PURE__ */ t(ee, { triadNumber: r }),
@@ -1787,7 +1787,7 @@ function ua(e) {
1787
1787
  )
1788
1788
  ] }),
1789
1789
  /* @__PURE__ */ t(
1790
- ae,
1790
+ ne,
1791
1791
  {
1792
1792
  layout: "labAnalysis",
1793
1793
  title: o,
@@ -1802,13 +1802,13 @@ function ua(e) {
1802
1802
  ] });
1803
1803
  }
1804
1804
  const ba = "flex items-baseline justify-between gap-3", ha = "text-[color:var(--mb-color-text-muted)]", fa = "text-right font-medium text-[color:var(--mb-color-text)]";
1805
- function kt({ label: e, value: r }) {
1805
+ function Ht({ label: e, value: r }) {
1806
1806
  return /* @__PURE__ */ l("div", { className: ba, children: [
1807
1807
  /* @__PURE__ */ t("span", { className: ha, children: e }),
1808
1808
  /* @__PURE__ */ t("span", { className: fa, children: r })
1809
1809
  ] });
1810
1810
  }
1811
- function Ps({
1811
+ function Ss({
1812
1812
  title: e,
1813
1813
  valueDisplay: r,
1814
1814
  indicatorPercent: n,
@@ -1820,9 +1820,9 @@ function Ps({
1820
1820
  infoTooltip: d,
1821
1821
  downloadAriaLabel: m,
1822
1822
  onInfoClick: b,
1823
- onDownloadClick: p
1823
+ onDownloadClick: g
1824
1824
  }) {
1825
- return /* @__PURE__ */ l(T, { className: "flex flex-col", children: [
1825
+ return /* @__PURE__ */ l(L, { className: "flex flex-col", children: [
1826
1826
  /* @__PURE__ */ t(
1827
1827
  it,
1828
1828
  {
@@ -1844,7 +1844,7 @@ function Ps({
1844
1844
  "button",
1845
1845
  {
1846
1846
  type: "button",
1847
- onClick: p,
1847
+ onClick: g,
1848
1848
  className: X,
1849
1849
  "aria-label": m,
1850
1850
  children: /* @__PURE__ */ t(dt, {})
@@ -1857,14 +1857,14 @@ function Ps({
1857
1857
  /* @__PURE__ */ t(
1858
1858
  oe,
1859
1859
  {
1860
- segments: be,
1860
+ segments: he,
1861
1861
  indicatorPercent: n,
1862
1862
  indicatorPosition: "segmentCenter"
1863
1863
  }
1864
1864
  ),
1865
1865
  /* @__PURE__ */ l("div", { className: "mt-6 space-y-0 pt-3 text-sm", children: [
1866
- /* @__PURE__ */ t("div", { className: "pb-3", children: /* @__PURE__ */ t(kt, { label: a, value: o }) }),
1867
- /* @__PURE__ */ t("div", { className: "border-t border-gray-200 pt-3", children: /* @__PURE__ */ t(kt, { label: i, value: s }) })
1866
+ /* @__PURE__ */ t("div", { className: "pb-3", children: /* @__PURE__ */ t(Ht, { label: a, value: o }) }),
1867
+ /* @__PURE__ */ t("div", { className: "border-t border-gray-200 pt-3", children: /* @__PURE__ */ t(Ht, { label: i, value: s }) })
1868
1868
  ] })
1869
1869
  ] });
1870
1870
  }
@@ -1893,8 +1893,8 @@ function hr({
1893
1893
  }
1894
1894
  );
1895
1895
  return /* @__PURE__ */ l("div", { className: "grid min-w-0 grid-cols-1 gap-6 xl:grid-cols-2 xl:items-stretch", children: [
1896
- i ? /* @__PURE__ */ t("div", { className: "min-w-0", children: s }) : /* @__PURE__ */ t(T, { className: "min-w-0 xl:flex-1", children: s }),
1897
- i ? /* @__PURE__ */ t("div", { className: "flex min-w-0 items-center", children: c }) : /* @__PURE__ */ t(T, { className: "flex min-w-0 xl:flex-1 xl:flex-col xl:justify-center", children: c })
1896
+ i ? /* @__PURE__ */ t("div", { className: "min-w-0", children: s }) : /* @__PURE__ */ t(L, { className: "min-w-0 xl:flex-1", children: s }),
1897
+ i ? /* @__PURE__ */ t("div", { className: "flex min-w-0 items-center", children: c }) : /* @__PURE__ */ t(L, { className: "flex min-w-0 xl:flex-1 xl:flex-col xl:justify-center", children: c })
1898
1898
  ] });
1899
1899
  }
1900
1900
  function K({
@@ -1921,10 +1921,10 @@ function jt({ className: e = "" }) {
1921
1921
  }
1922
1922
  );
1923
1923
  }
1924
- function ve({ children: e }) {
1924
+ function we({ children: e }) {
1925
1925
  return /* @__PURE__ */ t("div", { className: "min-w-0 overflow-hidden rounded-lg border border-[color:var(--mb-color-card-border)] bg-[color:var(--mb-color-card-bg)]", children: e });
1926
1926
  }
1927
- function we({ title: e, showInfo: r }) {
1927
+ function ye({ title: e, showInfo: r }) {
1928
1928
  return /* @__PURE__ */ l(
1929
1929
  "div",
1930
1930
  {
@@ -1945,7 +1945,7 @@ function ga() {
1945
1945
  }
1946
1946
  );
1947
1947
  }
1948
- function rt() {
1948
+ function nt() {
1949
1949
  return /* @__PURE__ */ t("span", { className: "inline-flex min-h-[1.5rem] min-w-[2.25rem] shrink-0 items-center justify-center rounded-[length:var(--mb-badge-radius)] bg-[color:var(--mb-color-badge-value-bg)] px-2", children: /* @__PURE__ */ t(x, { className: "h-3 w-7" }) });
1950
1950
  }
1951
1951
  function fr() {
@@ -1963,7 +1963,7 @@ function pa() {
1963
1963
  return /* @__PURE__ */ t("div", { className: "mt-4 w-full min-w-0", children: /* @__PURE__ */ t(
1964
1964
  oe,
1965
1965
  {
1966
- segments: be,
1966
+ segments: he,
1967
1967
  indicatorPercent: 0,
1968
1968
  indicatorPosition: "segmentCenter",
1969
1969
  showIndicator: !1
@@ -1989,8 +1989,8 @@ function Bt({
1989
1989
  children: a
1990
1990
  }
1991
1991
  ),
1992
- /* @__PURE__ */ t("div", { className: "flex justify-center self-center py-2.5", children: /* @__PURE__ */ t(rt, {}) }),
1993
- /* @__PURE__ */ t("div", { className: "flex justify-center self-center py-2.5", children: o === 0 ? /* @__PURE__ */ t(ga, {}) : /* @__PURE__ */ t(rt, {}) }),
1992
+ /* @__PURE__ */ t("div", { className: "flex justify-center self-center py-2.5", children: /* @__PURE__ */ t(nt, {}) }),
1993
+ /* @__PURE__ */ t("div", { className: "flex justify-center self-center py-2.5", children: o === 0 ? /* @__PURE__ */ t(ga, {}) : /* @__PURE__ */ t(nt, {}) }),
1994
1994
  o < r.length - 1 ? /* @__PURE__ */ t("div", { className: "col-span-full border-b border-gray-200" }) : null
1995
1995
  ] }, a))
1996
1996
  ] }),
@@ -2005,7 +2005,7 @@ function xa() {
2005
2005
  { label: "Previous Range" }
2006
2006
  ].map((r) => /* @__PURE__ */ l("div", { className: "flex items-center justify-between gap-3 py-2.5", children: [
2007
2007
  /* @__PURE__ */ t("span", { className: "text-sm text-[color:var(--mb-color-text)]", children: r.label }),
2008
- /* @__PURE__ */ t(rt, {})
2008
+ /* @__PURE__ */ t(nt, {})
2009
2009
  ] }, r.label)) }),
2010
2010
  /* @__PURE__ */ t(pa, {})
2011
2011
  ] });
@@ -2027,24 +2027,24 @@ function va({ markerSlots: e }) {
2027
2027
  ] });
2028
2028
  }
2029
2029
  const It = "ADRENAL";
2030
- function je(e) {
2030
+ function Be(e) {
2031
2031
  if (e.variant === "labAnalysis") {
2032
2032
  const { title: o = "ADRENAL – THYROID – PANCREAS", markerSlots: i = 4 } = e;
2033
- return /* @__PURE__ */ l(ve, { children: [
2034
- /* @__PURE__ */ t(we, { title: o }),
2033
+ return /* @__PURE__ */ l(we, { children: [
2034
+ /* @__PURE__ */ t(ye, { title: o }),
2035
2035
  /* @__PURE__ */ t(va, { markerSlots: i })
2036
2036
  ] });
2037
2037
  }
2038
2038
  if (e.variant === "labResults") {
2039
2039
  const { title: o = It } = e;
2040
- return /* @__PURE__ */ l(ve, { children: [
2041
- /* @__PURE__ */ t(we, { title: o, showInfo: !0 }),
2040
+ return /* @__PURE__ */ l(we, { children: [
2041
+ /* @__PURE__ */ t(ye, { title: o, showInfo: !0 }),
2042
2042
  /* @__PURE__ */ t(xa, {})
2043
2043
  ] });
2044
2044
  }
2045
2045
  const r = e.currentRangeLabel ?? "Current Range", n = e.previousRangeLabel ?? "Previous Range", a = e.title ?? It;
2046
- return e.variant === "questionnaire" ? /* @__PURE__ */ l(ve, { children: [
2047
- /* @__PURE__ */ t(we, { title: a, showInfo: !0 }),
2046
+ return e.variant === "questionnaire" ? /* @__PURE__ */ l(we, { children: [
2047
+ /* @__PURE__ */ t(ye, { title: a, showInfo: !0 }),
2048
2048
  /* @__PURE__ */ t(
2049
2049
  Bt,
2050
2050
  {
@@ -2052,8 +2052,8 @@ function je(e) {
2052
2052
  rowLabels: ["Symptom Score"]
2053
2053
  }
2054
2054
  )
2055
- ] }) : /* @__PURE__ */ l(ve, { children: [
2056
- /* @__PURE__ */ t(we, { title: a }),
2055
+ ] }) : /* @__PURE__ */ l(we, { children: [
2056
+ /* @__PURE__ */ t(ye, { title: a }),
2057
2057
  /* @__PURE__ */ t(
2058
2058
  Bt,
2059
2059
  {
@@ -2064,8 +2064,8 @@ function je(e) {
2064
2064
  )
2065
2065
  ] });
2066
2066
  }
2067
- function Ss({ children: e }) {
2068
- return /* @__PURE__ */ l(T, { className: "flex h-full min-h-0 min-w-0 flex-col", children: [
2067
+ function Ms({ children: e }) {
2068
+ return /* @__PURE__ */ l(L, { className: "flex h-full min-h-0 min-w-0 flex-col", children: [
2069
2069
  /* @__PURE__ */ t(it, { title: "Metabolic Triad", className: "!mb-3 shrink-0" }),
2070
2070
  /* @__PURE__ */ t("div", { className: "min-h-0 flex-1 space-y-3 text-sm leading-relaxed text-[color:var(--mb-color-text-muted)]", children: e })
2071
2071
  ] });
@@ -2080,7 +2080,7 @@ const Dt = {
2080
2080
  function gr(e) {
2081
2081
  if (e.variant === "questionnaire") {
2082
2082
  const {
2083
- triadNumber: g,
2083
+ triadNumber: p,
2084
2084
  heading: y,
2085
2085
  aggregateScore: C,
2086
2086
  categories: N,
@@ -2088,30 +2088,30 @@ function gr(e) {
2088
2088
  previousRangeLabel: P,
2089
2089
  onCategoryInfoClick: A
2090
2090
  } = e, S = N ?? [];
2091
- return /* @__PURE__ */ l(T, { className: "flex flex-col", children: [
2091
+ return /* @__PURE__ */ l(L, { className: "flex flex-col", children: [
2092
2092
  /* @__PURE__ */ l("div", { className: "mb-4 flex flex-col gap-3 sm:flex-row sm:flex-wrap sm:items-center sm:justify-start sm:gap-4", children: [
2093
2093
  /* @__PURE__ */ l("div", { className: "flex min-w-0 w-full flex-1 items-center gap-2 sm:w-auto", children: [
2094
- /* @__PURE__ */ t(ee, { triadNumber: g }),
2094
+ /* @__PURE__ */ t(ee, { triadNumber: p }),
2095
2095
  /* @__PURE__ */ t("h2", { className: "min-w-0 flex-1 text-xl font-bold leading-snug text-[color:var(--mb-color-text)]", children: y })
2096
2096
  ] }),
2097
2097
  /* @__PURE__ */ t(
2098
2098
  "p",
2099
2099
  {
2100
- className: `shrink-0 self-start text-3xl font-bold tabular-nums tracking-tight p-0 m-0 sm:self-auto ${Dt[g] ?? "text-sky-400"}`,
2100
+ className: `shrink-0 self-start text-3xl font-bold tabular-nums tracking-tight p-0 m-0 sm:self-auto ${Dt[p] ?? "text-sky-400"}`,
2101
2101
  children: C
2102
2102
  }
2103
2103
  )
2104
2104
  ] }),
2105
- /* @__PURE__ */ t("div", { className: "grid grid-cols-1 gap-4 lg:grid-cols-2 xl:grid-cols-3", children: S.map((L) => /* @__PURE__ */ t(
2106
- ae,
2105
+ /* @__PURE__ */ t("div", { className: "grid grid-cols-1 gap-4 lg:grid-cols-2 xl:grid-cols-3", children: S.map((T) => /* @__PURE__ */ t(
2106
+ ne,
2107
2107
  {
2108
2108
  layout: "questionnaire",
2109
- category: L,
2109
+ category: T,
2110
2110
  currentRangeLabel: w,
2111
2111
  previousRangeLabel: P,
2112
2112
  onInfoClick: A
2113
2113
  },
2114
- L.title
2114
+ T.title
2115
2115
  )) })
2116
2116
  ] });
2117
2117
  }
@@ -2125,10 +2125,10 @@ function gr(e) {
2125
2125
  previousRangeLabel: d = "Previous Range",
2126
2126
  trendBar: m,
2127
2127
  categories: b,
2128
- onInfoClick: p,
2128
+ onInfoClick: g,
2129
2129
  onCategoryClick: v
2130
- } = e, u = b ?? [], f = u.map((g) => He(g.totalScore));
2131
- return /* @__PURE__ */ l(T, { className: "flex flex-col", children: [
2130
+ } = e, u = b ?? [], h = u.map((p) => He(p.totalScore));
2131
+ return /* @__PURE__ */ l(L, { className: "flex flex-col", children: [
2132
2132
  /* @__PURE__ */ l("div", { className: "mb-4 flex flex-col gap-3 sm:flex-row sm:flex-wrap sm:items-center sm:justify-start sm:gap-4", children: [
2133
2133
  /* @__PURE__ */ l("div", { className: "flex min-w-0 w-full flex-1 items-center gap-2 sm:w-auto", children: [
2134
2134
  /* @__PURE__ */ t(ee, { triadNumber: n }),
@@ -2140,7 +2140,7 @@ function gr(e) {
2140
2140
  type: "button",
2141
2141
  align: "center",
2142
2142
  "aria-label": i,
2143
- onClick: p,
2143
+ onClick: g,
2144
2144
  className: `${X} shrink-0 !h-auto !min-h-0 !w-auto !min-w-0 !border-0 !bg-transparent !p-0.5 !shadow-none !gap-0 hover:!bg-transparent`,
2145
2145
  children: /* @__PURE__ */ t(E, {})
2146
2146
  }
@@ -2155,18 +2155,18 @@ function gr(e) {
2155
2155
  }
2156
2156
  )
2157
2157
  ] }),
2158
- /* @__PURE__ */ t("div", { className: "grid grid-cols-1 gap-4 lg:grid-cols-2 xl:grid-cols-3", children: u.map((g) => /* @__PURE__ */ t(
2159
- ae,
2158
+ /* @__PURE__ */ t("div", { className: "grid grid-cols-1 gap-4 lg:grid-cols-2 xl:grid-cols-3", children: u.map((p) => /* @__PURE__ */ t(
2159
+ ne,
2160
2160
  {
2161
2161
  layout: "triadResiliency",
2162
- category: g,
2162
+ category: p,
2163
2163
  currentRangeLabel: c,
2164
2164
  previousRangeLabel: d,
2165
- siblingTotals: f,
2165
+ siblingTotals: h,
2166
2166
  trendBar: m,
2167
2167
  onCategoryClick: v
2168
2168
  },
2169
- g.title
2169
+ p.title
2170
2170
  )) })
2171
2171
  ] });
2172
2172
  }
@@ -2179,7 +2179,7 @@ function wa({
2179
2179
  centerValueColor: i
2180
2180
  }) {
2181
2181
  const s = o ?? a;
2182
- return /* @__PURE__ */ l(T, { className: "min-w-0 overflow-x-clip", children: [
2182
+ return /* @__PURE__ */ l(L, { className: "min-w-0 overflow-x-clip", children: [
2183
2183
  /* @__PURE__ */ l("div", { className: "mb-4 flex min-w-0 items-center gap-1.5", children: [
2184
2184
  /* @__PURE__ */ t("h2", { className: "text-xl font-bold text-[color:var(--mb-color-text)] m-0 p-0", children: e }),
2185
2185
  a && s ? /* @__PURE__ */ t(Z, { content: s, children: /* @__PURE__ */ t(
@@ -2196,8 +2196,8 @@ function wa({
2196
2196
  /* @__PURE__ */ t(lr, { value: r, max: n, centerValueColor: i })
2197
2197
  ] });
2198
2198
  }
2199
- const ya = "flex min-h-10 items-center justify-between gap-4 py-3.5 text-sm leading-5 text-[color:var(--mb-color-text)]", Na = "border-t border-[color:var(--mb-color-card-border)]", Ca = "flex min-w-0 flex-1 items-center gap-3", Aa = "flex size-5 shrink-0 items-center justify-center text-[color:var(--mb-color-text-muted)]", Ta = "size-[18px] shrink-0";
2200
- function Ye({
2199
+ const ya = "flex min-h-10 items-center justify-between gap-4 py-3.5 text-sm leading-5 text-[color:var(--mb-color-text)]", Na = "border-t border-[color:var(--mb-color-card-border)]", Ca = "flex min-w-0 flex-1 items-center gap-3", Aa = "flex size-5 shrink-0 items-center justify-center text-[color:var(--mb-color-text-muted)]", La = "size-[18px] shrink-0";
2200
+ function Xe({
2201
2201
  Icon: e,
2202
2202
  label: r,
2203
2203
  badge: n,
@@ -2205,13 +2205,13 @@ function Ye({
2205
2205
  }) {
2206
2206
  return /* @__PURE__ */ l("li", { className: `${ya} ${a ? Na : ""}`, children: [
2207
2207
  /* @__PURE__ */ l("span", { className: Ca, children: [
2208
- /* @__PURE__ */ t("span", { className: Aa, "aria-hidden": !0, children: /* @__PURE__ */ t(e, { className: Ta }) }),
2208
+ /* @__PURE__ */ t("span", { className: Aa, "aria-hidden": !0, children: /* @__PURE__ */ t(e, { className: La }) }),
2209
2209
  /* @__PURE__ */ t("span", { className: "min-w-0 truncate", children: r })
2210
2210
  ] }),
2211
2211
  /* @__PURE__ */ t(_, { variant: "value", children: n })
2212
2212
  ] });
2213
2213
  }
2214
- function La({
2214
+ function Ta({
2215
2215
  sectionTitle: e,
2216
2216
  scorePercent: r,
2217
2217
  score: n,
@@ -2223,10 +2223,10 @@ function La({
2223
2223
  labsRowLabel: d,
2224
2224
  labsLastLabel: m,
2225
2225
  wearableRowLabel: b,
2226
- wearableValueLabel: p
2226
+ wearableValueLabel: g
2227
2227
  }) {
2228
- const v = i ?? o, u = !!(s && c), f = !!(d && m), h = !!(b && p), g = u || f || h;
2229
- return /* @__PURE__ */ l(T, { className: "min-w-0", children: [
2228
+ const v = i ?? o, u = !!(s && c), h = !!(d && m), f = !!(b && g), p = u || h || f;
2229
+ return /* @__PURE__ */ l(L, { className: "min-w-0", children: [
2230
2230
  /* @__PURE__ */ l("div", { className: "mb-4 flex items-start justify-between gap-4", children: [
2231
2231
  /* @__PURE__ */ l("div", { className: "flex min-w-0 flex-1 items-center gap-1.5", children: [
2232
2232
  /* @__PURE__ */ t("h2", { className: "text-xl font-bold text-[color:var(--mb-color-text)] m-0 p-0", children: e }),
@@ -2255,17 +2255,17 @@ function La({
2255
2255
  showIndicator: !1
2256
2256
  }
2257
2257
  ),
2258
- g ? /* @__PURE__ */ l("ul", { className: "list-none p-0 mx-0 mb-0 mt-4", children: [
2258
+ p ? /* @__PURE__ */ l("ul", { className: "list-none p-0 mx-0 mb-0 mt-4", children: [
2259
2259
  u ? /* @__PURE__ */ t(
2260
- Ye,
2260
+ Xe,
2261
2261
  {
2262
2262
  Icon: ct,
2263
2263
  label: s,
2264
2264
  badge: c
2265
2265
  }
2266
2266
  ) : null,
2267
- f ? /* @__PURE__ */ t(
2268
- Ye,
2267
+ h ? /* @__PURE__ */ t(
2268
+ Xe,
2269
2269
  {
2270
2270
  Icon: cr,
2271
2271
  label: d,
@@ -2273,30 +2273,30 @@ function La({
2273
2273
  bordered: u
2274
2274
  }
2275
2275
  ) : null,
2276
- h ? /* @__PURE__ */ t(
2277
- Ye,
2276
+ f ? /* @__PURE__ */ t(
2277
+ Xe,
2278
2278
  {
2279
2279
  Icon: sr,
2280
2280
  label: b,
2281
- badge: p,
2282
- bordered: u || f
2281
+ badge: g,
2282
+ bordered: u || h
2283
2283
  }
2284
2284
  ) : null
2285
2285
  ] }) : null
2286
2286
  ] });
2287
2287
  }
2288
2288
  function Pa({ title: e, items: r = [] }) {
2289
- return /* @__PURE__ */ l(T, { className: "flex flex-col gap-2", children: [
2289
+ return /* @__PURE__ */ l(L, { className: "flex flex-col gap-2", children: [
2290
2290
  /* @__PURE__ */ t("h2", { className: "text-xl font-bold leading-7 tracking-[-0.08px] text-[color:var(--mb-color-text)]", children: e }),
2291
2291
  /* @__PURE__ */ t("div", { className: "w-full overflow-hidden", children: r.map((n, a) => /* @__PURE__ */ t(Yn, { text: n, isFirst: a === 0 }, n)) })
2292
2292
  ] });
2293
2293
  }
2294
- function Ms({
2294
+ function ks({
2295
2295
  heading: e,
2296
2296
  initials: r,
2297
2297
  rows: n = []
2298
2298
  }) {
2299
- return /* @__PURE__ */ l(T, { className: "min-w-0", children: [
2299
+ return /* @__PURE__ */ l(L, { className: "min-w-0", children: [
2300
2300
  e ? /* @__PURE__ */ t("h2", { className: "m-0 mb-4 p-0 text-xl font-bold text-[color:var(--mb-color-text)]", children: e }) : null,
2301
2301
  /* @__PURE__ */ l("div", { className: "flex min-w-0 flex-col gap-4 sm:flex-row sm:items-center", children: [
2302
2302
  /* @__PURE__ */ t("div", { className: "mx-auto flex h-24 w-24 shrink-0 items-center justify-center rounded-full bg-gradient-to-br from-neutral-200 to-neutral-300 text-lg font-semibold text-neutral-700 sm:mx-0", children: r }),
@@ -2326,7 +2326,7 @@ function Sa({
2326
2326
  var m;
2327
2327
  return (m = d.dosage) == null ? void 0 : m.trim();
2328
2328
  });
2329
- return /* @__PURE__ */ l(T, { className: "flex flex-col gap-4", children: [
2329
+ return /* @__PURE__ */ l(L, { className: "flex flex-col gap-4", children: [
2330
2330
  /* @__PURE__ */ l("div", { className: "flex min-w-0 flex-col gap-3 sm:flex-row sm:items-start sm:justify-between", children: [
2331
2331
  /* @__PURE__ */ t("h2", { className: "min-w-0 text-xl font-bold leading-7 tracking-[-0.08px] text-[color:var(--mb-color-text)] sm:flex-1", children: e }),
2332
2332
  /* @__PURE__ */ t("div", { className: "flex w-full shrink-0 justify-start sm:w-auto", children: /* @__PURE__ */ t($n, { triadNumbers: r }) })
@@ -2365,7 +2365,7 @@ function Hs({
2365
2365
  viewReportButtonLabel: c,
2366
2366
  onViewReport: d
2367
2367
  }) {
2368
- return /* @__PURE__ */ l(T, { className: "flex h-full min-h-0 flex-col", children: [
2368
+ return /* @__PURE__ */ l(L, { className: "flex h-full min-h-0 flex-col", children: [
2369
2369
  /* @__PURE__ */ t(
2370
2370
  it,
2371
2371
  {
@@ -2400,8 +2400,8 @@ function Hs({
2400
2400
  ] })
2401
2401
  ] });
2402
2402
  }
2403
- function ks({ title: e, children: r, actions: n }) {
2404
- return /* @__PURE__ */ l(T, { className: "min-w-0 flex flex-col", children: [
2403
+ function js({ title: e, children: r, actions: n }) {
2404
+ return /* @__PURE__ */ l(L, { className: "min-w-0 flex flex-col", children: [
2405
2405
  /* @__PURE__ */ t("h2", { className: "text-xl font-bold text-[color:var(--mb-color-text)]", children: e }),
2406
2406
  r,
2407
2407
  /* @__PURE__ */ t("div", { className: "mt-6 flex flex-wrap gap-3", children: n })
@@ -2411,22 +2411,22 @@ const Ma = {
2411
2411
  low: "text-[#86CD95]",
2412
2412
  moderate: "text-[#E1CB7F]",
2413
2413
  high: "text-[#E97180]"
2414
- }, Ha = {
2414
+ }, ka = {
2415
2415
  low: 0,
2416
2416
  moderate: 1,
2417
2417
  high: 2
2418
- }, ka = {
2418
+ }, Ha = {
2419
2419
  low: 100 / 3 * 0.5,
2420
2420
  moderate: 100 / 3 * 1.5,
2421
2421
  high: 100 / 3 * 2.5
2422
2422
  };
2423
- function Xe(e) {
2423
+ function Ve(e) {
2424
2424
  return `${e.min} - ${e.max}`;
2425
2425
  }
2426
2426
  function ja(e, r) {
2427
2427
  return e <= r.low.max ? "low" : e <= r.moderate.max ? "moderate" : "high";
2428
2428
  }
2429
- function js({
2429
+ function Bs({
2430
2430
  title: e,
2431
2431
  score: r,
2432
2432
  infoAriaLabel: n,
@@ -2434,8 +2434,8 @@ function js({
2434
2434
  zones: o,
2435
2435
  onInfoClick: i
2436
2436
  }) {
2437
- const s = ja(r, o), c = ka[s];
2438
- return /* @__PURE__ */ l(T, { className: "flex flex-col", children: [
2437
+ const s = ja(r, o), c = Ha[s];
2438
+ return /* @__PURE__ */ l(L, { className: "flex flex-col", children: [
2439
2439
  /* @__PURE__ */ l("div", { className: "mb-5 flex flex-col gap-2 sm:flex-row sm:items-center sm:justify-between sm:gap-3", children: [
2440
2440
  /* @__PURE__ */ l("div", { className: "flex min-w-0 items-center gap-2 sm:min-w-0 sm:flex-1", children: [
2441
2441
  /* @__PURE__ */ t("h2", { className: "min-w-0 flex-1 break-words text-lg font-bold leading-snug text-[color:var(--mb-color-text)] sm:text-xl", children: e }),
@@ -2465,9 +2465,9 @@ function js({
2465
2465
  className: "mb-2.5 grid gap-x-0.5 gap-y-0.5 text-center text-[10px] font-semibold leading-tight text-[color:var(--mb-color-text-muted)] sm:gap-1 sm:text-[13px]",
2466
2466
  style: { gridTemplateColumns: "repeat(3, minmax(0, 1fr))" },
2467
2467
  children: [
2468
- /* @__PURE__ */ t("span", { className: "min-w-0 break-words px-0.5", children: Xe(o.low) }),
2469
- /* @__PURE__ */ t("span", { className: "min-w-0 break-words px-0.5", children: Xe(o.moderate) }),
2470
- /* @__PURE__ */ t("span", { className: "min-w-0 break-words px-0.5", children: Xe(o.high) })
2468
+ /* @__PURE__ */ t("span", { className: "min-w-0 break-words px-0.5", children: Ve(o.low) }),
2469
+ /* @__PURE__ */ t("span", { className: "min-w-0 break-words px-0.5", children: Ve(o.moderate) }),
2470
+ /* @__PURE__ */ t("span", { className: "min-w-0 break-words px-0.5", children: Ve(o.high) })
2471
2471
  ]
2472
2472
  }
2473
2473
  ),
@@ -2477,7 +2477,7 @@ function js({
2477
2477
  segments: Y,
2478
2478
  indicatorPercent: c,
2479
2479
  indicatorPosition: "segmentCenter",
2480
- highlightedSegmentIndex: Ha[s]
2480
+ highlightedSegmentIndex: ka[s]
2481
2481
  }
2482
2482
  )
2483
2483
  ] });
@@ -2496,7 +2496,7 @@ function Ba({ heading: e, children: r }) {
2496
2496
  );
2497
2497
  }
2498
2498
  function Ia({ sections: e }) {
2499
- return e.length === 0 ? null : /* @__PURE__ */ t(te, { children: e.map((r) => /* @__PURE__ */ t(Ba, { heading: r.title, children: /* @__PURE__ */ t("div", { className: "space-y-3", children: r.blocks.map((n, a) => n.type === "paragraph" ? /* @__PURE__ */ t("p", { className: "m-0", children: n.text }, a) : n.type === "subheading" ? /* @__PURE__ */ t("p", { className: "m-0 text-sm font-bold", children: n.text }, a) : n.type === "list" ? /* @__PURE__ */ t("ul", { className: "m-0 list-disc space-y-1.5 pl-5", children: n.items.map((o, i) => typeof o == "string" ? /* @__PURE__ */ t("li", { className: "text-sm leading-relaxed", children: o }, i) : /* @__PURE__ */ l("li", { className: "text-sm leading-relaxed", children: [
2499
+ return e.length === 0 ? null : /* @__PURE__ */ t(ae, { children: e.map((r) => /* @__PURE__ */ t(Ba, { heading: r.title, children: /* @__PURE__ */ t("div", { className: "space-y-3", children: r.blocks.map((n, a) => n.type === "paragraph" ? /* @__PURE__ */ t("p", { className: "m-0", children: n.text }, a) : n.type === "subheading" ? /* @__PURE__ */ t("p", { className: "m-0 text-sm font-bold", children: n.text }, a) : n.type === "list" ? /* @__PURE__ */ t("ul", { className: "m-0 list-disc space-y-1.5 pl-5", children: n.items.map((o, i) => typeof o == "string" ? /* @__PURE__ */ t("li", { className: "text-sm leading-relaxed", children: o }, i) : /* @__PURE__ */ l("li", { className: "text-sm leading-relaxed", children: [
2500
2500
  o.text,
2501
2501
  o.children && o.children.length > 0 && /* @__PURE__ */ t("ul", { className: "mt-1.5 list-disc pl-5", children: o.children.map((s, c) => /* @__PURE__ */ t("li", { children: s }, c)) })
2502
2502
  ] }, i)) }, a) : null) }) }, r.title)) });
@@ -2581,9 +2581,9 @@ function za({
2581
2581
  }
2582
2582
  );
2583
2583
  }
2584
- const zt = _t(k), Oa = ["--mb-color-focus-ring", "--mb-color-focus-offset"];
2584
+ const zt = _t(H), Oa = ["--mb-color-focus-ring", "--mb-color-focus-offset"];
2585
2585
  function Ea() {
2586
- const e = F(zt), [, r] = H(0);
2586
+ const e = F(zt), [, r] = k(0);
2587
2587
  return V(() => {
2588
2588
  const n = { ...zt }, a = document.querySelector(".mb-root");
2589
2589
  if (a instanceof HTMLElement) {
@@ -2614,39 +2614,39 @@ function Fa({
2614
2614
  organKey: m,
2615
2615
  organContent: b
2616
2616
  }) {
2617
- var ie, fe, ge, pe, xe, se, J, xt, vt, wt;
2618
- const p = at(), [v, u] = H(!1), [f, h] = H(e), [g, y] = H(!1), C = Ea(), N = m && b ? b[m] : void 0, w = s != null ? {
2617
+ var ie, ge, pe, xe, ve, se, J, xt, vt, wt;
2618
+ const g = at(), [v, u] = k(!1), [h, f] = k(e), [p, y] = k(!1), C = Ea(), N = m && b ? b[m] : void 0, w = s != null ? {
2619
2619
  ...s,
2620
2620
  currentDateLabel: ((ie = s.currentDateLabel) == null ? void 0 : ie.trim()) || (c == null ? void 0 : c.trim()) || void 0
2621
- } : void 0, P = ((fe = w == null ? void 0 : w.name) == null ? void 0 : fe.trim()) || n.trim() || "Category", A = Da(a, P), S = d != null && ((ge = w == null ? void 0 : w.name) != null && ge.trim()) ? `Triad ${d}: ${w.name.trim()}` : d != null ? `Triad ${d}` : n, L = (pe = w == null ? void 0 : w.previousSymptomScore) == null ? void 0 : pe.trim(), z = (xe = w == null ? void 0 : w.previousLabScore) == null ? void 0 : xe.trim(), G = (se = w == null ? void 0 : w.previousTotalScore) == null ? void 0 : se.trim(), D = !!(L && L !== "—" && L !== "-" && L !== "–") || !!(z && z !== "—" && z !== "-" && z !== "–") || !!(G && G !== "—" && G !== "-" && G !== "–"), q = ((J = w == null ? void 0 : w.previousDateLabel) == null ? void 0 : J.trim()) || "Previous", $ = ((xt = w == null ? void 0 : w.currentDateLabel) == null ? void 0 : xt.trim()) || "Current", Re = w != null && !!((vt = w.currentDateLabel) != null && vt.trim()) && !!((wt = w.previousDateLabel) != null && wt.trim()) && D;
2621
+ } : void 0, P = ((ge = w == null ? void 0 : w.name) == null ? void 0 : ge.trim()) || n.trim() || "Category", A = Da(a, P), S = d != null && ((pe = w == null ? void 0 : w.name) != null && pe.trim()) ? `Triad ${d}: ${w.name.trim()}` : d != null ? `Triad ${d}` : n, T = (xe = w == null ? void 0 : w.previousSymptomScore) == null ? void 0 : xe.trim(), z = (ve = w == null ? void 0 : w.previousLabScore) == null ? void 0 : ve.trim(), G = (se = w == null ? void 0 : w.previousTotalScore) == null ? void 0 : se.trim(), B = !!(T && T !== "—" && T !== "-" && T !== "–") || !!(z && z !== "—" && z !== "-" && z !== "–") || !!(G && G !== "—" && G !== "-" && G !== "–"), q = ((J = w == null ? void 0 : w.previousDateLabel) == null ? void 0 : J.trim()) || "Previous", $ = ((xt = w == null ? void 0 : w.currentDateLabel) == null ? void 0 : xt.trim()) || "Current", ze = w != null && !!((vt = w.currentDateLabel) != null && vt.trim()) && !!((wt = w.previousDateLabel) != null && wt.trim()) && B;
2622
2622
  return V(() => {
2623
2623
  y(!0);
2624
2624
  }, []), V(() => {
2625
2625
  if (e) {
2626
- h(!0);
2627
- const ze = requestAnimationFrame(() => {
2626
+ f(!0);
2627
+ const Oe = requestAnimationFrame(() => {
2628
2628
  requestAnimationFrame(() => u(!0));
2629
2629
  });
2630
- return () => cancelAnimationFrame(ze);
2630
+ return () => cancelAnimationFrame(Oe);
2631
2631
  }
2632
2632
  u(!1);
2633
2633
  const O = window.setTimeout(() => {
2634
- h(!1);
2634
+ f(!1);
2635
2635
  }, 300);
2636
2636
  return () => window.clearTimeout(O);
2637
2637
  }, [e]), V(() => {
2638
- if (!f) return;
2639
- const O = (ze) => {
2640
- ze.key === "Escape" && r();
2638
+ if (!h) return;
2639
+ const O = (Oe) => {
2640
+ Oe.key === "Escape" && r();
2641
2641
  };
2642
2642
  return window.addEventListener("keydown", O), () => window.removeEventListener("keydown", O);
2643
- }, [f, r]), V(() => {
2644
- if (!f) return;
2643
+ }, [h, r]), V(() => {
2644
+ if (!h) return;
2645
2645
  const O = document.body.style.overflow;
2646
2646
  return document.body.style.overflow = "hidden", () => {
2647
2647
  document.body.style.overflow = O;
2648
2648
  };
2649
- }, [f]), !g || typeof document > "u" || !f ? null : Jt(
2649
+ }, [h]), !p || typeof document > "u" || !h ? null : Jt(
2650
2650
  /* @__PURE__ */ l(
2651
2651
  "div",
2652
2652
  {
@@ -2672,7 +2672,7 @@ function Fa({
2672
2672
  {
2673
2673
  role: "dialog",
2674
2674
  "aria-modal": "true",
2675
- "aria-labelledby": p,
2675
+ "aria-labelledby": g,
2676
2676
  className: "absolute right-0 top-0 z-10 flex h-full w-full max-w-[min(100vw,72rem)] shrink-0 flex-col border border-solid border-[color:var(--mb-color-card-border,#e5e7eb)] shadow-xl transition-transform duration-300 ease-out",
2677
2677
  style: {
2678
2678
  transform: v ? "translateX(0)" : "translateX(100%)",
@@ -2692,7 +2692,7 @@ function Fa({
2692
2692
  /* @__PURE__ */ t(
2693
2693
  "h2",
2694
2694
  {
2695
- id: p,
2695
+ id: g,
2696
2696
  className: "m-0 min-w-0 flex-1 text-base font-semibold leading-snug sm:text-lg",
2697
2697
  style: { color: "var(--mb-color-text, #111827)" },
2698
2698
  children: S
@@ -2738,8 +2738,8 @@ function Fa({
2738
2738
  ),
2739
2739
  /* @__PURE__ */ t("div", { className: "min-h-0 flex-1 overflow-y-auto px-4 py-4 sm:px-6 sm:py-5", children: /* @__PURE__ */ l("div", { className: "flex flex-col gap-5 lg:grid lg:grid-cols-[minmax(0,42%)_minmax(0,1fr)] lg:items-start lg:gap-8", children: [
2740
2740
  /* @__PURE__ */ l("div", { className: "flex min-w-0 flex-col gap-4", children: [
2741
- w ? /* @__PURE__ */ t("div", { className: "min-w-0", children: Re ? /* @__PURE__ */ t(
2742
- ae,
2741
+ w ? /* @__PURE__ */ t("div", { className: "min-w-0", children: ze ? /* @__PURE__ */ t(
2742
+ ne,
2743
2743
  {
2744
2744
  layout: "triadResiliency",
2745
2745
  category: {
@@ -2758,7 +2758,7 @@ function Fa({
2758
2758
  siblingTotals: [He(w.totalScore)]
2759
2759
  }
2760
2760
  ) : /* @__PURE__ */ t(
2761
- ae,
2761
+ ne,
2762
2762
  {
2763
2763
  layout: "metricRows",
2764
2764
  title: w.name,
@@ -2852,9 +2852,9 @@ function Ga({
2852
2852
  triadNumber: d,
2853
2853
  organContent: m
2854
2854
  }) {
2855
- var h;
2856
- const [b, p] = H(!1), v = (o == null ? void 0 : o.bodyParagraphs) ?? [], u = ((h = o == null ? void 0 : o.panelTitle) == null ? void 0 : h.trim()) || e, f = o == null ? void 0 : o.organKey;
2857
- return /* @__PURE__ */ l(te, { children: [
2855
+ var f;
2856
+ const [b, g] = k(!1), v = (o == null ? void 0 : o.bodyParagraphs) ?? [], u = ((f = o == null ? void 0 : o.panelTitle) == null ? void 0 : f.trim()) || e, h = o == null ? void 0 : o.organKey;
2857
+ return /* @__PURE__ */ l(ae, { children: [
2858
2858
  /* @__PURE__ */ l(
2859
2859
  M,
2860
2860
  {
@@ -2862,7 +2862,7 @@ function Ga({
2862
2862
  variant: n,
2863
2863
  align: "center",
2864
2864
  className: a,
2865
- onClick: () => p(!0),
2865
+ onClick: () => g(!0),
2866
2866
  "aria-expanded": b,
2867
2867
  "aria-haspopup": "dialog",
2868
2868
  children: [
@@ -2875,7 +2875,7 @@ function Ga({
2875
2875
  Fa,
2876
2876
  {
2877
2877
  open: b,
2878
- onClose: () => p(!1),
2878
+ onClose: () => g(!1),
2879
2879
  title: u,
2880
2880
  trendStatus: r,
2881
2881
  introParagraphs: i,
@@ -2883,7 +2883,7 @@ function Ga({
2883
2883
  rowData: s,
2884
2884
  labsDateLabel: c,
2885
2885
  triadNumber: d,
2886
- organKey: f,
2886
+ organKey: h,
2887
2887
  organContent: m
2888
2888
  }
2889
2889
  )
@@ -2898,51 +2898,52 @@ function le({
2898
2898
  organContent: o,
2899
2899
  metricLabels: i = Ya,
2900
2900
  metricSlots: s = 3,
2901
- layoutBreakpoint: c
2901
+ layoutBreakpoint: c,
2902
+ rowSize: d
2902
2903
  }) {
2903
- const d = e.infoTooltip ?? e.infoAriaLabel, m = e.status === "optimal", b = e.status === "high", p = e.status === "low", v = m ? "border-[#3a9e6a]" : b || p ? "border-[#d94040]" : "border-[#e09a1a]", u = m ? "bg-[#e8f6ee]" : b || p ? "bg-[#fdecec]" : "bg-[#fff8eb]", f = m ? "OPTIMAL" : b ? "HIGH" : p ? "LOW" : "TRENDING", h = m ? "trendRowStatusOptimal" : b ? "trendRowStatusHigh" : p ? "trendRowStatusLow" : "trendRowStatusTrending", g = s === 2, y = c ?? (g ? "2xl" : "xl"), C = y === "2xl" ? "2xl:flex-row 2xl:items-stretch" : "xl:flex-row xl:items-stretch", N = y === "2xl" ? "2xl:shrink-0 2xl:w-[10rem]" : "xl:shrink-0 xl:w-[10rem]", w = y === "2xl" ? "2xl:shrink-0 2xl:w-[20rem]" : "xl:shrink-0 xl:w-[20rem]", P = g ? y === "2xl" ? "sm:grid-cols-2 2xl:mx-auto 2xl:w-full 2xl:max-w-[50rem] 2xl:border-t-0 2xl:px-8 2xl:py-1" : "sm:grid-cols-2 xl:mx-auto xl:w-full xl:max-w-[50rem] xl:border-t-0 xl:px-8 xl:py-1" : y === "2xl" ? "sm:grid-cols-3 2xl:border-t-0 2xl:px-16 2xl:py-1" : "sm:grid-cols-3 xl:border-t-0 xl:px-16 xl:py-1", A = g ? y === "2xl" ? "2xl:shrink-0 2xl:w-[9rem]" : "xl:shrink-0 xl:w-[9rem]" : y === "2xl" ? "2xl:shrink-0 2xl:w-[7rem]" : "xl:shrink-0 xl:w-[7rem]", S = (L, z, G) => /* @__PURE__ */ l("span", { className: "flex min-w-0 max-w-full items-center gap-1.5", children: [
2904
- /* @__PURE__ */ t("span", { className: "shrink-0 text-xs text-[color:var(--mb-color-text-muted)] sm:text-sm", children: L }),
2904
+ const m = e.infoTooltip ?? e.infoAriaLabel, b = e.status === "optimal", g = e.status === "high", v = e.status === "low", u = b ? "border-[#3a9e6a]" : g || v ? "border-[#d94040]" : "border-[#e09a1a]", h = b ? "bg-[#e8f6ee]" : g || v ? "bg-[#fdecec]" : "bg-[#fff8eb]", f = b ? "OPTIMAL" : g ? "HIGH" : v ? "LOW" : "TRENDING", p = b ? "trendRowStatusOptimal" : g ? "trendRowStatusHigh" : v ? "trendRowStatusLow" : "trendRowStatusTrending", y = s === 2, C = d ? d === "wellness" : y, N = c ?? (y ? "2xl" : "xl"), w = N === "2xl" ? "2xl:flex-row 2xl:items-stretch" : "xl:flex-row xl:items-stretch", P = C ? N === "2xl" ? "2xl:shrink-0 2xl:w-[20rem]" : "xl:shrink-0 xl:w-[20rem]" : N === "2xl" ? "2xl:shrink-0 2xl:w-[14rem]" : "xl:shrink-0 xl:w-[14rem]", A = y ? N === "2xl" ? "sm:grid-cols-2 2xl:mx-auto 2xl:w-full 2xl:max-w-[50rem] 2xl:border-t-0 2xl:px-8 2xl:py-1" : "sm:grid-cols-2 xl:mx-auto xl:w-full xl:max-w-[50rem] xl:border-t-0 xl:px-8 xl:py-1" : N === "2xl" ? "sm:grid-cols-3 2xl:border-t-0 2xl:px-16 2xl:py-1" : "sm:grid-cols-3 xl:border-t-0 xl:px-16 xl:py-1", S = y || C ? N === "2xl" ? "2xl:shrink-0 2xl:w-[9rem]" : "xl:shrink-0 xl:w-[9rem]" : N === "2xl" ? "2xl:shrink-0 2xl:w-[7rem]" : "xl:shrink-0 xl:w-[7rem]", T = (z, G, B) => /* @__PURE__ */ l("span", { className: "flex min-w-0 max-w-full items-center gap-1.5", children: [
2905
+ /* @__PURE__ */ t("span", { className: "shrink-0 text-xs text-[color:var(--mb-color-text-muted)] sm:text-sm", children: z }),
2905
2906
  /* @__PURE__ */ t(
2906
2907
  _,
2907
2908
  {
2908
2909
  variant: "value",
2909
- className: `!bg-[#EBEBEB] !text-[#1C2024] min-h-[1.5rem] min-w-[2.25rem] max-w-full shrink truncate tabular-nums ${G ? "font-bold" : ""}`,
2910
- children: z
2910
+ className: `!bg-[#EBEBEB] !text-[#1C2024] min-h-[1.5rem] min-w-[2.25rem] max-w-full shrink truncate tabular-nums ${B ? "font-bold" : ""}`,
2911
+ children: G
2911
2912
  }
2912
2913
  )
2913
2914
  ] });
2914
2915
  return /* @__PURE__ */ l(
2915
2916
  "div",
2916
2917
  {
2917
- className: `flex min-w-0 flex-col overflow-hidden rounded-[length:var(--mb-radius-button)] border border-solid bg-[color:var(--mb-color-card-bg)] [border-width:1px] ${C} ${v}`,
2918
+ className: `flex min-w-0 flex-col overflow-hidden rounded-[length:var(--mb-radius-button)] border border-solid bg-[color:var(--mb-color-card-bg)] [border-width:1px] ${w} ${u}`,
2918
2919
  children: [
2920
+ /* @__PURE__ */ l("div", { className: `flex min-w-0 items-center gap-2 px-3 ${P} ${h}`, children: [
2921
+ /* @__PURE__ */ t(Z, { content: m, children: /* @__PURE__ */ t(
2922
+ M,
2923
+ {
2924
+ type: "button",
2925
+ align: "center",
2926
+ "aria-label": e.infoAriaLabel,
2927
+ className: `${X} !m-0 shrink-0 !border-0 !bg-transparent !shadow-none hover:!bg-black/5`,
2928
+ children: /* @__PURE__ */ t(E, { className: "size-4 text-[color:var(--mb-color-text-muted)]" })
2929
+ }
2930
+ ) }),
2931
+ /* @__PURE__ */ t("span", { className: "min-w-0 flex-1 whitespace-normal break-normal text-xs font-bold uppercase leading-snug tracking-wide text-[color:var(--mb-color-text)] sm:text-sm", children: e.name })
2932
+ ] }),
2919
2933
  /* @__PURE__ */ l(
2920
2934
  "div",
2921
2935
  {
2922
- className: `flex min-w-0 items-center gap-2 px-3 ${g ? w : N} ${u}`,
2936
+ className: `grid min-w-0 flex-1 grid-cols-1 gap-y-2 border-t border-[color:var(--mb-color-card-border)] bg-[color:var(--mb-color-card-bg)] px-3 py-2 sm:gap-x-3 sm:gap-y-0 ${A}`,
2923
2937
  children: [
2924
- /* @__PURE__ */ t(Z, { content: d, children: /* @__PURE__ */ t(
2925
- M,
2938
+ /* @__PURE__ */ t("div", { className: `flex min-w-0 ${y ? "justify-center" : "justify-start"}`, children: T(i[0], e.symptomScore) }),
2939
+ /* @__PURE__ */ t(
2940
+ "div",
2926
2941
  {
2927
- type: "button",
2928
- align: "center",
2929
- "aria-label": e.infoAriaLabel,
2930
- className: `${X} !m-0 shrink-0 !border-0 !bg-transparent !shadow-none hover:!bg-black/5`,
2931
- children: /* @__PURE__ */ t(E, { className: "size-4 text-[color:var(--mb-color-text-muted)]" })
2942
+ className: `flex min-w-0 ${y ? "justify-center" : "justify-start ml-0 md:ml-16"}`,
2943
+ children: T(i[1], e.labScore, y)
2932
2944
  }
2933
- ) }),
2934
- /* @__PURE__ */ t("span", { className: "min-w-0 flex-1 truncate text-xs font-bold uppercase tracking-wide text-[color:var(--mb-color-text)] sm:text-sm", children: e.name })
2935
- ]
2936
- }
2937
- ),
2938
- /* @__PURE__ */ l(
2939
- "div",
2940
- {
2941
- className: `grid min-w-0 flex-1 grid-cols-1 gap-y-2 border-t border-[color:var(--mb-color-card-border)] bg-[color:var(--mb-color-card-bg)] px-3 py-2 sm:gap-x-3 sm:gap-y-0 ${P}`,
2942
- children: [
2943
- /* @__PURE__ */ t("div", { className: `flex min-w-0 ${g ? "justify-center" : "justify-start"}`, children: S(i[0], e.symptomScore) }),
2944
- /* @__PURE__ */ t("div", { className: `flex min-w-0 ${g ? "justify-center" : "justify-start ml-0 md:ml-16"}`, children: S(i[1], e.labScore, g) }),
2945
- s === 3 ? /* @__PURE__ */ t("div", { className: "flex min-w-0 justify-start sm:justify-end", children: S(i[2], e.totalScore, !0) }) : null
2945
+ ),
2946
+ s === 3 ? /* @__PURE__ */ t("div", { className: "flex min-w-0 justify-start sm:justify-end", children: T(i[2], e.totalScore, !0) }) : null
2946
2947
  ]
2947
2948
  }
2948
2949
  ),
@@ -2951,8 +2952,8 @@ function le({
2951
2952
  {
2952
2953
  badgeLabel: f,
2953
2954
  trendStatus: e.status,
2954
- trendStatusVariant: h,
2955
- className: `flex !self-stretch !rounded-none rounded-br-[length:var(--mb-radius-button)] rounded-tr-[length:var(--mb-radius-button)] ${A}`,
2955
+ trendStatusVariant: p,
2956
+ className: `flex !self-stretch !rounded-none rounded-br-[length:var(--mb-radius-button)] rounded-tr-[length:var(--mb-radius-button)] ${S}`,
2956
2957
  statusExplanationPanel: e.statusExplanationPanel,
2957
2958
  panelIntroParagraphs: r,
2958
2959
  panelLabsDateLabel: n,
@@ -2970,13 +2971,13 @@ function le({
2970
2971
  }
2971
2972
  );
2972
2973
  }
2973
- function I({ title: e, subtitle: r, className: n = "" }) {
2974
+ function D({ title: e, subtitle: r, className: n = "" }) {
2974
2975
  return /* @__PURE__ */ l("header", { className: `space-y-1 ${n}`.trim(), children: [
2975
2976
  /* @__PURE__ */ t("h1", { className: "text-4xl font-bold tracking-tight text-[color:var(--mb-color-text)] m-0 p-0 mb-2", children: e }),
2976
2977
  r ? /* @__PURE__ */ t("p", { className: "max-w-3xl text-sm leading-relaxed text-[color:var(--mb-color-text-muted)] m-0 p-0", children: r }) : null
2977
2978
  ] });
2978
2979
  }
2979
- const Xa = ["Normal Range", "Current Range", "Previous Range"], Ot = ["high", "low", "normal"], Va = {
2980
+ const Xa = ["Normal Range", "Current Range", "Indicator"], Ot = ["high", "low", "normal"], Va = {
2980
2981
  high: "Alert High",
2981
2982
  low: "Alert Low",
2982
2983
  normal: "High Normal"
@@ -2995,56 +2996,57 @@ function Za(e) {
2995
2996
  rows: r.get(n) ?? []
2996
2997
  })).filter((n) => n.rows.length > 0);
2997
2998
  }
2998
- function Bs({ content: e }) {
2999
+ function Is({ content: e }) {
2999
3000
  const { pageHeader: r, indicators: n } = e, o = Za(n ?? []);
3000
3001
  return /* @__PURE__ */ l("div", { className: "mx-auto w-full min-w-0 space-y-6", children: [
3001
- /* @__PURE__ */ t(I, { title: r.title, subtitle: r.subtitle }),
3002
- /* @__PURE__ */ t("div", { className: "flex min-w-0 flex-col gap-6", children: o.map(({ category: i, title: s, rows: c }) => /* @__PURE__ */ l(T, { className: "min-w-0", children: [
3002
+ /* @__PURE__ */ t(D, { title: r.title, subtitle: r.subtitle }),
3003
+ /* @__PURE__ */ t("div", { className: "flex min-w-0 flex-col gap-6", children: o.map(({ category: i, title: s, rows: c }) => /* @__PURE__ */ l(L, { className: "min-w-0", children: [
3003
3004
  /* @__PURE__ */ t("h2", { className: "mb-4 m-0 text-lg font-bold text-[color:var(--mb-color-text)]", children: s }),
3004
- /* @__PURE__ */ t("div", { className: "space-y-2", children: c.map((d, m) => /* @__PURE__ */ t(
3005
+ /* @__PURE__ */ t("div", { className: "space-y-2", children: c.map((d) => /* @__PURE__ */ t(
3005
3006
  le,
3006
3007
  {
3007
3008
  row: d,
3008
3009
  metricLabels: Xa,
3009
- layoutBreakpoint: "2xl"
3010
+ layoutBreakpoint: "2xl",
3011
+ rowSize: "wellness"
3010
3012
  },
3011
- `${d.name}-${m}`
3013
+ d.name
3012
3014
  )) })
3013
3015
  ] }, i)) })
3014
3016
  ] });
3015
3017
  }
3016
3018
  function Wa() {
3017
- return /* @__PURE__ */ l("div", { className: "flex min-w-0 flex-col overflow-hidden rounded-[length:var(--mb-radius-button)] border border-solid border-[color:var(--mb-color-card-border)] bg-[color:var(--mb-color-card-bg)] [border-width:1px] xl:flex-row xl:items-stretch", children: [
3018
- /* @__PURE__ */ l("div", { className: "flex min-w-0 items-center gap-2 bg-[#ebebeb]/40 px-3 py-2.5 xl:w-[10rem] xl:shrink-0", children: [
3019
+ return /* @__PURE__ */ l("div", { className: "flex min-w-0 flex-col overflow-hidden rounded-[length:var(--mb-radius-button)] border border-solid border-[color:var(--mb-color-card-border)] bg-[color:var(--mb-color-card-bg)] [border-width:1px] 2xl:flex-row 2xl:items-stretch", children: [
3020
+ /* @__PURE__ */ l("div", { className: "flex min-w-0 items-center gap-2 bg-[#ebebeb]/40 px-3 py-2.5 2xl:w-[20rem] 2xl:shrink-0", children: [
3019
3021
  /* @__PURE__ */ t(x, { className: "size-4 shrink-0 rounded" }),
3020
- /* @__PURE__ */ t(x, { className: "h-3.5 min-w-0 flex-1 max-w-[5.5rem] sm:h-4" })
3022
+ /* @__PURE__ */ t(x, { className: "h-3.5 min-w-0 flex-1 max-w-[14rem] sm:h-4" })
3021
3023
  ] }),
3022
- /* @__PURE__ */ l("div", { className: "grid min-w-0 flex-1 grid-cols-1 gap-y-2 border-t border-[color:var(--mb-color-card-border)] bg-[color:var(--mb-color-card-bg)] px-3 py-2 sm:grid-cols-3 sm:gap-x-3 sm:gap-y-0 xl:border-t-0 xl:px-16 xl:py-1", children: [
3024
+ /* @__PURE__ */ l("div", { className: "grid min-w-0 flex-1 grid-cols-1 gap-y-2 border-t border-[color:var(--mb-color-card-border)] bg-[color:var(--mb-color-card-bg)] px-3 py-2 sm:grid-cols-3 sm:gap-x-3 sm:gap-y-0 2xl:border-t-0 2xl:px-16 2xl:py-1", children: [
3023
3025
  /* @__PURE__ */ t("div", { className: "flex min-w-0 justify-start", children: /* @__PURE__ */ t(x, { className: "h-6 w-[min(100%,6.5rem)]" }) }),
3024
3026
  /* @__PURE__ */ t("div", { className: "flex min-w-0 justify-start md:ml-16", children: /* @__PURE__ */ t(x, { className: "h-6 w-[min(100%,6.5rem)]" }) }),
3025
3027
  /* @__PURE__ */ t("div", { className: "flex min-w-0 justify-start sm:justify-end", children: /* @__PURE__ */ t(x, { className: "h-6 w-[min(100%,6.5rem)]" }) })
3026
3028
  ] }),
3027
- /* @__PURE__ */ t(x, { className: "min-h-[3.25rem] w-full shrink-0 rounded-none rounded-br-[length:var(--mb-radius-button)] rounded-tr-[length:var(--mb-radius-button)] xl:w-[7rem] xl:min-h-0 xl:self-stretch" })
3029
+ /* @__PURE__ */ t(x, { className: "min-h-[3.25rem] w-full shrink-0 rounded-none rounded-br-[length:var(--mb-radius-button)] rounded-tr-[length:var(--mb-radius-button)] 2xl:w-[9rem] 2xl:min-h-0 2xl:self-stretch" })
3028
3030
  ] });
3029
3031
  }
3030
3032
  const Ua = [
3031
- { title: "Alert High", rowCount: 3 },
3032
- { title: "Alert Low", rowCount: 2 },
3033
- { title: "High Normal", rowCount: 2 }
3033
+ { title: "Alert High", rowKeys: ["alert-high-1", "alert-high-2", "alert-high-3"] },
3034
+ { title: "Alert Low", rowKeys: ["alert-low-1", "alert-low-2"] },
3035
+ { title: "High Normal", rowKeys: ["high-normal-1", "high-normal-2"] }
3034
3036
  ];
3035
3037
  function Qa({
3036
3038
  pageHeader: e
3037
3039
  }) {
3038
3040
  return /* @__PURE__ */ l(K, { children: [
3039
- /* @__PURE__ */ t(I, { title: e.title, subtitle: e.subtitle }),
3040
- /* @__PURE__ */ t("div", { className: "flex min-w-0 flex-col gap-6", children: Ua.map((r) => /* @__PURE__ */ l(T, { className: "min-w-0", children: [
3041
+ /* @__PURE__ */ t(D, { title: e.title, subtitle: e.subtitle }),
3042
+ /* @__PURE__ */ t("div", { className: "flex min-w-0 flex-col gap-6", children: Ua.map((r) => /* @__PURE__ */ l(L, { className: "min-w-0", children: [
3041
3043
  /* @__PURE__ */ t("h2", { className: "mb-4 m-0 text-lg font-bold text-[color:var(--mb-color-text)]", children: r.title }),
3042
- /* @__PURE__ */ t("div", { className: "space-y-2", children: Array.from({ length: r.rowCount }, (n, a) => /* @__PURE__ */ t(Wa, {}, a)) })
3044
+ /* @__PURE__ */ t("div", { className: "space-y-2", children: r.rowKeys.map((n) => /* @__PURE__ */ t(Wa, {}, n)) })
3043
3045
  ] }, r.title)) })
3044
3046
  ] });
3045
3047
  }
3046
3048
  const xr = qt({});
3047
- function Be() {
3049
+ function Ie() {
3048
3050
  return ot(xr);
3049
3051
  }
3050
3052
  const Ka = xr.Provider;
@@ -3096,7 +3098,7 @@ function mt({
3096
3098
  children: [
3097
3099
  /* @__PURE__ */ t("span", { className: "@min-[36rem]:hidden", children: d }),
3098
3100
  /* @__PURE__ */ t("span", { className: "hidden @min-[36rem]:inline", children: i }),
3099
- /* @__PURE__ */ t(ne, { className: "size-4 shrink-0", "aria-hidden": !0 })
3101
+ /* @__PURE__ */ t(re, { className: "size-4 shrink-0", "aria-hidden": !0 })
3100
3102
  ]
3101
3103
  }
3102
3104
  )
@@ -3108,8 +3110,8 @@ function Ja({
3108
3110
  data: e,
3109
3111
  organContent: r
3110
3112
  }) {
3111
- const { onNavigateToNavItem: n } = Be(), a = e.infoTooltip ?? e.infoAriaLabel;
3112
- return /* @__PURE__ */ l(T, { className: "min-w-0", children: [
3113
+ const { onNavigateToNavItem: n } = Ie(), a = e.infoTooltip ?? e.infoAriaLabel;
3114
+ return /* @__PURE__ */ l(L, { className: "min-w-0", children: [
3113
3115
  /* @__PURE__ */ t(
3114
3116
  mt,
3115
3117
  {
@@ -3128,7 +3130,8 @@ function Ja({
3128
3130
  {
3129
3131
  row: o,
3130
3132
  lastLabsLabel: e.lastLabsLabel,
3131
- organContent: r
3133
+ organContent: r,
3134
+ rowSize: "wellness"
3132
3135
  },
3133
3136
  o.name
3134
3137
  )) })
@@ -3202,8 +3205,8 @@ function to({
3202
3205
  data: e,
3203
3206
  organContent: r
3204
3207
  }) {
3205
- const { onNavigateToNavItem: n } = Be(), a = e.infoTooltip ?? e.infoAriaLabel;
3206
- return /* @__PURE__ */ l(T, { className: "min-w-0", children: [
3208
+ const { onNavigateToNavItem: n } = Ie(), a = e.infoTooltip ?? e.infoAriaLabel;
3209
+ return /* @__PURE__ */ l(L, { className: "min-w-0", children: [
3207
3210
  /* @__PURE__ */ t(
3208
3211
  mt,
3209
3212
  {
@@ -3341,8 +3344,8 @@ function oo({
3341
3344
  data: e,
3342
3345
  organContent: r
3343
3346
  }) {
3344
- const { onNavigateToNavItem: n } = Be(), [a, o] = H(0), i = Math.min(a, Math.max(0, e.triads.length - 1)), s = e.categoriesByTriadIndex[i] ?? [], c = e.infoTooltip ?? e.infoAriaLabel, d = e.triads[i], m = (d == null ? void 0 : d.triadNumber) === 1 ? no : void 0;
3345
- return /* @__PURE__ */ l(T, { className: "min-w-0", children: [
3347
+ const { onNavigateToNavItem: n } = Ie(), [a, o] = k(0), i = Math.min(a, Math.max(0, e.triads.length - 1)), s = e.categoriesByTriadIndex[i] ?? [], c = e.infoTooltip ?? e.infoAriaLabel, d = e.triads[i], m = (d == null ? void 0 : d.triadNumber) === 1 ? no : void 0;
3348
+ return /* @__PURE__ */ l(L, { className: "min-w-0", children: [
3346
3349
  /* @__PURE__ */ t(
3347
3350
  mt,
3348
3351
  {
@@ -3373,7 +3376,8 @@ function oo({
3373
3376
  statusPanelIntroParagraphs: m,
3374
3377
  lastLabsLabel: e.lastLabsLabel,
3375
3378
  triadNumber: d == null ? void 0 : d.triadNumber,
3376
- organContent: r
3379
+ organContent: r,
3380
+ rowSize: "wellness"
3377
3381
  },
3378
3382
  b.name
3379
3383
  )) })
@@ -3384,8 +3388,8 @@ const lo = {
3384
3388
  "schedule-labs": ct,
3385
3389
  "export-reports": dt
3386
3390
  };
3387
- function Is({ content: e }) {
3388
- const { onExportReports: r } = Be(), [n, a] = H(!1);
3391
+ function Ds({ content: e }) {
3392
+ const { onExportReports: r } = Ie(), [n, a] = k(!1);
3389
3393
  if (!e) return null;
3390
3394
  const {
3391
3395
  pageHeader: o,
@@ -3395,7 +3399,7 @@ function Is({ content: e }) {
3395
3399
  totalPredictiveTrends: d,
3396
3400
  alertLabSummaryTable: m,
3397
3401
  organContent: b
3398
- } = e, p = d ?? _a, v = i == null ? void 0 : i.actions.find((y) => y.id === "export-reports"), u = v ? lo[v.id] : null, f = !!(s || c), h = !!(v && u && r), g = async () => {
3402
+ } = e, g = d ?? _a, v = i == null ? void 0 : i.actions.find((y) => y.id === "export-reports"), u = v ? lo[v.id] : null, h = !!(s || c), f = !!(v && u && r), p = async () => {
3399
3403
  if (!(!r || n))
3400
3404
  try {
3401
3405
  a(!0), await r();
@@ -3406,20 +3410,20 @@ function Is({ content: e }) {
3406
3410
  return /* @__PURE__ */ l("div", { className: "mx-auto w-full min-w-0 max-w-full space-y-4 lg:space-y-6", children: [
3407
3411
  /* @__PURE__ */ l("div", { className: "flex min-w-0 max-w-full flex-col gap-4 xl:flex-row xl:items-start xl:justify-between xl:gap-8", children: [
3408
3412
  /* @__PURE__ */ t(
3409
- I,
3413
+ D,
3410
3414
  {
3411
3415
  title: o.title,
3412
3416
  subtitle: o.subtitle,
3413
3417
  className: "min-w-0 flex-1"
3414
3418
  }
3415
3419
  ),
3416
- h && v && u ? /* @__PURE__ */ l(
3420
+ f && v && u ? /* @__PURE__ */ l(
3417
3421
  M,
3418
3422
  {
3419
3423
  type: "button",
3420
3424
  variant: "default",
3421
3425
  className: br,
3422
- onClick: g,
3426
+ onClick: p,
3423
3427
  disabled: n,
3424
3428
  children: [
3425
3429
  /* @__PURE__ */ t(u, { className: "size-4 shrink-0" }),
@@ -3428,23 +3432,29 @@ function Is({ content: e }) {
3428
3432
  }
3429
3433
  ) : null
3430
3434
  ] }),
3431
- f ? /* @__PURE__ */ l(
3435
+ h ? /* @__PURE__ */ l(
3432
3436
  "div",
3433
3437
  {
3434
3438
  className: `grid min-w-0 grid-cols-1 gap-4 xl:gap-6 [&>*]:min-w-0 ${s && c ? "xl:grid-cols-[minmax(0,1fr)_minmax(0,1fr)]" : ""}`,
3435
3439
  children: [
3436
- s ? /* @__PURE__ */ t(La, { ...s }) : null,
3440
+ s ? /* @__PURE__ */ t(Ta, { ...s }) : null,
3437
3441
  c ? /* @__PURE__ */ t(wa, { ...c }) : null
3438
3442
  ]
3439
3443
  }
3440
3444
  ) : null,
3441
- /* @__PURE__ */ t("div", { className: "xl:hidden", children: /* @__PURE__ */ t(to, { data: p, organContent: b }) }),
3442
- /* @__PURE__ */ t("div", { className: "hidden xl:block", children: /* @__PURE__ */ t(oo, { data: p, organContent: b }) }),
3445
+ /* @__PURE__ */ t("div", { className: "xl:hidden", children: /* @__PURE__ */ t(
3446
+ to,
3447
+ {
3448
+ data: g,
3449
+ organContent: b
3450
+ }
3451
+ ) }),
3452
+ /* @__PURE__ */ t("div", { className: "hidden xl:block", children: /* @__PURE__ */ t(oo, { data: g, organContent: b }) }),
3443
3453
  m ? /* @__PURE__ */ t(Ja, { data: m, organContent: b }) : null
3444
3454
  ] });
3445
3455
  }
3446
- const Ve = "flex min-h-10 items-center justify-between gap-4 py-3.5 text-sm leading-5 text-[color:var(--mb-color-text)]", Ft = "border-t border-[color:var(--mb-color-card-border)]", Ze = "flex min-w-0 flex-1 items-center gap-3", We = "flex size-5 shrink-0 items-center justify-center text-[color:var(--mb-color-text-muted)]", Ue = "size-[18px] shrink-0";
3447
- function Qe({ titleWidthClass: e }) {
3456
+ const Ze = "flex min-h-10 items-center justify-between gap-4 py-3.5 text-sm leading-5 text-[color:var(--mb-color-text)]", Ft = "border-t border-[color:var(--mb-color-card-border)]", We = "flex min-w-0 flex-1 items-center gap-3", Ue = "flex size-5 shrink-0 items-center justify-center text-[color:var(--mb-color-text-muted)]", Qe = "size-[18px] shrink-0";
3457
+ function Ke({ titleWidthClass: e }) {
3448
3458
  return /* @__PURE__ */ t("div", { className: "@container mb-5 w-full min-w-0", children: /* @__PURE__ */ l("div", { className: "flex w-full min-w-0 flex-wrap items-center gap-x-6 gap-y-3 @xl:min-h-9 @xl:flex-nowrap @xl:justify-between", children: [
3449
3459
  /* @__PURE__ */ l("div", { className: "flex min-w-0 shrink-0 items-center gap-2", children: [
3450
3460
  /* @__PURE__ */ t(x, { className: `h-7 rounded ${e}` }),
@@ -3492,14 +3502,21 @@ function so({
3492
3502
  }) {
3493
3503
  return /* @__PURE__ */ l(K, { className: "mx-auto w-full min-w-0 max-w-full space-y-4 lg:space-y-6", children: [
3494
3504
  /* @__PURE__ */ l("div", { className: "flex min-w-0 max-w-full flex-col gap-4 xl:flex-row xl:items-start xl:justify-between xl:gap-8", children: [
3495
- /* @__PURE__ */ t(I, { title: e.title, subtitle: e.subtitle, className: "min-w-0 flex-1" }),
3505
+ /* @__PURE__ */ t(
3506
+ D,
3507
+ {
3508
+ title: e.title,
3509
+ subtitle: e.subtitle,
3510
+ className: "min-w-0 flex-1"
3511
+ }
3512
+ ),
3496
3513
  /* @__PURE__ */ l(M, { type: "button", variant: "default", className: br, disabled: !0, children: [
3497
3514
  /* @__PURE__ */ t(dt, { className: "size-4 shrink-0" }),
3498
3515
  "Export All Reports"
3499
3516
  ] })
3500
3517
  ] }),
3501
3518
  /* @__PURE__ */ l("div", { className: "grid min-w-0 grid-cols-1 gap-4 xl:gap-6 [&>*]:min-w-0 xl:grid-cols-[minmax(0,1fr)_minmax(0,1fr)]", children: [
3502
- /* @__PURE__ */ l(T, { children: [
3519
+ /* @__PURE__ */ l(L, { children: [
3503
3520
  /* @__PURE__ */ l("div", { className: "mb-4 flex items-start justify-between gap-4", children: [
3504
3521
  /* @__PURE__ */ l("div", { className: "flex min-w-0 items-center gap-1.5", children: [
3505
3522
  /* @__PURE__ */ t("span", { className: "text-xl font-bold text-[color:var(--mb-color-text)]", children: "Overall Metabolic Score" }),
@@ -3509,30 +3526,30 @@ function so({
3509
3526
  ] }),
3510
3527
  /* @__PURE__ */ t(Rn, { score: 0, showIndicator: !1 }),
3511
3528
  /* @__PURE__ */ l("ul", { className: "list-none p-0 mx-0 mb-0 mt-4", children: [
3512
- /* @__PURE__ */ l("li", { className: Ve, children: [
3513
- /* @__PURE__ */ l("span", { className: Ze, children: [
3514
- /* @__PURE__ */ t("span", { className: We, "aria-hidden": !0, children: /* @__PURE__ */ t(ct, { className: Ue }) }),
3529
+ /* @__PURE__ */ l("li", { className: Ze, children: [
3530
+ /* @__PURE__ */ l("span", { className: We, children: [
3531
+ /* @__PURE__ */ t("span", { className: Ue, "aria-hidden": !0, children: /* @__PURE__ */ t(ct, { className: Qe }) }),
3515
3532
  /* @__PURE__ */ t("span", { className: "min-w-0 truncate", children: "Last Questionnaire" })
3516
3533
  ] }),
3517
3534
  /* @__PURE__ */ t(_, { variant: "value", children: /* @__PURE__ */ t(x, { className: "h-3.5 w-16" }) })
3518
3535
  ] }),
3519
- /* @__PURE__ */ l("li", { className: `${Ve} ${Ft}`, children: [
3520
- /* @__PURE__ */ l("span", { className: Ze, children: [
3521
- /* @__PURE__ */ t("span", { className: We, "aria-hidden": !0, children: /* @__PURE__ */ t(cr, { className: Ue }) }),
3536
+ /* @__PURE__ */ l("li", { className: `${Ze} ${Ft}`, children: [
3537
+ /* @__PURE__ */ l("span", { className: We, children: [
3538
+ /* @__PURE__ */ t("span", { className: Ue, "aria-hidden": !0, children: /* @__PURE__ */ t(cr, { className: Qe }) }),
3522
3539
  /* @__PURE__ */ t("span", { className: "min-w-0 truncate", children: "Last Labs" })
3523
3540
  ] }),
3524
3541
  /* @__PURE__ */ t(_, { variant: "value", children: /* @__PURE__ */ t(x, { className: "h-3.5 w-20" }) })
3525
3542
  ] }),
3526
- /* @__PURE__ */ l("li", { className: `${Ve} ${Ft}`, children: [
3527
- /* @__PURE__ */ l("span", { className: Ze, children: [
3528
- /* @__PURE__ */ t("span", { className: We, "aria-hidden": !0, children: /* @__PURE__ */ t(sr, { className: Ue }) }),
3543
+ /* @__PURE__ */ l("li", { className: `${Ze} ${Ft}`, children: [
3544
+ /* @__PURE__ */ l("span", { className: We, children: [
3545
+ /* @__PURE__ */ t("span", { className: Ue, "aria-hidden": !0, children: /* @__PURE__ */ t(sr, { className: Qe }) }),
3529
3546
  /* @__PURE__ */ t("span", { className: "min-w-0 truncate", children: "Wearable" })
3530
3547
  ] }),
3531
3548
  /* @__PURE__ */ t(_, { variant: "value", children: /* @__PURE__ */ t(x, { className: "h-3.5 w-12" }) })
3532
3549
  ] })
3533
3550
  ] })
3534
3551
  ] }),
3535
- /* @__PURE__ */ l(T, { className: "min-w-0 overflow-visible", children: [
3552
+ /* @__PURE__ */ l(L, { className: "min-w-0 overflow-visible", children: [
3536
3553
  /* @__PURE__ */ l("div", { className: "mb-4 flex items-center gap-1.5", children: [
3537
3554
  /* @__PURE__ */ t("h2", { className: "text-xl font-bold text-[color:var(--mb-color-text)]", children: "Metaflammation Gauge" }),
3538
3555
  /* @__PURE__ */ t("span", { className: "pointer-events-none opacity-70", "aria-hidden": !0, children: /* @__PURE__ */ t(E, { className: "size-4" }) })
@@ -3540,23 +3557,30 @@ function so({
3540
3557
  /* @__PURE__ */ t(lr, { value: 0, max: 7e3 })
3541
3558
  ] })
3542
3559
  ] }),
3543
- /* @__PURE__ */ l(T, { children: [
3544
- /* @__PURE__ */ t(Qe, { titleWidthClass: "w-52 max-w-full sm:w-64" }),
3545
- /* @__PURE__ */ t("div", { className: "flex gap-3 overflow-x-auto pb-0.5", "data-testid": "dashboard-skeleton-triad-strip", children: [0, 1, 2, 3, 4].map((r) => /* @__PURE__ */ l(
3560
+ /* @__PURE__ */ l(L, { children: [
3561
+ /* @__PURE__ */ t(Ke, { titleWidthClass: "w-52 max-w-full sm:w-64" }),
3562
+ /* @__PURE__ */ t(
3546
3563
  "div",
3547
3564
  {
3548
- className: [
3549
- "flex min-w-[9rem] flex-1 flex-col items-center gap-3 rounded-t-[var(--mb-radius-card)] px-5 py-4 transition",
3550
- r === 0 ? "border border-b-0 border-[color:var(--mb-color-card-border)] bg-[color:var(--mb-color-nav-hover)] [border-width:var(--mb-card-border-width)]" : "border border-b-0 border-transparent"
3551
- ].join(" "),
3552
- children: [
3553
- /* @__PURE__ */ t(jt, { className: "size-[6.5rem] max-w-full" }),
3554
- /* @__PURE__ */ t(x, { className: "h-3 w-[4.5rem]" }),
3555
- /* @__PURE__ */ t(x, { className: "h-8 w-12" })
3556
- ]
3557
- },
3558
- r
3559
- )) }),
3565
+ className: "flex gap-3 overflow-x-auto pb-0.5",
3566
+ "data-testid": "dashboard-skeleton-triad-strip",
3567
+ children: [0, 1, 2, 3, 4].map((r) => /* @__PURE__ */ l(
3568
+ "div",
3569
+ {
3570
+ className: [
3571
+ "flex min-w-[9rem] flex-1 flex-col items-center gap-3 rounded-t-[var(--mb-radius-card)] px-5 py-4 transition",
3572
+ r === 0 ? "border border-b-0 border-[color:var(--mb-color-card-border)] bg-[color:var(--mb-color-nav-hover)] [border-width:var(--mb-card-border-width)]" : "border border-b-0 border-transparent"
3573
+ ].join(" "),
3574
+ children: [
3575
+ /* @__PURE__ */ t(jt, { className: "size-[6.5rem] max-w-full" }),
3576
+ /* @__PURE__ */ t(x, { className: "h-3 w-[4.5rem]" }),
3577
+ /* @__PURE__ */ t(x, { className: "h-8 w-12" })
3578
+ ]
3579
+ },
3580
+ r
3581
+ ))
3582
+ }
3583
+ ),
3560
3584
  /* @__PURE__ */ t(
3561
3585
  "div",
3562
3586
  {
@@ -3568,12 +3592,12 @@ function so({
3568
3592
  }
3569
3593
  )
3570
3594
  ] }),
3571
- /* @__PURE__ */ l(T, { children: [
3572
- /* @__PURE__ */ t(Qe, { titleWidthClass: "w-48 max-w-full sm:w-56" }),
3595
+ /* @__PURE__ */ l(L, { children: [
3596
+ /* @__PURE__ */ t(Ke, { titleWidthClass: "w-48 max-w-full sm:w-56" }),
3573
3597
  /* @__PURE__ */ t("div", { className: "space-y-2", "data-testid": "dashboard-skeleton-alert-rows", children: [0, 1, 2].map((r) => /* @__PURE__ */ t(Gt, {}, r)) })
3574
3598
  ] }),
3575
- /* @__PURE__ */ l(T, { className: "min-w-0", children: [
3576
- /* @__PURE__ */ t(Qe, { titleWidthClass: "w-64 max-w-full sm:w-72" }),
3599
+ /* @__PURE__ */ l(L, { className: "min-w-0", children: [
3600
+ /* @__PURE__ */ t(Ke, { titleWidthClass: "w-64 max-w-full sm:w-72" }),
3577
3601
  /* @__PURE__ */ t(
3578
3602
  "div",
3579
3603
  {
@@ -3599,10 +3623,10 @@ function so({
3599
3623
  ] })
3600
3624
  ] });
3601
3625
  }
3602
- function Ds({ content: e }) {
3626
+ function Rs({ content: e }) {
3603
3627
  const { pageHeader: r, sections: n } = e, a = n ?? [];
3604
3628
  return /* @__PURE__ */ l("div", { className: "mx-auto w-full max-w-full min-w-0 space-y-6", children: [
3605
- /* @__PURE__ */ t(I, { title: r.title, subtitle: r.subtitle }),
3629
+ /* @__PURE__ */ t(D, { title: r.title, subtitle: r.subtitle }),
3606
3630
  /* @__PURE__ */ t("div", { className: "space-y-6", children: a.map((o) => /* @__PURE__ */ t(ua, { ...o }, `${o.triadNumber}-${o.heading}`)) })
3607
3631
  ] });
3608
3632
  }
@@ -3610,8 +3634,8 @@ function co({
3610
3634
  pageHeader: e
3611
3635
  }) {
3612
3636
  return /* @__PURE__ */ l(K, { children: [
3613
- /* @__PURE__ */ t(I, { title: e.title, subtitle: e.subtitle }),
3614
- /* @__PURE__ */ t("div", { className: "space-y-6", children: [0, 1, 2].map((r) => /* @__PURE__ */ l(T, { className: "flex flex-col", children: [
3637
+ /* @__PURE__ */ t(D, { title: e.title, subtitle: e.subtitle }),
3638
+ /* @__PURE__ */ t("div", { className: "space-y-6", children: [0, 1, 2].map((r) => /* @__PURE__ */ l(L, { className: "flex flex-col", children: [
3615
3639
  /* @__PURE__ */ l("div", { className: "mb-6 flex flex-wrap items-center justify-between gap-3", children: [
3616
3640
  /* @__PURE__ */ l("div", { className: "flex min-w-0 flex-1 items-center gap-2", children: [
3617
3641
  /* @__PURE__ */ t(x, { className: "h-9 w-9 shrink-0 rounded-md" }),
@@ -3619,7 +3643,7 @@ function co({
3619
3643
  ] }),
3620
3644
  /* @__PURE__ */ t(x, { className: "h-9 w-14" })
3621
3645
  ] }),
3622
- /* @__PURE__ */ t(je, { variant: "labAnalysis" }),
3646
+ /* @__PURE__ */ t(Be, { variant: "labAnalysis" }),
3623
3647
  /* @__PURE__ */ l("div", { className: "mt-6 space-y-3", children: [
3624
3648
  /* @__PURE__ */ t(x, { className: "h-3.5 w-full" }),
3625
3649
  /* @__PURE__ */ t(x, { className: "h-3.5 w-full" }),
@@ -3628,16 +3652,13 @@ function co({
3628
3652
  ] }, r)) })
3629
3653
  ] });
3630
3654
  }
3631
- const mo = ["Normal Range", "Current Range", ""];
3632
- function uo(e, r) {
3655
+ const mo = ["Normal Range", "Current Range", ""], uo = [];
3656
+ function bo(e, r) {
3633
3657
  const n = /T(\d+)/i.exec(e);
3634
3658
  if (!n) return r + 1;
3635
3659
  const a = Number(n[1]);
3636
3660
  return Number.isFinite(a) ? a : r + 1;
3637
3661
  }
3638
- function bo(e) {
3639
- return e >= 60 ? "high" : e <= 40 ? "low" : "optimal";
3640
- }
3641
3662
  function ho(e) {
3642
3663
  return {
3643
3664
  name: e.title,
@@ -3646,61 +3667,62 @@ function ho(e) {
3646
3667
  symptomScore: e.normalRange || "—",
3647
3668
  labScore: e.currentRange || "—",
3648
3669
  totalScore: e.previousRange || "—",
3649
- status: bo(e.indicatorPercent)
3670
+ status: e.status
3650
3671
  };
3651
3672
  }
3652
3673
  function fo(e) {
3653
3674
  const r = /* @__PURE__ */ new Map();
3654
3675
  return e.forEach((n, a) => {
3655
- const o = uo(n.subtitle, a), i = r.get(o) ?? [];
3676
+ const o = bo(n.subtitle, a), i = r.get(o) ?? [];
3656
3677
  i.push(n), r.set(o, i);
3657
3678
  }), Array.from(r.entries()).sort((n, a) => n[0] - a[0]).map(([n, a]) => ({
3658
3679
  triadNumber: n,
3659
3680
  groups: a
3660
3681
  }));
3661
3682
  }
3662
- function Rs({ content: e }) {
3663
- var u, f;
3683
+ function zs({ content: e }) {
3684
+ var f, p;
3685
+ const r = (e == null ? void 0 : e.groups) ?? uo, n = j(() => fo(r ?? []), [r]), [a, o] = k(0);
3664
3686
  if (!e) return null;
3665
- const { pageHeader: r, intro: n, groups: a } = e, o = !!(n && (n.heading || (u = n.paragraphs) != null && u.length)), i = a && a.length > 0, s = j(() => fo(a ?? []), [a]), [c, d] = H(0), m = Math.min(c, Math.max(0, s.length - 1)), b = ((f = s[m]) == null ? void 0 : f.groups) ?? [], p = s.map((h) => ({
3666
- triadNumber: h.triadNumber,
3667
- name: `Triad ${h.triadNumber}`,
3668
- aggregateScoreDisplay: String(h.triadNumber)
3669
- })), v = o || i;
3687
+ const { pageHeader: i, intro: s } = e, c = r.length > 0, d = Math.min(a, Math.max(0, n.length - 1)), m = n[d], b = (m == null ? void 0 : m.groups) ?? [], g = ((f = e.intros) == null ? void 0 : f.find((y) => y.triadNumber === (m == null ? void 0 : m.triadNumber))) ?? s, v = !!(g && (g.heading || (p = g.paragraphs) != null && p.length)), u = n.map((y) => ({
3688
+ triadNumber: y.triadNumber,
3689
+ name: `Triad ${y.triadNumber}`,
3690
+ aggregateScoreDisplay: String(y.triadNumber)
3691
+ })), h = v || c;
3670
3692
  return /* @__PURE__ */ l("div", { className: "mx-auto w-full min-w-0 space-y-6", children: [
3671
- /* @__PURE__ */ t(I, { title: r.title, subtitle: r.subtitle }),
3672
- i ? /* @__PURE__ */ t(te, { children: /* @__PURE__ */ t(
3693
+ /* @__PURE__ */ t(D, { title: i.title, subtitle: i.subtitle }),
3694
+ c ? /* @__PURE__ */ t(
3673
3695
  ut,
3674
3696
  {
3675
- triads: p,
3676
- selectedIndex: m,
3677
- onSelectIndex: d
3697
+ triads: u,
3698
+ selectedIndex: d,
3699
+ onSelectIndex: o
3678
3700
  }
3679
- ) }) : null,
3680
- v ? /* @__PURE__ */ t(T, { className: "min-w-0", children: /* @__PURE__ */ l("div", { className: "space-y-6", children: [
3681
- o && n ? /* @__PURE__ */ t(hr, { ...n, embeddedInCard: !0 }) : null,
3682
- o && i ? /* @__PURE__ */ t("div", { className: "border-t border-[color:var(--mb-color-card-border)]" }) : null,
3683
- i ? /* @__PURE__ */ t("div", { className: "space-y-6", children: b.map((h, g) => /* @__PURE__ */ l(
3701
+ ) : null,
3702
+ h ? /* @__PURE__ */ t(L, { className: "min-w-0", children: /* @__PURE__ */ l("div", { className: "space-y-6", children: [
3703
+ v && g ? /* @__PURE__ */ t(hr, { ...g, embeddedInCard: !0 }) : null,
3704
+ v && c ? /* @__PURE__ */ t("div", { className: "border-t border-[color:var(--mb-color-card-border)]" }) : null,
3705
+ c ? /* @__PURE__ */ t("div", { className: "space-y-6", children: b.map((y) => /* @__PURE__ */ l(
3684
3706
  "div",
3685
3707
  {
3686
3708
  className: "min-w-0 space-y-3 rounded-[length:var(--mb-radius-card)] bg-[color:var(--mb-color-muted-section-bg)] p-[length:var(--mb-card-padding)]",
3687
3709
  children: [
3688
3710
  /* @__PURE__ */ l("div", { className: "flex flex-wrap items-baseline justify-between gap-2", children: [
3689
- /* @__PURE__ */ t("h2", { className: "m-0 text-xl font-bold text-[color:var(--mb-color-text)]", children: h.title }),
3690
- /* @__PURE__ */ t("span", { className: "text-base font-bold text-[color:var(--mb-color-text-muted)]", children: h.subtitle })
3711
+ /* @__PURE__ */ t("h2", { className: "m-0 text-xl font-bold text-[color:var(--mb-color-text)]", children: y.title }),
3712
+ /* @__PURE__ */ t("span", { className: "text-base font-bold text-[color:var(--mb-color-text-muted)]", children: y.subtitle })
3691
3713
  ] }),
3692
- /* @__PURE__ */ t("div", { className: "space-y-2", children: (h.metrics ?? []).map((y) => /* @__PURE__ */ t(
3714
+ /* @__PURE__ */ t("div", { className: "space-y-2", children: (y.metrics ?? []).map((C) => /* @__PURE__ */ t(
3693
3715
  le,
3694
3716
  {
3695
- row: ho(y),
3717
+ row: ho(C),
3696
3718
  metricLabels: mo,
3697
3719
  metricSlots: 2
3698
3720
  },
3699
- y.title
3721
+ C.title
3700
3722
  )) })
3701
3723
  ]
3702
3724
  },
3703
- `${h.title}-${g}`
3725
+ `${y.title}-${y.subtitle}`
3704
3726
  )) }) : null
3705
3727
  ] }) }) : null
3706
3728
  ] });
@@ -3723,7 +3745,7 @@ function xo({
3723
3745
  pageHeader: e
3724
3746
  }) {
3725
3747
  return /* @__PURE__ */ l(K, { children: [
3726
- /* @__PURE__ */ t(I, { title: e.title, subtitle: e.subtitle }),
3748
+ /* @__PURE__ */ t(D, { title: e.title, subtitle: e.subtitle }),
3727
3749
  /* @__PURE__ */ t("div", { className: "flex gap-3 overflow-x-auto", role: "presentation", "aria-hidden": !0, children: Array.from({ length: go }, (r, n) => /* @__PURE__ */ l(
3728
3750
  "div",
3729
3751
  {
@@ -3736,7 +3758,7 @@ function xo({
3736
3758
  },
3737
3759
  n
3738
3760
  )) }),
3739
- /* @__PURE__ */ t(T, { className: "min-w-0", children: /* @__PURE__ */ l("div", { className: "space-y-6", children: [
3761
+ /* @__PURE__ */ t(L, { className: "min-w-0", children: /* @__PURE__ */ l("div", { className: "space-y-6", children: [
3740
3762
  /* @__PURE__ */ l("div", { className: "grid min-w-0 grid-cols-1 gap-6 xl:grid-cols-2 xl:items-stretch", children: [
3741
3763
  /* @__PURE__ */ l("div", { className: "min-w-0 space-y-4", children: [
3742
3764
  /* @__PURE__ */ l("div", { className: "flex items-center gap-2", children: [
@@ -3808,7 +3830,7 @@ function wr({ blocks: e }) {
3808
3830
  ) : r.type === "list" ? /* @__PURE__ */ t(wo, { items: r.items }, a) : r.type === "table" ? /* @__PURE__ */ t(yo, { rows: r.rows }, a) : null;
3809
3831
  }) });
3810
3832
  }
3811
- const Ke = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE_AG_CHARTS_LICENSE_KEY: "Using_this_{AG_Charts}_Enterprise_key_{AG-125036}_in_excess_of_the_licence_granted_is_not_permitted___Please_report_misuse_to_legal@ag-grid.com___For_help_with_changing_this_key_please_contact_info@ag-grid.com___{Metabolic_Code}_is_granted_a_{Single_Application}_Developer_License_for_the_application_{Metabolic_Code}_only_for_{1}_Front-End_JavaScript_developer___All_Front-End_JavaScript_developers_working_on_{Metabolic_Code}_need_to_be_licensed___{Metabolic_Code}_has_been_granted_a_Deployment_License_Add-on_for_{1}_Production_Environment___This_key_works_with_{AG_Charts}_Enterprise_versions_released_before_{31_March_2027}____[v3]_[02]_MTgwNjQ0NzYwMDAwMA==4e5dbf88087527cd3b1cf09b0557ec38", VITE_METABOLIC_REPORT_PAGES_API_BASE_URL: "https://mc-api-production-api.salmonstone-a2c3cb0d.canadacentral.azurecontainerapps.io" };
3833
+ const qe = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE_AG_CHARTS_LICENSE_KEY: "Using_this_{AG_Charts}_Enterprise_key_{AG-125036}_in_excess_of_the_licence_granted_is_not_permitted___Please_report_misuse_to_legal@ag-grid.com___For_help_with_changing_this_key_please_contact_info@ag-grid.com___{Metabolic_Code}_is_granted_a_{Single_Application}_Developer_License_for_the_application_{Metabolic_Code}_only_for_{1}_Front-End_JavaScript_developer___All_Front-End_JavaScript_developers_working_on_{Metabolic_Code}_need_to_be_licensed___{Metabolic_Code}_has_been_granted_a_Deployment_License_Add-on_for_{1}_Production_Environment___This_key_works_with_{AG_Charts}_Enterprise_versions_released_before_{31_March_2027}____[v3]_[02]_MTgwNjQ0NzYwMDAwMA==4e5dbf88087527cd3b1cf09b0557ec38", VITE_METABOLIC_REPORT_PAGES_API_BASE_URL: "https://mc-api-production-api.salmonstone-a2c3cb0d.canadacentral.azurecontainerapps.io" };
3812
3834
  function No() {
3813
3835
  try {
3814
3836
  return "https://mc-api-production-api.salmonstone-a2c3cb0d.canadacentral.azurecontainerapps.io";
@@ -3818,7 +3840,7 @@ function No() {
3818
3840
  }
3819
3841
  const Co = No() ?? "", yr = (() => {
3820
3842
  try {
3821
- return Ke == null ? void 0 : Ke.VITE_METABOLIC_DASHBOARD_STUB_API_KEY;
3843
+ return qe == null ? void 0 : qe.VITE_METABOLIC_DASHBOARD_STUB_API_KEY;
3822
3844
  } catch {
3823
3845
  return;
3824
3846
  }
@@ -3826,15 +3848,15 @@ const Co = No() ?? "", yr = (() => {
3826
3848
  function Ao(e) {
3827
3849
  return e === yr;
3828
3850
  }
3829
- function To(e) {
3851
+ function Lo(e) {
3830
3852
  return e.replace(/\/+$/, "");
3831
3853
  }
3832
- function he() {
3833
- return To(Co);
3854
+ function fe() {
3855
+ return Lo(Co);
3834
3856
  }
3835
- function Ae(e) {
3857
+ function Le(e) {
3836
3858
  if (!e || /^https?:\/\//i.test(e)) return e;
3837
- const r = he();
3859
+ const r = fe();
3838
3860
  return r ? `${r}${e.startsWith("/") ? e : `/${e}`}` : e;
3839
3861
  }
3840
3862
  function Yt({ variant: e }) {
@@ -3843,7 +3865,7 @@ function Yt({ variant: e }) {
3843
3865
  /* @__PURE__ */ t(
3844
3866
  "img",
3845
3867
  {
3846
- src: Ae(e.triad_image_url),
3868
+ src: Le(e.triad_image_url),
3847
3869
  alt: "",
3848
3870
  className: "size-10 shrink-0 object-contain"
3849
3871
  }
@@ -3868,7 +3890,7 @@ function Yt({ variant: e }) {
3868
3890
  /* @__PURE__ */ t(wr, { blocks: e.blocks })
3869
3891
  ] });
3870
3892
  }
3871
- function Lo({
3893
+ function To({
3872
3894
  urinary: e,
3873
3895
  salivary: r
3874
3896
  }) {
@@ -3885,20 +3907,20 @@ const Po = [
3885
3907
  { color: "#e09a1a", position: 50 },
3886
3908
  { color: "#d94040", position: 100 }
3887
3909
  ], So = "text-[13px] font-medium uppercase tracking-wide text-[color:var(--mb-color-text-muted)]", Mo = "text-[15px] font-bold tabular-nums text-[color:var(--mb-color-text)]";
3888
- function qe({ label: e, value: r }) {
3910
+ function Je({ label: e, value: r }) {
3889
3911
  return /* @__PURE__ */ l("div", { className: "flex items-center justify-between border-b border-[color:var(--mb-color-card-border)] py-2 last:border-0", children: [
3890
3912
  /* @__PURE__ */ t("span", { className: So, children: e }),
3891
3913
  /* @__PURE__ */ t("span", { className: Mo, children: r })
3892
3914
  ] });
3893
3915
  }
3894
- function Ho({ patient: e }) {
3916
+ function ko({ patient: e }) {
3895
3917
  const r = e.trendIndicatorPercent ?? 50;
3896
3918
  return /* @__PURE__ */ l("div", { className: "rounded-lg border border-[color:var(--mb-color-card-border)] bg-[color:var(--mb-color-card-bg)] p-4 sm:p-5", children: [
3897
3919
  /* @__PURE__ */ t("h2", { className: "mb-3 text-sm font-bold uppercase tracking-wide text-[color:var(--mb-color-text)]", children: e.organDisplayName }),
3898
3920
  /* @__PURE__ */ l("div", { children: [
3899
- /* @__PURE__ */ t(qe, { label: "Symptom Score", value: e.symptomScore }),
3900
- /* @__PURE__ */ t(qe, { label: "Lab Score", value: e.labScore }),
3901
- /* @__PURE__ */ t(qe, { label: "Total", value: e.totalScore })
3921
+ /* @__PURE__ */ t(Je, { label: "Symptom Score", value: e.symptomScore }),
3922
+ /* @__PURE__ */ t(Je, { label: "Lab Score", value: e.labScore }),
3923
+ /* @__PURE__ */ t(Je, { label: "Total", value: e.totalScore })
3902
3924
  ] }),
3903
3925
  /* @__PURE__ */ l("div", { className: "mt-4", children: [
3904
3926
  /* @__PURE__ */ t(or, { stops: Po, indicatorPercent: r }),
@@ -3910,13 +3932,13 @@ function Ho({ patient: e }) {
3910
3932
  ] })
3911
3933
  ] });
3912
3934
  }
3913
- function ko({ stage: e }) {
3935
+ function Ho({ stage: e }) {
3914
3936
  return /* @__PURE__ */ l("div", { className: "rounded-lg border border-[color:var(--mb-color-card-border)] bg-[color:var(--mb-color-card-bg)] p-4 sm:p-5", children: [
3915
3937
  /* @__PURE__ */ l("div", { className: "mb-3 flex items-center gap-3", children: [
3916
3938
  /* @__PURE__ */ t(
3917
3939
  "img",
3918
3940
  {
3919
- src: Ae(e.image_url),
3941
+ src: Le(e.image_url),
3920
3942
  alt: "",
3921
3943
  className: "size-12 shrink-0 object-contain"
3922
3944
  }
@@ -3941,14 +3963,14 @@ function ko({ stage: e }) {
3941
3963
  ] });
3942
3964
  }
3943
3965
  function jo({ stages: e }) {
3944
- return /* @__PURE__ */ t("div", { className: "grid grid-cols-1 gap-4", children: e.map((r) => /* @__PURE__ */ t(ko, { stage: r }, r.number)) });
3966
+ return /* @__PURE__ */ t("div", { className: "grid grid-cols-1 gap-4", children: e.map((r) => /* @__PURE__ */ t(Ho, { stage: r }, r.number)) });
3945
3967
  }
3946
3968
  function Bo({
3947
3969
  bodyUrl: e,
3948
3970
  organUrl: r,
3949
3971
  organDisplayName: n
3950
3972
  }) {
3951
- const a = Ae(e), o = Ae(r), i = a === o;
3973
+ const a = Le(e), o = Le(r), i = a === o;
3952
3974
  return /* @__PURE__ */ l("div", { className: "flex min-h-[14rem] items-center justify-center gap-2 rounded-lg border border-[color:var(--mb-color-card-border)] bg-[color:var(--mb-color-card-bg)] p-4", children: [
3953
3975
  /* @__PURE__ */ t(
3954
3976
  "img",
@@ -3987,7 +4009,7 @@ function Do({
3987
4009
  ] }),
3988
4010
  /* @__PURE__ */ t("header", { children: /* @__PURE__ */ t("h1", { className: "text-2xl font-bold leading-tight text-[color:var(--mb-color-text)]", children: e.triadHeading }) }),
3989
4011
  /* @__PURE__ */ l("div", { className: "grid grid-cols-1 gap-4 lg:grid-cols-[minmax(0,1fr)_minmax(0,1fr)]", children: [
3990
- /* @__PURE__ */ t(Ho, { patient: e }),
4012
+ /* @__PURE__ */ t(ko, { patient: e }),
3991
4013
  /* @__PURE__ */ t(
3992
4014
  Bo,
3993
4015
  {
@@ -4013,7 +4035,7 @@ function Do({
4013
4035
  /* @__PURE__ */ t(jo, { stages: r.stages })
4014
4036
  ] }) : null,
4015
4037
  a ? /* @__PURE__ */ t(
4016
- Lo,
4038
+ To,
4017
4039
  {
4018
4040
  urinary: a.urinary,
4019
4041
  salivary: a.salivary
@@ -4021,12 +4043,12 @@ function Do({
4021
4043
  ) : null
4022
4044
  ] });
4023
4045
  }
4024
- function zs({
4046
+ function Os({
4025
4047
  content: e
4026
4048
  }) {
4027
4049
  const { pageHeader: r, sections: n } = e, a = n ?? [];
4028
4050
  return /* @__PURE__ */ l("div", { className: "mx-auto w-full min-w-0 space-y-6", children: [
4029
- /* @__PURE__ */ t(I, { title: r.title, subtitle: r.subtitle }),
4051
+ /* @__PURE__ */ t(D, { title: r.title, subtitle: r.subtitle }),
4030
4052
  /* @__PURE__ */ t("div", { className: "space-y-6", children: a.map((o) => /* @__PURE__ */ t(
4031
4053
  gr,
4032
4054
  {
@@ -4042,8 +4064,8 @@ function zo({
4042
4064
  pageHeader: e
4043
4065
  }) {
4044
4066
  return /* @__PURE__ */ l(K, { children: [
4045
- /* @__PURE__ */ t(I, { title: e.title, subtitle: e.subtitle }),
4046
- /* @__PURE__ */ t("div", { className: "space-y-6", children: [0, 1, 2].map((r) => /* @__PURE__ */ l(T, { className: "flex flex-col", children: [
4067
+ /* @__PURE__ */ t(D, { title: e.title, subtitle: e.subtitle }),
4068
+ /* @__PURE__ */ t("div", { className: "space-y-6", children: [0, 1, 2].map((r) => /* @__PURE__ */ l(L, { className: "flex flex-col", children: [
4047
4069
  /* @__PURE__ */ l("div", { className: "mb-6 flex flex-wrap items-center justify-between gap-3", children: [
4048
4070
  /* @__PURE__ */ l("div", { className: "flex min-w-0 flex-1 items-center gap-2", children: [
4049
4071
  /* @__PURE__ */ t(x, { className: "h-9 w-9 shrink-0 rounded-md" }),
@@ -4052,7 +4074,7 @@ function zo({
4052
4074
  /* @__PURE__ */ t(x, { className: "h-9 w-14" })
4053
4075
  ] }),
4054
4076
  /* @__PURE__ */ t("div", { className: "grid grid-cols-1 gap-4 lg:grid-cols-2 xl:grid-cols-3", children: Ro.map((n) => /* @__PURE__ */ t(
4055
- je,
4077
+ Be,
4056
4078
  {
4057
4079
  variant: "questionnaire",
4058
4080
  title: n
@@ -4069,7 +4091,7 @@ function Oo(e) {
4069
4091
  r.push(e.slice(n, n + Xt));
4070
4092
  return r;
4071
4093
  }
4072
- function Os({ content: e }) {
4094
+ function Es({ content: e }) {
4073
4095
  var S;
4074
4096
  if (!e) return null;
4075
4097
  const {
@@ -4081,15 +4103,15 @@ function Os({ content: e }) {
4081
4103
  symptoms: s,
4082
4104
  productsSectionTitle: c,
4083
4105
  products: d
4084
- } = e, m = !!(n && (n.heading || (S = n.paragraphs) != null && S.length)), b = o ?? [], p = s ?? [], v = d ?? [], u = b.length > 0, f = p.length > 0, h = v.length > 0, g = m || u || f || h, C = (n == null ? void 0 : n.triadNumber) != null && n ? [
4106
+ } = e, m = !!(n && (n.heading || (S = n.paragraphs) != null && S.length)), b = o ?? [], g = s ?? [], v = d ?? [], u = b.length > 0, h = g.length > 0, f = v.length > 0, p = m || u || h || f, C = (n == null ? void 0 : n.triadNumber) != null && n ? [
4085
4107
  {
4086
4108
  triadNumber: n.triadNumber,
4087
4109
  name: `Triad ${n.triadNumber}`,
4088
4110
  aggregateScoreDisplay: String(n.triadNumber)
4089
4111
  }
4090
- ] : [], [N, w] = H(0), P = Math.min(N, Math.max(0, C.length - 1)), A = f || h || u;
4112
+ ] : [], [N, w] = k(0), P = Math.min(N, Math.max(0, C.length - 1)), A = h || f || u;
4091
4113
  return /* @__PURE__ */ l("div", { className: "mx-auto w-full min-w-0 space-y-6", children: [
4092
- /* @__PURE__ */ t(I, { title: r.title, subtitle: r.subtitle }),
4114
+ /* @__PURE__ */ t(D, { title: r.title, subtitle: r.subtitle }),
4093
4115
  C.length > 0 ? /* @__PURE__ */ t(
4094
4116
  ut,
4095
4117
  {
@@ -4098,27 +4120,27 @@ function Os({ content: e }) {
4098
4120
  onSelectIndex: w
4099
4121
  }
4100
4122
  ) : null,
4101
- g ? /* @__PURE__ */ t(T, { className: "min-w-0", children: /* @__PURE__ */ l("div", { className: "space-y-6", children: [
4123
+ p ? /* @__PURE__ */ t(L, { className: "min-w-0", children: /* @__PURE__ */ l("div", { className: "space-y-6", children: [
4102
4124
  m && n ? /* @__PURE__ */ t(hr, { ...n, embeddedInCard: !0 }) : null,
4103
4125
  m && A ? /* @__PURE__ */ t("div", { className: "border-t border-[color:var(--mb-color-card-border)]" }) : null,
4104
- f ? /* @__PURE__ */ l("div", { className: "space-y-5", children: [
4126
+ h ? /* @__PURE__ */ l("div", { className: "space-y-5", children: [
4105
4127
  /* @__PURE__ */ t("h2", { className: "text-xl font-bold text-[color:var(--mb-color-text)]", children: i }),
4106
- /* @__PURE__ */ t("div", { className: "space-y-0", children: Oo(p).map((L) => /* @__PURE__ */ t(
4128
+ /* @__PURE__ */ t("div", { className: "space-y-0", children: Oo(g).map((T) => /* @__PURE__ */ t(
4107
4129
  "div",
4108
4130
  {
4109
4131
  className: "grid grid-cols-1 gap-4 border-b border-gray-200 py-3 last:border-b-0 md:grid-cols-3 md:gap-6",
4110
- children: L.map((z) => /* @__PURE__ */ l("div", { className: "flex min-h-10 items-center gap-3", children: [
4111
- /* @__PURE__ */ t("span", { className: "inline-flex size-4 shrink-0 items-center justify-center text-[color:var(--mb-color-text)]", children: /* @__PURE__ */ t(ne, { className: "size-4", "aria-hidden": !0 }) }),
4132
+ children: T.map((z) => /* @__PURE__ */ l("div", { className: "flex min-h-10 items-center gap-3", children: [
4133
+ /* @__PURE__ */ t("span", { className: "inline-flex size-4 shrink-0 items-center justify-center text-[color:var(--mb-color-text)]", children: /* @__PURE__ */ t(re, { className: "size-4", "aria-hidden": !0 }) }),
4112
4134
  /* @__PURE__ */ t("span", { className: "text-sm leading-5 text-[color:var(--mb-color-text)]", children: z })
4113
4135
  ] }, z))
4114
4136
  },
4115
- L[0]
4137
+ T[0]
4116
4138
  )) })
4117
4139
  ] }) : null,
4118
- f && (h || u) ? /* @__PURE__ */ t("div", { className: "border-t border-[color:var(--mb-color-card-border)]" }) : null,
4119
- h ? /* @__PURE__ */ l("div", { className: "min-w-0 space-y-5 rounded-[length:var(--mb-radius-card)] bg-[color:var(--mb-color-muted-section-bg)] p-[length:var(--mb-card-padding)]", children: [
4140
+ h && (f || u) ? /* @__PURE__ */ t("div", { className: "border-t border-[color:var(--mb-color-card-border)]" }) : null,
4141
+ f ? /* @__PURE__ */ l("div", { className: "min-w-0 space-y-5 rounded-[length:var(--mb-radius-card)] bg-[color:var(--mb-color-muted-section-bg)] p-[length:var(--mb-card-padding)]", children: [
4120
4142
  /* @__PURE__ */ t("h2", { className: "text-xl font-bold text-[color:var(--mb-color-text)]", children: c }),
4121
- /* @__PURE__ */ t("div", { className: "grid w-full min-w-0 grid-cols-1 gap-5 sm:grid-cols-2 sm:gap-6 xl:grid-cols-3 xl:gap-8", children: v.map((L) => /* @__PURE__ */ l(
4143
+ /* @__PURE__ */ t("div", { className: "grid w-full min-w-0 grid-cols-1 gap-5 sm:grid-cols-2 sm:gap-6 xl:grid-cols-3 xl:gap-8", children: v.map((T) => /* @__PURE__ */ l(
4122
4144
  "div",
4123
4145
  {
4124
4146
  className: "flex min-w-0 w-full flex-col items-center",
@@ -4126,30 +4148,30 @@ function Os({ content: e }) {
4126
4148
  /* @__PURE__ */ t("div", { className: "relative flex h-40 w-full max-w-[15rem] items-center justify-center sm:h-48 md:h-52 lg:max-w-[17rem]", children: /* @__PURE__ */ t(
4127
4149
  "img",
4128
4150
  {
4129
- src: L.imageSrc ?? pr,
4130
- alt: L.imageAlt,
4151
+ src: T.imageSrc ?? pr,
4152
+ alt: T.imageAlt,
4131
4153
  className: "max-h-full w-auto max-w-full object-contain [filter:drop-shadow(0_10px_20px_rgba(15,23,42,0.15))] md:[filter:drop-shadow(0_14px_28px_rgba(15,23,42,0.12))]",
4132
4154
  width: 320,
4133
4155
  height: 320
4134
4156
  }
4135
4157
  ) }),
4136
- /* @__PURE__ */ t("span", { className: "mt-3 w-full min-w-0 break-words px-0.5 text-center text-sm font-medium text-[color:var(--mb-color-text)]", children: L.name }),
4137
- L.tagline ? /* @__PURE__ */ t("span", { className: "mt-1 w-full min-w-0 break-words px-0.5 text-center text-xs text-[color:var(--mb-color-text-muted)]", children: L.tagline }) : null
4158
+ /* @__PURE__ */ t("span", { className: "mt-3 w-full min-w-0 break-words px-0.5 text-center text-sm font-medium text-[color:var(--mb-color-text)]", children: T.name }),
4159
+ T.tagline ? /* @__PURE__ */ t("span", { className: "mt-1 w-full min-w-0 break-words px-0.5 text-center text-xs text-[color:var(--mb-color-text-muted)]", children: T.tagline }) : null
4138
4160
  ]
4139
4161
  },
4140
- L.name
4162
+ T.name
4141
4163
  )) })
4142
4164
  ] }) : null,
4143
- h && u ? /* @__PURE__ */ t("div", { className: "border-t border-[color:var(--mb-color-card-border)]" }) : null,
4165
+ f && u ? /* @__PURE__ */ t("div", { className: "border-t border-[color:var(--mb-color-card-border)]" }) : null,
4144
4166
  u ? /* @__PURE__ */ l("div", { className: "space-y-5", children: [
4145
4167
  /* @__PURE__ */ t("h2", { className: "text-xl font-bold text-[color:var(--mb-color-text)]", children: a }),
4146
- /* @__PURE__ */ t("div", { className: "grid grid-cols-1 items-start gap-4 sm:grid-cols-2 xl:grid-cols-3 xl:gap-6", children: b.map((L) => /* @__PURE__ */ t(
4147
- ae,
4168
+ /* @__PURE__ */ t("div", { className: "grid grid-cols-1 items-start gap-4 sm:grid-cols-2 xl:grid-cols-3 xl:gap-6", children: b.map((T) => /* @__PURE__ */ t(
4169
+ ne,
4148
4170
  {
4149
4171
  layout: "labResults",
4150
- category: L
4172
+ category: T
4151
4173
  },
4152
- L.title
4174
+ T.title
4153
4175
  )) })
4154
4176
  ] }) : null
4155
4177
  ] }) }) : null
@@ -4160,7 +4182,7 @@ function Go({
4160
4182
  pageHeader: e
4161
4183
  }) {
4162
4184
  return /* @__PURE__ */ l(K, { children: [
4163
- /* @__PURE__ */ t(I, { title: e.title, subtitle: e.subtitle }),
4185
+ /* @__PURE__ */ t(D, { title: e.title, subtitle: e.subtitle }),
4164
4186
  /* @__PURE__ */ t(
4165
4187
  "div",
4166
4188
  {
@@ -4181,7 +4203,7 @@ function Go({
4181
4203
  ))
4182
4204
  }
4183
4205
  ),
4184
- /* @__PURE__ */ t(T, { className: "min-w-0", children: /* @__PURE__ */ l("div", { className: "space-y-6", children: [
4206
+ /* @__PURE__ */ t(L, { className: "min-w-0", children: /* @__PURE__ */ l("div", { className: "space-y-6", children: [
4185
4207
  /* @__PURE__ */ l("div", { className: "grid min-w-0 grid-cols-1 gap-6 xl:grid-cols-2 xl:items-stretch", children: [
4186
4208
  /* @__PURE__ */ l("div", { className: "min-w-0 space-y-4", children: [
4187
4209
  /* @__PURE__ */ l("div", { className: "flex items-center gap-2", children: [
@@ -4216,16 +4238,16 @@ function Go({
4216
4238
  /* @__PURE__ */ t("div", { className: "border-t border-[color:var(--mb-color-card-border)]" }),
4217
4239
  /* @__PURE__ */ l("div", { className: "space-y-5", children: [
4218
4240
  /* @__PURE__ */ t(x, { className: "h-7 w-[min(100%,18rem)]" }),
4219
- /* @__PURE__ */ t("div", { className: "grid grid-cols-1 items-start gap-4 sm:grid-cols-2 xl:grid-cols-3 xl:gap-6", children: Eo.map((r) => /* @__PURE__ */ t(je, { variant: "labResults", title: r }, r)) })
4241
+ /* @__PURE__ */ t("div", { className: "grid grid-cols-1 items-start gap-4 sm:grid-cols-2 xl:grid-cols-3 xl:gap-6", children: Eo.map((r) => /* @__PURE__ */ t(Be, { variant: "labResults", title: r }, r)) })
4220
4242
  ] })
4221
4243
  ] }) })
4222
4244
  ] });
4223
4245
  }
4224
- function Es({ content: e }) {
4246
+ function Fs({ content: e }) {
4225
4247
  if (!e) return null;
4226
4248
  const { pageHeader: r, practitionerNotes: n, cards: a } = e, o = a && a.length > 0;
4227
4249
  return /* @__PURE__ */ l("div", { className: "mx-auto w-full min-w-0 space-y-6", children: [
4228
- /* @__PURE__ */ t(I, { title: r.title, subtitle: r.subtitle }),
4250
+ /* @__PURE__ */ t(D, { title: r.title, subtitle: r.subtitle }),
4229
4251
  o ? /* @__PURE__ */ t("div", { className: "grid grid-cols-1 gap-6 lg:grid-cols-2", children: a.map((i, s) => /* @__PURE__ */ t(Sa, { ...i }, `${i.title}-${s}`)) }) : null,
4230
4252
  n ? /* @__PURE__ */ t(Pa, { ...n }) : null
4231
4253
  ] });
@@ -4234,8 +4256,8 @@ function Yo({
4234
4256
  pageHeader: e
4235
4257
  }) {
4236
4258
  return /* @__PURE__ */ l(K, { children: [
4237
- /* @__PURE__ */ t(I, { title: e.title, subtitle: e.subtitle }),
4238
- /* @__PURE__ */ t("div", { className: "grid grid-cols-1 gap-6 lg:grid-cols-2", children: [0, 1].map((r) => /* @__PURE__ */ t(T, { children: /* @__PURE__ */ l("div", { className: "flex flex-col gap-4 sm:flex-row", children: [
4259
+ /* @__PURE__ */ t(D, { title: e.title, subtitle: e.subtitle }),
4260
+ /* @__PURE__ */ t("div", { className: "grid grid-cols-1 gap-6 lg:grid-cols-2", children: [0, 1].map((r) => /* @__PURE__ */ t(L, { children: /* @__PURE__ */ l("div", { className: "flex flex-col gap-4 sm:flex-row", children: [
4239
4261
  /* @__PURE__ */ t(x, { className: "mx-auto h-32 w-32 shrink-0 rounded-lg sm:mx-0" }),
4240
4262
  /* @__PURE__ */ l("div", { className: "min-w-0 flex-1 space-y-3", children: [
4241
4263
  /* @__PURE__ */ t(x, { className: "h-6 w-3/4" }),
@@ -4252,7 +4274,7 @@ function Yo({
4252
4274
  )) })
4253
4275
  ] })
4254
4276
  ] }) }, r)) }),
4255
- /* @__PURE__ */ l(T, { children: [
4277
+ /* @__PURE__ */ l(L, { children: [
4256
4278
  /* @__PURE__ */ t("h2", { className: "text-xl font-bold text-[color:var(--mb-color-text)]", children: "Practitioner Notes" }),
4257
4279
  /* @__PURE__ */ l("div", { className: "mt-4 space-y-3", children: [
4258
4280
  /* @__PURE__ */ t(x, { className: "h-3.5 w-full" }),
@@ -4274,8 +4296,8 @@ function Xo(e, r) {
4274
4296
  interpretationLabel: a != null && a >= 66 ? `Your ${o} is High` : a != null && a >= 33 ? `Your ${o} is Trending` : a != null ? `Your ${o} is Optimal` : void 0
4275
4297
  };
4276
4298
  }
4277
- function Fs({ content: e }) {
4278
- const { pageHeader: r, triadCards: n, organContent: a, cortisolContent: o } = e, i = n ?? [], [s, c] = H(null), d = j(
4299
+ function Gs({ content: e }) {
4300
+ const { pageHeader: r, triadCards: n, organContent: a, cortisolContent: o } = e, i = n ?? [], [s, c] = k(null), d = j(
4279
4301
  () => (m) => (b) => {
4280
4302
  b.organKey && a != null && a[b.organKey] && c({ triadCard: m, category: b });
4281
4303
  },
@@ -4295,7 +4317,7 @@ function Fs({ content: e }) {
4295
4317
  );
4296
4318
  }
4297
4319
  return /* @__PURE__ */ l("div", { className: "mx-auto w-full min-w-0 space-y-6", children: [
4298
- /* @__PURE__ */ t(I, { title: r.title, subtitle: r.subtitle }),
4320
+ /* @__PURE__ */ t(D, { title: r.title, subtitle: r.subtitle }),
4299
4321
  /* @__PURE__ */ t("div", { className: "space-y-6", children: i.map((m) => /* @__PURE__ */ t(
4300
4322
  gr,
4301
4323
  {
@@ -4311,8 +4333,8 @@ function Zo({
4311
4333
  pageHeader: e
4312
4334
  }) {
4313
4335
  return /* @__PURE__ */ l(K, { children: [
4314
- /* @__PURE__ */ t(I, { title: e.title, subtitle: e.subtitle }),
4315
- /* @__PURE__ */ t("div", { className: "space-y-6", children: [0, 1, 2].map((r) => /* @__PURE__ */ l(T, { className: "flex flex-col", children: [
4336
+ /* @__PURE__ */ t(D, { title: e.title, subtitle: e.subtitle }),
4337
+ /* @__PURE__ */ t("div", { className: "space-y-6", children: [0, 1, 2].map((r) => /* @__PURE__ */ l(L, { className: "flex flex-col", children: [
4316
4338
  /* @__PURE__ */ l("div", { className: "mb-6 flex flex-wrap items-center justify-between gap-3", children: [
4317
4339
  /* @__PURE__ */ l("div", { className: "flex min-w-0 flex-1 items-center gap-2", children: [
4318
4340
  /* @__PURE__ */ t(x, { className: "h-9 w-9 shrink-0 rounded-md" }),
@@ -4321,7 +4343,7 @@ function Zo({
4321
4343
  /* @__PURE__ */ t(x, { className: "h-9 w-16" })
4322
4344
  ] }),
4323
4345
  /* @__PURE__ */ t("div", { className: "grid grid-cols-1 gap-4 lg:grid-cols-2 xl:grid-cols-3", children: Vo.map((n) => /* @__PURE__ */ t(
4324
- je,
4346
+ Be,
4325
4347
  {
4326
4348
  variant: "triadResiliency",
4327
4349
  title: n
@@ -4355,11 +4377,11 @@ function Qo(e) {
4355
4377
  rows: r.get(n) ?? []
4356
4378
  })).filter((n) => n.rows.length > 0);
4357
4379
  }
4358
- function Gs({ content: e }) {
4380
+ function Ys({ content: e }) {
4359
4381
  const { pageHeader: r, indicators: n } = e, o = Qo(n ?? []);
4360
4382
  return /* @__PURE__ */ l("div", { className: "mx-auto w-full min-w-0 space-y-6", children: [
4361
- /* @__PURE__ */ t(I, { title: r.title, subtitle: r.subtitle }),
4362
- /* @__PURE__ */ t("div", { className: "flex min-w-0 flex-col gap-6", children: o.map(({ status: i, title: s, rows: c }) => /* @__PURE__ */ l(T, { className: "min-w-0", children: [
4383
+ /* @__PURE__ */ t(D, { title: r.title, subtitle: r.subtitle }),
4384
+ /* @__PURE__ */ t("div", { className: "flex min-w-0 flex-col gap-6", children: o.map(({ status: i, title: s, rows: c }) => /* @__PURE__ */ l(L, { className: "min-w-0", children: [
4363
4385
  /* @__PURE__ */ t("h2", { className: "mb-4 m-0 text-lg font-bold text-[color:var(--mb-color-text)]", children: s }),
4364
4386
  /* @__PURE__ */ t("div", { className: "space-y-2", children: c.map((d) => /* @__PURE__ */ t(
4365
4387
  le,
@@ -4395,8 +4417,8 @@ function Jo({
4395
4417
  pageHeader: e
4396
4418
  }) {
4397
4419
  return /* @__PURE__ */ l(K, { children: [
4398
- /* @__PURE__ */ t(I, { title: e.title, subtitle: e.subtitle }),
4399
- /* @__PURE__ */ t("div", { className: "flex min-w-0 flex-col gap-6", children: Ko.map(({ title: r, rowCount: n }) => /* @__PURE__ */ l(T, { className: "min-w-0", children: [
4420
+ /* @__PURE__ */ t(D, { title: e.title, subtitle: e.subtitle }),
4421
+ /* @__PURE__ */ t("div", { className: "flex min-w-0 flex-col gap-6", children: Ko.map(({ title: r, rowCount: n }) => /* @__PURE__ */ l(L, { className: "min-w-0", children: [
4400
4422
  /* @__PURE__ */ t(x, { className: "mb-4 h-6 w-28 rounded-md" }),
4401
4423
  /* @__PURE__ */ t("div", { className: "space-y-2", children: Array.from({ length: n }, (a, o) => /* @__PURE__ */ t(qo, {}, `${r}-${o}`)) })
4402
4424
  ] }, r)) })
@@ -4440,7 +4462,7 @@ function rl(e) {
4440
4462
  if (r)
4441
4463
  return tl(r) ?? void 0;
4442
4464
  }
4443
- function Ys(e, r) {
4465
+ function Xs(e, r) {
4444
4466
  const n = encodeURIComponent(el(r)), a = e.includes("?") ? "&" : "?";
4445
4467
  return `${e}${a}${Nr}=${n}`;
4446
4468
  }
@@ -4462,7 +4484,7 @@ function ol(e) {
4462
4484
  patientFullName: Zt(e, al)
4463
4485
  };
4464
4486
  }
4465
- function Xs(e, r) {
4487
+ function Vs(e, r) {
4466
4488
  const n = new URLSearchParams();
4467
4489
  r.patientId && n.set("patientId", r.patientId), r.patientFullName && n.set("patientFullName", r.patientFullName);
4468
4490
  const a = n.toString();
@@ -4470,13 +4492,13 @@ function Xs(e, r) {
4470
4492
  const o = e.includes("?") ? "&" : "?";
4471
4493
  return `${e}${o}${a}`;
4472
4494
  }
4473
- function Vs() {
4495
+ function Zs() {
4474
4496
  window.dispatchEvent(new CustomEvent("metabolic:logout")), window.parent !== window && window.parent.postMessage({ type: "metabolic:logout" }, "*");
4475
4497
  }
4476
4498
  function ll(e, r) {
4477
4499
  return r.length === 0 ? !1 : r.some((n) => n === e);
4478
4500
  }
4479
- function Zs(e, r, n) {
4501
+ function Ws(e, r, n) {
4480
4502
  var a;
4481
4503
  (a = e.contentWindow) == null || a.postMessage(
4482
4504
  {
@@ -4571,7 +4593,7 @@ function cl() {
4571
4593
  }
4572
4594
  );
4573
4595
  }
4574
- function Ws() {
4596
+ function Us() {
4575
4597
  return /* @__PURE__ */ l(
4576
4598
  "svg",
4577
4599
  {
@@ -4760,19 +4782,19 @@ async function U(e, r) {
4760
4782
  let d;
4761
4783
  try {
4762
4784
  d = await i(c, { method: "GET", headers: o, signal: s });
4763
- } catch (p) {
4764
- throw Wt(p) ? p : new Error(
4765
- `Network error fetching page "${e}": ${p instanceof Error ? p.message : String(p)}`,
4766
- { cause: p }
4785
+ } catch (g) {
4786
+ throw Wt(g) ? g : new Error(
4787
+ `Network error fetching page "${e}": ${g instanceof Error ? g.message : String(g)}`,
4788
+ { cause: g }
4767
4789
  );
4768
4790
  }
4769
4791
  let m;
4770
4792
  try {
4771
4793
  m = await d.text();
4772
- } catch (p) {
4773
- throw Wt(p) ? p : new Error(
4774
- `Failed to read response body for page "${e}" (HTTP ${d.status}): ${p instanceof Error ? p.message : String(p)}`,
4775
- { cause: p }
4794
+ } catch (g) {
4795
+ throw Wt(g) ? g : new Error(
4796
+ `Failed to read response body for page "${e}" (HTTP ${d.status}): ${g instanceof Error ? g.message : String(g)}`,
4797
+ { cause: g }
4776
4798
  );
4777
4799
  }
4778
4800
  let b;
@@ -4791,13 +4813,13 @@ async function U(e, r) {
4791
4813
  );
4792
4814
  return b;
4793
4815
  }
4794
- const Ar = "Your metabolic overview brings together triad priorities, key metrics, and next steps in one place.", Tr = "Trends and predictive signals help you see how your metabolic trajectory may evolve over time.", Lr = "Your Metabolic Code Vitality Index is the total value of how optimized your body chemistry is performing. Your metabolism is more than just how many calories you burn – it’s the sum total of all the biochemical reactions in all your organ systems that drive your mental and physical vigor.", Pr = "Your answers are synthesized into themes and insights that inform your personalized recommendations.", Sr = "Your personalized supplement timing helps you align intake with your metabolic rhythm and triad priorities.", Mr = "Review your laboratory values with reference context and ordering details.", Hr = "Discover products selected to support your metabolic goals and triad priorities.", kr = "Deeper interpretation connects your lab patterns to your overall metabolic picture.", jr = "Focus on labs that are out of range or flagged so you can address them with your care team.", vl = () => import("./dashboard-x4GA8cqi.js"), wl = () => import("./totalPredictiveIndex-DQdWbzgU.js"), yl = () => import("./wellnessIndicators-CNQcbuvH.js"), Nl = () => import("./questionnaireAnalysis-S3k2ZioO.js"), Cl = () => import("./supplementSchedule-D8PmXo88.js"), Al = () => import("./labResults-CV9K31Os.js"), Tl = () => import("./suggestedProducts-DJlYkHhQ.js"), Ll = () => import("./labAnalysis-CaOCpV2g.js"), Pl = () => import("./alertLabSummary-BAIlZ2_U.js"), Sl = Q(
4816
+ const Ar = "Your metabolic overview brings together triad priorities, key metrics, and next steps in one place.", Lr = "Trends and predictive signals help you see how your metabolic trajectory may evolve over time.", Tr = "Your Metabolic Code Vitality Index is the total value of how optimized your body chemistry is performing. Your metabolism is more than just how many calories you burn – it’s the sum total of all the biochemical reactions in all your organ systems that drive your mental and physical vigor.", Pr = "Your answers are synthesized into themes and insights that inform your personalized recommendations.", Sr = "Your personalized supplement timing helps you align intake with your metabolic rhythm and triad priorities.", Mr = "Review your laboratory values with reference context and ordering details.", kr = "Discover products selected to support your metabolic goals and triad priorities.", Hr = "Deeper interpretation connects your lab patterns to your overall metabolic picture.", jr = "Focus on labs that are out of range or flagged so you can address them with your care team.", vl = () => import("./dashboard-x4GA8cqi.js"), wl = () => import("./totalPredictiveIndex-DQdWbzgU.js"), yl = () => import("./wellnessIndicators-CNQcbuvH.js"), Nl = () => import("./questionnaireAnalysis-S3k2ZioO.js"), Cl = () => import("./supplementSchedule-D8PmXo88.js"), Al = () => import("./labResults-CV9K31Os.js"), Ll = () => import("./suggestedProducts-DJlYkHhQ.js"), Tl = () => import("./labAnalysis-CaOCpV2g.js"), Pl = () => import("./alertLabSummary-BAIlZ2_U.js"), Sl = Q(
4795
4817
  () => vl().then((e) => ({ default: e.DashboardTab }))
4796
4818
  ), Ml = Q(
4797
4819
  () => wl().then((e) => ({ default: e.TotalPredictiveIndexTab }))
4798
- ), Hl = Q(
4799
- () => yl().then((e) => ({ default: e.WellnessIndicatorsTab }))
4800
4820
  ), kl = Q(
4821
+ () => yl().then((e) => ({ default: e.WellnessIndicatorsTab }))
4822
+ ), Hl = Q(
4801
4823
  () => Nl().then((e) => ({
4802
4824
  default: e.QuestionnaireAnalysisTab
4803
4825
  }))
@@ -4806,13 +4828,13 @@ const Ar = "Your metabolic overview brings together triad priorities, key metric
4806
4828
  ), Bl = Q(
4807
4829
  () => Al().then((e) => ({ default: e.LabResultsTab }))
4808
4830
  ), Il = Q(
4809
- () => Tl().then((e) => ({ default: e.SuggestedProductsTab }))
4831
+ () => Ll().then((e) => ({ default: e.SuggestedProductsTab }))
4810
4832
  ), Dl = Q(
4811
- () => Ll().then((e) => ({ default: e.LabAnalysisTab }))
4833
+ () => Tl().then((e) => ({ default: e.LabAnalysisTab }))
4812
4834
  ), Rl = Q(
4813
4835
  () => Pl().then((e) => ({ default: e.AlertLabSummaryTab }))
4814
4836
  );
4815
- const Ie = [
4837
+ const De = [
4816
4838
  {
4817
4839
  id: "dashboard",
4818
4840
  sideMenuLabel: "Dashboard",
@@ -4826,7 +4848,7 @@ const Ie = [
4826
4848
  createHttpFetcher: (e, r) => (n) => e(n, async () => {
4827
4849
  const [a, { mapDashboardPageDtoToTabContent: o }] = await Promise.all([
4828
4850
  U("dashboard", r(n)),
4829
- Promise.resolve().then(() => fi)
4851
+ Promise.resolve().then(() => hi)
4830
4852
  ]);
4831
4853
  return o(a);
4832
4854
  })
@@ -4837,7 +4859,7 @@ const Ie = [
4837
4859
  icon: /* @__PURE__ */ t(dl, {}),
4838
4860
  pageHeader: {
4839
4861
  title: "Total Predictive Trends",
4840
- subtitle: Tr
4862
+ subtitle: Lr
4841
4863
  },
4842
4864
  Tab: Ml,
4843
4865
  Skeleton: Zo,
@@ -4855,14 +4877,14 @@ const Ie = [
4855
4877
  icon: /* @__PURE__ */ t(hl, {}),
4856
4878
  pageHeader: {
4857
4879
  title: "Wellness Indicators",
4858
- subtitle: Lr
4880
+ subtitle: Tr
4859
4881
  },
4860
- Tab: Hl,
4882
+ Tab: kl,
4861
4883
  Skeleton: Jo,
4862
4884
  createHttpFetcher: (e, r) => (n) => e(n, async () => {
4863
4885
  const [a, { mapWellnessIndicatorsDtoToTabContent: o }] = await Promise.all([
4864
4886
  U("wellness-indicators", r(n)),
4865
- Promise.resolve().then(() => Mi)
4887
+ Promise.resolve().then(() => ki)
4866
4888
  ]);
4867
4889
  return o(a);
4868
4890
  })
@@ -4891,14 +4913,14 @@ const Ie = [
4891
4913
  icon: /* @__PURE__ */ t(sl, {}),
4892
4914
  pageHeader: {
4893
4915
  title: "Lab Analysis",
4894
- subtitle: kr
4916
+ subtitle: Hr
4895
4917
  },
4896
4918
  Tab: Dl,
4897
4919
  Skeleton: co,
4898
4920
  createHttpFetcher: (e, r) => (n) => e(n, async () => {
4899
4921
  const [a, { mapLabAnalysisDtoToTabContent: o }] = await Promise.all([
4900
4922
  U("lab-analysis", r(n)),
4901
- Promise.resolve().then(() => gi)
4923
+ Promise.resolve().then(() => fi)
4902
4924
  ]);
4903
4925
  return o(a);
4904
4926
  })
@@ -4929,7 +4951,7 @@ const Ie = [
4929
4951
  title: "Questionnaire Analysis",
4930
4952
  subtitle: Pr
4931
4953
  },
4932
- Tab: kl,
4954
+ Tab: Hl,
4933
4955
  Skeleton: zo,
4934
4956
  createHttpFetcher: (e, r) => (n) => e(n, async () => {
4935
4957
  const [a, { mapQuestionnaireAnalysisDtoToTabContent: o }] = await Promise.all([
@@ -4945,14 +4967,14 @@ const Ie = [
4945
4967
  icon: /* @__PURE__ */ t(ul, {}),
4946
4968
  pageHeader: {
4947
4969
  title: "Suggested Products",
4948
- subtitle: Hr
4970
+ subtitle: kr
4949
4971
  },
4950
4972
  Tab: Il,
4951
4973
  Skeleton: Go,
4952
4974
  createHttpFetcher: (e, r) => (n) => e(n, async () => {
4953
4975
  const [a, { mapSuggestedProductsDtoToTabContent: o }] = await Promise.all([
4954
4976
  U("suggested-products", r(n)),
4955
- Promise.resolve().then(() => yi)
4977
+ Promise.resolve().then(() => Ni)
4956
4978
  ]);
4957
4979
  return o(a);
4958
4980
  })
@@ -4970,29 +4992,33 @@ const Ie = [
4970
4992
  createHttpFetcher: (e, r) => (n) => e(n, async () => {
4971
4993
  const [a, { mapSupplementScheduleDtoToTabContent: o }] = await Promise.all([
4972
4994
  U("supplement-schedule", r(n)),
4973
- Promise.resolve().then(() => Ni)
4995
+ Promise.resolve().then(() => Ci)
4974
4996
  ]);
4975
4997
  return o(a);
4976
4998
  })
4977
4999
  }
4978
- ], Te = Ie.map((e) => ({
5000
+ ], zl = "Supplement schedule is currently unavailable.", Te = De.map((e) => ({
4979
5001
  id: e.id,
4980
5002
  label: e.sideMenuLabel,
4981
- icon: e.icon
5003
+ icon: e.icon,
5004
+ ...e.id === "supplement-schedule" ? {
5005
+ disabled: !0,
5006
+ disabledTooltip: zl
5007
+ } : {}
4982
5008
  })), ht = Object.fromEntries(
4983
- Ie.map((e) => [
5009
+ De.map((e) => [
4984
5010
  e.id,
4985
5011
  { Tab: e.Tab, Skeleton: e.Skeleton, pageHeader: e.pageHeader }
4986
5012
  ])
4987
5013
  );
4988
- function zl(e) {
5014
+ function Ol(e) {
4989
5015
  return ht[e].pageHeader;
4990
5016
  }
4991
- function Ol(e, r) {
4992
- const n = Ie.map((a) => [a.id, a.createHttpFetcher(e, r)]);
5017
+ function El(e, r) {
5018
+ const n = De.map((a) => [a.id, a.createHttpFetcher(e, r)]);
4993
5019
  return Object.fromEntries(n);
4994
5020
  }
4995
- function El({
5021
+ function Fl({
4996
5022
  label: e,
4997
5023
  icon: r,
4998
5024
  isActive: n = !1,
@@ -5004,7 +5030,7 @@ function El({
5004
5030
  onPointerEnter: d,
5005
5031
  onFocus: m
5006
5032
  }) {
5007
- const b = at(), p = !!(s && c), v = /* @__PURE__ */ l(
5033
+ const b = at(), g = !!(s && c), v = /* @__PURE__ */ l(
5008
5034
  M,
5009
5035
  {
5010
5036
  variant: "sideMenu",
@@ -5014,9 +5040,9 @@ function El({
5014
5040
  onPointerEnter: d,
5015
5041
  onFocus: m,
5016
5042
  "aria-current": n ? "page" : void 0,
5017
- "aria-describedby": p ? b : void 0,
5043
+ "aria-describedby": g ? b : void 0,
5018
5044
  "aria-label": e,
5019
- title: p ? void 0 : e,
5045
+ title: g ? void 0 : e,
5020
5046
  className: [
5021
5047
  s ? "text-[color:var(--mb-color-text-muted)]" : n ? "text-[color:var(--mb-color-side-menu-item-text-active)]" : "text-[color:var(--mb-color-side-menu-item-text)]",
5022
5048
  s ? "bg-transparent hover:bg-transparent" : n ? "bg-[color:var(--mb-color-nav-active)] hover:bg-[oklch(from_var(--mb-color-nav-active)_calc(l*0.8)_c_h)]" : "bg-transparent hover:bg-[color-mix(in_srgb,var(--mb-color-nav-active)_50%,transparent)]",
@@ -5037,7 +5063,7 @@ function El({
5037
5063
  ]
5038
5064
  }
5039
5065
  );
5040
- return p ? /* @__PURE__ */ l("span", { className: "group relative block outline-none", children: [
5066
+ return g ? /* @__PURE__ */ l("span", { className: "group relative block outline-none", children: [
5041
5067
  v,
5042
5068
  /* @__PURE__ */ t(
5043
5069
  "span",
@@ -5053,7 +5079,7 @@ function El({
5053
5079
  )
5054
5080
  ] }) : v;
5055
5081
  }
5056
- function Fl({
5082
+ function Gl({
5057
5083
  title: e,
5058
5084
  logo: r,
5059
5085
  footerContent: n,
@@ -5065,25 +5091,25 @@ function Fl({
5065
5091
  onItemClick: d,
5066
5092
  onNavItemPrefetch: m
5067
5093
  }) {
5068
- const b = s !== void 0, [p, v] = H(c), u = s ?? p, f = B(
5094
+ const b = s !== void 0, [g, v] = k(c), u = s ?? g, h = I(
5069
5095
  (C) => {
5070
5096
  d == null || d(C), b || v(C);
5071
5097
  },
5072
5098
  [b, d]
5073
- ), h = !!r, g = e != null && (typeof e != "string" || e.trim().length > 0), y = h || g;
5099
+ ), f = !!r, p = e != null && (typeof e != "string" || e.trim().length > 0), y = f || p;
5074
5100
  return /* @__PURE__ */ l(
5075
5101
  "div",
5076
5102
  {
5077
5103
  className: `mb-root flex h-full min-h-0 flex-col p-2 lg:p-[var(--mb-side-menu-inset,24px)] ${a}`.trim(),
5078
5104
  children: [
5079
5105
  y ? /* @__PURE__ */ l("div", { className: "mb-4 flex min-w-0 shrink-0 flex-col items-center gap-2 lg:mb-8 lg:flex-row lg:items-center", children: [
5080
- h ? /* @__PURE__ */ t("div", { className: "flex w-full shrink-0 justify-center lg:justify-start", children: r }) : null,
5081
- g ? /* @__PURE__ */ t(
5106
+ f ? /* @__PURE__ */ t("div", { className: "flex w-full shrink-0 justify-center lg:justify-start", children: r }) : null,
5107
+ p ? /* @__PURE__ */ t(
5082
5108
  "div",
5083
5109
  {
5084
5110
  className: [
5085
5111
  "min-w-0 flex-1 text-sm font-semibold tracking-tight text-[color:var(--mb-color-text)]",
5086
- h ? "text-center lg:pr-2 lg:text-left" : "hidden lg:block"
5112
+ f ? "text-center lg:pr-2 lg:text-left" : "hidden lg:block"
5087
5113
  ].join(" "),
5088
5114
  children: e
5089
5115
  }
@@ -5097,14 +5123,14 @@ function Fl({
5097
5123
  children: i.map((C) => {
5098
5124
  const N = C.disabled === !0;
5099
5125
  return /* @__PURE__ */ t(
5100
- El,
5126
+ Fl,
5101
5127
  {
5102
5128
  label: C.label,
5103
5129
  icon: C.icon,
5104
5130
  isActive: C.id === u,
5105
5131
  disabled: N,
5106
5132
  disabledTooltip: C.disabledTooltip,
5107
- onClick: N ? void 0 : () => f(C.id),
5133
+ onClick: N ? void 0 : () => h(C.id),
5108
5134
  onPointerEnter: N ? void 0 : () => m == null ? void 0 : m(C.id),
5109
5135
  onFocus: N ? void 0 : () => m == null ? void 0 : m(C.id)
5110
5136
  },
@@ -5123,14 +5149,14 @@ function Br(e) {
5123
5149
  const r = e.displayName;
5124
5150
  return typeof r != "string" || r.trim() === "";
5125
5151
  }
5126
- function Gl(e) {
5152
+ function Yl(e) {
5127
5153
  var n;
5128
5154
  const r = (e ?? "").trim();
5129
5155
  return r ? ((n = r[0]) == null ? void 0 : n.toUpperCase()) ?? "?" : "?";
5130
5156
  }
5131
- function Us({ userProfile: e }) {
5157
+ function Qs({ userProfile: e }) {
5132
5158
  return !e || Br(e) ? null : /* @__PURE__ */ t("div", { className: "mt-2 flex shrink-0 flex-col gap-2 border-t border-[color:var(--mb-color-sidebar-border)] pt-2 lg:mt-4 lg:pt-4", children: /* @__PURE__ */ l("div", { className: "flex w-full min-w-0 flex-col items-center gap-2 lg:flex-row lg:items-center lg:gap-3 lg:justify-start", children: [
5133
- /* @__PURE__ */ t("div", { className: "relative size-10 shrink-0 overflow-hidden rounded-[20px] bg-[color:var(--mb-color-nav-hover)]", children: e.avatarSrc ? /* @__PURE__ */ t("img", { src: e.avatarSrc, alt: "", className: "size-full object-cover" }) : /* @__PURE__ */ t("span", { className: "flex size-full items-center justify-center text-sm font-medium text-[color:var(--mb-color-text)]", children: Gl(e.displayName) }) }),
5159
+ /* @__PURE__ */ t("div", { className: "relative size-10 shrink-0 overflow-hidden rounded-[20px] bg-[color:var(--mb-color-nav-hover)]", children: e.avatarSrc ? /* @__PURE__ */ t("img", { src: e.avatarSrc, alt: "", className: "size-full object-cover" }) : /* @__PURE__ */ t("span", { className: "flex size-full items-center justify-center text-sm font-medium text-[color:var(--mb-color-text)]", children: Yl(e.displayName) }) }),
5134
5160
  /* @__PURE__ */ l("div", { className: "flex min-w-0 max-w-full flex-col items-center gap-0.5 text-center lg:items-start lg:text-left", children: [
5135
5161
  /* @__PURE__ */ t(
5136
5162
  "p",
@@ -5151,7 +5177,7 @@ function Us({ userProfile: e }) {
5151
5177
  ] })
5152
5178
  ] }) });
5153
5179
  }
5154
- function De({
5180
+ function Re({
5155
5181
  apiKey: e,
5156
5182
  userId: r,
5157
5183
  questionnaireResponseId: n,
@@ -5161,7 +5187,7 @@ function De({
5161
5187
  const o = new Headers(a ?? void 0);
5162
5188
  return e && o.set("X-Api-Key", e), r && o.set("X-User-Id", r), n && (o.set("X-Questionnaire-Response-Id", n), o.set("X-Appointment-Id", n)), o;
5163
5189
  }
5164
- function Yl(e, r) {
5190
+ function Xl(e, r) {
5165
5191
  return new Promise((n, a) => {
5166
5192
  if (r.aborted) {
5167
5193
  a(new DOMException("Aborted", "AbortError"));
@@ -5175,10 +5201,10 @@ function Yl(e, r) {
5175
5201
  r.addEventListener("abort", o, { once: !0 });
5176
5202
  });
5177
5203
  }
5178
- async function Xl(e, r, n) {
5179
- return e != null && e > 0 && await Yl(e, r), n();
5204
+ async function Vl(e, r, n) {
5205
+ return e != null && e > 0 && await Xl(e, r), n();
5180
5206
  }
5181
- function Vl(e) {
5207
+ function Zl(e) {
5182
5208
  const {
5183
5209
  reportId: r,
5184
5210
  headers: n,
@@ -5189,45 +5215,45 @@ function Vl(e) {
5189
5215
  simulateDelayMs: c,
5190
5216
  simulateFetchError: d = !1,
5191
5217
  simulateFetchErrorMessage: m = "Simulated fetch error"
5192
- } = e, b = he(), p = De({
5218
+ } = e, b = fe(), g = Re({
5193
5219
  apiKey: a,
5194
5220
  userId: o,
5195
5221
  questionnaireResponseId: i,
5196
5222
  headers: n
5197
5223
  });
5198
- return Ol((f, h) => Xl(c, f, async () => {
5224
+ return El((h, f) => Vl(c, h, async () => {
5199
5225
  if (d)
5200
5226
  throw new Error(m);
5201
- return h();
5202
- }), (f) => ({
5227
+ return f();
5228
+ }), (h) => ({
5203
5229
  baseUrl: b,
5204
5230
  reportId: r,
5205
- headers: p,
5231
+ headers: g,
5206
5232
  fetchImpl: s,
5207
- signal: f
5233
+ signal: h
5208
5234
  }));
5209
5235
  }
5210
- function Zl(e, r) {
5236
+ function Wl(e, r) {
5211
5237
  const n = e.replace(/\/$/, ""), a = r.startsWith("/") ? r : `/${r}`;
5212
5238
  return `${n}${a}`;
5213
5239
  }
5214
- function Wl(e, r) {
5215
- const n = Zl(e || "", "/api/v1/report/download");
5240
+ function Ul(e, r) {
5241
+ const n = Wl(e || "", "/api/v1/report/download");
5216
5242
  if (!r) return n;
5217
5243
  const a = n.includes("?") ? "&" : "?";
5218
5244
  return `${n}${a}report_id=${encodeURIComponent(r)}`;
5219
5245
  }
5220
- function Ul(e, r) {
5246
+ function Ql(e, r) {
5221
5247
  const n = e.headers.get("Content-Disposition");
5222
5248
  if (!n) return r;
5223
5249
  const a = /filename\*?=(?:UTF-8'')?"?([^";]+)"?/i.exec(n);
5224
5250
  return a != null && a[1] ? decodeURIComponent(a[1]) : r;
5225
5251
  }
5226
- function Ql(e, r) {
5252
+ function Kl(e, r) {
5227
5253
  const n = URL.createObjectURL(e), a = document.createElement("a");
5228
5254
  a.href = n, a.download = r, a.rel = "noopener", document.body.appendChild(a), a.click(), a.remove(), setTimeout(() => URL.revokeObjectURL(n), 1e3);
5229
5255
  }
5230
- function Kl(e) {
5256
+ function ql(e) {
5231
5257
  const {
5232
5258
  apiKey: r,
5233
5259
  userId: n,
@@ -5235,36 +5261,36 @@ function Kl(e) {
5235
5261
  questionnaireResponseId: o,
5236
5262
  headers: i,
5237
5263
  fetchImpl: s
5238
- } = e, c = he();
5264
+ } = e, c = fe();
5239
5265
  return async (d) => {
5240
- const m = s ?? globalThis.fetch.bind(globalThis), b = (d == null ? void 0 : d.reportId) ?? a, p = Wl(c, b), v = De({
5266
+ const m = s ?? globalThis.fetch.bind(globalThis), b = (d == null ? void 0 : d.reportId) ?? a, g = Ul(c, b), v = Re({
5241
5267
  apiKey: r,
5242
5268
  userId: n,
5243
5269
  questionnaireResponseId: o,
5244
5270
  headers: i
5245
- }), u = await m(p, {
5271
+ }), u = await m(g, {
5246
5272
  method: "GET",
5247
5273
  headers: v,
5248
5274
  signal: d == null ? void 0 : d.signal
5249
5275
  });
5250
5276
  if (!u.ok)
5251
5277
  throw new Error(`Failed to download report PDF (HTTP ${u.status})`);
5252
- const f = await u.blob(), h = Ul(u, b ? `report-${b}.pdf` : "report.pdf");
5253
- Ql(f, h);
5278
+ const h = await u.blob(), f = Ql(u, b ? `report-${b}.pdf` : "report.pdf");
5279
+ Kl(h, f);
5254
5280
  };
5255
5281
  }
5256
- function ql(e, r) {
5282
+ function Jl(e, r) {
5257
5283
  const n = e.replace(/\/$/, ""), a = r.startsWith("/") ? r : `/${r}`;
5258
5284
  return `${n}${a}`;
5259
5285
  }
5260
- function Jl(e, r) {
5261
- const n = ql(e || "", "/api/v1/report/exists");
5286
+ function _l(e, r) {
5287
+ const n = Jl(e || "", "/api/v1/report/exists");
5262
5288
  return r ? `${n}?report_id=${encodeURIComponent(r)}` : n;
5263
5289
  }
5264
- function _l(e) {
5290
+ function $l(e) {
5265
5291
  return e instanceof DOMException && e.name === "AbortError";
5266
5292
  }
5267
- async function Qs(e) {
5293
+ async function Ks(e) {
5268
5294
  const {
5269
5295
  reportId: r,
5270
5296
  headers: n,
@@ -5273,32 +5299,32 @@ async function Qs(e) {
5273
5299
  questionnaireResponseId: i,
5274
5300
  fetchImpl: s = globalThis.fetch.bind(globalThis),
5275
5301
  signal: c
5276
- } = e, d = he(), m = Jl(d, r), b = De({
5302
+ } = e, d = fe(), m = _l(d, r), b = Re({
5277
5303
  apiKey: a,
5278
5304
  userId: o,
5279
5305
  questionnaireResponseId: i,
5280
5306
  headers: n
5281
5307
  });
5282
- let p;
5308
+ let g;
5283
5309
  try {
5284
- p = await s(m, { method: "GET", headers: b, signal: c });
5285
- } catch (f) {
5286
- throw _l(f) ? f : new Error(
5287
- `Network error checking report availability: ${f instanceof Error ? f.message : String(f)}`,
5288
- { cause: f }
5310
+ g = await s(m, { method: "GET", headers: b, signal: c });
5311
+ } catch (h) {
5312
+ throw $l(h) ? h : new Error(
5313
+ `Network error checking report availability: ${h instanceof Error ? h.message : String(h)}`,
5314
+ { cause: h }
5289
5315
  );
5290
5316
  }
5291
- if (p.status === 404) return !1;
5292
- const v = await p.text();
5317
+ if (g.status === 404) return !1;
5318
+ const v = await g.text();
5293
5319
  let u;
5294
5320
  try {
5295
5321
  u = v ? JSON.parse(v) : null;
5296
5322
  } catch {
5297
5323
  u = v;
5298
5324
  }
5299
- if (!p.ok) {
5300
- const f = typeof u == "object" && u !== null && "error" in u && typeof u.error == "string" ? u.error : null;
5301
- throw new Error(f ?? `Failed to check report availability (HTTP ${p.status})`);
5325
+ if (!g.ok) {
5326
+ const h = typeof u == "object" && u !== null && "error" in u && typeof u.error == "string" ? u.error : null;
5327
+ throw new Error(h ?? `Failed to check report availability (HTTP ${g.status})`);
5302
5328
  }
5303
5329
  if (u === null || typeof u != "object" || Array.isArray(u) || !("exists" in u) || typeof u.exists != "boolean")
5304
5330
  throw new Error("Unexpected response shape for /report/exists: missing boolean 'exists'");
@@ -5334,7 +5360,7 @@ const Ut = {
5334
5360
  function Ir(e) {
5335
5361
  return Ut[e] ?? Ut[1];
5336
5362
  }
5337
- const $l = [
5363
+ const ei = [
5338
5364
  ["morning", "Morning (AM)"],
5339
5365
  ["noon", "Noon"],
5340
5366
  ["afternoon", "Afternoon"],
@@ -5342,23 +5368,26 @@ const $l = [
5342
5368
  ["bedtime", "Bedtime"]
5343
5369
  ];
5344
5370
  function ft(e, r) {
5371
+ var s;
5345
5372
  if (!e) return "—";
5346
- const n = r ? ` ${r}` : "";
5347
- return `${nt(e.low)}-${nt(e.high)}${n}`;
5373
+ const n = (s = e.text) == null ? void 0 : s.trim();
5374
+ if (n) return n;
5375
+ const a = r ? ` ${r}` : "", { low: o, high: i } = e;
5376
+ return o == null && i == null ? "—" : o == null ? i == null ? "—" : `≤${ue(i)}${a}` : i == null ? `≥${ue(o)}${a}` : `${ue(o)}-${ue(i)}${a}`;
5348
5377
  }
5349
- function nt(e) {
5378
+ function ue(e) {
5350
5379
  return !Number.isFinite(e) || Number.isInteger(e) ? String(e) : e.toFixed(2).replace(/\.?0+$/, "");
5351
5380
  }
5352
- function Le(e, r) {
5381
+ function Pe(e, r) {
5353
5382
  if (e == null) return "—";
5354
- const n = r == null ? void 0 : r.trim(), a = nt(e);
5383
+ const n = r == null ? void 0 : r.trim(), a = ue(e);
5355
5384
  return n ? `${a} ${n}` : a;
5356
5385
  }
5357
5386
  function Dr(e) {
5358
5387
  const r = (e ?? "low").toLowerCase();
5359
5388
  return r === "high" ? "high" : r === "med" || r === "moderate" ? "moderate" : "low";
5360
5389
  }
5361
- function ei(e) {
5390
+ function ti(e) {
5362
5391
  const r = e.toLowerCase().trim();
5363
5392
  switch (r) {
5364
5393
  case "hi":
@@ -5382,28 +5411,14 @@ function ei(e) {
5382
5411
  }
5383
5412
  }
5384
5413
  }
5385
- function ti(e) {
5386
- switch ((e ?? "").toLowerCase()) {
5387
- case "hi":
5388
- case "trending_hi":
5389
- return "high";
5390
- case "lo":
5391
- case "trending_lo":
5392
- return "low";
5393
- case "optimal":
5394
- return "optimal";
5395
- default:
5396
- return "trending";
5397
- }
5398
- }
5399
5414
  function Rr(e, r) {
5400
5415
  const n = e.alerts.map((a) => ({
5401
5416
  name: a.name,
5402
5417
  infoAriaLabel: `${a.name} information`,
5403
5418
  symptomScore: ft(a.normal_range, a.unit ?? ""),
5404
- labScore: Le(a.value, a.unit ?? ""),
5419
+ labScore: Pe(a.value, a.unit ?? ""),
5405
5420
  totalScore: a.indicator_percent != null ? String(Math.round(a.indicator_percent)) : "—",
5406
- status: ti(a.interpretation)
5421
+ status: a.status
5407
5422
  }));
5408
5423
  return {
5409
5424
  pageHeader: {
@@ -5417,7 +5432,7 @@ const ri = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5417
5432
  __proto__: null,
5418
5433
  mapAlertLabSummaryDtoToTabContent: Rr
5419
5434
  }, Symbol.toStringTag, { value: "Module" }));
5420
- function Ne(e) {
5435
+ function Ce(e) {
5421
5436
  return e != null ? String(Math.round(e)) : "—";
5422
5437
  }
5423
5438
  function ni(e) {
@@ -5435,21 +5450,7 @@ function ai(e) {
5435
5450
  return "trending";
5436
5451
  }
5437
5452
  }
5438
- function oi(e) {
5439
- switch ((e ?? "").toLowerCase()) {
5440
- case "optimal":
5441
- return "optimal";
5442
- case "hi":
5443
- case "trending_hi":
5444
- return "high";
5445
- case "lo":
5446
- case "trending_lo":
5447
- return "low";
5448
- default:
5449
- return "optimal";
5450
- }
5451
- }
5452
- const li = {
5453
+ const oi = {
5453
5454
  cardio: "cardiopulmonary",
5454
5455
  pulmonary: "cardiopulmonary",
5455
5456
  cardiopulmonary: "cardiopulmonary",
@@ -5457,18 +5458,18 @@ const li = {
5457
5458
  neuro: "neurovascular",
5458
5459
  vascular: "neurovascular"
5459
5460
  };
5460
- function ii(e) {
5461
+ function li(e) {
5461
5462
  const r = e.trim().toLowerCase().replace(/[\s-]+/g, "");
5462
- return li[r] ?? r;
5463
+ return oi[r] ?? r;
5463
5464
  }
5464
- function si(e, r) {
5465
- const n = ii(e.name);
5465
+ function ii(e, r) {
5466
+ const n = li(e.name);
5466
5467
  return {
5467
5468
  name: e.name,
5468
5469
  infoAriaLabel: `${e.name} category information`,
5469
- symptomScore: Ne(e.survey_score),
5470
- labScore: Ne(e.lab_score),
5471
- totalScore: Ne(e.total_score),
5470
+ symptomScore: Ce(e.survey_score),
5471
+ labScore: Ce(e.lab_score),
5472
+ totalScore: Ce(e.total_score),
5472
5473
  status: ai(e.interpretation),
5473
5474
  statusExplanationPanel: r != null && r[n] ? {
5474
5475
  bodyParagraphs: [],
@@ -5476,57 +5477,45 @@ function si(e, r) {
5476
5477
  } : void 0
5477
5478
  };
5478
5479
  }
5479
- function ci(e) {
5480
+ function si(e) {
5480
5481
  const r = e.trim().split(/\s+/).filter(Boolean);
5481
5482
  if (r.length === 0) return "?";
5482
5483
  if (r.length === 1) return r[0].slice(0, 2).toUpperCase();
5483
5484
  const n = r[0][0], a = r[r.length - 1][0];
5484
5485
  return `${n}${a}`.toUpperCase();
5485
5486
  }
5486
- function di(e) {
5487
+ function ci(e) {
5487
5488
  if (!e) return "—";
5488
5489
  const r = e.toLowerCase();
5489
5490
  return r === "female" ? "Female" : r === "male" ? "Male" : e.charAt(0).toUpperCase() + e.slice(1).toLowerCase();
5490
5491
  }
5491
- function mi(e) {
5492
+ function di(e) {
5492
5493
  var a, o;
5493
5494
  const r = (o = (a = e.patient) == null ? void 0 : a.name) == null ? void 0 : o.trim();
5494
5495
  if (!r) return;
5495
5496
  const n = [
5496
- ["Gender", di(e.patient.gender)],
5497
- [
5498
- "Chronological age",
5499
- e.patient.chrono_age != null ? String(e.patient.chrono_age) : "—"
5500
- ],
5501
- [
5502
- "Biological age",
5503
- e.patient.bio_age != null ? String(e.patient.bio_age) : "—"
5504
- ]
5497
+ ["Gender", ci(e.patient.gender)],
5498
+ ["Chronological age", e.patient.chrono_age != null ? String(e.patient.chrono_age) : "—"],
5499
+ ["Biological age", e.patient.bio_age != null ? String(e.patient.bio_age) : "—"]
5505
5500
  ];
5506
5501
  return {
5507
5502
  patientName: r,
5508
- initials: ci(r),
5503
+ initials: si(r),
5509
5504
  rows: n
5510
5505
  };
5511
5506
  }
5512
- function Pe(e) {
5507
+ function Se(e) {
5513
5508
  if (!e) return null;
5514
- const r = /^(\d{4})-(\d{2})-(\d{2})$/.exec(e), n = r ? new Date(
5515
- Number(r[1]),
5516
- Number(r[2]) - 1,
5517
- Number(r[3])
5518
- ) : new Date(e);
5509
+ const r = /^(\d{4})-(\d{2})-(\d{2})$/.exec(e), n = r ? new Date(Number(r[1]), Number(r[2]) - 1, Number(r[3])) : new Date(e);
5519
5510
  return Number.isNaN(n.getTime()) ? e : n.toLocaleDateString(void 0, {
5520
5511
  year: "numeric",
5521
5512
  month: "short",
5522
5513
  day: "numeric"
5523
5514
  });
5524
5515
  }
5525
- function ui(e) {
5516
+ function mi(e) {
5526
5517
  if (e.overall_score == null) return;
5527
- const r = Math.round(e.overall_score), n = Pe(e.labs_last_date), a = Pe(
5528
- e.questionnaire_last_date
5529
- ), o = e.wearable_last_activity ?? null;
5518
+ const r = Math.round(e.overall_score), n = Se(e.labs_last_date), a = Se(e.questionnaire_last_date), o = e.wearable_last_activity ?? null;
5530
5519
  return {
5531
5520
  sectionTitle: "Overall Metabolic Score",
5532
5521
  scorePercent: r,
@@ -5541,15 +5530,15 @@ function ui(e) {
5541
5530
  wearableValueLabel: o ?? ""
5542
5531
  };
5543
5532
  }
5544
- function bi(e, r) {
5533
+ function ui(e, r) {
5545
5534
  if (e.triads.length === 0) return;
5546
5535
  const n = e.triads.map((i) => ({
5547
5536
  triadNumber: i.number,
5548
5537
  name: `${i.name} Triad`,
5549
- aggregateScoreDisplay: Ne(i.total_score)
5538
+ aggregateScoreDisplay: Ce(i.total_score)
5550
5539
  })), a = e.triads.map(
5551
- (i) => i.organs.map((s) => si(s, r))
5552
- ), o = Pe(e.labs_last_date);
5540
+ (i) => i.organs.map((s) => ii(s, r))
5541
+ ), o = Se(e.labs_last_date);
5553
5542
  return {
5554
5543
  sectionTitle: "Total Predictive Trends",
5555
5544
  infoAriaLabel: "Total predictive trends information",
@@ -5561,16 +5550,16 @@ function bi(e, r) {
5561
5550
  categoriesByTriadIndex: a
5562
5551
  };
5563
5552
  }
5564
- function hi(e) {
5553
+ function bi(e) {
5565
5554
  if (e.lab_metrics.length === 0) return;
5566
5555
  const r = e.lab_metrics.map((a) => ({
5567
5556
  name: a.name,
5568
5557
  infoAriaLabel: `${a.name} information`,
5569
5558
  symptomScore: "—",
5570
- labScore: a.value != null ? Le(a.value, ni(a.unit)) : "—",
5559
+ labScore: a.value != null ? Pe(a.value, ni(a.unit)) : "—",
5571
5560
  totalScore: a.indicator_percent != null ? String(Math.round(a.indicator_percent)) : "—",
5572
- status: oi(a.interpretation)
5573
- })), n = Pe(e.labs_last_date);
5561
+ status: a.status
5562
+ })), n = Se(e.labs_last_date);
5574
5563
  return {
5575
5564
  sectionTitle: "Lab Alerts Summary",
5576
5565
  infoAriaLabel: "Alert lab summary information",
@@ -5587,13 +5576,13 @@ function zr(e, r) {
5587
5576
  title: "Dashboard",
5588
5577
  subtitle: Ar
5589
5578
  },
5590
- patientSummary: mi(e),
5579
+ patientSummary: di(e),
5591
5580
  welcome: {
5592
5581
  title: "",
5593
5582
  paragraphs: [],
5594
5583
  actions: [{ id: "export-reports", label: "Export All Reports" }]
5595
5584
  },
5596
- overallScore: ui(e),
5585
+ overallScore: mi(e),
5597
5586
  metaflammation: e.metaflammation ? {
5598
5587
  title: "Metaflammation Gauge",
5599
5588
  value: e.metaflammation.value,
@@ -5601,12 +5590,12 @@ function zr(e, r) {
5601
5590
  infoAriaLabel: "Metaflammation gauge information",
5602
5591
  centerValueColor: "#E97180"
5603
5592
  } : void 0,
5604
- totalPredictiveTrends: bi(e, r),
5605
- alertLabSummaryTable: hi(e),
5593
+ totalPredictiveTrends: ui(e, r),
5594
+ alertLabSummaryTable: bi(e),
5606
5595
  organContent: r
5607
5596
  };
5608
5597
  }
5609
- const fi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5598
+ const hi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5610
5599
  __proto__: null,
5611
5600
  mapDashboardPageDtoToTabContent: zr
5612
5601
  }, Symbol.toStringTag, { value: "Module" }));
@@ -5614,12 +5603,12 @@ function Or(e) {
5614
5603
  return {
5615
5604
  pageHeader: {
5616
5605
  title: "Lab Analysis",
5617
- subtitle: kr
5606
+ subtitle: Hr
5618
5607
  },
5619
5608
  sections: (e.triads ?? []).map((r) => {
5620
5609
  const n = (r.markers ?? []).map((a) => ({
5621
5610
  label: a.name,
5622
- arrows: ei(a.direction)
5611
+ arrows: ti(a.direction)
5623
5612
  }));
5624
5613
  return {
5625
5614
  triadNumber: r.number,
@@ -5632,43 +5621,54 @@ function Or(e) {
5632
5621
  })
5633
5622
  };
5634
5623
  }
5635
- const gi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5624
+ const fi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5636
5625
  __proto__: null,
5637
5626
  mapLabAnalysisDtoToTabContent: Or
5638
5627
  }, Symbol.toStringTag, { value: "Module" }));
5639
- function pi(e) {
5628
+ function gi(e) {
5640
5629
  const r = e.unit ?? "";
5641
5630
  return {
5642
5631
  title: e.name,
5643
5632
  infoAriaLabel: `${e.name} information`,
5644
5633
  normalRange: ft(e.normal_range, r),
5645
- currentRange: Le(e.value, r),
5646
- previousRange: e.previous_value != null ? Le(e.previous_value, r) : void 0,
5647
- indicatorPercent: e.indicator_percent ?? 50
5634
+ currentRange: Pe(e.value, r),
5635
+ previousRange: e.previous_value != null ? Pe(e.previous_value, r) : void 0,
5636
+ indicatorPercent: e.indicator_percent ?? 50,
5637
+ status: e.status
5648
5638
  };
5649
5639
  }
5650
- function xi(e) {
5640
+ function pi(e) {
5651
5641
  return {
5652
5642
  title: e.organ_name,
5653
5643
  subtitle: `T${e.triad_number} Lab Values`,
5654
- metrics: e.metrics.map(pi)
5644
+ metrics: e.metrics.map(gi)
5655
5645
  };
5656
5646
  }
5647
+ function xi(e, r) {
5648
+ const n = /* @__PURE__ */ new Map();
5649
+ return e.forEach((a) => {
5650
+ n.has(a.triad_number) || n.set(a.triad_number, a);
5651
+ }), Array.from(n.values()).map((a) => {
5652
+ var i;
5653
+ const o = ((i = r == null ? void 0 : r.find((s) => s.number === a.triad_number)) == null ? void 0 : i.explainer_paragraphs) ?? Ir(a.triad_number);
5654
+ return {
5655
+ triadNumber: a.triad_number,
5656
+ heading: `Triad ${a.triad_number}: ${a.triad_name}`,
5657
+ videoAriaLabel: "Play introduction video",
5658
+ paragraphs: o
5659
+ };
5660
+ });
5661
+ }
5657
5662
  function Er(e, r) {
5658
- var i;
5659
- const n = e.groups ?? [], a = n[0], o = a ? ((i = r == null ? void 0 : r.find((s) => s.number === a.triad_number)) == null ? void 0 : i.explainer_paragraphs) ?? Ir(a.triad_number) : [];
5663
+ const n = e.groups ?? [], a = xi(n, r), o = a[0];
5660
5664
  return {
5661
5665
  pageHeader: {
5662
5666
  title: "Lab Results",
5663
5667
  subtitle: Mr
5664
5668
  },
5665
- intro: a ? {
5666
- triadNumber: a.triad_number,
5667
- heading: `Triad ${a.triad_number}: ${a.triad_name}`,
5668
- videoAriaLabel: "Play introduction video",
5669
- paragraphs: o
5670
- } : void 0,
5671
- groups: n.map(xi)
5669
+ intro: o,
5670
+ intros: a,
5671
+ groups: n.map(pi)
5672
5672
  };
5673
5673
  }
5674
5674
  const vi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
@@ -5699,12 +5699,15 @@ const wi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5699
5699
  __proto__: null,
5700
5700
  mapQuestionnaireAnalysisDtoToTabContent: Fr
5701
5701
  }, Symbol.toStringTag, { value: "Module" }));
5702
+ function yi(e) {
5703
+ return e >= 60 ? "high" : e <= 40 ? "low" : "optimal";
5704
+ }
5702
5705
  function Gr(e, r) {
5703
5706
  const n = e.triad_number ?? null, a = e.triad_name ?? null, o = (r == null ? void 0 : r.includes("lab-results")) ?? !0;
5704
5707
  return {
5705
5708
  pageHeader: {
5706
5709
  title: "Suggested Products",
5707
- subtitle: Hr
5710
+ subtitle: kr
5708
5711
  },
5709
5712
  intro: n != null ? {
5710
5713
  triadNumber: n,
@@ -5719,7 +5722,8 @@ function Gr(e, r) {
5719
5722
  normalRange: ft(i.normal_range, ""),
5720
5723
  currentRange: String(i.score),
5721
5724
  previousRange: i.previous_score != null ? String(i.previous_score) : void 0,
5722
- indicatorPercent: Math.round(i.indicator_percent)
5725
+ indicatorPercent: Math.round(i.indicator_percent),
5726
+ status: yi(i.indicator_percent)
5723
5727
  })) : [],
5724
5728
  symptomsSectionTitle: "Symptoms",
5725
5729
  symptoms: [...e.symptoms],
@@ -5732,7 +5736,7 @@ function Gr(e, r) {
5732
5736
  }))
5733
5737
  };
5734
5738
  }
5735
- const yi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5739
+ const Ni = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5736
5740
  __proto__: null,
5737
5741
  mapSuggestedProductsDtoToTabContent: Gr
5738
5742
  }, Symbol.toStringTag, { value: "Module" }));
@@ -5747,7 +5751,7 @@ function Yr(e) {
5747
5751
  triadNumbers: [...r.triad_numbers],
5748
5752
  imageSrc: r.image_url ?? void 0,
5749
5753
  imageAlt: r.name,
5750
- scheduleRows: $l.map(([n, a]) => ({
5754
+ scheduleRows: ei.map(([n, a]) => ({
5751
5755
  timeLabel: a,
5752
5756
  dosage: r.schedule[n] ?? null
5753
5757
  }))
@@ -5758,10 +5762,10 @@ function Yr(e) {
5758
5762
  } : void 0
5759
5763
  };
5760
5764
  }
5761
- const Ni = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5765
+ const Ci = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5762
5766
  __proto__: null,
5763
5767
  mapSupplementScheduleDtoToTabContent: Yr
5764
- }, Symbol.toStringTag, { value: "Module" })), Ci = {
5768
+ }, Symbol.toStringTag, { value: "Module" })), Ai = {
5765
5769
  cardio: "cardiopulmonary",
5766
5770
  pulmonary: "cardiopulmonary",
5767
5771
  cardiopulmonary: "cardiopulmonary",
@@ -5769,15 +5773,15 @@ const Ni = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5769
5773
  neuro: "neurovascular",
5770
5774
  vascular: "neurovascular"
5771
5775
  };
5772
- function Ai(e) {
5776
+ function Li(e) {
5773
5777
  const r = e.trim().toLowerCase().replace(/[\s-]+/g, "");
5774
- return Ci[r] ?? r;
5778
+ return Ai[r] ?? r;
5775
5779
  }
5776
5780
  function Xr(e, r, n) {
5777
5781
  return {
5778
5782
  pageHeader: {
5779
5783
  title: "Total Predictive Trends",
5780
- subtitle: Tr
5784
+ subtitle: Lr
5781
5785
  },
5782
5786
  triadCards: e.triads.map((a) => ({
5783
5787
  triadNumber: a.number,
@@ -5787,7 +5791,7 @@ function Xr(e, r, n) {
5787
5791
  currentRangeLabel: "Current Range",
5788
5792
  previousRangeLabel: "Previous Range",
5789
5793
  categories: a.categories.map((o) => {
5790
- const i = Ai(o.name);
5794
+ const i = Li(o.name);
5791
5795
  return {
5792
5796
  title: o.name.toUpperCase(),
5793
5797
  symptomScore: o.symptom_score != null ? String(o.symptom_score) : "—",
@@ -5811,22 +5815,22 @@ const Ti = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5811
5815
  function Qt(e) {
5812
5816
  return `${e.min} - ${e.max}`;
5813
5817
  }
5814
- function Li(e, r) {
5818
+ function Pi(e, r) {
5815
5819
  return e <= r.low.max ? "low" : e <= r.moderate.max ? "moderate" : "high";
5816
5820
  }
5817
- function Pi(e) {
5821
+ function Si(e) {
5818
5822
  return e === "low" ? "optimal" : e === "moderate" ? "trending" : "high";
5819
5823
  }
5820
- function Si(e) {
5824
+ function Mi(e) {
5821
5825
  var a;
5822
- const r = Li(e.score, e.zones), n = (a = e.interpretation) == null ? void 0 : a.trim();
5826
+ const r = Pi(e.score, e.zones), n = (a = e.interpretation) == null ? void 0 : a.trim();
5823
5827
  return {
5824
5828
  name: e.name,
5825
5829
  infoAriaLabel: `${e.name} indicator information`,
5826
5830
  symptomScore: Qt(e.zones.moderate),
5827
5831
  labScore: String(e.score),
5828
5832
  totalScore: Qt(e.zones.high),
5829
- status: Pi(r),
5833
+ status: Si(r),
5830
5834
  statusExplanationPanel: n && n.length > 0 ? { bodyParagraphs: [n] } : void 0
5831
5835
  };
5832
5836
  }
@@ -5834,84 +5838,84 @@ function Vr(e) {
5834
5838
  return {
5835
5839
  pageHeader: {
5836
5840
  title: "Predictive Vitality Wellness Indicators",
5837
- subtitle: Lr
5841
+ subtitle: Tr
5838
5842
  },
5839
- indicators: e.indicators.map(Si)
5843
+ indicators: e.indicators.map(Mi)
5840
5844
  };
5841
5845
  }
5842
- const Mi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5846
+ const ki = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5843
5847
  __proto__: null,
5844
5848
  mapWellnessIndicatorsDtoToTabContent: Vr
5845
5849
  }, Symbol.toStringTag, { value: "Module" }));
5846
5850
  function Hi(e, r) {
5847
5851
  return r ? { ...e, ...r } : e;
5848
5852
  }
5849
- const ki = Ie.map(
5853
+ const ji = De.map(
5850
5854
  (e) => e.id
5851
5855
  );
5852
5856
  function gt(e) {
5853
- return ki.includes(e);
5857
+ return ji.includes(e);
5854
5858
  }
5855
- const ji = 3e5, pt = qt(
5859
+ const Bi = 3e5, pt = qt(
5856
5860
  null
5857
5861
  );
5858
5862
  function Zr() {
5859
5863
  return ot(pt);
5860
5864
  }
5861
- function Ks() {
5865
+ function qs() {
5862
5866
  const e = ot(pt);
5863
- return B(() => {
5867
+ return I(() => {
5864
5868
  e == null || e.invalidate();
5865
5869
  }, [e]);
5866
5870
  }
5867
- function Bi({
5871
+ function Ii({
5868
5872
  children: e,
5869
5873
  fetchers: r,
5870
5874
  ttlMs: n
5871
5875
  }) {
5872
5876
  const a = F(/* @__PURE__ */ new Map()), o = F(/* @__PURE__ */ new Map()), i = F(r);
5873
5877
  i.current = r;
5874
- const s = F(0), c = B(
5878
+ const s = F(0), c = I(
5875
5879
  (u) => {
5876
5880
  if (n <= 0) return;
5877
- const f = a.current.get(u);
5878
- if (f) {
5879
- if (Date.now() > f.expiresAt) {
5881
+ const h = a.current.get(u);
5882
+ if (h) {
5883
+ if (Date.now() > h.expiresAt) {
5880
5884
  a.current.delete(u);
5881
5885
  return;
5882
5886
  }
5883
- return f.data;
5887
+ return h.data;
5884
5888
  }
5885
5889
  },
5886
5890
  [n]
5887
- ), d = B(
5888
- (u, f) => {
5889
- n <= 0 || a.current.set(u, { data: f, expiresAt: Date.now() + n });
5891
+ ), d = I(
5892
+ (u, h) => {
5893
+ n <= 0 || a.current.set(u, { data: h, expiresAt: Date.now() + n });
5890
5894
  },
5891
5895
  [n]
5892
5896
  );
5893
5897
  V(() => {
5894
5898
  s.current += 1, a.current.clear(), o.current.clear(), i.current = r;
5895
- const u = new AbortController(), f = s.current;
5896
- return Object.keys(r).forEach((h) => {
5897
- const g = h;
5898
- r[g](u.signal).then((y) => {
5899
- s.current === f && d(g, y);
5899
+ const u = new AbortController(), h = s.current;
5900
+ return Object.keys(r).forEach((f) => {
5901
+ const p = f;
5902
+ r[p](u.signal).then((y) => {
5903
+ s.current === h && d(p, y);
5900
5904
  }).catch(() => {
5901
5905
  });
5902
5906
  }), () => u.abort();
5903
5907
  }, [r, d]);
5904
- const m = B((u) => {
5908
+ const m = I((u) => {
5905
5909
  u === void 0 ? a.current.clear() : a.current.delete(u);
5906
- }, []), b = B(
5907
- async (u, f) => {
5908
- const h = c(u);
5909
- if (h !== void 0) return h;
5910
- const g = o.current.get(u);
5911
- if (g) return g;
5910
+ }, []), b = I(
5911
+ async (u, h) => {
5912
+ const f = c(u);
5913
+ if (f !== void 0) return f;
5914
+ const p = o.current.get(u);
5915
+ if (p) return p;
5912
5916
  const y = s.current, C = (async () => {
5913
5917
  try {
5914
- const N = await i.current[u](f);
5918
+ const N = await i.current[u](h);
5915
5919
  return y === s.current && d(u, N), N;
5916
5920
  } finally {
5917
5921
  o.current.delete(u);
@@ -5920,11 +5924,11 @@ function Bi({
5920
5924
  return o.current.set(u, C), C;
5921
5925
  },
5922
5926
  [c, d]
5923
- ), p = B(
5927
+ ), g = I(
5924
5928
  (u) => {
5925
5929
  if (!gt(u)) return;
5926
- const f = new AbortController();
5927
- b(u, f.signal).catch(() => {
5930
+ const h = new AbortController();
5931
+ b(u, h.signal).catch(() => {
5928
5932
  });
5929
5933
  },
5930
5934
  [b]
@@ -5933,16 +5937,16 @@ function Bi({
5933
5937
  loadTab: b,
5934
5938
  readValid: c,
5935
5939
  invalidate: m,
5936
- prefetch: p
5940
+ prefetch: g
5937
5941
  }),
5938
- [b, c, m, p]
5942
+ [b, c, m, g]
5939
5943
  );
5940
5944
  return /* @__PURE__ */ t(pt.Provider, { value: v, children: e });
5941
5945
  }
5942
- function Ii(e) {
5946
+ function Di(e) {
5943
5947
  return e instanceof DOMException && e.name === "AbortError" ? !0 : e instanceof Error && e.name === "AbortError";
5944
5948
  }
5945
- function Di(e, r) {
5949
+ function Ri(e, r) {
5946
5950
  switch (r.type) {
5947
5951
  case "loadStart":
5948
5952
  return { status: "loading" };
@@ -5952,41 +5956,41 @@ function Di(e, r) {
5952
5956
  return { status: "error", error: r.error };
5953
5957
  }
5954
5958
  }
5955
- function Ri(e, r) {
5956
- const [n, a] = tn(Di, { status: "idle" }), [o, i] = H(0), s = F(r.onLoadError);
5959
+ function zi(e, r) {
5960
+ const [n, a] = tn(Ri, { status: "idle" }), [o, i] = k(0), s = F(r.onLoadError);
5957
5961
  s.current = r.onLoadError;
5958
- const c = Zr(), d = B(() => {
5962
+ const c = Zr(), d = I(() => {
5959
5963
  c == null || c.invalidate(e), a({ type: "loadStart" }), i((b) => b + 1);
5960
5964
  }, [c, e]), m = F(r.fetchers);
5961
5965
  return m.current = r.fetchers, V(() => {
5962
5966
  let b = !0;
5963
- const p = new AbortController(), { signal: v } = p;
5967
+ const g = new AbortController(), { signal: v } = g;
5964
5968
  return (async () => {
5965
- var f;
5969
+ var h;
5966
5970
  if (c) {
5967
- const h = c.readValid(e);
5968
- if (h !== void 0) {
5969
- a({ type: "loadSuccess", data: h });
5971
+ const f = c.readValid(e);
5972
+ if (f !== void 0) {
5973
+ a({ type: "loadSuccess", data: f });
5970
5974
  return;
5971
5975
  }
5972
5976
  }
5973
5977
  a({ type: "loadStart" });
5974
5978
  try {
5975
- const h = c ? await c.loadTab(e, v) : await m.current[e](v);
5979
+ const f = c ? await c.loadTab(e, v) : await m.current[e](v);
5976
5980
  if (!b) return;
5977
- a({ type: "loadSuccess", data: h });
5978
- } catch (h) {
5979
- if (!b || Ii(h)) return;
5980
- const g = h instanceof Error ? h : new Error(String(h));
5981
- a({ type: "loadError", error: g }), (f = s.current) == null || f.call(s, { navItemId: e, error: g });
5981
+ a({ type: "loadSuccess", data: f });
5982
+ } catch (f) {
5983
+ if (!b || Di(f)) return;
5984
+ const p = f instanceof Error ? f : new Error(String(f));
5985
+ a({ type: "loadError", error: p }), (h = s.current) == null || h.call(s, { navItemId: e, error: p });
5982
5986
  }
5983
5987
  })(), () => {
5984
- b = !1, p.abort();
5988
+ b = !1, g.abort();
5985
5989
  };
5986
5990
  }, [e, o, c]), { ...n, refetch: d, loadGeneration: o };
5987
5991
  }
5988
5992
  const Kt = "dashboard";
5989
- function zi({ className: e }) {
5993
+ function Oi({ className: e }) {
5990
5994
  return /* @__PURE__ */ l(
5991
5995
  "div",
5992
5996
  {
@@ -6008,7 +6012,7 @@ function zi({ className: e }) {
6008
6012
  }
6009
6013
  );
6010
6014
  }
6011
- function Oi({ className: e }) {
6015
+ function Ei({ className: e }) {
6012
6016
  return /* @__PURE__ */ l(
6013
6017
  "div",
6014
6018
  {
@@ -6027,7 +6031,7 @@ function Oi({ className: e }) {
6027
6031
  }
6028
6032
  );
6029
6033
  }
6030
- function Ei({ onRetry: e }) {
6034
+ function Fi({ onRetry: e }) {
6031
6035
  return /* @__PURE__ */ l(
6032
6036
  "div",
6033
6037
  {
@@ -6067,7 +6071,7 @@ function Ei({ onRetry: e }) {
6067
6071
  }
6068
6072
  );
6069
6073
  }
6070
- class Fi extends rn {
6074
+ class Gi extends rn {
6071
6075
  constructor() {
6072
6076
  super(...arguments);
6073
6077
  yt(this, "state", { error: null });
@@ -6083,7 +6087,7 @@ class Fi extends rn {
6083
6087
  }
6084
6088
  render() {
6085
6089
  return this.state.error ? /* @__PURE__ */ t(
6086
- Gi,
6090
+ Yi,
6087
6091
  {
6088
6092
  onRetry: () => {
6089
6093
  this.props.onRecover();
@@ -6092,7 +6096,7 @@ class Fi extends rn {
6092
6096
  ) : this.props.children;
6093
6097
  }
6094
6098
  }
6095
- function Gi({ onRetry: e }) {
6099
+ function Yi({ onRetry: e }) {
6096
6100
  return /* @__PURE__ */ l(
6097
6101
  "div",
6098
6102
  {
@@ -6132,41 +6136,41 @@ function Gi({ onRetry: e }) {
6132
6136
  }
6133
6137
  );
6134
6138
  }
6135
- function Yi({
6139
+ function Xi({
6136
6140
  navItemId: e,
6137
6141
  data: r
6138
6142
  }) {
6139
6143
  const { Tab: n } = ht[e];
6140
6144
  return /* @__PURE__ */ t(n, { content: r });
6141
6145
  }
6142
- function Xi({
6146
+ function Vi({
6143
6147
  navItemId: e,
6144
6148
  contentFetchers: r,
6145
6149
  onDashboardTabContentLoadError: n
6146
6150
  }) {
6147
- const a = Ri(e, {
6151
+ const a = zi(e, {
6148
6152
  fetchers: r,
6149
6153
  onLoadError: n
6150
- }), o = zl(e), s = ht[e].Skeleton;
6151
- return a.status === "idle" || a.status === "loading" ? /* @__PURE__ */ t(s, { pageHeader: o }) : a.status === "error" ? /* @__PURE__ */ t(Ei, { onRetry: () => a.refetch() }) : /* @__PURE__ */ t(
6152
- Fi,
6154
+ }), o = Ol(e), s = ht[e].Skeleton;
6155
+ return a.status === "idle" || a.status === "loading" ? /* @__PURE__ */ t(s, { pageHeader: o }) : a.status === "error" ? /* @__PURE__ */ t(Fi, { onRetry: () => a.refetch() }) : /* @__PURE__ */ t(
6156
+ Gi,
6153
6157
  {
6154
6158
  resetKey: `${e}-${a.loadGeneration}`,
6155
6159
  onRecover: () => {
6156
6160
  a.refetch();
6157
6161
  },
6158
- children: /* @__PURE__ */ t(nn, { fallback: /* @__PURE__ */ t(s, { pageHeader: o }), children: /* @__PURE__ */ t(Yi, { navItemId: e, data: a.data }) })
6162
+ children: /* @__PURE__ */ t(nn, { fallback: /* @__PURE__ */ t(s, { pageHeader: o }), children: /* @__PURE__ */ t(Xi, { navItemId: e, data: a.data }) })
6159
6163
  }
6160
6164
  );
6161
6165
  }
6162
- function Vi({
6166
+ function Zi({
6163
6167
  activeItemId: e,
6164
6168
  activeLabel: r,
6165
6169
  contentFetchers: n,
6166
6170
  onDashboardTabContentLoadError: a
6167
6171
  }) {
6168
6172
  return gt(e) ? /* @__PURE__ */ t(
6169
- Xi,
6173
+ Vi,
6170
6174
  {
6171
6175
  navItemId: e,
6172
6176
  contentFetchers: n,
@@ -6174,7 +6178,7 @@ function Vi({
6174
6178
  }
6175
6179
  ) : /* @__PURE__ */ t("div", { children: /* @__PURE__ */ t("h1", { className: "text-2xl font-semibold tracking-tight text-[color:var(--mb-color-text)]", children: r }) });
6176
6180
  }
6177
- function Zi({
6181
+ function Wi({
6178
6182
  renderMainContent: e,
6179
6183
  content: r,
6180
6184
  activeItemId: n,
@@ -6186,7 +6190,7 @@ function Zi({
6186
6190
  useDefaultTabData: d
6187
6191
  }) {
6188
6192
  const m = (e == null ? void 0 : e(n)) ?? (r !== void 0 ? r : /* @__PURE__ */ t(
6189
- Vi,
6193
+ Zi,
6190
6194
  {
6191
6195
  activeItemId: n,
6192
6196
  activeLabel: a,
@@ -6194,12 +6198,12 @@ function Zi({
6194
6198
  onDashboardTabContentLoadError: i
6195
6199
  }
6196
6200
  ));
6197
- return !c && d ? /* @__PURE__ */ t(Oi, { className: "max-w-full shrink-0" }) : Br(s) ? /* @__PURE__ */ l(te, { children: [
6198
- /* @__PURE__ */ t(zi, { className: "max-w-full shrink-0" }),
6201
+ return !c && d ? /* @__PURE__ */ t(Ei, { className: "max-w-full shrink-0" }) : Br(s) ? /* @__PURE__ */ l(ae, { children: [
6202
+ /* @__PURE__ */ t(Oi, { className: "max-w-full shrink-0" }),
6199
6203
  m
6200
6204
  ] }) : m;
6201
6205
  }
6202
- function Wi({
6206
+ function Ui({
6203
6207
  rootStyle: e,
6204
6208
  enableTabContentCache: r,
6205
6209
  menuTitle: n,
@@ -6211,11 +6215,11 @@ function Wi({
6211
6215
  activeItemId: d,
6212
6216
  handleNavItemClick: m,
6213
6217
  shellClassName: b,
6214
- sidebarWidthClassName: p,
6218
+ sidebarWidthClassName: g,
6215
6219
  mainAreaClassName: v,
6216
6220
  mainContent: u
6217
6221
  }) {
6218
- const f = Zr();
6222
+ const h = Zr();
6219
6223
  return /* @__PURE__ */ t(
6220
6224
  "div",
6221
6225
  {
@@ -6225,7 +6229,7 @@ function Wi({
6225
6229
  gl,
6226
6230
  {
6227
6231
  sidebar: /* @__PURE__ */ t(
6228
- Fl,
6232
+ Gl,
6229
6233
  {
6230
6234
  title: n,
6231
6235
  logo: a,
@@ -6235,34 +6239,37 @@ function Wi({
6235
6239
  items: c,
6236
6240
  activeItemId: d,
6237
6241
  onItemClick: m,
6238
- onNavItemPrefetch: r && f ? (g) => {
6239
- gt(g) && f.prefetch(g);
6242
+ onNavItemPrefetch: r && h ? (p) => {
6243
+ gt(p) && h.prefetch(p);
6240
6244
  } : void 0
6241
6245
  }
6242
6246
  ),
6243
- sidebarWidthClassName: p,
6247
+ sidebarWidthClassName: g,
6244
6248
  className: b,
6245
- children: /* @__PURE__ */ t("div", { className: v, children: u })
6249
+ children: /* @__PURE__ */ l("div", { className: v, children: [
6250
+ u,
6251
+ /* @__PURE__ */ t("div", { "aria-hidden": "true", className: "h-8 shrink-0" })
6252
+ ] })
6246
6253
  }
6247
6254
  )
6248
6255
  }
6249
6256
  );
6250
6257
  }
6251
- function Ui({
6258
+ function Qi({
6252
6259
  wrapTabContentCache: e,
6253
6260
  fetchers: r,
6254
6261
  cacheTtlMs: n,
6255
6262
  viewProps: a
6256
6263
  }) {
6257
- const o = /* @__PURE__ */ t(Wi, { ...a });
6258
- return e ? /* @__PURE__ */ t(Bi, { fetchers: r, ttlMs: n, children: o }) : o;
6264
+ const o = /* @__PURE__ */ t(Ui, { ...a });
6265
+ return e ? /* @__PURE__ */ t(Ii, { fetchers: r, ttlMs: n, children: o }) : o;
6259
6266
  }
6260
- const Qi = [
6267
+ const Ki = [
6261
6268
  { id: "sim-pt-001", label: "Alex Morgan" },
6262
6269
  { id: "sim-pt-002", label: "Jordan Lee" },
6263
6270
  { id: "sim-pt-003", label: "Sam Rivera" },
6264
6271
  { id: "sim-pt-004", label: "Taylor Chen" }
6265
- ], Ki = [
6272
+ ], qi = [
6266
6273
  { id: "sim-rpt-001", label: "March 12, 2026" },
6267
6274
  { id: "sim-rpt-002", label: "February 4, 2026" },
6268
6275
  { id: "sim-rpt-003", label: "January 18, 2026" },
@@ -6282,18 +6289,18 @@ function Qr({
6282
6289
  }
6283
6290
  );
6284
6291
  }
6285
- function qi() {
6286
- return Qi;
6287
- }
6288
6292
  function Ji() {
6289
6293
  return Ki;
6290
6294
  }
6291
- function _i({
6295
+ function _i() {
6296
+ return qi;
6297
+ }
6298
+ function $i({
6292
6299
  rootStyle: e,
6293
6300
  onSelectPatient: r,
6294
6301
  onBack: n
6295
6302
  }) {
6296
- const a = qi();
6303
+ const a = Ji();
6297
6304
  return /* @__PURE__ */ t(
6298
6305
  Qr,
6299
6306
  {
@@ -6329,12 +6336,12 @@ function _i({
6329
6336
  }
6330
6337
  );
6331
6338
  }
6332
- function $i({
6339
+ function es({
6333
6340
  rootStyle: e,
6334
6341
  onSelectReport: r,
6335
6342
  onBack: n
6336
6343
  }) {
6337
- const a = Ji();
6344
+ const a = _i();
6338
6345
  return /* @__PURE__ */ t(
6339
6346
  Qr,
6340
6347
  {
@@ -6370,7 +6377,7 @@ function $i({
6370
6377
  }
6371
6378
  );
6372
6379
  }
6373
- function es({
6380
+ function ts({
6374
6381
  rootStyle: e,
6375
6382
  simulationSessionReady: r,
6376
6383
  simRole: n,
@@ -6383,7 +6390,7 @@ function es({
6383
6390
  if (!r) {
6384
6391
  if (n === "practitioner")
6385
6392
  return /* @__PURE__ */ t(
6386
- _i,
6393
+ $i,
6387
6394
  {
6388
6395
  rootStyle: e,
6389
6396
  onSelectPatient: a,
@@ -6392,7 +6399,7 @@ function es({
6392
6399
  );
6393
6400
  if (n === "patient")
6394
6401
  return /* @__PURE__ */ t(
6395
- $i,
6402
+ es,
6396
6403
  {
6397
6404
  rootStyle: e,
6398
6405
  onSelectReport: i,
@@ -6402,7 +6409,7 @@ function es({
6402
6409
  }
6403
6410
  return c;
6404
6411
  }
6405
- function ts(e) {
6412
+ function rs(e) {
6406
6413
  return j(() => {
6407
6414
  const r = bn(e);
6408
6415
  return {
@@ -6411,18 +6418,18 @@ function ts(e) {
6411
6418
  };
6412
6419
  }, [e]);
6413
6420
  }
6414
- function rs(e, r) {
6421
+ function ns(e, r) {
6415
6422
  const n = e.replace(/\/$/, ""), a = r.startsWith("/") ? r : `/${r}`;
6416
6423
  return `${n}${a}`;
6417
6424
  }
6418
6425
  function Kr(e, r) {
6419
- const n = rs(e || "", "/api/v1/report/full");
6426
+ const n = ns(e || "", "/api/v1/report/full");
6420
6427
  return r ? `${n}?report_id=${encodeURIComponent(r)}` : n;
6421
6428
  }
6422
- function ns(e) {
6429
+ function as(e) {
6423
6430
  return e instanceof DOMException && e.name === "AbortError";
6424
6431
  }
6425
- async function as(e) {
6432
+ async function os(e) {
6426
6433
  const {
6427
6434
  baseUrl: r,
6428
6435
  reportId: n,
@@ -6434,7 +6441,7 @@ async function as(e) {
6434
6441
  try {
6435
6442
  c = await o(s, { method: "GET", headers: a, signal: i });
6436
6443
  } catch (b) {
6437
- throw ns(b) ? b : new Error(
6444
+ throw as(b) ? b : new Error(
6438
6445
  `Network error fetching full report: ${b instanceof Error ? b.message : String(b)}`,
6439
6446
  { cause: b }
6440
6447
  );
@@ -6447,18 +6454,18 @@ async function as(e) {
6447
6454
  m = d;
6448
6455
  }
6449
6456
  if (!c.ok) {
6450
- const p = (typeof m == "object" && m !== null && "error" in m && typeof m.error == "string" ? m.error : null) ?? `HTTP ${c.status}`, v = new Error(p);
6457
+ const g = (typeof m == "object" && m !== null && "error" in m && typeof m.error == "string" ? m.error : null) ?? `HTTP ${c.status}`, v = new Error(g);
6451
6458
  throw v.status = c.status, v;
6452
6459
  }
6453
6460
  if (m === null || typeof m != "object" || Array.isArray(m) || !("report" in m) || !("pages" in m))
6454
6461
  throw new Error("Unexpected response shape for /report/full: missing 'report' or 'pages'");
6455
6462
  return m;
6456
6463
  }
6457
- const os = 5e3, Je = /* @__PURE__ */ new Map();
6458
- function ls(e, r, n, a) {
6464
+ const ls = 5e3, _e = /* @__PURE__ */ new Map();
6465
+ function is(e, r, n, a) {
6459
6466
  return `${e}|${r ?? ""}|${n ?? ""}|${a ?? ""}`;
6460
6467
  }
6461
- function is(e) {
6468
+ function ss(e) {
6462
6469
  const {
6463
6470
  reportId: r,
6464
6471
  headers: n,
@@ -6467,73 +6474,73 @@ function is(e) {
6467
6474
  questionnaireResponseId: i,
6468
6475
  fetchImpl: s,
6469
6476
  onFullReportLoaded: c
6470
- } = e, d = he(), m = De({
6477
+ } = e, d = fe(), m = Re({
6471
6478
  apiKey: a,
6472
6479
  userId: o,
6473
6480
  questionnaireResponseId: i,
6474
6481
  headers: n
6475
- }), b = ls(
6482
+ }), b = is(
6476
6483
  Kr(d, r),
6477
6484
  a,
6478
6485
  o,
6479
6486
  i
6480
- ), p = (h) => (c && h.then(c, () => {
6481
- }), h), v = () => {
6482
- const h = Je.get(b);
6483
- if (h && Date.now() < h.expiresAt) return p(h.promise);
6484
- const g = as({
6487
+ ), g = (f) => (c && f.then(c, () => {
6488
+ }), f), v = () => {
6489
+ const f = _e.get(b);
6490
+ if (f && Date.now() < f.expiresAt) return g(f.promise);
6491
+ const p = os({
6485
6492
  baseUrl: d,
6486
6493
  reportId: r,
6487
6494
  headers: m,
6488
6495
  fetchImpl: s
6489
6496
  });
6490
- return g.catch(() => Je.delete(b)), Je.set(b, { promise: g, expiresAt: Date.now() + os }), p(g);
6497
+ return p.catch(() => _e.delete(b)), _e.set(b, { promise: p, expiresAt: Date.now() + ls }), g(p);
6491
6498
  };
6492
6499
  v();
6493
- const u = (h) => v();
6500
+ const u = (f) => v();
6494
6501
  return {
6495
- dashboard: async (h) => {
6496
- const g = await u();
6497
- return zr(g.pages.dashboard, g.organ_content);
6502
+ dashboard: async (f) => {
6503
+ const p = await u();
6504
+ return zr(p.pages.dashboard, p.organ_content);
6498
6505
  },
6499
- "total-predictive-index": async (h) => {
6500
- const g = await u();
6506
+ "total-predictive-index": async (f) => {
6507
+ const p = await u();
6501
6508
  return Xr(
6502
- g.pages["total-predictive-index"],
6503
- g.organ_content,
6504
- g.cortisol_content
6509
+ p.pages["total-predictive-index"],
6510
+ p.organ_content,
6511
+ p.cortisol_content
6505
6512
  );
6506
6513
  },
6507
- "wellness-indicators": async (h) => Vr((await u()).pages["wellness-indicators"]),
6508
- "questionnaire-analysis": async (h) => Fr(
6514
+ "wellness-indicators": async (f) => Vr((await u()).pages["wellness-indicators"]),
6515
+ "questionnaire-analysis": async (f) => Fr(
6509
6516
  (await u()).pages["questionnaire-analysis"]
6510
6517
  ),
6511
- "supplement-schedule": async (h) => Yr((await u()).pages["supplement-schedule"]),
6512
- "lab-results": async (h) => {
6513
- const g = await u();
6514
- return Er(g.pages["lab-results"], g.triad_content);
6518
+ "supplement-schedule": async (f) => Yr((await u()).pages["supplement-schedule"]),
6519
+ "lab-results": async (f) => {
6520
+ const p = await u();
6521
+ return Er(p.pages["lab-results"], p.triad_content);
6515
6522
  },
6516
- "suggested-products": async (h) => {
6517
- const g = await u();
6523
+ "suggested-products": async (f) => {
6524
+ const p = await u();
6518
6525
  return Gr(
6519
- g.pages["suggested-products"],
6520
- g.report.available_pages
6526
+ p.pages["suggested-products"],
6527
+ p.report.available_pages
6521
6528
  );
6522
6529
  },
6523
- "lab-analysis": async (h) => Or((await u()).pages["lab-analysis"]),
6524
- "alert-lab-summary": async (h) => {
6525
- const g = await u();
6530
+ "lab-analysis": async (f) => Or((await u()).pages["lab-analysis"]),
6531
+ "alert-lab-summary": async (f) => {
6532
+ const p = await u();
6526
6533
  return Rr(
6527
- g.pages["alert-lab-summary"],
6528
- g.alert_lab_content
6534
+ p.pages["alert-lab-summary"],
6535
+ p.alert_lab_content
6529
6536
  );
6530
6537
  }
6531
6538
  };
6532
6539
  }
6533
- function ss(e, r) {
6540
+ function cs(e, r) {
6534
6541
  return e === r ? !0 : !e || !r || e.length !== r.length ? !1 : e.every((n, a) => n === r[a]);
6535
6542
  }
6536
- function cs({
6543
+ function ds({
6537
6544
  config: e,
6538
6545
  apiKey: r,
6539
6546
  reportHttpConfig: n,
@@ -6544,52 +6551,52 @@ function cs({
6544
6551
  dashboardTabContentCacheTtlMs: c,
6545
6552
  simulationReportId: d
6546
6553
  }) {
6547
- const m = r ?? (e == null ? void 0 : e.apiKey), b = Ao(m), p = i === void 0 && s === void 0, [v, u] = H(), f = j(() => {
6554
+ const m = r ?? (e == null ? void 0 : e.apiKey), b = Ao(m), g = i === void 0 && s === void 0, [v, u] = k(), h = j(() => {
6548
6555
  const P = { ...n ?? {} };
6549
6556
  return d != null && (P.reportId = d), P;
6550
- }, [n, d]), h = j(
6557
+ }, [n, d]), f = j(
6551
6558
  () => [
6552
- f.apiKey ?? "",
6553
- f.userId ?? "",
6554
- f.reportId ?? "",
6555
- f.questionnaireResponseId ?? ""
6559
+ h.apiKey ?? "",
6560
+ h.userId ?? "",
6561
+ h.reportId ?? "",
6562
+ h.questionnaireResponseId ?? ""
6556
6563
  ].join("|"),
6557
6564
  [
6558
- f.apiKey,
6559
- f.userId,
6560
- f.reportId,
6561
- f.questionnaireResponseId
6565
+ h.apiKey,
6566
+ h.userId,
6567
+ h.reportId,
6568
+ h.questionnaireResponseId
6562
6569
  ]
6563
- ), g = F(h);
6570
+ ), p = F(f);
6564
6571
  V(() => {
6565
- g.current = h, u(void 0);
6566
- }, [h]);
6567
- const y = B((P, A) => {
6568
- if (g.current !== A) return;
6572
+ p.current = f, u(void 0);
6573
+ }, [f]);
6574
+ const y = I((P, A) => {
6575
+ if (p.current !== A) return;
6569
6576
  const S = [...P.report.available_pages];
6570
6577
  u(
6571
- (L) => ss(L, S) ? L : S
6578
+ (T) => cs(T, S) ? T : S
6572
6579
  );
6573
6580
  }, []), C = j(() => {
6574
- const P = is({
6575
- ...f,
6576
- onFullReportLoaded: (A) => y(A, h)
6581
+ const P = ss({
6582
+ ...h,
6583
+ onFullReportLoaded: (A) => y(A, f)
6577
6584
  });
6578
6585
  return Hi(P, a);
6579
- }, [a, y, h, f]), N = j(() => o || Kl(f), [o, f]);
6586
+ }, [a, y, f, h]), N = j(() => o || ql(h), [o, h]);
6580
6587
  return {
6581
6588
  apiKeyAccepted: b,
6582
- useDefaultTabData: p,
6589
+ useDefaultTabData: g,
6583
6590
  resolvedDashboardContentFetchers: C,
6584
6591
  resolvedExportReports: N,
6585
- resolvedCacheTtlMs: c ?? ji,
6592
+ resolvedCacheTtlMs: c ?? Bi,
6586
6593
  availableReportPages: v
6587
6594
  };
6588
6595
  }
6589
- function ds(e) {
6596
+ function ms(e) {
6590
6597
  const { logo: r } = e, { src: n, srcMobile: a, alt: o, width: i, height: s, widthMobile: c, heightMobile: d, placeholder: m } = r;
6591
6598
  if (n && a)
6592
- return /* @__PURE__ */ l(te, { children: [
6599
+ return /* @__PURE__ */ l(ae, { children: [
6593
6600
  /* @__PURE__ */ t(
6594
6601
  "img",
6595
6602
  {
@@ -6626,7 +6633,7 @@ function ds(e) {
6626
6633
  );
6627
6634
  if (m) return /* @__PURE__ */ t(mn, {});
6628
6635
  }
6629
- function ms({
6636
+ function us({
6630
6637
  role: e,
6631
6638
  patientLabel: r,
6632
6639
  onChangeUser: n
@@ -6654,28 +6661,28 @@ function ms({
6654
6661
  )
6655
6662
  ] });
6656
6663
  }
6657
- function ye(e) {
6664
+ function Ne(e) {
6658
6665
  return e === "practitioner" ? "practitioner" : e === "patient" ? "patient" : null;
6659
6666
  }
6660
- function us(e) {
6661
- const [r, n] = H(
6662
- () => ye(e)
6663
- ), [a, o] = H(null), [i, s] = H(""), [c, d] = H(null), [m, b] = H(""), p = j(() => {
6667
+ function bs(e) {
6668
+ const [r, n] = k(
6669
+ () => Ne(e)
6670
+ ), [a, o] = k(null), [i, s] = k(""), [c, d] = k(null), [m, b] = k(""), g = j(() => {
6664
6671
  if (r === "practitioner" && a != null)
6665
6672
  return a;
6666
6673
  if (r === "patient" && c != null)
6667
6674
  return c;
6668
- }, [r, a, c]), v = r === "practitioner" && a !== null || r === "patient" && c !== null, u = B(() => {
6669
- n(ye(e)), o(null), s(""), d(null), b("");
6670
- }, [e]), f = B(() => n("practitioner"), []), h = B(() => n("patient"), []), g = B(
6671
- () => n(ye(e)),
6675
+ }, [r, a, c]), v = r === "practitioner" && a !== null || r === "patient" && c !== null, u = I(() => {
6676
+ n(Ne(e)), o(null), s(""), d(null), b("");
6677
+ }, [e]), h = I(() => n("practitioner"), []), f = I(() => n("patient"), []), p = I(
6678
+ () => n(Ne(e)),
6672
6679
  [e]
6673
- ), y = B(
6674
- () => n(ye(e)),
6680
+ ), y = I(
6681
+ () => n(Ne(e)),
6675
6682
  [e]
6676
- ), C = B((w, P) => {
6683
+ ), C = I((w, P) => {
6677
6684
  o(w), s(P);
6678
- }, []), N = B((w, P) => {
6685
+ }, []), N = I((w, P) => {
6679
6686
  d(w), b(P);
6680
6687
  }, []);
6681
6688
  return {
@@ -6689,23 +6696,23 @@ function us(e) {
6689
6696
  setSimPatientReportId: d,
6690
6697
  simPatientReportLabel: m,
6691
6698
  setSimPatientReportLabel: b,
6692
- simulationReportId: p,
6699
+ simulationReportId: g,
6693
6700
  simulationSessionReady: v,
6694
6701
  resetSimulationSession: u,
6695
- onChoosePractitioner: f,
6696
- onChoosePatient: h,
6697
- onBackFromPatientPicker: g,
6702
+ onChoosePractitioner: h,
6703
+ onChoosePatient: f,
6704
+ onBackFromPatientPicker: p,
6698
6705
  onBackFromPatientReportPicker: y,
6699
6706
  onSelectPatient: C,
6700
6707
  onSelectPatientReport: N
6701
6708
  };
6702
6709
  }
6703
- function bs({
6710
+ function hs({
6704
6711
  activeNavItemIdProp: e,
6705
6712
  defaultActiveNavItemId: r,
6706
6713
  onActiveNavItemChange: n
6707
6714
  }) {
6708
- const [a, o] = H(r), i = e !== void 0 ? e : a, s = B(
6715
+ const [a, o] = k(r), i = e !== void 0 ? e : a, s = I(
6709
6716
  (c) => {
6710
6717
  n == null || n(c), e === void 0 && o(c);
6711
6718
  },
@@ -6713,21 +6720,21 @@ function bs({
6713
6720
  );
6714
6721
  return { activeItemId: i, handleNavItemClick: s };
6715
6722
  }
6716
- const hs = "Your lab results will be available once the lab requisition has been completed and processed.", fs = /* @__PURE__ */ new Set([
6723
+ const fs = "Your lab results will be available once the lab requisition has been completed and processed.", gs = /* @__PURE__ */ new Set([
6717
6724
  "lab-results",
6718
6725
  "lab-analysis",
6719
6726
  "alert-lab-summary"
6720
6727
  ]);
6721
- function gs(e) {
6728
+ function ps(e) {
6722
6729
  if (!e) return Te;
6723
6730
  const r = new Set(e);
6724
- return Te.map((n) => !fs.has(n.id) || r.has(n.id) ? n : {
6731
+ return Te.map((n) => !gs.has(n.id) || r.has(n.id) ? n : {
6725
6732
  ...n,
6726
6733
  disabled: !0,
6727
- disabledTooltip: hs
6734
+ disabledTooltip: fs
6728
6735
  });
6729
6736
  }
6730
- function ps({
6737
+ function xs({
6731
6738
  config: e,
6732
6739
  apiKey: r,
6733
6740
  viewerRole: n,
@@ -6739,103 +6746,103 @@ function ps({
6739
6746
  dashboardContentFetchers: d,
6740
6747
  onDashboardTabContentLoadError: m,
6741
6748
  onExportReports: b,
6742
- renderMainContent: p,
6749
+ renderMainContent: g,
6743
6750
  activeNavItemId: v,
6744
6751
  defaultActiveNavItemId: u = Kt,
6745
- onActiveNavItemChange: f,
6746
- shellClassName: h,
6747
- sideMenuClassName: g,
6752
+ onActiveNavItemChange: h,
6753
+ shellClassName: f,
6754
+ sideMenuClassName: p,
6748
6755
  mainClassName: y,
6749
6756
  sidebarWidthClassName: C,
6750
6757
  dashboardTabContentCacheTtlMs: N
6751
6758
  }) {
6752
6759
  var se;
6753
6760
  _r();
6754
- const { resolvedBranding: w, rootStyle: P } = ts(e), A = us(n), { activeItemId: S, handleNavItemClick: L } = bs({
6761
+ const { resolvedBranding: w, rootStyle: P } = rs(e), A = bs(n), { activeItemId: S, handleNavItemClick: T } = hs({
6755
6762
  activeNavItemIdProp: v,
6756
6763
  defaultActiveNavItemId: u,
6757
- onActiveNavItemChange: f
6764
+ onActiveNavItemChange: h
6758
6765
  }), z = ((se = Te.find((J) => J.id === S)) == null ? void 0 : se.label) ?? S, G = j(
6759
- () => o !== void 0 ? o : ds(w),
6766
+ () => o !== void 0 ? o : ms(w),
6760
6767
  [w, o]
6761
- ), D = cs({
6768
+ ), B = ds({
6762
6769
  config: e,
6763
6770
  apiKey: r,
6764
6771
  reportHttpConfig: c,
6765
6772
  dashboardContentFetchers: d,
6766
6773
  onExportReports: b,
6767
6774
  content: s,
6768
- renderMainContent: p,
6775
+ renderMainContent: g,
6769
6776
  dashboardTabContentCacheTtlMs: N,
6770
6777
  simulationReportId: A.simulationReportId
6771
6778
  }), q = j(
6772
- () => gs(D.availableReportPages),
6773
- [D.availableReportPages]
6779
+ () => ps(B.availableReportPages),
6780
+ [B.availableReportPages]
6774
6781
  ), $ = j(
6775
6782
  () => new Set(q.filter((J) => J.disabled).map((J) => J.id)),
6776
6783
  [q]
6777
6784
  );
6778
6785
  V(() => {
6779
- $.has(S) && L(Kt);
6780
- }, [S, $, L]);
6781
- const Re = j(
6786
+ $.has(S) && T(Kt);
6787
+ }, [S, $, T]);
6788
+ const ze = j(
6782
6789
  () => [
6783
6790
  "flex min-h-0 min-w-0 w-full max-w-full flex-1 flex-col items-stretch gap-4 py-4 px-[max(1rem,var(--mb-main-padding,1.5rem))] text-[color:var(--mb-color-text-muted)] sm:px-[max(1.25rem,var(--mb-main-padding,1.5rem))]",
6784
6791
  y
6785
6792
  ].filter(Boolean).join(" "),
6786
6793
  [y]
6787
- ), ie = D.useDefaultTabData && D.apiKeyAccepted, fe = /* @__PURE__ */ t(
6788
- Zi,
6794
+ ), ie = B.useDefaultTabData && B.apiKeyAccepted, ge = /* @__PURE__ */ t(
6795
+ Wi,
6789
6796
  {
6790
- renderMainContent: p,
6797
+ renderMainContent: g,
6791
6798
  content: s,
6792
6799
  activeItemId: S,
6793
6800
  activeLabel: z,
6794
- resolvedDashboardContentFetchers: D.resolvedDashboardContentFetchers,
6801
+ resolvedDashboardContentFetchers: B.resolvedDashboardContentFetchers,
6795
6802
  onDashboardTabContentLoadError: m,
6796
6803
  sideMenuUserProfile: i,
6797
- apiKeyAccepted: D.apiKeyAccepted,
6798
- useDefaultTabData: D.useDefaultTabData
6804
+ apiKeyAccepted: B.apiKeyAccepted,
6805
+ useDefaultTabData: B.useDefaultTabData
6799
6806
  }
6800
- ), ge = /* @__PURE__ */ t(
6801
- ms,
6807
+ ), pe = /* @__PURE__ */ t(
6808
+ us,
6802
6809
  {
6803
6810
  role: A.simRole,
6804
6811
  patientLabel: A.simRole === "patient" ? A.simPatientReportLabel : A.simPractitionerPatientLabel,
6805
6812
  onChangeUser: A.resetSimulationSession
6806
6813
  }
6807
- ), pe = /* @__PURE__ */ t(
6808
- Ui,
6814
+ ), xe = /* @__PURE__ */ t(
6815
+ Qi,
6809
6816
  {
6810
6817
  wrapTabContentCache: ie,
6811
- fetchers: D.resolvedDashboardContentFetchers,
6812
- cacheTtlMs: D.resolvedCacheTtlMs,
6818
+ fetchers: B.resolvedDashboardContentFetchers,
6819
+ cacheTtlMs: B.resolvedCacheTtlMs,
6813
6820
  viewProps: {
6814
6821
  rootStyle: P,
6815
6822
  enableTabContentCache: ie,
6816
6823
  menuTitle: a !== void 0 ? a : w.title,
6817
6824
  logo: G,
6818
6825
  sideMenuUserProfile: i,
6819
- sideMenuFooterContent: ge,
6820
- sideMenuClassName: g,
6826
+ sideMenuFooterContent: pe,
6827
+ sideMenuClassName: p,
6821
6828
  sideMenuItems: q,
6822
6829
  activeItemId: S,
6823
- handleNavItemClick: L,
6824
- shellClassName: h,
6830
+ handleNavItemClick: T,
6831
+ shellClassName: f,
6825
6832
  sidebarWidthClassName: C,
6826
- mainAreaClassName: Re,
6827
- mainContent: fe
6833
+ mainAreaClassName: ze,
6834
+ mainContent: ge
6828
6835
  }
6829
6836
  }
6830
- ), xe = j(
6837
+ ), ve = j(
6831
6838
  () => ({
6832
- onExportReports: D.resolvedExportReports,
6833
- onNavigateToNavItem: L
6839
+ onExportReports: B.resolvedExportReports,
6840
+ onNavigateToNavItem: T
6834
6841
  }),
6835
- [D.resolvedExportReports, L]
6842
+ [B.resolvedExportReports, T]
6836
6843
  );
6837
- return /* @__PURE__ */ t(Ka, { value: xe, children: /* @__PURE__ */ t(
6838
- es,
6844
+ return /* @__PURE__ */ t(Ka, { value: ve, children: /* @__PURE__ */ t(
6845
+ ts,
6839
6846
  {
6840
6847
  rootStyle: P,
6841
6848
  simulationSessionReady: A.simulationSessionReady,
@@ -6844,15 +6851,15 @@ function ps({
6844
6851
  onBackFromPatientPicker: A.onBackFromPatientPicker,
6845
6852
  onSelectPatientReport: A.onSelectPatientReport,
6846
6853
  onBackFromPatientReportPicker: A.onBackFromPatientReportPicker,
6847
- children: pe
6854
+ children: xe
6848
6855
  }
6849
6856
  ) });
6850
6857
  }
6851
- function xs({
6858
+ function vs({
6852
6859
  allowedPostMessageOrigins: e,
6853
6860
  validatePostMessageConfig: r
6854
6861
  } = {}) {
6855
- const [n, a] = H(() => {
6862
+ const [n, a] = k(() => {
6856
6863
  if (!(typeof window > "u"))
6857
6864
  return rl(new URLSearchParams(window.location.search));
6858
6865
  }), o = j(
@@ -6862,7 +6869,7 @@ function xs({
6862
6869
  []
6863
6870
  ), i = j(() => {
6864
6871
  if (o.patientId)
6865
- return Vl({
6872
+ return Zl({
6866
6873
  reportId: o.patientId,
6867
6874
  apiKey: n == null ? void 0 : n.apiKey
6868
6875
  });
@@ -6877,7 +6884,7 @@ function xs({
6877
6884
  };
6878
6885
  return window.addEventListener("message", s), () => window.removeEventListener("message", s);
6879
6886
  }, [e, r]), /* @__PURE__ */ t(
6880
- ps,
6887
+ xs,
6881
6888
  {
6882
6889
  apiKey: yr,
6883
6890
  config: n,
@@ -6886,13 +6893,13 @@ function xs({
6886
6893
  }
6887
6894
  );
6888
6895
  }
6889
- function qs(e = "root", r) {
6896
+ function Js(e = "root", r) {
6890
6897
  const n = document.getElementById(e);
6891
6898
  if (!n)
6892
6899
  throw new Error("Root element not found");
6893
6900
  ln(n).render(
6894
6901
  /* @__PURE__ */ t(an, { children: /* @__PURE__ */ t("div", { className: "flex h-full min-h-0 w-full flex-col", children: /* @__PURE__ */ t(
6895
- xs,
6902
+ vs,
6896
6903
  {
6897
6904
  allowedPostMessageOrigins: r == null ? void 0 : r.allowedPostMessageOrigins,
6898
6905
  validatePostMessageConfig: r == null ? void 0 : r.validatePostMessageConfig
@@ -6901,103 +6908,103 @@ function qs(e = "root", r) {
6901
6908
  );
6902
6909
  }
6903
6910
  export {
6904
- Ls as AlertLabSummaryCard,
6911
+ Ps as AlertLabSummaryCard,
6905
6912
  bt as AlertLabSummaryIcon,
6906
- Bs as AlertLabSummaryTab,
6913
+ Is as AlertLabSummaryTab,
6907
6914
  Qa as AlertLabSummaryTabSkeleton,
6908
6915
  _ as Badge,
6909
6916
  M as Button,
6910
- ki as DASHBOARD_TAB_NAV_IDS,
6911
- Ie as DASHBOARD_TAB_PLUGINS,
6912
- ji as DEFAULT_DASHBOARD_TAB_CONTENT_CACHE_TTL_MS,
6913
- k as DEFAULT_METABOLIC_BRANDING,
6914
- T as DashboardCard,
6917
+ ji as DASHBOARD_TAB_NAV_IDS,
6918
+ De as DASHBOARD_TAB_PLUGINS,
6919
+ Bi as DEFAULT_DASHBOARD_TAB_CONTENT_CACHE_TTL_MS,
6920
+ H as DEFAULT_METABOLIC_BRANDING,
6921
+ L as DashboardCard,
6915
6922
  it as DashboardCardSectionHeader,
6916
6923
  il as DashboardIcon,
6917
- Is as DashboardTab,
6918
- Bi as DashboardTabContentCacheProvider,
6924
+ Ds as DashboardTab,
6925
+ Ii as DashboardTabContentCacheProvider,
6919
6926
  so as DashboardTabSkeleton,
6920
6927
  or as GradientRangeBar,
6921
- be as LAB_METRIC_RANGE_BAR_SEGMENTS,
6928
+ he as LAB_METRIC_RANGE_BAR_SEGMENTS,
6922
6929
  sl as LabAnalysisIcon,
6923
- Ds as LabAnalysisTab,
6930
+ Rs as LabAnalysisTab,
6924
6931
  co as LabAnalysisTabSkeleton,
6925
6932
  ua as LabAnalysisTriadCard,
6926
- Ps as LabMetricRangeCard,
6933
+ Ss as LabMetricRangeCard,
6927
6934
  cl as LabResultsIcon,
6928
6935
  hr as LabResultsIntroCard,
6929
- Rs as LabResultsTab,
6936
+ zs as LabResultsTab,
6930
6937
  xo as LabResultsTabSkeleton,
6931
6938
  mn as LogoPlaceholder,
6932
- Ws as LogoutIcon,
6939
+ Us as LogoutIcon,
6933
6940
  yr as METABOLIC_DASHBOARD_STUB_API_KEY,
6934
6941
  Nr as METABOLIC_IFRAME_CONFIG_QUERY_KEY,
6935
6942
  Cr as METABOLIC_IFRAME_SET_CONFIG_MESSAGE,
6936
6943
  Co as METABOLIC_REPORT_PAGES_API_BASE_URL,
6937
- ps as MetabolicDashboard,
6938
- Vi as MetabolicDashboardDefaultMain,
6939
- xs as MetabolicEmbedRoot,
6944
+ xs as MetabolicDashboard,
6945
+ Zi as MetabolicDashboardDefaultMain,
6946
+ vs as MetabolicEmbedRoot,
6940
6947
  Rn as MetabolicScoreBar,
6941
- ae as MetabolicTriadCategoryPanel,
6942
- je as MetabolicTriadCategoryPanelSkeleton,
6943
- Ss as MetabolicTriadIntroCard,
6948
+ ne as MetabolicTriadCategoryPanel,
6949
+ Be as MetabolicTriadCategoryPanelSkeleton,
6950
+ Ms as MetabolicTriadIntroCard,
6944
6951
  gr as MetabolicTriadSectionCard,
6945
6952
  lr as MetaflammationGauge,
6946
6953
  wa as MetaflammationGaugeCard,
6947
6954
  Pn as OVERALL_SCORE_GRADIENT_STOPS,
6948
6955
  Sn as OVERALL_SCORE_LABELS,
6949
6956
  Do as OrganDetailPage,
6950
- La as OverallMetabolicScoreCard,
6951
- I as PageHeader,
6957
+ Ta as OverallMetabolicScoreCard,
6958
+ D as PageHeader,
6952
6959
  Yn as PractitionerNoteRow,
6953
6960
  Pa as PractitionerNotesCard,
6954
6961
  dl as PredictiveIndexIcon,
6955
- Ms as ProfileSummaryCard,
6956
- zs as QuestionnaireAnalysisTab,
6962
+ ks as ProfileSummaryCard,
6963
+ Os as QuestionnaireAnalysisTab,
6957
6964
  zo as QuestionnaireAnalysisTabSkeleton,
6958
6965
  ml as QuestionnaireIcon,
6959
6966
  oe as SegmentedRangeBar,
6960
6967
  gl as ShellLayout,
6961
- Fl as SideMenu,
6962
- Us as SideMenuFooter,
6963
- El as SideMenuNavButton,
6968
+ Gl as SideMenu,
6969
+ Qs as SideMenuFooter,
6970
+ Fl as SideMenuNavButton,
6964
6971
  jt as SkeletonCircle,
6965
6972
  x as SkeletonRect,
6966
6973
  ul as SuggestedProductsIcon,
6967
- Os as SuggestedProductsTab,
6974
+ Es as SuggestedProductsTab,
6968
6975
  Go as SuggestedProductsTabSkeleton,
6969
6976
  Sa as SupplementScheduleCard,
6970
6977
  bl as SupplementScheduleIcon,
6971
- Es as SupplementScheduleTab,
6978
+ Fs as SupplementScheduleTab,
6972
6979
  Yo as SupplementScheduleTabSkeleton,
6973
6980
  qn as SupplementScheduleTableRow,
6974
6981
  $n as SupplementTriadMarkGroup,
6975
6982
  Y as TRIAD_RESILIENCY_TREND_SEGMENTS,
6976
6983
  K as TabSkeletonRoot,
6977
6984
  Z as Tooltip,
6978
- Fs as TotalPredictiveIndexTab,
6985
+ Gs as TotalPredictiveIndexTab,
6979
6986
  Zo as TotalPredictiveIndexTabSkeleton,
6980
6987
  ee as TriadMarkIcon,
6981
6988
  ra as TriadRadar,
6982
6989
  Hs as TriadRadarReportCard,
6983
- ks as WelcomeMessageCard,
6984
- js as WellnessIndicatorCard,
6990
+ js as WelcomeMessageCard,
6991
+ Bs as WellnessIndicatorCard,
6985
6992
  hl as WellnessIndicatorsIcon,
6986
- Gs as WellnessIndicatorsTab,
6993
+ Ys as WellnessIndicatorsTab,
6987
6994
  Jo as WellnessIndicatorsTabSkeleton,
6988
6995
  Kn as activeSegmentHighlightColor,
6989
- Jl as buildReportExistsUrl,
6996
+ _l as buildReportExistsUrl,
6990
6997
  xl as buildReportPageUrl,
6991
- Qs as checkMetabolicReportExists,
6992
- Vl as createHttpDashboardContentFetchers,
6993
- Kl as createReportPdfDownloader,
6998
+ Ks as checkMetabolicReportExists,
6999
+ Zl as createHttpDashboardContentFetchers,
7000
+ ql as createReportPdfDownloader,
6994
7001
  tl as decodeMetabolicIframeConfig,
6995
- Vs as emitMetabolicDashboardLogout,
7002
+ Zs as emitMetabolicDashboardLogout,
6996
7003
  el as encodeMetabolicIframeConfig,
6997
7004
  _r as ensureAgChartsModules,
6998
7005
  U as fetchReportPage,
6999
- he as getBuiltInReportPagesApiBaseUrl,
7000
- zl as getDashboardTabStaticPageHeader,
7006
+ fe as getBuiltInReportPagesApiBaseUrl,
7007
+ Ol as getDashboardTabStaticPageHeader,
7001
7008
  gt as isDashboardNavItemId,
7002
7009
  Ao as isMetabolicDashboardApiKeyAccepted,
7003
7010
  ll as isMetabolicEmbedPostMessageOriginAllowed,
@@ -7012,15 +7019,15 @@ export {
7012
7019
  Vr as mapWellnessIndicatorsDtoToTabContent,
7013
7020
  Hi as mergeDashboardContentFetchers,
7014
7021
  _t as metabolicBrandingToStyle,
7015
- Xs as metabolicIframeSrcAppendStealthParams,
7016
- Ys as metabolicIframeSrcWithConfig,
7017
- qs as mountMetabolicEmbed,
7018
- Zs as postMetabolicIframeConfig,
7022
+ Vs as metabolicIframeSrcAppendStealthParams,
7023
+ Xs as metabolicIframeSrcWithConfig,
7024
+ Js as mountMetabolicEmbed,
7025
+ Ws as postMetabolicIframeConfig,
7019
7026
  ol as readMetabolicEmbedStealthParams,
7020
7027
  rl as readMetabolicIframeConfigFromSearchParams,
7021
7028
  bn as resolveMetabolicBranding,
7022
7029
  W as sideMenuItemIconClass,
7023
- Se as useAgCharts,
7024
- Ri as useDashboardTabContent,
7025
- Ks as useInvalidateDashboardTabContentCache
7030
+ Me as useAgCharts,
7031
+ zi as useDashboardTabContent,
7032
+ qs as useInvalidateDashboardTabContentCache
7026
7033
  };