@metaboliccode-dev/widget 0.2.17 → 0.2.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/MetabolicDashboard/api/reportPageTypes.d.ts +1 -1
- package/dist/MetabolicDashboard/dashboardTab/dashboardTabDefinitions.d.ts +2 -0
- package/dist/components/DashboardTab/CategoryTableRow.d.ts +2 -1
- package/dist/components/DashboardTab/TotalPredictiveTrendsSection.d.ts +1 -1
- package/dist/components/dashboard/data/contentTypes.d.ts +2 -0
- package/dist/index.css +1 -1
- package/dist/index.js +770 -733
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3,7 +3,7 @@ var Jr = (e, r, n) => r in e ? qr(e, r, { enumerable: !0, configurable: !0, writ
|
|
|
3
3
|
var yt = (e, r, n) => Jr(e, typeof r != "symbol" ? r + "" : r, n);
|
|
4
4
|
import { useAgCharts as Me, ensureAgChartsModules as _r } from "./ag-charts.js";
|
|
5
5
|
import { jsx as t, jsxs as l, Fragment as ae } from "react/jsx-runtime";
|
|
6
|
-
import { useRef as F, useState as
|
|
6
|
+
import { useRef as F, useState as k, useLayoutEffect as $e, useMemo as j, useId as at, useCallback as I, isValidElement as $r, cloneElement as en, useEffect as V, useContext as ot, createContext as qt, lazy as Q, useReducer as tn, Component as rn, Suspense as nn, StrictMode as an } from "react";
|
|
7
7
|
import { A as lt, a as on } from "./vendor-ag-charts-W8mi59GS.js";
|
|
8
8
|
import { createRoot as ln } from "react-dom/client";
|
|
9
9
|
import { createPortal as Jt } from "react-dom";
|
|
@@ -79,7 +79,7 @@ function _t(e) {
|
|
|
79
79
|
"--mb-category-panel-header-height": o.categoryPanelHeaderHeight
|
|
80
80
|
};
|
|
81
81
|
}
|
|
82
|
-
const sn = "data:image/svg+xml,%3csvg%20width='220'%20height='29'%20viewBox='0%200%20220%2029'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_96_1263)'%3e%3cpath%20d='M15.7296%2020.8716C17.8177%2020.8716%2019.5105%2019.1788%2019.5105%2017.0906C19.5105%2015.0024%2017.8177%2013.3096%2015.7296%2013.3096C13.6414%2013.3096%2011.9486%2015.0024%2011.9486%2017.0906C11.9486%2019.1788%2013.6414%2020.8716%2015.7296%2020.8716Z'%20fill='black'/%3e%3cpath%20d='M40.1166%204.41165H45.1623L49.4822%2016.4983H49.6826L54.0024%204.41165H59.0704V21.8914H55.2761V10.6776H55.0757L51.0542%2021.8914H48.1061L44.1113%2010.6776H43.9109V21.8914H40.1166V4.41165Z'%20fill='black'/%3e%3cpath%20d='M61.6623%2015.572V14.8238C61.6623%2011.0784%2063.7866%208.17925%2068.4049%208.17925C73.0231%208.17925%2074.7733%2010.8023%2074.7733%2014.6457V15.7946H65.283V15.9461C65.283%2018.2173%2066.1559%2019.2416%2068.4049%2019.2416C70.4045%2019.2416%2071.1749%2018.3197%2071.2283%2017.4959L71.2551%2017.1218H74.7777C74.7287%2019.7938%2072.8316%2022.2165%2068.3336%2022.2165C63.8356%2022.2165%2061.6668%2019.3218%2061.6668%2015.572H61.6623ZM71.2239%2013.6258C71.0502%2011.8044%2070.2753%2010.9805%2068.3291%2010.9805C66.383%2010.9805%2065.4567%2011.8044%2065.3097%2013.6258H71.2283H71.2239Z'%20fill='black'/%3e%3cpath%20d='M77.9798%2018.1193V11.5015H76.0336V8.50436H77.9798V5.73432L81.6494%204.93715V8.50881H84.9449V11.506H81.6494V17.9011C81.6494%2018.5736%2081.9745%2018.8987%2082.647%2018.8987H84.9182V21.8959C84.0453%2021.9938%2083.0967%2022.0963%2081.9478%2022.0963C79.1243%2022.0963%2077.9753%2020.9473%2077.9753%2018.1238L77.9798%2018.1193Z'%20fill='black'/%3e%3cpath%20d='M95.3972%2019.295H95.1968C94.4219%2021.1699%2093.2996%2022.2655%2090.6498%2022.2655C88.1514%2022.2655%2086.4057%2020.9428%2086.4057%2018.5691V17.8699C86.4057%2015.6744%2088.1024%2014.1246%2091.3%2014.1246H95.2457V13.176C95.2457%2011.5772%2094.5198%2010.927%2092.8988%2010.927C91.2777%2010.927%2090.5251%2011.5015%2090.4538%2012.5481L90.4271%2012.8999H86.9044C87.0291%209.75132%2088.9263%208.13026%2093.0992%208.13026C96.9959%208.13026%2098.9198%209.55537%2098.9198%2013.323V18.1193C98.9198%2018.7918%2099.1959%2019.0456%2099.8684%2019.0456H100.394V21.8914C99.8461%2021.9894%2099.2449%2022.0918%2098.3231%2022.0918C96.4749%2022.0918%2095.4016%2021.3169%2095.4016%2019.295H95.3972ZM91.8522%2019.491C94.2482%2019.491%2095.2502%2018.7918%2095.2502%2016.6452V16.2979H91.7275C90.5518%2016.2979%2090.004%2016.8724%2090.004%2017.7942V18.0926C90.004%2018.9922%2090.6275%2019.491%2091.8522%2019.491Z'%20fill='black'/%3e%3cpath%20d='M115.843%2014.8728V15.523C115.843%2019.5444%20114.044%2022.2165%20110.597%2022.2165C108.125%2022.2165%20106.802%2021.0185%20106.174%2018.872H105.974V21.8914H102.304V3.66346H105.974V11.5282H106.174C106.798%209.38168%20108.121%208.18371%20110.597%208.18371C114.044%208.18371%20115.843%2010.8825%20115.843%2014.8772V14.8728ZM109.074%2019.0189C111.171%2019.0189%20112.044%2018.1193%20112.044%2015.7457V14.6724C112.044%2012.2764%20111.171%2011.3768%20109.074%2011.3768C106.851%2011.3768%20105.979%2012.2764%20105.979%2014.6234V15.8971C105.979%2018.1193%20106.851%2019.0189%20109.074%2019.0189Z'%20fill='black'/%3e%3cpath%20d='M131.167%2014.8238V15.572C131.167%2019.3173%20129.021%2022.2165%20124.398%2022.2165C119.775%2022.2165%20117.655%2019.3218%20117.655%2015.572V14.8238C117.655%2011.0784%20119.802%208.17925%20124.398%208.17925C128.994%208.17925%20131.167%2011.074%20131.167%2014.8238ZM124.402%2019.1703C126.451%2019.1703%20127.373%2018.2975%20127.373%2015.9505V14.4542C127.373%2012.1339%20126.447%2011.2566%20124.402%2011.2566C122.358%2011.2566%20121.454%2012.1295%20121.454%2014.4542V15.9505C121.454%2018.2975%20122.381%2019.1703%20124.402%2019.1703Z'%20fill='black'/%3e%3cpath%20d='M133.519%203.65901H137.188V21.8869H133.519V3.65901Z'%20fill='black'/%3e%3cpath%20d='M139.963%203.76144H143.859V6.65618H139.963V3.76144ZM140.065%208.50436H143.735V21.8914H140.065V8.50436Z'%20fill='black'/%3e%3cpath%20d='M155.34%2016.7699H158.863C158.814%2019.7404%20156.988%2022.212%20152.668%2022.212C148.072%2022.212%20146.002%2019.3173%20146.002%2015.5675V14.8193C146.002%2011.074%20148.072%208.1748%20152.668%208.1748C156.988%208.1748%20158.81%2010.6732%20158.863%2013.4922H155.34L155.314%2013.1181C155.265%2012.1428%20154.539%2011.2432%20152.668%2011.2432C150.571%2011.2432%20149.796%2012.2408%20149.796%2014.4408V15.9371C149.796%2018.1327%20150.571%2019.157%20152.668%2019.157C154.543%2019.157%20155.265%2018.1594%20155.314%2017.1351L155.34%2016.761V16.7699Z'%20fill='black'/%3e%3cpath%20d='M160.903%2012.8955C160.903%205.58736%20162.221%203.55213%20169.066%203.55213C175.287%203.55213%20176.695%205.5161%20176.695%209.77359V9.86711H175.421V9.82257C175.421%206.28654%20174.45%204.78128%20169.062%204.78128C163.236%204.78128%20162.217%206.07723%20162.217%2012.8955C162.217%2019.7137%20163.232%2021.0096%20169.062%2021.0096C174.588%2021.0096%20175.488%2019.7137%20175.488%2015.6699V15.5987H176.784V15.6922C176.784%2020.4307%20175.443%2022.2343%20169.062%2022.2343C162.217%2022.2343%20160.898%2020.1991%20160.898%2012.891L160.903%2012.8955Z'%20fill='black'/%3e%3cpath%20d='M179.3%2015.6254C179.3%2010.7712%20180.431%209.1991%20185.334%209.1991C190.238%209.1991%20191.347%2010.7712%20191.347%2015.6254C191.347%2020.4797%20190.215%2022.0295%20185.334%2022.0295C180.453%2022.0295%20179.3%2020.4574%20179.3%2015.6254ZM185.334%2020.8716C189.267%2020.8716%20190.073%2019.8784%20190.073%2015.621C190.073%2011.3635%20189.262%2010.3481%20185.334%2010.3481C181.406%2010.3481%20180.569%2011.3412%20180.569%2015.621C180.569%2019.9007%20181.38%2020.8716%20185.334%2020.8716Z'%20fill='black'/%3e%3cpath%20d='M193.827%2015.6254C193.827%2010.7712%20194.843%209.1991%20199.398%209.1991C202.961%209.1991%20203.723%2010.0319%20204.253%2011.3946H204.297V3.90395H205.522V21.8914H204.297V19.8339H204.275C203.767%2021.1521%20202.957%2022.0295%20199.398%2022.0295C194.843%2022.0295%20193.827%2020.4574%20193.827%2015.6254ZM199.724%2020.8716C203.398%2020.8716%20204.302%2019.7137%20204.302%2016.8234V14.4185C204.302%2011.4837%20203.398%2010.3481%20199.724%2010.3481C195.862%2010.3481%20195.101%2011.3189%20195.101%2015.621C195.101%2019.923%20195.862%2020.8716%20199.724%2020.8716Z'%20fill='black'/%3e%3cpath%20d='M208.368%2015.6254C208.368%2010.7934%20209.432%209.1991%20214.242%209.1991C218.588%209.1991%20219.929%2010.5173%20219.929%2014.5655V15.9772H209.641C209.664%2019.9542%20210.381%2020.925%20214.451%2020.925C217.551%2020.925%20218.66%2020.3238%20218.66%2017.7586V17.6428H219.906V17.7809C219.906%2021.1343%20218.357%2022.0339%20214.451%2022.0339C209.432%2022.0339%20208.372%2020.4841%20208.372%2015.6299L208.368%2015.6254ZM218.655%2014.8594V14.3295C218.655%2011.2299%20217.729%2010.308%20214.237%2010.308C210.536%2010.308%20209.681%2011.3234%20209.637%2014.8639H218.655V14.8594Z'%20fill='black'/%3e%3cpath%20d='M22.0045%2028.5003H4.99231C2.23563%2028.5003%200%2026.2647%200%2023.508C0%2019.6736%204.13725%2017.2687%207.46842%2019.1703L22.2449%2027.5963C22.6769%2027.8412%2022.5032%2028.5048%2022.0045%2028.5048V28.5003Z'%20fill='black'/%3e%3cpath%20d='M22.2628%206.27764L30.7866%2020.9963C32.1672%2023.3833%2031.3567%2026.4384%2028.9696%2027.8234C25.6518%2029.7428%2021.4968%2027.3691%2021.47%2023.5347L21.3542%206.52257C21.3542%206.02379%2022.0089%205.84566%2022.2583%206.27764H22.2628Z'%20fill='black'/%3e%3cpath%20d='M2.99271%2017.2242L11.5032%202.49666C12.8838%200.10962%2015.9389%20-0.709816%2018.3259%200.670751C21.6437%202.58573%2021.6571%207.37318%2018.3482%209.30597L3.66073%2017.8878C3.22874%2018.1372%202.74777%2017.6562%202.99717%2017.2242H2.99271Z'%20fill='black'/%3e%3cpath%20d='M72.9607%2027.1465H40.5352C40.2057%2027.1465%2039.9385%2026.8793%2039.9385%2026.5497C39.9385%2026.2202%2040.2057%2025.9529%2040.5352%2025.9529H72.9607C73.2903%2025.9529%2073.5575%2026.2202%2073.5575%2026.5497C73.5575%2026.8793%2073.2903%2027.1465%2072.9607%2027.1465Z'%20fill='black'/%3e%3cpath%20d='M109.684%2027.1465H77.2583C76.9287%2027.1465%2076.6615%2026.8793%2076.6615%2026.5497C76.6615%2026.2201%2076.9287%2025.9529%2077.2583%2025.9529H109.684C110.013%2025.9529%20110.281%2026.2201%20110.281%2026.5497C110.281%2026.8793%20110.013%2027.1465%20109.684%2027.1465Z'%20fill='black'/%3e%3cpath%20d='M146.402%2027.1465H113.977C113.647%2027.1465%20113.38%2026.8793%20113.38%2026.5497C113.38%2026.2201%20113.647%2025.9529%20113.977%2025.9529H146.402C146.732%2025.9529%20146.999%2026.2201%20146.999%2026.5497C146.999%2026.8793%20146.732%2027.1465%20146.402%2027.1465Z'%20fill='black'/%3e%3cpath%20d='M183.126%2027.1465H150.7C150.37%2027.1465%20150.103%2026.8793%20150.103%2026.5497C150.103%2026.2201%20150.37%2025.9529%20150.7%2025.9529H183.126C183.455%2025.9529%20183.722%2026.2201%20183.722%2026.5497C183.722%2026.8793%20183.455%2027.1465%20183.126%2027.1465Z'%20fill='black'/%3e%3cpath%20d='M219.849%2027.1465H187.423C187.094%2027.1465%20186.826%2026.8793%20186.826%2026.5497C186.826%2026.2201%20187.094%2025.9529%20187.423%2025.9529H219.849C220.178%2025.9529%20220.445%2026.2201%20220.445%2026.5497C220.445%2026.8793%20220.178%2027.1465%20219.849%2027.1465Z'%20fill='black'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_96_1263'%3e%3crect%20width='220'%20height='28.502'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e", cn = "data:image/svg+xml,%3csvg%20width='32'%20height='29'%20viewBox='0%200%2032%2029'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M15.7297%2020.8716C17.8179%2020.8716%2019.5107%2019.1788%2019.5107%2017.0906C19.5107%2015.0024%2017.8179%2013.3096%2015.7297%2013.3096C13.6415%2013.3096%2011.9487%2015.0024%2011.9487%2017.0906C11.9487%2019.1788%2013.6415%2020.8716%2015.7297%2020.8716Z'%20fill='black'/%3e%3cpath%20d='M22.0045%2028.5003H4.99231C2.23563%2028.5003%200%2026.2647%200%2023.508C0%2019.6736%204.13725%2017.2687%207.46842%2019.1703L22.2449%2027.5963C22.6769%2027.8412%2022.5032%2028.5048%2022.0045%2028.5048V28.5003Z'%20fill='black'/%3e%3cpath%20d='M22.263%206.27764L30.7869%2020.9963C32.1674%2023.3833%2031.3569%2026.4384%2028.9699%2027.8234C25.6521%2029.7428%2021.497%2027.3691%2021.4703%2023.5347L21.3545%206.52257C21.3545%206.02379%2022.0091%205.84566%2022.2585%206.27764H22.263Z'%20fill='black'/%3e%3cpath%20d='M2.99266%2017.2242L11.5032%202.49666C12.8838%200.109618%2015.9388%20-0.709818%2018.3259%200.670749C21.6437%202.58573%2021.657%207.37318%2018.3481%209.30597L3.66067%2017.8878C3.22869%2018.1372%202.74772%2017.6562%202.99711%2017.2242H2.99266Z'%20fill='black'/%3e%3c/svg%3e", dn = "290px", k = {
|
|
82
|
+
const sn = "data:image/svg+xml,%3csvg%20width='220'%20height='29'%20viewBox='0%200%20220%2029'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_96_1263)'%3e%3cpath%20d='M15.7296%2020.8716C17.8177%2020.8716%2019.5105%2019.1788%2019.5105%2017.0906C19.5105%2015.0024%2017.8177%2013.3096%2015.7296%2013.3096C13.6414%2013.3096%2011.9486%2015.0024%2011.9486%2017.0906C11.9486%2019.1788%2013.6414%2020.8716%2015.7296%2020.8716Z'%20fill='black'/%3e%3cpath%20d='M40.1166%204.41165H45.1623L49.4822%2016.4983H49.6826L54.0024%204.41165H59.0704V21.8914H55.2761V10.6776H55.0757L51.0542%2021.8914H48.1061L44.1113%2010.6776H43.9109V21.8914H40.1166V4.41165Z'%20fill='black'/%3e%3cpath%20d='M61.6623%2015.572V14.8238C61.6623%2011.0784%2063.7866%208.17925%2068.4049%208.17925C73.0231%208.17925%2074.7733%2010.8023%2074.7733%2014.6457V15.7946H65.283V15.9461C65.283%2018.2173%2066.1559%2019.2416%2068.4049%2019.2416C70.4045%2019.2416%2071.1749%2018.3197%2071.2283%2017.4959L71.2551%2017.1218H74.7777C74.7287%2019.7938%2072.8316%2022.2165%2068.3336%2022.2165C63.8356%2022.2165%2061.6668%2019.3218%2061.6668%2015.572H61.6623ZM71.2239%2013.6258C71.0502%2011.8044%2070.2753%2010.9805%2068.3291%2010.9805C66.383%2010.9805%2065.4567%2011.8044%2065.3097%2013.6258H71.2283H71.2239Z'%20fill='black'/%3e%3cpath%20d='M77.9798%2018.1193V11.5015H76.0336V8.50436H77.9798V5.73432L81.6494%204.93715V8.50881H84.9449V11.506H81.6494V17.9011C81.6494%2018.5736%2081.9745%2018.8987%2082.647%2018.8987H84.9182V21.8959C84.0453%2021.9938%2083.0967%2022.0963%2081.9478%2022.0963C79.1243%2022.0963%2077.9753%2020.9473%2077.9753%2018.1238L77.9798%2018.1193Z'%20fill='black'/%3e%3cpath%20d='M95.3972%2019.295H95.1968C94.4219%2021.1699%2093.2996%2022.2655%2090.6498%2022.2655C88.1514%2022.2655%2086.4057%2020.9428%2086.4057%2018.5691V17.8699C86.4057%2015.6744%2088.1024%2014.1246%2091.3%2014.1246H95.2457V13.176C95.2457%2011.5772%2094.5198%2010.927%2092.8988%2010.927C91.2777%2010.927%2090.5251%2011.5015%2090.4538%2012.5481L90.4271%2012.8999H86.9044C87.0291%209.75132%2088.9263%208.13026%2093.0992%208.13026C96.9959%208.13026%2098.9198%209.55537%2098.9198%2013.323V18.1193C98.9198%2018.7918%2099.1959%2019.0456%2099.8684%2019.0456H100.394V21.8914C99.8461%2021.9894%2099.2449%2022.0918%2098.3231%2022.0918C96.4749%2022.0918%2095.4016%2021.3169%2095.4016%2019.295H95.3972ZM91.8522%2019.491C94.2482%2019.491%2095.2502%2018.7918%2095.2502%2016.6452V16.2979H91.7275C90.5518%2016.2979%2090.004%2016.8724%2090.004%2017.7942V18.0926C90.004%2018.9922%2090.6275%2019.491%2091.8522%2019.491Z'%20fill='black'/%3e%3cpath%20d='M115.843%2014.8728V15.523C115.843%2019.5444%20114.044%2022.2165%20110.597%2022.2165C108.125%2022.2165%20106.802%2021.0185%20106.174%2018.872H105.974V21.8914H102.304V3.66346H105.974V11.5282H106.174C106.798%209.38168%20108.121%208.18371%20110.597%208.18371C114.044%208.18371%20115.843%2010.8825%20115.843%2014.8772V14.8728ZM109.074%2019.0189C111.171%2019.0189%20112.044%2018.1193%20112.044%2015.7457V14.6724C112.044%2012.2764%20111.171%2011.3768%20109.074%2011.3768C106.851%2011.3768%20105.979%2012.2764%20105.979%2014.6234V15.8971C105.979%2018.1193%20106.851%2019.0189%20109.074%2019.0189Z'%20fill='black'/%3e%3cpath%20d='M131.167%2014.8238V15.572C131.167%2019.3173%20129.021%2022.2165%20124.398%2022.2165C119.775%2022.2165%20117.655%2019.3218%20117.655%2015.572V14.8238C117.655%2011.0784%20119.802%208.17925%20124.398%208.17925C128.994%208.17925%20131.167%2011.074%20131.167%2014.8238ZM124.402%2019.1703C126.451%2019.1703%20127.373%2018.2975%20127.373%2015.9505V14.4542C127.373%2012.1339%20126.447%2011.2566%20124.402%2011.2566C122.358%2011.2566%20121.454%2012.1295%20121.454%2014.4542V15.9505C121.454%2018.2975%20122.381%2019.1703%20124.402%2019.1703Z'%20fill='black'/%3e%3cpath%20d='M133.519%203.65901H137.188V21.8869H133.519V3.65901Z'%20fill='black'/%3e%3cpath%20d='M139.963%203.76144H143.859V6.65618H139.963V3.76144ZM140.065%208.50436H143.735V21.8914H140.065V8.50436Z'%20fill='black'/%3e%3cpath%20d='M155.34%2016.7699H158.863C158.814%2019.7404%20156.988%2022.212%20152.668%2022.212C148.072%2022.212%20146.002%2019.3173%20146.002%2015.5675V14.8193C146.002%2011.074%20148.072%208.1748%20152.668%208.1748C156.988%208.1748%20158.81%2010.6732%20158.863%2013.4922H155.34L155.314%2013.1181C155.265%2012.1428%20154.539%2011.2432%20152.668%2011.2432C150.571%2011.2432%20149.796%2012.2408%20149.796%2014.4408V15.9371C149.796%2018.1327%20150.571%2019.157%20152.668%2019.157C154.543%2019.157%20155.265%2018.1594%20155.314%2017.1351L155.34%2016.761V16.7699Z'%20fill='black'/%3e%3cpath%20d='M160.903%2012.8955C160.903%205.58736%20162.221%203.55213%20169.066%203.55213C175.287%203.55213%20176.695%205.5161%20176.695%209.77359V9.86711H175.421V9.82257C175.421%206.28654%20174.45%204.78128%20169.062%204.78128C163.236%204.78128%20162.217%206.07723%20162.217%2012.8955C162.217%2019.7137%20163.232%2021.0096%20169.062%2021.0096C174.588%2021.0096%20175.488%2019.7137%20175.488%2015.6699V15.5987H176.784V15.6922C176.784%2020.4307%20175.443%2022.2343%20169.062%2022.2343C162.217%2022.2343%20160.898%2020.1991%20160.898%2012.891L160.903%2012.8955Z'%20fill='black'/%3e%3cpath%20d='M179.3%2015.6254C179.3%2010.7712%20180.431%209.1991%20185.334%209.1991C190.238%209.1991%20191.347%2010.7712%20191.347%2015.6254C191.347%2020.4797%20190.215%2022.0295%20185.334%2022.0295C180.453%2022.0295%20179.3%2020.4574%20179.3%2015.6254ZM185.334%2020.8716C189.267%2020.8716%20190.073%2019.8784%20190.073%2015.621C190.073%2011.3635%20189.262%2010.3481%20185.334%2010.3481C181.406%2010.3481%20180.569%2011.3412%20180.569%2015.621C180.569%2019.9007%20181.38%2020.8716%20185.334%2020.8716Z'%20fill='black'/%3e%3cpath%20d='M193.827%2015.6254C193.827%2010.7712%20194.843%209.1991%20199.398%209.1991C202.961%209.1991%20203.723%2010.0319%20204.253%2011.3946H204.297V3.90395H205.522V21.8914H204.297V19.8339H204.275C203.767%2021.1521%20202.957%2022.0295%20199.398%2022.0295C194.843%2022.0295%20193.827%2020.4574%20193.827%2015.6254ZM199.724%2020.8716C203.398%2020.8716%20204.302%2019.7137%20204.302%2016.8234V14.4185C204.302%2011.4837%20203.398%2010.3481%20199.724%2010.3481C195.862%2010.3481%20195.101%2011.3189%20195.101%2015.621C195.101%2019.923%20195.862%2020.8716%20199.724%2020.8716Z'%20fill='black'/%3e%3cpath%20d='M208.368%2015.6254C208.368%2010.7934%20209.432%209.1991%20214.242%209.1991C218.588%209.1991%20219.929%2010.5173%20219.929%2014.5655V15.9772H209.641C209.664%2019.9542%20210.381%2020.925%20214.451%2020.925C217.551%2020.925%20218.66%2020.3238%20218.66%2017.7586V17.6428H219.906V17.7809C219.906%2021.1343%20218.357%2022.0339%20214.451%2022.0339C209.432%2022.0339%20208.372%2020.4841%20208.372%2015.6299L208.368%2015.6254ZM218.655%2014.8594V14.3295C218.655%2011.2299%20217.729%2010.308%20214.237%2010.308C210.536%2010.308%20209.681%2011.3234%20209.637%2014.8639H218.655V14.8594Z'%20fill='black'/%3e%3cpath%20d='M22.0045%2028.5003H4.99231C2.23563%2028.5003%200%2026.2647%200%2023.508C0%2019.6736%204.13725%2017.2687%207.46842%2019.1703L22.2449%2027.5963C22.6769%2027.8412%2022.5032%2028.5048%2022.0045%2028.5048V28.5003Z'%20fill='black'/%3e%3cpath%20d='M22.2628%206.27764L30.7866%2020.9963C32.1672%2023.3833%2031.3567%2026.4384%2028.9696%2027.8234C25.6518%2029.7428%2021.4968%2027.3691%2021.47%2023.5347L21.3542%206.52257C21.3542%206.02379%2022.0089%205.84566%2022.2583%206.27764H22.2628Z'%20fill='black'/%3e%3cpath%20d='M2.99271%2017.2242L11.5032%202.49666C12.8838%200.10962%2015.9389%20-0.709816%2018.3259%200.670751C21.6437%202.58573%2021.6571%207.37318%2018.3482%209.30597L3.66073%2017.8878C3.22874%2018.1372%202.74777%2017.6562%202.99717%2017.2242H2.99271Z'%20fill='black'/%3e%3cpath%20d='M72.9607%2027.1465H40.5352C40.2057%2027.1465%2039.9385%2026.8793%2039.9385%2026.5497C39.9385%2026.2202%2040.2057%2025.9529%2040.5352%2025.9529H72.9607C73.2903%2025.9529%2073.5575%2026.2202%2073.5575%2026.5497C73.5575%2026.8793%2073.2903%2027.1465%2072.9607%2027.1465Z'%20fill='black'/%3e%3cpath%20d='M109.684%2027.1465H77.2583C76.9287%2027.1465%2076.6615%2026.8793%2076.6615%2026.5497C76.6615%2026.2201%2076.9287%2025.9529%2077.2583%2025.9529H109.684C110.013%2025.9529%20110.281%2026.2201%20110.281%2026.5497C110.281%2026.8793%20110.013%2027.1465%20109.684%2027.1465Z'%20fill='black'/%3e%3cpath%20d='M146.402%2027.1465H113.977C113.647%2027.1465%20113.38%2026.8793%20113.38%2026.5497C113.38%2026.2201%20113.647%2025.9529%20113.977%2025.9529H146.402C146.732%2025.9529%20146.999%2026.2201%20146.999%2026.5497C146.999%2026.8793%20146.732%2027.1465%20146.402%2027.1465Z'%20fill='black'/%3e%3cpath%20d='M183.126%2027.1465H150.7C150.37%2027.1465%20150.103%2026.8793%20150.103%2026.5497C150.103%2026.2201%20150.37%2025.9529%20150.7%2025.9529H183.126C183.455%2025.9529%20183.722%2026.2201%20183.722%2026.5497C183.722%2026.8793%20183.455%2027.1465%20183.126%2027.1465Z'%20fill='black'/%3e%3cpath%20d='M219.849%2027.1465H187.423C187.094%2027.1465%20186.826%2026.8793%20186.826%2026.5497C186.826%2026.2201%20187.094%2025.9529%20187.423%2025.9529H219.849C220.178%2025.9529%20220.445%2026.2201%20220.445%2026.5497C220.445%2026.8793%20220.178%2027.1465%20219.849%2027.1465Z'%20fill='black'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_96_1263'%3e%3crect%20width='220'%20height='28.502'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e", cn = "data:image/svg+xml,%3csvg%20width='32'%20height='29'%20viewBox='0%200%2032%2029'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M15.7297%2020.8716C17.8179%2020.8716%2019.5107%2019.1788%2019.5107%2017.0906C19.5107%2015.0024%2017.8179%2013.3096%2015.7297%2013.3096C13.6415%2013.3096%2011.9487%2015.0024%2011.9487%2017.0906C11.9487%2019.1788%2013.6415%2020.8716%2015.7297%2020.8716Z'%20fill='black'/%3e%3cpath%20d='M22.0045%2028.5003H4.99231C2.23563%2028.5003%200%2026.2647%200%2023.508C0%2019.6736%204.13725%2017.2687%207.46842%2019.1703L22.2449%2027.5963C22.6769%2027.8412%2022.5032%2028.5048%2022.0045%2028.5048V28.5003Z'%20fill='black'/%3e%3cpath%20d='M22.263%206.27764L30.7869%2020.9963C32.1674%2023.3833%2031.3569%2026.4384%2028.9699%2027.8234C25.6521%2029.7428%2021.497%2027.3691%2021.4703%2023.5347L21.3545%206.52257C21.3545%206.02379%2022.0091%205.84566%2022.2585%206.27764H22.263Z'%20fill='black'/%3e%3cpath%20d='M2.99266%2017.2242L11.5032%202.49666C12.8838%200.109618%2015.9388%20-0.709818%2018.3259%200.670749C21.6437%202.58573%2021.657%207.37318%2018.3481%209.30597L3.66067%2017.8878C3.22869%2018.1372%202.74772%2017.6562%202.99711%2017.2242H2.99266Z'%20fill='black'/%3e%3c/svg%3e", dn = "290px", H = {
|
|
83
83
|
title: "",
|
|
84
84
|
logo: {
|
|
85
85
|
src: sn,
|
|
@@ -181,34 +181,34 @@ function mn() {
|
|
|
181
181
|
}
|
|
182
182
|
function un() {
|
|
183
183
|
return {
|
|
184
|
-
...
|
|
185
|
-
logo: { ...
|
|
186
|
-
fonts: { ...
|
|
187
|
-
colors: { ...
|
|
188
|
-
radius: { ...
|
|
189
|
-
sizes: { ...
|
|
190
|
-
button: { ...
|
|
191
|
-
sideMenu: { ...
|
|
192
|
-
badge: { ...
|
|
184
|
+
...H,
|
|
185
|
+
logo: { ...H.logo },
|
|
186
|
+
fonts: { ...H.fonts },
|
|
187
|
+
colors: { ...H.colors },
|
|
188
|
+
radius: { ...H.radius },
|
|
189
|
+
sizes: { ...H.sizes },
|
|
190
|
+
button: { ...H.button },
|
|
191
|
+
sideMenu: { ...H.sideMenu },
|
|
192
|
+
badge: { ...H.badge }
|
|
193
193
|
};
|
|
194
194
|
}
|
|
195
195
|
function bn(e) {
|
|
196
|
-
var g, v, u, h, f, p, y, C, N, w, P, A, S,
|
|
196
|
+
var g, v, u, h, f, p, y, C, N, w, P, A, S, T, R, G, B, q, $;
|
|
197
197
|
if (!e)
|
|
198
198
|
return un();
|
|
199
199
|
const r = {
|
|
200
|
-
...
|
|
200
|
+
...H.sizes,
|
|
201
201
|
...e.sizes
|
|
202
|
-
}, n = ((g = e.card) == null ? void 0 : g.padding) ?? r.cardPadding ??
|
|
203
|
-
...
|
|
202
|
+
}, n = ((g = e.card) == null ? void 0 : g.padding) ?? r.cardPadding ?? H.sizes.cardPadding, a = {
|
|
203
|
+
...H.button,
|
|
204
204
|
...e.button,
|
|
205
|
-
borderRadius: ((v = e.button) == null ? void 0 : v.borderRadius) ?? ((u = e.radius) == null ? void 0 : u.button) ??
|
|
205
|
+
borderRadius: ((v = e.button) == null ? void 0 : v.borderRadius) ?? ((u = e.radius) == null ? void 0 : u.button) ?? H.button.borderRadius
|
|
206
206
|
}, o = {
|
|
207
|
-
...
|
|
207
|
+
...H.badge,
|
|
208
208
|
...e.badge,
|
|
209
|
-
borderRadius: ((h = e.badge) == null ? void 0 : h.borderRadius) ?? ((f = e.radius) == null ? void 0 : f.badge) ??
|
|
209
|
+
borderRadius: ((h = e.badge) == null ? void 0 : h.borderRadius) ?? ((f = e.radius) == null ? void 0 : f.badge) ?? H.badge.borderRadius
|
|
210
210
|
}, i = {
|
|
211
|
-
...
|
|
211
|
+
...H.colors,
|
|
212
212
|
...e.colors
|
|
213
213
|
}, s = ((p = e.colors) == null ? void 0 : p.sideMenuItemText) ?? i.textPrimary, c = ((y = e.colors) == null ? void 0 : y.sideMenuItemTextActive) ?? i.textPrimary, d = {
|
|
214
214
|
...i,
|
|
@@ -220,30 +220,30 @@ function bn(e) {
|
|
|
220
220
|
badgeValueBackground: ((P = e.colors) == null ? void 0 : P.badgeValueBackground) ?? i.navHoverBackground,
|
|
221
221
|
badgeValueText: ((A = e.colors) == null ? void 0 : A.badgeValueText) ?? i.textPrimary,
|
|
222
222
|
badgeValueBorder: ((S = e.colors) == null ? void 0 : S.badgeValueBorder) ?? i.badgeValueBorder,
|
|
223
|
-
cardInlineButtonBackground: ((
|
|
224
|
-
cardInlineButtonBorder: ((
|
|
223
|
+
cardInlineButtonBackground: ((T = e.colors) == null ? void 0 : T.cardInlineButtonBackground) ?? i.cardBackground,
|
|
224
|
+
cardInlineButtonBorder: ((R = e.colors) == null ? void 0 : R.cardInlineButtonBorder) ?? i.cardBorder,
|
|
225
225
|
cardInlineButtonText: ((G = e.colors) == null ? void 0 : G.cardInlineButtonText) ?? i.textPrimary,
|
|
226
|
-
cardInlineButtonHoverBackground: ((
|
|
226
|
+
cardInlineButtonHoverBackground: ((B = e.colors) == null ? void 0 : B.cardInlineButtonHoverBackground) ?? i.navHoverBackground
|
|
227
227
|
}, m = {
|
|
228
|
-
...
|
|
228
|
+
...H.sideMenu,
|
|
229
229
|
...e.sideMenu
|
|
230
230
|
}, b = {
|
|
231
231
|
...m,
|
|
232
232
|
borderRadius: ((q = e.sideMenu) == null ? void 0 : q.borderRadius) ?? (e.sideMenu === void 0 ? ($ = e.radius) == null ? void 0 : $.navItem : void 0) ?? m.borderRadius
|
|
233
233
|
};
|
|
234
234
|
return {
|
|
235
|
-
title: e.title ??
|
|
235
|
+
title: e.title ?? H.title,
|
|
236
236
|
logo: {
|
|
237
|
-
...
|
|
237
|
+
...H.logo,
|
|
238
238
|
...e.logo
|
|
239
239
|
},
|
|
240
240
|
fonts: {
|
|
241
|
-
...
|
|
241
|
+
...H.fonts,
|
|
242
242
|
...e.fonts
|
|
243
243
|
},
|
|
244
244
|
colors: d,
|
|
245
245
|
radius: {
|
|
246
|
-
...
|
|
246
|
+
...H.radius,
|
|
247
247
|
...e.radius,
|
|
248
248
|
button: a.borderRadius,
|
|
249
249
|
badge: o.borderRadius
|
|
@@ -257,7 +257,7 @@ function bn(e) {
|
|
|
257
257
|
badge: o
|
|
258
258
|
};
|
|
259
259
|
}
|
|
260
|
-
const hn = "inline-flex cursor-pointer items-center gap-[var(--mb-button-gap)] rounded-[var(--mb-button-radius)] border border-[color:var(--mb-color-button-border)] [border-width:var(--mb-button-border-width)] bg-[color:var(--mb-color-button-bg)] px-[var(--mb-button-padding-x)] py-[var(--mb-button-padding-y)] [font-size:var(--mb-button-font-size)] [font-weight:var(--mb-button-font-weight)] text-[color:var(--mb-color-button-text)] shadow-[var(--mb-button-shadow)] transition hover:bg-[color:var(--mb-color-button-hover)] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[color:var(--mb-color-focus-ring)] focus-visible:ring-offset-2 focus-visible:ring-offset-[color:var(--mb-color-focus-offset)] disabled:cursor-not-allowed disabled:opacity-50", fn = "inline-flex cursor-pointer items-center gap-[var(--mb-button-gap)] rounded-[var(--mb-button-radius)] border-0 bg-[color:var(--mb-color-nav-hover)] px-4 py-3.5 text-[15px] font-medium leading-normal text-[color:var(--mb-color-text)] shadow-none transition hover:bg-[color:var(--mb-color-nav-active)] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[color:var(--mb-color-focus-ring)] focus-visible:ring-offset-2 focus-visible:ring-offset-[color:var(--mb-color-focus-offset)] disabled:cursor-not-allowed disabled:opacity-50", gn = "flex w-full min-w-0 shrink-0 cursor-pointer items-center justify-center gap-0 rounded-[var(--mb-side-menu-radius)] border border-transparent px-2 py-[var(--mb-side-menu-padding-y)] text-left [font-size:var(--mb-side-menu-font-size)] [font-weight:var(--mb-side-menu-font-weight)] [border-width:var(--mb-side-menu-border-width)] shadow-[var(--mb-side-menu-shadow)] transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[color:var(--mb-color-focus-ring)] focus-visible:ring-offset-2 focus-visible:ring-offset-[color:var(--mb-color-focus-offset)] disabled:cursor-not-allowed disabled:opacity-50 lg:justify-start lg:gap-[var(--mb-side-menu-gap)] lg:px-[var(--mb-side-menu-padding-x)]", pn = "flex h-8 w-full min-w-0 shrink-0 cursor-pointer items-center justify-center gap-2 rounded-[var(--mb-side-menu-radius)] border-0 bg-transparent px-3 py-0 text-left text-sm text-[color:var(--mb-color-text)] shadow-none transition-colors hover:bg-[color:var(--mb-color-nav-hover)] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[color:var(--mb-color-focus-ring)] focus-visible:ring-offset-2 focus-visible:ring-offset-[color:var(--mb-color-focus-offset)] disabled:cursor-not-allowed disabled:opacity-50 lg:justify-start [&_svg]:block",
|
|
260
|
+
const hn = "inline-flex cursor-pointer items-center gap-[var(--mb-button-gap)] rounded-[var(--mb-button-radius)] border border-[color:var(--mb-color-button-border)] [border-width:var(--mb-button-border-width)] bg-[color:var(--mb-color-button-bg)] px-[var(--mb-button-padding-x)] py-[var(--mb-button-padding-y)] [font-size:var(--mb-button-font-size)] [font-weight:var(--mb-button-font-weight)] text-[color:var(--mb-color-button-text)] shadow-[var(--mb-button-shadow)] transition hover:bg-[color:var(--mb-color-button-hover)] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[color:var(--mb-color-focus-ring)] focus-visible:ring-offset-2 focus-visible:ring-offset-[color:var(--mb-color-focus-offset)] disabled:cursor-not-allowed disabled:opacity-50", fn = "inline-flex cursor-pointer items-center gap-[var(--mb-button-gap)] rounded-[var(--mb-button-radius)] border-0 bg-[color:var(--mb-color-nav-hover)] px-4 py-3.5 text-[15px] font-medium leading-normal text-[color:var(--mb-color-text)] shadow-none transition hover:bg-[color:var(--mb-color-nav-active)] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[color:var(--mb-color-focus-ring)] focus-visible:ring-offset-2 focus-visible:ring-offset-[color:var(--mb-color-focus-offset)] disabled:cursor-not-allowed disabled:opacity-50", gn = "flex w-full min-w-0 shrink-0 cursor-pointer items-center justify-center gap-0 rounded-[var(--mb-side-menu-radius)] border border-transparent px-2 py-[var(--mb-side-menu-padding-y)] text-left [font-size:var(--mb-side-menu-font-size)] [font-weight:var(--mb-side-menu-font-weight)] [border-width:var(--mb-side-menu-border-width)] shadow-[var(--mb-side-menu-shadow)] transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[color:var(--mb-color-focus-ring)] focus-visible:ring-offset-2 focus-visible:ring-offset-[color:var(--mb-color-focus-offset)] disabled:cursor-not-allowed disabled:opacity-50 lg:justify-start lg:gap-[var(--mb-side-menu-gap)] lg:px-[var(--mb-side-menu-padding-x)]", pn = "flex h-8 w-full min-w-0 shrink-0 cursor-pointer items-center justify-center gap-2 rounded-[var(--mb-side-menu-radius)] border-0 bg-transparent px-3 py-0 text-left text-sm text-[color:var(--mb-color-text)] shadow-none transition-colors hover:bg-[color:var(--mb-color-nav-hover)] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[color:var(--mb-color-focus-ring)] focus-visible:ring-offset-2 focus-visible:ring-offset-[color:var(--mb-color-focus-offset)] disabled:cursor-not-allowed disabled:opacity-50 lg:justify-start [&_svg]:block", ke = "inline-flex shrink-0 cursor-pointer items-center gap-1.5 rounded-none rounded-br-[length:var(--mb-radius-button)] rounded-tr-[length:var(--mb-radius-button)] border-0 px-5 py-2.5 text-sm font-bold uppercase tracking-wide text-white shadow-none transition hover:brightness-90 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[color:var(--mb-color-focus-ring)] focus-visible:ring-offset-2 focus-visible:ring-offset-[color:var(--mb-color-card-bg)] disabled:cursor-not-allowed disabled:opacity-50 [&_svg]:shrink-0 [&_svg]:text-white", xn = `${ke} bg-[#3a9e6a]`, vn = `${ke} bg-[#d94040]`, wn = `${ke} bg-[#d94040]`, yn = `${ke} bg-[#e09a1a]`;
|
|
261
261
|
function M({
|
|
262
262
|
className: e = "",
|
|
263
263
|
fullWidth: r = !1,
|
|
@@ -306,7 +306,7 @@ function An(e) {
|
|
|
306
306
|
}
|
|
307
307
|
return e;
|
|
308
308
|
}
|
|
309
|
-
const
|
|
309
|
+
const Ln = {
|
|
310
310
|
default: "border-[color:var(--mb-color-badge-border)] bg-[color:var(--mb-color-badge-bg)] text-[color:var(--mb-color-badge-text)] [border-width:var(--mb-badge-border-width)] px-[length:var(--mb-badge-padding-x)] py-[length:var(--mb-badge-padding-y)]",
|
|
311
311
|
value: "border-[color:var(--mb-color-badge-value-border)] bg-[color:var(--mb-color-badge-value-bg)] text-[color:var(--mb-color-badge-value-text)] [border-width:var(--mb-badge-border-width)] px-[length:var(--mb-badge-value-padding-x)] py-[length:var(--mb-badge-value-padding-y)]"
|
|
312
312
|
};
|
|
@@ -318,12 +318,12 @@ function _({
|
|
|
318
318
|
return /* @__PURE__ */ t(
|
|
319
319
|
"span",
|
|
320
320
|
{
|
|
321
|
-
className: `inline-flex shrink-0 items-center justify-center rounded-[length:var(--mb-badge-radius)] border border-solid [font-size:var(--mb-badge-font-size)] [font-weight:var(--mb-badge-font-weight)] ${
|
|
321
|
+
className: `inline-flex shrink-0 items-center justify-center rounded-[length:var(--mb-badge-radius)] border border-solid [font-size:var(--mb-badge-font-size)] [font-weight:var(--mb-badge-font-weight)] ${Ln[n]} ${r}`.trim(),
|
|
322
322
|
children: An(e)
|
|
323
323
|
}
|
|
324
324
|
);
|
|
325
325
|
}
|
|
326
|
-
function
|
|
326
|
+
function L({
|
|
327
327
|
children: e,
|
|
328
328
|
className: r = ""
|
|
329
329
|
}) {
|
|
@@ -338,7 +338,7 @@ function T({
|
|
|
338
338
|
}
|
|
339
339
|
);
|
|
340
340
|
}
|
|
341
|
-
const $t = "data:image/svg+xml,%3csvg%20width='40'%20height='40'%20viewBox='0%200%2040%2040'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M27.7784%2037.6667H6.69083C3.27029%2037.6667%200.5%2034.894%200.5%2031.476C0.5%2026.7256%205.6308%2023.7444%209.75802%2026.0975L28.0753%2036.5429C28.6102%2036.8496%2028.3943%2037.6667%2027.7784%2037.6667Z'%20fill='%23E9AD80'/%3e%3cpath%20d='M28.0974%2010.1165L38.6657%2028.3622C40.3784%2031.3214%2039.3699%2035.1099%2036.4107%2036.8226C32.2982%2039.2027%2027.1477%2036.2582%2027.1159%2031.5079L26.9735%2010.4232C26.9686%209.80485%2027.7857%209.58401%2028.0949%2010.1165'%20fill='%23E49B67'/%3e%3cpath%20d='M4.21009%2023.6879L14.7563%205.42744C16.4666%202.46828%2020.2527%201.4549%2023.2144%203.16513C27.3294%205.54031%2027.3441%2011.4758%2023.2414%2013.8706L5.03455%2024.5074C4.50209%2024.8191%203.90092%2024.2228%204.21009%2023.6879Z'%20fill='%23ECC09C'/%3e%3cpath%20d='M20.8171%2025.9674H19.6737V21.9114H19.6614L18.3585%2023.0426L17.7278%2022.3187L19.3988%2020.8588H20.8196V25.9674H20.8171ZM20%2018.8345C17.4138%2018.8345%2015.3158%2020.9324%2015.3158%2023.5186C15.3158%2026.1048%2017.4138%2028.2027%2020%2028.2027C22.5863%2028.2027%2024.6842%2026.1048%2024.6842%2023.5186C24.6842%2020.9324%2022.5863%2018.8345%2020%2018.8345Z'%20fill='%23EFC160'/%3e%3c/svg%3e", er = "data:image/svg+xml,%3csvg%20width='40'%20height='40'%20viewBox='0%200%2040%2040'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M27.7784%2037.6667H6.69083C3.27029%2037.6667%200.5%2034.894%200.5%2031.476C0.5%2026.7256%205.6308%2023.7443%209.75802%2026.0974L28.0753%2036.5429C28.6127%2036.8496%2028.3943%2037.6667%2027.7784%2037.6667Z'%20fill='%2395C9EA'/%3e%3cpath%20d='M28.0974%2010.1165L38.6657%2028.3622C40.3784%2031.3214%2039.3699%2035.1099%2036.4107%2036.8226C32.2982%2039.2027%2027.1477%2036.2582%2027.1159%2031.5078L26.9735%2010.4232C26.9686%209.80483%2027.7857%209.584%2028.0974%2010.1165Z'%20fill='%237ABFE4'/%3e%3cpath%20d='M4.21009%2023.6879L14.7563%205.42746C16.4666%202.46829%2020.2527%201.45491%2023.2144%203.16514C27.3294%205.54033%2027.3441%2011.4758%2023.2414%2013.8707L5.03455%2024.5075C4.50209%2024.8191%203.90092%2024.2228%204.21009%2023.6879Z'%20fill='%23B0D5EE'/%3e%3cpath%20d='M22.2354%2025.9674H17.7646V24.9687C17.7646%2024.4044%2017.8702%2024.0093%2018.1253%2023.7517C18.3953%2023.4818%2018.783%2023.337%2019.7424%2023.1873C20.4515%2023.0745%2020.768%2022.996%2020.9128%2022.8512C21.011%2022.753%2021.0502%2022.6205%2021.0502%2022.3506C21.0502%2021.8182%2020.9251%2021.7004%2020.0123%2021.7004C19.0995%2021.7004%2018.9866%2021.8182%2018.9866%2022.4291V22.515H17.8554V22.3187C17.8554%2021.1483%2018.2309%2020.7533%2020.0246%2020.7533C21.8182%2020.7533%2022.2084%2021.1606%2022.2084%2022.331C22.2084%2022.8831%2022.1176%2023.2708%2021.8477%2023.5407C21.5655%2023.8179%2021.1508%2023.9554%2020.2503%2024.0928C19.4749%2024.2105%2019.1854%2024.2891%2019.048%2024.4289C18.9498%2024.5271%2018.9302%2024.6596%2018.9302%2024.9417V25.0129H22.2378V25.9674H22.2354ZM20%2018.8345C17.4138%2018.8345%2015.3158%2020.9324%2015.3158%2023.5186C15.3158%2026.1048%2017.4138%2028.2027%2020%2028.2027C22.5863%2028.2027%2024.6842%2026.1048%2024.6842%2023.5186C24.6842%2020.9324%2022.5863%2018.8345%2020%2018.8345Z'%20fill='%2396D7E1'/%3e%3c/svg%3e", tr = "data:image/svg+xml,%3csvg%20width='40'%20height='40'%20viewBox='0%200%2040%2040'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M28.0753%2036.5428L9.75802%2026.0974C5.6308%2023.7443%200.5%2026.7255%200.5%2031.4759C0.5%2034.8964%203.27274%2037.6666%206.69083%2037.6666H27.7784C28.3968%2037.6666%2028.6127%2036.8471%2028.0778%2036.5428'%20fill='%2398D2AE'/%3e%3cpath%20d='M38.6657%2028.3622L28.0973%2010.1165C27.7882%209.58158%2026.9711%209.80486%2026.976%2010.4232L27.1183%2031.5079C27.1502%2036.2582%2032.3006%2039.2051%2036.4131%2036.8226C39.3723%2035.1099%2040.3808%2031.3214%2038.6681%2028.3622'%20fill='%237FC99C'/%3e%3cpath%20d='M5.03455%2024.5075L23.2414%2013.8707C27.3441%2011.4734%2027.3294%205.54036%2023.2144%203.16518C20.2527%201.45495%2016.4666%202.46833%2014.7563%205.42995L4.21009%2023.688C3.90092%2024.2229%204.50209%2024.8191%205.03455%2024.5075Z'%20fill='%23B1DCC0'/%3e%3cpath%20d='M19.9976%2026.176C18.2824%2026.176%2017.7548%2025.8594%2017.7548%2024.6105V24.4117H18.8664V24.4976C18.8664%2025.1209%2019.0112%2025.2337%2019.9976%2025.2337C20.984%2025.2337%2021.1018%2025.1086%2021.1018%2024.5884C21.1018%2024.0682%2020.9496%2023.9504%2020.0221%2023.9504H19.4038V23.0229H20.0221C20.9496%2023.0229%2021.0478%2022.8978%2021.0478%2022.4193C21.0478%2021.9409%2020.8956%2021.801%2019.9706%2021.801C19.0455%2021.801%2018.9179%2021.9065%2018.9179%2022.4709V22.5567H17.8064V22.3604C17.8064%2021.163%2018.3192%2020.8612%2019.9951%2020.8612C21.671%2020.8612%2022.1912%2021.1974%2022.1912%2022.2427C22.1912%2022.9861%2021.9483%2023.3198%2021.3103%2023.4523V23.4646C21.9876%2023.6216%2022.2427%2023.9578%2022.2427%2024.7332C22.2427%2025.8447%2021.7103%2026.1735%2019.9951%2026.1735M20%2018.8345C17.4138%2018.8345%2015.3158%2020.9324%2015.3158%2023.5186C15.3158%2026.1048%2017.4138%2028.2027%2020%2028.2027C22.5863%2028.2027%2024.6842%2026.1048%2024.6842%2023.5186C24.6842%2020.9324%2022.5863%2018.8345%2020%2018.8345Z'%20fill='%238ECB84'/%3e%3c/svg%3e", rr = "data:image/svg+xml,%3csvg%20width='40'%20height='40'%20viewBox='0%200%2040%2040'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M28.0753%2036.5429L9.75802%2026.0975C5.6308%2023.7444%200.5%2026.7256%200.5%2031.476C0.5%2034.8965%203.27274%2037.6667%206.69083%2037.6667H27.7784C28.3968%2037.6667%2028.6127%2036.8472%2028.0778%2036.5429'%20fill='%23EC8792'/%3e%3cpath%20d='M38.6657%2028.3622L28.0973%2010.1165C27.7882%209.58158%2026.9711%209.80486%2026.976%2010.4232L27.1183%2031.5079C27.1502%2036.2582%2032.3006%2039.2051%2036.4131%2036.8226C39.3723%2035.1099%2040.3808%2031.3214%2038.6681%2028.3622'%20fill='%23E86C7F'/%3e%3cpath%20d='M5.03455%2024.5075L23.2414%2013.8707C27.3441%2011.4734%2027.3294%205.54036%2023.2144%203.16518C20.2527%201.45495%2016.4666%202.46833%2014.7563%205.42995L4.21009%2023.688C3.90092%2024.2229%204.50209%2024.8191%205.03455%2024.5075Z'%20fill='%23F1A4A9'/%3e%3cpath%20d='M22.2477%2025.0276H21.5361V26.0729H20.4638V25.0276H17.4334V23.8449L20.0319%2020.9643H21.5385V24.1001H22.2501V25.0276H22.2477ZM20%2018.8345C17.4138%2018.8345%2015.3158%2020.9324%2015.3158%2023.5186C15.3158%2026.1048%2017.4138%2028.2027%2020%2028.2027C22.5863%2028.2027%2024.6842%2026.1048%2024.6842%2023.5186C24.6842%2020.9324%2022.5863%2018.8345%2020%2018.8345Z'%20fill='%23F3756A'/%3e%3cpath%20d='M18.5131%2024.0879V24.1026H20.4663V21.9261H20.4515L18.5131%2024.0879Z'%20fill='%23E86C7F'/%3e%3c/svg%3e", nr = "data:image/svg+xml,%3csvg%20width='40'%20height='40'%20viewBox='0%200%2040%2040'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M28.0753%2036.5429L9.75802%2026.0975C5.6308%2023.7444%200.5%2026.7256%200.5%2031.476C0.5%2034.8965%203.27274%2037.6667%206.69083%2037.6667H27.7784C28.3968%2037.6667%2028.6127%2036.8472%2028.0753%2036.5429Z'%20fill='%239291C7'/%3e%3cpath%20d='M38.6657%2028.3622L28.0973%2010.1165C27.7882%209.58158%2026.9711%209.80486%2026.976%2010.4232L27.1183%2031.5079C27.1502%2036.2582%2032.3006%2039.2051%2036.4131%2036.8226C39.3723%2035.1099%2040.3808%2031.3214%2038.6681%2028.3622'%20fill='%237D7DBB'/%3e%3cpath%20d='M5.03455%2024.5075L23.2414%2013.8707C27.3441%2011.4734%2027.3294%205.54036%2023.2144%203.16518C20.2527%201.45495%2016.4666%202.46833%2014.7563%205.42995L4.21009%2023.688C3.90092%2024.2229%204.50209%2024.8191%205.03455%2024.5075Z'%20fill='%23A9A8D4'/%3e%3cpath%20d='M20.1153%2026.3478C18.4517%2026.3478%2017.907%2026.019%2017.907%2024.9933V24.8019H19.0185V24.8878C19.0185%2025.3074%2019.2295%2025.408%2020.1031%2025.408C21.0895%2025.408%2021.195%2025.2829%2021.195%2024.5983C21.195%2023.9137%2021.0772%2023.7763%2020.1031%2023.7763C19.3473%2023.7763%2019.1437%2023.8622%2019.0774%2024.2032H17.9928V21.1337H22.1495V22.0808H19.0799V23.2782H19.0921C19.2712%2022.9764%2019.6786%2022.8782%2020.4589%2022.8782C21.7863%2022.8782%2022.3335%2023.234%2022.3335%2024.5737C22.3335%2025.9797%2021.887%2026.3478%2020.1178%2026.3478M20%2018.8345C17.4113%2018.8345%2015.3158%2020.9324%2015.3158%2023.5187C15.3158%2026.1049%2017.4138%2028.2028%2020%2028.2028C22.5863%2028.2028%2024.6842%2026.1049%2024.6842%2023.5187C24.6842%2020.9324%2022.5863%2018.8345%2020%2018.8345Z'%20fill='%239081BD'/%3e%3c/svg%3e",
|
|
341
|
+
const $t = "data:image/svg+xml,%3csvg%20width='40'%20height='40'%20viewBox='0%200%2040%2040'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M27.7784%2037.6667H6.69083C3.27029%2037.6667%200.5%2034.894%200.5%2031.476C0.5%2026.7256%205.6308%2023.7444%209.75802%2026.0975L28.0753%2036.5429C28.6102%2036.8496%2028.3943%2037.6667%2027.7784%2037.6667Z'%20fill='%23E9AD80'/%3e%3cpath%20d='M28.0974%2010.1165L38.6657%2028.3622C40.3784%2031.3214%2039.3699%2035.1099%2036.4107%2036.8226C32.2982%2039.2027%2027.1477%2036.2582%2027.1159%2031.5079L26.9735%2010.4232C26.9686%209.80485%2027.7857%209.58401%2028.0949%2010.1165'%20fill='%23E49B67'/%3e%3cpath%20d='M4.21009%2023.6879L14.7563%205.42744C16.4666%202.46828%2020.2527%201.4549%2023.2144%203.16513C27.3294%205.54031%2027.3441%2011.4758%2023.2414%2013.8706L5.03455%2024.5074C4.50209%2024.8191%203.90092%2024.2228%204.21009%2023.6879Z'%20fill='%23ECC09C'/%3e%3cpath%20d='M20.8171%2025.9674H19.6737V21.9114H19.6614L18.3585%2023.0426L17.7278%2022.3187L19.3988%2020.8588H20.8196V25.9674H20.8171ZM20%2018.8345C17.4138%2018.8345%2015.3158%2020.9324%2015.3158%2023.5186C15.3158%2026.1048%2017.4138%2028.2027%2020%2028.2027C22.5863%2028.2027%2024.6842%2026.1048%2024.6842%2023.5186C24.6842%2020.9324%2022.5863%2018.8345%2020%2018.8345Z'%20fill='%23EFC160'/%3e%3c/svg%3e", er = "data:image/svg+xml,%3csvg%20width='40'%20height='40'%20viewBox='0%200%2040%2040'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M27.7784%2037.6667H6.69083C3.27029%2037.6667%200.5%2034.894%200.5%2031.476C0.5%2026.7256%205.6308%2023.7443%209.75802%2026.0974L28.0753%2036.5429C28.6127%2036.8496%2028.3943%2037.6667%2027.7784%2037.6667Z'%20fill='%2395C9EA'/%3e%3cpath%20d='M28.0974%2010.1165L38.6657%2028.3622C40.3784%2031.3214%2039.3699%2035.1099%2036.4107%2036.8226C32.2982%2039.2027%2027.1477%2036.2582%2027.1159%2031.5078L26.9735%2010.4232C26.9686%209.80483%2027.7857%209.584%2028.0974%2010.1165Z'%20fill='%237ABFE4'/%3e%3cpath%20d='M4.21009%2023.6879L14.7563%205.42746C16.4666%202.46829%2020.2527%201.45491%2023.2144%203.16514C27.3294%205.54033%2027.3441%2011.4758%2023.2414%2013.8707L5.03455%2024.5075C4.50209%2024.8191%203.90092%2024.2228%204.21009%2023.6879Z'%20fill='%23B0D5EE'/%3e%3cpath%20d='M22.2354%2025.9674H17.7646V24.9687C17.7646%2024.4044%2017.8702%2024.0093%2018.1253%2023.7517C18.3953%2023.4818%2018.783%2023.337%2019.7424%2023.1873C20.4515%2023.0745%2020.768%2022.996%2020.9128%2022.8512C21.011%2022.753%2021.0502%2022.6205%2021.0502%2022.3506C21.0502%2021.8182%2020.9251%2021.7004%2020.0123%2021.7004C19.0995%2021.7004%2018.9866%2021.8182%2018.9866%2022.4291V22.515H17.8554V22.3187C17.8554%2021.1483%2018.2309%2020.7533%2020.0246%2020.7533C21.8182%2020.7533%2022.2084%2021.1606%2022.2084%2022.331C22.2084%2022.8831%2022.1176%2023.2708%2021.8477%2023.5407C21.5655%2023.8179%2021.1508%2023.9554%2020.2503%2024.0928C19.4749%2024.2105%2019.1854%2024.2891%2019.048%2024.4289C18.9498%2024.5271%2018.9302%2024.6596%2018.9302%2024.9417V25.0129H22.2378V25.9674H22.2354ZM20%2018.8345C17.4138%2018.8345%2015.3158%2020.9324%2015.3158%2023.5186C15.3158%2026.1048%2017.4138%2028.2027%2020%2028.2027C22.5863%2028.2027%2024.6842%2026.1048%2024.6842%2023.5186C24.6842%2020.9324%2022.5863%2018.8345%2020%2018.8345Z'%20fill='%2396D7E1'/%3e%3c/svg%3e", tr = "data:image/svg+xml,%3csvg%20width='40'%20height='40'%20viewBox='0%200%2040%2040'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M28.0753%2036.5428L9.75802%2026.0974C5.6308%2023.7443%200.5%2026.7255%200.5%2031.4759C0.5%2034.8964%203.27274%2037.6666%206.69083%2037.6666H27.7784C28.3968%2037.6666%2028.6127%2036.8471%2028.0778%2036.5428'%20fill='%2398D2AE'/%3e%3cpath%20d='M38.6657%2028.3622L28.0973%2010.1165C27.7882%209.58158%2026.9711%209.80486%2026.976%2010.4232L27.1183%2031.5079C27.1502%2036.2582%2032.3006%2039.2051%2036.4131%2036.8226C39.3723%2035.1099%2040.3808%2031.3214%2038.6681%2028.3622'%20fill='%237FC99C'/%3e%3cpath%20d='M5.03455%2024.5075L23.2414%2013.8707C27.3441%2011.4734%2027.3294%205.54036%2023.2144%203.16518C20.2527%201.45495%2016.4666%202.46833%2014.7563%205.42995L4.21009%2023.688C3.90092%2024.2229%204.50209%2024.8191%205.03455%2024.5075Z'%20fill='%23B1DCC0'/%3e%3cpath%20d='M19.9976%2026.176C18.2824%2026.176%2017.7548%2025.8594%2017.7548%2024.6105V24.4117H18.8664V24.4976C18.8664%2025.1209%2019.0112%2025.2337%2019.9976%2025.2337C20.984%2025.2337%2021.1018%2025.1086%2021.1018%2024.5884C21.1018%2024.0682%2020.9496%2023.9504%2020.0221%2023.9504H19.4038V23.0229H20.0221C20.9496%2023.0229%2021.0478%2022.8978%2021.0478%2022.4193C21.0478%2021.9409%2020.8956%2021.801%2019.9706%2021.801C19.0455%2021.801%2018.9179%2021.9065%2018.9179%2022.4709V22.5567H17.8064V22.3604C17.8064%2021.163%2018.3192%2020.8612%2019.9951%2020.8612C21.671%2020.8612%2022.1912%2021.1974%2022.1912%2022.2427C22.1912%2022.9861%2021.9483%2023.3198%2021.3103%2023.4523V23.4646C21.9876%2023.6216%2022.2427%2023.9578%2022.2427%2024.7332C22.2427%2025.8447%2021.7103%2026.1735%2019.9951%2026.1735M20%2018.8345C17.4138%2018.8345%2015.3158%2020.9324%2015.3158%2023.5186C15.3158%2026.1048%2017.4138%2028.2027%2020%2028.2027C22.5863%2028.2027%2024.6842%2026.1048%2024.6842%2023.5186C24.6842%2020.9324%2022.5863%2018.8345%2020%2018.8345Z'%20fill='%238ECB84'/%3e%3c/svg%3e", rr = "data:image/svg+xml,%3csvg%20width='40'%20height='40'%20viewBox='0%200%2040%2040'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M28.0753%2036.5429L9.75802%2026.0975C5.6308%2023.7444%200.5%2026.7256%200.5%2031.476C0.5%2034.8965%203.27274%2037.6667%206.69083%2037.6667H27.7784C28.3968%2037.6667%2028.6127%2036.8472%2028.0778%2036.5429'%20fill='%23EC8792'/%3e%3cpath%20d='M38.6657%2028.3622L28.0973%2010.1165C27.7882%209.58158%2026.9711%209.80486%2026.976%2010.4232L27.1183%2031.5079C27.1502%2036.2582%2032.3006%2039.2051%2036.4131%2036.8226C39.3723%2035.1099%2040.3808%2031.3214%2038.6681%2028.3622'%20fill='%23E86C7F'/%3e%3cpath%20d='M5.03455%2024.5075L23.2414%2013.8707C27.3441%2011.4734%2027.3294%205.54036%2023.2144%203.16518C20.2527%201.45495%2016.4666%202.46833%2014.7563%205.42995L4.21009%2023.688C3.90092%2024.2229%204.50209%2024.8191%205.03455%2024.5075Z'%20fill='%23F1A4A9'/%3e%3cpath%20d='M22.2477%2025.0276H21.5361V26.0729H20.4638V25.0276H17.4334V23.8449L20.0319%2020.9643H21.5385V24.1001H22.2501V25.0276H22.2477ZM20%2018.8345C17.4138%2018.8345%2015.3158%2020.9324%2015.3158%2023.5186C15.3158%2026.1048%2017.4138%2028.2027%2020%2028.2027C22.5863%2028.2027%2024.6842%2026.1048%2024.6842%2023.5186C24.6842%2020.9324%2022.5863%2018.8345%2020%2018.8345Z'%20fill='%23F3756A'/%3e%3cpath%20d='M18.5131%2024.0879V24.1026H20.4663V21.9261H20.4515L18.5131%2024.0879Z'%20fill='%23E86C7F'/%3e%3c/svg%3e", nr = "data:image/svg+xml,%3csvg%20width='40'%20height='40'%20viewBox='0%200%2040%2040'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M28.0753%2036.5429L9.75802%2026.0975C5.6308%2023.7444%200.5%2026.7256%200.5%2031.476C0.5%2034.8965%203.27274%2037.6667%206.69083%2037.6667H27.7784C28.3968%2037.6667%2028.6127%2036.8472%2028.0753%2036.5429Z'%20fill='%239291C7'/%3e%3cpath%20d='M38.6657%2028.3622L28.0973%2010.1165C27.7882%209.58158%2026.9711%209.80486%2026.976%2010.4232L27.1183%2031.5079C27.1502%2036.2582%2032.3006%2039.2051%2036.4131%2036.8226C39.3723%2035.1099%2040.3808%2031.3214%2038.6681%2028.3622'%20fill='%237D7DBB'/%3e%3cpath%20d='M5.03455%2024.5075L23.2414%2013.8707C27.3441%2011.4734%2027.3294%205.54036%2023.2144%203.16518C20.2527%201.45495%2016.4666%202.46833%2014.7563%205.42995L4.21009%2023.688C3.90092%2024.2229%204.50209%2024.8191%205.03455%2024.5075Z'%20fill='%23A9A8D4'/%3e%3cpath%20d='M20.1153%2026.3478C18.4517%2026.3478%2017.907%2026.019%2017.907%2024.9933V24.8019H19.0185V24.8878C19.0185%2025.3074%2019.2295%2025.408%2020.1031%2025.408C21.0895%2025.408%2021.195%2025.2829%2021.195%2024.5983C21.195%2023.9137%2021.0772%2023.7763%2020.1031%2023.7763C19.3473%2023.7763%2019.1437%2023.8622%2019.0774%2024.2032H17.9928V21.1337H22.1495V22.0808H19.0799V23.2782H19.0921C19.2712%2022.9764%2019.6786%2022.8782%2020.4589%2022.8782C21.7863%2022.8782%2022.3335%2023.234%2022.3335%2024.5737C22.3335%2025.9797%2021.887%2026.3478%2020.1178%2026.3478M20%2018.8345C17.4113%2018.8345%2015.3158%2020.9324%2015.3158%2023.5187C15.3158%2026.1049%2017.4138%2028.2028%2020%2028.2028C22.5863%2028.2028%2024.6842%2026.1049%2024.6842%2023.5187C24.6842%2020.9324%2022.5863%2018.8345%2020%2018.8345Z'%20fill='%239081BD'/%3e%3c/svg%3e", Tn = {
|
|
342
342
|
1: $t,
|
|
343
343
|
2: er,
|
|
344
344
|
3: tr,
|
|
@@ -346,7 +346,7 @@ const $t = "data:image/svg+xml,%3csvg%20width='40'%20height='40'%20viewBox='0%20
|
|
|
346
346
|
5: nr
|
|
347
347
|
};
|
|
348
348
|
function ee({ triadNumber: e, className: r = "size-10" }) {
|
|
349
|
-
const n =
|
|
349
|
+
const n = Tn[e];
|
|
350
350
|
return n ? /* @__PURE__ */ t("img", { src: n, alt: "", className: `${r} shrink-0 object-contain` }) : null;
|
|
351
351
|
}
|
|
352
352
|
const Ee = "text-xl font-bold text-[color:var(--mb-color-text)]";
|
|
@@ -388,8 +388,8 @@ const Pn = [
|
|
|
388
388
|
{ color: "#E53935", position: 0 },
|
|
389
389
|
{ color: "#FFB300", position: 50 },
|
|
390
390
|
{ color: "#4CAF50", position: 100 }
|
|
391
|
-
], Sn = ["0", "20", "40", "60", "80", "100"], Mn = 24, Ct = 26, At = 13,
|
|
392
|
-
function
|
|
391
|
+
], Sn = ["0", "20", "40", "60", "80", "100"], Mn = 24, Ct = 26, At = 13, kn = 2;
|
|
392
|
+
function Hn(e) {
|
|
393
393
|
return `linear-gradient(to right, ${e.map((n) => `${n.color} ${n.position}%`).join(", ")})`;
|
|
394
394
|
}
|
|
395
395
|
function or({
|
|
@@ -399,7 +399,7 @@ function or({
|
|
|
399
399
|
labels: a,
|
|
400
400
|
barHeight: o = Mn
|
|
401
401
|
}) {
|
|
402
|
-
const i = Math.min(100, Math.max(0, r)), s = `${i}%`, c = n ? At +
|
|
402
|
+
const i = Math.min(100, Math.max(0, r)), s = `${i}%`, c = n ? At + kn + o : o;
|
|
403
403
|
return /* @__PURE__ */ l("div", { className: "w-full min-w-0", children: [
|
|
404
404
|
/* @__PURE__ */ l("div", { className: "relative w-full", style: { height: c }, children: [
|
|
405
405
|
/* @__PURE__ */ t(
|
|
@@ -431,7 +431,7 @@ function or({
|
|
|
431
431
|
style: {
|
|
432
432
|
height: "100%",
|
|
433
433
|
width: i >= 100 ? "100%" : `${100 / i * 100}%`,
|
|
434
|
-
background:
|
|
434
|
+
background: Hn(e)
|
|
435
435
|
}
|
|
436
436
|
}
|
|
437
437
|
)
|
|
@@ -468,7 +468,7 @@ function et(e) {
|
|
|
468
468
|
const n = document.createElement("div");
|
|
469
469
|
return n.style.backgroundColor = r, n.style.backgroundColor || r;
|
|
470
470
|
}
|
|
471
|
-
function
|
|
471
|
+
function Lt(e) {
|
|
472
472
|
const r = e.trim();
|
|
473
473
|
if (!r || typeof document > "u") return r;
|
|
474
474
|
const n = document.createElement("div");
|
|
@@ -489,14 +489,14 @@ function In(e, r) {
|
|
|
489
489
|
return Bn(a, n);
|
|
490
490
|
}
|
|
491
491
|
function st() {
|
|
492
|
-
const e = F(null), [r, n] =
|
|
492
|
+
const e = F(null), [r, n] = k(null);
|
|
493
493
|
return $e(() => {
|
|
494
494
|
const a = e.current;
|
|
495
495
|
if (!a) return;
|
|
496
496
|
const o = getComputedStyle(a), i = o.getPropertyValue("--mb-color-text").trim() || "#1C2024", s = o.getPropertyValue("--mb-color-text-muted").trim() || "#64748b", c = o.getPropertyValue("--mb-color-card-border").trim() || "#e5e5e5", d = o.getPropertyValue("--mb-color-badge-value-bg").trim() || "#f1f5f9", m = o.getPropertyValue("--mb-color-card-bg").trim() || "#ffffff";
|
|
497
497
|
n({
|
|
498
|
-
colorText:
|
|
499
|
-
colorTextMuted:
|
|
498
|
+
colorText: Lt(i),
|
|
499
|
+
colorTextMuted: Lt(s),
|
|
500
500
|
colorCardBorder: et(c),
|
|
501
501
|
colorBadgeValueBg: In(d, m),
|
|
502
502
|
fontFamily: o.fontFamily || "ui-sans-serif, system-ui, sans-serif"
|
|
@@ -908,7 +908,7 @@ function Wn(e) {
|
|
|
908
908
|
b: parseInt(r.slice(4, 6), 16)
|
|
909
909
|
};
|
|
910
910
|
}
|
|
911
|
-
function
|
|
911
|
+
function Tt(e, r = 0.3) {
|
|
912
912
|
const n = Wn(e);
|
|
913
913
|
if (!n) return e;
|
|
914
914
|
const a = Math.round(n.r + (255 - n.r) * (1 - r)), o = Math.round(n.g + (255 - n.g) * (1 - r)), i = Math.round(n.b + (255 - n.b) * (1 - r));
|
|
@@ -916,11 +916,11 @@ function Lt(e, r = 0.3) {
|
|
|
916
916
|
}
|
|
917
917
|
function Un(e, r) {
|
|
918
918
|
const n = e.length, a = e.slice(0, -1).map((i, s) => ({
|
|
919
|
-
color: s === r ? i.activeColor ?? i.color :
|
|
919
|
+
color: s === r ? i.activeColor ?? i.color : Tt(i.color),
|
|
920
920
|
stop: (s + 1) * 100 / n
|
|
921
921
|
})), o = e[n - 1];
|
|
922
922
|
return a.push({
|
|
923
|
-
color: n - 1 === r ? o.activeColor ?? o.color :
|
|
923
|
+
color: n - 1 === r ? o.activeColor ?? o.color : Tt(o.color),
|
|
924
924
|
stop: void 0
|
|
925
925
|
}), a;
|
|
926
926
|
}
|
|
@@ -1181,7 +1181,7 @@ function St({ rows: e = [] }) {
|
|
|
1181
1181
|
`${r.left}-${n}`
|
|
1182
1182
|
)) });
|
|
1183
1183
|
}
|
|
1184
|
-
function
|
|
1184
|
+
function Ms(e) {
|
|
1185
1185
|
const {
|
|
1186
1186
|
metricTitle: r,
|
|
1187
1187
|
statusText: n,
|
|
@@ -1193,7 +1193,7 @@ function Ls(e) {
|
|
|
1193
1193
|
nutrientsLeadParagraph: d,
|
|
1194
1194
|
nutrientRows: m
|
|
1195
1195
|
} = e, b = Kn(he, a);
|
|
1196
|
-
return /* @__PURE__ */ l(
|
|
1196
|
+
return /* @__PURE__ */ l(L, { className: "flex flex-col gap-4", children: [
|
|
1197
1197
|
/* @__PURE__ */ l("div", { className: "flex flex-wrap items-start justify-between gap-3", children: [
|
|
1198
1198
|
/* @__PURE__ */ t("h2", { className: "text-xl font-bold text-[color:var(--mb-color-text)]", children: r }),
|
|
1199
1199
|
/* @__PURE__ */ t("p", { className: "text-xl font-bold", style: { color: b }, children: n })
|
|
@@ -1230,7 +1230,7 @@ function Mt(e) {
|
|
|
1230
1230
|
function te(e) {
|
|
1231
1231
|
return Math.min(100, Math.max(0, e));
|
|
1232
1232
|
}
|
|
1233
|
-
function
|
|
1233
|
+
function He(e) {
|
|
1234
1234
|
if (e === void 0 || e === "") return null;
|
|
1235
1235
|
const r = Number.parseFloat(String(e).replace(/,/g, ""));
|
|
1236
1236
|
return Number.isFinite(r) ? r : null;
|
|
@@ -1264,7 +1264,7 @@ function aa(e, r, n, a) {
|
|
|
1264
1264
|
return te(2 * d + g * d);
|
|
1265
1265
|
}
|
|
1266
1266
|
function Z({ content: e, children: r, side: n = "top" }) {
|
|
1267
|
-
const a = at(), o = F(null), i = F(null), [s, c] =
|
|
1267
|
+
const a = at(), o = F(null), i = F(null), [s, c] = k(!1), [d, m] = k(null), b = F(null), g = I(() => {
|
|
1268
1268
|
b.current !== null && cancelAnimationFrame(b.current), b.current = requestAnimationFrame(() => {
|
|
1269
1269
|
b.current = null;
|
|
1270
1270
|
const h = o.current, f = i.current;
|
|
@@ -1433,7 +1433,7 @@ function me(e, r) {
|
|
|
1433
1433
|
const n = e.length, a = Math.min(100, Math.max(0, r)), o = 100 / n, i = Math.min(n - 1, Math.floor(a / o));
|
|
1434
1434
|
return (s = e[i]) == null ? void 0 : s.color;
|
|
1435
1435
|
}
|
|
1436
|
-
function
|
|
1436
|
+
function kt({
|
|
1437
1437
|
columnHeaders: e,
|
|
1438
1438
|
rows: r,
|
|
1439
1439
|
rangeBar: n
|
|
@@ -1675,7 +1675,7 @@ function ne(e) {
|
|
|
1675
1675
|
}
|
|
1676
1676
|
),
|
|
1677
1677
|
/* @__PURE__ */ t(
|
|
1678
|
-
|
|
1678
|
+
kt,
|
|
1679
1679
|
{
|
|
1680
1680
|
columnHeaders: [h, f],
|
|
1681
1681
|
rows: [
|
|
@@ -1702,7 +1702,7 @@ function ne(e) {
|
|
|
1702
1702
|
trendBar: i,
|
|
1703
1703
|
onCategoryClick: s
|
|
1704
1704
|
} = e, c = aa(
|
|
1705
|
-
|
|
1705
|
+
He(r.totalScore),
|
|
1706
1706
|
o,
|
|
1707
1707
|
r.trendIndicatorPercent,
|
|
1708
1708
|
i
|
|
@@ -1721,7 +1721,7 @@ function ne(e) {
|
|
|
1721
1721
|
children: /* @__PURE__ */ l(ce, { trendColor: d, children: [
|
|
1722
1722
|
/* @__PURE__ */ t(de, { title: r.title, trendColor: d }),
|
|
1723
1723
|
/* @__PURE__ */ t(
|
|
1724
|
-
|
|
1724
|
+
kt,
|
|
1725
1725
|
{
|
|
1726
1726
|
columnHeaders: [n, a],
|
|
1727
1727
|
rows: [
|
|
@@ -1772,7 +1772,7 @@ function ua(e) {
|
|
|
1772
1772
|
descriptionPrimary: c,
|
|
1773
1773
|
descriptionSecondary: d
|
|
1774
1774
|
} = e;
|
|
1775
|
-
return /* @__PURE__ */ l(
|
|
1775
|
+
return /* @__PURE__ */ l(L, { className: "flex min-w-0 flex-col", children: [
|
|
1776
1776
|
/* @__PURE__ */ l("div", { className: "mb-6 flex flex-wrap items-center justify-between gap-3", children: [
|
|
1777
1777
|
/* @__PURE__ */ l("div", { className: "flex min-w-0 flex-1 items-center gap-2", children: [
|
|
1778
1778
|
/* @__PURE__ */ t(ee, { triadNumber: r }),
|
|
@@ -1802,13 +1802,13 @@ function ua(e) {
|
|
|
1802
1802
|
] });
|
|
1803
1803
|
}
|
|
1804
1804
|
const ba = "flex items-baseline justify-between gap-3", ha = "text-[color:var(--mb-color-text-muted)]", fa = "text-right font-medium text-[color:var(--mb-color-text)]";
|
|
1805
|
-
function
|
|
1805
|
+
function Ht({ label: e, value: r }) {
|
|
1806
1806
|
return /* @__PURE__ */ l("div", { className: ba, children: [
|
|
1807
1807
|
/* @__PURE__ */ t("span", { className: ha, children: e }),
|
|
1808
1808
|
/* @__PURE__ */ t("span", { className: fa, children: r })
|
|
1809
1809
|
] });
|
|
1810
1810
|
}
|
|
1811
|
-
function
|
|
1811
|
+
function ks({
|
|
1812
1812
|
title: e,
|
|
1813
1813
|
valueDisplay: r,
|
|
1814
1814
|
indicatorPercent: n,
|
|
@@ -1822,7 +1822,7 @@ function Ps({
|
|
|
1822
1822
|
onInfoClick: b,
|
|
1823
1823
|
onDownloadClick: g
|
|
1824
1824
|
}) {
|
|
1825
|
-
return /* @__PURE__ */ l(
|
|
1825
|
+
return /* @__PURE__ */ l(L, { className: "flex flex-col", children: [
|
|
1826
1826
|
/* @__PURE__ */ t(
|
|
1827
1827
|
it,
|
|
1828
1828
|
{
|
|
@@ -1863,8 +1863,8 @@ function Ps({
|
|
|
1863
1863
|
}
|
|
1864
1864
|
),
|
|
1865
1865
|
/* @__PURE__ */ l("div", { className: "mt-6 space-y-0 pt-3 text-sm", children: [
|
|
1866
|
-
/* @__PURE__ */ t("div", { className: "pb-3", children: /* @__PURE__ */ t(
|
|
1867
|
-
/* @__PURE__ */ t("div", { className: "border-t border-gray-200 pt-3", children: /* @__PURE__ */ t(
|
|
1866
|
+
/* @__PURE__ */ t("div", { className: "pb-3", children: /* @__PURE__ */ t(Ht, { label: a, value: o }) }),
|
|
1867
|
+
/* @__PURE__ */ t("div", { className: "border-t border-gray-200 pt-3", children: /* @__PURE__ */ t(Ht, { label: i, value: s }) })
|
|
1868
1868
|
] })
|
|
1869
1869
|
] });
|
|
1870
1870
|
}
|
|
@@ -1893,8 +1893,8 @@ function hr({
|
|
|
1893
1893
|
}
|
|
1894
1894
|
);
|
|
1895
1895
|
return /* @__PURE__ */ l("div", { className: "grid min-w-0 grid-cols-1 gap-6 xl:grid-cols-2 xl:items-stretch", children: [
|
|
1896
|
-
i ? /* @__PURE__ */ t("div", { className: "min-w-0", children: s }) : /* @__PURE__ */ t(
|
|
1897
|
-
i ? /* @__PURE__ */ t("div", { className: "flex min-w-0 items-center", children: c }) : /* @__PURE__ */ t(
|
|
1896
|
+
i ? /* @__PURE__ */ t("div", { className: "min-w-0", children: s }) : /* @__PURE__ */ t(L, { className: "min-w-0 xl:flex-1", children: s }),
|
|
1897
|
+
i ? /* @__PURE__ */ t("div", { className: "flex min-w-0 items-center", children: c }) : /* @__PURE__ */ t(L, { className: "flex min-w-0 xl:flex-1 xl:flex-col xl:justify-center", children: c })
|
|
1898
1898
|
] });
|
|
1899
1899
|
}
|
|
1900
1900
|
function K({
|
|
@@ -2064,8 +2064,8 @@ function Be(e) {
|
|
|
2064
2064
|
)
|
|
2065
2065
|
] });
|
|
2066
2066
|
}
|
|
2067
|
-
function
|
|
2068
|
-
return /* @__PURE__ */ l(
|
|
2067
|
+
function Hs({ children: e }) {
|
|
2068
|
+
return /* @__PURE__ */ l(L, { className: "flex h-full min-h-0 min-w-0 flex-col", children: [
|
|
2069
2069
|
/* @__PURE__ */ t(it, { title: "Metabolic Triad", className: "!mb-3 shrink-0" }),
|
|
2070
2070
|
/* @__PURE__ */ t("div", { className: "min-h-0 flex-1 space-y-3 text-sm leading-relaxed text-[color:var(--mb-color-text-muted)]", children: e })
|
|
2071
2071
|
] });
|
|
@@ -2088,7 +2088,7 @@ function gr(e) {
|
|
|
2088
2088
|
previousRangeLabel: P,
|
|
2089
2089
|
onCategoryInfoClick: A
|
|
2090
2090
|
} = e, S = N ?? [];
|
|
2091
|
-
return /* @__PURE__ */ l(
|
|
2091
|
+
return /* @__PURE__ */ l(L, { className: "flex flex-col", children: [
|
|
2092
2092
|
/* @__PURE__ */ l("div", { className: "mb-4 flex flex-col gap-3 sm:flex-row sm:flex-wrap sm:items-center sm:justify-start sm:gap-4", children: [
|
|
2093
2093
|
/* @__PURE__ */ l("div", { className: "flex min-w-0 w-full flex-1 items-center gap-2 sm:w-auto", children: [
|
|
2094
2094
|
/* @__PURE__ */ t(ee, { triadNumber: p }),
|
|
@@ -2102,16 +2102,16 @@ function gr(e) {
|
|
|
2102
2102
|
}
|
|
2103
2103
|
)
|
|
2104
2104
|
] }),
|
|
2105
|
-
/* @__PURE__ */ t("div", { className: "grid grid-cols-1 gap-4 lg:grid-cols-2 xl:grid-cols-3", children: S.map((
|
|
2105
|
+
/* @__PURE__ */ t("div", { className: "grid grid-cols-1 gap-4 lg:grid-cols-2 xl:grid-cols-3", children: S.map((T) => /* @__PURE__ */ t(
|
|
2106
2106
|
ne,
|
|
2107
2107
|
{
|
|
2108
2108
|
layout: "questionnaire",
|
|
2109
|
-
category:
|
|
2109
|
+
category: T,
|
|
2110
2110
|
currentRangeLabel: w,
|
|
2111
2111
|
previousRangeLabel: P,
|
|
2112
2112
|
onInfoClick: A
|
|
2113
2113
|
},
|
|
2114
|
-
|
|
2114
|
+
T.title
|
|
2115
2115
|
)) })
|
|
2116
2116
|
] });
|
|
2117
2117
|
}
|
|
@@ -2127,8 +2127,8 @@ function gr(e) {
|
|
|
2127
2127
|
categories: b,
|
|
2128
2128
|
onInfoClick: g,
|
|
2129
2129
|
onCategoryClick: v
|
|
2130
|
-
} = e, u = b ?? [], h = u.map((p) =>
|
|
2131
|
-
return /* @__PURE__ */ l(
|
|
2130
|
+
} = e, u = b ?? [], h = u.map((p) => He(p.totalScore));
|
|
2131
|
+
return /* @__PURE__ */ l(L, { className: "flex flex-col", children: [
|
|
2132
2132
|
/* @__PURE__ */ l("div", { className: "mb-4 flex flex-col gap-3 sm:flex-row sm:flex-wrap sm:items-center sm:justify-start sm:gap-4", children: [
|
|
2133
2133
|
/* @__PURE__ */ l("div", { className: "flex min-w-0 w-full flex-1 items-center gap-2 sm:w-auto", children: [
|
|
2134
2134
|
/* @__PURE__ */ t(ee, { triadNumber: n }),
|
|
@@ -2179,7 +2179,7 @@ function wa({
|
|
|
2179
2179
|
centerValueColor: i
|
|
2180
2180
|
}) {
|
|
2181
2181
|
const s = o ?? a;
|
|
2182
|
-
return /* @__PURE__ */ l(
|
|
2182
|
+
return /* @__PURE__ */ l(L, { className: "min-w-0 overflow-x-clip", children: [
|
|
2183
2183
|
/* @__PURE__ */ l("div", { className: "mb-4 flex min-w-0 items-center gap-1.5", children: [
|
|
2184
2184
|
/* @__PURE__ */ t("h2", { className: "text-xl font-bold text-[color:var(--mb-color-text)] m-0 p-0", children: e }),
|
|
2185
2185
|
a && s ? /* @__PURE__ */ t(Z, { content: s, children: /* @__PURE__ */ t(
|
|
@@ -2196,7 +2196,7 @@ function wa({
|
|
|
2196
2196
|
/* @__PURE__ */ t(lr, { value: r, max: n, centerValueColor: i })
|
|
2197
2197
|
] });
|
|
2198
2198
|
}
|
|
2199
|
-
const ya = "flex min-h-10 items-center justify-between gap-4 py-3.5 text-sm leading-5 text-[color:var(--mb-color-text)]", Na = "border-t border-[color:var(--mb-color-card-border)]", Ca = "flex min-w-0 flex-1 items-center gap-3", Aa = "flex size-5 shrink-0 items-center justify-center text-[color:var(--mb-color-text-muted)]",
|
|
2199
|
+
const ya = "flex min-h-10 items-center justify-between gap-4 py-3.5 text-sm leading-5 text-[color:var(--mb-color-text)]", Na = "border-t border-[color:var(--mb-color-card-border)]", Ca = "flex min-w-0 flex-1 items-center gap-3", Aa = "flex size-5 shrink-0 items-center justify-center text-[color:var(--mb-color-text-muted)]", La = "size-[18px] shrink-0";
|
|
2200
2200
|
function Xe({
|
|
2201
2201
|
Icon: e,
|
|
2202
2202
|
label: r,
|
|
@@ -2205,13 +2205,13 @@ function Xe({
|
|
|
2205
2205
|
}) {
|
|
2206
2206
|
return /* @__PURE__ */ l("li", { className: `${ya} ${a ? Na : ""}`, children: [
|
|
2207
2207
|
/* @__PURE__ */ l("span", { className: Ca, children: [
|
|
2208
|
-
/* @__PURE__ */ t("span", { className: Aa, "aria-hidden": !0, children: /* @__PURE__ */ t(e, { className:
|
|
2208
|
+
/* @__PURE__ */ t("span", { className: Aa, "aria-hidden": !0, children: /* @__PURE__ */ t(e, { className: La }) }),
|
|
2209
2209
|
/* @__PURE__ */ t("span", { className: "min-w-0 truncate", children: r })
|
|
2210
2210
|
] }),
|
|
2211
2211
|
/* @__PURE__ */ t(_, { variant: "value", children: n })
|
|
2212
2212
|
] });
|
|
2213
2213
|
}
|
|
2214
|
-
function
|
|
2214
|
+
function Ta({
|
|
2215
2215
|
sectionTitle: e,
|
|
2216
2216
|
scorePercent: r,
|
|
2217
2217
|
score: n,
|
|
@@ -2226,7 +2226,7 @@ function La({
|
|
|
2226
2226
|
wearableValueLabel: g
|
|
2227
2227
|
}) {
|
|
2228
2228
|
const v = i ?? o, u = !!(s && c), h = !!(d && m), f = !!(b && g), p = u || h || f;
|
|
2229
|
-
return /* @__PURE__ */ l(
|
|
2229
|
+
return /* @__PURE__ */ l(L, { className: "min-w-0", children: [
|
|
2230
2230
|
/* @__PURE__ */ l("div", { className: "mb-4 flex items-start justify-between gap-4", children: [
|
|
2231
2231
|
/* @__PURE__ */ l("div", { className: "flex min-w-0 flex-1 items-center gap-1.5", children: [
|
|
2232
2232
|
/* @__PURE__ */ t("h2", { className: "text-xl font-bold text-[color:var(--mb-color-text)] m-0 p-0", children: e }),
|
|
@@ -2286,17 +2286,17 @@ function La({
|
|
|
2286
2286
|
] });
|
|
2287
2287
|
}
|
|
2288
2288
|
function Pa({ title: e, items: r = [] }) {
|
|
2289
|
-
return /* @__PURE__ */ l(
|
|
2289
|
+
return /* @__PURE__ */ l(L, { className: "flex flex-col gap-2", children: [
|
|
2290
2290
|
/* @__PURE__ */ t("h2", { className: "text-xl font-bold leading-7 tracking-[-0.08px] text-[color:var(--mb-color-text)]", children: e }),
|
|
2291
2291
|
/* @__PURE__ */ t("div", { className: "w-full overflow-hidden", children: r.map((n, a) => /* @__PURE__ */ t(Yn, { text: n, isFirst: a === 0 }, n)) })
|
|
2292
2292
|
] });
|
|
2293
2293
|
}
|
|
2294
|
-
function
|
|
2294
|
+
function js({
|
|
2295
2295
|
heading: e,
|
|
2296
2296
|
initials: r,
|
|
2297
2297
|
rows: n = []
|
|
2298
2298
|
}) {
|
|
2299
|
-
return /* @__PURE__ */ l(
|
|
2299
|
+
return /* @__PURE__ */ l(L, { className: "min-w-0", children: [
|
|
2300
2300
|
e ? /* @__PURE__ */ t("h2", { className: "m-0 mb-4 p-0 text-xl font-bold text-[color:var(--mb-color-text)]", children: e }) : null,
|
|
2301
2301
|
/* @__PURE__ */ l("div", { className: "flex min-w-0 flex-col gap-4 sm:flex-row sm:items-center", children: [
|
|
2302
2302
|
/* @__PURE__ */ t("div", { className: "mx-auto flex h-24 w-24 shrink-0 items-center justify-center rounded-full bg-gradient-to-br from-neutral-200 to-neutral-300 text-lg font-semibold text-neutral-700 sm:mx-0", children: r }),
|
|
@@ -2326,7 +2326,7 @@ function Sa({
|
|
|
2326
2326
|
var m;
|
|
2327
2327
|
return (m = d.dosage) == null ? void 0 : m.trim();
|
|
2328
2328
|
});
|
|
2329
|
-
return /* @__PURE__ */ l(
|
|
2329
|
+
return /* @__PURE__ */ l(L, { className: "flex flex-col gap-4", children: [
|
|
2330
2330
|
/* @__PURE__ */ l("div", { className: "flex min-w-0 flex-col gap-3 sm:flex-row sm:items-start sm:justify-between", children: [
|
|
2331
2331
|
/* @__PURE__ */ t("h2", { className: "min-w-0 text-xl font-bold leading-7 tracking-[-0.08px] text-[color:var(--mb-color-text)] sm:flex-1", children: e }),
|
|
2332
2332
|
/* @__PURE__ */ t("div", { className: "flex w-full shrink-0 justify-start sm:w-auto", children: /* @__PURE__ */ t($n, { triadNumbers: r }) })
|
|
@@ -2354,7 +2354,7 @@ function Sa({
|
|
|
2354
2354
|
] })
|
|
2355
2355
|
] });
|
|
2356
2356
|
}
|
|
2357
|
-
function
|
|
2357
|
+
function Bs({
|
|
2358
2358
|
title: e,
|
|
2359
2359
|
infoAriaLabel: r,
|
|
2360
2360
|
infoTooltip: n,
|
|
@@ -2365,7 +2365,7 @@ function Hs({
|
|
|
2365
2365
|
viewReportButtonLabel: c,
|
|
2366
2366
|
onViewReport: d
|
|
2367
2367
|
}) {
|
|
2368
|
-
return /* @__PURE__ */ l(
|
|
2368
|
+
return /* @__PURE__ */ l(L, { className: "flex h-full min-h-0 flex-col", children: [
|
|
2369
2369
|
/* @__PURE__ */ t(
|
|
2370
2370
|
it,
|
|
2371
2371
|
{
|
|
@@ -2400,8 +2400,8 @@ function Hs({
|
|
|
2400
2400
|
] })
|
|
2401
2401
|
] });
|
|
2402
2402
|
}
|
|
2403
|
-
function
|
|
2404
|
-
return /* @__PURE__ */ l(
|
|
2403
|
+
function Is({ title: e, children: r, actions: n }) {
|
|
2404
|
+
return /* @__PURE__ */ l(L, { className: "min-w-0 flex flex-col", children: [
|
|
2405
2405
|
/* @__PURE__ */ t("h2", { className: "text-xl font-bold text-[color:var(--mb-color-text)]", children: e }),
|
|
2406
2406
|
r,
|
|
2407
2407
|
/* @__PURE__ */ t("div", { className: "mt-6 flex flex-wrap gap-3", children: n })
|
|
@@ -2411,11 +2411,11 @@ const Ma = {
|
|
|
2411
2411
|
low: "text-[#86CD95]",
|
|
2412
2412
|
moderate: "text-[#E1CB7F]",
|
|
2413
2413
|
high: "text-[#E97180]"
|
|
2414
|
-
},
|
|
2414
|
+
}, ka = {
|
|
2415
2415
|
low: 0,
|
|
2416
2416
|
moderate: 1,
|
|
2417
2417
|
high: 2
|
|
2418
|
-
},
|
|
2418
|
+
}, Ha = {
|
|
2419
2419
|
low: 100 / 3 * 0.5,
|
|
2420
2420
|
moderate: 100 / 3 * 1.5,
|
|
2421
2421
|
high: 100 / 3 * 2.5
|
|
@@ -2426,7 +2426,7 @@ function Ve(e) {
|
|
|
2426
2426
|
function ja(e, r) {
|
|
2427
2427
|
return e <= r.low.max ? "low" : e <= r.moderate.max ? "moderate" : "high";
|
|
2428
2428
|
}
|
|
2429
|
-
function
|
|
2429
|
+
function Ds({
|
|
2430
2430
|
title: e,
|
|
2431
2431
|
score: r,
|
|
2432
2432
|
infoAriaLabel: n,
|
|
@@ -2434,8 +2434,8 @@ function js({
|
|
|
2434
2434
|
zones: o,
|
|
2435
2435
|
onInfoClick: i
|
|
2436
2436
|
}) {
|
|
2437
|
-
const s = ja(r, o), c =
|
|
2438
|
-
return /* @__PURE__ */ l(
|
|
2437
|
+
const s = ja(r, o), c = Ha[s];
|
|
2438
|
+
return /* @__PURE__ */ l(L, { className: "flex flex-col", children: [
|
|
2439
2439
|
/* @__PURE__ */ l("div", { className: "mb-5 flex flex-col gap-2 sm:flex-row sm:items-center sm:justify-between sm:gap-3", children: [
|
|
2440
2440
|
/* @__PURE__ */ l("div", { className: "flex min-w-0 items-center gap-2 sm:min-w-0 sm:flex-1", children: [
|
|
2441
2441
|
/* @__PURE__ */ t("h2", { className: "min-w-0 flex-1 break-words text-lg font-bold leading-snug text-[color:var(--mb-color-text)] sm:text-xl", children: e }),
|
|
@@ -2477,7 +2477,7 @@ function js({
|
|
|
2477
2477
|
segments: Y,
|
|
2478
2478
|
indicatorPercent: c,
|
|
2479
2479
|
indicatorPosition: "segmentCenter",
|
|
2480
|
-
highlightedSegmentIndex:
|
|
2480
|
+
highlightedSegmentIndex: ka[s]
|
|
2481
2481
|
}
|
|
2482
2482
|
)
|
|
2483
2483
|
] });
|
|
@@ -2581,9 +2581,9 @@ function za({
|
|
|
2581
2581
|
}
|
|
2582
2582
|
);
|
|
2583
2583
|
}
|
|
2584
|
-
const zt = _t(
|
|
2584
|
+
const zt = _t(H), Oa = ["--mb-color-focus-ring", "--mb-color-focus-offset"];
|
|
2585
2585
|
function Ea() {
|
|
2586
|
-
const e = F(zt), [, r] =
|
|
2586
|
+
const e = F(zt), [, r] = k(0);
|
|
2587
2587
|
return V(() => {
|
|
2588
2588
|
const n = { ...zt }, a = document.querySelector(".mb-root");
|
|
2589
2589
|
if (a instanceof HTMLElement) {
|
|
@@ -2615,10 +2615,10 @@ function Fa({
|
|
|
2615
2615
|
organContent: b
|
|
2616
2616
|
}) {
|
|
2617
2617
|
var ie, ge, pe, xe, ve, se, J, xt, vt, wt;
|
|
2618
|
-
const g = at(), [v, u] =
|
|
2618
|
+
const g = at(), [v, u] = k(!1), [h, f] = k(e), [p, y] = k(!1), C = Ea(), N = m && b ? b[m] : void 0, w = s != null ? {
|
|
2619
2619
|
...s,
|
|
2620
2620
|
currentDateLabel: ((ie = s.currentDateLabel) == null ? void 0 : ie.trim()) || (c == null ? void 0 : c.trim()) || void 0
|
|
2621
|
-
} : void 0, P = ((ge = w == null ? void 0 : w.name) == null ? void 0 : ge.trim()) || n.trim() || "Category", A = Da(a, P), S = d != null && ((pe = w == null ? void 0 : w.name) != null && pe.trim()) ? `Triad ${d}: ${w.name.trim()}` : d != null ? `Triad ${d}` : n,
|
|
2621
|
+
} : void 0, P = ((ge = w == null ? void 0 : w.name) == null ? void 0 : ge.trim()) || n.trim() || "Category", A = Da(a, P), S = d != null && ((pe = w == null ? void 0 : w.name) != null && pe.trim()) ? `Triad ${d}: ${w.name.trim()}` : d != null ? `Triad ${d}` : n, T = (xe = w == null ? void 0 : w.previousSymptomScore) == null ? void 0 : xe.trim(), R = (ve = w == null ? void 0 : w.previousLabScore) == null ? void 0 : ve.trim(), G = (se = w == null ? void 0 : w.previousTotalScore) == null ? void 0 : se.trim(), B = !!(T && T !== "—" && T !== "-" && T !== "–") || !!(R && R !== "—" && R !== "-" && R !== "–") || !!(G && G !== "—" && G !== "-" && G !== "–"), q = ((J = w == null ? void 0 : w.previousDateLabel) == null ? void 0 : J.trim()) || "Previous", $ = ((xt = w == null ? void 0 : w.currentDateLabel) == null ? void 0 : xt.trim()) || "Current", ze = w != null && !!((vt = w.currentDateLabel) != null && vt.trim()) && !!((wt = w.previousDateLabel) != null && wt.trim()) && B;
|
|
2622
2622
|
return V(() => {
|
|
2623
2623
|
y(!0);
|
|
2624
2624
|
}, []), V(() => {
|
|
@@ -2755,7 +2755,7 @@ function Fa({
|
|
|
2755
2755
|
},
|
|
2756
2756
|
currentRangeLabel: $,
|
|
2757
2757
|
previousRangeLabel: q,
|
|
2758
|
-
siblingTotals: [
|
|
2758
|
+
siblingTotals: [He(w.totalScore)]
|
|
2759
2759
|
}
|
|
2760
2760
|
) : /* @__PURE__ */ t(
|
|
2761
2761
|
ne,
|
|
@@ -2853,7 +2853,7 @@ function Ga({
|
|
|
2853
2853
|
organContent: m
|
|
2854
2854
|
}) {
|
|
2855
2855
|
var f;
|
|
2856
|
-
const [b, g] =
|
|
2856
|
+
const [b, g] = k(!1), v = (o == null ? void 0 : o.bodyParagraphs) ?? [], u = ((f = o == null ? void 0 : o.panelTitle) == null ? void 0 : f.trim()) || e, h = o == null ? void 0 : o.organKey;
|
|
2857
2857
|
return /* @__PURE__ */ l(ae, { children: [
|
|
2858
2858
|
/* @__PURE__ */ l(
|
|
2859
2859
|
M,
|
|
@@ -2898,67 +2898,62 @@ function le({
|
|
|
2898
2898
|
organContent: o,
|
|
2899
2899
|
metricLabels: i = Ya,
|
|
2900
2900
|
metricSlots: s = 3,
|
|
2901
|
-
layoutBreakpoint: c
|
|
2901
|
+
layoutBreakpoint: c,
|
|
2902
|
+
rowSize: d
|
|
2902
2903
|
}) {
|
|
2903
|
-
const
|
|
2904
|
-
/* @__PURE__ */ t("span", { className: "shrink-0 text-xs text-[color:var(--mb-color-text-muted)] sm:text-sm", children:
|
|
2904
|
+
const m = e.infoTooltip ?? e.infoAriaLabel, b = e.status === "optimal", g = e.status === "high", v = e.status === "low", u = b ? "border-[#3a9e6a]" : g || v ? "border-[#d94040]" : "border-[#e09a1a]", h = b ? "bg-[#e8f6ee]" : g || v ? "bg-[#fdecec]" : "bg-[#fff8eb]", f = b ? "OPTIMAL" : g ? "HIGH" : v ? "LOW" : "TRENDING", p = b ? "trendRowStatusOptimal" : g ? "trendRowStatusHigh" : v ? "trendRowStatusLow" : "trendRowStatusTrending", y = s === 2, C = d ? d === "wellness" : y, N = c ?? (y ? "2xl" : "xl"), w = N === "2xl" ? "2xl:flex-row 2xl:items-stretch" : "xl:flex-row xl:items-stretch", P = C ? N === "2xl" ? "2xl:shrink-0 2xl:w-[20rem]" : "xl:shrink-0 xl:w-[20rem]" : N === "2xl" ? "2xl:shrink-0 2xl:w-[14rem]" : "xl:shrink-0 xl:w-[14rem]", A = y ? N === "2xl" ? "sm:grid-cols-2 2xl:mx-auto 2xl:w-full 2xl:max-w-[50rem] 2xl:border-t-0 2xl:px-8 2xl:py-1" : "sm:grid-cols-2 xl:mx-auto xl:w-full xl:max-w-[50rem] xl:border-t-0 xl:px-8 xl:py-1" : N === "2xl" ? "sm:grid-cols-3 2xl:border-t-0 2xl:px-16 2xl:py-1" : "sm:grid-cols-3 xl:border-t-0 xl:px-16 xl:py-1", S = y || C ? N === "2xl" ? "2xl:shrink-0 2xl:w-[9rem]" : "xl:shrink-0 xl:w-[9rem]" : N === "2xl" ? "2xl:shrink-0 2xl:w-[7rem]" : "xl:shrink-0 xl:w-[7rem]", T = (R, G, B) => /* @__PURE__ */ l("span", { className: "flex min-w-0 max-w-full items-center gap-1.5", children: [
|
|
2905
|
+
/* @__PURE__ */ t("span", { className: "shrink-0 text-xs text-[color:var(--mb-color-text-muted)] sm:text-sm", children: R }),
|
|
2905
2906
|
/* @__PURE__ */ t(
|
|
2906
2907
|
_,
|
|
2907
2908
|
{
|
|
2908
2909
|
variant: "value",
|
|
2909
|
-
className: `!bg-[#EBEBEB] !text-[#1C2024] min-h-[1.5rem] min-w-[2.25rem] max-w-full shrink truncate tabular-nums ${
|
|
2910
|
-
children:
|
|
2910
|
+
className: `!bg-[#EBEBEB] !text-[#1C2024] min-h-[1.5rem] min-w-[2.25rem] max-w-full shrink truncate tabular-nums ${B ? "font-bold" : ""}`,
|
|
2911
|
+
children: G
|
|
2911
2912
|
}
|
|
2912
2913
|
)
|
|
2913
2914
|
] });
|
|
2914
2915
|
return /* @__PURE__ */ l(
|
|
2915
2916
|
"div",
|
|
2916
2917
|
{
|
|
2917
|
-
className: `flex min-w-0 flex-col overflow-hidden rounded-[length:var(--mb-radius-button)] border border-solid bg-[color:var(--mb-color-card-bg)] [border-width:1px] ${
|
|
2918
|
+
className: `flex min-w-0 flex-col overflow-hidden rounded-[length:var(--mb-radius-button)] border border-solid bg-[color:var(--mb-color-card-bg)] [border-width:1px] ${w} ${u}`,
|
|
2918
2919
|
children: [
|
|
2920
|
+
/* @__PURE__ */ l("div", { className: `flex min-w-0 items-center gap-2 px-3 ${P} ${h}`, children: [
|
|
2921
|
+
/* @__PURE__ */ t(Z, { content: m, children: /* @__PURE__ */ t(
|
|
2922
|
+
M,
|
|
2923
|
+
{
|
|
2924
|
+
type: "button",
|
|
2925
|
+
align: "center",
|
|
2926
|
+
"aria-label": e.infoAriaLabel,
|
|
2927
|
+
className: `${X} !m-0 shrink-0 !border-0 !bg-transparent !shadow-none hover:!bg-black/5`,
|
|
2928
|
+
children: /* @__PURE__ */ t(E, { className: "size-4 text-[color:var(--mb-color-text-muted)]" })
|
|
2929
|
+
}
|
|
2930
|
+
) }),
|
|
2931
|
+
/* @__PURE__ */ t("span", { className: "min-w-0 flex-1 whitespace-normal break-normal text-xs font-bold uppercase leading-snug tracking-wide text-[color:var(--mb-color-text)] sm:text-sm", children: e.name })
|
|
2932
|
+
] }),
|
|
2919
2933
|
/* @__PURE__ */ l(
|
|
2920
2934
|
"div",
|
|
2921
2935
|
{
|
|
2922
|
-
className: `
|
|
2923
|
-
children: [
|
|
2924
|
-
/* @__PURE__ */ t(Z, { content: d, children: /* @__PURE__ */ t(
|
|
2925
|
-
M,
|
|
2926
|
-
{
|
|
2927
|
-
type: "button",
|
|
2928
|
-
align: "center",
|
|
2929
|
-
"aria-label": e.infoAriaLabel,
|
|
2930
|
-
className: `${X} !m-0 shrink-0 !border-0 !bg-transparent !shadow-none hover:!bg-black/5`,
|
|
2931
|
-
children: /* @__PURE__ */ t(E, { className: "size-4 text-[color:var(--mb-color-text-muted)]" })
|
|
2932
|
-
}
|
|
2933
|
-
) }),
|
|
2934
|
-
/* @__PURE__ */ t("span", { className: "min-w-0 flex-1 whitespace-normal break-normal text-xs font-bold uppercase leading-snug tracking-wide text-[color:var(--mb-color-text)] sm:text-sm", children: e.name })
|
|
2935
|
-
]
|
|
2936
|
-
}
|
|
2937
|
-
),
|
|
2938
|
-
/* @__PURE__ */ l(
|
|
2939
|
-
"div",
|
|
2940
|
-
{
|
|
2941
|
-
className: `grid min-w-0 flex-1 grid-cols-1 gap-y-2 border-t border-[color:var(--mb-color-card-border)] bg-[color:var(--mb-color-card-bg)] px-3 py-2 sm:gap-x-3 sm:gap-y-0 ${P}`,
|
|
2936
|
+
className: `grid min-w-0 flex-1 grid-cols-1 gap-y-2 border-t border-[color:var(--mb-color-card-border)] bg-[color:var(--mb-color-card-bg)] px-3 py-2 sm:gap-x-3 sm:gap-y-0 ${A}`,
|
|
2942
2937
|
children: [
|
|
2943
|
-
/* @__PURE__ */ t("div", { className: `flex min-w-0 ${
|
|
2938
|
+
/* @__PURE__ */ t("div", { className: `flex min-w-0 ${y ? "justify-center" : "justify-start"}`, children: T(i[0], e.symptomScore) }),
|
|
2944
2939
|
/* @__PURE__ */ t(
|
|
2945
2940
|
"div",
|
|
2946
2941
|
{
|
|
2947
|
-
className: `flex min-w-0 ${
|
|
2948
|
-
children:
|
|
2942
|
+
className: `flex min-w-0 ${y ? "justify-center" : "justify-start ml-0 md:ml-16"}`,
|
|
2943
|
+
children: T(i[1], e.labScore, y)
|
|
2949
2944
|
}
|
|
2950
2945
|
),
|
|
2951
|
-
s === 3 ? /* @__PURE__ */ t("div", { className: "flex min-w-0 justify-start sm:justify-end", children:
|
|
2946
|
+
s === 3 ? /* @__PURE__ */ t("div", { className: "flex min-w-0 justify-start sm:justify-end", children: T(i[2], e.totalScore, !0) }) : null
|
|
2952
2947
|
]
|
|
2953
2948
|
}
|
|
2954
2949
|
),
|
|
2955
2950
|
/* @__PURE__ */ t(
|
|
2956
2951
|
Ga,
|
|
2957
2952
|
{
|
|
2958
|
-
badgeLabel:
|
|
2953
|
+
badgeLabel: f,
|
|
2959
2954
|
trendStatus: e.status,
|
|
2960
|
-
trendStatusVariant:
|
|
2961
|
-
className: `flex !self-stretch !rounded-none rounded-br-[length:var(--mb-radius-button)] rounded-tr-[length:var(--mb-radius-button)] ${
|
|
2955
|
+
trendStatusVariant: p,
|
|
2956
|
+
className: `flex !self-stretch !rounded-none rounded-br-[length:var(--mb-radius-button)] rounded-tr-[length:var(--mb-radius-button)] ${S}`,
|
|
2962
2957
|
statusExplanationPanel: e.statusExplanationPanel,
|
|
2963
2958
|
panelIntroParagraphs: r,
|
|
2964
2959
|
panelLabsDateLabel: n,
|
|
@@ -2976,23 +2971,27 @@ function le({
|
|
|
2976
2971
|
}
|
|
2977
2972
|
);
|
|
2978
2973
|
}
|
|
2979
|
-
function
|
|
2974
|
+
function D({ title: e, subtitle: r, className: n = "" }) {
|
|
2980
2975
|
return /* @__PURE__ */ l("header", { className: `space-y-1 ${n}`.trim(), children: [
|
|
2981
2976
|
/* @__PURE__ */ t("h1", { className: "text-4xl font-bold tracking-tight text-[color:var(--mb-color-text)] m-0 p-0 mb-2", children: e }),
|
|
2982
2977
|
r ? /* @__PURE__ */ t("p", { className: "max-w-3xl text-sm leading-relaxed text-[color:var(--mb-color-text-muted)] m-0 p-0", children: r }) : null
|
|
2983
2978
|
] });
|
|
2984
2979
|
}
|
|
2985
|
-
const Xa = ["Normal Range", "Current Range", "Indicator"], Ot = ["high", "low", "
|
|
2980
|
+
const Xa = ["Normal Range", "Current Range", "Indicator"], Ot = ["high", "low", "lowNormal", "highNormal"], Va = {
|
|
2986
2981
|
high: "Alert High",
|
|
2987
2982
|
low: "Alert Low",
|
|
2988
|
-
|
|
2983
|
+
lowNormal: "Low Normal",
|
|
2984
|
+
highNormal: "High Normal"
|
|
2989
2985
|
};
|
|
2990
2986
|
function Za(e) {
|
|
2987
|
+
return e.status === "high" ? "high" : e.status === "low" ? "low" : (e.indicatorPercent ?? (Number.isFinite(Number(e.totalScore)) ? Number(e.totalScore) : 50)) < 50 ? "lowNormal" : "highNormal";
|
|
2988
|
+
}
|
|
2989
|
+
function Wa(e) {
|
|
2991
2990
|
const r = /* @__PURE__ */ new Map();
|
|
2992
2991
|
for (const n of Ot)
|
|
2993
2992
|
r.set(n, []);
|
|
2994
2993
|
for (const n of e) {
|
|
2995
|
-
const a = n
|
|
2994
|
+
const a = Za(n), o = r.get(a);
|
|
2996
2995
|
o && o.push(n);
|
|
2997
2996
|
}
|
|
2998
2997
|
return Ot.map((n) => ({
|
|
@@ -3001,51 +3000,52 @@ function Za(e) {
|
|
|
3001
3000
|
rows: r.get(n) ?? []
|
|
3002
3001
|
})).filter((n) => n.rows.length > 0);
|
|
3003
3002
|
}
|
|
3004
|
-
function
|
|
3005
|
-
const { pageHeader: r, indicators: n } = e, o =
|
|
3003
|
+
function Rs({ content: e }) {
|
|
3004
|
+
const { pageHeader: r, indicators: n } = e, o = Wa(n ?? []);
|
|
3006
3005
|
return /* @__PURE__ */ l("div", { className: "mx-auto w-full min-w-0 space-y-6", children: [
|
|
3007
|
-
/* @__PURE__ */ t(
|
|
3008
|
-
/* @__PURE__ */ t("div", { className: "flex min-w-0 flex-col gap-6", children: o.map(({ category: i, title: s, rows: c }) => /* @__PURE__ */ l(
|
|
3006
|
+
/* @__PURE__ */ t(D, { title: r.title, subtitle: r.subtitle }),
|
|
3007
|
+
/* @__PURE__ */ t("div", { className: "flex min-w-0 flex-col gap-6", children: o.map(({ category: i, title: s, rows: c }) => /* @__PURE__ */ l(L, { className: "min-w-0", children: [
|
|
3009
3008
|
/* @__PURE__ */ t("h2", { className: "mb-4 m-0 text-lg font-bold text-[color:var(--mb-color-text)]", children: s }),
|
|
3010
3009
|
/* @__PURE__ */ t("div", { className: "space-y-2", children: c.map((d) => /* @__PURE__ */ t(
|
|
3011
3010
|
le,
|
|
3012
3011
|
{
|
|
3013
3012
|
row: d,
|
|
3014
3013
|
metricLabels: Xa,
|
|
3015
|
-
layoutBreakpoint: "2xl"
|
|
3014
|
+
layoutBreakpoint: "2xl",
|
|
3015
|
+
rowSize: "wellness"
|
|
3016
3016
|
},
|
|
3017
3017
|
d.name
|
|
3018
3018
|
)) })
|
|
3019
3019
|
] }, i)) })
|
|
3020
3020
|
] });
|
|
3021
3021
|
}
|
|
3022
|
-
function
|
|
3023
|
-
return /* @__PURE__ */ l("div", { className: "flex min-w-0 flex-col overflow-hidden rounded-[length:var(--mb-radius-button)] border border-solid border-[color:var(--mb-color-card-border)] bg-[color:var(--mb-color-card-bg)] [border-width:1px]
|
|
3024
|
-
/* @__PURE__ */ l("div", { className: "flex min-w-0 items-center gap-2 bg-[#ebebeb]/40 px-3 py-2.5
|
|
3022
|
+
function Ua() {
|
|
3023
|
+
return /* @__PURE__ */ l("div", { className: "flex min-w-0 flex-col overflow-hidden rounded-[length:var(--mb-radius-button)] border border-solid border-[color:var(--mb-color-card-border)] bg-[color:var(--mb-color-card-bg)] [border-width:1px] 2xl:flex-row 2xl:items-stretch", children: [
|
|
3024
|
+
/* @__PURE__ */ l("div", { className: "flex min-w-0 items-center gap-2 bg-[#ebebeb]/40 px-3 py-2.5 2xl:w-[20rem] 2xl:shrink-0", children: [
|
|
3025
3025
|
/* @__PURE__ */ t(x, { className: "size-4 shrink-0 rounded" }),
|
|
3026
|
-
/* @__PURE__ */ t(x, { className: "h-3.5 min-w-0 flex-1 max-w-[
|
|
3026
|
+
/* @__PURE__ */ t(x, { className: "h-3.5 min-w-0 flex-1 max-w-[14rem] sm:h-4" })
|
|
3027
3027
|
] }),
|
|
3028
|
-
/* @__PURE__ */ l("div", { className: "grid min-w-0 flex-1 grid-cols-1 gap-y-2 border-t border-[color:var(--mb-color-card-border)] bg-[color:var(--mb-color-card-bg)] px-3 py-2 sm:grid-cols-3 sm:gap-x-3 sm:gap-y-0
|
|
3028
|
+
/* @__PURE__ */ l("div", { className: "grid min-w-0 flex-1 grid-cols-1 gap-y-2 border-t border-[color:var(--mb-color-card-border)] bg-[color:var(--mb-color-card-bg)] px-3 py-2 sm:grid-cols-3 sm:gap-x-3 sm:gap-y-0 2xl:border-t-0 2xl:px-16 2xl:py-1", children: [
|
|
3029
3029
|
/* @__PURE__ */ t("div", { className: "flex min-w-0 justify-start", children: /* @__PURE__ */ t(x, { className: "h-6 w-[min(100%,6.5rem)]" }) }),
|
|
3030
3030
|
/* @__PURE__ */ t("div", { className: "flex min-w-0 justify-start md:ml-16", children: /* @__PURE__ */ t(x, { className: "h-6 w-[min(100%,6.5rem)]" }) }),
|
|
3031
3031
|
/* @__PURE__ */ t("div", { className: "flex min-w-0 justify-start sm:justify-end", children: /* @__PURE__ */ t(x, { className: "h-6 w-[min(100%,6.5rem)]" }) })
|
|
3032
3032
|
] }),
|
|
3033
|
-
/* @__PURE__ */ t(x, { className: "min-h-[3.25rem] w-full shrink-0 rounded-none rounded-br-[length:var(--mb-radius-button)] rounded-tr-[length:var(--mb-radius-button)]
|
|
3033
|
+
/* @__PURE__ */ t(x, { className: "min-h-[3.25rem] w-full shrink-0 rounded-none rounded-br-[length:var(--mb-radius-button)] rounded-tr-[length:var(--mb-radius-button)] 2xl:w-[9rem] 2xl:min-h-0 2xl:self-stretch" })
|
|
3034
3034
|
] });
|
|
3035
3035
|
}
|
|
3036
|
-
const
|
|
3037
|
-
{ title: "Alert High",
|
|
3038
|
-
{ title: "Alert Low",
|
|
3039
|
-
{ title: "High Normal",
|
|
3036
|
+
const Qa = [
|
|
3037
|
+
{ title: "Alert High", rowKeys: ["alert-high-1", "alert-high-2", "alert-high-3"] },
|
|
3038
|
+
{ title: "Alert Low", rowKeys: ["alert-low-1", "alert-low-2"] },
|
|
3039
|
+
{ title: "High Normal", rowKeys: ["high-normal-1", "high-normal-2"] }
|
|
3040
3040
|
];
|
|
3041
|
-
function
|
|
3041
|
+
function Ka({
|
|
3042
3042
|
pageHeader: e
|
|
3043
3043
|
}) {
|
|
3044
3044
|
return /* @__PURE__ */ l(K, { children: [
|
|
3045
|
-
/* @__PURE__ */ t(
|
|
3046
|
-
/* @__PURE__ */ t("div", { className: "flex min-w-0 flex-col gap-6", children:
|
|
3045
|
+
/* @__PURE__ */ t(D, { title: e.title, subtitle: e.subtitle }),
|
|
3046
|
+
/* @__PURE__ */ t("div", { className: "flex min-w-0 flex-col gap-6", children: Qa.map((r) => /* @__PURE__ */ l(L, { className: "min-w-0", children: [
|
|
3047
3047
|
/* @__PURE__ */ t("h2", { className: "mb-4 m-0 text-lg font-bold text-[color:var(--mb-color-text)]", children: r.title }),
|
|
3048
|
-
/* @__PURE__ */ t("div", { className: "space-y-2", children:
|
|
3048
|
+
/* @__PURE__ */ t("div", { className: "space-y-2", children: r.rowKeys.map((n) => /* @__PURE__ */ t(Ua, {}, n)) })
|
|
3049
3049
|
] }, r.title)) })
|
|
3050
3050
|
] });
|
|
3051
3051
|
}
|
|
@@ -3053,7 +3053,7 @@ const xr = qt({});
|
|
|
3053
3053
|
function Ie() {
|
|
3054
3054
|
return ot(xr);
|
|
3055
3055
|
}
|
|
3056
|
-
const
|
|
3056
|
+
const qa = xr.Provider;
|
|
3057
3057
|
function mt({
|
|
3058
3058
|
sectionTitle: e,
|
|
3059
3059
|
infoTooltip: r,
|
|
@@ -3109,13 +3109,13 @@ function mt({
|
|
|
3109
3109
|
] })
|
|
3110
3110
|
] }) });
|
|
3111
3111
|
}
|
|
3112
|
-
const
|
|
3113
|
-
function
|
|
3112
|
+
const Ja = "lab-results";
|
|
3113
|
+
function _a({
|
|
3114
3114
|
data: e,
|
|
3115
3115
|
organContent: r
|
|
3116
3116
|
}) {
|
|
3117
3117
|
const { onNavigateToNavItem: n } = Ie(), a = e.infoTooltip ?? e.infoAriaLabel;
|
|
3118
|
-
return /* @__PURE__ */ l(
|
|
3118
|
+
return /* @__PURE__ */ l(L, { className: "min-w-0", children: [
|
|
3119
3119
|
/* @__PURE__ */ t(
|
|
3120
3120
|
mt,
|
|
3121
3121
|
{
|
|
@@ -3126,7 +3126,7 @@ function Ja({
|
|
|
3126
3126
|
lastLabsLabel: e.lastLabsLabel,
|
|
3127
3127
|
viewAllLabel: e.viewAllLabel,
|
|
3128
3128
|
viewAllLabelCompact: e.viewAllLabelCompact,
|
|
3129
|
-
onViewAllClick: n ? () => n(
|
|
3129
|
+
onViewAllClick: n ? () => n(Ja) : void 0
|
|
3130
3130
|
}
|
|
3131
3131
|
),
|
|
3132
3132
|
/* @__PURE__ */ t("div", { className: "space-y-2", children: e.rows.map((o) => /* @__PURE__ */ t(
|
|
@@ -3134,13 +3134,14 @@ function Ja({
|
|
|
3134
3134
|
{
|
|
3135
3135
|
row: o,
|
|
3136
3136
|
lastLabsLabel: e.lastLabsLabel,
|
|
3137
|
-
organContent: r
|
|
3137
|
+
organContent: r,
|
|
3138
|
+
rowSize: "wellness"
|
|
3138
3139
|
},
|
|
3139
3140
|
o.name
|
|
3140
3141
|
)) })
|
|
3141
3142
|
] });
|
|
3142
3143
|
}
|
|
3143
|
-
function
|
|
3144
|
+
function z(e, r, n, a, o, i) {
|
|
3144
3145
|
return {
|
|
3145
3146
|
name: e,
|
|
3146
3147
|
infoAriaLabel: `${e} category information`,
|
|
@@ -3151,7 +3152,7 @@ function R(e, r, n, a, o, i) {
|
|
|
3151
3152
|
...i ? { statusExplanationPanel: i } : {}
|
|
3152
3153
|
};
|
|
3153
3154
|
}
|
|
3154
|
-
const
|
|
3155
|
+
const $a = {
|
|
3155
3156
|
sectionTitle: "Total Predictive Trend Snapshot",
|
|
3156
3157
|
infoAriaLabel: "Total predictive trend snapshot information",
|
|
3157
3158
|
lastLabsCaption: "Last Labs",
|
|
@@ -3167,49 +3168,49 @@ const _a = {
|
|
|
3167
3168
|
],
|
|
3168
3169
|
categoriesByTriadIndex: [
|
|
3169
3170
|
[
|
|
3170
|
-
|
|
3171
|
+
z("Adrenal", "145", "35", "180", "high", {
|
|
3171
3172
|
panelTitle: "HIGH",
|
|
3172
3173
|
bodyParagraphs: [
|
|
3173
3174
|
"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua."
|
|
3174
3175
|
]
|
|
3175
3176
|
}),
|
|
3176
|
-
|
|
3177
|
-
|
|
3177
|
+
z("Pancreas", "130", "185", "315", "high"),
|
|
3178
|
+
z("Thyroid", "55", "55", "110", "optimal")
|
|
3178
3179
|
],
|
|
3179
3180
|
[
|
|
3180
|
-
|
|
3181
|
-
|
|
3182
|
-
|
|
3181
|
+
z("Gut", "115", "10", "125", "trending"),
|
|
3182
|
+
z("Brain", "135", "55", "190", "trending"),
|
|
3183
|
+
z("Immune", "55", "125", "180", "optimal")
|
|
3183
3184
|
],
|
|
3184
3185
|
[
|
|
3185
|
-
|
|
3186
|
-
|
|
3187
|
-
|
|
3186
|
+
z("Testosterone", "50", "250", "300", "trending"),
|
|
3187
|
+
z("Estrogen", "15", "140", "155", "trending"),
|
|
3188
|
+
z("Progesterone", "5", "0", "5", "optimal")
|
|
3188
3189
|
],
|
|
3189
3190
|
[
|
|
3190
|
-
|
|
3191
|
-
|
|
3192
|
-
|
|
3191
|
+
z("Cardio", "45", "130", "175", "optimal"),
|
|
3192
|
+
z("Pulmonary", "5", "25", "30", "optimal"),
|
|
3193
|
+
z("Neurovascular", "50", "15", "65", "optimal")
|
|
3193
3194
|
],
|
|
3194
3195
|
[
|
|
3195
|
-
|
|
3196
|
-
|
|
3197
|
-
|
|
3196
|
+
z("Liver", "65", "45", "110", "optimal"),
|
|
3197
|
+
z("Lymph", "25", "30", "55", "optimal"),
|
|
3198
|
+
z("Kidney", "30", "55", "85", "optimal")
|
|
3198
3199
|
]
|
|
3199
3200
|
]
|
|
3200
|
-
},
|
|
3201
|
+
}, eo = {
|
|
3201
3202
|
1: "text-[#E49B67]",
|
|
3202
3203
|
2: "text-[#7ABFE4]",
|
|
3203
3204
|
3: "text-[#7FC99C]",
|
|
3204
3205
|
4: "text-[#E86C7F]",
|
|
3205
3206
|
5: "text-[#7D7DBB]"
|
|
3206
|
-
},
|
|
3207
|
-
function
|
|
3207
|
+
}, to = "total-predictive-index";
|
|
3208
|
+
function ro({
|
|
3208
3209
|
data: e,
|
|
3209
3210
|
organContent: r
|
|
3210
3211
|
}) {
|
|
3211
3212
|
const { onNavigateToNavItem: n } = Ie(), a = e.infoTooltip ?? e.infoAriaLabel;
|
|
3212
|
-
return /* @__PURE__ */ l(
|
|
3213
|
+
return /* @__PURE__ */ l(L, { className: "min-w-0", children: [
|
|
3213
3214
|
/* @__PURE__ */ t(
|
|
3214
3215
|
mt,
|
|
3215
3216
|
{
|
|
@@ -3220,11 +3221,11 @@ function to({
|
|
|
3220
3221
|
lastLabsLabel: e.lastLabsLabel,
|
|
3221
3222
|
viewAllLabel: e.viewAllLabel,
|
|
3222
3223
|
viewAllLabelCompact: e.viewAllLabelCompact,
|
|
3223
|
-
onViewAllClick: n ? () => n(
|
|
3224
|
+
onViewAllClick: n ? () => n(to) : void 0
|
|
3224
3225
|
}
|
|
3225
3226
|
),
|
|
3226
3227
|
/* @__PURE__ */ t("div", { className: "mt-1 overflow-hidden rounded-[var(--mb-radius-card)] border border-[color:var(--mb-color-card-border)] [border-width:var(--mb-card-border-width)]", children: e.triads.map((o, i) => {
|
|
3227
|
-
const s = e.categoriesByTriadIndex[i] ?? [], c =
|
|
3228
|
+
const s = e.categoriesByTriadIndex[i] ?? [], c = eo[o.triadNumber] ?? "text-sky-400";
|
|
3228
3229
|
return /* @__PURE__ */ l(
|
|
3229
3230
|
"div",
|
|
3230
3231
|
{
|
|
@@ -3270,7 +3271,7 @@ function to({
|
|
|
3270
3271
|
}) })
|
|
3271
3272
|
] });
|
|
3272
3273
|
}
|
|
3273
|
-
const
|
|
3274
|
+
const no = {
|
|
3274
3275
|
1: "text-[#E49B67]",
|
|
3275
3276
|
2: "text-[#7ABFE4]",
|
|
3276
3277
|
3: "text-[#7FC99C]",
|
|
@@ -3289,7 +3290,7 @@ function ut({
|
|
|
3289
3290
|
role: "tablist",
|
|
3290
3291
|
"aria-label": "Triad trends",
|
|
3291
3292
|
children: e.map((a, o) => {
|
|
3292
|
-
const i = o === r, s =
|
|
3293
|
+
const i = o === r, s = no[a.triadNumber] ?? "text-sky-400";
|
|
3293
3294
|
return /* @__PURE__ */ l(
|
|
3294
3295
|
"button",
|
|
3295
3296
|
{
|
|
@@ -3340,15 +3341,15 @@ function ut({
|
|
|
3340
3341
|
}
|
|
3341
3342
|
);
|
|
3342
3343
|
}
|
|
3343
|
-
const vr = "Triad 1 is your body's Energy hub. The adrenals manage stress, the thyroid drives metabolism, and the pancreas regulates blood sugar. When in sync, you feel steady energy, focus, and balanced moods all day. Out of balance, you may wake up tired, crash mid-afternoon, crave sugar or caffeine, and find weight harder to control. Stress feels heavier, and motivation dips. Balancing Triad 1 restores your natural rhythm — smoother energy, sharper focus, calmer moods, and stronger resilience. It's the foundation for feeling refreshed in the morning and powered through the day.",
|
|
3344
|
+
const vr = "Triad 1 is your body's Energy hub. The adrenals manage stress, the thyroid drives metabolism, and the pancreas regulates blood sugar. When in sync, you feel steady energy, focus, and balanced moods all day. Out of balance, you may wake up tired, crash mid-afternoon, crave sugar or caffeine, and find weight harder to control. Stress feels heavier, and motivation dips. Balancing Triad 1 restores your natural rhythm — smoother energy, sharper focus, calmer moods, and stronger resilience. It's the foundation for feeling refreshed in the morning and powered through the day.", ao = [
|
|
3344
3345
|
vr
|
|
3345
|
-
],
|
|
3346
|
-
function
|
|
3346
|
+
], oo = "total-predictive-index";
|
|
3347
|
+
function lo({
|
|
3347
3348
|
data: e,
|
|
3348
3349
|
organContent: r
|
|
3349
3350
|
}) {
|
|
3350
|
-
const { onNavigateToNavItem: n } = Ie(), [a, o] =
|
|
3351
|
-
return /* @__PURE__ */ l(
|
|
3351
|
+
const { onNavigateToNavItem: n } = Ie(), [a, o] = k(0), i = Math.min(a, Math.max(0, e.triads.length - 1)), s = e.categoriesByTriadIndex[i] ?? [], c = e.infoTooltip ?? e.infoAriaLabel, d = e.triads[i], m = (d == null ? void 0 : d.triadNumber) === 1 ? ao : void 0;
|
|
3352
|
+
return /* @__PURE__ */ l(L, { className: "min-w-0", children: [
|
|
3352
3353
|
/* @__PURE__ */ t(
|
|
3353
3354
|
mt,
|
|
3354
3355
|
{
|
|
@@ -3359,7 +3360,7 @@ function oo({
|
|
|
3359
3360
|
lastLabsLabel: e.lastLabsLabel,
|
|
3360
3361
|
viewAllLabel: e.viewAllLabel,
|
|
3361
3362
|
viewAllLabelCompact: e.viewAllLabelCompact,
|
|
3362
|
-
onViewAllClick: n ? () => n(
|
|
3363
|
+
onViewAllClick: n ? () => n(oo) : void 0
|
|
3363
3364
|
}
|
|
3364
3365
|
),
|
|
3365
3366
|
/* @__PURE__ */ t(
|
|
@@ -3379,19 +3380,20 @@ function oo({
|
|
|
3379
3380
|
statusPanelIntroParagraphs: m,
|
|
3380
3381
|
lastLabsLabel: e.lastLabsLabel,
|
|
3381
3382
|
triadNumber: d == null ? void 0 : d.triadNumber,
|
|
3382
|
-
organContent: r
|
|
3383
|
+
organContent: r,
|
|
3384
|
+
rowSize: "wellness"
|
|
3383
3385
|
},
|
|
3384
3386
|
b.name
|
|
3385
3387
|
)) })
|
|
3386
3388
|
] })
|
|
3387
3389
|
] });
|
|
3388
3390
|
}
|
|
3389
|
-
const
|
|
3391
|
+
const io = {
|
|
3390
3392
|
"schedule-labs": ct,
|
|
3391
3393
|
"export-reports": dt
|
|
3392
3394
|
};
|
|
3393
|
-
function
|
|
3394
|
-
const { onExportReports: r } = Ie(), [n, a] =
|
|
3395
|
+
function zs({ content: e }) {
|
|
3396
|
+
const { onExportReports: r } = Ie(), [n, a] = k(!1);
|
|
3395
3397
|
if (!e) return null;
|
|
3396
3398
|
const {
|
|
3397
3399
|
pageHeader: o,
|
|
@@ -3401,7 +3403,7 @@ function Is({ content: e }) {
|
|
|
3401
3403
|
totalPredictiveTrends: d,
|
|
3402
3404
|
alertLabSummaryTable: m,
|
|
3403
3405
|
organContent: b
|
|
3404
|
-
} = e, g = d ??
|
|
3406
|
+
} = e, g = d ?? $a, v = i == null ? void 0 : i.actions.find((y) => y.id === "export-reports"), u = v ? io[v.id] : null, h = !!(s || c), f = !!(v && u && r), p = async () => {
|
|
3405
3407
|
if (!(!r || n))
|
|
3406
3408
|
try {
|
|
3407
3409
|
a(!0), await r();
|
|
@@ -3412,7 +3414,7 @@ function Is({ content: e }) {
|
|
|
3412
3414
|
return /* @__PURE__ */ l("div", { className: "mx-auto w-full min-w-0 max-w-full space-y-4 lg:space-y-6", children: [
|
|
3413
3415
|
/* @__PURE__ */ l("div", { className: "flex min-w-0 max-w-full flex-col gap-4 xl:flex-row xl:items-start xl:justify-between xl:gap-8", children: [
|
|
3414
3416
|
/* @__PURE__ */ t(
|
|
3415
|
-
|
|
3417
|
+
D,
|
|
3416
3418
|
{
|
|
3417
3419
|
title: o.title,
|
|
3418
3420
|
subtitle: o.subtitle,
|
|
@@ -3439,14 +3441,20 @@ function Is({ content: e }) {
|
|
|
3439
3441
|
{
|
|
3440
3442
|
className: `grid min-w-0 grid-cols-1 gap-4 xl:gap-6 [&>*]:min-w-0 ${s && c ? "xl:grid-cols-[minmax(0,1fr)_minmax(0,1fr)]" : ""}`,
|
|
3441
3443
|
children: [
|
|
3442
|
-
s ? /* @__PURE__ */ t(
|
|
3444
|
+
s ? /* @__PURE__ */ t(Ta, { ...s }) : null,
|
|
3443
3445
|
c ? /* @__PURE__ */ t(wa, { ...c }) : null
|
|
3444
3446
|
]
|
|
3445
3447
|
}
|
|
3446
3448
|
) : null,
|
|
3447
|
-
/* @__PURE__ */ t("div", { className: "xl:hidden", children: /* @__PURE__ */ t(
|
|
3448
|
-
|
|
3449
|
-
|
|
3449
|
+
/* @__PURE__ */ t("div", { className: "xl:hidden", children: /* @__PURE__ */ t(
|
|
3450
|
+
ro,
|
|
3451
|
+
{
|
|
3452
|
+
data: g,
|
|
3453
|
+
organContent: b
|
|
3454
|
+
}
|
|
3455
|
+
) }),
|
|
3456
|
+
/* @__PURE__ */ t("div", { className: "hidden xl:block", children: /* @__PURE__ */ t(lo, { data: g, organContent: b }) }),
|
|
3457
|
+
m ? /* @__PURE__ */ t(_a, { data: m, organContent: b }) : null
|
|
3450
3458
|
] });
|
|
3451
3459
|
}
|
|
3452
3460
|
const Ze = "flex min-h-10 items-center justify-between gap-4 py-3.5 text-sm leading-5 text-[color:var(--mb-color-text)]", Ft = "border-t border-[color:var(--mb-color-card-border)]", We = "flex min-w-0 flex-1 items-center gap-3", Ue = "flex size-5 shrink-0 items-center justify-center text-[color:var(--mb-color-text-muted)]", Qe = "size-[18px] shrink-0";
|
|
@@ -3479,7 +3487,7 @@ function Gt() {
|
|
|
3479
3487
|
/* @__PURE__ */ t(x, { className: "h-11 w-full shrink-0 rounded-none border-t border-[color:var(--mb-color-card-border)] xl:h-auto xl:w-[8.5rem] xl:border-l xl:border-t-0 xl:border-[color:var(--mb-color-card-border)]" })
|
|
3480
3488
|
] }) });
|
|
3481
3489
|
}
|
|
3482
|
-
function
|
|
3490
|
+
function so() {
|
|
3483
3491
|
return /* @__PURE__ */ l("div", { className: "flex min-w-0 flex-col overflow-hidden rounded-[length:var(--mb-radius-button)] border border-solid border-[#e09a1a] bg-[color:var(--mb-color-card-bg)] [border-width:1px] xl:flex-row xl:items-stretch", children: [
|
|
3484
3492
|
/* @__PURE__ */ l("div", { className: "flex min-w-0 items-center gap-2 bg-[#fff8eb]/60 px-3 py-2 xl:w-[10rem] xl:shrink-0", children: [
|
|
3485
3493
|
/* @__PURE__ */ t(x, { className: "size-4 shrink-0 rounded" }),
|
|
@@ -3493,19 +3501,26 @@ function io() {
|
|
|
3493
3501
|
/* @__PURE__ */ t(x, { className: "h-11 w-full shrink-0 rounded-none border-t border-[color:var(--mb-color-card-border)] xl:h-auto xl:w-[7rem] xl:rounded-br-[length:var(--mb-radius-button)] xl:rounded-tr-[length:var(--mb-radius-button)] xl:border-l xl:border-t-0 xl:border-[color:var(--mb-color-card-border)]" })
|
|
3494
3502
|
] });
|
|
3495
3503
|
}
|
|
3496
|
-
function
|
|
3504
|
+
function co({
|
|
3497
3505
|
pageHeader: e
|
|
3498
3506
|
}) {
|
|
3499
3507
|
return /* @__PURE__ */ l(K, { className: "mx-auto w-full min-w-0 max-w-full space-y-4 lg:space-y-6", children: [
|
|
3500
3508
|
/* @__PURE__ */ l("div", { className: "flex min-w-0 max-w-full flex-col gap-4 xl:flex-row xl:items-start xl:justify-between xl:gap-8", children: [
|
|
3501
|
-
/* @__PURE__ */ t(
|
|
3509
|
+
/* @__PURE__ */ t(
|
|
3510
|
+
D,
|
|
3511
|
+
{
|
|
3512
|
+
title: e.title,
|
|
3513
|
+
subtitle: e.subtitle,
|
|
3514
|
+
className: "min-w-0 flex-1"
|
|
3515
|
+
}
|
|
3516
|
+
),
|
|
3502
3517
|
/* @__PURE__ */ l(M, { type: "button", variant: "default", className: br, disabled: !0, children: [
|
|
3503
3518
|
/* @__PURE__ */ t(dt, { className: "size-4 shrink-0" }),
|
|
3504
3519
|
"Export All Reports"
|
|
3505
3520
|
] })
|
|
3506
3521
|
] }),
|
|
3507
3522
|
/* @__PURE__ */ l("div", { className: "grid min-w-0 grid-cols-1 gap-4 xl:gap-6 [&>*]:min-w-0 xl:grid-cols-[minmax(0,1fr)_minmax(0,1fr)]", children: [
|
|
3508
|
-
/* @__PURE__ */ l(
|
|
3523
|
+
/* @__PURE__ */ l(L, { children: [
|
|
3509
3524
|
/* @__PURE__ */ l("div", { className: "mb-4 flex items-start justify-between gap-4", children: [
|
|
3510
3525
|
/* @__PURE__ */ l("div", { className: "flex min-w-0 items-center gap-1.5", children: [
|
|
3511
3526
|
/* @__PURE__ */ t("span", { className: "text-xl font-bold text-[color:var(--mb-color-text)]", children: "Overall Metabolic Score" }),
|
|
@@ -3538,7 +3553,7 @@ function so({
|
|
|
3538
3553
|
] })
|
|
3539
3554
|
] })
|
|
3540
3555
|
] }),
|
|
3541
|
-
/* @__PURE__ */ l(
|
|
3556
|
+
/* @__PURE__ */ l(L, { className: "min-w-0 overflow-visible", children: [
|
|
3542
3557
|
/* @__PURE__ */ l("div", { className: "mb-4 flex items-center gap-1.5", children: [
|
|
3543
3558
|
/* @__PURE__ */ t("h2", { className: "text-xl font-bold text-[color:var(--mb-color-text)]", children: "Metaflammation Gauge" }),
|
|
3544
3559
|
/* @__PURE__ */ t("span", { className: "pointer-events-none opacity-70", "aria-hidden": !0, children: /* @__PURE__ */ t(E, { className: "size-4" }) })
|
|
@@ -3546,23 +3561,30 @@ function so({
|
|
|
3546
3561
|
/* @__PURE__ */ t(lr, { value: 0, max: 7e3 })
|
|
3547
3562
|
] })
|
|
3548
3563
|
] }),
|
|
3549
|
-
/* @__PURE__ */ l(
|
|
3564
|
+
/* @__PURE__ */ l(L, { children: [
|
|
3550
3565
|
/* @__PURE__ */ t(Ke, { titleWidthClass: "w-52 max-w-full sm:w-64" }),
|
|
3551
|
-
/* @__PURE__ */ t(
|
|
3566
|
+
/* @__PURE__ */ t(
|
|
3552
3567
|
"div",
|
|
3553
3568
|
{
|
|
3554
|
-
className:
|
|
3555
|
-
|
|
3556
|
-
|
|
3557
|
-
|
|
3558
|
-
|
|
3559
|
-
|
|
3560
|
-
|
|
3561
|
-
|
|
3562
|
-
|
|
3563
|
-
|
|
3564
|
-
|
|
3565
|
-
|
|
3569
|
+
className: "flex gap-3 overflow-x-auto pb-0.5",
|
|
3570
|
+
"data-testid": "dashboard-skeleton-triad-strip",
|
|
3571
|
+
children: [0, 1, 2, 3, 4].map((r) => /* @__PURE__ */ l(
|
|
3572
|
+
"div",
|
|
3573
|
+
{
|
|
3574
|
+
className: [
|
|
3575
|
+
"flex min-w-[9rem] flex-1 flex-col items-center gap-3 rounded-t-[var(--mb-radius-card)] px-5 py-4 transition",
|
|
3576
|
+
r === 0 ? "border border-b-0 border-[color:var(--mb-color-card-border)] bg-[color:var(--mb-color-nav-hover)] [border-width:var(--mb-card-border-width)]" : "border border-b-0 border-transparent"
|
|
3577
|
+
].join(" "),
|
|
3578
|
+
children: [
|
|
3579
|
+
/* @__PURE__ */ t(jt, { className: "size-[6.5rem] max-w-full" }),
|
|
3580
|
+
/* @__PURE__ */ t(x, { className: "h-3 w-[4.5rem]" }),
|
|
3581
|
+
/* @__PURE__ */ t(x, { className: "h-8 w-12" })
|
|
3582
|
+
]
|
|
3583
|
+
},
|
|
3584
|
+
r
|
|
3585
|
+
))
|
|
3586
|
+
}
|
|
3587
|
+
),
|
|
3566
3588
|
/* @__PURE__ */ t(
|
|
3567
3589
|
"div",
|
|
3568
3590
|
{
|
|
@@ -3574,11 +3596,11 @@ function so({
|
|
|
3574
3596
|
}
|
|
3575
3597
|
)
|
|
3576
3598
|
] }),
|
|
3577
|
-
/* @__PURE__ */ l(
|
|
3599
|
+
/* @__PURE__ */ l(L, { children: [
|
|
3578
3600
|
/* @__PURE__ */ t(Ke, { titleWidthClass: "w-48 max-w-full sm:w-56" }),
|
|
3579
3601
|
/* @__PURE__ */ t("div", { className: "space-y-2", "data-testid": "dashboard-skeleton-alert-rows", children: [0, 1, 2].map((r) => /* @__PURE__ */ t(Gt, {}, r)) })
|
|
3580
3602
|
] }),
|
|
3581
|
-
/* @__PURE__ */ l(
|
|
3603
|
+
/* @__PURE__ */ l(L, { className: "min-w-0", children: [
|
|
3582
3604
|
/* @__PURE__ */ t(Ke, { titleWidthClass: "w-64 max-w-full sm:w-72" }),
|
|
3583
3605
|
/* @__PURE__ */ t(
|
|
3584
3606
|
"div",
|
|
@@ -3595,7 +3617,7 @@ function so({
|
|
|
3595
3617
|
/* @__PURE__ */ t(x, { className: "h-3 w-24" }),
|
|
3596
3618
|
/* @__PURE__ */ t(x, { className: "h-8 w-14" })
|
|
3597
3619
|
] }),
|
|
3598
|
-
/* @__PURE__ */ t("div", { className: "flex min-w-0 flex-1 flex-col gap-1.5", children: [0, 1, 2].map((n) => /* @__PURE__ */ t(
|
|
3620
|
+
/* @__PURE__ */ t("div", { className: "flex min-w-0 flex-1 flex-col gap-1.5", children: [0, 1, 2].map((n) => /* @__PURE__ */ t(so, {}, n)) })
|
|
3599
3621
|
]
|
|
3600
3622
|
},
|
|
3601
3623
|
r
|
|
@@ -3605,19 +3627,19 @@ function so({
|
|
|
3605
3627
|
] })
|
|
3606
3628
|
] });
|
|
3607
3629
|
}
|
|
3608
|
-
function
|
|
3630
|
+
function Os({ content: e }) {
|
|
3609
3631
|
const { pageHeader: r, sections: n } = e, a = n ?? [];
|
|
3610
3632
|
return /* @__PURE__ */ l("div", { className: "mx-auto w-full max-w-full min-w-0 space-y-6", children: [
|
|
3611
|
-
/* @__PURE__ */ t(
|
|
3633
|
+
/* @__PURE__ */ t(D, { title: r.title, subtitle: r.subtitle }),
|
|
3612
3634
|
/* @__PURE__ */ t("div", { className: "space-y-6", children: a.map((o) => /* @__PURE__ */ t(ua, { ...o }, `${o.triadNumber}-${o.heading}`)) })
|
|
3613
3635
|
] });
|
|
3614
3636
|
}
|
|
3615
|
-
function
|
|
3637
|
+
function mo({
|
|
3616
3638
|
pageHeader: e
|
|
3617
3639
|
}) {
|
|
3618
3640
|
return /* @__PURE__ */ l(K, { children: [
|
|
3619
|
-
/* @__PURE__ */ t(
|
|
3620
|
-
/* @__PURE__ */ t("div", { className: "space-y-6", children: [0, 1, 2].map((r) => /* @__PURE__ */ l(
|
|
3641
|
+
/* @__PURE__ */ t(D, { title: e.title, subtitle: e.subtitle }),
|
|
3642
|
+
/* @__PURE__ */ t("div", { className: "space-y-6", children: [0, 1, 2].map((r) => /* @__PURE__ */ l(L, { className: "flex flex-col", children: [
|
|
3621
3643
|
/* @__PURE__ */ l("div", { className: "mb-6 flex flex-wrap items-center justify-between gap-3", children: [
|
|
3622
3644
|
/* @__PURE__ */ l("div", { className: "flex min-w-0 flex-1 items-center gap-2", children: [
|
|
3623
3645
|
/* @__PURE__ */ t(x, { className: "h-9 w-9 shrink-0 rounded-md" }),
|
|
@@ -3634,14 +3656,14 @@ function co({
|
|
|
3634
3656
|
] }, r)) })
|
|
3635
3657
|
] });
|
|
3636
3658
|
}
|
|
3637
|
-
const
|
|
3638
|
-
function
|
|
3639
|
-
const
|
|
3640
|
-
if (!
|
|
3641
|
-
const
|
|
3642
|
-
return Number.isFinite(
|
|
3659
|
+
const uo = ["Normal Range", "Current Range", ""], bo = [], ho = 0;
|
|
3660
|
+
function fo(e) {
|
|
3661
|
+
const r = /T(\d+)/i.exec(e);
|
|
3662
|
+
if (!r) return null;
|
|
3663
|
+
const n = Number(r[1]);
|
|
3664
|
+
return Number.isFinite(n) ? n : null;
|
|
3643
3665
|
}
|
|
3644
|
-
function
|
|
3666
|
+
function go(e) {
|
|
3645
3667
|
return {
|
|
3646
3668
|
name: e.title,
|
|
3647
3669
|
infoAriaLabel: e.infoAriaLabel,
|
|
@@ -3652,27 +3674,30 @@ function ho(e) {
|
|
|
3652
3674
|
status: e.status
|
|
3653
3675
|
};
|
|
3654
3676
|
}
|
|
3655
|
-
function
|
|
3677
|
+
function po(e) {
|
|
3656
3678
|
const r = /* @__PURE__ */ new Map();
|
|
3657
|
-
return e.forEach((n
|
|
3658
|
-
|
|
3659
|
-
|
|
3660
|
-
|
|
3679
|
+
return e.forEach((n) => {
|
|
3680
|
+
var s;
|
|
3681
|
+
const a = n.triadNumber ?? fo(n.subtitle), o = a == null ? "additional-lab-results" : `triad-${a}`, i = ((s = r.get(o)) == null ? void 0 : s.groups) ?? [];
|
|
3682
|
+
i.push(n), r.set(o, { triadNumber: a, groups: i });
|
|
3683
|
+
}), Array.from(r.values()).sort((n, a) => n.triadNumber == null && a.triadNumber == null ? 0 : n.triadNumber == null ? 1 : a.triadNumber == null ? -1 : n.triadNumber - a.triadNumber).map(({ triadNumber: n, groups: a }) => ({
|
|
3661
3684
|
triadNumber: n,
|
|
3662
|
-
groups: a
|
|
3685
|
+
groups: a,
|
|
3686
|
+
tabName: n == null ? "Additional Lab Results" : `Triad ${n}`,
|
|
3687
|
+
tabDisplay: n == null ? "Labs" : String(n)
|
|
3663
3688
|
}));
|
|
3664
3689
|
}
|
|
3665
|
-
function
|
|
3690
|
+
function Es({ content: e }) {
|
|
3666
3691
|
var f, p;
|
|
3667
|
-
const r = (e == null ? void 0 : e.groups) ??
|
|
3692
|
+
const r = (e == null ? void 0 : e.groups) ?? bo, n = j(() => po(r ?? []), [r]), [a, o] = k(0);
|
|
3668
3693
|
if (!e) return null;
|
|
3669
|
-
const { pageHeader: i, intro: s } = e, c = r.length > 0, d = Math.min(a, Math.max(0, n.length - 1)), m = n[d], b = (m == null ? void 0 : m.groups) ?? [], g = ((f = e.intros) == null ? void 0 : f.find((y) => y.triadNumber ===
|
|
3670
|
-
triadNumber: y.triadNumber,
|
|
3671
|
-
name:
|
|
3672
|
-
aggregateScoreDisplay:
|
|
3694
|
+
const { pageHeader: i, intro: s } = e, c = r.length > 0, d = Math.min(a, Math.max(0, n.length - 1)), m = n[d], b = (m == null ? void 0 : m.groups) ?? [], g = m == null ? s : m.triadNumber == null ? void 0 : ((f = e.intros) == null ? void 0 : f.find((y) => y.triadNumber === m.triadNumber)) ?? s, v = !!(g && (g.heading || (p = g.paragraphs) != null && p.length)), u = n.map((y) => ({
|
|
3695
|
+
triadNumber: y.triadNumber ?? ho,
|
|
3696
|
+
name: y.tabName,
|
|
3697
|
+
aggregateScoreDisplay: y.tabDisplay
|
|
3673
3698
|
})), h = v || c;
|
|
3674
3699
|
return /* @__PURE__ */ l("div", { className: "mx-auto w-full min-w-0 space-y-6", children: [
|
|
3675
|
-
/* @__PURE__ */ t(
|
|
3700
|
+
/* @__PURE__ */ t(D, { title: i.title, subtitle: i.subtitle }),
|
|
3676
3701
|
c ? /* @__PURE__ */ t(
|
|
3677
3702
|
ut,
|
|
3678
3703
|
{
|
|
@@ -3681,7 +3706,7 @@ function Rs({ content: e }) {
|
|
|
3681
3706
|
onSelectIndex: o
|
|
3682
3707
|
}
|
|
3683
3708
|
) : null,
|
|
3684
|
-
h ? /* @__PURE__ */ t(
|
|
3709
|
+
h ? /* @__PURE__ */ t(L, { className: "min-w-0", children: /* @__PURE__ */ l("div", { className: "space-y-6", children: [
|
|
3685
3710
|
v && g ? /* @__PURE__ */ t(hr, { ...g, embeddedInCard: !0 }) : null,
|
|
3686
3711
|
v && c ? /* @__PURE__ */ t("div", { className: "border-t border-[color:var(--mb-color-card-border)]" }) : null,
|
|
3687
3712
|
c ? /* @__PURE__ */ t("div", { className: "space-y-6", children: b.map((y) => /* @__PURE__ */ l(
|
|
@@ -3696,8 +3721,8 @@ function Rs({ content: e }) {
|
|
|
3696
3721
|
/* @__PURE__ */ t("div", { className: "space-y-2", children: (y.metrics ?? []).map((C) => /* @__PURE__ */ t(
|
|
3697
3722
|
le,
|
|
3698
3723
|
{
|
|
3699
|
-
row:
|
|
3700
|
-
metricLabels:
|
|
3724
|
+
row: go(C),
|
|
3725
|
+
metricLabels: uo,
|
|
3701
3726
|
metricSlots: 2
|
|
3702
3727
|
},
|
|
3703
3728
|
C.title
|
|
@@ -3709,8 +3734,8 @@ function Rs({ content: e }) {
|
|
|
3709
3734
|
] }) }) : null
|
|
3710
3735
|
] });
|
|
3711
3736
|
}
|
|
3712
|
-
const
|
|
3713
|
-
function
|
|
3737
|
+
const xo = 5;
|
|
3738
|
+
function vo() {
|
|
3714
3739
|
return /* @__PURE__ */ l("div", { className: "flex min-w-0 flex-col overflow-hidden rounded-[length:var(--mb-radius-button)] border border-solid border-[color:var(--mb-color-card-border)] bg-[color:var(--mb-color-card-bg)] [border-width:1px] 2xl:flex-row 2xl:items-stretch", children: [
|
|
3715
3740
|
/* @__PURE__ */ l("div", { className: "flex min-w-0 items-center gap-2 bg-[#ebebeb]/40 px-3 py-2.5 2xl:w-[20rem] 2xl:shrink-0", children: [
|
|
3716
3741
|
/* @__PURE__ */ t(x, { className: "size-4 shrink-0 rounded" }),
|
|
@@ -3723,12 +3748,12 @@ function po() {
|
|
|
3723
3748
|
/* @__PURE__ */ t(x, { className: "min-h-[3.25rem] w-full shrink-0 rounded-none rounded-br-[length:var(--mb-radius-button)] rounded-tr-[length:var(--mb-radius-button)] 2xl:w-[9rem] 2xl:min-h-0 2xl:self-stretch" })
|
|
3724
3749
|
] });
|
|
3725
3750
|
}
|
|
3726
|
-
function
|
|
3751
|
+
function wo({
|
|
3727
3752
|
pageHeader: e
|
|
3728
3753
|
}) {
|
|
3729
3754
|
return /* @__PURE__ */ l(K, { children: [
|
|
3730
|
-
/* @__PURE__ */ t(
|
|
3731
|
-
/* @__PURE__ */ t("div", { className: "flex gap-3 overflow-x-auto", role: "presentation", "aria-hidden": !0, children: Array.from({ length:
|
|
3755
|
+
/* @__PURE__ */ t(D, { title: e.title, subtitle: e.subtitle }),
|
|
3756
|
+
/* @__PURE__ */ t("div", { className: "flex gap-3 overflow-x-auto", role: "presentation", "aria-hidden": !0, children: Array.from({ length: xo }, (r, n) => /* @__PURE__ */ l(
|
|
3732
3757
|
"div",
|
|
3733
3758
|
{
|
|
3734
3759
|
className: "flex min-w-[9rem] flex-1 flex-col items-center gap-3 px-5 py-4",
|
|
@@ -3740,7 +3765,7 @@ function xo({
|
|
|
3740
3765
|
},
|
|
3741
3766
|
n
|
|
3742
3767
|
)) }),
|
|
3743
|
-
/* @__PURE__ */ t(
|
|
3768
|
+
/* @__PURE__ */ t(L, { className: "min-w-0", children: /* @__PURE__ */ l("div", { className: "space-y-6", children: [
|
|
3744
3769
|
/* @__PURE__ */ l("div", { className: "grid min-w-0 grid-cols-1 gap-6 xl:grid-cols-2 xl:items-stretch", children: [
|
|
3745
3770
|
/* @__PURE__ */ l("div", { className: "min-w-0 space-y-4", children: [
|
|
3746
3771
|
/* @__PURE__ */ l("div", { className: "flex items-center gap-2", children: [
|
|
@@ -3765,7 +3790,7 @@ function xo({
|
|
|
3765
3790
|
/* @__PURE__ */ t(x, { className: "h-7 w-[min(100%,12rem)]" }),
|
|
3766
3791
|
/* @__PURE__ */ t(x, { className: "h-5 w-24 sm:h-6" })
|
|
3767
3792
|
] }),
|
|
3768
|
-
/* @__PURE__ */ t("div", { className: "space-y-2", children: (r === 0 ? [0, 1, 2, 3] : [0, 1, 2]).map((n) => /* @__PURE__ */ t(
|
|
3793
|
+
/* @__PURE__ */ t("div", { className: "space-y-2", children: (r === 0 ? [0, 1, 2, 3] : [0, 1, 2]).map((n) => /* @__PURE__ */ t(vo, {}, n)) })
|
|
3769
3794
|
]
|
|
3770
3795
|
},
|
|
3771
3796
|
r
|
|
@@ -3773,16 +3798,16 @@ function xo({
|
|
|
3773
3798
|
] }) })
|
|
3774
3799
|
] });
|
|
3775
3800
|
}
|
|
3776
|
-
function
|
|
3801
|
+
function yo(e) {
|
|
3777
3802
|
return typeof e == "object" && e !== null && "children" in e;
|
|
3778
3803
|
}
|
|
3779
|
-
function
|
|
3780
|
-
return /* @__PURE__ */ t("ul", { className: "m-0 list-disc space-y-1 pl-5 text-[14px] leading-relaxed text-[color:var(--mb-color-text-muted)]", children: e.map((r, n) =>
|
|
3804
|
+
function No({ items: e }) {
|
|
3805
|
+
return /* @__PURE__ */ t("ul", { className: "m-0 list-disc space-y-1 pl-5 text-[14px] leading-relaxed text-[color:var(--mb-color-text-muted)]", children: e.map((r, n) => yo(r) ? /* @__PURE__ */ l("li", { children: [
|
|
3781
3806
|
r.text,
|
|
3782
3807
|
/* @__PURE__ */ t("ul", { className: "mt-1 list-[circle] space-y-1 pl-5", children: r.children.map((a, o) => /* @__PURE__ */ t("li", { children: a }, `nc-${n}-${o}`)) })
|
|
3783
3808
|
] }, `n-${n}`) : /* @__PURE__ */ t("li", { children: r }, `i-${n}`)) });
|
|
3784
3809
|
}
|
|
3785
|
-
function
|
|
3810
|
+
function Co({ rows: e }) {
|
|
3786
3811
|
return /* @__PURE__ */ t("div", { className: "overflow-x-auto", children: /* @__PURE__ */ t("table", { className: "w-full border-collapse text-[14px] leading-relaxed text-[color:var(--mb-color-text-muted)]", children: /* @__PURE__ */ t("tbody", { children: e.map((r, n) => /* @__PURE__ */ t("tr", { className: "align-top", children: r.map((a, o) => /* @__PURE__ */ t(
|
|
3787
3812
|
"td",
|
|
3788
3813
|
{
|
|
@@ -3809,34 +3834,34 @@ function wr({ blocks: e }) {
|
|
|
3809
3834
|
children: r.text
|
|
3810
3835
|
},
|
|
3811
3836
|
a
|
|
3812
|
-
) : r.type === "list" ? /* @__PURE__ */ t(
|
|
3837
|
+
) : r.type === "list" ? /* @__PURE__ */ t(No, { items: r.items }, a) : r.type === "table" ? /* @__PURE__ */ t(Co, { rows: r.rows }, a) : null;
|
|
3813
3838
|
}) });
|
|
3814
3839
|
}
|
|
3815
3840
|
const qe = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE_AG_CHARTS_LICENSE_KEY: "Using_this_{AG_Charts}_Enterprise_key_{AG-125036}_in_excess_of_the_licence_granted_is_not_permitted___Please_report_misuse_to_legal@ag-grid.com___For_help_with_changing_this_key_please_contact_info@ag-grid.com___{Metabolic_Code}_is_granted_a_{Single_Application}_Developer_License_for_the_application_{Metabolic_Code}_only_for_{1}_Front-End_JavaScript_developer___All_Front-End_JavaScript_developers_working_on_{Metabolic_Code}_need_to_be_licensed___{Metabolic_Code}_has_been_granted_a_Deployment_License_Add-on_for_{1}_Production_Environment___This_key_works_with_{AG_Charts}_Enterprise_versions_released_before_{31_March_2027}____[v3]_[02]_MTgwNjQ0NzYwMDAwMA==4e5dbf88087527cd3b1cf09b0557ec38", VITE_METABOLIC_REPORT_PAGES_API_BASE_URL: "https://mc-api-production-api.salmonstone-a2c3cb0d.canadacentral.azurecontainerapps.io" };
|
|
3816
|
-
function
|
|
3841
|
+
function Ao() {
|
|
3817
3842
|
try {
|
|
3818
3843
|
return "https://mc-api-production-api.salmonstone-a2c3cb0d.canadacentral.azurecontainerapps.io";
|
|
3819
3844
|
} catch {
|
|
3820
3845
|
return;
|
|
3821
3846
|
}
|
|
3822
3847
|
}
|
|
3823
|
-
const
|
|
3848
|
+
const Lo = Ao() ?? "", yr = (() => {
|
|
3824
3849
|
try {
|
|
3825
3850
|
return qe == null ? void 0 : qe.VITE_METABOLIC_DASHBOARD_STUB_API_KEY;
|
|
3826
3851
|
} catch {
|
|
3827
3852
|
return;
|
|
3828
3853
|
}
|
|
3829
3854
|
})();
|
|
3830
|
-
function
|
|
3855
|
+
function To(e) {
|
|
3831
3856
|
return e === yr;
|
|
3832
3857
|
}
|
|
3833
|
-
function
|
|
3858
|
+
function Po(e) {
|
|
3834
3859
|
return e.replace(/\/+$/, "");
|
|
3835
3860
|
}
|
|
3836
3861
|
function fe() {
|
|
3837
|
-
return
|
|
3862
|
+
return Po(Lo);
|
|
3838
3863
|
}
|
|
3839
|
-
function
|
|
3864
|
+
function Le(e) {
|
|
3840
3865
|
if (!e || /^https?:\/\//i.test(e)) return e;
|
|
3841
3866
|
const r = fe();
|
|
3842
3867
|
return r ? `${r}${e.startsWith("/") ? e : `/${e}`}` : e;
|
|
@@ -3847,7 +3872,7 @@ function Yt({ variant: e }) {
|
|
|
3847
3872
|
/* @__PURE__ */ t(
|
|
3848
3873
|
"img",
|
|
3849
3874
|
{
|
|
3850
|
-
src:
|
|
3875
|
+
src: Le(e.triad_image_url),
|
|
3851
3876
|
alt: "",
|
|
3852
3877
|
className: "size-10 shrink-0 object-contain"
|
|
3853
3878
|
}
|
|
@@ -3872,7 +3897,7 @@ function Yt({ variant: e }) {
|
|
|
3872
3897
|
/* @__PURE__ */ t(wr, { blocks: e.blocks })
|
|
3873
3898
|
] });
|
|
3874
3899
|
}
|
|
3875
|
-
function
|
|
3900
|
+
function So({
|
|
3876
3901
|
urinary: e,
|
|
3877
3902
|
salivary: r
|
|
3878
3903
|
}) {
|
|
@@ -3884,18 +3909,18 @@ function Lo({
|
|
|
3884
3909
|
] })
|
|
3885
3910
|
] });
|
|
3886
3911
|
}
|
|
3887
|
-
const
|
|
3912
|
+
const Mo = [
|
|
3888
3913
|
{ color: "#3a9e6a", position: 0 },
|
|
3889
3914
|
{ color: "#e09a1a", position: 50 },
|
|
3890
3915
|
{ color: "#d94040", position: 100 }
|
|
3891
|
-
],
|
|
3916
|
+
], ko = "text-[13px] font-medium uppercase tracking-wide text-[color:var(--mb-color-text-muted)]", Ho = "text-[15px] font-bold tabular-nums text-[color:var(--mb-color-text)]";
|
|
3892
3917
|
function Je({ label: e, value: r }) {
|
|
3893
3918
|
return /* @__PURE__ */ l("div", { className: "flex items-center justify-between border-b border-[color:var(--mb-color-card-border)] py-2 last:border-0", children: [
|
|
3894
|
-
/* @__PURE__ */ t("span", { className:
|
|
3895
|
-
/* @__PURE__ */ t("span", { className:
|
|
3919
|
+
/* @__PURE__ */ t("span", { className: ko, children: e }),
|
|
3920
|
+
/* @__PURE__ */ t("span", { className: Ho, children: r })
|
|
3896
3921
|
] });
|
|
3897
3922
|
}
|
|
3898
|
-
function
|
|
3923
|
+
function jo({ patient: e }) {
|
|
3899
3924
|
const r = e.trendIndicatorPercent ?? 50;
|
|
3900
3925
|
return /* @__PURE__ */ l("div", { className: "rounded-lg border border-[color:var(--mb-color-card-border)] bg-[color:var(--mb-color-card-bg)] p-4 sm:p-5", children: [
|
|
3901
3926
|
/* @__PURE__ */ t("h2", { className: "mb-3 text-sm font-bold uppercase tracking-wide text-[color:var(--mb-color-text)]", children: e.organDisplayName }),
|
|
@@ -3905,7 +3930,7 @@ function Ho({ patient: e }) {
|
|
|
3905
3930
|
/* @__PURE__ */ t(Je, { label: "Total", value: e.totalScore })
|
|
3906
3931
|
] }),
|
|
3907
3932
|
/* @__PURE__ */ l("div", { className: "mt-4", children: [
|
|
3908
|
-
/* @__PURE__ */ t(or, { stops:
|
|
3933
|
+
/* @__PURE__ */ t(or, { stops: Mo, indicatorPercent: r }),
|
|
3909
3934
|
/* @__PURE__ */ l("div", { className: "mt-2 grid grid-cols-3 text-center text-[11px] font-medium uppercase tracking-wide text-[color:var(--mb-color-text-muted)]", children: [
|
|
3910
3935
|
/* @__PURE__ */ t("span", { children: "Optimal" }),
|
|
3911
3936
|
/* @__PURE__ */ t("span", { children: "Trending" }),
|
|
@@ -3914,13 +3939,13 @@ function Ho({ patient: e }) {
|
|
|
3914
3939
|
] })
|
|
3915
3940
|
] });
|
|
3916
3941
|
}
|
|
3917
|
-
function
|
|
3942
|
+
function Bo({ stage: e }) {
|
|
3918
3943
|
return /* @__PURE__ */ l("div", { className: "rounded-lg border border-[color:var(--mb-color-card-border)] bg-[color:var(--mb-color-card-bg)] p-4 sm:p-5", children: [
|
|
3919
3944
|
/* @__PURE__ */ l("div", { className: "mb-3 flex items-center gap-3", children: [
|
|
3920
3945
|
/* @__PURE__ */ t(
|
|
3921
3946
|
"img",
|
|
3922
3947
|
{
|
|
3923
|
-
src:
|
|
3948
|
+
src: Le(e.image_url),
|
|
3924
3949
|
alt: "",
|
|
3925
3950
|
className: "size-12 shrink-0 object-contain"
|
|
3926
3951
|
}
|
|
@@ -3944,15 +3969,15 @@ function ko({ stage: e }) {
|
|
|
3944
3969
|
] })
|
|
3945
3970
|
] });
|
|
3946
3971
|
}
|
|
3947
|
-
function
|
|
3948
|
-
return /* @__PURE__ */ t("div", { className: "grid grid-cols-1 gap-4", children: e.map((r) => /* @__PURE__ */ t(
|
|
3972
|
+
function Io({ stages: e }) {
|
|
3973
|
+
return /* @__PURE__ */ t("div", { className: "grid grid-cols-1 gap-4", children: e.map((r) => /* @__PURE__ */ t(Bo, { stage: r }, r.number)) });
|
|
3949
3974
|
}
|
|
3950
|
-
function
|
|
3975
|
+
function Do({
|
|
3951
3976
|
bodyUrl: e,
|
|
3952
3977
|
organUrl: r,
|
|
3953
3978
|
organDisplayName: n
|
|
3954
3979
|
}) {
|
|
3955
|
-
const a =
|
|
3980
|
+
const a = Le(e), o = Le(r), i = a === o;
|
|
3956
3981
|
return /* @__PURE__ */ l("div", { className: "flex min-h-[14rem] items-center justify-center gap-2 rounded-lg border border-[color:var(--mb-color-card-border)] bg-[color:var(--mb-color-card-bg)] p-4", children: [
|
|
3957
3982
|
/* @__PURE__ */ t(
|
|
3958
3983
|
"img",
|
|
@@ -3972,13 +3997,13 @@ function Bo({
|
|
|
3972
3997
|
)
|
|
3973
3998
|
] });
|
|
3974
3999
|
}
|
|
3975
|
-
function
|
|
4000
|
+
function Ro({ onClick: e }) {
|
|
3976
4001
|
return /* @__PURE__ */ l(M, { type: "button", variant: "soft", onClick: e, align: "start", children: [
|
|
3977
4002
|
/* @__PURE__ */ t("span", { "aria-hidden": !0, children: "←" }),
|
|
3978
4003
|
"Back"
|
|
3979
4004
|
] });
|
|
3980
4005
|
}
|
|
3981
|
-
function
|
|
4006
|
+
function zo({
|
|
3982
4007
|
patient: e,
|
|
3983
4008
|
content: r,
|
|
3984
4009
|
onBack: n,
|
|
@@ -3986,14 +4011,14 @@ function Do({
|
|
|
3986
4011
|
}) {
|
|
3987
4012
|
return /* @__PURE__ */ l("div", { className: "mx-auto w-full min-w-0 space-y-4 lg:space-y-6", children: [
|
|
3988
4013
|
/* @__PURE__ */ l("div", { className: "flex items-center justify-between gap-3", children: [
|
|
3989
|
-
/* @__PURE__ */ t(
|
|
4014
|
+
/* @__PURE__ */ t(Ro, { onClick: n }),
|
|
3990
4015
|
e.interpretationLabel ? /* @__PURE__ */ t("span", { className: "text-sm font-bold uppercase tracking-wide text-[color:var(--mb-color-text)]", children: e.interpretationLabel }) : null
|
|
3991
4016
|
] }),
|
|
3992
4017
|
/* @__PURE__ */ t("header", { children: /* @__PURE__ */ t("h1", { className: "text-2xl font-bold leading-tight text-[color:var(--mb-color-text)]", children: e.triadHeading }) }),
|
|
3993
4018
|
/* @__PURE__ */ l("div", { className: "grid grid-cols-1 gap-4 lg:grid-cols-[minmax(0,1fr)_minmax(0,1fr)]", children: [
|
|
3994
|
-
/* @__PURE__ */ t(
|
|
4019
|
+
/* @__PURE__ */ t(jo, { patient: e }),
|
|
3995
4020
|
/* @__PURE__ */ t(
|
|
3996
|
-
|
|
4021
|
+
Do,
|
|
3997
4022
|
{
|
|
3998
4023
|
bodyUrl: r.images.body_url,
|
|
3999
4024
|
organUrl: r.images.organ_url,
|
|
@@ -4014,10 +4039,10 @@ function Do({
|
|
|
4014
4039
|
)),
|
|
4015
4040
|
r.stages && r.stages.length > 0 ? /* @__PURE__ */ l("section", { className: "space-y-3", children: [
|
|
4016
4041
|
/* @__PURE__ */ t("h2", { className: "text-lg font-bold text-[color:var(--mb-color-text)]", children: "Stages" }),
|
|
4017
|
-
/* @__PURE__ */ t(
|
|
4042
|
+
/* @__PURE__ */ t(Io, { stages: r.stages })
|
|
4018
4043
|
] }) : null,
|
|
4019
4044
|
a ? /* @__PURE__ */ t(
|
|
4020
|
-
|
|
4045
|
+
So,
|
|
4021
4046
|
{
|
|
4022
4047
|
urinary: a.urinary,
|
|
4023
4048
|
salivary: a.salivary
|
|
@@ -4025,12 +4050,12 @@ function Do({
|
|
|
4025
4050
|
) : null
|
|
4026
4051
|
] });
|
|
4027
4052
|
}
|
|
4028
|
-
function
|
|
4053
|
+
function Fs({
|
|
4029
4054
|
content: e
|
|
4030
4055
|
}) {
|
|
4031
4056
|
const { pageHeader: r, sections: n } = e, a = n ?? [];
|
|
4032
4057
|
return /* @__PURE__ */ l("div", { className: "mx-auto w-full min-w-0 space-y-6", children: [
|
|
4033
|
-
/* @__PURE__ */ t(
|
|
4058
|
+
/* @__PURE__ */ t(D, { title: r.title, subtitle: r.subtitle }),
|
|
4034
4059
|
/* @__PURE__ */ t("div", { className: "space-y-6", children: a.map((o) => /* @__PURE__ */ t(
|
|
4035
4060
|
gr,
|
|
4036
4061
|
{
|
|
@@ -4041,13 +4066,13 @@ function zs({
|
|
|
4041
4066
|
)) })
|
|
4042
4067
|
] });
|
|
4043
4068
|
}
|
|
4044
|
-
const
|
|
4045
|
-
function
|
|
4069
|
+
const Oo = ["ADRENAL", "THYROID", "PANCREAS"];
|
|
4070
|
+
function Eo({
|
|
4046
4071
|
pageHeader: e
|
|
4047
4072
|
}) {
|
|
4048
4073
|
return /* @__PURE__ */ l(K, { children: [
|
|
4049
|
-
/* @__PURE__ */ t(
|
|
4050
|
-
/* @__PURE__ */ t("div", { className: "space-y-6", children: [0, 1, 2].map((r) => /* @__PURE__ */ l(
|
|
4074
|
+
/* @__PURE__ */ t(D, { title: e.title, subtitle: e.subtitle }),
|
|
4075
|
+
/* @__PURE__ */ t("div", { className: "space-y-6", children: [0, 1, 2].map((r) => /* @__PURE__ */ l(L, { className: "flex flex-col", children: [
|
|
4051
4076
|
/* @__PURE__ */ l("div", { className: "mb-6 flex flex-wrap items-center justify-between gap-3", children: [
|
|
4052
4077
|
/* @__PURE__ */ l("div", { className: "flex min-w-0 flex-1 items-center gap-2", children: [
|
|
4053
4078
|
/* @__PURE__ */ t(x, { className: "h-9 w-9 shrink-0 rounded-md" }),
|
|
@@ -4055,7 +4080,7 @@ function zo({
|
|
|
4055
4080
|
] }),
|
|
4056
4081
|
/* @__PURE__ */ t(x, { className: "h-9 w-14" })
|
|
4057
4082
|
] }),
|
|
4058
|
-
/* @__PURE__ */ t("div", { className: "grid grid-cols-1 gap-4 lg:grid-cols-2 xl:grid-cols-3", children:
|
|
4083
|
+
/* @__PURE__ */ t("div", { className: "grid grid-cols-1 gap-4 lg:grid-cols-2 xl:grid-cols-3", children: Oo.map((n) => /* @__PURE__ */ t(
|
|
4059
4084
|
Be,
|
|
4060
4085
|
{
|
|
4061
4086
|
variant: "questionnaire",
|
|
@@ -4067,13 +4092,13 @@ function zo({
|
|
|
4067
4092
|
] });
|
|
4068
4093
|
}
|
|
4069
4094
|
const Xt = 3;
|
|
4070
|
-
function
|
|
4095
|
+
function Fo(e) {
|
|
4071
4096
|
const r = [];
|
|
4072
4097
|
for (let n = 0; n < e.length; n += Xt)
|
|
4073
4098
|
r.push(e.slice(n, n + Xt));
|
|
4074
4099
|
return r;
|
|
4075
4100
|
}
|
|
4076
|
-
function
|
|
4101
|
+
function Gs({ content: e }) {
|
|
4077
4102
|
var S;
|
|
4078
4103
|
if (!e) return null;
|
|
4079
4104
|
const {
|
|
@@ -4091,9 +4116,9 @@ function Os({ content: e }) {
|
|
|
4091
4116
|
name: `Triad ${n.triadNumber}`,
|
|
4092
4117
|
aggregateScoreDisplay: String(n.triadNumber)
|
|
4093
4118
|
}
|
|
4094
|
-
] : [], [N, w] =
|
|
4119
|
+
] : [], [N, w] = k(0), P = Math.min(N, Math.max(0, C.length - 1)), A = h || f || u;
|
|
4095
4120
|
return /* @__PURE__ */ l("div", { className: "mx-auto w-full min-w-0 space-y-6", children: [
|
|
4096
|
-
/* @__PURE__ */ t(
|
|
4121
|
+
/* @__PURE__ */ t(D, { title: r.title, subtitle: r.subtitle }),
|
|
4097
4122
|
C.length > 0 ? /* @__PURE__ */ t(
|
|
4098
4123
|
ut,
|
|
4099
4124
|
{
|
|
@@ -4102,27 +4127,27 @@ function Os({ content: e }) {
|
|
|
4102
4127
|
onSelectIndex: w
|
|
4103
4128
|
}
|
|
4104
4129
|
) : null,
|
|
4105
|
-
p ? /* @__PURE__ */ t(
|
|
4130
|
+
p ? /* @__PURE__ */ t(L, { className: "min-w-0", children: /* @__PURE__ */ l("div", { className: "space-y-6", children: [
|
|
4106
4131
|
m && n ? /* @__PURE__ */ t(hr, { ...n, embeddedInCard: !0 }) : null,
|
|
4107
4132
|
m && A ? /* @__PURE__ */ t("div", { className: "border-t border-[color:var(--mb-color-card-border)]" }) : null,
|
|
4108
4133
|
h ? /* @__PURE__ */ l("div", { className: "space-y-5", children: [
|
|
4109
4134
|
/* @__PURE__ */ t("h2", { className: "text-xl font-bold text-[color:var(--mb-color-text)]", children: i }),
|
|
4110
|
-
/* @__PURE__ */ t("div", { className: "space-y-0", children:
|
|
4135
|
+
/* @__PURE__ */ t("div", { className: "space-y-0", children: Fo(g).map((T) => /* @__PURE__ */ t(
|
|
4111
4136
|
"div",
|
|
4112
4137
|
{
|
|
4113
4138
|
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",
|
|
4114
|
-
children:
|
|
4139
|
+
children: T.map((R) => /* @__PURE__ */ l("div", { className: "flex min-h-10 items-center gap-3", children: [
|
|
4115
4140
|
/* @__PURE__ */ t("span", { className: "inline-flex size-4 shrink-0 items-center justify-center text-[color:var(--mb-color-text)]", children: /* @__PURE__ */ t(re, { className: "size-4", "aria-hidden": !0 }) }),
|
|
4116
|
-
/* @__PURE__ */ t("span", { className: "text-sm leading-5 text-[color:var(--mb-color-text)]", children:
|
|
4117
|
-
] },
|
|
4141
|
+
/* @__PURE__ */ t("span", { className: "text-sm leading-5 text-[color:var(--mb-color-text)]", children: R })
|
|
4142
|
+
] }, R))
|
|
4118
4143
|
},
|
|
4119
|
-
|
|
4144
|
+
T[0]
|
|
4120
4145
|
)) })
|
|
4121
4146
|
] }) : null,
|
|
4122
4147
|
h && (f || u) ? /* @__PURE__ */ t("div", { className: "border-t border-[color:var(--mb-color-card-border)]" }) : null,
|
|
4123
4148
|
f ? /* @__PURE__ */ l("div", { className: "min-w-0 space-y-5 rounded-[length:var(--mb-radius-card)] bg-[color:var(--mb-color-muted-section-bg)] p-[length:var(--mb-card-padding)]", children: [
|
|
4124
4149
|
/* @__PURE__ */ t("h2", { className: "text-xl font-bold text-[color:var(--mb-color-text)]", children: c }),
|
|
4125
|
-
/* @__PURE__ */ t("div", { className: "grid w-full min-w-0 grid-cols-1 gap-5 sm:grid-cols-2 sm:gap-6 xl:grid-cols-3 xl:gap-8", children: v.map((
|
|
4150
|
+
/* @__PURE__ */ t("div", { className: "grid w-full min-w-0 grid-cols-1 gap-5 sm:grid-cols-2 sm:gap-6 xl:grid-cols-3 xl:gap-8", children: v.map((T, R) => /* @__PURE__ */ l(
|
|
4126
4151
|
"div",
|
|
4127
4152
|
{
|
|
4128
4153
|
className: "flex min-w-0 w-full flex-col items-center",
|
|
@@ -4130,48 +4155,48 @@ function Os({ content: e }) {
|
|
|
4130
4155
|
/* @__PURE__ */ t("div", { className: "relative flex h-40 w-full max-w-[15rem] items-center justify-center sm:h-48 md:h-52 lg:max-w-[17rem]", children: /* @__PURE__ */ t(
|
|
4131
4156
|
"img",
|
|
4132
4157
|
{
|
|
4133
|
-
src:
|
|
4134
|
-
alt:
|
|
4158
|
+
src: T.imageSrc ?? pr,
|
|
4159
|
+
alt: T.imageAlt,
|
|
4135
4160
|
className: "max-h-full w-auto max-w-full object-contain [filter:drop-shadow(0_10px_20px_rgba(15,23,42,0.15))] md:[filter:drop-shadow(0_14px_28px_rgba(15,23,42,0.12))]",
|
|
4136
4161
|
width: 320,
|
|
4137
4162
|
height: 320
|
|
4138
4163
|
}
|
|
4139
4164
|
) }),
|
|
4140
|
-
/* @__PURE__ */ t("span", { className: "mt-3 w-full min-w-0 break-words px-0.5 text-center text-sm font-medium text-[color:var(--mb-color-text)]", children:
|
|
4141
|
-
|
|
4165
|
+
/* @__PURE__ */ t("span", { className: "mt-3 w-full min-w-0 break-words px-0.5 text-center text-sm font-medium text-[color:var(--mb-color-text)]", children: T.name }),
|
|
4166
|
+
T.tagline ? /* @__PURE__ */ t("span", { className: "mt-1 w-full min-w-0 break-words px-0.5 text-center text-xs text-[color:var(--mb-color-text-muted)]", children: T.tagline }) : null
|
|
4142
4167
|
]
|
|
4143
4168
|
},
|
|
4144
|
-
|
|
4169
|
+
`${T.name}-${R}`
|
|
4145
4170
|
)) })
|
|
4146
4171
|
] }) : null,
|
|
4147
4172
|
f && u ? /* @__PURE__ */ t("div", { className: "border-t border-[color:var(--mb-color-card-border)]" }) : null,
|
|
4148
4173
|
u ? /* @__PURE__ */ l("div", { className: "space-y-5", children: [
|
|
4149
4174
|
/* @__PURE__ */ t("h2", { className: "text-xl font-bold text-[color:var(--mb-color-text)]", children: a }),
|
|
4150
|
-
/* @__PURE__ */ t("div", { className: "grid grid-cols-1 items-start gap-4 sm:grid-cols-2 xl:grid-cols-3 xl:gap-6", children: b.map((
|
|
4175
|
+
/* @__PURE__ */ t("div", { className: "grid grid-cols-1 items-start gap-4 sm:grid-cols-2 xl:grid-cols-3 xl:gap-6", children: b.map((T) => /* @__PURE__ */ t(
|
|
4151
4176
|
ne,
|
|
4152
4177
|
{
|
|
4153
4178
|
layout: "labResults",
|
|
4154
|
-
category:
|
|
4179
|
+
category: T
|
|
4155
4180
|
},
|
|
4156
|
-
|
|
4181
|
+
T.title
|
|
4157
4182
|
)) })
|
|
4158
4183
|
] }) : null
|
|
4159
4184
|
] }) }) : null
|
|
4160
4185
|
] });
|
|
4161
4186
|
}
|
|
4162
|
-
const
|
|
4163
|
-
function
|
|
4187
|
+
const Go = ["GGT", "CRP", "GLUCOSE"], Yo = 5;
|
|
4188
|
+
function Xo({
|
|
4164
4189
|
pageHeader: e
|
|
4165
4190
|
}) {
|
|
4166
4191
|
return /* @__PURE__ */ l(K, { children: [
|
|
4167
|
-
/* @__PURE__ */ t(
|
|
4192
|
+
/* @__PURE__ */ t(D, { title: e.title, subtitle: e.subtitle }),
|
|
4168
4193
|
/* @__PURE__ */ t(
|
|
4169
4194
|
"div",
|
|
4170
4195
|
{
|
|
4171
4196
|
className: "flex gap-3 overflow-x-auto",
|
|
4172
4197
|
role: "presentation",
|
|
4173
4198
|
"aria-hidden": !0,
|
|
4174
|
-
children: Array.from({ length:
|
|
4199
|
+
children: Array.from({ length: Yo }, (r, n) => /* @__PURE__ */ l(
|
|
4175
4200
|
"div",
|
|
4176
4201
|
{
|
|
4177
4202
|
className: "flex min-w-[9rem] flex-1 flex-col items-center gap-3 px-5 py-4",
|
|
@@ -4185,7 +4210,7 @@ function Go({
|
|
|
4185
4210
|
))
|
|
4186
4211
|
}
|
|
4187
4212
|
),
|
|
4188
|
-
/* @__PURE__ */ t(
|
|
4213
|
+
/* @__PURE__ */ t(L, { className: "min-w-0", children: /* @__PURE__ */ l("div", { className: "space-y-6", children: [
|
|
4189
4214
|
/* @__PURE__ */ l("div", { className: "grid min-w-0 grid-cols-1 gap-6 xl:grid-cols-2 xl:items-stretch", children: [
|
|
4190
4215
|
/* @__PURE__ */ l("div", { className: "min-w-0 space-y-4", children: [
|
|
4191
4216
|
/* @__PURE__ */ l("div", { className: "flex items-center gap-2", children: [
|
|
@@ -4220,26 +4245,26 @@ function Go({
|
|
|
4220
4245
|
/* @__PURE__ */ t("div", { className: "border-t border-[color:var(--mb-color-card-border)]" }),
|
|
4221
4246
|
/* @__PURE__ */ l("div", { className: "space-y-5", children: [
|
|
4222
4247
|
/* @__PURE__ */ t(x, { className: "h-7 w-[min(100%,18rem)]" }),
|
|
4223
|
-
/* @__PURE__ */ t("div", { className: "grid grid-cols-1 items-start gap-4 sm:grid-cols-2 xl:grid-cols-3 xl:gap-6", children:
|
|
4248
|
+
/* @__PURE__ */ t("div", { className: "grid grid-cols-1 items-start gap-4 sm:grid-cols-2 xl:grid-cols-3 xl:gap-6", children: Go.map((r) => /* @__PURE__ */ t(Be, { variant: "labResults", title: r }, r)) })
|
|
4224
4249
|
] })
|
|
4225
4250
|
] }) })
|
|
4226
4251
|
] });
|
|
4227
4252
|
}
|
|
4228
|
-
function
|
|
4253
|
+
function Ys({ content: e }) {
|
|
4229
4254
|
if (!e) return null;
|
|
4230
4255
|
const { pageHeader: r, practitionerNotes: n, cards: a } = e, o = a && a.length > 0;
|
|
4231
4256
|
return /* @__PURE__ */ l("div", { className: "mx-auto w-full min-w-0 space-y-6", children: [
|
|
4232
|
-
/* @__PURE__ */ t(
|
|
4257
|
+
/* @__PURE__ */ t(D, { title: r.title, subtitle: r.subtitle }),
|
|
4233
4258
|
o ? /* @__PURE__ */ t("div", { className: "grid grid-cols-1 gap-6 lg:grid-cols-2", children: a.map((i, s) => /* @__PURE__ */ t(Sa, { ...i }, `${i.title}-${s}`)) }) : null,
|
|
4234
4259
|
n ? /* @__PURE__ */ t(Pa, { ...n }) : null
|
|
4235
4260
|
] });
|
|
4236
4261
|
}
|
|
4237
|
-
function
|
|
4262
|
+
function Vo({
|
|
4238
4263
|
pageHeader: e
|
|
4239
4264
|
}) {
|
|
4240
4265
|
return /* @__PURE__ */ l(K, { children: [
|
|
4241
|
-
/* @__PURE__ */ t(
|
|
4242
|
-
/* @__PURE__ */ t("div", { className: "grid grid-cols-1 gap-6 lg:grid-cols-2", children: [0, 1].map((r) => /* @__PURE__ */ t(
|
|
4266
|
+
/* @__PURE__ */ t(D, { title: e.title, subtitle: e.subtitle }),
|
|
4267
|
+
/* @__PURE__ */ t("div", { className: "grid grid-cols-1 gap-6 lg:grid-cols-2", children: [0, 1].map((r) => /* @__PURE__ */ t(L, { children: /* @__PURE__ */ l("div", { className: "flex flex-col gap-4 sm:flex-row", children: [
|
|
4243
4268
|
/* @__PURE__ */ t(x, { className: "mx-auto h-32 w-32 shrink-0 rounded-lg sm:mx-0" }),
|
|
4244
4269
|
/* @__PURE__ */ l("div", { className: "min-w-0 flex-1 space-y-3", children: [
|
|
4245
4270
|
/* @__PURE__ */ t(x, { className: "h-6 w-3/4" }),
|
|
@@ -4256,7 +4281,7 @@ function Yo({
|
|
|
4256
4281
|
)) })
|
|
4257
4282
|
] })
|
|
4258
4283
|
] }) }, r)) }),
|
|
4259
|
-
/* @__PURE__ */ l(
|
|
4284
|
+
/* @__PURE__ */ l(L, { children: [
|
|
4260
4285
|
/* @__PURE__ */ t("h2", { className: "text-xl font-bold text-[color:var(--mb-color-text)]", children: "Practitioner Notes" }),
|
|
4261
4286
|
/* @__PURE__ */ l("div", { className: "mt-4 space-y-3", children: [
|
|
4262
4287
|
/* @__PURE__ */ t(x, { className: "h-3.5 w-full" }),
|
|
@@ -4266,8 +4291,8 @@ function Yo({
|
|
|
4266
4291
|
] })
|
|
4267
4292
|
] });
|
|
4268
4293
|
}
|
|
4269
|
-
function
|
|
4270
|
-
const n =
|
|
4294
|
+
function Zo(e, r) {
|
|
4295
|
+
const n = He(r.totalScore), a = n == null ? void 0 : Math.max(0, Math.min(100, n)), o = r.title.toLowerCase().replace(/(^|\s)\S/g, (i) => i.toUpperCase());
|
|
4271
4296
|
return {
|
|
4272
4297
|
triadHeading: `${e.heading.split(":")[0]}: ${o}`,
|
|
4273
4298
|
organDisplayName: o,
|
|
@@ -4278,8 +4303,8 @@ function Xo(e, r) {
|
|
|
4278
4303
|
interpretationLabel: a != null && a >= 66 ? `Your ${o} is High` : a != null && a >= 33 ? `Your ${o} is Trending` : a != null ? `Your ${o} is Optimal` : void 0
|
|
4279
4304
|
};
|
|
4280
4305
|
}
|
|
4281
|
-
function
|
|
4282
|
-
const { pageHeader: r, triadCards: n, organContent: a, cortisolContent: o } = e, i = n ?? [], [s, c] =
|
|
4306
|
+
function Xs({ content: e }) {
|
|
4307
|
+
const { pageHeader: r, triadCards: n, organContent: a, cortisolContent: o } = e, i = n ?? [], [s, c] = k(null), d = j(
|
|
4283
4308
|
() => (m) => (b) => {
|
|
4284
4309
|
b.organKey && a != null && a[b.organKey] && c({ triadCard: m, category: b });
|
|
4285
4310
|
},
|
|
@@ -4289,9 +4314,9 @@ function Fs({ content: e }) {
|
|
|
4289
4314
|
const m = s.category.organKey, b = m ? a[m] : void 0;
|
|
4290
4315
|
if (b)
|
|
4291
4316
|
return /* @__PURE__ */ t(
|
|
4292
|
-
|
|
4317
|
+
zo,
|
|
4293
4318
|
{
|
|
4294
|
-
patient:
|
|
4319
|
+
patient: Zo(s.triadCard, s.category),
|
|
4295
4320
|
content: b,
|
|
4296
4321
|
onBack: () => c(null),
|
|
4297
4322
|
cortisolContent: m === "adrenal" ? o : void 0
|
|
@@ -4299,7 +4324,7 @@ function Fs({ content: e }) {
|
|
|
4299
4324
|
);
|
|
4300
4325
|
}
|
|
4301
4326
|
return /* @__PURE__ */ l("div", { className: "mx-auto w-full min-w-0 space-y-6", children: [
|
|
4302
|
-
/* @__PURE__ */ t(
|
|
4327
|
+
/* @__PURE__ */ t(D, { title: r.title, subtitle: r.subtitle }),
|
|
4303
4328
|
/* @__PURE__ */ t("div", { className: "space-y-6", children: i.map((m) => /* @__PURE__ */ t(
|
|
4304
4329
|
gr,
|
|
4305
4330
|
{
|
|
@@ -4310,13 +4335,13 @@ function Fs({ content: e }) {
|
|
|
4310
4335
|
)) })
|
|
4311
4336
|
] });
|
|
4312
4337
|
}
|
|
4313
|
-
const
|
|
4314
|
-
function
|
|
4338
|
+
const Wo = ["ADRENAL", "THYROID", "PANCREAS"];
|
|
4339
|
+
function Uo({
|
|
4315
4340
|
pageHeader: e
|
|
4316
4341
|
}) {
|
|
4317
4342
|
return /* @__PURE__ */ l(K, { children: [
|
|
4318
|
-
/* @__PURE__ */ t(
|
|
4319
|
-
/* @__PURE__ */ t("div", { className: "space-y-6", children: [0, 1, 2].map((r) => /* @__PURE__ */ l(
|
|
4343
|
+
/* @__PURE__ */ t(D, { title: e.title, subtitle: e.subtitle }),
|
|
4344
|
+
/* @__PURE__ */ t("div", { className: "space-y-6", children: [0, 1, 2].map((r) => /* @__PURE__ */ l(L, { className: "flex flex-col", children: [
|
|
4320
4345
|
/* @__PURE__ */ l("div", { className: "mb-6 flex flex-wrap items-center justify-between gap-3", children: [
|
|
4321
4346
|
/* @__PURE__ */ l("div", { className: "flex min-w-0 flex-1 items-center gap-2", children: [
|
|
4322
4347
|
/* @__PURE__ */ t(x, { className: "h-9 w-9 shrink-0 rounded-md" }),
|
|
@@ -4324,7 +4349,7 @@ function Zo({
|
|
|
4324
4349
|
] }),
|
|
4325
4350
|
/* @__PURE__ */ t(x, { className: "h-9 w-16" })
|
|
4326
4351
|
] }),
|
|
4327
|
-
/* @__PURE__ */ t("div", { className: "grid grid-cols-1 gap-4 lg:grid-cols-2 xl:grid-cols-3", children:
|
|
4352
|
+
/* @__PURE__ */ t("div", { className: "grid grid-cols-1 gap-4 lg:grid-cols-2 xl:grid-cols-3", children: Wo.map((n) => /* @__PURE__ */ t(
|
|
4328
4353
|
Be,
|
|
4329
4354
|
{
|
|
4330
4355
|
variant: "triadResiliency",
|
|
@@ -4335,13 +4360,13 @@ function Zo({
|
|
|
4335
4360
|
] }, r)) })
|
|
4336
4361
|
] });
|
|
4337
4362
|
}
|
|
4338
|
-
const
|
|
4363
|
+
const Qo = ["Normal Range", "Current Range", ""], Vt = ["high", "trending", "optimal", "low"], Ko = {
|
|
4339
4364
|
high: "High",
|
|
4340
4365
|
trending: "Trending",
|
|
4341
4366
|
optimal: "Optimal",
|
|
4342
4367
|
low: "Low"
|
|
4343
4368
|
};
|
|
4344
|
-
function
|
|
4369
|
+
function qo(e) {
|
|
4345
4370
|
const r = /* @__PURE__ */ new Map();
|
|
4346
4371
|
for (const n of Vt)
|
|
4347
4372
|
r.set(n, []);
|
|
@@ -4355,21 +4380,21 @@ function Qo(e) {
|
|
|
4355
4380
|
}
|
|
4356
4381
|
return Vt.map((n) => ({
|
|
4357
4382
|
status: n,
|
|
4358
|
-
title:
|
|
4383
|
+
title: Ko[n],
|
|
4359
4384
|
rows: r.get(n) ?? []
|
|
4360
4385
|
})).filter((n) => n.rows.length > 0);
|
|
4361
4386
|
}
|
|
4362
|
-
function
|
|
4363
|
-
const { pageHeader: r, indicators: n } = e, o =
|
|
4387
|
+
function Vs({ content: e }) {
|
|
4388
|
+
const { pageHeader: r, indicators: n } = e, o = qo(n ?? []);
|
|
4364
4389
|
return /* @__PURE__ */ l("div", { className: "mx-auto w-full min-w-0 space-y-6", children: [
|
|
4365
|
-
/* @__PURE__ */ t(
|
|
4366
|
-
/* @__PURE__ */ t("div", { className: "flex min-w-0 flex-col gap-6", children: o.map(({ status: i, title: s, rows: c }) => /* @__PURE__ */ l(
|
|
4390
|
+
/* @__PURE__ */ t(D, { title: r.title, subtitle: r.subtitle }),
|
|
4391
|
+
/* @__PURE__ */ t("div", { className: "flex min-w-0 flex-col gap-6", children: o.map(({ status: i, title: s, rows: c }) => /* @__PURE__ */ l(L, { className: "min-w-0", children: [
|
|
4367
4392
|
/* @__PURE__ */ t("h2", { className: "mb-4 m-0 text-lg font-bold text-[color:var(--mb-color-text)]", children: s }),
|
|
4368
4393
|
/* @__PURE__ */ t("div", { className: "space-y-2", children: c.map((d) => /* @__PURE__ */ t(
|
|
4369
4394
|
le,
|
|
4370
4395
|
{
|
|
4371
4396
|
row: d,
|
|
4372
|
-
metricLabels:
|
|
4397
|
+
metricLabels: Qo,
|
|
4373
4398
|
metricSlots: 2
|
|
4374
4399
|
},
|
|
4375
4400
|
d.name
|
|
@@ -4377,12 +4402,12 @@ function Gs({ content: e }) {
|
|
|
4377
4402
|
] }, i)) })
|
|
4378
4403
|
] });
|
|
4379
4404
|
}
|
|
4380
|
-
const
|
|
4405
|
+
const Jo = [
|
|
4381
4406
|
{ title: "High", rowCount: 2 },
|
|
4382
4407
|
{ title: "Trending", rowCount: 3 },
|
|
4383
4408
|
{ title: "Optimal", rowCount: 3 }
|
|
4384
4409
|
];
|
|
4385
|
-
function
|
|
4410
|
+
function _o() {
|
|
4386
4411
|
return /* @__PURE__ */ l("div", { className: "flex min-h-[4.5rem] min-w-0 flex-col overflow-hidden rounded-[length:var(--mb-radius-button)] border border-solid border-[color:var(--mb-color-card-border)] bg-[color:var(--mb-color-card-bg)] xl:flex-row xl:items-stretch", children: [
|
|
4387
4412
|
/* @__PURE__ */ l("div", { className: "flex min-w-0 items-center gap-2 px-3 py-2 xl:w-[10rem] xl:shrink-0", children: [
|
|
4388
4413
|
/* @__PURE__ */ t(x, { className: "size-8 shrink-0 rounded-md" }),
|
|
@@ -4395,25 +4420,25 @@ function qo() {
|
|
|
4395
4420
|
/* @__PURE__ */ t("div", { className: "flex min-h-[3rem] border-t border-[color:var(--mb-color-card-border)] xl:w-[7rem] xl:shrink-0 xl:border-l xl:border-t-0", children: /* @__PURE__ */ t(x, { className: "m-auto h-9 w-[5.5rem] rounded-md" }) })
|
|
4396
4421
|
] });
|
|
4397
4422
|
}
|
|
4398
|
-
function
|
|
4423
|
+
function $o({
|
|
4399
4424
|
pageHeader: e
|
|
4400
4425
|
}) {
|
|
4401
4426
|
return /* @__PURE__ */ l(K, { children: [
|
|
4402
|
-
/* @__PURE__ */ t(
|
|
4403
|
-
/* @__PURE__ */ t("div", { className: "flex min-w-0 flex-col gap-6", children:
|
|
4427
|
+
/* @__PURE__ */ t(D, { title: e.title, subtitle: e.subtitle }),
|
|
4428
|
+
/* @__PURE__ */ t("div", { className: "flex min-w-0 flex-col gap-6", children: Jo.map(({ title: r, rowCount: n }) => /* @__PURE__ */ l(L, { className: "min-w-0", children: [
|
|
4404
4429
|
/* @__PURE__ */ t(x, { className: "mb-4 h-6 w-28 rounded-md" }),
|
|
4405
|
-
/* @__PURE__ */ t("div", { className: "space-y-2", children: Array.from({ length: n }, (a, o) => /* @__PURE__ */ t(
|
|
4430
|
+
/* @__PURE__ */ t("div", { className: "space-y-2", children: Array.from({ length: n }, (a, o) => /* @__PURE__ */ t(_o, {}, `${r}-${o}`)) })
|
|
4406
4431
|
] }, r)) })
|
|
4407
4432
|
] });
|
|
4408
4433
|
}
|
|
4409
4434
|
const Nr = "mb_config", Cr = "metabolic:set-config";
|
|
4410
|
-
function
|
|
4435
|
+
function el(e) {
|
|
4411
4436
|
let r = "";
|
|
4412
4437
|
for (const a of e)
|
|
4413
4438
|
r += String.fromCharCode(a);
|
|
4414
4439
|
return btoa(r).replace(/\+/g, "-").replace(/\//g, "_").replace(/=+$/, "");
|
|
4415
4440
|
}
|
|
4416
|
-
function
|
|
4441
|
+
function tl(e) {
|
|
4417
4442
|
try {
|
|
4418
4443
|
const r = e.replace(/-/g, "+").replace(/_/g, "/"), n = r.length % 4, a = n ? r + "=".repeat(4 - n) : r, o = atob(a), i = new Uint8Array(o.length);
|
|
4419
4444
|
for (let s = 0; s < o.length; s++)
|
|
@@ -4423,14 +4448,14 @@ function $o(e) {
|
|
|
4423
4448
|
return null;
|
|
4424
4449
|
}
|
|
4425
4450
|
}
|
|
4426
|
-
function
|
|
4451
|
+
function rl(e) {
|
|
4427
4452
|
const r = JSON.stringify(e);
|
|
4428
|
-
return
|
|
4453
|
+
return el(new TextEncoder().encode(r));
|
|
4429
4454
|
}
|
|
4430
|
-
function
|
|
4455
|
+
function nl(e) {
|
|
4431
4456
|
const r = e.trim();
|
|
4432
4457
|
if (!r) return null;
|
|
4433
|
-
const n =
|
|
4458
|
+
const n = tl(r);
|
|
4434
4459
|
if (!n) return null;
|
|
4435
4460
|
try {
|
|
4436
4461
|
const a = new TextDecoder().decode(n), o = JSON.parse(a);
|
|
@@ -4439,16 +4464,16 @@ function tl(e) {
|
|
|
4439
4464
|
return null;
|
|
4440
4465
|
}
|
|
4441
4466
|
}
|
|
4442
|
-
function
|
|
4467
|
+
function al(e) {
|
|
4443
4468
|
const r = e.get(Nr) ?? e.get("config");
|
|
4444
4469
|
if (r)
|
|
4445
|
-
return
|
|
4470
|
+
return nl(r) ?? void 0;
|
|
4446
4471
|
}
|
|
4447
|
-
function
|
|
4448
|
-
const n = encodeURIComponent(
|
|
4472
|
+
function Zs(e, r) {
|
|
4473
|
+
const n = encodeURIComponent(rl(r)), a = e.includes("?") ? "&" : "?";
|
|
4449
4474
|
return `${e}${a}${Nr}=${n}`;
|
|
4450
4475
|
}
|
|
4451
|
-
const
|
|
4476
|
+
const ol = ["patientId", "patient_id"], ll = [
|
|
4452
4477
|
"patientFullName",
|
|
4453
4478
|
"patient_full_name",
|
|
4454
4479
|
"fullName"
|
|
@@ -4460,13 +4485,13 @@ function Zt(e, r) {
|
|
|
4460
4485
|
if (o) return o;
|
|
4461
4486
|
}
|
|
4462
4487
|
}
|
|
4463
|
-
function
|
|
4488
|
+
function il(e) {
|
|
4464
4489
|
return {
|
|
4465
|
-
patientId: Zt(e,
|
|
4466
|
-
patientFullName: Zt(e,
|
|
4490
|
+
patientId: Zt(e, ol),
|
|
4491
|
+
patientFullName: Zt(e, ll)
|
|
4467
4492
|
};
|
|
4468
4493
|
}
|
|
4469
|
-
function
|
|
4494
|
+
function Ws(e, r) {
|
|
4470
4495
|
const n = new URLSearchParams();
|
|
4471
4496
|
r.patientId && n.set("patientId", r.patientId), r.patientFullName && n.set("patientFullName", r.patientFullName);
|
|
4472
4497
|
const a = n.toString();
|
|
@@ -4474,13 +4499,13 @@ function Xs(e, r) {
|
|
|
4474
4499
|
const o = e.includes("?") ? "&" : "?";
|
|
4475
4500
|
return `${e}${o}${a}`;
|
|
4476
4501
|
}
|
|
4477
|
-
function
|
|
4502
|
+
function Us() {
|
|
4478
4503
|
window.dispatchEvent(new CustomEvent("metabolic:logout")), window.parent !== window && window.parent.postMessage({ type: "metabolic:logout" }, "*");
|
|
4479
4504
|
}
|
|
4480
|
-
function
|
|
4505
|
+
function sl(e, r) {
|
|
4481
4506
|
return r.length === 0 ? !1 : r.some((n) => n === e);
|
|
4482
4507
|
}
|
|
4483
|
-
function
|
|
4508
|
+
function Qs(e, r, n) {
|
|
4484
4509
|
var a;
|
|
4485
4510
|
(a = e.contentWindow) == null || a.postMessage(
|
|
4486
4511
|
{
|
|
@@ -4510,7 +4535,7 @@ function bt() {
|
|
|
4510
4535
|
}
|
|
4511
4536
|
);
|
|
4512
4537
|
}
|
|
4513
|
-
function
|
|
4538
|
+
function cl() {
|
|
4514
4539
|
return /* @__PURE__ */ l(
|
|
4515
4540
|
"svg",
|
|
4516
4541
|
{
|
|
@@ -4531,7 +4556,7 @@ function il() {
|
|
|
4531
4556
|
}
|
|
4532
4557
|
);
|
|
4533
4558
|
}
|
|
4534
|
-
function
|
|
4559
|
+
function dl() {
|
|
4535
4560
|
return /* @__PURE__ */ l(
|
|
4536
4561
|
"svg",
|
|
4537
4562
|
{
|
|
@@ -4550,7 +4575,7 @@ function sl() {
|
|
|
4550
4575
|
}
|
|
4551
4576
|
);
|
|
4552
4577
|
}
|
|
4553
|
-
function
|
|
4578
|
+
function ml() {
|
|
4554
4579
|
return /* @__PURE__ */ l(
|
|
4555
4580
|
"svg",
|
|
4556
4581
|
{
|
|
@@ -4575,7 +4600,7 @@ function cl() {
|
|
|
4575
4600
|
}
|
|
4576
4601
|
);
|
|
4577
4602
|
}
|
|
4578
|
-
function
|
|
4603
|
+
function Ks() {
|
|
4579
4604
|
return /* @__PURE__ */ l(
|
|
4580
4605
|
"svg",
|
|
4581
4606
|
{
|
|
@@ -4599,7 +4624,7 @@ function Ws() {
|
|
|
4599
4624
|
}
|
|
4600
4625
|
);
|
|
4601
4626
|
}
|
|
4602
|
-
function
|
|
4627
|
+
function ul() {
|
|
4603
4628
|
return /* @__PURE__ */ l(
|
|
4604
4629
|
"svg",
|
|
4605
4630
|
{
|
|
@@ -4624,7 +4649,7 @@ function dl() {
|
|
|
4624
4649
|
}
|
|
4625
4650
|
);
|
|
4626
4651
|
}
|
|
4627
|
-
function
|
|
4652
|
+
function bl() {
|
|
4628
4653
|
return /* @__PURE__ */ l(
|
|
4629
4654
|
"svg",
|
|
4630
4655
|
{
|
|
@@ -4649,7 +4674,7 @@ function ml() {
|
|
|
4649
4674
|
}
|
|
4650
4675
|
);
|
|
4651
4676
|
}
|
|
4652
|
-
function
|
|
4677
|
+
function hl() {
|
|
4653
4678
|
return /* @__PURE__ */ t(
|
|
4654
4679
|
"svg",
|
|
4655
4680
|
{
|
|
@@ -4665,7 +4690,7 @@ function ul() {
|
|
|
4665
4690
|
}
|
|
4666
4691
|
);
|
|
4667
4692
|
}
|
|
4668
|
-
function
|
|
4693
|
+
function fl() {
|
|
4669
4694
|
return /* @__PURE__ */ l(
|
|
4670
4695
|
"svg",
|
|
4671
4696
|
{
|
|
@@ -4690,7 +4715,7 @@ function bl() {
|
|
|
4690
4715
|
}
|
|
4691
4716
|
);
|
|
4692
4717
|
}
|
|
4693
|
-
function
|
|
4718
|
+
function gl() {
|
|
4694
4719
|
return /* @__PURE__ */ l(
|
|
4695
4720
|
"svg",
|
|
4696
4721
|
{
|
|
@@ -4715,8 +4740,8 @@ function hl() {
|
|
|
4715
4740
|
}
|
|
4716
4741
|
);
|
|
4717
4742
|
}
|
|
4718
|
-
const
|
|
4719
|
-
function
|
|
4743
|
+
const pl = "w-16 min-w-16 lg:min-w-0 lg:w-[var(--mb-sidebar-width,290px)]";
|
|
4744
|
+
function xl({
|
|
4720
4745
|
sidebar: e,
|
|
4721
4746
|
children: r,
|
|
4722
4747
|
sidebarWidthClassName: n,
|
|
@@ -4724,7 +4749,7 @@ function gl({
|
|
|
4724
4749
|
}) {
|
|
4725
4750
|
const o = [
|
|
4726
4751
|
"flex h-full min-h-0 shrink-0 flex-col overflow-hidden border-r border-[color:var(--mb-color-sidebar-border)] bg-[color:var(--mb-color-sidebar-bg)]",
|
|
4727
|
-
n ??
|
|
4752
|
+
n ?? pl
|
|
4728
4753
|
].filter(Boolean).join(" ");
|
|
4729
4754
|
return /* @__PURE__ */ l(
|
|
4730
4755
|
"div",
|
|
@@ -4740,12 +4765,12 @@ function gl({
|
|
|
4740
4765
|
}
|
|
4741
4766
|
);
|
|
4742
4767
|
}
|
|
4743
|
-
function
|
|
4768
|
+
function vl(e, r) {
|
|
4744
4769
|
const n = e.replace(/\/$/, ""), a = r.startsWith("/") ? r : `/${r}`;
|
|
4745
4770
|
return `${n}${a}`;
|
|
4746
4771
|
}
|
|
4747
|
-
function
|
|
4748
|
-
const a = `/api/v1/pages/${encodeURIComponent(r)}`, o =
|
|
4772
|
+
function wl(e, r, n) {
|
|
4773
|
+
const a = `/api/v1/pages/${encodeURIComponent(r)}`, o = vl(e || "", a);
|
|
4749
4774
|
if (!n) return o;
|
|
4750
4775
|
const i = o.includes("?") ? "&" : "?";
|
|
4751
4776
|
return `${o}${i}report_id=${encodeURIComponent(n)}`;
|
|
@@ -4760,7 +4785,7 @@ async function U(e, r) {
|
|
|
4760
4785
|
headers: o,
|
|
4761
4786
|
fetchImpl: i = globalThis.fetch.bind(globalThis),
|
|
4762
4787
|
signal: s
|
|
4763
|
-
} = r, c =
|
|
4788
|
+
} = r, c = wl(n, e, a);
|
|
4764
4789
|
let d;
|
|
4765
4790
|
try {
|
|
4766
4791
|
d = await i(c, { method: "GET", headers: o, signal: s });
|
|
@@ -4795,42 +4820,42 @@ async function U(e, r) {
|
|
|
4795
4820
|
);
|
|
4796
4821
|
return b;
|
|
4797
4822
|
}
|
|
4798
|
-
const Ar = "Your metabolic overview brings together triad priorities, key metrics, and next steps in one place.",
|
|
4799
|
-
() =>
|
|
4800
|
-
), Ml = Q(
|
|
4801
|
-
() => wl().then((e) => ({ default: e.TotalPredictiveIndexTab }))
|
|
4823
|
+
const Ar = "Your metabolic overview brings together triad priorities, key metrics, and next steps in one place.", Lr = "Trends and predictive signals help you see how your metabolic trajectory may evolve over time.", Tr = "Your Metabolic Code Vitality Index is the total value of how optimized your body chemistry is performing. Your metabolism is more than just how many calories you burn – it’s the sum total of all the biochemical reactions in all your organ systems that drive your mental and physical vigor.", Pr = "Your answers are synthesized into themes and insights that inform your personalized recommendations.", Sr = "Your personalized supplement timing helps you align intake with your metabolic rhythm and triad priorities.", Mr = "Review your laboratory values with reference context and ordering details.", kr = "Discover products selected to support your metabolic goals and triad priorities.", Hr = "Deeper interpretation connects your lab patterns to your overall metabolic picture.", jr = "Focus on labs that are out of range or flagged so you can address them with your care team.", yl = () => import("./dashboard-x4GA8cqi.js"), Nl = () => import("./totalPredictiveIndex-DQdWbzgU.js"), Cl = () => import("./wellnessIndicators-CNQcbuvH.js"), Al = () => import("./questionnaireAnalysis-S3k2ZioO.js"), Ll = () => import("./supplementSchedule-D8PmXo88.js"), Tl = () => import("./labResults-CV9K31Os.js"), Pl = () => import("./suggestedProducts-DJlYkHhQ.js"), Sl = () => import("./labAnalysis-CaOCpV2g.js"), Ml = () => import("./alertLabSummary-BAIlZ2_U.js"), kl = Q(
|
|
4824
|
+
() => yl().then((e) => ({ default: e.DashboardTab }))
|
|
4802
4825
|
), Hl = Q(
|
|
4803
|
-
() =>
|
|
4804
|
-
), kl = Q(
|
|
4805
|
-
() => Nl().then((e) => ({
|
|
4806
|
-
default: e.QuestionnaireAnalysisTab
|
|
4807
|
-
}))
|
|
4826
|
+
() => Nl().then((e) => ({ default: e.TotalPredictiveIndexTab }))
|
|
4808
4827
|
), jl = Q(
|
|
4809
|
-
() => Cl().then((e) => ({ default: e.
|
|
4828
|
+
() => Cl().then((e) => ({ default: e.WellnessIndicatorsTab }))
|
|
4810
4829
|
), Bl = Q(
|
|
4811
|
-
() => Al().then((e) => ({
|
|
4830
|
+
() => Al().then((e) => ({
|
|
4831
|
+
default: e.QuestionnaireAnalysisTab
|
|
4832
|
+
}))
|
|
4812
4833
|
), Il = Q(
|
|
4813
|
-
() =>
|
|
4834
|
+
() => Ll().then((e) => ({ default: e.SupplementScheduleTab }))
|
|
4814
4835
|
), Dl = Q(
|
|
4815
|
-
() =>
|
|
4836
|
+
() => Tl().then((e) => ({ default: e.LabResultsTab }))
|
|
4816
4837
|
), Rl = Q(
|
|
4817
|
-
() => Pl().then((e) => ({ default: e.
|
|
4838
|
+
() => Pl().then((e) => ({ default: e.SuggestedProductsTab }))
|
|
4839
|
+
), zl = Q(
|
|
4840
|
+
() => Sl().then((e) => ({ default: e.LabAnalysisTab }))
|
|
4841
|
+
), Ol = Q(
|
|
4842
|
+
() => Ml().then((e) => ({ default: e.AlertLabSummaryTab }))
|
|
4818
4843
|
);
|
|
4819
4844
|
const De = [
|
|
4820
4845
|
{
|
|
4821
4846
|
id: "dashboard",
|
|
4822
4847
|
sideMenuLabel: "Dashboard",
|
|
4823
|
-
icon: /* @__PURE__ */ t(
|
|
4848
|
+
icon: /* @__PURE__ */ t(cl, {}),
|
|
4824
4849
|
pageHeader: {
|
|
4825
4850
|
title: "Dashboard",
|
|
4826
4851
|
subtitle: Ar
|
|
4827
4852
|
},
|
|
4828
|
-
Tab:
|
|
4829
|
-
Skeleton:
|
|
4853
|
+
Tab: kl,
|
|
4854
|
+
Skeleton: co,
|
|
4830
4855
|
createHttpFetcher: (e, r) => (n) => e(n, async () => {
|
|
4831
4856
|
const [a, { mapDashboardPageDtoToTabContent: o }] = await Promise.all([
|
|
4832
4857
|
U("dashboard", r(n)),
|
|
4833
|
-
Promise.resolve().then(() =>
|
|
4858
|
+
Promise.resolve().then(() => gi)
|
|
4834
4859
|
]);
|
|
4835
4860
|
return o(a);
|
|
4836
4861
|
})
|
|
@@ -4838,17 +4863,17 @@ const De = [
|
|
|
4838
4863
|
{
|
|
4839
4864
|
id: "total-predictive-index",
|
|
4840
4865
|
sideMenuLabel: "Total Predictive Trends",
|
|
4841
|
-
icon: /* @__PURE__ */ t(
|
|
4866
|
+
icon: /* @__PURE__ */ t(ul, {}),
|
|
4842
4867
|
pageHeader: {
|
|
4843
4868
|
title: "Total Predictive Trends",
|
|
4844
|
-
subtitle:
|
|
4869
|
+
subtitle: Lr
|
|
4845
4870
|
},
|
|
4846
|
-
Tab:
|
|
4847
|
-
Skeleton:
|
|
4871
|
+
Tab: Hl,
|
|
4872
|
+
Skeleton: Uo,
|
|
4848
4873
|
createHttpFetcher: (e, r) => (n) => e(n, async () => {
|
|
4849
4874
|
const [a, { mapTotalPredictiveIndexDtoToTabContent: o }] = await Promise.all([
|
|
4850
4875
|
U("total-predictive-index", r(n)),
|
|
4851
|
-
Promise.resolve().then(() =>
|
|
4876
|
+
Promise.resolve().then(() => Si)
|
|
4852
4877
|
]);
|
|
4853
4878
|
return o(a);
|
|
4854
4879
|
})
|
|
@@ -4856,17 +4881,17 @@ const De = [
|
|
|
4856
4881
|
{
|
|
4857
4882
|
id: "wellness-indicators",
|
|
4858
4883
|
sideMenuLabel: "Wellness Indicators",
|
|
4859
|
-
icon: /* @__PURE__ */ t(
|
|
4884
|
+
icon: /* @__PURE__ */ t(gl, {}),
|
|
4860
4885
|
pageHeader: {
|
|
4861
4886
|
title: "Wellness Indicators",
|
|
4862
|
-
subtitle:
|
|
4887
|
+
subtitle: Tr
|
|
4863
4888
|
},
|
|
4864
|
-
Tab:
|
|
4865
|
-
Skeleton:
|
|
4889
|
+
Tab: jl,
|
|
4890
|
+
Skeleton: $o,
|
|
4866
4891
|
createHttpFetcher: (e, r) => (n) => e(n, async () => {
|
|
4867
4892
|
const [a, { mapWellnessIndicatorsDtoToTabContent: o }] = await Promise.all([
|
|
4868
4893
|
U("wellness-indicators", r(n)),
|
|
4869
|
-
Promise.resolve().then(() =>
|
|
4894
|
+
Promise.resolve().then(() => ji)
|
|
4870
4895
|
]);
|
|
4871
4896
|
return o(a);
|
|
4872
4897
|
})
|
|
@@ -4874,17 +4899,17 @@ const De = [
|
|
|
4874
4899
|
{
|
|
4875
4900
|
id: "lab-results",
|
|
4876
4901
|
sideMenuLabel: "Lab Results",
|
|
4877
|
-
icon: /* @__PURE__ */ t(
|
|
4902
|
+
icon: /* @__PURE__ */ t(ml, {}),
|
|
4878
4903
|
pageHeader: {
|
|
4879
4904
|
title: "Lab Results",
|
|
4880
4905
|
subtitle: Mr
|
|
4881
4906
|
},
|
|
4882
|
-
Tab:
|
|
4883
|
-
Skeleton:
|
|
4907
|
+
Tab: Dl,
|
|
4908
|
+
Skeleton: wo,
|
|
4884
4909
|
createHttpFetcher: (e, r) => (n) => e(n, async () => {
|
|
4885
4910
|
const [a, { mapLabResultsDtoToTabContent: o }] = await Promise.all([
|
|
4886
4911
|
U("lab-results", r(n)),
|
|
4887
|
-
Promise.resolve().then(() =>
|
|
4912
|
+
Promise.resolve().then(() => yi)
|
|
4888
4913
|
]);
|
|
4889
4914
|
return o(a);
|
|
4890
4915
|
})
|
|
@@ -4892,17 +4917,17 @@ const De = [
|
|
|
4892
4917
|
{
|
|
4893
4918
|
id: "lab-analysis",
|
|
4894
4919
|
sideMenuLabel: "Lab Analysis",
|
|
4895
|
-
icon: /* @__PURE__ */ t(
|
|
4920
|
+
icon: /* @__PURE__ */ t(dl, {}),
|
|
4896
4921
|
pageHeader: {
|
|
4897
4922
|
title: "Lab Analysis",
|
|
4898
|
-
subtitle:
|
|
4923
|
+
subtitle: Hr
|
|
4899
4924
|
},
|
|
4900
|
-
Tab:
|
|
4901
|
-
Skeleton:
|
|
4925
|
+
Tab: zl,
|
|
4926
|
+
Skeleton: mo,
|
|
4902
4927
|
createHttpFetcher: (e, r) => (n) => e(n, async () => {
|
|
4903
4928
|
const [a, { mapLabAnalysisDtoToTabContent: o }] = await Promise.all([
|
|
4904
4929
|
U("lab-analysis", r(n)),
|
|
4905
|
-
Promise.resolve().then(() =>
|
|
4930
|
+
Promise.resolve().then(() => pi)
|
|
4906
4931
|
]);
|
|
4907
4932
|
return o(a);
|
|
4908
4933
|
})
|
|
@@ -4915,12 +4940,12 @@ const De = [
|
|
|
4915
4940
|
title: "Lab Alerts Summary",
|
|
4916
4941
|
subtitle: jr
|
|
4917
4942
|
},
|
|
4918
|
-
Tab:
|
|
4919
|
-
Skeleton:
|
|
4943
|
+
Tab: Ol,
|
|
4944
|
+
Skeleton: Ka,
|
|
4920
4945
|
createHttpFetcher: (e, r) => (n) => e(n, async () => {
|
|
4921
4946
|
const [a, { mapAlertLabSummaryDtoToTabContent: o }] = await Promise.all([
|
|
4922
4947
|
U("alert-lab-summary", r(n)),
|
|
4923
|
-
Promise.resolve().then(() =>
|
|
4948
|
+
Promise.resolve().then(() => ai)
|
|
4924
4949
|
]);
|
|
4925
4950
|
return o(a);
|
|
4926
4951
|
})
|
|
@@ -4928,17 +4953,17 @@ const De = [
|
|
|
4928
4953
|
{
|
|
4929
4954
|
id: "questionnaire-analysis",
|
|
4930
4955
|
sideMenuLabel: "Questionnaire Analysis",
|
|
4931
|
-
icon: /* @__PURE__ */ t(
|
|
4956
|
+
icon: /* @__PURE__ */ t(bl, {}),
|
|
4932
4957
|
pageHeader: {
|
|
4933
4958
|
title: "Questionnaire Analysis",
|
|
4934
4959
|
subtitle: Pr
|
|
4935
4960
|
},
|
|
4936
|
-
Tab:
|
|
4937
|
-
Skeleton:
|
|
4961
|
+
Tab: Bl,
|
|
4962
|
+
Skeleton: Eo,
|
|
4938
4963
|
createHttpFetcher: (e, r) => (n) => e(n, async () => {
|
|
4939
4964
|
const [a, { mapQuestionnaireAnalysisDtoToTabContent: o }] = await Promise.all([
|
|
4940
4965
|
U("questionnaire-analysis", r(n)),
|
|
4941
|
-
Promise.resolve().then(() =>
|
|
4966
|
+
Promise.resolve().then(() => Ni)
|
|
4942
4967
|
]);
|
|
4943
4968
|
return o(a);
|
|
4944
4969
|
})
|
|
@@ -4946,17 +4971,17 @@ const De = [
|
|
|
4946
4971
|
{
|
|
4947
4972
|
id: "suggested-products",
|
|
4948
4973
|
sideMenuLabel: "Suggested Products",
|
|
4949
|
-
icon: /* @__PURE__ */ t(
|
|
4974
|
+
icon: /* @__PURE__ */ t(hl, {}),
|
|
4950
4975
|
pageHeader: {
|
|
4951
4976
|
title: "Suggested Products",
|
|
4952
|
-
subtitle:
|
|
4977
|
+
subtitle: kr
|
|
4953
4978
|
},
|
|
4954
|
-
Tab:
|
|
4955
|
-
Skeleton:
|
|
4979
|
+
Tab: Rl,
|
|
4980
|
+
Skeleton: Xo,
|
|
4956
4981
|
createHttpFetcher: (e, r) => (n) => e(n, async () => {
|
|
4957
4982
|
const [a, { mapSuggestedProductsDtoToTabContent: o }] = await Promise.all([
|
|
4958
4983
|
U("suggested-products", r(n)),
|
|
4959
|
-
Promise.resolve().then(() =>
|
|
4984
|
+
Promise.resolve().then(() => Ai)
|
|
4960
4985
|
]);
|
|
4961
4986
|
return o(a);
|
|
4962
4987
|
})
|
|
@@ -4964,39 +4989,43 @@ const De = [
|
|
|
4964
4989
|
{
|
|
4965
4990
|
id: "supplement-schedule",
|
|
4966
4991
|
sideMenuLabel: "Supplement Schedule",
|
|
4967
|
-
icon: /* @__PURE__ */ t(
|
|
4992
|
+
icon: /* @__PURE__ */ t(fl, {}),
|
|
4968
4993
|
pageHeader: {
|
|
4969
4994
|
title: "Supplement Schedule",
|
|
4970
4995
|
subtitle: Sr
|
|
4971
4996
|
},
|
|
4972
|
-
Tab:
|
|
4973
|
-
Skeleton:
|
|
4997
|
+
Tab: Il,
|
|
4998
|
+
Skeleton: Vo,
|
|
4974
4999
|
createHttpFetcher: (e, r) => (n) => e(n, async () => {
|
|
4975
5000
|
const [a, { mapSupplementScheduleDtoToTabContent: o }] = await Promise.all([
|
|
4976
5001
|
U("supplement-schedule", r(n)),
|
|
4977
|
-
Promise.resolve().then(() =>
|
|
5002
|
+
Promise.resolve().then(() => Li)
|
|
4978
5003
|
]);
|
|
4979
5004
|
return o(a);
|
|
4980
5005
|
})
|
|
4981
5006
|
}
|
|
4982
|
-
],
|
|
5007
|
+
], El = "Supplement schedule is currently unavailable.", Te = De.map((e) => ({
|
|
4983
5008
|
id: e.id,
|
|
4984
5009
|
label: e.sideMenuLabel,
|
|
4985
|
-
icon: e.icon
|
|
5010
|
+
icon: e.icon,
|
|
5011
|
+
...e.id === "supplement-schedule" ? {
|
|
5012
|
+
disabled: !0,
|
|
5013
|
+
disabledTooltip: El
|
|
5014
|
+
} : {}
|
|
4986
5015
|
})), ht = Object.fromEntries(
|
|
4987
5016
|
De.map((e) => [
|
|
4988
5017
|
e.id,
|
|
4989
5018
|
{ Tab: e.Tab, Skeleton: e.Skeleton, pageHeader: e.pageHeader }
|
|
4990
5019
|
])
|
|
4991
5020
|
);
|
|
4992
|
-
function
|
|
5021
|
+
function Fl(e) {
|
|
4993
5022
|
return ht[e].pageHeader;
|
|
4994
5023
|
}
|
|
4995
|
-
function
|
|
5024
|
+
function Gl(e, r) {
|
|
4996
5025
|
const n = De.map((a) => [a.id, a.createHttpFetcher(e, r)]);
|
|
4997
5026
|
return Object.fromEntries(n);
|
|
4998
5027
|
}
|
|
4999
|
-
function
|
|
5028
|
+
function Yl({
|
|
5000
5029
|
label: e,
|
|
5001
5030
|
icon: r,
|
|
5002
5031
|
isActive: n = !1,
|
|
@@ -5057,19 +5086,19 @@ function El({
|
|
|
5057
5086
|
)
|
|
5058
5087
|
] }) : v;
|
|
5059
5088
|
}
|
|
5060
|
-
function
|
|
5089
|
+
function Xl({
|
|
5061
5090
|
title: e,
|
|
5062
5091
|
logo: r,
|
|
5063
5092
|
footerContent: n,
|
|
5064
5093
|
className: a = "",
|
|
5065
5094
|
navClassName: o = "",
|
|
5066
|
-
items: i =
|
|
5095
|
+
items: i = Te,
|
|
5067
5096
|
activeItemId: s,
|
|
5068
5097
|
defaultActiveItemId: c = "dashboard",
|
|
5069
5098
|
onItemClick: d,
|
|
5070
5099
|
onNavItemPrefetch: m
|
|
5071
5100
|
}) {
|
|
5072
|
-
const b = s !== void 0, [g, v] =
|
|
5101
|
+
const b = s !== void 0, [g, v] = k(c), u = s ?? g, h = I(
|
|
5073
5102
|
(C) => {
|
|
5074
5103
|
d == null || d(C), b || v(C);
|
|
5075
5104
|
},
|
|
@@ -5101,7 +5130,7 @@ function Fl({
|
|
|
5101
5130
|
children: i.map((C) => {
|
|
5102
5131
|
const N = C.disabled === !0;
|
|
5103
5132
|
return /* @__PURE__ */ t(
|
|
5104
|
-
|
|
5133
|
+
Yl,
|
|
5105
5134
|
{
|
|
5106
5135
|
label: C.label,
|
|
5107
5136
|
icon: C.icon,
|
|
@@ -5127,14 +5156,14 @@ function Br(e) {
|
|
|
5127
5156
|
const r = e.displayName;
|
|
5128
5157
|
return typeof r != "string" || r.trim() === "";
|
|
5129
5158
|
}
|
|
5130
|
-
function
|
|
5159
|
+
function Vl(e) {
|
|
5131
5160
|
var n;
|
|
5132
5161
|
const r = (e ?? "").trim();
|
|
5133
5162
|
return r ? ((n = r[0]) == null ? void 0 : n.toUpperCase()) ?? "?" : "?";
|
|
5134
5163
|
}
|
|
5135
|
-
function
|
|
5164
|
+
function qs({ userProfile: e }) {
|
|
5136
5165
|
return !e || Br(e) ? null : /* @__PURE__ */ t("div", { className: "mt-2 flex shrink-0 flex-col gap-2 border-t border-[color:var(--mb-color-sidebar-border)] pt-2 lg:mt-4 lg:pt-4", children: /* @__PURE__ */ l("div", { className: "flex w-full min-w-0 flex-col items-center gap-2 lg:flex-row lg:items-center lg:gap-3 lg:justify-start", children: [
|
|
5137
|
-
/* @__PURE__ */ t("div", { className: "relative size-10 shrink-0 overflow-hidden rounded-[20px] bg-[color:var(--mb-color-nav-hover)]", children: e.avatarSrc ? /* @__PURE__ */ t("img", { src: e.avatarSrc, alt: "", className: "size-full object-cover" }) : /* @__PURE__ */ t("span", { className: "flex size-full items-center justify-center text-sm font-medium text-[color:var(--mb-color-text)]", children:
|
|
5166
|
+
/* @__PURE__ */ t("div", { className: "relative size-10 shrink-0 overflow-hidden rounded-[20px] bg-[color:var(--mb-color-nav-hover)]", children: e.avatarSrc ? /* @__PURE__ */ t("img", { src: e.avatarSrc, alt: "", className: "size-full object-cover" }) : /* @__PURE__ */ t("span", { className: "flex size-full items-center justify-center text-sm font-medium text-[color:var(--mb-color-text)]", children: Vl(e.displayName) }) }),
|
|
5138
5167
|
/* @__PURE__ */ l("div", { className: "flex min-w-0 max-w-full flex-col items-center gap-0.5 text-center lg:items-start lg:text-left", children: [
|
|
5139
5168
|
/* @__PURE__ */ t(
|
|
5140
5169
|
"p",
|
|
@@ -5165,7 +5194,7 @@ function Re({
|
|
|
5165
5194
|
const o = new Headers(a ?? void 0);
|
|
5166
5195
|
return e && o.set("X-Api-Key", e), r && o.set("X-User-Id", r), n && (o.set("X-Questionnaire-Response-Id", n), o.set("X-Appointment-Id", n)), o;
|
|
5167
5196
|
}
|
|
5168
|
-
function
|
|
5197
|
+
function Zl(e, r) {
|
|
5169
5198
|
return new Promise((n, a) => {
|
|
5170
5199
|
if (r.aborted) {
|
|
5171
5200
|
a(new DOMException("Aborted", "AbortError"));
|
|
@@ -5179,10 +5208,10 @@ function Yl(e, r) {
|
|
|
5179
5208
|
r.addEventListener("abort", o, { once: !0 });
|
|
5180
5209
|
});
|
|
5181
5210
|
}
|
|
5182
|
-
async function
|
|
5183
|
-
return e != null && e > 0 && await
|
|
5211
|
+
async function Wl(e, r, n) {
|
|
5212
|
+
return e != null && e > 0 && await Zl(e, r), n();
|
|
5184
5213
|
}
|
|
5185
|
-
function
|
|
5214
|
+
function Ul(e) {
|
|
5186
5215
|
const {
|
|
5187
5216
|
reportId: r,
|
|
5188
5217
|
headers: n,
|
|
@@ -5199,7 +5228,7 @@ function Vl(e) {
|
|
|
5199
5228
|
questionnaireResponseId: i,
|
|
5200
5229
|
headers: n
|
|
5201
5230
|
});
|
|
5202
|
-
return
|
|
5231
|
+
return Gl((h, f) => Wl(c, h, async () => {
|
|
5203
5232
|
if (d)
|
|
5204
5233
|
throw new Error(m);
|
|
5205
5234
|
return f();
|
|
@@ -5211,27 +5240,27 @@ function Vl(e) {
|
|
|
5211
5240
|
signal: h
|
|
5212
5241
|
}));
|
|
5213
5242
|
}
|
|
5214
|
-
function
|
|
5243
|
+
function Ql(e, r) {
|
|
5215
5244
|
const n = e.replace(/\/$/, ""), a = r.startsWith("/") ? r : `/${r}`;
|
|
5216
5245
|
return `${n}${a}`;
|
|
5217
5246
|
}
|
|
5218
|
-
function
|
|
5219
|
-
const n =
|
|
5247
|
+
function Kl(e, r) {
|
|
5248
|
+
const n = Ql(e || "", "/api/v1/report/download");
|
|
5220
5249
|
if (!r) return n;
|
|
5221
5250
|
const a = n.includes("?") ? "&" : "?";
|
|
5222
5251
|
return `${n}${a}report_id=${encodeURIComponent(r)}`;
|
|
5223
5252
|
}
|
|
5224
|
-
function
|
|
5253
|
+
function ql(e, r) {
|
|
5225
5254
|
const n = e.headers.get("Content-Disposition");
|
|
5226
5255
|
if (!n) return r;
|
|
5227
5256
|
const a = /filename\*?=(?:UTF-8'')?"?([^";]+)"?/i.exec(n);
|
|
5228
5257
|
return a != null && a[1] ? decodeURIComponent(a[1]) : r;
|
|
5229
5258
|
}
|
|
5230
|
-
function
|
|
5259
|
+
function Jl(e, r) {
|
|
5231
5260
|
const n = URL.createObjectURL(e), a = document.createElement("a");
|
|
5232
5261
|
a.href = n, a.download = r, a.rel = "noopener", document.body.appendChild(a), a.click(), a.remove(), setTimeout(() => URL.revokeObjectURL(n), 1e3);
|
|
5233
5262
|
}
|
|
5234
|
-
function
|
|
5263
|
+
function _l(e) {
|
|
5235
5264
|
const {
|
|
5236
5265
|
apiKey: r,
|
|
5237
5266
|
userId: n,
|
|
@@ -5241,7 +5270,7 @@ function Kl(e) {
|
|
|
5241
5270
|
fetchImpl: s
|
|
5242
5271
|
} = e, c = fe();
|
|
5243
5272
|
return async (d) => {
|
|
5244
|
-
const m = s ?? globalThis.fetch.bind(globalThis), b = (d == null ? void 0 : d.reportId) ?? a, g =
|
|
5273
|
+
const m = s ?? globalThis.fetch.bind(globalThis), b = (d == null ? void 0 : d.reportId) ?? a, g = Kl(c, b), v = Re({
|
|
5245
5274
|
apiKey: r,
|
|
5246
5275
|
userId: n,
|
|
5247
5276
|
questionnaireResponseId: o,
|
|
@@ -5253,22 +5282,22 @@ function Kl(e) {
|
|
|
5253
5282
|
});
|
|
5254
5283
|
if (!u.ok)
|
|
5255
5284
|
throw new Error(`Failed to download report PDF (HTTP ${u.status})`);
|
|
5256
|
-
const h = await u.blob(), f =
|
|
5257
|
-
|
|
5285
|
+
const h = await u.blob(), f = ql(u, b ? `report-${b}.pdf` : "report.pdf");
|
|
5286
|
+
Jl(h, f);
|
|
5258
5287
|
};
|
|
5259
5288
|
}
|
|
5260
|
-
function
|
|
5289
|
+
function $l(e, r) {
|
|
5261
5290
|
const n = e.replace(/\/$/, ""), a = r.startsWith("/") ? r : `/${r}`;
|
|
5262
5291
|
return `${n}${a}`;
|
|
5263
5292
|
}
|
|
5264
|
-
function
|
|
5265
|
-
const n =
|
|
5293
|
+
function ei(e, r) {
|
|
5294
|
+
const n = $l(e || "", "/api/v1/report/exists");
|
|
5266
5295
|
return r ? `${n}?report_id=${encodeURIComponent(r)}` : n;
|
|
5267
5296
|
}
|
|
5268
|
-
function
|
|
5297
|
+
function ti(e) {
|
|
5269
5298
|
return e instanceof DOMException && e.name === "AbortError";
|
|
5270
5299
|
}
|
|
5271
|
-
async function
|
|
5300
|
+
async function Js(e) {
|
|
5272
5301
|
const {
|
|
5273
5302
|
reportId: r,
|
|
5274
5303
|
headers: n,
|
|
@@ -5277,7 +5306,7 @@ async function Qs(e) {
|
|
|
5277
5306
|
questionnaireResponseId: i,
|
|
5278
5307
|
fetchImpl: s = globalThis.fetch.bind(globalThis),
|
|
5279
5308
|
signal: c
|
|
5280
|
-
} = e, d = fe(), m =
|
|
5309
|
+
} = e, d = fe(), m = ei(d, r), b = Re({
|
|
5281
5310
|
apiKey: a,
|
|
5282
5311
|
userId: o,
|
|
5283
5312
|
questionnaireResponseId: i,
|
|
@@ -5287,7 +5316,7 @@ async function Qs(e) {
|
|
|
5287
5316
|
try {
|
|
5288
5317
|
g = await s(m, { method: "GET", headers: b, signal: c });
|
|
5289
5318
|
} catch (h) {
|
|
5290
|
-
throw
|
|
5319
|
+
throw ti(h) ? h : new Error(
|
|
5291
5320
|
`Network error checking report availability: ${h instanceof Error ? h.message : String(h)}`,
|
|
5292
5321
|
{ cause: h }
|
|
5293
5322
|
);
|
|
@@ -5338,7 +5367,7 @@ const Ut = {
|
|
|
5338
5367
|
function Ir(e) {
|
|
5339
5368
|
return Ut[e] ?? Ut[1];
|
|
5340
5369
|
}
|
|
5341
|
-
const
|
|
5370
|
+
const ri = [
|
|
5342
5371
|
["morning", "Morning (AM)"],
|
|
5343
5372
|
["noon", "Noon"],
|
|
5344
5373
|
["afternoon", "Afternoon"],
|
|
@@ -5365,7 +5394,7 @@ function Dr(e) {
|
|
|
5365
5394
|
const r = (e ?? "low").toLowerCase();
|
|
5366
5395
|
return r === "high" ? "high" : r === "med" || r === "moderate" ? "moderate" : "low";
|
|
5367
5396
|
}
|
|
5368
|
-
function
|
|
5397
|
+
function ni(e) {
|
|
5369
5398
|
const r = e.toLowerCase().trim();
|
|
5370
5399
|
switch (r) {
|
|
5371
5400
|
case "hi":
|
|
@@ -5396,6 +5425,7 @@ function Rr(e, r) {
|
|
|
5396
5425
|
symptomScore: ft(a.normal_range, a.unit ?? ""),
|
|
5397
5426
|
labScore: Pe(a.value, a.unit ?? ""),
|
|
5398
5427
|
totalScore: a.indicator_percent != null ? String(Math.round(a.indicator_percent)) : "—",
|
|
5428
|
+
indicatorPercent: a.indicator_percent ?? void 0,
|
|
5399
5429
|
status: a.status
|
|
5400
5430
|
}));
|
|
5401
5431
|
return {
|
|
@@ -5406,17 +5436,17 @@ function Rr(e, r) {
|
|
|
5406
5436
|
indicators: n
|
|
5407
5437
|
};
|
|
5408
5438
|
}
|
|
5409
|
-
const
|
|
5439
|
+
const ai = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5410
5440
|
__proto__: null,
|
|
5411
5441
|
mapAlertLabSummaryDtoToTabContent: Rr
|
|
5412
5442
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
5413
5443
|
function Ce(e) {
|
|
5414
5444
|
return e != null ? String(Math.round(e)) : "—";
|
|
5415
5445
|
}
|
|
5416
|
-
function
|
|
5446
|
+
function oi(e) {
|
|
5417
5447
|
return e ?? "";
|
|
5418
5448
|
}
|
|
5419
|
-
function
|
|
5449
|
+
function li(e) {
|
|
5420
5450
|
switch ((e ?? "").toLowerCase()) {
|
|
5421
5451
|
case "low":
|
|
5422
5452
|
return "optimal";
|
|
@@ -5428,7 +5458,7 @@ function ni(e) {
|
|
|
5428
5458
|
return "trending";
|
|
5429
5459
|
}
|
|
5430
5460
|
}
|
|
5431
|
-
const
|
|
5461
|
+
const ii = {
|
|
5432
5462
|
cardio: "cardiopulmonary",
|
|
5433
5463
|
pulmonary: "cardiopulmonary",
|
|
5434
5464
|
cardiopulmonary: "cardiopulmonary",
|
|
@@ -5436,49 +5466,49 @@ const ai = {
|
|
|
5436
5466
|
neuro: "neurovascular",
|
|
5437
5467
|
vascular: "neurovascular"
|
|
5438
5468
|
};
|
|
5439
|
-
function
|
|
5469
|
+
function si(e) {
|
|
5440
5470
|
const r = e.trim().toLowerCase().replace(/[\s-]+/g, "");
|
|
5441
|
-
return
|
|
5471
|
+
return ii[r] ?? r;
|
|
5442
5472
|
}
|
|
5443
|
-
function
|
|
5444
|
-
const n =
|
|
5473
|
+
function ci(e, r) {
|
|
5474
|
+
const n = si(e.name);
|
|
5445
5475
|
return {
|
|
5446
5476
|
name: e.name,
|
|
5447
5477
|
infoAriaLabel: `${e.name} category information`,
|
|
5448
5478
|
symptomScore: Ce(e.survey_score),
|
|
5449
5479
|
labScore: Ce(e.lab_score),
|
|
5450
5480
|
totalScore: Ce(e.total_score),
|
|
5451
|
-
status:
|
|
5481
|
+
status: li(e.interpretation),
|
|
5452
5482
|
statusExplanationPanel: r != null && r[n] ? {
|
|
5453
5483
|
bodyParagraphs: [],
|
|
5454
5484
|
organKey: n
|
|
5455
5485
|
} : void 0
|
|
5456
5486
|
};
|
|
5457
5487
|
}
|
|
5458
|
-
function
|
|
5488
|
+
function di(e) {
|
|
5459
5489
|
const r = e.trim().split(/\s+/).filter(Boolean);
|
|
5460
5490
|
if (r.length === 0) return "?";
|
|
5461
5491
|
if (r.length === 1) return r[0].slice(0, 2).toUpperCase();
|
|
5462
5492
|
const n = r[0][0], a = r[r.length - 1][0];
|
|
5463
5493
|
return `${n}${a}`.toUpperCase();
|
|
5464
5494
|
}
|
|
5465
|
-
function
|
|
5495
|
+
function mi(e) {
|
|
5466
5496
|
if (!e) return "—";
|
|
5467
5497
|
const r = e.toLowerCase();
|
|
5468
5498
|
return r === "female" ? "Female" : r === "male" ? "Male" : e.charAt(0).toUpperCase() + e.slice(1).toLowerCase();
|
|
5469
5499
|
}
|
|
5470
|
-
function
|
|
5500
|
+
function ui(e) {
|
|
5471
5501
|
var a, o;
|
|
5472
5502
|
const r = (o = (a = e.patient) == null ? void 0 : a.name) == null ? void 0 : o.trim();
|
|
5473
5503
|
if (!r) return;
|
|
5474
5504
|
const n = [
|
|
5475
|
-
["Gender",
|
|
5505
|
+
["Gender", mi(e.patient.gender)],
|
|
5476
5506
|
["Chronological age", e.patient.chrono_age != null ? String(e.patient.chrono_age) : "—"],
|
|
5477
5507
|
["Biological age", e.patient.bio_age != null ? String(e.patient.bio_age) : "—"]
|
|
5478
5508
|
];
|
|
5479
5509
|
return {
|
|
5480
5510
|
patientName: r,
|
|
5481
|
-
initials:
|
|
5511
|
+
initials: di(r),
|
|
5482
5512
|
rows: n
|
|
5483
5513
|
};
|
|
5484
5514
|
}
|
|
@@ -5491,7 +5521,7 @@ function Se(e) {
|
|
|
5491
5521
|
day: "numeric"
|
|
5492
5522
|
});
|
|
5493
5523
|
}
|
|
5494
|
-
function
|
|
5524
|
+
function bi(e) {
|
|
5495
5525
|
if (e.overall_score == null) return;
|
|
5496
5526
|
const r = Math.round(e.overall_score), n = Se(e.labs_last_date), a = Se(e.questionnaire_last_date), o = e.wearable_last_activity ?? null;
|
|
5497
5527
|
return {
|
|
@@ -5508,14 +5538,14 @@ function di(e) {
|
|
|
5508
5538
|
wearableValueLabel: o ?? ""
|
|
5509
5539
|
};
|
|
5510
5540
|
}
|
|
5511
|
-
function
|
|
5541
|
+
function hi(e, r) {
|
|
5512
5542
|
if (e.triads.length === 0) return;
|
|
5513
5543
|
const n = e.triads.map((i) => ({
|
|
5514
5544
|
triadNumber: i.number,
|
|
5515
5545
|
name: `${i.name} Triad`,
|
|
5516
5546
|
aggregateScoreDisplay: Ce(i.total_score)
|
|
5517
5547
|
})), a = e.triads.map(
|
|
5518
|
-
(i) => i.organs.map((s) =>
|
|
5548
|
+
(i) => i.organs.map((s) => ci(s, r))
|
|
5519
5549
|
), o = Se(e.labs_last_date);
|
|
5520
5550
|
return {
|
|
5521
5551
|
sectionTitle: "Total Predictive Trends",
|
|
@@ -5528,14 +5558,15 @@ function mi(e, r) {
|
|
|
5528
5558
|
categoriesByTriadIndex: a
|
|
5529
5559
|
};
|
|
5530
5560
|
}
|
|
5531
|
-
function
|
|
5561
|
+
function fi(e) {
|
|
5532
5562
|
if (e.lab_metrics.length === 0) return;
|
|
5533
5563
|
const r = e.lab_metrics.map((a) => ({
|
|
5534
5564
|
name: a.name,
|
|
5535
5565
|
infoAriaLabel: `${a.name} information`,
|
|
5536
5566
|
symptomScore: "—",
|
|
5537
|
-
labScore: a.value != null ? Pe(a.value,
|
|
5567
|
+
labScore: a.value != null ? Pe(a.value, oi(a.unit)) : "—",
|
|
5538
5568
|
totalScore: a.indicator_percent != null ? String(Math.round(a.indicator_percent)) : "—",
|
|
5569
|
+
indicatorPercent: a.indicator_percent ?? void 0,
|
|
5539
5570
|
status: a.status
|
|
5540
5571
|
})), n = Se(e.labs_last_date);
|
|
5541
5572
|
return {
|
|
@@ -5554,13 +5585,13 @@ function zr(e, r) {
|
|
|
5554
5585
|
title: "Dashboard",
|
|
5555
5586
|
subtitle: Ar
|
|
5556
5587
|
},
|
|
5557
|
-
patientSummary:
|
|
5588
|
+
patientSummary: ui(e),
|
|
5558
5589
|
welcome: {
|
|
5559
5590
|
title: "",
|
|
5560
5591
|
paragraphs: [],
|
|
5561
5592
|
actions: [{ id: "export-reports", label: "Export All Reports" }]
|
|
5562
5593
|
},
|
|
5563
|
-
overallScore:
|
|
5594
|
+
overallScore: bi(e),
|
|
5564
5595
|
metaflammation: e.metaflammation ? {
|
|
5565
5596
|
title: "Metaflammation Gauge",
|
|
5566
5597
|
value: e.metaflammation.value,
|
|
@@ -5568,12 +5599,12 @@ function zr(e, r) {
|
|
|
5568
5599
|
infoAriaLabel: "Metaflammation gauge information",
|
|
5569
5600
|
centerValueColor: "#E97180"
|
|
5570
5601
|
} : void 0,
|
|
5571
|
-
totalPredictiveTrends:
|
|
5572
|
-
alertLabSummaryTable:
|
|
5602
|
+
totalPredictiveTrends: hi(e, r),
|
|
5603
|
+
alertLabSummaryTable: fi(e),
|
|
5573
5604
|
organContent: r
|
|
5574
5605
|
};
|
|
5575
5606
|
}
|
|
5576
|
-
const
|
|
5607
|
+
const gi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5577
5608
|
__proto__: null,
|
|
5578
5609
|
mapDashboardPageDtoToTabContent: zr
|
|
5579
5610
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
@@ -5581,12 +5612,12 @@ function Or(e) {
|
|
|
5581
5612
|
return {
|
|
5582
5613
|
pageHeader: {
|
|
5583
5614
|
title: "Lab Analysis",
|
|
5584
|
-
subtitle:
|
|
5615
|
+
subtitle: Hr
|
|
5585
5616
|
},
|
|
5586
5617
|
sections: (e.triads ?? []).map((r) => {
|
|
5587
5618
|
const n = (r.markers ?? []).map((a) => ({
|
|
5588
5619
|
label: a.name,
|
|
5589
|
-
arrows:
|
|
5620
|
+
arrows: ni(a.direction)
|
|
5590
5621
|
}));
|
|
5591
5622
|
return {
|
|
5592
5623
|
triadNumber: r.number,
|
|
@@ -5599,11 +5630,11 @@ function Or(e) {
|
|
|
5599
5630
|
})
|
|
5600
5631
|
};
|
|
5601
5632
|
}
|
|
5602
|
-
const
|
|
5633
|
+
const pi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5603
5634
|
__proto__: null,
|
|
5604
5635
|
mapLabAnalysisDtoToTabContent: Or
|
|
5605
5636
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
5606
|
-
function
|
|
5637
|
+
function xi(e) {
|
|
5607
5638
|
const r = e.unit ?? "";
|
|
5608
5639
|
return {
|
|
5609
5640
|
title: e.name,
|
|
@@ -5615,30 +5646,33 @@ function fi(e) {
|
|
|
5615
5646
|
status: e.status
|
|
5616
5647
|
};
|
|
5617
5648
|
}
|
|
5618
|
-
function
|
|
5649
|
+
function vi(e) {
|
|
5650
|
+
const r = e.triad_number ?? null;
|
|
5619
5651
|
return {
|
|
5652
|
+
triadNumber: r,
|
|
5620
5653
|
title: e.organ_name,
|
|
5621
|
-
subtitle: `T${
|
|
5622
|
-
metrics: e.metrics.map(
|
|
5654
|
+
subtitle: r == null ? "Additional Lab Values" : `T${r} Lab Values`,
|
|
5655
|
+
metrics: e.metrics.map(xi)
|
|
5623
5656
|
};
|
|
5624
5657
|
}
|
|
5625
|
-
function
|
|
5658
|
+
function wi(e, r) {
|
|
5626
5659
|
const n = /* @__PURE__ */ new Map();
|
|
5627
5660
|
return e.forEach((a) => {
|
|
5628
|
-
|
|
5629
|
-
|
|
5630
|
-
|
|
5631
|
-
|
|
5661
|
+
const o = a.triad_number ?? null;
|
|
5662
|
+
o != null && (n.has(o) || n.set(o, a));
|
|
5663
|
+
}), Array.from(n.entries()).map(([a, o]) => {
|
|
5664
|
+
var s;
|
|
5665
|
+
const i = ((s = r == null ? void 0 : r.find((c) => c.number === a)) == null ? void 0 : s.explainer_paragraphs) ?? Ir(a);
|
|
5632
5666
|
return {
|
|
5633
|
-
triadNumber: a
|
|
5634
|
-
heading: `Triad ${a
|
|
5667
|
+
triadNumber: a,
|
|
5668
|
+
heading: `Triad ${a}: ${o.triad_name}`,
|
|
5635
5669
|
videoAriaLabel: "Play introduction video",
|
|
5636
|
-
paragraphs:
|
|
5670
|
+
paragraphs: i
|
|
5637
5671
|
};
|
|
5638
5672
|
});
|
|
5639
5673
|
}
|
|
5640
5674
|
function Er(e, r) {
|
|
5641
|
-
const n = e.groups ?? [], a =
|
|
5675
|
+
const n = e.groups ?? [], a = wi(n, r), o = a[0];
|
|
5642
5676
|
return {
|
|
5643
5677
|
pageHeader: {
|
|
5644
5678
|
title: "Lab Results",
|
|
@@ -5646,10 +5680,10 @@ function Er(e, r) {
|
|
|
5646
5680
|
},
|
|
5647
5681
|
intro: o,
|
|
5648
5682
|
intros: a,
|
|
5649
|
-
groups: n.map(
|
|
5683
|
+
groups: n.map(vi)
|
|
5650
5684
|
};
|
|
5651
5685
|
}
|
|
5652
|
-
const
|
|
5686
|
+
const yi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5653
5687
|
__proto__: null,
|
|
5654
5688
|
mapLabResultsDtoToTabContent: Er
|
|
5655
5689
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
@@ -5673,11 +5707,11 @@ function Fr(e) {
|
|
|
5673
5707
|
}))
|
|
5674
5708
|
};
|
|
5675
5709
|
}
|
|
5676
|
-
const
|
|
5710
|
+
const Ni = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5677
5711
|
__proto__: null,
|
|
5678
5712
|
mapQuestionnaireAnalysisDtoToTabContent: Fr
|
|
5679
5713
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
5680
|
-
function
|
|
5714
|
+
function Ci(e) {
|
|
5681
5715
|
return e >= 60 ? "high" : e <= 40 ? "low" : "optimal";
|
|
5682
5716
|
}
|
|
5683
5717
|
function Gr(e, r) {
|
|
@@ -5685,7 +5719,7 @@ function Gr(e, r) {
|
|
|
5685
5719
|
return {
|
|
5686
5720
|
pageHeader: {
|
|
5687
5721
|
title: "Suggested Products",
|
|
5688
|
-
subtitle:
|
|
5722
|
+
subtitle: kr
|
|
5689
5723
|
},
|
|
5690
5724
|
intro: n != null ? {
|
|
5691
5725
|
triadNumber: n,
|
|
@@ -5701,7 +5735,7 @@ function Gr(e, r) {
|
|
|
5701
5735
|
currentRange: String(i.score),
|
|
5702
5736
|
previousRange: i.previous_score != null ? String(i.previous_score) : void 0,
|
|
5703
5737
|
indicatorPercent: Math.round(i.indicator_percent),
|
|
5704
|
-
status:
|
|
5738
|
+
status: Ci(i.indicator_percent)
|
|
5705
5739
|
})) : [],
|
|
5706
5740
|
symptomsSectionTitle: "Symptoms",
|
|
5707
5741
|
symptoms: [...e.symptoms],
|
|
@@ -5714,7 +5748,7 @@ function Gr(e, r) {
|
|
|
5714
5748
|
}))
|
|
5715
5749
|
};
|
|
5716
5750
|
}
|
|
5717
|
-
const
|
|
5751
|
+
const Ai = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5718
5752
|
__proto__: null,
|
|
5719
5753
|
mapSuggestedProductsDtoToTabContent: Gr
|
|
5720
5754
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
@@ -5729,7 +5763,7 @@ function Yr(e) {
|
|
|
5729
5763
|
triadNumbers: [...r.triad_numbers],
|
|
5730
5764
|
imageSrc: r.image_url ?? void 0,
|
|
5731
5765
|
imageAlt: r.name,
|
|
5732
|
-
scheduleRows:
|
|
5766
|
+
scheduleRows: ri.map(([n, a]) => ({
|
|
5733
5767
|
timeLabel: a,
|
|
5734
5768
|
dosage: r.schedule[n] ?? null
|
|
5735
5769
|
}))
|
|
@@ -5740,10 +5774,10 @@ function Yr(e) {
|
|
|
5740
5774
|
} : void 0
|
|
5741
5775
|
};
|
|
5742
5776
|
}
|
|
5743
|
-
const
|
|
5777
|
+
const Li = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5744
5778
|
__proto__: null,
|
|
5745
5779
|
mapSupplementScheduleDtoToTabContent: Yr
|
|
5746
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
5780
|
+
}, Symbol.toStringTag, { value: "Module" })), Ti = {
|
|
5747
5781
|
cardio: "cardiopulmonary",
|
|
5748
5782
|
pulmonary: "cardiopulmonary",
|
|
5749
5783
|
cardiopulmonary: "cardiopulmonary",
|
|
@@ -5751,15 +5785,15 @@ const Ni = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
5751
5785
|
neuro: "neurovascular",
|
|
5752
5786
|
vascular: "neurovascular"
|
|
5753
5787
|
};
|
|
5754
|
-
function
|
|
5788
|
+
function Pi(e) {
|
|
5755
5789
|
const r = e.trim().toLowerCase().replace(/[\s-]+/g, "");
|
|
5756
|
-
return
|
|
5790
|
+
return Ti[r] ?? r;
|
|
5757
5791
|
}
|
|
5758
5792
|
function Xr(e, r, n) {
|
|
5759
5793
|
return {
|
|
5760
5794
|
pageHeader: {
|
|
5761
5795
|
title: "Total Predictive Trends",
|
|
5762
|
-
subtitle:
|
|
5796
|
+
subtitle: Lr
|
|
5763
5797
|
},
|
|
5764
5798
|
triadCards: e.triads.map((a) => ({
|
|
5765
5799
|
triadNumber: a.number,
|
|
@@ -5769,7 +5803,7 @@ function Xr(e, r, n) {
|
|
|
5769
5803
|
currentRangeLabel: "Current Range",
|
|
5770
5804
|
previousRangeLabel: "Previous Range",
|
|
5771
5805
|
categories: a.categories.map((o) => {
|
|
5772
|
-
const i =
|
|
5806
|
+
const i = Pi(o.name);
|
|
5773
5807
|
return {
|
|
5774
5808
|
title: o.name.toUpperCase(),
|
|
5775
5809
|
symptomScore: o.symptom_score != null ? String(o.symptom_score) : "—",
|
|
@@ -5786,29 +5820,29 @@ function Xr(e, r, n) {
|
|
|
5786
5820
|
cortisolContent: n
|
|
5787
5821
|
};
|
|
5788
5822
|
}
|
|
5789
|
-
const
|
|
5823
|
+
const Si = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5790
5824
|
__proto__: null,
|
|
5791
5825
|
mapTotalPredictiveIndexDtoToTabContent: Xr
|
|
5792
5826
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
5793
5827
|
function Qt(e) {
|
|
5794
5828
|
return `${e.min} - ${e.max}`;
|
|
5795
5829
|
}
|
|
5796
|
-
function
|
|
5830
|
+
function Mi(e, r) {
|
|
5797
5831
|
return e <= r.low.max ? "low" : e <= r.moderate.max ? "moderate" : "high";
|
|
5798
5832
|
}
|
|
5799
|
-
function
|
|
5833
|
+
function ki(e) {
|
|
5800
5834
|
return e === "low" ? "optimal" : e === "moderate" ? "trending" : "high";
|
|
5801
5835
|
}
|
|
5802
|
-
function
|
|
5836
|
+
function Hi(e) {
|
|
5803
5837
|
var a;
|
|
5804
|
-
const r =
|
|
5838
|
+
const r = Mi(e.score, e.zones), n = (a = e.interpretation) == null ? void 0 : a.trim();
|
|
5805
5839
|
return {
|
|
5806
5840
|
name: e.name,
|
|
5807
5841
|
infoAriaLabel: `${e.name} indicator information`,
|
|
5808
5842
|
symptomScore: Qt(e.zones.moderate),
|
|
5809
5843
|
labScore: String(e.score),
|
|
5810
5844
|
totalScore: Qt(e.zones.high),
|
|
5811
|
-
status:
|
|
5845
|
+
status: ki(r),
|
|
5812
5846
|
statusExplanationPanel: n && n.length > 0 ? { bodyParagraphs: [n] } : void 0
|
|
5813
5847
|
};
|
|
5814
5848
|
}
|
|
@@ -5816,44 +5850,44 @@ function Vr(e) {
|
|
|
5816
5850
|
return {
|
|
5817
5851
|
pageHeader: {
|
|
5818
5852
|
title: "Predictive Vitality Wellness Indicators",
|
|
5819
|
-
subtitle:
|
|
5853
|
+
subtitle: Tr
|
|
5820
5854
|
},
|
|
5821
|
-
indicators: e.indicators.map(
|
|
5855
|
+
indicators: e.indicators.map(Hi)
|
|
5822
5856
|
};
|
|
5823
5857
|
}
|
|
5824
|
-
const
|
|
5858
|
+
const ji = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5825
5859
|
__proto__: null,
|
|
5826
5860
|
mapWellnessIndicatorsDtoToTabContent: Vr
|
|
5827
5861
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
5828
|
-
function
|
|
5862
|
+
function Bi(e, r) {
|
|
5829
5863
|
return r ? { ...e, ...r } : e;
|
|
5830
5864
|
}
|
|
5831
|
-
const
|
|
5865
|
+
const Ii = De.map(
|
|
5832
5866
|
(e) => e.id
|
|
5833
5867
|
);
|
|
5834
5868
|
function gt(e) {
|
|
5835
|
-
return
|
|
5869
|
+
return Ii.includes(e);
|
|
5836
5870
|
}
|
|
5837
|
-
const
|
|
5871
|
+
const Di = 3e5, pt = qt(
|
|
5838
5872
|
null
|
|
5839
5873
|
);
|
|
5840
5874
|
function Zr() {
|
|
5841
5875
|
return ot(pt);
|
|
5842
5876
|
}
|
|
5843
|
-
function
|
|
5877
|
+
function _s() {
|
|
5844
5878
|
const e = ot(pt);
|
|
5845
|
-
return
|
|
5879
|
+
return I(() => {
|
|
5846
5880
|
e == null || e.invalidate();
|
|
5847
5881
|
}, [e]);
|
|
5848
5882
|
}
|
|
5849
|
-
function
|
|
5883
|
+
function Ri({
|
|
5850
5884
|
children: e,
|
|
5851
5885
|
fetchers: r,
|
|
5852
5886
|
ttlMs: n
|
|
5853
5887
|
}) {
|
|
5854
5888
|
const a = F(/* @__PURE__ */ new Map()), o = F(/* @__PURE__ */ new Map()), i = F(r);
|
|
5855
5889
|
i.current = r;
|
|
5856
|
-
const s = F(0), c =
|
|
5890
|
+
const s = F(0), c = I(
|
|
5857
5891
|
(u) => {
|
|
5858
5892
|
if (n <= 0) return;
|
|
5859
5893
|
const h = a.current.get(u);
|
|
@@ -5866,7 +5900,7 @@ function Bi({
|
|
|
5866
5900
|
}
|
|
5867
5901
|
},
|
|
5868
5902
|
[n]
|
|
5869
|
-
), d =
|
|
5903
|
+
), d = I(
|
|
5870
5904
|
(u, h) => {
|
|
5871
5905
|
n <= 0 || a.current.set(u, { data: h, expiresAt: Date.now() + n });
|
|
5872
5906
|
},
|
|
@@ -5883,9 +5917,9 @@ function Bi({
|
|
|
5883
5917
|
});
|
|
5884
5918
|
}), () => u.abort();
|
|
5885
5919
|
}, [r, d]);
|
|
5886
|
-
const m =
|
|
5920
|
+
const m = I((u) => {
|
|
5887
5921
|
u === void 0 ? a.current.clear() : a.current.delete(u);
|
|
5888
|
-
}, []), b =
|
|
5922
|
+
}, []), b = I(
|
|
5889
5923
|
async (u, h) => {
|
|
5890
5924
|
const f = c(u);
|
|
5891
5925
|
if (f !== void 0) return f;
|
|
@@ -5902,7 +5936,7 @@ function Bi({
|
|
|
5902
5936
|
return o.current.set(u, C), C;
|
|
5903
5937
|
},
|
|
5904
5938
|
[c, d]
|
|
5905
|
-
), g =
|
|
5939
|
+
), g = I(
|
|
5906
5940
|
(u) => {
|
|
5907
5941
|
if (!gt(u)) return;
|
|
5908
5942
|
const h = new AbortController();
|
|
@@ -5921,10 +5955,10 @@ function Bi({
|
|
|
5921
5955
|
);
|
|
5922
5956
|
return /* @__PURE__ */ t(pt.Provider, { value: v, children: e });
|
|
5923
5957
|
}
|
|
5924
|
-
function
|
|
5958
|
+
function zi(e) {
|
|
5925
5959
|
return e instanceof DOMException && e.name === "AbortError" ? !0 : e instanceof Error && e.name === "AbortError";
|
|
5926
5960
|
}
|
|
5927
|
-
function
|
|
5961
|
+
function Oi(e, r) {
|
|
5928
5962
|
switch (r.type) {
|
|
5929
5963
|
case "loadStart":
|
|
5930
5964
|
return { status: "loading" };
|
|
@@ -5934,10 +5968,10 @@ function Di(e, r) {
|
|
|
5934
5968
|
return { status: "error", error: r.error };
|
|
5935
5969
|
}
|
|
5936
5970
|
}
|
|
5937
|
-
function
|
|
5938
|
-
const [n, a] = tn(
|
|
5971
|
+
function Ei(e, r) {
|
|
5972
|
+
const [n, a] = tn(Oi, { status: "idle" }), [o, i] = k(0), s = F(r.onLoadError);
|
|
5939
5973
|
s.current = r.onLoadError;
|
|
5940
|
-
const c = Zr(), d =
|
|
5974
|
+
const c = Zr(), d = I(() => {
|
|
5941
5975
|
c == null || c.invalidate(e), a({ type: "loadStart" }), i((b) => b + 1);
|
|
5942
5976
|
}, [c, e]), m = F(r.fetchers);
|
|
5943
5977
|
return m.current = r.fetchers, V(() => {
|
|
@@ -5958,7 +5992,7 @@ function Ri(e, r) {
|
|
|
5958
5992
|
if (!b) return;
|
|
5959
5993
|
a({ type: "loadSuccess", data: f });
|
|
5960
5994
|
} catch (f) {
|
|
5961
|
-
if (!b ||
|
|
5995
|
+
if (!b || zi(f)) return;
|
|
5962
5996
|
const p = f instanceof Error ? f : new Error(String(f));
|
|
5963
5997
|
a({ type: "loadError", error: p }), (h = s.current) == null || h.call(s, { navItemId: e, error: p });
|
|
5964
5998
|
}
|
|
@@ -5968,7 +6002,7 @@ function Ri(e, r) {
|
|
|
5968
6002
|
}, [e, o, c]), { ...n, refetch: d, loadGeneration: o };
|
|
5969
6003
|
}
|
|
5970
6004
|
const Kt = "dashboard";
|
|
5971
|
-
function
|
|
6005
|
+
function Fi({ className: e }) {
|
|
5972
6006
|
return /* @__PURE__ */ l(
|
|
5973
6007
|
"div",
|
|
5974
6008
|
{
|
|
@@ -5990,7 +6024,7 @@ function zi({ className: e }) {
|
|
|
5990
6024
|
}
|
|
5991
6025
|
);
|
|
5992
6026
|
}
|
|
5993
|
-
function
|
|
6027
|
+
function Gi({ className: e }) {
|
|
5994
6028
|
return /* @__PURE__ */ l(
|
|
5995
6029
|
"div",
|
|
5996
6030
|
{
|
|
@@ -6009,7 +6043,7 @@ function Oi({ className: e }) {
|
|
|
6009
6043
|
}
|
|
6010
6044
|
);
|
|
6011
6045
|
}
|
|
6012
|
-
function
|
|
6046
|
+
function Yi({ onRetry: e }) {
|
|
6013
6047
|
return /* @__PURE__ */ l(
|
|
6014
6048
|
"div",
|
|
6015
6049
|
{
|
|
@@ -6049,7 +6083,7 @@ function Ei({ onRetry: e }) {
|
|
|
6049
6083
|
}
|
|
6050
6084
|
);
|
|
6051
6085
|
}
|
|
6052
|
-
class
|
|
6086
|
+
class Xi extends rn {
|
|
6053
6087
|
constructor() {
|
|
6054
6088
|
super(...arguments);
|
|
6055
6089
|
yt(this, "state", { error: null });
|
|
@@ -6065,7 +6099,7 @@ class Fi extends rn {
|
|
|
6065
6099
|
}
|
|
6066
6100
|
render() {
|
|
6067
6101
|
return this.state.error ? /* @__PURE__ */ t(
|
|
6068
|
-
|
|
6102
|
+
Vi,
|
|
6069
6103
|
{
|
|
6070
6104
|
onRetry: () => {
|
|
6071
6105
|
this.props.onRecover();
|
|
@@ -6074,7 +6108,7 @@ class Fi extends rn {
|
|
|
6074
6108
|
) : this.props.children;
|
|
6075
6109
|
}
|
|
6076
6110
|
}
|
|
6077
|
-
function
|
|
6111
|
+
function Vi({ onRetry: e }) {
|
|
6078
6112
|
return /* @__PURE__ */ l(
|
|
6079
6113
|
"div",
|
|
6080
6114
|
{
|
|
@@ -6114,41 +6148,41 @@ function Gi({ onRetry: e }) {
|
|
|
6114
6148
|
}
|
|
6115
6149
|
);
|
|
6116
6150
|
}
|
|
6117
|
-
function
|
|
6151
|
+
function Zi({
|
|
6118
6152
|
navItemId: e,
|
|
6119
6153
|
data: r
|
|
6120
6154
|
}) {
|
|
6121
6155
|
const { Tab: n } = ht[e];
|
|
6122
6156
|
return /* @__PURE__ */ t(n, { content: r });
|
|
6123
6157
|
}
|
|
6124
|
-
function
|
|
6158
|
+
function Wi({
|
|
6125
6159
|
navItemId: e,
|
|
6126
6160
|
contentFetchers: r,
|
|
6127
6161
|
onDashboardTabContentLoadError: n
|
|
6128
6162
|
}) {
|
|
6129
|
-
const a =
|
|
6163
|
+
const a = Ei(e, {
|
|
6130
6164
|
fetchers: r,
|
|
6131
6165
|
onLoadError: n
|
|
6132
|
-
}), o =
|
|
6133
|
-
return a.status === "idle" || a.status === "loading" ? /* @__PURE__ */ t(s, { pageHeader: o }) : a.status === "error" ? /* @__PURE__ */ t(
|
|
6134
|
-
|
|
6166
|
+
}), o = Fl(e), s = ht[e].Skeleton;
|
|
6167
|
+
return a.status === "idle" || a.status === "loading" ? /* @__PURE__ */ t(s, { pageHeader: o }) : a.status === "error" ? /* @__PURE__ */ t(Yi, { onRetry: () => a.refetch() }) : /* @__PURE__ */ t(
|
|
6168
|
+
Xi,
|
|
6135
6169
|
{
|
|
6136
6170
|
resetKey: `${e}-${a.loadGeneration}`,
|
|
6137
6171
|
onRecover: () => {
|
|
6138
6172
|
a.refetch();
|
|
6139
6173
|
},
|
|
6140
|
-
children: /* @__PURE__ */ t(nn, { fallback: /* @__PURE__ */ t(s, { pageHeader: o }), children: /* @__PURE__ */ t(
|
|
6174
|
+
children: /* @__PURE__ */ t(nn, { fallback: /* @__PURE__ */ t(s, { pageHeader: o }), children: /* @__PURE__ */ t(Zi, { navItemId: e, data: a.data }) })
|
|
6141
6175
|
}
|
|
6142
6176
|
);
|
|
6143
6177
|
}
|
|
6144
|
-
function
|
|
6178
|
+
function Ui({
|
|
6145
6179
|
activeItemId: e,
|
|
6146
6180
|
activeLabel: r,
|
|
6147
6181
|
contentFetchers: n,
|
|
6148
6182
|
onDashboardTabContentLoadError: a
|
|
6149
6183
|
}) {
|
|
6150
6184
|
return gt(e) ? /* @__PURE__ */ t(
|
|
6151
|
-
|
|
6185
|
+
Wi,
|
|
6152
6186
|
{
|
|
6153
6187
|
navItemId: e,
|
|
6154
6188
|
contentFetchers: n,
|
|
@@ -6156,7 +6190,7 @@ function Vi({
|
|
|
6156
6190
|
}
|
|
6157
6191
|
) : /* @__PURE__ */ t("div", { children: /* @__PURE__ */ t("h1", { className: "text-2xl font-semibold tracking-tight text-[color:var(--mb-color-text)]", children: r }) });
|
|
6158
6192
|
}
|
|
6159
|
-
function
|
|
6193
|
+
function Qi({
|
|
6160
6194
|
renderMainContent: e,
|
|
6161
6195
|
content: r,
|
|
6162
6196
|
activeItemId: n,
|
|
@@ -6168,7 +6202,7 @@ function Zi({
|
|
|
6168
6202
|
useDefaultTabData: d
|
|
6169
6203
|
}) {
|
|
6170
6204
|
const m = (e == null ? void 0 : e(n)) ?? (r !== void 0 ? r : /* @__PURE__ */ t(
|
|
6171
|
-
|
|
6205
|
+
Ui,
|
|
6172
6206
|
{
|
|
6173
6207
|
activeItemId: n,
|
|
6174
6208
|
activeLabel: a,
|
|
@@ -6176,12 +6210,12 @@ function Zi({
|
|
|
6176
6210
|
onDashboardTabContentLoadError: i
|
|
6177
6211
|
}
|
|
6178
6212
|
));
|
|
6179
|
-
return !c && d ? /* @__PURE__ */ t(
|
|
6180
|
-
/* @__PURE__ */ t(
|
|
6213
|
+
return !c && d ? /* @__PURE__ */ t(Gi, { className: "max-w-full shrink-0" }) : Br(s) ? /* @__PURE__ */ l(ae, { children: [
|
|
6214
|
+
/* @__PURE__ */ t(Fi, { className: "max-w-full shrink-0" }),
|
|
6181
6215
|
m
|
|
6182
6216
|
] }) : m;
|
|
6183
6217
|
}
|
|
6184
|
-
function
|
|
6218
|
+
function Ki({
|
|
6185
6219
|
rootStyle: e,
|
|
6186
6220
|
enableTabContentCache: r,
|
|
6187
6221
|
menuTitle: n,
|
|
@@ -6204,10 +6238,10 @@ function Wi({
|
|
|
6204
6238
|
className: "mb-root mb-sim-animate-in flex h-full min-h-0 min-w-0 flex-1 flex-col overflow-hidden",
|
|
6205
6239
|
style: e,
|
|
6206
6240
|
children: /* @__PURE__ */ t(
|
|
6207
|
-
|
|
6241
|
+
xl,
|
|
6208
6242
|
{
|
|
6209
6243
|
sidebar: /* @__PURE__ */ t(
|
|
6210
|
-
|
|
6244
|
+
Xl,
|
|
6211
6245
|
{
|
|
6212
6246
|
title: n,
|
|
6213
6247
|
logo: a,
|
|
@@ -6224,27 +6258,30 @@ function Wi({
|
|
|
6224
6258
|
),
|
|
6225
6259
|
sidebarWidthClassName: g,
|
|
6226
6260
|
className: b,
|
|
6227
|
-
children: /* @__PURE__ */
|
|
6261
|
+
children: /* @__PURE__ */ l("div", { className: v, children: [
|
|
6262
|
+
u,
|
|
6263
|
+
/* @__PURE__ */ t("div", { "aria-hidden": "true", className: "h-8 shrink-0" })
|
|
6264
|
+
] })
|
|
6228
6265
|
}
|
|
6229
6266
|
)
|
|
6230
6267
|
}
|
|
6231
6268
|
);
|
|
6232
6269
|
}
|
|
6233
|
-
function
|
|
6270
|
+
function qi({
|
|
6234
6271
|
wrapTabContentCache: e,
|
|
6235
6272
|
fetchers: r,
|
|
6236
6273
|
cacheTtlMs: n,
|
|
6237
6274
|
viewProps: a
|
|
6238
6275
|
}) {
|
|
6239
|
-
const o = /* @__PURE__ */ t(
|
|
6240
|
-
return e ? /* @__PURE__ */ t(
|
|
6276
|
+
const o = /* @__PURE__ */ t(Ki, { ...a });
|
|
6277
|
+
return e ? /* @__PURE__ */ t(Ri, { fetchers: r, ttlMs: n, children: o }) : o;
|
|
6241
6278
|
}
|
|
6242
|
-
const
|
|
6279
|
+
const Ji = [
|
|
6243
6280
|
{ id: "sim-pt-001", label: "Alex Morgan" },
|
|
6244
6281
|
{ id: "sim-pt-002", label: "Jordan Lee" },
|
|
6245
6282
|
{ id: "sim-pt-003", label: "Sam Rivera" },
|
|
6246
6283
|
{ id: "sim-pt-004", label: "Taylor Chen" }
|
|
6247
|
-
],
|
|
6284
|
+
], _i = [
|
|
6248
6285
|
{ id: "sim-rpt-001", label: "March 12, 2026" },
|
|
6249
6286
|
{ id: "sim-rpt-002", label: "February 4, 2026" },
|
|
6250
6287
|
{ id: "sim-rpt-003", label: "January 18, 2026" },
|
|
@@ -6264,18 +6301,18 @@ function Qr({
|
|
|
6264
6301
|
}
|
|
6265
6302
|
);
|
|
6266
6303
|
}
|
|
6267
|
-
function
|
|
6268
|
-
return
|
|
6304
|
+
function $i() {
|
|
6305
|
+
return Ji;
|
|
6269
6306
|
}
|
|
6270
|
-
function
|
|
6271
|
-
return
|
|
6307
|
+
function es() {
|
|
6308
|
+
return _i;
|
|
6272
6309
|
}
|
|
6273
|
-
function
|
|
6310
|
+
function ts({
|
|
6274
6311
|
rootStyle: e,
|
|
6275
6312
|
onSelectPatient: r,
|
|
6276
6313
|
onBack: n
|
|
6277
6314
|
}) {
|
|
6278
|
-
const a =
|
|
6315
|
+
const a = $i();
|
|
6279
6316
|
return /* @__PURE__ */ t(
|
|
6280
6317
|
Qr,
|
|
6281
6318
|
{
|
|
@@ -6311,12 +6348,12 @@ function _i({
|
|
|
6311
6348
|
}
|
|
6312
6349
|
);
|
|
6313
6350
|
}
|
|
6314
|
-
function
|
|
6351
|
+
function rs({
|
|
6315
6352
|
rootStyle: e,
|
|
6316
6353
|
onSelectReport: r,
|
|
6317
6354
|
onBack: n
|
|
6318
6355
|
}) {
|
|
6319
|
-
const a =
|
|
6356
|
+
const a = es();
|
|
6320
6357
|
return /* @__PURE__ */ t(
|
|
6321
6358
|
Qr,
|
|
6322
6359
|
{
|
|
@@ -6352,7 +6389,7 @@ function $i({
|
|
|
6352
6389
|
}
|
|
6353
6390
|
);
|
|
6354
6391
|
}
|
|
6355
|
-
function
|
|
6392
|
+
function ns({
|
|
6356
6393
|
rootStyle: e,
|
|
6357
6394
|
simulationSessionReady: r,
|
|
6358
6395
|
simRole: n,
|
|
@@ -6365,7 +6402,7 @@ function es({
|
|
|
6365
6402
|
if (!r) {
|
|
6366
6403
|
if (n === "practitioner")
|
|
6367
6404
|
return /* @__PURE__ */ t(
|
|
6368
|
-
|
|
6405
|
+
ts,
|
|
6369
6406
|
{
|
|
6370
6407
|
rootStyle: e,
|
|
6371
6408
|
onSelectPatient: a,
|
|
@@ -6374,7 +6411,7 @@ function es({
|
|
|
6374
6411
|
);
|
|
6375
6412
|
if (n === "patient")
|
|
6376
6413
|
return /* @__PURE__ */ t(
|
|
6377
|
-
|
|
6414
|
+
rs,
|
|
6378
6415
|
{
|
|
6379
6416
|
rootStyle: e,
|
|
6380
6417
|
onSelectReport: i,
|
|
@@ -6384,7 +6421,7 @@ function es({
|
|
|
6384
6421
|
}
|
|
6385
6422
|
return c;
|
|
6386
6423
|
}
|
|
6387
|
-
function
|
|
6424
|
+
function as(e) {
|
|
6388
6425
|
return j(() => {
|
|
6389
6426
|
const r = bn(e);
|
|
6390
6427
|
return {
|
|
@@ -6393,18 +6430,18 @@ function ts(e) {
|
|
|
6393
6430
|
};
|
|
6394
6431
|
}, [e]);
|
|
6395
6432
|
}
|
|
6396
|
-
function
|
|
6433
|
+
function os(e, r) {
|
|
6397
6434
|
const n = e.replace(/\/$/, ""), a = r.startsWith("/") ? r : `/${r}`;
|
|
6398
6435
|
return `${n}${a}`;
|
|
6399
6436
|
}
|
|
6400
6437
|
function Kr(e, r) {
|
|
6401
|
-
const n =
|
|
6438
|
+
const n = os(e || "", "/api/v1/report/full");
|
|
6402
6439
|
return r ? `${n}?report_id=${encodeURIComponent(r)}` : n;
|
|
6403
6440
|
}
|
|
6404
|
-
function
|
|
6441
|
+
function ls(e) {
|
|
6405
6442
|
return e instanceof DOMException && e.name === "AbortError";
|
|
6406
6443
|
}
|
|
6407
|
-
async function
|
|
6444
|
+
async function is(e) {
|
|
6408
6445
|
const {
|
|
6409
6446
|
baseUrl: r,
|
|
6410
6447
|
reportId: n,
|
|
@@ -6416,7 +6453,7 @@ async function as(e) {
|
|
|
6416
6453
|
try {
|
|
6417
6454
|
c = await o(s, { method: "GET", headers: a, signal: i });
|
|
6418
6455
|
} catch (b) {
|
|
6419
|
-
throw
|
|
6456
|
+
throw ls(b) ? b : new Error(
|
|
6420
6457
|
`Network error fetching full report: ${b instanceof Error ? b.message : String(b)}`,
|
|
6421
6458
|
{ cause: b }
|
|
6422
6459
|
);
|
|
@@ -6436,11 +6473,11 @@ async function as(e) {
|
|
|
6436
6473
|
throw new Error("Unexpected response shape for /report/full: missing 'report' or 'pages'");
|
|
6437
6474
|
return m;
|
|
6438
6475
|
}
|
|
6439
|
-
const
|
|
6440
|
-
function
|
|
6476
|
+
const ss = 5e3, _e = /* @__PURE__ */ new Map();
|
|
6477
|
+
function cs(e, r, n, a) {
|
|
6441
6478
|
return `${e}|${r ?? ""}|${n ?? ""}|${a ?? ""}`;
|
|
6442
6479
|
}
|
|
6443
|
-
function
|
|
6480
|
+
function ds(e) {
|
|
6444
6481
|
const {
|
|
6445
6482
|
reportId: r,
|
|
6446
6483
|
headers: n,
|
|
@@ -6454,7 +6491,7 @@ function is(e) {
|
|
|
6454
6491
|
userId: o,
|
|
6455
6492
|
questionnaireResponseId: i,
|
|
6456
6493
|
headers: n
|
|
6457
|
-
}), b =
|
|
6494
|
+
}), b = cs(
|
|
6458
6495
|
Kr(d, r),
|
|
6459
6496
|
a,
|
|
6460
6497
|
o,
|
|
@@ -6463,13 +6500,13 @@ function is(e) {
|
|
|
6463
6500
|
}), f), v = () => {
|
|
6464
6501
|
const f = _e.get(b);
|
|
6465
6502
|
if (f && Date.now() < f.expiresAt) return g(f.promise);
|
|
6466
|
-
const p =
|
|
6503
|
+
const p = is({
|
|
6467
6504
|
baseUrl: d,
|
|
6468
6505
|
reportId: r,
|
|
6469
6506
|
headers: m,
|
|
6470
6507
|
fetchImpl: s
|
|
6471
6508
|
});
|
|
6472
|
-
return p.catch(() => _e.delete(b)), _e.set(b, { promise: p, expiresAt: Date.now() +
|
|
6509
|
+
return p.catch(() => _e.delete(b)), _e.set(b, { promise: p, expiresAt: Date.now() + ss }), g(p);
|
|
6473
6510
|
};
|
|
6474
6511
|
v();
|
|
6475
6512
|
const u = (f) => v();
|
|
@@ -6512,10 +6549,10 @@ function is(e) {
|
|
|
6512
6549
|
}
|
|
6513
6550
|
};
|
|
6514
6551
|
}
|
|
6515
|
-
function
|
|
6552
|
+
function ms(e, r) {
|
|
6516
6553
|
return e === r ? !0 : !e || !r || e.length !== r.length ? !1 : e.every((n, a) => n === r[a]);
|
|
6517
6554
|
}
|
|
6518
|
-
function
|
|
6555
|
+
function us({
|
|
6519
6556
|
config: e,
|
|
6520
6557
|
apiKey: r,
|
|
6521
6558
|
reportHttpConfig: n,
|
|
@@ -6526,7 +6563,7 @@ function cs({
|
|
|
6526
6563
|
dashboardTabContentCacheTtlMs: c,
|
|
6527
6564
|
simulationReportId: d
|
|
6528
6565
|
}) {
|
|
6529
|
-
const m = r ?? (e == null ? void 0 : e.apiKey), b =
|
|
6566
|
+
const m = r ?? (e == null ? void 0 : e.apiKey), b = To(m), g = i === void 0 && s === void 0, [v, u] = k(), h = j(() => {
|
|
6530
6567
|
const P = { ...n ?? {} };
|
|
6531
6568
|
return d != null && (P.reportId = d), P;
|
|
6532
6569
|
}, [n, d]), f = j(
|
|
@@ -6546,29 +6583,29 @@ function cs({
|
|
|
6546
6583
|
V(() => {
|
|
6547
6584
|
p.current = f, u(void 0);
|
|
6548
6585
|
}, [f]);
|
|
6549
|
-
const y =
|
|
6586
|
+
const y = I((P, A) => {
|
|
6550
6587
|
if (p.current !== A) return;
|
|
6551
6588
|
const S = [...P.report.available_pages];
|
|
6552
6589
|
u(
|
|
6553
|
-
(
|
|
6590
|
+
(T) => ms(T, S) ? T : S
|
|
6554
6591
|
);
|
|
6555
6592
|
}, []), C = j(() => {
|
|
6556
|
-
const P =
|
|
6593
|
+
const P = ds({
|
|
6557
6594
|
...h,
|
|
6558
6595
|
onFullReportLoaded: (A) => y(A, f)
|
|
6559
6596
|
});
|
|
6560
|
-
return
|
|
6561
|
-
}, [a, y, f, h]), N = j(() => o ||
|
|
6597
|
+
return Bi(P, a);
|
|
6598
|
+
}, [a, y, f, h]), N = j(() => o || _l(h), [o, h]);
|
|
6562
6599
|
return {
|
|
6563
6600
|
apiKeyAccepted: b,
|
|
6564
6601
|
useDefaultTabData: g,
|
|
6565
6602
|
resolvedDashboardContentFetchers: C,
|
|
6566
6603
|
resolvedExportReports: N,
|
|
6567
|
-
resolvedCacheTtlMs: c ??
|
|
6604
|
+
resolvedCacheTtlMs: c ?? Di,
|
|
6568
6605
|
availableReportPages: v
|
|
6569
6606
|
};
|
|
6570
6607
|
}
|
|
6571
|
-
function
|
|
6608
|
+
function bs(e) {
|
|
6572
6609
|
const { logo: r } = e, { src: n, srcMobile: a, alt: o, width: i, height: s, widthMobile: c, heightMobile: d, placeholder: m } = r;
|
|
6573
6610
|
if (n && a)
|
|
6574
6611
|
return /* @__PURE__ */ l(ae, { children: [
|
|
@@ -6608,7 +6645,7 @@ function ds(e) {
|
|
|
6608
6645
|
);
|
|
6609
6646
|
if (m) return /* @__PURE__ */ t(mn, {});
|
|
6610
6647
|
}
|
|
6611
|
-
function
|
|
6648
|
+
function hs({
|
|
6612
6649
|
role: e,
|
|
6613
6650
|
patientLabel: r,
|
|
6614
6651
|
onChangeUser: n
|
|
@@ -6639,25 +6676,25 @@ function ms({
|
|
|
6639
6676
|
function Ne(e) {
|
|
6640
6677
|
return e === "practitioner" ? "practitioner" : e === "patient" ? "patient" : null;
|
|
6641
6678
|
}
|
|
6642
|
-
function
|
|
6643
|
-
const [r, n] =
|
|
6679
|
+
function fs(e) {
|
|
6680
|
+
const [r, n] = k(
|
|
6644
6681
|
() => Ne(e)
|
|
6645
|
-
), [a, o] =
|
|
6682
|
+
), [a, o] = k(null), [i, s] = k(""), [c, d] = k(null), [m, b] = k(""), g = j(() => {
|
|
6646
6683
|
if (r === "practitioner" && a != null)
|
|
6647
6684
|
return a;
|
|
6648
6685
|
if (r === "patient" && c != null)
|
|
6649
6686
|
return c;
|
|
6650
|
-
}, [r, a, c]), v = r === "practitioner" && a !== null || r === "patient" && c !== null, u =
|
|
6687
|
+
}, [r, a, c]), v = r === "practitioner" && a !== null || r === "patient" && c !== null, u = I(() => {
|
|
6651
6688
|
n(Ne(e)), o(null), s(""), d(null), b("");
|
|
6652
|
-
}, [e]), h =
|
|
6689
|
+
}, [e]), h = I(() => n("practitioner"), []), f = I(() => n("patient"), []), p = I(
|
|
6653
6690
|
() => n(Ne(e)),
|
|
6654
6691
|
[e]
|
|
6655
|
-
), y =
|
|
6692
|
+
), y = I(
|
|
6656
6693
|
() => n(Ne(e)),
|
|
6657
6694
|
[e]
|
|
6658
|
-
), C =
|
|
6695
|
+
), C = I((w, P) => {
|
|
6659
6696
|
o(w), s(P);
|
|
6660
|
-
}, []), N =
|
|
6697
|
+
}, []), N = I((w, P) => {
|
|
6661
6698
|
d(w), b(P);
|
|
6662
6699
|
}, []);
|
|
6663
6700
|
return {
|
|
@@ -6682,12 +6719,12 @@ function us(e) {
|
|
|
6682
6719
|
onSelectPatientReport: N
|
|
6683
6720
|
};
|
|
6684
6721
|
}
|
|
6685
|
-
function
|
|
6722
|
+
function gs({
|
|
6686
6723
|
activeNavItemIdProp: e,
|
|
6687
6724
|
defaultActiveNavItemId: r,
|
|
6688
6725
|
onActiveNavItemChange: n
|
|
6689
6726
|
}) {
|
|
6690
|
-
const [a, o] =
|
|
6727
|
+
const [a, o] = k(r), i = e !== void 0 ? e : a, s = I(
|
|
6691
6728
|
(c) => {
|
|
6692
6729
|
n == null || n(c), e === void 0 && o(c);
|
|
6693
6730
|
},
|
|
@@ -6695,21 +6732,21 @@ function bs({
|
|
|
6695
6732
|
);
|
|
6696
6733
|
return { activeItemId: i, handleNavItemClick: s };
|
|
6697
6734
|
}
|
|
6698
|
-
const
|
|
6735
|
+
const ps = "Your lab results will be available once the lab requisition has been completed and processed.", xs = /* @__PURE__ */ new Set([
|
|
6699
6736
|
"lab-results",
|
|
6700
6737
|
"lab-analysis",
|
|
6701
6738
|
"alert-lab-summary"
|
|
6702
6739
|
]);
|
|
6703
|
-
function
|
|
6704
|
-
if (!e) return
|
|
6740
|
+
function vs(e) {
|
|
6741
|
+
if (!e) return Te;
|
|
6705
6742
|
const r = new Set(e);
|
|
6706
|
-
return
|
|
6743
|
+
return Te.map((n) => !xs.has(n.id) || r.has(n.id) ? n : {
|
|
6707
6744
|
...n,
|
|
6708
6745
|
disabled: !0,
|
|
6709
|
-
disabledTooltip:
|
|
6746
|
+
disabledTooltip: ps
|
|
6710
6747
|
});
|
|
6711
6748
|
}
|
|
6712
|
-
function
|
|
6749
|
+
function ws({
|
|
6713
6750
|
config: e,
|
|
6714
6751
|
apiKey: r,
|
|
6715
6752
|
viewerRole: n,
|
|
@@ -6733,14 +6770,14 @@ function ps({
|
|
|
6733
6770
|
}) {
|
|
6734
6771
|
var se;
|
|
6735
6772
|
_r();
|
|
6736
|
-
const { resolvedBranding: w, rootStyle: P } =
|
|
6773
|
+
const { resolvedBranding: w, rootStyle: P } = as(e), A = fs(n), { activeItemId: S, handleNavItemClick: T } = gs({
|
|
6737
6774
|
activeNavItemIdProp: v,
|
|
6738
6775
|
defaultActiveNavItemId: u,
|
|
6739
6776
|
onActiveNavItemChange: h
|
|
6740
|
-
}),
|
|
6741
|
-
() => o !== void 0 ? o :
|
|
6777
|
+
}), R = ((se = Te.find((J) => J.id === S)) == null ? void 0 : se.label) ?? S, G = j(
|
|
6778
|
+
() => o !== void 0 ? o : bs(w),
|
|
6742
6779
|
[w, o]
|
|
6743
|
-
),
|
|
6780
|
+
), B = us({
|
|
6744
6781
|
config: e,
|
|
6745
6782
|
apiKey: r,
|
|
6746
6783
|
reportHttpConfig: c,
|
|
@@ -6751,47 +6788,47 @@ function ps({
|
|
|
6751
6788
|
dashboardTabContentCacheTtlMs: N,
|
|
6752
6789
|
simulationReportId: A.simulationReportId
|
|
6753
6790
|
}), q = j(
|
|
6754
|
-
() =>
|
|
6755
|
-
[
|
|
6791
|
+
() => vs(B.availableReportPages),
|
|
6792
|
+
[B.availableReportPages]
|
|
6756
6793
|
), $ = j(
|
|
6757
6794
|
() => new Set(q.filter((J) => J.disabled).map((J) => J.id)),
|
|
6758
6795
|
[q]
|
|
6759
6796
|
);
|
|
6760
6797
|
V(() => {
|
|
6761
|
-
$.has(S) &&
|
|
6762
|
-
}, [S, $,
|
|
6798
|
+
$.has(S) && T(Kt);
|
|
6799
|
+
}, [S, $, T]);
|
|
6763
6800
|
const ze = j(
|
|
6764
6801
|
() => [
|
|
6765
6802
|
"flex min-h-0 min-w-0 w-full max-w-full flex-1 flex-col items-stretch gap-4 py-4 px-[max(1rem,var(--mb-main-padding,1.5rem))] text-[color:var(--mb-color-text-muted)] sm:px-[max(1.25rem,var(--mb-main-padding,1.5rem))]",
|
|
6766
6803
|
y
|
|
6767
6804
|
].filter(Boolean).join(" "),
|
|
6768
6805
|
[y]
|
|
6769
|
-
), ie =
|
|
6770
|
-
|
|
6806
|
+
), ie = B.useDefaultTabData && B.apiKeyAccepted, ge = /* @__PURE__ */ t(
|
|
6807
|
+
Qi,
|
|
6771
6808
|
{
|
|
6772
6809
|
renderMainContent: g,
|
|
6773
6810
|
content: s,
|
|
6774
6811
|
activeItemId: S,
|
|
6775
|
-
activeLabel:
|
|
6776
|
-
resolvedDashboardContentFetchers:
|
|
6812
|
+
activeLabel: R,
|
|
6813
|
+
resolvedDashboardContentFetchers: B.resolvedDashboardContentFetchers,
|
|
6777
6814
|
onDashboardTabContentLoadError: m,
|
|
6778
6815
|
sideMenuUserProfile: i,
|
|
6779
|
-
apiKeyAccepted:
|
|
6780
|
-
useDefaultTabData:
|
|
6816
|
+
apiKeyAccepted: B.apiKeyAccepted,
|
|
6817
|
+
useDefaultTabData: B.useDefaultTabData
|
|
6781
6818
|
}
|
|
6782
6819
|
), pe = /* @__PURE__ */ t(
|
|
6783
|
-
|
|
6820
|
+
hs,
|
|
6784
6821
|
{
|
|
6785
6822
|
role: A.simRole,
|
|
6786
6823
|
patientLabel: A.simRole === "patient" ? A.simPatientReportLabel : A.simPractitionerPatientLabel,
|
|
6787
6824
|
onChangeUser: A.resetSimulationSession
|
|
6788
6825
|
}
|
|
6789
6826
|
), xe = /* @__PURE__ */ t(
|
|
6790
|
-
|
|
6827
|
+
qi,
|
|
6791
6828
|
{
|
|
6792
6829
|
wrapTabContentCache: ie,
|
|
6793
|
-
fetchers:
|
|
6794
|
-
cacheTtlMs:
|
|
6830
|
+
fetchers: B.resolvedDashboardContentFetchers,
|
|
6831
|
+
cacheTtlMs: B.resolvedCacheTtlMs,
|
|
6795
6832
|
viewProps: {
|
|
6796
6833
|
rootStyle: P,
|
|
6797
6834
|
enableTabContentCache: ie,
|
|
@@ -6802,7 +6839,7 @@ function ps({
|
|
|
6802
6839
|
sideMenuClassName: p,
|
|
6803
6840
|
sideMenuItems: q,
|
|
6804
6841
|
activeItemId: S,
|
|
6805
|
-
handleNavItemClick:
|
|
6842
|
+
handleNavItemClick: T,
|
|
6806
6843
|
shellClassName: f,
|
|
6807
6844
|
sidebarWidthClassName: C,
|
|
6808
6845
|
mainAreaClassName: ze,
|
|
@@ -6811,13 +6848,13 @@ function ps({
|
|
|
6811
6848
|
}
|
|
6812
6849
|
), ve = j(
|
|
6813
6850
|
() => ({
|
|
6814
|
-
onExportReports:
|
|
6815
|
-
onNavigateToNavItem:
|
|
6851
|
+
onExportReports: B.resolvedExportReports,
|
|
6852
|
+
onNavigateToNavItem: T
|
|
6816
6853
|
}),
|
|
6817
|
-
[
|
|
6854
|
+
[B.resolvedExportReports, T]
|
|
6818
6855
|
);
|
|
6819
|
-
return /* @__PURE__ */ t(
|
|
6820
|
-
|
|
6856
|
+
return /* @__PURE__ */ t(qa, { value: ve, children: /* @__PURE__ */ t(
|
|
6857
|
+
ns,
|
|
6821
6858
|
{
|
|
6822
6859
|
rootStyle: P,
|
|
6823
6860
|
simulationSessionReady: A.simulationSessionReady,
|
|
@@ -6830,21 +6867,21 @@ function ps({
|
|
|
6830
6867
|
}
|
|
6831
6868
|
) });
|
|
6832
6869
|
}
|
|
6833
|
-
function
|
|
6870
|
+
function ys({
|
|
6834
6871
|
allowedPostMessageOrigins: e,
|
|
6835
6872
|
validatePostMessageConfig: r
|
|
6836
6873
|
} = {}) {
|
|
6837
|
-
const [n, a] =
|
|
6874
|
+
const [n, a] = k(() => {
|
|
6838
6875
|
if (!(typeof window > "u"))
|
|
6839
|
-
return
|
|
6876
|
+
return al(new URLSearchParams(window.location.search));
|
|
6840
6877
|
}), o = j(
|
|
6841
|
-
() =>
|
|
6878
|
+
() => il(
|
|
6842
6879
|
new URLSearchParams(typeof window < "u" ? window.location.search : "")
|
|
6843
6880
|
),
|
|
6844
6881
|
[]
|
|
6845
6882
|
), i = j(() => {
|
|
6846
6883
|
if (o.patientId)
|
|
6847
|
-
return
|
|
6884
|
+
return Ul({
|
|
6848
6885
|
reportId: o.patientId,
|
|
6849
6886
|
apiKey: n == null ? void 0 : n.apiKey
|
|
6850
6887
|
});
|
|
@@ -6852,14 +6889,14 @@ function xs({
|
|
|
6852
6889
|
return V(() => {
|
|
6853
6890
|
const s = (c) => {
|
|
6854
6891
|
const d = c.data;
|
|
6855
|
-
if (!d || typeof d != "object" || d.type !== Cr || e !== void 0 && !
|
|
6892
|
+
if (!d || typeof d != "object" || d.type !== Cr || e !== void 0 && !sl(c.origin, e) || r && !r(c))
|
|
6856
6893
|
return;
|
|
6857
6894
|
const m = d.config;
|
|
6858
6895
|
m && typeof m == "object" && a(m);
|
|
6859
6896
|
};
|
|
6860
6897
|
return window.addEventListener("message", s), () => window.removeEventListener("message", s);
|
|
6861
6898
|
}, [e, r]), /* @__PURE__ */ t(
|
|
6862
|
-
|
|
6899
|
+
ws,
|
|
6863
6900
|
{
|
|
6864
6901
|
apiKey: yr,
|
|
6865
6902
|
config: n,
|
|
@@ -6868,13 +6905,13 @@ function xs({
|
|
|
6868
6905
|
}
|
|
6869
6906
|
);
|
|
6870
6907
|
}
|
|
6871
|
-
function
|
|
6908
|
+
function $s(e = "root", r) {
|
|
6872
6909
|
const n = document.getElementById(e);
|
|
6873
6910
|
if (!n)
|
|
6874
6911
|
throw new Error("Root element not found");
|
|
6875
6912
|
ln(n).render(
|
|
6876
6913
|
/* @__PURE__ */ t(an, { children: /* @__PURE__ */ t("div", { className: "flex h-full min-h-0 w-full flex-col", children: /* @__PURE__ */ t(
|
|
6877
|
-
|
|
6914
|
+
ys,
|
|
6878
6915
|
{
|
|
6879
6916
|
allowedPostMessageOrigins: r == null ? void 0 : r.allowedPostMessageOrigins,
|
|
6880
6917
|
validatePostMessageConfig: r == null ? void 0 : r.validatePostMessageConfig
|
|
@@ -6883,106 +6920,106 @@ function qs(e = "root", r) {
|
|
|
6883
6920
|
);
|
|
6884
6921
|
}
|
|
6885
6922
|
export {
|
|
6886
|
-
|
|
6923
|
+
Ms as AlertLabSummaryCard,
|
|
6887
6924
|
bt as AlertLabSummaryIcon,
|
|
6888
|
-
|
|
6889
|
-
|
|
6925
|
+
Rs as AlertLabSummaryTab,
|
|
6926
|
+
Ka as AlertLabSummaryTabSkeleton,
|
|
6890
6927
|
_ as Badge,
|
|
6891
6928
|
M as Button,
|
|
6892
|
-
|
|
6929
|
+
Ii as DASHBOARD_TAB_NAV_IDS,
|
|
6893
6930
|
De as DASHBOARD_TAB_PLUGINS,
|
|
6894
|
-
|
|
6895
|
-
|
|
6896
|
-
|
|
6931
|
+
Di as DEFAULT_DASHBOARD_TAB_CONTENT_CACHE_TTL_MS,
|
|
6932
|
+
H as DEFAULT_METABOLIC_BRANDING,
|
|
6933
|
+
L as DashboardCard,
|
|
6897
6934
|
it as DashboardCardSectionHeader,
|
|
6898
|
-
|
|
6899
|
-
|
|
6900
|
-
|
|
6901
|
-
|
|
6935
|
+
cl as DashboardIcon,
|
|
6936
|
+
zs as DashboardTab,
|
|
6937
|
+
Ri as DashboardTabContentCacheProvider,
|
|
6938
|
+
co as DashboardTabSkeleton,
|
|
6902
6939
|
or as GradientRangeBar,
|
|
6903
6940
|
he as LAB_METRIC_RANGE_BAR_SEGMENTS,
|
|
6904
|
-
|
|
6905
|
-
|
|
6906
|
-
|
|
6941
|
+
dl as LabAnalysisIcon,
|
|
6942
|
+
Os as LabAnalysisTab,
|
|
6943
|
+
mo as LabAnalysisTabSkeleton,
|
|
6907
6944
|
ua as LabAnalysisTriadCard,
|
|
6908
|
-
|
|
6909
|
-
|
|
6945
|
+
ks as LabMetricRangeCard,
|
|
6946
|
+
ml as LabResultsIcon,
|
|
6910
6947
|
hr as LabResultsIntroCard,
|
|
6911
|
-
|
|
6912
|
-
|
|
6948
|
+
Es as LabResultsTab,
|
|
6949
|
+
wo as LabResultsTabSkeleton,
|
|
6913
6950
|
mn as LogoPlaceholder,
|
|
6914
|
-
|
|
6951
|
+
Ks as LogoutIcon,
|
|
6915
6952
|
yr as METABOLIC_DASHBOARD_STUB_API_KEY,
|
|
6916
6953
|
Nr as METABOLIC_IFRAME_CONFIG_QUERY_KEY,
|
|
6917
6954
|
Cr as METABOLIC_IFRAME_SET_CONFIG_MESSAGE,
|
|
6918
|
-
|
|
6919
|
-
|
|
6920
|
-
|
|
6921
|
-
|
|
6955
|
+
Lo as METABOLIC_REPORT_PAGES_API_BASE_URL,
|
|
6956
|
+
ws as MetabolicDashboard,
|
|
6957
|
+
Ui as MetabolicDashboardDefaultMain,
|
|
6958
|
+
ys as MetabolicEmbedRoot,
|
|
6922
6959
|
Rn as MetabolicScoreBar,
|
|
6923
6960
|
ne as MetabolicTriadCategoryPanel,
|
|
6924
6961
|
Be as MetabolicTriadCategoryPanelSkeleton,
|
|
6925
|
-
|
|
6962
|
+
Hs as MetabolicTriadIntroCard,
|
|
6926
6963
|
gr as MetabolicTriadSectionCard,
|
|
6927
6964
|
lr as MetaflammationGauge,
|
|
6928
6965
|
wa as MetaflammationGaugeCard,
|
|
6929
6966
|
Pn as OVERALL_SCORE_GRADIENT_STOPS,
|
|
6930
6967
|
Sn as OVERALL_SCORE_LABELS,
|
|
6931
|
-
|
|
6932
|
-
|
|
6933
|
-
|
|
6968
|
+
zo as OrganDetailPage,
|
|
6969
|
+
Ta as OverallMetabolicScoreCard,
|
|
6970
|
+
D as PageHeader,
|
|
6934
6971
|
Yn as PractitionerNoteRow,
|
|
6935
6972
|
Pa as PractitionerNotesCard,
|
|
6936
|
-
|
|
6937
|
-
|
|
6938
|
-
|
|
6939
|
-
|
|
6940
|
-
|
|
6973
|
+
ul as PredictiveIndexIcon,
|
|
6974
|
+
js as ProfileSummaryCard,
|
|
6975
|
+
Fs as QuestionnaireAnalysisTab,
|
|
6976
|
+
Eo as QuestionnaireAnalysisTabSkeleton,
|
|
6977
|
+
bl as QuestionnaireIcon,
|
|
6941
6978
|
oe as SegmentedRangeBar,
|
|
6942
|
-
|
|
6943
|
-
|
|
6944
|
-
|
|
6945
|
-
|
|
6979
|
+
xl as ShellLayout,
|
|
6980
|
+
Xl as SideMenu,
|
|
6981
|
+
qs as SideMenuFooter,
|
|
6982
|
+
Yl as SideMenuNavButton,
|
|
6946
6983
|
jt as SkeletonCircle,
|
|
6947
6984
|
x as SkeletonRect,
|
|
6948
|
-
|
|
6949
|
-
|
|
6950
|
-
|
|
6985
|
+
hl as SuggestedProductsIcon,
|
|
6986
|
+
Gs as SuggestedProductsTab,
|
|
6987
|
+
Xo as SuggestedProductsTabSkeleton,
|
|
6951
6988
|
Sa as SupplementScheduleCard,
|
|
6952
|
-
|
|
6953
|
-
|
|
6954
|
-
|
|
6989
|
+
fl as SupplementScheduleIcon,
|
|
6990
|
+
Ys as SupplementScheduleTab,
|
|
6991
|
+
Vo as SupplementScheduleTabSkeleton,
|
|
6955
6992
|
qn as SupplementScheduleTableRow,
|
|
6956
6993
|
$n as SupplementTriadMarkGroup,
|
|
6957
6994
|
Y as TRIAD_RESILIENCY_TREND_SEGMENTS,
|
|
6958
6995
|
K as TabSkeletonRoot,
|
|
6959
6996
|
Z as Tooltip,
|
|
6960
|
-
|
|
6961
|
-
|
|
6997
|
+
Xs as TotalPredictiveIndexTab,
|
|
6998
|
+
Uo as TotalPredictiveIndexTabSkeleton,
|
|
6962
6999
|
ee as TriadMarkIcon,
|
|
6963
7000
|
ra as TriadRadar,
|
|
6964
|
-
|
|
6965
|
-
|
|
6966
|
-
|
|
6967
|
-
|
|
6968
|
-
|
|
6969
|
-
|
|
7001
|
+
Bs as TriadRadarReportCard,
|
|
7002
|
+
Is as WelcomeMessageCard,
|
|
7003
|
+
Ds as WellnessIndicatorCard,
|
|
7004
|
+
gl as WellnessIndicatorsIcon,
|
|
7005
|
+
Vs as WellnessIndicatorsTab,
|
|
7006
|
+
$o as WellnessIndicatorsTabSkeleton,
|
|
6970
7007
|
Kn as activeSegmentHighlightColor,
|
|
6971
|
-
|
|
6972
|
-
|
|
6973
|
-
|
|
6974
|
-
|
|
6975
|
-
|
|
6976
|
-
|
|
6977
|
-
|
|
6978
|
-
|
|
7008
|
+
ei as buildReportExistsUrl,
|
|
7009
|
+
wl as buildReportPageUrl,
|
|
7010
|
+
Js as checkMetabolicReportExists,
|
|
7011
|
+
Ul as createHttpDashboardContentFetchers,
|
|
7012
|
+
_l as createReportPdfDownloader,
|
|
7013
|
+
nl as decodeMetabolicIframeConfig,
|
|
7014
|
+
Us as emitMetabolicDashboardLogout,
|
|
7015
|
+
rl as encodeMetabolicIframeConfig,
|
|
6979
7016
|
_r as ensureAgChartsModules,
|
|
6980
7017
|
U as fetchReportPage,
|
|
6981
7018
|
fe as getBuiltInReportPagesApiBaseUrl,
|
|
6982
|
-
|
|
7019
|
+
Fl as getDashboardTabStaticPageHeader,
|
|
6983
7020
|
gt as isDashboardNavItemId,
|
|
6984
|
-
|
|
6985
|
-
|
|
7021
|
+
To as isMetabolicDashboardApiKeyAccepted,
|
|
7022
|
+
sl as isMetabolicEmbedPostMessageOriginAllowed,
|
|
6986
7023
|
Rr as mapAlertLabSummaryDtoToTabContent,
|
|
6987
7024
|
zr as mapDashboardPageDtoToTabContent,
|
|
6988
7025
|
Or as mapLabAnalysisDtoToTabContent,
|
|
@@ -6992,17 +7029,17 @@ export {
|
|
|
6992
7029
|
Yr as mapSupplementScheduleDtoToTabContent,
|
|
6993
7030
|
Xr as mapTotalPredictiveIndexDtoToTabContent,
|
|
6994
7031
|
Vr as mapWellnessIndicatorsDtoToTabContent,
|
|
6995
|
-
|
|
7032
|
+
Bi as mergeDashboardContentFetchers,
|
|
6996
7033
|
_t as metabolicBrandingToStyle,
|
|
6997
|
-
|
|
6998
|
-
|
|
6999
|
-
|
|
7000
|
-
|
|
7001
|
-
|
|
7002
|
-
|
|
7034
|
+
Ws as metabolicIframeSrcAppendStealthParams,
|
|
7035
|
+
Zs as metabolicIframeSrcWithConfig,
|
|
7036
|
+
$s as mountMetabolicEmbed,
|
|
7037
|
+
Qs as postMetabolicIframeConfig,
|
|
7038
|
+
il as readMetabolicEmbedStealthParams,
|
|
7039
|
+
al as readMetabolicIframeConfigFromSearchParams,
|
|
7003
7040
|
bn as resolveMetabolicBranding,
|
|
7004
7041
|
W as sideMenuItemIconClass,
|
|
7005
7042
|
Me as useAgCharts,
|
|
7006
|
-
|
|
7007
|
-
|
|
7043
|
+
Ei as useDashboardTabContent,
|
|
7044
|
+
_s as useInvalidateDashboardTabContentCache
|
|
7008
7045
|
};
|