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