@alfadocs/ui-kit 1.66.0 → 1.68.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 (305) hide show
  1. package/dist/_chunks/{address-fields-CJtu7LQU.js → address-fields-BUPRs3n-.js} +3 -3
  2. package/dist/_chunks/{agenda-card-DR9gDdKp.js → agenda-card-BDuvreCe.js} +2 -2
  3. package/dist/_chunks/{agenda-tray-DGB1Zup-.js → agenda-tray-CfwylhWf.js} +3 -3
  4. package/dist/_chunks/ai-credits-exhausted-notice-Bg8NpW2K.js +287 -0
  5. package/dist/_chunks/ai-credits-exhausted-notice.agent-DgTSTgez.js +43 -0
  6. package/dist/_chunks/ai-credits-notice-DQ-r3iQU.js +191 -0
  7. package/dist/_chunks/{ai-permission-notice-DpRmZ9Q3.js → ai-permission-notice-C00i6VhY.js} +2 -2
  8. package/dist/_chunks/{ai-prompt-input-DSGSe4LH.js → ai-prompt-input-DzgyoKyk.js} +141 -139
  9. package/dist/_chunks/{alert-DdDpOi-P.js → alert-9kEwDza3.js} +122 -111
  10. package/dist/_chunks/{alia-sidebar-qe0quZkB.js → alia-sidebar-B06ZSOaF.js} +3 -3
  11. package/dist/_chunks/{anamnesis-summary-card-CMzBLTiN.js → anamnesis-summary-card-DQ3iE1gD.js} +2 -2
  12. package/dist/_chunks/{anamnesis-summary-rows-BIfw890v.js → anamnesis-summary-rows-CNK0fIJk.js} +392 -388
  13. package/dist/_chunks/{appointment-card-CL32sux-.js → appointment-card-5JMWi9_f.js} +2 -2
  14. package/dist/_chunks/{appointment-peek-B5mcDcXt.js → appointment-peek-D5XCfYKu.js} +2 -2
  15. package/dist/_chunks/{appointment-timeline-CCqjORFb.js → appointment-timeline-VFP6HoXT.js} +4 -4
  16. package/dist/_chunks/{appointment-tray-qtpJt8e0.js → appointment-tray-B3PDER3I.js} +3 -3
  17. package/dist/_chunks/{audio-recorder-DR-u1qbl.js → audio-recorder-4Ll0pwYK.js} +3 -3
  18. package/dist/_chunks/{auth-form-parts-Cmb41LSQ.js → auth-form-parts-B40zvD-a.js} +2 -2
  19. package/dist/_chunks/avatar-BPiPL7ND.js +199 -0
  20. package/dist/_chunks/{balance-badge-cell-DZNthHO1.js → balance-badge-cell-BG3DMly4.js} +4 -4
  21. package/dist/_chunks/{bishop-score-CaNTrikJ.js → bishop-score-Df8nF1qg.js} +2 -2
  22. package/dist/_chunks/{booking-DkjatiXc.js → booking-B1pDbERi.js} +377 -335
  23. package/dist/_chunks/{calendar-BhN-jisv.js → calendar-BvOM8rG3.js} +2 -2
  24. package/dist/_chunks/{calendar-workspace-Cp8yTZ1g.js → calendar-workspace-CYK1M83j.js} +19 -19
  25. package/dist/_chunks/{chat-message-fRLZ95O5.js → chat-message-Be-9vIIQ.js} +2 -2
  26. package/dist/_chunks/{clinical-note-card-BnFTIs6x.js → clinical-note-card-Caidqcwa.js} +2 -2
  27. package/dist/_chunks/{color-picker-BsggJovx.js → color-picker-AcaWuKah.js} +99 -95
  28. package/dist/_chunks/{combobox-U5yfO6o0.js → combobox-vF9O-QoG.js} +92 -83
  29. package/dist/_chunks/{contact-profile-card-C4-OCshj.js → contact-profile-card-CAwwOqHl.js} +40 -40
  30. package/dist/_chunks/{control-room-rail-DUerqHeo.js → control-room-rail-BB6rCDWI.js} +3 -3
  31. package/dist/_chunks/{country-select-DF5Bd_mn.js → country-select-CSE2Zm_s.js} +2 -2
  32. package/dist/_chunks/dashboard-grid-7JzaiKnk.js +1487 -0
  33. package/dist/_chunks/{data-table-COoCQ4n_.js → data-table-Cty4-Jht.js} +3 -3
  34. package/dist/_chunks/{dependent-selector-DBr1AhLg.js → dependent-selector-C4kOgO8b.js} +2 -2
  35. package/dist/_chunks/{document-preview-B1dQm292.js → document-preview-513f3iPn.js} +4 -4
  36. package/dist/_chunks/{document-scanner-CVPVLK7z.js → document-scanner-Bd3wbzpI.js} +2 -2
  37. package/dist/_chunks/{editable-description-ChGNdYY8.js → editable-description-DnAFi360.js} +2 -2
  38. package/dist/_chunks/{entity-summary-BQ9_KA8S.js → entity-summary-C2B8yNmc.js} +4 -4
  39. package/dist/_chunks/{error-summary-DrUfuKu1.js → error-summary-mGxIyDAY.js} +2 -2
  40. package/dist/_chunks/{face-scheme-DAD-mXzM.js → face-scheme-CSJdRNad.js} +248 -244
  41. package/dist/_chunks/{file-manager-RiV7-OEE.js → file-manager-D4cPnRhL.js} +3 -3
  42. package/dist/_chunks/{forgot-password-form-CgZkEvZy.js → forgot-password-form-Dqi7R-NL.js} +4 -4
  43. package/dist/_chunks/format-number-DdzqwMs1.js +13 -0
  44. package/dist/_chunks/{freemium-paywall-DKJHRFpp.js → freemium-paywall-C73C8Rgd.js} +2 -2
  45. package/dist/_chunks/{gestational-age-calculator-CZYa2D6m.js → gestational-age-calculator-Du53p8MH.js} +2 -2
  46. package/dist/_chunks/{header-settings-BSH9Gk0J.js → header-settings-DlUbvAUx.js} +37 -36
  47. package/dist/_chunks/{heatmap-C1TeC7wT.js → heatmap-DbZIQg14.js} +4 -4
  48. package/dist/_chunks/help-me-write-templates-5WkUfvc_.js +687 -0
  49. package/dist/_chunks/hourglass-BEAzW1wE.js +26 -0
  50. package/dist/_chunks/{kit-extensions-DWs1UEXb.js → kit-extensions-CYvLL4ee.js} +3 -3
  51. package/dist/_chunks/length-token-DwMnGEYT.js +24 -0
  52. package/dist/_chunks/{link-cell-renderer-CtTsvfPY.js → link-cell-renderer-DtIsQWDO.js} +4 -4
  53. package/dist/_chunks/{login-dev-card-PnADNcI9.js → login-dev-card-vEL-o5wq.js} +3 -3
  54. package/dist/_chunks/{map-view-BuVfJMEa.js → map-view-CtohteZD.js} +300 -191
  55. package/dist/_chunks/{marketplace-app-shell-C-2e4eCD.js → marketplace-app-shell-CcLQ0Dn-.js} +4 -4
  56. package/dist/_chunks/{message-card-A3mJNqfy.js → message-card-C_ksqIYM.js} +2 -2
  57. package/dist/_chunks/{message-tray-Ft6vSr71.js → message-tray-DCoQ4GQb.js} +3 -3
  58. package/dist/_chunks/{multi-select-CMaAQQgb.js → multi-select-BOad3za9.js} +110 -98
  59. package/dist/_chunks/{muscle-scheme-YoN3rYXV.js → muscle-scheme-C66WlCxG.js} +2 -2
  60. package/dist/_chunks/{note-timeline-DDqNU46n.js → note-timeline-KzL52MmB.js} +2 -2
  61. package/dist/_chunks/{notes-panel-uEGIL7mi.js → notes-panel-BXN46XkF.js} +6 -6
  62. package/dist/_chunks/notice-group-DkYzKyAZ.js +291 -0
  63. package/dist/_chunks/{notification-tray-BR3seWA7.js → notification-tray-Cp18MW5b.js} +2 -2
  64. package/dist/_chunks/{operator-hero-3_RG4Dkj.js → operator-hero-6aAIQaFZ.js} +83 -66
  65. package/dist/_chunks/{optical-prescription-CxfMsbxi.js → optical-prescription-ulXnDbBe.js} +525 -509
  66. package/dist/_chunks/panel-header-CbtlTe85.js +190 -0
  67. package/dist/_chunks/{panel-subview-yP4qIbKS.js → panel-subview-BPU7220K.js} +2 -2
  68. package/dist/_chunks/{patient-details-4P1vA9Ls.js → patient-details-C4Dyo7Ck.js} +4 -4
  69. package/dist/_chunks/{patient-field-row-CBXhlfGD.js → patient-field-row-DROvUkFu.js} +155 -176
  70. package/dist/_chunks/{patient-search-DOnDUVsl.js → patient-search-BADdx3M1.js} +2 -2
  71. package/dist/_chunks/{patient-summary-card-CuDLo8MP.js → patient-summary-card-CAimxbuI.js} +4 -4
  72. package/dist/_chunks/{payment-automation-upsell-C8MEu0t6.js → payment-automation-upsell-CiwF5UrC.js} +2 -2
  73. package/dist/_chunks/{payment-form-C3dGY7v4.js → payment-form-PBuh8PIa.js} +2 -2
  74. package/dist/_chunks/{pdf-viewer-DJ9VN7cu.js → pdf-viewer-gAsNUsA8.js} +2 -2
  75. package/dist/_chunks/{periodontal-risk-chart-CPy7CNFe.js → periodontal-risk-chart-B7S9OmPC.js} +97 -89
  76. package/dist/_chunks/practice-profile-hero-qfrsFQI_.js +236 -0
  77. package/dist/_chunks/{practice-results-8h2Utpt3.js → practice-results-BzThnpnm.js} +328 -298
  78. package/dist/_chunks/{pregnancy-dating-B8wo4l_r.js → pregnancy-dating-EFcFUJkQ.js} +2 -2
  79. package/dist/_chunks/{privacy-mask-Ch7743uk.js → privacy-mask-CCz9zuIh.js} +2 -2
  80. package/dist/_chunks/{product-hub-panel-C_ZosrBt.js → product-hub-panel-YuFbNPlT.js} +2 -2
  81. package/dist/_chunks/progress-notice-DiHWZ8Ms.js +279 -0
  82. package/dist/_chunks/{province-select-Bd20Z9Br.js → province-select-CDjs5obD.js} +2 -2
  83. package/dist/_chunks/{radiograph-panel.agent-8Ewv8-d7.js → radiograph-panel.agent-4UllIoTQ.js} +2 -2
  84. package/dist/_chunks/{rating-C1Vrmpsi.js → rating-CGYpg5dj.js} +43 -44
  85. package/dist/_chunks/{registration-form-BQyT_kBX.js → registration-form-1B0PTDal.js} +4 -4
  86. package/dist/_chunks/{reviews-panel-AvsVgtJu.js → reviews-panel-CosDZyow.js} +29 -7
  87. package/dist/_chunks/{rich-text-editor-M2gT_E7f.js → rich-text-editor-56dSsyZI.js} +1653 -1743
  88. package/dist/_chunks/{select-k4gBdS8N.js → select-4S-eYZUf.js} +244 -214
  89. package/dist/_chunks/{sign-document-CY7xTXbm.js → sign-document-BiOTs1P4.js} +2 -2
  90. package/dist/_chunks/{signature-request-BMCHy2ZO.js → signature-request-DAmNj_uq.js} +5 -5
  91. package/dist/_chunks/skeleton-tTWJpvAq.js +415 -0
  92. package/dist/_chunks/{slot-grid-dj5f6R2w.js → slot-grid-D_gix9mJ.js} +2 -2
  93. package/dist/_chunks/{tabs-2x3L13jn.js → tabs-BTj-2qMZ.js} +2 -2
  94. package/dist/_chunks/{task-card-BS7Uqevr.js → task-card-Ci2XbLmq.js} +2 -2
  95. package/dist/_chunks/{task-editor-CifOznfq.js → task-editor-BomyxGoZ.js} +8 -8
  96. package/dist/_chunks/{task-tray-eQU4KJcA.js → task-tray-Dnc72nl-.js} +3 -3
  97. package/dist/_chunks/{tasks-panel-8nLwBw6P.js → tasks-panel-ATz9JDy8.js} +6 -6
  98. package/dist/_chunks/{theme-toggle-Ctb77x6O.js → theme-toggle-DT_Jn4DC.js} +147 -138
  99. package/dist/_chunks/{timeline-DEIuHrWz.js → timeline-wUuTDFY_.js} +2 -2
  100. package/dist/_chunks/{tool-rail-C-03rH2I.js → tool-rail-C-M3eVdY.js} +2 -2
  101. package/dist/_chunks/{transcript-panel-XudW5l6l.js → transcript-panel-CoHHpcFg.js} +2 -2
  102. package/dist/_chunks/{treatment-receipt-Cpm8tqQN.js → treatment-receipt-pFqWFyD_.js} +2 -2
  103. package/dist/_chunks/{unit-converter-BPZ0Ldkb.js → unit-converter-CIoTmCmP.js} +2 -2
  104. package/dist/_chunks/{use-appointment-details-read-B-FEWbQM.js → use-appointment-details-read-CUGfE0hV.js} +13 -13
  105. package/dist/_chunks/use-dismissed-CTOWqA0e.js +177 -0
  106. package/dist/_chunks/voice-control-panel-B8Lrk0C4.js +1148 -0
  107. package/dist/_chunks/{warning-stack-HYWAytZV.js → warning-stack-BhHUmRiD.js} +2 -2
  108. package/dist/_chunks/{workflow-map-C2B2qIr1.js → workflow-map-ln4_OG8A.js} +2 -2
  109. package/dist/agent-catalog.json +221 -6
  110. package/dist/agent-i18n/en.json +32 -5
  111. package/dist/components/_shared/format-number.d.ts +20 -0
  112. package/dist/components/_shared/length-token.d.ts +12 -0
  113. package/dist/components/_shared/option.d.ts +1 -0
  114. package/dist/components/address-fields/index.js +1 -1
  115. package/dist/components/agenda-card/index.js +1 -1
  116. package/dist/components/agenda-tray/index.js +1 -1
  117. package/dist/components/ai-credits-notice/ai-credits-exhausted-notice.agent.d.ts +4 -0
  118. package/dist/components/ai-credits-notice/ai-credits-exhausted-notice.d.ts +96 -0
  119. package/dist/components/ai-credits-notice/ai-credits-notice.d.ts +30 -4
  120. package/dist/components/ai-credits-notice/index.d.ts +3 -0
  121. package/dist/components/ai-credits-notice/index.js +10 -4
  122. package/dist/components/ai-permission-notice/index.js +1 -1
  123. package/dist/components/ai-prompt-input/index.js +1 -1
  124. package/dist/components/alert/alert.d.ts +26 -0
  125. package/dist/components/alert/index.js +1 -1
  126. package/dist/components/anamnesis-summary-card/index.js +1 -1
  127. package/dist/components/appointment-card/index.js +2 -2
  128. package/dist/components/appointment-details-panel/index.js +1 -1
  129. package/dist/components/appointment-peek/index.js +1 -1
  130. package/dist/components/appointment-timeline/index.js +1 -1
  131. package/dist/components/audio-recorder/index.js +1 -1
  132. package/dist/components/avatar/avatar.d.ts +2 -0
  133. package/dist/components/avatar/index.js +1 -1
  134. package/dist/components/bishop-score/index.js +1 -1
  135. package/dist/components/booking/index.js +1 -1
  136. package/dist/components/calendar/index.js +1 -1
  137. package/dist/components/chat-message/index.js +1 -1
  138. package/dist/components/clinical-note-card/index.js +1 -1
  139. package/dist/components/color-picker/index.js +1 -1
  140. package/dist/components/combobox/index.js +1 -1
  141. package/dist/components/contact-profile-card/index.js +1 -1
  142. package/dist/components/control-room-rail/index.js +1 -1
  143. package/dist/components/country-select/index.js +1 -1
  144. package/dist/components/dashboard-grid/dashboard-grid.d.ts +20 -1
  145. package/dist/components/dashboard-grid/index.js +1 -1
  146. package/dist/components/data-table/index.js +2 -2
  147. package/dist/components/dependent-selector/index.js +1 -1
  148. package/dist/components/document-preview/index.js +1 -1
  149. package/dist/components/document-scanner/index.js +1 -1
  150. package/dist/components/editable-description/index.js +1 -1
  151. package/dist/components/entity-summary/index.js +1 -1
  152. package/dist/components/error-summary/index.js +1 -1
  153. package/dist/components/face-scheme/index.js +1 -1
  154. package/dist/components/file-manager/index.js +1 -1
  155. package/dist/components/freemium-paywall/index.js +1 -1
  156. package/dist/components/gestational-age-calculator/index.js +1 -1
  157. package/dist/components/header-settings/index.js +1 -1
  158. package/dist/components/heatmap/index.js +1 -1
  159. package/dist/components/index.d.ts +4 -2
  160. package/dist/components/map-view/index.d.ts +1 -1
  161. package/dist/components/map-view/index.js +1 -1
  162. package/dist/components/map-view/map-view.d.ts +51 -0
  163. package/dist/components/message-card/index.js +1 -1
  164. package/dist/components/message-tray/index.js +1 -1
  165. package/dist/components/multi-select/index.js +1 -1
  166. package/dist/components/muscle-scheme/index.js +1 -1
  167. package/dist/components/note-timeline/index.js +1 -1
  168. package/dist/components/notes-panel/index.js +1 -1
  169. package/dist/components/notice-group/index.d.ts +3 -0
  170. package/dist/components/notice-group/index.js +6 -0
  171. package/dist/components/notice-group/notice-group.agent.d.ts +4 -0
  172. package/dist/components/notice-group/notice-group.d.ts +43 -0
  173. package/dist/components/notification-tray/index.js +1 -1
  174. package/dist/components/operator-hero/index.js +1 -1
  175. package/dist/components/optical-prescription/index.js +1 -1
  176. package/dist/components/optical-prescription/optical-prescription-data.d.ts +8 -8
  177. package/dist/components/panel-header/index.js +1 -1
  178. package/dist/components/panel-header/panel-header.d.ts +10 -0
  179. package/dist/components/panel-subview/index.js +1 -1
  180. package/dist/components/patient-details/index.js +1 -1
  181. package/dist/components/patient-search/index.js +1 -1
  182. package/dist/components/patient-summary-card/index.js +1 -1
  183. package/dist/components/patient-table/index.js +1 -1
  184. package/dist/components/payment-form/index.js +1 -1
  185. package/dist/components/pdf-viewer/index.js +1 -1
  186. package/dist/components/periodontal-risk-chart/index.js +1 -1
  187. package/dist/components/practice-profile-hero/index.js +1 -1
  188. package/dist/components/practice-profile-hero/practice-profile-hero.d.ts +4 -1
  189. package/dist/components/practice-results/index.js +1 -1
  190. package/dist/components/practice-results/practice-results.d.ts +10 -2
  191. package/dist/components/pregnancy-dating/index.js +1 -1
  192. package/dist/components/product-hub-tray/index.js +1 -1
  193. package/dist/components/progress-notice/index.d.ts +3 -0
  194. package/dist/components/progress-notice/index.js +6 -0
  195. package/dist/components/progress-notice/progress-notice.agent.d.ts +4 -0
  196. package/dist/components/progress-notice/progress-notice.d.ts +81 -0
  197. package/dist/components/province-select/index.js +1 -1
  198. package/dist/components/radiograph-panel/index.js +1 -1
  199. package/dist/components/rating/index.js +1 -1
  200. package/dist/components/reviews-panel/index.js +1 -1
  201. package/dist/components/rich-text-editor/index.js +2 -2
  202. package/dist/components/select/index.js +1 -1
  203. package/dist/components/select/select.d.ts +6 -0
  204. package/dist/components/sign-document/index.js +1 -1
  205. package/dist/components/skeleton/index.d.ts +1 -1
  206. package/dist/components/skeleton/index.js +1 -1
  207. package/dist/components/skeleton/skeleton.d.ts +41 -1
  208. package/dist/components/skeleton-scheme/index.js +1 -1
  209. package/dist/components/slot-grid/index.js +1 -1
  210. package/dist/components/tabs/index.js +1 -1
  211. package/dist/components/task-card/index.js +1 -1
  212. package/dist/components/task-editor/index.js +1 -1
  213. package/dist/components/task-tray/index.js +1 -1
  214. package/dist/components/tasks-panel/index.js +1 -1
  215. package/dist/components/theme-toggle/index.js +1 -1
  216. package/dist/components/timeline/index.js +1 -1
  217. package/dist/components/tool-rail/index.js +1 -1
  218. package/dist/components/transcript-panel/index.js +1 -1
  219. package/dist/components/treatment-receipt/index.js +1 -1
  220. package/dist/components/unit-converter/index.js +1 -1
  221. package/dist/components/voice-control-panel/index.d.ts +2 -1
  222. package/dist/components/voice-control-panel/index.js +1 -1
  223. package/dist/components/voice-control-panel/voice-control-panel.d.ts +43 -3
  224. package/dist/components/warning-stack/index.js +1 -1
  225. package/dist/components/workflow/index.js +1 -1
  226. package/dist/hooks/index.d.ts +1 -0
  227. package/dist/hooks/index.js +81 -76
  228. package/dist/hooks/use-dismissed.d.ts +58 -0
  229. package/dist/i18n/locales/ar.d.ts +49 -12
  230. package/dist/i18n/locales/ar.js +49 -12
  231. package/dist/i18n/locales/de.d.ts +49 -12
  232. package/dist/i18n/locales/de.js +49 -12
  233. package/dist/i18n/locales/el.d.ts +49 -12
  234. package/dist/i18n/locales/el.js +49 -12
  235. package/dist/i18n/locales/en.d.ts +49 -12
  236. package/dist/i18n/locales/en.js +49 -12
  237. package/dist/i18n/locales/es.d.ts +49 -12
  238. package/dist/i18n/locales/es.js +49 -12
  239. package/dist/i18n/locales/fr.d.ts +49 -12
  240. package/dist/i18n/locales/fr.js +49 -12
  241. package/dist/i18n/locales/hi.d.ts +49 -12
  242. package/dist/i18n/locales/hi.js +49 -12
  243. package/dist/i18n/locales/it.d.ts +49 -12
  244. package/dist/i18n/locales/it.js +49 -12
  245. package/dist/i18n/locales/ja.d.ts +49 -12
  246. package/dist/i18n/locales/ja.js +49 -12
  247. package/dist/i18n/locales/nl.d.ts +49 -12
  248. package/dist/i18n/locales/nl.js +49 -12
  249. package/dist/i18n/locales/pl.d.ts +49 -12
  250. package/dist/i18n/locales/pl.js +49 -12
  251. package/dist/i18n/locales/pt.d.ts +49 -12
  252. package/dist/i18n/locales/pt.js +49 -12
  253. package/dist/i18n/locales/ro.d.ts +49 -12
  254. package/dist/i18n/locales/ro.js +49 -12
  255. package/dist/i18n/locales/ru.d.ts +49 -12
  256. package/dist/i18n/locales/ru.js +49 -12
  257. package/dist/i18n/locales/sq.d.ts +49 -12
  258. package/dist/i18n/locales/sq.js +49 -12
  259. package/dist/i18n/locales/sv.d.ts +49 -12
  260. package/dist/i18n/locales/sv.js +49 -12
  261. package/dist/i18n/locales/tr.d.ts +49 -12
  262. package/dist/i18n/locales/tr.js +49 -12
  263. package/dist/i18n/locales/zh.d.ts +49 -12
  264. package/dist/i18n/locales/zh.js +49 -12
  265. package/dist/index.js +1193 -1177
  266. package/dist/locales/ar.json +49 -12
  267. package/dist/locales/de.json +49 -12
  268. package/dist/locales/el.json +49 -12
  269. package/dist/locales/en.json +49 -12
  270. package/dist/locales/es.json +49 -12
  271. package/dist/locales/fr.json +49 -12
  272. package/dist/locales/hi.json +49 -12
  273. package/dist/locales/it.json +49 -12
  274. package/dist/locales/ja.json +49 -12
  275. package/dist/locales/nl.json +49 -12
  276. package/dist/locales/pl.json +49 -12
  277. package/dist/locales/pt.json +49 -12
  278. package/dist/locales/ro.json +49 -12
  279. package/dist/locales/ru.json +49 -12
  280. package/dist/locales/sq.json +49 -12
  281. package/dist/locales/sv.json +49 -12
  282. package/dist/locales/tr.json +49 -12
  283. package/dist/locales/zh.json +49 -12
  284. package/dist/patterns/alia-assistant/index.js +1 -1
  285. package/dist/patterns/anamnesis/index.js +1 -1
  286. package/dist/patterns/calendar/index.js +1 -1
  287. package/dist/patterns/forgot-password-form/index.js +1 -1
  288. package/dist/patterns/help-me-write-templates/help-me-write-templates.d.ts +6 -23
  289. package/dist/patterns/help-me-write-templates/index.js +8 -7
  290. package/dist/patterns/login-form/index.js +1 -1
  291. package/dist/patterns/marketplace-app-shell/index.js +1 -1
  292. package/dist/patterns/payment-automation-upsell/index.js +1 -1
  293. package/dist/patterns/registration-form/index.js +1 -1
  294. package/dist/patterns/signature-request/index.js +1 -1
  295. package/dist/tokens.css +1 -1
  296. package/package.json +9 -1
  297. package/dist/_chunks/ai-credits-notice-pK9BOmEz.js +0 -90
  298. package/dist/_chunks/ai-credits-notice.agent-C9L7orrP.js +0 -17
  299. package/dist/_chunks/avatar-WZY3eGE7.js +0 -123
  300. package/dist/_chunks/dashboard-grid-B2MB7SRS.js +0 -1428
  301. package/dist/_chunks/help-me-write-templates-DFmqnsAa.js +0 -747
  302. package/dist/_chunks/panel-header-BJkaUwnl.js +0 -128
  303. package/dist/_chunks/practice-profile-hero-Dfc0F60y.js +0 -193
  304. package/dist/_chunks/skeleton-B1KTdJ4N.js +0 -116
  305. package/dist/_chunks/voice-control-panel-C0BfY23Y.js +0 -1009
@@ -7,17 +7,17 @@ import { C as le } from "./card-BA4Ig_kn.js";
7
7
  import { C as Zt, b as Yt, a as Jt } from "./collapsible-DVPM46bq.js";
8
8
  import { E as Xe } from "./empty-state-pL1qum99.js";
9
9
  import { F as M } from "./form-field-Ani72sVY.js";
10
- import { M as ln } from "./multi-select-CMaAQQgb.js";
10
+ import { M as ln } from "./multi-select-BOad3za9.js";
11
11
  import { N as ga } from "./number-input-CVwI1ltI.js";
12
12
  import { R as ze } from "./radio-BZQs6_36.js";
13
13
  import { R as ma } from "./radio-group-ChIKyeSJ.js";
14
- import { S as Me } from "./select-k4gBdS8N.js";
15
- import { T as Q } from "./tabs-2x3L13jn.js";
14
+ import { S as Me } from "./select-4S-eYZUf.js";
15
+ import { T as Q } from "./tabs-BTj-2qMZ.js";
16
16
  import { T as na } from "./text-area-COMVJ1yE.js";
17
17
  import { S as te } from "./state-backed-text-input-Cgh4ms3p.js";
18
18
  import { T as Ze } from "./timestamp-DPLDWdxA.js";
19
19
  import { D as sn } from "./date-picker-KcoNNsM0.js";
20
- import { A as Ue } from "./alert-DdDpOi-P.js";
20
+ import { A as Ue } from "./alert-9kEwDza3.js";
21
21
  import { D as L } from "./description-list-Q8640NHu.js";
22
22
  import { c as Xt } from "./index-D2ZczOXr.js";
23
23
  import { S as dn } from "./sparkline-SnniCoCl.js";
@@ -28,29 +28,30 @@ import { C as Pa } from "./chevron-down-DWE7GSq9.js";
28
28
  import { D as X } from "./dropdown-menu-D1we7oAY.js";
29
29
  import { A as mn } from "./annotation-marker-D-M7y4R1.js";
30
30
  import { D as ee } from "./dialog-D6fkpRc4.js";
31
- import { S as pn } from "./share-2-B49jcW2I.js";
32
- import { F as gn } from "./file-text-5yv6r2ls.js";
33
- import { P as hn } from "./printer-rkK0T1gi.js";
34
- import { F as bn } from "./file-spreadsheet-DmwyfV4O.js";
35
- import { D as fn } from "./download-CfYKJO_j.js";
36
- import { C as yn } from "./checkbox-BjDv-r3o.js";
37
- import { T as vn } from "./text-input-CaG9ApoE.js";
38
- import { T as kn } from "./time-picker-DVfyAR81.js";
39
- import { H as wn } from "./heart-pulse-BCppJyN2.js";
31
+ import { n as pn, c as gn } from "./intl-locale-FWh-Y5_3.js";
32
+ import { S as hn } from "./share-2-B49jcW2I.js";
33
+ import { F as bn } from "./file-text-5yv6r2ls.js";
34
+ import { P as fn } from "./printer-rkK0T1gi.js";
35
+ import { F as yn } from "./file-spreadsheet-DmwyfV4O.js";
36
+ import { D as vn } from "./download-CfYKJO_j.js";
37
+ import { C as kn } from "./checkbox-BjDv-r3o.js";
38
+ import { T as wn } from "./text-input-CaG9ApoE.js";
39
+ import { T as zn } from "./time-picker-DVfyAR81.js";
40
+ import { H as xn } from "./heart-pulse-BCppJyN2.js";
40
41
  import { P as ke } from "./popover-4ZVtH_At.js";
41
42
  import { P as ua } from "./pencil-B1sKKyuT.js";
42
- import { useTranslation as zn } from "react-i18next";
43
- import { e as xn, b as An } from "./bmi-BxD-tFzU.js";
43
+ import { useTranslation as An } from "react-i18next";
44
+ import { e as Nn, b as Tn } from "./bmi-BxD-tFzU.js";
44
45
  import { P as ia } from "./plus-DzMQ_c6b.js";
45
- import { T as Nn } from "./trash-2-uumy3fy1.js";
46
- import { A as Tn, b as Cn, c as Sn, a as _n } from "./accordion-Ch3xp0mX.js";
47
- import { P as Dn } from "./progress-D_g_Sl2g.js";
46
+ import { T as Cn } from "./trash-2-uumy3fy1.js";
47
+ import { A as Sn, b as _n, c as Dn, a as jn } from "./accordion-Ch3xp0mX.js";
48
+ import { P as Pn } from "./progress-D_g_Sl2g.js";
48
49
  import { c as ot } from "./createLucideIcon-DhHxpK9K.js";
49
50
  import { I as xa } from "./icon-button-group-NIHji7_y.js";
50
51
  import { L as aa } from "./list-CNnn7DOD.js";
51
52
  import { S as rt } from "./switch-D--x7n6h.js";
52
- import { G as jn } from "./grip-vertical-onSb1JXO.js";
53
- import { L as Pn } from "./lock-ClAFG1gy.js";
53
+ import { G as En } from "./grip-vertical-onSb1JXO.js";
54
+ import { L as Ln } from "./lock-ClAFG1gy.js";
54
55
  import { N as Ct } from "./notebook-pen-CO7HoM-W.js";
55
56
  /**
56
57
  * @license lucide-react v1.22.0 - ISC
@@ -58,31 +59,31 @@ import { N as Ct } from "./notebook-pen-CO7HoM-W.js";
58
59
  * This source code is licensed under the ISC license.
59
60
  * See the LICENSE file in the root directory of this source tree.
60
61
  */
61
- const En = [
62
+ const Fn = [
62
63
  ["rect", { width: "20", height: "5", x: "2", y: "3", rx: "1", key: "1wp1u1" }],
63
64
  ["path", { d: "M4 8v11a2 2 0 0 0 2 2h2", key: "tvwodi" }],
64
65
  ["path", { d: "M20 8v11a2 2 0 0 1-2 2h-2", key: "1gkqxj" }],
65
66
  ["path", { d: "m9 15 3-3 3 3", key: "1pd0qc" }],
66
67
  ["path", { d: "M12 12v9", key: "192myk" }]
67
- ], Aa = ot("archive-restore", En);
68
+ ], Aa = ot("archive-restore", Fn);
68
69
  /**
69
70
  * @license lucide-react v1.22.0 - ISC
70
71
  *
71
72
  * This source code is licensed under the ISC license.
72
73
  * See the LICENSE file in the root directory of this source tree.
73
74
  */
74
- const Ln = [
75
+ const In = [
75
76
  ["rect", { width: "20", height: "5", x: "2", y: "3", rx: "1", key: "1wp1u1" }],
76
77
  ["path", { d: "M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8", key: "1s80jp" }],
77
78
  ["path", { d: "M10 12h4", key: "a56b0p" }]
78
- ], Na = ot("archive", Ln);
79
+ ], Na = ot("archive", In);
79
80
  /**
80
81
  * @license lucide-react v1.22.0 - ISC
81
82
  *
82
83
  * This source code is licensed under the ISC license.
83
84
  * See the LICENSE file in the root directory of this source tree.
84
85
  */
85
- const Fn = [
86
+ const Rn = [
86
87
  [
87
88
  "path",
88
89
  {
@@ -91,7 +92,7 @@ const Fn = [
91
92
  }
92
93
  ],
93
94
  ["path", { d: "M6 12h16", key: "s4cdu5" }]
94
- ], In = ot("send-horizontal", Fn), Rn = [
95
+ ], On = ot("send-horizontal", Rn), Mn = [
95
96
  {
96
97
  key: "weight",
97
98
  goal: !0,
@@ -150,7 +151,7 @@ const Fn = [
150
151
  betterDirection: "up",
151
152
  precision: 1
152
153
  }
153
- ], On = [
154
+ ], Vn = [
154
155
  {
155
156
  key: "fastingGlucose",
156
157
  group: "lab",
@@ -247,7 +248,7 @@ const Fn = [
247
248
  betterDirection: "toRange",
248
249
  precision: 2
249
250
  }
250
- ], Mn = [
251
+ ], Hn = [
251
252
  // No reference range, deliberately: 1,600 kcal/d is a success for one
252
253
  // patient and starvation for another, so the only honest reference is the
253
254
  // patient's own target and `toRange` reads every change as neutral.
@@ -273,9 +274,9 @@ const Fn = [
273
274
  precision: 0
274
275
  }
275
276
  ], lt = [
276
- ...Rn,
277
277
  ...Mn,
278
- ...On
278
+ ...Hn,
279
+ ...Vn
279
280
  ], St = Object.fromEntries(lt.map((e) => [e.key, e])), Ca = [
280
281
  { code: "E66" },
281
282
  { code: "E66.0", parentCode: "E66" },
@@ -291,7 +292,7 @@ const Fn = [
291
292
  { code: "E55" }
292
293
  ];
293
294
  Object.fromEntries(Ca.map((e) => [e.code, e]));
294
- const Vn = (e) => `anamnesis.pathology.${e.replace(/\./g, "_")}`;
295
+ const Bn = (e) => `anamnesis.pathology.${e.replace(/\./g, "_")}`;
295
296
  Ca.filter(
296
297
  (e) => !Ca.some((a) => a.parentCode === e.code)
297
298
  ).map((e) => e.code);
@@ -426,20 +427,20 @@ const ti = [
426
427
  ti.flatMap(
427
428
  (e) => e.fields.map((a) => a.key)
428
429
  );
429
- const Hn = /* @__PURE__ */ new Set([
430
+ const qn = /* @__PURE__ */ new Set([
430
431
  "weight",
431
432
  "height",
432
433
  "bmi"
433
434
  ]);
434
- function Bn(e) {
435
- return Hn.has(e);
435
+ function Kn(e) {
436
+ return qn.has(e);
436
437
  }
437
438
  function ii(e) {
438
439
  var n;
439
440
  const a = typeof e == "string" ? St[e] : e;
440
441
  return a ? (a.targetable ?? ((n = St[a.key]) == null ? void 0 : n.targetable) ?? !1) || a.goal === !0 : !1;
441
442
  }
442
- const Js = new Set(
443
+ const ad = new Set(
443
444
  lt.filter((e) => ii(e)).map(
444
445
  (e) => e.key
445
446
  )
@@ -464,7 +465,7 @@ function Sa(e) {
464
465
  return e.enabled !== !1;
465
466
  }
466
467
  function ni(e) {
467
- const a = Bn(e.key);
468
+ const a = Kn(e.key);
468
469
  return e.locked === a ? e : { ...e, locked: a };
469
470
  }
470
471
  function oi(e) {
@@ -483,7 +484,7 @@ function De(e, a) {
483
484
  const t = ra(e).parameters.map(ni), n = a ? t.filter((o) => o.group === a) : t;
484
485
  return oi(n);
485
486
  }
486
- function qn(e) {
487
+ function Gn(e) {
487
488
  return { ...e, fields: Ye(e.fields) };
488
489
  }
489
490
  function st(e) {
@@ -493,7 +494,7 @@ function st(e) {
493
494
  })).filter((a) => a.fields.length > 0);
494
495
  }
495
496
  function We(e) {
496
- return Ye(ra(e).intakeSections).map(qn);
497
+ return Ye(ra(e).intakeSections).map(Gn);
497
498
  }
498
499
  function ri(e) {
499
500
  return Ye(ra(e).pathologies.filter(Sa));
@@ -506,7 +507,7 @@ function dt(e) {
506
507
  et(e).map((a) => [a.code, a])
507
508
  );
508
509
  }
509
- function Kn(e) {
510
+ function Un(e) {
510
511
  const a = ri(e);
511
512
  return a.filter((t) => !a.some((n) => n.parentCode === t.code)).map((t) => t.code);
512
513
  }
@@ -528,35 +529,35 @@ const ct = {
528
529
  day: "numeric",
529
530
  hour: "2-digit",
530
531
  minute: "2-digit"
531
- }, Gn = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}/, Un = /^\d{4}-\d{2}-\d{2}/;
532
+ }, Wn = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}/, $n = /^\d{4}-\d{2}-\d{2}/;
532
533
  function Je(e) {
533
- return e != null && Gn.test(e);
534
+ return e != null && Wn.test(e);
534
535
  }
535
536
  function _t(e) {
536
- return Un.test(e) ? e.slice(0, 10) : e;
537
+ return $n.test(e) ? e.slice(0, 10) : e;
537
538
  }
538
539
  function ha(e) {
539
540
  return Je(e) ? li : Ea;
540
541
  }
541
- function Wn(e, a) {
542
- return xn(e ?? null, a ?? null);
542
+ function Qn(e, a) {
543
+ return Nn(e ?? null, a ?? null);
543
544
  }
544
545
  function Be(e) {
545
546
  return e != null && !Number.isNaN(new Date(e).getTime());
546
547
  }
547
- function $n(e, a) {
548
+ function Zn(e, a) {
548
549
  if (!Be(e) || !Be(a)) return null;
549
550
  const t = new Date(_t(e)), n = new Date(_t(a));
550
551
  let o = n.getUTCFullYear() - t.getUTCFullYear();
551
552
  const r = n.getUTCMonth() - t.getUTCMonth();
552
553
  return (r < 0 || r === 0 && n.getUTCDate() < t.getUTCDate()) && (o -= 1), o < 0 ? null : o;
553
554
  }
554
- const Qn = /* @__PURE__ */ new Set([
555
+ const Yn = /* @__PURE__ */ new Set([
555
556
  "energy",
556
557
  "protein"
557
558
  ]);
558
559
  function si(e) {
559
- return e.key === "bmi" ? "computed" : e.key in ct ? "anthropometric" : Qn.has(e.key) ? "dietary" : "lab";
560
+ return e.key === "bmi" ? "computed" : e.key in ct ? "anthropometric" : Yn.has(e.key) ? "dietary" : "lab";
560
561
  }
561
562
  function da(e) {
562
563
  return e != null && Number.isFinite(e) ? e : null;
@@ -565,7 +566,7 @@ function je(e, a) {
565
566
  var t;
566
567
  switch (si(a)) {
567
568
  case "computed":
568
- return Wn(
569
+ return Qn(
569
570
  da(e.anthropometrics.weightKg),
570
571
  da(e.anthropometrics.heightCm)
571
572
  );
@@ -581,7 +582,7 @@ function je(e, a) {
581
582
  }
582
583
  }
583
584
  }
584
- function Zn(e, a) {
585
+ function Jn(e, a) {
585
586
  for (let t = e.length - 1; t >= 0; t -= 1) {
586
587
  const n = e[t], o = je(n, a);
587
588
  if (o != null) return { value: o, visit: n };
@@ -673,7 +674,7 @@ function ci(e, a) {
673
674
  };
674
675
  });
675
676
  }
676
- function Yn(e, a) {
677
+ function Xn(e, a) {
677
678
  const t = 10 ** a;
678
679
  return Math.round(e * t) / t;
679
680
  }
@@ -681,7 +682,7 @@ function Fa(e) {
681
682
  return e.visits[e.visits.length - 1];
682
683
  }
683
684
  const la = "—", Et = /* @__PURE__ */ new Map();
684
- function Jn(e, a) {
685
+ function eo(e, a) {
685
686
  const t = `${e ?? ""}|${a}`;
686
687
  let n = Et.get(t);
687
688
  return n || (n = new Intl.NumberFormat(e, {
@@ -691,21 +692,21 @@ function Jn(e, a) {
691
692
  }), Et.set(t, n)), n;
692
693
  }
693
694
  function Pe(e, a = 1, t) {
694
- return e == null || !Number.isFinite(e) ? la : Jn(t, a).format(e);
695
+ return e == null || !Number.isFinite(e) ? la : eo(t, a).format(e);
695
696
  }
696
- function Xn(e, a) {
697
+ function ao(e, a) {
697
698
  return Be(e) ? new Intl.DateTimeFormat(a, Ea).format(
698
699
  new Date(e)
699
700
  ) : la;
700
701
  }
701
- function eo(e, a) {
702
+ function to(e, a) {
702
703
  return Be(e) ? new Intl.DateTimeFormat(a, li).format(
703
704
  new Date(e)
704
705
  ) : la;
705
706
  }
706
- function ao(e, a = 1, t) {
707
+ function io(e, a = 1, t) {
707
708
  if (!Number.isFinite(e)) return la;
708
- const n = Yn(e, a);
709
+ const n = Xn(e, a);
709
710
  return n === 0 ? "0" : `${n > 0 ? "+" : "−"}${Pe(Math.abs(n), a, t)}`;
710
711
  }
711
712
  function sa(e, a) {
@@ -718,21 +719,21 @@ function Ee(e) {
718
719
  }
719
720
  function be(e, a) {
720
721
  const t = Ee(a);
721
- return Je(e) ? eo(e, t) : Xn(e, t);
722
+ return Je(e) ? to(e, t) : ao(e, t);
722
723
  }
723
724
  function ui(e) {
724
725
  const [a, t, n] = e.slice(0, 10).split("-").map(Number);
725
726
  if (!(!a || !t || !n))
726
727
  return new Date(a, t - 1, n);
727
728
  }
728
- function to(e) {
729
+ function no(e) {
729
730
  return Je(e) ? e.slice(10, 16) : "";
730
731
  }
731
- function io(e) {
732
+ function oo(e) {
732
733
  const a = (t) => String(t).padStart(2, "0");
733
734
  return `${e.getFullYear()}-${a(e.getMonth() + 1)}-${a(e.getDate())}`;
734
735
  }
735
- function no(e, a, t, n = !1) {
736
+ function ro(e, a, t, n = !1) {
736
737
  const o = t("anamnesis.compare.visitOption", {
737
738
  index: a + 1,
738
739
  visitType: t(`anamnesis.visitType.${e.visitType}`),
@@ -743,13 +744,13 @@ function no(e, a, t, n = !1) {
743
744
  }) : o;
744
745
  return n ? t("anamnesis.window.optionHasNote", { label: r }) : r;
745
746
  }
746
- function oo(e, a, t) {
747
- const n = $n(e, a);
747
+ function lo(e, a, t) {
748
+ const n = Zn(e, a);
748
749
  return n == null ? la : t("anamnesis.header.years", { age: n });
749
750
  }
750
751
  function Ia(e, a) {
751
752
  const t = Fa(e);
752
- return t ? oo(e.patient.dateOfBirthIso, t.dateIso, a) : la;
753
+ return t ? lo(e.patient.dateOfBirthIso, t.dateIso, a) : la;
753
754
  }
754
755
  function ya(e) {
755
756
  const a = e == null ? void 0 : e.trim();
@@ -765,7 +766,7 @@ function Te(e, a) {
765
766
  function ge(e, a) {
766
767
  return ya(e.label) ?? a(`anamnesis.field.${e.key}.label`, { defaultValue: e.key });
767
768
  }
768
- function ro(e, a) {
769
+ function so(e, a) {
769
770
  const t = ge(e, a);
770
771
  return e.unit ? `${t} (${e.unit})` : t;
771
772
  }
@@ -777,7 +778,7 @@ function ye(e, a) {
777
778
  return ya(e.label) ?? a(`anamnesis.section.${e.key}`, { defaultValue: e.key });
778
779
  }
779
780
  function ut(e, a, t) {
780
- return ya(t == null ? void 0 : t.label) ?? a(Vn(e), { defaultValue: e });
781
+ return ya(t == null ? void 0 : t.label) ?? a(Bn(e), { defaultValue: e });
781
782
  }
782
783
  function Se(e, a, t) {
783
784
  const n = ut(e, a, t);
@@ -837,7 +838,7 @@ function Ra(e, a, t) {
837
838
  return [e.time, e.description].filter(Boolean).join(" · ") || "—";
838
839
  }
839
840
  }
840
- const lo = [
841
+ const co = [
841
842
  { id: "reason", kind: "prose", fieldKeys: ["reasonForVisit"] },
842
843
  {
843
844
  id: "history",
@@ -861,12 +862,12 @@ const lo = [
861
862
  ]
862
863
  }
863
864
  ];
864
- function so(e, a) {
865
+ function uo(e, a) {
865
866
  return e.flatMap(
866
867
  (t) => t.fields.filter((n) => sa(n, a))
867
868
  );
868
869
  }
869
- function co(e, a, t) {
870
+ function mo(e, a, t) {
870
871
  const n = a(e.key);
871
872
  return !n || !Ve(n) ? null : {
872
873
  key: e.key,
@@ -874,7 +875,7 @@ function co(e, a, t) {
874
875
  value: Ra(n, e, t)
875
876
  };
876
877
  }
877
- function uo(e, a, t) {
878
+ function po(e, a, t) {
878
879
  var o;
879
880
  const n = [];
880
881
  for (const r of e) {
@@ -887,12 +888,12 @@ function uo(e, a, t) {
887
888
  }
888
889
  return n;
889
890
  }
890
- function mo(e, a, t, n) {
891
- const o = so(e, t), r = new Map(o.map((d) => [d.key, d])), l = [];
892
- for (const d of lo) {
893
- const u = d.kind === "flags" ? uo(o, a, n) : d.fieldKeys.map((g) => {
891
+ function go(e, a, t, n) {
892
+ const o = uo(e, t), r = new Map(o.map((d) => [d.key, d])), l = [];
893
+ for (const d of co) {
894
+ const u = d.kind === "flags" ? po(o, a, n) : d.fieldKeys.map((g) => {
894
895
  const b = r.get(g);
895
- return b ? co(b, a, n) : null;
896
+ return b ? mo(b, a, n) : null;
896
897
  }).filter((g) => g != null);
897
898
  u.length > 0 && l.push({ id: d.id, kind: d.kind, items: u });
898
899
  }
@@ -917,25 +918,25 @@ function pi(e, a, t, n) {
917
918
  }
918
919
  return o;
919
920
  }
920
- const po = 'input:not([tabindex="-1"]), textarea:not([tabindex="-1"]), select:not([tabindex="-1"]), button:not([tabindex="-1"]), [tabindex]:not([tabindex="-1"])';
921
- function go(e, a) {
921
+ const ho = 'input:not([tabindex="-1"]), textarea:not([tabindex="-1"]), select:not([tabindex="-1"]), button:not([tabindex="-1"]), [tabindex]:not([tabindex="-1"])';
922
+ function bo(e, a) {
922
923
  const t = e == null ? void 0 : e.querySelector(
923
924
  `[data-testid="anamnesis-field-${a}"]`
924
- ), n = t == null ? void 0 : t.querySelector(po);
925
+ ), n = t == null ? void 0 : t.querySelector(ho);
925
926
  return n ? (n.focus(), !0) : !1;
926
927
  }
927
- const ho = 4;
928
+ const fo = 4;
928
929
  function gi() {
929
930
  const e = _e(null), [a, t] = I(null);
930
931
  ba(() => {
931
932
  if (a == null) return;
932
933
  let o = 0, r = 0;
933
934
  const l = () => {
934
- if (go(e.current, a)) {
935
+ if (bo(e.current, a)) {
935
936
  t(null);
936
937
  return;
937
938
  }
938
- if (o += 1, o >= ho) {
939
+ if (o += 1, o >= fo) {
939
940
  t(null);
940
941
  return;
941
942
  }
@@ -979,7 +980,7 @@ function hi({
979
980
  }
980
981
  );
981
982
  }
982
- function bo({ group: e, t: a }) {
983
+ function yo({ group: e, t: a }) {
983
984
  return /* @__PURE__ */ c(
984
985
  "div",
985
986
  {
@@ -1004,7 +1005,7 @@ function bo({ group: e, t: a }) {
1004
1005
  }
1005
1006
  );
1006
1007
  }
1007
- function fo({ digest: e, t: a }) {
1008
+ function vo({ digest: e, t: a }) {
1008
1009
  return e.groups.length === 0 ? /* @__PURE__ */ i(
1009
1010
  Xe,
1010
1011
  {
@@ -1018,11 +1019,11 @@ function fo({ digest: e, t: a }) {
1018
1019
  {
1019
1020
  "data-testid": "anamnesis-digest-panel",
1020
1021
  className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]",
1021
- children: e.groups.map((t) => /* @__PURE__ */ i(bo, { group: t, t: a }, t.id))
1022
+ children: e.groups.map((t) => /* @__PURE__ */ i(yo, { group: t, t: a }, t.id))
1022
1023
  }
1023
1024
  );
1024
1025
  }
1025
- const yo = Xt(
1026
+ const ko = Xt(
1026
1027
  "type-meta ds:inline-flex ds:items-center ds:gap-[var(--spacing-2xs)] ds:tabular-nums",
1027
1028
  {
1028
1029
  variants: {
@@ -1039,12 +1040,12 @@ const yo = Xt(
1039
1040
  );
1040
1041
  function mt({ delta: e, def: a, t }) {
1041
1042
  if (!e) return null;
1042
- const n = e.direction === "up" ? ei : e.direction === "down" ? ai : cn, o = `${ao(e.abs, a.precision ?? 1, Ee(t))}${a.unit ? ` ${a.unit}` : ""}`, r = e.valence === "good" ? t("anamnesis.delta.improved") : e.valence === "bad" ? t("anamnesis.delta.worsened") : t("anamnesis.delta.unchanged");
1043
+ const n = e.direction === "up" ? ei : e.direction === "down" ? ai : cn, o = `${io(e.abs, a.precision ?? 1, Ee(t))}${a.unit ? ` ${a.unit}` : ""}`, r = e.valence === "good" ? t("anamnesis.delta.improved") : e.valence === "bad" ? t("anamnesis.delta.worsened") : t("anamnesis.delta.unchanged");
1043
1044
  return /* @__PURE__ */ c(
1044
1045
  "span",
1045
1046
  {
1046
1047
  role: "img",
1047
- className: yo({ valence: e.valence }),
1048
+ className: ko({ valence: e.valence }),
1048
1049
  "aria-label": t("anamnesis.delta.aria", {
1049
1050
  valence: r,
1050
1051
  change: o
@@ -1078,12 +1079,12 @@ function pt({
1078
1079
  }
1079
1080
  );
1080
1081
  }
1081
- const vo = {
1082
+ const wo = {
1082
1083
  good: "var(--success)",
1083
1084
  bad: "var(--error)",
1084
1085
  neutral: "var(--muted-foreground)"
1085
1086
  };
1086
- function ko({
1087
+ function zo({
1087
1088
  series: e,
1088
1089
  def: a,
1089
1090
  t,
@@ -1100,7 +1101,7 @@ function ko({
1100
1101
  variant: "line",
1101
1102
  size: "sm",
1102
1103
  width: "100%",
1103
- color: vo[s],
1104
+ color: wo[s],
1104
1105
  annotations: n,
1105
1106
  onAnnotationSelect: o,
1106
1107
  label: t("anamnesis.grid.trendLabel", {
@@ -1141,7 +1142,7 @@ function yi({
1141
1142
  r.key
1142
1143
  )) });
1143
1144
  }
1144
- function wo({
1145
+ function xo({
1145
1146
  intake: e,
1146
1147
  sections: a,
1147
1148
  sex: t,
@@ -1167,7 +1168,7 @@ function wo({
1167
1168
  jumpKey: "anamnesis.summary.jump"
1168
1169
  }
1169
1170
  ) : null,
1170
- /* @__PURE__ */ i(fo, { digest: n, t: l }),
1171
+ /* @__PURE__ */ i(vo, { digest: n, t: l }),
1171
1172
  /* @__PURE__ */ c(Zt, { variant: "default", children: [
1172
1173
  /* @__PURE__ */ i("h2", { className: "type-title-section ds:m-0 ds:text-[color:var(--foreground)]", children: /* @__PURE__ */ c(
1173
1174
  Yt,
@@ -1213,7 +1214,7 @@ function wo({
1213
1214
  }
1214
1215
  );
1215
1216
  }
1216
- const zo = [
1217
+ const Ao = [
1217
1218
  "visitMeta",
1218
1219
  "intakeGaps",
1219
1220
  "anthropometrics",
@@ -1229,13 +1230,13 @@ const zo = [
1229
1230
  function Ha(e) {
1230
1231
  return (e ?? "").trim() !== "";
1231
1232
  }
1232
- function xo(e) {
1233
+ function No(e) {
1233
1234
  const a = e.oncological;
1234
1235
  if (!a) return 0;
1235
1236
  let t = 0;
1236
1237
  return Ha(a.tumourType) && (t += 1), Ha(a.stage) && (t += 1), a.metastases && a.metastases.present !== "unknown" && (t += 1), Ha(a.treatmentStatus) && (t += 1), t;
1237
1238
  }
1238
- function Ao(e, a) {
1239
+ function To(e, a) {
1239
1240
  const t = new Map(e.labs.map((o) => [o.parameterKey, o.value])), n = [];
1240
1241
  for (const o of a) {
1241
1242
  const r = t.get(o.key);
@@ -1243,23 +1244,23 @@ function Ao(e, a) {
1243
1244
  }
1244
1245
  return n;
1245
1246
  }
1246
- function No(e) {
1247
+ function Co(e) {
1247
1248
  const a = e.annualProgramme;
1248
1249
  return a && (a.proposed || a.accepted) ? 1 : 0;
1249
1250
  }
1250
1251
  function Lt(e, a = []) {
1251
- const t = e ? Ao(e, a) : [], n = (e == null ? void 0 : e.visitType) === "first", o = {
1252
- oncological: e ? xo(e) : 0,
1252
+ const t = e ? To(e, a) : [], n = (e == null ? void 0 : e.visitType) === "first", o = {
1253
+ oncological: e ? No(e) : 0,
1253
1254
  labs: t.length,
1254
1255
  fmd: e ? e.fmdCycles.length : 0,
1255
- annual: e ? No(e) : 0
1256
+ annual: e ? Co(e) : 0
1256
1257
  }, r = {
1257
1258
  oncological: 0,
1258
1259
  labs: t.filter(({ def: s, value: d }) => fa(d, s.referenceRange)).length,
1259
1260
  fmd: 0,
1260
1261
  annual: 0
1261
1262
  }, l = {};
1262
- for (const s of zo)
1263
+ for (const s of Ao)
1263
1264
  l[s] = { open: !0, fill: null, flagged: 0 };
1264
1265
  for (const s of vi)
1265
1266
  l[s] = { open: n, fill: o[s], flagged: r[s] };
@@ -1280,7 +1281,7 @@ function ki(e) {
1280
1281
  function at(e) {
1281
1282
  return e != null && Number.isFinite(e);
1282
1283
  }
1283
- const To = [
1284
+ const So = [
1284
1285
  "weightKg",
1285
1286
  "heightCm",
1286
1287
  "waistCm",
@@ -1315,14 +1316,14 @@ function Rt(e) {
1315
1316
  function Ba(e) {
1316
1317
  return e.id === pa;
1317
1318
  }
1318
- function Co(e, { keepId: a } = {}) {
1319
+ function _o(e, { keepId: a } = {}) {
1319
1320
  const t = (m) => m.visitType === "first" && m.id !== a, n = e.filter(t);
1320
1321
  if (n.length < 2) {
1321
1322
  const m = e;
1322
1323
  return { baseline: null, sources: [], visits: m, pickable: m };
1323
1324
  }
1324
1325
  const o = ki(n), r = [...n].sort((m, v) => o(m.dateIso) - o(v.dateIso)), l = {};
1325
- for (const m of To) {
1326
+ for (const m of So) {
1326
1327
  const v = r.find((k) => at(k.anthropometrics[m]));
1327
1328
  l[m] = v ? v.anthropometrics[m] : null;
1328
1329
  }
@@ -1365,7 +1366,7 @@ const wi = {
1365
1366
  surgery: "triangle",
1366
1367
  lifestyle: "square"
1367
1368
  }, zi = "neutral";
1368
- function So(e, a) {
1369
+ function Do(e, a) {
1369
1370
  const t = a.length - 1;
1370
1371
  if (t < 1 || !Be(e.dateIso)) return null;
1371
1372
  const n = !Je(e.dateIso) || a.some((s) => !Je(s.dateIso)), o = (s) => {
@@ -1381,9 +1382,9 @@ function So(e, a) {
1381
1382
  }
1382
1383
  return null;
1383
1384
  }
1384
- function _o(e, a) {
1385
+ function jo(e, a) {
1385
1386
  return (e ?? []).flatMap((t) => {
1386
- const n = So(t, a);
1387
+ const n = Do(t, a);
1387
1388
  return n == null ? [] : [{ event: t, position: n }];
1388
1389
  }).sort((t, n) => t.position - n.position);
1389
1390
  }
@@ -1400,7 +1401,7 @@ function xi(e, a) {
1400
1401
  source: a(`anamnesis.event.source.${e.sourceKey}`)
1401
1402
  }) : t;
1402
1403
  }
1403
- function Do(e, a, t) {
1404
+ function Po(e, a, t) {
1404
1405
  return e.filter((n) => a.has(n.event.id)).map(({ event: n, position: o }) => ({
1405
1406
  id: n.id,
1406
1407
  position: o,
@@ -1409,7 +1410,7 @@ function Do(e, a, t) {
1409
1410
  tone: zi
1410
1411
  }));
1411
1412
  }
1412
- function jo({
1413
+ function Eo({
1413
1414
  marks: e,
1414
1415
  activeIds: a,
1415
1416
  onToggle: t,
@@ -1467,12 +1468,12 @@ function jo({
1467
1468
  }
1468
1469
  );
1469
1470
  }
1470
- const Po = [
1471
+ const Lo = [
1471
1472
  "clinicalNotes",
1472
1473
  "nutritionalProposal"
1473
1474
  ];
1474
1475
  function Oa(e) {
1475
- return Po.flatMap((a) => {
1476
+ return Lo.flatMap((a) => {
1476
1477
  var n;
1477
1478
  const t = (n = e[a]) == null ? void 0 : n.trim();
1478
1479
  return t ? [{ field: a, text: t }] : [];
@@ -1481,7 +1482,7 @@ function Oa(e) {
1481
1482
  function Ai(e) {
1482
1483
  return Oa(e).length > 0;
1483
1484
  }
1484
- function Eo({
1485
+ function Fo({
1485
1486
  visit: e,
1486
1487
  t: a
1487
1488
  }) {
@@ -1490,8 +1491,8 @@ function Eo({
1490
1491
  /* @__PURE__ */ i(L.Detail, { children: /* @__PURE__ */ i("span", { className: "ds:block ds:break-words ds:whitespace-pre-line", children: t.text }) })
1491
1492
  ] }, t.field)) });
1492
1493
  }
1493
- const Lo = "ds:mt-[var(--spacing-md)] ds:max-h-[min(20rem,var(--radix-popover-content-available-height))] ds:overflow-y-auto ds:focus-visible:outline-[length:var(--focus-ring-width)] ds:focus-visible:outline-solid ds:focus-visible:outline-[color:var(--ring)] ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]";
1494
- function Fo({
1494
+ const Io = "ds:mt-[var(--spacing-md)] ds:max-h-[min(20rem,var(--radix-popover-content-available-height))] ds:overflow-y-auto ds:focus-visible:outline-[length:var(--focus-ring-width)] ds:focus-visible:outline-solid ds:focus-visible:outline-[color:var(--ring)] ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]";
1495
+ function Ro({
1495
1496
  visit: e,
1496
1497
  t: a,
1497
1498
  defaultOpen: t = !1,
@@ -1556,8 +1557,8 @@ function Fo({
1556
1557
  tabIndex: 0,
1557
1558
  role: "group",
1558
1559
  "aria-label": a("anamnesis.visitNote.title"),
1559
- className: Lo,
1560
- children: /* @__PURE__ */ i(Eo, { visit: e, t: a })
1560
+ className: Io,
1561
+ children: /* @__PURE__ */ i(Fo, { visit: e, t: a })
1561
1562
  }
1562
1563
  )
1563
1564
  ]
@@ -1565,8 +1566,8 @@ function Fo({
1565
1566
  )
1566
1567
  ] });
1567
1568
  }
1568
- const Ni = "ds:min-w-[11rem]", gt = "ds:min-w-[8rem]", Ti = "ds:w-[40%] ds:min-w-[14rem]", Io = "type-label ds:sticky ds:start-0 ds:top-0 ds:z-[3] ds:bg-[color:var(--card)] ds:px-[var(--spacing-sm)] ds:py-[var(--spacing-sm)] ds:text-start ds:shadow-[var(--shadow-chrome-end)]", Ci = "ds:sticky ds:top-0 ds:z-[2] ds:px-[var(--spacing-sm)] ds:py-[var(--spacing-sm)] ds:text-start ds:shadow-[var(--shadow-chrome-down)]", Ro = "type-label ds:sticky ds:end-0 ds:top-0 ds:z-[3] ds:bg-[color:var(--card)] ds:px-[var(--spacing-sm)] ds:py-[var(--spacing-sm)] ds:text-start ds:shadow-[var(--shadow-chrome-start)]", qa = "ds:px-[var(--spacing-sm)] ds:py-[var(--spacing-xs)] ds:align-top";
1569
- function Oo({
1569
+ const Ni = "ds:min-w-[11rem]", gt = "ds:min-w-[8rem]", Ti = "ds:w-[40%] ds:min-w-[14rem]", Oo = "type-label ds:sticky ds:start-0 ds:top-0 ds:z-[3] ds:bg-[color:var(--card)] ds:px-[var(--spacing-sm)] ds:py-[var(--spacing-sm)] ds:text-start ds:shadow-[var(--shadow-chrome-end)]", Ci = "ds:sticky ds:top-0 ds:z-[2] ds:px-[var(--spacing-sm)] ds:py-[var(--spacing-sm)] ds:text-start ds:shadow-[var(--shadow-chrome-down)]", Mo = "type-label ds:sticky ds:end-0 ds:top-0 ds:z-[3] ds:bg-[color:var(--card)] ds:px-[var(--spacing-sm)] ds:py-[var(--spacing-sm)] ds:text-start ds:shadow-[var(--shadow-chrome-start)]", qa = "ds:px-[var(--spacing-sm)] ds:py-[var(--spacing-xs)] ds:align-top";
1570
+ function Vo({
1570
1571
  column: e,
1571
1572
  t: a,
1572
1573
  emphasised: t = !1,
@@ -1630,7 +1631,7 @@ function Oo({
1630
1631
  }
1631
1632
  ) }),
1632
1633
  r ? /* @__PURE__ */ i(
1633
- Fo,
1634
+ Ro,
1634
1635
  {
1635
1636
  visit: d,
1636
1637
  t: a,
@@ -1660,7 +1661,7 @@ function Oo({
1660
1661
  ] })
1661
1662
  ] }) });
1662
1663
  }
1663
- function Mo({
1664
+ function Ho({
1664
1665
  captionId: e,
1665
1666
  caption: a,
1666
1667
  identityLabel: t,
@@ -1692,7 +1693,7 @@ function Mo({
1692
1693
  "th",
1693
1694
  {
1694
1695
  scope: "col",
1695
- className: `${Ni} ${Io}`,
1696
+ className: `${Ni} ${Oo}`,
1696
1697
  children: t
1697
1698
  }
1698
1699
  ),
@@ -1716,7 +1717,7 @@ function Mo({
1716
1717
  {
1717
1718
  scope: "col",
1718
1719
  "data-testid": s,
1719
- className: `${gt} ${Ro}`,
1720
+ className: `${gt} ${Mo}`,
1720
1721
  children: l
1721
1722
  }
1722
1723
  ) : null
@@ -1768,15 +1769,15 @@ function ht(e, a, t = {}) {
1768
1769
  function _i(e) {
1769
1770
  return ht(e, Si(e)).columns;
1770
1771
  }
1771
- function Vo(e) {
1772
+ function Bo(e) {
1772
1773
  return e.length >= 2;
1773
1774
  }
1774
- const Ho = {
1775
+ const qo = {
1775
1776
  value: null,
1776
1777
  outOfRange: null,
1777
1778
  delta: null
1778
1779
  };
1779
- function Bo(e, a) {
1780
+ function Ko(e, a) {
1780
1781
  const t = e[a], n = e[a - 1];
1781
1782
  return n ? n.index === t.index - 1 : t.index === 0;
1782
1783
  }
@@ -1784,14 +1785,14 @@ function Ta(e, a) {
1784
1785
  const t = (String(e).split(".")[1] ?? "").length;
1785
1786
  return Pe(e, Math.min(t, 3), a);
1786
1787
  }
1787
- function qo(e, a, t) {
1788
+ function Go(e, a, t) {
1788
1789
  return e ? e.min != null && e.max != null ? `${Ta(e.min, t)}–${Ta(e.max, t)}` : e.max != null ? a("anamnesis.range.atMost", {
1789
1790
  value: Ta(e.max, t)
1790
1791
  }) : e.min != null ? a("anamnesis.range.atLeast", {
1791
1792
  value: Ta(e.min, t)
1792
1793
  }) : null : null;
1793
1794
  }
1794
- function Ko({
1795
+ function Uo({
1795
1796
  record: e,
1796
1797
  defs: a,
1797
1798
  t,
@@ -1817,8 +1818,8 @@ function Ko({
1817
1818
  key: `group-${C.def.group}`,
1818
1819
  banner: t(`anamnesis.group.${C.def.group}`)
1819
1820
  }));
1820
- const F = qo(C.def.referenceRange, t, h), O = T.map((D, q) => {
1821
- const { visit: $, index: V } = D, P = C.cells[V] ?? Ho, G = $.id === j && !Ba($), Z = g == null || g.has(C.def.key), J = n && G && Z && !C.def.computed, me = !Bo(T, q);
1821
+ const F = Go(C.def.referenceRange, t, h), O = T.map((D, q) => {
1822
+ const { visit: $, index: V } = D, P = C.cells[V] ?? qo, G = $.id === j && !Ba($), Z = g == null || g.has(C.def.key), J = n && G && Z && !C.def.computed, me = !Ko(T, q);
1822
1823
  return /* @__PURE__ */ i(
1823
1824
  "td",
1824
1825
  {
@@ -1876,7 +1877,7 @@ function Ko({
1876
1877
  ),
1877
1878
  cells: O,
1878
1879
  trend: /* @__PURE__ */ i("td", { className: `${Ti} ${qa}`, children: /* @__PURE__ */ i(
1879
- ko,
1880
+ zo,
1880
1881
  {
1881
1882
  series: C.series,
1882
1883
  def: C.def,
@@ -1904,7 +1905,7 @@ function Ko({
1904
1905
  }
1905
1906
  );
1906
1907
  const S = T.map((C) => /* @__PURE__ */ i(
1907
- Oo,
1908
+ Vo,
1908
1909
  {
1909
1910
  column: C,
1910
1911
  t,
@@ -1916,7 +1917,7 @@ function Ko({
1916
1917
  C.key
1917
1918
  ));
1918
1919
  return /* @__PURE__ */ i(
1919
- Mo,
1920
+ Ho,
1920
1921
  {
1921
1922
  captionId: A,
1922
1923
  caption: f ?? t("anamnesis.grid.caption"),
@@ -1929,15 +1930,15 @@ function Ko({
1929
1930
  }
1930
1931
  );
1931
1932
  }
1932
- const Go = "unlabelled", Uo = "record";
1933
- function Wo(e) {
1934
- return { key: Uo, label: "", visits: e };
1933
+ const Wo = "unlabelled", $o = "record";
1934
+ function Qo(e) {
1935
+ return { key: $o, label: "", visits: e };
1935
1936
  }
1936
- function $o(e, a) {
1937
+ function Zo(e, a) {
1937
1938
  var r;
1938
1939
  const t = /* @__PURE__ */ new Map();
1939
1940
  for (const l of e) {
1940
- const s = ((r = l.sourceLabel) == null ? void 0 : r.trim()) ?? "", d = s === "" ? Go : `source:${s}`, u = t.get(d);
1941
+ const s = ((r = l.sourceLabel) == null ? void 0 : r.trim()) ?? "", d = s === "" ? Wo : `source:${s}`, u = t.get(d);
1941
1942
  u ? u.visits.push(l) : t.set(d, {
1942
1943
  key: d,
1943
1944
  label: s === "" ? a : s,
@@ -1947,12 +1948,12 @@ function $o(e, a) {
1947
1948
  const n = ki(e), o = (l) => Math.min(...l.visits.map((s) => n(s.dateIso)));
1948
1949
  return [...t.values()].sort((l, s) => o(l) - o(s));
1949
1950
  }
1950
- function Qo(e, a, t) {
1951
+ function Yo(e, a, t) {
1951
1952
  return a.filter(
1952
1953
  (n) => (t == null ? void 0 : t(n)) === !0 || e.some((o) => je(o, n) != null)
1953
1954
  );
1954
1955
  }
1955
- function Zo(e) {
1956
+ function Jo(e) {
1956
1957
  const a = /* @__PURE__ */ new Set(), t = [];
1957
1958
  for (const n of e)
1958
1959
  for (const o of n)
@@ -1978,7 +1979,7 @@ function bt({
1978
1979
  () => new Set(xe(n).map((N) => N.key)),
1979
1980
  [n]
1980
1981
  ), m = a("anamnesis.grid.unlabelledSource"), v = H(
1981
- () => o ? $o(e.visits, m) : [Wo(e.visits)],
1982
+ () => o ? Zo(e.visits, m) : [Qo(e.visits)],
1982
1983
  [o, e.visits, m]
1983
1984
  ), k = H(
1984
1985
  () => v.map((N) => {
@@ -1988,7 +1989,7 @@ function bt({
1988
1989
  // Same reference when nothing was partitioned, so downstream memos
1989
1990
  // keep their identity.
1990
1991
  record: N.visits === e.visits ? e : { ...e, visits: N.visits },
1991
- defs: o ? Qo(
1992
+ defs: o ? Yo(
1992
1993
  N.visits,
1993
1994
  g,
1994
1995
  j ? (T) => b.has(T.key) && !T.computed : void 0
@@ -2006,7 +2007,7 @@ function bt({
2006
2007
  ), f = _e(/* @__PURE__ */ new Map()), A = Qe(
2007
2008
  (N, j) => {
2008
2009
  f.current.set(N, j), l == null || l(
2009
- Zo(
2010
+ Jo(
2010
2011
  v.map((T) => f.current.get(T.key) ?? [])
2011
2012
  )
2012
2013
  );
@@ -2039,7 +2040,7 @@ function bt({
2039
2040
  }
2040
2041
  ) : null,
2041
2042
  k.map(({ block: N, record: j, defs: T }) => /* @__PURE__ */ i(
2042
- Yo,
2043
+ Xo,
2043
2044
  {
2044
2045
  ...d,
2045
2046
  record: j,
@@ -2066,7 +2067,7 @@ function ft() {
2066
2067
  }, []);
2067
2068
  return [e, t];
2068
2069
  }
2069
- function Yo({
2070
+ function Xo({
2070
2071
  record: e,
2071
2072
  t: a,
2072
2073
  defs: t,
@@ -2085,7 +2086,7 @@ function Yo({
2085
2086
  toolbarEnd: f
2086
2087
  }) {
2087
2088
  const A = H(
2088
- () => Co(e.visits, { keepId: r }),
2089
+ () => _o(e.visits, { keepId: r }),
2089
2090
  [e.visits, r]
2090
2091
  ), { visits: h, pickable: y, baseline: N } = A, j = H(
2091
2092
  () => N ? { ...e, visits: h } : e,
@@ -2097,7 +2098,7 @@ function Yo({
2097
2098
  () => (b ? [...b] : y.map((B) => B.id)).filter(
2098
2099
  (B) => B !== pa
2099
2100
  )
2100
- ), O = Vo(y), D = H(() => {
2101
+ ), O = Bo(y), D = H(() => {
2101
2102
  const B = C.filter(
2102
2103
  (U) => y.some((fe) => fe.id === U)
2103
2104
  );
@@ -2118,7 +2119,7 @@ function Yo({
2118
2119
  const B = N ? 1 : 0;
2119
2120
  return y.map((U, fe) => ({
2120
2121
  id: U.id,
2121
- label: no(U, fe + B, a, Ai(U))
2122
+ label: ro(U, fe + B, a, Ai(U))
2122
2123
  }));
2123
2124
  }, [y, N, a]), P = D.length === y.length, G = a("anamnesis.window.pickerTrigger", {
2124
2125
  shown: q.shownCount,
@@ -2143,7 +2144,7 @@ function Yo({
2143
2144
  }), va = d ? [d.label, fe] : [fe];
2144
2145
  return D.length === 1 && va.push(a("anamnesis.window.minimum")), va.join(" · ");
2145
2146
  }, [q, D, a, d]), _ = H(
2146
- () => _o(e.events, h),
2147
+ () => jo(e.events, h),
2147
2148
  [e.events, h]
2148
2149
  ), [K, se] = I(
2149
2150
  () => m ? [...m] : []
@@ -2151,7 +2152,7 @@ function Yo({
2151
2152
  const B = new Set(_.map((U) => U.event.id));
2152
2153
  return new Set(K.filter((U) => B.has(U)));
2153
2154
  }, [K, _]), ue = H(
2154
- () => Do(_, ce, a),
2155
+ () => Po(_, ce, a),
2155
2156
  [_, ce, a]
2156
2157
  ), Ke = (B) => se(
2157
2158
  (U) => U.includes(B) ? U.filter((fe) => fe !== B) : [...U, B]
@@ -2255,7 +2256,7 @@ function Yo({
2255
2256
  }
2256
2257
  ) : null,
2257
2258
  /* @__PURE__ */ i(
2258
- jo,
2259
+ Eo,
2259
2260
  {
2260
2261
  marks: _,
2261
2262
  activeIds: ce,
@@ -2264,7 +2265,7 @@ function Yo({
2264
2265
  }
2265
2266
  ),
2266
2267
  /* @__PURE__ */ i(
2267
- Ko,
2268
+ Uo,
2268
2269
  {
2269
2270
  record: j,
2270
2271
  defs: t,
@@ -2291,7 +2292,7 @@ function Yo({
2291
2292
  const Ne = ["clinician"], pe = [
2292
2293
  "clinician",
2293
2294
  "patient"
2294
- ], Jo = [
2295
+ ], er = [
2295
2296
  {
2296
2297
  id: "patient.identity",
2297
2298
  surface: "intake",
@@ -2467,16 +2468,16 @@ const Ne = ["clinician"], pe = [
2467
2468
  rationale: "The per-tab export ENVELOPE — a title, a meta block and a list of tables. It carries no clinical content of its own: every table inside is gated on the concept it renders, so this row decides only whether a file may be produced at all. The whole-record workbook stays reserved by export.workbook.",
2468
2469
  status: "provisional"
2469
2470
  }
2470
- ], Xo = new Map(
2471
- Jo.map((e) => [e.id, e])
2471
+ ], ar = new Map(
2472
+ er.map((e) => [e.id, e])
2472
2473
  );
2473
- function er(e, a) {
2474
- const t = Xo.get(e);
2474
+ function tr(e, a) {
2475
+ const t = ar.get(e);
2475
2476
  return t ? t.audiences.includes(a) : !1;
2476
2477
  }
2477
2478
  const Ma = "export.tabDocument";
2478
2479
  function ae(e, a) {
2479
- return er(a, e.audience) ? !0 : (e.withheld.add(a), !1);
2480
+ return tr(a, e.audience) ? !0 : (e.withheld.add(a), !1);
2480
2481
  }
2481
2482
  function Di(e) {
2482
2483
  if (e.key === "bmi") return "derived.bmi";
@@ -2503,7 +2504,7 @@ function Pi(e, a) {
2503
2504
  function Ei(e, a) {
2504
2505
  return e === "high" ? a("anamnesis.range.aboveRange") : e === "low" ? a("anamnesis.range.belowRange") : null;
2505
2506
  }
2506
- function ar(e) {
2507
+ function ir(e) {
2507
2508
  return e.normalize("NFD").replace(/[\u0300-\u036f]/g, "").toLowerCase().replace(/[^a-z0-9]+/g, "-").replace(/^-+|-+$/g, "");
2508
2509
  }
2509
2510
  function He(e) {
@@ -2512,7 +2513,7 @@ function He(e) {
2512
2513
  return Be(a) ? a : null;
2513
2514
  }
2514
2515
  function _a(e, a, t, n, o) {
2515
- const r = n ? ar(`${a.patient.lastName} ${a.patient.firstName}`) : "";
2516
+ const r = n ? ir(`${a.patient.lastName} ${a.patient.firstName}`) : "";
2516
2517
  return [
2517
2518
  "anamnesis",
2518
2519
  e,
@@ -2524,12 +2525,12 @@ function _a(e, a, t, n, o) {
2524
2525
  function yt(e, a) {
2525
2526
  return a(`anamnesis.export.audience.${e}`);
2526
2527
  }
2527
- function tr(e, a) {
2528
+ function nr(e, a) {
2528
2529
  return a(`anamnesis.export.tab.${e}`);
2529
2530
  }
2530
2531
  function Li(e, a) {
2531
2532
  return a(`anamnesis.export.docTab.${e}`, {
2532
- defaultValue: tr(e, a)
2533
+ defaultValue: nr(e, a)
2533
2534
  });
2534
2535
  }
2535
2536
  function vt(e, a, t, n) {
@@ -2577,7 +2578,7 @@ function ja(e, a, t, n = []) {
2577
2578
  locale: Ee(t)
2578
2579
  };
2579
2580
  }
2580
- function ir(e) {
2581
+ function or(e) {
2581
2582
  var v;
2582
2583
  const { record: a, audience: t, t: n, config: o } = e, r = e.generatedAtIso ?? (/* @__PURE__ */ new Date()).toISOString(), l = { audience: t, withheld: /* @__PURE__ */ new Set() };
2583
2584
  if (!ae(l, Ma))
@@ -2671,7 +2672,7 @@ function Ga(e, a, t, n) {
2671
2672
  emptyText: n("anamnesis.export.none")
2672
2673
  };
2673
2674
  }
2674
- function nr(e) {
2675
+ function rr(e) {
2675
2676
  const { record: a, audience: t, t: n, config: o } = e, r = e.generatedAtIso ?? (/* @__PURE__ */ new Date()).toISOString(), l = { audience: t, withheld: /* @__PURE__ */ new Set() };
2676
2677
  if (!ae(l, Ma))
2677
2678
  return kt("compile", t, n);
@@ -2902,7 +2903,7 @@ function nr(e) {
2902
2903
  b
2903
2904
  );
2904
2905
  }
2905
- function or(e, a, t) {
2906
+ function lr(e, a, t) {
2906
2907
  const n = a.map((o) => {
2907
2908
  var l;
2908
2909
  const r = ((l = e.cells[o.index]) == null ? void 0 : l.outOfRange) ?? null;
@@ -2913,13 +2914,13 @@ function or(e, a, t) {
2913
2914
  }).filter((o) => o != null);
2914
2915
  return n.length === 0 ? null : n.join(t("anamnesis.export.listSeparator"));
2915
2916
  }
2916
- function rr(e, a) {
2917
+ function sr(e, a) {
2917
2918
  var o, r;
2918
2919
  if (a.length < 2) return null;
2919
2920
  const t = ((o = e.cells[a[0].index]) == null ? void 0 : o.value) ?? null, n = ((r = e.cells[a[a.length - 1].index]) == null ? void 0 : r.value) ?? null;
2920
2921
  return t == null || n == null ? null : n - t;
2921
2922
  }
2922
- function lr(e) {
2923
+ function dr(e) {
2923
2924
  var A;
2924
2925
  const { record: a, audience: t, t: n, config: o } = e, r = e.generatedAtIso ?? (/* @__PURE__ */ new Date()).toISOString(), l = e.scope ?? "selected", s = { audience: t, withheld: /* @__PURE__ */ new Set() };
2925
2926
  if (!ae(s, Ma))
@@ -2972,8 +2973,8 @@ function lr(e) {
2972
2973
  return ((C = S.cells[w.index]) == null ? void 0 : C.value) ?? null;
2973
2974
  }),
2974
2975
  S.target,
2975
- rr(S, k),
2976
- or(S, k, n)
2976
+ sr(S, k),
2977
+ lr(S, k, n)
2977
2978
  ]
2978
2979
  }));
2979
2980
  g.push({
@@ -3006,17 +3007,17 @@ function lr(e) {
3006
3007
  b
3007
3008
  );
3008
3009
  }
3009
- function sr(e, a) {
3010
+ function cr(e, a) {
3010
3011
  switch (e) {
3011
3012
  case "summary":
3012
- return ir(a);
3013
+ return or(a);
3013
3014
  case "compile":
3014
- return nr(a);
3015
+ return rr(a);
3015
3016
  case "evolution":
3016
- return lr(a);
3017
+ return dr(a);
3017
3018
  }
3018
3019
  }
3019
- function dr(e, a) {
3020
+ function ur(e, a) {
3020
3021
  return a(`anamnesis.export.concept.${e.replace(/\./g, "_")}`, {
3021
3022
  defaultValue: e
3022
3023
  });
@@ -3024,12 +3025,12 @@ function dr(e, a) {
3024
3025
  function Ot(e, a) {
3025
3026
  return {
3026
3027
  included: e.tables.map((t) => t.title),
3027
- excluded: e.withheld.map((t) => dr(t, a)).sort((t, n) => t.localeCompare(n, e.locale))
3028
+ excluded: e.withheld.map((t) => ur(t, a)).sort((t, n) => t.localeCompare(n, e.locale))
3028
3029
  };
3029
3030
  }
3030
- const cr = "text/csv;charset=utf-8", ur = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", Mt = `\r
3031
- `, mr = /^[=+\-@\t\r]/;
3032
- function pr(e) {
3031
+ const mr = "text/csv;charset=utf-8", pr = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", Mt = `\r
3032
+ `, gr = /^[=+\-@\t\r]/;
3033
+ function hr(e) {
3033
3034
  var a;
3034
3035
  if (!e) return ".";
3035
3036
  try {
@@ -3041,25 +3042,25 @@ function pr(e) {
3041
3042
  }
3042
3043
  }
3043
3044
  function wt(e) {
3044
- return pr(e) === "," ? { delimiter: ";", decimal: ",", eol: Mt, bom: !0 } : { delimiter: ",", decimal: ".", eol: Mt, bom: !0 };
3045
+ return hr(e) === "," ? { delimiter: ";", decimal: ",", eol: Mt, bom: !0 } : { delimiter: ",", decimal: ".", eol: Mt, bom: !0 };
3045
3046
  }
3046
- function gr(e, a, t) {
3047
+ function br(e, a, t) {
3047
3048
  if (!Number.isFinite(e)) return "";
3048
3049
  const n = a == null ? String(e) : e.toFixed(a);
3049
3050
  return t.decimal === "," ? n.replace(".", ",") : n;
3050
3051
  }
3051
3052
  function Re(e, a) {
3052
- const t = mr.test(e) ? `'${e}` : e;
3053
+ const t = gr.test(e) ? `'${e}` : e;
3053
3054
  return t.includes(a.delimiter) || t.includes('"') || t.includes(`
3054
3055
  `) || t.includes("\r") || t !== t.trim() ? `"${t.replace(/"/g, '""')}"` : t;
3055
3056
  }
3056
3057
  function Vt(e, a, t) {
3057
- return e == null ? "" : typeof e == "number" ? gr(e, t, a) : Re(e, a);
3058
+ return e == null ? "" : typeof e == "number" ? br(e, t, a) : Re(e, a);
3058
3059
  }
3059
3060
  function Fi(e, a) {
3060
3061
  return e.precision ?? (a == null ? void 0 : a.precision);
3061
3062
  }
3062
- function hr(e, a = wt(e.locale)) {
3063
+ function fr(e, a = wt(e.locale)) {
3063
3064
  const t = [], n = (o) => t.push(o.join(a.delimiter));
3064
3065
  n([Re(e.title, a)]);
3065
3066
  for (const o of e.meta)
@@ -3094,11 +3095,11 @@ function hr(e, a = wt(e.locale)) {
3094
3095
  }
3095
3096
  return t.join(a.eol) + a.eol;
3096
3097
  }
3097
- function br(e, a = wt(e.locale)) {
3098
- const t = hr(e, a);
3099
- return new Blob([a.bom ? `\uFEFF${t}` : t], { type: cr });
3098
+ function yr(e, a = wt(e.locale)) {
3099
+ const t = fr(e, a);
3100
+ return new Blob([a.bom ? `\uFEFF${t}` : t], { type: mr });
3100
3101
  }
3101
- async function fr() {
3102
+ async function vr() {
3102
3103
  const e = await import("./exceljs.min-D2MHbJsF.js").then((t) => t.e), a = e;
3103
3104
  return typeof a.Workbook == "function" ? e : a.default ?? e;
3104
3105
  }
@@ -3111,20 +3112,20 @@ function Ht(e, a) {
3111
3112
  }
3112
3113
  return a.add(n.toLowerCase()), n;
3113
3114
  }
3114
- function yr(e) {
3115
+ function kr(e) {
3115
3116
  if (e != null)
3116
3117
  return e > 0 ? `0.${"0".repeat(e)}` : "0";
3117
3118
  }
3118
- const vr = 12, kr = 60;
3119
- function wr(e, a) {
3119
+ const wr = 12, zr = 60;
3120
+ function xr(e, a) {
3120
3121
  const t = a.reduce(
3121
3122
  (n, o) => Math.max(n, o == null ? 0 : String(o).length),
3122
3123
  e.length
3123
3124
  );
3124
- return Math.min(kr, Math.max(vr, t + 2));
3125
+ return Math.min(zr, Math.max(wr, t + 2));
3125
3126
  }
3126
- async function zr(e) {
3127
- const a = await fr(), t = new a.Workbook();
3127
+ async function Ar(e) {
3128
+ const a = await vr(), t = new a.Workbook();
3128
3129
  t.created = /* @__PURE__ */ new Date();
3129
3130
  const n = /* @__PURE__ */ new Set(), o = t.addWorksheet(Ht(e.title, n)), r = o.addRow([e.title]);
3130
3131
  r.font = { bold: !0 };
@@ -3149,19 +3150,19 @@ async function zr(e) {
3149
3150
  s.columns.forEach((v, k) => {
3150
3151
  const f = m.getCell(k + 1);
3151
3152
  if (typeof b[k] != "number") return;
3152
- const A = yr(Fi(g, v));
3153
+ const A = kr(Fi(g, v));
3153
3154
  A && (f.numFmt = A), f.alignment = { horizontal: "right" };
3154
3155
  });
3155
3156
  }
3156
3157
  s.columns.forEach((g, b) => {
3157
- d.getColumn(b + 1).width = wr(
3158
+ d.getColumn(b + 1).width = xr(
3158
3159
  g.header,
3159
3160
  s.rows.map((m) => m.cells[b] ?? null)
3160
3161
  );
3161
3162
  });
3162
3163
  }
3163
3164
  const l = await t.xlsx.writeBuffer();
3164
- return new Blob([l], { type: ur });
3165
+ return new Blob([l], { type: pr });
3165
3166
  }
3166
3167
  function zt(e, a) {
3167
3168
  return `${e.fileStem}.${a}`;
@@ -3172,11 +3173,11 @@ function xt(e, a) {
3172
3173
  const t = URL.createObjectURL(e), n = document.createElement("a");
3173
3174
  return n.href = t, n.download = a, document.body.appendChild(n), n.click(), n.remove(), window.setTimeout(() => URL.revokeObjectURL(t), 0), !0;
3174
3175
  }
3175
- function xr(e, a = wt(e.locale)) {
3176
- return xt(br(e, a), zt(e, "csv"));
3176
+ function Nr(e, a = wt(e.locale)) {
3177
+ return xt(yr(e, a), zt(e, "csv"));
3177
3178
  }
3178
- async function Ar(e) {
3179
- return xt(await zr(e), zt(e, "xlsx"));
3179
+ async function Tr(e) {
3180
+ return xt(await Ar(e), zt(e, "xlsx"));
3180
3181
  }
3181
3182
  const Ge = {
3182
3183
  headerFill: [237, 237, 240],
@@ -3201,7 +3202,7 @@ function ta(e, a, t) {
3201
3202
  const s = l.match(/rgba?\(\s*(\d+)[,\s]+(\d+)[,\s]+(\d+)/i);
3202
3203
  return s ? [Number(s[1]), Number(s[2]), Number(s[3])] : a;
3203
3204
  }
3204
- function Nr(e) {
3205
+ function Cr(e) {
3205
3206
  return {
3206
3207
  headerFill: ta("--muted", Ge.headerFill, e),
3207
3208
  headerText: ta("--foreground", Ge.headerText, e),
@@ -3219,7 +3220,7 @@ function Nr(e) {
3219
3220
  sectionFill: ta("--muted", Ge.sectionFill, e)
3220
3221
  };
3221
3222
  }
3222
- const Tr = [
3223
+ const Sr = [
3223
3224
  ["→", "->"],
3224
3225
  // → the Evolution change header
3225
3226
  ["←", "<-"],
@@ -3288,33 +3289,36 @@ new Set(
3288
3289
  );
3289
3290
  function Oe(e) {
3290
3291
  let a = e;
3291
- for (const [t, n] of Tr)
3292
+ for (const [t, n] of Sr)
3292
3293
  a.includes(t) && (a = a.split(t).join(n));
3293
3294
  return a;
3294
3295
  }
3295
- const oe = 14, Cr = 6, Sr = 15, _r = 9, Dr = 11, Bt = 8.5, qt = 8, Fe = 5;
3296
- function jr(e) {
3296
+ const oe = 14, _r = 6, Dr = 15, jr = 9, Pr = 11, Bt = 8.5, qt = 8, Fe = 5;
3297
+ function Er(e) {
3297
3298
  return e.tables.some(
3298
- (a) => a.columns.length > Cr
3299
+ (a) => a.columns.length > _r
3299
3300
  );
3300
3301
  }
3301
- function Pr(e, a, t) {
3302
+ function Lr(e, a, t) {
3302
3303
  if (!Number.isFinite(e)) return "";
3303
3304
  try {
3304
- return new Intl.NumberFormat(t, {
3305
- minimumFractionDigits: a ?? 0,
3306
- maximumFractionDigits: a ?? 3
3307
- }).format(e);
3305
+ return new Intl.NumberFormat(
3306
+ t ? pn(gn(t)) : void 0,
3307
+ {
3308
+ minimumFractionDigits: a ?? 0,
3309
+ maximumFractionDigits: a ?? 3
3310
+ }
3311
+ ).format(e);
3308
3312
  } catch {
3309
3313
  return a == null ? String(e) : e.toFixed(a);
3310
3314
  }
3311
3315
  }
3312
3316
  function Ii(e, a, t) {
3313
3317
  return e == null ? "" : Oe(
3314
- typeof e == "number" ? Pr(e, a, t) : e
3318
+ typeof e == "number" ? Lr(e, a, t) : e
3315
3319
  );
3316
3320
  }
3317
- function Er(e, a, t) {
3321
+ function Fr(e, a, t) {
3318
3322
  return a.columns.map(
3319
3323
  (n, o) => Ii(
3320
3324
  e.cells[o] ?? null,
@@ -3329,31 +3333,31 @@ async function Ri(e, a = {}) {
3329
3333
  import("./jspdf.es.min-DaapWjR1.js").then((f) => f.j),
3330
3334
  import("./jspdf.plugin.autotable-CSiDNyPn.js")
3331
3335
  ]), o = a.palette ?? Ge, r = e.locale, l = new t({
3332
- orientation: jr(e) ? "landscape" : "portrait",
3336
+ orientation: Er(e) ? "landscape" : "portrait",
3333
3337
  unit: "mm",
3334
3338
  format: "a4"
3335
3339
  }), s = l.internal.pageSize.getWidth(), d = l.internal.pageSize.getHeight(), u = s - oe * 2, g = (f, A, h) => {
3336
3340
  l.setFont("helvetica", f), l.setFontSize(A), l.setTextColor(h[0], h[1], h[2]);
3337
3341
  };
3338
3342
  let b = oe;
3339
- g("bold", Sr, o.headerText);
3343
+ g("bold", Dr, o.headerText);
3340
3344
  for (const f of l.splitTextToSize(
3341
3345
  Oe(e.title),
3342
3346
  u
3343
3347
  ))
3344
3348
  l.text(f, oe, b), b += Fe + 1;
3345
- b += 1, g("normal", _r, o.mutedText);
3349
+ b += 1, g("normal", jr, o.mutedText);
3346
3350
  for (const f of e.meta)
3347
3351
  l.text(Oe(`${f.label}: ${f.value}`), oe, b), b += Fe - 0.6;
3348
3352
  for (const f of e.tables) {
3349
- if (b += Fe, b > d - oe * 2 && (l.addPage(), b = oe), g("bold", Dr, o.headerText), l.text(Oe(f.title), oe, b), b += 2, f.rows.length === 0 && f.emptyText) {
3353
+ if (b += Fe, b > d - oe * 2 && (l.addPage(), b = oe), g("bold", Pr, o.headerText), l.text(Oe(f.title), oe, b), b += 2, f.rows.length === 0 && f.emptyText) {
3350
3354
  b += Fe, g("normal", Bt, o.mutedText), l.text(Oe(f.emptyText), oe, b), b += 1;
3351
3355
  continue;
3352
3356
  }
3353
3357
  const A = /* @__PURE__ */ new Set(), h = f.rows.map((j, T) => j.kind === "section" ? (A.add(T), [
3354
3358
  Ii(j.cells[0] ?? null, void 0, r),
3355
3359
  ...f.columns.slice(1).map(() => "")
3356
- ]) : Er(j, f, r)), y = {}, N = {
3360
+ ]) : Fr(j, f, r)), y = {}, N = {
3357
3361
  head: [f.columns.map((j) => Oe(j.header))],
3358
3362
  body: h,
3359
3363
  startY: b + 2,
@@ -3407,13 +3411,13 @@ async function Ri(e, a = {}) {
3407
3411
  );
3408
3412
  return a.autoPrint && l.autoPrint(), l.output("blob");
3409
3413
  }
3410
- async function Lr(e, a = {}) {
3414
+ async function Ir(e, a = {}) {
3411
3415
  return xt(
3412
3416
  await Ri(e, a),
3413
3417
  zt(e, "pdf")
3414
3418
  );
3415
3419
  }
3416
- async function Fr(e, a, t = {}) {
3420
+ async function Rr(e, a, t = {}) {
3417
3421
  if (!a || typeof URL > "u" || typeof URL.createObjectURL != "function")
3418
3422
  return null;
3419
3423
  const n = await Ri(e, { ...t, autoPrint: !0 }), o = URL.createObjectURL(n);
@@ -3438,7 +3442,7 @@ function At({
3438
3442
  []
3439
3443
  );
3440
3444
  const w = Qe(
3441
- (K) => sr(e, {
3445
+ (K) => cr(e, {
3442
3446
  record: a,
3443
3447
  audience: K,
3444
3448
  t,
@@ -3473,8 +3477,8 @@ function At({
3473
3477
  ).catch(() => $(t("anamnesis.export.control.failed"))).finally(() => {
3474
3478
  p.current = !1;
3475
3479
  });
3476
- }, P = () => Nr(j.current), G = () => V("pdf", (K) => Lr(K, { palette: P() })), Z = () => V("xlsx", Ar), J = () => V("csv", xr), me = () => {
3477
- p.current || (p.current = !0, Fr(w(d), T.current, { palette: P() }).then((K) => {
3480
+ }, P = () => Cr(j.current), G = () => V("pdf", (K) => Ir(K, { palette: P() })), Z = () => V("xlsx", Tr), J = () => V("csv", Nr), me = () => {
3481
+ p.current || (p.current = !0, Rr(w(d), T.current, { palette: P() }).then((K) => {
3478
3482
  if (!K) {
3479
3483
  $(t("anamnesis.export.control.failed"));
3480
3484
  return;
@@ -3580,7 +3584,7 @@ function At({
3580
3584
  /* @__PURE__ */ i(
3581
3585
  X.Item,
3582
3586
  {
3583
- startIcon: /* @__PURE__ */ i(pn, { "aria-hidden": "true" }),
3587
+ startIcon: /* @__PURE__ */ i(hn, { "aria-hidden": "true" }),
3584
3588
  onSelect: he,
3585
3589
  children: t("anamnesis.export.control.share")
3586
3590
  }
@@ -3588,7 +3592,7 @@ function At({
3588
3592
  /* @__PURE__ */ i(
3589
3593
  X.Item,
3590
3594
  {
3591
- startIcon: /* @__PURE__ */ i(gn, { "aria-hidden": "true" }),
3595
+ startIcon: /* @__PURE__ */ i(bn, { "aria-hidden": "true" }),
3592
3596
  onSelect: G,
3593
3597
  children: t("anamnesis.export.control.pdf")
3594
3598
  }
@@ -3596,7 +3600,7 @@ function At({
3596
3600
  /* @__PURE__ */ i(
3597
3601
  X.Item,
3598
3602
  {
3599
- startIcon: /* @__PURE__ */ i(hn, { "aria-hidden": "true" }),
3603
+ startIcon: /* @__PURE__ */ i(fn, { "aria-hidden": "true" }),
3600
3604
  onSelect: me,
3601
3605
  children: t("anamnesis.export.control.print")
3602
3606
  }
@@ -3605,7 +3609,7 @@ function At({
3605
3609
  /* @__PURE__ */ i(
3606
3610
  X.Item,
3607
3611
  {
3608
- startIcon: /* @__PURE__ */ i(bn, { "aria-hidden": "true" }),
3612
+ startIcon: /* @__PURE__ */ i(yn, { "aria-hidden": "true" }),
3609
3613
  onSelect: Z,
3610
3614
  children: t("anamnesis.export.control.xlsx")
3611
3615
  }
@@ -3613,7 +3617,7 @@ function At({
3613
3617
  /* @__PURE__ */ i(
3614
3618
  X.Item,
3615
3619
  {
3616
- startIcon: /* @__PURE__ */ i(fn, { "aria-hidden": "true" }),
3620
+ startIcon: /* @__PURE__ */ i(vn, { "aria-hidden": "true" }),
3617
3621
  onSelect: J,
3618
3622
  children: t("anamnesis.export.control.csv")
3619
3623
  }
@@ -3623,7 +3627,7 @@ function At({
3623
3627
  }
3624
3628
  ),
3625
3629
  /* @__PURE__ */ i(
3626
- Ir,
3630
+ Or,
3627
3631
  {
3628
3632
  open: k,
3629
3633
  onOpenChange: f,
@@ -3659,7 +3663,7 @@ function At({
3659
3663
  }
3660
3664
  );
3661
3665
  }
3662
- function Ir({
3666
+ function Or({
3663
3667
  open: e,
3664
3668
  onOpenChange: a,
3665
3669
  audience: t,
@@ -3764,17 +3768,17 @@ function Oi(e, a) {
3764
3768
  return !1;
3765
3769
  }
3766
3770
  }
3767
- function Rr(e) {
3771
+ function Mr(e) {
3768
3772
  if (!e) return;
3769
3773
  const [a, t] = e.split(":").map((n) => Number.parseInt(n, 10));
3770
3774
  if (!(Number.isNaN(a) || Number.isNaN(t)))
3771
3775
  return { hours: a, minutes: t };
3772
3776
  }
3773
- function Or(e) {
3777
+ function Vr(e) {
3774
3778
  const a = (t) => String(t).padStart(2, "0");
3775
3779
  return `${a(e.hours)}:${a(e.minutes)}`;
3776
3780
  }
3777
- function Mr(e, a) {
3781
+ function Hr(e, a) {
3778
3782
  if (e.detail !== !0) return !1;
3779
3783
  switch (e.type) {
3780
3784
  case "yesNoDetail":
@@ -3787,8 +3791,8 @@ function Mr(e, a) {
3787
3791
  return !1;
3788
3792
  }
3789
3793
  }
3790
- const Vr = "ds:sr-only", Hr = "ds:aspect-square ds:justify-center ds:px-0", Br = "ds:mt-[var(--spacing-2xs)]", qr = /* @__PURE__ */ new Set(["weightSelf", "waterPerDay"]), Ie = "ds:w-full ds:max-w-[44rem]";
3791
- function Kr(e) {
3794
+ const Br = "ds:sr-only", qr = "ds:aspect-square ds:justify-center ds:px-0", Kr = "ds:mt-[var(--spacing-2xs)]", Gr = /* @__PURE__ */ new Set(["weightSelf", "waterPerDay"]), Ie = "ds:w-full ds:max-w-[44rem]";
3795
+ function Ur(e) {
3792
3796
  return e.max !== void 0 && e.max >= 1e4 ? "md" : "sm";
3793
3797
  }
3794
3798
  function Mi({
@@ -3801,14 +3805,14 @@ function Mi({
3801
3805
  className: l,
3802
3806
  t: s
3803
3807
  }) {
3804
- const d = e.type === "number" ? ge(e, s) : ro(e, s), u = mi(e, s), g = n && o === "patient", b = Oi(e, a), m = s("anamnesis.field.highlighted"), v = b ? /* @__PURE__ */ i("span", { "data-testid": `anamnesis-field-${e.key}-highlight`, children: /* @__PURE__ */ i(
3808
+ const d = e.type === "number" ? ge(e, s) : so(e, s), u = mi(e, s), g = n && o === "patient", b = Oi(e, a), m = s("anamnesis.field.highlighted"), v = b ? /* @__PURE__ */ i("span", { "data-testid": `anamnesis-field-${e.key}-highlight`, children: /* @__PURE__ */ i(
3805
3809
  Y,
3806
3810
  {
3807
3811
  variant: "accentSoft",
3808
3812
  size: "sm",
3809
- className: `${Br} ${Hr}`,
3810
- leading: /* @__PURE__ */ i(wn, { "aria-hidden": "true" }),
3811
- children: /* @__PURE__ */ i("span", { className: Vr, children: m })
3813
+ className: `${Kr} ${qr}`,
3814
+ leading: /* @__PURE__ */ i(xn, { "aria-hidden": "true" }),
3815
+ children: /* @__PURE__ */ i("span", { className: Br, children: m })
3812
3816
  }
3813
3817
  ) }) : void 0, k = g ? /* @__PURE__ */ i(bi, { t: s }) : void 0;
3814
3818
  let f = null;
@@ -3876,8 +3880,8 @@ function Mi({
3876
3880
  min: 0,
3877
3881
  variant: "plain",
3878
3882
  unit: e.unit,
3879
- inline: Kr(e),
3880
- mode: e.decimal || qr.has(e.key) ? "decimal" : "integer",
3883
+ inline: Ur(e),
3884
+ mode: e.decimal || Gr.has(e.key) ? "decimal" : "integer",
3881
3885
  onChange: (h) => t({ kind: "number", value: h })
3882
3886
  }
3883
3887
  )
@@ -3976,7 +3980,7 @@ function Mi({
3976
3980
  ]
3977
3981
  }
3978
3982
  ),
3979
- Mr(e, a) ? /* @__PURE__ */ i(M, { label: s("anamnesis.common.details"), children: /* @__PURE__ */ i(
3983
+ Hr(e, a) ? /* @__PURE__ */ i(M, { label: s("anamnesis.common.details"), children: /* @__PURE__ */ i(
3980
3984
  te,
3981
3985
  {
3982
3986
  className: Ie,
@@ -3993,7 +3997,7 @@ function Mi({
3993
3997
  it will need reads as waiting rather than wasted. Inert: it is
3994
3998
  a preview of a control, not one. */
3995
3999
  /* @__PURE__ */ i("div", { "aria-hidden": "true", className: "ds:opacity-50", children: /* @__PURE__ */ i(M, { label: s("anamnesis.common.details"), children: /* @__PURE__ */ i(
3996
- vn,
4000
+ wn,
3997
4001
  {
3998
4002
  className: Ie,
3999
4003
  disabled: !0,
@@ -4070,7 +4074,7 @@ function Mi({
4070
4074
  ] }) }),
4071
4075
  u ? /* @__PURE__ */ i("p", { className: "type-body-sm ds:m-0 ds:mb-[var(--spacing-xs)] ds:text-[color:var(--muted-foreground)]", children: u }) : null,
4072
4076
  /* @__PURE__ */ i("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)]", children: (e.options ?? []).map((y) => /* @__PURE__ */ i(
4073
- yn,
4077
+ kn,
4074
4078
  {
4075
4079
  disabled: r,
4076
4080
  label: s(`anamnesis.field.${e.key}.option.${y}`, {
@@ -4096,13 +4100,13 @@ function Mi({
4096
4100
  ] }) }),
4097
4101
  /* @__PURE__ */ c("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)] ds:sm:flex-row ds:sm:items-start", children: [
4098
4102
  /* @__PURE__ */ i(M, { label: s("anamnesis.common.time"), children: /* @__PURE__ */ i(
4099
- kn,
4103
+ zn,
4100
4104
  {
4101
4105
  disabled: r,
4102
- value: Rr(A),
4106
+ value: Mr(A),
4103
4107
  onChange: (y) => t({
4104
4108
  kind: "meal",
4105
- time: Or(y),
4109
+ time: Vr(y),
4106
4110
  description: h
4107
4111
  })
4108
4112
  }
@@ -4138,7 +4142,7 @@ function Mi({
4138
4142
  function Vi(e) {
4139
4143
  return xe(e).filter((a) => a.goal === !0);
4140
4144
  }
4141
- const Gr = {
4145
+ const Wr = {
4142
4146
  // ±2% of goal weight (≈1.2 kg at 62 kg) is the day-to-day hydration and
4143
4147
  // gut-content swing — indistinguishable from being at target. 10% is the
4144
4148
  // clinically meaningful unit of weight change (the 5–10% loss guidelines are
@@ -4171,43 +4175,43 @@ const Gr = {
4171
4175
  approaching: 0.1,
4172
4176
  sided: "atLeast"
4173
4177
  }
4174
- }, Ur = {
4178
+ }, $r = {
4175
4179
  kind: "relative",
4176
4180
  onTarget: 0.05,
4177
4181
  approaching: 0.15,
4178
4182
  sided: "both"
4179
4183
  };
4180
- function Wr(e) {
4181
- return Gr[e] ?? Ur;
4184
+ function Qr(e) {
4185
+ return Wr[e] ?? $r;
4182
4186
  }
4183
4187
  function Gt(e, a, t) {
4184
4188
  return e.kind === "absolute" ? a : Math.abs(t) * a;
4185
4189
  }
4186
- function $r(e, a, t) {
4190
+ function Zr(e, a, t) {
4187
4191
  if (e == null || !Number.isFinite(e) || a == null || !Number.isFinite(a)) return null;
4188
- const n = Wr(t), o = e - a;
4192
+ const n = Qr(t), o = e - a;
4189
4193
  if (n.sided === "atLeast" && o >= 0 || n.sided === "atMost" && o <= 0) return "onTarget";
4190
4194
  const r = Math.abs(o);
4191
4195
  return r <= Gt(n, n.onTarget, a) ? "onTarget" : r <= Gt(n, n.approaching, a) ? "approaching" : "offTarget";
4192
4196
  }
4193
- const Qr = {
4197
+ const Yr = {
4194
4198
  weight: { min: 20, max: 400, step: 0.1 },
4195
4199
  bmi: { min: 10, max: 60, step: 0.1 },
4196
4200
  waist: { min: 30, max: 250, step: 1 },
4197
4201
  energy: { min: 500, max: 6e3, step: 50 },
4198
4202
  protein: { min: 10, max: 400, step: 5 }
4199
4203
  };
4200
- function Zr(e) {
4201
- const a = Qr[e.key];
4204
+ function Jr(e) {
4205
+ const a = Yr[e.key];
4202
4206
  return a || { min: 0, max: 1e4, step: 10 ** -(e.precision ?? 0) };
4203
4207
  }
4204
- function Yr(e, a) {
4208
+ function Xr(e, a) {
4205
4209
  return e == null ? !0 : Number.isFinite(e) ? e >= a.min && e <= a.max : !1;
4206
4210
  }
4207
- function Jr(e, a) {
4211
+ function el(e, a) {
4208
4212
  return e == null || a == null, e === a;
4209
4213
  }
4210
- function Xr(e, a) {
4214
+ function al(e, a) {
4211
4215
  return a.unit ? `${e.min}–${e.max} ${a.unit}` : `${e.min}–${e.max}`;
4212
4216
  }
4213
4217
  function Hi({
@@ -4218,7 +4222,7 @@ function Hi({
4218
4222
  t: o,
4219
4223
  onCommit: r
4220
4224
  }) {
4221
- const [l, s] = I(!1), [d, u] = I(t), g = Zr(e), b = Yr(d, g), m = !Jr(d, t), v = Te(e, o), k = Xr(g, e), f = (h) => {
4225
+ const [l, s] = I(!1), [d, u] = I(t), g = Jr(e), b = Xr(d, g), m = !el(d, t), v = Te(e, o), k = al(g, e), f = (h) => {
4222
4226
  h && u(t), s(h);
4223
4227
  }, A = (h) => {
4224
4228
  r(h), s(!1);
@@ -4296,12 +4300,12 @@ function Hi({
4296
4300
  )
4297
4301
  ] });
4298
4302
  }
4299
- const el = {
4303
+ const tl = {
4300
4304
  onTarget: "success",
4301
4305
  approaching: "warning",
4302
4306
  offTarget: "error"
4303
4307
  };
4304
- function al({
4308
+ function il({
4305
4309
  variant: e = "outlined",
4306
4310
  label: a,
4307
4311
  target: t,
@@ -4330,7 +4334,7 @@ function al({
4330
4334
  // `mt-auto` pins it to the tile's foot, so a row of tiles stretched to
4331
4335
  // the tallest one lines its chips up instead of leaving a hole.
4332
4336
  /* @__PURE__ */ c("div", { className: "ds:mt-auto ds:flex ds:flex-wrap ds:items-center ds:gap-[var(--spacing-xs)]", children: [
4333
- o ? /* @__PURE__ */ i(Y, { variant: el[o], size: "sm", withDot: !0, children: r }) : null,
4337
+ o ? /* @__PURE__ */ i(Y, { variant: tl[o], size: "sm", withDot: !0, children: r }) : null,
4334
4338
  l
4335
4339
  ] })
4336
4340
  ) : null
@@ -4342,16 +4346,16 @@ function Ua(e, a, t) {
4342
4346
  const n = Pe(e, a.precision, t);
4343
4347
  return a.unit ? `${n} ${a.unit}` : n;
4344
4348
  }
4345
- function tl({ def: e, visits: a, target: t, t: n, onTargetChange: o }) {
4349
+ function nl({ def: e, visits: a, target: t, t: n, onTargetChange: o }) {
4346
4350
  var m;
4347
- const { t: r } = zn("ui"), l = Ee(n), s = ((m = Zn(a, e)) == null ? void 0 : m.value) ?? null, d = $r(s, t, e.key), u = n("anamnesis.targets.tileLabel", {
4351
+ const { t: r } = An("ui"), l = Ee(n), s = ((m = Jn(a, e)) == null ? void 0 : m.value) ?? null, d = Zr(s, t, e.key), u = n("anamnesis.targets.tileLabel", {
4348
4352
  name: qe(e, n)
4349
4353
  }), g = e.computed && s != null, b = s == null ? n("anamnesis.targets.nowUnset") : g ? n("anamnesis.targets.nowBanded", {
4350
4354
  value: Ua(s, e, l),
4351
- band: r(`bmiCalculator.category.${An(s)}`)
4355
+ band: r(`bmiCalculator.category.${Tn(s)}`)
4352
4356
  }) : n("anamnesis.targets.now", { value: Ua(s, e, l) });
4353
4357
  return /* @__PURE__ */ i(
4354
- al,
4358
+ il,
4355
4359
  {
4356
4360
  variant: "elevated",
4357
4361
  label: u,
@@ -4373,7 +4377,7 @@ function tl({ def: e, visits: a, target: t, t: n, onTargetChange: o }) {
4373
4377
  }
4374
4378
  );
4375
4379
  }
4376
- function il(e) {
4380
+ function ol(e) {
4377
4381
  return e <= 1 ? "ds:grid-cols-1" : e === 2 ? "ds:grid-cols-2" : e === 3 ? "ds:grid-cols-2 ds:sm:grid-cols-3" : "ds:grid-cols-2 ds:sm:grid-cols-4";
4378
4382
  }
4379
4383
  function Bi({
@@ -4399,9 +4403,9 @@ function Bi({
4399
4403
  /* @__PURE__ */ i(
4400
4404
  "div",
4401
4405
  {
4402
- className: `ds:grid ds:gap-[var(--spacing-md)] ${il(a.length)}`,
4406
+ className: `ds:grid ds:gap-[var(--spacing-md)] ${ol(a.length)}`,
4403
4407
  children: a.map((r) => /* @__PURE__ */ i(
4404
- tl,
4408
+ nl,
4405
4409
  {
4406
4410
  def: r,
4407
4411
  visits: e,
@@ -4532,7 +4536,7 @@ function ve({
4532
4536
  }
4533
4537
  );
4534
4538
  }
4535
- function nl({
4539
+ function rl({
4536
4540
  record: e,
4537
4541
  t: a,
4538
4542
  embedded: t = !1,
@@ -4594,7 +4598,7 @@ function nl({
4594
4598
  },
4595
4599
  [h.intake]
4596
4600
  ), B = H(
4597
- () => mo(Z, Ae, T.sex, a),
4601
+ () => go(Z, Ae, T.sex, a),
4598
4602
  [Z, Ae, T.sex, a]
4599
4603
  ), U = H(
4600
4604
  () => pi(J, Ae, T.sex, a),
@@ -4681,7 +4685,7 @@ function nl({
4681
4685
  }
4682
4686
  };
4683
4687
  });
4684
- }, en = Kn(n).map(
4688
+ }, en = Un(n).map(
4685
4689
  (z) => {
4686
4690
  const x = me[z], E = x == null ? void 0 : x.parentCode;
4687
4691
  return {
@@ -4753,7 +4757,7 @@ function nl({
4753
4757
  )
4754
4758
  ] }),
4755
4759
  /* @__PURE__ */ i(Q.Content, { value: "summary", children: /* @__PURE__ */ i("div", { className: "ds:pt-[var(--spacing-md)]", children: /* @__PURE__ */ i(
4756
- wo,
4760
+ xo,
4757
4761
  {
4758
4762
  intake: h.intake,
4759
4763
  sections: Z,
@@ -4813,7 +4817,7 @@ function nl({
4813
4817
  value: ui(p.dateIso),
4814
4818
  onChange: (z) => z && ne((x) => ({
4815
4819
  ...x,
4816
- dateIso: io(z) + to(x.dateIso)
4820
+ dateIso: oo(z) + no(x.dateIso)
4817
4821
  }))
4818
4822
  }
4819
4823
  ) })
@@ -5058,7 +5062,7 @@ function nl({
5058
5062
  /* @__PURE__ */ i(
5059
5063
  de,
5060
5064
  {
5061
- icon: /* @__PURE__ */ i(Nn, { "aria-hidden": "true" }),
5065
+ icon: /* @__PURE__ */ i(Cn, { "aria-hidden": "true" }),
5062
5066
  intent: "ghost",
5063
5067
  "aria-label": a("anamnesis.compile.removeTherapy", {
5064
5068
  name: z.name
@@ -5287,29 +5291,29 @@ function Ut({
5287
5291
  }) {
5288
5292
  return e ? /* @__PURE__ */ i("div", { className: "ds:flex ds:w-full ds:flex-col ds:gap-[var(--spacing-lg)]", children: a }) : /* @__PURE__ */ i("div", { className: "ds:min-h-[100dvh] ds:w-full ds:bg-[color:var(--app-shell-background)] ds:py-[var(--spacing-lg)]", children: /* @__PURE__ */ i("div", { className: "ds:mx-auto ds:flex ds:w-full ds:max-w-[76rem] ds:flex-col ds:gap-[var(--spacing-lg)] ds:px-[var(--spacing-md)]", children: a }) });
5289
5293
  }
5290
- const ol = /* @__PURE__ */ new Set([
5294
+ const ll = /* @__PURE__ */ new Set([
5291
5295
  "number",
5292
5296
  "choice",
5293
5297
  "frequency",
5294
5298
  "yesNoDetail"
5295
5299
  ]);
5296
- function rl(e) {
5297
- return ol.has(e.type);
5300
+ function sl(e) {
5301
+ return ll.has(e.type);
5298
5302
  }
5299
- function ll(e) {
5300
- return e.fields.length > 0 && e.fields.every(rl);
5303
+ function dl(e) {
5304
+ return e.fields.length > 0 && e.fields.every(sl);
5301
5305
  }
5302
- function sl(e) {
5306
+ function cl(e) {
5303
5307
  return e.type === "text" && e.longForm === !0;
5304
5308
  }
5305
- function dl(e) {
5306
- return e.type === "textarea" || sl(e) ? !0 : e.detail === !0 && cl.has(e.type);
5309
+ function ul(e) {
5310
+ return e.type === "textarea" || cl(e) ? !0 : e.detail === !0 && ml.has(e.type);
5307
5311
  }
5308
- const cl = /* @__PURE__ */ new Set([
5312
+ const ml = /* @__PURE__ */ new Set([
5309
5313
  "yesNoDetail",
5310
5314
  "frequency",
5311
5315
  "choice"
5312
- ]), ul = "ds:grid ds:grid-cols-1 ds:gap-[var(--spacing-lg)] ds:@[640px]/intake:grid-cols-2 ds:@[960px]/intake:grid-cols-3 ds:@[1280px]/intake:grid-cols-4", ml = "ds:grid ds:grid-cols-1 ds:gap-[var(--spacing-lg)] ds:@[640px]/intake:grid-cols-2", pl = "ds:col-span-full";
5316
+ ]), pl = "ds:grid ds:grid-cols-1 ds:gap-[var(--spacing-lg)] ds:@[640px]/intake:grid-cols-2 ds:@[960px]/intake:grid-cols-3 ds:@[1280px]/intake:grid-cols-4", gl = "ds:grid ds:grid-cols-1 ds:gap-[var(--spacing-lg)] ds:@[640px]/intake:grid-cols-2", hl = "ds:col-span-full";
5313
5317
  function Wt(e) {
5314
5318
  var n;
5315
5319
  const a = {}, t = ((n = e.intake) == null ? void 0 : n.answers) ?? {};
@@ -5425,7 +5429,7 @@ function qi({
5425
5429
  ] }) : null
5426
5430
  ] }),
5427
5431
  /* @__PURE__ */ c("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)]", children: [
5428
- /* @__PURE__ */ i(Dn, { value: D, ariaLabel: q }),
5432
+ /* @__PURE__ */ i(Pn, { value: D, ariaLabel: q }),
5429
5433
  /* @__PURE__ */ i(
5430
5434
  "p",
5431
5435
  {
@@ -5460,7 +5464,7 @@ function qi({
5460
5464
  description: a("anamnesis.empty.noQuestions.description")
5461
5465
  }
5462
5466
  ) : /* @__PURE__ */ i(
5463
- Tn,
5467
+ Sn,
5464
5468
  {
5465
5469
  type: "multiple",
5466
5470
  variant: "default",
@@ -5469,33 +5473,33 @@ function qi({
5469
5473
  children: f.map((P) => {
5470
5474
  const G = P.fields.filter(
5471
5475
  (J) => Ve(g[J.key])
5472
- ).length, Z = ll(P);
5476
+ ).length, Z = dl(P);
5473
5477
  return /* @__PURE__ */ c(
5474
- Cn,
5478
+ _n,
5475
5479
  {
5476
5480
  value: P.key,
5477
5481
  onBlur: (J) => h(P, J),
5478
5482
  children: [
5479
- /* @__PURE__ */ i(Sn, { children: /* @__PURE__ */ c("span", { className: "ds:flex ds:w-full ds:flex-wrap ds:items-center ds:justify-between ds:gap-[var(--spacing-sm)]", children: [
5483
+ /* @__PURE__ */ i(Dn, { children: /* @__PURE__ */ c("span", { className: "ds:flex ds:w-full ds:flex-wrap ds:items-center ds:justify-between ds:gap-[var(--spacing-sm)]", children: [
5480
5484
  /* @__PURE__ */ i("span", { children: ye(P, a) }),
5481
5485
  /* @__PURE__ */ i("span", { className: "type-meta ds:text-[color:var(--muted-foreground)]", children: a("anamnesis.intake.sectionProgress", {
5482
5486
  answered: G,
5483
5487
  total: P.fields.length
5484
5488
  }) })
5485
5489
  ] }) }),
5486
- /* @__PURE__ */ i(_n, { children: /* @__PURE__ */ i(
5490
+ /* @__PURE__ */ i(jn, { children: /* @__PURE__ */ i(
5487
5491
  "div",
5488
5492
  {
5489
5493
  "data-testid": `anamnesis-intake-section-${P.key}-fields`,
5490
5494
  "data-layout": Z ? "short" : "mixed",
5491
- className: Z ? ul : ml,
5495
+ className: Z ? pl : gl,
5492
5496
  children: P.fields.map((J) => /* @__PURE__ */ i(
5493
5497
  Mi,
5494
5498
  {
5495
5499
  readOnly: s,
5496
5500
  def: J,
5497
5501
  answer: g[J.key],
5498
- className: dl(J) ? pl : void 0,
5502
+ className: ul(J) ? hl : void 0,
5499
5503
  onChange: (me) => k(J.key, me),
5500
5504
  t: a
5501
5505
  },
@@ -5526,7 +5530,7 @@ function qi({
5526
5530
  ie,
5527
5531
  {
5528
5532
  intent: "primary",
5529
- startIcon: /* @__PURE__ */ i(In, { "aria-hidden": "true" }),
5533
+ startIcon: /* @__PURE__ */ i(On, { "aria-hidden": "true" }),
5530
5534
  "data-testid": "anamnesis-intake-submit",
5531
5535
  onClick: () => {
5532
5536
  v(!0), r == null || r(g);
@@ -5575,7 +5579,7 @@ function $a({
5575
5579
  ] }, l.key);
5576
5580
  }) });
5577
5581
  }
5578
- function gl({
5582
+ function bl({
5579
5583
  record: e,
5580
5584
  t: a,
5581
5585
  embedded: t = !1,
@@ -5797,7 +5801,7 @@ function $t({
5797
5801
  }) {
5798
5802
  return e ? /* @__PURE__ */ i("div", { className: "ds:flex ds:w-full ds:flex-col ds:gap-[var(--spacing-lg)]", children: a }) : /* @__PURE__ */ i("div", { className: "ds:min-h-[100dvh] ds:w-full ds:bg-[color:var(--app-shell-background)] ds:py-[var(--spacing-lg)]", children: /* @__PURE__ */ i("div", { className: "ds:mx-auto ds:flex ds:w-full ds:max-w-[76rem] ds:flex-col ds:gap-[var(--spacing-lg)] ds:px-[var(--spacing-md)]", children: a }) });
5799
5803
  }
5800
- const hl = [];
5804
+ const fl = [];
5801
5805
  function ca({
5802
5806
  variant: e = "first-use",
5803
5807
  testId: a = "anamnesis-empty-card",
@@ -5827,7 +5831,7 @@ function Ki({
5827
5831
  statusSlot: r,
5828
5832
  onTargetChange: l,
5829
5833
  hideTargetStrip: s = !1,
5830
- leadingTabs: d = hl,
5834
+ leadingTabs: d = fl,
5831
5835
  readOnly: u = !1,
5832
5836
  questionnaireSlot: g,
5833
5837
  questionnaireHeaderSlot: b,
@@ -5975,7 +5979,7 @@ function Ki({
5975
5979
  );
5976
5980
  }
5977
5981
  Ki.displayName = "AnamnesisQuestionnaire";
5978
- function Xs({
5982
+ function td({
5979
5983
  mode: e,
5980
5984
  record: a,
5981
5985
  t,
@@ -6039,7 +6043,7 @@ function Xs({
6039
6043
  partitionBySource: T
6040
6044
  }
6041
6045
  ) : e === "compile" ? /* @__PURE__ */ i(
6042
- nl,
6046
+ rl,
6043
6047
  {
6044
6048
  record: a,
6045
6049
  t,
@@ -6060,7 +6064,7 @@ function Xs({
6060
6064
  partitionBySource: T
6061
6065
  }
6062
6066
  ) : /* @__PURE__ */ i(
6063
- gl,
6067
+ bl,
6064
6068
  {
6065
6069
  record: a,
6066
6070
  t,
@@ -6091,7 +6095,7 @@ function Xs({
6091
6095
  }
6092
6096
  );
6093
6097
  }
6094
- const bl = Xt("", {
6098
+ const yl = Xt("", {
6095
6099
  variants: {
6096
6100
  dragging: {
6097
6101
  true: "ds:opacity-60",
@@ -6159,7 +6163,7 @@ function Za({
6159
6163
  const v = n.dragSource;
6160
6164
  r(!1), n.setDragSource(null), !(v === null || v === e) && s(v, e);
6161
6165
  },
6162
- className: bl({
6166
+ className: yl({
6163
6167
  dragging: u,
6164
6168
  dropTarget: o && !u
6165
6169
  })
@@ -6168,7 +6172,7 @@ function Za({
6168
6172
  {
6169
6173
  size: "sm",
6170
6174
  intent: "ghost",
6171
- icon: /* @__PURE__ */ i(jn, { "aria-hidden": "true" }),
6175
+ icon: /* @__PURE__ */ i(En, { "aria-hidden": "true" }),
6172
6176
  "aria-label": l("anamnesis.configEditor.reorderHandle", { name: a }),
6173
6177
  className: "ds:cursor-grab ds:active:cursor-grabbing",
6174
6178
  onKeyDown: d
@@ -6176,7 +6180,7 @@ function Za({
6176
6180
  );
6177
6181
  return t({ rowProps: g, handle: b });
6178
6182
  }
6179
- function ed() {
6183
+ function id() {
6180
6184
  return {
6181
6185
  parameters: $e.parameters.map((e) => ({
6182
6186
  ...e,
@@ -6205,7 +6209,7 @@ function Ja(e, a, t) {
6205
6209
  const n = [...e], [o] = n.splice(a, 1);
6206
6210
  return n.splice(t, 0, o), n;
6207
6211
  }
6208
- const fl = [
6212
+ const vl = [
6209
6213
  "text",
6210
6214
  "textarea",
6211
6215
  "numberInteger",
@@ -6216,7 +6220,7 @@ const fl = [
6216
6220
  "multiChoice",
6217
6221
  "frequency",
6218
6222
  "meal"
6219
- ], yl = new Set(
6223
+ ], kl = new Set(
6220
6224
  $e.intakeSections.flatMap(
6221
6225
  (e) => e.fields.map((a) => a.key)
6222
6226
  )
@@ -6225,8 +6229,8 @@ function Ui(e, a) {
6225
6229
  const t = e.type === "number" ? e.decimal ? "numberDecimal" : "numberInteger" : e.type === "choice" && e.detail ? "choiceWithText" : e.type;
6226
6230
  return a(`anamnesis.configEditor.type.${t}`);
6227
6231
  }
6228
- const vl = ["down", "up", "toRange"], nt = ["anthropometric", "dietary", "lab"];
6229
- function ad({
6232
+ const wl = ["down", "up", "toRange"], nt = ["anthropometric", "dietary", "lab"];
6233
+ function nd({
6230
6234
  config: e,
6231
6235
  onConfigChange: a,
6232
6236
  t,
@@ -6614,7 +6618,7 @@ function ad({
6614
6618
  t,
6615
6619
  children: /* @__PURE__ */ i(aa, { divider: "divided", children: S.map((w, C) => {
6616
6620
  const F = [
6617
- kl(w, t),
6621
+ zl(w, t),
6618
6622
  t(
6619
6623
  `anamnesis.configEditor.direction.${w.betterDirection}`
6620
6624
  ),
@@ -6636,7 +6640,7 @@ function ad({
6636
6640
  {
6637
6641
  size: "sm",
6638
6642
  variant: "neutral",
6639
- leading: /* @__PURE__ */ i(Pn, { "aria-hidden": "true" }),
6643
+ leading: /* @__PURE__ */ i(Ln, { "aria-hidden": "true" }),
6640
6644
  children: t("anamnesis.configEditor.locked")
6641
6645
  }
6642
6646
  ) : null,
@@ -6893,7 +6897,7 @@ function ad({
6893
6897
  ] }) })
6894
6898
  ] }) }) }),
6895
6899
  /* @__PURE__ */ i(
6896
- wl,
6900
+ xl,
6897
6901
  {
6898
6902
  editing: o,
6899
6903
  onClose: () => r(null),
@@ -6903,7 +6907,7 @@ function ad({
6903
6907
  }
6904
6908
  ),
6905
6909
  /* @__PURE__ */ i(
6906
- Nl,
6910
+ Cl,
6907
6911
  {
6908
6912
  adding: l,
6909
6913
  onClose: () => s(null),
@@ -6916,11 +6920,11 @@ function ad({
6916
6920
  }
6917
6921
  );
6918
6922
  }
6919
- function kl(e, a) {
6923
+ function zl(e, a) {
6920
6924
  const t = e.referenceRange;
6921
6925
  return t ? t.min != null && t.max != null ? `${t.min}–${t.max}` : t.max != null ? a("anamnesis.range.atMost", { value: t.max }) : t.min != null ? a("anamnesis.range.atLeast", { value: t.min }) : null : null;
6922
6926
  }
6923
- function wl({
6927
+ function xl({
6924
6928
  editing: e,
6925
6929
  onClose: a,
6926
6930
  config: t,
@@ -6935,7 +6939,7 @@ function wl({
6935
6939
  r || a();
6936
6940
  },
6937
6941
  children: e ? /* @__PURE__ */ i(
6938
- xl,
6942
+ Nl,
6939
6943
  {
6940
6944
  editing: e,
6941
6945
  onClose: a,
@@ -6943,26 +6947,26 @@ function wl({
6943
6947
  onConfigChange: n,
6944
6948
  t: o
6945
6949
  },
6946
- zl(e)
6950
+ Al(e)
6947
6951
  ) : null
6948
6952
  }
6949
6953
  );
6950
6954
  }
6951
- function zl(e) {
6955
+ function Al(e) {
6952
6956
  return e.kind === "pathology" ? `pathology:${e.entry.code}` : e.kind === "field" ? `field:${e.sectionKey}:${e.entry.key}` : `${e.kind}:${e.entry.key}`;
6953
6957
  }
6954
- function xl({
6958
+ function Nl({
6955
6959
  editing: e,
6956
6960
  onClose: a,
6957
6961
  config: t,
6958
6962
  onConfigChange: n,
6959
6963
  t: o
6960
6964
  }) {
6961
- const r = e.entry, l = Al(e, o), [s, d] = I(r.label ?? ""), [u, g] = I(
6965
+ const r = e.entry, l = Tl(e, o), [s, d] = I(r.label ?? ""), [u, g] = I(
6962
6966
  e.kind === "field" ? r.helpText ?? "" : ""
6963
6967
  ), [b, m] = I(
6964
6968
  e.kind === "field" && e.entry.required === !0
6965
- ), v = e.kind === "field" ? e.entry : null, k = v !== null && (v.type === "choice" || v.type === "multiChoice"), f = k && !yl.has(v.key), [A, h] = I(
6969
+ ), v = e.kind === "field" ? e.entry : null, k = v !== null && (v.type === "choice" || v.type === "multiChoice"), f = k && !kl.has(v.key), [A, h] = I(
6966
6970
  f ? (v.options ?? []).join(", ") : ""
6967
6971
  ), y = A.split(",").map((T) => T.trim()).filter(Boolean), N = !f || y.length > 0, j = () => {
6968
6972
  const T = s.trim(), R = (p) => {
@@ -7080,7 +7084,7 @@ function xl({
7080
7084
  ] })
7081
7085
  ] });
7082
7086
  }
7083
- function Al(e, a) {
7087
+ function Tl(e, a) {
7084
7088
  return e.kind === "parameter" ? Te({ ...e.entry, label: void 0 }, a) : e.kind === "section" ? ye({ ...e.entry, label: void 0 }, a) : e.kind === "field" ? ge({ ...e.entry, label: void 0 }, a) : Se(e.entry.code, a, {
7085
7089
  ...e.entry,
7086
7090
  label: void 0
@@ -7089,7 +7093,7 @@ function Al(e, a) {
7089
7093
  function Xa(e) {
7090
7094
  return e === "choice" || e === "choiceWithText" || e === "multiChoice";
7091
7095
  }
7092
- function Nl({
7096
+ function Cl({
7093
7097
  adding: e,
7094
7098
  onClose: a,
7095
7099
  config: t,
@@ -7104,7 +7108,7 @@ function Nl({
7104
7108
  r || a();
7105
7109
  },
7106
7110
  children: e ? /* @__PURE__ */ i(
7107
- Tl,
7111
+ Sl,
7108
7112
  {
7109
7113
  adding: e,
7110
7114
  onClose: a,
@@ -7117,7 +7121,7 @@ function Nl({
7117
7121
  }
7118
7122
  );
7119
7123
  }
7120
- function Tl({
7124
+ function Sl({
7121
7125
  adding: e,
7122
7126
  onClose: a,
7123
7127
  config: t,
@@ -7127,10 +7131,10 @@ function Tl({
7127
7131
  const [r, l] = I(""), [s, d] = I(""), [u, g] = I(""), [b, m] = I(""), [v, k] = I(""), [f, A] = I(""), [h, y] = I("0"), [N, j] = I(""), [T, R] = I(""), [p, S] = I(""), [w, C] = I(""), [F, O] = I(!1), [D, q] = I(""), $ = nt.map((_) => ({
7128
7132
  value: _,
7129
7133
  label: o(`anamnesis.group.${_}`)
7130
- })), V = vl.map((_) => ({
7134
+ })), V = wl.map((_) => ({
7131
7135
  value: _,
7132
7136
  label: o(`anamnesis.configEditor.direction.${_}`)
7133
- })), P = fl.map((_) => ({
7137
+ })), P = vl.map((_) => ({
7134
7138
  value: _,
7135
7139
  label: o(`anamnesis.configEditor.type.${_}`)
7136
7140
  })), G = t.pathologies.filter((_) => !_.parentCode && _.enabled !== !1).map((_) => ({
@@ -7210,7 +7214,7 @@ function Tl({
7210
7214
  }
7211
7215
  a();
7212
7216
  }, he = e.kind === "parameter" ? o("anamnesis.configEditor.addParameterTitle") : e.kind === "field" ? o("anamnesis.configEditor.addQuestionTitle", {
7213
- section: Cl(t, e.sectionKey, o)
7217
+ section: _l(t, e.sectionKey, o)
7214
7218
  }) : e.kind === "section" ? o("anamnesis.configEditor.addSectionTitle") : o("anamnesis.configEditor.addCodeTitle");
7215
7219
  return /* @__PURE__ */ c(ee.Content, { size: "sm", children: [
7216
7220
  /* @__PURE__ */ c(ee.Header, { children: [
@@ -7392,7 +7396,7 @@ function Tl({
7392
7396
  ] })
7393
7397
  ] });
7394
7398
  }
7395
- function Cl(e, a, t) {
7399
+ function _l(e, a, t) {
7396
7400
  const n = e.intakeSections.find(
7397
7401
  (o) => o.key === a
7398
7402
  );
@@ -7401,7 +7405,7 @@ function Cl(e, a, t) {
7401
7405
  function Qt(e) {
7402
7406
  return e.kind === "visit" ? `anamnesis-visit-${e.visitId}` : `anamnesis-event-${e.eventId}`;
7403
7407
  }
7404
- function td(e, a) {
7408
+ function od(e, a) {
7405
7409
  const t = e.visits.filter(Ai).map((o) => ({
7406
7410
  id: Qt({ kind: "visit", visitId: o.id }),
7407
7411
  dateIso: o.dateIso,
@@ -7441,7 +7445,7 @@ function td(e, a) {
7441
7445
  (o, r) => r.dateIso.localeCompare(o.dateIso)
7442
7446
  );
7443
7447
  }
7444
- const Sl = {
7448
+ const Dl = {
7445
7449
  anamnesis: {
7446
7450
  mainLabel: "سجل التاريخ المرضي: {{mode}}",
7447
7451
  mode: {
@@ -8213,7 +8217,7 @@ const Sl = {
8213
8217
  perWeek: "عدد المرات أسبوعيًا: {{times}}"
8214
8218
  }
8215
8219
  }
8216
- }, _l = {
8220
+ }, jl = {
8217
8221
  anamnesis: {
8218
8222
  mainLabel: "Anamneseakte: {{mode}}",
8219
8223
  mode: {
@@ -8949,7 +8953,7 @@ const Sl = {
8949
8953
  }
8950
8954
  }
8951
8955
  }
8952
- }, Dl = {
8956
+ }, Pl = {
8953
8957
  anamnesis: {
8954
8958
  mainLabel: "Φάκελος ιστορικού: {{mode}}",
8955
8959
  mode: {
@@ -9685,7 +9689,7 @@ const Sl = {
9685
9689
  }
9686
9690
  }
9687
9691
  }
9688
- }, jl = {
9692
+ }, El = {
9689
9693
  anamnesis: {
9690
9694
  mainLabel: "Anamnesis record — {{mode}}",
9691
9695
  mode: {
@@ -10421,7 +10425,7 @@ const Sl = {
10421
10425
  }
10422
10426
  }
10423
10427
  }
10424
- }, Pl = {
10428
+ }, Ll = {
10425
10429
  anamnesis: {
10426
10430
  mainLabel: "Historial de anamnesis: {{mode}}",
10427
10431
  mode: {
@@ -11166,7 +11170,7 @@ const Sl = {
11166
11170
  }
11167
11171
  }
11168
11172
  }
11169
- }, El = {
11173
+ }, Fl = {
11170
11174
  anamnesis: {
11171
11175
  mainLabel: "Dossier d’anamnèse : {{mode}}",
11172
11176
  mode: {
@@ -11911,7 +11915,7 @@ const Sl = {
11911
11915
  }
11912
11916
  }
11913
11917
  }
11914
- }, Ll = {
11918
+ }, Il = {
11915
11919
  anamnesis: {
11916
11920
  mainLabel: "चिकित्सा इतिहास रिकॉर्ड: {{mode}}",
11917
11921
  mode: {
@@ -12647,7 +12651,7 @@ const Sl = {
12647
12651
  }
12648
12652
  }
12649
12653
  }
12650
- }, Fl = {
12654
+ }, Rl = {
12651
12655
  anamnesis: {
12652
12656
  mainLabel: "Cartella anamnestica: {{mode}}",
12653
12657
  mode: {
@@ -13392,7 +13396,7 @@ const Sl = {
13392
13396
  }
13393
13397
  }
13394
13398
  }
13395
- }, Il = {
13399
+ }, Ol = {
13396
13400
  anamnesis: {
13397
13401
  mainLabel: "問診記録 — {{mode}}",
13398
13402
  mode: {
@@ -14128,7 +14132,7 @@ const Sl = {
14128
14132
  }
14129
14133
  }
14130
14134
  }
14131
- }, Rl = {
14135
+ }, Ml = {
14132
14136
  anamnesis: {
14133
14137
  mainLabel: "Anamnesedossier: {{mode}}",
14134
14138
  mode: {
@@ -14864,7 +14868,7 @@ const Sl = {
14864
14868
  }
14865
14869
  }
14866
14870
  }
14867
- }, Ol = {
14871
+ }, Vl = {
14868
14872
  anamnesis: {
14869
14873
  mainLabel: "Karta wywiadu medycznego: {{mode}}",
14870
14874
  mode: {
@@ -15618,7 +15622,7 @@ const Sl = {
15618
15622
  }
15619
15623
  }
15620
15624
  }
15621
- }, Ml = {
15625
+ }, Hl = {
15622
15626
  anamnesis: {
15623
15627
  mainLabel: "Registo de anamnese: {{mode}}",
15624
15628
  mode: {
@@ -16372,7 +16376,7 @@ const Sl = {
16372
16376
  }
16373
16377
  }
16374
16378
  }
16375
- }, Vl = {
16379
+ }, Bl = {
16376
16380
  anamnesis: {
16377
16381
  mainLabel: "Fișă de anamneză: {{mode}}",
16378
16382
  mode: {
@@ -17117,7 +17121,7 @@ const Sl = {
17117
17121
  }
17118
17122
  }
17119
17123
  }
17120
- }, Hl = {
17124
+ }, ql = {
17121
17125
  anamnesis: {
17122
17126
  mainLabel: "Карта анамнеза: {{mode}}",
17123
17127
  mode: {
@@ -17871,7 +17875,7 @@ const Sl = {
17871
17875
  }
17872
17876
  }
17873
17877
  }
17874
- }, Bl = {
17878
+ }, Kl = {
17875
17879
  anamnesis: {
17876
17880
  mainLabel: "Kartela e anamnezës: {{mode}}",
17877
17881
  mode: {
@@ -18607,7 +18611,7 @@ const Sl = {
18607
18611
  }
18608
18612
  }
18609
18613
  }
18610
- }, ql = {
18614
+ }, Gl = {
18611
18615
  anamnesis: {
18612
18616
  mainLabel: "Anamnesjournal: {{mode}}",
18613
18617
  mode: {
@@ -19343,7 +19347,7 @@ const Sl = {
19343
19347
  }
19344
19348
  }
19345
19349
  }
19346
- }, Kl = {
19350
+ }, Ul = {
19347
19351
  anamnesis: {
19348
19352
  mainLabel: "Anamnez kaydı: {{mode}}",
19349
19353
  mode: {
@@ -20079,7 +20083,7 @@ const Sl = {
20079
20083
  optionHasNote: "{{label}} · not"
20080
20084
  }
20081
20085
  }
20082
- }, Gl = {
20086
+ }, Wl = {
20083
20087
  anamnesis: {
20084
20088
  mainLabel: "病史档案:{{mode}}",
20085
20089
  mode: {
@@ -20815,31 +20819,31 @@ const Sl = {
20815
20819
  }
20816
20820
  }
20817
20821
  }
20818
- }, Ul = "patterns", Wl = {
20819
- ar: Sl,
20820
- de: _l,
20821
- el: Dl,
20822
- en: jl,
20823
- es: Pl,
20824
- fr: El,
20825
- hi: Ll,
20826
- it: Fl,
20827
- ja: Il,
20828
- nl: Rl,
20829
- pl: Ol,
20830
- pt: Ml,
20831
- ro: Vl,
20832
- ru: Hl,
20833
- sq: Bl,
20834
- sv: ql,
20835
- tr: Kl,
20836
- zh: Gl
20822
+ }, $l = "patterns", Ql = {
20823
+ ar: Dl,
20824
+ de: jl,
20825
+ el: Pl,
20826
+ en: El,
20827
+ es: Ll,
20828
+ fr: Fl,
20829
+ hi: Il,
20830
+ it: Rl,
20831
+ ja: Ol,
20832
+ nl: Ml,
20833
+ pl: Vl,
20834
+ pt: Hl,
20835
+ ro: Bl,
20836
+ ru: ql,
20837
+ sq: Kl,
20838
+ sv: Gl,
20839
+ tr: Ul,
20840
+ zh: Wl
20837
20841
  };
20838
- function id(e) {
20839
- for (const [a, t] of Object.entries(Wl))
20840
- e.addResourceBundle(a, Ul, t, !0, !1);
20842
+ function rd(e) {
20843
+ for (const [a, t] of Object.entries(Ql))
20844
+ e.addResourceBundle(a, $l, t, !0, !1);
20841
20845
  }
20842
- function $l(e) {
20846
+ function Zl(e) {
20843
20847
  var t;
20844
20848
  if (!e) return;
20845
20849
  const a = Je(e) ? new Date(e).getTime() : (t = ui(e)) == null ? void 0 : t.getTime();
@@ -20848,22 +20852,22 @@ function $l(e) {
20848
20852
  function Wi(e) {
20849
20853
  return e.reportedAtIso ?? e.response.submittedAtIso;
20850
20854
  }
20851
- function Ql(e, a) {
20855
+ function Yl(e, a) {
20852
20856
  var o;
20853
20857
  let t, n = Number.NEGATIVE_INFINITY;
20854
20858
  for (const r of a) {
20855
20859
  const l = (o = r.response.answers[e]) == null ? void 0 : o.value;
20856
20860
  if (!l || !Ve(l)) continue;
20857
- const s = $l(Wi(r)) ?? Number.NEGATIVE_INFINITY;
20861
+ const s = Zl(Wi(r)) ?? Number.NEGATIVE_INFINITY;
20858
20862
  s >= n && (t = { answer: l, source: r }, n = s);
20859
20863
  }
20860
20864
  return t;
20861
20865
  }
20862
- function Zl(e, a) {
20866
+ function Jl(e, a) {
20863
20867
  const t = e.relevance ?? "any";
20864
20868
  return a === void 0 || t === "any" || t === a;
20865
20869
  }
20866
- function Yl(e, a, t) {
20870
+ function Xl(e, a, t) {
20867
20871
  const n = {
20868
20872
  id: e.key,
20869
20873
  label: ge(e, t),
@@ -20874,19 +20878,19 @@ function Yl(e, a, t) {
20874
20878
  const o = Wi(a.source);
20875
20879
  return o && (n.reportedAtIso = o), a.source.sourceLabel && (n.sourceLabel = a.source.sourceLabel), n;
20876
20880
  }
20877
- function nd(e, a, t, n) {
20881
+ function ld(e, a, t, n) {
20878
20882
  const o = [];
20879
20883
  let r = 0;
20880
20884
  for (const l of e) {
20881
20885
  const s = [];
20882
20886
  for (const d of l.fields) {
20883
- if (!Zl(d, n == null ? void 0 : n.sex)) continue;
20884
- const u = Ql(d.key, a);
20887
+ if (!Jl(d, n == null ? void 0 : n.sex)) continue;
20888
+ const u = Yl(d.key, a);
20885
20889
  if (!u) {
20886
20890
  r += 1;
20887
20891
  continue;
20888
20892
  }
20889
- s.push(Yl(d, u, t));
20893
+ s.push(Xl(d, u, t));
20890
20894
  }
20891
20895
  s.length !== 0 && o.push({
20892
20896
  id: l.key,
@@ -20897,31 +20901,31 @@ function nd(e, a, t, n) {
20897
20901
  return { sections: o, unansweredCount: r };
20898
20902
  }
20899
20903
  export {
20900
- Xs as A,
20901
- Hn as L,
20902
- Ul as P,
20904
+ td as A,
20905
+ qn as L,
20906
+ $l as P,
20903
20907
  $e as S,
20904
- Js as T,
20905
- ad as a,
20908
+ ad as T,
20909
+ nd as a,
20906
20910
  De as b,
20907
20911
  et as c,
20908
20912
  We as d,
20909
20913
  Qt as e,
20910
- td as f,
20911
- Kn as g,
20914
+ od as f,
20915
+ Un as g,
20912
20916
  xe as h,
20913
20917
  ri as i,
20914
20918
  st as j,
20915
20919
  Ra as k,
20916
20920
  ge as l,
20917
20921
  Oi as m,
20918
- Bn as n,
20922
+ Kn as n,
20919
20923
  ii as o,
20920
20924
  Ya as p,
20921
20925
  ra as q,
20922
- id as r,
20923
- ed as s,
20926
+ rd as r,
20927
+ id as s,
20924
20928
  Vi as t,
20925
- nd as u
20929
+ ld as u
20926
20930
  };
20927
- //# sourceMappingURL=anamnesis-summary-rows-BIfw890v.js.map
20931
+ //# sourceMappingURL=anamnesis-summary-rows-CNK0fIJk.js.map