@alfadocs/ui-kit 0.37.0 → 0.39.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (263) hide show
  1. package/dist/_chunks/Alfadocs_Logo_Mark-7o3L3WBI.js +56 -0
  2. package/dist/_chunks/{accordion-bSU21uTV.js → accordion-9lJSMMsZ.js} +6 -6
  3. package/dist/_chunks/{agenda-tray-By_asPN9.js → agenda-tray-Dyj9ChHC.js} +22 -21
  4. package/dist/_chunks/{alia-sidebar-BEoMl6UL.js → alia-sidebar-DXsYPinm.js} +2 -2
  5. package/dist/_chunks/{ar-D1RwVZFj.js → ar-Cn_NxqkN.js} +2 -2
  6. package/dist/_chunks/bmi-BxD-tFzU.js +32 -0
  7. package/dist/_chunks/bmi-calculator-DnEr513I.js +213 -0
  8. package/dist/_chunks/{booking-DqXsd1Mv.js → booking-4mCw3Mpl.js} +5 -5
  9. package/dist/_chunks/calculator-dialog-B74fqpFZ.js +40 -0
  10. package/dist/_chunks/{chart-DnHvmiDX.js → chart-Cbt0_sKv.js} +46 -37
  11. package/dist/_chunks/{chat-message-D53_fH2w.js → chat-message-ASgGtj-L.js} +30 -39
  12. package/dist/_chunks/{collapsible-CERONory.js → collapsible-X3oaLPU3.js} +5 -5
  13. package/dist/_chunks/{contact-profile-card-BA6fgS45.js → contact-profile-card-DHyuAPXM.js} +14 -13
  14. package/dist/_chunks/cycle-calculator-B5Uj9QeT.js +185 -0
  15. package/dist/_chunks/{date-picker-CXFpu-qY.js → date-picker-CvQfs6Xh.js} +2 -2
  16. package/dist/_chunks/{date-range-picker-I-q5rifj.js → date-range-picker-U9fn1g9d.js} +3 -3
  17. package/dist/_chunks/{date-time-picker-CqpGPlcH.js → date-time-picker-Cva0ZCWw.js} +2 -2
  18. package/dist/_chunks/{de-HTQ4b4-J.js → de-BMM2H7Bs.js} +2 -2
  19. package/dist/_chunks/dependent-selector-CRWgieHm.js +324 -0
  20. package/dist/_chunks/document-scanner-CqS_klIr.js +703 -0
  21. package/dist/_chunks/due-date-calculator-CUspKSTw.js +171 -0
  22. package/dist/_chunks/{editable-currency-cell-renderer-DnjwZNZP.js → editable-currency-cell-renderer-DgkCIIcO.js} +3 -3
  23. package/dist/_chunks/{el-Dr1pjuDq.js → el-BYPonAaK.js} +2 -2
  24. package/dist/_chunks/{es-CvyTjLS0.js → es-CMkVCQ4F.js} +2 -2
  25. package/dist/_chunks/{file-upload-CdozCPct.js → file-upload-BosbPDb1.js} +3 -2
  26. package/dist/_chunks/fiscal-code-input-BZ0FxwUl.js +540 -0
  27. package/dist/_chunks/{fr-CS7aqaFR.js → fr-BcuWxqft.js} +2 -2
  28. package/dist/_chunks/{freemium-paywall-D1N02Oam.js → freemium-paywall-BAk3a6er.js} +7 -7
  29. package/dist/_chunks/gestation-BXEgDGmP.js +50 -0
  30. package/dist/_chunks/gestational-age-calculator-CsQ05qDy.js +165 -0
  31. package/dist/_chunks/header-settings-CBLwUK6t.js +244 -0
  32. package/dist/_chunks/heart-C0faivFf.js +20 -0
  33. package/dist/_chunks/{hi-3uy8KpsH.js → hi-wkq_rQAh.js} +2 -2
  34. package/dist/_chunks/image-C6RM5hfF.js +16 -0
  35. package/dist/_chunks/insert-result-yJ0QavoN.js +133 -0
  36. package/dist/_chunks/{isSameWeek-DRpMibi9.js → isSameWeek-Bim5ftRd.js} +2 -2
  37. package/dist/_chunks/{it-B_RF5VSw.js → it-GiQrQ9p4.js} +3 -3
  38. package/dist/_chunks/{ja-C1mEYy35.js → ja-qfYg3Rua.js} +2 -2
  39. package/dist/_chunks/{logo-_Z-jLq80.js → logo-yituK7sE.js} +42 -91
  40. package/dist/_chunks/{map-view-vD5pvWs9.js → map-view-qJLybrmN.js} +2 -2
  41. package/dist/_chunks/marketplace-app-shell-BlxVizU4.js +296 -0
  42. package/dist/_chunks/{message-card-BbRhZkDI.js → message-card-DSPw5ghw.js} +20 -19
  43. package/dist/_chunks/{message-tray-B762TKuv.js → message-tray-hSQff9u4.js} +3 -3
  44. package/dist/_chunks/{nl-Dl7lO2t3.js → nl-xOogO4sZ.js} +2 -2
  45. package/dist/_chunks/{notification-card-DMdO4g54.js → notification-card-CObnGdJu.js} +22 -21
  46. package/dist/_chunks/{notification-tray-Dl3FTleW.js → notification-tray-BWHDIjgd.js} +2 -2
  47. package/dist/_chunks/{otp-input-CDTWT5EK.js → otp-input-CMphfBxZ.js} +70 -71
  48. package/dist/_chunks/{patient-shell-CDvMw_Nk.js → patient-shell-DF81lALv.js} +37 -36
  49. package/dist/_chunks/{payment-form-D5rgnZu7.js → payment-form-Dy3WIIsC.js} +18 -18
  50. package/dist/_chunks/{pdf-viewer-DvtEHcEP.js → pdf-viewer-Cy6Ul3hZ.js} +2 -2
  51. package/dist/_chunks/{pl-Dgsogljx.js → pl-GnOW6eGK.js} +3 -3
  52. package/dist/_chunks/{practice-results-BFM_lyUs.js → practice-results-C0d4IL5E.js} +4 -3
  53. package/dist/_chunks/pregnancy-weight-gain-BCdi-JSv.js +209 -0
  54. package/dist/_chunks/{privacy-lock-DD-wHxBg.js → privacy-lock-BmX_gkvt.js} +2 -2
  55. package/dist/_chunks/{pt-Dm2JF4bc.js → pt-_bV5b5RW.js} +2 -2
  56. package/dist/_chunks/{public-footer.agent-Cjfe5jus.js → public-footer.agent-okt8ZRc5.js} +3 -3
  57. package/dist/_chunks/qr-code-DNXhi6se.js +568 -0
  58. package/dist/_chunks/{react-day-picker-DYDdR8Vv.js → react-day-picker-CdtIiKjx.js} +24 -24
  59. package/dist/_chunks/{reviews-panel-Dow8Dzoa.js → reviews-panel-CPrXu5TX.js} +2 -2
  60. package/dist/_chunks/{rich-text-editor-CHmr9Bz8.js → rich-text-editor-DLbg2852.js} +114 -124
  61. package/dist/_chunks/{ro-BXFZ_xIX.js → ro-BEcyh5Nj.js} +2 -2
  62. package/dist/_chunks/rotate-ccw-BWANpitO.js +15 -0
  63. package/dist/_chunks/{ru-BPQkNRRV.js → ru-Bi86hqMf.js} +3 -3
  64. package/dist/_chunks/session-countdown-LPnhTHjn.js +214 -0
  65. package/dist/_chunks/{shield-check-BhHyReu8.js → shield-check-C73ma9Cs.js} +8 -24
  66. package/dist/_chunks/{sidebar-BbR8f6oe.js → sidebar-_vJXI9rB.js} +2 -2
  67. package/dist/_chunks/sign-document-DId1p-nn.js +315 -0
  68. package/dist/_chunks/{sign-in-with-alfadocs-button-BI0fVonM.js → sign-in-with-alfadocs-button-DeHBFRNS.js} +2 -2
  69. package/dist/_chunks/{signature-capture-C-fF71xI.js → signature-capture-BRzCklg4.js} +27 -24
  70. package/dist/_chunks/social-sign-in-button-X54ySJr1.js +243 -0
  71. package/dist/_chunks/{sparkline-DEROcSl0.js → sparkline-DGhCSw8M.js} +55 -46
  72. package/dist/_chunks/{sq-ChTlGFcJ.js → sq-BujHSAWu.js} +2 -2
  73. package/dist/_chunks/{stepper-accordion-BfS6lUB9.js → stepper-accordion-Dki6r9ZE.js} +2 -2
  74. package/dist/_chunks/subDays-_T9YeKPX.js +8 -0
  75. package/dist/_chunks/{sv-Do_gs6ir.js → sv-C8AeDrTA.js} +2 -2
  76. package/dist/_chunks/{tag-CyoaEmf_.js → tag-CdA0s_VV.js} +16 -16
  77. package/dist/_chunks/{task-card-BUVMh6HN.js → task-card-CPyQ5AXC.js} +6 -5
  78. package/dist/_chunks/{task-tray-DRK0b0Qb.js → task-tray-B8jFv5FV.js} +36 -35
  79. package/dist/_chunks/{tr-da_UnkYH.js → tr-CMSs_Vgf.js} +2 -2
  80. package/dist/_chunks/{transcript-panel-DyhTpAP7.js → transcript-panel-CR7VY1uw.js} +8 -7
  81. package/dist/_chunks/unit-converter-EUwO6QYq.js +168 -0
  82. package/dist/_chunks/wallet-pay-button-DK4ESYge.js +250 -0
  83. package/dist/_chunks/{warning-stack-bDicCvxs.js → warning-stack-DNR3-IbP.js} +17 -16
  84. package/dist/_chunks/{workflow-map-uSiHbOWQ.js → workflow-map-C3gB0FvB.js} +3 -2
  85. package/dist/_chunks/{zh-CN-C9qi5oak.js → zh-CN-eXB-PFu4.js} +3 -3
  86. package/dist/agent-catalog.json +241 -1
  87. package/dist/brand/provider-marks/apple-pay.d.ts +12 -0
  88. package/dist/brand/provider-marks/apple.d.ts +12 -0
  89. package/dist/brand/provider-marks/google-pay.d.ts +12 -0
  90. package/dist/brand/provider-marks/google.d.ts +13 -0
  91. package/dist/components/_shared/insert-result.d.ts +47 -0
  92. package/dist/components/accordion/index.js +1 -1
  93. package/dist/components/agenda-tray/index.js +1 -1
  94. package/dist/components/bmi-calculator/bmi-calculator.d.ts +3 -0
  95. package/dist/components/bmi-calculator/index.js +6 -5
  96. package/dist/components/booking/index.js +1 -1
  97. package/dist/components/calculator-dialog/calculator-dialog.d.ts +26 -0
  98. package/dist/components/calculator-dialog/index.d.ts +3 -0
  99. package/dist/components/calculator-dialog/index.js +5 -0
  100. package/dist/components/chart/chart.d.ts +1 -1
  101. package/dist/components/chart/index.js +1 -1
  102. package/dist/components/chat-message/index.js +1 -1
  103. package/dist/components/collapsible/index.js +1 -1
  104. package/dist/components/contact-profile-card/index.js +1 -1
  105. package/dist/components/cycle-calculator/cycle-calculator.d.ts +21 -0
  106. package/dist/components/cycle-calculator/cycle.d.ts +37 -0
  107. package/dist/components/cycle-calculator/index.d.ts +4 -0
  108. package/dist/components/cycle-calculator/index.js +7 -0
  109. package/dist/components/data-table/index.js +1 -1
  110. package/dist/components/date-picker/index.js +1 -1
  111. package/dist/components/date-range-picker/index.js +1 -1
  112. package/dist/components/date-time-picker/index.js +1 -1
  113. package/dist/components/dependent-selector/dependent-selector.agent.d.ts +4 -0
  114. package/dist/components/dependent-selector/dependent-selector.d.ts +72 -0
  115. package/dist/components/dependent-selector/index.d.ts +4 -0
  116. package/dist/components/dependent-selector/index.js +6 -0
  117. package/dist/components/document-scanner/document-scanner.agent.d.ts +4 -0
  118. package/dist/components/document-scanner/document-scanner.d.ts +93 -0
  119. package/dist/components/document-scanner/index.d.ts +4 -0
  120. package/dist/components/document-scanner/index.js +6 -0
  121. package/dist/components/due-date-calculator/due-date-calculator.d.ts +3 -0
  122. package/dist/components/due-date-calculator/gestation.d.ts +16 -0
  123. package/dist/components/due-date-calculator/index.d.ts +1 -1
  124. package/dist/components/due-date-calculator/index.js +10 -7
  125. package/dist/components/file-upload/index.js +1 -1
  126. package/dist/components/fiscal-code-input/calculate-codice-fiscale.d.ts +24 -0
  127. package/dist/components/fiscal-code-input/fiscal-code-input.agent.d.ts +4 -0
  128. package/dist/components/fiscal-code-input/fiscal-code-input.d.ts +61 -0
  129. package/dist/components/fiscal-code-input/index.d.ts +6 -0
  130. package/dist/components/fiscal-code-input/index.js +11 -0
  131. package/dist/components/fiscal-code-input/is-valid-codice-fiscale.d.ts +21 -0
  132. package/dist/components/freemium-paywall/index.js +1 -1
  133. package/dist/components/gestational-age-calculator/gestational-age-calculator.d.ts +27 -0
  134. package/dist/components/gestational-age-calculator/index.d.ts +3 -0
  135. package/dist/components/gestational-age-calculator/index.js +5 -0
  136. package/dist/components/header-settings/header-settings.agent.d.ts +4 -0
  137. package/dist/components/header-settings/header-settings.d.ts +36 -0
  138. package/dist/components/header-settings/index.d.ts +2 -0
  139. package/dist/components/header-settings/index.js +2 -241
  140. package/dist/components/index.d.ts +14 -0
  141. package/dist/components/locale-picker/locale-picker.agent.d.ts +4 -0
  142. package/dist/components/locale-picker/locale-picker.d.ts +80 -0
  143. package/dist/components/logo/index.js +1 -1
  144. package/dist/components/map-view/index.js +1 -1
  145. package/dist/components/message-card/index.js +1 -1
  146. package/dist/components/message-tray/index.js +1 -1
  147. package/dist/components/notification-card/index.js +1 -1
  148. package/dist/components/notification-tray/index.js +1 -1
  149. package/dist/components/otp-input/index.d.ts +1 -1
  150. package/dist/components/otp-input/index.js +1 -1
  151. package/dist/components/otp-input/otp-input.d.ts +1 -1
  152. package/dist/components/payment-form/index.js +1 -1
  153. package/dist/components/pdf-viewer/index.js +1 -1
  154. package/dist/components/practice-results/index.js +1 -1
  155. package/dist/components/pregnancy-weight-gain/index.d.ts +4 -0
  156. package/dist/components/pregnancy-weight-gain/index.js +9 -0
  157. package/dist/components/pregnancy-weight-gain/pregnancy-weight-gain.d.ts +19 -0
  158. package/dist/components/pregnancy-weight-gain/weight-gain.d.ts +41 -0
  159. package/dist/components/privacy-lock/index.js +1 -1
  160. package/dist/components/public-footer/index.js +1 -1
  161. package/dist/components/qr-code/index.d.ts +5 -0
  162. package/dist/components/qr-code/index.js +8 -0
  163. package/dist/components/qr-code/qr-code.agent.d.ts +3 -0
  164. package/dist/components/qr-code/qr-code.d.ts +59 -0
  165. package/dist/components/qr-code/qr-encode.d.ts +46 -0
  166. package/dist/components/reviews-panel/index.js +1 -1
  167. package/dist/components/rich-text-editor/index.js +1 -1
  168. package/dist/components/session-countdown/index.d.ts +4 -0
  169. package/dist/components/session-countdown/index.js +6 -0
  170. package/dist/components/session-countdown/session-countdown.agent.d.ts +3 -0
  171. package/dist/components/session-countdown/session-countdown.d.ts +38 -0
  172. package/dist/components/sidebar/index.js +1 -1
  173. package/dist/components/sign-document/index.d.ts +4 -0
  174. package/dist/components/sign-document/index.js +6 -0
  175. package/dist/components/sign-document/sign-document.agent.d.ts +4 -0
  176. package/dist/components/sign-document/sign-document.d.ts +47 -0
  177. package/dist/components/sign-in-with-alfadocs-button/index.js +1 -1
  178. package/dist/components/signature-capture/index.js +1 -1
  179. package/dist/components/social-sign-in-button/index.d.ts +3 -0
  180. package/dist/components/social-sign-in-button/index.js +5 -0
  181. package/dist/components/social-sign-in-button/social-sign-in-button.d.ts +56 -0
  182. package/dist/components/sparkline/index.js +1 -1
  183. package/dist/components/sparkline/sparkline.d.ts +1 -1
  184. package/dist/components/stepper-accordion/index.js +1 -1
  185. package/dist/components/tag/index.js +1 -1
  186. package/dist/components/task-card/index.js +1 -1
  187. package/dist/components/task-tray/index.js +1 -1
  188. package/dist/components/transcript-panel/index.js +1 -1
  189. package/dist/components/unit-converter/index.d.ts +4 -0
  190. package/dist/components/unit-converter/index.js +9 -0
  191. package/dist/components/unit-converter/unit-converter.d.ts +21 -0
  192. package/dist/components/unit-converter/units.d.ts +18 -0
  193. package/dist/components/wallet-pay-button/index.d.ts +3 -0
  194. package/dist/components/wallet-pay-button/index.js +5 -0
  195. package/dist/components/wallet-pay-button/wallet-pay-button.d.ts +63 -0
  196. package/dist/components/warning-stack/index.js +1 -1
  197. package/dist/components/workflow/index.js +1 -1
  198. package/dist/i18n/locale-meta.d.ts +56 -0
  199. package/dist/i18n/locales/ar.d.ts +274 -0
  200. package/dist/i18n/locales/ar.js +271 -0
  201. package/dist/i18n/locales/de.d.ts +274 -0
  202. package/dist/i18n/locales/de.js +271 -0
  203. package/dist/i18n/locales/el.d.ts +274 -0
  204. package/dist/i18n/locales/el.js +271 -0
  205. package/dist/i18n/locales/en.d.ts +274 -0
  206. package/dist/i18n/locales/en.js +274 -0
  207. package/dist/i18n/locales/es.d.ts +274 -0
  208. package/dist/i18n/locales/es.js +271 -0
  209. package/dist/i18n/locales/fr.d.ts +274 -0
  210. package/dist/i18n/locales/fr.js +271 -0
  211. package/dist/i18n/locales/hi.d.ts +274 -0
  212. package/dist/i18n/locales/hi.js +271 -0
  213. package/dist/i18n/locales/it.d.ts +274 -0
  214. package/dist/i18n/locales/it.js +271 -0
  215. package/dist/i18n/locales/ja.d.ts +274 -0
  216. package/dist/i18n/locales/ja.js +267 -0
  217. package/dist/i18n/locales/nl.d.ts +274 -0
  218. package/dist/i18n/locales/nl.js +271 -0
  219. package/dist/i18n/locales/pl.d.ts +274 -0
  220. package/dist/i18n/locales/pl.js +271 -0
  221. package/dist/i18n/locales/pt.d.ts +274 -0
  222. package/dist/i18n/locales/pt.js +274 -0
  223. package/dist/i18n/locales/ro.d.ts +274 -0
  224. package/dist/i18n/locales/ro.js +271 -0
  225. package/dist/i18n/locales/ru.d.ts +274 -0
  226. package/dist/i18n/locales/ru.js +271 -0
  227. package/dist/i18n/locales/sq.d.ts +274 -0
  228. package/dist/i18n/locales/sq.js +271 -0
  229. package/dist/i18n/locales/sv.d.ts +274 -0
  230. package/dist/i18n/locales/sv.js +271 -0
  231. package/dist/i18n/locales/tr.d.ts +274 -0
  232. package/dist/i18n/locales/tr.js +271 -0
  233. package/dist/i18n/locales/zh.d.ts +274 -0
  234. package/dist/i18n/locales/zh.js +267 -0
  235. package/dist/index.js +590 -535
  236. package/dist/locales/ar.json +274 -0
  237. package/dist/locales/de.json +274 -0
  238. package/dist/locales/el.json +274 -0
  239. package/dist/locales/en.json +274 -0
  240. package/dist/locales/es.json +274 -0
  241. package/dist/locales/fr.json +274 -0
  242. package/dist/locales/hi.json +274 -0
  243. package/dist/locales/it.json +274 -0
  244. package/dist/locales/ja.json +274 -0
  245. package/dist/locales/nl.json +274 -0
  246. package/dist/locales/pl.json +274 -0
  247. package/dist/locales/pt.json +274 -0
  248. package/dist/locales/ro.json +274 -0
  249. package/dist/locales/ru.json +274 -0
  250. package/dist/locales/sq.json +274 -0
  251. package/dist/locales/sv.json +274 -0
  252. package/dist/locales/tr.json +274 -0
  253. package/dist/locales/zh.json +274 -0
  254. package/dist/patterns/alia-assistant/index.js +1 -1
  255. package/dist/patterns/marketplace-app-shell/index.js +1 -1
  256. package/dist/patterns/marketplace-app-shell/marketplace-app-shell.d.ts +12 -8
  257. package/dist/patterns/patient-shell/index.js +1 -1
  258. package/dist/tokens.css +1 -1
  259. package/package.json +53 -1
  260. package/dist/_chunks/bmi-calculator-DQD5_nE-.js +0 -214
  261. package/dist/_chunks/due-date-calculator-kf9U_g7O.js +0 -173
  262. package/dist/_chunks/marketplace-app-shell-DXHxy9dj.js +0 -295
  263. package/dist/_chunks/subDays-D-WYRpdW.js +0 -8
@@ -1,10 +1,10 @@
1
1
  import { jsxs as T, jsx as c } from "react/jsx-runtime";
2
- import { forwardRef as Q, useId as X, useMemo as d, useRef as tt, useState as E, useEffect as P, useImperativeHandle as et } from "react";
2
+ import { forwardRef as Q, useId as X, useMemo as d, useRef as tt, useState as P, useEffect as $, useImperativeHandle as et } from "react";
3
3
  import { c as ot } from "./index-D2ZczOXr.js";
4
4
  import { useTranslation as at } from "react-i18next";
5
5
  import rt from "react-apexcharts";
6
- import $ from "apexcharts";
7
- import { u as nt, g as k } from "./apexcharts-theme-BJigns_V.js";
6
+ import k from "apexcharts";
7
+ import { u as nt, g as G } from "./apexcharts-theme-BJigns_V.js";
8
8
  import { u as st } from "./use-prefers-reduced-motion-BMwIQRjB.js";
9
9
  import { u as it } from "./registry-nPAVE19X.js";
10
10
  const ct = {
@@ -38,7 +38,11 @@ const ct = {
38
38
  variants: {
39
39
  density: {
40
40
  compact: "ds:min-h-[var(--chart-min-height-compact)]",
41
- comfortable: "ds:min-h-[var(--chart-min-height-comfortable)]"
41
+ comfortable: "ds:min-h-[var(--chart-min-height-comfortable)]",
42
+ // Applied when an explicit `height` prop is given and no density was
43
+ // requested: the wrapper must not exceed the caller's height (a 96px
44
+ // KPI chart inside a card must not reserve 320px).
45
+ none: ""
42
46
  }
43
47
  },
44
48
  defaultVariants: { density: "comfortable" }
@@ -69,38 +73,38 @@ const ft = Q(
69
73
  id: l,
70
74
  type: o,
71
75
  series: p,
72
- categories: g,
73
- labels: v,
74
- height: G,
76
+ categories: v,
77
+ labels: g,
78
+ height: L,
75
79
  width: H,
76
- patterns: L = !1,
80
+ patterns: O = !1,
77
81
  toolbar: R = !1,
78
82
  locale: _,
79
83
  radialValueFormatter: m,
80
84
  density: M,
81
85
  className: U
82
86
  }, D) => {
83
- const { t: a, i18n: W } = at(), O = X(), u = d(
84
- () => `chart-${O.replace(/[^a-zA-Z0-9-_]/g, "")}`,
85
- [O]
86
- ), S = `${u}-summary`, y = tt(null), [A, Y] = E(0);
87
+ const { t: a, i18n: W } = at(), A = X(), u = d(
88
+ () => `chart-${A.replace(/[^a-zA-Z0-9-_]/g, "")}`,
89
+ [A]
90
+ ), S = `${u}-summary`, y = tt(null), [z, Y] = P(0);
87
91
  nt(y);
88
- const h = _ ?? W.language ?? "en", [z, Z] = E(
92
+ const h = _ ?? W.language ?? "en", [N, Z] = P(
89
93
  () => {
90
94
  try {
91
- return k();
95
+ return G();
92
96
  } catch {
93
97
  return {};
94
98
  }
95
99
  }
96
100
  );
97
- P(() => {
101
+ $(() => {
98
102
  if (typeof document > "u") return;
99
103
  let t;
100
104
  const e = new MutationObserver(() => {
101
105
  clearTimeout(t), t = setTimeout(() => {
102
106
  try {
103
- Z(k());
107
+ Z(G());
104
108
  } catch {
105
109
  }
106
110
  }, 50);
@@ -111,7 +115,7 @@ const ft = Q(
111
115
  }), () => {
112
116
  clearTimeout(t), e.disconnect();
113
117
  };
114
- }, []), P(() => {
118
+ }, []), $(() => {
115
119
  const t = y.current;
116
120
  if (!t || typeof ResizeObserver > "u") return;
117
121
  const e = new ResizeObserver((n) => {
@@ -123,24 +127,24 @@ const ft = Q(
123
127
  const I = d(
124
128
  () => ({
125
129
  async dataURI() {
126
- const t = $.getChartByID(u);
130
+ const t = k.getChartByID(u);
127
131
  return t ? (await t.dataURI()).imgURI : "";
128
132
  },
129
133
  updateSeries(t) {
130
- const e = $.getChartByID(u);
134
+ const e = k.getChartByID(u);
131
135
  e && (x(o), e.updateSeries(t));
132
136
  }
133
137
  }),
134
138
  [u, o]
135
139
  );
136
140
  et(D, () => I, [I]), it(ct, I, l);
137
- const C = typeof document < "u" && document.documentElement.dir === "rtl", N = d(
141
+ const C = typeof document < "u" && document.documentElement.dir === "rtl", B = d(
138
142
  () => pt(p, o),
139
143
  [p, o]
140
144
  ), f = d(
141
145
  () => new Intl.NumberFormat(h),
142
146
  [h]
143
- ), B = d(
147
+ ), E = d(
144
148
  () => ({
145
149
  name: h,
146
150
  options: {
@@ -161,7 +165,7 @@ const ft = Q(
161
165
  [h, a]
162
166
  ), w = st(), j = d(() => {
163
167
  var n, s, b;
164
- const t = z, e = {
168
+ const t = N, e = {
165
169
  ...t,
166
170
  chart: {
167
171
  ...t.chart,
@@ -172,11 +176,11 @@ const ft = Q(
172
176
  enabled: !w,
173
177
  dynamicAnimation: { enabled: !w }
174
178
  },
175
- locales: [B],
179
+ locales: [E],
176
180
  defaultLocale: h,
177
181
  parentHeightOffset: 0
178
182
  },
179
- labels: v,
183
+ labels: g,
180
184
  legend: {
181
185
  ...t.legend,
182
186
  position: "bottom",
@@ -199,7 +203,7 @@ const ft = Q(
199
203
  };
200
204
  if (ht(o) && (e.xaxis = {
201
205
  ...t.xaxis,
202
- categories: g ?? []
206
+ categories: v ?? []
203
207
  }, e.yaxis = {
204
208
  ...t.yaxis,
205
209
  opposite: C,
@@ -225,7 +229,7 @@ const ft = Q(
225
229
  }
226
230
  };
227
231
  }
228
- return L ? e.fill = {
232
+ return O ? e.fill = {
229
233
  type: "pattern",
230
234
  opacity: o === "area" ? 0.3 : 1,
231
235
  pattern: {
@@ -237,22 +241,22 @@ const ft = Q(
237
241
  opacity: 0.3
238
242
  }), e;
239
243
  }, [
240
- z,
244
+ N,
241
245
  u,
242
246
  R,
243
247
  w,
244
- B,
248
+ E,
245
249
  h,
246
- v,
250
+ g,
247
251
  f,
248
252
  a,
249
253
  o,
250
- g,
254
+ v,
251
255
  C,
252
- L,
256
+ O,
253
257
  m
254
- ]), q = H ?? (A > 0 ? A : "100%"), V = G ?? 320, F = d(() => {
255
- const t = x(o) ? v ?? [] : g ?? [], e = N;
258
+ ]), q = H ?? (z > 0 ? z : "100%"), V = L ?? 320, F = d(() => {
259
+ const t = x(o) ? g ?? [] : v ?? [], e = B;
256
260
  return /* @__PURE__ */ T("table", { id: S, className: "ds:sr-only", children: [
257
261
  /* @__PURE__ */ c("caption", { children: r }),
258
262
  /* @__PURE__ */ c("thead", { children: /* @__PURE__ */ T("tr", { children: [
@@ -266,9 +270,9 @@ const ft = Q(
266
270
  ] });
267
271
  }, [
268
272
  o,
269
- N,
270
- v,
273
+ B,
271
274
  g,
275
+ v,
272
276
  S,
273
277
  r,
274
278
  a,
@@ -282,7 +286,12 @@ const ft = Q(
282
286
  role: "img",
283
287
  "aria-label": r,
284
288
  "aria-describedby": S,
285
- className: dt({ density: M, className: U }),
289
+ className: dt({
290
+ // Explicit height wins over the density min-height unless the
291
+ // caller also asked for a density explicitly.
292
+ density: M ?? (L !== void 0 ? "none" : void 0),
293
+ className: U
294
+ }),
286
295
  "data-component": "chart",
287
296
  "data-component-id": l,
288
297
  children: [
@@ -309,4 +318,4 @@ export {
309
318
  dt as a,
310
319
  ct as c
311
320
  };
312
- //# sourceMappingURL=chart-DnHvmiDX.js.map
321
+ //# sourceMappingURL=chart-Cbt0_sKv.js.map
@@ -1,25 +1,16 @@
1
1
  import { jsxs as d, jsx as a } from "react/jsx-runtime";
2
2
  import { forwardRef as C, useMemo as j, Fragment as g } from "react";
3
- import { c as h } from "./index-D2ZczOXr.js";
3
+ import { c as v } from "./index-D2ZczOXr.js";
4
4
  import { useTranslation as T } from "react-i18next";
5
5
  import { B as z } from "./button-DD_0Xdmr.js";
6
- import { A as M } from "./avatar-BNQNhoyL.js";
7
- import { T as I } from "./timestamp-BV2lC-wV.js";
8
- import { s as A } from "./safe-image-src-DstKgCo7.js";
9
- import { c as F } from "./createLucideIcon-CrFbzy84.js";
10
- import { C as L } from "./clock-21AGPWJ5.js";
11
- import { C as S } from "./check-DPdL_Sm7.js";
12
- import { C as V } from "./circle-alert-ChA9opNA.js";
13
- /**
14
- * @license lucide-react v1.8.0 - ISC
15
- *
16
- * This source code is licensed under the ISC license.
17
- * See the LICENSE file in the root directory of this source tree.
18
- */
19
- const _ = [
20
- ["path", { d: "M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8", key: "1357e3" }],
21
- ["path", { d: "M3 3v5h5", key: "1xhq8a" }]
22
- ], B = F("rotate-ccw", _), D = h(
6
+ import { A } from "./avatar-BNQNhoyL.js";
7
+ import { T as F } from "./timestamp-BV2lC-wV.js";
8
+ import { s as I } from "./safe-image-src-DstKgCo7.js";
9
+ import { R as M } from "./rotate-ccw-BWANpitO.js";
10
+ import { C as S } from "./clock-21AGPWJ5.js";
11
+ import { C as V } from "./check-DPdL_Sm7.js";
12
+ import { C as B } from "./circle-alert-ChA9opNA.js";
13
+ const D = v(
23
14
  "ds:flex ds:w-full ds:items-start ds:gap-[var(--spacing-sm)]",
24
15
  {
25
16
  variants: {
@@ -31,7 +22,7 @@ const _ = [
31
22
  },
32
23
  defaultVariants: { role: "assistant" }
33
24
  }
34
- ), E = h(
25
+ ), E = v(
35
26
  [
36
27
  // Cap at 42rem on wide surfaces; on narrow docks (Alia sidebar ≈22rem)
37
28
  // leave room for the avatar column (size-8 = 32px = --spacing-xl) +
@@ -53,8 +44,8 @@ const _ = [
53
44
  },
54
45
  defaultVariants: { role: "assistant" }
55
46
  }
56
- ), k = /^(https?:|mailto:)/i;
57
- function $(t) {
47
+ ), L = /^(https?:|mailto:)/i;
48
+ function R(t) {
58
49
  const e = [];
59
50
  let r = t;
60
51
  const n = /\*\*([^*]+)\*\*|`([^`]+)`|\[([^\]]+)\]\(([^)]+)\)|\n/;
@@ -68,8 +59,8 @@ function $(t) {
68
59
  }
69
60
  return e;
70
61
  }
71
- function q(t) {
72
- return $(t).map((e, r) => e.type === "bold" ? /* @__PURE__ */ a("strong", { children: e.value }, r) : e.type === "code" ? /* @__PURE__ */ a(
62
+ function _(t) {
63
+ return R(t).map((e, r) => e.type === "bold" ? /* @__PURE__ */ a("strong", { children: e.value }, r) : e.type === "code" ? /* @__PURE__ */ a(
73
64
  "code",
74
65
  {
75
66
  dir: "ltr",
@@ -77,7 +68,7 @@ function q(t) {
77
68
  children: e.value
78
69
  },
79
70
  r
80
- ) : e.type === "br" ? /* @__PURE__ */ a("br", {}, r) : e.type === "link" ? k.test(e.href) ? /* @__PURE__ */ a(
71
+ ) : e.type === "br" ? /* @__PURE__ */ a("br", {}, r) : e.type === "link" ? L.test(e.href) ? /* @__PURE__ */ a(
81
72
  "a",
82
73
  {
83
74
  href: e.href,
@@ -89,17 +80,17 @@ function q(t) {
89
80
  r
90
81
  ) : /* @__PURE__ */ a(g, { children: e.label }, r) : /* @__PURE__ */ a(g, { children: e.value }, r));
91
82
  }
92
- const H = C(
83
+ const $ = C(
93
84
  ({
94
85
  role: t,
95
86
  content: e,
96
87
  avatar: r,
97
88
  timestamp: n,
98
89
  status: s,
99
- renderMarkdown: v = !1,
90
+ renderMarkdown: h = !1,
100
91
  onRetry: l,
101
- className: x,
102
- ...b
92
+ className: b,
93
+ ...x
103
94
  }, y) => {
104
95
  const { t: i, i18n: m } = T(), o = j(() => {
105
96
  if (!n) return null;
@@ -108,8 +99,8 @@ const H = C(
108
99
  hour: "2-digit",
109
100
  minute: "2-digit"
110
101
  }).format(p);
111
- }, [n, m.language]), c = i(`chat.message.role.${t}`), N = o ? i("chat.message.label", { role: c, time: o }) : i("chat.message.labelNoTime", { role: c }), w = v ? q(e) : e, u = !s || s === "edited" ? null : s === "sending" ? /* @__PURE__ */ a(L, { "aria-hidden": "true", className: "ds:size-3.5" }) : s === "sent" ? /* @__PURE__ */ a(S, { "aria-hidden": "true", className: "ds:size-3.5" }) : /* @__PURE__ */ a(
112
- V,
102
+ }, [n, m.language]), c = i(`chat.message.role.${t}`), N = o ? i("chat.message.label", { role: c, time: o }) : i("chat.message.labelNoTime", { role: c }), w = h ? _(e) : e, u = !s || s === "edited" ? null : s === "sending" ? /* @__PURE__ */ a(S, { "aria-hidden": "true", className: "ds:size-3.5" }) : s === "sent" ? /* @__PURE__ */ a(V, { "aria-hidden": "true", className: "ds:size-3.5" }) : /* @__PURE__ */ a(
103
+ B,
113
104
  {
114
105
  "aria-hidden": "true",
115
106
  className: "ds:size-3.5 ds:text-[color:var(--destructive)]"
@@ -122,14 +113,14 @@ const H = C(
122
113
  "aria-label": N,
123
114
  "data-component": "chat-message",
124
115
  className: [
125
- D({ role: t, className: x }),
116
+ D({ role: t, className: b }),
126
117
  // Entrance: fade + slide up on mount. `--animation-duration` is 0ms
127
118
  // under `prefers-reduced-motion` and `.theme-accessible`, so both
128
119
  // collapse the animation to an instant state change automatically.
129
120
  "ds:motion-safe:animate-in ds:motion-safe:fade-in-0 ds:motion-safe:slide-in-from-bottom-2",
130
121
  "ds:duration-[var(--animation-duration)] ds:ease-[var(--ease-out)]"
131
122
  ].join(" "),
132
- ...b,
123
+ ...x,
133
124
  children: [
134
125
  t !== "system" && r ? r.slot ? (
135
126
  // Consumer-supplied avatar node (e.g. Alia's Sparkles tile).
@@ -139,10 +130,10 @@ const H = C(
139
130
  // `javascript:` / `data:text/html` / `data:image/svg+xml` and so
140
131
  // are scrubbed here before reaching <Avatar>. Fallback to initials.
141
132
  /* @__PURE__ */ a(
142
- M,
133
+ A,
143
134
  {
144
135
  name: r.name,
145
- src: A(r.src),
136
+ src: I(r.src),
146
137
  size: "sm"
147
138
  }
148
139
  )
@@ -183,7 +174,7 @@ const H = C(
183
174
  ].join(" "),
184
175
  children: [
185
176
  n ? /* @__PURE__ */ a(
186
- I,
177
+ F,
187
178
  {
188
179
  value: n,
189
180
  format: "absolute",
@@ -217,7 +208,7 @@ const H = C(
217
208
  intent: "ghost",
218
209
  size: "sm",
219
210
  onClick: l,
220
- startIcon: /* @__PURE__ */ a(B, {}),
211
+ startIcon: /* @__PURE__ */ a(M, {}),
221
212
  children: i("chat.message.retry")
222
213
  }
223
214
  ) : null
@@ -232,8 +223,8 @@ const H = C(
232
223
  );
233
224
  }
234
225
  );
235
- H.displayName = "ChatMessage";
226
+ $.displayName = "ChatMessage";
236
227
  export {
237
- H as C
228
+ $ as C
238
229
  };
239
- //# sourceMappingURL=chat-message-D53_fH2w.js.map
230
+ //# sourceMappingURL=chat-message-ASgGtj-L.js.map
@@ -1,7 +1,7 @@
1
1
  import { jsx as c } from "react/jsx-runtime";
2
2
  import { forwardRef as p, useRef as f, useMemo as C, useEffect as v } from "react";
3
3
  import * as b from "@radix-ui/react-collapsible";
4
- import { a as y, c as h } from "./index-D2ZczOXr.js";
4
+ import { a as h, c as y } from "./index-D2ZczOXr.js";
5
5
  import { u as k } from "./use-controllable-state-BiY4xTzM.js";
6
6
  import { u as w } from "./registry-nPAVE19X.js";
7
7
  const x = {
@@ -53,11 +53,11 @@ const x = {
53
53
  description: "Sourced from the id prop."
54
54
  }
55
55
  }
56
- }, O = h("", {
56
+ }, O = y("", {
57
57
  variants: {
58
58
  variant: {
59
59
  default: "",
60
- card: "ds:bg-[var(--card)] ds:border ds:border-border ds:rounded-[var(--radius-lg)] ds:overflow-hidden",
60
+ card: "ds:bg-[var(--card)] ds:border ds:border-[color:var(--card-border)] ds:[.theme-accessible_&]:border-2 ds:rounded-[var(--radius-lg)] ds:overflow-hidden",
61
61
  minimal: "ds:forced-colors:[border-block-end:1px_solid]"
62
62
  }
63
63
  },
@@ -129,7 +129,7 @@ const K = p(
129
129
  ref: l,
130
130
  "aria-labelledby": a,
131
131
  "aria-label": t,
132
- className: y(R, e),
132
+ className: h(R, e),
133
133
  ...s,
134
134
  children: o
135
135
  }
@@ -142,4 +142,4 @@ export {
142
142
  T as b,
143
143
  x as c
144
144
  };
145
- //# sourceMappingURL=collapsible-CERONory.js.map
145
+ //# sourceMappingURL=collapsible-X3oaLPU3.js.map
@@ -8,8 +8,9 @@ import { K as fe, a as me } from "./key-value-pair-CkQIb9EG.js";
8
8
  import { L as d } from "./link-DrD_cRUg.js";
9
9
  import { u as he } from "./registry-nPAVE19X.js";
10
10
  import { S as T } from "./stethoscope-DT5qCW8Y.js";
11
- import { H, S as V, L as z } from "./shield-check-BhHyReu8.js";
12
- import { c as O } from "./createLucideIcon-CrFbzy84.js";
11
+ import { H } from "./heart-C0faivFf.js";
12
+ import { c as V } from "./createLucideIcon-CrFbzy84.js";
13
+ import { S as z, L as O } from "./shield-check-C73ma9Cs.js";
13
14
  import { G as E } from "./globe-BkEFMNSg.js";
14
15
  import { M as K } from "./mail-C8irm52s.js";
15
16
  import { M as L } from "./message-circle-C23eicgb.js";
@@ -24,7 +25,7 @@ const ge = [
24
25
  ["rect", { width: "20", height: "12", x: "2", y: "6", rx: "2", key: "9lu3g6" }],
25
26
  ["circle", { cx: "12", cy: "12", r: "2", key: "1c9p78" }],
26
27
  ["path", { d: "M6 12h.01M18 12h.01", key: "113zkx" }]
27
- ], j = O("banknote", ge);
28
+ ], j = V("banknote", ge);
28
29
  /**
29
30
  * @license lucide-react v1.8.0 - ISC
30
31
  *
@@ -39,7 +40,7 @@ const ve = [
39
40
  key: "9njp5v"
40
41
  }
41
42
  ]
42
- ], B = O("phone", ve), xe = {
43
+ ], B = V("phone", ve), xe = {
43
44
  id: "contact-profile-card",
44
45
  capabilities: ["view_change"],
45
46
  state: {
@@ -225,14 +226,14 @@ const $e = ce(
225
226
  };
226
227
  o.push({
227
228
  key: "languages",
228
- icon: /* @__PURE__ */ e(z, { "aria-hidden": "true" }),
229
+ icon: /* @__PURE__ */ e(O, { "aria-hidden": "true" }),
229
230
  label: n("contactProfileCard.label.languages"),
230
231
  value: /* @__PURE__ */ e("span", { className: "ds:flex ds:flex-wrap ds:gap-[var(--spacing-2xs)]", children: g.map((l) => /* @__PURE__ */ e(S, { variant: "neutral", children: i(l) }, l)) })
231
232
  });
232
233
  }
233
234
  v && v.length > 0 && o.push({
234
235
  key: "insurances",
235
- icon: /* @__PURE__ */ e(V, { "aria-hidden": "true" }),
236
+ icon: /* @__PURE__ */ e(z, { "aria-hidden": "true" }),
236
237
  label: n("contactProfileCard.label.insurances"),
237
238
  value: /* @__PURE__ */ e("span", { className: "ds:flex ds:flex-wrap ds:gap-[var(--spacing-2xs)]", children: v.map((i) => /* @__PURE__ */ e(S, { variant: "info", children: i }, i)) })
238
239
  }), N && o.push({
@@ -311,7 +312,7 @@ const $e = ce(
311
312
  }
312
313
  );
313
314
  $e.displayName = "ContactProfileCard";
314
- const Be = [
315
+ const Ge = [
315
316
  "address",
316
317
  "phone",
317
318
  "whatsapp",
@@ -322,22 +323,22 @@ const Be = [
322
323
  "firstVisitPrice",
323
324
  "expertForAnxiousPatients",
324
325
  "profession"
325
- ], Ge = {
326
+ ], qe = {
326
327
  address: U,
327
328
  phone: B,
328
329
  whatsapp: L,
329
330
  email: K,
330
331
  website: E,
331
- languages: z,
332
- insurances: V,
332
+ languages: O,
333
+ insurances: z,
333
334
  firstVisitPrice: j,
334
335
  expertForAnxiousPatients: H,
335
336
  profession: T
336
337
  };
337
338
  export {
338
- Ge as C,
339
- Be as a,
339
+ qe as C,
340
+ Ge as a,
340
341
  $e as b,
341
342
  xe as c
342
343
  };
343
- //# sourceMappingURL=contact-profile-card-BA6fgS45.js.map
344
+ //# sourceMappingURL=contact-profile-card-DHyuAPXM.js.map
@@ -0,0 +1,185 @@
1
+ import { jsxs as r, jsx as e } from "react/jsx-runtime";
2
+ import { forwardRef as D, useState as h, useMemo as y, useEffect as E } from "react";
3
+ import { c as _ } from "./index-D2ZczOXr.js";
4
+ import { useTranslation as F } from "react-i18next";
5
+ import { F as C } from "./form-field-BOm9hK35.js";
6
+ import { D as A } from "./date-picker-CvQfs6Xh.js";
7
+ import { N as S } from "./number-input-Dj5L3pXK.js";
8
+ import { B as x } from "./badge-zsf5i5bH.js";
9
+ import { I as T } from "./insert-result-yJ0QavoN.js";
10
+ import { a as n } from "./react-day-picker-CdtIiKjx.js";
11
+ import { C as W } from "./check-DPdL_Sm7.js";
12
+ import { H as $ } from "./heart-C0faivFf.js";
13
+ import { c as H } from "./createLucideIcon-CrFbzy84.js";
14
+ /**
15
+ * @license lucide-react v1.8.0 - ISC
16
+ *
17
+ * This source code is licensed under the ISC license.
18
+ * See the LICENSE file in the root directory of this source tree.
19
+ */
20
+ const I = [
21
+ [
22
+ "path",
23
+ {
24
+ d: "M12 22a7 7 0 0 0 7-7c0-2-1-3.9-3-5.5s-3.5-4-4-6.5c-.5 2.5-2 4.9-4 6.5C6 11.1 5 13 5 15a7 7 0 0 0 7 7z",
25
+ key: "c7niix"
26
+ }
27
+ ]
28
+ ], z = H("droplet", I), v = 28, k = 14, B = 1;
29
+ function Y(m, c = 3) {
30
+ const d = m.cycleLength ?? v, { lastPeriodStart: o } = m, i = n(o, d - k), u = {
31
+ start: n(i, -5),
32
+ end: n(i, B)
33
+ }, f = n(o, d), t = Array.from(
34
+ { length: c },
35
+ (p, s) => n(o, d * (s + 1))
36
+ );
37
+ return { nextPeriod: f, ovulation: i, fertileWindow: u, upcomingPeriods: t };
38
+ }
39
+ const j = _("ds:flex ds:flex-col ds:gap-[var(--spacing-lg)]", {
40
+ variants: {
41
+ width: { full: "ds:w-full", auto: "ds:inline-flex" }
42
+ },
43
+ defaultVariants: { width: "full" }
44
+ }), M = D(
45
+ ({
46
+ defaultCycleLength: m = v,
47
+ onResultChange: c,
48
+ onInsert: d,
49
+ id: o,
50
+ width: i,
51
+ className: u
52
+ }, f) => {
53
+ const { t, i18n: p } = F(), [s, N] = h(void 0), [g, L] = h(
54
+ m
55
+ ), a = y(() => s ? Y({
56
+ lastPeriodStart: s,
57
+ cycleLength: g ?? v
58
+ }) : null, [s, g]), P = y(
59
+ () => new Intl.DateTimeFormat(p.language, { dateStyle: "medium" }),
60
+ [p.language]
61
+ );
62
+ E(() => {
63
+ c == null || c(a);
64
+ }, [a, c]);
65
+ const w = y(() => /* @__PURE__ */ new Date(), []), l = (b) => P.format(b);
66
+ return /* @__PURE__ */ r(
67
+ "div",
68
+ {
69
+ ref: f,
70
+ "data-component": "cycle-calculator",
71
+ "data-component-id": o,
72
+ className: j({ width: i, className: u }),
73
+ children: [
74
+ /* @__PURE__ */ r("div", { className: "ds:grid ds:grid-cols-1 ds:gap-[var(--spacing-md)] ds:sm:grid-cols-2", children: [
75
+ /* @__PURE__ */ e(C, { label: t("cycleCalculator.lastPeriod"), children: /* @__PURE__ */ e(
76
+ A,
77
+ {
78
+ value: s,
79
+ onChange: N,
80
+ maxDate: w
81
+ }
82
+ ) }),
83
+ /* @__PURE__ */ e(
84
+ C,
85
+ {
86
+ label: t("cycleCalculator.cycleLength"),
87
+ description: t("cycleCalculator.cycleLengthHint"),
88
+ children: /* @__PURE__ */ e(
89
+ S,
90
+ {
91
+ mode: "integer",
92
+ min: 20,
93
+ max: 45,
94
+ value: g,
95
+ onChange: L
96
+ }
97
+ )
98
+ }
99
+ )
100
+ ] }),
101
+ /* @__PURE__ */ e("p", { className: "ds:sr-only", role: "status", "aria-live": "polite", children: a ? `${t("cycleCalculator.ovulation")}: ${l(a.ovulation)}. ${t(
102
+ "cycleCalculator.nextPeriod"
103
+ )}: ${l(a.nextPeriod)}.` : "" }),
104
+ a ? /* @__PURE__ */ r("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]", children: [
105
+ /* @__PURE__ */ r("dl", { className: "ds:grid ds:grid-cols-1 ds:gap-[var(--spacing-md)] ds:sm:grid-cols-3", children: [
106
+ /* @__PURE__ */ r("div", { className: "ds:flex ds:flex-col ds:items-center ds:gap-[var(--spacing-xs)] ds:text-center", children: [
107
+ /* @__PURE__ */ e("dt", { className: "type-label ds:text-muted-foreground", children: t("cycleCalculator.ovulation") }),
108
+ /* @__PURE__ */ e("dd", { children: /* @__PURE__ */ e(
109
+ x,
110
+ {
111
+ variant: "success",
112
+ size: "lg",
113
+ leading: /* @__PURE__ */ e(W, { "aria-hidden": !0 }),
114
+ children: l(a.ovulation)
115
+ }
116
+ ) })
117
+ ] }),
118
+ /* @__PURE__ */ r("div", { className: "ds:flex ds:flex-col ds:items-center ds:gap-[var(--spacing-xs)] ds:text-center", children: [
119
+ /* @__PURE__ */ e("dt", { className: "type-label ds:text-muted-foreground", children: t("cycleCalculator.fertileWindow") }),
120
+ /* @__PURE__ */ e("dd", { children: /* @__PURE__ */ r(
121
+ x,
122
+ {
123
+ variant: "accent",
124
+ size: "lg",
125
+ leading: /* @__PURE__ */ e($, { "aria-hidden": !0 }),
126
+ children: [
127
+ l(a.fertileWindow.start),
128
+ " –",
129
+ " ",
130
+ l(a.fertileWindow.end)
131
+ ]
132
+ }
133
+ ) })
134
+ ] }),
135
+ /* @__PURE__ */ r("div", { className: "ds:flex ds:flex-col ds:items-center ds:gap-[var(--spacing-xs)] ds:text-center", children: [
136
+ /* @__PURE__ */ e("dt", { className: "type-label ds:text-muted-foreground", children: t("cycleCalculator.nextPeriod") }),
137
+ /* @__PURE__ */ e("dd", { children: /* @__PURE__ */ e(
138
+ x,
139
+ {
140
+ variant: "error",
141
+ size: "lg",
142
+ leading: /* @__PURE__ */ e(z, { "aria-hidden": !0 }),
143
+ children: l(a.nextPeriod)
144
+ }
145
+ ) })
146
+ ] })
147
+ ] }),
148
+ d ? /* @__PURE__ */ e(
149
+ T,
150
+ {
151
+ onInsert: d,
152
+ card: {
153
+ title: t("insert.title.cycle"),
154
+ fields: [
155
+ {
156
+ label: t("cycleCalculator.ovulation"),
157
+ value: l(a.ovulation)
158
+ },
159
+ {
160
+ label: t("cycleCalculator.fertileWindow"),
161
+ value: `${l(a.fertileWindow.start)} – ${l(
162
+ a.fertileWindow.end
163
+ )}`
164
+ },
165
+ {
166
+ label: t("cycleCalculator.nextPeriod"),
167
+ value: l(a.nextPeriod)
168
+ }
169
+ ]
170
+ }
171
+ }
172
+ ) : null
173
+ ] }) : /* @__PURE__ */ e("p", { className: "type-body ds:text-muted-foreground", children: t("cycleCalculator.empty") })
174
+ ]
175
+ }
176
+ );
177
+ }
178
+ );
179
+ M.displayName = "CycleCalculator";
180
+ export {
181
+ M as C,
182
+ k as L,
183
+ Y as p
184
+ };
185
+ //# sourceMappingURL=cycle-calculator-B5Uj9QeT.js.map