@alfadocs/ui-kit 0.64.0 → 0.66.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 (259) hide show
  1. package/dist/_chunks/{agenda-tray-DA6qj8BL.js → agenda-tray-Bh1KfEOG.js} +2 -2
  2. package/dist/_chunks/{ai-consent-banner-DBKV27je.js → ai-consent-banner-Btzmk8OH.js} +3 -2
  3. package/dist/_chunks/{ai-prompt-input-Dx8eXoPm.js → ai-prompt-input-BwEACCPm.js} +2 -2
  4. package/dist/_chunks/{ai-tools-rail-7tC3GT4h.js → ai-tools-rail-DAfaW8eA.js} +65 -56
  5. package/dist/_chunks/{alia-sidebar-DlvyXgVC.js → alia-sidebar-CN8pA6c-.js} +7 -7
  6. package/dist/_chunks/{anamnesis-card-CmkBVAln.js → anamnesis-card-qeLYRG79.js} +2 -2
  7. package/dist/_chunks/{antenatal-schedule-timeline-CdiqkF05.js → antenatal-schedule-timeline-BfzFjEyb.js} +3 -3
  8. package/dist/_chunks/{appointment-tray-BwDHhWWC.js → appointment-tray-BQnJEora.js} +2 -2
  9. package/dist/_chunks/{ar-C68WKG5a.js → ar-Cn5Fq48Z.js} +2 -2
  10. package/dist/_chunks/{audio-recorder-CdXuT9ln.js → audio-recorder-DjXLP4aF.js} +2 -2
  11. package/dist/_chunks/{autocomplete-CDqxB68B.js → autocomplete-CcCFlVf-.js} +4 -4
  12. package/dist/_chunks/{bishop-score-CzjSx-dm.js → bishop-score-DPN4Ched.js} +2 -2
  13. package/dist/_chunks/{bmi-calculator-DA2NGmVK.js → bmi-calculator-DuUneHuZ.js} +2 -2
  14. package/dist/_chunks/{booking-ChfvWy3P.js → booking-L8-YP8BJ.js} +148 -148
  15. package/dist/_chunks/calendar-B6soK1Yb.js +17 -0
  16. package/dist/_chunks/{calendar-CkuJIg3s.js → calendar-oYWOCrnf.js} +1 -1
  17. package/dist/_chunks/{care-plan-card-DhZNoXs4.js → care-plan-card-D42WD4-T.js} +2 -2
  18. package/dist/_chunks/{care-plan-entry-card-DW70yBOD.js → care-plan-entry-card-BukNI7Uy.js} +2 -2
  19. package/dist/_chunks/{carousel.agent-DrX96W-1.js → carousel.agent-vt21A_el.js} +2 -2
  20. package/dist/_chunks/{chat-input-CFwc7JxL.js → chat-input-B5zjNEUN.js} +2 -2
  21. package/dist/_chunks/{chat-message-Dm8U2RY1.js → chat-message-3V54YipB.js} +2 -2
  22. package/dist/_chunks/{code-block-HoddNOKJ.js → code-block-BBWHhIc8.js} +2 -2
  23. package/dist/_chunks/columns-2-BTOBZbep.js +15 -0
  24. package/dist/_chunks/{contact-profile-card-DvvVfAA2.js → contact-profile-card-CCeJmjbd.js} +2 -2
  25. package/dist/_chunks/{cycle-calculator-C_t1Hs8V.js → cycle-calculator-D6LTmtQt.js} +4 -4
  26. package/dist/_chunks/{date-picker-BfHblqwA.js → date-picker-oGg5BnXL.js} +12 -11
  27. package/dist/_chunks/{date-picker-variants-CXEAx3O_.js → date-picker-variants-DAcSLTua.js} +358 -372
  28. package/dist/_chunks/{date-range-picker-hcAMs1wO.js → date-range-picker-C5BWfH_T.js} +34 -25
  29. package/dist/_chunks/{date-time-picker-H-3Pwqlb.js → date-time-picker-Ze1My59T.js} +18 -17
  30. package/dist/_chunks/{de-DK4A9_a8.js → de-CrJs4ZsX.js} +2 -2
  31. package/dist/_chunks/{description-list-BEbK2g93.js → description-list-gkNGWk5G.js} +2 -2
  32. package/dist/_chunks/{due-date-calculator-Q8MIwEVV.js → due-date-calculator-CIG194vq.js} +4 -4
  33. package/dist/_chunks/{editable-currency-cell-renderer-BQgaKFCz.js → editable-currency-cell-renderer-f3d0Rhue.js} +535 -535
  34. package/dist/_chunks/editor-overlay-wYm22wZK.js +88 -0
  35. package/dist/_chunks/{el-B29HXhG5.js → el-DHdMOIhL.js} +6 -6
  36. package/dist/_chunks/{es-BOwPVwWn.js → es-DCATCfqo.js} +2 -2
  37. package/dist/_chunks/{fetal-weight-D1a6BmM-.js → fetal-weight-Xf8-ZoDy.js} +2 -2
  38. package/dist/_chunks/{fiscal-code-input-BZ0FxwUl.js → fiscal-code-input-DPtqluVb.js} +2 -2
  39. package/dist/_chunks/{fr-DoDBtn0T.js → fr-BfGEMshF.js} +2 -2
  40. package/dist/_chunks/{freemium-paywall-gHGA44dW.js → freemium-paywall-CkWjv3o6.js} +2 -2
  41. package/dist/_chunks/{gestational-age-calculator-D85E8lGN.js → gestational-age-calculator-BGsZaWXW.js} +6 -6
  42. package/dist/_chunks/{hcg-doubling-Dg0Hr7ey.js → hcg-doubling-LH5i6oM7.js} +3 -3
  43. package/dist/_chunks/{header-Ce1Br27u.js → header-CNszv2WQ.js} +2 -2
  44. package/dist/_chunks/{header-settings-D5Z2B_Yz.js → header-settings-CNOqIhoW.js} +3 -3
  45. package/dist/_chunks/{hi-DGByrKby.js → hi-CBFRXEIm.js} +2 -2
  46. package/dist/_chunks/icon-button-LqoiKcUN.js +78 -0
  47. package/dist/_chunks/image-C6RM5hfF.js +16 -0
  48. package/dist/_chunks/{insert-result-C1SYdueh.js → insert-result-njqBthzT.js} +115 -125
  49. package/dist/_chunks/{isSameWeek-B1odL2vR.js → isSameWeek-I3DfXUp1.js} +2 -2
  50. package/dist/_chunks/{it-B16rEecm.js → it-nz6vAKwG.js} +7 -7
  51. package/dist/_chunks/{ja-B0viOgft.js → ja-DQcqdAEJ.js} +2 -2
  52. package/dist/_chunks/{key-value-pair-CkQIb9EG.js → key-value-pair-BrgbMfbF.js} +2 -2
  53. package/dist/_chunks/{locale-picker-D99UyZVJ.js → locale-picker-C9JmBht3.js} +3 -3
  54. package/dist/_chunks/{marketplace-app-shell-C4OYAC22.js → marketplace-app-shell-Cou6XnMJ.js} +5 -5
  55. package/dist/_chunks/{message-card-Dvl1TgaN.js → message-card-Bgcvfj6-.js} +2 -2
  56. package/dist/_chunks/{message-tray-Dl6GQaaV.js → message-tray-saAVMeHP.js} +3 -3
  57. package/dist/_chunks/{multi-select-DOLO3K_z.js → multi-select-BcPylvHR.js} +100 -90
  58. package/dist/_chunks/{nl-cBxEX2QU.js → nl-L5SuDjyl.js} +2 -2
  59. package/dist/_chunks/{notification-card-CObnGdJu.js → notification-card-BiESdm8q.js} +2 -2
  60. package/dist/_chunks/{notification-tray-BWHDIjgd.js → notification-tray-DlgenTEe.js} +3 -3
  61. package/dist/_chunks/{patient-search-CArmRKeg.js → patient-search-Bw9ONucF.js} +2 -2
  62. package/dist/_chunks/{patient-shell-Coarf346.js → patient-shell-Tgpv0HND.js} +4 -4
  63. package/dist/_chunks/{patient-summary-card-BnTqxcTr.js → patient-summary-card-Bgso0p_l.js} +2 -2
  64. package/dist/_chunks/{payment-form-DJ9vnzrT.js → payment-form-nXocS_MX.js} +11 -4
  65. package/dist/_chunks/{payment-request-card-B_lyobd0.js → payment-request-card-DBz3hVDz.js} +3 -3
  66. package/dist/_chunks/{pdf-viewer-chMpwpA4.js → pdf-viewer-GsfNqeeT.js} +3 -3
  67. package/dist/_chunks/{periodontal-chart-card-BYs9hax1.js → periodontal-chart-card-AYyHtU9K.js} +2 -2
  68. package/dist/_chunks/phone-input-DVXhNlIl.js +563 -0
  69. package/dist/_chunks/{pl-DtS08ioY.js → pl-YAn5z2wR.js} +3 -3
  70. package/dist/_chunks/{popover-Devce-tT.js → popover-DTbfAuR0.js} +2 -2
  71. package/dist/_chunks/{practice-results-CtfciF2v.js → practice-results-CVAgY2RZ.js} +3 -3
  72. package/dist/_chunks/{pregnancy-dating-7NUaAfob.js → pregnancy-dating-f9aJbiAk.js} +6 -6
  73. package/dist/_chunks/{pregnancy-weight-gain-DI7X-0JX.js → pregnancy-weight-gain-BMRBeA8V.js} +2 -2
  74. package/dist/_chunks/{privacy-lock-BN3L-alb.js → privacy-lock-C7JyMf0y.js} +2 -2
  75. package/dist/_chunks/{product-hub-panel-CkfZBA3t.js → product-hub-panel-CAXDFeGP.js} +2 -2
  76. package/dist/_chunks/{pt-yFXs1VvH.js → pt-D9xdT5KQ.js} +6 -6
  77. package/dist/_chunks/{public-header.agent-CYQK6T6F.js → public-header.agent-BOhJgZEU.js} +3 -3
  78. package/dist/_chunks/{reviews-panel-CPrXu5TX.js → reviews-panel-DBktKm7i.js} +2 -2
  79. package/dist/_chunks/rich-text-editor-B5XQNxe8.js +1586 -0
  80. package/dist/_chunks/{ro-DsCzSrzR.js → ro-Cp--52bT.js} +2 -2
  81. package/dist/_chunks/{ru-DgDxL0pc.js → ru-BM8eX_Zz.js} +3 -3
  82. package/dist/_chunks/{search-bar-CvN_S0jW.js → search-bar-SY2BcV2N.js} +2 -2
  83. package/dist/_chunks/{search-input-D3aMvi4l.js → search-input-DbxrnHkW.js} +3 -3
  84. package/dist/_chunks/{sheet-xbzu4YiY.js → sheet-taJer-Ha.js} +2 -2
  85. package/dist/_chunks/{sidebar-DPEHzxLZ.js → sidebar-BFwbx74W.js} +12 -1
  86. package/dist/_chunks/{sign-document--nr5cxsB.js → sign-document-CdAiHiCh.js} +2 -2
  87. package/dist/_chunks/{sign-in-with-alfadocs-button-BpAjVmsI.js → sign-in-with-alfadocs-button-LppxjlFt.js} +2 -2
  88. package/dist/_chunks/{signature-field-DbhbpLha.js → signature-field-Dy1JRjzE.js} +10 -3
  89. package/dist/_chunks/{slot-grid-BlHHP9Qy.js → slot-grid-FsqumOaS.js} +2 -2
  90. package/dist/_chunks/smart-date-CWikAqZx.js +114 -0
  91. package/dist/_chunks/{social-sign-in-button-uJYLM366.js → social-sign-in-button-dlpPI5l7.js} +2 -2
  92. package/dist/_chunks/{spinner-OjQNn8oN.js → spinner-hbwuKwMf.js} +10 -10
  93. package/dist/_chunks/{sq-DHlCYN67.js → sq-XRpr0r49.js} +6 -6
  94. package/dist/_chunks/{streaming-text-CfhDqtIT.js → streaming-text-BB9mvK4m.js} +2 -2
  95. package/dist/_chunks/subDays-BcYv1Lxi.js +8 -0
  96. package/dist/_chunks/{sv-O0QaQs_s.js → sv-Z3APomE8.js} +2 -2
  97. package/dist/_chunks/{task-tray-Cb_hK4yb.js → task-tray-CAncV-QQ.js} +2 -2
  98. package/dist/_chunks/{theme-toggle-DAW7uC0B.js → theme-toggle-DETmSu_h.js} +2 -2
  99. package/dist/_chunks/{toast.agent-B0MCsvdZ.js → toast.agent-vuLRRn2a.js} +2 -2
  100. package/dist/_chunks/{tooth-scheme-CiphQaON.js → tooth-scheme-BIx1O2aJ.js} +3 -3
  101. package/dist/_chunks/{tr-BmNDRuio.js → tr-e0-P4FON.js} +2 -2
  102. package/dist/_chunks/{transcript-panel-B4HiC7ed.js → transcript-panel-CLHmv83g.js} +2 -2
  103. package/dist/_chunks/trash-2-rPAKaRgB.js +18 -0
  104. package/dist/_chunks/{unit-converter-BIbXHIQA.js → unit-converter-C1V3ACM9.js} +2 -2
  105. package/dist/_chunks/{wallet-pay-button-DuDPBlCO.js → wallet-pay-button--dnR6NfJ.js} +2 -2
  106. package/dist/_chunks/{workflow-map-BJDUNYlX.js → workflow-map-Bt4Of5dT.js} +137 -149
  107. package/dist/_chunks/{zh-CN-CgVJZEzz.js → zh-CN-B-igM5gY.js} +3 -3
  108. package/dist/agent-catalog.json +32 -1
  109. package/dist/components/agenda-tray/index.js +1 -1
  110. package/dist/components/ai-consent-banner/index.js +1 -1
  111. package/dist/components/ai-prompt-input/index.js +1 -1
  112. package/dist/components/ai-tools-rail/index.js +1 -1
  113. package/dist/components/anamnesis-card/index.js +1 -1
  114. package/dist/components/appointment-card/index.js +1 -1
  115. package/dist/components/audio-recorder/index.js +1 -1
  116. package/dist/components/autocomplete/index.js +1 -1
  117. package/dist/components/bishop-score/index.js +1 -1
  118. package/dist/components/bmi-calculator/index.js +1 -1
  119. package/dist/components/booking/index.js +1 -1
  120. package/dist/components/button/index.js +1 -1
  121. package/dist/components/calendar/index.js +1 -1
  122. package/dist/components/care-plan-card/index.js +1 -1
  123. package/dist/components/care-plan-entry-card/index.js +1 -1
  124. package/dist/components/carousel/index.js +1 -1
  125. package/dist/components/chat-input/index.js +1 -1
  126. package/dist/components/chat-message/index.js +1 -1
  127. package/dist/components/contact-profile-card/index.js +1 -1
  128. package/dist/components/cycle-calculator/index.js +1 -1
  129. package/dist/components/data-table/index.js +1 -1
  130. package/dist/components/date-picker/index.js +1 -1
  131. package/dist/components/date-range-picker/index.js +1 -1
  132. package/dist/components/date-time-picker/index.js +1 -1
  133. package/dist/components/description-list/index.js +1 -1
  134. package/dist/components/due-date-calculator/index.js +2 -2
  135. package/dist/components/editor-overlay/editor-overlay.d.ts +19 -0
  136. package/dist/components/editor-overlay/index.d.ts +3 -0
  137. package/dist/components/editor-overlay/index.js +5 -0
  138. package/dist/components/fetal-weight/index.js +1 -1
  139. package/dist/components/fiscal-code-input/index.js +1 -1
  140. package/dist/components/freemium-paywall/index.js +1 -1
  141. package/dist/components/gestational-age-calculator/index.js +1 -1
  142. package/dist/components/hcg-doubling/index.js +1 -1
  143. package/dist/components/header/index.js +1 -1
  144. package/dist/components/header-settings/index.js +1 -1
  145. package/dist/components/icon-button/index.js +1 -1
  146. package/dist/components/index.d.ts +2 -0
  147. package/dist/components/key-value-pair/index.js +1 -1
  148. package/dist/components/locale-picker/index.js +1 -1
  149. package/dist/components/message-card/index.js +1 -1
  150. package/dist/components/message-tray/index.js +1 -1
  151. package/dist/components/multi-select/index.js +1 -1
  152. package/dist/components/notification-card/index.js +1 -1
  153. package/dist/components/notification-tray/index.js +1 -1
  154. package/dist/components/patient-search/index.js +1 -1
  155. package/dist/components/patient-summary-card/index.js +1 -1
  156. package/dist/components/payment-card/index.js +1 -1
  157. package/dist/components/payment-form/index.js +1 -1
  158. package/dist/components/pdf-viewer/index.js +1 -1
  159. package/dist/components/periodontal-chart-card/index.js +1 -1
  160. package/dist/components/phone-input/index.js +1 -1
  161. package/dist/components/phone-input/phone-input.d.ts +9 -0
  162. package/dist/components/popover/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/privacy-lock/index.js +1 -1
  167. package/dist/components/product-hub-tray/index.js +1 -1
  168. package/dist/components/public-header/index.js +1 -1
  169. package/dist/components/reviews-panel/index.js +1 -1
  170. package/dist/components/rich-text-editor/editor-toolbar.d.ts +26 -0
  171. package/dist/components/rich-text-editor/help-me-write-overlay.d.ts +25 -0
  172. package/dist/components/rich-text-editor/index.js +1 -1
  173. package/dist/components/rich-text-editor/rich-text-editor.d.ts +43 -0
  174. package/dist/components/search-bar/index.js +1 -1
  175. package/dist/components/search-input/index.js +1 -1
  176. package/dist/components/sheet/index.js +1 -1
  177. package/dist/components/sidebar/index.js +1 -1
  178. package/dist/components/sign-document/index.js +1 -1
  179. package/dist/components/sign-in-with-alfadocs-button/index.js +1 -1
  180. package/dist/components/signature-field/index.js +1 -1
  181. package/dist/components/slot-grid/index.js +1 -1
  182. package/dist/components/smart-date/index.d.ts +3 -0
  183. package/dist/components/smart-date/index.js +5 -0
  184. package/dist/components/smart-date/smart-date.d.ts +32 -0
  185. package/dist/components/social-sign-in-button/index.js +1 -1
  186. package/dist/components/spinner/index.js +1 -1
  187. package/dist/components/streaming-text/index.js +1 -1
  188. package/dist/components/task-tray/index.js +1 -1
  189. package/dist/components/theme-toggle/index.js +1 -1
  190. package/dist/components/toast/index.js +1 -1
  191. package/dist/components/tooth-scheme/index.js +1 -1
  192. package/dist/components/transcript-panel/index.js +1 -1
  193. package/dist/components/unit-converter/index.js +1 -1
  194. package/dist/components/wallet-pay-button/index.js +1 -1
  195. package/dist/components/workflow/index.js +1 -1
  196. package/dist/i18n/locales/ar.d.ts +60 -0
  197. package/dist/i18n/locales/ar.js +61 -1
  198. package/dist/i18n/locales/de.d.ts +60 -0
  199. package/dist/i18n/locales/de.js +61 -1
  200. package/dist/i18n/locales/el.d.ts +60 -0
  201. package/dist/i18n/locales/el.js +61 -1
  202. package/dist/i18n/locales/en.d.ts +60 -0
  203. package/dist/i18n/locales/en.js +65 -1
  204. package/dist/i18n/locales/es.d.ts +60 -0
  205. package/dist/i18n/locales/es.js +61 -1
  206. package/dist/i18n/locales/fr.d.ts +60 -0
  207. package/dist/i18n/locales/fr.js +61 -1
  208. package/dist/i18n/locales/hi.d.ts +60 -0
  209. package/dist/i18n/locales/hi.js +61 -1
  210. package/dist/i18n/locales/it.d.ts +60 -0
  211. package/dist/i18n/locales/it.js +61 -1
  212. package/dist/i18n/locales/ja.d.ts +60 -0
  213. package/dist/i18n/locales/ja.js +61 -1
  214. package/dist/i18n/locales/nl.d.ts +60 -0
  215. package/dist/i18n/locales/nl.js +61 -1
  216. package/dist/i18n/locales/pl.d.ts +60 -0
  217. package/dist/i18n/locales/pl.js +61 -1
  218. package/dist/i18n/locales/pt.d.ts +60 -0
  219. package/dist/i18n/locales/pt.js +61 -1
  220. package/dist/i18n/locales/ro.d.ts +60 -0
  221. package/dist/i18n/locales/ro.js +61 -1
  222. package/dist/i18n/locales/ru.d.ts +60 -0
  223. package/dist/i18n/locales/ru.js +61 -1
  224. package/dist/i18n/locales/sq.d.ts +60 -0
  225. package/dist/i18n/locales/sq.js +61 -1
  226. package/dist/i18n/locales/sv.d.ts +60 -0
  227. package/dist/i18n/locales/sv.js +61 -1
  228. package/dist/i18n/locales/tr.d.ts +60 -0
  229. package/dist/i18n/locales/tr.js +61 -1
  230. package/dist/i18n/locales/zh.d.ts +60 -0
  231. package/dist/i18n/locales/zh.js +61 -1
  232. package/dist/index.js +494 -490
  233. package/dist/locales/ar.json +61 -1
  234. package/dist/locales/de.json +61 -1
  235. package/dist/locales/el.json +61 -1
  236. package/dist/locales/en.json +61 -1
  237. package/dist/locales/es.json +61 -1
  238. package/dist/locales/fr.json +61 -1
  239. package/dist/locales/hi.json +61 -1
  240. package/dist/locales/it.json +61 -1
  241. package/dist/locales/ja.json +61 -1
  242. package/dist/locales/nl.json +61 -1
  243. package/dist/locales/pl.json +61 -1
  244. package/dist/locales/pt.json +61 -1
  245. package/dist/locales/ro.json +61 -1
  246. package/dist/locales/ru.json +61 -1
  247. package/dist/locales/sq.json +61 -1
  248. package/dist/locales/sv.json +61 -1
  249. package/dist/locales/tr.json +61 -1
  250. package/dist/locales/zh.json +61 -1
  251. package/dist/patterns/alia-assistant/index.js +1 -1
  252. package/dist/patterns/marketplace-app-shell/index.js +1 -1
  253. package/dist/patterns/patient-shell/index.js +1 -1
  254. package/dist/tokens.css +36 -22
  255. package/package.json +10 -1
  256. package/dist/_chunks/icon-button-CKEOrN37.js +0 -70
  257. package/dist/_chunks/phone-input-DfZbPPvh.js +0 -525
  258. package/dist/_chunks/rich-text-editor-B03qM22-.js +0 -334
  259. package/dist/_chunks/subDays-Bs00akhK.js +0 -8
@@ -1,5 +1,5 @@
1
1
  import { jsx as s, jsxs as E } from "react/jsx-runtime";
2
- import { useMemo as z, forwardRef as _, useState as R, useCallback as M, useEffect as P, useRef as X, createContext as Ne, useContext as Se, isValidElement as we, cloneElement as Fe, useImperativeHandle as yt } from "react";
2
+ import { useMemo as z, forwardRef as q, useState as R, useCallback as M, useEffect as P, useRef as X, createContext as Ne, useContext as Se, isValidElement as we, cloneElement as Fe, useImperativeHandle as yt } from "react";
3
3
  import { S as Tt } from "./skeleton-CZbwyJAA.js";
4
4
  import { E as Ct } from "./empty-state-BLy7tigq.js";
5
5
  import { c as xt } from "./index-D2ZczOXr.js";
@@ -7,8 +7,8 @@ import { useTranslation as F } from "react-i18next";
7
7
  import { useGridFilter as J, AgGridReact as Nt } from "ag-grid-react";
8
8
  import { ModuleRegistry as St, AllCommunityModule as wt } from "ag-grid-community";
9
9
  import { B as L } from "./button-DD_0Xdmr.js";
10
- import { I as V } from "./icon-button-CKEOrN37.js";
11
- import { P as Z } from "./popover-Devce-tT.js";
10
+ import { I as V } from "./icon-button-LqoiKcUN.js";
11
+ import { P as Z } from "./popover-DTbfAuR0.js";
12
12
  import { C as Re } from "./checkbox-DRcOdmXv.js";
13
13
  import { T as fe } from "./text-input-BaClJL8Y.js";
14
14
  import { T as ae } from "./tag-CdA0s_VV.js";
@@ -16,7 +16,7 @@ import { D as Y } from "./dropdown-menu-DwwPovMZ.js";
16
16
  import { X as De } from "./x-CCcI3eJp.js";
17
17
  import { R as Ft } from "./refresh-cw-CC8jSKMr.js";
18
18
  import { S as pe } from "./search-BonnQsHv.js";
19
- import { c as Rt } from "./createLucideIcon-CrFbzy84.js";
19
+ import { C as Rt } from "./columns-2-BTOBZbep.js";
20
20
  import { G as Dt } from "./grip-vertical-Dlg0_k5C.js";
21
21
  import { P as kt } from "./printer-CeVEWfQq.js";
22
22
  import { F as ke } from "./file-text-DSNuv2B8.js";
@@ -27,35 +27,25 @@ import { S as Ee } from "./select-CEtRcon5.js";
27
27
  import { u as zt } from "./use-prefers-reduced-motion-BMwIQRjB.js";
28
28
  import { u as At } from "./use-theme-CAuo6EYT.js";
29
29
  import { u as Pt } from "./registry-nPAVE19X.js";
30
- import { D as Ie } from "./date-range-picker-hcAMs1wO.js";
31
- import { M as Ot } from "./multi-select-DOLO3K_z.js";
32
- import { A as ze } from "./autocomplete-CDqxB68B.js";
30
+ import { D as Ie } from "./date-range-picker-C5BWfH_T.js";
31
+ import { M as Ot } from "./multi-select-BcPylvHR.js";
32
+ import { A as ze } from "./autocomplete-CcCFlVf-.js";
33
33
  import { N as ee } from "./number-input-Dj5L3pXK.js";
34
34
  import { B as Mt } from "./badge-zsf5i5bH.js";
35
35
  import { A as Ae } from "./avatar-BNQNhoyL.js";
36
36
  import { T as jt } from "./tooltip-DvmfrNvB.js";
37
37
  import { T as he } from "./timestamp-BV2lC-wV.js";
38
38
  import { S as Lt } from "./square-check-big-Jr-0202D.js";
39
- import { S as _t } from "./square-CZoGU14v.js";
40
- import { u as qt } from "./use-isomorphic-layout-effect-BGfaCOP1.js";
39
+ import { S as qt } from "./square-CZoGU14v.js";
40
+ import { u as $t } from "./use-isomorphic-layout-effect-BGfaCOP1.js";
41
41
  import { c as Pe, a as Oe, b as Me, d as je } from "./input-surface-xyERuLU_.js";
42
- /**
43
- * @license lucide-react v1.8.0 - ISC
44
- *
45
- * This source code is licensed under the ISC license.
46
- * See the LICENSE file in the root directory of this source tree.
47
- */
48
- const $t = [
49
- ["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }],
50
- ["path", { d: "M12 3v18", key: "108xh3" }]
51
- ], Gt = Rt("columns-2", $t);
52
- function Bt(t) {
42
+ function _t(t) {
53
43
  if (!we(t)) return t;
54
44
  const e = t, a = e.props.className ?? "", n = /\bsize-|\bw-|\bh-/.test(a) ? a : `${a} ds:size-4`.trim();
55
45
  return Fe(e, { className: n, size: e.props.size ?? 16 });
56
46
  }
57
47
  const Le = Ne(null);
58
- function q(t) {
48
+ function $(t) {
59
49
  const e = Se(Le);
60
50
  if (!e)
61
51
  throw new Error(
@@ -63,7 +53,7 @@ function q(t) {
63
53
  );
64
54
  return e;
65
55
  }
66
- function Vt({
56
+ function Gt({
67
57
  getApi: t,
68
58
  selectionCount: e,
69
59
  onPrint: a,
@@ -75,7 +65,7 @@ function Vt({
75
65
  );
76
66
  return /* @__PURE__ */ s(Le.Provider, { value: r, children: n });
77
67
  }
78
- const Ut = [
68
+ const Bt = [
79
69
  "data-table-toolbar",
80
70
  // Mobile (<sm) keeps `flex-wrap` so a wide QuickSearch can flow above the
81
71
  // Actions cluster on narrow screens. From `sm` (≥640px) we switch to
@@ -94,20 +84,20 @@ const Ut = [
94
84
  "ds:border ds:border-[color:var(--card-border)]",
95
85
  "ds:shadow-[var(--shadow-sm)]",
96
86
  "ds:py-[var(--spacing-sm)] ds:px-[var(--spacing-md)]"
97
- ].join(" "), _e = _(
87
+ ].join(" "), qe = q(
98
88
  ({ className: t, children: e, ...a }, n) => /* @__PURE__ */ s(
99
89
  "div",
100
90
  {
101
91
  ref: n,
102
92
  role: "toolbar",
103
- className: [Ut, t ?? ""].join(" ").trim(),
93
+ className: [Bt, t ?? ""].join(" ").trim(),
104
94
  ...a,
105
95
  children: e
106
96
  }
107
97
  )
108
98
  );
109
- _e.displayName = "DataTable.Toolbar";
110
- const qe = _(
99
+ qe.displayName = "DataTable.Toolbar";
100
+ const $e = q(
111
101
  ({ className: t, children: e, ...a }, n) => /* @__PURE__ */ s(
112
102
  "div",
113
103
  {
@@ -126,8 +116,8 @@ const qe = _(
126
116
  }
127
117
  )
128
118
  );
129
- qe.displayName = "DataTable.Toolbar.FilterBar";
130
- const $e = _(
119
+ $e.displayName = "DataTable.Toolbar.FilterBar";
120
+ const _e = q(
131
121
  ({ className: t, children: e, ...a }, n) => /* @__PURE__ */ s(
132
122
  "div",
133
123
  {
@@ -142,13 +132,13 @@ const $e = _(
142
132
  }
143
133
  )
144
134
  );
145
- $e.displayName = "DataTable.Toolbar.Actions";
146
- const Ge = _(
135
+ _e.displayName = "DataTable.Toolbar.Actions";
136
+ const Ge = q(
147
137
  ({ label: t, onExport: e, intent: a = "outline", ...n }, r) => {
148
- const { t: o } = F(), { getApi: l } = q("DataTable.Toolbar.ExportCsv"), u = M(() => {
149
- const d = l();
138
+ const { t: l } = F(), { getApi: o } = $("DataTable.Toolbar.ExportCsv"), u = M(() => {
139
+ const d = o();
150
140
  d && (e ? e(d) : d.exportDataAsCsv());
151
- }, [l, e]);
141
+ }, [o, e]);
152
142
  return /* @__PURE__ */ s(
153
143
  V,
154
144
  {
@@ -156,7 +146,7 @@ const Ge = _(
156
146
  type: "button",
157
147
  intent: a,
158
148
  icon: /* @__PURE__ */ s(ne, { "aria-hidden": !0 }),
159
- tooltip: t ?? o("dataTable.exportCsv"),
149
+ tooltip: t ?? l("dataTable.exportCsv"),
160
150
  onClick: u,
161
151
  ...n
162
152
  }
@@ -178,55 +168,55 @@ async function Be(t, e) {
178
168
  const [{ jsPDF: a }, { default: n }] = await Promise.all([
179
169
  import("./jspdf.es.min-DaapWjR1.js").then((g) => g.j),
180
170
  import("./jspdf.plugin.autotable-CSiDNyPn.js")
181
- ]), o = (t.getColumns() ?? []).filter((g) => g.isVisible()), l = [
182
- o.map((g) => t.getDisplayNameForColumn(g, null) ?? "")
171
+ ]), l = (t.getColumns() ?? []).filter((g) => g.isVisible()), o = [
172
+ l.map((g) => t.getDisplayNameForColumn(g, null) ?? "")
183
173
  ], u = [];
184
174
  t.forEachNodeAfterFilterAndSort((g) => {
185
175
  if (!g.data) return;
186
- const b = o.map((y) => {
187
- const C = t.getCellValue({
176
+ const b = l.map((v) => {
177
+ const y = t.getCellValue({
188
178
  rowNode: g,
189
- colKey: y,
179
+ colKey: v,
190
180
  useFormatter: !0
191
181
  });
192
- return C == null ? "" : String(C);
182
+ return y == null ? "" : String(y);
193
183
  });
194
184
  u.push(b);
195
185
  });
196
- const d = W("--muted", [240, 240, 240]), i = W("--foreground", [30, 30, 30]), c = W("--card-foreground", [30, 30, 30]), p = W("--card", [250, 250, 250]), v = new a({ orientation: "landscape" });
197
- n(v, {
198
- head: l,
186
+ const d = W("--muted", [240, 240, 240]), c = W("--foreground", [30, 30, 30]), i = W("--card-foreground", [30, 30, 30]), p = W("--card", [250, 250, 250]), C = new a({ orientation: "landscape" });
187
+ n(C, {
188
+ head: o,
199
189
  body: u,
200
- headStyles: { fillColor: d, textColor: i },
201
- bodyStyles: { textColor: c },
190
+ headStyles: { fillColor: d, textColor: c },
191
+ bodyStyles: { textColor: i },
202
192
  alternateRowStyles: { fillColor: p },
203
193
  styles: {
204
194
  font: "helvetica",
205
195
  fontSize: 10,
206
196
  cellPadding: 4
207
197
  }
208
- }), v.save(e.fileName);
198
+ }), C.save(e.fileName);
209
199
  }
210
- const Ve = _(
211
- ({ label: t, onClick: e, fileName: a, intent: n = "outline", ...r }, o) => {
212
- const { t: l } = F(), { getApi: u } = q("DataTable.Toolbar.ExportPdf"), d = M(() => {
213
- const i = u();
200
+ const Ve = q(
201
+ ({ label: t, onClick: e, fileName: a, intent: n = "outline", ...r }, l) => {
202
+ const { t: o } = F(), { getApi: u } = $("DataTable.Toolbar.ExportPdf"), d = M(() => {
203
+ const c = u();
214
204
  if (e) {
215
- e(i);
205
+ e(c);
216
206
  return;
217
207
  }
218
- Be(i, {
208
+ Be(c, {
219
209
  fileName: a ?? "data-table-export.pdf"
220
210
  });
221
211
  }, [u, e, a]);
222
212
  return /* @__PURE__ */ s(
223
213
  V,
224
214
  {
225
- ref: o,
215
+ ref: l,
226
216
  type: "button",
227
217
  intent: n,
228
218
  icon: /* @__PURE__ */ s(ke, { "aria-hidden": !0 }),
229
- tooltip: t ?? l("dataTable.exportPdf"),
219
+ tooltip: t ?? o("dataTable.exportPdf"),
230
220
  onClick: d,
231
221
  ...r
232
222
  }
@@ -234,9 +224,9 @@ const Ve = _(
234
224
  }
235
225
  );
236
226
  Ve.displayName = "DataTable.Toolbar.ExportPdf";
237
- const Ue = _(
227
+ const Ue = q(
238
228
  ({ label: t, intent: e = "outline", ...a }, n) => {
239
- const { t: r } = F(), { onPrint: o } = q("DataTable.Toolbar.Print");
229
+ const { t: r } = F(), { onPrint: l } = $("DataTable.Toolbar.Print");
240
230
  return /* @__PURE__ */ s(
241
231
  V,
242
232
  {
@@ -245,7 +235,7 @@ const Ue = _(
245
235
  intent: e,
246
236
  icon: /* @__PURE__ */ s(kt, { "aria-hidden": !0 }),
247
237
  tooltip: t ?? r("dataTable.print"),
248
- onClick: o,
238
+ onClick: l,
249
239
  ...a
250
240
  }
251
241
  );
@@ -253,12 +243,12 @@ const Ue = _(
253
243
  );
254
244
  Ue.displayName = "DataTable.Toolbar.Print";
255
245
  const Ke = ({ placeholder: t, debounceMs: e = 150 }) => {
256
- const { t: a } = F(), { getApi: n } = q("DataTable.Toolbar.QuickSearch"), [r, o] = R(""), l = X(void 0);
257
- return P(() => (l.current && window.clearTimeout(l.current), l.current = window.setTimeout(() => {
246
+ const { t: a } = F(), { getApi: n } = $("DataTable.Toolbar.QuickSearch"), [r, l] = R(""), o = X(void 0);
247
+ return P(() => (o.current && window.clearTimeout(o.current), o.current = window.setTimeout(() => {
258
248
  const u = n();
259
249
  u && u.setGridOption("quickFilterText", r);
260
250
  }, e), () => {
261
- l.current && window.clearTimeout(l.current);
251
+ o.current && window.clearTimeout(o.current);
262
252
  }), [r, e, n]), // Slot wrapper caps the search at a sensible legible width on desktop —
263
253
  // without this, TextInput's `w-full` lets the QuickSearch absorb the
264
254
  // entire FilterBar row and push trailing Actions onto a second line at
@@ -272,19 +262,19 @@ const Ke = ({ placeholder: t, debounceMs: e = 150 }) => {
272
262
  type: "search",
273
263
  size: "sm",
274
264
  value: r,
275
- onChange: (u) => o(u.target.value),
265
+ onChange: (u) => l(u.target.value),
276
266
  placeholder: t ?? a("dataTable.quickSearch.placeholder", "Search…"),
277
267
  startAdornment: /* @__PURE__ */ s(pe, { "aria-hidden": !0, className: "ds:size-4" }),
278
268
  clearable: !0,
279
- onClear: () => o(""),
269
+ onClear: () => l(""),
280
270
  "aria-label": a("dataTable.quickSearch.label", "Quick search")
281
271
  }
282
272
  ) });
283
273
  };
284
274
  Ke.displayName = "DataTable.Toolbar.QuickSearch";
285
- const We = _(
275
+ const We = q(
286
276
  ({ onRefresh: t, label: e, intent: a = "outline", ...n }, r) => {
287
- const { t: o } = F();
277
+ const { t: l } = F();
288
278
  return /* @__PURE__ */ s(
289
279
  V,
290
280
  {
@@ -292,7 +282,7 @@ const We = _(
292
282
  type: "button",
293
283
  intent: a,
294
284
  icon: /* @__PURE__ */ s(Ft, { "aria-hidden": !0 }),
295
- tooltip: e ?? o("dataTable.refresh", "Refresh"),
285
+ tooltip: e ?? l("dataTable.refresh", "Refresh"),
296
286
  onClick: t,
297
287
  ...n
298
288
  }
@@ -300,7 +290,7 @@ const We = _(
300
290
  }
301
291
  );
302
292
  We.displayName = "DataTable.Toolbar.Refresh";
303
- function Kt(t) {
293
+ function Vt(t) {
304
294
  if (!t || typeof t != "object") return "";
305
295
  const e = t;
306
296
  if (typeof e.filter == "string" || typeof e.filter == "number") {
@@ -310,40 +300,40 @@ function Kt(t) {
310
300
  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(", ") : "";
311
301
  }
312
302
  const He = () => {
313
- const { t } = F(), { getApi: e } = q("DataTable.Toolbar.FilterChips"), [a, n] = R([]), [r, o] = R(""), l = M(() => {
314
- const c = e();
315
- if (!c) {
316
- n([]), o("");
303
+ const { t } = F(), { getApi: e } = $("DataTable.Toolbar.FilterChips"), [a, n] = R([]), [r, l] = R(""), o = M(() => {
304
+ const i = e();
305
+ if (!i) {
306
+ n([]), l("");
317
307
  return;
318
308
  }
319
- const p = c.getFilterModel() ?? {}, v = c.getColumns() ?? [], g = [];
320
- for (const y of Object.keys(p)) {
321
- const C = v.find((m) => m.getColId() === y), f = c.getDisplayNameForColumn(C, null) ?? y;
309
+ const p = i.getFilterModel() ?? {}, C = i.getColumns() ?? [], g = [];
310
+ for (const v of Object.keys(p)) {
311
+ const y = C.find((m) => m.getColId() === v), f = i.getDisplayNameForColumn(y, null) ?? v;
322
312
  g.push({
323
- colId: y,
313
+ colId: v,
324
314
  headerName: f,
325
- text: Kt(p[y])
315
+ text: Vt(p[v])
326
316
  });
327
317
  }
328
318
  n(g);
329
- const b = c.getGridOption("quickFilterText");
330
- o(typeof b == "string" ? b : "");
319
+ const b = i.getGridOption("quickFilterText");
320
+ l(typeof b == "string" ? b : "");
331
321
  }, [e]);
332
322
  if (P(() => {
333
- const c = e();
334
- if (!c) return;
335
- const p = (v) => l();
336
- return c.addEventListener("filterChanged", p), l(), () => {
337
- c.removeEventListener("filterChanged", p);
323
+ const i = e();
324
+ if (!i) return;
325
+ const p = (C) => o();
326
+ return i.addEventListener("filterChanged", p), o(), () => {
327
+ i.removeEventListener("filterChanged", p);
338
328
  };
339
- }, [e, l]), a.length + (r ? 1 : 0) === 0) return null;
340
- function d(c) {
329
+ }, [e, o]), a.length + (r ? 1 : 0) === 0) return null;
330
+ function d(i) {
341
331
  const p = e();
342
- p && p.destroyFilter(c);
332
+ p && p.destroyFilter(i);
343
333
  }
344
- function i() {
345
- const c = e();
346
- c && (c.setFilterModel(null), c.setGridOption("quickFilterText", ""), o(""));
334
+ function c() {
335
+ const i = e();
336
+ i && (i.setFilterModel(null), i.setGridOption("quickFilterText", ""), l(""));
347
337
  }
348
338
  return /* @__PURE__ */ E(
349
339
  "div",
@@ -359,20 +349,20 @@ const He = () => {
359
349
  size: "sm",
360
350
  fill: "outline",
361
351
  onRemove: () => {
362
- const c = e();
363
- c == null || c.setGridOption("quickFilterText", ""), o("");
352
+ const i = e();
353
+ i == null || i.setGridOption("quickFilterText", ""), l("");
364
354
  }
365
355
  }
366
356
  ),
367
- a.map((c) => /* @__PURE__ */ s(
357
+ a.map((i) => /* @__PURE__ */ s(
368
358
  ae,
369
359
  {
370
- label: c.text ? `${c.headerName}: ${c.text}` : c.headerName,
360
+ label: i.text ? `${i.headerName}: ${i.text}` : i.headerName,
371
361
  size: "sm",
372
362
  fill: "outline",
373
- onRemove: () => d(c.colId)
363
+ onRemove: () => d(i.colId)
374
364
  },
375
- c.colId
365
+ i.colId
376
366
  )),
377
367
  /* @__PURE__ */ s(
378
368
  L,
@@ -380,7 +370,7 @@ const He = () => {
380
370
  type: "button",
381
371
  intent: "ghost",
382
372
  size: "sm",
383
- onClick: i,
373
+ onClick: c,
384
374
  startIcon: /* @__PURE__ */ s(De, { "aria-hidden": !0, className: "ds:size-4" }),
385
375
  children: t("dataTable.filterChips.clearAll", "Clear all")
386
376
  }
@@ -395,19 +385,19 @@ const Qe = ({
395
385
  options: e,
396
386
  label: a
397
387
  }) => {
398
- const { t: n } = F(), { getApi: r } = q("DataTable.Toolbar.FacetFilter"), [o, l] = R(null);
388
+ const { t: n } = F(), { getApi: r } = $("DataTable.Toolbar.FacetFilter"), [l, o] = R(null);
399
389
  function u(d) {
400
- l(d);
401
- const i = r();
402
- if (i) {
390
+ o(d);
391
+ const c = r();
392
+ if (c) {
403
393
  if (d === null) {
404
- i.destroyFilter(t);
394
+ c.destroyFilter(t);
405
395
  return;
406
396
  }
407
- i.setColumnFilterModel(t, {
397
+ c.setColumnFilterModel(t, {
408
398
  type: "equals",
409
399
  filter: d
410
- }), i.onFilterChanged();
400
+ }), c.onFilterChanged();
411
401
  }
412
402
  }
413
403
  return /* @__PURE__ */ s(
@@ -417,14 +407,14 @@ const Qe = ({
417
407
  "aria-label": a ?? n("dataTable.facetFilter.label", "Filter"),
418
408
  className: "ds:flex ds:items-center ds:gap-[var(--spacing-xs)]",
419
409
  children: e.map((d) => {
420
- const i = o === d.value;
410
+ const c = l === d.value;
421
411
  return /* @__PURE__ */ s(
422
412
  L,
423
413
  {
424
414
  type: "button",
425
415
  size: "sm",
426
- intent: i ? "primary" : "secondary",
427
- "aria-pressed": i,
416
+ intent: c ? "primary" : "secondary",
417
+ "aria-pressed": c,
428
418
  onClick: () => u(d.value),
429
419
  children: d.label
430
420
  },
@@ -435,41 +425,41 @@ const Qe = ({
435
425
  );
436
426
  };
437
427
  Qe.displayName = "DataTable.Toolbar.FacetFilter";
438
- const Wt = ["csv", "xlsx", "pdf"];
439
- async function Ht(t, e) {
428
+ const Ut = ["csv", "xlsx", "pdf"];
429
+ async function Kt(t, e) {
440
430
  if (!t) return;
441
- const a = await import("./exceljs.min-DUJ-5CGx.js").then((y) => y.e), n = new a.Workbook(), r = n.addWorksheet("Sheet1"), l = (t.getColumns() ?? []).filter((y) => y.isVisible());
431
+ const a = await import("./exceljs.min-DUJ-5CGx.js").then((v) => v.e), n = new a.Workbook(), r = n.addWorksheet("Sheet1"), o = (t.getColumns() ?? []).filter((v) => v.isVisible());
442
432
  r.addRow(
443
- l.map(
444
- (y) => t.getDisplayNameForColumn(y, null) ?? y.getColId()
433
+ o.map(
434
+ (v) => t.getDisplayNameForColumn(v, null) ?? v.getColId()
445
435
  )
446
- ), t.forEachNodeAfterFilterAndSort((y) => {
447
- y.data && r.addRow(
448
- l.map((C) => {
436
+ ), t.forEachNodeAfterFilterAndSort((v) => {
437
+ v.data && r.addRow(
438
+ o.map((y) => {
449
439
  const f = t.getCellValue({
450
- rowNode: y,
451
- colKey: C,
440
+ rowNode: v,
441
+ colKey: y,
452
442
  useFormatter: !0
453
443
  });
454
444
  return f ?? "";
455
445
  })
456
446
  );
457
447
  });
458
- const u = W("--muted", [240, 240, 240]), d = W("--foreground", [30, 30, 30]), i = r.getRow(1), c = ([y, C, f]) => `${y.toString(16).padStart(2, "0")}${C.toString(16).padStart(2, "0")}${f.toString(16).padStart(2, "0")}`.toUpperCase();
459
- i.eachCell((y) => {
460
- y.font = { bold: !0, color: { argb: `FF${c(d)}` } }, y.fill = {
448
+ const u = W("--muted", [240, 240, 240]), d = W("--foreground", [30, 30, 30]), c = r.getRow(1), i = ([v, y, f]) => `${v.toString(16).padStart(2, "0")}${y.toString(16).padStart(2, "0")}${f.toString(16).padStart(2, "0")}`.toUpperCase();
449
+ c.eachCell((v) => {
450
+ v.font = { bold: !0, color: { argb: `FF${i(d)}` } }, v.fill = {
461
451
  type: "pattern",
462
452
  pattern: "solid",
463
- fgColor: { argb: `FF${c(u)}` }
453
+ fgColor: { argb: `FF${i(u)}` }
464
454
  };
465
455
  });
466
- const p = await n.xlsx.writeBuffer(), v = new Blob([p], {
456
+ const p = await n.xlsx.writeBuffer(), C = new Blob([p], {
467
457
  type: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
468
- }), g = URL.createObjectURL(v), b = document.createElement("a");
458
+ }), g = URL.createObjectURL(C), b = document.createElement("a");
469
459
  b.href = g, b.download = e.fileName, document.body.appendChild(b), b.click(), document.body.removeChild(b), URL.revokeObjectURL(g);
470
460
  }
471
461
  const Xe = Ne(null);
472
- function Qt() {
462
+ function Wt() {
473
463
  const t = Se(Xe);
474
464
  if (!t)
475
465
  throw new Error(
@@ -478,7 +468,7 @@ function Qt() {
478
468
  return t;
479
469
  }
480
470
  const Je = ({ children: t, label: e }) => {
481
- const { t: a } = F(), { getApi: n } = q("DataTable.Toolbar.ExportMenu"), r = z(() => ({ getApi: n }), [n]), o = t ?? Wt.map((l) => /* @__PURE__ */ s(me, { format: l }, l));
471
+ const { t: a } = F(), { getApi: n } = $("DataTable.Toolbar.ExportMenu"), r = z(() => ({ getApi: n }), [n]), l = t ?? Ut.map((o) => /* @__PURE__ */ s(me, { format: o }, o));
482
472
  return /* @__PURE__ */ s(Xe.Provider, { value: r, children: /* @__PURE__ */ E(Y.Root, { children: [
483
473
  /* @__PURE__ */ s(Y.Trigger, { asChild: !0, children: /* @__PURE__ */ s(
484
474
  V,
@@ -491,14 +481,14 @@ const Je = ({ children: t, label: e }) => {
491
481
  "aria-haspopup": "menu"
492
482
  }
493
483
  ) }),
494
- /* @__PURE__ */ s(Y.Content, { align: "end", sideOffset: 4, children: o })
484
+ /* @__PURE__ */ s(Y.Content, { align: "end", sideOffset: 4, children: l })
495
485
  ] }) });
496
486
  };
497
487
  Je.displayName = "DataTable.Toolbar.ExportMenu";
498
- function Xt(t, e) {
488
+ function Ht(t, e) {
499
489
  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");
500
490
  }
501
- function Jt(t) {
491
+ function Qt(t) {
502
492
  return t === "csv" ? /* @__PURE__ */ s(ne, { "aria-hidden": !0, className: "ds:size-4" }) : t === "xlsx" ? /* @__PURE__ */ s(Et, { "aria-hidden": !0, className: "ds:size-4" }) : t === "pdf" ? /* @__PURE__ */ s(ke, { "aria-hidden": !0, className: "ds:size-4" }) : /* @__PURE__ */ s(ne, { "aria-hidden": !0, className: "ds:size-4" });
503
493
  }
504
494
  const me = ({
@@ -507,8 +497,8 @@ const me = ({
507
497
  onClick: a,
508
498
  fileName: n
509
499
  }) => {
510
- const { t: r } = F(), { getApi: o } = Qt(), l = M(() => {
511
- const u = o();
500
+ const { t: r } = F(), { getApi: l } = Wt(), o = M(() => {
501
+ const u = l();
512
502
  if (t === "csv") {
513
503
  u == null || u.exportDataAsCsv();
514
504
  return;
@@ -520,20 +510,20 @@ const me = ({
520
510
  return;
521
511
  }
522
512
  if (t === "xlsx") {
523
- Ht(u, {
513
+ Kt(u, {
524
514
  fileName: n ?? "data-table-export.xlsx"
525
515
  });
526
516
  return;
527
517
  }
528
518
  a == null || a(u);
529
- }, [t, n, a, o]);
530
- return /* @__PURE__ */ s(Y.Item, { onSelect: l, children: /* @__PURE__ */ E("span", { className: "ds:inline-flex ds:items-center ds:gap-[var(--spacing-sm)]", children: [
531
- Jt(t),
532
- /* @__PURE__ */ s("span", { children: e ?? Xt(r, t) })
519
+ }, [t, n, a, l]);
520
+ return /* @__PURE__ */ s(Y.Item, { onSelect: o, children: /* @__PURE__ */ E("span", { className: "ds:inline-flex ds:items-center ds:gap-[var(--spacing-sm)]", children: [
521
+ Qt(t),
522
+ /* @__PURE__ */ s("span", { children: e ?? Ht(r, t) })
533
523
  ] }) });
534
524
  };
535
525
  me.displayName = "DataTable.Toolbar.ExportMenu.Item";
536
- function Zt(t) {
526
+ function Xt(t) {
537
527
  return t ? (t.getColumns() ?? []).map((a) => a.getColDef().hide === void 0 && a.getColId().startsWith("ag-Grid-") ? null : {
538
528
  colId: a.getColId(),
539
529
  displayName: t.getDisplayNameForColumn(a, null) || a.getColId(),
@@ -541,35 +531,35 @@ function Zt(t) {
541
531
  }).filter((a) => a !== null) : [];
542
532
  }
543
533
  const Ze = ({ label: t }) => {
544
- const { t: e } = F(), { getApi: a } = q("DataTable.Toolbar.ColumnToggle"), [n, r] = R(!1), [o, l] = R([]), [u, d] = R(null), [i, c] = R(null);
534
+ const { t: e } = F(), { getApi: a } = $("DataTable.Toolbar.ColumnToggle"), [n, r] = R(!1), [l, o] = R([]), [u, d] = R(null), [c, i] = R(null);
545
535
  P(() => {
546
- n && l(Zt(a()));
536
+ n && o(Xt(a()));
547
537
  }, [n, a]);
548
538
  const p = M(
549
- (b, y) => {
550
- const C = a();
551
- C && (C.setColumnsVisible([b], y), l(
539
+ (b, v) => {
540
+ const y = a();
541
+ y && (y.setColumnsVisible([b], v), o(
552
542
  (f) => f.map(
553
- (m) => m.colId === b ? { ...m, visible: y } : m
543
+ (m) => m.colId === b ? { ...m, visible: v } : m
554
544
  )
555
545
  ));
556
546
  },
557
547
  [a]
558
- ), v = M(
559
- (b, y) => {
560
- if (b === y) return;
561
- const C = a();
562
- if (!C) return;
563
- l((m) => {
564
- const h = m.findIndex((D) => D.colId === b), x = m.findIndex((D) => D.colId === y);
548
+ ), C = M(
549
+ (b, v) => {
550
+ if (b === v) return;
551
+ const y = a();
552
+ if (!y) return;
553
+ o((m) => {
554
+ const h = m.findIndex((D) => D.colId === b), x = m.findIndex((D) => D.colId === v);
565
555
  if (h < 0 || x < 0) return m;
566
556
  const S = [...m], [I] = S.splice(h, 1);
567
557
  return S.splice(x, 0, I), S;
568
558
  });
569
- const f = o.findIndex((m) => m.colId === y);
570
- f >= 0 && C.moveColumns([b], f);
559
+ const f = l.findIndex((m) => m.colId === v);
560
+ f >= 0 && y.moveColumns([b], f);
571
561
  },
572
- [a, o]
562
+ [a, l]
573
563
  ), g = t ?? e("dataTable.columnToggle");
574
564
  return /* @__PURE__ */ E(Z.Root, { open: n, onOpenChange: r, children: [
575
565
  /* @__PURE__ */ s(Z.Trigger, { asChild: !0, children: /* @__PURE__ */ s(
@@ -577,7 +567,7 @@ const Ze = ({ label: t }) => {
577
567
  {
578
568
  type: "button",
579
569
  intent: "outline",
580
- icon: /* @__PURE__ */ s(Gt, { "aria-hidden": !0 }),
570
+ icon: /* @__PURE__ */ s(Rt, { "aria-hidden": !0 }),
581
571
  "aria-label": g,
582
572
  "aria-haspopup": "dialog"
583
573
  }
@@ -589,8 +579,8 @@ const Ze = ({ label: t }) => {
589
579
  {
590
580
  className: "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)]",
591
581
  "aria-label": g,
592
- children: o.map((b) => {
593
- const y = u === b.colId, C = i === b.colId && u !== b.colId;
582
+ children: l.map((b) => {
583
+ const v = u === b.colId, y = c === b.colId && u !== b.colId;
594
584
  return /* @__PURE__ */ E(
595
585
  "li",
596
586
  {
@@ -599,23 +589,23 @@ const Ze = ({ label: t }) => {
599
589
  d(b.colId), f.dataTransfer.effectAllowed = "move", f.dataTransfer.setData("text/plain", b.colId);
600
590
  },
601
591
  onDragOver: (f) => {
602
- f.preventDefault(), f.dataTransfer.dropEffect = "move", c(b.colId);
592
+ f.preventDefault(), f.dataTransfer.dropEffect = "move", i(b.colId);
603
593
  },
604
594
  onDragLeave: () => {
605
- c((f) => f === b.colId ? null : f);
595
+ i((f) => f === b.colId ? null : f);
606
596
  },
607
597
  onDrop: (f) => {
608
598
  f.preventDefault();
609
599
  const m = f.dataTransfer.getData("text/plain");
610
- m && v(m, b.colId), d(null), c(null);
600
+ m && C(m, b.colId), d(null), i(null);
611
601
  },
612
602
  onDragEnd: () => {
613
- d(null), c(null);
603
+ d(null), i(null);
614
604
  },
615
605
  className: [
616
606
  "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",
617
- y ? "ds:opacity-50" : "",
618
- C ? "ds:bg-[color:color-mix(in_srgb,var(--primary)_8%,transparent)]" : ""
607
+ v ? "ds:opacity-50" : "",
608
+ y ? "ds:bg-[color:color-mix(in_srgb,var(--primary)_8%,transparent)]" : ""
619
609
  ].filter(Boolean).join(" "),
620
610
  children: [
621
611
  /* @__PURE__ */ s(
@@ -645,22 +635,22 @@ const Ze = ({ label: t }) => {
645
635
  ] });
646
636
  };
647
637
  Ze.displayName = "DataTable.Toolbar.ColumnToggle";
648
- const Ye = _(
649
- ({ label: t, icon: e, onClick: a, variant: n = "default", size: r = "sm", ...o }, l) => {
650
- const { t: u } = F(), { getApi: d, selectionCount: i } = q(
638
+ const Ye = q(
639
+ ({ label: t, icon: e, onClick: a, variant: n = "default", size: r = "sm", ...l }, o) => {
640
+ const { t: u } = F(), { getApi: d, selectionCount: c } = $(
651
641
  "DataTable.Toolbar.BulkAction"
652
642
  );
653
- return i === 0 ? null : /* @__PURE__ */ E(
643
+ return c === 0 ? null : /* @__PURE__ */ E(
654
644
  L,
655
645
  {
656
- ref: l,
646
+ ref: o,
657
647
  type: "button",
658
648
  intent: n === "destructive" ? "destructive" : "secondary",
659
649
  size: r,
660
- startIcon: Bt(e),
650
+ startIcon: _t(e),
661
651
  onClick: () => a(d()),
662
- "aria-label": `${t} (${u("dataTable.bulkAction", { count: i })})`,
663
- ...o,
652
+ "aria-label": `${t} (${u("dataTable.bulkAction", { count: c })})`,
653
+ ...l,
664
654
  children: [
665
655
  /* @__PURE__ */ s("span", { children: t }),
666
656
  /* @__PURE__ */ s(
@@ -668,7 +658,7 @@ const Ye = _(
668
658
  {
669
659
  "aria-hidden": "true",
670
660
  className: "ds:ms-[var(--spacing-xs)] ds:opacity-80",
671
- children: u("dataTable.bulkAction", { count: i })
661
+ children: u("dataTable.bulkAction", { count: c })
672
662
  }
673
663
  )
674
664
  ]
@@ -677,11 +667,11 @@ const Ye = _(
677
667
  }
678
668
  );
679
669
  Ye.displayName = "DataTable.Toolbar.BulkAction";
680
- const Yt = Object.assign(Je, {
670
+ const Jt = Object.assign(Je, {
681
671
  Item: me
682
- }), te = Object.assign(_e, {
683
- FilterBar: qe,
684
- Actions: $e,
672
+ }), te = Object.assign(qe, {
673
+ FilterBar: $e,
674
+ Actions: _e,
685
675
  /** @deprecated Use `Toolbar.ExportMenu` with a `csv` item. */
686
676
  ExportCsv: Ge,
687
677
  /** @deprecated Use `Toolbar.ExportMenu` with a `pdf` item. */
@@ -693,15 +683,15 @@ const Yt = Object.assign(Je, {
693
683
  Refresh: We,
694
684
  FilterChips: He,
695
685
  FacetFilter: Qe,
696
- ExportMenu: Yt
697
- }), ea = [
686
+ ExportMenu: Jt
687
+ }), Zt = [
698
688
  "contains",
699
689
  "equals",
700
690
  "startsWith",
701
691
  "endsWith",
702
692
  "notContains"
703
693
  ];
704
- function ta(t) {
694
+ function Yt(t) {
705
695
  const e = new Intl.Collator(t, {
706
696
  sensitivity: "base",
707
697
  usage: "search"
@@ -709,9 +699,9 @@ function ta(t) {
709
699
  function a(n, r) {
710
700
  if (r.length === 0) return 0;
711
701
  if (r.length > n.length) return -1;
712
- for (let o = 0; o <= n.length - r.length; o += 1)
713
- if (e.compare(n.slice(o, o + r.length), r) === 0)
714
- return o;
702
+ for (let l = 0; l <= n.length - r.length; l += 1)
703
+ if (e.compare(n.slice(l, l + r.length), r) === 0)
704
+ return l;
715
705
  return -1;
716
706
  }
717
707
  return {
@@ -724,53 +714,53 @@ function ta(t) {
724
714
  ) === 0
725
715
  };
726
716
  }
727
- function aa(t) {
717
+ function ea(t) {
728
718
  return t == null ? null : typeof t == "string" ? t : String(t);
729
719
  }
730
- function na(t) {
731
- const { model: e, onModelChange: a, getValue: n, placeholder: r, defaultOperator: o } = t, { t: l } = F("ui"), u = (e == null ? void 0 : e.type) ?? o ?? "contains", [d, i] = R(u), [c, p] = R((e == null ? void 0 : e.filter) ?? "");
720
+ function ta(t) {
721
+ const { model: e, onModelChange: a, getValue: n, placeholder: r, defaultOperator: l } = t, { t: o } = F("ui"), u = (e == null ? void 0 : e.type) ?? l ?? "contains", [d, c] = R(u), [i, p] = R((e == null ? void 0 : e.filter) ?? "");
732
722
  P(() => {
733
- i((e == null ? void 0 : e.type) ?? o ?? "contains"), p((e == null ? void 0 : e.filter) ?? "");
734
- }, [e, o]);
735
- const v = z(() => ta(It.language), []);
723
+ c((e == null ? void 0 : e.type) ?? l ?? "contains"), p((e == null ? void 0 : e.filter) ?? "");
724
+ }, [e, l]);
725
+ const C = z(() => Yt(It.language), []);
736
726
  J({
737
727
  doesFilterPass: (f) => {
738
728
  const m = e;
739
729
  if (!m || m.filter === "") return !0;
740
- const h = aa(n(f.node));
730
+ const h = ea(n(f.node));
741
731
  if (h === null) return !1;
742
732
  switch (m.type) {
743
733
  case "equals":
744
- return v.equals(h, m.filter);
734
+ return C.equals(h, m.filter);
745
735
  case "contains":
746
- return v.contains(h, m.filter);
736
+ return C.contains(h, m.filter);
747
737
  case "startsWith":
748
- return v.startsWith(h, m.filter);
738
+ return C.startsWith(h, m.filter);
749
739
  case "endsWith":
750
- return v.endsWith(h, m.filter);
740
+ return C.endsWith(h, m.filter);
751
741
  case "notContains":
752
- return !v.contains(h, m.filter);
742
+ return !C.contains(h, m.filter);
753
743
  default:
754
744
  return !0;
755
745
  }
756
746
  }
757
747
  });
758
748
  function g() {
759
- if (c.trim() === "") {
749
+ if (i.trim() === "") {
760
750
  a(null);
761
751
  return;
762
752
  }
763
- a({ type: d, filter: c });
753
+ a({ type: d, filter: i });
764
754
  }
765
755
  function b() {
766
- p(""), i(o ?? "contains"), a(null);
756
+ p(""), c(l ?? "contains"), a(null);
767
757
  }
768
- const y = ea.map(
758
+ const v = Zt.map(
769
759
  (f) => ({
770
760
  value: f,
771
- label: l(`dataTable.textFilter.operators.${f}`)
761
+ label: o(`dataTable.textFilter.operators.${f}`)
772
762
  })
773
- ), C = r ?? l("dataTable.textFilter.placeholder");
763
+ ), y = r ?? o("dataTable.textFilter.placeholder");
774
764
  return /* @__PURE__ */ E(
775
765
  "div",
776
766
  {
@@ -781,41 +771,41 @@ function na(t) {
781
771
  Ee,
782
772
  {
783
773
  size: "sm",
784
- options: y,
774
+ options: v,
785
775
  value: d,
786
776
  onValueChange: (f) => {
787
- f !== "" && i(f);
777
+ f !== "" && c(f);
788
778
  },
789
- "aria-label": l("dataTable.textFilter.operators.contains")
779
+ "aria-label": o("dataTable.textFilter.operators.contains")
790
780
  }
791
781
  ),
792
782
  /* @__PURE__ */ s(
793
783
  fe,
794
784
  {
795
785
  size: "sm",
796
- value: c,
786
+ value: i,
797
787
  onChange: (f) => p(f.target.value),
798
788
  onKeyDown: (f) => {
799
789
  f.key === "Enter" && (f.preventDefault(), g());
800
790
  },
801
- placeholder: C,
802
- "aria-label": C,
791
+ placeholder: y,
792
+ "aria-label": y,
803
793
  startAdornment: /* @__PURE__ */ s(pe, { "aria-hidden": "true", className: "ds:size-4" })
804
794
  }
805
795
  ),
806
796
  /* @__PURE__ */ E("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: [
807
- /* @__PURE__ */ s(L, { intent: "ghost", size: "sm", onClick: b, type: "button", children: l("dataTable.textFilter.clear") }),
808
- /* @__PURE__ */ s(L, { intent: "primary", size: "sm", onClick: g, type: "button", children: l("dataTable.textFilter.apply") })
797
+ /* @__PURE__ */ s(L, { intent: "ghost", size: "sm", onClick: b, type: "button", children: o("dataTable.textFilter.clear") }),
798
+ /* @__PURE__ */ s(L, { intent: "primary", size: "sm", onClick: g, type: "button", children: o("dataTable.textFilter.apply") })
809
799
  ] })
810
800
  ]
811
801
  }
812
802
  );
813
803
  }
814
- function ra(t) {
815
- var p, v;
816
- const { model: e, onModelChange: a, column: n } = t, { t: r } = F("ui"), o = ((v = (p = n == null ? void 0 : n.getColDef) == null ? void 0 : p.call(n)) == null ? void 0 : v.filterParams) ?? {}, l = o.defaultOperator ?? "contains", u = o.placeholder ?? r("dataTable.textFilter.placeholder"), [d, i] = R((e == null ? void 0 : e.filter) ?? "");
804
+ function aa(t) {
805
+ var p, C;
806
+ const { model: e, onModelChange: a, column: n } = t, { t: r } = F("ui"), l = ((C = (p = n == null ? void 0 : n.getColDef) == null ? void 0 : p.call(n)) == null ? void 0 : C.filterParams) ?? {}, o = l.defaultOperator ?? "contains", u = l.placeholder ?? r("dataTable.textFilter.placeholder"), [d, c] = R((e == null ? void 0 : e.filter) ?? "");
817
807
  P(() => {
818
- i((e == null ? void 0 : e.filter) ?? "");
808
+ c((e == null ? void 0 : e.filter) ?? "");
819
809
  }, [e == null ? void 0 : e.filter]), P(() => {
820
810
  if (d === ((e == null ? void 0 : e.filter) ?? "")) return;
821
811
  const g = setTimeout(() => {
@@ -823,19 +813,19 @@ function ra(t) {
823
813
  e && a(null);
824
814
  return;
825
815
  }
826
- a({ type: l, filter: d });
816
+ a({ type: o, filter: d });
827
817
  }, 200);
828
818
  return () => clearTimeout(g);
829
- }, [d, l, e, a]);
830
- function c() {
831
- i(""), e && a(null);
819
+ }, [d, o, e, a]);
820
+ function i() {
821
+ c(""), e && a(null);
832
822
  }
833
823
  return /* @__PURE__ */ s("div", { "data-component": "text-floating-filter", className: "ds:w-full", children: /* @__PURE__ */ s(
834
824
  fe,
835
825
  {
836
826
  size: "sm",
837
827
  value: d,
838
- onChange: (g) => i(g.target.value),
828
+ onChange: (g) => c(g.target.value),
839
829
  placeholder: u,
840
830
  "aria-label": u,
841
831
  startAdornment: /* @__PURE__ */ s(pe, { "aria-hidden": "true", className: "ds:size-4" }),
@@ -844,7 +834,7 @@ function ra(t) {
844
834
  {
845
835
  type: "button",
846
836
  "aria-label": r("dataTable.textFilter.clear"),
847
- onClick: c,
837
+ onClick: i,
848
838
  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",
849
839
  children: /* @__PURE__ */ s(De, { "aria-hidden": "true", className: "ds:size-4" })
850
840
  }
@@ -852,7 +842,7 @@ function ra(t) {
852
842
  }
853
843
  ) });
854
844
  }
855
- const sa = {
845
+ const na = {
856
846
  id: "data-table",
857
847
  capabilities: [
858
848
  "select_single",
@@ -961,7 +951,7 @@ const sa = {
961
951
  }
962
952
  };
963
953
  St.registerModules([wt]);
964
- const oa = xt("ag-theme-alfadocs ds:w-full", {
954
+ const ra = xt("ag-theme-alfadocs ds:w-full", {
965
955
  variants: {
966
956
  density: {
967
957
  default: "",
@@ -978,7 +968,7 @@ const oa = xt("ag-theme-alfadocs ds:w-full", {
978
968
  bordered: !0
979
969
  }
980
970
  });
981
- function la() {
971
+ function sa() {
982
972
  const { t } = F();
983
973
  return z(
984
974
  () => ({
@@ -1012,7 +1002,7 @@ function la() {
1012
1002
  [t]
1013
1003
  );
1014
1004
  }
1015
- function ia() {
1005
+ function la() {
1016
1006
  return /* @__PURE__ */ s(
1017
1007
  "div",
1018
1008
  {
@@ -1030,7 +1020,7 @@ function ia() {
1030
1020
  }
1031
1021
  );
1032
1022
  }
1033
- function ca() {
1023
+ function oa() {
1034
1024
  const { t } = F();
1035
1025
  return /* @__PURE__ */ s(
1036
1026
  Ct,
@@ -1042,7 +1032,7 @@ function ca() {
1042
1032
  }
1043
1033
  );
1044
1034
  }
1045
- function da(t) {
1035
+ function ia(t) {
1046
1036
  try {
1047
1037
  const e = localStorage.getItem(`data-table-col-state:${t}`);
1048
1038
  return e ? JSON.parse(e) : null;
@@ -1050,7 +1040,7 @@ function da(t) {
1050
1040
  return null;
1051
1041
  }
1052
1042
  }
1053
- function ua(t, e) {
1043
+ function ca(t, e) {
1054
1044
  try {
1055
1045
  localStorage.setItem(
1056
1046
  `data-table-col-state:${t}`,
@@ -1059,30 +1049,30 @@ function ua(t, e) {
1059
1049
  } catch {
1060
1050
  }
1061
1051
  }
1062
- function fa(t, e) {
1052
+ function da(t, e) {
1063
1053
  const {
1064
1054
  columnDefs: a,
1065
1055
  rowData: n,
1066
1056
  rowSelection: r,
1067
- pagination: o = !1,
1068
- paginationPageSize: l = 25,
1057
+ pagination: l = !1,
1058
+ paginationPageSize: o = 25,
1069
1059
  paginationPageSizeSelector: u = [10, 25, 50, 100],
1070
1060
  gridId: d,
1071
- onSelectionChanged: i,
1072
- onSortChanged: c,
1061
+ onSelectionChanged: c,
1062
+ onSortChanged: i,
1073
1063
  onFilterChanged: p,
1074
- noRowsOverlay: v,
1064
+ noRowsOverlay: C,
1075
1065
  loadingOverlay: g,
1076
1066
  gridOptions: b,
1077
- density: y,
1078
- bordered: C,
1067
+ density: v,
1068
+ bordered: y,
1079
1069
  heightClass: f = "ds:h-[500px]",
1080
1070
  className: m,
1081
1071
  getRowClass: h,
1082
1072
  pinnedBottomRowData: x,
1083
1073
  printMode: S = !1,
1084
1074
  children: I
1085
- } = t, { t: D, i18n: $ } = F(), k = X(null), [G, tt] = R(0), [se, oe] = R(""), at = la(), le = z(
1075
+ } = t, { t: D, i18n: _ } = F(), k = X(null), [G, tt] = R(0), [se, le] = R(""), at = sa(), oe = z(
1086
1076
  () => ({
1087
1077
  getSelection: () => {
1088
1078
  var w;
@@ -1159,8 +1149,8 @@ function fa(t, e) {
1159
1149
  }),
1160
1150
  []
1161
1151
  );
1162
- yt(e, () => le, [le]), Pt(sa, le, d);
1163
- const nt = $.dir() === "rtl", rt = n === void 0, st = zt(), { resolvedTheme: ge } = At(), ot = (ge === "light-accessible" || ge === "dark-accessible") && y === "compact" ? "default" : y, lt = z(() => {
1152
+ yt(e, () => oe, [oe]), Pt(na, oe, d);
1153
+ const nt = _.dir() === "rtl", rt = n === void 0, st = zt(), { resolvedTheme: ge } = At(), lt = (ge === "light-accessible" || ge === "dark-accessible") && v === "compact" ? "default" : v, ot = z(() => {
1164
1154
  if (r)
1165
1155
  return r === "single" ? { mode: "singleRow" } : {
1166
1156
  mode: "multiRow",
@@ -1170,21 +1160,21 @@ function fa(t, e) {
1170
1160
  }, [r]), it = M(() => {
1171
1161
  var N;
1172
1162
  if (!d || !((N = k.current) != null && N.api)) return;
1173
- const T = da(d);
1163
+ const T = ia(d);
1174
1164
  T && k.current.api.applyColumnState({
1175
1165
  state: T,
1176
1166
  applyOrder: !0
1177
1167
  });
1178
1168
  }, [d]), ie = M(() => {
1179
1169
  var T;
1180
- d && ((T = k.current) != null && T.api) && ua(d, k.current.api);
1170
+ d && ((T = k.current) != null && T.api) && ca(d, k.current.api);
1181
1171
  }, [d]), ct = M(() => {
1182
1172
  var w;
1183
1173
  const T = (w = k.current) == null ? void 0 : w.api;
1184
1174
  if (!T) return;
1185
1175
  const N = T.getSelectedRows();
1186
- tt(N.length), i == null || i(N);
1187
- }, [i]), dt = M(
1176
+ tt(N.length), c == null || c(N);
1177
+ }, [c]), dt = M(
1188
1178
  (T) => {
1189
1179
  var w;
1190
1180
  const N = (w = k.current) == null ? void 0 : w.api;
@@ -1192,18 +1182,18 @@ function fa(t, e) {
1192
1182
  const A = N.getColumnState().find((j) => j.sort);
1193
1183
  if (A) {
1194
1184
  const j = A.colId, B = N.getColumnDef(j), ce = (B == null ? void 0 : B.headerName) ?? j, de = A.sort === "asc" ? "dataTable.sortAscending" : "dataTable.sortDescending";
1195
- oe(
1185
+ le(
1196
1186
  D("dataTable.sortAnnounce", {
1197
1187
  column: ce,
1198
1188
  direction: D(de)
1199
1189
  })
1200
1190
  );
1201
1191
  } else
1202
- oe("");
1192
+ le("");
1203
1193
  }
1204
- c == null || c(T);
1194
+ i == null || i(T);
1205
1195
  },
1206
- [c, D]
1196
+ [i, D]
1207
1197
  ), ut = M(
1208
1198
  (T) => {
1209
1199
  p == null || p(T);
@@ -1212,10 +1202,10 @@ function fa(t, e) {
1212
1202
  );
1213
1203
  P(() => {
1214
1204
  if (!se) return;
1215
- const T = setTimeout(() => oe(""), 3e3);
1205
+ const T = setTimeout(() => le(""), 3e3);
1216
1206
  return () => clearTimeout(T);
1217
1207
  }, [se]);
1218
- const ft = v ?? ca, pt = g ?? ia, mt = M(
1208
+ const ft = C ?? oa, pt = g ?? la, mt = M(
1219
1209
  () => {
1220
1210
  var T;
1221
1211
  return (T = k.current) == null ? void 0 : T.api;
@@ -1223,11 +1213,11 @@ function fa(t, e) {
1223
1213
  []
1224
1214
  ), gt = M(() => {
1225
1215
  typeof window < "u" && window.print();
1226
- }, []), bt = oa({
1227
- density: ot,
1228
- bordered: C,
1216
+ }, []), bt = ra({
1217
+ density: lt,
1218
+ bordered: y,
1229
1219
  className: m
1230
- }), ht = I ?? /* @__PURE__ */ s(te, { children: /* @__PURE__ */ s(te.Actions, { children: /* @__PURE__ */ s(te.ExportMenu, {}) }) }), vt = S ? !1 : o;
1220
+ }), ht = I ?? /* @__PURE__ */ s(te, { children: /* @__PURE__ */ s(te.Actions, { children: /* @__PURE__ */ s(te.ExportMenu, {}) }) }), vt = S ? !1 : l;
1231
1221
  return /* @__PURE__ */ E(
1232
1222
  "div",
1233
1223
  {
@@ -1238,7 +1228,7 @@ function fa(t, e) {
1238
1228
  "data-print-mode": S ? "true" : void 0,
1239
1229
  children: [
1240
1230
  !S && /* @__PURE__ */ s(
1241
- Vt,
1231
+ Gt,
1242
1232
  {
1243
1233
  getApi: mt,
1244
1234
  selectionCount: G,
@@ -1264,8 +1254,8 @@ function fa(t, e) {
1264
1254
  // language instead of AG Grid's stock browser-skinned input.
1265
1255
  // Number / date / select columns opt into their dedicated
1266
1256
  // wrapper per-column.
1267
- filter: na,
1268
- floatingFilterComponent: ra,
1257
+ filter: ta,
1258
+ floatingFilterComponent: aa,
1269
1259
  resizable: !0,
1270
1260
  floatingFilter: !0,
1271
1261
  // §13d — faint sort icon advertises which columns are
@@ -1273,11 +1263,11 @@ function fa(t, e) {
1273
1263
  unSortIcon: !0,
1274
1264
  ...b == null ? void 0 : b.defaultColDef
1275
1265
  },
1276
- rowSelection: lt,
1266
+ rowSelection: ot,
1277
1267
  pagination: vt,
1278
- paginationPageSize: l,
1268
+ paginationPageSize: o,
1279
1269
  paginationPageSizeSelector: u,
1280
- paginationNumberFormatter: (T) => new Intl.NumberFormat($.language).format(T.value),
1270
+ paginationNumberFormatter: (T) => new Intl.NumberFormat(_.language).format(T.value),
1281
1271
  animateRows: !st,
1282
1272
  enableRtl: nt,
1283
1273
  ensureDomOrder: !0,
@@ -1321,21 +1311,21 @@ function fa(t, e) {
1321
1311
  }
1322
1312
  );
1323
1313
  }
1324
- const et = _(fa);
1314
+ const et = q(da);
1325
1315
  et.displayName = "DataTable";
1326
- const Tn = Object.assign(et, {
1316
+ const vn = Object.assign(et, {
1327
1317
  Toolbar: te
1328
1318
  });
1329
- function Cn(t, e, a) {
1319
+ function yn(t, e, a) {
1330
1320
  return z(() => {
1331
1321
  const n = {};
1332
1322
  for (const r of e) {
1333
- let o = 0;
1334
- for (const l of t ?? []) {
1335
- const u = l[r], d = typeof u == "number" ? u : Number(u);
1336
- Number.isFinite(d) && (o += d);
1323
+ let l = 0;
1324
+ for (const o of t ?? []) {
1325
+ const u = o[r], d = typeof u == "number" ? u : Number(u);
1326
+ Number.isFinite(d) && (l += d);
1337
1327
  }
1338
- n[r] = o;
1328
+ n[r] = l;
1339
1329
  }
1340
1330
  return a != null && a.labelField && a.labelValue !== void 0 && (n[a.labelField] = a.labelValue), n;
1341
1331
  }, [t, e, a == null ? void 0 : a.labelField, a == null ? void 0 : a.labelValue]);
@@ -1348,57 +1338,66 @@ function Q(t) {
1348
1338
  const e = new Date(t);
1349
1339
  return Number.isNaN(e.getTime()) ? void 0 : e;
1350
1340
  }
1351
- function xn(t) {
1352
- const { model: e, onModelChange: a, getValue: n, doesRowPassOtherFilter: r } = t, o = {
1341
+ function Tn(t) {
1342
+ const { model: e, onModelChange: a, getValue: n, doesRowPassOtherFilter: r } = t, l = {
1353
1343
  from: Q(e == null ? void 0 : e.dateFrom),
1354
1344
  to: Q(e == null ? void 0 : e.dateTo)
1355
- }, [l, u] = R(o);
1345
+ }, [o, u] = R(l);
1356
1346
  J({
1357
- doesFilterPass: (i) => {
1358
- const c = n(i.node);
1359
- if (!c) return !1;
1360
- const p = c instanceof Date ? c : Q(String(c));
1361
- return !(!p || l.from && p < l.from || l.to && p > l.to);
1347
+ doesFilterPass: (c) => {
1348
+ const i = n(c.node);
1349
+ if (!i) return !1;
1350
+ const p = i instanceof Date ? i : Q(String(i));
1351
+ return !(!p || o.from && p < o.from || o.to && p > o.to);
1362
1352
  }
1363
1353
  });
1364
- function d(i) {
1365
- if (u(i), !i.from && !i.to) {
1354
+ function d(c) {
1355
+ if (u(c), !c.from && !c.to) {
1366
1356
  a(null);
1367
1357
  return;
1368
1358
  }
1369
1359
  a({
1370
1360
  type: "inRange",
1371
- dateFrom: re(i.from),
1372
- dateTo: re(i.to)
1361
+ dateFrom: re(c.from),
1362
+ dateTo: re(c.to)
1373
1363
  });
1374
1364
  }
1375
- return /* @__PURE__ */ s("div", { className: "ds:p-[var(--spacing-sm)] ds:min-w-[280px]", children: /* @__PURE__ */ s(Ie, { value: l, onChange: d, size: "sm" }) });
1365
+ return /* @__PURE__ */ s("div", { className: "ds:p-[var(--spacing-sm)] ds:min-w-[280px]", children: /* @__PURE__ */ s(Ie, { value: o, onChange: d, size: "sm" }) });
1376
1366
  }
1377
- function Nn(t) {
1378
- const { model: e, onModelChange: a } = t, [n, r] = R({
1367
+ function Cn(t) {
1368
+ var d, c;
1369
+ const { model: e, onModelChange: a, column: n } = t, r = ((c = (d = n == null ? void 0 : n.getColDef) == null ? void 0 : d.call(n)) == null ? void 0 : c.filterParams) ?? {}, [l, o] = R({
1379
1370
  from: Q(e == null ? void 0 : e.dateFrom),
1380
1371
  to: Q(e == null ? void 0 : e.dateTo)
1381
1372
  });
1382
- function o(l) {
1383
- if (r(l), !l.from && !l.to) {
1373
+ function u(i) {
1374
+ if (o(i), !i.from && !i.to) {
1384
1375
  a(null);
1385
1376
  return;
1386
1377
  }
1387
1378
  a({
1388
1379
  type: "inRange",
1389
- dateFrom: re(l.from),
1390
- dateTo: re(l.to)
1380
+ dateFrom: re(i.from),
1381
+ dateTo: re(i.to)
1391
1382
  });
1392
1383
  }
1393
- return /* @__PURE__ */ s("div", { "data-component": "date-range-floating-filter", className: "ds:w-full", children: /* @__PURE__ */ s(Ie, { value: n, onChange: o, size: "sm" }) });
1384
+ return /* @__PURE__ */ s("div", { "data-component": "date-range-floating-filter", className: "ds:w-full", children: /* @__PURE__ */ s(
1385
+ Ie,
1386
+ {
1387
+ value: l,
1388
+ onChange: u,
1389
+ size: "sm",
1390
+ placeholder: r.placeholder
1391
+ }
1392
+ ) });
1394
1393
  }
1395
1394
  function K(t) {
1396
1395
  return typeof t == "number" ? `n:${t}` : `s:${t}`;
1397
1396
  }
1398
- function Sn(t) {
1399
- const { model: e, onModelChange: a, getValue: n, api: r, column: o, options: l, placeholder: u } = t, { t: d } = F("ui"), i = z(() => {
1400
- if (l && l.length > 0) return l;
1401
- if (!r || !o) return [];
1397
+ function xn(t) {
1398
+ const { model: e, onModelChange: a, getValue: n, api: r, column: l, options: o, placeholder: u } = t, { t: d } = F("ui"), c = z(() => {
1399
+ if (o && o.length > 0) return o;
1400
+ if (!r || !l) return [];
1402
1401
  const f = /* @__PURE__ */ new Map();
1403
1402
  return r.forEachNode((m) => {
1404
1403
  const h = n(m);
@@ -1408,14 +1407,14 @@ function Sn(t) {
1408
1407
  }), Array.from(f.values()).sort(
1409
1408
  (m, h) => String(m.label).localeCompare(String(h.label))
1410
1409
  );
1411
- }, [l, r, o, n]), c = z(() => {
1410
+ }, [o, r, l, n]), i = z(() => {
1412
1411
  const f = /* @__PURE__ */ new Set(), m = (e == null ? void 0 : e.values) ?? [];
1413
1412
  for (const h of m) f.add(K(h));
1414
1413
  return f;
1415
- }, [e]), [p, v] = R(c);
1414
+ }, [e]), [p, C] = R(i);
1416
1415
  P(() => {
1417
- v(c);
1418
- }, [c]), J({
1416
+ C(i);
1417
+ }, [i]), J({
1419
1418
  doesFilterPass: (f) => {
1420
1419
  const m = e == null ? void 0 : e.values;
1421
1420
  if (!m || m.length === 0) return !0;
@@ -1426,7 +1425,7 @@ function Sn(t) {
1426
1425
  }
1427
1426
  });
1428
1427
  function g(f) {
1429
- v((m) => {
1428
+ C((m) => {
1430
1429
  const h = new Set(m);
1431
1430
  return h.has(f) ? h.delete(f) : h.add(f), h;
1432
1431
  });
@@ -1437,14 +1436,14 @@ function Sn(t) {
1437
1436
  return;
1438
1437
  }
1439
1438
  const f = [];
1440
- for (const m of i)
1439
+ for (const m of c)
1441
1440
  p.has(K(m.value)) && f.push(m.value);
1442
1441
  a({ type: "set", values: f });
1443
1442
  }
1444
- function y() {
1445
- v(/* @__PURE__ */ new Set()), a(null);
1443
+ function v() {
1444
+ C(/* @__PURE__ */ new Set()), a(null);
1446
1445
  }
1447
- const C = u ?? d("dataTable.selectFilter.all");
1446
+ const y = u ?? d("dataTable.selectFilter.all");
1448
1447
  return /* @__PURE__ */ E(
1449
1448
  "div",
1450
1449
  {
@@ -1455,9 +1454,9 @@ function Sn(t) {
1455
1454
  "div",
1456
1455
  {
1457
1456
  role: "group",
1458
- "aria-label": C,
1457
+ "aria-label": y,
1459
1458
  className: "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)] ds:max-h-[240px] ds:overflow-y-auto",
1460
- children: i.length === 0 ? /* @__PURE__ */ s("p", { className: "ds:text-[length:var(--font-size-sm)] ds:text-[var(--muted-foreground)] ds:py-[var(--spacing-xs)]", children: d("dataTable.agGrid.noRowsToShow") }) : i.map((f) => {
1459
+ children: c.length === 0 ? /* @__PURE__ */ s("p", { className: "ds:text-[length:var(--font-size-sm)] ds:text-[var(--muted-foreground)] ds:py-[var(--spacing-xs)]", children: d("dataTable.agGrid.noRowsToShow") }) : c.map((f) => {
1461
1460
  const m = K(f.value);
1462
1461
  return /* @__PURE__ */ s(
1463
1462
  Re,
@@ -1473,49 +1472,50 @@ function Sn(t) {
1473
1472
  }
1474
1473
  ),
1475
1474
  /* @__PURE__ */ E("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: [
1476
- /* @__PURE__ */ s(L, { intent: "ghost", size: "sm", onClick: y, type: "button", children: d("dataTable.selectFilter.clear") }),
1475
+ /* @__PURE__ */ s(L, { intent: "ghost", size: "sm", onClick: v, type: "button", children: d("dataTable.selectFilter.clear") }),
1477
1476
  /* @__PURE__ */ s(L, { intent: "primary", size: "sm", onClick: b, type: "button", children: d("dataTable.selectFilter.apply") })
1478
1477
  ] })
1479
1478
  ]
1480
1479
  }
1481
1480
  );
1482
1481
  }
1483
- function wn(t) {
1484
- var c, p;
1485
- const { model: e, onModelChange: a, column: n } = t, r = ((p = (c = n == null ? void 0 : n.getColDef) == null ? void 0 : c.call(n)) == null ? void 0 : p.filterParams) ?? {}, o = r.options ?? [], l = z(() => {
1486
- const v = /* @__PURE__ */ new Map();
1487
- for (const g of o) v.set(String(g.value), g.value);
1488
- return v;
1489
- }, [o]), u = z(
1490
- () => o.map((v) => ({
1491
- value: String(v.value),
1492
- label: v.label
1482
+ function Nn(t) {
1483
+ var C;
1484
+ const { model: e, onModelChange: a, column: n } = t, r = (C = n == null ? void 0 : n.getColDef) == null ? void 0 : C.call(n), l = (r == null ? void 0 : r.filterParams) ?? {}, o = l.options ?? [], u = l.placeholder ?? (typeof (r == null ? void 0 : r.headerName) == "string" ? r.headerName : void 0), d = z(() => {
1485
+ const g = /* @__PURE__ */ new Map();
1486
+ for (const b of o) g.set(String(b.value), b.value);
1487
+ return g;
1488
+ }, [o]), c = z(
1489
+ () => o.map((g) => ({
1490
+ value: String(g.value),
1491
+ label: g.label
1493
1492
  })),
1494
1493
  [o]
1495
- ), d = z(
1496
- () => ((e == null ? void 0 : e.values) ?? []).map((v) => String(v)),
1494
+ ), i = z(
1495
+ () => ((e == null ? void 0 : e.values) ?? []).map((g) => String(g)),
1497
1496
  [e]
1498
1497
  );
1499
- function i(v) {
1500
- if (v.length === 0) {
1498
+ function p(g) {
1499
+ if (g.length === 0) {
1501
1500
  a(null);
1502
1501
  return;
1503
1502
  }
1504
- const g = [];
1505
- for (const b of v) {
1506
- const y = l.get(b);
1507
- y !== void 0 && g.push(y);
1503
+ const b = [];
1504
+ for (const v of g) {
1505
+ const y = d.get(v);
1506
+ y !== void 0 && b.push(y);
1508
1507
  }
1509
- a({ type: "set", values: g });
1508
+ a({ type: "set", values: b });
1510
1509
  }
1511
1510
  return /* @__PURE__ */ s("div", { "data-component": "select-floating-filter", className: "ds:w-full", children: /* @__PURE__ */ s(
1512
1511
  Ot,
1513
1512
  {
1514
1513
  size: "sm",
1515
- options: u,
1516
- value: d,
1517
- onChange: i,
1518
- placeholder: r.placeholder,
1514
+ options: c,
1515
+ value: i,
1516
+ onChange: p,
1517
+ placeholder: l.placeholder,
1518
+ "aria-label": u,
1519
1519
  allowClear: !0
1520
1520
  }
1521
1521
  ) });
@@ -1523,19 +1523,19 @@ function wn(t) {
1523
1523
  function H(t) {
1524
1524
  return t.trim().toLocaleLowerCase();
1525
1525
  }
1526
- function Fn(t) {
1526
+ function Sn(t) {
1527
1527
  const {
1528
1528
  model: e,
1529
1529
  onModelChange: a,
1530
1530
  getValue: n,
1531
1531
  api: r,
1532
- column: o,
1533
- options: l,
1532
+ column: l,
1533
+ options: o,
1534
1534
  loadOptions: u,
1535
1535
  placeholder: d
1536
- } = t, { t: i } = F("ui"), c = z(() => {
1537
- if (l && l.length > 0) return l;
1538
- if (!r || !o) return [];
1536
+ } = t, { t: c } = F("ui"), i = z(() => {
1537
+ if (o && o.length > 0) return o;
1538
+ if (!r || !l) return [];
1539
1539
  const m = /* @__PURE__ */ new Map();
1540
1540
  return r.forEachNode((h) => {
1541
1541
  const x = n(h);
@@ -1545,12 +1545,12 @@ function Fn(t) {
1545
1545
  }), Array.from(m.values()).sort(
1546
1546
  (h, x) => h.label.localeCompare(x.label)
1547
1547
  );
1548
- }, [l, r, o, n]), p = z(() => async (m, h) => {
1548
+ }, [o, r, l, n]), p = z(() => async (m, h) => {
1549
1549
  if (u)
1550
1550
  return (await u(m, h)).map((D) => ({ value: D.value, label: D.label }));
1551
1551
  const x = H(m);
1552
- return (x ? c.filter((I) => H(I.label).includes(x)) : c).slice(0, 50).map((I) => ({ value: I.value, label: I.label }));
1553
- }, [u, c]), [v, g] = R((e == null ? void 0 : e.value) ?? "");
1552
+ return (x ? i.filter((I) => H(I.label).includes(x)) : i).slice(0, 50).map((I) => ({ value: I.value, label: I.label }));
1553
+ }, [u, i]), [C, g] = R((e == null ? void 0 : e.value) ?? "");
1554
1554
  P(() => {
1555
1555
  g((e == null ? void 0 : e.value) ?? "");
1556
1556
  }, [e == null ? void 0 : e.value]), J({
@@ -1566,13 +1566,13 @@ function Fn(t) {
1566
1566
  function b(m) {
1567
1567
  g(m.label), a({ type: "equals", value: m.value });
1568
1568
  }
1569
- function y(m) {
1569
+ function v(m) {
1570
1570
  g(m), m === "" && e && a(null);
1571
1571
  }
1572
- function C() {
1572
+ function y() {
1573
1573
  g(""), a(null);
1574
1574
  }
1575
- const f = d ?? i("dataTable.typeaheadFilter.placeholder");
1575
+ const f = d ?? c("dataTable.typeaheadFilter.placeholder");
1576
1576
  return /* @__PURE__ */ E(
1577
1577
  "div",
1578
1578
  {
@@ -1583,50 +1583,50 @@ function Fn(t) {
1583
1583
  ze,
1584
1584
  {
1585
1585
  size: "sm",
1586
- value: v,
1587
- onChange: y,
1586
+ value: C,
1587
+ onChange: v,
1588
1588
  onSelect: b,
1589
1589
  loadOptions: p,
1590
1590
  placeholder: f,
1591
1591
  "aria-label": f
1592
1592
  }
1593
1593
  ),
1594
- /* @__PURE__ */ s("div", { className: "ds:flex ds:items-center ds:justify-end ds:pt-[var(--spacing-xs)] ds:border-t ds:border-[var(--border)]", children: /* @__PURE__ */ s(L, { intent: "ghost", size: "sm", onClick: C, type: "button", children: i("dataTable.typeaheadFilter.clear") }) })
1594
+ /* @__PURE__ */ s("div", { className: "ds:flex ds:items-center ds:justify-end ds:pt-[var(--spacing-xs)] ds:border-t ds:border-[var(--border)]", children: /* @__PURE__ */ s(L, { intent: "ghost", size: "sm", onClick: y, type: "button", children: c("dataTable.typeaheadFilter.clear") }) })
1595
1595
  ]
1596
1596
  }
1597
1597
  );
1598
1598
  }
1599
- function Rn(t) {
1600
- var b, y;
1601
- const { model: e, onModelChange: a, column: n } = t, { t: r } = F("ui"), o = ((y = (b = n == null ? void 0 : n.getColDef) == null ? void 0 : b.call(n)) == null ? void 0 : y.filterParams) ?? {}, l = o.options ?? [], u = o.loadOptions, d = o.placeholder ?? r("dataTable.typeaheadFilter.placeholder"), i = z(() => async (C, f) => {
1599
+ function wn(t) {
1600
+ var b, v;
1601
+ const { model: e, onModelChange: a, column: n } = t, { t: r } = F("ui"), l = ((v = (b = n == null ? void 0 : n.getColDef) == null ? void 0 : b.call(n)) == null ? void 0 : v.filterParams) ?? {}, o = l.options ?? [], u = l.loadOptions, d = l.placeholder ?? r("dataTable.typeaheadFilter.placeholder"), c = z(() => async (y, f) => {
1602
1602
  if (u)
1603
- return (await u(C, f)).map((S) => ({ value: S.value, label: S.label }));
1604
- const m = H(C);
1605
- return (m ? l.filter((x) => H(x.label).includes(m)) : l).slice(0, 50).map((x) => ({ value: x.value, label: x.label }));
1606
- }, [u, l]), [c, p] = R((e == null ? void 0 : e.value) ?? "");
1603
+ return (await u(y, f)).map((S) => ({ value: S.value, label: S.label }));
1604
+ const m = H(y);
1605
+ return (m ? o.filter((x) => H(x.label).includes(m)) : o).slice(0, 50).map((x) => ({ value: x.value, label: x.label }));
1606
+ }, [u, o]), [i, p] = R((e == null ? void 0 : e.value) ?? "");
1607
1607
  P(() => {
1608
1608
  p((e == null ? void 0 : e.value) ?? "");
1609
1609
  }, [e == null ? void 0 : e.value]);
1610
- function v(C) {
1611
- p(C.label), a({ type: "equals", value: C.value });
1610
+ function C(y) {
1611
+ p(y.label), a({ type: "equals", value: y.value });
1612
1612
  }
1613
- function g(C) {
1614
- p(C), C === "" && e && a(null);
1613
+ function g(y) {
1614
+ p(y), y === "" && e && a(null);
1615
1615
  }
1616
1616
  return /* @__PURE__ */ s("div", { "data-component": "typeahead-floating-filter", className: "ds:w-full", children: /* @__PURE__ */ s(
1617
1617
  ze,
1618
1618
  {
1619
1619
  size: "sm",
1620
- value: c,
1620
+ value: i,
1621
1621
  onChange: g,
1622
- onSelect: v,
1623
- loadOptions: i,
1622
+ onSelect: C,
1623
+ loadOptions: c,
1624
1624
  placeholder: d,
1625
1625
  "aria-label": d
1626
1626
  }
1627
1627
  ) });
1628
1628
  }
1629
- const pa = [
1629
+ const ua = [
1630
1630
  "equals",
1631
1631
  "notEqual",
1632
1632
  "greaterThan",
@@ -1643,7 +1643,7 @@ function ve(t) {
1643
1643
  function ye(t) {
1644
1644
  return t === "inRange";
1645
1645
  }
1646
- function ma(t, e, a, n) {
1646
+ function fa(t, e, a, n) {
1647
1647
  if (t === "blank") return e === null;
1648
1648
  if (t === "notBlank") return e !== null;
1649
1649
  if (e === null) return !1;
@@ -1663,56 +1663,56 @@ function ma(t, e, a, n) {
1663
1663
  return e <= a;
1664
1664
  case "inRange": {
1665
1665
  if (n === null) return e >= a;
1666
- const r = Math.min(a, n), o = Math.max(a, n);
1667
- return e >= r && e <= o;
1666
+ const r = Math.min(a, n), l = Math.max(a, n);
1667
+ return e >= r && e <= l;
1668
1668
  }
1669
1669
  default:
1670
1670
  return !0;
1671
1671
  }
1672
1672
  }
1673
- function ga(t) {
1673
+ function pa(t) {
1674
1674
  if (t == null || t === "") return null;
1675
1675
  const e = typeof t == "number" ? t : Number(t);
1676
1676
  return Number.isNaN(e) ? null : e;
1677
1677
  }
1678
- function Dn(t) {
1678
+ function Fn(t) {
1679
1679
  const {
1680
1680
  model: e,
1681
1681
  onModelChange: a,
1682
1682
  getValue: n,
1683
1683
  defaultOperator: r,
1684
- min: o,
1685
- max: l,
1684
+ min: l,
1685
+ max: o,
1686
1686
  step: u,
1687
1687
  placeholder: d
1688
- } = t, { t: i } = F("ui"), c = (e == null ? void 0 : e.type) ?? r ?? "equals", [p, v] = R(c), [g, b] = R((e == null ? void 0 : e.filter) ?? null), [y, C] = R(
1688
+ } = t, { t: c } = F("ui"), i = (e == null ? void 0 : e.type) ?? r ?? "equals", [p, C] = R(i), [g, b] = R((e == null ? void 0 : e.filter) ?? null), [v, y] = R(
1689
1689
  (e == null ? void 0 : e.filterTo) ?? null
1690
1690
  );
1691
1691
  P(() => {
1692
1692
  if (e === null) {
1693
- v(r ?? "equals"), b(null), C(null);
1693
+ C(r ?? "equals"), b(null), y(null);
1694
1694
  return;
1695
1695
  }
1696
- v(e.type), b(e.filter ?? null), C(e.filterTo ?? null);
1696
+ C(e.type), b(e.filter ?? null), y(e.filterTo ?? null);
1697
1697
  }, [e, r]), J({
1698
1698
  doesFilterPass: (D) => {
1699
1699
  if (!e) return !0;
1700
- const $ = ga(n(D.node));
1701
- return ma(
1700
+ const _ = pa(n(D.node));
1701
+ return fa(
1702
1702
  e.type,
1703
- $,
1703
+ _,
1704
1704
  e.filter ?? null,
1705
1705
  e.filterTo ?? null
1706
1706
  );
1707
1707
  }
1708
1708
  });
1709
1709
  const f = z(
1710
- () => pa.map((D) => ({
1710
+ () => ua.map((D) => ({
1711
1711
  value: D,
1712
- label: i(`dataTable.numberFilter.operators.${D}`)
1712
+ label: c(`dataTable.numberFilter.operators.${D}`)
1713
1713
  })),
1714
- [i]
1715
- ), m = d ?? i("dataTable.numberFilter.placeholder");
1714
+ [c]
1715
+ ), m = d ?? c("dataTable.numberFilter.placeholder");
1716
1716
  function h() {
1717
1717
  if (!ve(p)) {
1718
1718
  a({ type: p, filter: 0 });
@@ -1726,14 +1726,14 @@ function Dn(t) {
1726
1726
  a({
1727
1727
  type: p,
1728
1728
  filter: g,
1729
- filterTo: y ?? void 0
1729
+ filterTo: v ?? void 0
1730
1730
  });
1731
1731
  return;
1732
1732
  }
1733
1733
  a({ type: p, filter: g });
1734
1734
  }
1735
1735
  function x() {
1736
- v(r ?? "equals"), b(null), C(null), a(null);
1736
+ C(r ?? "equals"), b(null), y(null), a(null);
1737
1737
  }
1738
1738
  const S = ve(p), I = ye(p);
1739
1739
  return /* @__PURE__ */ E(
@@ -1749,9 +1749,9 @@ function Dn(t) {
1749
1749
  options: f,
1750
1750
  value: p,
1751
1751
  onValueChange: (D) => {
1752
- D !== "" && v(D);
1752
+ D !== "" && C(D);
1753
1753
  },
1754
- "aria-label": i("dataTable.numberFilter.operators.equals")
1754
+ "aria-label": c("dataTable.numberFilter.operators.equals")
1755
1755
  }
1756
1756
  ),
1757
1757
  S && !I && /* @__PURE__ */ s(
@@ -1760,8 +1760,8 @@ function Dn(t) {
1760
1760
  size: "sm",
1761
1761
  value: g,
1762
1762
  onChange: b,
1763
- min: o,
1764
- max: l,
1763
+ min: l,
1764
+ max: o,
1765
1765
  step: u,
1766
1766
  placeholder: m,
1767
1767
  "aria-label": m
@@ -1774,80 +1774,80 @@ function Dn(t) {
1774
1774
  size: "sm",
1775
1775
  value: g,
1776
1776
  onChange: b,
1777
- min: o,
1778
- max: l,
1777
+ min: l,
1778
+ max: o,
1779
1779
  step: u,
1780
- placeholder: i("dataTable.numberFilter.from"),
1781
- "aria-label": i("dataTable.numberFilter.from")
1780
+ placeholder: c("dataTable.numberFilter.from"),
1781
+ "aria-label": c("dataTable.numberFilter.from")
1782
1782
  }
1783
1783
  ),
1784
1784
  /* @__PURE__ */ s(
1785
1785
  ee,
1786
1786
  {
1787
1787
  size: "sm",
1788
- value: y,
1789
- onChange: C,
1790
- min: o,
1791
- max: l,
1788
+ value: v,
1789
+ onChange: y,
1790
+ min: l,
1791
+ max: o,
1792
1792
  step: u,
1793
- placeholder: i("dataTable.numberFilter.to"),
1794
- "aria-label": i("dataTable.numberFilter.to")
1793
+ placeholder: c("dataTable.numberFilter.to"),
1794
+ "aria-label": c("dataTable.numberFilter.to")
1795
1795
  }
1796
1796
  )
1797
1797
  ] }),
1798
1798
  /* @__PURE__ */ E("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: [
1799
- /* @__PURE__ */ s(L, { intent: "ghost", size: "sm", onClick: x, type: "button", children: i("dataTable.numberFilter.clear") }),
1800
- /* @__PURE__ */ s(L, { intent: "primary", size: "sm", onClick: h, type: "button", children: i("dataTable.numberFilter.apply") })
1799
+ /* @__PURE__ */ s(L, { intent: "ghost", size: "sm", onClick: x, type: "button", children: c("dataTable.numberFilter.clear") }),
1800
+ /* @__PURE__ */ s(L, { intent: "primary", size: "sm", onClick: h, type: "button", children: c("dataTable.numberFilter.apply") })
1801
1801
  ] })
1802
1802
  ]
1803
1803
  }
1804
1804
  );
1805
1805
  }
1806
- function kn(t) {
1807
- var c, p;
1808
- const { model: e, onModelChange: a, column: n } = t, { t: r } = F("ui"), o = ((p = (c = n == null ? void 0 : n.getColDef) == null ? void 0 : c.call(n)) == null ? void 0 : p.filterParams) ?? {}, l = o.defaultOperator ?? "equals", u = o.placeholder ?? r("dataTable.numberFilter.placeholder"), [d, i] = R((e == null ? void 0 : e.filter) ?? null);
1806
+ function Rn(t) {
1807
+ var i, p;
1808
+ const { model: e, onModelChange: a, column: n } = t, { t: r } = F("ui"), l = ((p = (i = n == null ? void 0 : n.getColDef) == null ? void 0 : i.call(n)) == null ? void 0 : p.filterParams) ?? {}, o = l.defaultOperator ?? "equals", u = l.placeholder ?? r("dataTable.numberFilter.placeholder"), [d, c] = R((e == null ? void 0 : e.filter) ?? null);
1809
1809
  return P(() => {
1810
- i((e == null ? void 0 : e.filter) ?? null);
1810
+ c((e == null ? void 0 : e.filter) ?? null);
1811
1811
  }, [e == null ? void 0 : e.filter]), P(() => {
1812
1812
  if (d === ((e == null ? void 0 : e.filter) ?? null)) return;
1813
- const v = setTimeout(() => {
1813
+ const C = setTimeout(() => {
1814
1814
  if (d === null || Number.isNaN(d)) {
1815
1815
  a(null);
1816
1816
  return;
1817
1817
  }
1818
- a({ type: l, filter: d });
1818
+ a({ type: o, filter: d });
1819
1819
  }, 200);
1820
- return () => clearTimeout(v);
1821
- }, [d, l]), /* @__PURE__ */ s("div", { "data-component": "number-floating-filter", className: "ds:w-full", children: /* @__PURE__ */ s(
1820
+ return () => clearTimeout(C);
1821
+ }, [d, o]), /* @__PURE__ */ s("div", { "data-component": "number-floating-filter", className: "ds:w-full", children: /* @__PURE__ */ s(
1822
1822
  ee,
1823
1823
  {
1824
1824
  size: "sm",
1825
1825
  value: d,
1826
- onChange: i,
1827
- min: o.min,
1828
- max: o.max,
1829
- step: o.step,
1826
+ onChange: c,
1827
+ min: l.min,
1828
+ max: l.max,
1829
+ step: l.step,
1830
1830
  placeholder: u,
1831
1831
  "aria-label": u
1832
1832
  }
1833
1833
  ) });
1834
1834
  }
1835
- function En(t) {
1835
+ function Dn(t) {
1836
1836
  const { value: e, variantMap: a } = t, n = (a == null ? void 0 : a[e]) ?? "neutral";
1837
1837
  return /* @__PURE__ */ s(Mt, { variant: n, withDot: !0, size: "sm", children: String(e ?? "") });
1838
1838
  }
1839
- function In(t) {
1839
+ function kn(t) {
1840
1840
  const { value: e } = t;
1841
1841
  return e ? /* @__PURE__ */ E("span", { className: "ds:inline-flex ds:items-center ds:gap-[var(--spacing-sm)]", children: [
1842
1842
  /* @__PURE__ */ s(Ae, { name: e.name, src: e.src, size: "sm" }),
1843
1843
  /* @__PURE__ */ s("span", { children: e.name })
1844
1844
  ] }) : null;
1845
1845
  }
1846
- const ba = {
1846
+ const ma = {
1847
1847
  sm: "ds:size-8",
1848
1848
  md: "ds:size-10",
1849
1849
  lg: "ds:size-12"
1850
- }, ha = {
1850
+ }, ga = {
1851
1851
  square: "ds:rounded-none",
1852
1852
  rounded: "ds:rounded-[var(--radius-md)]",
1853
1853
  circle: "ds:rounded-[var(--radius-full)]"
@@ -1857,47 +1857,47 @@ function ue(t, e) {
1857
1857
  const a = t[e];
1858
1858
  return typeof a == "string" ? a : void 0;
1859
1859
  }
1860
- const va = /^(?:https?:|data:image\/)/i;
1861
- function ya(t) {
1860
+ const ba = /^(?:https?:|data:image\/)/i;
1861
+ function ha(t) {
1862
1862
  if (!t) return;
1863
1863
  const e = t.trim();
1864
1864
  if (e.length !== 0)
1865
- return va.test(e) ? e : void 0;
1865
+ return ba.test(e) ? e : void 0;
1866
1866
  }
1867
- function zn(t) {
1867
+ function En(t) {
1868
1868
  const {
1869
1869
  data: e,
1870
1870
  srcField: a,
1871
1871
  altField: n,
1872
1872
  fallbackField: r,
1873
- size: o = "md",
1874
- shape: l = "rounded"
1873
+ size: l = "md",
1874
+ shape: o = "rounded"
1875
1875
  } = t;
1876
1876
  if (!e) return null;
1877
- const u = ue(e, a), d = ya(u), i = n ? ue(e, n) ?? "" : "", c = r ? ue(e, r) : void 0;
1877
+ const u = ue(e, a), d = ha(u), c = n ? ue(e, n) ?? "" : "", i = r ? ue(e, r) : void 0;
1878
1878
  return d ? /* @__PURE__ */ s(
1879
1879
  "img",
1880
1880
  {
1881
1881
  src: d,
1882
- alt: i,
1882
+ alt: c,
1883
1883
  loading: "lazy",
1884
1884
  decoding: "async",
1885
- className: ["ds:object-cover", ba[o], ha[l]].join(
1885
+ className: ["ds:object-cover", ma[l], ga[o]].join(
1886
1886
  " "
1887
1887
  )
1888
1888
  }
1889
- ) : c ? /* @__PURE__ */ s(Ae, { name: c, size: o }) : null;
1889
+ ) : i ? /* @__PURE__ */ s(Ae, { name: i, size: l }) : null;
1890
1890
  }
1891
- function An(t) {
1891
+ function In(t) {
1892
1892
  const { value: e, maxVisible: a = 3 } = t, { t: n } = F();
1893
1893
  if (!Array.isArray(e) || e.length === 0) return null;
1894
- const r = e.slice(0, a), o = e.length - a;
1894
+ const r = e.slice(0, a), l = e.length - a;
1895
1895
  return /* @__PURE__ */ E("span", { className: "ds:inline-flex ds:flex-wrap ds:items-center ds:gap-[var(--spacing-xs)]", children: [
1896
- r.map((l) => /* @__PURE__ */ s(ae, { label: l, size: "sm" }, l)),
1897
- o > 0 && /* @__PURE__ */ s(jt, { label: e.slice(a).join(", "), children: /* @__PURE__ */ s(
1896
+ r.map((o) => /* @__PURE__ */ s(ae, { label: o, size: "sm" }, o)),
1897
+ l > 0 && /* @__PURE__ */ s(jt, { label: e.slice(a).join(", "), children: /* @__PURE__ */ s(
1898
1898
  ae,
1899
1899
  {
1900
- label: n("inputs.multiSelect.overflow", { count: o }),
1900
+ label: n("inputs.multiSelect.overflow", { count: l }),
1901
1901
  size: "sm",
1902
1902
  variant: "neutral",
1903
1903
  fill: "outline"
@@ -1905,7 +1905,7 @@ function An(t) {
1905
1905
  ) })
1906
1906
  ] });
1907
1907
  }
1908
- const Ta = {
1908
+ const va = {
1909
1909
  date: { year: "numeric", month: "short", day: "numeric" },
1910
1910
  time: { hour: "2-digit", minute: "2-digit" },
1911
1911
  datetime: {
@@ -1916,7 +1916,7 @@ const Ta = {
1916
1916
  minute: "2-digit"
1917
1917
  }
1918
1918
  };
1919
- function Pn(t) {
1919
+ function zn(t) {
1920
1920
  const { value: e, format: a = "date", options: n } = t;
1921
1921
  return e == null || e === "" ? null : a === "relative" && !n ? /* @__PURE__ */ s(he, { value: e, shape: "bare" }) : /* @__PURE__ */ s(
1922
1922
  he,
@@ -1924,32 +1924,32 @@ function Pn(t) {
1924
1924
  value: e,
1925
1925
  format: "absolute",
1926
1926
  shape: "bare",
1927
- absoluteFormat: n ?? Ta[a === "relative" ? "date" : a]
1927
+ absoluteFormat: n ?? va[a === "relative" ? "date" : a]
1928
1928
  }
1929
1929
  );
1930
1930
  }
1931
- function Ca(t) {
1931
+ function ya(t) {
1932
1932
  if (t == null || t === "") return null;
1933
1933
  const e = typeof t == "number" ? t : Number(t);
1934
1934
  return Number.isFinite(e) ? e : null;
1935
1935
  }
1936
- function On(t) {
1936
+ function An(t) {
1937
1937
  const {
1938
1938
  value: e,
1939
1939
  currency: a = "EUR",
1940
1940
  colorNegative: n,
1941
1941
  strikethrough: r,
1942
- options: o
1943
- } = t, { i18n: l } = F(), u = Ca(e);
1942
+ options: l
1943
+ } = t, { i18n: o } = F(), u = ya(e);
1944
1944
  if (u === null) return null;
1945
- const d = l.language || "en", i = new Intl.NumberFormat(d, {
1945
+ const d = o.language || "en", c = new Intl.NumberFormat(d, {
1946
1946
  style: "currency",
1947
1947
  currency: a,
1948
- ...o
1949
- }).format(u), c = ["ds:tabular-nums"];
1950
- return n && u < 0 && c.push("ds:text-[color:var(--destructive)]"), r && c.push("line-through"), /* @__PURE__ */ s("span", { className: c.join(" "), children: i });
1948
+ ...l
1949
+ }).format(u), i = ["ds:tabular-nums"];
1950
+ return n && u < 0 && i.push("ds:text-[color:var(--destructive)]"), r && i.push("line-through"), /* @__PURE__ */ s("span", { className: i.join(" "), children: c });
1951
1951
  }
1952
- function xa(t) {
1952
+ function Ta(t) {
1953
1953
  if (!we(t)) return t;
1954
1954
  const e = t, a = e.props.className ?? "", n = /\bsize-|\bw-|\bh-/.test(a) ? a : `${a} size-4`.trim();
1955
1955
  return Fe(e, { className: n, size: e.props.size ?? 16 });
@@ -1957,20 +1957,20 @@ function xa(t) {
1957
1957
  function Te(t, e) {
1958
1958
  return typeof t == "function" ? t(e) : !!t;
1959
1959
  }
1960
- function Mn(t) {
1960
+ function Pn(t) {
1961
1961
  const { data: e, actions: a } = t;
1962
1962
  return e ? /* @__PURE__ */ s("span", { className: "ds:inline-flex ds:items-center ds:gap-[var(--spacing-xs)]", children: a.map((n, r) => {
1963
1963
  if (Te(n.hidden, e)) return null;
1964
- const o = Te(n.disabled, e), l = o && n.disabledReason ? n.disabledReason : n.label, u = n.variant === "destructive";
1964
+ const l = Te(n.disabled, e), o = l && n.disabledReason ? n.disabledReason : n.label, u = n.variant === "destructive";
1965
1965
  return /* @__PURE__ */ s(
1966
1966
  V,
1967
1967
  {
1968
1968
  size: "sm",
1969
1969
  intent: "ghost",
1970
- icon: xa(n.icon),
1971
- tooltip: l,
1970
+ icon: Ta(n.icon),
1971
+ tooltip: o,
1972
1972
  "aria-label": n.label,
1973
- disabled: o,
1973
+ disabled: l,
1974
1974
  onClick: (d) => {
1975
1975
  d.stopPropagation(), n.onClick(e);
1976
1976
  },
@@ -1983,13 +1983,13 @@ function Mn(t) {
1983
1983
  function Ce(t, e) {
1984
1984
  return typeof t == "function" ? t(e) : t;
1985
1985
  }
1986
- function Na(t) {
1986
+ function Ca(t) {
1987
1987
  return /^(https?:\/\/|\/|#|mailto:|tel:)/i.test(t) ? t : "#";
1988
1988
  }
1989
- function jn(t) {
1990
- const { value: e, data: a, href: n, onClick: r, secondary: o } = t;
1989
+ function On(t) {
1990
+ const { value: e, data: a, href: n, onClick: r, secondary: l } = t;
1991
1991
  if (!a) return null;
1992
- const l = Ce(n, a), u = Ce(o, a), d = e == null || e === "" ? "" : String(e), i = [
1992
+ const o = Ce(n, a), u = Ce(l, a), d = e == null || e === "" ? "" : String(e), c = [
1993
1993
  "ds:text-[color:var(--primary)]",
1994
1994
  "ds:hover:underline",
1995
1995
  "ds:focus-visible:outline-[length:var(--focus-ring-width)]",
@@ -1997,26 +1997,26 @@ function jn(t) {
1997
1997
  "ds:focus-visible:outline-[color:var(--ring)]",
1998
1998
  "ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]",
1999
1999
  "ds:rounded-[var(--radius-sm)]"
2000
- ].join(" "), c = (p) => {
2001
- r && (l || p.preventDefault(), p.stopPropagation(), r(a));
2000
+ ].join(" "), i = (p) => {
2001
+ r && (o || p.preventDefault(), p.stopPropagation(), r(a));
2002
2002
  };
2003
2003
  return /* @__PURE__ */ E("span", { className: "ds:flex ds:flex-col ds:leading-tight", children: [
2004
- l ? /* @__PURE__ */ s(
2004
+ o ? /* @__PURE__ */ s(
2005
2005
  "a",
2006
2006
  {
2007
- href: Na(l),
2008
- onClick: c,
2009
- className: i,
2007
+ href: Ca(o),
2008
+ onClick: i,
2009
+ className: c,
2010
2010
  children: d
2011
2011
  }
2012
2012
  ) : /* @__PURE__ */ s(
2013
2013
  "button",
2014
2014
  {
2015
2015
  type: "button",
2016
- onClick: c,
2016
+ onClick: i,
2017
2017
  className: [
2018
2018
  "ds:appearance-none ds:bg-transparent ds:p-0 ds:text-start",
2019
- i
2019
+ c
2020
2020
  ].join(" "),
2021
2021
  children: d
2022
2022
  }
@@ -2024,31 +2024,31 @@ function jn(t) {
2024
2024
  u ? /* @__PURE__ */ s("span", { className: "type-meta ds:text-[color:var(--muted-foreground)]", children: u }) : null
2025
2025
  ] });
2026
2026
  }
2027
- function Ln(t) {
2027
+ function Mn(t) {
2028
2028
  const {
2029
2029
  value: e,
2030
2030
  data: a,
2031
2031
  onToggle: n,
2032
2032
  onError: r,
2033
- trueIcon: o,
2034
- falseIcon: l,
2033
+ trueIcon: l,
2034
+ falseIcon: o,
2035
2035
  trueClass: u = "ds:text-[color:var(--success)]",
2036
2036
  falseClass: d = "ds:text-[color:var(--muted-foreground)]",
2037
- label: i
2038
- } = t, { t: c } = F(), [p, v] = R(!1);
2037
+ label: c
2038
+ } = t, { t: i } = F(), [p, C] = R(!1);
2039
2039
  if (!a) return null;
2040
- const g = !!e, b = g ? o ?? /* @__PURE__ */ s(Lt, { "aria-hidden": !0, className: "ds:size-4" }) : l ?? /* @__PURE__ */ s(_t, { "aria-hidden": !0, className: "ds:size-4" }), y = g ? u : d, C = i ?? c(g ? "inputs.switch.on" : "inputs.switch.off");
2040
+ const g = !!e, b = g ? l ?? /* @__PURE__ */ s(Lt, { "aria-hidden": !0, className: "ds:size-4" }) : o ?? /* @__PURE__ */ s(qt, { "aria-hidden": !0, className: "ds:size-4" }), v = g ? u : d, y = c ?? i(g ? "inputs.switch.on" : "inputs.switch.off");
2041
2041
  async function f(m) {
2042
2042
  if (m.stopPropagation(), p || !a) return;
2043
2043
  const x = n(a, !g);
2044
2044
  if (x && typeof x.then == "function") {
2045
- v(!0);
2045
+ C(!0);
2046
2046
  try {
2047
2047
  await x;
2048
2048
  } catch (S) {
2049
2049
  r == null || r(a, S);
2050
2050
  } finally {
2051
- v(!1);
2051
+ C(!1);
2052
2052
  }
2053
2053
  }
2054
2054
  }
@@ -2059,7 +2059,7 @@ function Ln(t) {
2059
2059
  role: "switch",
2060
2060
  "aria-checked": g,
2061
2061
  "aria-busy": p,
2062
- "aria-label": C,
2062
+ "aria-label": y,
2063
2063
  disabled: p,
2064
2064
  onClick: f,
2065
2065
  className: [
@@ -2072,13 +2072,13 @@ function Ln(t) {
2072
2072
  "ds:focus-visible:outline-[color:var(--ring)]",
2073
2073
  "ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]",
2074
2074
  "ds:disabled:opacity-50",
2075
- y
2075
+ v
2076
2076
  ].join(" "),
2077
2077
  children: b
2078
2078
  }
2079
2079
  );
2080
2080
  }
2081
- const Sa = {
2081
+ const xa = {
2082
2082
  sm: "ds:size-[var(--icon-size-sm)]",
2083
2083
  md: "ds:size-[var(--icon-size-md)]",
2084
2084
  lg: "ds:size-[var(--icon-size-lg)]"
@@ -2088,70 +2088,70 @@ function xe(t, e) {
2088
2088
  const a = t[e];
2089
2089
  return typeof a == "string" ? a : void 0;
2090
2090
  }
2091
- const wa = /^#(?:[0-9a-f]{3,4}|[0-9a-f]{6}|[0-9a-f]{8})$/i, Fa = /^rgba?\(\s*[\d.\s,%/]+\)$/i, Ra = /^hsla?\(\s*[\d.\s,%/]+\)$/i, Da = /^var\(--[a-z0-9-]+(?:,\s*[^)]+)?\)$/i;
2092
- function ka(t) {
2091
+ const Na = /^#(?:[0-9a-f]{3,4}|[0-9a-f]{6}|[0-9a-f]{8})$/i, Sa = /^rgba?\(\s*[\d.\s,%/]+\)$/i, wa = /^hsla?\(\s*[\d.\s,%/]+\)$/i, Fa = /^var\(--[a-z0-9-]+(?:,\s*[^)]+)?\)$/i;
2092
+ function Ra(t) {
2093
2093
  if (!t) return;
2094
2094
  const e = t.trim();
2095
- if (wa.test(e) || Fa.test(e) || Ra.test(e) || Da.test(e))
2095
+ if (Na.test(e) || Sa.test(e) || wa.test(e) || Fa.test(e))
2096
2096
  return e;
2097
2097
  }
2098
- function _n(t) {
2099
- const { data: e, colorField: a, size: n = "md", labelField: r } = t, o = X(null), l = e ? xe(e, a) : void 0, u = ka(l), d = e && r ? xe(e, r) : void 0;
2100
- return qt(() => {
2101
- const i = o.current;
2102
- i && (u ? i.style.setProperty("--data-table-dot-color", u) : i.style.removeProperty("--data-table-dot-color"));
2098
+ function jn(t) {
2099
+ const { data: e, colorField: a, size: n = "md", labelField: r } = t, l = X(null), o = e ? xe(e, a) : void 0, u = Ra(o), d = e && r ? xe(e, r) : void 0;
2100
+ return $t(() => {
2101
+ const c = l.current;
2102
+ c && (u ? c.style.setProperty("--data-table-dot-color", u) : c.style.removeProperty("--data-table-dot-color"));
2103
2103
  }, [u]), u ? /* @__PURE__ */ E("span", { className: "ds:inline-flex ds:items-center ds:gap-[var(--spacing-sm)]", children: [
2104
2104
  /* @__PURE__ */ s(
2105
2105
  "span",
2106
2106
  {
2107
- ref: o,
2107
+ ref: l,
2108
2108
  "aria-hidden": "true",
2109
2109
  className: [
2110
2110
  "ds:inline-block ds:shrink-0 ds:rounded-[var(--radius-full)]",
2111
2111
  "ds:bg-[var(--data-table-dot-color)]",
2112
2112
  "ds:border ds:border-[color:var(--border)]",
2113
- Sa[n]
2113
+ xa[n]
2114
2114
  ].join(" ")
2115
2115
  }
2116
2116
  ),
2117
2117
  d ? /* @__PURE__ */ s("span", { children: d }) : null
2118
2118
  ] }) : null;
2119
2119
  }
2120
- function Ea(t, e) {
2120
+ function Da(t, e) {
2121
2121
  if (!t || typeof t != "object") return null;
2122
2122
  const a = t[e], n = typeof a == "number" ? a : Number(a);
2123
2123
  return Number.isFinite(n) ? n : null;
2124
2124
  }
2125
- function qn(t) {
2126
- const { data: e, lines: a, currency: n = "EUR", highlightNegative: r } = t, { i18n: o } = F();
2125
+ function Ln(t) {
2126
+ const { data: e, lines: a, currency: n = "EUR", highlightNegative: r } = t, { i18n: l } = F();
2127
2127
  if (!e) return null;
2128
- const l = o.language || "en", u = (i) => {
2129
- const c = Ea(e, i.valueField);
2130
- if (c === null) return null;
2128
+ const o = l.language || "en", u = (c) => {
2129
+ const i = Da(e, c.valueField);
2130
+ if (i === null) return null;
2131
2131
  let p;
2132
- switch (i.format ?? "number") {
2132
+ switch (c.format ?? "number") {
2133
2133
  case "currency":
2134
- p = new Intl.NumberFormat(l, {
2134
+ p = new Intl.NumberFormat(o, {
2135
2135
  style: "currency",
2136
2136
  currency: n
2137
- }).format(c);
2137
+ }).format(i);
2138
2138
  break;
2139
2139
  case "percent":
2140
- p = new Intl.NumberFormat(l, {
2140
+ p = new Intl.NumberFormat(o, {
2141
2141
  style: "percent",
2142
2142
  maximumFractionDigits: 1
2143
- }).format(c / 100);
2143
+ }).format(i / 100);
2144
2144
  break;
2145
2145
  default:
2146
- p = new Intl.NumberFormat(l).format(c);
2146
+ p = new Intl.NumberFormat(o).format(i);
2147
2147
  }
2148
2148
  return {
2149
- label: i.label,
2149
+ label: c.label,
2150
2150
  formatted: p,
2151
- negative: !!r && c < 0
2151
+ negative: !!r && i < 0
2152
2152
  };
2153
2153
  }, d = a.map(u).filter(
2154
- (i) => i !== null
2154
+ (c) => c !== null
2155
2155
  );
2156
2156
  return d.length === 0 ? null : /* @__PURE__ */ s(
2157
2157
  "div",
@@ -2165,12 +2165,12 @@ function qn(t) {
2165
2165
  "type-meta",
2166
2166
  "ds:leading-tight"
2167
2167
  ].join(" "),
2168
- children: d.map((i, c) => /* @__PURE__ */ E(
2168
+ children: d.map((c, i) => /* @__PURE__ */ E(
2169
2169
  "span",
2170
2170
  {
2171
2171
  className: "ds:inline-flex ds:items-baseline ds:gap-x-[var(--spacing-xs)]",
2172
2172
  children: [
2173
- c > 0 ? /* @__PURE__ */ s(
2173
+ i > 0 ? /* @__PURE__ */ s(
2174
2174
  "span",
2175
2175
  {
2176
2176
  "aria-hidden": "true",
@@ -2178,43 +2178,43 @@ function qn(t) {
2178
2178
  children: "·"
2179
2179
  }
2180
2180
  ) : null,
2181
- /* @__PURE__ */ s("span", { className: "ds:text-[color:var(--muted-foreground)]", children: i.label }),
2181
+ /* @__PURE__ */ s("span", { className: "ds:text-[color:var(--muted-foreground)]", children: c.label }),
2182
2182
  /* @__PURE__ */ s(
2183
2183
  "span",
2184
2184
  {
2185
2185
  className: [
2186
2186
  "ds:tabular-nums",
2187
2187
  "ds:font-medium",
2188
- i.negative ? "ds:text-[color:var(--destructive)]" : ""
2188
+ c.negative ? "ds:text-[color:var(--destructive)]" : ""
2189
2189
  ].filter(Boolean).join(" "),
2190
- children: i.formatted
2190
+ children: c.formatted
2191
2191
  }
2192
2192
  )
2193
2193
  ]
2194
2194
  },
2195
- `${i.label}-${c}`
2195
+ `${c.label}-${i}`
2196
2196
  ))
2197
2197
  }
2198
2198
  );
2199
2199
  }
2200
- function $n(t) {
2201
- var i, c;
2202
- const { initialValue: e, onValueChange: a, stopEditing: n, column: r } = t, [o, l] = R(e ?? ""), u = X(null);
2200
+ function qn(t) {
2201
+ var c, i;
2202
+ const { initialValue: e, onValueChange: a, stopEditing: n, column: r } = t, [l, o] = R(e ?? ""), u = X(null);
2203
2203
  P(() => {
2204
2204
  const p = u.current;
2205
2205
  p && (p.focus(), p.select());
2206
2206
  }, []);
2207
- const d = ((c = (i = r == null ? void 0 : r.getColDef) == null ? void 0 : i.call(r)) == null ? void 0 : c.headerName) ?? void 0;
2207
+ const d = ((i = (c = r == null ? void 0 : r.getColDef) == null ? void 0 : c.call(r)) == null ? void 0 : i.headerName) ?? void 0;
2208
2208
  return /* @__PURE__ */ s(
2209
2209
  "input",
2210
2210
  {
2211
2211
  ref: u,
2212
2212
  type: "text",
2213
- value: o,
2213
+ value: l,
2214
2214
  "aria-label": d,
2215
2215
  onChange: (p) => {
2216
- const v = p.target.value;
2217
- l(v), a(v);
2216
+ const C = p.target.value;
2217
+ o(C), a(C);
2218
2218
  },
2219
2219
  onKeyDown: (p) => {
2220
2220
  p.key === "Enter" && (p.preventDefault(), n());
@@ -2233,25 +2233,25 @@ function $n(t) {
2233
2233
  }
2234
2234
  );
2235
2235
  }
2236
- function Gn(t) {
2237
- var y, C;
2236
+ function $n(t) {
2237
+ var v, y;
2238
2238
  const {
2239
2239
  initialValue: e,
2240
2240
  onValueChange: a,
2241
2241
  stopEditing: n,
2242
2242
  column: r,
2243
- decimals: o = 2,
2244
- min: l,
2243
+ decimals: l = 2,
2244
+ min: o,
2245
2245
  max: u
2246
- } = t, { i18n: d } = F(), i = X(null), c = ((C = (y = r == null ? void 0 : r.getColDef) == null ? void 0 : y.call(r)) == null ? void 0 : C.headerName) ?? void 0, [p, v] = R(() => e == null || Number.isNaN(e) ? "" : String(e));
2246
+ } = t, { i18n: d } = F(), c = X(null), i = ((y = (v = r == null ? void 0 : r.getColDef) == null ? void 0 : v.call(r)) == null ? void 0 : y.headerName) ?? void 0, [p, C] = R(() => e == null || Number.isNaN(e) ? "" : String(e));
2247
2247
  P(() => {
2248
- const f = i.current;
2248
+ const f = c.current;
2249
2249
  f && (f.focus(), f.select());
2250
2250
  }, []);
2251
2251
  function g(f) {
2252
- var $, k;
2252
+ var _, k;
2253
2253
  if (f.trim().length === 0) return null;
2254
- const m = d.language || "en", h = new Intl.NumberFormat(m).formatToParts(12345.6), x = (($ = h.find((G) => G.type === "group")) == null ? void 0 : $.value) ?? "", S = ((k = h.find((G) => G.type === "decimal")) == null ? void 0 : k.value) ?? ".", I = f.replace(new RegExp(`\\${x}`, "g"), "").replace(S, ".").replace(/[^\d.-]/g, ""), D = Number(I);
2254
+ const m = d.language || "en", h = new Intl.NumberFormat(m).formatToParts(12345.6), x = ((_ = h.find((G) => G.type === "group")) == null ? void 0 : _.value) ?? "", S = ((k = h.find((G) => G.type === "decimal")) == null ? void 0 : k.value) ?? ".", I = f.replace(new RegExp(`\\${x}`, "g"), "").replace(S, ".").replace(/[^\d.-]/g, ""), D = Number(I);
2255
2255
  return Number.isFinite(D) ? D : null;
2256
2256
  }
2257
2257
  function b(f) {
@@ -2261,21 +2261,21 @@ function Gn(t) {
2261
2261
  return;
2262
2262
  }
2263
2263
  let h = m;
2264
- typeof l == "number" && (h = Math.max(l, h)), typeof u == "number" && (h = Math.min(u, h));
2265
- const x = 10 ** o;
2264
+ typeof o == "number" && (h = Math.max(o, h)), typeof u == "number" && (h = Math.min(u, h));
2265
+ const x = 10 ** l;
2266
2266
  a(Math.round(h * x) / x);
2267
2267
  }
2268
2268
  return /* @__PURE__ */ s(
2269
2269
  "input",
2270
2270
  {
2271
- ref: i,
2271
+ ref: c,
2272
2272
  type: "text",
2273
2273
  inputMode: "decimal",
2274
2274
  value: p,
2275
- "aria-label": c,
2275
+ "aria-label": i,
2276
2276
  onChange: (f) => {
2277
2277
  const m = f.target.value;
2278
- v(m), b(m);
2278
+ C(m), b(m);
2279
2279
  },
2280
2280
  onKeyDown: (f) => {
2281
2281
  f.key === "Enter" && (f.preventDefault(), n());
@@ -2292,34 +2292,34 @@ function Gn(t) {
2292
2292
  );
2293
2293
  }
2294
2294
  export {
2295
- Mn as A,
2296
- qn as B,
2297
- _n as C,
2298
- Tn as D,
2299
- Gn as E,
2300
- zn as I,
2301
- jn as L,
2302
- Dn as N,
2303
- Sn as S,
2304
- An as T,
2305
- In as U,
2306
- On as a,
2307
- Pn as b,
2308
- xn as c,
2309
- Nn as d,
2310
- $n as e,
2311
- kn as f,
2312
- wn as g,
2313
- En as h,
2314
- na as i,
2315
- ra as j,
2316
- Ln as k,
2295
+ Pn as A,
2296
+ Ln as B,
2297
+ jn as C,
2298
+ vn as D,
2299
+ $n as E,
2300
+ En as I,
2301
+ On as L,
2302
+ Fn as N,
2303
+ xn as S,
2304
+ In as T,
2305
+ kn as U,
2306
+ An as a,
2307
+ zn as b,
2308
+ Tn as c,
2309
+ Cn as d,
2310
+ qn as e,
2311
+ Rn as f,
2312
+ Nn as g,
2313
+ Dn as h,
2314
+ ta as i,
2315
+ aa as j,
2316
+ Mn as k,
2317
2317
  te as l,
2318
- Vt as m,
2319
- Fn as n,
2320
- Rn as o,
2321
- sa as p,
2318
+ Gt as m,
2319
+ Sn as n,
2320
+ wn as o,
2321
+ na as p,
2322
2322
  Be as q,
2323
- Cn as u
2323
+ yn as u
2324
2324
  };
2325
- //# sourceMappingURL=editable-currency-cell-renderer-BQgaKFCz.js.map
2325
+ //# sourceMappingURL=editable-currency-cell-renderer-f3d0Rhue.js.map