@alfadocs/ui-kit 0.48.0 → 0.50.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/{address-autocomplete-CSjMrBvu.js → address-autocomplete-CT-9AOli.js} +2 -2
- package/dist/_chunks/{ai-consent-banner-DO5ingMq.js → ai-consent-banner-F2md5JD3.js} +2 -2
- package/dist/_chunks/{ai-tools-rail-CxYG04cw.js → ai-tools-rail-CYLWrRmm.js} +6 -6
- package/dist/_chunks/{alert-ywPR59NE.js → alert-CUTxnym2.js} +56 -35
- package/dist/_chunks/antenatal-schedule-timeline-CdiqkF05.js +413 -0
- package/dist/_chunks/{ar-DEz65ZJW.js → ar-C68WKG5a.js} +2 -2
- package/dist/_chunks/{audio-recorder-DC-v9YFW.js → audio-recorder-DVJXV7_k.js} +2 -2
- package/dist/_chunks/bishop-score-2MzAz8NE.js +185 -0
- package/dist/_chunks/{booking-WV2GSru5.js → booking-DljH0JkS.js} +5 -5
- package/dist/_chunks/circle-arrow-up-CC_85SuH.js +16 -0
- package/dist/_chunks/cycle-calculator-oOkj5wlB.js +252 -0
- package/dist/_chunks/{date-picker-Bq7xhMA-.js → date-picker-BfHblqwA.js} +2 -2
- package/dist/_chunks/{date-picker-variants-DLi1Va_e.js → date-picker-variants-CXEAx3O_.js} +22 -22
- package/dist/_chunks/{date-range-picker-DcXuI9y7.js → date-range-picker-hcAMs1wO.js} +3 -3
- package/dist/_chunks/{date-time-picker-RimumeLR.js → date-time-picker-H-3Pwqlb.js} +9 -9
- package/dist/_chunks/{de-bTBGdjPS.js → de-DK4A9_a8.js} +2 -2
- package/dist/_chunks/{document-scanner-BqLsGs4Y.js → document-scanner-Cxqvq7GR.js} +2 -2
- package/dist/_chunks/due-date-calculator-DykajWzh.js +256 -0
- package/dist/_chunks/{editable-currency-cell-renderer-CLil9B29.js → editable-currency-cell-renderer-Bh48OHRv.js} +2 -2
- package/dist/_chunks/{el-BWG5RXxa.js → el-B29HXhG5.js} +2 -2
- package/dist/_chunks/{es-DfO_G435.js → es-BOwPVwWn.js} +2 -2
- package/dist/_chunks/fetal-weight-Da-B4P4k.js +122 -0
- package/dist/_chunks/{fr-BTn24bs8.js → fr-DoDBtn0T.js} +2 -2
- package/dist/_chunks/{freemium-paywall-DzpD63WY.js → freemium-paywall-BWaLWje-.js} +2 -2
- package/dist/_chunks/gestational-age-calculator-Bc55hq6t.js +311 -0
- package/dist/_chunks/hcg-doubling-DAnpbale.js +170 -0
- package/dist/_chunks/{hi-Dj3oYd84.js → hi-DGByrKby.js} +2 -2
- package/dist/_chunks/{isSameWeek-HfxKk6Lz.js → isSameWeek-B1odL2vR.js} +2 -2
- package/dist/_chunks/{it-Y85ofIQQ.js → it-B16rEecm.js} +3 -3
- package/dist/_chunks/{ja-CQ7J6YoA.js → ja-B0viOgft.js} +2 -2
- package/dist/_chunks/{marketplace-app-shell-Gfsf78ge.js → marketplace-app-shell-UKSLx9K_.js} +3 -3
- package/dist/_chunks/{nl-D9kHCmp3.js → nl-cBxEX2QU.js} +2 -2
- package/dist/_chunks/{patient-search-CocVcGJ3.js → patient-search-BJOmTmDA.js} +2 -2
- package/dist/_chunks/{patient-shell-CnT4L8gn.js → patient-shell-DUmhXnFq.js} +2 -2
- package/dist/_chunks/{payment-form-BNTx4876.js → payment-form-xmeCkxas.js} +2 -2
- package/dist/_chunks/{pdf-viewer-G8SU6Azw.js → pdf-viewer-q1D3Uion.js} +2 -2
- package/dist/_chunks/{pl-B3Smqpkr.js → pl-DtS08ioY.js} +3 -3
- package/dist/_chunks/{practice-results-BFL_mcDW.js → practice-results-Cq1y8JFD.js} +2 -2
- package/dist/_chunks/pregnancy-dating-48Gfvod1.js +421 -0
- package/dist/_chunks/pregnancy-weight-gain-CCGrvarh.js +322 -0
- package/dist/_chunks/product-hub-panel-CkfZBA3t.js +620 -0
- package/dist/_chunks/{pt-D3J-1c_7.js → pt-yFXs1VvH.js} +2 -2
- package/dist/_chunks/{ro-BKAbbEA3.js → ro-DsCzSrzR.js} +2 -2
- package/dist/_chunks/{ru-BeG8f0Ep.js → ru-DgDxL0pc.js} +3 -3
- package/dist/_chunks/{sidebar-_vJXI9rB.js → sidebar-h78cTNLh.js} +440 -338
- package/dist/_chunks/{sign-document-DPI2pY9V.js → sign-document-CZkAf28g.js} +2 -2
- package/dist/_chunks/{sq-_hRPaeUy.js → sq-DHlCYN67.js} +2 -2
- package/dist/_chunks/subDays-Bs00akhK.js +8 -0
- package/dist/_chunks/{sv-g009fSpe.js → sv-O0QaQs_s.js} +2 -2
- package/dist/_chunks/{tr-OKUOuhMW.js → tr-BmNDRuio.js} +2 -2
- package/dist/_chunks/warning-stack-CXfoAT-_.js +220 -0
- package/dist/_chunks/{workflow-map-ZXw-zsZ8.js → workflow-map-DzX_LI4y.js} +2 -2
- package/dist/_chunks/{zh-CN-De4zwEhx.js → zh-CN-CgVJZEzz.js} +3 -3
- package/dist/agent-catalog.json +44 -1
- package/dist/components/_shared/antenatal-schedule-timeline.d.ts +18 -0
- package/dist/components/_shared/antenatal-schedule.d.ts +68 -0
- package/dist/components/_shared/index.d.ts +3 -0
- package/dist/components/_shared/obstetrics.d.ts +138 -0
- package/dist/components/address-autocomplete/index.js +1 -1
- package/dist/components/ai-consent-banner/index.js +1 -1
- package/dist/components/ai-tools-rail/index.js +1 -1
- package/dist/components/alert/alert.d.ts +2 -2
- package/dist/components/alert/index.js +1 -1
- package/dist/components/audio-recorder/index.js +1 -1
- package/dist/components/bishop-score/bishop-score.d.ts +27 -0
- package/dist/components/bishop-score/bishop.d.ts +30 -0
- package/dist/components/bishop-score/index.d.ts +4 -0
- package/dist/components/bishop-score/index.js +10 -0
- package/dist/components/booking/index.js +1 -1
- package/dist/components/cycle-calculator/cycle.d.ts +5 -0
- package/dist/components/cycle-calculator/index.js +1 -1
- 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/document-scanner/index.js +1 -1
- package/dist/components/due-date-calculator/due-date-calculator.d.ts +19 -1
- package/dist/components/due-date-calculator/gestation.d.ts +1 -59
- package/dist/components/due-date-calculator/index.d.ts +1 -1
- package/dist/components/due-date-calculator/index.js +16 -10
- package/dist/components/fetal-weight/efw.d.ts +25 -0
- package/dist/components/fetal-weight/fetal-weight.d.ts +27 -0
- package/dist/components/fetal-weight/index.d.ts +4 -0
- package/dist/components/fetal-weight/index.js +6 -0
- package/dist/components/freemium-paywall/index.js +1 -1
- package/dist/components/gestational-age-calculator/gestational-age-calculator.d.ts +32 -1
- package/dist/components/gestational-age-calculator/index.js +1 -1
- package/dist/components/hcg-doubling/hcg-doubling.d.ts +31 -0
- package/dist/components/hcg-doubling/hcg.d.ts +33 -0
- package/dist/components/hcg-doubling/index.d.ts +4 -0
- package/dist/components/hcg-doubling/index.js +7 -0
- package/dist/components/index.d.ts +5 -0
- package/dist/components/patient-search/index.js +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-dating/index.d.ts +3 -0
- package/dist/components/pregnancy-dating/index.js +5 -0
- package/dist/components/pregnancy-dating/pregnancy-dating.d.ts +60 -0
- package/dist/components/pregnancy-weight-gain/index.js +1 -1
- package/dist/components/pregnancy-weight-gain/pregnancy-weight-gain.d.ts +7 -0
- package/dist/components/pregnancy-weight-gain/weight-gain.d.ts +33 -8
- package/dist/components/product-hub-tray/index.d.ts +8 -0
- package/dist/components/product-hub-tray/index.js +10 -0
- package/dist/components/product-hub-tray/product-hub-panel.agent.d.ts +4 -0
- package/dist/components/product-hub-tray/product-hub-panel.d.ts +54 -0
- package/dist/components/product-hub-tray/product-hub-tray.agent.d.ts +4 -0
- package/dist/components/product-hub-tray/product-hub-tray.d.ts +115 -0
- package/dist/components/sidebar/index.d.ts +2 -2
- package/dist/components/sidebar/index.js +12 -11
- package/dist/components/sidebar/sidebar.d.ts +14 -1
- package/dist/components/sign-document/index.js +1 -1
- package/dist/components/warning-stack/index.js +1 -1
- package/dist/components/workflow/index.js +1 -1
- package/dist/i18n/locales/ar.d.ts +262 -1
- package/dist/i18n/locales/ar.js +261 -2
- package/dist/i18n/locales/de.d.ts +262 -1
- package/dist/i18n/locales/de.js +261 -2
- package/dist/i18n/locales/el.d.ts +262 -1
- package/dist/i18n/locales/el.js +261 -2
- package/dist/i18n/locales/en.d.ts +262 -1
- package/dist/i18n/locales/en.js +261 -2
- package/dist/i18n/locales/es.d.ts +262 -1
- package/dist/i18n/locales/es.js +261 -2
- package/dist/i18n/locales/fr.d.ts +262 -1
- package/dist/i18n/locales/fr.js +261 -2
- package/dist/i18n/locales/hi.d.ts +262 -1
- package/dist/i18n/locales/hi.js +261 -2
- package/dist/i18n/locales/it.d.ts +262 -1
- package/dist/i18n/locales/it.js +261 -2
- package/dist/i18n/locales/ja.d.ts +262 -1
- package/dist/i18n/locales/ja.js +261 -2
- package/dist/i18n/locales/nl.d.ts +262 -1
- package/dist/i18n/locales/nl.js +261 -2
- package/dist/i18n/locales/pl.d.ts +262 -1
- package/dist/i18n/locales/pl.js +261 -2
- package/dist/i18n/locales/pt.d.ts +262 -1
- package/dist/i18n/locales/pt.js +261 -2
- package/dist/i18n/locales/ro.d.ts +262 -1
- package/dist/i18n/locales/ro.js +261 -2
- package/dist/i18n/locales/ru.d.ts +262 -1
- package/dist/i18n/locales/ru.js +261 -2
- package/dist/i18n/locales/sq.d.ts +262 -1
- package/dist/i18n/locales/sq.js +261 -2
- package/dist/i18n/locales/sv.d.ts +262 -1
- package/dist/i18n/locales/sv.js +261 -2
- package/dist/i18n/locales/tr.d.ts +262 -1
- package/dist/i18n/locales/tr.js +261 -2
- package/dist/i18n/locales/zh.d.ts +262 -1
- package/dist/i18n/locales/zh.js +261 -2
- package/dist/index.js +661 -632
- package/dist/locales/ar.json +263 -2
- package/dist/locales/de.json +263 -2
- package/dist/locales/el.json +263 -2
- package/dist/locales/en.json +263 -2
- package/dist/locales/es.json +263 -2
- package/dist/locales/fr.json +263 -2
- package/dist/locales/hi.json +263 -2
- package/dist/locales/it.json +263 -2
- package/dist/locales/ja.json +263 -2
- package/dist/locales/nl.json +263 -2
- package/dist/locales/pl.json +263 -2
- package/dist/locales/pt.json +263 -2
- package/dist/locales/ro.json +263 -2
- package/dist/locales/ru.json +263 -2
- package/dist/locales/sq.json +263 -2
- package/dist/locales/sv.json +263 -2
- package/dist/locales/tr.json +263 -2
- package/dist/locales/zh.json +263 -2
- package/dist/patterns/marketplace-app-shell/index.js +1 -1
- package/dist/patterns/patient-shell/index.js +1 -1
- package/dist/tokens.css +1 -1
- package/package.json +21 -1
- package/dist/_chunks/cycle-calculator-DYvGm_m1.js +0 -211
- package/dist/_chunks/due-date-calculator-BXd3ANj7.js +0 -216
- package/dist/_chunks/gestation-mWF4AXea.js +0 -50
- package/dist/_chunks/gestational-age-calculator-Crj6FgZw.js +0 -203
- package/dist/_chunks/pregnancy-weight-gain-C7dK89jE.js +0 -246
- package/dist/_chunks/subDays-Dv7q9S7u.js +0 -8
- package/dist/_chunks/warning-stack-DNR3-IbP.js +0 -180
|
@@ -3,7 +3,7 @@ import { forwardRef as Fe, useId as Te, useRef as m, useState as Y, useEffect as
|
|
|
3
3
|
import { c as z } from "./index-D2ZczOXr.js";
|
|
4
4
|
import { useTranslation as $e } from "react-i18next";
|
|
5
5
|
import { B as H } from "./button-DD_0Xdmr.js";
|
|
6
|
-
import { A as ae } from "./alert-
|
|
6
|
+
import { A as ae } from "./alert-CUTxnym2.js";
|
|
7
7
|
import { L as he, F as Xe } from "./file-upload-BosbPDb1.js";
|
|
8
8
|
import { u as Ze } from "./use-controllable-state-BiY4xTzM.js";
|
|
9
9
|
import { u as Ge } from "./registry-nPAVE19X.js";
|
|
@@ -700,4 +700,4 @@ export {
|
|
|
700
700
|
ur as D,
|
|
701
701
|
nr as d
|
|
702
702
|
};
|
|
703
|
-
//# sourceMappingURL=document-scanner-
|
|
703
|
+
//# sourceMappingURL=document-scanner-Cxqvq7GR.js.map
|
|
@@ -0,0 +1,256 @@
|
|
|
1
|
+
import { jsxs as s, jsx as a } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as q, useState as c, useMemo as u, useEffect as J } from "react";
|
|
3
|
+
import { c as Q } from "./index-D2ZczOXr.js";
|
|
4
|
+
import { useTranslation as W } from "react-i18next";
|
|
5
|
+
import { R as m } from "./radio-TWf9Q-mp.js";
|
|
6
|
+
import { R as T } from "./radio-group-CLjK-SlK.js";
|
|
7
|
+
import { F as g } from "./form-field-BOm9hK35.js";
|
|
8
|
+
import { D as b } from "./date-picker-BfHblqwA.js";
|
|
9
|
+
import { N as S } from "./number-input-Dj5L3pXK.js";
|
|
10
|
+
import { C as k } from "./card-DPmk26CL.js";
|
|
11
|
+
import { B } from "./badge-zsf5i5bH.js";
|
|
12
|
+
import { I as X } from "./insert-result-DNdi_JYW.js";
|
|
13
|
+
import { D as y, r as Z, c as ee, e as ae, f as te, A as le, h as re, i as se } from "./antenatal-schedule-timeline-CdiqkF05.js";
|
|
14
|
+
const de = Q("ds:flex ds:flex-col ds:gap-[var(--spacing-lg)]", {
|
|
15
|
+
variants: {
|
|
16
|
+
width: { full: "ds:w-full", auto: "ds:inline-flex" }
|
|
17
|
+
},
|
|
18
|
+
defaultVariants: { width: "full" }
|
|
19
|
+
}), oe = {
|
|
20
|
+
lmp: "dueDateCalculator.lmpDate",
|
|
21
|
+
conception: "dueDateCalculator.conceptionDate",
|
|
22
|
+
ivf: "dueDateCalculator.transferDate"
|
|
23
|
+
}, ce = q(
|
|
24
|
+
({
|
|
25
|
+
defaultMethod: F = "lmp",
|
|
26
|
+
onResultChange: p,
|
|
27
|
+
onInsert: x,
|
|
28
|
+
insertVariant: N = "insert",
|
|
29
|
+
onCopy: I,
|
|
30
|
+
onError: $,
|
|
31
|
+
insertBrand: R,
|
|
32
|
+
showSchedule: A = !1,
|
|
33
|
+
scheduleOptions: L,
|
|
34
|
+
id: _,
|
|
35
|
+
width: H,
|
|
36
|
+
className: M
|
|
37
|
+
}, O) => {
|
|
38
|
+
const { t: e, i18n: w } = W(), [r, V] = c(F), [o, z] = c(void 0), [v, G] = c(
|
|
39
|
+
y
|
|
40
|
+
), [C, j] = c(5), [D, Y] = c(null), [f, K] = c(void 0), E = u(() => /* @__PURE__ */ new Date(), []), [n, P] = c(() => /* @__PURE__ */ new Date()), l = u(() => r !== "lmp" || !o || D === null || !f ? null : Z({ lmp: o, scanDate: f, crlMm: D }), [r, o, D, f]), t = u(() => {
|
|
41
|
+
if (!o) return null;
|
|
42
|
+
const d = r === "lmp" && (l != null && l.redated) ? l.gestationalStart : o, U = r === "lmp" && (l != null && l.redated) ? y : v ?? y;
|
|
43
|
+
return ee(
|
|
44
|
+
{
|
|
45
|
+
method: r,
|
|
46
|
+
date: d,
|
|
47
|
+
cycleLength: U,
|
|
48
|
+
embryoAge: C
|
|
49
|
+
},
|
|
50
|
+
n
|
|
51
|
+
);
|
|
52
|
+
}, [r, o, v, C, l, n]), i = u(
|
|
53
|
+
() => new Intl.DateTimeFormat(w.language, { dateStyle: "long" }),
|
|
54
|
+
[w.language]
|
|
55
|
+
);
|
|
56
|
+
J(() => {
|
|
57
|
+
p == null || p(t);
|
|
58
|
+
}, [t, p]);
|
|
59
|
+
const h = u(() => !A || !t ? null : ae(t.gestationalStart, {
|
|
60
|
+
...L,
|
|
61
|
+
today: n
|
|
62
|
+
}), [A, t, n, L]);
|
|
63
|
+
return /* @__PURE__ */ s(
|
|
64
|
+
"div",
|
|
65
|
+
{
|
|
66
|
+
ref: O,
|
|
67
|
+
"data-component": "due-date-calculator",
|
|
68
|
+
"data-component-id": _,
|
|
69
|
+
className: de({ width: H, className: M }),
|
|
70
|
+
children: [
|
|
71
|
+
/* @__PURE__ */ s(
|
|
72
|
+
T,
|
|
73
|
+
{
|
|
74
|
+
label: e("dueDateCalculator.method.label"),
|
|
75
|
+
variant: "horizontal",
|
|
76
|
+
value: r,
|
|
77
|
+
onValueChange: (d) => V(d),
|
|
78
|
+
children: [
|
|
79
|
+
/* @__PURE__ */ a(m, { label: e("dueDateCalculator.method.lmp"), value: "lmp" }),
|
|
80
|
+
/* @__PURE__ */ a(
|
|
81
|
+
m,
|
|
82
|
+
{
|
|
83
|
+
label: e("dueDateCalculator.method.conception"),
|
|
84
|
+
value: "conception"
|
|
85
|
+
}
|
|
86
|
+
),
|
|
87
|
+
/* @__PURE__ */ a(m, { label: e("dueDateCalculator.method.ivf"), value: "ivf" })
|
|
88
|
+
]
|
|
89
|
+
}
|
|
90
|
+
),
|
|
91
|
+
/* @__PURE__ */ s("div", { className: "ds:grid ds:grid-cols-1 ds:gap-[var(--spacing-md)] ds:sm:grid-cols-2", children: [
|
|
92
|
+
/* @__PURE__ */ a(g, { label: e(oe[r]), children: /* @__PURE__ */ a(b, { value: o, onChange: z, maxDate: E }) }),
|
|
93
|
+
r === "lmp" && /* @__PURE__ */ a(
|
|
94
|
+
g,
|
|
95
|
+
{
|
|
96
|
+
label: e("dueDateCalculator.cycleLength"),
|
|
97
|
+
description: e("dueDateCalculator.cycleLengthHint"),
|
|
98
|
+
children: /* @__PURE__ */ a(
|
|
99
|
+
S,
|
|
100
|
+
{
|
|
101
|
+
mode: "integer",
|
|
102
|
+
min: 20,
|
|
103
|
+
max: 45,
|
|
104
|
+
value: v,
|
|
105
|
+
onChange: G
|
|
106
|
+
}
|
|
107
|
+
)
|
|
108
|
+
}
|
|
109
|
+
),
|
|
110
|
+
r === "ivf" && /* @__PURE__ */ s(
|
|
111
|
+
T,
|
|
112
|
+
{
|
|
113
|
+
label: e("dueDateCalculator.embryoAge"),
|
|
114
|
+
variant: "horizontal",
|
|
115
|
+
value: String(C),
|
|
116
|
+
onValueChange: (d) => j(Number(d)),
|
|
117
|
+
children: [
|
|
118
|
+
/* @__PURE__ */ a(m, { label: e("dueDateCalculator.day3"), value: "3" }),
|
|
119
|
+
/* @__PURE__ */ a(m, { label: e("dueDateCalculator.day5"), value: "5" })
|
|
120
|
+
]
|
|
121
|
+
}
|
|
122
|
+
)
|
|
123
|
+
] }),
|
|
124
|
+
/* @__PURE__ */ a(
|
|
125
|
+
g,
|
|
126
|
+
{
|
|
127
|
+
label: e("dueDateCalculator.asOfDate"),
|
|
128
|
+
description: e("dueDateCalculator.asOfDateHint"),
|
|
129
|
+
children: /* @__PURE__ */ a(b, { value: n, onChange: (d) => d && P(d) })
|
|
130
|
+
}
|
|
131
|
+
),
|
|
132
|
+
r === "lmp" ? /* @__PURE__ */ s("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
|
|
133
|
+
/* @__PURE__ */ s("div", { className: "ds:grid ds:grid-cols-1 ds:gap-[var(--spacing-md)] ds:sm:grid-cols-2", children: [
|
|
134
|
+
/* @__PURE__ */ a(
|
|
135
|
+
g,
|
|
136
|
+
{
|
|
137
|
+
label: e("dueDateCalculator.crl"),
|
|
138
|
+
description: e("dueDateCalculator.crlHint"),
|
|
139
|
+
children: /* @__PURE__ */ a(
|
|
140
|
+
S,
|
|
141
|
+
{
|
|
142
|
+
mode: "decimal",
|
|
143
|
+
min: 0,
|
|
144
|
+
step: 0.1,
|
|
145
|
+
value: D,
|
|
146
|
+
onChange: Y
|
|
147
|
+
}
|
|
148
|
+
)
|
|
149
|
+
}
|
|
150
|
+
),
|
|
151
|
+
/* @__PURE__ */ a(g, { label: e("dueDateCalculator.scanDate"), children: /* @__PURE__ */ a(
|
|
152
|
+
b,
|
|
153
|
+
{
|
|
154
|
+
value: f,
|
|
155
|
+
onChange: K,
|
|
156
|
+
maxDate: E
|
|
157
|
+
}
|
|
158
|
+
) })
|
|
159
|
+
] }),
|
|
160
|
+
l ? /* @__PURE__ */ s("div", { className: "ds:flex ds:flex-wrap ds:items-center ds:gap-[var(--spacing-sm)]", children: [
|
|
161
|
+
/* @__PURE__ */ a(B, { variant: l.redated ? "warning" : "success", children: l.redated ? e("dueDateCalculator.redated", {
|
|
162
|
+
days: l.discrepancyDays
|
|
163
|
+
}) : e("dueDateCalculator.datesAgree") }),
|
|
164
|
+
l.crlInRange ? null : /* @__PURE__ */ a("span", { className: "type-meta ds:text-muted-foreground", children: e("dueDateCalculator.crlOutOfRange") })
|
|
165
|
+
] }) : null
|
|
166
|
+
] }) : null,
|
|
167
|
+
/* @__PURE__ */ a("p", { className: "ds:sr-only", role: "status", "aria-live": "polite", children: t ? `${e("dueDateCalculator.result.dueDateLabel")}: ${i.format(
|
|
168
|
+
t.dueDate
|
|
169
|
+
)}. ${e("dueDateCalculator.result.trimesterLabel")}: ${e(
|
|
170
|
+
`dueDateCalculator.trimester.${t.trimester}`
|
|
171
|
+
)}.` : "" }),
|
|
172
|
+
t ? /* @__PURE__ */ a(k, { variant: "elevated", children: /* @__PURE__ */ a(k.Body, { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]", children: /* @__PURE__ */ s("dl", { className: "ds:grid ds:grid-cols-1 ds:gap-[var(--spacing-md)] ds:sm:grid-cols-3", children: [
|
|
173
|
+
/* @__PURE__ */ s("div", { className: "ds:flex ds:flex-col ds:items-start ds:gap-[var(--spacing-xs)]", children: [
|
|
174
|
+
/* @__PURE__ */ a("dt", { className: "type-label ds:text-muted-foreground", children: e("dueDateCalculator.result.trimesterLabel") }),
|
|
175
|
+
/* @__PURE__ */ a("dd", { children: /* @__PURE__ */ a(
|
|
176
|
+
B,
|
|
177
|
+
{
|
|
178
|
+
variant: te[t.trimester],
|
|
179
|
+
size: "lg",
|
|
180
|
+
children: e(`dueDateCalculator.trimester.${t.trimester}`)
|
|
181
|
+
}
|
|
182
|
+
) })
|
|
183
|
+
] }),
|
|
184
|
+
/* @__PURE__ */ s("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)]", children: [
|
|
185
|
+
/* @__PURE__ */ a("dt", { className: "type-label ds:text-muted-foreground", children: e("dueDateCalculator.result.gestationLabel") }),
|
|
186
|
+
/* @__PURE__ */ a("dd", { className: "type-body ds:text-foreground", children: t.gestationalAge ? e("dueDateCalculator.result.gestation", {
|
|
187
|
+
weeks: t.gestationalAge.weeks,
|
|
188
|
+
days: t.gestationalAge.days
|
|
189
|
+
}) : "—" })
|
|
190
|
+
] }),
|
|
191
|
+
/* @__PURE__ */ s("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)]", children: [
|
|
192
|
+
/* @__PURE__ */ a("dt", { className: "type-label ds:text-muted-foreground", children: e("dueDateCalculator.result.dueDateLabel") }),
|
|
193
|
+
/* @__PURE__ */ a("dd", { className: "type-metric ds:text-foreground", children: i.format(t.dueDate) })
|
|
194
|
+
] })
|
|
195
|
+
] }) }) }) : /* @__PURE__ */ a("p", { className: "type-body ds:text-muted-foreground", children: e("dueDateCalculator.empty") }),
|
|
196
|
+
h ? /* @__PURE__ */ a(le, { events: h }) : null,
|
|
197
|
+
t && (N === "copy" || x) ? /* @__PURE__ */ a(
|
|
198
|
+
X,
|
|
199
|
+
{
|
|
200
|
+
variant: N,
|
|
201
|
+
onInsert: x,
|
|
202
|
+
onCopy: I,
|
|
203
|
+
onError: $,
|
|
204
|
+
card: {
|
|
205
|
+
title: e("insert.title.dueDate"),
|
|
206
|
+
icon: "calendar-heart",
|
|
207
|
+
highlight: i.format(t.dueDate),
|
|
208
|
+
// Chip tinted with the trimester's semantic token so the inserted
|
|
209
|
+
// PNG carries the same clinical-stage colour as the on-screen
|
|
210
|
+
// trimester badge — with the contrast-safe orange override for the
|
|
211
|
+
// `--warning` third trimester.
|
|
212
|
+
highlightToken: se(t.trimester),
|
|
213
|
+
brand: R,
|
|
214
|
+
fields: [
|
|
215
|
+
{
|
|
216
|
+
// The estimated date of delivery → calendar glyph.
|
|
217
|
+
icon: "calendar",
|
|
218
|
+
label: e("dueDateCalculator.result.dueDateLabel"),
|
|
219
|
+
value: i.format(t.dueDate)
|
|
220
|
+
},
|
|
221
|
+
{
|
|
222
|
+
// Gestational age is an elapsed duration → clock glyph.
|
|
223
|
+
icon: "clock",
|
|
224
|
+
label: e("dueDateCalculator.result.gestationLabel"),
|
|
225
|
+
value: t.gestationalAge ? e("dueDateCalculator.result.gestation", {
|
|
226
|
+
weeks: t.gestationalAge.weeks,
|
|
227
|
+
days: t.gestationalAge.days
|
|
228
|
+
}) : "—"
|
|
229
|
+
},
|
|
230
|
+
{
|
|
231
|
+
// Trimester is a clinical-stage classification → tag.
|
|
232
|
+
icon: "tag",
|
|
233
|
+
label: e("dueDateCalculator.result.trimesterLabel"),
|
|
234
|
+
value: e(`dueDateCalculator.trimester.${t.trimester}`)
|
|
235
|
+
},
|
|
236
|
+
// When the schedule is shown, the single Insert button carries
|
|
237
|
+
// the exam windows too (no second button).
|
|
238
|
+
...h ? re(
|
|
239
|
+
h,
|
|
240
|
+
e,
|
|
241
|
+
(d) => i.format(d)
|
|
242
|
+
) : []
|
|
243
|
+
]
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
) : null
|
|
247
|
+
]
|
|
248
|
+
}
|
|
249
|
+
);
|
|
250
|
+
}
|
|
251
|
+
);
|
|
252
|
+
ce.displayName = "DueDateCalculator";
|
|
253
|
+
export {
|
|
254
|
+
ce as D
|
|
255
|
+
};
|
|
256
|
+
//# sourceMappingURL=due-date-calculator-DykajWzh.js.map
|
|
@@ -27,7 +27,7 @@ import { S as Ee } from "./select-hsCaJSX3.js";
|
|
|
27
27
|
import { u as zt } from "./use-prefers-reduced-motion-BMwIQRjB.js";
|
|
28
28
|
import { u as At } from "./use-theme-C2dHKUAN.js";
|
|
29
29
|
import { u as Pt } from "./registry-nPAVE19X.js";
|
|
30
|
-
import { D as Ie } from "./date-range-picker-
|
|
30
|
+
import { D as Ie } from "./date-range-picker-hcAMs1wO.js";
|
|
31
31
|
import { M as Ot } from "./multi-select-DOLO3K_z.js";
|
|
32
32
|
import { A as ze } from "./autocomplete-CDqxB68B.js";
|
|
33
33
|
import { N as ee } from "./number-input-Dj5L3pXK.js";
|
|
@@ -2322,4 +2322,4 @@ export {
|
|
|
2322
2322
|
Be as q,
|
|
2323
2323
|
Cn as u
|
|
2324
2324
|
};
|
|
2325
|
-
//# sourceMappingURL=editable-currency-cell-renderer-
|
|
2325
|
+
//# sourceMappingURL=editable-currency-cell-renderer-Bh48OHRv.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { q as s, r as i, v as o, w as d } from "./date-picker-variants-
|
|
1
|
+
import { q as s, r as i, v as o, w as d } from "./date-picker-variants-CXEAx3O_.js";
|
|
2
2
|
const u = {
|
|
3
3
|
lessThanXSeconds: {
|
|
4
4
|
one: "λιγότερο από ένα δευτερόλεπτο",
|
|
@@ -370,4 +370,4 @@ const u = {
|
|
|
370
370
|
export {
|
|
371
371
|
O as el
|
|
372
372
|
};
|
|
373
|
-
//# sourceMappingURL=el-
|
|
373
|
+
//# sourceMappingURL=el-B29HXhG5.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { q as d, r as o, v as r, w as s } from "./date-picker-variants-
|
|
1
|
+
import { q as d, r as o, v as r, w as s } from "./date-picker-variants-CXEAx3O_.js";
|
|
2
2
|
const m = {
|
|
3
3
|
lessThanXSeconds: {
|
|
4
4
|
one: "menos de un segundo",
|
|
@@ -370,4 +370,4 @@ const m = {
|
|
|
370
370
|
export {
|
|
371
371
|
q as es
|
|
372
372
|
};
|
|
373
|
-
//# sourceMappingURL=es-
|
|
373
|
+
//# sourceMappingURL=es-BOwPVwWn.js.map
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
import { jsxs as m, jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as T, useState as g, useMemo as W, useEffect as j } from "react";
|
|
3
|
+
import { c as V } from "./index-D2ZczOXr.js";
|
|
4
|
+
import { useTranslation as A } from "react-i18next";
|
|
5
|
+
import { F as D } from "./form-field-BOm9hK35.js";
|
|
6
|
+
import { N as E } from "./number-input-Dj5L3pXK.js";
|
|
7
|
+
import { C as N } from "./card-DPmk26CL.js";
|
|
8
|
+
import { B as H } from "./badge-zsf5i5bH.js";
|
|
9
|
+
import { I as S } from "./insert-result-DNdi_JYW.js";
|
|
10
|
+
function h(l) {
|
|
11
|
+
return typeof l == "number" && Number.isFinite(l) && l > 0 ? l / 10 : null;
|
|
12
|
+
}
|
|
13
|
+
function q(l) {
|
|
14
|
+
const n = h(l.bpdMm), r = h(l.hcMm), s = h(l.acMm), d = h(l.flMm);
|
|
15
|
+
if (s === null || d === null) return null;
|
|
16
|
+
let o, c;
|
|
17
|
+
return n !== null && r !== null ? (o = 1.3596 - 386e-5 * s * d + 64e-4 * r + 61e-5 * n * s + 0.0424 * s + 0.174 * d, c = "hadlock4") : (o = 1.304 + 0.05281 * s + 0.1938 * d - 4e-3 * s * d, c = "hadlock1"), { grams: Math.round(10 ** o), method: c };
|
|
18
|
+
}
|
|
19
|
+
const z = V("ds:flex ds:flex-col ds:gap-[var(--spacing-lg)]", {
|
|
20
|
+
variants: {
|
|
21
|
+
width: { full: "ds:w-full", auto: "ds:inline-flex" }
|
|
22
|
+
},
|
|
23
|
+
defaultVariants: { width: "full" }
|
|
24
|
+
}), G = T(
|
|
25
|
+
({
|
|
26
|
+
onResultChange: l,
|
|
27
|
+
onInsert: n,
|
|
28
|
+
insertVariant: r = "insert",
|
|
29
|
+
onCopy: s,
|
|
30
|
+
onError: d,
|
|
31
|
+
insertBrand: o,
|
|
32
|
+
id: c,
|
|
33
|
+
width: y,
|
|
34
|
+
className: M
|
|
35
|
+
}, w) => {
|
|
36
|
+
const { t: e, i18n: x } = A(), [u, F] = g(null), [p, $] = g(null), [b, B] = g(null), [v, L] = g(null), a = W(
|
|
37
|
+
() => q({ bpdMm: u, hcMm: p, acMm: b, flMm: v }),
|
|
38
|
+
[u, p, b, v]
|
|
39
|
+
);
|
|
40
|
+
j(() => {
|
|
41
|
+
l == null || l(a);
|
|
42
|
+
}, [a, l]);
|
|
43
|
+
const k = W(
|
|
44
|
+
() => new Intl.NumberFormat(x.language, { maximumFractionDigits: 0 }),
|
|
45
|
+
[x.language]
|
|
46
|
+
), C = e("fetalWeight.units.mm"), f = (i) => e("fetalWeight.efwValue", { grams: k.format(i.grams) }), I = [
|
|
47
|
+
{ label: e("fetalWeight.bpd"), value: u, onChange: F },
|
|
48
|
+
{ label: e("fetalWeight.hc"), value: p, onChange: $ },
|
|
49
|
+
{ label: e("fetalWeight.ac"), value: b, onChange: B },
|
|
50
|
+
{ label: e("fetalWeight.fl"), value: v, onChange: L }
|
|
51
|
+
];
|
|
52
|
+
return /* @__PURE__ */ m(
|
|
53
|
+
"div",
|
|
54
|
+
{
|
|
55
|
+
ref: w,
|
|
56
|
+
"data-component": "fetal-weight",
|
|
57
|
+
"data-component-id": c,
|
|
58
|
+
className: z({ width: y, className: M }),
|
|
59
|
+
children: [
|
|
60
|
+
/* @__PURE__ */ t("div", { className: "ds:grid ds:grid-cols-1 ds:gap-[var(--spacing-md)] ds:sm:grid-cols-2", children: I.map((i) => /* @__PURE__ */ t(D, { label: `${i.label} (${C})`, children: /* @__PURE__ */ t(
|
|
61
|
+
E,
|
|
62
|
+
{
|
|
63
|
+
mode: "decimal",
|
|
64
|
+
min: 0,
|
|
65
|
+
step: 0.1,
|
|
66
|
+
value: i.value,
|
|
67
|
+
onChange: i.onChange
|
|
68
|
+
}
|
|
69
|
+
) }, i.label)) }),
|
|
70
|
+
/* @__PURE__ */ t("p", { className: "ds:sr-only", role: "status", "aria-live": "polite", children: a ? `${e("fetalWeight.efwLabel")}: ${f(a)}.` : "" }),
|
|
71
|
+
a ? /* @__PURE__ */ t(N, { variant: "elevated", children: /* @__PURE__ */ m(N.Body, { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]", children: [
|
|
72
|
+
/* @__PURE__ */ m("dl", { className: "ds:grid ds:grid-cols-1 ds:gap-[var(--spacing-md)] ds:sm:grid-cols-2", children: [
|
|
73
|
+
/* @__PURE__ */ m("div", { className: "ds:flex ds:flex-col ds:items-start ds:gap-[var(--spacing-xs)]", children: [
|
|
74
|
+
/* @__PURE__ */ t("dt", { className: "type-label ds:text-muted-foreground", children: e("fetalWeight.efwLabel") }),
|
|
75
|
+
/* @__PURE__ */ t("dd", { className: "type-metric ds:text-foreground", children: f(a) })
|
|
76
|
+
] }),
|
|
77
|
+
/* @__PURE__ */ m("div", { className: "ds:flex ds:flex-col ds:items-end ds:gap-[var(--spacing-xs)] ds:text-end", children: [
|
|
78
|
+
/* @__PURE__ */ t("dt", { className: "type-label ds:text-muted-foreground", children: e("fetalWeight.methodLabel") }),
|
|
79
|
+
/* @__PURE__ */ t("dd", { children: /* @__PURE__ */ t(H, { variant: "info", children: e(`fetalWeight.method.${a.method}`) }) })
|
|
80
|
+
] })
|
|
81
|
+
] }),
|
|
82
|
+
/* @__PURE__ */ t("p", { className: "type-body-sm ds:text-muted-foreground", children: e("fetalWeight.disclaimer") }),
|
|
83
|
+
r === "copy" || n ? /* @__PURE__ */ t(
|
|
84
|
+
S,
|
|
85
|
+
{
|
|
86
|
+
onInsert: n,
|
|
87
|
+
variant: r,
|
|
88
|
+
onCopy: s,
|
|
89
|
+
onError: d,
|
|
90
|
+
card: {
|
|
91
|
+
title: e("insert.title.fetalWeight"),
|
|
92
|
+
icon: "scale",
|
|
93
|
+
highlight: f(a),
|
|
94
|
+
highlightToken: "--info",
|
|
95
|
+
brand: o,
|
|
96
|
+
fields: [
|
|
97
|
+
{
|
|
98
|
+
icon: "scale",
|
|
99
|
+
label: e("fetalWeight.efwLabel"),
|
|
100
|
+
value: f(a)
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
icon: "activity",
|
|
104
|
+
label: e("fetalWeight.methodLabel"),
|
|
105
|
+
value: e(`fetalWeight.method.${a.method}`)
|
|
106
|
+
}
|
|
107
|
+
]
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
) : null
|
|
111
|
+
] }) }) : /* @__PURE__ */ t("p", { className: "type-body ds:text-muted-foreground", children: e("fetalWeight.empty") })
|
|
112
|
+
]
|
|
113
|
+
}
|
|
114
|
+
);
|
|
115
|
+
}
|
|
116
|
+
);
|
|
117
|
+
G.displayName = "FetalWeight";
|
|
118
|
+
export {
|
|
119
|
+
G as F,
|
|
120
|
+
q as e
|
|
121
|
+
};
|
|
122
|
+
//# sourceMappingURL=fetal-weight-Da-B4P4k.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { q as m, r, v as o, w as d } from "./date-picker-variants-
|
|
1
|
+
import { q as m, r, v as o, w as d } from "./date-picker-variants-CXEAx3O_.js";
|
|
2
2
|
const u = {
|
|
3
3
|
lessThanXSeconds: {
|
|
4
4
|
one: "moins d’une seconde",
|
|
@@ -335,4 +335,4 @@ const u = {
|
|
|
335
335
|
export {
|
|
336
336
|
q as fr
|
|
337
337
|
};
|
|
338
|
-
//# sourceMappingURL=fr-
|
|
338
|
+
//# sourceMappingURL=fr-DoDBtn0T.js.map
|
|
@@ -8,7 +8,7 @@ import { u as X } from "./use-controllable-state-BiY4xTzM.js";
|
|
|
8
8
|
import { u as Y } from "./registry-nPAVE19X.js";
|
|
9
9
|
import { B as I } from "./button-DD_0Xdmr.js";
|
|
10
10
|
import { P as Z } from "./progress-kzIRcdaq.js";
|
|
11
|
-
import { f as $ } from "./payment-form-
|
|
11
|
+
import { f as $ } from "./payment-form-xmeCkxas.js";
|
|
12
12
|
import { T as ee } from "./triangle-alert-CBPUIzQo.js";
|
|
13
13
|
import { C as se } from "./check-DPdL_Sm7.js";
|
|
14
14
|
const ae = {
|
|
@@ -265,4 +265,4 @@ export {
|
|
|
265
265
|
te as F,
|
|
266
266
|
ae as f
|
|
267
267
|
};
|
|
268
|
-
//# sourceMappingURL=freemium-paywall-
|
|
268
|
+
//# sourceMappingURL=freemium-paywall-BWaLWje-.js.map
|