@metaboliccode-dev/widget 0.2.12 → 0.2.17

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,10 +1,10 @@
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 Pe, 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 Je, useMemo as j, useId as nt, useCallback as B, isValidElement as $r, cloneElement as en, useEffect as V, useContext as at, createContext as qt, lazy as Q, useReducer as tn, Component as rn, Suspense as nn, StrictMode as an } from "react";
7
- import { A as ot, a as on } from "./vendor-ag-charts-W8mi59GS.js";
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 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";
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";
10
10
  function _t(e) {
@@ -193,24 +193,24 @@ function un() {
193
193
  };
194
194
  }
195
195
  function bn(e) {
196
- var x, v, b, g, h, f, y, C, N, w, P, A, S, T, z, G, D, q, $;
196
+ var g, v, u, h, f, p, y, C, N, w, P, A, S, L, z, G, D, q, $;
197
197
  if (!e)
198
198
  return un();
199
199
  const r = {
200
200
  ...k.sizes,
201
201
  ...e.sizes
202
- }, n = ((x = e.card) == null ? void 0 : x.padding) ?? r.cardPadding ?? k.sizes.cardPadding, a = {
202
+ }, n = ((g = e.card) == null ? void 0 : g.padding) ?? r.cardPadding ?? k.sizes.cardPadding, a = {
203
203
  ...k.button,
204
204
  ...e.button,
205
- borderRadius: ((v = e.button) == null ? void 0 : v.borderRadius) ?? ((b = e.radius) == null ? void 0 : b.button) ?? k.button.borderRadius
205
+ borderRadius: ((v = e.button) == null ? void 0 : v.borderRadius) ?? ((u = e.radius) == null ? void 0 : u.button) ?? k.button.borderRadius
206
206
  }, o = {
207
207
  ...k.badge,
208
208
  ...e.badge,
209
- borderRadius: ((g = e.badge) == null ? void 0 : g.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) ?? k.badge.borderRadius
210
210
  }, i = {
211
211
  ...k.colors,
212
212
  ...e.colors
213
- }, s = ((f = e.colors) == null ? void 0 : f.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,14 +220,14 @@ 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: ((T = e.colors) == null ? void 0 : T.cardInlineButtonBackground) ?? i.cardBackground,
223
+ cardInlineButtonBackground: ((L = e.colors) == null ? void 0 : L.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
226
  cardInlineButtonHoverBackground: ((D = e.colors) == null ? void 0 : D.cardInlineButtonHoverBackground) ?? i.navHoverBackground
227
227
  }, m = {
228
228
  ...k.sideMenu,
229
229
  ...e.sideMenu
230
- }, u = {
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
  };
@@ -253,11 +253,11 @@ function bn(e) {
253
253
  cardPadding: n
254
254
  },
255
255
  button: a,
256
- sideMenu: u,
256
+ sideMenu: b,
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", Se = "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 = `${Se} bg-[#3a9e6a]`, vn = `${Se} bg-[#d94040]`, wn = `${Se} bg-[#d94040]`, yn = `${Se} 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", He = "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 = `${He} bg-[#3a9e6a]`, vn = `${He} bg-[#d94040]`, wn = `${He} bg-[#d94040]`, yn = `${He} 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 Ln = {
309
+ const Tn = {
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)] ${Ln[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)] ${Tn[n]} ${r}`.trim(),
322
322
  children: An(e)
323
323
  }
324
324
  );
325
325
  }
326
- function L({
326
+ function T({
327
327
  children: e,
328
328
  className: r = ""
329
329
  }) {
@@ -338,7 +338,7 @@ function L({
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", Tn = {
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 = {
342
342
  1: $t,
343
343
  2: er,
344
344
  3: tr,
@@ -346,23 +346,23 @@ 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 = Tn[e];
349
+ const n = Ln[e];
350
350
  return n ? /* @__PURE__ */ t("img", { src: n, alt: "", className: `${r} shrink-0 object-contain` }) : null;
351
351
  }
352
- const ze = "text-xl font-bold text-[color:var(--mb-color-text)]";
353
- function lt({
352
+ const Ee = "text-xl font-bold text-[color:var(--mb-color-text)]";
353
+ function it({
354
354
  title: e,
355
355
  trailing: r,
356
356
  trailingInline: n = !1,
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: ze, 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: ze, children: e }),
363
+ /* @__PURE__ */ t("h2", { className: Ee, children: e }),
364
364
  r
365
- ] }) : /* @__PURE__ */ t("h2", { className: `mb-2 ${ze} ${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(
@@ -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 Lt(e) {
471
+ function Tt(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
- function it() {
491
+ function st() {
492
492
  const e = F(null), [r, n] = H(null);
493
- return Je(() => {
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: Lt(i),
499
- colorTextMuted: Lt(s),
500
- colorCardBorder: _e(c),
498
+ colorText: Tt(i),
499
+ colorTextMuted: Tt(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 it() {
507
507
  themeReady: r !== null
508
508
  };
509
509
  }
510
- const Oe = 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
- Pe();
564
- const { ref: n, theme: a, themeReady: o } = it(), i = j(() => Dn(e, r, a), [e, r, a]);
563
+ Me();
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: Oe },
570
+ style: { minHeight: Fe },
571
571
  children: /* @__PURE__ */ t(
572
- ot,
572
+ lt,
573
573
  {
574
574
  options: i,
575
575
  className: "block min-w-0 w-full overflow-x-clip",
576
- style: { height: Oe, minHeight: Oe }
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 }, (u, x) => Math.round(o * x / 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)),
@@ -632,7 +632,7 @@ function Fn(e, r, n, a) {
632
632
  lineHeight: 32,
633
633
  color: a ?? n.colorText,
634
634
  fontFamily: n.fontFamily,
635
- formatter: ({ value: u }) => u.toLocaleString("en-US", { useGrouping: !1, maximumFractionDigits: 0 })
635
+ formatter: ({ value: b }) => b.toLocaleString("en-US", { useGrouping: !1, maximumFractionDigits: 0 })
636
636
  },
637
637
  secondaryLabel: { enabled: !1 }
638
638
  };
@@ -642,8 +642,8 @@ function lr({
642
642
  max: r,
643
643
  centerValueColor: n
644
644
  }) {
645
- Pe();
646
- const { ref: a, theme: o, themeReady: i } = it(), s = j(
645
+ Me();
646
+ const { ref: a, theme: o, themeReady: i } = st(), s = j(
647
647
  () => Fn(e, r, o, n),
648
648
  [e, r, o, n]
649
649
  );
@@ -653,7 +653,7 @@ function lr({
653
653
  ref: a,
654
654
  className: "relative mx-auto min-w-0 w-full max-w-[min(100%,304px)] [&_.ag-charts-wrapper]:!bg-transparent [&_.ag-charts-canvas-center]:!bg-transparent",
655
655
  children: /* @__PURE__ */ t(
656
- ot,
656
+ lt,
657
657
  {
658
658
  options: s,
659
659
  className: "block w-full",
@@ -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
  {
@@ -736,7 +736,7 @@ function Gn({ className: e }) {
736
736
  }
737
737
  );
738
738
  }
739
- function st({ className: e }) {
739
+ function ct({ className: e }) {
740
740
  return /* @__PURE__ */ l(
741
741
  "svg",
742
742
  {
@@ -778,7 +778,7 @@ function sr({ className: e }) {
778
778
  }
779
779
  );
780
780
  }
781
- function ct({ className: e }) {
781
+ function dt({ className: e }) {
782
782
  return /* @__PURE__ */ l(
783
783
  "svg",
784
784
  {
@@ -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, $e = 12, mr = 14, Ee = 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 Tt(e, r = 0.3) {
911
+ function Lt(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 Tt(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 : Tt(i.color),
919
+ color: s === r ? i.activeColor ?? i.color : Lt(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 : Tt(o.color),
923
+ color: n - 1 === r ? o.activeColor ?? o.color : Lt(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: $e },
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
- Pe();
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(${$e}px + (100% - ${$e + 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: Ee },
977
+ style: { minHeight: Ge },
978
978
  children: [
979
979
  /* @__PURE__ */ t(
980
- ot,
980
+ lt,
981
981
  {
982
982
  options: c,
983
983
  className: "pointer-events-none block w-full overflow-visible",
984
- style: { height: Ee, minHeight: Ee }
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((u, x) => /* @__PURE__ */ t("span", { className: "min-w-0 break-words px-0.5", children: u.label }, `${u.label}-${x}`))
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 et = 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: et,
1068
- height: ue,
1069
- minWidth: et,
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,10 +1128,10 @@ function ra({
1128
1128
  fill: n,
1129
1129
  stroke: a
1130
1130
  }) {
1131
- Pe();
1132
- const { ref: o, theme: i, themeReady: s } = it(), c = j(() => e.map((m, u) => ({
1131
+ Me();
1132
+ const { ref: o, theme: i, themeReady: s } = st(), c = j(() => e.map((m, b) => ({
1133
1133
  category: m,
1134
- value: ea(r[u] ?? 0) * 100
1134
+ value: ea(r[b] ?? 0) * 100
1135
1135
  })), [e, r]), d = j(
1136
1136
  () => ta(c, n, a, i),
1137
1137
  [c, n, a, i]
@@ -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%, ${et}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 Cs(e) {
1184
+ function Ls(e) {
1185
1185
  const {
1186
1186
  metricTitle: r,
1187
1187
  statusText: n,
@@ -1192,16 +1192,16 @@ function Cs(e) {
1192
1192
  riskRows: c,
1193
1193
  nutrientsLeadParagraph: d,
1194
1194
  nutrientRows: m
1195
- } = e, u = Kn(be, a);
1196
- return /* @__PURE__ */ l(L, { className: "flex flex-col gap-4", children: [
1195
+ } = e, b = Kn(he, a);
1196
+ return /* @__PURE__ */ l(T, { 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
- /* @__PURE__ */ t("p", { className: "text-xl font-bold", style: { color: u }, children: n })
1199
+ /* @__PURE__ */ t("p", { className: "text-xl font-bold", style: { color: b }, children: n })
1200
1200
  ] }),
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,86 +1227,86 @@ 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
- function Me(e) {
1233
+ function ke(e) {
1234
1234
  if (e === void 0 || e === "") return null;
1235
1235
  const r = Number.parseFloat(String(e).replace(/,/g, ""));
1236
1236
  return Number.isFinite(r) ? r : null;
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
- const v = Math.min(...i), b = Math.max(...i);
1246
- return b === v ? 50 : re((e - v) / (b - v) * 100);
1245
+ const v = Math.min(...i), u = Math.max(...i);
1246
+ return u === v ? 50 : te((e - v) / (u - v) * 100);
1247
1247
  }
1248
1248
  if (o === "absoluteLinear") {
1249
- const v = (a == null ? void 0 : a.scaleMin) ?? 0, b = (a == null ? void 0 : a.scaleMax) ?? 200;
1250
- return b === v ? 50 : re((e - v) / (b - v) * 100);
1249
+ const v = (a == null ? void 0 : a.scaleMin) ?? 0, u = (a == null ? void 0 : a.scaleMax) ?? 200;
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
- const v = c - s, b = v > 0 ? (e - s) / v : 0;
1261
- return re(d + b * d);
1260
+ const v = c - s, u = v > 0 ? (e - s) / v : 0;
1261
+ return te(d + u * d);
1262
1262
  }
1263
- const m = c - s, u = m > 0 ? m : 1, x = Math.min(1, (e - c) / u);
1264
- return re(2 * d + x * 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 = nt(), o = F(null), i = F(null), [s, c] = H(!1), [d, m] = H(null), u = F(null), x = B(() => {
1268
- u.current !== null && cancelAnimationFrame(u.current), u.current = requestAnimationFrame(() => {
1269
- u.current = null;
1270
- const g = o.current, h = i.current;
1271
- if (!g || !h) return;
1272
- const f = g.getBoundingClientRect(), y = h.getBoundingClientRect(), C = 4, N = 12, w = window.innerWidth, P = window.innerHeight;
1273
- let A = n === "top" ? f.top - y.height - C : f.bottom + C, S = f.left + f.width / 2 - y.width / 2;
1274
- S = Math.max(N, Math.min(S, w - y.width - N)), n === "top" && A < N ? A = f.bottom + C : n === "bottom" && A + y.height > P - N && (A = f.top - y.height - C), A = Math.max(N, Math.min(A, P - y.height - N)), m({ top: A, left: S });
1267
+ const a = at(), o = F(null), i = F(null), [s, c] = H(!1), [d, m] = H(null), b = F(null), g = B(() => {
1268
+ b.current !== null && cancelAnimationFrame(b.current), b.current = requestAnimationFrame(() => {
1269
+ b.current = null;
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
- Je(() => {
1277
+ $e(() => {
1278
1278
  if (!s) {
1279
- u.current !== null && (cancelAnimationFrame(u.current), u.current = null), m(null);
1279
+ b.current !== null && (cancelAnimationFrame(b.current), b.current = null), m(null);
1280
1280
  return;
1281
1281
  }
1282
- return window.addEventListener("scroll", x, !0), window.addEventListener("resize", x), () => {
1283
- u.current !== null && (cancelAnimationFrame(u.current), u.current = null), window.removeEventListener("scroll", x, !0), window.removeEventListener("resize", x);
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, x, e]), Je(() => {
1286
- s && x();
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: (g) => {
1291
- var h, f;
1292
- (f = (h = r.props).onMouseEnter) == null || f.call(h, g), 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: (g) => {
1295
- var h, f;
1296
- (f = (h = r.props).onMouseLeave) == null || f.call(h, g), 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: (g) => {
1299
- var h, f;
1300
- (f = (h = r.props).onFocus) == null || f.call(h, g), 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: (g) => {
1303
- var h, f;
1304
- (f = (h = r.props).onBlur) == null || f.call(h, g), 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
- }) : r, b = typeof document < "u" ? document.body : null;
1307
- return /* @__PURE__ */ l(te, { children: [
1306
+ }) : r, u = typeof document < "u" ? document.body : null;
1307
+ return /* @__PURE__ */ l(ae, { children: [
1308
1308
  /* @__PURE__ */ t("span", { ref: o, className: "inline-flex", children: v }),
1309
- s && b ? Jt(
1309
+ s && u ? Jt(
1310
1310
  /* @__PURE__ */ t(
1311
1311
  "span",
1312
1312
  {
@@ -1329,12 +1329,12 @@ function Z({ content: e, children: r, side: n = "top" }) {
1329
1329
  children: e
1330
1330
  }
1331
1331
  ),
1332
- b
1332
+ u
1333
1333
  ) : null
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 Ne({
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 Fe({
1392
+ function Ye({
1393
1393
  ariaLabel: e,
1394
1394
  tooltip: r,
1395
1395
  onClick: n
@@ -1406,7 +1406,7 @@ function Fe({
1406
1406
  }
1407
1407
  ) });
1408
1408
  }
1409
- function He({
1409
+ function je({
1410
1410
  segments: e,
1411
1411
  indicatorPercent: r,
1412
1412
  indicatorPosition: n = "segmentCenter"
@@ -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
- Ne,
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
- Ne,
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(He, { ...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(Ne, { 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(He, { ...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(He, { ...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(Ne, { 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(He, { ...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: b, markers: g, trendZone: h } = e, f = Mt(h), y = me(Y, f);
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
- /* @__PURE__ */ t(de, { title: b, trendColor: y }),
1566
+ /* @__PURE__ */ t(de, { title: u, trendColor: y }),
1567
1567
  /* @__PURE__ */ t(
1568
1568
  ca,
1569
1569
  {
1570
- markers: g,
1570
+ markers: h,
1571
1571
  rangeBar: {
1572
1572
  segments: Y,
1573
- indicatorPercent: f,
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: b, onInfoClick: g } = e, h = me(Y, b.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
- title: b.title,
1587
- trendColor: h,
1586
+ title: u.title,
1587
+ trendColor: f,
1588
1588
  trailingInfo: /* @__PURE__ */ t(
1589
- Fe,
1589
+ Ye,
1590
1590
  {
1591
- ariaLabel: b.infoAriaLabel,
1592
- tooltip: b.infoTooltip ?? b.infoAriaLabel,
1593
- onClick: g
1591
+ ariaLabel: u.infoAriaLabel,
1592
+ tooltip: u.infoTooltip ?? u.infoAriaLabel,
1593
+ onClick: h
1594
1594
  }
1595
1595
  )
1596
1596
  }
@@ -1598,12 +1598,12 @@ function ae(e) {
1598
1598
  /* @__PURE__ */ t(
1599
1599
  da,
1600
1600
  {
1601
- normalRange: b.normalRange,
1602
- currentRange: b.currentRange,
1603
- previousRange: b.previousRange,
1601
+ normalRange: u.normalRange,
1602
+ currentRange: u.currentRange,
1603
+ previousRange: u.previousRange,
1604
1604
  rangeBar: {
1605
1605
  segments: Y,
1606
- indicatorPercent: b.indicatorPercent,
1606
+ indicatorPercent: u.indicatorPercent,
1607
1607
  indicatorPosition: "segmentCenter"
1608
1608
  }
1609
1609
  }
@@ -1612,28 +1612,28 @@ function ae(e) {
1612
1612
  }
1613
1613
  if (e.layout === "metricRows") {
1614
1614
  const {
1615
- title: b,
1616
- infoAriaLabel: g,
1617
- infoTooltip: h,
1618
- onInfoClick: f,
1615
+ title: u,
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(
1627
1627
  de,
1628
1628
  {
1629
- title: b,
1629
+ title: u,
1630
1630
  trendColor: A,
1631
1631
  trailingInfo: y ? /* @__PURE__ */ t(
1632
- Fe,
1632
+ Ye,
1633
1633
  {
1634
- ariaLabel: g,
1635
- tooltip: h ?? g,
1636
- onClick: f
1634
+ ariaLabel: h,
1635
+ tooltip: f ?? h,
1636
+ onClick: p
1637
1637
  }
1638
1638
  ) : void 0
1639
1639
  }
@@ -1653,23 +1653,23 @@ function ae(e) {
1653
1653
  }
1654
1654
  if (e.layout === "questionnaire") {
1655
1655
  const {
1656
- category: b,
1657
- currentRangeLabel: g = "Current Range",
1658
- previousRangeLabel: h = "Previous Range",
1659
- onInfoClick: f
1660
- } = e, y = Mt(b.trendZone), C = me(Y, y);
1656
+ category: u,
1657
+ currentRangeLabel: h = "Current Range",
1658
+ previousRangeLabel: f = "Previous Range",
1659
+ onInfoClick: p
1660
+ } = e, y = Mt(u.trendZone), C = me(Y, y);
1661
1661
  return /* @__PURE__ */ l(ce, { trendColor: C, children: [
1662
1662
  /* @__PURE__ */ t(
1663
1663
  de,
1664
1664
  {
1665
- title: b.title,
1665
+ title: u.title,
1666
1666
  trendColor: C,
1667
1667
  trailingInfo: /* @__PURE__ */ t(
1668
- Fe,
1668
+ Ye,
1669
1669
  {
1670
- ariaLabel: b.infoAriaLabel,
1671
- tooltip: b.infoTooltip ?? b.infoAriaLabel,
1672
- onClick: f
1670
+ ariaLabel: u.infoAriaLabel,
1671
+ tooltip: u.infoTooltip ?? u.infoAriaLabel,
1672
+ onClick: p
1673
1673
  }
1674
1674
  )
1675
1675
  }
@@ -1677,12 +1677,12 @@ function ae(e) {
1677
1677
  /* @__PURE__ */ t(
1678
1678
  Ht,
1679
1679
  {
1680
- columnHeaders: [g, h],
1680
+ columnHeaders: [h, f],
1681
1681
  rows: [
1682
1682
  {
1683
1683
  label: "Symptom Score",
1684
- current: b.symptomScore,
1685
- previous: b.previousSymptom
1684
+ current: u.symptomScore,
1685
+ previous: u.previousSymptom
1686
1686
  }
1687
1687
  ],
1688
1688
  rangeBar: {
@@ -1702,7 +1702,7 @@ function ae(e) {
1702
1702
  trendBar: i,
1703
1703
  onCategoryClick: s
1704
1704
  } = e, c = aa(
1705
- Me(r.totalScore),
1705
+ ke(r.totalScore),
1706
1706
  o,
1707
1707
  r.trendIndicatorPercent,
1708
1708
  i
@@ -1712,8 +1712,8 @@ function ae(e) {
1712
1712
  {
1713
1713
  className: m ? "cursor-pointer 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)]" : "",
1714
1714
  onClick: m ? () => s == null ? void 0 : s(r) : void 0,
1715
- onKeyDown: m ? (b) => {
1716
- (b.key === "Enter" || b.key === " ") && (b.preventDefault(), s == null || s(r));
1715
+ onKeyDown: m ? (u) => {
1716
+ (u.key === "Enter" || u.key === " ") && (u.preventDefault(), s == null || s(r));
1717
1717
  } : void 0,
1718
1718
  role: m ? "button" : void 0,
1719
1719
  tabIndex: m ? 0 : void 0,
@@ -1772,7 +1772,7 @@ function ua(e) {
1772
1772
  descriptionPrimary: c,
1773
1773
  descriptionSecondary: d
1774
1774
  } = e;
1775
- return /* @__PURE__ */ l(L, { className: "flex min-w-0 flex-col", children: [
1775
+ return /* @__PURE__ */ l(T, { 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,
@@ -1808,7 +1808,7 @@ function kt({ label: e, value: r }) {
1808
1808
  /* @__PURE__ */ t("span", { className: fa, children: r })
1809
1809
  ] });
1810
1810
  }
1811
- function As({
1811
+ function Ps({
1812
1812
  title: e,
1813
1813
  valueDisplay: r,
1814
1814
  indicatorPercent: n,
@@ -1819,12 +1819,12 @@ function As({
1819
1819
  infoAriaLabel: c,
1820
1820
  infoTooltip: d,
1821
1821
  downloadAriaLabel: m,
1822
- onInfoClick: u,
1823
- onDownloadClick: x
1822
+ onInfoClick: b,
1823
+ onDownloadClick: g
1824
1824
  }) {
1825
- return /* @__PURE__ */ l(L, { className: "flex flex-col", children: [
1825
+ return /* @__PURE__ */ l(T, { className: "flex flex-col", children: [
1826
1826
  /* @__PURE__ */ t(
1827
- lt,
1827
+ it,
1828
1828
  {
1829
1829
  className: "w-full",
1830
1830
  title: e,
@@ -1834,7 +1834,7 @@ function As({
1834
1834
  "button",
1835
1835
  {
1836
1836
  type: "button",
1837
- onClick: u,
1837
+ onClick: b,
1838
1838
  className: X,
1839
1839
  "aria-label": c,
1840
1840
  children: /* @__PURE__ */ t(E, {})
@@ -1844,10 +1844,10 @@ function As({
1844
1844
  "button",
1845
1845
  {
1846
1846
  type: "button",
1847
- onClick: x,
1847
+ onClick: g,
1848
1848
  className: X,
1849
1849
  "aria-label": m,
1850
- children: /* @__PURE__ */ t(ct, {})
1850
+ children: /* @__PURE__ */ t(dt, {})
1851
1851
  }
1852
1852
  )
1853
1853
  ] })
@@ -1857,7 +1857,7 @@ function As({
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
  }
@@ -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(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 })
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 })
1898
1898
  ] });
1899
1899
  }
1900
1900
  function K({
@@ -1903,7 +1903,7 @@ function K({
1903
1903
  }) {
1904
1904
  return /* @__PURE__ */ t("div", { className: r, role: "status", "aria-busy": "true", "aria-live": "polite", children: e });
1905
1905
  }
1906
- function p({ className: e = "" }) {
1906
+ function x({ className: e = "" }) {
1907
1907
  return /* @__PURE__ */ t(
1908
1908
  "div",
1909
1909
  {
@@ -1921,10 +1921,10 @@ function jt({ className: e = "" }) {
1921
1921
  }
1922
1922
  );
1923
1923
  }
1924
- function xe({ 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 ve({ title: e, showInfo: r }) {
1927
+ function ye({ title: e, showInfo: r }) {
1928
1928
  return /* @__PURE__ */ l(
1929
1929
  "div",
1930
1930
  {
@@ -1945,8 +1945,8 @@ function ga() {
1945
1945
  }
1946
1946
  );
1947
1947
  }
1948
- function tt() {
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(p, { className: "h-3 w-7" }) });
1948
+ function nt() {
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() {
1952
1952
  return /* @__PURE__ */ t("div", { className: "mt-4 w-full min-w-0", children: /* @__PURE__ */ t(
@@ -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(tt, {}) }),
1993
- /* @__PURE__ */ t("div", { className: "flex justify-center self-center py-2.5", children: o === 0 ? /* @__PURE__ */ t(ga, {}) : /* @__PURE__ */ t(tt, {}) }),
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(tt, {})
2008
+ /* @__PURE__ */ t(nt, {})
2009
2009
  ] }, r.label)) }),
2010
2010
  /* @__PURE__ */ t(pa, {})
2011
2011
  ] });
@@ -2017,8 +2017,8 @@ function va({ markerSlots: e }) {
2017
2017
  {
2018
2018
  className: "flex min-w-0 items-baseline gap-1 text-sm text-[color:var(--mb-color-text)]",
2019
2019
  children: [
2020
- /* @__PURE__ */ t(p, { className: "h-4 w-[min(100%,6rem)]" }),
2021
- /* @__PURE__ */ t(p, { className: "h-4 w-8 shrink-0" })
2020
+ /* @__PURE__ */ t(x, { className: "h-4 w-[min(100%,6rem)]" }),
2021
+ /* @__PURE__ */ t(x, { className: "h-4 w-8 shrink-0" })
2022
2022
  ]
2023
2023
  },
2024
2024
  `slot-${r}`
@@ -2027,24 +2027,24 @@ function va({ markerSlots: e }) {
2027
2027
  ] });
2028
2028
  }
2029
2029
  const It = "ADRENAL";
2030
- function ke(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(xe, { children: [
2034
- /* @__PURE__ */ t(ve, { 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(xe, { children: [
2041
- /* @__PURE__ */ t(ve, { 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(xe, { children: [
2047
- /* @__PURE__ */ t(ve, { 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 ke(e) {
2052
2052
  rowLabels: ["Symptom Score"]
2053
2053
  }
2054
2054
  )
2055
- ] }) : /* @__PURE__ */ l(xe, { children: [
2056
- /* @__PURE__ */ t(ve, { title: a }),
2055
+ ] }) : /* @__PURE__ */ l(we, { children: [
2056
+ /* @__PURE__ */ t(ye, { title: a }),
2057
2057
  /* @__PURE__ */ t(
2058
2058
  Bt,
2059
2059
  {
@@ -2064,9 +2064,9 @@ function ke(e) {
2064
2064
  )
2065
2065
  ] });
2066
2066
  }
2067
- function Ls({ children: e }) {
2068
- return /* @__PURE__ */ l(L, { className: "flex h-full min-h-0 min-w-0 flex-col", children: [
2069
- /* @__PURE__ */ t(lt, { title: "Metabolic Triad", className: "!mb-3 shrink-0" }),
2067
+ function Ss({ children: e }) {
2068
+ return /* @__PURE__ */ l(T, { className: "flex h-full min-h-0 min-w-0 flex-col", children: [
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
  ] });
2072
2072
  }
@@ -2080,7 +2080,7 @@ const Dt = {
2080
2080
  function gr(e) {
2081
2081
  if (e.variant === "questionnaire") {
2082
2082
  const {
2083
- triadNumber: f,
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(L, { className: "flex flex-col", children: [
2091
+ return /* @__PURE__ */ l(T, { 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: f }),
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[f] ?? "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((T) => /* @__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((L) => /* @__PURE__ */ t(
2106
+ ne,
2107
2107
  {
2108
2108
  layout: "questionnaire",
2109
- category: T,
2109
+ category: L,
2110
2110
  currentRangeLabel: w,
2111
2111
  previousRangeLabel: P,
2112
2112
  onInfoClick: A
2113
2113
  },
2114
- T.title
2114
+ L.title
2115
2115
  )) })
2116
2116
  ] });
2117
2117
  }
@@ -2124,11 +2124,11 @@ function gr(e) {
2124
2124
  currentRangeLabel: c = "Current Range",
2125
2125
  previousRangeLabel: d = "Previous Range",
2126
2126
  trendBar: m,
2127
- categories: u,
2128
- onInfoClick: x,
2127
+ categories: b,
2128
+ onInfoClick: g,
2129
2129
  onCategoryClick: v
2130
- } = e, b = u ?? [], g = b.map((f) => Me(f.totalScore));
2131
- return /* @__PURE__ */ l(L, { className: "flex flex-col", children: [
2130
+ } = e, u = b ?? [], h = u.map((p) => ke(p.totalScore));
2131
+ return /* @__PURE__ */ l(T, { 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: x,
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: b.map((f) => /* @__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: f,
2162
+ category: p,
2163
2163
  currentRangeLabel: c,
2164
2164
  previousRangeLabel: d,
2165
- siblingTotals: g,
2165
+ siblingTotals: h,
2166
2166
  trendBar: m,
2167
2167
  onCategoryClick: v
2168
2168
  },
2169
- f.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(L, { className: "min-w-0 overflow-x-clip", children: [
2182
+ return /* @__PURE__ */ l(T, { 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)]", La = "size-[18px] shrink-0";
2200
- function Ge({
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 Xe({
2201
2201
  Icon: e,
2202
2202
  label: r,
2203
2203
  badge: n,
@@ -2205,13 +2205,13 @@ function Ge({
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: La }) }),
2208
+ /* @__PURE__ */ t("span", { className: Aa, "aria-hidden": !0, children: /* @__PURE__ */ t(e, { className: Ta }) }),
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 Ta({
2214
+ function La({
2215
2215
  sectionTitle: e,
2216
2216
  scorePercent: r,
2217
2217
  score: n,
@@ -2222,11 +2222,11 @@ function Ta({
2222
2222
  questionnaireLastLabel: c,
2223
2223
  labsRowLabel: d,
2224
2224
  labsLastLabel: m,
2225
- wearableRowLabel: u,
2226
- wearableValueLabel: x
2225
+ wearableRowLabel: b,
2226
+ wearableValueLabel: g
2227
2227
  }) {
2228
- const v = i ?? o, b = !!(s && c), g = !!(d && m), h = !!(u && x), f = b || g || h;
2229
- return /* @__PURE__ */ l(L, { 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(T, { 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,48 +2255,48 @@ function Ta({
2255
2255
  showIndicator: !1
2256
2256
  }
2257
2257
  ),
2258
- f ? /* @__PURE__ */ l("ul", { className: "list-none p-0 mx-0 mb-0 mt-4", children: [
2259
- b ? /* @__PURE__ */ t(
2260
- Ge,
2258
+ p ? /* @__PURE__ */ l("ul", { className: "list-none p-0 mx-0 mb-0 mt-4", children: [
2259
+ u ? /* @__PURE__ */ t(
2260
+ Xe,
2261
2261
  {
2262
- Icon: st,
2262
+ Icon: ct,
2263
2263
  label: s,
2264
2264
  badge: c
2265
2265
  }
2266
2266
  ) : null,
2267
- g ? /* @__PURE__ */ t(
2268
- Ge,
2267
+ h ? /* @__PURE__ */ t(
2268
+ Xe,
2269
2269
  {
2270
2270
  Icon: cr,
2271
2271
  label: d,
2272
2272
  badge: m,
2273
- bordered: b
2273
+ bordered: u
2274
2274
  }
2275
2275
  ) : null,
2276
- h ? /* @__PURE__ */ t(
2277
- Ge,
2276
+ f ? /* @__PURE__ */ t(
2277
+ Xe,
2278
2278
  {
2279
2279
  Icon: sr,
2280
- label: u,
2281
- badge: x,
2282
- bordered: b || g
2280
+ label: b,
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(L, { className: "flex flex-col gap-2", children: [
2289
+ return /* @__PURE__ */ l(T, { 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 Ts({
2294
+ function Ms({
2295
2295
  heading: e,
2296
2296
  initials: r,
2297
2297
  rows: n = []
2298
2298
  }) {
2299
- return /* @__PURE__ */ l(L, { className: "min-w-0", children: [
2299
+ return /* @__PURE__ */ l(T, { 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(L, { className: "flex flex-col gap-4", children: [
2329
+ return /* @__PURE__ */ l(T, { 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 }) })
@@ -2354,7 +2354,7 @@ function Sa({
2354
2354
  ] })
2355
2355
  ] });
2356
2356
  }
2357
- function Ps({
2357
+ function Hs({
2358
2358
  title: e,
2359
2359
  infoAriaLabel: r,
2360
2360
  infoTooltip: n,
@@ -2365,9 +2365,9 @@ function Ps({
2365
2365
  viewReportButtonLabel: c,
2366
2366
  onViewReport: d
2367
2367
  }) {
2368
- return /* @__PURE__ */ l(L, { className: "flex h-full min-h-0 flex-col", children: [
2368
+ return /* @__PURE__ */ l(T, { className: "flex h-full min-h-0 flex-col", children: [
2369
2369
  /* @__PURE__ */ t(
2370
- lt,
2370
+ it,
2371
2371
  {
2372
2372
  title: e,
2373
2373
  trailingInline: !0,
@@ -2400,8 +2400,8 @@ function Ps({
2400
2400
  ] })
2401
2401
  ] });
2402
2402
  }
2403
- function Ss({ title: e, children: r, actions: n }) {
2404
- return /* @__PURE__ */ l(L, { className: "min-w-0 flex flex-col", children: [
2403
+ function ks({ title: e, children: r, actions: n }) {
2404
+ return /* @__PURE__ */ l(T, { 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 })
@@ -2420,13 +2420,13 @@ const Ma = {
2420
2420
  moderate: 100 / 3 * 1.5,
2421
2421
  high: 100 / 3 * 2.5
2422
2422
  };
2423
- function Ye(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 Ms({
2429
+ function js({
2430
2430
  title: e,
2431
2431
  score: r,
2432
2432
  infoAriaLabel: n,
@@ -2435,7 +2435,7 @@ function Ms({
2435
2435
  onInfoClick: i
2436
2436
  }) {
2437
2437
  const s = ja(r, o), c = ka[s];
2438
- return /* @__PURE__ */ l(L, { className: "flex flex-col", children: [
2438
+ return /* @__PURE__ */ l(T, { 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 Ms({
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: Ye(o.low) }),
2469
- /* @__PURE__ */ t("span", { className: "min-w-0 break-words px-0.5", children: Ye(o.moderate) }),
2470
- /* @__PURE__ */ t("span", { className: "min-w-0 break-words px-0.5", children: Ye(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
  ),
@@ -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)) });
@@ -2612,41 +2612,41 @@ function Fa({
2612
2612
  labsDateLabel: c,
2613
2613
  triadNumber: d,
2614
2614
  organKey: m,
2615
- organContent: u
2615
+ organContent: b
2616
2616
  }) {
2617
- var ie, he, fe, ge, pe, se, J, xt, vt, wt;
2618
- const x = nt(), [v, b] = H(!1), [g, h] = H(e), [f, y] = H(!1), C = Ea(), N = m && u ? u[m] : void 0, w = s != null ? {
2617
+ var ie, ge, pe, xe, ve, se, J, xt, vt, wt;
2618
+ const g = at(), [v, u] = H(!1), [h, f] = H(e), [p, y] = H(!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 = ((he = w == null ? void 0 : w.name) == null ? void 0 : he.trim()) || n.trim() || "Category", A = Da(a, P), S = d != null && ((fe = w == null ? void 0 : w.name) != null && fe.trim()) ? `Triad ${d}: ${w.name.trim()}` : d != null ? `Triad ${d}` : n, T = (ge = w == null ? void 0 : w.previousSymptomScore) == null ? void 0 : ge.trim(), z = (pe = w == null ? void 0 : w.previousLabScore) == null ? void 0 : pe.trim(), G = (se = w == null ? void 0 : w.previousTotalScore) == null ? void 0 : se.trim(), D = !!(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", De = 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, L = (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(), 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", ze = w != null && !!((vt = w.currentDateLabel) != null && vt.trim()) && !!((wt = w.previousDateLabel) != null && wt.trim()) && D;
2622
2622
  return V(() => {
2623
2623
  y(!0);
2624
2624
  }, []), V(() => {
2625
2625
  if (e) {
2626
- h(!0);
2627
- const Re = requestAnimationFrame(() => {
2628
- requestAnimationFrame(() => b(!0));
2626
+ f(!0);
2627
+ const Oe = requestAnimationFrame(() => {
2628
+ requestAnimationFrame(() => u(!0));
2629
2629
  });
2630
- return () => cancelAnimationFrame(Re);
2630
+ return () => cancelAnimationFrame(Oe);
2631
2631
  }
2632
- b(!1);
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 (!g) return;
2639
- const O = (Re) => {
2640
- Re.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
- }, [g, r]), V(() => {
2644
- if (!g) 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
- }, [g]), !f || typeof document > "u" || !g ? 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": x,
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: x,
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: De ? /* @__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: {
@@ -2755,10 +2755,10 @@ function Fa({
2755
2755
  },
2756
2756
  currentRangeLabel: $,
2757
2757
  previousRangeLabel: q,
2758
- siblingTotals: [Me(w.totalScore)]
2758
+ siblingTotals: [ke(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 [u, x] = H(!1), v = (o == null ? void 0 : o.bodyParagraphs) ?? [], b = ((h = o == null ? void 0 : o.panelTitle) == null ? void 0 : h.trim()) || e, g = o == null ? void 0 : o.organKey;
2857
- return /* @__PURE__ */ l(te, { children: [
2855
+ var f;
2856
+ const [b, g] = H(!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,8 +2862,8 @@ function Ga({
2862
2862
  variant: n,
2863
2863
  align: "center",
2864
2864
  className: a,
2865
- onClick: () => x(!0),
2866
- "aria-expanded": u,
2865
+ onClick: () => g(!0),
2866
+ "aria-expanded": b,
2867
2867
  "aria-haspopup": "dialog",
2868
2868
  children: [
2869
2869
  e,
@@ -2874,16 +2874,16 @@ function Ga({
2874
2874
  /* @__PURE__ */ t(
2875
2875
  Fa,
2876
2876
  {
2877
- open: u,
2878
- onClose: () => x(!1),
2879
- title: b,
2877
+ open: b,
2878
+ onClose: () => g(!1),
2879
+ title: u,
2880
2880
  trendStatus: r,
2881
2881
  introParagraphs: i,
2882
2882
  bodyParagraphs: v,
2883
2883
  rowData: s,
2884
2884
  labsDateLabel: c,
2885
2885
  triadNumber: d,
2886
- organKey: g,
2886
+ organKey: h,
2887
2887
  organContent: m
2888
2888
  }
2889
2889
  )
@@ -2900,8 +2900,8 @@ function le({
2900
2900
  metricSlots: s = 3,
2901
2901
  layoutBreakpoint: c
2902
2902
  }) {
2903
- const d = e.infoTooltip ?? e.infoAriaLabel, m = e.status === "optimal", u = e.status === "high", x = e.status === "low", v = m ? "border-[#3a9e6a]" : u || x ? "border-[#d94040]" : "border-[#e09a1a]", b = m ? "bg-[#e8f6ee]" : u || x ? "bg-[#fdecec]" : "bg-[#fff8eb]", g = m ? "OPTIMAL" : u ? "HIGH" : x ? "LOW" : "TRENDING", h = m ? "trendRowStatusOptimal" : u ? "trendRowStatusHigh" : x ? "trendRowStatusLow" : "trendRowStatusTrending", f = s === 2, y = c ?? (f ? "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 = f ? 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 = f ? 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 = (T, 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: T }),
2903
+ const d = e.infoTooltip ?? e.infoAriaLabel, m = e.status === "optimal", b = e.status === "high", g = e.status === "low", v = m ? "border-[#3a9e6a]" : b || g ? "border-[#d94040]" : "border-[#e09a1a]", u = m ? "bg-[#e8f6ee]" : b || g ? "bg-[#fdecec]" : "bg-[#fff8eb]", h = m ? "OPTIMAL" : b ? "HIGH" : g ? "LOW" : "TRENDING", f = m ? "trendRowStatusOptimal" : b ? "trendRowStatusHigh" : g ? "trendRowStatusLow" : "trendRowStatusTrending", p = s === 2, y = c ?? (p ? "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-[14rem]" : "xl:shrink-0 xl:w-[14rem]", w = y === "2xl" ? "2xl:shrink-0 2xl:w-[20rem]" : "xl:shrink-0 xl:w-[20rem]", P = p ? 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 = p ? 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 }),
2905
2905
  /* @__PURE__ */ t(
2906
2906
  _,
2907
2907
  {
@@ -2919,7 +2919,7 @@ function le({
2919
2919
  /* @__PURE__ */ l(
2920
2920
  "div",
2921
2921
  {
2922
- className: `flex min-w-0 items-center gap-2 px-3 ${f ? w : N} ${b}`,
2922
+ className: `flex min-w-0 items-center gap-2 px-3 ${p ? w : N} ${u}`,
2923
2923
  children: [
2924
2924
  /* @__PURE__ */ t(Z, { content: d, children: /* @__PURE__ */ t(
2925
2925
  M,
@@ -2931,7 +2931,7 @@ function le({
2931
2931
  children: /* @__PURE__ */ t(E, { className: "size-4 text-[color:var(--mb-color-text-muted)]" })
2932
2932
  }
2933
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 })
2934
+ /* @__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 })
2935
2935
  ]
2936
2936
  }
2937
2937
  ),
@@ -2940,8 +2940,14 @@ function le({
2940
2940
  {
2941
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
2942
  children: [
2943
- /* @__PURE__ */ t("div", { className: `flex min-w-0 ${f ? "justify-center" : "justify-start"}`, children: S(i[0], e.symptomScore) }),
2944
- /* @__PURE__ */ t("div", { className: `flex min-w-0 ${f ? "justify-center" : "justify-start ml-0 md:ml-16"}`, children: S(i[1], e.labScore, f) }),
2943
+ /* @__PURE__ */ t("div", { className: `flex min-w-0 ${p ? "justify-center" : "justify-start"}`, children: S(i[0], e.symptomScore) }),
2944
+ /* @__PURE__ */ t(
2945
+ "div",
2946
+ {
2947
+ className: `flex min-w-0 ${p ? "justify-center" : "justify-start ml-0 md:ml-16"}`,
2948
+ children: S(i[1], e.labScore, p)
2949
+ }
2950
+ ),
2945
2951
  s === 3 ? /* @__PURE__ */ t("div", { className: "flex min-w-0 justify-start sm:justify-end", children: S(i[2], e.totalScore, !0) }) : null
2946
2952
  ]
2947
2953
  }
@@ -2949,9 +2955,9 @@ function le({
2949
2955
  /* @__PURE__ */ t(
2950
2956
  Ga,
2951
2957
  {
2952
- badgeLabel: g,
2958
+ badgeLabel: h,
2953
2959
  trendStatus: e.status,
2954
- trendStatusVariant: h,
2960
+ trendStatusVariant: f,
2955
2961
  className: `flex !self-stretch !rounded-none rounded-br-[length:var(--mb-radius-button)] rounded-tr-[length:var(--mb-radius-button)] ${A}`,
2956
2962
  statusExplanationPanel: e.statusExplanationPanel,
2957
2963
  panelIntroParagraphs: r,
@@ -2976,7 +2982,7 @@ function I({ title: e, subtitle: r, className: n = "" }) {
2976
2982
  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
2983
  ] });
2978
2984
  }
2979
- const Xa = ["Normal Range", "Current Range", "Previous Range"], Ot = ["high", "low", "normal"], Va = {
2985
+ const Xa = ["Normal Range", "Current Range", "Indicator"], Ot = ["high", "low", "normal"], Va = {
2980
2986
  high: "Alert High",
2981
2987
  low: "Alert Low",
2982
2988
  normal: "High Normal"
@@ -2995,20 +3001,20 @@ function Za(e) {
2995
3001
  rows: r.get(n) ?? []
2996
3002
  })).filter((n) => n.rows.length > 0);
2997
3003
  }
2998
- function Hs({ content: e }) {
3004
+ function Bs({ content: e }) {
2999
3005
  const { pageHeader: r, indicators: n } = e, o = Za(n ?? []);
3000
3006
  return /* @__PURE__ */ l("div", { className: "mx-auto w-full min-w-0 space-y-6", children: [
3001
3007
  /* @__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(L, { className: "min-w-0", children: [
3008
+ /* @__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: [
3003
3009
  /* @__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(
3010
+ /* @__PURE__ */ t("div", { className: "space-y-2", children: c.map((d) => /* @__PURE__ */ t(
3005
3011
  le,
3006
3012
  {
3007
3013
  row: d,
3008
3014
  metricLabels: Xa,
3009
3015
  layoutBreakpoint: "2xl"
3010
3016
  },
3011
- `${d.name}-${m}`
3017
+ d.name
3012
3018
  )) })
3013
3019
  ] }, i)) })
3014
3020
  ] });
@@ -3016,15 +3022,15 @@ function Hs({ content: e }) {
3016
3022
  function Wa() {
3017
3023
  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
3024
  /* @__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
- /* @__PURE__ */ t(p, { className: "size-4 shrink-0 rounded" }),
3020
- /* @__PURE__ */ t(p, { className: "h-3.5 min-w-0 flex-1 max-w-[5.5rem] sm:h-4" })
3025
+ /* @__PURE__ */ t(x, { className: "size-4 shrink-0 rounded" }),
3026
+ /* @__PURE__ */ t(x, { className: "h-3.5 min-w-0 flex-1 max-w-[5.5rem] sm:h-4" })
3021
3027
  ] }),
3022
3028
  /* @__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: [
3023
- /* @__PURE__ */ t("div", { className: "flex min-w-0 justify-start", children: /* @__PURE__ */ t(p, { className: "h-6 w-[min(100%,6.5rem)]" }) }),
3024
- /* @__PURE__ */ t("div", { className: "flex min-w-0 justify-start md:ml-16", children: /* @__PURE__ */ t(p, { className: "h-6 w-[min(100%,6.5rem)]" }) }),
3025
- /* @__PURE__ */ t("div", { className: "flex min-w-0 justify-start sm:justify-end", children: /* @__PURE__ */ t(p, { className: "h-6 w-[min(100%,6.5rem)]" }) })
3029
+ /* @__PURE__ */ t("div", { className: "flex min-w-0 justify-start", children: /* @__PURE__ */ t(x, { className: "h-6 w-[min(100%,6.5rem)]" }) }),
3030
+ /* @__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)]" }) }),
3031
+ /* @__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
3032
  ] }),
3027
- /* @__PURE__ */ t(p, { 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" })
3033
+ /* @__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" })
3028
3034
  ] });
3029
3035
  }
3030
3036
  const Ua = [
@@ -3037,18 +3043,18 @@ function Qa({
3037
3043
  }) {
3038
3044
  return /* @__PURE__ */ l(K, { children: [
3039
3045
  /* @__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(L, { className: "min-w-0", children: [
3046
+ /* @__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
3047
  /* @__PURE__ */ t("h2", { className: "mb-4 m-0 text-lg font-bold text-[color:var(--mb-color-text)]", children: r.title }),
3042
3048
  /* @__PURE__ */ t("div", { className: "space-y-2", children: Array.from({ length: r.rowCount }, (n, a) => /* @__PURE__ */ t(Wa, {}, a)) })
3043
3049
  ] }, r.title)) })
3044
3050
  ] });
3045
3051
  }
3046
3052
  const xr = qt({});
3047
- function je() {
3048
- return at(xr);
3053
+ function Ie() {
3054
+ return ot(xr);
3049
3055
  }
3050
3056
  const Ka = xr.Provider;
3051
- function dt({
3057
+ function mt({
3052
3058
  sectionTitle: e,
3053
3059
  infoTooltip: r,
3054
3060
  infoAriaLabel: n,
@@ -3096,7 +3102,7 @@ function dt({
3096
3102
  children: [
3097
3103
  /* @__PURE__ */ t("span", { className: "@min-[36rem]:hidden", children: d }),
3098
3104
  /* @__PURE__ */ t("span", { className: "hidden @min-[36rem]:inline", children: i }),
3099
- /* @__PURE__ */ t(ne, { className: "size-4 shrink-0", "aria-hidden": !0 })
3105
+ /* @__PURE__ */ t(re, { className: "size-4 shrink-0", "aria-hidden": !0 })
3100
3106
  ]
3101
3107
  }
3102
3108
  )
@@ -3108,10 +3114,10 @@ function Ja({
3108
3114
  data: e,
3109
3115
  organContent: r
3110
3116
  }) {
3111
- const { onNavigateToNavItem: n } = je(), a = e.infoTooltip ?? e.infoAriaLabel;
3112
- return /* @__PURE__ */ l(L, { className: "min-w-0", children: [
3117
+ const { onNavigateToNavItem: n } = Ie(), a = e.infoTooltip ?? e.infoAriaLabel;
3118
+ return /* @__PURE__ */ l(T, { className: "min-w-0", children: [
3113
3119
  /* @__PURE__ */ t(
3114
- dt,
3120
+ mt,
3115
3121
  {
3116
3122
  sectionTitle: e.sectionTitle,
3117
3123
  infoTooltip: a,
@@ -3202,10 +3208,10 @@ function to({
3202
3208
  data: e,
3203
3209
  organContent: r
3204
3210
  }) {
3205
- const { onNavigateToNavItem: n } = je(), a = e.infoTooltip ?? e.infoAriaLabel;
3206
- return /* @__PURE__ */ l(L, { className: "min-w-0", children: [
3211
+ const { onNavigateToNavItem: n } = Ie(), a = e.infoTooltip ?? e.infoAriaLabel;
3212
+ return /* @__PURE__ */ l(T, { className: "min-w-0", children: [
3207
3213
  /* @__PURE__ */ t(
3208
- dt,
3214
+ mt,
3209
3215
  {
3210
3216
  sectionTitle: e.sectionTitle,
3211
3217
  infoTooltip: a,
@@ -3271,7 +3277,7 @@ const ro = {
3271
3277
  4: "text-[#E86C7F]",
3272
3278
  5: "text-[#7D7DBB]"
3273
3279
  }, Et = "text-[color:color-mix(in_srgb,var(--mb-color-text-muted)_62%,white_38%)]";
3274
- function mt({
3280
+ function ut({
3275
3281
  triads: e,
3276
3282
  selectedIndex: r,
3277
3283
  onSelectIndex: n
@@ -3341,10 +3347,10 @@ function oo({
3341
3347
  data: e,
3342
3348
  organContent: r
3343
3349
  }) {
3344
- const { onNavigateToNavItem: n } = je(), [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(L, { className: "min-w-0", children: [
3350
+ const { onNavigateToNavItem: n } = Ie(), [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;
3351
+ return /* @__PURE__ */ l(T, { className: "min-w-0", children: [
3346
3352
  /* @__PURE__ */ t(
3347
- dt,
3353
+ mt,
3348
3354
  {
3349
3355
  sectionTitle: e.sectionTitle,
3350
3356
  infoTooltip: c,
@@ -3357,7 +3363,7 @@ function oo({
3357
3363
  }
3358
3364
  ),
3359
3365
  /* @__PURE__ */ t(
3360
- mt,
3366
+ ut,
3361
3367
  {
3362
3368
  triads: e.triads,
3363
3369
  selectedIndex: i,
@@ -3366,26 +3372,26 @@ function oo({
3366
3372
  ),
3367
3373
  /* @__PURE__ */ l("div", { children: [
3368
3374
  m && /* @__PURE__ */ t("p", { className: "mb-4 m-0 text-sm leading-relaxed text-[color:var(--mb-color-text)]", children: vr }),
3369
- /* @__PURE__ */ t("div", { className: "space-y-2", children: s.map((u) => /* @__PURE__ */ t(
3375
+ /* @__PURE__ */ t("div", { className: "space-y-2", children: s.map((b) => /* @__PURE__ */ t(
3370
3376
  le,
3371
3377
  {
3372
- row: u,
3378
+ row: b,
3373
3379
  statusPanelIntroParagraphs: m,
3374
3380
  lastLabsLabel: e.lastLabsLabel,
3375
3381
  triadNumber: d == null ? void 0 : d.triadNumber,
3376
3382
  organContent: r
3377
3383
  },
3378
- u.name
3384
+ b.name
3379
3385
  )) })
3380
3386
  ] })
3381
3387
  ] });
3382
3388
  }
3383
3389
  const lo = {
3384
- "schedule-labs": st,
3385
- "export-reports": ct
3390
+ "schedule-labs": ct,
3391
+ "export-reports": dt
3386
3392
  };
3387
- function ks({ content: e }) {
3388
- const { onExportReports: r } = je(), [n, a] = H(!1);
3393
+ function Is({ content: e }) {
3394
+ const { onExportReports: r } = Ie(), [n, a] = H(!1);
3389
3395
  if (!e) return null;
3390
3396
  const {
3391
3397
  pageHeader: o,
@@ -3394,8 +3400,8 @@ function ks({ content: e }) {
3394
3400
  metaflammation: c,
3395
3401
  totalPredictiveTrends: d,
3396
3402
  alertLabSummaryTable: m,
3397
- organContent: u
3398
- } = e, x = d ?? _a, v = i == null ? void 0 : i.actions.find((y) => y.id === "export-reports"), b = v ? lo[v.id] : null, g = !!(s || c), h = !!(v && b && r), f = async () => {
3403
+ organContent: b
3404
+ } = 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
3405
  if (!(!r || n))
3400
3406
  try {
3401
3407
  a(!0), await r();
@@ -3413,78 +3419,78 @@ function ks({ content: e }) {
3413
3419
  className: "min-w-0 flex-1"
3414
3420
  }
3415
3421
  ),
3416
- h && v && b ? /* @__PURE__ */ l(
3422
+ f && v && u ? /* @__PURE__ */ l(
3417
3423
  M,
3418
3424
  {
3419
3425
  type: "button",
3420
3426
  variant: "default",
3421
3427
  className: br,
3422
- onClick: f,
3428
+ onClick: p,
3423
3429
  disabled: n,
3424
3430
  children: [
3425
- /* @__PURE__ */ t(b, { className: "size-4 shrink-0" }),
3431
+ /* @__PURE__ */ t(u, { className: "size-4 shrink-0" }),
3426
3432
  n ? "Exporting…" : v.label
3427
3433
  ]
3428
3434
  }
3429
3435
  ) : null
3430
3436
  ] }),
3431
- g ? /* @__PURE__ */ l(
3437
+ h ? /* @__PURE__ */ l(
3432
3438
  "div",
3433
3439
  {
3434
3440
  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
3441
  children: [
3436
- s ? /* @__PURE__ */ t(Ta, { ...s }) : null,
3442
+ s ? /* @__PURE__ */ t(La, { ...s }) : null,
3437
3443
  c ? /* @__PURE__ */ t(wa, { ...c }) : null
3438
3444
  ]
3439
3445
  }
3440
3446
  ) : null,
3441
- /* @__PURE__ */ t("div", { className: "xl:hidden", children: /* @__PURE__ */ t(to, { data: x, organContent: u }) }),
3442
- /* @__PURE__ */ t("div", { className: "hidden xl:block", children: /* @__PURE__ */ t(oo, { data: x, organContent: u }) }),
3443
- m ? /* @__PURE__ */ t(Ja, { data: m, organContent: u }) : null
3447
+ /* @__PURE__ */ t("div", { className: "xl:hidden", children: /* @__PURE__ */ t(to, { data: g, organContent: b }) }),
3448
+ /* @__PURE__ */ t("div", { className: "hidden xl:block", children: /* @__PURE__ */ t(oo, { data: g, organContent: b }) }),
3449
+ m ? /* @__PURE__ */ t(Ja, { data: m, organContent: b }) : null
3444
3450
  ] });
3445
3451
  }
3446
- const Xe = "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)]", Ve = "flex min-w-0 flex-1 items-center gap-3", Ze = "flex size-5 shrink-0 items-center justify-center text-[color:var(--mb-color-text-muted)]", We = "size-[18px] shrink-0";
3447
- function Ue({ titleWidthClass: e }) {
3452
+ 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";
3453
+ function Ke({ titleWidthClass: e }) {
3448
3454
  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
3455
  /* @__PURE__ */ l("div", { className: "flex min-w-0 shrink-0 items-center gap-2", children: [
3450
- /* @__PURE__ */ t(p, { className: `h-7 rounded ${e}` }),
3451
- /* @__PURE__ */ t(p, { className: "size-5 shrink-0 rounded" })
3456
+ /* @__PURE__ */ t(x, { className: `h-7 rounded ${e}` }),
3457
+ /* @__PURE__ */ t(x, { className: "size-5 shrink-0 rounded" })
3452
3458
  ] }),
3453
3459
  /* @__PURE__ */ l("div", { className: "flex min-w-0 shrink-0 flex-wrap items-center gap-6 @xl:flex-1 @xl:justify-between", children: [
3454
3460
  /* @__PURE__ */ l("span", { className: "flex min-w-0 shrink-0 items-center gap-2 @xl:mx-auto", children: [
3455
- /* @__PURE__ */ t(p, { className: "h-4 w-[4.5rem]" }),
3456
- /* @__PURE__ */ t(p, { className: "h-7 min-w-[5.5rem] rounded-md" })
3461
+ /* @__PURE__ */ t(x, { className: "h-4 w-[4.5rem]" }),
3462
+ /* @__PURE__ */ t(x, { className: "h-7 min-w-[5.5rem] rounded-md" })
3457
3463
  ] }),
3458
- /* @__PURE__ */ t(p, { className: "h-9 min-w-[7.5rem] rounded-[var(--mb-button-radius)]" })
3464
+ /* @__PURE__ */ t(x, { className: "h-9 min-w-[7.5rem] rounded-[var(--mb-button-radius)]" })
3459
3465
  ] })
3460
3466
  ] }) });
3461
3467
  }
3462
3468
  function Gt() {
3463
3469
  return /* @__PURE__ */ t("div", { className: "w-full min-w-0 overflow-hidden rounded-[length:var(--mb-radius-button)] border border-solid border-[#e09a1a] bg-[color:var(--mb-color-card-bg)] [border-width:1px]", children: /* @__PURE__ */ l("div", { className: "flex flex-col xl:flex-row xl:items-stretch", children: [
3464
3470
  /* @__PURE__ */ l("div", { className: "flex min-w-0 items-center gap-2 bg-[#fff8eb]/60 px-3 py-2 xl:w-[19.5rem] xl:shrink-0 xl:py-3", children: [
3465
- /* @__PURE__ */ t(p, { className: "size-4 shrink-0 rounded" }),
3466
- /* @__PURE__ */ t(p, { className: "h-4 min-w-0 flex-1 max-w-[14rem]" })
3471
+ /* @__PURE__ */ t(x, { className: "size-4 shrink-0 rounded" }),
3472
+ /* @__PURE__ */ t(x, { className: "h-4 min-w-0 flex-1 max-w-[14rem]" })
3467
3473
  ] }),
3468
3474
  /* @__PURE__ */ l("div", { className: "flex min-w-0 flex-1 flex-wrap items-center gap-x-5 gap-y-1.5 border-t border-[color:var(--mb-color-card-border)] bg-[color:var(--mb-color-card-bg)] px-3 py-2 xl:border-t-0 xl:py-2 xl:pl-4 xl:pr-2", children: [
3469
- /* @__PURE__ */ t(p, { className: "h-6 w-[5.5rem] rounded-md" }),
3470
- /* @__PURE__ */ t(p, { className: "h-6 w-[5.5rem] rounded-md" }),
3471
- /* @__PURE__ */ t(p, { className: "h-6 w-[5.5rem] rounded-md" })
3475
+ /* @__PURE__ */ t(x, { className: "h-6 w-[5.5rem] rounded-md" }),
3476
+ /* @__PURE__ */ t(x, { className: "h-6 w-[5.5rem] rounded-md" }),
3477
+ /* @__PURE__ */ t(x, { className: "h-6 w-[5.5rem] rounded-md" })
3472
3478
  ] }),
3473
- /* @__PURE__ */ t(p, { className: "h-11 w-full shrink-0 rounded-none border-t border-[color:var(--mb-color-card-border)] xl:h-auto xl:w-[8.5rem] xl:border-l xl:border-t-0 xl:border-[color:var(--mb-color-card-border)]" })
3479
+ /* @__PURE__ */ t(x, { className: "h-11 w-full shrink-0 rounded-none border-t border-[color:var(--mb-color-card-border)] xl:h-auto xl:w-[8.5rem] xl:border-l xl:border-t-0 xl:border-[color:var(--mb-color-card-border)]" })
3474
3480
  ] }) });
3475
3481
  }
3476
3482
  function io() {
3477
3483
  return /* @__PURE__ */ l("div", { className: "flex min-w-0 flex-col overflow-hidden rounded-[length:var(--mb-radius-button)] border border-solid border-[#e09a1a] bg-[color:var(--mb-color-card-bg)] [border-width:1px] xl:flex-row xl:items-stretch", children: [
3478
3484
  /* @__PURE__ */ l("div", { className: "flex min-w-0 items-center gap-2 bg-[#fff8eb]/60 px-3 py-2 xl:w-[10rem] xl:shrink-0", children: [
3479
- /* @__PURE__ */ t(p, { className: "size-4 shrink-0 rounded" }),
3480
- /* @__PURE__ */ t(p, { className: "h-4 min-w-0 flex-1 max-w-[8rem]" })
3485
+ /* @__PURE__ */ t(x, { className: "size-4 shrink-0 rounded" }),
3486
+ /* @__PURE__ */ t(x, { className: "h-4 min-w-0 flex-1 max-w-[8rem]" })
3481
3487
  ] }),
3482
3488
  /* @__PURE__ */ l("div", { className: "flex min-w-0 flex-1 flex-wrap items-center gap-x-5 gap-y-1.5 border-t border-[color:var(--mb-color-card-border)] px-3 py-2 xl:border-t-0 xl:border-l xl:border-[color:var(--mb-color-card-border)] xl:py-2 xl:pl-4 xl:pr-2", children: [
3483
- /* @__PURE__ */ t(p, { className: "h-6 w-[5.5rem] rounded-md" }),
3484
- /* @__PURE__ */ t(p, { className: "h-6 w-[5.5rem] rounded-md" }),
3485
- /* @__PURE__ */ t(p, { className: "h-6 w-[5.5rem] rounded-md" })
3489
+ /* @__PURE__ */ t(x, { className: "h-6 w-[5.5rem] rounded-md" }),
3490
+ /* @__PURE__ */ t(x, { className: "h-6 w-[5.5rem] rounded-md" }),
3491
+ /* @__PURE__ */ t(x, { className: "h-6 w-[5.5rem] rounded-md" })
3486
3492
  ] }),
3487
- /* @__PURE__ */ t(p, { className: "h-11 w-full shrink-0 rounded-none border-t border-[color:var(--mb-color-card-border)] xl:h-auto xl:w-[7rem] xl:rounded-br-[length:var(--mb-radius-button)] xl:rounded-tr-[length:var(--mb-radius-button)] xl:border-l xl:border-t-0 xl:border-[color:var(--mb-color-card-border)]" })
3493
+ /* @__PURE__ */ t(x, { className: "h-11 w-full shrink-0 rounded-none border-t border-[color:var(--mb-color-card-border)] xl:h-auto xl:w-[7rem] xl:rounded-br-[length:var(--mb-radius-button)] xl:rounded-tr-[length:var(--mb-radius-button)] xl:border-l xl:border-t-0 xl:border-[color:var(--mb-color-card-border)]" })
3488
3494
  ] });
3489
3495
  }
3490
3496
  function so({
@@ -3494,45 +3500,45 @@ function so({
3494
3500
  /* @__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
3501
  /* @__PURE__ */ t(I, { title: e.title, subtitle: e.subtitle, className: "min-w-0 flex-1" }),
3496
3502
  /* @__PURE__ */ l(M, { type: "button", variant: "default", className: br, disabled: !0, children: [
3497
- /* @__PURE__ */ t(ct, { className: "size-4 shrink-0" }),
3503
+ /* @__PURE__ */ t(dt, { className: "size-4 shrink-0" }),
3498
3504
  "Export All Reports"
3499
3505
  ] })
3500
3506
  ] }),
3501
3507
  /* @__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(L, { children: [
3508
+ /* @__PURE__ */ l(T, { children: [
3503
3509
  /* @__PURE__ */ l("div", { className: "mb-4 flex items-start justify-between gap-4", children: [
3504
3510
  /* @__PURE__ */ l("div", { className: "flex min-w-0 items-center gap-1.5", children: [
3505
3511
  /* @__PURE__ */ t("span", { className: "text-xl font-bold text-[color:var(--mb-color-text)]", children: "Overall Metabolic Score" }),
3506
3512
  /* @__PURE__ */ t("span", { className: "pointer-events-none opacity-70", "aria-hidden": !0, children: /* @__PURE__ */ t(E, { className: "size-4" }) })
3507
3513
  ] }),
3508
- /* @__PURE__ */ t(p, { className: "h-8 w-[3.25rem] shrink-0 rounded-md" })
3514
+ /* @__PURE__ */ t(x, { className: "h-8 w-[3.25rem] shrink-0 rounded-md" })
3509
3515
  ] }),
3510
3516
  /* @__PURE__ */ t(Rn, { score: 0, showIndicator: !1 }),
3511
3517
  /* @__PURE__ */ l("ul", { className: "list-none p-0 mx-0 mb-0 mt-4", children: [
3512
- /* @__PURE__ */ l("li", { className: Xe, children: [
3513
- /* @__PURE__ */ l("span", { className: Ve, children: [
3514
- /* @__PURE__ */ t("span", { className: Ze, "aria-hidden": !0, children: /* @__PURE__ */ t(st, { className: We }) }),
3518
+ /* @__PURE__ */ l("li", { className: Ze, children: [
3519
+ /* @__PURE__ */ l("span", { className: We, children: [
3520
+ /* @__PURE__ */ t("span", { className: Ue, "aria-hidden": !0, children: /* @__PURE__ */ t(ct, { className: Qe }) }),
3515
3521
  /* @__PURE__ */ t("span", { className: "min-w-0 truncate", children: "Last Questionnaire" })
3516
3522
  ] }),
3517
- /* @__PURE__ */ t(_, { variant: "value", children: /* @__PURE__ */ t(p, { className: "h-3.5 w-16" }) })
3523
+ /* @__PURE__ */ t(_, { variant: "value", children: /* @__PURE__ */ t(x, { className: "h-3.5 w-16" }) })
3518
3524
  ] }),
3519
- /* @__PURE__ */ l("li", { className: `${Xe} ${Ft}`, children: [
3520
- /* @__PURE__ */ l("span", { className: Ve, children: [
3521
- /* @__PURE__ */ t("span", { className: Ze, "aria-hidden": !0, children: /* @__PURE__ */ t(cr, { className: We }) }),
3525
+ /* @__PURE__ */ l("li", { className: `${Ze} ${Ft}`, children: [
3526
+ /* @__PURE__ */ l("span", { className: We, children: [
3527
+ /* @__PURE__ */ t("span", { className: Ue, "aria-hidden": !0, children: /* @__PURE__ */ t(cr, { className: Qe }) }),
3522
3528
  /* @__PURE__ */ t("span", { className: "min-w-0 truncate", children: "Last Labs" })
3523
3529
  ] }),
3524
- /* @__PURE__ */ t(_, { variant: "value", children: /* @__PURE__ */ t(p, { className: "h-3.5 w-20" }) })
3530
+ /* @__PURE__ */ t(_, { variant: "value", children: /* @__PURE__ */ t(x, { className: "h-3.5 w-20" }) })
3525
3531
  ] }),
3526
- /* @__PURE__ */ l("li", { className: `${Xe} ${Ft}`, children: [
3527
- /* @__PURE__ */ l("span", { className: Ve, children: [
3528
- /* @__PURE__ */ t("span", { className: Ze, "aria-hidden": !0, children: /* @__PURE__ */ t(sr, { className: We }) }),
3532
+ /* @__PURE__ */ l("li", { className: `${Ze} ${Ft}`, children: [
3533
+ /* @__PURE__ */ l("span", { className: We, children: [
3534
+ /* @__PURE__ */ t("span", { className: Ue, "aria-hidden": !0, children: /* @__PURE__ */ t(sr, { className: Qe }) }),
3529
3535
  /* @__PURE__ */ t("span", { className: "min-w-0 truncate", children: "Wearable" })
3530
3536
  ] }),
3531
- /* @__PURE__ */ t(_, { variant: "value", children: /* @__PURE__ */ t(p, { className: "h-3.5 w-12" }) })
3537
+ /* @__PURE__ */ t(_, { variant: "value", children: /* @__PURE__ */ t(x, { className: "h-3.5 w-12" }) })
3532
3538
  ] })
3533
3539
  ] })
3534
3540
  ] }),
3535
- /* @__PURE__ */ l(L, { className: "min-w-0 overflow-visible", children: [
3541
+ /* @__PURE__ */ l(T, { className: "min-w-0 overflow-visible", children: [
3536
3542
  /* @__PURE__ */ l("div", { className: "mb-4 flex items-center gap-1.5", children: [
3537
3543
  /* @__PURE__ */ t("h2", { className: "text-xl font-bold text-[color:var(--mb-color-text)]", children: "Metaflammation Gauge" }),
3538
3544
  /* @__PURE__ */ t("span", { className: "pointer-events-none opacity-70", "aria-hidden": !0, children: /* @__PURE__ */ t(E, { className: "size-4" }) })
@@ -3540,8 +3546,8 @@ function so({
3540
3546
  /* @__PURE__ */ t(lr, { value: 0, max: 7e3 })
3541
3547
  ] })
3542
3548
  ] }),
3543
- /* @__PURE__ */ l(L, { children: [
3544
- /* @__PURE__ */ t(Ue, { titleWidthClass: "w-52 max-w-full sm:w-64" }),
3549
+ /* @__PURE__ */ l(T, { children: [
3550
+ /* @__PURE__ */ t(Ke, { titleWidthClass: "w-52 max-w-full sm:w-64" }),
3545
3551
  /* @__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(
3546
3552
  "div",
3547
3553
  {
@@ -3551,8 +3557,8 @@ function so({
3551
3557
  ].join(" "),
3552
3558
  children: [
3553
3559
  /* @__PURE__ */ t(jt, { className: "size-[6.5rem] max-w-full" }),
3554
- /* @__PURE__ */ t(p, { className: "h-3 w-[4.5rem]" }),
3555
- /* @__PURE__ */ t(p, { className: "h-8 w-12" })
3560
+ /* @__PURE__ */ t(x, { className: "h-3 w-[4.5rem]" }),
3561
+ /* @__PURE__ */ t(x, { className: "h-8 w-12" })
3556
3562
  ]
3557
3563
  },
3558
3564
  r
@@ -3568,12 +3574,12 @@ function so({
3568
3574
  }
3569
3575
  )
3570
3576
  ] }),
3571
- /* @__PURE__ */ l(L, { children: [
3572
- /* @__PURE__ */ t(Ue, { titleWidthClass: "w-48 max-w-full sm:w-56" }),
3577
+ /* @__PURE__ */ l(T, { children: [
3578
+ /* @__PURE__ */ t(Ke, { titleWidthClass: "w-48 max-w-full sm:w-56" }),
3573
3579
  /* @__PURE__ */ t("div", { className: "space-y-2", "data-testid": "dashboard-skeleton-alert-rows", children: [0, 1, 2].map((r) => /* @__PURE__ */ t(Gt, {}, r)) })
3574
3580
  ] }),
3575
- /* @__PURE__ */ l(L, { className: "min-w-0", children: [
3576
- /* @__PURE__ */ t(Ue, { titleWidthClass: "w-64 max-w-full sm:w-72" }),
3581
+ /* @__PURE__ */ l(T, { className: "min-w-0", children: [
3582
+ /* @__PURE__ */ t(Ke, { titleWidthClass: "w-64 max-w-full sm:w-72" }),
3577
3583
  /* @__PURE__ */ t(
3578
3584
  "div",
3579
3585
  {
@@ -3586,8 +3592,8 @@ function so({
3586
3592
  children: [
3587
3593
  /* @__PURE__ */ l("div", { className: "flex shrink-0 flex-col items-center gap-1 xl:w-[9rem] xl:justify-center", children: [
3588
3594
  /* @__PURE__ */ t(jt, { className: "size-16 shrink-0 xl:size-20" }),
3589
- /* @__PURE__ */ t(p, { className: "h-3 w-24" }),
3590
- /* @__PURE__ */ t(p, { className: "h-8 w-14" })
3595
+ /* @__PURE__ */ t(x, { className: "h-3 w-24" }),
3596
+ /* @__PURE__ */ t(x, { className: "h-8 w-14" })
3591
3597
  ] }),
3592
3598
  /* @__PURE__ */ t("div", { className: "flex min-w-0 flex-1 flex-col gap-1.5", children: [0, 1, 2].map((n) => /* @__PURE__ */ t(io, {}, n)) })
3593
3599
  ]
@@ -3599,7 +3605,7 @@ function so({
3599
3605
  ] })
3600
3606
  ] });
3601
3607
  }
3602
- function js({ content: e }) {
3608
+ function Ds({ content: e }) {
3603
3609
  const { pageHeader: r, sections: n } = e, a = n ?? [];
3604
3610
  return /* @__PURE__ */ l("div", { className: "mx-auto w-full max-w-full min-w-0 space-y-6", children: [
3605
3611
  /* @__PURE__ */ t(I, { title: r.title, subtitle: r.subtitle }),
@@ -3611,33 +3617,30 @@ function co({
3611
3617
  }) {
3612
3618
  return /* @__PURE__ */ l(K, { children: [
3613
3619
  /* @__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(L, { className: "flex flex-col", children: [
3620
+ /* @__PURE__ */ t("div", { className: "space-y-6", children: [0, 1, 2].map((r) => /* @__PURE__ */ l(T, { className: "flex flex-col", children: [
3615
3621
  /* @__PURE__ */ l("div", { className: "mb-6 flex flex-wrap items-center justify-between gap-3", children: [
3616
3622
  /* @__PURE__ */ l("div", { className: "flex min-w-0 flex-1 items-center gap-2", children: [
3617
- /* @__PURE__ */ t(p, { className: "h-9 w-9 shrink-0 rounded-md" }),
3618
- /* @__PURE__ */ t(p, { className: "h-7 w-[min(100%,16rem)]" })
3623
+ /* @__PURE__ */ t(x, { className: "h-9 w-9 shrink-0 rounded-md" }),
3624
+ /* @__PURE__ */ t(x, { className: "h-7 w-[min(100%,16rem)]" })
3619
3625
  ] }),
3620
- /* @__PURE__ */ t(p, { className: "h-9 w-14" })
3626
+ /* @__PURE__ */ t(x, { className: "h-9 w-14" })
3621
3627
  ] }),
3622
- /* @__PURE__ */ t(ke, { variant: "labAnalysis" }),
3628
+ /* @__PURE__ */ t(Be, { variant: "labAnalysis" }),
3623
3629
  /* @__PURE__ */ l("div", { className: "mt-6 space-y-3", children: [
3624
- /* @__PURE__ */ t(p, { className: "h-3.5 w-full" }),
3625
- /* @__PURE__ */ t(p, { className: "h-3.5 w-full" }),
3626
- /* @__PURE__ */ t(p, { className: "h-3.5 w-[85%]" })
3630
+ /* @__PURE__ */ t(x, { className: "h-3.5 w-full" }),
3631
+ /* @__PURE__ */ t(x, { className: "h-3.5 w-full" }),
3632
+ /* @__PURE__ */ t(x, { className: "h-3.5 w-[85%]" })
3627
3633
  ] })
3628
3634
  ] }, r)) })
3629
3635
  ] });
3630
3636
  }
3631
- const mo = ["Normal Range", "Current Range", ""];
3632
- function uo(e, r) {
3637
+ const mo = ["Normal Range", "Current Range", ""], uo = [];
3638
+ function bo(e, r) {
3633
3639
  const n = /T(\d+)/i.exec(e);
3634
3640
  if (!n) return r + 1;
3635
3641
  const a = Number(n[1]);
3636
3642
  return Number.isFinite(a) ? a : r + 1;
3637
3643
  }
3638
- function bo(e) {
3639
- return e >= 60 ? "high" : e <= 40 ? "low" : "optimal";
3640
- }
3641
3644
  function ho(e) {
3642
3645
  return {
3643
3646
  name: e.title,
@@ -3646,61 +3649,62 @@ function ho(e) {
3646
3649
  symptomScore: e.normalRange || "—",
3647
3650
  labScore: e.currentRange || "—",
3648
3651
  totalScore: e.previousRange || "—",
3649
- status: bo(e.indicatorPercent)
3652
+ status: e.status
3650
3653
  };
3651
3654
  }
3652
3655
  function fo(e) {
3653
3656
  const r = /* @__PURE__ */ new Map();
3654
3657
  return e.forEach((n, a) => {
3655
- const o = uo(n.subtitle, a), i = r.get(o) ?? [];
3658
+ const o = bo(n.subtitle, a), i = r.get(o) ?? [];
3656
3659
  i.push(n), r.set(o, i);
3657
3660
  }), Array.from(r.entries()).sort((n, a) => n[0] - a[0]).map(([n, a]) => ({
3658
3661
  triadNumber: n,
3659
3662
  groups: a
3660
3663
  }));
3661
3664
  }
3662
- function Bs({ content: e }) {
3663
- var b, g;
3665
+ function Rs({ content: e }) {
3666
+ var f, p;
3667
+ const r = (e == null ? void 0 : e.groups) ?? uo, n = j(() => fo(r ?? []), [r]), [a, o] = H(0);
3664
3668
  if (!e) return null;
3665
- const { pageHeader: r, intro: n, groups: a } = e, o = !!(n && (n.heading || (b = n.paragraphs) != null && b.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)), u = ((g = s[m]) == null ? void 0 : g.groups) ?? [], x = s.map((h) => ({
3666
- triadNumber: h.triadNumber,
3667
- name: `Triad ${h.triadNumber}`,
3668
- aggregateScoreDisplay: String(h.triadNumber)
3669
- })), v = o || i;
3669
+ 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) => ({
3670
+ triadNumber: y.triadNumber,
3671
+ name: `Triad ${y.triadNumber}`,
3672
+ aggregateScoreDisplay: String(y.triadNumber)
3673
+ })), h = v || c;
3670
3674
  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(
3673
- mt,
3675
+ /* @__PURE__ */ t(I, { title: i.title, subtitle: i.subtitle }),
3676
+ c ? /* @__PURE__ */ t(
3677
+ ut,
3674
3678
  {
3675
- triads: x,
3676
- selectedIndex: m,
3677
- onSelectIndex: d
3679
+ triads: u,
3680
+ selectedIndex: d,
3681
+ onSelectIndex: o
3678
3682
  }
3679
- ) }) : null,
3680
- v ? /* @__PURE__ */ t(L, { 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: u.map((h, f) => /* @__PURE__ */ l(
3683
+ ) : null,
3684
+ h ? /* @__PURE__ */ t(T, { className: "min-w-0", children: /* @__PURE__ */ l("div", { className: "space-y-6", children: [
3685
+ v && g ? /* @__PURE__ */ t(hr, { ...g, embeddedInCard: !0 }) : null,
3686
+ v && c ? /* @__PURE__ */ t("div", { className: "border-t border-[color:var(--mb-color-card-border)]" }) : null,
3687
+ c ? /* @__PURE__ */ t("div", { className: "space-y-6", children: b.map((y) => /* @__PURE__ */ l(
3684
3688
  "div",
3685
3689
  {
3686
3690
  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
3691
  children: [
3688
3692
  /* @__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 })
3693
+ /* @__PURE__ */ t("h2", { className: "m-0 text-xl font-bold text-[color:var(--mb-color-text)]", children: y.title }),
3694
+ /* @__PURE__ */ t("span", { className: "text-base font-bold text-[color:var(--mb-color-text-muted)]", children: y.subtitle })
3691
3695
  ] }),
3692
- /* @__PURE__ */ t("div", { className: "space-y-2", children: (h.metrics ?? []).map((y) => /* @__PURE__ */ t(
3696
+ /* @__PURE__ */ t("div", { className: "space-y-2", children: (y.metrics ?? []).map((C) => /* @__PURE__ */ t(
3693
3697
  le,
3694
3698
  {
3695
- row: ho(y),
3699
+ row: ho(C),
3696
3700
  metricLabels: mo,
3697
3701
  metricSlots: 2
3698
3702
  },
3699
- y.title
3703
+ C.title
3700
3704
  )) })
3701
3705
  ]
3702
3706
  },
3703
- `${h.title}-${f}`
3707
+ `${y.title}-${y.subtitle}`
3704
3708
  )) }) : null
3705
3709
  ] }) }) : null
3706
3710
  ] });
@@ -3709,14 +3713,14 @@ const go = 5;
3709
3713
  function po() {
3710
3714
  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: [
3711
3715
  /* @__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: [
3712
- /* @__PURE__ */ t(p, { className: "size-4 shrink-0 rounded" }),
3713
- /* @__PURE__ */ t(p, { className: "h-3.5 min-w-0 flex-1 max-w-[10rem] sm:h-4" })
3716
+ /* @__PURE__ */ t(x, { className: "size-4 shrink-0 rounded" }),
3717
+ /* @__PURE__ */ t(x, { className: "h-3.5 min-w-0 flex-1 max-w-[10rem] sm:h-4" })
3714
3718
  ] }),
3715
3719
  /* @__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-2 sm:gap-x-3 sm:gap-y-0 2xl:mx-auto 2xl:w-full 2xl:max-w-[50rem] 2xl:border-t-0 2xl:px-8 2xl:py-1", children: [
3716
- /* @__PURE__ */ t("div", { className: "flex min-w-0 justify-center", children: /* @__PURE__ */ t(p, { className: "h-6 w-[min(100%,7rem)]" }) }),
3717
- /* @__PURE__ */ t("div", { className: "flex min-w-0 justify-center", children: /* @__PURE__ */ t(p, { className: "h-6 w-[min(100%,7rem)]" }) })
3720
+ /* @__PURE__ */ t("div", { className: "flex min-w-0 justify-center", children: /* @__PURE__ */ t(x, { className: "h-6 w-[min(100%,7rem)]" }) }),
3721
+ /* @__PURE__ */ t("div", { className: "flex min-w-0 justify-center", children: /* @__PURE__ */ t(x, { className: "h-6 w-[min(100%,7rem)]" }) })
3718
3722
  ] }),
3719
- /* @__PURE__ */ t(p, { 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" })
3723
+ /* @__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" })
3720
3724
  ] });
3721
3725
  }
3722
3726
  function xo({
@@ -3729,27 +3733,27 @@ function xo({
3729
3733
  {
3730
3734
  className: "flex min-w-[9rem] flex-1 flex-col items-center gap-3 px-5 py-4",
3731
3735
  children: [
3732
- /* @__PURE__ */ t(p, { className: "size-26 shrink-0 rounded-full" }),
3733
- /* @__PURE__ */ t(p, { className: "h-3 w-16" }),
3734
- /* @__PURE__ */ t(p, { className: "h-8 w-10" })
3736
+ /* @__PURE__ */ t(x, { className: "size-26 shrink-0 rounded-full" }),
3737
+ /* @__PURE__ */ t(x, { className: "h-3 w-16" }),
3738
+ /* @__PURE__ */ t(x, { className: "h-8 w-10" })
3735
3739
  ]
3736
3740
  },
3737
3741
  n
3738
3742
  )) }),
3739
- /* @__PURE__ */ t(L, { className: "min-w-0", children: /* @__PURE__ */ l("div", { className: "space-y-6", children: [
3743
+ /* @__PURE__ */ t(T, { className: "min-w-0", children: /* @__PURE__ */ l("div", { className: "space-y-6", children: [
3740
3744
  /* @__PURE__ */ l("div", { className: "grid min-w-0 grid-cols-1 gap-6 xl:grid-cols-2 xl:items-stretch", children: [
3741
3745
  /* @__PURE__ */ l("div", { className: "min-w-0 space-y-4", children: [
3742
3746
  /* @__PURE__ */ l("div", { className: "flex items-center gap-2", children: [
3743
- /* @__PURE__ */ t(p, { className: "h-9 w-9 shrink-0 rounded-md" }),
3744
- /* @__PURE__ */ t(p, { className: "h-7 w-[min(100%,14rem)]" })
3747
+ /* @__PURE__ */ t(x, { className: "h-9 w-9 shrink-0 rounded-md" }),
3748
+ /* @__PURE__ */ t(x, { className: "h-7 w-[min(100%,14rem)]" })
3745
3749
  ] }),
3746
3750
  /* @__PURE__ */ l("div", { className: "space-y-3", children: [
3747
- /* @__PURE__ */ t(p, { className: "h-3.5 w-full" }),
3748
- /* @__PURE__ */ t(p, { className: "h-3.5 w-full" }),
3749
- /* @__PURE__ */ t(p, { className: "h-3.5 w-[90%]" })
3751
+ /* @__PURE__ */ t(x, { className: "h-3.5 w-full" }),
3752
+ /* @__PURE__ */ t(x, { className: "h-3.5 w-full" }),
3753
+ /* @__PURE__ */ t(x, { className: "h-3.5 w-[90%]" })
3750
3754
  ] })
3751
3755
  ] }),
3752
- /* @__PURE__ */ t("div", { className: "flex min-w-0 items-center", children: /* @__PURE__ */ t(p, { className: "aspect-video w-full rounded-lg" }) })
3756
+ /* @__PURE__ */ t("div", { className: "flex min-w-0 items-center", children: /* @__PURE__ */ t(x, { className: "aspect-video w-full rounded-lg" }) })
3753
3757
  ] }),
3754
3758
  /* @__PURE__ */ t("div", { className: "border-t border-[color:var(--mb-color-card-border)]" }),
3755
3759
  /* @__PURE__ */ t("div", { className: "space-y-6", children: [0, 1].map((r) => /* @__PURE__ */ l(
@@ -3758,8 +3762,8 @@ function xo({
3758
3762
  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)]",
3759
3763
  children: [
3760
3764
  /* @__PURE__ */ l("div", { className: "flex flex-wrap items-baseline justify-between gap-2", children: [
3761
- /* @__PURE__ */ t(p, { className: "h-7 w-[min(100%,12rem)]" }),
3762
- /* @__PURE__ */ t(p, { className: "h-5 w-24 sm:h-6" })
3765
+ /* @__PURE__ */ t(x, { className: "h-7 w-[min(100%,12rem)]" }),
3766
+ /* @__PURE__ */ t(x, { className: "h-5 w-24 sm:h-6" })
3763
3767
  ] }),
3764
3768
  /* @__PURE__ */ t("div", { className: "space-y-2", children: (r === 0 ? [0, 1, 2, 3] : [0, 1, 2]).map((n) => /* @__PURE__ */ t(po, {}, n)) })
3765
3769
  ]
@@ -3808,7 +3812,7 @@ function wr({ blocks: e }) {
3808
3812
  ) : r.type === "list" ? /* @__PURE__ */ t(wo, { items: r.items }, a) : r.type === "table" ? /* @__PURE__ */ t(yo, { rows: r.rows }, a) : null;
3809
3813
  }) });
3810
3814
  }
3811
- 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" };
3815
+ 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
3816
  function No() {
3813
3817
  try {
3814
3818
  return "https://mc-api-production-api.salmonstone-a2c3cb0d.canadacentral.azurecontainerapps.io";
@@ -3818,7 +3822,7 @@ function No() {
3818
3822
  }
3819
3823
  const Co = No() ?? "", yr = (() => {
3820
3824
  try {
3821
- return Qe == null ? void 0 : Qe.VITE_METABOLIC_DASHBOARD_STUB_API_KEY;
3825
+ return qe == null ? void 0 : qe.VITE_METABOLIC_DASHBOARD_STUB_API_KEY;
3822
3826
  } catch {
3823
3827
  return;
3824
3828
  }
@@ -3826,15 +3830,15 @@ const Co = No() ?? "", yr = (() => {
3826
3830
  function Ao(e) {
3827
3831
  return e === yr;
3828
3832
  }
3829
- function Lo(e) {
3833
+ function To(e) {
3830
3834
  return e.replace(/\/+$/, "");
3831
3835
  }
3832
- function Be() {
3833
- return Lo(Co);
3836
+ function fe() {
3837
+ return To(Co);
3834
3838
  }
3835
- function Ce(e) {
3839
+ function Te(e) {
3836
3840
  if (!e || /^https?:\/\//i.test(e)) return e;
3837
- const r = Be();
3841
+ const r = fe();
3838
3842
  return r ? `${r}${e.startsWith("/") ? e : `/${e}`}` : e;
3839
3843
  }
3840
3844
  function Yt({ variant: e }) {
@@ -3843,7 +3847,7 @@ function Yt({ variant: e }) {
3843
3847
  /* @__PURE__ */ t(
3844
3848
  "img",
3845
3849
  {
3846
- src: Ce(e.triad_image_url),
3850
+ src: Te(e.triad_image_url),
3847
3851
  alt: "",
3848
3852
  className: "size-10 shrink-0 object-contain"
3849
3853
  }
@@ -3868,7 +3872,7 @@ function Yt({ variant: e }) {
3868
3872
  /* @__PURE__ */ t(wr, { blocks: e.blocks })
3869
3873
  ] });
3870
3874
  }
3871
- function To({
3875
+ function Lo({
3872
3876
  urinary: e,
3873
3877
  salivary: r
3874
3878
  }) {
@@ -3885,7 +3889,7 @@ const Po = [
3885
3889
  { color: "#e09a1a", position: 50 },
3886
3890
  { color: "#d94040", position: 100 }
3887
3891
  ], 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 Ke({ label: e, value: r }) {
3892
+ function Je({ label: e, value: r }) {
3889
3893
  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
3894
  /* @__PURE__ */ t("span", { className: So, children: e }),
3891
3895
  /* @__PURE__ */ t("span", { className: Mo, children: r })
@@ -3896,9 +3900,9 @@ function Ho({ patient: e }) {
3896
3900
  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
3901
  /* @__PURE__ */ t("h2", { className: "mb-3 text-sm font-bold uppercase tracking-wide text-[color:var(--mb-color-text)]", children: e.organDisplayName }),
3898
3902
  /* @__PURE__ */ l("div", { children: [
3899
- /* @__PURE__ */ t(Ke, { label: "Symptom Score", value: e.symptomScore }),
3900
- /* @__PURE__ */ t(Ke, { label: "Lab Score", value: e.labScore }),
3901
- /* @__PURE__ */ t(Ke, { label: "Total", value: e.totalScore })
3903
+ /* @__PURE__ */ t(Je, { label: "Symptom Score", value: e.symptomScore }),
3904
+ /* @__PURE__ */ t(Je, { label: "Lab Score", value: e.labScore }),
3905
+ /* @__PURE__ */ t(Je, { label: "Total", value: e.totalScore })
3902
3906
  ] }),
3903
3907
  /* @__PURE__ */ l("div", { className: "mt-4", children: [
3904
3908
  /* @__PURE__ */ t(or, { stops: Po, indicatorPercent: r }),
@@ -3916,7 +3920,7 @@ function ko({ stage: e }) {
3916
3920
  /* @__PURE__ */ t(
3917
3921
  "img",
3918
3922
  {
3919
- src: Ce(e.image_url),
3923
+ src: Te(e.image_url),
3920
3924
  alt: "",
3921
3925
  className: "size-12 shrink-0 object-contain"
3922
3926
  }
@@ -3948,7 +3952,7 @@ function Bo({
3948
3952
  organUrl: r,
3949
3953
  organDisplayName: n
3950
3954
  }) {
3951
- const a = Ce(e), o = Ce(r), i = a === o;
3955
+ const a = Te(e), o = Te(r), i = a === o;
3952
3956
  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
3957
  /* @__PURE__ */ t(
3954
3958
  "img",
@@ -4013,7 +4017,7 @@ function Do({
4013
4017
  /* @__PURE__ */ t(jo, { stages: r.stages })
4014
4018
  ] }) : null,
4015
4019
  a ? /* @__PURE__ */ t(
4016
- To,
4020
+ Lo,
4017
4021
  {
4018
4022
  urinary: a.urinary,
4019
4023
  salivary: a.salivary
@@ -4021,7 +4025,7 @@ function Do({
4021
4025
  ) : null
4022
4026
  ] });
4023
4027
  }
4024
- function Is({
4028
+ function zs({
4025
4029
  content: e
4026
4030
  }) {
4027
4031
  const { pageHeader: r, sections: n } = e, a = n ?? [];
@@ -4043,16 +4047,16 @@ function zo({
4043
4047
  }) {
4044
4048
  return /* @__PURE__ */ l(K, { children: [
4045
4049
  /* @__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(L, { className: "flex flex-col", children: [
4050
+ /* @__PURE__ */ t("div", { className: "space-y-6", children: [0, 1, 2].map((r) => /* @__PURE__ */ l(T, { className: "flex flex-col", children: [
4047
4051
  /* @__PURE__ */ l("div", { className: "mb-6 flex flex-wrap items-center justify-between gap-3", children: [
4048
4052
  /* @__PURE__ */ l("div", { className: "flex min-w-0 flex-1 items-center gap-2", children: [
4049
- /* @__PURE__ */ t(p, { className: "h-9 w-9 shrink-0 rounded-md" }),
4050
- /* @__PURE__ */ t(p, { className: "h-7 w-[min(100%,18rem)]" })
4053
+ /* @__PURE__ */ t(x, { className: "h-9 w-9 shrink-0 rounded-md" }),
4054
+ /* @__PURE__ */ t(x, { className: "h-7 w-[min(100%,18rem)]" })
4051
4055
  ] }),
4052
- /* @__PURE__ */ t(p, { className: "h-9 w-14" })
4056
+ /* @__PURE__ */ t(x, { className: "h-9 w-14" })
4053
4057
  ] }),
4054
4058
  /* @__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
- ke,
4059
+ Be,
4056
4060
  {
4057
4061
  variant: "questionnaire",
4058
4062
  title: n
@@ -4069,7 +4073,7 @@ function Oo(e) {
4069
4073
  r.push(e.slice(n, n + Xt));
4070
4074
  return r;
4071
4075
  }
4072
- function Ds({ content: e }) {
4076
+ function Os({ content: e }) {
4073
4077
  var S;
4074
4078
  if (!e) return null;
4075
4079
  const {
@@ -4081,44 +4085,44 @@ function Ds({ content: e }) {
4081
4085
  symptoms: s,
4082
4086
  productsSectionTitle: c,
4083
4087
  products: d
4084
- } = e, m = !!(n && (n.heading || (S = n.paragraphs) != null && S.length)), u = o ?? [], x = s ?? [], v = d ?? [], b = u.length > 0, g = x.length > 0, h = v.length > 0, f = m || b || g || h, C = (n == null ? void 0 : n.triadNumber) != null && n ? [
4088
+ } = 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
4089
  {
4086
4090
  triadNumber: n.triadNumber,
4087
4091
  name: `Triad ${n.triadNumber}`,
4088
4092
  aggregateScoreDisplay: String(n.triadNumber)
4089
4093
  }
4090
- ] : [], [N, w] = H(0), P = Math.min(N, Math.max(0, C.length - 1)), A = g || h || b;
4094
+ ] : [], [N, w] = H(0), P = Math.min(N, Math.max(0, C.length - 1)), A = h || f || u;
4091
4095
  return /* @__PURE__ */ l("div", { className: "mx-auto w-full min-w-0 space-y-6", children: [
4092
4096
  /* @__PURE__ */ t(I, { title: r.title, subtitle: r.subtitle }),
4093
4097
  C.length > 0 ? /* @__PURE__ */ t(
4094
- mt,
4098
+ ut,
4095
4099
  {
4096
4100
  triads: C,
4097
4101
  selectedIndex: P,
4098
4102
  onSelectIndex: w
4099
4103
  }
4100
4104
  ) : null,
4101
- f ? /* @__PURE__ */ t(L, { className: "min-w-0", children: /* @__PURE__ */ l("div", { className: "space-y-6", children: [
4105
+ p ? /* @__PURE__ */ t(T, { className: "min-w-0", children: /* @__PURE__ */ l("div", { className: "space-y-6", children: [
4102
4106
  m && n ? /* @__PURE__ */ t(hr, { ...n, embeddedInCard: !0 }) : null,
4103
4107
  m && A ? /* @__PURE__ */ t("div", { className: "border-t border-[color:var(--mb-color-card-border)]" }) : null,
4104
- g ? /* @__PURE__ */ l("div", { className: "space-y-5", children: [
4108
+ h ? /* @__PURE__ */ l("div", { className: "space-y-5", children: [
4105
4109
  /* @__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(x).map((T) => /* @__PURE__ */ t(
4110
+ /* @__PURE__ */ t("div", { className: "space-y-0", children: Oo(g).map((L) => /* @__PURE__ */ t(
4107
4111
  "div",
4108
4112
  {
4109
4113
  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: T.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 }) }),
4114
+ children: L.map((z) => /* @__PURE__ */ l("div", { className: "flex min-h-10 items-center gap-3", children: [
4115
+ /* @__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
4116
  /* @__PURE__ */ t("span", { className: "text-sm leading-5 text-[color:var(--mb-color-text)]", children: z })
4113
4117
  ] }, z))
4114
4118
  },
4115
- T[0]
4119
+ L[0]
4116
4120
  )) })
4117
4121
  ] }) : null,
4118
- g && (h || b) ? /* @__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: [
4122
+ h && (f || u) ? /* @__PURE__ */ t("div", { className: "border-t border-[color:var(--mb-color-card-border)]" }) : null,
4123
+ 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
4124
  /* @__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((T) => /* @__PURE__ */ l(
4125
+ /* @__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(
4122
4126
  "div",
4123
4127
  {
4124
4128
  className: "flex min-w-0 w-full flex-col items-center",
@@ -4126,30 +4130,30 @@ function Ds({ content: e }) {
4126
4130
  /* @__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
4131
  "img",
4128
4132
  {
4129
- src: T.imageSrc ?? pr,
4130
- alt: T.imageAlt,
4133
+ src: L.imageSrc ?? pr,
4134
+ alt: L.imageAlt,
4131
4135
  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
4136
  width: 320,
4133
4137
  height: 320
4134
4138
  }
4135
4139
  ) }),
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: T.name }),
4137
- 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
4140
+ /* @__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 }),
4141
+ 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
4138
4142
  ]
4139
4143
  },
4140
- T.name
4144
+ L.name
4141
4145
  )) })
4142
4146
  ] }) : null,
4143
- h && b ? /* @__PURE__ */ t("div", { className: "border-t border-[color:var(--mb-color-card-border)]" }) : null,
4144
- b ? /* @__PURE__ */ l("div", { className: "space-y-5", children: [
4147
+ f && u ? /* @__PURE__ */ t("div", { className: "border-t border-[color:var(--mb-color-card-border)]" }) : null,
4148
+ u ? /* @__PURE__ */ l("div", { className: "space-y-5", children: [
4145
4149
  /* @__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: u.map((T) => /* @__PURE__ */ t(
4147
- ae,
4150
+ /* @__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(
4151
+ ne,
4148
4152
  {
4149
4153
  layout: "labResults",
4150
- category: T
4154
+ category: L
4151
4155
  },
4152
- T.title
4156
+ L.title
4153
4157
  )) })
4154
4158
  ] }) : null
4155
4159
  ] }) }) : null
@@ -4172,56 +4176,56 @@ function Go({
4172
4176
  {
4173
4177
  className: "flex min-w-[9rem] flex-1 flex-col items-center gap-3 px-5 py-4",
4174
4178
  children: [
4175
- /* @__PURE__ */ t(p, { className: "size-26 shrink-0 rounded-full" }),
4176
- /* @__PURE__ */ t(p, { className: "h-3 w-16" }),
4177
- /* @__PURE__ */ t(p, { className: "h-8 w-10" })
4179
+ /* @__PURE__ */ t(x, { className: "size-26 shrink-0 rounded-full" }),
4180
+ /* @__PURE__ */ t(x, { className: "h-3 w-16" }),
4181
+ /* @__PURE__ */ t(x, { className: "h-8 w-10" })
4178
4182
  ]
4179
4183
  },
4180
4184
  n
4181
4185
  ))
4182
4186
  }
4183
4187
  ),
4184
- /* @__PURE__ */ t(L, { className: "min-w-0", children: /* @__PURE__ */ l("div", { className: "space-y-6", children: [
4188
+ /* @__PURE__ */ t(T, { className: "min-w-0", children: /* @__PURE__ */ l("div", { className: "space-y-6", children: [
4185
4189
  /* @__PURE__ */ l("div", { className: "grid min-w-0 grid-cols-1 gap-6 xl:grid-cols-2 xl:items-stretch", children: [
4186
4190
  /* @__PURE__ */ l("div", { className: "min-w-0 space-y-4", children: [
4187
4191
  /* @__PURE__ */ l("div", { className: "flex items-center gap-2", children: [
4188
- /* @__PURE__ */ t(p, { className: "h-9 w-9 shrink-0 rounded-md" }),
4189
- /* @__PURE__ */ t(p, { className: "h-7 w-[min(100%,14rem)]" })
4192
+ /* @__PURE__ */ t(x, { className: "h-9 w-9 shrink-0 rounded-md" }),
4193
+ /* @__PURE__ */ t(x, { className: "h-7 w-[min(100%,14rem)]" })
4190
4194
  ] }),
4191
4195
  /* @__PURE__ */ l("div", { className: "space-y-3", children: [
4192
- /* @__PURE__ */ t(p, { className: "h-3.5 w-full" }),
4193
- /* @__PURE__ */ t(p, { className: "h-3.5 w-full" }),
4194
- /* @__PURE__ */ t(p, { className: "h-3.5 w-[90%]" })
4196
+ /* @__PURE__ */ t(x, { className: "h-3.5 w-full" }),
4197
+ /* @__PURE__ */ t(x, { className: "h-3.5 w-full" }),
4198
+ /* @__PURE__ */ t(x, { className: "h-3.5 w-[90%]" })
4195
4199
  ] })
4196
4200
  ] }),
4197
- /* @__PURE__ */ t("div", { className: "flex min-w-0 items-center", children: /* @__PURE__ */ t(p, { className: "aspect-video w-full rounded-lg" }) })
4201
+ /* @__PURE__ */ t("div", { className: "flex min-w-0 items-center", children: /* @__PURE__ */ t(x, { className: "aspect-video w-full rounded-lg" }) })
4198
4202
  ] }),
4199
4203
  /* @__PURE__ */ t("div", { className: "border-t border-[color:var(--mb-color-card-border)]" }),
4200
4204
  /* @__PURE__ */ l("div", { className: "space-y-5", children: [
4201
- /* @__PURE__ */ t(p, { className: "h-7 w-32" }),
4205
+ /* @__PURE__ */ t(x, { className: "h-7 w-32" }),
4202
4206
  /* @__PURE__ */ t("div", { className: "space-y-0", children: [0, 1, 2].map((r) => /* @__PURE__ */ t(
4203
4207
  "div",
4204
4208
  {
4205
4209
  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",
4206
- children: [0, 1, 2].map((n) => /* @__PURE__ */ t(p, { className: "h-10 w-full" }, n))
4210
+ children: [0, 1, 2].map((n) => /* @__PURE__ */ t(x, { className: "h-10 w-full" }, n))
4207
4211
  },
4208
4212
  r
4209
4213
  )) })
4210
4214
  ] }),
4211
4215
  /* @__PURE__ */ t("div", { className: "border-t border-[color:var(--mb-color-card-border)]" }),
4212
4216
  /* @__PURE__ */ l("div", { className: "space-y-5", children: [
4213
- /* @__PURE__ */ t(p, { className: "h-7 w-[min(100%,14rem)]" }),
4214
- /* @__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: [0, 1, 2].map((r) => /* @__PURE__ */ t("div", { className: "flex min-w-0 w-full flex-col items-center", children: /* @__PURE__ */ t(p, { className: "aspect-[4/5] w-full max-w-[11rem] rounded-lg sm:max-w-[13rem] md:aspect-auto md:h-[320px] md:max-w-none" }) }, r)) })
4217
+ /* @__PURE__ */ t(x, { className: "h-7 w-[min(100%,14rem)]" }),
4218
+ /* @__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: [0, 1, 2].map((r) => /* @__PURE__ */ t("div", { className: "flex min-w-0 w-full flex-col items-center", children: /* @__PURE__ */ t(x, { className: "aspect-[4/5] w-full max-w-[11rem] rounded-lg sm:max-w-[13rem] md:aspect-auto md:h-[320px] md:max-w-none" }) }, r)) })
4215
4219
  ] }),
4216
4220
  /* @__PURE__ */ t("div", { className: "border-t border-[color:var(--mb-color-card-border)]" }),
4217
4221
  /* @__PURE__ */ l("div", { className: "space-y-5", children: [
4218
- /* @__PURE__ */ t(p, { 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(ke, { variant: "labResults", title: r }, r)) })
4222
+ /* @__PURE__ */ t(x, { className: "h-7 w-[min(100%,18rem)]" }),
4223
+ /* @__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
4224
  ] })
4221
4225
  ] }) })
4222
4226
  ] });
4223
4227
  }
4224
- function Rs({ content: e }) {
4228
+ function Es({ content: e }) {
4225
4229
  if (!e) return null;
4226
4230
  const { pageHeader: r, practitionerNotes: n, cards: a } = e, o = a && a.length > 0;
4227
4231
  return /* @__PURE__ */ l("div", { className: "mx-auto w-full min-w-0 space-y-6", children: [
@@ -4235,35 +4239,35 @@ function Yo({
4235
4239
  }) {
4236
4240
  return /* @__PURE__ */ l(K, { children: [
4237
4241
  /* @__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(L, { children: /* @__PURE__ */ l("div", { className: "flex flex-col gap-4 sm:flex-row", children: [
4239
- /* @__PURE__ */ t(p, { className: "mx-auto h-32 w-32 shrink-0 rounded-lg sm:mx-0" }),
4242
+ /* @__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: [
4243
+ /* @__PURE__ */ t(x, { className: "mx-auto h-32 w-32 shrink-0 rounded-lg sm:mx-0" }),
4240
4244
  /* @__PURE__ */ l("div", { className: "min-w-0 flex-1 space-y-3", children: [
4241
- /* @__PURE__ */ t(p, { className: "h-6 w-3/4" }),
4245
+ /* @__PURE__ */ t(x, { className: "h-6 w-3/4" }),
4242
4246
  /* @__PURE__ */ t("div", { className: "space-y-2", children: [0, 1, 2, 3, 4].map((n) => /* @__PURE__ */ l(
4243
4247
  "div",
4244
4248
  {
4245
4249
  className: "flex items-center justify-between gap-3 border-b border-[color:var(--mb-color-card-border)] py-2 last:border-b-0",
4246
4250
  children: [
4247
4251
  /* @__PURE__ */ t("span", { className: "text-sm text-[color:var(--mb-color-text)]", children: ["Morning (AM)", "Noon", "Afternoon", "Dinner (PM)", "Bedtime"][n] }),
4248
- /* @__PURE__ */ t(p, { className: "h-4 w-24 shrink-0" })
4252
+ /* @__PURE__ */ t(x, { className: "h-4 w-24 shrink-0" })
4249
4253
  ]
4250
4254
  },
4251
4255
  n
4252
4256
  )) })
4253
4257
  ] })
4254
4258
  ] }) }, r)) }),
4255
- /* @__PURE__ */ l(L, { children: [
4259
+ /* @__PURE__ */ l(T, { children: [
4256
4260
  /* @__PURE__ */ t("h2", { className: "text-xl font-bold text-[color:var(--mb-color-text)]", children: "Practitioner Notes" }),
4257
4261
  /* @__PURE__ */ l("div", { className: "mt-4 space-y-3", children: [
4258
- /* @__PURE__ */ t(p, { className: "h-3.5 w-full" }),
4259
- /* @__PURE__ */ t(p, { className: "h-3.5 w-full" }),
4260
- /* @__PURE__ */ t(p, { className: "h-3.5 w-[88%]" })
4262
+ /* @__PURE__ */ t(x, { className: "h-3.5 w-full" }),
4263
+ /* @__PURE__ */ t(x, { className: "h-3.5 w-full" }),
4264
+ /* @__PURE__ */ t(x, { className: "h-3.5 w-[88%]" })
4261
4265
  ] })
4262
4266
  ] })
4263
4267
  ] });
4264
4268
  }
4265
4269
  function Xo(e, r) {
4266
- const n = Me(r.totalScore), a = n == null ? void 0 : Math.max(0, Math.min(100, n)), o = r.title.toLowerCase().replace(/(^|\s)\S/g, (i) => i.toUpperCase());
4270
+ const n = ke(r.totalScore), a = n == null ? void 0 : Math.max(0, Math.min(100, n)), o = r.title.toLowerCase().replace(/(^|\s)\S/g, (i) => i.toUpperCase());
4267
4271
  return {
4268
4272
  triadHeading: `${e.heading.split(":")[0]}: ${o}`,
4269
4273
  organDisplayName: o,
@@ -4274,21 +4278,21 @@ function Xo(e, r) {
4274
4278
  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
4279
  };
4276
4280
  }
4277
- function zs({ content: e }) {
4281
+ function Fs({ content: e }) {
4278
4282
  const { pageHeader: r, triadCards: n, organContent: a, cortisolContent: o } = e, i = n ?? [], [s, c] = H(null), d = j(
4279
- () => (m) => (u) => {
4280
- u.organKey && a != null && a[u.organKey] && c({ triadCard: m, category: u });
4283
+ () => (m) => (b) => {
4284
+ b.organKey && a != null && a[b.organKey] && c({ triadCard: m, category: b });
4281
4285
  },
4282
4286
  [a]
4283
4287
  );
4284
4288
  if (s && (a != null && a[s.category.organKey ?? ""])) {
4285
- const m = s.category.organKey, u = m ? a[m] : void 0;
4286
- if (u)
4289
+ const m = s.category.organKey, b = m ? a[m] : void 0;
4290
+ if (b)
4287
4291
  return /* @__PURE__ */ t(
4288
4292
  Do,
4289
4293
  {
4290
4294
  patient: Xo(s.triadCard, s.category),
4291
- content: u,
4295
+ content: b,
4292
4296
  onBack: () => c(null),
4293
4297
  cortisolContent: m === "adrenal" ? o : void 0
4294
4298
  }
@@ -4312,16 +4316,16 @@ function Zo({
4312
4316
  }) {
4313
4317
  return /* @__PURE__ */ l(K, { children: [
4314
4318
  /* @__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(L, { className: "flex flex-col", children: [
4319
+ /* @__PURE__ */ t("div", { className: "space-y-6", children: [0, 1, 2].map((r) => /* @__PURE__ */ l(T, { className: "flex flex-col", children: [
4316
4320
  /* @__PURE__ */ l("div", { className: "mb-6 flex flex-wrap items-center justify-between gap-3", children: [
4317
4321
  /* @__PURE__ */ l("div", { className: "flex min-w-0 flex-1 items-center gap-2", children: [
4318
- /* @__PURE__ */ t(p, { className: "h-9 w-9 shrink-0 rounded-md" }),
4319
- /* @__PURE__ */ t(p, { className: "h-7 w-[min(100%,16rem)]" })
4322
+ /* @__PURE__ */ t(x, { className: "h-9 w-9 shrink-0 rounded-md" }),
4323
+ /* @__PURE__ */ t(x, { className: "h-7 w-[min(100%,16rem)]" })
4320
4324
  ] }),
4321
- /* @__PURE__ */ t(p, { className: "h-9 w-16" })
4325
+ /* @__PURE__ */ t(x, { className: "h-9 w-16" })
4322
4326
  ] }),
4323
4327
  /* @__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
- ke,
4328
+ Be,
4325
4329
  {
4326
4330
  variant: "triadResiliency",
4327
4331
  title: n
@@ -4355,11 +4359,11 @@ function Qo(e) {
4355
4359
  rows: r.get(n) ?? []
4356
4360
  })).filter((n) => n.rows.length > 0);
4357
4361
  }
4358
- function Os({ content: e }) {
4362
+ function Gs({ content: e }) {
4359
4363
  const { pageHeader: r, indicators: n } = e, o = Qo(n ?? []);
4360
4364
  return /* @__PURE__ */ l("div", { className: "mx-auto w-full min-w-0 space-y-6", children: [
4361
4365
  /* @__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(L, { className: "min-w-0", children: [
4366
+ /* @__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: [
4363
4367
  /* @__PURE__ */ t("h2", { className: "mb-4 m-0 text-lg font-bold text-[color:var(--mb-color-text)]", children: s }),
4364
4368
  /* @__PURE__ */ t("div", { className: "space-y-2", children: c.map((d) => /* @__PURE__ */ t(
4365
4369
  le,
@@ -4381,14 +4385,14 @@ const Ko = [
4381
4385
  function qo() {
4382
4386
  return /* @__PURE__ */ l("div", { className: "flex min-h-[4.5rem] 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)] xl:flex-row xl:items-stretch", children: [
4383
4387
  /* @__PURE__ */ l("div", { className: "flex min-w-0 items-center gap-2 px-3 py-2 xl:w-[10rem] xl:shrink-0", children: [
4384
- /* @__PURE__ */ t(p, { className: "size-8 shrink-0 rounded-md" }),
4385
- /* @__PURE__ */ t(p, { className: "h-4 min-w-0 flex-1 max-w-[10rem]" })
4388
+ /* @__PURE__ */ t(x, { className: "size-8 shrink-0 rounded-md" }),
4389
+ /* @__PURE__ */ t(x, { className: "h-4 min-w-0 flex-1 max-w-[10rem]" })
4386
4390
  ] }),
4387
4391
  /* @__PURE__ */ t("div", { className: "grid min-w-0 flex-1 grid-cols-1 gap-y-2 border-t border-[color:var(--mb-color-card-border)] px-3 py-2 sm:grid-cols-2 sm:gap-x-3 xl:border-t-0 xl:py-2 xl:px-10", children: [0, 1].map((e) => /* @__PURE__ */ l("div", { className: "flex min-w-0 items-center gap-2", children: [
4388
- /* @__PURE__ */ t(p, { className: "h-3 w-24 shrink-0" }),
4389
- /* @__PURE__ */ t(p, { className: "h-6 w-14 shrink-0 rounded-md" })
4392
+ /* @__PURE__ */ t(x, { className: "h-3 w-24 shrink-0" }),
4393
+ /* @__PURE__ */ t(x, { className: "h-6 w-14 shrink-0 rounded-md" })
4390
4394
  ] }, e)) }),
4391
- /* @__PURE__ */ t("div", { className: "flex min-h-[3rem] border-t border-[color:var(--mb-color-card-border)] xl:w-[7rem] xl:shrink-0 xl:border-l xl:border-t-0", children: /* @__PURE__ */ t(p, { className: "m-auto h-9 w-[5.5rem] rounded-md" }) })
4395
+ /* @__PURE__ */ t("div", { className: "flex min-h-[3rem] border-t border-[color:var(--mb-color-card-border)] xl:w-[7rem] xl:shrink-0 xl:border-l xl:border-t-0", children: /* @__PURE__ */ t(x, { className: "m-auto h-9 w-[5.5rem] rounded-md" }) })
4392
4396
  ] });
4393
4397
  }
4394
4398
  function Jo({
@@ -4396,8 +4400,8 @@ function Jo({
4396
4400
  }) {
4397
4401
  return /* @__PURE__ */ l(K, { children: [
4398
4402
  /* @__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(L, { className: "min-w-0", children: [
4400
- /* @__PURE__ */ t(p, { className: "mb-4 h-6 w-28 rounded-md" }),
4403
+ /* @__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: [
4404
+ /* @__PURE__ */ t(x, { className: "mb-4 h-6 w-28 rounded-md" }),
4401
4405
  /* @__PURE__ */ t("div", { className: "space-y-2", children: Array.from({ length: n }, (a, o) => /* @__PURE__ */ t(qo, {}, `${r}-${o}`)) })
4402
4406
  ] }, r)) })
4403
4407
  ] });
@@ -4440,7 +4444,7 @@ function rl(e) {
4440
4444
  if (r)
4441
4445
  return tl(r) ?? void 0;
4442
4446
  }
4443
- function Es(e, r) {
4447
+ function Ys(e, r) {
4444
4448
  const n = encodeURIComponent(el(r)), a = e.includes("?") ? "&" : "?";
4445
4449
  return `${e}${a}${Nr}=${n}`;
4446
4450
  }
@@ -4462,7 +4466,7 @@ function ol(e) {
4462
4466
  patientFullName: Zt(e, al)
4463
4467
  };
4464
4468
  }
4465
- function Fs(e, r) {
4469
+ function Xs(e, r) {
4466
4470
  const n = new URLSearchParams();
4467
4471
  r.patientId && n.set("patientId", r.patientId), r.patientFullName && n.set("patientFullName", r.patientFullName);
4468
4472
  const a = n.toString();
@@ -4470,13 +4474,13 @@ function Fs(e, r) {
4470
4474
  const o = e.includes("?") ? "&" : "?";
4471
4475
  return `${e}${o}${a}`;
4472
4476
  }
4473
- function Gs() {
4477
+ function Vs() {
4474
4478
  window.dispatchEvent(new CustomEvent("metabolic:logout")), window.parent !== window && window.parent.postMessage({ type: "metabolic:logout" }, "*");
4475
4479
  }
4476
4480
  function ll(e, r) {
4477
4481
  return r.length === 0 ? !1 : r.some((n) => n === e);
4478
4482
  }
4479
- function Ys(e, r, n) {
4483
+ function Zs(e, r, n) {
4480
4484
  var a;
4481
4485
  (a = e.contentWindow) == null || a.postMessage(
4482
4486
  {
@@ -4487,7 +4491,7 @@ function Ys(e, r, n) {
4487
4491
  );
4488
4492
  }
4489
4493
  const W = "h-5 w-5 shrink-0";
4490
- function ut() {
4494
+ function bt() {
4491
4495
  return /* @__PURE__ */ l(
4492
4496
  "svg",
4493
4497
  {
@@ -4571,7 +4575,7 @@ function cl() {
4571
4575
  }
4572
4576
  );
4573
4577
  }
4574
- function Xs() {
4578
+ function Ws() {
4575
4579
  return /* @__PURE__ */ l(
4576
4580
  "svg",
4577
4581
  {
@@ -4760,38 +4764,38 @@ async function U(e, r) {
4760
4764
  let d;
4761
4765
  try {
4762
4766
  d = await i(c, { method: "GET", headers: o, signal: s });
4763
- } catch (x) {
4764
- throw Wt(x) ? x : new Error(
4765
- `Network error fetching page "${e}": ${x instanceof Error ? x.message : String(x)}`,
4766
- { cause: x }
4767
+ } catch (g) {
4768
+ throw Wt(g) ? g : new Error(
4769
+ `Network error fetching page "${e}": ${g instanceof Error ? g.message : String(g)}`,
4770
+ { cause: g }
4767
4771
  );
4768
4772
  }
4769
4773
  let m;
4770
4774
  try {
4771
4775
  m = await d.text();
4772
- } catch (x) {
4773
- throw Wt(x) ? x : new Error(
4774
- `Failed to read response body for page "${e}" (HTTP ${d.status}): ${x instanceof Error ? x.message : String(x)}`,
4775
- { cause: x }
4776
+ } catch (g) {
4777
+ throw Wt(g) ? g : new Error(
4778
+ `Failed to read response body for page "${e}" (HTTP ${d.status}): ${g instanceof Error ? g.message : String(g)}`,
4779
+ { cause: g }
4776
4780
  );
4777
4781
  }
4778
- let u;
4782
+ let b;
4779
4783
  try {
4780
- u = m ? JSON.parse(m) : null;
4784
+ b = m ? JSON.parse(m) : null;
4781
4785
  } catch {
4782
- u = m;
4786
+ b = m;
4783
4787
  }
4784
4788
  if (!d.ok) {
4785
- const v = (typeof u == "object" && u !== null && "error" in u && typeof u.error == "string" ? u.error : null) ?? `HTTP ${d.status}`, b = new Error(v);
4786
- throw b.status = d.status, b;
4789
+ const v = (typeof b == "object" && b !== null && "error" in b && typeof b.error == "string" ? b.error : null) ?? `HTTP ${d.status}`, u = new Error(v);
4790
+ throw u.status = d.status, u;
4787
4791
  }
4788
- if (u === null || typeof u != "object" || Array.isArray(u))
4792
+ if (b === null || typeof b != "object" || Array.isArray(b))
4789
4793
  throw new Error(
4790
- `Unexpected response shape for page "${e}": expected a JSON object, got ${u === null ? "null" : Array.isArray(u) ? "array" : typeof u}`
4794
+ `Unexpected response shape for page "${e}": expected a JSON object, got ${b === null ? "null" : Array.isArray(b) ? "array" : typeof b}`
4791
4795
  );
4792
- return u;
4796
+ return b;
4793
4797
  }
4794
- 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.", 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"), Ll = () => import("./suggestedProducts-DJlYkHhQ.js"), Tl = () => import("./labAnalysis-CaOCpV2g.js"), Pl = () => import("./alertLabSummary-BAIlZ2_U.js"), Sl = Q(
4798
+ 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(
4795
4799
  () => vl().then((e) => ({ default: e.DashboardTab }))
4796
4800
  ), Ml = Q(
4797
4801
  () => wl().then((e) => ({ default: e.TotalPredictiveIndexTab }))
@@ -4806,13 +4810,13 @@ const Ar = "Your metabolic overview brings together triad priorities, key metric
4806
4810
  ), Bl = Q(
4807
4811
  () => Al().then((e) => ({ default: e.LabResultsTab }))
4808
4812
  ), Il = Q(
4809
- () => Ll().then((e) => ({ default: e.SuggestedProductsTab }))
4813
+ () => Tl().then((e) => ({ default: e.SuggestedProductsTab }))
4810
4814
  ), Dl = Q(
4811
- () => Tl().then((e) => ({ default: e.LabAnalysisTab }))
4815
+ () => Ll().then((e) => ({ default: e.LabAnalysisTab }))
4812
4816
  ), Rl = Q(
4813
4817
  () => Pl().then((e) => ({ default: e.AlertLabSummaryTab }))
4814
4818
  );
4815
- const Ie = [
4819
+ const De = [
4816
4820
  {
4817
4821
  id: "dashboard",
4818
4822
  sideMenuLabel: "Dashboard",
@@ -4826,7 +4830,7 @@ const Ie = [
4826
4830
  createHttpFetcher: (e, r) => (n) => e(n, async () => {
4827
4831
  const [a, { mapDashboardPageDtoToTabContent: o }] = await Promise.all([
4828
4832
  U("dashboard", r(n)),
4829
- Promise.resolve().then(() => ui)
4833
+ Promise.resolve().then(() => bi)
4830
4834
  ]);
4831
4835
  return o(a);
4832
4836
  })
@@ -4837,14 +4841,14 @@ const Ie = [
4837
4841
  icon: /* @__PURE__ */ t(dl, {}),
4838
4842
  pageHeader: {
4839
4843
  title: "Total Predictive Trends",
4840
- subtitle: Lr
4844
+ subtitle: Tr
4841
4845
  },
4842
4846
  Tab: Ml,
4843
4847
  Skeleton: Zo,
4844
4848
  createHttpFetcher: (e, r) => (n) => e(n, async () => {
4845
4849
  const [a, { mapTotalPredictiveIndexDtoToTabContent: o }] = await Promise.all([
4846
4850
  U("total-predictive-index", r(n)),
4847
- Promise.resolve().then(() => Ni)
4851
+ Promise.resolve().then(() => Ti)
4848
4852
  ]);
4849
4853
  return o(a);
4850
4854
  })
@@ -4855,14 +4859,14 @@ const Ie = [
4855
4859
  icon: /* @__PURE__ */ t(hl, {}),
4856
4860
  pageHeader: {
4857
4861
  title: "Wellness Indicators",
4858
- subtitle: Tr
4862
+ subtitle: Lr
4859
4863
  },
4860
4864
  Tab: Hl,
4861
4865
  Skeleton: Jo,
4862
4866
  createHttpFetcher: (e, r) => (n) => e(n, async () => {
4863
4867
  const [a, { mapWellnessIndicatorsDtoToTabContent: o }] = await Promise.all([
4864
4868
  U("wellness-indicators", r(n)),
4865
- Promise.resolve().then(() => Ti)
4869
+ Promise.resolve().then(() => Mi)
4866
4870
  ]);
4867
4871
  return o(a);
4868
4872
  })
@@ -4880,7 +4884,7 @@ const Ie = [
4880
4884
  createHttpFetcher: (e, r) => (n) => e(n, async () => {
4881
4885
  const [a, { mapLabResultsDtoToTabContent: o }] = await Promise.all([
4882
4886
  U("lab-results", r(n)),
4883
- Promise.resolve().then(() => gi)
4887
+ Promise.resolve().then(() => xi)
4884
4888
  ]);
4885
4889
  return o(a);
4886
4890
  })
@@ -4898,7 +4902,7 @@ const Ie = [
4898
4902
  createHttpFetcher: (e, r) => (n) => e(n, async () => {
4899
4903
  const [a, { mapLabAnalysisDtoToTabContent: o }] = await Promise.all([
4900
4904
  U("lab-analysis", r(n)),
4901
- Promise.resolve().then(() => bi)
4905
+ Promise.resolve().then(() => hi)
4902
4906
  ]);
4903
4907
  return o(a);
4904
4908
  })
@@ -4906,7 +4910,7 @@ const Ie = [
4906
4910
  {
4907
4911
  id: "alert-lab-summary",
4908
4912
  sideMenuLabel: "Lab Alerts Summary",
4909
- icon: /* @__PURE__ */ t(ut, {}),
4913
+ icon: /* @__PURE__ */ t(bt, {}),
4910
4914
  pageHeader: {
4911
4915
  title: "Lab Alerts Summary",
4912
4916
  subtitle: jr
@@ -4916,7 +4920,7 @@ const Ie = [
4916
4920
  createHttpFetcher: (e, r) => (n) => e(n, async () => {
4917
4921
  const [a, { mapAlertLabSummaryDtoToTabContent: o }] = await Promise.all([
4918
4922
  U("alert-lab-summary", r(n)),
4919
- Promise.resolve().then(() => $l)
4923
+ Promise.resolve().then(() => ti)
4920
4924
  ]);
4921
4925
  return o(a);
4922
4926
  })
@@ -4934,7 +4938,7 @@ const Ie = [
4934
4938
  createHttpFetcher: (e, r) => (n) => e(n, async () => {
4935
4939
  const [a, { mapQuestionnaireAnalysisDtoToTabContent: o }] = await Promise.all([
4936
4940
  U("questionnaire-analysis", r(n)),
4937
- Promise.resolve().then(() => pi)
4941
+ Promise.resolve().then(() => vi)
4938
4942
  ]);
4939
4943
  return o(a);
4940
4944
  })
@@ -4952,7 +4956,7 @@ const Ie = [
4952
4956
  createHttpFetcher: (e, r) => (n) => e(n, async () => {
4953
4957
  const [a, { mapSuggestedProductsDtoToTabContent: o }] = await Promise.all([
4954
4958
  U("suggested-products", r(n)),
4955
- Promise.resolve().then(() => xi)
4959
+ Promise.resolve().then(() => yi)
4956
4960
  ]);
4957
4961
  return o(a);
4958
4962
  })
@@ -4970,26 +4974,26 @@ const Ie = [
4970
4974
  createHttpFetcher: (e, r) => (n) => e(n, async () => {
4971
4975
  const [a, { mapSupplementScheduleDtoToTabContent: o }] = await Promise.all([
4972
4976
  U("supplement-schedule", r(n)),
4973
- Promise.resolve().then(() => vi)
4977
+ Promise.resolve().then(() => Ni)
4974
4978
  ]);
4975
4979
  return o(a);
4976
4980
  })
4977
4981
  }
4978
- ], Ae = Ie.map((e) => ({
4982
+ ], Le = De.map((e) => ({
4979
4983
  id: e.id,
4980
4984
  label: e.sideMenuLabel,
4981
4985
  icon: e.icon
4982
- })), bt = Object.fromEntries(
4983
- Ie.map((e) => [
4986
+ })), ht = Object.fromEntries(
4987
+ De.map((e) => [
4984
4988
  e.id,
4985
4989
  { Tab: e.Tab, Skeleton: e.Skeleton, pageHeader: e.pageHeader }
4986
4990
  ])
4987
4991
  );
4988
4992
  function zl(e) {
4989
- return bt[e].pageHeader;
4993
+ return ht[e].pageHeader;
4990
4994
  }
4991
4995
  function Ol(e, r) {
4992
- const n = Ie.map((a) => [a.id, a.createHttpFetcher(e, r)]);
4996
+ const n = De.map((a) => [a.id, a.createHttpFetcher(e, r)]);
4993
4997
  return Object.fromEntries(n);
4994
4998
  }
4995
4999
  function El({
@@ -5004,7 +5008,7 @@ function El({
5004
5008
  onPointerEnter: d,
5005
5009
  onFocus: m
5006
5010
  }) {
5007
- const u = nt(), x = !!(s && c), v = /* @__PURE__ */ l(
5011
+ const b = at(), g = !!(s && c), v = /* @__PURE__ */ l(
5008
5012
  M,
5009
5013
  {
5010
5014
  variant: "sideMenu",
@@ -5014,9 +5018,9 @@ function El({
5014
5018
  onPointerEnter: d,
5015
5019
  onFocus: m,
5016
5020
  "aria-current": n ? "page" : void 0,
5017
- "aria-describedby": x ? u : void 0,
5021
+ "aria-describedby": g ? b : void 0,
5018
5022
  "aria-label": e,
5019
- title: x ? void 0 : e,
5023
+ title: g ? void 0 : e,
5020
5024
  className: [
5021
5025
  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
5026
  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,12 +5041,12 @@ function El({
5037
5041
  ]
5038
5042
  }
5039
5043
  );
5040
- return x ? /* @__PURE__ */ l("span", { className: "group relative block outline-none", children: [
5044
+ return g ? /* @__PURE__ */ l("span", { className: "group relative block outline-none", children: [
5041
5045
  v,
5042
5046
  /* @__PURE__ */ t(
5043
5047
  "span",
5044
5048
  {
5045
- id: u,
5049
+ id: b,
5046
5050
  role: "tooltip",
5047
5051
  className: [
5048
5052
  "pointer-events-none absolute left-0 right-0 top-full z-50 mt-1 hidden max-w-full rounded-md border border-[color:var(--mb-color-card-border)] bg-[color:var(--mb-color-card-bg)] px-3 py-2 text-left text-xs font-medium leading-snug text-[color:var(--mb-color-text)] shadow-lg",
@@ -5059,31 +5063,31 @@ function Fl({
5059
5063
  footerContent: n,
5060
5064
  className: a = "",
5061
5065
  navClassName: o = "",
5062
- items: i = Ae,
5066
+ items: i = Le,
5063
5067
  activeItemId: s,
5064
5068
  defaultActiveItemId: c = "dashboard",
5065
5069
  onItemClick: d,
5066
5070
  onNavItemPrefetch: m
5067
5071
  }) {
5068
- const u = s !== void 0, [x, v] = H(c), b = s ?? x, g = B(
5072
+ const b = s !== void 0, [g, v] = H(c), u = s ?? g, h = B(
5069
5073
  (C) => {
5070
- d == null || d(C), u || v(C);
5074
+ d == null || d(C), b || v(C);
5071
5075
  },
5072
- [u, d]
5073
- ), h = !!r, f = e != null && (typeof e != "string" || e.trim().length > 0), y = h || f;
5076
+ [b, d]
5077
+ ), f = !!r, p = e != null && (typeof e != "string" || e.trim().length > 0), y = f || p;
5074
5078
  return /* @__PURE__ */ l(
5075
5079
  "div",
5076
5080
  {
5077
5081
  className: `mb-root flex h-full min-h-0 flex-col p-2 lg:p-[var(--mb-side-menu-inset,24px)] ${a}`.trim(),
5078
5082
  children: [
5079
5083
  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
- f ? /* @__PURE__ */ t(
5084
+ f ? /* @__PURE__ */ t("div", { className: "flex w-full shrink-0 justify-center lg:justify-start", children: r }) : null,
5085
+ p ? /* @__PURE__ */ t(
5082
5086
  "div",
5083
5087
  {
5084
5088
  className: [
5085
5089
  "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"
5090
+ f ? "text-center lg:pr-2 lg:text-left" : "hidden lg:block"
5087
5091
  ].join(" "),
5088
5092
  children: e
5089
5093
  }
@@ -5101,10 +5105,10 @@ function Fl({
5101
5105
  {
5102
5106
  label: C.label,
5103
5107
  icon: C.icon,
5104
- isActive: C.id === b,
5108
+ isActive: C.id === u,
5105
5109
  disabled: N,
5106
5110
  disabledTooltip: C.disabledTooltip,
5107
- onClick: N ? void 0 : () => g(C.id),
5111
+ onClick: N ? void 0 : () => h(C.id),
5108
5112
  onPointerEnter: N ? void 0 : () => m == null ? void 0 : m(C.id),
5109
5113
  onFocus: N ? void 0 : () => m == null ? void 0 : m(C.id)
5110
5114
  },
@@ -5128,7 +5132,7 @@ function Gl(e) {
5128
5132
  const r = (e ?? "").trim();
5129
5133
  return r ? ((n = r[0]) == null ? void 0 : n.toUpperCase()) ?? "?" : "?";
5130
5134
  }
5131
- function Vs({ userProfile: e }) {
5135
+ function Us({ userProfile: e }) {
5132
5136
  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
5137
  /* @__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) }) }),
5134
5138
  /* @__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: [
@@ -5151,7 +5155,7 @@ function Vs({ userProfile: e }) {
5151
5155
  ] })
5152
5156
  ] }) });
5153
5157
  }
5154
- function ht({
5158
+ function Re({
5155
5159
  apiKey: e,
5156
5160
  userId: r,
5157
5161
  questionnaireResponseId: n,
@@ -5189,22 +5193,22 @@ function Vl(e) {
5189
5193
  simulateDelayMs: c,
5190
5194
  simulateFetchError: d = !1,
5191
5195
  simulateFetchErrorMessage: m = "Simulated fetch error"
5192
- } = e, u = Be(), x = ht({
5196
+ } = e, b = fe(), g = Re({
5193
5197
  apiKey: a,
5194
5198
  userId: o,
5195
5199
  questionnaireResponseId: i,
5196
5200
  headers: n
5197
5201
  });
5198
- return Ol((g, h) => Xl(c, g, async () => {
5202
+ return Ol((h, f) => Xl(c, h, async () => {
5199
5203
  if (d)
5200
5204
  throw new Error(m);
5201
- return h();
5202
- }), (g) => ({
5203
- baseUrl: u,
5205
+ return f();
5206
+ }), (h) => ({
5207
+ baseUrl: b,
5204
5208
  reportId: r,
5205
- headers: x,
5209
+ headers: g,
5206
5210
  fetchImpl: s,
5207
- signal: g
5211
+ signal: h
5208
5212
  }));
5209
5213
  }
5210
5214
  function Zl(e, r) {
@@ -5235,24 +5239,75 @@ function Kl(e) {
5235
5239
  questionnaireResponseId: o,
5236
5240
  headers: i,
5237
5241
  fetchImpl: s
5238
- } = e, c = Be();
5242
+ } = e, c = fe();
5239
5243
  return async (d) => {
5240
- const m = s ?? globalThis.fetch.bind(globalThis), u = (d == null ? void 0 : d.reportId) ?? a, x = Wl(c, u), v = ht({
5244
+ const m = s ?? globalThis.fetch.bind(globalThis), b = (d == null ? void 0 : d.reportId) ?? a, g = Wl(c, b), v = Re({
5241
5245
  apiKey: r,
5242
5246
  userId: n,
5243
5247
  questionnaireResponseId: o,
5244
5248
  headers: i
5245
- }), b = await m(x, {
5249
+ }), u = await m(g, {
5246
5250
  method: "GET",
5247
5251
  headers: v,
5248
5252
  signal: d == null ? void 0 : d.signal
5249
5253
  });
5250
- if (!b.ok)
5251
- throw new Error(`Failed to download report PDF (HTTP ${b.status})`);
5252
- const g = await b.blob(), h = Ul(b, u ? `report-${u}.pdf` : "report.pdf");
5253
- Ql(g, h);
5254
+ if (!u.ok)
5255
+ throw new Error(`Failed to download report PDF (HTTP ${u.status})`);
5256
+ const h = await u.blob(), f = Ul(u, b ? `report-${b}.pdf` : "report.pdf");
5257
+ Ql(h, f);
5254
5258
  };
5255
5259
  }
5260
+ function ql(e, r) {
5261
+ const n = e.replace(/\/$/, ""), a = r.startsWith("/") ? r : `/${r}`;
5262
+ return `${n}${a}`;
5263
+ }
5264
+ function Jl(e, r) {
5265
+ const n = ql(e || "", "/api/v1/report/exists");
5266
+ return r ? `${n}?report_id=${encodeURIComponent(r)}` : n;
5267
+ }
5268
+ function _l(e) {
5269
+ return e instanceof DOMException && e.name === "AbortError";
5270
+ }
5271
+ async function Qs(e) {
5272
+ const {
5273
+ reportId: r,
5274
+ headers: n,
5275
+ apiKey: a,
5276
+ userId: o,
5277
+ questionnaireResponseId: i,
5278
+ fetchImpl: s = globalThis.fetch.bind(globalThis),
5279
+ signal: c
5280
+ } = e, d = fe(), m = Jl(d, r), b = Re({
5281
+ apiKey: a,
5282
+ userId: o,
5283
+ questionnaireResponseId: i,
5284
+ headers: n
5285
+ });
5286
+ let g;
5287
+ try {
5288
+ g = await s(m, { method: "GET", headers: b, signal: c });
5289
+ } catch (h) {
5290
+ throw _l(h) ? h : new Error(
5291
+ `Network error checking report availability: ${h instanceof Error ? h.message : String(h)}`,
5292
+ { cause: h }
5293
+ );
5294
+ }
5295
+ if (g.status === 404) return !1;
5296
+ const v = await g.text();
5297
+ let u;
5298
+ try {
5299
+ u = v ? JSON.parse(v) : null;
5300
+ } catch {
5301
+ u = v;
5302
+ }
5303
+ if (!g.ok) {
5304
+ const h = typeof u == "object" && u !== null && "error" in u && typeof u.error == "string" ? u.error : null;
5305
+ throw new Error(h ?? `Failed to check report availability (HTTP ${g.status})`);
5306
+ }
5307
+ if (u === null || typeof u != "object" || Array.isArray(u) || !("exists" in u) || typeof u.exists != "boolean")
5308
+ throw new Error("Unexpected response shape for /report/exists: missing boolean 'exists'");
5309
+ return u.exists;
5310
+ }
5256
5311
  const Ut = {
5257
5312
  1: [
5258
5313
  "Triad 1 is your body's Energy hub. The adrenals manage stress, the thyroid drives metabolism, and the pancreas regulates blood sugar. When in sync, you feel steady energy, focus, and balanced moods all day.",
@@ -5283,7 +5338,7 @@ const Ut = {
5283
5338
  function Ir(e) {
5284
5339
  return Ut[e] ?? Ut[1];
5285
5340
  }
5286
- const ql = [
5341
+ const $l = [
5287
5342
  ["morning", "Morning (AM)"],
5288
5343
  ["noon", "Noon"],
5289
5344
  ["afternoon", "Afternoon"],
@@ -5291,23 +5346,26 @@ const ql = [
5291
5346
  ["bedtime", "Bedtime"]
5292
5347
  ];
5293
5348
  function ft(e, r) {
5349
+ var s;
5294
5350
  if (!e) return "—";
5295
- const n = r ? ` ${r}` : "";
5296
- return `${rt(e.low)}-${rt(e.high)}${n}`;
5351
+ const n = (s = e.text) == null ? void 0 : s.trim();
5352
+ if (n) return n;
5353
+ const a = r ? ` ${r}` : "", { low: o, high: i } = e;
5354
+ return o == null && i == null ? "—" : o == null ? i == null ? "—" : `≤${ue(i)}${a}` : i == null ? `≥${ue(o)}${a}` : `${ue(o)}-${ue(i)}${a}`;
5297
5355
  }
5298
- function rt(e) {
5356
+ function ue(e) {
5299
5357
  return !Number.isFinite(e) || Number.isInteger(e) ? String(e) : e.toFixed(2).replace(/\.?0+$/, "");
5300
5358
  }
5301
- function Le(e, r) {
5359
+ function Pe(e, r) {
5302
5360
  if (e == null) return "—";
5303
- const n = r == null ? void 0 : r.trim(), a = rt(e);
5361
+ const n = r == null ? void 0 : r.trim(), a = ue(e);
5304
5362
  return n ? `${a} ${n}` : a;
5305
5363
  }
5306
5364
  function Dr(e) {
5307
5365
  const r = (e ?? "low").toLowerCase();
5308
5366
  return r === "high" ? "high" : r === "med" || r === "moderate" ? "moderate" : "low";
5309
5367
  }
5310
- function Jl(e) {
5368
+ function ei(e) {
5311
5369
  const r = e.toLowerCase().trim();
5312
5370
  switch (r) {
5313
5371
  case "hi":
@@ -5331,28 +5389,14 @@ function Jl(e) {
5331
5389
  }
5332
5390
  }
5333
5391
  }
5334
- function _l(e) {
5335
- switch ((e ?? "").toLowerCase()) {
5336
- case "hi":
5337
- case "trending_hi":
5338
- return "high";
5339
- case "lo":
5340
- case "trending_lo":
5341
- return "low";
5342
- case "optimal":
5343
- return "optimal";
5344
- default:
5345
- return "trending";
5346
- }
5347
- }
5348
5392
  function Rr(e, r) {
5349
5393
  const n = e.alerts.map((a) => ({
5350
5394
  name: a.name,
5351
5395
  infoAriaLabel: `${a.name} information`,
5352
5396
  symptomScore: ft(a.normal_range, a.unit ?? ""),
5353
- labScore: Le(a.value, a.unit ?? ""),
5397
+ labScore: Pe(a.value, a.unit ?? ""),
5354
5398
  totalScore: a.indicator_percent != null ? String(Math.round(a.indicator_percent)) : "—",
5355
- status: _l(a.interpretation)
5399
+ status: a.status
5356
5400
  }));
5357
5401
  return {
5358
5402
  pageHeader: {
@@ -5362,17 +5406,17 @@ function Rr(e, r) {
5362
5406
  indicators: n
5363
5407
  };
5364
5408
  }
5365
- const $l = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5409
+ const ti = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5366
5410
  __proto__: null,
5367
5411
  mapAlertLabSummaryDtoToTabContent: Rr
5368
5412
  }, Symbol.toStringTag, { value: "Module" }));
5369
- function ye(e) {
5413
+ function Ce(e) {
5370
5414
  return e != null ? String(Math.round(e)) : "—";
5371
5415
  }
5372
- function ei(e) {
5416
+ function ri(e) {
5373
5417
  return e ?? "";
5374
5418
  }
5375
- function ti(e) {
5419
+ function ni(e) {
5376
5420
  switch ((e ?? "").toLowerCase()) {
5377
5421
  case "low":
5378
5422
  return "optimal";
@@ -5384,21 +5428,7 @@ function ti(e) {
5384
5428
  return "trending";
5385
5429
  }
5386
5430
  }
5387
- function ri(e) {
5388
- switch ((e ?? "").toLowerCase()) {
5389
- case "optimal":
5390
- return "optimal";
5391
- case "hi":
5392
- case "trending_hi":
5393
- return "high";
5394
- case "lo":
5395
- case "trending_lo":
5396
- return "low";
5397
- default:
5398
- return "optimal";
5399
- }
5400
- }
5401
- const ni = {
5431
+ const ai = {
5402
5432
  cardio: "cardiopulmonary",
5403
5433
  pulmonary: "cardiopulmonary",
5404
5434
  cardiopulmonary: "cardiopulmonary",
@@ -5406,76 +5436,64 @@ const ni = {
5406
5436
  neuro: "neurovascular",
5407
5437
  vascular: "neurovascular"
5408
5438
  };
5409
- function ai(e) {
5439
+ function oi(e) {
5410
5440
  const r = e.trim().toLowerCase().replace(/[\s-]+/g, "");
5411
- return ni[r] ?? r;
5441
+ return ai[r] ?? r;
5412
5442
  }
5413
- function oi(e, r) {
5414
- const n = ai(e.name);
5443
+ function li(e, r) {
5444
+ const n = oi(e.name);
5415
5445
  return {
5416
5446
  name: e.name,
5417
5447
  infoAriaLabel: `${e.name} category information`,
5418
- symptomScore: ye(e.survey_score),
5419
- labScore: ye(e.lab_score),
5420
- totalScore: ye(e.total_score),
5421
- status: ti(e.interpretation),
5448
+ symptomScore: Ce(e.survey_score),
5449
+ labScore: Ce(e.lab_score),
5450
+ totalScore: Ce(e.total_score),
5451
+ status: ni(e.interpretation),
5422
5452
  statusExplanationPanel: r != null && r[n] ? {
5423
5453
  bodyParagraphs: [],
5424
5454
  organKey: n
5425
5455
  } : void 0
5426
5456
  };
5427
5457
  }
5428
- function li(e) {
5458
+ function ii(e) {
5429
5459
  const r = e.trim().split(/\s+/).filter(Boolean);
5430
5460
  if (r.length === 0) return "?";
5431
5461
  if (r.length === 1) return r[0].slice(0, 2).toUpperCase();
5432
5462
  const n = r[0][0], a = r[r.length - 1][0];
5433
5463
  return `${n}${a}`.toUpperCase();
5434
5464
  }
5435
- function ii(e) {
5465
+ function si(e) {
5436
5466
  if (!e) return "—";
5437
5467
  const r = e.toLowerCase();
5438
5468
  return r === "female" ? "Female" : r === "male" ? "Male" : e.charAt(0).toUpperCase() + e.slice(1).toLowerCase();
5439
5469
  }
5440
- function si(e) {
5470
+ function ci(e) {
5441
5471
  var a, o;
5442
5472
  const r = (o = (a = e.patient) == null ? void 0 : a.name) == null ? void 0 : o.trim();
5443
5473
  if (!r) return;
5444
5474
  const n = [
5445
- ["Gender", ii(e.patient.gender)],
5446
- [
5447
- "Chronological age",
5448
- e.patient.chrono_age != null ? String(e.patient.chrono_age) : "—"
5449
- ],
5450
- [
5451
- "Biological age",
5452
- e.patient.bio_age != null ? String(e.patient.bio_age) : "—"
5453
- ]
5475
+ ["Gender", si(e.patient.gender)],
5476
+ ["Chronological age", e.patient.chrono_age != null ? String(e.patient.chrono_age) : "—"],
5477
+ ["Biological age", e.patient.bio_age != null ? String(e.patient.bio_age) : "—"]
5454
5478
  ];
5455
5479
  return {
5456
5480
  patientName: r,
5457
- initials: li(r),
5481
+ initials: ii(r),
5458
5482
  rows: n
5459
5483
  };
5460
5484
  }
5461
- function Te(e) {
5485
+ function Se(e) {
5462
5486
  if (!e) return null;
5463
- const r = /^(\d{4})-(\d{2})-(\d{2})$/.exec(e), n = r ? new Date(
5464
- Number(r[1]),
5465
- Number(r[2]) - 1,
5466
- Number(r[3])
5467
- ) : new Date(e);
5487
+ 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);
5468
5488
  return Number.isNaN(n.getTime()) ? e : n.toLocaleDateString(void 0, {
5469
5489
  year: "numeric",
5470
5490
  month: "short",
5471
5491
  day: "numeric"
5472
5492
  });
5473
5493
  }
5474
- function ci(e) {
5494
+ function di(e) {
5475
5495
  if (e.overall_score == null) return;
5476
- const r = Math.round(e.overall_score), n = Te(e.labs_last_date), a = Te(
5477
- e.questionnaire_last_date
5478
- ), o = e.wearable_last_activity ?? null;
5496
+ 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;
5479
5497
  return {
5480
5498
  sectionTitle: "Overall Metabolic Score",
5481
5499
  scorePercent: r,
@@ -5490,15 +5508,15 @@ function ci(e) {
5490
5508
  wearableValueLabel: o ?? ""
5491
5509
  };
5492
5510
  }
5493
- function di(e, r) {
5511
+ function mi(e, r) {
5494
5512
  if (e.triads.length === 0) return;
5495
5513
  const n = e.triads.map((i) => ({
5496
5514
  triadNumber: i.number,
5497
5515
  name: `${i.name} Triad`,
5498
- aggregateScoreDisplay: ye(i.total_score)
5516
+ aggregateScoreDisplay: Ce(i.total_score)
5499
5517
  })), a = e.triads.map(
5500
- (i) => i.organs.map((s) => oi(s, r))
5501
- ), o = Te(e.labs_last_date);
5518
+ (i) => i.organs.map((s) => li(s, r))
5519
+ ), o = Se(e.labs_last_date);
5502
5520
  return {
5503
5521
  sectionTitle: "Total Predictive Trends",
5504
5522
  infoAriaLabel: "Total predictive trends information",
@@ -5510,16 +5528,16 @@ function di(e, r) {
5510
5528
  categoriesByTriadIndex: a
5511
5529
  };
5512
5530
  }
5513
- function mi(e) {
5531
+ function ui(e) {
5514
5532
  if (e.lab_metrics.length === 0) return;
5515
5533
  const r = e.lab_metrics.map((a) => ({
5516
5534
  name: a.name,
5517
5535
  infoAriaLabel: `${a.name} information`,
5518
5536
  symptomScore: "—",
5519
- labScore: a.value != null ? Le(a.value, ei(a.unit)) : "—",
5537
+ labScore: a.value != null ? Pe(a.value, ri(a.unit)) : "—",
5520
5538
  totalScore: a.indicator_percent != null ? String(Math.round(a.indicator_percent)) : "—",
5521
- status: ri(a.interpretation)
5522
- })), n = Te(e.labs_last_date);
5539
+ status: a.status
5540
+ })), n = Se(e.labs_last_date);
5523
5541
  return {
5524
5542
  sectionTitle: "Lab Alerts Summary",
5525
5543
  infoAriaLabel: "Alert lab summary information",
@@ -5536,13 +5554,13 @@ function zr(e, r) {
5536
5554
  title: "Dashboard",
5537
5555
  subtitle: Ar
5538
5556
  },
5539
- patientSummary: si(e),
5557
+ patientSummary: ci(e),
5540
5558
  welcome: {
5541
5559
  title: "",
5542
5560
  paragraphs: [],
5543
5561
  actions: [{ id: "export-reports", label: "Export All Reports" }]
5544
5562
  },
5545
- overallScore: ci(e),
5563
+ overallScore: di(e),
5546
5564
  metaflammation: e.metaflammation ? {
5547
5565
  title: "Metaflammation Gauge",
5548
5566
  value: e.metaflammation.value,
@@ -5550,12 +5568,12 @@ function zr(e, r) {
5550
5568
  infoAriaLabel: "Metaflammation gauge information",
5551
5569
  centerValueColor: "#E97180"
5552
5570
  } : void 0,
5553
- totalPredictiveTrends: di(e, r),
5554
- alertLabSummaryTable: mi(e),
5571
+ totalPredictiveTrends: mi(e, r),
5572
+ alertLabSummaryTable: ui(e),
5555
5573
  organContent: r
5556
5574
  };
5557
5575
  }
5558
- const ui = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5576
+ const bi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5559
5577
  __proto__: null,
5560
5578
  mapDashboardPageDtoToTabContent: zr
5561
5579
  }, Symbol.toStringTag, { value: "Module" }));
@@ -5568,7 +5586,7 @@ function Or(e) {
5568
5586
  sections: (e.triads ?? []).map((r) => {
5569
5587
  const n = (r.markers ?? []).map((a) => ({
5570
5588
  label: a.name,
5571
- arrows: Jl(a.direction)
5589
+ arrows: ei(a.direction)
5572
5590
  }));
5573
5591
  return {
5574
5592
  triadNumber: r.number,
@@ -5581,46 +5599,57 @@ function Or(e) {
5581
5599
  })
5582
5600
  };
5583
5601
  }
5584
- const bi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5602
+ const hi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5585
5603
  __proto__: null,
5586
5604
  mapLabAnalysisDtoToTabContent: Or
5587
5605
  }, Symbol.toStringTag, { value: "Module" }));
5588
- function hi(e) {
5606
+ function fi(e) {
5589
5607
  const r = e.unit ?? "";
5590
5608
  return {
5591
5609
  title: e.name,
5592
5610
  infoAriaLabel: `${e.name} information`,
5593
5611
  normalRange: ft(e.normal_range, r),
5594
- currentRange: Le(e.value, r),
5595
- previousRange: e.previous_value != null ? Le(e.previous_value, r) : void 0,
5596
- indicatorPercent: e.indicator_percent ?? 50
5612
+ currentRange: Pe(e.value, r),
5613
+ previousRange: e.previous_value != null ? Pe(e.previous_value, r) : void 0,
5614
+ indicatorPercent: e.indicator_percent ?? 50,
5615
+ status: e.status
5597
5616
  };
5598
5617
  }
5599
- function fi(e) {
5618
+ function gi(e) {
5600
5619
  return {
5601
5620
  title: e.organ_name,
5602
5621
  subtitle: `T${e.triad_number} Lab Values`,
5603
- metrics: e.metrics.map(hi)
5622
+ metrics: e.metrics.map(fi)
5604
5623
  };
5605
5624
  }
5625
+ function pi(e, r) {
5626
+ const n = /* @__PURE__ */ new Map();
5627
+ return e.forEach((a) => {
5628
+ n.has(a.triad_number) || n.set(a.triad_number, a);
5629
+ }), Array.from(n.values()).map((a) => {
5630
+ var i;
5631
+ 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);
5632
+ return {
5633
+ triadNumber: a.triad_number,
5634
+ heading: `Triad ${a.triad_number}: ${a.triad_name}`,
5635
+ videoAriaLabel: "Play introduction video",
5636
+ paragraphs: o
5637
+ };
5638
+ });
5639
+ }
5606
5640
  function Er(e, r) {
5607
- var i;
5608
- 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) : [];
5641
+ const n = e.groups ?? [], a = pi(n, r), o = a[0];
5609
5642
  return {
5610
5643
  pageHeader: {
5611
5644
  title: "Lab Results",
5612
5645
  subtitle: Mr
5613
5646
  },
5614
- intro: a ? {
5615
- triadNumber: a.triad_number,
5616
- heading: `Triad ${a.triad_number}: ${a.triad_name}`,
5617
- videoAriaLabel: "Play introduction video",
5618
- paragraphs: o
5619
- } : void 0,
5620
- groups: n.map(fi)
5647
+ intro: o,
5648
+ intros: a,
5649
+ groups: n.map(gi)
5621
5650
  };
5622
5651
  }
5623
- const gi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5652
+ const xi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5624
5653
  __proto__: null,
5625
5654
  mapLabResultsDtoToTabContent: Er
5626
5655
  }, Symbol.toStringTag, { value: "Module" }));
@@ -5644,10 +5673,13 @@ function Fr(e) {
5644
5673
  }))
5645
5674
  };
5646
5675
  }
5647
- const pi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5676
+ const vi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5648
5677
  __proto__: null,
5649
5678
  mapQuestionnaireAnalysisDtoToTabContent: Fr
5650
5679
  }, Symbol.toStringTag, { value: "Module" }));
5680
+ function wi(e) {
5681
+ return e >= 60 ? "high" : e <= 40 ? "low" : "optimal";
5682
+ }
5651
5683
  function Gr(e, r) {
5652
5684
  const n = e.triad_number ?? null, a = e.triad_name ?? null, o = (r == null ? void 0 : r.includes("lab-results")) ?? !0;
5653
5685
  return {
@@ -5668,7 +5700,8 @@ function Gr(e, r) {
5668
5700
  normalRange: ft(i.normal_range, ""),
5669
5701
  currentRange: String(i.score),
5670
5702
  previousRange: i.previous_score != null ? String(i.previous_score) : void 0,
5671
- indicatorPercent: Math.round(i.indicator_percent)
5703
+ indicatorPercent: Math.round(i.indicator_percent),
5704
+ status: wi(i.indicator_percent)
5672
5705
  })) : [],
5673
5706
  symptomsSectionTitle: "Symptoms",
5674
5707
  symptoms: [...e.symptoms],
@@ -5681,7 +5714,7 @@ function Gr(e, r) {
5681
5714
  }))
5682
5715
  };
5683
5716
  }
5684
- const xi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5717
+ const yi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5685
5718
  __proto__: null,
5686
5719
  mapSuggestedProductsDtoToTabContent: Gr
5687
5720
  }, Symbol.toStringTag, { value: "Module" }));
@@ -5696,7 +5729,7 @@ function Yr(e) {
5696
5729
  triadNumbers: [...r.triad_numbers],
5697
5730
  imageSrc: r.image_url ?? void 0,
5698
5731
  imageAlt: r.name,
5699
- scheduleRows: ql.map(([n, a]) => ({
5732
+ scheduleRows: $l.map(([n, a]) => ({
5700
5733
  timeLabel: a,
5701
5734
  dosage: r.schedule[n] ?? null
5702
5735
  }))
@@ -5707,10 +5740,10 @@ function Yr(e) {
5707
5740
  } : void 0
5708
5741
  };
5709
5742
  }
5710
- const vi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5743
+ const Ni = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5711
5744
  __proto__: null,
5712
5745
  mapSupplementScheduleDtoToTabContent: Yr
5713
- }, Symbol.toStringTag, { value: "Module" })), wi = {
5746
+ }, Symbol.toStringTag, { value: "Module" })), Ci = {
5714
5747
  cardio: "cardiopulmonary",
5715
5748
  pulmonary: "cardiopulmonary",
5716
5749
  cardiopulmonary: "cardiopulmonary",
@@ -5718,15 +5751,15 @@ const vi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5718
5751
  neuro: "neurovascular",
5719
5752
  vascular: "neurovascular"
5720
5753
  };
5721
- function yi(e) {
5754
+ function Ai(e) {
5722
5755
  const r = e.trim().toLowerCase().replace(/[\s-]+/g, "");
5723
- return wi[r] ?? r;
5756
+ return Ci[r] ?? r;
5724
5757
  }
5725
5758
  function Xr(e, r, n) {
5726
5759
  return {
5727
5760
  pageHeader: {
5728
5761
  title: "Total Predictive Trends",
5729
- subtitle: Lr
5762
+ subtitle: Tr
5730
5763
  },
5731
5764
  triadCards: e.triads.map((a) => ({
5732
5765
  triadNumber: a.number,
@@ -5736,7 +5769,7 @@ function Xr(e, r, n) {
5736
5769
  currentRangeLabel: "Current Range",
5737
5770
  previousRangeLabel: "Previous Range",
5738
5771
  categories: a.categories.map((o) => {
5739
- const i = yi(o.name);
5772
+ const i = Ai(o.name);
5740
5773
  return {
5741
5774
  title: o.name.toUpperCase(),
5742
5775
  symptomScore: o.symptom_score != null ? String(o.symptom_score) : "—",
@@ -5753,29 +5786,29 @@ function Xr(e, r, n) {
5753
5786
  cortisolContent: n
5754
5787
  };
5755
5788
  }
5756
- const Ni = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5789
+ const Ti = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5757
5790
  __proto__: null,
5758
5791
  mapTotalPredictiveIndexDtoToTabContent: Xr
5759
5792
  }, Symbol.toStringTag, { value: "Module" }));
5760
5793
  function Qt(e) {
5761
5794
  return `${e.min} - ${e.max}`;
5762
5795
  }
5763
- function Ci(e, r) {
5796
+ function Li(e, r) {
5764
5797
  return e <= r.low.max ? "low" : e <= r.moderate.max ? "moderate" : "high";
5765
5798
  }
5766
- function Ai(e) {
5799
+ function Pi(e) {
5767
5800
  return e === "low" ? "optimal" : e === "moderate" ? "trending" : "high";
5768
5801
  }
5769
- function Li(e) {
5802
+ function Si(e) {
5770
5803
  var a;
5771
- const r = Ci(e.score, e.zones), n = (a = e.interpretation) == null ? void 0 : a.trim();
5804
+ const r = Li(e.score, e.zones), n = (a = e.interpretation) == null ? void 0 : a.trim();
5772
5805
  return {
5773
5806
  name: e.name,
5774
5807
  infoAriaLabel: `${e.name} indicator information`,
5775
5808
  symptomScore: Qt(e.zones.moderate),
5776
5809
  labScore: String(e.score),
5777
5810
  totalScore: Qt(e.zones.high),
5778
- status: Ai(r),
5811
+ status: Pi(r),
5779
5812
  statusExplanationPanel: n && n.length > 0 ? { bodyParagraphs: [n] } : void 0
5780
5813
  };
5781
5814
  }
@@ -5783,37 +5816,37 @@ function Vr(e) {
5783
5816
  return {
5784
5817
  pageHeader: {
5785
5818
  title: "Predictive Vitality Wellness Indicators",
5786
- subtitle: Tr
5819
+ subtitle: Lr
5787
5820
  },
5788
- indicators: e.indicators.map(Li)
5821
+ indicators: e.indicators.map(Si)
5789
5822
  };
5790
5823
  }
5791
- const Ti = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5824
+ const Mi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5792
5825
  __proto__: null,
5793
5826
  mapWellnessIndicatorsDtoToTabContent: Vr
5794
5827
  }, Symbol.toStringTag, { value: "Module" }));
5795
- function Pi(e, r) {
5828
+ function Hi(e, r) {
5796
5829
  return r ? { ...e, ...r } : e;
5797
5830
  }
5798
- const Si = Ie.map(
5831
+ const ki = De.map(
5799
5832
  (e) => e.id
5800
5833
  );
5801
5834
  function gt(e) {
5802
- return Si.includes(e);
5835
+ return ki.includes(e);
5803
5836
  }
5804
- const Mi = 3e5, pt = qt(
5837
+ const ji = 3e5, pt = qt(
5805
5838
  null
5806
5839
  );
5807
5840
  function Zr() {
5808
- return at(pt);
5841
+ return ot(pt);
5809
5842
  }
5810
- function Zs() {
5811
- const e = at(pt);
5843
+ function Ks() {
5844
+ const e = ot(pt);
5812
5845
  return B(() => {
5813
5846
  e == null || e.invalidate();
5814
5847
  }, [e]);
5815
5848
  }
5816
- function Hi({
5849
+ function Bi({
5817
5850
  children: e,
5818
5851
  fetchers: r,
5819
5852
  ttlMs: n
@@ -5821,77 +5854,77 @@ function Hi({
5821
5854
  const a = F(/* @__PURE__ */ new Map()), o = F(/* @__PURE__ */ new Map()), i = F(r);
5822
5855
  i.current = r;
5823
5856
  const s = F(0), c = B(
5824
- (b) => {
5857
+ (u) => {
5825
5858
  if (n <= 0) return;
5826
- const g = a.current.get(b);
5827
- if (g) {
5828
- if (Date.now() > g.expiresAt) {
5829
- a.current.delete(b);
5859
+ const h = a.current.get(u);
5860
+ if (h) {
5861
+ if (Date.now() > h.expiresAt) {
5862
+ a.current.delete(u);
5830
5863
  return;
5831
5864
  }
5832
- return g.data;
5865
+ return h.data;
5833
5866
  }
5834
5867
  },
5835
5868
  [n]
5836
5869
  ), d = B(
5837
- (b, g) => {
5838
- n <= 0 || a.current.set(b, { data: g, expiresAt: Date.now() + n });
5870
+ (u, h) => {
5871
+ n <= 0 || a.current.set(u, { data: h, expiresAt: Date.now() + n });
5839
5872
  },
5840
5873
  [n]
5841
5874
  );
5842
5875
  V(() => {
5843
5876
  s.current += 1, a.current.clear(), o.current.clear(), i.current = r;
5844
- const b = new AbortController(), g = s.current;
5845
- return Object.keys(r).forEach((h) => {
5846
- const f = h;
5847
- r[f](b.signal).then((y) => {
5848
- s.current === g && d(f, y);
5877
+ const u = new AbortController(), h = s.current;
5878
+ return Object.keys(r).forEach((f) => {
5879
+ const p = f;
5880
+ r[p](u.signal).then((y) => {
5881
+ s.current === h && d(p, y);
5849
5882
  }).catch(() => {
5850
5883
  });
5851
- }), () => b.abort();
5884
+ }), () => u.abort();
5852
5885
  }, [r, d]);
5853
- const m = B((b) => {
5854
- b === void 0 ? a.current.clear() : a.current.delete(b);
5855
- }, []), u = B(
5856
- async (b, g) => {
5857
- const h = c(b);
5858
- if (h !== void 0) return h;
5859
- const f = o.current.get(b);
5860
- if (f) return f;
5886
+ const m = B((u) => {
5887
+ u === void 0 ? a.current.clear() : a.current.delete(u);
5888
+ }, []), b = B(
5889
+ async (u, h) => {
5890
+ const f = c(u);
5891
+ if (f !== void 0) return f;
5892
+ const p = o.current.get(u);
5893
+ if (p) return p;
5861
5894
  const y = s.current, C = (async () => {
5862
5895
  try {
5863
- const N = await i.current[b](g);
5864
- return y === s.current && d(b, N), N;
5896
+ const N = await i.current[u](h);
5897
+ return y === s.current && d(u, N), N;
5865
5898
  } finally {
5866
- o.current.delete(b);
5899
+ o.current.delete(u);
5867
5900
  }
5868
5901
  })();
5869
- return o.current.set(b, C), C;
5902
+ return o.current.set(u, C), C;
5870
5903
  },
5871
5904
  [c, d]
5872
- ), x = B(
5873
- (b) => {
5874
- if (!gt(b)) return;
5875
- const g = new AbortController();
5876
- u(b, g.signal).catch(() => {
5905
+ ), g = B(
5906
+ (u) => {
5907
+ if (!gt(u)) return;
5908
+ const h = new AbortController();
5909
+ b(u, h.signal).catch(() => {
5877
5910
  });
5878
5911
  },
5879
- [u]
5912
+ [b]
5880
5913
  ), v = j(
5881
5914
  () => ({
5882
- loadTab: u,
5915
+ loadTab: b,
5883
5916
  readValid: c,
5884
5917
  invalidate: m,
5885
- prefetch: x
5918
+ prefetch: g
5886
5919
  }),
5887
- [u, c, m, x]
5920
+ [b, c, m, g]
5888
5921
  );
5889
5922
  return /* @__PURE__ */ t(pt.Provider, { value: v, children: e });
5890
5923
  }
5891
- function ki(e) {
5924
+ function Ii(e) {
5892
5925
  return e instanceof DOMException && e.name === "AbortError" ? !0 : e instanceof Error && e.name === "AbortError";
5893
5926
  }
5894
- function ji(e, r) {
5927
+ function Di(e, r) {
5895
5928
  switch (r.type) {
5896
5929
  case "loadStart":
5897
5930
  return { status: "loading" };
@@ -5901,41 +5934,41 @@ function ji(e, r) {
5901
5934
  return { status: "error", error: r.error };
5902
5935
  }
5903
5936
  }
5904
- function Bi(e, r) {
5905
- const [n, a] = tn(ji, { status: "idle" }), [o, i] = H(0), s = F(r.onLoadError);
5937
+ function Ri(e, r) {
5938
+ const [n, a] = tn(Di, { status: "idle" }), [o, i] = H(0), s = F(r.onLoadError);
5906
5939
  s.current = r.onLoadError;
5907
5940
  const c = Zr(), d = B(() => {
5908
- c == null || c.invalidate(e), a({ type: "loadStart" }), i((u) => u + 1);
5941
+ c == null || c.invalidate(e), a({ type: "loadStart" }), i((b) => b + 1);
5909
5942
  }, [c, e]), m = F(r.fetchers);
5910
5943
  return m.current = r.fetchers, V(() => {
5911
- let u = !0;
5912
- const x = new AbortController(), { signal: v } = x;
5944
+ let b = !0;
5945
+ const g = new AbortController(), { signal: v } = g;
5913
5946
  return (async () => {
5914
- var g;
5947
+ var h;
5915
5948
  if (c) {
5916
- const h = c.readValid(e);
5917
- if (h !== void 0) {
5918
- a({ type: "loadSuccess", data: h });
5949
+ const f = c.readValid(e);
5950
+ if (f !== void 0) {
5951
+ a({ type: "loadSuccess", data: f });
5919
5952
  return;
5920
5953
  }
5921
5954
  }
5922
5955
  a({ type: "loadStart" });
5923
5956
  try {
5924
- const h = c ? await c.loadTab(e, v) : await m.current[e](v);
5925
- if (!u) return;
5926
- a({ type: "loadSuccess", data: h });
5927
- } catch (h) {
5928
- if (!u || ki(h)) return;
5929
- const f = h instanceof Error ? h : new Error(String(h));
5930
- a({ type: "loadError", error: f }), (g = s.current) == null || g.call(s, { navItemId: e, error: f });
5957
+ const f = c ? await c.loadTab(e, v) : await m.current[e](v);
5958
+ if (!b) return;
5959
+ a({ type: "loadSuccess", data: f });
5960
+ } catch (f) {
5961
+ if (!b || Ii(f)) return;
5962
+ const p = f instanceof Error ? f : new Error(String(f));
5963
+ a({ type: "loadError", error: p }), (h = s.current) == null || h.call(s, { navItemId: e, error: p });
5931
5964
  }
5932
5965
  })(), () => {
5933
- u = !1, x.abort();
5966
+ b = !1, g.abort();
5934
5967
  };
5935
5968
  }, [e, o, c]), { ...n, refetch: d, loadGeneration: o };
5936
5969
  }
5937
5970
  const Kt = "dashboard";
5938
- function Ii({ className: e }) {
5971
+ function zi({ className: e }) {
5939
5972
  return /* @__PURE__ */ l(
5940
5973
  "div",
5941
5974
  {
@@ -5957,7 +5990,7 @@ function Ii({ className: e }) {
5957
5990
  }
5958
5991
  );
5959
5992
  }
5960
- function Di({ className: e }) {
5993
+ function Oi({ className: e }) {
5961
5994
  return /* @__PURE__ */ l(
5962
5995
  "div",
5963
5996
  {
@@ -5976,7 +6009,7 @@ function Di({ className: e }) {
5976
6009
  }
5977
6010
  );
5978
6011
  }
5979
- function Ri({ onRetry: e }) {
6012
+ function Ei({ onRetry: e }) {
5980
6013
  return /* @__PURE__ */ l(
5981
6014
  "div",
5982
6015
  {
@@ -6003,7 +6036,7 @@ function Ri({ onRetry: e }) {
6003
6036
  {
6004
6037
  className: "flex size-[3.25rem] items-center justify-center rounded-[1.125rem] border border-red-500/35 bg-red-500/10 text-red-600 shadow-[0_2px_12px_rgb(239_68_68_/_0.2)] [&_svg]:h-7 [&_svg]:w-7 dark:text-red-400",
6005
6038
  "aria-hidden": !0,
6006
- children: /* @__PURE__ */ t(ut, {})
6039
+ children: /* @__PURE__ */ t(bt, {})
6007
6040
  }
6008
6041
  ),
6009
6042
  /* @__PURE__ */ l("div", { className: "flex max-w-2xl flex-col gap-2", children: [
@@ -6016,7 +6049,7 @@ function Ri({ onRetry: e }) {
6016
6049
  }
6017
6050
  );
6018
6051
  }
6019
- class zi extends rn {
6052
+ class Fi extends rn {
6020
6053
  constructor() {
6021
6054
  super(...arguments);
6022
6055
  yt(this, "state", { error: null });
@@ -6032,7 +6065,7 @@ class zi extends rn {
6032
6065
  }
6033
6066
  render() {
6034
6067
  return this.state.error ? /* @__PURE__ */ t(
6035
- Oi,
6068
+ Gi,
6036
6069
  {
6037
6070
  onRetry: () => {
6038
6071
  this.props.onRecover();
@@ -6041,7 +6074,7 @@ class zi extends rn {
6041
6074
  ) : this.props.children;
6042
6075
  }
6043
6076
  }
6044
- function Oi({ onRetry: e }) {
6077
+ function Gi({ onRetry: e }) {
6045
6078
  return /* @__PURE__ */ l(
6046
6079
  "div",
6047
6080
  {
@@ -6068,7 +6101,7 @@ function Oi({ onRetry: e }) {
6068
6101
  {
6069
6102
  className: "flex size-[3.25rem] items-center justify-center rounded-[1.125rem] border border-red-500/35 bg-red-500/10 text-red-600 shadow-[0_2px_12px_rgb(239_68_68_/_0.2)] [&_svg]:h-7 [&_svg]:w-7 dark:text-red-400",
6070
6103
  "aria-hidden": !0,
6071
- children: /* @__PURE__ */ t(ut, {})
6104
+ children: /* @__PURE__ */ t(bt, {})
6072
6105
  }
6073
6106
  ),
6074
6107
  /* @__PURE__ */ l("div", { className: "flex max-w-2xl flex-col gap-2", children: [
@@ -6081,41 +6114,41 @@ function Oi({ onRetry: e }) {
6081
6114
  }
6082
6115
  );
6083
6116
  }
6084
- function Ei({
6117
+ function Yi({
6085
6118
  navItemId: e,
6086
6119
  data: r
6087
6120
  }) {
6088
- const { Tab: n } = bt[e];
6121
+ const { Tab: n } = ht[e];
6089
6122
  return /* @__PURE__ */ t(n, { content: r });
6090
6123
  }
6091
- function Fi({
6124
+ function Xi({
6092
6125
  navItemId: e,
6093
6126
  contentFetchers: r,
6094
6127
  onDashboardTabContentLoadError: n
6095
6128
  }) {
6096
- const a = Bi(e, {
6129
+ const a = Ri(e, {
6097
6130
  fetchers: r,
6098
6131
  onLoadError: n
6099
- }), o = zl(e), s = bt[e].Skeleton;
6100
- return a.status === "idle" || a.status === "loading" ? /* @__PURE__ */ t(s, { pageHeader: o }) : a.status === "error" ? /* @__PURE__ */ t(Ri, { onRetry: () => a.refetch() }) : /* @__PURE__ */ t(
6101
- zi,
6132
+ }), o = zl(e), s = ht[e].Skeleton;
6133
+ return a.status === "idle" || a.status === "loading" ? /* @__PURE__ */ t(s, { pageHeader: o }) : a.status === "error" ? /* @__PURE__ */ t(Ei, { onRetry: () => a.refetch() }) : /* @__PURE__ */ t(
6134
+ Fi,
6102
6135
  {
6103
6136
  resetKey: `${e}-${a.loadGeneration}`,
6104
6137
  onRecover: () => {
6105
6138
  a.refetch();
6106
6139
  },
6107
- children: /* @__PURE__ */ t(nn, { fallback: /* @__PURE__ */ t(s, { pageHeader: o }), children: /* @__PURE__ */ t(Ei, { navItemId: e, data: a.data }) })
6140
+ children: /* @__PURE__ */ t(nn, { fallback: /* @__PURE__ */ t(s, { pageHeader: o }), children: /* @__PURE__ */ t(Yi, { navItemId: e, data: a.data }) })
6108
6141
  }
6109
6142
  );
6110
6143
  }
6111
- function Gi({
6144
+ function Vi({
6112
6145
  activeItemId: e,
6113
6146
  activeLabel: r,
6114
6147
  contentFetchers: n,
6115
6148
  onDashboardTabContentLoadError: a
6116
6149
  }) {
6117
6150
  return gt(e) ? /* @__PURE__ */ t(
6118
- Fi,
6151
+ Xi,
6119
6152
  {
6120
6153
  navItemId: e,
6121
6154
  contentFetchers: n,
@@ -6123,7 +6156,7 @@ function Gi({
6123
6156
  }
6124
6157
  ) : /* @__PURE__ */ t("div", { children: /* @__PURE__ */ t("h1", { className: "text-2xl font-semibold tracking-tight text-[color:var(--mb-color-text)]", children: r }) });
6125
6158
  }
6126
- function Yi({
6159
+ function Zi({
6127
6160
  renderMainContent: e,
6128
6161
  content: r,
6129
6162
  activeItemId: n,
@@ -6135,7 +6168,7 @@ function Yi({
6135
6168
  useDefaultTabData: d
6136
6169
  }) {
6137
6170
  const m = (e == null ? void 0 : e(n)) ?? (r !== void 0 ? r : /* @__PURE__ */ t(
6138
- Gi,
6171
+ Vi,
6139
6172
  {
6140
6173
  activeItemId: n,
6141
6174
  activeLabel: a,
@@ -6143,12 +6176,12 @@ function Yi({
6143
6176
  onDashboardTabContentLoadError: i
6144
6177
  }
6145
6178
  ));
6146
- return !c && d ? /* @__PURE__ */ t(Di, { className: "max-w-full shrink-0" }) : Br(s) ? /* @__PURE__ */ l(te, { children: [
6147
- /* @__PURE__ */ t(Ii, { className: "max-w-full shrink-0" }),
6179
+ return !c && d ? /* @__PURE__ */ t(Oi, { className: "max-w-full shrink-0" }) : Br(s) ? /* @__PURE__ */ l(ae, { children: [
6180
+ /* @__PURE__ */ t(zi, { className: "max-w-full shrink-0" }),
6148
6181
  m
6149
6182
  ] }) : m;
6150
6183
  }
6151
- function Xi({
6184
+ function Wi({
6152
6185
  rootStyle: e,
6153
6186
  enableTabContentCache: r,
6154
6187
  menuTitle: n,
@@ -6159,12 +6192,12 @@ function Xi({
6159
6192
  sideMenuItems: c,
6160
6193
  activeItemId: d,
6161
6194
  handleNavItemClick: m,
6162
- shellClassName: u,
6163
- sidebarWidthClassName: x,
6195
+ shellClassName: b,
6196
+ sidebarWidthClassName: g,
6164
6197
  mainAreaClassName: v,
6165
- mainContent: b
6198
+ mainContent: u
6166
6199
  }) {
6167
- const g = Zr();
6200
+ const h = Zr();
6168
6201
  return /* @__PURE__ */ t(
6169
6202
  "div",
6170
6203
  {
@@ -6184,34 +6217,34 @@ function Xi({
6184
6217
  items: c,
6185
6218
  activeItemId: d,
6186
6219
  onItemClick: m,
6187
- onNavItemPrefetch: r && g ? (f) => {
6188
- gt(f) && g.prefetch(f);
6220
+ onNavItemPrefetch: r && h ? (p) => {
6221
+ gt(p) && h.prefetch(p);
6189
6222
  } : void 0
6190
6223
  }
6191
6224
  ),
6192
- sidebarWidthClassName: x,
6193
- className: u,
6194
- children: /* @__PURE__ */ t("div", { className: v, children: b })
6225
+ sidebarWidthClassName: g,
6226
+ className: b,
6227
+ children: /* @__PURE__ */ t("div", { className: v, children: u })
6195
6228
  }
6196
6229
  )
6197
6230
  }
6198
6231
  );
6199
6232
  }
6200
- function Vi({
6233
+ function Ui({
6201
6234
  wrapTabContentCache: e,
6202
6235
  fetchers: r,
6203
6236
  cacheTtlMs: n,
6204
6237
  viewProps: a
6205
6238
  }) {
6206
- const o = /* @__PURE__ */ t(Xi, { ...a });
6207
- return e ? /* @__PURE__ */ t(Hi, { fetchers: r, ttlMs: n, children: o }) : o;
6239
+ const o = /* @__PURE__ */ t(Wi, { ...a });
6240
+ return e ? /* @__PURE__ */ t(Bi, { fetchers: r, ttlMs: n, children: o }) : o;
6208
6241
  }
6209
- const Zi = [
6242
+ const Qi = [
6210
6243
  { id: "sim-pt-001", label: "Alex Morgan" },
6211
6244
  { id: "sim-pt-002", label: "Jordan Lee" },
6212
6245
  { id: "sim-pt-003", label: "Sam Rivera" },
6213
6246
  { id: "sim-pt-004", label: "Taylor Chen" }
6214
- ], Wi = [
6247
+ ], Ki = [
6215
6248
  { id: "sim-rpt-001", label: "March 12, 2026" },
6216
6249
  { id: "sim-rpt-002", label: "February 4, 2026" },
6217
6250
  { id: "sim-rpt-003", label: "January 18, 2026" },
@@ -6231,18 +6264,18 @@ function Qr({
6231
6264
  }
6232
6265
  );
6233
6266
  }
6234
- function Ui() {
6235
- return Zi;
6267
+ function qi() {
6268
+ return Qi;
6236
6269
  }
6237
- function Qi() {
6238
- return Wi;
6270
+ function Ji() {
6271
+ return Ki;
6239
6272
  }
6240
- function Ki({
6273
+ function _i({
6241
6274
  rootStyle: e,
6242
6275
  onSelectPatient: r,
6243
6276
  onBack: n
6244
6277
  }) {
6245
- const a = Ui();
6278
+ const a = qi();
6246
6279
  return /* @__PURE__ */ t(
6247
6280
  Qr,
6248
6281
  {
@@ -6278,12 +6311,12 @@ function Ki({
6278
6311
  }
6279
6312
  );
6280
6313
  }
6281
- function qi({
6314
+ function $i({
6282
6315
  rootStyle: e,
6283
6316
  onSelectReport: r,
6284
6317
  onBack: n
6285
6318
  }) {
6286
- const a = Qi();
6319
+ const a = Ji();
6287
6320
  return /* @__PURE__ */ t(
6288
6321
  Qr,
6289
6322
  {
@@ -6319,7 +6352,7 @@ function qi({
6319
6352
  }
6320
6353
  );
6321
6354
  }
6322
- function Ji({
6355
+ function es({
6323
6356
  rootStyle: e,
6324
6357
  simulationSessionReady: r,
6325
6358
  simRole: n,
@@ -6332,7 +6365,7 @@ function Ji({
6332
6365
  if (!r) {
6333
6366
  if (n === "practitioner")
6334
6367
  return /* @__PURE__ */ t(
6335
- Ki,
6368
+ _i,
6336
6369
  {
6337
6370
  rootStyle: e,
6338
6371
  onSelectPatient: a,
@@ -6341,7 +6374,7 @@ function Ji({
6341
6374
  );
6342
6375
  if (n === "patient")
6343
6376
  return /* @__PURE__ */ t(
6344
- qi,
6377
+ $i,
6345
6378
  {
6346
6379
  rootStyle: e,
6347
6380
  onSelectReport: i,
@@ -6351,7 +6384,7 @@ function Ji({
6351
6384
  }
6352
6385
  return c;
6353
6386
  }
6354
- function _i(e) {
6387
+ function ts(e) {
6355
6388
  return j(() => {
6356
6389
  const r = bn(e);
6357
6390
  return {
@@ -6360,18 +6393,18 @@ function _i(e) {
6360
6393
  };
6361
6394
  }, [e]);
6362
6395
  }
6363
- function $i(e, r) {
6396
+ function rs(e, r) {
6364
6397
  const n = e.replace(/\/$/, ""), a = r.startsWith("/") ? r : `/${r}`;
6365
6398
  return `${n}${a}`;
6366
6399
  }
6367
6400
  function Kr(e, r) {
6368
- const n = $i(e || "", "/api/v1/report/full");
6401
+ const n = rs(e || "", "/api/v1/report/full");
6369
6402
  return r ? `${n}?report_id=${encodeURIComponent(r)}` : n;
6370
6403
  }
6371
- function es(e) {
6404
+ function ns(e) {
6372
6405
  return e instanceof DOMException && e.name === "AbortError";
6373
6406
  }
6374
- async function ts(e) {
6407
+ async function as(e) {
6375
6408
  const {
6376
6409
  baseUrl: r,
6377
6410
  reportId: n,
@@ -6382,10 +6415,10 @@ async function ts(e) {
6382
6415
  let c;
6383
6416
  try {
6384
6417
  c = await o(s, { method: "GET", headers: a, signal: i });
6385
- } catch (u) {
6386
- throw es(u) ? u : new Error(
6387
- `Network error fetching full report: ${u instanceof Error ? u.message : String(u)}`,
6388
- { cause: u }
6418
+ } catch (b) {
6419
+ throw ns(b) ? b : new Error(
6420
+ `Network error fetching full report: ${b instanceof Error ? b.message : String(b)}`,
6421
+ { cause: b }
6389
6422
  );
6390
6423
  }
6391
6424
  const d = await c.text();
@@ -6396,18 +6429,18 @@ async function ts(e) {
6396
6429
  m = d;
6397
6430
  }
6398
6431
  if (!c.ok) {
6399
- const x = (typeof m == "object" && m !== null && "error" in m && typeof m.error == "string" ? m.error : null) ?? `HTTP ${c.status}`, v = new Error(x);
6432
+ const g = (typeof m == "object" && m !== null && "error" in m && typeof m.error == "string" ? m.error : null) ?? `HTTP ${c.status}`, v = new Error(g);
6400
6433
  throw v.status = c.status, v;
6401
6434
  }
6402
6435
  if (m === null || typeof m != "object" || Array.isArray(m) || !("report" in m) || !("pages" in m))
6403
6436
  throw new Error("Unexpected response shape for /report/full: missing 'report' or 'pages'");
6404
6437
  return m;
6405
6438
  }
6406
- const rs = 5e3, qe = /* @__PURE__ */ new Map();
6407
- function ns(e, r, n, a) {
6439
+ const os = 5e3, _e = /* @__PURE__ */ new Map();
6440
+ function ls(e, r, n, a) {
6408
6441
  return `${e}|${r ?? ""}|${n ?? ""}|${a ?? ""}`;
6409
6442
  }
6410
- function as(e) {
6443
+ function is(e) {
6411
6444
  const {
6412
6445
  reportId: r,
6413
6446
  headers: n,
@@ -6416,73 +6449,73 @@ function as(e) {
6416
6449
  questionnaireResponseId: i,
6417
6450
  fetchImpl: s,
6418
6451
  onFullReportLoaded: c
6419
- } = e, d = Be(), m = ht({
6452
+ } = e, d = fe(), m = Re({
6420
6453
  apiKey: a,
6421
6454
  userId: o,
6422
6455
  questionnaireResponseId: i,
6423
6456
  headers: n
6424
- }), u = ns(
6457
+ }), b = ls(
6425
6458
  Kr(d, r),
6426
6459
  a,
6427
6460
  o,
6428
6461
  i
6429
- ), x = (h) => (c && h.then(c, () => {
6430
- }), h), v = () => {
6431
- const h = qe.get(u);
6432
- if (h && Date.now() < h.expiresAt) return x(h.promise);
6433
- const f = ts({
6462
+ ), g = (f) => (c && f.then(c, () => {
6463
+ }), f), v = () => {
6464
+ const f = _e.get(b);
6465
+ if (f && Date.now() < f.expiresAt) return g(f.promise);
6466
+ const p = as({
6434
6467
  baseUrl: d,
6435
6468
  reportId: r,
6436
6469
  headers: m,
6437
6470
  fetchImpl: s
6438
6471
  });
6439
- return f.catch(() => qe.delete(u)), qe.set(u, { promise: f, expiresAt: Date.now() + rs }), x(f);
6472
+ return p.catch(() => _e.delete(b)), _e.set(b, { promise: p, expiresAt: Date.now() + os }), g(p);
6440
6473
  };
6441
6474
  v();
6442
- const b = (h) => v();
6475
+ const u = (f) => v();
6443
6476
  return {
6444
- dashboard: async (h) => {
6445
- const f = await b();
6446
- return zr(f.pages.dashboard, f.organ_content);
6477
+ dashboard: async (f) => {
6478
+ const p = await u();
6479
+ return zr(p.pages.dashboard, p.organ_content);
6447
6480
  },
6448
- "total-predictive-index": async (h) => {
6449
- const f = await b();
6481
+ "total-predictive-index": async (f) => {
6482
+ const p = await u();
6450
6483
  return Xr(
6451
- f.pages["total-predictive-index"],
6452
- f.organ_content,
6453
- f.cortisol_content
6484
+ p.pages["total-predictive-index"],
6485
+ p.organ_content,
6486
+ p.cortisol_content
6454
6487
  );
6455
6488
  },
6456
- "wellness-indicators": async (h) => Vr((await b()).pages["wellness-indicators"]),
6457
- "questionnaire-analysis": async (h) => Fr(
6458
- (await b()).pages["questionnaire-analysis"]
6489
+ "wellness-indicators": async (f) => Vr((await u()).pages["wellness-indicators"]),
6490
+ "questionnaire-analysis": async (f) => Fr(
6491
+ (await u()).pages["questionnaire-analysis"]
6459
6492
  ),
6460
- "supplement-schedule": async (h) => Yr((await b()).pages["supplement-schedule"]),
6461
- "lab-results": async (h) => {
6462
- const f = await b();
6463
- return Er(f.pages["lab-results"], f.triad_content);
6493
+ "supplement-schedule": async (f) => Yr((await u()).pages["supplement-schedule"]),
6494
+ "lab-results": async (f) => {
6495
+ const p = await u();
6496
+ return Er(p.pages["lab-results"], p.triad_content);
6464
6497
  },
6465
- "suggested-products": async (h) => {
6466
- const f = await b();
6498
+ "suggested-products": async (f) => {
6499
+ const p = await u();
6467
6500
  return Gr(
6468
- f.pages["suggested-products"],
6469
- f.report.available_pages
6501
+ p.pages["suggested-products"],
6502
+ p.report.available_pages
6470
6503
  );
6471
6504
  },
6472
- "lab-analysis": async (h) => Or((await b()).pages["lab-analysis"]),
6473
- "alert-lab-summary": async (h) => {
6474
- const f = await b();
6505
+ "lab-analysis": async (f) => Or((await u()).pages["lab-analysis"]),
6506
+ "alert-lab-summary": async (f) => {
6507
+ const p = await u();
6475
6508
  return Rr(
6476
- f.pages["alert-lab-summary"],
6477
- f.alert_lab_content
6509
+ p.pages["alert-lab-summary"],
6510
+ p.alert_lab_content
6478
6511
  );
6479
6512
  }
6480
6513
  };
6481
6514
  }
6482
- function os(e, r) {
6515
+ function ss(e, r) {
6483
6516
  return e === r ? !0 : !e || !r || e.length !== r.length ? !1 : e.every((n, a) => n === r[a]);
6484
6517
  }
6485
- function ls({
6518
+ function cs({
6486
6519
  config: e,
6487
6520
  apiKey: r,
6488
6521
  reportHttpConfig: n,
@@ -6493,52 +6526,52 @@ function ls({
6493
6526
  dashboardTabContentCacheTtlMs: c,
6494
6527
  simulationReportId: d
6495
6528
  }) {
6496
- const m = r ?? (e == null ? void 0 : e.apiKey), u = Ao(m), x = i === void 0 && s === void 0, [v, b] = H(), g = j(() => {
6529
+ const m = r ?? (e == null ? void 0 : e.apiKey), b = Ao(m), g = i === void 0 && s === void 0, [v, u] = H(), h = j(() => {
6497
6530
  const P = { ...n ?? {} };
6498
6531
  return d != null && (P.reportId = d), P;
6499
- }, [n, d]), h = j(
6532
+ }, [n, d]), f = j(
6500
6533
  () => [
6501
- g.apiKey ?? "",
6502
- g.userId ?? "",
6503
- g.reportId ?? "",
6504
- g.questionnaireResponseId ?? ""
6534
+ h.apiKey ?? "",
6535
+ h.userId ?? "",
6536
+ h.reportId ?? "",
6537
+ h.questionnaireResponseId ?? ""
6505
6538
  ].join("|"),
6506
6539
  [
6507
- g.apiKey,
6508
- g.userId,
6509
- g.reportId,
6510
- g.questionnaireResponseId
6540
+ h.apiKey,
6541
+ h.userId,
6542
+ h.reportId,
6543
+ h.questionnaireResponseId
6511
6544
  ]
6512
- ), f = F(h);
6545
+ ), p = F(f);
6513
6546
  V(() => {
6514
- f.current = h, b(void 0);
6515
- }, [h]);
6547
+ p.current = f, u(void 0);
6548
+ }, [f]);
6516
6549
  const y = B((P, A) => {
6517
- if (f.current !== A) return;
6550
+ if (p.current !== A) return;
6518
6551
  const S = [...P.report.available_pages];
6519
- b(
6520
- (T) => os(T, S) ? T : S
6552
+ u(
6553
+ (L) => ss(L, S) ? L : S
6521
6554
  );
6522
6555
  }, []), C = j(() => {
6523
- const P = as({
6524
- ...g,
6525
- onFullReportLoaded: (A) => y(A, h)
6556
+ const P = is({
6557
+ ...h,
6558
+ onFullReportLoaded: (A) => y(A, f)
6526
6559
  });
6527
- return Pi(P, a);
6528
- }, [a, y, h, g]), N = j(() => o || Kl(g), [o, g]);
6560
+ return Hi(P, a);
6561
+ }, [a, y, f, h]), N = j(() => o || Kl(h), [o, h]);
6529
6562
  return {
6530
- apiKeyAccepted: u,
6531
- useDefaultTabData: x,
6563
+ apiKeyAccepted: b,
6564
+ useDefaultTabData: g,
6532
6565
  resolvedDashboardContentFetchers: C,
6533
6566
  resolvedExportReports: N,
6534
- resolvedCacheTtlMs: c ?? Mi,
6567
+ resolvedCacheTtlMs: c ?? ji,
6535
6568
  availableReportPages: v
6536
6569
  };
6537
6570
  }
6538
- function is(e) {
6571
+ function ds(e) {
6539
6572
  const { logo: r } = e, { src: n, srcMobile: a, alt: o, width: i, height: s, widthMobile: c, heightMobile: d, placeholder: m } = r;
6540
6573
  if (n && a)
6541
- return /* @__PURE__ */ l(te, { children: [
6574
+ return /* @__PURE__ */ l(ae, { children: [
6542
6575
  /* @__PURE__ */ t(
6543
6576
  "img",
6544
6577
  {
@@ -6575,7 +6608,7 @@ function is(e) {
6575
6608
  );
6576
6609
  if (m) return /* @__PURE__ */ t(mn, {});
6577
6610
  }
6578
- function ss({
6611
+ function ms({
6579
6612
  role: e,
6580
6613
  patientLabel: r,
6581
6614
  onChangeUser: n
@@ -6603,29 +6636,29 @@ function ss({
6603
6636
  )
6604
6637
  ] });
6605
6638
  }
6606
- function we(e) {
6639
+ function Ne(e) {
6607
6640
  return e === "practitioner" ? "practitioner" : e === "patient" ? "patient" : null;
6608
6641
  }
6609
- function cs(e) {
6642
+ function us(e) {
6610
6643
  const [r, n] = H(
6611
- () => we(e)
6612
- ), [a, o] = H(null), [i, s] = H(""), [c, d] = H(null), [m, u] = H(""), x = j(() => {
6644
+ () => Ne(e)
6645
+ ), [a, o] = H(null), [i, s] = H(""), [c, d] = H(null), [m, b] = H(""), g = j(() => {
6613
6646
  if (r === "practitioner" && a != null)
6614
6647
  return a;
6615
6648
  if (r === "patient" && c != null)
6616
6649
  return c;
6617
- }, [r, a, c]), v = r === "practitioner" && a !== null || r === "patient" && c !== null, b = B(() => {
6618
- n(we(e)), o(null), s(""), d(null), u("");
6619
- }, [e]), g = B(() => n("practitioner"), []), h = B(() => n("patient"), []), f = B(
6620
- () => n(we(e)),
6650
+ }, [r, a, c]), v = r === "practitioner" && a !== null || r === "patient" && c !== null, u = B(() => {
6651
+ n(Ne(e)), o(null), s(""), d(null), b("");
6652
+ }, [e]), h = B(() => n("practitioner"), []), f = B(() => n("patient"), []), p = B(
6653
+ () => n(Ne(e)),
6621
6654
  [e]
6622
6655
  ), y = B(
6623
- () => n(we(e)),
6656
+ () => n(Ne(e)),
6624
6657
  [e]
6625
6658
  ), C = B((w, P) => {
6626
6659
  o(w), s(P);
6627
6660
  }, []), N = B((w, P) => {
6628
- d(w), u(P);
6661
+ d(w), b(P);
6629
6662
  }, []);
6630
6663
  return {
6631
6664
  simRole: r,
@@ -6637,19 +6670,19 @@ function cs(e) {
6637
6670
  simPatientReportId: c,
6638
6671
  setSimPatientReportId: d,
6639
6672
  simPatientReportLabel: m,
6640
- setSimPatientReportLabel: u,
6641
- simulationReportId: x,
6673
+ setSimPatientReportLabel: b,
6674
+ simulationReportId: g,
6642
6675
  simulationSessionReady: v,
6643
- resetSimulationSession: b,
6644
- onChoosePractitioner: g,
6645
- onChoosePatient: h,
6646
- onBackFromPatientPicker: f,
6676
+ resetSimulationSession: u,
6677
+ onChoosePractitioner: h,
6678
+ onChoosePatient: f,
6679
+ onBackFromPatientPicker: p,
6647
6680
  onBackFromPatientReportPicker: y,
6648
6681
  onSelectPatient: C,
6649
6682
  onSelectPatientReport: N
6650
6683
  };
6651
6684
  }
6652
- function ds({
6685
+ function bs({
6653
6686
  activeNavItemIdProp: e,
6654
6687
  defaultActiveNavItemId: r,
6655
6688
  onActiveNavItemChange: n
@@ -6662,21 +6695,21 @@ function ds({
6662
6695
  );
6663
6696
  return { activeItemId: i, handleNavItemClick: s };
6664
6697
  }
6665
- const ms = "Your lab results will be available once the lab requisition has been completed and processed.", us = /* @__PURE__ */ new Set([
6698
+ const hs = "Your lab results will be available once the lab requisition has been completed and processed.", fs = /* @__PURE__ */ new Set([
6666
6699
  "lab-results",
6667
6700
  "lab-analysis",
6668
6701
  "alert-lab-summary"
6669
6702
  ]);
6670
- function bs(e) {
6671
- if (!e) return Ae;
6703
+ function gs(e) {
6704
+ if (!e) return Le;
6672
6705
  const r = new Set(e);
6673
- return Ae.map((n) => !us.has(n.id) || r.has(n.id) ? n : {
6706
+ return Le.map((n) => !fs.has(n.id) || r.has(n.id) ? n : {
6674
6707
  ...n,
6675
6708
  disabled: !0,
6676
- disabledTooltip: ms
6709
+ disabledTooltip: hs
6677
6710
  });
6678
6711
  }
6679
- function hs({
6712
+ function ps({
6680
6713
  config: e,
6681
6714
  apiKey: r,
6682
6715
  viewerRole: n,
@@ -6687,56 +6720,56 @@ function hs({
6687
6720
  reportHttpConfig: c,
6688
6721
  dashboardContentFetchers: d,
6689
6722
  onDashboardTabContentLoadError: m,
6690
- onExportReports: u,
6691
- renderMainContent: x,
6723
+ onExportReports: b,
6724
+ renderMainContent: g,
6692
6725
  activeNavItemId: v,
6693
- defaultActiveNavItemId: b = Kt,
6694
- onActiveNavItemChange: g,
6695
- shellClassName: h,
6696
- sideMenuClassName: f,
6726
+ defaultActiveNavItemId: u = Kt,
6727
+ onActiveNavItemChange: h,
6728
+ shellClassName: f,
6729
+ sideMenuClassName: p,
6697
6730
  mainClassName: y,
6698
6731
  sidebarWidthClassName: C,
6699
6732
  dashboardTabContentCacheTtlMs: N
6700
6733
  }) {
6701
6734
  var se;
6702
6735
  _r();
6703
- const { resolvedBranding: w, rootStyle: P } = _i(e), A = cs(n), { activeItemId: S, handleNavItemClick: T } = ds({
6736
+ const { resolvedBranding: w, rootStyle: P } = ts(e), A = us(n), { activeItemId: S, handleNavItemClick: L } = bs({
6704
6737
  activeNavItemIdProp: v,
6705
- defaultActiveNavItemId: b,
6706
- onActiveNavItemChange: g
6707
- }), z = ((se = Ae.find((J) => J.id === S)) == null ? void 0 : se.label) ?? S, G = j(
6708
- () => o !== void 0 ? o : is(w),
6738
+ defaultActiveNavItemId: u,
6739
+ onActiveNavItemChange: h
6740
+ }), z = ((se = Le.find((J) => J.id === S)) == null ? void 0 : se.label) ?? S, G = j(
6741
+ () => o !== void 0 ? o : ds(w),
6709
6742
  [w, o]
6710
- ), D = ls({
6743
+ ), D = cs({
6711
6744
  config: e,
6712
6745
  apiKey: r,
6713
6746
  reportHttpConfig: c,
6714
6747
  dashboardContentFetchers: d,
6715
- onExportReports: u,
6748
+ onExportReports: b,
6716
6749
  content: s,
6717
- renderMainContent: x,
6750
+ renderMainContent: g,
6718
6751
  dashboardTabContentCacheTtlMs: N,
6719
6752
  simulationReportId: A.simulationReportId
6720
6753
  }), q = j(
6721
- () => bs(D.availableReportPages),
6754
+ () => gs(D.availableReportPages),
6722
6755
  [D.availableReportPages]
6723
6756
  ), $ = j(
6724
6757
  () => new Set(q.filter((J) => J.disabled).map((J) => J.id)),
6725
6758
  [q]
6726
6759
  );
6727
6760
  V(() => {
6728
- $.has(S) && T(Kt);
6729
- }, [S, $, T]);
6730
- const De = j(
6761
+ $.has(S) && L(Kt);
6762
+ }, [S, $, L]);
6763
+ const ze = j(
6731
6764
  () => [
6732
6765
  "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))]",
6733
6766
  y
6734
6767
  ].filter(Boolean).join(" "),
6735
6768
  [y]
6736
- ), ie = D.useDefaultTabData && D.apiKeyAccepted, he = /* @__PURE__ */ t(
6737
- Yi,
6769
+ ), ie = D.useDefaultTabData && D.apiKeyAccepted, ge = /* @__PURE__ */ t(
6770
+ Zi,
6738
6771
  {
6739
- renderMainContent: x,
6772
+ renderMainContent: g,
6740
6773
  content: s,
6741
6774
  activeItemId: S,
6742
6775
  activeLabel: z,
@@ -6746,15 +6779,15 @@ function hs({
6746
6779
  apiKeyAccepted: D.apiKeyAccepted,
6747
6780
  useDefaultTabData: D.useDefaultTabData
6748
6781
  }
6749
- ), fe = /* @__PURE__ */ t(
6750
- ss,
6782
+ ), pe = /* @__PURE__ */ t(
6783
+ ms,
6751
6784
  {
6752
6785
  role: A.simRole,
6753
6786
  patientLabel: A.simRole === "patient" ? A.simPatientReportLabel : A.simPractitionerPatientLabel,
6754
6787
  onChangeUser: A.resetSimulationSession
6755
6788
  }
6756
- ), ge = /* @__PURE__ */ t(
6757
- Vi,
6789
+ ), xe = /* @__PURE__ */ t(
6790
+ Ui,
6758
6791
  {
6759
6792
  wrapTabContentCache: ie,
6760
6793
  fetchers: D.resolvedDashboardContentFetchers,
@@ -6765,26 +6798,26 @@ function hs({
6765
6798
  menuTitle: a !== void 0 ? a : w.title,
6766
6799
  logo: G,
6767
6800
  sideMenuUserProfile: i,
6768
- sideMenuFooterContent: fe,
6769
- sideMenuClassName: f,
6801
+ sideMenuFooterContent: pe,
6802
+ sideMenuClassName: p,
6770
6803
  sideMenuItems: q,
6771
6804
  activeItemId: S,
6772
- handleNavItemClick: T,
6773
- shellClassName: h,
6805
+ handleNavItemClick: L,
6806
+ shellClassName: f,
6774
6807
  sidebarWidthClassName: C,
6775
- mainAreaClassName: De,
6776
- mainContent: he
6808
+ mainAreaClassName: ze,
6809
+ mainContent: ge
6777
6810
  }
6778
6811
  }
6779
- ), pe = j(
6812
+ ), ve = j(
6780
6813
  () => ({
6781
6814
  onExportReports: D.resolvedExportReports,
6782
- onNavigateToNavItem: T
6815
+ onNavigateToNavItem: L
6783
6816
  }),
6784
- [D.resolvedExportReports, T]
6817
+ [D.resolvedExportReports, L]
6785
6818
  );
6786
- return /* @__PURE__ */ t(Ka, { value: pe, children: /* @__PURE__ */ t(
6787
- Ji,
6819
+ return /* @__PURE__ */ t(Ka, { value: ve, children: /* @__PURE__ */ t(
6820
+ es,
6788
6821
  {
6789
6822
  rootStyle: P,
6790
6823
  simulationSessionReady: A.simulationSessionReady,
@@ -6793,11 +6826,11 @@ function hs({
6793
6826
  onBackFromPatientPicker: A.onBackFromPatientPicker,
6794
6827
  onSelectPatientReport: A.onSelectPatientReport,
6795
6828
  onBackFromPatientReportPicker: A.onBackFromPatientReportPicker,
6796
- children: ge
6829
+ children: xe
6797
6830
  }
6798
6831
  ) });
6799
6832
  }
6800
- function fs({
6833
+ function xs({
6801
6834
  allowedPostMessageOrigins: e,
6802
6835
  validatePostMessageConfig: r
6803
6836
  } = {}) {
@@ -6826,7 +6859,7 @@ function fs({
6826
6859
  };
6827
6860
  return window.addEventListener("message", s), () => window.removeEventListener("message", s);
6828
6861
  }, [e, r]), /* @__PURE__ */ t(
6829
- hs,
6862
+ ps,
6830
6863
  {
6831
6864
  apiKey: yr,
6832
6865
  config: n,
@@ -6835,13 +6868,13 @@ function fs({
6835
6868
  }
6836
6869
  );
6837
6870
  }
6838
- function Ws(e = "root", r) {
6871
+ function qs(e = "root", r) {
6839
6872
  const n = document.getElementById(e);
6840
6873
  if (!n)
6841
6874
  throw new Error("Root element not found");
6842
6875
  ln(n).render(
6843
6876
  /* @__PURE__ */ t(an, { children: /* @__PURE__ */ t("div", { className: "flex h-full min-h-0 w-full flex-col", children: /* @__PURE__ */ t(
6844
- fs,
6877
+ xs,
6845
6878
  {
6846
6879
  allowedPostMessageOrigins: r == null ? void 0 : r.allowedPostMessageOrigins,
6847
6880
  validatePostMessageConfig: r == null ? void 0 : r.validatePostMessageConfig
@@ -6850,100 +6883,102 @@ function Ws(e = "root", r) {
6850
6883
  );
6851
6884
  }
6852
6885
  export {
6853
- Cs as AlertLabSummaryCard,
6854
- ut as AlertLabSummaryIcon,
6855
- Hs as AlertLabSummaryTab,
6886
+ Ls as AlertLabSummaryCard,
6887
+ bt as AlertLabSummaryIcon,
6888
+ Bs as AlertLabSummaryTab,
6856
6889
  Qa as AlertLabSummaryTabSkeleton,
6857
6890
  _ as Badge,
6858
6891
  M as Button,
6859
- Si as DASHBOARD_TAB_NAV_IDS,
6860
- Ie as DASHBOARD_TAB_PLUGINS,
6861
- Mi as DEFAULT_DASHBOARD_TAB_CONTENT_CACHE_TTL_MS,
6892
+ ki as DASHBOARD_TAB_NAV_IDS,
6893
+ De as DASHBOARD_TAB_PLUGINS,
6894
+ ji as DEFAULT_DASHBOARD_TAB_CONTENT_CACHE_TTL_MS,
6862
6895
  k as DEFAULT_METABOLIC_BRANDING,
6863
- L as DashboardCard,
6864
- lt as DashboardCardSectionHeader,
6896
+ T as DashboardCard,
6897
+ it as DashboardCardSectionHeader,
6865
6898
  il as DashboardIcon,
6866
- ks as DashboardTab,
6867
- Hi as DashboardTabContentCacheProvider,
6899
+ Is as DashboardTab,
6900
+ Bi as DashboardTabContentCacheProvider,
6868
6901
  so as DashboardTabSkeleton,
6869
6902
  or as GradientRangeBar,
6870
- be as LAB_METRIC_RANGE_BAR_SEGMENTS,
6903
+ he as LAB_METRIC_RANGE_BAR_SEGMENTS,
6871
6904
  sl as LabAnalysisIcon,
6872
- js as LabAnalysisTab,
6905
+ Ds as LabAnalysisTab,
6873
6906
  co as LabAnalysisTabSkeleton,
6874
6907
  ua as LabAnalysisTriadCard,
6875
- As as LabMetricRangeCard,
6908
+ Ps as LabMetricRangeCard,
6876
6909
  cl as LabResultsIcon,
6877
6910
  hr as LabResultsIntroCard,
6878
- Bs as LabResultsTab,
6911
+ Rs as LabResultsTab,
6879
6912
  xo as LabResultsTabSkeleton,
6880
6913
  mn as LogoPlaceholder,
6881
- Xs as LogoutIcon,
6914
+ Ws as LogoutIcon,
6882
6915
  yr as METABOLIC_DASHBOARD_STUB_API_KEY,
6883
6916
  Nr as METABOLIC_IFRAME_CONFIG_QUERY_KEY,
6884
6917
  Cr as METABOLIC_IFRAME_SET_CONFIG_MESSAGE,
6885
6918
  Co as METABOLIC_REPORT_PAGES_API_BASE_URL,
6886
- hs as MetabolicDashboard,
6887
- Gi as MetabolicDashboardDefaultMain,
6888
- fs as MetabolicEmbedRoot,
6919
+ ps as MetabolicDashboard,
6920
+ Vi as MetabolicDashboardDefaultMain,
6921
+ xs as MetabolicEmbedRoot,
6889
6922
  Rn as MetabolicScoreBar,
6890
- ae as MetabolicTriadCategoryPanel,
6891
- ke as MetabolicTriadCategoryPanelSkeleton,
6892
- Ls as MetabolicTriadIntroCard,
6923
+ ne as MetabolicTriadCategoryPanel,
6924
+ Be as MetabolicTriadCategoryPanelSkeleton,
6925
+ Ss as MetabolicTriadIntroCard,
6893
6926
  gr as MetabolicTriadSectionCard,
6894
6927
  lr as MetaflammationGauge,
6895
6928
  wa as MetaflammationGaugeCard,
6896
6929
  Pn as OVERALL_SCORE_GRADIENT_STOPS,
6897
6930
  Sn as OVERALL_SCORE_LABELS,
6898
6931
  Do as OrganDetailPage,
6899
- Ta as OverallMetabolicScoreCard,
6932
+ La as OverallMetabolicScoreCard,
6900
6933
  I as PageHeader,
6901
6934
  Yn as PractitionerNoteRow,
6902
6935
  Pa as PractitionerNotesCard,
6903
6936
  dl as PredictiveIndexIcon,
6904
- Ts as ProfileSummaryCard,
6905
- Is as QuestionnaireAnalysisTab,
6937
+ Ms as ProfileSummaryCard,
6938
+ zs as QuestionnaireAnalysisTab,
6906
6939
  zo as QuestionnaireAnalysisTabSkeleton,
6907
6940
  ml as QuestionnaireIcon,
6908
6941
  oe as SegmentedRangeBar,
6909
6942
  gl as ShellLayout,
6910
6943
  Fl as SideMenu,
6911
- Vs as SideMenuFooter,
6944
+ Us as SideMenuFooter,
6912
6945
  El as SideMenuNavButton,
6913
6946
  jt as SkeletonCircle,
6914
- p as SkeletonRect,
6947
+ x as SkeletonRect,
6915
6948
  ul as SuggestedProductsIcon,
6916
- Ds as SuggestedProductsTab,
6949
+ Os as SuggestedProductsTab,
6917
6950
  Go as SuggestedProductsTabSkeleton,
6918
6951
  Sa as SupplementScheduleCard,
6919
6952
  bl as SupplementScheduleIcon,
6920
- Rs as SupplementScheduleTab,
6953
+ Es as SupplementScheduleTab,
6921
6954
  Yo as SupplementScheduleTabSkeleton,
6922
6955
  qn as SupplementScheduleTableRow,
6923
6956
  $n as SupplementTriadMarkGroup,
6924
6957
  Y as TRIAD_RESILIENCY_TREND_SEGMENTS,
6925
6958
  K as TabSkeletonRoot,
6926
6959
  Z as Tooltip,
6927
- zs as TotalPredictiveIndexTab,
6960
+ Fs as TotalPredictiveIndexTab,
6928
6961
  Zo as TotalPredictiveIndexTabSkeleton,
6929
6962
  ee as TriadMarkIcon,
6930
6963
  ra as TriadRadar,
6931
- Ps as TriadRadarReportCard,
6932
- Ss as WelcomeMessageCard,
6933
- Ms as WellnessIndicatorCard,
6964
+ Hs as TriadRadarReportCard,
6965
+ ks as WelcomeMessageCard,
6966
+ js as WellnessIndicatorCard,
6934
6967
  hl as WellnessIndicatorsIcon,
6935
- Os as WellnessIndicatorsTab,
6968
+ Gs as WellnessIndicatorsTab,
6936
6969
  Jo as WellnessIndicatorsTabSkeleton,
6937
6970
  Kn as activeSegmentHighlightColor,
6971
+ Jl as buildReportExistsUrl,
6938
6972
  xl as buildReportPageUrl,
6973
+ Qs as checkMetabolicReportExists,
6939
6974
  Vl as createHttpDashboardContentFetchers,
6940
6975
  Kl as createReportPdfDownloader,
6941
6976
  tl as decodeMetabolicIframeConfig,
6942
- Gs as emitMetabolicDashboardLogout,
6977
+ Vs as emitMetabolicDashboardLogout,
6943
6978
  el as encodeMetabolicIframeConfig,
6944
6979
  _r as ensureAgChartsModules,
6945
6980
  U as fetchReportPage,
6946
- Be as getBuiltInReportPagesApiBaseUrl,
6981
+ fe as getBuiltInReportPagesApiBaseUrl,
6947
6982
  zl as getDashboardTabStaticPageHeader,
6948
6983
  gt as isDashboardNavItemId,
6949
6984
  Ao as isMetabolicDashboardApiKeyAccepted,
@@ -6957,17 +6992,17 @@ export {
6957
6992
  Yr as mapSupplementScheduleDtoToTabContent,
6958
6993
  Xr as mapTotalPredictiveIndexDtoToTabContent,
6959
6994
  Vr as mapWellnessIndicatorsDtoToTabContent,
6960
- Pi as mergeDashboardContentFetchers,
6995
+ Hi as mergeDashboardContentFetchers,
6961
6996
  _t as metabolicBrandingToStyle,
6962
- Fs as metabolicIframeSrcAppendStealthParams,
6963
- Es as metabolicIframeSrcWithConfig,
6964
- Ws as mountMetabolicEmbed,
6965
- Ys as postMetabolicIframeConfig,
6997
+ Xs as metabolicIframeSrcAppendStealthParams,
6998
+ Ys as metabolicIframeSrcWithConfig,
6999
+ qs as mountMetabolicEmbed,
7000
+ Zs as postMetabolicIframeConfig,
6966
7001
  ol as readMetabolicEmbedStealthParams,
6967
7002
  rl as readMetabolicIframeConfigFromSearchParams,
6968
7003
  bn as resolveMetabolicBranding,
6969
7004
  W as sideMenuItemIconClass,
6970
- Pe as useAgCharts,
6971
- Bi as useDashboardTabContent,
6972
- Zs as useInvalidateDashboardTabContentCache
7005
+ Me as useAgCharts,
7006
+ Ri as useDashboardTabContent,
7007
+ Ks as useInvalidateDashboardTabContentCache
6973
7008
  };