@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
|
@@ -0,0 +1,421 @@
|
|
|
1
|
+
import { jsxs as l, jsx as a, Fragment as ye } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as fe, useState as i, useMemo as o, useEffect as De } from "react";
|
|
3
|
+
import { c as ve } from "./index-D2ZczOXr.js";
|
|
4
|
+
import { useTranslation as be } from "react-i18next";
|
|
5
|
+
import { R as r } from "./radio-TWf9Q-mp.js";
|
|
6
|
+
import { R as L } from "./radio-group-CLjK-SlK.js";
|
|
7
|
+
import { F as g } from "./form-field-BOm9hK35.js";
|
|
8
|
+
import { D as O } from "./date-picker-BfHblqwA.js";
|
|
9
|
+
import { N as _ } from "./number-input-Dj5L3pXK.js";
|
|
10
|
+
import { S as xe } from "./select-hsCaJSX3.js";
|
|
11
|
+
import { S as Ne } from "./switch-BJ6HD3Mn.js";
|
|
12
|
+
import { C as M } from "./card-DPmk26CL.js";
|
|
13
|
+
import { B as j } from "./badge-zsf5i5bH.js";
|
|
14
|
+
import { I as Se } from "./insert-result-DNdi_JYW.js";
|
|
15
|
+
import { D as k, r as Ae, c as Le, g as ke, e as Ce, f as Te, A as we, h as Ee, i as Re, j as P, G as Fe } from "./antenatal-schedule-timeline-CdiqkF05.js";
|
|
16
|
+
import { s as C } from "./subDays-Bs00akhK.js";
|
|
17
|
+
import { i as Ie } from "./date-picker-variants-CXEAx3O_.js";
|
|
18
|
+
const Oe = ve("ds:flex ds:flex-col ds:gap-[var(--spacing-lg)]", {
|
|
19
|
+
variants: {
|
|
20
|
+
width: { full: "ds:w-full", auto: "ds:inline-flex" }
|
|
21
|
+
},
|
|
22
|
+
defaultVariants: { width: "full" }
|
|
23
|
+
}), _e = {
|
|
24
|
+
lmp: "pregnancyDating.lmpDate",
|
|
25
|
+
conception: "pregnancyDating.conceptionDate",
|
|
26
|
+
ivf: "pregnancyDating.transferDate",
|
|
27
|
+
edd: "pregnancyDating.eddDate"
|
|
28
|
+
}, je = fe(
|
|
29
|
+
({
|
|
30
|
+
defaultMethod: z = "lmp",
|
|
31
|
+
defaultReferenceDate: Y,
|
|
32
|
+
onResultChange: y,
|
|
33
|
+
onInsert: $,
|
|
34
|
+
insertVariant: B = "insert",
|
|
35
|
+
onCopy: K,
|
|
36
|
+
onError: U,
|
|
37
|
+
insertBrand: q,
|
|
38
|
+
showSchedule: T = !1,
|
|
39
|
+
defaultPlurality: J = "singleton",
|
|
40
|
+
defaultChorionicity: Q = "unknown",
|
|
41
|
+
defaultRhNegative: W = !1,
|
|
42
|
+
defaultGdmRisk: X,
|
|
43
|
+
scheduleOptions: V,
|
|
44
|
+
id: Z,
|
|
45
|
+
width: ee,
|
|
46
|
+
className: ae
|
|
47
|
+
}, te) => {
|
|
48
|
+
const { t: e, i18n: f } = be(), [s, ne] = i(z), [d, le] = i(
|
|
49
|
+
Y
|
|
50
|
+
), [w, se] = i(
|
|
51
|
+
k
|
|
52
|
+
), [E, ie] = i(5), [D, re] = i(null), [v, de] = i(void 0), [b, ce] = i(
|
|
53
|
+
null
|
|
54
|
+
), [m, oe] = i(() => /* @__PURE__ */ new Date()), [x, ge] = i(J), [R, me] = i(Q), [F, pe] = i(W), [N, ue] = i(
|
|
55
|
+
X ?? "none"
|
|
56
|
+
), G = o(() => /* @__PURE__ */ new Date(), []), c = o(() => s !== "lmp" || !d || D === null || !v ? null : Ae({ lmp: d, scanDate: v, crlMm: D }), [s, d, D, v]), p = o(() => {
|
|
57
|
+
if (!d) return null;
|
|
58
|
+
let t, u = k;
|
|
59
|
+
s === "lmp" ? (t = d, u = w ?? k) : s === "conception" ? t = C(d, P) : s === "ivf" ? t = C(d, E + P) : t = C(d, Fe), s === "lmp" && (c != null && c.redated) ? (t = c.gestationalStart, u = k) : b && (t = C(t, b));
|
|
60
|
+
const h = Le(
|
|
61
|
+
{ method: "lmp", date: t, cycleLength: u },
|
|
62
|
+
m
|
|
63
|
+
);
|
|
64
|
+
return {
|
|
65
|
+
result: {
|
|
66
|
+
dueDate: h.dueDate,
|
|
67
|
+
gestationalStart: h.gestationalStart,
|
|
68
|
+
gestationalAge: h.gestationalAge,
|
|
69
|
+
trimester: h.trimester
|
|
70
|
+
},
|
|
71
|
+
milestones: ke(h.gestationalStart)
|
|
72
|
+
};
|
|
73
|
+
}, [
|
|
74
|
+
s,
|
|
75
|
+
d,
|
|
76
|
+
w,
|
|
77
|
+
E,
|
|
78
|
+
c,
|
|
79
|
+
b,
|
|
80
|
+
m
|
|
81
|
+
]), n = (p == null ? void 0 : p.result) ?? null, S = o(() => !T || !n ? null : Ce(n.gestationalStart, {
|
|
82
|
+
...V,
|
|
83
|
+
today: m,
|
|
84
|
+
plurality: x,
|
|
85
|
+
chorionicity: R,
|
|
86
|
+
rhNegative: F,
|
|
87
|
+
gdmRisk: N === "none" ? void 0 : N
|
|
88
|
+
}), [
|
|
89
|
+
T,
|
|
90
|
+
n,
|
|
91
|
+
m,
|
|
92
|
+
V,
|
|
93
|
+
x,
|
|
94
|
+
R,
|
|
95
|
+
F,
|
|
96
|
+
N
|
|
97
|
+
]), A = o(
|
|
98
|
+
() => new Intl.DateTimeFormat(f.language, { dateStyle: "long" }),
|
|
99
|
+
[f.language]
|
|
100
|
+
), H = o(
|
|
101
|
+
() => new Intl.DateTimeFormat(f.language, { dateStyle: "medium" }),
|
|
102
|
+
[f.language]
|
|
103
|
+
);
|
|
104
|
+
De(() => {
|
|
105
|
+
y == null || y(n);
|
|
106
|
+
}, [n, y]);
|
|
107
|
+
const he = o(
|
|
108
|
+
() => [
|
|
109
|
+
"unknown",
|
|
110
|
+
"dichorionic-diamniotic",
|
|
111
|
+
"monochorionic-diamniotic",
|
|
112
|
+
"monochorionic-monoamniotic"
|
|
113
|
+
].map((t) => ({
|
|
114
|
+
value: t,
|
|
115
|
+
label: e(`antenatalSchedule.chorionicity.${t}`)
|
|
116
|
+
})),
|
|
117
|
+
[e]
|
|
118
|
+
), I = (t) => t ? e("pregnancyDating.result.gestation", {
|
|
119
|
+
weeks: t.weeks,
|
|
120
|
+
days: t.days
|
|
121
|
+
}) : "—";
|
|
122
|
+
return /* @__PURE__ */ l(
|
|
123
|
+
"div",
|
|
124
|
+
{
|
|
125
|
+
ref: te,
|
|
126
|
+
"data-component": "pregnancy-dating",
|
|
127
|
+
"data-component-id": Z,
|
|
128
|
+
className: Oe({ width: ee, className: ae }),
|
|
129
|
+
children: [
|
|
130
|
+
/* @__PURE__ */ l(
|
|
131
|
+
L,
|
|
132
|
+
{
|
|
133
|
+
label: e("pregnancyDating.method.label"),
|
|
134
|
+
variant: "horizontal",
|
|
135
|
+
value: s,
|
|
136
|
+
onValueChange: (t) => ne(t),
|
|
137
|
+
children: [
|
|
138
|
+
/* @__PURE__ */ a(r, { label: e("pregnancyDating.method.lmp"), value: "lmp" }),
|
|
139
|
+
/* @__PURE__ */ a(
|
|
140
|
+
r,
|
|
141
|
+
{
|
|
142
|
+
label: e("pregnancyDating.method.conception"),
|
|
143
|
+
value: "conception"
|
|
144
|
+
}
|
|
145
|
+
),
|
|
146
|
+
/* @__PURE__ */ a(r, { label: e("pregnancyDating.method.ivf"), value: "ivf" }),
|
|
147
|
+
/* @__PURE__ */ a(r, { label: e("pregnancyDating.method.edd"), value: "edd" })
|
|
148
|
+
]
|
|
149
|
+
}
|
|
150
|
+
),
|
|
151
|
+
/* @__PURE__ */ l("div", { className: "ds:grid ds:grid-cols-1 ds:gap-[var(--spacing-md)] ds:sm:grid-cols-2", children: [
|
|
152
|
+
/* @__PURE__ */ a(g, { label: e(_e[s]), children: /* @__PURE__ */ a(
|
|
153
|
+
O,
|
|
154
|
+
{
|
|
155
|
+
value: d,
|
|
156
|
+
onChange: le,
|
|
157
|
+
maxDate: s === "edd" ? void 0 : G
|
|
158
|
+
}
|
|
159
|
+
) }),
|
|
160
|
+
s === "lmp" && /* @__PURE__ */ a(
|
|
161
|
+
g,
|
|
162
|
+
{
|
|
163
|
+
label: e("pregnancyDating.cycleLength"),
|
|
164
|
+
description: e("pregnancyDating.cycleLengthHint"),
|
|
165
|
+
children: /* @__PURE__ */ a(
|
|
166
|
+
_,
|
|
167
|
+
{
|
|
168
|
+
mode: "integer",
|
|
169
|
+
min: 20,
|
|
170
|
+
max: 45,
|
|
171
|
+
value: w,
|
|
172
|
+
onChange: se
|
|
173
|
+
}
|
|
174
|
+
)
|
|
175
|
+
}
|
|
176
|
+
),
|
|
177
|
+
s === "ivf" && /* @__PURE__ */ l(
|
|
178
|
+
L,
|
|
179
|
+
{
|
|
180
|
+
label: e("pregnancyDating.embryoAge"),
|
|
181
|
+
variant: "horizontal",
|
|
182
|
+
value: String(E),
|
|
183
|
+
onValueChange: (t) => ie(Number(t)),
|
|
184
|
+
children: [
|
|
185
|
+
/* @__PURE__ */ a(r, { label: e("pregnancyDating.day3"), value: "3" }),
|
|
186
|
+
/* @__PURE__ */ a(r, { label: e("pregnancyDating.day5"), value: "5" })
|
|
187
|
+
]
|
|
188
|
+
}
|
|
189
|
+
),
|
|
190
|
+
/* @__PURE__ */ a(
|
|
191
|
+
g,
|
|
192
|
+
{
|
|
193
|
+
label: e("pregnancyDating.datingAdjustment"),
|
|
194
|
+
description: e("pregnancyDating.datingAdjustmentHint"),
|
|
195
|
+
children: /* @__PURE__ */ a(
|
|
196
|
+
_,
|
|
197
|
+
{
|
|
198
|
+
mode: "integer",
|
|
199
|
+
value: b,
|
|
200
|
+
onChange: ce
|
|
201
|
+
}
|
|
202
|
+
)
|
|
203
|
+
}
|
|
204
|
+
),
|
|
205
|
+
/* @__PURE__ */ a(
|
|
206
|
+
g,
|
|
207
|
+
{
|
|
208
|
+
label: e("pregnancyDating.asOfDate"),
|
|
209
|
+
description: e("pregnancyDating.asOfDateHint"),
|
|
210
|
+
children: /* @__PURE__ */ a(
|
|
211
|
+
O,
|
|
212
|
+
{
|
|
213
|
+
value: m,
|
|
214
|
+
onChange: (t) => t && oe(t)
|
|
215
|
+
}
|
|
216
|
+
)
|
|
217
|
+
}
|
|
218
|
+
)
|
|
219
|
+
] }),
|
|
220
|
+
s === "lmp" ? /* @__PURE__ */ l("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
|
|
221
|
+
/* @__PURE__ */ l("div", { className: "ds:grid ds:grid-cols-1 ds:gap-[var(--spacing-md)] ds:sm:grid-cols-2", children: [
|
|
222
|
+
/* @__PURE__ */ a(
|
|
223
|
+
g,
|
|
224
|
+
{
|
|
225
|
+
label: e("pregnancyDating.crl"),
|
|
226
|
+
description: e("pregnancyDating.crlHint"),
|
|
227
|
+
children: /* @__PURE__ */ a(
|
|
228
|
+
_,
|
|
229
|
+
{
|
|
230
|
+
mode: "decimal",
|
|
231
|
+
min: 0,
|
|
232
|
+
step: 0.1,
|
|
233
|
+
value: D,
|
|
234
|
+
onChange: re
|
|
235
|
+
}
|
|
236
|
+
)
|
|
237
|
+
}
|
|
238
|
+
),
|
|
239
|
+
/* @__PURE__ */ a(g, { label: e("pregnancyDating.scanDate"), children: /* @__PURE__ */ a(
|
|
240
|
+
O,
|
|
241
|
+
{
|
|
242
|
+
value: v,
|
|
243
|
+
onChange: de,
|
|
244
|
+
maxDate: G
|
|
245
|
+
}
|
|
246
|
+
) })
|
|
247
|
+
] }),
|
|
248
|
+
c ? /* @__PURE__ */ l("div", { className: "ds:flex ds:flex-wrap ds:items-center ds:gap-[var(--spacing-sm)]", children: [
|
|
249
|
+
/* @__PURE__ */ a(j, { variant: c.redated ? "warning" : "success", children: c.redated ? e("pregnancyDating.redated", {
|
|
250
|
+
days: c.discrepancyDays
|
|
251
|
+
}) : e("pregnancyDating.datesAgree") }),
|
|
252
|
+
c.crlInRange ? null : /* @__PURE__ */ a("span", { className: "type-meta ds:text-muted-foreground", children: e("pregnancyDating.crlOutOfRange") })
|
|
253
|
+
] }) : null
|
|
254
|
+
] }) : null,
|
|
255
|
+
T ? /* @__PURE__ */ l(ye, { children: [
|
|
256
|
+
/* @__PURE__ */ l(
|
|
257
|
+
L,
|
|
258
|
+
{
|
|
259
|
+
label: e("antenatalSchedule.plurality.label"),
|
|
260
|
+
variant: "horizontal",
|
|
261
|
+
value: x,
|
|
262
|
+
onValueChange: (t) => ge(t),
|
|
263
|
+
children: [
|
|
264
|
+
/* @__PURE__ */ a(
|
|
265
|
+
r,
|
|
266
|
+
{
|
|
267
|
+
label: e("antenatalSchedule.plurality.singleton"),
|
|
268
|
+
value: "singleton"
|
|
269
|
+
}
|
|
270
|
+
),
|
|
271
|
+
/* @__PURE__ */ a(
|
|
272
|
+
r,
|
|
273
|
+
{
|
|
274
|
+
label: e("antenatalSchedule.plurality.twin"),
|
|
275
|
+
value: "twin"
|
|
276
|
+
}
|
|
277
|
+
),
|
|
278
|
+
/* @__PURE__ */ a(
|
|
279
|
+
r,
|
|
280
|
+
{
|
|
281
|
+
label: e("antenatalSchedule.plurality.triplet"),
|
|
282
|
+
value: "triplet"
|
|
283
|
+
}
|
|
284
|
+
)
|
|
285
|
+
]
|
|
286
|
+
}
|
|
287
|
+
),
|
|
288
|
+
x !== "singleton" ? /* @__PURE__ */ a(g, { label: e("antenatalSchedule.chorionicity.label"), children: /* @__PURE__ */ a(
|
|
289
|
+
xe,
|
|
290
|
+
{
|
|
291
|
+
options: he,
|
|
292
|
+
value: R,
|
|
293
|
+
onValueChange: (t) => me(t)
|
|
294
|
+
}
|
|
295
|
+
) }) : null,
|
|
296
|
+
/* @__PURE__ */ a(
|
|
297
|
+
Ne,
|
|
298
|
+
{
|
|
299
|
+
label: e("antenatalSchedule.rhNegative"),
|
|
300
|
+
checked: F,
|
|
301
|
+
onCheckedChange: pe
|
|
302
|
+
}
|
|
303
|
+
),
|
|
304
|
+
/* @__PURE__ */ l(
|
|
305
|
+
L,
|
|
306
|
+
{
|
|
307
|
+
label: e("antenatalSchedule.gdmRisk.label"),
|
|
308
|
+
variant: "horizontal",
|
|
309
|
+
value: N,
|
|
310
|
+
onValueChange: (t) => ue(t),
|
|
311
|
+
children: [
|
|
312
|
+
/* @__PURE__ */ a(r, { label: e("antenatalSchedule.gdmRisk.none"), value: "none" }),
|
|
313
|
+
/* @__PURE__ */ a(
|
|
314
|
+
r,
|
|
315
|
+
{
|
|
316
|
+
label: e("antenatalSchedule.gdmRisk.medium"),
|
|
317
|
+
value: "medium"
|
|
318
|
+
}
|
|
319
|
+
),
|
|
320
|
+
/* @__PURE__ */ a(r, { label: e("antenatalSchedule.gdmRisk.high"), value: "high" })
|
|
321
|
+
]
|
|
322
|
+
}
|
|
323
|
+
)
|
|
324
|
+
] }) : null,
|
|
325
|
+
/* @__PURE__ */ a("p", { className: "ds:sr-only", role: "status", "aria-live": "polite", children: n ? `${e("pregnancyDating.result.dueDateLabel")}: ${A.format(
|
|
326
|
+
n.dueDate
|
|
327
|
+
)}. ${e("pregnancyDating.result.gestationLabel")}: ${I(
|
|
328
|
+
n.gestationalAge
|
|
329
|
+
)}.` : "" }),
|
|
330
|
+
p && n ? /* @__PURE__ */ a(M, { variant: "elevated", children: /* @__PURE__ */ l(M.Body, { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]", children: [
|
|
331
|
+
/* @__PURE__ */ l("dl", { className: "ds:grid ds:grid-cols-1 ds:gap-[var(--spacing-md)] ds:sm:grid-cols-3", children: [
|
|
332
|
+
/* @__PURE__ */ l("div", { className: "ds:flex ds:flex-col ds:items-start ds:gap-[var(--spacing-xs)]", children: [
|
|
333
|
+
/* @__PURE__ */ a("dt", { className: "type-label ds:text-muted-foreground", children: e("pregnancyDating.result.dueDateLabel") }),
|
|
334
|
+
/* @__PURE__ */ a("dd", { className: "type-metric ds:text-foreground", children: A.format(n.dueDate) })
|
|
335
|
+
] }),
|
|
336
|
+
/* @__PURE__ */ l("div", { className: "ds:flex ds:flex-col ds:items-start ds:gap-[var(--spacing-xs)]", children: [
|
|
337
|
+
/* @__PURE__ */ a("dt", { className: "type-label ds:text-muted-foreground", children: e("pregnancyDating.result.gestationLabel") }),
|
|
338
|
+
/* @__PURE__ */ a("dd", { className: "type-body ds:text-foreground", children: I(n.gestationalAge) })
|
|
339
|
+
] }),
|
|
340
|
+
/* @__PURE__ */ l("div", { className: "ds:flex ds:flex-col ds:items-end ds:gap-[var(--spacing-xs)] ds:text-end", children: [
|
|
341
|
+
/* @__PURE__ */ a("dt", { className: "type-label ds:text-muted-foreground", children: e("pregnancyDating.result.trimesterLabel") }),
|
|
342
|
+
/* @__PURE__ */ a("dd", { children: /* @__PURE__ */ a(
|
|
343
|
+
j,
|
|
344
|
+
{
|
|
345
|
+
variant: Te[n.trimester],
|
|
346
|
+
size: "lg",
|
|
347
|
+
children: e(`pregnancyDating.trimester.${n.trimester}`)
|
|
348
|
+
}
|
|
349
|
+
) })
|
|
350
|
+
] })
|
|
351
|
+
] }),
|
|
352
|
+
/* @__PURE__ */ l("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)]", children: [
|
|
353
|
+
/* @__PURE__ */ a("span", { className: "type-label ds:text-muted-foreground", children: e("pregnancyDating.milestonesLabel") }),
|
|
354
|
+
/* @__PURE__ */ a("ul", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)]", children: p.milestones.map((t) => {
|
|
355
|
+
const u = Ie(m, t.date);
|
|
356
|
+
return /* @__PURE__ */ l(
|
|
357
|
+
"li",
|
|
358
|
+
{
|
|
359
|
+
className: "ds:flex ds:items-center ds:justify-between ds:gap-[var(--spacing-md)]",
|
|
360
|
+
children: [
|
|
361
|
+
/* @__PURE__ */ a("span", { className: "type-body ds:text-foreground", children: e(`pregnancyDating.milestone.${t.key}`) }),
|
|
362
|
+
/* @__PURE__ */ l("span", { className: "ds:flex ds:items-center ds:gap-[var(--spacing-sm)]", children: [
|
|
363
|
+
/* @__PURE__ */ a("span", { className: "type-body ds:text-muted-foreground", children: H.format(t.date) }),
|
|
364
|
+
u ? /* @__PURE__ */ a(j, { variant: "success", children: e("pregnancyDating.reached") }) : null
|
|
365
|
+
] })
|
|
366
|
+
]
|
|
367
|
+
},
|
|
368
|
+
t.key
|
|
369
|
+
);
|
|
370
|
+
}) })
|
|
371
|
+
] })
|
|
372
|
+
] }) }) : /* @__PURE__ */ a("p", { className: "type-body ds:text-muted-foreground", children: e("pregnancyDating.empty") }),
|
|
373
|
+
S ? /* @__PURE__ */ a(we, { events: S }) : null,
|
|
374
|
+
n && (B === "copy" || $) ? /* @__PURE__ */ a(
|
|
375
|
+
Se,
|
|
376
|
+
{
|
|
377
|
+
onInsert: $,
|
|
378
|
+
variant: B,
|
|
379
|
+
onCopy: K,
|
|
380
|
+
onError: U,
|
|
381
|
+
card: {
|
|
382
|
+
title: e("insert.title.pregnancyDating"),
|
|
383
|
+
icon: "calendar-heart",
|
|
384
|
+
highlight: A.format(n.dueDate),
|
|
385
|
+
highlightToken: Re(n.trimester),
|
|
386
|
+
brand: q,
|
|
387
|
+
fields: [
|
|
388
|
+
{
|
|
389
|
+
icon: "calendar",
|
|
390
|
+
label: e("pregnancyDating.result.dueDateLabel"),
|
|
391
|
+
value: A.format(n.dueDate)
|
|
392
|
+
},
|
|
393
|
+
{
|
|
394
|
+
icon: "clock",
|
|
395
|
+
label: e("pregnancyDating.result.gestationLabel"),
|
|
396
|
+
value: I(n.gestationalAge)
|
|
397
|
+
},
|
|
398
|
+
{
|
|
399
|
+
icon: "tag",
|
|
400
|
+
label: e("pregnancyDating.result.trimesterLabel"),
|
|
401
|
+
value: e(`pregnancyDating.trimester.${n.trimester}`)
|
|
402
|
+
},
|
|
403
|
+
...S ? Ee(
|
|
404
|
+
S,
|
|
405
|
+
e,
|
|
406
|
+
(t) => H.format(t)
|
|
407
|
+
) : []
|
|
408
|
+
]
|
|
409
|
+
}
|
|
410
|
+
}
|
|
411
|
+
) : null
|
|
412
|
+
]
|
|
413
|
+
}
|
|
414
|
+
);
|
|
415
|
+
}
|
|
416
|
+
);
|
|
417
|
+
je.displayName = "PregnancyDating";
|
|
418
|
+
export {
|
|
419
|
+
je as P
|
|
420
|
+
};
|
|
421
|
+
//# sourceMappingURL=pregnancy-dating-48Gfvod1.js.map
|