ezux 1.1.6 → 1.1.8

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 (445) hide show
  1. package/README.md +8 -1
  2. package/dist/EzContextMenu-C5fEFGzp.cjs +5 -0
  3. package/dist/EzContextMenu-OaCDOB5a.js +3500 -0
  4. package/dist/EzErrorBoundary-CEdz_hDo.cjs +41 -0
  5. package/dist/{EzErrorBoundary-h8XOTsBH.js → EzErrorBoundary-H8HQBTwU.js} +1200 -1103
  6. package/dist/EzEventModal-DuKSTESr.cjs +1 -0
  7. package/dist/EzEventModal-pq49mPrb.js +689 -0
  8. package/dist/EzGroupingPanel-Bn2JgaOA.cjs +1 -0
  9. package/dist/EzGroupingPanel-CmK7gVFq.js +143 -0
  10. package/dist/EzSchedulerQuickAdd-Bhp3B8DK.cjs +1 -0
  11. package/dist/EzSchedulerQuickAdd-CkR_EimA.js +118 -0
  12. package/dist/EzSchedulerToolbar-B0-uLBDr.js +248 -0
  13. package/dist/EzSchedulerToolbar-DDyth429.cjs +1 -0
  14. package/dist/EzSignature-BpFo1IzX.cjs +1 -0
  15. package/dist/EzSignature-Dgz265gl.js +419 -0
  16. package/dist/EzTableEditDialog-Bvb3hkWO.js +63 -0
  17. package/dist/EzTableEditDialog-C9vNta7y.cjs +1 -0
  18. package/dist/EzTableFooter-BxLdc13o.cjs +1 -0
  19. package/dist/{EzTableFooter-Y3GZjlYo.js → EzTableFooter-CI89S-UC.js} +14 -13
  20. package/dist/EzTableToolbar-_WyPYxTd.js +250 -0
  21. package/dist/EzTableToolbar-aY1sSBBb.cjs +1 -0
  22. package/dist/HighlightText-BDclEh_K.cjs +1 -0
  23. package/dist/HighlightText-qlGoV0mz.js +70 -0
  24. package/dist/NotificationPanel-CfIj_ycB.js +68 -0
  25. package/dist/NotificationPanel-HoqM63z8.cjs +1 -0
  26. package/dist/{TooltipWrapper-DdJxPiY7.js → TooltipWrapper-CEHdYnI-.js} +243 -242
  27. package/dist/TooltipWrapper-gco5CexX.cjs +1 -0
  28. package/dist/avatar-CWOs3vxs.js +41 -0
  29. package/dist/avatar-m3tSATGp.cjs +1 -0
  30. package/dist/button-DT4Inu2c.cjs +1 -0
  31. package/dist/button-eeeIyCtP.js +139 -0
  32. package/dist/calendar-BE2zOlsW.cjs +1 -0
  33. package/dist/calendar-BR9W__-W.js +91 -0
  34. package/dist/checkbox-Bv_EiCrx.js +46 -0
  35. package/dist/checkbox-DrL8aED5.cjs +1 -0
  36. package/dist/chevron-down-DZVL7VHW.cjs +1 -0
  37. package/dist/chevron-down-tKbXGF9E.js +5 -0
  38. package/dist/circle-alert-77QqFR-z.cjs +1 -0
  39. package/dist/circle-alert-CQY8GSNi.js +9 -0
  40. package/dist/date-time-picker-Cl9JFWO8.cjs +1 -0
  41. package/dist/date-time-picker-DxkoL4hD.js +1636 -0
  42. package/dist/download-0ZhO2XaW.cjs +1 -0
  43. package/dist/download-CmRcT58S.js +9 -0
  44. package/dist/dropdown-menu-BWyO06-P.cjs +1 -0
  45. package/dist/{dropdown-menu-BjVAeFwN.js → dropdown-menu-DdkjXzq1.js} +123 -123
  46. package/dist/ellipsis-CCZF_cvh.js +9 -0
  47. package/dist/ellipsis-CzlqJf-i.cjs +1 -0
  48. package/dist/ezux.css +1 -1
  49. package/dist/index-B-TRhwk4.js +4644 -0
  50. package/dist/index-Btkuh0Jp.cjs +7 -0
  51. package/dist/{index-BczIY8NY.js → index-BunKZUEt.js} +1893 -2111
  52. package/dist/index-BwJuUg0J.cjs +1 -0
  53. package/dist/index-D4eq_ohu.cjs +2 -0
  54. package/dist/index-DI80c2kw.js +3074 -0
  55. package/dist/index-DllNLSm8.cjs +2 -0
  56. package/dist/index-WRg7XmVa.js +5201 -0
  57. package/dist/index.cjs +4 -4
  58. package/dist/index.d.ts +6293 -80
  59. package/dist/index.es.js +536 -477
  60. package/dist/info-BDmr8PJk.js +14 -0
  61. package/dist/info-BY2cfl1l.cjs +1 -0
  62. package/dist/input-BwEWZkMW.cjs +1 -0
  63. package/dist/{input-CYORuyKf.js → input-DqyAoZa9.js} +6 -5
  64. package/dist/isBefore-CTwR56mw.cjs +1 -0
  65. package/dist/isBefore-DxtoOU-T.js +15 -0
  66. package/dist/kanban.cjs +1 -1
  67. package/dist/kanban.d.ts +1343 -2
  68. package/dist/kanban.es.js +13 -12
  69. package/dist/label-CbmQD-s4.js +55 -0
  70. package/dist/label-Cm2Ayqls.cjs +1 -0
  71. package/dist/layers-DNHQOu07.js +27 -0
  72. package/dist/layers-xSPd-hz3.cjs +1 -0
  73. package/dist/layout.cjs +1 -1
  74. package/dist/layout.d.ts +604 -2
  75. package/dist/layout.es.js +12 -11
  76. package/dist/popover-2vzx8NRx.cjs +1 -0
  77. package/dist/popover-Bl6ydwov.js +22 -0
  78. package/dist/scheduler.cjs +1 -1
  79. package/dist/scheduler.d.ts +1430 -2
  80. package/dist/scheduler.es.js +7 -7
  81. package/dist/scroll-area-BCstMooj.cjs +1 -0
  82. package/dist/{scroll-area-DtJKbPOX.js → scroll-area-DtvmNg-L.js} +190 -189
  83. package/dist/select-CcLB-krA.js +35 -0
  84. package/dist/select-CyzLABFE.cjs +1 -0
  85. package/dist/settings-BHRhM0Qw.cjs +1 -0
  86. package/dist/settings-BkZ7kdog.js +20 -0
  87. package/dist/signature.cjs +1 -1
  88. package/dist/signature.d.ts +410 -2
  89. package/dist/signature.es.js +1 -1
  90. package/dist/sortable.esm-CPZHpcxS.js +477 -0
  91. package/dist/sortable.esm-DU16Scox.cjs +1 -0
  92. package/dist/table.cjs +1 -1
  93. package/dist/table.d.ts +1041 -2
  94. package/dist/table.es.js +11 -10
  95. package/dist/theme-vars.css +156 -0
  96. package/dist/treeview.cjs +2 -2
  97. package/dist/treeview.d.ts +656 -2
  98. package/dist/treeview.es.js +615 -642
  99. package/dist/useInitCoreServices-BCuuNsu5.cjs +1 -0
  100. package/dist/useInitCoreServices-J1k9YgF4.js +3847 -0
  101. package/dist/useService-DKtODQpB.cjs +1 -0
  102. package/dist/useService-HK9_CuU3.js +10 -0
  103. package/dist/useServiceState-BGQiGyXF.cjs +1 -0
  104. package/dist/useServiceState-cBut6x4E.js +24 -0
  105. package/package.json +45 -17
  106. package/dist/EzContextMenu-BBRvkLVD.js +0 -1075
  107. package/dist/EzContextMenu-CCAZWlEq.cjs +0 -4
  108. package/dist/EzErrorBoundary-C9dTYXll.cjs +0 -41
  109. package/dist/EzEventModal-B-CY7Cdt.js +0 -688
  110. package/dist/EzEventModal-C0GKgCYi.cjs +0 -1
  111. package/dist/EzGroupingPanel-ClymhuHS.cjs +0 -1
  112. package/dist/EzGroupingPanel-DSTTHqCX.js +0 -140
  113. package/dist/EzSchedulerQuickAdd-CTR08cph.cjs +0 -1
  114. package/dist/EzSchedulerQuickAdd-CfmwLENk.js +0 -115
  115. package/dist/EzSchedulerToolbar-BRx7eyHg.cjs +0 -1
  116. package/dist/EzSchedulerToolbar-DXHPx901.js +0 -233
  117. package/dist/EzSignature-CCibSi2V.js +0 -415
  118. package/dist/EzSignature-DH3wOUn8.cjs +0 -1
  119. package/dist/EzTableEditDialog-Bt0mpT0x.cjs +0 -1
  120. package/dist/EzTableEditDialog-C3eYMOVD.js +0 -63
  121. package/dist/EzTableFooter-DllWo6rv.cjs +0 -1
  122. package/dist/EzTableToolbar-BG4BiLST.js +0 -208
  123. package/dist/EzTableToolbar-CtUhkCjy.cjs +0 -1
  124. package/dist/HighlightText-CEfITkQM.js +0 -68
  125. package/dist/HighlightText-CfD2S1sA.cjs +0 -1
  126. package/dist/NotificationPanel-COIVdedR.js +0 -64
  127. package/dist/NotificationPanel-_dJM1T7E.cjs +0 -1
  128. package/dist/TooltipWrapper-CcZYDAkQ.cjs +0 -1
  129. package/dist/avatar-C6a9EwCQ.cjs +0 -1
  130. package/dist/avatar-DnBRMYrs.js +0 -40
  131. package/dist/button-NeAnczKW.cjs +0 -1
  132. package/dist/button-unHzRLZS.js +0 -108
  133. package/dist/calendar-CPUu_XYP.js +0 -71
  134. package/dist/calendar-DNYO0KYf.cjs +0 -1
  135. package/dist/checkbox-DCJM7upr.js +0 -30
  136. package/dist/checkbox-DsfnG-1K.cjs +0 -1
  137. package/dist/components/EzKanban/EzKanban.types.d.ts +0 -808
  138. package/dist/components/EzKanban/components/CardEditorModal.d.ts +0 -23
  139. package/dist/components/EzKanban/components/EzKanbanErrorFallback.d.ts +0 -1
  140. package/dist/components/EzKanban/components/FilterPopover.d.ts +0 -10
  141. package/dist/components/EzKanban/components/KanbanBoard.d.ts +0 -59
  142. package/dist/components/EzKanban/components/KanbanCard.d.ts +0 -46
  143. package/dist/components/EzKanban/components/KanbanColumn.d.ts +0 -53
  144. package/dist/components/EzKanban/components/KanbanSwimlane.d.ts +0 -45
  145. package/dist/components/EzKanban/components/KanbanToolbar.d.ts +0 -41
  146. package/dist/components/EzKanban/exports.d.ts +0 -4
  147. package/dist/components/EzKanban/hooks/useKanbanCards.d.ts +0 -36
  148. package/dist/components/EzKanban/hooks/useKanbanColumns.d.ts +0 -27
  149. package/dist/components/EzKanban/hooks/useKanbanDragDrop.d.ts +0 -31
  150. package/dist/components/EzKanban/hooks/useKanbanFilters.d.ts +0 -23
  151. package/dist/components/EzKanban/hooks/useKanbanState.d.ts +0 -79
  152. package/dist/components/EzKanban/hooks/useKanbanSwimlanes.d.ts +0 -27
  153. package/dist/components/EzKanban/hooks/useKanbanVirtualization.d.ts +0 -16
  154. package/dist/components/EzKanban/index.d.ts +0 -51
  155. package/dist/components/EzKanban/services/KanbanService.d.ts +0 -30
  156. package/dist/components/EzKanban/state/kanban.store.d.ts +0 -33
  157. package/dist/components/EzKanban/useEzKanban.d.ts +0 -162
  158. package/dist/components/EzKanban/views/KanbanTimelineView.d.ts +0 -15
  159. package/dist/components/EzLayout/Authentication/AuthSlider.d.ts +0 -13
  160. package/dist/components/EzLayout/Authentication/InputPassword.d.ts +0 -7
  161. package/dist/components/EzLayout/Authentication/SignInForm.d.ts +0 -21
  162. package/dist/components/EzLayout/Authentication/SignUpForm.d.ts +0 -20
  163. package/dist/components/EzLayout/EzHeader.d.ts +0 -35
  164. package/dist/components/EzLayout/EzLanguageSwitcher.d.ts +0 -4
  165. package/dist/components/EzLayout/EzLayout.types.d.ts +0 -233
  166. package/dist/components/EzLayout/EzSidebar.d.ts +0 -14
  167. package/dist/components/EzLayout/EzThemeColorChanger.d.ts +0 -9
  168. package/dist/components/EzLayout/EzThemeSwitcher.d.ts +0 -8
  169. package/dist/components/EzLayout/EzUserProfile.d.ts +0 -23
  170. package/dist/components/EzLayout/components/MainContent.d.ts +0 -13
  171. package/dist/components/EzLayout/hooks/useLayoutImperative.d.ts +0 -17
  172. package/dist/components/EzLayout/hooks/useLayoutState.d.ts +0 -25
  173. package/dist/components/EzLayout/index.d.ts +0 -19
  174. package/dist/components/EzLayout/useEzLayout.d.ts +0 -26
  175. package/dist/components/EzScheduler/EzScheduler.types.d.ts +0 -1173
  176. package/dist/components/EzScheduler/EzSchedulerToolbar.d.ts +0 -117
  177. package/dist/components/EzScheduler/components/EzEventModal.d.ts +0 -17
  178. package/dist/components/EzScheduler/components/EzOverlapAlert.d.ts +0 -12
  179. package/dist/components/EzScheduler/components/EzQuickInfoPopup.d.ts +0 -22
  180. package/dist/components/EzScheduler/components/EzResourceSidebar.d.ts +0 -33
  181. package/dist/components/EzScheduler/components/EzSchedulerContent.d.ts +0 -123
  182. package/dist/components/EzScheduler/components/EzSchedulerQuickAdd.d.ts +0 -17
  183. package/dist/components/EzScheduler/components/RecurrenceEditor.d.ts +0 -7
  184. package/dist/components/EzScheduler/components/SchedulerLoadingSpinner.d.ts +0 -2
  185. package/dist/components/EzScheduler/components/dnd/DraggableEvent.d.ts +0 -22
  186. package/dist/components/EzScheduler/components/dnd/DroppableSlot.d.ts +0 -19
  187. package/dist/components/EzScheduler/hooks/useRecurrence.d.ts +0 -2
  188. package/dist/components/EzScheduler/hooks/useSchedulerEventHandlers.d.ts +0 -11
  189. package/dist/components/EzScheduler/hooks/useSchedulerEvents.d.ts +0 -27
  190. package/dist/components/EzScheduler/hooks/useSchedulerImperative.d.ts +0 -19
  191. package/dist/components/EzScheduler/hooks/useSchedulerNavigation.d.ts +0 -9
  192. package/dist/components/EzScheduler/hooks/useSchedulerResources.d.ts +0 -10
  193. package/dist/components/EzScheduler/hooks/useSchedulerState.d.ts +0 -14
  194. package/dist/components/EzScheduler/hooks/useSchedulerVirtualization.d.ts +0 -9
  195. package/dist/components/EzScheduler/index.d.ts +0 -41
  196. package/dist/components/EzScheduler/models/EventSettings.d.ts +0 -11
  197. package/dist/components/EzScheduler/models/View.d.ts +0 -49
  198. package/dist/components/EzScheduler/models/index.d.ts +0 -2
  199. package/dist/components/EzScheduler/services/AttendeeService.d.ts +0 -15
  200. package/dist/components/EzScheduler/services/AuditService.d.ts +0 -15
  201. package/dist/components/EzScheduler/services/CollisionDetectionService.d.ts +0 -19
  202. package/dist/components/EzScheduler/services/DragAndDropService.d.ts +0 -16
  203. package/dist/components/EzScheduler/services/HistoryService.d.ts +0 -31
  204. package/dist/components/EzScheduler/services/ICalendarImportService.d.ts +0 -16
  205. package/dist/components/EzScheduler/services/PrintService.d.ts +0 -7
  206. package/dist/components/EzScheduler/services/RecurrenceEngine.d.ts +0 -7
  207. package/dist/components/EzScheduler/services/ReminderService.d.ts +0 -17
  208. package/dist/components/EzScheduler/services/SchedulerService.d.ts +0 -69
  209. package/dist/components/EzScheduler/services/SearchService.d.ts +0 -11
  210. package/dist/components/EzScheduler/services/SecurityService.d.ts +0 -25
  211. package/dist/components/EzScheduler/services/TimezoneService.d.ts +0 -20
  212. package/dist/components/EzScheduler/services/VirtualScrollingService.d.ts +0 -34
  213. package/dist/components/EzScheduler/state/scheduler.store.d.ts +0 -27
  214. package/dist/components/EzScheduler/templates/CellTemplate.d.ts +0 -42
  215. package/dist/components/EzScheduler/templates/EditorTemplate.d.ts +0 -32
  216. package/dist/components/EzScheduler/templates/HeaderTemplate.d.ts +0 -36
  217. package/dist/components/EzScheduler/tests/phase1_rendering.spec.d.ts +0 -1
  218. package/dist/components/EzScheduler/tests/phase2_events.spec.d.ts +0 -1
  219. package/dist/components/EzScheduler/tests/phase3_templates.spec.d.ts +0 -1
  220. package/dist/components/EzScheduler/tests/phase4_export.spec.d.ts +0 -1
  221. package/dist/components/EzScheduler/tests/phase5_advanced.spec.d.ts +0 -1
  222. package/dist/components/EzScheduler/tests/phase6_security.spec.d.ts +0 -1
  223. package/dist/components/EzScheduler/tests/phase7_regression.spec.d.ts +0 -1
  224. package/dist/components/EzScheduler/useEzScheduler.d.ts +0 -156
  225. package/dist/components/EzScheduler/utils/createDragConstraint.d.ts +0 -7
  226. package/dist/components/EzScheduler/utils/getWeekNumber.d.ts +0 -8
  227. package/dist/components/EzScheduler/utils/sanitizeHtml.d.ts +0 -17
  228. package/dist/components/EzScheduler/views/AgendaView.d.ts +0 -28
  229. package/dist/components/EzScheduler/views/DayWeekView.d.ts +0 -177
  230. package/dist/components/EzScheduler/views/MonthView.d.ts +0 -60
  231. package/dist/components/EzScheduler/views/TimelineView.d.ts +0 -116
  232. package/dist/components/EzSignature/EzSignature.d.ts +0 -42
  233. package/dist/components/EzSignature/EzSignature.test.d.ts +0 -1
  234. package/dist/components/EzSignature/EzSignature.types.d.ts +0 -132
  235. package/dist/components/EzSignature/index.d.ts +0 -2
  236. package/dist/components/EzTable/EzColumnMenu.d.ts +0 -7
  237. package/dist/components/EzTable/EzDateFilterTree.d.ts +0 -7
  238. package/dist/components/EzTable/EzExcelFilter.d.ts +0 -7
  239. package/dist/components/EzTable/EzFilterBuilder.d.ts +0 -12
  240. package/dist/components/EzTable/EzGroupingPanel.d.ts +0 -9
  241. package/dist/components/EzTable/EzHeaderContextMenu.d.ts +0 -8
  242. package/dist/components/EzTable/EzPagination.d.ts +0 -19
  243. package/dist/components/EzTable/EzTable.types.d.ts +0 -1483
  244. package/dist/components/EzTable/EzTableEditDialog.d.ts +0 -15
  245. package/dist/components/EzTable/EzTableFooter.d.ts +0 -10
  246. package/dist/components/EzTable/EzTableOverlays.d.ts +0 -11
  247. package/dist/components/EzTable/EzTableStatusBar.d.ts +0 -6
  248. package/dist/components/EzTable/EzTableToolbar.d.ts +0 -58
  249. package/dist/components/EzTable/SmartCell.d.ts +0 -7
  250. package/dist/components/EzTable/__tests__/EzTableDX.test.d.ts +0 -0
  251. package/dist/components/EzTable/__tests__/EzTableEnterprise.test.d.ts +0 -1
  252. package/dist/components/EzTable/__tests__/useEzTable.test.d.ts +0 -1
  253. package/dist/components/EzTable/components/AdvancedColumnFilter.d.ts +0 -16
  254. package/dist/components/EzTable/components/BooleanFilterSection.d.ts +0 -7
  255. package/dist/components/EzTable/components/EzDraggableHeader.d.ts +0 -10
  256. package/dist/components/EzTable/components/EzHeaderDragPreview.d.ts +0 -7
  257. package/dist/components/EzTable/components/EzTableBodySection.d.ts +0 -70
  258. package/dist/components/EzTable/components/EzTableCell.d.ts +0 -46
  259. package/dist/components/EzTable/components/EzTableHeaderSection.d.ts +0 -22
  260. package/dist/components/EzTable/components/EzTablePaginationSection.d.ts +0 -31
  261. package/dist/components/EzTable/components/EzTableRow.d.ts +0 -56
  262. package/dist/components/EzTable/components/FilterActionButtons.d.ts +0 -16
  263. package/dist/components/EzTable/components/FilterRuleSelect.d.ts +0 -26
  264. package/dist/components/EzTable/components/SelectAllCheckbox.d.ts +0 -21
  265. package/dist/components/EzTable/components/SelectFilterSection.d.ts +0 -18
  266. package/dist/components/EzTable/components/VirtualizedFilterList.d.ts +0 -21
  267. package/dist/components/EzTable/constants/filterOptions.d.ts +0 -47
  268. package/dist/components/EzTable/context/EzTableContext.d.ts +0 -10
  269. package/dist/components/EzTable/context/TableConfigContext.d.ts +0 -13
  270. package/dist/components/EzTable/context/TableStore.d.ts +0 -17
  271. package/dist/components/EzTable/filterUtils.d.ts +0 -5
  272. package/dist/components/EzTable/hooks/useAutoFit.d.ts +0 -4
  273. package/dist/components/EzTable/hooks/useCellEventHandlers.d.ts +0 -16
  274. package/dist/components/EzTable/hooks/useColumnSizeVars.d.ts +0 -6
  275. package/dist/components/EzTable/hooks/useContainerResize.d.ts +0 -11
  276. package/dist/components/EzTable/hooks/useDialogStateInitialization.d.ts +0 -8
  277. package/dist/components/EzTable/hooks/useFilterSelection.d.ts +0 -12
  278. package/dist/components/EzTable/hooks/useTableFiltering.d.ts +0 -23
  279. package/dist/components/EzTable/hooks/useTableHistory.d.ts +0 -87
  280. package/dist/components/EzTable/hooks/useTableImperative.d.ts +0 -42
  281. package/dist/components/EzTable/hooks/useTableSelection.d.ts +0 -32
  282. package/dist/components/EzTable/hooks/useTableState.d.ts +0 -33
  283. package/dist/components/EzTable/hooks/useTableVirtualization.d.ts +0 -33
  284. package/dist/components/EzTable/index.d.ts +0 -51
  285. package/dist/components/EzTable/renderers/index.d.ts +0 -6
  286. package/dist/components/EzTable/services/TableService.d.ts +0 -26
  287. package/dist/components/EzTable/useEzTable.d.ts +0 -17
  288. package/dist/components/EzTable/utils/TextMeasurer.d.ts +0 -1
  289. package/dist/components/EzTable/utils/TruncatedTooltip.d.ts +0 -7
  290. package/dist/components/EzTable/utils/columnTypeDetector.d.ts +0 -5
  291. package/dist/components/EzTable/utils/filterTypeGuards.d.ts +0 -3
  292. package/dist/components/EzTable/utils/index.d.ts +0 -1
  293. package/dist/components/EzTreeView/EzTreeView.types.d.ts +0 -364
  294. package/dist/components/EzTreeView/EzTreeViewItem.d.ts +0 -89
  295. package/dist/components/EzTreeView/EzVirtualTree.d.ts +0 -84
  296. package/dist/components/EzTreeView/components/EzTreeViewLoadingSpinner.d.ts +0 -2
  297. package/dist/components/EzTreeView/hooks/useTreeDragDrop.d.ts +0 -31
  298. package/dist/components/EzTreeView/hooks/useTreeExpansion.d.ts +0 -21
  299. package/dist/components/EzTreeView/hooks/useTreeImperative.d.ts +0 -28
  300. package/dist/components/EzTreeView/hooks/useTreeSelection.d.ts +0 -31
  301. package/dist/components/EzTreeView/hooks/useTreeState.d.ts +0 -21
  302. package/dist/components/EzTreeView/hooks/useTreeVirtualization.d.ts +0 -18
  303. package/dist/components/EzTreeView/index.d.ts +0 -40
  304. package/dist/components/EzTreeView/services/TreeService.d.ts +0 -11
  305. package/dist/components/EzTreeView/useEzTreeView.d.ts +0 -62
  306. package/dist/components/EzTreeView/utils/treeUtils.d.ts +0 -17
  307. package/dist/components/shared/components/EzErrorBoundary.d.ts +0 -18
  308. package/dist/components/shared/components/EzLayoutErrorFallback.d.ts +0 -2
  309. package/dist/components/shared/components/EzLoadingSpinner.d.ts +0 -8
  310. package/dist/components/shared/components/EzSchedulerErrorFallback.d.ts +0 -2
  311. package/dist/components/shared/components/EzSortableList.d.ts +0 -12
  312. package/dist/components/shared/components/EzTableErrorFallback.d.ts +0 -2
  313. package/dist/components/shared/components/EzTreeViewErrorFallback.d.ts +0 -2
  314. package/dist/components/ui/avatar.d.ts +0 -5
  315. package/dist/components/ui/badge.d.ts +0 -9
  316. package/dist/components/ui/breadcrumb.d.ts +0 -19
  317. package/dist/components/ui/button.d.ts +0 -12
  318. package/dist/components/ui/calendar.d.ts +0 -15
  319. package/dist/components/ui/card.d.ts +0 -8
  320. package/dist/components/ui/checkbox.d.ts +0 -7
  321. package/dist/components/ui/command.d.ts +0 -78
  322. package/dist/components/ui/context-menu.d.ts +0 -27
  323. package/dist/components/ui/date-time-picker.d.ts +0 -13
  324. package/dist/components/ui/dropdown-menu.d.ts +0 -31
  325. package/dist/components/ui/index.d.ts +0 -26
  326. package/dist/components/ui/input.d.ts +0 -5
  327. package/dist/components/ui/label.d.ts +0 -5
  328. package/dist/components/ui/modal.d.ts +0 -9
  329. package/dist/components/ui/password-input.d.ts +0 -5
  330. package/dist/components/ui/popover.d.ts +0 -8
  331. package/dist/components/ui/progress.d.ts +0 -7
  332. package/dist/components/ui/radio-group.d.ts +0 -5
  333. package/dist/components/ui/scroll-area.d.ts +0 -5
  334. package/dist/components/ui/select.d.ts +0 -24
  335. package/dist/components/ui/skeleton.d.ts +0 -2
  336. package/dist/components/ui/switch.d.ts +0 -4
  337. package/dist/components/ui/table.d.ts +0 -10
  338. package/dist/components/ui/tabs.d.ts +0 -14
  339. package/dist/components/ui/textarea.d.ts +0 -5
  340. package/dist/components/ui/tooltip.d.ts +0 -7
  341. package/dist/date-time-picker-B1Vqp0cm.js +0 -159
  342. package/dist/date-time-picker-BxbQyn8E.cjs +0 -1
  343. package/dist/dropdown-menu-DfJCnVTp.cjs +0 -1
  344. package/dist/index-8lXMYRid.cjs +0 -1
  345. package/dist/index-B-b3RD0Z.js +0 -5160
  346. package/dist/index-BPEl1Iub.js +0 -3059
  347. package/dist/index-Bxj2f_zm.js +0 -2770
  348. package/dist/index-C16Qqt7C.cjs +0 -2
  349. package/dist/index-Dq1wbBSU.cjs +0 -7
  350. package/dist/index-go8U5qNj.cjs +0 -1
  351. package/dist/input-DM6_C-FZ.cjs +0 -1
  352. package/dist/label-Bq-foKkK.js +0 -55
  353. package/dist/label-C-sWMXF8.cjs +0 -1
  354. package/dist/lib/perfect-freehand.d.ts +0 -221
  355. package/dist/lib/utils.d.ts +0 -2
  356. package/dist/popover-6m7K-A8W.js +0 -20
  357. package/dist/popover-BS4mvk_R.cjs +0 -1
  358. package/dist/scroll-area-PsiUoDMK.cjs +0 -1
  359. package/dist/select-KvBf730N.js +0 -29
  360. package/dist/select-ktk_jkew.cjs +0 -1
  361. package/dist/shared/components/AnimatedText.d.ts +0 -44
  362. package/dist/shared/components/BaseCell.d.ts +0 -14
  363. package/dist/shared/components/BooleanRenderer.d.ts +0 -34
  364. package/dist/shared/components/ChartRenderer.d.ts +0 -19
  365. package/dist/shared/components/DeleteConfirmationModal.d.ts +0 -11
  366. package/dist/shared/components/EzContextMenu.d.ts +0 -12
  367. package/dist/shared/components/EzNotificationDropdown.d.ts +0 -1
  368. package/dist/shared/components/HighlightText.d.ts +0 -4
  369. package/dist/shared/components/Modal.d.ts +0 -13
  370. package/dist/shared/components/NotificationPanel.d.ts +0 -2
  371. package/dist/shared/components/PrimitiveRenderer.d.ts +0 -39
  372. package/dist/shared/components/SearchableSelect.d.ts +0 -13
  373. package/dist/shared/components/SelectRenderer.d.ts +0 -33
  374. package/dist/shared/components/StatusBadge.d.ts +0 -17
  375. package/dist/shared/components/TooltipWrapper.d.ts +0 -12
  376. package/dist/shared/components/index.d.ts +0 -9
  377. package/dist/shared/hooks/index.d.ts +0 -56
  378. package/dist/shared/hooks/useBaseComponent.d.ts +0 -59
  379. package/dist/shared/hooks/useComponentImperativeAPI.d.ts +0 -11
  380. package/dist/shared/hooks/useComponentState.d.ts +0 -39
  381. package/dist/shared/hooks/useCurrentTime.d.ts +0 -6
  382. package/dist/shared/hooks/useDataChangeEvents.d.ts +0 -53
  383. package/dist/shared/hooks/useDebounce.d.ts +0 -10
  384. package/dist/shared/hooks/useDeleteConfirmation.d.ts +0 -9
  385. package/dist/shared/hooks/useDialogState.d.ts +0 -21
  386. package/dist/shared/hooks/useDndHandlers.d.ts +0 -19
  387. package/dist/shared/hooks/useEditing.d.ts +0 -107
  388. package/dist/shared/hooks/useEventHandlers.d.ts +0 -61
  389. package/dist/shared/hooks/useEzTheme.d.ts +0 -22
  390. package/dist/shared/hooks/useFieldValidation.d.ts +0 -24
  391. package/dist/shared/hooks/useHistory.d.ts +0 -13
  392. package/dist/shared/hooks/useI18n.d.ts +0 -9
  393. package/dist/shared/hooks/useImperativeAPI.d.ts +0 -8
  394. package/dist/shared/hooks/useInitCoreServices.d.ts +0 -5
  395. package/dist/shared/hooks/useKeyboardNavigation.d.ts +0 -36
  396. package/dist/shared/hooks/useKeyboardShortcuts.d.ts +0 -14
  397. package/dist/shared/hooks/useLifecycleEvents.d.ts +0 -22
  398. package/dist/shared/hooks/useLoadingState.d.ts +0 -17
  399. package/dist/shared/hooks/useMediaQuery.d.ts +0 -6
  400. package/dist/shared/hooks/useNotificationService.d.ts +0 -8
  401. package/dist/shared/hooks/usePerformanceMonitor.d.ts +0 -15
  402. package/dist/shared/hooks/useRowSelectionEvents.d.ts +0 -44
  403. package/dist/shared/hooks/useSelection.d.ts +0 -73
  404. package/dist/shared/hooks/useService.d.ts +0 -12
  405. package/dist/shared/hooks/useServiceState.d.ts +0 -1
  406. package/dist/shared/hooks/useStateChangeEvents.d.ts +0 -61
  407. package/dist/shared/hooks/useTheme.d.ts +0 -13
  408. package/dist/shared/hooks/useVirtualization.d.ts +0 -85
  409. package/dist/shared/services/BaseService.d.ts +0 -57
  410. package/dist/shared/services/ContextMenuService.d.ts +0 -58
  411. package/dist/shared/services/ExportService.d.ts +0 -35
  412. package/dist/shared/services/FocusManagerService.d.ts +0 -33
  413. package/dist/shared/services/HierarchyService.d.ts +0 -43
  414. package/dist/shared/services/I18nService.d.ts +0 -83
  415. package/dist/shared/services/LayoutService.d.ts +0 -80
  416. package/dist/shared/services/NotificationService.d.ts +0 -44
  417. package/dist/shared/services/PersistenceService.d.ts +0 -69
  418. package/dist/shared/services/ServiceRegistry.d.ts +0 -51
  419. package/dist/shared/services/ThemeService.d.ts +0 -49
  420. package/dist/shared/services/VirtualizationService.d.ts +0 -51
  421. package/dist/shared/state/store.d.ts +0 -10
  422. package/dist/shared/themes.d.ts +0 -25
  423. package/dist/shared/types/BaseProps.d.ts +0 -18
  424. package/dist/shared/types/common.d.ts +0 -292
  425. package/dist/shared/types/commonTypes.d.ts +0 -101
  426. package/dist/shared/types/index.d.ts +0 -2
  427. package/dist/shared/utils/canvasUtils.d.ts +0 -16
  428. package/dist/shared/utils/commonUtils.d.ts +0 -28
  429. package/dist/shared/utils/csvUtils.d.ts +0 -7
  430. package/dist/shared/utils/dateUtils.d.ts +0 -5
  431. package/dist/shared/utils/dndUtils.d.ts +0 -16
  432. package/dist/shared/utils/ezStyleUtils.d.ts +0 -64
  433. package/dist/shared/utils/formatUtils.d.ts +0 -20
  434. package/dist/shared/utils/imperativeApiUtils.d.ts +0 -36
  435. package/dist/shared/utils/index.d.ts +0 -11
  436. package/dist/shared/utils/renderUtils.d.ts +0 -6
  437. package/dist/shared/utils/serviceUtils.d.ts +0 -10
  438. package/dist/shared/utils/styleUtils.d.ts +0 -62
  439. package/dist/shared/utils/validationUtils.d.ts +0 -16
  440. package/dist/useInitCoreServices-B7owER7o.js +0 -980
  441. package/dist/useInitCoreServices-BqO0fYCH.cjs +0 -6
  442. package/dist/useService-Bg55R8kF.js +0 -10
  443. package/dist/useService-Bxvu-ABY.cjs +0 -1
  444. package/dist/useServiceState-CJIO90w6.js +0 -274
  445. package/dist/useServiceState-DLyA-FP9.cjs +0 -1
package/README.md CHANGED
@@ -1,7 +1,8 @@
1
1
  # ezUX
2
2
 
3
3
  > A comprehensive, type-safe TanStack First component library designed for modern enterprise applications.
4
-
4
+ >
5
+ > 🔗 **[View ezux-showcase on GitHub](https://github.com/zee24-cmd/ezux-showcase)** | 🌐 **[Live Showcase](https://ezux-showcase.vercel.app)**
5
6
  ![NPM Version](https://img.shields.io/npm/v/ezux?style=flat-square)
6
7
  ![License](https://img.shields.io/npm/l/ezux?style=flat-square)
7
8
  ![Build Status](https://img.shields.io/github/actions/workflow/status/ezux-org/ezux/main?style=flat-square)
@@ -22,6 +23,12 @@
22
23
  - **EzTreeView**: Virtualized tree handling unlimited nesting.
23
24
  - **EzLayout**: A fluid orchestration engine for complex interfaces.
24
25
 
26
+ ## Prerequisites
27
+
28
+ `ezux` is styled using **Tailwind CSS v4**. The library deliberately does **not** bundle Tailwind to avoid bloating your application or causing version conflicts.
29
+
30
+ You must have [Tailwind CSS v4](https://tailwindcss.com/docs/installation) installed and configured in your consumer application to use `ezux` components.
31
+
25
32
  ## Installation
26
33
 
27
34
  ```bash
@@ -0,0 +1,5 @@
1
+ "use strict";const c=require("react"),We=require("@tanstack/react-virtual"),Z=require("./useInitCoreServices-BCuuNsu5.cjs"),Ut=require("@tanstack/virtual-core"),M=require("./EzErrorBoundary-CEdz_hDo.cjs"),Ae=require("react-dom"),g=require("react/jsx-runtime");function pr(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const E=pr(c);class vr{name="VirtualizationService";virtualizers=new Map;createVirtualizer(t,n){const r=new Ut.Virtualizer({count:n.count,getScrollElement:n.getScrollElement,estimateSize:n.estimateSize,overscan:n.overscan??5,horizontal:n.horizontal??!1,scrollToFn:Ut.elementScroll,observeElementRect:(o,s)=>{const a=o.scrollElement;if(!a||a===window)return;const i=new ResizeObserver(l=>{s(l[0].contentRect)});return i.observe(a),()=>i.disconnect()},observeElementOffset:(o,s)=>{const a=o.scrollElement;if(!a)return;const i=()=>{s(a===window?window.scrollY:a.scrollTop,!0)};return a.addEventListener("scroll",i,{passive:!0}),s(a===window?window.scrollY:a.scrollTop,!1),()=>a.removeEventListener("scroll",i)}});return this.virtualizers.set(t,r),r}registerVirtualizer(t,n){this.virtualizers.set(t,n)}getVirtualizer(t){return this.virtualizers.get(t)}cleanup(){this.virtualizers.clear()}}const br=e=>{const{rowCount:t,rowHeight:n=48,overscanCount:r=5,enableRowVirtualization:o=!0,columnCount:s=0,columnWidth:a=150,enableColumnVirtualization:i=!1,scrollMargin:l=0,scrollPaddingStart:u=0,scrollPaddingEnd:f=0,progressiveRendering:d=!1,prefetchDistance:h=5,adaptiveSizing:p=!1,languageDirection:R="ltr",debug:v=!1,customRangeExtractor:b,onScroll:y,onScrollStart:w,onScrollStop:C}=e,A=c.useRef(null),[S,D]=c.useState(d?1:r||h),x=c.useRef(null),m=c.useRef(null),N=c.useRef(!1),z="lanugageDirection";c.useEffect(()=>{if(!d)return;let T;const k=()=>{D(1),clearTimeout(T),T=setTimeout(()=>{D(r||h)},150)},se=A.current;if(se)return se.addEventListener("scroll",k,{passive:!0}),()=>{se.removeEventListener("scroll",k),clearTimeout(T)}},[d,r,h]);const O=c.useMemo(()=>b||(T=>{const k=We.defaultRangeExtractor(T);return k.length===0&&T.count>0?[0]:k}),[b]),U=c.useCallback((T,k,se)=>{We.elementScroll(T,k,se)},[]),Y=c.useMemo(()=>({count:t,getScrollElement:()=>A.current,estimateSize:typeof n=="function"?n:()=>n,overscan:S,scrollMargin:l,scrollPaddingStart:u,scrollPaddingEnd:f,rangeExtractor:O,scrollToFn:U,[z]:R,onChange:T=>{const k=T.scrollOffset??0;m.current!==null&&cancelAnimationFrame(m.current),m.current=requestAnimationFrame(()=>{y?.(k),m.current=null}),T.isScrolling?N.current||(N.current=!0,w?.()):N.current&&(N.current=!1,C?.())}}),[t,n,S,p,l,u,f,O,U,y,w,C]),I=We.useVirtualizer(Y);c.useEffect(()=>{v&&console.log("[DEBUG_VIRTUAL] Virtualizer instance changed")},[I,v]);const $e=Z.useEzServiceRegistry(),pe=c.useMemo(()=>M.getOrRegisterService($e,"VirtualizationService",()=>new vr),[]);c.useEffect(()=>{e.id&&pe&&pe.registerVirtualizer(e.id,I)},[e.id,I,pe]);const W=c.useMemo(()=>({horizontal:!0,count:i&&s?s:0,getScrollElement:()=>A.current,estimateSize:typeof a=="function"?a:()=>a,overscan:S,rangeExtractor:O,[z]:R}),[i,s,a,S,O]),Ue=We.useVirtualizer(W),H=i&&s?Ue:void 0;c.useEffect(()=>()=>{x.current&&clearTimeout(x.current),m.current!==null&&cancelAnimationFrame(m.current)},[]),c.useEffect(()=>{v&&process.env.NODE_ENV!=="production"&&console.log("Virtualization Debug:",{rowCount:t,visibleRows:I.getVirtualItems().length,activeOverscan:S,scrollOffset:I.scrollOffset})},[v,t,I,S]);const ve=(T,k)=>{I.scrollToIndex(T,k)};return{parentRef:A,rowVirtualizer:I,columnVirtualizer:H,scrollToIndex:ve,scrollToRow:ve,scrollToColumn:H?(T,k)=>{H.scrollToIndex(T,k)}:void 0,getVirtualItems:()=>I.getVirtualItems(),scrollOffset:I.scrollOffset??0}};function mr(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return c.useMemo(()=>r=>{t.forEach(o=>o(r))},t)}const nt=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Se(e){const t=Object.prototype.toString.call(e);return t==="[object Window]"||t==="[object global]"}function Ct(e){return"nodeType"in e}function B(e){var t,n;return e?Se(e)?e:Ct(e)&&(t=(n=e.ownerDocument)==null?void 0:n.defaultView)!=null?t:window:window}function wt(e){const{Document:t}=B(e);return e instanceof t}function Ke(e){return Se(e)?!1:e instanceof B(e).HTMLElement}function on(e){return e instanceof B(e).SVGElement}function Re(e){return e?Se(e)?e.document:Ct(e)?wt(e)?e:Ke(e)||on(e)?e.ownerDocument:document:document:document}const ne=nt?c.useLayoutEffect:c.useEffect;function rt(e){const t=c.useRef(e);return ne(()=>{t.current=e}),c.useCallback(function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return t.current==null?void 0:t.current(...r)},[])}function xr(){const e=c.useRef(null),t=c.useCallback((r,o)=>{e.current=setInterval(r,o)},[]),n=c.useCallback(()=>{e.current!==null&&(clearInterval(e.current),e.current=null)},[]);return[t,n]}function je(e,t){t===void 0&&(t=[e]);const n=c.useRef(e);return ne(()=>{n.current!==e&&(n.current=e)},t),n}function Be(e,t){const n=c.useRef();return c.useMemo(()=>{const r=e(n.current);return n.current=r,r},[...t])}function Je(e){const t=rt(e),n=c.useRef(null),r=c.useCallback(o=>{o!==n.current&&t?.(o,n.current),n.current=o},[]);return[n,r]}function Qe(e){const t=c.useRef();return c.useEffect(()=>{t.current=e},[e]),t.current}let ht={};function Fe(e,t){return c.useMemo(()=>{if(t)return t;const n=ht[e]==null?0:ht[e]+1;return ht[e]=n,e+"-"+n},[e,t])}function sn(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return r.reduce((s,a)=>{const i=Object.entries(a);for(const[l,u]of i){const f=s[l];f!=null&&(s[l]=f+e*u)}return s},{...t})}}const Ce=sn(1),Le=sn(-1);function yr(e){return"clientX"in e&&"clientY"in e}function ot(e){if(!e)return!1;const{KeyboardEvent:t}=B(e.target);return t&&e instanceof t}function Cr(e){if(!e)return!1;const{TouchEvent:t}=B(e.target);return t&&e instanceof t}function Ze(e){if(Cr(e)){if(e.touches&&e.touches.length){const{clientX:t,clientY:n}=e.touches[0];return{x:t,y:n}}else if(e.changedTouches&&e.changedTouches.length){const{clientX:t,clientY:n}=e.changedTouches[0];return{x:t,y:n}}}return yr(e)?{x:e.clientX,y:e.clientY}:null}const we=Object.freeze({Translate:{toString(e){if(!e)return;const{x:t,y:n}=e;return"translate3d("+(t?Math.round(t):0)+"px, "+(n?Math.round(n):0)+"px, 0)"}},Scale:{toString(e){if(!e)return;const{scaleX:t,scaleY:n}=e;return"scaleX("+t+") scaleY("+n+")"}},Transform:{toString(e){if(e)return[we.Translate.toString(e),we.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:n,easing:r}=e;return t+" "+n+"ms "+r}}}),Xt="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function wr(e){return e.matches(Xt)?e:e.querySelector(Xt)}const Sr={display:"none"};function Rr(e){let{id:t,value:n}=e;return c.createElement("div",{id:t,style:Sr},n)}function Mr(e){let{id:t,announcement:n,ariaLiveType:r="assertive"}=e;const o={position:"fixed",top:0,left:0,width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"};return c.createElement("div",{id:t,style:o,role:"status","aria-live":r,"aria-atomic":!0},n)}function Er(){const[e,t]=c.useState("");return{announce:c.useCallback(r=>{r!=null&&t(r)},[]),announcement:e}}const an=c.createContext(null);function Dr(e){const t=c.useContext(an);c.useEffect(()=>{if(!t)throw new Error("useDndMonitor must be used within a children of <DndContext>");return t(e)},[e,t])}function Nr(){const[e]=c.useState(()=>new Set),t=c.useCallback(r=>(e.add(r),()=>e.delete(r)),[e]);return[c.useCallback(r=>{let{type:o,event:s}=r;e.forEach(a=>{var i;return(i=a[o])==null?void 0:i.call(a,s)})},[e]),t]}const Or={draggable:`
2
+ To pick up a draggable item, press the space bar.
3
+ While dragging, use the arrow keys to move the item.
4
+ Press space again to drop the item in its new position, or press escape to cancel.
5
+ `},Ar={onDragStart(e){let{active:t}=e;return"Picked up draggable item "+t.id+"."},onDragOver(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was moved over droppable area "+n.id+".":"Draggable item "+t.id+" is no longer over a droppable area."},onDragEnd(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was dropped over droppable area "+n.id:"Draggable item "+t.id+" was dropped."},onDragCancel(e){let{active:t}=e;return"Dragging was cancelled. Draggable item "+t.id+" was dropped."}};function Tr(e){let{announcements:t=Ar,container:n,hiddenTextDescribedById:r,screenReaderInstructions:o=Or}=e;const{announce:s,announcement:a}=Er(),i=Fe("DndLiveRegion"),[l,u]=c.useState(!1);if(c.useEffect(()=>{u(!0)},[]),Dr(c.useMemo(()=>({onDragStart(d){let{active:h}=d;s(t.onDragStart({active:h}))},onDragMove(d){let{active:h,over:p}=d;t.onDragMove&&s(t.onDragMove({active:h,over:p}))},onDragOver(d){let{active:h,over:p}=d;s(t.onDragOver({active:h,over:p}))},onDragEnd(d){let{active:h,over:p}=d;s(t.onDragEnd({active:h,over:p}))},onDragCancel(d){let{active:h,over:p}=d;s(t.onDragCancel({active:h,over:p}))}}),[s,t])),!l)return null;const f=c.createElement(c.Fragment,null,c.createElement(Rr,{id:r,value:o.draggable}),c.createElement(Mr,{id:i,announcement:a}));return n?Ae.createPortal(f,n):f}var P;(function(e){e.DragStart="dragStart",e.DragMove="dragMove",e.DragEnd="dragEnd",e.DragCancel="dragCancel",e.DragOver="dragOver",e.RegisterDroppable="registerDroppable",e.SetDroppableDisabled="setDroppableDisabled",e.UnregisterDroppable="unregisterDroppable"})(P||(P={}));function et(){}function zr(e,t){return c.useMemo(()=>({sensor:e,options:t??{}}),[e,t])}function Ir(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return c.useMemo(()=>[...t].filter(r=>r!=null),[...t])}const Q=Object.freeze({x:0,y:0});function St(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function Pr(e,t){const n=Ze(e);if(!n)return"0 0";const r={x:(n.x-t.left)/t.width*100,y:(n.y-t.top)/t.height*100};return r.x+"% "+r.y+"%"}function Rt(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return n-r}function kr(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return r-n}function bt(e){let{left:t,top:n,height:r,width:o}=e;return[{x:t,y:n},{x:t+o,y:n},{x:t,y:n+r},{x:t+o,y:n+r}]}function cn(e,t){if(!e||e.length===0)return null;const[n]=e;return n[t]}function Gt(e,t,n){return t===void 0&&(t=e.left),n===void 0&&(n=e.top),{x:t+e.width*.5,y:n+e.height*.5}}const jr=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const o=Gt(t,t.left,t.top),s=[];for(const a of r){const{id:i}=a,l=n.get(i);if(l){const u=St(Gt(l),o);s.push({id:i,data:{droppableContainer:a,value:u}})}}return s.sort(Rt)},Lr=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const o=bt(t),s=[];for(const a of r){const{id:i}=a,l=n.get(i);if(l){const u=bt(l),f=o.reduce((h,p,R)=>h+St(u[R],p),0),d=Number((f/4).toFixed(4));s.push({id:i,data:{droppableContainer:a,value:d}})}}return s.sort(Rt)};function _r(e,t){const n=Math.max(t.top,e.top),r=Math.max(t.left,e.left),o=Math.min(t.left+t.width,e.left+e.width),s=Math.min(t.top+t.height,e.top+e.height),a=o-r,i=s-n;if(r<o&&n<s){const l=t.width*t.height,u=e.width*e.height,f=a*i,d=f/(l+u-f);return Number(d.toFixed(4))}return 0}const Kr=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const o=[];for(const s of r){const{id:a}=s,i=n.get(a);if(i){const l=_r(i,t);l>0&&o.push({id:a,data:{droppableContainer:s,value:l}})}}return o.sort(kr)};function Br(e,t){const{top:n,left:r,bottom:o,right:s}=t;return n<=e.y&&e.y<=o&&r<=e.x&&e.x<=s}const Fr=e=>{let{droppableContainers:t,droppableRects:n,pointerCoordinates:r}=e;if(!r)return[];const o=[];for(const s of t){const{id:a}=s,i=n.get(a);if(i&&Br(r,i)){const u=bt(i).reduce((d,h)=>d+St(r,h),0),f=Number((u/4).toFixed(4));o.push({id:a,data:{droppableContainer:s,value:f}})}}return o.sort(Rt)};function Vr(e,t,n){return{...e,scaleX:t&&n?t.width/n.width:1,scaleY:t&&n?t.height/n.height:1}}function ln(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:Q}function $r(e){return function(n){for(var r=arguments.length,o=new Array(r>1?r-1:0),s=1;s<r;s++)o[s-1]=arguments[s];return o.reduce((a,i)=>({...a,top:a.top+e*i.y,bottom:a.bottom+e*i.y,left:a.left+e*i.x,right:a.right+e*i.x}),{...n})}}const Ur=$r(1);function un(e){if(e.startsWith("matrix3d(")){const t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}else if(e.startsWith("matrix(")){const t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}function Xr(e,t,n){const r=un(t);if(!r)return e;const{scaleX:o,scaleY:s,x:a,y:i}=r,l=e.left-a-(1-o)*parseFloat(n),u=e.top-i-(1-s)*parseFloat(n.slice(n.indexOf(" ")+1)),f=o?e.width/o:e.width,d=s?e.height/s:e.height;return{width:f,height:d,top:u,right:l+f,bottom:u+d,left:l}}const Gr={ignoreTransform:!1};function Me(e,t){t===void 0&&(t=Gr);let n=e.getBoundingClientRect();if(t.ignoreTransform){const{transform:u,transformOrigin:f}=B(e).getComputedStyle(e);u&&(n=Xr(n,u,f))}const{top:r,left:o,width:s,height:a,bottom:i,right:l}=n;return{top:r,left:o,width:s,height:a,bottom:i,right:l}}function Yt(e){return Me(e,{ignoreTransform:!0})}function Yr(e){const t=e.innerWidth,n=e.innerHeight;return{top:0,left:0,right:t,bottom:n,width:t,height:n}}function Wr(e,t){return t===void 0&&(t=B(e).getComputedStyle(e)),t.position==="fixed"}function Hr(e,t){t===void 0&&(t=B(e).getComputedStyle(e));const n=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(o=>{const s=t[o];return typeof s=="string"?n.test(s):!1})}function st(e,t){const n=[];function r(o){if(t!=null&&n.length>=t||!o)return n;if(wt(o)&&o.scrollingElement!=null&&!n.includes(o.scrollingElement))return n.push(o.scrollingElement),n;if(!Ke(o)||on(o)||n.includes(o))return n;const s=B(e).getComputedStyle(o);return o!==e&&Hr(o,s)&&n.push(o),Wr(o,s)?n:r(o.parentNode)}return e?r(e):n}function dn(e){const[t]=st(e,1);return t??null}function gt(e){return!nt||!e?null:Se(e)?e:Ct(e)?wt(e)||e===Re(e).scrollingElement?window:Ke(e)?e:null:null}function fn(e){return Se(e)?e.scrollX:e.scrollLeft}function hn(e){return Se(e)?e.scrollY:e.scrollTop}function mt(e){return{x:fn(e),y:hn(e)}}var j;(function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"})(j||(j={}));function gn(e){return!nt||!e?!1:e===document.scrollingElement}function pn(e){const t={x:0,y:0},n=gn(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},r={x:e.scrollWidth-n.width,y:e.scrollHeight-n.height},o=e.scrollTop<=t.y,s=e.scrollLeft<=t.x,a=e.scrollTop>=r.y,i=e.scrollLeft>=r.x;return{isTop:o,isLeft:s,isBottom:a,isRight:i,maxScroll:r,minScroll:t}}const qr={x:.2,y:.2};function Jr(e,t,n,r,o){let{top:s,left:a,right:i,bottom:l}=n;r===void 0&&(r=10),o===void 0&&(o=qr);const{isTop:u,isBottom:f,isLeft:d,isRight:h}=pn(e),p={x:0,y:0},R={x:0,y:0},v={height:t.height*o.y,width:t.width*o.x};return!u&&s<=t.top+v.height?(p.y=j.Backward,R.y=r*Math.abs((t.top+v.height-s)/v.height)):!f&&l>=t.bottom-v.height&&(p.y=j.Forward,R.y=r*Math.abs((t.bottom-v.height-l)/v.height)),!h&&i>=t.right-v.width?(p.x=j.Forward,R.x=r*Math.abs((t.right-v.width-i)/v.width)):!d&&a<=t.left+v.width&&(p.x=j.Backward,R.x=r*Math.abs((t.left+v.width-a)/v.width)),{direction:p,speed:R}}function Qr(e){if(e===document.scrollingElement){const{innerWidth:s,innerHeight:a}=window;return{top:0,left:0,right:s,bottom:a,width:s,height:a}}const{top:t,left:n,right:r,bottom:o}=e.getBoundingClientRect();return{top:t,left:n,right:r,bottom:o,width:e.clientWidth,height:e.clientHeight}}function vn(e){return e.reduce((t,n)=>Ce(t,mt(n)),Q)}function Zr(e){return e.reduce((t,n)=>t+fn(n),0)}function eo(e){return e.reduce((t,n)=>t+hn(n),0)}function bn(e,t){if(t===void 0&&(t=Me),!e)return;const{top:n,left:r,bottom:o,right:s}=t(e);dn(e)&&(o<=0||s<=0||n>=window.innerHeight||r>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}const to=[["x",["left","right"],Zr],["y",["top","bottom"],eo]];class Mt{constructor(t,n){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;const r=st(n),o=vn(r);this.rect={...t},this.width=t.width,this.height=t.height;for(const[s,a,i]of to)for(const l of a)Object.defineProperty(this,l,{get:()=>{const u=i(r),f=o[s]-u;return this.rect[l]+f},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class Te{constructor(t){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(n=>{var r;return(r=this.target)==null?void 0:r.removeEventListener(...n)})},this.target=t}add(t,n,r){var o;(o=this.target)==null||o.addEventListener(t,n,r),this.listeners.push([t,n,r])}}function no(e){const{EventTarget:t}=B(e);return e instanceof t?e:Re(e)}function pt(e,t){const n=Math.abs(e.x),r=Math.abs(e.y);return typeof t=="number"?Math.sqrt(n**2+r**2)>t:"x"in t&&"y"in t?n>t.x&&r>t.y:"x"in t?n>t.x:"y"in t?r>t.y:!1}var G;(function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"})(G||(G={}));function Wt(e){e.preventDefault()}function ro(e){e.stopPropagation()}exports.KeyboardCode=void 0;(function(e){e.Space="Space",e.Down="ArrowDown",e.Right="ArrowRight",e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter",e.Tab="Tab"})(exports.KeyboardCode||(exports.KeyboardCode={}));const mn={start:[exports.KeyboardCode.Space,exports.KeyboardCode.Enter],cancel:[exports.KeyboardCode.Esc],end:[exports.KeyboardCode.Space,exports.KeyboardCode.Enter,exports.KeyboardCode.Tab]},oo=(e,t)=>{let{currentCoordinates:n}=t;switch(e.code){case exports.KeyboardCode.Right:return{...n,x:n.x+25};case exports.KeyboardCode.Left:return{...n,x:n.x-25};case exports.KeyboardCode.Down:return{...n,y:n.y+25};case exports.KeyboardCode.Up:return{...n,y:n.y-25}}};class Et{constructor(t){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=t;const{event:{target:n}}=t;this.props=t,this.listeners=new Te(Re(n)),this.windowListeners=new Te(B(n)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(G.Resize,this.handleCancel),this.windowListeners.add(G.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(G.Keydown,this.handleKeyDown))}handleStart(){const{activeNode:t,onStart:n}=this.props,r=t.node.current;r&&bn(r),n(Q)}handleKeyDown(t){if(ot(t)){const{active:n,context:r,options:o}=this.props,{keyboardCodes:s=mn,coordinateGetter:a=oo,scrollBehavior:i="smooth"}=o,{code:l}=t;if(s.end.includes(l)){this.handleEnd(t);return}if(s.cancel.includes(l)){this.handleCancel(t);return}const{collisionRect:u}=r.current,f=u?{x:u.left,y:u.top}:Q;this.referenceCoordinates||(this.referenceCoordinates=f);const d=a(t,{active:n,context:r.current,currentCoordinates:f});if(d){const h=Le(d,f),p={x:0,y:0},{scrollableAncestors:R}=r.current;for(const v of R){const b=t.code,{isTop:y,isRight:w,isLeft:C,isBottom:A,maxScroll:S,minScroll:D}=pn(v),x=Qr(v),m={x:Math.min(b===exports.KeyboardCode.Right?x.right-x.width/2:x.right,Math.max(b===exports.KeyboardCode.Right?x.left:x.left+x.width/2,d.x)),y:Math.min(b===exports.KeyboardCode.Down?x.bottom-x.height/2:x.bottom,Math.max(b===exports.KeyboardCode.Down?x.top:x.top+x.height/2,d.y))},N=b===exports.KeyboardCode.Right&&!w||b===exports.KeyboardCode.Left&&!C,z=b===exports.KeyboardCode.Down&&!A||b===exports.KeyboardCode.Up&&!y;if(N&&m.x!==d.x){const O=v.scrollLeft+h.x,U=b===exports.KeyboardCode.Right&&O<=S.x||b===exports.KeyboardCode.Left&&O>=D.x;if(U&&!h.y){v.scrollTo({left:O,behavior:i});return}U?p.x=v.scrollLeft-O:p.x=b===exports.KeyboardCode.Right?v.scrollLeft-S.x:v.scrollLeft-D.x,p.x&&v.scrollBy({left:-p.x,behavior:i});break}else if(z&&m.y!==d.y){const O=v.scrollTop+h.y,U=b===exports.KeyboardCode.Down&&O<=S.y||b===exports.KeyboardCode.Up&&O>=D.y;if(U&&!h.x){v.scrollTo({top:O,behavior:i});return}U?p.y=v.scrollTop-O:p.y=b===exports.KeyboardCode.Down?v.scrollTop-S.y:v.scrollTop-D.y,p.y&&v.scrollBy({top:-p.y,behavior:i});break}}this.handleMove(t,Ce(Le(d,this.referenceCoordinates),p))}}}handleMove(t,n){const{onMove:r}=this.props;t.preventDefault(),r(n)}handleEnd(t){const{onEnd:n}=this.props;t.preventDefault(),this.detach(),n()}handleCancel(t){const{onCancel:n}=this.props;t.preventDefault(),this.detach(),n()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}Et.activators=[{eventName:"onKeyDown",handler:(e,t,n)=>{let{keyboardCodes:r=mn,onActivation:o}=t,{active:s}=n;const{code:a}=e.nativeEvent;if(r.start.includes(a)){const i=s.activatorNode.current;return i&&e.target!==i?!1:(e.preventDefault(),o?.({event:e.nativeEvent}),!0)}return!1}}];function Ht(e){return!!(e&&"distance"in e)}function qt(e){return!!(e&&"delay"in e)}class Dt{constructor(t,n,r){var o;r===void 0&&(r=no(t.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=t,this.events=n;const{event:s}=t,{target:a}=s;this.props=t,this.events=n,this.document=Re(a),this.documentListeners=new Te(this.document),this.listeners=new Te(r),this.windowListeners=new Te(B(a)),this.initialCoordinates=(o=Ze(s))!=null?o:Q,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){const{events:t,props:{options:{activationConstraint:n,bypassActivationConstraint:r}}}=this;if(this.listeners.add(t.move.name,this.handleMove,{passive:!1}),this.listeners.add(t.end.name,this.handleEnd),t.cancel&&this.listeners.add(t.cancel.name,this.handleCancel),this.windowListeners.add(G.Resize,this.handleCancel),this.windowListeners.add(G.DragStart,Wt),this.windowListeners.add(G.VisibilityChange,this.handleCancel),this.windowListeners.add(G.ContextMenu,Wt),this.documentListeners.add(G.Keydown,this.handleKeydown),n){if(r!=null&&r({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(qt(n)){this.timeoutId=setTimeout(this.handleStart,n.delay),this.handlePending(n);return}if(Ht(n)){this.handlePending(n);return}}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),this.timeoutId!==null&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handlePending(t,n){const{active:r,onPending:o}=this.props;o(r,t,this.initialCoordinates,n)}handleStart(){const{initialCoordinates:t}=this,{onStart:n}=this.props;t&&(this.activated=!0,this.documentListeners.add(G.Click,ro,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(G.SelectionChange,this.removeTextSelection),n(t))}handleMove(t){var n;const{activated:r,initialCoordinates:o,props:s}=this,{onMove:a,options:{activationConstraint:i}}=s;if(!o)return;const l=(n=Ze(t))!=null?n:Q,u=Le(o,l);if(!r&&i){if(Ht(i)){if(i.tolerance!=null&&pt(u,i.tolerance))return this.handleCancel();if(pt(u,i.distance))return this.handleStart()}if(qt(i)&&pt(u,i.tolerance))return this.handleCancel();this.handlePending(i,u);return}t.cancelable&&t.preventDefault(),a(l)}handleEnd(){const{onAbort:t,onEnd:n}=this.props;this.detach(),this.activated||t(this.props.active),n()}handleCancel(){const{onAbort:t,onCancel:n}=this.props;this.detach(),this.activated||t(this.props.active),n()}handleKeydown(t){t.code===exports.KeyboardCode.Esc&&this.handleCancel()}removeTextSelection(){var t;(t=this.document.getSelection())==null||t.removeAllRanges()}}const so={cancel:{name:"pointercancel"},move:{name:"pointermove"},end:{name:"pointerup"}};class Nt extends Dt{constructor(t){const{event:n}=t,r=Re(n.target);super(t,so,r)}}Nt.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return!n.isPrimary||n.button!==0?!1:(r?.({event:n}),!0)}}];const io={move:{name:"mousemove"},end:{name:"mouseup"}};var xt;(function(e){e[e.RightClick=2]="RightClick"})(xt||(xt={}));class ao extends Dt{constructor(t){super(t,io,Re(t.event.target))}}ao.activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return n.button===xt.RightClick?!1:(r?.({event:n}),!0)}}];const vt={cancel:{name:"touchcancel"},move:{name:"touchmove"},end:{name:"touchend"}};class co extends Dt{constructor(t){super(t,vt)}static setup(){return window.addEventListener(vt.move.name,t,{capture:!1,passive:!1}),function(){window.removeEventListener(vt.move.name,t)};function t(){}}}co.activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;const{touches:o}=n;return o.length>1?!1:(r?.({event:n}),!0)}}];var ze;(function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"})(ze||(ze={}));var tt;(function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"})(tt||(tt={}));function lo(e){let{acceleration:t,activator:n=ze.Pointer,canScroll:r,draggingRect:o,enabled:s,interval:a=5,order:i=tt.TreeOrder,pointerCoordinates:l,scrollableAncestors:u,scrollableAncestorRects:f,delta:d,threshold:h}=e;const p=fo({delta:d,disabled:!s}),[R,v]=xr(),b=c.useRef({x:0,y:0}),y=c.useRef({x:0,y:0}),w=c.useMemo(()=>{switch(n){case ze.Pointer:return l?{top:l.y,bottom:l.y,left:l.x,right:l.x}:null;case ze.DraggableRect:return o}},[n,o,l]),C=c.useRef(null),A=c.useCallback(()=>{const D=C.current;if(!D)return;const x=b.current.x*y.current.x,m=b.current.y*y.current.y;D.scrollBy(x,m)},[]),S=c.useMemo(()=>i===tt.TreeOrder?[...u].reverse():u,[i,u]);c.useEffect(()=>{if(!s||!u.length||!w){v();return}for(const D of S){if(r?.(D)===!1)continue;const x=u.indexOf(D),m=f[x];if(!m)continue;const{direction:N,speed:z}=Jr(D,m,w,t,h);for(const O of["x","y"])p[O][N[O]]||(z[O]=0,N[O]=0);if(z.x>0||z.y>0){v(),C.current=D,R(A,a),b.current=z,y.current=N;return}}b.current={x:0,y:0},y.current={x:0,y:0},v()},[t,A,r,v,s,a,JSON.stringify(w),JSON.stringify(p),R,u,S,f,JSON.stringify(h)])}const uo={x:{[j.Backward]:!1,[j.Forward]:!1},y:{[j.Backward]:!1,[j.Forward]:!1}};function fo(e){let{delta:t,disabled:n}=e;const r=Qe(t);return Be(o=>{if(n||!r||!o)return uo;const s={x:Math.sign(t.x-r.x),y:Math.sign(t.y-r.y)};return{x:{[j.Backward]:o.x[j.Backward]||s.x===-1,[j.Forward]:o.x[j.Forward]||s.x===1},y:{[j.Backward]:o.y[j.Backward]||s.y===-1,[j.Forward]:o.y[j.Forward]||s.y===1}}},[n,t,r])}function ho(e,t){const n=t!=null?e.get(t):void 0,r=n?n.node.current:null;return Be(o=>{var s;return t==null?null:(s=r??o)!=null?s:null},[r,t])}function go(e,t){return c.useMemo(()=>e.reduce((n,r)=>{const{sensor:o}=r,s=o.activators.map(a=>({eventName:a.eventName,handler:t(a.handler,r)}));return[...n,...s]},[]),[e,t])}var _e;(function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"})(_e||(_e={}));var yt;(function(e){e.Optimized="optimized"})(yt||(yt={}));const Jt=new Map;function po(e,t){let{dragging:n,dependencies:r,config:o}=t;const[s,a]=c.useState(null),{frequency:i,measure:l,strategy:u}=o,f=c.useRef(e),d=b(),h=je(d),p=c.useCallback(function(y){y===void 0&&(y=[]),!h.current&&a(w=>w===null?y:w.concat(y.filter(C=>!w.includes(C))))},[h]),R=c.useRef(null),v=Be(y=>{if(d&&!n)return Jt;if(!y||y===Jt||f.current!==e||s!=null){const w=new Map;for(let C of e){if(!C)continue;if(s&&s.length>0&&!s.includes(C.id)&&C.rect.current){w.set(C.id,C.rect.current);continue}const A=C.node.current,S=A?new Mt(l(A),A):null;C.rect.current=S,S&&w.set(C.id,S)}return w}return y},[e,s,n,d,l]);return c.useEffect(()=>{f.current=e},[e]),c.useEffect(()=>{d||p()},[n,d]),c.useEffect(()=>{s&&s.length>0&&a(null)},[JSON.stringify(s)]),c.useEffect(()=>{d||typeof i!="number"||R.current!==null||(R.current=setTimeout(()=>{p(),R.current=null},i))},[i,d,p,...r]),{droppableRects:v,measureDroppableContainers:p,measuringScheduled:s!=null};function b(){switch(u){case _e.Always:return!1;case _e.BeforeDragging:return n;default:return!n}}}function Ot(e,t){return Be(n=>e?n||(typeof t=="function"?t(e):e):null,[t,e])}function vo(e,t){return Ot(e,t)}function bo(e){let{callback:t,disabled:n}=e;const r=rt(t),o=c.useMemo(()=>{if(n||typeof window>"u"||typeof window.MutationObserver>"u")return;const{MutationObserver:s}=window;return new s(r)},[r,n]);return c.useEffect(()=>()=>o?.disconnect(),[o]),o}function it(e){let{callback:t,disabled:n}=e;const r=rt(t),o=c.useMemo(()=>{if(n||typeof window>"u"||typeof window.ResizeObserver>"u")return;const{ResizeObserver:s}=window;return new s(r)},[n]);return c.useEffect(()=>()=>o?.disconnect(),[o]),o}function mo(e){return new Mt(Me(e),e)}function Qt(e,t,n){t===void 0&&(t=mo);const[r,o]=c.useState(null);function s(){o(l=>{if(!e)return null;if(e.isConnected===!1){var u;return(u=l??n)!=null?u:null}const f=t(e);return JSON.stringify(l)===JSON.stringify(f)?l:f})}const a=bo({callback(l){if(e)for(const u of l){const{type:f,target:d}=u;if(f==="childList"&&d instanceof HTMLElement&&d.contains(e)){s();break}}}}),i=it({callback:s});return ne(()=>{s(),e?(i?.observe(e),a?.observe(document.body,{childList:!0,subtree:!0})):(i?.disconnect(),a?.disconnect())},[e]),r}function xo(e){const t=Ot(e);return ln(e,t)}const Zt=[];function yo(e){const t=c.useRef(e),n=Be(r=>e?r&&r!==Zt&&e&&t.current&&e.parentNode===t.current.parentNode?r:st(e):Zt,[e]);return c.useEffect(()=>{t.current=e},[e]),n}function Co(e){const[t,n]=c.useState(null),r=c.useRef(e),o=c.useCallback(s=>{const a=gt(s.target);a&&n(i=>i?(i.set(a,mt(a)),new Map(i)):null)},[]);return c.useEffect(()=>{const s=r.current;if(e!==s){a(s);const i=e.map(l=>{const u=gt(l);return u?(u.addEventListener("scroll",o,{passive:!0}),[u,mt(u)]):null}).filter(l=>l!=null);n(i.length?new Map(i):null),r.current=e}return()=>{a(e),a(s)};function a(i){i.forEach(l=>{const u=gt(l);u?.removeEventListener("scroll",o)})}},[o,e]),c.useMemo(()=>e.length?t?Array.from(t.values()).reduce((s,a)=>Ce(s,a),Q):vn(e):Q,[e,t])}function en(e,t){t===void 0&&(t=[]);const n=c.useRef(null);return c.useEffect(()=>{n.current=null},t),c.useEffect(()=>{const r=e!==Q;r&&!n.current&&(n.current=e),!r&&n.current&&(n.current=null)},[e]),n.current?Le(e,n.current):Q}function wo(e){c.useEffect(()=>{if(!nt)return;const t=e.map(n=>{let{sensor:r}=n;return r.setup==null?void 0:r.setup()});return()=>{for(const n of t)n?.()}},e.map(t=>{let{sensor:n}=t;return n}))}function So(e,t){return c.useMemo(()=>e.reduce((n,r)=>{let{eventName:o,handler:s}=r;return n[o]=a=>{s(a,t)},n},{}),[e,t])}function xn(e){return c.useMemo(()=>e?Yr(e):null,[e])}const tn=[];function Ro(e,t){t===void 0&&(t=Me);const[n]=e,r=xn(n?B(n):null),[o,s]=c.useState(tn);function a(){s(()=>e.length?e.map(l=>gn(l)?r:new Mt(t(l),l)):tn)}const i=it({callback:a});return ne(()=>{i?.disconnect(),a(),e.forEach(l=>i?.observe(l))},[e]),o}function yn(e){if(!e)return null;if(e.children.length>1)return e;const t=e.children[0];return Ke(t)?t:e}function Mo(e){let{measure:t}=e;const[n,r]=c.useState(null),o=c.useCallback(u=>{for(const{target:f}of u)if(Ke(f)){r(d=>{const h=t(f);return d?{...d,width:h.width,height:h.height}:h});break}},[t]),s=it({callback:o}),a=c.useCallback(u=>{const f=yn(u);s?.disconnect(),f&&s?.observe(f),r(f?t(f):null)},[t,s]),[i,l]=Je(a);return c.useMemo(()=>({nodeRef:i,rect:n,setRef:l}),[n,i,l])}const Eo=[{sensor:Nt,options:{}},{sensor:Et,options:{}}],Do={current:{}},qe={draggable:{measure:Yt},droppable:{measure:Yt,strategy:_e.WhileDragging,frequency:yt.Optimized},dragOverlay:{measure:Me}};class Ie extends Map{get(t){var n;return t!=null&&(n=super.get(t))!=null?n:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(t=>{let{disabled:n}=t;return!n})}getNodeFor(t){var n,r;return(n=(r=this.get(t))==null?void 0:r.node.current)!=null?n:void 0}}const No={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new Ie,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:et},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:qe,measureDroppableContainers:et,windowRect:null,measuringScheduled:!1},Cn={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:et,draggableNodes:new Map,over:null,measureDroppableContainers:et},Ve=c.createContext(Cn),wn=c.createContext(No);function Oo(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new Ie}}}function Ao(e,t){switch(t.type){case P.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case P.DragMove:return e.draggable.active==null?e:{...e,draggable:{...e.draggable,translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}}};case P.DragEnd:case P.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case P.RegisterDroppable:{const{element:n}=t,{id:r}=n,o=new Ie(e.droppable.containers);return o.set(r,n),{...e,droppable:{...e.droppable,containers:o}}}case P.SetDroppableDisabled:{const{id:n,key:r,disabled:o}=t,s=e.droppable.containers.get(n);if(!s||r!==s.key)return e;const a=new Ie(e.droppable.containers);return a.set(n,{...s,disabled:o}),{...e,droppable:{...e.droppable,containers:a}}}case P.UnregisterDroppable:{const{id:n,key:r}=t,o=e.droppable.containers.get(n);if(!o||r!==o.key)return e;const s=new Ie(e.droppable.containers);return s.delete(n),{...e,droppable:{...e.droppable,containers:s}}}default:return e}}function To(e){let{disabled:t}=e;const{active:n,activatorEvent:r,draggableNodes:o}=c.useContext(Ve),s=Qe(r),a=Qe(n?.id);return c.useEffect(()=>{if(!t&&!r&&s&&a!=null){if(!ot(s)||document.activeElement===s.target)return;const i=o.get(a);if(!i)return;const{activatorNode:l,node:u}=i;if(!l.current&&!u.current)return;requestAnimationFrame(()=>{for(const f of[l.current,u.current]){if(!f)continue;const d=wr(f);if(d){d.focus();break}}})}},[r,t,o,a,s]),null}function Sn(e,t){let{transform:n,...r}=t;return e!=null&&e.length?e.reduce((o,s)=>s({transform:o,...r}),n):n}function zo(e){return c.useMemo(()=>({draggable:{...qe.draggable,...e?.draggable},droppable:{...qe.droppable,...e?.droppable},dragOverlay:{...qe.dragOverlay,...e?.dragOverlay}}),[e?.draggable,e?.droppable,e?.dragOverlay])}function Io(e){let{activeNode:t,measure:n,initialRect:r,config:o=!0}=e;const s=c.useRef(!1),{x:a,y:i}=typeof o=="boolean"?{x:o,y:o}:o;ne(()=>{if(!a&&!i||!t){s.current=!1;return}if(s.current||!r)return;const u=t?.node.current;if(!u||u.isConnected===!1)return;const f=n(u),d=ln(f,r);if(a||(d.x=0),i||(d.y=0),s.current=!0,Math.abs(d.x)>0||Math.abs(d.y)>0){const h=dn(u);h&&h.scrollBy({top:d.y,left:d.x})}},[t,a,i,r,n])}const at=c.createContext({...Q,scaleX:1,scaleY:1});var de;(function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"})(de||(de={}));const Po=c.memo(function(t){var n,r,o,s;let{id:a,accessibility:i,autoScroll:l=!0,children:u,sensors:f=Eo,collisionDetection:d=Kr,measuring:h,modifiers:p,...R}=t;const v=c.useReducer(Ao,void 0,Oo),[b,y]=v,[w,C]=Nr(),[A,S]=c.useState(de.Uninitialized),D=A===de.Initialized,{draggable:{active:x,nodes:m,translate:N},droppable:{containers:z}}=b,O=x!=null?m.get(x):null,U=c.useRef({initial:null,translated:null}),Y=c.useMemo(()=>{var _;return x!=null?{id:x,data:(_=O?.data)!=null?_:Do,rect:U}:null},[x,O]),I=c.useRef(null),[$e,pe]=c.useState(null),[W,Ue]=c.useState(null),H=je(R,Object.values(R)),ve=Fe("DndDescribedBy",a),ct=c.useMemo(()=>z.getEnabled(),[z]),oe=zo(h),{droppableRects:T,measureDroppableContainers:k,measuringScheduled:se}=po(ct,{dragging:D,dependencies:[N.x,N.y],config:oe.droppable}),q=ho(m,x),zt=c.useMemo(()=>W?Ze(W):null,[W]),It=gr(),Pt=vo(q,oe.draggable.measure);Io({activeNode:x!=null?m.get(x):null,config:It.layoutShiftCompensation,initialRect:Pt,measure:oe.draggable.measure});const J=Qt(q,oe.draggable.measure,Pt),lt=Qt(q?q.parentElement:null),he=c.useRef({activatorEvent:null,active:null,activeNode:q,collisionRect:null,collisions:null,droppableRects:T,draggableNodes:m,draggingNode:null,draggingNodeRect:null,droppableContainers:z,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),kt=z.getNodeFor((n=he.current.over)==null?void 0:n.id),ge=Mo({measure:oe.dragOverlay.measure}),Xe=(r=ge.nodeRef.current)!=null?r:q,be=D?(o=ge.rect)!=null?o:J:null,jt=!!(ge.nodeRef.current&&ge.rect),Lt=xo(jt?null:J),ut=xn(Xe?B(Xe):null),ie=yo(D?kt??q:null),Ge=Ro(ie),Ye=Sn(p,{transform:{x:N.x-Lt.x,y:N.y-Lt.y,scaleX:1,scaleY:1},activatorEvent:W,active:Y,activeNodeRect:J,containerNodeRect:lt,draggingNodeRect:be,over:he.current.over,overlayNodeRect:ge.rect,scrollableAncestors:ie,scrollableAncestorRects:Ge,windowRect:ut}),_t=zt?Ce(zt,N):null,Kt=Co(ie),ar=en(Kt),cr=en(Kt,[J]),me=Ce(Ye,ar),xe=be?Ur(be,Ye):null,Ee=Y&&xe?d({active:Y,collisionRect:xe,droppableRects:T,droppableContainers:ct,pointerCoordinates:_t}):null,Bt=cn(Ee,"id"),[ae,Ft]=c.useState(null),lr=jt?Ye:Ce(Ye,cr),ur=Vr(lr,(s=ae?.rect)!=null?s:null,J),dt=c.useRef(null),Vt=c.useCallback((_,F)=>{let{sensor:V,options:ce}=F;if(I.current==null)return;const X=m.get(I.current);if(!X)return;const $=_.nativeEvent,ee=new V({active:I.current,activeNode:X,event:$,options:ce,context:he,onAbort(L){if(!m.get(L))return;const{onDragAbort:te}=H.current,re={id:L};te?.(re),w({type:"onDragAbort",event:re})},onPending(L,le,te,re){if(!m.get(L))return;const{onDragPending:Ne}=H.current,ue={id:L,constraint:le,initialCoordinates:te,offset:re};Ne?.(ue),w({type:"onDragPending",event:ue})},onStart(L){const le=I.current;if(le==null)return;const te=m.get(le);if(!te)return;const{onDragStart:re}=H.current,De={activatorEvent:$,active:{id:le,data:te.data,rect:U}};Ae.unstable_batchedUpdates(()=>{re?.(De),S(de.Initializing),y({type:P.DragStart,initialCoordinates:L,active:le}),w({type:"onDragStart",event:De}),pe(dt.current),Ue($)})},onMove(L){y({type:P.DragMove,coordinates:L})},onEnd:ye(P.DragEnd),onCancel:ye(P.DragCancel)});dt.current=ee;function ye(L){return async function(){const{active:te,collisions:re,over:De,scrollAdjustedTranslate:Ne}=he.current;let ue=null;if(te&&Ne){const{cancelDrop:Oe}=H.current;ue={activatorEvent:$,active:te,collisions:re,delta:Ne,over:De},L===P.DragEnd&&typeof Oe=="function"&&await Promise.resolve(Oe(ue))&&(L=P.DragCancel)}I.current=null,Ae.unstable_batchedUpdates(()=>{y({type:L}),S(de.Uninitialized),Ft(null),pe(null),Ue(null),dt.current=null;const Oe=L===P.DragEnd?"onDragEnd":"onDragCancel";if(ue){const ft=H.current[Oe];ft?.(ue),w({type:Oe,event:ue})}})}}},[m]),dr=c.useCallback((_,F)=>(V,ce)=>{const X=V.nativeEvent,$=m.get(ce);if(I.current!==null||!$||X.dndKit||X.defaultPrevented)return;const ee={active:$};_(V,F.options,ee)===!0&&(X.dndKit={capturedBy:F.sensor},I.current=ce,Vt(V,F))},[m,Vt]),$t=go(f,dr);wo(f),ne(()=>{J&&A===de.Initializing&&S(de.Initialized)},[J,A]),c.useEffect(()=>{const{onDragMove:_}=H.current,{active:F,activatorEvent:V,collisions:ce,over:X}=he.current;if(!F||!V)return;const $={active:F,activatorEvent:V,collisions:ce,delta:{x:me.x,y:me.y},over:X};Ae.unstable_batchedUpdates(()=>{_?.($),w({type:"onDragMove",event:$})})},[me.x,me.y]),c.useEffect(()=>{const{active:_,activatorEvent:F,collisions:V,droppableContainers:ce,scrollAdjustedTranslate:X}=he.current;if(!_||I.current==null||!F||!X)return;const{onDragOver:$}=H.current,ee=ce.get(Bt),ye=ee&&ee.rect.current?{id:ee.id,rect:ee.rect.current,data:ee.data,disabled:ee.disabled}:null,L={active:_,activatorEvent:F,collisions:V,delta:{x:X.x,y:X.y},over:ye};Ae.unstable_batchedUpdates(()=>{Ft(ye),$?.(L),w({type:"onDragOver",event:L})})},[Bt]),ne(()=>{he.current={activatorEvent:W,active:Y,activeNode:q,collisionRect:xe,collisions:Ee,droppableRects:T,draggableNodes:m,draggingNode:Xe,draggingNodeRect:be,droppableContainers:z,over:ae,scrollableAncestors:ie,scrollAdjustedTranslate:me},U.current={initial:be,translated:xe}},[Y,q,Ee,xe,m,Xe,be,T,z,ae,ie,me]),lo({...It,delta:N,draggingRect:xe,pointerCoordinates:_t,scrollableAncestors:ie,scrollableAncestorRects:Ge});const fr=c.useMemo(()=>({active:Y,activeNode:q,activeNodeRect:J,activatorEvent:W,collisions:Ee,containerNodeRect:lt,dragOverlay:ge,draggableNodes:m,droppableContainers:z,droppableRects:T,over:ae,measureDroppableContainers:k,scrollableAncestors:ie,scrollableAncestorRects:Ge,measuringConfiguration:oe,measuringScheduled:se,windowRect:ut}),[Y,q,J,W,Ee,lt,ge,m,z,T,ae,k,ie,Ge,oe,se,ut]),hr=c.useMemo(()=>({activatorEvent:W,activators:$t,active:Y,activeNodeRect:J,ariaDescribedById:{draggable:ve},dispatch:y,draggableNodes:m,over:ae,measureDroppableContainers:k}),[W,$t,Y,J,y,ve,m,ae,k]);return c.createElement(an.Provider,{value:C},c.createElement(Ve.Provider,{value:hr},c.createElement(wn.Provider,{value:fr},c.createElement(at.Provider,{value:ur},u)),c.createElement(To,{disabled:i?.restoreFocus===!1})),c.createElement(Tr,{...i,hiddenTextDescribedById:ve}));function gr(){const _=$e?.autoScrollEnabled===!1,F=typeof l=="object"?l.enabled===!1:l===!1,V=D&&!_&&!F;return typeof l=="object"?{...l,enabled:V}:{enabled:V}}}),ko=c.createContext(null),nn="button",jo="Draggable";function Lo(e){let{id:t,data:n,disabled:r=!1,attributes:o}=e;const s=Fe(jo),{activators:a,activatorEvent:i,active:l,activeNodeRect:u,ariaDescribedById:f,draggableNodes:d,over:h}=c.useContext(Ve),{role:p=nn,roleDescription:R="draggable",tabIndex:v=0}=o??{},b=l?.id===t,y=c.useContext(b?at:ko),[w,C]=Je(),[A,S]=Je(),D=So(a,t),x=je(n);ne(()=>(d.set(t,{id:t,key:s,node:w,activatorNode:A,data:x}),()=>{const N=d.get(t);N&&N.key===s&&d.delete(t)}),[d,t]);const m=c.useMemo(()=>({role:p,tabIndex:v,"aria-disabled":r,"aria-pressed":b&&p===nn?!0:void 0,"aria-roledescription":R,"aria-describedby":f.draggable}),[r,p,v,b,R,f.draggable]);return{active:l,activatorEvent:i,activeNodeRect:u,attributes:m,isDragging:b,listeners:r?void 0:D,node:w,over:h,setNodeRef:C,setActivatorNodeRef:S,transform:y}}function Rn(){return c.useContext(wn)}const _o="Droppable",Ko={timeout:25};function Bo(e){let{data:t,disabled:n=!1,id:r,resizeObserverConfig:o}=e;const s=Fe(_o),{active:a,dispatch:i,over:l,measureDroppableContainers:u}=c.useContext(Ve),f=c.useRef({disabled:n}),d=c.useRef(!1),h=c.useRef(null),p=c.useRef(null),{disabled:R,updateMeasurementsFor:v,timeout:b}={...Ko,...o},y=je(v??r),w=c.useCallback(()=>{if(!d.current){d.current=!0;return}p.current!=null&&clearTimeout(p.current),p.current=setTimeout(()=>{u(Array.isArray(y.current)?y.current:[y.current]),p.current=null},b)},[b]),C=it({callback:w,disabled:R||!a}),A=c.useCallback((m,N)=>{C&&(N&&(C.unobserve(N),d.current=!1),m&&C.observe(m))},[C]),[S,D]=Je(A),x=je(t);return c.useEffect(()=>{!C||!S.current||(C.disconnect(),d.current=!1,C.observe(S.current))},[S,C]),c.useEffect(()=>(i({type:P.RegisterDroppable,element:{id:r,key:s,disabled:n,node:S,rect:h,data:x}}),()=>i({type:P.UnregisterDroppable,key:s,id:r})),[r]),c.useEffect(()=>{n!==f.current.disabled&&(i({type:P.SetDroppableDisabled,id:r,key:s,disabled:n}),f.current.disabled=n)},[r,s,n,i]),{active:a,rect:h,isOver:l?.id===r,node:S,over:l,setNodeRef:D}}function Fo(e){let{animation:t,children:n}=e;const[r,o]=c.useState(null),[s,a]=c.useState(null),i=Qe(n);return!n&&!r&&i&&o(i),ne(()=>{if(!s)return;const l=r?.key,u=r?.props.id;if(l==null||u==null){o(null);return}Promise.resolve(t(u,s)).then(()=>{o(null)})},[t,r,s]),c.createElement(c.Fragment,null,n,r?c.cloneElement(r,{ref:a}):null)}const Vo={x:0,y:0,scaleX:1,scaleY:1};function $o(e){let{children:t}=e;return c.createElement(Ve.Provider,{value:Cn},c.createElement(at.Provider,{value:Vo},t))}const Uo={position:"fixed",touchAction:"none"},Xo=e=>ot(e)?"transform 250ms ease":void 0,Go=c.forwardRef((e,t)=>{let{as:n,activatorEvent:r,adjustScale:o,children:s,className:a,rect:i,style:l,transform:u,transition:f=Xo}=e;if(!i)return null;const d=o?u:{...u,scaleX:1,scaleY:1},h={...Uo,width:i.width,height:i.height,top:i.top,left:i.left,transform:we.Transform.toString(d),transformOrigin:o&&r?Pr(r,i):void 0,transition:typeof f=="function"?f(r):f,...l};return c.createElement(n,{className:a,style:h,ref:t},s)}),Yo=e=>t=>{let{active:n,dragOverlay:r}=t;const o={},{styles:s,className:a}=e;if(s!=null&&s.active)for(const[i,l]of Object.entries(s.active))l!==void 0&&(o[i]=n.node.style.getPropertyValue(i),n.node.style.setProperty(i,l));if(s!=null&&s.dragOverlay)for(const[i,l]of Object.entries(s.dragOverlay))l!==void 0&&r.node.style.setProperty(i,l);return a!=null&&a.active&&n.node.classList.add(a.active),a!=null&&a.dragOverlay&&r.node.classList.add(a.dragOverlay),function(){for(const[l,u]of Object.entries(o))n.node.style.setProperty(l,u);a!=null&&a.active&&n.node.classList.remove(a.active)}},Wo=e=>{let{transform:{initial:t,final:n}}=e;return[{transform:we.Transform.toString(t)},{transform:we.Transform.toString(n)}]},Ho={duration:250,easing:"ease",keyframes:Wo,sideEffects:Yo({styles:{active:{opacity:"0"}}})};function qo(e){let{config:t,draggableNodes:n,droppableContainers:r,measuringConfiguration:o}=e;return rt((s,a)=>{if(t===null)return;const i=n.get(s);if(!i)return;const l=i.node.current;if(!l)return;const u=yn(a);if(!u)return;const{transform:f}=B(a).getComputedStyle(a),d=un(f);if(!d)return;const h=typeof t=="function"?t:Jo(t);return bn(l,o.draggable.measure),h({active:{id:s,data:i.data,node:l,rect:o.draggable.measure(l)},draggableNodes:n,dragOverlay:{node:a,rect:o.dragOverlay.measure(u)},droppableContainers:r,measuringConfiguration:o,transform:d})})}function Jo(e){const{duration:t,easing:n,sideEffects:r,keyframes:o}={...Ho,...e};return s=>{let{active:a,dragOverlay:i,transform:l,...u}=s;if(!t)return;const f={x:i.rect.left-a.rect.left,y:i.rect.top-a.rect.top},d={scaleX:l.scaleX!==1?a.rect.width*l.scaleX/i.rect.width:1,scaleY:l.scaleY!==1?a.rect.height*l.scaleY/i.rect.height:1},h={x:l.x-f.x,y:l.y-f.y,...d},p=o({...u,active:a,dragOverlay:i,transform:{initial:l,final:h}}),[R]=p,v=p[p.length-1];if(JSON.stringify(R)===JSON.stringify(v))return;const b=r?.({active:a,dragOverlay:i,...u}),y=i.node.animate(p,{duration:t,easing:n,fill:"forwards"});return new Promise(w=>{y.onfinish=()=>{b?.(),w()}})}}let rn=0;function Qo(e){return c.useMemo(()=>{if(e!=null)return rn++,rn},[e])}const Zo=c.memo(e=>{let{adjustScale:t=!1,children:n,dropAnimation:r,style:o,transition:s,modifiers:a,wrapperElement:i="div",className:l,zIndex:u=999}=e;const{activatorEvent:f,active:d,activeNodeRect:h,containerNodeRect:p,draggableNodes:R,droppableContainers:v,dragOverlay:b,over:y,measuringConfiguration:w,scrollableAncestors:C,scrollableAncestorRects:A,windowRect:S}=Rn(),D=c.useContext(at),x=Qo(d?.id),m=Sn(a,{activatorEvent:f,active:d,activeNodeRect:h,containerNodeRect:p,draggingNodeRect:b.rect,over:y,overlayNodeRect:b.rect,scrollableAncestors:C,scrollableAncestorRects:A,transform:D,windowRect:S}),N=Ot(h),z=qo({config:r,draggableNodes:R,droppableContainers:v,measuringConfiguration:w}),O=N?b.setRef:void 0;return c.createElement($o,null,c.createElement(Fo,{animation:z},d&&x?c.createElement(Go,{key:x,id:d.id,ref:O,as:i,activatorEvent:f,adjustScale:t,className:l,transition:s,rect:N,style:{zIndex:u,...o},transform:m},n):null))});var At="ContextMenu",[es]=M.createContextScope(At,[M.createMenuScope]),K=M.createMenuScope(),[ts,Mn]=es(At),En=e=>{const{__scopeContextMenu:t,children:n,onOpenChange:r,dir:o,modal:s=!0}=e,[a,i]=E.useState(!1),l=K(t),u=M.useCallbackRef(r),f=E.useCallback(d=>{i(d),u(d)},[u]);return g.jsx(ts,{scope:t,open:a,onOpenChange:f,modal:s,children:g.jsx(M.Root3,{...l,dir:o,open:a,onOpenChange:f,modal:s,children:n})})};En.displayName=At;var Dn="ContextMenuTrigger",Nn=E.forwardRef((e,t)=>{const{__scopeContextMenu:n,disabled:r=!1,...o}=e,s=Mn(Dn,n),a=K(n),i=E.useRef({x:0,y:0}),l=E.useRef({getBoundingClientRect:()=>DOMRect.fromRect({width:0,height:0,...i.current})}),u=E.useRef(0),f=E.useCallback(()=>window.clearTimeout(u.current),[]),d=h=>{i.current={x:h.clientX,y:h.clientY},s.onOpenChange(!0)};return E.useEffect(()=>f,[f]),E.useEffect(()=>{r&&f()},[r,f]),g.jsxs(g.Fragment,{children:[g.jsx(M.Anchor2,{...a,virtualRef:l}),g.jsx(M.Primitive.span,{"data-state":s.open?"open":"closed","data-disabled":r?"":void 0,...o,ref:t,style:{WebkitTouchCallout:"none",...e.style},onContextMenu:r?e.onContextMenu:M.composeEventHandlers(e.onContextMenu,h=>{f(),d(h),h.preventDefault()}),onPointerDown:r?e.onPointerDown:M.composeEventHandlers(e.onPointerDown,He(h=>{f(),u.current=window.setTimeout(()=>d(h),700)})),onPointerMove:r?e.onPointerMove:M.composeEventHandlers(e.onPointerMove,He(f)),onPointerCancel:r?e.onPointerCancel:M.composeEventHandlers(e.onPointerCancel,He(f)),onPointerUp:r?e.onPointerUp:M.composeEventHandlers(e.onPointerUp,He(f))})]})});Nn.displayName=Dn;var ns="ContextMenuPortal",On=e=>{const{__scopeContextMenu:t,...n}=e,r=K(t);return g.jsx(M.Portal,{...r,...n})};On.displayName=ns;var An="ContextMenuContent",Tn=E.forwardRef((e,t)=>{const{__scopeContextMenu:n,...r}=e,o=Mn(An,n),s=K(n),a=E.useRef(!1);return g.jsx(M.Content2,{...s,...r,ref:t,side:"right",sideOffset:2,align:"start",onCloseAutoFocus:i=>{e.onCloseAutoFocus?.(i),!i.defaultPrevented&&a.current&&i.preventDefault(),a.current=!1},onInteractOutside:i=>{e.onInteractOutside?.(i),!i.defaultPrevented&&!o.modal&&(a.current=!0)},style:{...e.style,"--radix-context-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-context-menu-content-available-width":"var(--radix-popper-available-width)","--radix-context-menu-content-available-height":"var(--radix-popper-available-height)","--radix-context-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-context-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});Tn.displayName=An;var rs="ContextMenuGroup",zn=E.forwardRef((e,t)=>{const{__scopeContextMenu:n,...r}=e,o=K(n);return g.jsx(M.Group,{...o,...r,ref:t})});zn.displayName=rs;var os="ContextMenuLabel",In=E.forwardRef((e,t)=>{const{__scopeContextMenu:n,...r}=e,o=K(n);return g.jsx(M.Label,{...o,...r,ref:t})});In.displayName=os;var ss="ContextMenuItem",Pn=E.forwardRef((e,t)=>{const{__scopeContextMenu:n,...r}=e,o=K(n);return g.jsx(M.Item2,{...o,...r,ref:t})});Pn.displayName=ss;var is="ContextMenuCheckboxItem",kn=E.forwardRef((e,t)=>{const{__scopeContextMenu:n,...r}=e,o=K(n);return g.jsx(M.CheckboxItem,{...o,...r,ref:t})});kn.displayName=is;var as="ContextMenuRadioGroup",jn=E.forwardRef((e,t)=>{const{__scopeContextMenu:n,...r}=e,o=K(n);return g.jsx(M.RadioGroup,{...o,...r,ref:t})});jn.displayName=as;var cs="ContextMenuRadioItem",Ln=E.forwardRef((e,t)=>{const{__scopeContextMenu:n,...r}=e,o=K(n);return g.jsx(M.RadioItem,{...o,...r,ref:t})});Ln.displayName=cs;var ls="ContextMenuItemIndicator",_n=E.forwardRef((e,t)=>{const{__scopeContextMenu:n,...r}=e,o=K(n);return g.jsx(M.ItemIndicator,{...o,...r,ref:t})});_n.displayName=ls;var us="ContextMenuSeparator",Kn=E.forwardRef((e,t)=>{const{__scopeContextMenu:n,...r}=e,o=K(n);return g.jsx(M.Separator,{...o,...r,ref:t})});Kn.displayName=us;var ds="ContextMenuArrow",fs=E.forwardRef((e,t)=>{const{__scopeContextMenu:n,...r}=e,o=K(n);return g.jsx(M.Arrow2,{...o,...r,ref:t})});fs.displayName=ds;var Bn="ContextMenuSub",Fn=e=>{const{__scopeContextMenu:t,children:n,onOpenChange:r,open:o,defaultOpen:s}=e,a=K(t),[i,l]=M.useControllableState({prop:o,defaultProp:s??!1,onChange:r,caller:Bn});return g.jsx(M.Sub,{...a,open:i,onOpenChange:l,children:n})};Fn.displayName=Bn;var hs="ContextMenuSubTrigger",Vn=E.forwardRef((e,t)=>{const{__scopeContextMenu:n,...r}=e,o=K(n);return g.jsx(M.SubTrigger,{...o,...r,ref:t})});Vn.displayName=hs;var gs="ContextMenuSubContent",$n=E.forwardRef((e,t)=>{const{__scopeContextMenu:n,...r}=e,o=K(n);return g.jsx(M.SubContent,{...o,...r,ref:t,style:{...e.style,"--radix-context-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-context-menu-content-available-width":"var(--radix-popper-available-width)","--radix-context-menu-content-available-height":"var(--radix-popper-available-height)","--radix-context-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-context-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});$n.displayName=gs;function He(e){return t=>t.pointerType!=="mouse"?e(t):void 0}var ps=En,vs=Nn,Un=On,Xn=Tn,bs=zn,Gn=In,Yn=Pn,Wn=kn,ms=jn,Hn=Ln,qn=_n,Jn=Kn,xs=Fn,Qn=Vn,Zn=$n;const er=ps,tr=vs,ys=bs,Cs=Un,ws=xs,Ss=ms,nr=E.forwardRef(({className:e,inset:t,children:n,...r},o)=>g.jsxs(Qn,{ref:o,className:Z.cn("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-zinc-100 focus:text-zinc-900 data-[state=open]:bg-zinc-100 data-[state=open]:text-zinc-900 dark:focus:bg-zinc-800 dark:focus:text-zinc-50 dark:data-[state=open]:bg-zinc-800 dark:data-[state=open]:text-zinc-50",t&&"pl-8",e),...r,children:[n,g.jsx(M.ChevronRight,{className:"ml-auto h-4 w-4"})]}));nr.displayName=Qn.displayName;const rr=E.forwardRef(({className:e,...t},n)=>g.jsx(Zn,{ref:n,className:Z.cn("z-50 min-w-[8rem] overflow-hidden rounded-md border border-zinc-200 bg-white p-1 text-zinc-950 shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 dark:border-zinc-800 dark:bg-zinc-950 dark:text-zinc-50",e),...t}));rr.displayName=Zn.displayName;const Tt=E.forwardRef(({className:e,...t},n)=>g.jsx(Un,{children:g.jsx(Xn,{ref:n,className:Z.cn("z-50 min-w-[8rem] overflow-hidden rounded-md border border-zinc-200 bg-white p-1 text-zinc-950 shadow-md animate-in fade-in-80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 dark:border-zinc-800 dark:bg-zinc-950 dark:text-zinc-50",e),...t})}));Tt.displayName=Xn.displayName;const fe=E.forwardRef(({className:e,inset:t,...n},r)=>g.jsx(Yn,{ref:r,className:Z.cn("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-zinc-100 focus:text-zinc-900 data-[disabled]:pointer-events-none data-[disabled]:opacity-50 dark:focus:bg-zinc-800 dark:focus:text-zinc-50",t&&"pl-8",e),...n}));fe.displayName=Yn.displayName;const or=E.forwardRef(({className:e,children:t,checked:n,...r},o)=>g.jsxs(Wn,{ref:o,className:Z.cn("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-zinc-100 focus:text-zinc-900 data-[disabled]:pointer-events-none data-[disabled]:opacity-50 dark:focus:bg-zinc-800 dark:focus:text-zinc-50",e),checked:n,...r,children:[g.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:g.jsx(qn,{children:g.jsx(M.Check,{className:"h-4 w-4"})})}),t]}));or.displayName=Wn.displayName;const sr=E.forwardRef(({className:e,children:t,...n},r)=>g.jsxs(Hn,{ref:r,className:Z.cn("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-zinc-100 focus:text-zinc-900 data-[disabled]:pointer-events-none data-[disabled]:opacity-50 dark:focus:bg-zinc-800 dark:focus:text-zinc-50",e),...n,children:[g.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:g.jsx(qn,{children:g.jsx(M.Circle,{className:"h-2 w-2 fill-current"})})}),t]}));sr.displayName=Hn.displayName;const ir=E.forwardRef(({className:e,inset:t,...n},r)=>g.jsx(Gn,{ref:r,className:Z.cn("px-2 py-1.5 text-sm font-semibold text-zinc-950 dark:text-zinc-50",t&&"pl-8",e),...n}));ir.displayName=Gn.displayName;const Pe=E.forwardRef(({className:e,...t},n)=>g.jsx(Jn,{ref:n,className:Z.cn("-mx-1 my-1 h-px bg-zinc-200 dark:bg-zinc-800",e),...t}));Pe.displayName=Jn.displayName;const ke=({className:e,...t})=>g.jsx("span",{className:Z.cn("ml-auto text-xs tracking-widest text-zinc-500 dark:text-zinc-400",e),...t});ke.displayName="ContextMenuShortcut";const Rs=({row:e,data:t,contextId:n,children:r,enabled:o=!0,onAction:s})=>{const a=Z.useEzServiceRegistry();if(!o)return g.jsx(g.Fragment,{children:r});const i=t||e?.original,u=(()=>{if(!n)return[];const h=a.get("ContextMenuService");return h?h.getItems(n,i):[]})(),f=u.length>0,d=h=>{s?.(h,i)};return g.jsxs(er,{children:[g.jsx(tr,{asChild:!0,children:g.jsx("span",{className:"contents",children:r})}),g.jsx(Tt,{className:"w-64",children:f?u.map((h,p)=>g.jsx(c.Fragment,{children:h.isSeparator?g.jsx(Pe,{}):g.jsxs(fe,{inset:!0,onSelect:()=>{h.onClick?h.onClick(i):d(h.action)},disabled:h.disabled,className:h.className,children:[h.label,h.shortcut&&g.jsx(ke,{children:h.shortcut})]})},h.id||p)):g.jsxs(g.Fragment,{children:[g.jsxs(fe,{inset:!0,onSelect:()=>d("copy"),children:["Copy Data",g.jsx(ke,{children:"⌘C"})]}),g.jsx(Pe,{}),e&&g.jsxs(g.Fragment,{children:[e.getIsPinned()!=="top"&&g.jsx(fe,{inset:!0,onSelect:()=>d("pin-top"),children:"Pin to Top"}),e.getIsPinned()!=="bottom"&&g.jsx(fe,{inset:!0,onSelect:()=>d("pin-bottom"),children:"Pin to Bottom"}),e.getIsPinned()&&g.jsx(fe,{inset:!0,onSelect:()=>d("unpin"),children:"Unpin Row"}),g.jsx(Pe,{})]}),g.jsxs(fe,{inset:!0,className:"text-red-600 focus:text-red-600 focus:bg-red-50 dark:focus:bg-red-950/50",onSelect:()=>d("delete"),children:["Delete Row",g.jsx(ke,{children:"⌘⌫"})]})]})})]})};exports.CSS=we;exports.ContextMenu=er;exports.ContextMenuCheckboxItem=or;exports.ContextMenuContent=Tt;exports.ContextMenuGroup=ys;exports.ContextMenuItem=fe;exports.ContextMenuLabel=ir;exports.ContextMenuPortal=Cs;exports.ContextMenuRadioGroup=Ss;exports.ContextMenuRadioItem=sr;exports.ContextMenuSeparator=Pe;exports.ContextMenuShortcut=ke;exports.ContextMenuSub=ws;exports.ContextMenuSubContent=rr;exports.ContextMenuSubTrigger=nr;exports.ContextMenuTrigger=tr;exports.DndContext=Po;exports.DragOverlay=Zo;exports.EzContextMenu=Rs;exports.KeyboardSensor=Et;exports.PointerSensor=Nt;exports.closestCenter=jr;exports.closestCorners=Lr;exports.getClientRect=Me;exports.getFirstCollision=cn;exports.getScrollableAncestors=st;exports.isKeyboardEvent=ot;exports.pointerWithin=Fr;exports.subtract=Le;exports.useCombinedRefs=mr;exports.useDndContext=Rn;exports.useDraggable=Lo;exports.useDroppable=Bo;exports.useIsomorphicLayoutEffect=ne;exports.useSensor=zr;exports.useSensors=Ir;exports.useUniqueId=Fe;exports.useVirtualization=br;