@alfadocs/ui-kit 0.48.0 → 0.49.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 (176) hide show
  1. package/dist/_chunks/{address-autocomplete-CSjMrBvu.js → address-autocomplete-CT-9AOli.js} +2 -2
  2. package/dist/_chunks/{ai-consent-banner-DO5ingMq.js → ai-consent-banner-F2md5JD3.js} +2 -2
  3. package/dist/_chunks/{ai-tools-rail-CxYG04cw.js → ai-tools-rail-CYLWrRmm.js} +6 -6
  4. package/dist/_chunks/{alert-ywPR59NE.js → alert-CUTxnym2.js} +56 -35
  5. package/dist/_chunks/antenatal-schedule-timeline-Dg0m0yFl.js +412 -0
  6. package/dist/_chunks/{ar-DEz65ZJW.js → ar-C68WKG5a.js} +2 -2
  7. package/dist/_chunks/{audio-recorder-DC-v9YFW.js → audio-recorder-DVJXV7_k.js} +2 -2
  8. package/dist/_chunks/bishop-score-2MzAz8NE.js +185 -0
  9. package/dist/_chunks/{booking-WV2GSru5.js → booking-DljH0JkS.js} +5 -5
  10. package/dist/_chunks/circle-arrow-up-CC_85SuH.js +16 -0
  11. package/dist/_chunks/cycle-calculator-oOkj5wlB.js +252 -0
  12. package/dist/_chunks/{date-picker-Bq7xhMA-.js → date-picker-BfHblqwA.js} +2 -2
  13. package/dist/_chunks/{date-picker-variants-DLi1Va_e.js → date-picker-variants-CXEAx3O_.js} +22 -22
  14. package/dist/_chunks/{date-range-picker-DcXuI9y7.js → date-range-picker-hcAMs1wO.js} +3 -3
  15. package/dist/_chunks/{date-time-picker-RimumeLR.js → date-time-picker-H-3Pwqlb.js} +9 -9
  16. package/dist/_chunks/{de-bTBGdjPS.js → de-DK4A9_a8.js} +2 -2
  17. package/dist/_chunks/{document-scanner-BqLsGs4Y.js → document-scanner-Cxqvq7GR.js} +2 -2
  18. package/dist/_chunks/due-date-calculator-tDqZXPWO.js +256 -0
  19. package/dist/_chunks/{editable-currency-cell-renderer-CLil9B29.js → editable-currency-cell-renderer-Bh48OHRv.js} +2 -2
  20. package/dist/_chunks/{el-BWG5RXxa.js → el-B29HXhG5.js} +2 -2
  21. package/dist/_chunks/{es-DfO_G435.js → es-BOwPVwWn.js} +2 -2
  22. package/dist/_chunks/fetal-weight-Da-B4P4k.js +122 -0
  23. package/dist/_chunks/{fr-BTn24bs8.js → fr-DoDBtn0T.js} +2 -2
  24. package/dist/_chunks/{freemium-paywall-DzpD63WY.js → freemium-paywall-BWaLWje-.js} +2 -2
  25. package/dist/_chunks/gestational-age-calculator-DbDfTJU2.js +311 -0
  26. package/dist/_chunks/hcg-doubling-DAnpbale.js +170 -0
  27. package/dist/_chunks/{hi-Dj3oYd84.js → hi-DGByrKby.js} +2 -2
  28. package/dist/_chunks/{isSameWeek-HfxKk6Lz.js → isSameWeek-B1odL2vR.js} +2 -2
  29. package/dist/_chunks/{it-Y85ofIQQ.js → it-B16rEecm.js} +3 -3
  30. package/dist/_chunks/{ja-CQ7J6YoA.js → ja-B0viOgft.js} +2 -2
  31. package/dist/_chunks/{marketplace-app-shell-Gfsf78ge.js → marketplace-app-shell-UKSLx9K_.js} +3 -3
  32. package/dist/_chunks/{nl-D9kHCmp3.js → nl-cBxEX2QU.js} +2 -2
  33. package/dist/_chunks/{patient-search-CocVcGJ3.js → patient-search-BJOmTmDA.js} +2 -2
  34. package/dist/_chunks/{patient-shell-CnT4L8gn.js → patient-shell-DUmhXnFq.js} +2 -2
  35. package/dist/_chunks/{payment-form-BNTx4876.js → payment-form-xmeCkxas.js} +2 -2
  36. package/dist/_chunks/{pdf-viewer-G8SU6Azw.js → pdf-viewer-q1D3Uion.js} +2 -2
  37. package/dist/_chunks/{pl-B3Smqpkr.js → pl-DtS08ioY.js} +3 -3
  38. package/dist/_chunks/{practice-results-BFL_mcDW.js → practice-results-Cq1y8JFD.js} +2 -2
  39. package/dist/_chunks/pregnancy-weight-gain-CCGrvarh.js +322 -0
  40. package/dist/_chunks/product-hub-panel-CkfZBA3t.js +620 -0
  41. package/dist/_chunks/{pt-D3J-1c_7.js → pt-yFXs1VvH.js} +2 -2
  42. package/dist/_chunks/{ro-BKAbbEA3.js → ro-DsCzSrzR.js} +2 -2
  43. package/dist/_chunks/{ru-BeG8f0Ep.js → ru-DgDxL0pc.js} +3 -3
  44. package/dist/_chunks/{sidebar-_vJXI9rB.js → sidebar-h78cTNLh.js} +440 -338
  45. package/dist/_chunks/{sign-document-DPI2pY9V.js → sign-document-CZkAf28g.js} +2 -2
  46. package/dist/_chunks/{sq-_hRPaeUy.js → sq-DHlCYN67.js} +2 -2
  47. package/dist/_chunks/subDays-Bs00akhK.js +8 -0
  48. package/dist/_chunks/{sv-g009fSpe.js → sv-O0QaQs_s.js} +2 -2
  49. package/dist/_chunks/{tr-OKUOuhMW.js → tr-BmNDRuio.js} +2 -2
  50. package/dist/_chunks/warning-stack-CXfoAT-_.js +220 -0
  51. package/dist/_chunks/{workflow-map-ZXw-zsZ8.js → workflow-map-DzX_LI4y.js} +2 -2
  52. package/dist/_chunks/{zh-CN-De4zwEhx.js → zh-CN-CgVJZEzz.js} +3 -3
  53. package/dist/agent-catalog.json +44 -1
  54. package/dist/components/_shared/antenatal-schedule-timeline.d.ts +18 -0
  55. package/dist/components/_shared/antenatal-schedule.d.ts +68 -0
  56. package/dist/components/_shared/index.d.ts +3 -0
  57. package/dist/components/_shared/obstetrics.d.ts +138 -0
  58. package/dist/components/address-autocomplete/index.js +1 -1
  59. package/dist/components/ai-consent-banner/index.js +1 -1
  60. package/dist/components/ai-tools-rail/index.js +1 -1
  61. package/dist/components/alert/alert.d.ts +2 -2
  62. package/dist/components/alert/index.js +1 -1
  63. package/dist/components/audio-recorder/index.js +1 -1
  64. package/dist/components/bishop-score/bishop-score.d.ts +27 -0
  65. package/dist/components/bishop-score/bishop.d.ts +30 -0
  66. package/dist/components/bishop-score/index.d.ts +4 -0
  67. package/dist/components/bishop-score/index.js +10 -0
  68. package/dist/components/booking/index.js +1 -1
  69. package/dist/components/cycle-calculator/cycle.d.ts +5 -0
  70. package/dist/components/cycle-calculator/index.js +1 -1
  71. package/dist/components/data-table/index.js +1 -1
  72. package/dist/components/date-picker/index.js +1 -1
  73. package/dist/components/date-range-picker/index.js +1 -1
  74. package/dist/components/date-time-picker/index.js +1 -1
  75. package/dist/components/document-scanner/index.js +1 -1
  76. package/dist/components/due-date-calculator/due-date-calculator.d.ts +13 -1
  77. package/dist/components/due-date-calculator/gestation.d.ts +1 -59
  78. package/dist/components/due-date-calculator/index.d.ts +1 -1
  79. package/dist/components/due-date-calculator/index.js +16 -10
  80. package/dist/components/fetal-weight/efw.d.ts +25 -0
  81. package/dist/components/fetal-weight/fetal-weight.d.ts +27 -0
  82. package/dist/components/fetal-weight/index.d.ts +4 -0
  83. package/dist/components/fetal-weight/index.js +6 -0
  84. package/dist/components/freemium-paywall/index.js +1 -1
  85. package/dist/components/gestational-age-calculator/gestational-age-calculator.d.ts +25 -1
  86. package/dist/components/gestational-age-calculator/index.js +1 -1
  87. package/dist/components/hcg-doubling/hcg-doubling.d.ts +31 -0
  88. package/dist/components/hcg-doubling/hcg.d.ts +33 -0
  89. package/dist/components/hcg-doubling/index.d.ts +4 -0
  90. package/dist/components/hcg-doubling/index.js +7 -0
  91. package/dist/components/index.d.ts +4 -0
  92. package/dist/components/patient-search/index.js +1 -1
  93. package/dist/components/payment-form/index.js +1 -1
  94. package/dist/components/pdf-viewer/index.js +1 -1
  95. package/dist/components/practice-results/index.js +1 -1
  96. package/dist/components/pregnancy-weight-gain/index.js +1 -1
  97. package/dist/components/pregnancy-weight-gain/pregnancy-weight-gain.d.ts +7 -0
  98. package/dist/components/pregnancy-weight-gain/weight-gain.d.ts +33 -8
  99. package/dist/components/product-hub-tray/index.d.ts +8 -0
  100. package/dist/components/product-hub-tray/index.js +10 -0
  101. package/dist/components/product-hub-tray/product-hub-panel.agent.d.ts +4 -0
  102. package/dist/components/product-hub-tray/product-hub-panel.d.ts +54 -0
  103. package/dist/components/product-hub-tray/product-hub-tray.agent.d.ts +4 -0
  104. package/dist/components/product-hub-tray/product-hub-tray.d.ts +115 -0
  105. package/dist/components/sidebar/index.d.ts +2 -2
  106. package/dist/components/sidebar/index.js +12 -11
  107. package/dist/components/sidebar/sidebar.d.ts +14 -1
  108. package/dist/components/sign-document/index.js +1 -1
  109. package/dist/components/warning-stack/index.js +1 -1
  110. package/dist/components/workflow/index.js +1 -1
  111. package/dist/i18n/locales/ar.d.ts +210 -1
  112. package/dist/i18n/locales/ar.js +209 -2
  113. package/dist/i18n/locales/de.d.ts +210 -1
  114. package/dist/i18n/locales/de.js +209 -2
  115. package/dist/i18n/locales/el.d.ts +210 -1
  116. package/dist/i18n/locales/el.js +209 -2
  117. package/dist/i18n/locales/en.d.ts +210 -1
  118. package/dist/i18n/locales/en.js +209 -2
  119. package/dist/i18n/locales/es.d.ts +210 -1
  120. package/dist/i18n/locales/es.js +209 -2
  121. package/dist/i18n/locales/fr.d.ts +210 -1
  122. package/dist/i18n/locales/fr.js +209 -2
  123. package/dist/i18n/locales/hi.d.ts +210 -1
  124. package/dist/i18n/locales/hi.js +209 -2
  125. package/dist/i18n/locales/it.d.ts +210 -1
  126. package/dist/i18n/locales/it.js +209 -2
  127. package/dist/i18n/locales/ja.d.ts +210 -1
  128. package/dist/i18n/locales/ja.js +209 -2
  129. package/dist/i18n/locales/nl.d.ts +210 -1
  130. package/dist/i18n/locales/nl.js +209 -2
  131. package/dist/i18n/locales/pl.d.ts +210 -1
  132. package/dist/i18n/locales/pl.js +209 -2
  133. package/dist/i18n/locales/pt.d.ts +210 -1
  134. package/dist/i18n/locales/pt.js +209 -2
  135. package/dist/i18n/locales/ro.d.ts +210 -1
  136. package/dist/i18n/locales/ro.js +209 -2
  137. package/dist/i18n/locales/ru.d.ts +210 -1
  138. package/dist/i18n/locales/ru.js +209 -2
  139. package/dist/i18n/locales/sq.d.ts +210 -1
  140. package/dist/i18n/locales/sq.js +209 -2
  141. package/dist/i18n/locales/sv.d.ts +210 -1
  142. package/dist/i18n/locales/sv.js +209 -2
  143. package/dist/i18n/locales/tr.d.ts +210 -1
  144. package/dist/i18n/locales/tr.js +209 -2
  145. package/dist/i18n/locales/zh.d.ts +210 -1
  146. package/dist/i18n/locales/zh.js +209 -2
  147. package/dist/index.js +658 -631
  148. package/dist/locales/ar.json +211 -2
  149. package/dist/locales/de.json +211 -2
  150. package/dist/locales/el.json +211 -2
  151. package/dist/locales/en.json +211 -2
  152. package/dist/locales/es.json +211 -2
  153. package/dist/locales/fr.json +211 -2
  154. package/dist/locales/hi.json +211 -2
  155. package/dist/locales/it.json +211 -2
  156. package/dist/locales/ja.json +211 -2
  157. package/dist/locales/nl.json +211 -2
  158. package/dist/locales/pl.json +211 -2
  159. package/dist/locales/pt.json +211 -2
  160. package/dist/locales/ro.json +211 -2
  161. package/dist/locales/ru.json +211 -2
  162. package/dist/locales/sq.json +211 -2
  163. package/dist/locales/sv.json +211 -2
  164. package/dist/locales/tr.json +211 -2
  165. package/dist/locales/zh.json +211 -2
  166. package/dist/patterns/marketplace-app-shell/index.js +1 -1
  167. package/dist/patterns/patient-shell/index.js +1 -1
  168. package/dist/tokens.css +1 -1
  169. package/package.json +17 -1
  170. package/dist/_chunks/cycle-calculator-DYvGm_m1.js +0 -211
  171. package/dist/_chunks/due-date-calculator-BXd3ANj7.js +0 -216
  172. package/dist/_chunks/gestation-mWF4AXea.js +0 -50
  173. package/dist/_chunks/gestational-age-calculator-Crj6FgZw.js +0 -203
  174. package/dist/_chunks/pregnancy-weight-gain-C7dK89jE.js +0 -246
  175. package/dist/_chunks/subDays-Dv7q9S7u.js +0 -8
  176. package/dist/_chunks/warning-stack-DNR3-IbP.js +0 -180
@@ -0,0 +1,322 @@
1
+ import { jsxs as l, jsx as n, Fragment as z } from "react/jsx-runtime";
2
+ import { forwardRef as U, useState as y, useMemo as K, useEffect as V } from "react";
3
+ import { c as q } from "./index-D2ZczOXr.js";
4
+ import { useTranslation as J } from "react-i18next";
5
+ import { R as I } from "./radio-TWf9Q-mp.js";
6
+ import { R as Q } from "./radio-group-CLjK-SlK.js";
7
+ import { F as $ } from "./form-field-BOm9hK35.js";
8
+ import { N as R } from "./number-input-Dj5L3pXK.js";
9
+ import { C as P } from "./card-DPmk26CL.js";
10
+ import { B as k } from "./badge-zsf5i5bH.js";
11
+ import { I as X } from "./insert-result-DNdi_JYW.js";
12
+ import { b as Y, e as Z } from "./bmi-BxD-tFzU.js";
13
+ const ee = {
14
+ underweight: { min: 12.5, max: 18 },
15
+ normal: { min: 11.5, max: 16 },
16
+ overweight: { min: 7, max: 11.5 },
17
+ obese: { min: 5, max: 9 }
18
+ }, ae = {
19
+ normal: { min: 16.8, max: 24.5 },
20
+ overweight: { min: 14.1, max: 22.7 },
21
+ obese: { min: 11.3, max: 19.1 }
22
+ };
23
+ function A(t, i = "singleton") {
24
+ return i === "triplet" ? null : i === "twin" ? ae[t] ?? null : ee[t];
25
+ }
26
+ const E = {
27
+ underweight: { min: 0.44, max: 0.58 },
28
+ normal: { min: 0.35, max: 0.5 },
29
+ overweight: { min: 0.23, max: 0.33 },
30
+ obese: { min: 0.17, max: 0.27 }
31
+ }, p = { min: 0.5, max: 2 }, f = 13, ne = (p.min + p.max) / 2;
32
+ function te(t, i, c = "singleton") {
33
+ if (c !== "singleton") {
34
+ const r = A(t, c);
35
+ if (!r) return null;
36
+ if (i <= 0) return { min: 0, max: 0 };
37
+ const g = Math.min(i, 40) / 40;
38
+ return { min: r.min * g, max: r.max * g };
39
+ }
40
+ if (i <= 0) return { min: 0, max: 0 };
41
+ if (i <= f) {
42
+ const r = i / f;
43
+ return {
44
+ min: p.min * r,
45
+ max: p.max * r
46
+ };
47
+ }
48
+ const s = Math.min(i, 40) - f, o = E[t];
49
+ return {
50
+ min: p.min + o.min * s,
51
+ max: p.max + o.max * s
52
+ };
53
+ }
54
+ function ie(t) {
55
+ const i = Y(t.prePregnancyBmi), c = t.plurality ?? "singleton", s = A(i, c), o = s ? te(i, t.gestationalWeeks, c) : null, r = t.currentWeightKg - t.prePregnancyWeightKg, g = o ? r < o.min ? "below" : r > o.max ? "above" : "within" : null;
56
+ let m = null, x = null;
57
+ if (c === "singleton" && t.gestationalWeeks > f) {
58
+ const S = t.gestationalWeeks - f;
59
+ m = (r - ne) / S;
60
+ const G = E[i];
61
+ x = m < G.min ? "below" : m > G.max ? "above" : "within";
62
+ }
63
+ return {
64
+ category: i,
65
+ plurality: c,
66
+ totalRange: s,
67
+ recommendedToDate: o,
68
+ actualGainKg: r,
69
+ status: g,
70
+ weeklyRate: m,
71
+ rateStatus: x
72
+ };
73
+ }
74
+ const re = q("ds:flex ds:flex-col ds:gap-[var(--spacing-lg)]", {
75
+ variants: {
76
+ width: { full: "ds:w-full", auto: "ds:inline-flex" }
77
+ },
78
+ defaultVariants: { width: "full" }
79
+ }), B = {
80
+ below: "warning",
81
+ within: "success",
82
+ above: "warning"
83
+ }, le = {
84
+ below: "--warning-readable",
85
+ within: "--success",
86
+ above: "--warning-readable"
87
+ };
88
+ function se(t) {
89
+ return le[t];
90
+ }
91
+ const oe = U(
92
+ ({
93
+ defaultPlurality: t = "singleton",
94
+ defaultHeightCm: i,
95
+ defaultPrePregnancyKg: c,
96
+ onResultChange: s,
97
+ onInsert: o,
98
+ insertVariant: r = "insert",
99
+ onCopy: g,
100
+ onError: m,
101
+ insertBrand: x,
102
+ id: S,
103
+ width: G,
104
+ className: F
105
+ }, M) => {
106
+ const { t: e, i18n: D } = J(), [_, C] = y(
107
+ i ?? null
108
+ ), [h, H] = y(
109
+ c ?? null
110
+ ), [W, O] = y(null), [b, L] = y(null), [v, j] = y(t), N = Z(h, _), a = K(() => N === null || h === null || W === null || b === null ? null : ie({
111
+ prePregnancyBmi: N,
112
+ prePregnancyWeightKg: h,
113
+ currentWeightKg: W,
114
+ gestationalWeeks: b,
115
+ plurality: v
116
+ }), [N, h, W, b, v]), d = K(
117
+ () => new Intl.NumberFormat(D.language, {
118
+ minimumFractionDigits: 1,
119
+ maximumFractionDigits: 1
120
+ }),
121
+ [D.language]
122
+ );
123
+ V(() => {
124
+ s == null || s(a);
125
+ }, [a, s]);
126
+ const u = e("pregnancyWeightGain.units.kg"), T = (w) => `${d.format(w.min)} – ${d.format(w.max)} ${u}`;
127
+ return /* @__PURE__ */ l(
128
+ "div",
129
+ {
130
+ ref: M,
131
+ "data-component": "pregnancy-weight-gain",
132
+ "data-component-id": S,
133
+ className: re({ width: G, className: F }),
134
+ children: [
135
+ /* @__PURE__ */ l("div", { className: "ds:grid ds:grid-cols-1 ds:gap-[var(--spacing-md)] ds:sm:grid-cols-2", children: [
136
+ /* @__PURE__ */ n(
137
+ $,
138
+ {
139
+ label: `${e("pregnancyWeightGain.height")} (${e("pregnancyWeightGain.units.cm")})`,
140
+ children: /* @__PURE__ */ n(
141
+ R,
142
+ {
143
+ mode: "decimal",
144
+ min: 0,
145
+ step: 0.5,
146
+ value: _,
147
+ onChange: C
148
+ }
149
+ )
150
+ }
151
+ ),
152
+ /* @__PURE__ */ n(
153
+ $,
154
+ {
155
+ label: `${e("pregnancyWeightGain.prePregnancyWeight")} (${u})`,
156
+ children: /* @__PURE__ */ n(
157
+ R,
158
+ {
159
+ mode: "decimal",
160
+ min: 0,
161
+ step: 0.1,
162
+ value: h,
163
+ onChange: H
164
+ }
165
+ )
166
+ }
167
+ ),
168
+ /* @__PURE__ */ n(
169
+ $,
170
+ {
171
+ label: `${e("pregnancyWeightGain.currentWeight")} (${u})`,
172
+ children: /* @__PURE__ */ n(
173
+ R,
174
+ {
175
+ mode: "decimal",
176
+ min: 0,
177
+ step: 0.1,
178
+ value: W,
179
+ onChange: O
180
+ }
181
+ )
182
+ }
183
+ ),
184
+ /* @__PURE__ */ n($, { label: e("pregnancyWeightGain.gestationalWeeks"), children: /* @__PURE__ */ n(
185
+ R,
186
+ {
187
+ mode: "integer",
188
+ min: 0,
189
+ max: 42,
190
+ value: b,
191
+ onChange: L
192
+ }
193
+ ) })
194
+ ] }),
195
+ /* @__PURE__ */ l(
196
+ Q,
197
+ {
198
+ label: e("pregnancyWeightGain.plurality.label"),
199
+ variant: "horizontal",
200
+ value: v,
201
+ onValueChange: (w) => j(w),
202
+ children: [
203
+ /* @__PURE__ */ n(
204
+ I,
205
+ {
206
+ label: e("pregnancyWeightGain.plurality.singleton"),
207
+ value: "singleton"
208
+ }
209
+ ),
210
+ /* @__PURE__ */ n(I, { label: e("pregnancyWeightGain.plurality.twin"), value: "twin" }),
211
+ /* @__PURE__ */ n(
212
+ I,
213
+ {
214
+ label: e("pregnancyWeightGain.plurality.triplet"),
215
+ value: "triplet"
216
+ }
217
+ )
218
+ ]
219
+ }
220
+ ),
221
+ /* @__PURE__ */ n("p", { className: "ds:sr-only", role: "status", "aria-live": "polite", children: a ? `${e("pregnancyWeightGain.actualGain")}: ${d.format(
222
+ a.actualGainKg
223
+ )} ${u}.${a.status ? ` ${e(`pregnancyWeightGain.status.${a.status}`)}.` : ` ${e("pregnancyWeightGain.noGuideline")}`}` : "" }),
224
+ a ? /* @__PURE__ */ n(P, { variant: "elevated", children: /* @__PURE__ */ l(P.Body, { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]", children: [
225
+ /* @__PURE__ */ l("dl", { className: "ds:grid ds:grid-cols-1 ds:gap-[var(--spacing-md)] ds:sm:grid-cols-2", children: [
226
+ /* @__PURE__ */ l("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)]", children: [
227
+ /* @__PURE__ */ n("dt", { className: "type-label ds:text-muted-foreground", children: e("pregnancyWeightGain.prePregnancyBmi") }),
228
+ /* @__PURE__ */ l("dd", { className: "type-body ds:text-foreground", children: [
229
+ d.format(N ?? 0),
230
+ " ·",
231
+ " ",
232
+ e(`pregnancyWeightGain.category.${a.category}`)
233
+ ] })
234
+ ] }),
235
+ /* @__PURE__ */ l("div", { className: "ds:flex ds:flex-col ds:items-start ds:gap-[var(--spacing-xs)]", children: [
236
+ /* @__PURE__ */ n("dt", { className: "type-label ds:text-muted-foreground", children: e("pregnancyWeightGain.actualGain") }),
237
+ /* @__PURE__ */ l("dd", { className: "ds:flex ds:flex-col ds:items-start ds:gap-[var(--spacing-xs)]", children: [
238
+ /* @__PURE__ */ l("span", { className: "type-metric ds:text-foreground", children: [
239
+ d.format(a.actualGainKg),
240
+ " ",
241
+ u
242
+ ] }),
243
+ a.status ? /* @__PURE__ */ n(k, { variant: B[a.status], size: "lg", children: e(`pregnancyWeightGain.status.${a.status}`) }) : null
244
+ ] })
245
+ ] }),
246
+ a.recommendedToDate && a.totalRange ? /* @__PURE__ */ l(z, { children: [
247
+ /* @__PURE__ */ l("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)]", children: [
248
+ /* @__PURE__ */ n("dt", { className: "type-label ds:text-muted-foreground", children: e("pregnancyWeightGain.recommendedToDate") }),
249
+ /* @__PURE__ */ n("dd", { className: "type-body ds:text-foreground", children: T(a.recommendedToDate) })
250
+ ] }),
251
+ /* @__PURE__ */ l("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)]", children: [
252
+ /* @__PURE__ */ n("dt", { className: "type-label ds:text-muted-foreground", children: e("pregnancyWeightGain.recommendedTotal") }),
253
+ /* @__PURE__ */ n("dd", { className: "type-body ds:text-foreground", children: T(a.totalRange) })
254
+ ] })
255
+ ] }) : null
256
+ ] }),
257
+ a.totalRange ? null : /* @__PURE__ */ n("p", { className: "type-body ds:text-foreground", children: e("pregnancyWeightGain.noGuideline") }),
258
+ a.weeklyRate !== null && a.rateStatus ? /* @__PURE__ */ l("div", { className: "ds:flex ds:flex-wrap ds:items-center ds:gap-[var(--spacing-sm)]", children: [
259
+ /* @__PURE__ */ n("span", { className: "type-label ds:text-muted-foreground", children: e("pregnancyWeightGain.weeklyRate") }),
260
+ /* @__PURE__ */ n("span", { className: "type-body ds:text-foreground", children: e("pregnancyWeightGain.perWeek", {
261
+ value: d.format(a.weeklyRate)
262
+ }) }),
263
+ /* @__PURE__ */ n(k, { variant: B[a.rateStatus], children: e(`pregnancyWeightGain.status.${a.rateStatus}`) })
264
+ ] }) : null,
265
+ /* @__PURE__ */ n("p", { className: "type-body-sm ds:text-muted-foreground", children: e(
266
+ v === "singleton" ? "pregnancyWeightGain.disclaimer" : "pregnancyWeightGain.disclaimerMultiple"
267
+ ) }),
268
+ a.status && a.recommendedToDate && a.totalRange && (r === "copy" || o) ? /* @__PURE__ */ n(
269
+ X,
270
+ {
271
+ onInsert: o,
272
+ variant: r,
273
+ onCopy: g,
274
+ onError: m,
275
+ card: {
276
+ title: e("insert.title.weightGain"),
277
+ icon: "baby",
278
+ highlight: e(`pregnancyWeightGain.status.${a.status}`),
279
+ // Chip shares the gain-status semantic token so the
280
+ // inserted PNG chip matches the on-screen status badge —
281
+ // with the contrast-safe orange override for the
282
+ // `--warning` below/above statuses.
283
+ highlightToken: se(a.status),
284
+ brand: x,
285
+ fields: [
286
+ {
287
+ // Actual gain is the headline trend → trending-up glyph.
288
+ icon: "trending-up",
289
+ label: e("pregnancyWeightGain.actualGain"),
290
+ value: `${d.format(a.actualGainKg)} ${u}`
291
+ },
292
+ {
293
+ // Recommended weight band → scale glyph.
294
+ icon: "scale",
295
+ label: e("pregnancyWeightGain.recommendedToDate"),
296
+ value: T(a.recommendedToDate)
297
+ },
298
+ {
299
+ // Recommended total weight band → scale glyph.
300
+ icon: "scale",
301
+ label: e("pregnancyWeightGain.recommendedTotal"),
302
+ value: T(a.totalRange)
303
+ }
304
+ ]
305
+ }
306
+ }
307
+ ) : null
308
+ ] }) }) : /* @__PURE__ */ n("p", { className: "type-body ds:text-muted-foreground", children: e("pregnancyWeightGain.empty") })
309
+ ]
310
+ }
311
+ );
312
+ }
313
+ );
314
+ oe.displayName = "PregnancyWeightGain";
315
+ export {
316
+ oe as P,
317
+ E as R,
318
+ ee as T,
319
+ ie as a,
320
+ te as r
321
+ };
322
+ //# sourceMappingURL=pregnancy-weight-gain-CCGrvarh.js.map