@g4rcez/components 5.0.1 → 5.0.3

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 (514) hide show
  1. package/dist/AnimatePresence-j36AYeOQ.js +181 -0
  2. package/dist/AnimatePresence-j36AYeOQ.js.map +1 -0
  3. package/dist/Calendar.es-xICmgvjq.js +23 -0
  4. package/dist/Calendar.es-xICmgvjq.js.map +1 -0
  5. package/dist/Funnel.es-DjKVl8Nj.js +23 -0
  6. package/dist/Funnel.es-DjKVl8Nj.js.map +1 -0
  7. package/dist/{MotionConfig-DKKYqBH2.js → MotionConfig-CXHoPGbK.js} +2 -2
  8. package/dist/{MotionConfig-DKKYqBH2.js.map → MotionConfig-CXHoPGbK.js.map} +1 -1
  9. package/dist/Plus.es-DbyRkEE2.js +23 -0
  10. package/dist/Plus.es-DbyRkEE2.js.map +1 -0
  11. package/dist/Trash.es-BFAc8PMf.js +23 -0
  12. package/dist/Trash.es-BFAc8PMf.js.map +1 -0
  13. package/dist/{calendar-PCCZDUIL.js → calendar-DEPkz8sw.js} +364 -502
  14. package/dist/calendar-DEPkz8sw.js.map +1 -0
  15. package/dist/calendar-header-Dfr-CwkY.js +174 -0
  16. package/dist/calendar-header-Dfr-CwkY.js.map +1 -0
  17. package/dist/chunk-jwUa06l-.js +23 -0
  18. package/dist/components/core/button.d.ts +77 -0
  19. package/dist/components/core/button.d.ts.map +1 -0
  20. package/dist/components/core/button.js +1 -1
  21. package/dist/components/core/button.jsx +79 -0
  22. package/dist/components/core/heading.d.ts +3 -0
  23. package/dist/components/core/heading.d.ts.map +1 -0
  24. package/dist/components/core/heading.js +11 -0
  25. package/dist/components/core/heading.js.map +1 -0
  26. package/dist/components/core/heading.jsx +4 -0
  27. package/dist/components/core/polymorph.d.ts +10 -0
  28. package/dist/components/core/polymorph.d.ts.map +1 -0
  29. package/dist/{polymorph-BLXhrn9n.js → components/core/polymorph.js} +2 -2
  30. package/dist/components/core/polymorph.js.map +1 -0
  31. package/dist/components/core/polymorph.jsx +5 -0
  32. package/dist/components/core/render-on-view.d.ts +7 -0
  33. package/dist/components/core/render-on-view.d.ts.map +1 -0
  34. package/dist/components/core/render-on-view.js +29 -0
  35. package/dist/components/core/render-on-view.js.map +1 -0
  36. package/dist/components/core/render-on-view.jsx +31 -0
  37. package/dist/components/core/resizable.d.ts +9 -0
  38. package/dist/components/core/resizable.d.ts.map +1 -0
  39. package/dist/components/core/resizable.js +60 -0
  40. package/dist/components/core/resizable.js.map +1 -0
  41. package/dist/components/core/resizable.jsx +57 -0
  42. package/dist/components/core/slot.d.ts +16 -0
  43. package/dist/components/core/slot.d.ts.map +1 -0
  44. package/dist/{slot-pC8kH9De.js → components/core/slot.js} +2 -2
  45. package/dist/components/core/slot.js.map +1 -0
  46. package/dist/components/core/slot.jsx +156 -0
  47. package/dist/components/core/tag.d.ts +35 -0
  48. package/dist/components/core/tag.d.ts.map +1 -0
  49. package/dist/components/core/tag.js +1 -1
  50. package/dist/components/core/tag.jsx +53 -0
  51. package/dist/components/core/typography.d.ts +25 -0
  52. package/dist/components/core/typography.d.ts.map +1 -0
  53. package/dist/components/core/typography.js +40 -0
  54. package/dist/components/core/typography.js.map +1 -0
  55. package/dist/components/core/typography.jsx +20 -0
  56. package/dist/components/display/alert.d.ts +28 -0
  57. package/dist/components/display/alert.d.ts.map +1 -0
  58. package/dist/components/display/alert.js +83 -102
  59. package/dist/components/display/alert.js.map +1 -1
  60. package/dist/components/display/alert.jsx +58 -0
  61. package/dist/components/display/calendar.d.ts +42 -0
  62. package/dist/components/display/calendar.d.ts.map +1 -0
  63. package/dist/components/display/calendar.js +1 -1
  64. package/dist/components/display/calendar.jsx +323 -0
  65. package/dist/components/display/card.d.ts +29 -0
  66. package/dist/components/display/card.d.ts.map +1 -0
  67. package/dist/components/display/card.js +2 -2
  68. package/dist/components/display/card.jsx +43 -0
  69. package/dist/components/display/empty.d.ts +8 -0
  70. package/dist/components/display/empty.d.ts.map +1 -0
  71. package/dist/components/display/empty.js +25 -0
  72. package/dist/components/display/empty.js.map +1 -0
  73. package/dist/components/display/empty.jsx +13 -0
  74. package/dist/components/display/list.d.ts +16 -0
  75. package/dist/components/display/list.d.ts.map +1 -0
  76. package/dist/components/display/list.js +132 -122
  77. package/dist/components/display/list.js.map +1 -1
  78. package/dist/components/display/list.jsx +90 -0
  79. package/dist/components/display/notifications.d.ts +27 -0
  80. package/dist/components/display/notifications.d.ts.map +1 -0
  81. package/dist/components/display/notifications.js +1 -1
  82. package/dist/components/display/notifications.jsx +132 -0
  83. package/dist/components/display/progress.d.ts +16 -0
  84. package/dist/components/display/progress.d.ts.map +1 -0
  85. package/dist/components/display/progress.js +3 -0
  86. package/dist/components/display/progress.jsx +19 -0
  87. package/dist/components/display/shortcut.d.ts +4 -0
  88. package/dist/components/display/shortcut.d.ts.map +1 -0
  89. package/dist/components/display/shortcut.js +2 -0
  90. package/dist/components/display/shortcut.jsx +23 -0
  91. package/dist/components/display/skeleton.d.ts +12 -0
  92. package/dist/components/display/skeleton.d.ts.map +1 -0
  93. package/dist/components/display/skeleton.js +41 -0
  94. package/dist/components/display/skeleton.js.map +1 -0
  95. package/dist/components/display/skeleton.jsx +19 -0
  96. package/dist/components/display/spinner.d.ts +5 -0
  97. package/dist/components/display/spinner.d.ts.map +1 -0
  98. package/dist/components/display/spinner.js +17 -0
  99. package/dist/components/display/spinner.js.map +1 -0
  100. package/dist/components/display/spinner.jsx +11 -0
  101. package/dist/components/display/stats.d.ts +12 -0
  102. package/dist/components/display/stats.d.ts.map +1 -0
  103. package/dist/components/display/stats.jsx +16 -0
  104. package/dist/components/display/step.d.ts +24 -0
  105. package/dist/components/display/step.d.ts.map +1 -0
  106. package/dist/components/display/step.js +3 -0
  107. package/dist/components/display/step.jsx +145 -0
  108. package/dist/components/display/tabs.d.ts +24 -0
  109. package/dist/components/display/tabs.d.ts.map +1 -0
  110. package/dist/components/display/tabs.js +1 -1
  111. package/dist/components/display/tabs.jsx +125 -0
  112. package/dist/components/display/timeline.d.ts +10 -0
  113. package/dist/components/display/timeline.d.ts.map +1 -0
  114. package/dist/components/display/timeline.js +1 -1
  115. package/dist/components/display/timeline.jsx +25 -0
  116. package/dist/components/floating/command-palette.d.ts +49 -0
  117. package/dist/components/floating/command-palette.d.ts.map +1 -0
  118. package/dist/components/floating/command-palette.js +255 -0
  119. package/dist/components/floating/command-palette.js.map +1 -0
  120. package/dist/components/floating/command-palette.jsx +232 -0
  121. package/dist/components/floating/dropdown.d.ts +15 -0
  122. package/dist/components/floating/dropdown.d.ts.map +1 -0
  123. package/dist/components/floating/dropdown.js +1 -1
  124. package/dist/components/floating/dropdown.js.map +1 -1
  125. package/dist/components/floating/dropdown.jsx +56 -0
  126. package/dist/components/floating/expand.d.ts +11 -0
  127. package/dist/components/floating/expand.d.ts.map +1 -0
  128. package/dist/components/floating/expand.js +15 -14
  129. package/dist/components/floating/expand.js.map +1 -1
  130. package/dist/components/floating/expand.jsx +44 -0
  131. package/dist/components/floating/menu.d.ts +52 -0
  132. package/dist/components/floating/menu.d.ts.map +1 -0
  133. package/dist/components/floating/menu.js +1 -1
  134. package/dist/components/floating/menu.jsx +165 -0
  135. package/dist/components/floating/modal.d.ts +63 -0
  136. package/dist/components/floating/modal.d.ts.map +1 -0
  137. package/dist/components/floating/modal.js +1 -1
  138. package/dist/components/floating/modal.jsx +375 -0
  139. package/dist/components/floating/toolbar.d.ts +6 -0
  140. package/dist/components/floating/toolbar.d.ts.map +1 -0
  141. package/dist/components/floating/toolbar.js +20 -0
  142. package/dist/components/floating/toolbar.js.map +1 -0
  143. package/dist/components/floating/toolbar.jsx +9 -0
  144. package/dist/components/floating/tooltip.d.ts +17 -0
  145. package/dist/components/floating/tooltip.d.ts.map +1 -0
  146. package/dist/components/floating/tooltip.js +2 -2
  147. package/dist/components/floating/tooltip.js.map +1 -1
  148. package/dist/components/floating/tooltip.jsx +67 -0
  149. package/dist/components/floating/wizard.d.ts +26 -0
  150. package/dist/components/floating/wizard.d.ts.map +1 -0
  151. package/dist/components/floating/wizard.js +3 -0
  152. package/dist/components/floating/wizard.jsx +165 -0
  153. package/dist/components/form/autocomplete.d.ts +16 -0
  154. package/dist/components/form/autocomplete.d.ts.map +1 -0
  155. package/dist/components/form/autocomplete.js +344 -2
  156. package/dist/components/form/autocomplete.js.map +1 -0
  157. package/dist/components/form/autocomplete.jsx +299 -0
  158. package/dist/components/form/checkbox.d.ts +12 -0
  159. package/dist/components/form/checkbox.d.ts.map +1 -0
  160. package/dist/components/form/checkbox.js +29 -27
  161. package/dist/components/form/checkbox.js.map +1 -1
  162. package/dist/components/form/checkbox.jsx +27 -0
  163. package/dist/components/form/date-picker.d.ts +10 -0
  164. package/dist/components/form/date-picker.d.ts.map +1 -0
  165. package/dist/components/form/date-picker.js +1 -1
  166. package/dist/components/form/date-picker.jsx +115 -0
  167. package/dist/components/form/file-upload.d.ts +20 -0
  168. package/dist/components/form/file-upload.d.ts.map +1 -0
  169. package/dist/components/form/file-upload.js +1 -1
  170. package/dist/components/form/file-upload.jsx +160 -0
  171. package/dist/components/form/form.d.ts +3 -0
  172. package/dist/components/form/form.d.ts.map +1 -0
  173. package/dist/components/form/form.jsx +10 -0
  174. package/dist/components/form/formReset.d.ts +2 -0
  175. package/dist/components/form/formReset.d.ts.map +1 -0
  176. package/dist/components/form/formReset.js +10 -0
  177. package/dist/components/form/formReset.js.map +1 -0
  178. package/dist/components/form/formReset.jsx +17 -0
  179. package/dist/components/form/free-text.d.ts +11 -0
  180. package/dist/components/form/free-text.d.ts.map +1 -0
  181. package/dist/components/form/free-text.js +70 -0
  182. package/dist/components/form/free-text.js.map +1 -0
  183. package/dist/components/form/free-text.jsx +41 -0
  184. package/dist/components/form/input-field.d.ts +34 -0
  185. package/dist/components/form/input-field.d.ts.map +1 -0
  186. package/dist/components/form/input-field.js +3 -0
  187. package/dist/components/form/input-field.jsx +64 -0
  188. package/dist/components/form/input.d.ts +52 -0
  189. package/dist/components/form/input.d.ts.map +1 -0
  190. package/dist/components/form/input.js +1 -1
  191. package/dist/components/form/input.jsx +36 -0
  192. package/dist/components/form/multi-select.d.ts +19 -0
  193. package/dist/components/form/multi-select.d.ts.map +1 -0
  194. package/dist/components/form/multi-select.js +420 -0
  195. package/dist/components/form/multi-select.js.map +1 -0
  196. package/dist/components/form/multi-select.jsx +352 -0
  197. package/dist/components/form/radiobox.d.ts +7 -0
  198. package/dist/components/form/radiobox.d.ts.map +1 -0
  199. package/dist/components/form/radiobox.jsx +6 -0
  200. package/dist/components/form/select.d.ts +13 -0
  201. package/dist/components/form/select.d.ts.map +1 -0
  202. package/dist/components/form/select.js +55 -51
  203. package/dist/components/form/select.js.map +1 -1
  204. package/dist/components/form/select.jsx +47 -0
  205. package/dist/components/form/slider.d.ts +7 -0
  206. package/dist/components/form/slider.d.ts.map +1 -0
  207. package/dist/components/form/slider.js +3 -0
  208. package/dist/components/form/slider.jsx +45 -0
  209. package/dist/components/form/switch.d.ts +10 -0
  210. package/dist/components/form/switch.d.ts.map +1 -0
  211. package/dist/components/form/switch.js +32 -26
  212. package/dist/components/form/switch.js.map +1 -1
  213. package/dist/components/form/switch.jsx +59 -0
  214. package/dist/components/form/task-list.d.ts +3 -0
  215. package/dist/components/form/task-list.d.ts.map +1 -0
  216. package/dist/components/form/task-list.jsx +26 -0
  217. package/dist/components/form/textarea.d.ts +5 -0
  218. package/dist/components/form/textarea.d.ts.map +1 -0
  219. package/dist/components/form/textarea.js +19 -0
  220. package/dist/components/form/textarea.js.map +1 -0
  221. package/dist/components/form/textarea.jsx +26 -0
  222. package/dist/components/index.d.ts +45 -0
  223. package/dist/components/index.d.ts.map +1 -0
  224. package/dist/components/index.js +44 -0
  225. package/dist/components/page-calendar/calendar-header.d.ts +16 -0
  226. package/dist/components/page-calendar/calendar-header.d.ts.map +1 -0
  227. package/dist/components/page-calendar/calendar-header.js +2 -0
  228. package/dist/components/page-calendar/calendar-header.jsx +85 -0
  229. package/dist/components/page-calendar/day-view.d.ts +12 -0
  230. package/dist/components/page-calendar/day-view.d.ts.map +1 -0
  231. package/dist/components/page-calendar/day-view.js +124 -0
  232. package/dist/components/page-calendar/day-view.js.map +1 -0
  233. package/dist/components/page-calendar/day-view.jsx +89 -0
  234. package/dist/components/page-calendar/event-pill.d.ts +9 -0
  235. package/dist/components/page-calendar/event-pill.d.ts.map +1 -0
  236. package/dist/components/page-calendar/event-pill.js +44 -0
  237. package/dist/components/page-calendar/event-pill.js.map +1 -0
  238. package/dist/components/page-calendar/event-pill.jsx +25 -0
  239. package/dist/components/page-calendar/index.d.ts +4 -0
  240. package/dist/components/page-calendar/index.d.ts.map +1 -0
  241. package/dist/components/page-calendar/index.js +2 -0
  242. package/dist/components/page-calendar/month-view.d.ts +11 -0
  243. package/dist/components/page-calendar/month-view.d.ts.map +1 -0
  244. package/dist/components/page-calendar/month-view.js +109 -0
  245. package/dist/components/page-calendar/month-view.js.map +1 -0
  246. package/dist/components/page-calendar/month-view.jsx +93 -0
  247. package/dist/components/page-calendar/page-calendar.d.ts +18 -0
  248. package/dist/components/page-calendar/page-calendar.d.ts.map +1 -0
  249. package/dist/components/page-calendar/page-calendar.js +75 -0
  250. package/dist/components/page-calendar/page-calendar.js.map +1 -0
  251. package/dist/components/page-calendar/page-calendar.jsx +41 -0
  252. package/dist/components/page-calendar/page-calendar.types.d.ts +18 -0
  253. package/dist/components/page-calendar/page-calendar.types.d.ts.map +1 -0
  254. package/dist/components/page-calendar/page-calendar.types.js +1 -0
  255. package/dist/components/page-calendar/page-calendar.utils.d.ts +24 -0
  256. package/dist/components/page-calendar/page-calendar.utils.d.ts.map +1 -0
  257. package/dist/components/page-calendar/page-calendar.utils.js +93 -0
  258. package/dist/components/page-calendar/week-view.d.ts +11 -0
  259. package/dist/components/page-calendar/week-view.d.ts.map +1 -0
  260. package/dist/components/page-calendar/week-view.js +88 -0
  261. package/dist/components/page-calendar/week-view.js.map +1 -0
  262. package/dist/components/page-calendar/week-view.jsx +66 -0
  263. package/dist/components/table/filter.d.ts +42 -0
  264. package/dist/components/table/filter.d.ts.map +1 -0
  265. package/dist/components/table/filter.js +239 -0
  266. package/dist/components/table/filter.js.map +1 -0
  267. package/dist/components/table/filter.jsx +174 -0
  268. package/dist/components/table/group.d.ts +17 -0
  269. package/dist/components/table/group.d.ts.map +1 -0
  270. package/dist/components/table/group.js +3 -0
  271. package/dist/components/table/group.jsx +77 -0
  272. package/dist/components/table/index.d.ts +19 -0
  273. package/dist/components/table/index.d.ts.map +1 -0
  274. package/dist/components/table/index.js +102 -0
  275. package/dist/components/table/index.js.map +1 -0
  276. package/dist/components/table/index.jsx +63 -0
  277. package/dist/components/table/inner-table.d.ts +29 -0
  278. package/dist/components/table/inner-table.d.ts.map +1 -0
  279. package/dist/components/table/inner-table.js +2 -0
  280. package/dist/components/table/inner-table.jsx +102 -0
  281. package/dist/components/table/metadata.d.ts +4 -0
  282. package/dist/components/table/metadata.d.ts.map +1 -0
  283. package/dist/components/table/metadata.js +73 -0
  284. package/dist/components/table/metadata.js.map +1 -0
  285. package/dist/components/table/metadata.jsx +36 -0
  286. package/dist/components/table/pagination.d.ts +5 -0
  287. package/dist/components/table/pagination.d.ts.map +1 -0
  288. package/dist/components/table/pagination.js +70 -0
  289. package/dist/components/table/pagination.js.map +1 -0
  290. package/dist/components/table/pagination.jsx +74 -0
  291. package/dist/components/table/row.d.ts +11 -0
  292. package/dist/components/table/row.d.ts.map +1 -0
  293. package/dist/components/table/row.js +58 -0
  294. package/dist/components/table/row.js.map +1 -0
  295. package/dist/components/table/row.jsx +49 -0
  296. package/dist/components/table/sort.d.ts +28 -0
  297. package/dist/components/table/sort.d.ts.map +1 -0
  298. package/dist/components/table/sort.js +3 -0
  299. package/dist/components/table/sort.jsx +111 -0
  300. package/dist/components/table/table-lib.d.ts +135 -0
  301. package/dist/components/table/table-lib.d.ts.map +1 -0
  302. package/dist/components/table/table-lib.js +83 -0
  303. package/dist/components/table/table.context.d.ts +10 -0
  304. package/dist/components/table/table.context.d.ts.map +1 -0
  305. package/dist/components/table/table.context.jsx +5 -0
  306. package/dist/components/table/thead.d.ts +9 -0
  307. package/dist/components/table/thead.d.ts.map +1 -0
  308. package/dist/components/table/thead.js +3 -0
  309. package/dist/components/table/thead.jsx +103 -0
  310. package/dist/config/context.d.ts +21 -0
  311. package/dist/config/context.d.ts.map +1 -0
  312. package/dist/config/context.js +12 -0
  313. package/dist/config/default-translations.d.ts +112 -0
  314. package/dist/config/default-translations.d.ts.map +1 -0
  315. package/dist/config/default-translations.jsx +105 -0
  316. package/dist/config/default-tweaks.d.ts +13 -0
  317. package/dist/config/default-tweaks.d.ts.map +1 -0
  318. package/dist/config/default-tweaks.js +4 -0
  319. package/dist/constants.d.ts +3 -0
  320. package/dist/constants.d.ts.map +1 -0
  321. package/dist/constants.js +2 -0
  322. package/dist/{use-translations-DTLfPE3_.js → context-CsnUsfeP.js} +55 -40
  323. package/dist/context-CsnUsfeP.js.map +1 -0
  324. package/dist/{date-picker-BhKEFZew.js → date-picker-DNzupG8R.js} +301 -317
  325. package/dist/date-picker-DNzupG8R.js.map +1 -0
  326. package/dist/dict-CisoYSMO.js +28 -0
  327. package/dist/dict-CisoYSMO.js.map +1 -0
  328. package/dist/dist-ChfJ5LO9.js +498 -0
  329. package/dist/dist-ChfJ5LO9.js.map +1 -0
  330. package/dist/{dist-BrGpYRaj.js → dist-DIjUECx9.js} +56 -56
  331. package/dist/{dist-BrGpYRaj.js.map → dist-DIjUECx9.js.map} +1 -1
  332. package/dist/dom-Bn4wY_Zx.js.map +1 -1
  333. package/dist/{file-upload-DWbZfeG5.js → file-upload-C2zNnv9n.js} +501 -481
  334. package/dist/{file-upload-DWbZfeG5.js.map → file-upload-C2zNnv9n.js.map} +1 -1
  335. package/dist/fzf-CPGDDCoU.js +64 -0
  336. package/dist/fzf-CPGDDCoU.js.map +1 -0
  337. package/dist/getISOWeek-EcB4Ebqp.js +72 -0
  338. package/dist/getISOWeek-EcB4Ebqp.js.map +1 -0
  339. package/dist/group-Dl14TJXO.js +222 -0
  340. package/dist/group-Dl14TJXO.js.map +1 -0
  341. package/dist/hooks/use-click-outside.d.ts +3 -0
  342. package/dist/hooks/use-click-outside.d.ts.map +1 -0
  343. package/dist/hooks/use-click-outside.js +17 -0
  344. package/dist/hooks/use-color-parser.d.ts +2 -0
  345. package/dist/hooks/use-color-parser.d.ts.map +1 -0
  346. package/dist/hooks/use-color-parser.js +9 -0
  347. package/dist/hooks/use-components-provider.d.ts +15 -0
  348. package/dist/hooks/use-components-provider.d.ts.map +1 -0
  349. package/dist/hooks/use-components-provider.jsx +22 -0
  350. package/dist/hooks/use-debounce.d.ts +5 -0
  351. package/dist/hooks/use-debounce.d.ts.map +1 -0
  352. package/dist/hooks/use-debounce.js +12 -0
  353. package/dist/hooks/use-floating-ref.d.ts +2 -0
  354. package/dist/hooks/use-floating-ref.d.ts.map +1 -0
  355. package/dist/hooks/use-floating-ref.js +6 -0
  356. package/dist/hooks/use-form.d.ts +394 -0
  357. package/dist/hooks/use-form.d.ts.map +1 -0
  358. package/dist/hooks/use-form.js +563 -0
  359. package/dist/hooks/use-hover.d.ts +3 -0
  360. package/dist/hooks/use-hover.d.ts.map +1 -0
  361. package/dist/hooks/use-hover.js +18 -0
  362. package/dist/hooks/use-input-id.d.ts +4 -0
  363. package/dist/hooks/use-input-id.d.ts.map +1 -0
  364. package/dist/hooks/use-input-id.js +5 -0
  365. package/dist/hooks/use-is-coarse-device.d.ts +2 -0
  366. package/dist/hooks/use-is-coarse-device.d.ts.map +1 -0
  367. package/dist/hooks/use-is-coarse-device.js +12 -0
  368. package/dist/hooks/use-locale.d.ts +3 -0
  369. package/dist/hooks/use-locale.d.ts.map +1 -0
  370. package/dist/hooks/use-locale.js +10 -0
  371. package/dist/hooks/use-media-query.d.ts +2 -0
  372. package/dist/hooks/use-media-query.d.ts.map +1 -0
  373. package/dist/hooks/use-media-query.js +25 -0
  374. package/dist/hooks/use-on-event.d.ts +4 -0
  375. package/dist/hooks/use-on-event.d.ts.map +1 -0
  376. package/dist/hooks/use-on-event.js +10 -0
  377. package/dist/hooks/use-parent.d.ts +3 -0
  378. package/dist/hooks/use-parent.d.ts.map +1 -0
  379. package/dist/hooks/use-parent.js +21 -0
  380. package/dist/hooks/use-preferences.d.ts +2 -0
  381. package/dist/hooks/use-preferences.d.ts.map +1 -0
  382. package/dist/hooks/use-preferences.js +23 -0
  383. package/dist/hooks/use-previous.d.ts +2 -0
  384. package/dist/hooks/use-previous.d.ts.map +1 -0
  385. package/dist/hooks/use-previous.js +9 -0
  386. package/dist/hooks/use-reactive.d.ts +2 -0
  387. package/dist/hooks/use-reactive.d.ts.map +1 -0
  388. package/dist/hooks/use-reactive.js +9 -0
  389. package/dist/hooks/use-remove-scroll.d.ts +4 -0
  390. package/dist/hooks/use-remove-scroll.d.ts.map +1 -0
  391. package/dist/hooks/use-remove-scroll.js +48 -0
  392. package/dist/hooks/use-resize-observer.d.ts +2 -0
  393. package/dist/hooks/use-resize-observer.d.ts.map +1 -0
  394. package/dist/hooks/use-resize-observer.js +17 -0
  395. package/dist/hooks/use-stable-ref.d.ts +2 -0
  396. package/dist/hooks/use-stable-ref.d.ts.map +1 -0
  397. package/dist/hooks/use-stable-ref.js +9 -0
  398. package/dist/hooks/use-swipe.d.ts +8 -0
  399. package/dist/hooks/use-swipe.d.ts.map +1 -0
  400. package/dist/hooks/use-swipe.js +17 -0
  401. package/dist/hooks/use-translations.d.ts +110 -0
  402. package/dist/hooks/use-translations.d.ts.map +1 -0
  403. package/dist/hooks/use-translations.js +9 -0
  404. package/dist/hooks/use-tweaks.d.ts +3 -0
  405. package/dist/hooks/use-tweaks.d.ts.map +1 -0
  406. package/dist/hooks/use-tweaks.js +9 -0
  407. package/dist/hooks/use-window-size.d.ts +5 -0
  408. package/dist/hooks/use-window-size.d.ts.map +1 -0
  409. package/dist/hooks/use-window-size.js +14 -0
  410. package/dist/index.css +1 -1
  411. package/dist/index.d.ts +22 -0
  412. package/dist/index.d.ts.map +1 -0
  413. package/dist/index.js +20 -7932
  414. package/dist/index.js.map +1 -1
  415. package/dist/inner-table-CeDX60cL.js +151 -0
  416. package/dist/inner-table-CeDX60cL.js.map +1 -0
  417. package/dist/input-Cmyuea4Y.js +412 -0
  418. package/dist/input-Cmyuea4Y.js.map +1 -0
  419. package/dist/{input-field-B_whI66Q.js → input-field-ffx1MbHo.js} +29 -16
  420. package/dist/input-field-ffx1MbHo.js.map +1 -0
  421. package/dist/isSameMonth-C3lsSwcg.js +10 -0
  422. package/dist/isSameMonth-C3lsSwcg.js.map +1 -0
  423. package/dist/isToday-COXfxFui.js +32 -0
  424. package/dist/isToday-COXfxFui.js.map +1 -0
  425. package/dist/lib/combi-keys.d.ts +15 -0
  426. package/dist/lib/combi-keys.d.ts.map +1 -0
  427. package/dist/lib/combi-keys.js +60 -0
  428. package/dist/lib/dict.d.ts +9 -0
  429. package/dist/lib/dict.d.ts.map +1 -0
  430. package/dist/lib/dict.js +28 -0
  431. package/dist/lib/dom.d.ts +20 -0
  432. package/dist/lib/dom.d.ts.map +1 -0
  433. package/dist/lib/dom.js +185 -0
  434. package/dist/lib/fns.d.ts +11 -0
  435. package/dist/lib/fns.d.ts.map +1 -0
  436. package/dist/lib/fns.js +46 -0
  437. package/dist/lib/fzf.d.ts +16 -0
  438. package/dist/lib/fzf.d.ts.map +1 -0
  439. package/dist/lib/fzf.js +115 -0
  440. package/dist/lib/keyboard-area.d.ts +16 -0
  441. package/dist/lib/keyboard-area.d.ts.map +1 -0
  442. package/dist/lib/keyboard-area.js +14 -0
  443. package/dist/modal-Df8-6i-o.js +408 -0
  444. package/dist/modal-Df8-6i-o.js.map +1 -0
  445. package/dist/notifications-NhCESJUV.js +1697 -0
  446. package/dist/notifications-NhCESJUV.js.map +1 -0
  447. package/dist/page-calendar.utils-Bd0PHktL.js +102 -0
  448. package/dist/page-calendar.utils-Bd0PHktL.js.map +1 -0
  449. package/dist/preset/preset.tailwind.d.ts.map +1 -1
  450. package/dist/preset/preset.tailwind.js +6 -7
  451. package/dist/preset/src/styles/dark.js +1 -1
  452. package/dist/progress-8LO5gWLp.js +104 -0
  453. package/dist/progress-8LO5gWLp.js.map +1 -0
  454. package/dist/{proxy-BcJ_5Dwq.js → proxy-fP2NxmhM.js} +658 -844
  455. package/dist/proxy-fP2NxmhM.js.map +1 -0
  456. package/dist/shim-Czv-YhKR.js +93 -0
  457. package/dist/shim-Czv-YhKR.js.map +1 -0
  458. package/dist/shortcut-CQCmgmlU.js +100 -0
  459. package/dist/shortcut-CQCmgmlU.js.map +1 -0
  460. package/dist/slider-TX9hiHO-.js +1196 -0
  461. package/dist/slider-TX9hiHO-.js.map +1 -0
  462. package/dist/sort-DGmiselV.js +195 -0
  463. package/dist/sort-DGmiselV.js.map +1 -0
  464. package/dist/step-DFpJ7zCG.js +185 -0
  465. package/dist/step-DFpJ7zCG.js.map +1 -0
  466. package/dist/styles/dark.js +1 -1
  467. package/dist/subMonths-QcCnE3Yh.js +43 -0
  468. package/dist/subMonths-QcCnE3Yh.js.map +1 -0
  469. package/dist/table-lib-1bkYSklk.js +174 -0
  470. package/dist/table-lib-1bkYSklk.js.map +1 -0
  471. package/dist/{tabs-Ciy0l9OF.js → tabs-Brc963EW.js} +2 -2
  472. package/dist/{tabs-Ciy0l9OF.js.map → tabs-Brc963EW.js.map} +1 -1
  473. package/dist/thead-B6WELJZ-.js +211 -0
  474. package/dist/thead-B6WELJZ-.js.map +1 -0
  475. package/dist/types.d.ts +26 -0
  476. package/dist/types.d.ts.map +1 -0
  477. package/dist/types.js +1 -0
  478. package/dist/use-locale-DPM_sg4s.js +12 -0
  479. package/dist/use-locale-DPM_sg4s.js.map +1 -0
  480. package/dist/use-remove-scroll-pAgC09Sq.js +38 -0
  481. package/dist/use-remove-scroll-pAgC09Sq.js.map +1 -0
  482. package/dist/use-translations-BE4PuhLm.js +11 -0
  483. package/dist/use-translations-BE4PuhLm.js.map +1 -0
  484. package/dist/useAnimationFrame-DnKbaXfi.js +223 -0
  485. package/dist/useAnimationFrame-DnKbaXfi.js.map +1 -0
  486. package/dist/valueToPercent-DZc_m1tm.js +43 -0
  487. package/dist/valueToPercent-DZc_m1tm.js.map +1 -0
  488. package/dist/visuallyHidden-B7wI86yi.js +303 -0
  489. package/dist/visuallyHidden-B7wI86yi.js.map +1 -0
  490. package/dist/with-selector-BFW5n-pb.js +102 -0
  491. package/dist/with-selector-BFW5n-pb.js.map +1 -0
  492. package/dist/wizard-7u_qZ-78.js +218 -0
  493. package/dist/wizard-7u_qZ-78.js.map +1 -0
  494. package/package.json +19 -11
  495. package/dist/autocomplete-D3VOTihi.js +0 -415
  496. package/dist/autocomplete-D3VOTihi.js.map +0 -1
  497. package/dist/calendar-PCCZDUIL.js.map +0 -1
  498. package/dist/components/table/table.js +0 -3
  499. package/dist/date-picker-BhKEFZew.js.map +0 -1
  500. package/dist/input-B7jqwPG4.js +0 -473
  501. package/dist/input-B7jqwPG4.js.map +0 -1
  502. package/dist/input-field-B_whI66Q.js.map +0 -1
  503. package/dist/modal-Bz-61ays.js +0 -373
  504. package/dist/modal-Bz-61ays.js.map +0 -1
  505. package/dist/notifications-MT4XkLov.js +0 -2203
  506. package/dist/notifications-MT4XkLov.js.map +0 -1
  507. package/dist/polymorph-BLXhrn9n.js.map +0 -1
  508. package/dist/proxy-BcJ_5Dwq.js.map +0 -1
  509. package/dist/skeleton-CBYEq3lM.js +0 -26
  510. package/dist/skeleton-CBYEq3lM.js.map +0 -1
  511. package/dist/slot-pC8kH9De.js.map +0 -1
  512. package/dist/table-CUFbAI2k.js +0 -1914
  513. package/dist/table-CUFbAI2k.js.map +0 -1
  514. package/dist/use-translations-DTLfPE3_.js.map +0 -1
@@ -1,1914 +0,0 @@
1
- import { a as e, i as t, o as n, r, t as i } from "./proxy-BcJ_5Dwq.js";
2
- import { h as a, p as o } from "./dom-Bn4wY_Zx.js";
3
- import { t as s } from "./polymorph-BLXhrn9n.js";
4
- import { t as c } from "./input-B7jqwPG4.js";
5
- import { t as l } from "./File.es-CjNVQ00B.js";
6
- import { r as u } from "./input-field-B_whI66Q.js";
7
- import { t as d } from "./IconBase.es-BlJQ9IXo.js";
8
- import { t as f } from "./use-translations-DTLfPE3_.js";
9
- import { a as p, c as m, n as h } from "./fns-KbsWlOTG.js";
10
- import { Button as g } from "./components/core/button.js";
11
- import { Select as _ } from "./components/form/select.js";
12
- import { t as v } from "./use-stable-ref-D5LFCx0u.js";
13
- import { $ as y, Ft as b, K as ee, Nt as te, ft as ne, it as re, kt as ie, pt as ae, st as oe } from "./MotionConfigContext-BORpSKe8.js";
14
- import { t as x } from "./use-motion-value-BqPF1j90.js";
15
- import { t as se } from "./dist-BrGpYRaj.js";
16
- import { n as ce } from "./dist-BHFtgf5x.js";
17
- import { n as le } from "./skeleton-CBYEq3lM.js";
18
- import { Dropdown as S } from "./components/floating/dropdown.js";
19
- import * as C from "react";
20
- import w, { Fragment as T, createContext as E, createElement as ue, forwardRef as de, useCallback as D, useContext as O, useEffect as k, useId as fe, useMemo as A, useRef as j, useState as M } from "react";
21
- import { jsx as N, jsxs as P } from "react/jsx-runtime";
22
- //#region ../../node_modules/.pnpm/@phosphor-icons+react@2.1.10_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/@phosphor-icons/react/dist/defs/CaretUpDown.es.js
23
- var pe = /* @__PURE__ */ new Map([
24
- ["bold", /* @__PURE__ */ C.createElement(C.Fragment, null, /* @__PURE__ */ C.createElement("path", { d: "M184.49,167.51a12,12,0,0,1,0,17l-48,48a12,12,0,0,1-17,0l-48-48a12,12,0,0,1,17-17L128,207l39.51-39.52A12,12,0,0,1,184.49,167.51Zm-96-79L128,49l39.51,39.52a12,12,0,0,0,17-17l-48-48a12,12,0,0,0-17,0l-48,48a12,12,0,0,0,17,17Z" }))],
25
- ["duotone", /* @__PURE__ */ C.createElement(C.Fragment, null, /* @__PURE__ */ C.createElement("path", {
26
- d: "M80,176h96l-48,48ZM128,32,80,80h96Z",
27
- opacity: "0.2"
28
- }), /* @__PURE__ */ C.createElement("path", { d: "M176,168H80a8,8,0,0,0-5.66,13.66l48,48a8,8,0,0,0,11.32,0l48-48A8,8,0,0,0,176,168Zm-48,44.69L99.31,184h57.38ZM80,88h96a8,8,0,0,0,5.66-13.66l-48-48a8,8,0,0,0-11.32,0l-48,48A8,8,0,0,0,80,88Zm48-44.69L156.69,72H99.31Z" }))],
29
- ["fill", /* @__PURE__ */ C.createElement(C.Fragment, null, /* @__PURE__ */ C.createElement("path", { d: "M72.61,83.06a8,8,0,0,1,1.73-8.72l48-48a8,8,0,0,1,11.32,0l48,48A8,8,0,0,1,176,88H80A8,8,0,0,1,72.61,83.06ZM176,168H80a8,8,0,0,0-5.66,13.66l48,48a8,8,0,0,0,11.32,0l48-48A8,8,0,0,0,176,168Z" }))],
30
- ["light", /* @__PURE__ */ C.createElement(C.Fragment, null, /* @__PURE__ */ C.createElement("path", { d: "M180.24,171.76a6,6,0,0,1,0,8.48l-48,48a6,6,0,0,1-8.48,0l-48-48a6,6,0,0,1,8.48-8.48L128,215.51l43.76-43.75A6,6,0,0,1,180.24,171.76Zm-96-87.52L128,40.49l43.76,43.75a6,6,0,0,0,8.48-8.48l-48-48a6,6,0,0,0-8.48,0l-48,48a6,6,0,0,0,8.48,8.48Z" }))],
31
- ["regular", /* @__PURE__ */ C.createElement(C.Fragment, null, /* @__PURE__ */ C.createElement("path", { d: "M181.66,170.34a8,8,0,0,1,0,11.32l-48,48a8,8,0,0,1-11.32,0l-48-48a8,8,0,0,1,11.32-11.32L128,212.69l42.34-42.35A8,8,0,0,1,181.66,170.34Zm-96-84.68L128,43.31l42.34,42.35a8,8,0,0,0,11.32-11.32l-48-48a8,8,0,0,0-11.32,0l-48,48A8,8,0,0,0,85.66,85.66Z" }))],
32
- ["thin", /* @__PURE__ */ C.createElement(C.Fragment, null, /* @__PURE__ */ C.createElement("path", { d: "M178.83,173.17a4,4,0,0,1,0,5.66l-48,48a4,4,0,0,1-5.66,0l-48-48a4,4,0,0,1,5.66-5.66L128,218.34l45.17-45.17A4,4,0,0,1,178.83,173.17Zm-96-90.34L128,37.66l45.17,45.17a4,4,0,1,0,5.66-5.66l-48-48a4,4,0,0,0-5.66,0l-48,48a4,4,0,0,0,5.66,5.66Z" }))]
33
- ]), me = /* @__PURE__ */ new Map([
34
- ["bold", /* @__PURE__ */ C.createElement(C.Fragment, null, /* @__PURE__ */ C.createElement("path", { d: "M108,60A16,16,0,1,1,92,44,16,16,0,0,1,108,60Zm56,16a16,16,0,1,0-16-16A16,16,0,0,0,164,76ZM92,112a16,16,0,1,0,16,16A16,16,0,0,0,92,112Zm72,0a16,16,0,1,0,16,16A16,16,0,0,0,164,112ZM92,180a16,16,0,1,0,16,16A16,16,0,0,0,92,180Zm72,0a16,16,0,1,0,16,16A16,16,0,0,0,164,180Z" }))],
35
- ["duotone", /* @__PURE__ */ C.createElement(C.Fragment, null, /* @__PURE__ */ C.createElement("path", {
36
- d: "M208,32V224a16,16,0,0,1-16,16H64a16,16,0,0,1-16-16V32A16,16,0,0,1,64,16H192A16,16,0,0,1,208,32Z",
37
- opacity: "0.2"
38
- }), /* @__PURE__ */ C.createElement("path", { d: "M104,60A12,12,0,1,1,92,48,12,12,0,0,1,104,60Zm60,12a12,12,0,1,0-12-12A12,12,0,0,0,164,72ZM92,116a12,12,0,1,0,12,12A12,12,0,0,0,92,116Zm72,0a12,12,0,1,0,12,12A12,12,0,0,0,164,116ZM92,184a12,12,0,1,0,12,12A12,12,0,0,0,92,184Zm72,0a12,12,0,1,0,12,12A12,12,0,0,0,164,184Z" }))],
39
- ["fill", /* @__PURE__ */ C.createElement(C.Fragment, null, /* @__PURE__ */ C.createElement("path", { d: "M192,16H64A16,16,0,0,0,48,32V224a16,16,0,0,0,16,16H192a16,16,0,0,0,16-16V32A16,16,0,0,0,192,16ZM100,200a12,12,0,1,1,12-12A12,12,0,0,1,100,200Zm0-60a12,12,0,1,1,12-12A12,12,0,0,1,100,140Zm0-60a12,12,0,1,1,12-12A12,12,0,0,1,100,80Zm56,120a12,12,0,1,1,12-12A12,12,0,0,1,156,200Zm0-60a12,12,0,1,1,12-12A12,12,0,0,1,156,140Zm0-60a12,12,0,1,1,12-12A12,12,0,0,1,156,80Z" }))],
40
- ["light", /* @__PURE__ */ C.createElement(C.Fragment, null, /* @__PURE__ */ C.createElement("path", { d: "M102,60A10,10,0,1,1,92,50,10,10,0,0,1,102,60Zm62,10a10,10,0,1,0-10-10A10,10,0,0,0,164,70ZM92,118a10,10,0,1,0,10,10A10,10,0,0,0,92,118Zm72,0a10,10,0,1,0,10,10A10,10,0,0,0,164,118ZM92,186a10,10,0,1,0,10,10A10,10,0,0,0,92,186Zm72,0a10,10,0,1,0,10,10A10,10,0,0,0,164,186Z" }))],
41
- ["regular", /* @__PURE__ */ C.createElement(C.Fragment, null, /* @__PURE__ */ C.createElement("path", { d: "M104,60A12,12,0,1,1,92,48,12,12,0,0,1,104,60Zm60,12a12,12,0,1,0-12-12A12,12,0,0,0,164,72ZM92,116a12,12,0,1,0,12,12A12,12,0,0,0,92,116Zm72,0a12,12,0,1,0,12,12A12,12,0,0,0,164,116ZM92,184a12,12,0,1,0,12,12A12,12,0,0,0,92,184Zm72,0a12,12,0,1,0,12,12A12,12,0,0,0,164,184Z" }))],
42
- ["thin", /* @__PURE__ */ C.createElement(C.Fragment, null, /* @__PURE__ */ C.createElement("path", { d: "M100,60a8,8,0,1,1-8-8A8,8,0,0,1,100,60Zm64,8a8,8,0,1,0-8-8A8,8,0,0,0,164,68ZM92,120a8,8,0,1,0,8,8A8,8,0,0,0,92,120Zm72,0a8,8,0,1,0,8,8A8,8,0,0,0,164,120ZM92,188a8,8,0,1,0,8,8A8,8,0,0,0,92,188Zm72,0a8,8,0,1,0,8,8A8,8,0,0,0,164,188Z" }))]
43
- ]), he = /* @__PURE__ */ new Map([
44
- ["bold", /* @__PURE__ */ C.createElement(C.Fragment, null, /* @__PURE__ */ C.createElement("path", { d: "M234.29,47.91A20,20,0,0,0,216,36H40A20,20,0,0,0,25.2,69.45l.12.14L92,140.75V216a20,20,0,0,0,31.1,16.64l32-21.33A20,20,0,0,0,164,194.66V140.75l66.67-71.16.12-.14A20,20,0,0,0,234.29,47.91Zm-91,79.89A12,12,0,0,0,140,136v56.52l-24,16V136a12,12,0,0,0-3.25-8.2L49.23,60H206.77Z" }))],
45
- ["duotone", /* @__PURE__ */ C.createElement(C.Fragment, null, /* @__PURE__ */ C.createElement("path", {
46
- d: "M221.9,61.38,152,136v58.65a8,8,0,0,1-3.56,6.66l-32,21.33A8,8,0,0,1,104,216V136L34.1,61.38A8,8,0,0,1,40,48H216A8,8,0,0,1,221.9,61.38Z",
47
- opacity: "0.2"
48
- }), /* @__PURE__ */ C.createElement("path", { d: "M230.6,49.53A15.81,15.81,0,0,0,216,40H40A16,16,0,0,0,28.19,66.76l.08.09L96,139.17V216a16,16,0,0,0,24.87,13.32l32-21.34A16,16,0,0,0,160,194.66V139.17l67.74-72.32.08-.09A15.8,15.8,0,0,0,230.6,49.53ZM40,56h0Zm106.18,74.58A8,8,0,0,0,144,136v58.66L112,216V136a8,8,0,0,0-2.16-5.47L40,56H216Z" }))],
49
- ["fill", /* @__PURE__ */ C.createElement(C.Fragment, null, /* @__PURE__ */ C.createElement("path", { d: "M227.81,66.76l-.08.09L160,139.17v55.49A16,16,0,0,1,152.87,208l-32,21.34A16,16,0,0,1,96,216V139.17L28.27,66.85l-.08-.09A16,16,0,0,1,40,40H216a16,16,0,0,1,11.84,26.76Z" }))],
50
- ["light", /* @__PURE__ */ C.createElement(C.Fragment, null, /* @__PURE__ */ C.createElement("path", { d: "M228.77,50.34A13.8,13.8,0,0,0,216,42H40A14,14,0,0,0,29.67,65.42l.06.07L98,138.38V216a14,14,0,0,0,21.77,11.64l32-21.33A14,14,0,0,0,158,194.66V138.38l68.33-73A13.82,13.82,0,0,0,228.77,50.34Zm-11.26,6.94L147.62,131.9A6,6,0,0,0,146,136v58.66a2,2,0,0,1-.89,1.67l-32,21.33A2,2,0,0,1,110,216V136a6,6,0,0,0-1.62-4.1L38.53,57.32A2,2,0,0,1,40,54H216a1.9,1.9,0,0,1,1.83,1.19A1.86,1.86,0,0,1,217.51,57.28Z" }))],
51
- ["regular", /* @__PURE__ */ C.createElement(C.Fragment, null, /* @__PURE__ */ C.createElement("path", { d: "M230.6,49.53A15.81,15.81,0,0,0,216,40H40A16,16,0,0,0,28.19,66.76l.08.09L96,139.17V216a16,16,0,0,0,24.87,13.32l32-21.34A16,16,0,0,0,160,194.66V139.17l67.74-72.32.08-.09A15.8,15.8,0,0,0,230.6,49.53ZM40,56h0Zm106.18,74.58A8,8,0,0,0,144,136v58.66L112,216V136a8,8,0,0,0-2.16-5.47L40,56H216Z" }))],
52
- ["thin", /* @__PURE__ */ C.createElement(C.Fragment, null, /* @__PURE__ */ C.createElement("path", { d: "M227,51.15A11.85,11.85,0,0,0,216,44H40a12,12,0,0,0-8.88,20.07l.05.05L100,137.59V216a12,12,0,0,0,18.66,10l32-21.33a12,12,0,0,0,5.35-10V137.59l68.86-73.52A11.85,11.85,0,0,0,227,51.15Zm-8,7.5-69.9,74.62A4,4,0,0,0,148,136v58.65a4,4,0,0,1-1.78,3.33l-32,21.33A4,4,0,0,1,108,216V136a4,4,0,0,0-1.08-2.74L37.05,58.67A4,4,0,0,1,40,52H216a4,4,0,0,1,3,6.65Z" }))]
53
- ]), ge = /* @__PURE__ */ new Map([
54
- ["bold", /* @__PURE__ */ C.createElement(C.Fragment, null, /* @__PURE__ */ C.createElement("path", { d: "M232.49,215.51,185,168a92.12,92.12,0,1,0-17,17l47.53,47.54a12,12,0,0,0,17-17ZM44,112a68,68,0,1,1,68,68A68.07,68.07,0,0,1,44,112Z" }))],
55
- ["duotone", /* @__PURE__ */ C.createElement(C.Fragment, null, /* @__PURE__ */ C.createElement("path", {
56
- d: "M192,112a80,80,0,1,1-80-80A80,80,0,0,1,192,112Z",
57
- opacity: "0.2"
58
- }), /* @__PURE__ */ C.createElement("path", { d: "M229.66,218.34,179.6,168.28a88.21,88.21,0,1,0-11.32,11.31l50.06,50.07a8,8,0,0,0,11.32-11.32ZM40,112a72,72,0,1,1,72,72A72.08,72.08,0,0,1,40,112Z" }))],
59
- ["fill", /* @__PURE__ */ C.createElement(C.Fragment, null, /* @__PURE__ */ C.createElement("path", { d: "M168,112a56,56,0,1,1-56-56A56,56,0,0,1,168,112Zm61.66,117.66a8,8,0,0,1-11.32,0l-50.06-50.07a88,88,0,1,1,11.32-11.31l50.06,50.06A8,8,0,0,1,229.66,229.66ZM112,184a72,72,0,1,0-72-72A72.08,72.08,0,0,0,112,184Z" }))],
60
- ["light", /* @__PURE__ */ C.createElement(C.Fragment, null, /* @__PURE__ */ C.createElement("path", { d: "M228.24,219.76l-51.38-51.38a86.15,86.15,0,1,0-8.48,8.48l51.38,51.38a6,6,0,0,0,8.48-8.48ZM38,112a74,74,0,1,1,74,74A74.09,74.09,0,0,1,38,112Z" }))],
61
- ["regular", /* @__PURE__ */ C.createElement(C.Fragment, null, /* @__PURE__ */ C.createElement("path", { d: "M229.66,218.34l-50.07-50.06a88.11,88.11,0,1,0-11.31,11.31l50.06,50.07a8,8,0,0,0,11.32-11.32ZM40,112a72,72,0,1,1,72,72A72.08,72.08,0,0,1,40,112Z" }))],
62
- ["thin", /* @__PURE__ */ C.createElement(C.Fragment, null, /* @__PURE__ */ C.createElement("path", { d: "M226.83,221.17l-52.7-52.7a84.1,84.1,0,1,0-5.66,5.66l52.7,52.7a4,4,0,0,0,5.66-5.66ZM36,112a76,76,0,1,1,76,76A76.08,76.08,0,0,1,36,112Z" }))]
63
- ]), _e = /* @__PURE__ */ new Map([
64
- ["bold", /* @__PURE__ */ C.createElement(C.Fragment, null, /* @__PURE__ */ C.createElement("path", { d: "M156,112a12,12,0,0,1-12,12H80a12,12,0,0,1,0-24h64A12,12,0,0,1,156,112Zm76.49,120.49a12,12,0,0,1-17,0L168,185a92.12,92.12,0,1,1,17-17l47.54,47.53A12,12,0,0,1,232.49,232.49ZM112,180a68,68,0,1,0-68-68A68.08,68.08,0,0,0,112,180Z" }))],
65
- ["duotone", /* @__PURE__ */ C.createElement(C.Fragment, null, /* @__PURE__ */ C.createElement("path", {
66
- d: "M192,112a80,80,0,1,1-80-80A80,80,0,0,1,192,112Z",
67
- opacity: "0.2"
68
- }), /* @__PURE__ */ C.createElement("path", { d: "M229.66,218.34,179.6,168.28a88.21,88.21,0,1,0-11.32,11.31l50.06,50.07a8,8,0,0,0,11.32-11.32ZM40,112a72,72,0,1,1,72,72A72.08,72.08,0,0,1,40,112Zm112,0a8,8,0,0,1-8,8H80a8,8,0,0,1,0-16h64A8,8,0,0,1,152,112Z" }))],
69
- ["fill", /* @__PURE__ */ C.createElement(C.Fragment, null, /* @__PURE__ */ C.createElement("path", { d: "M229.66,218.34,179.6,168.28a88.21,88.21,0,1,0-11.32,11.31l50.06,50.07a8,8,0,0,0,11.32-11.32ZM144,120H80a8,8,0,0,1,0-16h64a8,8,0,0,1,0,16Z" }))],
70
- ["light", /* @__PURE__ */ C.createElement(C.Fragment, null, /* @__PURE__ */ C.createElement("path", { d: "M150,112a6,6,0,0,1-6,6H80a6,6,0,0,1,0-12h64A6,6,0,0,1,150,112Zm78.24,116.24a6,6,0,0,1-8.48,0l-51.38-51.38a86.15,86.15,0,1,1,8.48-8.48l51.38,51.38A6,6,0,0,1,228.24,228.24ZM112,186a74,74,0,1,0-74-74A74.09,74.09,0,0,0,112,186Z" }))],
71
- ["regular", /* @__PURE__ */ C.createElement(C.Fragment, null, /* @__PURE__ */ C.createElement("path", { d: "M152,112a8,8,0,0,1-8,8H80a8,8,0,0,1,0-16h64A8,8,0,0,1,152,112Zm77.66,117.66a8,8,0,0,1-11.32,0l-50.06-50.07a88.11,88.11,0,1,1,11.31-11.31l50.07,50.06A8,8,0,0,1,229.66,229.66ZM112,184a72,72,0,1,0-72-72A72.08,72.08,0,0,0,112,184Z" }))],
72
- ["thin", /* @__PURE__ */ C.createElement(C.Fragment, null, /* @__PURE__ */ C.createElement("path", { d: "M148,112a4,4,0,0,1-4,4H80a4,4,0,0,1,0-8h64A4,4,0,0,1,148,112Zm78.83,114.83a4,4,0,0,1-5.66,0l-52.7-52.7a84.1,84.1,0,1,1,5.66-5.66l52.7,52.7A4,4,0,0,1,226.83,226.83ZM112,188a76,76,0,1,0-76-76A76.08,76.08,0,0,0,112,188Z" }))]
73
- ]), ve = /* @__PURE__ */ new Map([
74
- ["bold", /* @__PURE__ */ C.createElement(C.Fragment, null, /* @__PURE__ */ C.createElement("path", { d: "M228,128a12,12,0,0,1-12,12H140v76a12,12,0,0,1-24,0V140H40a12,12,0,0,1,0-24h76V40a12,12,0,0,1,24,0v76h76A12,12,0,0,1,228,128Z" }))],
75
- ["duotone", /* @__PURE__ */ C.createElement(C.Fragment, null, /* @__PURE__ */ C.createElement("path", {
76
- d: "M216,56V200a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V56A16,16,0,0,1,56,40H200A16,16,0,0,1,216,56Z",
77
- opacity: "0.2"
78
- }), /* @__PURE__ */ C.createElement("path", { d: "M224,128a8,8,0,0,1-8,8H136v80a8,8,0,0,1-16,0V136H40a8,8,0,0,1,0-16h80V40a8,8,0,0,1,16,0v80h80A8,8,0,0,1,224,128Z" }))],
79
- ["fill", /* @__PURE__ */ C.createElement(C.Fragment, null, /* @__PURE__ */ C.createElement("path", { d: "M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM184,136H136v48a8,8,0,0,1-16,0V136H72a8,8,0,0,1,0-16h48V72a8,8,0,0,1,16,0v48h48a8,8,0,0,1,0,16Z" }))],
80
- ["light", /* @__PURE__ */ C.createElement(C.Fragment, null, /* @__PURE__ */ C.createElement("path", { d: "M222,128a6,6,0,0,1-6,6H134v82a6,6,0,0,1-12,0V134H40a6,6,0,0,1,0-12h82V40a6,6,0,0,1,12,0v82h82A6,6,0,0,1,222,128Z" }))],
81
- ["regular", /* @__PURE__ */ C.createElement(C.Fragment, null, /* @__PURE__ */ C.createElement("path", { d: "M224,128a8,8,0,0,1-8,8H136v80a8,8,0,0,1-16,0V136H40a8,8,0,0,1,0-16h80V40a8,8,0,0,1,16,0v80h80A8,8,0,0,1,224,128Z" }))],
82
- ["thin", /* @__PURE__ */ C.createElement(C.Fragment, null, /* @__PURE__ */ C.createElement("path", { d: "M220,128a4,4,0,0,1-4,4H132v84a4,4,0,0,1-8,0V132H40a4,4,0,0,1,0-8h84V40a4,4,0,0,1,8,0v84h84A4,4,0,0,1,220,128Z" }))]
83
- ]), ye = /* @__PURE__ */ new Map([
84
- ["bold", /* @__PURE__ */ C.createElement(C.Fragment, null, /* @__PURE__ */ C.createElement("path", { d: "M128,128a12,12,0,0,1-12,12H48a12,12,0,0,1,0-24h68A12,12,0,0,1,128,128ZM48,76H180a12,12,0,0,0,0-24H48a12,12,0,0,0,0,24Zm52,104H48a12,12,0,0,0,0,24h52a12,12,0,0,0,0-24Zm132.49-20.49a12,12,0,0,0-17,0L196,179V112a12,12,0,0,0-24,0v67l-19.51-19.52a12,12,0,0,0-17,17l40,40a12,12,0,0,0,17,0l40-40A12,12,0,0,0,232.49,159.51Z" }))],
85
- ["duotone", /* @__PURE__ */ C.createElement(C.Fragment, null, /* @__PURE__ */ C.createElement("path", {
86
- d: "M224,80v88l-24,24H48V64H208A16,16,0,0,1,224,80Z",
87
- opacity: "0.2"
88
- }), /* @__PURE__ */ C.createElement("path", { d: "M128,128a8,8,0,0,1-8,8H48a8,8,0,0,1,0-16h72A8,8,0,0,1,128,128ZM48,72H184a8,8,0,0,0,0-16H48a8,8,0,0,0,0,16Zm56,112H48a8,8,0,0,0,0,16h56a8,8,0,0,0,0-16Zm125.66-21.66a8,8,0,0,0-11.32,0L192,188.69V112a8,8,0,0,0-16,0v76.69l-26.34-26.35a8,8,0,0,0-11.32,11.32l40,40a8,8,0,0,0,11.32,0l40-40A8,8,0,0,0,229.66,162.34Z" }))],
89
- ["fill", /* @__PURE__ */ C.createElement(C.Fragment, null, /* @__PURE__ */ C.createElement("path", { d: "M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM72,72h96a8,8,0,0,1,0,16H72a8,8,0,0,1,0-16Zm40,112H72a8,8,0,0,1,0-16h40a8,8,0,0,1,0,16Zm8-48H72a8,8,0,0,1,0-16h48a8,8,0,0,1,0,16Zm77.66,29.66-24,24a8,8,0,0,1-11.32,0l-24-24a8,8,0,0,1,11.32-11.32L160,164.69V120a8,8,0,0,1,16,0v44.69l10.34-10.35a8,8,0,0,1,11.32,11.32Z" }))],
90
- ["light", /* @__PURE__ */ C.createElement(C.Fragment, null, /* @__PURE__ */ C.createElement("path", { d: "M126,128a6,6,0,0,1-6,6H48a6,6,0,0,1,0-12h72A6,6,0,0,1,126,128ZM48,70H184a6,6,0,0,0,0-12H48a6,6,0,0,0,0,12Zm56,116H48a6,6,0,0,0,0,12h56a6,6,0,0,0,0-12Zm124.24-22.24a6,6,0,0,0-8.48,0L190,193.51V112a6,6,0,0,0-12,0v81.51l-29.76-29.75a6,6,0,0,0-8.48,8.48l40,40a6,6,0,0,0,8.48,0l40-40A6,6,0,0,0,228.24,163.76Z" }))],
91
- ["regular", /* @__PURE__ */ C.createElement(C.Fragment, null, /* @__PURE__ */ C.createElement("path", { d: "M128,128a8,8,0,0,1-8,8H48a8,8,0,0,1,0-16h72A8,8,0,0,1,128,128ZM48,72H184a8,8,0,0,0,0-16H48a8,8,0,0,0,0,16Zm56,112H48a8,8,0,0,0,0,16h56a8,8,0,0,0,0-16Zm125.66-21.66a8,8,0,0,0-11.32,0L192,188.69V112a8,8,0,0,0-16,0v76.69l-26.34-26.35a8,8,0,0,0-11.32,11.32l40,40a8,8,0,0,0,11.32,0l40-40A8,8,0,0,0,229.66,162.34Z" }))],
92
- ["thin", /* @__PURE__ */ C.createElement(C.Fragment, null, /* @__PURE__ */ C.createElement("path", { d: "M124,128a4,4,0,0,1-4,4H48a4,4,0,0,1,0-8h72A4,4,0,0,1,124,128ZM48,68H184a4,4,0,0,0,0-8H48a4,4,0,0,0,0,8Zm56,120H48a4,4,0,0,0,0,8h56a4,4,0,0,0,0-8Zm122.83-22.83a4,4,0,0,0-5.66,0L188,198.34V112a4,4,0,0,0-8,0v86.34l-33.17-33.17a4,4,0,0,0-5.66,5.66l40,40a4,4,0,0,0,5.66,0l40-40A4,4,0,0,0,226.83,165.17Z" }))]
93
- ]), be = /* @__PURE__ */ new Map([
94
- ["bold", /* @__PURE__ */ C.createElement(C.Fragment, null, /* @__PURE__ */ C.createElement("path", { d: "M36,128a12,12,0,0,1,12-12h68a12,12,0,0,1,0,24H48A12,12,0,0,1,36,128ZM48,76h52a12,12,0,0,0,0-24H48a12,12,0,0,0,0,24ZM180,180H48a12,12,0,0,0,0,24H180a12,12,0,0,0,0-24ZM232.49,79.51l-40-40a12,12,0,0,0-17,0l-40,40a12,12,0,0,0,17,17L172,77v67a12,12,0,0,0,24,0V77l19.51,19.52a12,12,0,0,0,17-17Z" }))],
95
- ["duotone", /* @__PURE__ */ C.createElement(C.Fragment, null, /* @__PURE__ */ C.createElement("path", {
96
- d: "M224,88v88a16,16,0,0,1-16,16H48V64H200Z",
97
- opacity: "0.2"
98
- }), /* @__PURE__ */ C.createElement("path", { d: "M40,128a8,8,0,0,1,8-8h72a8,8,0,0,1,0,16H48A8,8,0,0,1,40,128Zm8-56h56a8,8,0,0,0,0-16H48a8,8,0,0,0,0,16ZM184,184H48a8,8,0,0,0,0,16H184a8,8,0,0,0,0-16ZM229.66,82.34l-40-40a8,8,0,0,0-11.32,0l-40,40a8,8,0,0,0,11.32,11.32L176,67.31V144a8,8,0,0,0,16,0V67.31l26.34,26.35a8,8,0,0,0,11.32-11.32Z" }))],
99
- ["fill", /* @__PURE__ */ C.createElement(C.Fragment, null, /* @__PURE__ */ C.createElement("path", { d: "M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM72,72h40a8,8,0,0,1,0,16H72a8,8,0,0,1,0-16Zm0,48h48a8,8,0,0,1,0,16H72a8,8,0,0,1,0-16Zm96,64H72a8,8,0,0,1,0-16h96a8,8,0,0,1,0,16Zm29.66-82.34a8,8,0,0,1-11.32,0L176,91.31V136a8,8,0,0,1-16,0V91.31l-10.34,10.35a8,8,0,0,1-11.32-11.32l24-24a8,8,0,0,1,11.32,0l24,24A8,8,0,0,1,197.66,101.66Z" }))],
100
- ["light", /* @__PURE__ */ C.createElement(C.Fragment, null, /* @__PURE__ */ C.createElement("path", { d: "M42,128a6,6,0,0,1,6-6h72a6,6,0,0,1,0,12H48A6,6,0,0,1,42,128Zm6-58h56a6,6,0,0,0,0-12H48a6,6,0,0,0,0,12ZM184,186H48a6,6,0,0,0,0,12H184a6,6,0,0,0,0-12ZM228.24,83.76l-40-40a6,6,0,0,0-8.48,0l-40,40a6,6,0,0,0,8.48,8.48L178,62.49V144a6,6,0,0,0,12,0V62.49l29.76,29.75a6,6,0,0,0,8.48-8.48Z" }))],
101
- ["regular", /* @__PURE__ */ C.createElement(C.Fragment, null, /* @__PURE__ */ C.createElement("path", { d: "M40,128a8,8,0,0,1,8-8h72a8,8,0,0,1,0,16H48A8,8,0,0,1,40,128Zm8-56h56a8,8,0,0,0,0-16H48a8,8,0,0,0,0,16ZM184,184H48a8,8,0,0,0,0,16H184a8,8,0,0,0,0-16ZM229.66,82.34l-40-40a8,8,0,0,0-11.32,0l-40,40a8,8,0,0,0,11.32,11.32L176,67.31V144a8,8,0,0,0,16,0V67.31l26.34,26.35a8,8,0,0,0,11.32-11.32Z" }))],
102
- ["thin", /* @__PURE__ */ C.createElement(C.Fragment, null, /* @__PURE__ */ C.createElement("path", { d: "M44,128a4,4,0,0,1,4-4h72a4,4,0,0,1,0,8H48A4,4,0,0,1,44,128Zm4-60h56a4,4,0,0,0,0-8H48a4,4,0,0,0,0,8ZM184,188H48a4,4,0,0,0,0,8H184a4,4,0,0,0,0-8ZM226.83,85.17l-40-40a4,4,0,0,0-5.66,0l-40,40a4,4,0,0,0,5.66,5.66L180,57.66V144a4,4,0,0,0,8,0V57.66l33.17,33.17a4,4,0,1,0,5.66-5.66Z" }))]
103
- ]), xe = /* @__PURE__ */ new Map([
104
- ["bold", /* @__PURE__ */ C.createElement(C.Fragment, null, /* @__PURE__ */ C.createElement("path", { d: "M240,200a12,12,0,0,1-12,12H188a12,12,0,0,1,0-24h40A12,12,0,0,1,240,200ZM218,117.63,128,170.11,38.05,117.63A12,12,0,0,0,26,138.37l96,56a12,12,0,0,0,12.1,0l96-56A12,12,0,1,0,218,117.63ZM20,80a12,12,0,0,1,6-10.37l96-56a12.06,12.06,0,0,1,12.1,0l96,56a12,12,0,0,1,0,20.74l-96,56a12,12,0,0,1-12.1,0l-96-56A12,12,0,0,1,20,80Zm35.82,0L128,122.11,200.18,80,128,37.89ZM138,212.3,128,218.11,38.05,165.63A12,12,0,0,0,26,186.37l96,56a12,12,0,0,0,12.1,0l16-9.34A12,12,0,1,0,138,212.3Z" }))],
105
- ["duotone", /* @__PURE__ */ C.createElement(C.Fragment, null, /* @__PURE__ */ C.createElement("path", {
106
- d: "M224,80l-96,56L32,80l96-56Z",
107
- opacity: "0.2"
108
- }), /* @__PURE__ */ C.createElement("path", { d: "M240,200a8,8,0,0,1-8,8H184a8,8,0,0,1,0-16h48A8,8,0,0,1,240,200Zm-20-78.91-92,53.65L36,121.09A8,8,0,0,0,28,134.91l96,56a8,8,0,0,0,8.06,0l96-56A8,8,0,1,0,220,121.09ZM24,80a8,8,0,0,1,4-6.91l96-56a8,8,0,0,1,8.06,0l96,56a8,8,0,0,1,0,13.82l-96,56a8,8,0,0,1-8.06,0l-96-56A8,8,0,0,1,24,80Zm23.88,0L128,126.74,208.12,80,128,33.26ZM140,215.76l-12,7L36,169.09A8,8,0,0,0,28,182.91l96,56a8,8,0,0,0,8.06,0l16-9.33A8,8,0,1,0,140,215.76Z" }))],
109
- ["fill", /* @__PURE__ */ C.createElement(C.Fragment, null, /* @__PURE__ */ C.createElement("path", { d: "M230.91,124A8,8,0,0,1,228,134.91l-96,56a8,8,0,0,1-8.06,0l-96-56A8,8,0,0,1,36,121.09l92,53.65,92-53.65A8,8,0,0,1,230.91,124ZM28,86.91l96,56a8,8,0,0,0,8.06,0l96-56a8,8,0,0,0,0-13.82l-96-56a8,8,0,0,0-8.06,0l-96,56a8,8,0,0,0,0,13.82ZM232,192H184a8,8,0,0,0,0,16h48a8,8,0,0,0,0-16Zm-92,23.76-12,7L36,169.09A8,8,0,0,0,28,182.91l96,56a8,8,0,0,0,8.06,0l16-9.33A8,8,0,1,0,140,215.76Z" }))],
110
- ["light", /* @__PURE__ */ C.createElement(C.Fragment, null, /* @__PURE__ */ C.createElement("path", { d: "M238,200a6,6,0,0,1-6,6H184a6,6,0,0,1,0-12h48A6,6,0,0,1,238,200Zm-17-77.18-93,54.23L35,122.82a6,6,0,0,0-6,10.36l96,56a6,6,0,0,0,6,0l96-56a6,6,0,0,0-6-10.36ZM26,80a6,6,0,0,1,3-5.18l96-56a6,6,0,0,1,6,0l96,56a6,6,0,0,1,0,10.36l-96,56a6,6,0,0,1-6,0l-96-56A6,6,0,0,1,26,80Zm17.91,0L128,129.05,212.09,80,128,31ZM141,217.48l-13,7.57L35,170.82a6,6,0,0,0-6,10.36l96,56a6,6,0,0,0,6,0l16-9.33a6,6,0,0,0-6-10.37Z" }))],
111
- ["regular", /* @__PURE__ */ C.createElement(C.Fragment, null, /* @__PURE__ */ C.createElement("path", { d: "M230.91,124A8,8,0,0,1,228,134.91l-96,56a8,8,0,0,1-8.06,0l-96-56A8,8,0,0,1,36,121.09l92,53.65,92-53.65A8,8,0,0,1,230.91,124ZM24,80a8,8,0,0,1,4-6.91l96-56a8,8,0,0,1,8.06,0l96,56a8,8,0,0,1,0,13.82l-96,56a8,8,0,0,1-8.06,0l-96-56A8,8,0,0,1,24,80Zm23.88,0L128,126.74,208.12,80,128,33.26ZM232,192H184a8,8,0,0,0,0,16h48a8,8,0,0,0,0-16Zm-92,23.76-12,7L36,169.09A8,8,0,0,0,28,182.91l96,56a8,8,0,0,0,8.06,0l16-9.33A8,8,0,1,0,140,215.76Z" }))],
112
- ["thin", /* @__PURE__ */ C.createElement(C.Fragment, null, /* @__PURE__ */ C.createElement("path", { d: "M236,200a4,4,0,0,1-4,4H184a4,4,0,0,1,0-8h48A4,4,0,0,1,236,200Zm-14-75.46-94,54.83L34,124.54a4,4,0,0,0-4,6.92l96,56a4,4,0,0,0,4,0l96-56a4,4,0,1,0-4-6.92ZM28,80a4,4,0,0,1,2-3.46l96-56a4,4,0,0,1,4,0l96,56a4,4,0,0,1,0,6.92l-96,56a4,4,0,0,1-4,0l-96-56A4,4,0,0,1,28,80Zm11.94,0L128,131.37,216.06,80,128,28.63ZM142,219.21l-14,8.16L34,172.54a4,4,0,0,0-4,6.92l96,56a4,4,0,0,0,4,0l16-9.34a4,4,0,1,0-4-6.91Z" }))]
113
- ]), Se = /* @__PURE__ */ new Map([
114
- ["bold", /* @__PURE__ */ C.createElement(C.Fragment, null, /* @__PURE__ */ C.createElement("path", { d: "M216,48H180V36A28,28,0,0,0,152,8H104A28,28,0,0,0,76,36V48H40a12,12,0,0,0,0,24h4V208a20,20,0,0,0,20,20H192a20,20,0,0,0,20-20V72h4a12,12,0,0,0,0-24ZM100,36a4,4,0,0,1,4-4h48a4,4,0,0,1,4,4V48H100Zm88,168H68V72H188ZM116,104v64a12,12,0,0,1-24,0V104a12,12,0,0,1,24,0Zm48,0v64a12,12,0,0,1-24,0V104a12,12,0,0,1,24,0Z" }))],
115
- ["duotone", /* @__PURE__ */ C.createElement(C.Fragment, null, /* @__PURE__ */ C.createElement("path", {
116
- d: "M200,56V208a8,8,0,0,1-8,8H64a8,8,0,0,1-8-8V56Z",
117
- opacity: "0.2"
118
- }), /* @__PURE__ */ C.createElement("path", { d: "M216,48H176V40a24,24,0,0,0-24-24H104A24,24,0,0,0,80,40v8H40a8,8,0,0,0,0,16h8V208a16,16,0,0,0,16,16H192a16,16,0,0,0,16-16V64h8a8,8,0,0,0,0-16ZM96,40a8,8,0,0,1,8-8h48a8,8,0,0,1,8,8v8H96Zm96,168H64V64H192ZM112,104v64a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Zm48,0v64a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Z" }))],
119
- ["fill", /* @__PURE__ */ C.createElement(C.Fragment, null, /* @__PURE__ */ C.createElement("path", { d: "M216,48H176V40a24,24,0,0,0-24-24H104A24,24,0,0,0,80,40v8H40a8,8,0,0,0,0,16h8V208a16,16,0,0,0,16,16H192a16,16,0,0,0,16-16V64h8a8,8,0,0,0,0-16ZM112,168a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Zm48,0a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Zm0-120H96V40a8,8,0,0,1,8-8h48a8,8,0,0,1,8,8Z" }))],
120
- ["light", /* @__PURE__ */ C.createElement(C.Fragment, null, /* @__PURE__ */ C.createElement("path", { d: "M216,50H174V40a22,22,0,0,0-22-22H104A22,22,0,0,0,82,40V50H40a6,6,0,0,0,0,12H50V208a14,14,0,0,0,14,14H192a14,14,0,0,0,14-14V62h10a6,6,0,0,0,0-12ZM94,40a10,10,0,0,1,10-10h48a10,10,0,0,1,10,10V50H94ZM194,208a2,2,0,0,1-2,2H64a2,2,0,0,1-2-2V62H194ZM110,104v64a6,6,0,0,1-12,0V104a6,6,0,0,1,12,0Zm48,0v64a6,6,0,0,1-12,0V104a6,6,0,0,1,12,0Z" }))],
121
- ["regular", /* @__PURE__ */ C.createElement(C.Fragment, null, /* @__PURE__ */ C.createElement("path", { d: "M216,48H176V40a24,24,0,0,0-24-24H104A24,24,0,0,0,80,40v8H40a8,8,0,0,0,0,16h8V208a16,16,0,0,0,16,16H192a16,16,0,0,0,16-16V64h8a8,8,0,0,0,0-16ZM96,40a8,8,0,0,1,8-8h48a8,8,0,0,1,8,8v8H96Zm96,168H64V64H192ZM112,104v64a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Zm48,0v64a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Z" }))],
122
- ["thin", /* @__PURE__ */ C.createElement(C.Fragment, null, /* @__PURE__ */ C.createElement("path", { d: "M216,52H172V40a20,20,0,0,0-20-20H104A20,20,0,0,0,84,40V52H40a4,4,0,0,0,0,8H52V208a12,12,0,0,0,12,12H192a12,12,0,0,0,12-12V60h12a4,4,0,0,0,0-8ZM92,40a12,12,0,0,1,12-12h48a12,12,0,0,1,12,12V52H92ZM196,208a4,4,0,0,1-4,4H64a4,4,0,0,1-4-4V60H196ZM108,104v64a4,4,0,0,1-8,0V104a4,4,0,0,1,8,0Zm48,0v64a4,4,0,0,1-8,0V104a4,4,0,0,1,8,0Z" }))]
123
- ]), F = C.forwardRef((e, t) => /* @__PURE__ */ C.createElement(d, {
124
- ref: t,
125
- ...e,
126
- weights: pe
127
- }));
128
- F.displayName = "CaretUpDownIcon";
129
- //#endregion
130
- //#region ../../node_modules/.pnpm/@phosphor-icons+react@2.1.10_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/@phosphor-icons/react/dist/csr/DotsSixVertical.es.js
131
- var Ce = C.forwardRef((e, t) => /* @__PURE__ */ C.createElement(d, {
132
- ref: t,
133
- ...e,
134
- weights: me
135
- }));
136
- Ce.displayName = "DotsSixVerticalIcon";
137
- //#endregion
138
- //#region ../../node_modules/.pnpm/@phosphor-icons+react@2.1.10_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/@phosphor-icons/react/dist/csr/Funnel.es.js
139
- var we = C.forwardRef((e, t) => /* @__PURE__ */ C.createElement(d, {
140
- ref: t,
141
- ...e,
142
- weights: he
143
- }));
144
- we.displayName = "FunnelIcon";
145
- //#endregion
146
- //#region ../../node_modules/.pnpm/@phosphor-icons+react@2.1.10_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/@phosphor-icons/react/dist/csr/MagnifyingGlass.es.js
147
- var Te = C.forwardRef((e, t) => /* @__PURE__ */ C.createElement(d, {
148
- ref: t,
149
- ...e,
150
- weights: ge
151
- }));
152
- Te.displayName = "MagnifyingGlassIcon";
153
- //#endregion
154
- //#region ../../node_modules/.pnpm/@phosphor-icons+react@2.1.10_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/@phosphor-icons/react/dist/csr/MagnifyingGlassMinus.es.js
155
- var Ee = C.forwardRef((e, t) => /* @__PURE__ */ C.createElement(d, {
156
- ref: t,
157
- ...e,
158
- weights: _e
159
- }));
160
- Ee.displayName = "MagnifyingGlassMinusIcon";
161
- //#endregion
162
- //#region ../../node_modules/.pnpm/@phosphor-icons+react@2.1.10_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/@phosphor-icons/react/dist/csr/Plus.es.js
163
- var I = C.forwardRef((e, t) => /* @__PURE__ */ C.createElement(d, {
164
- ref: t,
165
- ...e,
166
- weights: ve
167
- }));
168
- I.displayName = "PlusIcon";
169
- //#endregion
170
- //#region ../../node_modules/.pnpm/@phosphor-icons+react@2.1.10_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/@phosphor-icons/react/dist/csr/SortAscending.es.js
171
- var De = C.forwardRef((e, t) => /* @__PURE__ */ C.createElement(d, {
172
- ref: t,
173
- ...e,
174
- weights: ye
175
- }));
176
- De.displayName = "SortAscendingIcon";
177
- //#endregion
178
- //#region ../../node_modules/.pnpm/@phosphor-icons+react@2.1.10_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/@phosphor-icons/react/dist/csr/SortDescending.es.js
179
- var Oe = C.forwardRef((e, t) => /* @__PURE__ */ C.createElement(d, {
180
- ref: t,
181
- ...e,
182
- weights: be
183
- }));
184
- Oe.displayName = "SortDescendingIcon";
185
- //#endregion
186
- //#region ../../node_modules/.pnpm/@phosphor-icons+react@2.1.10_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/@phosphor-icons/react/dist/csr/StackMinus.es.js
187
- var ke = C.forwardRef((e, t) => /* @__PURE__ */ C.createElement(d, {
188
- ref: t,
189
- ...e,
190
- weights: xe
191
- }));
192
- ke.displayName = "StackMinusIcon";
193
- //#endregion
194
- //#region ../../node_modules/.pnpm/@phosphor-icons+react@2.1.10_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/@phosphor-icons/react/dist/csr/Trash.es.js
195
- var L = C.forwardRef((e, t) => /* @__PURE__ */ C.createElement(d, {
196
- ref: t,
197
- ...e,
198
- weights: Se
199
- }));
200
- L.displayName = "TrashIcon";
201
- //#endregion
202
- //#region ../../node_modules/.pnpm/motion-dom@12.40.0/node_modules/motion-dom/dist/es/utils/transform.mjs
203
- function Ae(...e) {
204
- let t = !Array.isArray(e[0]), n = t ? 0 : -1, r = e[0 + n], i = e[1 + n], a = e[2 + n], o = e[3 + n], s = re(i, a, o);
205
- return t ? s(r) : s;
206
- }
207
- //#endregion
208
- //#region ../../node_modules/.pnpm/motion-dom@12.40.0/node_modules/motion-dom/dist/es/projection/node/group.mjs
209
- var je = (e) => !e.isLayoutDirty && e.willUpdate(!1);
210
- function Me() {
211
- let e = /* @__PURE__ */ new Set(), t = /* @__PURE__ */ new WeakMap(), n = () => e.forEach(je);
212
- return {
213
- add: (r) => {
214
- e.add(r), t.set(r, r.addEventListener("willUpdate", n));
215
- },
216
- remove: (r) => {
217
- e.delete(r);
218
- let i = t.get(r);
219
- i && (i(), t.delete(r)), n();
220
- },
221
- dirty: n
222
- };
223
- }
224
- //#endregion
225
- //#region ../../node_modules/.pnpm/framer-motion@12.40.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/context/DeprecatedLayoutGroupContext.mjs
226
- var Ne = E(null);
227
- //#endregion
228
- //#region ../../node_modules/.pnpm/framer-motion@12.40.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/utils/use-is-mounted.mjs
229
- function Pe() {
230
- let e = j(!1);
231
- return t(() => (e.current = !0, () => {
232
- e.current = !1;
233
- }), []), e;
234
- }
235
- //#endregion
236
- //#region ../../node_modules/.pnpm/framer-motion@12.40.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/utils/use-force-update.mjs
237
- function Fe() {
238
- let e = Pe(), [t, n] = M(0), r = D(() => {
239
- e.current && n(t + 1);
240
- }, [t]);
241
- return [D(() => ae.postRender(r), [r]), t];
242
- }
243
- //#endregion
244
- //#region ../../node_modules/.pnpm/framer-motion@12.40.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/components/LayoutGroup/index.mjs
245
- var Ie = (e) => e === !0, Le = (e) => Ie(e === !0) || e === "id", Re = ({ children: t, id: n, inherit: r = !0 }) => {
246
- let i = O(e), a = O(Ne), [o, s] = Fe(), c = j(null), l = i.id || a;
247
- c.current === null && (Le(r) && l && (n = n ? l + "-" + n : l), c.current = {
248
- id: n,
249
- group: Ie(r) && i.group || Me()
250
- });
251
- let u = A(() => ({
252
- ...c.current,
253
- forceRender: o
254
- }), [s]);
255
- return N(e.Provider, {
256
- value: u,
257
- children: t
258
- });
259
- };
260
- //#endregion
261
- //#region ../../node_modules/.pnpm/framer-motion@12.40.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/value/use-combine-values.mjs
262
- function ze(e, n) {
263
- let r = x(n()), i = () => r.set(n());
264
- return i(), t(() => {
265
- let t = () => ae.preRender(i, !1, !0), n = e.map((e) => e.on("change", t));
266
- return () => {
267
- n.forEach((e) => e()), ne(i);
268
- };
269
- }), r;
270
- }
271
- //#endregion
272
- //#region ../../node_modules/.pnpm/framer-motion@12.40.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/value/use-computed.mjs
273
- function Be(e) {
274
- y.current = [], e();
275
- let t = ze(y.current, e);
276
- return y.current = void 0, t;
277
- }
278
- //#endregion
279
- //#region ../../node_modules/.pnpm/framer-motion@12.40.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/value/use-transform.mjs
280
- function Ve(e, t, n, r) {
281
- if (typeof e == "function") return Be(e);
282
- if (n !== void 0 && !Array.isArray(n) && typeof t != "function") return Ue(e, t, n, r);
283
- let i = typeof t == "function" ? t : Ae(t, n, r), a = Array.isArray(e) ? He(e, i) : He([e], ([e]) => i(e)), o = Array.isArray(e) ? void 0 : e.accelerate;
284
- return o && !o.isTransformed && typeof t != "function" && Array.isArray(n) && r?.clamp !== !1 && (a.accelerate = {
285
- ...o,
286
- times: t,
287
- keyframes: n,
288
- isTransformed: !0,
289
- ...r?.ease ? { ease: r.ease } : {}
290
- }), a;
291
- }
292
- function He(e, t) {
293
- let n = b(() => []);
294
- return ze(e, () => {
295
- n.length = 0;
296
- let r = e.length;
297
- for (let t = 0; t < r; t++) n[t] = e[t].get();
298
- return t(n);
299
- });
300
- }
301
- function Ue(e, t, n, r) {
302
- let i = b(() => Object.keys(n)), a = b(() => ({}));
303
- for (let o of i) a[o] = Ve(e, t, n[o], r);
304
- return a;
305
- }
306
- //#endregion
307
- //#region ../../node_modules/.pnpm/framer-motion@12.40.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/gestures/drag/use-drag-controls.mjs
308
- var We = class {
309
- constructor() {
310
- this.componentControls = /* @__PURE__ */ new Set();
311
- }
312
- subscribe(e) {
313
- return this.componentControls.add(e), () => this.componentControls.delete(e);
314
- }
315
- start(e, t) {
316
- this.componentControls.forEach((n) => {
317
- n.start(e.nativeEvent || e, t);
318
- });
319
- }
320
- cancel() {
321
- this.componentControls.forEach((e) => {
322
- e.cancel();
323
- });
324
- }
325
- stop() {
326
- this.componentControls.forEach((e) => {
327
- e.stop();
328
- });
329
- }
330
- }, Ge = () => new We();
331
- function Ke() {
332
- return b(Ge);
333
- }
334
- //#endregion
335
- //#region ../../node_modules/.pnpm/framer-motion@12.40.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/context/ReorderContext.mjs
336
- var qe = E(null);
337
- //#endregion
338
- //#region ../../node_modules/.pnpm/framer-motion@12.40.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/components/Reorder/utils/check-reorder.mjs
339
- function Je(e, t, n, r) {
340
- if (!r) return e;
341
- let i = e.findIndex((e) => e.value === t);
342
- if (i === -1) return e;
343
- let a = r > 0 ? 1 : -1, o = e[i + a];
344
- if (!o) return e;
345
- let s = e[i], c = o.layout, l = oe(c.min, c.max, .5);
346
- return a === 1 && s.layout.max + n > l || a === -1 && s.layout.min + n < l ? te(e, i, i + a) : e;
347
- }
348
- //#endregion
349
- //#region ../../node_modules/.pnpm/framer-motion@12.40.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/components/Reorder/Group.mjs
350
- function Ye({ children: e, as: t = "ul", axis: n = "y", onReorder: r, values: a, ...o }, s) {
351
- let c = b(() => i[t]), l = [], u = j(!1), d = j(null);
352
- ie(!!a, "Reorder.Group must be provided a values prop", "reorder-values");
353
- let f = {
354
- axis: n,
355
- groupRef: d,
356
- registerItem: (e, t) => {
357
- let r = l.findIndex((t) => e === t.value);
358
- r === -1 ? l.push({
359
- value: e,
360
- layout: t[n]
361
- }) : l[r].layout = t[n], l.sort(Ze);
362
- },
363
- updateOrder: (e, t, n) => {
364
- if (u.current) return;
365
- let i = Je(l, e, t, n);
366
- if (l !== i) {
367
- u.current = !0;
368
- let e = [...a];
369
- for (let t = 0; t < i.length; t++) if (l[t].value !== i[t].value) {
370
- let n = a.indexOf(l[t].value), r = a.indexOf(i[t].value);
371
- n !== -1 && r !== -1 && ([e[n], e[r]] = [e[r], e[n]]);
372
- break;
373
- }
374
- r(e);
375
- }
376
- }
377
- };
378
- k(() => {
379
- u.current = !1;
380
- });
381
- let p = (e) => {
382
- d.current = e, typeof s == "function" ? s(e) : s && (s.current = e);
383
- }, m = {
384
- overflowAnchor: "none",
385
- ...o.style
386
- };
387
- return N(c, {
388
- ...o,
389
- style: m,
390
- ref: p,
391
- ignoreStrict: !0,
392
- children: N(qe.Provider, {
393
- value: f,
394
- children: e
395
- })
396
- });
397
- }
398
- var Xe = /* @__PURE__ */ de(Ye);
399
- function Ze(e, t) {
400
- return e.layout.min - t.layout.min;
401
- }
402
- //#endregion
403
- //#region ../../node_modules/.pnpm/framer-motion@12.40.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/components/Reorder/utils/auto-scroll.mjs
404
- var R = 50, Qe = 25, $e = new Set(["auto", "scroll"]), z = /* @__PURE__ */ new WeakMap(), B = /* @__PURE__ */ new WeakMap(), V = null;
405
- function et() {
406
- if (V) {
407
- let e = H(V, "y");
408
- e && (B.delete(e), z.delete(e));
409
- let t = H(V, "x");
410
- t && t !== e && (B.delete(t), z.delete(t)), V = null;
411
- }
412
- }
413
- function tt(e, t) {
414
- let n = getComputedStyle(e), r = t === "x" ? n.overflowX : n.overflowY, i = e === document.body || e === document.documentElement;
415
- return $e.has(r) || i;
416
- }
417
- function H(e, t) {
418
- let n = e?.parentElement;
419
- for (; n;) {
420
- if (tt(n, t)) return n;
421
- n = n.parentElement;
422
- }
423
- return null;
424
- }
425
- function nt(e, t, n) {
426
- let r = t.getBoundingClientRect(), i = n === "x" ? Math.max(0, r.left) : Math.max(0, r.top), a = n === "x" ? Math.min(window.innerWidth, r.right) : Math.min(window.innerHeight, r.bottom), o = e - i, s = a - e;
427
- if (o < R) {
428
- let e = 1 - o / R;
429
- return {
430
- amount: -25 * e * e,
431
- edge: "start"
432
- };
433
- } else if (s < R) {
434
- let e = 1 - s / R;
435
- return {
436
- amount: Qe * e * e,
437
- edge: "end"
438
- };
439
- }
440
- return {
441
- amount: 0,
442
- edge: null
443
- };
444
- }
445
- function rt(e, t, n, r) {
446
- if (!e) return;
447
- V = e;
448
- let i = H(e, n);
449
- if (!i) return;
450
- let { amount: a, edge: o } = nt(t - (n === "x" ? window.scrollX : window.scrollY), i, n);
451
- if (o === null) {
452
- B.delete(i), z.delete(i);
453
- return;
454
- }
455
- let s = B.get(i), c = i === document.body || i === document.documentElement;
456
- if (s !== o) {
457
- if (!(o === "start" && r < 0 || o === "end" && r > 0)) return;
458
- B.set(i, o);
459
- let e = n === "x" ? i.scrollWidth - (c ? window.innerWidth : i.clientWidth) : i.scrollHeight - (c ? window.innerHeight : i.clientHeight);
460
- z.set(i, e);
461
- }
462
- if (a > 0) {
463
- let e = z.get(i);
464
- if ((n === "x" ? c ? window.scrollX : i.scrollLeft : c ? window.scrollY : i.scrollTop) >= e) return;
465
- }
466
- n === "x" ? c ? window.scrollBy({ left: a }) : i.scrollLeft += a : c ? window.scrollBy({ top: a }) : i.scrollTop += a;
467
- }
468
- //#endregion
469
- //#region ../../node_modules/.pnpm/framer-motion@12.40.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/components/Reorder/Item.mjs
470
- function it(e, t = 0) {
471
- return ee(e) ? e : x(t);
472
- }
473
- function at({ children: e, style: t = {}, value: n, as: r = "li", onDrag: a, onDragEnd: o, layout: s = !0, ...c }, l) {
474
- let u = b(() => i[r]), d = O(qe), f = {
475
- x: it(t.x),
476
- y: it(t.y)
477
- }, p = Ve([f.x, f.y], ([e, t]) => e || t ? 1 : "unset");
478
- ie(!!d, "Reorder.Item must be a child of Reorder.Group", "reorder-item-child");
479
- let { axis: m, registerItem: h, updateOrder: g, groupRef: _ } = d;
480
- return N(u, {
481
- drag: m,
482
- ...c,
483
- dragSnapToOrigin: !0,
484
- style: {
485
- ...t,
486
- x: f.x,
487
- y: f.y,
488
- zIndex: p
489
- },
490
- layout: s,
491
- onDrag: (e, t) => {
492
- let { velocity: r, point: i } = t;
493
- g(n, f[m].get(), r[m]), rt(_.current, i[m], m, r[m]), a && a(e, t);
494
- },
495
- onDragEnd: (e, t) => {
496
- et(), o && o(e, t);
497
- },
498
- onLayoutMeasure: (e) => {
499
- h(n, e);
500
- },
501
- ref: l,
502
- ignoreStrict: !0,
503
- children: e
504
- });
505
- }
506
- var ot = /* @__PURE__ */ de(at), st = Object.defineProperty, ct = Object.getOwnPropertySymbols, lt = Object.prototype.hasOwnProperty, ut = Object.prototype.propertyIsEnumerable, dt = (e, t, n) => t in e ? st(e, t, {
507
- enumerable: !0,
508
- configurable: !0,
509
- writable: !0,
510
- value: n
511
- }) : e[t] = n, ft = (e, t) => {
512
- for (var n in t ||= {}) lt.call(t, n) && dt(e, n, t[n]);
513
- if (ct) for (var n of ct(t)) ut.call(t, n) && dt(e, n, t[n]);
514
- return e;
515
- }, U = (e, t) => {
516
- let n = e.length;
517
- for (let r = 0; r < n; r++) if (t(e[r], r, e)) return !0;
518
- return !1;
519
- }, pt = (e, t, n, r) => J(U, e, t, n, r), W = (e) => typeof e == "object", G = (e, t) => {
520
- if (e === t) return !0;
521
- if (e instanceof Date && t instanceof Date) return e.getTime() === t.getTime();
522
- if (!e || !t || !W(e) && !W(t)) return e === t;
523
- if (e.prototype !== t.prototype) return !1;
524
- let n = Object.keys(e);
525
- return n.length === Object.keys(t).length ? n.every((n) => G(e[n], t[n])) : !1;
526
- }, mt = (e, t) => (W(e) || Array.isArray(e)) && t ? e[t] : e, ht = (e) => (t, n) => t[e] === n[e] ? 0 : t[e] > n[e] ? 1 : -1, K = (e) => /[0-9.]+/.test(e), gt = (e) => ["string", "number"].includes(typeof e), _t = (e) => e == null || e?.length === 0 || e === "", vt = {
527
- eq: G,
528
- is: Object.is,
529
- "!=": (e, t) => e != t,
530
- "!==": (e, t) => e !== t,
531
- "<": (e, t) => e < t,
532
- "<=": (e, t) => e <= t,
533
- "==": (e, t) => e == t,
534
- "===": (e, t) => e === t,
535
- ">": (e, t) => e > t,
536
- ">=": (e, t) => e >= t,
537
- includes: (e, t) => `${e}`.includes(t),
538
- notIncludes: (e, t) => !`${e}`.includes(t),
539
- startsWith: (e, t) => `${e}`.startsWith(t),
540
- endsWith: (e, t) => `${e}`.endsWith(t),
541
- like: (e, t) => RegExp(`.*${t}.*`, "gi").test(`${e}`),
542
- alphabetical: (e, t) => e.toString().localeCompare(t.toString()),
543
- empty: _t,
544
- notEmpty: (e) => !_t(e),
545
- in: (e, t) => U(t, (t) => G(e, t)),
546
- notIn: (e, t) => xt(t, (t) => !G(e, t))
547
- }, yt = (e) => {
548
- if (e in vt) return vt[e];
549
- throw Error("Linq - Symbol not found");
550
- }, q = (e, t) => {
551
- let n = [], r = e.length;
552
- for (let i = 0; i < r; i++) t(e[i], i, e) && n.push(e[i]);
553
- return n;
554
- }, J = (e, t, n, r, i) => {
555
- if (typeof n == "function") return e(t, n);
556
- let a = yt(r);
557
- return n && r && i !== void 0 ? e(t, (e) => a(e[n], i)) : e(t, (e) => a(e, i));
558
- }, bt = (e, t, n, r) => J(q, e, t, n, r), xt = (e, t) => {
559
- for (let n = 0; n < e.length; n++) if (!t(e[n], n, e)) return !1;
560
- return !0;
561
- }, St = (e, t, n, r) => J(xt, e, t, n, r), Ct = (e) => {
562
- if (e === null) return null;
563
- let t = ft({}, e);
564
- return Object.keys(t).forEach((n) => t[n] = W(e[n]) ? Ct(e[n]) : e[n]), Array.isArray(e) && e.length ? (t.length = e.length) && Array.from(t) : Array.isArray(e) ? Array.from(e) : t;
565
- }, wt = (e, t) => {
566
- if (W(t)) {
567
- for (let n = 0; n < e.length; n++) {
568
- let r = e[n];
569
- if (G(t, r)) return !0;
570
- }
571
- return !1;
572
- }
573
- for (let n = 0; n < e.length; n++) {
574
- let r = e[n];
575
- if (G(t, r)) return !0;
576
- }
577
- return !1;
578
- }, Tt = (e, t) => {
579
- let n = new Map(e.map((e) => [e[t], e]));
580
- return Object.fromEntries(n.entries());
581
- }, Et = (e) => q(e, (e, t, n) => W(e) ? t === n.findIndex((t) => G(t, e)) : t === n.indexOf(e)), Dt = (e, t) => {
582
- let n = e.length;
583
- for (let r = 0; r < n; r++) if (t(e[r], r, e)) return e[r];
584
- }, Ot = (e, t) => {
585
- let n = /* @__PURE__ */ new Map();
586
- return e.forEach((e) => {
587
- let r = t(e), i = n.get(r) || [];
588
- i.push(e), n.set(r, i);
589
- }), Object.fromEntries(n.entries());
590
- }, kt = (e, t) => Ot(e, (e) => e[t]), At = (e, t) => {
591
- let n = [], r = 0, i = e.length;
592
- for (; r < i; r++) {
593
- let i = t(e[r], r, e);
594
- n.push(i);
595
- }
596
- return n;
597
- }, jt = (e, t) => {
598
- let n = Number.parseInt(e, 10), r = Number.parseInt(t, 10);
599
- return n > r ? [r, n] : [n, r];
600
- }, Mt = (e, t, n = 1) => {
601
- let r = [], i = e.charCodeAt(0), a = t.charCodeAt(0);
602
- for (; i <= a; i += n) r.push(String.fromCharCode(i));
603
- return K(e) && K(t) ? r.map((e) => Number.parseInt(e)) : r;
604
- }, Y = (e, t, n = 1) => {
605
- let r = Math.abs(n);
606
- if ((e.length > 1 || t.length > 1) && K(e) && K(t)) {
607
- let n = [], [i, a] = jt(e, t);
608
- for (let e = i; e <= a; e += r) n.push(e);
609
- return n;
610
- }
611
- return Mt(e, t, r);
612
- }, Nt = (e, t, n = 1) => {
613
- if (t === void 0) {
614
- let [t, n, r] = e.split("..");
615
- return r === void 0 ? Y(t, n, 1) : Y(t, r, Number.parseInt(n, 10));
616
- }
617
- return gt(e) && gt(t) ? Y(`${e}`, `${t}`, n) : Array.from({ length: e }, (e, n) => n * Math.abs(t));
618
- }, Pt = (e, t, n) => {
619
- let r = t, i = n.length;
620
- for (let t = 0; t < i; t++) {
621
- let i = n[t];
622
- r = e(r, i, t, n);
623
- }
624
- return r;
625
- }, Ft = (e) => {
626
- let t = Array.from(e.values()), n = null, r = null, i = t.length;
627
- for (n = 0; n < i / 2; n += 1) {
628
- r = i - 1 - n;
629
- let e = t[n];
630
- t[n] = t[r], t[r] = e;
631
- }
632
- return t;
633
- }, It = (e, t) => {
634
- if (typeof t == "number") return e.slice(t);
635
- let n = e.length;
636
- for (let r = 0; r < n; r++) {
637
- let n = e[r];
638
- if (t(n, r, e)) return e.slice(r);
639
- }
640
- return e.slice(0);
641
- }, Lt = (e, t, n, r) => J(It, e, t, n, r), Rt = (e, t) => {
642
- let n = [...e];
643
- return t === void 0 ? n.sort() : typeof t == "function" ? n.toSorted(t) : n.toSorted(ht(t));
644
- }, zt = /* @__PURE__ */ ((e) => (e.Asc = "asc", e.Desc = "desc", e))(zt || {}), Bt = (e) => (t, n) => e.reduce((e, r) => {
645
- let i = r.type === "desc" ? -1 : 1, a = r.key, o = t[a] > n[a] ? i : t[a] < n[a] ? -i : 0;
646
- return e === 0 ? o : e;
647
- }, 0), Vt = (e, t) => e.sort(Bt(t)), Ht = (e, t) => {
648
- if (t === void 0) return [...new Set(e).values()];
649
- let n = /* @__PURE__ */ new Set();
650
- return Array.isArray(t) ? [...new Set(t)] : q(e, (e) => {
651
- let r = t ? n.has(e[t]) : n.has(t);
652
- return t && (r || n.add(e[t])), !r;
653
- });
654
- }, Ut = class e {
655
- constructor(e = []) {
656
- this.array = e;
657
- }
658
- static Range(...e) {
659
- return Nt(...e);
660
- }
661
- static New(t) {
662
- return new e(t);
663
- }
664
- Where(e, t, n) {
665
- return this.array = bt(this.array, e, t, n), this;
666
- }
667
- Some(e, t, n) {
668
- return pt(this.array, e, t, n);
669
- }
670
- All(e, t, n) {
671
- return St(this.array, e, t, n);
672
- }
673
- Reverse() {
674
- return this.array = Ft(this.array), this;
675
- }
676
- Add(e) {
677
- return this.array = Array.isArray(e) ? this.array.concat(e) : this.array.concat([e]), this;
678
- }
679
- Prepend(e) {
680
- return this.array = Array.isArray(e) ? e.concat(this.array) : [e].concat(this.array), this;
681
- }
682
- Select(e) {
683
- return e === void 0 ? this.array : this.array.map(e);
684
- }
685
- Take(e, t) {
686
- return t === void 0 ? this.array = this.array.slice(e) : this.array = this.array.slice(e, Math.max(0, t)), this;
687
- }
688
- Head() {
689
- return this.array[0];
690
- }
691
- Tail() {
692
- return this.Skip(1);
693
- }
694
- Skip(e, t, n) {
695
- return this.array = Lt(this.array, e, t, n), this;
696
- }
697
- Distinct() {
698
- return this.array = Et(this.array), this;
699
- }
700
- First(e) {
701
- return e === void 0 ? this.array[0] : Dt(this.array, e) || null;
702
- }
703
- Last(e) {
704
- let t = this.array.length;
705
- if (e === void 0) return this.array[t - 1];
706
- for (let n = t; n !== 0; n--) if (e(this.array[n], n, this.array)) return this.array[n];
707
- }
708
- Sum(e) {
709
- return Pt(e === void 0 ? (e, t) => e + t : (t, n) => t + mt(n, e), 0, this.array);
710
- }
711
- Average(e) {
712
- return this.Sum(e) / this.array.length;
713
- }
714
- GroupBy(e) {
715
- return kt(this.array, e);
716
- }
717
- GroupWith(e) {
718
- return Ot(this.array, e);
719
- }
720
- Except(e) {
721
- return q(this.array, (t) => !wt(e, t));
722
- }
723
- Intersect(e) {
724
- return q(this.array, (t) => wt(e, t));
725
- }
726
- OrderBy(e, t) {
727
- let n;
728
- return n = e ? Rt(this.array, e) : this.array.toSorted(), this.array = t === "desc" ? Ft(n) : n, this;
729
- }
730
- Includes(e) {
731
- return U(this.array, (t) => G(t, e));
732
- }
733
- In(e) {
734
- let t = e.length;
735
- for (let n = 0; n < t; n++) {
736
- let t = e[n];
737
- if (this.Includes(t)) return !0;
738
- }
739
- return !1;
740
- }
741
- Reduce(e, t) {
742
- return Pt(e, t ?? this.array[0], this.array);
743
- }
744
- Empty() {
745
- return this.array.length === 0;
746
- }
747
- ToMap(e) {
748
- return new Map(At(this.array, (t) => [e, t]));
749
- }
750
- Zip(e, t) {
751
- return At(this.array, (n, r) => t(n, e[r]));
752
- }
753
- Count(e) {
754
- return e === void 0 ? this.array.length : q(this.array, e).length;
755
- }
756
- Get(e) {
757
- return this.array[e];
758
- }
759
- Clone() {
760
- return new e(Ct(this.array));
761
- }
762
- ToObject(e) {
763
- return Tt(this.array, e);
764
- }
765
- Sort(e) {
766
- return Array.isArray(e) ? Vt(this.array, e) : Rt(this.array, e);
767
- }
768
- Unique(e) {
769
- return Ht(this.array, e);
770
- }
771
- }, Wt = (e) => {
772
- let t = e.Icon ?? l, n = f();
773
- return /* @__PURE__ */ P("div", {
774
- className: "flex w-full flex-col items-center justify-center gap-empty-gap px-empty-px py-empty-py",
775
- children: [/* @__PURE__ */ N(t, {
776
- size: 64,
777
- className: "text-disabled"
778
- }), /* @__PURE__ */ N("p", {
779
- className: "text-disabled",
780
- children: e.message ?? n.emptyDataMessage
781
- })]
782
- });
783
- };
784
- //#endregion
785
- //#region src/components/table/pagination.tsx
786
- function Gt(e, t) {
787
- if (!e || !t) return [];
788
- let n = [1];
789
- if (e === 1 && t === 1) return n;
790
- e > 4 && n.push("-");
791
- let r = e - 2, i = e + 2;
792
- for (let e = r > 2 ? r : 2; e <= Math.min(t, i); e++) n.push(e);
793
- let a = t - 2;
794
- return i + 1 !== a && i + 1 < t && n.push("_"), i < t && (n.push(t - 2), n.push(t - 1), n.push(t)), Array.from(new Set(n));
795
- }
796
- var Kt = (e) => {
797
- let t = fe(), n = f(), r = A(() => Gt(e.current, e.pages), [e]), i = e.current < e.pages, a = e.asLink ?? "button";
798
- return /* @__PURE__ */ P("footer", {
799
- className: "text-typography-sm flex flex-wrap items-center justify-center gap-table-pag-gap border-t-muted p-table-pag-p lg:flex-nowrap lg:justify-between",
800
- children: [/* @__PURE__ */ N("p", { children: /* @__PURE__ */ N(n.tablePaginationFooter, {
801
- ...e,
802
- sizes: e.sizes,
803
- select: e.onChangeSize && Array.isArray(e.sizes) ? /* @__PURE__ */ P(T, { children: [
804
- /* @__PURE__ */ N("label", {
805
- htmlFor: t,
806
- children: n.tablePaginationSelectLabel
807
- }),
808
- /* @__PURE__ */ N("select", {
809
- id: t,
810
- value: e.size,
811
- className: "cursor-pointer bg-transparent",
812
- onChange: (t) => {
813
- e.onChangeSize?.(Number(t.target.value));
814
- },
815
- children: e.sizes.map((e) => /* @__PURE__ */ N("option", {
816
- value: e,
817
- children: e
818
- }, `pagination-opt-${e}`))
819
- }),
820
- " "
821
- ] }) : null
822
- }) }), /* @__PURE__ */ N("nav", { children: /* @__PURE__ */ P("ul", {
823
- className: "flex items-center gap-table-pag-items-gap",
824
- children: [
825
- e.current > 1 ? /* @__PURE__ */ N("li", { children: /* @__PURE__ */ N(s, {
826
- as: a,
827
- href: "previous",
828
- className: "",
829
- children: n.tablePaginationPrevious
830
- }) }) : null,
831
- r.map((t) => t === null ? null : /* @__PURE__ */ N(T, { children: typeof t == "string" ? /* @__PURE__ */ N("li", { children: "..." }) : /* @__PURE__ */ N("li", { children: /* @__PURE__ */ N(s, {
832
- href: t,
833
- as: a,
834
- className: `cursor-pointer border-b-2 px-table-pag-item-px py-table-pag-item-py proportional-nums transition-colors hover:border-primary-subtle hover:text-primary-subtle ${t === e.current ? "border-primary text-primary" : "border-transparent"}`,
835
- children: t
836
- }) }) }, `pagination-${t}`)),
837
- i ? /* @__PURE__ */ N("li", { children: /* @__PURE__ */ N(s, {
838
- as: a,
839
- href: "next",
840
- className: "",
841
- children: n.tablePaginationNext
842
- }) }) : null
843
- ]
844
- }) })]
845
- });
846
- }, qt = (e) => {
847
- let t = j(null), n = j(null), [r, i] = M("opacity-0"), a = r === "opacity-0";
848
- return /* @__PURE__ */ N("div", {
849
- ref: t,
850
- onMouseEnter: () => {
851
- let e = n.current, r = t.current;
852
- e !== null && r !== null && (r.style.left = `-${e.getBoundingClientRect().width + 4}px`), i("opacity-100");
853
- },
854
- onMouseLeave: () => i("opacity-0"),
855
- "data-component": "cell-aside",
856
- inert: a ? !0 : void 0,
857
- tabIndex: a ? -1 : void 0,
858
- className: `group-table-cell-aside absolute inset-0 top-0 flex h-full w-full items-stretch transition-opacity duration-300 ease-in-out ${r}`,
859
- children: /* @__PURE__ */ N("div", {
860
- ref: n,
861
- className: "isolate block",
862
- children: e.children
863
- })
864
- });
865
- }, Jt = (e, t, n) => {
866
- let r = n.cols, i = n.loading;
867
- return /* @__PURE__ */ N(T, { children: r.map((r, a) => {
868
- let s = `${a},${e}`, c = p(t, r.id), l = r.Element, u = r.cellProps?.className || "", d = a === 0 && n.Aside && i === !1, f = n.Aside;
869
- return /* @__PURE__ */ ue("td", {
870
- ...r.cellProps,
871
- role: "cell",
872
- "data-matrix": s,
873
- key: `accessor-${e}-${a}`,
874
- className: `typography group-table-cell flex border-collapse flex-col whitespace-pre-wrap border border-y border-b border-table-border p-table-cell-padding md:table-cell md:border-b-0 md:border-r md:border-l-transparent md:last:border-r-transparent ${u}`
875
- }, d ? /* @__PURE__ */ N(qt, { children: /* @__PURE__ */ N(f, {
876
- col: r,
877
- row: t,
878
- rowIndex: e
879
- }) }) : null, /* @__PURE__ */ N("span", {
880
- className: "text-typography-sm block font-bold leading-tight md:hidden",
881
- children: r.thead
882
- }), /* @__PURE__ */ N("span", {
883
- className: "relative",
884
- children: i ? le : l ? /* @__PURE__ */ N(T, { children: /* @__PURE__ */ N(l, {
885
- row: t,
886
- matrix: s,
887
- col: r,
888
- rowIndex: e,
889
- value: c
890
- }) }) : /* @__PURE__ */ N(T, { children: o.nil(c) ? "" : c })
891
- }));
892
- }) });
893
- }, Yt = /* @__PURE__ */ n(((e) => {
894
- Object.defineProperty(e, Symbol.toStringTag, { value: "Module" });
895
- var t = (e, t) => {
896
- try {
897
- Object.keys(e).forEach(t);
898
- } catch (e) {
899
- window.console.log(e);
900
- }
901
- }, n = (e) => e == null, r = (e) => {
902
- let t = typeof e;
903
- return t === "string" || t === "number" || t === "boolean" || n(e);
904
- }, i = (e, t) => {
905
- let n = t.getItem(e);
906
- try {
907
- return JSON.parse(n);
908
- } catch {
909
- return n ?? null;
910
- }
911
- }, a = (e) => Object.keys(e).reduce((t, n) => ({
912
- ...t,
913
- [n]: i(n, e)
914
- }), {}), o = (e) => e instanceof Date ? e : typeof e == "number" ? /* @__PURE__ */ new Date(/* @__PURE__ */ new Date() * 1 + e * 864e5) : e, s = "1969-12-31T23:59:59.000Z", c = () => document.cookie === "" ? {} : document.cookie.split("; ").map((e) => e.split("=")).reduce((e, t) => (e[decodeURIComponent(t[0].trim())] = decodeURIComponent(t[1].trim()), e), {}), l = /* @__PURE__ */ new Set(), u = () => {
915
- let e = c();
916
- l.forEach((t) => t(e));
917
- }, d = [
918
- {
919
- name: "expires",
920
- parse: (e) => `expires=${o(e.expires ?? s)}`
921
- },
922
- {
923
- name: "maxAge",
924
- parse: (e) => e.maxAge ? `max-age=${o(e.expires ?? s)}` : ""
925
- },
926
- {
927
- name: "path",
928
- parse: (e) => `path=${e.path ?? "/"}`
929
- },
930
- {
931
- name: "sameSite",
932
- parse: (e) => `samesite=${e.sameSite ?? "strict"}`
933
- },
934
- {
935
- name: "useSecure",
936
- parse: (e) => `${e.useSecure ?? !0 ? "secure" : ""}`
937
- },
938
- {
939
- name: "domain",
940
- parse: (e) => {
941
- let t = e.domain ?? "";
942
- return t === "" ? "" : `domain=${e.multiDomain ? "." : ""}${t}`;
943
- }
944
- },
945
- {
946
- name: "partitioned",
947
- parse: (e) => e.partitioned ? "Partitioned" : ""
948
- }
949
- ], f = {
950
- json: c,
951
- listener: (e) => (l.add(e), () => l.delete(e)),
952
- clearListeners: () => l.clear(),
953
- has: (e) => document.cookie.split(";").some((t) => t.trim().startsWith(`${e}=`)),
954
- deleteAll: () => {
955
- document.cookie.split(";").forEach((e) => {
956
- document.cookie = e.replace(/^ +/, "").replace(/=.*/, `=;expires=${(/* @__PURE__ */ new Date()).toUTCString()};path=/`);
957
- }), u();
958
- },
959
- get: (e) => {
960
- let t = f.json()[e];
961
- if (n(t)) return null;
962
- try {
963
- return JSON.parse(decodeURIComponent(t));
964
- } catch {
965
- return t;
966
- }
967
- },
968
- delete: (e) => {
969
- document.cookie = `${encodeURIComponent(e)}=;expires=${(/* @__PURE__ */ new Date()).toUTCString()}`, u();
970
- },
971
- set: (e, t, n = {}) => {
972
- let i = r(t) ? t : encodeURIComponent(JSON.stringify(t)), a = d.reduce((e, t) => {
973
- let r = t.parse(n);
974
- return r === "" ? e : e.concat(r);
975
- }, [`${encodeURIComponent(e)}=${i}`]).join(";");
976
- document.cookie = a, u();
977
- }
978
- }, p = (e) => {
979
- let r = /* @__PURE__ */ new Set(), o = (t) => {
980
- e().removeItem(t);
981
- let n = a(e());
982
- r.forEach((e) => e(n));
983
- };
984
- return {
985
- delete: o,
986
- listener: (e) => (r.add(e), () => r.delete(e)),
987
- clearListeners: () => r.clear(),
988
- json: (t = !1) => t ? a(e()) : e(),
989
- has: (t) => !n(e().getItem(t)),
990
- deleteAll: () => {
991
- t(e(), o), r.forEach((t) => t(e()));
992
- },
993
- get: (t) => i(t, e()),
994
- set: (t, n) => {
995
- e().setItem(t, JSON.stringify(n)), r.forEach((t) => t(e()));
996
- }
997
- };
998
- }, m = p(() => window.sessionStorage), h = p(() => window.localStorage);
999
- e.Cookie = f, e.LocalStorage = h, e.SessionStorage = m, e.createStorage = p;
1000
- })), Xt = Yt(), X = (e) => e.headerLabel ?? e.thead ?? e.id, Z = (e) => e.map((e) => ({
1001
- value: e.id,
1002
- label: e.thead ?? e.headerLabel ?? e.id
1003
- })), Q = /* @__PURE__ */ function(e) {
1004
- return e.Boolean = "boolean", e.Number = "number", e.Select = "select", e.Text = "text", e;
1005
- }({}), Zt = (e) => e.type === "number" ? e.valueAsNumber : e.value, Qt = (e) => {
1006
- let t = [];
1007
- return e({
1008
- add: (e, n, r) => t.push({
1009
- ...r,
1010
- id: e,
1011
- thead: n
1012
- }),
1013
- remove: (e) => t = t.filter((t) => t.id !== e),
1014
- getAll: () => Array.from(t),
1015
- filter: (e) => t = Array.from(t.filter(e))
1016
- }), t;
1017
- }, $t = {}, en = (e, t) => {
1018
- if (!Array.isArray(t)) return e;
1019
- let n = new Set(t.map((e) => e.id));
1020
- if (!e.every((e) => n.has(e.id))) return e;
1021
- let r = new Map(e.map((e) => [e.id, e]));
1022
- return t.map((t, n) => {
1023
- let i = r.get(t.id);
1024
- return i === void 0 ? e[n] : i;
1025
- });
1026
- }, tn = (e, t, n = $t) => {
1027
- let r = h() ? null : Xt.LocalStorage.get(`@components/table-${e}`) || null, [i, a] = se({
1028
- name: e,
1029
- groups: n.groups || r?.groups || [],
1030
- sorters: n.sorters || r?.sorters || [],
1031
- filters: n.filters || r?.filters || [],
1032
- cols: en(t, r?.cols)
1033
- }, (e) => {
1034
- let t = (t) => {
1035
- let n = e.state(), r = {
1036
- ...n,
1037
- ...t
1038
- };
1039
- return h() || Xt.LocalStorage.set(`@components/table-${n.name}`, r), r;
1040
- };
1041
- return t(e.state()), { set: (e) => t(e) };
1042
- });
1043
- return {
1044
- ...i,
1045
- ...a,
1046
- name: e
1047
- };
1048
- }, nn = (e) => {
1049
- let t = v(e), n = j(null);
1050
- return [n, D((e) => {
1051
- t.current(e), e.forEach((e) => {
1052
- let t = n.current.querySelector(`th[data-tableheader="${e.id}"]`);
1053
- t && (t.style.width = "auto");
1054
- });
1055
- }, [t])];
1056
- }, rn = () => h() ? void 0 : document.querySelector("[data-component=\"modal-body\"]"), an = (e) => (t, n) => e.reduce((e, r) => {
1057
- let i = r.type === "desc" ? -1 : 1, a = r.value, o = t[a] > n[a] ? i : t[a] < n[a] ? -i : 0;
1058
- return e === 0 ? o : e;
1059
- }, 0), on = (e, t) => (e.sort(an(t)), e), sn = (e, t, n) => ({
1060
- label: t,
1061
- id: m(),
1062
- type: n,
1063
- value: e.id
1064
- }), cn = (e) => {
1065
- let t = f(), n = {
1066
- asc: {
1067
- label: t.tableSortAsc,
1068
- value: "asc"
1069
- },
1070
- desc: {
1071
- label: t.tableSortDesc,
1072
- value: "desc"
1073
- }
1074
- }, r = [n.asc, n.desc], i = () => {
1075
- let t = e.cols[0];
1076
- t && e.set((e) => [...e, sn(t, n.asc.label, n.asc.value)]);
1077
- }, a = (t) => (n) => {
1078
- let r = n.target.value;
1079
- e.set((e) => e.map((e) => e.id === t ? {
1080
- ...e,
1081
- value: r
1082
- } : e));
1083
- }, o = (t) => (n) => {
1084
- let r = n.target.value;
1085
- e.set((e) => e.map((e) => e.id === t ? {
1086
- ...e,
1087
- type: r
1088
- } : e));
1089
- }, s = (t) => {
1090
- let n = t.currentTarget.dataset.id || "";
1091
- e.set((e) => e.filter((e) => e.id !== n));
1092
- };
1093
- return /* @__PURE__ */ N(T, { children: /* @__PURE__ */ N(S, {
1094
- title: t.tableSortDropdownTitle,
1095
- trigger: /* @__PURE__ */ P("span", {
1096
- className: "flex items-center gap-table-inline-gap-tight proportional-nums",
1097
- children: [
1098
- /* @__PURE__ */ N(F, { size: 14 }),
1099
- t.tableSortOrderByLabel,
1100
- " ",
1101
- e.sorters.length === 0 ? "" : ` (${e.sorters.length})`
1102
- ]
1103
- }),
1104
- children: /* @__PURE__ */ P("ul", {
1105
- className: "mt-table-groups-mt space-y-2",
1106
- children: [e.sorters.map((n) => /* @__PURE__ */ P("li", {
1107
- className: "flex flex-nowrap gap-3",
1108
- children: [
1109
- /* @__PURE__ */ N(_, {
1110
- options: e.options,
1111
- value: n.value,
1112
- onChange: a(n.id),
1113
- title: t.tableSortOrderInputTitle,
1114
- placeholder: t.tableSortOrderInputPlaceholder
1115
- }),
1116
- /* @__PURE__ */ N(_, {
1117
- onChange: o(n.id),
1118
- value: n.type,
1119
- options: r,
1120
- title: t.tableSortTypeInputTitle,
1121
- placeholder: t.tableSortTypeInputPlaceholder
1122
- }),
1123
- /* @__PURE__ */ N("button", {
1124
- className: "mt-table-groups-mt",
1125
- "data-id": n.id,
1126
- onClick: s,
1127
- children: /* @__PURE__ */ N(L, {
1128
- className: "text-danger",
1129
- size: 14
1130
- })
1131
- })
1132
- ]
1133
- }, `sorter-select-${n.id}`)), /* @__PURE__ */ N("li", { children: /* @__PURE__ */ P("button", {
1134
- type: "button",
1135
- onClick: i,
1136
- className: "flex items-center gap-table-inline-gap-tight text-primary",
1137
- children: [
1138
- /* @__PURE__ */ N(I, { size: 14 }),
1139
- " ",
1140
- t.tableSortAddButton
1141
- ]
1142
- }) })]
1143
- })
1144
- }) });
1145
- }, ln = (e) => {
1146
- let t = f(), [n, r] = M(() => {
1147
- let t = e.sorters.find((t) => t.value === e.col.id);
1148
- return t ? t.type : "undefined";
1149
- }), i = () => {
1150
- let t = n === "undefined" ? "asc" : n === "asc" ? "desc" : "undefined";
1151
- r(t), e.setSorters((n) => {
1152
- if (t === "undefined") return n.filter((t) => t.value !== e.col.id);
1153
- let r = n.findIndex((t) => t.value === e.col.id), i = sn(e.col, t, t);
1154
- return r === -1 ? [...n, i] : (n[r] = i, [...n]);
1155
- });
1156
- }, a = `${e.col.id}-sorter-id`, o = X(e.col);
1157
- return /* @__PURE__ */ P("button", {
1158
- "aria-labelledby": a,
1159
- className: "isolate flex items-center",
1160
- onClick: i,
1161
- type: "button",
1162
- children: [
1163
- /* @__PURE__ */ P("span", {
1164
- id: a,
1165
- className: "sr-only",
1166
- children: [
1167
- t.tableSortDropdownTitle,
1168
- " ",
1169
- o
1170
- ]
1171
- }),
1172
- n === "asc" ? /* @__PURE__ */ N(De, { size: 14 }) : null,
1173
- n === "desc" ? /* @__PURE__ */ N(Oe, { size: 14 }) : null,
1174
- n === "undefined" ? /* @__PURE__ */ N(F, { size: 14 }) : null
1175
- ]
1176
- });
1177
- }, un = E({}), dn = un.Provider, fn = () => O(un), pn = (e, t, n, r = {}) => {
1178
- let i = e.id, a = e.type ?? Q.Text, o = t[a] ?? [], s = n[o.find((e) => e["data-default"])?.value ?? o[0]?.value];
1179
- return {
1180
- id: m(),
1181
- operation: s,
1182
- label: X(e),
1183
- name: i,
1184
- type: a,
1185
- value: "",
1186
- ...r
1187
- };
1188
- }, mn = () => {
1189
- let e = f(), t = A(() => ({
1190
- contains: {
1191
- value: "contains",
1192
- label: e.tableFilterTypeContains,
1193
- symbol: "includes",
1194
- "data-default": "true"
1195
- },
1196
- is: {
1197
- value: "is",
1198
- label: e.tableFilterTypeIs,
1199
- symbol: "is"
1200
- },
1201
- isNot: {
1202
- value: "isNot",
1203
- label: e.tableFilterTypeIsNot,
1204
- symbol: "!=="
1205
- },
1206
- notContains: {
1207
- value: "notContains",
1208
- label: e.tableFilterTypeNotContains,
1209
- symbol: "notIncludes"
1210
- },
1211
- lessThan: {
1212
- value: "lessThan",
1213
- label: e.tableFilterTypeLessThan,
1214
- symbol: "<="
1215
- },
1216
- greaterThan: {
1217
- value: "greaterThan",
1218
- label: e.tableFilterTypeGreaterThan,
1219
- symbol: ">="
1220
- },
1221
- startsWith: {
1222
- value: "startsWith",
1223
- label: e.tableFilterTypeStartsWith,
1224
- symbol: "startsWith"
1225
- },
1226
- endsWith: {
1227
- value: "endsWith",
1228
- label: e.tableFilterTypeEndsWith,
1229
- symbol: "endsWith"
1230
- }
1231
- }), [e]);
1232
- return {
1233
- options: A(() => ({
1234
- [Q.Text]: [
1235
- t.is,
1236
- t.isNot,
1237
- t.contains,
1238
- t.notContains,
1239
- t.startsWith,
1240
- t.endsWith
1241
- ],
1242
- [Q.Boolean]: [t.is, t.isNot],
1243
- [Q.Number]: [
1244
- t.is,
1245
- t.isNot,
1246
- t.greaterThan,
1247
- t.lessThan
1248
- ]
1249
- }), [t]),
1250
- operations: t
1251
- };
1252
- }, hn = (e) => {
1253
- let t = f(), n = mn(), r = () => {
1254
- let t = e.cols.at(0);
1255
- e.set((e) => [...e, pn(t, n.options, n.operations)]);
1256
- }, i = (t) => {
1257
- let r = t.target.dataset.id || "", i = t.target.value;
1258
- e.set((t) => t.map((t) => r === t.id ? pn(e.cols.find((e) => i === e.id), n.options, n.operations, { value: "" }) : t));
1259
- }, a = (t) => {
1260
- let r = t.target.dataset.id || "", i = t.target.value;
1261
- e.set((e) => e.map((e) => e.id === r ? {
1262
- ...e,
1263
- operation: n.operations[i]
1264
- } : e));
1265
- }, o = (t) => {
1266
- let n = t.currentTarget.dataset.id || "";
1267
- e.set((e) => e.filter((e) => e.id !== n));
1268
- }, s = (t) => {
1269
- let n = t.target.dataset.id || "", r = Zt(t.target);
1270
- e.set((e) => e.map((e) => e.id === n ? {
1271
- ...e,
1272
- value: r
1273
- } : e));
1274
- };
1275
- return /* @__PURE__ */ N(T, { children: /* @__PURE__ */ N(S, {
1276
- arrow: !0,
1277
- title: t.tableFilterDropdownTitle,
1278
- trigger: /* @__PURE__ */ P("span", {
1279
- className: "flex items-center gap-table-inline-gap-tight proportional-nums",
1280
- children: [
1281
- /* @__PURE__ */ N(we, { size: 14 }),
1282
- t.tableFilterLabel,
1283
- " ",
1284
- e.filters.length === 0 ? "" : ` (${e.filters.length})`
1285
- ]
1286
- }),
1287
- children: /* @__PURE__ */ P("ul", {
1288
- className: "mt-table-filter-list-mt space-y-2",
1289
- children: [e.filters.map((r) => {
1290
- let l = n.options[r.type];
1291
- return /* @__PURE__ */ P("li", {
1292
- className: "flex flex-nowrap gap-table-filter-row-gap",
1293
- children: [
1294
- /* @__PURE__ */ N(_, {
1295
- options: e.options,
1296
- title: t.tableFilterColumnTitle,
1297
- placeholder: t.tableFilterColumnPlaceholder,
1298
- value: r.name,
1299
- "data-id": r.id,
1300
- onChange: i
1301
- }),
1302
- /* @__PURE__ */ N(_, {
1303
- "data-id": r.id,
1304
- onChange: a,
1305
- value: r.operation.value,
1306
- options: l,
1307
- title: t.tableFilterOperatorTitle,
1308
- placeholder: t.tableFilterOperatorPlaceholder
1309
- }),
1310
- /* @__PURE__ */ N(c, {
1311
- optionalText: "",
1312
- "data-id": r.id,
1313
- onChange: s,
1314
- value: r.value,
1315
- type: r.type,
1316
- title: t.tableFilterValueTitle,
1317
- placeholder: t.tableFilterValuePlaceholder
1318
- }),
1319
- /* @__PURE__ */ N("div", {
1320
- className: "mt-5 flex items-center justify-center",
1321
- children: /* @__PURE__ */ N("button", {
1322
- "data-id": r.id,
1323
- type: "button",
1324
- onClick: o,
1325
- children: /* @__PURE__ */ N(L, {
1326
- className: "text-danger",
1327
- size: 16
1328
- })
1329
- })
1330
- })
1331
- ]
1332
- }, `filter-select-${r.id}`);
1333
- }), /* @__PURE__ */ N("li", { children: /* @__PURE__ */ P("button", {
1334
- type: "button",
1335
- onClick: r,
1336
- className: "flex items-center gap-table-inline-gap-tight text-primary",
1337
- children: [
1338
- /* @__PURE__ */ N(I, { size: 14 }),
1339
- " ",
1340
- t.tableFilterNewFilter
1341
- ]
1342
- }) })]
1343
- })
1344
- }) });
1345
- }, gn = ({ filter: e, onDelete: t, set: n }) => {
1346
- let r = f(), i = mn();
1347
- return /* @__PURE__ */ P("div", {
1348
- className: "flex flex-nowrap items-center gap-table-filter-inline-gap py-table-filter-inline-py",
1349
- children: [
1350
- /* @__PURE__ */ N(_, {
1351
- "data-id": e.id,
1352
- onChange: (e) => {
1353
- let t = e.target.value, r = e.target.dataset.id || "";
1354
- n((e) => e.map((e) => e.id === r ? {
1355
- ...e,
1356
- operation: i.operations[t]
1357
- } : e));
1358
- },
1359
- value: e.operation.value,
1360
- options: i.options[e.type],
1361
- title: r.tableFilterColumnTitle,
1362
- placeholder: r.tableFilterColumnPlaceholder
1363
- }),
1364
- /* @__PURE__ */ N(c, {
1365
- optionalText: " ",
1366
- "data-id": e.id,
1367
- onChange: (e) => {
1368
- let t = e.target.dataset.id || "", r = Zt(e.target);
1369
- n((e) => e.map((e) => e.id === t ? {
1370
- ...e,
1371
- value: r
1372
- } : e));
1373
- },
1374
- value: e.value,
1375
- type: e.type,
1376
- title: r.tableFilterValueTitle,
1377
- placeholder: r.tableFilterValueTitle
1378
- }),
1379
- /* @__PURE__ */ N("button", {
1380
- onClick: t,
1381
- "data-id": e.id,
1382
- type: "button",
1383
- className: "mt-4",
1384
- children: /* @__PURE__ */ N(L, {
1385
- className: "text-danger",
1386
- size: 14
1387
- })
1388
- })
1389
- ]
1390
- });
1391
- }, _n = {
1392
- top: 0,
1393
- left: 0,
1394
- right: 0,
1395
- bottom: -1
1396
- }, vn = (e) => {
1397
- let t = u(), n = f(), r = e.filters.filter((t) => t.name === e.header.id), a = r.length > 0, o = e.header.allowSort ?? t.table.sorters ?? !0, s = e.header.allowFilter ?? t.table.filters ?? !0, c = mn(), l = a ? Te : Ee, d = j(null), p = (t) => {
1398
- let n = t.currentTarget.dataset.id || "";
1399
- return e.setFilters((e) => e.filter((e) => e.id !== n));
1400
- }, m = D((e) => {
1401
- if (e === null) return;
1402
- d.current = e;
1403
- let t = new AbortController();
1404
- return e.addEventListener("pointerdown", (e) => {
1405
- if (e.target.dataset.type === "resizer") return e.stopPropagation(), e.stopImmediatePropagation();
1406
- }, { signal: t.signal }), () => t.abort();
1407
- }, []), h = e.sorters.find((t) => e.header.id === t.value), g = h?.type ? h.type === zt.Asc ? "ascending" : "descending" : "none", _ = X(e.header);
1408
- return /* @__PURE__ */ P(ot, {
1409
- ...e.header.thProps,
1410
- as: "th",
1411
- ref: m,
1412
- initial: !1,
1413
- dragSnapToOrigin: !0,
1414
- dragDirectionLock: !0,
1415
- role: "columnheader",
1416
- "aria-sort": g,
1417
- value: e.header,
1418
- "aria-busy": e.loading,
1419
- "data-tableheader": e.header.id,
1420
- whileDrag: { cursor: "grabbing" },
1421
- className: `typography relative min-w-0 cursor-grab overflow-clip border-r-table-cell-border border-table-border bg-table-header font-medium first:rounded-tl-table-radius last:rounded-tr-table-radius last:border-r-transparent md:h-14 ${e.header.thProps?.className ?? ""}`,
1422
- children: [/* @__PURE__ */ N("span", {
1423
- className: `flex h-full items-center justify-between bg-table-header p-table-cell-padding ${e.isLast ? "rounded-tr-table-radius" : ""} ${e.index === 0 ? "rounded-tl-table-radius" : ""}`,
1424
- children: /* @__PURE__ */ P("span", {
1425
- className: "flex items-center gap-table-inline-gap-tight",
1426
- children: [
1427
- e.inlineFilter && s ? /* @__PURE__ */ N(S, {
1428
- arrow: !0,
1429
- trigger: /* @__PURE__ */ P("span", { children: [/* @__PURE__ */ P("span", {
1430
- id: `${e.header.id}-filter-dropdown-button`,
1431
- className: "sr-only",
1432
- children: [
1433
- n.tableFilterDropdownTitleUnique,
1434
- " ",
1435
- _
1436
- ]
1437
- }), /* @__PURE__ */ N(l, {
1438
- "aria-labelledby": `${e.header.id}-filter-dropdown-button`,
1439
- size: 14
1440
- })] }),
1441
- title: /* @__PURE__ */ P("span", {
1442
- className: "text-typography-lg",
1443
- children: [
1444
- n.tableFilterDropdownTitleUnique,
1445
- " ",
1446
- /* @__PURE__ */ N("span", {
1447
- className: "font-medium",
1448
- children: _
1449
- })
1450
- ]
1451
- }),
1452
- children: /* @__PURE__ */ P("ul", {
1453
- className: "font-medium",
1454
- children: [r.length === 0 ? null : /* @__PURE__ */ N(T, { children: r.map((t) => /* @__PURE__ */ N("li", {
1455
- className: "my-1",
1456
- children: /* @__PURE__ */ N(gn, {
1457
- onDelete: p,
1458
- filter: t,
1459
- set: e.setFilters
1460
- })
1461
- }, `thead-filter-${t.id}`)) }), /* @__PURE__ */ N("li", { children: /* @__PURE__ */ P("button", {
1462
- type: "button",
1463
- className: "flex items-center gap-table-inline-gap-tight text-primary",
1464
- onClick: () => e.setFilters((t) => t.concat(pn(e.header, c.options, c.operations))),
1465
- children: [
1466
- /* @__PURE__ */ N(I, { size: 14 }),
1467
- " ",
1468
- n.tableFilterNewFilter
1469
- ]
1470
- }) })]
1471
- })
1472
- }) : null,
1473
- /* @__PURE__ */ N("span", {
1474
- className: "text-typography-base pointer-events-auto text-balance",
1475
- children: e.header.thead
1476
- }),
1477
- e.inlineSorter && o ? /* @__PURE__ */ N(ln, {
1478
- col: e.header,
1479
- setSorters: e.setSorters,
1480
- sorters: e.sorters
1481
- }) : null
1482
- ]
1483
- })
1484
- }), e.isLast ? null : /* @__PURE__ */ N(i.button, {
1485
- drag: "x",
1486
- draggable: !0,
1487
- dragListener: !0,
1488
- dragMomentum: !0,
1489
- type: "button",
1490
- animate: !1,
1491
- dragElastic: 0,
1492
- dragPropagation: !0,
1493
- initial: !1,
1494
- dragSnapToOrigin: !0,
1495
- dragDirectionLock: !0,
1496
- "data-type": "resizer",
1497
- title: e.header.id,
1498
- dragConstraints: _n,
1499
- className: "absolute -right-[0.5px] top-0 z-calendar block h-full w-table-divider-w cursor-col-resize bg-transparent hover:w-1.5 hover:bg-primary active:w-1.5 active:bg-primary",
1500
- onClick: (e) => void e.currentTarget.focus(),
1501
- onKeyDown: (e) => {
1502
- if (e.key === "ArrowLeft" || e.key === "ArrowRight") {
1503
- if (d.current === null) return;
1504
- d.current.setAttribute("data-resized", "true");
1505
- let t = d.current.getBoundingClientRect().width, n = (e.shiftKey ? 50 : 10) * (e.key === "ArrowLeft" ? -1 : 1);
1506
- d.current.style.width = `${Math.abs(t + n)}px`;
1507
- }
1508
- },
1509
- onDoubleClick: () => {
1510
- d.current !== null && (d.current.style.width = "auto");
1511
- },
1512
- onDrag: (e, t) => {
1513
- if (d.current === null) return;
1514
- d.current.setAttribute("data-resized", "true");
1515
- let n = d.current.getBoundingClientRect().width, r = t.delta.x;
1516
- d.current.style.width = `${Math.abs(n + r)}px`;
1517
- }
1518
- })]
1519
- });
1520
- }, yn = (e) => {
1521
- let [t, n] = nn(e.setCols);
1522
- return /* @__PURE__ */ N(Xe, {
1523
- layout: !0,
1524
- as: "tr",
1525
- axis: "x",
1526
- drag: "x",
1527
- ref: t,
1528
- layoutRoot: !0,
1529
- role: "row",
1530
- layoutScroll: !0,
1531
- onReorder: n,
1532
- values: e.headers,
1533
- children: /* @__PURE__ */ N(r, { children: e.headers.map((t, n) => /* @__PURE__ */ N(vn, {
1534
- index: n,
1535
- header: t,
1536
- filters: e.filters,
1537
- loading: e.loading,
1538
- sorters: e.sorters,
1539
- setFilters: e.setFilters,
1540
- setSorters: e.setSorters,
1541
- inlineFilter: e.inlineFilter,
1542
- inlineSorter: e.inlineSorter,
1543
- isLast: n === e.headers.length - 1
1544
- }, `header-child-item-${t.id}`)) })
1545
- });
1546
- }, bn = w.forwardRef(({ context: e, className: t = "", ...n }, i) => /* @__PURE__ */ N("tbody", {
1547
- ...n,
1548
- role: "rowgroup",
1549
- className: `divide-y divide-table-border ${t}`,
1550
- ref: i,
1551
- children: /* @__PURE__ */ N(r, { children: n.children })
1552
- })), xn = w.forwardRef(({ context: e, className: t = "", ...n }, r) => /* @__PURE__ */ N("table", {
1553
- ...n,
1554
- role: "table",
1555
- ref: r,
1556
- style: {
1557
- ...n.style,
1558
- "--table-cell-padding": "0.75rem"
1559
- },
1560
- className: `table w-full table-fixed border-separate border-spacing-0 text-left ${t ?? ""}`
1561
- })), Sn = w.forwardRef(({ context: e, ...t }, n) => {
1562
- let r = fn(), i = {
1563
- ...t.style,
1564
- top: o.number(r.sticky) ? `${r.sticky}px` : void 0
1565
- };
1566
- return /* @__PURE__ */ N("thead", {
1567
- ...t,
1568
- ref: n,
1569
- style: i,
1570
- role: "rowgroup",
1571
- className: "group:sticky top-0 hidden bg-transparent md:table-header-group"
1572
- });
1573
- }), Cn = {
1574
- TableRow: w.forwardRef(({ context: e, item: t, className: n, ...r }, i) => {
1575
- let a = t ? e?.getRowProps?.(t) : void 0;
1576
- return /* @__PURE__ */ N("tr", {
1577
- ...r,
1578
- ...a,
1579
- role: "row",
1580
- ref: i,
1581
- className: `group-table-row flex h-fit flex-col flex-wrap justify-center gap-table-row-gap pb-table-row-pb md:table-row ${[n, a?.className].filter(Boolean).join(" ")}`
1582
- });
1583
- }),
1584
- TableFoot: w.forwardRef(({ context: e, ...t }, n) => e?.loadingMore ? /* @__PURE__ */ N("tfoot", {
1585
- ...t,
1586
- ref: n,
1587
- className: "bg-card-background",
1588
- children: /* @__PURE__ */ N("tr", {
1589
- role: "row",
1590
- className: "bg-card-background",
1591
- children: /* @__PURE__ */ N("td", {
1592
- colSpan: 999,
1593
- className: "h-table-loading-h bg-card-background px-table-cell-px",
1594
- children: /* @__PURE__ */ N("span", { className: "rounded-table-loading-bar-radius block h-table-loading-bar-h w-full animate-pulse bg-foreground opacity-60" })
1595
- })
1596
- })
1597
- }) : null),
1598
- TableHead: Sn,
1599
- Table: xn,
1600
- TableBody: bn
1601
- }, wn = [
1602
- 0,
1603
- 0,
1604
- 0,
1605
- 0,
1606
- 0,
1607
- 0,
1608
- 0,
1609
- 0,
1610
- 0,
1611
- 0
1612
- ], Tn = (e) => /* @__PURE__ */ N("div", {
1613
- className: "flex h-table-empty-h w-full items-center justify-center px-table-cell-px",
1614
- children: e.loading ? le : /* @__PURE__ */ N(Wt, {})
1615
- }), En = () => /* @__PURE__ */ N(T, {}), Dn = [], On = ({ cols: e, filters: t, setCols: n, sorters: r, setFilters: i, setSorters: a, onScrollEnd: o, getScrollRef: s, pagination: c = null, useControl: l = !1, ...u }) => {
1616
- let d = j(null), [, f] = M(!1), p = v(o), m = v(u.loadingMore), h = A(() => {
1617
- if (u.loading) return wn;
1618
- if (l) return u.rows;
1619
- let e = new Ut(u.rows);
1620
- return t.length > 0 && t.forEach((t) => t.value === "" || Number.isNaN(t.value) ? void 0 : e.Where(t.name, t.operation.symbol, t.value)), r.length === 0 ? e.Select() : on(e.Select(), r);
1621
- }, [
1622
- u.loading,
1623
- u.rows,
1624
- l,
1625
- t,
1626
- r
1627
- ]);
1628
- k(() => {
1629
- if (d.current === null) return () => {};
1630
- let e = d.current, t = new IntersectionObserver((e) => {
1631
- if (e[e.length - 1].isIntersecting && m.current) {
1632
- p.current?.(), f(!0);
1633
- return;
1634
- }
1635
- return f(!1);
1636
- });
1637
- return t.observe(e), () => t.disconnect();
1638
- }, [m, p]);
1639
- let g = h.length === 0;
1640
- return /* @__PURE__ */ P("div", {
1641
- className: "group relative flex w-full flex-col whitespace-nowrap rounded-table-radius bg-table-background",
1642
- children: [
1643
- /* @__PURE__ */ N(ce, {
1644
- components: Cn,
1645
- context: {
1646
- cols: e,
1647
- Aside: u.Aside,
1648
- loading: u.loading,
1649
- getRowProps: u.getRowProps,
1650
- loadingMore: u.loadingMore
1651
- },
1652
- totalCount: h.length,
1653
- itemContent: g ? En : Jt,
1654
- data: g ? Dn : h,
1655
- useWindowScroll: !s,
1656
- customScrollParent: s ? s() : void 0,
1657
- fixedHeaderContent: () => /* @__PURE__ */ N(yn, {
1658
- headers: e,
1659
- filters: t,
1660
- setCols: n,
1661
- sorters: r,
1662
- setFilters: i,
1663
- setSorters: a,
1664
- loading: !!u.loading,
1665
- inlineFilter: u.inlineFilter,
1666
- inlineSorter: u.inlineSorter
1667
- })
1668
- }),
1669
- g ? /* @__PURE__ */ N(Tn, { loading: u.loading }) : null,
1670
- /* @__PURE__ */ N("div", {
1671
- "aria-hidden": "true",
1672
- ref: d,
1673
- className: "h-0.5 w-full"
1674
- }),
1675
- c === null ? null : /* @__PURE__ */ N(Kt, { ...c })
1676
- ]
1677
- });
1678
- }, kn = ({ item: e, onPointerDown: t }) => {
1679
- let n = x(0);
1680
- return /* @__PURE__ */ P(ot, {
1681
- onPointerDown: t,
1682
- id: e.groupId,
1683
- className: "flex flex-row items-center gap-2",
1684
- value: e,
1685
- style: { y: n },
1686
- children: [/* @__PURE__ */ N("button", {
1687
- type: "button",
1688
- className: "cursor-grab",
1689
- children: /* @__PURE__ */ N(Ce, { size: 14 })
1690
- }), /* @__PURE__ */ N("span", { children: e.groupName })]
1691
- }, e.groupId);
1692
- }, An = (e) => {
1693
- let t = f(), n = Z(e.cols), r = Ke(), [i, o] = M(e.groups[0]?.thead || "");
1694
- return /* @__PURE__ */ N(T, { children: /* @__PURE__ */ P(S, {
1695
- arrow: !1,
1696
- title: t.tableGroupLabel,
1697
- trigger: /* @__PURE__ */ P("span", {
1698
- className: "flex items-center gap-table-inline-gap-tight proportional-nums",
1699
- children: [
1700
- /* @__PURE__ */ N(ke, { size: 14 }),
1701
- t.tableGroupLabelWithCount,
1702
- e.groups.length > 0 ? ` - ${i}(${e.groups.length})` : ""
1703
- ]
1704
- }),
1705
- children: [/* @__PURE__ */ P("div", {
1706
- className: "flex flex-nowrap items-center",
1707
- children: [/* @__PURE__ */ N(_, {
1708
- value: i,
1709
- title: "Tipo de agrupamento",
1710
- onChange: (t) => {
1711
- let n = t.target, r = n.value, i = n.options.selectedIndex;
1712
- o(n.options.item(i)?.label || "");
1713
- let s = new Ut(e.rows).GroupBy(r), c = e.cols.find((e) => e.id === r);
1714
- e.setGroups(a(s).map((e, t) => {
1715
- let n = s[e];
1716
- return {
1717
- ...c,
1718
- groupId: m(),
1719
- groupKey: r,
1720
- index: t,
1721
- rows: n,
1722
- groupName: e
1723
- };
1724
- }));
1725
- },
1726
- options: n,
1727
- placeholder: "Agrupar por..."
1728
- }), /* @__PURE__ */ N(g, {
1729
- className: "mt-table-groups-mt",
1730
- onClick: () => e.setGroups([]),
1731
- theme: "raw",
1732
- "data-id": i,
1733
- children: /* @__PURE__ */ N(L, {
1734
- size: 16,
1735
- className: "text-danger"
1736
- })
1737
- })]
1738
- }), e.groups.length > 0 ? /* @__PURE__ */ P("section", {
1739
- className: "my-table-groups-my",
1740
- children: [/* @__PURE__ */ N("header", { children: /* @__PURE__ */ N("h2", {
1741
- className: "text-typography-xl font-medium",
1742
- children: "Order groups"
1743
- }) }), /* @__PURE__ */ N(Re, { children: /* @__PURE__ */ N(Xe, {
1744
- axis: "y",
1745
- className: "relative space-y-2",
1746
- drag: !0,
1747
- dragControls: r,
1748
- dragListener: !1,
1749
- layoutScroll: !0,
1750
- onReorder: e.setGroups,
1751
- values: e.groups,
1752
- children: e.groups.map((t) => /* @__PURE__ */ N(kn, {
1753
- item: t,
1754
- onPointerDown: (t) => {
1755
- r.start(t), e.setGroups([...e.groups]);
1756
- }
1757
- }, t.groupId))
1758
- }) })]
1759
- }) : null]
1760
- }) });
1761
- }, jn = (e) => /* @__PURE__ */ N("header", {
1762
- className: "mb-table-metadata-mb min-w-full",
1763
- children: /* @__PURE__ */ P("div", {
1764
- className: "flex min-w-full flex-wrap items-center justify-between gap-x-table-metadata-gap-x gap-y-table-metadata-gap-y",
1765
- children: [/* @__PURE__ */ P("div", {
1766
- className: "items-centeend flex w-fit gap-table-ops-gap whitespace-nowrap py-table-ops-py",
1767
- children: [
1768
- /* @__PURE__ */ N("span", { children: /* @__PURE__ */ N(hn, {
1769
- cols: e.cols,
1770
- options: e.options,
1771
- filters: e.filters,
1772
- set: e.setFilters
1773
- }) }),
1774
- /* @__PURE__ */ N("span", { children: /* @__PURE__ */ N(cn, {
1775
- options: e.options,
1776
- cols: e.cols,
1777
- sorters: e.sorters,
1778
- set: e.setSorters
1779
- }) }),
1780
- /* @__PURE__ */ N("span", { children: /* @__PURE__ */ N(An, {
1781
- rows: e.rows,
1782
- groups: e.groups,
1783
- setGroups: e.setGroups,
1784
- options: e.options,
1785
- cols: e.cols
1786
- }) })
1787
- ]
1788
- }), /* @__PURE__ */ N("ul", {
1789
- className: "flex w-full flex-1 flex-grow flex-row flex-wrap items-center gap-table-filter-gap md:justify-end",
1790
- children: e.filters.map((t) => /* @__PURE__ */ P("li", {
1791
- className: "rounded-table-pill-radius flex items-center gap-table-inline-gap-tight border border-card-border px-table-pill-px py-table-pill-py",
1792
- children: [/* @__PURE__ */ P("span", { children: [
1793
- /* @__PURE__ */ N("span", {
1794
- className: "mr-table-filter-dot-mr inline-block aspect-square size-table-filter-dot-size rounded-full bg-primary",
1795
- "aria-hidden": "true"
1796
- }),
1797
- t.label,
1798
- " ",
1799
- t.operation.label.toLowerCase(),
1800
- ":"
1801
- ] }), /* @__PURE__ */ P("div", {
1802
- className: "relative w-min min-w-table-metadata-min-w",
1803
- children: [/* @__PURE__ */ N("span", {
1804
- "aria-hidden": "true",
1805
- className: "invisible whitespace-pre p-0",
1806
- children: t.value || " "
1807
- }), /* @__PURE__ */ N("input", {
1808
- type: t.type,
1809
- value: t.value,
1810
- className: "absolute left-0 top-0 m-0 inline-block w-full bg-transparent p-0 placeholder-primary/70 outline-none [appearance:textfield] after:empty:text-primary/70 [&::-webkit-inner-spin-button]:appearance-none [&::-webkit-outer-spin-button]:appearance-none",
1811
- onChange: (n) => {
1812
- let r = Zt(n.target);
1813
- e.setFilters((e) => e.map((e) => t.id === e.id ? {
1814
- ...e,
1815
- value: r
1816
- } : e));
1817
- }
1818
- })]
1819
- })]
1820
- }, `filter-table-${t.id}`))
1821
- })]
1822
- })
1823
- }), Mn = (e, t) => typeof t == "function" ? t(e) : t, $ = (e, t, n) => e === t ? void 0 : n?.(t), Nn = (e) => {
1824
- let t = u(), n = A(() => ({ sticky: e.sticky === void 0 ? t.table.sticky ?? void 0 : e.sticky ?? void 0 }), [e.sticky, t.table.sticky]), i = e.operations ?? t.table.operations ?? !0, a = A(() => Z(e.cols), [e.cols]), [o, s] = se({
1825
- cols: e.cols,
1826
- sorters: e.sorters ?? [],
1827
- groups: e.groups ?? [],
1828
- filters: e.filters ?? []
1829
- }, (e) => {
1830
- let t = (t) => (n) => {
1831
- let r = e.state();
1832
- return {
1833
- ...r,
1834
- [t]: Mn(r[t], n)
1835
- };
1836
- };
1837
- return {
1838
- cols: t("cols"),
1839
- sorters: t("sorters"),
1840
- groups: t("groups"),
1841
- filters: t("filters")
1842
- };
1843
- }, { postMiddleware: [(t, n) => (e.set?.(t), $(n?.filters ?? [], t.filters ?? [], e.setFilters), $(n?.sorters ?? [], t.sorters ?? [], e.setSorters), $(n?.groups ?? [], t.groups ?? [], e.setGroups), $(n?.cols ?? [], t.cols ?? [], e.setCols), t)] });
1844
- return k(() => {
1845
- s.cols(e.cols);
1846
- }, [e.cols]), /* @__PURE__ */ N(dn, {
1847
- value: n,
1848
- children: /* @__PURE__ */ P(r, {
1849
- propagate: !0,
1850
- initial: !1,
1851
- children: [i ? /* @__PURE__ */ N(jn, {
1852
- cols: o.cols,
1853
- rows: e.rows,
1854
- options: a,
1855
- groups: o.groups,
1856
- filters: o.filters,
1857
- setCols: s.cols,
1858
- sorters: o.sorters,
1859
- setGroups: s.groups,
1860
- setFilters: s.filters,
1861
- setSorters: s.sorters,
1862
- pagination: e.pagination ?? null,
1863
- inlineFilter: e.inlineFilter ?? !0,
1864
- inlineSorter: e.inlineSorter ?? !0
1865
- }) : null, o.groups.length === 0 ? /* @__PURE__ */ N(On, {
1866
- ...e,
1867
- index: 0,
1868
- cols: o.cols,
1869
- options: a,
1870
- groups: o.groups,
1871
- filters: o.filters,
1872
- optionCols: a,
1873
- setCols: s.cols,
1874
- sorters: o.sorters,
1875
- setGroups: s.groups,
1876
- setFilters: s.filters,
1877
- setSorters: s.sorters,
1878
- onScrollEnd: e.onScrollEnd,
1879
- pagination: e.pagination ?? null,
1880
- inlineFilter: e.inlineFilter ?? !0,
1881
- inlineSorter: e.inlineSorter ?? !0
1882
- }) : /* @__PURE__ */ N("div", {
1883
- className: "flex flex-wrap gap-table-groups-gap",
1884
- children: o.groups.map((t, n) => /* @__PURE__ */ N("div", {
1885
- className: "min-w-full",
1886
- children: /* @__PURE__ */ N(On, {
1887
- ...e,
1888
- group: t,
1889
- index: n,
1890
- cols: o.cols,
1891
- pagination: null,
1892
- rows: t.rows,
1893
- options: a,
1894
- groups: o.groups,
1895
- filters: o.filters,
1896
- optionCols: a,
1897
- setCols: s.cols,
1898
- sorters: o.sorters,
1899
- setGroups: s.groups,
1900
- setFilters: s.filters,
1901
- setSorters: s.sorters,
1902
- onScrollEnd: e.onScrollEnd,
1903
- inlineFilter: e.inlineFilter ?? !0,
1904
- inlineSorter: e.inlineSorter ?? !0
1905
- })
1906
- }, `group-${t.groupId}`))
1907
- })]
1908
- })
1909
- });
1910
- };
1911
- //#endregion
1912
- export { rn as a, Wt as c, Z as i, we as l, Q as n, tn as o, Qt as r, Yt as s, Nn as t };
1913
-
1914
- //# sourceMappingURL=table-CUFbAI2k.js.map