@alfadocs/ui-kit-debug 0.84.1 → 0.86.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 (238) hide show
  1. package/dist/_chunks/actions-cell-renderer-DaL80uqL.js.map +1 -1
  2. package/dist/_chunks/{ai-consent-banner-DUhr1yNj.js → ai-consent-banner-BXD7W6FI.js} +2 -2
  3. package/dist/_chunks/{ai-consent-banner-DUhr1yNj.js.map → ai-consent-banner-BXD7W6FI.js.map} +1 -1
  4. package/dist/_chunks/{alert-KJbsPYkI.js → alert-Cxaqd-QO.js} +12 -12
  5. package/dist/_chunks/alert-Cxaqd-QO.js.map +1 -0
  6. package/dist/_chunks/anamnesis-card-CJ5MNbkc.js.map +1 -1
  7. package/dist/_chunks/{audio-recorder-Cc3KuL9y.js → audio-recorder-BjnB7V8n.js} +2 -2
  8. package/dist/_chunks/{audio-recorder-Cc3KuL9y.js.map → audio-recorder-BjnB7V8n.js.map} +1 -1
  9. package/dist/_chunks/{booking-CLmeXtGv.js → booking-BvCu2XWY.js} +2 -2
  10. package/dist/_chunks/{booking-CLmeXtGv.js.map → booking-BvCu2XWY.js.map} +1 -1
  11. package/dist/_chunks/breadcrumb-agut0PwN.js.map +1 -1
  12. package/dist/_chunks/calendar-event-card-C6qGtywL.js.map +1 -1
  13. package/dist/_chunks/chat-input-QpHxBEnN.js.map +1 -1
  14. package/dist/_chunks/chat-message-CdjWqZjo.js.map +1 -1
  15. package/dist/_chunks/checkbox-group-CfqMv57d.js.map +1 -1
  16. package/dist/_chunks/dependent-selector-DyFpdzZV.js.map +1 -1
  17. package/dist/_chunks/{document-preview-nwfulDEs.js → document-preview-DXl9migE.js} +2 -2
  18. package/dist/_chunks/{document-preview-nwfulDEs.js.map → document-preview-DXl9migE.js.map} +1 -1
  19. package/dist/_chunks/{document-scanner-B6h1Ir56.js → document-scanner-cS_ispQs.js} +3 -3
  20. package/dist/_chunks/document-scanner-cS_ispQs.js.map +1 -0
  21. package/dist/_chunks/editable-currency-cell-renderer-Dus_sBvX.js.map +1 -1
  22. package/dist/_chunks/email-input-Dpe63k0K.js.map +1 -1
  23. package/dist/_chunks/{entity-summary--vP698Jn.js → entity-summary-BILN4wEG.js} +2 -2
  24. package/dist/_chunks/{entity-summary--vP698Jn.js.map → entity-summary-BILN4wEG.js.map} +1 -1
  25. package/dist/_chunks/{field-value-DHG6gEKS.js → field-value-BRVbZJej.js} +133 -144
  26. package/dist/_chunks/field-value-BRVbZJej.js.map +1 -0
  27. package/dist/_chunks/{file-manager-DLJlinIO.js → file-manager-B9LZzT5E.js} +129 -129
  28. package/dist/_chunks/file-manager-B9LZzT5E.js.map +1 -0
  29. package/dist/_chunks/{file-upload-DENvuhfs.js → file-upload-CwxdqkMK.js} +134 -146
  30. package/dist/_chunks/file-upload-CwxdqkMK.js.map +1 -0
  31. package/dist/_chunks/finished-terminal-C0_mefrf.js.map +1 -1
  32. package/dist/_chunks/fiscal-code-input-QP9gkyDE.js.map +1 -1
  33. package/dist/_chunks/form-field-M5UpX65Z.js.map +1 -1
  34. package/dist/_chunks/{freemium-paywall-CmV642PA.js → freemium-paywall-Dr2342_S.js} +2 -2
  35. package/dist/_chunks/{freemium-paywall-CmV642PA.js.map → freemium-paywall-Dr2342_S.js.map} +1 -1
  36. package/dist/_chunks/iban-input-DXIA8Ln_.js.map +1 -1
  37. package/dist/_chunks/info-tip-Bxk3w6UM.js +166 -0
  38. package/dist/_chunks/info-tip-Bxk3w6UM.js.map +1 -0
  39. package/dist/_chunks/{marketplace-app-shell-Br2yebEK.js → marketplace-app-shell-Chcj4q4z.js} +2 -2
  40. package/dist/_chunks/{marketplace-app-shell-Br2yebEK.js.map → marketplace-app-shell-Chcj4q4z.js.map} +1 -1
  41. package/dist/_chunks/message-square-Bye4ATvx.js +20 -0
  42. package/dist/_chunks/message-square-Bye4ATvx.js.map +1 -0
  43. package/dist/_chunks/{notes-panel-Cvdp818a.js → notes-panel-BLjlYBt-.js} +2 -2
  44. package/dist/_chunks/{notes-panel-Cvdp818a.js.map → notes-panel-BLjlYBt-.js.map} +1 -1
  45. package/dist/_chunks/pagination-EkD5SiCK.js.map +1 -1
  46. package/dist/_chunks/{patient-details-COvYWp2e.js → patient-details-B9LCdyWW.js} +2 -2
  47. package/dist/_chunks/{patient-details-COvYWp2e.js.map → patient-details-B9LCdyWW.js.map} +1 -1
  48. package/dist/_chunks/{patient-search-BaUJ_Y-N.js → patient-search-vtRTSdf6.js} +2 -2
  49. package/dist/_chunks/{patient-search-BaUJ_Y-N.js.map → patient-search-vtRTSdf6.js.map} +1 -1
  50. package/dist/_chunks/{patient-summary-card-D6kgdTNn.js → patient-summary-card-vn1H4xWj.js} +2 -2
  51. package/dist/_chunks/patient-summary-card-vn1H4xWj.js.map +1 -0
  52. package/dist/_chunks/{patient-table-BHzmUbzu.js → patient-table-B6AKMTm3.js} +182 -196
  53. package/dist/_chunks/patient-table-B6AKMTm3.js.map +1 -0
  54. package/dist/_chunks/{payment-form-DL9xk9BA.js → payment-form-BoGxEmGn.js} +2 -2
  55. package/dist/_chunks/{payment-form-DL9xk9BA.js.map → payment-form-BoGxEmGn.js.map} +1 -1
  56. package/dist/_chunks/{payment-request-card-d-RmzsUd.js → payment-request-card-CygO1anM.js} +72 -70
  57. package/dist/_chunks/payment-request-card-CygO1anM.js.map +1 -0
  58. package/dist/_chunks/{pdf-viewer-DF3VMaPo.js → pdf-viewer-CcOuR2wj.js} +2 -2
  59. package/dist/_chunks/{pdf-viewer-DF3VMaPo.js.map → pdf-viewer-CcOuR2wj.js.map} +1 -1
  60. package/dist/_chunks/postal-code-input-BznBxVxf.js.map +1 -1
  61. package/dist/_chunks/{practice-results-BCr7jMt1.js → practice-results-yKbwIxqa.js} +2 -2
  62. package/dist/_chunks/{practice-results-BCr7jMt1.js.map → practice-results-yKbwIxqa.js.map} +1 -1
  63. package/dist/_chunks/radio-group-CI-6SmSw.js.map +1 -1
  64. package/dist/_chunks/{radiograph-panel.agent-CxF9pVxd.js → radiograph-panel.agent-M9XD4ze4.js} +2 -2
  65. package/dist/_chunks/{radiograph-panel.agent-CxF9pVxd.js.map → radiograph-panel.agent-M9XD4ze4.js.map} +1 -1
  66. package/dist/_chunks/{rich-text-editor-CCWjNkbx.js → rich-text-editor-RRkBN_WB.js} +2 -2
  67. package/dist/_chunks/rich-text-editor-RRkBN_WB.js.map +1 -0
  68. package/dist/_chunks/{session-countdown-C8AsE072.js → session-countdown-Bc70VXN1.js} +58 -48
  69. package/dist/_chunks/session-countdown-Bc70VXN1.js.map +1 -0
  70. package/dist/_chunks/{sign-document-Bfk0WpWV.js → sign-document-DI561d1C.js} +2 -2
  71. package/dist/_chunks/sign-document-DI561d1C.js.map +1 -0
  72. package/dist/_chunks/{signature-request-CEOrCDyk.js → signature-request-D_6jgDZd.js} +60 -77
  73. package/dist/_chunks/signature-request-D_6jgDZd.js.map +1 -0
  74. package/dist/_chunks/task-card-BUgK6yZT.js.map +1 -1
  75. package/dist/_chunks/{task-tray-Br3vc0O1.js → task-tray-CLIqIXUZ.js} +58 -70
  76. package/dist/_chunks/task-tray-CLIqIXUZ.js.map +1 -0
  77. package/dist/_chunks/tasks-panel-CjGAhIN8.js.map +1 -1
  78. package/dist/_chunks/timeline-r-8IUoBS.js.map +1 -1
  79. package/dist/_chunks/{toast.agent-uV8CeAy6.js → toast.agent-Iw2jWdce.js} +2 -2
  80. package/dist/_chunks/{toast.agent-uV8CeAy6.js.map → toast.agent-Iw2jWdce.js.map} +1 -1
  81. package/dist/_chunks/use-password-requirements-Bwtqx1qN.js.map +1 -1
  82. package/dist/_chunks/{warning-stack-BlG_Ujy3.js → warning-stack-CAHQ0xxS.js} +2 -2
  83. package/dist/_chunks/{warning-stack-BlG_Ujy3.js.map → warning-stack-CAHQ0xxS.js.map} +1 -1
  84. package/dist/_chunks/{workflow-map-C643Q43h.js → workflow-map-SIfAhmWz.js} +2 -2
  85. package/dist/_chunks/workflow-map-SIfAhmWz.js.map +1 -0
  86. package/dist/agent-catalog.json +45 -1
  87. package/dist/agent-i18n/en.json +9 -0
  88. package/dist/components/ai-consent-banner/index.js +1 -1
  89. package/dist/components/alert/index.js +1 -1
  90. package/dist/components/audio-recorder/index.js +1 -1
  91. package/dist/components/booking/index.js +1 -1
  92. package/dist/components/document-preview/index.js +1 -1
  93. package/dist/components/document-scanner/index.js +1 -1
  94. package/dist/components/entity-summary/index.js +1 -1
  95. package/dist/components/file-manager/index.js +1 -1
  96. package/dist/components/file-upload/file-upload.d.ts.map +1 -1
  97. package/dist/components/file-upload/index.js +1 -1
  98. package/dist/components/freemium-paywall/index.js +1 -1
  99. package/dist/components/index.d.ts +1 -0
  100. package/dist/components/index.d.ts.map +1 -1
  101. package/dist/components/info-tip/index.d.ts +4 -0
  102. package/dist/components/info-tip/index.d.ts.map +1 -0
  103. package/dist/components/info-tip/index.js +6 -0
  104. package/dist/components/info-tip/index.js.map +1 -0
  105. package/dist/components/info-tip/info-tip.agent.d.ts +4 -0
  106. package/dist/components/info-tip/info-tip.agent.d.ts.map +1 -0
  107. package/dist/components/info-tip/info-tip.d.ts +42 -0
  108. package/dist/components/info-tip/info-tip.d.ts.map +1 -0
  109. package/dist/components/notes-panel/index.js +1 -1
  110. package/dist/components/patient-details/index.js +1 -1
  111. package/dist/components/patient-search/index.js +1 -1
  112. package/dist/components/patient-summary-card/index.js +1 -1
  113. package/dist/components/patient-table/index.js +1 -1
  114. package/dist/components/payment-card/index.js +1 -1
  115. package/dist/components/payment-form/index.js +1 -1
  116. package/dist/components/pdf-viewer/index.js +1 -1
  117. package/dist/components/practice-results/index.js +1 -1
  118. package/dist/components/radiograph-panel/index.js +1 -1
  119. package/dist/components/rich-text-editor/index.js +1 -1
  120. package/dist/components/session-countdown/index.js +1 -1
  121. package/dist/components/sign-document/index.js +1 -1
  122. package/dist/components/task-card/task-card.d.ts.map +1 -1
  123. package/dist/components/task-tray/index.js +1 -1
  124. package/dist/components/toast/index.js +1 -1
  125. package/dist/components/warning-stack/index.js +1 -1
  126. package/dist/components/workflow/index.js +1 -1
  127. package/dist/i18n/locales/ar.d.ts +3 -0
  128. package/dist/i18n/locales/ar.d.ts.map +1 -1
  129. package/dist/i18n/locales/ar.js +3 -0
  130. package/dist/i18n/locales/ar.js.map +1 -1
  131. package/dist/i18n/locales/de.d.ts +3 -0
  132. package/dist/i18n/locales/de.d.ts.map +1 -1
  133. package/dist/i18n/locales/de.js +3 -0
  134. package/dist/i18n/locales/de.js.map +1 -1
  135. package/dist/i18n/locales/el.d.ts +3 -0
  136. package/dist/i18n/locales/el.d.ts.map +1 -1
  137. package/dist/i18n/locales/el.js +3 -0
  138. package/dist/i18n/locales/el.js.map +1 -1
  139. package/dist/i18n/locales/en.d.ts +3 -0
  140. package/dist/i18n/locales/en.d.ts.map +1 -1
  141. package/dist/i18n/locales/en.js +3 -0
  142. package/dist/i18n/locales/en.js.map +1 -1
  143. package/dist/i18n/locales/es.d.ts +3 -0
  144. package/dist/i18n/locales/es.d.ts.map +1 -1
  145. package/dist/i18n/locales/es.js +3 -0
  146. package/dist/i18n/locales/es.js.map +1 -1
  147. package/dist/i18n/locales/fr.d.ts +3 -0
  148. package/dist/i18n/locales/fr.d.ts.map +1 -1
  149. package/dist/i18n/locales/fr.js +3 -0
  150. package/dist/i18n/locales/fr.js.map +1 -1
  151. package/dist/i18n/locales/hi.d.ts +3 -0
  152. package/dist/i18n/locales/hi.d.ts.map +1 -1
  153. package/dist/i18n/locales/hi.js +3 -0
  154. package/dist/i18n/locales/hi.js.map +1 -1
  155. package/dist/i18n/locales/it.d.ts +3 -0
  156. package/dist/i18n/locales/it.d.ts.map +1 -1
  157. package/dist/i18n/locales/it.js +3 -0
  158. package/dist/i18n/locales/it.js.map +1 -1
  159. package/dist/i18n/locales/ja.d.ts +3 -0
  160. package/dist/i18n/locales/ja.d.ts.map +1 -1
  161. package/dist/i18n/locales/ja.js +3 -0
  162. package/dist/i18n/locales/ja.js.map +1 -1
  163. package/dist/i18n/locales/nl.d.ts +3 -0
  164. package/dist/i18n/locales/nl.d.ts.map +1 -1
  165. package/dist/i18n/locales/nl.js +3 -0
  166. package/dist/i18n/locales/nl.js.map +1 -1
  167. package/dist/i18n/locales/pl.d.ts +3 -0
  168. package/dist/i18n/locales/pl.d.ts.map +1 -1
  169. package/dist/i18n/locales/pl.js +3 -0
  170. package/dist/i18n/locales/pl.js.map +1 -1
  171. package/dist/i18n/locales/pt.d.ts +3 -0
  172. package/dist/i18n/locales/pt.d.ts.map +1 -1
  173. package/dist/i18n/locales/pt.js +3 -0
  174. package/dist/i18n/locales/pt.js.map +1 -1
  175. package/dist/i18n/locales/ro.d.ts +3 -0
  176. package/dist/i18n/locales/ro.d.ts.map +1 -1
  177. package/dist/i18n/locales/ro.js +3 -0
  178. package/dist/i18n/locales/ro.js.map +1 -1
  179. package/dist/i18n/locales/ru.d.ts +3 -0
  180. package/dist/i18n/locales/ru.d.ts.map +1 -1
  181. package/dist/i18n/locales/ru.js +3 -0
  182. package/dist/i18n/locales/ru.js.map +1 -1
  183. package/dist/i18n/locales/sq.d.ts +3 -0
  184. package/dist/i18n/locales/sq.d.ts.map +1 -1
  185. package/dist/i18n/locales/sq.js +3 -0
  186. package/dist/i18n/locales/sq.js.map +1 -1
  187. package/dist/i18n/locales/sv.d.ts +3 -0
  188. package/dist/i18n/locales/sv.d.ts.map +1 -1
  189. package/dist/i18n/locales/sv.js +3 -0
  190. package/dist/i18n/locales/sv.js.map +1 -1
  191. package/dist/i18n/locales/tr.d.ts +3 -0
  192. package/dist/i18n/locales/tr.d.ts.map +1 -1
  193. package/dist/i18n/locales/tr.js +3 -0
  194. package/dist/i18n/locales/tr.js.map +1 -1
  195. package/dist/i18n/locales/zh.d.ts +3 -0
  196. package/dist/i18n/locales/zh.d.ts.map +1 -1
  197. package/dist/i18n/locales/zh.js +3 -0
  198. package/dist/i18n/locales/zh.js.map +1 -1
  199. package/dist/index.js +715 -723
  200. package/dist/index.js.map +1 -1
  201. package/dist/locales/ar.json +3 -0
  202. package/dist/locales/de.json +3 -0
  203. package/dist/locales/el.json +3 -0
  204. package/dist/locales/en.json +3 -0
  205. package/dist/locales/es.json +3 -0
  206. package/dist/locales/fr.json +3 -0
  207. package/dist/locales/hi.json +3 -0
  208. package/dist/locales/it.json +3 -0
  209. package/dist/locales/ja.json +3 -0
  210. package/dist/locales/nl.json +3 -0
  211. package/dist/locales/pl.json +3 -0
  212. package/dist/locales/pt.json +3 -0
  213. package/dist/locales/ro.json +3 -0
  214. package/dist/locales/ru.json +3 -0
  215. package/dist/locales/sq.json +3 -0
  216. package/dist/locales/sv.json +3 -0
  217. package/dist/locales/tr.json +3 -0
  218. package/dist/locales/zh.json +3 -0
  219. package/dist/patterns/marketplace-app-shell/index.js +1 -1
  220. package/dist/patterns/signature-request/index.js +1 -1
  221. package/dist/tokens.css +1 -1
  222. package/package.json +9 -3
  223. package/dist/_chunks/alert-KJbsPYkI.js.map +0 -1
  224. package/dist/_chunks/circle-x-W8Enq3i4.js +0 -16
  225. package/dist/_chunks/circle-x-W8Enq3i4.js.map +0 -1
  226. package/dist/_chunks/document-scanner-B6h1Ir56.js.map +0 -1
  227. package/dist/_chunks/field-value-DHG6gEKS.js.map +0 -1
  228. package/dist/_chunks/file-manager-DLJlinIO.js.map +0 -1
  229. package/dist/_chunks/file-upload-DENvuhfs.js.map +0 -1
  230. package/dist/_chunks/patient-summary-card-D6kgdTNn.js.map +0 -1
  231. package/dist/_chunks/patient-table-BHzmUbzu.js.map +0 -1
  232. package/dist/_chunks/payment-request-card-d-RmzsUd.js.map +0 -1
  233. package/dist/_chunks/rich-text-editor-CCWjNkbx.js.map +0 -1
  234. package/dist/_chunks/session-countdown-C8AsE072.js.map +0 -1
  235. package/dist/_chunks/sign-document-Bfk0WpWV.js.map +0 -1
  236. package/dist/_chunks/signature-request-CEOrCDyk.js.map +0 -1
  237. package/dist/_chunks/task-tray-Br3vc0O1.js.map +0 -1
  238. package/dist/_chunks/workflow-map-C643Q43h.js.map +0 -1
@@ -4,66 +4,52 @@ import { useTranslation as $ } from "react-i18next";
4
4
  import { a as p, T as b, A as be, d as ne, D as P, e as ge } from "./actions-cell-renderer-DaL80uqL.js";
5
5
  import { S as Ce } from "./select-BW5ecXlX.js";
6
6
  import { u as ve } from "./registry-DvAUVLHh.js";
7
- import { I as Ne, L as we, b as L, a as _, c as U, N as H, d as F, S as R, T as ae, D as K, C as Te, g as Fe, f as Re, U as Ie, e as ye } from "./link-cell-renderer-BQGUs45d.js";
8
- import { B as ie } from "./badge-DCOqV9mI.js";
7
+ import { I as Ne, L as we, b as L, a as _, c as U, N as H, d as F, S as R, T as ie, D as K, C as Te, g as Fe, f as Re, U as Ie, e as ye } from "./link-cell-renderer-BQGUs45d.js";
8
+ import { B as ae } from "./badge-DCOqV9mI.js";
9
9
  import { c as Pe } from "./index-D2ZczOXr.js";
10
10
  import { T as We } from "./timestamp-BV2lC-wV.js";
11
11
  import { C as Se } from "./calendar-clock-hbObjfGY.js";
12
12
  import { E as Ae } from "./eye-BjhN2nYf.js";
13
13
  import { P as Be } from "./pencil-B1sKKyuT.js";
14
14
  import { M as De } from "./mail-BqXVF2zH.js";
15
- import { c as Ve } from "./createLucideIcon-DhHxpK9K.js";
15
+ import { M as Ve } from "./message-square-Bye4ATvx.js";
16
16
  import { U as xe } from "./users-BjS_Gg1E.js";
17
17
  import { T as Ee } from "./trash-2-uumy3fy1.js";
18
- /**
19
- * @license lucide-react v1.22.0 - ISC
20
- *
21
- * This source code is licensed under the ISC license.
22
- * See the LICENSE file in the root directory of this source tree.
23
- */
24
- const Oe = [
25
- [
26
- "path",
27
- {
28
- d: "M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",
29
- key: "18887p"
30
- }
31
- ]
32
- ], ke = Ve("message-square", Oe), Me = 5e4;
33
- function Ge(e) {
34
- return e === 0 ? { variant: "success", statusKey: "settled" } : e <= Me ? { variant: "warning", statusKey: "pending" } : { variant: "error", statusKey: "overdue" };
18
+ const Oe = 5e4;
19
+ function ke(e) {
20
+ return e === 0 ? { variant: "success", statusKey: "settled" } : e <= Oe ? { variant: "warning", statusKey: "pending" } : { variant: "error", statusKey: "overdue" };
35
21
  }
36
- function Le(e) {
22
+ function Me(e) {
37
23
  if (e == null || e === "") return null;
38
- const i = typeof e == "number" ? e : Number(e);
39
- return Number.isFinite(i) ? i : null;
24
+ const a = typeof e == "number" ? e : Number(e);
25
+ return Number.isFinite(a) ? a : null;
40
26
  }
41
- function _e(e) {
42
- const { value: i, currency: d = "EUR", options: s } = e, { t: a, i18n: l } = $("ui"), c = Le(i);
27
+ function Ge(e) {
28
+ const { value: a, currency: d = "EUR", options: s } = e, { t: i, i18n: r } = $("ui"), c = Me(a);
43
29
  if (c === null) return null;
44
- const h = l.language || "en", m = new Intl.NumberFormat(h, {
30
+ const h = r.language || "en", m = new Intl.NumberFormat(h, {
45
31
  style: "currency",
46
32
  currency: d,
47
33
  ...s
48
- }).format(c / 100), { variant: u, statusKey: C } = Ge(c), r = a(`patientTable.balance.status.${C}`);
49
- return /* @__PURE__ */ O(ie, { variant: u, withDot: !0, size: "sm", className: "ds:tabular-nums", children: [
34
+ }).format(c / 100), { variant: u, statusKey: C } = ke(c), l = i(`patientTable.balance.status.${C}`);
35
+ return /* @__PURE__ */ O(ae, { variant: u, withDot: !0, size: "sm", className: "ds:tabular-nums", children: [
50
36
  /* @__PURE__ */ g("span", { children: m }),
51
- /* @__PURE__ */ g("span", { className: "ds:sr-only", children: r })
37
+ /* @__PURE__ */ g("span", { className: "ds:sr-only", children: l })
52
38
  ] });
53
39
  }
54
- const Ue = {
40
+ const Le = {
55
41
  accepted: "success",
56
42
  estimate: "info",
57
43
  none: "neutral"
58
44
  };
59
- function He(e) {
45
+ function _e(e) {
60
46
  return e === "accepted" || e === "estimate" || e === "none";
61
47
  }
62
- function ze(e) {
63
- const { t: i } = $("ui"), { data: d, value: s, size: a = "sm" } = e, l = (d == null ? void 0 : d.carePlanStatus) ?? s;
64
- if (!He(l)) return null;
65
- const c = Ue[l];
66
- return /* @__PURE__ */ g(ie, { variant: c, withDot: !0, size: a, children: i(`patientTable.carePlanStatus.${l}`) });
48
+ function Ue(e) {
49
+ const { t: a } = $("ui"), { data: d, value: s, size: i = "sm" } = e, r = (d == null ? void 0 : d.carePlanStatus) ?? s;
50
+ if (!_e(r)) return null;
51
+ const c = Le[r];
52
+ return /* @__PURE__ */ g(ae, { variant: c, withDot: !0, size: i, children: a(`patientTable.carePlanStatus.${r}`) });
67
53
  }
68
54
  const J = Pe(
69
55
  "ds:inline-flex ds:items-center ds:gap-[var(--spacing-xs)] ds:whitespace-nowrap",
@@ -80,40 +66,40 @@ const J = Pe(
80
66
  },
81
67
  defaultVariants: { tone: "default" }
82
68
  }
83
- ), $e = 1440 * 60 * 1e3, je = 7;
84
- function Ke(e) {
69
+ ), He = 1440 * 60 * 1e3, ze = 7;
70
+ function $e(e) {
85
71
  if (e == null || e === "") return null;
86
- const i = e instanceof Date ? e.getTime() : typeof e == "number" ? e : new Date(String(e)).getTime();
87
- return Number.isNaN(i) ? null : i;
72
+ const a = e instanceof Date ? e.getTime() : typeof e == "number" ? e : new Date(String(e)).getTime();
73
+ return Number.isNaN(a) ? null : a;
88
74
  }
89
- function Ye(e, i) {
90
- if (i <= 0) return "default";
75
+ function je(e, a) {
76
+ if (a <= 0) return "default";
91
77
  const d = e - Date.now();
92
- return d < 0 ? "default" : d <= i * $e ? "soon" : "default";
78
+ return d < 0 ? "default" : d <= a * He ? "soon" : "default";
93
79
  }
94
- function qe(e) {
95
- const { t: i } = $("ui"), { data: d, value: s, soonWithinDays: a = je } = e, l = Ke((d == null ? void 0 : d.nextAppointment) ?? s);
96
- if (l === null)
97
- return /* @__PURE__ */ g("span", { className: J({ tone: "empty" }), children: i("patientTable.nextAppointment.none") });
98
- const c = Ye(l, a);
80
+ function Ke(e) {
81
+ const { t: a } = $("ui"), { data: d, value: s, soonWithinDays: i = ze } = e, r = $e((d == null ? void 0 : d.nextAppointment) ?? s);
82
+ if (r === null)
83
+ return /* @__PURE__ */ g("span", { className: J({ tone: "empty" }), children: a("patientTable.nextAppointment.none") });
84
+ const c = je(r, i);
99
85
  return /* @__PURE__ */ O("span", { className: J({ tone: c }), children: [
100
86
  c === "soon" ? /* @__PURE__ */ g(Se, { "aria-hidden": "true", className: "ds:size-3.5 ds:shrink-0" }) : null,
101
- /* @__PURE__ */ g(We, { value: l, format: "relative", shape: "bare" })
87
+ /* @__PURE__ */ g(We, { value: r, format: "relative", shape: "bare" })
102
88
  ] });
103
89
  }
104
90
  function q(e) {
105
91
  return e.responsiveTier;
106
92
  }
107
- const Qe = 6;
108
- function Xe(e, i) {
109
- const d = (a) => (l) => {
110
- i == null || i(a, l);
111
- }, s = (a, l) => ({
112
- icon: a.icon,
113
- label: a.label,
114
- variant: a.variant,
115
- onClick: d(a),
116
- ...l
93
+ const Ye = 6;
94
+ function qe(e, a) {
95
+ const d = (i) => (r) => {
96
+ a == null || a(i, r);
97
+ }, s = (i, r) => ({
98
+ icon: i.icon,
99
+ label: i.label,
100
+ variant: i.variant,
101
+ onClick: d(i),
102
+ ...r
117
103
  });
118
104
  return [
119
105
  s(
@@ -139,17 +125,17 @@ function Xe(e, i) {
139
125
  icon: x(De, { "aria-hidden": "true" })
140
126
  },
141
127
  // Hidden when the patient has email contact disabled (spec).
142
- { hidden: (a) => !a.emailEnabled }
128
+ { hidden: (i) => !i.emailEnabled }
143
129
  ),
144
130
  s(
145
131
  {
146
132
  id: "sendSmsReminder",
147
133
  label: e("patientTable.actions.sendSmsReminder"),
148
- icon: x(ke, { "aria-hidden": "true" })
134
+ icon: x(Ve, { "aria-hidden": "true" })
149
135
  },
150
136
  // Hidden when no phone number is SMS-enabled (spec).
151
137
  {
152
- hidden: (a) => !(a.phoneNumbers ?? []).some((l) => l.smsEnabled)
138
+ hidden: (i) => !(i.phoneNumbers ?? []).some((r) => r.smsEnabled)
153
139
  }
154
140
  ),
155
141
  s(
@@ -170,37 +156,37 @@ function Xe(e, i) {
170
156
  // Disabled (with a reason) for archived patients — the row model's
171
157
  // closest "cannot delete" signal. Surfaced as the inline tooltip.
172
158
  {
173
- disabled: (a) => !!a.isArchived,
159
+ disabled: (i) => !!i.isArchived,
174
160
  disabledReason: e("patientTable.actions.deleteLocked")
175
161
  }
176
162
  )
177
163
  ];
178
164
  }
179
- const Je = () => !1, B = "✓", W = "—";
180
- function Ze(e) {
165
+ const Qe = () => !1, B = "✓", W = "—";
166
+ function Xe(e) {
181
167
  if (!e) return null;
182
- const i = new Date(e), d = i.getTime();
168
+ const a = new Date(e), d = a.getTime();
183
169
  if (Number.isNaN(d)) return null;
184
170
  const s = /* @__PURE__ */ new Date();
185
- let a = s.getFullYear() - i.getFullYear();
186
- const l = s.getMonth() - i.getMonth();
187
- return (l < 0 || l === 0 && s.getDate() < i.getDate()) && (a -= 1), a >= 0 ? a : null;
171
+ let i = s.getFullYear() - a.getFullYear();
172
+ const r = s.getMonth() - a.getMonth();
173
+ return (r < 0 || r === 0 && s.getDate() < a.getDate()) && (i -= 1), i >= 0 ? i : null;
188
174
  }
189
- function et(e) {
190
- return e.map((i) => {
175
+ function Je(e) {
176
+ return e.map((a) => {
191
177
  const s = {
192
- colId: `custom:${i.fieldName}`,
193
- headerName: i.label,
178
+ colId: `custom:${a.fieldName}`,
179
+ headerName: a.label,
194
180
  hide: !0
195
181
  // No tier — custom fields are opt-in via ColumnToggle only.
196
182
  };
197
- return i.type === "checkbox" ? {
183
+ return a.type === "checkbox" ? {
198
184
  ...s,
199
- valueGetter: (a) => {
200
- var l, c;
201
- return ((c = (l = a.data) == null ? void 0 : l.customFields) == null ? void 0 : c[i.fieldName]) === !0;
185
+ valueGetter: (i) => {
186
+ var r, c;
187
+ return ((c = (r = i.data) == null ? void 0 : r.customFields) == null ? void 0 : c[a.fieldName]) === !0;
202
188
  },
203
- valueFormatter: (a) => a.value === !0 ? B : W,
189
+ valueFormatter: (i) => i.value === !0 ? B : W,
204
190
  filter: R,
205
191
  floatingFilterComponent: F,
206
192
  filterParams: {
@@ -211,26 +197,26 @@ function et(e) {
211
197
  },
212
198
  minWidth: 110,
213
199
  width: 130
214
- } : i.type === "dropdown" ? {
200
+ } : a.type === "dropdown" ? {
215
201
  ...s,
216
202
  // TagListCellRenderer expects an array; wrap the single value.
217
- valueGetter: (a) => {
203
+ valueGetter: (i) => {
218
204
  var c, h;
219
- const l = (h = (c = a.data) == null ? void 0 : c.customFields) == null ? void 0 : h[i.fieldName];
220
- return typeof l == "string" && l ? [l] : [];
205
+ const r = (h = (c = i.data) == null ? void 0 : c.customFields) == null ? void 0 : h[a.fieldName];
206
+ return typeof r == "string" && r ? [r] : [];
221
207
  },
222
- cellRenderer: ae,
223
- filterValueGetter: (a) => {
208
+ cellRenderer: ie,
209
+ filterValueGetter: (i) => {
224
210
  var c, h;
225
- const l = (h = (c = a.data) == null ? void 0 : c.customFields) == null ? void 0 : h[i.fieldName];
226
- return typeof l == "string" ? l : "";
211
+ const r = (h = (c = i.data) == null ? void 0 : c.customFields) == null ? void 0 : h[a.fieldName];
212
+ return typeof r == "string" ? r : "";
227
213
  },
228
214
  filter: R,
229
215
  floatingFilterComponent: F,
230
216
  filterParams: {
231
- options: (i.options ?? []).map((a) => ({
232
- value: a,
233
- label: a
217
+ options: (a.options ?? []).map((i) => ({
218
+ value: i,
219
+ label: i
234
220
  }))
235
221
  },
236
222
  sortable: !1,
@@ -238,10 +224,10 @@ function et(e) {
238
224
  width: 160
239
225
  } : {
240
226
  ...s,
241
- valueGetter: (a) => {
227
+ valueGetter: (i) => {
242
228
  var c, h;
243
- const l = (h = (c = a.data) == null ? void 0 : c.customFields) == null ? void 0 : h[i.fieldName];
244
- return typeof l == "string" ? l : "";
229
+ const r = (h = (c = i.data) == null ? void 0 : c.customFields) == null ? void 0 : h[a.fieldName];
230
+ return typeof r == "string" ? r : "";
245
231
  },
246
232
  filter: b,
247
233
  floatingFilterComponent: p,
@@ -250,14 +236,14 @@ function et(e) {
250
236
  };
251
237
  });
252
238
  }
253
- function tt(e, i = {}) {
239
+ function Ze(e, a = {}) {
254
240
  const {
255
241
  hideDetails: d = !1,
256
- getActionsCompact: s = Je,
257
- onRowAction: a,
258
- identityHref: l,
242
+ getActionsCompact: s = Qe,
243
+ onRowAction: i,
244
+ identityHref: r,
259
245
  customFields: c = []
260
- } = i, h = Xe(e, a), m = {
246
+ } = a, h = qe(e, i), m = {
261
247
  m: e("patientTable.gender.m"),
262
248
  f: e("patientTable.gender.f"),
263
249
  x: e("patientTable.gender.x")
@@ -269,7 +255,7 @@ function tt(e, i = {}) {
269
255
  [u.yes]: "success",
270
256
  [u.no]: "error",
271
257
  [u.notSpecified]: "neutral"
272
- }, r = (t) => e(`patientTable.column.${t}`);
258
+ }, l = (t) => e(`patientTable.column.${t}`);
273
259
  return [
274
260
  /* ── Avatar (P0, pinned-start) ─────────────────────────────────── */
275
261
  {
@@ -279,7 +265,7 @@ function tt(e, i = {}) {
279
265
  // TEXT is clipped via the kit's `sr-only-th` convention (clips only
280
266
  // `.ag-header-cell-text`, keeping the header-cell box in the grid chrome
281
267
  // and the name in the a11y tree — see ag-grid-theme.css).
282
- headerName: r("avatar"),
268
+ headerName: l("avatar"),
283
269
  headerClass: "sr-only-th",
284
270
  pinned: "left",
285
271
  cellRenderer: Ne,
@@ -303,7 +289,7 @@ function tt(e, i = {}) {
303
289
  /* ── First name (P0, pinned-start) — plain text ────────────────── */
304
290
  {
305
291
  colId: "firstName",
306
- headerName: r("firstName"),
292
+ headerName: l("firstName"),
307
293
  pinned: "left",
308
294
  field: "firstName",
309
295
  filter: b,
@@ -317,15 +303,15 @@ function tt(e, i = {}) {
317
303
  /* ── Last name (P0, pinned-start) — the patient-detail link ────── */
318
304
  {
319
305
  colId: "lastName",
320
- headerName: r("lastName"),
306
+ headerName: l("lastName"),
321
307
  pinned: "left",
322
308
  field: "lastName",
323
309
  cellRenderer: we,
324
310
  cellRendererParams: {
325
- href: l,
311
+ href: r,
326
312
  // When no detail href is supplied the cell renders a button; route its
327
313
  // click through the same `show` row action.
328
- onClick: a ? (t) => a(
314
+ onClick: i ? (t) => i(
329
315
  { id: "show", label: e("patientTable.actions.show") },
330
316
  t
331
317
  ) : void 0
@@ -341,7 +327,7 @@ function tt(e, i = {}) {
341
327
  /* ── Phone (P1) ────────────────────────────────────────────────── */
342
328
  {
343
329
  colId: "phone",
344
- headerName: r("phone"),
330
+ headerName: l("phone"),
345
331
  responsiveTier: "P1",
346
332
  // The primary phone number string (prefix + number).
347
333
  valueGetter: (t) => {
@@ -356,10 +342,10 @@ function tt(e, i = {}) {
356
342
  /* ── Next appointment (P1) ─────────────────────────────────────── */
357
343
  {
358
344
  colId: "nextAppointment",
359
- headerName: r("nextAppointment"),
345
+ headerName: l("nextAppointment"),
360
346
  responsiveTier: "P1",
361
347
  field: "nextAppointment",
362
- cellRenderer: qe,
348
+ cellRenderer: Ke,
363
349
  filter: _,
364
350
  floatingFilterComponent: L,
365
351
  minWidth: 160,
@@ -368,11 +354,11 @@ function tt(e, i = {}) {
368
354
  /* ── Unpaid balance (P1) ───────────────────────────────────────── */
369
355
  {
370
356
  colId: "unpaidBalance",
371
- headerName: r("unpaidBalance"),
357
+ headerName: l("unpaidBalance"),
372
358
  responsiveTier: "P1",
373
359
  field: "unpaidAmount",
374
360
  type: "numericColumn",
375
- cellRenderer: _e,
361
+ cellRenderer: Ge,
376
362
  filter: H,
377
363
  floatingFilterComponent: U,
378
364
  // Money is integer cents; the inRange filter compares cents directly.
@@ -383,7 +369,7 @@ function tt(e, i = {}) {
383
369
  /* ── Email (P2) — hidden when masking ──────────────────────────── */
384
370
  {
385
371
  colId: "email",
386
- headerName: r("email"),
372
+ headerName: l("email"),
387
373
  responsiveTier: "P2",
388
374
  field: "email",
389
375
  // Emit `hide` ONLY when masking (never a literal `hide: false`). A static
@@ -398,10 +384,10 @@ function tt(e, i = {}) {
398
384
  /* ── Care-plan status (P2) ─────────────────────────────────────── */
399
385
  {
400
386
  colId: "carePlanStatus",
401
- headerName: r("carePlanStatus"),
387
+ headerName: l("carePlanStatus"),
402
388
  responsiveTier: "P2",
403
389
  field: "carePlanStatus",
404
- cellRenderer: ze,
390
+ cellRenderer: Ue,
405
391
  filter: R,
406
392
  floatingFilterComponent: F,
407
393
  filterParams: {
@@ -424,7 +410,7 @@ function tt(e, i = {}) {
424
410
  /* ── Fiscal code (P3, text) ────────────────────────────────────── */
425
411
  {
426
412
  colId: "fiscalCode",
427
- headerName: r("fiscalCode"),
413
+ headerName: l("fiscalCode"),
428
414
  responsiveTier: "P3",
429
415
  field: "italianFiscalCode",
430
416
  filter: b,
@@ -435,14 +421,14 @@ function tt(e, i = {}) {
435
421
  /* ── Age (P3, derived numeric) ─────────────────────────────────── */
436
422
  {
437
423
  colId: "age",
438
- headerName: r("age"),
424
+ headerName: l("age"),
439
425
  responsiveTier: "P3",
440
426
  // Left-aligned like the text columns — `numericColumn` (which right-aligns
441
427
  // header + cell) is for ledger figures, not a 2-digit age. Sort stays
442
428
  // numeric because the valueGetter returns a number.
443
429
  valueGetter: (t) => {
444
430
  var n;
445
- return Ze((n = t.data) == null ? void 0 : n.dateOfBirth) ?? void 0;
431
+ return Xe((n = t.data) == null ? void 0 : n.dateOfBirth) ?? void 0;
446
432
  },
447
433
  filter: H,
448
434
  floatingFilterComponent: U,
@@ -452,7 +438,7 @@ function tt(e, i = {}) {
452
438
  /* ── Gender (P3) ───────────────────────────────────────────────── */
453
439
  {
454
440
  colId: "gender",
455
- headerName: r("gender"),
441
+ headerName: l("gender"),
456
442
  responsiveTier: "P3",
457
443
  // Map the raw code to a localised label for both cell + set filter.
458
444
  valueGetter: (t) => {
@@ -474,7 +460,7 @@ function tt(e, i = {}) {
474
460
  /* ── Source (P3) ───────────────────────────────────────────────── */
475
461
  {
476
462
  colId: "source",
477
- headerName: r("source"),
463
+ headerName: l("source"),
478
464
  responsiveTier: "P3",
479
465
  // TagListCellRenderer expects an array; wrap the resolved source string.
480
466
  valueGetter: (t) => {
@@ -482,7 +468,7 @@ function tt(e, i = {}) {
482
468
  const n = ((o = t.data) == null ? void 0 : o.source) ?? ((f = t.data) == null ? void 0 : f.customSource);
483
469
  return n ? [n] : [];
484
470
  },
485
- cellRenderer: ae,
471
+ cellRenderer: ie,
486
472
  filterValueGetter: (t) => {
487
473
  var n, o;
488
474
  return ((n = t.data) == null ? void 0 : n.source) ?? ((o = t.data) == null ? void 0 : o.customSource) ?? "";
@@ -496,7 +482,7 @@ function tt(e, i = {}) {
496
482
  /* ── Grouped: Identity — hidden by default ─────────────────────── */
497
483
  {
498
484
  colId: "dateOfBirth",
499
- headerName: r("dateOfBirth"),
485
+ headerName: l("dateOfBirth"),
500
486
  hide: !0,
501
487
  field: "dateOfBirth",
502
488
  cellRenderer: K,
@@ -508,7 +494,7 @@ function tt(e, i = {}) {
508
494
  },
509
495
  {
510
496
  colId: "placeOfBirth",
511
- headerName: r("placeOfBirth"),
497
+ headerName: l("placeOfBirth"),
512
498
  hide: !0,
513
499
  field: "placeOfBirth",
514
500
  filter: b,
@@ -518,7 +504,7 @@ function tt(e, i = {}) {
518
504
  },
519
505
  {
520
506
  colId: "countryOfBirth",
521
- headerName: r("countryOfBirth"),
507
+ headerName: l("countryOfBirth"),
522
508
  hide: !0,
523
509
  field: "countryOfBirth",
524
510
  filter: b,
@@ -529,7 +515,7 @@ function tt(e, i = {}) {
529
515
  /* ── Grouped: Contact — hidden by default ──────────────────────── */
530
516
  {
531
517
  colId: "smsReminders",
532
- headerName: r("smsReminders"),
518
+ headerName: l("smsReminders"),
533
519
  hide: !0,
534
520
  valueGetter: (t) => {
535
521
  var n;
@@ -549,7 +535,7 @@ function tt(e, i = {}) {
549
535
  },
550
536
  {
551
537
  colId: "emailReminders",
552
- headerName: r("emailReminders"),
538
+ headerName: l("emailReminders"),
553
539
  hide: !0,
554
540
  valueGetter: (t) => {
555
541
  var n;
@@ -569,7 +555,7 @@ function tt(e, i = {}) {
569
555
  },
570
556
  {
571
557
  colId: "pec",
572
- headerName: r("pec"),
558
+ headerName: l("pec"),
573
559
  hide: !0,
574
560
  field: "pecAddress",
575
561
  filter: b,
@@ -580,7 +566,7 @@ function tt(e, i = {}) {
580
566
  /* ── Grouped: Appointments — hidden by default ─────────────────── */
581
567
  {
582
568
  colId: "lastVisit",
583
- headerName: r("lastVisit"),
569
+ headerName: l("lastVisit"),
584
570
  hide: !0,
585
571
  field: "lastAppointment",
586
572
  cellRenderer: K,
@@ -593,7 +579,7 @@ function tt(e, i = {}) {
593
579
  /* ── Grouped: Financial — hidden by default ────────────────────── */
594
580
  {
595
581
  colId: "billableAmount",
596
- headerName: r("billableAmount"),
582
+ headerName: l("billableAmount"),
597
583
  hide: !0,
598
584
  type: "numericColumn",
599
585
  cellRenderer: Te,
@@ -609,7 +595,7 @@ function tt(e, i = {}) {
609
595
  },
610
596
  {
611
597
  colId: "discount",
612
- headerName: r("discount"),
598
+ headerName: l("discount"),
613
599
  hide: !0,
614
600
  field: "defaultDiscount",
615
601
  type: "numericColumn",
@@ -622,7 +608,7 @@ function tt(e, i = {}) {
622
608
  /* ── Grouped: Clinical — hidden by default ─────────────────────── */
623
609
  {
624
610
  colId: "diagnosis",
625
- headerName: r("diagnosis"),
611
+ headerName: l("diagnosis"),
626
612
  hide: !0,
627
613
  field: "diagnosis",
628
614
  filter: b,
@@ -632,7 +618,7 @@ function tt(e, i = {}) {
632
618
  },
633
619
  {
634
620
  colId: "insurance",
635
- headerName: r("insurance"),
621
+ headerName: l("insurance"),
636
622
  hide: !0,
637
623
  field: "defaultInsurance",
638
624
  filter: R,
@@ -642,7 +628,7 @@ function tt(e, i = {}) {
642
628
  },
643
629
  {
644
630
  colId: "assignedTo",
645
- headerName: r("assignedTo"),
631
+ headerName: l("assignedTo"),
646
632
  hide: !0,
647
633
  cellRenderer: Ie,
648
634
  valueGetter: (t) => {
@@ -661,7 +647,7 @@ function tt(e, i = {}) {
661
647
  },
662
648
  {
663
649
  colId: "job",
664
- headerName: r("job"),
650
+ headerName: l("job"),
665
651
  hide: !0,
666
652
  field: "job",
667
653
  filter: b,
@@ -672,7 +658,7 @@ function tt(e, i = {}) {
672
658
  /* ── Grouped: Admin — hidden by default ────────────────────────── */
673
659
  {
674
660
  colId: "marketingConsent",
675
- headerName: r("marketingConsent"),
661
+ headerName: l("marketingConsent"),
676
662
  hide: !0,
677
663
  cellRenderer: ye,
678
664
  cellRendererParams: {
@@ -707,7 +693,7 @@ function tt(e, i = {}) {
707
693
  },
708
694
  {
709
695
  colId: "patientNumber",
710
- headerName: r("patientNumber"),
696
+ headerName: l("patientNumber"),
711
697
  hide: !0,
712
698
  // `YYYY/N` yearly numbering.
713
699
  valueGetter: (t) => {
@@ -722,7 +708,7 @@ function tt(e, i = {}) {
722
708
  },
723
709
  {
724
710
  colId: "portal",
725
- headerName: r("portal"),
711
+ headerName: l("portal"),
726
712
  hide: !0,
727
713
  valueGetter: (t) => {
728
714
  var n;
@@ -742,7 +728,7 @@ function tt(e, i = {}) {
742
728
  },
743
729
  {
744
730
  colId: "createdAt",
745
- headerName: r("createdAt"),
731
+ headerName: l("createdAt"),
746
732
  hide: !0,
747
733
  field: "createdAt",
748
734
  cellRenderer: K,
@@ -755,7 +741,7 @@ function tt(e, i = {}) {
755
741
  /* ── Grouped: Address — hidden by default ──────────────────────── */
756
742
  {
757
743
  colId: "city",
758
- headerName: r("city"),
744
+ headerName: l("city"),
759
745
  hide: !0,
760
746
  field: "city",
761
747
  filter: b,
@@ -765,7 +751,7 @@ function tt(e, i = {}) {
765
751
  },
766
752
  {
767
753
  colId: "province",
768
- headerName: r("province"),
754
+ headerName: l("province"),
769
755
  hide: !0,
770
756
  field: "province",
771
757
  filter: b,
@@ -775,7 +761,7 @@ function tt(e, i = {}) {
775
761
  },
776
762
  {
777
763
  colId: "postcode",
778
- headerName: r("postcode"),
764
+ headerName: l("postcode"),
779
765
  hide: !0,
780
766
  field: "postcode",
781
767
  filter: b,
@@ -785,7 +771,7 @@ function tt(e, i = {}) {
785
771
  },
786
772
  {
787
773
  colId: "country",
788
- headerName: r("country"),
774
+ headerName: l("country"),
789
775
  hide: !0,
790
776
  field: "countryCode",
791
777
  filter: b,
@@ -795,7 +781,7 @@ function tt(e, i = {}) {
795
781
  },
796
782
  {
797
783
  colId: "street",
798
- headerName: r("street"),
784
+ headerName: l("street"),
799
785
  hide: !0,
800
786
  field: "street",
801
787
  filter: b,
@@ -804,11 +790,11 @@ function tt(e, i = {}) {
804
790
  width: 220
805
791
  },
806
792
  /* ── Custom fields (per-practice, dynamic) — appended, hidden ──── */
807
- ...et(c),
793
+ ...Je(c),
808
794
  /* ── Actions (P0, pinned-end) ──────────────────────────────────── */
809
795
  {
810
796
  colId: "actions",
811
- headerName: r("actions"),
797
+ headerName: l("actions"),
812
798
  // Pinned to the inline-end edge so actions stay reachable while the field
813
799
  // columns scroll. AG Grid `pinned` is physical — the grid's `enableRtl`
814
800
  // flips this to the start edge under RTL. Locked: neither a header drag
@@ -840,24 +826,24 @@ function tt(e, i = {}) {
840
826
  }
841
827
  ];
842
828
  }
843
- const nt = [
829
+ const et = [
844
830
  { minWidth: 0, tier: "P0" },
845
831
  { minWidth: 640, tier: "P1" },
846
832
  { minWidth: 900, tier: "P2" },
847
833
  { minWidth: 1200, tier: "P3" }
848
834
  ];
849
- function Z(e, i) {
835
+ function Z(e, a) {
850
836
  const d = /* @__PURE__ */ new Set();
851
- for (const s of i)
837
+ for (const s of a)
852
838
  e >= s.minWidth && d.add(s.tier);
853
839
  return d.add("P0"), d;
854
840
  }
855
- function at(e, i) {
841
+ function tt(e, a) {
856
842
  const {
857
843
  containerRef: d,
858
844
  enabled: s = !0,
859
- breakpoints: a = nt
860
- } = i, l = k(/* @__PURE__ */ new Set()), c = k(!1);
845
+ breakpoints: i = et
846
+ } = a, r = k(/* @__PURE__ */ new Set()), c = k(!1);
861
847
  return ee(() => {
862
848
  const m = d.current;
863
849
  if (!s || !m) return;
@@ -868,17 +854,17 @@ function at(e, i) {
868
854
  if (c.current || o.source === "api") return;
869
855
  const f = o.columns ?? (o.column ? [o.column] : []);
870
856
  for (const v of f)
871
- l.current.add(v.getColId());
857
+ r.current.add(v.getColId());
872
858
  };
873
- let r = !1;
859
+ let l = !1;
874
860
  const w = (o) => {
875
- if (r) return;
876
- r = !0;
877
- const f = o.getColumns(), v = m.getBoundingClientRect().width, D = Z(v, a);
861
+ if (l) return;
862
+ l = !0;
863
+ const f = o.getColumns(), v = m.getBoundingClientRect().width, D = Z(v, i);
878
864
  if (f)
879
865
  for (const T of f) {
880
866
  const I = q(T.getColDef());
881
- I && !T.isVisible() && D.has(I) && l.current.add(T.getColId());
867
+ I && !T.isVisible() && D.has(I) && r.current.add(T.getColId());
882
868
  }
883
869
  o.addEventListener("columnVisible", C);
884
870
  }, t = () => {
@@ -887,10 +873,10 @@ function at(e, i) {
887
873
  w(o);
888
874
  const f = o.getColumns();
889
875
  if (!f) return;
890
- const v = m.getBoundingClientRect().width, D = Z(v, a), T = [], I = [];
876
+ const v = m.getBoundingClientRect().width, D = Z(v, i), T = [], I = [];
891
877
  for (const S of f) {
892
878
  const V = S.getColId();
893
- if (l.current.has(V)) continue;
879
+ if (r.current.has(V)) continue;
894
880
  const A = q(S.getColDef());
895
881
  if (!A) continue;
896
882
  const E = D.has(A);
@@ -909,31 +895,31 @@ function at(e, i) {
909
895
  var o;
910
896
  n.disconnect(), (o = u()) == null || o.removeEventListener("columnVisible", C);
911
897
  };
912
- }, [d, s, a, e]), { lockColumns: z((m) => {
913
- for (const u of m) l.current.add(u);
898
+ }, [d, s, i, e]), { lockColumns: z((m) => {
899
+ for (const u of m) r.current.add(u);
914
900
  }, []) };
915
901
  }
916
- function it(e) {
917
- var i;
918
- return (i = e.data) != null && i.isArchived ? "data-table-row-archived" : void 0;
902
+ function nt(e) {
903
+ var a;
904
+ return (a = e.data) != null && a.isArchived ? "data-table-row-archived" : void 0;
919
905
  }
920
- function rt(e) {
906
+ function it(e) {
921
907
  return e.data.id;
922
908
  }
923
- function lt({
909
+ function at({
924
910
  views: e,
925
- handleRef: i,
911
+ handleRef: a,
926
912
  lockColumns: d,
927
913
  label: s
928
914
  }) {
929
- const [a, l] = te(""), c = Y(
915
+ const [i, r] = te(""), c = Y(
930
916
  () => e.map((u) => ({ value: u.id, label: u.label })),
931
917
  [e]
932
918
  ), h = z(
933
919
  (u) => {
934
- const C = e.find((t) => t.id === u), r = i.current;
935
- if (!C || !r) return;
936
- const w = r.getRawApi();
920
+ const C = e.find((t) => t.id === u), l = a.current;
921
+ if (!C || !l) return;
922
+ const w = l.getRawApi();
937
923
  if (w) {
938
924
  const t = new Set(C.columns), n = [], o = [];
939
925
  for (const f of w.getColumns() ?? []) {
@@ -943,12 +929,12 @@ function lt({
943
929
  }
944
930
  d([...n, ...o]), n.length > 0 && w.setColumnsVisible(n, !0), o.length > 0 && w.setColumnsVisible(o, !1);
945
931
  }
946
- r.setFilter(C.filterModel), r.setSort(C.sortModel), w == null || w.onFilterChanged();
932
+ l.setFilter(C.filterModel), l.setSort(C.sortModel), w == null || w.onFilterChanged();
947
933
  },
948
- [e, i, d]
934
+ [e, a, d]
949
935
  ), m = z(
950
936
  (u) => {
951
- l(u), u && h(u);
937
+ r(u), u && h(u);
952
938
  },
953
939
  [h]
954
940
  );
@@ -960,7 +946,7 @@ function lt({
960
946
  Ce,
961
947
  {
962
948
  options: c,
963
- value: a,
949
+ value: i,
964
950
  onValueChange: m,
965
951
  size: "sm",
966
952
  "aria-label": s
@@ -968,19 +954,19 @@ function lt({
968
954
  ) })
969
955
  );
970
956
  }
971
- const ot = he(
957
+ const lt = he(
972
958
  function({
973
- rowData: i,
959
+ rowData: a,
974
960
  columns: d,
975
961
  gridId: s,
976
- density: a,
977
- actionsCompact: l,
962
+ density: i,
963
+ actionsCompact: r,
978
964
  heightClass: c,
979
965
  responsive: h = !0,
980
966
  views: m,
981
967
  onRowAction: u,
982
968
  bulkActions: C,
983
- loading: r = !1,
969
+ loading: l = !1,
984
970
  toolbar: w,
985
971
  hideQuickSearch: t = !1,
986
972
  pagination: n = !0,
@@ -991,16 +977,16 @@ const ot = he(
991
977
  "aria-label": T,
992
978
  className: I
993
979
  }, S) {
994
- const { t: V } = $("ui"), A = k(null), E = k(null), [M, re] = te(null);
980
+ const { t: V } = $("ui"), A = k(null), E = k(null), [M, le] = te(null);
995
981
  pe(
996
982
  S,
997
983
  () => M ?? A.current,
998
984
  [M]
999
985
  );
1000
- const { lockColumns: le } = at(A, {
986
+ const { lockColumns: re } = tt(A, {
1001
987
  containerRef: E,
1002
988
  enabled: h
1003
- }), G = l ?? a === "compact", Q = k(G), X = z(() => Q.current, []);
989
+ }), G = r ?? i === "compact", Q = k(G), X = z(() => Q.current, []);
1004
990
  ee(() => {
1005
991
  var y;
1006
992
  Q.current = G;
@@ -1008,12 +994,12 @@ const ot = he(
1008
994
  N && (N.setColumnWidths([
1009
995
  {
1010
996
  key: "actions",
1011
- newWidth: G ? 88 : ne(Qe)
997
+ newWidth: G ? 88 : ne(Ye)
1012
998
  }
1013
999
  ]), N.refreshCells({ force: !0 }));
1014
1000
  }, [G, M]);
1015
1001
  const oe = Y(
1016
- () => d ?? tt(V, {
1002
+ () => d ?? Ze(V, {
1017
1003
  hideDetails: f,
1018
1004
  onRowAction: u,
1019
1005
  identityHref: v,
@@ -1032,11 +1018,11 @@ const ot = he(
1032
1018
  ), se = ((m == null ? void 0 : m.length) ?? 0) > 0, de = /* @__PURE__ */ O(P.Toolbar, { children: [
1033
1019
  /* @__PURE__ */ O(P.Toolbar.FilterBar, { children: [
1034
1020
  se && m ? /* @__PURE__ */ g(
1035
- lt,
1021
+ at,
1036
1022
  {
1037
1023
  views: m,
1038
1024
  handleRef: A,
1039
- lockColumns: le,
1025
+ lockColumns: re,
1040
1026
  label: V("patientTable.views.label")
1041
1027
  }
1042
1028
  ) : null,
@@ -1060,7 +1046,7 @@ const ot = he(
1060
1046
  /* @__PURE__ */ g(P.Toolbar.ColumnToggle, {}),
1061
1047
  /* @__PURE__ */ g(P.Toolbar.ExportMenu, {})
1062
1048
  ] })
1063
- ] }), ce = w ?? de, ue = r ? void 0 : i, me = Y(() => ({ getRowId: rt }), []);
1049
+ ] }), ce = w ?? de, ue = l ? void 0 : a, me = Y(() => ({ getRowId: it }), []);
1064
1050
  return ve(
1065
1051
  ge,
1066
1052
  M,
@@ -1078,7 +1064,7 @@ const ot = he(
1078
1064
  P,
1079
1065
  {
1080
1066
  ref: (N) => {
1081
- A.current = N, re(
1067
+ A.current = N, le(
1082
1068
  (y) => y === N ? y : N
1083
1069
  );
1084
1070
  },
@@ -1089,8 +1075,8 @@ const ot = he(
1089
1075
  pagination: n,
1090
1076
  ...c !== void 0 ? { heightClass: c } : {},
1091
1077
  ...o !== void 0 ? { paginationPageSizeSelector: o } : {},
1092
- density: a,
1093
- getRowClass: it,
1078
+ density: i,
1079
+ getRowClass: nt,
1094
1080
  gridOptions: me,
1095
1081
  className: I,
1096
1082
  children: ce
@@ -1100,15 +1086,15 @@ const ot = he(
1100
1086
  );
1101
1087
  }
1102
1088
  );
1103
- ot.displayName = "PatientTable";
1089
+ lt.displayName = "PatientTable";
1104
1090
  export {
1105
- _e as B,
1106
- ze as C,
1107
- qe as N,
1108
- Qe as P,
1109
- ot as a,
1110
- tt as b,
1091
+ Ge as B,
1092
+ Ue as C,
1093
+ Ke as N,
1094
+ Ye as P,
1095
+ lt as a,
1096
+ Ze as b,
1111
1097
  q as g,
1112
- at as u
1098
+ tt as u
1113
1099
  };
1114
- //# sourceMappingURL=patient-table-BHzmUbzu.js.map
1100
+ //# sourceMappingURL=patient-table-B6AKMTm3.js.map