@g4rcez/components 4.0.1 → 4.1.1

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 (415) hide show
  1. package/ai/SKILL.md +233 -0
  2. package/ai/docs/Alert.md +166 -0
  3. package/ai/docs/AnimatedList.md +206 -0
  4. package/ai/docs/Autocomplete.md +221 -0
  5. package/ai/docs/Button.md +182 -0
  6. package/ai/docs/Calendar.md +185 -0
  7. package/ai/docs/Card.md +178 -0
  8. package/ai/docs/Checkbox.md +194 -0
  9. package/ai/docs/CommandPalette.md +275 -0
  10. package/ai/docs/DatePicker.md +152 -0
  11. package/ai/docs/Dropdown.md +195 -0
  12. package/{dist/ai → ai}/docs/Empty.md +41 -44
  13. package/{dist/ai → ai}/docs/Expand.md +40 -54
  14. package/ai/docs/FileUpload.md +218 -0
  15. package/{dist/ai → ai}/docs/Form.md +35 -29
  16. package/{dist/ai → ai}/docs/FormReset.md +37 -37
  17. package/{dist/ai → ai}/docs/Heading.md +4 -6
  18. package/ai/docs/Input.md +212 -0
  19. package/ai/docs/InputField.md +170 -0
  20. package/ai/docs/List.md +208 -0
  21. package/ai/docs/Menu.md +168 -0
  22. package/ai/docs/Modal.md +273 -0
  23. package/ai/docs/MultiSelect.md +177 -0
  24. package/ai/docs/Notifications.md +231 -0
  25. package/ai/docs/PageCalendar.md +262 -0
  26. package/{dist/ai → ai}/docs/Polymorph.md +25 -41
  27. package/{dist/ai → ai}/docs/Progress.md +55 -51
  28. package/{dist/ai → ai}/docs/Radiobox.md +49 -41
  29. package/{dist/ai → ai}/docs/RenderOnView.md +26 -32
  30. package/{dist/ai → ai}/docs/Resizable.md +60 -65
  31. package/ai/docs/Select.md +284 -0
  32. package/{dist/ai → ai}/docs/Shortcut.md +14 -14
  33. package/{dist/ai → ai}/docs/Skeleton.md +56 -60
  34. package/{dist/ai → ai}/docs/Slider.md +26 -49
  35. package/{dist/ai → ai}/docs/Slot.md +15 -17
  36. package/{dist/ai → ai}/docs/Spinner.md +17 -15
  37. package/{dist/ai → ai}/docs/Stats.md +44 -42
  38. package/ai/docs/Step.md +159 -0
  39. package/{dist/ai → ai}/docs/Switch.md +44 -54
  40. package/ai/docs/Table.md +286 -0
  41. package/ai/docs/Tabs.md +191 -0
  42. package/ai/docs/Tag.md +222 -0
  43. package/{dist/ai → ai}/docs/TaskList.md +40 -50
  44. package/ai/docs/Textarea.md +144 -0
  45. package/ai/docs/Timeline.md +212 -0
  46. package/{dist/ai → ai}/docs/Toolbar.md +46 -46
  47. package/ai/docs/Tooltip.md +231 -0
  48. package/ai/docs/Typography.md +187 -0
  49. package/ai/docs/Wizard.md +208 -0
  50. package/ai/docs/index.md +183 -0
  51. package/dist/autocomplete-DcTNOwyg.js +393 -0
  52. package/dist/autocomplete-DcTNOwyg.js.map +1 -0
  53. package/dist/{calendar-B5lSd0ID.js → calendar-BJMHRoy2.js} +104 -105
  54. package/dist/calendar-BJMHRoy2.js.map +1 -0
  55. package/dist/components/core/button.js +10 -10
  56. package/dist/components/core/button.js.map +1 -1
  57. package/dist/components/core/tag.js +4 -4
  58. package/dist/components/core/tag.js.map +1 -1
  59. package/dist/components/display/alert.js +48 -46
  60. package/dist/components/display/alert.js.map +1 -1
  61. package/dist/components/display/calendar.js +6 -6
  62. package/dist/components/display/card.js +2 -2
  63. package/dist/components/display/card.js.map +1 -1
  64. package/dist/components/display/list.js +1 -1
  65. package/dist/components/display/list.js.map +1 -1
  66. package/dist/components/display/notifications.js +3 -3
  67. package/dist/components/display/stats.js +1 -1
  68. package/dist/components/display/tabs.js +2 -2
  69. package/dist/components/display/timeline.js +1 -1
  70. package/dist/components/floating/dropdown.js +25 -17
  71. package/dist/components/floating/dropdown.js.map +1 -1
  72. package/dist/components/floating/expand.js +7 -7
  73. package/dist/components/floating/expand.js.map +1 -1
  74. package/dist/components/floating/menu.js +10 -10
  75. package/dist/components/floating/menu.js.map +1 -1
  76. package/dist/components/floating/modal.js +106 -102
  77. package/dist/components/floating/modal.js.map +1 -1
  78. package/dist/components/floating/tooltip.js +14 -14
  79. package/dist/components/floating/tooltip.js.map +1 -1
  80. package/dist/components/form/autocomplete.js +6 -6
  81. package/dist/components/form/checkbox.js +1 -1
  82. package/dist/components/form/date-picker.js +5 -5
  83. package/dist/components/form/file-upload.js +2 -2
  84. package/dist/components/form/form.js.map +1 -1
  85. package/dist/components/form/input.js +1 -1
  86. package/dist/components/form/radiobox.js +1 -1
  87. package/dist/components/form/select.js +3 -3
  88. package/dist/components/form/switch.js +2 -2
  89. package/dist/components/form/switch.js.map +1 -1
  90. package/dist/components/table/table.js +3 -3
  91. package/dist/{date-picker-DwNo22lx.js → date-picker-Bnl07nd8.js} +8 -6
  92. package/dist/date-picker-Bnl07nd8.js.map +1 -0
  93. package/dist/{dom-Dl8XH0CK.js → dom-CyQHY7ID.js} +66 -61
  94. package/dist/dom-CyQHY7ID.js.map +1 -0
  95. package/dist/{file-upload-Brf2NkLr.js → file-upload-93d5DR4q.js} +139 -129
  96. package/dist/file-upload-93d5DR4q.js.map +1 -0
  97. package/dist/{floating-ui.react-QNHG9W4N.js → floating-ui.react-M2PGXLDp.js} +8 -8
  98. package/dist/floating-ui.react-M2PGXLDp.js.map +1 -0
  99. package/dist/{fns-D2eyJKd5.js → fns-C7Dt27Qd.js} +2 -2
  100. package/dist/fns-C7Dt27Qd.js.map +1 -0
  101. package/dist/index-BJ1ayTam.js +126 -0
  102. package/dist/index-BJ1ayTam.js.map +1 -0
  103. package/dist/index-C-PuFUZi.js.map +1 -1
  104. package/dist/{index-BelDtX5M.js → index-DDeQW0JW.js} +399 -404
  105. package/dist/index-DDeQW0JW.js.map +1 -0
  106. package/dist/index-DE4shK8D.js +215 -0
  107. package/dist/index-DE4shK8D.js.map +1 -0
  108. package/dist/{index-DJSMaZR4.js → index-DlJ_2RBL.js} +2 -2
  109. package/dist/index-DlJ_2RBL.js.map +1 -0
  110. package/dist/index.css +1 -1
  111. package/dist/index.esm-BaIwleSE.js.map +1 -1
  112. package/dist/index.js +2826 -2765
  113. package/dist/index.js.map +1 -1
  114. package/dist/{input-CrGrSnUt.js → input-_MVxmIpu.js} +116 -114
  115. package/dist/input-_MVxmIpu.js.map +1 -0
  116. package/dist/{input-field-5vYcz5tT.js → input-field-CDCOODOl.js} +63 -47
  117. package/dist/input-field-CDCOODOl.js.map +1 -0
  118. package/dist/notifications-Dp0ydKJS.js +2576 -0
  119. package/dist/notifications-Dp0ydKJS.js.map +1 -0
  120. package/dist/polymorph-B5n9fs_K.js.map +1 -1
  121. package/dist/preset/plugin.tailwind.d.ts.map +1 -1
  122. package/dist/preset/plugin.tailwind.js +20 -18
  123. package/dist/preset/preset.tailwind.js +24 -25
  124. package/dist/preset/src/styles/common.js +6 -3
  125. package/dist/preset/src/styles/dark.d.ts.map +1 -1
  126. package/dist/preset/src/styles/dark.js +9 -5
  127. package/dist/preset/src/styles/design-tokens.js +68 -89
  128. package/dist/preset/src/styles/light.d.ts.map +1 -1
  129. package/dist/preset/src/styles/light.js +9 -5
  130. package/dist/preset/src/styles/theme.js +7 -4
  131. package/dist/preset/src/styles/theme.types.d.ts +2 -1
  132. package/dist/preset/src/styles/theme.types.d.ts.map +1 -1
  133. package/dist/preset/src/styles/theme.types.js +2 -1
  134. package/dist/skeleton-BjJobYYf.js +24 -0
  135. package/dist/skeleton-BjJobYYf.js.map +1 -0
  136. package/dist/slot-CRyweuj0.js.map +1 -1
  137. package/dist/styles/common.js +6 -3
  138. package/dist/styles/dark.d.ts.map +1 -1
  139. package/dist/styles/dark.js +9 -5
  140. package/dist/styles/design-tokens.js +68 -89
  141. package/dist/styles/light.d.ts.map +1 -1
  142. package/dist/styles/light.js +9 -5
  143. package/dist/styles/theme.js +7 -4
  144. package/dist/styles/theme.types.d.ts +2 -1
  145. package/dist/styles/theme.types.d.ts.map +1 -1
  146. package/dist/styles/theme.types.js +2 -1
  147. package/dist/tabs-B0g7YtQv.js +123 -0
  148. package/dist/tabs-B0g7YtQv.js.map +1 -0
  149. package/dist/tsconfig.lib.tsbuildinfo +1 -0
  150. package/dist/{context-BFXNJVn2.js → use-translations-DSltA7H_.js} +38 -30
  151. package/dist/use-translations-DSltA7H_.js.map +1 -0
  152. package/package.json +101 -88
  153. package/dist/ai/SKILL.md +0 -266
  154. package/dist/ai/docs/Alert.md +0 -167
  155. package/dist/ai/docs/AnimatedList.md +0 -205
  156. package/dist/ai/docs/Autocomplete.md +0 -225
  157. package/dist/ai/docs/Button.md +0 -182
  158. package/dist/ai/docs/Calendar.md +0 -219
  159. package/dist/ai/docs/Card.md +0 -174
  160. package/dist/ai/docs/Checkbox.md +0 -199
  161. package/dist/ai/docs/CommandPalette.md +0 -293
  162. package/dist/ai/docs/DatePicker.md +0 -171
  163. package/dist/ai/docs/Dropdown.md +0 -223
  164. package/dist/ai/docs/FileUpload.md +0 -225
  165. package/dist/ai/docs/Input.md +0 -237
  166. package/dist/ai/docs/InputField.md +0 -170
  167. package/dist/ai/docs/List.md +0 -205
  168. package/dist/ai/docs/Menu.md +0 -166
  169. package/dist/ai/docs/Modal.md +0 -280
  170. package/dist/ai/docs/MultiSelect.md +0 -196
  171. package/dist/ai/docs/Notifications.md +0 -231
  172. package/dist/ai/docs/PageCalendar.md +0 -271
  173. package/dist/ai/docs/Select.md +0 -284
  174. package/dist/ai/docs/Step.md +0 -159
  175. package/dist/ai/docs/Table.md +0 -298
  176. package/dist/ai/docs/Tabs.md +0 -191
  177. package/dist/ai/docs/Tag.md +0 -224
  178. package/dist/ai/docs/Textarea.md +0 -167
  179. package/dist/ai/docs/Timeline.md +0 -210
  180. package/dist/ai/docs/Tooltip.md +0 -231
  181. package/dist/ai/docs/TransferList.md +0 -142
  182. package/dist/ai/docs/Typography.md +0 -187
  183. package/dist/ai/docs/Wizard.md +0 -213
  184. package/dist/ai/docs/index.md +0 -183
  185. package/dist/autocomplete-Cn9Z2hLq.js +0 -375
  186. package/dist/autocomplete-Cn9Z2hLq.js.map +0 -1
  187. package/dist/calendar-B5lSd0ID.js.map +0 -1
  188. package/dist/components/core/button.d.ts +0 -77
  189. package/dist/components/core/button.d.ts.map +0 -1
  190. package/dist/components/core/heading.d.ts +0 -3
  191. package/dist/components/core/heading.d.ts.map +0 -1
  192. package/dist/components/core/polymorph.d.ts +0 -10
  193. package/dist/components/core/polymorph.d.ts.map +0 -1
  194. package/dist/components/core/render-on-view.d.ts +0 -7
  195. package/dist/components/core/render-on-view.d.ts.map +0 -1
  196. package/dist/components/core/resizable.d.ts +0 -3
  197. package/dist/components/core/resizable.d.ts.map +0 -1
  198. package/dist/components/core/slot.d.ts +0 -16
  199. package/dist/components/core/slot.d.ts.map +0 -1
  200. package/dist/components/core/tag.d.ts +0 -35
  201. package/dist/components/core/tag.d.ts.map +0 -1
  202. package/dist/components/core/typography.d.ts +0 -24
  203. package/dist/components/core/typography.d.ts.map +0 -1
  204. package/dist/components/display/alert.d.ts +0 -28
  205. package/dist/components/display/alert.d.ts.map +0 -1
  206. package/dist/components/display/calendar.d.ts +0 -42
  207. package/dist/components/display/calendar.d.ts.map +0 -1
  208. package/dist/components/display/card.d.ts +0 -29
  209. package/dist/components/display/card.d.ts.map +0 -1
  210. package/dist/components/display/empty.d.ts +0 -8
  211. package/dist/components/display/empty.d.ts.map +0 -1
  212. package/dist/components/display/list.d.ts +0 -16
  213. package/dist/components/display/list.d.ts.map +0 -1
  214. package/dist/components/display/notifications.d.ts +0 -27
  215. package/dist/components/display/notifications.d.ts.map +0 -1
  216. package/dist/components/display/progress.d.ts +0 -13
  217. package/dist/components/display/progress.d.ts.map +0 -1
  218. package/dist/components/display/shortcut.d.ts +0 -4
  219. package/dist/components/display/shortcut.d.ts.map +0 -1
  220. package/dist/components/display/skeleton.d.ts +0 -12
  221. package/dist/components/display/skeleton.d.ts.map +0 -1
  222. package/dist/components/display/spinner.d.ts +0 -5
  223. package/dist/components/display/spinner.d.ts.map +0 -1
  224. package/dist/components/display/stats.d.ts +0 -12
  225. package/dist/components/display/stats.d.ts.map +0 -1
  226. package/dist/components/display/step.d.ts +0 -24
  227. package/dist/components/display/step.d.ts.map +0 -1
  228. package/dist/components/display/tabs.d.ts +0 -24
  229. package/dist/components/display/tabs.d.ts.map +0 -1
  230. package/dist/components/display/timeline.d.ts +0 -10
  231. package/dist/components/display/timeline.d.ts.map +0 -1
  232. package/dist/components/floating/command-palette.d.ts +0 -49
  233. package/dist/components/floating/command-palette.d.ts.map +0 -1
  234. package/dist/components/floating/dropdown.d.ts +0 -15
  235. package/dist/components/floating/dropdown.d.ts.map +0 -1
  236. package/dist/components/floating/expand.d.ts +0 -11
  237. package/dist/components/floating/expand.d.ts.map +0 -1
  238. package/dist/components/floating/menu.d.ts +0 -52
  239. package/dist/components/floating/menu.d.ts.map +0 -1
  240. package/dist/components/floating/modal.d.ts +0 -60
  241. package/dist/components/floating/modal.d.ts.map +0 -1
  242. package/dist/components/floating/toolbar.d.ts +0 -6
  243. package/dist/components/floating/toolbar.d.ts.map +0 -1
  244. package/dist/components/floating/tooltip.d.ts +0 -17
  245. package/dist/components/floating/tooltip.d.ts.map +0 -1
  246. package/dist/components/floating/wizard.d.ts +0 -26
  247. package/dist/components/floating/wizard.d.ts.map +0 -1
  248. package/dist/components/form/autocomplete.d.ts +0 -16
  249. package/dist/components/form/autocomplete.d.ts.map +0 -1
  250. package/dist/components/form/checkbox.d.ts +0 -12
  251. package/dist/components/form/checkbox.d.ts.map +0 -1
  252. package/dist/components/form/date-picker.d.ts +0 -10
  253. package/dist/components/form/date-picker.d.ts.map +0 -1
  254. package/dist/components/form/file-upload.d.ts +0 -15
  255. package/dist/components/form/file-upload.d.ts.map +0 -1
  256. package/dist/components/form/form.d.ts +0 -3
  257. package/dist/components/form/form.d.ts.map +0 -1
  258. package/dist/components/form/formReset.d.ts +0 -2
  259. package/dist/components/form/formReset.d.ts.map +0 -1
  260. package/dist/components/form/free-text.d.ts +0 -11
  261. package/dist/components/form/free-text.d.ts.map +0 -1
  262. package/dist/components/form/input-field.d.ts +0 -34
  263. package/dist/components/form/input-field.d.ts.map +0 -1
  264. package/dist/components/form/input.d.ts +0 -52
  265. package/dist/components/form/input.d.ts.map +0 -1
  266. package/dist/components/form/multi-select.d.ts +0 -19
  267. package/dist/components/form/multi-select.d.ts.map +0 -1
  268. package/dist/components/form/radiobox.d.ts +0 -7
  269. package/dist/components/form/radiobox.d.ts.map +0 -1
  270. package/dist/components/form/select.d.ts +0 -13
  271. package/dist/components/form/select.d.ts.map +0 -1
  272. package/dist/components/form/slider.d.ts +0 -7
  273. package/dist/components/form/slider.d.ts.map +0 -1
  274. package/dist/components/form/switch.d.ts +0 -9
  275. package/dist/components/form/switch.d.ts.map +0 -1
  276. package/dist/components/form/task-list.d.ts +0 -3
  277. package/dist/components/form/task-list.d.ts.map +0 -1
  278. package/dist/components/form/textarea.d.ts +0 -6
  279. package/dist/components/form/textarea.d.ts.map +0 -1
  280. package/dist/components/form/transfer-list.d.ts +0 -14
  281. package/dist/components/form/transfer-list.d.ts.map +0 -1
  282. package/dist/components/form/transfer-list.js +0 -55
  283. package/dist/components/form/transfer-list.js.map +0 -1
  284. package/dist/components/index.d.ts +0 -46
  285. package/dist/components/index.d.ts.map +0 -1
  286. package/dist/components/page-calendar/calendar-header.d.ts +0 -16
  287. package/dist/components/page-calendar/calendar-header.d.ts.map +0 -1
  288. package/dist/components/page-calendar/day-view.d.ts +0 -12
  289. package/dist/components/page-calendar/day-view.d.ts.map +0 -1
  290. package/dist/components/page-calendar/event-pill.d.ts +0 -9
  291. package/dist/components/page-calendar/event-pill.d.ts.map +0 -1
  292. package/dist/components/page-calendar/index.d.ts +0 -4
  293. package/dist/components/page-calendar/index.d.ts.map +0 -1
  294. package/dist/components/page-calendar/month-view.d.ts +0 -11
  295. package/dist/components/page-calendar/month-view.d.ts.map +0 -1
  296. package/dist/components/page-calendar/page-calendar.d.ts +0 -18
  297. package/dist/components/page-calendar/page-calendar.d.ts.map +0 -1
  298. package/dist/components/page-calendar/page-calendar.types.d.ts +0 -18
  299. package/dist/components/page-calendar/page-calendar.types.d.ts.map +0 -1
  300. package/dist/components/page-calendar/page-calendar.utils.d.ts +0 -24
  301. package/dist/components/page-calendar/page-calendar.utils.d.ts.map +0 -1
  302. package/dist/components/page-calendar/week-view.d.ts +0 -11
  303. package/dist/components/page-calendar/week-view.d.ts.map +0 -1
  304. package/dist/components/table/filter.d.ts +0 -42
  305. package/dist/components/table/filter.d.ts.map +0 -1
  306. package/dist/components/table/group.d.ts +0 -17
  307. package/dist/components/table/group.d.ts.map +0 -1
  308. package/dist/components/table/index.d.ts +0 -20
  309. package/dist/components/table/index.d.ts.map +0 -1
  310. package/dist/components/table/inner-table.d.ts +0 -29
  311. package/dist/components/table/inner-table.d.ts.map +0 -1
  312. package/dist/components/table/metadata.d.ts +0 -4
  313. package/dist/components/table/metadata.d.ts.map +0 -1
  314. package/dist/components/table/pagination.d.ts +0 -3
  315. package/dist/components/table/pagination.d.ts.map +0 -1
  316. package/dist/components/table/row.d.ts +0 -12
  317. package/dist/components/table/row.d.ts.map +0 -1
  318. package/dist/components/table/sort.d.ts +0 -28
  319. package/dist/components/table/sort.d.ts.map +0 -1
  320. package/dist/components/table/table-lib.d.ts +0 -135
  321. package/dist/components/table/table-lib.d.ts.map +0 -1
  322. package/dist/components/table/table.context.d.ts +0 -10
  323. package/dist/components/table/table.context.d.ts.map +0 -1
  324. package/dist/components/table/thead.d.ts +0 -9
  325. package/dist/components/table/thead.d.ts.map +0 -1
  326. package/dist/config/context.d.ts +0 -21
  327. package/dist/config/context.d.ts.map +0 -1
  328. package/dist/config/default-translations.d.ts +0 -90
  329. package/dist/config/default-translations.d.ts.map +0 -1
  330. package/dist/config/default-tweaks.d.ts +0 -13
  331. package/dist/config/default-tweaks.d.ts.map +0 -1
  332. package/dist/constants.d.ts +0 -3
  333. package/dist/constants.d.ts.map +0 -1
  334. package/dist/context-BFXNJVn2.js.map +0 -1
  335. package/dist/date-picker-DwNo22lx.js.map +0 -1
  336. package/dist/dom-Dl8XH0CK.js.map +0 -1
  337. package/dist/file-upload-Brf2NkLr.js.map +0 -1
  338. package/dist/floating-ui.react-QNHG9W4N.js.map +0 -1
  339. package/dist/fns-D2eyJKd5.js.map +0 -1
  340. package/dist/hooks/use-click-outside.d.ts +0 -3
  341. package/dist/hooks/use-click-outside.d.ts.map +0 -1
  342. package/dist/hooks/use-color-parser.d.ts +0 -2
  343. package/dist/hooks/use-color-parser.d.ts.map +0 -1
  344. package/dist/hooks/use-components-provider.d.ts +0 -15
  345. package/dist/hooks/use-components-provider.d.ts.map +0 -1
  346. package/dist/hooks/use-debounce.d.ts +0 -5
  347. package/dist/hooks/use-debounce.d.ts.map +0 -1
  348. package/dist/hooks/use-floating-ref.d.ts +0 -2
  349. package/dist/hooks/use-floating-ref.d.ts.map +0 -1
  350. package/dist/hooks/use-form.d.ts +0 -394
  351. package/dist/hooks/use-form.d.ts.map +0 -1
  352. package/dist/hooks/use-hover.d.ts +0 -3
  353. package/dist/hooks/use-hover.d.ts.map +0 -1
  354. package/dist/hooks/use-input-id.d.ts +0 -4
  355. package/dist/hooks/use-input-id.d.ts.map +0 -1
  356. package/dist/hooks/use-is-coarse-device.d.ts +0 -2
  357. package/dist/hooks/use-is-coarse-device.d.ts.map +0 -1
  358. package/dist/hooks/use-locale.d.ts +0 -3
  359. package/dist/hooks/use-locale.d.ts.map +0 -1
  360. package/dist/hooks/use-media-query.d.ts +0 -2
  361. package/dist/hooks/use-media-query.d.ts.map +0 -1
  362. package/dist/hooks/use-on-event.d.ts +0 -4
  363. package/dist/hooks/use-on-event.d.ts.map +0 -1
  364. package/dist/hooks/use-parent.d.ts +0 -3
  365. package/dist/hooks/use-parent.d.ts.map +0 -1
  366. package/dist/hooks/use-preferences.d.ts +0 -2
  367. package/dist/hooks/use-preferences.d.ts.map +0 -1
  368. package/dist/hooks/use-previous.d.ts +0 -2
  369. package/dist/hooks/use-previous.d.ts.map +0 -1
  370. package/dist/hooks/use-reactive.d.ts +0 -2
  371. package/dist/hooks/use-reactive.d.ts.map +0 -1
  372. package/dist/hooks/use-remove-scroll.d.ts +0 -4
  373. package/dist/hooks/use-remove-scroll.d.ts.map +0 -1
  374. package/dist/hooks/use-resize-observer.d.ts +0 -2
  375. package/dist/hooks/use-resize-observer.d.ts.map +0 -1
  376. package/dist/hooks/use-stable-ref.d.ts +0 -2
  377. package/dist/hooks/use-stable-ref.d.ts.map +0 -1
  378. package/dist/hooks/use-swipe.d.ts +0 -8
  379. package/dist/hooks/use-swipe.d.ts.map +0 -1
  380. package/dist/hooks/use-translations.d.ts +0 -88
  381. package/dist/hooks/use-translations.d.ts.map +0 -1
  382. package/dist/hooks/use-tweaks.d.ts +0 -3
  383. package/dist/hooks/use-tweaks.d.ts.map +0 -1
  384. package/dist/hooks/use-window-size.d.ts +0 -5
  385. package/dist/hooks/use-window-size.d.ts.map +0 -1
  386. package/dist/index-BelDtX5M.js.map +0 -1
  387. package/dist/index-DJSMaZR4.js.map +0 -1
  388. package/dist/index-Z-fZHxfJ.js +0 -335
  389. package/dist/index-Z-fZHxfJ.js.map +0 -1
  390. package/dist/index.d.ts +0 -22
  391. package/dist/index.d.ts.map +0 -1
  392. package/dist/input-CrGrSnUt.js.map +0 -1
  393. package/dist/input-field-5vYcz5tT.js.map +0 -1
  394. package/dist/lib/combi-keys.d.ts +0 -15
  395. package/dist/lib/combi-keys.d.ts.map +0 -1
  396. package/dist/lib/dict.d.ts +0 -12
  397. package/dist/lib/dict.d.ts.map +0 -1
  398. package/dist/lib/dom.d.ts +0 -19
  399. package/dist/lib/dom.d.ts.map +0 -1
  400. package/dist/lib/fns.d.ts +0 -11
  401. package/dist/lib/fns.d.ts.map +0 -1
  402. package/dist/lib/fzf.d.ts +0 -16
  403. package/dist/lib/fzf.d.ts.map +0 -1
  404. package/dist/lib/keyboard-area.d.ts +0 -16
  405. package/dist/lib/keyboard-area.d.ts.map +0 -1
  406. package/dist/notifications-cUdVPs-B.js +0 -2786
  407. package/dist/notifications-cUdVPs-B.js.map +0 -1
  408. package/dist/skeleton-D75GFBV6.js +0 -10
  409. package/dist/skeleton-D75GFBV6.js.map +0 -1
  410. package/dist/tabs-S00a8qq8.js +0 -106
  411. package/dist/tabs-S00a8qq8.js.map +0 -1
  412. package/dist/types.d.ts +0 -26
  413. package/dist/types.d.ts.map +0 -1
  414. package/dist/use-translations-BwLKTrZv.js +0 -10
  415. package/dist/use-translations-BwLKTrZv.js.map +0 -1
@@ -1,22 +1,22 @@
1
- import { jsx as s, jsxs as A } from "react/jsx-runtime";
1
+ import { jsx as i, jsxs as A } from "react/jsx-runtime";
2
2
  import * as n from "react";
3
- import P, { createContext as se, useRef as F, useState as D, useCallback as B, useContext as j, useMemo as V, forwardRef as Re, useEffect as O, useId as dt, Fragment as M, createElement as mt } from "react";
4
- import { u as ke } from "./index-Z-fZHxfJ.js";
5
- import { u as Pe } from "./input-field-5vYcz5tT.js";
3
+ import P, { createContext as oe, useRef as F, useState as D, useCallback as W, useContext as B, useMemo as V, forwardRef as Re, useEffect as se, useId as dt, Fragment as M, createElement as mt } from "react";
4
+ import { u as ke } from "./index-BJ1ayTam.js";
5
+ import { u as Pe } from "./input-field-CDCOODOl.js";
6
6
  import { X as ht } from "./index-C-PuFUZi.js";
7
- import { I as De, k as ft } from "./dom-Dl8XH0CK.js";
8
- import { u as re } from "./use-stable-ref-CYh-YkID.js";
7
+ import { I as De, k as ft } from "./dom-CyQHY7ID.js";
8
+ import { u as te } from "./use-stable-ref-CYh-YkID.js";
9
9
  import { o as gt } from "./File.es-CA-vuPED.js";
10
- import { u as x } from "./use-translations-BwLKTrZv.js";
11
- import { S as Oe } from "./skeleton-D75GFBV6.js";
12
- import { P as K } from "./polymorph-B5n9fs_K.js";
13
- import { p as pt, i as ae, u as ie } from "./fns-D2eyJKd5.js";
10
+ import { u as x } from "./use-translations-DSltA7H_.js";
11
+ import { S as Oe } from "./skeleton-BjJobYYf.js";
12
+ import { P as J } from "./polymorph-B5n9fs_K.js";
13
+ import { p as pt, i as re, u as ie } from "./fns-C7Dt27Qd.js";
14
14
  import { p as H } from "./IconBase.es-DJ1oCtpo.js";
15
- import { Dropdown as q } from "./components/floating/dropdown.js";
15
+ import { Dropdown as j } from "./components/floating/dropdown.js";
16
16
  import { Select as L } from "./components/form/select.js";
17
- import { I as Ge } from "./input-CrGrSnUt.js";
17
+ import { I as Ge } from "./input-_MVxmIpu.js";
18
18
  import { u as ze, L as Ae, m as ce, A as ue } from "./proxy-BZcQiBrp.js";
19
- import { B as yt, C as We, D as bt, E as Y, u as U, m as At, F as vt, l as Be, d as wt } from "./MotionConfigContext-C7MqlSdv.js";
19
+ import { B as yt, C as We, D as bt, E as K, u as q, m as At, F as vt, l as Be, d as wt } from "./MotionConfigContext-C7MqlSdv.js";
20
20
  import { u as de } from "./use-motion-value-eGwNuWuw.js";
21
21
  import { Button as Zt } from "./components/core/button.js";
22
22
  const Et = /* @__PURE__ */ new Map([
@@ -289,26 +289,26 @@ const Et = /* @__PURE__ */ new Map([
289
289
  ]
290
290
  ]), me = n.forwardRef((e, t) => /* @__PURE__ */ n.createElement(H, { ref: t, ...e, weights: Et }));
291
291
  me.displayName = "CaretUpDownIcon";
292
- const je = n.forwardRef((e, t) => /* @__PURE__ */ n.createElement(H, { ref: t, ...e, weights: Mt }));
293
- je.displayName = "DotsSixVerticalIcon";
294
- const _e = n.forwardRef((e, t) => /* @__PURE__ */ n.createElement(H, { ref: t, ...e, weights: Ht }));
295
- _e.displayName = "FunnelIcon";
292
+ const _e = n.forwardRef((e, t) => /* @__PURE__ */ n.createElement(H, { ref: t, ...e, weights: Mt }));
293
+ _e.displayName = "DotsSixVerticalIcon";
294
+ const je = n.forwardRef((e, t) => /* @__PURE__ */ n.createElement(H, { ref: t, ...e, weights: Ht }));
295
+ je.displayName = "FunnelIcon";
296
296
  const qe = n.forwardRef((e, t) => /* @__PURE__ */ n.createElement(H, { ref: t, ...e, weights: St }));
297
297
  qe.displayName = "MagnifyingGlassIcon";
298
298
  const Ue = n.forwardRef((e, t) => /* @__PURE__ */ n.createElement(H, { ref: t, ...e, weights: Ft }));
299
299
  Ue.displayName = "MagnifyingGlassMinusIcon";
300
- const X = n.forwardRef((e, t) => /* @__PURE__ */ n.createElement(H, { ref: t, ...e, weights: xt }));
301
- X.displayName = "PlusIcon";
300
+ const U = n.forwardRef((e, t) => /* @__PURE__ */ n.createElement(H, { ref: t, ...e, weights: xt }));
301
+ U.displayName = "PlusIcon";
302
302
  const Xe = n.forwardRef((e, t) => /* @__PURE__ */ n.createElement(H, { ref: t, ...e, weights: Nt }));
303
303
  Xe.displayName = "SortAscendingIcon";
304
304
  const Je = n.forwardRef((e, t) => /* @__PURE__ */ n.createElement(H, { ref: t, ...e, weights: Vt }));
305
305
  Je.displayName = "SortDescendingIcon";
306
306
  const Ke = n.forwardRef((e, t) => /* @__PURE__ */ n.createElement(H, { ref: t, ...e, weights: Ct }));
307
307
  Ke.displayName = "StackMinusIcon";
308
- const G = n.forwardRef((e, t) => /* @__PURE__ */ n.createElement(H, { ref: t, ...e, weights: Lt }));
309
- G.displayName = "TrashIcon";
308
+ const O = n.forwardRef((e, t) => /* @__PURE__ */ n.createElement(H, { ref: t, ...e, weights: Lt }));
309
+ O.displayName = "TrashIcon";
310
310
  function It(...e) {
311
- const t = !Array.isArray(e[0]), r = t ? 0 : -1, a = e[0 + r], l = e[1 + r], o = e[2 + r], c = e[3 + r], u = yt(l, o, c);
311
+ const t = !Array.isArray(e[0]), r = t ? 0 : -1, a = e[0 + r], l = e[1 + r], o = e[2 + r], s = e[3 + r], u = yt(l, o, s);
312
312
  return t ? u(a) : u;
313
313
  }
314
314
  const Tt = (e) => !e.isLayoutDirty && e.willUpdate(!1);
@@ -326,7 +326,7 @@ function ve() {
326
326
  dirty: r
327
327
  };
328
328
  }
329
- const $t = se(null);
329
+ const $t = oe(null);
330
330
  function Rt() {
331
331
  const e = F(!1);
332
332
  return ze(() => (e.current = !0, () => {
@@ -334,47 +334,47 @@ function Rt() {
334
334
  }), []), e;
335
335
  }
336
336
  function kt() {
337
- const e = Rt(), [t, r] = D(0), a = B(() => {
337
+ const e = Rt(), [t, r] = D(0), a = W(() => {
338
338
  e.current && r(t + 1);
339
339
  }, [t]);
340
- return [B(() => We.postRender(a), [a]), t];
340
+ return [W(() => We.postRender(a), [a]), t];
341
341
  }
342
342
  const Ye = (e) => e === !0, Pt = (e) => Ye(e === !0) || e === "id", Dt = ({ children: e, id: t, inherit: r = !0 }) => {
343
- const a = j(Ae), l = j($t), [o, c] = kt(), u = F(null), i = a.id || l;
344
- u.current === null && (Pt(r) && i && (t = t ? i + "-" + t : i), u.current = {
343
+ const a = B(Ae), l = B($t), [o, s] = kt(), u = F(null), c = a.id || l;
344
+ u.current === null && (Pt(r) && c && (t = t ? c + "-" + t : c), u.current = {
345
345
  id: t,
346
346
  group: Ye(r) && a.group || ve()
347
347
  });
348
- const d = V(() => ({ ...u.current, forceRender: o }), [c]);
349
- return s(Ae.Provider, { value: d, children: e });
348
+ const m = V(() => ({ ...u.current, forceRender: o }), [s]);
349
+ return i(Ae.Provider, { value: m, children: e });
350
350
  };
351
351
  function Qe(e, t) {
352
352
  const r = de(t()), a = () => r.set(t());
353
353
  return a(), ze(() => {
354
- const l = () => We.preRender(a, !1, !0), o = e.map((c) => c.on("change", l));
354
+ const l = () => We.preRender(a, !1, !0), o = e.map((s) => s.on("change", l));
355
355
  return () => {
356
- o.forEach((c) => c()), bt(a);
356
+ o.forEach((s) => s()), bt(a);
357
357
  };
358
358
  }), r;
359
359
  }
360
360
  function Ot(e) {
361
- Y.current = [], e();
362
- const t = Qe(Y.current, e);
363
- return Y.current = void 0, t;
361
+ K.current = [], e();
362
+ const t = Qe(K.current, e);
363
+ return K.current = void 0, t;
364
364
  }
365
365
  function Gt(e, t, r, a) {
366
366
  if (typeof e == "function")
367
367
  return Ot(e);
368
- const o = typeof t == "function" ? t : It(t, r, a), c = Array.isArray(e) ? we(e, o) : we([e], ([i]) => o(i)), u = Array.isArray(e) ? void 0 : e.accelerate;
369
- return u && !u.isTransformed && typeof t != "function" && Array.isArray(r) && a?.clamp !== !1 && (c.accelerate = {
368
+ const o = typeof t == "function" ? t : It(t, r, a), s = Array.isArray(e) ? we(e, o) : we([e], ([c]) => o(c)), u = Array.isArray(e) ? void 0 : e.accelerate;
369
+ return u && !u.isTransformed && typeof t != "function" && Array.isArray(r) && a?.clamp !== !1 && (s.accelerate = {
370
370
  ...u,
371
371
  times: t,
372
372
  keyframes: r,
373
373
  isTransformed: !0
374
- }), c;
374
+ }), s;
375
375
  }
376
376
  function we(e, t) {
377
- const r = U(() => []);
377
+ const r = q(() => []);
378
378
  return Qe(e, () => {
379
379
  r.length = 0;
380
380
  const a = e.length;
@@ -446,63 +446,63 @@ class zt {
446
446
  }
447
447
  const Wt = () => new zt();
448
448
  function Bt() {
449
- return U(Wt);
449
+ return q(Wt);
450
450
  }
451
- const et = se(null);
452
- function jt(e, t, r, a) {
451
+ const et = oe(null);
452
+ function _t(e, t, r, a) {
453
453
  if (!a)
454
454
  return e;
455
455
  const l = e.findIndex((h) => h.value === t);
456
456
  if (l === -1)
457
457
  return e;
458
- const o = a > 0 ? 1 : -1, c = e[l + o];
459
- if (!c)
458
+ const o = a > 0 ? 1 : -1, s = e[l + o];
459
+ if (!s)
460
460
  return e;
461
- const u = e[l], i = c.layout, d = At(i.min, i.max, 0.5);
462
- return o === 1 && u.layout.max + r > d || o === -1 && u.layout.min + r < d ? vt(e, l, l + o) : e;
461
+ const u = e[l], c = s.layout, m = At(c.min, c.max, 0.5);
462
+ return o === 1 && u.layout.max + r > m || o === -1 && u.layout.min + r < m ? vt(e, l, l + o) : e;
463
463
  }
464
- function _t({ children: e, as: t = "ul", axis: r = "y", onReorder: a, values: l, ...o }, c) {
465
- const u = U(() => ce[t]), i = [], d = F(!1), h = F(null);
464
+ function jt({ children: e, as: t = "ul", axis: r = "y", onReorder: a, values: l, ...o }, s) {
465
+ const u = q(() => ce[t]), c = [], m = F(!1), h = F(null);
466
466
  Be(!!l, "Reorder.Group must be provided a values prop", "reorder-values");
467
467
  const g = {
468
468
  axis: r,
469
469
  groupRef: h,
470
470
  registerItem: (Z, p) => {
471
- const m = i.findIndex((f) => Z === f.value);
472
- m !== -1 ? i[m].layout = p[r] : i.push({ value: Z, layout: p[r] }), i.sort(Ut);
471
+ const d = c.findIndex((f) => Z === f.value);
472
+ d !== -1 ? c[d].layout = p[r] : c.push({ value: Z, layout: p[r] }), c.sort(Ut);
473
473
  },
474
- updateOrder: (Z, p, m) => {
475
- if (d.current)
474
+ updateOrder: (Z, p, d) => {
475
+ if (m.current)
476
476
  return;
477
- const f = jt(i, Z, p, m);
478
- i !== f && (d.current = !0, a(f.map(qt).filter((b) => l.indexOf(b) !== -1)));
477
+ const f = _t(c, Z, p, d);
478
+ c !== f && (m.current = !0, a(f.map(qt).filter((b) => l.indexOf(b) !== -1)));
479
479
  }
480
480
  };
481
- O(() => {
482
- d.current = !1;
481
+ se(() => {
482
+ m.current = !1;
483
483
  });
484
484
  const y = (Z) => {
485
- h.current = Z, typeof c == "function" ? c(Z) : c && (c.current = Z);
485
+ h.current = Z, typeof s == "function" ? s(Z) : s && (s.current = Z);
486
486
  }, w = {
487
487
  overflowAnchor: "none",
488
488
  ...o.style
489
489
  };
490
- return s(u, { ...o, style: w, ref: y, ignoreStrict: !0, children: s(et.Provider, { value: g, children: e }) });
490
+ return i(u, { ...o, style: w, ref: y, ignoreStrict: !0, children: i(et.Provider, { value: g, children: e }) });
491
491
  }
492
- const tt = /* @__PURE__ */ Re(_t);
492
+ const tt = /* @__PURE__ */ Re(jt);
493
493
  function qt(e) {
494
494
  return e.value;
495
495
  }
496
496
  function Ut(e, t) {
497
497
  return e.layout.min - t.layout.min;
498
498
  }
499
- const z = 50, Ze = 25, Xt = /* @__PURE__ */ new Set(["auto", "scroll"]), $ = /* @__PURE__ */ new WeakMap(), R = /* @__PURE__ */ new WeakMap();
499
+ const G = 50, Ze = 25, Xt = /* @__PURE__ */ new Set(["auto", "scroll"]), $ = /* @__PURE__ */ new WeakMap(), R = /* @__PURE__ */ new WeakMap();
500
500
  let T = null;
501
501
  function Jt() {
502
502
  if (T) {
503
- const e = ne(T, "y");
503
+ const e = ae(T, "y");
504
504
  e && (R.delete(e), $.delete(e));
505
- const t = ne(T, "x");
505
+ const t = ae(T, "x");
506
506
  t && t !== e && (R.delete(t), $.delete(t)), T = null;
507
507
  }
508
508
  }
@@ -510,7 +510,7 @@ function Kt(e, t) {
510
510
  const r = getComputedStyle(e), a = t === "x" ? r.overflowX : r.overflowY, l = e === document.body || e === document.documentElement;
511
511
  return Xt.has(a) || l;
512
512
  }
513
- function ne(e, t) {
513
+ function ae(e, t) {
514
514
  let r = e?.parentElement;
515
515
  for (; r; ) {
516
516
  if (Kt(r, t))
@@ -520,13 +520,13 @@ function ne(e, t) {
520
520
  return null;
521
521
  }
522
522
  function Yt(e, t, r) {
523
- const a = t.getBoundingClientRect(), l = r === "x" ? Math.max(0, a.left) : Math.max(0, a.top), o = r === "x" ? Math.min(window.innerWidth, a.right) : Math.min(window.innerHeight, a.bottom), c = e - l, u = o - e;
524
- if (c < z) {
525
- const i = 1 - c / z;
526
- return { amount: -Ze * i * i, edge: "start" };
527
- } else if (u < z) {
528
- const i = 1 - u / z;
529
- return { amount: Ze * i * i, edge: "end" };
523
+ const a = t.getBoundingClientRect(), l = r === "x" ? Math.max(0, a.left) : Math.max(0, a.top), o = r === "x" ? Math.min(window.innerWidth, a.right) : Math.min(window.innerHeight, a.bottom), s = e - l, u = o - e;
524
+ if (s < G) {
525
+ const c = 1 - s / G;
526
+ return { amount: -Ze * c * c, edge: "start" };
527
+ } else if (u < G) {
528
+ const c = 1 - u / G;
529
+ return { amount: Ze * c * c, edge: "end" };
530
530
  }
531
531
  return { amount: 0, edge: null };
532
532
  }
@@ -534,47 +534,47 @@ function Qt(e, t, r, a) {
534
534
  if (!e)
535
535
  return;
536
536
  T = e;
537
- const l = ne(e, r);
537
+ const l = ae(e, r);
538
538
  if (!l)
539
539
  return;
540
- const o = t - (r === "x" ? window.scrollX : window.scrollY), { amount: c, edge: u } = Yt(o, l, r);
540
+ const o = t - (r === "x" ? window.scrollX : window.scrollY), { amount: s, edge: u } = Yt(o, l, r);
541
541
  if (u === null) {
542
542
  R.delete(l), $.delete(l);
543
543
  return;
544
544
  }
545
- const i = R.get(l), d = l === document.body || l === document.documentElement;
546
- if (i !== u) {
545
+ const c = R.get(l), m = l === document.body || l === document.documentElement;
546
+ if (c !== u) {
547
547
  if (!(u === "start" && a < 0 || u === "end" && a > 0))
548
548
  return;
549
549
  R.set(l, u);
550
- const g = r === "x" ? l.scrollWidth - (d ? window.innerWidth : l.clientWidth) : l.scrollHeight - (d ? window.innerHeight : l.clientHeight);
550
+ const g = r === "x" ? l.scrollWidth - (m ? window.innerWidth : l.clientWidth) : l.scrollHeight - (m ? window.innerHeight : l.clientHeight);
551
551
  $.set(l, g);
552
552
  }
553
- if (c > 0) {
553
+ if (s > 0) {
554
554
  const h = $.get(l);
555
- if ((r === "x" ? d ? window.scrollX : l.scrollLeft : d ? window.scrollY : l.scrollTop) >= h)
555
+ if ((r === "x" ? m ? window.scrollX : l.scrollLeft : m ? window.scrollY : l.scrollTop) >= h)
556
556
  return;
557
557
  }
558
- r === "x" ? d ? window.scrollBy({ left: c }) : l.scrollLeft += c : d ? window.scrollBy({ top: c }) : l.scrollTop += c;
558
+ r === "x" ? m ? window.scrollBy({ left: s }) : l.scrollLeft += s : m ? window.scrollBy({ top: s }) : l.scrollTop += s;
559
559
  }
560
560
  function Ee(e, t = 0) {
561
561
  return wt(e) ? e : de(t);
562
562
  }
563
- function e0({ children: e, style: t = {}, value: r, as: a = "li", onDrag: l, onDragEnd: o, layout: c = !0, ...u }, i) {
564
- const d = U(() => ce[a]), h = j(et), g = {
563
+ function e0({ children: e, style: t = {}, value: r, as: a = "li", onDrag: l, onDragEnd: o, layout: s = !0, ...u }, c) {
564
+ const m = q(() => ce[a]), h = B(et), g = {
565
565
  x: Ee(t.x),
566
566
  y: Ee(t.y)
567
567
  }, y = Gt([g.x, g.y], ([f, b]) => f || b ? 1 : "unset");
568
568
  Be(!!h, "Reorder.Item must be a child of Reorder.Group", "reorder-item-child");
569
- const { axis: w, registerItem: Z, updateOrder: p, groupRef: m } = h;
570
- return s(d, { drag: w, ...u, dragSnapToOrigin: !0, style: { ...t, x: g.x, y: g.y, zIndex: y }, layout: c, onDrag: (f, b) => {
569
+ const { axis: w, registerItem: Z, updateOrder: p, groupRef: d } = h;
570
+ return i(m, { drag: w, ...u, dragSnapToOrigin: !0, style: { ...t, x: g.x, y: g.y, zIndex: y }, layout: s, onDrag: (f, b) => {
571
571
  const { velocity: v, point: E } = b, S = g[w].get();
572
- p(r, S, v[w]), Qt(m.current, E[w], w, v[w]), l && l(f, b);
572
+ p(r, S, v[w]), Qt(d.current, E[w], w, v[w]), l && l(f, b);
573
573
  }, onDragEnd: (f, b) => {
574
574
  Jt(), o && o(f, b);
575
575
  }, onLayoutMeasure: (f) => {
576
576
  Z(r, f);
577
- }, ref: i, ignoreStrict: !0, children: e });
577
+ }, ref: c, ignoreStrict: !0, children: e });
578
578
  }
579
579
  const rt = /* @__PURE__ */ Re(e0);
580
580
  var t0 = Object.defineProperty, Me = Object.getOwnPropertySymbols, r0 = Object.prototype.hasOwnProperty, a0 = Object.prototype.propertyIsEnumerable, He = (e, t, r) => t in e ? t0(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, n0 = (e, t) => {
@@ -590,7 +590,7 @@ var t0 = Object.defineProperty, Me = Object.getOwnPropertySymbols, r0 = Object.p
590
590
  if (t(e[a], a, e))
591
591
  return !0;
592
592
  return !1;
593
- }, l0 = (e, t, r, a) => J(he, e, t, r, a), I = (e) => typeof e == "object", N = (e, t) => {
593
+ }, l0 = (e, t, r, a) => X(he, e, t, r, a), I = (e) => typeof e == "object", N = (e, t) => {
594
594
  if (e === t)
595
595
  return !0;
596
596
  if (e instanceof Date && t instanceof Date)
@@ -631,17 +631,17 @@ var t0 = Object.defineProperty, Me = Object.getOwnPropertySymbols, r0 = Object.p
631
631
  for (let l = 0; l < a; l++)
632
632
  t(e[l], l, e) && r.push(e[l]);
633
633
  return r;
634
- }, J = (e, t, r, a, l) => {
634
+ }, X = (e, t, r, a, l) => {
635
635
  if (typeof r == "function")
636
636
  return e(t, r);
637
637
  const o = i0(a);
638
- return r && a && l !== void 0 ? e(t, (c) => o(c[r], l)) : e(t, (c) => o(c, l));
639
- }, c0 = (e, t, r, a) => J(C, e, t, r, a), at = (e, t) => {
638
+ return r && a && l !== void 0 ? e(t, (s) => o(s[r], l)) : e(t, (s) => o(s, l));
639
+ }, c0 = (e, t, r, a) => X(C, e, t, r, a), at = (e, t) => {
640
640
  for (let r = 0; r < e.length; r++)
641
641
  if (!t(e[r], r, e))
642
642
  return !1;
643
643
  return !0;
644
- }, u0 = (e, t, r, a) => J(at, e, t, r, a), nt = (e) => {
644
+ }, u0 = (e, t, r, a) => X(at, e, t, r, a), nt = (e) => {
645
645
  if (e === null)
646
646
  return null;
647
647
  const t = n0({}, e);
@@ -696,12 +696,12 @@ var t0 = Object.defineProperty, Me = Object.getOwnPropertySymbols, r0 = Object.p
696
696
  const o = t.charCodeAt(0);
697
697
  for (; l <= o; l += r)
698
698
  a.push(String.fromCharCode(l));
699
- return _(e) && _(t) ? a.map((c) => Number.parseInt(c)) : a;
700
- }, Q = (e, t, r = 1) => {
699
+ return _(e) && _(t) ? a.map((s) => Number.parseInt(s)) : a;
700
+ }, Y = (e, t, r = 1) => {
701
701
  let a = Math.abs(r);
702
702
  if ((e.length > 1 || t.length > 1) && _(e) && _(t)) {
703
- const l = [], [o, c] = g0(e, t);
704
- for (let u = o; u <= c; u += a)
703
+ const l = [], [o, s] = g0(e, t);
704
+ for (let u = o; u <= s; u += a)
705
705
  l.push(u);
706
706
  return l;
707
707
  }
@@ -709,15 +709,15 @@ var t0 = Object.defineProperty, Me = Object.getOwnPropertySymbols, r0 = Object.p
709
709
  }, y0 = (e, t, r = 1) => {
710
710
  if (t === void 0) {
711
711
  const [a, l, o] = e.split("..");
712
- return o === void 0 ? Q(a, l, 1) : Q(a, o, Number.parseInt(l, 10));
712
+ return o === void 0 ? Y(a, l, 1) : Y(a, o, Number.parseInt(l, 10));
713
713
  }
714
- return Se(e) && Se(t) ? Q(`${e}`, `${t}`, r) : Array.from({ length: e }, (a, l) => l * Math.abs(t));
715
- }, ee = (e, t, r) => {
714
+ return Se(e) && Se(t) ? Y(`${e}`, `${t}`, r) : Array.from({ length: e }, (a, l) => l * Math.abs(t));
715
+ }, Q = (e, t, r) => {
716
716
  let a = t;
717
717
  const l = r.length;
718
718
  for (let o = 0; o < l; o++) {
719
- const c = r[o];
720
- a = e(a, c, o, r);
719
+ const s = r[o];
720
+ a = e(a, s, o, r);
721
721
  }
722
722
  return a;
723
723
  }, Ce = (e) => {
@@ -739,11 +739,11 @@ var t0 = Object.defineProperty, Me = Object.getOwnPropertySymbols, r0 = Object.p
739
739
  return e.slice(a);
740
740
  }
741
741
  return e.slice(0);
742
- }, A0 = (e, t, r, a) => J(b0, e, t, r, a), Le = (e, t) => {
742
+ }, A0 = (e, t, r, a) => X(b0, e, t, r, a), Le = (e, t) => {
743
743
  const r = [...e];
744
744
  return t === void 0 ? r.sort() : typeof t == "function" ? r.toSorted(t) : r.toSorted(s0(t));
745
745
  }, ot = /* @__PURE__ */ ((e) => (e.Asc = "asc", e.Desc = "desc", e))(ot || {}), v0 = (e) => (t, r) => e.reduce((a, l) => {
746
- const o = l.type === "desc" ? -1 : 1, c = l.key, u = t[c] > r[c] ? o : t[c] < r[c] ? -o : 0;
746
+ const o = l.type === "desc" ? -1 : 1, s = l.key, u = t[s] > r[s] ? o : t[s] < r[s] ? -o : 0;
747
747
  return a !== 0 ? a : u;
748
748
  }, 0), w0 = (e, t) => e.sort(v0(t)), Z0 = (e, t) => {
749
749
  if (t === void 0)
@@ -753,7 +753,7 @@ var t0 = Object.defineProperty, Me = Object.getOwnPropertySymbols, r0 = Object.p
753
753
  const l = t ? r.has(a[t]) : r.has(t);
754
754
  return t && (l || r.add(a[t])), !l;
755
755
  });
756
- }, E0 = class le {
756
+ }, E0 = class ne {
757
757
  constructor(t = []) {
758
758
  this.array = t;
759
759
  }
@@ -761,7 +761,7 @@ var t0 = Object.defineProperty, Me = Object.getOwnPropertySymbols, r0 = Object.p
761
761
  return y0(...t);
762
762
  }
763
763
  static New(t) {
764
- return new le(t);
764
+ return new ne(t);
765
765
  }
766
766
  Where(t, r, a) {
767
767
  return this.array = c0(this.array, t, r, a), this;
@@ -811,7 +811,7 @@ var t0 = Object.defineProperty, Me = Object.getOwnPropertySymbols, r0 = Object.p
811
811
  return this.array[a];
812
812
  }
813
813
  Sum(t) {
814
- return t === void 0 ? ee((r, a) => r + a, 0, this.array) : ee((r, a) => r + o0(a, t), 0, this.array);
814
+ return t === void 0 ? Q((r, a) => r + a, 0, this.array) : Q((r, a) => r + o0(a, t), 0, this.array);
815
815
  }
816
816
  Average(t) {
817
817
  return this.Sum(t) / this.array.length;
@@ -845,7 +845,7 @@ var t0 = Object.defineProperty, Me = Object.getOwnPropertySymbols, r0 = Object.p
845
845
  return !1;
846
846
  }
847
847
  Reduce(t, r) {
848
- return ee(t, r ?? this.array[0], this.array);
848
+ return Q(t, r ?? this.array[0], this.array);
849
849
  }
850
850
  Empty() {
851
851
  return this.array.length === 0;
@@ -863,7 +863,7 @@ var t0 = Object.defineProperty, Me = Object.getOwnPropertySymbols, r0 = Object.p
863
863
  return this.array[t];
864
864
  }
865
865
  Clone() {
866
- return new le(nt(this.array));
866
+ return new ne(nt(this.array));
867
867
  }
868
868
  ToObject(t) {
869
869
  return d0(this.array, t);
@@ -878,8 +878,8 @@ var t0 = Object.defineProperty, Me = Object.getOwnPropertySymbols, r0 = Object.p
878
878
  const M0 = (e) => {
879
879
  const t = e.Icon ?? gt, r = x();
880
880
  return /* @__PURE__ */ A("div", { className: "flex w-full flex-col items-center justify-center gap-4 px-8 py-12", children: [
881
- /* @__PURE__ */ s(t, { size: 64, className: "text-disabled" }),
882
- /* @__PURE__ */ s("p", { className: "text-disabled", children: e.message ?? r.emptyDataMessage })
881
+ /* @__PURE__ */ i(t, { size: 64, className: "text-disabled" }),
882
+ /* @__PURE__ */ i("p", { className: "text-disabled", children: e.message ?? r.emptyDataMessage })
883
883
  ] });
884
884
  };
885
885
  function H0(e, t) {
@@ -889,155 +889,158 @@ function H0(e, t) {
889
889
  e > 4 && r.push("-");
890
890
  const a = 2, l = e - a, o = e + a;
891
891
  for (let u = l > 2 ? l : 2; u <= Math.min(t, o); u++) r.push(u);
892
- const c = t - 2;
893
- return o + 1 !== c && o + 1 < t && r.push("_"), o < t && (r.push(t - 2), r.push(t - 1), r.push(t)), Array.from(new Set(r));
892
+ const s = t - 2;
893
+ return o + 1 !== s && o + 1 < t && r.push("_"), o < t && (r.push(t - 2), r.push(t - 1), r.push(t)), Array.from(new Set(r));
894
894
  }
895
895
  const S0 = (e) => {
896
- const t = dt(), r = x(), a = V(() => H0(e.current, e.pages), [e.current, e.pages]), l = e.current < e.pages;
896
+ const t = dt(), r = x(), a = V(() => H0(e.current, e.pages), [e.current, e.pages]), l = e.current < e.pages, o = e.asLink ?? "button";
897
897
  return /* @__PURE__ */ A("footer", { className: "flex flex-wrap items-center justify-center gap-4 border-t-muted p-3 text-sm lg:flex-nowrap lg:justify-between", children: [
898
- /* @__PURE__ */ s("p", { children: /* @__PURE__ */ s(
898
+ /* @__PURE__ */ i("p", { children: /* @__PURE__ */ i(
899
899
  r.tablePaginationFooter,
900
900
  {
901
901
  ...e,
902
902
  sizes: e.sizes,
903
903
  select: e.onChangeSize && Array.isArray(e.sizes) ? /* @__PURE__ */ A(M, { children: [
904
- /* @__PURE__ */ s("label", { htmlFor: t, children: r.tablePaginationSelectLabel }),
905
- /* @__PURE__ */ s(
904
+ /* @__PURE__ */ i("label", { htmlFor: t, children: r.tablePaginationSelectLabel }),
905
+ /* @__PURE__ */ i(
906
906
  "select",
907
907
  {
908
908
  id: t,
909
909
  value: e.size,
910
910
  className: "cursor-pointer bg-transparent",
911
- onChange: (o) => {
912
- e.onChangeSize?.(Number(o.target.value));
911
+ onChange: (s) => {
912
+ e.onChangeSize?.(Number(s.target.value));
913
913
  },
914
- children: e.sizes.map((o) => /* @__PURE__ */ s("option", { value: o, children: o }, `pagination-opt-${o}`))
914
+ children: e.sizes.map((s) => /* @__PURE__ */ i("option", { value: s, children: s }, `pagination-opt-${s}`))
915
915
  }
916
916
  ),
917
917
  " "
918
918
  ] }) : null
919
919
  }
920
920
  ) }),
921
- /* @__PURE__ */ s("nav", { children: /* @__PURE__ */ A("ul", { className: "flex items-center gap-2", children: [
922
- e.current > 1 ? /* @__PURE__ */ s("li", { children: /* @__PURE__ */ s(K, { as: e.asLink || "button", href: "previous", className: "", children: r.tablePaginationPrevious }) }) : null,
923
- a.map((o) => o === null ? null : /* @__PURE__ */ s(M, { children: typeof o == "string" ? /* @__PURE__ */ s("li", { children: "..." }) : /* @__PURE__ */ s("li", { children: /* @__PURE__ */ s(
924
- K,
921
+ /* @__PURE__ */ i("nav", { children: /* @__PURE__ */ A("ul", { className: "flex items-center gap-2", children: [
922
+ e.current > 1 ? /* @__PURE__ */ i("li", { children: /* @__PURE__ */ i(J, { as: o, href: "previous", className: "", children: r.tablePaginationPrevious }) }) : null,
923
+ a.map((s) => s === null ? null : /* @__PURE__ */ i(M, { children: typeof s == "string" ? /* @__PURE__ */ i("li", { children: "..." }) : /* @__PURE__ */ i("li", { children: /* @__PURE__ */ i(
924
+ J,
925
925
  {
926
- href: o,
927
- as: e.asLink || "button",
928
- className: `cursor-pointer border-b-2 px-3 py-1 proportional-nums transition-colors hover:border-primary-subtle hover:text-primary-subtle ${o === e.current ? "border-primary text-primary" : "border-transparent"}`,
929
- children: o
926
+ href: s,
927
+ as: o,
928
+ className: `cursor-pointer border-b-2 px-3 py-1 proportional-nums transition-colors hover:border-primary-subtle hover:text-primary-subtle ${s === e.current ? "border-primary text-primary" : "border-transparent"}`,
929
+ children: s
930
930
  }
931
- ) }) }, `pagination-${o}`)),
932
- l ? /* @__PURE__ */ s("li", { children: /* @__PURE__ */ s(K, { as: e.asLink || "button", href: "next", className: "", children: r.tablePaginationNext }) }) : null
931
+ ) }) }, `pagination-${s}`)),
932
+ l ? /* @__PURE__ */ i("li", { children: /* @__PURE__ */ i(J, { as: o, href: "next", className: "", children: r.tablePaginationNext }) }) : null
933
933
  ] }) })
934
934
  ] });
935
935
  }, F0 = (e) => {
936
- const t = F(null), r = F(null), [a, l] = D("opacity-0"), o = a === "opacity-0", c = () => l("opacity-0"), u = () => {
937
- const d = r.current, h = t.current;
938
- d === null || h === null || (h.style.left = `-${d.getBoundingClientRect().width + 4}px`);
939
- }, i = () => l("opacity-100");
940
- return O(() => {
941
- const d = r.current;
942
- if (d === null || parent === null) return;
943
- u();
944
- const h = new IntersectionObserver((g) => g.forEach(u), { root: document.documentElement });
945
- return h.observe(d), () => h.disconnect();
946
- }, []), /* @__PURE__ */ s(
936
+ const t = F(null), r = F(null), [a, l] = D("opacity-0"), o = a === "opacity-0";
937
+ return /* @__PURE__ */ i(
947
938
  "div",
948
939
  {
949
940
  ref: t,
950
- onMouseEnter: i,
951
- onMouseLeave: c,
941
+ onMouseEnter: () => {
942
+ const c = r.current, m = t.current;
943
+ c !== null && m !== null && (m.style.left = `-${c.getBoundingClientRect().width + 4}px`), l("opacity-100");
944
+ },
945
+ onMouseLeave: () => l("opacity-0"),
952
946
  "data-component": "cell-aside",
953
947
  inert: o ? !0 : void 0,
954
948
  tabIndex: o ? -1 : void 0,
955
949
  className: `group-table-cell-aside absolute inset-0 top-0 flex h-full w-full items-stretch transition-opacity duration-300 ease-in-out ${a}`,
956
- children: /* @__PURE__ */ s("div", { ref: r, className: "isolate block", children: e.children })
950
+ children: /* @__PURE__ */ i("div", { ref: r, className: "isolate block", children: e.children })
957
951
  }
958
952
  );
959
953
  }, x0 = (e, t, r) => {
960
954
  const a = r.cols, l = r.loading;
961
- return /* @__PURE__ */ s(M, { children: a.map((o, c) => {
962
- const u = `${c},${e}`, i = pt(t, o.id), d = o.Element, h = o.cellProps?.className || "", g = c === 0 && r.Aside && l === !1, y = r.Aside;
955
+ return /* @__PURE__ */ i(M, { children: a.map((o, s) => {
956
+ const u = `${s},${e}`, c = pt(t, o.id), m = o.Element, h = o.cellProps?.className || "", g = s === 0 && r.Aside && l === !1, y = r.Aside;
963
957
  return /* @__PURE__ */ mt(
964
958
  "td",
965
959
  {
966
960
  ...o.cellProps,
967
961
  role: "cell",
968
962
  "data-matrix": u,
969
- key: `accessor-${e}-${c}`,
963
+ key: `accessor-${e}-${s}`,
970
964
  className: `typography group-table-cell flex border-collapse flex-col whitespace-pre-wrap border border-y border-b border-table-border p-[var(--table-cell-padding)] md:table-cell md:border-b-0 md:border-r md:border-l-transparent md:last:border-r-transparent ${h}`
971
965
  },
972
- g ? /* @__PURE__ */ s(F0, { children: /* @__PURE__ */ s(y, { col: o, row: t, rowIndex: e }) }) : null,
973
- /* @__PURE__ */ s("span", { className: "block text-sm font-bold leading-tight md:hidden", children: o.thead }),
974
- /* @__PURE__ */ s("span", { className: "relative", children: l ? Oe : d ? /* @__PURE__ */ s(M, { children: /* @__PURE__ */ s(d, { row: t, matrix: u, col: o, rowIndex: e, value: i }) }) : /* @__PURE__ */ s(M, { children: De.nil(i) ? "" : i }) })
966
+ g ? /* @__PURE__ */ i(F0, { children: /* @__PURE__ */ i(y, { col: o, row: t, rowIndex: e }) }) : null,
967
+ /* @__PURE__ */ i("span", { className: "block text-sm font-bold leading-tight md:hidden", children: o.thead }),
968
+ /* @__PURE__ */ i("span", { className: "relative", children: l ? Oe : m ? /* @__PURE__ */ i(M, { children: /* @__PURE__ */ i(
969
+ m,
970
+ {
971
+ row: t,
972
+ matrix: u,
973
+ col: o,
974
+ rowIndex: e,
975
+ value: c
976
+ }
977
+ ) }) : /* @__PURE__ */ i(M, { children: De.nil(c) ? "" : c }) })
975
978
  );
976
979
  }) });
977
980
  };
978
- var te = {}, Ie;
981
+ var ee = {}, Ie;
979
982
  function N0() {
980
983
  return Ie || (Ie = 1, (function(e) {
981
984
  Object.defineProperty(e, Symbol.toStringTag, { value: "Module" });
982
- const t = (m, f) => {
985
+ const t = (d, f) => {
983
986
  try {
984
- Object.keys(m).forEach(f);
987
+ Object.keys(d).forEach(f);
985
988
  } catch (b) {
986
989
  window.console.log(b);
987
990
  }
988
- }, r = (m) => m == null, a = (m) => {
989
- const f = typeof m;
990
- return f === "string" || f === "number" || f === "boolean" || r(m);
991
- }, l = (m, f) => {
992
- const b = f.getItem(m);
991
+ }, r = (d) => d == null, a = (d) => {
992
+ const f = typeof d;
993
+ return f === "string" || f === "number" || f === "boolean" || r(d);
994
+ }, l = (d, f) => {
995
+ const b = f.getItem(d);
993
996
  try {
994
997
  return JSON.parse(b);
995
998
  } catch {
996
999
  return b ?? null;
997
1000
  }
998
- }, o = (m) => Object.keys(m).reduce((f, b) => ({ ...f, [b]: l(b, m) }), {}), c = (m) => m instanceof Date ? m : typeof m == "number" ? new Date(/* @__PURE__ */ new Date() * 1 + m * 864e5) : m, u = "1969-12-31T23:59:59.000Z", i = () => document.cookie === "" ? {} : document.cookie.split("; ").map((m) => m.split("=")).reduce((m, f) => (m[decodeURIComponent(f[0].trim())] = decodeURIComponent(f[1].trim()), m), {}), d = /* @__PURE__ */ new Set(), h = () => {
999
- const m = i();
1000
- d.forEach((f) => f(m));
1001
- }, g = [{ name: "expires", parse: (m) => `expires=${c(m.expires ?? u)}` }, { name: "maxAge", parse: (m) => m.maxAge ? `max-age=${c(m.expires ?? u)}` : "" }, { name: "path", parse: (m) => `path=${m.path ?? "/"}` }, { name: "sameSite", parse: (m) => `samesite=${m.sameSite ?? "strict"}` }, { name: "useSecure", parse: (m) => `${m.useSecure ?? !0 ? "secure" : ""}` }, { name: "domain", parse: (m) => {
1002
- const f = m.domain ?? "";
1003
- return f === "" ? "" : `domain=${m.multiDomain ? "." : ""}${f}`;
1004
- } }, { name: "partitioned", parse: (m) => m.partitioned ? "Partitioned" : "" }], y = { json: i, listener: (m) => (d.add(m), () => d.delete(m)), clearListeners: () => d.clear(), has: (m) => document.cookie.split(";").some((f) => f.trim().startsWith(`${m}=`)), deleteAll: () => {
1005
- document.cookie.split(";").forEach((m) => {
1006
- document.cookie = m.replace(/^ +/, "").replace(/=.*/, `=;expires=${(/* @__PURE__ */ new Date()).toUTCString()};path=/`);
1001
+ }, o = (d) => Object.keys(d).reduce((f, b) => ({ ...f, [b]: l(b, d) }), {}), s = (d) => d instanceof Date ? d : typeof d == "number" ? new Date(/* @__PURE__ */ new Date() * 1 + d * 864e5) : d, u = "1969-12-31T23:59:59.000Z", c = () => document.cookie === "" ? {} : document.cookie.split("; ").map((d) => d.split("=")).reduce((d, f) => (d[decodeURIComponent(f[0].trim())] = decodeURIComponent(f[1].trim()), d), {}), m = /* @__PURE__ */ new Set(), h = () => {
1002
+ const d = c();
1003
+ m.forEach((f) => f(d));
1004
+ }, g = [{ name: "expires", parse: (d) => `expires=${s(d.expires ?? u)}` }, { name: "maxAge", parse: (d) => d.maxAge ? `max-age=${s(d.expires ?? u)}` : "" }, { name: "path", parse: (d) => `path=${d.path ?? "/"}` }, { name: "sameSite", parse: (d) => `samesite=${d.sameSite ?? "strict"}` }, { name: "useSecure", parse: (d) => `${d.useSecure ?? !0 ? "secure" : ""}` }, { name: "domain", parse: (d) => {
1005
+ const f = d.domain ?? "";
1006
+ return f === "" ? "" : `domain=${d.multiDomain ? "." : ""}${f}`;
1007
+ } }, { name: "partitioned", parse: (d) => d.partitioned ? "Partitioned" : "" }], y = { json: c, listener: (d) => (m.add(d), () => m.delete(d)), clearListeners: () => m.clear(), has: (d) => document.cookie.split(";").some((f) => f.trim().startsWith(`${d}=`)), deleteAll: () => {
1008
+ document.cookie.split(";").forEach((d) => {
1009
+ document.cookie = d.replace(/^ +/, "").replace(/=.*/, `=;expires=${(/* @__PURE__ */ new Date()).toUTCString()};path=/`);
1007
1010
  }), h();
1008
- }, get: (m) => {
1009
- const f = y.json()[m];
1011
+ }, get: (d) => {
1012
+ const f = y.json()[d];
1010
1013
  if (r(f)) return null;
1011
1014
  try {
1012
1015
  return JSON.parse(decodeURIComponent(f));
1013
1016
  } catch {
1014
1017
  return f;
1015
1018
  }
1016
- }, delete: (m) => {
1017
- document.cookie = `${encodeURIComponent(m)}=;expires=${(/* @__PURE__ */ new Date()).toUTCString()}`, h();
1018
- }, set: (m, f, b = {}) => {
1019
+ }, delete: (d) => {
1020
+ document.cookie = `${encodeURIComponent(d)}=;expires=${(/* @__PURE__ */ new Date()).toUTCString()}`, h();
1021
+ }, set: (d, f, b = {}) => {
1019
1022
  const v = a(f) ? f : encodeURIComponent(JSON.stringify(f)), E = g.reduce((S, ye) => {
1020
1023
  const be = ye.parse(b);
1021
1024
  return be === "" ? S : S.concat(be);
1022
- }, [`${encodeURIComponent(m)}=${v}`]).join(";");
1025
+ }, [`${encodeURIComponent(d)}=${v}`]).join(";");
1023
1026
  document.cookie = E, h();
1024
- } }, w = (m) => {
1027
+ } }, w = (d) => {
1025
1028
  const f = /* @__PURE__ */ new Set(), b = (v) => {
1026
- m().removeItem(v);
1027
- const E = o(m());
1029
+ d().removeItem(v);
1030
+ const E = o(d());
1028
1031
  f.forEach((S) => S(E));
1029
1032
  };
1030
- return { delete: b, listener: (v) => (f.add(v), () => f.delete(v)), clearListeners: () => f.clear(), json: (v = !1) => v ? o(m()) : m(), has: (v) => {
1031
- const E = m().getItem(v);
1033
+ return { delete: b, listener: (v) => (f.add(v), () => f.delete(v)), clearListeners: () => f.clear(), json: (v = !1) => v ? o(d()) : d(), has: (v) => {
1034
+ const E = d().getItem(v);
1032
1035
  return !r(E);
1033
1036
  }, deleteAll: () => {
1034
- t(m(), b), f.forEach((v) => v(m()));
1035
- }, get: (v) => l(v, m()), set: (v, E) => {
1036
- m().setItem(v, JSON.stringify(E)), f.forEach((S) => S(m()));
1037
+ t(d(), b), f.forEach((v) => v(d()));
1038
+ }, get: (v) => l(v, d()), set: (v, E) => {
1039
+ d().setItem(v, JSON.stringify(E)), f.forEach((S) => S(d()));
1037
1040
  } };
1038
1041
  }, Z = w(() => window.sessionStorage), p = w(() => window.localStorage);
1039
1042
  e.Cookie = y, e.LocalStorage = p, e.SessionStorage = Z, e.createStorage = w;
1040
- })(te)), te;
1043
+ })(ee)), ee;
1041
1044
  }
1042
1045
  var Te = N0();
1043
1046
  const fe = (e) => e.headerLabel ?? e.thead ?? e.id, it = (e) => e.map((t) => ({
@@ -1047,7 +1050,7 @@ const fe = (e) => e.headerLabel ?? e.thead ?? e.id, it = (e) => e.map((t) => ({
1047
1050
  var k = /* @__PURE__ */ ((e) => (e.Boolean = "boolean", e.Number = "number", e.Select = "select", e.Text = "text", e))(k || {});
1048
1051
  const ge = (e) => e.type === "number" ? e.valueAsNumber : e.value, Mr = (e) => {
1049
1052
  let t = [];
1050
- return e({ add: (c, u, i) => t.push({ ...i, id: c, thead: u }), remove: (c) => t = t.filter((u) => u.id !== c), getAll: () => Array.from(t), filter: (c) => t = Array.from(t.filter(c)) }), t;
1053
+ return e({ add: (s, u, c) => t.push({ ...c, id: s, thead: u }), remove: (s) => t = t.filter((u) => u.id !== s), getAll: () => Array.from(t), filter: (s) => t = Array.from(t.filter(s)) }), t;
1051
1054
  }, V0 = {}, C0 = (e, t) => {
1052
1055
  if (!Array.isArray(t)) return e;
1053
1056
  const r = new Set(t.map((l) => l.id));
@@ -1055,11 +1058,11 @@ const ge = (e) => e.type === "number" ? e.valueAsNumber : e.value, Mr = (e) => {
1055
1058
  return e;
1056
1059
  const a = new Map(e.map((l) => [l.id, l]));
1057
1060
  return t.map((l, o) => {
1058
- const c = a.get(l.id);
1059
- return c === void 0 ? e[o] : c;
1061
+ const s = a.get(l.id);
1062
+ return s === void 0 ? e[o] : s;
1060
1063
  });
1061
1064
  }, Hr = (e, t, r = V0) => {
1062
- const a = ae() ? null : Te.LocalStorage.get(`@components/table-${e}`) || null, [l, o] = ke(
1065
+ const a = re() ? null : Te.LocalStorage.get(`@components/table-${e}`) || null, [l, o] = ke(
1063
1066
  {
1064
1067
  name: e,
1065
1068
  groups: r.groups || a?.groups || [],
@@ -1067,32 +1070,32 @@ const ge = (e) => e.type === "number" ? e.valueAsNumber : e.value, Mr = (e) => {
1067
1070
  filters: r.filters || a?.filters || [],
1068
1071
  cols: C0(t, a?.cols)
1069
1072
  },
1070
- (c) => {
1071
- const u = (i) => {
1072
- const d = c.state(), h = { ...d, ...i };
1073
- return ae() || Te.LocalStorage.set(`@components/table-${d.name}`, h), h;
1073
+ (s) => {
1074
+ const u = (c) => {
1075
+ const m = s.state(), h = { ...m, ...c };
1076
+ return re() || Te.LocalStorage.set(`@components/table-${m.name}`, h), h;
1074
1077
  };
1075
- return u(c.state()), {
1076
- set: (i) => u(i)
1078
+ return u(s.state()), {
1079
+ set: (c) => u(c)
1077
1080
  };
1078
1081
  }
1079
1082
  );
1080
1083
  return { ...l, ...o, name: e };
1081
1084
  }, L0 = (e) => {
1082
- const t = re(e), r = F(null), a = B(
1085
+ const t = te(e), r = F(null), a = W(
1083
1086
  (l) => {
1084
1087
  t.current(l), l.forEach((o) => {
1085
- const c = r.current.querySelector(`th[data-tableheader="${o.id}"]`);
1086
- c && (c.style.width = "auto");
1088
+ const s = r.current.querySelector(`th[data-tableheader="${o.id}"]`);
1089
+ s && (s.style.width = "auto");
1087
1090
  });
1088
1091
  },
1089
1092
  [t]
1090
1093
  );
1091
1094
  return [r, a];
1092
- }, Sr = () => ae() ? void 0 : document.querySelector('[data-component="modal-body"]'), I0 = (e) => (t, r) => e.reduce((a, l) => {
1093
- const o = l.type === "desc" ? -1 : 1, c = l.value, u = t[c] > r[c] ? o : t[c] < r[c] ? -o : 0;
1095
+ }, Sr = () => re() ? void 0 : document.querySelector('[data-component="modal-body"]'), I0 = (e) => (t, r) => e.reduce((a, l) => {
1096
+ const o = l.type === "desc" ? -1 : 1, s = l.value, u = t[s] > r[s] ? o : t[s] < r[s] ? -o : 0;
1094
1097
  return a !== 0 ? a : u;
1095
- }, 0), T0 = (e, t) => e.toSorted(I0(t)), ct = (e, t, r) => ({
1098
+ }, 0), T0 = (e, t) => (e.sort(I0(t)), e), ct = (e, t, r) => ({
1096
1099
  label: t,
1097
1100
  id: ie(),
1098
1101
  type: r,
@@ -1110,54 +1113,54 @@ const ge = (e) => e.type === "number" ? e.valueAsNumber : e.value, Mr = (e) => {
1110
1113
  /* Desc */
1111
1114
  }
1112
1115
  }, a = [r.asc, r.desc], l = () => {
1113
- const i = e.cols[0];
1114
- i && e.set((d) => [...d, ct(i, r.asc.label, r.asc.value)]);
1115
- }, o = (i) => (d) => {
1116
- const h = d.target.value;
1117
- e.set((g) => g.map((y) => y.id === i ? { ...y, value: h } : y));
1118
- }, c = (i) => (d) => {
1119
- const h = d.target.value;
1120
- e.set((g) => g.map((y) => y.id === i ? { ...y, type: h } : y));
1121
- }, u = (i) => {
1122
- const d = i.currentTarget.dataset.id || "";
1123
- e.set((h) => h.filter((g) => g.id !== d));
1116
+ const c = e.cols[0];
1117
+ c && e.set((m) => [...m, ct(c, r.asc.label, r.asc.value)]);
1118
+ }, o = (c) => (m) => {
1119
+ const h = m.target.value;
1120
+ e.set((g) => g.map((y) => y.id === c ? { ...y, value: h } : y));
1121
+ }, s = (c) => (m) => {
1122
+ const h = m.target.value;
1123
+ e.set((g) => g.map((y) => y.id === c ? { ...y, type: h } : y));
1124
+ }, u = (c) => {
1125
+ const m = c.currentTarget.dataset.id || "";
1126
+ e.set((h) => h.filter((g) => g.id !== m));
1124
1127
  };
1125
- return /* @__PURE__ */ s(M, { children: /* @__PURE__ */ s(
1126
- q,
1128
+ return /* @__PURE__ */ i(M, { children: /* @__PURE__ */ i(
1129
+ j,
1127
1130
  {
1128
1131
  title: t.tableSortDropdownTitle,
1129
1132
  trigger: /* @__PURE__ */ A("span", { className: "flex items-center gap-1 proportional-nums", children: [
1130
- /* @__PURE__ */ s(me, { size: 14 }),
1133
+ /* @__PURE__ */ i(me, { size: 14 }),
1131
1134
  t.tableSortOrderByLabel,
1132
1135
  " ",
1133
1136
  e.sorters.length === 0 ? "" : ` (${e.sorters.length})`
1134
1137
  ] }),
1135
1138
  children: /* @__PURE__ */ A("ul", { className: "mt-4 space-y-2", children: [
1136
- e.sorters.map((i) => /* @__PURE__ */ A("li", { className: "flex flex-nowrap gap-3", children: [
1137
- /* @__PURE__ */ s(
1139
+ e.sorters.map((c) => /* @__PURE__ */ A("li", { className: "flex flex-nowrap gap-3", children: [
1140
+ /* @__PURE__ */ i(
1138
1141
  L,
1139
1142
  {
1140
1143
  options: e.options,
1141
- value: i.value,
1142
- onChange: o(i.id),
1144
+ value: c.value,
1145
+ onChange: o(c.id),
1143
1146
  title: t.tableSortOrderInputTitle,
1144
1147
  placeholder: t.tableSortOrderInputPlaceholder
1145
1148
  }
1146
1149
  ),
1147
- /* @__PURE__ */ s(
1150
+ /* @__PURE__ */ i(
1148
1151
  L,
1149
1152
  {
1150
- onChange: c(i.id),
1151
- value: i.type,
1153
+ onChange: s(c.id),
1154
+ value: c.type,
1152
1155
  options: a,
1153
1156
  title: t.tableSortTypeInputTitle,
1154
1157
  placeholder: t.tableSortTypeInputPlaceholder
1155
1158
  }
1156
1159
  ),
1157
- /* @__PURE__ */ s("button", { className: "mt-4", "data-id": i.id, onClick: u, children: /* @__PURE__ */ s(G, { className: "text-danger", size: 14 }) })
1158
- ] }, `sorter-select-${i.id}`)),
1159
- /* @__PURE__ */ s("li", { children: /* @__PURE__ */ A("button", { type: "button", onClick: l, className: "flex items-center gap-1 text-primary", children: [
1160
- /* @__PURE__ */ s(X, { size: 14 }),
1160
+ /* @__PURE__ */ i("button", { className: "mt-4", "data-id": c.id, onClick: u, children: /* @__PURE__ */ i(O, { className: "text-danger", size: 14 }) })
1161
+ ] }, `sorter-select-${c.id}`)),
1162
+ /* @__PURE__ */ i("li", { children: /* @__PURE__ */ A("button", { type: "button", onClick: l, className: "flex items-center gap-1 text-primary", children: [
1163
+ /* @__PURE__ */ i(U, { size: 14 }),
1161
1164
  " ",
1162
1165
  t.tableSortAddButton
1163
1166
  ] }) })
@@ -1166,33 +1169,29 @@ const ge = (e) => e.type === "number" ? e.valueAsNumber : e.value, Mr = (e) => {
1166
1169
  ) });
1167
1170
  }, R0 = (e) => {
1168
1171
  const t = x(), [r, a] = D(() => {
1169
- const u = e.sorters.find((i) => i.value === e.col.id);
1172
+ const u = e.sorters.find((c) => c.value === e.col.id);
1170
1173
  return u ? u.type : "undefined";
1171
- }), l = () => a(
1172
- (u) => u === "undefined" ? "asc" : u === "asc" ? "desc" : "undefined"
1173
- /* Undefined */
1174
- );
1175
- O(() => {
1176
- e.setSorters((u) => {
1177
- if (r === "undefined") return u.filter((h) => h.value !== e.col.id);
1178
- const i = u.findIndex((h) => h.value === e.col.id), d = ct(e.col, r, r);
1179
- return i === -1 ? [...u, d] : (u[i] = d, [...u]);
1174
+ }), l = () => {
1175
+ const u = r === "undefined" ? "asc" : r === "asc" ? "desc" : "undefined";
1176
+ a(u), e.setSorters((c) => {
1177
+ if (u === "undefined") return c.filter((g) => g.value !== e.col.id);
1178
+ const m = c.findIndex((g) => g.value === e.col.id), h = ct(e.col, u, u);
1179
+ return m === -1 ? [...c, h] : (c[m] = h, [...c]);
1180
1180
  });
1181
- }, [r, e.col]);
1182
- const o = `${e.col.id}-sorter-id`, c = fe(e.col);
1181
+ }, o = `${e.col.id}-sorter-id`, s = fe(e.col);
1183
1182
  return /* @__PURE__ */ A("button", { "aria-labelledby": o, className: "isolate flex items-center", onClick: l, type: "button", children: [
1184
1183
  /* @__PURE__ */ A("span", { id: o, className: "sr-only", children: [
1185
1184
  t.tableSortDropdownTitle,
1186
1185
  " ",
1187
- c
1186
+ s
1188
1187
  ] }),
1189
- r === "asc" ? /* @__PURE__ */ s(Xe, { size: 14 }) : null,
1190
- r === "desc" ? /* @__PURE__ */ s(Je, { size: 14 }) : null,
1191
- r === "undefined" ? /* @__PURE__ */ s(me, { size: 14 }) : null
1188
+ r === "asc" ? /* @__PURE__ */ i(Xe, { size: 14 }) : null,
1189
+ r === "desc" ? /* @__PURE__ */ i(Je, { size: 14 }) : null,
1190
+ r === "undefined" ? /* @__PURE__ */ i(me, { size: 14 }) : null
1192
1191
  ] });
1193
- }, ut = se({}), k0 = ut.Provider, P0 = () => j(ut), oe = (e, t, r, a = {}) => {
1194
- const l = e.id, o = e.type ?? k.Text, c = t[o] ?? [], u = c.find((d) => d["data-default"])?.value ?? c[0]?.value, i = r[u];
1195
- return { id: ie(), operation: i, label: fe(e), name: l, type: o, value: "", ...a };
1192
+ }, ut = oe({}), k0 = ut.Provider, P0 = () => B(ut), le = (e, t, r, a = {}) => {
1193
+ const l = e.id, o = e.type ?? k.Text, s = t[o] ?? [], u = s.find((m) => m["data-default"])?.value ?? s[0]?.value, c = r[u];
1194
+ return { id: ie(), operation: c, label: fe(e), name: l, type: o, value: "", ...a };
1196
1195
  }, pe = () => {
1197
1196
  const e = x(), t = V(
1198
1197
  () => ({
@@ -1233,88 +1232,88 @@ const ge = (e) => e.type === "number" ? e.valueAsNumber : e.value, Mr = (e) => {
1233
1232
  ), operations: t };
1234
1233
  }, D0 = (e) => {
1235
1234
  const t = x(), r = pe(), a = () => {
1236
- const i = e.cols.at(0);
1237
- e.set((d) => [...d, oe(i, r.options, r.operations)]);
1238
- }, l = (i) => {
1239
- const d = i.target.dataset.id || "", h = i.target.value;
1235
+ const c = e.cols.at(0);
1236
+ e.set((m) => [...m, le(c, r.options, r.operations)]);
1237
+ }, l = (c) => {
1238
+ const m = c.target.dataset.id || "", h = c.target.value;
1240
1239
  e.set(
1241
1240
  (g) => g.map((y) => {
1242
- if (d !== y.id) return y;
1241
+ if (m !== y.id) return y;
1243
1242
  const w = e.cols.find((Z) => h === Z.id);
1244
- return oe(w, r.options, r.operations, { value: "" });
1243
+ return le(w, r.options, r.operations, { value: "" });
1245
1244
  })
1246
1245
  );
1247
- }, o = (i) => {
1248
- const d = i.target.dataset.id || "", h = i.target.value;
1246
+ }, o = (c) => {
1247
+ const m = c.target.dataset.id || "", h = c.target.value;
1249
1248
  e.set(
1250
1249
  (g) => g.map(
1251
- (y) => y.id === d ? {
1250
+ (y) => y.id === m ? {
1252
1251
  ...y,
1253
1252
  operation: r.operations[h]
1254
1253
  } : y
1255
1254
  )
1256
1255
  );
1257
- }, c = (i) => {
1258
- const d = i.currentTarget.dataset.id || "";
1259
- e.set((h) => h.filter((g) => g.id !== d));
1260
- }, u = (i) => {
1261
- const d = i.target.dataset.id || "", h = ge(i.target);
1262
- e.set((g) => g.map((y) => y.id === d ? { ...y, value: h } : y));
1256
+ }, s = (c) => {
1257
+ const m = c.currentTarget.dataset.id || "";
1258
+ e.set((h) => h.filter((g) => g.id !== m));
1259
+ }, u = (c) => {
1260
+ const m = c.target.dataset.id || "", h = ge(c.target);
1261
+ e.set((g) => g.map((y) => y.id === m ? { ...y, value: h } : y));
1263
1262
  };
1264
- return /* @__PURE__ */ s(M, { children: /* @__PURE__ */ s(
1265
- q,
1263
+ return /* @__PURE__ */ i(M, { children: /* @__PURE__ */ i(
1264
+ j,
1266
1265
  {
1267
1266
  arrow: !0,
1268
1267
  title: t.tableFilterDropdownTitle,
1269
1268
  trigger: /* @__PURE__ */ A("span", { className: "flex items-center gap-1 proportional-nums", children: [
1270
- /* @__PURE__ */ s(_e, { size: 14 }),
1269
+ /* @__PURE__ */ i(je, { size: 14 }),
1271
1270
  t.tableFilterLabel,
1272
1271
  " ",
1273
1272
  e.filters.length === 0 ? "" : ` (${e.filters.length})`
1274
1273
  ] }),
1275
1274
  children: /* @__PURE__ */ A("ul", { className: "mt-4 space-y-2", children: [
1276
- e.filters.map((i) => {
1277
- const d = r.options[i.type];
1275
+ e.filters.map((c) => {
1276
+ const m = r.options[c.type];
1278
1277
  return /* @__PURE__ */ A("li", { className: "flex flex-nowrap gap-3", children: [
1279
- /* @__PURE__ */ s(
1278
+ /* @__PURE__ */ i(
1280
1279
  L,
1281
1280
  {
1282
1281
  options: e.options,
1283
1282
  title: t.tableFilterColumnTitle,
1284
1283
  placeholder: t.tableFilterColumnPlaceholder,
1285
- value: i.name,
1286
- "data-id": i.id,
1284
+ value: c.name,
1285
+ "data-id": c.id,
1287
1286
  onChange: l
1288
1287
  }
1289
1288
  ),
1290
- /* @__PURE__ */ s(
1289
+ /* @__PURE__ */ i(
1291
1290
  L,
1292
1291
  {
1293
- "data-id": i.id,
1292
+ "data-id": c.id,
1294
1293
  onChange: o,
1295
- value: i.operation.value,
1296
- options: d,
1294
+ value: c.operation.value,
1295
+ options: m,
1297
1296
  title: t.tableFilterOperatorTitle,
1298
1297
  placeholder: t.tableFilterOperatorPlaceholder
1299
1298
  }
1300
1299
  ),
1301
- /* @__PURE__ */ s(
1300
+ /* @__PURE__ */ i(
1302
1301
  Ge,
1303
1302
  {
1304
1303
  optionalText: "",
1305
- "data-id": i.id,
1304
+ "data-id": c.id,
1306
1305
  onChange: u,
1307
- value: i.value,
1308
- type: i.type,
1306
+ value: c.value,
1307
+ type: c.type,
1309
1308
  title: t.tableFilterValueTitle,
1310
1309
  placeholder: t.tableFilterValuePlaceholder
1311
1310
  }
1312
1311
  ),
1313
- /* @__PURE__ */ s("div", { className: "mt-5 flex items-center justify-center", children: /* @__PURE__ */ s("button", { "data-id": i.id, type: "button", onClick: c, children: /* @__PURE__ */ s(G, { className: "text-danger", size: 16 }) }) })
1314
- ] }, `filter-select-${i.id}`);
1312
+ /* @__PURE__ */ i("div", { className: "mt-5 flex items-center justify-center", children: /* @__PURE__ */ i("button", { "data-id": c.id, type: "button", onClick: s, children: /* @__PURE__ */ i(O, { className: "text-danger", size: 16 }) }) })
1313
+ ] }, `filter-select-${c.id}`);
1315
1314
  }),
1316
- /* @__PURE__ */ s("li", { children: /* @__PURE__ */ A("button", { type: "button", onClick: a, className: "flex items-center gap-1 text-primary", children: [
1317
- /* @__PURE__ */ s(X, { size: 14 }),
1315
+ /* @__PURE__ */ i("li", { children: /* @__PURE__ */ A("button", { type: "button", onClick: a, className: "flex items-center gap-1 text-primary", children: [
1316
+ /* @__PURE__ */ i(U, { size: 14 }),
1318
1317
  " ",
1319
1318
  t.tableFilterNewFilter
1320
1319
  ] }) })
@@ -1323,21 +1322,21 @@ const ge = (e) => e.type === "number" ? e.valueAsNumber : e.value, Mr = (e) => {
1323
1322
  ) });
1324
1323
  }, O0 = ({ filter: e, onDelete: t, set: r }) => {
1325
1324
  const a = x(), l = pe(), o = (u) => {
1326
- const i = u.target.value, d = u.target.dataset.id || "";
1325
+ const c = u.target.value, m = u.target.dataset.id || "";
1327
1326
  r(
1328
1327
  (h) => h.map(
1329
- (g) => g.id === d ? {
1328
+ (g) => g.id === m ? {
1330
1329
  ...g,
1331
- operation: l.operations[i]
1330
+ operation: l.operations[c]
1332
1331
  } : g
1333
1332
  )
1334
1333
  );
1335
- }, c = (u) => {
1336
- const i = u.target.dataset.id || "", d = ge(u.target);
1337
- r((h) => h.map((g) => g.id === i ? { ...g, value: d } : g));
1334
+ }, s = (u) => {
1335
+ const c = u.target.dataset.id || "", m = ge(u.target);
1336
+ r((h) => h.map((g) => g.id === c ? { ...g, value: m } : g));
1338
1337
  };
1339
1338
  return /* @__PURE__ */ A("div", { className: "flex flex-nowrap items-center gap-4 py-2", children: [
1340
- /* @__PURE__ */ s(
1339
+ /* @__PURE__ */ i(
1341
1340
  L,
1342
1341
  {
1343
1342
  "data-id": e.id,
@@ -1348,36 +1347,36 @@ const ge = (e) => e.type === "number" ? e.valueAsNumber : e.value, Mr = (e) => {
1348
1347
  placeholder: a.tableFilterColumnPlaceholder
1349
1348
  }
1350
1349
  ),
1351
- /* @__PURE__ */ s(
1350
+ /* @__PURE__ */ i(
1352
1351
  Ge,
1353
1352
  {
1354
1353
  optionalText: " ",
1355
1354
  "data-id": e.id,
1356
- onChange: c,
1355
+ onChange: s,
1357
1356
  value: e.value,
1358
1357
  type: e.type,
1359
1358
  title: a.tableFilterValueTitle,
1360
1359
  placeholder: a.tableFilterValueTitle
1361
1360
  }
1362
1361
  ),
1363
- /* @__PURE__ */ s("button", { onClick: t, "data-id": e.id, type: "button", className: "mt-4", children: /* @__PURE__ */ s(G, { className: "text-danger", size: 14 }) })
1362
+ /* @__PURE__ */ i("button", { onClick: t, "data-id": e.id, type: "button", className: "mt-4", children: /* @__PURE__ */ i(O, { className: "text-danger", size: 14 }) })
1364
1363
  ] });
1365
1364
  }, G0 = { top: 0, left: 0, right: 0, bottom: -1 }, z0 = (e) => {
1366
- const t = Pe(), r = x(), a = e.filters.filter((p) => p.name === e.header.id), l = a.length > 0, o = e.header.allowSort ?? t.table.sorters ?? !0, c = e.header.allowFilter ?? t.table.filters ?? !0, u = pe(), i = l ? qe : Ue, d = F(null), h = (p) => {
1367
- const m = p.currentTarget.dataset.id || "";
1368
- return e.setFilters((f) => f.filter((b) => b.id !== m));
1369
- }, g = B((p) => {
1365
+ const t = Pe(), r = x(), a = e.filters.filter((p) => p.name === e.header.id), l = a.length > 0, o = e.header.allowSort ?? t.table.sorters ?? !0, s = e.header.allowFilter ?? t.table.filters ?? !0, u = pe(), c = l ? qe : Ue, m = F(null), h = (p) => {
1366
+ const d = p.currentTarget.dataset.id || "";
1367
+ return e.setFilters((f) => f.filter((b) => b.id !== d));
1368
+ }, g = W((p) => {
1370
1369
  if (p === null) return;
1371
- d.current = p;
1372
- const m = new AbortController();
1370
+ m.current = p;
1371
+ const d = new AbortController();
1373
1372
  return p.addEventListener(
1374
1373
  "pointerdown",
1375
1374
  (f) => {
1376
1375
  if (f.target.dataset.type === "resizer")
1377
1376
  return f.stopPropagation(), f.stopImmediatePropagation();
1378
1377
  },
1379
- { signal: m.signal }
1380
- ), () => m.abort();
1378
+ { signal: d.signal }
1379
+ ), () => d.abort();
1381
1380
  }, []), y = e.sorters.find((p) => e.header.id === p.value), w = y?.type ? y.type === ot.Asc ? "ascending" : "descending" : "none", Z = fe(e.header);
1382
1381
  return /* @__PURE__ */ A(
1383
1382
  rt,
@@ -1396,13 +1395,13 @@ const ge = (e) => e.type === "number" ? e.valueAsNumber : e.value, Mr = (e) => {
1396
1395
  whileDrag: { cursor: "grabbing" },
1397
1396
  className: `typography relative min-w-0 cursor-grab overflow-clip border-r-[1px] border-table-border bg-table-header font-medium first:rounded-tl-lg last:rounded-tr-lg last:border-r-transparent md:h-14 ${e.header.thProps?.className ?? ""}`,
1398
1397
  children: [
1399
- /* @__PURE__ */ s(
1398
+ /* @__PURE__ */ i(
1400
1399
  "span",
1401
1400
  {
1402
1401
  className: `flex h-full items-center justify-between bg-table-header p-[var(--table-cell-padding)] ${e.isLast ? "rounded-tr-lg" : ""} ${e.index === 0 ? "rounded-tl-lg" : ""}`,
1403
1402
  children: /* @__PURE__ */ A("span", { className: "flex items-center gap-1", children: [
1404
- e.inlineFilter && c ? /* @__PURE__ */ s(
1405
- q,
1403
+ e.inlineFilter && s ? /* @__PURE__ */ i(
1404
+ j,
1406
1405
  {
1407
1406
  arrow: !0,
1408
1407
  trigger: /* @__PURE__ */ A("span", { children: [
@@ -1411,25 +1410,25 @@ const ge = (e) => e.type === "number" ? e.valueAsNumber : e.value, Mr = (e) => {
1411
1410
  " ",
1412
1411
  Z
1413
1412
  ] }),
1414
- /* @__PURE__ */ s(i, { "aria-labelledby": `${e.header.id}-filter-dropdown-button`, size: 14 })
1413
+ /* @__PURE__ */ i(c, { "aria-labelledby": `${e.header.id}-filter-dropdown-button`, size: 14 })
1415
1414
  ] }),
1416
1415
  title: /* @__PURE__ */ A("span", { className: "text-lg", children: [
1417
1416
  r.tableFilterDropdownTitleUnique,
1418
1417
  " ",
1419
- /* @__PURE__ */ s("span", { className: "font-medium", children: Z })
1418
+ /* @__PURE__ */ i("span", { className: "font-medium", children: Z })
1420
1419
  ] }),
1421
1420
  children: /* @__PURE__ */ A("ul", { className: "font-medium", children: [
1422
- a.length === 0 ? null : /* @__PURE__ */ s(M, { children: a.map((p) => /* @__PURE__ */ s("li", { className: "my-1", children: /* @__PURE__ */ s(O0, { onDelete: h, filter: p, set: e.setFilters }) }, `thead-filter-${p.id}`)) }),
1423
- /* @__PURE__ */ s("li", { children: /* @__PURE__ */ A(
1421
+ a.length === 0 ? null : /* @__PURE__ */ i(M, { children: a.map((p) => /* @__PURE__ */ i("li", { className: "my-1", children: /* @__PURE__ */ i(O0, { onDelete: h, filter: p, set: e.setFilters }) }, `thead-filter-${p.id}`)) }),
1422
+ /* @__PURE__ */ i("li", { children: /* @__PURE__ */ A(
1424
1423
  "button",
1425
1424
  {
1426
1425
  type: "button",
1427
1426
  className: "flex items-center gap-1 text-primary",
1428
1427
  onClick: () => e.setFilters(
1429
- (p) => p.concat(oe(e.header, u.options, u.operations))
1428
+ (p) => p.concat(le(e.header, u.options, u.operations))
1430
1429
  ),
1431
1430
  children: [
1432
- /* @__PURE__ */ s(X, { size: 14 }),
1431
+ /* @__PURE__ */ i(U, { size: 14 }),
1433
1432
  " ",
1434
1433
  r.tableFilterNewFilter
1435
1434
  ]
@@ -1438,12 +1437,12 @@ const ge = (e) => e.type === "number" ? e.valueAsNumber : e.value, Mr = (e) => {
1438
1437
  ] })
1439
1438
  }
1440
1439
  ) : null,
1441
- /* @__PURE__ */ s("span", { className: "pointer-events-auto text-balance text-base", children: e.header.thead }),
1442
- e.inlineSorter && o ? /* @__PURE__ */ s(R0, { col: e.header, setSorters: e.setSorters, sorters: e.sorters }) : null
1440
+ /* @__PURE__ */ i("span", { className: "pointer-events-auto text-balance text-base", children: e.header.thead }),
1441
+ e.inlineSorter && o ? /* @__PURE__ */ i(R0, { col: e.header, setSorters: e.setSorters, sorters: e.sorters }) : null
1443
1442
  ] })
1444
1443
  }
1445
1444
  ),
1446
- e.isLast ? null : /* @__PURE__ */ s(
1445
+ e.isLast ? null : /* @__PURE__ */ i(
1447
1446
  ce.button,
1448
1447
  {
1449
1448
  drag: "x",
@@ -1466,20 +1465,20 @@ const ge = (e) => e.type === "number" ? e.valueAsNumber : e.value, Mr = (e) => {
1466
1465
  },
1467
1466
  onKeyDown: (p) => {
1468
1467
  if (p.key === "ArrowLeft" || p.key === "ArrowRight") {
1469
- if (d.current === null) return;
1470
- d.current.setAttribute("data-resized", "true");
1471
- const m = d.current.getBoundingClientRect().width, b = (p.shiftKey ? 50 : 10) * (p.key === "ArrowLeft" ? -1 : 1);
1472
- d.current.style.width = `${Math.abs(m + b)}px`;
1468
+ if (m.current === null) return;
1469
+ m.current.setAttribute("data-resized", "true");
1470
+ const d = m.current.getBoundingClientRect().width, b = (p.shiftKey ? 50 : 10) * (p.key === "ArrowLeft" ? -1 : 1);
1471
+ m.current.style.width = `${Math.abs(d + b)}px`;
1473
1472
  }
1474
1473
  },
1475
1474
  onDoubleClick: () => {
1476
- d.current !== null && (d.current.style.width = "auto");
1475
+ m.current !== null && (m.current.style.width = "auto");
1477
1476
  },
1478
- onDrag: (p, m) => {
1479
- if (d.current === null) return;
1480
- d.current.setAttribute("data-resized", "true");
1481
- const f = d.current.getBoundingClientRect().width, b = m.delta.x;
1482
- d.current.style.width = `${Math.abs(f + b)}px`;
1477
+ onDrag: (p, d) => {
1478
+ if (m.current === null) return;
1479
+ m.current.setAttribute("data-resized", "true");
1480
+ const f = m.current.getBoundingClientRect().width, b = d.delta.x;
1481
+ m.current.style.width = `${Math.abs(f + b)}px`;
1483
1482
  }
1484
1483
  }
1485
1484
  )
@@ -1488,7 +1487,7 @@ const ge = (e) => e.type === "number" ? e.valueAsNumber : e.value, Mr = (e) => {
1488
1487
  );
1489
1488
  }, W0 = (e) => {
1490
1489
  const [t, r] = L0(e.setCols);
1491
- return /* @__PURE__ */ s(tt, { layout: !0, as: "tr", axis: "x", drag: "x", ref: t, layoutRoot: !0, role: "row", layoutScroll: !0, onReorder: r, values: e.headers, children: /* @__PURE__ */ s(ue, { children: e.headers.map((a, l) => /* @__PURE__ */ s(
1490
+ return /* @__PURE__ */ i(tt, { layout: !0, as: "tr", axis: "x", drag: "x", ref: t, layoutRoot: !0, role: "row", layoutScroll: !0, onReorder: r, values: e.headers, children: /* @__PURE__ */ i(ue, { children: e.headers.map((a, l) => /* @__PURE__ */ i(
1492
1491
  z0,
1493
1492
  {
1494
1493
  index: l,
@@ -1505,12 +1504,8 @@ const ge = (e) => e.type === "number" ? e.valueAsNumber : e.value, Mr = (e) => {
1505
1504
  `header-child-item-${a.id}`
1506
1505
  )) }) });
1507
1506
  }, B0 = P.forwardRef(
1508
- ({
1509
- context: e,
1510
- className: t = "",
1511
- ...r
1512
- }, a) => /* @__PURE__ */ s("tbody", { ...r, role: "rowgroup", className: `divide-y divide-table-border ${t}`, ref: a, children: /* @__PURE__ */ s(ue, { children: r.children }) })
1513
- ), j0 = P.forwardRef(({ context: e, className: t = "", ...r }, a) => /* @__PURE__ */ s(
1507
+ ({ context: e, className: t = "", ...r }, a) => /* @__PURE__ */ i("tbody", { ...r, role: "rowgroup", className: `divide-y divide-table-border ${t}`, ref: a, children: /* @__PURE__ */ i(ue, { children: r.children }) })
1508
+ ), _0 = P.forwardRef(({ context: e, className: t = "", ...r }, a) => /* @__PURE__ */ i(
1514
1509
  "table",
1515
1510
  {
1516
1511
  ...r,
@@ -1519,75 +1514,75 @@ const ge = (e) => e.type === "number" ? e.valueAsNumber : e.value, Mr = (e) => {
1519
1514
  style: { ...r.style, "--table-cell-padding": "0.75rem" },
1520
1515
  className: `table w-full table-fixed border-separate border-spacing-0 text-left ${t ?? ""}`
1521
1516
  }
1522
- )), _0 = P.forwardRef(({ context: e, ...t }, r) => {
1517
+ )), j0 = P.forwardRef(({ context: e, ...t }, r) => {
1523
1518
  const a = P0(), l = {
1524
- ...t?.style,
1519
+ ...t.style,
1525
1520
  top: De.number(a.sticky) ? `${a.sticky}px` : void 0
1526
1521
  };
1527
- return /* @__PURE__ */ s("thead", { ...t, ref: r, style: l, role: "rowgroup", className: "group:sticky top-0 hidden bg-transparent md:table-header-group" });
1528
- }), q0 = P.forwardRef(({ context: e, item: t, ...r }, a) => {
1529
- const l = e?.getRowProps?.(t), o = { ...r, ...l };
1530
- return /* @__PURE__ */ s(
1522
+ return /* @__PURE__ */ i("thead", { ...t, ref: r, style: l, role: "rowgroup", className: "group:sticky top-0 hidden bg-transparent md:table-header-group" });
1523
+ }), q0 = P.forwardRef(({ context: e, item: t, className: r, ...a }, l) => {
1524
+ const o = t ? e?.getRowProps?.(t) : void 0, s = { ...a, ...o };
1525
+ return /* @__PURE__ */ i(
1531
1526
  "tr",
1532
1527
  {
1533
- ...o,
1528
+ ...s,
1534
1529
  role: "row",
1535
- ref: a,
1536
- className: `group-table-row flex h-fit flex-col flex-wrap justify-center gap-1 pb-4 md:table-row ${[r?.className, l?.className].filter(Boolean).join(" ")}`
1530
+ ref: l,
1531
+ className: `group-table-row flex h-fit flex-col flex-wrap justify-center gap-1 pb-4 md:table-row ${[r, o?.className].filter(Boolean).join(" ")}`
1537
1532
  }
1538
1533
  );
1539
- }), U0 = P.forwardRef((e, t) => e.context.loadingMore ? /* @__PURE__ */ s("tfoot", { ...e, ref: t, className: "bg-card-background", children: /* @__PURE__ */ s("tr", { role: "row", className: "bg-card-background", children: /* @__PURE__ */ s("td", { colSpan: 999, className: "h-14 bg-card-background px-2", children: /* @__PURE__ */ s("span", { className: "block h-2 w-full animate-pulse rounded bg-foreground opacity-60" }) }) }) }) : null), X0 = {
1534
+ }), U0 = P.forwardRef(({ context: e, ...t }, r) => e?.loadingMore ? /* @__PURE__ */ i("tfoot", { ...t, ref: r, className: "bg-card-background", children: /* @__PURE__ */ i("tr", { role: "row", className: "bg-card-background", children: /* @__PURE__ */ i("td", { colSpan: 999, className: "h-14 bg-card-background px-2", children: /* @__PURE__ */ i("span", { className: "block h-2 w-full animate-pulse rounded bg-foreground opacity-60" }) }) }) }) : null), X0 = {
1540
1535
  TableRow: q0,
1541
1536
  TableFoot: U0,
1542
- TableHead: _0,
1543
- Table: j0,
1537
+ TableHead: j0,
1538
+ Table: _0,
1544
1539
  TableBody: B0
1545
- }, J0 = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], K0 = (e) => /* @__PURE__ */ s("div", { className: "flex h-48 w-full items-center justify-center px-2", children: e.loading ? Oe : /* @__PURE__ */ s(M0, {}) }), Y0 = () => /* @__PURE__ */ s(M, {}), Q0 = [], $e = ({
1540
+ }, J0 = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], K0 = (e) => /* @__PURE__ */ i("div", { className: "flex h-48 w-full items-center justify-center px-2", children: e.loading ? Oe : /* @__PURE__ */ i(M0, {}) }), Y0 = () => /* @__PURE__ */ i(M, {}), Q0 = [], $e = ({
1546
1541
  cols: e,
1547
1542
  filters: t,
1548
1543
  setCols: r,
1549
1544
  sorters: a,
1550
1545
  setFilters: l,
1551
1546
  setSorters: o,
1552
- onScrollEnd: c,
1547
+ onScrollEnd: s,
1553
1548
  getScrollRef: u,
1554
- pagination: i = null,
1555
- useControl: d = !1,
1549
+ pagination: c = null,
1550
+ useControl: m = !1,
1556
1551
  ...h
1557
1552
  }) => {
1558
- const g = F(null), [, y] = D(!1), w = re(c), Z = re(h.loadingMore), p = V(() => {
1553
+ const g = F(null), [, y] = D(!1), w = te(s), Z = te(h.loadingMore), p = V(() => {
1559
1554
  if (h.loading) return J0;
1560
- if (d) return h.rows;
1555
+ if (m) return h.rows;
1561
1556
  const b = new st(h.rows);
1562
1557
  return t.length > 0 && t.forEach(
1563
1558
  (v) => v.value === "" || Number.isNaN(v.value) ? void 0 : b.Where(v.name, v.operation.symbol, v.value)
1564
1559
  ), a.length === 0 ? b.Select() : T0(b.Select(), a);
1565
- }, [h.loading, h.rows, d, t, a]);
1566
- O(() => {
1560
+ }, [h.loading, h.rows, m, t, a]);
1561
+ se(() => {
1567
1562
  if (g.current === null) return () => {
1568
1563
  };
1569
1564
  const b = g.current, v = new IntersectionObserver((E) => E[E.length - 1].isIntersecting && Z.current ? (w.current?.(), void y(!0)) : y(!1));
1570
1565
  return v.observe(b), () => v.disconnect();
1571
1566
  }, [Z, w]);
1572
- const m = p.length === 0, f = {
1567
+ const d = p.length === 0, f = {
1573
1568
  cols: e,
1574
1569
  Aside: h.Aside,
1575
1570
  loading: h.loading,
1576
1571
  getRowProps: h.getRowProps,
1577
1572
  loadingMore: h.loadingMore
1578
1573
  };
1579
- return /* @__PURE__ */ A("div", { className: "group bg-table-background relative flex w-full flex-col whitespace-nowrap rounded-lg", children: [
1580
- /* @__PURE__ */ s(
1574
+ return /* @__PURE__ */ A("div", { className: "group relative flex w-full flex-col whitespace-nowrap rounded-lg bg-table-background", children: [
1575
+ /* @__PURE__ */ i(
1581
1576
  ht,
1582
1577
  {
1583
1578
  components: X0,
1584
1579
  context: f,
1585
1580
  totalCount: p.length,
1586
- itemContent: m ? Y0 : x0,
1587
- data: m ? Q0 : p,
1581
+ itemContent: d ? Y0 : x0,
1582
+ data: d ? Q0 : p,
1588
1583
  useWindowScroll: !u,
1589
1584
  customScrollParent: u ? u() : void 0,
1590
- fixedHeaderContent: () => /* @__PURE__ */ s(
1585
+ fixedHeaderContent: () => /* @__PURE__ */ i(
1591
1586
  W0,
1592
1587
  {
1593
1588
  headers: e,
@@ -1603,9 +1598,9 @@ const ge = (e) => e.type === "number" ? e.valueAsNumber : e.value, Mr = (e) => {
1603
1598
  )
1604
1599
  }
1605
1600
  ),
1606
- m ? /* @__PURE__ */ s(K0, { loading: h.loading }) : null,
1607
- /* @__PURE__ */ s("div", { "aria-hidden": "true", ref: g, className: "h-0.5 w-full" }),
1608
- i !== null ? /* @__PURE__ */ s(S0, { ...i }) : null
1601
+ d ? /* @__PURE__ */ i(K0, { loading: h.loading }) : null,
1602
+ /* @__PURE__ */ i("div", { "aria-hidden": "true", ref: g, className: "h-0.5 w-full" }),
1603
+ c !== null ? /* @__PURE__ */ i(S0, { ...c }) : null
1609
1604
  ] });
1610
1605
  }, er = ({ item: e, onPointerDown: t }) => {
1611
1606
  const r = de(0);
@@ -1618,42 +1613,42 @@ const ge = (e) => e.type === "number" ? e.valueAsNumber : e.value, Mr = (e) => {
1618
1613
  value: e,
1619
1614
  style: { y: r },
1620
1615
  children: [
1621
- /* @__PURE__ */ s("button", { type: "button", className: "cursor-grab", children: /* @__PURE__ */ s(je, { size: 14 }) }),
1622
- /* @__PURE__ */ s("span", { children: e.groupName })
1616
+ /* @__PURE__ */ i("button", { type: "button", className: "cursor-grab", children: /* @__PURE__ */ i(_e, { size: 14 }) }),
1617
+ /* @__PURE__ */ i("span", { children: e.groupName })
1623
1618
  ]
1624
1619
  },
1625
1620
  e.groupId
1626
1621
  );
1627
1622
  }, tr = (e) => {
1628
- const t = x(), r = it(e.cols), a = Bt(), [l, o] = D(e.groups[0]?.thead || ""), c = (i) => {
1629
- const d = i.target, h = d.value, g = d.options.selectedIndex, y = d.options.item(g)?.label || "";
1623
+ const t = x(), r = it(e.cols), a = Bt(), [l, o] = D(e.groups[0]?.thead || ""), s = (c) => {
1624
+ const m = c.target, h = m.value, g = m.options.selectedIndex, y = m.options.item(g)?.label || "";
1630
1625
  o(y);
1631
1626
  const w = new st(e.rows).GroupBy(h), Z = e.cols.find((p) => p.id === h);
1632
1627
  e.setGroups(
1633
- ft(w).map((p, m) => {
1628
+ ft(w).map((p, d) => {
1634
1629
  const f = w[p];
1635
- return { ...Z, groupId: ie(), groupKey: h, index: m, rows: f, groupName: p };
1630
+ return { ...Z, groupId: ie(), groupKey: h, index: d, rows: f, groupName: p };
1636
1631
  })
1637
1632
  );
1638
1633
  }, u = () => e.setGroups([]);
1639
- return /* @__PURE__ */ s(M, { children: /* @__PURE__ */ A(
1640
- q,
1634
+ return /* @__PURE__ */ i(M, { children: /* @__PURE__ */ A(
1635
+ j,
1641
1636
  {
1642
1637
  arrow: !1,
1643
1638
  title: t.tableGroupLabel,
1644
1639
  trigger: /* @__PURE__ */ A("span", { className: "flex items-center gap-1 proportional-nums", children: [
1645
- /* @__PURE__ */ s(Ke, { size: 14 }),
1640
+ /* @__PURE__ */ i(Ke, { size: 14 }),
1646
1641
  t.tableGroupLabelWithCount,
1647
1642
  e.groups.length > 0 ? ` - ${l}(${e.groups.length})` : ""
1648
1643
  ] }),
1649
1644
  children: [
1650
1645
  /* @__PURE__ */ A("div", { className: "flex flex-nowrap items-center", children: [
1651
- /* @__PURE__ */ s(L, { value: l, title: "Tipo de agrupamento", onChange: c, options: r, placeholder: "Agrupar por..." }),
1652
- /* @__PURE__ */ s(Zt, { className: "mt-4", onClick: u, theme: "raw", "data-id": l, children: /* @__PURE__ */ s(G, { size: 16, className: "text-danger" }) })
1646
+ /* @__PURE__ */ i(L, { value: l, title: "Tipo de agrupamento", onChange: s, options: r, placeholder: "Agrupar por..." }),
1647
+ /* @__PURE__ */ i(Zt, { className: "mt-4", onClick: u, theme: "raw", "data-id": l, children: /* @__PURE__ */ i(O, { size: 16, className: "text-danger" }) })
1653
1648
  ] }),
1654
1649
  e.groups.length > 0 ? /* @__PURE__ */ A("section", { className: "my-4", children: [
1655
- /* @__PURE__ */ s("header", { children: /* @__PURE__ */ s("h2", { className: "text-xl font-medium", children: "Order groups" }) }),
1656
- /* @__PURE__ */ s(Dt, { children: /* @__PURE__ */ s(
1650
+ /* @__PURE__ */ i("header", { children: /* @__PURE__ */ i("h2", { className: "text-xl font-medium", children: "Order groups" }) }),
1651
+ /* @__PURE__ */ i(Dt, { children: /* @__PURE__ */ i(
1657
1652
  tt,
1658
1653
  {
1659
1654
  axis: "y",
@@ -1664,15 +1659,15 @@ const ge = (e) => e.type === "number" ? e.valueAsNumber : e.value, Mr = (e) => {
1664
1659
  layoutScroll: !0,
1665
1660
  onReorder: e.setGroups,
1666
1661
  values: e.groups,
1667
- children: e.groups.map((i) => /* @__PURE__ */ s(
1662
+ children: e.groups.map((c) => /* @__PURE__ */ i(
1668
1663
  er,
1669
1664
  {
1670
- item: i,
1671
- onPointerDown: (d) => {
1672
- a.start(d), e.setGroups([...e.groups]);
1665
+ item: c,
1666
+ onPointerDown: (m) => {
1667
+ a.start(m), e.setGroups([...e.groups]);
1673
1668
  }
1674
1669
  },
1675
- i.groupId
1670
+ c.groupId
1676
1671
  ))
1677
1672
  }
1678
1673
  ) })
@@ -1680,23 +1675,23 @@ const ge = (e) => e.type === "number" ? e.valueAsNumber : e.value, Mr = (e) => {
1680
1675
  ]
1681
1676
  }
1682
1677
  ) });
1683
- }, rr = (e) => /* @__PURE__ */ s("header", { className: "mb-1 min-w-full", children: /* @__PURE__ */ A("div", { className: "flex min-w-full flex-wrap items-center justify-between gap-x-4 gap-y-1", children: [
1678
+ }, rr = (e) => /* @__PURE__ */ i("header", { className: "mb-1 min-w-full", children: /* @__PURE__ */ A("div", { className: "flex min-w-full flex-wrap items-center justify-between gap-x-4 gap-y-1", children: [
1684
1679
  /* @__PURE__ */ A("div", { className: "items-centeend flex w-fit gap-4 whitespace-nowrap py-2", children: [
1685
- /* @__PURE__ */ s("span", { children: /* @__PURE__ */ s(D0, { cols: e.cols, options: e.options, filters: e.filters, set: e.setFilters }) }),
1686
- /* @__PURE__ */ s("span", { children: /* @__PURE__ */ s($0, { options: e.options, cols: e.cols, sorters: e.sorters, set: e.setSorters }) }),
1687
- /* @__PURE__ */ s("span", { children: /* @__PURE__ */ s(tr, { rows: e.rows, groups: e.groups, setGroups: e.setGroups, options: e.options, cols: e.cols }) })
1680
+ /* @__PURE__ */ i("span", { children: /* @__PURE__ */ i(D0, { cols: e.cols, options: e.options, filters: e.filters, set: e.setFilters }) }),
1681
+ /* @__PURE__ */ i("span", { children: /* @__PURE__ */ i($0, { options: e.options, cols: e.cols, sorters: e.sorters, set: e.setSorters }) }),
1682
+ /* @__PURE__ */ i("span", { children: /* @__PURE__ */ i(tr, { rows: e.rows, groups: e.groups, setGroups: e.setGroups, options: e.options, cols: e.cols }) })
1688
1683
  ] }),
1689
- /* @__PURE__ */ s("ul", { className: "flex w-full flex-1 flex-grow flex-row flex-wrap items-center gap-4 md:justify-end", children: e.filters.map((t) => /* @__PURE__ */ A("li", { className: "flex items-center gap-1 rounded-xl border border-card-border px-4 py-0.5", children: [
1684
+ /* @__PURE__ */ i("ul", { className: "flex w-full flex-1 flex-grow flex-row flex-wrap items-center gap-4 md:justify-end", children: e.filters.map((t) => /* @__PURE__ */ A("li", { className: "flex items-center gap-1 rounded-xl border border-card-border px-4 py-0.5", children: [
1690
1685
  /* @__PURE__ */ A("span", { children: [
1691
- /* @__PURE__ */ s("span", { className: "mr-2 inline-block aspect-square size-3 rounded-full bg-primary", "aria-hidden": "true" }),
1686
+ /* @__PURE__ */ i("span", { className: "mr-2 inline-block aspect-square size-3 rounded-full bg-primary", "aria-hidden": "true" }),
1692
1687
  t.label,
1693
1688
  " ",
1694
1689
  t.operation.label.toLowerCase(),
1695
1690
  ":"
1696
1691
  ] }),
1697
1692
  /* @__PURE__ */ A("div", { className: "relative w-min min-w-[1ch]", children: [
1698
- /* @__PURE__ */ s("span", { "aria-hidden": "true", className: "invisible whitespace-pre p-0", children: t.value || " " }),
1699
- /* @__PURE__ */ s(
1693
+ /* @__PURE__ */ i("span", { "aria-hidden": "true", className: "invisible whitespace-pre p-0", children: t.value || " " }),
1694
+ /* @__PURE__ */ i(
1700
1695
  "input",
1701
1696
  {
1702
1697
  type: t.type,
@@ -1710,13 +1705,13 @@ const ge = (e) => e.type === "number" ? e.valueAsNumber : e.value, Mr = (e) => {
1710
1705
  )
1711
1706
  ] })
1712
1707
  ] }, `filter-table-${t.id}`)) })
1713
- ] }) }), ar = (e, t) => typeof t == "function" ? t(e) : t, W = (e, t, r) => e === t ? void 0 : r?.(t), Fr = (e) => {
1708
+ ] }) }), ar = (e, t) => typeof t == "function" ? t(e) : t, z = (e, t, r) => e === t ? void 0 : r?.(t), Fr = (e) => {
1714
1709
  const t = Pe(), r = V(
1715
1710
  () => ({
1716
1711
  sticky: e.sticky === void 0 ? t.table.sticky ?? void 0 : e.sticky ?? void 0
1717
1712
  }),
1718
1713
  [e.sticky, t.table.sticky]
1719
- ), a = e.operations ?? t.table.operations ?? !0, l = V(() => it(e.cols), [e.cols]), [o, c] = ke(
1714
+ ), a = e.operations ?? t.table.operations ?? !0, l = V(() => it(e.cols), [e.cols]), [o, s] = ke(
1720
1715
  {
1721
1716
  cols: e.cols,
1722
1717
  sorters: e.sorters ?? [],
@@ -1724,27 +1719,27 @@ const ge = (e) => e.type === "number" ? e.valueAsNumber : e.value, Mr = (e) => {
1724
1719
  filters: e.filters ?? []
1725
1720
  },
1726
1721
  (u) => {
1727
- const i = (d) => (h) => {
1722
+ const c = (m) => (h) => {
1728
1723
  const g = u.state();
1729
- return { ...g, [d]: ar(g[d], h) };
1724
+ return { ...g, [m]: ar(g[m], h) };
1730
1725
  };
1731
1726
  return {
1732
- cols: i("cols"),
1733
- sorters: i("sorters"),
1734
- groups: i("groups"),
1735
- filters: i("filters")
1727
+ cols: c("cols"),
1728
+ sorters: c("sorters"),
1729
+ groups: c("groups"),
1730
+ filters: c("filters")
1736
1731
  };
1737
1732
  },
1738
1733
  {
1739
1734
  postMiddleware: [
1740
- (u, i) => (e.set?.(u), W(i?.filters ?? [], u.filters ?? [], e.setFilters), W(i?.sorters ?? [], u.sorters ?? [], e.setSorters), W(i?.groups ?? [], u.groups ?? [], e.setGroups), W(i?.cols ?? [], u.cols ?? [], e.setCols), u)
1735
+ (u, c) => (e.set?.(u), z(c?.filters ?? [], u.filters ?? [], e.setFilters), z(c?.sorters ?? [], u.sorters ?? [], e.setSorters), z(c?.groups ?? [], u.groups ?? [], e.setGroups), z(c?.cols ?? [], u.cols ?? [], e.setCols), u)
1741
1736
  ]
1742
1737
  }
1743
1738
  );
1744
- return O(() => {
1745
- c.cols(e.cols);
1746
- }, [e.cols]), /* @__PURE__ */ s(k0, { value: r, children: /* @__PURE__ */ A(ue, { propagate: !0, initial: !1, children: [
1747
- a ? /* @__PURE__ */ s(
1739
+ return se(() => {
1740
+ s.cols(e.cols);
1741
+ }, [e.cols]), /* @__PURE__ */ i(k0, { value: r, children: /* @__PURE__ */ A(ue, { propagate: !0, initial: !1, children: [
1742
+ a ? /* @__PURE__ */ i(
1748
1743
  rr,
1749
1744
  {
1750
1745
  cols: o.cols,
@@ -1752,17 +1747,17 @@ const ge = (e) => e.type === "number" ? e.valueAsNumber : e.value, Mr = (e) => {
1752
1747
  options: l,
1753
1748
  groups: o.groups,
1754
1749
  filters: o.filters,
1755
- setCols: c.cols,
1750
+ setCols: s.cols,
1756
1751
  sorters: o.sorters,
1757
- setGroups: c.groups,
1758
- setFilters: c.filters,
1759
- setSorters: c.sorters,
1752
+ setGroups: s.groups,
1753
+ setFilters: s.filters,
1754
+ setSorters: s.sorters,
1760
1755
  pagination: e.pagination ?? null,
1761
1756
  inlineFilter: e.inlineFilter ?? !0,
1762
1757
  inlineSorter: e.inlineSorter ?? !0
1763
1758
  }
1764
1759
  ) : null,
1765
- o.groups.length === 0 ? /* @__PURE__ */ s(
1760
+ o.groups.length === 0 ? /* @__PURE__ */ i(
1766
1761
  $e,
1767
1762
  {
1768
1763
  ...e,
@@ -1772,22 +1767,22 @@ const ge = (e) => e.type === "number" ? e.valueAsNumber : e.value, Mr = (e) => {
1772
1767
  groups: o.groups,
1773
1768
  filters: o.filters,
1774
1769
  optionCols: l,
1775
- setCols: c.cols,
1770
+ setCols: s.cols,
1776
1771
  sorters: o.sorters,
1777
- setGroups: c.groups,
1778
- setFilters: c.filters,
1779
- setSorters: c.sorters,
1772
+ setGroups: s.groups,
1773
+ setFilters: s.filters,
1774
+ setSorters: s.sorters,
1780
1775
  onScrollEnd: e.onScrollEnd,
1781
1776
  pagination: e.pagination ?? null,
1782
1777
  inlineFilter: e.inlineFilter ?? !0,
1783
1778
  inlineSorter: e.inlineSorter ?? !0
1784
1779
  }
1785
- ) : /* @__PURE__ */ s("div", { className: "flex flex-wrap gap-4", children: o.groups.map((u, i) => /* @__PURE__ */ s("div", { className: "min-w-full", children: /* @__PURE__ */ s(
1780
+ ) : /* @__PURE__ */ i("div", { className: "flex flex-wrap gap-4", children: o.groups.map((u, c) => /* @__PURE__ */ i("div", { className: "min-w-full", children: /* @__PURE__ */ i(
1786
1781
  $e,
1787
1782
  {
1788
1783
  ...e,
1789
1784
  group: u,
1790
- index: i,
1785
+ index: c,
1791
1786
  cols: o.cols,
1792
1787
  pagination: null,
1793
1788
  rows: u.rows,
@@ -1795,11 +1790,11 @@ const ge = (e) => e.type === "number" ? e.valueAsNumber : e.value, Mr = (e) => {
1795
1790
  groups: o.groups,
1796
1791
  filters: o.filters,
1797
1792
  optionCols: l,
1798
- setCols: c.cols,
1793
+ setCols: s.cols,
1799
1794
  sorters: o.sorters,
1800
- setGroups: c.groups,
1801
- setFilters: c.filters,
1802
- setSorters: c.sorters,
1795
+ setGroups: s.groups,
1796
+ setFilters: s.filters,
1797
+ setSorters: s.sorters,
1803
1798
  onScrollEnd: e.onScrollEnd,
1804
1799
  inlineFilter: e.inlineFilter ?? !0,
1805
1800
  inlineSorter: e.inlineSorter ?? !0
@@ -1815,7 +1810,7 @@ export {
1815
1810
  Mr as c,
1816
1811
  Te as d,
1817
1812
  Sr as g,
1818
- _e as o,
1813
+ je as o,
1819
1814
  Hr as u
1820
1815
  };
1821
- //# sourceMappingURL=index-BelDtX5M.js.map
1816
+ //# sourceMappingURL=index-DDeQW0JW.js.map