@alfadocs/ui-kit 0.69.0 → 0.70.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 (261) hide show
  1. package/dist/_chunks/{agenda-card-BxSFkqgY.js → agenda-card-BQ-IKAru.js} +2 -2
  2. package/dist/_chunks/{agenda-tray-g0kg7HwB.js → agenda-tray-CGXRk58j.js} +2 -2
  3. package/dist/_chunks/{ai-consent-banner-CXlsNX1c.js → ai-consent-banner-Be-h9mRI.js} +3 -3
  4. package/dist/_chunks/ai-tools-rail-B5NEghsp.js +511 -0
  5. package/dist/_chunks/{alert-_mUKLmwA.js → alert-CHYZ96tR.js} +150 -96
  6. package/dist/_chunks/{anamnesis-card-DRmE24OQ.js → anamnesis-card-DvYCa16e.js} +2 -2
  7. package/dist/_chunks/anatomy-scheme-CJB6dI6p.js +2445 -0
  8. package/dist/_chunks/annotation-marker-qt5R9WZX.js +120 -0
  9. package/dist/_chunks/{antenatal-schedule-timeline-35ebkcZT.js → antenatal-schedule-timeline-CwXrQRm1.js} +2 -2
  10. package/dist/_chunks/appointment-card-C06aZqA7.js +310 -0
  11. package/dist/_chunks/appointment-timeline-BJM0S_Fg.js +386 -0
  12. package/dist/_chunks/appointment-tray-DRRw5ROi.js +193 -0
  13. package/dist/_chunks/{audio-recorder-DYXXnGug.js → audio-recorder-Cpdk5qpQ.js} +2 -2
  14. package/dist/_chunks/{badge-CqGsX32l.js → badge-DCOqV9mI.js} +32 -27
  15. package/dist/_chunks/{bishop-score-PJI3AXzA.js → bishop-score-DnYWtZa_.js} +2 -2
  16. package/dist/_chunks/{bmi-calculator-BZtIJ53x.js → bmi-calculator-zjeY4E7J.js} +2 -2
  17. package/dist/_chunks/{booking-C3VqFReX.js → booking-DUBI0oqt.js} +4 -4
  18. package/dist/_chunks/{care-plan-card-CvFGXa2z.js → care-plan-card-C5sTfY9G.js} +5 -5
  19. package/dist/_chunks/{care-plan-entry-card-C3E_gClk.js → care-plan-entry-card-CXnxGCWA.js} +5 -5
  20. package/dist/_chunks/care-plan-header-BUwqDTtz.js +206 -0
  21. package/dist/_chunks/clinical-note-card-BUvNMNGL.js +436 -0
  22. package/dist/_chunks/{contact-profile-card-Dramqa9C.js → contact-profile-card-DDPwRFiP.js} +2 -2
  23. package/dist/_chunks/control-room-rail-Y8ryLYsP.js +229 -0
  24. package/dist/_chunks/{cycle-calculator-DmRGJNaT.js → cycle-calculator-CCmPwcBl.js} +2 -2
  25. package/dist/_chunks/{dependent-selector-CG_FOHya.js → dependent-selector-DUV4thxX.js} +2 -2
  26. package/dist/_chunks/{document-scanner-CTubA0-N.js → document-scanner-C_AxLooF.js} +3 -3
  27. package/dist/_chunks/{due-date-calculator-BTmsIQqD.js → due-date-calculator-Brdj-euS.js} +3 -3
  28. package/dist/_chunks/editable-currency-cell-renderer-C9twtALM.js +328 -0
  29. package/dist/_chunks/email-input-DJ7EXklP.js +397 -0
  30. package/dist/_chunks/{entity-card-COhmqHly.js → entity-card-9_62gY7l.js} +38 -20
  31. package/dist/_chunks/entity-summary-BxRjFh_4.js +138 -0
  32. package/dist/_chunks/{fetal-weight-CRz7KE2D.js → fetal-weight-DNCkyeVo.js} +2 -2
  33. package/dist/_chunks/field-value-NXYczdpO.js +415 -0
  34. package/dist/_chunks/{file-upload-5ScQd4fE.js → file-upload-DwZcAK8D.js} +2 -1
  35. package/dist/_chunks/{freemium-paywall-DZ2mBS3w.js → freemium-paywall-WYlNO7yT.js} +2 -2
  36. package/dist/_chunks/{gestational-age-calculator-BleUdhbI.js → gestational-age-calculator-CF2ISaYQ.js} +3 -3
  37. package/dist/_chunks/hash-CysBBS_N.js +17 -0
  38. package/dist/_chunks/{hcg-doubling-CnjDXX6U.js → hcg-doubling-C7bmuaU3.js} +2 -2
  39. package/dist/_chunks/{actions-cell-renderer-DrcaxB0w.js → link-cell-renderer-CTXqtXV-.js} +715 -592
  40. package/dist/_chunks/lock-CKOIn0IK.js +15 -0
  41. package/dist/_chunks/{marketplace-app-shell-6T9W4Knl.js → marketplace-app-shell-Skhfp6vK.js} +3 -3
  42. package/dist/_chunks/notes-panel-ay8_lPrA.js +158 -0
  43. package/dist/_chunks/{notification-card-BiESdm8q.js → notification-card-D2jiKSJJ.js} +27 -23
  44. package/dist/_chunks/{notification-tray-Btb9oQeZ.js → notification-tray-AEun6DN2.js} +2 -2
  45. package/dist/_chunks/{operator-hero-CP2Nhupm.js → operator-hero-CR0Rqh4-.js} +3 -3
  46. package/dist/_chunks/patient-details-Dlhqb5ig.js +675 -0
  47. package/dist/_chunks/{patient-search-CBC_ySF6.js → patient-search-Be6cLrHR.js} +2 -2
  48. package/dist/_chunks/patient-summary-card-WySCMwwA.js +437 -0
  49. package/dist/_chunks/patient-table-CHxf3Oqk.js +1110 -0
  50. package/dist/_chunks/{payment-form-DvjwYVIT.js → payment-form-CxqIXqw7.js} +2 -2
  51. package/dist/_chunks/{payment-request-card-DioWKBUq.js → payment-request-card-BcZJwu9z.js} +125 -136
  52. package/dist/_chunks/{pdf-viewer-D6BPfW2D.js → pdf-viewer-QfebdLOd.js} +192 -214
  53. package/dist/_chunks/{periodontal-chart-card-BuDEMbHE.js → periodontal-chart-card-hRRJY1NN.js} +2 -2
  54. package/dist/_chunks/{practice-results-KrTHqZua.js → practice-results-C6qDfxos.js} +3 -3
  55. package/dist/_chunks/{pregnancy-dating-DORUAOHB.js → pregnancy-dating-CRVWswD-.js} +3 -3
  56. package/dist/_chunks/{pregnancy-weight-gain-DVz4rr7-.js → pregnancy-weight-gain-BUNpTsH-.js} +2 -2
  57. package/dist/_chunks/radiograph-panel.agent-CAX-C3g3.js +558 -0
  58. package/dist/_chunks/{rich-text-editor-BsV7zUdg.js → rich-text-editor-DlCqPixb.js} +410 -394
  59. package/dist/_chunks/{sign-document-B4DeRhTe.js → sign-document-By6hMOra.js} +2 -2
  60. package/dist/_chunks/{stepper-accordion-Dki6r9ZE.js → stepper-accordion-DC-H-8v4.js} +38 -48
  61. package/dist/_chunks/tab-bar-Bv9nGNdO.js +262 -0
  62. package/dist/_chunks/tooth-scheme-BhQoPNBD.js +2131 -0
  63. package/dist/_chunks/{transaction-chip-DK84XCBU.js → transaction-chip-CscoQbxF.js} +88 -61
  64. package/dist/_chunks/use-clamp-overflow-DQE2kwZ9.js +20 -0
  65. package/dist/_chunks/use-overflow-collapse-BIOzKbni.js +32 -0
  66. package/dist/_chunks/use-persistent-state-nZwZAnE9.js +24 -0
  67. package/dist/_chunks/{warning-stack-BsgaEbL8.js → warning-stack--sTrrBDA.js} +86 -101
  68. package/dist/_chunks/{workflow-map-Bdam9pGp.js → workflow-map-Dy8mLCqF.js} +3 -3
  69. package/dist/_chunks/zoom-out-CgVtf2Wx.js +29 -0
  70. package/dist/agent/index.js +5 -4
  71. package/dist/agent/types.d.ts +19 -2
  72. package/dist/agent-catalog.json +1253 -86
  73. package/dist/agent-i18n/en.json +108 -6
  74. package/dist/components/_shared/entity-card/entity-card.d.ts +6 -0
  75. package/dist/components/_shared/entity-card/index.d.ts +1 -1
  76. package/dist/components/_shared/field-value.d.ts +21 -0
  77. package/dist/components/_shared/field-visibility-cog.d.ts +20 -0
  78. package/dist/components/_shared/field-visibility.d.ts +36 -0
  79. package/dist/components/_shared/patient-fields.d.ts +119 -0
  80. package/dist/components/agenda-card/index.js +1 -1
  81. package/dist/components/agenda-tray/index.js +1 -1
  82. package/dist/components/ai-consent-banner/index.js +1 -1
  83. package/dist/components/ai-tools-rail/ai-tools-rail.d.ts +75 -0
  84. package/dist/components/ai-tools-rail/index.js +1 -1
  85. package/dist/components/alert/alert.d.ts +5 -0
  86. package/dist/components/alert/index.js +1 -1
  87. package/dist/components/anamnesis-card/index.js +1 -1
  88. package/dist/components/anatomy-scheme/anatomy-face-paths.d.ts +15 -0
  89. package/dist/components/anatomy-scheme/anatomy-muscle-paths.d.ts +20 -0
  90. package/dist/components/anatomy-scheme/anatomy-scheme-data.d.ts +121 -0
  91. package/dist/components/anatomy-scheme/anatomy-scheme.agent.d.ts +6 -0
  92. package/dist/components/anatomy-scheme/anatomy-scheme.d.ts +69 -0
  93. package/dist/components/anatomy-scheme/index.d.ts +6 -0
  94. package/dist/components/anatomy-scheme/index.js +17 -0
  95. package/dist/components/annotation-marker/annotation-marker.d.ts +33 -0
  96. package/dist/components/annotation-marker/index.d.ts +3 -0
  97. package/dist/components/annotation-marker/index.js +7 -0
  98. package/dist/components/appointment-card/appointment-card.d.ts +25 -1
  99. package/dist/components/appointment-card/index.js +6 -5
  100. package/dist/components/appointment-timeline/appointment-timeline.agent.d.ts +4 -0
  101. package/dist/components/appointment-timeline/appointment-timeline.d.ts +66 -0
  102. package/dist/components/appointment-timeline/index.d.ts +4 -0
  103. package/dist/components/appointment-timeline/index.js +6 -0
  104. package/dist/components/audio-recorder/index.js +1 -1
  105. package/dist/components/badge/badge.d.ts +6 -2
  106. package/dist/components/badge/index.js +1 -1
  107. package/dist/components/bishop-score/index.js +1 -1
  108. package/dist/components/bmi-calculator/index.js +1 -1
  109. package/dist/components/booking/index.js +1 -1
  110. package/dist/components/care-plan-card/index.js +1 -1
  111. package/dist/components/care-plan-entry-card/index.js +1 -1
  112. package/dist/components/care-plan-header/care-plan-header.agent.d.ts +4 -0
  113. package/dist/components/care-plan-header/care-plan-header.d.ts +100 -0
  114. package/dist/components/care-plan-header/index.d.ts +4 -0
  115. package/dist/components/care-plan-header/index.js +6 -0
  116. package/dist/components/clinical-note-card/clinical-note-card.d.ts +21 -1
  117. package/dist/components/clinical-note-card/index.js +1 -1
  118. package/dist/components/contact-profile-card/index.js +1 -1
  119. package/dist/components/control-room-rail/control-room-context.d.ts +53 -0
  120. package/dist/components/control-room-rail/control-room-rail.d.ts +35 -0
  121. package/dist/components/control-room-rail/index.d.ts +5 -0
  122. package/dist/components/control-room-rail/index.js +9 -0
  123. package/dist/components/cycle-calculator/index.js +1 -1
  124. package/dist/components/data-table/cell-renderers/actions-cell-renderer.d.ts +18 -0
  125. package/dist/components/data-table/index.d.ts +1 -1
  126. package/dist/components/data-table/index.js +32 -31
  127. package/dist/components/dependent-selector/index.js +1 -1
  128. package/dist/components/document-scanner/index.js +1 -1
  129. package/dist/components/due-date-calculator/index.js +2 -2
  130. package/dist/components/email-input/index.js +1 -1
  131. package/dist/components/entity-summary/entity-summary.d.ts +43 -0
  132. package/dist/components/entity-summary/index.d.ts +3 -0
  133. package/dist/components/entity-summary/index.js +5 -0
  134. package/dist/components/fetal-weight/index.js +1 -1
  135. package/dist/components/file-upload/index.js +1 -1
  136. package/dist/components/freemium-paywall/index.js +1 -1
  137. package/dist/components/gestational-age-calculator/index.js +1 -1
  138. package/dist/components/hcg-doubling/index.js +1 -1
  139. package/dist/components/index.d.ts +9 -0
  140. package/dist/components/notes-panel/index.d.ts +3 -0
  141. package/dist/components/notes-panel/index.js +5 -0
  142. package/dist/components/notes-panel/notes-panel.d.ts +64 -0
  143. package/dist/components/notification-card/index.js +1 -1
  144. package/dist/components/notification-tray/index.js +1 -1
  145. package/dist/components/operator-hero/index.js +1 -1
  146. package/dist/components/patient-details/index.d.ts +5 -0
  147. package/dist/components/patient-details/index.js +6 -0
  148. package/dist/components/patient-details/patient-details.agent.d.ts +4 -0
  149. package/dist/components/patient-details/patient-details.d.ts +96 -0
  150. package/dist/components/patient-search/index.js +1 -1
  151. package/dist/components/patient-summary-card/index.js +1 -1
  152. package/dist/components/patient-summary-card/patient-summary-card.d.ts +40 -1
  153. package/dist/components/patient-table/columns.d.ts +69 -40
  154. package/dist/components/patient-table/index.d.ts +2 -6
  155. package/dist/components/patient-table/index.js +8 -9
  156. package/dist/components/patient-table/patient-table.d.ts +38 -4
  157. package/dist/components/patient-table/types.d.ts +52 -2
  158. package/dist/components/patient-table/use-responsive-columns.d.ts +8 -6
  159. package/dist/components/payment-card/index.js +1 -1
  160. package/dist/components/payment-form/index.js +1 -1
  161. package/dist/components/pdf-viewer/index.js +1 -1
  162. package/dist/components/periodontal-chart-card/index.js +1 -1
  163. package/dist/components/practice-results/index.js +1 -1
  164. package/dist/components/pregnancy-dating/index.js +1 -1
  165. package/dist/components/pregnancy-weight-gain/index.js +1 -1
  166. package/dist/components/radiograph-panel/index.d.ts +4 -0
  167. package/dist/components/radiograph-panel/index.js +7 -0
  168. package/dist/components/radiograph-panel/radiograph-panel.agent.d.ts +13 -0
  169. package/dist/components/radiograph-panel/radiograph-panel.d.ts +36 -0
  170. package/dist/components/rich-text-editor/index.js +1 -1
  171. package/dist/components/sidebar/index.js +1 -1
  172. package/dist/components/sign-document/index.js +1 -1
  173. package/dist/components/stepper-accordion/index.js +1 -1
  174. package/dist/components/tab-bar/index.js +1 -1
  175. package/dist/components/tab-bar/tab-bar.d.ts +18 -1
  176. package/dist/components/tooth-scheme/index.d.ts +2 -2
  177. package/dist/components/tooth-scheme/index.js +30 -23
  178. package/dist/components/tooth-scheme/tooth-data.d.ts +112 -1
  179. package/dist/components/tooth-scheme/tooth-scheme.agent.d.ts +2 -2
  180. package/dist/components/tooth-scheme/tooth-scheme.d.ts +75 -11
  181. package/dist/components/transaction-chip/index.js +1 -1
  182. package/dist/components/transaction-chip/transaction-chip.d.ts +2 -2
  183. package/dist/components/warning-stack/index.js +1 -1
  184. package/dist/components/warning-stack/warning-stack.d.ts +10 -7
  185. package/dist/components/workflow/index.js +1 -1
  186. package/dist/hooks/index.d.ts +1 -0
  187. package/dist/hooks/index.js +24 -22
  188. package/dist/hooks/use-clamp-overflow.d.ts +19 -0
  189. package/dist/hooks/use-overflow-collapse.d.ts +46 -0
  190. package/dist/hooks/use-persistent-state.d.ts +7 -1
  191. package/dist/hooks/use-scroll-overflow.d.ts +36 -0
  192. package/dist/i18n/locales/ar.d.ts +308 -24
  193. package/dist/i18n/locales/ar.js +322 -27
  194. package/dist/i18n/locales/de.d.ts +308 -24
  195. package/dist/i18n/locales/de.js +322 -27
  196. package/dist/i18n/locales/el.d.ts +308 -24
  197. package/dist/i18n/locales/el.js +322 -27
  198. package/dist/i18n/locales/en.d.ts +309 -32
  199. package/dist/i18n/locales/en.js +323 -35
  200. package/dist/i18n/locales/es.d.ts +308 -24
  201. package/dist/i18n/locales/es.js +322 -27
  202. package/dist/i18n/locales/fr.d.ts +308 -24
  203. package/dist/i18n/locales/fr.js +322 -27
  204. package/dist/i18n/locales/hi.d.ts +308 -24
  205. package/dist/i18n/locales/hi.js +322 -27
  206. package/dist/i18n/locales/it.d.ts +308 -24
  207. package/dist/i18n/locales/it.js +322 -27
  208. package/dist/i18n/locales/ja.d.ts +308 -24
  209. package/dist/i18n/locales/ja.js +322 -27
  210. package/dist/i18n/locales/nl.d.ts +308 -24
  211. package/dist/i18n/locales/nl.js +322 -27
  212. package/dist/i18n/locales/pl.d.ts +308 -24
  213. package/dist/i18n/locales/pl.js +322 -27
  214. package/dist/i18n/locales/pt.d.ts +308 -24
  215. package/dist/i18n/locales/pt.js +322 -27
  216. package/dist/i18n/locales/ro.d.ts +308 -24
  217. package/dist/i18n/locales/ro.js +322 -27
  218. package/dist/i18n/locales/ru.d.ts +308 -24
  219. package/dist/i18n/locales/ru.js +322 -27
  220. package/dist/i18n/locales/sq.d.ts +308 -24
  221. package/dist/i18n/locales/sq.js +322 -27
  222. package/dist/i18n/locales/sv.d.ts +308 -24
  223. package/dist/i18n/locales/sv.js +322 -27
  224. package/dist/i18n/locales/tr.d.ts +308 -24
  225. package/dist/i18n/locales/tr.js +322 -27
  226. package/dist/i18n/locales/zh.d.ts +308 -24
  227. package/dist/i18n/locales/zh.js +322 -27
  228. package/dist/index.js +672 -623
  229. package/dist/locales/ar.json +311 -27
  230. package/dist/locales/de.json +311 -27
  231. package/dist/locales/el.json +311 -27
  232. package/dist/locales/en.json +311 -27
  233. package/dist/locales/es.json +311 -27
  234. package/dist/locales/fr.json +311 -27
  235. package/dist/locales/hi.json +311 -27
  236. package/dist/locales/it.json +311 -27
  237. package/dist/locales/ja.json +311 -27
  238. package/dist/locales/nl.json +311 -27
  239. package/dist/locales/pl.json +311 -27
  240. package/dist/locales/pt.json +311 -27
  241. package/dist/locales/ro.json +311 -27
  242. package/dist/locales/ru.json +311 -27
  243. package/dist/locales/sq.json +311 -27
  244. package/dist/locales/sv.json +311 -27
  245. package/dist/locales/tr.json +311 -27
  246. package/dist/locales/zh.json +311 -27
  247. package/dist/patterns/marketplace-app-shell/index.js +1 -1
  248. package/dist/tokens.css +1 -1
  249. package/package.json +37 -1
  250. package/dist/_chunks/ai-tools-rail-BA_sqy1A.js +0 -373
  251. package/dist/_chunks/appointment-tray-CZtvtaH-.js +0 -431
  252. package/dist/_chunks/clinical-note-card-DqQYf_D4.js +0 -333
  253. package/dist/_chunks/editable-currency-cell-renderer-kgqp_mIw.js +0 -448
  254. package/dist/_chunks/email-input-B_Y55f5G.js +0 -396
  255. package/dist/_chunks/patient-summary-card-B836_fDB.js +0 -435
  256. package/dist/_chunks/patient-table-CDuosVru.js +0 -889
  257. package/dist/_chunks/tab-bar-B1ovILzh.js +0 -105
  258. package/dist/_chunks/tooth-scheme-yBr53cvv.js +0 -1330
  259. package/dist/_chunks/use-persistent-state-i23OWy6G.js +0 -24
  260. package/dist/components/patient-table/cell-renderers/contact-cell.d.ts +0 -45
  261. package/dist/components/patient-table/cell-renderers/patient-identity-cell.d.ts +0 -26
@@ -1,68 +1,69 @@
1
1
  import { jsx as n, jsxs as I } from "react/jsx-runtime";
2
- import { useMemo as A, forwardRef as L, useState as D, useCallback as M, useEffect as P, useRef as ye, createContext as xe, useContext as Ce, isValidElement as Se, cloneElement as we, useImperativeHandle as ft } from "react";
3
- import { S as mt } from "./skeleton-CZbwyJAA.js";
4
- import { E as gt } from "./empty-state-BLy7tigq.js";
5
- import { c as bt } from "./index-D2ZczOXr.js";
6
- import { useTranslation as N } from "react-i18next";
7
- import { useGridFilter as X, AgGridReact as ht } from "ag-grid-react";
8
- import { ModuleRegistry as vt, AllCommunityModule as Tt } from "ag-grid-community";
9
- import { B as G } from "./button-DD_0Xdmr.js";
10
- import { I as _ } from "./icon-button-LqoiKcUN.js";
2
+ import { useMemo as E, forwardRef as G, useState as R, useCallback as M, useEffect as z, useRef as xe, createContext as Se, useContext as we, isValidElement as Ne, cloneElement as Fe, useImperativeHandle as bt } from "react";
3
+ import { S as ht } from "./skeleton-CZbwyJAA.js";
4
+ import { E as vt } from "./empty-state-BLy7tigq.js";
5
+ import { c as Tt } from "./index-D2ZczOXr.js";
6
+ import { useTranslation as F } from "react-i18next";
7
+ import { useGridFilter as X, AgGridReact as yt } from "ag-grid-react";
8
+ import { ModuleRegistry as Ct, AllCommunityModule as xt } from "ag-grid-community";
9
+ import { B as j } from "./button-DD_0Xdmr.js";
10
+ import { I as V } from "./icon-button-LqoiKcUN.js";
11
11
  import { P as Z } from "./popover-B2qCDhJC.js";
12
- import { C as Fe } from "./checkbox-BuZ1u__2.js";
13
- import { T as ue } from "./text-input-B-OWQ1Je.js";
12
+ import { C as Re } from "./checkbox-BuZ1u__2.js";
13
+ import { T as pe } from "./text-input-B-OWQ1Je.js";
14
14
  import { T as te } from "./tag-BQXwuJq1.js";
15
- import { D as V } from "./dropdown-menu-qrxjymfw.js";
16
- import { X as Ne } from "./x-CCcI3eJp.js";
17
- import { R as yt } from "./refresh-cw-CC8jSKMr.js";
18
- import { S as pe } from "./search-BonnQsHv.js";
19
- import { C as xt } from "./columns-2-BTOBZbep.js";
20
- import { G as Ct } from "./grip-vertical-Dlg0_k5C.js";
21
- import { P as St } from "./printer-CeVEWfQq.js";
22
- import { F as De } from "./file-text-DSNuv2B8.js";
15
+ import { D as _ } from "./dropdown-menu-qrxjymfw.js";
16
+ import { X as De } from "./x-CCcI3eJp.js";
17
+ import { R as St } from "./refresh-cw-CC8jSKMr.js";
18
+ import { S as fe } from "./search-BonnQsHv.js";
19
+ import { C as wt } from "./columns-2-BTOBZbep.js";
20
+ import { G as Nt } from "./grip-vertical-Dlg0_k5C.js";
21
+ import { P as Ft } from "./printer-CeVEWfQq.js";
22
+ import { F as Ie } from "./file-text-DSNuv2B8.js";
23
23
  import { D as ae } from "./download-CDF1sbL9.js";
24
- import { F as wt } from "./file-spreadsheet-zUkY8rJ2.js";
25
- import Ft from "i18next";
26
- import { S as Re } from "./select-DMLG44F5.js";
27
- import { u as Nt } from "./registry-DvAUVLHh.js";
28
- import { u as Dt } from "./use-prefers-reduced-motion-BMwIQRjB.js";
29
- import { u as Rt } from "./use-theme-CAuo6EYT.js";
30
- import { D as Ie } from "./date-range-picker-CTUeR6Bj.js";
31
- import { M as It } from "./multi-select-BdHHDrRN.js";
32
- import { A as ke } from "./autocomplete-DOeGouCL.js";
24
+ import { F as Rt } from "./file-spreadsheet-zUkY8rJ2.js";
25
+ import Dt from "i18next";
26
+ import { S as ke } from "./select-DMLG44F5.js";
27
+ import { u as It } from "./registry-DvAUVLHh.js";
28
+ import { u as kt } from "./use-prefers-reduced-motion-BMwIQRjB.js";
29
+ import { u as Et } from "./use-theme-CAuo6EYT.js";
30
+ import { D as Ee } from "./date-range-picker-CTUeR6Bj.js";
31
+ import { M as At } from "./multi-select-BdHHDrRN.js";
32
+ import { A as Ae } from "./autocomplete-DOeGouCL.js";
33
33
  import { N as Y } from "./number-input-DxphVG_A.js";
34
- import { A as kt } from "./avatar-BNQNhoyL.js";
35
- import { T as At } from "./tooltip-DvmfrNvB.js";
36
- import { T as be } from "./timestamp-BV2lC-wV.js";
37
- import { I as Ot } from "./icon-button-group-C48khLE0.js";
38
- import { E as Et } from "./ellipsis-rgGdiK_9.js";
39
- function Pt(t) {
40
- if (!Se(t)) return t;
34
+ import { B as Ot } from "./badge-DCOqV9mI.js";
35
+ import { A as Oe } from "./avatar-BNQNhoyL.js";
36
+ import { T as zt } from "./tooltip-DvmfrNvB.js";
37
+ import { T as he } from "./timestamp-BV2lC-wV.js";
38
+ import { I as Pt } from "./icon-button-group-C48khLE0.js";
39
+ import { E as Mt } from "./ellipsis-rgGdiK_9.js";
40
+ function qt(t) {
41
+ if (!Ne(t)) return t;
41
42
  const e = t, a = e.props.className ?? "", r = /\bsize-|\bw-|\bh-/.test(a) ? a : `${a} ds:size-4`.trim();
42
- return we(e, { className: r, size: e.props.size ?? 16 });
43
+ return Fe(e, { className: r, size: e.props.size ?? 16 });
43
44
  }
44
- const Ae = xe(null);
45
- function $(t) {
46
- const e = Ce(Ae);
45
+ const ze = Se(null);
46
+ function B(t) {
47
+ const e = we(ze);
47
48
  if (!e)
48
49
  throw new Error(
49
50
  `${t} must be rendered inside <DataTable.Toolbar> as a descendant of <DataTable>.`
50
51
  );
51
52
  return e;
52
53
  }
53
- function zt({
54
+ function Lt({
54
55
  getApi: t,
55
56
  selectionCount: e,
56
57
  onPrint: a,
57
58
  children: r
58
59
  }) {
59
- const o = A(
60
+ const o = E(
60
61
  () => ({ getApi: t, selectionCount: e, onPrint: a }),
61
62
  [t, e, a]
62
63
  );
63
- return /* @__PURE__ */ n(Ae.Provider, { value: o, children: r });
64
+ return /* @__PURE__ */ n(ze.Provider, { value: o, children: r });
64
65
  }
65
- const Mt = [
66
+ const jt = [
66
67
  "data-table-toolbar",
67
68
  // Mobile (<sm) keeps `flex-wrap` so a wide QuickSearch can flow above the
68
69
  // Actions cluster on narrow screens. From `sm` (≥640px) we switch to
@@ -81,20 +82,20 @@ const Mt = [
81
82
  "ds:border ds:border-[color:var(--card-border)]",
82
83
  "ds:shadow-[var(--shadow-sm)]",
83
84
  "ds:py-[var(--spacing-sm)] ds:px-[var(--spacing-md)]"
84
- ].join(" "), Oe = L(
85
+ ].join(" "), Pe = G(
85
86
  ({ className: t, children: e, ...a }, r) => /* @__PURE__ */ n(
86
87
  "div",
87
88
  {
88
89
  ref: r,
89
90
  role: "toolbar",
90
- className: [Mt, t ?? ""].join(" ").trim(),
91
+ className: [jt, t ?? ""].join(" ").trim(),
91
92
  ...a,
92
93
  children: e
93
94
  }
94
95
  )
95
96
  );
96
- Oe.displayName = "DataTable.Toolbar";
97
- const Ee = L(
97
+ Pe.displayName = "DataTable.Toolbar";
98
+ const Me = G(
98
99
  ({ className: t, children: e, ...a }, r) => /* @__PURE__ */ n(
99
100
  "div",
100
101
  {
@@ -113,8 +114,8 @@ const Ee = L(
113
114
  }
114
115
  )
115
116
  );
116
- Ee.displayName = "DataTable.Toolbar.FilterBar";
117
- const Pe = L(
117
+ Me.displayName = "DataTable.Toolbar.FilterBar";
118
+ const qe = G(
118
119
  ({ className: t, children: e, ...a }, r) => /* @__PURE__ */ n(
119
120
  "div",
120
121
  {
@@ -129,28 +130,28 @@ const Pe = L(
129
130
  }
130
131
  )
131
132
  );
132
- Pe.displayName = "DataTable.Toolbar.Actions";
133
- const ze = L(
133
+ qe.displayName = "DataTable.Toolbar.Actions";
134
+ const Le = G(
134
135
  ({ label: t, onExport: e, intent: a = "outline", ...r }, o) => {
135
- const { t: s } = N(), { getApi: l } = $("DataTable.Toolbar.ExportCsv"), f = M(() => {
136
+ const { t: s } = F(), { getApi: l } = B("DataTable.Toolbar.ExportCsv"), p = M(() => {
136
137
  const i = l();
137
138
  i && (e ? e(i) : i.exportDataAsCsv());
138
139
  }, [l, e]);
139
140
  return /* @__PURE__ */ n(
140
- _,
141
+ V,
141
142
  {
142
143
  ref: o,
143
144
  type: "button",
144
145
  intent: a,
145
146
  icon: /* @__PURE__ */ n(ae, { "aria-hidden": !0 }),
146
147
  tooltip: t ?? s("dataTable.exportCsv"),
147
- onClick: f,
148
+ onClick: p,
148
149
  ...r
149
150
  }
150
151
  );
151
152
  }
152
153
  );
153
- ze.displayName = "DataTable.Toolbar.ExportCsv";
154
+ Le.displayName = "DataTable.Toolbar.ExportCsv";
154
155
  function Q(t, e = [30, 30, 30]) {
155
156
  if (typeof document > "u") return e;
156
157
  const a = document.createElement("span");
@@ -160,33 +161,33 @@ function Q(t, e = [30, 30, 30]) {
160
161
  const o = r.match(/rgba?\(\s*(\d+)[,\s]+(\d+)[,\s]+(\d+)/i);
161
162
  return o ? [Number(o[1]), Number(o[2]), Number(o[3])] : e;
162
163
  }
163
- async function Me(t, e) {
164
+ async function je(t, e) {
164
165
  if (!t) return;
165
166
  const [{ jsPDF: a }, { default: r }] = await Promise.all([
166
167
  import("./jspdf.es.min-DaapWjR1.js").then((g) => g.j),
167
168
  import("./jspdf.plugin.autotable-CSiDNyPn.js")
168
169
  ]), s = (t.getColumns() ?? []).filter((g) => g.isVisible()), l = [
169
170
  s.map((g) => t.getDisplayNameForColumn(g, null) ?? "")
170
- ], f = [];
171
+ ], p = [];
171
172
  t.forEachNodeAfterFilterAndSort((g) => {
172
173
  if (!g.data) return;
173
- const T = s.map((x) => {
174
+ const T = s.map((C) => {
174
175
  const S = t.getCellValue({
175
176
  rowNode: g,
176
- colKey: x,
177
+ colKey: C,
177
178
  useFormatter: !0
178
179
  });
179
180
  return S == null ? "" : String(S);
180
181
  });
181
- f.push(T);
182
+ p.push(T);
182
183
  });
183
- const i = Q("--muted", [240, 240, 240]), u = Q("--foreground", [30, 30, 30]), c = Q("--card-foreground", [30, 30, 30]), d = Q("--card", [250, 250, 250]), y = new a({ orientation: "landscape" });
184
+ const i = Q("--muted", [240, 240, 240]), d = Q("--foreground", [30, 30, 30]), c = Q("--card-foreground", [30, 30, 30]), u = Q("--card", [250, 250, 250]), y = new a({ orientation: "landscape" });
184
185
  r(y, {
185
186
  head: l,
186
- body: f,
187
- headStyles: { fillColor: i, textColor: u },
187
+ body: p,
188
+ headStyles: { fillColor: i, textColor: d },
188
189
  bodyStyles: { textColor: c },
189
- alternateRowStyles: { fillColor: d },
190
+ alternateRowStyles: { fillColor: u },
190
191
  styles: {
191
192
  font: "helvetica",
192
193
  fontSize: 10,
@@ -194,25 +195,25 @@ async function Me(t, e) {
194
195
  }
195
196
  }), y.save(e.fileName);
196
197
  }
197
- const qe = L(
198
+ const Ge = G(
198
199
  ({ label: t, onClick: e, fileName: a, intent: r = "outline", ...o }, s) => {
199
- const { t: l } = N(), { getApi: f } = $("DataTable.Toolbar.ExportPdf"), i = M(() => {
200
- const u = f();
200
+ const { t: l } = F(), { getApi: p } = B("DataTable.Toolbar.ExportPdf"), i = M(() => {
201
+ const d = p();
201
202
  if (e) {
202
- e(u);
203
+ e(d);
203
204
  return;
204
205
  }
205
- Me(u, {
206
+ je(d, {
206
207
  fileName: a ?? "data-table-export.pdf"
207
208
  });
208
- }, [f, e, a]);
209
+ }, [p, e, a]);
209
210
  return /* @__PURE__ */ n(
210
- _,
211
+ V,
211
212
  {
212
213
  ref: s,
213
214
  type: "button",
214
215
  intent: r,
215
- icon: /* @__PURE__ */ n(De, { "aria-hidden": !0 }),
216
+ icon: /* @__PURE__ */ n(Ie, { "aria-hidden": !0 }),
216
217
  tooltip: t ?? l("dataTable.exportPdf"),
217
218
  onClick: i,
218
219
  ...o
@@ -220,17 +221,17 @@ const qe = L(
220
221
  );
221
222
  }
222
223
  );
223
- qe.displayName = "DataTable.Toolbar.ExportPdf";
224
- const je = L(
224
+ Ge.displayName = "DataTable.Toolbar.ExportPdf";
225
+ const Be = G(
225
226
  ({ label: t, intent: e = "outline", ...a }, r) => {
226
- const { t: o } = N(), { onPrint: s } = $("DataTable.Toolbar.Print");
227
+ const { t: o } = F(), { onPrint: s } = B("DataTable.Toolbar.Print");
227
228
  return /* @__PURE__ */ n(
228
- _,
229
+ V,
229
230
  {
230
231
  ref: r,
231
232
  type: "button",
232
233
  intent: e,
233
- icon: /* @__PURE__ */ n(St, { "aria-hidden": !0 }),
234
+ icon: /* @__PURE__ */ n(Ft, { "aria-hidden": !0 }),
234
235
  tooltip: t ?? o("dataTable.print"),
235
236
  onClick: s,
236
237
  ...a
@@ -238,12 +239,12 @@ const je = L(
238
239
  );
239
240
  }
240
241
  );
241
- je.displayName = "DataTable.Toolbar.Print";
242
- const Ge = ({ placeholder: t, debounceMs: e = 150 }) => {
243
- const { t: a } = N(), { getApi: r } = $("DataTable.Toolbar.QuickSearch"), [o, s] = D(""), l = ye(void 0);
244
- return P(() => (l.current && window.clearTimeout(l.current), l.current = window.setTimeout(() => {
245
- const f = r();
246
- f && f.setGridOption("quickFilterText", o);
242
+ Be.displayName = "DataTable.Toolbar.Print";
243
+ const $e = ({ placeholder: t, debounceMs: e = 150 }) => {
244
+ const { t: a } = F(), { getApi: r } = B("DataTable.Toolbar.QuickSearch"), [o, s] = R(""), l = xe(void 0);
245
+ return z(() => (l.current && window.clearTimeout(l.current), l.current = window.setTimeout(() => {
246
+ const p = r();
247
+ p && p.setGridOption("quickFilterText", o);
247
248
  }, e), () => {
248
249
  l.current && window.clearTimeout(l.current);
249
250
  }), [o, e, r]), // Slot wrapper caps the search at a sensible legible width on desktop —
@@ -254,31 +255,31 @@ const Ge = ({ placeholder: t, debounceMs: e = 150 }) => {
254
255
  // `--toolbar-search-max` token in the kit yet — see this component's
255
256
  // summary for a follow-up note recommending we add one.
256
257
  /* @__PURE__ */ n("div", { className: "ds:w-full ds:max-w-[24rem] ds:min-w-0", children: /* @__PURE__ */ n(
257
- ue,
258
+ pe,
258
259
  {
259
260
  type: "search",
260
261
  size: "sm",
261
262
  value: o,
262
- onChange: (f) => s(f.target.value),
263
+ onChange: (p) => s(p.target.value),
263
264
  placeholder: t ?? a("dataTable.quickSearch.placeholder", "Search…"),
264
- startAdornment: /* @__PURE__ */ n(pe, { "aria-hidden": !0, className: "ds:size-4" }),
265
+ startAdornment: /* @__PURE__ */ n(fe, { "aria-hidden": !0, className: "ds:size-4" }),
265
266
  clearable: !0,
266
267
  onClear: () => s(""),
267
268
  "aria-label": a("dataTable.quickSearch.label", "Quick search")
268
269
  }
269
270
  ) });
270
271
  };
271
- Ge.displayName = "DataTable.Toolbar.QuickSearch";
272
- const Le = L(
272
+ $e.displayName = "DataTable.Toolbar.QuickSearch";
273
+ const _e = G(
273
274
  ({ onRefresh: t, label: e, intent: a = "outline", ...r }, o) => {
274
- const { t: s } = N();
275
+ const { t: s } = F();
275
276
  return /* @__PURE__ */ n(
276
- _,
277
+ V,
277
278
  {
278
279
  ref: o,
279
280
  type: "button",
280
281
  intent: a,
281
- icon: /* @__PURE__ */ n(yt, { "aria-hidden": !0 }),
282
+ icon: /* @__PURE__ */ n(St, { "aria-hidden": !0 }),
282
283
  tooltip: e ?? s("dataTable.refresh", "Refresh"),
283
284
  onClick: t,
284
285
  ...r
@@ -286,8 +287,8 @@ const Le = L(
286
287
  );
287
288
  }
288
289
  );
289
- Le.displayName = "DataTable.Toolbar.Refresh";
290
- function qt(t) {
290
+ _e.displayName = "DataTable.Toolbar.Refresh";
291
+ function Gt(t) {
291
292
  if (!t || typeof t != "object") return "";
292
293
  const e = t;
293
294
  if (typeof e.filter == "string" || typeof e.filter == "number") {
@@ -296,47 +297,47 @@ function qt(t) {
296
297
  }
297
298
  return typeof e.dateFrom == "string" ? typeof e.dateTo == "string" && e.dateTo ? `${e.dateFrom} – ${e.dateTo}` : String(e.dateFrom) : Array.isArray(e.values) ? e.values.map(String).join(", ") : "";
298
299
  }
299
- const $e = () => {
300
- const { t } = N(), { getApi: e } = $("DataTable.Toolbar.FilterChips"), [a, r] = D([]), [o, s] = D(""), l = M(() => {
300
+ const Ve = () => {
301
+ const { t } = F(), { getApi: e } = B("DataTable.Toolbar.FilterChips"), [a, r] = R([]), [o, s] = R(""), l = M(() => {
301
302
  const c = e();
302
303
  if (!c) {
303
304
  r([]), s("");
304
305
  return;
305
306
  }
306
- const d = c.getFilterModel() ?? {}, y = c.getColumns() ?? [], g = [];
307
- for (const x of Object.keys(d)) {
308
- const S = y.find((m) => m.getColId() === x), p = c.getDisplayNameForColumn(S, null) ?? x;
307
+ const u = c.getFilterModel() ?? {}, y = c.getColumns() ?? [], g = [];
308
+ for (const C of Object.keys(u)) {
309
+ const S = y.find((m) => m.getColId() === C), f = c.getDisplayNameForColumn(S, null) ?? C;
309
310
  g.push({
310
- colId: x,
311
- headerName: p,
312
- text: qt(d[x])
311
+ colId: C,
312
+ headerName: f,
313
+ text: Gt(u[C])
313
314
  });
314
315
  }
315
316
  r(g);
316
317
  const T = c.getGridOption("quickFilterText");
317
318
  s(typeof T == "string" ? T : "");
318
319
  }, [e]);
319
- if (P(() => {
320
+ if (z(() => {
320
321
  let c;
321
- const d = (T) => l(), y = (T) => {
322
- T.addEventListener("filterChanged", d), l(), c = () => T.removeEventListener("filterChanged", d);
322
+ const u = (T) => l(), y = (T) => {
323
+ T.addEventListener("filterChanged", u), l(), c = () => T.removeEventListener("filterChanged", u);
323
324
  }, g = e();
324
325
  if (g)
325
326
  y(g);
326
327
  else {
327
328
  const T = window.setInterval(() => {
328
- const x = e();
329
- x && (window.clearInterval(T), y(x));
329
+ const C = e();
330
+ C && (window.clearInterval(T), y(C));
330
331
  }, 50);
331
332
  c = () => window.clearInterval(T);
332
333
  }
333
334
  return () => c == null ? void 0 : c();
334
335
  }, [e, l]), a.length + (o ? 1 : 0) === 0) return null;
335
336
  function i(c) {
336
- const d = e();
337
- d && d.destroyFilter(c);
337
+ const u = e();
338
+ u && u.destroyFilter(c);
338
339
  }
339
- function u() {
340
+ function d() {
340
341
  const c = e();
341
342
  c && (c.setFilterModel(null), c.setGridOption("quickFilterText", ""), s(""));
342
343
  }
@@ -370,13 +371,13 @@ const $e = () => {
370
371
  c.colId
371
372
  )),
372
373
  /* @__PURE__ */ n(
373
- G,
374
+ j,
374
375
  {
375
376
  type: "button",
376
377
  intent: "ghost",
377
378
  size: "sm",
378
- onClick: u,
379
- startIcon: /* @__PURE__ */ n(Ne, { "aria-hidden": !0, className: "ds:size-4" }),
379
+ onClick: d,
380
+ startIcon: /* @__PURE__ */ n(De, { "aria-hidden": !0, className: "ds:size-4" }),
380
381
  children: t("dataTable.filterChips.clearAll", "Clear all")
381
382
  }
382
383
  )
@@ -384,25 +385,25 @@ const $e = () => {
384
385
  }
385
386
  );
386
387
  };
387
- $e.displayName = "DataTable.Toolbar.FilterChips";
388
- const Be = ({
388
+ Ve.displayName = "DataTable.Toolbar.FilterChips";
389
+ const We = ({
389
390
  field: t,
390
391
  options: e,
391
392
  label: a
392
393
  }) => {
393
- const { t: r } = N(), { getApi: o } = $("DataTable.Toolbar.FacetFilter"), [s, l] = D(null);
394
- function f(i) {
394
+ const { t: r } = F(), { getApi: o } = B("DataTable.Toolbar.FacetFilter"), [s, l] = R(null);
395
+ function p(i) {
395
396
  l(i);
396
- const u = o();
397
- if (u) {
397
+ const d = o();
398
+ if (d) {
398
399
  if (i === null) {
399
- u.destroyFilter(t);
400
+ d.destroyFilter(t);
400
401
  return;
401
402
  }
402
- u.setColumnFilterModel(t, {
403
+ d.setColumnFilterModel(t, {
403
404
  type: "equals",
404
405
  filter: i
405
- }), u.onFilterChanged();
406
+ }), d.onFilterChanged();
406
407
  }
407
408
  }
408
409
  return /* @__PURE__ */ n(
@@ -412,15 +413,15 @@ const Be = ({
412
413
  "aria-label": a ?? r("dataTable.facetFilter.label", "Filter"),
413
414
  className: "ds:flex ds:items-center ds:gap-[var(--spacing-xs)]",
414
415
  children: e.map((i) => {
415
- const u = s === i.value;
416
+ const d = s === i.value;
416
417
  return /* @__PURE__ */ n(
417
- G,
418
+ j,
418
419
  {
419
420
  type: "button",
420
421
  size: "sm",
421
- intent: u ? "primary" : "secondary",
422
- "aria-pressed": u,
423
- onClick: () => f(i.value),
422
+ intent: d ? "primary" : "secondary",
423
+ "aria-pressed": d,
424
+ onClick: () => p(i.value),
424
425
  children: i.label
425
426
  },
426
427
  String(i.value)
@@ -429,54 +430,54 @@ const Be = ({
429
430
  }
430
431
  );
431
432
  };
432
- Be.displayName = "DataTable.Toolbar.FacetFilter";
433
- const jt = ["csv", "xlsx", "pdf"];
434
- async function Gt(t, e) {
433
+ We.displayName = "DataTable.Toolbar.FacetFilter";
434
+ const Bt = ["csv", "xlsx", "pdf"];
435
+ async function $t(t, e) {
435
436
  if (!t) return;
436
- const a = await import("./exceljs.min-DUJ-5CGx.js").then((x) => x.e), r = new a.Workbook(), o = r.addWorksheet("Sheet1"), l = (t.getColumns() ?? []).filter((x) => x.isVisible());
437
+ const a = await import("./exceljs.min-DUJ-5CGx.js").then((C) => C.e), r = new a.Workbook(), o = r.addWorksheet("Sheet1"), l = (t.getColumns() ?? []).filter((C) => C.isVisible());
437
438
  o.addRow(
438
439
  l.map(
439
- (x) => t.getDisplayNameForColumn(x, null) ?? x.getColId()
440
+ (C) => t.getDisplayNameForColumn(C, null) ?? C.getColId()
440
441
  )
441
- ), t.forEachNodeAfterFilterAndSort((x) => {
442
- x.data && o.addRow(
442
+ ), t.forEachNodeAfterFilterAndSort((C) => {
443
+ C.data && o.addRow(
443
444
  l.map((S) => {
444
- const p = t.getCellValue({
445
- rowNode: x,
445
+ const f = t.getCellValue({
446
+ rowNode: C,
446
447
  colKey: S,
447
448
  useFormatter: !0
448
449
  });
449
- return p ?? "";
450
+ return f ?? "";
450
451
  })
451
452
  );
452
453
  });
453
- const f = Q("--muted", [240, 240, 240]), i = Q("--foreground", [30, 30, 30]), u = o.getRow(1), c = ([x, S, p]) => `${x.toString(16).padStart(2, "0")}${S.toString(16).padStart(2, "0")}${p.toString(16).padStart(2, "0")}`.toUpperCase();
454
- u.eachCell((x) => {
455
- x.font = { bold: !0, color: { argb: `FF${c(i)}` } }, x.fill = {
454
+ const p = Q("--muted", [240, 240, 240]), i = Q("--foreground", [30, 30, 30]), d = o.getRow(1), c = ([C, S, f]) => `${C.toString(16).padStart(2, "0")}${S.toString(16).padStart(2, "0")}${f.toString(16).padStart(2, "0")}`.toUpperCase();
455
+ d.eachCell((C) => {
456
+ C.font = { bold: !0, color: { argb: `FF${c(i)}` } }, C.fill = {
456
457
  type: "pattern",
457
458
  pattern: "solid",
458
- fgColor: { argb: `FF${c(f)}` }
459
+ fgColor: { argb: `FF${c(p)}` }
459
460
  };
460
461
  });
461
- const d = await r.xlsx.writeBuffer(), y = new Blob([d], {
462
+ const u = await r.xlsx.writeBuffer(), y = new Blob([u], {
462
463
  type: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
463
464
  }), g = URL.createObjectURL(y), T = document.createElement("a");
464
465
  T.href = g, T.download = e.fileName, document.body.appendChild(T), T.click(), document.body.removeChild(T), URL.revokeObjectURL(g);
465
466
  }
466
- const Ve = xe(null);
467
- function Lt() {
468
- const t = Ce(Ve);
467
+ const Ke = Se(null);
468
+ function _t() {
469
+ const t = we(Ke);
469
470
  if (!t)
470
471
  throw new Error(
471
472
  "DataTable.Toolbar.ExportMenu.Item must be rendered inside DataTable.Toolbar.ExportMenu."
472
473
  );
473
474
  return t;
474
475
  }
475
- const _e = ({ children: t, label: e }) => {
476
- const { t: a } = N(), { getApi: r } = $("DataTable.Toolbar.ExportMenu"), o = A(() => ({ getApi: r }), [r]), s = t ?? jt.map((l) => /* @__PURE__ */ n(fe, { format: l }, l));
477
- return /* @__PURE__ */ n(Ve.Provider, { value: o, children: /* @__PURE__ */ I(V.Root, { children: [
478
- /* @__PURE__ */ n(V.Trigger, { asChild: !0, children: /* @__PURE__ */ n(
479
- _,
476
+ const Ue = ({ children: t, label: e }) => {
477
+ const { t: a } = F(), { getApi: r } = B("DataTable.Toolbar.ExportMenu"), o = E(() => ({ getApi: r }), [r]), s = t ?? Bt.map((l) => /* @__PURE__ */ n(me, { format: l }, l));
478
+ return /* @__PURE__ */ n(Ke.Provider, { value: o, children: /* @__PURE__ */ I(_.Root, { children: [
479
+ /* @__PURE__ */ n(_.Trigger, { asChild: !0, children: /* @__PURE__ */ n(
480
+ V,
480
481
  {
481
482
  type: "button",
482
483
  intent: "outline",
@@ -486,93 +487,93 @@ const _e = ({ children: t, label: e }) => {
486
487
  "aria-haspopup": "menu"
487
488
  }
488
489
  ) }),
489
- /* @__PURE__ */ n(V.Content, { align: "end", sideOffset: 4, children: s })
490
+ /* @__PURE__ */ n(_.Content, { align: "end", sideOffset: 4, children: s })
490
491
  ] }) });
491
492
  };
492
- _e.displayName = "DataTable.Toolbar.ExportMenu";
493
- function $t(t, e) {
493
+ Ue.displayName = "DataTable.Toolbar.ExportMenu";
494
+ function Vt(t, e) {
494
495
  return e === "csv" ? t("dataTable.export.csv", "Export CSV") : e === "xlsx" ? t("dataTable.export.xlsx", "Export Excel") : e === "pdf" ? t("dataTable.export.pdf", "Export PDF") : t("dataTable.export.custom", "Export");
495
496
  }
496
- function Bt(t) {
497
- return t === "csv" ? /* @__PURE__ */ n(ae, { "aria-hidden": !0, className: "ds:size-4" }) : t === "xlsx" ? /* @__PURE__ */ n(wt, { "aria-hidden": !0, className: "ds:size-4" }) : t === "pdf" ? /* @__PURE__ */ n(De, { "aria-hidden": !0, className: "ds:size-4" }) : /* @__PURE__ */ n(ae, { "aria-hidden": !0, className: "ds:size-4" });
497
+ function Wt(t) {
498
+ return t === "csv" ? /* @__PURE__ */ n(ae, { "aria-hidden": !0, className: "ds:size-4" }) : t === "xlsx" ? /* @__PURE__ */ n(Rt, { "aria-hidden": !0, className: "ds:size-4" }) : t === "pdf" ? /* @__PURE__ */ n(Ie, { "aria-hidden": !0, className: "ds:size-4" }) : /* @__PURE__ */ n(ae, { "aria-hidden": !0, className: "ds:size-4" });
498
499
  }
499
- const fe = ({
500
+ const me = ({
500
501
  format: t,
501
502
  label: e,
502
503
  onClick: a,
503
504
  fileName: r
504
505
  }) => {
505
- const { t: o } = N(), { getApi: s } = Lt(), l = M(() => {
506
- const f = s();
506
+ const { t: o } = F(), { getApi: s } = _t(), l = M(() => {
507
+ const p = s();
507
508
  if (t === "csv") {
508
- f == null || f.exportDataAsCsv();
509
+ p == null || p.exportDataAsCsv();
509
510
  return;
510
511
  }
511
512
  if (t === "pdf") {
512
- Me(f, {
513
+ je(p, {
513
514
  fileName: r ?? "data-table-export.pdf"
514
515
  });
515
516
  return;
516
517
  }
517
518
  if (t === "xlsx") {
518
- Gt(f, {
519
+ $t(p, {
519
520
  fileName: r ?? "data-table-export.xlsx"
520
521
  });
521
522
  return;
522
523
  }
523
- a == null || a(f);
524
+ a == null || a(p);
524
525
  }, [t, r, a, s]);
525
- return /* @__PURE__ */ n(V.Item, { onSelect: l, children: /* @__PURE__ */ I("span", { className: "ds:inline-flex ds:items-center ds:gap-[var(--spacing-sm)]", children: [
526
- Bt(t),
527
- /* @__PURE__ */ n("span", { children: e ?? $t(o, t) })
526
+ return /* @__PURE__ */ n(_.Item, { onSelect: l, children: /* @__PURE__ */ I("span", { className: "ds:inline-flex ds:items-center ds:gap-[var(--spacing-sm)]", children: [
527
+ Wt(t),
528
+ /* @__PURE__ */ n("span", { children: e ?? Vt(o, t) })
528
529
  ] }) });
529
530
  };
530
- fe.displayName = "DataTable.Toolbar.ExportMenu.Item";
531
- function Vt(t) {
531
+ me.displayName = "DataTable.Toolbar.ExportMenu.Item";
532
+ function Kt(t) {
532
533
  return t ? (t.getAllGridColumns() ?? []).map((a) => a.getColDef().hide === void 0 && a.getColId().startsWith("ag-Grid-") ? null : {
533
534
  colId: a.getColId(),
534
535
  displayName: t.getDisplayNameForColumn(a, null) || a.getColId(),
535
536
  visible: a.isVisible()
536
537
  }).filter((a) => a !== null) : [];
537
538
  }
538
- const Ke = ({ label: t, icon: e, footer: a, header: r }) => {
539
- const { t: o } = N(), { getApi: s } = $("DataTable.Toolbar.ColumnToggle"), [l, f] = D(!1), [i, u] = D([]), [c, d] = D(null), [y, g] = D(null);
540
- P(() => {
541
- l && u(Vt(s()));
539
+ const He = ({ label: t, icon: e, footer: a, header: r }) => {
540
+ const { t: o } = F(), { getApi: s } = B("DataTable.Toolbar.ColumnToggle"), [l, p] = R(!1), [i, d] = R([]), [c, u] = R(null), [y, g] = R(null);
541
+ z(() => {
542
+ l && d(Kt(s()));
542
543
  }, [l, s]);
543
544
  const T = M(
544
- (p, m) => {
545
+ (f, m) => {
545
546
  const b = s();
546
- b && (b.setColumnsVisible([p], m), u(
547
+ b && (b.setColumnsVisible([f], m), d(
547
548
  (h) => h.map(
548
- (w) => w.colId === p ? { ...w, visible: m } : w
549
+ (w) => w.colId === f ? { ...w, visible: m } : w
549
550
  )
550
551
  ));
551
552
  },
552
553
  [s]
553
- ), x = M(
554
- (p, m) => {
555
- if (p === m) return;
554
+ ), C = M(
555
+ (f, m) => {
556
+ if (f === m) return;
556
557
  const b = s();
557
558
  if (!b) return;
558
- u((w) => {
559
- const O = w.findIndex((K) => K.colId === p), k = w.findIndex((K) => K.colId === m);
560
- if (O < 0 || k < 0) return w;
561
- const B = [...w], [R] = B.splice(O, 1);
562
- return B.splice(k, 0, R), B;
559
+ d((w) => {
560
+ const A = w.findIndex((W) => W.colId === f), k = w.findIndex((W) => W.colId === m);
561
+ if (A < 0 || k < 0) return w;
562
+ const $ = [...w], [D] = $.splice(A, 1);
563
+ return $.splice(k, 0, D), $;
563
564
  });
564
565
  const h = i.findIndex((w) => w.colId === m);
565
- h >= 0 && b.moveColumns([p], h);
566
+ h >= 0 && b.moveColumns([f], h);
566
567
  },
567
568
  [s, i]
568
569
  ), S = t ?? o("dataTable.columnToggle");
569
- return /* @__PURE__ */ I(Z.Root, { open: l, onOpenChange: f, children: [
570
+ return /* @__PURE__ */ I(Z.Root, { open: l, onOpenChange: p, children: [
570
571
  /* @__PURE__ */ n(Z.Trigger, { asChild: !0, children: /* @__PURE__ */ n(
571
- _,
572
+ V,
572
573
  {
573
574
  type: "button",
574
575
  intent: "outline",
575
- icon: e ?? /* @__PURE__ */ n(xt, { "aria-hidden": !0 }),
576
+ icon: e ?? /* @__PURE__ */ n(wt, { "aria-hidden": !0 }),
576
577
  "aria-label": S,
577
578
  "aria-haspopup": "dialog"
578
579
  }
@@ -585,28 +586,28 @@ const Ke = ({ label: t, icon: e, footer: a, header: r }) => {
585
586
  {
586
587
  className: "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)]",
587
588
  "aria-label": S,
588
- children: i.map((p) => {
589
- const m = c === p.colId, b = y === p.colId && c !== p.colId;
589
+ children: i.map((f) => {
590
+ const m = c === f.colId, b = y === f.colId && c !== f.colId;
590
591
  return /* @__PURE__ */ I(
591
592
  "li",
592
593
  {
593
594
  draggable: !0,
594
595
  onDragStart: (h) => {
595
- d(p.colId), h.dataTransfer.effectAllowed = "move", h.dataTransfer.setData("text/plain", p.colId);
596
+ u(f.colId), h.dataTransfer.effectAllowed = "move", h.dataTransfer.setData("text/plain", f.colId);
596
597
  },
597
598
  onDragOver: (h) => {
598
- h.preventDefault(), h.dataTransfer.dropEffect = "move", g(p.colId);
599
+ h.preventDefault(), h.dataTransfer.dropEffect = "move", g(f.colId);
599
600
  },
600
601
  onDragLeave: () => {
601
- g((h) => h === p.colId ? null : h);
602
+ g((h) => h === f.colId ? null : h);
602
603
  },
603
604
  onDrop: (h) => {
604
605
  h.preventDefault();
605
606
  const w = h.dataTransfer.getData("text/plain");
606
- w && x(w, p.colId), d(null), g(null);
607
+ w && C(w, f.colId), u(null), g(null);
607
608
  },
608
609
  onDragEnd: () => {
609
- d(null), g(null);
610
+ u(null), g(null);
610
611
  },
611
612
  className: [
612
613
  "ds:flex ds:items-center ds:gap-[var(--spacing-xs)] ds:rounded-[var(--radius-sm)] ds:px-[var(--spacing-xs)] ds:py-[var(--spacing-2xs,var(--spacing-xs))] ds:transition-colors",
@@ -619,20 +620,20 @@ const Ke = ({ label: t, icon: e, footer: a, header: r }) => {
619
620
  {
620
621
  "aria-hidden": "true",
621
622
  className: "ds:cursor-grab ds:text-[color:var(--muted-foreground)] ds:active:cursor-grabbing",
622
- children: /* @__PURE__ */ n(Ct, { className: "ds:size-4" })
623
+ children: /* @__PURE__ */ n(Nt, { className: "ds:size-4" })
623
624
  }
624
625
  ),
625
626
  /* @__PURE__ */ n(
626
- Fe,
627
+ Re,
627
628
  {
628
- label: p.displayName,
629
- checked: p.visible,
630
- onCheckedChange: (h) => T(p.colId, h === !0)
629
+ label: f.displayName,
630
+ checked: f.visible,
631
+ onCheckedChange: (h) => T(f.colId, h === !0)
631
632
  }
632
633
  )
633
634
  ]
634
635
  },
635
- p.colId
636
+ f.colId
636
637
  );
637
638
  })
638
639
  }
@@ -641,22 +642,22 @@ const Ke = ({ label: t, icon: e, footer: a, header: r }) => {
641
642
  ] })
642
643
  ] });
643
644
  };
644
- Ke.displayName = "DataTable.Toolbar.ColumnToggle";
645
- const We = L(
645
+ He.displayName = "DataTable.Toolbar.ColumnToggle";
646
+ const Qe = G(
646
647
  ({ label: t, icon: e, onClick: a, variant: r = "default", size: o = "sm", ...s }, l) => {
647
- const { t: f } = N(), { getApi: i, selectionCount: u } = $(
648
+ const { t: p } = F(), { getApi: i, selectionCount: d } = B(
648
649
  "DataTable.Toolbar.BulkAction"
649
650
  );
650
- return u === 0 ? null : /* @__PURE__ */ I(
651
- G,
651
+ return d === 0 ? null : /* @__PURE__ */ I(
652
+ j,
652
653
  {
653
654
  ref: l,
654
655
  type: "button",
655
656
  intent: r === "destructive" ? "destructive" : "secondary",
656
657
  size: o,
657
- startIcon: Pt(e),
658
+ startIcon: qt(e),
658
659
  onClick: () => a(i()),
659
- "aria-label": `${t} (${f("dataTable.bulkAction", { count: u })})`,
660
+ "aria-label": `${t} (${p("dataTable.bulkAction", { count: d })})`,
660
661
  ...s,
661
662
  children: [
662
663
  /* @__PURE__ */ n("span", { children: t }),
@@ -665,7 +666,7 @@ const We = L(
665
666
  {
666
667
  "aria-hidden": "true",
667
668
  className: "ds:ms-[var(--spacing-xs)] ds:opacity-80",
668
- children: f("dataTable.bulkAction", { count: u })
669
+ children: p("dataTable.bulkAction", { count: d })
669
670
  }
670
671
  )
671
672
  ]
@@ -673,32 +674,32 @@ const We = L(
673
674
  );
674
675
  }
675
676
  );
676
- We.displayName = "DataTable.Toolbar.BulkAction";
677
- const _t = Object.assign(_e, {
678
- Item: fe
679
- }), ee = Object.assign(Oe, {
680
- FilterBar: Ee,
681
- Actions: Pe,
677
+ Qe.displayName = "DataTable.Toolbar.BulkAction";
678
+ const Ut = Object.assign(Ue, {
679
+ Item: me
680
+ }), ee = Object.assign(Pe, {
681
+ FilterBar: Me,
682
+ Actions: qe,
682
683
  /** @deprecated Use `Toolbar.ExportMenu` with a `csv` item. */
683
- ExportCsv: ze,
684
+ ExportCsv: Le,
684
685
  /** @deprecated Use `Toolbar.ExportMenu` with a `pdf` item. */
685
- ExportPdf: qe,
686
- Print: je,
687
- ColumnToggle: Ke,
688
- BulkAction: We,
689
- QuickSearch: Ge,
690
- Refresh: Le,
691
- FilterChips: $e,
692
- FacetFilter: Be,
693
- ExportMenu: _t
694
- }), Kt = [
686
+ ExportPdf: Ge,
687
+ Print: Be,
688
+ ColumnToggle: He,
689
+ BulkAction: Qe,
690
+ QuickSearch: $e,
691
+ Refresh: _e,
692
+ FilterChips: Ve,
693
+ FacetFilter: We,
694
+ ExportMenu: Ut
695
+ }), Ht = [
695
696
  "contains",
696
697
  "equals",
697
698
  "startsWith",
698
699
  "endsWith",
699
700
  "notContains"
700
701
  ];
701
- function Wt(t) {
702
+ function Qt(t) {
702
703
  const e = new Intl.Collator(t, {
703
704
  sensitivity: "base",
704
705
  usage: "search"
@@ -721,20 +722,20 @@ function Wt(t) {
721
722
  ) === 0
722
723
  };
723
724
  }
724
- function Ut(t) {
725
+ function Jt(t) {
725
726
  return t == null ? null : typeof t == "string" ? t : String(t);
726
727
  }
727
- function Ht(t) {
728
- const { model: e, onModelChange: a, getValue: r, placeholder: o, defaultOperator: s } = t, { t: l } = N("ui"), f = (e == null ? void 0 : e.type) ?? s ?? "contains", [i, u] = D(f), [c, d] = D((e == null ? void 0 : e.filter) ?? "");
729
- P(() => {
730
- u((e == null ? void 0 : e.type) ?? s ?? "contains"), d((e == null ? void 0 : e.filter) ?? "");
728
+ function Xt(t) {
729
+ const { model: e, onModelChange: a, getValue: r, placeholder: o, defaultOperator: s } = t, { t: l } = F("ui"), p = (e == null ? void 0 : e.type) ?? s ?? "contains", [i, d] = R(p), [c, u] = R((e == null ? void 0 : e.filter) ?? "");
730
+ z(() => {
731
+ d((e == null ? void 0 : e.type) ?? s ?? "contains"), u((e == null ? void 0 : e.filter) ?? "");
731
732
  }, [e, s]);
732
- const y = A(() => Wt(Ft.language), []);
733
+ const y = E(() => Qt(Dt.language), []);
733
734
  X({
734
- doesFilterPass: (p) => {
735
+ doesFilterPass: (f) => {
735
736
  const m = e;
736
737
  if (!m || m.filter === "") return !0;
737
- const b = Ut(r(p.node));
738
+ const b = Jt(r(f.node));
738
739
  if (b === null) return !1;
739
740
  switch (m.type) {
740
741
  case "equals":
@@ -760,12 +761,12 @@ function Ht(t) {
760
761
  a({ type: i, filter: c });
761
762
  }
762
763
  function T() {
763
- d(""), u(s ?? "contains"), a(null);
764
+ u(""), d(s ?? "contains"), a(null);
764
765
  }
765
- const x = Kt.map(
766
- (p) => ({
767
- value: p,
768
- label: l(`dataTable.textFilter.operators.${p}`)
766
+ const C = Ht.map(
767
+ (f) => ({
768
+ value: f,
769
+ label: l(`dataTable.textFilter.operators.${f}`)
769
770
  })
770
771
  ), S = o ?? l("dataTable.textFilter.placeholder");
771
772
  return /* @__PURE__ */ I(
@@ -775,45 +776,45 @@ function Ht(t) {
775
776
  className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)] ds:p-[var(--spacing-sm)] ds:min-w-[240px]",
776
777
  children: [
777
778
  /* @__PURE__ */ n(
778
- Re,
779
+ ke,
779
780
  {
780
781
  size: "sm",
781
- options: x,
782
+ options: C,
782
783
  value: i,
783
- onValueChange: (p) => {
784
- p !== "" && u(p);
784
+ onValueChange: (f) => {
785
+ f !== "" && d(f);
785
786
  },
786
787
  "aria-label": l("dataTable.textFilter.operators.contains")
787
788
  }
788
789
  ),
789
790
  /* @__PURE__ */ n(
790
- ue,
791
+ pe,
791
792
  {
792
793
  size: "sm",
793
794
  value: c,
794
- onChange: (p) => d(p.target.value),
795
- onKeyDown: (p) => {
796
- p.key === "Enter" && (p.preventDefault(), g());
795
+ onChange: (f) => u(f.target.value),
796
+ onKeyDown: (f) => {
797
+ f.key === "Enter" && (f.preventDefault(), g());
797
798
  },
798
799
  placeholder: S,
799
800
  "aria-label": S,
800
- startAdornment: /* @__PURE__ */ n(pe, { "aria-hidden": "true", className: "ds:size-4" })
801
+ startAdornment: /* @__PURE__ */ n(fe, { "aria-hidden": "true", className: "ds:size-4" })
801
802
  }
802
803
  ),
803
804
  /* @__PURE__ */ I("div", { className: "ds:flex ds:items-center ds:justify-end ds:gap-[var(--spacing-xs)] ds:pt-[var(--spacing-xs)] ds:border-t ds:border-[var(--border)]", children: [
804
- /* @__PURE__ */ n(G, { intent: "ghost", size: "sm", onClick: T, type: "button", children: l("dataTable.textFilter.clear") }),
805
- /* @__PURE__ */ n(G, { intent: "primary", size: "sm", onClick: g, type: "button", children: l("dataTable.textFilter.apply") })
805
+ /* @__PURE__ */ n(j, { intent: "ghost", size: "sm", onClick: T, type: "button", children: l("dataTable.textFilter.clear") }),
806
+ /* @__PURE__ */ n(j, { intent: "primary", size: "sm", onClick: g, type: "button", children: l("dataTable.textFilter.apply") })
806
807
  ] })
807
808
  ]
808
809
  }
809
810
  );
810
811
  }
811
- function Qt(t) {
812
- var d, y;
813
- const { model: e, onModelChange: a, column: r } = t, { t: o } = N("ui"), s = ((y = (d = r == null ? void 0 : r.getColDef) == null ? void 0 : d.call(r)) == null ? void 0 : y.filterParams) ?? {}, l = s.defaultOperator ?? "contains", f = s.placeholder ?? o("dataTable.textFilter.placeholder"), [i, u] = D((e == null ? void 0 : e.filter) ?? "");
814
- P(() => {
815
- u((e == null ? void 0 : e.filter) ?? "");
816
- }, [e == null ? void 0 : e.filter]), P(() => {
812
+ function Zt(t) {
813
+ var u, y;
814
+ const { model: e, onModelChange: a, column: r } = t, { t: o } = F("ui"), s = ((y = (u = r == null ? void 0 : r.getColDef) == null ? void 0 : u.call(r)) == null ? void 0 : y.filterParams) ?? {}, l = s.defaultOperator ?? "contains", p = s.placeholder ?? o("dataTable.textFilter.placeholder"), [i, d] = R((e == null ? void 0 : e.filter) ?? "");
815
+ z(() => {
816
+ d((e == null ? void 0 : e.filter) ?? "");
817
+ }, [e == null ? void 0 : e.filter]), z(() => {
817
818
  if (i === ((e == null ? void 0 : e.filter) ?? "")) return;
818
819
  const g = setTimeout(() => {
819
820
  if (i === "") {
@@ -825,17 +826,17 @@ function Qt(t) {
825
826
  return () => clearTimeout(g);
826
827
  }, [i, l, e, a]);
827
828
  function c() {
828
- u(""), e && a(null);
829
+ d(""), e && a(null);
829
830
  }
830
831
  return /* @__PURE__ */ n("div", { "data-component": "text-floating-filter", className: "ds:w-full", children: /* @__PURE__ */ n(
831
- ue,
832
+ pe,
832
833
  {
833
834
  size: "sm",
834
835
  value: i,
835
- onChange: (g) => u(g.target.value),
836
- placeholder: f,
837
- "aria-label": f,
838
- startAdornment: /* @__PURE__ */ n(pe, { "aria-hidden": "true", className: "ds:size-4" }),
836
+ onChange: (g) => d(g.target.value),
837
+ placeholder: p,
838
+ "aria-label": p,
839
+ startAdornment: /* @__PURE__ */ n(fe, { "aria-hidden": "true", className: "ds:size-4" }),
839
840
  endAdornment: i.length > 0 ? /* @__PURE__ */ n(
840
841
  "button",
841
842
  {
@@ -843,13 +844,13 @@ function Qt(t) {
843
844
  "aria-label": o("dataTable.textFilter.clear"),
844
845
  onClick: c,
845
846
  className: "ds:pointer-events-auto ds:flex ds:items-center ds:text-[var(--muted-foreground)] ds:hover:text-[var(--foreground)] ds:transition-colors ds:duration-[var(--animation-duration)] ds:motion-reduce:transition-none",
846
- children: /* @__PURE__ */ n(Ne, { "aria-hidden": "true", className: "ds:size-4" })
847
+ children: /* @__PURE__ */ n(De, { "aria-hidden": "true", className: "ds:size-4" })
847
848
  }
848
849
  ) : void 0
849
850
  }
850
851
  ) });
851
852
  }
852
- const Jt = {
853
+ const Yt = {
853
854
  id: "data-table",
854
855
  capabilities: [
855
856
  "select_single",
@@ -1041,8 +1042,8 @@ const Jt = {
1041
1042
  }
1042
1043
  }
1043
1044
  };
1044
- vt.registerModules([Tt]);
1045
- const Xt = bt("ag-theme-alfadocs ds:w-full", {
1045
+ Ct.registerModules([xt]);
1046
+ const ea = Tt("ag-theme-alfadocs ds:w-full", {
1046
1047
  variants: {
1047
1048
  density: {
1048
1049
  default: "",
@@ -1059,9 +1060,9 @@ const Xt = bt("ag-theme-alfadocs ds:w-full", {
1059
1060
  bordered: !0
1060
1061
  }
1061
1062
  });
1062
- function Zt() {
1063
- const { t } = N();
1064
- return A(
1063
+ function ta() {
1064
+ const { t } = F();
1065
+ return E(
1065
1066
  () => ({
1066
1067
  // Filter strings
1067
1068
  contains: t("dataTable.agGrid.contains"),
@@ -1093,7 +1094,7 @@ function Zt() {
1093
1094
  [t]
1094
1095
  );
1095
1096
  }
1096
- function Yt() {
1097
+ function aa() {
1097
1098
  return /* @__PURE__ */ n(
1098
1099
  "div",
1099
1100
  {
@@ -1101,7 +1102,7 @@ function Yt() {
1101
1102
  "aria-live": "polite",
1102
1103
  className: "ds:flex ds:w-full ds:flex-col ds:gap-[var(--spacing-sm)] ds:p-[var(--spacing-md)]",
1103
1104
  children: Array.from({ length: 5 }).map((t, e) => /* @__PURE__ */ n(
1104
- mt,
1105
+ ht,
1105
1106
  {
1106
1107
  variant: "rectangular",
1107
1108
  className: "ds:h-[var(--min-target-size)] ds:w-full"
@@ -1111,10 +1112,10 @@ function Yt() {
1111
1112
  }
1112
1113
  );
1113
1114
  }
1114
- function ea() {
1115
- const { t } = N();
1115
+ function ra() {
1116
+ const { t } = F();
1116
1117
  return /* @__PURE__ */ n(
1117
- gt,
1118
+ vt,
1118
1119
  {
1119
1120
  variant: "no-results",
1120
1121
  size: "sm",
@@ -1123,7 +1124,7 @@ function ea() {
1123
1124
  }
1124
1125
  );
1125
1126
  }
1126
- function ta(t) {
1127
+ function na(t) {
1127
1128
  try {
1128
1129
  const e = localStorage.getItem(`data-table-col-state:${t}`);
1129
1130
  return e ? JSON.parse(e) : null;
@@ -1131,7 +1132,7 @@ function ta(t) {
1131
1132
  return null;
1132
1133
  }
1133
1134
  }
1134
- function aa(t, e) {
1135
+ function oa(t, e) {
1135
1136
  try {
1136
1137
  localStorage.setItem(
1137
1138
  `data-table-col-state:${t}`,
@@ -1140,143 +1141,143 @@ function aa(t, e) {
1140
1141
  } catch {
1141
1142
  }
1142
1143
  }
1143
- function ra(t, e) {
1144
+ function sa(t, e) {
1144
1145
  const {
1145
1146
  columnDefs: a,
1146
1147
  rowData: r,
1147
1148
  rowSelection: o,
1148
1149
  pagination: s = !1,
1149
1150
  paginationPageSize: l = 25,
1150
- paginationPageSizeSelector: f = [10, 25, 50, 100],
1151
+ paginationPageSizeSelector: p = [10, 25, 50, 100],
1151
1152
  gridId: i,
1152
- onSelectionChanged: u,
1153
+ onSelectionChanged: d,
1153
1154
  onSortChanged: c,
1154
- onFilterChanged: d,
1155
+ onFilterChanged: u,
1155
1156
  noRowsOverlay: y,
1156
1157
  loadingOverlay: g,
1157
1158
  gridOptions: T,
1158
- density: x,
1159
+ density: C,
1159
1160
  bordered: S,
1160
- heightClass: p = "ds:h-[500px]",
1161
+ heightClass: f = "ds:h-[500px]",
1161
1162
  className: m,
1162
1163
  getRowClass: b,
1163
1164
  pinnedBottomRowData: h,
1164
1165
  printMode: w = !1,
1165
- children: O
1166
- } = t, { t: k, i18n: B } = N(), R = ye(null), [K, He] = D(0), [ne, oe] = D(""), Qe = Zt(), se = A(
1166
+ children: A
1167
+ } = t, { t: k, i18n: $ } = F(), D = xe(null), [W, Xe] = R(0), [ne, oe] = R(""), Ze = ta(), se = E(
1167
1168
  () => ({
1168
1169
  getSelection: () => {
1169
- var F;
1170
- const v = (F = R.current) == null ? void 0 : F.api;
1170
+ var N;
1171
+ const v = (N = D.current) == null ? void 0 : N.api;
1171
1172
  if (!v) return [];
1172
- const C = [];
1173
- for (const z of v.getSelectedNodes())
1174
- z.id != null && C.push(z.id);
1175
- return C;
1173
+ const x = [];
1174
+ for (const P of v.getSelectedNodes())
1175
+ P.id != null && x.push(P.id);
1176
+ return x;
1176
1177
  },
1177
1178
  setSelection: (v) => {
1178
- var z;
1179
- const C = (z = R.current) == null ? void 0 : z.api;
1180
- if (!C) return;
1181
- const F = new Set(v);
1182
- C.forEachNode((E) => {
1183
- E.id != null && E.setSelected(F.has(E.id));
1179
+ var P;
1180
+ const x = (P = D.current) == null ? void 0 : P.api;
1181
+ if (!x) return;
1182
+ const N = new Set(v);
1183
+ x.forEachNode((O) => {
1184
+ O.id != null && O.setSelected(N.has(O.id));
1184
1185
  });
1185
1186
  },
1186
- selectRange: (v, C) => {
1187
- var ge;
1188
- const F = (ge = R.current) == null ? void 0 : ge.api;
1189
- if (!F) return;
1190
- const z = [];
1191
- F.forEachNodeAfterFilterAndSort((U) => {
1192
- U.id != null && z.push(U.id);
1187
+ selectRange: (v, x) => {
1188
+ var be;
1189
+ const N = (be = D.current) == null ? void 0 : be.api;
1190
+ if (!N) return;
1191
+ const P = [];
1192
+ N.forEachNodeAfterFilterAndSort((U) => {
1193
+ U.id != null && P.push(U.id);
1193
1194
  });
1194
- const E = z.indexOf(v), q = z.indexOf(C);
1195
- if (E < 0 || q < 0) return;
1196
- const [W, ie] = E <= q ? [E, q] : [q, E], ce = new Set(z.slice(W, ie + 1));
1197
- F.forEachNode((U) => {
1195
+ const O = P.indexOf(v), q = P.indexOf(x);
1196
+ if (O < 0 || q < 0) return;
1197
+ const [K, ie] = O <= q ? [O, q] : [q, O], ce = new Set(P.slice(K, ie + 1));
1198
+ N.forEachNode((U) => {
1198
1199
  U.id != null && U.setSelected(ce.has(U.id));
1199
1200
  });
1200
1201
  },
1201
1202
  clearSelection: () => {
1202
- var v, C;
1203
- (C = (v = R.current) == null ? void 0 : v.api) == null || C.deselectAll();
1203
+ var v, x;
1204
+ (x = (v = D.current) == null ? void 0 : v.api) == null || x.deselectAll();
1204
1205
  },
1205
1206
  getFilter: () => {
1206
- var v, C;
1207
- return ((C = (v = R.current) == null ? void 0 : v.api) == null ? void 0 : C.getFilterModel()) ?? {};
1207
+ var v, x;
1208
+ return ((x = (v = D.current) == null ? void 0 : v.api) == null ? void 0 : x.getFilterModel()) ?? {};
1208
1209
  },
1209
1210
  setFilter: (v) => {
1210
- var C, F;
1211
- (F = (C = R.current) == null ? void 0 : C.api) == null || F.setFilterModel(v);
1211
+ var x, N;
1212
+ (N = (x = D.current) == null ? void 0 : x.api) == null || N.setFilterModel(v);
1212
1213
  },
1213
1214
  getSort: () => {
1214
- var C;
1215
- const v = (C = R.current) == null ? void 0 : C.api;
1216
- return v ? v.getColumnState().filter((F) => F.sort === "asc" || F.sort === "desc").map((F) => ({ colId: F.colId, sort: F.sort })) : [];
1215
+ var x;
1216
+ const v = (x = D.current) == null ? void 0 : x.api;
1217
+ return v ? v.getColumnState().filter((N) => N.sort === "asc" || N.sort === "desc").map((N) => ({ colId: N.colId, sort: N.sort })) : [];
1217
1218
  },
1218
1219
  setSort: (v) => {
1219
- var z;
1220
- const C = (z = R.current) == null ? void 0 : z.api;
1221
- if (!C) return;
1222
- const F = C.getColumnState().map((E) => {
1223
- const q = v.find((W) => W.colId === E.colId);
1224
- return { ...E, sort: q ? q.sort : null };
1220
+ var P;
1221
+ const x = (P = D.current) == null ? void 0 : P.api;
1222
+ if (!x) return;
1223
+ const N = x.getColumnState().map((O) => {
1224
+ const q = v.find((K) => K.colId === O.colId);
1225
+ return { ...O, sort: q ? q.sort : null };
1225
1226
  });
1226
- C.applyColumnState({ state: F, defaultState: { sort: null } });
1227
+ x.applyColumnState({ state: N, defaultState: { sort: null } });
1227
1228
  },
1228
1229
  getCurrentPage: () => {
1229
- var v, C;
1230
- return ((C = (v = R.current) == null ? void 0 : v.api) == null ? void 0 : C.paginationGetCurrentPage()) ?? 0;
1230
+ var v, x;
1231
+ return ((x = (v = D.current) == null ? void 0 : v.api) == null ? void 0 : x.paginationGetCurrentPage()) ?? 0;
1231
1232
  },
1232
1233
  goToPage: (v) => {
1233
- var C, F;
1234
- (F = (C = R.current) == null ? void 0 : C.api) == null || F.paginationGoToPage(v);
1234
+ var x, N;
1235
+ (N = (x = D.current) == null ? void 0 : x.api) == null || N.paginationGoToPage(v);
1235
1236
  },
1236
1237
  getRawApi: () => {
1237
1238
  var v;
1238
- return (v = R.current) == null ? void 0 : v.api;
1239
+ return (v = D.current) == null ? void 0 : v.api;
1239
1240
  }
1240
1241
  }),
1241
1242
  []
1242
1243
  );
1243
- ft(e, () => se, [se]), Nt(Jt, se, i);
1244
- const Je = B.dir() === "rtl", Xe = r === void 0, Ze = Dt(), { resolvedTheme: me } = Rt(), Ye = (me === "light-accessible" || me === "dark-accessible") && x === "compact" ? "default" : x, et = A(() => {
1244
+ bt(e, () => se, [se]), It(Yt, se, i);
1245
+ const Ye = $.dir() === "rtl", et = r === void 0, tt = kt(), { resolvedTheme: ge } = Et(), at = (ge === "light-accessible" || ge === "dark-accessible") && C === "compact" ? "default" : C, rt = E(() => {
1245
1246
  if (o)
1246
1247
  return o === "single" ? { mode: "singleRow" } : {
1247
1248
  mode: "multiRow",
1248
1249
  headerCheckbox: !0,
1249
1250
  checkboxes: !0
1250
1251
  };
1251
- }, [o]), tt = M(() => {
1252
- var C;
1253
- if (!i || !((C = R.current) != null && C.api)) return;
1254
- const v = ta(i);
1255
- v && R.current.api.applyColumnState({
1252
+ }, [o]), nt = M(() => {
1253
+ var x;
1254
+ if (!i || !((x = D.current) != null && x.api)) return;
1255
+ const v = na(i);
1256
+ v && D.current.api.applyColumnState({
1256
1257
  state: v,
1257
1258
  applyOrder: !0
1258
1259
  });
1259
1260
  }, [i]), le = M(() => {
1260
1261
  var v;
1261
- i && ((v = R.current) != null && v.api) && aa(i, R.current.api);
1262
- }, [i]), at = A(() => {
1262
+ i && ((v = D.current) != null && v.api) && oa(i, D.current.api);
1263
+ }, [i]), ot = E(() => {
1263
1264
  if (!T) return;
1264
1265
  const v = { ...T };
1265
1266
  return delete v.defaultColDef, v;
1266
- }, [T]), rt = M(() => {
1267
- var F;
1268
- const v = (F = R.current) == null ? void 0 : F.api;
1267
+ }, [T]), st = M(() => {
1268
+ var N;
1269
+ const v = (N = D.current) == null ? void 0 : N.api;
1269
1270
  if (!v) return;
1270
- const C = v.getSelectedRows();
1271
- He(C.length), u == null || u(C);
1272
- }, [u]), nt = M(
1271
+ const x = v.getSelectedRows();
1272
+ Xe(x.length), d == null || d(x);
1273
+ }, [d]), lt = M(
1273
1274
  (v) => {
1274
- var F;
1275
- const C = (F = R.current) == null ? void 0 : F.api;
1276
- if (C) {
1277
- const E = C.getColumnState().find((q) => q.sort);
1278
- if (E) {
1279
- const q = E.colId, W = C.getColumnDef(q), ie = (W == null ? void 0 : W.headerName) ?? q, ce = E.sort === "asc" ? "dataTable.sortAscending" : "dataTable.sortDescending";
1275
+ var N;
1276
+ const x = (N = D.current) == null ? void 0 : N.api;
1277
+ if (x) {
1278
+ const O = x.getColumnState().find((q) => q.sort);
1279
+ if (O) {
1280
+ const q = O.colId, K = x.getColumnDef(q), ie = (K == null ? void 0 : K.headerName) ?? q, ce = O.sort === "asc" ? "dataTable.sortAscending" : "dataTable.sortDescending";
1280
1281
  oe(
1281
1282
  k("dataTable.sortAnnounce", {
1282
1283
  column: ie,
@@ -1289,56 +1290,56 @@ function ra(t, e) {
1289
1290
  c == null || c(v);
1290
1291
  },
1291
1292
  [c, k]
1292
- ), ot = M(
1293
+ ), it = M(
1293
1294
  (v) => {
1294
- d == null || d(v);
1295
+ u == null || u(v);
1295
1296
  },
1296
- [d]
1297
+ [u]
1297
1298
  );
1298
- P(() => {
1299
+ z(() => {
1299
1300
  if (!ne) return;
1300
1301
  const v = setTimeout(() => oe(""), 3e3);
1301
1302
  return () => clearTimeout(v);
1302
1303
  }, [ne]);
1303
- const st = y ?? ea, lt = g ?? Yt, it = M(
1304
+ const ct = y ?? ra, dt = g ?? aa, ut = M(
1304
1305
  () => {
1305
1306
  var v;
1306
- return (v = R.current) == null ? void 0 : v.api;
1307
+ return (v = D.current) == null ? void 0 : v.api;
1307
1308
  },
1308
1309
  []
1309
- ), ct = M(() => {
1310
+ ), pt = M(() => {
1310
1311
  typeof window < "u" && window.print();
1311
- }, []), dt = Xt({
1312
- density: Ye,
1312
+ }, []), ft = ea({
1313
+ density: at,
1313
1314
  bordered: S,
1314
1315
  className: m
1315
- }), ut = O ?? /* @__PURE__ */ n(ee, { children: /* @__PURE__ */ n(ee.Actions, { children: /* @__PURE__ */ n(ee.ExportMenu, {}) }) }), pt = w ? !1 : s;
1316
+ }), mt = A ?? /* @__PURE__ */ n(ee, { children: /* @__PURE__ */ n(ee.Actions, { children: /* @__PURE__ */ n(ee.ExportMenu, {}) }) }), gt = w ? !1 : s;
1316
1317
  return /* @__PURE__ */ I(
1317
1318
  "div",
1318
1319
  {
1319
1320
  className: "ds:flex ds:w-full ds:min-h-0 ds:flex-1 ds:flex-col ds:gap-[var(--spacing-sm)]",
1320
- "aria-busy": Xe ? "true" : void 0,
1321
+ "aria-busy": et ? "true" : void 0,
1321
1322
  "data-component": "data-table",
1322
1323
  "data-component-id": i,
1323
1324
  "data-print-mode": w ? "true" : void 0,
1324
1325
  children: [
1325
1326
  !w && /* @__PURE__ */ n(
1326
- zt,
1327
+ Lt,
1327
1328
  {
1328
- getApi: it,
1329
- selectionCount: K,
1330
- onPrint: ct,
1331
- children: ut
1329
+ getApi: ut,
1330
+ selectionCount: W,
1331
+ onPrint: pt,
1332
+ children: mt
1332
1333
  }
1333
1334
  ),
1334
1335
  /* @__PURE__ */ n(
1335
1336
  "div",
1336
1337
  {
1337
- className: [dt, w ? "" : p].join(" ").trim(),
1338
+ className: [ft, w ? "" : f].join(" ").trim(),
1338
1339
  children: /* @__PURE__ */ n(
1339
- ht,
1340
+ yt,
1340
1341
  {
1341
- ref: R,
1342
+ ref: D,
1342
1343
  theme: "legacy",
1343
1344
  columnDefs: a,
1344
1345
  rowData: r,
@@ -1349,8 +1350,8 @@ function ra(t, e) {
1349
1350
  // language instead of AG Grid's stock browser-skinned input.
1350
1351
  // Number / date / select columns opt into their dedicated
1351
1352
  // wrapper per-column.
1352
- filter: Ht,
1353
- floatingFilterComponent: Qt,
1353
+ filter: Xt,
1354
+ floatingFilterComponent: Zt,
1354
1355
  resizable: !0,
1355
1356
  floatingFilter: !0,
1356
1357
  // §13d — faint sort icon advertises which columns are
@@ -1358,13 +1359,13 @@ function ra(t, e) {
1358
1359
  unSortIcon: !0,
1359
1360
  ...T == null ? void 0 : T.defaultColDef
1360
1361
  },
1361
- rowSelection: et,
1362
- pagination: pt,
1362
+ rowSelection: rt,
1363
+ pagination: gt,
1363
1364
  paginationPageSize: l,
1364
- paginationPageSizeSelector: f,
1365
- paginationNumberFormatter: (v) => new Intl.NumberFormat(B.language).format(v.value),
1366
- animateRows: !Ze,
1367
- enableRtl: Je,
1365
+ paginationPageSizeSelector: p,
1366
+ paginationNumberFormatter: (v) => new Intl.NumberFormat($.language).format(v.value),
1367
+ animateRows: !tt,
1368
+ enableRtl: Ye,
1368
1369
  ensureDomOrder: !0,
1369
1370
  enableCellSpan: !0,
1370
1371
  enableCellTextSelection: !0,
@@ -1382,64 +1383,64 @@ function ra(t, e) {
1382
1383
  undoRedoCellEditingLimit: 20,
1383
1384
  suppressCellFocus: !1,
1384
1385
  rowBuffer: 10,
1385
- localeText: Qe,
1386
- noRowsOverlayComponent: st,
1387
- loadingOverlayComponent: lt,
1386
+ localeText: Ze,
1387
+ noRowsOverlayComponent: ct,
1388
+ loadingOverlayComponent: dt,
1388
1389
  getRowClass: b,
1389
1390
  pinnedBottomRowData: h,
1390
1391
  domLayout: w ? "autoHeight" : void 0,
1391
- onGridReady: tt,
1392
+ onGridReady: nt,
1392
1393
  onColumnMoved: le,
1393
1394
  onColumnResized: le,
1394
1395
  onColumnPinned: le,
1395
- onSortChanged: nt,
1396
- onFilterChanged: ot,
1397
- onSelectionChanged: rt,
1398
- ...at
1396
+ onSortChanged: lt,
1397
+ onFilterChanged: it,
1398
+ onSelectionChanged: st,
1399
+ ...ot
1399
1400
  }
1400
1401
  )
1401
1402
  }
1402
1403
  ),
1403
- !w && /* @__PURE__ */ n("div", { className: "ds:flex ds:items-center ds:justify-between type-body-sm ds:text-[color:var(--muted-foreground)]", children: K > 0 ? /* @__PURE__ */ n("span", { children: k("dataTable.selected", { count: K }) }) : /* @__PURE__ */ n("span", {}) }),
1404
+ !w && /* @__PURE__ */ n("div", { className: "ds:flex ds:items-center ds:justify-between type-body-sm ds:text-[color:var(--muted-foreground)]", children: W > 0 ? /* @__PURE__ */ n("span", { children: k("dataTable.selected", { count: W }) }) : /* @__PURE__ */ n("span", {}) }),
1404
1405
  /* @__PURE__ */ n("span", { role: "status", "aria-live": "polite", className: "ds:sr-only", children: ne })
1405
1406
  ]
1406
1407
  }
1407
1408
  );
1408
1409
  }
1409
- const Ue = L(ra);
1410
- Ue.displayName = "DataTable";
1411
- const Ha = Object.assign(Ue, {
1410
+ const Je = G(sa);
1411
+ Je.displayName = "DataTable";
1412
+ const nr = Object.assign(Je, {
1412
1413
  Toolbar: ee
1413
1414
  });
1414
1415
  function re(t) {
1415
1416
  return t ? t.toISOString().slice(0, 10) : null;
1416
1417
  }
1417
- function j(t) {
1418
+ function L(t) {
1418
1419
  if (!t) return;
1419
1420
  const e = new Date(t);
1420
1421
  return Number.isNaN(e.getTime()) ? void 0 : e;
1421
1422
  }
1422
- function Qa(t) {
1423
- const { model: e, onModelChange: a, getValue: r, doesRowPassOtherFilter: o } = t, [s, l] = D(() => ({
1424
- from: j(e == null ? void 0 : e.dateFrom),
1425
- to: j(e == null ? void 0 : e.dateTo)
1423
+ function or(t) {
1424
+ const { model: e, onModelChange: a, getValue: r, doesRowPassOtherFilter: o } = t, [s, l] = R(() => ({
1425
+ from: L(e == null ? void 0 : e.dateFrom),
1426
+ to: L(e == null ? void 0 : e.dateTo)
1426
1427
  }));
1427
- P(() => {
1428
+ z(() => {
1428
1429
  l({
1429
- from: j(e == null ? void 0 : e.dateFrom),
1430
- to: j(e == null ? void 0 : e.dateTo)
1430
+ from: L(e == null ? void 0 : e.dateFrom),
1431
+ to: L(e == null ? void 0 : e.dateTo)
1431
1432
  });
1432
1433
  }, [e == null ? void 0 : e.dateFrom, e == null ? void 0 : e.dateTo]), X({
1433
1434
  doesFilterPass: (i) => {
1434
- const u = j(e == null ? void 0 : e.dateFrom), c = j(e == null ? void 0 : e.dateTo);
1435
- if (!u && !c) return !0;
1436
- const d = r(i.node);
1437
- if (!d) return !1;
1438
- const y = d instanceof Date ? d : j(String(d));
1439
- return !(!y || u && y < u || c && y > c);
1435
+ const d = L(e == null ? void 0 : e.dateFrom), c = L(e == null ? void 0 : e.dateTo);
1436
+ if (!d && !c) return !0;
1437
+ const u = r(i.node);
1438
+ if (!u) return !1;
1439
+ const y = u instanceof Date ? u : L(String(u));
1440
+ return !(!y || d && y < d || c && y > c);
1440
1441
  }
1441
1442
  });
1442
- function f(i) {
1443
+ function p(i) {
1443
1444
  if (l(i), !i.from && !i.to) {
1444
1445
  a(null);
1445
1446
  return;
@@ -1450,21 +1451,21 @@ function Qa(t) {
1450
1451
  dateTo: re(i.to)
1451
1452
  });
1452
1453
  }
1453
- return /* @__PURE__ */ n("div", { className: "ds:p-[var(--spacing-sm)] ds:min-w-[280px]", children: /* @__PURE__ */ n(Ie, { value: s, onChange: f, size: "sm" }) });
1454
+ return /* @__PURE__ */ n("div", { className: "ds:p-[var(--spacing-sm)] ds:min-w-[280px]", children: /* @__PURE__ */ n(Ee, { value: s, onChange: p, size: "sm" }) });
1454
1455
  }
1455
- function Ja(t) {
1456
- var i, u;
1457
- const { model: e, onModelChange: a, column: r } = t, o = ((u = (i = r == null ? void 0 : r.getColDef) == null ? void 0 : i.call(r)) == null ? void 0 : u.filterParams) ?? {}, [s, l] = D(() => ({
1458
- from: j(e == null ? void 0 : e.dateFrom),
1459
- to: j(e == null ? void 0 : e.dateTo)
1456
+ function sr(t) {
1457
+ var i, d;
1458
+ const { model: e, onModelChange: a, column: r } = t, o = ((d = (i = r == null ? void 0 : r.getColDef) == null ? void 0 : i.call(r)) == null ? void 0 : d.filterParams) ?? {}, [s, l] = R(() => ({
1459
+ from: L(e == null ? void 0 : e.dateFrom),
1460
+ to: L(e == null ? void 0 : e.dateTo)
1460
1461
  }));
1461
- P(() => {
1462
+ z(() => {
1462
1463
  l({
1463
- from: j(e == null ? void 0 : e.dateFrom),
1464
- to: j(e == null ? void 0 : e.dateTo)
1464
+ from: L(e == null ? void 0 : e.dateFrom),
1465
+ to: L(e == null ? void 0 : e.dateTo)
1465
1466
  });
1466
1467
  }, [e == null ? void 0 : e.dateFrom, e == null ? void 0 : e.dateTo]);
1467
- function f(c) {
1468
+ function p(c) {
1468
1469
  if (l(c), !c.from && !c.to) {
1469
1470
  a(null);
1470
1471
  return;
@@ -1476,10 +1477,10 @@ function Ja(t) {
1476
1477
  });
1477
1478
  }
1478
1479
  return /* @__PURE__ */ n("div", { "data-component": "date-range-floating-filter", className: "ds:w-full", children: /* @__PURE__ */ n(
1479
- Ie,
1480
+ Ee,
1480
1481
  {
1481
1482
  value: s,
1482
- onChange: f,
1483
+ onChange: p,
1483
1484
  size: "sm",
1484
1485
  placeholder: o.placeholder
1485
1486
  }
@@ -1488,56 +1489,56 @@ function Ja(t) {
1488
1489
  function H(t) {
1489
1490
  return typeof t == "number" ? `n:${t}` : `s:${t}`;
1490
1491
  }
1491
- function Xa(t) {
1492
- const { model: e, onModelChange: a, getValue: r, api: o, column: s, options: l, placeholder: f } = t, { t: i } = N("ui"), u = A(() => {
1492
+ function lr(t) {
1493
+ const { model: e, onModelChange: a, getValue: r, api: o, column: s, options: l, placeholder: p } = t, { t: i } = F("ui"), d = E(() => {
1493
1494
  if (l && l.length > 0) return l;
1494
1495
  if (!o || !s) return [];
1495
- const p = /* @__PURE__ */ new Map();
1496
+ const f = /* @__PURE__ */ new Map();
1496
1497
  return o.forEachNode((m) => {
1497
1498
  const b = r(m);
1498
1499
  if (b == null) return;
1499
1500
  const h = typeof b == "string" || typeof b == "number" ? b : String(b), w = H(h);
1500
- p.has(w) || p.set(w, { value: h, label: String(h) });
1501
- }), Array.from(p.values()).sort(
1501
+ f.has(w) || f.set(w, { value: h, label: String(h) });
1502
+ }), Array.from(f.values()).sort(
1502
1503
  (m, b) => String(m.label).localeCompare(String(b.label))
1503
1504
  );
1504
- }, [l, o, s, r]), c = A(() => {
1505
- const p = /* @__PURE__ */ new Set(), m = (e == null ? void 0 : e.values) ?? [];
1506
- for (const b of m) p.add(H(b));
1507
- return p;
1508
- }, [e]), [d, y] = D(c);
1509
- P(() => {
1505
+ }, [l, o, s, r]), c = E(() => {
1506
+ const f = /* @__PURE__ */ new Set(), m = (e == null ? void 0 : e.values) ?? [];
1507
+ for (const b of m) f.add(H(b));
1508
+ return f;
1509
+ }, [e]), [u, y] = R(c);
1510
+ z(() => {
1510
1511
  y(c);
1511
1512
  }, [c]), X({
1512
- doesFilterPass: (p) => {
1513
+ doesFilterPass: (f) => {
1513
1514
  const m = e == null ? void 0 : e.values;
1514
1515
  if (!m || m.length === 0) return !0;
1515
- const b = r(p.node);
1516
+ const b = r(f.node);
1516
1517
  if (b == null) return !1;
1517
1518
  const h = typeof b == "string" || typeof b == "number" ? b : String(b), w = H(h);
1518
- return m.some((O) => H(O) === w);
1519
+ return m.some((A) => H(A) === w);
1519
1520
  }
1520
1521
  });
1521
- function g(p) {
1522
+ function g(f) {
1522
1523
  y((m) => {
1523
1524
  const b = new Set(m);
1524
- return b.has(p) ? b.delete(p) : b.add(p), b;
1525
+ return b.has(f) ? b.delete(f) : b.add(f), b;
1525
1526
  });
1526
1527
  }
1527
1528
  function T() {
1528
- if (d.size === 0) {
1529
+ if (u.size === 0) {
1529
1530
  a(null);
1530
1531
  return;
1531
1532
  }
1532
- const p = [];
1533
- for (const m of u)
1534
- d.has(H(m.value)) && p.push(m.value);
1535
- a({ type: "set", values: p });
1533
+ const f = [];
1534
+ for (const m of d)
1535
+ u.has(H(m.value)) && f.push(m.value);
1536
+ a({ type: "set", values: f });
1536
1537
  }
1537
- function x() {
1538
+ function C() {
1538
1539
  y(/* @__PURE__ */ new Set()), a(null);
1539
1540
  }
1540
- const S = f ?? i("dataTable.selectFilter.all");
1541
+ const S = p ?? i("dataTable.selectFilter.all");
1541
1542
  return /* @__PURE__ */ I(
1542
1543
  "div",
1543
1544
  {
@@ -1550,14 +1551,14 @@ function Xa(t) {
1550
1551
  role: "group",
1551
1552
  "aria-label": S,
1552
1553
  className: "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)] ds:max-h-[240px] ds:overflow-y-auto",
1553
- children: u.length === 0 ? /* @__PURE__ */ n("p", { className: "ds:text-[length:var(--font-size-sm)] ds:text-[var(--muted-foreground)] ds:py-[var(--spacing-xs)]", children: i("dataTable.agGrid.noRowsToShow") }) : u.map((p) => {
1554
- const m = H(p.value);
1554
+ children: d.length === 0 ? /* @__PURE__ */ n("p", { className: "ds:text-[length:var(--font-size-sm)] ds:text-[var(--muted-foreground)] ds:py-[var(--spacing-xs)]", children: i("dataTable.agGrid.noRowsToShow") }) : d.map((f) => {
1555
+ const m = H(f.value);
1555
1556
  return /* @__PURE__ */ n(
1556
- Fe,
1557
+ Re,
1557
1558
  {
1558
1559
  size: "sm",
1559
- label: p.label,
1560
- checked: d.has(m),
1560
+ label: f.label,
1561
+ checked: u.has(m),
1561
1562
  onCheckedChange: () => g(m)
1562
1563
  },
1563
1564
  m
@@ -1566,50 +1567,50 @@ function Xa(t) {
1566
1567
  }
1567
1568
  ),
1568
1569
  /* @__PURE__ */ I("div", { className: "ds:flex ds:items-center ds:justify-end ds:gap-[var(--spacing-xs)] ds:pt-[var(--spacing-xs)] ds:border-t ds:border-[var(--border)]", children: [
1569
- /* @__PURE__ */ n(G, { intent: "ghost", size: "sm", onClick: x, type: "button", children: i("dataTable.selectFilter.clear") }),
1570
- /* @__PURE__ */ n(G, { intent: "primary", size: "sm", onClick: T, type: "button", children: i("dataTable.selectFilter.apply") })
1570
+ /* @__PURE__ */ n(j, { intent: "ghost", size: "sm", onClick: C, type: "button", children: i("dataTable.selectFilter.clear") }),
1571
+ /* @__PURE__ */ n(j, { intent: "primary", size: "sm", onClick: T, type: "button", children: i("dataTable.selectFilter.apply") })
1571
1572
  ] })
1572
1573
  ]
1573
1574
  }
1574
1575
  );
1575
1576
  }
1576
- function Za(t) {
1577
+ function ir(t) {
1577
1578
  var y;
1578
- const { model: e, onModelChange: a, column: r } = t, o = (y = r == null ? void 0 : r.getColDef) == null ? void 0 : y.call(r), s = (o == null ? void 0 : o.filterParams) ?? {}, l = s.options ?? [], f = s.placeholder ?? (typeof (o == null ? void 0 : o.headerName) == "string" ? o.headerName : void 0), i = A(() => {
1579
+ const { model: e, onModelChange: a, column: r } = t, o = (y = r == null ? void 0 : r.getColDef) == null ? void 0 : y.call(r), s = (o == null ? void 0 : o.filterParams) ?? {}, l = s.options ?? [], p = s.placeholder ?? (typeof (o == null ? void 0 : o.headerName) == "string" ? o.headerName : void 0), i = E(() => {
1579
1580
  const g = /* @__PURE__ */ new Map();
1580
1581
  for (const T of l) g.set(String(T.value), T.value);
1581
1582
  return g;
1582
- }, [l]), u = A(
1583
+ }, [l]), d = E(
1583
1584
  () => l.map((g) => ({
1584
1585
  value: String(g.value),
1585
1586
  label: g.label
1586
1587
  })),
1587
1588
  [l]
1588
- ), c = A(
1589
+ ), c = E(
1589
1590
  () => ((e == null ? void 0 : e.values) ?? []).map((g) => String(g)),
1590
1591
  [e]
1591
1592
  );
1592
- function d(g) {
1593
+ function u(g) {
1593
1594
  if (g.length === 0) {
1594
1595
  a(null);
1595
1596
  return;
1596
1597
  }
1597
1598
  const T = [];
1598
- for (const x of g) {
1599
- const S = i.get(x);
1599
+ for (const C of g) {
1600
+ const S = i.get(C);
1600
1601
  S !== void 0 && T.push(S);
1601
1602
  }
1602
1603
  a({ type: "set", values: T });
1603
1604
  }
1604
1605
  return /* @__PURE__ */ n("div", { "data-component": "select-floating-filter", className: "ds:w-full", children: /* @__PURE__ */ n(
1605
- It,
1606
+ At,
1606
1607
  {
1607
1608
  size: "sm",
1608
- options: u,
1609
+ options: d,
1609
1610
  value: c,
1610
- onChange: d,
1611
+ onChange: u,
1611
1612
  placeholder: s.placeholder,
1612
- "aria-label": f,
1613
+ "aria-label": p,
1613
1614
  allowClear: !0
1614
1615
  }
1615
1616
  ) });
@@ -1617,7 +1618,7 @@ function Za(t) {
1617
1618
  function J(t) {
1618
1619
  return t.trim().toLocaleLowerCase();
1619
1620
  }
1620
- function Ya(t) {
1621
+ function cr(t) {
1621
1622
  const {
1622
1623
  model: e,
1623
1624
  onModelChange: a,
@@ -1625,9 +1626,9 @@ function Ya(t) {
1625
1626
  api: o,
1626
1627
  column: s,
1627
1628
  options: l,
1628
- loadOptions: f,
1629
+ loadOptions: p,
1629
1630
  placeholder: i
1630
- } = t, { t: u } = N("ui"), c = A(() => {
1631
+ } = t, { t: d } = F("ui"), c = E(() => {
1631
1632
  if (l && l.length > 0) return l;
1632
1633
  if (!o || !s) return [];
1633
1634
  const m = /* @__PURE__ */ new Map();
@@ -1639,13 +1640,13 @@ function Ya(t) {
1639
1640
  }), Array.from(m.values()).sort(
1640
1641
  (b, h) => b.label.localeCompare(h.label)
1641
1642
  );
1642
- }, [l, o, s, r]), d = A(() => async (m, b) => {
1643
- if (f)
1644
- return (await f(m, b)).map((k) => ({ value: k.value, label: k.label }));
1643
+ }, [l, o, s, r]), u = E(() => async (m, b) => {
1644
+ if (p)
1645
+ return (await p(m, b)).map((k) => ({ value: k.value, label: k.label }));
1645
1646
  const h = J(m);
1646
- return (h ? c.filter((O) => J(O.label).includes(h)) : c).slice(0, 50).map((O) => ({ value: O.value, label: O.label }));
1647
- }, [f, c]), [y, g] = D((e == null ? void 0 : e.value) ?? "");
1648
- P(() => {
1647
+ return (h ? c.filter((A) => J(A.label).includes(h)) : c).slice(0, 50).map((A) => ({ value: A.value, label: A.label }));
1648
+ }, [p, c]), [y, g] = R((e == null ? void 0 : e.value) ?? "");
1649
+ z(() => {
1649
1650
  g((e == null ? void 0 : e.value) ?? "");
1650
1651
  }, [e == null ? void 0 : e.value]), X({
1651
1652
  doesFilterPass: (m) => {
@@ -1660,13 +1661,13 @@ function Ya(t) {
1660
1661
  function T(m) {
1661
1662
  g(m.label), a({ type: "equals", value: m.value });
1662
1663
  }
1663
- function x(m) {
1664
+ function C(m) {
1664
1665
  g(m), m === "" && e && a(null);
1665
1666
  }
1666
1667
  function S() {
1667
1668
  g(""), a(null);
1668
1669
  }
1669
- const p = i ?? u("dataTable.typeaheadFilter.placeholder");
1670
+ const f = i ?? d("dataTable.typeaheadFilter.placeholder");
1670
1671
  return /* @__PURE__ */ I(
1671
1672
  "div",
1672
1673
  {
@@ -1674,53 +1675,53 @@ function Ya(t) {
1674
1675
  className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)] ds:p-[var(--spacing-sm)] ds:min-w-[240px]",
1675
1676
  children: [
1676
1677
  /* @__PURE__ */ n(
1677
- ke,
1678
+ Ae,
1678
1679
  {
1679
1680
  size: "sm",
1680
1681
  value: y,
1681
- onChange: x,
1682
+ onChange: C,
1682
1683
  onSelect: T,
1683
- loadOptions: d,
1684
- placeholder: p,
1685
- "aria-label": p
1684
+ loadOptions: u,
1685
+ placeholder: f,
1686
+ "aria-label": f
1686
1687
  }
1687
1688
  ),
1688
- /* @__PURE__ */ n("div", { className: "ds:flex ds:items-center ds:justify-end ds:pt-[var(--spacing-xs)] ds:border-t ds:border-[var(--border)]", children: /* @__PURE__ */ n(G, { intent: "ghost", size: "sm", onClick: S, type: "button", children: u("dataTable.typeaheadFilter.clear") }) })
1689
+ /* @__PURE__ */ n("div", { className: "ds:flex ds:items-center ds:justify-end ds:pt-[var(--spacing-xs)] ds:border-t ds:border-[var(--border)]", children: /* @__PURE__ */ n(j, { intent: "ghost", size: "sm", onClick: S, type: "button", children: d("dataTable.typeaheadFilter.clear") }) })
1689
1690
  ]
1690
1691
  }
1691
1692
  );
1692
1693
  }
1693
- function er(t) {
1694
- var T, x;
1695
- const { model: e, onModelChange: a, column: r } = t, { t: o } = N("ui"), s = ((x = (T = r == null ? void 0 : r.getColDef) == null ? void 0 : T.call(r)) == null ? void 0 : x.filterParams) ?? {}, l = s.options ?? [], f = s.loadOptions, i = s.placeholder ?? o("dataTable.typeaheadFilter.placeholder"), u = A(() => async (S, p) => {
1696
- if (f)
1697
- return (await f(S, p)).map((w) => ({ value: w.value, label: w.label }));
1694
+ function dr(t) {
1695
+ var T, C;
1696
+ const { model: e, onModelChange: a, column: r } = t, { t: o } = F("ui"), s = ((C = (T = r == null ? void 0 : r.getColDef) == null ? void 0 : T.call(r)) == null ? void 0 : C.filterParams) ?? {}, l = s.options ?? [], p = s.loadOptions, i = s.placeholder ?? o("dataTable.typeaheadFilter.placeholder"), d = E(() => async (S, f) => {
1697
+ if (p)
1698
+ return (await p(S, f)).map((w) => ({ value: w.value, label: w.label }));
1698
1699
  const m = J(S);
1699
1700
  return (m ? l.filter((h) => J(h.label).includes(m)) : l).slice(0, 50).map((h) => ({ value: h.value, label: h.label }));
1700
- }, [f, l]), [c, d] = D((e == null ? void 0 : e.value) ?? "");
1701
- P(() => {
1702
- d((e == null ? void 0 : e.value) ?? "");
1701
+ }, [p, l]), [c, u] = R((e == null ? void 0 : e.value) ?? "");
1702
+ z(() => {
1703
+ u((e == null ? void 0 : e.value) ?? "");
1703
1704
  }, [e == null ? void 0 : e.value]);
1704
1705
  function y(S) {
1705
- d(S.label), a({ type: "equals", value: S.value });
1706
+ u(S.label), a({ type: "equals", value: S.value });
1706
1707
  }
1707
1708
  function g(S) {
1708
- d(S), S === "" && e && a(null);
1709
+ u(S), S === "" && e && a(null);
1709
1710
  }
1710
1711
  return /* @__PURE__ */ n("div", { "data-component": "typeahead-floating-filter", className: "ds:w-full", children: /* @__PURE__ */ n(
1711
- ke,
1712
+ Ae,
1712
1713
  {
1713
1714
  size: "sm",
1714
1715
  value: c,
1715
1716
  onChange: g,
1716
1717
  onSelect: y,
1717
- loadOptions: u,
1718
+ loadOptions: d,
1718
1719
  placeholder: i,
1719
1720
  "aria-label": i
1720
1721
  }
1721
1722
  ) });
1722
1723
  }
1723
- const na = [
1724
+ const la = [
1724
1725
  "equals",
1725
1726
  "notEqual",
1726
1727
  "greaterThan",
@@ -1731,13 +1732,13 @@ const na = [
1731
1732
  "blank",
1732
1733
  "notBlank"
1733
1734
  ];
1734
- function he(t) {
1735
+ function ve(t) {
1735
1736
  return t !== "blank" && t !== "notBlank";
1736
1737
  }
1737
- function ve(t) {
1738
+ function Te(t) {
1738
1739
  return t === "inRange";
1739
1740
  }
1740
- function oa(t, e, a, r) {
1741
+ function ia(t, e, a, r) {
1741
1742
  if (t === "blank") return e === null;
1742
1743
  if (t === "notBlank") return e !== null;
1743
1744
  if (e === null) return !1;
@@ -1764,12 +1765,12 @@ function oa(t, e, a, r) {
1764
1765
  return !0;
1765
1766
  }
1766
1767
  }
1767
- function sa(t) {
1768
+ function ca(t) {
1768
1769
  if (t == null || t === "") return null;
1769
1770
  const e = typeof t == "number" ? t : Number(t);
1770
1771
  return Number.isNaN(e) ? null : e;
1771
1772
  }
1772
- function tr(t) {
1773
+ function ur(t) {
1773
1774
  const {
1774
1775
  model: e,
1775
1776
  onModelChange: a,
@@ -1777,12 +1778,12 @@ function tr(t) {
1777
1778
  defaultOperator: o,
1778
1779
  min: s,
1779
1780
  max: l,
1780
- step: f,
1781
+ step: p,
1781
1782
  placeholder: i
1782
- } = t, { t: u } = N("ui"), c = (e == null ? void 0 : e.type) ?? o ?? "equals", [d, y] = D(c), [g, T] = D((e == null ? void 0 : e.filter) ?? null), [x, S] = D(
1783
+ } = t, { t: d } = F("ui"), c = (e == null ? void 0 : e.type) ?? o ?? "equals", [u, y] = R(c), [g, T] = R((e == null ? void 0 : e.filter) ?? null), [C, S] = R(
1783
1784
  (e == null ? void 0 : e.filterTo) ?? null
1784
1785
  );
1785
- P(() => {
1786
+ z(() => {
1786
1787
  if (e === null) {
1787
1788
  y(o ?? "equals"), T(null), S(null);
1788
1789
  return;
@@ -1791,45 +1792,45 @@ function tr(t) {
1791
1792
  }, [e, o]), X({
1792
1793
  doesFilterPass: (k) => {
1793
1794
  if (!e) return !0;
1794
- const B = sa(r(k.node));
1795
- return oa(
1795
+ const $ = ca(r(k.node));
1796
+ return ia(
1796
1797
  e.type,
1797
- B,
1798
+ $,
1798
1799
  e.filter ?? null,
1799
1800
  e.filterTo ?? null
1800
1801
  );
1801
1802
  }
1802
1803
  });
1803
- const p = A(
1804
- () => na.map((k) => ({
1804
+ const f = E(
1805
+ () => la.map((k) => ({
1805
1806
  value: k,
1806
- label: u(`dataTable.numberFilter.operators.${k}`)
1807
+ label: d(`dataTable.numberFilter.operators.${k}`)
1807
1808
  })),
1808
- [u]
1809
- ), m = i ?? u("dataTable.numberFilter.placeholder");
1809
+ [d]
1810
+ ), m = i ?? d("dataTable.numberFilter.placeholder");
1810
1811
  function b() {
1811
- if (!he(d)) {
1812
- a({ type: d, filter: 0 });
1812
+ if (!ve(u)) {
1813
+ a({ type: u, filter: 0 });
1813
1814
  return;
1814
1815
  }
1815
1816
  if (g === null) {
1816
1817
  a(null);
1817
1818
  return;
1818
1819
  }
1819
- if (ve(d)) {
1820
+ if (Te(u)) {
1820
1821
  a({
1821
- type: d,
1822
+ type: u,
1822
1823
  filter: g,
1823
- filterTo: x ?? void 0
1824
+ filterTo: C ?? void 0
1824
1825
  });
1825
1826
  return;
1826
1827
  }
1827
- a({ type: d, filter: g });
1828
+ a({ type: u, filter: g });
1828
1829
  }
1829
1830
  function h() {
1830
1831
  y(o ?? "equals"), T(null), S(null), a(null);
1831
1832
  }
1832
- const w = he(d), O = ve(d);
1833
+ const w = ve(u), A = Te(u);
1833
1834
  return /* @__PURE__ */ I(
1834
1835
  "div",
1835
1836
  {
@@ -1837,18 +1838,18 @@ function tr(t) {
1837
1838
  className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)] ds:p-[var(--spacing-sm)] ds:min-w-[240px]",
1838
1839
  children: [
1839
1840
  /* @__PURE__ */ n(
1840
- Re,
1841
+ ke,
1841
1842
  {
1842
1843
  size: "sm",
1843
- options: p,
1844
- value: d,
1844
+ options: f,
1845
+ value: u,
1845
1846
  onValueChange: (k) => {
1846
1847
  k !== "" && y(k);
1847
1848
  },
1848
- "aria-label": u("dataTable.numberFilter.operators.equals")
1849
+ "aria-label": d("dataTable.numberFilter.operators.equals")
1849
1850
  }
1850
1851
  ),
1851
- w && !O && /* @__PURE__ */ n(
1852
+ w && !A && /* @__PURE__ */ n(
1852
1853
  Y,
1853
1854
  {
1854
1855
  size: "sm",
@@ -1856,12 +1857,12 @@ function tr(t) {
1856
1857
  onChange: T,
1857
1858
  min: s,
1858
1859
  max: l,
1859
- step: f,
1860
+ step: p,
1860
1861
  placeholder: m,
1861
1862
  "aria-label": m
1862
1863
  }
1863
1864
  ),
1864
- O && /* @__PURE__ */ I("div", { className: "ds:flex ds:items-center ds:gap-[var(--spacing-xs)]", children: [
1865
+ A && /* @__PURE__ */ I("div", { className: "ds:flex ds:items-center ds:gap-[var(--spacing-xs)]", children: [
1865
1866
  /* @__PURE__ */ n(
1866
1867
  Y,
1867
1868
  {
@@ -1870,39 +1871,39 @@ function tr(t) {
1870
1871
  onChange: T,
1871
1872
  min: s,
1872
1873
  max: l,
1873
- step: f,
1874
- placeholder: u("dataTable.numberFilter.from"),
1875
- "aria-label": u("dataTable.numberFilter.from")
1874
+ step: p,
1875
+ placeholder: d("dataTable.numberFilter.from"),
1876
+ "aria-label": d("dataTable.numberFilter.from")
1876
1877
  }
1877
1878
  ),
1878
1879
  /* @__PURE__ */ n(
1879
1880
  Y,
1880
1881
  {
1881
1882
  size: "sm",
1882
- value: x,
1883
+ value: C,
1883
1884
  onChange: S,
1884
1885
  min: s,
1885
1886
  max: l,
1886
- step: f,
1887
- placeholder: u("dataTable.numberFilter.to"),
1888
- "aria-label": u("dataTable.numberFilter.to")
1887
+ step: p,
1888
+ placeholder: d("dataTable.numberFilter.to"),
1889
+ "aria-label": d("dataTable.numberFilter.to")
1889
1890
  }
1890
1891
  )
1891
1892
  ] }),
1892
1893
  /* @__PURE__ */ I("div", { className: "ds:flex ds:items-center ds:justify-end ds:gap-[var(--spacing-xs)] ds:pt-[var(--spacing-xs)] ds:border-t ds:border-[var(--border)]", children: [
1893
- /* @__PURE__ */ n(G, { intent: "ghost", size: "sm", onClick: h, type: "button", children: u("dataTable.numberFilter.clear") }),
1894
- /* @__PURE__ */ n(G, { intent: "primary", size: "sm", onClick: b, type: "button", children: u("dataTable.numberFilter.apply") })
1894
+ /* @__PURE__ */ n(j, { intent: "ghost", size: "sm", onClick: h, type: "button", children: d("dataTable.numberFilter.clear") }),
1895
+ /* @__PURE__ */ n(j, { intent: "primary", size: "sm", onClick: b, type: "button", children: d("dataTable.numberFilter.apply") })
1895
1896
  ] })
1896
1897
  ]
1897
1898
  }
1898
1899
  );
1899
1900
  }
1900
- function ar(t) {
1901
- var c, d;
1902
- const { model: e, onModelChange: a, column: r } = t, { t: o } = N("ui"), s = ((d = (c = r == null ? void 0 : r.getColDef) == null ? void 0 : c.call(r)) == null ? void 0 : d.filterParams) ?? {}, l = s.defaultOperator ?? "equals", f = s.placeholder ?? o("dataTable.numberFilter.placeholder"), [i, u] = D((e == null ? void 0 : e.filter) ?? null);
1903
- return P(() => {
1904
- u((e == null ? void 0 : e.filter) ?? null);
1905
- }, [e == null ? void 0 : e.filter]), P(() => {
1901
+ function pr(t) {
1902
+ var c, u;
1903
+ const { model: e, onModelChange: a, column: r } = t, { t: o } = F("ui"), s = ((u = (c = r == null ? void 0 : r.getColDef) == null ? void 0 : c.call(r)) == null ? void 0 : u.filterParams) ?? {}, l = s.defaultOperator ?? "equals", p = s.placeholder ?? o("dataTable.numberFilter.placeholder"), [i, d] = R((e == null ? void 0 : e.filter) ?? null);
1904
+ return z(() => {
1905
+ d((e == null ? void 0 : e.filter) ?? null);
1906
+ }, [e == null ? void 0 : e.filter]), z(() => {
1906
1907
  if (i === ((e == null ? void 0 : e.filter) ?? null)) return;
1907
1908
  const y = setTimeout(() => {
1908
1909
  if (i === null || Number.isNaN(i)) {
@@ -1917,29 +1918,78 @@ function ar(t) {
1917
1918
  {
1918
1919
  size: "sm",
1919
1920
  value: i,
1920
- onChange: u,
1921
+ onChange: d,
1921
1922
  min: s.min,
1922
1923
  max: s.max,
1923
1924
  step: s.step,
1924
- placeholder: f,
1925
- "aria-label": f
1925
+ placeholder: p,
1926
+ "aria-label": p
1926
1927
  }
1927
1928
  ) });
1928
1929
  }
1929
- function rr(t) {
1930
+ function fr(t) {
1931
+ const { value: e, variantMap: a } = t, r = (a == null ? void 0 : a[e]) ?? "neutral";
1932
+ return /* @__PURE__ */ n(Ot, { variant: r, withDot: !0, size: "sm", children: String(e ?? "") });
1933
+ }
1934
+ function mr(t) {
1930
1935
  const { value: e } = t;
1931
1936
  return e ? /* @__PURE__ */ I("span", { className: "ds:inline-flex ds:items-center ds:gap-[var(--spacing-sm)]", children: [
1932
- /* @__PURE__ */ n(kt, { name: e.name, src: e.src, size: "sm" }),
1937
+ /* @__PURE__ */ n(Oe, { name: e.name, src: e.src, size: "sm" }),
1933
1938
  /* @__PURE__ */ n("span", { children: e.name })
1934
1939
  ] }) : null;
1935
1940
  }
1936
- function nr(t) {
1937
- const { value: e, maxVisible: a = 3 } = t, { t: r } = N();
1941
+ const da = {
1942
+ sm: "ds:size-8",
1943
+ md: "ds:size-10",
1944
+ lg: "ds:size-12"
1945
+ }, ua = {
1946
+ square: "ds:rounded-none",
1947
+ rounded: "ds:rounded-[var(--radius-md)]",
1948
+ circle: "ds:rounded-[var(--radius-full)]"
1949
+ };
1950
+ function de(t, e) {
1951
+ if (!t || typeof t != "object") return;
1952
+ const a = t[e];
1953
+ return typeof a == "string" ? a : void 0;
1954
+ }
1955
+ const pa = /^(?:https?:|data:image\/)/i;
1956
+ function fa(t) {
1957
+ if (!t) return;
1958
+ const e = t.trim();
1959
+ if (e.length !== 0)
1960
+ return pa.test(e) ? e : void 0;
1961
+ }
1962
+ function gr(t) {
1963
+ const {
1964
+ data: e,
1965
+ srcField: a,
1966
+ altField: r,
1967
+ fallbackField: o,
1968
+ size: s = "md",
1969
+ shape: l = "rounded"
1970
+ } = t;
1971
+ if (!e) return null;
1972
+ const p = de(e, a), i = fa(p), d = r ? de(e, r) ?? "" : "", c = o ? de(e, o) : void 0;
1973
+ return i ? /* @__PURE__ */ n(
1974
+ "img",
1975
+ {
1976
+ src: i,
1977
+ alt: d,
1978
+ loading: "lazy",
1979
+ decoding: "async",
1980
+ className: ["ds:object-cover", da[s], ua[l]].join(
1981
+ " "
1982
+ )
1983
+ }
1984
+ ) : c ? /* @__PURE__ */ n(Oe, { name: c, size: s }) : null;
1985
+ }
1986
+ function br(t) {
1987
+ const { value: e, maxVisible: a = 3 } = t, { t: r } = F();
1938
1988
  if (!Array.isArray(e) || e.length === 0) return null;
1939
1989
  const o = e.slice(0, a), s = e.length - a;
1940
1990
  return /* @__PURE__ */ I("span", { className: "ds:inline-flex ds:flex-wrap ds:items-center ds:gap-[var(--spacing-xs)]", children: [
1941
1991
  o.map((l) => /* @__PURE__ */ n(te, { label: l, size: "sm" }, l)),
1942
- s > 0 && /* @__PURE__ */ n(At, { label: e.slice(a).join(", "), children: /* @__PURE__ */ n(
1992
+ s > 0 && /* @__PURE__ */ n(zt, { label: e.slice(a).join(", "), children: /* @__PURE__ */ n(
1943
1993
  te,
1944
1994
  {
1945
1995
  label: r("inputs.multiSelect.overflow", { count: s }),
@@ -1950,7 +2000,7 @@ function nr(t) {
1950
2000
  ) })
1951
2001
  ] });
1952
2002
  }
1953
- const la = {
2003
+ const ma = {
1954
2004
  date: { year: "numeric", month: "short", day: "numeric" },
1955
2005
  time: { hour: "2-digit", minute: "2-digit" },
1956
2006
  datetime: {
@@ -1961,101 +2011,174 @@ const la = {
1961
2011
  minute: "2-digit"
1962
2012
  }
1963
2013
  };
1964
- function or(t) {
2014
+ function hr(t) {
1965
2015
  const { value: e, format: a = "date", options: r } = t;
1966
- return e == null || e === "" ? null : a === "relative" && !r ? /* @__PURE__ */ n(be, { value: e, shape: "bare" }) : /* @__PURE__ */ n(
1967
- be,
2016
+ return e == null || e === "" ? null : a === "relative" && !r ? /* @__PURE__ */ n(he, { value: e, shape: "bare" }) : /* @__PURE__ */ n(
2017
+ he,
1968
2018
  {
1969
2019
  value: e,
1970
2020
  format: "absolute",
1971
2021
  shape: "bare",
1972
- absoluteFormat: r ?? la[a === "relative" ? "date" : a]
2022
+ absoluteFormat: r ?? ma[a === "relative" ? "date" : a]
1973
2023
  }
1974
2024
  );
1975
2025
  }
1976
- function Te(t) {
1977
- if (!Se(t)) return t;
2026
+ function ga(t) {
2027
+ if (t == null || t === "") return null;
2028
+ const e = typeof t == "number" ? t : Number(t);
2029
+ return Number.isFinite(e) ? e : null;
2030
+ }
2031
+ function vr(t) {
2032
+ const {
2033
+ value: e,
2034
+ currency: a = "EUR",
2035
+ colorNegative: r,
2036
+ strikethrough: o,
2037
+ options: s
2038
+ } = t, { i18n: l } = F(), p = ga(e);
2039
+ if (p === null) return null;
2040
+ const i = l.language || "en", d = new Intl.NumberFormat(i, {
2041
+ style: "currency",
2042
+ currency: a,
2043
+ ...s
2044
+ }).format(p), c = ["ds:tabular-nums"];
2045
+ return r && p < 0 && c.push("ds:text-[color:var(--destructive)]"), o && c.push("line-through"), /* @__PURE__ */ n("span", { className: c.join(" "), children: d });
2046
+ }
2047
+ function ye(t) {
2048
+ if (!Ne(t)) return t;
1978
2049
  const e = t, a = e.props.className ?? "", r = /\bsize-|\bw-|\bh-/.test(a) ? a : `${a} size-4`.trim();
1979
- return we(e, { className: r, size: e.props.size ?? 16 });
2050
+ return Fe(e, { className: r, size: e.props.size ?? 16 });
1980
2051
  }
1981
- function de(t, e) {
2052
+ function Tr(t) {
2053
+ return Math.max(1, t) * 32 + 26;
2054
+ }
2055
+ function ue(t, e) {
1982
2056
  return typeof t == "function" ? t(e) : !!t;
1983
2057
  }
1984
- const ia = "ds:text-[color:var(--destructive)] ds:hover:text-[color:var(--destructive-hover)]";
1985
- function sr(t) {
1986
- const { data: e, actions: a, intent: r = "ghost", group: o, label: s, collapsed: l } = t, { t: f } = N();
2058
+ const ba = "ds:text-[color:var(--destructive)] ds:hover:text-[color:var(--destructive-hover)]";
2059
+ function yr(t) {
2060
+ const { data: e, actions: a, intent: r = "ghost", group: o, label: s, collapsed: l } = t, { t: p } = F();
1987
2061
  if (!e) return null;
1988
- const i = a.filter((d) => !de(d.hidden, e));
2062
+ const i = a.filter((u) => !ue(u.hidden, e));
1989
2063
  if (typeof l == "function" ? l() : !!l)
1990
- return /* @__PURE__ */ I(V.Root, { children: [
1991
- /* @__PURE__ */ n(V.Trigger, { asChild: !0, children: /* @__PURE__ */ n(
1992
- _,
2064
+ return /* @__PURE__ */ I(_.Root, { children: [
2065
+ /* @__PURE__ */ n(_.Trigger, { asChild: !0, children: /* @__PURE__ */ n(
2066
+ V,
1993
2067
  {
1994
2068
  size: "sm",
1995
2069
  intent: r,
1996
- icon: /* @__PURE__ */ n(Et, { "aria-hidden": !0 }),
1997
- "aria-label": s ?? f("dataTable.actions", "Actions")
2070
+ icon: /* @__PURE__ */ n(Mt, { "aria-hidden": !0 }),
2071
+ "aria-label": s ?? p("dataTable.actions", "Actions")
1998
2072
  }
1999
2073
  ) }),
2000
- /* @__PURE__ */ n(V.Content, { align: "end", children: i.map((d, y) => /* @__PURE__ */ n(
2001
- V.Item,
2074
+ /* @__PURE__ */ n(_.Content, { align: "end", children: i.map((u, y) => /* @__PURE__ */ n(
2075
+ _.Item,
2002
2076
  {
2003
- startIcon: Te(d.icon),
2004
- disabled: de(d.disabled, e),
2005
- onSelect: () => d.onClick(e),
2006
- className: d.variant === "destructive" ? "ds:text-[color:var(--destructive)]" : void 0,
2007
- children: d.label
2077
+ startIcon: ye(u.icon),
2078
+ disabled: ue(u.disabled, e),
2079
+ onSelect: () => u.onClick(e),
2080
+ className: u.variant === "destructive" ? "ds:text-[color:var(--destructive)]" : void 0,
2081
+ children: u.label
2008
2082
  },
2009
2083
  y
2010
2084
  )) })
2011
2085
  ] });
2012
- const c = i.map((d, y) => {
2013
- const g = de(d.disabled, e), T = g && d.disabledReason ? d.disabledReason : d.label;
2086
+ const c = i.map((u, y) => {
2087
+ const g = ue(u.disabled, e), T = g && u.disabledReason ? u.disabledReason : u.label;
2014
2088
  return /* @__PURE__ */ n(
2015
- _,
2089
+ V,
2016
2090
  {
2017
2091
  size: "sm",
2018
2092
  intent: r,
2019
- icon: Te(d.icon),
2093
+ icon: ye(u.icon),
2020
2094
  tooltip: T,
2021
- "aria-label": d.label,
2095
+ "aria-label": u.label,
2022
2096
  disabled: g,
2023
- onClick: (x) => {
2024
- x.stopPropagation(), d.onClick(e);
2097
+ onClick: (C) => {
2098
+ C.stopPropagation(), u.onClick(e);
2025
2099
  },
2026
- className: d.variant === "destructive" ? ia : void 0
2100
+ className: u.variant === "destructive" ? ba : void 0
2027
2101
  },
2028
2102
  y
2029
2103
  );
2030
2104
  });
2031
2105
  return o ? /* @__PURE__ */ n(
2032
- Ot,
2106
+ Pt,
2033
2107
  {
2034
- "aria-label": s ?? f("dataTable.actions", "Actions"),
2108
+ "aria-label": s ?? p("dataTable.actions", "Actions"),
2035
2109
  size: "sm",
2036
2110
  children: c
2037
2111
  }
2038
2112
  ) : /* @__PURE__ */ n("span", { className: "ds:inline-flex ds:items-center ds:gap-[var(--spacing-xs)]", children: c });
2039
2113
  }
2114
+ function Ce(t, e) {
2115
+ return typeof t == "function" ? t(e) : t;
2116
+ }
2117
+ function ha(t) {
2118
+ return /^(https?:\/\/|\/|#|mailto:|tel:)/i.test(t) ? t : "#";
2119
+ }
2120
+ function Cr(t) {
2121
+ const { value: e, data: a, href: r, onClick: o, secondary: s } = t;
2122
+ if (!a) return null;
2123
+ const l = Ce(r, a), p = Ce(s, a), i = e == null || e === "" ? "" : String(e), d = [
2124
+ "ds:text-[color:var(--primary)]",
2125
+ "ds:hover:underline",
2126
+ "ds:focus-visible:outline-[length:var(--focus-ring-width)]",
2127
+ "ds:focus-visible:outline-solid",
2128
+ "ds:focus-visible:outline-[color:var(--ring)]",
2129
+ "ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]",
2130
+ "ds:rounded-[var(--radius-sm)]"
2131
+ ].join(" "), c = (u) => {
2132
+ o && (l || u.preventDefault(), u.stopPropagation(), o(a));
2133
+ };
2134
+ return /* @__PURE__ */ I("span", { className: "ds:flex ds:flex-col ds:leading-tight", children: [
2135
+ l ? /* @__PURE__ */ n(
2136
+ "a",
2137
+ {
2138
+ href: ha(l),
2139
+ onClick: c,
2140
+ className: d,
2141
+ children: i
2142
+ }
2143
+ ) : /* @__PURE__ */ n(
2144
+ "button",
2145
+ {
2146
+ type: "button",
2147
+ onClick: c,
2148
+ className: [
2149
+ "ds:appearance-none ds:bg-transparent ds:p-0 ds:text-start",
2150
+ d
2151
+ ].join(" "),
2152
+ children: i
2153
+ }
2154
+ ),
2155
+ p ? /* @__PURE__ */ n("span", { className: "type-meta ds:text-[color:var(--muted-foreground)]", children: p }) : null
2156
+ ] });
2157
+ }
2040
2158
  export {
2041
- sr as A,
2042
- Ha as D,
2043
- tr as N,
2044
- Xa as S,
2045
- nr as T,
2046
- rr as U,
2047
- or as a,
2048
- Qa as b,
2049
- Ja as c,
2050
- ar as d,
2051
- Za as e,
2052
- Ht as f,
2053
- Qt as g,
2054
- ee as h,
2055
- zt as i,
2056
- Ya as j,
2057
- er as k,
2058
- Jt as l,
2059
- Me as m
2159
+ yr as A,
2160
+ vr as C,
2161
+ nr as D,
2162
+ gr as I,
2163
+ Cr as L,
2164
+ ur as N,
2165
+ lr as S,
2166
+ br as T,
2167
+ mr as U,
2168
+ hr as a,
2169
+ or as b,
2170
+ sr as c,
2171
+ pr as d,
2172
+ ir as e,
2173
+ fr as f,
2174
+ Xt as g,
2175
+ Zt as h,
2176
+ ee as i,
2177
+ Lt as j,
2178
+ cr as k,
2179
+ dr as l,
2180
+ Tr as m,
2181
+ Yt as n,
2182
+ je as o
2060
2183
  };
2061
- //# sourceMappingURL=actions-cell-renderer-DrcaxB0w.js.map
2184
+ //# sourceMappingURL=link-cell-renderer-CTXqtXV-.js.map