@alfadocs/ui-kit 1.137.0 → 1.139.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 (244) hide show
  1. package/dist/_chunks/{address-fields-DvSWdeR0.js → address-fields-Bh9JZJHZ.js} +4 -4
  2. package/dist/_chunks/{ai-prompt-input-CVNeusoW.js → ai-prompt-input-B2QFwuJ1.js} +2 -2
  3. package/dist/_chunks/{anamnesis-summary-rows-Dr2V1Rtf.js → anamnesis-summary-rows-BgfBnjp0.js} +4 -4
  4. package/dist/_chunks/{appointment-card-BT1cMZIX.js → appointment-card-CaxFXtSn.js} +196 -184
  5. package/dist/_chunks/{appointment-timeline-Dy4YQJ17.js → appointment-timeline-BEwgbYyG.js} +113 -110
  6. package/dist/_chunks/{appointment-tray-B3gSHL1j.js → appointment-tray-DPpeR9JT.js} +8 -8
  7. package/dist/_chunks/{audio-recorder-BOF5YYoC.js → audio-recorder-6dUq8I38.js} +2 -2
  8. package/dist/_chunks/autocomplete-HZNW7_Pa.js +642 -0
  9. package/dist/_chunks/{balance-badge-cell-BSB02Bwo.js → balance-badge-cell-CRrIv2hy.js} +4 -4
  10. package/dist/_chunks/{bill-line-table-By-YL2ms.js → bill-line-table-DCqxhode.js} +3 -3
  11. package/dist/_chunks/{bishop-score-DWGESRP9.js → bishop-score-M7Fi-ykx.js} +2 -2
  12. package/dist/_chunks/{calendar-appointment-editor-dialog-D0n_bVsT.js → calendar-appointment-editor-dialog-GdnaPIOV.js} +537 -536
  13. package/dist/_chunks/{calendar-editor-discard-host-1UfmMOEb.js → calendar-editor-discard-host-BcMEgVEq.js} +3 -3
  14. package/dist/_chunks/{calendar-waiting-list-panel-Ckd6tSeu.js → calendar-waiting-list-panel-CkZBAv_E.js} +4 -4
  15. package/dist/_chunks/{calendar-workspace.model-DrOoxY1b.js → calendar-workspace.model-B8yPwuBv.js} +2 -2
  16. package/dist/_chunks/{calendar.sheets-Datc0-IT.js → calendar.sheets-B0jP2Yt0.js} +113 -112
  17. package/dist/_chunks/{calls-panel-BIfatK90.js → calls-panel-CtxJAzkJ.js} +2 -2
  18. package/dist/_chunks/{city-input-DXipzTfZ.js → city-input-DARVDJhH.js} +2 -2
  19. package/dist/_chunks/{combobox-BBCVQS-S.js → combobox-BYl6mY4c.js} +12 -13
  20. package/dist/_chunks/{communications-panel-SQ-55e3V.js → communications-panel-DBWM9II9.js} +2 -2
  21. package/dist/_chunks/{country-select-C2GdvRtS.js → country-select-BPISkYVU.js} +3 -3
  22. package/dist/_chunks/{data-grid-CxKz8flO.js → data-grid-bQ6iFm10.js} +15 -7
  23. package/dist/_chunks/{data-table-_tgj0C_T.js → data-table-CnLfOwxg.js} +2 -2
  24. package/dist/_chunks/{default-tabs-oDWQzbN7.js → default-tabs-Dm_vk6hd.js} +3 -3
  25. package/dist/_chunks/{document-preview-CirR3C_m.js → document-preview-FTCHXYhk.js} +2 -2
  26. package/dist/_chunks/{face-scheme-D_Y1StPl.js → face-scheme-Bxt7ZnJn.js} +2 -2
  27. package/dist/_chunks/{file-manager-CEi4z2i0.js → file-manager-Bsccb8Jj.js} +2 -2
  28. package/dist/_chunks/{forgot-password-form-YvI9vX-G.js → forgot-password-form-B4ufmBFn.js} +5 -4
  29. package/dist/_chunks/{gestational-age-calculator-CHbpC4vL.js → gestational-age-calculator-DXSPWG8u.js} +2 -2
  30. package/dist/_chunks/{heatmap-_546qI2V.js → heatmap-CFPaEKD_.js} +2 -2
  31. package/dist/_chunks/{invoice-upload-list-CQI9MUl6.js → invoice-upload-list-Dz3CXHPP.js} +3 -3
  32. package/dist/_chunks/{kit-extensions-BNBf4m8O.js → kit-extensions-BB_ksnVl.js} +3 -3
  33. package/dist/_chunks/{link-cell-renderer-Xx5T8u5Q.js → link-cell-renderer-CSA0KKPe.js} +5 -5
  34. package/dist/_chunks/{login-dev-card-Dz3ezx1o.js → login-dev-card-oRh9h7N2.js} +18 -17
  35. package/dist/_chunks/medication-I6QvOq6k.js +21 -0
  36. package/dist/_chunks/medication-line-CHdlh-F7.js +222 -0
  37. package/dist/_chunks/medication-search-DoEDakoM.js +380 -0
  38. package/dist/_chunks/{multi-select-Df3R8lv_.js → multi-select-DeMiHm8T.js} +4 -5
  39. package/dist/_chunks/{muscle-scheme-D_rSyGDj.js → muscle-scheme-BB2eBfww.js} +2 -2
  40. package/dist/_chunks/normalize-diacritics-DhJjQ3Bp.js +7 -0
  41. package/dist/_chunks/{notes-panel-DsEKNtsw.js → notes-panel-CnmQqhwq.js} +2 -2
  42. package/dist/_chunks/{optical-prescription-DaSbsh4p.js → optical-prescription-C4jpDFOE.js} +2 -2
  43. package/dist/_chunks/{option-row-Dc7BrbK8.js → option-row-DpCnuUqo.js} +25 -12
  44. package/dist/_chunks/{patient-account-settings-COybehKx.js → patient-account-settings-DfEPHmCh.js} +3 -3
  45. package/dist/_chunks/{patient-check-in-resume-DZnyYDKH.js → patient-check-in-resume-TWs8CPQr.js} +5 -5
  46. package/dist/_chunks/{patient-details-Dv7EiTCo.js → patient-details-DQTxSWY4.js} +2 -2
  47. package/dist/_chunks/{patient-field-row-DuHWGlLz.js → patient-field-row-CXuWQeQJ.js} +6 -6
  48. package/dist/_chunks/patient-picker-CQNsqYn2.js +163 -0
  49. package/dist/_chunks/{patient-search-DBvLFArV.js → patient-search-aTFd7p9s.js} +2 -2
  50. package/dist/_chunks/{patient-summary-card-D-cDzOim.js → patient-summary-card-j5u7c5Us.js} +2 -2
  51. package/dist/_chunks/{phone-input-BL8Sj6OG.js → phone-input-DRKcJUi4.js} +2 -2
  52. package/dist/_chunks/{portal-details-DdzvroYP.js → portal-details-VfeOI4PB.js} +3 -3
  53. package/dist/_chunks/{portal-documents-CNmoYWFc.js → portal-documents-hGHlwmbv.js} +3 -3
  54. package/dist/_chunks/{portal-parts-Br8wuala.js → portal-parts-C99CreYO.js} +2 -2
  55. package/dist/_chunks/{pregnancy-dating-lJbzai73.js → pregnancy-dating-C-3NLI6K.js} +2 -2
  56. package/dist/_chunks/prescription-history-748qDVwZ.js +1544 -0
  57. package/dist/_chunks/print-sheet-CSeqkM3_.js +318 -0
  58. package/dist/_chunks/{province-select-CTM8A9SM.js → province-select-D-iY9bQG.js} +3 -3
  59. package/dist/_chunks/{registration-form-CuLiTA52.js → registration-form-Cs9o6e5q.js} +7 -6
  60. package/dist/_chunks/{reserved.agent-CabZHFJC.js → reserved.agent-L2ElYPuj.js} +7 -7
  61. package/dist/_chunks/{reset-password-form-D_TePSM1.js → reset-password-form-DwtSNhnA.js} +18 -17
  62. package/dist/_chunks/{rich-text-editor-C48omVjq.js → rich-text-editor-DFsH5RAj.js} +2 -2
  63. package/dist/_chunks/save-Dn8uje3f.js +22 -0
  64. package/dist/_chunks/{search-bar-CQ9_V3EJ.js → search-bar-k1mS5yZl.js} +2 -2
  65. package/dist/_chunks/{select-CIXKyUMw.js → select-Bm8s3q-X.js} +16 -17
  66. package/dist/_chunks/{send-registration-link-form-BjkXr0TD.js → send-registration-link-form-C1vw6H1M.js} +6 -5
  67. package/dist/_chunks/{signature-request-vJDSHZld.js → signature-request-D3sLLOM6.js} +2 -2
  68. package/dist/_chunks/sync-tray-BhnkgXKK.js +567 -0
  69. package/dist/_chunks/{tabs-Czkmw5ou.js → tabs-BXr5XeGq.js} +2 -2
  70. package/dist/_chunks/{task-editor-wKbFbGqW.js → task-editor-DDVDPKJf.js} +26 -25
  71. package/dist/_chunks/{tasks-panel-DbtJS4QI.js → tasks-panel-BHXaPNOZ.js} +2 -2
  72. package/dist/_chunks/{toolbar-DjG-cpD_.js → toolbar-Dz_hAUIZ.js} +2 -2
  73. package/dist/_chunks/{unit-converter-CUAUTu2B.js → unit-converter-CBy7S4Tl.js} +2 -2
  74. package/dist/_chunks/{use-appointment-details-read-jGkJalX8.js → use-appointment-details-read-CBSpX4DI.js} +2 -2
  75. package/dist/_chunks/use-error-summary-CecJZo6w.js +32 -0
  76. package/dist/_chunks/use-registration-submit-CVukOAQk.js +84 -0
  77. package/dist/_chunks/{variables-menu-DQl8H4Gh.js → variables-menu-C4NcClKi.js} +2 -2
  78. package/dist/_chunks/{voice-control-panel-Cp4vs1iy.js → voice-control-panel-Dc_NFH2R.js} +2 -2
  79. package/dist/agent-catalog.json +456 -2
  80. package/dist/agent-i18n/en.json +53 -0
  81. package/dist/appointment-editor-panel/index.js +2 -2
  82. package/dist/booking-tools-data/index.js +1 -1
  83. package/dist/browser-support.js +1 -1
  84. package/dist/calendar-action-buttons/index.js +1 -1
  85. package/dist/components/_shared/medication.d.ts +28 -0
  86. package/dist/components/_shared/normalize-diacritics.d.ts +5 -0
  87. package/dist/components/_shared/patient-picker.d.ts +7 -0
  88. package/dist/components/address-fields/index.js +1 -1
  89. package/dist/components/ai-prompt-input/index.js +1 -1
  90. package/dist/components/appointment-card/appointment-card.d.ts +5 -2
  91. package/dist/components/appointment-card/index.js +2 -2
  92. package/dist/components/appointment-details-panel/index.js +1 -1
  93. package/dist/components/appointment-timeline/appointment-timeline.d.ts +6 -0
  94. package/dist/components/appointment-timeline/index.js +1 -1
  95. package/dist/components/audio-recorder/index.js +1 -1
  96. package/dist/components/autocomplete/autocomplete.d.ts +50 -0
  97. package/dist/components/autocomplete/index.d.ts +1 -1
  98. package/dist/components/autocomplete/index.js +1 -1
  99. package/dist/components/bill-line-table/index.js +1 -1
  100. package/dist/components/bill-table/index.js +1 -1
  101. package/dist/components/bishop-score/index.js +1 -1
  102. package/dist/components/booking/index.js +1 -1
  103. package/dist/components/calls-panel/index.js +1 -1
  104. package/dist/components/city-input/index.js +1 -1
  105. package/dist/components/combobox/index.js +1 -1
  106. package/dist/components/communications-panel/index.js +1 -1
  107. package/dist/components/country-select/index.js +1 -1
  108. package/dist/components/data-grid/index.js +2 -2
  109. package/dist/components/data-table/index.js +2 -2
  110. package/dist/components/document-preview/index.js +1 -1
  111. package/dist/components/face-scheme/index.js +1 -1
  112. package/dist/components/file-manager/index.js +1 -1
  113. package/dist/components/gestational-age-calculator/index.js +1 -1
  114. package/dist/components/heatmap/index.js +1 -1
  115. package/dist/components/index.d.ts +5 -0
  116. package/dist/components/invoice-upload-list/index.js +1 -1
  117. package/dist/components/medication-line/index.d.ts +6 -0
  118. package/dist/components/medication-line/index.js +7 -0
  119. package/dist/components/medication-line/medication-line.agent.d.ts +14 -0
  120. package/dist/components/medication-line/medication-line.d.ts +40 -0
  121. package/dist/components/medication-search/index.d.ts +6 -0
  122. package/dist/components/medication-search/index.js +10 -0
  123. package/dist/components/medication-search/medication-search.agent.d.ts +15 -0
  124. package/dist/components/medication-search/medication-search.d.ts +49 -0
  125. package/dist/components/multi-select/index.js +1 -1
  126. package/dist/components/muscle-scheme/index.js +1 -1
  127. package/dist/components/notes-panel/index.js +1 -1
  128. package/dist/components/optical-prescription/index.js +1 -1
  129. package/dist/components/patient-details/index.js +1 -1
  130. package/dist/components/patient-search/index.js +1 -1
  131. package/dist/components/patient-summary-card/index.js +1 -1
  132. package/dist/components/patient-table/index.js +1 -1
  133. package/dist/components/phone-input/index.js +1 -1
  134. package/dist/components/pregnancy-dating/index.js +1 -1
  135. package/dist/components/print-sheet/index.d.ts +5 -0
  136. package/dist/components/print-sheet/index.js +6 -0
  137. package/dist/components/print-sheet/print-isolation.d.ts +17 -0
  138. package/dist/components/print-sheet/print-sheet.agent.d.ts +19 -0
  139. package/dist/components/print-sheet/print-sheet.d.ts +54 -0
  140. package/dist/components/province-select/index.js +1 -1
  141. package/dist/components/rich-text-editor/index.js +2 -2
  142. package/dist/components/search-bar/index.js +1 -1
  143. package/dist/components/select/index.js +1 -1
  144. package/dist/components/skeleton-scheme/index.js +1 -1
  145. package/dist/components/sync-tray/index.d.ts +4 -0
  146. package/dist/components/sync-tray/index.js +7 -0
  147. package/dist/components/sync-tray/sync-tray.agent.d.ts +15 -0
  148. package/dist/components/sync-tray/sync-tray.d.ts +77 -0
  149. package/dist/components/tabs/index.js +1 -1
  150. package/dist/components/task-editor/index.js +1 -1
  151. package/dist/components/tasks-panel/index.js +1 -1
  152. package/dist/components/unit-converter/index.js +1 -1
  153. package/dist/components/variables-menu/index.js +1 -1
  154. package/dist/components/voice-control-panel/index.js +1 -1
  155. package/dist/core.css +1 -1
  156. package/dist/find-free-slots-panel/index.js +1 -1
  157. package/dist/host-compat.css +13 -1
  158. package/dist/host-legacy.css +16 -0
  159. package/dist/i18n/locales/ar.d.ts +134 -1
  160. package/dist/i18n/locales/ar.js +134 -1
  161. package/dist/i18n/locales/de.d.ts +134 -1
  162. package/dist/i18n/locales/de.js +134 -1
  163. package/dist/i18n/locales/el.d.ts +134 -1
  164. package/dist/i18n/locales/el.js +134 -1
  165. package/dist/i18n/locales/en.d.ts +134 -1
  166. package/dist/i18n/locales/en.js +134 -1
  167. package/dist/i18n/locales/es.d.ts +134 -1
  168. package/dist/i18n/locales/es.js +134 -1
  169. package/dist/i18n/locales/fr.d.ts +134 -1
  170. package/dist/i18n/locales/fr.js +134 -1
  171. package/dist/i18n/locales/hi.d.ts +134 -1
  172. package/dist/i18n/locales/hi.js +134 -1
  173. package/dist/i18n/locales/it.d.ts +134 -1
  174. package/dist/i18n/locales/it.js +134 -1
  175. package/dist/i18n/locales/ja.d.ts +134 -1
  176. package/dist/i18n/locales/ja.js +134 -1
  177. package/dist/i18n/locales/nl.d.ts +134 -1
  178. package/dist/i18n/locales/nl.js +134 -1
  179. package/dist/i18n/locales/pl.d.ts +134 -1
  180. package/dist/i18n/locales/pl.js +134 -1
  181. package/dist/i18n/locales/pt.d.ts +134 -1
  182. package/dist/i18n/locales/pt.js +134 -1
  183. package/dist/i18n/locales/ro.d.ts +134 -1
  184. package/dist/i18n/locales/ro.js +134 -1
  185. package/dist/i18n/locales/ru.d.ts +134 -1
  186. package/dist/i18n/locales/ru.js +134 -1
  187. package/dist/i18n/locales/sq.d.ts +134 -1
  188. package/dist/i18n/locales/sq.js +134 -1
  189. package/dist/i18n/locales/sv.d.ts +134 -1
  190. package/dist/i18n/locales/sv.js +134 -1
  191. package/dist/i18n/locales/tr.d.ts +134 -1
  192. package/dist/i18n/locales/tr.js +134 -1
  193. package/dist/i18n/locales/zh.d.ts +134 -1
  194. package/dist/i18n/locales/zh.js +134 -1
  195. package/dist/index.js +1004 -976
  196. package/dist/locales/ar.json +134 -1
  197. package/dist/locales/de.json +134 -1
  198. package/dist/locales/el.json +134 -1
  199. package/dist/locales/en.json +134 -1
  200. package/dist/locales/es.json +134 -1
  201. package/dist/locales/fr.json +134 -1
  202. package/dist/locales/hi.json +134 -1
  203. package/dist/locales/it.json +134 -1
  204. package/dist/locales/ja.json +134 -1
  205. package/dist/locales/nl.json +134 -1
  206. package/dist/locales/pl.json +134 -1
  207. package/dist/locales/pt.json +134 -1
  208. package/dist/locales/ro.json +134 -1
  209. package/dist/locales/ru.json +134 -1
  210. package/dist/locales/sq.json +134 -1
  211. package/dist/locales/sv.json +134 -1
  212. package/dist/locales/tr.json +134 -1
  213. package/dist/locales/zh.json +134 -1
  214. package/dist/online-bookings-panel/index.js +2 -2
  215. package/dist/patterns/anamnesis/index.js +1 -1
  216. package/dist/patterns/calendar/index.js +4 -4
  217. package/dist/patterns/forgot-password-form/index.js +1 -1
  218. package/dist/patterns/login-form/index.js +1 -1
  219. package/dist/patterns/patient-account-settings/index.js +1 -1
  220. package/dist/patterns/patient-check-in/index.js +1 -1
  221. package/dist/patterns/patient-portal/index.js +2 -2
  222. package/dist/patterns/prescription/index.d.ts +11 -0
  223. package/dist/patterns/prescription/index.js +13 -0
  224. package/dist/patterns/prescription/prescription-composer-errors.d.ts +6 -0
  225. package/dist/patterns/prescription/prescription-composer-item.d.ts +34 -0
  226. package/dist/patterns/prescription/prescription-composer.d.ts +89 -0
  227. package/dist/patterns/prescription/prescription-history.d.ts +48 -0
  228. package/dist/patterns/prescription/prescription-patient-block.d.ts +13 -0
  229. package/dist/patterns/prescription/prescription-sheet.d.ts +52 -0
  230. package/dist/patterns/prescription/prescription-status-badge.d.ts +5 -0
  231. package/dist/patterns/prescription/prescription-types.d.ts +97 -0
  232. package/dist/patterns/prescription/prescription-validation.d.ts +40 -0
  233. package/dist/patterns/registration-form/index.js +1 -1
  234. package/dist/patterns/reset-password-form/index.js +1 -1
  235. package/dist/patterns/send-registration-link-form/index.js +1 -1
  236. package/dist/patterns/signature-request/index.js +1 -1
  237. package/dist/tokens.css +1 -1
  238. package/dist/waiting-list-panel/index.js +2 -2
  239. package/package.json +21 -1
  240. package/dist/_chunks/autocomplete-D10ydpgi.js +0 -562
  241. package/dist/_chunks/group-options-BvKhQ3xb.js +0 -16
  242. package/dist/_chunks/normalize-diacritics-BNGbFNlJ.js +0 -7
  243. package/dist/_chunks/patient-picker-BZJuOgMw.js +0 -173
  244. package/dist/_chunks/use-registration-submit-CLGHxwoT.js +0 -112
@@ -5,7 +5,7 @@ import { useTranslation as At } from "react-i18next";
5
5
  import { A as T } from "./alert-C4WKViaS.js";
6
6
  import { B as We } from "./button-DohK_Ak_.js";
7
7
  import { I as Ke } from "./icon-button-S8_weU3g.js";
8
- import { C as Bt } from "./combobox-BBCVQS-S.js";
8
+ import { C as Bt } from "./combobox-BYl6mY4c.js";
9
9
  import { D as J } from "./dialog-CVTxyR0v.js";
10
10
  import { D as Ft } from "./date-picker-BmVBVpVu.js";
11
11
  import { F } from "./form-field-CyHfOVKF.js";
@@ -15,7 +15,7 @@ import { P as xt } from "./panel-subview-DCyvn-49.js";
15
15
  import { R as Be } from "./radio-BZQs6_36.js";
16
16
  import { R as jt } from "./radio-group-ChIKyeSJ.js";
17
17
  import { S as $t } from "./scroll-area-CY5SLYNw.js";
18
- import { S as Le } from "./select-CIXKyUMw.js";
18
+ import { S as Le } from "./select-Bm8s3q-X.js";
19
19
  import { S as ze } from "./skeleton-tTWJpvAq.js";
20
20
  import { S as Mt } from "./switch-DO6uC4HJ.js";
21
21
  import { T as qt } from "./text-area-COMVJ1yE.js";
@@ -25,20 +25,21 @@ import { u as Vt } from "./registry-DvAUVLHh.js";
25
25
  import { u as Ut } from "./use-isomorphic-layout-effect-BGfaCOP1.js";
26
26
  import { c as Wt } from "./compose-refs-C0k0tdqF.js";
27
27
  import { E as Kt, a as Lt } from "./compact-editor-fields-cP6yh7xv.js";
28
- import { P as zt, S as Gt } from "./patient-picker-BZJuOgMw.js";
29
- import { b as Ht } from "./privacy-mask-C2ZLKrMh.js";
28
+ import { P as zt } from "./patient-picker-CQNsqYn2.js";
29
+ import { b as Gt } from "./privacy-mask-C2ZLKrMh.js";
30
30
  import { g as Pe } from "./get-error-message-DbFUzuja.js";
31
- import { h as Yt } from "./handled-rejection-C-6Dq0As.js";
32
- import { L as Xt } from "./lock-ClAFG1gy.js";
33
- import { X as Jt } from "./x-B5YnXwCz.js";
34
- import { C as Qt } from "./circle-off-DuT9pVy2.js";
35
- import { U as Zt } from "./user-B12p7bVF.js";
36
- import { B as en } from "./building-2-D33bLCWL.js";
37
- import { S as tn } from "./stethoscope-sZXGC43m.js";
31
+ import { h as Ht } from "./handled-rejection-C-6Dq0As.js";
32
+ import { L as Yt } from "./lock-ClAFG1gy.js";
33
+ import { X as Xt } from "./x-B5YnXwCz.js";
34
+ import { C as Jt } from "./circle-off-DuT9pVy2.js";
35
+ import { U as Qt } from "./user-B12p7bVF.js";
36
+ import { B as Zt } from "./building-2-D33bLCWL.js";
37
+ import { S as en } from "./stethoscope-sZXGC43m.js";
38
38
  import { T as st } from "./trash-2-uumy3fy1.js";
39
39
  import { S as dt } from "./square-check-big-dj0o8yA3.js";
40
- import { p as nn } from "./privacy-mask-text-B8YfzB7L.js";
41
- import { L as on } from "./loader-circle-BECIU_8N.js";
40
+ import { p as tn } from "./privacy-mask-text-B8YfzB7L.js";
41
+ import { L as nn } from "./loader-circle-BECIU_8N.js";
42
+ import { S as on } from "./save-Dn8uje3f.js";
42
43
  const rn = {
43
44
  id: "task-editor",
44
45
  // set_value backs set_fields and set_done; submit backs save; dismiss
@@ -318,7 +319,7 @@ function ln({
318
319
  toggle. */
319
320
  done: O.confirmedDone
320
321
  } : void 0;
321
- }, I = (e) => Yt(new Error(`TaskEditor: ${e}`)), Ce = () => {
322
+ }, I = (e) => Ht(new Error(`TaskEditor: ${e}`)), Ce = () => {
322
323
  const e = S.current;
323
324
  if (D !== "ready") return I(`cannot save while ${D}.`);
324
325
  if (!pe) return I("the host gave no save seam.");
@@ -695,7 +696,7 @@ const ut = ft("ds:flex ds:min-h-0 ds:flex-col", {
695
696
  label: o(a("assigneeUnresolved"), { id: l.assigneeId })
696
697
  }
697
698
  ] : []
698
- ], U = l.about === "company" && l.companyId && !Q.some((t) => t.id === l.companyId) ? l.companyId : void 0, It = U && U === (m == null ? void 0 : m.companyId) && ae ? ae : o(a("companyUnresolved"), { id: U }), Xe = /* @__PURE__ */ b(T, { variant: "info", announce: "off", icon: /* @__PURE__ */ n(Xt, { "aria-hidden": "true" }), children: [
699
+ ], U = l.about === "company" && l.companyId && !Q.some((t) => t.id === l.companyId) ? l.companyId : void 0, It = U && U === (m == null ? void 0 : m.companyId) && ae ? ae : o(a("companyUnresolved"), { id: U }), Xe = /* @__PURE__ */ b(T, { variant: "info", announce: "off", icon: /* @__PURE__ */ n(Yt, { "aria-hidden": "true" }), children: [
699
700
  /* @__PURE__ */ n(T.Title, { as: "p", children: o("calendarWorkspace.details.readOnlyTitle") }),
700
701
  /* @__PURE__ */ n(T.Description, { children: o(a("readOnlyBody")) })
701
702
  ] }), qe = s.saving || s.deleting, Je = () => {
@@ -705,7 +706,7 @@ const ut = ft("ds:flex ds:min-h-0 ds:flex-col", {
705
706
  {
706
707
  size: "sm",
707
708
  intent: "outline",
708
- icon: /* @__PURE__ */ n(Jt, { "aria-hidden": "true" }),
709
+ icon: /* @__PURE__ */ n(Xt, { "aria-hidden": "true" }),
709
710
  "aria-label": o(a("cancel")),
710
711
  tooltip: o(a("cancel")),
711
712
  "data-action": "cancel-task",
@@ -741,12 +742,12 @@ const ut = ft("ds:flex ds:min-h-0 ds:flex-col", {
741
742
  size: "sm",
742
743
  intent: "primary",
743
744
  icon: s.saving ? /* @__PURE__ */ n(
744
- on,
745
+ nn,
745
746
  {
746
747
  "aria-hidden": "true",
747
748
  className: "ds:animate-spin ds:motion-reduce:animate-none"
748
749
  }
749
- ) : /* @__PURE__ */ n(Gt, { "aria-hidden": "true" }),
750
+ ) : /* @__PURE__ */ n(on, { "aria-hidden": "true" }),
750
751
  "aria-label": o(a("save")),
751
752
  tooltip: o(a("save")),
752
753
  disabled: !_e && !d.canSave,
@@ -811,7 +812,7 @@ const ut = ft("ds:flex ds:min-h-0 ds:flex-col", {
811
812
  children: o("emptyState.error.cta")
812
813
  }
813
814
  )
814
- ] }), kt = /* @__PURE__ */ n("fieldset", { disabled: !0, className: pt({ layout: "notice" }), children: Xe }), St = () => l.about !== "patient" ? null : w ? /* @__PURE__ */ n(F, { label: o(a("aboutPatient")), children: /* @__PURE__ */ n(Fe, { value: nn(), disabled: !0, readOnly: !0 }) }) : f ? /* @__PURE__ */ n(F, { label: o(a("aboutPatient")), children: /* @__PURE__ */ n(
815
+ ] }), kt = /* @__PURE__ */ n("fieldset", { disabled: !0, className: pt({ layout: "notice" }), children: Xe }), St = () => l.about !== "patient" ? null : w ? /* @__PURE__ */ n(F, { label: o(a("aboutPatient")), children: /* @__PURE__ */ n(Fe, { value: tn(), disabled: !0, readOnly: !0 }) }) : f ? /* @__PURE__ */ n(F, { label: o(a("aboutPatient")), children: /* @__PURE__ */ n(
815
816
  zt,
816
817
  {
817
818
  value: l.patientId,
@@ -887,7 +888,7 @@ const ut = ft("ds:flex ds:min-h-0 ds:flex-col", {
887
888
  {
888
889
  value: "nobody",
889
890
  label: o(a("aboutNobody")),
890
- icon: /* @__PURE__ */ n(Qt, { "aria-hidden": "true" })
891
+ icon: /* @__PURE__ */ n(Jt, { "aria-hidden": "true" })
891
892
  }
892
893
  ),
893
894
  f || l.about === "patient" || m != null && m.patientId ? /* @__PURE__ */ n(
@@ -895,7 +896,7 @@ const ut = ft("ds:flex ds:min-h-0 ds:flex-col", {
895
896
  {
896
897
  value: "patient",
897
898
  label: o(a("aboutPatient")),
898
- icon: /* @__PURE__ */ n(Zt, { "aria-hidden": "true" })
899
+ icon: /* @__PURE__ */ n(Qt, { "aria-hidden": "true" })
899
900
  }
900
901
  ) : null,
901
902
  e || l.about === "company" || m != null && m.companyId ? /* @__PURE__ */ n(
@@ -903,7 +904,7 @@ const ut = ft("ds:flex ds:min-h-0 ds:flex-col", {
903
904
  {
904
905
  value: "company",
905
906
  label: o(a("aboutCompany")),
906
- icon: /* @__PURE__ */ n(en, { "aria-hidden": "true" })
907
+ icon: /* @__PURE__ */ n(Zt, { "aria-hidden": "true" })
907
908
  }
908
909
  ) : null,
909
910
  i || l.about === "operator" || m != null && m.operatorId ? /* @__PURE__ */ n(
@@ -911,7 +912,7 @@ const ut = ft("ds:flex ds:min-h-0 ds:flex-col", {
911
912
  {
912
913
  value: "operator",
913
914
  label: o(a("aboutOperator")),
914
- icon: /* @__PURE__ */ n(tn, { "aria-hidden": "true" })
915
+ icon: /* @__PURE__ */ n(en, { "aria-hidden": "true" })
915
916
  }
916
917
  ) : null
917
918
  ]
@@ -981,7 +982,7 @@ const ut = ft("ds:flex ds:min-h-0 ds:flex-col", {
981
982
  s.saveError ? /* @__PURE__ */ n(T, { variant: "error", children: /* @__PURE__ */ n(T.Description, { children: s.saveError }) }) : null,
982
983
  s.deleteError && !s.confirmDeleteOpen ? /* @__PURE__ */ n(T, { variant: "error", children: /* @__PURE__ */ n(T.Description, { children: s.deleteError }) }) : null
983
984
  ] }), et = E === "loading" ? wt : E === "error" ? Et : E === "locked" ? kt : E === "withheld" ? /* @__PURE__ */ n(
984
- Ht,
985
+ Gt,
985
986
  {
986
987
  onTurnOff: se ? Ne(se) : void 0
987
988
  }
@@ -1090,4 +1091,4 @@ export {
1090
1091
  pn as T,
1091
1092
  rn as t
1092
1093
  };
1093
- //# sourceMappingURL=task-editor-wKbFbGqW.js.map
1094
+ //# sourceMappingURL=task-editor-DDVDPKJf.js.map
@@ -8,7 +8,7 @@ import { B as Pe } from "./button-DohK_Ak_.js";
8
8
  import { I as He } from "./icon-button-S8_weU3g.js";
9
9
  import { B as Et } from "./button-group-DuQuuulC.js";
10
10
  import { P as qs } from "./panel-header-CbtlTe85.js";
11
- import { S as Ot } from "./select-CIXKyUMw.js";
11
+ import { S as Ot } from "./select-Bm8s3q-X.js";
12
12
  import { S as Ks } from "./switch-DO6uC4HJ.js";
13
13
  import { S as Vs } from "./skeleton-tTWJpvAq.js";
14
14
  import { E as We } from "./empty-state-DwJ5YNzz.js";
@@ -1223,4 +1223,4 @@ export {
1223
1223
  Rn as T,
1224
1224
  cn as t
1225
1225
  };
1226
- //# sourceMappingURL=tasks-panel-DbtJS4QI.js.map
1226
+ //# sourceMappingURL=tasks-panel-BHXaPNOZ.js.map
@@ -5,7 +5,7 @@ import { T as v, c as N, a as R } from "./parts-BOnDDU3E.js";
5
5
  import { e as k, s as P, w as A, a as B } from "./export-files-BByoK9Cg.js";
6
6
  import { i as O } from "./is-development-CLUAnsU7.js";
7
7
  import { d as j, g as Q, u as _ } from "./grid-context-jn9y8tNE.js";
8
- import { g as U } from "./data-grid-CxKz8flO.js";
8
+ import { g as U } from "./data-grid-bQ6iFm10.js";
9
9
  function S() {
10
10
  var t;
11
11
  return ((t = _()) == null ? void 0 : t.toolbarSeam) ?? null;
@@ -156,4 +156,4 @@ export {
156
156
  Z as D,
157
157
  Y as a
158
158
  };
159
- //# sourceMappingURL=toolbar-DjG-cpD_.js.map
159
+ //# sourceMappingURL=toolbar-Dz_hAUIZ.js.map
@@ -5,7 +5,7 @@ import { useTranslation as M } from "react-i18next";
5
5
  import { u as Y } from "./registry-DvAUVLHh.js";
6
6
  import { F as C } from "./form-field-CyHfOVKF.js";
7
7
  import { N as B } from "./number-input-DUSvP7Dq.js";
8
- import { S } from "./select-CIXKyUMw.js";
8
+ import { S } from "./select-Bm8s3q-X.js";
9
9
  import { I as D } from "./insert-result-CDMMt7q8.js";
10
10
  const L = [
11
11
  "weight",
@@ -334,4 +334,4 @@ export {
334
334
  ee as b,
335
335
  Q as c
336
336
  };
337
- //# sourceMappingURL=unit-converter-CUAUTu2B.js.map
337
+ //# sourceMappingURL=unit-converter-CBy7S4Tl.js.map
@@ -17,7 +17,7 @@ import { E as Ht } from "./editable-description-KU56SP4P.js";
17
17
  import { N as tt } from "./note-timeline-BbjHMhkL.js";
18
18
  import { P as Mt } from "./panel-header-CbtlTe85.js";
19
19
  import { P as Je } from "./panel-subview-DCyvn-49.js";
20
- import { P as Ft } from "./patient-summary-card-D-cDzOim.js";
20
+ import { P as Ft } from "./patient-summary-card-j5u7c5Us.js";
21
21
  import { S as pe } from "./section-card-CYfeQ6EQ.js";
22
22
  import { C as nn, S as ke } from "./skeleton-tTWJpvAq.js";
23
23
  import { T as an } from "./text-area-COMVJ1yE.js";
@@ -1963,4 +1963,4 @@ export {
1963
1963
  ea as a,
1964
1964
  $i as u
1965
1965
  };
1966
- //# sourceMappingURL=use-appointment-details-read-jGkJalX8.js.map
1966
+ //# sourceMappingURL=use-appointment-details-read-CBSpX4DI.js.map
@@ -0,0 +1,32 @@
1
+ import { useState as f, useRef as d, useEffect as p } from "react";
2
+ function k(n, l, u = !1) {
3
+ const [t, a] = f(
4
+ () => u ? {} : null
5
+ ), [h, v] = f(null), [o, i] = f([]);
6
+ if (t !== h)
7
+ v(t), i(n.filter((e) => !!l(e)));
8
+ else {
9
+ const e = o.filter((r) => !!l(r));
10
+ e.length !== o.length && i(e);
11
+ }
12
+ const c = d(null), s = d(null);
13
+ return p(() => {
14
+ var e, r;
15
+ !t || s.current === t || (s.current = t, o.length > 0 ? (e = c.current) == null || e.focus() : (r = t.fallback) == null || r.call(t));
16
+ }, [t, o]), {
17
+ listed: o,
18
+ lists: (e) => o.includes(e),
19
+ // A new object each time, so a second refused submit moves focus again.
20
+ open: (e) => a({ fallback: e }),
21
+ ref: c
22
+ };
23
+ }
24
+ function B(n, l) {
25
+ const [u, t] = f(void 0);
26
+ return n && l && u !== n && t(n), !n && u !== void 0 && t(void 0), n && (l || u === n) ? "off" : void 0;
27
+ }
28
+ export {
29
+ B as a,
30
+ k as u
31
+ };
32
+ //# sourceMappingURL=use-error-summary-CecJZo6w.js.map
@@ -0,0 +1,84 @@
1
+ import { useRef as s, useState as v, useEffect as b } from "react";
2
+ const N = 8e3, O = (t) => JSON.stringify(
3
+ Object.entries(t ?? {}).filter(([, e]) => !!e).sort(([e], [a]) => e < a ? -1 : e > a ? 1 : 0)
4
+ );
5
+ function L(t) {
6
+ const e = s(t);
7
+ e.current = t;
8
+ const [a, w] = v(!1), [A, o] = v(!1), [C, f] = v(!1), S = t.submitting || a || A, h = s(null), c = s(!1), i = s(void 0), l = s(!1), g = s(!1), T = s(void 0), E = () => {
9
+ c.current = !1, clearTimeout(i.current), o(!1);
10
+ };
11
+ b(() => () => clearTimeout(i.current), []);
12
+ const P = (r) => {
13
+ e.current.native ? w(!0) : (l.current = !0, g.current = !1, T.current = e.current.errors), e.current.deliver(r);
14
+ }, R = (r) => {
15
+ if (S) {
16
+ r.preventDefault();
17
+ return;
18
+ }
19
+ f(!1);
20
+ const n = e.current.firstProblem();
21
+ if (n !== void 0) {
22
+ r.preventDefault(), e.current.onRefused(n);
23
+ return;
24
+ }
25
+ if (e.current.captcha) {
26
+ r.preventDefault();
27
+ const u = h.current;
28
+ if (!u) {
29
+ f(!0);
30
+ return;
31
+ }
32
+ c.current = !1, u.reset(), c.current = !0, o(!0), clearTimeout(i.current), i.current = setTimeout(
33
+ () => o(!1),
34
+ N
35
+ ), u.execute();
36
+ return;
37
+ }
38
+ if (e.current.native) {
39
+ w(!0);
40
+ return;
41
+ }
42
+ r.preventDefault(), P();
43
+ }, D = (r) => {
44
+ if (!c.current) return;
45
+ if (E(), !r) {
46
+ f(!0);
47
+ return;
48
+ }
49
+ const n = e.current.firstProblem();
50
+ if (n !== void 0) {
51
+ e.current.onRefused(n);
52
+ return;
53
+ }
54
+ P(r);
55
+ }, x = () => {
56
+ c.current && (E(), f(!0));
57
+ }, d = t.errors, m = O(d), p = s(null);
58
+ return b(() => {
59
+ var u;
60
+ if (p.current === null) {
61
+ p.current = m;
62
+ return;
63
+ }
64
+ const r = m !== p.current;
65
+ p.current = m, l.current && t.submitting && (g.current = !0);
66
+ const n = l.current && g.current && !t.submitting && d !== T.current;
67
+ !r && !n || (l.current = !1, g.current = !1, c.current = !1, clearTimeout(i.current), o(!1), (u = h.current) == null || u.reset(), e.current.onAnswer(d ?? {}));
68
+ }, [d, m, t.submitting]), b(() => {
69
+ const r = (n) => {
70
+ var u, y;
71
+ n.persisted && (w(!1), (y = (u = e.current).onRestore) == null || y.call(u));
72
+ };
73
+ return window.addEventListener("pageshow", r), () => window.removeEventListener("pageshow", r);
74
+ }, []), {
75
+ busy: S,
76
+ captchaFailed: C,
77
+ handleSubmit: R,
78
+ captcha: { ref: h, onChange: D, onError: x }
79
+ };
80
+ }
81
+ export {
82
+ L as u
83
+ };
84
+ //# sourceMappingURL=use-registration-submit-CVukOAQk.js.map
@@ -1,7 +1,7 @@
1
1
  import { jsxs as d, jsx as r } from "react/jsx-runtime";
2
2
  import { forwardRef as Q, useRef as z, useId as W, useMemo as h, useState as Y, useImperativeHandle as q, useEffect as J } from "react";
3
3
  import { useTranslation as X } from "react-i18next";
4
- import { n as E } from "./normalize-diacritics-BNGbFNlJ.js";
4
+ import { n as E } from "./normalize-diacritics-DhJjQ3Bp.js";
5
5
  import { b as Z } from "./menu-row-BAr8bx1I.js";
6
6
  import { u as ee } from "./registry-DvAUVLHh.js";
7
7
  import { S as te } from "./search-QbWPlY5f.js";
@@ -389,4 +389,4 @@ export {
389
389
  we as V,
390
390
  ie as v
391
391
  };
392
- //# sourceMappingURL=variables-menu-DQl8H4Gh.js.map
392
+ //# sourceMappingURL=variables-menu-C4NcClKi.js.map
@@ -14,7 +14,7 @@ import { F as yn } from "./form-field-CyHfOVKF.js";
14
14
  import { K as bn } from "./kbd-Bx7eQv9f.js";
15
15
  import { L as pe } from "./list-CNnn7DOD.js";
16
16
  import { L as xn } from "./live-region-C41SO3cA.js";
17
- import { S as wn } from "./select-CIXKyUMw.js";
17
+ import { S as wn } from "./select-Bm8s3q-X.js";
18
18
  import { a as Nn, b as Ct, c as Cn, d as kn } from "./ai-fab-pill-BOu96kCx.js";
19
19
  import { c as An } from "./compose-refs-C0k0tdqF.js";
20
20
  import { g as Rn, a as En } from "./glass-surface-CPok0jEe.js";
@@ -1145,4 +1145,4 @@ export {
1145
1145
  no as V,
1146
1146
  Gn as v
1147
1147
  };
1148
- //# sourceMappingURL=voice-control-panel-Cp4vs1iy.js.map
1148
+ //# sourceMappingURL=voice-control-panel-Dc_NFH2R.js.map