@middag-io/react 0.11.0 → 0.13.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (294) hide show
  1. package/README.md +14 -14
  2. package/dist-lib/ChartPanelBlock-DIb2mv9F.js +18005 -0
  3. package/dist-lib/{ConditionTreeBlock-B7__VkhQ.js → ConditionTreeBlock-C54B_GOo.js} +1 -1
  4. package/dist-lib/DateField-CA-O-Fpw.js +121 -0
  5. package/dist-lib/DateRangeField-vXr5VVQz.js +663 -0
  6. package/dist-lib/DocumentField-I92arMqr.js +221 -0
  7. package/dist-lib/{FlowEditorBlock-CHodeGBw.js → FlowEditorBlock-CaR42_-b.js} +2063 -2653
  8. package/dist-lib/FormBuilderBlock-B_LPQ4oN.js +240 -0
  9. package/dist-lib/FormPanelBlock-D7WTdYzA.js +8826 -0
  10. package/dist-lib/FormPanelBlock-Yka05jOX.js +2 -0
  11. package/dist-lib/{index.min-BoVYs6GD.js → HugeiconsIcon-C_2Bj2NI.js} +147 -1809
  12. package/dist-lib/KanbanBoardBlock-rySahBrC.js +399 -0
  13. package/dist-lib/{MarkdownContent-BUiueRmW.js → MarkdownContent-DVCptbxx.js} +14 -12
  14. package/dist-lib/PhoneField-BXhvQbTx.js +18585 -0
  15. package/dist-lib/{SentenceBuilderBlock-D7UEz1l-.js → SentenceBuilderBlock-Wf5YMSPg.js} +1 -1
  16. package/dist-lib/app/ContractPage.d.ts +1 -1
  17. package/dist-lib/app/ContractPage.d.ts.map +1 -1
  18. package/dist-lib/app/EntityRoutes.d.ts +28 -0
  19. package/dist-lib/app/EntityRoutes.d.ts.map +1 -0
  20. package/dist-lib/app/HostSlot.d.ts +68 -0
  21. package/dist-lib/app/HostSlot.d.ts.map +1 -0
  22. package/dist-lib/app/LazyBlock.d.ts +1 -1
  23. package/dist-lib/app/LazyBlock.d.ts.map +1 -1
  24. package/dist-lib/app/bootstrap.d.ts.map +1 -1
  25. package/dist-lib/app/providers/auth.d.ts +2 -2
  26. package/dist-lib/app/providers/auth.d.ts.map +1 -1
  27. package/dist-lib/app/providers/error-reporter.d.ts.map +1 -1
  28. package/dist-lib/app/providers/flash.d.ts.map +1 -1
  29. package/dist-lib/app/providers/i18n-defaults.d.ts.map +1 -1
  30. package/dist-lib/app/providers/i18n.d.ts +4 -1
  31. package/dist-lib/app/providers/i18n.d.ts.map +1 -1
  32. package/dist-lib/app/providers/index.d.ts +15 -0
  33. package/dist-lib/app/providers/index.d.ts.map +1 -0
  34. package/dist-lib/app/providers/locales/pt-BR.d.ts.map +1 -1
  35. package/dist-lib/app/providers/progress.d.ts.map +1 -1
  36. package/dist-lib/app/providers/scope.d.ts.map +1 -1
  37. package/dist-lib/app/register-defaults.d.ts +4 -3
  38. package/dist-lib/app/register-defaults.d.ts.map +1 -1
  39. package/dist-lib/app/registries.d.ts.map +1 -1
  40. package/dist-lib/assets/lottie/index.d.ts.map +1 -1
  41. package/dist-lib/badge-CEJlJgBY.js +63 -0
  42. package/dist-lib/base/blocks/ActionGridBlock.d.ts +1 -1
  43. package/dist-lib/base/blocks/ActionGridBlock.d.ts.map +1 -1
  44. package/dist-lib/base/blocks/ActivityTimelineBlock.d.ts.map +1 -1
  45. package/dist-lib/base/blocks/CardGridBlock.d.ts +1 -1
  46. package/dist-lib/base/blocks/CardGridBlock.d.ts.map +1 -1
  47. package/dist-lib/base/blocks/ChartPanelBlock.d.ts +11 -0
  48. package/dist-lib/base/blocks/ChartPanelBlock.d.ts.map +1 -0
  49. package/dist-lib/base/blocks/ConditionTreeBlock.d.ts +1 -1
  50. package/dist-lib/base/blocks/ConditionTreeBlock.d.ts.map +1 -1
  51. package/dist-lib/base/blocks/DenseTableBlock.d.ts +1 -1
  52. package/dist-lib/base/blocks/DenseTableBlock.d.ts.map +1 -1
  53. package/dist-lib/base/blocks/DetailPanelBlock.d.ts +1 -1
  54. package/dist-lib/base/blocks/DetailPanelBlock.d.ts.map +1 -1
  55. package/dist-lib/base/blocks/EmptyStateBlock.d.ts +1 -1
  56. package/dist-lib/base/blocks/EmptyStateBlock.d.ts.map +1 -1
  57. package/dist-lib/base/blocks/FlowEditorBlock.d.ts +1 -1
  58. package/dist-lib/base/blocks/FlowEditorBlock.d.ts.map +1 -1
  59. package/dist-lib/base/blocks/FormBuilderBlock.d.ts +1 -1
  60. package/dist-lib/base/blocks/FormBuilderBlock.d.ts.map +1 -1
  61. package/dist-lib/base/blocks/FormPanelBlock.d.ts +8 -3
  62. package/dist-lib/base/blocks/FormPanelBlock.d.ts.map +1 -1
  63. package/dist-lib/base/blocks/KanbanBoardBlock.d.ts +11 -0
  64. package/dist-lib/base/blocks/KanbanBoardBlock.d.ts.map +1 -0
  65. package/dist-lib/base/blocks/LinkListBlock.d.ts +1 -1
  66. package/dist-lib/base/blocks/LinkListBlock.d.ts.map +1 -1
  67. package/dist-lib/base/blocks/MarkdownPanelBlock.d.ts +1 -1
  68. package/dist-lib/base/blocks/MarkdownPanelBlock.d.ts.map +1 -1
  69. package/dist-lib/base/blocks/MetricCardBlock.d.ts +1 -1
  70. package/dist-lib/base/blocks/MetricCardBlock.d.ts.map +1 -1
  71. package/dist-lib/base/blocks/SentenceBuilderBlock.d.ts.map +1 -1
  72. package/dist-lib/base/blocks/StatusStripBlock.d.ts +1 -1
  73. package/dist-lib/base/blocks/StatusStripBlock.d.ts.map +1 -1
  74. package/dist-lib/base/blocks/TabbedPanelBlock.d.ts +1 -1
  75. package/dist-lib/base/blocks/TabbedPanelBlock.d.ts.map +1 -1
  76. package/dist-lib/base/blocks/WorkflowProgressBlock.d.ts.map +1 -1
  77. package/dist-lib/base/form/FormField.d.ts +6 -20
  78. package/dist-lib/base/form/FormField.d.ts.map +1 -1
  79. package/dist-lib/base/form/fields/CheckboxField.d.ts.map +1 -1
  80. package/dist-lib/base/form/fields/ColorField.d.ts.map +1 -1
  81. package/dist-lib/base/form/fields/CurrencyField.d.ts +2 -2
  82. package/dist-lib/base/form/fields/CurrencyField.d.ts.map +1 -1
  83. package/dist-lib/base/form/fields/DateField.d.ts +21 -0
  84. package/dist-lib/base/form/fields/DateField.d.ts.map +1 -0
  85. package/dist-lib/base/form/fields/DateRangeField.d.ts +21 -0
  86. package/dist-lib/base/form/fields/DateRangeField.d.ts.map +1 -0
  87. package/dist-lib/base/form/fields/DocumentField.d.ts +19 -6
  88. package/dist-lib/base/form/fields/DocumentField.d.ts.map +1 -1
  89. package/dist-lib/base/form/fields/EntityPickerField.d.ts +19 -9
  90. package/dist-lib/base/form/fields/EntityPickerField.d.ts.map +1 -1
  91. package/dist-lib/base/form/fields/FileUploadField.d.ts +22 -0
  92. package/dist-lib/base/form/fields/FileUploadField.d.ts.map +1 -0
  93. package/dist-lib/base/form/fields/MultiSelectField.d.ts +5 -5
  94. package/dist-lib/base/form/fields/MultiSelectField.d.ts.map +1 -1
  95. package/dist-lib/base/form/fields/NumberField.d.ts.map +1 -1
  96. package/dist-lib/base/form/fields/PasswordField.d.ts.map +1 -1
  97. package/dist-lib/base/form/fields/PhoneField.d.ts +8 -4
  98. package/dist-lib/base/form/fields/PhoneField.d.ts.map +1 -1
  99. package/dist-lib/base/form/fields/RadioField.d.ts.map +1 -1
  100. package/dist-lib/base/form/fields/RatingField.d.ts +17 -0
  101. package/dist-lib/base/form/fields/RatingField.d.ts.map +1 -0
  102. package/dist-lib/base/form/fields/SelectField.d.ts.map +1 -1
  103. package/dist-lib/base/form/fields/SlugField.d.ts +2 -2
  104. package/dist-lib/base/form/fields/SlugField.d.ts.map +1 -1
  105. package/dist-lib/base/form/fields/StaticField.d.ts.map +1 -1
  106. package/dist-lib/base/form/fields/SwitchField.d.ts.map +1 -1
  107. package/dist-lib/base/form/fields/TagsField.d.ts.map +1 -1
  108. package/dist-lib/base/form/fields/TextField.d.ts.map +1 -1
  109. package/dist-lib/base/form/fields/TextareaField.d.ts.map +1 -1
  110. package/dist-lib/base/form/fields/document-validation.d.ts +25 -5
  111. package/dist-lib/base/form/fields/document-validation.d.ts.map +1 -1
  112. package/dist-lib/base/form/fields/field-registry.d.ts +38 -0
  113. package/dist-lib/base/form/fields/field-registry.d.ts.map +1 -0
  114. package/dist-lib/base/form/fields/register-default-fields.d.ts +13 -0
  115. package/dist-lib/base/form/fields/register-default-fields.d.ts.map +1 -0
  116. package/dist-lib/base/form/form-schema-builder.d.ts +27 -0
  117. package/dist-lib/base/form/form-schema-builder.d.ts.map +1 -0
  118. package/dist-lib/base/form/form-utils.d.ts +14 -0
  119. package/dist-lib/base/form/form-utils.d.ts.map +1 -0
  120. package/dist-lib/base/hooks/usePolling.d.ts.map +1 -1
  121. package/dist-lib/base/layout/BlockRegion.d.ts +18 -0
  122. package/dist-lib/base/layout/BlockRegion.d.ts.map +1 -0
  123. package/dist-lib/base/layout/DashboardLayout.d.ts +5 -2
  124. package/dist-lib/base/layout/DashboardLayout.d.ts.map +1 -1
  125. package/dist-lib/base/layout/SidebarLayout.d.ts +16 -0
  126. package/dist-lib/base/layout/SidebarLayout.d.ts.map +1 -0
  127. package/dist-lib/base/layout/StackLayout.d.ts +4 -4
  128. package/dist-lib/base/layout/StackLayout.d.ts.map +1 -1
  129. package/dist-lib/base/layout/WizardLayout.d.ts +2 -2
  130. package/dist-lib/base/layout/WizardLayout.d.ts.map +1 -1
  131. package/dist-lib/base/partials/ActionBar/index.d.ts +4 -12
  132. package/dist-lib/base/partials/ActionBar/index.d.ts.map +1 -1
  133. package/dist-lib/base/partials/ConfirmationDialog/index.d.ts.map +1 -1
  134. package/dist-lib/base/partials/DataTable/cell-registry.d.ts +35 -0
  135. package/dist-lib/base/partials/DataTable/cell-registry.d.ts.map +1 -0
  136. package/dist-lib/base/partials/DataTable/cell-renderers.d.ts +14 -10
  137. package/dist-lib/base/partials/DataTable/cell-renderers.d.ts.map +1 -1
  138. package/dist-lib/base/partials/DataTable/index.d.ts.map +1 -1
  139. package/dist-lib/base/partials/DataTable/register-default-cells.d.ts +9 -0
  140. package/dist-lib/base/partials/DataTable/register-default-cells.d.ts.map +1 -0
  141. package/dist-lib/base/partials/DataTable/types.d.ts +10 -4
  142. package/dist-lib/base/partials/DataTable/types.d.ts.map +1 -1
  143. package/dist-lib/base/partials/DetailSection/index.d.ts +1 -1
  144. package/dist-lib/base/partials/DetailSection/index.d.ts.map +1 -1
  145. package/dist-lib/base/partials/EmptyPlaceholder/index.d.ts.map +1 -1
  146. package/dist-lib/base/partials/FilterBar/index.d.ts.map +1 -1
  147. package/dist-lib/base/partials/FormSection/index.d.ts.map +1 -1
  148. package/dist-lib/base/partials/LogViewer/JsonBlock.d.ts +1 -1
  149. package/dist-lib/base/partials/LogViewer/JsonBlock.d.ts.map +1 -1
  150. package/dist-lib/base/partials/LogViewer/LogEntry.d.ts.map +1 -1
  151. package/dist-lib/base/partials/LogViewer/LogViewerToolbar.d.ts.map +1 -1
  152. package/dist-lib/base/partials/LogViewer/index.d.ts.map +1 -1
  153. package/dist-lib/base/partials/LogViewer/types.d.ts.map +1 -1
  154. package/dist-lib/base/partials/MarkdownContent/index.d.ts.map +1 -1
  155. package/dist-lib/base/partials/StatRow/index.d.ts.map +1 -1
  156. package/dist-lib/base/partials/StatusBar/index.d.ts +1 -1
  157. package/dist-lib/base/partials/StatusBar/index.d.ts.map +1 -1
  158. package/dist-lib/base/partials/StatusIndicator/index.d.ts.map +1 -1
  159. package/dist-lib/base/partials/StepIndicator/index.d.ts +3 -1
  160. package/dist-lib/base/partials/StepIndicator/index.d.ts.map +1 -1
  161. package/dist-lib/base/partials/TimelineList/index.d.ts.map +1 -1
  162. package/dist-lib/base/shell/ImmersiveShell.d.ts +14 -0
  163. package/dist-lib/base/shell/ImmersiveShell.d.ts.map +1 -0
  164. package/dist-lib/base/shell/ProductShell.d.ts +17 -5
  165. package/dist-lib/base/shell/ProductShell.d.ts.map +1 -1
  166. package/dist-lib/base/shell/partials/AdminTabBar.d.ts +12 -0
  167. package/dist-lib/base/shell/partials/AdminTabBar.d.ts.map +1 -0
  168. package/dist-lib/base/shell/partials/AppearanceToggle.d.ts.map +1 -1
  169. package/dist-lib/base/shell/partials/BoostSearchBar.d.ts +32 -0
  170. package/dist-lib/base/shell/partials/BoostSearchBar.d.ts.map +1 -0
  171. package/dist-lib/base/shell/partials/CommandPalette.d.ts +1 -1
  172. package/dist-lib/base/shell/partials/CommandPalette.d.ts.map +1 -1
  173. package/dist-lib/base/shell/partials/HelpContext.d.ts +1 -1
  174. package/dist-lib/base/shell/partials/HelpContext.d.ts.map +1 -1
  175. package/dist-lib/base/shell/partials/HelpPanel.d.ts.map +1 -1
  176. package/dist-lib/base/shell/partials/InlineInspector.d.ts +3 -2
  177. package/dist-lib/base/shell/partials/InlineInspector.d.ts.map +1 -1
  178. package/dist-lib/base/shell/partials/InspectorContext.d.ts +14 -3
  179. package/dist-lib/base/shell/partials/InspectorContext.d.ts.map +1 -1
  180. package/dist-lib/base/shell/partials/InspectorPanel.d.ts.map +1 -1
  181. package/dist-lib/base/shell/partials/NavErrorBoundary.d.ts +1 -1
  182. package/dist-lib/base/shell/partials/NavErrorBoundary.d.ts.map +1 -1
  183. package/dist-lib/base/shell/partials/OverlayScreen.d.ts.map +1 -1
  184. package/dist-lib/base/shell/partials/PageActionButton.d.ts +1 -1
  185. package/dist-lib/base/shell/partials/PageActionButton.d.ts.map +1 -1
  186. package/dist-lib/base/shell/partials/PageFilterTabs.d.ts.map +1 -1
  187. package/dist-lib/base/shell/partials/PageHeader.d.ts +1 -1
  188. package/dist-lib/base/shell/partials/PageHeader.d.ts.map +1 -1
  189. package/dist-lib/base/shell/partials/SidebarNav.d.ts +4 -4
  190. package/dist-lib/base/shell/partials/SidebarNav.d.ts.map +1 -1
  191. package/dist-lib/base/theme/appearance.d.ts.map +1 -1
  192. package/dist-lib/base/theme/host-layout-detector.d.ts.map +1 -1
  193. package/dist-lib/base/theme/host-theme-detector.d.ts.map +1 -1
  194. package/dist-lib/base/theme/theme-context.d.ts +61 -0
  195. package/dist-lib/base/theme/theme-context.d.ts.map +1 -0
  196. package/dist-lib/base/theme/useHostTheme.d.ts.map +1 -1
  197. package/dist-lib/base/utils/conditions.d.ts.map +1 -1
  198. package/dist-lib/base/utils/icon-registry.d.ts +27 -0
  199. package/dist-lib/base/utils/icon-registry.d.ts.map +1 -0
  200. package/dist-lib/base/utils/icons.d.ts +1 -1
  201. package/dist-lib/base/utils/icons.d.ts.map +1 -1
  202. package/dist-lib/base/utils/interpolate.d.ts.map +1 -1
  203. package/dist-lib/base/utils/register-default-icons.d.ts +11 -0
  204. package/dist-lib/base/utils/register-default-icons.d.ts.map +1 -0
  205. package/dist-lib/base/utils/storage.d.ts +34 -0
  206. package/dist-lib/base/utils/storage.d.ts.map +1 -0
  207. package/dist-lib/button-DY_CinAY.js +242 -0
  208. package/dist-lib/calendar-Dw-fH9qs.js +4505 -0
  209. package/dist-lib/combobox-DdpNpq0T.js +5303 -0
  210. package/dist-lib/components/reui/alert.d.ts +1 -1
  211. package/dist-lib/components/reui/avatar.d.ts +12 -0
  212. package/dist-lib/components/reui/avatar.d.ts.map +1 -0
  213. package/dist-lib/components/reui/badge.d.ts +1 -1
  214. package/dist-lib/components/reui/button.d.ts +1 -1
  215. package/dist-lib/components/reui/calendar.d.ts +9 -0
  216. package/dist-lib/components/reui/calendar.d.ts.map +1 -0
  217. package/dist-lib/components/reui/chart.d.ts +45 -0
  218. package/dist-lib/components/reui/chart.d.ts.map +1 -0
  219. package/dist-lib/components/reui/combobox.d.ts +25 -0
  220. package/dist-lib/components/reui/combobox.d.ts.map +1 -0
  221. package/dist-lib/components/reui/date-selector.d.ts +129 -0
  222. package/dist-lib/components/reui/date-selector.d.ts.map +1 -0
  223. package/dist-lib/components/reui/frame.d.ts +1 -1
  224. package/dist-lib/components/reui/input-group.d.ts +17 -0
  225. package/dist-lib/components/reui/input-group.d.ts.map +1 -0
  226. package/dist-lib/components/reui/kanban.d.ts +60 -0
  227. package/dist-lib/components/reui/kanban.d.ts.map +1 -0
  228. package/dist-lib/components/reui/phone-input.d.ts +12 -0
  229. package/dist-lib/components/reui/phone-input.d.ts.map +1 -0
  230. package/dist-lib/components/reui/rating.d.ts +32 -0
  231. package/dist-lib/components/reui/rating.d.ts.map +1 -0
  232. package/dist-lib/components/reui/scroll-area.d.ts +6 -0
  233. package/dist-lib/components/reui/scroll-area.d.ts.map +1 -0
  234. package/dist-lib/components/reui/stepper.d.ts +62 -0
  235. package/dist-lib/components/reui/stepper.d.ts.map +1 -0
  236. package/dist-lib/contracts/block-data/actions.d.ts +57 -0
  237. package/dist-lib/contracts/block-data/actions.d.ts.map +1 -0
  238. package/dist-lib/contracts/block-data/data-display.d.ts +235 -0
  239. package/dist-lib/contracts/block-data/data-display.d.ts.map +1 -0
  240. package/dist-lib/contracts/block-data/form.d.ts +234 -0
  241. package/dist-lib/contracts/block-data/form.d.ts.map +1 -0
  242. package/dist-lib/contracts/block-data/index.d.ts +15 -0
  243. package/dist-lib/contracts/block-data/index.d.ts.map +1 -0
  244. package/dist-lib/contracts/block-data/interactive.d.ts +140 -0
  245. package/dist-lib/contracts/block-data/interactive.d.ts.map +1 -0
  246. package/dist-lib/contracts/block-data/shared.d.ts +47 -0
  247. package/dist-lib/contracts/block-data/shared.d.ts.map +1 -0
  248. package/dist-lib/contracts/navigation.d.ts +1 -59
  249. package/dist-lib/contracts/navigation.d.ts.map +1 -1
  250. package/dist-lib/contracts/page-contract-schema.d.ts.map +1 -1
  251. package/dist-lib/contracts/page-contract.d.ts +57 -15
  252. package/dist-lib/contracts/page-contract.d.ts.map +1 -1
  253. package/dist-lib/contracts/shared-props.d.ts +2 -2
  254. package/dist-lib/contracts/shared-props.d.ts.map +1 -1
  255. package/dist-lib/dist-3F0-lo64.js +15 -0
  256. package/dist-lib/dist-BN2kCxhw.js +1196 -0
  257. package/dist-lib/dist-BVqmxsUH.js +123 -0
  258. package/dist-lib/dist-C3iVHwGr.js +235 -0
  259. package/dist-lib/dist-DSWRN9XQ.js +54 -0
  260. package/dist-lib/document-validation-C5Yr5Kkc.js +1249 -0
  261. package/dist-lib/floating-ui.react-dom-kYEBCgAT.js +1089 -0
  262. package/dist-lib/{i18n-BNIsUXL0.js → i18n-CP5eDOjK.js} +145 -27
  263. package/dist-lib/index.d.ts +16 -9
  264. package/dist-lib/index.d.ts.map +1 -1
  265. package/dist-lib/input-DovH16Rh.js +14 -0
  266. package/dist-lib/lib/hooks/use-file-upload.d.ts.map +1 -1
  267. package/dist-lib/lib/utils.d.ts.map +1 -1
  268. package/dist-lib/lottie/index.ts +8 -40
  269. package/dist-lib/middag-react.css +1 -1
  270. package/dist-lib/middag-react.js +7554 -31104
  271. package/dist-lib/popover-DeghPbgu.js +242 -0
  272. package/dist-lib/scroll-area-CDaBiyoP.js +557 -0
  273. package/dist-lib/skeleton-UFUcHob_.js +12 -0
  274. package/dist-lib/{FormBuilderBlock-s4lmYLg9.js → sortable.esm-0nILrm98.js} +745 -982
  275. package/dist-lib/use-mobile-B2E8cMyY.js +205 -0
  276. package/dist-lib/utils-DS8lnGJS.js +1692 -0
  277. package/dist-lib/value-BmOnuKrw.js +413 -0
  278. package/dist-lib/with-selector-eFb4BYrL.js +185 -0
  279. package/package.json +8 -1
  280. package/dist-lib/base/layout/MasterDetailLayout.d.ts +0 -8
  281. package/dist-lib/base/layout/MasterDetailLayout.d.ts.map +0 -1
  282. package/dist-lib/base/layout/SplitLayout.d.ts +0 -8
  283. package/dist-lib/base/layout/SplitLayout.d.ts.map +0 -1
  284. package/dist-lib/base/shell/AdminShell.d.ts +0 -12
  285. package/dist-lib/base/shell/AdminShell.d.ts.map +0 -1
  286. package/dist-lib/base/shell/HostProductShell.d.ts +0 -29
  287. package/dist-lib/base/shell/HostProductShell.d.ts.map +0 -1
  288. package/dist-lib/components/reui/alert-dialog.d.ts +0 -19
  289. package/dist-lib/components/reui/alert-dialog.d.ts.map +0 -1
  290. package/dist-lib/contracts/block-data.d.ts +0 -415
  291. package/dist-lib/contracts/block-data.d.ts.map +0 -1
  292. package/dist-lib/lib/deprecation.d.ts +0 -10
  293. package/dist-lib/lib/deprecation.d.ts.map +0 -1
  294. /package/dist-lib/{dist-BDvVQ5m8.js → dist-CZG8yxiX.js} +0 -0
@@ -1,91 +1,89 @@
1
- import { n as e } from "./i18n-BNIsUXL0.js";
2
- import t, { cloneElement as n, createContext as r, forwardRef as i, memo as a, useCallback as o, useContext as s, useEffect as c, useLayoutEffect as l, useMemo as u, useReducer as d, useRef as f, useState as p } from "react";
3
- import { jsx as m, jsxs as h } from "react/jsx-runtime";
4
- import { createPortal as g, unstable_batchedUpdates as _ } from "react-dom";
1
+ import e, { cloneElement as t, createContext as n, forwardRef as r, memo as i, useCallback as a, useContext as o, useEffect as s, useLayoutEffect as c, useMemo as l, useReducer as u, useRef as d, useState as f } from "react";
2
+ import { createPortal as p, unstable_batchedUpdates as m } from "react-dom";
5
3
  //#region node_modules/@dnd-kit/utilities/dist/utilities.esm.js
6
- function v() {
4
+ function h() {
7
5
  var e = [...arguments];
8
- return u(() => (t) => {
6
+ return l(() => (t) => {
9
7
  e.forEach((e) => e(t));
10
8
  }, e);
11
9
  }
12
- var y = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0;
13
- function b(e) {
10
+ var g = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0;
11
+ function _(e) {
14
12
  let t = Object.prototype.toString.call(e);
15
13
  return t === "[object Window]" || t === "[object global]";
16
14
  }
17
- function x(e) {
15
+ function v(e) {
18
16
  return "nodeType" in e;
19
17
  }
20
- function S(e) {
21
- return e ? b(e) ? e : x(e) ? e.ownerDocument?.defaultView ?? window : window : window;
18
+ function y(e) {
19
+ return e ? _(e) ? e : v(e) ? e.ownerDocument?.defaultView ?? window : window : window;
22
20
  }
23
- function C(e) {
24
- let { Document: t } = S(e);
21
+ function b(e) {
22
+ let { Document: t } = y(e);
25
23
  return e instanceof t;
26
24
  }
27
- function w(e) {
28
- return b(e) ? !1 : e instanceof S(e).HTMLElement;
25
+ function x(e) {
26
+ return _(e) ? !1 : e instanceof y(e).HTMLElement;
29
27
  }
30
- function T(e) {
31
- return e instanceof S(e).SVGElement;
28
+ function S(e) {
29
+ return e instanceof y(e).SVGElement;
32
30
  }
33
- function E(e) {
34
- return e ? b(e) ? e.document : x(e) ? C(e) ? e : w(e) || T(e) ? e.ownerDocument : document : document : document;
31
+ function C(e) {
32
+ return e ? _(e) ? e.document : v(e) ? b(e) ? e : x(e) || S(e) ? e.ownerDocument : document : document : document;
35
33
  }
36
- var D = y ? l : c;
37
- function O(e) {
38
- let t = f(e);
39
- return D(() => {
34
+ var w = g ? c : s;
35
+ function T(e) {
36
+ let t = d(e);
37
+ return w(() => {
40
38
  t.current = e;
41
- }), o(function() {
39
+ }), a(function() {
42
40
  var e = [...arguments];
43
41
  return t.current == null ? void 0 : t.current(...e);
44
42
  }, []);
45
43
  }
46
- function k() {
47
- let e = f(null);
48
- return [o((t, n) => {
44
+ function E() {
45
+ let e = d(null);
46
+ return [a((t, n) => {
49
47
  e.current = setInterval(t, n);
50
- }, []), o(() => {
48
+ }, []), a(() => {
51
49
  e.current !== null && (clearInterval(e.current), e.current = null);
52
50
  }, [])];
53
51
  }
54
52
  function ee(e, t) {
55
53
  t === void 0 && (t = [e]);
56
- let n = f(e);
57
- return D(() => {
54
+ let n = d(e);
55
+ return w(() => {
58
56
  n.current !== e && (n.current = e);
59
57
  }, t), n;
60
58
  }
61
- function A(e, t) {
62
- let n = f();
63
- return u(() => {
59
+ function D(e, t) {
60
+ let n = d();
61
+ return l(() => {
64
62
  let t = e(n.current);
65
63
  return n.current = t, t;
66
64
  }, [...t]);
67
65
  }
68
- function j(e) {
69
- let t = O(e), n = f(null);
70
- return [n, o((e) => {
66
+ function O(e) {
67
+ let t = T(e), n = d(null);
68
+ return [n, a((e) => {
71
69
  e !== n.current && t?.(e, n.current), n.current = e;
72
70
  }, [])];
73
71
  }
74
- function te(e) {
75
- let t = f();
76
- return c(() => {
72
+ function k(e) {
73
+ let t = d();
74
+ return s(() => {
77
75
  t.current = e;
78
76
  }, [e]), t.current;
79
77
  }
80
- var M = {};
81
- function ne(e, t) {
82
- return u(() => {
78
+ var A = {};
79
+ function j(e, t) {
80
+ return l(() => {
83
81
  if (t) return t;
84
- let n = M[e] == null ? 0 : M[e] + 1;
85
- return M[e] = n, e + "-" + n;
82
+ let n = A[e] == null ? 0 : A[e] + 1;
83
+ return A[e] = n, e + "-" + n;
86
84
  }, [e, t]);
87
85
  }
88
- function N(e) {
86
+ function te(e) {
89
87
  return function(t) {
90
88
  return [...arguments].slice(1).reduce((t, n) => {
91
89
  let r = Object.entries(n);
@@ -97,22 +95,22 @@ function N(e) {
97
95
  }, { ...t });
98
96
  };
99
97
  }
100
- var re = /* @__PURE__ */ N(1), P = /* @__PURE__ */ N(-1);
101
- function ie(e) {
98
+ var ne = /* @__PURE__ */ te(1), M = /* @__PURE__ */ te(-1);
99
+ function N(e) {
102
100
  return "clientX" in e && "clientY" in e;
103
101
  }
104
- function F(e) {
102
+ function P(e) {
105
103
  if (!e) return !1;
106
- let { KeyboardEvent: t } = S(e.target);
104
+ let { KeyboardEvent: t } = y(e.target);
107
105
  return t && e instanceof t;
108
106
  }
109
- function ae(e) {
107
+ function re(e) {
110
108
  if (!e) return !1;
111
- let { TouchEvent: t } = S(e.target);
109
+ let { TouchEvent: t } = y(e.target);
112
110
  return t && e instanceof t;
113
111
  }
114
- function oe(e) {
115
- if (ae(e)) {
112
+ function ie(e) {
113
+ if (re(e)) {
116
114
  if (e.touches && e.touches.length) {
117
115
  let { clientX: t, clientY: n } = e.touches[0];
118
116
  return {
@@ -127,12 +125,12 @@ function oe(e) {
127
125
  };
128
126
  }
129
127
  }
130
- return ie(e) ? {
128
+ return N(e) ? {
131
129
  x: e.clientX,
132
130
  y: e.clientY
133
131
  } : null;
134
132
  }
135
- var I = /* @__PURE__ */ Object.freeze({
133
+ var F = /* @__PURE__ */ Object.freeze({
136
134
  Translate: { toString(e) {
137
135
  if (!e) return;
138
136
  let { x: t, y: n } = e;
@@ -144,29 +142,29 @@ var I = /* @__PURE__ */ Object.freeze({
144
142
  return "scaleX(" + t + ") scaleY(" + n + ")";
145
143
  } },
146
144
  Transform: { toString(e) {
147
- if (e) return [I.Translate.toString(e), I.Scale.toString(e)].join(" ");
145
+ if (e) return [F.Translate.toString(e), F.Scale.toString(e)].join(" ");
148
146
  } },
149
147
  Transition: { toString(e) {
150
148
  let { property: t, duration: n, easing: r } = e;
151
149
  return t + " " + n + "ms " + r;
152
150
  } }
153
- }), se = "a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";
154
- function L(e) {
155
- return e.matches(se) ? e : e.querySelector(se);
151
+ }), I = "a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";
152
+ function ae(e) {
153
+ return e.matches(I) ? e : e.querySelector(I);
156
154
  }
157
155
  //#endregion
158
156
  //#region node_modules/@dnd-kit/accessibility/dist/accessibility.esm.js
159
- var R = { display: "none" };
160
- function z(e) {
161
- let { id: n, value: r } = e;
162
- return t.createElement("div", {
157
+ var L = { display: "none" };
158
+ function oe(t) {
159
+ let { id: n, value: r } = t;
160
+ return e.createElement("div", {
163
161
  id: n,
164
- style: R
162
+ style: L
165
163
  }, r);
166
164
  }
167
- function ce(e) {
168
- let { id: n, announcement: r, ariaLiveType: i = "assertive" } = e;
169
- return t.createElement("div", {
165
+ function R(t) {
166
+ let { id: n, announcement: r, ariaLiveType: i = "assertive" } = t;
167
+ return e.createElement("div", {
170
168
  id: n,
171
169
  style: {
172
170
  position: "fixed",
@@ -187,10 +185,10 @@ function ce(e) {
187
185
  "aria-atomic": !0
188
186
  }, r);
189
187
  }
190
- function B() {
191
- let [e, t] = p("");
188
+ function z() {
189
+ let [e, t] = f("");
192
190
  return {
193
- announce: o((e) => {
191
+ announce: a((e) => {
194
192
  e != null && t(e);
195
193
  }, []),
196
194
  announcement: e
@@ -198,22 +196,22 @@ function B() {
198
196
  }
199
197
  //#endregion
200
198
  //#region node_modules/@dnd-kit/core/dist/core.esm.js
201
- var V = /* @__PURE__ */ r(null);
202
- function H(e) {
203
- let t = s(V);
204
- c(() => {
199
+ var se = /* @__PURE__ */ n(null);
200
+ function ce(e) {
201
+ let t = o(se);
202
+ s(() => {
205
203
  if (!t) throw Error("useDndMonitor must be used within a children of <DndContext>");
206
204
  return t(e);
207
205
  }, [e, t]);
208
206
  }
209
207
  function le() {
210
- let [e] = p(() => /* @__PURE__ */ new Set()), t = o((t) => (e.add(t), () => e.delete(t)), [e]);
211
- return [o((t) => {
208
+ let [e] = f(() => /* @__PURE__ */ new Set()), t = a((t) => (e.add(t), () => e.delete(t)), [e]);
209
+ return [a((t) => {
212
210
  let { type: n, event: r } = t;
213
211
  e.forEach((e) => e[n]?.call(e, r));
214
212
  }, [e]), t];
215
213
  }
216
- var ue = { draggable: "\n To pick up a draggable item, press the space bar.\n While dragging, use the arrow keys to move the item.\n Press space again to drop the item in its new position, or press escape to cancel.\n " }, de = {
214
+ var B = { draggable: "\n To pick up a draggable item, press the space bar.\n While dragging, use the arrow keys to move the item.\n Press space again to drop the item in its new position, or press escape to cancel.\n " }, V = {
217
215
  onDragStart(e) {
218
216
  let { active: t } = e;
219
217
  return "Picked up draggable item " + t.id + ".";
@@ -231,11 +229,11 @@ var ue = { draggable: "\n To pick up a draggable item, press the space bar.\n
231
229
  return "Dragging was cancelled. Draggable item " + t.id + " was dropped.";
232
230
  }
233
231
  };
234
- function fe(e) {
235
- let { announcements: n = de, container: r, hiddenTextDescribedById: i, screenReaderInstructions: a = ue } = e, { announce: o, announcement: s } = B(), l = ne("DndLiveRegion"), [d, f] = p(!1);
236
- if (c(() => {
237
- f(!0);
238
- }, []), H(u(() => ({
232
+ function ue(t) {
233
+ let { announcements: n = V, container: r, hiddenTextDescribedById: i, screenReaderInstructions: a = B } = t, { announce: o, announcement: c } = z(), u = j("DndLiveRegion"), [d, m] = f(!1);
234
+ if (s(() => {
235
+ m(!0);
236
+ }, []), ce(l(() => ({
239
237
  onDragStart(e) {
240
238
  let { active: t } = e;
241
239
  o(n.onDragStart({ active: t }));
@@ -269,39 +267,39 @@ function fe(e) {
269
267
  }));
270
268
  }
271
269
  }), [o, n])), !d) return null;
272
- let m = t.createElement(t.Fragment, null, t.createElement(z, {
270
+ let h = e.createElement(e.Fragment, null, e.createElement(oe, {
273
271
  id: i,
274
272
  value: a.draggable
275
- }), t.createElement(ce, {
276
- id: l,
277
- announcement: s
273
+ }), e.createElement(R, {
274
+ id: u,
275
+ announcement: c
278
276
  }));
279
- return r ? g(m, r) : m;
277
+ return r ? p(h, r) : h;
280
278
  }
281
- var U;
279
+ var H;
282
280
  (function(e) {
283
281
  e.DragStart = "dragStart", e.DragMove = "dragMove", e.DragEnd = "dragEnd", e.DragCancel = "dragCancel", e.DragOver = "dragOver", e.RegisterDroppable = "registerDroppable", e.SetDroppableDisabled = "setDroppableDisabled", e.UnregisterDroppable = "unregisterDroppable";
284
- })(U ||= {});
285
- function pe() {}
286
- function W(e, t) {
287
- return u(() => ({
282
+ })(H ||= {});
283
+ function U() {}
284
+ function de(e, t) {
285
+ return l(() => ({
288
286
  sensor: e,
289
287
  options: t ?? {}
290
288
  }), [e, t]);
291
289
  }
292
- function me() {
290
+ function fe() {
293
291
  var e = [...arguments];
294
- return u(() => [...e].filter((e) => e != null), [...e]);
292
+ return l(() => [...e].filter((e) => e != null), [...e]);
295
293
  }
296
- var G = /* @__PURE__ */ Object.freeze({
294
+ var W = /* @__PURE__ */ Object.freeze({
297
295
  x: 0,
298
296
  y: 0
299
297
  });
300
- function he(e, t) {
298
+ function G(e, t) {
301
299
  return Math.sqrt((e.x - t.x) ** 2 + (e.y - t.y) ** 2);
302
300
  }
303
- function K(e, t) {
304
- let n = oe(e);
301
+ function pe(e, t) {
302
+ let n = ie(e);
305
303
  if (!n) return "0 0";
306
304
  let r = {
307
305
  x: (n.x - t.left) / t.width * 100,
@@ -309,15 +307,15 @@ function K(e, t) {
309
307
  };
310
308
  return r.x + "% " + r.y + "%";
311
309
  }
312
- function ge(e, t) {
310
+ function K(e, t) {
313
311
  let { data: { value: n } } = e, { data: { value: r } } = t;
314
312
  return n - r;
315
313
  }
316
- function _e(e, t) {
314
+ function me(e, t) {
317
315
  let { data: { value: n } } = e, { data: { value: r } } = t;
318
316
  return r - n;
319
317
  }
320
- function ve(e) {
318
+ function q(e) {
321
319
  let { left: t, top: n, height: r, width: i } = e;
322
320
  return [
323
321
  {
@@ -338,23 +336,23 @@ function ve(e) {
338
336
  }
339
337
  ];
340
338
  }
341
- function ye(e, t) {
339
+ function he(e, t) {
342
340
  if (!e || e.length === 0) return null;
343
341
  let [n] = e;
344
342
  return t ? n[t] : n;
345
343
  }
346
- function be(e, t, n) {
344
+ function ge(e, t, n) {
347
345
  return t === void 0 && (t = e.left), n === void 0 && (n = e.top), {
348
346
  x: t + e.width * .5,
349
347
  y: n + e.height * .5
350
348
  };
351
349
  }
352
- var xe = (e) => {
353
- let { collisionRect: t, droppableRects: n, droppableContainers: r } = e, i = be(t, t.left, t.top), a = [];
350
+ var _e = (e) => {
351
+ let { collisionRect: t, droppableRects: n, droppableContainers: r } = e, i = ge(t, t.left, t.top), a = [];
354
352
  for (let e of r) {
355
353
  let { id: t } = e, r = n.get(t);
356
354
  if (r) {
357
- let n = he(be(r), i);
355
+ let n = G(ge(r), i);
358
356
  a.push({
359
357
  id: t,
360
358
  data: {
@@ -364,13 +362,13 @@ var xe = (e) => {
364
362
  });
365
363
  }
366
364
  }
367
- return a.sort(ge);
368
- }, q = (e) => {
369
- let { collisionRect: t, droppableRects: n, droppableContainers: r } = e, i = ve(t), a = [];
365
+ return a.sort(K);
366
+ }, ve = (e) => {
367
+ let { collisionRect: t, droppableRects: n, droppableContainers: r } = e, i = q(t), a = [];
370
368
  for (let e of r) {
371
369
  let { id: t } = e, r = n.get(t);
372
370
  if (r) {
373
- let n = ve(r), o = i.reduce((e, t, r) => e + he(n[r], t), 0), s = Number((o / 4).toFixed(4));
371
+ let n = q(r), o = i.reduce((e, t, r) => e + G(n[r], t), 0), s = Number((o / 4).toFixed(4));
374
372
  a.push({
375
373
  id: t,
376
374
  data: {
@@ -380,9 +378,9 @@ var xe = (e) => {
380
378
  });
381
379
  }
382
380
  }
383
- return a.sort(ge);
381
+ return a.sort(K);
384
382
  };
385
- function Se(e, t) {
383
+ function ye(e, t) {
386
384
  let n = Math.max(t.top, e.top), r = Math.max(t.left, e.left), i = Math.min(t.left + t.width, e.left + e.width), a = Math.min(t.top + t.height, e.top + e.height), o = i - r, s = a - n;
387
385
  if (r < i && n < a) {
388
386
  let n = t.width * t.height, r = e.width * e.height, i = o * s, a = i / (n + r - i);
@@ -390,12 +388,12 @@ function Se(e, t) {
390
388
  }
391
389
  return 0;
392
390
  }
393
- var Ce = (e) => {
391
+ var be = (e) => {
394
392
  let { collisionRect: t, droppableRects: n, droppableContainers: r } = e, i = [];
395
393
  for (let e of r) {
396
394
  let { id: r } = e, a = n.get(r);
397
395
  if (a) {
398
- let n = Se(a, t);
396
+ let n = ye(a, t);
399
397
  n > 0 && i.push({
400
398
  id: r,
401
399
  data: {
@@ -405,22 +403,22 @@ var Ce = (e) => {
405
403
  });
406
404
  }
407
405
  }
408
- return i.sort(_e);
406
+ return i.sort(me);
409
407
  };
410
- function we(e, t, n) {
408
+ function xe(e, t, n) {
411
409
  return {
412
410
  ...e,
413
411
  scaleX: t && n ? t.width / n.width : 1,
414
412
  scaleY: t && n ? t.height / n.height : 1
415
413
  };
416
414
  }
417
- function Te(e, t) {
415
+ function Se(e, t) {
418
416
  return e && t ? {
419
417
  x: e.left - t.left,
420
418
  y: e.top - t.top
421
- } : G;
419
+ } : W;
422
420
  }
423
- function Ee(e) {
421
+ function J(e) {
424
422
  return function(t) {
425
423
  return [...arguments].slice(1).reduce((t, n) => ({
426
424
  ...t,
@@ -431,8 +429,8 @@ function Ee(e) {
431
429
  }), { ...t });
432
430
  };
433
431
  }
434
- var De = /* @__PURE__ */ Ee(1);
435
- function Oe(e) {
432
+ var Ce = /* @__PURE__ */ J(1);
433
+ function we(e) {
436
434
  if (e.startsWith("matrix3d(")) {
437
435
  let t = e.slice(9, -1).split(/, /);
438
436
  return {
@@ -452,8 +450,8 @@ function Oe(e) {
452
450
  }
453
451
  return null;
454
452
  }
455
- function ke(e, t, n) {
456
- let r = Oe(t);
453
+ function Te(e, t, n) {
454
+ let r = we(t);
457
455
  if (!r) return e;
458
456
  let { scaleX: i, scaleY: a, x: o, y: s } = r, c = e.left - o - (1 - i) * parseFloat(n), l = e.top - s - (1 - a) * parseFloat(n.slice(n.indexOf(" ") + 1)), u = i ? e.width / i : e.width, d = a ? e.height / a : e.height;
459
457
  return {
@@ -465,13 +463,13 @@ function ke(e, t, n) {
465
463
  left: c
466
464
  };
467
465
  }
468
- var Ae = { ignoreTransform: !1 };
469
- function J(e, t) {
470
- t === void 0 && (t = Ae);
466
+ var Ee = { ignoreTransform: !1 };
467
+ function De(e, t) {
468
+ t === void 0 && (t = Ee);
471
469
  let n = e.getBoundingClientRect();
472
470
  if (t.ignoreTransform) {
473
- let { transform: t, transformOrigin: r } = S(e).getComputedStyle(e);
474
- t && (n = ke(n, t, r));
471
+ let { transform: t, transformOrigin: r } = y(e).getComputedStyle(e);
472
+ t && (n = Te(n, t, r));
475
473
  }
476
474
  let { top: r, left: i, width: a, height: o, bottom: s, right: c } = n;
477
475
  return {
@@ -483,10 +481,10 @@ function J(e, t) {
483
481
  right: c
484
482
  };
485
483
  }
486
- function Y(e) {
487
- return J(e, { ignoreTransform: !0 });
484
+ function Oe(e) {
485
+ return De(e, { ignoreTransform: !0 });
488
486
  }
489
- function je(e) {
487
+ function ke(e) {
490
488
  let t = e.innerWidth, n = e.innerHeight;
491
489
  return {
492
490
  top: 0,
@@ -497,11 +495,11 @@ function je(e) {
497
495
  height: n
498
496
  };
499
497
  }
500
- function Me(e, t) {
501
- return t === void 0 && (t = S(e).getComputedStyle(e)), t.position === "fixed";
498
+ function Ae(e, t) {
499
+ return t === void 0 && (t = y(e).getComputedStyle(e)), t.position === "fixed";
502
500
  }
503
- function X(e, t) {
504
- t === void 0 && (t = S(e).getComputedStyle(e));
501
+ function je(e, t) {
502
+ t === void 0 && (t = y(e).getComputedStyle(e));
505
503
  let n = /(auto|scroll|overlay)/;
506
504
  return [
507
505
  "overflow",
@@ -512,48 +510,48 @@ function X(e, t) {
512
510
  return typeof r == "string" ? n.test(r) : !1;
513
511
  });
514
512
  }
515
- function Ne(e, t) {
513
+ function Y(e, t) {
516
514
  let n = [];
517
515
  function r(i) {
518
516
  if (t != null && n.length >= t || !i) return n;
519
- if (C(i) && i.scrollingElement != null && !n.includes(i.scrollingElement)) return n.push(i.scrollingElement), n;
520
- if (!w(i) || T(i) || n.includes(i)) return n;
521
- let a = S(e).getComputedStyle(i);
522
- return i !== e && X(i, a) && n.push(i), Me(i, a) ? n : r(i.parentNode);
517
+ if (b(i) && i.scrollingElement != null && !n.includes(i.scrollingElement)) return n.push(i.scrollingElement), n;
518
+ if (!x(i) || S(i) || n.includes(i)) return n;
519
+ let a = y(e).getComputedStyle(i);
520
+ return i !== e && je(i, a) && n.push(i), Ae(i, a) ? n : r(i.parentNode);
523
521
  }
524
522
  return e ? r(e) : n;
525
523
  }
526
- function Pe(e) {
527
- let [t] = Ne(e, 1);
524
+ function Me(e) {
525
+ let [t] = Y(e, 1);
528
526
  return t ?? null;
529
527
  }
530
- function Fe(e) {
531
- return !y || !e ? null : b(e) ? e : x(e) ? C(e) || e === E(e).scrollingElement ? window : w(e) ? e : null : null;
528
+ function X(e) {
529
+ return !g || !e ? null : _(e) ? e : v(e) ? b(e) || e === C(e).scrollingElement ? window : x(e) ? e : null : null;
532
530
  }
533
- function Ie(e) {
534
- return b(e) ? e.scrollX : e.scrollLeft;
531
+ function Ne(e) {
532
+ return _(e) ? e.scrollX : e.scrollLeft;
535
533
  }
536
- function Le(e) {
537
- return b(e) ? e.scrollY : e.scrollTop;
534
+ function Pe(e) {
535
+ return _(e) ? e.scrollY : e.scrollTop;
538
536
  }
539
- function Re(e) {
537
+ function Fe(e) {
540
538
  return {
541
- x: Ie(e),
542
- y: Le(e)
539
+ x: Ne(e),
540
+ y: Pe(e)
543
541
  };
544
542
  }
545
543
  var Z;
546
544
  (function(e) {
547
545
  e[e.Forward = 1] = "Forward", e[e.Backward = -1] = "Backward";
548
546
  })(Z ||= {});
549
- function ze(e) {
550
- return !y || !e ? !1 : e === document.scrollingElement;
547
+ function Ie(e) {
548
+ return !g || !e ? !1 : e === document.scrollingElement;
551
549
  }
552
- function Be(e) {
550
+ function Le(e) {
553
551
  let t = {
554
552
  x: 0,
555
553
  y: 0
556
- }, n = ze(e) ? {
554
+ }, n = Ie(e) ? {
557
555
  height: window.innerHeight,
558
556
  width: window.innerWidth
559
557
  } : {
@@ -572,14 +570,14 @@ function Be(e) {
572
570
  minScroll: t
573
571
  };
574
572
  }
575
- var Ve = {
573
+ var Re = {
576
574
  x: .2,
577
575
  y: .2
578
576
  };
579
- function He(e, t, n, r, i) {
577
+ function ze(e, t, n, r, i) {
580
578
  let { top: a, left: o, right: s, bottom: c } = n;
581
- r === void 0 && (r = 10), i === void 0 && (i = Ve);
582
- let { isTop: l, isBottom: u, isLeft: d, isRight: f } = Be(e), p = {
579
+ r === void 0 && (r = 10), i === void 0 && (i = Re);
580
+ let { isTop: l, isBottom: u, isLeft: d, isRight: f } = Le(e), p = {
583
581
  x: 0,
584
582
  y: 0
585
583
  }, m = {
@@ -594,7 +592,7 @@ function He(e, t, n, r, i) {
594
592
  speed: m
595
593
  };
596
594
  }
597
- function Ue(e) {
595
+ function Be(e) {
598
596
  if (e === document.scrollingElement) {
599
597
  let { innerWidth: e, innerHeight: t } = window;
600
598
  return {
@@ -616,37 +614,37 @@ function Ue(e) {
616
614
  height: e.clientHeight
617
615
  };
618
616
  }
619
- function We(e) {
620
- return e.reduce((e, t) => re(e, Re(t)), G);
617
+ function Ve(e) {
618
+ return e.reduce((e, t) => ne(e, Fe(t)), W);
621
619
  }
622
- function Ge(e) {
623
- return e.reduce((e, t) => e + Ie(t), 0);
620
+ function He(e) {
621
+ return e.reduce((e, t) => e + Ne(t), 0);
624
622
  }
625
- function Ke(e) {
626
- return e.reduce((e, t) => e + Le(t), 0);
623
+ function Ue(e) {
624
+ return e.reduce((e, t) => e + Pe(t), 0);
627
625
  }
628
- function qe(e, t) {
629
- if (t === void 0 && (t = J), !e) return;
626
+ function We(e, t) {
627
+ if (t === void 0 && (t = De), !e) return;
630
628
  let { top: n, left: r, bottom: i, right: a } = t(e);
631
- Pe(e) && (i <= 0 || a <= 0 || n >= window.innerHeight || r >= window.innerWidth) && e.scrollIntoView({
629
+ Me(e) && (i <= 0 || a <= 0 || n >= window.innerHeight || r >= window.innerWidth) && e.scrollIntoView({
632
630
  block: "center",
633
631
  inline: "center"
634
632
  });
635
633
  }
636
- var Je = [[
634
+ var Ge = [[
637
635
  "x",
638
636
  ["left", "right"],
639
- Ge
637
+ He
640
638
  ], [
641
639
  "y",
642
640
  ["top", "bottom"],
643
- Ke
644
- ]], Ye = class {
641
+ Ue
642
+ ]], Ke = class {
645
643
  constructor(e, t) {
646
644
  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;
647
- let n = Ne(t), r = We(n);
645
+ let n = Y(t), r = Ve(n);
648
646
  this.rect = { ...e }, this.width = e.width, this.height = e.height;
649
- for (let [e, t, i] of Je) for (let a of t) Object.defineProperty(this, a, {
647
+ for (let [e, t, i] of Ge) for (let a of t) Object.defineProperty(this, a, {
650
648
  get: () => {
651
649
  let t = i(n), o = r[e] - t;
652
650
  return this.rect[a] + o;
@@ -655,7 +653,7 @@ var Je = [[
655
653
  });
656
654
  Object.defineProperty(this, "rect", { enumerable: !1 });
657
655
  }
658
- }, Xe = class {
656
+ }, qe = class {
659
657
  constructor(e) {
660
658
  this.target = void 0, this.listeners = [], this.removeAll = () => {
661
659
  this.listeners.forEach((e) => this.target?.removeEventListener(...e));
@@ -670,11 +668,11 @@ var Je = [[
670
668
  ]);
671
669
  }
672
670
  };
673
- function Ze(e) {
674
- let { EventTarget: t } = S(e);
675
- return e instanceof t ? e : E(e);
671
+ function Je(e) {
672
+ let { EventTarget: t } = y(e);
673
+ return e instanceof t ? e : C(e);
676
674
  }
677
- function Qe(e, t) {
675
+ function Ye(e, t) {
678
676
  let n = Math.abs(e.x), r = Math.abs(e.y);
679
677
  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;
680
678
  }
@@ -682,17 +680,17 @@ var Q;
682
680
  (function(e) {
683
681
  e.Click = "click", e.DragStart = "dragstart", e.Keydown = "keydown", e.ContextMenu = "contextmenu", e.Resize = "resize", e.SelectionChange = "selectionchange", e.VisibilityChange = "visibilitychange";
684
682
  })(Q ||= {});
685
- function $e(e) {
683
+ function Xe(e) {
686
684
  e.preventDefault();
687
685
  }
688
- function et(e) {
686
+ function Ze(e) {
689
687
  e.stopPropagation();
690
688
  }
691
689
  var $;
692
690
  (function(e) {
693
691
  e.Space = "Space", e.Down = "ArrowDown", e.Right = "ArrowRight", e.Left = "ArrowLeft", e.Up = "ArrowUp", e.Esc = "Escape", e.Enter = "Enter", e.Tab = "Tab";
694
692
  })($ ||= {});
695
- var tt = {
693
+ var Qe = {
696
694
  start: [$.Space, $.Enter],
697
695
  cancel: [$.Esc],
698
696
  end: [
@@ -700,7 +698,7 @@ var tt = {
700
698
  $.Enter,
701
699
  $.Tab
702
700
  ]
703
- }, nt = (e, t) => {
701
+ }, $e = (e, t) => {
704
702
  let { currentCoordinates: n } = t;
705
703
  switch (e.code) {
706
704
  case $.Right: return {
@@ -720,22 +718,22 @@ var tt = {
720
718
  y: n.y - 25
721
719
  };
722
720
  }
723
- }, rt = class {
721
+ }, et = class {
724
722
  constructor(e) {
725
723
  this.props = void 0, this.autoScrollEnabled = !1, this.referenceCoordinates = void 0, this.listeners = void 0, this.windowListeners = void 0, this.props = e;
726
724
  let { event: { target: t } } = e;
727
- this.props = e, this.listeners = new Xe(E(t)), this.windowListeners = new Xe(S(t)), this.handleKeyDown = this.handleKeyDown.bind(this), this.handleCancel = this.handleCancel.bind(this), this.attach();
725
+ this.props = e, this.listeners = new qe(C(t)), this.windowListeners = new qe(y(t)), this.handleKeyDown = this.handleKeyDown.bind(this), this.handleCancel = this.handleCancel.bind(this), this.attach();
728
726
  }
729
727
  attach() {
730
728
  this.handleStart(), this.windowListeners.add(Q.Resize, this.handleCancel), this.windowListeners.add(Q.VisibilityChange, this.handleCancel), setTimeout(() => this.listeners.add(Q.Keydown, this.handleKeyDown));
731
729
  }
732
730
  handleStart() {
733
731
  let { activeNode: e, onStart: t } = this.props, n = e.node.current;
734
- n && qe(n), t(G);
732
+ n && We(n), t(W);
735
733
  }
736
734
  handleKeyDown(e) {
737
- if (F(e)) {
738
- let { active: t, context: n, options: r } = this.props, { keyboardCodes: i = tt, coordinateGetter: a = nt, scrollBehavior: o = "smooth" } = r, { code: s } = e;
735
+ if (P(e)) {
736
+ let { active: t, context: n, options: r } = this.props, { keyboardCodes: i = Qe, coordinateGetter: a = $e, scrollBehavior: o = "smooth" } = r, { code: s } = e;
739
737
  if (i.end.includes(s)) {
740
738
  this.handleEnd(e);
741
739
  return;
@@ -747,7 +745,7 @@ var tt = {
747
745
  let { collisionRect: c } = n.current, l = c ? {
748
746
  x: c.left,
749
747
  y: c.top
750
- } : G;
748
+ } : W;
751
749
  this.referenceCoordinates ||= l;
752
750
  let u = a(e, {
753
751
  active: t,
@@ -755,12 +753,12 @@ var tt = {
755
753
  currentCoordinates: l
756
754
  });
757
755
  if (u) {
758
- let t = P(u, l), r = {
756
+ let t = M(u, l), r = {
759
757
  x: 0,
760
758
  y: 0
761
759
  }, { scrollableAncestors: i } = n.current;
762
760
  for (let n of i) {
763
- let i = e.code, { isTop: a, isRight: s, isLeft: c, isBottom: l, maxScroll: d, minScroll: f } = Be(n), p = Ue(n), m = {
761
+ let i = e.code, { isTop: a, isRight: s, isLeft: c, isBottom: l, maxScroll: d, minScroll: f } = Le(n), p = Be(n), m = {
764
762
  x: Math.min(i === $.Right ? p.right - p.width / 2 : p.right, Math.max(i === $.Right ? p.left : p.left + p.width / 2, u.x)),
765
763
  y: Math.min(i === $.Down ? p.bottom - p.height / 2 : p.bottom, Math.max(i === $.Down ? p.top : p.top + p.height / 2, u.y))
766
764
  }, h = i === $.Right && !s || i === $.Left && !c, g = i === $.Down && !l || i === $.Up && !a;
@@ -794,7 +792,7 @@ var tt = {
794
792
  break;
795
793
  }
796
794
  }
797
- this.handleMove(e, re(P(u, this.referenceCoordinates), r));
795
+ this.handleMove(e, ne(M(u, this.referenceCoordinates), r));
798
796
  }
799
797
  }
800
798
  }
@@ -814,10 +812,10 @@ var tt = {
814
812
  this.listeners.removeAll(), this.windowListeners.removeAll();
815
813
  }
816
814
  };
817
- rt.activators = [{
815
+ et.activators = [{
818
816
  eventName: "onKeyDown",
819
817
  handler: (e, t, n) => {
820
- let { keyboardCodes: r = tt, onActivation: i } = t, { active: a } = n, { code: o } = e.nativeEvent;
818
+ let { keyboardCodes: r = Qe, onActivation: i } = t, { active: a } = n, { code: o } = e.nativeEvent;
821
819
  if (r.start.includes(o)) {
822
820
  let t = a.activatorNode.current;
823
821
  return t && e.target !== t ? !1 : (e.preventDefault(), i?.({ event: e.nativeEvent }), !0);
@@ -825,31 +823,31 @@ rt.activators = [{
825
823
  return !1;
826
824
  }
827
825
  }];
828
- function it(e) {
826
+ function tt(e) {
829
827
  return !!(e && "distance" in e);
830
828
  }
831
- function at(e) {
829
+ function nt(e) {
832
830
  return !!(e && "delay" in e);
833
831
  }
834
- var ot = class {
832
+ var rt = class {
835
833
  constructor(e, t, n) {
836
- n === void 0 && (n = Ze(e.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 = e, this.events = t;
834
+ n === void 0 && (n = Je(e.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 = e, this.events = t;
837
835
  let { event: r } = e, { target: i } = r;
838
- this.props = e, this.events = t, this.document = E(i), this.documentListeners = new Xe(this.document), this.listeners = new Xe(n), this.windowListeners = new Xe(S(i)), this.initialCoordinates = oe(r) ?? G, 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();
836
+ this.props = e, this.events = t, this.document = C(i), this.documentListeners = new qe(this.document), this.listeners = new qe(n), this.windowListeners = new qe(y(i)), this.initialCoordinates = ie(r) ?? W, 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();
839
837
  }
840
838
  attach() {
841
839
  let { events: e, props: { options: { activationConstraint: t, bypassActivationConstraint: n } } } = this;
842
- if (this.listeners.add(e.move.name, this.handleMove, { passive: !1 }), this.listeners.add(e.end.name, this.handleEnd), e.cancel && this.listeners.add(e.cancel.name, this.handleCancel), this.windowListeners.add(Q.Resize, this.handleCancel), this.windowListeners.add(Q.DragStart, $e), this.windowListeners.add(Q.VisibilityChange, this.handleCancel), this.windowListeners.add(Q.ContextMenu, $e), this.documentListeners.add(Q.Keydown, this.handleKeydown), t) {
840
+ if (this.listeners.add(e.move.name, this.handleMove, { passive: !1 }), this.listeners.add(e.end.name, this.handleEnd), e.cancel && this.listeners.add(e.cancel.name, this.handleCancel), this.windowListeners.add(Q.Resize, this.handleCancel), this.windowListeners.add(Q.DragStart, Xe), this.windowListeners.add(Q.VisibilityChange, this.handleCancel), this.windowListeners.add(Q.ContextMenu, Xe), this.documentListeners.add(Q.Keydown, this.handleKeydown), t) {
843
841
  if (n != null && n({
844
842
  event: this.props.event,
845
843
  activeNode: this.props.activeNode,
846
844
  options: this.props.options
847
845
  })) return this.handleStart();
848
- if (at(t)) {
846
+ if (nt(t)) {
849
847
  this.timeoutId = setTimeout(this.handleStart, t.delay), this.handlePending(t);
850
848
  return;
851
849
  }
852
- if (it(t)) {
850
+ if (tt(t)) {
853
851
  this.handlePending(t);
854
852
  return;
855
853
  }
@@ -865,18 +863,18 @@ var ot = class {
865
863
  }
866
864
  handleStart() {
867
865
  let { initialCoordinates: e } = this, { onStart: t } = this.props;
868
- e && (this.activated = !0, this.documentListeners.add(Q.Click, et, { capture: !0 }), this.removeTextSelection(), this.documentListeners.add(Q.SelectionChange, this.removeTextSelection), t(e));
866
+ e && (this.activated = !0, this.documentListeners.add(Q.Click, Ze, { capture: !0 }), this.removeTextSelection(), this.documentListeners.add(Q.SelectionChange, this.removeTextSelection), t(e));
869
867
  }
870
868
  handleMove(e) {
871
869
  let { activated: t, initialCoordinates: n, props: r } = this, { onMove: i, options: { activationConstraint: a } } = r;
872
870
  if (!n) return;
873
- let o = oe(e) ?? G, s = P(n, o);
871
+ let o = ie(e) ?? W, s = M(n, o);
874
872
  if (!t && a) {
875
- if (it(a)) {
876
- if (a.tolerance != null && Qe(s, a.tolerance)) return this.handleCancel();
877
- if (Qe(s, a.distance)) return this.handleStart();
873
+ if (tt(a)) {
874
+ if (a.tolerance != null && Ye(s, a.tolerance)) return this.handleCancel();
875
+ if (Ye(s, a.distance)) return this.handleStart();
878
876
  }
879
- if (at(a) && Qe(s, a.tolerance)) return this.handleCancel();
877
+ if (nt(a) && Ye(s, a.tolerance)) return this.handleCancel();
880
878
  this.handlePending(a, s);
881
879
  return;
882
880
  }
@@ -897,107 +895,107 @@ var ot = class {
897
895
  var e;
898
896
  (e = this.document.getSelection()) == null || e.removeAllRanges();
899
897
  }
900
- }, st = {
898
+ }, it = {
901
899
  cancel: { name: "pointercancel" },
902
900
  move: { name: "pointermove" },
903
901
  end: { name: "pointerup" }
904
- }, ct = class extends ot {
902
+ }, at = class extends rt {
905
903
  constructor(e) {
906
- let { event: t } = e, n = E(t.target);
907
- super(e, st, n);
904
+ let { event: t } = e, n = C(t.target);
905
+ super(e, it, n);
908
906
  }
909
907
  };
910
- ct.activators = [{
908
+ at.activators = [{
911
909
  eventName: "onPointerDown",
912
910
  handler: (e, t) => {
913
911
  let { nativeEvent: n } = e, { onActivation: r } = t;
914
912
  return !n.isPrimary || n.button !== 0 ? !1 : (r?.({ event: n }), !0);
915
913
  }
916
914
  }];
917
- var lt = {
915
+ var ot = {
918
916
  move: { name: "mousemove" },
919
917
  end: { name: "mouseup" }
920
- }, ut;
918
+ }, st;
921
919
  (function(e) {
922
920
  e[e.RightClick = 2] = "RightClick";
923
- })(ut ||= {});
924
- var dt = class extends ot {
921
+ })(st ||= {});
922
+ var ct = class extends rt {
925
923
  constructor(e) {
926
- super(e, lt, E(e.event.target));
924
+ super(e, ot, C(e.event.target));
927
925
  }
928
926
  };
929
- dt.activators = [{
927
+ ct.activators = [{
930
928
  eventName: "onMouseDown",
931
929
  handler: (e, t) => {
932
930
  let { nativeEvent: n } = e, { onActivation: r } = t;
933
- return n.button === ut.RightClick ? !1 : (r?.({ event: n }), !0);
931
+ return n.button === st.RightClick ? !1 : (r?.({ event: n }), !0);
934
932
  }
935
933
  }];
936
- var ft = {
934
+ var lt = {
937
935
  cancel: { name: "touchcancel" },
938
936
  move: { name: "touchmove" },
939
937
  end: { name: "touchend" }
940
- }, pt = class extends ot {
938
+ }, ut = class extends rt {
941
939
  constructor(e) {
942
- super(e, ft);
940
+ super(e, lt);
943
941
  }
944
942
  static setup() {
945
- return window.addEventListener(ft.move.name, e, {
943
+ return window.addEventListener(lt.move.name, e, {
946
944
  capture: !1,
947
945
  passive: !1
948
946
  }), function() {
949
- window.removeEventListener(ft.move.name, e);
947
+ window.removeEventListener(lt.move.name, e);
950
948
  };
951
949
  function e() {}
952
950
  }
953
951
  };
954
- pt.activators = [{
952
+ ut.activators = [{
955
953
  eventName: "onTouchStart",
956
954
  handler: (e, t) => {
957
955
  let { nativeEvent: n } = e, { onActivation: r } = t, { touches: i } = n;
958
956
  return i.length > 1 ? !1 : (r?.({ event: n }), !0);
959
957
  }
960
958
  }];
961
- var mt;
959
+ var dt;
962
960
  (function(e) {
963
961
  e[e.Pointer = 0] = "Pointer", e[e.DraggableRect = 1] = "DraggableRect";
964
- })(mt ||= {});
965
- var ht;
962
+ })(dt ||= {});
963
+ var ft;
966
964
  (function(e) {
967
965
  e[e.TreeOrder = 0] = "TreeOrder", e[e.ReversedTreeOrder = 1] = "ReversedTreeOrder";
968
- })(ht ||= {});
969
- function gt(e) {
970
- let { acceleration: t, activator: n = mt.Pointer, canScroll: r, draggingRect: i, enabled: a, interval: s = 5, order: l = ht.TreeOrder, pointerCoordinates: d, scrollableAncestors: p, scrollableAncestorRects: m, delta: h, threshold: g } = e, _ = vt({
966
+ })(ft ||= {});
967
+ function pt(e) {
968
+ let { acceleration: t, activator: n = dt.Pointer, canScroll: r, draggingRect: i, enabled: o, interval: c = 5, order: u = ft.TreeOrder, pointerCoordinates: f, scrollableAncestors: p, scrollableAncestorRects: m, delta: h, threshold: g } = e, _ = ht({
971
969
  delta: h,
972
- disabled: !a
973
- }), [v, y] = k(), b = f({
970
+ disabled: !o
971
+ }), [v, y] = E(), b = d({
974
972
  x: 0,
975
973
  y: 0
976
- }), x = f({
974
+ }), x = d({
977
975
  x: 0,
978
976
  y: 0
979
- }), S = u(() => {
977
+ }), S = l(() => {
980
978
  switch (n) {
981
- case mt.Pointer: return d ? {
982
- top: d.y,
983
- bottom: d.y,
984
- left: d.x,
985
- right: d.x
979
+ case dt.Pointer: return f ? {
980
+ top: f.y,
981
+ bottom: f.y,
982
+ left: f.x,
983
+ right: f.x
986
984
  } : null;
987
- case mt.DraggableRect: return i;
985
+ case dt.DraggableRect: return i;
988
986
  }
989
987
  }, [
990
988
  n,
991
989
  i,
992
- d
993
- ]), C = f(null), w = o(() => {
990
+ f
991
+ ]), C = d(null), w = a(() => {
994
992
  let e = C.current;
995
993
  if (!e) return;
996
994
  let t = b.current.x * x.current.x, n = b.current.y * x.current.y;
997
995
  e.scrollBy(t, n);
998
- }, []), T = u(() => l === ht.TreeOrder ? [...p].reverse() : p, [l, p]);
999
- c(() => {
1000
- if (!a || !p.length || !S) {
996
+ }, []), T = l(() => u === ft.TreeOrder ? [...p].reverse() : p, [u, p]);
997
+ s(() => {
998
+ if (!o || !p.length || !S) {
1001
999
  y();
1002
1000
  return;
1003
1001
  }
@@ -1005,10 +1003,10 @@ function gt(e) {
1005
1003
  if (r?.(e) === !1) continue;
1006
1004
  let n = m[p.indexOf(e)];
1007
1005
  if (!n) continue;
1008
- let { direction: i, speed: a } = He(e, n, S, t, g);
1006
+ let { direction: i, speed: a } = ze(e, n, S, t, g);
1009
1007
  for (let e of ["x", "y"]) _[e][i[e]] || (a[e] = 0, i[e] = 0);
1010
1008
  if (a.x > 0 || a.y > 0) {
1011
- y(), C.current = e, v(w, s), b.current = a, x.current = i;
1009
+ y(), C.current = e, v(w, c), b.current = a, x.current = i;
1012
1010
  return;
1013
1011
  }
1014
1012
  }
@@ -1024,8 +1022,8 @@ function gt(e) {
1024
1022
  w,
1025
1023
  r,
1026
1024
  y,
1027
- a,
1028
- s,
1025
+ o,
1026
+ c,
1029
1027
  JSON.stringify(S),
1030
1028
  JSON.stringify(_),
1031
1029
  v,
@@ -1035,7 +1033,7 @@ function gt(e) {
1035
1033
  JSON.stringify(g)
1036
1034
  ]);
1037
1035
  }
1038
- var _t = {
1036
+ var mt = {
1039
1037
  x: {
1040
1038
  [Z.Backward]: !1,
1041
1039
  [Z.Forward]: !1
@@ -1045,10 +1043,10 @@ var _t = {
1045
1043
  [Z.Forward]: !1
1046
1044
  }
1047
1045
  };
1048
- function vt(e) {
1049
- let { delta: t, disabled: n } = e, r = te(t);
1050
- return A((e) => {
1051
- if (n || !r || !e) return _t;
1046
+ function ht(e) {
1047
+ let { delta: t, disabled: n } = e, r = k(t);
1048
+ return D((e) => {
1049
+ if (n || !r || !e) return mt;
1052
1050
  let i = {
1053
1051
  x: Math.sign(t.x - r.x),
1054
1052
  y: Math.sign(t.y - r.y)
@@ -1069,12 +1067,12 @@ function vt(e) {
1069
1067
  r
1070
1068
  ]);
1071
1069
  }
1072
- function yt(e, t) {
1070
+ function gt(e, t) {
1073
1071
  let n = t == null ? void 0 : e.get(t), r = n ? n.node.current : null;
1074
- return A((e) => t == null ? null : r ?? e ?? null, [r, t]);
1072
+ return D((e) => t == null ? null : r ?? e ?? null, [r, t]);
1075
1073
  }
1076
- function bt(e, t) {
1077
- return u(() => e.reduce((e, n) => {
1074
+ function _t(e, t) {
1075
+ return l(() => e.reduce((e, n) => {
1078
1076
  let { sensor: r } = n, i = r.activators.map((e) => ({
1079
1077
  eventName: e.eventName,
1080
1078
  handler: t(e.handler, n)
@@ -1082,29 +1080,29 @@ function bt(e, t) {
1082
1080
  return [...e, ...i];
1083
1081
  }, []), [e, t]);
1084
1082
  }
1085
- var xt;
1083
+ var vt;
1086
1084
  (function(e) {
1087
1085
  e[e.Always = 0] = "Always", e[e.BeforeDragging = 1] = "BeforeDragging", e[e.WhileDragging = 2] = "WhileDragging";
1088
- })(xt ||= {});
1089
- var St;
1086
+ })(vt ||= {});
1087
+ var yt;
1090
1088
  (function(e) {
1091
1089
  e.Optimized = "optimized";
1092
- })(St ||= {});
1093
- var Ct = /* @__PURE__ */ new Map();
1094
- function wt(e, t) {
1095
- let { dragging: n, dependencies: r, config: i } = t, [a, s] = p(null), { frequency: l, measure: u, strategy: d } = i, m = f(e), h = b(), g = ee(h), _ = o(function(e) {
1096
- e === void 0 && (e = []), !g.current && s((t) => t === null ? e : t.concat(e.filter((e) => !t.includes(e))));
1097
- }, [g]), v = f(null), y = A((t) => {
1098
- if (h && !n) return Ct;
1099
- if (!t || t === Ct || m.current !== e || a != null) {
1090
+ })(yt ||= {});
1091
+ var bt = /* @__PURE__ */ new Map();
1092
+ function xt(e, t) {
1093
+ let { dragging: n, dependencies: r, config: i } = t, [o, c] = f(null), { frequency: l, measure: u, strategy: p } = i, m = d(e), h = b(), g = ee(h), _ = a(function(e) {
1094
+ e === void 0 && (e = []), !g.current && c((t) => t === null ? e : t.concat(e.filter((e) => !t.includes(e))));
1095
+ }, [g]), v = d(null), y = D((t) => {
1096
+ if (h && !n) return bt;
1097
+ if (!t || t === bt || m.current !== e || o != null) {
1100
1098
  let t = /* @__PURE__ */ new Map();
1101
1099
  for (let n of e) {
1102
1100
  if (!n) continue;
1103
- if (a && a.length > 0 && !a.includes(n.id) && n.rect.current) {
1101
+ if (o && o.length > 0 && !o.includes(n.id) && n.rect.current) {
1104
1102
  t.set(n.id, n.rect.current);
1105
1103
  continue;
1106
1104
  }
1107
- let e = n.node.current, r = e ? new Ye(u(e), e) : null;
1105
+ let e = n.node.current, r = e ? new Ke(u(e), e) : null;
1108
1106
  n.rect.current = r, r && t.set(n.id, r);
1109
1107
  }
1110
1108
  return t;
@@ -1112,18 +1110,18 @@ function wt(e, t) {
1112
1110
  return t;
1113
1111
  }, [
1114
1112
  e,
1115
- a,
1113
+ o,
1116
1114
  n,
1117
1115
  h,
1118
1116
  u
1119
1117
  ]);
1120
- return c(() => {
1118
+ return s(() => {
1121
1119
  m.current = e;
1122
- }, [e]), c(() => {
1120
+ }, [e]), s(() => {
1123
1121
  h || _();
1124
- }, [n, h]), c(() => {
1125
- a && a.length > 0 && s(null);
1126
- }, [JSON.stringify(a)]), c(() => {
1122
+ }, [n, h]), s(() => {
1123
+ o && o.length > 0 && c(null);
1124
+ }, [JSON.stringify(o)]), s(() => {
1127
1125
  h || typeof l != "number" || v.current !== null || (v.current = setTimeout(() => {
1128
1126
  _(), v.current = null;
1129
1127
  }, l));
@@ -1135,44 +1133,44 @@ function wt(e, t) {
1135
1133
  ]), {
1136
1134
  droppableRects: y,
1137
1135
  measureDroppableContainers: _,
1138
- measuringScheduled: a != null
1136
+ measuringScheduled: o != null
1139
1137
  };
1140
1138
  function b() {
1141
- switch (d) {
1142
- case xt.Always: return !1;
1143
- case xt.BeforeDragging: return n;
1139
+ switch (p) {
1140
+ case vt.Always: return !1;
1141
+ case vt.BeforeDragging: return n;
1144
1142
  default: return !n;
1145
1143
  }
1146
1144
  }
1147
1145
  }
1148
- function Tt(e, t) {
1149
- return A((n) => e ? n || (typeof t == "function" ? t(e) : e) : null, [t, e]);
1146
+ function St(e, t) {
1147
+ return D((n) => e ? n || (typeof t == "function" ? t(e) : e) : null, [t, e]);
1150
1148
  }
1151
- function Et(e, t) {
1152
- return Tt(e, t);
1149
+ function Ct(e, t) {
1150
+ return St(e, t);
1153
1151
  }
1154
- function Dt(e) {
1155
- let { callback: t, disabled: n } = e, r = O(t), i = u(() => {
1152
+ function wt(e) {
1153
+ let { callback: t, disabled: n } = e, r = T(t), i = l(() => {
1156
1154
  if (n || typeof window > "u" || window.MutationObserver === void 0) return;
1157
1155
  let { MutationObserver: e } = window;
1158
1156
  return new e(r);
1159
1157
  }, [r, n]);
1160
- return c(() => () => i?.disconnect(), [i]), i;
1158
+ return s(() => () => i?.disconnect(), [i]), i;
1161
1159
  }
1162
- function Ot(e) {
1163
- let { callback: t, disabled: n } = e, r = O(t), i = u(() => {
1160
+ function Tt(e) {
1161
+ let { callback: t, disabled: n } = e, r = T(t), i = l(() => {
1164
1162
  if (n || typeof window > "u" || window.ResizeObserver === void 0) return;
1165
1163
  let { ResizeObserver: e } = window;
1166
1164
  return new e(r);
1167
1165
  }, [n]);
1168
- return c(() => () => i?.disconnect(), [i]), i;
1166
+ return s(() => () => i?.disconnect(), [i]), i;
1169
1167
  }
1170
- function kt(e) {
1171
- return new Ye(J(e), e);
1168
+ function Et(e) {
1169
+ return new Ke(De(e), e);
1172
1170
  }
1173
- function At(e, t, n) {
1174
- t === void 0 && (t = kt);
1175
- let [r, i] = p(null);
1171
+ function Dt(e, t, n) {
1172
+ t === void 0 && (t = Et);
1173
+ let [r, i] = f(null);
1176
1174
  function a() {
1177
1175
  i((r) => {
1178
1176
  if (!e) return null;
@@ -1181,7 +1179,7 @@ function At(e, t, n) {
1181
1179
  return JSON.stringify(r) === JSON.stringify(i) ? r : i;
1182
1180
  });
1183
1181
  }
1184
- let o = Dt({ callback(t) {
1182
+ let o = wt({ callback(t) {
1185
1183
  if (e) for (let n of t) {
1186
1184
  let { type: t, target: r } = n;
1187
1185
  if (t === "childList" && r instanceof HTMLElement && r.contains(e)) {
@@ -1189,36 +1187,36 @@ function At(e, t, n) {
1189
1187
  break;
1190
1188
  }
1191
1189
  }
1192
- } }), s = Ot({ callback: a });
1193
- return D(() => {
1190
+ } }), s = Tt({ callback: a });
1191
+ return w(() => {
1194
1192
  a(), e ? (s?.observe(e), o?.observe(document.body, {
1195
1193
  childList: !0,
1196
1194
  subtree: !0
1197
1195
  })) : (s?.disconnect(), o?.disconnect());
1198
1196
  }, [e]), r;
1199
1197
  }
1200
- function jt(e) {
1201
- return Te(e, Tt(e));
1198
+ function Ot(e) {
1199
+ return Se(e, St(e));
1202
1200
  }
1203
- var Mt = [];
1204
- function Nt(e) {
1205
- let t = f(e), n = A((n) => e ? n && n !== Mt && e && t.current && e.parentNode === t.current.parentNode ? n : Ne(e) : Mt, [e]);
1206
- return c(() => {
1201
+ var kt = [];
1202
+ function At(e) {
1203
+ let t = d(e), n = D((n) => e ? n && n !== kt && e && t.current && e.parentNode === t.current.parentNode ? n : Y(e) : kt, [e]);
1204
+ return s(() => {
1207
1205
  t.current = e;
1208
1206
  }, [e]), n;
1209
1207
  }
1210
- function Pt(e) {
1211
- let [t, n] = p(null), r = f(e), i = o((e) => {
1212
- let t = Fe(e.target);
1213
- t && n((e) => e ? (e.set(t, Re(t)), new Map(e)) : null);
1208
+ function jt(e) {
1209
+ let [t, n] = f(null), r = d(e), i = a((e) => {
1210
+ let t = X(e.target);
1211
+ t && n((e) => e ? (e.set(t, Fe(t)), new Map(e)) : null);
1214
1212
  }, []);
1215
- return c(() => {
1213
+ return s(() => {
1216
1214
  let t = r.current;
1217
1215
  if (e !== t) {
1218
1216
  a(t);
1219
1217
  let o = e.map((e) => {
1220
- let t = Fe(e);
1221
- return t ? (t.addEventListener("scroll", i, { passive: !0 }), [t, Re(t)]) : null;
1218
+ let t = X(e);
1219
+ return t ? (t.addEventListener("scroll", i, { passive: !0 }), [t, Fe(t)]) : null;
1222
1220
  }).filter((e) => e != null);
1223
1221
  n(o.length ? new Map(o) : null), r.current = e;
1224
1222
  }
@@ -1227,24 +1225,24 @@ function Pt(e) {
1227
1225
  };
1228
1226
  function a(e) {
1229
1227
  e.forEach((e) => {
1230
- Fe(e)?.removeEventListener("scroll", i);
1228
+ X(e)?.removeEventListener("scroll", i);
1231
1229
  });
1232
1230
  }
1233
- }, [i, e]), u(() => e.length ? t ? Array.from(t.values()).reduce((e, t) => re(e, t), G) : We(e) : G, [e, t]);
1231
+ }, [i, e]), l(() => e.length ? t ? Array.from(t.values()).reduce((e, t) => ne(e, t), W) : Ve(e) : W, [e, t]);
1234
1232
  }
1235
- function Ft(e, t) {
1233
+ function Mt(e, t) {
1236
1234
  t === void 0 && (t = []);
1237
- let n = f(null);
1238
- return c(() => {
1235
+ let n = d(null);
1236
+ return s(() => {
1239
1237
  n.current = null;
1240
- }, t), c(() => {
1241
- let t = e !== G;
1238
+ }, t), s(() => {
1239
+ let t = e !== W;
1242
1240
  t && !n.current && (n.current = e), !t && n.current && (n.current = null);
1243
- }, [e]), n.current ? P(e, n.current) : G;
1241
+ }, [e]), n.current ? M(e, n.current) : W;
1244
1242
  }
1245
- function It(e) {
1246
- c(() => {
1247
- if (!y) return;
1243
+ function Nt(e) {
1244
+ s(() => {
1245
+ if (!g) return;
1248
1246
  let t = e.map((e) => {
1249
1247
  let { sensor: t } = e;
1250
1248
  return t.setup == null ? void 0 : t.setup();
@@ -1257,38 +1255,38 @@ function It(e) {
1257
1255
  return t;
1258
1256
  }));
1259
1257
  }
1260
- function Lt(e, t) {
1261
- return u(() => e.reduce((e, n) => {
1258
+ function Pt(e, t) {
1259
+ return l(() => e.reduce((e, n) => {
1262
1260
  let { eventName: r, handler: i } = n;
1263
1261
  return e[r] = (e) => {
1264
1262
  i(e, t);
1265
1263
  }, e;
1266
1264
  }, {}), [e, t]);
1267
1265
  }
1268
- function Rt(e) {
1269
- return u(() => e ? je(e) : null, [e]);
1266
+ function Ft(e) {
1267
+ return l(() => e ? ke(e) : null, [e]);
1270
1268
  }
1271
- var zt = [];
1272
- function Bt(e, t) {
1273
- t === void 0 && (t = J);
1274
- let [n] = e, r = Rt(n ? S(n) : null), [i, a] = p(zt);
1269
+ var It = [];
1270
+ function Lt(e, t) {
1271
+ t === void 0 && (t = De);
1272
+ let [n] = e, r = Ft(n ? y(n) : null), [i, a] = f(It);
1275
1273
  function o() {
1276
- a(() => e.length ? e.map((e) => ze(e) ? r : new Ye(t(e), e)) : zt);
1274
+ a(() => e.length ? e.map((e) => Ie(e) ? r : new Ke(t(e), e)) : It);
1277
1275
  }
1278
- let s = Ot({ callback: o });
1279
- return D(() => {
1276
+ let s = Tt({ callback: o });
1277
+ return w(() => {
1280
1278
  s?.disconnect(), o(), e.forEach((e) => s?.observe(e));
1281
1279
  }, [e]), i;
1282
1280
  }
1283
- function Vt(e) {
1281
+ function Rt(e) {
1284
1282
  if (!e) return null;
1285
1283
  if (e.children.length > 1) return e;
1286
1284
  let t = e.children[0];
1287
- return w(t) ? t : e;
1285
+ return x(t) ? t : e;
1288
1286
  }
1289
- function Ht(e) {
1290
- let { measure: t } = e, [n, r] = p(null), i = Ot({ callback: o((e) => {
1291
- for (let { target: n } of e) if (w(n)) {
1287
+ function zt(e) {
1288
+ let { measure: t } = e, [n, r] = f(null), i = Tt({ callback: a((e) => {
1289
+ for (let { target: n } of e) if (x(n)) {
1292
1290
  r((e) => {
1293
1291
  let r = t(n);
1294
1292
  return e ? {
@@ -1299,35 +1297,35 @@ function Ht(e) {
1299
1297
  });
1300
1298
  break;
1301
1299
  }
1302
- }, [t]) }), [a, s] = j(o((e) => {
1303
- let n = Vt(e);
1300
+ }, [t]) }), [o, s] = O(a((e) => {
1301
+ let n = Rt(e);
1304
1302
  i?.disconnect(), n && i?.observe(n), r(n ? t(n) : null);
1305
1303
  }, [t, i]));
1306
- return u(() => ({
1307
- nodeRef: a,
1304
+ return l(() => ({
1305
+ nodeRef: o,
1308
1306
  rect: n,
1309
1307
  setRef: s
1310
1308
  }), [
1311
1309
  n,
1312
- a,
1310
+ o,
1313
1311
  s
1314
1312
  ]);
1315
1313
  }
1316
- var Ut = [{
1317
- sensor: ct,
1314
+ var Bt = [{
1315
+ sensor: at,
1318
1316
  options: {}
1319
1317
  }, {
1320
- sensor: rt,
1318
+ sensor: et,
1321
1319
  options: {}
1322
- }], Wt = { current: {} }, Gt = {
1323
- draggable: { measure: Y },
1320
+ }], Vt = { current: {} }, Ht = {
1321
+ draggable: { measure: Oe },
1324
1322
  droppable: {
1325
- measure: Y,
1326
- strategy: xt.WhileDragging,
1327
- frequency: St.Optimized
1323
+ measure: Oe,
1324
+ strategy: vt.WhileDragging,
1325
+ frequency: yt.Optimized
1328
1326
  },
1329
- dragOverlay: { measure: J }
1330
- }, Kt = class extends Map {
1327
+ dragOverlay: { measure: De }
1328
+ }, Ut = class extends Map {
1331
1329
  get(e) {
1332
1330
  return e == null ? void 0 : super.get(e) ?? void 0;
1333
1331
  }
@@ -1343,7 +1341,7 @@ var Ut = [{
1343
1341
  getNodeFor(e) {
1344
1342
  return this.get(e)?.node.current ?? void 0;
1345
1343
  }
1346
- }, qt = {
1344
+ }, Wt = {
1347
1345
  activatorEvent: null,
1348
1346
  active: null,
1349
1347
  activeNode: null,
@@ -1352,31 +1350,31 @@ var Ut = [{
1352
1350
  containerNodeRect: null,
1353
1351
  draggableNodes: /* @__PURE__ */ new Map(),
1354
1352
  droppableRects: /* @__PURE__ */ new Map(),
1355
- droppableContainers: /* @__PURE__ */ new Kt(),
1353
+ droppableContainers: /* @__PURE__ */ new Ut(),
1356
1354
  over: null,
1357
1355
  dragOverlay: {
1358
1356
  nodeRef: { current: null },
1359
1357
  rect: null,
1360
- setRef: pe
1358
+ setRef: U
1361
1359
  },
1362
1360
  scrollableAncestors: [],
1363
1361
  scrollableAncestorRects: [],
1364
- measuringConfiguration: Gt,
1365
- measureDroppableContainers: pe,
1362
+ measuringConfiguration: Ht,
1363
+ measureDroppableContainers: U,
1366
1364
  windowRect: null,
1367
1365
  measuringScheduled: !1
1368
- }, Jt = {
1366
+ }, Gt = {
1369
1367
  activatorEvent: null,
1370
1368
  activators: [],
1371
1369
  active: null,
1372
1370
  activeNodeRect: null,
1373
1371
  ariaDescribedById: { draggable: "" },
1374
- dispatch: pe,
1372
+ dispatch: U,
1375
1373
  draggableNodes: /* @__PURE__ */ new Map(),
1376
1374
  over: null,
1377
- measureDroppableContainers: pe
1378
- }, Yt = /* @__PURE__ */ r(Jt), Xt = /* @__PURE__ */ r(qt);
1379
- function Zt() {
1375
+ measureDroppableContainers: U
1376
+ }, Kt = /* @__PURE__ */ n(Gt), qt = /* @__PURE__ */ n(Wt);
1377
+ function Jt() {
1380
1378
  return {
1381
1379
  draggable: {
1382
1380
  active: null,
@@ -1390,12 +1388,12 @@ function Zt() {
1390
1388
  y: 0
1391
1389
  }
1392
1390
  },
1393
- droppable: { containers: new Kt() }
1391
+ droppable: { containers: new Ut() }
1394
1392
  };
1395
1393
  }
1396
- function Qt(e, t) {
1394
+ function Yt(e, t) {
1397
1395
  switch (t.type) {
1398
- case U.DragStart: return {
1396
+ case H.DragStart: return {
1399
1397
  ...e,
1400
1398
  draggable: {
1401
1399
  ...e.draggable,
@@ -1403,7 +1401,7 @@ function Qt(e, t) {
1403
1401
  active: t.active
1404
1402
  }
1405
1403
  };
1406
- case U.DragMove: return e.draggable.active == null ? e : {
1404
+ case H.DragMove: return e.draggable.active == null ? e : {
1407
1405
  ...e,
1408
1406
  draggable: {
1409
1407
  ...e.draggable,
@@ -1413,8 +1411,8 @@ function Qt(e, t) {
1413
1411
  }
1414
1412
  }
1415
1413
  };
1416
- case U.DragEnd:
1417
- case U.DragCancel: return {
1414
+ case H.DragEnd:
1415
+ case H.DragCancel: return {
1418
1416
  ...e,
1419
1417
  draggable: {
1420
1418
  ...e.draggable,
@@ -1429,8 +1427,8 @@ function Qt(e, t) {
1429
1427
  }
1430
1428
  }
1431
1429
  };
1432
- case U.RegisterDroppable: {
1433
- let { element: n } = t, { id: r } = n, i = new Kt(e.droppable.containers);
1430
+ case H.RegisterDroppable: {
1431
+ let { element: n } = t, { id: r } = n, i = new Ut(e.droppable.containers);
1434
1432
  return i.set(r, n), {
1435
1433
  ...e,
1436
1434
  droppable: {
@@ -1439,10 +1437,10 @@ function Qt(e, t) {
1439
1437
  }
1440
1438
  };
1441
1439
  }
1442
- case U.SetDroppableDisabled: {
1440
+ case H.SetDroppableDisabled: {
1443
1441
  let { id: n, key: r, disabled: i } = t, a = e.droppable.containers.get(n);
1444
1442
  if (!a || r !== a.key) return e;
1445
- let o = new Kt(e.droppable.containers);
1443
+ let o = new Ut(e.droppable.containers);
1446
1444
  return o.set(n, {
1447
1445
  ...a,
1448
1446
  disabled: i
@@ -1454,10 +1452,10 @@ function Qt(e, t) {
1454
1452
  }
1455
1453
  };
1456
1454
  }
1457
- case U.UnregisterDroppable: {
1455
+ case H.UnregisterDroppable: {
1458
1456
  let { id: n, key: r } = t, i = e.droppable.containers.get(n);
1459
1457
  if (!i || r !== i.key) return e;
1460
- let a = new Kt(e.droppable.containers);
1458
+ let a = new Ut(e.droppable.containers);
1461
1459
  return a.delete(n), {
1462
1460
  ...e,
1463
1461
  droppable: {
@@ -1469,19 +1467,19 @@ function Qt(e, t) {
1469
1467
  default: return e;
1470
1468
  }
1471
1469
  }
1472
- function $t(e) {
1473
- let { disabled: t } = e, { active: n, activatorEvent: r, draggableNodes: i } = s(Yt), a = te(r), o = te(n?.id);
1474
- return c(() => {
1475
- if (!t && !r && a && o != null) {
1476
- if (!F(a) || document.activeElement === a.target) return;
1477
- let e = i.get(o);
1470
+ function Xt(e) {
1471
+ let { disabled: t } = e, { active: n, activatorEvent: r, draggableNodes: i } = o(Kt), a = k(r), c = k(n?.id);
1472
+ return s(() => {
1473
+ if (!t && !r && a && c != null) {
1474
+ if (!P(a) || document.activeElement === a.target) return;
1475
+ let e = i.get(c);
1478
1476
  if (!e) return;
1479
1477
  let { activatorNode: t, node: n } = e;
1480
1478
  if (!t.current && !n.current) return;
1481
1479
  requestAnimationFrame(() => {
1482
1480
  for (let e of [t.current, n.current]) {
1483
1481
  if (!e) continue;
1484
- let t = L(e);
1482
+ let t = ae(e);
1485
1483
  if (t) {
1486
1484
  t.focus();
1487
1485
  break;
@@ -1493,29 +1491,29 @@ function $t(e) {
1493
1491
  r,
1494
1492
  t,
1495
1493
  i,
1496
- o,
1494
+ c,
1497
1495
  a
1498
1496
  ]), null;
1499
1497
  }
1500
- function en(e, t) {
1498
+ function Zt(e, t) {
1501
1499
  let { transform: n, ...r } = t;
1502
1500
  return e != null && e.length ? e.reduce((e, t) => t({
1503
1501
  transform: e,
1504
1502
  ...r
1505
1503
  }), n) : n;
1506
1504
  }
1507
- function tn(e) {
1508
- return u(() => ({
1505
+ function Qt(e) {
1506
+ return l(() => ({
1509
1507
  draggable: {
1510
- ...Gt.draggable,
1508
+ ...Ht.draggable,
1511
1509
  ...e?.draggable
1512
1510
  },
1513
1511
  droppable: {
1514
- ...Gt.droppable,
1512
+ ...Ht.droppable,
1515
1513
  ...e?.droppable
1516
1514
  },
1517
1515
  dragOverlay: {
1518
- ...Gt.dragOverlay,
1516
+ ...Ht.dragOverlay,
1519
1517
  ...e?.dragOverlay
1520
1518
  }
1521
1519
  }), [
@@ -1524,12 +1522,12 @@ function tn(e) {
1524
1522
  e?.dragOverlay
1525
1523
  ]);
1526
1524
  }
1527
- function nn(e) {
1528
- let { activeNode: t, measure: n, initialRect: r, config: i = !0 } = e, a = f(!1), { x: o, y: s } = typeof i == "boolean" ? {
1525
+ function $t(e) {
1526
+ let { activeNode: t, measure: n, initialRect: r, config: i = !0 } = e, a = d(!1), { x: o, y: s } = typeof i == "boolean" ? {
1529
1527
  x: i,
1530
1528
  y: i
1531
1529
  } : i;
1532
- D(() => {
1530
+ w(() => {
1533
1531
  if (!o && !s || !t) {
1534
1532
  a.current = !1;
1535
1533
  return;
@@ -1537,9 +1535,9 @@ function nn(e) {
1537
1535
  if (a.current || !r) return;
1538
1536
  let e = t?.node.current;
1539
1537
  if (!e || e.isConnected === !1) return;
1540
- let i = Te(n(e), r);
1538
+ let i = Se(n(e), r);
1541
1539
  if (o || (i.x = 0), s || (i.y = 0), a.current = !0, Math.abs(i.x) > 0 || Math.abs(i.y) > 0) {
1542
- let t = Pe(e);
1540
+ let t = Me(e);
1543
1541
  t && t.scrollBy({
1544
1542
  top: i.y,
1545
1543
  left: i.x
@@ -1553,40 +1551,40 @@ function nn(e) {
1553
1551
  n
1554
1552
  ]);
1555
1553
  }
1556
- var rn = /* @__PURE__ */ r({
1557
- ...G,
1554
+ var en = /* @__PURE__ */ n({
1555
+ ...W,
1558
1556
  scaleX: 1,
1559
1557
  scaleY: 1
1560
- }), an;
1558
+ }), tn;
1561
1559
  (function(e) {
1562
1560
  e[e.Uninitialized = 0] = "Uninitialized", e[e.Initializing = 1] = "Initializing", e[e.Initialized = 2] = "Initialized";
1563
- })(an ||= {});
1564
- var on = /* @__PURE__ */ a(function(e) {
1565
- let { id: n, accessibility: r, autoScroll: i = !0, children: a, sensors: s = Ut, collisionDetection: l = Ce, measuring: m, modifiers: h, ...g } = e, [v, y] = d(Qt, void 0, Zt), [b, x] = le(), [C, w] = p(an.Uninitialized), T = C === an.Initialized, { draggable: { active: E, nodes: O, translate: k }, droppable: { containers: A } } = v, j = E == null ? null : O.get(E), te = f({
1561
+ })(tn ||= {});
1562
+ var nn = /* @__PURE__ */ i(function(t) {
1563
+ let { id: n, accessibility: r, autoScroll: i = !0, children: o, sensors: c = Bt, collisionDetection: p = be, measuring: h, modifiers: g, ..._ } = t, [v, b] = u(Yt, void 0, Jt), [x, S] = le(), [C, T] = f(tn.Uninitialized), E = C === tn.Initialized, { draggable: { active: D, nodes: O, translate: k }, droppable: { containers: A } } = v, te = D == null ? null : O.get(D), M = d({
1566
1564
  initial: null,
1567
1565
  translated: null
1568
- }), M = u(() => E == null ? null : {
1569
- id: E,
1570
- data: j?.data ?? Wt,
1571
- rect: te
1572
- }, [E, j]), N = f(null), [P, ie] = p(null), [F, ae] = p(null), I = ee(g, Object.values(g)), se = ne("DndDescribedBy", n), L = u(() => A.getEnabled(), [A]), R = tn(m), { droppableRects: z, measureDroppableContainers: ce, measuringScheduled: B } = wt(L, {
1573
- dragging: T,
1566
+ }), N = l(() => D == null ? null : {
1567
+ id: D,
1568
+ data: te?.data ?? Vt,
1569
+ rect: M
1570
+ }, [D, te]), P = d(null), [re, F] = f(null), [I, ae] = f(null), L = ee(_, Object.values(_)), oe = j("DndDescribedBy", n), R = l(() => A.getEnabled(), [A]), z = Qt(h), { droppableRects: ce, measureDroppableContainers: B, measuringScheduled: V } = xt(R, {
1571
+ dragging: E,
1574
1572
  dependencies: [k.x, k.y],
1575
- config: R.droppable
1576
- }), H = yt(O, E), ue = u(() => F ? oe(F) : null, [F]), de = ze(), pe = Et(H, R.draggable.measure);
1577
- nn({
1578
- activeNode: E == null ? null : O.get(E),
1579
- config: de.layoutShiftCompensation,
1580
- initialRect: pe,
1581
- measure: R.draggable.measure
1573
+ config: z.droppable
1574
+ }), U = gt(O, D), de = l(() => I ? ie(I) : null, [I]), fe = ze(), W = Ct(U, z.draggable.measure);
1575
+ $t({
1576
+ activeNode: D == null ? null : O.get(D),
1577
+ config: fe.layoutShiftCompensation,
1578
+ initialRect: W,
1579
+ measure: z.draggable.measure
1582
1580
  });
1583
- let W = At(H, R.draggable.measure, pe), me = At(H ? H.parentElement : null), G = f({
1581
+ let G = Dt(U, z.draggable.measure, W), pe = Dt(U ? U.parentElement : null), K = d({
1584
1582
  activatorEvent: null,
1585
1583
  active: null,
1586
- activeNode: H,
1584
+ activeNode: U,
1587
1585
  collisionRect: null,
1588
1586
  collisions: null,
1589
- droppableRects: z,
1587
+ droppableRects: ce,
1590
1588
  draggableNodes: O,
1591
1589
  draggingNode: null,
1592
1590
  draggingNodeRect: null,
@@ -1594,114 +1592,114 @@ var on = /* @__PURE__ */ a(function(e) {
1594
1592
  over: null,
1595
1593
  scrollableAncestors: [],
1596
1594
  scrollAdjustedTranslate: null
1597
- }), he = A.getNodeFor(G.current.over?.id), K = Ht({ measure: R.dragOverlay.measure }), ge = K.nodeRef.current ?? H, _e = T ? K.rect ?? W : null, ve = !!(K.nodeRef.current && K.rect), be = jt(ve ? null : W), xe = Rt(ge ? S(ge) : null), q = Nt(T ? he ?? H : null), Se = Bt(q), Te = en(h, {
1595
+ }), me = A.getNodeFor(K.current.over?.id), q = zt({ measure: z.dragOverlay.measure }), ge = q.nodeRef.current ?? U, _e = E ? q.rect ?? G : null, ve = !!(q.nodeRef.current && q.rect), ye = Ot(ve ? null : G), Se = Ft(ge ? y(ge) : null), J = At(E ? me ?? U : null), we = Lt(J), Te = Zt(g, {
1598
1596
  transform: {
1599
- x: k.x - be.x,
1600
- y: k.y - be.y,
1597
+ x: k.x - ye.x,
1598
+ y: k.y - ye.y,
1601
1599
  scaleX: 1,
1602
1600
  scaleY: 1
1603
1601
  },
1604
- activatorEvent: F,
1605
- active: M,
1606
- activeNodeRect: W,
1607
- containerNodeRect: me,
1602
+ activatorEvent: I,
1603
+ active: N,
1604
+ activeNodeRect: G,
1605
+ containerNodeRect: pe,
1608
1606
  draggingNodeRect: _e,
1609
- over: G.current.over,
1610
- overlayNodeRect: K.rect,
1611
- scrollableAncestors: q,
1612
- scrollableAncestorRects: Se,
1613
- windowRect: xe
1614
- }), Ee = ue ? re(ue, k) : null, Oe = Pt(q), ke = Ft(Oe), Ae = Ft(Oe, [W]), J = re(Te, ke), Y = _e ? De(_e, Te) : null, je = M && Y ? l({
1615
- active: M,
1616
- collisionRect: Y,
1617
- droppableRects: z,
1618
- droppableContainers: L,
1607
+ over: K.current.over,
1608
+ overlayNodeRect: q.rect,
1609
+ scrollableAncestors: J,
1610
+ scrollableAncestorRects: we,
1611
+ windowRect: Se
1612
+ }), Ee = de ? ne(de, k) : null, De = jt(J), Oe = Mt(De), ke = Mt(De, [G]), Ae = ne(Te, Oe), je = _e ? Ce(_e, Te) : null, Y = N && je ? p({
1613
+ active: N,
1614
+ collisionRect: je,
1615
+ droppableRects: ce,
1616
+ droppableContainers: R,
1619
1617
  pointerCoordinates: Ee
1620
- }) : null, Me = ye(je, "id"), [X, Ne] = p(null), Pe = we(ve ? Te : re(Te, Ae), X?.rect ?? null, W), Fe = f(null), Ie = o((e, t) => {
1618
+ }) : null, Me = he(Y, "id"), [X, Ne] = f(null), Pe = xe(ve ? Te : ne(Te, ke), X?.rect ?? null, G), Fe = d(null), Z = a((e, t) => {
1621
1619
  let { sensor: n, options: r } = t;
1622
- if (N.current == null) return;
1623
- let i = O.get(N.current);
1620
+ if (P.current == null) return;
1621
+ let i = O.get(P.current);
1624
1622
  if (!i) return;
1625
1623
  let a = e.nativeEvent;
1626
1624
  Fe.current = new n({
1627
- active: N.current,
1625
+ active: P.current,
1628
1626
  activeNode: i,
1629
1627
  event: a,
1630
1628
  options: r,
1631
- context: G,
1629
+ context: K,
1632
1630
  onAbort(e) {
1633
1631
  if (!O.get(e)) return;
1634
- let { onDragAbort: t } = I.current, n = { id: e };
1635
- t?.(n), b({
1632
+ let { onDragAbort: t } = L.current, n = { id: e };
1633
+ t?.(n), x({
1636
1634
  type: "onDragAbort",
1637
1635
  event: n
1638
1636
  });
1639
1637
  },
1640
1638
  onPending(e, t, n, r) {
1641
1639
  if (!O.get(e)) return;
1642
- let { onDragPending: i } = I.current, a = {
1640
+ let { onDragPending: i } = L.current, a = {
1643
1641
  id: e,
1644
1642
  constraint: t,
1645
1643
  initialCoordinates: n,
1646
1644
  offset: r
1647
1645
  };
1648
- i?.(a), b({
1646
+ i?.(a), x({
1649
1647
  type: "onDragPending",
1650
1648
  event: a
1651
1649
  });
1652
1650
  },
1653
1651
  onStart(e) {
1654
- let t = N.current;
1652
+ let t = P.current;
1655
1653
  if (t == null) return;
1656
1654
  let n = O.get(t);
1657
1655
  if (!n) return;
1658
- let { onDragStart: r } = I.current, i = {
1656
+ let { onDragStart: r } = L.current, i = {
1659
1657
  activatorEvent: a,
1660
1658
  active: {
1661
1659
  id: t,
1662
1660
  data: n.data,
1663
- rect: te
1661
+ rect: M
1664
1662
  }
1665
1663
  };
1666
- _(() => {
1667
- r?.(i), w(an.Initializing), y({
1668
- type: U.DragStart,
1664
+ m(() => {
1665
+ r?.(i), T(tn.Initializing), b({
1666
+ type: H.DragStart,
1669
1667
  initialCoordinates: e,
1670
1668
  active: t
1671
- }), b({
1669
+ }), x({
1672
1670
  type: "onDragStart",
1673
1671
  event: i
1674
- }), ie(Fe.current), ae(a);
1672
+ }), F(Fe.current), ae(a);
1675
1673
  });
1676
1674
  },
1677
1675
  onMove(e) {
1678
- y({
1679
- type: U.DragMove,
1676
+ b({
1677
+ type: H.DragMove,
1680
1678
  coordinates: e
1681
1679
  });
1682
1680
  },
1683
- onEnd: o(U.DragEnd),
1684
- onCancel: o(U.DragCancel)
1681
+ onEnd: o(H.DragEnd),
1682
+ onCancel: o(H.DragCancel)
1685
1683
  });
1686
1684
  function o(e) {
1687
1685
  return async function() {
1688
- let { active: t, collisions: n, over: r, scrollAdjustedTranslate: i } = G.current, o = null;
1686
+ let { active: t, collisions: n, over: r, scrollAdjustedTranslate: i } = K.current, o = null;
1689
1687
  if (t && i) {
1690
- let { cancelDrop: s } = I.current;
1688
+ let { cancelDrop: s } = L.current;
1691
1689
  o = {
1692
1690
  activatorEvent: a,
1693
1691
  active: t,
1694
1692
  collisions: n,
1695
1693
  delta: i,
1696
1694
  over: r
1697
- }, e === U.DragEnd && typeof s == "function" && await Promise.resolve(s(o)) && (e = U.DragCancel);
1695
+ }, e === H.DragEnd && typeof s == "function" && await Promise.resolve(s(o)) && (e = H.DragCancel);
1698
1696
  }
1699
- N.current = null, _(() => {
1700
- y({ type: e }), w(an.Uninitialized), Ne(null), ie(null), ae(null), Fe.current = null;
1701
- let t = e === U.DragEnd ? "onDragEnd" : "onDragCancel";
1697
+ P.current = null, m(() => {
1698
+ b({ type: e }), T(tn.Uninitialized), Ne(null), F(null), ae(null), Fe.current = null;
1699
+ let t = e === H.DragEnd ? "onDragEnd" : "onDragCancel";
1702
1700
  if (o) {
1703
- let e = I.current[t];
1704
- e?.(o), b({
1701
+ let e = L.current[t];
1702
+ e?.(o), x({
1705
1703
  type: t,
1706
1704
  event: o
1707
1705
  });
@@ -1709,37 +1707,37 @@ var on = /* @__PURE__ */ a(function(e) {
1709
1707
  });
1710
1708
  };
1711
1709
  }
1712
- }, [O]), Le = bt(s, o((e, t) => (n, r) => {
1710
+ }, [O]), Ie = _t(c, a((e, t) => (n, r) => {
1713
1711
  let i = n.nativeEvent, a = O.get(r);
1714
- if (N.current !== null || !a || i.dndKit || i.defaultPrevented) return;
1712
+ if (P.current !== null || !a || i.dndKit || i.defaultPrevented) return;
1715
1713
  let o = { active: a };
1716
- e(n, t.options, o) === !0 && (i.dndKit = { capturedBy: t.sensor }, N.current = r, Ie(n, t));
1717
- }, [O, Ie]));
1718
- It(s), D(() => {
1719
- W && C === an.Initializing && w(an.Initialized);
1720
- }, [W, C]), c(() => {
1721
- let { onDragMove: e } = I.current, { active: t, activatorEvent: n, collisions: r, over: i } = G.current;
1714
+ e(n, t.options, o) === !0 && (i.dndKit = { capturedBy: t.sensor }, P.current = r, Z(n, t));
1715
+ }, [O, Z]));
1716
+ Nt(c), w(() => {
1717
+ G && C === tn.Initializing && T(tn.Initialized);
1718
+ }, [G, C]), s(() => {
1719
+ let { onDragMove: e } = L.current, { active: t, activatorEvent: n, collisions: r, over: i } = K.current;
1722
1720
  if (!t || !n) return;
1723
1721
  let a = {
1724
1722
  active: t,
1725
1723
  activatorEvent: n,
1726
1724
  collisions: r,
1727
1725
  delta: {
1728
- x: J.x,
1729
- y: J.y
1726
+ x: Ae.x,
1727
+ y: Ae.y
1730
1728
  },
1731
1729
  over: i
1732
1730
  };
1733
- _(() => {
1734
- e?.(a), b({
1731
+ m(() => {
1732
+ e?.(a), x({
1735
1733
  type: "onDragMove",
1736
1734
  event: a
1737
1735
  });
1738
1736
  });
1739
- }, [J.x, J.y]), c(() => {
1740
- let { active: e, activatorEvent: t, collisions: n, droppableContainers: r, scrollAdjustedTranslate: i } = G.current;
1741
- if (!e || N.current == null || !t || !i) return;
1742
- let { onDragOver: a } = I.current, o = r.get(Me), s = o && o.rect.current ? {
1737
+ }, [Ae.x, Ae.y]), s(() => {
1738
+ let { active: e, activatorEvent: t, collisions: n, droppableContainers: r, scrollAdjustedTranslate: i } = K.current;
1739
+ if (!e || P.current == null || !t || !i) return;
1740
+ let { onDragOver: a } = L.current, o = r.get(Me), s = o && o.rect.current ? {
1743
1741
  id: o.id,
1744
1742
  rect: o.rect.current,
1745
1743
  data: o.data,
@@ -1754,141 +1752,141 @@ var on = /* @__PURE__ */ a(function(e) {
1754
1752
  },
1755
1753
  over: s
1756
1754
  };
1757
- _(() => {
1758
- Ne(s), a?.(c), b({
1755
+ m(() => {
1756
+ Ne(s), a?.(c), x({
1759
1757
  type: "onDragOver",
1760
1758
  event: c
1761
1759
  });
1762
1760
  });
1763
- }, [Me]), D(() => {
1764
- G.current = {
1765
- activatorEvent: F,
1766
- active: M,
1767
- activeNode: H,
1768
- collisionRect: Y,
1769
- collisions: je,
1770
- droppableRects: z,
1761
+ }, [Me]), w(() => {
1762
+ K.current = {
1763
+ activatorEvent: I,
1764
+ active: N,
1765
+ activeNode: U,
1766
+ collisionRect: je,
1767
+ collisions: Y,
1768
+ droppableRects: ce,
1771
1769
  draggableNodes: O,
1772
1770
  draggingNode: ge,
1773
1771
  draggingNodeRect: _e,
1774
1772
  droppableContainers: A,
1775
1773
  over: X,
1776
- scrollableAncestors: q,
1777
- scrollAdjustedTranslate: J
1778
- }, te.current = {
1774
+ scrollableAncestors: J,
1775
+ scrollAdjustedTranslate: Ae
1776
+ }, M.current = {
1779
1777
  initial: _e,
1780
- translated: Y
1778
+ translated: je
1781
1779
  };
1782
1780
  }, [
1783
- M,
1784
- H,
1785
- je,
1781
+ N,
1782
+ U,
1786
1783
  Y,
1784
+ je,
1787
1785
  O,
1788
1786
  ge,
1789
1787
  _e,
1790
- z,
1788
+ ce,
1791
1789
  A,
1792
1790
  X,
1793
- q,
1794
- J
1795
- ]), gt({
1796
- ...de,
1791
+ J,
1792
+ Ae
1793
+ ]), pt({
1794
+ ...fe,
1797
1795
  delta: k,
1798
- draggingRect: Y,
1796
+ draggingRect: je,
1799
1797
  pointerCoordinates: Ee,
1800
- scrollableAncestors: q,
1801
- scrollableAncestorRects: Se
1798
+ scrollableAncestors: J,
1799
+ scrollableAncestorRects: we
1802
1800
  });
1803
- let Re = u(() => ({
1804
- active: M,
1805
- activeNode: H,
1806
- activeNodeRect: W,
1807
- activatorEvent: F,
1808
- collisions: je,
1809
- containerNodeRect: me,
1810
- dragOverlay: K,
1801
+ let Le = l(() => ({
1802
+ active: N,
1803
+ activeNode: U,
1804
+ activeNodeRect: G,
1805
+ activatorEvent: I,
1806
+ collisions: Y,
1807
+ containerNodeRect: pe,
1808
+ dragOverlay: q,
1811
1809
  draggableNodes: O,
1812
1810
  droppableContainers: A,
1813
- droppableRects: z,
1811
+ droppableRects: ce,
1814
1812
  over: X,
1815
- measureDroppableContainers: ce,
1816
- scrollableAncestors: q,
1817
- scrollableAncestorRects: Se,
1818
- measuringConfiguration: R,
1819
- measuringScheduled: B,
1820
- windowRect: xe
1813
+ measureDroppableContainers: B,
1814
+ scrollableAncestors: J,
1815
+ scrollableAncestorRects: we,
1816
+ measuringConfiguration: z,
1817
+ measuringScheduled: V,
1818
+ windowRect: Se
1821
1819
  }), [
1822
- M,
1823
- H,
1824
- W,
1825
- F,
1826
- je,
1827
- me,
1828
- K,
1820
+ N,
1821
+ U,
1822
+ G,
1823
+ I,
1824
+ Y,
1825
+ pe,
1826
+ q,
1829
1827
  O,
1830
1828
  A,
1831
- z,
1832
- X,
1833
1829
  ce,
1834
- q,
1835
- Se,
1836
- R,
1830
+ X,
1837
1831
  B,
1838
- xe
1839
- ]), Z = u(() => ({
1840
- activatorEvent: F,
1841
- activators: Le,
1842
- active: M,
1843
- activeNodeRect: W,
1844
- ariaDescribedById: { draggable: se },
1845
- dispatch: y,
1832
+ J,
1833
+ we,
1834
+ z,
1835
+ V,
1836
+ Se
1837
+ ]), Re = l(() => ({
1838
+ activatorEvent: I,
1839
+ activators: Ie,
1840
+ active: N,
1841
+ activeNodeRect: G,
1842
+ ariaDescribedById: { draggable: oe },
1843
+ dispatch: b,
1846
1844
  draggableNodes: O,
1847
1845
  over: X,
1848
- measureDroppableContainers: ce
1846
+ measureDroppableContainers: B
1849
1847
  }), [
1850
- F,
1851
- Le,
1852
- M,
1853
- W,
1854
- y,
1855
- se,
1848
+ I,
1849
+ Ie,
1850
+ N,
1851
+ G,
1852
+ b,
1853
+ oe,
1856
1854
  O,
1857
1855
  X,
1858
- ce
1856
+ B
1859
1857
  ]);
1860
- return t.createElement(V.Provider, { value: x }, t.createElement(Yt.Provider, { value: Z }, t.createElement(Xt.Provider, { value: Re }, t.createElement(rn.Provider, { value: Pe }, a)), t.createElement($t, { disabled: r?.restoreFocus === !1 })), t.createElement(fe, {
1858
+ return e.createElement(se.Provider, { value: S }, e.createElement(Kt.Provider, { value: Re }, e.createElement(qt.Provider, { value: Le }, e.createElement(en.Provider, { value: Pe }, o)), e.createElement(Xt, { disabled: r?.restoreFocus === !1 })), e.createElement(ue, {
1861
1859
  ...r,
1862
- hiddenTextDescribedById: se
1860
+ hiddenTextDescribedById: oe
1863
1861
  }));
1864
1862
  function ze() {
1865
- let e = P?.autoScrollEnabled === !1, t = typeof i == "object" ? i.enabled === !1 : i === !1, n = T && !e && !t;
1863
+ let e = re?.autoScrollEnabled === !1, t = typeof i == "object" ? i.enabled === !1 : i === !1, n = E && !e && !t;
1866
1864
  return typeof i == "object" ? {
1867
1865
  ...i,
1868
1866
  enabled: n
1869
1867
  } : { enabled: n };
1870
1868
  }
1871
- }), sn = /* @__PURE__ */ r(null), cn = "button", ln = "Draggable";
1872
- function un(e) {
1873
- let { id: t, data: n, disabled: r = !1, attributes: i } = e, a = ne(ln), { activators: o, activatorEvent: c, active: l, activeNodeRect: d, ariaDescribedById: f, draggableNodes: p, over: m } = s(Yt), { role: h = cn, roleDescription: g = "draggable", tabIndex: _ = 0 } = i ?? {}, v = l?.id === t, y = s(v ? rn : sn), [b, x] = j(), [S, C] = j(), w = Lt(o, t), T = ee(n);
1874
- return D(() => (p.set(t, {
1869
+ }), rn = /* @__PURE__ */ n(null), an = "button", on = "Draggable";
1870
+ function sn(e) {
1871
+ let { id: t, data: n, disabled: r = !1, attributes: i } = e, a = j(on), { activators: s, activatorEvent: c, active: u, activeNodeRect: d, ariaDescribedById: f, draggableNodes: p, over: m } = o(Kt), { role: h = an, roleDescription: g = "draggable", tabIndex: _ = 0 } = i ?? {}, v = u?.id === t, y = o(v ? en : rn), [b, x] = O(), [S, C] = O(), T = Pt(s, t), E = ee(n);
1872
+ return w(() => (p.set(t, {
1875
1873
  id: t,
1876
1874
  key: a,
1877
1875
  node: b,
1878
1876
  activatorNode: S,
1879
- data: T
1877
+ data: E
1880
1878
  }), () => {
1881
1879
  let e = p.get(t);
1882
1880
  e && e.key === a && p.delete(t);
1883
1881
  }), [p, t]), {
1884
- active: l,
1882
+ active: u,
1885
1883
  activatorEvent: c,
1886
1884
  activeNodeRect: d,
1887
- attributes: u(() => ({
1885
+ attributes: l(() => ({
1888
1886
  role: h,
1889
1887
  tabIndex: _,
1890
1888
  "aria-disabled": r,
1891
- "aria-pressed": v && h === cn ? !0 : void 0,
1889
+ "aria-pressed": v && h === an ? !0 : void 0,
1892
1890
  "aria-roledescription": g,
1893
1891
  "aria-describedby": f.draggable
1894
1892
  }), [
@@ -1900,7 +1898,7 @@ function un(e) {
1900
1898
  f.draggable
1901
1899
  ]),
1902
1900
  isDragging: v,
1903
- listeners: r ? void 0 : w,
1901
+ listeners: r ? void 0 : T,
1904
1902
  node: b,
1905
1903
  over: m,
1906
1904
  setNodeRef: x,
@@ -1908,16 +1906,16 @@ function un(e) {
1908
1906
  transform: y
1909
1907
  };
1910
1908
  }
1911
- function dn() {
1912
- return s(Xt);
1909
+ function cn() {
1910
+ return o(qt);
1913
1911
  }
1914
- var fn = "Droppable", pn = { timeout: 25 };
1915
- function mn(e) {
1916
- let { data: t, disabled: n = !1, id: r, resizeObserverConfig: i } = e, a = ne(fn), { active: l, dispatch: u, over: d, measureDroppableContainers: p } = s(Yt), m = f({ disabled: n }), h = f(!1), g = f(null), _ = f(null), { disabled: v, updateMeasurementsFor: y, timeout: b } = {
1917
- ...pn,
1912
+ var ln = "Droppable", un = { timeout: 25 };
1913
+ function dn(e) {
1914
+ let { data: t, disabled: n = !1, id: r, resizeObserverConfig: i } = e, c = j(ln), { active: l, dispatch: u, over: f, measureDroppableContainers: p } = o(Kt), m = d({ disabled: n }), h = d(!1), g = d(null), _ = d(null), { disabled: v, updateMeasurementsFor: y, timeout: b } = {
1915
+ ...un,
1918
1916
  ...i
1919
- }, x = ee(y ?? r), S = Ot({
1920
- callback: o(() => {
1917
+ }, x = ee(y ?? r), S = Tt({
1918
+ callback: a(() => {
1921
1919
  if (!h.current) {
1922
1920
  h.current = !0;
1923
1921
  return;
@@ -1927,49 +1925,49 @@ function mn(e) {
1927
1925
  }, b);
1928
1926
  }, [b]),
1929
1927
  disabled: v || !l
1930
- }), [C, w] = j(o((e, t) => {
1928
+ }), [C, w] = O(a((e, t) => {
1931
1929
  S && (t && (S.unobserve(t), h.current = !1), e && S.observe(e));
1932
1930
  }, [S])), T = ee(t);
1933
- return c(() => {
1931
+ return s(() => {
1934
1932
  !S || !C.current || (S.disconnect(), h.current = !1, S.observe(C.current));
1935
- }, [C, S]), c(() => (u({
1936
- type: U.RegisterDroppable,
1933
+ }, [C, S]), s(() => (u({
1934
+ type: H.RegisterDroppable,
1937
1935
  element: {
1938
1936
  id: r,
1939
- key: a,
1937
+ key: c,
1940
1938
  disabled: n,
1941
1939
  node: C,
1942
1940
  rect: g,
1943
1941
  data: T
1944
1942
  }
1945
1943
  }), () => u({
1946
- type: U.UnregisterDroppable,
1947
- key: a,
1944
+ type: H.UnregisterDroppable,
1945
+ key: c,
1948
1946
  id: r
1949
- })), [r]), c(() => {
1947
+ })), [r]), s(() => {
1950
1948
  n !== m.current.disabled && (u({
1951
- type: U.SetDroppableDisabled,
1949
+ type: H.SetDroppableDisabled,
1952
1950
  id: r,
1953
- key: a,
1951
+ key: c,
1954
1952
  disabled: n
1955
1953
  }), m.current.disabled = n);
1956
1954
  }, [
1957
1955
  r,
1958
- a,
1956
+ c,
1959
1957
  n,
1960
1958
  u
1961
1959
  ]), {
1962
1960
  active: l,
1963
1961
  rect: g,
1964
- isOver: d?.id === r,
1962
+ isOver: f?.id === r,
1965
1963
  node: C,
1966
- over: d,
1964
+ over: f,
1967
1965
  setNodeRef: w
1968
1966
  };
1969
1967
  }
1970
- function hn(e) {
1971
- let { animation: r, children: i } = e, [a, o] = p(null), [s, c] = p(null), l = te(i);
1972
- return !i && !a && l && o(l), D(() => {
1968
+ function fn(n) {
1969
+ let { animation: r, children: i } = n, [a, o] = f(null), [s, c] = f(null), l = k(i);
1970
+ return !i && !a && l && o(l), w(() => {
1973
1971
  if (!s) return;
1974
1972
  let e = a?.key, t = a?.props.id;
1975
1973
  if (e == null || t == null) {
@@ -1983,75 +1981,75 @@ function hn(e) {
1983
1981
  r,
1984
1982
  a,
1985
1983
  s
1986
- ]), t.createElement(t.Fragment, null, i, a ? n(a, { ref: c }) : null);
1984
+ ]), e.createElement(e.Fragment, null, i, a ? t(a, { ref: c }) : null);
1987
1985
  }
1988
- var gn = {
1986
+ var pn = {
1989
1987
  x: 0,
1990
1988
  y: 0,
1991
1989
  scaleX: 1,
1992
1990
  scaleY: 1
1993
1991
  };
1994
- function _n(e) {
1995
- let { children: n } = e;
1996
- return t.createElement(Yt.Provider, { value: Jt }, t.createElement(rn.Provider, { value: gn }, n));
1992
+ function mn(t) {
1993
+ let { children: n } = t;
1994
+ return e.createElement(Kt.Provider, { value: Gt }, e.createElement(en.Provider, { value: pn }, n));
1997
1995
  }
1998
- var vn = {
1996
+ var hn = {
1999
1997
  position: "fixed",
2000
1998
  touchAction: "none"
2001
- }, yn = (e) => F(e) ? "transform 250ms ease" : void 0, bn = /* @__PURE__ */ i((e, n) => {
2002
- let { as: r, activatorEvent: i, adjustScale: a, children: o, className: s, rect: c, style: l, transform: u, transition: d = yn } = e;
1999
+ }, gn = (e) => P(e) ? "transform 250ms ease" : void 0, _n = /* @__PURE__ */ r((t, n) => {
2000
+ let { as: r, activatorEvent: i, adjustScale: a, children: o, className: s, rect: c, style: l, transform: u, transition: d = gn } = t;
2003
2001
  if (!c) return null;
2004
2002
  let f = a ? u : {
2005
2003
  ...u,
2006
2004
  scaleX: 1,
2007
2005
  scaleY: 1
2008
2006
  }, p = {
2009
- ...vn,
2007
+ ...hn,
2010
2008
  width: c.width,
2011
2009
  height: c.height,
2012
2010
  top: c.top,
2013
2011
  left: c.left,
2014
- transform: I.Transform.toString(f),
2015
- transformOrigin: a && i ? K(i, c) : void 0,
2012
+ transform: F.Transform.toString(f),
2013
+ transformOrigin: a && i ? pe(i, c) : void 0,
2016
2014
  transition: typeof d == "function" ? d(i) : d,
2017
2015
  ...l
2018
2016
  };
2019
- return t.createElement(r, {
2017
+ return e.createElement(r, {
2020
2018
  className: s,
2021
2019
  style: p,
2022
2020
  ref: n
2023
2021
  }, o);
2024
- }), xn = {
2022
+ }), vn = (e) => (t) => {
2023
+ let { active: n, dragOverlay: r } = t, i = {}, { styles: a, className: o } = e;
2024
+ if (a != null && a.active) for (let [e, t] of Object.entries(a.active)) t !== void 0 && (i[e] = n.node.style.getPropertyValue(e), n.node.style.setProperty(e, t));
2025
+ if (a != null && a.dragOverlay) for (let [e, t] of Object.entries(a.dragOverlay)) t !== void 0 && r.node.style.setProperty(e, t);
2026
+ return o != null && o.active && n.node.classList.add(o.active), o != null && o.dragOverlay && r.node.classList.add(o.dragOverlay), function() {
2027
+ for (let [e, t] of Object.entries(i)) n.node.style.setProperty(e, t);
2028
+ o != null && o.active && n.node.classList.remove(o.active);
2029
+ };
2030
+ }, yn = {
2025
2031
  duration: 250,
2026
2032
  easing: "ease",
2027
2033
  keyframes: (e) => {
2028
2034
  let { transform: { initial: t, final: n } } = e;
2029
- return [{ transform: I.Transform.toString(t) }, { transform: I.Transform.toString(n) }];
2035
+ return [{ transform: F.Transform.toString(t) }, { transform: F.Transform.toString(n) }];
2030
2036
  },
2031
- sideEffects: /* @__PURE__ */ ((e) => (t) => {
2032
- let { active: n, dragOverlay: r } = t, i = {}, { styles: a, className: o } = e;
2033
- if (a != null && a.active) for (let [e, t] of Object.entries(a.active)) t !== void 0 && (i[e] = n.node.style.getPropertyValue(e), n.node.style.setProperty(e, t));
2034
- if (a != null && a.dragOverlay) for (let [e, t] of Object.entries(a.dragOverlay)) t !== void 0 && r.node.style.setProperty(e, t);
2035
- return o != null && o.active && n.node.classList.add(o.active), o != null && o.dragOverlay && r.node.classList.add(o.dragOverlay), function() {
2036
- for (let [e, t] of Object.entries(i)) n.node.style.setProperty(e, t);
2037
- o != null && o.active && n.node.classList.remove(o.active);
2038
- };
2039
- })({ styles: { active: { opacity: "0" } } })
2037
+ sideEffects: /* @__PURE__ */ vn({ styles: { active: { opacity: "0" } } })
2040
2038
  };
2041
- function Sn(e) {
2039
+ function bn(e) {
2042
2040
  let { config: t, draggableNodes: n, droppableContainers: r, measuringConfiguration: i } = e;
2043
- return O((e, a) => {
2041
+ return T((e, a) => {
2044
2042
  if (t === null) return;
2045
2043
  let o = n.get(e);
2046
2044
  if (!o) return;
2047
2045
  let s = o.node.current;
2048
2046
  if (!s) return;
2049
- let c = Vt(a);
2047
+ let c = Rt(a);
2050
2048
  if (!c) return;
2051
- let { transform: l } = S(a).getComputedStyle(a), u = Oe(l);
2049
+ let { transform: l } = y(a).getComputedStyle(a), u = we(l);
2052
2050
  if (!u) return;
2053
- let d = typeof t == "function" ? t : Cn(t);
2054
- return qe(s, i.draggable.measure), d({
2051
+ let d = typeof t == "function" ? t : xn(t);
2052
+ return We(s, i.draggable.measure), d({
2055
2053
  active: {
2056
2054
  id: e,
2057
2055
  data: o.data,
@@ -2069,9 +2067,9 @@ function Sn(e) {
2069
2067
  });
2070
2068
  });
2071
2069
  }
2072
- function Cn(e) {
2070
+ function xn(e) {
2073
2071
  let { duration: t, easing: n, sideEffects: r, keyframes: i } = {
2074
- ...xn,
2072
+ ...yn,
2075
2073
  ...e
2076
2074
  };
2077
2075
  return (e) => {
@@ -2113,14 +2111,14 @@ function Cn(e) {
2113
2111
  });
2114
2112
  };
2115
2113
  }
2116
- var wn = 0;
2117
- function Tn(e) {
2118
- return u(() => {
2119
- if (e != null) return wn++, wn;
2114
+ var Sn = 0;
2115
+ function Cn(e) {
2116
+ return l(() => {
2117
+ if (e != null) return Sn++, Sn;
2120
2118
  }, [e]);
2121
2119
  }
2122
- var En = /* @__PURE__ */ t.memo((e) => {
2123
- let { adjustScale: n = !1, children: r, dropAnimation: i, style: a, transition: o, modifiers: c, wrapperElement: l = "div", className: u, zIndex: d = 999 } = e, { activatorEvent: f, active: p, activeNodeRect: m, containerNodeRect: h, draggableNodes: g, droppableContainers: _, dragOverlay: v, over: y, measuringConfiguration: b, scrollableAncestors: x, scrollableAncestorRects: S, windowRect: C } = dn(), w = s(rn), T = Tn(p?.id), E = en(c, {
2120
+ var wn = /* @__PURE__ */ e.memo((t) => {
2121
+ let { adjustScale: n = !1, children: r, dropAnimation: i, style: a, transition: s, modifiers: c, wrapperElement: l = "div", className: u, zIndex: d = 999 } = t, { activatorEvent: f, active: p, activeNodeRect: m, containerNodeRect: h, draggableNodes: g, droppableContainers: _, dragOverlay: v, over: y, measuringConfiguration: b, scrollableAncestors: x, scrollableAncestorRects: S, windowRect: C } = cn(), w = o(en), T = Cn(p?.id), E = Zt(c, {
2124
2122
  activatorEvent: f,
2125
2123
  active: p,
2126
2124
  activeNodeRect: m,
@@ -2132,22 +2130,22 @@ var En = /* @__PURE__ */ t.memo((e) => {
2132
2130
  scrollableAncestorRects: S,
2133
2131
  transform: w,
2134
2132
  windowRect: C
2135
- }), D = Tt(m), O = Sn({
2133
+ }), ee = St(m), D = bn({
2136
2134
  config: i,
2137
2135
  draggableNodes: g,
2138
2136
  droppableContainers: _,
2139
2137
  measuringConfiguration: b
2140
- }), k = D ? v.setRef : void 0;
2141
- return t.createElement(_n, null, t.createElement(hn, { animation: O }, p && T ? t.createElement(bn, {
2138
+ }), O = ee ? v.setRef : void 0;
2139
+ return e.createElement(mn, null, e.createElement(fn, { animation: D }, p && T ? e.createElement(_n, {
2142
2140
  key: T,
2143
2141
  id: p.id,
2144
- ref: k,
2142
+ ref: O,
2145
2143
  as: l,
2146
2144
  activatorEvent: f,
2147
2145
  adjustScale: n,
2148
2146
  className: u,
2149
- transition: o,
2150
- rect: D,
2147
+ transition: s,
2148
+ rect: ee,
2151
2149
  style: {
2152
2150
  zIndex: d,
2153
2151
  ...a
@@ -2157,43 +2155,43 @@ var En = /* @__PURE__ */ t.memo((e) => {
2157
2155
  });
2158
2156
  //#endregion
2159
2157
  //#region node_modules/@dnd-kit/sortable/dist/sortable.esm.js
2160
- function Dn(e, t, n) {
2158
+ function Tn(e, t, n) {
2161
2159
  let r = e.slice();
2162
2160
  return r.splice(n < 0 ? r.length + n : n, 0, r.splice(t, 1)[0]), r;
2163
2161
  }
2164
- function On(e, t) {
2162
+ function En(e, t) {
2165
2163
  return e.reduce((e, n, r) => {
2166
2164
  let i = t.get(n);
2167
2165
  return i && (e[r] = i), e;
2168
2166
  }, Array(e.length));
2169
2167
  }
2170
- function kn(e) {
2168
+ function Dn(e) {
2171
2169
  return e !== null && e >= 0;
2172
2170
  }
2173
- function An(e, t) {
2171
+ function On(e, t) {
2174
2172
  if (e === t) return !0;
2175
2173
  if (e.length !== t.length) return !1;
2176
2174
  for (let n = 0; n < e.length; n++) if (e[n] !== t[n]) return !1;
2177
2175
  return !0;
2178
2176
  }
2179
- function jn(e) {
2177
+ function kn(e) {
2180
2178
  return typeof e == "boolean" ? {
2181
2179
  draggable: e,
2182
2180
  droppable: e
2183
2181
  } : e;
2184
2182
  }
2185
- var Mn = (e) => {
2186
- let { rects: t, activeIndex: n, overIndex: r, index: i } = e, a = Dn(t, r, n), o = t[i], s = a[i];
2183
+ var An = (e) => {
2184
+ let { rects: t, activeIndex: n, overIndex: r, index: i } = e, a = Tn(t, r, n), o = t[i], s = a[i];
2187
2185
  return !s || !o ? null : {
2188
2186
  x: s.left - o.left,
2189
2187
  y: s.top - o.top,
2190
2188
  scaleX: s.width / o.width,
2191
2189
  scaleY: s.height / o.height
2192
2190
  };
2193
- }, Nn = {
2191
+ }, jn = {
2194
2192
  scaleX: 1,
2195
2193
  scaleY: 1
2196
- }, Pn = (e) => {
2194
+ }, Mn = (e) => {
2197
2195
  let { activeIndex: t, activeNodeRect: n, index: r, rects: i, overIndex: a } = e, o = i[t] ?? n;
2198
2196
  if (!o) return null;
2199
2197
  if (r === t) {
@@ -2201,99 +2199,99 @@ var Mn = (e) => {
2201
2199
  return e ? {
2202
2200
  x: 0,
2203
2201
  y: t < a ? e.top + e.height - (o.top + o.height) : e.top - o.top,
2204
- ...Nn
2202
+ ...jn
2205
2203
  } : null;
2206
2204
  }
2207
- let s = Fn(i, r, t);
2205
+ let s = Nn(i, r, t);
2208
2206
  return r > t && r <= a ? {
2209
2207
  x: 0,
2210
2208
  y: -o.height - s,
2211
- ...Nn
2209
+ ...jn
2212
2210
  } : r < t && r >= a ? {
2213
2211
  x: 0,
2214
2212
  y: o.height + s,
2215
- ...Nn
2213
+ ...jn
2216
2214
  } : {
2217
2215
  x: 0,
2218
2216
  y: 0,
2219
- ...Nn
2217
+ ...jn
2220
2218
  };
2221
2219
  };
2222
- function Fn(e, t, n) {
2220
+ function Nn(e, t, n) {
2223
2221
  let r = e[t], i = e[t - 1], a = e[t + 1];
2224
2222
  return r ? n < t ? i ? r.top - (i.top + i.height) : a ? a.top - (r.top + r.height) : 0 : a ? a.top - (r.top + r.height) : i ? r.top - (i.top + i.height) : 0 : 0;
2225
2223
  }
2226
- var In = "Sortable", Ln = /* @__PURE__ */ t.createContext({
2224
+ var Pn = "Sortable", Fn = /* @__PURE__ */ e.createContext({
2227
2225
  activeIndex: -1,
2228
- containerId: In,
2226
+ containerId: Pn,
2229
2227
  disableTransforms: !1,
2230
2228
  items: [],
2231
2229
  overIndex: -1,
2232
2230
  useDragOverlay: !1,
2233
2231
  sortedRects: [],
2234
- strategy: Mn,
2232
+ strategy: An,
2235
2233
  disabled: {
2236
2234
  draggable: !1,
2237
2235
  droppable: !1
2238
2236
  }
2239
2237
  });
2240
- function Rn(e) {
2241
- let { children: n, id: r, items: i, strategy: a = Mn, disabled: o = !1 } = e, { active: s, dragOverlay: l, droppableRects: d, over: p, measureDroppableContainers: m } = dn(), h = ne(In, r), g = l.rect !== null, _ = u(() => i.map((e) => typeof e == "object" && "id" in e ? e.id : e), [i]), v = s != null, y = s ? _.indexOf(s.id) : -1, b = p ? _.indexOf(p.id) : -1, x = f(_), S = !An(_, x.current), C = b !== -1 && y === -1 || S, w = jn(o);
2242
- D(() => {
2238
+ function In(t) {
2239
+ let { children: n, id: r, items: i, strategy: a = An, disabled: o = !1 } = t, { active: c, dragOverlay: u, droppableRects: f, over: p, measureDroppableContainers: m } = cn(), h = j(Pn, r), g = u.rect !== null, _ = l(() => i.map((e) => typeof e == "object" && "id" in e ? e.id : e), [i]), v = c != null, y = c ? _.indexOf(c.id) : -1, b = p ? _.indexOf(p.id) : -1, x = d(_), S = !On(_, x.current), C = b !== -1 && y === -1 || S, T = kn(o);
2240
+ w(() => {
2243
2241
  S && v && m(_);
2244
2242
  }, [
2245
2243
  S,
2246
2244
  _,
2247
2245
  v,
2248
2246
  m
2249
- ]), c(() => {
2247
+ ]), s(() => {
2250
2248
  x.current = _;
2251
2249
  }, [_]);
2252
- let T = u(() => ({
2250
+ let E = l(() => ({
2253
2251
  activeIndex: y,
2254
2252
  containerId: h,
2255
- disabled: w,
2253
+ disabled: T,
2256
2254
  disableTransforms: C,
2257
2255
  items: _,
2258
2256
  overIndex: b,
2259
2257
  useDragOverlay: g,
2260
- sortedRects: On(_, d),
2258
+ sortedRects: En(_, f),
2261
2259
  strategy: a
2262
2260
  }), [
2263
2261
  y,
2264
2262
  h,
2265
- w.draggable,
2266
- w.droppable,
2263
+ T.draggable,
2264
+ T.droppable,
2267
2265
  C,
2268
2266
  _,
2269
2267
  b,
2270
- d,
2268
+ f,
2271
2269
  g,
2272
2270
  a
2273
2271
  ]);
2274
- return t.createElement(Ln.Provider, { value: T }, n);
2272
+ return e.createElement(Fn.Provider, { value: E }, n);
2275
2273
  }
2276
- var zn = (e) => {
2274
+ var Ln = (e) => {
2277
2275
  let { id: t, items: n, activeIndex: r, overIndex: i } = e;
2278
- return Dn(n, r, i).indexOf(t);
2279
- }, Bn = (e) => {
2276
+ return Tn(n, r, i).indexOf(t);
2277
+ }, Rn = (e) => {
2280
2278
  let { containerId: t, isSorting: n, wasDragging: r, index: i, items: a, newIndex: o, previousItems: s, previousContainerId: c, transition: l } = e;
2281
2279
  return !l || !r || s !== a && i === o ? !1 : n ? !0 : o !== i && t === c;
2282
- }, Vn = {
2280
+ }, zn = {
2283
2281
  duration: 200,
2284
2282
  easing: "ease"
2285
- }, Hn = "transform", Un = /* @__PURE__ */ I.Transition.toString({
2286
- property: Hn,
2283
+ }, Bn = "transform", Vn = /* @__PURE__ */ F.Transition.toString({
2284
+ property: Bn,
2287
2285
  duration: 0,
2288
2286
  easing: "linear"
2289
- }), Wn = { roleDescription: "sortable" };
2290
- function Gn(e) {
2291
- let { disabled: t, index: n, node: r, rect: i } = e, [a, o] = p(null), s = f(n);
2292
- return D(() => {
2293
- if (!t && n !== s.current && r.current) {
2287
+ }), Hn = { roleDescription: "sortable" };
2288
+ function Un(e) {
2289
+ let { disabled: t, index: n, node: r, rect: i } = e, [a, o] = f(null), c = d(n);
2290
+ return w(() => {
2291
+ if (!t && n !== c.current && r.current) {
2294
2292
  let e = i.current;
2295
2293
  if (e) {
2296
- let t = J(r.current, { ignoreTransform: !0 }), n = {
2294
+ let t = De(r.current, { ignoreTransform: !0 }), n = {
2297
2295
  x: e.left - t.left,
2298
2296
  y: e.top - t.top,
2299
2297
  scaleX: e.width / t.width,
@@ -2302,129 +2300,129 @@ function Gn(e) {
2302
2300
  (n.x || n.y) && o(n);
2303
2301
  }
2304
2302
  }
2305
- n !== s.current && (s.current = n);
2303
+ n !== c.current && (c.current = n);
2306
2304
  }, [
2307
2305
  t,
2308
2306
  n,
2309
2307
  r,
2310
2308
  i
2311
- ]), c(() => {
2309
+ ]), s(() => {
2312
2310
  a && o(null);
2313
2311
  }, [a]), a;
2314
2312
  }
2315
- function Kn(e) {
2316
- let { animateLayoutChanges: t = Bn, attributes: n, disabled: r, data: i, getNewIndex: a = zn, id: o, strategy: l, resizeObserverConfig: d, transition: p = Vn } = e, { items: m, containerId: h, activeIndex: g, disabled: _, disableTransforms: y, sortedRects: b, overIndex: x, useDragOverlay: S, strategy: C } = s(Ln), w = qn(r, _), T = m.indexOf(o), E = u(() => ({
2313
+ function Wn(e) {
2314
+ let { animateLayoutChanges: t = Rn, attributes: n, disabled: r, data: i, getNewIndex: a = Ln, id: c, strategy: u, resizeObserverConfig: f, transition: p = zn } = e, { items: m, containerId: g, activeIndex: _, disabled: v, disableTransforms: y, sortedRects: b, overIndex: x, useDragOverlay: S, strategy: C } = o(Fn), w = Gn(r, v), T = m.indexOf(c), E = l(() => ({
2317
2315
  sortable: {
2318
- containerId: h,
2316
+ containerId: g,
2319
2317
  index: T,
2320
2318
  items: m
2321
2319
  },
2322
2320
  ...i
2323
2321
  }), [
2324
- h,
2322
+ g,
2325
2323
  i,
2326
2324
  T,
2327
2325
  m
2328
- ]), D = u(() => m.slice(m.indexOf(o)), [m, o]), { rect: O, node: k, isOver: ee, setNodeRef: A } = mn({
2329
- id: o,
2326
+ ]), ee = l(() => m.slice(m.indexOf(c)), [m, c]), { rect: D, node: O, isOver: k, setNodeRef: A } = dn({
2327
+ id: c,
2330
2328
  data: E,
2331
2329
  disabled: w.droppable,
2332
2330
  resizeObserverConfig: {
2333
- updateMeasurementsFor: D,
2334
- ...d
2331
+ updateMeasurementsFor: ee,
2332
+ ...f
2335
2333
  }
2336
- }), { active: j, activatorEvent: te, activeNodeRect: M, attributes: ne, setNodeRef: N, listeners: re, isDragging: P, over: ie, setActivatorNodeRef: ae, transform: oe } = un({
2337
- id: o,
2334
+ }), { active: j, activatorEvent: te, activeNodeRect: ne, attributes: M, setNodeRef: N, listeners: re, isDragging: ie, over: I, setActivatorNodeRef: ae, transform: L } = sn({
2335
+ id: c,
2338
2336
  data: E,
2339
2337
  attributes: {
2340
- ...Wn,
2338
+ ...Hn,
2341
2339
  ...n
2342
2340
  },
2343
2341
  disabled: w.draggable
2344
- }), se = v(A, N), L = !!j, R = L && !y && kn(g) && kn(x), z = !S && P, ce = R ? (z && R ? oe : null) ?? (l ?? C)({
2342
+ }), oe = h(A, N), R = !!j, z = R && !y && Dn(_) && Dn(x), se = !S && ie, ce = z ? (se && z ? L : null) ?? (u ?? C)({
2345
2343
  rects: b,
2346
- activeNodeRect: M,
2347
- activeIndex: g,
2344
+ activeNodeRect: ne,
2345
+ activeIndex: _,
2348
2346
  overIndex: x,
2349
2347
  index: T
2350
- }) : null, B = kn(g) && kn(x) ? a({
2351
- id: o,
2348
+ }) : null, le = Dn(_) && Dn(x) ? a({
2349
+ id: c,
2352
2350
  items: m,
2353
- activeIndex: g,
2351
+ activeIndex: _,
2354
2352
  overIndex: x
2355
- }) : T, V = j?.id, H = f({
2356
- activeId: V,
2353
+ }) : T, B = j?.id, V = d({
2354
+ activeId: B,
2357
2355
  items: m,
2358
- newIndex: B,
2359
- containerId: h
2360
- }), le = m !== H.current.items, ue = t({
2356
+ newIndex: le,
2357
+ containerId: g
2358
+ }), ue = m !== V.current.items, H = t({
2361
2359
  active: j,
2362
- containerId: h,
2363
- isDragging: P,
2364
- isSorting: L,
2365
- id: o,
2360
+ containerId: g,
2361
+ isDragging: ie,
2362
+ isSorting: R,
2363
+ id: c,
2366
2364
  index: T,
2367
2365
  items: m,
2368
- newIndex: H.current.newIndex,
2369
- previousItems: H.current.items,
2370
- previousContainerId: H.current.containerId,
2366
+ newIndex: V.current.newIndex,
2367
+ previousItems: V.current.items,
2368
+ previousContainerId: V.current.containerId,
2371
2369
  transition: p,
2372
- wasDragging: H.current.activeId != null
2373
- }), de = Gn({
2374
- disabled: !ue,
2370
+ wasDragging: V.current.activeId != null
2371
+ }), U = Un({
2372
+ disabled: !H,
2375
2373
  index: T,
2376
- node: k,
2377
- rect: O
2374
+ node: O,
2375
+ rect: D
2378
2376
  });
2379
- return c(() => {
2380
- L && H.current.newIndex !== B && (H.current.newIndex = B), h !== H.current.containerId && (H.current.containerId = h), m !== H.current.items && (H.current.items = m);
2377
+ return s(() => {
2378
+ R && V.current.newIndex !== le && (V.current.newIndex = le), g !== V.current.containerId && (V.current.containerId = g), m !== V.current.items && (V.current.items = m);
2381
2379
  }, [
2382
- L,
2383
- B,
2384
- h,
2380
+ R,
2381
+ le,
2382
+ g,
2385
2383
  m
2386
- ]), c(() => {
2387
- if (V === H.current.activeId) return;
2388
- if (V != null && H.current.activeId == null) {
2389
- H.current.activeId = V;
2384
+ ]), s(() => {
2385
+ if (B === V.current.activeId) return;
2386
+ if (B != null && V.current.activeId == null) {
2387
+ V.current.activeId = B;
2390
2388
  return;
2391
2389
  }
2392
2390
  let e = setTimeout(() => {
2393
- H.current.activeId = V;
2391
+ V.current.activeId = B;
2394
2392
  }, 50);
2395
2393
  return () => clearTimeout(e);
2396
- }, [V]), {
2394
+ }, [B]), {
2397
2395
  active: j,
2398
- activeIndex: g,
2399
- attributes: ne,
2396
+ activeIndex: _,
2397
+ attributes: M,
2400
2398
  data: E,
2401
- rect: O,
2399
+ rect: D,
2402
2400
  index: T,
2403
- newIndex: B,
2401
+ newIndex: le,
2404
2402
  items: m,
2405
- isOver: ee,
2406
- isSorting: L,
2407
- isDragging: P,
2403
+ isOver: k,
2404
+ isSorting: R,
2405
+ isDragging: ie,
2408
2406
  listeners: re,
2409
- node: k,
2407
+ node: O,
2410
2408
  overIndex: x,
2411
- over: ie,
2412
- setNodeRef: se,
2409
+ over: I,
2410
+ setNodeRef: oe,
2413
2411
  setActivatorNodeRef: ae,
2414
2412
  setDroppableNodeRef: A,
2415
2413
  setDraggableNodeRef: N,
2416
- transform: de ?? ce,
2417
- transition: fe()
2414
+ transform: U ?? ce,
2415
+ transition: de()
2418
2416
  };
2419
- function fe() {
2420
- if (de || le && H.current.newIndex === T) return Un;
2421
- if (!(z && !F(te) || !p) && (L || ue)) return I.Transition.toString({
2417
+ function de() {
2418
+ if (U || ue && V.current.newIndex === T) return Vn;
2419
+ if (!(se && !P(te) || !p) && (R || H)) return F.Transition.toString({
2422
2420
  ...p,
2423
- property: Hn
2421
+ property: Bn
2424
2422
  });
2425
2423
  }
2426
2424
  }
2427
- function qn(e, t) {
2425
+ function Gn(e, t) {
2428
2426
  return typeof e == "boolean" ? {
2429
2427
  draggable: e,
2430
2428
  droppable: !1
@@ -2433,19 +2431,19 @@ function qn(e, t) {
2433
2431
  droppable: e?.droppable ?? t.droppable
2434
2432
  };
2435
2433
  }
2436
- function Jn(e) {
2434
+ function Kn(e) {
2437
2435
  if (!e) return !1;
2438
2436
  let t = e.data.current;
2439
2437
  return !!(t && "sortable" in t && typeof t.sortable == "object" && "containerId" in t.sortable && "items" in t.sortable && "index" in t.sortable);
2440
2438
  }
2441
- var Yn = [
2439
+ var qn = [
2442
2440
  $.Down,
2443
2441
  $.Right,
2444
2442
  $.Up,
2445
2443
  $.Left
2446
- ], Xn = (e, t) => {
2444
+ ], Jn = (e, t) => {
2447
2445
  let { context: { active: n, collisionRect: r, droppableRects: i, droppableContainers: a, over: o, scrollableAncestors: s } } = t;
2448
- if (Yn.includes(e.code)) {
2446
+ if (qn.includes(e.code)) {
2449
2447
  if (e.preventDefault(), !n || !r) return;
2450
2448
  let t = [];
2451
2449
  a.getEnabled().forEach((n) => {
@@ -2466,17 +2464,17 @@ var Yn = [
2466
2464
  break;
2467
2465
  }
2468
2466
  });
2469
- let c = q({
2467
+ let c = ve({
2470
2468
  active: n,
2471
2469
  collisionRect: r,
2472
2470
  droppableRects: i,
2473
2471
  droppableContainers: t,
2474
2472
  pointerCoordinates: null
2475
- }), l = ye(c, "id");
2473
+ }), l = he(c, "id");
2476
2474
  if (l === o?.id && c.length > 1 && (l = c[1].id), l != null) {
2477
2475
  let e = a.get(n.id), t = a.get(l), o = t ? i.get(t.id) : null, c = t?.node.current;
2478
2476
  if (c && o && e && t) {
2479
- let n = Ne(c).some((e, t) => s[t] !== e), i = Zn(e, t), a = Qn(e, t), l = n || !i ? {
2477
+ let n = Y(c).some((e, t) => s[t] !== e), i = Yn(e, t), a = Xn(e, t), l = n || !i ? {
2480
2478
  x: 0,
2481
2479
  y: 0
2482
2480
  } : {
@@ -2486,251 +2484,16 @@ var Yn = [
2486
2484
  x: o.left,
2487
2485
  y: o.top
2488
2486
  };
2489
- return l.x && l.y ? u : P(u, l);
2487
+ return l.x && l.y ? u : M(u, l);
2490
2488
  }
2491
2489
  }
2492
2490
  }
2493
2491
  };
2494
- function Zn(e, t) {
2495
- return !Jn(e) || !Jn(t) ? !1 : e.data.current.sortable.containerId === t.data.current.sortable.containerId;
2496
- }
2497
- function Qn(e, t) {
2498
- return !Jn(e) || !Jn(t) || !Zn(e, t) ? !1 : e.data.current.sortable.index < t.data.current.sortable.index;
2499
- }
2500
- //#endregion
2501
- //#region node_modules/@dnd-kit/modifiers/dist/modifiers.esm.js
2502
- var $n = (e) => {
2503
- let { transform: t } = e;
2504
- return {
2505
- ...t,
2506
- x: 0
2507
- };
2508
- }, er = {
2509
- text: "Aa",
2510
- textarea: "≡",
2511
- select: "▾",
2512
- checkbox: "☑",
2513
- date: "📅",
2514
- file: "📎",
2515
- rating: "★",
2516
- email: "@",
2517
- number: "#"
2518
- };
2519
- function tr(e) {
2520
- return er[e] ?? "?";
2521
- }
2522
- function nr({ field: t, onRemove: n }) {
2523
- let { t: r } = e(), { attributes: i, listeners: a, setNodeRef: o, transform: s, transition: c, isDragging: l } = Kn({ id: t.id });
2524
- return /* @__PURE__ */ h("div", {
2525
- ref: o,
2526
- style: {
2527
- transform: s ? `translate3d(${String(s.x)}px, ${String(s.y)}px, 0)` : void 0,
2528
- transition: c ?? void 0,
2529
- opacity: l ? .4 : 1
2530
- },
2531
- className: `flex items-center gap-3 rounded-md border p-3 ${l ? "border-accent bg-background shadow-md" : "border-border bg-background"}`,
2532
- children: [
2533
- /* @__PURE__ */ m("button", {
2534
- type: "button",
2535
- className: "text-muted-foreground flex-none cursor-grab text-base leading-none select-none",
2536
- "aria-label": r("middag.ui.form_builder.drag_field"),
2537
- ...i,
2538
- ...a,
2539
- children: "⠇"
2540
- }),
2541
- /* @__PURE__ */ m("span", {
2542
- className: "bg-muted flex h-8 w-8 flex-none items-center justify-center rounded text-sm",
2543
- children: tr(t.type)
2544
- }),
2545
- /* @__PURE__ */ h("div", {
2546
- className: "min-w-0 flex-1",
2547
- children: [
2548
- /* @__PURE__ */ m("span", {
2549
- className: "text-foreground truncate text-sm font-medium",
2550
- children: t.label
2551
- }),
2552
- t.required && /* @__PURE__ */ m("span", {
2553
- className: "text-destructive ml-0.5 text-sm",
2554
- "aria-label": r("middag.ui.form.required_label"),
2555
- children: "*"
2556
- }),
2557
- /* @__PURE__ */ m("span", {
2558
- className: "text-muted-foreground ml-2 text-xs",
2559
- children: t.type
2560
- })
2561
- ]
2562
- }),
2563
- /* @__PURE__ */ m("button", {
2564
- type: "button",
2565
- onClick: () => {
2566
- n(t.id);
2567
- },
2568
- className: "text-muted-foreground hover:text-destructive flex h-6 w-6 flex-none items-center justify-center rounded text-sm transition-colors",
2569
- "aria-label": r("middag.ui.form_builder.remove_field"),
2570
- children: "×"
2571
- })
2572
- ]
2573
- });
2492
+ function Yn(e, t) {
2493
+ return !Kn(e) || !Kn(t) ? !1 : e.data.current.sortable.containerId === t.data.current.sortable.containerId;
2574
2494
  }
2575
- function rr({ field: e }) {
2576
- return /* @__PURE__ */ h("div", {
2577
- className: "border-accent bg-background flex items-center gap-3 rounded-md border p-3 shadow-md",
2578
- children: [
2579
- /* @__PURE__ */ m("span", {
2580
- className: "text-muted-foreground flex-none text-base leading-none select-none",
2581
- children: "⠇"
2582
- }),
2583
- /* @__PURE__ */ m("span", {
2584
- className: "bg-muted flex h-8 w-8 flex-none items-center justify-center rounded text-sm",
2585
- children: tr(e.type)
2586
- }),
2587
- /* @__PURE__ */ h("div", {
2588
- className: "min-w-0 flex-1",
2589
- children: [/* @__PURE__ */ m("span", {
2590
- className: "text-foreground text-sm font-medium",
2591
- children: e.label
2592
- }), e.required && /* @__PURE__ */ m("span", {
2593
- className: "text-destructive ml-0.5 text-sm",
2594
- children: "*"
2595
- })]
2596
- })
2597
- ]
2598
- });
2599
- }
2600
- function ir({ field: e }) {
2601
- let t = /* @__PURE__ */ h("label", {
2602
- className: "text-foreground mb-1 block text-xs font-medium",
2603
- children: [e.label, e.required && /* @__PURE__ */ m("span", {
2604
- className: "text-destructive ml-0.5",
2605
- children: "*"
2606
- })]
2607
- });
2608
- switch (e.type) {
2609
- case "textarea": return /* @__PURE__ */ h("div", { children: [t, /* @__PURE__ */ m("div", { className: "border-border bg-background h-16 rounded-md border px-2 py-1 text-xs" })] });
2610
- case "select": return /* @__PURE__ */ h("div", { children: [t, /* @__PURE__ */ h("div", {
2611
- className: "border-border bg-background text-muted-foreground flex items-center justify-between rounded-md border px-2 py-1.5 text-xs",
2612
- children: [/* @__PURE__ */ m("span", { children: "Selecione..." }), /* @__PURE__ */ m("span", {
2613
- className: "text-[10px]",
2614
- children: "▾"
2615
- })]
2616
- })] });
2617
- case "checkbox": return /* @__PURE__ */ h("div", {
2618
- className: "flex items-center gap-2",
2619
- children: [/* @__PURE__ */ m("div", { className: "border-border h-4 w-4 rounded border" }), /* @__PURE__ */ m("span", {
2620
- className: "text-foreground text-xs",
2621
- children: e.label
2622
- })]
2623
- });
2624
- case "rating": return /* @__PURE__ */ h("div", { children: [t, /* @__PURE__ */ m("div", {
2625
- className: "flex gap-1",
2626
- children: [
2627
- 1,
2628
- 2,
2629
- 3,
2630
- 4,
2631
- 5
2632
- ].map((e) => /* @__PURE__ */ m("span", {
2633
- className: "text-muted-foreground/40 text-sm",
2634
- children: "★"
2635
- }, e))
2636
- })] });
2637
- case "file": return /* @__PURE__ */ h("div", { children: [t, /* @__PURE__ */ m("div", {
2638
- className: "border-border text-muted-foreground flex items-center justify-center rounded-md border border-dashed px-2 py-3 text-xs",
2639
- children: "Clique ou arraste um arquivo"
2640
- })] });
2641
- default: return /* @__PURE__ */ h("div", { children: [t, /* @__PURE__ */ m("div", {
2642
- className: "border-border bg-background rounded-md border px-2 py-1.5 text-xs",
2643
- children: e.placeholder ? /* @__PURE__ */ m("span", {
2644
- className: "text-muted-foreground",
2645
- children: e.placeholder
2646
- }) : /* @__PURE__ */ m("span", { children: "\xA0" })
2647
- })] });
2648
- }
2649
- }
2650
- function ar({ block: t }) {
2651
- let { t: n } = e(), { data: r } = t, [i, a] = p(r.fields), [s, c] = p(null), l = me(W(ct, { activationConstraint: { distance: 5 } }), W(rt, { coordinateGetter: Xn })), u = o((e) => {
2652
- c(String(e.active.id));
2653
- }, []), d = o((e) => {
2654
- c(null);
2655
- let { active: t, over: n } = e;
2656
- n && t.id !== n.id && a((e) => Dn(e, e.findIndex((e) => e.id === t.id), e.findIndex((e) => e.id === n.id)));
2657
- }, []), f = o((e) => {
2658
- a((t) => t.filter((t) => t.id !== e));
2659
- }, []), g = s ? i.find((e) => e.id === s) : null;
2660
- return /* @__PURE__ */ h("div", {
2661
- className: "flex min-h-[400px] gap-4",
2662
- children: [
2663
- /* @__PURE__ */ h("div", {
2664
- className: "w-[200px] flex-none",
2665
- children: [/* @__PURE__ */ m("h3", {
2666
- className: "text-foreground mb-3 text-sm font-semibold",
2667
- children: "Campos Disponíveis"
2668
- }), /* @__PURE__ */ m("div", {
2669
- className: "grid grid-cols-2 gap-2",
2670
- children: r.availableTypes.map((e) => /* @__PURE__ */ h("div", {
2671
- className: "bg-background hover:border-accent cursor-grab rounded-md border p-2 text-center text-xs transition-colors",
2672
- children: [/* @__PURE__ */ m("div", {
2673
- className: "mb-1 text-base leading-none",
2674
- children: e.icon
2675
- }), /* @__PURE__ */ m("span", {
2676
- className: "text-foreground",
2677
- children: e.label
2678
- })]
2679
- }, e.type))
2680
- })]
2681
- }),
2682
- /* @__PURE__ */ h("div", {
2683
- className: "min-w-0 flex-1",
2684
- children: [/* @__PURE__ */ h("div", {
2685
- className: "mb-3 flex items-center justify-between",
2686
- children: [/* @__PURE__ */ m("h3", {
2687
- className: "text-foreground text-sm font-semibold",
2688
- children: "Campos do Formulário"
2689
- }), /* @__PURE__ */ h("span", {
2690
- className: "text-muted-foreground text-xs",
2691
- children: [
2692
- i.length,
2693
- " ",
2694
- i.length === 1 ? "campo" : "campos"
2695
- ]
2696
- })]
2697
- }), /* @__PURE__ */ h(on, {
2698
- sensors: l,
2699
- collisionDetection: xe,
2700
- modifiers: [$n],
2701
- onDragStart: u,
2702
- onDragEnd: d,
2703
- children: [/* @__PURE__ */ m(Rn, {
2704
- items: i.map((e) => e.id),
2705
- strategy: Pn,
2706
- children: i.length > 0 ? /* @__PURE__ */ m("div", {
2707
- className: "space-y-2",
2708
- children: i.map((e) => /* @__PURE__ */ m(nr, {
2709
- field: e,
2710
- onRemove: f
2711
- }, e.id))
2712
- }) : /* @__PURE__ */ m("div", {
2713
- className: "border-border text-muted-foreground flex min-h-[200px] items-center justify-center rounded-lg border border-dashed text-sm",
2714
- children: n("middag.ui.form_builder.drop_hint")
2715
- })
2716
- }), /* @__PURE__ */ m(En, { children: g ? /* @__PURE__ */ m(rr, { field: g }) : null })]
2717
- })]
2718
- }),
2719
- /* @__PURE__ */ h("div", {
2720
- className: "w-[280px] flex-none",
2721
- children: [/* @__PURE__ */ m("h3", {
2722
- className: "text-foreground mb-3 text-sm font-semibold",
2723
- children: n("middag.ui.form_builder.preview")
2724
- }), /* @__PURE__ */ m("div", {
2725
- className: "bg-muted/30 space-y-3 rounded-lg border p-4",
2726
- children: i.length > 0 ? i.map((e) => /* @__PURE__ */ m(ir, { field: e }, e.id)) : /* @__PURE__ */ m("p", {
2727
- className: "text-muted-foreground text-center text-xs",
2728
- children: n("middag.ui.form_builder.no_fields")
2729
- })
2730
- })]
2731
- })
2732
- ]
2733
- });
2495
+ function Xn(e, t) {
2496
+ return !Kn(e) || !Kn(t) || !Yn(e, t) ? !1 : e.data.current.sortable.index < t.data.current.sortable.index;
2734
2497
  }
2735
2498
  //#endregion
2736
- export { ar as FormBuilderBlock };
2499
+ export { de as _, Jn as a, nn as c, vt as d, ct as f, vn as g, _e as h, An as i, wn as l, ut as m, Tn as n, Wn as o, at as p, Rn as r, Mn as s, In as t, et as u, fe as v, F as y };