@alfadocs/ui-kit 1.138.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 (232) 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/{audio-recorder-BOF5YYoC.js → audio-recorder-6dUq8I38.js} +2 -2
  5. package/dist/_chunks/autocomplete-HZNW7_Pa.js +642 -0
  6. package/dist/_chunks/{balance-badge-cell-BSB02Bwo.js → balance-badge-cell-CRrIv2hy.js} +4 -4
  7. package/dist/_chunks/{bill-line-table-By-YL2ms.js → bill-line-table-DCqxhode.js} +3 -3
  8. package/dist/_chunks/{bishop-score-DWGESRP9.js → bishop-score-M7Fi-ykx.js} +2 -2
  9. package/dist/_chunks/{calendar-appointment-editor-dialog-SxSkOTnO.js → calendar-appointment-editor-dialog-GdnaPIOV.js} +7 -7
  10. package/dist/_chunks/{calendar-editor-discard-host-DjUhoFr2.js → calendar-editor-discard-host-BcMEgVEq.js} +2 -2
  11. package/dist/_chunks/{calendar-waiting-list-panel-331vzAdl.js → calendar-waiting-list-panel-CkZBAv_E.js} +3 -3
  12. package/dist/_chunks/{calendar.sheets-aodjllWd.js → calendar.sheets-B0jP2Yt0.js} +112 -111
  13. package/dist/_chunks/{calls-panel-BIfatK90.js → calls-panel-CtxJAzkJ.js} +2 -2
  14. package/dist/_chunks/{city-input-DXipzTfZ.js → city-input-DARVDJhH.js} +2 -2
  15. package/dist/_chunks/{combobox-BBCVQS-S.js → combobox-BYl6mY4c.js} +12 -13
  16. package/dist/_chunks/{communications-panel-SQ-55e3V.js → communications-panel-DBWM9II9.js} +2 -2
  17. package/dist/_chunks/{country-select-C2GdvRtS.js → country-select-BPISkYVU.js} +3 -3
  18. package/dist/_chunks/{data-grid-CxKz8flO.js → data-grid-bQ6iFm10.js} +15 -7
  19. package/dist/_chunks/{data-table-_tgj0C_T.js → data-table-CnLfOwxg.js} +2 -2
  20. package/dist/_chunks/{default-tabs-oDWQzbN7.js → default-tabs-Dm_vk6hd.js} +3 -3
  21. package/dist/_chunks/{document-preview-CirR3C_m.js → document-preview-FTCHXYhk.js} +2 -2
  22. package/dist/_chunks/{face-scheme-D_Y1StPl.js → face-scheme-Bxt7ZnJn.js} +2 -2
  23. package/dist/_chunks/{file-manager-CEi4z2i0.js → file-manager-Bsccb8Jj.js} +2 -2
  24. package/dist/_chunks/{forgot-password-form-YvI9vX-G.js → forgot-password-form-B4ufmBFn.js} +5 -4
  25. package/dist/_chunks/{gestational-age-calculator-CHbpC4vL.js → gestational-age-calculator-DXSPWG8u.js} +2 -2
  26. package/dist/_chunks/{heatmap-_546qI2V.js → heatmap-CFPaEKD_.js} +2 -2
  27. package/dist/_chunks/{invoice-upload-list-CQI9MUl6.js → invoice-upload-list-Dz3CXHPP.js} +3 -3
  28. package/dist/_chunks/{kit-extensions-BNBf4m8O.js → kit-extensions-BB_ksnVl.js} +3 -3
  29. package/dist/_chunks/{link-cell-renderer-Xx5T8u5Q.js → link-cell-renderer-CSA0KKPe.js} +5 -5
  30. package/dist/_chunks/{login-dev-card-Dz3ezx1o.js → login-dev-card-oRh9h7N2.js} +18 -17
  31. package/dist/_chunks/medication-I6QvOq6k.js +21 -0
  32. package/dist/_chunks/medication-line-CHdlh-F7.js +222 -0
  33. package/dist/_chunks/medication-search-DoEDakoM.js +380 -0
  34. package/dist/_chunks/{multi-select-Df3R8lv_.js → multi-select-DeMiHm8T.js} +4 -5
  35. package/dist/_chunks/{muscle-scheme-D_rSyGDj.js → muscle-scheme-BB2eBfww.js} +2 -2
  36. package/dist/_chunks/normalize-diacritics-DhJjQ3Bp.js +7 -0
  37. package/dist/_chunks/{notes-panel-DsEKNtsw.js → notes-panel-CnmQqhwq.js} +2 -2
  38. package/dist/_chunks/{optical-prescription-DaSbsh4p.js → optical-prescription-C4jpDFOE.js} +2 -2
  39. package/dist/_chunks/{option-row-Dc7BrbK8.js → option-row-DpCnuUqo.js} +25 -12
  40. package/dist/_chunks/{patient-account-settings-Cs9y-pVA.js → patient-account-settings-DfEPHmCh.js} +2 -2
  41. package/dist/_chunks/{patient-check-in-resume-4qi_klQV.js → patient-check-in-resume-TWs8CPQr.js} +3 -3
  42. package/dist/_chunks/{patient-details-Dv7EiTCo.js → patient-details-DQTxSWY4.js} +2 -2
  43. package/dist/_chunks/{patient-field-row-DuHWGlLz.js → patient-field-row-CXuWQeQJ.js} +6 -6
  44. package/dist/_chunks/patient-picker-CQNsqYn2.js +163 -0
  45. package/dist/_chunks/{patient-search-DBvLFArV.js → patient-search-aTFd7p9s.js} +2 -2
  46. package/dist/_chunks/{patient-summary-card-D-cDzOim.js → patient-summary-card-j5u7c5Us.js} +2 -2
  47. package/dist/_chunks/{phone-input-BL8Sj6OG.js → phone-input-DRKcJUi4.js} +2 -2
  48. package/dist/_chunks/{portal-details-BGc_FLQk.js → portal-details-VfeOI4PB.js} +2 -2
  49. package/dist/_chunks/{portal-documents-BSI1U5lI.js → portal-documents-hGHlwmbv.js} +2 -2
  50. package/dist/_chunks/{pregnancy-dating-lJbzai73.js → pregnancy-dating-C-3NLI6K.js} +2 -2
  51. package/dist/_chunks/prescription-history-748qDVwZ.js +1544 -0
  52. package/dist/_chunks/print-sheet-CSeqkM3_.js +318 -0
  53. package/dist/_chunks/{province-select-CTM8A9SM.js → province-select-D-iY9bQG.js} +3 -3
  54. package/dist/_chunks/{registration-form-CuLiTA52.js → registration-form-Cs9o6e5q.js} +7 -6
  55. package/dist/_chunks/{reserved.agent-CabZHFJC.js → reserved.agent-L2ElYPuj.js} +7 -7
  56. package/dist/_chunks/{reset-password-form-D_TePSM1.js → reset-password-form-DwtSNhnA.js} +18 -17
  57. package/dist/_chunks/{rich-text-editor-C48omVjq.js → rich-text-editor-DFsH5RAj.js} +2 -2
  58. package/dist/_chunks/save-Dn8uje3f.js +22 -0
  59. package/dist/_chunks/{search-bar-CQ9_V3EJ.js → search-bar-k1mS5yZl.js} +2 -2
  60. package/dist/_chunks/{select-CIXKyUMw.js → select-Bm8s3q-X.js} +16 -17
  61. package/dist/_chunks/{send-registration-link-form-BjkXr0TD.js → send-registration-link-form-C1vw6H1M.js} +6 -5
  62. package/dist/_chunks/{signature-request-vJDSHZld.js → signature-request-D3sLLOM6.js} +2 -2
  63. package/dist/_chunks/sync-tray-BhnkgXKK.js +567 -0
  64. package/dist/_chunks/{tabs-Czkmw5ou.js → tabs-BXr5XeGq.js} +2 -2
  65. package/dist/_chunks/{task-editor-wKbFbGqW.js → task-editor-DDVDPKJf.js} +26 -25
  66. package/dist/_chunks/{tasks-panel-DbtJS4QI.js → tasks-panel-BHXaPNOZ.js} +2 -2
  67. package/dist/_chunks/{toolbar-DjG-cpD_.js → toolbar-Dz_hAUIZ.js} +2 -2
  68. package/dist/_chunks/{unit-converter-CUAUTu2B.js → unit-converter-CBy7S4Tl.js} +2 -2
  69. package/dist/_chunks/{use-appointment-details-read-jGkJalX8.js → use-appointment-details-read-CBSpX4DI.js} +2 -2
  70. package/dist/_chunks/use-error-summary-CecJZo6w.js +32 -0
  71. package/dist/_chunks/use-registration-submit-CVukOAQk.js +84 -0
  72. package/dist/_chunks/{variables-menu-DQl8H4Gh.js → variables-menu-C4NcClKi.js} +2 -2
  73. package/dist/_chunks/{voice-control-panel-Cp4vs1iy.js → voice-control-panel-Dc_NFH2R.js} +2 -2
  74. package/dist/agent-catalog.json +455 -1
  75. package/dist/agent-i18n/en.json +53 -0
  76. package/dist/appointment-editor-panel/index.js +2 -2
  77. package/dist/browser-support.js +1 -1
  78. package/dist/components/_shared/medication.d.ts +28 -0
  79. package/dist/components/_shared/normalize-diacritics.d.ts +5 -0
  80. package/dist/components/_shared/patient-picker.d.ts +7 -0
  81. package/dist/components/address-fields/index.js +1 -1
  82. package/dist/components/ai-prompt-input/index.js +1 -1
  83. package/dist/components/appointment-details-panel/index.js +1 -1
  84. package/dist/components/audio-recorder/index.js +1 -1
  85. package/dist/components/autocomplete/autocomplete.d.ts +50 -0
  86. package/dist/components/autocomplete/index.d.ts +1 -1
  87. package/dist/components/autocomplete/index.js +1 -1
  88. package/dist/components/bill-line-table/index.js +1 -1
  89. package/dist/components/bill-table/index.js +1 -1
  90. package/dist/components/bishop-score/index.js +1 -1
  91. package/dist/components/booking/index.js +1 -1
  92. package/dist/components/calls-panel/index.js +1 -1
  93. package/dist/components/city-input/index.js +1 -1
  94. package/dist/components/combobox/index.js +1 -1
  95. package/dist/components/communications-panel/index.js +1 -1
  96. package/dist/components/country-select/index.js +1 -1
  97. package/dist/components/data-grid/index.js +2 -2
  98. package/dist/components/data-table/index.js +2 -2
  99. package/dist/components/document-preview/index.js +1 -1
  100. package/dist/components/face-scheme/index.js +1 -1
  101. package/dist/components/file-manager/index.js +1 -1
  102. package/dist/components/gestational-age-calculator/index.js +1 -1
  103. package/dist/components/heatmap/index.js +1 -1
  104. package/dist/components/index.d.ts +5 -0
  105. package/dist/components/invoice-upload-list/index.js +1 -1
  106. package/dist/components/medication-line/index.d.ts +6 -0
  107. package/dist/components/medication-line/index.js +7 -0
  108. package/dist/components/medication-line/medication-line.agent.d.ts +14 -0
  109. package/dist/components/medication-line/medication-line.d.ts +40 -0
  110. package/dist/components/medication-search/index.d.ts +6 -0
  111. package/dist/components/medication-search/index.js +10 -0
  112. package/dist/components/medication-search/medication-search.agent.d.ts +15 -0
  113. package/dist/components/medication-search/medication-search.d.ts +49 -0
  114. package/dist/components/multi-select/index.js +1 -1
  115. package/dist/components/muscle-scheme/index.js +1 -1
  116. package/dist/components/notes-panel/index.js +1 -1
  117. package/dist/components/optical-prescription/index.js +1 -1
  118. package/dist/components/patient-details/index.js +1 -1
  119. package/dist/components/patient-search/index.js +1 -1
  120. package/dist/components/patient-summary-card/index.js +1 -1
  121. package/dist/components/patient-table/index.js +1 -1
  122. package/dist/components/phone-input/index.js +1 -1
  123. package/dist/components/pregnancy-dating/index.js +1 -1
  124. package/dist/components/print-sheet/index.d.ts +5 -0
  125. package/dist/components/print-sheet/index.js +6 -0
  126. package/dist/components/print-sheet/print-isolation.d.ts +17 -0
  127. package/dist/components/print-sheet/print-sheet.agent.d.ts +19 -0
  128. package/dist/components/print-sheet/print-sheet.d.ts +54 -0
  129. package/dist/components/province-select/index.js +1 -1
  130. package/dist/components/rich-text-editor/index.js +2 -2
  131. package/dist/components/search-bar/index.js +1 -1
  132. package/dist/components/select/index.js +1 -1
  133. package/dist/components/skeleton-scheme/index.js +1 -1
  134. package/dist/components/sync-tray/index.d.ts +4 -0
  135. package/dist/components/sync-tray/index.js +7 -0
  136. package/dist/components/sync-tray/sync-tray.agent.d.ts +15 -0
  137. package/dist/components/sync-tray/sync-tray.d.ts +77 -0
  138. package/dist/components/tabs/index.js +1 -1
  139. package/dist/components/task-editor/index.js +1 -1
  140. package/dist/components/tasks-panel/index.js +1 -1
  141. package/dist/components/unit-converter/index.js +1 -1
  142. package/dist/components/variables-menu/index.js +1 -1
  143. package/dist/components/voice-control-panel/index.js +1 -1
  144. package/dist/core.css +1 -1
  145. package/dist/find-free-slots-panel/index.js +1 -1
  146. package/dist/host-compat.css +13 -1
  147. package/dist/i18n/locales/ar.d.ts +134 -0
  148. package/dist/i18n/locales/ar.js +134 -0
  149. package/dist/i18n/locales/de.d.ts +134 -0
  150. package/dist/i18n/locales/de.js +134 -0
  151. package/dist/i18n/locales/el.d.ts +134 -0
  152. package/dist/i18n/locales/el.js +134 -0
  153. package/dist/i18n/locales/en.d.ts +134 -0
  154. package/dist/i18n/locales/en.js +134 -0
  155. package/dist/i18n/locales/es.d.ts +134 -0
  156. package/dist/i18n/locales/es.js +134 -0
  157. package/dist/i18n/locales/fr.d.ts +134 -0
  158. package/dist/i18n/locales/fr.js +134 -0
  159. package/dist/i18n/locales/hi.d.ts +134 -0
  160. package/dist/i18n/locales/hi.js +134 -0
  161. package/dist/i18n/locales/it.d.ts +134 -0
  162. package/dist/i18n/locales/it.js +134 -0
  163. package/dist/i18n/locales/ja.d.ts +134 -0
  164. package/dist/i18n/locales/ja.js +134 -0
  165. package/dist/i18n/locales/nl.d.ts +134 -0
  166. package/dist/i18n/locales/nl.js +134 -0
  167. package/dist/i18n/locales/pl.d.ts +134 -0
  168. package/dist/i18n/locales/pl.js +134 -0
  169. package/dist/i18n/locales/pt.d.ts +134 -0
  170. package/dist/i18n/locales/pt.js +134 -0
  171. package/dist/i18n/locales/ro.d.ts +134 -0
  172. package/dist/i18n/locales/ro.js +134 -0
  173. package/dist/i18n/locales/ru.d.ts +134 -0
  174. package/dist/i18n/locales/ru.js +134 -0
  175. package/dist/i18n/locales/sq.d.ts +134 -0
  176. package/dist/i18n/locales/sq.js +134 -0
  177. package/dist/i18n/locales/sv.d.ts +134 -0
  178. package/dist/i18n/locales/sv.js +134 -0
  179. package/dist/i18n/locales/tr.d.ts +134 -0
  180. package/dist/i18n/locales/tr.js +134 -0
  181. package/dist/i18n/locales/zh.d.ts +134 -0
  182. package/dist/i18n/locales/zh.js +134 -0
  183. package/dist/index.js +1002 -974
  184. package/dist/locales/ar.json +134 -0
  185. package/dist/locales/de.json +134 -0
  186. package/dist/locales/el.json +134 -0
  187. package/dist/locales/en.json +134 -0
  188. package/dist/locales/es.json +134 -0
  189. package/dist/locales/fr.json +134 -0
  190. package/dist/locales/hi.json +134 -0
  191. package/dist/locales/it.json +134 -0
  192. package/dist/locales/ja.json +134 -0
  193. package/dist/locales/nl.json +134 -0
  194. package/dist/locales/pl.json +134 -0
  195. package/dist/locales/pt.json +134 -0
  196. package/dist/locales/ro.json +134 -0
  197. package/dist/locales/ru.json +134 -0
  198. package/dist/locales/sq.json +134 -0
  199. package/dist/locales/sv.json +134 -0
  200. package/dist/locales/tr.json +134 -0
  201. package/dist/locales/zh.json +134 -0
  202. package/dist/online-bookings-panel/index.js +1 -1
  203. package/dist/patterns/anamnesis/index.js +1 -1
  204. package/dist/patterns/calendar/index.js +3 -3
  205. package/dist/patterns/forgot-password-form/index.js +1 -1
  206. package/dist/patterns/login-form/index.js +1 -1
  207. package/dist/patterns/patient-account-settings/index.js +1 -1
  208. package/dist/patterns/patient-check-in/index.js +1 -1
  209. package/dist/patterns/patient-portal/index.js +2 -2
  210. package/dist/patterns/prescription/index.d.ts +11 -0
  211. package/dist/patterns/prescription/index.js +13 -0
  212. package/dist/patterns/prescription/prescription-composer-errors.d.ts +6 -0
  213. package/dist/patterns/prescription/prescription-composer-item.d.ts +34 -0
  214. package/dist/patterns/prescription/prescription-composer.d.ts +89 -0
  215. package/dist/patterns/prescription/prescription-history.d.ts +48 -0
  216. package/dist/patterns/prescription/prescription-patient-block.d.ts +13 -0
  217. package/dist/patterns/prescription/prescription-sheet.d.ts +52 -0
  218. package/dist/patterns/prescription/prescription-status-badge.d.ts +5 -0
  219. package/dist/patterns/prescription/prescription-types.d.ts +97 -0
  220. package/dist/patterns/prescription/prescription-validation.d.ts +40 -0
  221. package/dist/patterns/registration-form/index.js +1 -1
  222. package/dist/patterns/reset-password-form/index.js +1 -1
  223. package/dist/patterns/send-registration-link-form/index.js +1 -1
  224. package/dist/patterns/signature-request/index.js +1 -1
  225. package/dist/tokens.css +1 -1
  226. package/dist/waiting-list-panel/index.js +2 -2
  227. package/package.json +21 -1
  228. package/dist/_chunks/autocomplete-D10ydpgi.js +0 -562
  229. package/dist/_chunks/group-options-BvKhQ3xb.js +0 -16
  230. package/dist/_chunks/normalize-diacritics-BNGbFNlJ.js +0 -7
  231. package/dist/_chunks/patient-picker-BZJuOgMw.js +0 -173
  232. package/dist/_chunks/use-registration-submit-CLGHxwoT.js +0 -112
@@ -1,30 +1,30 @@
1
1
  import { jsx as e, jsxs as c, Fragment as ae } from "react/jsx-runtime";
2
2
  import { useRef as P, useState as N, createContext as gr, useContext as vr, useEffect as V, useId as wn, forwardRef as pr, useMemo as ye, Fragment as Ut, useCallback as br } from "react";
3
3
  import { useTranslation as le } from "react-i18next";
4
- import { P as yr, S as kr } from "./patient-picker-BZJuOgMw.js";
5
- import { u as Ye, a as fr } from "./calendar-editor-guard-9fShhNIA.js";
6
- import { u as Nr } from "./form-field-context-DtiROUJV.js";
7
- import { A as xr, M as Cr, C as Gt } from "./appointment-details-panel.history-DrIMDQYf.js";
8
- import { R as As, b as Rn, D as li, f as Ir, e as Sr, g as wr, h as Rr, i as Dr } from "./appointment-details-panel.identity-C20Y9xNC.js";
4
+ import { P as yr } from "./patient-picker-CQNsqYn2.js";
5
+ import { u as Ye, a as kr } from "./calendar-editor-guard-9fShhNIA.js";
6
+ import { u as fr } from "./form-field-context-DtiROUJV.js";
7
+ import { A as Nr, M as xr, C as Gt } from "./appointment-details-panel.history-DrIMDQYf.js";
8
+ import { R as As, b as Rn, D as li, f as Cr, e as Ir, g as Sr, h as wr, i as Rr } from "./appointment-details-panel.identity-C20Y9xNC.js";
9
9
  import { d as xa } from "./toast-DQ1Zu1kk.js";
10
10
  import { i as ui } from "./treatment-receipt-BZzwvsnY.js";
11
11
  import { A as L } from "./alert-C4WKViaS.js";
12
12
  import { B as te } from "./button-DohK_Ak_.js";
13
13
  import { R as Ae } from "./radio-BZQs6_36.js";
14
14
  import { R as Sn } from "./radio-group-ChIKyeSJ.js";
15
- import { q as Os, s as Hs, t as hi, v as Er, x as Tr, y as Lr, N as q, z as Ar, A as Kt, B as Or, F as Pr, G as qt, H as jt, I as Mr, J as Br, K as mi, p as Ta, L as Yt, M as Wr, O as Xt, P as $r, Q as Fr, S as Qt, T as zr, U as _r, X as Vr, Y as Hr, Z as Ur, R as Jt, _ as Zt, $ as we, a0 as Gr, a1 as Kr, a2 as qr, a3 as ei, a4 as jr, a5 as Ca, a6 as Yr, a7 as Xr, a8 as Qr, a9 as ni, aa as Ia, ab as si, c as Jr, ac as Zr, ad as ed, ae as nd, af as sd } from "./calendar-workspace.model-B8yPwuBv.js";
15
+ import { q as Os, s as Hs, t as hi, v as Dr, x as Er, y as Tr, N as q, z as Lr, A as Kt, B as Ar, F as Or, G as qt, H as jt, I as Pr, J as Mr, K as mi, p as Ta, L as Yt, M as Br, O as Xt, P as Wr, Q as $r, S as Qt, T as Fr, U as zr, X as _r, Y as Vr, Z as Hr, R as Jt, _ as Zt, $ as we, a0 as Ur, a1 as Gr, a2 as Kr, a3 as ei, a4 as qr, a5 as Ca, a6 as jr, a7 as Yr, a8 as Xr, a9 as ni, aa as Ia, ab as si, c as Qr, ac as Jr, ad as Zr, ae as ed, af as nd } from "./calendar-workspace.model-B8yPwuBv.js";
16
16
  import { V as Ps } from "./visually-hidden-BHxEUGyT.js";
17
- import { N as ad } from "./notes-panel-DsEKNtsw.js";
17
+ import { N as sd } from "./notes-panel-CnmQqhwq.js";
18
18
  import { A as gi } from "./avatar-Dp5apm1d.js";
19
19
  import { E as vi } from "./empty-state-DwJ5YNzz.js";
20
20
  import { P as Ms } from "./panel-header-CbtlTe85.js";
21
- import { P as td } from "./panel-subview-DCyvn-49.js";
21
+ import { P as ad } from "./panel-subview-DCyvn-49.js";
22
22
  import { F as z } from "./form-field-CyHfOVKF.js";
23
- import { C as La } from "./combobox-BBCVQS-S.js";
24
- import { S as id } from "./state-backed-text-input-DVETOhSS.js";
25
- import { T as rd } from "./text-area-COMVJ1yE.js";
23
+ import { C as La } from "./combobox-BYl6mY4c.js";
24
+ import { S as td } from "./state-backed-text-input-DVETOhSS.js";
25
+ import { T as id } from "./text-area-COMVJ1yE.js";
26
26
  import { N as Sa } from "./number-input-DUSvP7Dq.js";
27
- import { T as dd } from "./time-picker-DDr5vhwQ.js";
27
+ import { T as rd } from "./time-picker-DDr5vhwQ.js";
28
28
  import { C as pi } from "./color-picker-CC8ZfntU.js";
29
29
  import { G as Bs } from "./palettes-CKVXYTzo.js";
30
30
  import { a as bi } from "./whatsapp-button-XbozeDl_.js";
@@ -34,45 +34,46 @@ import { T as Ws } from "./tag-BNlcEJfE.js";
34
34
  import { D as Z } from "./dropdown-menu-DBWaW4pq.js";
35
35
  import { a as ai } from "./key-value-pair-DOTl68_U.js";
36
36
  import { T as Aa } from "./timestamp-DPLDWdxA.js";
37
- import { S as od } from "./switch-DO6uC4HJ.js";
37
+ import { S as dd } from "./switch-DO6uC4HJ.js";
38
38
  import { I as ve } from "./icon-button-S8_weU3g.js";
39
39
  import { B as yi } from "./button-group-DuQuuulC.js";
40
40
  import { I as ti } from "./icon-button-group-SmkdVCNx.js";
41
- import { C as cd, b as ld, a as ud } from "./collapsible-DVPM46bq.js";
41
+ import { C as od, b as cd, a as ld } from "./collapsible-DVPM46bq.js";
42
42
  import { D as $s } from "./date-picker-BmVBVpVu.js";
43
43
  import { D as mn } from "./dialog-CVTxyR0v.js";
44
44
  import { T as Fs } from "./trash-2-uumy3fy1.js";
45
45
  import { P as rs } from "./popover-CN5IsOeS.js";
46
- import { S as be } from "./select-CIXKyUMw.js";
47
- import { L as hd } from "./link-CeV7FoI6.js";
48
- import { S as md } from "./signature-status-chip-DS9hHwIt.js";
49
- import { g as gd } from "./date-locale-OG-MupVD.js";
50
- import { f as vd } from "./format-ql5WTsYT.js";
51
- import { R as pd } from "./repeat-CvQa5rZt.js";
46
+ import { S as be } from "./select-Bm8s3q-X.js";
47
+ import { L as ud } from "./link-CeV7FoI6.js";
48
+ import { S as hd } from "./signature-status-chip-DS9hHwIt.js";
49
+ import { g as md } from "./date-locale-OG-MupVD.js";
50
+ import { f as gd } from "./format-ql5WTsYT.js";
51
+ import { R as vd } from "./repeat-CvQa5rZt.js";
52
52
  import { a as ki } from "./compact-editor-fields-cP6yh7xv.js";
53
53
  import { c as ds } from "./index-D2ZczOXr.js";
54
54
  import { S as In } from "./skeleton-tTWJpvAq.js";
55
- import { T as bd } from "./transaction-chip-CkYd-3ky.js";
56
- import { a as yd } from "./workflow-status-CO0mxXs2.js";
57
- import { U as kd } from "./user-x-BJZg4kaP.js";
55
+ import { T as pd } from "./transaction-chip-CkYd-3ky.js";
56
+ import { a as bd } from "./workflow-status-CO0mxXs2.js";
57
+ import { U as yd } from "./user-x-BJZg4kaP.js";
58
58
  import { E as ii } from "./eye-off-C_4xkbRP.js";
59
- import { V as fd } from "./video-BheNGvsu.js";
59
+ import { V as kd } from "./video-BheNGvsu.js";
60
60
  import { M as fi } from "./map-pin-BaY37-Km.js";
61
61
  import { G as Ni } from "./globe-sHBW1JN5.js";
62
62
  import { A as wa } from "./armchair-BaLDW6Hz.js";
63
- import { U as Nd } from "./user-plus-BtcOLgNU.js";
64
- import { S as xd } from "./stethoscope-sZXGC43m.js";
65
- import { E as Cd } from "./eye-BjhN2nYf.js";
66
- import { P as Id } from "./pencil-B1sKKyuT.js";
67
- import { a as Sd } from "./entity-card-p-LANpYt.js";
63
+ import { U as fd } from "./user-plus-BtcOLgNU.js";
64
+ import { S as Nd } from "./stethoscope-sZXGC43m.js";
65
+ import { E as xd } from "./eye-BjhN2nYf.js";
66
+ import { P as Cd } from "./pencil-B1sKKyuT.js";
67
+ import { a as Id } from "./entity-card-p-LANpYt.js";
68
68
  import { A as ri } from "./arrow-left-BfaGqVam.js";
69
69
  import { H as di } from "./history-CK2JaU2g.js";
70
- import { C as wd } from "./calendar-plus-BFrIRE4r.js";
70
+ import { C as Sd } from "./calendar-plus-BFrIRE4r.js";
71
71
  import { L as Oa } from "./lock-ClAFG1gy.js";
72
- import { C as Rd } from "./calendar-clock-hbObjfGY.js";
73
- import { P as Dd } from "./plus-DzMQ_c6b.js";
72
+ import { C as wd } from "./calendar-clock-hbObjfGY.js";
73
+ import { P as Rd } from "./plus-DzMQ_c6b.js";
74
74
  import { C as Ts } from "./copy-vRpqqHtY.js";
75
75
  import { C as Ra } from "./clipboard-list-rSzfIYZB.js";
76
+ import { S as Dd } from "./save-Dn8uje3f.js";
76
77
  import { X as Ed } from "./x-B5YnXwCz.js";
77
78
  import { C as Td, L as Ld } from "./list-todo-KWvUhmT_.js";
78
79
  import { F as Ad } from "./funnel-DpPV3Qkd.js";
@@ -199,7 +200,7 @@ function Vd({
199
200
  }
200
201
  );
201
202
  }
202
- const Ii = gr(null), vl = Ii.Provider;
203
+ const Ii = gr(null), pl = Ii.Provider;
203
204
  function Si() {
204
205
  const n = vr(Ii);
205
206
  if (!n)
@@ -264,7 +265,7 @@ function Hd({
264
265
  fallbackLabel: s
265
266
  }) {
266
267
  var b;
267
- const i = Ye(), u = Nr();
268
+ const i = Ye(), u = fr();
268
269
  return /* @__PURE__ */ e(
269
270
  "div",
270
271
  {
@@ -508,7 +509,7 @@ function io({
508
509
  /* The date picker's own short format, so the line and the Last
509
510
  date field above it never print one day two ways. */
510
511
  o(y("recurrenceSummaryUntil"), {
511
- date: vd(f, gd(g))
512
+ date: gd(f, md(g))
512
513
  })
513
514
  ) : u === "count" && b && l.push(o(y("recurrenceSummaryCount"), { count: b })), l.join(" · ");
514
515
  }
@@ -631,7 +632,7 @@ function oo({
631
632
  "data-recurrence-summary": "",
632
633
  className: `${s} type-body-sm ds:flex ds:items-center ds:gap-[var(--spacing-xs)] ds:text-[color:var(--muted-foreground)]`,
633
634
  children: [
634
- /* @__PURE__ */ e(pd, { "aria-hidden": "true", className: "ds:size-4 ds:shrink-0" }),
635
+ /* @__PURE__ */ e(vd, { "aria-hidden": "true", className: "ds:size-4 ds:shrink-0" }),
635
636
  /* @__PURE__ */ e("span", { children: n })
636
637
  ]
637
638
  }
@@ -729,18 +730,18 @@ const uo = "ds:sm:[min-block-size:var(--accessible-target-floor,0px)] ds:[min-in
729
730
  addressKey: o
730
731
  }, y) => {
731
732
  var pe;
732
- const { t: v } = le("ui"), l = Ye(), k = s ?? "en", { row: h } = n, D = Er(
733
+ const { t: v } = le("ui"), l = Ye(), k = s ?? "en", { row: h } = n, D = Dr(
733
734
  h,
734
735
  i,
735
736
  l,
736
737
  v("calendarWorkspace.details.patientNotLoaded")
737
- ), T = Tr(h.event, l).record, S = i ? void 0 : l.bookingContacts[n.eventId], _ = lo(S == null ? void 0 : S.phone), B = ((pe = D.patient) == null ? void 0 : pe.name) ?? v(ie("needsPatient")), xe = Rn(k, n.start), A = (Q) => v(ie("actionNamed"), { action: Q, who: B, when: xe }), de = (Q) => {
738
+ ), T = Er(h.event, l).record, S = i ? void 0 : l.bookingContacts[n.eventId], _ = lo(S == null ? void 0 : S.phone), B = ((pe = D.patient) == null ? void 0 : pe.name) ?? v(ie("needsPatient")), xe = Rn(k, n.start), A = (Q) => v(ie("actionNamed"), { action: Q, who: B, when: xe }), de = (Q) => {
738
739
  u && (b == null || b(h, Q));
739
740
  }, ke = [
740
741
  n.needsPatient,
741
742
  n.needsOperator,
742
743
  n.needsChair
743
- ].filter(Boolean).length > 1, R = D.state, H = Sd(R ?? ""), d = H.Icon, tn = D.type === "telehealth" ? fd : fi, t = v(ie("whatsapp"));
744
+ ].filter(Boolean).length > 1, R = D.state, H = Id(R ?? ""), d = H.Icon, tn = D.type === "telehealth" ? kd : fi, t = v(ie("whatsapp"));
744
745
  let E;
745
746
  return D.patient ? i ? E = /* @__PURE__ */ e("span", { className: oi(), children: /* @__PURE__ */ e(ii, { "aria-hidden": "true", className: "ds:size-4" }) }) : E = /* @__PURE__ */ e(
746
747
  gi,
@@ -753,7 +754,7 @@ const uo = "ds:sm:[min-block-size:var(--accessible-target-floor,0px)] ds:[min-in
753
754
  role: "presentation",
754
755
  "aria-label": void 0
755
756
  }
756
- ) : E = /* @__PURE__ */ e("span", { className: oi(), children: /* @__PURE__ */ e(kd, { "aria-hidden": "true", className: "ds:size-4" }) }), /* @__PURE__ */ c(
757
+ ) : E = /* @__PURE__ */ e("span", { className: oi(), children: /* @__PURE__ */ e(yd, { "aria-hidden": "true", className: "ds:size-4" }) }), /* @__PURE__ */ c(
757
758
  "div",
758
759
  {
759
760
  ref: y,
@@ -833,7 +834,7 @@ const uo = "ds:sm:[min-block-size:var(--accessible-target-floor,0px)] ds:[min-in
833
834
  /* The details panel's own name for this money, so the same
834
835
  deposit reads the same on both surfaces. */
835
836
  /* @__PURE__ */ e(
836
- bd,
837
+ pd,
837
838
  {
838
839
  "data-booking-paid": "",
839
840
  state: "settled",
@@ -848,7 +849,7 @@ const uo = "ds:sm:[min-block-size:var(--accessible-target-floor,0px)] ds:[min-in
848
849
  )
849
850
  ) : null,
850
851
  R && R !== co ? /* @__PURE__ */ e(
851
- yd,
852
+ bd,
852
853
  {
853
854
  size: "sm",
854
855
  value: R,
@@ -945,7 +946,7 @@ const uo = "ds:sm:[min-block-size:var(--accessible-target-floor,0px)] ds:[min-in
945
946
  te,
946
947
  {
947
948
  intent: "primary",
948
- startIcon: /* @__PURE__ */ e(Nd, {}),
949
+ startIcon: /* @__PURE__ */ e(fd, {}),
949
950
  className: _n(),
950
951
  "aria-label": A(v(ie("assignPatient"))),
951
952
  "data-booking-action": "assign-patient",
@@ -962,7 +963,7 @@ const uo = "ds:sm:[min-block-size:var(--accessible-target-floor,0px)] ds:[min-in
962
963
  te,
963
964
  {
964
965
  intent: "primary",
965
- startIcon: /* @__PURE__ */ e(xd, {}),
966
+ startIcon: /* @__PURE__ */ e(Nd, {}),
966
967
  className: _n(),
967
968
  "aria-label": A(v(ie("assignOperator"))),
968
969
  "data-booking-action": "assign-operator",
@@ -993,7 +994,7 @@ const uo = "ds:sm:[min-block-size:var(--accessible-target-floor,0px)] ds:[min-in
993
994
  /* @__PURE__ */ e(
994
995
  ve,
995
996
  {
996
- icon: /* @__PURE__ */ e(Cd, {}),
997
+ icon: /* @__PURE__ */ e(xd, {}),
997
998
  className: _n(),
998
999
  "aria-label": v(ie("showInCalendarNamed"), { when: xe }),
999
1000
  tooltip: v(ie("showInCalendar")),
@@ -1005,7 +1006,7 @@ const uo = "ds:sm:[min-block-size:var(--accessible-target-floor,0px)] ds:[min-in
1005
1006
  u && !ke ? /* @__PURE__ */ e(
1006
1007
  ve,
1007
1008
  {
1008
- icon: /* @__PURE__ */ e(Id, {}),
1009
+ icon: /* @__PURE__ */ e(Cd, {}),
1009
1010
  className: _n(),
1010
1011
  "aria-label": A(v(ie("edit"))),
1011
1012
  tooltip: v(ie("edit")),
@@ -1125,10 +1126,10 @@ function bo() {
1125
1126
  function Vs(n) {
1126
1127
  return n.operators.filter((s) => !n.inactiveOperatorIds.includes(s.id));
1127
1128
  }
1128
- function pl(n) {
1129
- return n.unresolved ? "calendarWorkspace.details.patientNotLoaded" : n.assigned && nd(n, "sms") === "unknown" ? "calendarWorkspace.details.patientPhoneUnknown" : "calendarWorkspace.waitingList.whatsappDisabled";
1130
- }
1131
1129
  function bl(n) {
1130
+ return n.unresolved ? "calendarWorkspace.details.patientNotLoaded" : n.assigned && ed(n, "sms") === "unknown" ? "calendarWorkspace.details.patientPhoneUnknown" : "calendarWorkspace.waitingList.whatsappDisabled";
1131
+ }
1132
+ function yl(n) {
1132
1133
  return /* @__PURE__ */ e(yo, { ...n }, n.patientId);
1133
1134
  }
1134
1135
  function yo({
@@ -1154,7 +1155,7 @@ function yo({
1154
1155
  const k = y.current;
1155
1156
  k != null && k.onLoad && k.complete !== !0 && (k == null ? void 0 : k.status) !== "loading" && (k == null ? void 0 : k.status) !== "error" && v.current !== n && (v.current = n, k.onLoad("all"));
1156
1157
  }, [n, s == null ? void 0 : s.status, s == null ? void 0 : s.complete, l]), /* @__PURE__ */ e(
1157
- ad,
1158
+ sd,
1158
1159
  {
1159
1160
  notes: g,
1160
1161
  status: (s == null ? void 0 : s.status) ?? (s != null && s.onLoad ? "loading" : "ready"),
@@ -1202,7 +1203,7 @@ function Pi({
1202
1203
  options: b,
1203
1204
  value: n != null ? String(n) : "",
1204
1205
  onValueChange: (f) => s(f ? Number(f) : null),
1205
- filter: Yr,
1206
+ filter: jr,
1206
1207
  allowCreate: !0,
1207
1208
  onCreate: (f) => {
1208
1209
  const g = Number.parseInt(f.replace(/\D/g, ""), 10);
@@ -1216,7 +1217,7 @@ const ko = [
1216
1217
  "sms",
1217
1218
  "email"
1218
1219
  ], fo = "ds:@container/apptform", No = `ds:m-0 ds:grid ds:min-w-0 ds:grid-cols-1 ds:gap-[var(--spacing-md)] ds:border-0 ds:p-[var(--spacing-md)] ds:@[480px]/apptform:grid-cols-2 ds:@[704px]/apptform:grid-cols-3 ${ki}`, Y = "ds:col-span-full ds:min-w-0", Ls = "ds:min-w-0 ds:[&>div]:min-w-0", Be = `${Ls} ds:@[704px]/apptform:grid ds:@[704px]/apptform:grid-cols-[minmax(0,max-content)_minmax(0,1fr)] ds:@[704px]/apptform:items-center ds:@[704px]/apptform:gap-x-[var(--spacing-sm)]`;
1219
- function yl({
1220
+ function kl({
1220
1221
  prefill: n,
1221
1222
  onSave: s,
1222
1223
  onDelete: i,
@@ -1232,7 +1233,7 @@ function yl({
1232
1233
  onPatientContextChange: h,
1233
1234
  slotPatch: D,
1234
1235
  locale: T,
1235
- scheduleByEntry: S = zr,
1236
+ scheduleByEntry: S = Fr,
1236
1237
  history: _,
1237
1238
  noteUnrecordedEdits: B,
1238
1239
  onMove: xe,
@@ -1246,7 +1247,7 @@ function yl({
1246
1247
  className: tn
1247
1248
  }) {
1248
1249
  var Wt, $t, Ft, zt, _t, Vt;
1249
- const { t } = le("ui"), E = Ye(), { t: pe, i18n: Q } = le("ui"), r = (a) => `calendarWorkspace.editor.${a}`, F = (a) => `calendarWorkspace.details.${a}`, G = (a) => `calendarWorkspace.bookingTriage.${a}`, { close: _e, open: Ce } = Si(), ue = fr(), w = !!(n != null && n.editEventId), Dn = w && !X ? R == null ? void 0 : R.scopes : void 0, Vn = R != null && R.detached ? void 0 : Dn, [Ie, Gs] = N(), [Hn, vn] = N(!1), Ve = !!Vn && (!Ie || Hn), rn = Ie ?? (R != null && R.detached ? "this" : void 0), W = rn ? { ...ke, ...(Wt = R == null ? void 0 : R.capabilitiesByScope) == null ? void 0 : Wt[rn] } : ke, De = (W == null ? void 0 : W.editCare) !== !1, Xe = (W == null ? void 0 : W.editPatient) === !1, He = (d == null ? void 0 : d.operatorOptions) ?? Vs(E), [dn, Un] = N(!1), [me, Ks] = N(!1), [ee, En] = N(), [qs, Gn] = N(!1), Ue = wn(), We = P(!1), Qe = P(!1), fe = P(!0);
1250
+ const { t } = le("ui"), E = Ye(), { t: pe, i18n: Q } = le("ui"), r = (a) => `calendarWorkspace.editor.${a}`, F = (a) => `calendarWorkspace.details.${a}`, G = (a) => `calendarWorkspace.bookingTriage.${a}`, { close: _e, open: Ce } = Si(), ue = kr(), w = !!(n != null && n.editEventId), Dn = w && !X ? R == null ? void 0 : R.scopes : void 0, Vn = R != null && R.detached ? void 0 : Dn, [Ie, Gs] = N(), [Hn, vn] = N(!1), Ve = !!Vn && (!Ie || Hn), rn = Ie ?? (R != null && R.detached ? "this" : void 0), W = rn ? { ...ke, ...(Wt = R == null ? void 0 : R.capabilitiesByScope) == null ? void 0 : Wt[rn] } : ke, De = (W == null ? void 0 : W.editCare) !== !1, Xe = (W == null ? void 0 : W.editPatient) === !1, He = (d == null ? void 0 : d.operatorOptions) ?? Vs(E), [dn, Un] = N(!1), [me, Ks] = N(!1), [ee, En] = N(), [qs, Gn] = N(!1), Ue = wn(), We = P(!1), Qe = P(!1), fe = P(!0);
1250
1251
  V(() => (fe.current = !0, () => {
1251
1252
  fe.current = !1;
1252
1253
  }), []);
@@ -1278,7 +1279,7 @@ function yl({
1278
1279
  const [Je, Tn] = N(
1279
1280
  n != null && n.isTelehealth ? "telehealth" : "in_practice"
1280
1281
  ), [O, Ln] = N(
1281
- () => (n == null ? void 0 : n.date) ?? Lr(E.initialDateIso, E.nowIso)
1282
+ () => (n == null ? void 0 : n.date) ?? Tr(E.initialDateIso, E.nowIso)
1282
1283
  ), [ge, jn] = N(
1283
1284
  (n == null ? void 0 : n.time) ?? { hours: 9, minutes: 0 }
1284
1285
  ), [Oe, An] = N(
@@ -1288,7 +1289,7 @@ function yl({
1288
1289
  ), [oe, kn] = N(
1289
1290
  (n == null ? void 0 : n.chairId) ?? (!w && E.chairs.length === 1 ? E.chairs[0].id : q)
1290
1291
  ), [Pn, ls] = N(
1291
- () => w ? (n == null ? void 0 : n.colorHex) ?? "" : Ar(n)
1292
+ () => w ? (n == null ? void 0 : n.colorHex) ?? "" : Lr(n)
1292
1293
  ), [Ge, js] = N((n == null ? void 0 : n.care) ?? ""), Ze = !w || !!(n != null && n.bookingContact), [Ke, Mn] = N(
1293
1294
  Ze ? (($t = d == null ? void 0 : d.defaultReminders) == null ? void 0 : $t.email) === !0 : (n == null ? void 0 : n.emailReminder) === !0
1294
1295
  ), [$e, Yn] = N(
@@ -1325,7 +1326,7 @@ function yl({
1325
1326
  Qn(a), a === "" && J((m) => m === "priceList" ? q : m);
1326
1327
  }
1327
1328
  }, [w, Se, M, E]);
1328
- const he = K ? E.carePlanById(K) : void 0, Ba = E.priceLists ?? [], Bi = Or(E), Wa = jr(Bi), $a = Wa || I === "priceList", Wi = w || $a || Se.length > 0, $i = he && !Se.some((a) => a.id === he.id) ? [he, ...Se] : Se, Fa = he ? he.entries.filter((a) => !a.done || Pe.includes(a.id)) : [], Fi = (a) => Pe.includes(a.id) ? a.phases && a.phases.length > 0 && (qe[a.id] ?? []).length < a.phases.length ? "indeterminate" : !0 : !1, zi = (a, m) => {
1329
+ const he = K ? E.carePlanById(K) : void 0, Ba = E.priceLists ?? [], Bi = Ar(E), Wa = qr(Bi), $a = Wa || I === "priceList", Wi = w || $a || Se.length > 0, $i = he && !Se.some((a) => a.id === he.id) ? [he, ...Se] : Se, Fa = he ? he.entries.filter((a) => !a.done || Pe.includes(a.id)) : [], Fi = (a) => Pe.includes(a.id) ? a.phases && a.phases.length > 0 && (qe[a.id] ?? []).length < a.phases.length ? "indeterminate" : !0 : !1, zi = (a, m) => {
1329
1330
  const C = m !== !1;
1330
1331
  Fe(
1331
1332
  (U) => C ? U.includes(a.id) ? U : [...U, a.id] : U.filter(($) => $ !== a.id)
@@ -1409,7 +1410,7 @@ function yl({
1409
1410
  return;
1410
1411
  }
1411
1412
  ms.current = hs;
1412
- const a = Pr(Ee, E);
1413
+ const a = Or(Ee, E);
1413
1414
  a.durationMin !== void 0 && An(a.durationMin);
1414
1415
  }, [hs, Ee, E, De]);
1415
1416
  const gs = (Ee == null ? void 0 : Ee.kind) === "plan", es = De && Ee ? E.careEntriesFromLink(Ee) : n == null ? void 0 : n.cares, ln = ye(() => I === "plan" && he ? he.entries.filter((a) => Pe.includes(a.id)).map((a) => a.careId) : I === "priceList" ? je.filter((a) => a.careId).map((a) => a.careId) : ((n == null ? void 0 : n.cares) ?? []).map((a) => a.careId).filter((a) => !!a), [I, he, Pe, je, n == null ? void 0 : n.cares]), za = ye(
@@ -1563,9 +1564,9 @@ function yl({
1563
1564
  [ue]
1564
1565
  );
1565
1566
  const Ss = O ? E.closureOn(
1566
- Mr(O),
1567
+ Pr(O),
1567
1568
  se === q ? void 0 : se
1568
- ) : null, nt = (d == null ? void 0 : d.operatorAbsenceWarning) === !0 && (Ss == null ? void 0 : Ss.kind) === "absence", st = nt ? null : Ss, at = Br(n == null ? void 0 : n.callToAction, {
1569
+ ) : null, nt = (d == null ? void 0 : d.operatorAbsenceWarning) === !0 && (Ss == null ? void 0 : Ss.kind) === "absence", st = nt ? null : Ss, at = Mr(n == null ? void 0 : n.callToAction, {
1569
1570
  patientId: M || void 0,
1570
1571
  operatorId: se === q ? void 0 : se
1571
1572
  }), la = d == null ? void 0 : d.descriptionMaxLength, tt = la !== void 0 && Ge.length > la, zn = (n == null ? void 0 : n.simpleSave) === !1, ss = !dn && !me && (w ? Za : !!O) && !tt && !Ka && at, sr = me || l || (w ? Za : !0), Te = mi(M, E), ar = n != null && n.editEventId ? (zt = E.baseEvents.find((a) => a.event.id === n.editEventId)) == null ? void 0 : zt.event.title : void 0, it = Ta(
@@ -1579,7 +1580,7 @@ function yl({
1579
1580
  const ws = (d == null ? void 0 : d.branches) ?? [], [ut, rr] = N(() => {
1580
1581
  var a;
1581
1582
  return ((a = ws[0]) == null ? void 0 : a.id) ?? "";
1582
- }), ua = !w && Te.assigned && (d != null && d.unsignedRequiredDocs) ? d.unsignedRequiredDocs(Te.id) : 0, ht = (d == null ? void 0 : d.signatureCredits) !== void 0 && d.signatureCredits.available <= 0, mt = ua > 0 && !ht, dr = ht && ua > 0 && !w && Te.assigned, Rs = Wr(Te), as = ei(Rs.sms), ts = ei(Rs.email), xn = Xt(Rs.sms, {
1583
+ }), ua = !w && Te.assigned && (d != null && d.unsignedRequiredDocs) ? d.unsignedRequiredDocs(Te.id) : 0, ht = (d == null ? void 0 : d.signatureCredits) !== void 0 && d.signatureCredits.available <= 0, mt = ua > 0 && !ht, dr = ht && ua > 0 && !w && Te.assigned, Rs = Br(Te), as = ei(Rs.sms), ts = ei(Rs.email), xn = Xt(Rs.sms, {
1583
1584
  optedOut: r("signModeSmsDisabled"),
1584
1585
  none: r("signModeSmsDisabled")
1585
1586
  }), Cn = Xt(Rs.email, {
@@ -1601,7 +1602,7 @@ function yl({
1601
1602
  m = !1;
1602
1603
  };
1603
1604
  }, [w, M, ma]);
1604
- const ga = d != null && d.devicesByCare && !Ns ? $r(es, d.devicesByCare) : [], en = O ? new Date(O) : void 0;
1605
+ const ga = d != null && d.devicesByCare && !Ns ? Wr(es, d.devicesByCare) : [], en = O ? new Date(O) : void 0;
1605
1606
  en && en.setHours(ge.hours, ge.minutes, 0, 0);
1606
1607
  const [or, bt] = N({}), yt = P(d == null ? void 0 : d.sameDayReminders);
1607
1608
  yt.current = d == null ? void 0 : d.sameDayReminders;
@@ -1639,7 +1640,7 @@ function yl({
1639
1640
  }, [pa, Ze]), V(() => {
1640
1641
  Ze && ba === "earlier" && Mn(!1);
1641
1642
  }, [ba, Ze]);
1642
- const Nt = Je === "telehealth" && Te.assigned && p("emailReminder", Ke) && p("smsReminder", $e) && !(Ke && (!Le || ts)) && !($e && (!Le || as)), is = qs && Nt, xt = d != null && d.rows && en && !un ? Fr(d.rows, {
1643
+ const Nt = Je === "telehealth" && Te.assigned && p("emailReminder", Ke) && p("smsReminder", $e) && !(Ke && (!Le || ts)) && !($e && (!Le || as)), is = qs && Nt, xt = d != null && d.rows && en && !un ? $r(d.rows, {
1643
1644
  start: en,
1644
1645
  end: new Date(en.getTime() + (Oe ?? 30) * 6e4),
1645
1646
  chairId: oe === q ? void 0 : oe,
@@ -1798,7 +1799,7 @@ function yl({
1798
1799
  tabIndex: 0,
1799
1800
  className: "ds:[min-block-size:0] ds:flex-1 ds:overflow-y-auto ds:p-[var(--spacing-md)]",
1800
1801
  children: /* @__PURE__ */ e(
1801
- xr,
1802
+ Nr,
1802
1803
  {
1803
1804
  history: _ ?? [],
1804
1805
  locale: T,
@@ -1818,7 +1819,7 @@ function yl({
1818
1819
  Ms,
1819
1820
  {
1820
1821
  title: f ?? t(r(w ? "editTitle" : "title")),
1821
- icon: g ?? /* @__PURE__ */ e(wd, { "aria-hidden": "true" }),
1822
+ icon: g ?? /* @__PURE__ */ e(Sd, { "aria-hidden": "true" }),
1822
1823
  sticky: !0,
1823
1824
  divider: !0,
1824
1825
  actions: _ ? /* @__PURE__ */ e(ae, { children: _ ? /* @__PURE__ */ e(
@@ -2084,7 +2085,7 @@ function yl({
2084
2085
  children: /* @__PURE__ */ c(L.Description, { children: [
2085
2086
  t(r("signatureCreditsNone")),
2086
2087
  " ",
2087
- /* @__PURE__ */ e(hd, { href: d.signatureCredits.buyHref, external: !0, children: t(r("signatureCreditsBuy")) })
2088
+ /* @__PURE__ */ e(ud, { href: d.signatureCredits.buyHref, external: !0, children: t(r("signatureCreditsBuy")) })
2088
2089
  ] })
2089
2090
  }
2090
2091
  ) : null,
@@ -2205,7 +2206,7 @@ function yl({
2205
2206
  variant: "neutral",
2206
2207
  fill: "outline",
2207
2208
  size: "sm",
2208
- leading: /* @__PURE__ */ e(Rd, { "aria-hidden": "true" })
2209
+ leading: /* @__PURE__ */ e(wd, { "aria-hidden": "true" })
2209
2210
  },
2210
2211
  $.eventId
2211
2212
  ))
@@ -2409,7 +2410,7 @@ function yl({
2409
2410
  {
2410
2411
  size: "sm",
2411
2412
  intent: "outline",
2412
- startIcon: /* @__PURE__ */ e(Dd, { "aria-hidden": "true" }),
2413
+ startIcon: /* @__PURE__ */ e(Rd, { "aria-hidden": "true" }),
2413
2414
  onClick: Vi,
2414
2415
  children: t(r("priceListAdd"))
2415
2416
  }
@@ -2422,7 +2423,7 @@ function yl({
2422
2423
  label: t(r("description")),
2423
2424
  error: tt ? t(r("descriptionTooLong"), { max: la }) : void 0,
2424
2425
  children: /* @__PURE__ */ e(
2425
- id,
2426
+ td,
2426
2427
  {
2427
2428
  value: Ge,
2428
2429
  disabled: (W == null ? void 0 : W.editDescription) === !1,
@@ -2436,7 +2437,7 @@ function yl({
2436
2437
  {
2437
2438
  className: Y,
2438
2439
  label: t(r("cares")),
2439
- value: _r(es)
2440
+ value: zr(es)
2440
2441
  }
2441
2442
  ) : null,
2442
2443
  ga.length > 0 ? /* @__PURE__ */ e(
@@ -2455,7 +2456,7 @@ function yl({
2455
2456
  {
2456
2457
  className: Ls,
2457
2458
  label: t(r("time")),
2458
- children: /* @__PURE__ */ e(dd, { value: ge, onChange: jn })
2459
+ children: /* @__PURE__ */ e(rd, { value: ge, onChange: jn })
2459
2460
  }
2460
2461
  ),
2461
2462
  /* @__PURE__ */ e(
@@ -2496,7 +2497,7 @@ function yl({
2496
2497
  variant: "warning",
2497
2498
  announce: "polite",
2498
2499
  className: Y,
2499
- children: /* @__PURE__ */ e(L.Description, { children: Vr(
2500
+ children: /* @__PURE__ */ e(L.Description, { children: _r(
2500
2501
  t,
2501
2502
  Q.language,
2502
2503
  st,
@@ -2680,7 +2681,7 @@ function yl({
2680
2681
  be,
2681
2682
  {
2682
2683
  options: [
2683
- ...Hr.map((a) => ({
2684
+ ...Vr.map((a) => ({
2684
2685
  value: a,
2685
2686
  label: t(r(As[a]))
2686
2687
  })),
@@ -2745,7 +2746,7 @@ function yl({
2745
2746
  {
2746
2747
  value: ks,
2747
2748
  min: 2,
2748
- max: Ur,
2749
+ max: Hr,
2749
2750
  onChange: Xi
2750
2751
  }
2751
2752
  )
@@ -2955,7 +2956,7 @@ function yl({
2955
2956
  {
2956
2957
  size: "sm",
2957
2958
  intent: "outline",
2958
- icon: /* @__PURE__ */ e(Cr, { "aria-hidden": "true" }),
2959
+ icon: /* @__PURE__ */ e(xr, { "aria-hidden": "true" }),
2959
2960
  "aria-label": t(F("move")),
2960
2961
  tooltip: t(F("move")),
2961
2962
  onClick: xe
@@ -3028,7 +3029,7 @@ function yl({
3028
3029
  {
3029
3030
  size: "sm",
3030
3031
  intent: zn ? "outline" : "primary",
3031
- icon: /* @__PURE__ */ e(kr, { "aria-hidden": "true" }),
3032
+ icon: /* @__PURE__ */ e(Dd, { "aria-hidden": "true" }),
3032
3033
  "aria-label": t(r(zn ? "saveAndStay" : "save")),
3033
3034
  tooltip: t(r(zn ? "saveAndStay" : "save")),
3034
3035
  disabled: !ss,
@@ -3120,7 +3121,7 @@ function yl({
3120
3121
  }
3121
3122
  );
3122
3123
  }
3123
- function kl({
3124
+ function fl({
3124
3125
  row: n,
3125
3126
  patientRef: s,
3126
3127
  showAge: i = !1,
@@ -3129,7 +3130,7 @@ function kl({
3129
3130
  }) {
3130
3131
  const { t: f } = le("ui"), g = Ye(), o = s.record;
3131
3132
  return /* @__PURE__ */ e(
3132
- Dr,
3133
+ Rr,
3133
3134
  {
3134
3135
  name: Ta(
3135
3136
  s,
@@ -3140,7 +3141,7 @@ function kl({
3140
3141
  unresolved: s.unresolved,
3141
3142
  status: n.event.status,
3142
3143
  flags: n.event,
3143
- age: i && (o != null && o.dobIso) ? ed(o.dobIso, g) : void 0,
3144
+ age: i && (o != null && o.dobIso) ? Zr(o.dobIso, g) : void 0,
3144
3145
  onOpenPatient: u && o ? () => u(o) : void 0,
3145
3146
  highlightedAnamnesisCount: o == null ? void 0 : o.highlightedAnamnesisCount,
3146
3147
  expiredAnamnesisCount: o == null ? void 0 : o.expiredAnamnesisCount,
@@ -3186,7 +3187,7 @@ function xo({
3186
3187
  /* @__PURE__ */ e(Ps, { "aria-live": "polite", children: b ? i(u("remindSent"), { channel: b }) : "" })
3187
3188
  ] });
3188
3189
  }
3189
- function fl({
3190
+ function Nl({
3190
3191
  row: n,
3191
3192
  patient: s,
3192
3193
  locale: i,
@@ -3197,7 +3198,7 @@ function fl({
3197
3198
  platform: o
3198
3199
  }) {
3199
3200
  var Q;
3200
- const y = Ye(), { t: v } = le("ui"), l = (r) => `calendarWorkspace.details.${r}`, { t: k } = le("ui"), h = y.metaById[n.event.id], D = (h == null ? void 0 : h.documentsToSign) ?? [], T = Zr(D), [S, _] = N(""), B = (r) => {
3201
+ const y = Ye(), { t: v } = le("ui"), l = (r) => `calendarWorkspace.details.${r}`, { t: k } = le("ui"), h = y.metaById[n.event.id], D = (h == null ? void 0 : h.documentsToSign) ?? [], T = Jr(D), [S, _] = N(""), B = (r) => {
3201
3202
  b == null || b(n.event.id, r), _(
3202
3203
  v(l("signingRequestedReadout"), {
3203
3204
  channel: v(l(r === "sms" ? "remindSms" : "remindEmail"))
@@ -3206,7 +3207,7 @@ function fl({
3206
3207
  }, xe = v(l(u === "sms" ? "signingRequestedSms" : u === "email" ? "signingRequestedEmail" : "signingNotRequested")), A = n.careLink, de = (A == null ? void 0 : A.kind) === "plan" ? y.carePlanById(A.planId) : void 0, X = (A == null ? void 0 : A.kind) === "plan" && de ? de.entries.filter((r) => A.entryIds.includes(r.id)) : [], ke = (A == null ? void 0 : A.kind) === "priceList" ? (Q = (y.priceLists ?? []).find((r) => r.id === A.priceListId)) == null ? void 0 : Q.name : void 0, R = new Intl.NumberFormat(i, {
3207
3208
  style: "currency",
3208
3209
  currency: y.currency ?? "EUR"
3209
- }), H = "ds:flex ds:items-baseline ds:gap-[var(--spacing-xs)]", d = "type-body-sm ds:text-[color:var(--muted-foreground)] ds:shrink-0", tn = s ? Sr(s) : "", t = s ? wr(s) : "", E = !!(o != null && o.mapsLink) && tn !== "", pe = !!(s != null && s.dobIso || s != null && s.phone || s != null && s.email || s != null && s.city || o != null && o.bookingPhone || E);
3210
+ }), H = "ds:flex ds:items-baseline ds:gap-[var(--spacing-xs)]", d = "type-body-sm ds:text-[color:var(--muted-foreground)] ds:shrink-0", tn = s ? Ir(s) : "", t = s ? Sr(s) : "", E = !!(o != null && o.mapsLink) && tn !== "", pe = !!(s != null && s.dobIso || s != null && s.phone || s != null && s.email || s != null && s.city || o != null && o.bookingPhone || E);
3210
3211
  return /* @__PURE__ */ c("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)] ds:border-t ds:border-[var(--border)] ds:pt-[var(--spacing-md)]", children: [
3211
3212
  n.series ? /* @__PURE__ */ c("div", { className: H, children: [
3212
3213
  /* @__PURE__ */ e("span", { className: d, children: v(l("seriesLabel")) }),
@@ -3316,7 +3317,7 @@ function fl({
3316
3317
  children: [
3317
3318
  /* @__PURE__ */ e("span", { className: "ds:[min-inline-size:0] ds:truncate", children: r.name }),
3318
3319
  /* @__PURE__ */ e(
3319
- md,
3320
+ hd,
3320
3321
  {
3321
3322
  className: "ds:ms-auto",
3322
3323
  size: "sm",
@@ -3447,7 +3448,7 @@ function fl({
3447
3448
  "a",
3448
3449
  {
3449
3450
  className: "ds:inline-flex ds:items-center ds:gap-[var(--spacing-2xs)]",
3450
- href: Rr(s),
3451
+ href: wr(s),
3451
3452
  target: "_blank",
3452
3453
  rel: "noopener noreferrer",
3453
3454
  "aria-label": `${v(l("mapsLink"))} — ${t}`,
@@ -3556,7 +3557,7 @@ function Ro({
3556
3557
  Z.Item,
3557
3558
  {
3558
3559
  startIcon: /* @__PURE__ */ e(Bd, { "aria-hidden": "true" }),
3559
- onSelect: () => u == null ? void 0 : u(Jr),
3560
+ onSelect: () => u == null ? void 0 : u(Qr),
3560
3561
  children: b("common.resetToDefaults")
3561
3562
  }
3562
3563
  )
@@ -3565,7 +3566,7 @@ function Ro({
3565
3566
  )
3566
3567
  ] });
3567
3568
  }
3568
- function Nl({
3569
+ function xl({
3569
3570
  bookings: n,
3570
3571
  locale: s,
3571
3572
  privacy: i = !1,
@@ -3583,7 +3584,7 @@ function Nl({
3583
3584
  }) {
3584
3585
  const { t: T } = le("ui"), S = Ye(), _ = S.chairs.length > 0, B = ye(
3585
3586
  () => n.map(
3586
- (R) => qr(
3587
+ (R) => Kr(
3587
3588
  R,
3588
3589
  S,
3589
3590
  b ? new Date(b).getTime() : null,
@@ -3715,7 +3716,7 @@ function Do({
3715
3716
  reset: D,
3716
3717
  submit: () => {
3717
3718
  if (!s) {
3718
- if (!sd({ patientId: u, description: v })) {
3719
+ if (!nd({ patientId: u, description: v })) {
3719
3720
  h(!0);
3720
3721
  return;
3721
3722
  }
@@ -3801,7 +3802,7 @@ function Eo({
3801
3802
  }
3802
3803
  ) }),
3803
3804
  /* @__PURE__ */ e(z, { label: f("calendarWorkspace.editor.description"), children: /* @__PURE__ */ e(
3804
- rd,
3805
+ id,
3805
3806
  {
3806
3807
  value: n.description,
3807
3808
  onChange: (v) => {
@@ -3817,7 +3818,7 @@ function Eo({
3817
3818
  n.showError ? /* @__PURE__ */ e(L, { variant: "error", children: /* @__PURE__ */ e(L.Description, { children: f("calendarWorkspace.waitingList.formError") }) }) : null
3818
3819
  ] });
3819
3820
  }
3820
- function xl({
3821
+ function Cl({
3821
3822
  open: n,
3822
3823
  entry: s,
3823
3824
  onSave: i,
@@ -3832,7 +3833,7 @@ function xl({
3832
3833
  }, [n, s, l]);
3833
3834
  const k = !!s && !f && b !== void 0;
3834
3835
  return /* @__PURE__ */ e(
3835
- td,
3836
+ ad,
3836
3837
  {
3837
3838
  open: n,
3838
3839
  onBack: u,
@@ -3997,7 +3998,7 @@ function Oo(n, s) {
3997
3998
  return !1;
3998
3999
  return !0;
3999
4000
  }
4000
- function Cl({
4001
+ function Il({
4001
4002
  rows: n,
4002
4003
  locale: s,
4003
4004
  seed: i,
@@ -4031,7 +4032,7 @@ function Cl({
4031
4032
  }), [Ce, ue] = N(() => {
4032
4033
  if (y) return y.toDate;
4033
4034
  const p = new Date(k.nowIso);
4034
- return p.setHours(0, 0, 0, 0), p.setDate(p.getDate() + Gr), p;
4035
+ return p.setHours(0, 0, 0, 0), p.setDate(p.getDate() + Ur), p;
4035
4036
  }), [w, Dn] = N(
4036
4037
  (y == null ? void 0 : y.results) ?? null
4037
4038
  ), [Vn, Ie] = N(!1), [Gs, Hn] = N(!1), [vn, Ve] = N((y == null ? void 0 : y.capped) ?? !1), [rn, W] = N(
@@ -4080,7 +4081,7 @@ function Cl({
4080
4081
  ...T,
4081
4082
  ...Qe.length === 1 ? { scopeOperatorId: Qe[0].id } : {},
4082
4083
  ...fe.length === 1 ? { scopeChairId: fe[0].id } : {}
4083
- }, pn = E ? pe : R === we ? [] : [R], bn = g == null ? void 0 : g.operatorGroups, Kn = (p, x, I, J) => x && x.length > 0 ? Xr({
4084
+ }, pn = E ? pe : R === we ? [] : [R], bn = g == null ? void 0 : g.operatorGroups, Kn = (p, x, I, J) => x && x.length > 0 ? Yr({
4084
4085
  groups: x,
4085
4086
  operators: I,
4086
4087
  inactiveIds: [],
@@ -4128,7 +4129,7 @@ function Cl({
4128
4129
  ...ee ? { careId: ee.id } : {},
4129
4130
  ...A ? { medicalDeviceIds: [A] } : {}
4130
4131
  };
4131
- }, on = (p, x) => Qr(
4132
+ }, on = (p, x) => Xr(
4132
4133
  {
4133
4134
  rows: n,
4134
4135
  chairs: fe,
@@ -4272,7 +4273,7 @@ function Cl({
4272
4273
  patientId: i == null ? void 0 : i.patientId
4273
4274
  };
4274
4275
  x ? u(I, x) : u(I), D("appointment-editor");
4275
- }, Mn = g != null && g.devicesByCare && ee ? g.devicesByCare[ee.id] ?? [] : [], $e = g == null ? void 0 : g.maxRangeDays, Yn = !!($e && G && Ce && Kr(G, Ce) > $e), cn = (g == null ? void 0 : g.practiceHasBusinessHours) === !1, Bn = (g == null ? void 0 : g.operatorsHaveBusinessHours) === !1, Ys = ye(() => {
4276
+ }, Mn = g != null && g.devicesByCare && ee ? g.devicesByCare[ee.id] ?? [] : [], $e = g == null ? void 0 : g.maxRangeDays, Yn = !!($e && G && Ce && Gr(G, Ce) > $e), cn = (g == null ? void 0 : g.practiceHasBusinessHours) === !1, Bn = (g == null ? void 0 : g.operatorsHaveBusinessHours) === !1, Ys = ye(() => {
4276
4277
  if (!w) return [];
4277
4278
  const p = /* @__PURE__ */ new Map();
4278
4279
  for (const x of w) {
@@ -4317,8 +4318,8 @@ function Cl({
4317
4318
  }
4318
4319
  ) : null
4319
4320
  ] }) }) }) : null,
4320
- /* @__PURE__ */ c(cd, { open: He, onOpenChange: dn, children: [
4321
- /* @__PURE__ */ e(ld, { asChild: !0, children: /* @__PURE__ */ e(
4321
+ /* @__PURE__ */ c(od, { open: He, onOpenChange: dn, children: [
4322
+ /* @__PURE__ */ e(cd, { asChild: !0, children: /* @__PURE__ */ e(
4322
4323
  te,
4323
4324
  {
4324
4325
  size: "sm",
@@ -4327,7 +4328,7 @@ function Cl({
4327
4328
  children: l(h("filters"))
4328
4329
  }
4329
4330
  ) }),
4330
- /* @__PURE__ */ e(ud, { children: /* @__PURE__ */ c("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)] ds:pt-[var(--spacing-md)]", children: [
4331
+ /* @__PURE__ */ e(ld, { children: /* @__PURE__ */ c("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)] ds:pt-[var(--spacing-md)]", children: [
4331
4332
  /* @__PURE__ */ e(z, { label: l(h("care")), children: /* @__PURE__ */ e(
4332
4333
  La,
4333
4334
  {
@@ -4471,7 +4472,7 @@ function Cl({
4471
4472
  }
4472
4473
  ) : /* @__PURE__ */ c("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
4473
4474
  S ? null : /* @__PURE__ */ e(
4474
- od,
4475
+ dd,
4475
4476
  {
4476
4477
  label: l(h("showInCalendar")),
4477
4478
  checked: De,
@@ -4500,7 +4501,7 @@ function Cl({
4500
4501
  qe,
4501
4502
  Fe,
4502
4503
  A || void 0
4503
- ].filter(Boolean).join(" · "), fn = Ir(
4504
+ ].filter(Boolean).join(" · "), fn = Cr(
4504
4505
  s,
4505
4506
  I.start,
4506
4507
  new Date(I.start.getTime() + I.durationMin * 6e4)
@@ -4565,21 +4566,21 @@ function Cl({
4565
4566
  ] });
4566
4567
  }
4567
4568
  export {
4568
- yl as A,
4569
- Nl as B,
4569
+ kl as A,
4570
+ xl as B,
4570
4571
  Xd as C,
4571
- Cl as F,
4572
- bl as P,
4573
- vl as S,
4574
- xl as W,
4572
+ Il as F,
4573
+ yl as P,
4574
+ pl as S,
4575
+ Cl as W,
4575
4576
  wi as a,
4576
4577
  Vs as b,
4577
4578
  Vd as c,
4578
4579
  Kd as d,
4579
- fl as e,
4580
- kl as f,
4580
+ Nl as e,
4581
+ fl as f,
4581
4582
  so as i,
4582
4583
  Si as u,
4583
- pl as w
4584
+ bl as w
4584
4585
  };
4585
- //# sourceMappingURL=calendar.sheets-aodjllWd.js.map
4586
+ //# sourceMappingURL=calendar.sheets-B0jP2Yt0.js.map