@alfadocs/ui-kit 0.37.0 → 0.39.0
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/_chunks/Alfadocs_Logo_Mark-7o3L3WBI.js +56 -0
- package/dist/_chunks/{accordion-bSU21uTV.js → accordion-9lJSMMsZ.js} +6 -6
- package/dist/_chunks/{agenda-tray-By_asPN9.js → agenda-tray-Dyj9ChHC.js} +22 -21
- package/dist/_chunks/{alia-sidebar-BEoMl6UL.js → alia-sidebar-DXsYPinm.js} +2 -2
- package/dist/_chunks/{ar-D1RwVZFj.js → ar-Cn_NxqkN.js} +2 -2
- package/dist/_chunks/bmi-BxD-tFzU.js +32 -0
- package/dist/_chunks/bmi-calculator-DnEr513I.js +213 -0
- package/dist/_chunks/{booking-DqXsd1Mv.js → booking-4mCw3Mpl.js} +5 -5
- package/dist/_chunks/calculator-dialog-B74fqpFZ.js +40 -0
- package/dist/_chunks/{chart-DnHvmiDX.js → chart-Cbt0_sKv.js} +46 -37
- package/dist/_chunks/{chat-message-D53_fH2w.js → chat-message-ASgGtj-L.js} +30 -39
- package/dist/_chunks/{collapsible-CERONory.js → collapsible-X3oaLPU3.js} +5 -5
- package/dist/_chunks/{contact-profile-card-BA6fgS45.js → contact-profile-card-DHyuAPXM.js} +14 -13
- package/dist/_chunks/cycle-calculator-B5Uj9QeT.js +185 -0
- package/dist/_chunks/{date-picker-CXFpu-qY.js → date-picker-CvQfs6Xh.js} +2 -2
- package/dist/_chunks/{date-range-picker-I-q5rifj.js → date-range-picker-U9fn1g9d.js} +3 -3
- package/dist/_chunks/{date-time-picker-CqpGPlcH.js → date-time-picker-Cva0ZCWw.js} +2 -2
- package/dist/_chunks/{de-HTQ4b4-J.js → de-BMM2H7Bs.js} +2 -2
- package/dist/_chunks/dependent-selector-CRWgieHm.js +324 -0
- package/dist/_chunks/document-scanner-CqS_klIr.js +703 -0
- package/dist/_chunks/due-date-calculator-CUspKSTw.js +171 -0
- package/dist/_chunks/{editable-currency-cell-renderer-DnjwZNZP.js → editable-currency-cell-renderer-DgkCIIcO.js} +3 -3
- package/dist/_chunks/{el-Dr1pjuDq.js → el-BYPonAaK.js} +2 -2
- package/dist/_chunks/{es-CvyTjLS0.js → es-CMkVCQ4F.js} +2 -2
- package/dist/_chunks/{file-upload-CdozCPct.js → file-upload-BosbPDb1.js} +3 -2
- package/dist/_chunks/fiscal-code-input-BZ0FxwUl.js +540 -0
- package/dist/_chunks/{fr-CS7aqaFR.js → fr-BcuWxqft.js} +2 -2
- package/dist/_chunks/{freemium-paywall-D1N02Oam.js → freemium-paywall-BAk3a6er.js} +7 -7
- package/dist/_chunks/gestation-BXEgDGmP.js +50 -0
- package/dist/_chunks/gestational-age-calculator-CsQ05qDy.js +165 -0
- package/dist/_chunks/header-settings-CBLwUK6t.js +244 -0
- package/dist/_chunks/heart-C0faivFf.js +20 -0
- package/dist/_chunks/{hi-3uy8KpsH.js → hi-wkq_rQAh.js} +2 -2
- package/dist/_chunks/image-C6RM5hfF.js +16 -0
- package/dist/_chunks/insert-result-yJ0QavoN.js +133 -0
- package/dist/_chunks/{isSameWeek-DRpMibi9.js → isSameWeek-Bim5ftRd.js} +2 -2
- package/dist/_chunks/{it-B_RF5VSw.js → it-GiQrQ9p4.js} +3 -3
- package/dist/_chunks/{ja-C1mEYy35.js → ja-qfYg3Rua.js} +2 -2
- package/dist/_chunks/{logo-_Z-jLq80.js → logo-yituK7sE.js} +42 -91
- package/dist/_chunks/{map-view-vD5pvWs9.js → map-view-qJLybrmN.js} +2 -2
- package/dist/_chunks/marketplace-app-shell-BlxVizU4.js +296 -0
- package/dist/_chunks/{message-card-BbRhZkDI.js → message-card-DSPw5ghw.js} +20 -19
- package/dist/_chunks/{message-tray-B762TKuv.js → message-tray-hSQff9u4.js} +3 -3
- package/dist/_chunks/{nl-Dl7lO2t3.js → nl-xOogO4sZ.js} +2 -2
- package/dist/_chunks/{notification-card-DMdO4g54.js → notification-card-CObnGdJu.js} +22 -21
- package/dist/_chunks/{notification-tray-Dl3FTleW.js → notification-tray-BWHDIjgd.js} +2 -2
- package/dist/_chunks/{otp-input-CDTWT5EK.js → otp-input-CMphfBxZ.js} +70 -71
- package/dist/_chunks/{patient-shell-CDvMw_Nk.js → patient-shell-DF81lALv.js} +37 -36
- package/dist/_chunks/{payment-form-D5rgnZu7.js → payment-form-Dy3WIIsC.js} +18 -18
- package/dist/_chunks/{pdf-viewer-DvtEHcEP.js → pdf-viewer-Cy6Ul3hZ.js} +2 -2
- package/dist/_chunks/{pl-Dgsogljx.js → pl-GnOW6eGK.js} +3 -3
- package/dist/_chunks/{practice-results-BFM_lyUs.js → practice-results-C0d4IL5E.js} +4 -3
- package/dist/_chunks/pregnancy-weight-gain-BCdi-JSv.js +209 -0
- package/dist/_chunks/{privacy-lock-DD-wHxBg.js → privacy-lock-BmX_gkvt.js} +2 -2
- package/dist/_chunks/{pt-Dm2JF4bc.js → pt-_bV5b5RW.js} +2 -2
- package/dist/_chunks/{public-footer.agent-Cjfe5jus.js → public-footer.agent-okt8ZRc5.js} +3 -3
- package/dist/_chunks/qr-code-DNXhi6se.js +568 -0
- package/dist/_chunks/{react-day-picker-DYDdR8Vv.js → react-day-picker-CdtIiKjx.js} +24 -24
- package/dist/_chunks/{reviews-panel-Dow8Dzoa.js → reviews-panel-CPrXu5TX.js} +2 -2
- package/dist/_chunks/{rich-text-editor-CHmr9Bz8.js → rich-text-editor-DLbg2852.js} +114 -124
- package/dist/_chunks/{ro-BXFZ_xIX.js → ro-BEcyh5Nj.js} +2 -2
- package/dist/_chunks/rotate-ccw-BWANpitO.js +15 -0
- package/dist/_chunks/{ru-BPQkNRRV.js → ru-Bi86hqMf.js} +3 -3
- package/dist/_chunks/session-countdown-LPnhTHjn.js +214 -0
- package/dist/_chunks/{shield-check-BhHyReu8.js → shield-check-C73ma9Cs.js} +8 -24
- package/dist/_chunks/{sidebar-BbR8f6oe.js → sidebar-_vJXI9rB.js} +2 -2
- package/dist/_chunks/sign-document-DId1p-nn.js +315 -0
- package/dist/_chunks/{sign-in-with-alfadocs-button-BI0fVonM.js → sign-in-with-alfadocs-button-DeHBFRNS.js} +2 -2
- package/dist/_chunks/{signature-capture-C-fF71xI.js → signature-capture-BRzCklg4.js} +27 -24
- package/dist/_chunks/social-sign-in-button-X54ySJr1.js +243 -0
- package/dist/_chunks/{sparkline-DEROcSl0.js → sparkline-DGhCSw8M.js} +55 -46
- package/dist/_chunks/{sq-ChTlGFcJ.js → sq-BujHSAWu.js} +2 -2
- package/dist/_chunks/{stepper-accordion-BfS6lUB9.js → stepper-accordion-Dki6r9ZE.js} +2 -2
- package/dist/_chunks/subDays-_T9YeKPX.js +8 -0
- package/dist/_chunks/{sv-Do_gs6ir.js → sv-C8AeDrTA.js} +2 -2
- package/dist/_chunks/{tag-CyoaEmf_.js → tag-CdA0s_VV.js} +16 -16
- package/dist/_chunks/{task-card-BUVMh6HN.js → task-card-CPyQ5AXC.js} +6 -5
- package/dist/_chunks/{task-tray-DRK0b0Qb.js → task-tray-B8jFv5FV.js} +36 -35
- package/dist/_chunks/{tr-da_UnkYH.js → tr-CMSs_Vgf.js} +2 -2
- package/dist/_chunks/{transcript-panel-DyhTpAP7.js → transcript-panel-CR7VY1uw.js} +8 -7
- package/dist/_chunks/unit-converter-EUwO6QYq.js +168 -0
- package/dist/_chunks/wallet-pay-button-DK4ESYge.js +250 -0
- package/dist/_chunks/{warning-stack-bDicCvxs.js → warning-stack-DNR3-IbP.js} +17 -16
- package/dist/_chunks/{workflow-map-uSiHbOWQ.js → workflow-map-C3gB0FvB.js} +3 -2
- package/dist/_chunks/{zh-CN-C9qi5oak.js → zh-CN-eXB-PFu4.js} +3 -3
- package/dist/agent-catalog.json +241 -1
- package/dist/brand/provider-marks/apple-pay.d.ts +12 -0
- package/dist/brand/provider-marks/apple.d.ts +12 -0
- package/dist/brand/provider-marks/google-pay.d.ts +12 -0
- package/dist/brand/provider-marks/google.d.ts +13 -0
- package/dist/components/_shared/insert-result.d.ts +47 -0
- package/dist/components/accordion/index.js +1 -1
- package/dist/components/agenda-tray/index.js +1 -1
- package/dist/components/bmi-calculator/bmi-calculator.d.ts +3 -0
- package/dist/components/bmi-calculator/index.js +6 -5
- package/dist/components/booking/index.js +1 -1
- package/dist/components/calculator-dialog/calculator-dialog.d.ts +26 -0
- package/dist/components/calculator-dialog/index.d.ts +3 -0
- package/dist/components/calculator-dialog/index.js +5 -0
- package/dist/components/chart/chart.d.ts +1 -1
- package/dist/components/chart/index.js +1 -1
- package/dist/components/chat-message/index.js +1 -1
- package/dist/components/collapsible/index.js +1 -1
- package/dist/components/contact-profile-card/index.js +1 -1
- package/dist/components/cycle-calculator/cycle-calculator.d.ts +21 -0
- package/dist/components/cycle-calculator/cycle.d.ts +37 -0
- package/dist/components/cycle-calculator/index.d.ts +4 -0
- package/dist/components/cycle-calculator/index.js +7 -0
- package/dist/components/data-table/index.js +1 -1
- package/dist/components/date-picker/index.js +1 -1
- package/dist/components/date-range-picker/index.js +1 -1
- package/dist/components/date-time-picker/index.js +1 -1
- package/dist/components/dependent-selector/dependent-selector.agent.d.ts +4 -0
- package/dist/components/dependent-selector/dependent-selector.d.ts +72 -0
- package/dist/components/dependent-selector/index.d.ts +4 -0
- package/dist/components/dependent-selector/index.js +6 -0
- package/dist/components/document-scanner/document-scanner.agent.d.ts +4 -0
- package/dist/components/document-scanner/document-scanner.d.ts +93 -0
- package/dist/components/document-scanner/index.d.ts +4 -0
- package/dist/components/document-scanner/index.js +6 -0
- package/dist/components/due-date-calculator/due-date-calculator.d.ts +3 -0
- package/dist/components/due-date-calculator/gestation.d.ts +16 -0
- package/dist/components/due-date-calculator/index.d.ts +1 -1
- package/dist/components/due-date-calculator/index.js +10 -7
- package/dist/components/file-upload/index.js +1 -1
- package/dist/components/fiscal-code-input/calculate-codice-fiscale.d.ts +24 -0
- package/dist/components/fiscal-code-input/fiscal-code-input.agent.d.ts +4 -0
- package/dist/components/fiscal-code-input/fiscal-code-input.d.ts +61 -0
- package/dist/components/fiscal-code-input/index.d.ts +6 -0
- package/dist/components/fiscal-code-input/index.js +11 -0
- package/dist/components/fiscal-code-input/is-valid-codice-fiscale.d.ts +21 -0
- package/dist/components/freemium-paywall/index.js +1 -1
- package/dist/components/gestational-age-calculator/gestational-age-calculator.d.ts +27 -0
- package/dist/components/gestational-age-calculator/index.d.ts +3 -0
- package/dist/components/gestational-age-calculator/index.js +5 -0
- package/dist/components/header-settings/header-settings.agent.d.ts +4 -0
- package/dist/components/header-settings/header-settings.d.ts +36 -0
- package/dist/components/header-settings/index.d.ts +2 -0
- package/dist/components/header-settings/index.js +2 -241
- package/dist/components/index.d.ts +14 -0
- package/dist/components/locale-picker/locale-picker.agent.d.ts +4 -0
- package/dist/components/locale-picker/locale-picker.d.ts +80 -0
- package/dist/components/logo/index.js +1 -1
- package/dist/components/map-view/index.js +1 -1
- package/dist/components/message-card/index.js +1 -1
- package/dist/components/message-tray/index.js +1 -1
- package/dist/components/notification-card/index.js +1 -1
- package/dist/components/notification-tray/index.js +1 -1
- package/dist/components/otp-input/index.d.ts +1 -1
- package/dist/components/otp-input/index.js +1 -1
- package/dist/components/otp-input/otp-input.d.ts +1 -1
- package/dist/components/payment-form/index.js +1 -1
- package/dist/components/pdf-viewer/index.js +1 -1
- package/dist/components/practice-results/index.js +1 -1
- package/dist/components/pregnancy-weight-gain/index.d.ts +4 -0
- package/dist/components/pregnancy-weight-gain/index.js +9 -0
- package/dist/components/pregnancy-weight-gain/pregnancy-weight-gain.d.ts +19 -0
- package/dist/components/pregnancy-weight-gain/weight-gain.d.ts +41 -0
- package/dist/components/privacy-lock/index.js +1 -1
- package/dist/components/public-footer/index.js +1 -1
- package/dist/components/qr-code/index.d.ts +5 -0
- package/dist/components/qr-code/index.js +8 -0
- package/dist/components/qr-code/qr-code.agent.d.ts +3 -0
- package/dist/components/qr-code/qr-code.d.ts +59 -0
- package/dist/components/qr-code/qr-encode.d.ts +46 -0
- package/dist/components/reviews-panel/index.js +1 -1
- package/dist/components/rich-text-editor/index.js +1 -1
- package/dist/components/session-countdown/index.d.ts +4 -0
- package/dist/components/session-countdown/index.js +6 -0
- package/dist/components/session-countdown/session-countdown.agent.d.ts +3 -0
- package/dist/components/session-countdown/session-countdown.d.ts +38 -0
- package/dist/components/sidebar/index.js +1 -1
- package/dist/components/sign-document/index.d.ts +4 -0
- package/dist/components/sign-document/index.js +6 -0
- package/dist/components/sign-document/sign-document.agent.d.ts +4 -0
- package/dist/components/sign-document/sign-document.d.ts +47 -0
- package/dist/components/sign-in-with-alfadocs-button/index.js +1 -1
- package/dist/components/signature-capture/index.js +1 -1
- package/dist/components/social-sign-in-button/index.d.ts +3 -0
- package/dist/components/social-sign-in-button/index.js +5 -0
- package/dist/components/social-sign-in-button/social-sign-in-button.d.ts +56 -0
- package/dist/components/sparkline/index.js +1 -1
- package/dist/components/sparkline/sparkline.d.ts +1 -1
- package/dist/components/stepper-accordion/index.js +1 -1
- package/dist/components/tag/index.js +1 -1
- package/dist/components/task-card/index.js +1 -1
- package/dist/components/task-tray/index.js +1 -1
- package/dist/components/transcript-panel/index.js +1 -1
- package/dist/components/unit-converter/index.d.ts +4 -0
- package/dist/components/unit-converter/index.js +9 -0
- package/dist/components/unit-converter/unit-converter.d.ts +21 -0
- package/dist/components/unit-converter/units.d.ts +18 -0
- package/dist/components/wallet-pay-button/index.d.ts +3 -0
- package/dist/components/wallet-pay-button/index.js +5 -0
- package/dist/components/wallet-pay-button/wallet-pay-button.d.ts +63 -0
- package/dist/components/warning-stack/index.js +1 -1
- package/dist/components/workflow/index.js +1 -1
- package/dist/i18n/locale-meta.d.ts +56 -0
- package/dist/i18n/locales/ar.d.ts +274 -0
- package/dist/i18n/locales/ar.js +271 -0
- package/dist/i18n/locales/de.d.ts +274 -0
- package/dist/i18n/locales/de.js +271 -0
- package/dist/i18n/locales/el.d.ts +274 -0
- package/dist/i18n/locales/el.js +271 -0
- package/dist/i18n/locales/en.d.ts +274 -0
- package/dist/i18n/locales/en.js +274 -0
- package/dist/i18n/locales/es.d.ts +274 -0
- package/dist/i18n/locales/es.js +271 -0
- package/dist/i18n/locales/fr.d.ts +274 -0
- package/dist/i18n/locales/fr.js +271 -0
- package/dist/i18n/locales/hi.d.ts +274 -0
- package/dist/i18n/locales/hi.js +271 -0
- package/dist/i18n/locales/it.d.ts +274 -0
- package/dist/i18n/locales/it.js +271 -0
- package/dist/i18n/locales/ja.d.ts +274 -0
- package/dist/i18n/locales/ja.js +267 -0
- package/dist/i18n/locales/nl.d.ts +274 -0
- package/dist/i18n/locales/nl.js +271 -0
- package/dist/i18n/locales/pl.d.ts +274 -0
- package/dist/i18n/locales/pl.js +271 -0
- package/dist/i18n/locales/pt.d.ts +274 -0
- package/dist/i18n/locales/pt.js +274 -0
- package/dist/i18n/locales/ro.d.ts +274 -0
- package/dist/i18n/locales/ro.js +271 -0
- package/dist/i18n/locales/ru.d.ts +274 -0
- package/dist/i18n/locales/ru.js +271 -0
- package/dist/i18n/locales/sq.d.ts +274 -0
- package/dist/i18n/locales/sq.js +271 -0
- package/dist/i18n/locales/sv.d.ts +274 -0
- package/dist/i18n/locales/sv.js +271 -0
- package/dist/i18n/locales/tr.d.ts +274 -0
- package/dist/i18n/locales/tr.js +271 -0
- package/dist/i18n/locales/zh.d.ts +274 -0
- package/dist/i18n/locales/zh.js +267 -0
- package/dist/index.js +590 -535
- package/dist/locales/ar.json +274 -0
- package/dist/locales/de.json +274 -0
- package/dist/locales/el.json +274 -0
- package/dist/locales/en.json +274 -0
- package/dist/locales/es.json +274 -0
- package/dist/locales/fr.json +274 -0
- package/dist/locales/hi.json +274 -0
- package/dist/locales/it.json +274 -0
- package/dist/locales/ja.json +274 -0
- package/dist/locales/nl.json +274 -0
- package/dist/locales/pl.json +274 -0
- package/dist/locales/pt.json +274 -0
- package/dist/locales/ro.json +274 -0
- package/dist/locales/ru.json +274 -0
- package/dist/locales/sq.json +274 -0
- package/dist/locales/sv.json +274 -0
- package/dist/locales/tr.json +274 -0
- package/dist/locales/zh.json +274 -0
- package/dist/patterns/alia-assistant/index.js +1 -1
- package/dist/patterns/marketplace-app-shell/index.js +1 -1
- package/dist/patterns/marketplace-app-shell/marketplace-app-shell.d.ts +12 -8
- package/dist/patterns/patient-shell/index.js +1 -1
- package/dist/tokens.css +1 -1
- package/package.json +53 -1
- package/dist/_chunks/bmi-calculator-DQD5_nE-.js +0 -214
- package/dist/_chunks/due-date-calculator-kf9U_g7O.js +0 -173
- package/dist/_chunks/marketplace-app-shell-DXHxy9dj.js +0 -295
- package/dist/_chunks/subDays-D-WYRpdW.js +0 -8
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { jsx as e, jsxs as n } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef as
|
|
2
|
+
import { forwardRef as k, useState as w } from "react";
|
|
3
3
|
import { useTranslation as m } from "react-i18next";
|
|
4
4
|
import { A } from "./app-frame-BYx1gcV7.js";
|
|
5
|
-
import { I as
|
|
5
|
+
import { I as C } from "./icon-button-CKEOrN37.js";
|
|
6
6
|
import { D as i } from "./dropdown-menu-BC5ZdOMo.js";
|
|
7
|
-
import { H
|
|
8
|
-
import { L as P } from "./logo-
|
|
9
|
-
import { S as W, a as j, h as R, j as _, k as z, i as D } from "./sidebar-
|
|
7
|
+
import { H, g as x, f as N, e as B, a as M, c as T, d as O } from "./header-CTZWX-tm.js";
|
|
8
|
+
import { L as P } from "./logo-yituK7sE.js";
|
|
9
|
+
import { S as W, a as j, h as R, j as _, k as z, i as D } from "./sidebar-_vJXI9rB.js";
|
|
10
10
|
import { T as E } from "./theme-root-BOO73p5t.js";
|
|
11
11
|
import { a as q } from "./tooltip-DvmfrNvB.js";
|
|
12
12
|
import { u as F } from "./use-theme-C2dHKUAN.js";
|
|
@@ -25,31 +25,31 @@ const K = [
|
|
|
25
25
|
["path", { d: "m3 21 7-7", key: "tjx5ai" }],
|
|
26
26
|
["path", { d: "M9 21H3v-6", key: "wtvkvv" }]
|
|
27
27
|
], Q = G("maximize-2", K);
|
|
28
|
-
function V(
|
|
29
|
-
return
|
|
28
|
+
function V(a) {
|
|
29
|
+
return a > 99 ? "99+" : String(a);
|
|
30
30
|
}
|
|
31
|
-
function X(
|
|
32
|
-
if (
|
|
31
|
+
function X(a) {
|
|
32
|
+
if (a.startsWith("/") || a.startsWith("#") || a.startsWith("?"))
|
|
33
33
|
return !0;
|
|
34
34
|
try {
|
|
35
|
-
const t = new URL(
|
|
35
|
+
const t = new URL(a, window.location.origin);
|
|
36
36
|
return t.protocol === "http:" || t.protocol === "https:";
|
|
37
37
|
} catch {
|
|
38
38
|
return !1;
|
|
39
39
|
}
|
|
40
40
|
}
|
|
41
41
|
function Y({
|
|
42
|
-
logoutHref:
|
|
42
|
+
logoutHref: a,
|
|
43
43
|
onToggleFullscreen: t
|
|
44
44
|
}) {
|
|
45
|
-
const { t:
|
|
45
|
+
const { t: r } = m();
|
|
46
46
|
return /* @__PURE__ */ n(i.Root, { children: [
|
|
47
47
|
/* @__PURE__ */ e(i.Trigger, { asChild: !0, children: /* @__PURE__ */ e(
|
|
48
|
-
|
|
48
|
+
C,
|
|
49
49
|
{
|
|
50
50
|
icon: /* @__PURE__ */ e(U, { "aria-hidden": "true" }),
|
|
51
|
-
"aria-label":
|
|
52
|
-
tooltip:
|
|
51
|
+
"aria-label": r("patientShell.settings.triggerAria"),
|
|
52
|
+
tooltip: r("patientShell.settings.triggerAria"),
|
|
53
53
|
"data-testid": "patient-shell-settings-trigger"
|
|
54
54
|
}
|
|
55
55
|
) }),
|
|
@@ -60,7 +60,7 @@ function Y({
|
|
|
60
60
|
startIcon: /* @__PURE__ */ e(Q, { "aria-hidden": "true" }),
|
|
61
61
|
onSelect: t,
|
|
62
62
|
"data-testid": "patient-shell-fullscreen",
|
|
63
|
-
children:
|
|
63
|
+
children: r("patientShell.settings.fullscreen")
|
|
64
64
|
}
|
|
65
65
|
),
|
|
66
66
|
/* @__PURE__ */ e(i.Separator, {}),
|
|
@@ -69,18 +69,18 @@ function Y({
|
|
|
69
69
|
{
|
|
70
70
|
startIcon: /* @__PURE__ */ e(J, { "aria-hidden": "true" }),
|
|
71
71
|
onSelect: () => {
|
|
72
|
-
typeof window > "u" || X(
|
|
72
|
+
typeof window > "u" || X(a) && window.location.assign(a);
|
|
73
73
|
},
|
|
74
74
|
"data-testid": "patient-shell-logout",
|
|
75
|
-
children:
|
|
75
|
+
children: r("patientShell.settings.logout")
|
|
76
76
|
}
|
|
77
77
|
)
|
|
78
78
|
] })
|
|
79
79
|
] });
|
|
80
80
|
}
|
|
81
|
-
function Z({ menuItems:
|
|
82
|
-
return /* @__PURE__ */ e(j, { children:
|
|
83
|
-
const
|
|
81
|
+
function Z({ menuItems: a }) {
|
|
82
|
+
return /* @__PURE__ */ e(j, { children: a.map((t) => {
|
|
83
|
+
const r = typeof t.badgeCount == "number" && t.badgeCount > 0 ? t.badgeCount : void 0;
|
|
84
84
|
return /* @__PURE__ */ n(
|
|
85
85
|
R,
|
|
86
86
|
{
|
|
@@ -90,18 +90,18 @@ function Z({ menuItems: r }) {
|
|
|
90
90
|
children: [
|
|
91
91
|
t.icon ? /* @__PURE__ */ e(_, { children: t.icon }) : null,
|
|
92
92
|
/* @__PURE__ */ e(z, { children: t.label }),
|
|
93
|
-
|
|
93
|
+
r !== void 0 ? /* @__PURE__ */ e(D, { children: V(r) }) : null
|
|
94
94
|
]
|
|
95
95
|
},
|
|
96
96
|
t.id
|
|
97
97
|
);
|
|
98
98
|
}) });
|
|
99
99
|
}
|
|
100
|
-
const $ =
|
|
100
|
+
const $ = k(
|
|
101
101
|
({
|
|
102
|
-
menuItems:
|
|
102
|
+
menuItems: a,
|
|
103
103
|
logoutHref: t,
|
|
104
|
-
onToggleFullscreen:
|
|
104
|
+
onToggleFullscreen: r,
|
|
105
105
|
brandLogo: p,
|
|
106
106
|
brandHref: u = "/",
|
|
107
107
|
mainAriaLabel: f,
|
|
@@ -114,20 +114,21 @@ const $ = w(
|
|
|
114
114
|
userName: ee,
|
|
115
115
|
userAvatarSrc: te
|
|
116
116
|
}, s) => {
|
|
117
|
-
const { t:
|
|
117
|
+
const { t: l } = m(), { theme: b, accessibility: S, resolvedTheme: d } = F(), v = b !== "system" || S !== "system", y = d.startsWith("dark") ? "dark" : "light", I = d.endsWith("-accessible"), [L, c] = w(!1), h = /* @__PURE__ */ e(q, { children: /* @__PURE__ */ e(
|
|
118
118
|
A,
|
|
119
119
|
{
|
|
120
120
|
mainAriaLabel: f,
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
/* @__PURE__ */ e(
|
|
121
|
+
mainClassName: "ds:bg-[color:var(--app-shell-background)]",
|
|
122
|
+
header: /* @__PURE__ */ n(H, { children: [
|
|
123
|
+
/* @__PURE__ */ n(x, { children: [
|
|
124
|
+
/* @__PURE__ */ e(N, { href: "#main-content" }),
|
|
125
|
+
/* @__PURE__ */ e(B, { onMenuOpen: () => c(!0) }),
|
|
125
126
|
/* @__PURE__ */ e(
|
|
126
|
-
|
|
127
|
+
M,
|
|
127
128
|
{
|
|
128
129
|
logo: p ?? /* @__PURE__ */ e(P, { variant: "monochrome", size: "md", decorative: !0 }),
|
|
129
130
|
href: u,
|
|
130
|
-
"aria-label":
|
|
131
|
+
"aria-label": l("patientShell.brand.homeAria")
|
|
131
132
|
}
|
|
132
133
|
)
|
|
133
134
|
] }),
|
|
@@ -136,7 +137,7 @@ const $ = w(
|
|
|
136
137
|
Y,
|
|
137
138
|
{
|
|
138
139
|
logoutHref: t,
|
|
139
|
-
onToggleFullscreen:
|
|
140
|
+
onToggleFullscreen: r
|
|
140
141
|
}
|
|
141
142
|
) })
|
|
142
143
|
] }),
|
|
@@ -146,9 +147,9 @@ const $ = w(
|
|
|
146
147
|
...o !== void 0 ? { state: o } : { defaultState: "expanded" },
|
|
147
148
|
open: L,
|
|
148
149
|
onOpenChange: c,
|
|
149
|
-
"aria-label":
|
|
150
|
+
"aria-label": l("patientShell.sidebar.panelLabel"),
|
|
150
151
|
"data-testid": "patient-shell-sidebar",
|
|
151
|
-
children: /* @__PURE__ */ e(Z, { menuItems:
|
|
152
|
+
children: /* @__PURE__ */ e(Z, { menuItems: a })
|
|
152
153
|
}
|
|
153
154
|
),
|
|
154
155
|
children: g
|
|
@@ -170,4 +171,4 @@ $.displayName = "PatientShell";
|
|
|
170
171
|
export {
|
|
171
172
|
$ as P
|
|
172
173
|
};
|
|
173
|
-
//# sourceMappingURL=patient-shell-
|
|
174
|
+
//# sourceMappingURL=patient-shell-DF81lALv.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as t, jsxs as m, Fragment as ne } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef as se, useState as
|
|
2
|
+
import { forwardRef as se, useState as C, useEffect as R, useRef as V, useMemo as j, useImperativeHandle as ae, useId as oe, useCallback as ie } from "react";
|
|
3
3
|
import { c as z } from "./index-D2ZczOXr.js";
|
|
4
4
|
import { useTranslation as q } from "react-i18next";
|
|
5
5
|
import { S as J } from "./spinner-CCByyvcb.js";
|
|
@@ -186,13 +186,13 @@ const we = z(
|
|
|
186
186
|
"ds:payment-form-alfadocs ds:flex ds:flex-col",
|
|
187
187
|
"ds:gap-[var(--spacing-md)]",
|
|
188
188
|
"ds:bg-[var(--background)] ds:text-[var(--foreground)]",
|
|
189
|
-
"ds:rounded-[var(--radius-md)] ds:border ds:border-[color:var(--border)]",
|
|
189
|
+
"ds:rounded-[var(--radius-md)] ds:border ds:border-[color:var(--card-border)] ds:shadow-[var(--shadow-card)] ds:[.theme-accessible_&]:border-2",
|
|
190
190
|
"ds:p-[var(--spacing-md)]",
|
|
191
191
|
"ds:aria-disabled:opacity-[var(--opacity-50)] ds:aria-disabled:cursor-not-allowed"
|
|
192
192
|
].join(" ")
|
|
193
193
|
), T = z(
|
|
194
194
|
["ds:flex ds:flex-col ds:gap-[var(--spacing-xs)]"].join(" ")
|
|
195
|
-
),
|
|
195
|
+
), E = z(
|
|
196
196
|
["type-label", "ds:text-[var(--foreground)]"].join(" ")
|
|
197
197
|
), Q = z(
|
|
198
198
|
[
|
|
@@ -236,7 +236,7 @@ function xe(r) {
|
|
|
236
236
|
} = r, { t: o } = q(), k = le(), S = me(), g = oe(), b = j(
|
|
237
237
|
() => `pay-${g.replace(/[^a-zA-Z0-9-_]/g, "")}`,
|
|
238
238
|
[g]
|
|
239
|
-
), F = `${b}-payment`, L = `${b}-address`, v = `${b}-error`, [u, h] =
|
|
239
|
+
), F = `${b}-payment`, L = `${b}-address`, v = `${b}-error`, [u, h] = C(!1), [A, P] = C(!1), [w, x] = C(null), [U, d] = C(""), c = V(f), l = V(N);
|
|
240
240
|
R(() => {
|
|
241
241
|
c.current = f, l.current = N;
|
|
242
242
|
}, [f, N]);
|
|
@@ -245,8 +245,8 @@ function xe(r) {
|
|
|
245
245
|
var G, H, O, K;
|
|
246
246
|
if (p && p.preventDefault(), !k || !S || u) return;
|
|
247
247
|
h(!0), x(null), d("");
|
|
248
|
-
const
|
|
249
|
-
if (a !== void 0 &&
|
|
248
|
+
const _ = ve(a);
|
|
249
|
+
if (a !== void 0 && _ === null) {
|
|
250
250
|
x("payment.error.invalidReturnUrl"), d(o("payment.error.invalidReturnUrl")), (G = l.current) == null || G.call(l, {
|
|
251
251
|
code: "invalid_return_url",
|
|
252
252
|
translatedMessage: o("payment.error.invalidReturnUrl")
|
|
@@ -256,7 +256,7 @@ function xe(r) {
|
|
|
256
256
|
try {
|
|
257
257
|
const y = await k.confirmPayment({
|
|
258
258
|
elements: S,
|
|
259
|
-
confirmParams:
|
|
259
|
+
confirmParams: _ ? { return_url: _ } : {},
|
|
260
260
|
redirect: "if_required"
|
|
261
261
|
});
|
|
262
262
|
if (y.error) {
|
|
@@ -283,10 +283,10 @@ function xe(r) {
|
|
|
283
283
|
R(() => {
|
|
284
284
|
const p = document.getElementById(b);
|
|
285
285
|
if (!p) return;
|
|
286
|
-
const
|
|
286
|
+
const _ = () => {
|
|
287
287
|
D();
|
|
288
288
|
};
|
|
289
|
-
return p.addEventListener("payment-form:submit",
|
|
289
|
+
return p.addEventListener("payment-form:submit", _), () => p.removeEventListener("payment-form:submit", _);
|
|
290
290
|
}, [b, D]);
|
|
291
291
|
const re = !k || !S || !A || u;
|
|
292
292
|
return /* @__PURE__ */ t(
|
|
@@ -299,7 +299,7 @@ function xe(r) {
|
|
|
299
299
|
noValidate: !0,
|
|
300
300
|
children: /* @__PURE__ */ m("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]", children: [
|
|
301
301
|
/* @__PURE__ */ m("div", { className: Q(), children: [
|
|
302
|
-
/* @__PURE__ */ t("span", { className:
|
|
302
|
+
/* @__PURE__ */ t("span", { className: E(), children: o("payment.amountLabel") }),
|
|
303
303
|
/* @__PURE__ */ t("span", { className: "type-title-card", "data-testid": "payment-amount", children: $(n, s, e) })
|
|
304
304
|
] }),
|
|
305
305
|
/* @__PURE__ */ m(
|
|
@@ -309,7 +309,7 @@ function xe(r) {
|
|
|
309
309
|
className: T(),
|
|
310
310
|
"data-testid": "payment-field",
|
|
311
311
|
children: [
|
|
312
|
-
/* @__PURE__ */ t("span", { className:
|
|
312
|
+
/* @__PURE__ */ t("span", { className: E(), children: o("payment.fields.card") }),
|
|
313
313
|
/* @__PURE__ */ t(
|
|
314
314
|
ue,
|
|
315
315
|
{
|
|
@@ -332,7 +332,7 @@ function xe(r) {
|
|
|
332
332
|
className: T(),
|
|
333
333
|
"data-testid": "payment-address",
|
|
334
334
|
children: [
|
|
335
|
-
/* @__PURE__ */ t("span", { className:
|
|
335
|
+
/* @__PURE__ */ t("span", { className: E(), children: o("payment.billingAddress") }),
|
|
336
336
|
/* @__PURE__ */ t(pe, { id: L, options: { mode: "billing" } })
|
|
337
337
|
]
|
|
338
338
|
}
|
|
@@ -444,7 +444,7 @@ const ke = se(
|
|
|
444
444
|
stripePromise: g,
|
|
445
445
|
className: b
|
|
446
446
|
}, F) => {
|
|
447
|
-
const { i18n: L } = q(), v = Ne(o ?? L.language ?? "en"), [u, h] =
|
|
447
|
+
const { i18n: L } = q(), v = Ne(o ?? L.language ?? "en"), [u, h] = C(g ?? null);
|
|
448
448
|
R(() => {
|
|
449
449
|
if (g !== void 0) {
|
|
450
450
|
h(g);
|
|
@@ -456,7 +456,7 @@ const ke = se(
|
|
|
456
456
|
}
|
|
457
457
|
h(de(s));
|
|
458
458
|
}, [g, s]);
|
|
459
|
-
const [A, P] =
|
|
459
|
+
const [A, P] = C(
|
|
460
460
|
() => B()
|
|
461
461
|
);
|
|
462
462
|
R(() => (P(B()), be(P)), []);
|
|
@@ -538,11 +538,11 @@ function Se(r) {
|
|
|
538
538
|
"aria-busy": "true",
|
|
539
539
|
children: [
|
|
540
540
|
/* @__PURE__ */ m("div", { className: Q(), children: [
|
|
541
|
-
/* @__PURE__ */ t("span", { className:
|
|
541
|
+
/* @__PURE__ */ t("span", { className: E(), children: a("payment.amountLabel") }),
|
|
542
542
|
/* @__PURE__ */ t("span", { className: "type-title-card", children: $(n, s, e) })
|
|
543
543
|
] }),
|
|
544
544
|
/* @__PURE__ */ m("div", { className: T(), children: [
|
|
545
|
-
/* @__PURE__ */ t("span", { className:
|
|
545
|
+
/* @__PURE__ */ t("span", { className: E(), children: a("payment.fields.card") }),
|
|
546
546
|
/* @__PURE__ */ t(
|
|
547
547
|
"div",
|
|
548
548
|
{
|
|
@@ -552,7 +552,7 @@ function Se(r) {
|
|
|
552
552
|
)
|
|
553
553
|
] }),
|
|
554
554
|
i ? /* @__PURE__ */ m("div", { className: T(), "data-testid": "payment-address", children: [
|
|
555
|
-
/* @__PURE__ */ t("span", { className:
|
|
555
|
+
/* @__PURE__ */ t("span", { className: E(), children: a("payment.billingAddress") }),
|
|
556
556
|
/* @__PURE__ */ t(
|
|
557
557
|
"div",
|
|
558
558
|
{
|
|
@@ -587,4 +587,4 @@ export {
|
|
|
587
587
|
ye as p,
|
|
588
588
|
ee as s
|
|
589
589
|
};
|
|
590
|
-
//# sourceMappingURL=payment-form-
|
|
590
|
+
//# sourceMappingURL=payment-form-Dy3WIIsC.js.map
|
|
@@ -88,7 +88,7 @@ const ke = J(
|
|
|
88
88
|
"ds:pdf-viewer-alfadocs ds:flex ds:flex-col",
|
|
89
89
|
"ds:gap-[var(--spacing-sm)]",
|
|
90
90
|
"ds:bg-[var(--background)] ds:text-[var(--foreground)]",
|
|
91
|
-
"ds:rounded-[var(--radius-md)] ds:border ds:border-[color:var(--border)]",
|
|
91
|
+
"ds:rounded-[var(--radius-md)] ds:border ds:border-[color:var(--card-border)] ds:[.theme-accessible_&]:border-2",
|
|
92
92
|
"ds:overflow-hidden",
|
|
93
93
|
"ds:focus-visible:outline-[length:var(--focus-ring-width)]",
|
|
94
94
|
"ds:focus-visible:outline-solid",
|
|
@@ -944,4 +944,4 @@ export {
|
|
|
944
944
|
at as P,
|
|
945
945
|
Ge as p
|
|
946
946
|
};
|
|
947
|
-
//# sourceMappingURL=pdf-viewer-
|
|
947
|
+
//# sourceMappingURL=pdf-viewer-Cy6Ul3hZ.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { o as s, q as a, r, v as l } from "./react-day-picker-
|
|
2
|
-
import { i as p } from "./isSameWeek-
|
|
1
|
+
import { o as s, q as a, r, v as l } from "./react-day-picker-CdtIiKjx.js";
|
|
2
|
+
import { i as p } from "./isSameWeek-Bim5ftRd.js";
|
|
3
3
|
const w = {
|
|
4
4
|
lessThanXSeconds: {
|
|
5
5
|
one: {
|
|
@@ -511,4 +511,4 @@ const I = {
|
|
|
511
511
|
export {
|
|
512
512
|
Z as pl
|
|
513
513
|
};
|
|
514
|
-
//# sourceMappingURL=pl-
|
|
514
|
+
//# sourceMappingURL=pl-GnOW6eGK.js.map
|
|
@@ -7,7 +7,7 @@ import { A as ke } from "./avatar-BNQNhoyL.js";
|
|
|
7
7
|
import { B as G } from "./button-DD_0Xdmr.js";
|
|
8
8
|
import { D as H } from "./dropdown-menu-BC5ZdOMo.js";
|
|
9
9
|
import { E as Je } from "./empty-state-BLy7tigq.js";
|
|
10
|
-
import { M as We } from "./map-view-
|
|
10
|
+
import { M as We } from "./map-view-qJLybrmN.js";
|
|
11
11
|
import { R as Ce } from "./rating-BRD7O74e.js";
|
|
12
12
|
import { S as z } from "./sheet-BV-yuLE2.js";
|
|
13
13
|
import { S as Xe } from "./skeleton-CZbwyJAA.js";
|
|
@@ -19,7 +19,8 @@ import { c as nt } from "./createLucideIcon-CrFbzy84.js";
|
|
|
19
19
|
import { R as at } from "./refresh-cw-CC8jSKMr.js";
|
|
20
20
|
import { C as Ne } from "./chevron-down-BX_NP2Yh.js";
|
|
21
21
|
import { M as te } from "./map-pin-B8STOPMJ.js";
|
|
22
|
-
import { L as Se, S as Pe
|
|
22
|
+
import { L as Se, S as Pe } from "./shield-check-C73ma9Cs.js";
|
|
23
|
+
import { H as Me } from "./heart-C0faivFf.js";
|
|
23
24
|
import { C as Ae } from "./calendar-clock-CYkcqdwl.js";
|
|
24
25
|
/**
|
|
25
26
|
* @license lucide-react v1.8.0 - ISC
|
|
@@ -1568,4 +1569,4 @@ export {
|
|
|
1568
1569
|
Ct as P,
|
|
1569
1570
|
rt as p
|
|
1570
1571
|
};
|
|
1571
|
-
//# sourceMappingURL=practice-results-
|
|
1572
|
+
//# sourceMappingURL=practice-results-C0d4IL5E.js.map
|
|
@@ -0,0 +1,209 @@
|
|
|
1
|
+
import { jsxs as s, jsx as a } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as B, useState as f, useMemo as $, useEffect as S } from "react";
|
|
3
|
+
import { c as E } from "./index-D2ZczOXr.js";
|
|
4
|
+
import { useTranslation as I } from "react-i18next";
|
|
5
|
+
import { F as x } from "./form-field-BOm9hK35.js";
|
|
6
|
+
import { N as y } from "./number-input-Dj5L3pXK.js";
|
|
7
|
+
import { B as A } from "./badge-zsf5i5bH.js";
|
|
8
|
+
import { I as F } from "./insert-result-yJ0QavoN.js";
|
|
9
|
+
import { b as _, e as R } from "./bmi-BxD-tFzU.js";
|
|
10
|
+
const k = {
|
|
11
|
+
underweight: { min: 12.5, max: 18 },
|
|
12
|
+
normal: { min: 11.5, max: 16 },
|
|
13
|
+
overweight: { min: 7, max: 11.5 },
|
|
14
|
+
obese: { min: 5, max: 9 }
|
|
15
|
+
}, M = {
|
|
16
|
+
underweight: { min: 0.44, max: 0.58 },
|
|
17
|
+
normal: { min: 0.35, max: 0.5 },
|
|
18
|
+
overweight: { min: 0.23, max: 0.33 },
|
|
19
|
+
obese: { min: 0.17, max: 0.27 }
|
|
20
|
+
}, G = { min: 0.5, max: 2 }, v = 13;
|
|
21
|
+
function C(t, i) {
|
|
22
|
+
if (i <= 0) return { min: 0, max: 0 };
|
|
23
|
+
if (i <= v) {
|
|
24
|
+
const l = i / v;
|
|
25
|
+
return {
|
|
26
|
+
min: G.min * l,
|
|
27
|
+
max: G.max * l
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
const c = Math.min(i, 40) - v, r = M[t];
|
|
31
|
+
return {
|
|
32
|
+
min: G.min + r.min * c,
|
|
33
|
+
max: G.max + r.max * c
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
function j(t) {
|
|
37
|
+
const i = _(t.prePregnancyBmi), c = k[i], r = C(
|
|
38
|
+
i,
|
|
39
|
+
t.gestationalWeeks
|
|
40
|
+
), l = t.currentWeightKg - t.prePregnancyWeightKg, W = l < r.min ? "below" : l > r.max ? "above" : "within";
|
|
41
|
+
return { category: i, totalRange: c, recommendedToDate: r, actualGainKg: l, status: W };
|
|
42
|
+
}
|
|
43
|
+
const V = E("ds:flex ds:flex-col ds:gap-[var(--spacing-lg)]", {
|
|
44
|
+
variants: {
|
|
45
|
+
width: { full: "ds:w-full", auto: "ds:inline-flex" }
|
|
46
|
+
},
|
|
47
|
+
defaultVariants: { width: "full" }
|
|
48
|
+
}), z = {
|
|
49
|
+
below: "warning",
|
|
50
|
+
within: "success",
|
|
51
|
+
above: "warning"
|
|
52
|
+
}, H = B(({ onResultChange: t, onInsert: i, id: c, width: r, className: l }, W) => {
|
|
53
|
+
const { t: e, i18n: N } = I(), [b, w] = f(null), [o, K] = f(null), [g, P] = f(null), [u, D] = f(null), p = R(o, b), n = $(() => p === null || o === null || g === null || u === null ? null : j({
|
|
54
|
+
prePregnancyBmi: p,
|
|
55
|
+
prePregnancyWeightKg: o,
|
|
56
|
+
currentWeightKg: g,
|
|
57
|
+
gestationalWeeks: u
|
|
58
|
+
}), [p, o, g, u]), d = $(
|
|
59
|
+
() => new Intl.NumberFormat(N.language, {
|
|
60
|
+
minimumFractionDigits: 1,
|
|
61
|
+
maximumFractionDigits: 1
|
|
62
|
+
}),
|
|
63
|
+
[N.language]
|
|
64
|
+
);
|
|
65
|
+
S(() => {
|
|
66
|
+
t == null || t(n);
|
|
67
|
+
}, [n, t]);
|
|
68
|
+
const m = e("pregnancyWeightGain.units.kg"), h = (T) => `${d.format(T.min)} – ${d.format(T.max)} ${m}`;
|
|
69
|
+
return /* @__PURE__ */ s(
|
|
70
|
+
"div",
|
|
71
|
+
{
|
|
72
|
+
ref: W,
|
|
73
|
+
"data-component": "pregnancy-weight-gain",
|
|
74
|
+
"data-component-id": c,
|
|
75
|
+
className: V({ width: r, className: l }),
|
|
76
|
+
children: [
|
|
77
|
+
/* @__PURE__ */ s("div", { className: "ds:grid ds:grid-cols-1 ds:gap-[var(--spacing-md)] ds:sm:grid-cols-2", children: [
|
|
78
|
+
/* @__PURE__ */ a(
|
|
79
|
+
x,
|
|
80
|
+
{
|
|
81
|
+
label: `${e("pregnancyWeightGain.height")} (${e("pregnancyWeightGain.units.cm")})`,
|
|
82
|
+
children: /* @__PURE__ */ a(
|
|
83
|
+
y,
|
|
84
|
+
{
|
|
85
|
+
mode: "decimal",
|
|
86
|
+
min: 0,
|
|
87
|
+
step: 0.5,
|
|
88
|
+
value: b,
|
|
89
|
+
onChange: w
|
|
90
|
+
}
|
|
91
|
+
)
|
|
92
|
+
}
|
|
93
|
+
),
|
|
94
|
+
/* @__PURE__ */ a(
|
|
95
|
+
x,
|
|
96
|
+
{
|
|
97
|
+
label: `${e("pregnancyWeightGain.prePregnancyWeight")} (${m})`,
|
|
98
|
+
children: /* @__PURE__ */ a(
|
|
99
|
+
y,
|
|
100
|
+
{
|
|
101
|
+
mode: "decimal",
|
|
102
|
+
min: 0,
|
|
103
|
+
step: 0.1,
|
|
104
|
+
value: o,
|
|
105
|
+
onChange: K
|
|
106
|
+
}
|
|
107
|
+
)
|
|
108
|
+
}
|
|
109
|
+
),
|
|
110
|
+
/* @__PURE__ */ a(
|
|
111
|
+
x,
|
|
112
|
+
{
|
|
113
|
+
label: `${e("pregnancyWeightGain.currentWeight")} (${m})`,
|
|
114
|
+
children: /* @__PURE__ */ a(
|
|
115
|
+
y,
|
|
116
|
+
{
|
|
117
|
+
mode: "decimal",
|
|
118
|
+
min: 0,
|
|
119
|
+
step: 0.1,
|
|
120
|
+
value: g,
|
|
121
|
+
onChange: P
|
|
122
|
+
}
|
|
123
|
+
)
|
|
124
|
+
}
|
|
125
|
+
),
|
|
126
|
+
/* @__PURE__ */ a(x, { label: e("pregnancyWeightGain.gestationalWeeks"), children: /* @__PURE__ */ a(
|
|
127
|
+
y,
|
|
128
|
+
{
|
|
129
|
+
mode: "integer",
|
|
130
|
+
min: 0,
|
|
131
|
+
max: 42,
|
|
132
|
+
value: u,
|
|
133
|
+
onChange: D
|
|
134
|
+
}
|
|
135
|
+
) })
|
|
136
|
+
] }),
|
|
137
|
+
/* @__PURE__ */ a("p", { className: "ds:sr-only", role: "status", "aria-live": "polite", children: n ? `${e("pregnancyWeightGain.actualGain")}: ${d.format(
|
|
138
|
+
n.actualGainKg
|
|
139
|
+
)} ${m}. ${e(`pregnancyWeightGain.status.${n.status}`)}.` : "" }),
|
|
140
|
+
n ? /* @__PURE__ */ s("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]", children: [
|
|
141
|
+
/* @__PURE__ */ s("dl", { className: "ds:grid ds:grid-cols-1 ds:gap-[var(--spacing-md)] ds:sm:grid-cols-2", children: [
|
|
142
|
+
/* @__PURE__ */ s("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)]", children: [
|
|
143
|
+
/* @__PURE__ */ a("dt", { className: "type-label ds:text-muted-foreground", children: e("pregnancyWeightGain.prePregnancyBmi") }),
|
|
144
|
+
/* @__PURE__ */ s("dd", { className: "type-body ds:text-foreground", children: [
|
|
145
|
+
d.format(p ?? 0),
|
|
146
|
+
" ·",
|
|
147
|
+
" ",
|
|
148
|
+
e(`pregnancyWeightGain.category.${n.category}`)
|
|
149
|
+
] })
|
|
150
|
+
] }),
|
|
151
|
+
/* @__PURE__ */ s("div", { className: "ds:flex ds:flex-col ds:items-start ds:gap-[var(--spacing-xs)]", children: [
|
|
152
|
+
/* @__PURE__ */ a("dt", { className: "type-label ds:text-muted-foreground", children: e("pregnancyWeightGain.actualGain") }),
|
|
153
|
+
/* @__PURE__ */ s("dd", { className: "ds:flex ds:flex-col ds:items-start ds:gap-[var(--spacing-xs)]", children: [
|
|
154
|
+
/* @__PURE__ */ s("span", { className: "type-metric ds:text-foreground", children: [
|
|
155
|
+
d.format(n.actualGainKg),
|
|
156
|
+
" ",
|
|
157
|
+
m
|
|
158
|
+
] }),
|
|
159
|
+
/* @__PURE__ */ a(A, { variant: z[n.status], size: "lg", children: e(`pregnancyWeightGain.status.${n.status}`) })
|
|
160
|
+
] })
|
|
161
|
+
] }),
|
|
162
|
+
/* @__PURE__ */ s("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)]", children: [
|
|
163
|
+
/* @__PURE__ */ a("dt", { className: "type-label ds:text-muted-foreground", children: e("pregnancyWeightGain.recommendedToDate") }),
|
|
164
|
+
/* @__PURE__ */ a("dd", { className: "type-body ds:text-foreground", children: h(n.recommendedToDate) })
|
|
165
|
+
] }),
|
|
166
|
+
/* @__PURE__ */ s("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)]", children: [
|
|
167
|
+
/* @__PURE__ */ a("dt", { className: "type-label ds:text-muted-foreground", children: e("pregnancyWeightGain.recommendedTotal") }),
|
|
168
|
+
/* @__PURE__ */ a("dd", { className: "type-body ds:text-foreground", children: h(n.totalRange) })
|
|
169
|
+
] })
|
|
170
|
+
] }),
|
|
171
|
+
/* @__PURE__ */ a("p", { className: "type-body-sm ds:text-muted-foreground", children: e("pregnancyWeightGain.disclaimer") }),
|
|
172
|
+
i ? /* @__PURE__ */ a(
|
|
173
|
+
F,
|
|
174
|
+
{
|
|
175
|
+
onInsert: i,
|
|
176
|
+
card: {
|
|
177
|
+
title: e("insert.title.weightGain"),
|
|
178
|
+
highlight: e(`pregnancyWeightGain.status.${n.status}`),
|
|
179
|
+
fields: [
|
|
180
|
+
{
|
|
181
|
+
label: e("pregnancyWeightGain.actualGain"),
|
|
182
|
+
value: `${d.format(n.actualGainKg)} ${m}`
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
label: e("pregnancyWeightGain.recommendedToDate"),
|
|
186
|
+
value: h(n.recommendedToDate)
|
|
187
|
+
},
|
|
188
|
+
{
|
|
189
|
+
label: e("pregnancyWeightGain.recommendedTotal"),
|
|
190
|
+
value: h(n.totalRange)
|
|
191
|
+
}
|
|
192
|
+
]
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
) : null
|
|
196
|
+
] }) : /* @__PURE__ */ a("p", { className: "type-body ds:text-muted-foreground", children: e("pregnancyWeightGain.empty") })
|
|
197
|
+
]
|
|
198
|
+
}
|
|
199
|
+
);
|
|
200
|
+
});
|
|
201
|
+
H.displayName = "PregnancyWeightGain";
|
|
202
|
+
export {
|
|
203
|
+
H as P,
|
|
204
|
+
M as R,
|
|
205
|
+
k as T,
|
|
206
|
+
j as a,
|
|
207
|
+
C as r
|
|
208
|
+
};
|
|
209
|
+
//# sourceMappingURL=pregnancy-weight-gain-BCdi-JSv.js.map
|
|
@@ -4,7 +4,7 @@ import { useTranslation as V } from "react-i18next";
|
|
|
4
4
|
import * as i from "@radix-ui/react-dialog";
|
|
5
5
|
import { B as u } from "./button-DD_0Xdmr.js";
|
|
6
6
|
import { I as W } from "./icon-button-CKEOrN37.js";
|
|
7
|
-
import { L as X } from "./logo-
|
|
7
|
+
import { L as X } from "./logo-yituK7sE.js";
|
|
8
8
|
import { u as Y } from "./registry-nPAVE19X.js";
|
|
9
9
|
import { E as h } from "./eye-off-xEXDAh5z.js";
|
|
10
10
|
import { U as Z } from "./user-CPxpqFjJ.js";
|
|
@@ -190,4 +190,4 @@ export {
|
|
|
190
190
|
ee as P,
|
|
191
191
|
$ as p
|
|
192
192
|
};
|
|
193
|
-
//# sourceMappingURL=privacy-lock-
|
|
193
|
+
//# sourceMappingURL=privacy-lock-BmX_gkvt.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { o as s, q as i, r, v as d } from "./react-day-picker-
|
|
1
|
+
import { o as s, q as i, r, v as d } from "./react-day-picker-CdtIiKjx.js";
|
|
2
2
|
const m = {
|
|
3
3
|
lessThanXSeconds: {
|
|
4
4
|
one: "menos de um segundo",
|
|
@@ -367,4 +367,4 @@ const m = {
|
|
|
367
367
|
export {
|
|
368
368
|
N as pt
|
|
369
369
|
};
|
|
370
|
-
//# sourceMappingURL=pt-
|
|
370
|
+
//# sourceMappingURL=pt-_bV5b5RW.js.map
|
|
@@ -4,8 +4,8 @@ import { c as R } from "./index-D2ZczOXr.js";
|
|
|
4
4
|
import { useTranslation as S } from "react-i18next";
|
|
5
5
|
import { L as f } from "./link-DrD_cRUg.js";
|
|
6
6
|
import { S as m } from "./separator-CYU_bGFn.js";
|
|
7
|
-
import { L as T } from "./logo-
|
|
8
|
-
import { A as D, b as G, c as U, a as O } from "./accordion-
|
|
7
|
+
import { L as T } from "./logo-yituK7sE.js";
|
|
8
|
+
import { A as D, b as G, c as U, a as O } from "./accordion-9lJSMMsZ.js";
|
|
9
9
|
const L = "https://www.alfadocs.com", F = {
|
|
10
10
|
privacy: "/privacy-prenotazione-online",
|
|
11
11
|
terms: "/it/condizioni-di-utilizzo",
|
|
@@ -588,4 +588,4 @@ export {
|
|
|
588
588
|
W as c,
|
|
589
589
|
ye as p
|
|
590
590
|
};
|
|
591
|
-
//# sourceMappingURL=public-footer.agent-
|
|
591
|
+
//# sourceMappingURL=public-footer.agent-okt8ZRc5.js.map
|