@alfadocs/ui-kit 1.3.13 → 1.4.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.
Files changed (185) hide show
  1. package/dist/_chunks/agenda-card.agent-Cb5tuEh3.js +28 -0
  2. package/dist/_chunks/{alia-sidebar-DzNz1gDf.js → alia-sidebar-DSBZMick.js} +3 -3
  3. package/dist/_chunks/{anamnesis-i18n-CfC0qYzy.js → anamnesis-i18n-BA631X4t.js} +2209 -2144
  4. package/dist/_chunks/{antenatal-schedule-timeline-BMMpi2lb.js → antenatal-schedule-timeline-u8TsS2QJ.js} +27 -26
  5. package/dist/_chunks/{appointment-timeline-B630OT_J.js → appointment-timeline-Bqf1sTU5.js} +2 -2
  6. package/dist/_chunks/{ar-THMLfSoN.js → ar-BR1FGFP2.js} +14 -14
  7. package/dist/_chunks/{bmi-calculator-CM0-G2mg.js → bmi-calculator-CpyY13MV.js} +2 -2
  8. package/dist/_chunks/{booking-DjNbd7C1.js → booking-BjsA7j1-.js} +699 -688
  9. package/dist/_chunks/calculator-dialog-12d3Sxaz.js +48 -0
  10. package/dist/_chunks/{care-plan-card-1G_f4I5s.js → care-plan-card-BvQy366X.js} +3 -3
  11. package/dist/_chunks/{care-plan-entry-card-DmBsffHS.js → care-plan-entry-card-apk_5B3O.js} +2 -2
  12. package/dist/_chunks/{chat-container-HlFnoEIl.js → chat-container-CYYego1W.js} +105 -81
  13. package/dist/_chunks/cycle-calculator-B7fyH-h4.js +425 -0
  14. package/dist/_chunks/{date-picker-ZHejTVAJ.js → date-picker-Bp64zk2p.js} +19 -19
  15. package/dist/_chunks/date-picker-variants-pKAJfnWr.js +2089 -0
  16. package/dist/_chunks/{date-range-picker-pEG3Ln3i.js → date-range-picker-CDrZ8Zh0.js} +27 -27
  17. package/dist/_chunks/{date-time-picker-695QvBGj.js → date-time-picker-DafkGDGO.js} +10 -10
  18. package/dist/_chunks/{de-DmZ-8rTN.js → de-3iM4rGqo.js} +7 -7
  19. package/dist/_chunks/{document-preview-D3gg4MXB.js → document-preview-DOrsqiN1.js} +2 -2
  20. package/dist/_chunks/due-date-calculator-CnkbbAej.js +571 -0
  21. package/dist/_chunks/{editor-overlay-DE3esyio.js → editor-overlay-B1tr2i7B.js} +22 -21
  22. package/dist/_chunks/{el-Bela9mxs.js → el-C96rGJvU.js} +2 -2
  23. package/dist/_chunks/{es-BNncHKex.js → es-Cxiqjx8r.js} +12 -12
  24. package/dist/_chunks/fetal-weight-avlj-l-S.js +223 -0
  25. package/dist/_chunks/format-4HNwNGrN.js +1315 -0
  26. package/dist/_chunks/{fr-CH8ADfhN.js → fr-Bhr6SYKj.js} +21 -21
  27. package/dist/_chunks/{freemium-paywall-C_Ue6wxU.js → freemium-paywall-DRDdWuOg.js} +3 -3
  28. package/dist/_chunks/gestational-age-calculator-BljY_DVJ.js +488 -0
  29. package/dist/_chunks/hcg-doubling-Cv_vH61p.js +312 -0
  30. package/dist/_chunks/header-settings-Cn5fPXCE.js +335 -0
  31. package/dist/_chunks/{hi-Bppfxp8l.js → hi-BxXX26d_.js} +12 -12
  32. package/dist/_chunks/isSameWeek-B73MagWB.js +13 -0
  33. package/dist/_chunks/{it-B4ySaRyK.js → it-Xmjomvyj.js} +24 -24
  34. package/dist/_chunks/{ja-CGF6Io9P.js → ja-mfZvt1ZV.js} +16 -16
  35. package/dist/_chunks/{link-cell-renderer-C5XLwVXQ.js → link-cell-renderer-CJ_gk7gl.js} +3 -3
  36. package/dist/_chunks/{locale-picker-BfBUdT1m.js → locale-picker-D9Kv2zrK.js} +153 -132
  37. package/dist/_chunks/map-view-2yZCQW2l.js +445 -0
  38. package/dist/_chunks/{marketplace-app-shell-DwcFMxzp.js → marketplace-app-shell-BLRvg-M0.js} +49 -40
  39. package/dist/_chunks/{nl-DuShqwuV.js → nl-DDs-KEnD.js} +15 -15
  40. package/dist/_chunks/{notes-panel-DPsgB4Mv.js → notes-panel-CiFN3sLW.js} +2 -2
  41. package/dist/_chunks/{number-input-DrozbZAU.js → number-input-DOe5VYei.js} +64 -64
  42. package/dist/_chunks/{optical-prescription-BDHJr8Zz.js → optical-prescription-CRemE8fL.js} +2 -2
  43. package/dist/_chunks/{parse-DvA97ro9.js → parse-JqixfsU0.js} +43 -43
  44. package/dist/_chunks/parseISO-fOGpHKXm.js +120 -0
  45. package/dist/_chunks/{patient-details-DqjjwPmt.js → patient-details-CpunD0qx.js} +3 -3
  46. package/dist/_chunks/{patient-table-BmIDrLIS.js → patient-table-2eWx-Rrk.js} +2 -2
  47. package/dist/_chunks/{payment-form-h-BZ8onk.js → payment-form-Ds1I9KqB.js} +308 -231
  48. package/dist/_chunks/{pdf-viewer-Ddx-T053.js → pdf-viewer-DUIsV9s5.js} +429 -369
  49. package/dist/_chunks/{pl-CKQwX9Fk.js → pl-BYYMnEWP.js} +18 -18
  50. package/dist/_chunks/{practice-results-B-HPc13W.js → practice-results-SjCniMd2.js} +2 -2
  51. package/dist/_chunks/pregnancy-dating-BmpHScZ0.js +770 -0
  52. package/dist/_chunks/pregnancy-weight-gain-B5KSJzdc.js +553 -0
  53. package/dist/_chunks/progress-CK8otcQ-.js +343 -0
  54. package/dist/_chunks/{pt-_njpXyOZ.js → pt-BSPnVrQ7.js} +20 -20
  55. package/dist/_chunks/{radiograph-panel.agent-BQZ64Riy.js → radiograph-panel.agent-CtFtNMzk.js} +3 -3
  56. package/dist/_chunks/{rich-text-editor-CfeXPPWs.js → rich-text-editor-BedTpWzL.js} +2 -2
  57. package/dist/_chunks/{ro-3X6_4FcN.js → ro-BbiylGmG.js} +14 -14
  58. package/dist/_chunks/{ru-bAcgmnS-.js → ru-BX_qsV67.js} +14 -14
  59. package/dist/_chunks/{session-countdown-Bc70VXN1.js → session-countdown-BL-Psg8u.js} +2 -2
  60. package/dist/_chunks/{sign-document-CW_ByDUh.js → sign-document-jF4fZDJ5.js} +2 -2
  61. package/dist/_chunks/slot-grid-DNiUcXy2.js +640 -0
  62. package/dist/_chunks/{sparkline-BTY4B5tv.js → sparkline-BmGcEyZO.js} +209 -164
  63. package/dist/_chunks/{sq-jYFqr4Ga.js → sq-i9UOk4P7.js} +10 -10
  64. package/dist/_chunks/subDays-CAUv47M1.js +8 -0
  65. package/dist/_chunks/{sv-BSGEJ-8B.js → sv-CpTdtmDQ.js} +8 -8
  66. package/dist/_chunks/{tab-bar-Axhk6xzx.js → tab-bar-BYESZINM.js} +83 -77
  67. package/dist/_chunks/task-card.agent-CF2N_uu4.js +29 -0
  68. package/dist/_chunks/{tr-CTpgUtw6.js → tr-DXG2QN1K.js} +17 -17
  69. package/dist/_chunks/{unit-converter-COgkN7YP.js → unit-converter-CHPDuV7W.js} +2 -2
  70. package/dist/_chunks/{warning-stack-BtjmJChC.js → warning-stack-B7t_8jRE.js} +42 -37
  71. package/dist/_chunks/{zh-CN-BgM0Io2O.js → zh-CN-vPkPEK6H.js} +18 -18
  72. package/dist/agent-catalog.json +6426 -3382
  73. package/dist/agent-i18n/en.json +234 -15
  74. package/dist/components/agenda-card/index.js +1 -1
  75. package/dist/components/appointment-timeline/index.js +1 -1
  76. package/dist/components/bmi-calculator/index.js +1 -1
  77. package/dist/components/booking/index.js +1 -1
  78. package/dist/components/calculator-dialog/index.js +1 -1
  79. package/dist/components/care-plan-card/index.js +1 -1
  80. package/dist/components/care-plan-entry-card/index.js +1 -1
  81. package/dist/components/chat-container/chat-container.d.ts +14 -0
  82. package/dist/components/chat-container/index.js +1 -1
  83. package/dist/components/cycle-calculator/cycle-calculator.agent.d.ts +4 -0
  84. package/dist/components/cycle-calculator/cycle-calculator.d.ts +42 -0
  85. package/dist/components/cycle-calculator/index.d.ts +1 -1
  86. package/dist/components/cycle-calculator/index.js +1 -1
  87. package/dist/components/data-table/index.js +1 -1
  88. package/dist/components/date-picker/index.js +1 -1
  89. package/dist/components/date-range-picker/index.js +1 -1
  90. package/dist/components/date-time-picker/index.js +1 -1
  91. package/dist/components/document-preview/index.js +1 -1
  92. package/dist/components/due-date-calculator/due-date-calculator.agent.d.ts +4 -0
  93. package/dist/components/due-date-calculator/due-date-calculator.d.ts +61 -1
  94. package/dist/components/due-date-calculator/index.d.ts +1 -1
  95. package/dist/components/due-date-calculator/index.js +2 -2
  96. package/dist/components/editor-overlay/editor-overlay.d.ts +7 -1
  97. package/dist/components/editor-overlay/index.js +1 -1
  98. package/dist/components/fetal-weight/fetal-weight.agent.d.ts +4 -0
  99. package/dist/components/fetal-weight/fetal-weight.d.ts +26 -0
  100. package/dist/components/fetal-weight/index.d.ts +1 -1
  101. package/dist/components/fetal-weight/index.js +1 -1
  102. package/dist/components/freemium-paywall/index.js +1 -1
  103. package/dist/components/gestational-age-calculator/gestational-age-calculator.agent.d.ts +4 -0
  104. package/dist/components/gestational-age-calculator/gestational-age-calculator.d.ts +44 -2
  105. package/dist/components/gestational-age-calculator/index.d.ts +1 -1
  106. package/dist/components/gestational-age-calculator/index.js +1 -1
  107. package/dist/components/hcg-doubling/hcg-doubling.agent.d.ts +4 -0
  108. package/dist/components/hcg-doubling/hcg-doubling.d.ts +30 -0
  109. package/dist/components/hcg-doubling/index.d.ts +1 -1
  110. package/dist/components/hcg-doubling/index.js +1 -1
  111. package/dist/components/header-settings/header-settings.d.ts +13 -1
  112. package/dist/components/header-settings/index.js +1 -1
  113. package/dist/components/locale-picker/index.js +1 -1
  114. package/dist/components/locale-picker/locale-picker.d.ts +9 -0
  115. package/dist/components/map-view/index.js +1 -1
  116. package/dist/components/map-view/map-view.d.ts +22 -0
  117. package/dist/components/notes-panel/index.js +1 -1
  118. package/dist/components/number-input/index.js +1 -1
  119. package/dist/components/number-input/number-input.d.ts +2 -1
  120. package/dist/components/optical-prescription/index.js +1 -1
  121. package/dist/components/patient-details/index.js +1 -1
  122. package/dist/components/patient-table/index.js +1 -1
  123. package/dist/components/payment-form/index.d.ts +1 -1
  124. package/dist/components/payment-form/index.js +1 -1
  125. package/dist/components/payment-form/payment-form.d.ts +32 -1
  126. package/dist/components/pdf-viewer/index.js +1 -1
  127. package/dist/components/pdf-viewer/pdf-viewer.d.ts +13 -0
  128. package/dist/components/practice-results/index.js +1 -1
  129. package/dist/components/pregnancy-dating/index.d.ts +1 -1
  130. package/dist/components/pregnancy-dating/index.js +1 -1
  131. package/dist/components/pregnancy-dating/pregnancy-dating.agent.d.ts +4 -0
  132. package/dist/components/pregnancy-dating/pregnancy-dating.d.ts +65 -1
  133. package/dist/components/pregnancy-weight-gain/index.d.ts +2 -1
  134. package/dist/components/pregnancy-weight-gain/index.js +6 -5
  135. package/dist/components/pregnancy-weight-gain/pregnancy-weight-gain.agent.d.ts +4 -0
  136. package/dist/components/pregnancy-weight-gain/pregnancy-weight-gain.d.ts +35 -0
  137. package/dist/components/progress/index.js +1 -1
  138. package/dist/components/progress/progress.d.ts +13 -0
  139. package/dist/components/radiograph-panel/index.js +1 -1
  140. package/dist/components/rich-text-editor/index.js +1 -1
  141. package/dist/components/session-countdown/index.js +1 -1
  142. package/dist/components/sign-document/index.js +1 -1
  143. package/dist/components/slot-grid/index.d.ts +2 -1
  144. package/dist/components/slot-grid/index.js +5 -4
  145. package/dist/components/slot-grid/slot-grid.agent.d.ts +4 -0
  146. package/dist/components/slot-grid/slot-grid.d.ts +34 -0
  147. package/dist/components/sparkline/index.js +1 -1
  148. package/dist/components/sparkline/sparkline.d.ts +10 -0
  149. package/dist/components/tab-bar/index.js +1 -1
  150. package/dist/components/tab-bar/tab-bar.d.ts +13 -0
  151. package/dist/components/task-card/index.js +1 -1
  152. package/dist/components/unit-converter/index.js +1 -1
  153. package/dist/components/warning-stack/index.js +1 -1
  154. package/dist/index.js +630 -627
  155. package/dist/patterns/alia-assistant/index.js +1 -1
  156. package/dist/patterns/anamnesis/anamnesis-derive.d.ts +27 -8
  157. package/dist/patterns/anamnesis/anamnesis-format.d.ts +11 -3
  158. package/dist/patterns/anamnesis/anamnesis-highlight.d.ts +6 -0
  159. package/dist/patterns/anamnesis/anamnesis-questionnaire.d.ts +23 -9
  160. package/dist/patterns/anamnesis/anamnesis-types.d.ts +7 -0
  161. package/dist/patterns/anamnesis/anamnesis.d.ts +16 -7
  162. package/dist/patterns/anamnesis/index.d.ts +3 -2
  163. package/dist/patterns/anamnesis/index.js +7 -6
  164. package/dist/patterns/marketplace-app-shell/index.js +1 -1
  165. package/dist/patterns/marketplace-app-shell/marketplace-app-shell.d.ts +6 -0
  166. package/dist/tokens.css +1 -1
  167. package/package.json +1 -1
  168. package/dist/_chunks/agenda-card.agent-mTCrkKSZ.js +0 -27
  169. package/dist/_chunks/calculator-dialog-DuXMQSdm.js +0 -40
  170. package/dist/_chunks/cycle-calculator-BwqYVPB4.js +0 -252
  171. package/dist/_chunks/date-picker-variants-eL6HjWvw.js +0 -3363
  172. package/dist/_chunks/due-date-calculator-CwfsFd3T.js +0 -256
  173. package/dist/_chunks/fetal-weight-ePlLjJPc.js +0 -122
  174. package/dist/_chunks/gestational-age-calculator-DdgbH69Z.js +0 -311
  175. package/dist/_chunks/hcg-doubling-BBqD2wI2.js +0 -170
  176. package/dist/_chunks/header-settings--pjYOe6g.js +0 -284
  177. package/dist/_chunks/isSameDay-DUEiAT0G.js +0 -39
  178. package/dist/_chunks/isSameWeek-CK4HS9lH.js +0 -14
  179. package/dist/_chunks/map-view-CsaHfoo6.js +0 -378
  180. package/dist/_chunks/pregnancy-dating-DzYTlBkT.js +0 -421
  181. package/dist/_chunks/pregnancy-weight-gain-O6J0sUIi.js +0 -322
  182. package/dist/_chunks/progress-DA413-zn.js +0 -299
  183. package/dist/_chunks/slot-grid-CQSULZjd.js +0 -502
  184. package/dist/_chunks/subDays-BcNi04uf.js +0 -8
  185. package/dist/_chunks/task-card.agent-Bt14CzUd.js +0 -25
@@ -0,0 +1,770 @@
1
+ import { jsxs as i, jsx as a, Fragment as Ne } from "react/jsx-runtime";
2
+ import { forwardRef as xe, useState as c, useMemo as y, useEffect as Le, useRef as ke } from "react";
3
+ import { c as Me } from "./index-D2ZczOXr.js";
4
+ import { useTranslation as Re } from "react-i18next";
5
+ import { u as Te } from "./registry-DvAUVLHh.js";
6
+ import { R as u } from "./radio-TWf9Q-mp.js";
7
+ import { R as j } from "./radio-group-CI-6SmSw.js";
8
+ import { F as f } from "./form-field-M5UpX65Z.js";
9
+ import { D as V } from "./date-picker-Bp64zk2p.js";
10
+ import { N as H } from "./number-input-DOe5VYei.js";
11
+ import { S as Ce } from "./select-BW5ecXlX.js";
12
+ import { S as je } from "./switch-OILsBLWo.js";
13
+ import { C as ie } from "./card-DPmk26CL.js";
14
+ import { B as $ } from "./badge-DCOqV9mI.js";
15
+ import { I as Ee } from "./insert-result-D074GtHX.js";
16
+ import { D as E, r as Pe, c as Oe, g as _e, e as Ie, f as Fe, A as Ge, h as Ke, i as Ve, j as le, G as He } from "./antenatal-schedule-timeline-u8TsS2QJ.js";
17
+ import { s as P } from "./subDays-CAUv47M1.js";
18
+ import { c as q } from "./date-picker-variants-pKAJfnWr.js";
19
+ import { p as $e } from "./parseISO-fOGpHKXm.js";
20
+ import { f as qe } from "./format-4HNwNGrN.js";
21
+ const B = {
22
+ type: "string",
23
+ pattern: "^\\d{4}-\\d{2}-\\d{2}$"
24
+ }, Be = {
25
+ id: "pregnancy-dating",
26
+ // set_value → the seven `set_*` actions + the `inputs` state slot.
27
+ capabilities: ["set_value"],
28
+ state: {
29
+ inputs: {
30
+ type: "{ method: string, referenceDate: string | null, cycleLength: number | null, embryoAge: 3 | 5, crlMm: number | null, scanDate: string | null, datingAdjustment: number | null, asOfDate: string }",
31
+ descriptionKey: "ui.agent.pregnancyDating.state.inputs",
32
+ description: "The dating inputs as entered — anchor method, its reference date, cycle length (LMP), embryo age (IVF), the optional CRL + scan date, the manual ±days nudge, and the evaluation date. Dates are `yyyy-MM-dd`. Read this to see which method a reference date will be interpreted under.",
33
+ read: (n) => n.getInputs()
34
+ },
35
+ result: {
36
+ type: "{ dueDate: string, gestationalStart: string, gestationalAge: { weeks: number, days: number, totalDays: number } | null, trimester: string } | null",
37
+ descriptionKey: "ui.agent.pregnancyDating.state.result",
38
+ description: "Computed estimated delivery date, the GA day-0 anchor after any re-dating or adjustment, the gestational age in completed weeks + days as of the evaluation date, and the trimester band (preconception / first / second / third / postterm). Null until a reference date is set.",
39
+ read: (n) => n.getResult()
40
+ }
41
+ },
42
+ actions: {
43
+ set_method: {
44
+ // Drives the same local input state a user picks; nothing is persisted
45
+ // to a record, and the choice is reversible in the same UI.
46
+ safety: "write",
47
+ argsType: "{ method: 'lmp' | 'conception' | 'ivf' | 'edd' }",
48
+ argsSchema: {
49
+ type: "object",
50
+ properties: {
51
+ method: {
52
+ enum: ["lmp", "conception", "ivf", "edd"],
53
+ description: "Which anchor to date from — last menstrual period, conception, IVF transfer, or a known estimated delivery date."
54
+ }
55
+ },
56
+ required: ["method"],
57
+ additionalProperties: !1
58
+ },
59
+ idempotent: !0,
60
+ returns: "boolean",
61
+ returnsSchema: {
62
+ type: "boolean",
63
+ description: "True when the method was applied."
64
+ },
65
+ errors: [
66
+ "Returns false for a method outside the four supported anchors."
67
+ ],
68
+ examples: [
69
+ { args: { method: "edd" }, note: "Date backwards from a known EDD." }
70
+ ],
71
+ descriptionKey: "ui.agent.pregnancyDating.actions.setMethod",
72
+ description: "Choose which anchor the pregnancy is dated from. The reference date is kept and re-interpreted under the new method, so set the method first — only a known EDD may be in the future.",
73
+ invoke: (n, s) => n.setMethod(s.method)
74
+ },
75
+ set_reference_date: {
76
+ safety: "write",
77
+ argsType: "{ date: string | null }",
78
+ argsSchema: {
79
+ type: "object",
80
+ properties: {
81
+ date: {
82
+ oneOf: [
83
+ { ...B, description: "Local calendar date, `yyyy-MM-dd`." },
84
+ { type: "null" }
85
+ ],
86
+ description: "The date the active method anchors on — LMP, conception, transfer, or known EDD — or null to clear it. Only a known EDD may be in the future."
87
+ }
88
+ },
89
+ required: ["date"],
90
+ additionalProperties: !1
91
+ },
92
+ idempotent: !0,
93
+ returns: "boolean",
94
+ returnsSchema: {
95
+ type: "boolean",
96
+ description: "True when the date was applied."
97
+ },
98
+ errors: [
99
+ "Returns false for an unparseable date, or for a future date under any method but `edd` — the on-screen DatePicker caps those at today."
100
+ ],
101
+ examples: [
102
+ {
103
+ args: { date: "2026-01-12" },
104
+ note: "Under the default LMP method, a last period starting 12 January."
105
+ }
106
+ ],
107
+ descriptionKey: "ui.agent.pregnancyDating.actions.setReferenceDate",
108
+ description: "Set the reference date for the active method. This is the only required input — the result stays null without it.",
109
+ invoke: (n, s) => n.setReferenceDate(s.date)
110
+ },
111
+ set_cycle_length: {
112
+ safety: "write",
113
+ argsType: "{ days: number | null }",
114
+ argsSchema: {
115
+ type: "object",
116
+ properties: {
117
+ days: {
118
+ oneOf: [
119
+ { type: "integer", minimum: 20, maximum: 45 },
120
+ { type: "null" }
121
+ ],
122
+ description: "Average cycle length in days (20–45), or null to fall back to the 28-day default."
123
+ }
124
+ },
125
+ required: ["days"],
126
+ additionalProperties: !1
127
+ },
128
+ idempotent: !0,
129
+ returns: "boolean",
130
+ returnsSchema: {
131
+ type: "boolean",
132
+ description: "True when the value was applied."
133
+ },
134
+ errors: [
135
+ "Returns false outside 20–45 days — the same bounds the on-screen NumberInput enforces.",
136
+ "Applies but changes nothing unless the method is `lmp`, and is ignored once a CRL re-dating is confirmed."
137
+ ],
138
+ descriptionKey: "ui.agent.pregnancyDating.actions.setCycleLength",
139
+ description: "LMP method only — set the average cycle length, which shifts Naegele dating off the 28-day assumption.",
140
+ invoke: (n, s) => n.setCycleLength(s.days)
141
+ },
142
+ set_embryo_age: {
143
+ safety: "write",
144
+ argsType: "{ days: 3 | 5 }",
145
+ argsSchema: {
146
+ type: "object",
147
+ properties: {
148
+ days: {
149
+ enum: [3, 5],
150
+ description: "Embryo age at transfer in days — 3 (cleavage) or 5 (blastocyst)."
151
+ }
152
+ },
153
+ required: ["days"],
154
+ additionalProperties: !1
155
+ },
156
+ idempotent: !0,
157
+ returns: "boolean",
158
+ returnsSchema: {
159
+ type: "boolean",
160
+ description: "True when the value was applied."
161
+ },
162
+ errors: [
163
+ "Returns false for any value other than 3 or 5.",
164
+ "Applies but changes nothing unless the method is `ivf`."
165
+ ],
166
+ descriptionKey: "ui.agent.pregnancyDating.actions.setEmbryoAge",
167
+ description: "IVF method only — set the embryo age at transfer, which offsets the transfer date back to a notional LMP.",
168
+ invoke: (n, s) => n.setEmbryoAge(s.days)
169
+ },
170
+ set_crl: {
171
+ safety: "write",
172
+ argsType: "{ crlMm?: number | null, scanDate?: string | null }",
173
+ argsSchema: {
174
+ type: "object",
175
+ properties: {
176
+ crlMm: {
177
+ oneOf: [{ type: "number", exclusiveMinimum: 0 }, { type: "null" }],
178
+ description: "Crown-rump length in millimetres, or null to clear it."
179
+ },
180
+ scanDate: {
181
+ oneOf: [{ ...B }, { type: "null" }],
182
+ description: "Date of the CRL scan (`yyyy-MM-dd`, not in the future), or null to clear it."
183
+ }
184
+ },
185
+ additionalProperties: !1
186
+ },
187
+ idempotent: !0,
188
+ returns: "boolean",
189
+ returnsSchema: {
190
+ type: "boolean",
191
+ description: "True when the measurement was applied."
192
+ },
193
+ errors: [
194
+ "Returns false and writes nothing when the length is not positive or the scan date is unparseable or in the future — the payload applies all-or-nothing.",
195
+ "Re-dating only happens under the `lmp` method, and only when both the length and the scan date are set."
196
+ ],
197
+ examples: [
198
+ {
199
+ args: { crlMm: 42, scanDate: "2026-02-20" },
200
+ note: "A first-trimester CRL that may re-date the pregnancy per ACOG CO 700."
201
+ }
202
+ ],
203
+ descriptionKey: "ui.agent.pregnancyDating.actions.setCrl",
204
+ description: "LMP method only — set the first-trimester crown-rump length and its scan date. A confirmed re-dating wins over both the cycle length and the manual adjustment.",
205
+ invoke: (n, s) => n.setCrl(s)
206
+ },
207
+ set_dating_adjustment: {
208
+ safety: "write",
209
+ argsType: "{ days: number | null }",
210
+ argsSchema: {
211
+ type: "object",
212
+ properties: {
213
+ days: {
214
+ oneOf: [{ type: "integer" }, { type: "null" }],
215
+ description: "Whole days to nudge the dating by — positive moves the pregnancy further along — or null for no adjustment."
216
+ }
217
+ },
218
+ required: ["days"],
219
+ additionalProperties: !1
220
+ },
221
+ idempotent: !0,
222
+ returns: "boolean",
223
+ returnsSchema: {
224
+ type: "boolean",
225
+ description: "True when the value was applied."
226
+ },
227
+ errors: [
228
+ "Returns false for a non-integer number of days.",
229
+ "Applies but changes nothing while a CRL re-dating is confirmed — the measurement wins."
230
+ ],
231
+ examples: [
232
+ {
233
+ args: { days: 3 },
234
+ note: "An uncertain LMP judged three days earlier than entered."
235
+ }
236
+ ],
237
+ descriptionKey: "ui.agent.pregnancyDating.actions.setDatingAdjustment",
238
+ description: "Nudge the dating by whole days for an uncertain anchor. Positive moves the pregnancy further along (earlier effective LMP, earlier due date).",
239
+ invoke: (n, s) => n.setDatingAdjustment(s.days)
240
+ },
241
+ set_as_of_date: {
242
+ safety: "write",
243
+ argsType: "{ date: string }",
244
+ argsSchema: {
245
+ type: "object",
246
+ properties: {
247
+ date: {
248
+ ...B,
249
+ description: "Date to evaluate gestational age and trimester against, `yyyy-MM-dd`. May be in the future to project forward."
250
+ }
251
+ },
252
+ required: ["date"],
253
+ additionalProperties: !1
254
+ },
255
+ idempotent: !0,
256
+ returns: "boolean",
257
+ returnsSchema: {
258
+ type: "boolean",
259
+ description: "True when the date was applied."
260
+ },
261
+ errors: ["Returns false for an unparseable date."],
262
+ examples: [
263
+ {
264
+ args: { date: "2026-09-15" },
265
+ note: "Project gestational age forward to an upcoming appointment."
266
+ }
267
+ ],
268
+ descriptionKey: "ui.agent.pregnancyDating.actions.setAsOfDate",
269
+ description: "Set the date gestational age, trimester and the antenatal schedule are evaluated against. Defaults to today; the estimated delivery date itself does not depend on it.",
270
+ invoke: (n, s) => n.setAsOfDate(s.date)
271
+ }
272
+ },
273
+ domHooks: {
274
+ root: {
275
+ attr: "data-component",
276
+ value: "pregnancy-dating",
277
+ description: "Marks the PregnancyDating wrapper."
278
+ },
279
+ instanceId: {
280
+ attr: "data-component-id",
281
+ sourceProp: "id",
282
+ description: "Sourced from the id prop. Also the registry key — without an `id` the instance does not register and the handle-driven actions/state are unreachable."
283
+ }
284
+ }
285
+ }, ze = Me("ds:flex ds:flex-col ds:gap-[var(--spacing-lg)]", {
286
+ variants: {
287
+ width: { full: "ds:w-full", auto: "ds:inline-flex" }
288
+ },
289
+ defaultVariants: { width: "full" }
290
+ }), Ye = {
291
+ lmp: "pregnancyDating.lmpDate",
292
+ conception: "pregnancyDating.conceptionDate",
293
+ ivf: "pregnancyDating.transferDate",
294
+ edd: "pregnancyDating.eddDate"
295
+ }, N = (n) => qe(n, "yyyy-MM-dd"), z = (n) => {
296
+ const s = $e(n);
297
+ return Number.isNaN(s.getTime()) ? null : s;
298
+ }, O = { min: 20, max: 45 }, Ue = xe(
299
+ ({
300
+ defaultMethod: n = "lmp",
301
+ defaultReferenceDate: s,
302
+ onResultChange: x,
303
+ onInsert: Y,
304
+ insertVariant: U = "insert",
305
+ onCopy: oe,
306
+ onError: de,
307
+ insertBrand: ce,
308
+ showSchedule: _ = !1,
309
+ defaultPlurality: ue = "singleton",
310
+ defaultChorionicity: ge = "unknown",
311
+ defaultRhNegative: pe = !1,
312
+ defaultGdmRisk: me,
313
+ scheduleOptions: W,
314
+ id: J,
315
+ width: he,
316
+ className: ye
317
+ }, fe) => {
318
+ const { t, i18n: L } = Re(), [l, Q] = c(n), [d, I] = c(
319
+ s
320
+ ), [w, X] = c(
321
+ E
322
+ ), [A, Z] = c(5), [D, ee] = c(null), [b, te] = c(void 0), [v, ae] = c(
323
+ null
324
+ ), [p, ne] = c(() => /* @__PURE__ */ new Date()), [k, De] = c(ue), [F, be] = c(ge), [G, ve] = c(pe), [M, we] = c(
325
+ me ?? "none"
326
+ ), re = y(() => /* @__PURE__ */ new Date(), []), g = y(() => l !== "lmp" || !d || D === null || !b ? null : Pe({ lmp: d, scanDate: b, crlMm: D }), [l, d, D, b]), S = y(() => {
327
+ if (!d) return null;
328
+ let e, o = E;
329
+ l === "lmp" ? (e = d, o = w ?? E) : l === "conception" ? e = P(d, le) : l === "ivf" ? e = P(d, A + le) : e = P(d, He), l === "lmp" && (g != null && g.redated) ? (e = g.gestationalStart, o = E) : v && (e = P(e, v));
330
+ const m = Oe(
331
+ { method: "lmp", date: e, cycleLength: o },
332
+ p
333
+ );
334
+ return {
335
+ result: {
336
+ dueDate: m.dueDate,
337
+ gestationalStart: m.gestationalStart,
338
+ gestationalAge: m.gestationalAge,
339
+ trimester: m.trimester
340
+ },
341
+ milestones: _e(m.gestationalStart)
342
+ };
343
+ }, [
344
+ l,
345
+ d,
346
+ w,
347
+ A,
348
+ g,
349
+ v,
350
+ p
351
+ ]), r = (S == null ? void 0 : S.result) ?? null, R = y(() => !_ || !r ? null : Ie(r.gestationalStart, {
352
+ ...W,
353
+ today: p,
354
+ plurality: k,
355
+ chorionicity: F,
356
+ rhNegative: G,
357
+ gdmRisk: M === "none" ? void 0 : M
358
+ }), [
359
+ _,
360
+ r,
361
+ p,
362
+ W,
363
+ k,
364
+ F,
365
+ G,
366
+ M
367
+ ]), T = y(
368
+ () => new Intl.DateTimeFormat(L.language, { dateStyle: "long" }),
369
+ [L.language]
370
+ ), se = y(
371
+ () => new Intl.DateTimeFormat(L.language, { dateStyle: "medium" }),
372
+ [L.language]
373
+ );
374
+ Le(() => {
375
+ x == null || x(r);
376
+ }, [r, x]);
377
+ const C = ke({
378
+ method: l,
379
+ refDate: d,
380
+ cycleLength: w,
381
+ embryoAge: A,
382
+ crlMm: D,
383
+ scanDate: b,
384
+ datingAdjustment: v,
385
+ asOfDate: p,
386
+ result: r
387
+ });
388
+ C.current = {
389
+ method: l,
390
+ refDate: d,
391
+ cycleLength: w,
392
+ embryoAge: A,
393
+ crlMm: D,
394
+ scanDate: b,
395
+ datingAdjustment: v,
396
+ asOfDate: p,
397
+ result: r
398
+ };
399
+ const Ae = y(
400
+ () => ({
401
+ getInputs: () => {
402
+ const e = C.current;
403
+ return {
404
+ method: e.method,
405
+ referenceDate: e.refDate ? N(e.refDate) : null,
406
+ cycleLength: e.cycleLength,
407
+ embryoAge: e.embryoAge,
408
+ crlMm: e.crlMm,
409
+ scanDate: e.scanDate ? N(e.scanDate) : null,
410
+ datingAdjustment: e.datingAdjustment,
411
+ asOfDate: N(e.asOfDate)
412
+ };
413
+ },
414
+ getResult: () => {
415
+ const e = C.current.result;
416
+ return e ? {
417
+ dueDate: N(e.dueDate),
418
+ gestationalStart: N(e.gestationalStart),
419
+ gestationalAge: e.gestationalAge ? { ...e.gestationalAge } : null,
420
+ trimester: e.trimester
421
+ } : null;
422
+ },
423
+ setMethod: (e) => e !== "lmp" && e !== "conception" && e !== "ivf" && e !== "edd" ? !1 : (Q(e), !0),
424
+ setReferenceDate: (e) => {
425
+ if (e === null)
426
+ return I(void 0), !0;
427
+ const o = z(e);
428
+ return !o || C.current.method !== "edd" && q(o, /* @__PURE__ */ new Date()) ? !1 : (I(o), !0);
429
+ },
430
+ setCycleLength: (e) => e !== null && !(Number.isFinite(e) && e >= O.min && e <= O.max) ? !1 : (X(e), !0),
431
+ setEmbryoAge: (e) => e !== 3 && e !== 5 ? !1 : (Z(e), !0),
432
+ setCrl: (e) => {
433
+ const o = /* @__PURE__ */ new Date();
434
+ let m;
435
+ if ("crlMm" in e) {
436
+ const h = e.crlMm;
437
+ if (h != null && !(Number.isFinite(h) && h > 0))
438
+ return !1;
439
+ }
440
+ if ("scanDate" in e && e.scanDate != null) {
441
+ const h = z(e.scanDate);
442
+ if (!h || q(h, o)) return !1;
443
+ m = h;
444
+ }
445
+ return "crlMm" in e && ee(e.crlMm ?? null), "scanDate" in e && te(m), !0;
446
+ },
447
+ setDatingAdjustment: (e) => e !== null && !Number.isInteger(e) ? !1 : (ae(e), !0),
448
+ setAsOfDate: (e) => {
449
+ const o = z(e);
450
+ return o ? (ne(o), !0) : !1;
451
+ }
452
+ }),
453
+ []
454
+ );
455
+ Te(Be, Ae, J);
456
+ const Se = y(
457
+ () => [
458
+ "unknown",
459
+ "dichorionic-diamniotic",
460
+ "monochorionic-diamniotic",
461
+ "monochorionic-monoamniotic"
462
+ ].map((e) => ({
463
+ value: e,
464
+ label: t(`antenatalSchedule.chorionicity.${e}`)
465
+ })),
466
+ [t]
467
+ ), K = (e) => e ? t("pregnancyDating.result.gestation", {
468
+ weeks: e.weeks,
469
+ days: e.days
470
+ }) : "—";
471
+ return /* @__PURE__ */ i(
472
+ "div",
473
+ {
474
+ ref: fe,
475
+ "data-component": "pregnancy-dating",
476
+ "data-component-id": J,
477
+ className: ze({ width: he, className: ye }),
478
+ children: [
479
+ /* @__PURE__ */ i(
480
+ j,
481
+ {
482
+ label: t("pregnancyDating.method.label"),
483
+ variant: "horizontal",
484
+ value: l,
485
+ onValueChange: (e) => Q(e),
486
+ children: [
487
+ /* @__PURE__ */ a(u, { label: t("pregnancyDating.method.lmp"), value: "lmp" }),
488
+ /* @__PURE__ */ a(
489
+ u,
490
+ {
491
+ label: t("pregnancyDating.method.conception"),
492
+ value: "conception"
493
+ }
494
+ ),
495
+ /* @__PURE__ */ a(u, { label: t("pregnancyDating.method.ivf"), value: "ivf" }),
496
+ /* @__PURE__ */ a(u, { label: t("pregnancyDating.method.edd"), value: "edd" })
497
+ ]
498
+ }
499
+ ),
500
+ /* @__PURE__ */ i("div", { className: "ds:grid ds:grid-cols-1 ds:gap-[var(--spacing-md)] ds:sm:grid-cols-2", children: [
501
+ /* @__PURE__ */ a(f, { label: t(Ye[l]), children: /* @__PURE__ */ a(
502
+ V,
503
+ {
504
+ value: d,
505
+ onChange: I,
506
+ maxDate: l === "edd" ? void 0 : re
507
+ }
508
+ ) }),
509
+ l === "lmp" && /* @__PURE__ */ a(
510
+ f,
511
+ {
512
+ label: t("pregnancyDating.cycleLength"),
513
+ description: t("pregnancyDating.cycleLengthHint"),
514
+ children: /* @__PURE__ */ a(
515
+ H,
516
+ {
517
+ mode: "integer",
518
+ min: O.min,
519
+ max: O.max,
520
+ value: w,
521
+ onChange: X
522
+ }
523
+ )
524
+ }
525
+ ),
526
+ l === "ivf" && /* @__PURE__ */ i(
527
+ j,
528
+ {
529
+ label: t("pregnancyDating.embryoAge"),
530
+ variant: "horizontal",
531
+ value: String(A),
532
+ onValueChange: (e) => Z(Number(e)),
533
+ children: [
534
+ /* @__PURE__ */ a(u, { label: t("pregnancyDating.day3"), value: "3" }),
535
+ /* @__PURE__ */ a(u, { label: t("pregnancyDating.day5"), value: "5" })
536
+ ]
537
+ }
538
+ ),
539
+ /* @__PURE__ */ a(
540
+ f,
541
+ {
542
+ label: t("pregnancyDating.datingAdjustment"),
543
+ description: t("pregnancyDating.datingAdjustmentHint"),
544
+ children: /* @__PURE__ */ a(
545
+ H,
546
+ {
547
+ mode: "integer",
548
+ value: v,
549
+ onChange: ae
550
+ }
551
+ )
552
+ }
553
+ ),
554
+ /* @__PURE__ */ a(
555
+ f,
556
+ {
557
+ label: t("pregnancyDating.asOfDate"),
558
+ description: t("pregnancyDating.asOfDateHint"),
559
+ children: /* @__PURE__ */ a(
560
+ V,
561
+ {
562
+ value: p,
563
+ onChange: (e) => e && ne(e)
564
+ }
565
+ )
566
+ }
567
+ )
568
+ ] }),
569
+ l === "lmp" ? /* @__PURE__ */ i("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
570
+ /* @__PURE__ */ i("div", { className: "ds:grid ds:grid-cols-1 ds:gap-[var(--spacing-md)] ds:sm:grid-cols-2", children: [
571
+ /* @__PURE__ */ a(
572
+ f,
573
+ {
574
+ label: t("pregnancyDating.crl"),
575
+ description: t("pregnancyDating.crlHint"),
576
+ children: /* @__PURE__ */ a(
577
+ H,
578
+ {
579
+ mode: "decimal",
580
+ min: 0,
581
+ step: 0.1,
582
+ value: D,
583
+ onChange: ee
584
+ }
585
+ )
586
+ }
587
+ ),
588
+ /* @__PURE__ */ a(f, { label: t("pregnancyDating.scanDate"), children: /* @__PURE__ */ a(
589
+ V,
590
+ {
591
+ value: b,
592
+ onChange: te,
593
+ maxDate: re
594
+ }
595
+ ) })
596
+ ] }),
597
+ g ? /* @__PURE__ */ i("div", { className: "ds:flex ds:flex-wrap ds:items-center ds:gap-[var(--spacing-sm)]", children: [
598
+ /* @__PURE__ */ a($, { variant: g.redated ? "warning" : "success", children: g.redated ? t("pregnancyDating.redated", {
599
+ days: g.discrepancyDays
600
+ }) : t("pregnancyDating.datesAgree") }),
601
+ g.crlInRange ? null : /* @__PURE__ */ a("span", { className: "type-meta ds:text-muted-foreground", children: t("pregnancyDating.crlOutOfRange") })
602
+ ] }) : null
603
+ ] }) : null,
604
+ _ ? /* @__PURE__ */ i(Ne, { children: [
605
+ /* @__PURE__ */ i(
606
+ j,
607
+ {
608
+ label: t("antenatalSchedule.plurality.label"),
609
+ variant: "horizontal",
610
+ value: k,
611
+ onValueChange: (e) => De(e),
612
+ children: [
613
+ /* @__PURE__ */ a(
614
+ u,
615
+ {
616
+ label: t("antenatalSchedule.plurality.singleton"),
617
+ value: "singleton"
618
+ }
619
+ ),
620
+ /* @__PURE__ */ a(
621
+ u,
622
+ {
623
+ label: t("antenatalSchedule.plurality.twin"),
624
+ value: "twin"
625
+ }
626
+ ),
627
+ /* @__PURE__ */ a(
628
+ u,
629
+ {
630
+ label: t("antenatalSchedule.plurality.triplet"),
631
+ value: "triplet"
632
+ }
633
+ )
634
+ ]
635
+ }
636
+ ),
637
+ k !== "singleton" ? /* @__PURE__ */ a(f, { label: t("antenatalSchedule.chorionicity.label"), children: /* @__PURE__ */ a(
638
+ Ce,
639
+ {
640
+ options: Se,
641
+ value: F,
642
+ onValueChange: (e) => be(e)
643
+ }
644
+ ) }) : null,
645
+ /* @__PURE__ */ a(
646
+ je,
647
+ {
648
+ label: t("antenatalSchedule.rhNegative"),
649
+ checked: G,
650
+ onCheckedChange: ve
651
+ }
652
+ ),
653
+ /* @__PURE__ */ i(
654
+ j,
655
+ {
656
+ label: t("antenatalSchedule.gdmRisk.label"),
657
+ variant: "horizontal",
658
+ value: M,
659
+ onValueChange: (e) => we(e),
660
+ children: [
661
+ /* @__PURE__ */ a(u, { label: t("antenatalSchedule.gdmRisk.none"), value: "none" }),
662
+ /* @__PURE__ */ a(
663
+ u,
664
+ {
665
+ label: t("antenatalSchedule.gdmRisk.medium"),
666
+ value: "medium"
667
+ }
668
+ ),
669
+ /* @__PURE__ */ a(u, { label: t("antenatalSchedule.gdmRisk.high"), value: "high" })
670
+ ]
671
+ }
672
+ )
673
+ ] }) : null,
674
+ /* @__PURE__ */ a("p", { className: "ds:sr-only", role: "status", "aria-live": "polite", children: r ? `${t("pregnancyDating.result.dueDateLabel")}: ${T.format(
675
+ r.dueDate
676
+ )}. ${t("pregnancyDating.result.gestationLabel")}: ${K(
677
+ r.gestationalAge
678
+ )}.` : "" }),
679
+ S && r ? /* @__PURE__ */ a(ie, { variant: "elevated", children: /* @__PURE__ */ i(ie.Body, { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]", children: [
680
+ /* @__PURE__ */ i("dl", { className: "ds:flex ds:flex-wrap ds:items-start ds:gap-x-[var(--spacing-xl)] ds:gap-y-[var(--spacing-md)]", children: [
681
+ /* @__PURE__ */ i("div", { className: "ds:basis-full ds:flex ds:flex-col ds:items-start ds:gap-[var(--spacing-xs)]", children: [
682
+ /* @__PURE__ */ a("dt", { className: "type-label ds:text-muted-foreground", children: t("pregnancyDating.result.dueDateLabel") }),
683
+ /* @__PURE__ */ a("dd", { className: "type-metric ds:text-foreground", children: T.format(r.dueDate) })
684
+ ] }),
685
+ /* @__PURE__ */ i("div", { className: "ds:flex ds:flex-col ds:items-start ds:gap-[var(--spacing-xs)]", children: [
686
+ /* @__PURE__ */ a("dt", { className: "type-label ds:text-muted-foreground", children: t("pregnancyDating.result.gestationLabel") }),
687
+ /* @__PURE__ */ a("dd", { className: "type-body ds:text-foreground", children: K(r.gestationalAge) })
688
+ ] }),
689
+ /* @__PURE__ */ i("div", { className: "ds:flex ds:flex-col ds:items-start ds:gap-[var(--spacing-xs)]", children: [
690
+ /* @__PURE__ */ a("dt", { className: "type-label ds:text-muted-foreground", children: t("pregnancyDating.result.trimesterLabel") }),
691
+ /* @__PURE__ */ a("dd", { children: /* @__PURE__ */ a(
692
+ $,
693
+ {
694
+ variant: Fe[r.trimester],
695
+ size: "lg",
696
+ children: t(`pregnancyDating.trimester.${r.trimester}`)
697
+ }
698
+ ) })
699
+ ] })
700
+ ] }),
701
+ /* @__PURE__ */ i("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)]", children: [
702
+ /* @__PURE__ */ a("span", { className: "type-label ds:text-muted-foreground", children: t("pregnancyDating.milestonesLabel") }),
703
+ /* @__PURE__ */ a("ul", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)]", children: S.milestones.map((e) => {
704
+ const o = q(p, e.date);
705
+ return /* @__PURE__ */ i(
706
+ "li",
707
+ {
708
+ className: "ds:flex ds:items-center ds:justify-between ds:gap-[var(--spacing-md)]",
709
+ children: [
710
+ /* @__PURE__ */ a("span", { className: "type-body ds:text-foreground", children: t(`pregnancyDating.milestone.${e.key}`) }),
711
+ /* @__PURE__ */ i("span", { className: "ds:flex ds:items-center ds:gap-[var(--spacing-sm)]", children: [
712
+ /* @__PURE__ */ a("span", { className: "type-body ds:text-muted-foreground", children: se.format(e.date) }),
713
+ o ? /* @__PURE__ */ a($, { variant: "success", children: t("pregnancyDating.reached") }) : null
714
+ ] })
715
+ ]
716
+ },
717
+ e.key
718
+ );
719
+ }) })
720
+ ] })
721
+ ] }) }) : /* @__PURE__ */ a("p", { className: "type-body ds:text-muted-foreground", children: t("pregnancyDating.empty") }),
722
+ R ? /* @__PURE__ */ a(Ge, { events: R }) : null,
723
+ r && (U === "copy" || Y) ? /* @__PURE__ */ a(
724
+ Ee,
725
+ {
726
+ onInsert: Y,
727
+ variant: U,
728
+ onCopy: oe,
729
+ onError: de,
730
+ card: {
731
+ title: t("insert.title.pregnancyDating"),
732
+ icon: "calendar-heart",
733
+ highlight: T.format(r.dueDate),
734
+ highlightToken: Ve(r.trimester),
735
+ brand: ce,
736
+ fields: [
737
+ {
738
+ icon: "calendar",
739
+ label: t("pregnancyDating.result.dueDateLabel"),
740
+ value: T.format(r.dueDate)
741
+ },
742
+ {
743
+ icon: "clock",
744
+ label: t("pregnancyDating.result.gestationLabel"),
745
+ value: K(r.gestationalAge)
746
+ },
747
+ {
748
+ icon: "tag",
749
+ label: t("pregnancyDating.result.trimesterLabel"),
750
+ value: t(`pregnancyDating.trimester.${r.trimester}`)
751
+ },
752
+ ...R ? Ke(
753
+ R,
754
+ t,
755
+ (e) => se.format(e)
756
+ ) : []
757
+ ]
758
+ }
759
+ }
760
+ ) : null
761
+ ]
762
+ }
763
+ );
764
+ }
765
+ );
766
+ Ue.displayName = "PregnancyDating";
767
+ export {
768
+ Ue as P
769
+ };
770
+ //# sourceMappingURL=pregnancy-dating-BmpHScZ0.js.map