@alfadocs/ui-kit 0.47.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 (280) hide show
  1. package/dist/_chunks/{address-autocomplete-CSjMrBvu.js → address-autocomplete-CT-9AOli.js} +2 -2
  2. package/dist/_chunks/{agenda-card-CFyWSX7Z.js → agenda-card-BaSfVfrL.js} +25 -29
  3. package/dist/_chunks/{agenda-tray-Dyj9ChHC.js → agenda-tray-DQayYmQ0.js} +50 -67
  4. package/dist/_chunks/ai-consent-banner-F2md5JD3.js +169 -0
  5. package/dist/_chunks/ai-tools-rail-CYLWrRmm.js +280 -0
  6. package/dist/_chunks/{alert-ywPR59NE.js → alert-CUTxnym2.js} +56 -35
  7. package/dist/_chunks/{alia-sidebar-CVIPrdc9.js → alia-sidebar-DlvyXgVC.js} +3 -2
  8. package/dist/_chunks/anamnesis-card-CmkBVAln.js +156 -0
  9. package/dist/_chunks/antenatal-schedule-timeline-Dg0m0yFl.js +412 -0
  10. package/dist/_chunks/appointment-tray-BwDHhWWC.js +419 -0
  11. package/dist/_chunks/{ar-DEz65ZJW.js → ar-C68WKG5a.js} +2 -2
  12. package/dist/_chunks/{audio-recorder-DC-v9YFW.js → audio-recorder-DVJXV7_k.js} +2 -2
  13. package/dist/_chunks/bishop-score-2MzAz8NE.js +185 -0
  14. package/dist/_chunks/{bmi-calculator-CQqXTVNL.js → bmi-calculator-DdylQzT6.js} +2 -2
  15. package/dist/_chunks/{booking-DlDVuWMd.js → booking-DljH0JkS.js} +294 -306
  16. package/dist/_chunks/{calculator-dialog-D-nfvteH.js → calculator-dialog-CFk4I91b.js} +2 -2
  17. package/dist/_chunks/calendar-days-C4BmpCZg.js +23 -0
  18. package/dist/_chunks/{calendar-YHFknAGv.js → calendar-oYWOCrnf.js} +195 -210
  19. package/dist/_chunks/care-plan-card-QmNpGggC.js +252 -0
  20. package/dist/_chunks/care-plan-entry-card-Cnra7vUc.js +318 -0
  21. package/dist/_chunks/{chat-message-B5JpFj0F.js → chat-message-Dm8U2RY1.js} +36 -35
  22. package/dist/_chunks/circle-arrow-up-CC_85SuH.js +16 -0
  23. package/dist/_chunks/clinical-note-card-BYo437dU.js +333 -0
  24. package/dist/_chunks/{contact-profile-card-DHyuAPXM.js → contact-profile-card-DvvVfAA2.js} +102 -115
  25. package/dist/_chunks/cycle-calculator-oOkj5wlB.js +252 -0
  26. package/dist/_chunks/{date-picker-Bq7xhMA-.js → date-picker-BfHblqwA.js} +2 -2
  27. package/dist/_chunks/{date-picker-variants-DLi1Va_e.js → date-picker-variants-CXEAx3O_.js} +22 -22
  28. package/dist/_chunks/{date-range-picker-DcXuI9y7.js → date-range-picker-hcAMs1wO.js} +3 -3
  29. package/dist/_chunks/{date-time-picker-RimumeLR.js → date-time-picker-H-3Pwqlb.js} +9 -9
  30. package/dist/_chunks/{de-bTBGdjPS.js → de-DK4A9_a8.js} +2 -2
  31. package/dist/_chunks/{dialog-BTpZV6It.js → dialog-DMGnSelc.js} +55 -55
  32. package/dist/_chunks/{document-scanner-BqLsGs4Y.js → document-scanner-Cxqvq7GR.js} +2 -2
  33. package/dist/_chunks/due-date-calculator-tDqZXPWO.js +256 -0
  34. package/dist/_chunks/{editable-currency-cell-renderer-CLil9B29.js → editable-currency-cell-renderer-Bh48OHRv.js} +2 -2
  35. package/dist/_chunks/{el-BWG5RXxa.js → el-B29HXhG5.js} +2 -2
  36. package/dist/_chunks/entity-card-COhmqHly.js +69 -0
  37. package/dist/_chunks/{es-DfO_G435.js → es-BOwPVwWn.js} +2 -2
  38. package/dist/_chunks/fetal-weight-Da-B4P4k.js +122 -0
  39. package/dist/_chunks/{fr-BTn24bs8.js → fr-DoDBtn0T.js} +2 -2
  40. package/dist/_chunks/{freemium-paywall-DzpD63WY.js → freemium-paywall-BWaLWje-.js} +2 -2
  41. package/dist/_chunks/gestational-age-calculator-DbDfTJU2.js +311 -0
  42. package/dist/_chunks/hcg-doubling-DAnpbale.js +170 -0
  43. package/dist/_chunks/{hi-Dj3oYd84.js → hi-DGByrKby.js} +2 -2
  44. package/dist/_chunks/{insert-result-C5ABnzDl.js → insert-result-DNdi_JYW.js} +140 -168
  45. package/dist/_chunks/is-safe-url-DkETxeHz.js +7 -0
  46. package/dist/_chunks/{isSameWeek-HfxKk6Lz.js → isSameWeek-B1odL2vR.js} +2 -2
  47. package/dist/_chunks/{it-Y85ofIQQ.js → it-B16rEecm.js} +3 -3
  48. package/dist/_chunks/{ja-CQ7J6YoA.js → ja-B0viOgft.js} +2 -2
  49. package/dist/_chunks/languages-DsVf_WzT.js +19 -0
  50. package/dist/_chunks/layers-pzGcbLPj.js +34 -0
  51. package/dist/_chunks/{marketplace-app-shell-Gfsf78ge.js → marketplace-app-shell-UKSLx9K_.js} +3 -3
  52. package/dist/_chunks/{message-card-DSPw5ghw.js → message-card-Dvl1TgaN.js} +15 -19
  53. package/dist/_chunks/{message-tray-hSQff9u4.js → message-tray-Dl6GQaaV.js} +2 -2
  54. package/dist/_chunks/{nl-D9kHCmp3.js → nl-cBxEX2QU.js} +2 -2
  55. package/dist/_chunks/operator-hero-CM8949Hd.js +198 -0
  56. package/dist/_chunks/{patient-search-CocVcGJ3.js → patient-search-BJOmTmDA.js} +2 -2
  57. package/dist/_chunks/{patient-shell-CnT4L8gn.js → patient-shell-DUmhXnFq.js} +2 -2
  58. package/dist/_chunks/patient-summary-card-BnTqxcTr.js +443 -0
  59. package/dist/_chunks/{payment-form-BNTx4876.js → payment-form-xmeCkxas.js} +2 -2
  60. package/dist/_chunks/payment-request-card-B_lyobd0.js +478 -0
  61. package/dist/_chunks/{pdf-viewer-CWEXTlwq.js → pdf-viewer-q1D3Uion.js} +4 -4
  62. package/dist/_chunks/periodontal-chart-card-BYs9hax1.js +455 -0
  63. package/dist/_chunks/phone-Bi5yUm4I.js +20 -0
  64. package/dist/_chunks/{pl-B3Smqpkr.js → pl-DtS08ioY.js} +3 -3
  65. package/dist/_chunks/{practice-results-DDi-kvaD.js → practice-results-Cq1y8JFD.js} +4 -3
  66. package/dist/_chunks/pregnancy-weight-gain-CCGrvarh.js +322 -0
  67. package/dist/_chunks/product-hub-panel-CkfZBA3t.js +620 -0
  68. package/dist/_chunks/{pt-D3J-1c_7.js → pt-yFXs1VvH.js} +2 -2
  69. package/dist/_chunks/{ro-BKAbbEA3.js → ro-DsCzSrzR.js} +2 -2
  70. package/dist/_chunks/{ru-BeG8f0Ep.js → ru-DgDxL0pc.js} +3 -3
  71. package/dist/_chunks/scan-line-lGioFwLC.js +18 -0
  72. package/dist/_chunks/shield-check-BjCGH_Sr.js +21 -0
  73. package/dist/_chunks/{sidebar-_vJXI9rB.js → sidebar-h78cTNLh.js} +440 -338
  74. package/dist/_chunks/{sign-document-BCyLpFHJ.js → sign-document-CZkAf28g.js} +2 -2
  75. package/dist/_chunks/{sq-_hRPaeUy.js → sq-DHlCYN67.js} +2 -2
  76. package/dist/_chunks/subDays-Bs00akhK.js +8 -0
  77. package/dist/_chunks/{sv-g009fSpe.js → sv-O0QaQs_s.js} +2 -2
  78. package/dist/_chunks/{tr-OKUOuhMW.js → tr-BmNDRuio.js} +2 -2
  79. package/dist/_chunks/{transaction-chip-B8ujzowA.js → transaction-chip-BZCa6XDn.js} +8 -6
  80. package/dist/_chunks/{unit-converter-u3CwNDpP.js → unit-converter-jWp3Z85y.js} +2 -2
  81. package/dist/_chunks/user-cog-BS_qc8nA.js +24 -0
  82. package/dist/_chunks/video-BAeICxCT.js +21 -0
  83. package/dist/_chunks/warning-stack-CXfoAT-_.js +220 -0
  84. package/dist/_chunks/{workflow-map-Djn1QMJc.js → workflow-map-DzX_LI4y.js} +139 -157
  85. package/dist/_chunks/{zh-CN-De4zwEhx.js → zh-CN-CgVJZEzz.js} +3 -3
  86. package/dist/agent-catalog.json +367 -1
  87. package/dist/components/_shared/antenatal-schedule-timeline.d.ts +18 -0
  88. package/dist/components/_shared/antenatal-schedule.d.ts +68 -0
  89. package/dist/components/_shared/entity-card/entity-card.d.ts +40 -0
  90. package/dist/components/_shared/entity-card/index.d.ts +3 -0
  91. package/dist/components/_shared/index.d.ts +5 -0
  92. package/dist/components/_shared/is-safe-url.d.ts +13 -0
  93. package/dist/components/_shared/obstetrics.d.ts +138 -0
  94. package/dist/components/address-autocomplete/index.js +1 -1
  95. package/dist/components/agenda-card/agenda-card.d.ts +1 -2
  96. package/dist/components/agenda-card/index.d.ts +2 -1
  97. package/dist/components/agenda-card/index.js +6 -5
  98. package/dist/components/agenda-tray/index.js +1 -1
  99. package/dist/components/ai-consent-banner/ai-consent-banner.agent.d.ts +4 -0
  100. package/dist/components/ai-consent-banner/ai-consent-banner.d.ts +45 -0
  101. package/dist/components/ai-consent-banner/index.d.ts +4 -0
  102. package/dist/components/ai-consent-banner/index.js +6 -0
  103. package/dist/components/ai-tools-rail/ai-tools-rail.agent.d.ts +4 -0
  104. package/dist/components/ai-tools-rail/ai-tools-rail.d.ts +60 -0
  105. package/dist/components/ai-tools-rail/index.d.ts +4 -0
  106. package/dist/components/ai-tools-rail/index.js +6 -0
  107. package/dist/components/alert/alert.d.ts +2 -2
  108. package/dist/components/alert/index.js +1 -1
  109. package/dist/components/anamnesis-card/anamnesis-card.d.ts +68 -0
  110. package/dist/components/anamnesis-card/index.d.ts +3 -0
  111. package/dist/components/anamnesis-card/index.js +5 -0
  112. package/dist/components/appointment-card/appointment-card.agent.d.ts +3 -0
  113. package/dist/components/appointment-card/appointment-card.d.ts +93 -0
  114. package/dist/components/appointment-card/appointment-tray.agent.d.ts +4 -0
  115. package/dist/components/appointment-card/appointment-tray.d.ts +48 -0
  116. package/dist/components/appointment-card/index.d.ts +8 -0
  117. package/dist/components/appointment-card/index.js +10 -0
  118. package/dist/components/audio-recorder/index.js +1 -1
  119. package/dist/components/badge/badge.d.ts +1 -1
  120. package/dist/components/bishop-score/bishop-score.d.ts +27 -0
  121. package/dist/components/bishop-score/bishop.d.ts +30 -0
  122. package/dist/components/bishop-score/index.d.ts +4 -0
  123. package/dist/components/bishop-score/index.js +10 -0
  124. package/dist/components/bmi-calculator/index.js +1 -1
  125. package/dist/components/booking/index.js +1 -1
  126. package/dist/components/calculator-dialog/index.js +1 -1
  127. package/dist/components/calendar/index.js +1 -1
  128. package/dist/components/card/card.d.ts +1 -1
  129. package/dist/components/care-plan-card/care-plan-card.agent.d.ts +4 -0
  130. package/dist/components/care-plan-card/care-plan-card.d.ts +102 -0
  131. package/dist/components/care-plan-card/index.d.ts +4 -0
  132. package/dist/components/care-plan-card/index.js +6 -0
  133. package/dist/components/care-plan-entry-card/care-plan-entry-card.agent.d.ts +4 -0
  134. package/dist/components/care-plan-entry-card/care-plan-entry-card.d.ts +110 -0
  135. package/dist/components/care-plan-entry-card/index.d.ts +4 -0
  136. package/dist/components/care-plan-entry-card/index.js +6 -0
  137. package/dist/components/chat-message/chat-message.d.ts +7 -0
  138. package/dist/components/chat-message/index.js +1 -1
  139. package/dist/components/clinical-note-card/clinical-note-card.agent.d.ts +4 -0
  140. package/dist/components/clinical-note-card/clinical-note-card.d.ts +98 -0
  141. package/dist/components/clinical-note-card/index.d.ts +4 -0
  142. package/dist/components/clinical-note-card/index.js +6 -0
  143. package/dist/components/contact-profile-card/index.js +1 -1
  144. package/dist/components/cycle-calculator/cycle.d.ts +5 -0
  145. package/dist/components/cycle-calculator/index.js +1 -1
  146. package/dist/components/data-table/index.js +1 -1
  147. package/dist/components/date-picker/index.js +1 -1
  148. package/dist/components/date-range-picker/index.js +1 -1
  149. package/dist/components/date-time-picker/index.js +1 -1
  150. package/dist/components/dialog/dialog.d.ts +7 -0
  151. package/dist/components/dialog/index.js +1 -1
  152. package/dist/components/document-scanner/index.js +1 -1
  153. package/dist/components/due-date-calculator/due-date-calculator.d.ts +13 -1
  154. package/dist/components/due-date-calculator/gestation.d.ts +1 -59
  155. package/dist/components/due-date-calculator/index.d.ts +1 -1
  156. package/dist/components/due-date-calculator/index.js +16 -10
  157. package/dist/components/fetal-weight/efw.d.ts +25 -0
  158. package/dist/components/fetal-weight/fetal-weight.d.ts +27 -0
  159. package/dist/components/fetal-weight/index.d.ts +4 -0
  160. package/dist/components/fetal-weight/index.js +6 -0
  161. package/dist/components/freemium-paywall/index.js +1 -1
  162. package/dist/components/gestational-age-calculator/gestational-age-calculator.d.ts +25 -1
  163. package/dist/components/gestational-age-calculator/index.js +1 -1
  164. package/dist/components/hcg-doubling/hcg-doubling.d.ts +31 -0
  165. package/dist/components/hcg-doubling/hcg.d.ts +33 -0
  166. package/dist/components/hcg-doubling/index.d.ts +4 -0
  167. package/dist/components/hcg-doubling/index.js +7 -0
  168. package/dist/components/index.d.ts +14 -0
  169. package/dist/components/message-card/index.js +5 -4
  170. package/dist/components/message-card/message-card.d.ts +1 -2
  171. package/dist/components/message-tray/index.js +1 -1
  172. package/dist/components/operator-hero/index.js +1 -1
  173. package/dist/components/operator-hero/operator-hero.d.ts +9 -0
  174. package/dist/components/patient-search/index.js +1 -1
  175. package/dist/components/patient-summary-card/index.d.ts +4 -0
  176. package/dist/components/patient-summary-card/index.js +6 -0
  177. package/dist/components/patient-summary-card/patient-summary-card.agent.d.ts +4 -0
  178. package/dist/components/patient-summary-card/patient-summary-card.d.ts +120 -0
  179. package/dist/components/payment-card/index.d.ts +7 -0
  180. package/dist/components/payment-card/index.js +8 -0
  181. package/dist/components/payment-card/payment-card.agent.d.ts +4 -0
  182. package/dist/components/payment-card/payment-card.d.ts +71 -0
  183. package/dist/components/payment-card/payment-request-card.agent.d.ts +4 -0
  184. package/dist/components/payment-card/payment-request-card.d.ts +43 -0
  185. package/dist/components/payment-form/index.js +1 -1
  186. package/dist/components/pdf-viewer/index.js +1 -1
  187. package/dist/components/periodontal-chart-card/index.d.ts +4 -0
  188. package/dist/components/periodontal-chart-card/index.js +7 -0
  189. package/dist/components/periodontal-chart-card/periodontal-chart-card.agent.d.ts +4 -0
  190. package/dist/components/periodontal-chart-card/periodontal-chart-card.d.ts +74 -0
  191. package/dist/components/practice-results/index.js +1 -1
  192. package/dist/components/pregnancy-weight-gain/index.js +1 -1
  193. package/dist/components/pregnancy-weight-gain/pregnancy-weight-gain.d.ts +7 -0
  194. package/dist/components/pregnancy-weight-gain/weight-gain.d.ts +33 -8
  195. package/dist/components/product-hub-tray/index.d.ts +8 -0
  196. package/dist/components/product-hub-tray/index.js +10 -0
  197. package/dist/components/product-hub-tray/product-hub-panel.agent.d.ts +4 -0
  198. package/dist/components/product-hub-tray/product-hub-panel.d.ts +54 -0
  199. package/dist/components/product-hub-tray/product-hub-tray.agent.d.ts +4 -0
  200. package/dist/components/product-hub-tray/product-hub-tray.d.ts +115 -0
  201. package/dist/components/public-header/public-header.d.ts +1 -1
  202. package/dist/components/sidebar/index.d.ts +2 -2
  203. package/dist/components/sidebar/index.js +12 -11
  204. package/dist/components/sidebar/sidebar.d.ts +14 -1
  205. package/dist/components/sign-document/index.js +1 -1
  206. package/dist/components/stat/stat.d.ts +1 -1
  207. package/dist/components/transaction-chip/index.js +1 -1
  208. package/dist/components/unit-converter/index.js +1 -1
  209. package/dist/components/warning-stack/index.js +1 -1
  210. package/dist/components/workflow/index.js +1 -1
  211. package/dist/i18n/locales/ar.d.ts +561 -1
  212. package/dist/i18n/locales/ar.js +560 -2
  213. package/dist/i18n/locales/de.d.ts +561 -1
  214. package/dist/i18n/locales/de.js +560 -2
  215. package/dist/i18n/locales/el.d.ts +561 -1
  216. package/dist/i18n/locales/el.js +560 -2
  217. package/dist/i18n/locales/en.d.ts +561 -1
  218. package/dist/i18n/locales/en.js +560 -2
  219. package/dist/i18n/locales/es.d.ts +561 -1
  220. package/dist/i18n/locales/es.js +560 -2
  221. package/dist/i18n/locales/fr.d.ts +561 -1
  222. package/dist/i18n/locales/fr.js +560 -2
  223. package/dist/i18n/locales/hi.d.ts +561 -1
  224. package/dist/i18n/locales/hi.js +560 -2
  225. package/dist/i18n/locales/it.d.ts +561 -1
  226. package/dist/i18n/locales/it.js +560 -2
  227. package/dist/i18n/locales/ja.d.ts +561 -1
  228. package/dist/i18n/locales/ja.js +560 -2
  229. package/dist/i18n/locales/nl.d.ts +561 -1
  230. package/dist/i18n/locales/nl.js +560 -2
  231. package/dist/i18n/locales/pl.d.ts +561 -1
  232. package/dist/i18n/locales/pl.js +560 -2
  233. package/dist/i18n/locales/pt.d.ts +561 -1
  234. package/dist/i18n/locales/pt.js +560 -2
  235. package/dist/i18n/locales/ro.d.ts +561 -1
  236. package/dist/i18n/locales/ro.js +560 -2
  237. package/dist/i18n/locales/ru.d.ts +561 -1
  238. package/dist/i18n/locales/ru.js +560 -2
  239. package/dist/i18n/locales/sq.d.ts +561 -1
  240. package/dist/i18n/locales/sq.js +560 -2
  241. package/dist/i18n/locales/sv.d.ts +561 -1
  242. package/dist/i18n/locales/sv.js +560 -2
  243. package/dist/i18n/locales/tr.d.ts +561 -1
  244. package/dist/i18n/locales/tr.js +560 -2
  245. package/dist/i18n/locales/zh.d.ts +561 -1
  246. package/dist/i18n/locales/zh.js +560 -2
  247. package/dist/index.js +663 -600
  248. package/dist/locales/ar.json +562 -2
  249. package/dist/locales/de.json +562 -2
  250. package/dist/locales/el.json +562 -2
  251. package/dist/locales/en.json +562 -2
  252. package/dist/locales/es.json +562 -2
  253. package/dist/locales/fr.json +562 -2
  254. package/dist/locales/hi.json +562 -2
  255. package/dist/locales/it.json +562 -2
  256. package/dist/locales/ja.json +562 -2
  257. package/dist/locales/nl.json +562 -2
  258. package/dist/locales/pl.json +562 -2
  259. package/dist/locales/pt.json +562 -2
  260. package/dist/locales/ro.json +562 -2
  261. package/dist/locales/ru.json +562 -2
  262. package/dist/locales/sq.json +562 -2
  263. package/dist/locales/sv.json +562 -2
  264. package/dist/locales/tr.json +562 -2
  265. package/dist/locales/zh.json +562 -2
  266. package/dist/patterns/alia-assistant/alia-types.d.ts +15 -0
  267. package/dist/patterns/alia-assistant/index.js +1 -1
  268. package/dist/patterns/marketplace-app-shell/index.js +1 -1
  269. package/dist/patterns/patient-shell/index.js +1 -1
  270. package/dist/tokens.css +1 -1
  271. package/package.json +58 -1
  272. package/dist/_chunks/cycle-calculator-KxA8dqDf.js +0 -211
  273. package/dist/_chunks/due-date-calculator-mFxpHLml.js +0 -216
  274. package/dist/_chunks/gestation-mWF4AXea.js +0 -50
  275. package/dist/_chunks/gestational-age-calculator-gWI_uRA1.js +0 -203
  276. package/dist/_chunks/operator-hero-7LiiP7zi.js +0 -171
  277. package/dist/_chunks/pregnancy-weight-gain-BtEHaSqy.js +0 -246
  278. package/dist/_chunks/shield-check-C73ma9Cs.js +0 -36
  279. package/dist/_chunks/subDays-Dv7q9S7u.js +0 -8
  280. package/dist/_chunks/warning-stack-DNR3-IbP.js +0 -180
@@ -0,0 +1,419 @@
1
+ import { jsx as a, jsxs as s } from "react/jsx-runtime";
2
+ import { forwardRef as $, useRef as K, useImperativeHandle as Y, useMemo as J } from "react";
3
+ import { c as H } from "./index-D2ZczOXr.js";
4
+ import { useTranslation as G } from "react-i18next";
5
+ import { I as Q } from "./icon-button-CKEOrN37.js";
6
+ import { S as X } from "./skeleton-CZbwyJAA.js";
7
+ import { E as Z } from "./empty-state-BLy7tigq.js";
8
+ import { A as U } from "./avatar-BNQNhoyL.js";
9
+ import { B as P } from "./badge-zsf5i5bH.js";
10
+ import { T as ee } from "./tag-CdA0s_VV.js";
11
+ import { T as ae } from "./timestamp-BV2lC-wV.js";
12
+ import { T as se } from "./transaction-chip-BZCa6XDn.js";
13
+ import { i as re } from "./is-safe-url-DkETxeHz.js";
14
+ import { V as te } from "./video-BAeICxCT.js";
15
+ import { M as ne } from "./map-pin-B8STOPMJ.js";
16
+ import { c as q, a as oe } from "./entity-card-COhmqHly.js";
17
+ import { S as ie } from "./star-vav0SJ9e.js";
18
+ import { G as de } from "./globe-BkEFMNSg.js";
19
+ import { C as le } from "./chevron-right-BrpYejk0.js";
20
+ import { u as ce } from "./registry-nPAVE19X.js";
21
+ import { C as pe } from "./calendar-days-C4BmpCZg.js";
22
+ import { P as me } from "./plus-CYKNmfuA.js";
23
+ const ue = {
24
+ "var(--color-violet-500)": "ds:bg-[var(--color-violet-500)]",
25
+ "var(--color-purple-500)": "ds:bg-[var(--color-purple-500)]",
26
+ "var(--color-magenta-500)": "ds:bg-[var(--color-magenta-500)]",
27
+ "var(--color-blue-500)": "ds:bg-[var(--color-blue-500)]",
28
+ "var(--color-green-500)": "ds:bg-[var(--color-green-500)]",
29
+ "var(--color-red-500)": "ds:bg-[var(--color-red-500)]",
30
+ "var(--color-yellow-500)": "ds:bg-[var(--color-yellow-500)]",
31
+ "var(--color-indigo-500)": "ds:bg-[var(--color-indigo-500)]",
32
+ "var(--color-orange-500)": "ds:bg-[var(--color-orange-500)]",
33
+ "var(--color-fuchsia-500)": "ds:bg-[var(--color-fuchsia-500)]",
34
+ "var(--color-grey-700)": "ds:bg-[var(--color-grey-700)]"
35
+ };
36
+ function fe(e) {
37
+ return ue[q(e)] ?? "ds:bg-[var(--color-grey-700)]";
38
+ }
39
+ const ge = H(
40
+ [
41
+ "ds:relative ds:flex ds:items-start ds:gap-[var(--spacing-sm)]",
42
+ "ds:rounded-[var(--radius-md)]",
43
+ "ds:text-start ds:group",
44
+ "ds:bg-[var(--card)] ds:text-[color:var(--card-foreground)]",
45
+ "ds:transition-colors ds:duration-[var(--animation-duration)]",
46
+ "ds:motion-reduce:transition-none",
47
+ "ds:forced-colors:border ds:forced-colors:border-[CanvasText]"
48
+ ].join(" "),
49
+ {
50
+ variants: {
51
+ size: {
52
+ sm: "ds:p-[var(--spacing-sm)]",
53
+ md: "ds:p-[var(--spacing-md)]"
54
+ },
55
+ interactive: {
56
+ true: "ds:hover:bg-[color:var(--muted)]/40 ds:cursor-pointer",
57
+ false: ""
58
+ }
59
+ },
60
+ defaultVariants: {
61
+ size: "sm",
62
+ interactive: !1
63
+ }
64
+ }
65
+ ), B = [
66
+ "ds:focus-visible:outline-none",
67
+ "ds:after:content-[''] ds:after:absolute ds:after:inset-0 ds:after:rounded-[var(--radius-md)]",
68
+ "ds:after:pointer-events-auto",
69
+ "ds:focus-visible:after:outline-[length:var(--focus-ring-width)]",
70
+ "ds:focus-visible:after:outline-solid",
71
+ "ds:focus-visible:after:outline-[color:var(--ring)]",
72
+ "ds:focus-visible:after:outline-offset-[length:var(--focus-ring-offset)]",
73
+ "ds:forced-colors:focus-visible:after:outline-[CanvasText]"
74
+ ].join(" "), ve = {
75
+ inPractice: ne,
76
+ telehealth: te
77
+ }, F = $(
78
+ ({
79
+ item: e,
80
+ size: i = "sm",
81
+ locale: b,
82
+ currency: x = "EUR",
83
+ onActivate: o,
84
+ className: I,
85
+ ...R
86
+ }, l) => {
87
+ var h, w, t, y, z, V, E, j, L, A, M, _, D;
88
+ const { t: r } = G(), m = !!o, N = !!e.url && re(e.url), v = ((h = e.patient) == null ? void 0 : h.name) ?? r("appointmentCard.noPatient"), c = (w = e.operator) == null ? void 0 : w.name, C = r(`appointmentCard.state.${e.state}`), k = i === "md" ? "md" : "sm", S = ve[e.type], p = r("appointmentCard.itemLabel", {
89
+ patient: v,
90
+ state: C
91
+ }), u = /* @__PURE__ */ a("span", { className: "ds:min-w-0 ds:truncate type-title-item ds:text-[color:var(--foreground)]", children: v });
92
+ let f;
93
+ m && N ? f = /* @__PURE__ */ a(
94
+ "a",
95
+ {
96
+ href: e.url,
97
+ "aria-label": p,
98
+ className: B + " ds:contents",
99
+ onClick: (n) => {
100
+ n.defaultPrevented || n.metaKey || n.ctrlKey || n.shiftKey || o == null || o(e);
101
+ },
102
+ children: u
103
+ }
104
+ ) : m ? f = /* @__PURE__ */ a(
105
+ "button",
106
+ {
107
+ type: "button",
108
+ "aria-label": p,
109
+ className: B + " ds:contents ds:bg-transparent ds:border-0 ds:p-0 ds:text-start",
110
+ onClick: () => o == null ? void 0 : o(e),
111
+ children: u
112
+ }
113
+ ) : f = u;
114
+ const T = (e.treatments ?? []).map((n, O) => {
115
+ const W = n.elements && n.elements.length > 0 ? r("appointmentCard.treatmentWithElements", {
116
+ care: n.careName,
117
+ elements: n.elements.join(", ")
118
+ }) : n.careName;
119
+ return /* @__PURE__ */ a(
120
+ ee,
121
+ {
122
+ label: W,
123
+ variant: "neutral",
124
+ fill: "outline",
125
+ size: "sm",
126
+ maxInlineSize: "12rem"
127
+ },
128
+ `${n.careName}-${O}`
129
+ );
130
+ }), d = (t = e.bookingReason) == null ? void 0 : t.advanceAmountCents, g = typeof d == "number" && d > 0;
131
+ return /* @__PURE__ */ s(
132
+ "div",
133
+ {
134
+ ref: l,
135
+ role: "listitem",
136
+ "data-component": "appointment-card",
137
+ "data-component-id": e.id,
138
+ "data-state": e.state,
139
+ "data-type": e.type,
140
+ className: ge({ size: i, interactive: m, className: I }),
141
+ ...R,
142
+ children: [
143
+ /* @__PURE__ */ s("span", { className: "ds:flex ds:w-16 ds:shrink-0 ds:flex-col ds:items-start ds:gap-[var(--spacing-2xs)]", children: [
144
+ /* @__PURE__ */ s("span", { className: "ds:inline-flex ds:items-center ds:gap-[var(--spacing-xs)] ds:text-[color:var(--muted-foreground)]", children: [
145
+ /* @__PURE__ */ a(S, { "aria-hidden": "true", className: "ds:size-3.5 ds:shrink-0" }),
146
+ /* @__PURE__ */ a("span", { className: "ds:sr-only", children: r(`appointmentCard.type.${e.type}`) }),
147
+ /* @__PURE__ */ a(
148
+ ae,
149
+ {
150
+ value: e.startIso,
151
+ format: "absolute",
152
+ shape: "bare",
153
+ locale: b,
154
+ absoluteFormat: { hour: "numeric", minute: "2-digit" },
155
+ className: "type-body-sm ds:font-medium ds:text-[color:var(--foreground)] ds:tabular-nums"
156
+ }
157
+ )
158
+ ] }),
159
+ /* @__PURE__ */ a("span", { className: "type-eyebrow ds:text-[color:var(--muted-foreground)]", children: r("appointmentCard.duration", { count: e.durationMin }) })
160
+ ] }),
161
+ c ? /* @__PURE__ */ s("span", { className: "ds:relative ds:shrink-0", children: [
162
+ /* @__PURE__ */ a(
163
+ U,
164
+ {
165
+ name: c,
166
+ color: q((y = e.operator) == null ? void 0 : y.colorId),
167
+ size: k,
168
+ "aria-hidden": "true",
169
+ role: "presentation",
170
+ "aria-label": void 0
171
+ }
172
+ ),
173
+ /* @__PURE__ */ a(
174
+ "span",
175
+ {
176
+ "aria-hidden": "true",
177
+ className: "ds:absolute ds:bottom-0 ds:end-0 ds:size-2.5 ds:rounded-[var(--radius-full)] ds:border ds:border-[color:var(--card)] " + fe((z = e.operator) == null ? void 0 : z.colorId)
178
+ }
179
+ )
180
+ ] }) : null,
181
+ /* @__PURE__ */ s("div", { className: "ds:flex-1 ds:min-w-0 ds:flex ds:flex-col ds:gap-[var(--spacing-xs)]", children: [
182
+ /* @__PURE__ */ s("div", { className: "ds:flex ds:items-start ds:gap-[var(--spacing-sm)]", children: [
183
+ /* @__PURE__ */ s("div", { className: "ds:flex-1 ds:min-w-0 ds:flex ds:items-center ds:gap-[var(--spacing-xs)]", children: [
184
+ (V = e.patient) != null && V.avatarUrl ? /* @__PURE__ */ a(
185
+ U,
186
+ {
187
+ name: v,
188
+ src: e.patient.avatarUrl,
189
+ size: k,
190
+ className: "ds:shrink-0",
191
+ "aria-hidden": "true",
192
+ role: "presentation",
193
+ "aria-label": void 0
194
+ }
195
+ ) : null,
196
+ f
197
+ ] }),
198
+ /* @__PURE__ */ a(
199
+ P,
200
+ {
201
+ variant: oe(e.state),
202
+ size: "sm",
203
+ withDot: !0,
204
+ className: "ds:shrink-0",
205
+ children: C
206
+ }
207
+ )
208
+ ] }),
209
+ c || e.chair || (E = e.bookingReason) != null && E.specialty || e.firstVisit === "yes" ? /* @__PURE__ */ s("div", { className: "ds:flex ds:flex-wrap ds:items-center ds:gap-x-[var(--spacing-sm)] ds:gap-y-[var(--spacing-2xs)] type-eyebrow ds:text-[color:var(--muted-foreground)]", children: [
210
+ c ? /* @__PURE__ */ a("span", { children: c }) : null,
211
+ e.chair ? /* @__PURE__ */ a("span", { children: r("appointmentCard.chair", { chair: e.chair }) }) : null,
212
+ (j = e.bookingReason) != null && j.specialty ? /* @__PURE__ */ a("span", { children: e.bookingReason.specialty }) : null,
213
+ e.firstVisit === "yes" ? /* @__PURE__ */ s("span", { className: "ds:inline-flex ds:items-center ds:gap-[var(--spacing-2xs)]", children: [
214
+ /* @__PURE__ */ a(ie, { "aria-hidden": "true", className: "ds:size-3 ds:shrink-0" }),
215
+ r("appointmentCard.firstVisit")
216
+ ] }) : null
217
+ ] }) : null,
218
+ (L = e.bookingReason) != null && L.description ? /* @__PURE__ */ a("span", { className: "type-body-sm ds:text-[color:var(--foreground)] ds:truncate", children: e.bookingReason.description }) : null,
219
+ T.length > 0 ? /* @__PURE__ */ a("div", { className: "ds:flex ds:flex-wrap ds:gap-[var(--spacing-2xs)]", children: T }) : null,
220
+ (A = e.flags) != null && A.bookedOnline || (M = e.flags) != null && M.highlightedAnamnesis || g ? /* @__PURE__ */ s("div", { className: "ds:flex ds:flex-wrap ds:items-center ds:gap-[var(--spacing-xs)]", children: [
221
+ (_ = e.flags) != null && _.bookedOnline ? /* @__PURE__ */ a(P, { variant: "info", size: "sm", leading: /* @__PURE__ */ a(de, {}), children: r("appointmentCard.flag.bookedOnline") }) : null,
222
+ (D = e.flags) != null && D.highlightedAnamnesis ? /* @__PURE__ */ a(P, { variant: "warning", size: "sm", withDot: !0, children: r("appointmentCard.flag.highlightedAnamnesis") }) : null,
223
+ g ? /* @__PURE__ */ a(
224
+ se,
225
+ {
226
+ state: "to-invoice",
227
+ amount: d / 100,
228
+ currency: x,
229
+ locale: b,
230
+ size: "sm",
231
+ showLabel: !0
232
+ }
233
+ ) : null
234
+ ] }) : null
235
+ ] }),
236
+ m ? /* @__PURE__ */ a(
237
+ le,
238
+ {
239
+ "aria-hidden": "true",
240
+ className: "ds:size-4 ds:shrink-0 ds:self-center ds:text-[color:var(--muted-foreground)] ds:opacity-0 ds:transition-opacity ds:motion-reduce:transition-none ds:group-hover:opacity-100 ds:group-focus-within:opacity-100 ds:rtl:rotate-180"
241
+ }
242
+ ) : null
243
+ ]
244
+ }
245
+ );
246
+ }
247
+ );
248
+ F.displayName = "AppointmentCard";
249
+ const $e = {
250
+ id: "appointment-card",
251
+ capabilities: ["pick"],
252
+ state: {},
253
+ actions: {},
254
+ domHooks: {
255
+ root: {
256
+ attr: "data-component",
257
+ value: "appointment-card",
258
+ description: "Marks the element as a kit AppointmentCard. The root also emits data-component-id sourced from item.id, data-state with the appointment lifecycle, and data-type with the delivery channel."
259
+ },
260
+ instanceId: {
261
+ attr: "data-component-id",
262
+ sourceProp: "item.id",
263
+ description: "Sourced from item.id — the stable appointment identifier."
264
+ }
265
+ }
266
+ }, he = {
267
+ id: "appointment-tray",
268
+ capabilities: ["select_single"],
269
+ state: {
270
+ items: {
271
+ type: "Array<{ id: string; state: string }>",
272
+ descriptionKey: "ui.agent.appointmentTray.state.items",
273
+ description: "Currently-displayed appointments. Ids + lifecycle state only — never patient identity.",
274
+ read: (e) => e.getItems()
275
+ }
276
+ },
277
+ actions: {
278
+ select_item: {
279
+ safety: "read",
280
+ argsType: "{ id: string }",
281
+ descriptionKey: "ui.agent.appointmentTray.actions.selectItem",
282
+ description: "Activate the appointment with the given id.",
283
+ invoke: (e, i) => {
284
+ e.selectItem(i.id);
285
+ }
286
+ }
287
+ },
288
+ domHooks: {
289
+ root: {
290
+ attr: "data-component",
291
+ value: "appointment-tray",
292
+ description: "Marks the AppointmentTray wrapper."
293
+ },
294
+ instanceId: {
295
+ attr: "data-component-id",
296
+ sourceProp: "id",
297
+ description: "Sourced from the id prop. Required to address a specific tray from the agent."
298
+ },
299
+ item: {
300
+ attr: "data-appointment-id",
301
+ description: "Stable appointment id emitted on each rendered AppointmentCard inside the tray."
302
+ }
303
+ }
304
+ }, ye = H(
305
+ [
306
+ "ds:flex ds:flex-col",
307
+ "ds:rounded-[var(--radius-md)] ds:shadow-[var(--shadow-card)]",
308
+ "ds:border ds:border-[color:var(--card-border)] ds:[.theme-accessible_&]:border-2",
309
+ "ds:bg-[color:var(--card)] ds:text-[color:var(--card-foreground)]",
310
+ "ds:overflow-hidden"
311
+ ].join(" "),
312
+ {
313
+ variants: {
314
+ size: {
315
+ sm: "",
316
+ md: ""
317
+ }
318
+ },
319
+ defaultVariants: {
320
+ size: "sm"
321
+ }
322
+ }
323
+ ), be = $(
324
+ ({
325
+ id: e,
326
+ items: i,
327
+ title: b,
328
+ caption: x,
329
+ size: o = "sm",
330
+ locale: I,
331
+ currency: R,
332
+ onOpenAppointment: l,
333
+ onAddAppointment: r,
334
+ addLabel: m,
335
+ loading: N = !1,
336
+ emptyTitle: v,
337
+ emptyDescription: c,
338
+ className: C,
339
+ ...k
340
+ }, S) => {
341
+ const { t: p } = G(), u = b ?? p("appointmentTray.title"), f = m ?? p("appointmentTray.add"), T = !N && i.length === 0;
342
+ let d;
343
+ N ? d = /* @__PURE__ */ a("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)] ds:p-[var(--spacing-sm)]", children: [0, 1, 2].map((t) => /* @__PURE__ */ a(X, { variant: "rectangular", height: "3.5rem" }, t)) }) : T ? d = /* @__PURE__ */ a("div", { className: "ds:p-[var(--spacing-md)]", children: /* @__PURE__ */ a(
344
+ Z,
345
+ {
346
+ variant: "first-use",
347
+ size: "sm",
348
+ title: v ?? p("appointmentTray.empty.title"),
349
+ description: c ?? p("appointmentTray.empty.description")
350
+ }
351
+ ) }) : d = /* @__PURE__ */ a("ul", { className: "ds:flex ds:list-none ds:flex-col ds:gap-[var(--spacing-2xs)] ds:p-[var(--spacing-2xs)]", children: i.map((t) => /* @__PURE__ */ a(
352
+ F,
353
+ {
354
+ item: t,
355
+ size: o,
356
+ locale: I,
357
+ currency: R,
358
+ onActivate: l,
359
+ "data-appointment-id": t.id
360
+ },
361
+ t.id
362
+ )) });
363
+ const g = K(i);
364
+ g.current = i;
365
+ const h = K(null);
366
+ Y(S, () => h.current, []);
367
+ const w = J(
368
+ () => ({
369
+ getItems: () => g.current.map((t) => ({ id: t.id, state: t.state })),
370
+ selectItem: (t) => {
371
+ const y = g.current.find((z) => z.id === t);
372
+ y && (l == null || l(y));
373
+ }
374
+ }),
375
+ [l]
376
+ );
377
+ return ce(he, w, e), /* @__PURE__ */ s(
378
+ "section",
379
+ {
380
+ ref: h,
381
+ "aria-label": u,
382
+ "data-component": "appointment-tray",
383
+ "data-component-id": e,
384
+ className: ye({ size: o, className: C }),
385
+ ...k,
386
+ children: [
387
+ /* @__PURE__ */ s("header", { className: "ds:flex ds:items-center ds:justify-between ds:gap-[var(--spacing-sm)] ds:p-[var(--spacing-sm)]", children: [
388
+ /* @__PURE__ */ s("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-2xs)] ds:min-w-0", children: [
389
+ /* @__PURE__ */ s("h3", { className: "ds:m-0 ds:inline-flex ds:items-center ds:gap-[var(--spacing-xs)] type-title-card", children: [
390
+ /* @__PURE__ */ a(pe, { "aria-hidden": "true", className: "ds:size-4" }),
391
+ u
392
+ ] }),
393
+ x ? /* @__PURE__ */ a("span", { className: "type-eyebrow ds:text-[color:var(--muted-foreground)]", children: x }) : null
394
+ ] }),
395
+ r ? /* @__PURE__ */ a(
396
+ Q,
397
+ {
398
+ icon: /* @__PURE__ */ a(me, {}),
399
+ intent: "outline",
400
+ size: "sm",
401
+ "aria-label": f,
402
+ onClick: r
403
+ }
404
+ ) : null
405
+ ] }),
406
+ d
407
+ ]
408
+ }
409
+ );
410
+ }
411
+ );
412
+ be.displayName = "AppointmentTray";
413
+ export {
414
+ F as A,
415
+ be as a,
416
+ $e as b,
417
+ he as c
418
+ };
419
+ //# sourceMappingURL=appointment-tray-BwDHhWWC.js.map
@@ -1,4 +1,4 @@
1
- import { q as s, r, v as i, w as d } from "./date-picker-variants-DLi1Va_e.js";
1
+ import { q as s, r, v as i, w as d } from "./date-picker-variants-CXEAx3O_.js";
2
2
  const h = {
3
3
  lessThanXSeconds: {
4
4
  one: "أقل من ثانية",
@@ -396,4 +396,4 @@ const h = {
396
396
  export {
397
397
  z as ar
398
398
  };
399
- //# sourceMappingURL=ar-DEz65ZJW.js.map
399
+ //# sourceMappingURL=ar-C68WKG5a.js.map
@@ -6,7 +6,7 @@ import { B as G } from "./button-DD_0Xdmr.js";
6
6
  import { I as N } from "./icon-button-CKEOrN37.js";
7
7
  import { S as pe } from "./select-hsCaJSX3.js";
8
8
  import { A as le } from "./audio-visualiser-l6zPd0AG.js";
9
- import { A as F } from "./alert-ywPR59NE.js";
9
+ import { A as F } from "./alert-CUTxnym2.js";
10
10
  import { u as me } from "./registry-nPAVE19X.js";
11
11
  import { M as fe } from "./mic-B4Gog3Gi.js";
12
12
  import { c as J } from "./createLucideIcon-CrFbzy84.js";
@@ -444,4 +444,4 @@ export {
444
444
  Ne as A,
445
445
  Re as a
446
446
  };
447
- //# sourceMappingURL=audio-recorder-DC-v9YFW.js.map
447
+ //# sourceMappingURL=audio-recorder-DVJXV7_k.js.map
@@ -0,0 +1,185 @@
1
+ import { jsxs as c, jsx as a } from "react/jsx-runtime";
2
+ import { forwardRef as $, useState as w, useMemo as L, useEffect as _ } from "react";
3
+ import { c as E } from "./index-D2ZczOXr.js";
4
+ import { useTranslation as F } from "react-i18next";
5
+ import { F as I } from "./form-field-BOm9hK35.js";
6
+ import { S as P } from "./select-hsCaJSX3.js";
7
+ import { C as m } from "./card-DPmk26CL.js";
8
+ import { B as T } from "./badge-zsf5i5bH.js";
9
+ import { I as A } from "./insert-result-DNdi_JYW.js";
10
+ const b = [
11
+ "dilation",
12
+ "effacement",
13
+ "station",
14
+ "consistency",
15
+ "position"
16
+ ], v = {
17
+ dilation: [
18
+ { value: "closed", score: 0 },
19
+ { value: "1-2", score: 1 },
20
+ { value: "3-4", score: 2 },
21
+ { value: "5+", score: 3 }
22
+ ],
23
+ effacement: [
24
+ { value: "0-30", score: 0 },
25
+ { value: "40-50", score: 1 },
26
+ { value: "60-70", score: 2 },
27
+ { value: "80+", score: 3 }
28
+ ],
29
+ station: [
30
+ { value: "-3", score: 0 },
31
+ { value: "-2", score: 1 },
32
+ { value: "-1-0", score: 2 },
33
+ { value: "+1+2", score: 3 }
34
+ ],
35
+ consistency: [
36
+ { value: "firm", score: 0 },
37
+ { value: "medium", score: 1 },
38
+ { value: "soft", score: 2 }
39
+ ],
40
+ position: [
41
+ { value: "posterior", score: 0 },
42
+ { value: "mid", score: 1 },
43
+ { value: "anterior", score: 2 }
44
+ ]
45
+ }, f = 13;
46
+ function D(o) {
47
+ return o <= 6 ? "unfavourable" : o >= 8 ? "favourable" : "intermediate";
48
+ }
49
+ function H(o, l) {
50
+ var t;
51
+ return ((t = v[o].find((i) => i.value === l)) == null ? void 0 : t.score) ?? null;
52
+ }
53
+ function M(o) {
54
+ let l = 0;
55
+ for (const t of b) {
56
+ const i = o[t];
57
+ if (i === void 0) return null;
58
+ const d = H(t, i);
59
+ if (d === null) return null;
60
+ l += d;
61
+ }
62
+ return { total: l, band: D(l) };
63
+ }
64
+ const j = E("ds:flex ds:flex-col ds:gap-[var(--spacing-lg)]", {
65
+ variants: {
66
+ width: { full: "ds:w-full", auto: "ds:inline-flex" }
67
+ },
68
+ defaultVariants: { width: "full" }
69
+ }), V = {
70
+ unfavourable: "warning",
71
+ intermediate: "info",
72
+ favourable: "success"
73
+ }, k = {
74
+ unfavourable: "--warning-readable",
75
+ intermediate: "--info",
76
+ favourable: "--success"
77
+ }, z = $(
78
+ ({
79
+ onResultChange: o,
80
+ onInsert: l,
81
+ insertVariant: t = "insert",
82
+ onCopy: i,
83
+ onError: d,
84
+ insertBrand: h,
85
+ id: g,
86
+ width: S,
87
+ className: x
88
+ }, N) => {
89
+ const { t: e } = F(), [p, y] = w({}), s = L(() => M(p), [p]);
90
+ _(() => {
91
+ o == null || o(s);
92
+ }, [s, o]);
93
+ const B = (r) => v[r].map((u) => ({
94
+ value: u.value,
95
+ label: e(`bishopScore.${r}.${u.value}`)
96
+ })), n = (r) => e(`bishopScore.band.${r}`);
97
+ return /* @__PURE__ */ c(
98
+ "div",
99
+ {
100
+ ref: N,
101
+ "data-component": "bishop-score",
102
+ "data-component-id": g,
103
+ className: j({ width: S, className: x }),
104
+ children: [
105
+ /* @__PURE__ */ a("div", { className: "ds:grid ds:grid-cols-1 ds:gap-[var(--spacing-md)] ds:sm:grid-cols-2", children: b.map((r) => /* @__PURE__ */ a(
106
+ I,
107
+ {
108
+ label: e(`bishopScore.${r}.label`),
109
+ children: /* @__PURE__ */ a(
110
+ P,
111
+ {
112
+ options: B(r),
113
+ value: p[r] ?? "",
114
+ onValueChange: (u) => y((O) => ({ ...O, [r]: u }))
115
+ }
116
+ )
117
+ },
118
+ r
119
+ )) }),
120
+ /* @__PURE__ */ a("p", { className: "ds:sr-only", role: "status", "aria-live": "polite", children: s ? `${e("bishopScore.totalLabel")}: ${e("bishopScore.scoreOf", {
121
+ score: s.total,
122
+ max: f
123
+ })}. ${n(s.band)}.` : "" }),
124
+ s ? /* @__PURE__ */ a(m, { variant: "elevated", children: /* @__PURE__ */ c(m.Body, { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]", children: [
125
+ /* @__PURE__ */ c("dl", { className: "ds:grid ds:grid-cols-1 ds:gap-[var(--spacing-md)] ds:sm:grid-cols-2", children: [
126
+ /* @__PURE__ */ c("div", { className: "ds:flex ds:flex-col ds:items-start ds:gap-[var(--spacing-xs)]", children: [
127
+ /* @__PURE__ */ a("dt", { className: "type-label ds:text-muted-foreground", children: e("bishopScore.totalLabel") }),
128
+ /* @__PURE__ */ a("dd", { className: "type-metric ds:text-foreground", children: e("bishopScore.scoreOf", {
129
+ score: s.total,
130
+ max: f
131
+ }) })
132
+ ] }),
133
+ /* @__PURE__ */ c("div", { className: "ds:flex ds:flex-col ds:items-end ds:gap-[var(--spacing-xs)] ds:text-end", children: [
134
+ /* @__PURE__ */ a("dt", { className: "type-label ds:text-muted-foreground", children: e("bishopScore.bandLabel") }),
135
+ /* @__PURE__ */ a("dd", { children: /* @__PURE__ */ a(T, { variant: V[s.band], size: "lg", children: n(s.band) }) })
136
+ ] })
137
+ ] }),
138
+ /* @__PURE__ */ a("p", { className: "type-body-sm ds:text-muted-foreground", children: e(`bishopScore.interpretation.${s.band}`) }),
139
+ t === "copy" || l ? /* @__PURE__ */ a(
140
+ A,
141
+ {
142
+ onInsert: l,
143
+ variant: t,
144
+ onCopy: i,
145
+ onError: d,
146
+ card: {
147
+ title: e("insert.title.bishop"),
148
+ icon: "activity",
149
+ highlight: n(s.band),
150
+ highlightToken: k[s.band],
151
+ brand: h,
152
+ fields: [
153
+ {
154
+ icon: "percent",
155
+ label: e("bishopScore.totalLabel"),
156
+ value: e("bishopScore.scoreOf", {
157
+ score: s.total,
158
+ max: f
159
+ })
160
+ },
161
+ {
162
+ icon: "tag",
163
+ label: e("bishopScore.bandLabel"),
164
+ value: n(s.band)
165
+ }
166
+ ]
167
+ }
168
+ }
169
+ ) : null
170
+ ] }) }) : /* @__PURE__ */ a("p", { className: "type-body ds:text-muted-foreground", children: e("bishopScore.empty") })
171
+ ]
172
+ }
173
+ );
174
+ }
175
+ );
176
+ z.displayName = "BishopScore";
177
+ export {
178
+ b as B,
179
+ f as a,
180
+ v as b,
181
+ z as c,
182
+ D as d,
183
+ M as e
184
+ };
185
+ //# sourceMappingURL=bishop-score-2MzAz8NE.js.map
@@ -8,7 +8,7 @@ import { F as D } from "./form-field-BOm9hK35.js";
8
8
  import { N as p } from "./number-input-Dj5L3pXK.js";
9
9
  import { C as M } from "./card-DPmk26CL.js";
10
10
  import { B as na } from "./badge-zsf5i5bH.js";
11
- import { B as ra, I as sa, b as oa } from "./insert-result-C5ABnzDl.js";
11
+ import { B as ra, I as sa, b as oa } from "./insert-result-DNdi_JYW.js";
12
12
  import { b as ca, e as ma, c as da, f as O, l as W, k as ua } from "./bmi-BxD-tFzU.js";
13
13
  const ga = la("ds:flex ds:flex-col ds:gap-[var(--spacing-lg)]", {
14
14
  variants: {
@@ -255,4 +255,4 @@ pa.displayName = "BmiCalculator";
255
255
  export {
256
256
  pa as B
257
257
  };
258
- //# sourceMappingURL=bmi-calculator-CQqXTVNL.js.map
258
+ //# sourceMappingURL=bmi-calculator-DdylQzT6.js.map