@metaboliccode-dev/widget 0.2.13 → 0.2.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/MetabolicDashboard/api/mappers/shared.test.d.ts +1 -0
- package/dist/MetabolicDashboard/api/reportPageTypes.d.ts +7 -2
- package/dist/components/AlertLabSummaryTab/index.test.d.ts +1 -0
- package/dist/components/LabResultsTab/index.test.d.ts +1 -0
- package/dist/components/dashboard/data/contentTypes.d.ts +2 -0
- package/dist/index.css +1 -1
- package/dist/index.js +548 -566
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import './index.css';var qr = Object.defineProperty;
|
|
2
2
|
var Jr = (e, r, n) => r in e ? qr(e, r, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[r] = n;
|
|
3
3
|
var yt = (e, r, n) => Jr(e, typeof r != "symbol" ? r + "" : r, n);
|
|
4
|
-
import { useAgCharts as
|
|
5
|
-
import { jsx as t, jsxs as l, Fragment as
|
|
6
|
-
import { useRef as F, useState as H, useLayoutEffect as
|
|
4
|
+
import { useAgCharts as Me, ensureAgChartsModules as _r } from "./ag-charts.js";
|
|
5
|
+
import { jsx as t, jsxs as l, Fragment as ae } from "react/jsx-runtime";
|
|
6
|
+
import { useRef as F, useState as H, useLayoutEffect as $e, useMemo as j, useId as at, useCallback as B, isValidElement as $r, cloneElement as en, useEffect as V, useContext as ot, createContext as qt, lazy as Q, useReducer as tn, Component as rn, Suspense as nn, StrictMode as an } from "react";
|
|
7
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";
|
|
@@ -193,24 +193,24 @@ function un() {
|
|
|
193
193
|
};
|
|
194
194
|
}
|
|
195
195
|
function bn(e) {
|
|
196
|
-
var
|
|
196
|
+
var g, v, u, h, f, p, y, C, N, w, P, A, S, L, z, G, D, q, $;
|
|
197
197
|
if (!e)
|
|
198
198
|
return un();
|
|
199
199
|
const r = {
|
|
200
200
|
...k.sizes,
|
|
201
201
|
...e.sizes
|
|
202
|
-
}, n = ((
|
|
202
|
+
}, n = ((g = e.card) == null ? void 0 : g.padding) ?? r.cardPadding ?? k.sizes.cardPadding, a = {
|
|
203
203
|
...k.button,
|
|
204
204
|
...e.button,
|
|
205
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: ((h = e.badge) == null ? void 0 : h.borderRadius) ?? ((f = e.radius) == null ? void 0 : f.badge) ?? k.badge.borderRadius
|
|
210
210
|
}, i = {
|
|
211
211
|
...k.colors,
|
|
212
212
|
...e.colors
|
|
213
|
-
}, s = ((
|
|
213
|
+
}, s = ((p = e.colors) == null ? void 0 : p.sideMenuItemText) ?? i.textPrimary, c = ((y = e.colors) == null ? void 0 : y.sideMenuItemTextActive) ?? i.textPrimary, d = {
|
|
214
214
|
...i,
|
|
215
215
|
sideMenuItemText: s,
|
|
216
216
|
sideMenuItemTextActive: c,
|
|
@@ -257,7 +257,7 @@ function bn(e) {
|
|
|
257
257
|
badge: o
|
|
258
258
|
};
|
|
259
259
|
}
|
|
260
|
-
const hn = "inline-flex cursor-pointer items-center gap-[var(--mb-button-gap)] rounded-[var(--mb-button-radius)] border border-[color:var(--mb-color-button-border)] [border-width:var(--mb-button-border-width)] bg-[color:var(--mb-color-button-bg)] px-[var(--mb-button-padding-x)] py-[var(--mb-button-padding-y)] [font-size:var(--mb-button-font-size)] [font-weight:var(--mb-button-font-weight)] text-[color:var(--mb-color-button-text)] shadow-[var(--mb-button-shadow)] transition hover:bg-[color:var(--mb-color-button-hover)] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[color:var(--mb-color-focus-ring)] focus-visible:ring-offset-2 focus-visible:ring-offset-[color:var(--mb-color-focus-offset)] disabled:cursor-not-allowed disabled:opacity-50", fn = "inline-flex cursor-pointer items-center gap-[var(--mb-button-gap)] rounded-[var(--mb-button-radius)] border-0 bg-[color:var(--mb-color-nav-hover)] px-4 py-3.5 text-[15px] font-medium leading-normal text-[color:var(--mb-color-text)] shadow-none transition hover:bg-[color:var(--mb-color-nav-active)] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[color:var(--mb-color-focus-ring)] focus-visible:ring-offset-2 focus-visible:ring-offset-[color:var(--mb-color-focus-offset)] disabled:cursor-not-allowed disabled:opacity-50", gn = "flex w-full min-w-0 shrink-0 cursor-pointer items-center justify-center gap-0 rounded-[var(--mb-side-menu-radius)] border border-transparent px-2 py-[var(--mb-side-menu-padding-y)] text-left [font-size:var(--mb-side-menu-font-size)] [font-weight:var(--mb-side-menu-font-weight)] [border-width:var(--mb-side-menu-border-width)] shadow-[var(--mb-side-menu-shadow)] transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[color:var(--mb-color-focus-ring)] focus-visible:ring-offset-2 focus-visible:ring-offset-[color:var(--mb-color-focus-offset)] disabled:cursor-not-allowed disabled:opacity-50 lg:justify-start lg:gap-[var(--mb-side-menu-gap)] lg:px-[var(--mb-side-menu-padding-x)]", pn = "flex h-8 w-full min-w-0 shrink-0 cursor-pointer items-center justify-center gap-2 rounded-[var(--mb-side-menu-radius)] border-0 bg-transparent px-3 py-0 text-left text-sm text-[color:var(--mb-color-text)] shadow-none transition-colors hover:bg-[color:var(--mb-color-nav-hover)] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[color:var(--mb-color-focus-ring)] focus-visible:ring-offset-2 focus-visible:ring-offset-[color:var(--mb-color-focus-offset)] disabled:cursor-not-allowed disabled:opacity-50 lg:justify-start [&_svg]:block",
|
|
260
|
+
const hn = "inline-flex cursor-pointer items-center gap-[var(--mb-button-gap)] rounded-[var(--mb-button-radius)] border border-[color:var(--mb-color-button-border)] [border-width:var(--mb-button-border-width)] bg-[color:var(--mb-color-button-bg)] px-[var(--mb-button-padding-x)] py-[var(--mb-button-padding-y)] [font-size:var(--mb-button-font-size)] [font-weight:var(--mb-button-font-weight)] text-[color:var(--mb-color-button-text)] shadow-[var(--mb-button-shadow)] transition hover:bg-[color:var(--mb-color-button-hover)] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[color:var(--mb-color-focus-ring)] focus-visible:ring-offset-2 focus-visible:ring-offset-[color:var(--mb-color-focus-offset)] disabled:cursor-not-allowed disabled:opacity-50", fn = "inline-flex cursor-pointer items-center gap-[var(--mb-button-gap)] rounded-[var(--mb-button-radius)] border-0 bg-[color:var(--mb-color-nav-hover)] px-4 py-3.5 text-[15px] font-medium leading-normal text-[color:var(--mb-color-text)] shadow-none transition hover:bg-[color:var(--mb-color-nav-active)] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[color:var(--mb-color-focus-ring)] focus-visible:ring-offset-2 focus-visible:ring-offset-[color:var(--mb-color-focus-offset)] disabled:cursor-not-allowed disabled:opacity-50", gn = "flex w-full min-w-0 shrink-0 cursor-pointer items-center justify-center gap-0 rounded-[var(--mb-side-menu-radius)] border border-transparent px-2 py-[var(--mb-side-menu-padding-y)] text-left [font-size:var(--mb-side-menu-font-size)] [font-weight:var(--mb-side-menu-font-weight)] [border-width:var(--mb-side-menu-border-width)] shadow-[var(--mb-side-menu-shadow)] transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[color:var(--mb-color-focus-ring)] focus-visible:ring-offset-2 focus-visible:ring-offset-[color:var(--mb-color-focus-offset)] disabled:cursor-not-allowed disabled:opacity-50 lg:justify-start lg:gap-[var(--mb-side-menu-gap)] lg:px-[var(--mb-side-menu-padding-x)]", pn = "flex h-8 w-full min-w-0 shrink-0 cursor-pointer items-center justify-center gap-2 rounded-[var(--mb-side-menu-radius)] border-0 bg-transparent px-3 py-0 text-left text-sm text-[color:var(--mb-color-text)] shadow-none transition-colors hover:bg-[color:var(--mb-color-nav-hover)] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[color:var(--mb-color-focus-ring)] focus-visible:ring-offset-2 focus-visible:ring-offset-[color:var(--mb-color-focus-offset)] disabled:cursor-not-allowed disabled:opacity-50 lg:justify-start [&_svg]:block", He = "inline-flex shrink-0 cursor-pointer items-center gap-1.5 rounded-none rounded-br-[length:var(--mb-radius-button)] rounded-tr-[length:var(--mb-radius-button)] border-0 px-5 py-2.5 text-sm font-bold uppercase tracking-wide text-white shadow-none transition hover:brightness-90 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[color:var(--mb-color-focus-ring)] focus-visible:ring-offset-2 focus-visible:ring-offset-[color:var(--mb-color-card-bg)] disabled:cursor-not-allowed disabled:opacity-50 [&_svg]:shrink-0 [&_svg]:text-white", xn = `${He} bg-[#3a9e6a]`, vn = `${He} bg-[#d94040]`, wn = `${He} bg-[#d94040]`, yn = `${He} bg-[#e09a1a]`;
|
|
261
261
|
function M({
|
|
262
262
|
className: e = "",
|
|
263
263
|
fullWidth: r = !1,
|
|
@@ -349,7 +349,7 @@ function ee({ triadNumber: e, className: r = "size-10" }) {
|
|
|
349
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
|
|
352
|
+
const Ee = "text-xl font-bold text-[color:var(--mb-color-text)]";
|
|
353
353
|
function it({
|
|
354
354
|
title: e,
|
|
355
355
|
trailing: r,
|
|
@@ -357,12 +357,12 @@ function it({
|
|
|
357
357
|
className: a = ""
|
|
358
358
|
}) {
|
|
359
359
|
return r && n ? /* @__PURE__ */ l("div", { className: `mb-2 flex items-center gap-1.5 ${a}`.trim(), children: [
|
|
360
|
-
/* @__PURE__ */ t("h2", { className:
|
|
360
|
+
/* @__PURE__ */ t("h2", { className: Ee, children: e }),
|
|
361
361
|
r
|
|
362
362
|
] }) : r ? /* @__PURE__ */ l("div", { className: `mb-4 flex items-start justify-between gap-4 ${a}`.trim(), children: [
|
|
363
|
-
/* @__PURE__ */ t("h2", { className:
|
|
363
|
+
/* @__PURE__ */ t("h2", { className: Ee, children: e }),
|
|
364
364
|
r
|
|
365
|
-
] }) : /* @__PURE__ */ t("h2", { className: `mb-2 ${
|
|
365
|
+
] }) : /* @__PURE__ */ t("h2", { className: `mb-2 ${Ee} ${a}`.trim(), children: e });
|
|
366
366
|
}
|
|
367
367
|
function ar({ size: e = 14 }) {
|
|
368
368
|
return /* @__PURE__ */ l(
|
|
@@ -462,7 +462,7 @@ const jn = {
|
|
|
462
462
|
colorBadgeValueBg: "#EBEBEB",
|
|
463
463
|
fontFamily: "ui-sans-serif, system-ui, sans-serif"
|
|
464
464
|
};
|
|
465
|
-
function
|
|
465
|
+
function et(e) {
|
|
466
466
|
const r = e.trim();
|
|
467
467
|
if (!r || typeof document > "u") return r;
|
|
468
468
|
const n = document.createElement("div");
|
|
@@ -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 = et(r.trim() || "#ffffff"), a = et(e.trim() || "#f1f5f9");
|
|
489
489
|
return Bn(a, n);
|
|
490
490
|
}
|
|
491
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
498
|
colorText: Tt(i),
|
|
499
499
|
colorTextMuted: Tt(s),
|
|
500
|
-
colorCardBorder:
|
|
500
|
+
colorCardBorder: et(c),
|
|
501
501
|
colorBadgeValueBg: In(d, m),
|
|
502
502
|
fontFamily: o.fontFamily || "ui-sans-serif, system-ui, sans-serif"
|
|
503
503
|
});
|
|
@@ -507,7 +507,7 @@ function st() {
|
|
|
507
507
|
themeReady: r !== null
|
|
508
508
|
};
|
|
509
509
|
}
|
|
510
|
-
const
|
|
510
|
+
const Fe = 78;
|
|
511
511
|
function Dn(e, r, n) {
|
|
512
512
|
const a = Math.min(100, Math.max(0, e));
|
|
513
513
|
return {
|
|
@@ -560,20 +560,20 @@ function Rn({
|
|
|
560
560
|
score: e,
|
|
561
561
|
showIndicator: r = !0
|
|
562
562
|
}) {
|
|
563
|
-
|
|
563
|
+
Me();
|
|
564
564
|
const { ref: n, theme: a, themeReady: o } = st(), i = j(() => Dn(e, r, a), [e, r, a]);
|
|
565
565
|
return /* @__PURE__ */ t(
|
|
566
566
|
"div",
|
|
567
567
|
{
|
|
568
568
|
ref: n,
|
|
569
569
|
className: "relative min-w-0 w-full overflow-x-clip [&_.ag-charts-wrapper]:!overflow-x-clip [&_.ag-charts-wrapper]:!bg-transparent [&_.ag-charts-canvas-center]:!bg-transparent",
|
|
570
|
-
style: { minHeight:
|
|
570
|
+
style: { minHeight: Fe },
|
|
571
571
|
children: /* @__PURE__ */ t(
|
|
572
572
|
lt,
|
|
573
573
|
{
|
|
574
574
|
options: i,
|
|
575
575
|
className: "block min-w-0 w-full overflow-x-clip",
|
|
576
|
-
style: { height:
|
|
576
|
+
style: { height: Fe, minHeight: Fe }
|
|
577
577
|
},
|
|
578
578
|
o ? "mb-branded" : "mb-fallback"
|
|
579
579
|
)
|
|
@@ -582,7 +582,7 @@ function Rn({
|
|
|
582
582
|
}
|
|
583
583
|
const zn = 3e3, On = 5e3, En = 330;
|
|
584
584
|
function Fn(e, r, n, a) {
|
|
585
|
-
const o = r > 0 ? r : 1, i = Math.min(zn, o), s = Math.min(On, o), c = i + (s - i) * 0.33, d = i + (s - i) * 0.66, m = Array.from({ length: 8 }, (b,
|
|
585
|
+
const o = r > 0 ? r : 1, i = Math.min(zn, o), s = Math.min(On, o), c = i + (s - i) * 0.33, d = i + (s - i) * 0.66, m = Array.from({ length: 8 }, (b, g) => Math.round(o * g / 7));
|
|
586
586
|
return {
|
|
587
587
|
type: "radial-gauge",
|
|
588
588
|
value: Math.min(o, Math.max(0, e)),
|
|
@@ -642,7 +642,7 @@ function lr({
|
|
|
642
642
|
max: r,
|
|
643
643
|
centerValueColor: n
|
|
644
644
|
}) {
|
|
645
|
-
|
|
645
|
+
Me();
|
|
646
646
|
const { ref: a, theme: o, themeReady: i } = st(), s = j(
|
|
647
647
|
() => Fn(e, r, o, n),
|
|
648
648
|
[e, r, o, n]
|
|
@@ -664,7 +664,7 @@ function lr({
|
|
|
664
664
|
}
|
|
665
665
|
);
|
|
666
666
|
}
|
|
667
|
-
function
|
|
667
|
+
function re({ className: e }) {
|
|
668
668
|
return /* @__PURE__ */ l(
|
|
669
669
|
"svg",
|
|
670
670
|
{
|
|
@@ -877,13 +877,13 @@ function Yn({
|
|
|
877
877
|
{
|
|
878
878
|
className: r ? "flex min-h-11 w-full items-center gap-3 p-3" : "flex min-h-11 w-full items-center gap-3 border-t border-[color:rgba(0,0,47,0.15)] p-3",
|
|
879
879
|
children: [
|
|
880
|
-
/* @__PURE__ */ t("span", { className: "inline-flex size-4 shrink-0 items-center justify-center text-[color:var(--mb-color-text)]", children: /* @__PURE__ */ t(
|
|
880
|
+
/* @__PURE__ */ t("span", { className: "inline-flex size-4 shrink-0 items-center justify-center text-[color:var(--mb-color-text)]", children: /* @__PURE__ */ t(re, { className: "size-4" }) }),
|
|
881
881
|
/* @__PURE__ */ t("p", { className: "min-w-0 flex-1 text-sm leading-5 text-[color:var(--mb-color-text)]", children: e })
|
|
882
882
|
]
|
|
883
883
|
}
|
|
884
884
|
);
|
|
885
885
|
}
|
|
886
|
-
const
|
|
886
|
+
const he = [
|
|
887
887
|
{ color: "#E97180", activeColor: "#F05452", label: "Low Alert" },
|
|
888
888
|
{ color: "#E1CB7F", activeColor: "#E2CC00", label: "Low Normal" },
|
|
889
889
|
{ color: "#86CD95", activeColor: "#459D54", label: "Optimal" },
|
|
@@ -893,7 +893,7 @@ const be = [
|
|
|
893
893
|
{ color: "#86CD95", activeColor: "#459D54", label: "Low Trend" },
|
|
894
894
|
{ color: "#E1CB7F", activeColor: "#E2CC00", label: "Moderate Trend" },
|
|
895
895
|
{ color: "#E97180", activeColor: "#F05452", label: "High Trend" }
|
|
896
|
-
], Xn = 24,
|
|
896
|
+
], Xn = 24, tt = 12, mr = 14, Ge = 32, Vn = 26;
|
|
897
897
|
function Zn(e, r, n) {
|
|
898
898
|
const a = Math.min(100, Math.max(0, e));
|
|
899
899
|
if (n === "continuous") return a;
|
|
@@ -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: tt },
|
|
934
934
|
tooltip: { enabled: !1 },
|
|
935
935
|
highlight: { enabled: !1 },
|
|
936
936
|
targets: [],
|
|
@@ -965,23 +965,23 @@ function oe({
|
|
|
965
965
|
showIndicator: a = !0,
|
|
966
966
|
highlightedSegmentIndex: o
|
|
967
967
|
}) {
|
|
968
|
-
|
|
968
|
+
Me();
|
|
969
969
|
const i = e.length, s = o !== void 0 ? Math.min(i - 1, Math.max(0, o)) : ur(r, i), c = j(() => Qn(e, s), [e, s]);
|
|
970
970
|
if (i === 0) return null;
|
|
971
|
-
const d = Zn(r, i, n), m = `calc(${
|
|
971
|
+
const d = Zn(r, i, n), m = `calc(${tt}px + (100% - ${tt + mr}px) * ${d / 100})`;
|
|
972
972
|
return /* @__PURE__ */ l("div", { className: "w-full", children: [
|
|
973
973
|
/* @__PURE__ */ l(
|
|
974
974
|
"div",
|
|
975
975
|
{
|
|
976
976
|
className: "relative w-full overflow-visible [&_.ag-charts-wrapper]:!overflow-visible [&_.ag-charts-wrapper]:!bg-transparent [&_.ag-charts-canvas-center]:!bg-transparent",
|
|
977
|
-
style: { minHeight:
|
|
977
|
+
style: { minHeight: Ge },
|
|
978
978
|
children: [
|
|
979
979
|
/* @__PURE__ */ t(
|
|
980
980
|
lt,
|
|
981
981
|
{
|
|
982
982
|
options: c,
|
|
983
983
|
className: "pointer-events-none block w-full overflow-visible",
|
|
984
|
-
style: { height:
|
|
984
|
+
style: { height: Ge, minHeight: Ge }
|
|
985
985
|
}
|
|
986
986
|
),
|
|
987
987
|
a ? /* @__PURE__ */ t(
|
|
@@ -1003,7 +1003,7 @@ function oe({
|
|
|
1003
1003
|
{
|
|
1004
1004
|
className: "mt-1.5 grid gap-x-0.5 gap-y-1 text-center text-[10px] leading-snug text-[color:var(--mb-color-text-muted)] sm:text-[11px]",
|
|
1005
1005
|
style: { gridTemplateColumns: `repeat(${i}, minmax(0, 1fr))` },
|
|
1006
|
-
children: e.map((b,
|
|
1006
|
+
children: e.map((b, g) => /* @__PURE__ */ t("span", { className: "min-w-0 break-words px-0.5", children: b.label }, `${b.label}-${g}`))
|
|
1007
1007
|
}
|
|
1008
1008
|
)
|
|
1009
1009
|
] });
|
|
@@ -1057,17 +1057,17 @@ function $n({
|
|
|
1057
1057
|
) : null;
|
|
1058
1058
|
}) });
|
|
1059
1059
|
}
|
|
1060
|
-
const
|
|
1060
|
+
const rt = 292, be = 240, Pt = 50;
|
|
1061
1061
|
function ea(e) {
|
|
1062
1062
|
return e > 1 ? Math.min(1, e / 100) : Math.max(0, Math.min(1, e));
|
|
1063
1063
|
}
|
|
1064
1064
|
function ta(e, r, n, a) {
|
|
1065
1065
|
return {
|
|
1066
1066
|
data: e,
|
|
1067
|
-
width:
|
|
1068
|
-
height:
|
|
1069
|
-
minWidth:
|
|
1070
|
-
minHeight:
|
|
1067
|
+
width: rt,
|
|
1068
|
+
height: be,
|
|
1069
|
+
minWidth: rt,
|
|
1070
|
+
minHeight: be,
|
|
1071
1071
|
background: { fill: "transparent" },
|
|
1072
1072
|
padding: { top: 2, right: 4, bottom: 2, left: 4 },
|
|
1073
1073
|
animation: { enabled: !1 },
|
|
@@ -1128,7 +1128,7 @@ function ra({
|
|
|
1128
1128
|
fill: n,
|
|
1129
1129
|
stroke: a
|
|
1130
1130
|
}) {
|
|
1131
|
-
|
|
1131
|
+
Me();
|
|
1132
1132
|
const { ref: o, theme: i, themeReady: s } = st(), c = j(() => e.map((m, b) => ({
|
|
1133
1133
|
category: m,
|
|
1134
1134
|
value: ea(r[b] ?? 0) * 100
|
|
@@ -1141,7 +1141,7 @@ function ra({
|
|
|
1141
1141
|
{
|
|
1142
1142
|
ref: o,
|
|
1143
1143
|
className: "mx-auto w-full max-w-[292px] shrink-0 overflow-hidden leading-none [&_.ag-charts-wrapper]:!bg-transparent [&_.ag-charts-canvas-center]:!bg-transparent",
|
|
1144
|
-
style: { width: `min(100%, ${
|
|
1144
|
+
style: { width: `min(100%, ${rt}px)`, height: be },
|
|
1145
1145
|
role: "img",
|
|
1146
1146
|
"aria-label": `Radar chart for ${e.join(", ")}`,
|
|
1147
1147
|
children: /* @__PURE__ */ t(
|
|
@@ -1149,7 +1149,7 @@ function ra({
|
|
|
1149
1149
|
{
|
|
1150
1150
|
options: d,
|
|
1151
1151
|
className: "block h-full w-full max-h-full",
|
|
1152
|
-
style: { height:
|
|
1152
|
+
style: { height: be, maxHeight: be }
|
|
1153
1153
|
},
|
|
1154
1154
|
s ? "tr-branded" : "tr-fallback"
|
|
1155
1155
|
)
|
|
@@ -1158,7 +1158,7 @@ function ra({
|
|
|
1158
1158
|
}
|
|
1159
1159
|
function na({ text: e }) {
|
|
1160
1160
|
return /* @__PURE__ */ l("div", { className: "flex min-h-11 items-center gap-3 py-2", children: [
|
|
1161
|
-
/* @__PURE__ */ t(
|
|
1161
|
+
/* @__PURE__ */ t(re, { className: "shrink-0" }),
|
|
1162
1162
|
/* @__PURE__ */ t("span", { className: "text-sm leading-snug text-[color:var(--mb-color-text)]", children: e })
|
|
1163
1163
|
] });
|
|
1164
1164
|
}
|
|
@@ -1169,11 +1169,11 @@ function St({ rows: e = [] }) {
|
|
|
1169
1169
|
className: `grid grid-cols-1 border-[rgba(0,0,47,0.15)] sm:grid-cols-2 ${n > 0 ? "border-t" : ""}`,
|
|
1170
1170
|
children: [
|
|
1171
1171
|
/* @__PURE__ */ l("div", { className: "flex min-h-11 min-w-0 items-center gap-3 px-3 py-2.5", children: [
|
|
1172
|
-
/* @__PURE__ */ t(
|
|
1172
|
+
/* @__PURE__ */ t(re, { className: "shrink-0" }),
|
|
1173
1173
|
/* @__PURE__ */ t("span", { className: "min-w-0 text-sm leading-snug text-[color:var(--mb-color-text)]", children: r.left })
|
|
1174
1174
|
] }),
|
|
1175
|
-
/* @__PURE__ */ t("div", { className: "flex min-h-11 min-w-0 items-center gap-3 border-t border-[rgba(0,0,47,0.15)] px-3 py-2.5 sm:border-t-0 sm:border-[rgba(0,0,47,0.15)]", children: r.right ? /* @__PURE__ */ l(
|
|
1176
|
-
/* @__PURE__ */ t(
|
|
1175
|
+
/* @__PURE__ */ t("div", { className: "flex min-h-11 min-w-0 items-center gap-3 border-t border-[rgba(0,0,47,0.15)] px-3 py-2.5 sm:border-t-0 sm:border-[rgba(0,0,47,0.15)]", children: r.right ? /* @__PURE__ */ l(ae, { children: [
|
|
1176
|
+
/* @__PURE__ */ t(re, { className: "shrink-0" }),
|
|
1177
1177
|
/* @__PURE__ */ t("span", { className: "min-w-0 text-sm leading-snug text-[color:var(--mb-color-text)]", children: r.right })
|
|
1178
1178
|
] }) : null })
|
|
1179
1179
|
]
|
|
@@ -1192,7 +1192,7 @@ function Ls(e) {
|
|
|
1192
1192
|
riskRows: c,
|
|
1193
1193
|
nutrientsLeadParagraph: d,
|
|
1194
1194
|
nutrientRows: m
|
|
1195
|
-
} = e, b = Kn(
|
|
1195
|
+
} = e, b = Kn(he, a);
|
|
1196
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 }),
|
|
@@ -1201,7 +1201,7 @@ function Ls(e) {
|
|
|
1201
1201
|
/* @__PURE__ */ t(
|
|
1202
1202
|
oe,
|
|
1203
1203
|
{
|
|
1204
|
-
segments:
|
|
1204
|
+
segments: he,
|
|
1205
1205
|
indicatorPercent: a,
|
|
1206
1206
|
indicatorPosition: "segmentCenter"
|
|
1207
1207
|
}
|
|
@@ -1227,84 +1227,84 @@ function Mt(e) {
|
|
|
1227
1227
|
return 50;
|
|
1228
1228
|
}
|
|
1229
1229
|
}
|
|
1230
|
-
function
|
|
1230
|
+
function te(e) {
|
|
1231
1231
|
return Math.min(100, Math.max(0, e));
|
|
1232
1232
|
}
|
|
1233
|
-
function
|
|
1233
|
+
function ke(e) {
|
|
1234
1234
|
if (e === void 0 || e === "") return null;
|
|
1235
1235
|
const r = Number.parseFloat(String(e).replace(/,/g, ""));
|
|
1236
1236
|
return Number.isFinite(r) ? r : null;
|
|
1237
1237
|
}
|
|
1238
1238
|
function aa(e, r, n, a) {
|
|
1239
1239
|
if (n !== void 0 && Number.isFinite(n))
|
|
1240
|
-
return
|
|
1240
|
+
return te(n);
|
|
1241
1241
|
if (e === null || !Number.isFinite(e)) return 50;
|
|
1242
1242
|
const o = (a == null ? void 0 : a.mapping) ?? "relativeTotal", i = r.filter((v) => v !== null && Number.isFinite(v));
|
|
1243
1243
|
if (o === "relativeTotal") {
|
|
1244
1244
|
if (i.length === 0) return 50;
|
|
1245
1245
|
const v = Math.min(...i), u = Math.max(...i);
|
|
1246
|
-
return u === v ? 50 :
|
|
1246
|
+
return u === v ? 50 : te((e - v) / (u - v) * 100);
|
|
1247
1247
|
}
|
|
1248
1248
|
if (o === "absoluteLinear") {
|
|
1249
1249
|
const v = (a == null ? void 0 : a.scaleMin) ?? 0, u = (a == null ? void 0 : a.scaleMax) ?? 200;
|
|
1250
|
-
return u === v ? 50 :
|
|
1250
|
+
return u === v ? 50 : te((e - v) / (u - v) * 100);
|
|
1251
1251
|
}
|
|
1252
1252
|
const s = (a == null ? void 0 : a.thresholdLowBelow) ?? 100, c = (a == null ? void 0 : a.thresholdHighAbove) ?? 160;
|
|
1253
1253
|
if (c <= s) return 50;
|
|
1254
1254
|
const d = 100 / 3;
|
|
1255
1255
|
if (e <= s) {
|
|
1256
1256
|
const v = s > 0 ? s : 1;
|
|
1257
|
-
return
|
|
1257
|
+
return te(e / v * d);
|
|
1258
1258
|
}
|
|
1259
1259
|
if (e <= c) {
|
|
1260
1260
|
const v = c - s, u = v > 0 ? (e - s) / v : 0;
|
|
1261
|
-
return
|
|
1261
|
+
return te(d + u * d);
|
|
1262
1262
|
}
|
|
1263
|
-
const m = c - s, b = m > 0 ? m : 1,
|
|
1264
|
-
return
|
|
1263
|
+
const m = c - s, b = m > 0 ? m : 1, g = Math.min(1, (e - c) / b);
|
|
1264
|
+
return te(2 * d + g * d);
|
|
1265
1265
|
}
|
|
1266
1266
|
function Z({ content: e, children: r, side: n = "top" }) {
|
|
1267
|
-
const a = at(), o = F(null), i = F(null), [s, c] = H(!1), [d, m] = H(null), b = F(null),
|
|
1267
|
+
const a = at(), o = F(null), i = F(null), [s, c] = H(!1), [d, m] = H(null), b = F(null), g = B(() => {
|
|
1268
1268
|
b.current !== null && cancelAnimationFrame(b.current), b.current = requestAnimationFrame(() => {
|
|
1269
1269
|
b.current = null;
|
|
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 =
|
|
1270
|
+
const h = o.current, f = i.current;
|
|
1271
|
+
if (!h || !f) return;
|
|
1272
|
+
const p = h.getBoundingClientRect(), y = f.getBoundingClientRect(), C = 4, N = 12, w = window.innerWidth, P = window.innerHeight;
|
|
1273
|
+
let A = n === "top" ? p.top - y.height - C : p.bottom + C, S = p.left + p.width / 2 - y.width / 2;
|
|
1274
|
+
S = Math.max(N, Math.min(S, w - y.width - N)), n === "top" && A < N ? A = p.bottom + C : n === "bottom" && A + y.height > P - N && (A = p.top - y.height - C), A = Math.max(N, Math.min(A, P - y.height - N)), m({ top: A, left: S });
|
|
1275
1275
|
});
|
|
1276
1276
|
}, [n]);
|
|
1277
|
-
|
|
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
|
-
b.current !== null && (cancelAnimationFrame(b.current), b.current = null), window.removeEventListener("scroll",
|
|
1282
|
+
return window.addEventListener("scroll", g, !0), window.addEventListener("resize", g), () => {
|
|
1283
|
+
b.current !== null && (cancelAnimationFrame(b.current), b.current = null), window.removeEventListener("scroll", g, !0), window.removeEventListener("resize", g);
|
|
1284
1284
|
};
|
|
1285
|
-
}, [s,
|
|
1286
|
-
s &&
|
|
1285
|
+
}, [s, g, e]), $e(() => {
|
|
1286
|
+
s && g();
|
|
1287
1287
|
});
|
|
1288
1288
|
const v = $r(r) ? en(r, {
|
|
1289
1289
|
"aria-describedby": s ? a : void 0,
|
|
1290
|
-
onMouseEnter: (
|
|
1291
|
-
var
|
|
1292
|
-
(
|
|
1290
|
+
onMouseEnter: (h) => {
|
|
1291
|
+
var f, p;
|
|
1292
|
+
(p = (f = r.props).onMouseEnter) == null || p.call(f, h), c(!0);
|
|
1293
1293
|
},
|
|
1294
|
-
onMouseLeave: (
|
|
1295
|
-
var
|
|
1296
|
-
(
|
|
1294
|
+
onMouseLeave: (h) => {
|
|
1295
|
+
var f, p;
|
|
1296
|
+
(p = (f = r.props).onMouseLeave) == null || p.call(f, h), c(!1);
|
|
1297
1297
|
},
|
|
1298
|
-
onFocus: (
|
|
1299
|
-
var
|
|
1300
|
-
(
|
|
1298
|
+
onFocus: (h) => {
|
|
1299
|
+
var f, p;
|
|
1300
|
+
(p = (f = r.props).onFocus) == null || p.call(f, h), c(!0);
|
|
1301
1301
|
},
|
|
1302
|
-
onBlur: (
|
|
1303
|
-
var
|
|
1304
|
-
(
|
|
1302
|
+
onBlur: (h) => {
|
|
1303
|
+
var f, p;
|
|
1304
|
+
(p = (f = r.props).onBlur) == null || p.call(f, h), c(!1);
|
|
1305
1305
|
}
|
|
1306
1306
|
}) : r, u = typeof document < "u" ? document.body : null;
|
|
1307
|
-
return /* @__PURE__ */ l(
|
|
1307
|
+
return /* @__PURE__ */ l(ae, { children: [
|
|
1308
1308
|
/* @__PURE__ */ t("span", { ref: o, className: "inline-flex", children: v }),
|
|
1309
1309
|
s && u ? Jt(
|
|
1310
1310
|
/* @__PURE__ */ t(
|
|
@@ -1334,7 +1334,7 @@ function Z({ content: e, children: r, side: n = "top" }) {
|
|
|
1334
1334
|
] });
|
|
1335
1335
|
}
|
|
1336
1336
|
const X = "rounded-full p-0.5 text-[color:var(--mb-color-text-muted)] transition hover:text-[color:var(--mb-color-text)] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[color:var(--mb-color-focus-ring)]", oa = "whitespace-nowrap !border-[color:var(--mb-color-card-inline-button-border)] !bg-[color:var(--mb-color-card-inline-button-bg)] !px-3 !py-2 !text-sm !font-medium !text-[color:var(--mb-color-card-inline-button-text)] [&_svg]:!text-[color:var(--mb-color-card-inline-button-text)] !shadow-none hover:!bg-[color:var(--mb-color-card-inline-button-hover)]", br = "whitespace-nowrap !border-[color:var(--mb-color-card-border)] !bg-transparent !px-3 !py-2 !text-sm !font-medium !text-[color:var(--mb-color-text)] [&_svg]:!text-[color:var(--mb-color-text)] !shadow-none transition-[background-color,border-color] duration-150 ease-out hover:!border-[color:var(--mb-color-button-border)] hover:!bg-[color:var(--mb-color-card-inline-button-hover)] disabled:hover:!border-[color:var(--mb-color-card-border)] disabled:hover:!bg-transparent";
|
|
1337
|
-
function
|
|
1337
|
+
function Ae({
|
|
1338
1338
|
value: e,
|
|
1339
1339
|
variant: r = "default",
|
|
1340
1340
|
className: n = ""
|
|
@@ -1389,7 +1389,7 @@ function de({
|
|
|
1389
1389
|
}
|
|
1390
1390
|
);
|
|
1391
1391
|
}
|
|
1392
|
-
function
|
|
1392
|
+
function Ye({
|
|
1393
1393
|
ariaLabel: e,
|
|
1394
1394
|
tooltip: r,
|
|
1395
1395
|
onClick: n
|
|
@@ -1406,7 +1406,7 @@ function Ge({
|
|
|
1406
1406
|
}
|
|
1407
1407
|
) });
|
|
1408
1408
|
}
|
|
1409
|
-
function
|
|
1409
|
+
function je({
|
|
1410
1410
|
segments: e,
|
|
1411
1411
|
indicatorPercent: r,
|
|
1412
1412
|
indicatorPosition: n = "segmentCenter"
|
|
@@ -1453,7 +1453,7 @@ function Ht({
|
|
|
1453
1453
|
}
|
|
1454
1454
|
),
|
|
1455
1455
|
/* @__PURE__ */ t("div", { className: "flex min-w-0 justify-start self-center py-2.5", children: /* @__PURE__ */ t(
|
|
1456
|
-
|
|
1456
|
+
Ae,
|
|
1457
1457
|
{
|
|
1458
1458
|
value: a.current,
|
|
1459
1459
|
variant: a.valueVariant,
|
|
@@ -1461,7 +1461,7 @@ function Ht({
|
|
|
1461
1461
|
}
|
|
1462
1462
|
) }),
|
|
1463
1463
|
/* @__PURE__ */ t("div", { className: "flex min-w-0 justify-start self-center py-2.5", children: /* @__PURE__ */ t(
|
|
1464
|
-
|
|
1464
|
+
Ae,
|
|
1465
1465
|
{
|
|
1466
1466
|
value: a.previous,
|
|
1467
1467
|
variant: a.valueVariant,
|
|
@@ -1471,7 +1471,7 @@ function Ht({
|
|
|
1471
1471
|
o < r.length - 1 ? /* @__PURE__ */ t("div", { className: "col-span-full border-b border-gray-200" }) : null
|
|
1472
1472
|
] }, `${a.label}-${o}`))
|
|
1473
1473
|
] }),
|
|
1474
|
-
/* @__PURE__ */ t(
|
|
1474
|
+
/* @__PURE__ */ t(je, { ...n })
|
|
1475
1475
|
] });
|
|
1476
1476
|
}
|
|
1477
1477
|
function sa({
|
|
@@ -1491,12 +1491,12 @@ function sa({
|
|
|
1491
1491
|
children: n.label
|
|
1492
1492
|
}
|
|
1493
1493
|
),
|
|
1494
|
-
/* @__PURE__ */ t(
|
|
1494
|
+
/* @__PURE__ */ t(Ae, { value: n.value, variant: n.valueVariant ?? "default" })
|
|
1495
1495
|
]
|
|
1496
1496
|
},
|
|
1497
1497
|
`${a}-${n.label}`
|
|
1498
1498
|
)) }),
|
|
1499
|
-
/* @__PURE__ */ t(
|
|
1499
|
+
/* @__PURE__ */ t(je, { ...r })
|
|
1500
1500
|
] });
|
|
1501
1501
|
}
|
|
1502
1502
|
function ca({
|
|
@@ -1531,7 +1531,7 @@ function ca({
|
|
|
1531
1531
|
},
|
|
1532
1532
|
o
|
|
1533
1533
|
)) }),
|
|
1534
|
-
/* @__PURE__ */ t(
|
|
1534
|
+
/* @__PURE__ */ t(je, { ...r })
|
|
1535
1535
|
] });
|
|
1536
1536
|
}
|
|
1537
1537
|
function da({
|
|
@@ -1551,26 +1551,26 @@ function da({
|
|
|
1551
1551
|
className: "flex flex-col gap-1.5 py-2.5 sm:flex-row sm:items-center sm:justify-between sm:gap-3",
|
|
1552
1552
|
children: [
|
|
1553
1553
|
/* @__PURE__ */ t("span", { className: "shrink-0 text-sm text-[color:var(--mb-color-text)]", children: i.label }),
|
|
1554
|
-
/* @__PURE__ */ t("div", { className: "flex min-w-0 justify-start sm:justify-end", children: /* @__PURE__ */ t(
|
|
1554
|
+
/* @__PURE__ */ t("div", { className: "flex min-w-0 justify-start sm:justify-end", children: /* @__PURE__ */ t(Ae, { value: i.value, className: "max-w-full whitespace-normal text-center" }) })
|
|
1555
1555
|
]
|
|
1556
1556
|
},
|
|
1557
1557
|
`${s}-${i.label}`
|
|
1558
1558
|
)) }),
|
|
1559
|
-
/* @__PURE__ */ t(
|
|
1559
|
+
/* @__PURE__ */ t(je, { ...a })
|
|
1560
1560
|
] });
|
|
1561
1561
|
}
|
|
1562
|
-
function
|
|
1562
|
+
function ne(e) {
|
|
1563
1563
|
if (e.layout === "labAnalysis") {
|
|
1564
|
-
const { title: u, markers:
|
|
1564
|
+
const { title: u, markers: h, trendZone: f } = e, p = Mt(f), y = me(Y, p);
|
|
1565
1565
|
return /* @__PURE__ */ l(ce, { trendColor: y, children: [
|
|
1566
1566
|
/* @__PURE__ */ t(de, { title: u, trendColor: y }),
|
|
1567
1567
|
/* @__PURE__ */ t(
|
|
1568
1568
|
ca,
|
|
1569
1569
|
{
|
|
1570
|
-
markers:
|
|
1570
|
+
markers: h,
|
|
1571
1571
|
rangeBar: {
|
|
1572
1572
|
segments: Y,
|
|
1573
|
-
indicatorPercent:
|
|
1573
|
+
indicatorPercent: p,
|
|
1574
1574
|
indicatorPosition: "segmentCenter"
|
|
1575
1575
|
}
|
|
1576
1576
|
}
|
|
@@ -1578,19 +1578,19 @@ function ae(e) {
|
|
|
1578
1578
|
] });
|
|
1579
1579
|
}
|
|
1580
1580
|
if (e.layout === "labResults") {
|
|
1581
|
-
const { category: u, onInfoClick:
|
|
1582
|
-
return /* @__PURE__ */ l(ce, { trendColor:
|
|
1581
|
+
const { category: u, onInfoClick: h } = e, f = me(Y, u.indicatorPercent);
|
|
1582
|
+
return /* @__PURE__ */ l(ce, { trendColor: f, children: [
|
|
1583
1583
|
/* @__PURE__ */ t(
|
|
1584
1584
|
de,
|
|
1585
1585
|
{
|
|
1586
1586
|
title: u.title,
|
|
1587
|
-
trendColor:
|
|
1587
|
+
trendColor: f,
|
|
1588
1588
|
trailingInfo: /* @__PURE__ */ t(
|
|
1589
|
-
|
|
1589
|
+
Ye,
|
|
1590
1590
|
{
|
|
1591
1591
|
ariaLabel: u.infoAriaLabel,
|
|
1592
1592
|
tooltip: u.infoTooltip ?? u.infoAriaLabel,
|
|
1593
|
-
onClick:
|
|
1593
|
+
onClick: h
|
|
1594
1594
|
}
|
|
1595
1595
|
)
|
|
1596
1596
|
}
|
|
@@ -1613,14 +1613,14 @@ function ae(e) {
|
|
|
1613
1613
|
if (e.layout === "metricRows") {
|
|
1614
1614
|
const {
|
|
1615
1615
|
title: u,
|
|
1616
|
-
infoAriaLabel:
|
|
1617
|
-
infoTooltip:
|
|
1618
|
-
onInfoClick:
|
|
1616
|
+
infoAriaLabel: h,
|
|
1617
|
+
infoTooltip: f,
|
|
1618
|
+
onInfoClick: p,
|
|
1619
1619
|
showInfoButton: y = !0,
|
|
1620
1620
|
rows: C,
|
|
1621
1621
|
indicatorPercent: N,
|
|
1622
1622
|
indicatorPosition: w,
|
|
1623
|
-
segments: P =
|
|
1623
|
+
segments: P = he
|
|
1624
1624
|
} = e, A = me(P, N);
|
|
1625
1625
|
return /* @__PURE__ */ l(ce, { trendColor: A, children: [
|
|
1626
1626
|
/* @__PURE__ */ t(
|
|
@@ -1629,11 +1629,11 @@ function ae(e) {
|
|
|
1629
1629
|
title: u,
|
|
1630
1630
|
trendColor: A,
|
|
1631
1631
|
trailingInfo: y ? /* @__PURE__ */ t(
|
|
1632
|
-
|
|
1632
|
+
Ye,
|
|
1633
1633
|
{
|
|
1634
|
-
ariaLabel:
|
|
1635
|
-
tooltip:
|
|
1636
|
-
onClick:
|
|
1634
|
+
ariaLabel: h,
|
|
1635
|
+
tooltip: f ?? h,
|
|
1636
|
+
onClick: p
|
|
1637
1637
|
}
|
|
1638
1638
|
) : void 0
|
|
1639
1639
|
}
|
|
@@ -1654,9 +1654,9 @@ function ae(e) {
|
|
|
1654
1654
|
if (e.layout === "questionnaire") {
|
|
1655
1655
|
const {
|
|
1656
1656
|
category: u,
|
|
1657
|
-
currentRangeLabel:
|
|
1658
|
-
previousRangeLabel:
|
|
1659
|
-
onInfoClick:
|
|
1657
|
+
currentRangeLabel: h = "Current Range",
|
|
1658
|
+
previousRangeLabel: f = "Previous Range",
|
|
1659
|
+
onInfoClick: p
|
|
1660
1660
|
} = e, y = Mt(u.trendZone), C = me(Y, y);
|
|
1661
1661
|
return /* @__PURE__ */ l(ce, { trendColor: C, children: [
|
|
1662
1662
|
/* @__PURE__ */ t(
|
|
@@ -1665,11 +1665,11 @@ function ae(e) {
|
|
|
1665
1665
|
title: u.title,
|
|
1666
1666
|
trendColor: C,
|
|
1667
1667
|
trailingInfo: /* @__PURE__ */ t(
|
|
1668
|
-
|
|
1668
|
+
Ye,
|
|
1669
1669
|
{
|
|
1670
1670
|
ariaLabel: u.infoAriaLabel,
|
|
1671
1671
|
tooltip: u.infoTooltip ?? u.infoAriaLabel,
|
|
1672
|
-
onClick:
|
|
1672
|
+
onClick: p
|
|
1673
1673
|
}
|
|
1674
1674
|
)
|
|
1675
1675
|
}
|
|
@@ -1677,7 +1677,7 @@ function ae(e) {
|
|
|
1677
1677
|
/* @__PURE__ */ t(
|
|
1678
1678
|
Ht,
|
|
1679
1679
|
{
|
|
1680
|
-
columnHeaders: [
|
|
1680
|
+
columnHeaders: [h, f],
|
|
1681
1681
|
rows: [
|
|
1682
1682
|
{
|
|
1683
1683
|
label: "Symptom Score",
|
|
@@ -1702,7 +1702,7 @@ function ae(e) {
|
|
|
1702
1702
|
trendBar: i,
|
|
1703
1703
|
onCategoryClick: s
|
|
1704
1704
|
} = e, c = aa(
|
|
1705
|
-
|
|
1705
|
+
ke(r.totalScore),
|
|
1706
1706
|
o,
|
|
1707
1707
|
r.trendIndicatorPercent,
|
|
1708
1708
|
i
|
|
@@ -1787,7 +1787,7 @@ function ua(e) {
|
|
|
1787
1787
|
)
|
|
1788
1788
|
] }),
|
|
1789
1789
|
/* @__PURE__ */ t(
|
|
1790
|
-
|
|
1790
|
+
ne,
|
|
1791
1791
|
{
|
|
1792
1792
|
layout: "labAnalysis",
|
|
1793
1793
|
title: o,
|
|
@@ -1820,7 +1820,7 @@ function Ps({
|
|
|
1820
1820
|
infoTooltip: d,
|
|
1821
1821
|
downloadAriaLabel: m,
|
|
1822
1822
|
onInfoClick: b,
|
|
1823
|
-
onDownloadClick:
|
|
1823
|
+
onDownloadClick: g
|
|
1824
1824
|
}) {
|
|
1825
1825
|
return /* @__PURE__ */ l(T, { className: "flex flex-col", children: [
|
|
1826
1826
|
/* @__PURE__ */ t(
|
|
@@ -1844,7 +1844,7 @@ function Ps({
|
|
|
1844
1844
|
"button",
|
|
1845
1845
|
{
|
|
1846
1846
|
type: "button",
|
|
1847
|
-
onClick:
|
|
1847
|
+
onClick: g,
|
|
1848
1848
|
className: X,
|
|
1849
1849
|
"aria-label": m,
|
|
1850
1850
|
children: /* @__PURE__ */ t(dt, {})
|
|
@@ -1857,7 +1857,7 @@ function Ps({
|
|
|
1857
1857
|
/* @__PURE__ */ t(
|
|
1858
1858
|
oe,
|
|
1859
1859
|
{
|
|
1860
|
-
segments:
|
|
1860
|
+
segments: he,
|
|
1861
1861
|
indicatorPercent: n,
|
|
1862
1862
|
indicatorPosition: "segmentCenter"
|
|
1863
1863
|
}
|
|
@@ -1921,10 +1921,10 @@ function jt({ className: e = "" }) {
|
|
|
1921
1921
|
}
|
|
1922
1922
|
);
|
|
1923
1923
|
}
|
|
1924
|
-
function
|
|
1924
|
+
function we({ children: e }) {
|
|
1925
1925
|
return /* @__PURE__ */ t("div", { className: "min-w-0 overflow-hidden rounded-lg border border-[color:var(--mb-color-card-border)] bg-[color:var(--mb-color-card-bg)]", children: e });
|
|
1926
1926
|
}
|
|
1927
|
-
function
|
|
1927
|
+
function ye({ title: e, showInfo: r }) {
|
|
1928
1928
|
return /* @__PURE__ */ l(
|
|
1929
1929
|
"div",
|
|
1930
1930
|
{
|
|
@@ -1945,7 +1945,7 @@ function ga() {
|
|
|
1945
1945
|
}
|
|
1946
1946
|
);
|
|
1947
1947
|
}
|
|
1948
|
-
function
|
|
1948
|
+
function nt() {
|
|
1949
1949
|
return /* @__PURE__ */ t("span", { className: "inline-flex min-h-[1.5rem] min-w-[2.25rem] shrink-0 items-center justify-center rounded-[length:var(--mb-badge-radius)] bg-[color:var(--mb-color-badge-value-bg)] px-2", children: /* @__PURE__ */ t(x, { className: "h-3 w-7" }) });
|
|
1950
1950
|
}
|
|
1951
1951
|
function fr() {
|
|
@@ -1963,7 +1963,7 @@ function pa() {
|
|
|
1963
1963
|
return /* @__PURE__ */ t("div", { className: "mt-4 w-full min-w-0", children: /* @__PURE__ */ t(
|
|
1964
1964
|
oe,
|
|
1965
1965
|
{
|
|
1966
|
-
segments:
|
|
1966
|
+
segments: he,
|
|
1967
1967
|
indicatorPercent: 0,
|
|
1968
1968
|
indicatorPosition: "segmentCenter",
|
|
1969
1969
|
showIndicator: !1
|
|
@@ -1989,8 +1989,8 @@ function Bt({
|
|
|
1989
1989
|
children: a
|
|
1990
1990
|
}
|
|
1991
1991
|
),
|
|
1992
|
-
/* @__PURE__ */ t("div", { className: "flex justify-center self-center py-2.5", children: /* @__PURE__ */ t(
|
|
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(nt, {}) }),
|
|
1993
|
+
/* @__PURE__ */ t("div", { className: "flex justify-center self-center py-2.5", children: o === 0 ? /* @__PURE__ */ t(ga, {}) : /* @__PURE__ */ t(nt, {}) }),
|
|
1994
1994
|
o < r.length - 1 ? /* @__PURE__ */ t("div", { className: "col-span-full border-b border-gray-200" }) : null
|
|
1995
1995
|
] }, a))
|
|
1996
1996
|
] }),
|
|
@@ -2005,7 +2005,7 @@ function xa() {
|
|
|
2005
2005
|
{ label: "Previous Range" }
|
|
2006
2006
|
].map((r) => /* @__PURE__ */ l("div", { className: "flex items-center justify-between gap-3 py-2.5", children: [
|
|
2007
2007
|
/* @__PURE__ */ t("span", { className: "text-sm text-[color:var(--mb-color-text)]", children: r.label }),
|
|
2008
|
-
/* @__PURE__ */ t(
|
|
2008
|
+
/* @__PURE__ */ t(nt, {})
|
|
2009
2009
|
] }, r.label)) }),
|
|
2010
2010
|
/* @__PURE__ */ t(pa, {})
|
|
2011
2011
|
] });
|
|
@@ -2027,24 +2027,24 @@ function va({ markerSlots: e }) {
|
|
|
2027
2027
|
] });
|
|
2028
2028
|
}
|
|
2029
2029
|
const It = "ADRENAL";
|
|
2030
|
-
function
|
|
2030
|
+
function Be(e) {
|
|
2031
2031
|
if (e.variant === "labAnalysis") {
|
|
2032
2032
|
const { title: o = "ADRENAL – THYROID – PANCREAS", markerSlots: i = 4 } = e;
|
|
2033
|
-
return /* @__PURE__ */ l(
|
|
2034
|
-
/* @__PURE__ */ t(
|
|
2033
|
+
return /* @__PURE__ */ l(we, { children: [
|
|
2034
|
+
/* @__PURE__ */ t(ye, { title: o }),
|
|
2035
2035
|
/* @__PURE__ */ t(va, { markerSlots: i })
|
|
2036
2036
|
] });
|
|
2037
2037
|
}
|
|
2038
2038
|
if (e.variant === "labResults") {
|
|
2039
2039
|
const { title: o = It } = e;
|
|
2040
|
-
return /* @__PURE__ */ l(
|
|
2041
|
-
/* @__PURE__ */ t(
|
|
2040
|
+
return /* @__PURE__ */ l(we, { children: [
|
|
2041
|
+
/* @__PURE__ */ t(ye, { title: o, showInfo: !0 }),
|
|
2042
2042
|
/* @__PURE__ */ t(xa, {})
|
|
2043
2043
|
] });
|
|
2044
2044
|
}
|
|
2045
2045
|
const r = e.currentRangeLabel ?? "Current Range", n = e.previousRangeLabel ?? "Previous Range", a = e.title ?? It;
|
|
2046
|
-
return e.variant === "questionnaire" ? /* @__PURE__ */ l(
|
|
2047
|
-
/* @__PURE__ */ t(
|
|
2046
|
+
return e.variant === "questionnaire" ? /* @__PURE__ */ l(we, { children: [
|
|
2047
|
+
/* @__PURE__ */ t(ye, { title: a, showInfo: !0 }),
|
|
2048
2048
|
/* @__PURE__ */ t(
|
|
2049
2049
|
Bt,
|
|
2050
2050
|
{
|
|
@@ -2052,8 +2052,8 @@ function je(e) {
|
|
|
2052
2052
|
rowLabels: ["Symptom Score"]
|
|
2053
2053
|
}
|
|
2054
2054
|
)
|
|
2055
|
-
] }) : /* @__PURE__ */ l(
|
|
2056
|
-
/* @__PURE__ */ t(
|
|
2055
|
+
] }) : /* @__PURE__ */ l(we, { children: [
|
|
2056
|
+
/* @__PURE__ */ t(ye, { title: a }),
|
|
2057
2057
|
/* @__PURE__ */ t(
|
|
2058
2058
|
Bt,
|
|
2059
2059
|
{
|
|
@@ -2080,7 +2080,7 @@ const Dt = {
|
|
|
2080
2080
|
function gr(e) {
|
|
2081
2081
|
if (e.variant === "questionnaire") {
|
|
2082
2082
|
const {
|
|
2083
|
-
triadNumber:
|
|
2083
|
+
triadNumber: p,
|
|
2084
2084
|
heading: y,
|
|
2085
2085
|
aggregateScore: C,
|
|
2086
2086
|
categories: N,
|
|
@@ -2091,19 +2091,19 @@ function gr(e) {
|
|
|
2091
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: p }),
|
|
2095
2095
|
/* @__PURE__ */ t("h2", { className: "min-w-0 flex-1 text-xl font-bold leading-snug text-[color:var(--mb-color-text)]", children: y })
|
|
2096
2096
|
] }),
|
|
2097
2097
|
/* @__PURE__ */ t(
|
|
2098
2098
|
"p",
|
|
2099
2099
|
{
|
|
2100
|
-
className: `shrink-0 self-start text-3xl font-bold tabular-nums tracking-tight p-0 m-0 sm:self-auto ${Dt[
|
|
2100
|
+
className: `shrink-0 self-start text-3xl font-bold tabular-nums tracking-tight p-0 m-0 sm:self-auto ${Dt[p] ?? "text-sky-400"}`,
|
|
2101
2101
|
children: C
|
|
2102
2102
|
}
|
|
2103
2103
|
)
|
|
2104
2104
|
] }),
|
|
2105
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
|
+
ne,
|
|
2107
2107
|
{
|
|
2108
2108
|
layout: "questionnaire",
|
|
2109
2109
|
category: L,
|
|
@@ -2125,9 +2125,9 @@ function gr(e) {
|
|
|
2125
2125
|
previousRangeLabel: d = "Previous Range",
|
|
2126
2126
|
trendBar: m,
|
|
2127
2127
|
categories: b,
|
|
2128
|
-
onInfoClick:
|
|
2128
|
+
onInfoClick: g,
|
|
2129
2129
|
onCategoryClick: v
|
|
2130
|
-
} = e, u = b ?? [],
|
|
2130
|
+
} = e, u = b ?? [], h = u.map((p) => ke(p.totalScore));
|
|
2131
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: [
|
|
@@ -2140,7 +2140,7 @@ function gr(e) {
|
|
|
2140
2140
|
type: "button",
|
|
2141
2141
|
align: "center",
|
|
2142
2142
|
"aria-label": i,
|
|
2143
|
-
onClick:
|
|
2143
|
+
onClick: g,
|
|
2144
2144
|
className: `${X} shrink-0 !h-auto !min-h-0 !w-auto !min-w-0 !border-0 !bg-transparent !p-0.5 !shadow-none !gap-0 hover:!bg-transparent`,
|
|
2145
2145
|
children: /* @__PURE__ */ t(E, {})
|
|
2146
2146
|
}
|
|
@@ -2155,18 +2155,18 @@ function gr(e) {
|
|
|
2155
2155
|
}
|
|
2156
2156
|
)
|
|
2157
2157
|
] }),
|
|
2158
|
-
/* @__PURE__ */ t("div", { className: "grid grid-cols-1 gap-4 lg:grid-cols-2 xl:grid-cols-3", children: u.map((
|
|
2159
|
-
|
|
2158
|
+
/* @__PURE__ */ t("div", { className: "grid grid-cols-1 gap-4 lg:grid-cols-2 xl:grid-cols-3", children: u.map((p) => /* @__PURE__ */ t(
|
|
2159
|
+
ne,
|
|
2160
2160
|
{
|
|
2161
2161
|
layout: "triadResiliency",
|
|
2162
|
-
category:
|
|
2162
|
+
category: p,
|
|
2163
2163
|
currentRangeLabel: c,
|
|
2164
2164
|
previousRangeLabel: d,
|
|
2165
|
-
siblingTotals:
|
|
2165
|
+
siblingTotals: h,
|
|
2166
2166
|
trendBar: m,
|
|
2167
2167
|
onCategoryClick: v
|
|
2168
2168
|
},
|
|
2169
|
-
|
|
2169
|
+
p.title
|
|
2170
2170
|
)) })
|
|
2171
2171
|
] });
|
|
2172
2172
|
}
|
|
@@ -2197,7 +2197,7 @@ function wa({
|
|
|
2197
2197
|
] });
|
|
2198
2198
|
}
|
|
2199
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
|
|
2200
|
+
function Xe({
|
|
2201
2201
|
Icon: e,
|
|
2202
2202
|
label: r,
|
|
2203
2203
|
badge: n,
|
|
@@ -2223,9 +2223,9 @@ function La({
|
|
|
2223
2223
|
labsRowLabel: d,
|
|
2224
2224
|
labsLastLabel: m,
|
|
2225
2225
|
wearableRowLabel: b,
|
|
2226
|
-
wearableValueLabel:
|
|
2226
|
+
wearableValueLabel: g
|
|
2227
2227
|
}) {
|
|
2228
|
-
const v = i ?? o, u = !!(s && c),
|
|
2228
|
+
const v = i ?? o, u = !!(s && c), h = !!(d && m), f = !!(b && g), p = u || h || f;
|
|
2229
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: [
|
|
@@ -2255,17 +2255,17 @@ function La({
|
|
|
2255
2255
|
showIndicator: !1
|
|
2256
2256
|
}
|
|
2257
2257
|
),
|
|
2258
|
-
|
|
2258
|
+
p ? /* @__PURE__ */ l("ul", { className: "list-none p-0 mx-0 mb-0 mt-4", children: [
|
|
2259
2259
|
u ? /* @__PURE__ */ t(
|
|
2260
|
-
|
|
2260
|
+
Xe,
|
|
2261
2261
|
{
|
|
2262
2262
|
Icon: ct,
|
|
2263
2263
|
label: s,
|
|
2264
2264
|
badge: c
|
|
2265
2265
|
}
|
|
2266
2266
|
) : null,
|
|
2267
|
-
|
|
2268
|
-
|
|
2267
|
+
h ? /* @__PURE__ */ t(
|
|
2268
|
+
Xe,
|
|
2269
2269
|
{
|
|
2270
2270
|
Icon: cr,
|
|
2271
2271
|
label: d,
|
|
@@ -2273,13 +2273,13 @@ function La({
|
|
|
2273
2273
|
bordered: u
|
|
2274
2274
|
}
|
|
2275
2275
|
) : null,
|
|
2276
|
-
|
|
2277
|
-
|
|
2276
|
+
f ? /* @__PURE__ */ t(
|
|
2277
|
+
Xe,
|
|
2278
2278
|
{
|
|
2279
2279
|
Icon: sr,
|
|
2280
2280
|
label: b,
|
|
2281
|
-
badge:
|
|
2282
|
-
bordered: u ||
|
|
2281
|
+
badge: g,
|
|
2282
|
+
bordered: u || h
|
|
2283
2283
|
}
|
|
2284
2284
|
) : null
|
|
2285
2285
|
] }) : null
|
|
@@ -2420,7 +2420,7 @@ const Ma = {
|
|
|
2420
2420
|
moderate: 100 / 3 * 1.5,
|
|
2421
2421
|
high: 100 / 3 * 2.5
|
|
2422
2422
|
};
|
|
2423
|
-
function
|
|
2423
|
+
function Ve(e) {
|
|
2424
2424
|
return `${e.min} - ${e.max}`;
|
|
2425
2425
|
}
|
|
2426
2426
|
function ja(e, r) {
|
|
@@ -2465,9 +2465,9 @@ function js({
|
|
|
2465
2465
|
className: "mb-2.5 grid gap-x-0.5 gap-y-0.5 text-center text-[10px] font-semibold leading-tight text-[color:var(--mb-color-text-muted)] sm:gap-1 sm:text-[13px]",
|
|
2466
2466
|
style: { gridTemplateColumns: "repeat(3, minmax(0, 1fr))" },
|
|
2467
2467
|
children: [
|
|
2468
|
-
/* @__PURE__ */ t("span", { className: "min-w-0 break-words px-0.5", children:
|
|
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: Ve(o.low) }),
|
|
2469
|
+
/* @__PURE__ */ t("span", { className: "min-w-0 break-words px-0.5", children: Ve(o.moderate) }),
|
|
2470
|
+
/* @__PURE__ */ t("span", { className: "min-w-0 break-words px-0.5", children: Ve(o.high) })
|
|
2471
2471
|
]
|
|
2472
2472
|
}
|
|
2473
2473
|
),
|
|
@@ -2496,7 +2496,7 @@ function Ba({ heading: e, children: r }) {
|
|
|
2496
2496
|
);
|
|
2497
2497
|
}
|
|
2498
2498
|
function Ia({ sections: e }) {
|
|
2499
|
-
return e.length === 0 ? null : /* @__PURE__ */ t(
|
|
2499
|
+
return e.length === 0 ? null : /* @__PURE__ */ t(ae, { children: e.map((r) => /* @__PURE__ */ t(Ba, { heading: r.title, children: /* @__PURE__ */ t("div", { className: "space-y-3", children: r.blocks.map((n, a) => n.type === "paragraph" ? /* @__PURE__ */ t("p", { className: "m-0", children: n.text }, a) : n.type === "subheading" ? /* @__PURE__ */ t("p", { className: "m-0 text-sm font-bold", children: n.text }, a) : n.type === "list" ? /* @__PURE__ */ t("ul", { className: "m-0 list-disc space-y-1.5 pl-5", children: n.items.map((o, i) => typeof o == "string" ? /* @__PURE__ */ t("li", { className: "text-sm leading-relaxed", children: o }, i) : /* @__PURE__ */ l("li", { className: "text-sm leading-relaxed", children: [
|
|
2500
2500
|
o.text,
|
|
2501
2501
|
o.children && o.children.length > 0 && /* @__PURE__ */ t("ul", { className: "mt-1.5 list-disc pl-5", children: o.children.map((s, c) => /* @__PURE__ */ t("li", { children: s }, c)) })
|
|
2502
2502
|
] }, i)) }, a) : null) }) }, r.title)) });
|
|
@@ -2614,39 +2614,39 @@ function Fa({
|
|
|
2614
2614
|
organKey: m,
|
|
2615
2615
|
organContent: b
|
|
2616
2616
|
}) {
|
|
2617
|
-
var ie,
|
|
2618
|
-
const
|
|
2617
|
+
var ie, ge, pe, xe, ve, se, J, xt, vt, wt;
|
|
2618
|
+
const g = at(), [v, u] = H(!1), [h, f] = H(e), [p, y] = H(!1), C = Ea(), N = m && b ? b[m] : void 0, w = s != null ? {
|
|
2619
2619
|
...s,
|
|
2620
2620
|
currentDateLabel: ((ie = s.currentDateLabel) == null ? void 0 : ie.trim()) || (c == null ? void 0 : c.trim()) || void 0
|
|
2621
|
-
} : void 0, P = ((
|
|
2621
|
+
} : void 0, P = ((ge = w == null ? void 0 : w.name) == null ? void 0 : ge.trim()) || n.trim() || "Category", A = Da(a, P), S = d != null && ((pe = w == null ? void 0 : w.name) != null && pe.trim()) ? `Triad ${d}: ${w.name.trim()}` : d != null ? `Triad ${d}` : n, L = (xe = w == null ? void 0 : w.previousSymptomScore) == null ? void 0 : xe.trim(), z = (ve = w == null ? void 0 : w.previousLabScore) == null ? void 0 : ve.trim(), G = (se = w == null ? void 0 : w.previousTotalScore) == null ? void 0 : se.trim(), D = !!(L && L !== "—" && L !== "-" && L !== "–") || !!(z && z !== "—" && z !== "-" && z !== "–") || !!(G && G !== "—" && G !== "-" && G !== "–"), q = ((J = w == null ? void 0 : w.previousDateLabel) == null ? void 0 : J.trim()) || "Previous", $ = ((xt = w == null ? void 0 : w.currentDateLabel) == null ? void 0 : xt.trim()) || "Current", ze = w != null && !!((vt = w.currentDateLabel) != null && vt.trim()) && !!((wt = w.previousDateLabel) != null && wt.trim()) && D;
|
|
2622
2622
|
return V(() => {
|
|
2623
2623
|
y(!0);
|
|
2624
2624
|
}, []), V(() => {
|
|
2625
2625
|
if (e) {
|
|
2626
|
-
|
|
2627
|
-
const
|
|
2626
|
+
f(!0);
|
|
2627
|
+
const Oe = requestAnimationFrame(() => {
|
|
2628
2628
|
requestAnimationFrame(() => u(!0));
|
|
2629
2629
|
});
|
|
2630
|
-
return () => cancelAnimationFrame(
|
|
2630
|
+
return () => cancelAnimationFrame(Oe);
|
|
2631
2631
|
}
|
|
2632
2632
|
u(!1);
|
|
2633
2633
|
const O = window.setTimeout(() => {
|
|
2634
|
-
|
|
2634
|
+
f(!1);
|
|
2635
2635
|
}, 300);
|
|
2636
2636
|
return () => window.clearTimeout(O);
|
|
2637
2637
|
}, [e]), V(() => {
|
|
2638
|
-
if (!
|
|
2639
|
-
const O = (
|
|
2640
|
-
|
|
2638
|
+
if (!h) return;
|
|
2639
|
+
const O = (Oe) => {
|
|
2640
|
+
Oe.key === "Escape" && r();
|
|
2641
2641
|
};
|
|
2642
2642
|
return window.addEventListener("keydown", O), () => window.removeEventListener("keydown", O);
|
|
2643
|
-
}, [
|
|
2644
|
-
if (!
|
|
2643
|
+
}, [h, r]), V(() => {
|
|
2644
|
+
if (!h) return;
|
|
2645
2645
|
const O = document.body.style.overflow;
|
|
2646
2646
|
return document.body.style.overflow = "hidden", () => {
|
|
2647
2647
|
document.body.style.overflow = O;
|
|
2648
2648
|
};
|
|
2649
|
-
}, [
|
|
2649
|
+
}, [h]), !p || typeof document > "u" || !h ? null : Jt(
|
|
2650
2650
|
/* @__PURE__ */ l(
|
|
2651
2651
|
"div",
|
|
2652
2652
|
{
|
|
@@ -2672,7 +2672,7 @@ function Fa({
|
|
|
2672
2672
|
{
|
|
2673
2673
|
role: "dialog",
|
|
2674
2674
|
"aria-modal": "true",
|
|
2675
|
-
"aria-labelledby":
|
|
2675
|
+
"aria-labelledby": g,
|
|
2676
2676
|
className: "absolute right-0 top-0 z-10 flex h-full w-full max-w-[min(100vw,72rem)] shrink-0 flex-col border border-solid border-[color:var(--mb-color-card-border,#e5e7eb)] shadow-xl transition-transform duration-300 ease-out",
|
|
2677
2677
|
style: {
|
|
2678
2678
|
transform: v ? "translateX(0)" : "translateX(100%)",
|
|
@@ -2692,7 +2692,7 @@ function Fa({
|
|
|
2692
2692
|
/* @__PURE__ */ t(
|
|
2693
2693
|
"h2",
|
|
2694
2694
|
{
|
|
2695
|
-
id:
|
|
2695
|
+
id: g,
|
|
2696
2696
|
className: "m-0 min-w-0 flex-1 text-base font-semibold leading-snug sm:text-lg",
|
|
2697
2697
|
style: { color: "var(--mb-color-text, #111827)" },
|
|
2698
2698
|
children: S
|
|
@@ -2738,8 +2738,8 @@ function Fa({
|
|
|
2738
2738
|
),
|
|
2739
2739
|
/* @__PURE__ */ t("div", { className: "min-h-0 flex-1 overflow-y-auto px-4 py-4 sm:px-6 sm:py-5", children: /* @__PURE__ */ l("div", { className: "flex flex-col gap-5 lg:grid lg:grid-cols-[minmax(0,42%)_minmax(0,1fr)] lg:items-start lg:gap-8", children: [
|
|
2740
2740
|
/* @__PURE__ */ l("div", { className: "flex min-w-0 flex-col gap-4", children: [
|
|
2741
|
-
w ? /* @__PURE__ */ t("div", { className: "min-w-0", children:
|
|
2742
|
-
|
|
2741
|
+
w ? /* @__PURE__ */ t("div", { className: "min-w-0", children: ze ? /* @__PURE__ */ t(
|
|
2742
|
+
ne,
|
|
2743
2743
|
{
|
|
2744
2744
|
layout: "triadResiliency",
|
|
2745
2745
|
category: {
|
|
@@ -2755,10 +2755,10 @@ function Fa({
|
|
|
2755
2755
|
},
|
|
2756
2756
|
currentRangeLabel: $,
|
|
2757
2757
|
previousRangeLabel: q,
|
|
2758
|
-
siblingTotals: [
|
|
2758
|
+
siblingTotals: [ke(w.totalScore)]
|
|
2759
2759
|
}
|
|
2760
2760
|
) : /* @__PURE__ */ t(
|
|
2761
|
-
|
|
2761
|
+
ne,
|
|
2762
2762
|
{
|
|
2763
2763
|
layout: "metricRows",
|
|
2764
2764
|
title: w.name,
|
|
@@ -2852,9 +2852,9 @@ function Ga({
|
|
|
2852
2852
|
triadNumber: d,
|
|
2853
2853
|
organContent: m
|
|
2854
2854
|
}) {
|
|
2855
|
-
var
|
|
2856
|
-
const [b,
|
|
2857
|
-
return /* @__PURE__ */ l(
|
|
2855
|
+
var f;
|
|
2856
|
+
const [b, g] = H(!1), v = (o == null ? void 0 : o.bodyParagraphs) ?? [], u = ((f = o == null ? void 0 : o.panelTitle) == null ? void 0 : f.trim()) || e, h = o == null ? void 0 : o.organKey;
|
|
2857
|
+
return /* @__PURE__ */ l(ae, { children: [
|
|
2858
2858
|
/* @__PURE__ */ l(
|
|
2859
2859
|
M,
|
|
2860
2860
|
{
|
|
@@ -2862,7 +2862,7 @@ function Ga({
|
|
|
2862
2862
|
variant: n,
|
|
2863
2863
|
align: "center",
|
|
2864
2864
|
className: a,
|
|
2865
|
-
onClick: () =>
|
|
2865
|
+
onClick: () => g(!0),
|
|
2866
2866
|
"aria-expanded": b,
|
|
2867
2867
|
"aria-haspopup": "dialog",
|
|
2868
2868
|
children: [
|
|
@@ -2875,7 +2875,7 @@ function Ga({
|
|
|
2875
2875
|
Fa,
|
|
2876
2876
|
{
|
|
2877
2877
|
open: b,
|
|
2878
|
-
onClose: () =>
|
|
2878
|
+
onClose: () => g(!1),
|
|
2879
2879
|
title: u,
|
|
2880
2880
|
trendStatus: r,
|
|
2881
2881
|
introParagraphs: i,
|
|
@@ -2883,7 +2883,7 @@ function Ga({
|
|
|
2883
2883
|
rowData: s,
|
|
2884
2884
|
labsDateLabel: c,
|
|
2885
2885
|
triadNumber: d,
|
|
2886
|
-
organKey:
|
|
2886
|
+
organKey: h,
|
|
2887
2887
|
organContent: m
|
|
2888
2888
|
}
|
|
2889
2889
|
)
|
|
@@ -2900,7 +2900,7 @@ function le({
|
|
|
2900
2900
|
metricSlots: s = 3,
|
|
2901
2901
|
layoutBreakpoint: c
|
|
2902
2902
|
}) {
|
|
2903
|
-
const d = e.infoTooltip ?? e.infoAriaLabel, m = e.status === "optimal", b = e.status === "high",
|
|
2903
|
+
const d = e.infoTooltip ?? e.infoAriaLabel, m = e.status === "optimal", b = e.status === "high", g = e.status === "low", v = m ? "border-[#3a9e6a]" : b || g ? "border-[#d94040]" : "border-[#e09a1a]", u = m ? "bg-[#e8f6ee]" : b || g ? "bg-[#fdecec]" : "bg-[#fff8eb]", h = m ? "OPTIMAL" : b ? "HIGH" : g ? "LOW" : "TRENDING", f = m ? "trendRowStatusOptimal" : b ? "trendRowStatusHigh" : g ? "trendRowStatusLow" : "trendRowStatusTrending", p = s === 2, y = c ?? (p ? "2xl" : "xl"), C = y === "2xl" ? "2xl:flex-row 2xl:items-stretch" : "xl:flex-row xl:items-stretch", N = y === "2xl" ? "2xl:shrink-0 2xl:w-[14rem]" : "xl:shrink-0 xl:w-[14rem]", w = y === "2xl" ? "2xl:shrink-0 2xl:w-[20rem]" : "xl:shrink-0 xl:w-[20rem]", P = p ? y === "2xl" ? "sm:grid-cols-2 2xl:mx-auto 2xl:w-full 2xl:max-w-[50rem] 2xl:border-t-0 2xl:px-8 2xl:py-1" : "sm:grid-cols-2 xl:mx-auto xl:w-full xl:max-w-[50rem] xl:border-t-0 xl:px-8 xl:py-1" : y === "2xl" ? "sm:grid-cols-3 2xl:border-t-0 2xl:px-16 2xl:py-1" : "sm:grid-cols-3 xl:border-t-0 xl:px-16 xl:py-1", A = p ? y === "2xl" ? "2xl:shrink-0 2xl:w-[9rem]" : "xl:shrink-0 xl:w-[9rem]" : y === "2xl" ? "2xl:shrink-0 2xl:w-[7rem]" : "xl:shrink-0 xl:w-[7rem]", S = (L, z, G) => /* @__PURE__ */ l("span", { className: "flex min-w-0 max-w-full items-center gap-1.5", children: [
|
|
2904
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
|
_,
|
|
@@ -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 ${p ? w : N} ${u}`,
|
|
2923
2923
|
children: [
|
|
2924
2924
|
/* @__PURE__ */ t(Z, { content: d, children: /* @__PURE__ */ t(
|
|
2925
2925
|
M,
|
|
@@ -2931,7 +2931,7 @@ function le({
|
|
|
2931
2931
|
children: /* @__PURE__ */ t(E, { className: "size-4 text-[color:var(--mb-color-text-muted)]" })
|
|
2932
2932
|
}
|
|
2933
2933
|
) }),
|
|
2934
|
-
/* @__PURE__ */ t("span", { className: "min-w-0 flex-1
|
|
2934
|
+
/* @__PURE__ */ t("span", { className: "min-w-0 flex-1 whitespace-normal break-normal text-xs font-bold uppercase leading-snug tracking-wide text-[color:var(--mb-color-text)] sm:text-sm", children: e.name })
|
|
2935
2935
|
]
|
|
2936
2936
|
}
|
|
2937
2937
|
),
|
|
@@ -2940,8 +2940,14 @@ function le({
|
|
|
2940
2940
|
{
|
|
2941
2941
|
className: `grid min-w-0 flex-1 grid-cols-1 gap-y-2 border-t border-[color:var(--mb-color-card-border)] bg-[color:var(--mb-color-card-bg)] px-3 py-2 sm:gap-x-3 sm:gap-y-0 ${P}`,
|
|
2942
2942
|
children: [
|
|
2943
|
-
/* @__PURE__ */ t("div", { className: `flex min-w-0 ${
|
|
2944
|
-
/* @__PURE__ */ t(
|
|
2943
|
+
/* @__PURE__ */ t("div", { className: `flex min-w-0 ${p ? "justify-center" : "justify-start"}`, children: S(i[0], e.symptomScore) }),
|
|
2944
|
+
/* @__PURE__ */ t(
|
|
2945
|
+
"div",
|
|
2946
|
+
{
|
|
2947
|
+
className: `flex min-w-0 ${p ? "justify-center" : "justify-start ml-0 md:ml-16"}`,
|
|
2948
|
+
children: S(i[1], e.labScore, p)
|
|
2949
|
+
}
|
|
2950
|
+
),
|
|
2945
2951
|
s === 3 ? /* @__PURE__ */ t("div", { className: "flex min-w-0 justify-start sm:justify-end", children: S(i[2], e.totalScore, !0) }) : null
|
|
2946
2952
|
]
|
|
2947
2953
|
}
|
|
@@ -2949,9 +2955,9 @@ function le({
|
|
|
2949
2955
|
/* @__PURE__ */ t(
|
|
2950
2956
|
Ga,
|
|
2951
2957
|
{
|
|
2952
|
-
badgeLabel:
|
|
2958
|
+
badgeLabel: h,
|
|
2953
2959
|
trendStatus: e.status,
|
|
2954
|
-
trendStatusVariant:
|
|
2960
|
+
trendStatusVariant: f,
|
|
2955
2961
|
className: `flex !self-stretch !rounded-none rounded-br-[length:var(--mb-radius-button)] rounded-tr-[length:var(--mb-radius-button)] ${A}`,
|
|
2956
2962
|
statusExplanationPanel: e.statusExplanationPanel,
|
|
2957
2963
|
panelIntroParagraphs: r,
|
|
@@ -2976,7 +2982,7 @@ function I({ title: e, subtitle: r, className: n = "" }) {
|
|
|
2976
2982
|
r ? /* @__PURE__ */ t("p", { className: "max-w-3xl text-sm leading-relaxed text-[color:var(--mb-color-text-muted)] m-0 p-0", children: r }) : null
|
|
2977
2983
|
] });
|
|
2978
2984
|
}
|
|
2979
|
-
const Xa = ["Normal Range", "Current Range", "
|
|
2985
|
+
const Xa = ["Normal Range", "Current Range", "Indicator"], Ot = ["high", "low", "normal"], Va = {
|
|
2980
2986
|
high: "Alert High",
|
|
2981
2987
|
low: "Alert Low",
|
|
2982
2988
|
normal: "High Normal"
|
|
@@ -3001,14 +3007,14 @@ function Bs({ content: e }) {
|
|
|
3001
3007
|
/* @__PURE__ */ t(I, { title: r.title, subtitle: r.subtitle }),
|
|
3002
3008
|
/* @__PURE__ */ t("div", { className: "flex min-w-0 flex-col gap-6", children: o.map(({ category: i, title: s, rows: c }) => /* @__PURE__ */ l(T, { className: "min-w-0", children: [
|
|
3003
3009
|
/* @__PURE__ */ t("h2", { className: "mb-4 m-0 text-lg font-bold text-[color:var(--mb-color-text)]", children: s }),
|
|
3004
|
-
/* @__PURE__ */ t("div", { className: "space-y-2", children: c.map((d
|
|
3010
|
+
/* @__PURE__ */ t("div", { className: "space-y-2", children: c.map((d) => /* @__PURE__ */ t(
|
|
3005
3011
|
le,
|
|
3006
3012
|
{
|
|
3007
3013
|
row: d,
|
|
3008
3014
|
metricLabels: Xa,
|
|
3009
3015
|
layoutBreakpoint: "2xl"
|
|
3010
3016
|
},
|
|
3011
|
-
|
|
3017
|
+
d.name
|
|
3012
3018
|
)) })
|
|
3013
3019
|
] }, i)) })
|
|
3014
3020
|
] });
|
|
@@ -3044,7 +3050,7 @@ function Qa({
|
|
|
3044
3050
|
] });
|
|
3045
3051
|
}
|
|
3046
3052
|
const xr = qt({});
|
|
3047
|
-
function
|
|
3053
|
+
function Ie() {
|
|
3048
3054
|
return ot(xr);
|
|
3049
3055
|
}
|
|
3050
3056
|
const Ka = xr.Provider;
|
|
@@ -3096,7 +3102,7 @@ function mt({
|
|
|
3096
3102
|
children: [
|
|
3097
3103
|
/* @__PURE__ */ t("span", { className: "@min-[36rem]:hidden", children: d }),
|
|
3098
3104
|
/* @__PURE__ */ t("span", { className: "hidden @min-[36rem]:inline", children: i }),
|
|
3099
|
-
/* @__PURE__ */ t(
|
|
3105
|
+
/* @__PURE__ */ t(re, { className: "size-4 shrink-0", "aria-hidden": !0 })
|
|
3100
3106
|
]
|
|
3101
3107
|
}
|
|
3102
3108
|
)
|
|
@@ -3108,7 +3114,7 @@ function Ja({
|
|
|
3108
3114
|
data: e,
|
|
3109
3115
|
organContent: r
|
|
3110
3116
|
}) {
|
|
3111
|
-
const { onNavigateToNavItem: n } =
|
|
3117
|
+
const { onNavigateToNavItem: n } = Ie(), a = e.infoTooltip ?? e.infoAriaLabel;
|
|
3112
3118
|
return /* @__PURE__ */ l(T, { className: "min-w-0", children: [
|
|
3113
3119
|
/* @__PURE__ */ t(
|
|
3114
3120
|
mt,
|
|
@@ -3202,7 +3208,7 @@ function to({
|
|
|
3202
3208
|
data: e,
|
|
3203
3209
|
organContent: r
|
|
3204
3210
|
}) {
|
|
3205
|
-
const { onNavigateToNavItem: n } =
|
|
3211
|
+
const { onNavigateToNavItem: n } = Ie(), a = e.infoTooltip ?? e.infoAriaLabel;
|
|
3206
3212
|
return /* @__PURE__ */ l(T, { className: "min-w-0", children: [
|
|
3207
3213
|
/* @__PURE__ */ t(
|
|
3208
3214
|
mt,
|
|
@@ -3341,7 +3347,7 @@ function oo({
|
|
|
3341
3347
|
data: e,
|
|
3342
3348
|
organContent: r
|
|
3343
3349
|
}) {
|
|
3344
|
-
const { onNavigateToNavItem: n } =
|
|
3350
|
+
const { onNavigateToNavItem: n } = Ie(), [a, o] = H(0), i = Math.min(a, Math.max(0, e.triads.length - 1)), s = e.categoriesByTriadIndex[i] ?? [], c = e.infoTooltip ?? e.infoAriaLabel, d = e.triads[i], m = (d == null ? void 0 : d.triadNumber) === 1 ? no : void 0;
|
|
3345
3351
|
return /* @__PURE__ */ l(T, { className: "min-w-0", children: [
|
|
3346
3352
|
/* @__PURE__ */ t(
|
|
3347
3353
|
mt,
|
|
@@ -3385,7 +3391,7 @@ const lo = {
|
|
|
3385
3391
|
"export-reports": dt
|
|
3386
3392
|
};
|
|
3387
3393
|
function Is({ content: e }) {
|
|
3388
|
-
const { onExportReports: r } =
|
|
3394
|
+
const { onExportReports: r } = Ie(), [n, a] = H(!1);
|
|
3389
3395
|
if (!e) return null;
|
|
3390
3396
|
const {
|
|
3391
3397
|
pageHeader: o,
|
|
@@ -3395,7 +3401,7 @@ function Is({ content: e }) {
|
|
|
3395
3401
|
totalPredictiveTrends: d,
|
|
3396
3402
|
alertLabSummaryTable: m,
|
|
3397
3403
|
organContent: b
|
|
3398
|
-
} = e,
|
|
3404
|
+
} = e, g = d ?? _a, v = i == null ? void 0 : i.actions.find((y) => y.id === "export-reports"), u = v ? lo[v.id] : null, h = !!(s || c), f = !!(v && u && r), p = async () => {
|
|
3399
3405
|
if (!(!r || n))
|
|
3400
3406
|
try {
|
|
3401
3407
|
a(!0), await r();
|
|
@@ -3413,13 +3419,13 @@ function Is({ content: e }) {
|
|
|
3413
3419
|
className: "min-w-0 flex-1"
|
|
3414
3420
|
}
|
|
3415
3421
|
),
|
|
3416
|
-
|
|
3422
|
+
f && v && u ? /* @__PURE__ */ l(
|
|
3417
3423
|
M,
|
|
3418
3424
|
{
|
|
3419
3425
|
type: "button",
|
|
3420
3426
|
variant: "default",
|
|
3421
3427
|
className: br,
|
|
3422
|
-
onClick:
|
|
3428
|
+
onClick: p,
|
|
3423
3429
|
disabled: n,
|
|
3424
3430
|
children: [
|
|
3425
3431
|
/* @__PURE__ */ t(u, { className: "size-4 shrink-0" }),
|
|
@@ -3428,7 +3434,7 @@ function Is({ content: e }) {
|
|
|
3428
3434
|
}
|
|
3429
3435
|
) : null
|
|
3430
3436
|
] }),
|
|
3431
|
-
|
|
3437
|
+
h ? /* @__PURE__ */ l(
|
|
3432
3438
|
"div",
|
|
3433
3439
|
{
|
|
3434
3440
|
className: `grid min-w-0 grid-cols-1 gap-4 xl:gap-6 [&>*]:min-w-0 ${s && c ? "xl:grid-cols-[minmax(0,1fr)_minmax(0,1fr)]" : ""}`,
|
|
@@ -3438,13 +3444,13 @@ function Is({ content: e }) {
|
|
|
3438
3444
|
]
|
|
3439
3445
|
}
|
|
3440
3446
|
) : 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:
|
|
3447
|
+
/* @__PURE__ */ t("div", { className: "xl:hidden", children: /* @__PURE__ */ t(to, { data: g, organContent: b }) }),
|
|
3448
|
+
/* @__PURE__ */ t("div", { className: "hidden xl:block", children: /* @__PURE__ */ t(oo, { data: g, organContent: b }) }),
|
|
3443
3449
|
m ? /* @__PURE__ */ t(Ja, { data: m, organContent: b }) : null
|
|
3444
3450
|
] });
|
|
3445
3451
|
}
|
|
3446
|
-
const
|
|
3447
|
-
function
|
|
3452
|
+
const Ze = "flex min-h-10 items-center justify-between gap-4 py-3.5 text-sm leading-5 text-[color:var(--mb-color-text)]", Ft = "border-t border-[color:var(--mb-color-card-border)]", We = "flex min-w-0 flex-1 items-center gap-3", Ue = "flex size-5 shrink-0 items-center justify-center text-[color:var(--mb-color-text-muted)]", Qe = "size-[18px] shrink-0";
|
|
3453
|
+
function Ke({ titleWidthClass: e }) {
|
|
3448
3454
|
return /* @__PURE__ */ t("div", { className: "@container mb-5 w-full min-w-0", children: /* @__PURE__ */ l("div", { className: "flex w-full min-w-0 flex-wrap items-center gap-x-6 gap-y-3 @xl:min-h-9 @xl:flex-nowrap @xl:justify-between", children: [
|
|
3449
3455
|
/* @__PURE__ */ l("div", { className: "flex min-w-0 shrink-0 items-center gap-2", children: [
|
|
3450
3456
|
/* @__PURE__ */ t(x, { className: `h-7 rounded ${e}` }),
|
|
@@ -3509,23 +3515,23 @@ function so({
|
|
|
3509
3515
|
] }),
|
|
3510
3516
|
/* @__PURE__ */ t(Rn, { score: 0, showIndicator: !1 }),
|
|
3511
3517
|
/* @__PURE__ */ l("ul", { className: "list-none p-0 mx-0 mb-0 mt-4", children: [
|
|
3512
|
-
/* @__PURE__ */ l("li", { className:
|
|
3513
|
-
/* @__PURE__ */ l("span", { className:
|
|
3514
|
-
/* @__PURE__ */ t("span", { className:
|
|
3518
|
+
/* @__PURE__ */ l("li", { className: Ze, children: [
|
|
3519
|
+
/* @__PURE__ */ l("span", { className: We, children: [
|
|
3520
|
+
/* @__PURE__ */ t("span", { className: Ue, "aria-hidden": !0, children: /* @__PURE__ */ t(ct, { className: Qe }) }),
|
|
3515
3521
|
/* @__PURE__ */ t("span", { className: "min-w-0 truncate", children: "Last Questionnaire" })
|
|
3516
3522
|
] }),
|
|
3517
3523
|
/* @__PURE__ */ t(_, { variant: "value", children: /* @__PURE__ */ t(x, { className: "h-3.5 w-16" }) })
|
|
3518
3524
|
] }),
|
|
3519
|
-
/* @__PURE__ */ l("li", { className: `${
|
|
3520
|
-
/* @__PURE__ */ l("span", { className:
|
|
3521
|
-
/* @__PURE__ */ t("span", { className:
|
|
3525
|
+
/* @__PURE__ */ l("li", { className: `${Ze} ${Ft}`, children: [
|
|
3526
|
+
/* @__PURE__ */ l("span", { className: We, children: [
|
|
3527
|
+
/* @__PURE__ */ t("span", { className: Ue, "aria-hidden": !0, children: /* @__PURE__ */ t(cr, { className: Qe }) }),
|
|
3522
3528
|
/* @__PURE__ */ t("span", { className: "min-w-0 truncate", children: "Last Labs" })
|
|
3523
3529
|
] }),
|
|
3524
3530
|
/* @__PURE__ */ t(_, { variant: "value", children: /* @__PURE__ */ t(x, { className: "h-3.5 w-20" }) })
|
|
3525
3531
|
] }),
|
|
3526
|
-
/* @__PURE__ */ l("li", { className: `${
|
|
3527
|
-
/* @__PURE__ */ l("span", { className:
|
|
3528
|
-
/* @__PURE__ */ t("span", { className:
|
|
3532
|
+
/* @__PURE__ */ l("li", { className: `${Ze} ${Ft}`, children: [
|
|
3533
|
+
/* @__PURE__ */ l("span", { className: We, children: [
|
|
3534
|
+
/* @__PURE__ */ t("span", { className: Ue, "aria-hidden": !0, children: /* @__PURE__ */ t(sr, { className: Qe }) }),
|
|
3529
3535
|
/* @__PURE__ */ t("span", { className: "min-w-0 truncate", children: "Wearable" })
|
|
3530
3536
|
] }),
|
|
3531
3537
|
/* @__PURE__ */ t(_, { variant: "value", children: /* @__PURE__ */ t(x, { className: "h-3.5 w-12" }) })
|
|
@@ -3541,7 +3547,7 @@ function so({
|
|
|
3541
3547
|
] })
|
|
3542
3548
|
] }),
|
|
3543
3549
|
/* @__PURE__ */ l(T, { children: [
|
|
3544
|
-
/* @__PURE__ */ t(
|
|
3550
|
+
/* @__PURE__ */ t(Ke, { titleWidthClass: "w-52 max-w-full sm:w-64" }),
|
|
3545
3551
|
/* @__PURE__ */ t("div", { className: "flex gap-3 overflow-x-auto pb-0.5", "data-testid": "dashboard-skeleton-triad-strip", children: [0, 1, 2, 3, 4].map((r) => /* @__PURE__ */ l(
|
|
3546
3552
|
"div",
|
|
3547
3553
|
{
|
|
@@ -3569,11 +3575,11 @@ function so({
|
|
|
3569
3575
|
)
|
|
3570
3576
|
] }),
|
|
3571
3577
|
/* @__PURE__ */ l(T, { children: [
|
|
3572
|
-
/* @__PURE__ */ t(
|
|
3578
|
+
/* @__PURE__ */ t(Ke, { titleWidthClass: "w-48 max-w-full sm:w-56" }),
|
|
3573
3579
|
/* @__PURE__ */ t("div", { className: "space-y-2", "data-testid": "dashboard-skeleton-alert-rows", children: [0, 1, 2].map((r) => /* @__PURE__ */ t(Gt, {}, r)) })
|
|
3574
3580
|
] }),
|
|
3575
3581
|
/* @__PURE__ */ l(T, { className: "min-w-0", children: [
|
|
3576
|
-
/* @__PURE__ */ t(
|
|
3582
|
+
/* @__PURE__ */ t(Ke, { titleWidthClass: "w-64 max-w-full sm:w-72" }),
|
|
3577
3583
|
/* @__PURE__ */ t(
|
|
3578
3584
|
"div",
|
|
3579
3585
|
{
|
|
@@ -3619,7 +3625,7 @@ function co({
|
|
|
3619
3625
|
] }),
|
|
3620
3626
|
/* @__PURE__ */ t(x, { className: "h-9 w-14" })
|
|
3621
3627
|
] }),
|
|
3622
|
-
/* @__PURE__ */ t(
|
|
3628
|
+
/* @__PURE__ */ t(Be, { variant: "labAnalysis" }),
|
|
3623
3629
|
/* @__PURE__ */ l("div", { className: "mt-6 space-y-3", children: [
|
|
3624
3630
|
/* @__PURE__ */ t(x, { className: "h-3.5 w-full" }),
|
|
3625
3631
|
/* @__PURE__ */ t(x, { className: "h-3.5 w-full" }),
|
|
@@ -3628,16 +3634,13 @@ function co({
|
|
|
3628
3634
|
] }, r)) })
|
|
3629
3635
|
] });
|
|
3630
3636
|
}
|
|
3631
|
-
const mo = ["Normal Range", "Current Range", ""];
|
|
3632
|
-
function
|
|
3637
|
+
const mo = ["Normal Range", "Current Range", ""], uo = [];
|
|
3638
|
+
function bo(e, r) {
|
|
3633
3639
|
const n = /T(\d+)/i.exec(e);
|
|
3634
3640
|
if (!n) return r + 1;
|
|
3635
3641
|
const a = Number(n[1]);
|
|
3636
3642
|
return Number.isFinite(a) ? a : r + 1;
|
|
3637
3643
|
}
|
|
3638
|
-
function bo(e) {
|
|
3639
|
-
return e >= 60 ? "high" : e <= 40 ? "low" : "optimal";
|
|
3640
|
-
}
|
|
3641
3644
|
function ho(e) {
|
|
3642
3645
|
return {
|
|
3643
3646
|
name: e.title,
|
|
@@ -3646,13 +3649,13 @@ function ho(e) {
|
|
|
3646
3649
|
symptomScore: e.normalRange || "—",
|
|
3647
3650
|
labScore: e.currentRange || "—",
|
|
3648
3651
|
totalScore: e.previousRange || "—",
|
|
3649
|
-
status:
|
|
3652
|
+
status: e.status
|
|
3650
3653
|
};
|
|
3651
3654
|
}
|
|
3652
3655
|
function fo(e) {
|
|
3653
3656
|
const r = /* @__PURE__ */ new Map();
|
|
3654
3657
|
return e.forEach((n, a) => {
|
|
3655
|
-
const o =
|
|
3658
|
+
const o = bo(n.subtitle, a), i = r.get(o) ?? [];
|
|
3656
3659
|
i.push(n), r.set(o, i);
|
|
3657
3660
|
}), Array.from(r.entries()).sort((n, a) => n[0] - a[0]).map(([n, a]) => ({
|
|
3658
3661
|
triadNumber: n,
|
|
@@ -3660,47 +3663,48 @@ function fo(e) {
|
|
|
3660
3663
|
}));
|
|
3661
3664
|
}
|
|
3662
3665
|
function Rs({ content: e }) {
|
|
3663
|
-
var
|
|
3666
|
+
var f, p;
|
|
3667
|
+
const r = (e == null ? void 0 : e.groups) ?? uo, n = j(() => fo(r ?? []), [r]), [a, o] = H(0);
|
|
3664
3668
|
if (!e) return null;
|
|
3665
|
-
const { pageHeader:
|
|
3666
|
-
triadNumber:
|
|
3667
|
-
name: `Triad ${
|
|
3668
|
-
aggregateScoreDisplay: String(
|
|
3669
|
-
})),
|
|
3669
|
+
const { pageHeader: i, intro: s } = e, c = r.length > 0, d = Math.min(a, Math.max(0, n.length - 1)), m = n[d], b = (m == null ? void 0 : m.groups) ?? [], g = ((f = e.intros) == null ? void 0 : f.find((y) => y.triadNumber === (m == null ? void 0 : m.triadNumber))) ?? s, v = !!(g && (g.heading || (p = g.paragraphs) != null && p.length)), u = n.map((y) => ({
|
|
3670
|
+
triadNumber: y.triadNumber,
|
|
3671
|
+
name: `Triad ${y.triadNumber}`,
|
|
3672
|
+
aggregateScoreDisplay: String(y.triadNumber)
|
|
3673
|
+
})), h = v || c;
|
|
3670
3674
|
return /* @__PURE__ */ l("div", { className: "mx-auto w-full min-w-0 space-y-6", children: [
|
|
3671
|
-
/* @__PURE__ */ t(I, { title:
|
|
3672
|
-
|
|
3675
|
+
/* @__PURE__ */ t(I, { title: i.title, subtitle: i.subtitle }),
|
|
3676
|
+
c ? /* @__PURE__ */ t(
|
|
3673
3677
|
ut,
|
|
3674
3678
|
{
|
|
3675
|
-
triads:
|
|
3676
|
-
selectedIndex:
|
|
3677
|
-
onSelectIndex:
|
|
3679
|
+
triads: u,
|
|
3680
|
+
selectedIndex: d,
|
|
3681
|
+
onSelectIndex: o
|
|
3678
3682
|
}
|
|
3679
|
-
)
|
|
3680
|
-
|
|
3681
|
-
|
|
3682
|
-
|
|
3683
|
-
|
|
3683
|
+
) : null,
|
|
3684
|
+
h ? /* @__PURE__ */ t(T, { className: "min-w-0", children: /* @__PURE__ */ l("div", { className: "space-y-6", children: [
|
|
3685
|
+
v && g ? /* @__PURE__ */ t(hr, { ...g, embeddedInCard: !0 }) : null,
|
|
3686
|
+
v && c ? /* @__PURE__ */ t("div", { className: "border-t border-[color:var(--mb-color-card-border)]" }) : null,
|
|
3687
|
+
c ? /* @__PURE__ */ t("div", { className: "space-y-6", children: b.map((y) => /* @__PURE__ */ l(
|
|
3684
3688
|
"div",
|
|
3685
3689
|
{
|
|
3686
3690
|
className: "min-w-0 space-y-3 rounded-[length:var(--mb-radius-card)] bg-[color:var(--mb-color-muted-section-bg)] p-[length:var(--mb-card-padding)]",
|
|
3687
3691
|
children: [
|
|
3688
3692
|
/* @__PURE__ */ l("div", { className: "flex flex-wrap items-baseline justify-between gap-2", children: [
|
|
3689
|
-
/* @__PURE__ */ t("h2", { className: "m-0 text-xl font-bold text-[color:var(--mb-color-text)]", children:
|
|
3690
|
-
/* @__PURE__ */ t("span", { className: "text-base font-bold text-[color:var(--mb-color-text-muted)]", children:
|
|
3693
|
+
/* @__PURE__ */ t("h2", { className: "m-0 text-xl font-bold text-[color:var(--mb-color-text)]", children: y.title }),
|
|
3694
|
+
/* @__PURE__ */ t("span", { className: "text-base font-bold text-[color:var(--mb-color-text-muted)]", children: y.subtitle })
|
|
3691
3695
|
] }),
|
|
3692
|
-
/* @__PURE__ */ t("div", { className: "space-y-2", children: (
|
|
3696
|
+
/* @__PURE__ */ t("div", { className: "space-y-2", children: (y.metrics ?? []).map((C) => /* @__PURE__ */ t(
|
|
3693
3697
|
le,
|
|
3694
3698
|
{
|
|
3695
|
-
row: ho(
|
|
3699
|
+
row: ho(C),
|
|
3696
3700
|
metricLabels: mo,
|
|
3697
3701
|
metricSlots: 2
|
|
3698
3702
|
},
|
|
3699
|
-
|
|
3703
|
+
C.title
|
|
3700
3704
|
)) })
|
|
3701
3705
|
]
|
|
3702
3706
|
},
|
|
3703
|
-
`${
|
|
3707
|
+
`${y.title}-${y.subtitle}`
|
|
3704
3708
|
)) }) : null
|
|
3705
3709
|
] }) }) : null
|
|
3706
3710
|
] });
|
|
@@ -3808,7 +3812,7 @@ function wr({ blocks: e }) {
|
|
|
3808
3812
|
) : r.type === "list" ? /* @__PURE__ */ t(wo, { items: r.items }, a) : r.type === "table" ? /* @__PURE__ */ t(yo, { rows: r.rows }, a) : null;
|
|
3809
3813
|
}) });
|
|
3810
3814
|
}
|
|
3811
|
-
const
|
|
3815
|
+
const qe = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE_AG_CHARTS_LICENSE_KEY: "Using_this_{AG_Charts}_Enterprise_key_{AG-125036}_in_excess_of_the_licence_granted_is_not_permitted___Please_report_misuse_to_legal@ag-grid.com___For_help_with_changing_this_key_please_contact_info@ag-grid.com___{Metabolic_Code}_is_granted_a_{Single_Application}_Developer_License_for_the_application_{Metabolic_Code}_only_for_{1}_Front-End_JavaScript_developer___All_Front-End_JavaScript_developers_working_on_{Metabolic_Code}_need_to_be_licensed___{Metabolic_Code}_has_been_granted_a_Deployment_License_Add-on_for_{1}_Production_Environment___This_key_works_with_{AG_Charts}_Enterprise_versions_released_before_{31_March_2027}____[v3]_[02]_MTgwNjQ0NzYwMDAwMA==4e5dbf88087527cd3b1cf09b0557ec38", VITE_METABOLIC_REPORT_PAGES_API_BASE_URL: "https://mc-api-production-api.salmonstone-a2c3cb0d.canadacentral.azurecontainerapps.io" };
|
|
3812
3816
|
function No() {
|
|
3813
3817
|
try {
|
|
3814
3818
|
return "https://mc-api-production-api.salmonstone-a2c3cb0d.canadacentral.azurecontainerapps.io";
|
|
@@ -3818,7 +3822,7 @@ function No() {
|
|
|
3818
3822
|
}
|
|
3819
3823
|
const Co = No() ?? "", yr = (() => {
|
|
3820
3824
|
try {
|
|
3821
|
-
return
|
|
3825
|
+
return qe == null ? void 0 : qe.VITE_METABOLIC_DASHBOARD_STUB_API_KEY;
|
|
3822
3826
|
} catch {
|
|
3823
3827
|
return;
|
|
3824
3828
|
}
|
|
@@ -3829,12 +3833,12 @@ function Ao(e) {
|
|
|
3829
3833
|
function To(e) {
|
|
3830
3834
|
return e.replace(/\/+$/, "");
|
|
3831
3835
|
}
|
|
3832
|
-
function
|
|
3836
|
+
function fe() {
|
|
3833
3837
|
return To(Co);
|
|
3834
3838
|
}
|
|
3835
|
-
function
|
|
3839
|
+
function Te(e) {
|
|
3836
3840
|
if (!e || /^https?:\/\//i.test(e)) return e;
|
|
3837
|
-
const r =
|
|
3841
|
+
const r = fe();
|
|
3838
3842
|
return r ? `${r}${e.startsWith("/") ? e : `/${e}`}` : e;
|
|
3839
3843
|
}
|
|
3840
3844
|
function Yt({ variant: e }) {
|
|
@@ -3843,7 +3847,7 @@ function Yt({ variant: e }) {
|
|
|
3843
3847
|
/* @__PURE__ */ t(
|
|
3844
3848
|
"img",
|
|
3845
3849
|
{
|
|
3846
|
-
src:
|
|
3850
|
+
src: Te(e.triad_image_url),
|
|
3847
3851
|
alt: "",
|
|
3848
3852
|
className: "size-10 shrink-0 object-contain"
|
|
3849
3853
|
}
|
|
@@ -3885,7 +3889,7 @@ const Po = [
|
|
|
3885
3889
|
{ color: "#e09a1a", position: 50 },
|
|
3886
3890
|
{ color: "#d94040", position: 100 }
|
|
3887
3891
|
], So = "text-[13px] font-medium uppercase tracking-wide text-[color:var(--mb-color-text-muted)]", Mo = "text-[15px] font-bold tabular-nums text-[color:var(--mb-color-text)]";
|
|
3888
|
-
function
|
|
3892
|
+
function Je({ label: e, value: r }) {
|
|
3889
3893
|
return /* @__PURE__ */ l("div", { className: "flex items-center justify-between border-b border-[color:var(--mb-color-card-border)] py-2 last:border-0", children: [
|
|
3890
3894
|
/* @__PURE__ */ t("span", { className: So, children: e }),
|
|
3891
3895
|
/* @__PURE__ */ t("span", { className: Mo, children: r })
|
|
@@ -3896,9 +3900,9 @@ function Ho({ patient: e }) {
|
|
|
3896
3900
|
return /* @__PURE__ */ l("div", { className: "rounded-lg border border-[color:var(--mb-color-card-border)] bg-[color:var(--mb-color-card-bg)] p-4 sm:p-5", children: [
|
|
3897
3901
|
/* @__PURE__ */ t("h2", { className: "mb-3 text-sm font-bold uppercase tracking-wide text-[color:var(--mb-color-text)]", children: e.organDisplayName }),
|
|
3898
3902
|
/* @__PURE__ */ l("div", { children: [
|
|
3899
|
-
/* @__PURE__ */ t(
|
|
3900
|
-
/* @__PURE__ */ t(
|
|
3901
|
-
/* @__PURE__ */ t(
|
|
3903
|
+
/* @__PURE__ */ t(Je, { label: "Symptom Score", value: e.symptomScore }),
|
|
3904
|
+
/* @__PURE__ */ t(Je, { label: "Lab Score", value: e.labScore }),
|
|
3905
|
+
/* @__PURE__ */ t(Je, { label: "Total", value: e.totalScore })
|
|
3902
3906
|
] }),
|
|
3903
3907
|
/* @__PURE__ */ l("div", { className: "mt-4", children: [
|
|
3904
3908
|
/* @__PURE__ */ t(or, { stops: Po, indicatorPercent: r }),
|
|
@@ -3916,7 +3920,7 @@ function ko({ stage: e }) {
|
|
|
3916
3920
|
/* @__PURE__ */ t(
|
|
3917
3921
|
"img",
|
|
3918
3922
|
{
|
|
3919
|
-
src:
|
|
3923
|
+
src: Te(e.image_url),
|
|
3920
3924
|
alt: "",
|
|
3921
3925
|
className: "size-12 shrink-0 object-contain"
|
|
3922
3926
|
}
|
|
@@ -3948,7 +3952,7 @@ function Bo({
|
|
|
3948
3952
|
organUrl: r,
|
|
3949
3953
|
organDisplayName: n
|
|
3950
3954
|
}) {
|
|
3951
|
-
const a =
|
|
3955
|
+
const a = Te(e), o = Te(r), i = a === o;
|
|
3952
3956
|
return /* @__PURE__ */ l("div", { className: "flex min-h-[14rem] items-center justify-center gap-2 rounded-lg border border-[color:var(--mb-color-card-border)] bg-[color:var(--mb-color-card-bg)] p-4", children: [
|
|
3953
3957
|
/* @__PURE__ */ t(
|
|
3954
3958
|
"img",
|
|
@@ -4052,7 +4056,7 @@ function zo({
|
|
|
4052
4056
|
/* @__PURE__ */ t(x, { className: "h-9 w-14" })
|
|
4053
4057
|
] }),
|
|
4054
4058
|
/* @__PURE__ */ t("div", { className: "grid grid-cols-1 gap-4 lg:grid-cols-2 xl:grid-cols-3", children: Ro.map((n) => /* @__PURE__ */ t(
|
|
4055
|
-
|
|
4059
|
+
Be,
|
|
4056
4060
|
{
|
|
4057
4061
|
variant: "questionnaire",
|
|
4058
4062
|
title: n
|
|
@@ -4081,13 +4085,13 @@ function Os({ content: e }) {
|
|
|
4081
4085
|
symptoms: s,
|
|
4082
4086
|
productsSectionTitle: c,
|
|
4083
4087
|
products: d
|
|
4084
|
-
} = e, m = !!(n && (n.heading || (S = n.paragraphs) != null && S.length)), b = o ?? [],
|
|
4088
|
+
} = e, m = !!(n && (n.heading || (S = n.paragraphs) != null && S.length)), b = o ?? [], g = s ?? [], v = d ?? [], u = b.length > 0, h = g.length > 0, f = v.length > 0, p = m || u || h || f, C = (n == null ? void 0 : n.triadNumber) != null && n ? [
|
|
4085
4089
|
{
|
|
4086
4090
|
triadNumber: n.triadNumber,
|
|
4087
4091
|
name: `Triad ${n.triadNumber}`,
|
|
4088
4092
|
aggregateScoreDisplay: String(n.triadNumber)
|
|
4089
4093
|
}
|
|
4090
|
-
] : [], [N, w] = H(0), P = Math.min(N, Math.max(0, C.length - 1)), A =
|
|
4094
|
+
] : [], [N, w] = H(0), P = Math.min(N, Math.max(0, C.length - 1)), A = h || f || u;
|
|
4091
4095
|
return /* @__PURE__ */ l("div", { className: "mx-auto w-full min-w-0 space-y-6", children: [
|
|
4092
4096
|
/* @__PURE__ */ t(I, { title: r.title, subtitle: r.subtitle }),
|
|
4093
4097
|
C.length > 0 ? /* @__PURE__ */ t(
|
|
@@ -4098,25 +4102,25 @@ function Os({ content: e }) {
|
|
|
4098
4102
|
onSelectIndex: w
|
|
4099
4103
|
}
|
|
4100
4104
|
) : null,
|
|
4101
|
-
|
|
4105
|
+
p ? /* @__PURE__ */ t(T, { className: "min-w-0", children: /* @__PURE__ */ l("div", { className: "space-y-6", children: [
|
|
4102
4106
|
m && n ? /* @__PURE__ */ t(hr, { ...n, embeddedInCard: !0 }) : null,
|
|
4103
4107
|
m && A ? /* @__PURE__ */ t("div", { className: "border-t border-[color:var(--mb-color-card-border)]" }) : null,
|
|
4104
|
-
|
|
4108
|
+
h ? /* @__PURE__ */ l("div", { className: "space-y-5", children: [
|
|
4105
4109
|
/* @__PURE__ */ t("h2", { className: "text-xl font-bold text-[color:var(--mb-color-text)]", children: i }),
|
|
4106
|
-
/* @__PURE__ */ t("div", { className: "space-y-0", children: Oo(
|
|
4110
|
+
/* @__PURE__ */ t("div", { className: "space-y-0", children: Oo(g).map((L) => /* @__PURE__ */ t(
|
|
4107
4111
|
"div",
|
|
4108
4112
|
{
|
|
4109
4113
|
className: "grid grid-cols-1 gap-4 border-b border-gray-200 py-3 last:border-b-0 md:grid-cols-3 md:gap-6",
|
|
4110
4114
|
children: L.map((z) => /* @__PURE__ */ l("div", { className: "flex min-h-10 items-center gap-3", children: [
|
|
4111
|
-
/* @__PURE__ */ t("span", { className: "inline-flex size-4 shrink-0 items-center justify-center text-[color:var(--mb-color-text)]", children: /* @__PURE__ */ t(
|
|
4115
|
+
/* @__PURE__ */ t("span", { className: "inline-flex size-4 shrink-0 items-center justify-center text-[color:var(--mb-color-text)]", children: /* @__PURE__ */ t(re, { className: "size-4", "aria-hidden": !0 }) }),
|
|
4112
4116
|
/* @__PURE__ */ t("span", { className: "text-sm leading-5 text-[color:var(--mb-color-text)]", children: z })
|
|
4113
4117
|
] }, z))
|
|
4114
4118
|
},
|
|
4115
4119
|
L[0]
|
|
4116
4120
|
)) })
|
|
4117
4121
|
] }) : null,
|
|
4118
|
-
|
|
4119
|
-
|
|
4122
|
+
h && (f || u) ? /* @__PURE__ */ t("div", { className: "border-t border-[color:var(--mb-color-card-border)]" }) : null,
|
|
4123
|
+
f ? /* @__PURE__ */ l("div", { className: "min-w-0 space-y-5 rounded-[length:var(--mb-radius-card)] bg-[color:var(--mb-color-muted-section-bg)] p-[length:var(--mb-card-padding)]", children: [
|
|
4120
4124
|
/* @__PURE__ */ t("h2", { className: "text-xl font-bold text-[color:var(--mb-color-text)]", children: c }),
|
|
4121
4125
|
/* @__PURE__ */ t("div", { className: "grid w-full min-w-0 grid-cols-1 gap-5 sm:grid-cols-2 sm:gap-6 xl:grid-cols-3 xl:gap-8", children: v.map((L) => /* @__PURE__ */ l(
|
|
4122
4126
|
"div",
|
|
@@ -4140,11 +4144,11 @@ function Os({ content: e }) {
|
|
|
4140
4144
|
L.name
|
|
4141
4145
|
)) })
|
|
4142
4146
|
] }) : null,
|
|
4143
|
-
|
|
4147
|
+
f && u ? /* @__PURE__ */ t("div", { className: "border-t border-[color:var(--mb-color-card-border)]" }) : null,
|
|
4144
4148
|
u ? /* @__PURE__ */ l("div", { className: "space-y-5", children: [
|
|
4145
4149
|
/* @__PURE__ */ t("h2", { className: "text-xl font-bold text-[color:var(--mb-color-text)]", children: a }),
|
|
4146
4150
|
/* @__PURE__ */ t("div", { className: "grid grid-cols-1 items-start gap-4 sm:grid-cols-2 xl:grid-cols-3 xl:gap-6", children: b.map((L) => /* @__PURE__ */ t(
|
|
4147
|
-
|
|
4151
|
+
ne,
|
|
4148
4152
|
{
|
|
4149
4153
|
layout: "labResults",
|
|
4150
4154
|
category: L
|
|
@@ -4216,7 +4220,7 @@ function Go({
|
|
|
4216
4220
|
/* @__PURE__ */ t("div", { className: "border-t border-[color:var(--mb-color-card-border)]" }),
|
|
4217
4221
|
/* @__PURE__ */ l("div", { className: "space-y-5", children: [
|
|
4218
4222
|
/* @__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(
|
|
4223
|
+
/* @__PURE__ */ t("div", { className: "grid grid-cols-1 items-start gap-4 sm:grid-cols-2 xl:grid-cols-3 xl:gap-6", children: Eo.map((r) => /* @__PURE__ */ t(Be, { variant: "labResults", title: r }, r)) })
|
|
4220
4224
|
] })
|
|
4221
4225
|
] }) })
|
|
4222
4226
|
] });
|
|
@@ -4263,7 +4267,7 @@ function Yo({
|
|
|
4263
4267
|
] });
|
|
4264
4268
|
}
|
|
4265
4269
|
function Xo(e, r) {
|
|
4266
|
-
const n =
|
|
4270
|
+
const n = ke(r.totalScore), a = n == null ? void 0 : Math.max(0, Math.min(100, n)), o = r.title.toLowerCase().replace(/(^|\s)\S/g, (i) => i.toUpperCase());
|
|
4267
4271
|
return {
|
|
4268
4272
|
triadHeading: `${e.heading.split(":")[0]}: ${o}`,
|
|
4269
4273
|
organDisplayName: o,
|
|
@@ -4321,7 +4325,7 @@ function Zo({
|
|
|
4321
4325
|
/* @__PURE__ */ t(x, { className: "h-9 w-16" })
|
|
4322
4326
|
] }),
|
|
4323
4327
|
/* @__PURE__ */ t("div", { className: "grid grid-cols-1 gap-4 lg:grid-cols-2 xl:grid-cols-3", children: Vo.map((n) => /* @__PURE__ */ t(
|
|
4324
|
-
|
|
4328
|
+
Be,
|
|
4325
4329
|
{
|
|
4326
4330
|
variant: "triadResiliency",
|
|
4327
4331
|
title: n
|
|
@@ -4760,19 +4764,19 @@ async function U(e, r) {
|
|
|
4760
4764
|
let d;
|
|
4761
4765
|
try {
|
|
4762
4766
|
d = await i(c, { method: "GET", headers: o, signal: s });
|
|
4763
|
-
} catch (
|
|
4764
|
-
throw Wt(
|
|
4765
|
-
`Network error fetching page "${e}": ${
|
|
4766
|
-
{ cause:
|
|
4767
|
+
} catch (g) {
|
|
4768
|
+
throw Wt(g) ? g : new Error(
|
|
4769
|
+
`Network error fetching page "${e}": ${g instanceof Error ? g.message : String(g)}`,
|
|
4770
|
+
{ cause: g }
|
|
4767
4771
|
);
|
|
4768
4772
|
}
|
|
4769
4773
|
let m;
|
|
4770
4774
|
try {
|
|
4771
4775
|
m = await d.text();
|
|
4772
|
-
} catch (
|
|
4773
|
-
throw Wt(
|
|
4774
|
-
`Failed to read response body for page "${e}" (HTTP ${d.status}): ${
|
|
4775
|
-
{ cause:
|
|
4776
|
+
} catch (g) {
|
|
4777
|
+
throw Wt(g) ? g : new Error(
|
|
4778
|
+
`Failed to read response body for page "${e}" (HTTP ${d.status}): ${g instanceof Error ? g.message : String(g)}`,
|
|
4779
|
+
{ cause: g }
|
|
4776
4780
|
);
|
|
4777
4781
|
}
|
|
4778
4782
|
let b;
|
|
@@ -4812,7 +4816,7 @@ const Ar = "Your metabolic overview brings together triad priorities, key metric
|
|
|
4812
4816
|
), Rl = Q(
|
|
4813
4817
|
() => Pl().then((e) => ({ default: e.AlertLabSummaryTab }))
|
|
4814
4818
|
);
|
|
4815
|
-
const
|
|
4819
|
+
const De = [
|
|
4816
4820
|
{
|
|
4817
4821
|
id: "dashboard",
|
|
4818
4822
|
sideMenuLabel: "Dashboard",
|
|
@@ -4826,7 +4830,7 @@ const Ie = [
|
|
|
4826
4830
|
createHttpFetcher: (e, r) => (n) => e(n, async () => {
|
|
4827
4831
|
const [a, { mapDashboardPageDtoToTabContent: o }] = await Promise.all([
|
|
4828
4832
|
U("dashboard", r(n)),
|
|
4829
|
-
Promise.resolve().then(() =>
|
|
4833
|
+
Promise.resolve().then(() => bi)
|
|
4830
4834
|
]);
|
|
4831
4835
|
return o(a);
|
|
4832
4836
|
})
|
|
@@ -4880,7 +4884,7 @@ const Ie = [
|
|
|
4880
4884
|
createHttpFetcher: (e, r) => (n) => e(n, async () => {
|
|
4881
4885
|
const [a, { mapLabResultsDtoToTabContent: o }] = await Promise.all([
|
|
4882
4886
|
U("lab-results", r(n)),
|
|
4883
|
-
Promise.resolve().then(() =>
|
|
4887
|
+
Promise.resolve().then(() => xi)
|
|
4884
4888
|
]);
|
|
4885
4889
|
return o(a);
|
|
4886
4890
|
})
|
|
@@ -4898,7 +4902,7 @@ const Ie = [
|
|
|
4898
4902
|
createHttpFetcher: (e, r) => (n) => e(n, async () => {
|
|
4899
4903
|
const [a, { mapLabAnalysisDtoToTabContent: o }] = await Promise.all([
|
|
4900
4904
|
U("lab-analysis", r(n)),
|
|
4901
|
-
Promise.resolve().then(() =>
|
|
4905
|
+
Promise.resolve().then(() => hi)
|
|
4902
4906
|
]);
|
|
4903
4907
|
return o(a);
|
|
4904
4908
|
})
|
|
@@ -4916,7 +4920,7 @@ const Ie = [
|
|
|
4916
4920
|
createHttpFetcher: (e, r) => (n) => e(n, async () => {
|
|
4917
4921
|
const [a, { mapAlertLabSummaryDtoToTabContent: o }] = await Promise.all([
|
|
4918
4922
|
U("alert-lab-summary", r(n)),
|
|
4919
|
-
Promise.resolve().then(() =>
|
|
4923
|
+
Promise.resolve().then(() => ti)
|
|
4920
4924
|
]);
|
|
4921
4925
|
return o(a);
|
|
4922
4926
|
})
|
|
@@ -4934,7 +4938,7 @@ const Ie = [
|
|
|
4934
4938
|
createHttpFetcher: (e, r) => (n) => e(n, async () => {
|
|
4935
4939
|
const [a, { mapQuestionnaireAnalysisDtoToTabContent: o }] = await Promise.all([
|
|
4936
4940
|
U("questionnaire-analysis", r(n)),
|
|
4937
|
-
Promise.resolve().then(() =>
|
|
4941
|
+
Promise.resolve().then(() => vi)
|
|
4938
4942
|
]);
|
|
4939
4943
|
return o(a);
|
|
4940
4944
|
})
|
|
@@ -4975,12 +4979,12 @@ const Ie = [
|
|
|
4975
4979
|
return o(a);
|
|
4976
4980
|
})
|
|
4977
4981
|
}
|
|
4978
|
-
],
|
|
4982
|
+
], Le = De.map((e) => ({
|
|
4979
4983
|
id: e.id,
|
|
4980
4984
|
label: e.sideMenuLabel,
|
|
4981
4985
|
icon: e.icon
|
|
4982
4986
|
})), ht = Object.fromEntries(
|
|
4983
|
-
|
|
4987
|
+
De.map((e) => [
|
|
4984
4988
|
e.id,
|
|
4985
4989
|
{ Tab: e.Tab, Skeleton: e.Skeleton, pageHeader: e.pageHeader }
|
|
4986
4990
|
])
|
|
@@ -4989,7 +4993,7 @@ function zl(e) {
|
|
|
4989
4993
|
return ht[e].pageHeader;
|
|
4990
4994
|
}
|
|
4991
4995
|
function Ol(e, r) {
|
|
4992
|
-
const n =
|
|
4996
|
+
const n = De.map((a) => [a.id, a.createHttpFetcher(e, r)]);
|
|
4993
4997
|
return Object.fromEntries(n);
|
|
4994
4998
|
}
|
|
4995
4999
|
function El({
|
|
@@ -5004,7 +5008,7 @@ function El({
|
|
|
5004
5008
|
onPointerEnter: d,
|
|
5005
5009
|
onFocus: m
|
|
5006
5010
|
}) {
|
|
5007
|
-
const b = at(),
|
|
5011
|
+
const b = at(), g = !!(s && c), v = /* @__PURE__ */ l(
|
|
5008
5012
|
M,
|
|
5009
5013
|
{
|
|
5010
5014
|
variant: "sideMenu",
|
|
@@ -5014,9 +5018,9 @@ function El({
|
|
|
5014
5018
|
onPointerEnter: d,
|
|
5015
5019
|
onFocus: m,
|
|
5016
5020
|
"aria-current": n ? "page" : void 0,
|
|
5017
|
-
"aria-describedby":
|
|
5021
|
+
"aria-describedby": g ? b : void 0,
|
|
5018
5022
|
"aria-label": e,
|
|
5019
|
-
title:
|
|
5023
|
+
title: g ? void 0 : e,
|
|
5020
5024
|
className: [
|
|
5021
5025
|
s ? "text-[color:var(--mb-color-text-muted)]" : n ? "text-[color:var(--mb-color-side-menu-item-text-active)]" : "text-[color:var(--mb-color-side-menu-item-text)]",
|
|
5022
5026
|
s ? "bg-transparent hover:bg-transparent" : n ? "bg-[color:var(--mb-color-nav-active)] hover:bg-[oklch(from_var(--mb-color-nav-active)_calc(l*0.8)_c_h)]" : "bg-transparent hover:bg-[color-mix(in_srgb,var(--mb-color-nav-active)_50%,transparent)]",
|
|
@@ -5037,7 +5041,7 @@ function El({
|
|
|
5037
5041
|
]
|
|
5038
5042
|
}
|
|
5039
5043
|
);
|
|
5040
|
-
return
|
|
5044
|
+
return g ? /* @__PURE__ */ l("span", { className: "group relative block outline-none", children: [
|
|
5041
5045
|
v,
|
|
5042
5046
|
/* @__PURE__ */ t(
|
|
5043
5047
|
"span",
|
|
@@ -5059,31 +5063,31 @@ function Fl({
|
|
|
5059
5063
|
footerContent: n,
|
|
5060
5064
|
className: a = "",
|
|
5061
5065
|
navClassName: o = "",
|
|
5062
|
-
items: i =
|
|
5066
|
+
items: i = Le,
|
|
5063
5067
|
activeItemId: s,
|
|
5064
5068
|
defaultActiveItemId: c = "dashboard",
|
|
5065
5069
|
onItemClick: d,
|
|
5066
5070
|
onNavItemPrefetch: m
|
|
5067
5071
|
}) {
|
|
5068
|
-
const b = s !== void 0, [
|
|
5072
|
+
const b = s !== void 0, [g, v] = H(c), u = s ?? g, h = B(
|
|
5069
5073
|
(C) => {
|
|
5070
5074
|
d == null || d(C), b || v(C);
|
|
5071
5075
|
},
|
|
5072
5076
|
[b, d]
|
|
5073
|
-
),
|
|
5077
|
+
), f = !!r, p = e != null && (typeof e != "string" || e.trim().length > 0), y = f || p;
|
|
5074
5078
|
return /* @__PURE__ */ l(
|
|
5075
5079
|
"div",
|
|
5076
5080
|
{
|
|
5077
5081
|
className: `mb-root flex h-full min-h-0 flex-col p-2 lg:p-[var(--mb-side-menu-inset,24px)] ${a}`.trim(),
|
|
5078
5082
|
children: [
|
|
5079
5083
|
y ? /* @__PURE__ */ l("div", { className: "mb-4 flex min-w-0 shrink-0 flex-col items-center gap-2 lg:mb-8 lg:flex-row lg:items-center", children: [
|
|
5080
|
-
|
|
5081
|
-
|
|
5084
|
+
f ? /* @__PURE__ */ t("div", { className: "flex w-full shrink-0 justify-center lg:justify-start", children: r }) : null,
|
|
5085
|
+
p ? /* @__PURE__ */ t(
|
|
5082
5086
|
"div",
|
|
5083
5087
|
{
|
|
5084
5088
|
className: [
|
|
5085
5089
|
"min-w-0 flex-1 text-sm font-semibold tracking-tight text-[color:var(--mb-color-text)]",
|
|
5086
|
-
|
|
5090
|
+
f ? "text-center lg:pr-2 lg:text-left" : "hidden lg:block"
|
|
5087
5091
|
].join(" "),
|
|
5088
5092
|
children: e
|
|
5089
5093
|
}
|
|
@@ -5104,7 +5108,7 @@ function Fl({
|
|
|
5104
5108
|
isActive: C.id === u,
|
|
5105
5109
|
disabled: N,
|
|
5106
5110
|
disabledTooltip: C.disabledTooltip,
|
|
5107
|
-
onClick: N ? void 0 : () =>
|
|
5111
|
+
onClick: N ? void 0 : () => h(C.id),
|
|
5108
5112
|
onPointerEnter: N ? void 0 : () => m == null ? void 0 : m(C.id),
|
|
5109
5113
|
onFocus: N ? void 0 : () => m == null ? void 0 : m(C.id)
|
|
5110
5114
|
},
|
|
@@ -5151,7 +5155,7 @@ function Us({ userProfile: e }) {
|
|
|
5151
5155
|
] })
|
|
5152
5156
|
] }) });
|
|
5153
5157
|
}
|
|
5154
|
-
function
|
|
5158
|
+
function Re({
|
|
5155
5159
|
apiKey: e,
|
|
5156
5160
|
userId: r,
|
|
5157
5161
|
questionnaireResponseId: n,
|
|
@@ -5189,22 +5193,22 @@ function Vl(e) {
|
|
|
5189
5193
|
simulateDelayMs: c,
|
|
5190
5194
|
simulateFetchError: d = !1,
|
|
5191
5195
|
simulateFetchErrorMessage: m = "Simulated fetch error"
|
|
5192
|
-
} = e, b =
|
|
5196
|
+
} = e, b = fe(), g = Re({
|
|
5193
5197
|
apiKey: a,
|
|
5194
5198
|
userId: o,
|
|
5195
5199
|
questionnaireResponseId: i,
|
|
5196
5200
|
headers: n
|
|
5197
5201
|
});
|
|
5198
|
-
return Ol((
|
|
5202
|
+
return Ol((h, f) => Xl(c, h, async () => {
|
|
5199
5203
|
if (d)
|
|
5200
5204
|
throw new Error(m);
|
|
5201
|
-
return
|
|
5202
|
-
}), (
|
|
5205
|
+
return f();
|
|
5206
|
+
}), (h) => ({
|
|
5203
5207
|
baseUrl: b,
|
|
5204
5208
|
reportId: r,
|
|
5205
|
-
headers:
|
|
5209
|
+
headers: g,
|
|
5206
5210
|
fetchImpl: s,
|
|
5207
|
-
signal:
|
|
5211
|
+
signal: h
|
|
5208
5212
|
}));
|
|
5209
5213
|
}
|
|
5210
5214
|
function Zl(e, r) {
|
|
@@ -5235,22 +5239,22 @@ function Kl(e) {
|
|
|
5235
5239
|
questionnaireResponseId: o,
|
|
5236
5240
|
headers: i,
|
|
5237
5241
|
fetchImpl: s
|
|
5238
|
-
} = e, c =
|
|
5242
|
+
} = e, c = fe();
|
|
5239
5243
|
return async (d) => {
|
|
5240
|
-
const m = s ?? globalThis.fetch.bind(globalThis), b = (d == null ? void 0 : d.reportId) ?? a,
|
|
5244
|
+
const m = s ?? globalThis.fetch.bind(globalThis), b = (d == null ? void 0 : d.reportId) ?? a, g = Wl(c, b), v = Re({
|
|
5241
5245
|
apiKey: r,
|
|
5242
5246
|
userId: n,
|
|
5243
5247
|
questionnaireResponseId: o,
|
|
5244
5248
|
headers: i
|
|
5245
|
-
}), u = await m(
|
|
5249
|
+
}), u = await m(g, {
|
|
5246
5250
|
method: "GET",
|
|
5247
5251
|
headers: v,
|
|
5248
5252
|
signal: d == null ? void 0 : d.signal
|
|
5249
5253
|
});
|
|
5250
5254
|
if (!u.ok)
|
|
5251
5255
|
throw new Error(`Failed to download report PDF (HTTP ${u.status})`);
|
|
5252
|
-
const
|
|
5253
|
-
Ql(
|
|
5256
|
+
const h = await u.blob(), f = Ul(u, b ? `report-${b}.pdf` : "report.pdf");
|
|
5257
|
+
Ql(h, f);
|
|
5254
5258
|
};
|
|
5255
5259
|
}
|
|
5256
5260
|
function ql(e, r) {
|
|
@@ -5273,32 +5277,32 @@ async function Qs(e) {
|
|
|
5273
5277
|
questionnaireResponseId: i,
|
|
5274
5278
|
fetchImpl: s = globalThis.fetch.bind(globalThis),
|
|
5275
5279
|
signal: c
|
|
5276
|
-
} = e, d =
|
|
5280
|
+
} = e, d = fe(), m = Jl(d, r), b = Re({
|
|
5277
5281
|
apiKey: a,
|
|
5278
5282
|
userId: o,
|
|
5279
5283
|
questionnaireResponseId: i,
|
|
5280
5284
|
headers: n
|
|
5281
5285
|
});
|
|
5282
|
-
let
|
|
5286
|
+
let g;
|
|
5283
5287
|
try {
|
|
5284
|
-
|
|
5285
|
-
} catch (
|
|
5286
|
-
throw _l(
|
|
5287
|
-
`Network error checking report availability: ${
|
|
5288
|
-
{ cause:
|
|
5288
|
+
g = await s(m, { method: "GET", headers: b, signal: c });
|
|
5289
|
+
} catch (h) {
|
|
5290
|
+
throw _l(h) ? h : new Error(
|
|
5291
|
+
`Network error checking report availability: ${h instanceof Error ? h.message : String(h)}`,
|
|
5292
|
+
{ cause: h }
|
|
5289
5293
|
);
|
|
5290
5294
|
}
|
|
5291
|
-
if (
|
|
5292
|
-
const v = await
|
|
5295
|
+
if (g.status === 404) return !1;
|
|
5296
|
+
const v = await g.text();
|
|
5293
5297
|
let u;
|
|
5294
5298
|
try {
|
|
5295
5299
|
u = v ? JSON.parse(v) : null;
|
|
5296
5300
|
} catch {
|
|
5297
5301
|
u = v;
|
|
5298
5302
|
}
|
|
5299
|
-
if (!
|
|
5300
|
-
const
|
|
5301
|
-
throw new Error(
|
|
5303
|
+
if (!g.ok) {
|
|
5304
|
+
const h = typeof u == "object" && u !== null && "error" in u && typeof u.error == "string" ? u.error : null;
|
|
5305
|
+
throw new Error(h ?? `Failed to check report availability (HTTP ${g.status})`);
|
|
5302
5306
|
}
|
|
5303
5307
|
if (u === null || typeof u != "object" || Array.isArray(u) || !("exists" in u) || typeof u.exists != "boolean")
|
|
5304
5308
|
throw new Error("Unexpected response shape for /report/exists: missing boolean 'exists'");
|
|
@@ -5342,16 +5346,19 @@ const $l = [
|
|
|
5342
5346
|
["bedtime", "Bedtime"]
|
|
5343
5347
|
];
|
|
5344
5348
|
function ft(e, r) {
|
|
5349
|
+
var s;
|
|
5345
5350
|
if (!e) return "—";
|
|
5346
|
-
const n =
|
|
5347
|
-
|
|
5351
|
+
const n = (s = e.text) == null ? void 0 : s.trim();
|
|
5352
|
+
if (n) return n;
|
|
5353
|
+
const a = r ? ` ${r}` : "", { low: o, high: i } = e;
|
|
5354
|
+
return o == null && i == null ? "—" : o == null ? i == null ? "—" : `≤${ue(i)}${a}` : i == null ? `≥${ue(o)}${a}` : `${ue(o)}-${ue(i)}${a}`;
|
|
5348
5355
|
}
|
|
5349
|
-
function
|
|
5356
|
+
function ue(e) {
|
|
5350
5357
|
return !Number.isFinite(e) || Number.isInteger(e) ? String(e) : e.toFixed(2).replace(/\.?0+$/, "");
|
|
5351
5358
|
}
|
|
5352
|
-
function
|
|
5359
|
+
function Pe(e, r) {
|
|
5353
5360
|
if (e == null) return "—";
|
|
5354
|
-
const n = r == null ? void 0 : r.trim(), a =
|
|
5361
|
+
const n = r == null ? void 0 : r.trim(), a = ue(e);
|
|
5355
5362
|
return n ? `${a} ${n}` : a;
|
|
5356
5363
|
}
|
|
5357
5364
|
function Dr(e) {
|
|
@@ -5382,28 +5389,14 @@ function ei(e) {
|
|
|
5382
5389
|
}
|
|
5383
5390
|
}
|
|
5384
5391
|
}
|
|
5385
|
-
function ti(e) {
|
|
5386
|
-
switch ((e ?? "").toLowerCase()) {
|
|
5387
|
-
case "hi":
|
|
5388
|
-
case "trending_hi":
|
|
5389
|
-
return "high";
|
|
5390
|
-
case "lo":
|
|
5391
|
-
case "trending_lo":
|
|
5392
|
-
return "low";
|
|
5393
|
-
case "optimal":
|
|
5394
|
-
return "optimal";
|
|
5395
|
-
default:
|
|
5396
|
-
return "trending";
|
|
5397
|
-
}
|
|
5398
|
-
}
|
|
5399
5392
|
function Rr(e, r) {
|
|
5400
5393
|
const n = e.alerts.map((a) => ({
|
|
5401
5394
|
name: a.name,
|
|
5402
5395
|
infoAriaLabel: `${a.name} information`,
|
|
5403
5396
|
symptomScore: ft(a.normal_range, a.unit ?? ""),
|
|
5404
|
-
labScore:
|
|
5397
|
+
labScore: Pe(a.value, a.unit ?? ""),
|
|
5405
5398
|
totalScore: a.indicator_percent != null ? String(Math.round(a.indicator_percent)) : "—",
|
|
5406
|
-
status:
|
|
5399
|
+
status: a.status
|
|
5407
5400
|
}));
|
|
5408
5401
|
return {
|
|
5409
5402
|
pageHeader: {
|
|
@@ -5413,17 +5406,17 @@ function Rr(e, r) {
|
|
|
5413
5406
|
indicators: n
|
|
5414
5407
|
};
|
|
5415
5408
|
}
|
|
5416
|
-
const
|
|
5409
|
+
const ti = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5417
5410
|
__proto__: null,
|
|
5418
5411
|
mapAlertLabSummaryDtoToTabContent: Rr
|
|
5419
5412
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
5420
|
-
function
|
|
5413
|
+
function Ce(e) {
|
|
5421
5414
|
return e != null ? String(Math.round(e)) : "—";
|
|
5422
5415
|
}
|
|
5423
|
-
function
|
|
5416
|
+
function ri(e) {
|
|
5424
5417
|
return e ?? "";
|
|
5425
5418
|
}
|
|
5426
|
-
function
|
|
5419
|
+
function ni(e) {
|
|
5427
5420
|
switch ((e ?? "").toLowerCase()) {
|
|
5428
5421
|
case "low":
|
|
5429
5422
|
return "optimal";
|
|
@@ -5435,21 +5428,7 @@ function ai(e) {
|
|
|
5435
5428
|
return "trending";
|
|
5436
5429
|
}
|
|
5437
5430
|
}
|
|
5438
|
-
|
|
5439
|
-
switch ((e ?? "").toLowerCase()) {
|
|
5440
|
-
case "optimal":
|
|
5441
|
-
return "optimal";
|
|
5442
|
-
case "hi":
|
|
5443
|
-
case "trending_hi":
|
|
5444
|
-
return "high";
|
|
5445
|
-
case "lo":
|
|
5446
|
-
case "trending_lo":
|
|
5447
|
-
return "low";
|
|
5448
|
-
default:
|
|
5449
|
-
return "optimal";
|
|
5450
|
-
}
|
|
5451
|
-
}
|
|
5452
|
-
const li = {
|
|
5431
|
+
const ai = {
|
|
5453
5432
|
cardio: "cardiopulmonary",
|
|
5454
5433
|
pulmonary: "cardiopulmonary",
|
|
5455
5434
|
cardiopulmonary: "cardiopulmonary",
|
|
@@ -5457,76 +5436,64 @@ const li = {
|
|
|
5457
5436
|
neuro: "neurovascular",
|
|
5458
5437
|
vascular: "neurovascular"
|
|
5459
5438
|
};
|
|
5460
|
-
function
|
|
5439
|
+
function oi(e) {
|
|
5461
5440
|
const r = e.trim().toLowerCase().replace(/[\s-]+/g, "");
|
|
5462
|
-
return
|
|
5441
|
+
return ai[r] ?? r;
|
|
5463
5442
|
}
|
|
5464
|
-
function
|
|
5465
|
-
const n =
|
|
5443
|
+
function li(e, r) {
|
|
5444
|
+
const n = oi(e.name);
|
|
5466
5445
|
return {
|
|
5467
5446
|
name: e.name,
|
|
5468
5447
|
infoAriaLabel: `${e.name} category information`,
|
|
5469
|
-
symptomScore:
|
|
5470
|
-
labScore:
|
|
5471
|
-
totalScore:
|
|
5472
|
-
status:
|
|
5448
|
+
symptomScore: Ce(e.survey_score),
|
|
5449
|
+
labScore: Ce(e.lab_score),
|
|
5450
|
+
totalScore: Ce(e.total_score),
|
|
5451
|
+
status: ni(e.interpretation),
|
|
5473
5452
|
statusExplanationPanel: r != null && r[n] ? {
|
|
5474
5453
|
bodyParagraphs: [],
|
|
5475
5454
|
organKey: n
|
|
5476
5455
|
} : void 0
|
|
5477
5456
|
};
|
|
5478
5457
|
}
|
|
5479
|
-
function
|
|
5458
|
+
function ii(e) {
|
|
5480
5459
|
const r = e.trim().split(/\s+/).filter(Boolean);
|
|
5481
5460
|
if (r.length === 0) return "?";
|
|
5482
5461
|
if (r.length === 1) return r[0].slice(0, 2).toUpperCase();
|
|
5483
5462
|
const n = r[0][0], a = r[r.length - 1][0];
|
|
5484
5463
|
return `${n}${a}`.toUpperCase();
|
|
5485
5464
|
}
|
|
5486
|
-
function
|
|
5465
|
+
function si(e) {
|
|
5487
5466
|
if (!e) return "—";
|
|
5488
5467
|
const r = e.toLowerCase();
|
|
5489
5468
|
return r === "female" ? "Female" : r === "male" ? "Male" : e.charAt(0).toUpperCase() + e.slice(1).toLowerCase();
|
|
5490
5469
|
}
|
|
5491
|
-
function
|
|
5470
|
+
function ci(e) {
|
|
5492
5471
|
var a, o;
|
|
5493
5472
|
const r = (o = (a = e.patient) == null ? void 0 : a.name) == null ? void 0 : o.trim();
|
|
5494
5473
|
if (!r) return;
|
|
5495
5474
|
const n = [
|
|
5496
|
-
["Gender",
|
|
5497
|
-
[
|
|
5498
|
-
|
|
5499
|
-
e.patient.chrono_age != null ? String(e.patient.chrono_age) : "—"
|
|
5500
|
-
],
|
|
5501
|
-
[
|
|
5502
|
-
"Biological age",
|
|
5503
|
-
e.patient.bio_age != null ? String(e.patient.bio_age) : "—"
|
|
5504
|
-
]
|
|
5475
|
+
["Gender", si(e.patient.gender)],
|
|
5476
|
+
["Chronological age", e.patient.chrono_age != null ? String(e.patient.chrono_age) : "—"],
|
|
5477
|
+
["Biological age", e.patient.bio_age != null ? String(e.patient.bio_age) : "—"]
|
|
5505
5478
|
];
|
|
5506
5479
|
return {
|
|
5507
5480
|
patientName: r,
|
|
5508
|
-
initials:
|
|
5481
|
+
initials: ii(r),
|
|
5509
5482
|
rows: n
|
|
5510
5483
|
};
|
|
5511
5484
|
}
|
|
5512
|
-
function
|
|
5485
|
+
function Se(e) {
|
|
5513
5486
|
if (!e) return null;
|
|
5514
|
-
const r = /^(\d{4})-(\d{2})-(\d{2})$/.exec(e), n = r ? new Date(
|
|
5515
|
-
Number(r[1]),
|
|
5516
|
-
Number(r[2]) - 1,
|
|
5517
|
-
Number(r[3])
|
|
5518
|
-
) : new Date(e);
|
|
5487
|
+
const r = /^(\d{4})-(\d{2})-(\d{2})$/.exec(e), n = r ? new Date(Number(r[1]), Number(r[2]) - 1, Number(r[3])) : new Date(e);
|
|
5519
5488
|
return Number.isNaN(n.getTime()) ? e : n.toLocaleDateString(void 0, {
|
|
5520
5489
|
year: "numeric",
|
|
5521
5490
|
month: "short",
|
|
5522
5491
|
day: "numeric"
|
|
5523
5492
|
});
|
|
5524
5493
|
}
|
|
5525
|
-
function
|
|
5494
|
+
function di(e) {
|
|
5526
5495
|
if (e.overall_score == null) return;
|
|
5527
|
-
const r = Math.round(e.overall_score), n =
|
|
5528
|
-
e.questionnaire_last_date
|
|
5529
|
-
), o = e.wearable_last_activity ?? null;
|
|
5496
|
+
const r = Math.round(e.overall_score), n = Se(e.labs_last_date), a = Se(e.questionnaire_last_date), o = e.wearable_last_activity ?? null;
|
|
5530
5497
|
return {
|
|
5531
5498
|
sectionTitle: "Overall Metabolic Score",
|
|
5532
5499
|
scorePercent: r,
|
|
@@ -5541,15 +5508,15 @@ function ui(e) {
|
|
|
5541
5508
|
wearableValueLabel: o ?? ""
|
|
5542
5509
|
};
|
|
5543
5510
|
}
|
|
5544
|
-
function
|
|
5511
|
+
function mi(e, r) {
|
|
5545
5512
|
if (e.triads.length === 0) return;
|
|
5546
5513
|
const n = e.triads.map((i) => ({
|
|
5547
5514
|
triadNumber: i.number,
|
|
5548
5515
|
name: `${i.name} Triad`,
|
|
5549
|
-
aggregateScoreDisplay:
|
|
5516
|
+
aggregateScoreDisplay: Ce(i.total_score)
|
|
5550
5517
|
})), a = e.triads.map(
|
|
5551
|
-
(i) => i.organs.map((s) =>
|
|
5552
|
-
), o =
|
|
5518
|
+
(i) => i.organs.map((s) => li(s, r))
|
|
5519
|
+
), o = Se(e.labs_last_date);
|
|
5553
5520
|
return {
|
|
5554
5521
|
sectionTitle: "Total Predictive Trends",
|
|
5555
5522
|
infoAriaLabel: "Total predictive trends information",
|
|
@@ -5561,16 +5528,16 @@ function bi(e, r) {
|
|
|
5561
5528
|
categoriesByTriadIndex: a
|
|
5562
5529
|
};
|
|
5563
5530
|
}
|
|
5564
|
-
function
|
|
5531
|
+
function ui(e) {
|
|
5565
5532
|
if (e.lab_metrics.length === 0) return;
|
|
5566
5533
|
const r = e.lab_metrics.map((a) => ({
|
|
5567
5534
|
name: a.name,
|
|
5568
5535
|
infoAriaLabel: `${a.name} information`,
|
|
5569
5536
|
symptomScore: "—",
|
|
5570
|
-
labScore: a.value != null ?
|
|
5537
|
+
labScore: a.value != null ? Pe(a.value, ri(a.unit)) : "—",
|
|
5571
5538
|
totalScore: a.indicator_percent != null ? String(Math.round(a.indicator_percent)) : "—",
|
|
5572
|
-
status:
|
|
5573
|
-
})), n =
|
|
5539
|
+
status: a.status
|
|
5540
|
+
})), n = Se(e.labs_last_date);
|
|
5574
5541
|
return {
|
|
5575
5542
|
sectionTitle: "Lab Alerts Summary",
|
|
5576
5543
|
infoAriaLabel: "Alert lab summary information",
|
|
@@ -5587,13 +5554,13 @@ function zr(e, r) {
|
|
|
5587
5554
|
title: "Dashboard",
|
|
5588
5555
|
subtitle: Ar
|
|
5589
5556
|
},
|
|
5590
|
-
patientSummary:
|
|
5557
|
+
patientSummary: ci(e),
|
|
5591
5558
|
welcome: {
|
|
5592
5559
|
title: "",
|
|
5593
5560
|
paragraphs: [],
|
|
5594
5561
|
actions: [{ id: "export-reports", label: "Export All Reports" }]
|
|
5595
5562
|
},
|
|
5596
|
-
overallScore:
|
|
5563
|
+
overallScore: di(e),
|
|
5597
5564
|
metaflammation: e.metaflammation ? {
|
|
5598
5565
|
title: "Metaflammation Gauge",
|
|
5599
5566
|
value: e.metaflammation.value,
|
|
@@ -5601,12 +5568,12 @@ function zr(e, r) {
|
|
|
5601
5568
|
infoAriaLabel: "Metaflammation gauge information",
|
|
5602
5569
|
centerValueColor: "#E97180"
|
|
5603
5570
|
} : void 0,
|
|
5604
|
-
totalPredictiveTrends:
|
|
5605
|
-
alertLabSummaryTable:
|
|
5571
|
+
totalPredictiveTrends: mi(e, r),
|
|
5572
|
+
alertLabSummaryTable: ui(e),
|
|
5606
5573
|
organContent: r
|
|
5607
5574
|
};
|
|
5608
5575
|
}
|
|
5609
|
-
const
|
|
5576
|
+
const bi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5610
5577
|
__proto__: null,
|
|
5611
5578
|
mapDashboardPageDtoToTabContent: zr
|
|
5612
5579
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
@@ -5632,46 +5599,57 @@ function Or(e) {
|
|
|
5632
5599
|
})
|
|
5633
5600
|
};
|
|
5634
5601
|
}
|
|
5635
|
-
const
|
|
5602
|
+
const hi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5636
5603
|
__proto__: null,
|
|
5637
5604
|
mapLabAnalysisDtoToTabContent: Or
|
|
5638
5605
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
5639
|
-
function
|
|
5606
|
+
function fi(e) {
|
|
5640
5607
|
const r = e.unit ?? "";
|
|
5641
5608
|
return {
|
|
5642
5609
|
title: e.name,
|
|
5643
5610
|
infoAriaLabel: `${e.name} information`,
|
|
5644
5611
|
normalRange: ft(e.normal_range, r),
|
|
5645
|
-
currentRange:
|
|
5646
|
-
previousRange: e.previous_value != null ?
|
|
5647
|
-
indicatorPercent: e.indicator_percent ?? 50
|
|
5612
|
+
currentRange: Pe(e.value, r),
|
|
5613
|
+
previousRange: e.previous_value != null ? Pe(e.previous_value, r) : void 0,
|
|
5614
|
+
indicatorPercent: e.indicator_percent ?? 50,
|
|
5615
|
+
status: e.status
|
|
5648
5616
|
};
|
|
5649
5617
|
}
|
|
5650
|
-
function
|
|
5618
|
+
function gi(e) {
|
|
5651
5619
|
return {
|
|
5652
5620
|
title: e.organ_name,
|
|
5653
5621
|
subtitle: `T${e.triad_number} Lab Values`,
|
|
5654
|
-
metrics: e.metrics.map(
|
|
5622
|
+
metrics: e.metrics.map(fi)
|
|
5655
5623
|
};
|
|
5656
5624
|
}
|
|
5625
|
+
function pi(e, r) {
|
|
5626
|
+
const n = /* @__PURE__ */ new Map();
|
|
5627
|
+
return e.forEach((a) => {
|
|
5628
|
+
n.has(a.triad_number) || n.set(a.triad_number, a);
|
|
5629
|
+
}), Array.from(n.values()).map((a) => {
|
|
5630
|
+
var i;
|
|
5631
|
+
const o = ((i = r == null ? void 0 : r.find((s) => s.number === a.triad_number)) == null ? void 0 : i.explainer_paragraphs) ?? Ir(a.triad_number);
|
|
5632
|
+
return {
|
|
5633
|
+
triadNumber: a.triad_number,
|
|
5634
|
+
heading: `Triad ${a.triad_number}: ${a.triad_name}`,
|
|
5635
|
+
videoAriaLabel: "Play introduction video",
|
|
5636
|
+
paragraphs: o
|
|
5637
|
+
};
|
|
5638
|
+
});
|
|
5639
|
+
}
|
|
5657
5640
|
function Er(e, r) {
|
|
5658
|
-
|
|
5659
|
-
const n = e.groups ?? [], a = n[0], o = a ? ((i = r == null ? void 0 : r.find((s) => s.number === a.triad_number)) == null ? void 0 : i.explainer_paragraphs) ?? Ir(a.triad_number) : [];
|
|
5641
|
+
const n = e.groups ?? [], a = pi(n, r), o = a[0];
|
|
5660
5642
|
return {
|
|
5661
5643
|
pageHeader: {
|
|
5662
5644
|
title: "Lab Results",
|
|
5663
5645
|
subtitle: Mr
|
|
5664
5646
|
},
|
|
5665
|
-
intro:
|
|
5666
|
-
|
|
5667
|
-
|
|
5668
|
-
videoAriaLabel: "Play introduction video",
|
|
5669
|
-
paragraphs: o
|
|
5670
|
-
} : void 0,
|
|
5671
|
-
groups: n.map(xi)
|
|
5647
|
+
intro: o,
|
|
5648
|
+
intros: a,
|
|
5649
|
+
groups: n.map(gi)
|
|
5672
5650
|
};
|
|
5673
5651
|
}
|
|
5674
|
-
const
|
|
5652
|
+
const xi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5675
5653
|
__proto__: null,
|
|
5676
5654
|
mapLabResultsDtoToTabContent: Er
|
|
5677
5655
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
@@ -5695,10 +5673,13 @@ function Fr(e) {
|
|
|
5695
5673
|
}))
|
|
5696
5674
|
};
|
|
5697
5675
|
}
|
|
5698
|
-
const
|
|
5676
|
+
const vi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5699
5677
|
__proto__: null,
|
|
5700
5678
|
mapQuestionnaireAnalysisDtoToTabContent: Fr
|
|
5701
5679
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
5680
|
+
function wi(e) {
|
|
5681
|
+
return e >= 60 ? "high" : e <= 40 ? "low" : "optimal";
|
|
5682
|
+
}
|
|
5702
5683
|
function Gr(e, r) {
|
|
5703
5684
|
const n = e.triad_number ?? null, a = e.triad_name ?? null, o = (r == null ? void 0 : r.includes("lab-results")) ?? !0;
|
|
5704
5685
|
return {
|
|
@@ -5719,7 +5700,8 @@ function Gr(e, r) {
|
|
|
5719
5700
|
normalRange: ft(i.normal_range, ""),
|
|
5720
5701
|
currentRange: String(i.score),
|
|
5721
5702
|
previousRange: i.previous_score != null ? String(i.previous_score) : void 0,
|
|
5722
|
-
indicatorPercent: Math.round(i.indicator_percent)
|
|
5703
|
+
indicatorPercent: Math.round(i.indicator_percent),
|
|
5704
|
+
status: wi(i.indicator_percent)
|
|
5723
5705
|
})) : [],
|
|
5724
5706
|
symptomsSectionTitle: "Symptoms",
|
|
5725
5707
|
symptoms: [...e.symptoms],
|
|
@@ -5846,7 +5828,7 @@ const Mi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
5846
5828
|
function Hi(e, r) {
|
|
5847
5829
|
return r ? { ...e, ...r } : e;
|
|
5848
5830
|
}
|
|
5849
|
-
const ki =
|
|
5831
|
+
const ki = De.map(
|
|
5850
5832
|
(e) => e.id
|
|
5851
5833
|
);
|
|
5852
5834
|
function gt(e) {
|
|
@@ -5874,29 +5856,29 @@ function Bi({
|
|
|
5874
5856
|
const s = F(0), c = B(
|
|
5875
5857
|
(u) => {
|
|
5876
5858
|
if (n <= 0) return;
|
|
5877
|
-
const
|
|
5878
|
-
if (
|
|
5879
|
-
if (Date.now() >
|
|
5859
|
+
const h = a.current.get(u);
|
|
5860
|
+
if (h) {
|
|
5861
|
+
if (Date.now() > h.expiresAt) {
|
|
5880
5862
|
a.current.delete(u);
|
|
5881
5863
|
return;
|
|
5882
5864
|
}
|
|
5883
|
-
return
|
|
5865
|
+
return h.data;
|
|
5884
5866
|
}
|
|
5885
5867
|
},
|
|
5886
5868
|
[n]
|
|
5887
5869
|
), d = B(
|
|
5888
|
-
(u,
|
|
5889
|
-
n <= 0 || a.current.set(u, { data:
|
|
5870
|
+
(u, h) => {
|
|
5871
|
+
n <= 0 || a.current.set(u, { data: h, expiresAt: Date.now() + n });
|
|
5890
5872
|
},
|
|
5891
5873
|
[n]
|
|
5892
5874
|
);
|
|
5893
5875
|
V(() => {
|
|
5894
5876
|
s.current += 1, a.current.clear(), o.current.clear(), i.current = r;
|
|
5895
|
-
const u = new AbortController(),
|
|
5896
|
-
return Object.keys(r).forEach((
|
|
5897
|
-
const
|
|
5898
|
-
r[
|
|
5899
|
-
s.current ===
|
|
5877
|
+
const u = new AbortController(), h = s.current;
|
|
5878
|
+
return Object.keys(r).forEach((f) => {
|
|
5879
|
+
const p = f;
|
|
5880
|
+
r[p](u.signal).then((y) => {
|
|
5881
|
+
s.current === h && d(p, y);
|
|
5900
5882
|
}).catch(() => {
|
|
5901
5883
|
});
|
|
5902
5884
|
}), () => u.abort();
|
|
@@ -5904,14 +5886,14 @@ function Bi({
|
|
|
5904
5886
|
const m = B((u) => {
|
|
5905
5887
|
u === void 0 ? a.current.clear() : a.current.delete(u);
|
|
5906
5888
|
}, []), b = B(
|
|
5907
|
-
async (u,
|
|
5908
|
-
const
|
|
5909
|
-
if (
|
|
5910
|
-
const
|
|
5911
|
-
if (
|
|
5889
|
+
async (u, h) => {
|
|
5890
|
+
const f = c(u);
|
|
5891
|
+
if (f !== void 0) return f;
|
|
5892
|
+
const p = o.current.get(u);
|
|
5893
|
+
if (p) return p;
|
|
5912
5894
|
const y = s.current, C = (async () => {
|
|
5913
5895
|
try {
|
|
5914
|
-
const N = await i.current[u](
|
|
5896
|
+
const N = await i.current[u](h);
|
|
5915
5897
|
return y === s.current && d(u, N), N;
|
|
5916
5898
|
} finally {
|
|
5917
5899
|
o.current.delete(u);
|
|
@@ -5920,11 +5902,11 @@ function Bi({
|
|
|
5920
5902
|
return o.current.set(u, C), C;
|
|
5921
5903
|
},
|
|
5922
5904
|
[c, d]
|
|
5923
|
-
),
|
|
5905
|
+
), g = B(
|
|
5924
5906
|
(u) => {
|
|
5925
5907
|
if (!gt(u)) return;
|
|
5926
|
-
const
|
|
5927
|
-
b(u,
|
|
5908
|
+
const h = new AbortController();
|
|
5909
|
+
b(u, h.signal).catch(() => {
|
|
5928
5910
|
});
|
|
5929
5911
|
},
|
|
5930
5912
|
[b]
|
|
@@ -5933,9 +5915,9 @@ function Bi({
|
|
|
5933
5915
|
loadTab: b,
|
|
5934
5916
|
readValid: c,
|
|
5935
5917
|
invalidate: m,
|
|
5936
|
-
prefetch:
|
|
5918
|
+
prefetch: g
|
|
5937
5919
|
}),
|
|
5938
|
-
[b, c, m,
|
|
5920
|
+
[b, c, m, g]
|
|
5939
5921
|
);
|
|
5940
5922
|
return /* @__PURE__ */ t(pt.Provider, { value: v, children: e });
|
|
5941
5923
|
}
|
|
@@ -5960,28 +5942,28 @@ function Ri(e, r) {
|
|
|
5960
5942
|
}, [c, e]), m = F(r.fetchers);
|
|
5961
5943
|
return m.current = r.fetchers, V(() => {
|
|
5962
5944
|
let b = !0;
|
|
5963
|
-
const
|
|
5945
|
+
const g = new AbortController(), { signal: v } = g;
|
|
5964
5946
|
return (async () => {
|
|
5965
|
-
var
|
|
5947
|
+
var h;
|
|
5966
5948
|
if (c) {
|
|
5967
|
-
const
|
|
5968
|
-
if (
|
|
5969
|
-
a({ type: "loadSuccess", data:
|
|
5949
|
+
const f = c.readValid(e);
|
|
5950
|
+
if (f !== void 0) {
|
|
5951
|
+
a({ type: "loadSuccess", data: f });
|
|
5970
5952
|
return;
|
|
5971
5953
|
}
|
|
5972
5954
|
}
|
|
5973
5955
|
a({ type: "loadStart" });
|
|
5974
5956
|
try {
|
|
5975
|
-
const
|
|
5957
|
+
const f = c ? await c.loadTab(e, v) : await m.current[e](v);
|
|
5976
5958
|
if (!b) return;
|
|
5977
|
-
a({ type: "loadSuccess", data:
|
|
5978
|
-
} catch (
|
|
5979
|
-
if (!b || Ii(
|
|
5980
|
-
const
|
|
5981
|
-
a({ type: "loadError", error:
|
|
5959
|
+
a({ type: "loadSuccess", data: f });
|
|
5960
|
+
} catch (f) {
|
|
5961
|
+
if (!b || Ii(f)) return;
|
|
5962
|
+
const p = f instanceof Error ? f : new Error(String(f));
|
|
5963
|
+
a({ type: "loadError", error: p }), (h = s.current) == null || h.call(s, { navItemId: e, error: p });
|
|
5982
5964
|
}
|
|
5983
5965
|
})(), () => {
|
|
5984
|
-
b = !1,
|
|
5966
|
+
b = !1, g.abort();
|
|
5985
5967
|
};
|
|
5986
5968
|
}, [e, o, c]), { ...n, refetch: d, loadGeneration: o };
|
|
5987
5969
|
}
|
|
@@ -6194,7 +6176,7 @@ function Zi({
|
|
|
6194
6176
|
onDashboardTabContentLoadError: i
|
|
6195
6177
|
}
|
|
6196
6178
|
));
|
|
6197
|
-
return !c && d ? /* @__PURE__ */ t(Oi, { className: "max-w-full shrink-0" }) : Br(s) ? /* @__PURE__ */ l(
|
|
6179
|
+
return !c && d ? /* @__PURE__ */ t(Oi, { className: "max-w-full shrink-0" }) : Br(s) ? /* @__PURE__ */ l(ae, { children: [
|
|
6198
6180
|
/* @__PURE__ */ t(zi, { className: "max-w-full shrink-0" }),
|
|
6199
6181
|
m
|
|
6200
6182
|
] }) : m;
|
|
@@ -6211,11 +6193,11 @@ function Wi({
|
|
|
6211
6193
|
activeItemId: d,
|
|
6212
6194
|
handleNavItemClick: m,
|
|
6213
6195
|
shellClassName: b,
|
|
6214
|
-
sidebarWidthClassName:
|
|
6196
|
+
sidebarWidthClassName: g,
|
|
6215
6197
|
mainAreaClassName: v,
|
|
6216
6198
|
mainContent: u
|
|
6217
6199
|
}) {
|
|
6218
|
-
const
|
|
6200
|
+
const h = Zr();
|
|
6219
6201
|
return /* @__PURE__ */ t(
|
|
6220
6202
|
"div",
|
|
6221
6203
|
{
|
|
@@ -6235,12 +6217,12 @@ function Wi({
|
|
|
6235
6217
|
items: c,
|
|
6236
6218
|
activeItemId: d,
|
|
6237
6219
|
onItemClick: m,
|
|
6238
|
-
onNavItemPrefetch: r &&
|
|
6239
|
-
gt(
|
|
6220
|
+
onNavItemPrefetch: r && h ? (p) => {
|
|
6221
|
+
gt(p) && h.prefetch(p);
|
|
6240
6222
|
} : void 0
|
|
6241
6223
|
}
|
|
6242
6224
|
),
|
|
6243
|
-
sidebarWidthClassName:
|
|
6225
|
+
sidebarWidthClassName: g,
|
|
6244
6226
|
className: b,
|
|
6245
6227
|
children: /* @__PURE__ */ t("div", { className: v, children: u })
|
|
6246
6228
|
}
|
|
@@ -6447,14 +6429,14 @@ async function as(e) {
|
|
|
6447
6429
|
m = d;
|
|
6448
6430
|
}
|
|
6449
6431
|
if (!c.ok) {
|
|
6450
|
-
const
|
|
6432
|
+
const g = (typeof m == "object" && m !== null && "error" in m && typeof m.error == "string" ? m.error : null) ?? `HTTP ${c.status}`, v = new Error(g);
|
|
6451
6433
|
throw v.status = c.status, v;
|
|
6452
6434
|
}
|
|
6453
6435
|
if (m === null || typeof m != "object" || Array.isArray(m) || !("report" in m) || !("pages" in m))
|
|
6454
6436
|
throw new Error("Unexpected response shape for /report/full: missing 'report' or 'pages'");
|
|
6455
6437
|
return m;
|
|
6456
6438
|
}
|
|
6457
|
-
const os = 5e3,
|
|
6439
|
+
const os = 5e3, _e = /* @__PURE__ */ new Map();
|
|
6458
6440
|
function ls(e, r, n, a) {
|
|
6459
6441
|
return `${e}|${r ?? ""}|${n ?? ""}|${a ?? ""}`;
|
|
6460
6442
|
}
|
|
@@ -6467,7 +6449,7 @@ function is(e) {
|
|
|
6467
6449
|
questionnaireResponseId: i,
|
|
6468
6450
|
fetchImpl: s,
|
|
6469
6451
|
onFullReportLoaded: c
|
|
6470
|
-
} = e, d =
|
|
6452
|
+
} = e, d = fe(), m = Re({
|
|
6471
6453
|
apiKey: a,
|
|
6472
6454
|
userId: o,
|
|
6473
6455
|
questionnaireResponseId: i,
|
|
@@ -6477,55 +6459,55 @@ function is(e) {
|
|
|
6477
6459
|
a,
|
|
6478
6460
|
o,
|
|
6479
6461
|
i
|
|
6480
|
-
),
|
|
6481
|
-
}),
|
|
6482
|
-
const
|
|
6483
|
-
if (
|
|
6484
|
-
const
|
|
6462
|
+
), g = (f) => (c && f.then(c, () => {
|
|
6463
|
+
}), f), v = () => {
|
|
6464
|
+
const f = _e.get(b);
|
|
6465
|
+
if (f && Date.now() < f.expiresAt) return g(f.promise);
|
|
6466
|
+
const p = as({
|
|
6485
6467
|
baseUrl: d,
|
|
6486
6468
|
reportId: r,
|
|
6487
6469
|
headers: m,
|
|
6488
6470
|
fetchImpl: s
|
|
6489
6471
|
});
|
|
6490
|
-
return
|
|
6472
|
+
return p.catch(() => _e.delete(b)), _e.set(b, { promise: p, expiresAt: Date.now() + os }), g(p);
|
|
6491
6473
|
};
|
|
6492
6474
|
v();
|
|
6493
|
-
const u = (
|
|
6475
|
+
const u = (f) => v();
|
|
6494
6476
|
return {
|
|
6495
|
-
dashboard: async (
|
|
6496
|
-
const
|
|
6497
|
-
return zr(
|
|
6477
|
+
dashboard: async (f) => {
|
|
6478
|
+
const p = await u();
|
|
6479
|
+
return zr(p.pages.dashboard, p.organ_content);
|
|
6498
6480
|
},
|
|
6499
|
-
"total-predictive-index": async (
|
|
6500
|
-
const
|
|
6481
|
+
"total-predictive-index": async (f) => {
|
|
6482
|
+
const p = await u();
|
|
6501
6483
|
return Xr(
|
|
6502
|
-
|
|
6503
|
-
|
|
6504
|
-
|
|
6484
|
+
p.pages["total-predictive-index"],
|
|
6485
|
+
p.organ_content,
|
|
6486
|
+
p.cortisol_content
|
|
6505
6487
|
);
|
|
6506
6488
|
},
|
|
6507
|
-
"wellness-indicators": async (
|
|
6508
|
-
"questionnaire-analysis": async (
|
|
6489
|
+
"wellness-indicators": async (f) => Vr((await u()).pages["wellness-indicators"]),
|
|
6490
|
+
"questionnaire-analysis": async (f) => Fr(
|
|
6509
6491
|
(await u()).pages["questionnaire-analysis"]
|
|
6510
6492
|
),
|
|
6511
|
-
"supplement-schedule": async (
|
|
6512
|
-
"lab-results": async (
|
|
6513
|
-
const
|
|
6514
|
-
return Er(
|
|
6493
|
+
"supplement-schedule": async (f) => Yr((await u()).pages["supplement-schedule"]),
|
|
6494
|
+
"lab-results": async (f) => {
|
|
6495
|
+
const p = await u();
|
|
6496
|
+
return Er(p.pages["lab-results"], p.triad_content);
|
|
6515
6497
|
},
|
|
6516
|
-
"suggested-products": async (
|
|
6517
|
-
const
|
|
6498
|
+
"suggested-products": async (f) => {
|
|
6499
|
+
const p = await u();
|
|
6518
6500
|
return Gr(
|
|
6519
|
-
|
|
6520
|
-
|
|
6501
|
+
p.pages["suggested-products"],
|
|
6502
|
+
p.report.available_pages
|
|
6521
6503
|
);
|
|
6522
6504
|
},
|
|
6523
|
-
"lab-analysis": async (
|
|
6524
|
-
"alert-lab-summary": async (
|
|
6525
|
-
const
|
|
6505
|
+
"lab-analysis": async (f) => Or((await u()).pages["lab-analysis"]),
|
|
6506
|
+
"alert-lab-summary": async (f) => {
|
|
6507
|
+
const p = await u();
|
|
6526
6508
|
return Rr(
|
|
6527
|
-
|
|
6528
|
-
|
|
6509
|
+
p.pages["alert-lab-summary"],
|
|
6510
|
+
p.alert_lab_content
|
|
6529
6511
|
);
|
|
6530
6512
|
}
|
|
6531
6513
|
};
|
|
@@ -6544,42 +6526,42 @@ function cs({
|
|
|
6544
6526
|
dashboardTabContentCacheTtlMs: c,
|
|
6545
6527
|
simulationReportId: d
|
|
6546
6528
|
}) {
|
|
6547
|
-
const m = r ?? (e == null ? void 0 : e.apiKey), b = Ao(m),
|
|
6529
|
+
const m = r ?? (e == null ? void 0 : e.apiKey), b = Ao(m), g = i === void 0 && s === void 0, [v, u] = H(), h = j(() => {
|
|
6548
6530
|
const P = { ...n ?? {} };
|
|
6549
6531
|
return d != null && (P.reportId = d), P;
|
|
6550
|
-
}, [n, d]),
|
|
6532
|
+
}, [n, d]), f = j(
|
|
6551
6533
|
() => [
|
|
6552
|
-
|
|
6553
|
-
|
|
6554
|
-
|
|
6555
|
-
|
|
6534
|
+
h.apiKey ?? "",
|
|
6535
|
+
h.userId ?? "",
|
|
6536
|
+
h.reportId ?? "",
|
|
6537
|
+
h.questionnaireResponseId ?? ""
|
|
6556
6538
|
].join("|"),
|
|
6557
6539
|
[
|
|
6558
|
-
|
|
6559
|
-
|
|
6560
|
-
|
|
6561
|
-
|
|
6540
|
+
h.apiKey,
|
|
6541
|
+
h.userId,
|
|
6542
|
+
h.reportId,
|
|
6543
|
+
h.questionnaireResponseId
|
|
6562
6544
|
]
|
|
6563
|
-
),
|
|
6545
|
+
), p = F(f);
|
|
6564
6546
|
V(() => {
|
|
6565
|
-
|
|
6566
|
-
}, [
|
|
6547
|
+
p.current = f, u(void 0);
|
|
6548
|
+
}, [f]);
|
|
6567
6549
|
const y = B((P, A) => {
|
|
6568
|
-
if (
|
|
6550
|
+
if (p.current !== A) return;
|
|
6569
6551
|
const S = [...P.report.available_pages];
|
|
6570
6552
|
u(
|
|
6571
6553
|
(L) => ss(L, S) ? L : S
|
|
6572
6554
|
);
|
|
6573
6555
|
}, []), C = j(() => {
|
|
6574
6556
|
const P = is({
|
|
6575
|
-
...
|
|
6576
|
-
onFullReportLoaded: (A) => y(A,
|
|
6557
|
+
...h,
|
|
6558
|
+
onFullReportLoaded: (A) => y(A, f)
|
|
6577
6559
|
});
|
|
6578
6560
|
return Hi(P, a);
|
|
6579
|
-
}, [a, y,
|
|
6561
|
+
}, [a, y, f, h]), N = j(() => o || Kl(h), [o, h]);
|
|
6580
6562
|
return {
|
|
6581
6563
|
apiKeyAccepted: b,
|
|
6582
|
-
useDefaultTabData:
|
|
6564
|
+
useDefaultTabData: g,
|
|
6583
6565
|
resolvedDashboardContentFetchers: C,
|
|
6584
6566
|
resolvedExportReports: N,
|
|
6585
6567
|
resolvedCacheTtlMs: c ?? ji,
|
|
@@ -6589,7 +6571,7 @@ function cs({
|
|
|
6589
6571
|
function ds(e) {
|
|
6590
6572
|
const { logo: r } = e, { src: n, srcMobile: a, alt: o, width: i, height: s, widthMobile: c, heightMobile: d, placeholder: m } = r;
|
|
6591
6573
|
if (n && a)
|
|
6592
|
-
return /* @__PURE__ */ l(
|
|
6574
|
+
return /* @__PURE__ */ l(ae, { children: [
|
|
6593
6575
|
/* @__PURE__ */ t(
|
|
6594
6576
|
"img",
|
|
6595
6577
|
{
|
|
@@ -6654,24 +6636,24 @@ function ms({
|
|
|
6654
6636
|
)
|
|
6655
6637
|
] });
|
|
6656
6638
|
}
|
|
6657
|
-
function
|
|
6639
|
+
function Ne(e) {
|
|
6658
6640
|
return e === "practitioner" ? "practitioner" : e === "patient" ? "patient" : null;
|
|
6659
6641
|
}
|
|
6660
6642
|
function us(e) {
|
|
6661
6643
|
const [r, n] = H(
|
|
6662
|
-
() =>
|
|
6663
|
-
), [a, o] = H(null), [i, s] = H(""), [c, d] = H(null), [m, b] = H(""),
|
|
6644
|
+
() => Ne(e)
|
|
6645
|
+
), [a, o] = H(null), [i, s] = H(""), [c, d] = H(null), [m, b] = H(""), g = j(() => {
|
|
6664
6646
|
if (r === "practitioner" && a != null)
|
|
6665
6647
|
return a;
|
|
6666
6648
|
if (r === "patient" && c != null)
|
|
6667
6649
|
return c;
|
|
6668
6650
|
}, [r, a, c]), v = r === "practitioner" && a !== null || r === "patient" && c !== null, u = B(() => {
|
|
6669
|
-
n(
|
|
6670
|
-
}, [e]),
|
|
6671
|
-
() => n(
|
|
6651
|
+
n(Ne(e)), o(null), s(""), d(null), b("");
|
|
6652
|
+
}, [e]), h = B(() => n("practitioner"), []), f = B(() => n("patient"), []), p = B(
|
|
6653
|
+
() => n(Ne(e)),
|
|
6672
6654
|
[e]
|
|
6673
6655
|
), y = B(
|
|
6674
|
-
() => n(
|
|
6656
|
+
() => n(Ne(e)),
|
|
6675
6657
|
[e]
|
|
6676
6658
|
), C = B((w, P) => {
|
|
6677
6659
|
o(w), s(P);
|
|
@@ -6689,12 +6671,12 @@ function us(e) {
|
|
|
6689
6671
|
setSimPatientReportId: d,
|
|
6690
6672
|
simPatientReportLabel: m,
|
|
6691
6673
|
setSimPatientReportLabel: b,
|
|
6692
|
-
simulationReportId:
|
|
6674
|
+
simulationReportId: g,
|
|
6693
6675
|
simulationSessionReady: v,
|
|
6694
6676
|
resetSimulationSession: u,
|
|
6695
|
-
onChoosePractitioner:
|
|
6696
|
-
onChoosePatient:
|
|
6697
|
-
onBackFromPatientPicker:
|
|
6677
|
+
onChoosePractitioner: h,
|
|
6678
|
+
onChoosePatient: f,
|
|
6679
|
+
onBackFromPatientPicker: p,
|
|
6698
6680
|
onBackFromPatientReportPicker: y,
|
|
6699
6681
|
onSelectPatient: C,
|
|
6700
6682
|
onSelectPatientReport: N
|
|
@@ -6719,9 +6701,9 @@ const hs = "Your lab results will be available once the lab requisition has been
|
|
|
6719
6701
|
"alert-lab-summary"
|
|
6720
6702
|
]);
|
|
6721
6703
|
function gs(e) {
|
|
6722
|
-
if (!e) return
|
|
6704
|
+
if (!e) return Le;
|
|
6723
6705
|
const r = new Set(e);
|
|
6724
|
-
return
|
|
6706
|
+
return Le.map((n) => !fs.has(n.id) || r.has(n.id) ? n : {
|
|
6725
6707
|
...n,
|
|
6726
6708
|
disabled: !0,
|
|
6727
6709
|
disabledTooltip: hs
|
|
@@ -6739,12 +6721,12 @@ function ps({
|
|
|
6739
6721
|
dashboardContentFetchers: d,
|
|
6740
6722
|
onDashboardTabContentLoadError: m,
|
|
6741
6723
|
onExportReports: b,
|
|
6742
|
-
renderMainContent:
|
|
6724
|
+
renderMainContent: g,
|
|
6743
6725
|
activeNavItemId: v,
|
|
6744
6726
|
defaultActiveNavItemId: u = Kt,
|
|
6745
|
-
onActiveNavItemChange:
|
|
6746
|
-
shellClassName:
|
|
6747
|
-
sideMenuClassName:
|
|
6727
|
+
onActiveNavItemChange: h,
|
|
6728
|
+
shellClassName: f,
|
|
6729
|
+
sideMenuClassName: p,
|
|
6748
6730
|
mainClassName: y,
|
|
6749
6731
|
sidebarWidthClassName: C,
|
|
6750
6732
|
dashboardTabContentCacheTtlMs: N
|
|
@@ -6754,8 +6736,8 @@ function ps({
|
|
|
6754
6736
|
const { resolvedBranding: w, rootStyle: P } = ts(e), A = us(n), { activeItemId: S, handleNavItemClick: L } = bs({
|
|
6755
6737
|
activeNavItemIdProp: v,
|
|
6756
6738
|
defaultActiveNavItemId: u,
|
|
6757
|
-
onActiveNavItemChange:
|
|
6758
|
-
}), z = ((se =
|
|
6739
|
+
onActiveNavItemChange: h
|
|
6740
|
+
}), z = ((se = Le.find((J) => J.id === S)) == null ? void 0 : se.label) ?? S, G = j(
|
|
6759
6741
|
() => o !== void 0 ? o : ds(w),
|
|
6760
6742
|
[w, o]
|
|
6761
6743
|
), D = cs({
|
|
@@ -6765,7 +6747,7 @@ function ps({
|
|
|
6765
6747
|
dashboardContentFetchers: d,
|
|
6766
6748
|
onExportReports: b,
|
|
6767
6749
|
content: s,
|
|
6768
|
-
renderMainContent:
|
|
6750
|
+
renderMainContent: g,
|
|
6769
6751
|
dashboardTabContentCacheTtlMs: N,
|
|
6770
6752
|
simulationReportId: A.simulationReportId
|
|
6771
6753
|
}), q = j(
|
|
@@ -6778,16 +6760,16 @@ function ps({
|
|
|
6778
6760
|
V(() => {
|
|
6779
6761
|
$.has(S) && L(Kt);
|
|
6780
6762
|
}, [S, $, L]);
|
|
6781
|
-
const
|
|
6763
|
+
const ze = j(
|
|
6782
6764
|
() => [
|
|
6783
6765
|
"flex min-h-0 min-w-0 w-full max-w-full flex-1 flex-col items-stretch gap-4 py-4 px-[max(1rem,var(--mb-main-padding,1.5rem))] text-[color:var(--mb-color-text-muted)] sm:px-[max(1.25rem,var(--mb-main-padding,1.5rem))]",
|
|
6784
6766
|
y
|
|
6785
6767
|
].filter(Boolean).join(" "),
|
|
6786
6768
|
[y]
|
|
6787
|
-
), ie = D.useDefaultTabData && D.apiKeyAccepted,
|
|
6769
|
+
), ie = D.useDefaultTabData && D.apiKeyAccepted, ge = /* @__PURE__ */ t(
|
|
6788
6770
|
Zi,
|
|
6789
6771
|
{
|
|
6790
|
-
renderMainContent:
|
|
6772
|
+
renderMainContent: g,
|
|
6791
6773
|
content: s,
|
|
6792
6774
|
activeItemId: S,
|
|
6793
6775
|
activeLabel: z,
|
|
@@ -6797,14 +6779,14 @@ function ps({
|
|
|
6797
6779
|
apiKeyAccepted: D.apiKeyAccepted,
|
|
6798
6780
|
useDefaultTabData: D.useDefaultTabData
|
|
6799
6781
|
}
|
|
6800
|
-
),
|
|
6782
|
+
), pe = /* @__PURE__ */ t(
|
|
6801
6783
|
ms,
|
|
6802
6784
|
{
|
|
6803
6785
|
role: A.simRole,
|
|
6804
6786
|
patientLabel: A.simRole === "patient" ? A.simPatientReportLabel : A.simPractitionerPatientLabel,
|
|
6805
6787
|
onChangeUser: A.resetSimulationSession
|
|
6806
6788
|
}
|
|
6807
|
-
),
|
|
6789
|
+
), xe = /* @__PURE__ */ t(
|
|
6808
6790
|
Ui,
|
|
6809
6791
|
{
|
|
6810
6792
|
wrapTabContentCache: ie,
|
|
@@ -6816,25 +6798,25 @@ function ps({
|
|
|
6816
6798
|
menuTitle: a !== void 0 ? a : w.title,
|
|
6817
6799
|
logo: G,
|
|
6818
6800
|
sideMenuUserProfile: i,
|
|
6819
|
-
sideMenuFooterContent:
|
|
6820
|
-
sideMenuClassName:
|
|
6801
|
+
sideMenuFooterContent: pe,
|
|
6802
|
+
sideMenuClassName: p,
|
|
6821
6803
|
sideMenuItems: q,
|
|
6822
6804
|
activeItemId: S,
|
|
6823
6805
|
handleNavItemClick: L,
|
|
6824
|
-
shellClassName:
|
|
6806
|
+
shellClassName: f,
|
|
6825
6807
|
sidebarWidthClassName: C,
|
|
6826
|
-
mainAreaClassName:
|
|
6827
|
-
mainContent:
|
|
6808
|
+
mainAreaClassName: ze,
|
|
6809
|
+
mainContent: ge
|
|
6828
6810
|
}
|
|
6829
6811
|
}
|
|
6830
|
-
),
|
|
6812
|
+
), ve = j(
|
|
6831
6813
|
() => ({
|
|
6832
6814
|
onExportReports: D.resolvedExportReports,
|
|
6833
6815
|
onNavigateToNavItem: L
|
|
6834
6816
|
}),
|
|
6835
6817
|
[D.resolvedExportReports, L]
|
|
6836
6818
|
);
|
|
6837
|
-
return /* @__PURE__ */ t(Ka, { value:
|
|
6819
|
+
return /* @__PURE__ */ t(Ka, { value: ve, children: /* @__PURE__ */ t(
|
|
6838
6820
|
es,
|
|
6839
6821
|
{
|
|
6840
6822
|
rootStyle: P,
|
|
@@ -6844,7 +6826,7 @@ function ps({
|
|
|
6844
6826
|
onBackFromPatientPicker: A.onBackFromPatientPicker,
|
|
6845
6827
|
onSelectPatientReport: A.onSelectPatientReport,
|
|
6846
6828
|
onBackFromPatientReportPicker: A.onBackFromPatientReportPicker,
|
|
6847
|
-
children:
|
|
6829
|
+
children: xe
|
|
6848
6830
|
}
|
|
6849
6831
|
) });
|
|
6850
6832
|
}
|
|
@@ -6908,7 +6890,7 @@ export {
|
|
|
6908
6890
|
_ as Badge,
|
|
6909
6891
|
M as Button,
|
|
6910
6892
|
ki as DASHBOARD_TAB_NAV_IDS,
|
|
6911
|
-
|
|
6893
|
+
De as DASHBOARD_TAB_PLUGINS,
|
|
6912
6894
|
ji as DEFAULT_DASHBOARD_TAB_CONTENT_CACHE_TTL_MS,
|
|
6913
6895
|
k as DEFAULT_METABOLIC_BRANDING,
|
|
6914
6896
|
T as DashboardCard,
|
|
@@ -6918,7 +6900,7 @@ export {
|
|
|
6918
6900
|
Bi as DashboardTabContentCacheProvider,
|
|
6919
6901
|
so as DashboardTabSkeleton,
|
|
6920
6902
|
or as GradientRangeBar,
|
|
6921
|
-
|
|
6903
|
+
he as LAB_METRIC_RANGE_BAR_SEGMENTS,
|
|
6922
6904
|
sl as LabAnalysisIcon,
|
|
6923
6905
|
Ds as LabAnalysisTab,
|
|
6924
6906
|
co as LabAnalysisTabSkeleton,
|
|
@@ -6938,8 +6920,8 @@ export {
|
|
|
6938
6920
|
Vi as MetabolicDashboardDefaultMain,
|
|
6939
6921
|
xs as MetabolicEmbedRoot,
|
|
6940
6922
|
Rn as MetabolicScoreBar,
|
|
6941
|
-
|
|
6942
|
-
|
|
6923
|
+
ne as MetabolicTriadCategoryPanel,
|
|
6924
|
+
Be as MetabolicTriadCategoryPanelSkeleton,
|
|
6943
6925
|
Ss as MetabolicTriadIntroCard,
|
|
6944
6926
|
gr as MetabolicTriadSectionCard,
|
|
6945
6927
|
lr as MetaflammationGauge,
|
|
@@ -6996,7 +6978,7 @@ export {
|
|
|
6996
6978
|
el as encodeMetabolicIframeConfig,
|
|
6997
6979
|
_r as ensureAgChartsModules,
|
|
6998
6980
|
U as fetchReportPage,
|
|
6999
|
-
|
|
6981
|
+
fe as getBuiltInReportPagesApiBaseUrl,
|
|
7000
6982
|
zl as getDashboardTabStaticPageHeader,
|
|
7001
6983
|
gt as isDashboardNavItemId,
|
|
7002
6984
|
Ao as isMetabolicDashboardApiKeyAccepted,
|
|
@@ -7020,7 +7002,7 @@ export {
|
|
|
7020
7002
|
rl as readMetabolicIframeConfigFromSearchParams,
|
|
7021
7003
|
bn as resolveMetabolicBranding,
|
|
7022
7004
|
W as sideMenuItemIconClass,
|
|
7023
|
-
|
|
7005
|
+
Me as useAgCharts,
|
|
7024
7006
|
Ri as useDashboardTabContent,
|
|
7025
7007
|
Ks as useInvalidateDashboardTabContentCache
|
|
7026
7008
|
};
|