@metaboliccode-dev/widget 0.2.12 → 0.2.13
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/MetabolicDashboard/api/fetchReportExists.d.ts +9 -0
- package/dist/MetabolicDashboard/api/fetchReportExists.test.d.ts +1 -0
- package/dist/MetabolicDashboard/api/index.d.ts +2 -0
- package/dist/MetabolicDashboard/index.d.ts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +929 -876
- package/package.json +1 -1
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
|
|
4
|
+
import { useAgCharts as Se, ensureAgChartsModules as _r } from "./ag-charts.js";
|
|
5
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
|
|
7
|
-
import { A as
|
|
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
|
|
196
|
+
var p, v, u, f, h, g, 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 = ((
|
|
202
|
+
}, n = ((p = e.card) == null ? void 0 : p.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) ?? ((
|
|
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: ((
|
|
209
|
+
borderRadius: ((f = e.badge) == null ? void 0 : f.borderRadius) ?? ((h = e.radius) == null ? void 0 : h.badge) ?? k.badge.borderRadius
|
|
210
210
|
}, i = {
|
|
211
211
|
...k.colors,
|
|
212
212
|
...e.colors
|
|
213
|
-
}, s = ((
|
|
213
|
+
}, s = ((g = e.colors) == null ? void 0 : g.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: ((
|
|
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
|
-
},
|
|
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:
|
|
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",
|
|
260
|
+
const hn = "inline-flex cursor-pointer items-center gap-[var(--mb-button-gap)] rounded-[var(--mb-button-radius)] border border-[color:var(--mb-color-button-border)] [border-width:var(--mb-button-border-width)] bg-[color:var(--mb-color-button-bg)] px-[var(--mb-button-padding-x)] py-[var(--mb-button-padding-y)] [font-size:var(--mb-button-font-size)] [font-weight:var(--mb-button-font-weight)] text-[color:var(--mb-color-button-text)] shadow-[var(--mb-button-shadow)] transition hover:bg-[color:var(--mb-color-button-hover)] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[color:var(--mb-color-focus-ring)] focus-visible:ring-offset-2 focus-visible:ring-offset-[color:var(--mb-color-focus-offset)] disabled:cursor-not-allowed disabled:opacity-50", fn = "inline-flex cursor-pointer items-center gap-[var(--mb-button-gap)] rounded-[var(--mb-button-radius)] border-0 bg-[color:var(--mb-color-nav-hover)] px-4 py-3.5 text-[15px] font-medium leading-normal text-[color:var(--mb-color-text)] shadow-none transition hover:bg-[color:var(--mb-color-nav-active)] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[color:var(--mb-color-focus-ring)] focus-visible:ring-offset-2 focus-visible:ring-offset-[color:var(--mb-color-focus-offset)] disabled:cursor-not-allowed disabled:opacity-50", gn = "flex w-full min-w-0 shrink-0 cursor-pointer items-center justify-center gap-0 rounded-[var(--mb-side-menu-radius)] border border-transparent px-2 py-[var(--mb-side-menu-padding-y)] text-left [font-size:var(--mb-side-menu-font-size)] [font-weight:var(--mb-side-menu-font-weight)] [border-width:var(--mb-side-menu-border-width)] shadow-[var(--mb-side-menu-shadow)] transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[color:var(--mb-color-focus-ring)] focus-visible:ring-offset-2 focus-visible:ring-offset-[color:var(--mb-color-focus-offset)] disabled:cursor-not-allowed disabled:opacity-50 lg:justify-start lg:gap-[var(--mb-side-menu-gap)] lg:px-[var(--mb-side-menu-padding-x)]", pn = "flex h-8 w-full min-w-0 shrink-0 cursor-pointer items-center justify-center gap-2 rounded-[var(--mb-side-menu-radius)] border-0 bg-transparent px-3 py-0 text-left text-sm text-[color:var(--mb-color-text)] shadow-none transition-colors hover:bg-[color:var(--mb-color-nav-hover)] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[color:var(--mb-color-focus-ring)] focus-visible:ring-offset-2 focus-visible:ring-offset-[color:var(--mb-color-focus-offset)] disabled:cursor-not-allowed disabled:opacity-50 lg:justify-start [&_svg]:block", Me = "inline-flex shrink-0 cursor-pointer items-center gap-1.5 rounded-none rounded-br-[length:var(--mb-radius-button)] rounded-tr-[length:var(--mb-radius-button)] border-0 px-5 py-2.5 text-sm font-bold uppercase tracking-wide text-white shadow-none transition hover:brightness-90 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[color:var(--mb-color-focus-ring)] focus-visible:ring-offset-2 focus-visible:ring-offset-[color:var(--mb-color-card-bg)] disabled:cursor-not-allowed disabled:opacity-50 [&_svg]:shrink-0 [&_svg]:text-white", xn = `${Me} bg-[#3a9e6a]`, vn = `${Me} bg-[#d94040]`, wn = `${Me} bg-[#d94040]`, yn = `${Me} bg-[#e09a1a]`;
|
|
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
|
|
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)] ${
|
|
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
|
|
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",
|
|
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 =
|
|
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
|
|
353
|
-
function
|
|
352
|
+
const Oe = "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:
|
|
360
|
+
/* @__PURE__ */ t("h2", { className: Oe, 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:
|
|
363
|
+
/* @__PURE__ */ t("h2", { className: Oe, children: e }),
|
|
364
364
|
r
|
|
365
|
-
] }) : /* @__PURE__ */ t("h2", { className: `mb-2 ${
|
|
365
|
+
] }) : /* @__PURE__ */ t("h2", { className: `mb-2 ${Oe} ${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
|
|
465
|
+
function $e(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
|
|
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 =
|
|
488
|
+
const n = $e(r.trim() || "#ffffff"), a = $e(e.trim() || "#f1f5f9");
|
|
489
489
|
return Bn(a, n);
|
|
490
490
|
}
|
|
491
|
-
function
|
|
491
|
+
function st() {
|
|
492
492
|
const e = F(null), [r, n] = H(null);
|
|
493
|
-
return
|
|
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:
|
|
499
|
-
colorTextMuted:
|
|
500
|
-
colorCardBorder:
|
|
498
|
+
colorText: Tt(i),
|
|
499
|
+
colorTextMuted: Tt(s),
|
|
500
|
+
colorCardBorder: $e(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
|
|
510
|
+
const Ee = 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
|
-
|
|
564
|
-
const { ref: n, theme: a, themeReady: o } =
|
|
563
|
+
Se();
|
|
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:
|
|
570
|
+
style: { minHeight: Ee },
|
|
571
571
|
children: /* @__PURE__ */ t(
|
|
572
|
-
|
|
572
|
+
lt,
|
|
573
573
|
{
|
|
574
574
|
options: i,
|
|
575
575
|
className: "block min-w-0 w-full overflow-x-clip",
|
|
576
|
-
style: { height:
|
|
576
|
+
style: { height: Ee, minHeight: Ee }
|
|
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 }, (
|
|
585
|
+
const o = r > 0 ? r : 1, i = Math.min(zn, o), s = Math.min(On, o), c = i + (s - i) * 0.33, d = i + (s - i) * 0.66, m = Array.from({ length: 8 }, (b, p) => Math.round(o * p / 7));
|
|
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:
|
|
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
|
-
|
|
646
|
-
const { ref: a, theme: o, themeReady: i } =
|
|
645
|
+
Se();
|
|
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
|
-
|
|
656
|
+
lt,
|
|
657
657
|
{
|
|
658
658
|
options: s,
|
|
659
659
|
className: "block w-full",
|
|
@@ -736,7 +736,7 @@ function Gn({ className: e }) {
|
|
|
736
736
|
}
|
|
737
737
|
);
|
|
738
738
|
}
|
|
739
|
-
function
|
|
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
|
|
781
|
+
function dt({ className: e }) {
|
|
782
782
|
return /* @__PURE__ */ l(
|
|
783
783
|
"svg",
|
|
784
784
|
{
|
|
@@ -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,
|
|
896
|
+
], Xn = 24, et = 12, mr = 14, Fe = 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
|
|
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 :
|
|
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 :
|
|
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:
|
|
933
|
+
padding: { top: 2, right: mr, bottom: 4, left: et },
|
|
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
|
-
|
|
968
|
+
Se();
|
|
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(${
|
|
971
|
+
const d = Zn(r, i, n), m = `calc(${et}px + (100% - ${et + 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:
|
|
977
|
+
style: { minHeight: Fe },
|
|
978
978
|
children: [
|
|
979
979
|
/* @__PURE__ */ t(
|
|
980
|
-
|
|
980
|
+
lt,
|
|
981
981
|
{
|
|
982
982
|
options: c,
|
|
983
983
|
className: "pointer-events-none block w-full overflow-visible",
|
|
984
|
-
style: { height:
|
|
984
|
+
style: { height: Fe, minHeight: Fe }
|
|
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((
|
|
1006
|
+
children: e.map((b, p) => /* @__PURE__ */ t("span", { className: "min-w-0 break-words px-0.5", children: b.label }, `${b.label}-${p}`))
|
|
1007
1007
|
}
|
|
1008
1008
|
)
|
|
1009
1009
|
] });
|
|
@@ -1057,16 +1057,16 @@ function $n({
|
|
|
1057
1057
|
) : null;
|
|
1058
1058
|
}) });
|
|
1059
1059
|
}
|
|
1060
|
-
const
|
|
1060
|
+
const tt = 292, ue = 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:
|
|
1067
|
+
width: tt,
|
|
1068
1068
|
height: ue,
|
|
1069
|
-
minWidth:
|
|
1069
|
+
minWidth: tt,
|
|
1070
1070
|
minHeight: ue,
|
|
1071
1071
|
background: { fill: "transparent" },
|
|
1072
1072
|
padding: { top: 2, right: 4, bottom: 2, left: 4 },
|
|
@@ -1128,10 +1128,10 @@ function ra({
|
|
|
1128
1128
|
fill: n,
|
|
1129
1129
|
stroke: a
|
|
1130
1130
|
}) {
|
|
1131
|
-
|
|
1132
|
-
const { ref: o, theme: i, themeReady: s } =
|
|
1131
|
+
Se();
|
|
1132
|
+
const { ref: o, theme: i, themeReady: s } = st(), c = j(() => e.map((m, b) => ({
|
|
1133
1133
|
category: m,
|
|
1134
|
-
value: ea(r[
|
|
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%, ${
|
|
1144
|
+
style: { width: `min(100%, ${tt}px)`, height: ue },
|
|
1145
1145
|
role: "img",
|
|
1146
1146
|
"aria-label": `Radar chart for ${e.join(", ")}`,
|
|
1147
1147
|
children: /* @__PURE__ */ t(
|
|
@@ -1181,7 +1181,7 @@ function St({ rows: e = [] }) {
|
|
|
1181
1181
|
`${r.left}-${n}`
|
|
1182
1182
|
)) });
|
|
1183
1183
|
}
|
|
1184
|
-
function
|
|
1184
|
+
function Ls(e) {
|
|
1185
1185
|
const {
|
|
1186
1186
|
metricTitle: r,
|
|
1187
1187
|
statusText: n,
|
|
@@ -1192,11 +1192,11 @@ function Cs(e) {
|
|
|
1192
1192
|
riskRows: c,
|
|
1193
1193
|
nutrientsLeadParagraph: d,
|
|
1194
1194
|
nutrientRows: m
|
|
1195
|
-
} = e,
|
|
1196
|
-
return /* @__PURE__ */ l(
|
|
1195
|
+
} = e, b = Kn(be, 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:
|
|
1199
|
+
/* @__PURE__ */ t("p", { className: "text-xl font-bold", style: { color: b }, children: n })
|
|
1200
1200
|
] }),
|
|
1201
1201
|
/* @__PURE__ */ t(
|
|
1202
1202
|
oe,
|
|
@@ -1230,7 +1230,7 @@ function Mt(e) {
|
|
|
1230
1230
|
function re(e) {
|
|
1231
1231
|
return Math.min(100, Math.max(0, e));
|
|
1232
1232
|
}
|
|
1233
|
-
function
|
|
1233
|
+
function He(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;
|
|
@@ -1242,12 +1242,12 @@ function aa(e, r, n, a) {
|
|
|
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),
|
|
1246
|
-
return
|
|
1245
|
+
const v = Math.min(...i), u = Math.max(...i);
|
|
1246
|
+
return u === v ? 50 : re((e - v) / (u - v) * 100);
|
|
1247
1247
|
}
|
|
1248
1248
|
if (o === "absoluteLinear") {
|
|
1249
|
-
const v = (a == null ? void 0 : a.scaleMin) ?? 0,
|
|
1250
|
-
return
|
|
1249
|
+
const v = (a == null ? void 0 : a.scaleMin) ?? 0, u = (a == null ? void 0 : a.scaleMax) ?? 200;
|
|
1250
|
+
return u === v ? 50 : re((e - v) / (u - v) * 100);
|
|
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;
|
|
@@ -1257,56 +1257,56 @@ function aa(e, r, n, a) {
|
|
|
1257
1257
|
return re(e / v * d);
|
|
1258
1258
|
}
|
|
1259
1259
|
if (e <= c) {
|
|
1260
|
-
const v = c - s,
|
|
1261
|
-
return re(d +
|
|
1260
|
+
const v = c - s, u = v > 0 ? (e - s) / v : 0;
|
|
1261
|
+
return re(d + u * d);
|
|
1262
1262
|
}
|
|
1263
|
-
const m = c - s,
|
|
1264
|
-
return re(2 * d +
|
|
1263
|
+
const m = c - s, b = m > 0 ? m : 1, p = Math.min(1, (e - c) / b);
|
|
1264
|
+
return re(2 * d + p * d);
|
|
1265
1265
|
}
|
|
1266
1266
|
function Z({ content: e, children: r, side: n = "top" }) {
|
|
1267
|
-
const a =
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
const
|
|
1271
|
-
if (!
|
|
1272
|
-
const
|
|
1273
|
-
let A = n === "top" ?
|
|
1274
|
-
S = Math.max(N, Math.min(S, w - y.width - N)), n === "top" && A < N ? A =
|
|
1267
|
+
const a = at(), o = F(null), i = F(null), [s, c] = H(!1), [d, m] = H(null), b = F(null), p = B(() => {
|
|
1268
|
+
b.current !== null && cancelAnimationFrame(b.current), b.current = requestAnimationFrame(() => {
|
|
1269
|
+
b.current = null;
|
|
1270
|
+
const f = o.current, h = i.current;
|
|
1271
|
+
if (!f || !h) return;
|
|
1272
|
+
const g = f.getBoundingClientRect(), y = h.getBoundingClientRect(), C = 4, N = 12, w = window.innerWidth, P = window.innerHeight;
|
|
1273
|
+
let A = n === "top" ? g.top - y.height - C : g.bottom + C, S = g.left + g.width / 2 - y.width / 2;
|
|
1274
|
+
S = Math.max(N, Math.min(S, w - y.width - N)), n === "top" && A < N ? A = g.bottom + C : n === "bottom" && A + y.height > P - N && (A = g.top - y.height - C), A = Math.max(N, Math.min(A, P - y.height - N)), m({ top: A, left: S });
|
|
1275
1275
|
});
|
|
1276
1276
|
}, [n]);
|
|
1277
|
-
|
|
1277
|
+
_e(() => {
|
|
1278
1278
|
if (!s) {
|
|
1279
|
-
|
|
1279
|
+
b.current !== null && (cancelAnimationFrame(b.current), b.current = null), m(null);
|
|
1280
1280
|
return;
|
|
1281
1281
|
}
|
|
1282
|
-
return window.addEventListener("scroll",
|
|
1283
|
-
|
|
1282
|
+
return window.addEventListener("scroll", p, !0), window.addEventListener("resize", p), () => {
|
|
1283
|
+
b.current !== null && (cancelAnimationFrame(b.current), b.current = null), window.removeEventListener("scroll", p, !0), window.removeEventListener("resize", p);
|
|
1284
1284
|
};
|
|
1285
|
-
}, [s,
|
|
1286
|
-
s &&
|
|
1285
|
+
}, [s, p, e]), _e(() => {
|
|
1286
|
+
s && p();
|
|
1287
1287
|
});
|
|
1288
1288
|
const v = $r(r) ? en(r, {
|
|
1289
1289
|
"aria-describedby": s ? a : void 0,
|
|
1290
|
-
onMouseEnter: (
|
|
1291
|
-
var h,
|
|
1292
|
-
(
|
|
1290
|
+
onMouseEnter: (f) => {
|
|
1291
|
+
var h, g;
|
|
1292
|
+
(g = (h = r.props).onMouseEnter) == null || g.call(h, f), c(!0);
|
|
1293
1293
|
},
|
|
1294
|
-
onMouseLeave: (
|
|
1295
|
-
var h,
|
|
1296
|
-
(
|
|
1294
|
+
onMouseLeave: (f) => {
|
|
1295
|
+
var h, g;
|
|
1296
|
+
(g = (h = r.props).onMouseLeave) == null || g.call(h, f), c(!1);
|
|
1297
1297
|
},
|
|
1298
|
-
onFocus: (
|
|
1299
|
-
var h,
|
|
1300
|
-
(
|
|
1298
|
+
onFocus: (f) => {
|
|
1299
|
+
var h, g;
|
|
1300
|
+
(g = (h = r.props).onFocus) == null || g.call(h, f), c(!0);
|
|
1301
1301
|
},
|
|
1302
|
-
onBlur: (
|
|
1303
|
-
var h,
|
|
1304
|
-
(
|
|
1302
|
+
onBlur: (f) => {
|
|
1303
|
+
var h, g;
|
|
1304
|
+
(g = (h = r.props).onBlur) == null || g.call(h, f), c(!1);
|
|
1305
1305
|
}
|
|
1306
|
-
}) : r,
|
|
1306
|
+
}) : r, u = typeof document < "u" ? document.body : null;
|
|
1307
1307
|
return /* @__PURE__ */ l(te, { children: [
|
|
1308
1308
|
/* @__PURE__ */ t("span", { ref: o, className: "inline-flex", children: v }),
|
|
1309
|
-
s &&
|
|
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
|
-
|
|
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
|
|
1337
|
+
function Ce({
|
|
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
|
|
1392
|
+
function Ge({
|
|
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
|
|
1409
|
+
function ke({
|
|
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
|
-
|
|
1456
|
+
Ce,
|
|
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
|
-
|
|
1464
|
+
Ce,
|
|
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(
|
|
1474
|
+
/* @__PURE__ */ t(ke, { ...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(
|
|
1494
|
+
/* @__PURE__ */ t(Ce, { value: n.value, variant: n.valueVariant ?? "default" })
|
|
1495
1495
|
]
|
|
1496
1496
|
},
|
|
1497
1497
|
`${a}-${n.label}`
|
|
1498
1498
|
)) }),
|
|
1499
|
-
/* @__PURE__ */ t(
|
|
1499
|
+
/* @__PURE__ */ t(ke, { ...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(
|
|
1534
|
+
/* @__PURE__ */ t(ke, { ...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(
|
|
1554
|
+
/* @__PURE__ */ t("div", { className: "flex min-w-0 justify-start sm:justify-end", children: /* @__PURE__ */ t(Ce, { value: i.value, className: "max-w-full whitespace-normal text-center" }) })
|
|
1555
1555
|
]
|
|
1556
1556
|
},
|
|
1557
1557
|
`${s}-${i.label}`
|
|
1558
1558
|
)) }),
|
|
1559
|
-
/* @__PURE__ */ t(
|
|
1559
|
+
/* @__PURE__ */ t(ke, { ...a })
|
|
1560
1560
|
] });
|
|
1561
1561
|
}
|
|
1562
1562
|
function ae(e) {
|
|
1563
1563
|
if (e.layout === "labAnalysis") {
|
|
1564
|
-
const { title:
|
|
1564
|
+
const { title: u, markers: f, trendZone: h } = e, g = Mt(h), y = me(Y, g);
|
|
1565
1565
|
return /* @__PURE__ */ l(ce, { trendColor: y, children: [
|
|
1566
|
-
/* @__PURE__ */ t(de, { title:
|
|
1566
|
+
/* @__PURE__ */ t(de, { title: u, trendColor: y }),
|
|
1567
1567
|
/* @__PURE__ */ t(
|
|
1568
1568
|
ca,
|
|
1569
1569
|
{
|
|
1570
|
-
markers:
|
|
1570
|
+
markers: f,
|
|
1571
1571
|
rangeBar: {
|
|
1572
1572
|
segments: Y,
|
|
1573
|
-
indicatorPercent:
|
|
1573
|
+
indicatorPercent: g,
|
|
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:
|
|
1581
|
+
const { category: u, onInfoClick: f } = e, h = me(Y, u.indicatorPercent);
|
|
1582
1582
|
return /* @__PURE__ */ l(ce, { trendColor: h, children: [
|
|
1583
1583
|
/* @__PURE__ */ t(
|
|
1584
1584
|
de,
|
|
1585
1585
|
{
|
|
1586
|
-
title:
|
|
1586
|
+
title: u.title,
|
|
1587
1587
|
trendColor: h,
|
|
1588
1588
|
trailingInfo: /* @__PURE__ */ t(
|
|
1589
|
-
|
|
1589
|
+
Ge,
|
|
1590
1590
|
{
|
|
1591
|
-
ariaLabel:
|
|
1592
|
-
tooltip:
|
|
1593
|
-
onClick:
|
|
1591
|
+
ariaLabel: u.infoAriaLabel,
|
|
1592
|
+
tooltip: u.infoTooltip ?? u.infoAriaLabel,
|
|
1593
|
+
onClick: f
|
|
1594
1594
|
}
|
|
1595
1595
|
)
|
|
1596
1596
|
}
|
|
@@ -1598,12 +1598,12 @@ function ae(e) {
|
|
|
1598
1598
|
/* @__PURE__ */ t(
|
|
1599
1599
|
da,
|
|
1600
1600
|
{
|
|
1601
|
-
normalRange:
|
|
1602
|
-
currentRange:
|
|
1603
|
-
previousRange:
|
|
1601
|
+
normalRange: u.normalRange,
|
|
1602
|
+
currentRange: u.currentRange,
|
|
1603
|
+
previousRange: u.previousRange,
|
|
1604
1604
|
rangeBar: {
|
|
1605
1605
|
segments: Y,
|
|
1606
|
-
indicatorPercent:
|
|
1606
|
+
indicatorPercent: u.indicatorPercent,
|
|
1607
1607
|
indicatorPosition: "segmentCenter"
|
|
1608
1608
|
}
|
|
1609
1609
|
}
|
|
@@ -1612,10 +1612,10 @@ function ae(e) {
|
|
|
1612
1612
|
}
|
|
1613
1613
|
if (e.layout === "metricRows") {
|
|
1614
1614
|
const {
|
|
1615
|
-
title:
|
|
1616
|
-
infoAriaLabel:
|
|
1615
|
+
title: u,
|
|
1616
|
+
infoAriaLabel: f,
|
|
1617
1617
|
infoTooltip: h,
|
|
1618
|
-
onInfoClick:
|
|
1618
|
+
onInfoClick: g,
|
|
1619
1619
|
showInfoButton: y = !0,
|
|
1620
1620
|
rows: C,
|
|
1621
1621
|
indicatorPercent: N,
|
|
@@ -1626,14 +1626,14 @@ function ae(e) {
|
|
|
1626
1626
|
/* @__PURE__ */ t(
|
|
1627
1627
|
de,
|
|
1628
1628
|
{
|
|
1629
|
-
title:
|
|
1629
|
+
title: u,
|
|
1630
1630
|
trendColor: A,
|
|
1631
1631
|
trailingInfo: y ? /* @__PURE__ */ t(
|
|
1632
|
-
|
|
1632
|
+
Ge,
|
|
1633
1633
|
{
|
|
1634
|
-
ariaLabel:
|
|
1635
|
-
tooltip: h ??
|
|
1636
|
-
onClick:
|
|
1634
|
+
ariaLabel: f,
|
|
1635
|
+
tooltip: h ?? f,
|
|
1636
|
+
onClick: g
|
|
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:
|
|
1657
|
-
currentRangeLabel:
|
|
1656
|
+
category: u,
|
|
1657
|
+
currentRangeLabel: f = "Current Range",
|
|
1658
1658
|
previousRangeLabel: h = "Previous Range",
|
|
1659
|
-
onInfoClick:
|
|
1660
|
-
} = e, y = Mt(
|
|
1659
|
+
onInfoClick: g
|
|
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:
|
|
1665
|
+
title: u.title,
|
|
1666
1666
|
trendColor: C,
|
|
1667
1667
|
trailingInfo: /* @__PURE__ */ t(
|
|
1668
|
-
|
|
1668
|
+
Ge,
|
|
1669
1669
|
{
|
|
1670
|
-
ariaLabel:
|
|
1671
|
-
tooltip:
|
|
1672
|
-
onClick:
|
|
1670
|
+
ariaLabel: u.infoAriaLabel,
|
|
1671
|
+
tooltip: u.infoTooltip ?? u.infoAriaLabel,
|
|
1672
|
+
onClick: g
|
|
1673
1673
|
}
|
|
1674
1674
|
)
|
|
1675
1675
|
}
|
|
@@ -1677,12 +1677,12 @@ function ae(e) {
|
|
|
1677
1677
|
/* @__PURE__ */ t(
|
|
1678
1678
|
Ht,
|
|
1679
1679
|
{
|
|
1680
|
-
columnHeaders: [
|
|
1680
|
+
columnHeaders: [f, h],
|
|
1681
1681
|
rows: [
|
|
1682
1682
|
{
|
|
1683
1683
|
label: "Symptom Score",
|
|
1684
|
-
current:
|
|
1685
|
-
previous:
|
|
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
|
-
|
|
1705
|
+
He(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 ? (
|
|
1716
|
-
(
|
|
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(
|
|
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 }),
|
|
@@ -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
|
|
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:
|
|
1823
|
-
onDownloadClick:
|
|
1822
|
+
onInfoClick: b,
|
|
1823
|
+
onDownloadClick: p
|
|
1824
1824
|
}) {
|
|
1825
|
-
return /* @__PURE__ */ l(
|
|
1825
|
+
return /* @__PURE__ */ l(T, { className: "flex flex-col", children: [
|
|
1826
1826
|
/* @__PURE__ */ t(
|
|
1827
|
-
|
|
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:
|
|
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:
|
|
1847
|
+
onClick: p,
|
|
1848
1848
|
className: X,
|
|
1849
1849
|
"aria-label": m,
|
|
1850
|
-
children: /* @__PURE__ */ t(
|
|
1850
|
+
children: /* @__PURE__ */ t(dt, {})
|
|
1851
1851
|
}
|
|
1852
1852
|
)
|
|
1853
1853
|
] })
|
|
@@ -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(
|
|
1897
|
-
i ? /* @__PURE__ */ t("div", { className: "flex min-w-0 items-center", children: c }) : /* @__PURE__ */ t(
|
|
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
|
|
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
|
|
1924
|
+
function ve({ 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
|
|
1927
|
+
function we({ 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
|
|
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(
|
|
1948
|
+
function rt() {
|
|
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(
|
|
@@ -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(
|
|
1993
|
-
/* @__PURE__ */ t("div", { className: "flex justify-center self-center py-2.5", children: o === 0 ? /* @__PURE__ */ t(ga, {}) : /* @__PURE__ */ t(
|
|
1992
|
+
/* @__PURE__ */ t("div", { className: "flex justify-center self-center py-2.5", children: /* @__PURE__ */ t(rt, {}) }),
|
|
1993
|
+
/* @__PURE__ */ t("div", { className: "flex justify-center self-center py-2.5", children: o === 0 ? /* @__PURE__ */ t(ga, {}) : /* @__PURE__ */ t(rt, {}) }),
|
|
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(
|
|
2008
|
+
/* @__PURE__ */ t(rt, {})
|
|
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(
|
|
2021
|
-
/* @__PURE__ */ t(
|
|
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
|
|
2030
|
+
function je(e) {
|
|
2031
2031
|
if (e.variant === "labAnalysis") {
|
|
2032
2032
|
const { title: o = "ADRENAL – THYROID – PANCREAS", markerSlots: i = 4 } = e;
|
|
2033
|
-
return /* @__PURE__ */ l(
|
|
2034
|
-
/* @__PURE__ */ t(
|
|
2033
|
+
return /* @__PURE__ */ l(ve, { children: [
|
|
2034
|
+
/* @__PURE__ */ t(we, { 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(
|
|
2041
|
-
/* @__PURE__ */ t(
|
|
2040
|
+
return /* @__PURE__ */ l(ve, { children: [
|
|
2041
|
+
/* @__PURE__ */ t(we, { 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(
|
|
2047
|
-
/* @__PURE__ */ t(
|
|
2046
|
+
return e.variant === "questionnaire" ? /* @__PURE__ */ l(ve, { children: [
|
|
2047
|
+
/* @__PURE__ */ t(we, { 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(
|
|
2056
|
-
/* @__PURE__ */ t(
|
|
2055
|
+
] }) : /* @__PURE__ */ l(ve, { children: [
|
|
2056
|
+
/* @__PURE__ */ t(we, { 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
|
|
2068
|
-
return /* @__PURE__ */ l(
|
|
2069
|
-
/* @__PURE__ */ t(
|
|
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:
|
|
2083
|
+
triadNumber: g,
|
|
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(
|
|
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:
|
|
2094
|
+
/* @__PURE__ */ t(ee, { triadNumber: g }),
|
|
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[
|
|
2100
|
+
className: `shrink-0 self-start text-3xl font-bold tabular-nums tracking-tight p-0 m-0 sm:self-auto ${Dt[g] ?? "text-sky-400"}`,
|
|
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((
|
|
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
2106
|
ae,
|
|
2107
2107
|
{
|
|
2108
2108
|
layout: "questionnaire",
|
|
2109
|
-
category:
|
|
2109
|
+
category: L,
|
|
2110
2110
|
currentRangeLabel: w,
|
|
2111
2111
|
previousRangeLabel: P,
|
|
2112
2112
|
onInfoClick: A
|
|
2113
2113
|
},
|
|
2114
|
-
|
|
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:
|
|
2128
|
-
onInfoClick:
|
|
2127
|
+
categories: b,
|
|
2128
|
+
onInfoClick: p,
|
|
2129
2129
|
onCategoryClick: v
|
|
2130
|
-
} = e,
|
|
2131
|
-
return /* @__PURE__ */ l(
|
|
2130
|
+
} = e, u = b ?? [], f = u.map((g) => He(g.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:
|
|
2143
|
+
onClick: p,
|
|
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:
|
|
2158
|
+
/* @__PURE__ */ t("div", { className: "grid grid-cols-1 gap-4 lg:grid-cols-2 xl:grid-cols-3", children: u.map((g) => /* @__PURE__ */ t(
|
|
2159
2159
|
ae,
|
|
2160
2160
|
{
|
|
2161
2161
|
layout: "triadResiliency",
|
|
2162
|
-
category:
|
|
2162
|
+
category: g,
|
|
2163
2163
|
currentRangeLabel: c,
|
|
2164
2164
|
previousRangeLabel: d,
|
|
2165
|
-
siblingTotals:
|
|
2165
|
+
siblingTotals: f,
|
|
2166
2166
|
trendBar: m,
|
|
2167
2167
|
onCategoryClick: v
|
|
2168
2168
|
},
|
|
2169
|
-
|
|
2169
|
+
g.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(
|
|
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)]",
|
|
2200
|
-
function
|
|
2199
|
+
const ya = "flex min-h-10 items-center justify-between gap-4 py-3.5 text-sm leading-5 text-[color:var(--mb-color-text)]", Na = "border-t border-[color:var(--mb-color-card-border)]", Ca = "flex min-w-0 flex-1 items-center gap-3", Aa = "flex size-5 shrink-0 items-center justify-center text-[color:var(--mb-color-text-muted)]", Ta = "size-[18px] shrink-0";
|
|
2200
|
+
function Ye({
|
|
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:
|
|
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
|
|
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:
|
|
2226
|
-
wearableValueLabel:
|
|
2225
|
+
wearableRowLabel: b,
|
|
2226
|
+
wearableValueLabel: p
|
|
2227
2227
|
}) {
|
|
2228
|
-
const v = i ?? o,
|
|
2229
|
-
return /* @__PURE__ */ l(
|
|
2228
|
+
const v = i ?? o, u = !!(s && c), f = !!(d && m), h = !!(b && p), g = u || f || h;
|
|
2229
|
+
return /* @__PURE__ */ l(T, { className: "min-w-0", children: [
|
|
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
|
-
|
|
2259
|
-
|
|
2260
|
-
|
|
2258
|
+
g ? /* @__PURE__ */ l("ul", { className: "list-none p-0 mx-0 mb-0 mt-4", children: [
|
|
2259
|
+
u ? /* @__PURE__ */ t(
|
|
2260
|
+
Ye,
|
|
2261
2261
|
{
|
|
2262
|
-
Icon:
|
|
2262
|
+
Icon: ct,
|
|
2263
2263
|
label: s,
|
|
2264
2264
|
badge: c
|
|
2265
2265
|
}
|
|
2266
2266
|
) : null,
|
|
2267
|
-
|
|
2268
|
-
|
|
2267
|
+
f ? /* @__PURE__ */ t(
|
|
2268
|
+
Ye,
|
|
2269
2269
|
{
|
|
2270
2270
|
Icon: cr,
|
|
2271
2271
|
label: d,
|
|
2272
2272
|
badge: m,
|
|
2273
|
-
bordered:
|
|
2273
|
+
bordered: u
|
|
2274
2274
|
}
|
|
2275
2275
|
) : null,
|
|
2276
2276
|
h ? /* @__PURE__ */ t(
|
|
2277
|
-
|
|
2277
|
+
Ye,
|
|
2278
2278
|
{
|
|
2279
2279
|
Icon: sr,
|
|
2280
|
-
label:
|
|
2281
|
-
badge:
|
|
2282
|
-
bordered:
|
|
2280
|
+
label: b,
|
|
2281
|
+
badge: p,
|
|
2282
|
+
bordered: u || f
|
|
2283
2283
|
}
|
|
2284
2284
|
) : null
|
|
2285
2285
|
] }) : null
|
|
2286
2286
|
] });
|
|
2287
2287
|
}
|
|
2288
2288
|
function Pa({ title: e, items: r = [] }) {
|
|
2289
|
-
return /* @__PURE__ */ l(
|
|
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
|
|
2294
|
+
function Ms({
|
|
2295
2295
|
heading: e,
|
|
2296
2296
|
initials: r,
|
|
2297
2297
|
rows: n = []
|
|
2298
2298
|
}) {
|
|
2299
|
-
return /* @__PURE__ */ l(
|
|
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(
|
|
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
|
|
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(
|
|
2368
|
+
return /* @__PURE__ */ l(T, { className: "flex h-full min-h-0 flex-col", children: [
|
|
2369
2369
|
/* @__PURE__ */ t(
|
|
2370
|
-
|
|
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
|
|
2404
|
-
return /* @__PURE__ */ l(
|
|
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
|
|
2423
|
+
function Xe(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
|
|
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(
|
|
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:
|
|
2469
|
-
/* @__PURE__ */ t("span", { className: "min-w-0 break-words px-0.5", children:
|
|
2470
|
-
/* @__PURE__ */ t("span", { className: "min-w-0 break-words px-0.5", children:
|
|
2468
|
+
/* @__PURE__ */ t("span", { className: "min-w-0 break-words px-0.5", children: Xe(o.low) }),
|
|
2469
|
+
/* @__PURE__ */ t("span", { className: "min-w-0 break-words px-0.5", children: Xe(o.moderate) }),
|
|
2470
|
+
/* @__PURE__ */ t("span", { className: "min-w-0 break-words px-0.5", children: Xe(o.high) })
|
|
2471
2471
|
]
|
|
2472
2472
|
}
|
|
2473
2473
|
),
|
|
@@ -2612,41 +2612,41 @@ function Fa({
|
|
|
2612
2612
|
labsDateLabel: c,
|
|
2613
2613
|
triadNumber: d,
|
|
2614
2614
|
organKey: m,
|
|
2615
|
-
organContent:
|
|
2615
|
+
organContent: b
|
|
2616
2616
|
}) {
|
|
2617
|
-
var ie,
|
|
2618
|
-
const
|
|
2617
|
+
var ie, fe, ge, pe, xe, se, J, xt, vt, wt;
|
|
2618
|
+
const p = at(), [v, u] = H(!1), [f, h] = H(e), [g, y] = H(!1), C = Ea(), N = m && b ? b[m] : void 0, w = s != null ? {
|
|
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 = ((
|
|
2621
|
+
} : void 0, P = ((fe = w == null ? void 0 : w.name) == null ? void 0 : fe.trim()) || n.trim() || "Category", A = Da(a, P), S = d != null && ((ge = w == null ? void 0 : w.name) != null && ge.trim()) ? `Triad ${d}: ${w.name.trim()}` : d != null ? `Triad ${d}` : n, L = (pe = w == null ? void 0 : w.previousSymptomScore) == null ? void 0 : pe.trim(), z = (xe = w == null ? void 0 : w.previousLabScore) == null ? void 0 : xe.trim(), G = (se = w == null ? void 0 : w.previousTotalScore) == null ? void 0 : se.trim(), D = !!(L && L !== "—" && L !== "-" && L !== "–") || !!(z && z !== "—" && z !== "-" && z !== "–") || !!(G && G !== "—" && G !== "-" && G !== "–"), q = ((J = w == null ? void 0 : w.previousDateLabel) == null ? void 0 : J.trim()) || "Previous", $ = ((xt = w == null ? void 0 : w.currentDateLabel) == null ? void 0 : xt.trim()) || "Current", Re = w != null && !!((vt = w.currentDateLabel) != null && vt.trim()) && !!((wt = w.previousDateLabel) != null && wt.trim()) && D;
|
|
2622
2622
|
return V(() => {
|
|
2623
2623
|
y(!0);
|
|
2624
2624
|
}, []), V(() => {
|
|
2625
2625
|
if (e) {
|
|
2626
2626
|
h(!0);
|
|
2627
|
-
const
|
|
2628
|
-
requestAnimationFrame(() =>
|
|
2627
|
+
const ze = requestAnimationFrame(() => {
|
|
2628
|
+
requestAnimationFrame(() => u(!0));
|
|
2629
2629
|
});
|
|
2630
|
-
return () => cancelAnimationFrame(
|
|
2630
|
+
return () => cancelAnimationFrame(ze);
|
|
2631
2631
|
}
|
|
2632
|
-
|
|
2632
|
+
u(!1);
|
|
2633
2633
|
const O = window.setTimeout(() => {
|
|
2634
2634
|
h(!1);
|
|
2635
2635
|
}, 300);
|
|
2636
2636
|
return () => window.clearTimeout(O);
|
|
2637
2637
|
}, [e]), V(() => {
|
|
2638
|
-
if (!
|
|
2639
|
-
const O = (
|
|
2640
|
-
|
|
2638
|
+
if (!f) return;
|
|
2639
|
+
const O = (ze) => {
|
|
2640
|
+
ze.key === "Escape" && r();
|
|
2641
2641
|
};
|
|
2642
2642
|
return window.addEventListener("keydown", O), () => window.removeEventListener("keydown", O);
|
|
2643
|
-
}, [
|
|
2644
|
-
if (!
|
|
2643
|
+
}, [f, r]), V(() => {
|
|
2644
|
+
if (!f) 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
|
-
}, [
|
|
2649
|
+
}, [f]), !g || typeof document > "u" || !f ? 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":
|
|
2675
|
+
"aria-labelledby": p,
|
|
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:
|
|
2695
|
+
id: p,
|
|
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,7 +2738,7 @@ 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:
|
|
2741
|
+
w ? /* @__PURE__ */ t("div", { className: "min-w-0", children: Re ? /* @__PURE__ */ t(
|
|
2742
2742
|
ae,
|
|
2743
2743
|
{
|
|
2744
2744
|
layout: "triadResiliency",
|
|
@@ -2755,7 +2755,7 @@ function Fa({
|
|
|
2755
2755
|
},
|
|
2756
2756
|
currentRangeLabel: $,
|
|
2757
2757
|
previousRangeLabel: q,
|
|
2758
|
-
siblingTotals: [
|
|
2758
|
+
siblingTotals: [He(w.totalScore)]
|
|
2759
2759
|
}
|
|
2760
2760
|
) : /* @__PURE__ */ t(
|
|
2761
2761
|
ae,
|
|
@@ -2853,7 +2853,7 @@ function Ga({
|
|
|
2853
2853
|
organContent: m
|
|
2854
2854
|
}) {
|
|
2855
2855
|
var h;
|
|
2856
|
-
const [
|
|
2856
|
+
const [b, p] = H(!1), v = (o == null ? void 0 : o.bodyParagraphs) ?? [], u = ((h = o == null ? void 0 : o.panelTitle) == null ? void 0 : h.trim()) || e, f = o == null ? void 0 : o.organKey;
|
|
2857
2857
|
return /* @__PURE__ */ l(te, { children: [
|
|
2858
2858
|
/* @__PURE__ */ l(
|
|
2859
2859
|
M,
|
|
@@ -2862,8 +2862,8 @@ function Ga({
|
|
|
2862
2862
|
variant: n,
|
|
2863
2863
|
align: "center",
|
|
2864
2864
|
className: a,
|
|
2865
|
-
onClick: () =>
|
|
2866
|
-
"aria-expanded":
|
|
2865
|
+
onClick: () => p(!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:
|
|
2878
|
-
onClose: () =>
|
|
2879
|
-
title:
|
|
2877
|
+
open: b,
|
|
2878
|
+
onClose: () => p(!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:
|
|
2886
|
+
organKey: f,
|
|
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",
|
|
2904
|
-
/* @__PURE__ */ t("span", { className: "shrink-0 text-xs text-[color:var(--mb-color-text-muted)] sm:text-sm", children:
|
|
2903
|
+
const d = e.infoTooltip ?? e.infoAriaLabel, m = e.status === "optimal", b = e.status === "high", p = e.status === "low", v = m ? "border-[#3a9e6a]" : b || p ? "border-[#d94040]" : "border-[#e09a1a]", u = m ? "bg-[#e8f6ee]" : b || p ? "bg-[#fdecec]" : "bg-[#fff8eb]", f = m ? "OPTIMAL" : b ? "HIGH" : p ? "LOW" : "TRENDING", h = m ? "trendRowStatusOptimal" : b ? "trendRowStatusHigh" : p ? "trendRowStatusLow" : "trendRowStatusTrending", g = s === 2, y = c ?? (g ? "2xl" : "xl"), C = y === "2xl" ? "2xl:flex-row 2xl:items-stretch" : "xl:flex-row xl:items-stretch", N = y === "2xl" ? "2xl:shrink-0 2xl:w-[10rem]" : "xl:shrink-0 xl:w-[10rem]", w = y === "2xl" ? "2xl:shrink-0 2xl:w-[20rem]" : "xl:shrink-0 xl:w-[20rem]", P = g ? y === "2xl" ? "sm:grid-cols-2 2xl:mx-auto 2xl:w-full 2xl:max-w-[50rem] 2xl:border-t-0 2xl:px-8 2xl:py-1" : "sm:grid-cols-2 xl:mx-auto xl:w-full xl:max-w-[50rem] xl:border-t-0 xl:px-8 xl:py-1" : y === "2xl" ? "sm:grid-cols-3 2xl:border-t-0 2xl:px-16 2xl:py-1" : "sm:grid-cols-3 xl:border-t-0 xl:px-16 xl:py-1", A = g ? y === "2xl" ? "2xl:shrink-0 2xl:w-[9rem]" : "xl:shrink-0 xl:w-[9rem]" : y === "2xl" ? "2xl:shrink-0 2xl:w-[7rem]" : "xl:shrink-0 xl:w-[7rem]", S = (L, z, G) => /* @__PURE__ */ l("span", { className: "flex min-w-0 max-w-full items-center gap-1.5", children: [
|
|
2904
|
+
/* @__PURE__ */ t("span", { className: "shrink-0 text-xs text-[color:var(--mb-color-text-muted)] sm:text-sm", children: L }),
|
|
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 ${
|
|
2922
|
+
className: `flex min-w-0 items-center gap-2 px-3 ${g ? w : N} ${u}`,
|
|
2923
2923
|
children: [
|
|
2924
2924
|
/* @__PURE__ */ t(Z, { content: d, children: /* @__PURE__ */ t(
|
|
2925
2925
|
M,
|
|
@@ -2940,8 +2940,8 @@ 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 ${
|
|
2944
|
-
/* @__PURE__ */ t("div", { className: `flex min-w-0 ${
|
|
2943
|
+
/* @__PURE__ */ t("div", { className: `flex min-w-0 ${g ? "justify-center" : "justify-start"}`, children: S(i[0], e.symptomScore) }),
|
|
2944
|
+
/* @__PURE__ */ t("div", { className: `flex min-w-0 ${g ? "justify-center" : "justify-start ml-0 md:ml-16"}`, children: S(i[1], e.labScore, g) }),
|
|
2945
2945
|
s === 3 ? /* @__PURE__ */ t("div", { className: "flex min-w-0 justify-start sm:justify-end", children: S(i[2], e.totalScore, !0) }) : null
|
|
2946
2946
|
]
|
|
2947
2947
|
}
|
|
@@ -2949,7 +2949,7 @@ function le({
|
|
|
2949
2949
|
/* @__PURE__ */ t(
|
|
2950
2950
|
Ga,
|
|
2951
2951
|
{
|
|
2952
|
-
badgeLabel:
|
|
2952
|
+
badgeLabel: f,
|
|
2953
2953
|
trendStatus: e.status,
|
|
2954
2954
|
trendStatusVariant: h,
|
|
2955
2955
|
className: `flex !self-stretch !rounded-none rounded-br-[length:var(--mb-radius-button)] rounded-tr-[length:var(--mb-radius-button)] ${A}`,
|
|
@@ -2995,11 +2995,11 @@ function Za(e) {
|
|
|
2995
2995
|
rows: r.get(n) ?? []
|
|
2996
2996
|
})).filter((n) => n.rows.length > 0);
|
|
2997
2997
|
}
|
|
2998
|
-
function
|
|
2998
|
+
function Bs({ content: e }) {
|
|
2999
2999
|
const { pageHeader: r, indicators: n } = e, o = Za(n ?? []);
|
|
3000
3000
|
return /* @__PURE__ */ l("div", { className: "mx-auto w-full min-w-0 space-y-6", children: [
|
|
3001
3001
|
/* @__PURE__ */ t(I, { title: r.title, subtitle: r.subtitle }),
|
|
3002
|
-
/* @__PURE__ */ t("div", { className: "flex min-w-0 flex-col gap-6", children: o.map(({ category: i, title: s, rows: c }) => /* @__PURE__ */ l(
|
|
3002
|
+
/* @__PURE__ */ t("div", { className: "flex min-w-0 flex-col gap-6", children: o.map(({ category: i, title: s, rows: c }) => /* @__PURE__ */ l(T, { className: "min-w-0", children: [
|
|
3003
3003
|
/* @__PURE__ */ t("h2", { className: "mb-4 m-0 text-lg font-bold text-[color:var(--mb-color-text)]", children: s }),
|
|
3004
3004
|
/* @__PURE__ */ t("div", { className: "space-y-2", children: c.map((d, m) => /* @__PURE__ */ t(
|
|
3005
3005
|
le,
|
|
@@ -3016,15 +3016,15 @@ function Hs({ content: e }) {
|
|
|
3016
3016
|
function Wa() {
|
|
3017
3017
|
return /* @__PURE__ */ l("div", { className: "flex min-w-0 flex-col overflow-hidden rounded-[length:var(--mb-radius-button)] border border-solid border-[color:var(--mb-color-card-border)] bg-[color:var(--mb-color-card-bg)] [border-width:1px] xl:flex-row xl:items-stretch", children: [
|
|
3018
3018
|
/* @__PURE__ */ l("div", { className: "flex min-w-0 items-center gap-2 bg-[#ebebeb]/40 px-3 py-2.5 xl:w-[10rem] xl:shrink-0", children: [
|
|
3019
|
-
/* @__PURE__ */ t(
|
|
3020
|
-
/* @__PURE__ */ t(
|
|
3019
|
+
/* @__PURE__ */ t(x, { className: "size-4 shrink-0 rounded" }),
|
|
3020
|
+
/* @__PURE__ */ t(x, { className: "h-3.5 min-w-0 flex-1 max-w-[5.5rem] sm:h-4" })
|
|
3021
3021
|
] }),
|
|
3022
3022
|
/* @__PURE__ */ l("div", { className: "grid min-w-0 flex-1 grid-cols-1 gap-y-2 border-t border-[color:var(--mb-color-card-border)] bg-[color:var(--mb-color-card-bg)] px-3 py-2 sm:grid-cols-3 sm:gap-x-3 sm:gap-y-0 xl:border-t-0 xl:px-16 xl:py-1", children: [
|
|
3023
|
-
/* @__PURE__ */ t("div", { className: "flex min-w-0 justify-start", children: /* @__PURE__ */ t(
|
|
3024
|
-
/* @__PURE__ */ t("div", { className: "flex min-w-0 justify-start md:ml-16", children: /* @__PURE__ */ t(
|
|
3025
|
-
/* @__PURE__ */ t("div", { className: "flex min-w-0 justify-start sm:justify-end", children: /* @__PURE__ */ t(
|
|
3023
|
+
/* @__PURE__ */ t("div", { className: "flex min-w-0 justify-start", children: /* @__PURE__ */ t(x, { 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(x, { 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(x, { className: "h-6 w-[min(100%,6.5rem)]" }) })
|
|
3026
3026
|
] }),
|
|
3027
|
-
/* @__PURE__ */ t(
|
|
3027
|
+
/* @__PURE__ */ t(x, { className: "min-h-[3.25rem] w-full shrink-0 rounded-none rounded-br-[length:var(--mb-radius-button)] rounded-tr-[length:var(--mb-radius-button)] xl:w-[7rem] xl:min-h-0 xl:self-stretch" })
|
|
3028
3028
|
] });
|
|
3029
3029
|
}
|
|
3030
3030
|
const Ua = [
|
|
@@ -3037,18 +3037,18 @@ function Qa({
|
|
|
3037
3037
|
}) {
|
|
3038
3038
|
return /* @__PURE__ */ l(K, { children: [
|
|
3039
3039
|
/* @__PURE__ */ t(I, { title: e.title, subtitle: e.subtitle }),
|
|
3040
|
-
/* @__PURE__ */ t("div", { className: "flex min-w-0 flex-col gap-6", children: Ua.map((r) => /* @__PURE__ */ l(
|
|
3040
|
+
/* @__PURE__ */ t("div", { className: "flex min-w-0 flex-col gap-6", children: Ua.map((r) => /* @__PURE__ */ l(T, { className: "min-w-0", children: [
|
|
3041
3041
|
/* @__PURE__ */ t("h2", { className: "mb-4 m-0 text-lg font-bold text-[color:var(--mb-color-text)]", children: r.title }),
|
|
3042
3042
|
/* @__PURE__ */ t("div", { className: "space-y-2", children: Array.from({ length: r.rowCount }, (n, a) => /* @__PURE__ */ t(Wa, {}, a)) })
|
|
3043
3043
|
] }, r.title)) })
|
|
3044
3044
|
] });
|
|
3045
3045
|
}
|
|
3046
3046
|
const xr = qt({});
|
|
3047
|
-
function
|
|
3048
|
-
return
|
|
3047
|
+
function Be() {
|
|
3048
|
+
return ot(xr);
|
|
3049
3049
|
}
|
|
3050
3050
|
const Ka = xr.Provider;
|
|
3051
|
-
function
|
|
3051
|
+
function mt({
|
|
3052
3052
|
sectionTitle: e,
|
|
3053
3053
|
infoTooltip: r,
|
|
3054
3054
|
infoAriaLabel: n,
|
|
@@ -3108,10 +3108,10 @@ function Ja({
|
|
|
3108
3108
|
data: e,
|
|
3109
3109
|
organContent: r
|
|
3110
3110
|
}) {
|
|
3111
|
-
const { onNavigateToNavItem: n } =
|
|
3112
|
-
return /* @__PURE__ */ l(
|
|
3111
|
+
const { onNavigateToNavItem: n } = Be(), a = e.infoTooltip ?? e.infoAriaLabel;
|
|
3112
|
+
return /* @__PURE__ */ l(T, { className: "min-w-0", children: [
|
|
3113
3113
|
/* @__PURE__ */ t(
|
|
3114
|
-
|
|
3114
|
+
mt,
|
|
3115
3115
|
{
|
|
3116
3116
|
sectionTitle: e.sectionTitle,
|
|
3117
3117
|
infoTooltip: a,
|
|
@@ -3202,10 +3202,10 @@ function to({
|
|
|
3202
3202
|
data: e,
|
|
3203
3203
|
organContent: r
|
|
3204
3204
|
}) {
|
|
3205
|
-
const { onNavigateToNavItem: n } =
|
|
3206
|
-
return /* @__PURE__ */ l(
|
|
3205
|
+
const { onNavigateToNavItem: n } = Be(), a = e.infoTooltip ?? e.infoAriaLabel;
|
|
3206
|
+
return /* @__PURE__ */ l(T, { className: "min-w-0", children: [
|
|
3207
3207
|
/* @__PURE__ */ t(
|
|
3208
|
-
|
|
3208
|
+
mt,
|
|
3209
3209
|
{
|
|
3210
3210
|
sectionTitle: e.sectionTitle,
|
|
3211
3211
|
infoTooltip: a,
|
|
@@ -3271,7 +3271,7 @@ const ro = {
|
|
|
3271
3271
|
4: "text-[#E86C7F]",
|
|
3272
3272
|
5: "text-[#7D7DBB]"
|
|
3273
3273
|
}, Et = "text-[color:color-mix(in_srgb,var(--mb-color-text-muted)_62%,white_38%)]";
|
|
3274
|
-
function
|
|
3274
|
+
function ut({
|
|
3275
3275
|
triads: e,
|
|
3276
3276
|
selectedIndex: r,
|
|
3277
3277
|
onSelectIndex: n
|
|
@@ -3341,10 +3341,10 @@ function oo({
|
|
|
3341
3341
|
data: e,
|
|
3342
3342
|
organContent: r
|
|
3343
3343
|
}) {
|
|
3344
|
-
const { onNavigateToNavItem: n } =
|
|
3345
|
-
return /* @__PURE__ */ l(
|
|
3344
|
+
const { onNavigateToNavItem: n } = Be(), [a, o] = H(0), i = Math.min(a, Math.max(0, e.triads.length - 1)), s = e.categoriesByTriadIndex[i] ?? [], c = e.infoTooltip ?? e.infoAriaLabel, d = e.triads[i], m = (d == null ? void 0 : d.triadNumber) === 1 ? no : void 0;
|
|
3345
|
+
return /* @__PURE__ */ l(T, { className: "min-w-0", children: [
|
|
3346
3346
|
/* @__PURE__ */ t(
|
|
3347
|
-
|
|
3347
|
+
mt,
|
|
3348
3348
|
{
|
|
3349
3349
|
sectionTitle: e.sectionTitle,
|
|
3350
3350
|
infoTooltip: c,
|
|
@@ -3357,7 +3357,7 @@ function oo({
|
|
|
3357
3357
|
}
|
|
3358
3358
|
),
|
|
3359
3359
|
/* @__PURE__ */ t(
|
|
3360
|
-
|
|
3360
|
+
ut,
|
|
3361
3361
|
{
|
|
3362
3362
|
triads: e.triads,
|
|
3363
3363
|
selectedIndex: i,
|
|
@@ -3366,26 +3366,26 @@ function oo({
|
|
|
3366
3366
|
),
|
|
3367
3367
|
/* @__PURE__ */ l("div", { children: [
|
|
3368
3368
|
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((
|
|
3369
|
+
/* @__PURE__ */ t("div", { className: "space-y-2", children: s.map((b) => /* @__PURE__ */ t(
|
|
3370
3370
|
le,
|
|
3371
3371
|
{
|
|
3372
|
-
row:
|
|
3372
|
+
row: b,
|
|
3373
3373
|
statusPanelIntroParagraphs: m,
|
|
3374
3374
|
lastLabsLabel: e.lastLabsLabel,
|
|
3375
3375
|
triadNumber: d == null ? void 0 : d.triadNumber,
|
|
3376
3376
|
organContent: r
|
|
3377
3377
|
},
|
|
3378
|
-
|
|
3378
|
+
b.name
|
|
3379
3379
|
)) })
|
|
3380
3380
|
] })
|
|
3381
3381
|
] });
|
|
3382
3382
|
}
|
|
3383
3383
|
const lo = {
|
|
3384
|
-
"schedule-labs":
|
|
3385
|
-
"export-reports":
|
|
3384
|
+
"schedule-labs": ct,
|
|
3385
|
+
"export-reports": dt
|
|
3386
3386
|
};
|
|
3387
|
-
function
|
|
3388
|
-
const { onExportReports: r } =
|
|
3387
|
+
function Is({ content: e }) {
|
|
3388
|
+
const { onExportReports: r } = Be(), [n, a] = H(!1);
|
|
3389
3389
|
if (!e) return null;
|
|
3390
3390
|
const {
|
|
3391
3391
|
pageHeader: o,
|
|
@@ -3394,8 +3394,8 @@ function ks({ content: e }) {
|
|
|
3394
3394
|
metaflammation: c,
|
|
3395
3395
|
totalPredictiveTrends: d,
|
|
3396
3396
|
alertLabSummaryTable: m,
|
|
3397
|
-
organContent:
|
|
3398
|
-
} = e,
|
|
3397
|
+
organContent: b
|
|
3398
|
+
} = e, p = d ?? _a, v = i == null ? void 0 : i.actions.find((y) => y.id === "export-reports"), u = v ? lo[v.id] : null, f = !!(s || c), h = !!(v && u && r), g = async () => {
|
|
3399
3399
|
if (!(!r || n))
|
|
3400
3400
|
try {
|
|
3401
3401
|
a(!0), await r();
|
|
@@ -3413,78 +3413,78 @@ function ks({ content: e }) {
|
|
|
3413
3413
|
className: "min-w-0 flex-1"
|
|
3414
3414
|
}
|
|
3415
3415
|
),
|
|
3416
|
-
h && v &&
|
|
3416
|
+
h && v && u ? /* @__PURE__ */ l(
|
|
3417
3417
|
M,
|
|
3418
3418
|
{
|
|
3419
3419
|
type: "button",
|
|
3420
3420
|
variant: "default",
|
|
3421
3421
|
className: br,
|
|
3422
|
-
onClick:
|
|
3422
|
+
onClick: g,
|
|
3423
3423
|
disabled: n,
|
|
3424
3424
|
children: [
|
|
3425
|
-
/* @__PURE__ */ t(
|
|
3425
|
+
/* @__PURE__ */ t(u, { className: "size-4 shrink-0" }),
|
|
3426
3426
|
n ? "Exporting…" : v.label
|
|
3427
3427
|
]
|
|
3428
3428
|
}
|
|
3429
3429
|
) : null
|
|
3430
3430
|
] }),
|
|
3431
|
-
|
|
3431
|
+
f ? /* @__PURE__ */ l(
|
|
3432
3432
|
"div",
|
|
3433
3433
|
{
|
|
3434
3434
|
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
3435
|
children: [
|
|
3436
|
-
s ? /* @__PURE__ */ t(
|
|
3436
|
+
s ? /* @__PURE__ */ t(La, { ...s }) : null,
|
|
3437
3437
|
c ? /* @__PURE__ */ t(wa, { ...c }) : null
|
|
3438
3438
|
]
|
|
3439
3439
|
}
|
|
3440
3440
|
) : null,
|
|
3441
|
-
/* @__PURE__ */ t("div", { className: "xl:hidden", children: /* @__PURE__ */ t(to, { data:
|
|
3442
|
-
/* @__PURE__ */ t("div", { className: "hidden xl:block", children: /* @__PURE__ */ t(oo, { data:
|
|
3443
|
-
m ? /* @__PURE__ */ t(Ja, { data: m, organContent:
|
|
3441
|
+
/* @__PURE__ */ t("div", { className: "xl:hidden", children: /* @__PURE__ */ t(to, { data: p, organContent: b }) }),
|
|
3442
|
+
/* @__PURE__ */ t("div", { className: "hidden xl:block", children: /* @__PURE__ */ t(oo, { data: p, organContent: b }) }),
|
|
3443
|
+
m ? /* @__PURE__ */ t(Ja, { data: m, organContent: b }) : null
|
|
3444
3444
|
] });
|
|
3445
3445
|
}
|
|
3446
|
-
const
|
|
3447
|
-
function
|
|
3446
|
+
const Ve = "flex min-h-10 items-center justify-between gap-4 py-3.5 text-sm leading-5 text-[color:var(--mb-color-text)]", Ft = "border-t border-[color:var(--mb-color-card-border)]", Ze = "flex min-w-0 flex-1 items-center gap-3", We = "flex size-5 shrink-0 items-center justify-center text-[color:var(--mb-color-text-muted)]", Ue = "size-[18px] shrink-0";
|
|
3447
|
+
function Qe({ titleWidthClass: e }) {
|
|
3448
3448
|
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
3449
|
/* @__PURE__ */ l("div", { className: "flex min-w-0 shrink-0 items-center gap-2", children: [
|
|
3450
|
-
/* @__PURE__ */ t(
|
|
3451
|
-
/* @__PURE__ */ t(
|
|
3450
|
+
/* @__PURE__ */ t(x, { className: `h-7 rounded ${e}` }),
|
|
3451
|
+
/* @__PURE__ */ t(x, { className: "size-5 shrink-0 rounded" })
|
|
3452
3452
|
] }),
|
|
3453
3453
|
/* @__PURE__ */ l("div", { className: "flex min-w-0 shrink-0 flex-wrap items-center gap-6 @xl:flex-1 @xl:justify-between", children: [
|
|
3454
3454
|
/* @__PURE__ */ l("span", { className: "flex min-w-0 shrink-0 items-center gap-2 @xl:mx-auto", children: [
|
|
3455
|
-
/* @__PURE__ */ t(
|
|
3456
|
-
/* @__PURE__ */ t(
|
|
3455
|
+
/* @__PURE__ */ t(x, { className: "h-4 w-[4.5rem]" }),
|
|
3456
|
+
/* @__PURE__ */ t(x, { className: "h-7 min-w-[5.5rem] rounded-md" })
|
|
3457
3457
|
] }),
|
|
3458
|
-
/* @__PURE__ */ t(
|
|
3458
|
+
/* @__PURE__ */ t(x, { className: "h-9 min-w-[7.5rem] rounded-[var(--mb-button-radius)]" })
|
|
3459
3459
|
] })
|
|
3460
3460
|
] }) });
|
|
3461
3461
|
}
|
|
3462
3462
|
function Gt() {
|
|
3463
3463
|
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
3464
|
/* @__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(
|
|
3466
|
-
/* @__PURE__ */ t(
|
|
3465
|
+
/* @__PURE__ */ t(x, { className: "size-4 shrink-0 rounded" }),
|
|
3466
|
+
/* @__PURE__ */ t(x, { className: "h-4 min-w-0 flex-1 max-w-[14rem]" })
|
|
3467
3467
|
] }),
|
|
3468
3468
|
/* @__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(
|
|
3470
|
-
/* @__PURE__ */ t(
|
|
3471
|
-
/* @__PURE__ */ t(
|
|
3469
|
+
/* @__PURE__ */ t(x, { className: "h-6 w-[5.5rem] rounded-md" }),
|
|
3470
|
+
/* @__PURE__ */ t(x, { className: "h-6 w-[5.5rem] rounded-md" }),
|
|
3471
|
+
/* @__PURE__ */ t(x, { className: "h-6 w-[5.5rem] rounded-md" })
|
|
3472
3472
|
] }),
|
|
3473
|
-
/* @__PURE__ */ t(
|
|
3473
|
+
/* @__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
3474
|
] }) });
|
|
3475
3475
|
}
|
|
3476
3476
|
function io() {
|
|
3477
3477
|
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
3478
|
/* @__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(
|
|
3480
|
-
/* @__PURE__ */ t(
|
|
3479
|
+
/* @__PURE__ */ t(x, { className: "size-4 shrink-0 rounded" }),
|
|
3480
|
+
/* @__PURE__ */ t(x, { className: "h-4 min-w-0 flex-1 max-w-[8rem]" })
|
|
3481
3481
|
] }),
|
|
3482
3482
|
/* @__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(
|
|
3484
|
-
/* @__PURE__ */ t(
|
|
3485
|
-
/* @__PURE__ */ t(
|
|
3483
|
+
/* @__PURE__ */ t(x, { className: "h-6 w-[5.5rem] rounded-md" }),
|
|
3484
|
+
/* @__PURE__ */ t(x, { className: "h-6 w-[5.5rem] rounded-md" }),
|
|
3485
|
+
/* @__PURE__ */ t(x, { className: "h-6 w-[5.5rem] rounded-md" })
|
|
3486
3486
|
] }),
|
|
3487
|
-
/* @__PURE__ */ t(
|
|
3487
|
+
/* @__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
3488
|
] });
|
|
3489
3489
|
}
|
|
3490
3490
|
function so({
|
|
@@ -3494,45 +3494,45 @@ function so({
|
|
|
3494
3494
|
/* @__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
3495
|
/* @__PURE__ */ t(I, { title: e.title, subtitle: e.subtitle, className: "min-w-0 flex-1" }),
|
|
3496
3496
|
/* @__PURE__ */ l(M, { type: "button", variant: "default", className: br, disabled: !0, children: [
|
|
3497
|
-
/* @__PURE__ */ t(
|
|
3497
|
+
/* @__PURE__ */ t(dt, { className: "size-4 shrink-0" }),
|
|
3498
3498
|
"Export All Reports"
|
|
3499
3499
|
] })
|
|
3500
3500
|
] }),
|
|
3501
3501
|
/* @__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(
|
|
3502
|
+
/* @__PURE__ */ l(T, { children: [
|
|
3503
3503
|
/* @__PURE__ */ l("div", { className: "mb-4 flex items-start justify-between gap-4", children: [
|
|
3504
3504
|
/* @__PURE__ */ l("div", { className: "flex min-w-0 items-center gap-1.5", children: [
|
|
3505
3505
|
/* @__PURE__ */ t("span", { className: "text-xl font-bold text-[color:var(--mb-color-text)]", children: "Overall Metabolic Score" }),
|
|
3506
3506
|
/* @__PURE__ */ t("span", { className: "pointer-events-none opacity-70", "aria-hidden": !0, children: /* @__PURE__ */ t(E, { className: "size-4" }) })
|
|
3507
3507
|
] }),
|
|
3508
|
-
/* @__PURE__ */ t(
|
|
3508
|
+
/* @__PURE__ */ t(x, { className: "h-8 w-[3.25rem] shrink-0 rounded-md" })
|
|
3509
3509
|
] }),
|
|
3510
3510
|
/* @__PURE__ */ t(Rn, { score: 0, showIndicator: !1 }),
|
|
3511
3511
|
/* @__PURE__ */ l("ul", { className: "list-none p-0 mx-0 mb-0 mt-4", children: [
|
|
3512
|
-
/* @__PURE__ */ l("li", { className:
|
|
3513
|
-
/* @__PURE__ */ l("span", { className:
|
|
3514
|
-
/* @__PURE__ */ t("span", { className:
|
|
3512
|
+
/* @__PURE__ */ l("li", { className: Ve, children: [
|
|
3513
|
+
/* @__PURE__ */ l("span", { className: Ze, children: [
|
|
3514
|
+
/* @__PURE__ */ t("span", { className: We, "aria-hidden": !0, children: /* @__PURE__ */ t(ct, { className: Ue }) }),
|
|
3515
3515
|
/* @__PURE__ */ t("span", { className: "min-w-0 truncate", children: "Last Questionnaire" })
|
|
3516
3516
|
] }),
|
|
3517
|
-
/* @__PURE__ */ t(_, { variant: "value", children: /* @__PURE__ */ t(
|
|
3517
|
+
/* @__PURE__ */ t(_, { variant: "value", children: /* @__PURE__ */ t(x, { className: "h-3.5 w-16" }) })
|
|
3518
3518
|
] }),
|
|
3519
|
-
/* @__PURE__ */ l("li", { className: `${
|
|
3520
|
-
/* @__PURE__ */ l("span", { className:
|
|
3521
|
-
/* @__PURE__ */ t("span", { className:
|
|
3519
|
+
/* @__PURE__ */ l("li", { className: `${Ve} ${Ft}`, children: [
|
|
3520
|
+
/* @__PURE__ */ l("span", { className: Ze, children: [
|
|
3521
|
+
/* @__PURE__ */ t("span", { className: We, "aria-hidden": !0, children: /* @__PURE__ */ t(cr, { className: Ue }) }),
|
|
3522
3522
|
/* @__PURE__ */ t("span", { className: "min-w-0 truncate", children: "Last Labs" })
|
|
3523
3523
|
] }),
|
|
3524
|
-
/* @__PURE__ */ t(_, { variant: "value", children: /* @__PURE__ */ t(
|
|
3524
|
+
/* @__PURE__ */ t(_, { variant: "value", children: /* @__PURE__ */ t(x, { className: "h-3.5 w-20" }) })
|
|
3525
3525
|
] }),
|
|
3526
|
-
/* @__PURE__ */ l("li", { className: `${
|
|
3527
|
-
/* @__PURE__ */ l("span", { className:
|
|
3528
|
-
/* @__PURE__ */ t("span", { className:
|
|
3526
|
+
/* @__PURE__ */ l("li", { className: `${Ve} ${Ft}`, children: [
|
|
3527
|
+
/* @__PURE__ */ l("span", { className: Ze, children: [
|
|
3528
|
+
/* @__PURE__ */ t("span", { className: We, "aria-hidden": !0, children: /* @__PURE__ */ t(sr, { className: Ue }) }),
|
|
3529
3529
|
/* @__PURE__ */ t("span", { className: "min-w-0 truncate", children: "Wearable" })
|
|
3530
3530
|
] }),
|
|
3531
|
-
/* @__PURE__ */ t(_, { variant: "value", children: /* @__PURE__ */ t(
|
|
3531
|
+
/* @__PURE__ */ t(_, { variant: "value", children: /* @__PURE__ */ t(x, { className: "h-3.5 w-12" }) })
|
|
3532
3532
|
] })
|
|
3533
3533
|
] })
|
|
3534
3534
|
] }),
|
|
3535
|
-
/* @__PURE__ */ l(
|
|
3535
|
+
/* @__PURE__ */ l(T, { className: "min-w-0 overflow-visible", children: [
|
|
3536
3536
|
/* @__PURE__ */ l("div", { className: "mb-4 flex items-center gap-1.5", children: [
|
|
3537
3537
|
/* @__PURE__ */ t("h2", { className: "text-xl font-bold text-[color:var(--mb-color-text)]", children: "Metaflammation Gauge" }),
|
|
3538
3538
|
/* @__PURE__ */ t("span", { className: "pointer-events-none opacity-70", "aria-hidden": !0, children: /* @__PURE__ */ t(E, { className: "size-4" }) })
|
|
@@ -3540,8 +3540,8 @@ function so({
|
|
|
3540
3540
|
/* @__PURE__ */ t(lr, { value: 0, max: 7e3 })
|
|
3541
3541
|
] })
|
|
3542
3542
|
] }),
|
|
3543
|
-
/* @__PURE__ */ l(
|
|
3544
|
-
/* @__PURE__ */ t(
|
|
3543
|
+
/* @__PURE__ */ l(T, { children: [
|
|
3544
|
+
/* @__PURE__ */ t(Qe, { titleWidthClass: "w-52 max-w-full sm:w-64" }),
|
|
3545
3545
|
/* @__PURE__ */ t("div", { className: "flex gap-3 overflow-x-auto pb-0.5", "data-testid": "dashboard-skeleton-triad-strip", children: [0, 1, 2, 3, 4].map((r) => /* @__PURE__ */ l(
|
|
3546
3546
|
"div",
|
|
3547
3547
|
{
|
|
@@ -3551,8 +3551,8 @@ function so({
|
|
|
3551
3551
|
].join(" "),
|
|
3552
3552
|
children: [
|
|
3553
3553
|
/* @__PURE__ */ t(jt, { className: "size-[6.5rem] max-w-full" }),
|
|
3554
|
-
/* @__PURE__ */ t(
|
|
3555
|
-
/* @__PURE__ */ t(
|
|
3554
|
+
/* @__PURE__ */ t(x, { className: "h-3 w-[4.5rem]" }),
|
|
3555
|
+
/* @__PURE__ */ t(x, { className: "h-8 w-12" })
|
|
3556
3556
|
]
|
|
3557
3557
|
},
|
|
3558
3558
|
r
|
|
@@ -3568,12 +3568,12 @@ function so({
|
|
|
3568
3568
|
}
|
|
3569
3569
|
)
|
|
3570
3570
|
] }),
|
|
3571
|
-
/* @__PURE__ */ l(
|
|
3572
|
-
/* @__PURE__ */ t(
|
|
3571
|
+
/* @__PURE__ */ l(T, { children: [
|
|
3572
|
+
/* @__PURE__ */ t(Qe, { titleWidthClass: "w-48 max-w-full sm:w-56" }),
|
|
3573
3573
|
/* @__PURE__ */ t("div", { className: "space-y-2", "data-testid": "dashboard-skeleton-alert-rows", children: [0, 1, 2].map((r) => /* @__PURE__ */ t(Gt, {}, r)) })
|
|
3574
3574
|
] }),
|
|
3575
|
-
/* @__PURE__ */ l(
|
|
3576
|
-
/* @__PURE__ */ t(
|
|
3575
|
+
/* @__PURE__ */ l(T, { className: "min-w-0", children: [
|
|
3576
|
+
/* @__PURE__ */ t(Qe, { titleWidthClass: "w-64 max-w-full sm:w-72" }),
|
|
3577
3577
|
/* @__PURE__ */ t(
|
|
3578
3578
|
"div",
|
|
3579
3579
|
{
|
|
@@ -3586,8 +3586,8 @@ function so({
|
|
|
3586
3586
|
children: [
|
|
3587
3587
|
/* @__PURE__ */ l("div", { className: "flex shrink-0 flex-col items-center gap-1 xl:w-[9rem] xl:justify-center", children: [
|
|
3588
3588
|
/* @__PURE__ */ t(jt, { className: "size-16 shrink-0 xl:size-20" }),
|
|
3589
|
-
/* @__PURE__ */ t(
|
|
3590
|
-
/* @__PURE__ */ t(
|
|
3589
|
+
/* @__PURE__ */ t(x, { className: "h-3 w-24" }),
|
|
3590
|
+
/* @__PURE__ */ t(x, { className: "h-8 w-14" })
|
|
3591
3591
|
] }),
|
|
3592
3592
|
/* @__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
3593
|
]
|
|
@@ -3599,7 +3599,7 @@ function so({
|
|
|
3599
3599
|
] })
|
|
3600
3600
|
] });
|
|
3601
3601
|
}
|
|
3602
|
-
function
|
|
3602
|
+
function Ds({ content: e }) {
|
|
3603
3603
|
const { pageHeader: r, sections: n } = e, a = n ?? [];
|
|
3604
3604
|
return /* @__PURE__ */ l("div", { className: "mx-auto w-full max-w-full min-w-0 space-y-6", children: [
|
|
3605
3605
|
/* @__PURE__ */ t(I, { title: r.title, subtitle: r.subtitle }),
|
|
@@ -3611,19 +3611,19 @@ function co({
|
|
|
3611
3611
|
}) {
|
|
3612
3612
|
return /* @__PURE__ */ l(K, { children: [
|
|
3613
3613
|
/* @__PURE__ */ t(I, { title: e.title, subtitle: e.subtitle }),
|
|
3614
|
-
/* @__PURE__ */ t("div", { className: "space-y-6", children: [0, 1, 2].map((r) => /* @__PURE__ */ l(
|
|
3614
|
+
/* @__PURE__ */ t("div", { className: "space-y-6", children: [0, 1, 2].map((r) => /* @__PURE__ */ l(T, { className: "flex flex-col", children: [
|
|
3615
3615
|
/* @__PURE__ */ l("div", { className: "mb-6 flex flex-wrap items-center justify-between gap-3", children: [
|
|
3616
3616
|
/* @__PURE__ */ l("div", { className: "flex min-w-0 flex-1 items-center gap-2", children: [
|
|
3617
|
-
/* @__PURE__ */ t(
|
|
3618
|
-
/* @__PURE__ */ t(
|
|
3617
|
+
/* @__PURE__ */ t(x, { className: "h-9 w-9 shrink-0 rounded-md" }),
|
|
3618
|
+
/* @__PURE__ */ t(x, { className: "h-7 w-[min(100%,16rem)]" })
|
|
3619
3619
|
] }),
|
|
3620
|
-
/* @__PURE__ */ t(
|
|
3620
|
+
/* @__PURE__ */ t(x, { className: "h-9 w-14" })
|
|
3621
3621
|
] }),
|
|
3622
|
-
/* @__PURE__ */ t(
|
|
3622
|
+
/* @__PURE__ */ t(je, { variant: "labAnalysis" }),
|
|
3623
3623
|
/* @__PURE__ */ l("div", { className: "mt-6 space-y-3", children: [
|
|
3624
|
-
/* @__PURE__ */ t(
|
|
3625
|
-
/* @__PURE__ */ t(
|
|
3626
|
-
/* @__PURE__ */ t(
|
|
3624
|
+
/* @__PURE__ */ t(x, { className: "h-3.5 w-full" }),
|
|
3625
|
+
/* @__PURE__ */ t(x, { className: "h-3.5 w-full" }),
|
|
3626
|
+
/* @__PURE__ */ t(x, { className: "h-3.5 w-[85%]" })
|
|
3627
3627
|
] })
|
|
3628
3628
|
] }, r)) })
|
|
3629
3629
|
] });
|
|
@@ -3659,10 +3659,10 @@ function fo(e) {
|
|
|
3659
3659
|
groups: a
|
|
3660
3660
|
}));
|
|
3661
3661
|
}
|
|
3662
|
-
function
|
|
3663
|
-
var
|
|
3662
|
+
function Rs({ content: e }) {
|
|
3663
|
+
var u, f;
|
|
3664
3664
|
if (!e) return null;
|
|
3665
|
-
const { pageHeader: r, intro: n, groups: a } = e, o = !!(n && (n.heading || (
|
|
3665
|
+
const { pageHeader: r, intro: n, groups: a } = e, o = !!(n && (n.heading || (u = n.paragraphs) != null && u.length)), i = a && a.length > 0, s = j(() => fo(a ?? []), [a]), [c, d] = H(0), m = Math.min(c, Math.max(0, s.length - 1)), b = ((f = s[m]) == null ? void 0 : f.groups) ?? [], p = s.map((h) => ({
|
|
3666
3666
|
triadNumber: h.triadNumber,
|
|
3667
3667
|
name: `Triad ${h.triadNumber}`,
|
|
3668
3668
|
aggregateScoreDisplay: String(h.triadNumber)
|
|
@@ -3670,17 +3670,17 @@ function Bs({ content: e }) {
|
|
|
3670
3670
|
return /* @__PURE__ */ l("div", { className: "mx-auto w-full min-w-0 space-y-6", children: [
|
|
3671
3671
|
/* @__PURE__ */ t(I, { title: r.title, subtitle: r.subtitle }),
|
|
3672
3672
|
i ? /* @__PURE__ */ t(te, { children: /* @__PURE__ */ t(
|
|
3673
|
-
|
|
3673
|
+
ut,
|
|
3674
3674
|
{
|
|
3675
|
-
triads:
|
|
3675
|
+
triads: p,
|
|
3676
3676
|
selectedIndex: m,
|
|
3677
3677
|
onSelectIndex: d
|
|
3678
3678
|
}
|
|
3679
3679
|
) }) : null,
|
|
3680
|
-
v ? /* @__PURE__ */ t(
|
|
3680
|
+
v ? /* @__PURE__ */ t(T, { className: "min-w-0", children: /* @__PURE__ */ l("div", { className: "space-y-6", children: [
|
|
3681
3681
|
o && n ? /* @__PURE__ */ t(hr, { ...n, embeddedInCard: !0 }) : null,
|
|
3682
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:
|
|
3683
|
+
i ? /* @__PURE__ */ t("div", { className: "space-y-6", children: b.map((h, g) => /* @__PURE__ */ l(
|
|
3684
3684
|
"div",
|
|
3685
3685
|
{
|
|
3686
3686
|
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)]",
|
|
@@ -3700,7 +3700,7 @@ function Bs({ content: e }) {
|
|
|
3700
3700
|
)) })
|
|
3701
3701
|
]
|
|
3702
3702
|
},
|
|
3703
|
-
`${h.title}-${
|
|
3703
|
+
`${h.title}-${g}`
|
|
3704
3704
|
)) }) : null
|
|
3705
3705
|
] }) }) : null
|
|
3706
3706
|
] });
|
|
@@ -3709,14 +3709,14 @@ const go = 5;
|
|
|
3709
3709
|
function po() {
|
|
3710
3710
|
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
3711
|
/* @__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(
|
|
3713
|
-
/* @__PURE__ */ t(
|
|
3712
|
+
/* @__PURE__ */ t(x, { className: "size-4 shrink-0 rounded" }),
|
|
3713
|
+
/* @__PURE__ */ t(x, { className: "h-3.5 min-w-0 flex-1 max-w-[10rem] sm:h-4" })
|
|
3714
3714
|
] }),
|
|
3715
3715
|
/* @__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(
|
|
3717
|
-
/* @__PURE__ */ t("div", { className: "flex min-w-0 justify-center", children: /* @__PURE__ */ t(
|
|
3716
|
+
/* @__PURE__ */ t("div", { className: "flex min-w-0 justify-center", children: /* @__PURE__ */ t(x, { className: "h-6 w-[min(100%,7rem)]" }) }),
|
|
3717
|
+
/* @__PURE__ */ t("div", { className: "flex min-w-0 justify-center", children: /* @__PURE__ */ t(x, { className: "h-6 w-[min(100%,7rem)]" }) })
|
|
3718
3718
|
] }),
|
|
3719
|
-
/* @__PURE__ */ t(
|
|
3719
|
+
/* @__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
3720
|
] });
|
|
3721
3721
|
}
|
|
3722
3722
|
function xo({
|
|
@@ -3729,27 +3729,27 @@ function xo({
|
|
|
3729
3729
|
{
|
|
3730
3730
|
className: "flex min-w-[9rem] flex-1 flex-col items-center gap-3 px-5 py-4",
|
|
3731
3731
|
children: [
|
|
3732
|
-
/* @__PURE__ */ t(
|
|
3733
|
-
/* @__PURE__ */ t(
|
|
3734
|
-
/* @__PURE__ */ t(
|
|
3732
|
+
/* @__PURE__ */ t(x, { className: "size-26 shrink-0 rounded-full" }),
|
|
3733
|
+
/* @__PURE__ */ t(x, { className: "h-3 w-16" }),
|
|
3734
|
+
/* @__PURE__ */ t(x, { className: "h-8 w-10" })
|
|
3735
3735
|
]
|
|
3736
3736
|
},
|
|
3737
3737
|
n
|
|
3738
3738
|
)) }),
|
|
3739
|
-
/* @__PURE__ */ t(
|
|
3739
|
+
/* @__PURE__ */ t(T, { className: "min-w-0", children: /* @__PURE__ */ l("div", { className: "space-y-6", children: [
|
|
3740
3740
|
/* @__PURE__ */ l("div", { className: "grid min-w-0 grid-cols-1 gap-6 xl:grid-cols-2 xl:items-stretch", children: [
|
|
3741
3741
|
/* @__PURE__ */ l("div", { className: "min-w-0 space-y-4", children: [
|
|
3742
3742
|
/* @__PURE__ */ l("div", { className: "flex items-center gap-2", children: [
|
|
3743
|
-
/* @__PURE__ */ t(
|
|
3744
|
-
/* @__PURE__ */ t(
|
|
3743
|
+
/* @__PURE__ */ t(x, { className: "h-9 w-9 shrink-0 rounded-md" }),
|
|
3744
|
+
/* @__PURE__ */ t(x, { className: "h-7 w-[min(100%,14rem)]" })
|
|
3745
3745
|
] }),
|
|
3746
3746
|
/* @__PURE__ */ l("div", { className: "space-y-3", children: [
|
|
3747
|
-
/* @__PURE__ */ t(
|
|
3748
|
-
/* @__PURE__ */ t(
|
|
3749
|
-
/* @__PURE__ */ t(
|
|
3747
|
+
/* @__PURE__ */ t(x, { className: "h-3.5 w-full" }),
|
|
3748
|
+
/* @__PURE__ */ t(x, { className: "h-3.5 w-full" }),
|
|
3749
|
+
/* @__PURE__ */ t(x, { className: "h-3.5 w-[90%]" })
|
|
3750
3750
|
] })
|
|
3751
3751
|
] }),
|
|
3752
|
-
/* @__PURE__ */ t("div", { className: "flex min-w-0 items-center", children: /* @__PURE__ */ t(
|
|
3752
|
+
/* @__PURE__ */ t("div", { className: "flex min-w-0 items-center", children: /* @__PURE__ */ t(x, { className: "aspect-video w-full rounded-lg" }) })
|
|
3753
3753
|
] }),
|
|
3754
3754
|
/* @__PURE__ */ t("div", { className: "border-t border-[color:var(--mb-color-card-border)]" }),
|
|
3755
3755
|
/* @__PURE__ */ t("div", { className: "space-y-6", children: [0, 1].map((r) => /* @__PURE__ */ l(
|
|
@@ -3758,8 +3758,8 @@ function xo({
|
|
|
3758
3758
|
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
3759
|
children: [
|
|
3760
3760
|
/* @__PURE__ */ l("div", { className: "flex flex-wrap items-baseline justify-between gap-2", children: [
|
|
3761
|
-
/* @__PURE__ */ t(
|
|
3762
|
-
/* @__PURE__ */ t(
|
|
3761
|
+
/* @__PURE__ */ t(x, { className: "h-7 w-[min(100%,12rem)]" }),
|
|
3762
|
+
/* @__PURE__ */ t(x, { className: "h-5 w-24 sm:h-6" })
|
|
3763
3763
|
] }),
|
|
3764
3764
|
/* @__PURE__ */ t("div", { className: "space-y-2", children: (r === 0 ? [0, 1, 2, 3] : [0, 1, 2]).map((n) => /* @__PURE__ */ t(po, {}, n)) })
|
|
3765
3765
|
]
|
|
@@ -3808,7 +3808,7 @@ function wr({ blocks: e }) {
|
|
|
3808
3808
|
) : r.type === "list" ? /* @__PURE__ */ t(wo, { items: r.items }, a) : r.type === "table" ? /* @__PURE__ */ t(yo, { rows: r.rows }, a) : null;
|
|
3809
3809
|
}) });
|
|
3810
3810
|
}
|
|
3811
|
-
const
|
|
3811
|
+
const Ke = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE_AG_CHARTS_LICENSE_KEY: "Using_this_{AG_Charts}_Enterprise_key_{AG-125036}_in_excess_of_the_licence_granted_is_not_permitted___Please_report_misuse_to_legal@ag-grid.com___For_help_with_changing_this_key_please_contact_info@ag-grid.com___{Metabolic_Code}_is_granted_a_{Single_Application}_Developer_License_for_the_application_{Metabolic_Code}_only_for_{1}_Front-End_JavaScript_developer___All_Front-End_JavaScript_developers_working_on_{Metabolic_Code}_need_to_be_licensed___{Metabolic_Code}_has_been_granted_a_Deployment_License_Add-on_for_{1}_Production_Environment___This_key_works_with_{AG_Charts}_Enterprise_versions_released_before_{31_March_2027}____[v3]_[02]_MTgwNjQ0NzYwMDAwMA==4e5dbf88087527cd3b1cf09b0557ec38", VITE_METABOLIC_REPORT_PAGES_API_BASE_URL: "https://mc-api-production-api.salmonstone-a2c3cb0d.canadacentral.azurecontainerapps.io" };
|
|
3812
3812
|
function No() {
|
|
3813
3813
|
try {
|
|
3814
3814
|
return "https://mc-api-production-api.salmonstone-a2c3cb0d.canadacentral.azurecontainerapps.io";
|
|
@@ -3818,7 +3818,7 @@ function No() {
|
|
|
3818
3818
|
}
|
|
3819
3819
|
const Co = No() ?? "", yr = (() => {
|
|
3820
3820
|
try {
|
|
3821
|
-
return
|
|
3821
|
+
return Ke == null ? void 0 : Ke.VITE_METABOLIC_DASHBOARD_STUB_API_KEY;
|
|
3822
3822
|
} catch {
|
|
3823
3823
|
return;
|
|
3824
3824
|
}
|
|
@@ -3826,15 +3826,15 @@ const Co = No() ?? "", yr = (() => {
|
|
|
3826
3826
|
function Ao(e) {
|
|
3827
3827
|
return e === yr;
|
|
3828
3828
|
}
|
|
3829
|
-
function
|
|
3829
|
+
function To(e) {
|
|
3830
3830
|
return e.replace(/\/+$/, "");
|
|
3831
3831
|
}
|
|
3832
|
-
function
|
|
3833
|
-
return
|
|
3832
|
+
function he() {
|
|
3833
|
+
return To(Co);
|
|
3834
3834
|
}
|
|
3835
|
-
function
|
|
3835
|
+
function Ae(e) {
|
|
3836
3836
|
if (!e || /^https?:\/\//i.test(e)) return e;
|
|
3837
|
-
const r =
|
|
3837
|
+
const r = he();
|
|
3838
3838
|
return r ? `${r}${e.startsWith("/") ? e : `/${e}`}` : e;
|
|
3839
3839
|
}
|
|
3840
3840
|
function Yt({ variant: e }) {
|
|
@@ -3843,7 +3843,7 @@ function Yt({ variant: e }) {
|
|
|
3843
3843
|
/* @__PURE__ */ t(
|
|
3844
3844
|
"img",
|
|
3845
3845
|
{
|
|
3846
|
-
src:
|
|
3846
|
+
src: Ae(e.triad_image_url),
|
|
3847
3847
|
alt: "",
|
|
3848
3848
|
className: "size-10 shrink-0 object-contain"
|
|
3849
3849
|
}
|
|
@@ -3868,7 +3868,7 @@ function Yt({ variant: e }) {
|
|
|
3868
3868
|
/* @__PURE__ */ t(wr, { blocks: e.blocks })
|
|
3869
3869
|
] });
|
|
3870
3870
|
}
|
|
3871
|
-
function
|
|
3871
|
+
function Lo({
|
|
3872
3872
|
urinary: e,
|
|
3873
3873
|
salivary: r
|
|
3874
3874
|
}) {
|
|
@@ -3885,7 +3885,7 @@ const Po = [
|
|
|
3885
3885
|
{ color: "#e09a1a", position: 50 },
|
|
3886
3886
|
{ color: "#d94040", position: 100 }
|
|
3887
3887
|
], 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
|
|
3888
|
+
function qe({ label: e, value: r }) {
|
|
3889
3889
|
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
3890
|
/* @__PURE__ */ t("span", { className: So, children: e }),
|
|
3891
3891
|
/* @__PURE__ */ t("span", { className: Mo, children: r })
|
|
@@ -3896,9 +3896,9 @@ function Ho({ patient: e }) {
|
|
|
3896
3896
|
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
3897
|
/* @__PURE__ */ t("h2", { className: "mb-3 text-sm font-bold uppercase tracking-wide text-[color:var(--mb-color-text)]", children: e.organDisplayName }),
|
|
3898
3898
|
/* @__PURE__ */ l("div", { children: [
|
|
3899
|
-
/* @__PURE__ */ t(
|
|
3900
|
-
/* @__PURE__ */ t(
|
|
3901
|
-
/* @__PURE__ */ t(
|
|
3899
|
+
/* @__PURE__ */ t(qe, { label: "Symptom Score", value: e.symptomScore }),
|
|
3900
|
+
/* @__PURE__ */ t(qe, { label: "Lab Score", value: e.labScore }),
|
|
3901
|
+
/* @__PURE__ */ t(qe, { label: "Total", value: e.totalScore })
|
|
3902
3902
|
] }),
|
|
3903
3903
|
/* @__PURE__ */ l("div", { className: "mt-4", children: [
|
|
3904
3904
|
/* @__PURE__ */ t(or, { stops: Po, indicatorPercent: r }),
|
|
@@ -3916,7 +3916,7 @@ function ko({ stage: e }) {
|
|
|
3916
3916
|
/* @__PURE__ */ t(
|
|
3917
3917
|
"img",
|
|
3918
3918
|
{
|
|
3919
|
-
src:
|
|
3919
|
+
src: Ae(e.image_url),
|
|
3920
3920
|
alt: "",
|
|
3921
3921
|
className: "size-12 shrink-0 object-contain"
|
|
3922
3922
|
}
|
|
@@ -3948,7 +3948,7 @@ function Bo({
|
|
|
3948
3948
|
organUrl: r,
|
|
3949
3949
|
organDisplayName: n
|
|
3950
3950
|
}) {
|
|
3951
|
-
const a =
|
|
3951
|
+
const a = Ae(e), o = Ae(r), i = a === o;
|
|
3952
3952
|
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
3953
|
/* @__PURE__ */ t(
|
|
3954
3954
|
"img",
|
|
@@ -4013,7 +4013,7 @@ function Do({
|
|
|
4013
4013
|
/* @__PURE__ */ t(jo, { stages: r.stages })
|
|
4014
4014
|
] }) : null,
|
|
4015
4015
|
a ? /* @__PURE__ */ t(
|
|
4016
|
-
|
|
4016
|
+
Lo,
|
|
4017
4017
|
{
|
|
4018
4018
|
urinary: a.urinary,
|
|
4019
4019
|
salivary: a.salivary
|
|
@@ -4021,7 +4021,7 @@ function Do({
|
|
|
4021
4021
|
) : null
|
|
4022
4022
|
] });
|
|
4023
4023
|
}
|
|
4024
|
-
function
|
|
4024
|
+
function zs({
|
|
4025
4025
|
content: e
|
|
4026
4026
|
}) {
|
|
4027
4027
|
const { pageHeader: r, sections: n } = e, a = n ?? [];
|
|
@@ -4043,16 +4043,16 @@ function zo({
|
|
|
4043
4043
|
}) {
|
|
4044
4044
|
return /* @__PURE__ */ l(K, { children: [
|
|
4045
4045
|
/* @__PURE__ */ t(I, { title: e.title, subtitle: e.subtitle }),
|
|
4046
|
-
/* @__PURE__ */ t("div", { className: "space-y-6", children: [0, 1, 2].map((r) => /* @__PURE__ */ l(
|
|
4046
|
+
/* @__PURE__ */ t("div", { className: "space-y-6", children: [0, 1, 2].map((r) => /* @__PURE__ */ l(T, { className: "flex flex-col", children: [
|
|
4047
4047
|
/* @__PURE__ */ l("div", { className: "mb-6 flex flex-wrap items-center justify-between gap-3", children: [
|
|
4048
4048
|
/* @__PURE__ */ l("div", { className: "flex min-w-0 flex-1 items-center gap-2", children: [
|
|
4049
|
-
/* @__PURE__ */ t(
|
|
4050
|
-
/* @__PURE__ */ t(
|
|
4049
|
+
/* @__PURE__ */ t(x, { className: "h-9 w-9 shrink-0 rounded-md" }),
|
|
4050
|
+
/* @__PURE__ */ t(x, { className: "h-7 w-[min(100%,18rem)]" })
|
|
4051
4051
|
] }),
|
|
4052
|
-
/* @__PURE__ */ t(
|
|
4052
|
+
/* @__PURE__ */ t(x, { className: "h-9 w-14" })
|
|
4053
4053
|
] }),
|
|
4054
4054
|
/* @__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
|
-
|
|
4055
|
+
je,
|
|
4056
4056
|
{
|
|
4057
4057
|
variant: "questionnaire",
|
|
4058
4058
|
title: n
|
|
@@ -4069,7 +4069,7 @@ function Oo(e) {
|
|
|
4069
4069
|
r.push(e.slice(n, n + Xt));
|
|
4070
4070
|
return r;
|
|
4071
4071
|
}
|
|
4072
|
-
function
|
|
4072
|
+
function Os({ content: e }) {
|
|
4073
4073
|
var S;
|
|
4074
4074
|
if (!e) return null;
|
|
4075
4075
|
const {
|
|
@@ -4081,44 +4081,44 @@ function Ds({ content: e }) {
|
|
|
4081
4081
|
symptoms: s,
|
|
4082
4082
|
productsSectionTitle: c,
|
|
4083
4083
|
products: d
|
|
4084
|
-
} = e, m = !!(n && (n.heading || (S = n.paragraphs) != null && S.length)),
|
|
4084
|
+
} = e, m = !!(n && (n.heading || (S = n.paragraphs) != null && S.length)), b = o ?? [], p = s ?? [], v = d ?? [], u = b.length > 0, f = p.length > 0, h = v.length > 0, g = m || u || f || h, C = (n == null ? void 0 : n.triadNumber) != null && n ? [
|
|
4085
4085
|
{
|
|
4086
4086
|
triadNumber: n.triadNumber,
|
|
4087
4087
|
name: `Triad ${n.triadNumber}`,
|
|
4088
4088
|
aggregateScoreDisplay: String(n.triadNumber)
|
|
4089
4089
|
}
|
|
4090
|
-
] : [], [N, w] = H(0), P = Math.min(N, Math.max(0, C.length - 1)), A =
|
|
4090
|
+
] : [], [N, w] = H(0), P = Math.min(N, Math.max(0, C.length - 1)), A = f || h || u;
|
|
4091
4091
|
return /* @__PURE__ */ l("div", { className: "mx-auto w-full min-w-0 space-y-6", children: [
|
|
4092
4092
|
/* @__PURE__ */ t(I, { title: r.title, subtitle: r.subtitle }),
|
|
4093
4093
|
C.length > 0 ? /* @__PURE__ */ t(
|
|
4094
|
-
|
|
4094
|
+
ut,
|
|
4095
4095
|
{
|
|
4096
4096
|
triads: C,
|
|
4097
4097
|
selectedIndex: P,
|
|
4098
4098
|
onSelectIndex: w
|
|
4099
4099
|
}
|
|
4100
4100
|
) : null,
|
|
4101
|
-
|
|
4101
|
+
g ? /* @__PURE__ */ t(T, { className: "min-w-0", children: /* @__PURE__ */ l("div", { className: "space-y-6", children: [
|
|
4102
4102
|
m && n ? /* @__PURE__ */ t(hr, { ...n, embeddedInCard: !0 }) : null,
|
|
4103
4103
|
m && A ? /* @__PURE__ */ t("div", { className: "border-t border-[color:var(--mb-color-card-border)]" }) : null,
|
|
4104
|
-
|
|
4104
|
+
f ? /* @__PURE__ */ l("div", { className: "space-y-5", children: [
|
|
4105
4105
|
/* @__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(
|
|
4106
|
+
/* @__PURE__ */ t("div", { className: "space-y-0", children: Oo(p).map((L) => /* @__PURE__ */ t(
|
|
4107
4107
|
"div",
|
|
4108
4108
|
{
|
|
4109
4109
|
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:
|
|
4110
|
+
children: L.map((z) => /* @__PURE__ */ l("div", { className: "flex min-h-10 items-center gap-3", children: [
|
|
4111
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 }) }),
|
|
4112
4112
|
/* @__PURE__ */ t("span", { className: "text-sm leading-5 text-[color:var(--mb-color-text)]", children: z })
|
|
4113
4113
|
] }, z))
|
|
4114
4114
|
},
|
|
4115
|
-
|
|
4115
|
+
L[0]
|
|
4116
4116
|
)) })
|
|
4117
4117
|
] }) : null,
|
|
4118
|
-
|
|
4118
|
+
f && (h || u) ? /* @__PURE__ */ t("div", { className: "border-t border-[color:var(--mb-color-card-border)]" }) : null,
|
|
4119
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: [
|
|
4120
4120
|
/* @__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((
|
|
4121
|
+
/* @__PURE__ */ t("div", { className: "grid w-full min-w-0 grid-cols-1 gap-5 sm:grid-cols-2 sm:gap-6 xl:grid-cols-3 xl:gap-8", children: v.map((L) => /* @__PURE__ */ l(
|
|
4122
4122
|
"div",
|
|
4123
4123
|
{
|
|
4124
4124
|
className: "flex min-w-0 w-full flex-col items-center",
|
|
@@ -4126,30 +4126,30 @@ function Ds({ content: e }) {
|
|
|
4126
4126
|
/* @__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
4127
|
"img",
|
|
4128
4128
|
{
|
|
4129
|
-
src:
|
|
4130
|
-
alt:
|
|
4129
|
+
src: L.imageSrc ?? pr,
|
|
4130
|
+
alt: L.imageAlt,
|
|
4131
4131
|
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
4132
|
width: 320,
|
|
4133
4133
|
height: 320
|
|
4134
4134
|
}
|
|
4135
4135
|
) }),
|
|
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:
|
|
4137
|
-
|
|
4136
|
+
/* @__PURE__ */ t("span", { className: "mt-3 w-full min-w-0 break-words px-0.5 text-center text-sm font-medium text-[color:var(--mb-color-text)]", children: L.name }),
|
|
4137
|
+
L.tagline ? /* @__PURE__ */ t("span", { className: "mt-1 w-full min-w-0 break-words px-0.5 text-center text-xs text-[color:var(--mb-color-text-muted)]", children: L.tagline }) : null
|
|
4138
4138
|
]
|
|
4139
4139
|
},
|
|
4140
|
-
|
|
4140
|
+
L.name
|
|
4141
4141
|
)) })
|
|
4142
4142
|
] }) : null,
|
|
4143
|
-
h &&
|
|
4144
|
-
|
|
4143
|
+
h && u ? /* @__PURE__ */ t("div", { className: "border-t border-[color:var(--mb-color-card-border)]" }) : null,
|
|
4144
|
+
u ? /* @__PURE__ */ l("div", { className: "space-y-5", children: [
|
|
4145
4145
|
/* @__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:
|
|
4146
|
+
/* @__PURE__ */ t("div", { className: "grid grid-cols-1 items-start gap-4 sm:grid-cols-2 xl:grid-cols-3 xl:gap-6", children: b.map((L) => /* @__PURE__ */ t(
|
|
4147
4147
|
ae,
|
|
4148
4148
|
{
|
|
4149
4149
|
layout: "labResults",
|
|
4150
|
-
category:
|
|
4150
|
+
category: L
|
|
4151
4151
|
},
|
|
4152
|
-
|
|
4152
|
+
L.title
|
|
4153
4153
|
)) })
|
|
4154
4154
|
] }) : null
|
|
4155
4155
|
] }) }) : null
|
|
@@ -4172,56 +4172,56 @@ function Go({
|
|
|
4172
4172
|
{
|
|
4173
4173
|
className: "flex min-w-[9rem] flex-1 flex-col items-center gap-3 px-5 py-4",
|
|
4174
4174
|
children: [
|
|
4175
|
-
/* @__PURE__ */ t(
|
|
4176
|
-
/* @__PURE__ */ t(
|
|
4177
|
-
/* @__PURE__ */ t(
|
|
4175
|
+
/* @__PURE__ */ t(x, { className: "size-26 shrink-0 rounded-full" }),
|
|
4176
|
+
/* @__PURE__ */ t(x, { className: "h-3 w-16" }),
|
|
4177
|
+
/* @__PURE__ */ t(x, { className: "h-8 w-10" })
|
|
4178
4178
|
]
|
|
4179
4179
|
},
|
|
4180
4180
|
n
|
|
4181
4181
|
))
|
|
4182
4182
|
}
|
|
4183
4183
|
),
|
|
4184
|
-
/* @__PURE__ */ t(
|
|
4184
|
+
/* @__PURE__ */ t(T, { className: "min-w-0", children: /* @__PURE__ */ l("div", { className: "space-y-6", children: [
|
|
4185
4185
|
/* @__PURE__ */ l("div", { className: "grid min-w-0 grid-cols-1 gap-6 xl:grid-cols-2 xl:items-stretch", children: [
|
|
4186
4186
|
/* @__PURE__ */ l("div", { className: "min-w-0 space-y-4", children: [
|
|
4187
4187
|
/* @__PURE__ */ l("div", { className: "flex items-center gap-2", children: [
|
|
4188
|
-
/* @__PURE__ */ t(
|
|
4189
|
-
/* @__PURE__ */ t(
|
|
4188
|
+
/* @__PURE__ */ t(x, { className: "h-9 w-9 shrink-0 rounded-md" }),
|
|
4189
|
+
/* @__PURE__ */ t(x, { className: "h-7 w-[min(100%,14rem)]" })
|
|
4190
4190
|
] }),
|
|
4191
4191
|
/* @__PURE__ */ l("div", { className: "space-y-3", children: [
|
|
4192
|
-
/* @__PURE__ */ t(
|
|
4193
|
-
/* @__PURE__ */ t(
|
|
4194
|
-
/* @__PURE__ */ t(
|
|
4192
|
+
/* @__PURE__ */ t(x, { className: "h-3.5 w-full" }),
|
|
4193
|
+
/* @__PURE__ */ t(x, { className: "h-3.5 w-full" }),
|
|
4194
|
+
/* @__PURE__ */ t(x, { className: "h-3.5 w-[90%]" })
|
|
4195
4195
|
] })
|
|
4196
4196
|
] }),
|
|
4197
|
-
/* @__PURE__ */ t("div", { className: "flex min-w-0 items-center", children: /* @__PURE__ */ t(
|
|
4197
|
+
/* @__PURE__ */ t("div", { className: "flex min-w-0 items-center", children: /* @__PURE__ */ t(x, { className: "aspect-video w-full rounded-lg" }) })
|
|
4198
4198
|
] }),
|
|
4199
4199
|
/* @__PURE__ */ t("div", { className: "border-t border-[color:var(--mb-color-card-border)]" }),
|
|
4200
4200
|
/* @__PURE__ */ l("div", { className: "space-y-5", children: [
|
|
4201
|
-
/* @__PURE__ */ t(
|
|
4201
|
+
/* @__PURE__ */ t(x, { className: "h-7 w-32" }),
|
|
4202
4202
|
/* @__PURE__ */ t("div", { className: "space-y-0", children: [0, 1, 2].map((r) => /* @__PURE__ */ t(
|
|
4203
4203
|
"div",
|
|
4204
4204
|
{
|
|
4205
4205
|
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(
|
|
4206
|
+
children: [0, 1, 2].map((n) => /* @__PURE__ */ t(x, { className: "h-10 w-full" }, n))
|
|
4207
4207
|
},
|
|
4208
4208
|
r
|
|
4209
4209
|
)) })
|
|
4210
4210
|
] }),
|
|
4211
4211
|
/* @__PURE__ */ t("div", { className: "border-t border-[color:var(--mb-color-card-border)]" }),
|
|
4212
4212
|
/* @__PURE__ */ l("div", { className: "space-y-5", children: [
|
|
4213
|
-
/* @__PURE__ */ t(
|
|
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(
|
|
4213
|
+
/* @__PURE__ */ t(x, { 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(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
4215
|
] }),
|
|
4216
4216
|
/* @__PURE__ */ t("div", { className: "border-t border-[color:var(--mb-color-card-border)]" }),
|
|
4217
4217
|
/* @__PURE__ */ l("div", { className: "space-y-5", children: [
|
|
4218
|
-
/* @__PURE__ */ t(
|
|
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(
|
|
4218
|
+
/* @__PURE__ */ t(x, { className: "h-7 w-[min(100%,18rem)]" }),
|
|
4219
|
+
/* @__PURE__ */ t("div", { className: "grid grid-cols-1 items-start gap-4 sm:grid-cols-2 xl:grid-cols-3 xl:gap-6", children: Eo.map((r) => /* @__PURE__ */ t(je, { variant: "labResults", title: r }, r)) })
|
|
4220
4220
|
] })
|
|
4221
4221
|
] }) })
|
|
4222
4222
|
] });
|
|
4223
4223
|
}
|
|
4224
|
-
function
|
|
4224
|
+
function Es({ content: e }) {
|
|
4225
4225
|
if (!e) return null;
|
|
4226
4226
|
const { pageHeader: r, practitionerNotes: n, cards: a } = e, o = a && a.length > 0;
|
|
4227
4227
|
return /* @__PURE__ */ l("div", { className: "mx-auto w-full min-w-0 space-y-6", children: [
|
|
@@ -4235,35 +4235,35 @@ function Yo({
|
|
|
4235
4235
|
}) {
|
|
4236
4236
|
return /* @__PURE__ */ l(K, { children: [
|
|
4237
4237
|
/* @__PURE__ */ t(I, { title: e.title, subtitle: e.subtitle }),
|
|
4238
|
-
/* @__PURE__ */ t("div", { className: "grid grid-cols-1 gap-6 lg:grid-cols-2", children: [0, 1].map((r) => /* @__PURE__ */ t(
|
|
4239
|
-
/* @__PURE__ */ t(
|
|
4238
|
+
/* @__PURE__ */ t("div", { className: "grid grid-cols-1 gap-6 lg:grid-cols-2", children: [0, 1].map((r) => /* @__PURE__ */ t(T, { children: /* @__PURE__ */ l("div", { className: "flex flex-col gap-4 sm:flex-row", children: [
|
|
4239
|
+
/* @__PURE__ */ t(x, { className: "mx-auto h-32 w-32 shrink-0 rounded-lg sm:mx-0" }),
|
|
4240
4240
|
/* @__PURE__ */ l("div", { className: "min-w-0 flex-1 space-y-3", children: [
|
|
4241
|
-
/* @__PURE__ */ t(
|
|
4241
|
+
/* @__PURE__ */ t(x, { className: "h-6 w-3/4" }),
|
|
4242
4242
|
/* @__PURE__ */ t("div", { className: "space-y-2", children: [0, 1, 2, 3, 4].map((n) => /* @__PURE__ */ l(
|
|
4243
4243
|
"div",
|
|
4244
4244
|
{
|
|
4245
4245
|
className: "flex items-center justify-between gap-3 border-b border-[color:var(--mb-color-card-border)] py-2 last:border-b-0",
|
|
4246
4246
|
children: [
|
|
4247
4247
|
/* @__PURE__ */ t("span", { className: "text-sm text-[color:var(--mb-color-text)]", children: ["Morning (AM)", "Noon", "Afternoon", "Dinner (PM)", "Bedtime"][n] }),
|
|
4248
|
-
/* @__PURE__ */ t(
|
|
4248
|
+
/* @__PURE__ */ t(x, { className: "h-4 w-24 shrink-0" })
|
|
4249
4249
|
]
|
|
4250
4250
|
},
|
|
4251
4251
|
n
|
|
4252
4252
|
)) })
|
|
4253
4253
|
] })
|
|
4254
4254
|
] }) }, r)) }),
|
|
4255
|
-
/* @__PURE__ */ l(
|
|
4255
|
+
/* @__PURE__ */ l(T, { children: [
|
|
4256
4256
|
/* @__PURE__ */ t("h2", { className: "text-xl font-bold text-[color:var(--mb-color-text)]", children: "Practitioner Notes" }),
|
|
4257
4257
|
/* @__PURE__ */ l("div", { className: "mt-4 space-y-3", children: [
|
|
4258
|
-
/* @__PURE__ */ t(
|
|
4259
|
-
/* @__PURE__ */ t(
|
|
4260
|
-
/* @__PURE__ */ t(
|
|
4258
|
+
/* @__PURE__ */ t(x, { className: "h-3.5 w-full" }),
|
|
4259
|
+
/* @__PURE__ */ t(x, { className: "h-3.5 w-full" }),
|
|
4260
|
+
/* @__PURE__ */ t(x, { className: "h-3.5 w-[88%]" })
|
|
4261
4261
|
] })
|
|
4262
4262
|
] })
|
|
4263
4263
|
] });
|
|
4264
4264
|
}
|
|
4265
4265
|
function Xo(e, r) {
|
|
4266
|
-
const n =
|
|
4266
|
+
const n = He(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
4267
|
return {
|
|
4268
4268
|
triadHeading: `${e.heading.split(":")[0]}: ${o}`,
|
|
4269
4269
|
organDisplayName: o,
|
|
@@ -4274,21 +4274,21 @@ function Xo(e, r) {
|
|
|
4274
4274
|
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
4275
|
};
|
|
4276
4276
|
}
|
|
4277
|
-
function
|
|
4277
|
+
function Fs({ content: e }) {
|
|
4278
4278
|
const { pageHeader: r, triadCards: n, organContent: a, cortisolContent: o } = e, i = n ?? [], [s, c] = H(null), d = j(
|
|
4279
|
-
() => (m) => (
|
|
4280
|
-
|
|
4279
|
+
() => (m) => (b) => {
|
|
4280
|
+
b.organKey && a != null && a[b.organKey] && c({ triadCard: m, category: b });
|
|
4281
4281
|
},
|
|
4282
4282
|
[a]
|
|
4283
4283
|
);
|
|
4284
4284
|
if (s && (a != null && a[s.category.organKey ?? ""])) {
|
|
4285
|
-
const m = s.category.organKey,
|
|
4286
|
-
if (
|
|
4285
|
+
const m = s.category.organKey, b = m ? a[m] : void 0;
|
|
4286
|
+
if (b)
|
|
4287
4287
|
return /* @__PURE__ */ t(
|
|
4288
4288
|
Do,
|
|
4289
4289
|
{
|
|
4290
4290
|
patient: Xo(s.triadCard, s.category),
|
|
4291
|
-
content:
|
|
4291
|
+
content: b,
|
|
4292
4292
|
onBack: () => c(null),
|
|
4293
4293
|
cortisolContent: m === "adrenal" ? o : void 0
|
|
4294
4294
|
}
|
|
@@ -4312,16 +4312,16 @@ function Zo({
|
|
|
4312
4312
|
}) {
|
|
4313
4313
|
return /* @__PURE__ */ l(K, { children: [
|
|
4314
4314
|
/* @__PURE__ */ t(I, { title: e.title, subtitle: e.subtitle }),
|
|
4315
|
-
/* @__PURE__ */ t("div", { className: "space-y-6", children: [0, 1, 2].map((r) => /* @__PURE__ */ l(
|
|
4315
|
+
/* @__PURE__ */ t("div", { className: "space-y-6", children: [0, 1, 2].map((r) => /* @__PURE__ */ l(T, { className: "flex flex-col", children: [
|
|
4316
4316
|
/* @__PURE__ */ l("div", { className: "mb-6 flex flex-wrap items-center justify-between gap-3", children: [
|
|
4317
4317
|
/* @__PURE__ */ l("div", { className: "flex min-w-0 flex-1 items-center gap-2", children: [
|
|
4318
|
-
/* @__PURE__ */ t(
|
|
4319
|
-
/* @__PURE__ */ t(
|
|
4318
|
+
/* @__PURE__ */ t(x, { className: "h-9 w-9 shrink-0 rounded-md" }),
|
|
4319
|
+
/* @__PURE__ */ t(x, { className: "h-7 w-[min(100%,16rem)]" })
|
|
4320
4320
|
] }),
|
|
4321
|
-
/* @__PURE__ */ t(
|
|
4321
|
+
/* @__PURE__ */ t(x, { className: "h-9 w-16" })
|
|
4322
4322
|
] }),
|
|
4323
4323
|
/* @__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
|
-
|
|
4324
|
+
je,
|
|
4325
4325
|
{
|
|
4326
4326
|
variant: "triadResiliency",
|
|
4327
4327
|
title: n
|
|
@@ -4355,11 +4355,11 @@ function Qo(e) {
|
|
|
4355
4355
|
rows: r.get(n) ?? []
|
|
4356
4356
|
})).filter((n) => n.rows.length > 0);
|
|
4357
4357
|
}
|
|
4358
|
-
function
|
|
4358
|
+
function Gs({ content: e }) {
|
|
4359
4359
|
const { pageHeader: r, indicators: n } = e, o = Qo(n ?? []);
|
|
4360
4360
|
return /* @__PURE__ */ l("div", { className: "mx-auto w-full min-w-0 space-y-6", children: [
|
|
4361
4361
|
/* @__PURE__ */ t(I, { title: r.title, subtitle: r.subtitle }),
|
|
4362
|
-
/* @__PURE__ */ t("div", { className: "flex min-w-0 flex-col gap-6", children: o.map(({ status: i, title: s, rows: c }) => /* @__PURE__ */ l(
|
|
4362
|
+
/* @__PURE__ */ t("div", { className: "flex min-w-0 flex-col gap-6", children: o.map(({ status: i, title: s, rows: c }) => /* @__PURE__ */ l(T, { className: "min-w-0", children: [
|
|
4363
4363
|
/* @__PURE__ */ t("h2", { className: "mb-4 m-0 text-lg font-bold text-[color:var(--mb-color-text)]", children: s }),
|
|
4364
4364
|
/* @__PURE__ */ t("div", { className: "space-y-2", children: c.map((d) => /* @__PURE__ */ t(
|
|
4365
4365
|
le,
|
|
@@ -4381,14 +4381,14 @@ const Ko = [
|
|
|
4381
4381
|
function qo() {
|
|
4382
4382
|
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
4383
|
/* @__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(
|
|
4385
|
-
/* @__PURE__ */ t(
|
|
4384
|
+
/* @__PURE__ */ t(x, { className: "size-8 shrink-0 rounded-md" }),
|
|
4385
|
+
/* @__PURE__ */ t(x, { className: "h-4 min-w-0 flex-1 max-w-[10rem]" })
|
|
4386
4386
|
] }),
|
|
4387
4387
|
/* @__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(
|
|
4389
|
-
/* @__PURE__ */ t(
|
|
4388
|
+
/* @__PURE__ */ t(x, { className: "h-3 w-24 shrink-0" }),
|
|
4389
|
+
/* @__PURE__ */ t(x, { className: "h-6 w-14 shrink-0 rounded-md" })
|
|
4390
4390
|
] }, 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(
|
|
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(x, { className: "m-auto h-9 w-[5.5rem] rounded-md" }) })
|
|
4392
4392
|
] });
|
|
4393
4393
|
}
|
|
4394
4394
|
function Jo({
|
|
@@ -4396,8 +4396,8 @@ function Jo({
|
|
|
4396
4396
|
}) {
|
|
4397
4397
|
return /* @__PURE__ */ l(K, { children: [
|
|
4398
4398
|
/* @__PURE__ */ t(I, { title: e.title, subtitle: e.subtitle }),
|
|
4399
|
-
/* @__PURE__ */ t("div", { className: "flex min-w-0 flex-col gap-6", children: Ko.map(({ title: r, rowCount: n }) => /* @__PURE__ */ l(
|
|
4400
|
-
/* @__PURE__ */ t(
|
|
4399
|
+
/* @__PURE__ */ t("div", { className: "flex min-w-0 flex-col gap-6", children: Ko.map(({ title: r, rowCount: n }) => /* @__PURE__ */ l(T, { className: "min-w-0", children: [
|
|
4400
|
+
/* @__PURE__ */ t(x, { className: "mb-4 h-6 w-28 rounded-md" }),
|
|
4401
4401
|
/* @__PURE__ */ t("div", { className: "space-y-2", children: Array.from({ length: n }, (a, o) => /* @__PURE__ */ t(qo, {}, `${r}-${o}`)) })
|
|
4402
4402
|
] }, r)) })
|
|
4403
4403
|
] });
|
|
@@ -4440,7 +4440,7 @@ function rl(e) {
|
|
|
4440
4440
|
if (r)
|
|
4441
4441
|
return tl(r) ?? void 0;
|
|
4442
4442
|
}
|
|
4443
|
-
function
|
|
4443
|
+
function Ys(e, r) {
|
|
4444
4444
|
const n = encodeURIComponent(el(r)), a = e.includes("?") ? "&" : "?";
|
|
4445
4445
|
return `${e}${a}${Nr}=${n}`;
|
|
4446
4446
|
}
|
|
@@ -4462,7 +4462,7 @@ function ol(e) {
|
|
|
4462
4462
|
patientFullName: Zt(e, al)
|
|
4463
4463
|
};
|
|
4464
4464
|
}
|
|
4465
|
-
function
|
|
4465
|
+
function Xs(e, r) {
|
|
4466
4466
|
const n = new URLSearchParams();
|
|
4467
4467
|
r.patientId && n.set("patientId", r.patientId), r.patientFullName && n.set("patientFullName", r.patientFullName);
|
|
4468
4468
|
const a = n.toString();
|
|
@@ -4470,13 +4470,13 @@ function Fs(e, r) {
|
|
|
4470
4470
|
const o = e.includes("?") ? "&" : "?";
|
|
4471
4471
|
return `${e}${o}${a}`;
|
|
4472
4472
|
}
|
|
4473
|
-
function
|
|
4473
|
+
function Vs() {
|
|
4474
4474
|
window.dispatchEvent(new CustomEvent("metabolic:logout")), window.parent !== window && window.parent.postMessage({ type: "metabolic:logout" }, "*");
|
|
4475
4475
|
}
|
|
4476
4476
|
function ll(e, r) {
|
|
4477
4477
|
return r.length === 0 ? !1 : r.some((n) => n === e);
|
|
4478
4478
|
}
|
|
4479
|
-
function
|
|
4479
|
+
function Zs(e, r, n) {
|
|
4480
4480
|
var a;
|
|
4481
4481
|
(a = e.contentWindow) == null || a.postMessage(
|
|
4482
4482
|
{
|
|
@@ -4487,7 +4487,7 @@ function Ys(e, r, n) {
|
|
|
4487
4487
|
);
|
|
4488
4488
|
}
|
|
4489
4489
|
const W = "h-5 w-5 shrink-0";
|
|
4490
|
-
function
|
|
4490
|
+
function bt() {
|
|
4491
4491
|
return /* @__PURE__ */ l(
|
|
4492
4492
|
"svg",
|
|
4493
4493
|
{
|
|
@@ -4571,7 +4571,7 @@ function cl() {
|
|
|
4571
4571
|
}
|
|
4572
4572
|
);
|
|
4573
4573
|
}
|
|
4574
|
-
function
|
|
4574
|
+
function Ws() {
|
|
4575
4575
|
return /* @__PURE__ */ l(
|
|
4576
4576
|
"svg",
|
|
4577
4577
|
{
|
|
@@ -4760,38 +4760,38 @@ async function U(e, r) {
|
|
|
4760
4760
|
let d;
|
|
4761
4761
|
try {
|
|
4762
4762
|
d = await i(c, { method: "GET", headers: o, signal: s });
|
|
4763
|
-
} catch (
|
|
4764
|
-
throw Wt(
|
|
4765
|
-
`Network error fetching page "${e}": ${
|
|
4766
|
-
{ cause:
|
|
4763
|
+
} catch (p) {
|
|
4764
|
+
throw Wt(p) ? p : new Error(
|
|
4765
|
+
`Network error fetching page "${e}": ${p instanceof Error ? p.message : String(p)}`,
|
|
4766
|
+
{ cause: p }
|
|
4767
4767
|
);
|
|
4768
4768
|
}
|
|
4769
4769
|
let m;
|
|
4770
4770
|
try {
|
|
4771
4771
|
m = await d.text();
|
|
4772
|
-
} catch (
|
|
4773
|
-
throw Wt(
|
|
4774
|
-
`Failed to read response body for page "${e}" (HTTP ${d.status}): ${
|
|
4775
|
-
{ cause:
|
|
4772
|
+
} catch (p) {
|
|
4773
|
+
throw Wt(p) ? p : new Error(
|
|
4774
|
+
`Failed to read response body for page "${e}" (HTTP ${d.status}): ${p instanceof Error ? p.message : String(p)}`,
|
|
4775
|
+
{ cause: p }
|
|
4776
4776
|
);
|
|
4777
4777
|
}
|
|
4778
|
-
let
|
|
4778
|
+
let b;
|
|
4779
4779
|
try {
|
|
4780
|
-
|
|
4780
|
+
b = m ? JSON.parse(m) : null;
|
|
4781
4781
|
} catch {
|
|
4782
|
-
|
|
4782
|
+
b = m;
|
|
4783
4783
|
}
|
|
4784
4784
|
if (!d.ok) {
|
|
4785
|
-
const v = (typeof
|
|
4786
|
-
throw
|
|
4785
|
+
const v = (typeof b == "object" && b !== null && "error" in b && typeof b.error == "string" ? b.error : null) ?? `HTTP ${d.status}`, u = new Error(v);
|
|
4786
|
+
throw u.status = d.status, u;
|
|
4787
4787
|
}
|
|
4788
|
-
if (
|
|
4788
|
+
if (b === null || typeof b != "object" || Array.isArray(b))
|
|
4789
4789
|
throw new Error(
|
|
4790
|
-
`Unexpected response shape for page "${e}": expected a JSON object, got ${
|
|
4790
|
+
`Unexpected response shape for page "${e}": expected a JSON object, got ${b === null ? "null" : Array.isArray(b) ? "array" : typeof b}`
|
|
4791
4791
|
);
|
|
4792
|
-
return
|
|
4792
|
+
return b;
|
|
4793
4793
|
}
|
|
4794
|
-
const Ar = "Your metabolic overview brings together triad priorities, key metrics, and next steps in one place.",
|
|
4794
|
+
const Ar = "Your metabolic overview brings together triad priorities, key metrics, and next steps in one place.", Tr = "Trends and predictive signals help you see how your metabolic trajectory may evolve over time.", Lr = "Your Metabolic Code Vitality Index is the total value of how optimized your body chemistry is performing. Your metabolism is more than just how many calories you burn – it’s the sum total of all the biochemical reactions in all your organ systems that drive your mental and physical vigor.", Pr = "Your answers are synthesized into themes and insights that inform your personalized recommendations.", Sr = "Your personalized supplement timing helps you align intake with your metabolic rhythm and triad priorities.", Mr = "Review your laboratory values with reference context and ordering details.", Hr = "Discover products selected to support your metabolic goals and triad priorities.", kr = "Deeper interpretation connects your lab patterns to your overall metabolic picture.", jr = "Focus on labs that are out of range or flagged so you can address them with your care team.", vl = () => import("./dashboard-x4GA8cqi.js"), wl = () => import("./totalPredictiveIndex-DQdWbzgU.js"), yl = () => import("./wellnessIndicators-CNQcbuvH.js"), Nl = () => import("./questionnaireAnalysis-S3k2ZioO.js"), Cl = () => import("./supplementSchedule-D8PmXo88.js"), Al = () => import("./labResults-CV9K31Os.js"), Tl = () => import("./suggestedProducts-DJlYkHhQ.js"), Ll = () => import("./labAnalysis-CaOCpV2g.js"), Pl = () => import("./alertLabSummary-BAIlZ2_U.js"), Sl = Q(
|
|
4795
4795
|
() => vl().then((e) => ({ default: e.DashboardTab }))
|
|
4796
4796
|
), Ml = Q(
|
|
4797
4797
|
() => wl().then((e) => ({ default: e.TotalPredictiveIndexTab }))
|
|
@@ -4806,9 +4806,9 @@ const Ar = "Your metabolic overview brings together triad priorities, key metric
|
|
|
4806
4806
|
), Bl = Q(
|
|
4807
4807
|
() => Al().then((e) => ({ default: e.LabResultsTab }))
|
|
4808
4808
|
), Il = Q(
|
|
4809
|
-
() =>
|
|
4809
|
+
() => Tl().then((e) => ({ default: e.SuggestedProductsTab }))
|
|
4810
4810
|
), Dl = Q(
|
|
4811
|
-
() =>
|
|
4811
|
+
() => Ll().then((e) => ({ default: e.LabAnalysisTab }))
|
|
4812
4812
|
), Rl = Q(
|
|
4813
4813
|
() => Pl().then((e) => ({ default: e.AlertLabSummaryTab }))
|
|
4814
4814
|
);
|
|
@@ -4826,7 +4826,7 @@ const Ie = [
|
|
|
4826
4826
|
createHttpFetcher: (e, r) => (n) => e(n, async () => {
|
|
4827
4827
|
const [a, { mapDashboardPageDtoToTabContent: o }] = await Promise.all([
|
|
4828
4828
|
U("dashboard", r(n)),
|
|
4829
|
-
Promise.resolve().then(() =>
|
|
4829
|
+
Promise.resolve().then(() => fi)
|
|
4830
4830
|
]);
|
|
4831
4831
|
return o(a);
|
|
4832
4832
|
})
|
|
@@ -4837,14 +4837,14 @@ const Ie = [
|
|
|
4837
4837
|
icon: /* @__PURE__ */ t(dl, {}),
|
|
4838
4838
|
pageHeader: {
|
|
4839
4839
|
title: "Total Predictive Trends",
|
|
4840
|
-
subtitle:
|
|
4840
|
+
subtitle: Tr
|
|
4841
4841
|
},
|
|
4842
4842
|
Tab: Ml,
|
|
4843
4843
|
Skeleton: Zo,
|
|
4844
4844
|
createHttpFetcher: (e, r) => (n) => e(n, async () => {
|
|
4845
4845
|
const [a, { mapTotalPredictiveIndexDtoToTabContent: o }] = await Promise.all([
|
|
4846
4846
|
U("total-predictive-index", r(n)),
|
|
4847
|
-
Promise.resolve().then(() =>
|
|
4847
|
+
Promise.resolve().then(() => Ti)
|
|
4848
4848
|
]);
|
|
4849
4849
|
return o(a);
|
|
4850
4850
|
})
|
|
@@ -4855,14 +4855,14 @@ const Ie = [
|
|
|
4855
4855
|
icon: /* @__PURE__ */ t(hl, {}),
|
|
4856
4856
|
pageHeader: {
|
|
4857
4857
|
title: "Wellness Indicators",
|
|
4858
|
-
subtitle:
|
|
4858
|
+
subtitle: Lr
|
|
4859
4859
|
},
|
|
4860
4860
|
Tab: Hl,
|
|
4861
4861
|
Skeleton: Jo,
|
|
4862
4862
|
createHttpFetcher: (e, r) => (n) => e(n, async () => {
|
|
4863
4863
|
const [a, { mapWellnessIndicatorsDtoToTabContent: o }] = await Promise.all([
|
|
4864
4864
|
U("wellness-indicators", r(n)),
|
|
4865
|
-
Promise.resolve().then(() =>
|
|
4865
|
+
Promise.resolve().then(() => Mi)
|
|
4866
4866
|
]);
|
|
4867
4867
|
return o(a);
|
|
4868
4868
|
})
|
|
@@ -4880,7 +4880,7 @@ const Ie = [
|
|
|
4880
4880
|
createHttpFetcher: (e, r) => (n) => e(n, async () => {
|
|
4881
4881
|
const [a, { mapLabResultsDtoToTabContent: o }] = await Promise.all([
|
|
4882
4882
|
U("lab-results", r(n)),
|
|
4883
|
-
Promise.resolve().then(() =>
|
|
4883
|
+
Promise.resolve().then(() => vi)
|
|
4884
4884
|
]);
|
|
4885
4885
|
return o(a);
|
|
4886
4886
|
})
|
|
@@ -4898,7 +4898,7 @@ const Ie = [
|
|
|
4898
4898
|
createHttpFetcher: (e, r) => (n) => e(n, async () => {
|
|
4899
4899
|
const [a, { mapLabAnalysisDtoToTabContent: o }] = await Promise.all([
|
|
4900
4900
|
U("lab-analysis", r(n)),
|
|
4901
|
-
Promise.resolve().then(() =>
|
|
4901
|
+
Promise.resolve().then(() => gi)
|
|
4902
4902
|
]);
|
|
4903
4903
|
return o(a);
|
|
4904
4904
|
})
|
|
@@ -4906,7 +4906,7 @@ const Ie = [
|
|
|
4906
4906
|
{
|
|
4907
4907
|
id: "alert-lab-summary",
|
|
4908
4908
|
sideMenuLabel: "Lab Alerts Summary",
|
|
4909
|
-
icon: /* @__PURE__ */ t(
|
|
4909
|
+
icon: /* @__PURE__ */ t(bt, {}),
|
|
4910
4910
|
pageHeader: {
|
|
4911
4911
|
title: "Lab Alerts Summary",
|
|
4912
4912
|
subtitle: jr
|
|
@@ -4916,7 +4916,7 @@ const Ie = [
|
|
|
4916
4916
|
createHttpFetcher: (e, r) => (n) => e(n, async () => {
|
|
4917
4917
|
const [a, { mapAlertLabSummaryDtoToTabContent: o }] = await Promise.all([
|
|
4918
4918
|
U("alert-lab-summary", r(n)),
|
|
4919
|
-
Promise.resolve().then(() =>
|
|
4919
|
+
Promise.resolve().then(() => ri)
|
|
4920
4920
|
]);
|
|
4921
4921
|
return o(a);
|
|
4922
4922
|
})
|
|
@@ -4934,7 +4934,7 @@ const Ie = [
|
|
|
4934
4934
|
createHttpFetcher: (e, r) => (n) => e(n, async () => {
|
|
4935
4935
|
const [a, { mapQuestionnaireAnalysisDtoToTabContent: o }] = await Promise.all([
|
|
4936
4936
|
U("questionnaire-analysis", r(n)),
|
|
4937
|
-
Promise.resolve().then(() =>
|
|
4937
|
+
Promise.resolve().then(() => wi)
|
|
4938
4938
|
]);
|
|
4939
4939
|
return o(a);
|
|
4940
4940
|
})
|
|
@@ -4952,7 +4952,7 @@ const Ie = [
|
|
|
4952
4952
|
createHttpFetcher: (e, r) => (n) => e(n, async () => {
|
|
4953
4953
|
const [a, { mapSuggestedProductsDtoToTabContent: o }] = await Promise.all([
|
|
4954
4954
|
U("suggested-products", r(n)),
|
|
4955
|
-
Promise.resolve().then(() =>
|
|
4955
|
+
Promise.resolve().then(() => yi)
|
|
4956
4956
|
]);
|
|
4957
4957
|
return o(a);
|
|
4958
4958
|
})
|
|
@@ -4970,23 +4970,23 @@ const Ie = [
|
|
|
4970
4970
|
createHttpFetcher: (e, r) => (n) => e(n, async () => {
|
|
4971
4971
|
const [a, { mapSupplementScheduleDtoToTabContent: o }] = await Promise.all([
|
|
4972
4972
|
U("supplement-schedule", r(n)),
|
|
4973
|
-
Promise.resolve().then(() =>
|
|
4973
|
+
Promise.resolve().then(() => Ni)
|
|
4974
4974
|
]);
|
|
4975
4975
|
return o(a);
|
|
4976
4976
|
})
|
|
4977
4977
|
}
|
|
4978
|
-
],
|
|
4978
|
+
], Te = Ie.map((e) => ({
|
|
4979
4979
|
id: e.id,
|
|
4980
4980
|
label: e.sideMenuLabel,
|
|
4981
4981
|
icon: e.icon
|
|
4982
|
-
})),
|
|
4982
|
+
})), ht = Object.fromEntries(
|
|
4983
4983
|
Ie.map((e) => [
|
|
4984
4984
|
e.id,
|
|
4985
4985
|
{ Tab: e.Tab, Skeleton: e.Skeleton, pageHeader: e.pageHeader }
|
|
4986
4986
|
])
|
|
4987
4987
|
);
|
|
4988
4988
|
function zl(e) {
|
|
4989
|
-
return
|
|
4989
|
+
return ht[e].pageHeader;
|
|
4990
4990
|
}
|
|
4991
4991
|
function Ol(e, r) {
|
|
4992
4992
|
const n = Ie.map((a) => [a.id, a.createHttpFetcher(e, r)]);
|
|
@@ -5004,7 +5004,7 @@ function El({
|
|
|
5004
5004
|
onPointerEnter: d,
|
|
5005
5005
|
onFocus: m
|
|
5006
5006
|
}) {
|
|
5007
|
-
const
|
|
5007
|
+
const b = at(), p = !!(s && c), v = /* @__PURE__ */ l(
|
|
5008
5008
|
M,
|
|
5009
5009
|
{
|
|
5010
5010
|
variant: "sideMenu",
|
|
@@ -5014,9 +5014,9 @@ function El({
|
|
|
5014
5014
|
onPointerEnter: d,
|
|
5015
5015
|
onFocus: m,
|
|
5016
5016
|
"aria-current": n ? "page" : void 0,
|
|
5017
|
-
"aria-describedby":
|
|
5017
|
+
"aria-describedby": p ? b : void 0,
|
|
5018
5018
|
"aria-label": e,
|
|
5019
|
-
title:
|
|
5019
|
+
title: p ? void 0 : e,
|
|
5020
5020
|
className: [
|
|
5021
5021
|
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
5022
|
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 +5037,12 @@ function El({
|
|
|
5037
5037
|
]
|
|
5038
5038
|
}
|
|
5039
5039
|
);
|
|
5040
|
-
return
|
|
5040
|
+
return p ? /* @__PURE__ */ l("span", { className: "group relative block outline-none", children: [
|
|
5041
5041
|
v,
|
|
5042
5042
|
/* @__PURE__ */ t(
|
|
5043
5043
|
"span",
|
|
5044
5044
|
{
|
|
5045
|
-
id:
|
|
5045
|
+
id: b,
|
|
5046
5046
|
role: "tooltip",
|
|
5047
5047
|
className: [
|
|
5048
5048
|
"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,18 +5059,18 @@ function Fl({
|
|
|
5059
5059
|
footerContent: n,
|
|
5060
5060
|
className: a = "",
|
|
5061
5061
|
navClassName: o = "",
|
|
5062
|
-
items: i =
|
|
5062
|
+
items: i = Te,
|
|
5063
5063
|
activeItemId: s,
|
|
5064
5064
|
defaultActiveItemId: c = "dashboard",
|
|
5065
5065
|
onItemClick: d,
|
|
5066
5066
|
onNavItemPrefetch: m
|
|
5067
5067
|
}) {
|
|
5068
|
-
const
|
|
5068
|
+
const b = s !== void 0, [p, v] = H(c), u = s ?? p, f = B(
|
|
5069
5069
|
(C) => {
|
|
5070
|
-
d == null || d(C),
|
|
5070
|
+
d == null || d(C), b || v(C);
|
|
5071
5071
|
},
|
|
5072
|
-
[
|
|
5073
|
-
), h = !!r,
|
|
5072
|
+
[b, d]
|
|
5073
|
+
), h = !!r, g = e != null && (typeof e != "string" || e.trim().length > 0), y = h || g;
|
|
5074
5074
|
return /* @__PURE__ */ l(
|
|
5075
5075
|
"div",
|
|
5076
5076
|
{
|
|
@@ -5078,7 +5078,7 @@ function Fl({
|
|
|
5078
5078
|
children: [
|
|
5079
5079
|
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
5080
|
h ? /* @__PURE__ */ t("div", { className: "flex w-full shrink-0 justify-center lg:justify-start", children: r }) : null,
|
|
5081
|
-
|
|
5081
|
+
g ? /* @__PURE__ */ t(
|
|
5082
5082
|
"div",
|
|
5083
5083
|
{
|
|
5084
5084
|
className: [
|
|
@@ -5101,10 +5101,10 @@ function Fl({
|
|
|
5101
5101
|
{
|
|
5102
5102
|
label: C.label,
|
|
5103
5103
|
icon: C.icon,
|
|
5104
|
-
isActive: C.id ===
|
|
5104
|
+
isActive: C.id === u,
|
|
5105
5105
|
disabled: N,
|
|
5106
5106
|
disabledTooltip: C.disabledTooltip,
|
|
5107
|
-
onClick: N ? void 0 : () =>
|
|
5107
|
+
onClick: N ? void 0 : () => f(C.id),
|
|
5108
5108
|
onPointerEnter: N ? void 0 : () => m == null ? void 0 : m(C.id),
|
|
5109
5109
|
onFocus: N ? void 0 : () => m == null ? void 0 : m(C.id)
|
|
5110
5110
|
},
|
|
@@ -5128,7 +5128,7 @@ function Gl(e) {
|
|
|
5128
5128
|
const r = (e ?? "").trim();
|
|
5129
5129
|
return r ? ((n = r[0]) == null ? void 0 : n.toUpperCase()) ?? "?" : "?";
|
|
5130
5130
|
}
|
|
5131
|
-
function
|
|
5131
|
+
function Us({ userProfile: e }) {
|
|
5132
5132
|
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
5133
|
/* @__PURE__ */ t("div", { className: "relative size-10 shrink-0 overflow-hidden rounded-[20px] bg-[color:var(--mb-color-nav-hover)]", children: e.avatarSrc ? /* @__PURE__ */ t("img", { src: e.avatarSrc, alt: "", className: "size-full object-cover" }) : /* @__PURE__ */ t("span", { className: "flex size-full items-center justify-center text-sm font-medium text-[color:var(--mb-color-text)]", children: Gl(e.displayName) }) }),
|
|
5134
5134
|
/* @__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 +5151,7 @@ function Vs({ userProfile: e }) {
|
|
|
5151
5151
|
] })
|
|
5152
5152
|
] }) });
|
|
5153
5153
|
}
|
|
5154
|
-
function
|
|
5154
|
+
function De({
|
|
5155
5155
|
apiKey: e,
|
|
5156
5156
|
userId: r,
|
|
5157
5157
|
questionnaireResponseId: n,
|
|
@@ -5189,22 +5189,22 @@ function Vl(e) {
|
|
|
5189
5189
|
simulateDelayMs: c,
|
|
5190
5190
|
simulateFetchError: d = !1,
|
|
5191
5191
|
simulateFetchErrorMessage: m = "Simulated fetch error"
|
|
5192
|
-
} = e,
|
|
5192
|
+
} = e, b = he(), p = De({
|
|
5193
5193
|
apiKey: a,
|
|
5194
5194
|
userId: o,
|
|
5195
5195
|
questionnaireResponseId: i,
|
|
5196
5196
|
headers: n
|
|
5197
5197
|
});
|
|
5198
|
-
return Ol((
|
|
5198
|
+
return Ol((f, h) => Xl(c, f, async () => {
|
|
5199
5199
|
if (d)
|
|
5200
5200
|
throw new Error(m);
|
|
5201
5201
|
return h();
|
|
5202
|
-
}), (
|
|
5203
|
-
baseUrl:
|
|
5202
|
+
}), (f) => ({
|
|
5203
|
+
baseUrl: b,
|
|
5204
5204
|
reportId: r,
|
|
5205
|
-
headers:
|
|
5205
|
+
headers: p,
|
|
5206
5206
|
fetchImpl: s,
|
|
5207
|
-
signal:
|
|
5207
|
+
signal: f
|
|
5208
5208
|
}));
|
|
5209
5209
|
}
|
|
5210
5210
|
function Zl(e, r) {
|
|
@@ -5235,24 +5235,75 @@ function Kl(e) {
|
|
|
5235
5235
|
questionnaireResponseId: o,
|
|
5236
5236
|
headers: i,
|
|
5237
5237
|
fetchImpl: s
|
|
5238
|
-
} = e, c =
|
|
5238
|
+
} = e, c = he();
|
|
5239
5239
|
return async (d) => {
|
|
5240
|
-
const m = s ?? globalThis.fetch.bind(globalThis),
|
|
5240
|
+
const m = s ?? globalThis.fetch.bind(globalThis), b = (d == null ? void 0 : d.reportId) ?? a, p = Wl(c, b), v = De({
|
|
5241
5241
|
apiKey: r,
|
|
5242
5242
|
userId: n,
|
|
5243
5243
|
questionnaireResponseId: o,
|
|
5244
5244
|
headers: i
|
|
5245
|
-
}),
|
|
5245
|
+
}), u = await m(p, {
|
|
5246
5246
|
method: "GET",
|
|
5247
5247
|
headers: v,
|
|
5248
5248
|
signal: d == null ? void 0 : d.signal
|
|
5249
5249
|
});
|
|
5250
|
-
if (!
|
|
5251
|
-
throw new Error(`Failed to download report PDF (HTTP ${
|
|
5252
|
-
const
|
|
5253
|
-
Ql(
|
|
5250
|
+
if (!u.ok)
|
|
5251
|
+
throw new Error(`Failed to download report PDF (HTTP ${u.status})`);
|
|
5252
|
+
const f = await u.blob(), h = Ul(u, b ? `report-${b}.pdf` : "report.pdf");
|
|
5253
|
+
Ql(f, h);
|
|
5254
5254
|
};
|
|
5255
5255
|
}
|
|
5256
|
+
function ql(e, r) {
|
|
5257
|
+
const n = e.replace(/\/$/, ""), a = r.startsWith("/") ? r : `/${r}`;
|
|
5258
|
+
return `${n}${a}`;
|
|
5259
|
+
}
|
|
5260
|
+
function Jl(e, r) {
|
|
5261
|
+
const n = ql(e || "", "/api/v1/report/exists");
|
|
5262
|
+
return r ? `${n}?report_id=${encodeURIComponent(r)}` : n;
|
|
5263
|
+
}
|
|
5264
|
+
function _l(e) {
|
|
5265
|
+
return e instanceof DOMException && e.name === "AbortError";
|
|
5266
|
+
}
|
|
5267
|
+
async function Qs(e) {
|
|
5268
|
+
const {
|
|
5269
|
+
reportId: r,
|
|
5270
|
+
headers: n,
|
|
5271
|
+
apiKey: a,
|
|
5272
|
+
userId: o,
|
|
5273
|
+
questionnaireResponseId: i,
|
|
5274
|
+
fetchImpl: s = globalThis.fetch.bind(globalThis),
|
|
5275
|
+
signal: c
|
|
5276
|
+
} = e, d = he(), m = Jl(d, r), b = De({
|
|
5277
|
+
apiKey: a,
|
|
5278
|
+
userId: o,
|
|
5279
|
+
questionnaireResponseId: i,
|
|
5280
|
+
headers: n
|
|
5281
|
+
});
|
|
5282
|
+
let p;
|
|
5283
|
+
try {
|
|
5284
|
+
p = await s(m, { method: "GET", headers: b, signal: c });
|
|
5285
|
+
} catch (f) {
|
|
5286
|
+
throw _l(f) ? f : new Error(
|
|
5287
|
+
`Network error checking report availability: ${f instanceof Error ? f.message : String(f)}`,
|
|
5288
|
+
{ cause: f }
|
|
5289
|
+
);
|
|
5290
|
+
}
|
|
5291
|
+
if (p.status === 404) return !1;
|
|
5292
|
+
const v = await p.text();
|
|
5293
|
+
let u;
|
|
5294
|
+
try {
|
|
5295
|
+
u = v ? JSON.parse(v) : null;
|
|
5296
|
+
} catch {
|
|
5297
|
+
u = v;
|
|
5298
|
+
}
|
|
5299
|
+
if (!p.ok) {
|
|
5300
|
+
const f = typeof u == "object" && u !== null && "error" in u && typeof u.error == "string" ? u.error : null;
|
|
5301
|
+
throw new Error(f ?? `Failed to check report availability (HTTP ${p.status})`);
|
|
5302
|
+
}
|
|
5303
|
+
if (u === null || typeof u != "object" || Array.isArray(u) || !("exists" in u) || typeof u.exists != "boolean")
|
|
5304
|
+
throw new Error("Unexpected response shape for /report/exists: missing boolean 'exists'");
|
|
5305
|
+
return u.exists;
|
|
5306
|
+
}
|
|
5256
5307
|
const Ut = {
|
|
5257
5308
|
1: [
|
|
5258
5309
|
"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 +5334,7 @@ const Ut = {
|
|
|
5283
5334
|
function Ir(e) {
|
|
5284
5335
|
return Ut[e] ?? Ut[1];
|
|
5285
5336
|
}
|
|
5286
|
-
const
|
|
5337
|
+
const $l = [
|
|
5287
5338
|
["morning", "Morning (AM)"],
|
|
5288
5339
|
["noon", "Noon"],
|
|
5289
5340
|
["afternoon", "Afternoon"],
|
|
@@ -5293,21 +5344,21 @@ const ql = [
|
|
|
5293
5344
|
function ft(e, r) {
|
|
5294
5345
|
if (!e) return "—";
|
|
5295
5346
|
const n = r ? ` ${r}` : "";
|
|
5296
|
-
return `${
|
|
5347
|
+
return `${nt(e.low)}-${nt(e.high)}${n}`;
|
|
5297
5348
|
}
|
|
5298
|
-
function
|
|
5349
|
+
function nt(e) {
|
|
5299
5350
|
return !Number.isFinite(e) || Number.isInteger(e) ? String(e) : e.toFixed(2).replace(/\.?0+$/, "");
|
|
5300
5351
|
}
|
|
5301
5352
|
function Le(e, r) {
|
|
5302
5353
|
if (e == null) return "—";
|
|
5303
|
-
const n = r == null ? void 0 : r.trim(), a =
|
|
5354
|
+
const n = r == null ? void 0 : r.trim(), a = nt(e);
|
|
5304
5355
|
return n ? `${a} ${n}` : a;
|
|
5305
5356
|
}
|
|
5306
5357
|
function Dr(e) {
|
|
5307
5358
|
const r = (e ?? "low").toLowerCase();
|
|
5308
5359
|
return r === "high" ? "high" : r === "med" || r === "moderate" ? "moderate" : "low";
|
|
5309
5360
|
}
|
|
5310
|
-
function
|
|
5361
|
+
function ei(e) {
|
|
5311
5362
|
const r = e.toLowerCase().trim();
|
|
5312
5363
|
switch (r) {
|
|
5313
5364
|
case "hi":
|
|
@@ -5331,7 +5382,7 @@ function Jl(e) {
|
|
|
5331
5382
|
}
|
|
5332
5383
|
}
|
|
5333
5384
|
}
|
|
5334
|
-
function
|
|
5385
|
+
function ti(e) {
|
|
5335
5386
|
switch ((e ?? "").toLowerCase()) {
|
|
5336
5387
|
case "hi":
|
|
5337
5388
|
case "trending_hi":
|
|
@@ -5352,7 +5403,7 @@ function Rr(e, r) {
|
|
|
5352
5403
|
symptomScore: ft(a.normal_range, a.unit ?? ""),
|
|
5353
5404
|
labScore: Le(a.value, a.unit ?? ""),
|
|
5354
5405
|
totalScore: a.indicator_percent != null ? String(Math.round(a.indicator_percent)) : "—",
|
|
5355
|
-
status:
|
|
5406
|
+
status: ti(a.interpretation)
|
|
5356
5407
|
}));
|
|
5357
5408
|
return {
|
|
5358
5409
|
pageHeader: {
|
|
@@ -5362,17 +5413,17 @@ function Rr(e, r) {
|
|
|
5362
5413
|
indicators: n
|
|
5363
5414
|
};
|
|
5364
5415
|
}
|
|
5365
|
-
const
|
|
5416
|
+
const ri = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5366
5417
|
__proto__: null,
|
|
5367
5418
|
mapAlertLabSummaryDtoToTabContent: Rr
|
|
5368
5419
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
5369
|
-
function
|
|
5420
|
+
function Ne(e) {
|
|
5370
5421
|
return e != null ? String(Math.round(e)) : "—";
|
|
5371
5422
|
}
|
|
5372
|
-
function
|
|
5423
|
+
function ni(e) {
|
|
5373
5424
|
return e ?? "";
|
|
5374
5425
|
}
|
|
5375
|
-
function
|
|
5426
|
+
function ai(e) {
|
|
5376
5427
|
switch ((e ?? "").toLowerCase()) {
|
|
5377
5428
|
case "low":
|
|
5378
5429
|
return "optimal";
|
|
@@ -5384,7 +5435,7 @@ function ti(e) {
|
|
|
5384
5435
|
return "trending";
|
|
5385
5436
|
}
|
|
5386
5437
|
}
|
|
5387
|
-
function
|
|
5438
|
+
function oi(e) {
|
|
5388
5439
|
switch ((e ?? "").toLowerCase()) {
|
|
5389
5440
|
case "optimal":
|
|
5390
5441
|
return "optimal";
|
|
@@ -5398,7 +5449,7 @@ function ri(e) {
|
|
|
5398
5449
|
return "optimal";
|
|
5399
5450
|
}
|
|
5400
5451
|
}
|
|
5401
|
-
const
|
|
5452
|
+
const li = {
|
|
5402
5453
|
cardio: "cardiopulmonary",
|
|
5403
5454
|
pulmonary: "cardiopulmonary",
|
|
5404
5455
|
cardiopulmonary: "cardiopulmonary",
|
|
@@ -5406,43 +5457,43 @@ const ni = {
|
|
|
5406
5457
|
neuro: "neurovascular",
|
|
5407
5458
|
vascular: "neurovascular"
|
|
5408
5459
|
};
|
|
5409
|
-
function
|
|
5460
|
+
function ii(e) {
|
|
5410
5461
|
const r = e.trim().toLowerCase().replace(/[\s-]+/g, "");
|
|
5411
|
-
return
|
|
5462
|
+
return li[r] ?? r;
|
|
5412
5463
|
}
|
|
5413
|
-
function
|
|
5414
|
-
const n =
|
|
5464
|
+
function si(e, r) {
|
|
5465
|
+
const n = ii(e.name);
|
|
5415
5466
|
return {
|
|
5416
5467
|
name: e.name,
|
|
5417
5468
|
infoAriaLabel: `${e.name} category information`,
|
|
5418
|
-
symptomScore:
|
|
5419
|
-
labScore:
|
|
5420
|
-
totalScore:
|
|
5421
|
-
status:
|
|
5469
|
+
symptomScore: Ne(e.survey_score),
|
|
5470
|
+
labScore: Ne(e.lab_score),
|
|
5471
|
+
totalScore: Ne(e.total_score),
|
|
5472
|
+
status: ai(e.interpretation),
|
|
5422
5473
|
statusExplanationPanel: r != null && r[n] ? {
|
|
5423
5474
|
bodyParagraphs: [],
|
|
5424
5475
|
organKey: n
|
|
5425
5476
|
} : void 0
|
|
5426
5477
|
};
|
|
5427
5478
|
}
|
|
5428
|
-
function
|
|
5479
|
+
function ci(e) {
|
|
5429
5480
|
const r = e.trim().split(/\s+/).filter(Boolean);
|
|
5430
5481
|
if (r.length === 0) return "?";
|
|
5431
5482
|
if (r.length === 1) return r[0].slice(0, 2).toUpperCase();
|
|
5432
5483
|
const n = r[0][0], a = r[r.length - 1][0];
|
|
5433
5484
|
return `${n}${a}`.toUpperCase();
|
|
5434
5485
|
}
|
|
5435
|
-
function
|
|
5486
|
+
function di(e) {
|
|
5436
5487
|
if (!e) return "—";
|
|
5437
5488
|
const r = e.toLowerCase();
|
|
5438
5489
|
return r === "female" ? "Female" : r === "male" ? "Male" : e.charAt(0).toUpperCase() + e.slice(1).toLowerCase();
|
|
5439
5490
|
}
|
|
5440
|
-
function
|
|
5491
|
+
function mi(e) {
|
|
5441
5492
|
var a, o;
|
|
5442
5493
|
const r = (o = (a = e.patient) == null ? void 0 : a.name) == null ? void 0 : o.trim();
|
|
5443
5494
|
if (!r) return;
|
|
5444
5495
|
const n = [
|
|
5445
|
-
["Gender",
|
|
5496
|
+
["Gender", di(e.patient.gender)],
|
|
5446
5497
|
[
|
|
5447
5498
|
"Chronological age",
|
|
5448
5499
|
e.patient.chrono_age != null ? String(e.patient.chrono_age) : "—"
|
|
@@ -5454,11 +5505,11 @@ function si(e) {
|
|
|
5454
5505
|
];
|
|
5455
5506
|
return {
|
|
5456
5507
|
patientName: r,
|
|
5457
|
-
initials:
|
|
5508
|
+
initials: ci(r),
|
|
5458
5509
|
rows: n
|
|
5459
5510
|
};
|
|
5460
5511
|
}
|
|
5461
|
-
function
|
|
5512
|
+
function Pe(e) {
|
|
5462
5513
|
if (!e) return null;
|
|
5463
5514
|
const r = /^(\d{4})-(\d{2})-(\d{2})$/.exec(e), n = r ? new Date(
|
|
5464
5515
|
Number(r[1]),
|
|
@@ -5471,9 +5522,9 @@ function Te(e) {
|
|
|
5471
5522
|
day: "numeric"
|
|
5472
5523
|
});
|
|
5473
5524
|
}
|
|
5474
|
-
function
|
|
5525
|
+
function ui(e) {
|
|
5475
5526
|
if (e.overall_score == null) return;
|
|
5476
|
-
const r = Math.round(e.overall_score), n =
|
|
5527
|
+
const r = Math.round(e.overall_score), n = Pe(e.labs_last_date), a = Pe(
|
|
5477
5528
|
e.questionnaire_last_date
|
|
5478
5529
|
), o = e.wearable_last_activity ?? null;
|
|
5479
5530
|
return {
|
|
@@ -5490,15 +5541,15 @@ function ci(e) {
|
|
|
5490
5541
|
wearableValueLabel: o ?? ""
|
|
5491
5542
|
};
|
|
5492
5543
|
}
|
|
5493
|
-
function
|
|
5544
|
+
function bi(e, r) {
|
|
5494
5545
|
if (e.triads.length === 0) return;
|
|
5495
5546
|
const n = e.triads.map((i) => ({
|
|
5496
5547
|
triadNumber: i.number,
|
|
5497
5548
|
name: `${i.name} Triad`,
|
|
5498
|
-
aggregateScoreDisplay:
|
|
5549
|
+
aggregateScoreDisplay: Ne(i.total_score)
|
|
5499
5550
|
})), a = e.triads.map(
|
|
5500
|
-
(i) => i.organs.map((s) =>
|
|
5501
|
-
), o =
|
|
5551
|
+
(i) => i.organs.map((s) => si(s, r))
|
|
5552
|
+
), o = Pe(e.labs_last_date);
|
|
5502
5553
|
return {
|
|
5503
5554
|
sectionTitle: "Total Predictive Trends",
|
|
5504
5555
|
infoAriaLabel: "Total predictive trends information",
|
|
@@ -5510,16 +5561,16 @@ function di(e, r) {
|
|
|
5510
5561
|
categoriesByTriadIndex: a
|
|
5511
5562
|
};
|
|
5512
5563
|
}
|
|
5513
|
-
function
|
|
5564
|
+
function hi(e) {
|
|
5514
5565
|
if (e.lab_metrics.length === 0) return;
|
|
5515
5566
|
const r = e.lab_metrics.map((a) => ({
|
|
5516
5567
|
name: a.name,
|
|
5517
5568
|
infoAriaLabel: `${a.name} information`,
|
|
5518
5569
|
symptomScore: "—",
|
|
5519
|
-
labScore: a.value != null ? Le(a.value,
|
|
5570
|
+
labScore: a.value != null ? Le(a.value, ni(a.unit)) : "—",
|
|
5520
5571
|
totalScore: a.indicator_percent != null ? String(Math.round(a.indicator_percent)) : "—",
|
|
5521
|
-
status:
|
|
5522
|
-
})), n =
|
|
5572
|
+
status: oi(a.interpretation)
|
|
5573
|
+
})), n = Pe(e.labs_last_date);
|
|
5523
5574
|
return {
|
|
5524
5575
|
sectionTitle: "Lab Alerts Summary",
|
|
5525
5576
|
infoAriaLabel: "Alert lab summary information",
|
|
@@ -5536,13 +5587,13 @@ function zr(e, r) {
|
|
|
5536
5587
|
title: "Dashboard",
|
|
5537
5588
|
subtitle: Ar
|
|
5538
5589
|
},
|
|
5539
|
-
patientSummary:
|
|
5590
|
+
patientSummary: mi(e),
|
|
5540
5591
|
welcome: {
|
|
5541
5592
|
title: "",
|
|
5542
5593
|
paragraphs: [],
|
|
5543
5594
|
actions: [{ id: "export-reports", label: "Export All Reports" }]
|
|
5544
5595
|
},
|
|
5545
|
-
overallScore:
|
|
5596
|
+
overallScore: ui(e),
|
|
5546
5597
|
metaflammation: e.metaflammation ? {
|
|
5547
5598
|
title: "Metaflammation Gauge",
|
|
5548
5599
|
value: e.metaflammation.value,
|
|
@@ -5550,12 +5601,12 @@ function zr(e, r) {
|
|
|
5550
5601
|
infoAriaLabel: "Metaflammation gauge information",
|
|
5551
5602
|
centerValueColor: "#E97180"
|
|
5552
5603
|
} : void 0,
|
|
5553
|
-
totalPredictiveTrends:
|
|
5554
|
-
alertLabSummaryTable:
|
|
5604
|
+
totalPredictiveTrends: bi(e, r),
|
|
5605
|
+
alertLabSummaryTable: hi(e),
|
|
5555
5606
|
organContent: r
|
|
5556
5607
|
};
|
|
5557
5608
|
}
|
|
5558
|
-
const
|
|
5609
|
+
const fi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5559
5610
|
__proto__: null,
|
|
5560
5611
|
mapDashboardPageDtoToTabContent: zr
|
|
5561
5612
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
@@ -5568,7 +5619,7 @@ function Or(e) {
|
|
|
5568
5619
|
sections: (e.triads ?? []).map((r) => {
|
|
5569
5620
|
const n = (r.markers ?? []).map((a) => ({
|
|
5570
5621
|
label: a.name,
|
|
5571
|
-
arrows:
|
|
5622
|
+
arrows: ei(a.direction)
|
|
5572
5623
|
}));
|
|
5573
5624
|
return {
|
|
5574
5625
|
triadNumber: r.number,
|
|
@@ -5581,11 +5632,11 @@ function Or(e) {
|
|
|
5581
5632
|
})
|
|
5582
5633
|
};
|
|
5583
5634
|
}
|
|
5584
|
-
const
|
|
5635
|
+
const gi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5585
5636
|
__proto__: null,
|
|
5586
5637
|
mapLabAnalysisDtoToTabContent: Or
|
|
5587
5638
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
5588
|
-
function
|
|
5639
|
+
function pi(e) {
|
|
5589
5640
|
const r = e.unit ?? "";
|
|
5590
5641
|
return {
|
|
5591
5642
|
title: e.name,
|
|
@@ -5596,11 +5647,11 @@ function hi(e) {
|
|
|
5596
5647
|
indicatorPercent: e.indicator_percent ?? 50
|
|
5597
5648
|
};
|
|
5598
5649
|
}
|
|
5599
|
-
function
|
|
5650
|
+
function xi(e) {
|
|
5600
5651
|
return {
|
|
5601
5652
|
title: e.organ_name,
|
|
5602
5653
|
subtitle: `T${e.triad_number} Lab Values`,
|
|
5603
|
-
metrics: e.metrics.map(
|
|
5654
|
+
metrics: e.metrics.map(pi)
|
|
5604
5655
|
};
|
|
5605
5656
|
}
|
|
5606
5657
|
function Er(e, r) {
|
|
@@ -5617,10 +5668,10 @@ function Er(e, r) {
|
|
|
5617
5668
|
videoAriaLabel: "Play introduction video",
|
|
5618
5669
|
paragraphs: o
|
|
5619
5670
|
} : void 0,
|
|
5620
|
-
groups: n.map(
|
|
5671
|
+
groups: n.map(xi)
|
|
5621
5672
|
};
|
|
5622
5673
|
}
|
|
5623
|
-
const
|
|
5674
|
+
const vi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5624
5675
|
__proto__: null,
|
|
5625
5676
|
mapLabResultsDtoToTabContent: Er
|
|
5626
5677
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
@@ -5644,7 +5695,7 @@ function Fr(e) {
|
|
|
5644
5695
|
}))
|
|
5645
5696
|
};
|
|
5646
5697
|
}
|
|
5647
|
-
const
|
|
5698
|
+
const wi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5648
5699
|
__proto__: null,
|
|
5649
5700
|
mapQuestionnaireAnalysisDtoToTabContent: Fr
|
|
5650
5701
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
@@ -5681,7 +5732,7 @@ function Gr(e, r) {
|
|
|
5681
5732
|
}))
|
|
5682
5733
|
};
|
|
5683
5734
|
}
|
|
5684
|
-
const
|
|
5735
|
+
const yi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5685
5736
|
__proto__: null,
|
|
5686
5737
|
mapSuggestedProductsDtoToTabContent: Gr
|
|
5687
5738
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
@@ -5696,7 +5747,7 @@ function Yr(e) {
|
|
|
5696
5747
|
triadNumbers: [...r.triad_numbers],
|
|
5697
5748
|
imageSrc: r.image_url ?? void 0,
|
|
5698
5749
|
imageAlt: r.name,
|
|
5699
|
-
scheduleRows:
|
|
5750
|
+
scheduleRows: $l.map(([n, a]) => ({
|
|
5700
5751
|
timeLabel: a,
|
|
5701
5752
|
dosage: r.schedule[n] ?? null
|
|
5702
5753
|
}))
|
|
@@ -5707,10 +5758,10 @@ function Yr(e) {
|
|
|
5707
5758
|
} : void 0
|
|
5708
5759
|
};
|
|
5709
5760
|
}
|
|
5710
|
-
const
|
|
5761
|
+
const Ni = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5711
5762
|
__proto__: null,
|
|
5712
5763
|
mapSupplementScheduleDtoToTabContent: Yr
|
|
5713
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
5764
|
+
}, Symbol.toStringTag, { value: "Module" })), Ci = {
|
|
5714
5765
|
cardio: "cardiopulmonary",
|
|
5715
5766
|
pulmonary: "cardiopulmonary",
|
|
5716
5767
|
cardiopulmonary: "cardiopulmonary",
|
|
@@ -5718,15 +5769,15 @@ const vi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
5718
5769
|
neuro: "neurovascular",
|
|
5719
5770
|
vascular: "neurovascular"
|
|
5720
5771
|
};
|
|
5721
|
-
function
|
|
5772
|
+
function Ai(e) {
|
|
5722
5773
|
const r = e.trim().toLowerCase().replace(/[\s-]+/g, "");
|
|
5723
|
-
return
|
|
5774
|
+
return Ci[r] ?? r;
|
|
5724
5775
|
}
|
|
5725
5776
|
function Xr(e, r, n) {
|
|
5726
5777
|
return {
|
|
5727
5778
|
pageHeader: {
|
|
5728
5779
|
title: "Total Predictive Trends",
|
|
5729
|
-
subtitle:
|
|
5780
|
+
subtitle: Tr
|
|
5730
5781
|
},
|
|
5731
5782
|
triadCards: e.triads.map((a) => ({
|
|
5732
5783
|
triadNumber: a.number,
|
|
@@ -5736,7 +5787,7 @@ function Xr(e, r, n) {
|
|
|
5736
5787
|
currentRangeLabel: "Current Range",
|
|
5737
5788
|
previousRangeLabel: "Previous Range",
|
|
5738
5789
|
categories: a.categories.map((o) => {
|
|
5739
|
-
const i =
|
|
5790
|
+
const i = Ai(o.name);
|
|
5740
5791
|
return {
|
|
5741
5792
|
title: o.name.toUpperCase(),
|
|
5742
5793
|
symptomScore: o.symptom_score != null ? String(o.symptom_score) : "—",
|
|
@@ -5753,29 +5804,29 @@ function Xr(e, r, n) {
|
|
|
5753
5804
|
cortisolContent: n
|
|
5754
5805
|
};
|
|
5755
5806
|
}
|
|
5756
|
-
const
|
|
5807
|
+
const Ti = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5757
5808
|
__proto__: null,
|
|
5758
5809
|
mapTotalPredictiveIndexDtoToTabContent: Xr
|
|
5759
5810
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
5760
5811
|
function Qt(e) {
|
|
5761
5812
|
return `${e.min} - ${e.max}`;
|
|
5762
5813
|
}
|
|
5763
|
-
function
|
|
5814
|
+
function Li(e, r) {
|
|
5764
5815
|
return e <= r.low.max ? "low" : e <= r.moderate.max ? "moderate" : "high";
|
|
5765
5816
|
}
|
|
5766
|
-
function
|
|
5817
|
+
function Pi(e) {
|
|
5767
5818
|
return e === "low" ? "optimal" : e === "moderate" ? "trending" : "high";
|
|
5768
5819
|
}
|
|
5769
|
-
function
|
|
5820
|
+
function Si(e) {
|
|
5770
5821
|
var a;
|
|
5771
|
-
const r =
|
|
5822
|
+
const r = Li(e.score, e.zones), n = (a = e.interpretation) == null ? void 0 : a.trim();
|
|
5772
5823
|
return {
|
|
5773
5824
|
name: e.name,
|
|
5774
5825
|
infoAriaLabel: `${e.name} indicator information`,
|
|
5775
5826
|
symptomScore: Qt(e.zones.moderate),
|
|
5776
5827
|
labScore: String(e.score),
|
|
5777
5828
|
totalScore: Qt(e.zones.high),
|
|
5778
|
-
status:
|
|
5829
|
+
status: Pi(r),
|
|
5779
5830
|
statusExplanationPanel: n && n.length > 0 ? { bodyParagraphs: [n] } : void 0
|
|
5780
5831
|
};
|
|
5781
5832
|
}
|
|
@@ -5783,37 +5834,37 @@ function Vr(e) {
|
|
|
5783
5834
|
return {
|
|
5784
5835
|
pageHeader: {
|
|
5785
5836
|
title: "Predictive Vitality Wellness Indicators",
|
|
5786
|
-
subtitle:
|
|
5837
|
+
subtitle: Lr
|
|
5787
5838
|
},
|
|
5788
|
-
indicators: e.indicators.map(
|
|
5839
|
+
indicators: e.indicators.map(Si)
|
|
5789
5840
|
};
|
|
5790
5841
|
}
|
|
5791
|
-
const
|
|
5842
|
+
const Mi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5792
5843
|
__proto__: null,
|
|
5793
5844
|
mapWellnessIndicatorsDtoToTabContent: Vr
|
|
5794
5845
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
5795
|
-
function
|
|
5846
|
+
function Hi(e, r) {
|
|
5796
5847
|
return r ? { ...e, ...r } : e;
|
|
5797
5848
|
}
|
|
5798
|
-
const
|
|
5849
|
+
const ki = Ie.map(
|
|
5799
5850
|
(e) => e.id
|
|
5800
5851
|
);
|
|
5801
5852
|
function gt(e) {
|
|
5802
|
-
return
|
|
5853
|
+
return ki.includes(e);
|
|
5803
5854
|
}
|
|
5804
|
-
const
|
|
5855
|
+
const ji = 3e5, pt = qt(
|
|
5805
5856
|
null
|
|
5806
5857
|
);
|
|
5807
5858
|
function Zr() {
|
|
5808
|
-
return
|
|
5859
|
+
return ot(pt);
|
|
5809
5860
|
}
|
|
5810
|
-
function
|
|
5811
|
-
const e =
|
|
5861
|
+
function Ks() {
|
|
5862
|
+
const e = ot(pt);
|
|
5812
5863
|
return B(() => {
|
|
5813
5864
|
e == null || e.invalidate();
|
|
5814
5865
|
}, [e]);
|
|
5815
5866
|
}
|
|
5816
|
-
function
|
|
5867
|
+
function Bi({
|
|
5817
5868
|
children: e,
|
|
5818
5869
|
fetchers: r,
|
|
5819
5870
|
ttlMs: n
|
|
@@ -5821,77 +5872,77 @@ function Hi({
|
|
|
5821
5872
|
const a = F(/* @__PURE__ */ new Map()), o = F(/* @__PURE__ */ new Map()), i = F(r);
|
|
5822
5873
|
i.current = r;
|
|
5823
5874
|
const s = F(0), c = B(
|
|
5824
|
-
(
|
|
5875
|
+
(u) => {
|
|
5825
5876
|
if (n <= 0) return;
|
|
5826
|
-
const
|
|
5827
|
-
if (
|
|
5828
|
-
if (Date.now() >
|
|
5829
|
-
a.current.delete(
|
|
5877
|
+
const f = a.current.get(u);
|
|
5878
|
+
if (f) {
|
|
5879
|
+
if (Date.now() > f.expiresAt) {
|
|
5880
|
+
a.current.delete(u);
|
|
5830
5881
|
return;
|
|
5831
5882
|
}
|
|
5832
|
-
return
|
|
5883
|
+
return f.data;
|
|
5833
5884
|
}
|
|
5834
5885
|
},
|
|
5835
5886
|
[n]
|
|
5836
5887
|
), d = B(
|
|
5837
|
-
(
|
|
5838
|
-
n <= 0 || a.current.set(
|
|
5888
|
+
(u, f) => {
|
|
5889
|
+
n <= 0 || a.current.set(u, { data: f, expiresAt: Date.now() + n });
|
|
5839
5890
|
},
|
|
5840
5891
|
[n]
|
|
5841
5892
|
);
|
|
5842
5893
|
V(() => {
|
|
5843
5894
|
s.current += 1, a.current.clear(), o.current.clear(), i.current = r;
|
|
5844
|
-
const
|
|
5895
|
+
const u = new AbortController(), f = s.current;
|
|
5845
5896
|
return Object.keys(r).forEach((h) => {
|
|
5846
|
-
const
|
|
5847
|
-
r[
|
|
5848
|
-
s.current ===
|
|
5897
|
+
const g = h;
|
|
5898
|
+
r[g](u.signal).then((y) => {
|
|
5899
|
+
s.current === f && d(g, y);
|
|
5849
5900
|
}).catch(() => {
|
|
5850
5901
|
});
|
|
5851
|
-
}), () =>
|
|
5902
|
+
}), () => u.abort();
|
|
5852
5903
|
}, [r, d]);
|
|
5853
|
-
const m = B((
|
|
5854
|
-
|
|
5855
|
-
}, []),
|
|
5856
|
-
async (
|
|
5857
|
-
const h = c(
|
|
5904
|
+
const m = B((u) => {
|
|
5905
|
+
u === void 0 ? a.current.clear() : a.current.delete(u);
|
|
5906
|
+
}, []), b = B(
|
|
5907
|
+
async (u, f) => {
|
|
5908
|
+
const h = c(u);
|
|
5858
5909
|
if (h !== void 0) return h;
|
|
5859
|
-
const
|
|
5860
|
-
if (
|
|
5910
|
+
const g = o.current.get(u);
|
|
5911
|
+
if (g) return g;
|
|
5861
5912
|
const y = s.current, C = (async () => {
|
|
5862
5913
|
try {
|
|
5863
|
-
const N = await i.current[
|
|
5864
|
-
return y === s.current && d(
|
|
5914
|
+
const N = await i.current[u](f);
|
|
5915
|
+
return y === s.current && d(u, N), N;
|
|
5865
5916
|
} finally {
|
|
5866
|
-
o.current.delete(
|
|
5917
|
+
o.current.delete(u);
|
|
5867
5918
|
}
|
|
5868
5919
|
})();
|
|
5869
|
-
return o.current.set(
|
|
5920
|
+
return o.current.set(u, C), C;
|
|
5870
5921
|
},
|
|
5871
5922
|
[c, d]
|
|
5872
|
-
),
|
|
5873
|
-
(
|
|
5874
|
-
if (!gt(
|
|
5875
|
-
const
|
|
5876
|
-
u
|
|
5923
|
+
), p = B(
|
|
5924
|
+
(u) => {
|
|
5925
|
+
if (!gt(u)) return;
|
|
5926
|
+
const f = new AbortController();
|
|
5927
|
+
b(u, f.signal).catch(() => {
|
|
5877
5928
|
});
|
|
5878
5929
|
},
|
|
5879
|
-
[
|
|
5930
|
+
[b]
|
|
5880
5931
|
), v = j(
|
|
5881
5932
|
() => ({
|
|
5882
|
-
loadTab:
|
|
5933
|
+
loadTab: b,
|
|
5883
5934
|
readValid: c,
|
|
5884
5935
|
invalidate: m,
|
|
5885
|
-
prefetch:
|
|
5936
|
+
prefetch: p
|
|
5886
5937
|
}),
|
|
5887
|
-
[
|
|
5938
|
+
[b, c, m, p]
|
|
5888
5939
|
);
|
|
5889
5940
|
return /* @__PURE__ */ t(pt.Provider, { value: v, children: e });
|
|
5890
5941
|
}
|
|
5891
|
-
function
|
|
5942
|
+
function Ii(e) {
|
|
5892
5943
|
return e instanceof DOMException && e.name === "AbortError" ? !0 : e instanceof Error && e.name === "AbortError";
|
|
5893
5944
|
}
|
|
5894
|
-
function
|
|
5945
|
+
function Di(e, r) {
|
|
5895
5946
|
switch (r.type) {
|
|
5896
5947
|
case "loadStart":
|
|
5897
5948
|
return { status: "loading" };
|
|
@@ -5901,17 +5952,17 @@ function ji(e, r) {
|
|
|
5901
5952
|
return { status: "error", error: r.error };
|
|
5902
5953
|
}
|
|
5903
5954
|
}
|
|
5904
|
-
function
|
|
5905
|
-
const [n, a] = tn(
|
|
5955
|
+
function Ri(e, r) {
|
|
5956
|
+
const [n, a] = tn(Di, { status: "idle" }), [o, i] = H(0), s = F(r.onLoadError);
|
|
5906
5957
|
s.current = r.onLoadError;
|
|
5907
5958
|
const c = Zr(), d = B(() => {
|
|
5908
|
-
c == null || c.invalidate(e), a({ type: "loadStart" }), i((
|
|
5959
|
+
c == null || c.invalidate(e), a({ type: "loadStart" }), i((b) => b + 1);
|
|
5909
5960
|
}, [c, e]), m = F(r.fetchers);
|
|
5910
5961
|
return m.current = r.fetchers, V(() => {
|
|
5911
|
-
let
|
|
5912
|
-
const
|
|
5962
|
+
let b = !0;
|
|
5963
|
+
const p = new AbortController(), { signal: v } = p;
|
|
5913
5964
|
return (async () => {
|
|
5914
|
-
var
|
|
5965
|
+
var f;
|
|
5915
5966
|
if (c) {
|
|
5916
5967
|
const h = c.readValid(e);
|
|
5917
5968
|
if (h !== void 0) {
|
|
@@ -5922,20 +5973,20 @@ function Bi(e, r) {
|
|
|
5922
5973
|
a({ type: "loadStart" });
|
|
5923
5974
|
try {
|
|
5924
5975
|
const h = c ? await c.loadTab(e, v) : await m.current[e](v);
|
|
5925
|
-
if (!
|
|
5976
|
+
if (!b) return;
|
|
5926
5977
|
a({ type: "loadSuccess", data: h });
|
|
5927
5978
|
} catch (h) {
|
|
5928
|
-
if (!
|
|
5929
|
-
const
|
|
5930
|
-
a({ type: "loadError", error:
|
|
5979
|
+
if (!b || Ii(h)) return;
|
|
5980
|
+
const g = h instanceof Error ? h : new Error(String(h));
|
|
5981
|
+
a({ type: "loadError", error: g }), (f = s.current) == null || f.call(s, { navItemId: e, error: g });
|
|
5931
5982
|
}
|
|
5932
5983
|
})(), () => {
|
|
5933
|
-
|
|
5984
|
+
b = !1, p.abort();
|
|
5934
5985
|
};
|
|
5935
5986
|
}, [e, o, c]), { ...n, refetch: d, loadGeneration: o };
|
|
5936
5987
|
}
|
|
5937
5988
|
const Kt = "dashboard";
|
|
5938
|
-
function
|
|
5989
|
+
function zi({ className: e }) {
|
|
5939
5990
|
return /* @__PURE__ */ l(
|
|
5940
5991
|
"div",
|
|
5941
5992
|
{
|
|
@@ -5957,7 +6008,7 @@ function Ii({ className: e }) {
|
|
|
5957
6008
|
}
|
|
5958
6009
|
);
|
|
5959
6010
|
}
|
|
5960
|
-
function
|
|
6011
|
+
function Oi({ className: e }) {
|
|
5961
6012
|
return /* @__PURE__ */ l(
|
|
5962
6013
|
"div",
|
|
5963
6014
|
{
|
|
@@ -5976,7 +6027,7 @@ function Di({ className: e }) {
|
|
|
5976
6027
|
}
|
|
5977
6028
|
);
|
|
5978
6029
|
}
|
|
5979
|
-
function
|
|
6030
|
+
function Ei({ onRetry: e }) {
|
|
5980
6031
|
return /* @__PURE__ */ l(
|
|
5981
6032
|
"div",
|
|
5982
6033
|
{
|
|
@@ -6003,7 +6054,7 @@ function Ri({ onRetry: e }) {
|
|
|
6003
6054
|
{
|
|
6004
6055
|
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
6056
|
"aria-hidden": !0,
|
|
6006
|
-
children: /* @__PURE__ */ t(
|
|
6057
|
+
children: /* @__PURE__ */ t(bt, {})
|
|
6007
6058
|
}
|
|
6008
6059
|
),
|
|
6009
6060
|
/* @__PURE__ */ l("div", { className: "flex max-w-2xl flex-col gap-2", children: [
|
|
@@ -6016,7 +6067,7 @@ function Ri({ onRetry: e }) {
|
|
|
6016
6067
|
}
|
|
6017
6068
|
);
|
|
6018
6069
|
}
|
|
6019
|
-
class
|
|
6070
|
+
class Fi extends rn {
|
|
6020
6071
|
constructor() {
|
|
6021
6072
|
super(...arguments);
|
|
6022
6073
|
yt(this, "state", { error: null });
|
|
@@ -6032,7 +6083,7 @@ class zi extends rn {
|
|
|
6032
6083
|
}
|
|
6033
6084
|
render() {
|
|
6034
6085
|
return this.state.error ? /* @__PURE__ */ t(
|
|
6035
|
-
|
|
6086
|
+
Gi,
|
|
6036
6087
|
{
|
|
6037
6088
|
onRetry: () => {
|
|
6038
6089
|
this.props.onRecover();
|
|
@@ -6041,7 +6092,7 @@ class zi extends rn {
|
|
|
6041
6092
|
) : this.props.children;
|
|
6042
6093
|
}
|
|
6043
6094
|
}
|
|
6044
|
-
function
|
|
6095
|
+
function Gi({ onRetry: e }) {
|
|
6045
6096
|
return /* @__PURE__ */ l(
|
|
6046
6097
|
"div",
|
|
6047
6098
|
{
|
|
@@ -6068,7 +6119,7 @@ function Oi({ onRetry: e }) {
|
|
|
6068
6119
|
{
|
|
6069
6120
|
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
6121
|
"aria-hidden": !0,
|
|
6071
|
-
children: /* @__PURE__ */ t(
|
|
6122
|
+
children: /* @__PURE__ */ t(bt, {})
|
|
6072
6123
|
}
|
|
6073
6124
|
),
|
|
6074
6125
|
/* @__PURE__ */ l("div", { className: "flex max-w-2xl flex-col gap-2", children: [
|
|
@@ -6081,41 +6132,41 @@ function Oi({ onRetry: e }) {
|
|
|
6081
6132
|
}
|
|
6082
6133
|
);
|
|
6083
6134
|
}
|
|
6084
|
-
function
|
|
6135
|
+
function Yi({
|
|
6085
6136
|
navItemId: e,
|
|
6086
6137
|
data: r
|
|
6087
6138
|
}) {
|
|
6088
|
-
const { Tab: n } =
|
|
6139
|
+
const { Tab: n } = ht[e];
|
|
6089
6140
|
return /* @__PURE__ */ t(n, { content: r });
|
|
6090
6141
|
}
|
|
6091
|
-
function
|
|
6142
|
+
function Xi({
|
|
6092
6143
|
navItemId: e,
|
|
6093
6144
|
contentFetchers: r,
|
|
6094
6145
|
onDashboardTabContentLoadError: n
|
|
6095
6146
|
}) {
|
|
6096
|
-
const a =
|
|
6147
|
+
const a = Ri(e, {
|
|
6097
6148
|
fetchers: r,
|
|
6098
6149
|
onLoadError: n
|
|
6099
|
-
}), o = zl(e), s =
|
|
6100
|
-
return a.status === "idle" || a.status === "loading" ? /* @__PURE__ */ t(s, { pageHeader: o }) : a.status === "error" ? /* @__PURE__ */ t(
|
|
6101
|
-
|
|
6150
|
+
}), o = zl(e), s = ht[e].Skeleton;
|
|
6151
|
+
return a.status === "idle" || a.status === "loading" ? /* @__PURE__ */ t(s, { pageHeader: o }) : a.status === "error" ? /* @__PURE__ */ t(Ei, { onRetry: () => a.refetch() }) : /* @__PURE__ */ t(
|
|
6152
|
+
Fi,
|
|
6102
6153
|
{
|
|
6103
6154
|
resetKey: `${e}-${a.loadGeneration}`,
|
|
6104
6155
|
onRecover: () => {
|
|
6105
6156
|
a.refetch();
|
|
6106
6157
|
},
|
|
6107
|
-
children: /* @__PURE__ */ t(nn, { fallback: /* @__PURE__ */ t(s, { pageHeader: o }), children: /* @__PURE__ */ t(
|
|
6158
|
+
children: /* @__PURE__ */ t(nn, { fallback: /* @__PURE__ */ t(s, { pageHeader: o }), children: /* @__PURE__ */ t(Yi, { navItemId: e, data: a.data }) })
|
|
6108
6159
|
}
|
|
6109
6160
|
);
|
|
6110
6161
|
}
|
|
6111
|
-
function
|
|
6162
|
+
function Vi({
|
|
6112
6163
|
activeItemId: e,
|
|
6113
6164
|
activeLabel: r,
|
|
6114
6165
|
contentFetchers: n,
|
|
6115
6166
|
onDashboardTabContentLoadError: a
|
|
6116
6167
|
}) {
|
|
6117
6168
|
return gt(e) ? /* @__PURE__ */ t(
|
|
6118
|
-
|
|
6169
|
+
Xi,
|
|
6119
6170
|
{
|
|
6120
6171
|
navItemId: e,
|
|
6121
6172
|
contentFetchers: n,
|
|
@@ -6123,7 +6174,7 @@ function Gi({
|
|
|
6123
6174
|
}
|
|
6124
6175
|
) : /* @__PURE__ */ t("div", { children: /* @__PURE__ */ t("h1", { className: "text-2xl font-semibold tracking-tight text-[color:var(--mb-color-text)]", children: r }) });
|
|
6125
6176
|
}
|
|
6126
|
-
function
|
|
6177
|
+
function Zi({
|
|
6127
6178
|
renderMainContent: e,
|
|
6128
6179
|
content: r,
|
|
6129
6180
|
activeItemId: n,
|
|
@@ -6135,7 +6186,7 @@ function Yi({
|
|
|
6135
6186
|
useDefaultTabData: d
|
|
6136
6187
|
}) {
|
|
6137
6188
|
const m = (e == null ? void 0 : e(n)) ?? (r !== void 0 ? r : /* @__PURE__ */ t(
|
|
6138
|
-
|
|
6189
|
+
Vi,
|
|
6139
6190
|
{
|
|
6140
6191
|
activeItemId: n,
|
|
6141
6192
|
activeLabel: a,
|
|
@@ -6143,12 +6194,12 @@ function Yi({
|
|
|
6143
6194
|
onDashboardTabContentLoadError: i
|
|
6144
6195
|
}
|
|
6145
6196
|
));
|
|
6146
|
-
return !c && d ? /* @__PURE__ */ t(
|
|
6147
|
-
/* @__PURE__ */ t(
|
|
6197
|
+
return !c && d ? /* @__PURE__ */ t(Oi, { className: "max-w-full shrink-0" }) : Br(s) ? /* @__PURE__ */ l(te, { children: [
|
|
6198
|
+
/* @__PURE__ */ t(zi, { className: "max-w-full shrink-0" }),
|
|
6148
6199
|
m
|
|
6149
6200
|
] }) : m;
|
|
6150
6201
|
}
|
|
6151
|
-
function
|
|
6202
|
+
function Wi({
|
|
6152
6203
|
rootStyle: e,
|
|
6153
6204
|
enableTabContentCache: r,
|
|
6154
6205
|
menuTitle: n,
|
|
@@ -6159,12 +6210,12 @@ function Xi({
|
|
|
6159
6210
|
sideMenuItems: c,
|
|
6160
6211
|
activeItemId: d,
|
|
6161
6212
|
handleNavItemClick: m,
|
|
6162
|
-
shellClassName:
|
|
6163
|
-
sidebarWidthClassName:
|
|
6213
|
+
shellClassName: b,
|
|
6214
|
+
sidebarWidthClassName: p,
|
|
6164
6215
|
mainAreaClassName: v,
|
|
6165
|
-
mainContent:
|
|
6216
|
+
mainContent: u
|
|
6166
6217
|
}) {
|
|
6167
|
-
const
|
|
6218
|
+
const f = Zr();
|
|
6168
6219
|
return /* @__PURE__ */ t(
|
|
6169
6220
|
"div",
|
|
6170
6221
|
{
|
|
@@ -6184,34 +6235,34 @@ function Xi({
|
|
|
6184
6235
|
items: c,
|
|
6185
6236
|
activeItemId: d,
|
|
6186
6237
|
onItemClick: m,
|
|
6187
|
-
onNavItemPrefetch: r &&
|
|
6188
|
-
gt(
|
|
6238
|
+
onNavItemPrefetch: r && f ? (g) => {
|
|
6239
|
+
gt(g) && f.prefetch(g);
|
|
6189
6240
|
} : void 0
|
|
6190
6241
|
}
|
|
6191
6242
|
),
|
|
6192
|
-
sidebarWidthClassName:
|
|
6193
|
-
className:
|
|
6194
|
-
children: /* @__PURE__ */ t("div", { className: v, children:
|
|
6243
|
+
sidebarWidthClassName: p,
|
|
6244
|
+
className: b,
|
|
6245
|
+
children: /* @__PURE__ */ t("div", { className: v, children: u })
|
|
6195
6246
|
}
|
|
6196
6247
|
)
|
|
6197
6248
|
}
|
|
6198
6249
|
);
|
|
6199
6250
|
}
|
|
6200
|
-
function
|
|
6251
|
+
function Ui({
|
|
6201
6252
|
wrapTabContentCache: e,
|
|
6202
6253
|
fetchers: r,
|
|
6203
6254
|
cacheTtlMs: n,
|
|
6204
6255
|
viewProps: a
|
|
6205
6256
|
}) {
|
|
6206
|
-
const o = /* @__PURE__ */ t(
|
|
6207
|
-
return e ? /* @__PURE__ */ t(
|
|
6257
|
+
const o = /* @__PURE__ */ t(Wi, { ...a });
|
|
6258
|
+
return e ? /* @__PURE__ */ t(Bi, { fetchers: r, ttlMs: n, children: o }) : o;
|
|
6208
6259
|
}
|
|
6209
|
-
const
|
|
6260
|
+
const Qi = [
|
|
6210
6261
|
{ id: "sim-pt-001", label: "Alex Morgan" },
|
|
6211
6262
|
{ id: "sim-pt-002", label: "Jordan Lee" },
|
|
6212
6263
|
{ id: "sim-pt-003", label: "Sam Rivera" },
|
|
6213
6264
|
{ id: "sim-pt-004", label: "Taylor Chen" }
|
|
6214
|
-
],
|
|
6265
|
+
], Ki = [
|
|
6215
6266
|
{ id: "sim-rpt-001", label: "March 12, 2026" },
|
|
6216
6267
|
{ id: "sim-rpt-002", label: "February 4, 2026" },
|
|
6217
6268
|
{ id: "sim-rpt-003", label: "January 18, 2026" },
|
|
@@ -6231,18 +6282,18 @@ function Qr({
|
|
|
6231
6282
|
}
|
|
6232
6283
|
);
|
|
6233
6284
|
}
|
|
6234
|
-
function
|
|
6235
|
-
return
|
|
6285
|
+
function qi() {
|
|
6286
|
+
return Qi;
|
|
6236
6287
|
}
|
|
6237
|
-
function
|
|
6238
|
-
return
|
|
6288
|
+
function Ji() {
|
|
6289
|
+
return Ki;
|
|
6239
6290
|
}
|
|
6240
|
-
function
|
|
6291
|
+
function _i({
|
|
6241
6292
|
rootStyle: e,
|
|
6242
6293
|
onSelectPatient: r,
|
|
6243
6294
|
onBack: n
|
|
6244
6295
|
}) {
|
|
6245
|
-
const a =
|
|
6296
|
+
const a = qi();
|
|
6246
6297
|
return /* @__PURE__ */ t(
|
|
6247
6298
|
Qr,
|
|
6248
6299
|
{
|
|
@@ -6278,12 +6329,12 @@ function Ki({
|
|
|
6278
6329
|
}
|
|
6279
6330
|
);
|
|
6280
6331
|
}
|
|
6281
|
-
function
|
|
6332
|
+
function $i({
|
|
6282
6333
|
rootStyle: e,
|
|
6283
6334
|
onSelectReport: r,
|
|
6284
6335
|
onBack: n
|
|
6285
6336
|
}) {
|
|
6286
|
-
const a =
|
|
6337
|
+
const a = Ji();
|
|
6287
6338
|
return /* @__PURE__ */ t(
|
|
6288
6339
|
Qr,
|
|
6289
6340
|
{
|
|
@@ -6319,7 +6370,7 @@ function qi({
|
|
|
6319
6370
|
}
|
|
6320
6371
|
);
|
|
6321
6372
|
}
|
|
6322
|
-
function
|
|
6373
|
+
function es({
|
|
6323
6374
|
rootStyle: e,
|
|
6324
6375
|
simulationSessionReady: r,
|
|
6325
6376
|
simRole: n,
|
|
@@ -6332,7 +6383,7 @@ function Ji({
|
|
|
6332
6383
|
if (!r) {
|
|
6333
6384
|
if (n === "practitioner")
|
|
6334
6385
|
return /* @__PURE__ */ t(
|
|
6335
|
-
|
|
6386
|
+
_i,
|
|
6336
6387
|
{
|
|
6337
6388
|
rootStyle: e,
|
|
6338
6389
|
onSelectPatient: a,
|
|
@@ -6341,7 +6392,7 @@ function Ji({
|
|
|
6341
6392
|
);
|
|
6342
6393
|
if (n === "patient")
|
|
6343
6394
|
return /* @__PURE__ */ t(
|
|
6344
|
-
|
|
6395
|
+
$i,
|
|
6345
6396
|
{
|
|
6346
6397
|
rootStyle: e,
|
|
6347
6398
|
onSelectReport: i,
|
|
@@ -6351,7 +6402,7 @@ function Ji({
|
|
|
6351
6402
|
}
|
|
6352
6403
|
return c;
|
|
6353
6404
|
}
|
|
6354
|
-
function
|
|
6405
|
+
function ts(e) {
|
|
6355
6406
|
return j(() => {
|
|
6356
6407
|
const r = bn(e);
|
|
6357
6408
|
return {
|
|
@@ -6360,18 +6411,18 @@ function _i(e) {
|
|
|
6360
6411
|
};
|
|
6361
6412
|
}, [e]);
|
|
6362
6413
|
}
|
|
6363
|
-
function
|
|
6414
|
+
function rs(e, r) {
|
|
6364
6415
|
const n = e.replace(/\/$/, ""), a = r.startsWith("/") ? r : `/${r}`;
|
|
6365
6416
|
return `${n}${a}`;
|
|
6366
6417
|
}
|
|
6367
6418
|
function Kr(e, r) {
|
|
6368
|
-
const n =
|
|
6419
|
+
const n = rs(e || "", "/api/v1/report/full");
|
|
6369
6420
|
return r ? `${n}?report_id=${encodeURIComponent(r)}` : n;
|
|
6370
6421
|
}
|
|
6371
|
-
function
|
|
6422
|
+
function ns(e) {
|
|
6372
6423
|
return e instanceof DOMException && e.name === "AbortError";
|
|
6373
6424
|
}
|
|
6374
|
-
async function
|
|
6425
|
+
async function as(e) {
|
|
6375
6426
|
const {
|
|
6376
6427
|
baseUrl: r,
|
|
6377
6428
|
reportId: n,
|
|
@@ -6382,10 +6433,10 @@ async function ts(e) {
|
|
|
6382
6433
|
let c;
|
|
6383
6434
|
try {
|
|
6384
6435
|
c = await o(s, { method: "GET", headers: a, signal: i });
|
|
6385
|
-
} catch (
|
|
6386
|
-
throw
|
|
6387
|
-
`Network error fetching full report: ${
|
|
6388
|
-
{ cause:
|
|
6436
|
+
} catch (b) {
|
|
6437
|
+
throw ns(b) ? b : new Error(
|
|
6438
|
+
`Network error fetching full report: ${b instanceof Error ? b.message : String(b)}`,
|
|
6439
|
+
{ cause: b }
|
|
6389
6440
|
);
|
|
6390
6441
|
}
|
|
6391
6442
|
const d = await c.text();
|
|
@@ -6396,18 +6447,18 @@ async function ts(e) {
|
|
|
6396
6447
|
m = d;
|
|
6397
6448
|
}
|
|
6398
6449
|
if (!c.ok) {
|
|
6399
|
-
const
|
|
6450
|
+
const p = (typeof m == "object" && m !== null && "error" in m && typeof m.error == "string" ? m.error : null) ?? `HTTP ${c.status}`, v = new Error(p);
|
|
6400
6451
|
throw v.status = c.status, v;
|
|
6401
6452
|
}
|
|
6402
6453
|
if (m === null || typeof m != "object" || Array.isArray(m) || !("report" in m) || !("pages" in m))
|
|
6403
6454
|
throw new Error("Unexpected response shape for /report/full: missing 'report' or 'pages'");
|
|
6404
6455
|
return m;
|
|
6405
6456
|
}
|
|
6406
|
-
const
|
|
6407
|
-
function
|
|
6457
|
+
const os = 5e3, Je = /* @__PURE__ */ new Map();
|
|
6458
|
+
function ls(e, r, n, a) {
|
|
6408
6459
|
return `${e}|${r ?? ""}|${n ?? ""}|${a ?? ""}`;
|
|
6409
6460
|
}
|
|
6410
|
-
function
|
|
6461
|
+
function is(e) {
|
|
6411
6462
|
const {
|
|
6412
6463
|
reportId: r,
|
|
6413
6464
|
headers: n,
|
|
@@ -6416,73 +6467,73 @@ function as(e) {
|
|
|
6416
6467
|
questionnaireResponseId: i,
|
|
6417
6468
|
fetchImpl: s,
|
|
6418
6469
|
onFullReportLoaded: c
|
|
6419
|
-
} = e, d =
|
|
6470
|
+
} = e, d = he(), m = De({
|
|
6420
6471
|
apiKey: a,
|
|
6421
6472
|
userId: o,
|
|
6422
6473
|
questionnaireResponseId: i,
|
|
6423
6474
|
headers: n
|
|
6424
|
-
}),
|
|
6475
|
+
}), b = ls(
|
|
6425
6476
|
Kr(d, r),
|
|
6426
6477
|
a,
|
|
6427
6478
|
o,
|
|
6428
6479
|
i
|
|
6429
|
-
),
|
|
6480
|
+
), p = (h) => (c && h.then(c, () => {
|
|
6430
6481
|
}), h), v = () => {
|
|
6431
|
-
const h =
|
|
6432
|
-
if (h && Date.now() < h.expiresAt) return
|
|
6433
|
-
const
|
|
6482
|
+
const h = Je.get(b);
|
|
6483
|
+
if (h && Date.now() < h.expiresAt) return p(h.promise);
|
|
6484
|
+
const g = as({
|
|
6434
6485
|
baseUrl: d,
|
|
6435
6486
|
reportId: r,
|
|
6436
6487
|
headers: m,
|
|
6437
6488
|
fetchImpl: s
|
|
6438
6489
|
});
|
|
6439
|
-
return
|
|
6490
|
+
return g.catch(() => Je.delete(b)), Je.set(b, { promise: g, expiresAt: Date.now() + os }), p(g);
|
|
6440
6491
|
};
|
|
6441
6492
|
v();
|
|
6442
|
-
const
|
|
6493
|
+
const u = (h) => v();
|
|
6443
6494
|
return {
|
|
6444
6495
|
dashboard: async (h) => {
|
|
6445
|
-
const
|
|
6446
|
-
return zr(
|
|
6496
|
+
const g = await u();
|
|
6497
|
+
return zr(g.pages.dashboard, g.organ_content);
|
|
6447
6498
|
},
|
|
6448
6499
|
"total-predictive-index": async (h) => {
|
|
6449
|
-
const
|
|
6500
|
+
const g = await u();
|
|
6450
6501
|
return Xr(
|
|
6451
|
-
|
|
6452
|
-
|
|
6453
|
-
|
|
6502
|
+
g.pages["total-predictive-index"],
|
|
6503
|
+
g.organ_content,
|
|
6504
|
+
g.cortisol_content
|
|
6454
6505
|
);
|
|
6455
6506
|
},
|
|
6456
|
-
"wellness-indicators": async (h) => Vr((await
|
|
6507
|
+
"wellness-indicators": async (h) => Vr((await u()).pages["wellness-indicators"]),
|
|
6457
6508
|
"questionnaire-analysis": async (h) => Fr(
|
|
6458
|
-
(await
|
|
6509
|
+
(await u()).pages["questionnaire-analysis"]
|
|
6459
6510
|
),
|
|
6460
|
-
"supplement-schedule": async (h) => Yr((await
|
|
6511
|
+
"supplement-schedule": async (h) => Yr((await u()).pages["supplement-schedule"]),
|
|
6461
6512
|
"lab-results": async (h) => {
|
|
6462
|
-
const
|
|
6463
|
-
return Er(
|
|
6513
|
+
const g = await u();
|
|
6514
|
+
return Er(g.pages["lab-results"], g.triad_content);
|
|
6464
6515
|
},
|
|
6465
6516
|
"suggested-products": async (h) => {
|
|
6466
|
-
const
|
|
6517
|
+
const g = await u();
|
|
6467
6518
|
return Gr(
|
|
6468
|
-
|
|
6469
|
-
|
|
6519
|
+
g.pages["suggested-products"],
|
|
6520
|
+
g.report.available_pages
|
|
6470
6521
|
);
|
|
6471
6522
|
},
|
|
6472
|
-
"lab-analysis": async (h) => Or((await
|
|
6523
|
+
"lab-analysis": async (h) => Or((await u()).pages["lab-analysis"]),
|
|
6473
6524
|
"alert-lab-summary": async (h) => {
|
|
6474
|
-
const
|
|
6525
|
+
const g = await u();
|
|
6475
6526
|
return Rr(
|
|
6476
|
-
|
|
6477
|
-
|
|
6527
|
+
g.pages["alert-lab-summary"],
|
|
6528
|
+
g.alert_lab_content
|
|
6478
6529
|
);
|
|
6479
6530
|
}
|
|
6480
6531
|
};
|
|
6481
6532
|
}
|
|
6482
|
-
function
|
|
6533
|
+
function ss(e, r) {
|
|
6483
6534
|
return e === r ? !0 : !e || !r || e.length !== r.length ? !1 : e.every((n, a) => n === r[a]);
|
|
6484
6535
|
}
|
|
6485
|
-
function
|
|
6536
|
+
function cs({
|
|
6486
6537
|
config: e,
|
|
6487
6538
|
apiKey: r,
|
|
6488
6539
|
reportHttpConfig: n,
|
|
@@ -6493,49 +6544,49 @@ function ls({
|
|
|
6493
6544
|
dashboardTabContentCacheTtlMs: c,
|
|
6494
6545
|
simulationReportId: d
|
|
6495
6546
|
}) {
|
|
6496
|
-
const m = r ?? (e == null ? void 0 : e.apiKey),
|
|
6547
|
+
const m = r ?? (e == null ? void 0 : e.apiKey), b = Ao(m), p = i === void 0 && s === void 0, [v, u] = H(), f = j(() => {
|
|
6497
6548
|
const P = { ...n ?? {} };
|
|
6498
6549
|
return d != null && (P.reportId = d), P;
|
|
6499
6550
|
}, [n, d]), h = j(
|
|
6500
6551
|
() => [
|
|
6501
|
-
|
|
6502
|
-
|
|
6503
|
-
|
|
6504
|
-
|
|
6552
|
+
f.apiKey ?? "",
|
|
6553
|
+
f.userId ?? "",
|
|
6554
|
+
f.reportId ?? "",
|
|
6555
|
+
f.questionnaireResponseId ?? ""
|
|
6505
6556
|
].join("|"),
|
|
6506
6557
|
[
|
|
6507
|
-
|
|
6508
|
-
|
|
6509
|
-
|
|
6510
|
-
|
|
6558
|
+
f.apiKey,
|
|
6559
|
+
f.userId,
|
|
6560
|
+
f.reportId,
|
|
6561
|
+
f.questionnaireResponseId
|
|
6511
6562
|
]
|
|
6512
|
-
),
|
|
6563
|
+
), g = F(h);
|
|
6513
6564
|
V(() => {
|
|
6514
|
-
|
|
6565
|
+
g.current = h, u(void 0);
|
|
6515
6566
|
}, [h]);
|
|
6516
6567
|
const y = B((P, A) => {
|
|
6517
|
-
if (
|
|
6568
|
+
if (g.current !== A) return;
|
|
6518
6569
|
const S = [...P.report.available_pages];
|
|
6519
|
-
|
|
6520
|
-
(
|
|
6570
|
+
u(
|
|
6571
|
+
(L) => ss(L, S) ? L : S
|
|
6521
6572
|
);
|
|
6522
6573
|
}, []), C = j(() => {
|
|
6523
|
-
const P =
|
|
6524
|
-
...
|
|
6574
|
+
const P = is({
|
|
6575
|
+
...f,
|
|
6525
6576
|
onFullReportLoaded: (A) => y(A, h)
|
|
6526
6577
|
});
|
|
6527
|
-
return
|
|
6528
|
-
}, [a, y, h,
|
|
6578
|
+
return Hi(P, a);
|
|
6579
|
+
}, [a, y, h, f]), N = j(() => o || Kl(f), [o, f]);
|
|
6529
6580
|
return {
|
|
6530
|
-
apiKeyAccepted:
|
|
6531
|
-
useDefaultTabData:
|
|
6581
|
+
apiKeyAccepted: b,
|
|
6582
|
+
useDefaultTabData: p,
|
|
6532
6583
|
resolvedDashboardContentFetchers: C,
|
|
6533
6584
|
resolvedExportReports: N,
|
|
6534
|
-
resolvedCacheTtlMs: c ??
|
|
6585
|
+
resolvedCacheTtlMs: c ?? ji,
|
|
6535
6586
|
availableReportPages: v
|
|
6536
6587
|
};
|
|
6537
6588
|
}
|
|
6538
|
-
function
|
|
6589
|
+
function ds(e) {
|
|
6539
6590
|
const { logo: r } = e, { src: n, srcMobile: a, alt: o, width: i, height: s, widthMobile: c, heightMobile: d, placeholder: m } = r;
|
|
6540
6591
|
if (n && a)
|
|
6541
6592
|
return /* @__PURE__ */ l(te, { children: [
|
|
@@ -6575,7 +6626,7 @@ function is(e) {
|
|
|
6575
6626
|
);
|
|
6576
6627
|
if (m) return /* @__PURE__ */ t(mn, {});
|
|
6577
6628
|
}
|
|
6578
|
-
function
|
|
6629
|
+
function ms({
|
|
6579
6630
|
role: e,
|
|
6580
6631
|
patientLabel: r,
|
|
6581
6632
|
onChangeUser: n
|
|
@@ -6603,29 +6654,29 @@ function ss({
|
|
|
6603
6654
|
)
|
|
6604
6655
|
] });
|
|
6605
6656
|
}
|
|
6606
|
-
function
|
|
6657
|
+
function ye(e) {
|
|
6607
6658
|
return e === "practitioner" ? "practitioner" : e === "patient" ? "patient" : null;
|
|
6608
6659
|
}
|
|
6609
|
-
function
|
|
6660
|
+
function us(e) {
|
|
6610
6661
|
const [r, n] = H(
|
|
6611
|
-
() =>
|
|
6612
|
-
), [a, o] = H(null), [i, s] = H(""), [c, d] = H(null), [m,
|
|
6662
|
+
() => ye(e)
|
|
6663
|
+
), [a, o] = H(null), [i, s] = H(""), [c, d] = H(null), [m, b] = H(""), p = j(() => {
|
|
6613
6664
|
if (r === "practitioner" && a != null)
|
|
6614
6665
|
return a;
|
|
6615
6666
|
if (r === "patient" && c != null)
|
|
6616
6667
|
return c;
|
|
6617
|
-
}, [r, a, c]), v = r === "practitioner" && a !== null || r === "patient" && c !== null,
|
|
6618
|
-
n(
|
|
6619
|
-
}, [e]),
|
|
6620
|
-
() => n(
|
|
6668
|
+
}, [r, a, c]), v = r === "practitioner" && a !== null || r === "patient" && c !== null, u = B(() => {
|
|
6669
|
+
n(ye(e)), o(null), s(""), d(null), b("");
|
|
6670
|
+
}, [e]), f = B(() => n("practitioner"), []), h = B(() => n("patient"), []), g = B(
|
|
6671
|
+
() => n(ye(e)),
|
|
6621
6672
|
[e]
|
|
6622
6673
|
), y = B(
|
|
6623
|
-
() => n(
|
|
6674
|
+
() => n(ye(e)),
|
|
6624
6675
|
[e]
|
|
6625
6676
|
), C = B((w, P) => {
|
|
6626
6677
|
o(w), s(P);
|
|
6627
6678
|
}, []), N = B((w, P) => {
|
|
6628
|
-
d(w),
|
|
6679
|
+
d(w), b(P);
|
|
6629
6680
|
}, []);
|
|
6630
6681
|
return {
|
|
6631
6682
|
simRole: r,
|
|
@@ -6637,19 +6688,19 @@ function cs(e) {
|
|
|
6637
6688
|
simPatientReportId: c,
|
|
6638
6689
|
setSimPatientReportId: d,
|
|
6639
6690
|
simPatientReportLabel: m,
|
|
6640
|
-
setSimPatientReportLabel:
|
|
6641
|
-
simulationReportId:
|
|
6691
|
+
setSimPatientReportLabel: b,
|
|
6692
|
+
simulationReportId: p,
|
|
6642
6693
|
simulationSessionReady: v,
|
|
6643
|
-
resetSimulationSession:
|
|
6644
|
-
onChoosePractitioner:
|
|
6694
|
+
resetSimulationSession: u,
|
|
6695
|
+
onChoosePractitioner: f,
|
|
6645
6696
|
onChoosePatient: h,
|
|
6646
|
-
onBackFromPatientPicker:
|
|
6697
|
+
onBackFromPatientPicker: g,
|
|
6647
6698
|
onBackFromPatientReportPicker: y,
|
|
6648
6699
|
onSelectPatient: C,
|
|
6649
6700
|
onSelectPatientReport: N
|
|
6650
6701
|
};
|
|
6651
6702
|
}
|
|
6652
|
-
function
|
|
6703
|
+
function bs({
|
|
6653
6704
|
activeNavItemIdProp: e,
|
|
6654
6705
|
defaultActiveNavItemId: r,
|
|
6655
6706
|
onActiveNavItemChange: n
|
|
@@ -6662,21 +6713,21 @@ function ds({
|
|
|
6662
6713
|
);
|
|
6663
6714
|
return { activeItemId: i, handleNavItemClick: s };
|
|
6664
6715
|
}
|
|
6665
|
-
const
|
|
6716
|
+
const hs = "Your lab results will be available once the lab requisition has been completed and processed.", fs = /* @__PURE__ */ new Set([
|
|
6666
6717
|
"lab-results",
|
|
6667
6718
|
"lab-analysis",
|
|
6668
6719
|
"alert-lab-summary"
|
|
6669
6720
|
]);
|
|
6670
|
-
function
|
|
6671
|
-
if (!e) return
|
|
6721
|
+
function gs(e) {
|
|
6722
|
+
if (!e) return Te;
|
|
6672
6723
|
const r = new Set(e);
|
|
6673
|
-
return
|
|
6724
|
+
return Te.map((n) => !fs.has(n.id) || r.has(n.id) ? n : {
|
|
6674
6725
|
...n,
|
|
6675
6726
|
disabled: !0,
|
|
6676
|
-
disabledTooltip:
|
|
6727
|
+
disabledTooltip: hs
|
|
6677
6728
|
});
|
|
6678
6729
|
}
|
|
6679
|
-
function
|
|
6730
|
+
function ps({
|
|
6680
6731
|
config: e,
|
|
6681
6732
|
apiKey: r,
|
|
6682
6733
|
viewerRole: n,
|
|
@@ -6687,56 +6738,56 @@ function hs({
|
|
|
6687
6738
|
reportHttpConfig: c,
|
|
6688
6739
|
dashboardContentFetchers: d,
|
|
6689
6740
|
onDashboardTabContentLoadError: m,
|
|
6690
|
-
onExportReports:
|
|
6691
|
-
renderMainContent:
|
|
6741
|
+
onExportReports: b,
|
|
6742
|
+
renderMainContent: p,
|
|
6692
6743
|
activeNavItemId: v,
|
|
6693
|
-
defaultActiveNavItemId:
|
|
6694
|
-
onActiveNavItemChange:
|
|
6744
|
+
defaultActiveNavItemId: u = Kt,
|
|
6745
|
+
onActiveNavItemChange: f,
|
|
6695
6746
|
shellClassName: h,
|
|
6696
|
-
sideMenuClassName:
|
|
6747
|
+
sideMenuClassName: g,
|
|
6697
6748
|
mainClassName: y,
|
|
6698
6749
|
sidebarWidthClassName: C,
|
|
6699
6750
|
dashboardTabContentCacheTtlMs: N
|
|
6700
6751
|
}) {
|
|
6701
6752
|
var se;
|
|
6702
6753
|
_r();
|
|
6703
|
-
const { resolvedBranding: w, rootStyle: P } =
|
|
6754
|
+
const { resolvedBranding: w, rootStyle: P } = ts(e), A = us(n), { activeItemId: S, handleNavItemClick: L } = bs({
|
|
6704
6755
|
activeNavItemIdProp: v,
|
|
6705
|
-
defaultActiveNavItemId:
|
|
6706
|
-
onActiveNavItemChange:
|
|
6707
|
-
}), z = ((se =
|
|
6708
|
-
() => o !== void 0 ? o :
|
|
6756
|
+
defaultActiveNavItemId: u,
|
|
6757
|
+
onActiveNavItemChange: f
|
|
6758
|
+
}), z = ((se = Te.find((J) => J.id === S)) == null ? void 0 : se.label) ?? S, G = j(
|
|
6759
|
+
() => o !== void 0 ? o : ds(w),
|
|
6709
6760
|
[w, o]
|
|
6710
|
-
), D =
|
|
6761
|
+
), D = cs({
|
|
6711
6762
|
config: e,
|
|
6712
6763
|
apiKey: r,
|
|
6713
6764
|
reportHttpConfig: c,
|
|
6714
6765
|
dashboardContentFetchers: d,
|
|
6715
|
-
onExportReports:
|
|
6766
|
+
onExportReports: b,
|
|
6716
6767
|
content: s,
|
|
6717
|
-
renderMainContent:
|
|
6768
|
+
renderMainContent: p,
|
|
6718
6769
|
dashboardTabContentCacheTtlMs: N,
|
|
6719
6770
|
simulationReportId: A.simulationReportId
|
|
6720
6771
|
}), q = j(
|
|
6721
|
-
() =>
|
|
6772
|
+
() => gs(D.availableReportPages),
|
|
6722
6773
|
[D.availableReportPages]
|
|
6723
6774
|
), $ = j(
|
|
6724
6775
|
() => new Set(q.filter((J) => J.disabled).map((J) => J.id)),
|
|
6725
6776
|
[q]
|
|
6726
6777
|
);
|
|
6727
6778
|
V(() => {
|
|
6728
|
-
$.has(S) &&
|
|
6729
|
-
}, [S, $,
|
|
6730
|
-
const
|
|
6779
|
+
$.has(S) && L(Kt);
|
|
6780
|
+
}, [S, $, L]);
|
|
6781
|
+
const Re = j(
|
|
6731
6782
|
() => [
|
|
6732
6783
|
"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
6784
|
y
|
|
6734
6785
|
].filter(Boolean).join(" "),
|
|
6735
6786
|
[y]
|
|
6736
|
-
), ie = D.useDefaultTabData && D.apiKeyAccepted,
|
|
6737
|
-
|
|
6787
|
+
), ie = D.useDefaultTabData && D.apiKeyAccepted, fe = /* @__PURE__ */ t(
|
|
6788
|
+
Zi,
|
|
6738
6789
|
{
|
|
6739
|
-
renderMainContent:
|
|
6790
|
+
renderMainContent: p,
|
|
6740
6791
|
content: s,
|
|
6741
6792
|
activeItemId: S,
|
|
6742
6793
|
activeLabel: z,
|
|
@@ -6746,15 +6797,15 @@ function hs({
|
|
|
6746
6797
|
apiKeyAccepted: D.apiKeyAccepted,
|
|
6747
6798
|
useDefaultTabData: D.useDefaultTabData
|
|
6748
6799
|
}
|
|
6749
|
-
),
|
|
6750
|
-
|
|
6800
|
+
), ge = /* @__PURE__ */ t(
|
|
6801
|
+
ms,
|
|
6751
6802
|
{
|
|
6752
6803
|
role: A.simRole,
|
|
6753
6804
|
patientLabel: A.simRole === "patient" ? A.simPatientReportLabel : A.simPractitionerPatientLabel,
|
|
6754
6805
|
onChangeUser: A.resetSimulationSession
|
|
6755
6806
|
}
|
|
6756
|
-
),
|
|
6757
|
-
|
|
6807
|
+
), pe = /* @__PURE__ */ t(
|
|
6808
|
+
Ui,
|
|
6758
6809
|
{
|
|
6759
6810
|
wrapTabContentCache: ie,
|
|
6760
6811
|
fetchers: D.resolvedDashboardContentFetchers,
|
|
@@ -6765,26 +6816,26 @@ function hs({
|
|
|
6765
6816
|
menuTitle: a !== void 0 ? a : w.title,
|
|
6766
6817
|
logo: G,
|
|
6767
6818
|
sideMenuUserProfile: i,
|
|
6768
|
-
sideMenuFooterContent:
|
|
6769
|
-
sideMenuClassName:
|
|
6819
|
+
sideMenuFooterContent: ge,
|
|
6820
|
+
sideMenuClassName: g,
|
|
6770
6821
|
sideMenuItems: q,
|
|
6771
6822
|
activeItemId: S,
|
|
6772
|
-
handleNavItemClick:
|
|
6823
|
+
handleNavItemClick: L,
|
|
6773
6824
|
shellClassName: h,
|
|
6774
6825
|
sidebarWidthClassName: C,
|
|
6775
|
-
mainAreaClassName:
|
|
6776
|
-
mainContent:
|
|
6826
|
+
mainAreaClassName: Re,
|
|
6827
|
+
mainContent: fe
|
|
6777
6828
|
}
|
|
6778
6829
|
}
|
|
6779
|
-
),
|
|
6830
|
+
), xe = j(
|
|
6780
6831
|
() => ({
|
|
6781
6832
|
onExportReports: D.resolvedExportReports,
|
|
6782
|
-
onNavigateToNavItem:
|
|
6833
|
+
onNavigateToNavItem: L
|
|
6783
6834
|
}),
|
|
6784
|
-
[D.resolvedExportReports,
|
|
6835
|
+
[D.resolvedExportReports, L]
|
|
6785
6836
|
);
|
|
6786
|
-
return /* @__PURE__ */ t(Ka, { value:
|
|
6787
|
-
|
|
6837
|
+
return /* @__PURE__ */ t(Ka, { value: xe, children: /* @__PURE__ */ t(
|
|
6838
|
+
es,
|
|
6788
6839
|
{
|
|
6789
6840
|
rootStyle: P,
|
|
6790
6841
|
simulationSessionReady: A.simulationSessionReady,
|
|
@@ -6793,11 +6844,11 @@ function hs({
|
|
|
6793
6844
|
onBackFromPatientPicker: A.onBackFromPatientPicker,
|
|
6794
6845
|
onSelectPatientReport: A.onSelectPatientReport,
|
|
6795
6846
|
onBackFromPatientReportPicker: A.onBackFromPatientReportPicker,
|
|
6796
|
-
children:
|
|
6847
|
+
children: pe
|
|
6797
6848
|
}
|
|
6798
6849
|
) });
|
|
6799
6850
|
}
|
|
6800
|
-
function
|
|
6851
|
+
function xs({
|
|
6801
6852
|
allowedPostMessageOrigins: e,
|
|
6802
6853
|
validatePostMessageConfig: r
|
|
6803
6854
|
} = {}) {
|
|
@@ -6826,7 +6877,7 @@ function fs({
|
|
|
6826
6877
|
};
|
|
6827
6878
|
return window.addEventListener("message", s), () => window.removeEventListener("message", s);
|
|
6828
6879
|
}, [e, r]), /* @__PURE__ */ t(
|
|
6829
|
-
|
|
6880
|
+
ps,
|
|
6830
6881
|
{
|
|
6831
6882
|
apiKey: yr,
|
|
6832
6883
|
config: n,
|
|
@@ -6835,13 +6886,13 @@ function fs({
|
|
|
6835
6886
|
}
|
|
6836
6887
|
);
|
|
6837
6888
|
}
|
|
6838
|
-
function
|
|
6889
|
+
function qs(e = "root", r) {
|
|
6839
6890
|
const n = document.getElementById(e);
|
|
6840
6891
|
if (!n)
|
|
6841
6892
|
throw new Error("Root element not found");
|
|
6842
6893
|
ln(n).render(
|
|
6843
6894
|
/* @__PURE__ */ t(an, { children: /* @__PURE__ */ t("div", { className: "flex h-full min-h-0 w-full flex-col", children: /* @__PURE__ */ t(
|
|
6844
|
-
|
|
6895
|
+
xs,
|
|
6845
6896
|
{
|
|
6846
6897
|
allowedPostMessageOrigins: r == null ? void 0 : r.allowedPostMessageOrigins,
|
|
6847
6898
|
validatePostMessageConfig: r == null ? void 0 : r.validatePostMessageConfig
|
|
@@ -6850,100 +6901,102 @@ function Ws(e = "root", r) {
|
|
|
6850
6901
|
);
|
|
6851
6902
|
}
|
|
6852
6903
|
export {
|
|
6853
|
-
|
|
6854
|
-
|
|
6855
|
-
|
|
6904
|
+
Ls as AlertLabSummaryCard,
|
|
6905
|
+
bt as AlertLabSummaryIcon,
|
|
6906
|
+
Bs as AlertLabSummaryTab,
|
|
6856
6907
|
Qa as AlertLabSummaryTabSkeleton,
|
|
6857
6908
|
_ as Badge,
|
|
6858
6909
|
M as Button,
|
|
6859
|
-
|
|
6910
|
+
ki as DASHBOARD_TAB_NAV_IDS,
|
|
6860
6911
|
Ie as DASHBOARD_TAB_PLUGINS,
|
|
6861
|
-
|
|
6912
|
+
ji as DEFAULT_DASHBOARD_TAB_CONTENT_CACHE_TTL_MS,
|
|
6862
6913
|
k as DEFAULT_METABOLIC_BRANDING,
|
|
6863
|
-
|
|
6864
|
-
|
|
6914
|
+
T as DashboardCard,
|
|
6915
|
+
it as DashboardCardSectionHeader,
|
|
6865
6916
|
il as DashboardIcon,
|
|
6866
|
-
|
|
6867
|
-
|
|
6917
|
+
Is as DashboardTab,
|
|
6918
|
+
Bi as DashboardTabContentCacheProvider,
|
|
6868
6919
|
so as DashboardTabSkeleton,
|
|
6869
6920
|
or as GradientRangeBar,
|
|
6870
6921
|
be as LAB_METRIC_RANGE_BAR_SEGMENTS,
|
|
6871
6922
|
sl as LabAnalysisIcon,
|
|
6872
|
-
|
|
6923
|
+
Ds as LabAnalysisTab,
|
|
6873
6924
|
co as LabAnalysisTabSkeleton,
|
|
6874
6925
|
ua as LabAnalysisTriadCard,
|
|
6875
|
-
|
|
6926
|
+
Ps as LabMetricRangeCard,
|
|
6876
6927
|
cl as LabResultsIcon,
|
|
6877
6928
|
hr as LabResultsIntroCard,
|
|
6878
|
-
|
|
6929
|
+
Rs as LabResultsTab,
|
|
6879
6930
|
xo as LabResultsTabSkeleton,
|
|
6880
6931
|
mn as LogoPlaceholder,
|
|
6881
|
-
|
|
6932
|
+
Ws as LogoutIcon,
|
|
6882
6933
|
yr as METABOLIC_DASHBOARD_STUB_API_KEY,
|
|
6883
6934
|
Nr as METABOLIC_IFRAME_CONFIG_QUERY_KEY,
|
|
6884
6935
|
Cr as METABOLIC_IFRAME_SET_CONFIG_MESSAGE,
|
|
6885
6936
|
Co as METABOLIC_REPORT_PAGES_API_BASE_URL,
|
|
6886
|
-
|
|
6887
|
-
|
|
6888
|
-
|
|
6937
|
+
ps as MetabolicDashboard,
|
|
6938
|
+
Vi as MetabolicDashboardDefaultMain,
|
|
6939
|
+
xs as MetabolicEmbedRoot,
|
|
6889
6940
|
Rn as MetabolicScoreBar,
|
|
6890
6941
|
ae as MetabolicTriadCategoryPanel,
|
|
6891
|
-
|
|
6892
|
-
|
|
6942
|
+
je as MetabolicTriadCategoryPanelSkeleton,
|
|
6943
|
+
Ss as MetabolicTriadIntroCard,
|
|
6893
6944
|
gr as MetabolicTriadSectionCard,
|
|
6894
6945
|
lr as MetaflammationGauge,
|
|
6895
6946
|
wa as MetaflammationGaugeCard,
|
|
6896
6947
|
Pn as OVERALL_SCORE_GRADIENT_STOPS,
|
|
6897
6948
|
Sn as OVERALL_SCORE_LABELS,
|
|
6898
6949
|
Do as OrganDetailPage,
|
|
6899
|
-
|
|
6950
|
+
La as OverallMetabolicScoreCard,
|
|
6900
6951
|
I as PageHeader,
|
|
6901
6952
|
Yn as PractitionerNoteRow,
|
|
6902
6953
|
Pa as PractitionerNotesCard,
|
|
6903
6954
|
dl as PredictiveIndexIcon,
|
|
6904
|
-
|
|
6905
|
-
|
|
6955
|
+
Ms as ProfileSummaryCard,
|
|
6956
|
+
zs as QuestionnaireAnalysisTab,
|
|
6906
6957
|
zo as QuestionnaireAnalysisTabSkeleton,
|
|
6907
6958
|
ml as QuestionnaireIcon,
|
|
6908
6959
|
oe as SegmentedRangeBar,
|
|
6909
6960
|
gl as ShellLayout,
|
|
6910
6961
|
Fl as SideMenu,
|
|
6911
|
-
|
|
6962
|
+
Us as SideMenuFooter,
|
|
6912
6963
|
El as SideMenuNavButton,
|
|
6913
6964
|
jt as SkeletonCircle,
|
|
6914
|
-
|
|
6965
|
+
x as SkeletonRect,
|
|
6915
6966
|
ul as SuggestedProductsIcon,
|
|
6916
|
-
|
|
6967
|
+
Os as SuggestedProductsTab,
|
|
6917
6968
|
Go as SuggestedProductsTabSkeleton,
|
|
6918
6969
|
Sa as SupplementScheduleCard,
|
|
6919
6970
|
bl as SupplementScheduleIcon,
|
|
6920
|
-
|
|
6971
|
+
Es as SupplementScheduleTab,
|
|
6921
6972
|
Yo as SupplementScheduleTabSkeleton,
|
|
6922
6973
|
qn as SupplementScheduleTableRow,
|
|
6923
6974
|
$n as SupplementTriadMarkGroup,
|
|
6924
6975
|
Y as TRIAD_RESILIENCY_TREND_SEGMENTS,
|
|
6925
6976
|
K as TabSkeletonRoot,
|
|
6926
6977
|
Z as Tooltip,
|
|
6927
|
-
|
|
6978
|
+
Fs as TotalPredictiveIndexTab,
|
|
6928
6979
|
Zo as TotalPredictiveIndexTabSkeleton,
|
|
6929
6980
|
ee as TriadMarkIcon,
|
|
6930
6981
|
ra as TriadRadar,
|
|
6931
|
-
|
|
6932
|
-
|
|
6933
|
-
|
|
6982
|
+
Hs as TriadRadarReportCard,
|
|
6983
|
+
ks as WelcomeMessageCard,
|
|
6984
|
+
js as WellnessIndicatorCard,
|
|
6934
6985
|
hl as WellnessIndicatorsIcon,
|
|
6935
|
-
|
|
6986
|
+
Gs as WellnessIndicatorsTab,
|
|
6936
6987
|
Jo as WellnessIndicatorsTabSkeleton,
|
|
6937
6988
|
Kn as activeSegmentHighlightColor,
|
|
6989
|
+
Jl as buildReportExistsUrl,
|
|
6938
6990
|
xl as buildReportPageUrl,
|
|
6991
|
+
Qs as checkMetabolicReportExists,
|
|
6939
6992
|
Vl as createHttpDashboardContentFetchers,
|
|
6940
6993
|
Kl as createReportPdfDownloader,
|
|
6941
6994
|
tl as decodeMetabolicIframeConfig,
|
|
6942
|
-
|
|
6995
|
+
Vs as emitMetabolicDashboardLogout,
|
|
6943
6996
|
el as encodeMetabolicIframeConfig,
|
|
6944
6997
|
_r as ensureAgChartsModules,
|
|
6945
6998
|
U as fetchReportPage,
|
|
6946
|
-
|
|
6999
|
+
he as getBuiltInReportPagesApiBaseUrl,
|
|
6947
7000
|
zl as getDashboardTabStaticPageHeader,
|
|
6948
7001
|
gt as isDashboardNavItemId,
|
|
6949
7002
|
Ao as isMetabolicDashboardApiKeyAccepted,
|
|
@@ -6957,17 +7010,17 @@ export {
|
|
|
6957
7010
|
Yr as mapSupplementScheduleDtoToTabContent,
|
|
6958
7011
|
Xr as mapTotalPredictiveIndexDtoToTabContent,
|
|
6959
7012
|
Vr as mapWellnessIndicatorsDtoToTabContent,
|
|
6960
|
-
|
|
7013
|
+
Hi as mergeDashboardContentFetchers,
|
|
6961
7014
|
_t as metabolicBrandingToStyle,
|
|
6962
|
-
|
|
6963
|
-
|
|
6964
|
-
|
|
6965
|
-
|
|
7015
|
+
Xs as metabolicIframeSrcAppendStealthParams,
|
|
7016
|
+
Ys as metabolicIframeSrcWithConfig,
|
|
7017
|
+
qs as mountMetabolicEmbed,
|
|
7018
|
+
Zs as postMetabolicIframeConfig,
|
|
6966
7019
|
ol as readMetabolicEmbedStealthParams,
|
|
6967
7020
|
rl as readMetabolicIframeConfigFromSearchParams,
|
|
6968
7021
|
bn as resolveMetabolicBranding,
|
|
6969
7022
|
W as sideMenuItemIconClass,
|
|
6970
|
-
|
|
6971
|
-
|
|
6972
|
-
|
|
7023
|
+
Se as useAgCharts,
|
|
7024
|
+
Ri as useDashboardTabContent,
|
|
7025
|
+
Ks as useInvalidateDashboardTabContentCache
|
|
6973
7026
|
};
|