@metaboliccode-dev/widget 0.2.86 → 0.2.87
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js
CHANGED
|
@@ -5,7 +5,7 @@ import { useAgCharts as Gt, ensureAgChartsModules as fq } from "./ag-charts.js";
|
|
|
5
5
|
import { c as Gq, g as BA, b as xl, a as Ll, d as vt, r as vq, e as Dq, f as wq, h as Mq, i as Yq, j as _q, M as $q, k as Wp } from "./entry-api-n7RYttkh.js";
|
|
6
6
|
import { l as vc, m as Dc, n as wc, o as Mc, p as Yc, q as _c, s as $c, t as Ak, u as tk, v as lk, w as pk, S as Sk, x as qk, y as ak, z as Uk, A as Vk, B as rk, C as nk, D as Kk, E as ek, F as dk, G as ck, H as kk, I as uk, J as ok, K as Wk, L as Rk, N as bk, O as Jk, P as Ok, Q as Ik, R as jk, T as ik, U as Tk, V as yk, W as Ek, X as sk, Y as Hk, Z as mk, _ as Pk, $ as Qk, a0 as Nk, a1 as Ck, a2 as Zk, a3 as zk, a4 as Xk, a5 as xk, a6 as Lk, a7 as gk, a8 as Bk } from "./entry-api-n7RYttkh.js";
|
|
7
7
|
import { jsx as t, jsxs as a, Fragment as lA } from "react/jsx-runtime";
|
|
8
|
-
import { useId as hA, useRef as x, useState as y, useLayoutEffect as sl, useMemo as z, useEffect as
|
|
8
|
+
import { useId as hA, useRef as x, useState as y, useLayoutEffect as sl, useMemo as z, useEffect as F, useCallback as B, useContext as FA, createContext as ot, isValidElement as Aa, cloneElement as ta, lazy as PA, useReducer as la, Component as pa, Suspense as Sa, StrictMode as qa } from "react";
|
|
9
9
|
import { A as gl, a as aa } from "./vendor-ag-charts-W8mi59GS.js";
|
|
10
10
|
import { createPortal as Bl } from "react-dom";
|
|
11
11
|
import { createRoot as Ua } from "react-dom/client";
|
|
@@ -48,7 +48,7 @@ const Va = "data:image/webp;base64,UklGRirCBQBXRUJQVlA4TB7CBQAv38EcAY1AjGQrbDN3H
|
|
|
48
48
|
function sS(A) {
|
|
49
49
|
return ES[A];
|
|
50
50
|
}
|
|
51
|
-
const GA = "#F2DC15",
|
|
51
|
+
const GA = "#F2DC15", H = {
|
|
52
52
|
ui: {
|
|
53
53
|
white: "#FFFFFF",
|
|
54
54
|
black: "#000000",
|
|
@@ -156,49 +156,49 @@ const GA = "#F2DC15", s = {
|
|
|
156
156
|
stageHeaderBackground: "#F0EBE3"
|
|
157
157
|
}
|
|
158
158
|
}, sa = {
|
|
159
|
-
"--mb-color-asset-orange":
|
|
160
|
-
"--mb-color-asset-orange-80":
|
|
161
|
-
"--mb-color-asset-orange-60":
|
|
162
|
-
"--mb-color-asset-orange-40":
|
|
163
|
-
"--mb-color-asset-blue":
|
|
164
|
-
"--mb-color-asset-blue-80":
|
|
165
|
-
"--mb-color-asset-blue-60":
|
|
166
|
-
"--mb-color-asset-blue-40":
|
|
167
|
-
"--mb-color-asset-green":
|
|
168
|
-
"--mb-color-asset-green-80":
|
|
169
|
-
"--mb-color-asset-green-60":
|
|
170
|
-
"--mb-color-asset-green-40":
|
|
171
|
-
"--mb-color-asset-red":
|
|
172
|
-
"--mb-color-asset-red-80":
|
|
173
|
-
"--mb-color-asset-red-60":
|
|
174
|
-
"--mb-color-asset-red-40":
|
|
175
|
-
"--mb-color-asset-purple":
|
|
176
|
-
"--mb-color-asset-purple-80":
|
|
177
|
-
"--mb-color-asset-purple-60":
|
|
178
|
-
"--mb-color-asset-purple-40":
|
|
179
|
-
"--mb-color-triad-1":
|
|
180
|
-
"--mb-color-triad-2":
|
|
181
|
-
"--mb-color-triad-3":
|
|
182
|
-
"--mb-color-triad-4":
|
|
183
|
-
"--mb-color-triad-5":
|
|
184
|
-
"--mb-color-risk-low":
|
|
185
|
-
"--mb-color-risk-moderate":
|
|
186
|
-
"--mb-color-risk-high":
|
|
187
|
-
"--mb-color-risk-low-track":
|
|
188
|
-
"--mb-color-risk-moderate-track":
|
|
189
|
-
"--mb-color-risk-high-track":
|
|
190
|
-
"--mb-color-risk-low-tint":
|
|
191
|
-
"--mb-color-risk-moderate-tint":
|
|
192
|
-
"--mb-color-risk-high-tint":
|
|
193
|
-
"--mb-color-trend-panel-backdrop":
|
|
194
|
-
"--mb-color-trend-panel-subtle-bg":
|
|
195
|
-
"--mb-color-trend-panel-subtle-hover-bg":
|
|
196
|
-
"--mb-color-trend-panel-subtle-border":
|
|
197
|
-
"--mb-color-trend-panel-video-bg":
|
|
198
|
-
"--mb-color-trend-panel-stage-bg":
|
|
199
|
-
"--mb-color-trend-panel-stage-header-bg":
|
|
200
|
-
"--mb-color-metric-badge-bg":
|
|
201
|
-
"--mb-color-welcome-banner-bg":
|
|
159
|
+
"--mb-color-asset-orange": H.figmaAssets.orange[100],
|
|
160
|
+
"--mb-color-asset-orange-80": H.figmaAssets.orange[80],
|
|
161
|
+
"--mb-color-asset-orange-60": H.figmaAssets.orange[60],
|
|
162
|
+
"--mb-color-asset-orange-40": H.figmaAssets.orange[40],
|
|
163
|
+
"--mb-color-asset-blue": H.figmaAssets.blue[100],
|
|
164
|
+
"--mb-color-asset-blue-80": H.figmaAssets.blue[80],
|
|
165
|
+
"--mb-color-asset-blue-60": H.figmaAssets.blue[60],
|
|
166
|
+
"--mb-color-asset-blue-40": H.figmaAssets.blue[40],
|
|
167
|
+
"--mb-color-asset-green": H.figmaAssets.green[100],
|
|
168
|
+
"--mb-color-asset-green-80": H.figmaAssets.green[80],
|
|
169
|
+
"--mb-color-asset-green-60": H.figmaAssets.green[60],
|
|
170
|
+
"--mb-color-asset-green-40": H.figmaAssets.green[40],
|
|
171
|
+
"--mb-color-asset-red": H.figmaAssets.red[100],
|
|
172
|
+
"--mb-color-asset-red-80": H.figmaAssets.red[80],
|
|
173
|
+
"--mb-color-asset-red-60": H.figmaAssets.red[60],
|
|
174
|
+
"--mb-color-asset-red-40": H.figmaAssets.red[40],
|
|
175
|
+
"--mb-color-asset-purple": H.figmaAssets.purple[100],
|
|
176
|
+
"--mb-color-asset-purple-80": H.figmaAssets.purple[80],
|
|
177
|
+
"--mb-color-asset-purple-60": H.figmaAssets.purple[60],
|
|
178
|
+
"--mb-color-asset-purple-40": H.figmaAssets.purple[40],
|
|
179
|
+
"--mb-color-triad-1": H.triad[1],
|
|
180
|
+
"--mb-color-triad-2": H.triad[2],
|
|
181
|
+
"--mb-color-triad-3": H.triad[3],
|
|
182
|
+
"--mb-color-triad-4": H.triad[4],
|
|
183
|
+
"--mb-color-triad-5": H.triad[5],
|
|
184
|
+
"--mb-color-risk-low": H.risk.low,
|
|
185
|
+
"--mb-color-risk-moderate": H.risk.moderate,
|
|
186
|
+
"--mb-color-risk-high": H.risk.high,
|
|
187
|
+
"--mb-color-risk-low-track": H.risk.lowTrack,
|
|
188
|
+
"--mb-color-risk-moderate-track": H.risk.moderateTrack,
|
|
189
|
+
"--mb-color-risk-high-track": H.risk.highTrack,
|
|
190
|
+
"--mb-color-risk-low-tint": H.risk.lowTint,
|
|
191
|
+
"--mb-color-risk-moderate-tint": H.risk.moderateTint,
|
|
192
|
+
"--mb-color-risk-high-tint": H.risk.highTint,
|
|
193
|
+
"--mb-color-trend-panel-backdrop": H.trendPanel.backdrop,
|
|
194
|
+
"--mb-color-trend-panel-subtle-bg": H.trendPanel.subtleBackground,
|
|
195
|
+
"--mb-color-trend-panel-subtle-hover-bg": H.trendPanel.subtleHoverBackground,
|
|
196
|
+
"--mb-color-trend-panel-subtle-border": H.trendPanel.subtleBorder,
|
|
197
|
+
"--mb-color-trend-panel-video-bg": H.trendPanel.videoBackground,
|
|
198
|
+
"--mb-color-trend-panel-stage-bg": H.trendPanel.stageBackground,
|
|
199
|
+
"--mb-color-trend-panel-stage-header-bg": H.trendPanel.stageHeaderBackground,
|
|
200
|
+
"--mb-color-metric-badge-bg": H.ui.badgeBackground,
|
|
201
|
+
"--mb-color-welcome-banner-bg": H.ui.welcomeBannerBackground
|
|
202
202
|
};
|
|
203
203
|
function HS(A) {
|
|
204
204
|
const { fonts: l, colors: p, radius: S, sizes: q, button: U, sideMenu: V, badge: r } = A;
|
|
@@ -273,7 +273,7 @@ function HS(A) {
|
|
|
273
273
|
"--mb-category-panel-header-height": q.categoryPanelHeaderHeight
|
|
274
274
|
};
|
|
275
275
|
}
|
|
276
|
-
const Ha = "18.125rem", g =
|
|
276
|
+
const Ha = "18.125rem", g = H.ui, M = {
|
|
277
277
|
title: "",
|
|
278
278
|
logo: {
|
|
279
279
|
src: bp.logo.full,
|
|
@@ -406,7 +406,7 @@ function Na() {
|
|
|
406
406
|
};
|
|
407
407
|
}
|
|
408
408
|
function Ca(A) {
|
|
409
|
-
var c,
|
|
409
|
+
var c, e, u, W, j, d, o, b, J, i, I, O, E, X, s, P, Q, G, Z;
|
|
410
410
|
if (!A)
|
|
411
411
|
return Na();
|
|
412
412
|
const l = {
|
|
@@ -415,26 +415,26 @@ function Ca(A) {
|
|
|
415
415
|
}, p = ((c = A.card) == null ? void 0 : c.padding) ?? l.cardPadding ?? M.sizes.cardPadding, S = {
|
|
416
416
|
...M.button,
|
|
417
417
|
...A.button,
|
|
418
|
-
borderRadius: ((
|
|
418
|
+
borderRadius: ((e = A.button) == null ? void 0 : e.borderRadius) ?? ((u = A.radius) == null ? void 0 : u.button) ?? M.button.borderRadius
|
|
419
419
|
}, q = {
|
|
420
420
|
...M.badge,
|
|
421
421
|
...A.badge,
|
|
422
|
-
borderRadius: ((
|
|
422
|
+
borderRadius: ((W = A.badge) == null ? void 0 : W.borderRadius) ?? ((j = A.radius) == null ? void 0 : j.badge) ?? M.badge.borderRadius
|
|
423
423
|
}, U = {
|
|
424
424
|
...M.colors,
|
|
425
425
|
...A.colors
|
|
426
|
-
}, V = ((
|
|
426
|
+
}, V = ((d = A.colors) == null ? void 0 : d.sideMenuItemText) ?? U.textPrimary, r = ((o = A.colors) == null ? void 0 : o.sideMenuItemTextActive) ?? U.textPrimary, n = {
|
|
427
427
|
...U,
|
|
428
428
|
sideMenuItemText: V,
|
|
429
429
|
sideMenuItemTextActive: r,
|
|
430
|
-
sideMenuIcon: ((
|
|
430
|
+
sideMenuIcon: ((b = A.colors) == null ? void 0 : b.sideMenuIcon) ?? V,
|
|
431
431
|
sideMenuIconActive: ((J = A.colors) == null ? void 0 : J.sideMenuIconActive) ?? r,
|
|
432
432
|
badgeText: ((i = A.colors) == null ? void 0 : i.badgeText) ?? U.textMuted,
|
|
433
|
-
badgeValueBackground: ((
|
|
434
|
-
badgeValueText: ((
|
|
435
|
-
badgeValueBorder: ((
|
|
433
|
+
badgeValueBackground: ((I = A.colors) == null ? void 0 : I.badgeValueBackground) ?? U.navHoverBackground,
|
|
434
|
+
badgeValueText: ((O = A.colors) == null ? void 0 : O.badgeValueText) ?? U.textPrimary,
|
|
435
|
+
badgeValueBorder: ((E = A.colors) == null ? void 0 : E.badgeValueBorder) ?? U.badgeValueBorder,
|
|
436
436
|
cardInlineButtonBackground: ((X = A.colors) == null ? void 0 : X.cardInlineButtonBackground) ?? U.cardBackground,
|
|
437
|
-
cardInlineButtonBorder: ((
|
|
437
|
+
cardInlineButtonBorder: ((s = A.colors) == null ? void 0 : s.cardInlineButtonBorder) ?? U.cardBorder,
|
|
438
438
|
cardInlineButtonText: ((P = A.colors) == null ? void 0 : P.cardInlineButtonText) ?? U.textPrimary,
|
|
439
439
|
cardInlineButtonHoverBackground: ((Q = A.colors) == null ? void 0 : Q.cardInlineButtonHoverBackground) ?? U.navHoverBackground
|
|
440
440
|
}, K = {
|
|
@@ -442,7 +442,7 @@ function Ca(A) {
|
|
|
442
442
|
...A.sideMenu
|
|
443
443
|
}, k = {
|
|
444
444
|
...K,
|
|
445
|
-
borderRadius: ((
|
|
445
|
+
borderRadius: ((G = A.sideMenu) == null ? void 0 : G.borderRadius) ?? (A.sideMenu === void 0 ? (Z = A.radius) == null ? void 0 : Z.navItem : void 0) ?? K.borderRadius
|
|
446
446
|
};
|
|
447
447
|
return {
|
|
448
448
|
title: A.title ?? M.title,
|
|
@@ -476,7 +476,7 @@ function mS() {
|
|
|
476
476
|
document.body.style.overflow = U, window.scrollTo(l, p), A.scrollLeft = S, A.scrollTop = q;
|
|
477
477
|
};
|
|
478
478
|
}
|
|
479
|
-
const { risk: qt } =
|
|
479
|
+
const { risk: qt } = H, Za = qt.low, za = qt.moderate, Xa = qt.high;
|
|
480
480
|
qt.lowTint;
|
|
481
481
|
qt.moderateTint;
|
|
482
482
|
qt.highTint;
|
|
@@ -499,7 +499,7 @@ const Kt = {
|
|
|
499
499
|
{ color: za, position: 50 },
|
|
500
500
|
{ color: Xa, position: 100 }
|
|
501
501
|
], La = "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", ga = "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-base font-[510] 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", Ba = "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-[family-name:var(--mb-font-sans)] [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)]", ha = "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", Rt = "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-normal 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", Fa = `${Rt} ${Wt.optimal}`, fa = `${Rt} ${Wt.high}`, Ga = `${Rt} ${Wt.low}`, va = `${Rt} ${Wt.trending}`, Da = `${Rt} ${Wt.unknown}`;
|
|
502
|
-
function
|
|
502
|
+
function f({
|
|
503
503
|
className: A = "",
|
|
504
504
|
fullWidth: l = !1,
|
|
505
505
|
align: p = "start",
|
|
@@ -680,7 +680,7 @@ function Fl({
|
|
|
680
680
|
}
|
|
681
681
|
);
|
|
682
682
|
}
|
|
683
|
-
const { risk: vA, ui: $a } =
|
|
683
|
+
const { risk: vA, ui: $a } = H, AU = [
|
|
684
684
|
{ color: vA.high, position: 0 },
|
|
685
685
|
{ color: vA.high, position: 35 },
|
|
686
686
|
{ color: vA.moderate, position: 35 },
|
|
@@ -767,10 +767,10 @@ function PS({
|
|
|
767
767
|
] });
|
|
768
768
|
}
|
|
769
769
|
const aU = {
|
|
770
|
-
colorText:
|
|
771
|
-
colorTextMuted:
|
|
772
|
-
colorCardBorder:
|
|
773
|
-
colorBadgeValueBg:
|
|
770
|
+
colorText: H.ui.textPrimaryFigma,
|
|
771
|
+
colorTextMuted: H.ui.chartTextMuted,
|
|
772
|
+
colorCardBorder: H.ui.cardBorder,
|
|
773
|
+
colorBadgeValueBg: H.ui.badgeBackground,
|
|
774
774
|
fontFamily: "ui-sans-serif, system-ui, sans-serif"
|
|
775
775
|
};
|
|
776
776
|
function Hl(A) {
|
|
@@ -797,9 +797,9 @@ function UU(A, l) {
|
|
|
797
797
|
}
|
|
798
798
|
function VU(A, l) {
|
|
799
799
|
const p = Hl(
|
|
800
|
-
l.trim() ||
|
|
800
|
+
l.trim() || H.ui.cardBackground
|
|
801
801
|
), S = Hl(
|
|
802
|
-
A.trim() ||
|
|
802
|
+
A.trim() || H.ui.badgeBackground
|
|
803
803
|
);
|
|
804
804
|
return UU(S, p);
|
|
805
805
|
}
|
|
@@ -808,7 +808,7 @@ function fl() {
|
|
|
808
808
|
return sl(() => {
|
|
809
809
|
const S = A.current;
|
|
810
810
|
if (!S) return;
|
|
811
|
-
const q = getComputedStyle(S), U = q.getPropertyValue("--mb-color-text").trim() ||
|
|
811
|
+
const q = getComputedStyle(S), U = q.getPropertyValue("--mb-color-text").trim() || H.ui.textPrimaryFigma, V = q.getPropertyValue("--mb-color-text-muted").trim() || H.ui.chartTextMuted, r = q.getPropertyValue("--mb-color-card-border").trim() || H.ui.cardBorder, n = q.getPropertyValue("--mb-color-badge-value-bg").trim() || H.ui.badgeBackground, K = q.getPropertyValue("--mb-color-card-bg").trim() || H.ui.cardBackground;
|
|
812
812
|
p({
|
|
813
813
|
colorText: Ip(U),
|
|
814
814
|
colorTextMuted: Ip(V),
|
|
@@ -822,7 +822,7 @@ function fl() {
|
|
|
822
822
|
themeReady: l !== null
|
|
823
823
|
};
|
|
824
824
|
}
|
|
825
|
-
const ql = 78, al =
|
|
825
|
+
const ql = 78, al = H.score;
|
|
826
826
|
function Ul(A) {
|
|
827
827
|
return `${A / 16}rem`;
|
|
828
828
|
}
|
|
@@ -914,7 +914,7 @@ function Xt(A, {
|
|
|
914
914
|
max: S
|
|
915
915
|
} = {}) {
|
|
916
916
|
const q = cU(A, p, S), [U, V] = y(0), r = x(0);
|
|
917
|
-
return
|
|
917
|
+
return F(() => {
|
|
918
918
|
if (dU()) {
|
|
919
919
|
r.current = q, V(q);
|
|
920
920
|
return;
|
|
@@ -922,11 +922,11 @@ function Xt(A, {
|
|
|
922
922
|
const n = r.current, K = q - n;
|
|
923
923
|
if (K === 0) return;
|
|
924
924
|
let k = 0;
|
|
925
|
-
const c = window.performance.now(),
|
|
926
|
-
const
|
|
927
|
-
r.current =
|
|
925
|
+
const c = window.performance.now(), e = (u) => {
|
|
926
|
+
const W = Math.min(1, (u - c) / l), j = n + K * eU(W);
|
|
927
|
+
r.current = j, V(j), W < 1 && (k = window.requestAnimationFrame(e));
|
|
928
928
|
};
|
|
929
|
-
return k = window.requestAnimationFrame(
|
|
929
|
+
return k = window.requestAnimationFrame(e), () => {
|
|
930
930
|
window.cancelAnimationFrame(k);
|
|
931
931
|
};
|
|
932
932
|
}, [l, q]), U;
|
|
@@ -939,7 +939,7 @@ function QS({
|
|
|
939
939
|
threshold: l = 0.1
|
|
940
940
|
} = {}) {
|
|
941
941
|
const p = x(null), [S, q] = y(!1);
|
|
942
|
-
return
|
|
942
|
+
return F(() => {
|
|
943
943
|
if (S) return;
|
|
944
944
|
if (kU()) {
|
|
945
945
|
q(!0);
|
|
@@ -959,7 +959,7 @@ function QS({
|
|
|
959
959
|
return V.observe(U), () => V.disconnect();
|
|
960
960
|
}, [S, A, l]), { ref: p, isInView: S };
|
|
961
961
|
}
|
|
962
|
-
const ct = 1735, NS = 694, CS = 1041, jp = 7, uU = "h-[19.25rem]", oU = "max-w-[24.5rem]", WU = 118, RU = 308, bU = -3, JU = 50, OU = 50, IU = 49, ip = 24.5, Tp = 28.5, yp = 21.4, Ep = 24.9, jU = 0.88, iU = 32, TU = 24, yU = 20, EU = 16, sU = 0.875, HU = 2.1875, mU = 2.5, { metaflammation: PU } =
|
|
962
|
+
const ct = 1735, NS = 694, CS = 1041, jp = 7, uU = "h-[19.25rem]", oU = "max-w-[24.5rem]", WU = 118, RU = 308, bU = -3, JU = 50, OU = 50, IU = 49, ip = 24.5, Tp = 28.5, yp = 21.4, Ep = 24.9, jU = 0.88, iU = 32, TU = 24, yU = 20, EU = 16, sU = 0.875, HU = 2.1875, mU = 2.5, { metaflammation: PU } = H, { risk: $A } = H;
|
|
963
963
|
function QU(A, l) {
|
|
964
964
|
return Math.min(l, Math.max(0, A));
|
|
965
965
|
}
|
|
@@ -1346,7 +1346,7 @@ function LU({
|
|
|
1346
1346
|
}
|
|
1347
1347
|
);
|
|
1348
1348
|
}
|
|
1349
|
-
const { risk: pA } =
|
|
1349
|
+
const { risk: pA } = H, TA = [
|
|
1350
1350
|
{ color: pA.highTrack, activeColor: pA.high, label: "Alert Low" },
|
|
1351
1351
|
{ color: pA.moderateTrack, activeColor: pA.moderate, label: "Low Normal" },
|
|
1352
1352
|
{ color: pA.lowTrack, activeColor: pA.low, label: "Optimal" },
|
|
@@ -1479,7 +1479,7 @@ function fA({
|
|
|
1479
1479
|
Gt();
|
|
1480
1480
|
const n = A.length, K = U !== void 0 ? Math.min(n - 1, Math.max(0, U)) : l === void 0 ? -1 : LS(l, n), k = z(() => GU(A, K, V), [A, K, V]);
|
|
1481
1481
|
if (n === 0) return null;
|
|
1482
|
-
const c = l === void 0 ? void 0 : Pp(l, n, S),
|
|
1482
|
+
const c = l === void 0 ? void 0 : Pp(l, n, S), e = p === void 0 ? void 0 : Pp(p, n, S), u = NA(ml), W = NA(ml + xS), j = NA(mp - hU), d = NA(mp + XS / 2), o = c === void 0 ? void 0 : `calc(${u} + (100% - ${W}) * ${c / 100})`, b = e === void 0 ? void 0 : `calc(${u} + (100% - ${W}) * ${e / 100})`, J = u, i = r ?? "leading-snug text-[color:var(--mb-color-text-muted)]";
|
|
1483
1483
|
return /* @__PURE__ */ a(
|
|
1484
1484
|
"div",
|
|
1485
1485
|
{
|
|
@@ -1503,22 +1503,22 @@ function fA({
|
|
|
1503
1503
|
style: { height: NA(rl), minHeight: NA(rl) }
|
|
1504
1504
|
}
|
|
1505
1505
|
),
|
|
1506
|
-
q &&
|
|
1506
|
+
q && b ? /* @__PURE__ */ t(
|
|
1507
1507
|
lt,
|
|
1508
1508
|
{
|
|
1509
|
-
left:
|
|
1509
|
+
left: b,
|
|
1510
1510
|
startLeft: J,
|
|
1511
|
-
top:
|
|
1511
|
+
top: j,
|
|
1512
1512
|
size: BU,
|
|
1513
1513
|
variant: "previous"
|
|
1514
1514
|
}
|
|
1515
1515
|
) : null,
|
|
1516
|
-
q &&
|
|
1516
|
+
q && o ? /* @__PURE__ */ t(
|
|
1517
1517
|
lt,
|
|
1518
1518
|
{
|
|
1519
|
-
left:
|
|
1519
|
+
left: o,
|
|
1520
1520
|
startLeft: J,
|
|
1521
|
-
top:
|
|
1521
|
+
top: d,
|
|
1522
1522
|
size: gU,
|
|
1523
1523
|
variant: "current"
|
|
1524
1524
|
}
|
|
@@ -1531,7 +1531,7 @@ function fA({
|
|
|
1531
1531
|
{
|
|
1532
1532
|
className: `mt-1.5 grid gap-x-0.5 gap-y-1 text-center text-[0.625rem] font-[700] uppercase ${i}`.trim(),
|
|
1533
1533
|
style: { gridTemplateColumns: `repeat(${n}, minmax(0, 1fr))` },
|
|
1534
|
-
children: A.map((
|
|
1534
|
+
children: A.map((I) => /* @__PURE__ */ t("span", { className: "min-w-0 break-words px-0.5", children: I.label.toUpperCase() }, I.label))
|
|
1535
1535
|
}
|
|
1536
1536
|
)
|
|
1537
1537
|
]
|
|
@@ -1765,18 +1765,18 @@ function tV({
|
|
|
1765
1765
|
onSave: K
|
|
1766
1766
|
}) {
|
|
1767
1767
|
const k = hA(), c = x(null);
|
|
1768
|
-
|
|
1769
|
-
var
|
|
1770
|
-
(
|
|
1768
|
+
F(() => {
|
|
1769
|
+
var s;
|
|
1770
|
+
(s = c.current) == null || s.focus();
|
|
1771
1771
|
}, []);
|
|
1772
|
-
const [
|
|
1772
|
+
const [e, u] = y((A == null ? void 0 : A.text) ?? ""), [W, j] = y((A == null ? void 0 : A.status) ?? "draft"), [d, o] = y((A == null ? void 0 : A.visibility) ?? ""), [b, J] = y(), i = x(void 0), I = x((A == null ? void 0 : A.id) ?? crypto.randomUUID()), O = x(A == null ? void 0 : A.revision), E = () => {
|
|
1773
1773
|
U(!0), J(void 0);
|
|
1774
1774
|
};
|
|
1775
1775
|
async function X() {
|
|
1776
1776
|
var Q;
|
|
1777
|
-
if (!
|
|
1778
|
-
const
|
|
1779
|
-
|
|
1777
|
+
if (!d || p || !e.trim()) return;
|
|
1778
|
+
const s = { text: e.trim(), status: W, visibility: d }, P = JSON.stringify([
|
|
1779
|
+
s,
|
|
1780
1780
|
A == null ? void 0 : A.revision,
|
|
1781
1781
|
l.target_id,
|
|
1782
1782
|
l.section_key
|
|
@@ -1784,8 +1784,8 @@ function tV({
|
|
|
1784
1784
|
((Q = i.current) == null ? void 0 : Q.fingerprint) !== P && (i.current = {
|
|
1785
1785
|
fingerprint: P,
|
|
1786
1786
|
input: {
|
|
1787
|
-
...
|
|
1788
|
-
note_id:
|
|
1787
|
+
...s,
|
|
1788
|
+
note_id: I.current,
|
|
1789
1789
|
operation_id: crypto.randomUUID(),
|
|
1790
1790
|
expected_revision: A == null ? void 0 : A.revision,
|
|
1791
1791
|
target_id: l.target_id,
|
|
@@ -1794,16 +1794,16 @@ function tV({
|
|
|
1794
1794
|
});
|
|
1795
1795
|
try {
|
|
1796
1796
|
await K(A ? "update" : "create", i.current.input), U(!1), V();
|
|
1797
|
-
} catch (
|
|
1798
|
-
J(
|
|
1797
|
+
} catch (G) {
|
|
1798
|
+
J(G instanceof Error ? G.message : "The note could not be saved.");
|
|
1799
1799
|
}
|
|
1800
1800
|
}
|
|
1801
1801
|
return /* @__PURE__ */ a(
|
|
1802
1802
|
"form",
|
|
1803
1803
|
{
|
|
1804
1804
|
className: "mb-notes-editor",
|
|
1805
|
-
onSubmit: (
|
|
1806
|
-
|
|
1805
|
+
onSubmit: (s) => {
|
|
1806
|
+
s.preventDefault(), X();
|
|
1807
1807
|
},
|
|
1808
1808
|
children: [
|
|
1809
1809
|
A ? null : /* @__PURE__ */ a("label", { htmlFor: `${k}-target`, children: [
|
|
@@ -1814,19 +1814,19 @@ function tV({
|
|
|
1814
1814
|
id: `${k}-target`,
|
|
1815
1815
|
value: `${l.section_key}|${l.target_id}`,
|
|
1816
1816
|
disabled: p,
|
|
1817
|
-
onChange: (
|
|
1817
|
+
onChange: (s) => {
|
|
1818
1818
|
const P = S.find(
|
|
1819
|
-
(Q) => `${Q.section_key}|${Q.target_id}` ===
|
|
1819
|
+
(Q) => `${Q.section_key}|${Q.target_id}` === s.target.value
|
|
1820
1820
|
);
|
|
1821
|
-
P && (q(P),
|
|
1821
|
+
P && (q(P), E());
|
|
1822
1822
|
},
|
|
1823
|
-
children: S.map((
|
|
1823
|
+
children: S.map((s) => /* @__PURE__ */ t(
|
|
1824
1824
|
"option",
|
|
1825
1825
|
{
|
|
1826
|
-
value: `${
|
|
1827
|
-
children:
|
|
1826
|
+
value: `${s.section_key}|${s.target_id}`,
|
|
1827
|
+
children: s.section_name
|
|
1828
1828
|
},
|
|
1829
|
-
`${
|
|
1829
|
+
`${s.section_key}|${s.target_id}`
|
|
1830
1830
|
))
|
|
1831
1831
|
}
|
|
1832
1832
|
)
|
|
@@ -1844,22 +1844,22 @@ function tV({
|
|
|
1844
1844
|
{
|
|
1845
1845
|
id: `${k}-text`,
|
|
1846
1846
|
ref: c,
|
|
1847
|
-
value:
|
|
1847
|
+
value: e,
|
|
1848
1848
|
maxLength: 1e4,
|
|
1849
1849
|
required: !0,
|
|
1850
1850
|
rows: 8,
|
|
1851
1851
|
placeholder: "Document your clinical observations and next steps…",
|
|
1852
|
-
onChange: (
|
|
1853
|
-
u(
|
|
1852
|
+
onChange: (s) => {
|
|
1853
|
+
u(s.target.value), E();
|
|
1854
1854
|
},
|
|
1855
1855
|
disabled: p
|
|
1856
1856
|
}
|
|
1857
1857
|
),
|
|
1858
1858
|
/* @__PURE__ */ a("small", { className: "mb-notes-count", children: [
|
|
1859
|
-
|
|
1859
|
+
e.length.toLocaleString(),
|
|
1860
1860
|
" / 10,000"
|
|
1861
1861
|
] }),
|
|
1862
|
-
A && A.revision !==
|
|
1862
|
+
A && A.revision !== O.current ? /* @__PURE__ */ a("aside", { className: "mb-notes-context", "aria-label": "Latest saved note", children: [
|
|
1863
1863
|
/* @__PURE__ */ t("strong", { children: "Latest saved note" }),
|
|
1864
1864
|
/* @__PURE__ */ t("p", { className: "mb-notes-text", children: A.text }),
|
|
1865
1865
|
/* @__PURE__ */ a("small", { children: [
|
|
@@ -1878,10 +1878,10 @@ function tV({
|
|
|
1878
1878
|
"select",
|
|
1879
1879
|
{
|
|
1880
1880
|
id: `${k}-status`,
|
|
1881
|
-
value:
|
|
1881
|
+
value: W,
|
|
1882
1882
|
disabled: p,
|
|
1883
|
-
onChange: (
|
|
1884
|
-
|
|
1883
|
+
onChange: (s) => {
|
|
1884
|
+
j(s.target.value), E();
|
|
1885
1885
|
},
|
|
1886
1886
|
children: [
|
|
1887
1887
|
/* @__PURE__ */ t("option", { value: "draft", children: "Draft" }),
|
|
@@ -1897,10 +1897,10 @@ function tV({
|
|
|
1897
1897
|
{
|
|
1898
1898
|
id: `${k}-visibility`,
|
|
1899
1899
|
required: !0,
|
|
1900
|
-
value:
|
|
1900
|
+
value: d,
|
|
1901
1901
|
disabled: p,
|
|
1902
|
-
onChange: (
|
|
1903
|
-
|
|
1902
|
+
onChange: (s) => {
|
|
1903
|
+
o(s.target.value), E();
|
|
1904
1904
|
},
|
|
1905
1905
|
children: [
|
|
1906
1906
|
/* @__PURE__ */ t("option", { value: "", disabled: !0, children: "Choose visibility" }),
|
|
@@ -1914,12 +1914,12 @@ function tV({
|
|
|
1914
1914
|
/* @__PURE__ */ t(
|
|
1915
1915
|
"p",
|
|
1916
1916
|
{
|
|
1917
|
-
className: `mb-notes-visibility ${
|
|
1918
|
-
children:
|
|
1917
|
+
className: `mb-notes-visibility ${W === "published" && d === "external" ? "is-external" : ""}`,
|
|
1918
|
+
children: d ? W === "published" && d === "external" ? "The patient will see this note after you save." : "Only authorized practitioners can see this note. Patients see published external notes." : "Choose who can see this note. External notes are shared with the patient only when published."
|
|
1919
1919
|
}
|
|
1920
1920
|
),
|
|
1921
|
-
|
|
1922
|
-
|
|
1921
|
+
b ? /* @__PURE__ */ a("div", { role: "alert", className: "mb-notes-error", children: [
|
|
1922
|
+
b,
|
|
1923
1923
|
/* @__PURE__ */ t("button", { type: "button", onClick: () => void n(), children: "Reload latest notes" })
|
|
1924
1924
|
] }) : null,
|
|
1925
1925
|
/* @__PURE__ */ a("div", { className: "mb-notes-footer", children: [
|
|
@@ -1929,8 +1929,8 @@ function tV({
|
|
|
1929
1929
|
{
|
|
1930
1930
|
type: "submit",
|
|
1931
1931
|
className: "mb-notes-primary",
|
|
1932
|
-
disabled: p || !
|
|
1933
|
-
children: p ? "Saving…" : A ? "Save changes" :
|
|
1932
|
+
disabled: p || !e.trim() || !d,
|
|
1933
|
+
children: p ? "Saving…" : A ? "Save changes" : W === "draft" ? "Save draft" : "Publish note"
|
|
1934
1934
|
}
|
|
1935
1935
|
)
|
|
1936
1936
|
] })
|
|
@@ -2004,20 +2004,20 @@ function pV({
|
|
|
2004
2004
|
mutate: n
|
|
2005
2005
|
}) {
|
|
2006
2006
|
var at;
|
|
2007
|
-
const [K, k] = y(!1), c = x(!1), [
|
|
2007
|
+
const [K, k] = y(!1), c = x(!1), [e, u] = y(), [W, j] = y(), d = x(/* @__PURE__ */ new Map()), o = S || K, b = A.items.filter((T) => T.status === "draft"), J = hA(), i = x(null), I = x(!1), [O, E] = y(
|
|
2008
2008
|
l && A.can_manage ? { target: l } : void 0
|
|
2009
|
-
), [X,
|
|
2009
|
+
), [X, s] = y(), [P, Q] = y(), [G, Z] = y(), [C, L] = y("all"), [$, D] = y("all"), [v, nA] = y("all"), [AA, h] = y("all"), [dA, oA] = y(""), [cA, kA] = y(
|
|
2010
2010
|
l ? `${l.section_key}|${l.target_id}` : ""
|
|
2011
2011
|
), KA = x(void 0), uA = x(() => {
|
|
2012
2012
|
});
|
|
2013
2013
|
uA.current = () => {
|
|
2014
|
-
|
|
2015
|
-
},
|
|
2014
|
+
o || (I.current ? s("close") : U());
|
|
2015
|
+
}, F(() => {
|
|
2016
2016
|
var It, cp;
|
|
2017
2017
|
const T = p, Y = document.body.style.overflow;
|
|
2018
2018
|
document.body.style.overflow = "hidden";
|
|
2019
2019
|
const aA = (OA) => {
|
|
2020
|
-
|
|
2020
|
+
I.current && OA.preventDefault();
|
|
2021
2021
|
};
|
|
2022
2022
|
window.addEventListener("beforeunload", aA), (cp = ((It = i.current) == null ? void 0 : It.querySelector("textarea")) ?? i.current) == null || cp.focus();
|
|
2023
2023
|
const w = (OA) => {
|
|
@@ -2042,14 +2042,14 @@ function pV({
|
|
|
2042
2042
|
...new Map(A.items.map((T) => [T.context.target_id, T.context])).values()
|
|
2043
2043
|
], HA = [...new Map(A.items.map((T) => [T.author.id, T.author])).values()];
|
|
2044
2044
|
async function N() {
|
|
2045
|
-
if (!
|
|
2045
|
+
if (!e || o || c.current || !A.can_manage) return;
|
|
2046
2046
|
c.current = !0, k(!0), Z(void 0);
|
|
2047
2047
|
let T = 0;
|
|
2048
2048
|
try {
|
|
2049
|
-
for (const Y of
|
|
2049
|
+
for (const Y of e) {
|
|
2050
2050
|
const aA = `${Y.id}:${Y.revision}`;
|
|
2051
|
-
let w =
|
|
2052
|
-
w || (w = crypto.randomUUID(),
|
|
2051
|
+
let w = d.current.get(aA);
|
|
2052
|
+
w || (w = crypto.randomUUID(), d.current.set(aA, w)), await n("update", {
|
|
2053
2053
|
note_id: Y.id,
|
|
2054
2054
|
operation_id: w,
|
|
2055
2055
|
expected_revision: Y.revision,
|
|
@@ -2058,12 +2058,12 @@ function pV({
|
|
|
2058
2058
|
visibility: Y.visibility
|
|
2059
2059
|
}), T++;
|
|
2060
2060
|
}
|
|
2061
|
-
|
|
2061
|
+
j(
|
|
2062
2062
|
`${T} draft ${T === 1 ? "note published" : "notes published"}.`
|
|
2063
2063
|
);
|
|
2064
2064
|
} catch (Y) {
|
|
2065
2065
|
Z(
|
|
2066
|
-
`${T} of ${
|
|
2066
|
+
`${T} of ${e.length} notes published. Publication stopped. ${Y instanceof Error ? Y.message : "Please reload notes and try again."}`
|
|
2067
2067
|
);
|
|
2068
2068
|
} finally {
|
|
2069
2069
|
u(void 0), c.current = !1, k(!1);
|
|
@@ -2103,7 +2103,7 @@ function pV({
|
|
|
2103
2103
|
role: "dialog",
|
|
2104
2104
|
"aria-modal": "true",
|
|
2105
2105
|
"aria-labelledby": J,
|
|
2106
|
-
className: `mb-notes-panel ${A.can_manage ? "is-practitioner" : ""} ${
|
|
2106
|
+
className: `mb-notes-panel ${A.can_manage ? "is-practitioner" : ""} ${O ? "has-editor" : ""}`,
|
|
2107
2107
|
ref: i,
|
|
2108
2108
|
tabIndex: -1,
|
|
2109
2109
|
children: [
|
|
@@ -2132,7 +2132,7 @@ function pV({
|
|
|
2132
2132
|
{
|
|
2133
2133
|
type: "button",
|
|
2134
2134
|
className: "mb-notes-secondary",
|
|
2135
|
-
onClick: () =>
|
|
2135
|
+
onClick: () => s(void 0),
|
|
2136
2136
|
children: "Keep editing"
|
|
2137
2137
|
}
|
|
2138
2138
|
),
|
|
@@ -2142,7 +2142,7 @@ function pV({
|
|
|
2142
2142
|
type: "button",
|
|
2143
2143
|
className: "mb-notes-danger",
|
|
2144
2144
|
onClick: () => {
|
|
2145
|
-
|
|
2145
|
+
I.current = !1, X === "close" ? U() : E(void 0), s(void 0);
|
|
2146
2146
|
},
|
|
2147
2147
|
children: "Discard changes"
|
|
2148
2148
|
}
|
|
@@ -2158,7 +2158,7 @@ function pV({
|
|
|
2158
2158
|
{
|
|
2159
2159
|
id: `${J}-context`,
|
|
2160
2160
|
value: cA,
|
|
2161
|
-
disabled:
|
|
2161
|
+
disabled: o || !!O || !!e,
|
|
2162
2162
|
onChange: (T) => kA(T.target.value),
|
|
2163
2163
|
children: [
|
|
2164
2164
|
/* @__PURE__ */ t("option", { value: "", children: "Choose a section or metric" }),
|
|
@@ -2178,12 +2178,12 @@ function pV({
|
|
|
2178
2178
|
{
|
|
2179
2179
|
type: "button",
|
|
2180
2180
|
className: "mb-notes-primary",
|
|
2181
|
-
disabled:
|
|
2181
|
+
disabled: o || !!O || !!e || !A.targets.length,
|
|
2182
2182
|
onClick: () => {
|
|
2183
2183
|
const Y = A.targets.find(
|
|
2184
2184
|
(aA) => `${aA.section_key}|${aA.target_id}` === cA
|
|
2185
2185
|
) ?? A.targets.find((aA) => aA.target_id.startsWith("metric:triad")) ?? A.targets[0];
|
|
2186
|
-
Y &&
|
|
2186
|
+
Y && E({ target: Y });
|
|
2187
2187
|
},
|
|
2188
2188
|
children: "Add note"
|
|
2189
2189
|
}
|
|
@@ -2242,7 +2242,7 @@ function pV({
|
|
|
2242
2242
|
{
|
|
2243
2243
|
"aria-label": "Filter by author",
|
|
2244
2244
|
value: AA,
|
|
2245
|
-
onChange: (T) =>
|
|
2245
|
+
onChange: (T) => h(T.target.value),
|
|
2246
2246
|
children: [
|
|
2247
2247
|
/* @__PURE__ */ t("option", { value: "all", children: "All authors" }),
|
|
2248
2248
|
HA.map((T) => /* @__PURE__ */ t("option", { value: T.id, children: T.display_name }, T.id))
|
|
@@ -2255,7 +2255,7 @@ function pV({
|
|
|
2255
2255
|
type: "button",
|
|
2256
2256
|
className: "mb-notes-reset",
|
|
2257
2257
|
onClick: () => {
|
|
2258
|
-
L("all"), D("all"), nA("all"),
|
|
2258
|
+
L("all"), D("all"), nA("all"), h("all"), oA("");
|
|
2259
2259
|
},
|
|
2260
2260
|
children: "Clear filters"
|
|
2261
2261
|
}
|
|
@@ -2271,9 +2271,9 @@ function pV({
|
|
|
2271
2271
|
/* @__PURE__ */ a("div", { children: [
|
|
2272
2272
|
/* @__PURE__ */ t("strong", { children: "Publish report notes" }),
|
|
2273
2273
|
/* @__PURE__ */ a("p", { children: [
|
|
2274
|
-
|
|
2274
|
+
b.length,
|
|
2275
2275
|
" draft ",
|
|
2276
|
-
|
|
2276
|
+
b.length === 1 ? "note" : "notes",
|
|
2277
2277
|
" across this report. Each note keeps its visibility."
|
|
2278
2278
|
] })
|
|
2279
2279
|
] }),
|
|
@@ -2282,23 +2282,23 @@ function pV({
|
|
|
2282
2282
|
{
|
|
2283
2283
|
type: "button",
|
|
2284
2284
|
className: "mb-notes-primary",
|
|
2285
|
-
disabled:
|
|
2285
|
+
disabled: o || !!O || !!P || !!e || b.length === 0,
|
|
2286
2286
|
onClick: () => {
|
|
2287
|
-
u([...
|
|
2287
|
+
u([...b]), j(void 0), Z(void 0);
|
|
2288
2288
|
},
|
|
2289
2289
|
children: K ? "Publishing…" : "Publish all notes"
|
|
2290
2290
|
}
|
|
2291
2291
|
)
|
|
2292
2292
|
] }) : null,
|
|
2293
|
-
|
|
2293
|
+
e ? /* @__PURE__ */ a("div", { role: "alert", className: "mb-notes-confirm", children: [
|
|
2294
2294
|
/* @__PURE__ */ t("h3", { children: "Publish all draft notes?" }),
|
|
2295
2295
|
/* @__PURE__ */ a("p", { children: [
|
|
2296
2296
|
"This publishes all ",
|
|
2297
|
-
|
|
2297
|
+
e.length,
|
|
2298
2298
|
" saved draft notes in this report, including notes hidden by filters."
|
|
2299
2299
|
] }),
|
|
2300
2300
|
/* @__PURE__ */ a("p", { children: [
|
|
2301
|
-
|
|
2301
|
+
e.filter((T) => T.visibility === "external").length,
|
|
2302
2302
|
" external notes will become visible to the patient. Internal notes remain visible only to the care team."
|
|
2303
2303
|
] }),
|
|
2304
2304
|
/* @__PURE__ */ t(
|
|
@@ -2306,7 +2306,7 @@ function pV({
|
|
|
2306
2306
|
{
|
|
2307
2307
|
type: "button",
|
|
2308
2308
|
className: "mb-notes-secondary",
|
|
2309
|
-
disabled:
|
|
2309
|
+
disabled: o,
|
|
2310
2310
|
onClick: () => u(void 0),
|
|
2311
2311
|
children: "Cancel publication"
|
|
2312
2312
|
}
|
|
@@ -2316,15 +2316,15 @@ function pV({
|
|
|
2316
2316
|
{
|
|
2317
2317
|
type: "button",
|
|
2318
2318
|
className: "mb-notes-primary",
|
|
2319
|
-
disabled:
|
|
2319
|
+
disabled: o,
|
|
2320
2320
|
onClick: () => void N(),
|
|
2321
2321
|
children: K ? "Publishing…" : "Publish drafts"
|
|
2322
2322
|
}
|
|
2323
2323
|
)
|
|
2324
2324
|
] }) : null,
|
|
2325
|
-
|
|
2326
|
-
q ||
|
|
2327
|
-
|
|
2325
|
+
W ? /* @__PURE__ */ t("p", { role: "status", className: "mb-notes-context", children: W }) : null,
|
|
2326
|
+
q || G ? /* @__PURE__ */ a("div", { role: "alert", className: "mb-notes-error", children: [
|
|
2327
|
+
G ?? q,
|
|
2328
2328
|
/* @__PURE__ */ t("button", { type: "button", onClick: () => void r(), children: "Retry" })
|
|
2329
2329
|
] }) : null,
|
|
2330
2330
|
P ? /* @__PURE__ */ a("div", { role: "alert", className: "mb-notes-confirm", children: [
|
|
@@ -2334,7 +2334,7 @@ function pV({
|
|
|
2334
2334
|
"button",
|
|
2335
2335
|
{
|
|
2336
2336
|
type: "button",
|
|
2337
|
-
disabled:
|
|
2337
|
+
disabled: o,
|
|
2338
2338
|
className: "mb-notes-secondary",
|
|
2339
2339
|
onClick: () => {
|
|
2340
2340
|
Q(void 0), KA.current = void 0;
|
|
@@ -2346,10 +2346,10 @@ function pV({
|
|
|
2346
2346
|
"button",
|
|
2347
2347
|
{
|
|
2348
2348
|
type: "button",
|
|
2349
|
-
disabled:
|
|
2349
|
+
disabled: o,
|
|
2350
2350
|
className: "mb-notes-danger",
|
|
2351
2351
|
onClick: () => void qA(),
|
|
2352
|
-
children:
|
|
2352
|
+
children: o ? "Deleting…" : "Delete note"
|
|
2353
2353
|
}
|
|
2354
2354
|
)
|
|
2355
2355
|
] }) : null,
|
|
@@ -2358,8 +2358,8 @@ function pV({
|
|
|
2358
2358
|
{
|
|
2359
2359
|
notes: EA,
|
|
2360
2360
|
canManage: A.can_manage,
|
|
2361
|
-
disabled:
|
|
2362
|
-
onEdit: (T) =>
|
|
2361
|
+
disabled: o || !!O || !!e,
|
|
2362
|
+
onEdit: (T) => E({ note: T, target: T.context }),
|
|
2363
2363
|
onDelete: (T) => {
|
|
2364
2364
|
Q(T), KA.current = void 0;
|
|
2365
2365
|
},
|
|
@@ -2369,91 +2369,91 @@ function pV({
|
|
|
2369
2369
|
}
|
|
2370
2370
|
)
|
|
2371
2371
|
] }),
|
|
2372
|
-
|
|
2372
|
+
O ? /* @__PURE__ */ a(
|
|
2373
2373
|
"section",
|
|
2374
2374
|
{
|
|
2375
2375
|
className: "mb-notes-composer",
|
|
2376
|
-
"aria-label":
|
|
2376
|
+
"aria-label": O.note ? "Edit SOAP note" : "New SOAP note",
|
|
2377
2377
|
children: [
|
|
2378
|
-
/* @__PURE__ */ t("h3", { children:
|
|
2378
|
+
/* @__PURE__ */ t("h3", { children: O.note ? "Edit note" : "New note" }),
|
|
2379
2379
|
/* @__PURE__ */ t(
|
|
2380
2380
|
tV,
|
|
2381
2381
|
{
|
|
2382
|
-
...
|
|
2382
|
+
...O,
|
|
2383
2383
|
targets: A.targets,
|
|
2384
2384
|
onTargetChange: (T) => {
|
|
2385
|
-
|
|
2385
|
+
E({ target: T }), kA(`${T.section_key}|${T.target_id}`);
|
|
2386
2386
|
},
|
|
2387
|
-
busy:
|
|
2387
|
+
busy: o,
|
|
2388
2388
|
onDirty: (T) => {
|
|
2389
|
-
|
|
2389
|
+
I.current = T;
|
|
2390
2390
|
},
|
|
2391
|
-
onSaved: () =>
|
|
2391
|
+
onSaved: () => E(void 0),
|
|
2392
2392
|
onCancel: () => {
|
|
2393
|
-
|
|
2393
|
+
I.current ? s("editor") : E(void 0);
|
|
2394
2394
|
},
|
|
2395
2395
|
onSave: n,
|
|
2396
2396
|
onReload: async () => {
|
|
2397
2397
|
const T = await r(), Y = T == null ? void 0 : T.items.find((aA) => {
|
|
2398
2398
|
var w;
|
|
2399
|
-
return aA.id === ((w =
|
|
2399
|
+
return aA.id === ((w = O.note) == null ? void 0 : w.id);
|
|
2400
2400
|
});
|
|
2401
|
-
Y &&
|
|
2401
|
+
Y && E({ note: Y, target: Y.context });
|
|
2402
2402
|
}
|
|
2403
2403
|
},
|
|
2404
|
-
((at =
|
|
2404
|
+
((at = O.note) == null ? void 0 : at.id) ?? "new"
|
|
2405
2405
|
)
|
|
2406
2406
|
]
|
|
2407
2407
|
}
|
|
2408
2408
|
) : null
|
|
2409
2409
|
] })
|
|
2410
2410
|
] }),
|
|
2411
|
-
/* @__PURE__ */ t("div", { className: "mb-notes-live", role: "status", "aria-live": "polite", children:
|
|
2411
|
+
/* @__PURE__ */ t("div", { className: "mb-notes-live", role: "status", "aria-live": "polite", children: o ? "Saving note" : `${A.items.length} notes available` })
|
|
2412
2412
|
]
|
|
2413
2413
|
}
|
|
2414
2414
|
)
|
|
2415
2415
|
] });
|
|
2416
2416
|
}
|
|
2417
2417
|
function SV(A, l, p) {
|
|
2418
|
-
const [S, q] = y(A != null && A.can_manage ? A : void 0), [U, V] = y(), [r, n] = y(!1), K = x(0), k = x(!0), c = x(!1),
|
|
2418
|
+
const [S, q] = y(A != null && A.can_manage ? A : void 0), [U, V] = y(), [r, n] = y(!1), K = x(0), k = x(!0), c = x(!1), e = x(void 0), u = z(() => Gq(l, p), [l, p]), W = A != null && A.supported ? A.report_id : p ? l.reportId : void 0, j = B(async () => {
|
|
2419
2419
|
var J;
|
|
2420
|
-
if (!
|
|
2421
|
-
const
|
|
2422
|
-
(J =
|
|
2423
|
-
const
|
|
2424
|
-
|
|
2420
|
+
if (!W && !p || c.current) return;
|
|
2421
|
+
const o = ++K.current;
|
|
2422
|
+
(J = e.current) == null || J.abort();
|
|
2423
|
+
const b = new AbortController();
|
|
2424
|
+
e.current = b;
|
|
2425
2425
|
try {
|
|
2426
|
-
const i = await u(
|
|
2427
|
-
return k.current &&
|
|
2426
|
+
const i = await u(W, "list", void 0, b.signal);
|
|
2427
|
+
return k.current && o === K.current && (q(i), V(void 0)), i;
|
|
2428
2428
|
} catch (i) {
|
|
2429
|
-
k.current &&
|
|
2429
|
+
k.current && o === K.current && (V(i instanceof Error ? i.message : "Notes could not be loaded."), q((I) => I != null && I.can_manage ? I : void 0));
|
|
2430
2430
|
}
|
|
2431
|
-
}, [u,
|
|
2432
|
-
|
|
2433
|
-
k.current = !0,
|
|
2434
|
-
const
|
|
2435
|
-
document.visibilityState === "visible" &&
|
|
2431
|
+
}, [u, W, p]);
|
|
2432
|
+
F(() => {
|
|
2433
|
+
k.current = !0, j();
|
|
2434
|
+
const o = () => {
|
|
2435
|
+
document.visibilityState === "visible" && j();
|
|
2436
2436
|
};
|
|
2437
|
-
return window.addEventListener("focus",
|
|
2438
|
-
var
|
|
2439
|
-
k.current = !1, (
|
|
2437
|
+
return window.addEventListener("focus", o), document.addEventListener("visibilitychange", o), () => {
|
|
2438
|
+
var b;
|
|
2439
|
+
k.current = !1, (b = e.current) == null || b.abort(), K.current++, window.removeEventListener("focus", o), document.removeEventListener("visibilitychange", o);
|
|
2440
2440
|
};
|
|
2441
|
-
}, [
|
|
2442
|
-
const
|
|
2443
|
-
async (
|
|
2444
|
-
if (!
|
|
2441
|
+
}, [j]);
|
|
2442
|
+
const d = B(
|
|
2443
|
+
async (o, b) => {
|
|
2444
|
+
if (!W || !(S != null && S.can_manage) || c.current)
|
|
2445
2445
|
throw new Error("Notes are not available for editing.");
|
|
2446
2446
|
c.current = !0, K.current++, n(!0);
|
|
2447
2447
|
try {
|
|
2448
|
-
const J = await u(
|
|
2448
|
+
const J = await u(W, o, b);
|
|
2449
2449
|
k.current && (q(J), V(void 0));
|
|
2450
2450
|
} finally {
|
|
2451
2451
|
c.current = !1, k.current && n(!1);
|
|
2452
2452
|
}
|
|
2453
2453
|
},
|
|
2454
|
-
[u, S == null ? void 0 : S.can_manage,
|
|
2454
|
+
[u, S == null ? void 0 : S.can_manage, W]
|
|
2455
2455
|
);
|
|
2456
|
-
return { data: S, error: U, busy: r, reload:
|
|
2456
|
+
return { data: S, error: U, busy: r, reload: j, mutate: d };
|
|
2457
2457
|
}
|
|
2458
2458
|
const Dl = ot({ activePage: "dashboard", open: () => {
|
|
2459
2459
|
} });
|
|
@@ -2470,26 +2470,26 @@ function qV({
|
|
|
2470
2470
|
const r = SV(A, l, p), n = z(
|
|
2471
2471
|
() => r.data ? {
|
|
2472
2472
|
...r.data,
|
|
2473
|
-
items: r.data.items.map((
|
|
2474
|
-
var
|
|
2475
|
-
const
|
|
2476
|
-
(
|
|
2473
|
+
items: r.data.items.map((W) => {
|
|
2474
|
+
var d;
|
|
2475
|
+
const j = (d = r.data) == null ? void 0 : d.targets.find(
|
|
2476
|
+
(o) => o.target_id === W.context.target_id && o.section_key === W.context.section_key
|
|
2477
2477
|
);
|
|
2478
|
-
return
|
|
2478
|
+
return j ? { ...W, context: { ...W.context, section_name: j.section_name } } : W;
|
|
2479
2479
|
})
|
|
2480
2480
|
} : void 0,
|
|
2481
2481
|
[r.data]
|
|
2482
|
-
), [K, k] = y(), c = x(null),
|
|
2483
|
-
return
|
|
2484
|
-
c.current && (c.current.inert =
|
|
2485
|
-
}, [
|
|
2482
|
+
), [K, k] = y(), c = x(null), e = !!(K && ((u = r.data) != null && u.supported));
|
|
2483
|
+
return F(() => {
|
|
2484
|
+
c.current && (c.current.inert = e);
|
|
2485
|
+
}, [e]), /* @__PURE__ */ a(
|
|
2486
2486
|
Dl.Provider,
|
|
2487
2487
|
{
|
|
2488
2488
|
value: {
|
|
2489
2489
|
data: n,
|
|
2490
2490
|
activePage: S,
|
|
2491
|
-
open: (
|
|
2492
|
-
target:
|
|
2491
|
+
open: (W) => k({
|
|
2492
|
+
target: W,
|
|
2493
2493
|
returnFocus: document.activeElement instanceof HTMLElement ? document.activeElement : null
|
|
2494
2494
|
})
|
|
2495
2495
|
},
|
|
@@ -2609,11 +2609,11 @@ function tA({ content: A, children: l, side: p = "top" }) {
|
|
|
2609
2609
|
const S = hA(), q = x(null), U = x(null), [V, r] = y(!1), [n, K] = y(null), k = x(null), c = B(() => {
|
|
2610
2610
|
k.current !== null && cancelAnimationFrame(k.current), k.current = requestAnimationFrame(() => {
|
|
2611
2611
|
k.current = null;
|
|
2612
|
-
const
|
|
2613
|
-
if (!
|
|
2614
|
-
const
|
|
2615
|
-
let
|
|
2616
|
-
|
|
2612
|
+
const W = q.current, j = U.current;
|
|
2613
|
+
if (!W || !j) return;
|
|
2614
|
+
const d = W.getBoundingClientRect(), o = j.getBoundingClientRect(), b = 4, J = 12, i = window.innerWidth, I = window.innerHeight;
|
|
2615
|
+
let O = p === "top" ? d.top - o.height - b : d.bottom + b, E = d.left + d.width / 2 - o.width / 2;
|
|
2616
|
+
E = Math.max(J, Math.min(E, i - o.width - J)), p === "top" && O < J ? O = d.bottom + b : p === "bottom" && O + o.height > I - J && (O = d.top - o.height - b), O = Math.max(J, Math.min(O, I - o.height - J)), K({ top: O, left: E });
|
|
2617
2617
|
});
|
|
2618
2618
|
}, [p]);
|
|
2619
2619
|
sl(() => {
|
|
@@ -2627,27 +2627,27 @@ function tA({ content: A, children: l, side: p = "top" }) {
|
|
|
2627
2627
|
}, [V, c]), sl(() => {
|
|
2628
2628
|
V && c();
|
|
2629
2629
|
});
|
|
2630
|
-
const
|
|
2630
|
+
const e = Aa(l) ? ta(l, {
|
|
2631
2631
|
"aria-describedby": V ? S : void 0,
|
|
2632
|
-
onMouseEnter: (
|
|
2633
|
-
var
|
|
2634
|
-
(
|
|
2632
|
+
onMouseEnter: (W) => {
|
|
2633
|
+
var j, d;
|
|
2634
|
+
(d = (j = l.props).onMouseEnter) == null || d.call(j, W), r(!0);
|
|
2635
2635
|
},
|
|
2636
|
-
onMouseLeave: (
|
|
2637
|
-
var
|
|
2638
|
-
(
|
|
2636
|
+
onMouseLeave: (W) => {
|
|
2637
|
+
var j, d;
|
|
2638
|
+
(d = (j = l.props).onMouseLeave) == null || d.call(j, W), r(!1);
|
|
2639
2639
|
},
|
|
2640
|
-
onFocus: (
|
|
2641
|
-
var
|
|
2642
|
-
(
|
|
2640
|
+
onFocus: (W) => {
|
|
2641
|
+
var j, d;
|
|
2642
|
+
(d = (j = l.props).onFocus) == null || d.call(j, W), r(!0);
|
|
2643
2643
|
},
|
|
2644
|
-
onBlur: (
|
|
2645
|
-
var
|
|
2646
|
-
(
|
|
2644
|
+
onBlur: (W) => {
|
|
2645
|
+
var j, d;
|
|
2646
|
+
(d = (j = l.props).onBlur) == null || d.call(j, W), r(!1);
|
|
2647
2647
|
}
|
|
2648
2648
|
}) : l, u = typeof document < "u" ? document.body : null;
|
|
2649
2649
|
return /* @__PURE__ */ a(lA, { children: [
|
|
2650
|
-
/* @__PURE__ */ t("span", { ref: q, className: "inline-flex", children:
|
|
2650
|
+
/* @__PURE__ */ t("span", { ref: q, className: "inline-flex", children: e }),
|
|
2651
2651
|
V && u ? Bl(
|
|
2652
2652
|
/* @__PURE__ */ t(
|
|
2653
2653
|
"span",
|
|
@@ -2664,8 +2664,8 @@ function tA({ content: A, children: l, side: p = "top" }) {
|
|
|
2664
2664
|
opacity: n ? 1 : 0,
|
|
2665
2665
|
pointerEvents: "none",
|
|
2666
2666
|
maxWidth: "min(17.5rem, calc(100vw - 1.5rem))",
|
|
2667
|
-
backgroundColor:
|
|
2668
|
-
color:
|
|
2667
|
+
backgroundColor: H.ui.textPrimaryFigma,
|
|
2668
|
+
color: H.ui.white
|
|
2669
2669
|
},
|
|
2670
2670
|
className: "rounded-md px-2.5 py-1.5 text-left text-xs leading-snug shadow-lg transition-opacity duration-150",
|
|
2671
2671
|
children: A
|
|
@@ -2700,25 +2700,25 @@ function VV(A, l, p, S) {
|
|
|
2700
2700
|
if (p !== void 0 && Number.isFinite(p))
|
|
2701
2701
|
return DA(p);
|
|
2702
2702
|
if (A === null || !Number.isFinite(A)) return 50;
|
|
2703
|
-
const q = (S == null ? void 0 : S.mapping) ?? "relativeTotal", U = l.filter((
|
|
2703
|
+
const q = (S == null ? void 0 : S.mapping) ?? "relativeTotal", U = l.filter((e) => e !== null && Number.isFinite(e));
|
|
2704
2704
|
if (q === "relativeTotal") {
|
|
2705
2705
|
if (U.length === 0) return 50;
|
|
2706
|
-
const
|
|
2707
|
-
return u ===
|
|
2706
|
+
const e = Math.min(...U), u = Math.max(...U);
|
|
2707
|
+
return u === e ? 50 : DA((A - e) / (u - e) * 100);
|
|
2708
2708
|
}
|
|
2709
2709
|
if (q === "absoluteLinear") {
|
|
2710
|
-
const
|
|
2711
|
-
return u ===
|
|
2710
|
+
const e = (S == null ? void 0 : S.scaleMin) ?? 0, u = (S == null ? void 0 : S.scaleMax) ?? 200;
|
|
2711
|
+
return u === e ? 50 : DA((A - e) / (u - e) * 100);
|
|
2712
2712
|
}
|
|
2713
2713
|
const V = (S == null ? void 0 : S.thresholdLowBelow) ?? 100, r = (S == null ? void 0 : S.thresholdHighAbove) ?? 160;
|
|
2714
2714
|
if (r <= V) return 50;
|
|
2715
2715
|
const n = 100 / 3;
|
|
2716
2716
|
if (A <= V) {
|
|
2717
|
-
const
|
|
2718
|
-
return DA(A /
|
|
2717
|
+
const e = V > 0 ? V : 1;
|
|
2718
|
+
return DA(A / e * n);
|
|
2719
2719
|
}
|
|
2720
2720
|
if (A <= r) {
|
|
2721
|
-
const
|
|
2721
|
+
const e = r - V, u = e > 0 ? (A - V) / e : 0;
|
|
2722
2722
|
return DA(n + u * n);
|
|
2723
2723
|
}
|
|
2724
2724
|
const K = r - V, k = K > 0 ? K : 1, c = Math.min(1, (A - r) / k);
|
|
@@ -2809,7 +2809,7 @@ function zp({
|
|
|
2809
2809
|
onClick: p
|
|
2810
2810
|
}) {
|
|
2811
2811
|
return /* @__PURE__ */ t(tA, { content: l, side: "bottom", children: /* @__PURE__ */ t(
|
|
2812
|
-
|
|
2812
|
+
f,
|
|
2813
2813
|
{
|
|
2814
2814
|
type: "button",
|
|
2815
2815
|
align: "center",
|
|
@@ -2877,16 +2877,16 @@ function Xp({
|
|
|
2877
2877
|
/* @__PURE__ */ t("div", { className: "col-span-full border-b border-gray-200" }),
|
|
2878
2878
|
l.map((k, c) => /* @__PURE__ */ a("div", { className: "contents", children: [
|
|
2879
2879
|
/* @__PURE__ */ t("span", { className: `${r} ${k.labelClassName ?? ""}`.trim(), children: k.label }),
|
|
2880
|
-
K(k).map(({ key:
|
|
2880
|
+
K(k).map(({ key: e, value: u, tone: W }) => /* @__PURE__ */ t("div", { className: "flex min-w-0 justify-center self-center py-2.5", children: /* @__PURE__ */ t(
|
|
2881
2881
|
Yl,
|
|
2882
2882
|
{
|
|
2883
2883
|
value: u,
|
|
2884
2884
|
variant: k.valueVariant,
|
|
2885
2885
|
size: "comparison",
|
|
2886
|
-
tone:
|
|
2886
|
+
tone: W,
|
|
2887
2887
|
className: "shrink-0 tabular-nums"
|
|
2888
2888
|
}
|
|
2889
|
-
) },
|
|
2889
|
+
) }, e)),
|
|
2890
2890
|
c < l.length - 1 ? /* @__PURE__ */ t("div", { className: "col-span-full border-b border-gray-200" }) : null
|
|
2891
2891
|
] }, k.label))
|
|
2892
2892
|
] }),
|
|
@@ -3012,13 +3012,13 @@ function xp(A, l) {
|
|
|
3012
3012
|
const yt = "color-mix(in srgb, var(--mb-color-card-border) 76%, transparent)", Et = "rgb(235, 235, 235)";
|
|
3013
3013
|
function gA(A) {
|
|
3014
3014
|
if (A.layout === "labAnalysis") {
|
|
3015
|
-
const { title:
|
|
3015
|
+
const { title: d, markers: o, trendZone: b, onMarkerClick: J } = A, i = nl(b);
|
|
3016
3016
|
return /* @__PURE__ */ a(Ut, { borderColor: yt, children: [
|
|
3017
|
-
/* @__PURE__ */ t(Vt, { title:
|
|
3017
|
+
/* @__PURE__ */ t(Vt, { title: d, headerBackground: Et }),
|
|
3018
3018
|
/* @__PURE__ */ t(
|
|
3019
3019
|
cV,
|
|
3020
3020
|
{
|
|
3021
|
-
markers:
|
|
3021
|
+
markers: o,
|
|
3022
3022
|
onMarkerClick: J,
|
|
3023
3023
|
rangeBar: {
|
|
3024
3024
|
segments: Hp,
|
|
@@ -3031,19 +3031,19 @@ function gA(A) {
|
|
|
3031
3031
|
] });
|
|
3032
3032
|
}
|
|
3033
3033
|
if (A.layout === "labResults") {
|
|
3034
|
-
const { category:
|
|
3035
|
-
return /* @__PURE__ */ a(Ut, { trendColor:
|
|
3034
|
+
const { category: d, onInfoClick: o } = A, b = d.indicatorPercent === void 0 ? void 0 : Kl(jA, d.indicatorPercent);
|
|
3035
|
+
return /* @__PURE__ */ a(Ut, { trendColor: b, children: [
|
|
3036
3036
|
/* @__PURE__ */ t(
|
|
3037
3037
|
Vt,
|
|
3038
3038
|
{
|
|
3039
|
-
title:
|
|
3040
|
-
trendColor:
|
|
3039
|
+
title: d.title,
|
|
3040
|
+
trendColor: b,
|
|
3041
3041
|
trailingInfo: /* @__PURE__ */ t(
|
|
3042
3042
|
zp,
|
|
3043
3043
|
{
|
|
3044
|
-
ariaLabel:
|
|
3045
|
-
tooltip:
|
|
3046
|
-
onClick:
|
|
3044
|
+
ariaLabel: d.infoAriaLabel,
|
|
3045
|
+
tooltip: d.infoTooltip ?? d.infoAriaLabel,
|
|
3046
|
+
onClick: o
|
|
3047
3047
|
}
|
|
3048
3048
|
)
|
|
3049
3049
|
}
|
|
@@ -3051,13 +3051,13 @@ function gA(A) {
|
|
|
3051
3051
|
/* @__PURE__ */ t(
|
|
3052
3052
|
uV,
|
|
3053
3053
|
{
|
|
3054
|
-
normalRange:
|
|
3055
|
-
currentRange:
|
|
3056
|
-
previousRange:
|
|
3054
|
+
normalRange: d.normalRange,
|
|
3055
|
+
currentRange: d.currentRange,
|
|
3056
|
+
previousRange: d.previousRange,
|
|
3057
3057
|
rangeBar: {
|
|
3058
3058
|
segments: jA,
|
|
3059
|
-
indicatorPercent:
|
|
3060
|
-
previousIndicatorPercent:
|
|
3059
|
+
indicatorPercent: d.indicatorPercent,
|
|
3060
|
+
previousIndicatorPercent: d.previousIndicatorPercent,
|
|
3061
3061
|
indicatorPosition: "segmentCenter"
|
|
3062
3062
|
}
|
|
3063
3063
|
}
|
|
@@ -3066,34 +3066,34 @@ function gA(A) {
|
|
|
3066
3066
|
}
|
|
3067
3067
|
if (A.layout === "metricRows") {
|
|
3068
3068
|
const {
|
|
3069
|
-
title:
|
|
3070
|
-
infoAriaLabel:
|
|
3071
|
-
infoTooltip:
|
|
3069
|
+
title: d,
|
|
3070
|
+
infoAriaLabel: o,
|
|
3071
|
+
infoTooltip: b,
|
|
3072
3072
|
onInfoClick: J,
|
|
3073
3073
|
showInfoButton: i = !0,
|
|
3074
|
-
rows:
|
|
3075
|
-
indicatorPercent:
|
|
3076
|
-
indicatorPosition:
|
|
3074
|
+
rows: I,
|
|
3075
|
+
indicatorPercent: O,
|
|
3076
|
+
indicatorPosition: E,
|
|
3077
3077
|
segments: X = TA,
|
|
3078
|
-
neutralFrame:
|
|
3079
|
-
} = A, P =
|
|
3078
|
+
neutralFrame: s
|
|
3079
|
+
} = A, P = O === void 0 ? void 0 : Kl(X, O);
|
|
3080
3080
|
return /* @__PURE__ */ a(
|
|
3081
3081
|
Ut,
|
|
3082
3082
|
{
|
|
3083
|
-
trendColor:
|
|
3084
|
-
borderColor:
|
|
3083
|
+
trendColor: s ? void 0 : P,
|
|
3084
|
+
borderColor: s ? yt : void 0,
|
|
3085
3085
|
children: [
|
|
3086
3086
|
/* @__PURE__ */ t(
|
|
3087
3087
|
Vt,
|
|
3088
3088
|
{
|
|
3089
|
-
title:
|
|
3090
|
-
trendColor:
|
|
3091
|
-
headerBackground:
|
|
3089
|
+
title: d,
|
|
3090
|
+
trendColor: s ? void 0 : P,
|
|
3091
|
+
headerBackground: s ? Et : void 0,
|
|
3092
3092
|
trailingInfo: i ? /* @__PURE__ */ t(
|
|
3093
3093
|
zp,
|
|
3094
3094
|
{
|
|
3095
|
-
ariaLabel:
|
|
3096
|
-
tooltip:
|
|
3095
|
+
ariaLabel: o,
|
|
3096
|
+
tooltip: b ?? o,
|
|
3097
3097
|
onClick: J
|
|
3098
3098
|
}
|
|
3099
3099
|
) : void 0
|
|
@@ -3102,11 +3102,11 @@ function gA(A) {
|
|
|
3102
3102
|
/* @__PURE__ */ t(
|
|
3103
3103
|
dV,
|
|
3104
3104
|
{
|
|
3105
|
-
rows:
|
|
3105
|
+
rows: I,
|
|
3106
3106
|
rangeBar: {
|
|
3107
3107
|
segments: X,
|
|
3108
|
-
indicatorPercent:
|
|
3109
|
-
indicatorPosition:
|
|
3108
|
+
indicatorPercent: O,
|
|
3109
|
+
indicatorPosition: E
|
|
3110
3110
|
}
|
|
3111
3111
|
}
|
|
3112
3112
|
)
|
|
@@ -3116,28 +3116,28 @@ function gA(A) {
|
|
|
3116
3116
|
}
|
|
3117
3117
|
if (A.layout === "questionnaire") {
|
|
3118
3118
|
const {
|
|
3119
|
-
category:
|
|
3120
|
-
currentRangeLabel:
|
|
3121
|
-
previousRangeLabel:
|
|
3119
|
+
category: d,
|
|
3120
|
+
currentRangeLabel: o = "Current Range",
|
|
3121
|
+
previousRangeLabel: b = "Previous Range",
|
|
3122
3122
|
onCategoryClick: J
|
|
3123
|
-
} = A, i = xp(
|
|
3123
|
+
} = A, i = xp(b, "Previous"), I = xp(o, "Current"), O = nl(d.trendZone), E = d.previousTrendZone === void 0 ? void 0 : nl(d.previousTrendZone), X = !!(J && d.organKey), s = X ? () => J == null ? void 0 : J(d) : void 0, P = {
|
|
3124
3124
|
"data-mc-audit-kind": "questionnaire-category",
|
|
3125
|
-
"data-mc-metric-name":
|
|
3126
|
-
"data-mc-symptom-score":
|
|
3127
|
-
"data-mc-previous-symptom-score":
|
|
3128
|
-
"data-mc-risk":
|
|
3129
|
-
"data-mc-trend-zone":
|
|
3130
|
-
"data-mc-previous-trend-zone":
|
|
3131
|
-
"data-mc-indicator-percent":
|
|
3132
|
-
"data-mc-previous-indicator-percent":
|
|
3125
|
+
"data-mc-metric-name": d.title,
|
|
3126
|
+
"data-mc-symptom-score": d.symptomScore,
|
|
3127
|
+
"data-mc-previous-symptom-score": d.previousSymptom,
|
|
3128
|
+
"data-mc-risk": d.riskLabel ?? d.trendZone,
|
|
3129
|
+
"data-mc-trend-zone": d.trendZone,
|
|
3130
|
+
"data-mc-previous-trend-zone": d.previousTrendZone,
|
|
3131
|
+
"data-mc-indicator-percent": O,
|
|
3132
|
+
"data-mc-previous-indicator-percent": E
|
|
3133
3133
|
}, Q = /* @__PURE__ */ a(Ut, { borderColor: yt, children: [
|
|
3134
3134
|
/* @__PURE__ */ t(
|
|
3135
3135
|
Vt,
|
|
3136
3136
|
{
|
|
3137
|
-
title:
|
|
3137
|
+
title: d.title,
|
|
3138
3138
|
headerBackground: Et,
|
|
3139
3139
|
titleAccessoryPlacement: "inline",
|
|
3140
|
-
titleAccessory: /* @__PURE__ */ t(tA, { content:
|
|
3140
|
+
titleAccessory: /* @__PURE__ */ t(tA, { content: d.infoTooltip ?? d.infoAriaLabel, side: "bottom", children: /* @__PURE__ */ t("span", { className: "inline-flex shrink-0 text-[#1C2024]", "aria-hidden": !0, children: /* @__PURE__ */ t(_, { className: "size-4" }) }) }),
|
|
3141
3141
|
trailingInfo: /* @__PURE__ */ t(tt, { className: "size-4 shrink-0 text-[color:var(--mb-color-text)]" })
|
|
3142
3142
|
}
|
|
3143
3143
|
),
|
|
@@ -3145,18 +3145,18 @@ function gA(A) {
|
|
|
3145
3145
|
Xp,
|
|
3146
3146
|
{
|
|
3147
3147
|
variant: "questionnaire",
|
|
3148
|
-
columnHeaders: [i,
|
|
3148
|
+
columnHeaders: [i, I],
|
|
3149
3149
|
rows: [
|
|
3150
3150
|
{
|
|
3151
3151
|
label: "Symptom Score",
|
|
3152
|
-
current:
|
|
3153
|
-
previous:
|
|
3152
|
+
current: d.symptomScore,
|
|
3153
|
+
previous: d.previousSymptom
|
|
3154
3154
|
}
|
|
3155
3155
|
],
|
|
3156
3156
|
rangeBar: {
|
|
3157
3157
|
segments: Hp,
|
|
3158
|
-
indicatorPercent:
|
|
3159
|
-
previousIndicatorPercent:
|
|
3158
|
+
indicatorPercent: O,
|
|
3159
|
+
previousIndicatorPercent: E,
|
|
3160
3160
|
indicatorPosition: "segmentCenter",
|
|
3161
3161
|
dimInactiveSegments: !1,
|
|
3162
3162
|
className: "mt-1",
|
|
@@ -3171,16 +3171,16 @@ function gA(A) {
|
|
|
3171
3171
|
{
|
|
3172
3172
|
type: "button",
|
|
3173
3173
|
className: "w-full min-w-0 cursor-pointer rounded-lg border-0 bg-transparent p-0 text-left 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)]",
|
|
3174
|
-
onClick:
|
|
3175
|
-
"aria-label": `View ${
|
|
3174
|
+
onClick: s,
|
|
3175
|
+
"aria-label": `View ${d.title} details`,
|
|
3176
3176
|
...P,
|
|
3177
3177
|
children: Q
|
|
3178
3178
|
}
|
|
3179
3179
|
),
|
|
3180
|
-
/* @__PURE__ */ t(rA, { targetId:
|
|
3180
|
+
/* @__PURE__ */ t(rA, { targetId: d.noteTargetId })
|
|
3181
3181
|
] }) : /* @__PURE__ */ a("div", { className: "mb-note-surface", ...P, children: [
|
|
3182
3182
|
Q,
|
|
3183
|
-
/* @__PURE__ */ t(rA, { targetId:
|
|
3183
|
+
/* @__PURE__ */ t(rA, { targetId: d.noteTargetId })
|
|
3184
3184
|
] });
|
|
3185
3185
|
}
|
|
3186
3186
|
const {
|
|
@@ -3196,7 +3196,7 @@ function gA(A) {
|
|
|
3196
3196
|
q,
|
|
3197
3197
|
l.trendIndicatorPercent,
|
|
3198
3198
|
U
|
|
3199
|
-
), K = Kl(jA, n), k = !!(V && l.organKey), c = k ? () => V == null ? void 0 : V(l) : void 0,
|
|
3199
|
+
), K = Kl(jA, n), k = !!(V && l.organKey), c = k ? () => V == null ? void 0 : V(l) : void 0, e = l.infoAriaLabel ?? `${l.title} information`, u = l.infoTooltip ?? e, W = k ? "w-full min-w-0 cursor-pointer border-0 bg-transparent p-0 text-left 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)]" : "", j = /* @__PURE__ */ t(lA, { children: /* @__PURE__ */ a(
|
|
3200
3200
|
Ut,
|
|
3201
3201
|
{
|
|
3202
3202
|
trendColor: r ? void 0 : K,
|
|
@@ -3257,15 +3257,15 @@ function gA(A) {
|
|
|
3257
3257
|
"button",
|
|
3258
3258
|
{
|
|
3259
3259
|
type: "button",
|
|
3260
|
-
className:
|
|
3260
|
+
className: W,
|
|
3261
3261
|
onClick: c,
|
|
3262
3262
|
"aria-label": `View ${l.title} details`,
|
|
3263
|
-
children:
|
|
3263
|
+
children: j
|
|
3264
3264
|
}
|
|
3265
3265
|
),
|
|
3266
3266
|
/* @__PURE__ */ t(rA, { targetId: l.noteTargetId })
|
|
3267
3267
|
] }) : /* @__PURE__ */ a("div", { className: "mb-note-surface", children: [
|
|
3268
|
-
|
|
3268
|
+
j,
|
|
3269
3269
|
/* @__PURE__ */ t(rA, { targetId: l.noteTargetId })
|
|
3270
3270
|
] });
|
|
3271
3271
|
}
|
|
@@ -3276,7 +3276,7 @@ const oV = {
|
|
|
3276
3276
|
4: "text-[color:var(--mb-color-triad-4)]",
|
|
3277
3277
|
5: "text-[color:var(--mb-color-triad-5)]"
|
|
3278
3278
|
};
|
|
3279
|
-
({ ...
|
|
3279
|
+
({ ...H.triad });
|
|
3280
3280
|
function Nl({
|
|
3281
3281
|
triadNumber: A,
|
|
3282
3282
|
heading: l,
|
|
@@ -3288,7 +3288,7 @@ function Nl({
|
|
|
3288
3288
|
infoTooltip: r,
|
|
3289
3289
|
onInfoClick: n
|
|
3290
3290
|
}) {
|
|
3291
|
-
const K = V ?? `${l} information`, k = r ?? K, c = q ? "text-[color:var(--mb-color-text)]" : U ? oV[U] : "text-[color:var(--mb-color-text)]",
|
|
3291
|
+
const K = V ?? `${l} information`, k = r ?? K, c = q ? "text-[color:var(--mb-color-text)]" : U ? oV[U] : "text-[color:var(--mb-color-text)]", e = q ? `var(--mb-color-risk-${q})` : "var(--mb-color-card-border)", u = q ? `var(--mb-color-risk-${q}-tint)` : "var(--mb-color-card-bg)", W = p.endsWith(":") ? p : `${p}:`;
|
|
3292
3292
|
return /* @__PURE__ */ a("div", { className: "mb-note-surface mb-6 flex min-w-0 flex-col items-stretch gap-3 @min-[30rem]:flex-row @min-[30rem]:items-center @min-[30rem]:justify-between @min-[30rem]:gap-4", children: [
|
|
3293
3293
|
/* @__PURE__ */ t(rA, { targetId: `metric:triad${A}` }),
|
|
3294
3294
|
/* @__PURE__ */ a("div", { className: "flex w-full min-w-0 items-center gap-2 @min-[30rem]:w-auto @min-[30rem]:flex-1", children: [
|
|
@@ -3296,7 +3296,7 @@ function Nl({
|
|
|
3296
3296
|
/* @__PURE__ */ a("div", { className: "flex min-w-0 flex-wrap items-center gap-x-2 gap-y-1", children: [
|
|
3297
3297
|
/* @__PURE__ */ t("h2", { className: "m-0 min-w-0 break-words text-xl font-bold leading-tight text-[color:var(--mb-color-text)]", children: l }),
|
|
3298
3298
|
/* @__PURE__ */ t(tA, { content: k, side: "bottom", children: /* @__PURE__ */ t(
|
|
3299
|
-
|
|
3299
|
+
f,
|
|
3300
3300
|
{
|
|
3301
3301
|
type: "button",
|
|
3302
3302
|
align: "center",
|
|
@@ -3309,12 +3309,12 @@ function Nl({
|
|
|
3309
3309
|
] })
|
|
3310
3310
|
] }),
|
|
3311
3311
|
/* @__PURE__ */ a("div", { className: "flex w-full min-w-0 items-center justify-between gap-2 @min-[30rem]:w-auto @min-[30rem]:shrink-0 @min-[30rem]:justify-start", children: [
|
|
3312
|
-
/* @__PURE__ */ t("span", { className: "text-base font-bold text-[color:var(--mb-color-text)]", children:
|
|
3312
|
+
/* @__PURE__ */ t("span", { className: "text-base font-bold text-[color:var(--mb-color-text)]", children: W }),
|
|
3313
3313
|
/* @__PURE__ */ t(
|
|
3314
3314
|
"span",
|
|
3315
3315
|
{
|
|
3316
3316
|
className: `inline-flex max-w-full min-w-[4rem] items-center justify-center rounded-[length:var(--mb-badge-radius)] border px-3 py-1 text-[1.75rem] font-bold leading-none tabular-nums ${c}`,
|
|
3317
|
-
style: { borderColor:
|
|
3317
|
+
style: { borderColor: e, backgroundColor: u },
|
|
3318
3318
|
children: S
|
|
3319
3319
|
}
|
|
3320
3320
|
)
|
|
@@ -3332,9 +3332,9 @@ function WV(A) {
|
|
|
3332
3332
|
descriptionParagraphs: r,
|
|
3333
3333
|
descriptionPrimary: n,
|
|
3334
3334
|
descriptionSecondary: K
|
|
3335
|
-
} = A, k = U ?? [], [c,
|
|
3336
|
-
() => k.find((
|
|
3337
|
-
), [u,
|
|
3335
|
+
} = A, k = U ?? [], [c, e] = y(
|
|
3336
|
+
() => k.find((o) => o.statusExplanationPanel) ?? null
|
|
3337
|
+
), [u, W] = y(!1), j = r != null && r.length ? r : [n, K].filter((o) => !!o), d = mA();
|
|
3338
3338
|
return /* @__PURE__ */ a(lA, { children: [
|
|
3339
3339
|
/* @__PURE__ */ a(m, { className: "@container flex min-w-0 flex-col", children: [
|
|
3340
3340
|
/* @__PURE__ */ t(
|
|
@@ -3354,25 +3354,25 @@ function WV(A) {
|
|
|
3354
3354
|
title: q,
|
|
3355
3355
|
markers: k,
|
|
3356
3356
|
trendZone: V,
|
|
3357
|
-
onMarkerClick: (
|
|
3358
|
-
|
|
3357
|
+
onMarkerClick: (o) => {
|
|
3358
|
+
o.statusExplanationPanel && (e(o), W(!0));
|
|
3359
3359
|
}
|
|
3360
3360
|
}
|
|
3361
3361
|
),
|
|
3362
|
-
|
|
3362
|
+
j.length > 0 ? /* @__PURE__ */ t("div", { className: "mt-5 space-y-4 text-sm leading-relaxed text-[color:var(--mb-color-text-muted)]", children: j.map((o) => /* @__PURE__ */ t(
|
|
3363
3363
|
"p",
|
|
3364
3364
|
{
|
|
3365
3365
|
className: "m-0",
|
|
3366
|
-
children:
|
|
3366
|
+
children: o
|
|
3367
3367
|
},
|
|
3368
|
-
|
|
3368
|
+
d(`${l}-${o}`, "lab-analysis-description")
|
|
3369
3369
|
)) }) : null
|
|
3370
3370
|
] }),
|
|
3371
3371
|
c != null && c.statusExplanationPanel && c.status && u ? /* @__PURE__ */ t(
|
|
3372
3372
|
JA,
|
|
3373
3373
|
{
|
|
3374
3374
|
open: !0,
|
|
3375
|
-
onClose: () =>
|
|
3375
|
+
onClose: () => W(!1),
|
|
3376
3376
|
title: c.statusExplanationPanel.panelTitle ?? c.label,
|
|
3377
3377
|
trendStatus: c.status,
|
|
3378
3378
|
bodyParagraphs: c.statusExplanationPanel.bodyParagraphs ?? [],
|
|
@@ -3517,7 +3517,7 @@ function QA({
|
|
|
3517
3517
|
}) {
|
|
3518
3518
|
return /* @__PURE__ */ t("div", { className: l, role: "status", "aria-busy": "true", "aria-live": "polite", children: A });
|
|
3519
3519
|
}
|
|
3520
|
-
function
|
|
3520
|
+
function R({ className: A = "" }) {
|
|
3521
3521
|
return /* @__PURE__ */ t("div", { className: `mb-skeleton rounded-md ${A}`.trim(), "aria-hidden": !0 });
|
|
3522
3522
|
}
|
|
3523
3523
|
function gp({ className: A = "" }) {
|
|
@@ -3552,7 +3552,7 @@ function Cl({ size: A = "compact" }) {
|
|
|
3552
3552
|
"span",
|
|
3553
3553
|
{
|
|
3554
3554
|
className: `inline-flex h-[2rem] ${A === "range" ? "w-[9rem]" : "w-[4.25rem]"} shrink-0 items-center justify-center rounded-[length:var(--mb-badge-radius)] bg-[#ebebeb] px-2`,
|
|
3555
|
-
children: /* @__PURE__ */ t(
|
|
3555
|
+
children: /* @__PURE__ */ t(R, { className: "h-3 w-7" })
|
|
3556
3556
|
}
|
|
3557
3557
|
);
|
|
3558
3558
|
}
|
|
@@ -3628,8 +3628,8 @@ function TV({ markerSlots: A }) {
|
|
|
3628
3628
|
{
|
|
3629
3629
|
className: "flex min-w-0 items-baseline gap-1 text-sm text-[color:var(--mb-color-text)]",
|
|
3630
3630
|
children: [
|
|
3631
|
-
/* @__PURE__ */ t(
|
|
3632
|
-
/* @__PURE__ */ t(
|
|
3631
|
+
/* @__PURE__ */ t(R, { className: "h-4 w-[min(100%,6rem)]" }),
|
|
3632
|
+
/* @__PURE__ */ t(R, { className: "h-4 w-8 shrink-0" })
|
|
3633
3633
|
]
|
|
3634
3634
|
},
|
|
3635
3635
|
`slot-${l}`
|
|
@@ -3688,35 +3688,35 @@ function Ic({ children: A }) {
|
|
|
3688
3688
|
function yV(A) {
|
|
3689
3689
|
if (A.variant === "questionnaire") {
|
|
3690
3690
|
const {
|
|
3691
|
-
triadNumber:
|
|
3691
|
+
triadNumber: b,
|
|
3692
3692
|
heading: J,
|
|
3693
3693
|
aggregateScore: i,
|
|
3694
|
-
aggregateTrendZone:
|
|
3695
|
-
categories:
|
|
3696
|
-
currentRangeLabel:
|
|
3694
|
+
aggregateTrendZone: I,
|
|
3695
|
+
categories: O,
|
|
3696
|
+
currentRangeLabel: E,
|
|
3697
3697
|
previousRangeLabel: X,
|
|
3698
|
-
onCategoryInfoClick:
|
|
3698
|
+
onCategoryInfoClick: s,
|
|
3699
3699
|
onCategoryClick: P
|
|
3700
3700
|
} = A;
|
|
3701
3701
|
return /* @__PURE__ */ a(m, { className: "@container flex min-w-0 flex-col", children: [
|
|
3702
3702
|
/* @__PURE__ */ t(
|
|
3703
3703
|
Nl,
|
|
3704
3704
|
{
|
|
3705
|
-
triadNumber:
|
|
3705
|
+
triadNumber: b,
|
|
3706
3706
|
heading: J,
|
|
3707
3707
|
scoreLabel: "Score",
|
|
3708
3708
|
score: i,
|
|
3709
|
-
scoreTone:
|
|
3709
|
+
scoreTone: I === "unknown" ? void 0 : I
|
|
3710
3710
|
}
|
|
3711
3711
|
),
|
|
3712
|
-
/* @__PURE__ */ t("div", { className: "grid min-w-0 grid-cols-1 gap-4 @min-[44rem]:grid-cols-2 @min-[72rem]:grid-cols-3", children: (
|
|
3712
|
+
/* @__PURE__ */ t("div", { className: "grid min-w-0 grid-cols-1 gap-4 @min-[44rem]:grid-cols-2 @min-[72rem]:grid-cols-3", children: (O ?? []).map((Z) => /* @__PURE__ */ t(
|
|
3713
3713
|
gA,
|
|
3714
3714
|
{
|
|
3715
3715
|
layout: "questionnaire",
|
|
3716
3716
|
category: Z,
|
|
3717
|
-
currentRangeLabel:
|
|
3717
|
+
currentRangeLabel: E,
|
|
3718
3718
|
previousRangeLabel: X,
|
|
3719
|
-
onInfoClick:
|
|
3719
|
+
onInfoClick: s,
|
|
3720
3720
|
onCategoryClick: P
|
|
3721
3721
|
},
|
|
3722
3722
|
Z.title
|
|
@@ -3734,9 +3734,9 @@ function yV(A) {
|
|
|
3734
3734
|
previousRangeLabel: K = "Previous Range",
|
|
3735
3735
|
trendBar: k,
|
|
3736
3736
|
categories: c,
|
|
3737
|
-
onInfoClick:
|
|
3737
|
+
onInfoClick: e,
|
|
3738
3738
|
onCategoryClick: u
|
|
3739
|
-
} = A,
|
|
3739
|
+
} = A, W = c ?? [], j = U === "unknown" ? void 0 : U, d = W.map((b) => wl(b.totalScore));
|
|
3740
3740
|
return /* @__PURE__ */ a(m, { className: "@container flex min-w-0 flex-col", children: [
|
|
3741
3741
|
/* @__PURE__ */ t(
|
|
3742
3742
|
Nl,
|
|
@@ -3745,25 +3745,25 @@ function yV(A) {
|
|
|
3745
3745
|
heading: S,
|
|
3746
3746
|
scoreLabel: "Score",
|
|
3747
3747
|
score: q,
|
|
3748
|
-
scoreTone:
|
|
3748
|
+
scoreTone: j,
|
|
3749
3749
|
scoreFallbackTone: p,
|
|
3750
3750
|
infoAriaLabel: V,
|
|
3751
3751
|
infoTooltip: r ?? V,
|
|
3752
|
-
onInfoClick:
|
|
3752
|
+
onInfoClick: e
|
|
3753
3753
|
}
|
|
3754
3754
|
),
|
|
3755
|
-
/* @__PURE__ */ t("div", { className: "grid min-w-0 grid-cols-1 gap-4 @min-[44rem]:grid-cols-2 @min-[72rem]:grid-cols-3", children:
|
|
3755
|
+
/* @__PURE__ */ t("div", { className: "grid min-w-0 grid-cols-1 gap-4 @min-[44rem]:grid-cols-2 @min-[72rem]:grid-cols-3", children: W.map((b) => /* @__PURE__ */ t(
|
|
3756
3756
|
gA,
|
|
3757
3757
|
{
|
|
3758
3758
|
layout: "triadResiliency",
|
|
3759
|
-
category:
|
|
3759
|
+
category: b,
|
|
3760
3760
|
currentRangeLabel: n,
|
|
3761
3761
|
previousRangeLabel: K,
|
|
3762
|
-
siblingTotals:
|
|
3762
|
+
siblingTotals: d,
|
|
3763
3763
|
trendBar: k,
|
|
3764
3764
|
onCategoryClick: u
|
|
3765
3765
|
},
|
|
3766
|
-
|
|
3766
|
+
b.title
|
|
3767
3767
|
)) })
|
|
3768
3768
|
] });
|
|
3769
3769
|
}
|
|
@@ -3782,7 +3782,7 @@ function EV({
|
|
|
3782
3782
|
/* @__PURE__ */ a("div", { className: "flex min-w-0 items-center gap-1.5", children: [
|
|
3783
3783
|
/* @__PURE__ */ t("h2", { className: "m-0 min-w-0 break-words p-0 text-xl font-bold text-[color:var(--mb-color-text)]", children: A }),
|
|
3784
3784
|
q && n ? /* @__PURE__ */ t(tA, { content: n, children: /* @__PURE__ */ t(
|
|
3785
|
-
|
|
3785
|
+
f,
|
|
3786
3786
|
{
|
|
3787
3787
|
type: "button",
|
|
3788
3788
|
align: "center",
|
|
@@ -3856,15 +3856,15 @@ function NV({
|
|
|
3856
3856
|
questionnaireLastLabel: K,
|
|
3857
3857
|
labsRowLabel: k,
|
|
3858
3858
|
labsLastLabel: c,
|
|
3859
|
-
wearableRowLabel:
|
|
3859
|
+
wearableRowLabel: e,
|
|
3860
3860
|
wearableValueLabel: u,
|
|
3861
|
-
className:
|
|
3861
|
+
className: W = ""
|
|
3862
3862
|
}) {
|
|
3863
|
-
const
|
|
3863
|
+
const j = r ?? V, d = !!(n && K), o = !!(k && c), b = !!(e && u), J = d || o || b, i = Xt(p, { min: 0, max: 100 }), I = Math.round(Xt(l, { min: 0, max: 100 }));
|
|
3864
3864
|
return /* @__PURE__ */ a(
|
|
3865
3865
|
m,
|
|
3866
3866
|
{
|
|
3867
|
-
className: `@container min-w-0 ${
|
|
3867
|
+
className: `@container min-w-0 ${W}`.trim(),
|
|
3868
3868
|
"data-mc-audit-kind": "overall-score",
|
|
3869
3869
|
"data-mc-score": p,
|
|
3870
3870
|
"data-mc-status": q,
|
|
@@ -3873,8 +3873,8 @@ function NV({
|
|
|
3873
3873
|
/* @__PURE__ */ a("div", { className: "mb-4 flex min-w-0 flex-col items-stretch gap-2 @min-[30rem]:flex-row @min-[30rem]:items-start @min-[30rem]:justify-between @min-[30rem]:gap-4", children: [
|
|
3874
3874
|
/* @__PURE__ */ a("div", { className: "flex min-w-0 items-center gap-1.5 @min-[30rem]:flex-1", children: [
|
|
3875
3875
|
/* @__PURE__ */ t("h2", { className: "m-0 min-w-0 break-words p-0 text-xl font-bold text-[color:var(--mb-color-text)]", children: A }),
|
|
3876
|
-
V &&
|
|
3877
|
-
|
|
3876
|
+
V && j ? /* @__PURE__ */ t(tA, { content: j, children: /* @__PURE__ */ t(
|
|
3877
|
+
f,
|
|
3878
3878
|
{
|
|
3879
3879
|
type: "button",
|
|
3880
3880
|
align: "center",
|
|
@@ -3889,7 +3889,7 @@ function NV({
|
|
|
3889
3889
|
{
|
|
3890
3890
|
className: `max-w-full shrink-0 self-end text-[3.75rem] font-bold leading-none @min-[30rem]:self-auto ${S}`,
|
|
3891
3891
|
children: [
|
|
3892
|
-
|
|
3892
|
+
I,
|
|
3893
3893
|
"%"
|
|
3894
3894
|
]
|
|
3895
3895
|
}
|
|
@@ -3906,7 +3906,7 @@ function NV({
|
|
|
3906
3906
|
}
|
|
3907
3907
|
),
|
|
3908
3908
|
J ? /* @__PURE__ */ a("ul", { className: "list-none p-0 mx-0 mb-0 mt-4", children: [
|
|
3909
|
-
|
|
3909
|
+
d ? /* @__PURE__ */ t(
|
|
3910
3910
|
At,
|
|
3911
3911
|
{
|
|
3912
3912
|
Icon: Dt,
|
|
@@ -3914,22 +3914,22 @@ function NV({
|
|
|
3914
3914
|
badge: K
|
|
3915
3915
|
}
|
|
3916
3916
|
) : null,
|
|
3917
|
-
|
|
3917
|
+
o ? /* @__PURE__ */ t(
|
|
3918
3918
|
At,
|
|
3919
3919
|
{
|
|
3920
3920
|
Icon: vl,
|
|
3921
3921
|
label: k,
|
|
3922
3922
|
badge: c,
|
|
3923
|
-
bordered:
|
|
3923
|
+
bordered: d
|
|
3924
3924
|
}
|
|
3925
3925
|
) : null,
|
|
3926
|
-
|
|
3926
|
+
b ? /* @__PURE__ */ t(
|
|
3927
3927
|
At,
|
|
3928
3928
|
{
|
|
3929
3929
|
Icon: Gl,
|
|
3930
|
-
label:
|
|
3930
|
+
label: e,
|
|
3931
3931
|
badge: u,
|
|
3932
|
-
bordered:
|
|
3932
|
+
bordered: d || o
|
|
3933
3933
|
}
|
|
3934
3934
|
) : null
|
|
3935
3935
|
] }) : null
|
|
@@ -4034,7 +4034,7 @@ function zV(A) {
|
|
|
4034
4034
|
imageSrc: S,
|
|
4035
4035
|
imageAlt: q,
|
|
4036
4036
|
scheduleRows: U
|
|
4037
|
-
}, c = () => V == null ? void 0 : V(k),
|
|
4037
|
+
}, c = () => V == null ? void 0 : V(k), e = !!V;
|
|
4038
4038
|
return /* @__PURE__ */ a(
|
|
4039
4039
|
m,
|
|
4040
4040
|
{
|
|
@@ -4045,7 +4045,7 @@ function zV(A) {
|
|
|
4045
4045
|
children: [
|
|
4046
4046
|
/* @__PURE__ */ t(rA, { targetId: A.noteTargetId }),
|
|
4047
4047
|
/* @__PURE__ */ a("div", { className: "flex min-w-0 flex-wrap items-start gap-3 sm:gap-4", children: [
|
|
4048
|
-
|
|
4048
|
+
e ? /* @__PURE__ */ t(
|
|
4049
4049
|
"button",
|
|
4050
4050
|
{
|
|
4051
4051
|
type: "button",
|
|
@@ -4062,7 +4062,7 @@ function zV(A) {
|
|
|
4062
4062
|
{
|
|
4063
4063
|
type: "button",
|
|
4064
4064
|
onClick: c,
|
|
4065
|
-
disabled: !
|
|
4065
|
+
disabled: !e,
|
|
4066
4066
|
className: "relative mx-auto aspect-square w-full max-w-60 shrink-0 rounded-[length:var(--mb-radius-button)] border-0 bg-transparent p-0 transition enabled:cursor-pointer enabled:hover:bg-[color:var(--mb-color-nav-hover)] enabled:focus-visible:outline-none enabled:focus-visible:ring-2 enabled:focus-visible:ring-[color:var(--mb-color-focus-ring)] md:mx-0 md:w-44 md:max-w-44 md:basis-44 xl:w-40 xl:max-w-40 xl:basis-40 2xl:w-44 2xl:max-w-44 2xl:basis-44",
|
|
4067
4067
|
"aria-label": `View ${l} product information`,
|
|
4068
4068
|
children: /* @__PURE__ */ t(
|
|
@@ -4109,7 +4109,7 @@ function ic({
|
|
|
4109
4109
|
title: A,
|
|
4110
4110
|
trailingInline: !0,
|
|
4111
4111
|
trailing: /* @__PURE__ */ t(tA, { content: p ?? l, children: /* @__PURE__ */ t(
|
|
4112
|
-
|
|
4112
|
+
f,
|
|
4113
4113
|
{
|
|
4114
4114
|
type: "button",
|
|
4115
4115
|
align: "center",
|
|
@@ -4123,7 +4123,7 @@ function ic({
|
|
|
4123
4123
|
/* @__PURE__ */ a("div", { className: "flex min-h-0 flex-1 flex-col justify-end", children: [
|
|
4124
4124
|
/* @__PURE__ */ t($U, { labels: S, values: q, fill: U, stroke: V }),
|
|
4125
4125
|
/* @__PURE__ */ t(
|
|
4126
|
-
|
|
4126
|
+
f,
|
|
4127
4127
|
{
|
|
4128
4128
|
type: "button",
|
|
4129
4129
|
variant: "soft",
|
|
@@ -4145,7 +4145,7 @@ function XV({
|
|
|
4145
4145
|
}) {
|
|
4146
4146
|
return /* @__PURE__ */ a(m, { className: "relative min-w-0 overflow-hidden !rounded-xl !border-0 !bg-[color:var(--mb-color-welcome-banner-bg)] !p-5 text-white sm:!p-6", children: [
|
|
4147
4147
|
S ? /* @__PURE__ */ t(
|
|
4148
|
-
|
|
4148
|
+
f,
|
|
4149
4149
|
{
|
|
4150
4150
|
type: "button",
|
|
4151
4151
|
variant: "default",
|
|
@@ -4198,7 +4198,7 @@ function Tc({
|
|
|
4198
4198
|
/* @__PURE__ */ a("div", { className: "flex min-w-0 items-center gap-2 sm:min-w-0 sm:flex-1", children: [
|
|
4199
4199
|
/* @__PURE__ */ t("h2", { className: "min-w-0 flex-1 break-words text-xl font-bold leading-snug text-[color:var(--mb-color-text)]", children: A }),
|
|
4200
4200
|
/* @__PURE__ */ t(tA, { content: S ?? p, children: /* @__PURE__ */ t(
|
|
4201
|
-
|
|
4201
|
+
f,
|
|
4202
4202
|
{
|
|
4203
4203
|
type: "button",
|
|
4204
4204
|
align: "center",
|
|
@@ -4405,7 +4405,7 @@ function DV({
|
|
|
4405
4405
|
className: "size-6 shrink-0 text-[color:var(--mb-color-text)]"
|
|
4406
4406
|
}
|
|
4407
4407
|
) : /* @__PURE__ */ t(tA, { content: r, children: /* @__PURE__ */ t(
|
|
4408
|
-
|
|
4408
|
+
f,
|
|
4409
4409
|
{
|
|
4410
4410
|
type: "button",
|
|
4411
4411
|
align: "center",
|
|
@@ -4560,14 +4560,14 @@ function $V(A) {
|
|
|
4560
4560
|
};
|
|
4561
4561
|
});
|
|
4562
4562
|
}
|
|
4563
|
-
const { risk: xA } =
|
|
4563
|
+
const { risk: xA } = H;
|
|
4564
4564
|
function Ar(A, l, p) {
|
|
4565
4565
|
const S = l.trim() || "Category", q = p == null ? void 0 : p.trim();
|
|
4566
4566
|
if (q) {
|
|
4567
|
-
const U = A === "high" || A === "low" ? xA.high : A === "trending" ? xA.moderate : A === "optimal" ? xA.low :
|
|
4567
|
+
const U = A === "high" || A === "low" ? xA.high : A === "trending" ? xA.moderate : A === "optimal" ? xA.low : H.ui.textMuted;
|
|
4568
4568
|
return { text: `Your ${S} is ${q}`, color: U };
|
|
4569
4569
|
}
|
|
4570
|
-
return A === "optimal" ? { text: `Your ${S} is Optimal`, color: xA.low } : A === "high" ? { text: `Your ${S} is High`, color: xA.high } : A === "low" ? { text: `Your ${S} is Low`, color: xA.high } : A === "trending" ? { text: `Your ${S} is Trending`, color: xA.moderate } : { text: `Your ${S} risk is unavailable`, color:
|
|
4570
|
+
return A === "optimal" ? { text: `Your ${S} is Optimal`, color: xA.low } : A === "high" ? { text: `Your ${S} is High`, color: xA.high } : A === "low" ? { text: `Your ${S} is Low`, color: xA.high } : A === "trending" ? { text: `Your ${S} is Trending`, color: xA.moderate } : { text: `Your ${S} risk is unavailable`, color: H.ui.textMuted };
|
|
4571
4571
|
}
|
|
4572
4572
|
function Dp(A) {
|
|
4573
4573
|
if (A === "optimal") return 16.67;
|
|
@@ -4731,7 +4731,7 @@ function t1({
|
|
|
4731
4731
|
const Mp = HS(M), l1 = ["--mb-color-focus-ring", "--mb-color-focus-offset"];
|
|
4732
4732
|
function MS() {
|
|
4733
4733
|
const A = x(Mp), [, l] = y(0);
|
|
4734
|
-
return
|
|
4734
|
+
return F(() => {
|
|
4735
4735
|
const p = { ...Mp }, S = document.querySelector(".mb-root");
|
|
4736
4736
|
if (S instanceof HTMLElement) {
|
|
4737
4737
|
const q = getComputedStyle(S), U = (r) => {
|
|
@@ -4856,60 +4856,60 @@ function JA({
|
|
|
4856
4856
|
organKey: K,
|
|
4857
4857
|
organContent: k,
|
|
4858
4858
|
patientGender: c,
|
|
4859
|
-
alertLabDetail:
|
|
4859
|
+
alertLabDetail: e
|
|
4860
4860
|
}) {
|
|
4861
|
-
var nA, AA,
|
|
4862
|
-
const u = hA(), [
|
|
4861
|
+
var nA, AA, h, dA, oA, cA, kA, KA, uA, EA, sA, HA;
|
|
4862
|
+
const u = hA(), [W, j] = y(!1), [d, o] = y(A), [b, J] = y(!1), i = MS(), I = K && k ? k[K] : void 0, O = V != null ? {
|
|
4863
4863
|
...V,
|
|
4864
4864
|
currentDateLabel: ((nA = V.currentDateLabel) == null ? void 0 : nA.trim()) || (r == null ? void 0 : r.trim()) || void 0
|
|
4865
|
-
} : void 0,
|
|
4865
|
+
} : void 0, E = ((AA = O == null ? void 0 : O.name) == null ? void 0 : AA.trim()) || p.trim() || "Category", X = Ar(S, E, O == null ? void 0 : O.riskLabel), s = n != null && ((h = O == null ? void 0 : O.name) != null && h.trim()) ? `Triad ${n}: ${O.name.trim()}` : n != null ? `Triad ${n}` : p, P = (dA = O == null ? void 0 : O.previousSymptomScore) == null ? void 0 : dA.trim(), Q = (oA = O == null ? void 0 : O.previousLabScore) == null ? void 0 : oA.trim(), G = (cA = O == null ? void 0 : O.previousTotalScore) == null ? void 0 : cA.trim(), Z = !!(P && P !== "—" && P !== "-" && P !== "–") || !!(Q && Q !== "—" && Q !== "-" && Q !== "–") || !!(G && G !== "—" && G !== "-" && G !== "–"), C = ((kA = O == null ? void 0 : O.previousDateLabel) == null ? void 0 : kA.trim()) || "Previous", L = ((KA = O == null ? void 0 : O.currentDateLabel) == null ? void 0 : KA.trim()) || "Current", $ = O != null && O.scoreLayout !== "questionnaire" && !!((uA = O.currentDateLabel) != null && uA.trim()) && !!((EA = O.previousDateLabel) != null && EA.trim()) && Z, D = S === "high" || S === "low" ? "high" : S === "trending" ? "moderate" : S === "optimal" ? "low" : "unknown", v = e ? /* @__PURE__ */ t("div", { className: "min-w-0", children: /* @__PURE__ */ t(S1, { detail: e }) }) : O ? /* @__PURE__ */ t("div", { className: "min-w-0", children: O.scoreLayout === "questionnaire" ? /* @__PURE__ */ t(
|
|
4866
4866
|
gA,
|
|
4867
4867
|
{
|
|
4868
4868
|
layout: "questionnaire",
|
|
4869
4869
|
category: {
|
|
4870
|
-
title:
|
|
4871
|
-
infoAriaLabel: `${
|
|
4872
|
-
symptomScore:
|
|
4873
|
-
previousSymptom:
|
|
4874
|
-
trendZone:
|
|
4870
|
+
title: O.name,
|
|
4871
|
+
infoAriaLabel: `${O.name} scores`,
|
|
4872
|
+
symptomScore: O.symptomScore,
|
|
4873
|
+
previousSymptom: O.previousSymptomScore,
|
|
4874
|
+
trendZone: O.trendZone ?? D
|
|
4875
4875
|
},
|
|
4876
|
-
currentRangeLabel: ((sA =
|
|
4877
|
-
previousRangeLabel: ((HA =
|
|
4876
|
+
currentRangeLabel: ((sA = O.currentDateLabel) == null ? void 0 : sA.trim()) || "Current Range",
|
|
4877
|
+
previousRangeLabel: ((HA = O.previousDateLabel) == null ? void 0 : HA.trim()) || "Previous Range"
|
|
4878
4878
|
}
|
|
4879
4879
|
) : $ ? /* @__PURE__ */ t(
|
|
4880
4880
|
gA,
|
|
4881
4881
|
{
|
|
4882
4882
|
layout: "triadResiliency",
|
|
4883
4883
|
category: {
|
|
4884
|
-
title:
|
|
4885
|
-
symptomScore:
|
|
4886
|
-
labScore:
|
|
4887
|
-
totalScore:
|
|
4888
|
-
previousSymptom:
|
|
4889
|
-
previousLab:
|
|
4890
|
-
previousTotal:
|
|
4884
|
+
title: O.name,
|
|
4885
|
+
symptomScore: O.symptomScore,
|
|
4886
|
+
labScore: O.labScore ?? "—",
|
|
4887
|
+
totalScore: O.totalScore ?? O.symptomScore,
|
|
4888
|
+
previousSymptom: O.previousSymptomScore,
|
|
4889
|
+
previousLab: O.previousLabScore,
|
|
4890
|
+
previousTotal: O.previousTotalScore,
|
|
4891
4891
|
trendIndicatorPercent: Dp(S),
|
|
4892
4892
|
organKey: K
|
|
4893
4893
|
},
|
|
4894
4894
|
currentRangeLabel: L,
|
|
4895
4895
|
previousRangeLabel: C,
|
|
4896
|
-
siblingTotals: [wl(
|
|
4896
|
+
siblingTotals: [wl(O.totalScore ?? O.symptomScore)],
|
|
4897
4897
|
neutralFrame: !0
|
|
4898
4898
|
}
|
|
4899
4899
|
) : /* @__PURE__ */ t(
|
|
4900
4900
|
gA,
|
|
4901
4901
|
{
|
|
4902
4902
|
layout: "metricRows",
|
|
4903
|
-
title:
|
|
4904
|
-
infoAriaLabel: `${
|
|
4903
|
+
title: O.name,
|
|
4904
|
+
infoAriaLabel: `${O.name} scores`,
|
|
4905
4905
|
showInfoButton: !1,
|
|
4906
4906
|
rows: [
|
|
4907
|
-
{ label: "Symptom Score", value:
|
|
4908
|
-
...
|
|
4909
|
-
...
|
|
4907
|
+
{ label: "Symptom Score", value: O.symptomScore },
|
|
4908
|
+
...O.labScore ? [{ label: "Lab Score", value: O.labScore }] : [],
|
|
4909
|
+
...O.totalScore ? [
|
|
4910
4910
|
{
|
|
4911
4911
|
label: "Total",
|
|
4912
|
-
value:
|
|
4912
|
+
value: O.totalScore,
|
|
4913
4913
|
valueVariant: "total",
|
|
4914
4914
|
labelEmphasis: !0
|
|
4915
4915
|
}
|
|
@@ -4921,31 +4921,31 @@ function JA({
|
|
|
4921
4921
|
neutralFrame: !0
|
|
4922
4922
|
}
|
|
4923
4923
|
) }) : null;
|
|
4924
|
-
return
|
|
4924
|
+
return F(() => {
|
|
4925
4925
|
J(!0);
|
|
4926
|
-
}, []),
|
|
4926
|
+
}, []), F(() => {
|
|
4927
4927
|
if (A) {
|
|
4928
|
-
|
|
4928
|
+
o(!0);
|
|
4929
4929
|
const qA = requestAnimationFrame(() => {
|
|
4930
|
-
requestAnimationFrame(() =>
|
|
4930
|
+
requestAnimationFrame(() => j(!0));
|
|
4931
4931
|
});
|
|
4932
4932
|
return () => cancelAnimationFrame(qA);
|
|
4933
4933
|
}
|
|
4934
|
-
|
|
4934
|
+
j(!1);
|
|
4935
4935
|
const N = window.setTimeout(() => {
|
|
4936
|
-
|
|
4936
|
+
o(!1);
|
|
4937
4937
|
}, 300);
|
|
4938
4938
|
return () => window.clearTimeout(N);
|
|
4939
|
-
}, [A]),
|
|
4940
|
-
if (!
|
|
4939
|
+
}, [A]), F(() => {
|
|
4940
|
+
if (!d) return;
|
|
4941
4941
|
const N = (qA) => {
|
|
4942
4942
|
qA.key === "Escape" && l();
|
|
4943
4943
|
};
|
|
4944
4944
|
return window.addEventListener("keydown", N), () => window.removeEventListener("keydown", N);
|
|
4945
|
-
}, [
|
|
4946
|
-
if (
|
|
4945
|
+
}, [d, l]), F(() => {
|
|
4946
|
+
if (d)
|
|
4947
4947
|
return mS();
|
|
4948
|
-
}, [
|
|
4948
|
+
}, [d]), !b || typeof document > "u" || !d ? null : Bl(
|
|
4949
4949
|
/* @__PURE__ */ t("div", { className: "mb-root", style: i, children: /* @__PURE__ */ a("div", { className: "fixed inset-0 z-[9999] overflow-hidden", role: "presentation", children: [
|
|
4950
4950
|
/* @__PURE__ */ t(
|
|
4951
4951
|
"button",
|
|
@@ -4954,7 +4954,7 @@ function JA({
|
|
|
4954
4954
|
className: "absolute inset-0 z-0 transition-opacity duration-300",
|
|
4955
4955
|
style: {
|
|
4956
4956
|
backgroundColor: "var(--mb-color-trend-panel-backdrop)",
|
|
4957
|
-
opacity:
|
|
4957
|
+
opacity: W ? 1 : 0
|
|
4958
4958
|
},
|
|
4959
4959
|
"aria-label": "Close panel",
|
|
4960
4960
|
onClick: l
|
|
@@ -4969,7 +4969,7 @@ function JA({
|
|
|
4969
4969
|
className: "absolute right-0 top-0 z-10 flex h-full w-full max-w-[min(100vw,72rem)] shrink-0 flex-col overflow-hidden rounded-l-2xl border border-solid border-[color:var(--mb-color-card-border)] shadow-xl transition-[clip-path] duration-300 ease-out",
|
|
4970
4970
|
style: {
|
|
4971
4971
|
backgroundColor: "#FFFFFF",
|
|
4972
|
-
clipPath:
|
|
4972
|
+
clipPath: W ? "inset(0 0 0 0)" : "inset(0 0 0 100%)",
|
|
4973
4973
|
willChange: "clip-path",
|
|
4974
4974
|
backfaceVisibility: "hidden"
|
|
4975
4975
|
},
|
|
@@ -4990,7 +4990,7 @@ function JA({
|
|
|
4990
4990
|
id: u,
|
|
4991
4991
|
className: "m-0 min-w-0 flex-1 text-xl font-[510] leading-snug",
|
|
4992
4992
|
style: { color: "var(--mb-color-text)" },
|
|
4993
|
-
children:
|
|
4993
|
+
children: s
|
|
4994
4994
|
}
|
|
4995
4995
|
)
|
|
4996
4996
|
] }),
|
|
@@ -5004,7 +5004,7 @@ function JA({
|
|
|
5004
5004
|
}
|
|
5005
5005
|
),
|
|
5006
5006
|
/* @__PURE__ */ t(
|
|
5007
|
-
|
|
5007
|
+
f,
|
|
5008
5008
|
{
|
|
5009
5009
|
type: "button",
|
|
5010
5010
|
variant: "soft",
|
|
@@ -5031,14 +5031,14 @@ function JA({
|
|
|
5031
5031
|
children: X.text
|
|
5032
5032
|
}
|
|
5033
5033
|
),
|
|
5034
|
-
/* @__PURE__ */ t("div", { className: "min-h-0 flex-1 overflow-y-auto px-4 py-4 sm:px-6 sm:py-6", children:
|
|
5034
|
+
/* @__PURE__ */ t("div", { className: "min-h-0 flex-1 overflow-y-auto px-4 py-4 sm:px-6 sm:py-6", children: I ? /* @__PURE__ */ a("div", { className: "grid min-w-0 grid-cols-1 gap-5 lg:grid-cols-[minmax(18rem,27rem)_minmax(0,1fr)] lg:items-start lg:gap-6", children: [
|
|
5035
5035
|
/* @__PURE__ */ t("div", { className: "min-w-0", children: /* @__PURE__ */ t(
|
|
5036
5036
|
t1,
|
|
5037
5037
|
{
|
|
5038
5038
|
organKey: K,
|
|
5039
|
-
bodyImageUrl:
|
|
5040
|
-
organImageUrl:
|
|
5041
|
-
organName:
|
|
5039
|
+
bodyImageUrl: I == null ? void 0 : I.images.body_url,
|
|
5040
|
+
organImageUrl: I == null ? void 0 : I.images.organ_url,
|
|
5041
|
+
organName: E,
|
|
5042
5042
|
patientGender: c
|
|
5043
5043
|
}
|
|
5044
5044
|
) }),
|
|
@@ -5047,7 +5047,7 @@ function JA({
|
|
|
5047
5047
|
/* @__PURE__ */ t(
|
|
5048
5048
|
wV,
|
|
5049
5049
|
{
|
|
5050
|
-
organData:
|
|
5050
|
+
organData: I,
|
|
5051
5051
|
introParagraphs: q,
|
|
5052
5052
|
bodyParagraphs: U
|
|
5053
5053
|
}
|
|
@@ -5056,10 +5056,10 @@ function JA({
|
|
|
5056
5056
|
] }) : /* @__PURE__ */ a(
|
|
5057
5057
|
"div",
|
|
5058
5058
|
{
|
|
5059
|
-
className: `mx-auto flex w-full flex-col gap-4 ${
|
|
5059
|
+
className: `mx-auto flex w-full flex-col gap-4 ${e ? "max-w-6xl" : "max-w-3xl"}`,
|
|
5060
5060
|
children: [
|
|
5061
5061
|
v,
|
|
5062
|
-
|
|
5062
|
+
e ? /* @__PURE__ */ t(U1, { detail: e }) : null,
|
|
5063
5063
|
q.length > 0 && /* @__PURE__ */ t(
|
|
5064
5064
|
"div",
|
|
5065
5065
|
{
|
|
@@ -5541,7 +5541,7 @@ const R1 = YS.Provider;
|
|
|
5541
5541
|
function _S({ label: A = "Export All Reports" }) {
|
|
5542
5542
|
const { onExportReports: l, exportReportsDisabled: p = !1 } = $t(), [S, q] = y(!1), U = l;
|
|
5543
5543
|
return U ? /* @__PURE__ */ a(
|
|
5544
|
-
|
|
5544
|
+
f,
|
|
5545
5545
|
{
|
|
5546
5546
|
type: "button",
|
|
5547
5547
|
variant: "default",
|
|
@@ -5623,10 +5623,10 @@ function yc({ content: A }) {
|
|
|
5623
5623
|
return /* @__PURE__ */ a(lA, { children: [
|
|
5624
5624
|
/* @__PURE__ */ a("div", { className: "mx-auto w-full min-w-0 space-y-6", children: [
|
|
5625
5625
|
/* @__PURE__ */ t(SA, { title: l.title, subtitle: l.subtitle }),
|
|
5626
|
-
/* @__PURE__ */ t("div", { className: "flex min-w-0 flex-col gap-6", children: q.map(({ category: k, title: c, rows:
|
|
5626
|
+
/* @__PURE__ */ t("div", { className: "flex min-w-0 flex-col gap-6", children: q.map(({ category: k, title: c, rows: e }) => /* @__PURE__ */ a(m, { className: "min-w-0", children: [
|
|
5627
5627
|
/* @__PURE__ */ t("h2", { className: "mb-4 m-0 text-xl font-bold text-[color:var(--mb-color-text)]", children: c }),
|
|
5628
5628
|
/* @__PURE__ */ t(Sp, {}),
|
|
5629
|
-
/* @__PURE__ */ t(qp, { rows:
|
|
5629
|
+
/* @__PURE__ */ t(qp, { rows: e, onSelect: V })
|
|
5630
5630
|
] }, k)) })
|
|
5631
5631
|
] }),
|
|
5632
5632
|
U ? /* @__PURE__ */ t(
|
|
@@ -5652,15 +5652,15 @@ function yc({ content: A }) {
|
|
|
5652
5652
|
function I1() {
|
|
5653
5653
|
return /* @__PURE__ */ a("div", { className: "flex min-w-0 flex-col overflow-hidden rounded-[length:var(--mb-radius-button)] border border-solid border-[color:var(--mb-color-card-border)] bg-[color:var(--mb-color-card-bg)] [border-width:0.0625rem] 2xl:flex-row 2xl:items-stretch", children: [
|
|
5654
5654
|
/* @__PURE__ */ a("div", { className: "flex min-w-0 items-center gap-2 bg-[color:var(--mb-color-badge-bg)]/40 px-3 py-2.5 2xl:w-[20rem] 2xl:shrink-0", children: [
|
|
5655
|
-
/* @__PURE__ */ t(
|
|
5656
|
-
/* @__PURE__ */ t(
|
|
5655
|
+
/* @__PURE__ */ t(R, { className: "size-4 shrink-0 rounded" }),
|
|
5656
|
+
/* @__PURE__ */ t(R, { className: "h-3.5 min-w-0 flex-1 max-w-[14rem] sm:h-4" })
|
|
5657
5657
|
] }),
|
|
5658
5658
|
/* @__PURE__ */ a("div", { className: "grid min-w-0 flex-1 grid-cols-1 gap-y-2 border-t border-[color:var(--mb-color-card-border)] bg-[color:var(--mb-color-card-bg)] px-3 py-2 sm:grid-cols-3 sm:gap-x-3 sm:gap-y-0 2xl:border-t-0 2xl:px-16 2xl:py-1", children: [
|
|
5659
|
-
/* @__PURE__ */ t("div", { className: "flex min-w-0 justify-start", children: /* @__PURE__ */ t(
|
|
5660
|
-
/* @__PURE__ */ t("div", { className: "flex min-w-0 justify-start md:ml-16", children: /* @__PURE__ */ t(
|
|
5661
|
-
/* @__PURE__ */ t("div", { className: "flex min-w-0 justify-start sm:justify-end", children: /* @__PURE__ */ t(
|
|
5659
|
+
/* @__PURE__ */ t("div", { className: "flex min-w-0 justify-start", children: /* @__PURE__ */ t(R, { className: "h-6 w-[min(100%,6.5rem)]" }) }),
|
|
5660
|
+
/* @__PURE__ */ t("div", { className: "flex min-w-0 justify-start md:ml-16", children: /* @__PURE__ */ t(R, { className: "h-6 w-[min(100%,6.5rem)]" }) }),
|
|
5661
|
+
/* @__PURE__ */ t("div", { className: "flex min-w-0 justify-start sm:justify-end", children: /* @__PURE__ */ t(R, { className: "h-6 w-[min(100%,6.5rem)]" }) })
|
|
5662
5662
|
] }),
|
|
5663
|
-
/* @__PURE__ */ t(
|
|
5663
|
+
/* @__PURE__ */ t(R, { className: "min-h-[3.25rem] w-full shrink-0 rounded-none rounded-br-[length:var(--mb-radius-button)] rounded-tr-[length:var(--mb-radius-button)] 2xl:w-[9rem] 2xl:min-h-0 2xl:self-stretch" })
|
|
5664
5664
|
] });
|
|
5665
5665
|
}
|
|
5666
5666
|
const j1 = [
|
|
@@ -5704,7 +5704,7 @@ function Bt({
|
|
|
5704
5704
|
/* @__PURE__ */ a("div", { className: "flex min-w-0 items-center gap-2 @2xl:min-w-0", children: [
|
|
5705
5705
|
/* @__PURE__ */ t("h2", { className: "min-w-0 break-words text-xl font-bold text-[color:var(--mb-color-text)] @2xl:truncate", children: A }),
|
|
5706
5706
|
/* @__PURE__ */ t(tA, { content: l, children: /* @__PURE__ */ t(
|
|
5707
|
-
|
|
5707
|
+
f,
|
|
5708
5708
|
{
|
|
5709
5709
|
type: "button",
|
|
5710
5710
|
align: "center",
|
|
@@ -5727,7 +5727,7 @@ function Bt({
|
|
|
5727
5727
|
)
|
|
5728
5728
|
] }) : /* @__PURE__ */ t("span", { "aria-hidden": "true", className: "hidden @2xl:block" }),
|
|
5729
5729
|
/* @__PURE__ */ a(
|
|
5730
|
-
|
|
5730
|
+
f,
|
|
5731
5731
|
{
|
|
5732
5732
|
type: "button",
|
|
5733
5733
|
variant: "default",
|
|
@@ -5864,17 +5864,17 @@ function s1({
|
|
|
5864
5864
|
organContent: K,
|
|
5865
5865
|
patientGender: k
|
|
5866
5866
|
}) {
|
|
5867
|
-
var
|
|
5868
|
-
const [c,
|
|
5867
|
+
var o;
|
|
5868
|
+
const [c, e] = y(!1), u = (q == null ? void 0 : q.bodyParagraphs) ?? [], W = ((o = q == null ? void 0 : q.panelTitle) == null ? void 0 : o.trim()) || A, j = q == null ? void 0 : q.organKey, d = q == null ? void 0 : q.alertLabDetail;
|
|
5869
5869
|
return /* @__PURE__ */ a(lA, { children: [
|
|
5870
5870
|
/* @__PURE__ */ a(
|
|
5871
|
-
|
|
5871
|
+
f,
|
|
5872
5872
|
{
|
|
5873
5873
|
type: "button",
|
|
5874
5874
|
variant: p,
|
|
5875
5875
|
align: "center",
|
|
5876
5876
|
className: `!relative !justify-center !gap-0 ${S ?? ""}`,
|
|
5877
|
-
onClick: () =>
|
|
5877
|
+
onClick: () => e(!0),
|
|
5878
5878
|
"aria-expanded": c,
|
|
5879
5879
|
"aria-haspopup": "dialog",
|
|
5880
5880
|
children: [
|
|
@@ -5894,18 +5894,18 @@ function s1({
|
|
|
5894
5894
|
JA,
|
|
5895
5895
|
{
|
|
5896
5896
|
open: c,
|
|
5897
|
-
onClose: () =>
|
|
5898
|
-
title:
|
|
5897
|
+
onClose: () => e(!1),
|
|
5898
|
+
title: W,
|
|
5899
5899
|
trendStatus: l,
|
|
5900
5900
|
introParagraphs: U,
|
|
5901
5901
|
bodyParagraphs: u,
|
|
5902
5902
|
rowData: V,
|
|
5903
5903
|
labsDateLabel: r,
|
|
5904
5904
|
triadNumber: n,
|
|
5905
|
-
organKey:
|
|
5905
|
+
organKey: j,
|
|
5906
5906
|
organContent: K,
|
|
5907
5907
|
patientGender: k,
|
|
5908
|
-
alertLabDetail:
|
|
5908
|
+
alertLabDetail: d
|
|
5909
5909
|
}
|
|
5910
5910
|
)
|
|
5911
5911
|
] });
|
|
@@ -5924,7 +5924,7 @@ function m1({
|
|
|
5924
5924
|
rowSize: K
|
|
5925
5925
|
}) {
|
|
5926
5926
|
var D;
|
|
5927
|
-
const k = A.infoTooltip ?? A.infoAriaLabel, c = A.status === "optimal",
|
|
5927
|
+
const k = A.infoTooltip ?? A.infoAriaLabel, c = A.status === "optimal", e = A.status === "high", u = A.status === "low", W = A.status === "unknown", j = c ? Kt.low : e || u ? Kt.high : W ? "border-[color:var(--mb-color-card-border)]" : Kt.moderate, d = c ? et.low : e || u ? et.high : W ? "bg-[color:var(--mb-color-card-bg)]" : et.moderate, o = c ? "OPTIMAL" : e ? "HIGH" : u ? "LOW" : W ? "UNKNOWN" : "TRENDING", b = (D = A.riskLabel) == null ? void 0 : D.trim(), J = b ? b.toUpperCase() : o, i = c ? "trendRowStatusOptimal" : e ? "trendRowStatusHigh" : u ? "trendRowStatusLow" : W ? "trendRowStatusUnknown" : "trendRowStatusTrending", I = r === 2, O = K ? K === "wellness" : I, E = n ?? (I ? "2xl" : "xl"), X = I ? E === "2xl" ? "2xl:grid-cols-[minmax(10rem,16rem)_minmax(0,1fr)_minmax(8rem,9rem)]" : "xl:grid-cols-[minmax(10rem,16rem)_minmax(0,1fr)_minmax(8rem,9rem)]" : O ? E === "2xl" ? "2xl:grid-cols-[minmax(11rem,14rem)_minmax(0,1fr)_minmax(10rem,11rem)]" : "xl:grid-cols-[minmax(11rem,14rem)_minmax(0,1fr)_minmax(10rem,11rem)]" : E === "2xl" ? "2xl:grid-cols-[minmax(10rem,14rem)_minmax(0,1fr)_minmax(10rem,12rem)]" : "xl:grid-cols-[minmax(10rem,14rem)_minmax(0,1fr)_minmax(10rem,12rem)]", s = E === "2xl" ? `2xl:grid 2xl:items-stretch ${X}` : `xl:grid xl:items-stretch ${X}`, P = E === "2xl" ? "2xl:h-full" : "xl:h-full", Q = E === "2xl" ? "2xl:border-t-0 2xl:px-3 2xl:py-1" : "xl:border-t-0 xl:px-3 xl:py-1", G = E === "2xl" ? "2xl:w-auto" : "xl:w-auto", Z = V.some((v) => v.length > 8), C = I || Z ? "grid-cols-[minmax(3.5rem,auto)_minmax(0,1fr)] sm:grid-cols-[6.5rem_7.5rem] xl:grid-cols-[7rem_9rem]" : "grid-cols-[minmax(3.5rem,auto)_minmax(0,1fr)] sm:grid-cols-[4.5rem_7.5rem] xl:grid-cols-[5rem_9rem]", L = I ? "sm:gap-x-10" : Z ? "sm:gap-x-4" : "sm:gap-x-5", $ = (v, nA) => /* @__PURE__ */ a(
|
|
5928
5928
|
"span",
|
|
5929
5929
|
{
|
|
5930
5930
|
className: `grid w-full min-w-0 max-w-[14rem] items-center justify-center gap-x-2 sm:w-auto sm:shrink-0 ${C}`,
|
|
@@ -5944,7 +5944,7 @@ function m1({
|
|
|
5944
5944
|
return /* @__PURE__ */ a(
|
|
5945
5945
|
"div",
|
|
5946
5946
|
{
|
|
5947
|
-
className: `mb-note-surface flex min-w-0 flex-col overflow-hidden rounded-[length:var(--mb-radius-button)] border border-solid bg-[color:var(--mb-color-card-bg)] [border-width:0.0625rem] ${
|
|
5947
|
+
className: `mb-note-surface flex min-w-0 flex-col overflow-hidden rounded-[length:var(--mb-radius-button)] border border-solid bg-[color:var(--mb-color-card-bg)] [border-width:0.0625rem] ${s} ${j}`,
|
|
5948
5948
|
children: [
|
|
5949
5949
|
/* @__PURE__ */ t(
|
|
5950
5950
|
rA,
|
|
@@ -5955,11 +5955,11 @@ function m1({
|
|
|
5955
5955
|
/* @__PURE__ */ a(
|
|
5956
5956
|
"div",
|
|
5957
5957
|
{
|
|
5958
|
-
className: `grid min-w-0 grid-cols-[minmax(0,1fr)_auto] items-center gap-3 px-3 py-2 ${P} ${
|
|
5958
|
+
className: `grid min-w-0 grid-cols-[minmax(0,1fr)_auto] items-center gap-3 px-3 py-2 ${P} ${d}`,
|
|
5959
5959
|
children: [
|
|
5960
5960
|
/* @__PURE__ */ t("span", { className: "min-w-0 whitespace-normal break-normal [overflow-wrap:anywhere] text-xs font-bold uppercase leading-snug tracking-normal text-[color:var(--mb-color-text)] sm:text-sm", children: A.name }),
|
|
5961
5961
|
/* @__PURE__ */ t(tA, { content: k, children: /* @__PURE__ */ t(
|
|
5962
|
-
|
|
5962
|
+
f,
|
|
5963
5963
|
{
|
|
5964
5964
|
type: "button",
|
|
5965
5965
|
align: "center",
|
|
@@ -5988,7 +5988,7 @@ function m1({
|
|
|
5988
5988
|
badgeLabel: J,
|
|
5989
5989
|
trendStatus: A.status,
|
|
5990
5990
|
trendStatusVariant: i,
|
|
5991
|
-
className: `flex !self-stretch !rounded-none rounded-br-[length:var(--mb-radius-button)] rounded-tr-[length:var(--mb-radius-button)] ${
|
|
5991
|
+
className: `flex !self-stretch !rounded-none rounded-br-[length:var(--mb-radius-button)] rounded-tr-[length:var(--mb-radius-button)] ${G}`,
|
|
5992
5992
|
statusExplanationPanel: A.statusExplanationPanel,
|
|
5993
5993
|
panelIntroParagraphs: l,
|
|
5994
5994
|
panelLabsDateLabel: p,
|
|
@@ -6096,15 +6096,15 @@ function C1({
|
|
|
6096
6096
|
patientGender: p
|
|
6097
6097
|
}) {
|
|
6098
6098
|
const { onNavigateToNavItem: S } = $t(), [q, U] = y(0), [V, r] = y(null), n = Math.min(q, Math.max(0, A.triads.length - 1)), K = A.categoriesByTriadIndex[n] ?? [], k = A.triads.map(
|
|
6099
|
-
(
|
|
6100
|
-
...
|
|
6099
|
+
(b, J) => b.trendZone ? b : {
|
|
6100
|
+
...b,
|
|
6101
6101
|
trendZone: N1(A.categoriesByTriadIndex[J] ?? [])
|
|
6102
6102
|
}
|
|
6103
|
-
), c = A.infoTooltip ?? A.infoAriaLabel,
|
|
6104
|
-
J.organKey && l != null && l[J.organKey] && r({ triadCard:
|
|
6103
|
+
), c = A.infoTooltip ?? A.infoAriaLabel, e = A.triads[n], u = (e == null ? void 0 : e.descriptionParagraphs) ?? [], W = u.join(" "), j = V ? Ap(V.category.title) : "", d = V == null ? void 0 : V.category.organKey, o = (b) => (J) => {
|
|
6104
|
+
J.organKey && l != null && l[J.organKey] && r({ triadCard: b, category: J });
|
|
6105
6105
|
};
|
|
6106
6106
|
if (A.triadCards) {
|
|
6107
|
-
const
|
|
6107
|
+
const b = A.triadCards[n] ?? A.triadCards[0];
|
|
6108
6108
|
return /* @__PURE__ */ a(lA, { children: [
|
|
6109
6109
|
/* @__PURE__ */ a(m, { className: "min-w-0", children: [
|
|
6110
6110
|
/* @__PURE__ */ t(
|
|
@@ -6130,13 +6130,13 @@ function C1({
|
|
|
6130
6130
|
dimInactive: !1
|
|
6131
6131
|
}
|
|
6132
6132
|
),
|
|
6133
|
-
|
|
6134
|
-
/* @__PURE__ */ t(rA, { targetId: `metric:triad${
|
|
6133
|
+
b ? /* @__PURE__ */ a("div", { className: "mb-note-surface mt-6", children: [
|
|
6134
|
+
/* @__PURE__ */ t(rA, { targetId: `metric:triad${b.triadNumber}` }),
|
|
6135
6135
|
/* @__PURE__ */ t(
|
|
6136
6136
|
lp,
|
|
6137
6137
|
{
|
|
6138
|
-
card:
|
|
6139
|
-
onCategoryClick:
|
|
6138
|
+
card: b,
|
|
6139
|
+
onCategoryClick: o(b)
|
|
6140
6140
|
}
|
|
6141
6141
|
)
|
|
6142
6142
|
] }) : null
|
|
@@ -6146,11 +6146,11 @@ function C1({
|
|
|
6146
6146
|
{
|
|
6147
6147
|
open: !0,
|
|
6148
6148
|
onClose: () => r(null),
|
|
6149
|
-
title:
|
|
6149
|
+
title: j,
|
|
6150
6150
|
trendStatus: _t(V.category),
|
|
6151
6151
|
bodyParagraphs: [],
|
|
6152
6152
|
rowData: {
|
|
6153
|
-
name:
|
|
6153
|
+
name: j,
|
|
6154
6154
|
symptomScore: V.category.symptomScore,
|
|
6155
6155
|
labScore: V.category.labScore,
|
|
6156
6156
|
totalScore: V.category.totalScore,
|
|
@@ -6162,7 +6162,7 @@ function C1({
|
|
|
6162
6162
|
riskLabel: V.category.riskLabel
|
|
6163
6163
|
},
|
|
6164
6164
|
triadNumber: V.triadCard.triadNumber,
|
|
6165
|
-
organKey:
|
|
6165
|
+
organKey: d,
|
|
6166
6166
|
organContent: l,
|
|
6167
6167
|
patientGender: p
|
|
6168
6168
|
}
|
|
@@ -6192,19 +6192,19 @@ function C1({
|
|
|
6192
6192
|
}
|
|
6193
6193
|
),
|
|
6194
6194
|
/* @__PURE__ */ a("div", { children: [
|
|
6195
|
-
|
|
6196
|
-
/* @__PURE__ */ t("div", { className: "space-y-2", children: K.map((
|
|
6195
|
+
W ? /* @__PURE__ */ t("p", { className: "mb-4 m-0 text-sm leading-relaxed text-[color:var(--mb-color-text)]", children: W }) : null,
|
|
6196
|
+
/* @__PURE__ */ t("div", { className: "space-y-2", children: K.map((b) => /* @__PURE__ */ t(
|
|
6197
6197
|
m1,
|
|
6198
6198
|
{
|
|
6199
|
-
row:
|
|
6199
|
+
row: b,
|
|
6200
6200
|
statusPanelIntroParagraphs: u,
|
|
6201
6201
|
lastLabsLabel: A.lastLabsLabel,
|
|
6202
|
-
triadNumber:
|
|
6202
|
+
triadNumber: e == null ? void 0 : e.triadNumber,
|
|
6203
6203
|
organContent: l,
|
|
6204
6204
|
patientGender: p,
|
|
6205
6205
|
rowSize: "wellness"
|
|
6206
6206
|
},
|
|
6207
|
-
|
|
6207
|
+
b.name
|
|
6208
6208
|
)) })
|
|
6209
6209
|
] })
|
|
6210
6210
|
] });
|
|
@@ -6377,8 +6377,8 @@ function Ec({ content: A }) {
|
|
|
6377
6377
|
totalPredictiveTrends: K,
|
|
6378
6378
|
wellnessIndicatorSummary: k,
|
|
6379
6379
|
alertLabSummaryTable: c,
|
|
6380
|
-
organContent:
|
|
6381
|
-
} = A, u = K ?? E1,
|
|
6380
|
+
organContent: e
|
|
6381
|
+
} = A, u = K ?? E1, W = (U == null ? void 0 : U.actions.filter((b) => b.id !== "export-reports")) ?? [], j = !!(V || r || n), d = !!((V || r) && n), o = c != null && c.rows.length ? c : void 0;
|
|
6382
6382
|
return /* @__PURE__ */ a("div", { className: "w-full min-w-0 max-w-full space-y-4 lg:space-y-6", children: [
|
|
6383
6383
|
/* @__PURE__ */ t(SA, { title: S.title, subtitle: S.subtitle }),
|
|
6384
6384
|
U && l && (U.title || U.paragraphs.length > 0) ? /* @__PURE__ */ t(
|
|
@@ -6386,47 +6386,47 @@ function Ec({ content: A }) {
|
|
|
6386
6386
|
{
|
|
6387
6387
|
title: U.title,
|
|
6388
6388
|
onDismiss: () => p(!1),
|
|
6389
|
-
actions:
|
|
6390
|
-
const J = L1[
|
|
6389
|
+
actions: W.map((b) => {
|
|
6390
|
+
const J = L1[b.id];
|
|
6391
6391
|
return /* @__PURE__ */ a(
|
|
6392
|
-
|
|
6392
|
+
f,
|
|
6393
6393
|
{
|
|
6394
6394
|
type: "button",
|
|
6395
6395
|
variant: "default",
|
|
6396
6396
|
className: "!h-11 !border-0 !bg-white !px-5 !py-2.5 !text-base !font-medium !text-[color:var(--mb-color-welcome-banner-bg)] !shadow-none hover:!bg-white/90 [&_svg]:!text-[color:var(--mb-color-welcome-banner-bg)]",
|
|
6397
6397
|
children: [
|
|
6398
6398
|
/* @__PURE__ */ t(J, { className: "size-4 shrink-0" }),
|
|
6399
|
-
|
|
6399
|
+
b.label
|
|
6400
6400
|
]
|
|
6401
6401
|
},
|
|
6402
|
-
|
|
6402
|
+
b.id
|
|
6403
6403
|
);
|
|
6404
6404
|
}),
|
|
6405
|
-
children: U.paragraphs.map((
|
|
6405
|
+
children: U.paragraphs.map((b) => /* @__PURE__ */ t("p", { className: "m-0", children: b }, b))
|
|
6406
6406
|
}
|
|
6407
6407
|
) : null,
|
|
6408
|
-
|
|
6408
|
+
j ? /* @__PURE__ */ a(
|
|
6409
6409
|
"div",
|
|
6410
6410
|
{
|
|
6411
|
-
className: `grid min-w-0 grid-cols-1 gap-4 xl:gap-6 [&>*]:min-w-0 ${
|
|
6411
|
+
className: `grid min-w-0 grid-cols-1 gap-4 xl:gap-6 [&>*]:min-w-0 ${d ? "xl:grid-cols-[minmax(0,1fr)_minmax(0,1fr)] xl:items-stretch" : ""}`,
|
|
6412
6412
|
children: [
|
|
6413
6413
|
V || r ? /* @__PURE__ */ a(
|
|
6414
6414
|
"div",
|
|
6415
6415
|
{
|
|
6416
|
-
className: `min-w-0 space-y-4 ${
|
|
6416
|
+
className: `min-w-0 space-y-4 ${d ? "xl:flex xl:h-[26.25rem] xl:flex-col xl:gap-6 xl:space-y-0" : ""}`,
|
|
6417
6417
|
children: [
|
|
6418
6418
|
V ? /* @__PURE__ */ t(Ql, { targetId: "metric:wellness", children: /* @__PURE__ */ t(
|
|
6419
6419
|
NV,
|
|
6420
6420
|
{
|
|
6421
6421
|
...V,
|
|
6422
|
-
className:
|
|
6422
|
+
className: d ? "xl:shrink-0" : ""
|
|
6423
6423
|
}
|
|
6424
6424
|
) }) : null,
|
|
6425
6425
|
r ? /* @__PURE__ */ t(
|
|
6426
6426
|
CV,
|
|
6427
6427
|
{
|
|
6428
6428
|
...r,
|
|
6429
|
-
className:
|
|
6429
|
+
className: d ? "xl:flex-1 xl:overflow-hidden" : ""
|
|
6430
6430
|
}
|
|
6431
6431
|
) : null
|
|
6432
6432
|
]
|
|
@@ -6436,7 +6436,7 @@ function Ec({ content: A }) {
|
|
|
6436
6436
|
EV,
|
|
6437
6437
|
{
|
|
6438
6438
|
...n,
|
|
6439
|
-
className:
|
|
6439
|
+
className: d ? "xl:h-[26.25rem]" : ""
|
|
6440
6440
|
}
|
|
6441
6441
|
) }) : null
|
|
6442
6442
|
]
|
|
@@ -6446,16 +6446,16 @@ function Ec({ content: A }) {
|
|
|
6446
6446
|
C1,
|
|
6447
6447
|
{
|
|
6448
6448
|
data: u,
|
|
6449
|
-
organContent:
|
|
6449
|
+
organContent: e,
|
|
6450
6450
|
patientGender: q
|
|
6451
6451
|
}
|
|
6452
6452
|
),
|
|
6453
6453
|
k ? /* @__PURE__ */ t(x1, { data: k }) : null,
|
|
6454
|
-
|
|
6454
|
+
o ? /* @__PURE__ */ t(
|
|
6455
6455
|
y1,
|
|
6456
6456
|
{
|
|
6457
|
-
data:
|
|
6458
|
-
organContent:
|
|
6457
|
+
data: o,
|
|
6458
|
+
organContent: e,
|
|
6459
6459
|
patientGender: q
|
|
6460
6460
|
}
|
|
6461
6461
|
) : null
|
|
@@ -6482,15 +6482,15 @@ const ul = "flex min-h-10 items-center justify-between gap-4 py-3.5 text-sm lead
|
|
|
6482
6482
|
function Pt({ titleWidthClass: A }) {
|
|
6483
6483
|
return /* @__PURE__ */ t("div", { className: "@container mb-5 w-full min-w-0", children: /* @__PURE__ */ a("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: [
|
|
6484
6484
|
/* @__PURE__ */ a("div", { className: "flex min-w-0 shrink-0 items-center gap-2", children: [
|
|
6485
|
-
/* @__PURE__ */ t(
|
|
6486
|
-
/* @__PURE__ */ t(
|
|
6485
|
+
/* @__PURE__ */ t(R, { className: `h-7 rounded ${A}` }),
|
|
6486
|
+
/* @__PURE__ */ t(R, { className: "size-5 shrink-0 rounded" })
|
|
6487
6487
|
] }),
|
|
6488
6488
|
/* @__PURE__ */ a("div", { className: "flex min-w-0 shrink-0 flex-wrap items-center gap-6 @xl:flex-1 @xl:justify-between", children: [
|
|
6489
6489
|
/* @__PURE__ */ a("span", { className: "flex min-w-0 shrink-0 items-center gap-2 @xl:mx-auto", children: [
|
|
6490
|
-
/* @__PURE__ */ t(
|
|
6491
|
-
/* @__PURE__ */ t(
|
|
6490
|
+
/* @__PURE__ */ t(R, { className: "h-4 w-[4.5rem]" }),
|
|
6491
|
+
/* @__PURE__ */ t(R, { className: "h-7 min-w-[5.5rem] rounded-md" })
|
|
6492
6492
|
] }),
|
|
6493
|
-
/* @__PURE__ */ t(
|
|
6493
|
+
/* @__PURE__ */ t(R, { className: "h-9 min-w-[7.5rem] rounded-[var(--mb-button-radius)]" })
|
|
6494
6494
|
] })
|
|
6495
6495
|
] }) });
|
|
6496
6496
|
}
|
|
@@ -6506,26 +6506,26 @@ function bl({ metricCount: A = 3 }) {
|
|
|
6506
6506
|
{
|
|
6507
6507
|
className: `flex min-w-0 items-center justify-between gap-3 px-3 py-3 opacity-60 lg:py-0 ${et.moderate}`,
|
|
6508
6508
|
children: [
|
|
6509
|
-
/* @__PURE__ */ t(
|
|
6510
|
-
/* @__PURE__ */ t(
|
|
6509
|
+
/* @__PURE__ */ t(R, { className: "h-4 min-w-0 flex-1 max-w-[10rem]" }),
|
|
6510
|
+
/* @__PURE__ */ t(R, { className: "size-4 shrink-0 rounded" })
|
|
6511
6511
|
]
|
|
6512
6512
|
}
|
|
6513
6513
|
),
|
|
6514
6514
|
/* @__PURE__ */ a("div", { className: "hidden flex-col justify-center gap-2 pl-2 lg:flex", children: [
|
|
6515
|
-
/* @__PURE__ */ t(
|
|
6516
|
-
/* @__PURE__ */ t(
|
|
6515
|
+
/* @__PURE__ */ t(R, { className: "h-3 w-12" }),
|
|
6516
|
+
/* @__PURE__ */ t(R, { className: "h-3 w-14" })
|
|
6517
6517
|
] }),
|
|
6518
6518
|
l.map((p) => /* @__PURE__ */ a("div", { className: "hidden flex-col items-center justify-center gap-1.5 lg:flex", children: [
|
|
6519
|
-
/* @__PURE__ */ t(
|
|
6520
|
-
/* @__PURE__ */ t(
|
|
6519
|
+
/* @__PURE__ */ t(R, { className: "h-6 min-w-[3rem] rounded" }),
|
|
6520
|
+
/* @__PURE__ */ t(R, { className: "h-6 min-w-[3rem] rounded" })
|
|
6521
6521
|
] }, p)),
|
|
6522
6522
|
A === 1 ? ["metric-spacer-1", "metric-spacer-2"].map((p) => /* @__PURE__ */ t("span", { "aria-hidden": !0 }, p)) : null,
|
|
6523
6523
|
/* @__PURE__ */ t("div", { className: "min-w-0 px-3 pb-3 lg:flex lg:items-center lg:p-0", children: /* @__PURE__ */ a("div", { className: "flex h-6 w-full min-w-0 overflow-hidden rounded-full", children: [
|
|
6524
|
-
/* @__PURE__ */ t(
|
|
6525
|
-
/* @__PURE__ */ t(
|
|
6526
|
-
/* @__PURE__ */ t(
|
|
6524
|
+
/* @__PURE__ */ t(R, { className: "h-full flex-1 rounded-none" }),
|
|
6525
|
+
/* @__PURE__ */ t(R, { className: "h-full flex-1 rounded-none" }),
|
|
6526
|
+
/* @__PURE__ */ t(R, { className: "h-full flex-1 rounded-none" })
|
|
6527
6527
|
] }) }),
|
|
6528
|
-
/* @__PURE__ */ t("div", { className: "hidden items-center justify-center lg:flex", children: /* @__PURE__ */ t(
|
|
6528
|
+
/* @__PURE__ */ t("div", { className: "hidden items-center justify-center lg:flex", children: /* @__PURE__ */ t(R, { className: "size-4 rounded" }) })
|
|
6529
6529
|
]
|
|
6530
6530
|
}
|
|
6531
6531
|
);
|
|
@@ -6541,17 +6541,17 @@ function v1() {
|
|
|
6541
6541
|
{
|
|
6542
6542
|
className: `flex min-w-0 items-center gap-2 px-3 py-2 opacity-60 xl:w-[10rem] xl:shrink-0 ${et.moderate}`,
|
|
6543
6543
|
children: [
|
|
6544
|
-
/* @__PURE__ */ t(
|
|
6545
|
-
/* @__PURE__ */ t(
|
|
6544
|
+
/* @__PURE__ */ t(R, { className: "size-4 shrink-0 rounded" }),
|
|
6545
|
+
/* @__PURE__ */ t(R, { className: "h-4 min-w-0 flex-1 max-w-[8rem]" })
|
|
6546
6546
|
]
|
|
6547
6547
|
}
|
|
6548
6548
|
),
|
|
6549
6549
|
/* @__PURE__ */ a("div", { className: "flex min-w-0 flex-1 flex-wrap items-center gap-x-5 gap-y-1.5 border-t border-[color:var(--mb-color-card-border)] px-3 py-2 xl:border-t-0 xl:border-l xl:border-[color:var(--mb-color-card-border)] xl:py-2 xl:pl-4 xl:pr-2", children: [
|
|
6550
|
-
/* @__PURE__ */ t(
|
|
6551
|
-
/* @__PURE__ */ t(
|
|
6552
|
-
/* @__PURE__ */ t(
|
|
6550
|
+
/* @__PURE__ */ t(R, { className: "h-6 w-[5.5rem] rounded-md" }),
|
|
6551
|
+
/* @__PURE__ */ t(R, { className: "h-6 w-[5.5rem] rounded-md" }),
|
|
6552
|
+
/* @__PURE__ */ t(R, { className: "h-6 w-[5.5rem] rounded-md" })
|
|
6553
6553
|
] }),
|
|
6554
|
-
/* @__PURE__ */ t(
|
|
6554
|
+
/* @__PURE__ */ t(R, { className: "h-11 w-full shrink-0 rounded-none border-t border-[color:var(--mb-color-card-border)] xl:h-auto xl:w-[7rem] xl:rounded-br-[length:var(--mb-radius-button)] xl:rounded-tr-[length:var(--mb-radius-button)] xl:border-l xl:border-t-0 xl:border-[color:var(--mb-color-card-border)]" })
|
|
6555
6555
|
]
|
|
6556
6556
|
}
|
|
6557
6557
|
);
|
|
@@ -6570,20 +6570,20 @@ function D1({
|
|
|
6570
6570
|
showExportButton: !1
|
|
6571
6571
|
}
|
|
6572
6572
|
),
|
|
6573
|
-
/* @__PURE__ */ a(
|
|
6573
|
+
/* @__PURE__ */ a(f, { type: "button", variant: "default", className: Ml, disabled: !0, children: [
|
|
6574
6574
|
/* @__PURE__ */ t(Mt, { className: "size-4 shrink-0" }),
|
|
6575
6575
|
"Export All Reports"
|
|
6576
6576
|
] })
|
|
6577
6577
|
] }),
|
|
6578
6578
|
/* @__PURE__ */ a(m, { className: "relative min-w-0 overflow-hidden !rounded-xl !border-0 !bg-[color:var(--mb-color-welcome-banner-bg)] !p-5 sm:!p-6", children: [
|
|
6579
|
-
/* @__PURE__ */ t(
|
|
6579
|
+
/* @__PURE__ */ t(R, { className: "absolute right-2 top-2 size-6 rounded-full bg-white/20" }),
|
|
6580
6580
|
/* @__PURE__ */ a("div", { className: "flex min-w-0 flex-col gap-5 pr-8 lg:flex-row lg:items-center lg:justify-between lg:gap-8", children: [
|
|
6581
6581
|
/* @__PURE__ */ a("div", { className: "min-w-0 flex-1 space-y-2", children: [
|
|
6582
|
-
/* @__PURE__ */ t(
|
|
6583
|
-
/* @__PURE__ */ t(
|
|
6584
|
-
/* @__PURE__ */ t(
|
|
6582
|
+
/* @__PURE__ */ t(R, { className: "h-7 w-[min(100%,16rem)] bg-white/20" }),
|
|
6583
|
+
/* @__PURE__ */ t(R, { className: "h-4 w-full max-w-[105ch] bg-white/20" }),
|
|
6584
|
+
/* @__PURE__ */ t(R, { className: "h-4 w-[min(100%,84ch)] bg-white/20" })
|
|
6585
6585
|
] }),
|
|
6586
|
-
/* @__PURE__ */ t(
|
|
6586
|
+
/* @__PURE__ */ t(R, { className: "h-11 w-[min(100%,11rem)] shrink-0 rounded-[var(--mb-button-radius)] bg-white/90" })
|
|
6587
6587
|
] })
|
|
6588
6588
|
] }),
|
|
6589
6589
|
/* @__PURE__ */ a("div", { className: "grid min-w-0 grid-cols-1 gap-4 xl:grid-cols-[minmax(0,1fr)_minmax(0,1fr)] xl:items-stretch xl:gap-6 [&>*]:min-w-0", children: [
|
|
@@ -6594,7 +6594,7 @@ function D1({
|
|
|
6594
6594
|
/* @__PURE__ */ t("span", { className: "text-xl font-bold text-[color:var(--mb-color-text)]", children: "Overall Metabolic Score" }),
|
|
6595
6595
|
/* @__PURE__ */ t("span", { className: "pointer-events-none opacity-70", "aria-hidden": !0, children: /* @__PURE__ */ t(_, { className: "size-4" }) })
|
|
6596
6596
|
] }),
|
|
6597
|
-
/* @__PURE__ */ t(
|
|
6597
|
+
/* @__PURE__ */ t(R, { className: "h-8 w-[3.25rem] shrink-0 rounded-md" })
|
|
6598
6598
|
] }),
|
|
6599
6599
|
/* @__PURE__ */ t(nU, { score: 0, showIndicator: !1 })
|
|
6600
6600
|
] }),
|
|
@@ -6604,21 +6604,21 @@ function D1({
|
|
|
6604
6604
|
/* @__PURE__ */ t("span", { className: Wl, "aria-hidden": !0, children: /* @__PURE__ */ t(Dt, { className: Rl }) }),
|
|
6605
6605
|
/* @__PURE__ */ t("span", { className: "min-w-0 truncate", children: "Last Symptom Survey" })
|
|
6606
6606
|
] }),
|
|
6607
|
-
/* @__PURE__ */ t(CA, { variant: "value", children: /* @__PURE__ */ t(
|
|
6607
|
+
/* @__PURE__ */ t(CA, { variant: "value", children: /* @__PURE__ */ t(R, { className: "h-3.5 w-16" }) })
|
|
6608
6608
|
] }),
|
|
6609
6609
|
/* @__PURE__ */ a("li", { className: `${ul} ${lS}`, children: [
|
|
6610
6610
|
/* @__PURE__ */ a("span", { className: ol, children: [
|
|
6611
6611
|
/* @__PURE__ */ t("span", { className: Wl, "aria-hidden": !0, children: /* @__PURE__ */ t(vl, { className: Rl }) }),
|
|
6612
6612
|
/* @__PURE__ */ t("span", { className: "min-w-0 truncate", children: "Last Labs" })
|
|
6613
6613
|
] }),
|
|
6614
|
-
/* @__PURE__ */ t(CA, { variant: "value", children: /* @__PURE__ */ t(
|
|
6614
|
+
/* @__PURE__ */ t(CA, { variant: "value", children: /* @__PURE__ */ t(R, { className: "h-3.5 w-16" }) })
|
|
6615
6615
|
] }),
|
|
6616
6616
|
/* @__PURE__ */ a("li", { className: `${ul} ${lS}`, children: [
|
|
6617
6617
|
/* @__PURE__ */ a("span", { className: ol, children: [
|
|
6618
6618
|
/* @__PURE__ */ t("span", { className: Wl, "aria-hidden": !0, children: /* @__PURE__ */ t(Gl, { className: Rl }) }),
|
|
6619
6619
|
/* @__PURE__ */ t("span", { className: "min-w-0 truncate", children: "Wearable" })
|
|
6620
6620
|
] }),
|
|
6621
|
-
/* @__PURE__ */ t(CA, { variant: "value", children: /* @__PURE__ */ t(
|
|
6621
|
+
/* @__PURE__ */ t(CA, { variant: "value", children: /* @__PURE__ */ t(R, { className: "h-3.5 w-12" }) })
|
|
6622
6622
|
] })
|
|
6623
6623
|
] }) })
|
|
6624
6624
|
] }),
|
|
@@ -6646,8 +6646,8 @@ function D1({
|
|
|
6646
6646
|
].join(" "),
|
|
6647
6647
|
children: [
|
|
6648
6648
|
/* @__PURE__ */ t(gp, { className: "size-[6.5rem] max-w-full" }),
|
|
6649
|
-
/* @__PURE__ */ t(
|
|
6650
|
-
/* @__PURE__ */ t(
|
|
6649
|
+
/* @__PURE__ */ t(R, { className: "h-3 w-[4.5rem]" }),
|
|
6650
|
+
/* @__PURE__ */ t(R, { className: "h-8 w-12" })
|
|
6651
6651
|
]
|
|
6652
6652
|
},
|
|
6653
6653
|
l.id
|
|
@@ -6687,8 +6687,8 @@ function D1({
|
|
|
6687
6687
|
children: [
|
|
6688
6688
|
/* @__PURE__ */ a("div", { className: "flex shrink-0 flex-col items-center gap-1 xl:w-[9rem] xl:justify-center", children: [
|
|
6689
6689
|
/* @__PURE__ */ t(gp, { className: "size-16 shrink-0 xl:size-20" }),
|
|
6690
|
-
/* @__PURE__ */ t(
|
|
6691
|
-
/* @__PURE__ */ t(
|
|
6690
|
+
/* @__PURE__ */ t(R, { className: "h-3 w-24" }),
|
|
6691
|
+
/* @__PURE__ */ t(R, { className: "h-8 w-14" })
|
|
6692
6692
|
] }),
|
|
6693
6693
|
/* @__PURE__ */ t("div", { className: "flex min-w-0 flex-1 flex-col gap-1.5", children: G1.map((p) => /* @__PURE__ */ t(v1, {}, p)) })
|
|
6694
6694
|
]
|
|
@@ -6723,16 +6723,16 @@ function M1({
|
|
|
6723
6723
|
/* @__PURE__ */ t("div", { className: "space-y-6", children: w1.map((l) => /* @__PURE__ */ a(m, { className: "flex flex-col", children: [
|
|
6724
6724
|
/* @__PURE__ */ a("div", { className: "mb-6 flex flex-wrap items-center justify-between gap-3", children: [
|
|
6725
6725
|
/* @__PURE__ */ a("div", { className: "flex min-w-0 flex-1 items-center gap-2", children: [
|
|
6726
|
-
/* @__PURE__ */ t(
|
|
6727
|
-
/* @__PURE__ */ t(
|
|
6726
|
+
/* @__PURE__ */ t(R, { className: "h-9 w-9 shrink-0 rounded-md" }),
|
|
6727
|
+
/* @__PURE__ */ t(R, { className: "h-7 w-[min(100%,16rem)]" })
|
|
6728
6728
|
] }),
|
|
6729
|
-
/* @__PURE__ */ t(
|
|
6729
|
+
/* @__PURE__ */ t(R, { className: "h-9 w-14" })
|
|
6730
6730
|
] }),
|
|
6731
6731
|
/* @__PURE__ */ t(_l, { variant: "labAnalysis" }),
|
|
6732
6732
|
/* @__PURE__ */ a("div", { className: "mt-6 space-y-3", children: [
|
|
6733
|
-
/* @__PURE__ */ t(
|
|
6734
|
-
/* @__PURE__ */ t(
|
|
6735
|
-
/* @__PURE__ */ t(
|
|
6733
|
+
/* @__PURE__ */ t(R, { className: "h-3.5 w-full" }),
|
|
6734
|
+
/* @__PURE__ */ t(R, { className: "h-3.5 w-full" }),
|
|
6735
|
+
/* @__PURE__ */ t(R, { className: "h-3.5 w-[85%]" })
|
|
6736
6736
|
] })
|
|
6737
6737
|
] }, l)) })
|
|
6738
6738
|
] });
|
|
@@ -6803,51 +6803,51 @@ function Sn(A) {
|
|
|
6803
6803
|
}));
|
|
6804
6804
|
}
|
|
6805
6805
|
function Hc({ content: A }) {
|
|
6806
|
-
var
|
|
6806
|
+
var o, b, J, i, I, O;
|
|
6807
6807
|
const l = (A == null ? void 0 : A.groups) ?? Y1, p = z(() => Sn(l ?? []), [l]), [S, q] = y(0), [U, V] = y(
|
|
6808
6808
|
null
|
|
6809
6809
|
);
|
|
6810
6810
|
if (!A) return null;
|
|
6811
|
-
const { pageHeader: r, intro: n } = A, K = l.length > 0, k = Math.min(S, Math.max(0, p.length - 1)), c = p[k],
|
|
6812
|
-
triadNumber:
|
|
6813
|
-
name:
|
|
6814
|
-
aggregateScoreDisplay:
|
|
6815
|
-
})),
|
|
6811
|
+
const { pageHeader: r, intro: n } = A, K = l.length > 0, k = Math.min(S, Math.max(0, p.length - 1)), c = p[k], e = (c == null ? void 0 : c.groups) ?? [], u = c == null ? n : c.triadNumber == null ? void 0 : ((o = A.intros) == null ? void 0 : o.find((E) => E.triadNumber === c.triadNumber)) ?? n, W = !!(u && (u.heading || (b = u.paragraphs) != null && b.length)), j = p.map((E) => ({
|
|
6812
|
+
triadNumber: E.triadNumber ?? _1,
|
|
6813
|
+
name: E.tabName,
|
|
6814
|
+
aggregateScoreDisplay: E.tabDisplay
|
|
6815
|
+
})), d = W || K;
|
|
6816
6816
|
return /* @__PURE__ */ a("div", { className: "mx-auto w-full min-w-0 space-y-6", children: [
|
|
6817
6817
|
/* @__PURE__ */ t(SA, { title: r.title, subtitle: r.subtitle }),
|
|
6818
6818
|
K ? /* @__PURE__ */ t(
|
|
6819
6819
|
ht,
|
|
6820
6820
|
{
|
|
6821
|
-
triads:
|
|
6821
|
+
triads: j,
|
|
6822
6822
|
selectedIndex: k,
|
|
6823
6823
|
onSelectIndex: q,
|
|
6824
6824
|
showAggregateScore: !1
|
|
6825
6825
|
}
|
|
6826
6826
|
) : null,
|
|
6827
|
-
|
|
6828
|
-
|
|
6829
|
-
|
|
6830
|
-
K ? /* @__PURE__ */ t("div", { className: "space-y-6", children:
|
|
6827
|
+
d ? /* @__PURE__ */ t(m, { className: "min-w-0", children: /* @__PURE__ */ a("div", { className: "space-y-6", children: [
|
|
6828
|
+
W && u ? /* @__PURE__ */ t(BS, { ...u, embeddedInCard: !0 }) : null,
|
|
6829
|
+
W && K ? /* @__PURE__ */ t("div", { className: "border-t border-[color:var(--mb-color-card-border)]" }) : null,
|
|
6830
|
+
K ? /* @__PURE__ */ t("div", { className: "space-y-6", children: e.map((E) => /* @__PURE__ */ a(
|
|
6831
6831
|
"div",
|
|
6832
6832
|
{
|
|
6833
6833
|
className: "min-w-0 space-y-3 rounded-[length:var(--mb-radius-card)] bg-[color:var(--mb-color-muted-section-bg)] p-3 sm:p-[length:var(--mb-card-padding)]",
|
|
6834
6834
|
children: [
|
|
6835
6835
|
/* @__PURE__ */ a("div", { className: "flex flex-wrap items-baseline justify-between gap-2", children: [
|
|
6836
|
-
/* @__PURE__ */ t("h2", { className: "m-0 text-xl font-bold text-[color:var(--mb-color-text)]", children: tn(
|
|
6837
|
-
/* @__PURE__ */ t("span", { className: "text-center text-xl font-bold leading-7 tracking-[-0.005rem] text-[color:var(--mb-color-text)]", children:
|
|
6836
|
+
/* @__PURE__ */ t("h2", { className: "m-0 text-xl font-bold text-[color:var(--mb-color-text)]", children: tn(E.title) }),
|
|
6837
|
+
/* @__PURE__ */ t("span", { className: "text-center text-xl font-bold leading-7 tracking-[-0.005rem] text-[color:var(--mb-color-text)]", children: E.subtitle })
|
|
6838
6838
|
] }),
|
|
6839
6839
|
/* @__PURE__ */ t(Sp, { valueHeading: "Trend Chart" }),
|
|
6840
6840
|
/* @__PURE__ */ t(
|
|
6841
6841
|
qp,
|
|
6842
6842
|
{
|
|
6843
|
-
rows: (
|
|
6843
|
+
rows: (E.metrics ?? []).map(pn),
|
|
6844
6844
|
onSelect: V,
|
|
6845
6845
|
valueBadgeClassName: pp
|
|
6846
6846
|
}
|
|
6847
6847
|
)
|
|
6848
6848
|
]
|
|
6849
6849
|
},
|
|
6850
|
-
`${
|
|
6850
|
+
`${E.title}-${E.subtitle}`
|
|
6851
6851
|
)) }) : null
|
|
6852
6852
|
] }) }) : null,
|
|
6853
6853
|
U ? /* @__PURE__ */ t(
|
|
@@ -6858,8 +6858,8 @@ function Hc({ content: A }) {
|
|
|
6858
6858
|
title: ((J = U.statusExplanationPanel) == null ? void 0 : J.panelTitle) ?? U.name,
|
|
6859
6859
|
trendStatus: U.status,
|
|
6860
6860
|
bodyParagraphs: ((i = U.statusExplanationPanel) == null ? void 0 : i.bodyParagraphs) ?? [],
|
|
6861
|
-
alertLabDetail: (
|
|
6862
|
-
rowData: (
|
|
6861
|
+
alertLabDetail: (I = U.statusExplanationPanel) == null ? void 0 : I.alertLabDetail,
|
|
6862
|
+
rowData: (O = U.statusExplanationPanel) != null && O.alertLabDetail ? void 0 : {
|
|
6863
6863
|
name: U.name,
|
|
6864
6864
|
symptomScore: U.symptomScore,
|
|
6865
6865
|
labScore: U.labScore,
|
|
@@ -6883,14 +6883,14 @@ const qn = [
|
|
|
6883
6883
|
function Un() {
|
|
6884
6884
|
return /* @__PURE__ */ a("div", { className: "flex min-w-0 flex-col overflow-hidden rounded-[length:var(--mb-radius-button)] border border-solid border-[color:var(--mb-color-card-border)] bg-[color:var(--mb-color-card-bg)] [border-width:0.0625rem] 2xl:flex-row 2xl:items-stretch", children: [
|
|
6885
6885
|
/* @__PURE__ */ a("div", { className: "flex min-w-0 items-center gap-2 bg-[color:var(--mb-color-badge-bg)]/40 px-3 py-2.5 2xl:w-[20rem] 2xl:shrink-0", children: [
|
|
6886
|
-
/* @__PURE__ */ t(
|
|
6887
|
-
/* @__PURE__ */ t(
|
|
6886
|
+
/* @__PURE__ */ t(R, { className: "size-4 shrink-0 rounded" }),
|
|
6887
|
+
/* @__PURE__ */ t(R, { className: "h-3.5 min-w-0 flex-1 max-w-[10rem] sm:h-4" })
|
|
6888
6888
|
] }),
|
|
6889
6889
|
/* @__PURE__ */ a("div", { className: "grid min-w-0 flex-1 grid-cols-1 gap-y-2 border-t border-[color:var(--mb-color-card-border)] bg-[color:var(--mb-color-card-bg)] px-3 py-2 sm:grid-cols-2 sm:gap-x-3 sm:gap-y-0 2xl:mx-auto 2xl:w-full 2xl:max-w-[50rem] 2xl:border-t-0 2xl:px-8 2xl:py-1", children: [
|
|
6890
|
-
/* @__PURE__ */ t("div", { className: "flex min-w-0 justify-center", children: /* @__PURE__ */ t(
|
|
6891
|
-
/* @__PURE__ */ t("div", { className: "flex min-w-0 justify-center", children: /* @__PURE__ */ t(
|
|
6890
|
+
/* @__PURE__ */ t("div", { className: "flex min-w-0 justify-center", children: /* @__PURE__ */ t(R, { className: "h-6 w-[min(100%,7rem)]" }) }),
|
|
6891
|
+
/* @__PURE__ */ t("div", { className: "flex min-w-0 justify-center", children: /* @__PURE__ */ t(R, { className: "h-6 w-[min(100%,7rem)]" }) })
|
|
6892
6892
|
] }),
|
|
6893
|
-
/* @__PURE__ */ t(
|
|
6893
|
+
/* @__PURE__ */ t(R, { className: "min-h-[3.25rem] w-full shrink-0 rounded-none rounded-br-[length:var(--mb-radius-button)] rounded-tr-[length:var(--mb-radius-button)] 2xl:w-[9rem] 2xl:min-h-0 2xl:self-stretch" })
|
|
6894
6894
|
] });
|
|
6895
6895
|
}
|
|
6896
6896
|
function Vn({
|
|
@@ -6906,24 +6906,24 @@ function Vn({
|
|
|
6906
6906
|
}
|
|
6907
6907
|
),
|
|
6908
6908
|
/* @__PURE__ */ t("div", { className: "flex gap-3 overflow-x-auto", role: "presentation", "aria-hidden": !0, children: qn.map((l) => /* @__PURE__ */ a("div", { className: "flex min-w-[9rem] flex-1 flex-col items-center gap-3 px-5 py-4", children: [
|
|
6909
|
-
/* @__PURE__ */ t(
|
|
6910
|
-
/* @__PURE__ */ t(
|
|
6911
|
-
/* @__PURE__ */ t(
|
|
6909
|
+
/* @__PURE__ */ t(R, { className: "size-26 shrink-0 rounded-full" }),
|
|
6910
|
+
/* @__PURE__ */ t(R, { className: "h-3 w-16" }),
|
|
6911
|
+
/* @__PURE__ */ t(R, { className: "h-8 w-10" })
|
|
6912
6912
|
] }, l)) }),
|
|
6913
6913
|
/* @__PURE__ */ t(m, { className: "min-w-0", children: /* @__PURE__ */ a("div", { className: "space-y-6", children: [
|
|
6914
6914
|
/* @__PURE__ */ a("div", { className: "grid min-w-0 grid-cols-1 gap-6 xl:grid-cols-2 xl:items-stretch", children: [
|
|
6915
6915
|
/* @__PURE__ */ a("div", { className: "min-w-0 space-y-4", children: [
|
|
6916
6916
|
/* @__PURE__ */ a("div", { className: "flex items-center gap-2", children: [
|
|
6917
|
-
/* @__PURE__ */ t(
|
|
6918
|
-
/* @__PURE__ */ t(
|
|
6917
|
+
/* @__PURE__ */ t(R, { className: "h-9 w-9 shrink-0 rounded-md" }),
|
|
6918
|
+
/* @__PURE__ */ t(R, { className: "h-7 w-[min(100%,14rem)]" })
|
|
6919
6919
|
] }),
|
|
6920
6920
|
/* @__PURE__ */ a("div", { className: "space-y-3", children: [
|
|
6921
|
-
/* @__PURE__ */ t(
|
|
6922
|
-
/* @__PURE__ */ t(
|
|
6923
|
-
/* @__PURE__ */ t(
|
|
6921
|
+
/* @__PURE__ */ t(R, { className: "h-3.5 w-full" }),
|
|
6922
|
+
/* @__PURE__ */ t(R, { className: "h-3.5 w-full" }),
|
|
6923
|
+
/* @__PURE__ */ t(R, { className: "h-3.5 w-[90%]" })
|
|
6924
6924
|
] })
|
|
6925
6925
|
] }),
|
|
6926
|
-
/* @__PURE__ */ t("div", { className: "flex min-w-0 items-center", children: /* @__PURE__ */ t(
|
|
6926
|
+
/* @__PURE__ */ t("div", { className: "flex min-w-0 items-center", children: /* @__PURE__ */ t(R, { className: "aspect-video w-full rounded-lg" }) })
|
|
6927
6927
|
] }),
|
|
6928
6928
|
/* @__PURE__ */ t("div", { className: "border-t border-[color:var(--mb-color-card-border)]" }),
|
|
6929
6929
|
/* @__PURE__ */ t("div", { className: "space-y-6", children: an.map((l) => /* @__PURE__ */ a(
|
|
@@ -6932,8 +6932,8 @@ function Vn({
|
|
|
6932
6932
|
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)]",
|
|
6933
6933
|
children: [
|
|
6934
6934
|
/* @__PURE__ */ a("div", { className: "flex flex-wrap items-baseline justify-between gap-2", children: [
|
|
6935
|
-
/* @__PURE__ */ t(
|
|
6936
|
-
/* @__PURE__ */ t(
|
|
6935
|
+
/* @__PURE__ */ t(R, { className: "h-7 w-[min(100%,12rem)]" }),
|
|
6936
|
+
/* @__PURE__ */ t(R, { className: "h-5 w-24 sm:h-6" })
|
|
6937
6937
|
] }),
|
|
6938
6938
|
/* @__PURE__ */ t("div", { className: "space-y-2", children: l.rows.map((p) => /* @__PURE__ */ t(Un, {}, p)) })
|
|
6939
6939
|
]
|
|
@@ -6943,7 +6943,7 @@ function Vn({
|
|
|
6943
6943
|
] }) })
|
|
6944
6944
|
] });
|
|
6945
6945
|
}
|
|
6946
|
-
const { risk: pS } =
|
|
6946
|
+
const { risk: pS } = H;
|
|
6947
6947
|
pS.moderateTrack, pS.lowTrack;
|
|
6948
6948
|
const SS = {
|
|
6949
6949
|
1: [
|
|
@@ -7297,7 +7297,7 @@ function Pc({
|
|
|
7297
7297
|
k.risk
|
|
7298
7298
|
);
|
|
7299
7299
|
}) }),
|
|
7300
|
-
/* @__PURE__ */ t("div", { className: "flex justify-end", children: /* @__PURE__ */ t(
|
|
7300
|
+
/* @__PURE__ */ t("div", { className: "flex justify-end", children: /* @__PURE__ */ t(f, { align: "center", disabled: p, onClick: S, children: p ? "Continuing..." : l }) })
|
|
7301
7301
|
] }) });
|
|
7302
7302
|
}
|
|
7303
7303
|
function dn(A) {
|
|
@@ -7467,7 +7467,7 @@ function In({
|
|
|
7467
7467
|
] });
|
|
7468
7468
|
}
|
|
7469
7469
|
function jn({ onClick: A }) {
|
|
7470
|
-
return /* @__PURE__ */ a(
|
|
7470
|
+
return /* @__PURE__ */ a(f, { type: "button", variant: "soft", onClick: A, align: "start", children: [
|
|
7471
7471
|
/* @__PURE__ */ t("span", { "aria-hidden": !0, children: "←" }),
|
|
7472
7472
|
"Back"
|
|
7473
7473
|
] });
|
|
@@ -7661,28 +7661,28 @@ function Hn({
|
|
|
7661
7661
|
answers: p
|
|
7662
7662
|
}) {
|
|
7663
7663
|
const S = hA(), [q, U] = y(!1), [V, r] = y(A), [n, K] = y(!1), k = MS();
|
|
7664
|
-
return
|
|
7664
|
+
return F(() => {
|
|
7665
7665
|
K(!0);
|
|
7666
|
-
}, []),
|
|
7666
|
+
}, []), F(() => {
|
|
7667
7667
|
if (A) {
|
|
7668
7668
|
r(!0);
|
|
7669
|
-
const
|
|
7669
|
+
const e = requestAnimationFrame(() => {
|
|
7670
7670
|
requestAnimationFrame(() => U(!0));
|
|
7671
7671
|
});
|
|
7672
|
-
return () => cancelAnimationFrame(
|
|
7672
|
+
return () => cancelAnimationFrame(e);
|
|
7673
7673
|
}
|
|
7674
7674
|
U(!1);
|
|
7675
7675
|
const c = window.setTimeout(() => {
|
|
7676
7676
|
r(!1);
|
|
7677
7677
|
}, 300);
|
|
7678
7678
|
return () => window.clearTimeout(c);
|
|
7679
|
-
}, [A]),
|
|
7679
|
+
}, [A]), F(() => {
|
|
7680
7680
|
if (!V) return;
|
|
7681
|
-
const c = (
|
|
7682
|
-
|
|
7681
|
+
const c = (e) => {
|
|
7682
|
+
e.key === "Escape" && l();
|
|
7683
7683
|
};
|
|
7684
7684
|
return window.addEventListener("keydown", c), () => window.removeEventListener("keydown", c);
|
|
7685
|
-
}, [V, l]),
|
|
7685
|
+
}, [V, l]), F(() => {
|
|
7686
7686
|
if (V)
|
|
7687
7687
|
return mS();
|
|
7688
7688
|
}, [V]), !n || typeof document > "u" || !V ? null : Bl(
|
|
@@ -7757,12 +7757,12 @@ function Nc({
|
|
|
7757
7757
|
organContent: q,
|
|
7758
7758
|
questionnaireAnswers: U = [],
|
|
7759
7759
|
showAnswersInlineWhenNoSections: V = !1
|
|
7760
|
-
} = A, r = S ?? [], n = V && r.length === 0 && U.length > 0, [K, k] = y(null), [c,
|
|
7761
|
-
() => (
|
|
7762
|
-
|
|
7760
|
+
} = A, r = S ?? [], n = V && r.length === 0 && U.length > 0, [K, k] = y(null), [c, e] = y(!1), u = z(
|
|
7761
|
+
() => (d) => (o) => {
|
|
7762
|
+
o.organKey && q != null && q[o.organKey] && k({ section: d, category: o });
|
|
7763
7763
|
},
|
|
7764
7764
|
[q]
|
|
7765
|
-
),
|
|
7765
|
+
), W = K ? mn(K.category.title) : "", j = K == null ? void 0 : K.category.organKey;
|
|
7766
7766
|
return /* @__PURE__ */ a("div", { className: "mx-auto w-full min-w-0 space-y-6", children: [
|
|
7767
7767
|
/* @__PURE__ */ t(
|
|
7768
7768
|
SA,
|
|
@@ -7770,12 +7770,12 @@ function Nc({
|
|
|
7770
7770
|
title: l.title,
|
|
7771
7771
|
subtitle: l.subtitle,
|
|
7772
7772
|
actions: n ? void 0 : /* @__PURE__ */ a(
|
|
7773
|
-
|
|
7773
|
+
f,
|
|
7774
7774
|
{
|
|
7775
7775
|
type: "button",
|
|
7776
7776
|
variant: "default",
|
|
7777
7777
|
className: Ml,
|
|
7778
|
-
onClick: () =>
|
|
7778
|
+
onClick: () => e(!0),
|
|
7779
7779
|
children: [
|
|
7780
7780
|
/* @__PURE__ */ t(xU, { className: "size-[1.125rem] shrink-0" }),
|
|
7781
7781
|
"Symptom Analysis Answers"
|
|
@@ -7785,14 +7785,14 @@ function Nc({
|
|
|
7785
7785
|
}
|
|
7786
7786
|
),
|
|
7787
7787
|
/* @__PURE__ */ a("div", { className: "space-y-6", children: [
|
|
7788
|
-
r.map((
|
|
7788
|
+
r.map((d) => /* @__PURE__ */ t(
|
|
7789
7789
|
yV,
|
|
7790
7790
|
{
|
|
7791
7791
|
variant: "questionnaire",
|
|
7792
|
-
...
|
|
7793
|
-
onCategoryClick: u(
|
|
7792
|
+
...d,
|
|
7793
|
+
onCategoryClick: u(d)
|
|
7794
7794
|
},
|
|
7795
|
-
`${
|
|
7795
|
+
`${d.triadNumber}-${d.heading}`
|
|
7796
7796
|
)),
|
|
7797
7797
|
n ? /* @__PURE__ */ t(qq, { answers: U }) : null
|
|
7798
7798
|
] }),
|
|
@@ -7801,12 +7801,12 @@ function Nc({
|
|
|
7801
7801
|
{
|
|
7802
7802
|
open: !0,
|
|
7803
7803
|
onClose: () => k(null),
|
|
7804
|
-
title:
|
|
7804
|
+
title: W,
|
|
7805
7805
|
trendStatus: Pn(K.category.trendZone),
|
|
7806
7806
|
bodyParagraphs: [],
|
|
7807
7807
|
rowData: {
|
|
7808
7808
|
scoreLayout: "questionnaire",
|
|
7809
|
-
name:
|
|
7809
|
+
name: W,
|
|
7810
7810
|
symptomScore: K.category.symptomScore,
|
|
7811
7811
|
previousSymptomScore: K.category.previousSymptom,
|
|
7812
7812
|
currentDateLabel: K.section.currentRangeLabel,
|
|
@@ -7815,7 +7815,7 @@ function Nc({
|
|
|
7815
7815
|
riskLabel: K.category.riskLabel
|
|
7816
7816
|
},
|
|
7817
7817
|
triadNumber: K.section.triadNumber,
|
|
7818
|
-
organKey:
|
|
7818
|
+
organKey: j,
|
|
7819
7819
|
organContent: q,
|
|
7820
7820
|
patientGender: p
|
|
7821
7821
|
}
|
|
@@ -7824,7 +7824,7 @@ function Nc({
|
|
|
7824
7824
|
Hn,
|
|
7825
7825
|
{
|
|
7826
7826
|
open: c,
|
|
7827
|
-
onClose: () =>
|
|
7827
|
+
onClose: () => e(!1),
|
|
7828
7828
|
answers: U
|
|
7829
7829
|
}
|
|
7830
7830
|
)
|
|
@@ -7846,10 +7846,10 @@ function Cn({
|
|
|
7846
7846
|
/* @__PURE__ */ t("div", { className: "space-y-6", children: Nn.map((l) => /* @__PURE__ */ a(m, { className: "flex flex-col", children: [
|
|
7847
7847
|
/* @__PURE__ */ a("div", { className: "mb-6 flex flex-wrap items-center justify-between gap-3", children: [
|
|
7848
7848
|
/* @__PURE__ */ a("div", { className: "flex min-w-0 flex-1 items-center gap-2", children: [
|
|
7849
|
-
/* @__PURE__ */ t(
|
|
7850
|
-
/* @__PURE__ */ t(
|
|
7849
|
+
/* @__PURE__ */ t(R, { className: "h-9 w-9 shrink-0 rounded-md" }),
|
|
7850
|
+
/* @__PURE__ */ t(R, { className: "h-7 w-[min(100%,18rem)]" })
|
|
7851
7851
|
] }),
|
|
7852
|
-
/* @__PURE__ */ t(
|
|
7852
|
+
/* @__PURE__ */ t(R, { className: "h-9 w-14" })
|
|
7853
7853
|
] }),
|
|
7854
7854
|
/* @__PURE__ */ t("div", { className: "grid grid-cols-1 gap-4 lg:grid-cols-2 xl:grid-cols-3", children: Qn.map((p) => /* @__PURE__ */ t(
|
|
7855
7855
|
_l,
|
|
@@ -7963,13 +7963,13 @@ function nq({
|
|
|
7963
7963
|
product: p,
|
|
7964
7964
|
purchaseButtonLabel: S
|
|
7965
7965
|
}) {
|
|
7966
|
-
var
|
|
7967
|
-
const q = z(() => Xn(p), [p]), [U, V] = y(0), r = q[U] ?? q[0], n = xn(p), K = ((
|
|
7968
|
-
|
|
7969
|
-
const
|
|
7970
|
-
|
|
7966
|
+
var e, u, W, j;
|
|
7967
|
+
const q = z(() => Xn(p), [p]), [U, V] = y(0), r = q[U] ?? q[0], n = xn(p), K = ((e = p.description) == null ? void 0 : e.trim()) || ((u = p.tagline) == null ? void 0 : u.trim()) || `${p.name} is suggested based on your Metabolic Code report.`, k = p.purchaseUrl ?? Up;
|
|
7968
|
+
F(() => {
|
|
7969
|
+
const d = (o) => {
|
|
7970
|
+
o.key === "Escape" && A();
|
|
7971
7971
|
};
|
|
7972
|
-
return window.addEventListener("keydown",
|
|
7972
|
+
return window.addEventListener("keydown", d), () => window.removeEventListener("keydown", d);
|
|
7973
7973
|
}, [A]);
|
|
7974
7974
|
const c = "inline-flex h-10 w-40 items-center justify-center rounded-md bg-[#27C163] px-6 text-base font-[510] text-white shadow-[var(--mb-button-shadow)] transition hover:bg-[#23A958] 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-[#f4f4f4]";
|
|
7975
7975
|
return /* @__PURE__ */ t(
|
|
@@ -8007,26 +8007,26 @@ function nq({
|
|
|
8007
8007
|
q.length
|
|
8008
8008
|
] }) : null
|
|
8009
8009
|
] }) }),
|
|
8010
|
-
q.length > 1 ? /* @__PURE__ */ t("div", { className: "flex gap-3 overflow-x-auto pb-1", children: q.map((
|
|
8010
|
+
q.length > 1 ? /* @__PURE__ */ t("div", { className: "flex gap-3 overflow-x-auto pb-1", children: q.map((d, o) => /* @__PURE__ */ t(
|
|
8011
8011
|
"button",
|
|
8012
8012
|
{
|
|
8013
8013
|
type: "button",
|
|
8014
|
-
onClick: () => V(
|
|
8014
|
+
onClick: () => V(o),
|
|
8015
8015
|
className: [
|
|
8016
8016
|
"size-20 shrink-0 overflow-hidden rounded-lg border bg-white transition",
|
|
8017
|
-
|
|
8017
|
+
o === U ? "border-[color:var(--mb-color-button-bg)]" : "border-[#ebebeb] opacity-50 hover:opacity-80"
|
|
8018
8018
|
].join(" "),
|
|
8019
|
-
"aria-label": `View ${p.name} image ${
|
|
8019
|
+
"aria-label": `View ${p.name} image ${o + 1}`,
|
|
8020
8020
|
children: /* @__PURE__ */ t(
|
|
8021
8021
|
Lt,
|
|
8022
8022
|
{
|
|
8023
|
-
src:
|
|
8024
|
-
alt:
|
|
8023
|
+
src: d.src,
|
|
8024
|
+
alt: d.alt ?? `${p.name} thumbnail ${o + 1}`,
|
|
8025
8025
|
className: "h-full w-full object-cover"
|
|
8026
8026
|
}
|
|
8027
8027
|
)
|
|
8028
8028
|
},
|
|
8029
|
-
|
|
8029
|
+
d.src
|
|
8030
8030
|
)) }) : null
|
|
8031
8031
|
] }),
|
|
8032
8032
|
/* @__PURE__ */ t("aside", { className: "min-w-0 rounded-lg bg-[#f4f4f4] p-6 text-[color:var(--mb-color-text)]", children: /* @__PURE__ */ a("div", { className: "space-y-6", children: [
|
|
@@ -8042,16 +8042,16 @@ function nq({
|
|
|
8042
8042
|
/* @__PURE__ */ t("span", { children: n })
|
|
8043
8043
|
] }) : null,
|
|
8044
8044
|
/* @__PURE__ */ a("div", { className: "space-y-4", children: [
|
|
8045
|
-
/* @__PURE__ */ t("h3", { className: "text-[2.1875rem] font-bold leading-10 text-[#1c2024]", children: ((
|
|
8045
|
+
/* @__PURE__ */ t("h3", { className: "text-[2.1875rem] font-bold leading-10 text-[#1c2024]", children: ((W = p.matchedPartnerProduct) == null ? void 0 : W.name) ?? p.name }),
|
|
8046
8046
|
/* @__PURE__ */ t("p", { className: "text-sm leading-5 text-[rgba(0,7,20,0.62)]", children: K })
|
|
8047
8047
|
] }),
|
|
8048
|
-
(
|
|
8048
|
+
(j = p.triadNumbers) != null && j.length ? /* @__PURE__ */ t("div", { className: "flex flex-wrap items-center gap-4", children: p.triadNumbers.map((d) => /* @__PURE__ */ t(
|
|
8049
8049
|
XA,
|
|
8050
8050
|
{
|
|
8051
|
-
triadNumber:
|
|
8051
|
+
triadNumber: d,
|
|
8052
8052
|
className: "size-10"
|
|
8053
8053
|
},
|
|
8054
|
-
`triad-${
|
|
8054
|
+
`triad-${d}`
|
|
8055
8055
|
)) }) : null,
|
|
8056
8056
|
/* @__PURE__ */ a("div", { className: "space-y-1", children: [
|
|
8057
8057
|
p.price ? /* @__PURE__ */ t("p", { className: "text-[2.1875rem] font-bold leading-10 text-[#1c2024]", children: p.price }) : null,
|
|
@@ -8091,30 +8091,30 @@ function Cc({ content: A }) {
|
|
|
8091
8091
|
(N) => Vq(N, r == null ? void 0 : r.products)
|
|
8092
8092
|
),
|
|
8093
8093
|
[A == null ? void 0 : A.products, r == null ? void 0 : r.products]
|
|
8094
|
-
), c = r == null ? void 0 : r.onPurchaseProduct,
|
|
8094
|
+
), c = r == null ? void 0 : r.onPurchaseProduct, e = (r == null ? void 0 : r.purchaseButtonLabel) ?? "Purchase";
|
|
8095
8095
|
if (!A) return null;
|
|
8096
8096
|
const {
|
|
8097
8097
|
pageHeader: u,
|
|
8098
|
-
intro:
|
|
8099
|
-
intros:
|
|
8100
|
-
labTriadCards:
|
|
8101
|
-
patientGender:
|
|
8102
|
-
labSectionTitle:
|
|
8098
|
+
intro: W,
|
|
8099
|
+
intros: j,
|
|
8100
|
+
labTriadCards: d,
|
|
8101
|
+
patientGender: o,
|
|
8102
|
+
labSectionTitle: b,
|
|
8103
8103
|
labMetrics: J,
|
|
8104
8104
|
symptomsSectionTitle: i,
|
|
8105
|
-
symptoms:
|
|
8106
|
-
productsSectionTitle:
|
|
8107
|
-
} = A,
|
|
8105
|
+
symptoms: I,
|
|
8106
|
+
productsSectionTitle: O
|
|
8107
|
+
} = A, E = !!(W && (W.heading || (sA = W.paragraphs) != null && sA.length)), X = J ?? [], s = I ?? [], P = k.length > 0, Q = X.length > 0, G = d ?? [], Z = s.length > 0, C = G.length > 0, L = E || C || Q || Z || P, $ = C || (W == null ? void 0 : W.triadNumber) != null, D = $ && C ? G.map((N) => ({
|
|
8108
8108
|
triadNumber: N.triadNumber,
|
|
8109
8109
|
name: `Triad ${N.triadNumber}`,
|
|
8110
8110
|
aggregateScoreDisplay: String(N.triadNumber)
|
|
8111
|
-
})) : $ &&
|
|
8111
|
+
})) : $ && W ? [
|
|
8112
8112
|
{
|
|
8113
|
-
triadNumber:
|
|
8114
|
-
name: `Triad ${
|
|
8115
|
-
aggregateScoreDisplay: String(
|
|
8113
|
+
triadNumber: W.triadNumber,
|
|
8114
|
+
name: `Triad ${W.triadNumber}`,
|
|
8115
|
+
aggregateScoreDisplay: String(W.triadNumber)
|
|
8116
8116
|
}
|
|
8117
|
-
] : [], v = Math.min(l, Math.max(0, D.length - 1)), nA = (HA = D[v]) == null ? void 0 : HA.triadNumber, AA = (
|
|
8117
|
+
] : [], v = Math.min(l, Math.max(0, D.length - 1)), nA = (HA = D[v]) == null ? void 0 : HA.triadNumber, AA = (j == null ? void 0 : j.find((N) => N.triadNumber === nA)) ?? W, h = G.find((N) => N.triadNumber === nA), dA = Z || P || C || Q, oA = S ? Ap(S.category.title) : "", cA = S == null ? void 0 : S.category.organKey, kA = mA(), KA = mA(), uA = mA(), EA = mA();
|
|
8118
8118
|
return /* @__PURE__ */ a(lA, { children: [
|
|
8119
8119
|
/* @__PURE__ */ a("div", { className: "mx-auto w-full min-w-0 space-y-6", children: [
|
|
8120
8120
|
/* @__PURE__ */ t(SA, { title: u.title, subtitle: u.subtitle }),
|
|
@@ -8128,10 +8128,10 @@ function Cc({ content: A }) {
|
|
|
8128
8128
|
}
|
|
8129
8129
|
) : null,
|
|
8130
8130
|
L ? /* @__PURE__ */ t(m, { className: "min-w-0", children: /* @__PURE__ */ a("div", { className: "space-y-6", children: [
|
|
8131
|
-
|
|
8132
|
-
|
|
8131
|
+
E && AA ? /* @__PURE__ */ t(BS, { ...AA, embeddedInCard: !0 }) : null,
|
|
8132
|
+
E && dA ? /* @__PURE__ */ t("div", { className: "border-t border-[color:var(--mb-color-card-border)]" }) : null,
|
|
8133
8133
|
P ? /* @__PURE__ */ a("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: [
|
|
8134
|
-
/* @__PURE__ */ t("h2", { className: "text-xl font-bold text-[color:var(--mb-color-text)]", children:
|
|
8134
|
+
/* @__PURE__ */ t("h2", { className: "text-xl font-bold text-[color:var(--mb-color-text)]", children: O }),
|
|
8135
8135
|
/* @__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: k.map((N) => /* @__PURE__ */ t(
|
|
8136
8136
|
Ql,
|
|
8137
8137
|
{
|
|
@@ -8170,7 +8170,7 @@ function Cc({ content: A }) {
|
|
|
8170
8170
|
P && (Z || C || Q) ? /* @__PURE__ */ t("div", { className: "border-t border-[color:var(--mb-color-card-border)]" }) : null,
|
|
8171
8171
|
Z ? /* @__PURE__ */ a("div", { className: "space-y-5", children: [
|
|
8172
8172
|
/* @__PURE__ */ t("h2", { className: "text-xl font-bold text-[color:var(--mb-color-text)]", children: i }),
|
|
8173
|
-
/* @__PURE__ */ t("div", { className: "space-y-0", children: Ln(
|
|
8173
|
+
/* @__PURE__ */ t("div", { className: "space-y-0", children: Ln(s).map((N) => /* @__PURE__ */ t(
|
|
8174
8174
|
"div",
|
|
8175
8175
|
{
|
|
8176
8176
|
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",
|
|
@@ -8190,17 +8190,17 @@ function Cc({ content: A }) {
|
|
|
8190
8190
|
)) })
|
|
8191
8191
|
] }) : null,
|
|
8192
8192
|
Z && (C || Q) ? /* @__PURE__ */ t("div", { className: "border-t border-[color:var(--mb-color-card-border)]" }) : null,
|
|
8193
|
-
|
|
8194
|
-
/* @__PURE__ */ t("h2", { className: "text-xl font-bold text-[color:var(--mb-color-text)]", children:
|
|
8193
|
+
h ? /* @__PURE__ */ a("div", { className: "space-y-5", children: [
|
|
8194
|
+
/* @__PURE__ */ t("h2", { className: "text-xl font-bold text-[color:var(--mb-color-text)]", children: b }),
|
|
8195
8195
|
/* @__PURE__ */ t(
|
|
8196
8196
|
lp,
|
|
8197
8197
|
{
|
|
8198
|
-
card:
|
|
8199
|
-
onCategoryClick: K(
|
|
8198
|
+
card: h,
|
|
8199
|
+
onCategoryClick: K(h)
|
|
8200
8200
|
}
|
|
8201
8201
|
)
|
|
8202
8202
|
] }) : Q ? /* @__PURE__ */ a("div", { className: "space-y-5", children: [
|
|
8203
|
-
/* @__PURE__ */ t("h2", { className: "text-xl font-bold text-[color:var(--mb-color-text)]", children:
|
|
8203
|
+
/* @__PURE__ */ t("h2", { className: "text-xl font-bold text-[color:var(--mb-color-text)]", children: b }),
|
|
8204
8204
|
/* @__PURE__ */ t("div", { className: "grid grid-cols-1 items-start gap-4 sm:grid-cols-2 xl:grid-cols-3 xl:gap-6", children: X.map((N) => /* @__PURE__ */ t(
|
|
8205
8205
|
gA,
|
|
8206
8206
|
{
|
|
@@ -8238,7 +8238,7 @@ function Cc({ content: A }) {
|
|
|
8238
8238
|
triadNumber: S.triadCard.triadNumber,
|
|
8239
8239
|
organKey: cA,
|
|
8240
8240
|
organContent: n,
|
|
8241
|
-
patientGender:
|
|
8241
|
+
patientGender: o
|
|
8242
8242
|
}
|
|
8243
8243
|
) : null,
|
|
8244
8244
|
U ? /* @__PURE__ */ t(
|
|
@@ -8249,7 +8249,7 @@ function Cc({ content: A }) {
|
|
|
8249
8249
|
purchaseUrl: U.purchaseUrl ?? (r == null ? void 0 : r.defaultPurchaseUrl) ?? Up
|
|
8250
8250
|
},
|
|
8251
8251
|
onClose: () => V(null),
|
|
8252
|
-
purchaseButtonLabel:
|
|
8252
|
+
purchaseButtonLabel: e,
|
|
8253
8253
|
onPurchase: c ? (N) => c(rq(N)) : void 0
|
|
8254
8254
|
},
|
|
8255
8255
|
U.id ?? U.sku ?? U.name
|
|
@@ -8276,45 +8276,45 @@ function Gn({
|
|
|
8276
8276
|
}
|
|
8277
8277
|
),
|
|
8278
8278
|
/* @__PURE__ */ t("div", { className: "flex gap-3 overflow-x-auto", role: "presentation", "aria-hidden": !0, children: Bn.map((l) => /* @__PURE__ */ a("div", { className: "flex min-w-[9rem] flex-1 flex-col items-center gap-3 px-5 py-4", children: [
|
|
8279
|
-
/* @__PURE__ */ t(
|
|
8280
|
-
/* @__PURE__ */ t(
|
|
8281
|
-
/* @__PURE__ */ t(
|
|
8279
|
+
/* @__PURE__ */ t(R, { className: "size-26 shrink-0 rounded-full" }),
|
|
8280
|
+
/* @__PURE__ */ t(R, { className: "h-3 w-16" }),
|
|
8281
|
+
/* @__PURE__ */ t(R, { className: "h-8 w-10" })
|
|
8282
8282
|
] }, l)) }),
|
|
8283
8283
|
/* @__PURE__ */ t(m, { className: "min-w-0", children: /* @__PURE__ */ a("div", { className: "space-y-6", children: [
|
|
8284
8284
|
/* @__PURE__ */ a("div", { className: "grid min-w-0 grid-cols-1 gap-6 xl:grid-cols-2 xl:items-stretch", children: [
|
|
8285
8285
|
/* @__PURE__ */ a("div", { className: "min-w-0 space-y-4", children: [
|
|
8286
8286
|
/* @__PURE__ */ a("div", { className: "flex items-center gap-2", children: [
|
|
8287
|
-
/* @__PURE__ */ t(
|
|
8288
|
-
/* @__PURE__ */ t(
|
|
8287
|
+
/* @__PURE__ */ t(R, { className: "h-9 w-9 shrink-0 rounded-md" }),
|
|
8288
|
+
/* @__PURE__ */ t(R, { className: "h-7 w-[min(100%,14rem)]" })
|
|
8289
8289
|
] }),
|
|
8290
8290
|
/* @__PURE__ */ a("div", { className: "space-y-3", children: [
|
|
8291
|
-
/* @__PURE__ */ t(
|
|
8292
|
-
/* @__PURE__ */ t(
|
|
8293
|
-
/* @__PURE__ */ t(
|
|
8291
|
+
/* @__PURE__ */ t(R, { className: "h-3.5 w-full" }),
|
|
8292
|
+
/* @__PURE__ */ t(R, { className: "h-3.5 w-full" }),
|
|
8293
|
+
/* @__PURE__ */ t(R, { className: "h-3.5 w-[90%]" })
|
|
8294
8294
|
] })
|
|
8295
8295
|
] }),
|
|
8296
|
-
/* @__PURE__ */ t("div", { className: "flex min-w-0 items-center", children: /* @__PURE__ */ t(
|
|
8296
|
+
/* @__PURE__ */ t("div", { className: "flex min-w-0 items-center", children: /* @__PURE__ */ t(R, { className: "aspect-video w-full rounded-lg" }) })
|
|
8297
8297
|
] }),
|
|
8298
8298
|
/* @__PURE__ */ t("div", { className: "border-t border-[color:var(--mb-color-card-border)]" }),
|
|
8299
8299
|
/* @__PURE__ */ a("div", { className: "space-y-5", children: [
|
|
8300
|
-
/* @__PURE__ */ t(
|
|
8300
|
+
/* @__PURE__ */ t(R, { className: "h-7 w-32" }),
|
|
8301
8301
|
/* @__PURE__ */ t("div", { className: "space-y-0", children: hn.map((l) => /* @__PURE__ */ t(
|
|
8302
8302
|
"div",
|
|
8303
8303
|
{
|
|
8304
8304
|
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",
|
|
8305
|
-
children: Fn.map((p) => /* @__PURE__ */ t(
|
|
8305
|
+
children: Fn.map((p) => /* @__PURE__ */ t(R, { className: "h-10 w-full" }, p))
|
|
8306
8306
|
},
|
|
8307
8307
|
l
|
|
8308
8308
|
)) })
|
|
8309
8309
|
] }),
|
|
8310
8310
|
/* @__PURE__ */ t("div", { className: "border-t border-[color:var(--mb-color-card-border)]" }),
|
|
8311
8311
|
/* @__PURE__ */ a("div", { className: "space-y-5", children: [
|
|
8312
|
-
/* @__PURE__ */ t(
|
|
8313
|
-
/* @__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: fn.map((l) => /* @__PURE__ */ t("div", { className: "flex min-w-0 w-full flex-col items-center", children: /* @__PURE__ */ t(
|
|
8312
|
+
/* @__PURE__ */ t(R, { className: "h-7 w-[min(100%,14rem)]" }),
|
|
8313
|
+
/* @__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: fn.map((l) => /* @__PURE__ */ t("div", { className: "flex min-w-0 w-full flex-col items-center", children: /* @__PURE__ */ t(R, { className: "aspect-[4/5] w-full max-w-[11rem] rounded-lg sm:max-w-[13rem] md:aspect-auto md:h-[20rem] md:max-w-none" }) }, l)) })
|
|
8314
8314
|
] }),
|
|
8315
8315
|
/* @__PURE__ */ t("div", { className: "border-t border-[color:var(--mb-color-card-border)]" }),
|
|
8316
8316
|
/* @__PURE__ */ a("div", { className: "space-y-5", children: [
|
|
8317
|
-
/* @__PURE__ */ t(
|
|
8317
|
+
/* @__PURE__ */ t(R, { className: "h-7 w-[min(100%,18rem)]" }),
|
|
8318
8318
|
/* @__PURE__ */ t("div", { className: "grid grid-cols-1 items-start gap-4 sm:grid-cols-2 xl:grid-cols-3 xl:gap-6", children: gn.map((l) => /* @__PURE__ */ t(
|
|
8319
8319
|
_l,
|
|
8320
8320
|
{
|
|
@@ -8337,12 +8337,12 @@ function vn(A) {
|
|
|
8337
8337
|
}
|
|
8338
8338
|
function Zc({ content: A }) {
|
|
8339
8339
|
const [l, p] = y(null), S = Uq(), q = S == null ? void 0 : S.onPurchaseProduct, U = (S == null ? void 0 : S.purchaseButtonLabel) ?? "Purchase", V = B(
|
|
8340
|
-
(
|
|
8340
|
+
(e) => {
|
|
8341
8341
|
p(
|
|
8342
8342
|
Vq(
|
|
8343
|
-
vn(
|
|
8343
|
+
vn(e),
|
|
8344
8344
|
S == null ? void 0 : S.products,
|
|
8345
|
-
|
|
8345
|
+
e.triadNumbers
|
|
8346
8346
|
)
|
|
8347
8347
|
);
|
|
8348
8348
|
},
|
|
@@ -8352,13 +8352,13 @@ function Zc({ content: A }) {
|
|
|
8352
8352
|
const { pageHeader: r, practitionerNotes: n, cards: K } = A, k = K && K.length > 0, c = mA();
|
|
8353
8353
|
return /* @__PURE__ */ a("div", { className: "w-full min-w-0 space-y-6", children: [
|
|
8354
8354
|
/* @__PURE__ */ t(SA, { title: r.title, subtitle: r.subtitle }),
|
|
8355
|
-
k ? /* @__PURE__ */ t("div", { className: "grid grid-cols-1 gap-6 xl:grid-cols-2", children: K.map((
|
|
8355
|
+
k ? /* @__PURE__ */ t("div", { className: "grid grid-cols-1 gap-6 xl:grid-cols-2", children: K.map((e) => /* @__PURE__ */ t(
|
|
8356
8356
|
zV,
|
|
8357
8357
|
{
|
|
8358
|
-
...
|
|
8358
|
+
...e,
|
|
8359
8359
|
onProductClick: V
|
|
8360
8360
|
},
|
|
8361
|
-
c(`${
|
|
8361
|
+
c(`${e.title}-${e.imageSrc ?? ""}`, "supplement")
|
|
8362
8362
|
)) }) : null,
|
|
8363
8363
|
n ? /* @__PURE__ */ t(ZV, { ...n }) : null,
|
|
8364
8364
|
l ? /* @__PURE__ */ t(
|
|
@@ -8370,7 +8370,7 @@ function Zc({ content: A }) {
|
|
|
8370
8370
|
},
|
|
8371
8371
|
onClose: () => p(null),
|
|
8372
8372
|
purchaseButtonLabel: U,
|
|
8373
|
-
onPurchase: q ? (
|
|
8373
|
+
onPurchase: q ? (e) => q(rq(e)) : void 0
|
|
8374
8374
|
},
|
|
8375
8375
|
l.id ?? l.sku ?? l.name
|
|
8376
8376
|
) : null
|
|
@@ -8397,22 +8397,22 @@ function Mn({
|
|
|
8397
8397
|
),
|
|
8398
8398
|
/* @__PURE__ */ t("div", { className: "grid grid-cols-1 gap-6 xl:grid-cols-2", children: Dn.map((l) => /* @__PURE__ */ a(m, { className: "flex flex-col gap-4 overflow-hidden", children: [
|
|
8399
8399
|
/* @__PURE__ */ a("div", { className: "flex items-start justify-between gap-4", children: [
|
|
8400
|
-
/* @__PURE__ */ t(
|
|
8400
|
+
/* @__PURE__ */ t(R, { className: "h-7 w-1/2" }),
|
|
8401
8401
|
/* @__PURE__ */ a("div", { className: "flex shrink-0 gap-2", children: [
|
|
8402
|
-
/* @__PURE__ */ t(
|
|
8403
|
-
/* @__PURE__ */ t(
|
|
8404
|
-
/* @__PURE__ */ t(
|
|
8402
|
+
/* @__PURE__ */ t(R, { className: "size-8 rounded-full" }),
|
|
8403
|
+
/* @__PURE__ */ t(R, { className: "size-8 rounded-full" }),
|
|
8404
|
+
/* @__PURE__ */ t(R, { className: "size-8 rounded-full" })
|
|
8405
8405
|
] })
|
|
8406
8406
|
] }),
|
|
8407
8407
|
/* @__PURE__ */ a("div", { className: "flex flex-col gap-4 md:flex-row", children: [
|
|
8408
|
-
/* @__PURE__ */ t(
|
|
8408
|
+
/* @__PURE__ */ t(R, { className: "mx-auto aspect-square w-full max-w-60 shrink-0 rounded-lg md:mx-0 md:basis-60" }),
|
|
8409
8409
|
/* @__PURE__ */ t("div", { className: "min-w-0 flex-1", children: /* @__PURE__ */ t("div", { className: "overflow-hidden", children: wn.map((p) => /* @__PURE__ */ a(
|
|
8410
8410
|
"div",
|
|
8411
8411
|
{
|
|
8412
8412
|
className: "flex min-h-12 items-center justify-between gap-3 border-b border-[color:rgba(0,0,47,0.15)] px-3 last:border-b-0",
|
|
8413
8413
|
children: [
|
|
8414
8414
|
/* @__PURE__ */ t("span", { className: "text-sm text-[color:var(--mb-color-text)]", children: p }),
|
|
8415
|
-
/* @__PURE__ */ t(
|
|
8415
|
+
/* @__PURE__ */ t(R, { className: "h-5 w-24 shrink-0 rounded" })
|
|
8416
8416
|
]
|
|
8417
8417
|
},
|
|
8418
8418
|
p
|
|
@@ -8422,17 +8422,17 @@ function Mn({
|
|
|
8422
8422
|
/* @__PURE__ */ a(m, { className: "flex flex-col gap-2 overflow-hidden", children: [
|
|
8423
8423
|
/* @__PURE__ */ t("h2", { className: "text-xl font-bold text-[color:var(--mb-color-text)]", children: "Practitioner Notes" }),
|
|
8424
8424
|
/* @__PURE__ */ a("div", { className: "overflow-hidden", children: [
|
|
8425
|
-
/* @__PURE__ */ t(
|
|
8426
|
-
/* @__PURE__ */ t(
|
|
8427
|
-
/* @__PURE__ */ t(
|
|
8425
|
+
/* @__PURE__ */ t(R, { className: "my-3 h-3.5 w-full" }),
|
|
8426
|
+
/* @__PURE__ */ t(R, { className: "my-3 h-3.5 w-full" }),
|
|
8427
|
+
/* @__PURE__ */ t(R, { className: "my-3 h-3.5 w-[88%]" })
|
|
8428
8428
|
] })
|
|
8429
8429
|
] })
|
|
8430
8430
|
] });
|
|
8431
8431
|
}
|
|
8432
8432
|
function zc({ content: A }) {
|
|
8433
8433
|
const { pageHeader: l, patientGender: p, triadCards: S, organContent: q } = A, U = S ?? [], [V, r] = y(null), n = z(
|
|
8434
|
-
() => (c) => (
|
|
8435
|
-
|
|
8434
|
+
() => (c) => (e) => {
|
|
8435
|
+
e.organKey && q != null && q[e.organKey] && r({ triadCard: c, category: e });
|
|
8436
8436
|
},
|
|
8437
8437
|
[q]
|
|
8438
8438
|
), K = V ? Ap(V.category.title) : "", k = V == null ? void 0 : V.category.organKey;
|
|
@@ -8484,48 +8484,48 @@ const Yn = ["triad-1", "triad-2", "triad-3"], _n = ["category-1", "category-2",
|
|
|
8484
8484
|
function $n() {
|
|
8485
8485
|
return /* @__PURE__ */ a("div", { className: "grid min-h-16 w-full min-w-0 grid-cols-1 overflow-hidden rounded-lg border border-[color:var(--mb-color-card-border)] bg-[color:var(--mb-color-card-bg)] lg:grid-cols-[minmax(12rem,15rem)_5.25rem_repeat(3,minmax(4rem,5.5rem))_minmax(15rem,1fr)_1.5rem] lg:gap-x-3", children: [
|
|
8486
8486
|
/* @__PURE__ */ a("div", { className: "flex min-w-0 items-center justify-between gap-3 bg-[color:var(--mb-color-muted-section-bg)] px-3 py-3 lg:py-0", children: [
|
|
8487
|
-
/* @__PURE__ */ t(
|
|
8488
|
-
/* @__PURE__ */ t(
|
|
8487
|
+
/* @__PURE__ */ t(R, { className: "h-4 w-32 max-w-full" }),
|
|
8488
|
+
/* @__PURE__ */ t(R, { className: "size-4 shrink-0 rounded-full" })
|
|
8489
8489
|
] }),
|
|
8490
8490
|
/* @__PURE__ */ t("div", { className: "grid min-w-0 grid-cols-3 gap-2 px-3 py-3 lg:hidden", children: ["symptom", "lab", "total"].map((A) => /* @__PURE__ */ a("div", { className: "flex min-w-0 flex-col items-center gap-1", children: [
|
|
8491
|
-
/* @__PURE__ */ t(
|
|
8492
|
-
/* @__PURE__ */ t(
|
|
8493
|
-
/* @__PURE__ */ t(
|
|
8491
|
+
/* @__PURE__ */ t(R, { className: "h-3 w-12" }),
|
|
8492
|
+
/* @__PURE__ */ t(R, { className: "h-6 w-12 rounded" }),
|
|
8493
|
+
/* @__PURE__ */ t(R, { className: "h-6 w-12 rounded" })
|
|
8494
8494
|
] }, A)) }),
|
|
8495
8495
|
/* @__PURE__ */ a("div", { className: "hidden min-w-0 lg:contents", children: [
|
|
8496
8496
|
/* @__PURE__ */ a("div", { className: "flex flex-col justify-center gap-2 pl-2", children: [
|
|
8497
|
-
/* @__PURE__ */ t(
|
|
8498
|
-
/* @__PURE__ */ t(
|
|
8497
|
+
/* @__PURE__ */ t(R, { className: "h-3 w-12" }),
|
|
8498
|
+
/* @__PURE__ */ t(R, { className: "h-3 w-14" })
|
|
8499
8499
|
] }),
|
|
8500
8500
|
["symptom", "lab", "total"].map((A) => /* @__PURE__ */ a("div", { className: "flex flex-col items-center justify-center gap-1.5", children: [
|
|
8501
|
-
/* @__PURE__ */ t(
|
|
8502
|
-
/* @__PURE__ */ t(
|
|
8501
|
+
/* @__PURE__ */ t(R, { className: "h-6 w-12 rounded" }),
|
|
8502
|
+
/* @__PURE__ */ t(R, { className: "h-6 w-12 rounded" })
|
|
8503
8503
|
] }, A))
|
|
8504
8504
|
] }),
|
|
8505
|
-
/* @__PURE__ */ t("div", { className: "min-w-0 px-3 pb-3 lg:flex lg:items-center lg:p-0", children: /* @__PURE__ */ t(
|
|
8506
|
-
/* @__PURE__ */ t("div", { className: "hidden items-center justify-center lg:flex", children: /* @__PURE__ */ t(
|
|
8505
|
+
/* @__PURE__ */ t("div", { className: "min-w-0 px-3 pb-3 lg:flex lg:items-center lg:p-0", children: /* @__PURE__ */ t(R, { className: "h-6 w-full rounded-full" }) }),
|
|
8506
|
+
/* @__PURE__ */ t("div", { className: "hidden items-center justify-center lg:flex", children: /* @__PURE__ */ t(R, { className: "size-4 rounded" }) })
|
|
8507
8507
|
] });
|
|
8508
8508
|
}
|
|
8509
8509
|
function AK({ index: A }) {
|
|
8510
8510
|
return /* @__PURE__ */ a(m, { className: "grid min-w-0 gap-6 !p-6 lg:grid-cols-[8.5rem_minmax(0,1fr)] lg:items-center", children: [
|
|
8511
8511
|
/* @__PURE__ */ a("div", { className: "flex min-w-0 items-center gap-4 lg:flex-col lg:justify-center lg:gap-2", children: [
|
|
8512
|
-
/* @__PURE__ */ t(
|
|
8512
|
+
/* @__PURE__ */ t(R, { className: "size-20 shrink-0 rounded-lg lg:size-30" }),
|
|
8513
8513
|
/* @__PURE__ */ a("div", { className: "min-w-0 flex-1 text-left lg:flex-none lg:text-center", children: [
|
|
8514
|
-
/* @__PURE__ */ t(
|
|
8515
|
-
/* @__PURE__ */ t(
|
|
8514
|
+
/* @__PURE__ */ t(R, { className: "h-4 w-28 max-w-full" }),
|
|
8515
|
+
/* @__PURE__ */ t(R, { className: "mt-2 h-10 w-20 rounded-md" })
|
|
8516
8516
|
] })
|
|
8517
8517
|
] }),
|
|
8518
8518
|
/* @__PURE__ */ a("div", { className: "min-w-0 space-y-1.5", children: [
|
|
8519
8519
|
/* @__PURE__ */ a("div", { className: "hidden min-w-0 grid-cols-[minmax(12rem,15rem)_5.25rem_repeat(3,minmax(4rem,5.5rem))_minmax(15rem,1fr)_1.5rem] items-end gap-x-3 lg:grid", children: [
|
|
8520
8520
|
/* @__PURE__ */ t("span", { "aria-hidden": !0 }),
|
|
8521
8521
|
/* @__PURE__ */ t("span", { "aria-hidden": !0 }),
|
|
8522
|
-
/* @__PURE__ */ t(
|
|
8523
|
-
/* @__PURE__ */ t(
|
|
8524
|
-
/* @__PURE__ */ t(
|
|
8522
|
+
/* @__PURE__ */ t(R, { className: "mx-auto h-3 w-20" }),
|
|
8523
|
+
/* @__PURE__ */ t(R, { className: "mx-auto h-3 w-16" }),
|
|
8524
|
+
/* @__PURE__ */ t(R, { className: "mx-auto h-3 w-12" }),
|
|
8525
8525
|
/* @__PURE__ */ a("div", { className: "grid grid-cols-3 gap-3", children: [
|
|
8526
|
-
/* @__PURE__ */ t(
|
|
8527
|
-
/* @__PURE__ */ t(
|
|
8528
|
-
/* @__PURE__ */ t(
|
|
8526
|
+
/* @__PURE__ */ t(R, { className: "h-3 w-full" }),
|
|
8527
|
+
/* @__PURE__ */ t(R, { className: "h-3 w-full" }),
|
|
8528
|
+
/* @__PURE__ */ t(R, { className: "h-3 w-full" })
|
|
8529
8529
|
] }),
|
|
8530
8530
|
/* @__PURE__ */ t("span", { "aria-hidden": !0 })
|
|
8531
8531
|
] }),
|
|
@@ -8543,8 +8543,8 @@ function tK({
|
|
|
8543
8543
|
/* @__PURE__ */ t("p", { className: "m-0 mt-2 text-sm leading-normal text-[color:var(--mb-color-text-muted)]", children: A.subtitle })
|
|
8544
8544
|
] }),
|
|
8545
8545
|
/* @__PURE__ */ a("div", { className: "flex shrink-0 flex-wrap gap-2", children: [
|
|
8546
|
-
/* @__PURE__ */ t(
|
|
8547
|
-
/* @__PURE__ */ t(
|
|
8546
|
+
/* @__PURE__ */ t(R, { className: "h-10 w-44 rounded-md" }),
|
|
8547
|
+
/* @__PURE__ */ t(R, { className: "h-10 w-44 rounded-md" })
|
|
8548
8548
|
] })
|
|
8549
8549
|
] }),
|
|
8550
8550
|
/* @__PURE__ */ t("div", { className: "space-y-6", children: Yn.map((l, p) => /* @__PURE__ */ t(AK, { index: p }, l)) })
|
|
@@ -8617,36 +8617,36 @@ const pK = [
|
|
|
8617
8617
|
function SK() {
|
|
8618
8618
|
return /* @__PURE__ */ a("div", { className: "grid min-h-16 min-w-0 grid-cols-1 overflow-hidden rounded-lg border border-[color:var(--mb-color-card-border)] bg-[color:var(--mb-color-card-bg)] lg:grid-cols-[minmax(12rem,18rem)_5.25rem_minmax(5.5rem,7rem)_minmax(18rem,1fr)_1.5rem] lg:gap-x-3", children: [
|
|
8619
8619
|
/* @__PURE__ */ a("div", { className: "mb-risk-tint-moderate flex min-w-0 items-center justify-between gap-3 px-3 py-3 lg:py-0", children: [
|
|
8620
|
-
/* @__PURE__ */ t(
|
|
8621
|
-
/* @__PURE__ */ t(
|
|
8620
|
+
/* @__PURE__ */ t(R, { className: "h-4 w-[min(100%,12rem)]" }),
|
|
8621
|
+
/* @__PURE__ */ t(R, { className: "size-4 shrink-0 rounded-full" })
|
|
8622
8622
|
] }),
|
|
8623
8623
|
/* @__PURE__ */ a("div", { className: "grid min-w-0 gap-y-1 px-3 py-3 lg:hidden", children: [
|
|
8624
8624
|
/* @__PURE__ */ a("div", { className: "grid grid-cols-[5.25rem_minmax(4rem,1fr)] items-center gap-x-3", children: [
|
|
8625
|
-
/* @__PURE__ */ t(
|
|
8626
|
-
/* @__PURE__ */ t(
|
|
8625
|
+
/* @__PURE__ */ t(R, { className: "h-3 w-14 justify-self-end" }),
|
|
8626
|
+
/* @__PURE__ */ t(R, { className: "h-6 w-12 justify-self-center rounded" })
|
|
8627
8627
|
] }),
|
|
8628
8628
|
/* @__PURE__ */ a("div", { className: "grid grid-cols-[5.25rem_minmax(4rem,1fr)] items-center gap-x-3", children: [
|
|
8629
|
-
/* @__PURE__ */ t(
|
|
8630
|
-
/* @__PURE__ */ t(
|
|
8629
|
+
/* @__PURE__ */ t(R, { className: "h-3 w-16 justify-self-end" }),
|
|
8630
|
+
/* @__PURE__ */ t(R, { className: "h-6 w-12 justify-self-center rounded" })
|
|
8631
8631
|
] })
|
|
8632
8632
|
] }),
|
|
8633
8633
|
/* @__PURE__ */ a("div", { className: "hidden flex-col justify-center gap-2 pl-2 lg:flex", children: [
|
|
8634
|
-
/* @__PURE__ */ t(
|
|
8635
|
-
/* @__PURE__ */ t(
|
|
8634
|
+
/* @__PURE__ */ t(R, { className: "h-3 w-14" }),
|
|
8635
|
+
/* @__PURE__ */ t(R, { className: "h-3 w-16" })
|
|
8636
8636
|
] }),
|
|
8637
8637
|
/* @__PURE__ */ a("div", { className: "hidden flex-col items-center justify-center gap-1.5 lg:flex", children: [
|
|
8638
|
-
/* @__PURE__ */ t(
|
|
8639
|
-
/* @__PURE__ */ t(
|
|
8638
|
+
/* @__PURE__ */ t(R, { className: "h-6 w-12 rounded" }),
|
|
8639
|
+
/* @__PURE__ */ t(R, { className: "h-6 w-12 rounded" })
|
|
8640
8640
|
] }),
|
|
8641
8641
|
/* @__PURE__ */ t("div", { className: "min-w-0 px-3 pb-3 lg:flex lg:items-center lg:p-0", children: /* @__PURE__ */ a("div", { className: "w-full min-w-0", children: [
|
|
8642
|
-
/* @__PURE__ */ t(
|
|
8642
|
+
/* @__PURE__ */ t(R, { className: "h-6 w-full rounded-full" }),
|
|
8643
8643
|
/* @__PURE__ */ a("div", { className: "mt-1 grid grid-cols-3 gap-x-2", children: [
|
|
8644
|
-
/* @__PURE__ */ t(
|
|
8645
|
-
/* @__PURE__ */ t(
|
|
8646
|
-
/* @__PURE__ */ t(
|
|
8644
|
+
/* @__PURE__ */ t(R, { className: "h-2.5 w-full" }),
|
|
8645
|
+
/* @__PURE__ */ t(R, { className: "h-2.5 w-full" }),
|
|
8646
|
+
/* @__PURE__ */ t(R, { className: "h-2.5 w-full" })
|
|
8647
8647
|
] })
|
|
8648
8648
|
] }) }),
|
|
8649
|
-
/* @__PURE__ */ t("div", { className: "hidden items-center justify-center lg:flex", children: /* @__PURE__ */ t(
|
|
8649
|
+
/* @__PURE__ */ t("div", { className: "hidden items-center justify-center lg:flex", children: /* @__PURE__ */ t(R, { className: "size-4" }) })
|
|
8650
8650
|
] });
|
|
8651
8651
|
}
|
|
8652
8652
|
function qK({
|
|
@@ -8663,31 +8663,31 @@ function qK({
|
|
|
8663
8663
|
),
|
|
8664
8664
|
/* @__PURE__ */ a(m, { className: "grid min-w-0 gap-4 md:grid-cols-[minmax(12rem,1fr)_minmax(18rem,1.25fr)] md:items-center", children: [
|
|
8665
8665
|
/* @__PURE__ */ a("div", { className: "flex min-w-0 items-center gap-2", children: [
|
|
8666
|
-
/* @__PURE__ */ t(
|
|
8667
|
-
/* @__PURE__ */ t(
|
|
8666
|
+
/* @__PURE__ */ t(R, { className: "h-6 w-[min(100%,22rem)]" }),
|
|
8667
|
+
/* @__PURE__ */ t(R, { className: "size-4 shrink-0 rounded-full" })
|
|
8668
8668
|
] }),
|
|
8669
8669
|
/* @__PURE__ */ a("div", { className: "min-w-0", children: [
|
|
8670
|
-
/* @__PURE__ */ t(
|
|
8670
|
+
/* @__PURE__ */ t(R, { className: "h-8 w-full rounded-full" }),
|
|
8671
8671
|
/* @__PURE__ */ a("div", { className: "mt-1 grid grid-cols-3 gap-x-2", children: [
|
|
8672
|
-
/* @__PURE__ */ t(
|
|
8673
|
-
/* @__PURE__ */ t(
|
|
8674
|
-
/* @__PURE__ */ t(
|
|
8672
|
+
/* @__PURE__ */ t(R, { className: "h-3 w-full" }),
|
|
8673
|
+
/* @__PURE__ */ t(R, { className: "h-3 w-full" }),
|
|
8674
|
+
/* @__PURE__ */ t(R, { className: "h-3 w-full" })
|
|
8675
8675
|
] })
|
|
8676
8676
|
] })
|
|
8677
8677
|
] }),
|
|
8678
8678
|
/* @__PURE__ */ a(m, { className: "min-w-0", children: [
|
|
8679
8679
|
/* @__PURE__ */ a("div", { className: "mb-5 flex min-w-0 items-center gap-2", children: [
|
|
8680
|
-
/* @__PURE__ */ t(
|
|
8681
|
-
/* @__PURE__ */ t(
|
|
8680
|
+
/* @__PURE__ */ t(R, { className: "h-6 w-48" }),
|
|
8681
|
+
/* @__PURE__ */ t(R, { className: "size-4 shrink-0 rounded-full" })
|
|
8682
8682
|
] }),
|
|
8683
8683
|
/* @__PURE__ */ a("div", { className: "hidden min-w-0 grid-cols-[minmax(12rem,18rem)_5.25rem_minmax(5.5rem,7rem)_minmax(18rem,1fr)_1.5rem] items-end gap-x-3 lg:grid", children: [
|
|
8684
8684
|
/* @__PURE__ */ t("span", { "aria-hidden": !0 }),
|
|
8685
8685
|
/* @__PURE__ */ t("span", { "aria-hidden": !0 }),
|
|
8686
|
-
/* @__PURE__ */ t(
|
|
8686
|
+
/* @__PURE__ */ t(R, { className: "h-3 w-full" }),
|
|
8687
8687
|
/* @__PURE__ */ a("div", { className: "grid grid-cols-3 gap-x-3", children: [
|
|
8688
|
-
/* @__PURE__ */ t(
|
|
8689
|
-
/* @__PURE__ */ t(
|
|
8690
|
-
/* @__PURE__ */ t(
|
|
8688
|
+
/* @__PURE__ */ t(R, { className: "h-3 w-full" }),
|
|
8689
|
+
/* @__PURE__ */ t(R, { className: "h-3 w-full" }),
|
|
8690
|
+
/* @__PURE__ */ t(R, { className: "h-3 w-full" })
|
|
8691
8691
|
] }),
|
|
8692
8692
|
/* @__PURE__ */ t("span", { "aria-hidden": !0 })
|
|
8693
8693
|
] }),
|
|
@@ -8999,30 +8999,30 @@ async function WA(A, l) {
|
|
|
8999
8999
|
credentials: "include",
|
|
9000
9000
|
signal: n
|
|
9001
9001
|
});
|
|
9002
|
-
} catch (
|
|
9003
|
-
throw dS(
|
|
9004
|
-
`Network error fetching page "${A}": ${
|
|
9005
|
-
{ cause:
|
|
9002
|
+
} catch (W) {
|
|
9003
|
+
throw dS(W) ? W : new Error(
|
|
9004
|
+
`Network error fetching page "${A}": ${W instanceof Error ? W.message : String(W)}`,
|
|
9005
|
+
{ cause: W }
|
|
9006
9006
|
);
|
|
9007
9007
|
}
|
|
9008
|
-
let
|
|
9008
|
+
let e;
|
|
9009
9009
|
try {
|
|
9010
|
-
|
|
9011
|
-
} catch (
|
|
9012
|
-
throw dS(
|
|
9013
|
-
`Failed to read response body for page "${A}" (HTTP ${c.status}): ${
|
|
9014
|
-
{ cause:
|
|
9010
|
+
e = await c.text();
|
|
9011
|
+
} catch (W) {
|
|
9012
|
+
throw dS(W) ? W : new Error(
|
|
9013
|
+
`Failed to read response body for page "${A}" (HTTP ${c.status}): ${W instanceof Error ? W.message : String(W)}`,
|
|
9014
|
+
{ cause: W }
|
|
9015
9015
|
);
|
|
9016
9016
|
}
|
|
9017
9017
|
let u;
|
|
9018
9018
|
try {
|
|
9019
|
-
u =
|
|
9019
|
+
u = e ? JSON.parse(e) : null;
|
|
9020
9020
|
} catch {
|
|
9021
|
-
u =
|
|
9021
|
+
u = e;
|
|
9022
9022
|
}
|
|
9023
9023
|
if (!c.ok) {
|
|
9024
|
-
const
|
|
9025
|
-
throw
|
|
9024
|
+
const j = (typeof u == "object" && u !== null && "error" in u && typeof u.error == "string" ? u.error : null) ?? `HTTP ${c.status}`, d = new Error(j);
|
|
9025
|
+
throw d.status = c.status, d;
|
|
9026
9026
|
}
|
|
9027
9027
|
if (u === null || typeof u != "object" || Array.isArray(u))
|
|
9028
9028
|
throw new Error(
|
|
@@ -9247,8 +9247,8 @@ function xK({
|
|
|
9247
9247
|
onPointerEnter: K,
|
|
9248
9248
|
onFocus: k
|
|
9249
9249
|
}) {
|
|
9250
|
-
const c = hA(),
|
|
9251
|
-
|
|
9250
|
+
const c = hA(), e = !!(V && n), u = /* @__PURE__ */ a(
|
|
9251
|
+
f,
|
|
9252
9252
|
{
|
|
9253
9253
|
variant: "sideMenu",
|
|
9254
9254
|
type: U,
|
|
@@ -9257,9 +9257,9 @@ function xK({
|
|
|
9257
9257
|
onPointerEnter: K,
|
|
9258
9258
|
onFocus: k,
|
|
9259
9259
|
"aria-current": p ? "page" : void 0,
|
|
9260
|
-
"aria-describedby":
|
|
9260
|
+
"aria-describedby": e ? c : void 0,
|
|
9261
9261
|
"aria-label": r && n ? `${A}. ${n}` : A,
|
|
9262
|
-
title:
|
|
9262
|
+
title: e ? void 0 : A,
|
|
9263
9263
|
className: [
|
|
9264
9264
|
V ? "text-[color:var(--mb-color-text-muted)]" : p ? "text-[color:var(--mb-color-side-menu-item-text-active)]" : "text-[color:var(--mb-color-side-menu-item-text)]",
|
|
9265
9265
|
V ? "bg-transparent hover:bg-transparent" : p ? "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)]",
|
|
@@ -9286,7 +9286,7 @@ function xK({
|
|
|
9286
9286
|
]
|
|
9287
9287
|
}
|
|
9288
9288
|
);
|
|
9289
|
-
return
|
|
9289
|
+
return e ? /* @__PURE__ */ a("span", { className: "group relative block outline-none", children: [
|
|
9290
9290
|
u,
|
|
9291
9291
|
/* @__PURE__ */ t(
|
|
9292
9292
|
"span",
|
|
@@ -9442,32 +9442,32 @@ function FK({
|
|
|
9442
9442
|
onPreviousReportChange: K,
|
|
9443
9443
|
showReportSelector: k = !0,
|
|
9444
9444
|
className: c = "",
|
|
9445
|
-
navClassName:
|
|
9445
|
+
navClassName: e = "",
|
|
9446
9446
|
items: u = ut,
|
|
9447
|
-
activeItemId:
|
|
9448
|
-
defaultActiveItemId:
|
|
9449
|
-
onItemClick:
|
|
9450
|
-
onNavItemPrefetch:
|
|
9447
|
+
activeItemId: W,
|
|
9448
|
+
defaultActiveItemId: j = "dashboard",
|
|
9449
|
+
onItemClick: d,
|
|
9450
|
+
onNavItemPrefetch: o
|
|
9451
9451
|
}) {
|
|
9452
|
-
const
|
|
9452
|
+
const b = W !== void 0, [J, i] = y(j), I = W ?? J, O = B(
|
|
9453
9453
|
(C) => {
|
|
9454
|
-
|
|
9454
|
+
d == null || d(C), b || i(C);
|
|
9455
9455
|
},
|
|
9456
|
-
[
|
|
9457
|
-
),
|
|
9456
|
+
[b, d]
|
|
9457
|
+
), E = !!l, X = A != null && (typeof A != "string" || A.trim().length > 0), s = E || X, P = S == null ? void 0 : S.trim(), Q = U ?? q ?? [], G = !!k && !!n && !!K && !!(V != null && V.trim()) && ((q == null ? void 0 : q.length) ?? 0) > 1, Z = !!k && !G && !!P;
|
|
9458
9458
|
return /* @__PURE__ */ a(
|
|
9459
9459
|
"div",
|
|
9460
9460
|
{
|
|
9461
9461
|
className: `mb-root flex h-full min-h-0 flex-col p-2 lg:p-[var(--mb-side-menu-inset,1.5rem)] ${c}`.trim(),
|
|
9462
9462
|
children: [
|
|
9463
|
-
|
|
9464
|
-
|
|
9463
|
+
s ? /* @__PURE__ */ a("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: [
|
|
9464
|
+
E ? /* @__PURE__ */ t("div", { className: "flex w-full shrink-0 justify-center lg:w-auto lg:justify-start", children: l }) : null,
|
|
9465
9465
|
X ? /* @__PURE__ */ t(
|
|
9466
9466
|
"div",
|
|
9467
9467
|
{
|
|
9468
9468
|
className: [
|
|
9469
9469
|
"min-w-0 flex-1 text-sm font-normal tracking-normal text-[color:var(--mb-color-text)]",
|
|
9470
|
-
|
|
9470
|
+
E ? "text-center lg:pr-2 lg:text-left" : "hidden lg:block"
|
|
9471
9471
|
].join(" "),
|
|
9472
9472
|
children: A
|
|
9473
9473
|
}
|
|
@@ -9476,7 +9476,7 @@ function FK({
|
|
|
9476
9476
|
/* @__PURE__ */ a(
|
|
9477
9477
|
"nav",
|
|
9478
9478
|
{
|
|
9479
|
-
className: `mt-2 flex min-h-0 flex-1 flex-col items-stretch gap-1 overflow-y-auto overflow-x-hidden lg:mt-4 ${
|
|
9479
|
+
className: `mt-2 flex min-h-0 flex-1 flex-col items-stretch gap-1 overflow-y-auto overflow-x-hidden lg:mt-4 ${e}`.trim(),
|
|
9480
9480
|
"aria-label": "Main",
|
|
9481
9481
|
children: [
|
|
9482
9482
|
u.map((C) => {
|
|
@@ -9486,18 +9486,18 @@ function FK({
|
|
|
9486
9486
|
{
|
|
9487
9487
|
label: C.label,
|
|
9488
9488
|
icon: C.icon,
|
|
9489
|
-
isActive: C.id ===
|
|
9489
|
+
isActive: C.id === I,
|
|
9490
9490
|
disabled: L,
|
|
9491
9491
|
locked: C.locked,
|
|
9492
9492
|
disabledTooltip: C.disabledTooltip,
|
|
9493
|
-
onClick: L ? void 0 : () =>
|
|
9494
|
-
onPointerEnter: L ? void 0 : () =>
|
|
9495
|
-
onFocus: L ? void 0 : () =>
|
|
9493
|
+
onClick: L ? void 0 : () => O(C.id),
|
|
9494
|
+
onPointerEnter: L ? void 0 : () => o == null ? void 0 : o(C.id),
|
|
9495
|
+
onFocus: L ? void 0 : () => o == null ? void 0 : o(C.id)
|
|
9496
9496
|
},
|
|
9497
9497
|
C.id
|
|
9498
9498
|
);
|
|
9499
9499
|
}),
|
|
9500
|
-
|
|
9500
|
+
G && V && n && K && q ? /* @__PURE__ */ t(
|
|
9501
9501
|
BK,
|
|
9502
9502
|
{
|
|
9503
9503
|
options: q,
|
|
@@ -9586,19 +9586,19 @@ function vK({
|
|
|
9586
9586
|
S
|
|
9587
9587
|
].filter(Boolean).join(" "),
|
|
9588
9588
|
children: /* @__PURE__ */ t("div", { className: "flex min-w-max items-stretch gap-[2rem]", children: A.map((c) => {
|
|
9589
|
-
const
|
|
9589
|
+
const e = c.disabled === !0, u = c.id === K;
|
|
9590
9590
|
return /* @__PURE__ */ a(
|
|
9591
9591
|
"button",
|
|
9592
9592
|
{
|
|
9593
9593
|
type: "button",
|
|
9594
|
-
disabled:
|
|
9594
|
+
disabled: e,
|
|
9595
9595
|
"aria-current": u ? "page" : void 0,
|
|
9596
9596
|
"aria-label": c.locked && c.disabledTooltip ? `${c.label}. ${c.disabledTooltip}` : c.label,
|
|
9597
|
-
title:
|
|
9598
|
-
className: GK({ isActive: u, disabled:
|
|
9599
|
-
onClick:
|
|
9600
|
-
onPointerEnter:
|
|
9601
|
-
onFocus:
|
|
9597
|
+
title: e ? c.disabledTooltip : c.label,
|
|
9598
|
+
className: GK({ isActive: u, disabled: e }),
|
|
9599
|
+
onClick: e ? void 0 : () => k(c.id),
|
|
9600
|
+
onPointerEnter: e ? void 0 : () => U == null ? void 0 : U(c.id),
|
|
9601
|
+
onFocus: e ? void 0 : () => U == null ? void 0 : U(c.id),
|
|
9602
9602
|
children: [
|
|
9603
9603
|
c.locked ? /* @__PURE__ */ a("span", { className: "flex items-center gap-[0.5rem] opacity-55 blur-[1px]", children: [
|
|
9604
9604
|
/* @__PURE__ */ t("span", { className: "flex shrink-0 text-[color:var(--mb-color-text-muted)] [&_svg]:block", children: c.icon }),
|
|
@@ -9609,7 +9609,7 @@ function vK({
|
|
|
9609
9609
|
{
|
|
9610
9610
|
className: [
|
|
9611
9611
|
"flex shrink-0 [&_svg]:block",
|
|
9612
|
-
|
|
9612
|
+
e ? "text-[color:var(--mb-color-text-muted)]" : u ? "text-[color:var(--mb-color-side-menu-icon-active)]" : "text-[color:var(--mb-color-side-menu-icon)]"
|
|
9613
9613
|
].join(" "),
|
|
9614
9614
|
children: c.icon
|
|
9615
9615
|
}
|
|
@@ -9666,19 +9666,19 @@ async function MK(A) {
|
|
|
9666
9666
|
);
|
|
9667
9667
|
}
|
|
9668
9668
|
const c = await k.text();
|
|
9669
|
-
let
|
|
9669
|
+
let e;
|
|
9670
9670
|
try {
|
|
9671
|
-
|
|
9671
|
+
e = c ? JSON.parse(c) : null;
|
|
9672
9672
|
} catch {
|
|
9673
|
-
|
|
9673
|
+
e = c;
|
|
9674
9674
|
}
|
|
9675
9675
|
if (!k.ok) {
|
|
9676
|
-
const
|
|
9677
|
-
throw
|
|
9676
|
+
const W = (typeof e == "object" && e !== null && "error" in e && typeof e.error == "string" ? e.error : null) ?? `HTTP ${k.status}`, j = new Error(W);
|
|
9677
|
+
throw j.status = k.status, j;
|
|
9678
9678
|
}
|
|
9679
|
-
if (
|
|
9679
|
+
if (e === null || typeof e != "object" || Array.isArray(e) || !("report" in e) || !("pages" in e))
|
|
9680
9680
|
throw new Error("Unexpected response shape for /report/full: missing 'report' or 'pages'");
|
|
9681
|
-
return
|
|
9681
|
+
return e;
|
|
9682
9682
|
}
|
|
9683
9683
|
function Zt(A) {
|
|
9684
9684
|
return (A ?? "").trim().toLowerCase().replace(/[^a-z0-9]+/g, "_").replace(/^_+|_+$/g, "");
|
|
@@ -9788,7 +9788,7 @@ function Iq(A, l) {
|
|
|
9788
9788
|
const Se = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
9789
9789
|
__proto__: null,
|
|
9790
9790
|
mapAlertLabSummaryDtoToTabContent: Iq
|
|
9791
|
-
}, Symbol.toStringTag, { value: "Module" })), { risk: il } =
|
|
9791
|
+
}, Symbol.toStringTag, { value: "Module" })), { risk: il } = H, qe = 35, ae = 65, Ue = 694, Ve = 1041, re = "Use this dashboard as your metabolic command center. Start with your Overall Metabolic Score for the big picture, then review Total Predictive Trends, Wellness Indicators, Lab Results, Lab Analysis, and Symptom Analysis to understand what is driving your results. Use the supplement schedule to review next steps with your care team.";
|
|
9792
9792
|
function VA(A) {
|
|
9793
9793
|
return A != null ? String(Math.round(A)) : "—";
|
|
9794
9794
|
}
|
|
@@ -10372,60 +10372,60 @@ function Ge(A) {
|
|
|
10372
10372
|
return l;
|
|
10373
10373
|
}
|
|
10374
10374
|
function mq(A, l, p, S, q, U) {
|
|
10375
|
-
var
|
|
10376
|
-
const V = A.triad_number ?? null, r = A.triad_name ?? null, n = (l == null ? void 0 : l.includes("lab-results")) ?? !0, K = [...(p == null ? void 0 : p.triads) ?? []].sort((
|
|
10377
|
-
const
|
|
10375
|
+
var j;
|
|
10376
|
+
const V = A.triad_number ?? null, r = A.triad_name ?? null, n = (l == null ? void 0 : l.includes("lab-results")) ?? !0, K = [...(p == null ? void 0 : p.triads) ?? []].sort((d, o) => d.number - o.number), k = n ? K.map((d) => Kp(d, S)) : [], e = (K.length ? K.map((d) => ({ number: d.number, name: d.name })) : V != null ? [{ number: V, name: r ?? "" }] : []).map((d) => {
|
|
10377
|
+
const o = q == null ? void 0 : q.find((b) => b.number === d.number);
|
|
10378
10378
|
return {
|
|
10379
|
-
triadNumber:
|
|
10380
|
-
heading: `Triad ${
|
|
10379
|
+
triadNumber: d.number,
|
|
10380
|
+
heading: `Triad ${d.number}${d.name ? `: ${d.name}` : ""}`,
|
|
10381
10381
|
videoAriaLabel: "Play introduction video",
|
|
10382
|
-
paragraphs: (
|
|
10382
|
+
paragraphs: (o == null ? void 0 : o.explainer_paragraphs) ?? tq(d.number)
|
|
10383
10383
|
};
|
|
10384
|
-
}), u = (V == null ?
|
|
10384
|
+
}), u = (V == null ? e[0] : e.find((d) => d.triadNumber === V)) ?? e[0], W = Ge(U);
|
|
10385
10385
|
return {
|
|
10386
10386
|
pageHeader: {
|
|
10387
10387
|
title: "Suggested Products",
|
|
10388
10388
|
subtitle: Wq
|
|
10389
10389
|
},
|
|
10390
|
-
patientGender: ((
|
|
10390
|
+
patientGender: ((j = p == null ? void 0 : p.patient) == null ? void 0 : j.gender) ?? null,
|
|
10391
10391
|
organContent: S,
|
|
10392
10392
|
intro: u,
|
|
10393
|
-
intros:
|
|
10393
|
+
intros: e,
|
|
10394
10394
|
labTriadCards: k,
|
|
10395
10395
|
labSectionTitle: "My Current Lab Values",
|
|
10396
|
-
labMetrics: n ? A.organ_metrics.map((
|
|
10397
|
-
title:
|
|
10398
|
-
infoAriaLabel: `${
|
|
10399
|
-
normalRange: Al(
|
|
10400
|
-
currentRange: String(
|
|
10401
|
-
previousRange:
|
|
10402
|
-
indicatorPercent: Math.round(
|
|
10403
|
-
status: Fe(
|
|
10396
|
+
labMetrics: n ? A.organ_metrics.map((d) => ({
|
|
10397
|
+
title: d.name.toUpperCase(),
|
|
10398
|
+
infoAriaLabel: `${d.name} lab summary information`,
|
|
10399
|
+
normalRange: Al(d.normal_range, ""),
|
|
10400
|
+
currentRange: String(d.score),
|
|
10401
|
+
previousRange: d.previous_score != null ? String(d.previous_score) : void 0,
|
|
10402
|
+
indicatorPercent: Math.round(d.indicator_percent),
|
|
10403
|
+
status: Fe(d.indicator_percent)
|
|
10404
10404
|
})) : [],
|
|
10405
10405
|
symptomsSectionTitle: "Symptoms",
|
|
10406
10406
|
symptoms: [...A.symptoms],
|
|
10407
10407
|
productsSectionTitle: "Suggested Products",
|
|
10408
|
-
products: A.products.map((
|
|
10409
|
-
const
|
|
10408
|
+
products: A.products.map((d) => {
|
|
10409
|
+
const o = sq(d.triad_numbers) ?? W.get(Hq(d.name));
|
|
10410
10410
|
return {
|
|
10411
|
-
id:
|
|
10412
|
-
sku:
|
|
10413
|
-
imageSrc:
|
|
10414
|
-
imageAlt:
|
|
10415
|
-
name:
|
|
10416
|
-
tagline:
|
|
10417
|
-
category:
|
|
10418
|
-
categories:
|
|
10419
|
-
badge:
|
|
10420
|
-
description:
|
|
10421
|
-
price:
|
|
10422
|
-
rating:
|
|
10423
|
-
reviewCount:
|
|
10424
|
-
reviewsLabel:
|
|
10425
|
-
stockLabel:
|
|
10426
|
-
triadNumbers:
|
|
10427
|
-
galleryImages: fe(
|
|
10428
|
-
purchaseUrl:
|
|
10411
|
+
id: d.id ?? void 0,
|
|
10412
|
+
sku: d.sku ?? void 0,
|
|
10413
|
+
imageSrc: d.image_url ?? void 0,
|
|
10414
|
+
imageAlt: d.name,
|
|
10415
|
+
name: d.name,
|
|
10416
|
+
tagline: d.tagline ?? void 0,
|
|
10417
|
+
category: d.category ?? void 0,
|
|
10418
|
+
categories: d.categories ? [...d.categories] : void 0,
|
|
10419
|
+
badge: d.badge ?? void 0,
|
|
10420
|
+
description: d.description ?? void 0,
|
|
10421
|
+
price: d.price ?? void 0,
|
|
10422
|
+
rating: d.rating ?? void 0,
|
|
10423
|
+
reviewCount: d.review_count ?? void 0,
|
|
10424
|
+
reviewsLabel: d.reviews_label ?? void 0,
|
|
10425
|
+
stockLabel: d.stock_label ?? void 0,
|
|
10426
|
+
triadNumbers: o,
|
|
10427
|
+
galleryImages: fe(d.gallery_images),
|
|
10428
|
+
purchaseUrl: d.purchase_url ?? void 0
|
|
10429
10429
|
};
|
|
10430
10430
|
})
|
|
10431
10431
|
};
|
|
@@ -10495,8 +10495,8 @@ function Qq(A, l, p, S) {
|
|
|
10495
10495
|
currentRangeLabel: q,
|
|
10496
10496
|
previousRangeLabel: U,
|
|
10497
10497
|
categories: n.categories.map((K) => {
|
|
10498
|
-
var
|
|
10499
|
-
const k = JS(K.name), c = ((
|
|
10498
|
+
var e, u, W, j, d;
|
|
10499
|
+
const k = JS(K.name), c = ((W = (u = (e = K.trend_markers) == null ? void 0 : e.current) == null ? void 0 : u.risk) == null ? void 0 : W.trim()) || K.interpretation || V.get(k);
|
|
10500
10500
|
return {
|
|
10501
10501
|
title: K.name.toUpperCase(),
|
|
10502
10502
|
noteTargetId: K.id ? `metric:${K.id}` : void 0,
|
|
@@ -10508,12 +10508,12 @@ function Qq(A, l, p, S) {
|
|
|
10508
10508
|
previousLab: K.previous_lab_score != null ? String(K.previous_lab_score) : void 0,
|
|
10509
10509
|
previousTotal: K.previous_total_score != null ? String(K.previous_total_score) : void 0,
|
|
10510
10510
|
trendIndicatorPercent: Ft(
|
|
10511
|
-
(
|
|
10511
|
+
(j = K.trend_markers) == null ? void 0 : j.current,
|
|
10512
10512
|
K.indicator_percent,
|
|
10513
10513
|
K.interpretation ?? V.get(k)
|
|
10514
10514
|
),
|
|
10515
10515
|
previousTrendIndicatorPercent: Ft(
|
|
10516
|
-
(
|
|
10516
|
+
(d = K.trend_markers) == null ? void 0 : d.previous,
|
|
10517
10517
|
K.previous_indicator_percent,
|
|
10518
10518
|
K.previous_interpretation
|
|
10519
10519
|
),
|
|
@@ -10592,9 +10592,9 @@ function Nq(A, l) {
|
|
|
10592
10592
|
const td = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
10593
10593
|
__proto__: null,
|
|
10594
10594
|
mapWellnessIndicatorsDtoToTabContent: Nq
|
|
10595
|
-
}, Symbol.toStringTag, { value: "Module" })), ld =
|
|
10595
|
+
}, Symbol.toStringTag, { value: "Module" })), ld = 3e5, El = /* @__PURE__ */ new Map();
|
|
10596
10596
|
function pd(A, l, p, S, q, U) {
|
|
10597
|
-
return `${A}|${l
|
|
10597
|
+
return `${A}|${l}|${p ?? ""}|${S ?? ""}|${q ?? ""}|${U ?? ""}`;
|
|
10598
10598
|
}
|
|
10599
10599
|
function Cq(A) {
|
|
10600
10600
|
const {
|
|
@@ -10609,107 +10609,107 @@ function Cq(A) {
|
|
|
10609
10609
|
refreshAuthToken: K,
|
|
10610
10610
|
refreshSession: k,
|
|
10611
10611
|
onFullReportLoaded: c
|
|
10612
|
-
} = A,
|
|
10612
|
+
} = A, e = V ?? BA(U), u = Ll({
|
|
10613
10613
|
authToken: q,
|
|
10614
10614
|
fetchImpl: n,
|
|
10615
10615
|
refreshAuthToken: K,
|
|
10616
10616
|
refreshSession: k
|
|
10617
|
-
}),
|
|
10617
|
+
}), W = vt({
|
|
10618
10618
|
authToken: q,
|
|
10619
10619
|
json: !0,
|
|
10620
10620
|
headers: S
|
|
10621
|
-
}),
|
|
10622
|
-
np(
|
|
10623
|
-
q,
|
|
10621
|
+
}), j = `${A.userType ?? ""}|${A.userId ?? ""}|${JSON.stringify([...new Headers(S).entries()])}|` + pd(
|
|
10622
|
+
np(e),
|
|
10623
|
+
A.userId || l || r ? "" : q ?? "",
|
|
10624
10624
|
U,
|
|
10625
10625
|
l,
|
|
10626
10626
|
p,
|
|
10627
10627
|
r
|
|
10628
|
-
),
|
|
10629
|
-
}), i),
|
|
10630
|
-
const i = El.get(
|
|
10631
|
-
if (i && Date.now() < i.expiresAt) return
|
|
10632
|
-
const
|
|
10628
|
+
), d = (i) => (c && i.then(c, () => {
|
|
10629
|
+
}), i), o = () => {
|
|
10630
|
+
const i = El.get(j);
|
|
10631
|
+
if (i && Date.now() < i.expiresAt) return d(i.promise);
|
|
10632
|
+
const I = MK({
|
|
10633
10633
|
userType: A.userType,
|
|
10634
|
-
baseUrl:
|
|
10634
|
+
baseUrl: e,
|
|
10635
10635
|
reportId: l,
|
|
10636
10636
|
previousReportId: p,
|
|
10637
10637
|
questionnaireResponseId: r,
|
|
10638
|
-
headers:
|
|
10638
|
+
headers: W,
|
|
10639
10639
|
fetchImpl: u
|
|
10640
10640
|
});
|
|
10641
|
-
return
|
|
10641
|
+
return I.catch(() => El.delete(j)), El.set(j, { promise: I, expiresAt: Date.now() + ld }), d(I);
|
|
10642
10642
|
};
|
|
10643
|
-
|
|
10644
|
-
const
|
|
10643
|
+
o();
|
|
10644
|
+
const b = (i) => o();
|
|
10645
10645
|
return {
|
|
10646
10646
|
dashboard: async (i) => {
|
|
10647
|
-
const
|
|
10647
|
+
const I = await b();
|
|
10648
10648
|
return iq(
|
|
10649
|
-
|
|
10650
|
-
|
|
10651
|
-
|
|
10652
|
-
|
|
10649
|
+
I.pages.dashboard,
|
|
10650
|
+
I.organ_content,
|
|
10651
|
+
I.alert_lab_content,
|
|
10652
|
+
I.triad_content
|
|
10653
10653
|
);
|
|
10654
10654
|
},
|
|
10655
10655
|
"total-predictive-index": async (i) => {
|
|
10656
|
-
const
|
|
10656
|
+
const I = await b();
|
|
10657
10657
|
return Qq(
|
|
10658
|
-
|
|
10659
|
-
|
|
10660
|
-
|
|
10661
|
-
|
|
10658
|
+
I.pages["total-predictive-index"],
|
|
10659
|
+
I.organ_content,
|
|
10660
|
+
I.cortisol_content,
|
|
10661
|
+
I.pages.dashboard
|
|
10662
10662
|
);
|
|
10663
10663
|
},
|
|
10664
10664
|
"wellness-indicators": async (i) => {
|
|
10665
|
-
const
|
|
10665
|
+
const I = await b();
|
|
10666
10666
|
return Nq(
|
|
10667
|
-
|
|
10668
|
-
|
|
10667
|
+
I.pages["wellness-indicators"],
|
|
10668
|
+
I.pages.dashboard
|
|
10669
10669
|
);
|
|
10670
10670
|
},
|
|
10671
10671
|
"questionnaire-analysis": async (i) => {
|
|
10672
|
-
const
|
|
10672
|
+
const I = await b();
|
|
10673
10673
|
return Eq(
|
|
10674
|
-
|
|
10675
|
-
|
|
10676
|
-
|
|
10674
|
+
I.pages["questionnaire-analysis"],
|
|
10675
|
+
I.organ_content,
|
|
10676
|
+
I.pages.dashboard
|
|
10677
10677
|
);
|
|
10678
10678
|
},
|
|
10679
|
-
"supplement-schedule": async (i) => Pq((await
|
|
10679
|
+
"supplement-schedule": async (i) => Pq((await b()).pages["supplement-schedule"]),
|
|
10680
10680
|
"lab-results": async (i) => {
|
|
10681
|
-
const
|
|
10681
|
+
const I = await b();
|
|
10682
10682
|
return yq(
|
|
10683
|
-
|
|
10684
|
-
|
|
10685
|
-
|
|
10683
|
+
I.pages["lab-results"],
|
|
10684
|
+
I.triad_content,
|
|
10685
|
+
I.alert_lab_content
|
|
10686
10686
|
);
|
|
10687
10687
|
},
|
|
10688
10688
|
"suggested-products": async (i) => {
|
|
10689
|
-
const
|
|
10689
|
+
const I = await b();
|
|
10690
10690
|
return mq(
|
|
10691
|
-
|
|
10692
|
-
|
|
10693
|
-
|
|
10694
|
-
|
|
10695
|
-
|
|
10696
|
-
|
|
10691
|
+
I.pages["suggested-products"],
|
|
10692
|
+
I.report.available_pages,
|
|
10693
|
+
I.pages.dashboard,
|
|
10694
|
+
I.organ_content,
|
|
10695
|
+
I.triad_content,
|
|
10696
|
+
I.pages["supplement-schedule"]
|
|
10697
10697
|
);
|
|
10698
10698
|
},
|
|
10699
10699
|
"lab-analysis": async (i) => {
|
|
10700
|
-
const
|
|
10700
|
+
const I = await b();
|
|
10701
10701
|
return Tq(
|
|
10702
|
-
|
|
10703
|
-
|
|
10704
|
-
|
|
10705
|
-
|
|
10702
|
+
I.pages["lab-analysis"],
|
|
10703
|
+
I.triad_content,
|
|
10704
|
+
I.pages["lab-results"],
|
|
10705
|
+
I.alert_lab_content
|
|
10706
10706
|
);
|
|
10707
10707
|
},
|
|
10708
10708
|
"alert-lab-summary": async (i) => {
|
|
10709
|
-
const
|
|
10709
|
+
const I = await b();
|
|
10710
10710
|
return Iq(
|
|
10711
|
-
|
|
10712
|
-
|
|
10711
|
+
I.pages["alert-lab-summary"],
|
|
10712
|
+
I.alert_lab_content
|
|
10713
10713
|
);
|
|
10714
10714
|
}
|
|
10715
10715
|
};
|
|
@@ -10770,22 +10770,22 @@ function rd(A) {
|
|
|
10770
10770
|
refreshAuthToken: n,
|
|
10771
10771
|
refreshSession: K
|
|
10772
10772
|
});
|
|
10773
|
-
return async (
|
|
10774
|
-
const u = (
|
|
10773
|
+
return async (e) => {
|
|
10774
|
+
const u = (e == null ? void 0 : e.reportId) ?? q, W = ad(k), j = xl({ reportId: u, questionnaireResponseId: U }), d = vt({
|
|
10775
10775
|
authToken: l,
|
|
10776
10776
|
json: !0,
|
|
10777
10777
|
headers: V
|
|
10778
|
-
}),
|
|
10778
|
+
}), o = await c(W, {
|
|
10779
10779
|
method: "POST",
|
|
10780
|
-
headers:
|
|
10781
|
-
body:
|
|
10780
|
+
headers: d,
|
|
10781
|
+
body: j,
|
|
10782
10782
|
credentials: "include",
|
|
10783
|
-
signal:
|
|
10783
|
+
signal: e == null ? void 0 : e.signal
|
|
10784
10784
|
});
|
|
10785
|
-
if (!
|
|
10786
|
-
throw new Error(`Failed to download report PDF (HTTP ${
|
|
10787
|
-
const
|
|
10788
|
-
Vd(
|
|
10785
|
+
if (!o.ok)
|
|
10786
|
+
throw new Error(`Failed to download report PDF (HTTP ${o.status})`);
|
|
10787
|
+
const b = await o.blob(), J = Ud(o, u ? `report-${u}.pdf` : "report.pdf");
|
|
10788
|
+
Vd(b, J);
|
|
10789
10789
|
};
|
|
10790
10790
|
}
|
|
10791
10791
|
const nd = /* @__PURE__ */ new Set(["mock-report", "dr-mock-1"]);
|
|
@@ -10848,19 +10848,19 @@ async function kd(A) {
|
|
|
10848
10848
|
);
|
|
10849
10849
|
}
|
|
10850
10850
|
const c = await k.text();
|
|
10851
|
-
let
|
|
10851
|
+
let e;
|
|
10852
10852
|
try {
|
|
10853
|
-
|
|
10853
|
+
e = c ? JSON.parse(c) : null;
|
|
10854
10854
|
} catch {
|
|
10855
|
-
|
|
10855
|
+
e = c;
|
|
10856
10856
|
}
|
|
10857
10857
|
if (!k.ok) {
|
|
10858
|
-
const u = typeof
|
|
10858
|
+
const u = typeof e == "object" && e !== null && "error" in e && typeof e.error == "string" ? e.error : null;
|
|
10859
10859
|
throw new Error(u ?? `Failed to fetch reports list (HTTP ${k.status})`);
|
|
10860
10860
|
}
|
|
10861
|
-
if (!Array.isArray(
|
|
10861
|
+
if (!Array.isArray(e))
|
|
10862
10862
|
throw new Error("Unexpected response shape for /reports: expected an array");
|
|
10863
|
-
return
|
|
10863
|
+
return e.map(cd).filter((u) => u != null);
|
|
10864
10864
|
}
|
|
10865
10865
|
function jS(A, l) {
|
|
10866
10866
|
return l ? { ...A, ...l } : A;
|
|
@@ -10886,80 +10886,82 @@ function Bc() {
|
|
|
10886
10886
|
function od({
|
|
10887
10887
|
children: A,
|
|
10888
10888
|
fetchers: l,
|
|
10889
|
-
ttlMs: p
|
|
10889
|
+
ttlMs: p,
|
|
10890
|
+
cacheKey: S
|
|
10890
10891
|
}) {
|
|
10891
|
-
const
|
|
10892
|
-
|
|
10893
|
-
const
|
|
10894
|
-
(
|
|
10892
|
+
const q = x(/* @__PURE__ */ new Map()), U = x(/* @__PURE__ */ new Map()), V = x(l);
|
|
10893
|
+
V.current = l;
|
|
10894
|
+
const r = x(0), [n, K] = y(0), k = S ?? l, c = B(
|
|
10895
|
+
(o) => {
|
|
10895
10896
|
if (p <= 0) return;
|
|
10896
|
-
const
|
|
10897
|
-
if (
|
|
10898
|
-
if (Date.now() >
|
|
10899
|
-
|
|
10897
|
+
const b = q.current.get(o);
|
|
10898
|
+
if (b) {
|
|
10899
|
+
if (Date.now() > b.expiresAt) {
|
|
10900
|
+
q.current.delete(o);
|
|
10900
10901
|
return;
|
|
10901
10902
|
}
|
|
10902
|
-
return
|
|
10903
|
+
return b.data;
|
|
10903
10904
|
}
|
|
10904
10905
|
},
|
|
10905
10906
|
[p]
|
|
10906
|
-
),
|
|
10907
|
-
(
|
|
10908
|
-
p <= 0 ||
|
|
10907
|
+
), e = B(
|
|
10908
|
+
(o, b) => {
|
|
10909
|
+
p <= 0 || q.current.set(o, { data: b, expiresAt: Date.now() + p });
|
|
10909
10910
|
},
|
|
10910
10911
|
[p]
|
|
10911
10912
|
);
|
|
10912
|
-
|
|
10913
|
-
V.current
|
|
10914
|
-
|
|
10915
|
-
|
|
10916
|
-
|
|
10917
|
-
|
|
10918
|
-
|
|
10919
|
-
|
|
10920
|
-
|
|
10913
|
+
F(() => {
|
|
10914
|
+
const o = k, b = V.current;
|
|
10915
|
+
r.current += 1;
|
|
10916
|
+
const J = r.current;
|
|
10917
|
+
K(J), q.current.clear(), U.current.clear();
|
|
10918
|
+
const i = new AbortController();
|
|
10919
|
+
return Object.keys(b).forEach((I) => {
|
|
10920
|
+
const O = I;
|
|
10921
|
+
b[O](i.signal).then((E) => {
|
|
10922
|
+
r.current === J && o === k && e(O, E);
|
|
10921
10923
|
}).catch(() => {
|
|
10922
10924
|
});
|
|
10923
|
-
}), () =>
|
|
10924
|
-
}, [
|
|
10925
|
-
const
|
|
10926
|
-
|
|
10927
|
-
}, []),
|
|
10928
|
-
async (
|
|
10929
|
-
const
|
|
10930
|
-
if (
|
|
10931
|
-
const
|
|
10932
|
-
if (
|
|
10933
|
-
const
|
|
10925
|
+
}), () => i.abort();
|
|
10926
|
+
}, [k, e]);
|
|
10927
|
+
const u = B((o) => {
|
|
10928
|
+
o === void 0 ? q.current.clear() : q.current.delete(o);
|
|
10929
|
+
}, []), W = B(
|
|
10930
|
+
async (o, b) => {
|
|
10931
|
+
const J = c(o);
|
|
10932
|
+
if (J !== void 0) return J;
|
|
10933
|
+
const i = U.current.get(o);
|
|
10934
|
+
if (i) return i;
|
|
10935
|
+
const I = r.current, O = (async () => {
|
|
10934
10936
|
try {
|
|
10935
|
-
const
|
|
10936
|
-
return
|
|
10937
|
+
const E = await V.current[o](b);
|
|
10938
|
+
return I === r.current && e(o, E), E;
|
|
10937
10939
|
} finally {
|
|
10938
|
-
|
|
10940
|
+
U.current.delete(o);
|
|
10939
10941
|
}
|
|
10940
10942
|
})();
|
|
10941
|
-
return
|
|
10943
|
+
return U.current.set(o, O), O;
|
|
10942
10944
|
},
|
|
10943
|
-
[
|
|
10944
|
-
),
|
|
10945
|
-
(
|
|
10946
|
-
if (!ep(
|
|
10947
|
-
const
|
|
10948
|
-
|
|
10945
|
+
[c, e]
|
|
10946
|
+
), j = B(
|
|
10947
|
+
(o) => {
|
|
10948
|
+
if (!ep(o)) return;
|
|
10949
|
+
const b = new AbortController();
|
|
10950
|
+
W(o, b.signal).catch(() => {
|
|
10949
10951
|
});
|
|
10950
10952
|
},
|
|
10951
|
-
[
|
|
10952
|
-
),
|
|
10953
|
+
[W]
|
|
10954
|
+
), d = z(
|
|
10953
10955
|
() => ({
|
|
10954
|
-
loadTab:
|
|
10955
|
-
readValid:
|
|
10956
|
-
invalidate:
|
|
10957
|
-
prefetch:
|
|
10958
|
-
generation:
|
|
10956
|
+
loadTab: W,
|
|
10957
|
+
readValid: c,
|
|
10958
|
+
invalidate: u,
|
|
10959
|
+
prefetch: j,
|
|
10960
|
+
generation: n
|
|
10959
10961
|
}),
|
|
10960
|
-
[
|
|
10962
|
+
[W, c, u, j, n]
|
|
10961
10963
|
);
|
|
10962
|
-
return /* @__PURE__ */ t(dp.Provider, { value:
|
|
10964
|
+
return /* @__PURE__ */ t(dp.Provider, { value: d, children: A });
|
|
10963
10965
|
}
|
|
10964
10966
|
function Wd(A) {
|
|
10965
10967
|
return A instanceof DOMException && A.name === "AbortError" ? !0 : A instanceof Error && A.name === "AbortError";
|
|
@@ -10980,30 +10982,30 @@ function bd(A, l) {
|
|
|
10980
10982
|
const r = zq(), n = (r == null ? void 0 : r.generation) ?? 0, K = B(() => {
|
|
10981
10983
|
r == null || r.invalidate(A), S({ type: "loadStart" }), U((c) => c + 1);
|
|
10982
10984
|
}, [r, A]), k = x(l.fetchers);
|
|
10983
|
-
return k.current = l.fetchers,
|
|
10985
|
+
return k.current = l.fetchers, F(() => {
|
|
10984
10986
|
let c = !0;
|
|
10985
|
-
const
|
|
10987
|
+
const e = new AbortController(), { signal: u } = e;
|
|
10986
10988
|
return (async () => {
|
|
10987
|
-
var
|
|
10989
|
+
var j;
|
|
10988
10990
|
if (r) {
|
|
10989
|
-
const
|
|
10990
|
-
if (
|
|
10991
|
-
S({ type: "loadSuccess", data:
|
|
10991
|
+
const d = r.readValid(A);
|
|
10992
|
+
if (d !== void 0) {
|
|
10993
|
+
S({ type: "loadSuccess", data: d });
|
|
10992
10994
|
return;
|
|
10993
10995
|
}
|
|
10994
10996
|
}
|
|
10995
10997
|
S({ type: "loadStart" });
|
|
10996
10998
|
try {
|
|
10997
|
-
const
|
|
10999
|
+
const d = r ? await r.loadTab(A, u) : await k.current[A](u);
|
|
10998
11000
|
if (!c) return;
|
|
10999
|
-
S({ type: "loadSuccess", data:
|
|
11000
|
-
} catch (
|
|
11001
|
-
if (!c || Wd(
|
|
11002
|
-
const
|
|
11003
|
-
S({ type: "loadError", error:
|
|
11001
|
+
S({ type: "loadSuccess", data: d });
|
|
11002
|
+
} catch (d) {
|
|
11003
|
+
if (!c || Wd(d)) return;
|
|
11004
|
+
const o = d instanceof Error ? d : new Error(String(d));
|
|
11005
|
+
S({ type: "loadError", error: o }), (j = V.current) == null || j.call(V, { navItemId: A, error: o });
|
|
11004
11006
|
}
|
|
11005
11007
|
})(), () => {
|
|
11006
|
-
c = !1,
|
|
11008
|
+
c = !1, e.abort();
|
|
11007
11009
|
};
|
|
11008
11010
|
}, [A, q, r, n]), { ...p, refetch: K, loadGeneration: q };
|
|
11009
11011
|
}
|
|
@@ -11064,7 +11066,7 @@ function Id({ onRetry: A }) {
|
|
|
11064
11066
|
/* @__PURE__ */ t("p", { className: "text-[0.9375rem] font-[510] leading-snug tracking-tight text-red-700 dark:text-red-300", children: "Couldn't load this section" }),
|
|
11065
11067
|
/* @__PURE__ */ t("p", { className: "text-sm leading-relaxed text-[color:var(--mb-color-text-muted)]", children: "Check your connection and try again." })
|
|
11066
11068
|
] }),
|
|
11067
|
-
/* @__PURE__ */ t(
|
|
11069
|
+
/* @__PURE__ */ t(f, { type: "button", onClick: A, align: "center", className: "min-w-[8.5rem]", children: "Try again" })
|
|
11068
11070
|
] })
|
|
11069
11071
|
]
|
|
11070
11072
|
}
|
|
@@ -11129,7 +11131,7 @@ function id({ onRetry: A }) {
|
|
|
11129
11131
|
/* @__PURE__ */ t("p", { className: "text-[0.9375rem] font-[510] leading-snug tracking-tight text-red-700 dark:text-red-300", children: "Couldn't display this section" }),
|
|
11130
11132
|
/* @__PURE__ */ t("p", { className: "text-sm leading-relaxed text-[color:var(--mb-color-text-muted)]", children: "Something went wrong while rendering. You can try again or reload the data." })
|
|
11131
11133
|
] }),
|
|
11132
|
-
/* @__PURE__ */ t(
|
|
11134
|
+
/* @__PURE__ */ t(f, { type: "button", onClick: A, align: "center", className: "min-w-[8.5rem]", children: "Try again" })
|
|
11133
11135
|
] })
|
|
11134
11136
|
]
|
|
11135
11137
|
}
|
|
@@ -11229,22 +11231,22 @@ function md({
|
|
|
11229
11231
|
selectedReportId: K,
|
|
11230
11232
|
selectedPreviousReportId: k,
|
|
11231
11233
|
onReportChange: c,
|
|
11232
|
-
onPreviousReportChange:
|
|
11234
|
+
onPreviousReportChange: e,
|
|
11233
11235
|
navigationMode: u,
|
|
11234
|
-
showReportSelector:
|
|
11235
|
-
sideMenuClassName:
|
|
11236
|
-
sideMenuItems:
|
|
11237
|
-
activeItemId:
|
|
11238
|
-
handleNavItemClick:
|
|
11236
|
+
showReportSelector: W,
|
|
11237
|
+
sideMenuClassName: j,
|
|
11238
|
+
sideMenuItems: d,
|
|
11239
|
+
activeItemId: o,
|
|
11240
|
+
handleNavItemClick: b,
|
|
11239
11241
|
shellClassName: J,
|
|
11240
11242
|
sidebarWidthClassName: i,
|
|
11241
|
-
mainAreaClassName:
|
|
11242
|
-
mainContent:
|
|
11243
|
+
mainAreaClassName: I,
|
|
11244
|
+
mainContent: O
|
|
11243
11245
|
}) {
|
|
11244
|
-
const
|
|
11245
|
-
ep(Q) &&
|
|
11246
|
-
} : void 0, P = u === "top" &&
|
|
11247
|
-
return u === "top" ? /* @__PURE__ */ t("div", { className: "mb-dashboard-root mb-root
|
|
11246
|
+
const E = zq(), X = `box-border ${I}`, s = l && E ? (Q) => {
|
|
11247
|
+
ep(Q) && E.prefetch(Q);
|
|
11248
|
+
} : void 0, P = u === "top" && W && !!c && !!e && !!(K != null && K.trim()) && ((r == null ? void 0 : r.length) ?? 0) > 1;
|
|
11249
|
+
return u === "top" ? /* @__PURE__ */ t("div", { className: "mb-dashboard-root mb-root", style: A, children: /* @__PURE__ */ a(
|
|
11248
11250
|
"div",
|
|
11249
11251
|
{
|
|
11250
11252
|
className: [
|
|
@@ -11255,14 +11257,14 @@ function md({
|
|
|
11255
11257
|
/* @__PURE__ */ t(
|
|
11256
11258
|
vK,
|
|
11257
11259
|
{
|
|
11258
|
-
className:
|
|
11259
|
-
items:
|
|
11260
|
-
activeItemId:
|
|
11261
|
-
onItemClick:
|
|
11262
|
-
onNavItemPrefetch:
|
|
11260
|
+
className: j,
|
|
11261
|
+
items: d,
|
|
11262
|
+
activeItemId: o,
|
|
11263
|
+
onItemClick: b,
|
|
11264
|
+
onNavItemPrefetch: s
|
|
11263
11265
|
}
|
|
11264
11266
|
),
|
|
11265
|
-
P && K && c &&
|
|
11267
|
+
P && K && c && e && r ? /* @__PURE__ */ t(
|
|
11266
11268
|
hK,
|
|
11267
11269
|
{
|
|
11268
11270
|
options: r,
|
|
@@ -11272,16 +11274,16 @@ function md({
|
|
|
11272
11274
|
selectedReportId: K,
|
|
11273
11275
|
selectedPreviousReportId: k,
|
|
11274
11276
|
onReportChange: c,
|
|
11275
|
-
onPreviousReportChange:
|
|
11277
|
+
onPreviousReportChange: e
|
|
11276
11278
|
}
|
|
11277
11279
|
) : null,
|
|
11278
11280
|
/* @__PURE__ */ t("main", { className: "flex min-h-0 min-w-0 flex-1 overflow-auto bg-[color:var(--mb-color-sidebar-bg)]", children: /* @__PURE__ */ a("div", { className: X, children: [
|
|
11279
|
-
|
|
11281
|
+
O,
|
|
11280
11282
|
/* @__PURE__ */ t("div", { "aria-hidden": "true", className: "h-8 shrink-0" })
|
|
11281
11283
|
] }) })
|
|
11282
11284
|
]
|
|
11283
11285
|
}
|
|
11284
|
-
) }) : /* @__PURE__ */ t("div", { className: "mb-dashboard-root mb-root
|
|
11286
|
+
) }) : /* @__PURE__ */ t("div", { className: "mb-dashboard-root mb-root", style: A, children: /* @__PURE__ */ t(
|
|
11285
11287
|
kK,
|
|
11286
11288
|
{
|
|
11287
11289
|
sidebar: /* @__PURE__ */ t(
|
|
@@ -11297,19 +11299,19 @@ function md({
|
|
|
11297
11299
|
selectedReportId: K,
|
|
11298
11300
|
selectedPreviousReportId: k,
|
|
11299
11301
|
onReportChange: c,
|
|
11300
|
-
onPreviousReportChange:
|
|
11301
|
-
showReportSelector:
|
|
11302
|
-
className:
|
|
11303
|
-
items:
|
|
11304
|
-
activeItemId:
|
|
11305
|
-
onItemClick:
|
|
11306
|
-
onNavItemPrefetch:
|
|
11302
|
+
onPreviousReportChange: e,
|
|
11303
|
+
showReportSelector: W,
|
|
11304
|
+
className: j,
|
|
11305
|
+
items: d,
|
|
11306
|
+
activeItemId: o,
|
|
11307
|
+
onItemClick: b,
|
|
11308
|
+
onNavItemPrefetch: s
|
|
11307
11309
|
}
|
|
11308
11310
|
),
|
|
11309
11311
|
sidebarWidthClassName: i,
|
|
11310
11312
|
className: J,
|
|
11311
11313
|
children: /* @__PURE__ */ a("div", { className: X, children: [
|
|
11312
|
-
|
|
11314
|
+
O,
|
|
11313
11315
|
/* @__PURE__ */ t("div", { "aria-hidden": "true", className: "h-8 shrink-0" })
|
|
11314
11316
|
] })
|
|
11315
11317
|
}
|
|
@@ -11319,10 +11321,11 @@ function Pd({
|
|
|
11319
11321
|
wrapTabContentCache: A,
|
|
11320
11322
|
fetchers: l,
|
|
11321
11323
|
cacheTtlMs: p,
|
|
11322
|
-
|
|
11324
|
+
cacheKey: S,
|
|
11325
|
+
viewProps: q
|
|
11323
11326
|
}) {
|
|
11324
|
-
const
|
|
11325
|
-
return A ? /* @__PURE__ */ t(od, { fetchers: l, ttlMs: p, children:
|
|
11327
|
+
const U = /* @__PURE__ */ t(md, { ...q });
|
|
11328
|
+
return A ? /* @__PURE__ */ t(od, { fetchers: l, ttlMs: p, cacheKey: S, children: U }) : U;
|
|
11326
11329
|
}
|
|
11327
11330
|
const Qd = [
|
|
11328
11331
|
{ id: "sim-pt-001", label: "Alex Morgan" },
|
|
@@ -11367,7 +11370,7 @@ function zd({
|
|
|
11367
11370
|
rootStyle: A,
|
|
11368
11371
|
contentClassName: "items-center justify-start px-4 py-10 sm:px-8",
|
|
11369
11372
|
children: /* @__PURE__ */ a("div", { className: "flex w-full max-w-[24rem] flex-col gap-6 sm:max-w-[26rem]", children: [
|
|
11370
|
-
/* @__PURE__ */ t(
|
|
11373
|
+
/* @__PURE__ */ t(f, { type: "button", variant: "soft", className: xq, onClick: p, children: "← Back" }),
|
|
11371
11374
|
/* @__PURE__ */ a("header", { className: "mb-sim-animate-in mb-sim-animate-delay-1", children: [
|
|
11372
11375
|
/* @__PURE__ */ t("p", { className: "mb-sim-screen-eyebrow", children: "Simulation" }),
|
|
11373
11376
|
/* @__PURE__ */ t("h1", { className: "mb-sim-screen-title", children: "Select a patient" }),
|
|
@@ -11379,7 +11382,7 @@ function zd({
|
|
|
11379
11382
|
className: "mb-sim-animate-in",
|
|
11380
11383
|
style: { animationDelay: `${0.2 + U * 0.055}s` },
|
|
11381
11384
|
children: /* @__PURE__ */ t(
|
|
11382
|
-
|
|
11385
|
+
f,
|
|
11383
11386
|
{
|
|
11384
11387
|
type: "button",
|
|
11385
11388
|
fullWidth: !0,
|
|
@@ -11408,7 +11411,7 @@ function Xd({
|
|
|
11408
11411
|
rootStyle: A,
|
|
11409
11412
|
contentClassName: "items-center justify-start px-4 py-10 sm:px-8",
|
|
11410
11413
|
children: /* @__PURE__ */ a("div", { className: "flex w-full max-w-[24rem] flex-col gap-6 sm:max-w-[26rem]", children: [
|
|
11411
|
-
/* @__PURE__ */ t(
|
|
11414
|
+
/* @__PURE__ */ t(f, { type: "button", variant: "soft", className: xq, onClick: p, children: "← Back" }),
|
|
11412
11415
|
/* @__PURE__ */ a("header", { className: "mb-sim-animate-in mb-sim-animate-delay-1", children: [
|
|
11413
11416
|
/* @__PURE__ */ t("p", { className: "mb-sim-screen-eyebrow", children: "Simulation" }),
|
|
11414
11417
|
/* @__PURE__ */ t("h1", { className: "mb-sim-screen-title", children: "Select a report date" }),
|
|
@@ -11420,7 +11423,7 @@ function Xd({
|
|
|
11420
11423
|
className: "mb-sim-animate-in",
|
|
11421
11424
|
style: { animationDelay: `${0.2 + U * 0.055}s` },
|
|
11422
11425
|
children: /* @__PURE__ */ t(
|
|
11423
|
-
|
|
11426
|
+
f,
|
|
11424
11427
|
{
|
|
11425
11428
|
type: "button",
|
|
11426
11429
|
fullWidth: !0,
|
|
@@ -11477,7 +11480,7 @@ function Ld(A) {
|
|
|
11477
11480
|
rootStyle: HS(p)
|
|
11478
11481
|
};
|
|
11479
11482
|
}, [A]);
|
|
11480
|
-
return
|
|
11483
|
+
return F(() => {
|
|
11481
11484
|
Pa(l.resolvedBranding.fonts.sans);
|
|
11482
11485
|
}, [l.resolvedBranding.fonts.sans]), l;
|
|
11483
11486
|
}
|
|
@@ -11494,16 +11497,15 @@ function Bd({
|
|
|
11494
11497
|
patientAccessMode: V,
|
|
11495
11498
|
simulationReportId: r
|
|
11496
11499
|
}) {
|
|
11497
|
-
const n = S === void 0 && q === void 0, [K, k] = y(), c = x(!1),
|
|
11500
|
+
const n = S === void 0 && q === void 0, [K, k] = y(), c = x(!1), e = x(null), u = x(null), [W, j] = y(), [d, o] = y(), b = x(void 0), J = z(() => {
|
|
11498
11501
|
const Z = { ...A ?? {} };
|
|
11499
11502
|
return r != null && (Z.reportId = r), Z;
|
|
11500
11503
|
}, [A, r]), i = z(
|
|
11501
11504
|
() => BA(J.backendRegion),
|
|
11502
11505
|
[J.backendRegion]
|
|
11503
|
-
),
|
|
11506
|
+
), I = J.baseUrl ?? i, O = z(
|
|
11504
11507
|
() => [
|
|
11505
11508
|
J.userType ?? "",
|
|
11506
|
-
J.authToken ?? J.apiKey ?? "",
|
|
11507
11509
|
J.userId ?? "",
|
|
11508
11510
|
JSON.stringify([...new Headers(J.headers).entries()]),
|
|
11509
11511
|
J.backendRegion ?? "",
|
|
@@ -11514,8 +11516,6 @@ function Bd({
|
|
|
11514
11516
|
].join("|"),
|
|
11515
11517
|
[
|
|
11516
11518
|
J.userType,
|
|
11517
|
-
J.authToken,
|
|
11518
|
-
J.apiKey,
|
|
11519
11519
|
J.userId,
|
|
11520
11520
|
J.headers,
|
|
11521
11521
|
J.backendRegion,
|
|
@@ -11524,30 +11524,30 @@ function Bd({
|
|
|
11524
11524
|
J.previousReportId,
|
|
11525
11525
|
J.questionnaireResponseId
|
|
11526
11526
|
]
|
|
11527
|
-
),
|
|
11528
|
-
|
|
11529
|
-
|
|
11530
|
-
}, [
|
|
11527
|
+
), E = x(O);
|
|
11528
|
+
F(() => {
|
|
11529
|
+
E.current = O, e.current = null, u.current = null, k(void 0), j(void 0);
|
|
11530
|
+
}, [O]);
|
|
11531
11531
|
const X = B((Z) => {
|
|
11532
11532
|
k(
|
|
11533
11533
|
(C) => gd(C, Z) ? C : Z
|
|
11534
11534
|
);
|
|
11535
11535
|
}, []);
|
|
11536
|
-
|
|
11537
|
-
c.current = !1,
|
|
11536
|
+
F(() => (c.current = !0, b.current && o(b.current), e.current && (X(e.current), e.current = null), u.current != null && (j(u.current || void 0), u.current = null), () => {
|
|
11537
|
+
c.current = !1, e.current = null, u.current = null;
|
|
11538
11538
|
}), [X]);
|
|
11539
|
-
const
|
|
11539
|
+
const s = B(
|
|
11540
11540
|
(Z, C) => {
|
|
11541
11541
|
var D, v;
|
|
11542
|
-
if (
|
|
11542
|
+
if (E.current !== C) return;
|
|
11543
11543
|
const L = [...Z.report.available_pages], $ = zA(
|
|
11544
11544
|
((D = Z.pages.dashboard) == null ? void 0 : D.questionnaire_last_date) ?? ((v = Z.pages.dashboard) == null ? void 0 : v.labs_last_date) ?? Z.report.effective_date
|
|
11545
11545
|
) ?? "";
|
|
11546
11546
|
if (!c.current) {
|
|
11547
|
-
|
|
11547
|
+
b.current = { key: C, report: Z }, e.current = L, u.current = $;
|
|
11548
11548
|
return;
|
|
11549
11549
|
}
|
|
11550
|
-
X(L),
|
|
11550
|
+
X(L), o({ key: C, report: Z }), j($ || void 0);
|
|
11551
11551
|
},
|
|
11552
11552
|
[X]
|
|
11553
11553
|
), P = z(() => {
|
|
@@ -11566,9 +11566,9 @@ function Bd({
|
|
|
11566
11566
|
json: !0,
|
|
11567
11567
|
headers: J.headers
|
|
11568
11568
|
}), nA = zK(
|
|
11569
|
-
async (AA,
|
|
11569
|
+
async (AA, h) => h(),
|
|
11570
11570
|
(AA) => ({
|
|
11571
|
-
baseUrl:
|
|
11571
|
+
baseUrl: I,
|
|
11572
11572
|
reportId: J.reportId,
|
|
11573
11573
|
previousReportId: J.previousReportId,
|
|
11574
11574
|
questionnaireResponseId: J.questionnaireResponseId,
|
|
@@ -11584,15 +11584,15 @@ function Bd({
|
|
|
11584
11584
|
}
|
|
11585
11585
|
const Z = Cq({
|
|
11586
11586
|
...J,
|
|
11587
|
-
onFullReportLoaded: (C) =>
|
|
11587
|
+
onFullReportLoaded: (C) => s(C, O)
|
|
11588
11588
|
});
|
|
11589
11589
|
return jS(Z, l);
|
|
11590
11590
|
}, [
|
|
11591
11591
|
l,
|
|
11592
|
-
|
|
11592
|
+
s,
|
|
11593
11593
|
V,
|
|
11594
|
+
O,
|
|
11594
11595
|
I,
|
|
11595
|
-
j,
|
|
11596
11596
|
J
|
|
11597
11597
|
]), Q = z(() => p || rd(J), [p, J]);
|
|
11598
11598
|
return {
|
|
@@ -11601,11 +11601,11 @@ function Bd({
|
|
|
11601
11601
|
resolvedExportReports: Q,
|
|
11602
11602
|
resolvedCacheTtlMs: U ?? ud,
|
|
11603
11603
|
availableReportPages: K,
|
|
11604
|
-
currentReportLabel:
|
|
11605
|
-
reportPagesApiBaseUrl:
|
|
11604
|
+
currentReportLabel: W,
|
|
11605
|
+
reportPagesApiBaseUrl: I,
|
|
11606
11606
|
resolvedHttpConfig: J,
|
|
11607
|
-
reportAvailabilityKey:
|
|
11608
|
-
fullReport: (
|
|
11607
|
+
reportAvailabilityKey: O,
|
|
11608
|
+
fullReport: (d == null ? void 0 : d.key) === O ? d.report : void 0
|
|
11609
11609
|
};
|
|
11610
11610
|
}
|
|
11611
11611
|
function hd(A) {
|
|
@@ -11630,14 +11630,14 @@ function Gd(A, l, p = !0) {
|
|
|
11630
11630
|
const S = A == null ? void 0 : A.reportId, q = A == null ? void 0 : A.previousReportId, [U, V] = y(S), [r, n] = y(
|
|
11631
11631
|
q
|
|
11632
11632
|
), [K, k] = y([]);
|
|
11633
|
-
|
|
11633
|
+
F(() => {
|
|
11634
11634
|
V(S), n(q);
|
|
11635
|
-
}, [q, S]),
|
|
11635
|
+
}, [q, S]), F(() => {
|
|
11636
11636
|
if (!p || !A) {
|
|
11637
11637
|
k([]);
|
|
11638
11638
|
return;
|
|
11639
11639
|
}
|
|
11640
|
-
const
|
|
11640
|
+
const b = new AbortController();
|
|
11641
11641
|
let J = !1;
|
|
11642
11642
|
return kd({
|
|
11643
11643
|
authToken: A.authToken,
|
|
@@ -11645,13 +11645,13 @@ function Gd(A, l, p = !0) {
|
|
|
11645
11645
|
baseUrl: A.baseUrl,
|
|
11646
11646
|
headers: A.headers,
|
|
11647
11647
|
fetchImpl: A.fetchImpl,
|
|
11648
|
-
signal:
|
|
11648
|
+
signal: b.signal
|
|
11649
11649
|
}).then((i) => {
|
|
11650
11650
|
J || k(i);
|
|
11651
11651
|
}).catch((i) => {
|
|
11652
11652
|
J || i instanceof DOMException && i.name === "AbortError" || k([]);
|
|
11653
11653
|
}), () => {
|
|
11654
|
-
J = !0,
|
|
11654
|
+
J = !0, b.abort();
|
|
11655
11655
|
};
|
|
11656
11656
|
}, [
|
|
11657
11657
|
p,
|
|
@@ -11662,44 +11662,44 @@ function Gd(A, l, p = !0) {
|
|
|
11662
11662
|
A == null ? void 0 : A.headers,
|
|
11663
11663
|
A == null ? void 0 : A.fetchImpl
|
|
11664
11664
|
]);
|
|
11665
|
-
const c = B((
|
|
11666
|
-
const J =
|
|
11665
|
+
const c = B((b) => {
|
|
11666
|
+
const J = b.trim();
|
|
11667
11667
|
J && (V(J), n((i) => i === J ? void 0 : i));
|
|
11668
|
-
}, []),
|
|
11669
|
-
(
|
|
11670
|
-
const J =
|
|
11668
|
+
}, []), e = B(
|
|
11669
|
+
(b) => {
|
|
11670
|
+
const J = b.trim();
|
|
11671
11671
|
J && n((i) => J === (U ?? S) ? i : J);
|
|
11672
11672
|
},
|
|
11673
11673
|
[S, U]
|
|
11674
|
-
), u = U ?? S,
|
|
11674
|
+
), u = U ?? S, W = z(
|
|
11675
11675
|
() => Fd(K, u),
|
|
11676
11676
|
[K, u, l]
|
|
11677
|
-
),
|
|
11678
|
-
() => fd(
|
|
11679
|
-
[
|
|
11680
|
-
),
|
|
11681
|
-
var
|
|
11682
|
-
return p ? r &&
|
|
11683
|
-
}, [p, q,
|
|
11684
|
-
|
|
11685
|
-
n(
|
|
11686
|
-
}, [
|
|
11687
|
-
const
|
|
11677
|
+
), j = z(
|
|
11678
|
+
() => fd(W, u),
|
|
11679
|
+
[W, u]
|
|
11680
|
+
), d = z(() => {
|
|
11681
|
+
var b;
|
|
11682
|
+
return p ? r && j.some((J) => J.id === r) ? r : (b = j[0]) == null ? void 0 : b.id : r ?? q;
|
|
11683
|
+
}, [p, q, j, r]);
|
|
11684
|
+
F(() => {
|
|
11685
|
+
n(d);
|
|
11686
|
+
}, [d]);
|
|
11687
|
+
const o = z(() => {
|
|
11688
11688
|
if (A)
|
|
11689
11689
|
return {
|
|
11690
11690
|
...A,
|
|
11691
11691
|
reportId: u ?? A.reportId,
|
|
11692
|
-
previousReportId:
|
|
11692
|
+
previousReportId: d
|
|
11693
11693
|
};
|
|
11694
|
-
}, [A, u,
|
|
11694
|
+
}, [A, u, d]);
|
|
11695
11695
|
return {
|
|
11696
|
-
reportOptions:
|
|
11697
|
-
previousReportOptions:
|
|
11696
|
+
reportOptions: W,
|
|
11697
|
+
previousReportOptions: j,
|
|
11698
11698
|
selectedReportId: u,
|
|
11699
|
-
selectedPreviousReportId:
|
|
11699
|
+
selectedPreviousReportId: d,
|
|
11700
11700
|
onReportChange: c,
|
|
11701
|
-
onPreviousReportChange:
|
|
11702
|
-
reportHttpConfigWithSelection:
|
|
11701
|
+
onPreviousReportChange: e,
|
|
11702
|
+
reportHttpConfigWithSelection: o
|
|
11703
11703
|
};
|
|
11704
11704
|
}
|
|
11705
11705
|
function vd(A) {
|
|
@@ -11762,7 +11762,7 @@ function Dd({
|
|
|
11762
11762
|
return /* @__PURE__ */ a("div", { className: "flex w-full flex-col gap-2 rounded-lg border border-[color:var(--mb-color-card-border)] bg-[color:var(--mb-color-card-bg)] p-2 shadow-[var(--mb-card-shadow)] lg:p-2.5", children: [
|
|
11763
11763
|
/* @__PURE__ */ t("p", { className: "hidden text-xs leading-snug text-[color:var(--mb-color-text-muted)] lg:block lg:text-sm", children: S }),
|
|
11764
11764
|
/* @__PURE__ */ a(
|
|
11765
|
-
|
|
11765
|
+
f,
|
|
11766
11766
|
{
|
|
11767
11767
|
type: "button",
|
|
11768
11768
|
fullWidth: !0,
|
|
@@ -11790,18 +11790,18 @@ function wd(A) {
|
|
|
11790
11790
|
return S;
|
|
11791
11791
|
if (l === "patient" && r != null)
|
|
11792
11792
|
return r;
|
|
11793
|
-
}, [l, S, r]),
|
|
11793
|
+
}, [l, S, r]), e = l === "practitioner" && S !== null || l === "patient" && r !== null, u = B(() => {
|
|
11794
11794
|
p(Nt(A)), q(null), V(""), n(null), k("");
|
|
11795
|
-
}, [A]),
|
|
11795
|
+
}, [A]), W = B(() => p("practitioner"), []), j = B(() => p("patient"), []), d = B(
|
|
11796
11796
|
() => p(Nt(A)),
|
|
11797
11797
|
[A]
|
|
11798
|
-
),
|
|
11798
|
+
), o = B(
|
|
11799
11799
|
() => p(Nt(A)),
|
|
11800
11800
|
[A]
|
|
11801
|
-
),
|
|
11802
|
-
q(i), V(
|
|
11803
|
-
}, []), J = B((i,
|
|
11804
|
-
n(i), k(
|
|
11801
|
+
), b = B((i, I) => {
|
|
11802
|
+
q(i), V(I);
|
|
11803
|
+
}, []), J = B((i, I) => {
|
|
11804
|
+
n(i), k(I);
|
|
11805
11805
|
}, []);
|
|
11806
11806
|
return {
|
|
11807
11807
|
simRole: l,
|
|
@@ -11815,13 +11815,13 @@ function wd(A) {
|
|
|
11815
11815
|
simPatientReportLabel: K,
|
|
11816
11816
|
setSimPatientReportLabel: k,
|
|
11817
11817
|
simulationReportId: c,
|
|
11818
|
-
simulationSessionReady:
|
|
11818
|
+
simulationSessionReady: e,
|
|
11819
11819
|
resetSimulationSession: u,
|
|
11820
|
-
onChoosePractitioner:
|
|
11821
|
-
onChoosePatient:
|
|
11822
|
-
onBackFromPatientPicker:
|
|
11823
|
-
onBackFromPatientReportPicker:
|
|
11824
|
-
onSelectPatient:
|
|
11820
|
+
onChoosePractitioner: W,
|
|
11821
|
+
onChoosePatient: j,
|
|
11822
|
+
onBackFromPatientPicker: d,
|
|
11823
|
+
onBackFromPatientReportPicker: o,
|
|
11824
|
+
onSelectPatient: b,
|
|
11825
11825
|
onSelectPatientReport: J
|
|
11826
11826
|
};
|
|
11827
11827
|
}
|
|
@@ -11896,66 +11896,66 @@ function Bq({
|
|
|
11896
11896
|
dashboardContentFetchers: K,
|
|
11897
11897
|
onDashboardTabContentLoadError: k,
|
|
11898
11898
|
onExportReports: c,
|
|
11899
|
-
renderMainContent:
|
|
11899
|
+
renderMainContent: e,
|
|
11900
11900
|
activeNavItemId: u,
|
|
11901
|
-
defaultActiveNavItemId:
|
|
11902
|
-
onActiveNavItemChange:
|
|
11903
|
-
shellClassName:
|
|
11904
|
-
sideMenuClassName:
|
|
11905
|
-
mainClassName:
|
|
11901
|
+
defaultActiveNavItemId: W = Jd,
|
|
11902
|
+
onActiveNavItemChange: j,
|
|
11903
|
+
shellClassName: d,
|
|
11904
|
+
sideMenuClassName: o,
|
|
11905
|
+
mainClassName: b,
|
|
11906
11906
|
sidebarWidthClassName: J,
|
|
11907
11907
|
dashboardTabContentCacheTtlMs: i
|
|
11908
11908
|
}) {
|
|
11909
11909
|
var qA, at, T, Y, aA;
|
|
11910
11910
|
fq();
|
|
11911
|
-
const { resolvedBranding:
|
|
11911
|
+
const { resolvedBranding: I, rootStyle: O } = Ld(A), E = ((qA = A == null ? void 0 : A.layout) == null ? void 0 : qA.navigationMode) ?? "side", X = S === "full" && (((at = A == null ? void 0 : A.layout) == null ? void 0 : at.showReportSelector) ?? !0), s = z(
|
|
11912
11912
|
() => vq(l),
|
|
11913
11913
|
[l]
|
|
11914
11914
|
), P = z(
|
|
11915
11915
|
() => ({
|
|
11916
|
-
...pc(
|
|
11916
|
+
...pc(s == null ? void 0 : s.reportHttpConfig, n),
|
|
11917
11917
|
userType: (n == null ? void 0 : n.userType) ?? p
|
|
11918
11918
|
}),
|
|
11919
|
-
[n,
|
|
11919
|
+
[n, s == null ? void 0 : s.reportHttpConfig, p]
|
|
11920
11920
|
), Q = Gd(
|
|
11921
11921
|
P,
|
|
11922
11922
|
void 0,
|
|
11923
11923
|
X
|
|
11924
|
-
),
|
|
11924
|
+
), G = V ?? (s == null ? void 0 : s.sideMenuUserProfile), Z = u === void 0 ? (s == null ? void 0 : s.activeNavItemId) ?? W : W, C = s != null && s.error && r === void 0 && e === void 0 ? /* @__PURE__ */ t(
|
|
11925
11925
|
Hd,
|
|
11926
11926
|
{
|
|
11927
|
-
message:
|
|
11927
|
+
message: s.error,
|
|
11928
11928
|
className: "max-w-full shrink-0"
|
|
11929
11929
|
}
|
|
11930
11930
|
) : r, L = wd(p), { activeItemId: $, handleNavItemClick: D } = Md({
|
|
11931
11931
|
activeNavItemIdProp: u,
|
|
11932
11932
|
defaultActiveNavItemId: Z,
|
|
11933
|
-
onActiveNavItemChange:
|
|
11933
|
+
onActiveNavItemChange: j
|
|
11934
11934
|
}), v = S === "symptom-only" ? gq : $, nA = ((T = ut.find((w) => w.id === v)) == null ? void 0 : T.label) ?? v, AA = z(
|
|
11935
|
-
() => U !== void 0 ? U : vd(
|
|
11936
|
-
[
|
|
11937
|
-
),
|
|
11935
|
+
() => U !== void 0 ? U : vd(I),
|
|
11936
|
+
[I, U]
|
|
11937
|
+
), h = Bd({
|
|
11938
11938
|
reportHttpConfig: Q.reportHttpConfigWithSelection,
|
|
11939
11939
|
dashboardContentFetchers: K,
|
|
11940
11940
|
onExportReports: c,
|
|
11941
11941
|
content: C,
|
|
11942
|
-
renderMainContent:
|
|
11942
|
+
renderMainContent: e,
|
|
11943
11943
|
dashboardTabContentCacheTtlMs: i,
|
|
11944
11944
|
patientAccessMode: S,
|
|
11945
11945
|
simulationReportId: L.simulationReportId
|
|
11946
11946
|
}), dA = z(
|
|
11947
11947
|
() => tc(
|
|
11948
|
-
Ac(
|
|
11948
|
+
Ac(h.availableReportPages),
|
|
11949
11949
|
S
|
|
11950
11950
|
),
|
|
11951
|
-
[S,
|
|
11951
|
+
[S, h.availableReportPages]
|
|
11952
11952
|
), oA = B(async () => {
|
|
11953
|
-
S !== "full" || Sc() || await
|
|
11954
|
-
}, [S,
|
|
11953
|
+
S !== "full" || Sc() || await h.resolvedExportReports();
|
|
11954
|
+
}, [S, h.resolvedExportReports]), cA = z(
|
|
11955
11955
|
() => new Set(dA.filter((w) => w.disabled).map((w) => w.id)),
|
|
11956
11956
|
[dA]
|
|
11957
11957
|
);
|
|
11958
|
-
|
|
11958
|
+
F(() => {
|
|
11959
11959
|
if (cA.has(v)) {
|
|
11960
11960
|
const w = dA.find((It) => !It.disabled);
|
|
11961
11961
|
w && D(w.id);
|
|
@@ -11969,21 +11969,21 @@ function Bq({
|
|
|
11969
11969
|
), KA = z(
|
|
11970
11970
|
() => [
|
|
11971
11971
|
"flex min-h-0 min-w-0 w-full max-w-full flex-1 flex-col items-stretch gap-4 px-3 py-4 text-[color:var(--mb-color-text-muted)] sm:px-[max(1.25rem,var(--mb-main-padding,1.5rem))]",
|
|
11972
|
-
|
|
11972
|
+
b
|
|
11973
11973
|
].filter(Boolean).join(" "),
|
|
11974
|
-
[
|
|
11975
|
-
), uA =
|
|
11974
|
+
[b]
|
|
11975
|
+
), uA = h.useDefaultTabData, EA = /* @__PURE__ */ a(lA, { children: [
|
|
11976
11976
|
/* @__PURE__ */ t(aV, {}),
|
|
11977
11977
|
/* @__PURE__ */ t(
|
|
11978
11978
|
sd,
|
|
11979
11979
|
{
|
|
11980
|
-
renderMainContent:
|
|
11980
|
+
renderMainContent: e,
|
|
11981
11981
|
content: C,
|
|
11982
11982
|
activeItemId: v,
|
|
11983
11983
|
activeLabel: nA,
|
|
11984
|
-
resolvedDashboardContentFetchers:
|
|
11984
|
+
resolvedDashboardContentFetchers: h.resolvedDashboardContentFetchers,
|
|
11985
11985
|
onDashboardTabContentLoadError: k,
|
|
11986
|
-
sideMenuUserProfile:
|
|
11986
|
+
sideMenuUserProfile: G
|
|
11987
11987
|
}
|
|
11988
11988
|
)
|
|
11989
11989
|
] }), sA = /* @__PURE__ */ t(
|
|
@@ -11997,29 +11997,30 @@ function Bq({
|
|
|
11997
11997
|
Pd,
|
|
11998
11998
|
{
|
|
11999
11999
|
wrapTabContentCache: uA,
|
|
12000
|
-
fetchers:
|
|
12001
|
-
cacheTtlMs:
|
|
12000
|
+
fetchers: h.resolvedDashboardContentFetchers,
|
|
12001
|
+
cacheTtlMs: h.resolvedCacheTtlMs,
|
|
12002
|
+
cacheKey: h.reportAvailabilityKey,
|
|
12002
12003
|
viewProps: {
|
|
12003
|
-
rootStyle:
|
|
12004
|
+
rootStyle: O,
|
|
12004
12005
|
enableTabContentCache: uA,
|
|
12005
|
-
menuTitle: q !== void 0 ? q :
|
|
12006
|
+
menuTitle: q !== void 0 ? q : I.title,
|
|
12006
12007
|
logo: AA,
|
|
12007
|
-
sideMenuUserProfile:
|
|
12008
|
+
sideMenuUserProfile: G,
|
|
12008
12009
|
sideMenuFooterContent: sA,
|
|
12009
|
-
currentReportLabel:
|
|
12010
|
+
currentReportLabel: h.currentReportLabel,
|
|
12010
12011
|
reportOptions: Q.reportOptions,
|
|
12011
12012
|
previousReportOptions: Q.previousReportOptions,
|
|
12012
12013
|
selectedReportId: Q.selectedReportId,
|
|
12013
12014
|
selectedPreviousReportId: Q.selectedPreviousReportId,
|
|
12014
12015
|
onReportChange: Q.onReportChange,
|
|
12015
12016
|
onPreviousReportChange: Q.onPreviousReportChange,
|
|
12016
|
-
navigationMode:
|
|
12017
|
+
navigationMode: E,
|
|
12017
12018
|
showReportSelector: X,
|
|
12018
|
-
sideMenuClassName:
|
|
12019
|
+
sideMenuClassName: o,
|
|
12019
12020
|
sideMenuItems: dA,
|
|
12020
12021
|
activeItemId: v,
|
|
12021
12022
|
handleNavItemClick: kA,
|
|
12022
|
-
shellClassName:
|
|
12023
|
+
shellClassName: d,
|
|
12023
12024
|
sidebarWidthClassName: J,
|
|
12024
12025
|
mainAreaClassName: KA,
|
|
12025
12026
|
mainContent: EA
|
|
@@ -12033,19 +12034,19 @@ function Bq({
|
|
|
12033
12034
|
}),
|
|
12034
12035
|
[kA, oA, S]
|
|
12035
12036
|
);
|
|
12036
|
-
return /* @__PURE__ */ t(_r, { value:
|
|
12037
|
+
return /* @__PURE__ */ t(_r, { value: h.reportPagesApiBaseUrl, children: /* @__PURE__ */ t(R1, { value: N, children: /* @__PURE__ */ t(
|
|
12037
12038
|
qV,
|
|
12038
12039
|
{
|
|
12039
|
-
initial: (Y =
|
|
12040
|
-
config:
|
|
12041
|
-
readPage: S === "symptom-only" &&
|
|
12040
|
+
initial: (Y = h.fullReport) == null ? void 0 : Y.soap_notes,
|
|
12041
|
+
config: h.resolvedHttpConfig,
|
|
12042
|
+
readPage: S === "symptom-only" && h.useDefaultTabData ? "questionnaire-analysis" : void 0,
|
|
12042
12043
|
activePage: v,
|
|
12043
12044
|
onNavigate: kA,
|
|
12044
|
-
style:
|
|
12045
|
+
style: O,
|
|
12045
12046
|
children: /* @__PURE__ */ t(Zn, { value: A == null ? void 0 : A.suggestedProducts, children: /* @__PURE__ */ t(
|
|
12046
12047
|
xd,
|
|
12047
12048
|
{
|
|
12048
|
-
rootStyle:
|
|
12049
|
+
rootStyle: O,
|
|
12049
12050
|
simulationSessionReady: L.simulationSessionReady,
|
|
12050
12051
|
simRole: L.simRole,
|
|
12051
12052
|
onSelectPatient: L.onSelectPatient,
|
|
@@ -12056,7 +12057,7 @@ function Bq({
|
|
|
12056
12057
|
}
|
|
12057
12058
|
) })
|
|
12058
12059
|
},
|
|
12059
|
-
`${
|
|
12060
|
+
`${h.reportAvailabilityKey}|${((aA = h.fullReport) == null ? void 0 : aA.report.id) ?? ""}`
|
|
12060
12061
|
) }) });
|
|
12061
12062
|
}
|
|
12062
12063
|
const Ct = /* @__PURE__ */ new Map();
|
|
@@ -12109,7 +12110,7 @@ function Uc({
|
|
|
12109
12110
|
() => U ? `${q ?? S ?? "us"}:${U}` : void 0,
|
|
12110
12111
|
[q, S, U]
|
|
12111
12112
|
), [r, n] = y(() => !V);
|
|
12112
|
-
|
|
12113
|
+
F(() => {
|
|
12113
12114
|
if (!U) {
|
|
12114
12115
|
n(!0);
|
|
12115
12116
|
return;
|
|
@@ -12124,13 +12125,13 @@ function Uc({
|
|
|
12124
12125
|
);
|
|
12125
12126
|
}, [q, S, U]);
|
|
12126
12127
|
const K = B(
|
|
12127
|
-
async ({ responseBody: c, status:
|
|
12128
|
+
async ({ responseBody: c, status: e }) => {
|
|
12128
12129
|
if (!(l != null && l.embedToken)) return !1;
|
|
12129
12130
|
const u = p ? Dq(
|
|
12130
12131
|
await p({
|
|
12131
12132
|
renderContext: l,
|
|
12132
12133
|
responseBody: c,
|
|
12133
|
-
status:
|
|
12134
|
+
status: e
|
|
12134
12135
|
})
|
|
12135
12136
|
) : await wq({
|
|
12136
12137
|
renderContext: l,
|
|
@@ -12181,11 +12182,11 @@ function nc({
|
|
|
12181
12182
|
requestId: l.requestId,
|
|
12182
12183
|
status: "loading"
|
|
12183
12184
|
});
|
|
12184
|
-
const
|
|
12185
|
-
|
|
12185
|
+
const e = new Headers(k == null ? void 0 : k.headers);
|
|
12186
|
+
e.set("Authorization", `Bearer ${l.token}`), e.set("Content-Type", "application/json"), e.set("Accept", "application/json");
|
|
12186
12187
|
const u = await fetch(Vc(l.backendBaseUrl), {
|
|
12187
12188
|
method: "POST",
|
|
12188
|
-
headers:
|
|
12189
|
+
headers: e,
|
|
12189
12190
|
body: JSON.stringify({
|
|
12190
12191
|
simulation: {
|
|
12191
12192
|
algorithmVersion: l.algorithmVersion,
|
|
@@ -12206,7 +12207,7 @@ function nc({
|
|
|
12206
12207
|
};
|
|
12207
12208
|
return Object.assign(n, { abort: () => V.abort() }), n;
|
|
12208
12209
|
}, [p, l]);
|
|
12209
|
-
|
|
12210
|
+
F(
|
|
12210
12211
|
() => () => {
|
|
12211
12212
|
var V;
|
|
12212
12213
|
(V = S.abort) == null || V.call(S);
|
|
@@ -12272,7 +12273,7 @@ function Kc({
|
|
|
12272
12273
|
},
|
|
12273
12274
|
[U]
|
|
12274
12275
|
);
|
|
12275
|
-
return
|
|
12276
|
+
return F(() => {
|
|
12276
12277
|
window.addEventListener("message", V);
|
|
12277
12278
|
for (const r of U)
|
|
12278
12279
|
window.parent.postMessage({ type: $q }, r);
|
|
@@ -12302,7 +12303,7 @@ export {
|
|
|
12302
12303
|
yc as AlertLabSummaryTab,
|
|
12303
12304
|
i1 as AlertLabSummaryTabSkeleton,
|
|
12304
12305
|
CA as Badge,
|
|
12305
|
-
|
|
12306
|
+
f as Button,
|
|
12306
12307
|
Zq as DASHBOARD_TAB_NAV_IDS,
|
|
12307
12308
|
ll as DASHBOARD_TAB_PLUGINS,
|
|
12308
12309
|
ud as DEFAULT_DASHBOARD_TAB_CONTENT_CACHE_TTL_MS,
|
|
@@ -12342,7 +12343,7 @@ export {
|
|
|
12342
12343
|
$q as METABOLIC_REPORT_SIMULATION_READY_TYPE,
|
|
12343
12344
|
lk as METABOLIC_REPORT_SIMULATION_SET_TYPE,
|
|
12344
12345
|
Wp as METABOLIC_REPORT_SIMULATION_STATUS_TYPE,
|
|
12345
|
-
|
|
12346
|
+
H as METABOLIC_THEME_COLORS,
|
|
12346
12347
|
sa as METABOLIC_THEME_COLOR_CSS_VARIABLES,
|
|
12347
12348
|
ES as METABOLIC_TRIAD_ICON_SRC,
|
|
12348
12349
|
mc as MetabolicCodePatientProgress,
|
|
@@ -12380,7 +12381,7 @@ export {
|
|
|
12380
12381
|
Lc as SideMenuFooter,
|
|
12381
12382
|
xK as SideMenuNavButton,
|
|
12382
12383
|
gp as SkeletonCircle,
|
|
12383
|
-
|
|
12384
|
+
R as SkeletonRect,
|
|
12384
12385
|
KK as SuggestedProductsIcon,
|
|
12385
12386
|
Cc as SuggestedProductsTab,
|
|
12386
12387
|
Gn as SuggestedProductsTabSkeleton,
|