ics-ui-kit 0.1.0-alpha.8 → 0.1.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 (1001) hide show
  1. package/README.md +36 -0
  2. package/dist/AlertContext-CxjW1LVL.js +13 -0
  3. package/dist/AlertContext-CxjW1LVL.js.map +1 -0
  4. package/dist/AlertIcon-5B6AgZpe.js +96 -0
  5. package/dist/AlertIcon-5B6AgZpe.js.map +1 -0
  6. package/dist/Button-Dg89xRSi.js +36 -0
  7. package/dist/Button-Dg89xRSi.js.map +1 -0
  8. package/dist/ButtonBase-e6qyv6mD.js +158 -0
  9. package/dist/ButtonBase-e6qyv6mD.js.map +1 -0
  10. package/dist/CheckboxField-B6ojieD7.js +347 -0
  11. package/dist/CheckboxField-B6ojieD7.js.map +1 -0
  12. package/dist/Command-BhbfL5wm.js +554 -0
  13. package/dist/Command-BhbfL5wm.js.map +1 -0
  14. package/dist/ComponentVariantProvider-B0SFUaXB.js +8 -0
  15. package/dist/ComponentVariantProvider-B0SFUaXB.js.map +1 -0
  16. package/dist/DayPicker-4hE1QEvO.js +2452 -0
  17. package/dist/DayPicker-4hE1QEvO.js.map +1 -0
  18. package/dist/Description-BTPMlTT-.js +19 -0
  19. package/dist/Description-BTPMlTT-.js.map +1 -0
  20. package/dist/Dialog-ByiJIDhl.js +99 -0
  21. package/dist/Dialog-ByiJIDhl.js.map +1 -0
  22. package/dist/Divider-DPW5ZhZ8.js +24 -0
  23. package/dist/Divider-DPW5ZhZ8.js.map +1 -0
  24. package/dist/EmptyState-DRKjscH-.js +12 -0
  25. package/dist/EmptyState-DRKjscH-.js.map +1 -0
  26. package/dist/ErrorState-B26k67-z.js +11 -0
  27. package/dist/ErrorState-B26k67-z.js.map +1 -0
  28. package/dist/FeatureIcon-BGE0Orkc.js +23 -0
  29. package/dist/FeatureIcon-BGE0Orkc.js.map +1 -0
  30. package/dist/Field-CSvS9f_a.js +86 -0
  31. package/dist/Field-CSvS9f_a.js.map +1 -0
  32. package/dist/FieldLabel-BA0y5lhr.js +70 -0
  33. package/dist/FieldLabel-BA0y5lhr.js.map +1 -0
  34. package/dist/FolderSvg-cw0DxNVy.js +742 -0
  35. package/dist/FolderSvg-cw0DxNVy.js.map +1 -0
  36. package/dist/FormFooterTemplate-BPspyDbr.js +88 -0
  37. package/dist/FormFooterTemplate-BPspyDbr.js.map +1 -0
  38. package/dist/FormHeader--F6b2aRk.js +49 -0
  39. package/dist/FormHeader--F6b2aRk.js.map +1 -0
  40. package/dist/FormStack-DvlFQQiP.js +127 -0
  41. package/dist/FormStack-DvlFQQiP.js.map +1 -0
  42. package/dist/HintState-BxrCAWqq.js +12 -0
  43. package/dist/HintState-BxrCAWqq.js.map +1 -0
  44. package/dist/Icon-DH3ev9GK.js +22 -0
  45. package/dist/Icon-DH3ev9GK.js.map +1 -0
  46. package/dist/IconButton-DwkpNgn3.js +33 -0
  47. package/dist/IconButton-DwkpNgn3.js.map +1 -0
  48. package/dist/IconTooltip-DhkXc8Uy.js +11 -0
  49. package/dist/IconTooltip-DhkXc8Uy.js.map +1 -0
  50. package/dist/Indicator-AqxHWPA9.js +29 -0
  51. package/dist/Indicator-AqxHWPA9.js.map +1 -0
  52. package/dist/InputGroup-BvD9Igmt.js +137 -0
  53. package/dist/InputGroup-BvD9Igmt.js.map +1 -0
  54. package/dist/InputOTP-B2e1nfSO.js +259 -0
  55. package/dist/InputOTP-B2e1nfSO.js.map +1 -0
  56. package/dist/Loader-BpHiL6W-.js +58 -0
  57. package/dist/Loader-BpHiL6W-.js.map +1 -0
  58. package/dist/MenuItem-pvsONHlh.js +32 -0
  59. package/dist/MenuItem-pvsONHlh.js.map +1 -0
  60. package/dist/MenuItemShortcut-DgPol9Nz.js +21 -0
  61. package/dist/MenuItemShortcut-DgPol9Nz.js.map +1 -0
  62. package/dist/MenuItemText-7uPl9P3z.js +20 -0
  63. package/dist/MenuItemText-7uPl9P3z.js.map +1 -0
  64. package/dist/Overlay-2XMlxApi.js +28 -0
  65. package/dist/Overlay-2XMlxApi.js.map +1 -0
  66. package/dist/Popover-Dvr7y0YY.js +258 -0
  67. package/dist/Popover-Dvr7y0YY.js.map +1 -0
  68. package/dist/RichButton-DuPTenmS.js +49 -0
  69. package/dist/RichButton-DuPTenmS.js.map +1 -0
  70. package/dist/ScrollArea-CuuTeDn3.js +576 -0
  71. package/dist/ScrollArea-CuuTeDn3.js.map +1 -0
  72. package/dist/ScrollShadowContainer-DdrnF8qU.js +36 -0
  73. package/dist/ScrollShadowContainer-DdrnF8qU.js.map +1 -0
  74. package/dist/SearchSelectTag-DFCX9zT1.js +56 -0
  75. package/dist/SearchSelectTag-DFCX9zT1.js.map +1 -0
  76. package/dist/Select-DRwv6-eZ.js +980 -0
  77. package/dist/Select-DRwv6-eZ.js.map +1 -0
  78. package/dist/Sheet-rtwmzm2-.js +83 -0
  79. package/dist/Sheet-rtwmzm2-.js.map +1 -0
  80. package/dist/Shortcut-D8L15_ed.js +22 -0
  81. package/dist/Shortcut-D8L15_ed.js.map +1 -0
  82. package/dist/Skeleton-y6I-i9q5.js +21 -0
  83. package/dist/Skeleton-y6I-i9q5.js.map +1 -0
  84. package/dist/Tag-DdHXTyKF.js +199 -0
  85. package/dist/Tag-DdHXTyKF.js.map +1 -0
  86. package/dist/Text-DeBE8AKl.js +22 -0
  87. package/dist/Text-DeBE8AKl.js.map +1 -0
  88. package/dist/TextInput-Cj50ImXi.js +205 -0
  89. package/dist/TextInput-Cj50ImXi.js.map +1 -0
  90. package/dist/TextOverflowTooltip-DlUgic5y.js +36 -0
  91. package/dist/TextOverflowTooltip-DlUgic5y.js.map +1 -0
  92. package/dist/Toggle-v_HT3Gm2.js +40 -0
  93. package/dist/Toggle-v_HT3Gm2.js.map +1 -0
  94. package/dist/Tooltip-C4rVuWr4.js +473 -0
  95. package/dist/Tooltip-C4rVuWr4.js.map +1 -0
  96. package/dist/TriggerButton-CfDObWP9.js +33 -0
  97. package/dist/TriggerButton-CfDObWP9.js.map +1 -0
  98. package/dist/blocks/auth/otp-form/OTPForm.d.ts +47 -0
  99. package/dist/blocks/auth/otp-form/OTPForm.stories.d.ts +40 -0
  100. package/dist/blocks/auth/otp-form/components/EmailForm.d.ts +25 -0
  101. package/dist/blocks/auth/otp-form/components/OTPInputForm.d.ts +27 -0
  102. package/dist/blocks/auth/otp-form/components/ResendButton.d.ts +14 -0
  103. package/dist/blocks/auth/otp-form/index.d.ts +3 -0
  104. package/dist/blocks/auth/otp-form/utils/OTPError.d.ts +8 -0
  105. package/dist/blocks/auth/otp-form.d.ts +2 -0
  106. package/dist/blocks/auth/otp-form.js +309 -0
  107. package/dist/blocks/auth/otp-form.js.map +1 -0
  108. package/dist/buildMatchPatternFn-d7GTeGl_.js +68 -0
  109. package/dist/buildMatchPatternFn-d7GTeGl_.js.map +1 -0
  110. package/dist/{bundle-mjs-D6wdQkGI.js → bundle-mjs-CQ0w4GOB.js} +347 -338
  111. package/dist/{bundle-mjs-D6wdQkGI.js.map → bundle-mjs-CQ0w4GOB.js.map} +1 -1
  112. package/dist/{check-C-TqZgvb.js → check-CeyaOoZv.js} +2 -2
  113. package/dist/{check-C-TqZgvb.js.map → check-CeyaOoZv.js.map} +1 -1
  114. package/dist/chevron-down-CAOItu8X.js +14 -0
  115. package/dist/chevron-down-CAOItu8X.js.map +1 -0
  116. package/dist/chevron-left-D6FtXcdU.js +14 -0
  117. package/dist/chevron-left-D6FtXcdU.js.map +1 -0
  118. package/dist/chevron-right-D3juAhA-.js +14 -0
  119. package/dist/chevron-right-D3juAhA-.js.map +1 -0
  120. package/dist/chevron-up-UDiVTHo0.js +12 -0
  121. package/dist/chevron-up-UDiVTHo0.js.map +1 -0
  122. package/dist/circle-alert-CVIokIC7.js +16 -0
  123. package/dist/circle-alert-CVIokIC7.js.map +1 -0
  124. package/dist/circle-x-u75Rx3Tj.js +16 -0
  125. package/dist/circle-x-u75Rx3Tj.js.map +1 -0
  126. package/dist/{utils-2yE78m5l.js → cn-dsXlqdJg.js} +2 -2
  127. package/dist/cn-dsXlqdJg.js.map +1 -0
  128. package/dist/components/alert/Alert.d.ts +12 -0
  129. package/dist/components/alert/Alert.stories.d.ts +38 -0
  130. package/dist/components/alert/AlertContext.d.ts +16 -0
  131. package/dist/components/alert/components/AlertButton.d.ts +8 -0
  132. package/dist/components/alert/components/AlertDescription.d.ts +7 -0
  133. package/dist/components/alert/components/AlertIcon.d.ts +14 -0
  134. package/dist/components/alert/components/AlertTitle.d.ts +11 -0
  135. package/dist/components/alert/index.d.ts +6 -0
  136. package/dist/components/alert-dialog/AlertDialog.d.ts +69 -0
  137. package/dist/components/alert-dialog/AlertDialog.stories.d.ts +32 -0
  138. package/dist/components/alert-dialog/index.d.ts +1 -0
  139. package/dist/components/alert-dialog.d.ts +2 -0
  140. package/dist/components/alert-dialog.js +313 -0
  141. package/dist/components/alert-dialog.js.map +1 -0
  142. package/dist/components/alert.d.ts +2 -0
  143. package/dist/components/alert.js +50 -0
  144. package/dist/components/alert.js.map +1 -0
  145. package/dist/components/avatar/Avatar.d.ts +7 -0
  146. package/dist/components/avatar/Avatar.stories.d.ts +10 -0
  147. package/dist/components/avatar/avatar-fallback/AvatarFallback.d.ts +6 -0
  148. package/dist/components/avatar/avatar-icon/AvatarIcon.d.ts +6 -0
  149. package/dist/components/avatar/avatar-image/AvatarImage.d.ts +3 -0
  150. package/dist/components/avatar/avatar-indicator/AvatarIndicator.d.ts +5 -0
  151. package/dist/components/avatar/avatar-label/AvatarLabel.d.ts +5 -0
  152. package/dist/components/avatar/avatar-label/AvatarLabel.stories.d.ts +10 -0
  153. package/dist/components/avatar/avatar-label/AvatarLabelContext.d.ts +9 -0
  154. package/dist/components/avatar/avatar-label/components/avatar-label-avatar/AvatarLabelAvatar.d.ts +6 -0
  155. package/dist/components/avatar/avatar-label/components/avatar-label-description/AvatarLabelDescription.d.ts +10 -0
  156. package/dist/components/avatar/avatar-label/components/avatar-label-indicator/AvatarLabelIndicator.d.ts +6 -0
  157. package/dist/components/avatar/avatar-label/components/avatar-label-title/AvatarLabelTitle.d.ts +6 -0
  158. package/dist/components/avatar/index.d.ts +13 -0
  159. package/dist/components/avatar.d.ts +2 -0
  160. package/dist/components/avatar.js +432 -0
  161. package/dist/components/avatar.js.map +1 -0
  162. package/dist/components/badge/Badge.d.ts +7 -382
  163. package/dist/components/badge.js +24 -46
  164. package/dist/components/badge.js.map +1 -1
  165. package/dist/components/banner/Banner.d.ts +5 -0
  166. package/dist/components/banner/Banner.stories.d.ts +8 -0
  167. package/dist/components/banner/components/banner-description/BannerDescription.d.ts +5 -0
  168. package/dist/components/banner/components/banner-title/BannerTitle.d.ts +5 -0
  169. package/dist/components/banner/components/banner-title/BannerTitle.stories.d.ts +14 -0
  170. package/dist/components/banner/index.d.ts +3 -0
  171. package/dist/components/banner.d.ts +2 -0
  172. package/dist/components/banner.js +27 -0
  173. package/dist/components/banner.js.map +1 -0
  174. package/dist/components/breadcrumb/Breadcrumb.d.ts +19 -0
  175. package/dist/components/breadcrumb/Breadcrumb.stories.d.ts +10 -0
  176. package/dist/components/breadcrumb/index.d.ts +1 -0
  177. package/dist/components/breadcrumb.d.ts +2 -0
  178. package/dist/components/breadcrumb.js +78 -0
  179. package/dist/components/breadcrumb.js.map +1 -0
  180. package/dist/components/button/button/Button.d.ts +6 -167
  181. package/dist/components/button/button/Button.stories.d.ts +4 -164
  182. package/dist/components/button/button-base/ButtonBase.d.ts +7 -328
  183. package/dist/components/button/icon-button/IconButton.d.ts +5 -466
  184. package/dist/components/button/icon-button/IconButton.stories.d.ts +21 -2
  185. package/dist/components/button/index.d.ts +9 -0
  186. package/dist/components/button/rich-button/RichButton.d.ts +79 -0
  187. package/dist/components/button/rich-button/RichButton.stories.d.ts +46 -0
  188. package/dist/components/button/templates/loading-button/LoadingButtonTemplate.d.ts +12 -0
  189. package/dist/components/button/templates/loading-button/LoadingButtonTemplate.stories.d.ts +21 -0
  190. package/dist/components/button/trigger-button/TriggerButton.d.ts +13 -0
  191. package/dist/components/button/trigger-button/TriggerButton.stories.d.ts +7 -0
  192. package/dist/components/button.js +26 -6
  193. package/dist/components/button.js.map +1 -1
  194. package/dist/components/calendar/Calendar.d.ts +14 -0
  195. package/dist/components/calendar/Calendar.stories.d.ts +45 -0
  196. package/dist/components/calendar/components/calendar-chevron/CalendarChevron.d.ts +12 -0
  197. package/dist/components/calendar/components/calendar-day-button/CalendarDayButton.d.ts +26 -0
  198. package/dist/components/calendar/components/calendar-day-button/CalendarDayButton.stories.d.ts +18 -0
  199. package/dist/components/calendar/components/calendar-next-month-button/CalendarNextMonthButton.d.ts +11 -0
  200. package/dist/components/calendar/components/calendar-previous-month-button/CalendarPreviousMonthButton.d.ts +11 -0
  201. package/dist/components/calendar/components/calendar-root/CalendarRoot.d.ts +11 -0
  202. package/dist/components/calendar/components/calendar-week-day/CalendarWeekDay.d.ts +11 -0
  203. package/dist/components/calendar/components/calendar-week-day/CalendarWeekDay.stories.d.ts +7 -0
  204. package/dist/components/calendar/index.d.ts +3 -0
  205. package/dist/components/calendar.d.ts +2 -0
  206. package/dist/components/calendar.js +186 -0
  207. package/dist/components/calendar.js.map +1 -0
  208. package/dist/components/card/Card.d.ts +7 -0
  209. package/dist/components/card/Card.stories.d.ts +17 -0
  210. package/dist/components/card/components/ActionCard.d.ts +7 -0
  211. package/dist/components/card/components/CardFeature.d.ts +7 -0
  212. package/dist/components/card/components/CardFolder.d.ts +9 -0
  213. package/dist/components/card/components/CardFooter.d.ts +7 -0
  214. package/dist/components/card/components/CardMenuTrigger.d.ts +8 -0
  215. package/dist/components/card/components/CardSubTitle.d.ts +7 -0
  216. package/dist/components/card/components/CardTitle.d.ts +7 -0
  217. package/dist/components/card/components/CardVisualBadge.d.ts +7 -0
  218. package/dist/components/card/components/FolderSvg.d.ts +3 -0
  219. package/dist/components/card/index.d.ts +19 -0
  220. package/dist/components/card/styles.d.ts +2 -0
  221. package/dist/components/card.d.ts +2 -0
  222. package/dist/components/card.js +159 -0
  223. package/dist/components/card.js.map +1 -0
  224. package/dist/components/carousel/Carousel.d.ts +17 -0
  225. package/dist/components/carousel/Carousel.stories.d.ts +8 -0
  226. package/dist/components/carousel/components/carousel-buttons/CarouselButtons.d.ts +27 -0
  227. package/dist/components/carousel/components/carousel-item/CarouselItem.d.ts +3 -0
  228. package/dist/components/carousel/index.d.ts +4 -0
  229. package/dist/components/carousel/utils/CarouselContext.d.ts +13 -0
  230. package/dist/components/carousel/utils/useCarousel.d.ts +10 -0
  231. package/dist/components/carousel.d.ts +2 -0
  232. package/dist/components/carousel.js +1700 -0
  233. package/dist/components/carousel.js.map +1 -0
  234. package/dist/components/checkbox/Checkbox.d.ts +49 -2
  235. package/dist/components/checkbox/Checkbox.test.d.ts +1 -0
  236. package/dist/components/checkbox/checkbox-field/CheckboxField.d.ts +10 -456
  237. package/dist/components/checkbox/checkbox-field/CheckboxField.stories.d.ts +3 -228
  238. package/dist/components/checkbox/index.d.ts +2 -2
  239. package/dist/components/checkbox.js +4 -3
  240. package/dist/components/collapsible/Collapsible.d.ts +6 -0
  241. package/dist/components/collapsible/Collapsible.stories.d.ts +6 -0
  242. package/dist/components/collapsible/index.d.ts +1 -0
  243. package/dist/components/collapsible.d.ts +2 -0
  244. package/dist/components/collapsible.js +133 -0
  245. package/dist/components/collapsible.js.map +1 -0
  246. package/dist/components/color-tile/ColorTile.d.ts +9 -0
  247. package/dist/components/color-tile/ColorTile.stories.d.ts +6 -0
  248. package/dist/components/color-tile/index.d.ts +1 -0
  249. package/dist/components/color-tile.d.ts +2 -0
  250. package/dist/components/color-tile.js +26 -0
  251. package/dist/components/color-tile.js.map +1 -0
  252. package/dist/components/command/Command.d.ts +108 -0
  253. package/dist/components/command/Command.stories.d.ts +34 -0
  254. package/dist/components/command/index.d.ts +1 -0
  255. package/dist/components/command.d.ts +2 -0
  256. package/dist/components/command.js +15 -0
  257. package/dist/components/command.js.map +1 -0
  258. package/dist/components/container/Container.d.ts +29 -0
  259. package/dist/components/container/Container.stories.d.ts +6 -0
  260. package/dist/components/container/index.d.ts +1 -0
  261. package/dist/components/container.d.ts +2 -0
  262. package/dist/components/container.js +23 -0
  263. package/dist/components/container.js.map +1 -0
  264. package/dist/components/counter/Counter.d.ts +14 -0
  265. package/dist/components/counter/Counter.stories.d.ts +9 -0
  266. package/dist/components/counter/index.d.ts +1 -0
  267. package/dist/components/counter.d.ts +2 -0
  268. package/dist/components/counter.js +142 -0
  269. package/dist/components/counter.js.map +1 -0
  270. package/dist/components/data-table/DataTable.stories.d.ts +8 -0
  271. package/dist/components/description/Description.d.ts +8 -0
  272. package/dist/components/description/Description.stories.d.ts +24 -0
  273. package/dist/components/description/index.d.ts +1 -0
  274. package/dist/components/description.d.ts +2 -0
  275. package/dist/components/description.js +5 -0
  276. package/dist/components/description.js.map +1 -0
  277. package/dist/components/dialog/Dialog.d.ts +51 -12
  278. package/dist/components/dialog/Dialog.stories.d.ts +26 -0
  279. package/dist/components/dialog/DialogTemplates.d.ts +24 -0
  280. package/dist/components/dialog/index.d.ts +4 -0
  281. package/dist/components/dialog.d.ts +2 -0
  282. package/dist/components/dialog.js +47 -0
  283. package/dist/components/dialog.js.map +1 -0
  284. package/dist/components/divider/Divider.d.ts +6 -118
  285. package/dist/components/divider/content-divider/ContentDivider.d.ts +15 -0
  286. package/dist/components/divider/content-divider/ContentDivider.stories.d.ts +7 -0
  287. package/dist/components/divider/index.d.ts +2 -0
  288. package/dist/components/divider.d.ts +2 -0
  289. package/dist/components/divider.js +36 -0
  290. package/dist/components/divider.js.map +1 -0
  291. package/dist/components/drawer/Drawer.d.ts +13 -0
  292. package/dist/components/drawer/Drawer.stories.d.ts +25 -0
  293. package/dist/components/drawer/components/drawer-body/DrawerBody.d.ts +3 -0
  294. package/dist/components/drawer/components/drawer-content/DrawerContent.d.ts +19 -0
  295. package/dist/components/drawer/components/drawer-footer/DrawerFooter.d.ts +3 -0
  296. package/dist/components/drawer/components/drawer-handler/DrawerHandler.d.ts +2 -0
  297. package/dist/components/drawer/components/drawer-handler/DrawerHandlerSvg.d.ts +1 -0
  298. package/dist/components/drawer/components/drawer-header/DrawerHeader.d.ts +3 -0
  299. package/dist/components/drawer/components/drawer-overlay/DrawerOverlay.d.ts +7 -0
  300. package/dist/components/drawer/index.d.ts +9 -0
  301. package/dist/components/{modal/templates/footer-template/ModalFooterTemplate.d.ts → drawer/templates/drawer-footer-template/DrawerFooterTemplate.d.ts} +6 -6
  302. package/dist/components/drawer/templates/drawer-header-template/DrawerHeaderTemplate.d.ts +10 -0
  303. package/dist/components/drawer.d.ts +2 -0
  304. package/dist/components/drawer.js +1232 -0
  305. package/dist/components/drawer.js.map +1 -0
  306. package/dist/components/dropdown/Dropdown.d.ts +80 -0
  307. package/dist/components/dropdown/Dropdown.stories.d.ts +22 -0
  308. package/dist/components/dropdown/index.d.ts +3 -0
  309. package/dist/components/dropdown/useHoverDropdown.d.ts +68 -0
  310. package/dist/components/dropdown.d.ts +2 -0
  311. package/dist/components/dropdown.js +1152 -0
  312. package/dist/components/dropdown.js.map +1 -0
  313. package/dist/components/empty-state/EmptyState.d.ts +5 -0
  314. package/dist/components/empty-state/EmptyState.stories.d.ts +6 -0
  315. package/dist/components/empty-state/index.d.ts +1 -0
  316. package/dist/components/empty-state.d.ts +2 -0
  317. package/dist/components/empty-state.js +5 -0
  318. package/dist/components/empty-state.js.map +1 -0
  319. package/dist/components/error-state/ErrorState.d.ts +3 -0
  320. package/dist/components/error-state/ErrorState.stories.d.ts +6 -0
  321. package/dist/components/error-state/Retry.d.ts +10 -0
  322. package/dist/components/error-state/Retry.stories.d.ts +7 -0
  323. package/dist/components/error-state/index.d.ts +2 -0
  324. package/dist/components/error-state.d.ts +2 -0
  325. package/dist/components/error-state.js +16 -0
  326. package/dist/components/error-state.js.map +1 -0
  327. package/dist/components/field/Field.d.ts +38 -106
  328. package/dist/components/field/Field.stories.d.ts +1 -1
  329. package/dist/components/field/index.d.ts +1 -0
  330. package/dist/components/field.d.ts +2 -0
  331. package/dist/components/field.js +5 -0
  332. package/dist/components/field.js.map +1 -0
  333. package/dist/components/file-upload/FileUpload.d.ts +24 -0
  334. package/dist/components/file-upload/FileUpload.stories.d.ts +19 -0
  335. package/dist/components/file-upload/components/file-upload-clear-button/FileUploadClearButton.d.ts +9 -0
  336. package/dist/components/file-upload/components/file-upload-compact-input-zone/FileUploadCompactInputZone.d.ts +9 -0
  337. package/dist/components/file-upload/components/file-upload-drop-area/FileUploadDropArea.d.ts +12 -0
  338. package/dist/components/file-upload/components/file-upload-drop-area/FileUploadDropArea.stories.d.ts +18 -0
  339. package/dist/components/file-upload/components/file-upload-drop-area-icon/FileUploadDropAreaIcon.d.ts +3 -0
  340. package/dist/components/file-upload/components/file-upload-drop-area-icon/FileUploadDropAreaIcon.stories.d.ts +14 -0
  341. package/dist/components/file-upload/components/file-upload-error/FileUploadError.d.ts +7 -0
  342. package/dist/components/file-upload/components/file-upload-error/FileUploadError.stories.d.ts +15 -0
  343. package/dist/components/file-upload/components/file-upload-icon/FileUploadIcon.d.ts +5 -0
  344. package/dist/components/file-upload/components/file-upload-icon/FileUploadIcon.stories.d.ts +13 -0
  345. package/dist/components/file-upload/components/file-upload-inline-drop-area/FileUploadInlineDropArea.d.ts +12 -0
  346. package/dist/components/file-upload/components/file-upload-inline-drop-area/FileUploadInlineDropArea.stories.d.ts +18 -0
  347. package/dist/components/file-upload/components/file-upload-input-zone/FileUploadInputZone.d.ts +9 -0
  348. package/dist/components/file-upload/components/file-upload-item/FileUploadItem.d.ts +12 -0
  349. package/dist/components/file-upload/components/file-upload-item/FileUploadItem.stories.d.ts +19 -0
  350. package/dist/components/file-upload/components/file-upload-item-compact/FileUploadItemCompact.d.ts +14 -0
  351. package/dist/components/file-upload/components/file-upload-item-compact/FileUploadItemCompact.stories.d.ts +19 -0
  352. package/dist/components/file-upload/file-upload-compact/FileUploadCompact.d.ts +19 -0
  353. package/dist/components/file-upload/file-upload-compact/FileUploadCompact.stories.d.ts +20 -0
  354. package/dist/components/file-upload/index.d.ts +11 -0
  355. package/dist/components/file-upload.d.ts +2 -0
  356. package/dist/components/file-upload.js +484 -0
  357. package/dist/components/file-upload.js.map +1 -0
  358. package/dist/components/form/Form.d.ts +27 -4
  359. package/dist/components/form/Form.stories.d.ts +22 -7
  360. package/dist/components/form/components/form-body/FormBody.d.ts +5 -0
  361. package/dist/components/form/components/form-divider/FormDivider.d.ts +6 -0
  362. package/dist/components/form/components/form-field/FormField.d.ts +21 -62
  363. package/dist/components/form/components/form-field/FormField.stories.d.ts +10 -0
  364. package/dist/components/form/components/form-field-set/FormFieldSet.d.ts +3 -0
  365. package/dist/components/form/components/form-footer/FormFooter.d.ts +5 -0
  366. package/dist/components/form/components/form-header/FormHeader.d.ts +16 -0
  367. package/dist/components/form/components/form-section-header-button/FormSectionHeaderButton.d.ts +17 -0
  368. package/dist/components/form/components/form-section-title/FormSectionTitle.d.ts +3 -1
  369. package/dist/components/form/components/form-stack/FormStack.d.ts +3 -0
  370. package/dist/components/form/index.d.ts +10 -1
  371. package/dist/components/form/templates/footer-template/FormFooterTemplate.d.ts +24 -0
  372. package/dist/components/form/templates/header-template/FormHeaderTemplate.d.ts +43 -0
  373. package/dist/components/form.js +59 -409
  374. package/dist/components/form.js.map +1 -1
  375. package/dist/components/hint-state/HintState.d.ts +3 -0
  376. package/dist/components/hint-state/HintState.stories.d.ts +6 -0
  377. package/dist/components/hint-state/index.d.ts +1 -0
  378. package/dist/components/hint-state.d.ts +2 -0
  379. package/dist/components/hint-state.js +5 -0
  380. package/dist/components/hint-state.js.map +1 -0
  381. package/dist/components/icon/Icon.d.ts +9 -48
  382. package/dist/components/icon/Icon.stories.d.ts +7 -4
  383. package/dist/components/icon/feature-icon/FeatureIcon.d.ts +4 -75
  384. package/dist/components/icon/feature-icon/FeatureIcon.stories.d.ts +16 -6
  385. package/dist/components/icon/index.d.ts +2 -0
  386. package/dist/components/icon-tooltip/IconTooltip.d.ts +5 -4
  387. package/dist/components/icon-tooltip/index.d.ts +2 -0
  388. package/dist/components/icon-tooltip.d.ts +2 -0
  389. package/dist/components/icon-tooltip.js +5 -0
  390. package/dist/components/icon-tooltip.js.map +1 -0
  391. package/dist/components/icon.d.ts +2 -0
  392. package/dist/components/icon.js +7 -0
  393. package/dist/components/icon.js.map +1 -0
  394. package/dist/components/image-placeholder/ImagePlaceholder.d.ts +6 -0
  395. package/dist/components/image-placeholder/ImagePlaceholder.stories.d.ts +6 -0
  396. package/dist/components/image-placeholder/index.d.ts +1 -0
  397. package/dist/components/image-placeholder.d.ts +2 -0
  398. package/dist/components/image-placeholder.js +22 -0
  399. package/dist/components/image-placeholder.js.map +1 -0
  400. package/dist/components/image-preview/ImagePreview.d.ts +23 -0
  401. package/dist/components/image-preview/ImagePreview.stories.d.ts +6 -0
  402. package/dist/components/image-preview/index.d.ts +1 -0
  403. package/dist/components/image-preview/utils.d.ts +1 -0
  404. package/dist/components/image-preview.d.ts +2 -0
  405. package/dist/components/image-preview.js +124 -0
  406. package/dist/components/image-preview.js.map +1 -0
  407. package/dist/components/image-uploader/ImageUploader.d.ts +27 -0
  408. package/dist/components/image-uploader/ImageUploader.stories.d.ts +6 -0
  409. package/dist/components/image-uploader/components/ImageCameraAddSvg.d.ts +5 -0
  410. package/dist/components/image-uploader/components/ImageUploaderButton.d.ts +8 -0
  411. package/dist/components/image-uploader/index.d.ts +1 -0
  412. package/dist/components/image-uploader.d.ts +2 -0
  413. package/dist/components/image-uploader.js +88 -0
  414. package/dist/components/image-uploader.js.map +1 -0
  415. package/dist/components/images/BoxSvg.d.ts +5 -0
  416. package/dist/components/images/BoxSvg.stories.d.ts +13 -0
  417. package/dist/components/images/FolderSvg.d.ts +5 -0
  418. package/dist/components/images/FolderSvg.stories.d.ts +13 -0
  419. package/dist/components/images/index.d.ts +2 -0
  420. package/dist/components/images.d.ts +2 -0
  421. package/dist/components/images.js +6 -0
  422. package/dist/components/images.js.map +1 -0
  423. package/dist/components/indicator/Indicator.d.ts +7 -0
  424. package/dist/components/indicator/Indicator.stories.d.ts +6 -0
  425. package/dist/components/indicator/index.d.ts +1 -0
  426. package/dist/components/indicator.d.ts +2 -0
  427. package/dist/components/indicator.js +5 -0
  428. package/dist/components/indicator.js.map +1 -0
  429. package/dist/components/input/components/clear-button/ClearButton.d.ts +3 -3
  430. package/dist/components/input/file-input/FileInput.d.ts +34 -0
  431. package/dist/components/input/file-input/FileInput.stories.d.ts +12 -0
  432. package/dist/components/input/index.d.ts +3 -0
  433. package/dist/components/input/input/Input.d.ts +5 -2
  434. package/dist/components/input/input/Input.stories.d.ts +3 -0
  435. package/dist/components/input/input-group/InputGroup.d.ts +37 -0
  436. package/dist/components/input/input-group/InputGroup.stories.d.ts +7 -0
  437. package/dist/components/input/secret-input/SecretInput.d.ts +14 -5
  438. package/dist/components/input/secret-input/SecretInput.stories.d.ts +4 -0
  439. package/dist/components/input/styles/inputBaseStyles.d.ts +3 -0
  440. package/dist/components/input/text-input/TextInput.d.ts +2 -2
  441. package/dist/components/input/text-input/TextInput.stories.d.ts +2 -2
  442. package/dist/components/input/web-input/WebInput.d.ts +15 -0
  443. package/dist/components/input/web-input/WebInput.stories.d.ts +14 -0
  444. package/dist/components/input-otp/InputOTP.d.ts +29 -0
  445. package/dist/components/input-otp/InputOTP.stories.d.ts +9 -0
  446. package/dist/components/input-otp/components/input-otp-group/InputOTPGroup.d.ts +2 -0
  447. package/dist/components/input-otp/components/input-otp-separator/InputOTPSeparator.d.ts +2 -0
  448. package/dist/components/input-otp/components/input-otp-slot/InputOTPSlot.d.ts +4 -0
  449. package/dist/components/input-otp/index.d.ts +4 -0
  450. package/dist/components/input-otp.d.ts +2 -0
  451. package/dist/components/input-otp.js +8 -0
  452. package/dist/components/input-otp.js.map +1 -0
  453. package/dist/components/input.js +223 -202
  454. package/dist/components/input.js.map +1 -1
  455. package/dist/components/label/Label.d.ts +1 -3
  456. package/dist/components/label/Label.stories.d.ts +1 -5
  457. package/dist/components/label/field-label/FieldLabel.d.ts +4 -47
  458. package/dist/components/label/field-label/FieldLabel.stories.d.ts +1 -0
  459. package/dist/components/label/field-label/components/RequiredIcon.d.ts +5 -0
  460. package/dist/components/label.js +1 -1
  461. package/dist/components/loader/Loader.d.ts +6 -0
  462. package/dist/components/loader/Loader.stories.d.ts +6 -0
  463. package/dist/components/loader/index.d.ts +1 -0
  464. package/dist/components/loader.d.ts +2 -0
  465. package/dist/components/loader.js +5 -0
  466. package/dist/components/loader.js.map +1 -0
  467. package/dist/components/menu-item/MenuItem.d.ts +31 -0
  468. package/dist/components/menu-item/MenuItem.stories.d.ts +6 -0
  469. package/dist/components/menu-item/MenuItemAction.d.ts +6 -0
  470. package/dist/components/menu-item/components/menu-item-button/MenuItemButton.d.ts +37 -0
  471. package/dist/components/menu-item/components/menu-item-button/MenuItemButton.stories.d.ts +7 -0
  472. package/dist/components/menu-item/components/menu-item-icon/MenuItemIcon.d.ts +7 -0
  473. package/dist/components/menu-item/components/menu-item-icon/MenuItemIcon.stories.d.ts +6 -0
  474. package/dist/components/menu-item/components/menu-item-icon-button/MenuItemIconButton.d.ts +5 -0
  475. package/dist/components/menu-item/components/menu-item-icon-button/MenuItemIconButton.stories.d.ts +7 -0
  476. package/dist/components/menu-item/components/menu-item-secondary-text/MenuItemSecondaryText.d.ts +21 -0
  477. package/dist/components/menu-item/components/menu-item-secondary-text/MenuItemSecondaryText.stories.d.ts +6 -0
  478. package/dist/components/menu-item/components/menu-item-shortcut/MenuItemShortcut.d.ts +21 -0
  479. package/dist/components/menu-item/components/menu-item-shortcut/MenuItemShortcut.stories.d.ts +6 -0
  480. package/dist/components/menu-item/components/menu-item-text/MenuItemText.d.ts +21 -0
  481. package/dist/components/menu-item/components/menu-item-text/MenuItemText.stories.d.ts +6 -0
  482. package/dist/components/menu-item/index.d.ts +13 -0
  483. package/dist/components/menu-item/templates/menu-item-action-template/MenuItemActionTemplate.d.ts +12 -0
  484. package/dist/components/menu-item/templates/menu-item-action-template/MenuItemActionTemplate.stories.d.ts +6 -0
  485. package/dist/components/menu-item/templates/menu-item-common-template/MenuItemCommonTemplate.d.ts +16 -0
  486. package/dist/components/menu-item/templates/menu-item-common-template/MenuItemCommonTemplate.stories.d.ts +6 -0
  487. package/dist/components/menu-item/templates/menu-item-info-template/MenuItemInfoTemplate.d.ts +13 -0
  488. package/dist/components/menu-item/templates/menu-item-info-template/MenuItemInfoTemplate.stories.d.ts +6 -0
  489. package/dist/components/menu-item/templates/menu-item-interactive-template/MenuItemInteractiveTemplate.d.ts +16 -0
  490. package/dist/components/menu-item/templates/menu-item-interactive-template/MenuItemInteractiveTemplate.stories.d.ts +6 -0
  491. package/dist/components/menu-item/templates/menu-item-rich-template/MenuItemRichTemplate.d.ts +11 -0
  492. package/dist/components/menu-item/templates/menu-item-rich-template/MenuItemRichTemplate.stories.d.ts +6 -0
  493. package/dist/components/menu-item.d.ts +2 -0
  494. package/dist/components/menu-item.js +243 -0
  495. package/dist/components/menu-item.js.map +1 -0
  496. package/dist/components/overflow-tooltip/OverflowTooltip.d.ts +29 -0
  497. package/dist/components/overflow-tooltip/OverflowTooltip.stories.d.ts +9 -0
  498. package/dist/components/overflow-tooltip/TextOverflowTooltip.d.ts +11 -0
  499. package/dist/components/overflow-tooltip/TextOverflowTooltip.stories.d.ts +6 -0
  500. package/dist/components/overflow-tooltip/index.d.ts +3 -0
  501. package/dist/components/overflow-tooltip/useOverflowTooltip.d.ts +6 -0
  502. package/dist/components/overflow-tooltip.d.ts +2 -0
  503. package/dist/components/overflow-tooltip.js +7 -0
  504. package/dist/components/overflow-tooltip.js.map +1 -0
  505. package/dist/components/overlay/Overlay.d.ts +45 -0
  506. package/dist/components/overlay/Overlay.stories.d.ts +6 -0
  507. package/dist/components/overlay/index.d.ts +1 -0
  508. package/dist/components/overlay.d.ts +2 -0
  509. package/dist/components/overlay.js +5 -0
  510. package/dist/components/overlay.js.map +1 -0
  511. package/dist/components/page-state/PageState.d.ts +8 -0
  512. package/dist/components/page-state/PageState.stories.d.ts +9 -0
  513. package/dist/components/page-state/components/PageStateAction.d.ts +14 -0
  514. package/dist/components/page-state/components/PageStateBoxSvg.d.ts +6 -0
  515. package/dist/components/page-state/components/PageStateButtonGroup.d.ts +3 -0
  516. package/dist/components/page-state/components/PageStateCancel.d.ts +14 -0
  517. package/dist/components/page-state/components/PageStateDescription.d.ts +8 -0
  518. package/dist/components/page-state/components/PageStateFeatureIcon.d.ts +7 -0
  519. package/dist/components/page-state/components/PageStateFolderSvg.d.ts +7 -0
  520. package/dist/components/page-state/components/PageStateTitle.d.ts +8 -0
  521. package/dist/components/page-state/context/PageStateContext.d.ts +12 -0
  522. package/dist/components/page-state/hooks/usePageStateButtonSize.d.ts +3 -0
  523. package/dist/components/page-state/index.d.ts +10 -0
  524. package/dist/components/page-state.d.ts +2 -0
  525. package/dist/components/page-state.js +173 -0
  526. package/dist/components/page-state.js.map +1 -0
  527. package/dist/components/popover/Popover.d.ts +31 -0
  528. package/dist/components/popover/Popover.stories.d.ts +24 -0
  529. package/dist/components/popover/index.d.ts +1 -0
  530. package/dist/components/popover.d.ts +2 -0
  531. package/dist/components/popover.js +9 -0
  532. package/dist/components/popover.js.map +1 -0
  533. package/dist/components/portal-container/PortalContainer.d.ts +10 -0
  534. package/dist/components/portal-container/index.d.ts +2 -0
  535. package/dist/components/portal-container/portalContainerEvents.d.ts +12 -0
  536. package/dist/components/portal-container/usePortalContainer.d.ts +10 -0
  537. package/dist/components/portal-container.d.ts +2 -0
  538. package/dist/components/portal-container.js +14 -0
  539. package/dist/components/portal-container.js.map +1 -0
  540. package/dist/components/progress/Progress.d.ts +15 -0
  541. package/dist/components/progress/Progress.stories.d.ts +9 -0
  542. package/dist/components/progress/ProgressBarStyles.d.ts +70 -0
  543. package/dist/components/progress/components/progress-icon/ProgressIcon.d.ts +5 -0
  544. package/dist/components/progress/components/progress-icon/ProgressIcon.stories.d.ts +6 -0
  545. package/dist/components/progress/components/progress-icon-button/ProgressIconButton.d.ts +5 -0
  546. package/dist/components/progress/components/progress-icon-button/ProgressIconButton.stories.d.ts +6 -0
  547. package/dist/components/progress/components/progress-text/ProgressText.d.ts +6 -0
  548. package/dist/components/progress/components/progress-text/ProgressText.stories.d.ts +6 -0
  549. package/dist/components/progress/index.d.ts +10 -0
  550. package/dist/components/progress/templates/ProgressBlockTemplate.d.ts +16 -0
  551. package/dist/components/progress/templates/ProgressBlockTemplate.stories.d.ts +7 -0
  552. package/dist/components/progress-circle/ProgressCircle.d.ts +186 -0
  553. package/dist/components/progress-circle/ProgressCircle.stories.d.ts +9 -0
  554. package/dist/components/progress-circle/components/progress-circle-description/ProgressCircleDescription.d.ts +5 -0
  555. package/dist/components/progress-circle/components/progress-circle-description/ProgressCircleDescription.stories.d.ts +6 -0
  556. package/dist/components/progress-circle/components/progress-circle-icon-button/ProgressCircleIconButton.d.ts +70 -0
  557. package/dist/components/progress-circle/components/progress-circle-icon-button/ProgressCircleIconButton.stories.d.ts +6 -0
  558. package/dist/components/progress-circle/components/progress-circle-text/ProgressCircleTitle.d.ts +56 -0
  559. package/dist/components/progress-circle/components/progress-circle-text/ProgressCircleTitle.stories.d.ts +6 -0
  560. package/dist/components/progress-circle/index.d.ts +5 -0
  561. package/dist/components/progress-circle/templates/ProgressCircleTemplate.d.ts +13 -0
  562. package/dist/components/progress-circle/templates/ProgressCircleTemplate.stories.d.ts +8 -0
  563. package/dist/components/progress-circle.d.ts +2 -0
  564. package/dist/components/progress-circle.js +187 -0
  565. package/dist/components/progress-circle.js.map +1 -0
  566. package/dist/components/progress.d.ts +2 -0
  567. package/dist/components/progress.js +262 -0
  568. package/dist/components/progress.js.map +1 -0
  569. package/dist/components/prose/Prose.d.ts +9 -0
  570. package/dist/components/prose/Prose.stories.d.ts +6 -0
  571. package/dist/components/prose/index.d.ts +1 -0
  572. package/dist/components/prose.d.ts +2 -0
  573. package/dist/components/prose.js +12 -0
  574. package/dist/components/prose.js.map +1 -0
  575. package/dist/components/radio-group/RadioGroup.d.ts +4 -0
  576. package/dist/components/radio-group/RadioGroup.stories.d.ts +11 -0
  577. package/dist/components/radio-group/components/RadioGroupItem.d.ts +43 -0
  578. package/dist/components/radio-group/index.d.ts +2 -0
  579. package/dist/components/radio-group.d.ts +2 -0
  580. package/dist/components/radio-group.js +271 -0
  581. package/dist/components/radio-group.js.map +1 -0
  582. package/dist/components/resizable/Resizable.d.ts +23 -0
  583. package/dist/components/resizable/Resizable.stories.d.ts +8 -0
  584. package/dist/components/resizable/index.d.ts +1 -0
  585. package/dist/components/resizable.d.ts +2 -0
  586. package/dist/components/resizable.js +1552 -0
  587. package/dist/components/resizable.js.map +1 -0
  588. package/dist/components/scheduler/components/day/Day.d.ts +4 -61
  589. package/dist/components/scheduler.js +1249 -1244
  590. package/dist/components/scheduler.js.map +1 -1
  591. package/dist/components/scroll-area/ScrollArea.d.ts +19 -2
  592. package/dist/components/scroll-area/ScrollArea.stories.d.ts +5 -2
  593. package/dist/components/scroll-area/index.d.ts +2 -0
  594. package/dist/components/scroll-area.d.ts +2 -0
  595. package/dist/components/scroll-area.js +6 -0
  596. package/dist/components/scroll-area.js.map +1 -0
  597. package/dist/components/scroll-shadow-container/ScrollShadowContainer.d.ts +2 -49
  598. package/dist/components/scroll-shadow-container/ScrollShadowContainer.stories.d.ts +1 -0
  599. package/dist/components/scroll-shadow-container/index.d.ts +1 -0
  600. package/dist/components/scroll-shadow-container.js +1 -1
  601. package/dist/components/search-select/async-search-select/AsyncSearchSelect.d.ts +2 -0
  602. package/dist/components/search-select/async-search-select/AsyncSearchSelect.stories.d.ts +20 -0
  603. package/dist/components/search-select/async-search-select/components/AsyncSearchSelectContent.d.ts +42 -0
  604. package/dist/components/search-select/async-search-select/components/AsyncSearchSelectPopoverContent.d.ts +7 -0
  605. package/dist/components/search-select/async-search-select/hooks/useAsyncDataLoader.d.ts +48 -0
  606. package/dist/components/search-select/async-search-select/types.d.ts +99 -0
  607. package/dist/components/search-select/components/SearchSelectPlaceholder.d.ts +7 -0
  608. package/dist/components/search-select/components/SearchSelectTag.d.ts +13 -0
  609. package/dist/components/search-select/components/SearchSelectTextValue.d.ts +7 -0
  610. package/dist/components/search-select/components/SearchSelectTrigger.d.ts +23 -0
  611. package/dist/components/search-select/index.d.ts +22 -0
  612. package/dist/components/search-select/multi-select/MultiSelect.d.ts +87 -0
  613. package/dist/components/search-select/multi-select/MultiSelect.stories.d.ts +18 -0
  614. package/dist/components/search-select/search-select/LazySearchSelect.d.ts +16 -0
  615. package/dist/components/search-select/search-select/LazySearchSelect.stories.d.ts +21 -0
  616. package/dist/components/search-select/search-select/SearchSelect.d.ts +80 -0
  617. package/dist/components/search-select/search-select/SearchSelect.stories.d.ts +16 -0
  618. package/dist/components/search-select/search-select/components/LoadMoreTrigger.d.ts +17 -0
  619. package/dist/components/search-select/search-select/components/SearchSelectContent.d.ts +10 -0
  620. package/dist/components/search-select/search-select/components/SearchSelectGroup.d.ts +12 -0
  621. package/dist/components/search-select/search-select/components/SearchSelectInput.d.ts +9 -0
  622. package/dist/components/search-select/search-select/components/SearchSelectSeparator.d.ts +12 -0
  623. package/dist/components/search-select/search-select/utils/fuzzyFilter.d.ts +9 -0
  624. package/dist/components/search-select.d.ts +2 -0
  625. package/dist/components/search-select.js +596 -0
  626. package/dist/components/search-select.js.map +1 -0
  627. package/dist/components/select/Select.d.ts +39 -27
  628. package/dist/components/select/Select.stories.d.ts +2 -0
  629. package/dist/components/select/components/SelectTriggerClearButton.d.ts +6 -0
  630. package/dist/components/select/index.d.ts +1 -1
  631. package/dist/components/select.js +14 -1032
  632. package/dist/components/select.js.map +1 -1
  633. package/dist/components/sheet/Sheet.d.ts +35 -0
  634. package/dist/components/sheet/Sheet.stories.d.ts +20 -0
  635. package/dist/components/sheet/index.d.ts +1 -0
  636. package/dist/components/sheet.d.ts +2 -0
  637. package/dist/components/sheet.js +14 -0
  638. package/dist/components/sheet.js.map +1 -0
  639. package/dist/components/shortcut/Shortcut.d.ts +8 -0
  640. package/dist/components/shortcut/Shortcut.stories.d.ts +22 -0
  641. package/dist/components/shortcut/index.d.ts +1 -0
  642. package/dist/components/shortcut.d.ts +2 -0
  643. package/dist/components/shortcut.js +5 -0
  644. package/dist/components/shortcut.js.map +1 -0
  645. package/dist/components/sidebar/Sidebar.d.ts +73 -0
  646. package/dist/components/sidebar/Sidebar.stories.d.ts +18 -0
  647. package/dist/components/sidebar/SidebarContext.d.ts +12 -0
  648. package/dist/components/sidebar/index.d.ts +3 -0
  649. package/dist/components/sidebar.d.ts +2 -0
  650. package/dist/components/sidebar.js +505 -0
  651. package/dist/components/sidebar.js.map +1 -0
  652. package/dist/components/skeleton/Skeleton.d.ts +6 -0
  653. package/dist/components/skeleton/Skeleton.stories.d.ts +9 -0
  654. package/dist/components/skeleton/index.d.ts +1 -0
  655. package/dist/components/skeleton.d.ts +2 -0
  656. package/dist/components/skeleton.js +5 -0
  657. package/dist/components/skeleton.js.map +1 -0
  658. package/dist/components/slider/Slider.d.ts +4 -0
  659. package/dist/components/slider/Slider.stories.d.ts +12 -0
  660. package/dist/components/slider/components/SliderRange.d.ts +4 -0
  661. package/dist/components/slider/components/SliderThumb.d.ts +4 -0
  662. package/dist/components/slider/components/SliderTrack.d.ts +4 -0
  663. package/dist/components/slider/index.d.ts +4 -0
  664. package/dist/components/slider.d.ts +2 -0
  665. package/dist/components/slider.js +458 -0
  666. package/dist/components/slider.js.map +1 -0
  667. package/dist/components/stepper/Stepper.d.ts +8 -0
  668. package/dist/components/stepper/Stepper.stories.d.ts +8 -0
  669. package/dist/components/stepper/StepperContext.d.ts +9 -0
  670. package/dist/components/stepper/components/stepper-description/StepperDescription.d.ts +1 -0
  671. package/dist/components/stepper/components/stepper-indicator/StepperIndicator.d.ts +4 -0
  672. package/dist/components/stepper/components/stepper-item/StepperItem.d.ts +7 -0
  673. package/dist/components/stepper/components/stepper-item/StepperItemContext.d.ts +11 -0
  674. package/dist/components/stepper/components/stepper-title/StepperTitle.d.ts +1 -0
  675. package/dist/components/stepper/components/stepper-trigger/StepperTrigger.d.ts +4 -0
  676. package/dist/components/stepper/index.d.ts +9 -0
  677. package/dist/components/stepper/stepper-separator/StepperSeparator.d.ts +1 -0
  678. package/dist/components/stepper.d.ts +2 -0
  679. package/dist/components/stepper.js +145 -0
  680. package/dist/components/stepper.js.map +1 -0
  681. package/dist/components/switch/Switch.d.ts +5 -180
  682. package/dist/components/switch/Switch.stories.d.ts +2 -90
  683. package/dist/components/switch/switch-field/SwitchField.d.ts +9 -315
  684. package/dist/components/switch/switch-field/SwitchField.stories.d.ts +4 -315
  685. package/dist/components/switch.js +139 -152
  686. package/dist/components/switch.js.map +1 -1
  687. package/dist/components/system-state/SystemState.d.ts +3 -0
  688. package/dist/components/system-state/SystemState.stories.d.ts +19 -0
  689. package/dist/components/system-state/components/SystemStateActions.d.ts +10 -0
  690. package/dist/components/system-state/components/SystemStateCode.d.ts +3 -0
  691. package/dist/components/system-state/components/SystemStateDescription.d.ts +3 -0
  692. package/dist/components/system-state/components/SystemStateTitle.d.ts +3 -0
  693. package/dist/components/system-state/index.d.ts +10 -0
  694. package/dist/components/system-state.d.ts +2 -0
  695. package/dist/components/system-state.js +51 -0
  696. package/dist/components/system-state.js.map +1 -0
  697. package/dist/components/table/Table.d.ts +18 -0
  698. package/dist/components/table/Table.stories.d.ts +15 -0
  699. package/dist/components/table/index.d.ts +1 -0
  700. package/dist/components/table.d.ts +2 -0
  701. package/dist/components/table.js +83 -0
  702. package/dist/components/table.js.map +1 -0
  703. package/dist/components/tabs/Tabs.d.ts +7 -0
  704. package/dist/components/tabs/Tabs.stories.d.ts +8 -0
  705. package/dist/components/tabs/index.d.ts +1 -0
  706. package/dist/components/tabs.d.ts +2 -0
  707. package/dist/components/tabs.js +178 -0
  708. package/dist/components/tabs.js.map +1 -0
  709. package/dist/components/tag/Tag.d.ts +59 -1103
  710. package/dist/components/tag/Tag.stories.d.ts +1 -0
  711. package/dist/components/tag/index.d.ts +1 -1
  712. package/dist/components/tag-input/TagInput.d.ts +42 -0
  713. package/dist/components/tag-input/TagInput.stories.d.ts +9 -0
  714. package/dist/components/tag-input/index.d.ts +2 -0
  715. package/dist/components/tag-input.d.ts +2 -0
  716. package/dist/components/tag-input.js +162 -0
  717. package/dist/components/tag-input.js.map +1 -0
  718. package/dist/components/tag.js +7 -188
  719. package/dist/components/tag.js.map +1 -1
  720. package/dist/components/text/Text.d.ts +9 -0
  721. package/dist/components/text/Text.stories.d.ts +24 -0
  722. package/dist/components/text/index.d.ts +1 -0
  723. package/dist/components/text.d.ts +2 -0
  724. package/dist/components/text.js +5 -0
  725. package/dist/components/text.js.map +1 -0
  726. package/dist/components/textarea/autogrow-textarea/AutogrowTextarea.d.ts +12 -0
  727. package/dist/components/textarea/autogrow-textarea/AutogrowTextarea.stories.d.ts +10 -0
  728. package/dist/components/textarea/index.d.ts +2 -0
  729. package/dist/components/textarea/textarea/Textarea.d.ts +14 -0
  730. package/dist/components/textarea/textarea/Textarea.stories.d.ts +7 -0
  731. package/dist/components/textarea.d.ts +2 -0
  732. package/dist/components/textarea.js +217 -0
  733. package/dist/components/textarea.js.map +1 -0
  734. package/dist/components/timer/Timer.d.ts +5 -0
  735. package/dist/components/timer/Timer.stories.d.ts +15 -0
  736. package/dist/components/timer/components/TimerUnit.d.ts +5 -0
  737. package/dist/components/timer/components/TimerValue.d.ts +5 -0
  738. package/dist/components/timer/index.d.ts +3 -0
  739. package/dist/components/timer.d.ts +2 -0
  740. package/dist/components/timer.js +23 -0
  741. package/dist/components/timer.js.map +1 -0
  742. package/dist/components/toast/Toast.d.ts +11 -3
  743. package/dist/components/toast/Toast.stories.d.ts +3 -0
  744. package/dist/components/toast/ToastView.d.ts +20 -401
  745. package/dist/components/toast/components/toast-action/ToastAction.d.ts +1 -0
  746. package/dist/components/toast/hooks/useToastContext.d.ts +1 -1
  747. package/dist/components/toast/index.d.ts +4 -1
  748. package/dist/components/toast.js +460 -470
  749. package/dist/components/toast.js.map +1 -1
  750. package/dist/components/toggle/Toggle.d.ts +52 -0
  751. package/dist/components/toggle/Toggle.stories.d.ts +8 -0
  752. package/dist/components/toggle/index.d.ts +1 -0
  753. package/dist/components/toggle-group/ToggleGroup.d.ts +6 -0
  754. package/dist/components/toggle-group/ToggleGroup.stories.d.ts +13 -0
  755. package/dist/components/toggle-group/index.d.ts +1 -0
  756. package/dist/components/toggle-group.d.ts +2 -0
  757. package/dist/components/toggle-group.js +37 -0
  758. package/dist/components/toggle-group.js.map +1 -0
  759. package/dist/components/toggle.d.ts +2 -0
  760. package/dist/components/toggle.js +5 -0
  761. package/dist/components/toggle.js.map +1 -0
  762. package/dist/components/toolbar/Toolbar.d.ts +52 -0
  763. package/dist/components/toolbar/Toolbar.stories.d.ts +22 -0
  764. package/dist/components/toolbar/ToolbarContext.d.ts +11 -0
  765. package/dist/components/toolbar/index.d.ts +2 -0
  766. package/dist/components/toolbar.d.ts +2 -0
  767. package/dist/components/toolbar.js +304 -0
  768. package/dist/components/toolbar.js.map +1 -0
  769. package/dist/components/tooltip/Tooltip.d.ts +34 -0
  770. package/dist/components/tooltip/Tooltip.stories.d.ts +20 -0
  771. package/dist/components/tooltip/index.d.ts +3 -0
  772. package/dist/components/tooltip/useTooltipContext.d.ts +6 -0
  773. package/dist/components/tooltip.d.ts +2 -0
  774. package/dist/components/tooltip.js +16 -0
  775. package/dist/components/tooltip.js.map +1 -0
  776. package/dist/createLucideIcon-DwBrHnj9.js +80 -0
  777. package/dist/{createLucideIcon-DgrNxRV5.js.map → createLucideIcon-DwBrHnj9.js.map} +1 -1
  778. package/dist/design-tokens.source.json +1 -1
  779. package/dist/download-BHsj218e.js +16 -0
  780. package/dist/download-BHsj218e.js.map +1 -0
  781. package/dist/examples/gramax/CloneRepository.stories.d.ts +5 -0
  782. package/dist/examples/gramax/NewStorage.stories.d.ts +5 -0
  783. package/dist/examples/quiz/QuizPage.stories.d.ts +6 -0
  784. package/dist/hooks/index.d.ts +2 -0
  785. package/dist/hooks/use-file-upload/errorMessages.d.ts +39 -0
  786. package/dist/hooks/use-file-upload/index.d.ts +3 -0
  787. package/dist/hooks/use-file-upload/useFileUpload.d.ts +81 -0
  788. package/dist/hooks/use-file-upload.d.ts +2 -0
  789. package/dist/hooks/use-file-upload.js +7 -0
  790. package/dist/hooks/use-file-upload.js.map +1 -0
  791. package/dist/hooks/useAutofill.d.ts +8 -0
  792. package/dist/hooks/useBreakpoints.d.ts +23 -0
  793. package/dist/hooks/useControllableState.d.ts +13 -0
  794. package/dist/hooks/useControlledValue.d.ts +10 -0
  795. package/dist/hooks/useCopyAction.d.ts +7 -0
  796. package/dist/hooks/useCustomValidity.d.ts +9 -0
  797. package/dist/hooks/useDataCache.d.ts +77 -0
  798. package/dist/hooks/useDebounce.d.ts +7 -0
  799. package/dist/hooks/useFileType.d.ts +4 -0
  800. package/dist/hooks/useInputWithActions.d.ts +32 -0
  801. package/dist/hooks/useItemsKeyboardNavigation.d.ts +56 -0
  802. package/dist/hooks/useSearchCache.test.d.ts +1 -0
  803. package/dist/hooks/useSearchSelect.d.ts +31 -0
  804. package/dist/hooks.d.ts +2 -0
  805. package/dist/hooks.js +14 -0
  806. package/dist/hooks.js.map +1 -0
  807. package/dist/image-BqL5JP90.js +16 -0
  808. package/dist/image-BqL5JP90.js.map +1 -0
  809. package/dist/index-0ioNhtNM.js +11 -0
  810. package/dist/index-0ioNhtNM.js.map +1 -0
  811. package/dist/index-437EL2iq.js +53 -0
  812. package/dist/index-437EL2iq.js.map +1 -0
  813. package/dist/index-BGQepRFJ.js +28 -0
  814. package/dist/index-BGQepRFJ.js.map +1 -0
  815. package/dist/index-BVqs-uqP.js +234 -0
  816. package/dist/index-BVqs-uqP.js.map +1 -0
  817. package/dist/index-BZPx6jYI.js.map +1 -1
  818. package/dist/index-Bb23HztA.js +33 -0
  819. package/dist/index-Bb23HztA.js.map +1 -0
  820. package/dist/index-BpWB3aFK.js +71 -0
  821. package/dist/index-BpWB3aFK.js.map +1 -0
  822. package/dist/index-BtQfgaSF.js +61 -0
  823. package/dist/index-BtQfgaSF.js.map +1 -0
  824. package/dist/index-ByaXH_ih.js +11 -0
  825. package/dist/index-ByaXH_ih.js.map +1 -0
  826. package/dist/index-BzCriPiK.js +671 -0
  827. package/dist/index-BzCriPiK.js.map +1 -0
  828. package/dist/index-CCKe-Mpx.js +7 -0
  829. package/dist/index-CCKe-Mpx.js.map +1 -0
  830. package/dist/index-CFaU3UXv.js +94 -0
  831. package/dist/index-CFaU3UXv.js.map +1 -0
  832. package/dist/index-CLuiUUQ8.js +137 -0
  833. package/dist/index-CLuiUUQ8.js.map +1 -0
  834. package/dist/index-CQD-Njgt.js +245 -0
  835. package/dist/index-CQD-Njgt.js.map +1 -0
  836. package/dist/index-CmBeyp2d.js +56 -0
  837. package/dist/index-CmBeyp2d.js.map +1 -0
  838. package/dist/index-DFZozV_h.js +69 -0
  839. package/dist/index-DFZozV_h.js.map +1 -0
  840. package/dist/index-DHsfW5Rj.js +49 -0
  841. package/dist/index-DHsfW5Rj.js.map +1 -0
  842. package/dist/index-DHyZ_0Ut.js +181 -0
  843. package/dist/index-DHyZ_0Ut.js.map +1 -0
  844. package/dist/index-DLcqcWxM.js +30 -0
  845. package/dist/index-DLcqcWxM.js.map +1 -0
  846. package/dist/index-DRo26PBK.js +1525 -0
  847. package/dist/index-DRo26PBK.js.map +1 -0
  848. package/dist/index-DnnQs07z.js +33 -0
  849. package/dist/index-DnnQs07z.js.map +1 -0
  850. package/dist/index-Uiy0Xwy2.js +32 -0
  851. package/dist/index-Uiy0Xwy2.js.map +1 -0
  852. package/dist/index-_ITz1IyW.js +144 -0
  853. package/dist/index-_ITz1IyW.js.map +1 -0
  854. package/dist/index-rKs9bXHr.js +7 -0
  855. package/dist/index-rKs9bXHr.js.map +1 -0
  856. package/dist/index-xqkGMOJ8.js +14 -0
  857. package/dist/index-xqkGMOJ8.js.map +1 -0
  858. package/dist/index.d.ts +2 -1
  859. package/dist/index.esm-CXA6i4d7.js +1282 -0
  860. package/dist/index.esm-CXA6i4d7.js.map +1 -0
  861. package/dist/index.js +53 -1
  862. package/dist/index.js.map +1 -1
  863. package/dist/inputBaseStyles-DbzD_jvq.js +34 -0
  864. package/dist/inputBaseStyles-DbzD_jvq.js.map +1 -0
  865. package/dist/lib/utils/cn.d.ts +2 -0
  866. package/dist/lib/utils/dom.d.ts +6 -0
  867. package/dist/lib/utils/file/downloadFile.d.ts +2 -0
  868. package/dist/lib/utils/file/formatBytes.d.ts +1 -0
  869. package/dist/lib/utils/formatCounterValue.d.ts +21 -0
  870. package/dist/lib/utils/image/imageConverter.d.ts +23 -0
  871. package/dist/lib/utils/index.d.ts +2 -0
  872. package/dist/lib/utils/storybook.d.ts +13 -2
  873. package/dist/lib/utils/styles.d.ts +9 -0
  874. package/dist/lib/utils/variants.d.ts +35 -0
  875. package/dist/lib/utils.d.ts +2 -2
  876. package/dist/lib/utils.js +25 -0
  877. package/dist/lib/utils.js.map +1 -0
  878. package/dist/loader-circle-D1YXTEGq.js +14 -0
  879. package/dist/loader-circle-D1YXTEGq.js.map +1 -0
  880. package/dist/minus-BltQa7Q2.js +12 -0
  881. package/dist/minus-BltQa7Q2.js.map +1 -0
  882. package/dist/normalizeDates-9A3c9WYM.js +32 -0
  883. package/dist/normalizeDates-9A3c9WYM.js.map +1 -0
  884. package/dist/providers/component-variant-context/ComponentVariantProvider.d.ts +30 -0
  885. package/dist/providers/component-variant-context/index.d.ts +1 -0
  886. package/dist/providers/component-variant-context.d.ts +2 -0
  887. package/dist/providers/component-variant-context.js +6 -0
  888. package/dist/providers/component-variant-context.js.map +1 -0
  889. package/dist/rotate-cw-tYRlcg0g.js +15 -0
  890. package/dist/rotate-cw-tYRlcg0g.js.map +1 -0
  891. package/dist/search-CDdgqSGg.js +15 -0
  892. package/dist/search-CDdgqSGg.js.map +1 -0
  893. package/dist/src/index.d.ts +2 -0
  894. package/dist/src/index.ts.js +7 -0
  895. package/dist/src/index.ts.js.map +1 -0
  896. package/dist/styles-scoped.css +4318 -420
  897. package/dist/styles.css +4313 -417
  898. package/dist/theme.css +329 -0
  899. package/dist/theme.d.ts +1 -0
  900. package/dist/useBreakpoints-D8wKOvil.js +103 -0
  901. package/dist/useBreakpoints-D8wKOvil.js.map +1 -0
  902. package/dist/useDebounce-BRah78CF.js +16 -0
  903. package/dist/useDebounce-BRah78CF.js.map +1 -0
  904. package/dist/useFileUpload-iDag0iqM.js +197 -0
  905. package/dist/useFileUpload-iDag0iqM.js.map +1 -0
  906. package/dist/useItemsKeyboardNavigation-CmeOR30y.js +62 -0
  907. package/dist/useItemsKeyboardNavigation-CmeOR30y.js.map +1 -0
  908. package/dist/useMergeRefs-qoKniYqT.js +19 -0
  909. package/dist/useMergeRefs-qoKniYqT.js.map +1 -0
  910. package/dist/usePortalContainer-ae6EzS08.js +39 -0
  911. package/dist/usePortalContainer-ae6EzS08.js.map +1 -0
  912. package/dist/vendors/date-fns/index.d.ts +19 -0
  913. package/dist/vendors/date-fns/locale/en-US/index.d.ts +1 -0
  914. package/dist/vendors/date-fns/locale/en-US.d.ts +2 -0
  915. package/dist/vendors/date-fns/locale/en-US.js +372 -0
  916. package/dist/vendors/date-fns/locale/en-US.js.map +1 -0
  917. package/dist/vendors/date-fns/locale/ru/index.d.ts +1 -0
  918. package/dist/vendors/date-fns/locale/ru.d.ts +2 -0
  919. package/dist/vendors/date-fns/locale/ru.js +569 -0
  920. package/dist/vendors/date-fns/locale/ru.js.map +1 -0
  921. package/dist/vendors/date-fns.d.ts +2 -0
  922. package/dist/vendors/date-fns.js +2 -0
  923. package/dist/vendors/date-fns.js.map +1 -0
  924. package/dist/vendors/react-day-picker/index.d.ts +22 -0
  925. package/dist/vendors/react-day-picker.d.ts +2 -0
  926. package/dist/vendors/react-day-picker.js +87 -0
  927. package/dist/vendors/react-day-picker.js.map +1 -0
  928. package/dist/vendors/react-hook-form/index.d.ts +21 -0
  929. package/dist/vendors/react-hook-form.d.ts +2 -0
  930. package/dist/vendors/react-hook-form.js +19 -0
  931. package/dist/vendors/react-hook-form.js.map +1 -0
  932. package/dist/vendors/tanstack/react-table/index.d.ts +1 -0
  933. package/dist/vendors/tanstack/react-table.d.ts +2 -0
  934. package/dist/vendors/tanstack/react-table.js +2090 -0
  935. package/dist/vendors/tanstack/react-table.js.map +1 -0
  936. package/dist/vendors/zod/index.d.ts +14 -0
  937. package/dist/vendors/zod.d.ts +2 -0
  938. package/dist/vendors/zod.js +3080 -0
  939. package/dist/vendors/zod.js.map +1 -0
  940. package/dist/x-tDTt7hTQ.js +15 -0
  941. package/dist/x-tDTt7hTQ.js.map +1 -0
  942. package/dist/zod-BMNoK3aM.js +75 -0
  943. package/dist/zod-BMNoK3aM.js.map +1 -0
  944. package/package.json +89 -23
  945. package/tailwind.preset.js +440 -0
  946. package/dist/Button-Cfe4WIYW.js +0 -57
  947. package/dist/Button-Cfe4WIYW.js.map +0 -1
  948. package/dist/ButtonBase-C8kakRHQ.js +0 -184
  949. package/dist/ButtonBase-C8kakRHQ.js.map +0 -1
  950. package/dist/CheckboxField-xt0Z5jab.js +0 -251
  951. package/dist/CheckboxField-xt0Z5jab.js.map +0 -1
  952. package/dist/Divider-6mgvOWE1.js +0 -57
  953. package/dist/Divider-6mgvOWE1.js.map +0 -1
  954. package/dist/FieldDescription-DCE2z2nv.js +0 -37
  955. package/dist/FieldDescription-DCE2z2nv.js.map +0 -1
  956. package/dist/FieldLabel--NVcQQhJ.js +0 -64
  957. package/dist/FieldLabel--NVcQQhJ.js.map +0 -1
  958. package/dist/Icon-CSPBHL_x.js +0 -19
  959. package/dist/Icon-CSPBHL_x.js.map +0 -1
  960. package/dist/IconButton-CTxOql_1.js +0 -55
  961. package/dist/IconButton-CTxOql_1.js.map +0 -1
  962. package/dist/ScrollShadowContainer-C4qXz8gc.js +0 -849
  963. package/dist/ScrollShadowContainer-C4qXz8gc.js.map +0 -1
  964. package/dist/components/background/Background.d.ts +0 -138
  965. package/dist/components/background/Background.stories.d.ts +0 -6
  966. package/dist/components/field-description/FieldDescription.d.ts +0 -4
  967. package/dist/components/input/secret-input/components/ShowValueToggler.d.ts +0 -7
  968. package/dist/components/modal/Modal.d.ts +0 -14
  969. package/dist/components/modal/Modal.stories.d.ts +0 -25
  970. package/dist/components/modal/components/body/ModalBody.d.ts +0 -2
  971. package/dist/components/modal/components/footer/ModalFooter.d.ts +0 -2
  972. package/dist/components/modal/components/header/ModalHeader.d.ts +0 -6
  973. package/dist/components/modal/index.d.ts +0 -6
  974. package/dist/components/modal/templates/header-template/ModalHeaderTemplate.d.ts +0 -210
  975. package/dist/components/modal.d.ts +0 -2
  976. package/dist/components/modal.js +0 -506
  977. package/dist/components/modal.js.map +0 -1
  978. package/dist/components/ui/tooltip.d.ts +0 -7
  979. package/dist/createLucideIcon-DgrNxRV5.js +0 -112
  980. package/dist/fonts/inter/InterVariable-Italic.ttf +0 -0
  981. package/dist/fonts/inter/InterVariable.ttf +0 -0
  982. package/dist/index-BA36kN2b.js +0 -76
  983. package/dist/index-BA36kN2b.js.map +0 -1
  984. package/dist/index-CImD85pK.js +0 -179
  985. package/dist/index-CImD85pK.js.map +0 -1
  986. package/dist/index-CR-odn5-.js +0 -2446
  987. package/dist/index-CR-odn5-.js.map +0 -1
  988. package/dist/index-CaGtfIqw.js +0 -163
  989. package/dist/index-CaGtfIqw.js.map +0 -1
  990. package/dist/index-CfJKNBxG.js +0 -698
  991. package/dist/index-CfJKNBxG.js.map +0 -1
  992. package/dist/index-DPws5oAn.js +0 -90
  993. package/dist/index-DPws5oAn.js.map +0 -1
  994. package/dist/index-DsEh1WRc.js +0 -1586
  995. package/dist/index-DsEh1WRc.js.map +0 -1
  996. package/dist/index-pysSAa5G.js +0 -57
  997. package/dist/index-pysSAa5G.js.map +0 -1
  998. package/dist/tooltip-CYQMPCEj.js +0 -365
  999. package/dist/tooltip-CYQMPCEj.js.map +0 -1
  1000. package/dist/utils-2yE78m5l.js.map +0 -1
  1001. /package/dist/components/{field-description/FieldDescription.stories.d.ts → banner/components/banner-description/BannerDescription.stories.d.ts} +0 -0
@@ -1,102 +1,65 @@
1
- var sr = Object.defineProperty, ar = Object.defineProperties;
2
- var lr = Object.getOwnPropertyDescriptors;
3
- var Zt = Object.getOwnPropertySymbols;
4
- var rn = Object.prototype.hasOwnProperty, on = Object.prototype.propertyIsEnumerable;
5
- var De = Math.pow, nn = (t, e, n) => e in t ? sr(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, m = (t, e) => {
6
- for (var n in e || (e = {}))
7
- rn.call(e, n) && nn(t, n, e[n]);
8
- if (Zt)
9
- for (var n of Zt(e))
10
- on.call(e, n) && nn(t, n, e[n]);
11
- return t;
12
- }, M = (t, e) => ar(t, lr(e));
13
- var te = (t, e) => {
14
- var n = {};
15
- for (var r in t)
16
- rn.call(t, r) && e.indexOf(r) < 0 && (n[r] = t[r]);
17
- if (t != null && Zt)
18
- for (var r of Zt(t))
19
- e.indexOf(r) < 0 && on.call(t, r) && (n[r] = t[r]);
20
- return n;
21
- };
22
- var sn = (t, e, n) => new Promise((r, i) => {
23
- var o = (l) => {
24
- try {
25
- s(n.next(l));
26
- } catch (c) {
27
- i(c);
28
- }
29
- }, a = (l) => {
30
- try {
31
- s(n.throw(l));
32
- } catch (c) {
33
- i(c);
34
- }
35
- }, s = (l) => l.done ? r(l.value) : Promise.resolve(l.value).then(o, a);
36
- s((n = n.apply(t, e)).next());
37
- });
38
- import { jsx as D, jsxs as bt } from "react/jsx-runtime";
39
- import { T as cr } from "../tooltip-CYQMPCEj.js";
40
- import B, { useLayoutEffect as ur, useEffect as k, useRef as O, useMemo as E, useCallback as L, useState as $, memo as Mn, useReducer as dr, createContext as Tt, useContext as mt, forwardRef as hr, cloneElement as fr, PureComponent as pr } from "react";
41
- import { c as ut } from "../index-CR-odn5-.js";
42
- import { unstable_batchedUpdates as ee, createPortal as gr, flushSync as vr } from "react-dom";
43
- const fe = typeof window != "undefined" && typeof window.document != "undefined" && typeof window.document.createElement != "undefined";
44
- function At(t) {
1
+ import { jsx as D, jsxs as gt } from "react/jsx-runtime";
2
+ import k, { useLayoutEffect as qn, useEffect as O, useRef as T, useMemo as C, useCallback as A, useState as j, memo as mn, useReducer as Jn, createContext as Mt, useContext as vt, forwardRef as Qn, cloneElement as Zn, PureComponent as tr } from "react";
3
+ import { T as lt } from "../index-BVqs-uqP.js";
4
+ import { unstable_batchedUpdates as Jt, createPortal as er, flushSync as nr } from "react-dom";
5
+ import { a as rr } from "../Tooltip-C4rVuWr4.js";
6
+ const ce = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u";
7
+ function Nt(t) {
45
8
  const e = Object.prototype.toString.call(t);
46
9
  return e === "[object Window]" || // In Electron context the Window object serializes to [object global]
47
10
  e === "[object global]";
48
11
  }
49
- function Le(t) {
12
+ function Me(t) {
50
13
  return "nodeType" in t;
51
14
  }
52
- function G(t) {
15
+ function U(t) {
53
16
  var e, n;
54
- return t ? At(t) ? t : Le(t) && (e = (n = t.ownerDocument) == null ? void 0 : n.defaultView) != null ? e : window : window;
17
+ return t ? Nt(t) ? t : Me(t) && (e = (n = t.ownerDocument) == null ? void 0 : n.defaultView) != null ? e : window : window;
55
18
  }
56
- function ke(t) {
19
+ function Ne(t) {
57
20
  const {
58
21
  Document: e
59
- } = G(t);
22
+ } = U(t);
60
23
  return t instanceof e;
61
24
  }
62
- function $t(t) {
63
- return At(t) ? !1 : t instanceof G(t).HTMLElement;
25
+ function jt(t) {
26
+ return Nt(t) ? !1 : t instanceof U(t).HTMLElement;
64
27
  }
65
- function Nn(t) {
66
- return t instanceof G(t).SVGElement;
28
+ function wn(t) {
29
+ return t instanceof U(t).SVGElement;
67
30
  }
68
- function Ot(t) {
69
- return t ? At(t) ? t.document : Le(t) ? ke(t) ? t : $t(t) || Nn(t) ? t.ownerDocument : document : document : document;
31
+ function Tt(t) {
32
+ return t ? Nt(t) ? t.document : Me(t) ? Ne(t) ? t : jt(t) || wn(t) ? t.ownerDocument : document : document : document;
70
33
  }
71
- const ct = fe ? ur : k;
72
- function pe(t) {
73
- const e = O(t);
74
- return ct(() => {
34
+ const at = ce ? qn : O;
35
+ function ue(t) {
36
+ const e = T(t);
37
+ return at(() => {
75
38
  e.current = t;
76
- }), L(function() {
39
+ }), A(function() {
77
40
  for (var n = arguments.length, r = new Array(n), i = 0; i < n; i++)
78
41
  r[i] = arguments[i];
79
42
  return e.current == null ? void 0 : e.current(...r);
80
43
  }, []);
81
44
  }
82
- function br() {
83
- const t = O(null), e = L((r, i) => {
45
+ function ir() {
46
+ const t = T(null), e = A((r, i) => {
84
47
  t.current = setInterval(r, i);
85
- }, []), n = L(() => {
48
+ }, []), n = A(() => {
86
49
  t.current !== null && (clearInterval(t.current), t.current = null);
87
50
  }, []);
88
51
  return [e, n];
89
52
  }
90
- function Ft(t, e) {
53
+ function Ht(t, e) {
91
54
  e === void 0 && (e = [t]);
92
- const n = O(t);
93
- return ct(() => {
55
+ const n = T(t);
56
+ return at(() => {
94
57
  n.current !== t && (n.current = t);
95
58
  }, e), n;
96
59
  }
97
- function Xt(t, e) {
98
- const n = O();
99
- return E(
60
+ function Yt(t, e) {
61
+ const n = T();
62
+ return C(
100
63
  () => {
101
64
  const r = t(n.current);
102
65
  return n.current = r, r;
@@ -105,32 +68,32 @@ function Xt(t, e) {
105
68
  [...e]
106
69
  );
107
70
  }
108
- function ae(t) {
109
- const e = pe(t), n = O(null), r = L(
71
+ function re(t) {
72
+ const e = ue(t), n = T(null), r = A(
110
73
  (i) => {
111
- i !== n.current && (e == null || e(i, n.current)), n.current = i;
74
+ i !== n.current && e?.(i, n.current), n.current = i;
112
75
  },
113
76
  //eslint-disable-next-line
114
77
  []
115
78
  );
116
79
  return [n, r];
117
80
  }
118
- function le(t) {
119
- const e = O();
120
- return k(() => {
81
+ function ie(t) {
82
+ const e = T();
83
+ return O(() => {
121
84
  e.current = t;
122
85
  }, [t]), e.current;
123
86
  }
124
- let Re = {};
125
- function ge(t, e) {
126
- return E(() => {
87
+ let we = {};
88
+ function de(t, e) {
89
+ return C(() => {
127
90
  if (e)
128
91
  return e;
129
- const n = Re[t] == null ? 0 : Re[t] + 1;
130
- return Re[t] = n, t + "-" + n;
92
+ const n = we[t] == null ? 0 : we[t] + 1;
93
+ return we[t] = n, t + "-" + n;
131
94
  }, [t, e]);
132
95
  }
133
- function Tn(t) {
96
+ function yn(t) {
134
97
  return function(e) {
135
98
  for (var n = arguments.length, r = new Array(n > 1 ? n - 1 : 0), i = 1; i < n; i++)
136
99
  r[i - 1] = arguments[i];
@@ -141,31 +104,33 @@ function Tn(t) {
141
104
  d != null && (o[l] = d + t * c);
142
105
  }
143
106
  return o;
144
- }, m({}, e));
107
+ }, {
108
+ ...e
109
+ });
145
110
  };
146
111
  }
147
- const Nt = /* @__PURE__ */ Tn(1), ce = /* @__PURE__ */ Tn(-1);
148
- function mr(t) {
112
+ const Et = /* @__PURE__ */ yn(1), oe = /* @__PURE__ */ yn(-1);
113
+ function or(t) {
149
114
  return "clientX" in t && "clientY" in t;
150
115
  }
151
- function Pe(t) {
116
+ function Te(t) {
152
117
  if (!t)
153
118
  return !1;
154
119
  const {
155
120
  KeyboardEvent: e
156
- } = G(t.target);
121
+ } = U(t.target);
157
122
  return e && t instanceof e;
158
123
  }
159
- function wr(t) {
124
+ function sr(t) {
160
125
  if (!t)
161
126
  return !1;
162
127
  const {
163
128
  TouchEvent: e
164
- } = G(t.target);
129
+ } = U(t.target);
165
130
  return e && t instanceof e;
166
131
  }
167
- function ue(t) {
168
- if (wr(t)) {
132
+ function se(t) {
133
+ if (sr(t)) {
169
134
  if (t.touches && t.touches.length) {
170
135
  const {
171
136
  clientX: e,
@@ -186,12 +151,12 @@ function ue(t) {
186
151
  };
187
152
  }
188
153
  }
189
- return mr(t) ? {
154
+ return or(t) ? {
190
155
  x: t.clientX,
191
156
  y: t.clientY
192
157
  } : null;
193
158
  }
194
- const jt = /* @__PURE__ */ Object.freeze({
159
+ const _t = /* @__PURE__ */ Object.freeze({
195
160
  Translate: {
196
161
  toString(t) {
197
162
  if (!t)
@@ -217,7 +182,7 @@ const jt = /* @__PURE__ */ Object.freeze({
217
182
  Transform: {
218
183
  toString(t) {
219
184
  if (t)
220
- return [jt.Translate.toString(t), jt.Scale.toString(t)].join(" ");
185
+ return [_t.Translate.toString(t), _t.Scale.toString(t)].join(" ");
221
186
  }
222
187
  },
223
188
  Transition: {
@@ -230,24 +195,24 @@ const jt = /* @__PURE__ */ Object.freeze({
230
195
  return e + " " + n + "ms " + r;
231
196
  }
232
197
  }
233
- }), an = "a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";
234
- function yr(t) {
235
- return t.matches(an) ? t : t.querySelector(an);
198
+ }), qe = "a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";
199
+ function ar(t) {
200
+ return t.matches(qe) ? t : t.querySelector(qe);
236
201
  }
237
- const xr = {
202
+ const lr = {
238
203
  display: "none"
239
204
  };
240
- function Sr(t) {
205
+ function cr(t) {
241
206
  let {
242
207
  id: e,
243
208
  value: n
244
209
  } = t;
245
- return B.createElement("div", {
210
+ return k.createElement("div", {
246
211
  id: e,
247
- style: xr
212
+ style: lr
248
213
  }, n);
249
214
  }
250
- function Dr(t) {
215
+ function ur(t) {
251
216
  let {
252
217
  id: e,
253
218
  announcement: n,
@@ -267,7 +232,7 @@ function Dr(t) {
267
232
  clipPath: "inset(100%)",
268
233
  whiteSpace: "nowrap"
269
234
  };
270
- return B.createElement("div", {
235
+ return k.createElement("div", {
271
236
  id: e,
272
237
  style: i,
273
238
  role: "status",
@@ -275,27 +240,27 @@ function Dr(t) {
275
240
  "aria-atomic": !0
276
241
  }, n);
277
242
  }
278
- function Rr() {
279
- const [t, e] = $("");
243
+ function dr() {
244
+ const [t, e] = j("");
280
245
  return {
281
- announce: L((r) => {
246
+ announce: A((r) => {
282
247
  r != null && e(r);
283
248
  }, []),
284
249
  announcement: t
285
250
  };
286
251
  }
287
- const An = /* @__PURE__ */ Tt(null);
288
- function Cr(t) {
289
- const e = mt(An);
290
- k(() => {
252
+ const xn = /* @__PURE__ */ Mt(null);
253
+ function hr(t) {
254
+ const e = vt(xn);
255
+ O(() => {
291
256
  if (!e)
292
257
  throw new Error("useDndMonitor must be used within a children of <DndContext>");
293
258
  return e(t);
294
259
  }, [t, e]);
295
260
  }
296
- function zr() {
297
- const [t] = $(() => /* @__PURE__ */ new Set()), e = L((r) => (t.add(r), () => t.delete(r)), [t]);
298
- return [L((r) => {
261
+ function fr() {
262
+ const [t] = j(() => /* @__PURE__ */ new Set()), e = A((r) => (t.add(r), () => t.delete(r)), [t]);
263
+ return [A((r) => {
299
264
  let {
300
265
  type: i,
301
266
  event: o
@@ -306,13 +271,13 @@ function zr() {
306
271
  });
307
272
  }, [t]), e];
308
273
  }
309
- const Er = {
274
+ const pr = {
310
275
  draggable: `
311
276
  To pick up a draggable item, press the space bar.
312
277
  While dragging, use the arrow keys to move the item.
313
278
  Press space again to drop the item in its new position, or press escape to cancel.
314
279
  `
315
- }, Mr = {
280
+ }, gr = {
316
281
  onDragStart(t) {
317
282
  let {
318
283
  active: e
@@ -340,110 +305,110 @@ const Er = {
340
305
  return "Dragging was cancelled. Draggable item " + e.id + " was dropped.";
341
306
  }
342
307
  };
343
- function Nr(t) {
308
+ function vr(t) {
344
309
  let {
345
- announcements: e = Mr,
310
+ announcements: e = gr,
346
311
  container: n,
347
312
  hiddenTextDescribedById: r,
348
- screenReaderInstructions: i = Er
313
+ screenReaderInstructions: i = pr
349
314
  } = t;
350
315
  const {
351
316
  announce: o,
352
317
  announcement: a
353
- } = Rr(), s = ge("DndLiveRegion"), [l, c] = $(!1);
354
- if (k(() => {
318
+ } = dr(), s = de("DndLiveRegion"), [l, c] = j(!1);
319
+ if (O(() => {
355
320
  c(!0);
356
- }, []), Cr(E(() => ({
321
+ }, []), hr(C(() => ({
357
322
  onDragStart(u) {
358
323
  let {
359
- active: h
324
+ active: f
360
325
  } = u;
361
326
  o(e.onDragStart({
362
- active: h
327
+ active: f
363
328
  }));
364
329
  },
365
330
  onDragMove(u) {
366
331
  let {
367
- active: h,
332
+ active: f,
368
333
  over: p
369
334
  } = u;
370
335
  e.onDragMove && o(e.onDragMove({
371
- active: h,
336
+ active: f,
372
337
  over: p
373
338
  }));
374
339
  },
375
340
  onDragOver(u) {
376
341
  let {
377
- active: h,
342
+ active: f,
378
343
  over: p
379
344
  } = u;
380
345
  o(e.onDragOver({
381
- active: h,
346
+ active: f,
382
347
  over: p
383
348
  }));
384
349
  },
385
350
  onDragEnd(u) {
386
351
  let {
387
- active: h,
352
+ active: f,
388
353
  over: p
389
354
  } = u;
390
355
  o(e.onDragEnd({
391
- active: h,
356
+ active: f,
392
357
  over: p
393
358
  }));
394
359
  },
395
360
  onDragCancel(u) {
396
361
  let {
397
- active: h,
362
+ active: f,
398
363
  over: p
399
364
  } = u;
400
365
  o(e.onDragCancel({
401
- active: h,
366
+ active: f,
402
367
  over: p
403
368
  }));
404
369
  }
405
370
  }), [o, e])), !l)
406
371
  return null;
407
- const d = B.createElement(B.Fragment, null, B.createElement(Sr, {
372
+ const d = k.createElement(k.Fragment, null, k.createElement(cr, {
408
373
  id: r,
409
374
  value: i.draggable
410
- }), B.createElement(Dr, {
375
+ }), k.createElement(ur, {
411
376
  id: s,
412
377
  announcement: a
413
378
  }));
414
- return n ? gr(d, n) : d;
379
+ return n ? er(d, n) : d;
415
380
  }
416
- var _;
381
+ var I;
417
382
  (function(t) {
418
383
  t.DragStart = "dragStart", t.DragMove = "dragMove", t.DragEnd = "dragEnd", t.DragCancel = "dragCancel", t.DragOver = "dragOver", t.RegisterDroppable = "registerDroppable", t.SetDroppableDisabled = "setDroppableDisabled", t.UnregisterDroppable = "unregisterDroppable";
419
- })(_ || (_ = {}));
420
- function de() {
384
+ })(I || (I = {}));
385
+ function ae() {
421
386
  }
422
- function ln(t, e) {
423
- return E(
387
+ function Je(t, e) {
388
+ return C(
424
389
  () => ({
425
390
  sensor: t,
426
- options: e != null ? e : {}
391
+ options: e ?? {}
427
392
  }),
428
393
  // eslint-disable-next-line react-hooks/exhaustive-deps
429
394
  [t, e]
430
395
  );
431
396
  }
432
- function Tr() {
397
+ function br() {
433
398
  for (var t = arguments.length, e = new Array(t), n = 0; n < t; n++)
434
399
  e[n] = arguments[n];
435
- return E(
400
+ return C(
436
401
  () => [...e].filter((r) => r != null),
437
402
  // eslint-disable-next-line react-hooks/exhaustive-deps
438
403
  [...e]
439
404
  );
440
405
  }
441
- const rt = /* @__PURE__ */ Object.freeze({
406
+ const et = /* @__PURE__ */ Object.freeze({
442
407
  x: 0,
443
408
  y: 0
444
409
  });
445
- function Ar(t, e) {
446
- const n = ue(t);
410
+ function mr(t, e) {
411
+ const n = se(t);
447
412
  if (!n)
448
413
  return "0 0";
449
414
  const r = {
@@ -452,7 +417,7 @@ function Ar(t, e) {
452
417
  };
453
418
  return r.x + "% " + r.y + "%";
454
419
  }
455
- function Or(t, e) {
420
+ function wr(t, e) {
456
421
  let {
457
422
  data: {
458
423
  value: n
@@ -464,13 +429,13 @@ function Or(t, e) {
464
429
  } = e;
465
430
  return r - n;
466
431
  }
467
- function Lr(t, e) {
432
+ function yr(t, e) {
468
433
  if (!t || t.length === 0)
469
434
  return null;
470
435
  const [n] = t;
471
436
  return n[e];
472
437
  }
473
- function kr(t, e) {
438
+ function xr(t, e) {
474
439
  const n = Math.max(e.top, t.top), r = Math.max(e.left, t.left), i = Math.min(e.left + e.width, t.left + t.width), o = Math.min(e.top + e.height, t.top + t.height), a = i - r, s = o - n;
475
440
  if (r < i && n < o) {
476
441
  const l = e.width * e.height, c = t.width * t.height, d = a * s, u = d / (l + c - d);
@@ -478,7 +443,7 @@ function kr(t, e) {
478
443
  }
479
444
  return 0;
480
445
  }
481
- const Pr = (t) => {
446
+ const Dr = (t) => {
482
447
  let {
483
448
  collisionRect: e,
484
449
  droppableRects: n,
@@ -490,7 +455,7 @@ const Pr = (t) => {
490
455
  id: a
491
456
  } = o, s = n.get(a);
492
457
  if (s) {
493
- const l = kr(s, e);
458
+ const l = xr(s, e);
494
459
  l > 0 && i.push({
495
460
  id: a,
496
461
  data: {
@@ -500,34 +465,38 @@ const Pr = (t) => {
500
465
  });
501
466
  }
502
467
  }
503
- return i.sort(Or);
468
+ return i.sort(wr);
504
469
  };
505
- function Br(t, e, n) {
506
- return M(m({}, t), {
470
+ function Sr(t, e, n) {
471
+ return {
472
+ ...t,
507
473
  scaleX: e && n ? e.width / n.width : 1,
508
474
  scaleY: e && n ? e.height / n.height : 1
509
- });
475
+ };
510
476
  }
511
- function On(t, e) {
477
+ function Dn(t, e) {
512
478
  return t && e ? {
513
479
  x: t.left - e.left,
514
480
  y: t.top - e.top
515
- } : rt;
481
+ } : et;
516
482
  }
517
- function Wr(t) {
483
+ function Rr(t) {
518
484
  return function(n) {
519
485
  for (var r = arguments.length, i = new Array(r > 1 ? r - 1 : 0), o = 1; o < r; o++)
520
486
  i[o - 1] = arguments[o];
521
- return i.reduce((a, s) => M(m({}, a), {
487
+ return i.reduce((a, s) => ({
488
+ ...a,
522
489
  top: a.top + t * s.y,
523
490
  bottom: a.bottom + t * s.y,
524
491
  left: a.left + t * s.x,
525
492
  right: a.right + t * s.x
526
- }), m({}, n));
493
+ }), {
494
+ ...n
495
+ });
527
496
  };
528
497
  }
529
- const Ir = /* @__PURE__ */ Wr(1);
530
- function Ln(t) {
498
+ const Cr = /* @__PURE__ */ Rr(1);
499
+ function Sn(t) {
531
500
  if (t.startsWith("matrix3d(")) {
532
501
  const e = t.slice(9, -1).split(/, /);
533
502
  return {
@@ -547,8 +516,8 @@ function Ln(t) {
547
516
  }
548
517
  return null;
549
518
  }
550
- function Hr(t, e, n) {
551
- const r = Ln(e);
519
+ function zr(t, e, n) {
520
+ const r = Sn(e);
552
521
  if (!r)
553
522
  return t;
554
523
  const {
@@ -566,18 +535,18 @@ function Hr(t, e, n) {
566
535
  left: l
567
536
  };
568
537
  }
569
- const _r = {
538
+ const Er = {
570
539
  ignoreTransform: !1
571
540
  };
572
- function Ut(t, e) {
573
- e === void 0 && (e = _r);
541
+ function $t(t, e) {
542
+ e === void 0 && (e = Er);
574
543
  let n = t.getBoundingClientRect();
575
544
  if (e.ignoreTransform) {
576
545
  const {
577
546
  transform: c,
578
547
  transformOrigin: d
579
- } = G(t).getComputedStyle(t);
580
- c && (n = Hr(n, c, d));
548
+ } = U(t).getComputedStyle(t);
549
+ c && (n = zr(n, c, d));
581
550
  }
582
551
  const {
583
552
  top: r,
@@ -596,12 +565,12 @@ function Ut(t, e) {
596
565
  right: l
597
566
  };
598
567
  }
599
- function cn(t) {
600
- return Ut(t, {
568
+ function Qe(t) {
569
+ return $t(t, {
601
570
  ignoreTransform: !0
602
571
  });
603
572
  }
604
- function Fr(t) {
573
+ function Mr(t) {
605
574
  const e = t.innerWidth, n = t.innerHeight;
606
575
  return {
607
576
  top: 0,
@@ -612,62 +581,62 @@ function Fr(t) {
612
581
  height: n
613
582
  };
614
583
  }
615
- function jr(t, e) {
616
- return e === void 0 && (e = G(t).getComputedStyle(t)), e.position === "fixed";
584
+ function Nr(t, e) {
585
+ return e === void 0 && (e = U(t).getComputedStyle(t)), e.position === "fixed";
617
586
  }
618
- function Yr(t, e) {
619
- e === void 0 && (e = G(t).getComputedStyle(t));
587
+ function Tr(t, e) {
588
+ e === void 0 && (e = U(t).getComputedStyle(t));
620
589
  const n = /(auto|scroll|overlay)/;
621
590
  return ["overflow", "overflowX", "overflowY"].some((i) => {
622
591
  const o = e[i];
623
592
  return typeof o == "string" ? n.test(o) : !1;
624
593
  });
625
594
  }
626
- function Be(t, e) {
595
+ function Ae(t, e) {
627
596
  const n = [];
628
597
  function r(i) {
629
598
  if (e != null && n.length >= e || !i)
630
599
  return n;
631
- if (ke(i) && i.scrollingElement != null && !n.includes(i.scrollingElement))
600
+ if (Ne(i) && i.scrollingElement != null && !n.includes(i.scrollingElement))
632
601
  return n.push(i.scrollingElement), n;
633
- if (!$t(i) || Nn(i) || n.includes(i))
602
+ if (!jt(i) || wn(i) || n.includes(i))
634
603
  return n;
635
- const o = G(t).getComputedStyle(i);
636
- return i !== t && Yr(i, o) && n.push(i), jr(i, o) ? n : r(i.parentNode);
604
+ const o = U(t).getComputedStyle(i);
605
+ return i !== t && Tr(i, o) && n.push(i), Nr(i, o) ? n : r(i.parentNode);
637
606
  }
638
607
  return t ? r(t) : n;
639
608
  }
640
- function kn(t) {
641
- const [e] = Be(t, 1);
642
- return e != null ? e : null;
609
+ function Rn(t) {
610
+ const [e] = Ae(t, 1);
611
+ return e ?? null;
643
612
  }
644
- function Ce(t) {
645
- return !fe || !t ? null : At(t) ? t : Le(t) ? ke(t) || t === Ot(t).scrollingElement ? window : $t(t) ? t : null : null;
613
+ function ye(t) {
614
+ return !ce || !t ? null : Nt(t) ? t : Me(t) ? Ne(t) || t === Tt(t).scrollingElement ? window : jt(t) ? t : null : null;
646
615
  }
647
- function Pn(t) {
648
- return At(t) ? t.scrollX : t.scrollLeft;
616
+ function Cn(t) {
617
+ return Nt(t) ? t.scrollX : t.scrollLeft;
649
618
  }
650
- function Bn(t) {
651
- return At(t) ? t.scrollY : t.scrollTop;
619
+ function zn(t) {
620
+ return Nt(t) ? t.scrollY : t.scrollTop;
652
621
  }
653
- function Ne(t) {
622
+ function Re(t) {
654
623
  return {
655
- x: Pn(t),
656
- y: Bn(t)
624
+ x: Cn(t),
625
+ y: zn(t)
657
626
  };
658
627
  }
659
- var j;
628
+ var _;
660
629
  (function(t) {
661
630
  t[t.Forward = 1] = "Forward", t[t.Backward = -1] = "Backward";
662
- })(j || (j = {}));
663
- function Wn(t) {
664
- return !fe || !t ? !1 : t === document.scrollingElement;
631
+ })(_ || (_ = {}));
632
+ function En(t) {
633
+ return !ce || !t ? !1 : t === document.scrollingElement;
665
634
  }
666
- function In(t) {
635
+ function Mn(t) {
667
636
  const e = {
668
637
  x: 0,
669
638
  y: 0
670
- }, n = Wn(t) ? {
639
+ }, n = En(t) ? {
671
640
  height: window.innerHeight,
672
641
  width: window.innerWidth
673
642
  } : {
@@ -686,39 +655,39 @@ function In(t) {
686
655
  minScroll: e
687
656
  };
688
657
  }
689
- const $r = {
658
+ const Ar = {
690
659
  x: 0.2,
691
660
  y: 0.2
692
661
  };
693
- function Xr(t, e, n, r, i) {
662
+ function Or(t, e, n, r, i) {
694
663
  let {
695
664
  top: o,
696
665
  left: a,
697
666
  right: s,
698
667
  bottom: l
699
668
  } = n;
700
- r === void 0 && (r = 10), i === void 0 && (i = $r);
669
+ r === void 0 && (r = 10), i === void 0 && (i = Ar);
701
670
  const {
702
671
  isTop: c,
703
672
  isBottom: d,
704
673
  isLeft: u,
705
- isRight: h
706
- } = In(t), p = {
674
+ isRight: f
675
+ } = Mn(t), p = {
707
676
  x: 0,
708
677
  y: 0
709
678
  }, b = {
710
679
  x: 0,
711
680
  y: 0
712
- }, f = {
681
+ }, h = {
713
682
  height: e.height * i.y,
714
683
  width: e.width * i.x
715
684
  };
716
- return !c && o <= e.top + f.height ? (p.y = j.Backward, b.y = r * Math.abs((e.top + f.height - o) / f.height)) : !d && l >= e.bottom - f.height && (p.y = j.Forward, b.y = r * Math.abs((e.bottom - f.height - l) / f.height)), !h && s >= e.right - f.width ? (p.x = j.Forward, b.x = r * Math.abs((e.right - f.width - s) / f.width)) : !u && a <= e.left + f.width && (p.x = j.Backward, b.x = r * Math.abs((e.left + f.width - a) / f.width)), {
685
+ return !c && o <= e.top + h.height ? (p.y = _.Backward, b.y = r * Math.abs((e.top + h.height - o) / h.height)) : !d && l >= e.bottom - h.height && (p.y = _.Forward, b.y = r * Math.abs((e.bottom - h.height - l) / h.height)), !f && s >= e.right - h.width ? (p.x = _.Forward, b.x = r * Math.abs((e.right - h.width - s) / h.width)) : !u && a <= e.left + h.width && (p.x = _.Backward, b.x = r * Math.abs((e.left + h.width - a) / h.width)), {
717
686
  direction: p,
718
687
  speed: b
719
688
  };
720
689
  }
721
- function Ur(t) {
690
+ function Lr(t) {
722
691
  if (t === document.scrollingElement) {
723
692
  const {
724
693
  innerWidth: o,
@@ -748,17 +717,17 @@ function Ur(t) {
748
717
  height: t.clientHeight
749
718
  };
750
719
  }
751
- function Hn(t) {
752
- return t.reduce((e, n) => Nt(e, Ne(n)), rt);
720
+ function Nn(t) {
721
+ return t.reduce((e, n) => Et(e, Re(n)), et);
753
722
  }
754
- function Kr(t) {
755
- return t.reduce((e, n) => e + Pn(n), 0);
723
+ function kr(t) {
724
+ return t.reduce((e, n) => e + Cn(n), 0);
756
725
  }
757
- function Gr(t) {
758
- return t.reduce((e, n) => e + Bn(n), 0);
726
+ function Pr(t) {
727
+ return t.reduce((e, n) => e + zn(n), 0);
759
728
  }
760
- function _n(t, e) {
761
- if (e === void 0 && (e = Ut), !t)
729
+ function Tn(t, e) {
730
+ if (e === void 0 && (e = $t), !t)
762
731
  return;
763
732
  const {
764
733
  top: n,
@@ -766,18 +735,20 @@ function _n(t, e) {
766
735
  bottom: i,
767
736
  right: o
768
737
  } = e(t);
769
- kn(t) && (i <= 0 || o <= 0 || n >= window.innerHeight || r >= window.innerWidth) && t.scrollIntoView({
738
+ Rn(t) && (i <= 0 || o <= 0 || n >= window.innerHeight || r >= window.innerWidth) && t.scrollIntoView({
770
739
  block: "center",
771
740
  inline: "center"
772
741
  });
773
742
  }
774
- const Vr = [["x", ["left", "right"], Kr], ["y", ["top", "bottom"], Gr]];
775
- class We {
743
+ const Br = [["x", ["left", "right"], kr], ["y", ["top", "bottom"], Pr]];
744
+ class Oe {
776
745
  constructor(e, n) {
777
746
  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;
778
- const r = Be(n), i = Hn(r);
779
- this.rect = m({}, e), this.width = e.width, this.height = e.height;
780
- for (const [o, a, s] of Vr)
747
+ const r = Ae(n), i = Nn(r);
748
+ this.rect = {
749
+ ...e
750
+ }, this.width = e.width, this.height = e.height;
751
+ for (const [o, a, s] of Br)
781
752
  for (const l of a)
782
753
  Object.defineProperty(this, l, {
783
754
  get: () => {
@@ -791,7 +762,7 @@ class We {
791
762
  });
792
763
  }
793
764
  }
794
- class It {
765
+ class Bt {
795
766
  constructor(e) {
796
767
  this.target = void 0, this.listeners = [], this.removeAll = () => {
797
768
  this.listeners.forEach((n) => {
@@ -805,58 +776,62 @@ class It {
805
776
  (i = this.target) == null || i.addEventListener(e, n, r), this.listeners.push([e, n, r]);
806
777
  }
807
778
  }
808
- function qr(t) {
779
+ function Wr(t) {
809
780
  const {
810
781
  EventTarget: e
811
- } = G(t);
812
- return t instanceof e ? t : Ot(t);
782
+ } = U(t);
783
+ return t instanceof e ? t : Tt(t);
813
784
  }
814
- function ze(t, e) {
785
+ function xe(t, e) {
815
786
  const n = Math.abs(t.x), r = Math.abs(t.y);
816
- return typeof e == "number" ? Math.sqrt(De(n, 2) + De(r, 2)) > e : "x" in e && "y" in e ? n > e.x && r > e.y : "x" in e ? n > e.x : "y" in e ? r > e.y : !1;
787
+ return typeof e == "number" ? Math.sqrt(n ** 2 + r ** 2) > e : "x" in e && "y" in e ? n > e.x && r > e.y : "x" in e ? n > e.x : "y" in e ? r > e.y : !1;
817
788
  }
818
- var tt;
789
+ var Q;
819
790
  (function(t) {
820
791
  t.Click = "click", t.DragStart = "dragstart", t.Keydown = "keydown", t.ContextMenu = "contextmenu", t.Resize = "resize", t.SelectionChange = "selectionchange", t.VisibilityChange = "visibilitychange";
821
- })(tt || (tt = {}));
822
- function un(t) {
792
+ })(Q || (Q = {}));
793
+ function Ze(t) {
823
794
  t.preventDefault();
824
795
  }
825
- function Jr(t) {
796
+ function Ir(t) {
826
797
  t.stopPropagation();
827
798
  }
828
- var T;
799
+ var M;
829
800
  (function(t) {
830
801
  t.Space = "Space", t.Down = "ArrowDown", t.Right = "ArrowRight", t.Left = "ArrowLeft", t.Up = "ArrowUp", t.Esc = "Escape", t.Enter = "Enter", t.Tab = "Tab";
831
- })(T || (T = {}));
832
- const Fn = {
833
- start: [T.Space, T.Enter],
834
- cancel: [T.Esc],
835
- end: [T.Space, T.Enter, T.Tab]
836
- }, Qr = (t, e) => {
802
+ })(M || (M = {}));
803
+ const An = {
804
+ start: [M.Space, M.Enter],
805
+ cancel: [M.Esc],
806
+ end: [M.Space, M.Enter, M.Tab]
807
+ }, Hr = (t, e) => {
837
808
  let {
838
809
  currentCoordinates: n
839
810
  } = e;
840
811
  switch (t.code) {
841
- case T.Right:
842
- return M(m({}, n), {
812
+ case M.Right:
813
+ return {
814
+ ...n,
843
815
  x: n.x + 25
844
- });
845
- case T.Left:
846
- return M(m({}, n), {
816
+ };
817
+ case M.Left:
818
+ return {
819
+ ...n,
847
820
  x: n.x - 25
848
- });
849
- case T.Down:
850
- return M(m({}, n), {
821
+ };
822
+ case M.Down:
823
+ return {
824
+ ...n,
851
825
  y: n.y + 25
852
- });
853
- case T.Up:
854
- return M(m({}, n), {
826
+ };
827
+ case M.Up:
828
+ return {
829
+ ...n,
855
830
  y: n.y - 25
856
- });
831
+ };
857
832
  }
858
833
  };
859
- class Ie {
834
+ class Le {
860
835
  constructor(e) {
861
836
  this.props = void 0, this.autoScrollEnabled = !1, this.referenceCoordinates = void 0, this.listeners = void 0, this.windowListeners = void 0, this.props = e;
862
837
  const {
@@ -864,27 +839,27 @@ class Ie {
864
839
  target: n
865
840
  }
866
841
  } = e;
867
- this.props = e, this.listeners = new It(Ot(n)), this.windowListeners = new It(G(n)), this.handleKeyDown = this.handleKeyDown.bind(this), this.handleCancel = this.handleCancel.bind(this), this.attach();
842
+ this.props = e, this.listeners = new Bt(Tt(n)), this.windowListeners = new Bt(U(n)), this.handleKeyDown = this.handleKeyDown.bind(this), this.handleCancel = this.handleCancel.bind(this), this.attach();
868
843
  }
869
844
  attach() {
870
- this.handleStart(), this.windowListeners.add(tt.Resize, this.handleCancel), this.windowListeners.add(tt.VisibilityChange, this.handleCancel), setTimeout(() => this.listeners.add(tt.Keydown, this.handleKeyDown));
845
+ this.handleStart(), this.windowListeners.add(Q.Resize, this.handleCancel), this.windowListeners.add(Q.VisibilityChange, this.handleCancel), setTimeout(() => this.listeners.add(Q.Keydown, this.handleKeyDown));
871
846
  }
872
847
  handleStart() {
873
848
  const {
874
849
  activeNode: e,
875
850
  onStart: n
876
851
  } = this.props, r = e.node.current;
877
- r && _n(r), n(rt);
852
+ r && Tn(r), n(et);
878
853
  }
879
854
  handleKeyDown(e) {
880
- if (Pe(e)) {
855
+ if (Te(e)) {
881
856
  const {
882
857
  active: n,
883
858
  context: r,
884
859
  options: i
885
860
  } = this.props, {
886
- keyboardCodes: o = Fn,
887
- coordinateGetter: a = Qr,
861
+ keyboardCodes: o = An,
862
+ coordinateGetter: a = Hr,
888
863
  scrollBehavior: s = "smooth"
889
864
  } = i, {
890
865
  code: l
@@ -902,7 +877,7 @@ class Ie {
902
877
  } = r.current, d = c ? {
903
878
  x: c.left,
904
879
  y: c.top
905
- } : rt;
880
+ } : et;
906
881
  this.referenceCoordinates || (this.referenceCoordinates = d);
907
882
  const u = a(e, {
908
883
  active: n,
@@ -910,55 +885,55 @@ class Ie {
910
885
  currentCoordinates: d
911
886
  });
912
887
  if (u) {
913
- const h = ce(u, d), p = {
888
+ const f = oe(u, d), p = {
914
889
  x: 0,
915
890
  y: 0
916
891
  }, {
917
892
  scrollableAncestors: b
918
893
  } = r.current;
919
- for (const f of b) {
894
+ for (const h of b) {
920
895
  const g = e.code, {
921
- isTop: w,
922
- isRight: y,
896
+ isTop: m,
897
+ isRight: w,
923
898
  isLeft: v,
924
- isBottom: x,
925
- maxScroll: C,
899
+ isBottom: y,
900
+ maxScroll: R,
926
901
  minScroll: z
927
- } = In(f), S = Ur(f), R = {
928
- x: Math.min(g === T.Right ? S.right - S.width / 2 : S.right, Math.max(g === T.Right ? S.left : S.left + S.width / 2, u.x)),
929
- y: Math.min(g === T.Down ? S.bottom - S.height / 2 : S.bottom, Math.max(g === T.Down ? S.top : S.top + S.height / 2, u.y))
930
- }, N = g === T.Right && !y || g === T.Left && !v, P = g === T.Down && !x || g === T.Up && !w;
931
- if (N && R.x !== u.x) {
932
- const A = f.scrollLeft + h.x, F = g === T.Right && A <= C.x || g === T.Left && A >= z.x;
933
- if (F && !h.y) {
934
- f.scrollTo({
935
- left: A,
902
+ } = Mn(h), x = Lr(h), S = {
903
+ x: Math.min(g === M.Right ? x.right - x.width / 2 : x.right, Math.max(g === M.Right ? x.left : x.left + x.width / 2, u.x)),
904
+ y: Math.min(g === M.Down ? x.bottom - x.height / 2 : x.bottom, Math.max(g === M.Down ? x.top : x.top + x.height / 2, u.y))
905
+ }, E = g === M.Right && !w || g === M.Left && !v, L = g === M.Down && !y || g === M.Up && !m;
906
+ if (E && S.x !== u.x) {
907
+ const N = h.scrollLeft + f.x, H = g === M.Right && N <= R.x || g === M.Left && N >= z.x;
908
+ if (H && !f.y) {
909
+ h.scrollTo({
910
+ left: N,
936
911
  behavior: s
937
912
  });
938
913
  return;
939
914
  }
940
- F ? p.x = f.scrollLeft - A : p.x = g === T.Right ? f.scrollLeft - C.x : f.scrollLeft - z.x, p.x && f.scrollBy({
915
+ H ? p.x = h.scrollLeft - N : p.x = g === M.Right ? h.scrollLeft - R.x : h.scrollLeft - z.x, p.x && h.scrollBy({
941
916
  left: -p.x,
942
917
  behavior: s
943
918
  });
944
919
  break;
945
- } else if (P && R.y !== u.y) {
946
- const A = f.scrollTop + h.y, F = g === T.Down && A <= C.y || g === T.Up && A >= z.y;
947
- if (F && !h.x) {
948
- f.scrollTo({
949
- top: A,
920
+ } else if (L && S.y !== u.y) {
921
+ const N = h.scrollTop + f.y, H = g === M.Down && N <= R.y || g === M.Up && N >= z.y;
922
+ if (H && !f.x) {
923
+ h.scrollTo({
924
+ top: N,
950
925
  behavior: s
951
926
  });
952
927
  return;
953
928
  }
954
- F ? p.y = f.scrollTop - A : p.y = g === T.Down ? f.scrollTop - C.y : f.scrollTop - z.y, p.y && f.scrollBy({
929
+ H ? p.y = h.scrollTop - N : p.y = g === M.Down ? h.scrollTop - R.y : h.scrollTop - z.y, p.y && h.scrollBy({
955
930
  top: -p.y,
956
931
  behavior: s
957
932
  });
958
933
  break;
959
934
  }
960
935
  }
961
- this.handleMove(e, Nt(ce(u, this.referenceCoordinates), p));
936
+ this.handleMove(e, Et(oe(u, this.referenceCoordinates), p));
962
937
  }
963
938
  }
964
939
  }
@@ -984,11 +959,11 @@ class Ie {
984
959
  this.listeners.removeAll(), this.windowListeners.removeAll();
985
960
  }
986
961
  }
987
- Ie.activators = [{
962
+ Le.activators = [{
988
963
  eventName: "onKeyDown",
989
964
  handler: (t, e, n) => {
990
965
  let {
991
- keyboardCodes: r = Fn,
966
+ keyboardCodes: r = An,
992
967
  onActivation: i
993
968
  } = e, {
994
969
  active: o
@@ -998,29 +973,29 @@ Ie.activators = [{
998
973
  } = t.nativeEvent;
999
974
  if (r.start.includes(a)) {
1000
975
  const s = o.activatorNode.current;
1001
- return s && t.target !== s ? !1 : (t.preventDefault(), i == null || i({
976
+ return s && t.target !== s ? !1 : (t.preventDefault(), i?.({
1002
977
  event: t.nativeEvent
1003
978
  }), !0);
1004
979
  }
1005
980
  return !1;
1006
981
  }
1007
982
  }];
1008
- function dn(t) {
983
+ function tn(t) {
1009
984
  return !!(t && "distance" in t);
1010
985
  }
1011
- function hn(t) {
986
+ function en(t) {
1012
987
  return !!(t && "delay" in t);
1013
988
  }
1014
- class He {
989
+ class ke {
1015
990
  constructor(e, n, r) {
1016
991
  var i;
1017
- r === void 0 && (r = qr(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 = n;
992
+ r === void 0 && (r = Wr(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 = n;
1018
993
  const {
1019
994
  event: o
1020
995
  } = e, {
1021
996
  target: a
1022
997
  } = o;
1023
- this.props = e, this.events = n, this.document = Ot(a), this.documentListeners = new It(this.document), this.listeners = new It(r), this.windowListeners = new It(G(a)), this.initialCoordinates = (i = ue(o)) != null ? i : rt, 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();
998
+ this.props = e, this.events = n, this.document = Tt(a), this.documentListeners = new Bt(this.document), this.listeners = new Bt(r), this.windowListeners = new Bt(U(a)), this.initialCoordinates = (i = se(o)) != null ? i : et, 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();
1024
999
  }
1025
1000
  attach() {
1026
1001
  const {
@@ -1034,18 +1009,18 @@ class He {
1034
1009
  } = this;
1035
1010
  if (this.listeners.add(e.move.name, this.handleMove, {
1036
1011
  passive: !1
1037
- }), this.listeners.add(e.end.name, this.handleEnd), e.cancel && this.listeners.add(e.cancel.name, this.handleCancel), this.windowListeners.add(tt.Resize, this.handleCancel), this.windowListeners.add(tt.DragStart, un), this.windowListeners.add(tt.VisibilityChange, this.handleCancel), this.windowListeners.add(tt.ContextMenu, un), this.documentListeners.add(tt.Keydown, this.handleKeydown), n) {
1012
+ }), 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, Ze), this.windowListeners.add(Q.VisibilityChange, this.handleCancel), this.windowListeners.add(Q.ContextMenu, Ze), this.documentListeners.add(Q.Keydown, this.handleKeydown), n) {
1038
1013
  if (r != null && r({
1039
1014
  event: this.props.event,
1040
1015
  activeNode: this.props.activeNode,
1041
1016
  options: this.props.options
1042
1017
  }))
1043
1018
  return this.handleStart();
1044
- if (hn(n)) {
1019
+ if (en(n)) {
1045
1020
  this.timeoutId = setTimeout(this.handleStart, n.delay), this.handlePending(n);
1046
1021
  return;
1047
1022
  }
1048
- if (dn(n)) {
1023
+ if (tn(n)) {
1049
1024
  this.handlePending(n);
1050
1025
  return;
1051
1026
  }
@@ -1068,9 +1043,9 @@ class He {
1068
1043
  } = this, {
1069
1044
  onStart: n
1070
1045
  } = this.props;
1071
- e && (this.activated = !0, this.documentListeners.add(tt.Click, Jr, {
1046
+ e && (this.activated = !0, this.documentListeners.add(Q.Click, Ir, {
1072
1047
  capture: !0
1073
- }), this.removeTextSelection(), this.documentListeners.add(tt.SelectionChange, this.removeTextSelection), n(e));
1048
+ }), this.removeTextSelection(), this.documentListeners.add(Q.SelectionChange, this.removeTextSelection), n(e));
1074
1049
  }
1075
1050
  handleMove(e) {
1076
1051
  var n;
@@ -1086,15 +1061,15 @@ class He {
1086
1061
  } = o;
1087
1062
  if (!i)
1088
1063
  return;
1089
- const l = (n = ue(e)) != null ? n : rt, c = ce(i, l);
1064
+ const l = (n = se(e)) != null ? n : et, c = oe(i, l);
1090
1065
  if (!r && s) {
1091
- if (dn(s)) {
1092
- if (s.tolerance != null && ze(c, s.tolerance))
1066
+ if (tn(s)) {
1067
+ if (s.tolerance != null && xe(c, s.tolerance))
1093
1068
  return this.handleCancel();
1094
- if (ze(c, s.distance))
1069
+ if (xe(c, s.distance))
1095
1070
  return this.handleStart();
1096
1071
  }
1097
- if (hn(s) && ze(c, s.tolerance))
1072
+ if (en(s) && xe(c, s.tolerance))
1098
1073
  return this.handleCancel();
1099
1074
  this.handlePending(s, c);
1100
1075
  return;
@@ -1116,14 +1091,14 @@ class He {
1116
1091
  this.detach(), this.activated || e(this.props.active), n();
1117
1092
  }
1118
1093
  handleKeydown(e) {
1119
- e.code === T.Esc && this.handleCancel();
1094
+ e.code === M.Esc && this.handleCancel();
1120
1095
  }
1121
1096
  removeTextSelection() {
1122
1097
  var e;
1123
1098
  (e = this.document.getSelection()) == null || e.removeAllRanges();
1124
1099
  }
1125
1100
  }
1126
- const Zr = {
1101
+ const _r = {
1127
1102
  cancel: {
1128
1103
  name: "pointercancel"
1129
1104
  },
@@ -1134,15 +1109,15 @@ const Zr = {
1134
1109
  name: "pointerup"
1135
1110
  }
1136
1111
  };
1137
- class _e extends He {
1112
+ class Pe extends ke {
1138
1113
  constructor(e) {
1139
1114
  const {
1140
1115
  event: n
1141
- } = e, r = Ot(n.target);
1142
- super(e, Zr, r);
1116
+ } = e, r = Tt(n.target);
1117
+ super(e, _r, r);
1143
1118
  }
1144
1119
  }
1145
- _e.activators = [{
1120
+ Pe.activators = [{
1146
1121
  eventName: "onPointerDown",
1147
1122
  handler: (t, e) => {
1148
1123
  let {
@@ -1150,12 +1125,12 @@ _e.activators = [{
1150
1125
  } = t, {
1151
1126
  onActivation: r
1152
1127
  } = e;
1153
- return !n.isPrimary || n.button !== 0 ? !1 : (r == null || r({
1128
+ return !n.isPrimary || n.button !== 0 ? !1 : (r?.({
1154
1129
  event: n
1155
1130
  }), !0);
1156
1131
  }
1157
1132
  }];
1158
- const ti = {
1133
+ const Fr = {
1159
1134
  move: {
1160
1135
  name: "mousemove"
1161
1136
  },
@@ -1163,16 +1138,16 @@ const ti = {
1163
1138
  name: "mouseup"
1164
1139
  }
1165
1140
  };
1166
- var Te;
1141
+ var Ce;
1167
1142
  (function(t) {
1168
1143
  t[t.RightClick = 2] = "RightClick";
1169
- })(Te || (Te = {}));
1170
- class ei extends He {
1144
+ })(Ce || (Ce = {}));
1145
+ class jr extends ke {
1171
1146
  constructor(e) {
1172
- super(e, ti, Ot(e.event.target));
1147
+ super(e, Fr, Tt(e.event.target));
1173
1148
  }
1174
1149
  }
1175
- ei.activators = [{
1150
+ jr.activators = [{
1176
1151
  eventName: "onMouseDown",
1177
1152
  handler: (t, e) => {
1178
1153
  let {
@@ -1180,12 +1155,12 @@ ei.activators = [{
1180
1155
  } = t, {
1181
1156
  onActivation: r
1182
1157
  } = e;
1183
- return n.button === Te.RightClick ? !1 : (r == null || r({
1158
+ return n.button === Ce.RightClick ? !1 : (r?.({
1184
1159
  event: n
1185
1160
  }), !0);
1186
1161
  }
1187
1162
  }];
1188
- const Ee = {
1163
+ const De = {
1189
1164
  cancel: {
1190
1165
  name: "touchcancel"
1191
1166
  },
@@ -1196,22 +1171,22 @@ const Ee = {
1196
1171
  name: "touchend"
1197
1172
  }
1198
1173
  };
1199
- class ni extends He {
1174
+ class Yr extends ke {
1200
1175
  constructor(e) {
1201
- super(e, Ee);
1176
+ super(e, De);
1202
1177
  }
1203
1178
  static setup() {
1204
- return window.addEventListener(Ee.move.name, e, {
1179
+ return window.addEventListener(De.move.name, e, {
1205
1180
  capture: !1,
1206
1181
  passive: !1
1207
1182
  }), function() {
1208
- window.removeEventListener(Ee.move.name, e);
1183
+ window.removeEventListener(De.move.name, e);
1209
1184
  };
1210
1185
  function e() {
1211
1186
  }
1212
1187
  }
1213
1188
  }
1214
- ni.activators = [{
1189
+ Yr.activators = [{
1215
1190
  eventName: "onTouchStart",
1216
1191
  handler: (t, e) => {
1217
1192
  let {
@@ -1222,158 +1197,158 @@ ni.activators = [{
1222
1197
  const {
1223
1198
  touches: i
1224
1199
  } = n;
1225
- return i.length > 1 ? !1 : (r == null || r({
1200
+ return i.length > 1 ? !1 : (r?.({
1226
1201
  event: n
1227
1202
  }), !0);
1228
1203
  }
1229
1204
  }];
1230
- var Ht;
1205
+ var Wt;
1231
1206
  (function(t) {
1232
1207
  t[t.Pointer = 0] = "Pointer", t[t.DraggableRect = 1] = "DraggableRect";
1233
- })(Ht || (Ht = {}));
1234
- var he;
1208
+ })(Wt || (Wt = {}));
1209
+ var le;
1235
1210
  (function(t) {
1236
1211
  t[t.TreeOrder = 0] = "TreeOrder", t[t.ReversedTreeOrder = 1] = "ReversedTreeOrder";
1237
- })(he || (he = {}));
1238
- function ri(t) {
1212
+ })(le || (le = {}));
1213
+ function $r(t) {
1239
1214
  let {
1240
1215
  acceleration: e,
1241
- activator: n = Ht.Pointer,
1216
+ activator: n = Wt.Pointer,
1242
1217
  canScroll: r,
1243
1218
  draggingRect: i,
1244
1219
  enabled: o,
1245
1220
  interval: a = 5,
1246
- order: s = he.TreeOrder,
1221
+ order: s = le.TreeOrder,
1247
1222
  pointerCoordinates: l,
1248
1223
  scrollableAncestors: c,
1249
1224
  scrollableAncestorRects: d,
1250
1225
  delta: u,
1251
- threshold: h
1226
+ threshold: f
1252
1227
  } = t;
1253
- const p = oi({
1228
+ const p = Ur({
1254
1229
  delta: u,
1255
1230
  disabled: !o
1256
- }), [b, f] = br(), g = O({
1231
+ }), [b, h] = ir(), g = T({
1257
1232
  x: 0,
1258
1233
  y: 0
1259
- }), w = O({
1234
+ }), m = T({
1260
1235
  x: 0,
1261
1236
  y: 0
1262
- }), y = E(() => {
1237
+ }), w = C(() => {
1263
1238
  switch (n) {
1264
- case Ht.Pointer:
1239
+ case Wt.Pointer:
1265
1240
  return l ? {
1266
1241
  top: l.y,
1267
1242
  bottom: l.y,
1268
1243
  left: l.x,
1269
1244
  right: l.x
1270
1245
  } : null;
1271
- case Ht.DraggableRect:
1246
+ case Wt.DraggableRect:
1272
1247
  return i;
1273
1248
  }
1274
- }, [n, i, l]), v = O(null), x = L(() => {
1249
+ }, [n, i, l]), v = T(null), y = A(() => {
1275
1250
  const z = v.current;
1276
1251
  if (!z)
1277
1252
  return;
1278
- const S = g.current.x * w.current.x, R = g.current.y * w.current.y;
1279
- z.scrollBy(S, R);
1280
- }, []), C = E(() => s === he.TreeOrder ? [...c].reverse() : c, [s, c]);
1281
- k(
1253
+ const x = g.current.x * m.current.x, S = g.current.y * m.current.y;
1254
+ z.scrollBy(x, S);
1255
+ }, []), R = C(() => s === le.TreeOrder ? [...c].reverse() : c, [s, c]);
1256
+ O(
1282
1257
  () => {
1283
- if (!o || !c.length || !y) {
1284
- f();
1258
+ if (!o || !c.length || !w) {
1259
+ h();
1285
1260
  return;
1286
1261
  }
1287
- for (const z of C) {
1288
- if ((r == null ? void 0 : r(z)) === !1)
1262
+ for (const z of R) {
1263
+ if (r?.(z) === !1)
1289
1264
  continue;
1290
- const S = c.indexOf(z), R = d[S];
1291
- if (!R)
1265
+ const x = c.indexOf(z), S = d[x];
1266
+ if (!S)
1292
1267
  continue;
1293
1268
  const {
1294
- direction: N,
1295
- speed: P
1296
- } = Xr(z, R, y, e, h);
1297
- for (const A of ["x", "y"])
1298
- p[A][N[A]] || (P[A] = 0, N[A] = 0);
1299
- if (P.x > 0 || P.y > 0) {
1300
- f(), v.current = z, b(x, a), g.current = P, w.current = N;
1269
+ direction: E,
1270
+ speed: L
1271
+ } = Or(z, S, w, e, f);
1272
+ for (const N of ["x", "y"])
1273
+ p[N][E[N]] || (L[N] = 0, E[N] = 0);
1274
+ if (L.x > 0 || L.y > 0) {
1275
+ h(), v.current = z, b(y, a), g.current = L, m.current = E;
1301
1276
  return;
1302
1277
  }
1303
1278
  }
1304
1279
  g.current = {
1305
1280
  x: 0,
1306
1281
  y: 0
1307
- }, w.current = {
1282
+ }, m.current = {
1308
1283
  x: 0,
1309
1284
  y: 0
1310
- }, f();
1285
+ }, h();
1311
1286
  },
1312
1287
  // eslint-disable-next-line react-hooks/exhaustive-deps
1313
1288
  [
1314
1289
  e,
1315
- x,
1290
+ y,
1316
1291
  r,
1317
- f,
1292
+ h,
1318
1293
  o,
1319
1294
  a,
1320
1295
  // eslint-disable-next-line react-hooks/exhaustive-deps
1321
- JSON.stringify(y),
1296
+ JSON.stringify(w),
1322
1297
  // eslint-disable-next-line react-hooks/exhaustive-deps
1323
1298
  JSON.stringify(p),
1324
1299
  b,
1325
1300
  c,
1326
- C,
1301
+ R,
1327
1302
  d,
1328
1303
  // eslint-disable-next-line react-hooks/exhaustive-deps
1329
- JSON.stringify(h)
1304
+ JSON.stringify(f)
1330
1305
  ]
1331
1306
  );
1332
1307
  }
1333
- const ii = {
1308
+ const Xr = {
1334
1309
  x: {
1335
- [j.Backward]: !1,
1336
- [j.Forward]: !1
1310
+ [_.Backward]: !1,
1311
+ [_.Forward]: !1
1337
1312
  },
1338
1313
  y: {
1339
- [j.Backward]: !1,
1340
- [j.Forward]: !1
1314
+ [_.Backward]: !1,
1315
+ [_.Forward]: !1
1341
1316
  }
1342
1317
  };
1343
- function oi(t) {
1318
+ function Ur(t) {
1344
1319
  let {
1345
1320
  delta: e,
1346
1321
  disabled: n
1347
1322
  } = t;
1348
- const r = le(e);
1349
- return Xt((i) => {
1323
+ const r = ie(e);
1324
+ return Yt((i) => {
1350
1325
  if (n || !r || !i)
1351
- return ii;
1326
+ return Xr;
1352
1327
  const o = {
1353
1328
  x: Math.sign(e.x - r.x),
1354
1329
  y: Math.sign(e.y - r.y)
1355
1330
  };
1356
1331
  return {
1357
1332
  x: {
1358
- [j.Backward]: i.x[j.Backward] || o.x === -1,
1359
- [j.Forward]: i.x[j.Forward] || o.x === 1
1333
+ [_.Backward]: i.x[_.Backward] || o.x === -1,
1334
+ [_.Forward]: i.x[_.Forward] || o.x === 1
1360
1335
  },
1361
1336
  y: {
1362
- [j.Backward]: i.y[j.Backward] || o.y === -1,
1363
- [j.Forward]: i.y[j.Forward] || o.y === 1
1337
+ [_.Backward]: i.y[_.Backward] || o.y === -1,
1338
+ [_.Forward]: i.y[_.Forward] || o.y === 1
1364
1339
  }
1365
1340
  };
1366
1341
  }, [n, e, r]);
1367
1342
  }
1368
- function si(t, e) {
1343
+ function Kr(t, e) {
1369
1344
  const n = e != null ? t.get(e) : void 0, r = n ? n.node.current : null;
1370
- return Xt((i) => {
1345
+ return Yt((i) => {
1371
1346
  var o;
1372
- return e == null ? null : (o = r != null ? r : i) != null ? o : null;
1347
+ return e == null ? null : (o = r ?? i) != null ? o : null;
1373
1348
  }, [r, e]);
1374
1349
  }
1375
- function ai(t, e) {
1376
- return E(() => t.reduce((n, r) => {
1350
+ function Gr(t, e) {
1351
+ return C(() => t.reduce((n, r) => {
1377
1352
  const {
1378
1353
  sensor: i
1379
1354
  } = r, o = i.activators.map((a) => ({
@@ -1383,61 +1358,61 @@ function ai(t, e) {
1383
1358
  return [...n, ...o];
1384
1359
  }, []), [t, e]);
1385
1360
  }
1386
- var Yt;
1361
+ var Ft;
1387
1362
  (function(t) {
1388
1363
  t[t.Always = 0] = "Always", t[t.BeforeDragging = 1] = "BeforeDragging", t[t.WhileDragging = 2] = "WhileDragging";
1389
- })(Yt || (Yt = {}));
1390
- var Ae;
1364
+ })(Ft || (Ft = {}));
1365
+ var ze;
1391
1366
  (function(t) {
1392
1367
  t.Optimized = "optimized";
1393
- })(Ae || (Ae = {}));
1394
- const fn = /* @__PURE__ */ new Map();
1395
- function li(t, e) {
1368
+ })(ze || (ze = {}));
1369
+ const nn = /* @__PURE__ */ new Map();
1370
+ function Vr(t, e) {
1396
1371
  let {
1397
1372
  dragging: n,
1398
1373
  dependencies: r,
1399
1374
  config: i
1400
1375
  } = e;
1401
- const [o, a] = $(null), {
1376
+ const [o, a] = j(null), {
1402
1377
  frequency: s,
1403
1378
  measure: l,
1404
1379
  strategy: c
1405
- } = i, d = O(t), u = g(), h = Ft(u), p = L(function(w) {
1406
- w === void 0 && (w = []), !h.current && a((y) => y === null ? w : y.concat(w.filter((v) => !y.includes(v))));
1407
- }, [h]), b = O(null), f = Xt((w) => {
1380
+ } = i, d = T(t), u = g(), f = Ht(u), p = A(function(m) {
1381
+ m === void 0 && (m = []), !f.current && a((w) => w === null ? m : w.concat(m.filter((v) => !w.includes(v))));
1382
+ }, [f]), b = T(null), h = Yt((m) => {
1408
1383
  if (u && !n)
1409
- return fn;
1410
- if (!w || w === fn || d.current !== t || o != null) {
1411
- const y = /* @__PURE__ */ new Map();
1384
+ return nn;
1385
+ if (!m || m === nn || d.current !== t || o != null) {
1386
+ const w = /* @__PURE__ */ new Map();
1412
1387
  for (let v of t) {
1413
1388
  if (!v)
1414
1389
  continue;
1415
1390
  if (o && o.length > 0 && !o.includes(v.id) && v.rect.current) {
1416
- y.set(v.id, v.rect.current);
1391
+ w.set(v.id, v.rect.current);
1417
1392
  continue;
1418
1393
  }
1419
- const x = v.node.current, C = x ? new We(l(x), x) : null;
1420
- v.rect.current = C, C && y.set(v.id, C);
1394
+ const y = v.node.current, R = y ? new Oe(l(y), y) : null;
1395
+ v.rect.current = R, R && w.set(v.id, R);
1421
1396
  }
1422
- return y;
1397
+ return w;
1423
1398
  }
1424
- return w;
1399
+ return m;
1425
1400
  }, [t, o, n, u, l]);
1426
- return k(() => {
1401
+ return O(() => {
1427
1402
  d.current = t;
1428
- }, [t]), k(
1403
+ }, [t]), O(
1429
1404
  () => {
1430
1405
  u || p();
1431
1406
  },
1432
1407
  // eslint-disable-next-line react-hooks/exhaustive-deps
1433
1408
  [n, u]
1434
- ), k(
1409
+ ), O(
1435
1410
  () => {
1436
1411
  o && o.length > 0 && a(null);
1437
1412
  },
1438
1413
  //eslint-disable-next-line react-hooks/exhaustive-deps
1439
1414
  [JSON.stringify(o)]
1440
- ), k(
1415
+ ), O(
1441
1416
  () => {
1442
1417
  u || typeof s != "number" || b.current !== null || (b.current = setTimeout(() => {
1443
1418
  p(), b.current = null;
@@ -1446,50 +1421,50 @@ function li(t, e) {
1446
1421
  // eslint-disable-next-line react-hooks/exhaustive-deps
1447
1422
  [s, u, p, ...r]
1448
1423
  ), {
1449
- droppableRects: f,
1424
+ droppableRects: h,
1450
1425
  measureDroppableContainers: p,
1451
1426
  measuringScheduled: o != null
1452
1427
  };
1453
1428
  function g() {
1454
1429
  switch (c) {
1455
- case Yt.Always:
1430
+ case Ft.Always:
1456
1431
  return !1;
1457
- case Yt.BeforeDragging:
1432
+ case Ft.BeforeDragging:
1458
1433
  return n;
1459
1434
  default:
1460
1435
  return !n;
1461
1436
  }
1462
1437
  }
1463
1438
  }
1464
- function Fe(t, e) {
1465
- return Xt((n) => t ? n || (typeof e == "function" ? e(t) : t) : null, [e, t]);
1439
+ function Be(t, e) {
1440
+ return Yt((n) => t ? n || (typeof e == "function" ? e(t) : t) : null, [e, t]);
1466
1441
  }
1467
- function ci(t, e) {
1468
- return Fe(t, e);
1442
+ function qr(t, e) {
1443
+ return Be(t, e);
1469
1444
  }
1470
- function ui(t) {
1445
+ function Jr(t) {
1471
1446
  let {
1472
1447
  callback: e,
1473
1448
  disabled: n
1474
1449
  } = t;
1475
- const r = pe(e), i = E(() => {
1476
- if (n || typeof window == "undefined" || typeof window.MutationObserver == "undefined")
1450
+ const r = ue(e), i = C(() => {
1451
+ if (n || typeof window > "u" || typeof window.MutationObserver > "u")
1477
1452
  return;
1478
1453
  const {
1479
1454
  MutationObserver: o
1480
1455
  } = window;
1481
1456
  return new o(r);
1482
1457
  }, [r, n]);
1483
- return k(() => () => i == null ? void 0 : i.disconnect(), [i]), i;
1458
+ return O(() => () => i?.disconnect(), [i]), i;
1484
1459
  }
1485
- function ve(t) {
1460
+ function he(t) {
1486
1461
  let {
1487
1462
  callback: e,
1488
1463
  disabled: n
1489
1464
  } = t;
1490
- const r = pe(e), i = E(
1465
+ const r = ue(e), i = C(
1491
1466
  () => {
1492
- if (n || typeof window == "undefined" || typeof window.ResizeObserver == "undefined")
1467
+ if (n || typeof window > "u" || typeof window.ResizeObserver > "u")
1493
1468
  return;
1494
1469
  const {
1495
1470
  ResizeObserver: o
@@ -1499,27 +1474,27 @@ function ve(t) {
1499
1474
  // eslint-disable-next-line react-hooks/exhaustive-deps
1500
1475
  [n]
1501
1476
  );
1502
- return k(() => () => i == null ? void 0 : i.disconnect(), [i]), i;
1477
+ return O(() => () => i?.disconnect(), [i]), i;
1503
1478
  }
1504
- function di(t) {
1505
- return new We(Ut(t), t);
1479
+ function Qr(t) {
1480
+ return new Oe($t(t), t);
1506
1481
  }
1507
- function pn(t, e, n) {
1508
- e === void 0 && (e = di);
1509
- const [r, i] = $(null);
1482
+ function rn(t, e, n) {
1483
+ e === void 0 && (e = Qr);
1484
+ const [r, i] = j(null);
1510
1485
  function o() {
1511
1486
  i((l) => {
1512
1487
  if (!t)
1513
1488
  return null;
1514
1489
  if (t.isConnected === !1) {
1515
1490
  var c;
1516
- return (c = l != null ? l : n) != null ? c : null;
1491
+ return (c = l ?? n) != null ? c : null;
1517
1492
  }
1518
1493
  const d = e(t);
1519
1494
  return JSON.stringify(l) === JSON.stringify(d) ? l : d;
1520
1495
  });
1521
1496
  }
1522
- const a = ui({
1497
+ const a = Jr({
1523
1498
  callback(l) {
1524
1499
  if (t)
1525
1500
  for (const c of l) {
@@ -1533,41 +1508,41 @@ function pn(t, e, n) {
1533
1508
  }
1534
1509
  }
1535
1510
  }
1536
- }), s = ve({
1511
+ }), s = he({
1537
1512
  callback: o
1538
1513
  });
1539
- return ct(() => {
1540
- o(), t ? (s == null || s.observe(t), a == null || a.observe(document.body, {
1514
+ return at(() => {
1515
+ o(), t ? (s?.observe(t), a?.observe(document.body, {
1541
1516
  childList: !0,
1542
1517
  subtree: !0
1543
- })) : (s == null || s.disconnect(), a == null || a.disconnect());
1518
+ })) : (s?.disconnect(), a?.disconnect());
1544
1519
  }, [t]), r;
1545
1520
  }
1546
- function hi(t) {
1547
- const e = Fe(t);
1548
- return On(t, e);
1521
+ function Zr(t) {
1522
+ const e = Be(t);
1523
+ return Dn(t, e);
1549
1524
  }
1550
- const gn = [];
1551
- function fi(t) {
1552
- const e = O(t), n = Xt((r) => t ? r && r !== gn && t && e.current && t.parentNode === e.current.parentNode ? r : Be(t) : gn, [t]);
1553
- return k(() => {
1525
+ const on = [];
1526
+ function ti(t) {
1527
+ const e = T(t), n = Yt((r) => t ? r && r !== on && t && e.current && t.parentNode === e.current.parentNode ? r : Ae(t) : on, [t]);
1528
+ return O(() => {
1554
1529
  e.current = t;
1555
1530
  }, [t]), n;
1556
1531
  }
1557
- function pi(t) {
1558
- const [e, n] = $(null), r = O(t), i = L((o) => {
1559
- const a = Ce(o.target);
1560
- a && n((s) => s ? (s.set(a, Ne(a)), new Map(s)) : null);
1532
+ function ei(t) {
1533
+ const [e, n] = j(null), r = T(t), i = A((o) => {
1534
+ const a = ye(o.target);
1535
+ a && n((s) => s ? (s.set(a, Re(a)), new Map(s)) : null);
1561
1536
  }, []);
1562
- return k(() => {
1537
+ return O(() => {
1563
1538
  const o = r.current;
1564
1539
  if (t !== o) {
1565
1540
  a(o);
1566
1541
  const s = t.map((l) => {
1567
- const c = Ce(l);
1542
+ const c = ye(l);
1568
1543
  return c ? (c.addEventListener("scroll", i, {
1569
1544
  passive: !0
1570
- }), [c, Ne(c)]) : null;
1545
+ }), [c, Re(c)]) : null;
1571
1546
  }).filter((l) => l != null);
1572
1547
  n(s.length ? new Map(s) : null), r.current = t;
1573
1548
  }
@@ -1576,30 +1551,30 @@ function pi(t) {
1576
1551
  };
1577
1552
  function a(s) {
1578
1553
  s.forEach((l) => {
1579
- const c = Ce(l);
1580
- c == null || c.removeEventListener("scroll", i);
1554
+ const c = ye(l);
1555
+ c?.removeEventListener("scroll", i);
1581
1556
  });
1582
1557
  }
1583
- }, [i, t]), E(() => t.length ? e ? Array.from(e.values()).reduce((o, a) => Nt(o, a), rt) : Hn(t) : rt, [t, e]);
1558
+ }, [i, t]), C(() => t.length ? e ? Array.from(e.values()).reduce((o, a) => Et(o, a), et) : Nn(t) : et, [t, e]);
1584
1559
  }
1585
- function vn(t, e) {
1560
+ function sn(t, e) {
1586
1561
  e === void 0 && (e = []);
1587
- const n = O(null);
1588
- return k(
1562
+ const n = T(null);
1563
+ return O(
1589
1564
  () => {
1590
1565
  n.current = null;
1591
1566
  },
1592
1567
  // eslint-disable-next-line react-hooks/exhaustive-deps
1593
1568
  e
1594
- ), k(() => {
1595
- const r = t !== rt;
1569
+ ), O(() => {
1570
+ const r = t !== et;
1596
1571
  r && !n.current && (n.current = t), !r && n.current && (n.current = null);
1597
- }, [t]), n.current ? ce(t, n.current) : rt;
1572
+ }, [t]), n.current ? oe(t, n.current) : et;
1598
1573
  }
1599
- function gi(t) {
1600
- k(
1574
+ function ni(t) {
1575
+ O(
1601
1576
  () => {
1602
- if (!fe)
1577
+ if (!ce)
1603
1578
  return;
1604
1579
  const e = t.map((n) => {
1605
1580
  let {
@@ -1609,7 +1584,7 @@ function gi(t) {
1609
1584
  });
1610
1585
  return () => {
1611
1586
  for (const n of e)
1612
- n == null || n();
1587
+ n?.();
1613
1588
  };
1614
1589
  },
1615
1590
  // TO-DO: Sensors length could theoretically change which would not be a valid dependency
@@ -1622,8 +1597,8 @@ function gi(t) {
1622
1597
  })
1623
1598
  );
1624
1599
  }
1625
- function vi(t, e) {
1626
- return E(() => t.reduce((n, r) => {
1600
+ function ri(t, e) {
1601
+ return C(() => t.reduce((n, r) => {
1627
1602
  let {
1628
1603
  eventName: i,
1629
1604
  handler: o
@@ -1633,83 +1608,84 @@ function vi(t, e) {
1633
1608
  }, n;
1634
1609
  }, {}), [t, e]);
1635
1610
  }
1636
- function jn(t) {
1637
- return E(() => t ? Fr(t) : null, [t]);
1611
+ function On(t) {
1612
+ return C(() => t ? Mr(t) : null, [t]);
1638
1613
  }
1639
- const bn = [];
1640
- function bi(t, e) {
1641
- e === void 0 && (e = Ut);
1642
- const [n] = t, r = jn(n ? G(n) : null), [i, o] = $(bn);
1614
+ const an = [];
1615
+ function ii(t, e) {
1616
+ e === void 0 && (e = $t);
1617
+ const [n] = t, r = On(n ? U(n) : null), [i, o] = j(an);
1643
1618
  function a() {
1644
- o(() => t.length ? t.map((l) => Wn(l) ? r : new We(e(l), l)) : bn);
1619
+ o(() => t.length ? t.map((l) => En(l) ? r : new Oe(e(l), l)) : an);
1645
1620
  }
1646
- const s = ve({
1621
+ const s = he({
1647
1622
  callback: a
1648
1623
  });
1649
- return ct(() => {
1650
- s == null || s.disconnect(), a(), t.forEach((l) => s == null ? void 0 : s.observe(l));
1624
+ return at(() => {
1625
+ s?.disconnect(), a(), t.forEach((l) => s?.observe(l));
1651
1626
  }, [t]), i;
1652
1627
  }
1653
- function Yn(t) {
1628
+ function Ln(t) {
1654
1629
  if (!t)
1655
1630
  return null;
1656
1631
  if (t.children.length > 1)
1657
1632
  return t;
1658
1633
  const e = t.children[0];
1659
- return $t(e) ? e : t;
1634
+ return jt(e) ? e : t;
1660
1635
  }
1661
- function mi(t) {
1636
+ function oi(t) {
1662
1637
  let {
1663
1638
  measure: e
1664
1639
  } = t;
1665
- const [n, r] = $(null), i = L((c) => {
1640
+ const [n, r] = j(null), i = A((c) => {
1666
1641
  for (const {
1667
1642
  target: d
1668
1643
  } of c)
1669
- if ($t(d)) {
1644
+ if (jt(d)) {
1670
1645
  r((u) => {
1671
- const h = e(d);
1672
- return u ? M(m({}, u), {
1673
- width: h.width,
1674
- height: h.height
1675
- }) : h;
1646
+ const f = e(d);
1647
+ return u ? {
1648
+ ...u,
1649
+ width: f.width,
1650
+ height: f.height
1651
+ } : f;
1676
1652
  });
1677
1653
  break;
1678
1654
  }
1679
- }, [e]), o = ve({
1655
+ }, [e]), o = he({
1680
1656
  callback: i
1681
- }), a = L((c) => {
1682
- const d = Yn(c);
1683
- o == null || o.disconnect(), d && (o == null || o.observe(d)), r(d ? e(d) : null);
1684
- }, [e, o]), [s, l] = ae(a);
1685
- return E(() => ({
1657
+ }), a = A((c) => {
1658
+ const d = Ln(c);
1659
+ o?.disconnect(), d && o?.observe(d), r(d ? e(d) : null);
1660
+ }, [e, o]), [s, l] = re(a);
1661
+ return C(() => ({
1686
1662
  nodeRef: s,
1687
1663
  rect: n,
1688
1664
  setRef: l
1689
1665
  }), [n, s, l]);
1690
1666
  }
1691
- const wi = [{
1692
- sensor: _e,
1667
+ const si = [{
1668
+ sensor: Pe,
1693
1669
  options: {}
1694
1670
  }, {
1695
- sensor: Ie,
1671
+ sensor: Le,
1696
1672
  options: {}
1697
- }], yi = {
1673
+ }], ai = {
1698
1674
  current: {}
1699
- }, se = {
1675
+ }, ne = {
1700
1676
  draggable: {
1701
- measure: cn
1677
+ measure: Qe
1702
1678
  },
1703
1679
  droppable: {
1704
- measure: cn,
1705
- strategy: Yt.WhileDragging,
1706
- frequency: Ae.Optimized
1680
+ measure: Qe,
1681
+ strategy: Ft.WhileDragging,
1682
+ frequency: ze.Optimized
1707
1683
  },
1708
1684
  dragOverlay: {
1709
- measure: Ut
1685
+ measure: $t
1710
1686
  }
1711
1687
  };
1712
- class _t extends Map {
1688
+ class It extends Map {
1713
1689
  get(e) {
1714
1690
  var n;
1715
1691
  return e != null && (n = super.get(e)) != null ? n : void 0;
@@ -1730,7 +1706,7 @@ class _t extends Map {
1730
1706
  return (n = (r = this.get(e)) == null ? void 0 : r.node.current) != null ? n : void 0;
1731
1707
  }
1732
1708
  }
1733
- const xi = {
1709
+ const li = {
1734
1710
  activatorEvent: null,
1735
1711
  active: null,
1736
1712
  activeNode: null,
@@ -1739,22 +1715,22 @@ const xi = {
1739
1715
  containerNodeRect: null,
1740
1716
  draggableNodes: /* @__PURE__ */ new Map(),
1741
1717
  droppableRects: /* @__PURE__ */ new Map(),
1742
- droppableContainers: /* @__PURE__ */ new _t(),
1718
+ droppableContainers: /* @__PURE__ */ new It(),
1743
1719
  over: null,
1744
1720
  dragOverlay: {
1745
1721
  nodeRef: {
1746
1722
  current: null
1747
1723
  },
1748
1724
  rect: null,
1749
- setRef: de
1725
+ setRef: ae
1750
1726
  },
1751
1727
  scrollableAncestors: [],
1752
1728
  scrollableAncestorRects: [],
1753
- measuringConfiguration: se,
1754
- measureDroppableContainers: de,
1729
+ measuringConfiguration: ne,
1730
+ measureDroppableContainers: ae,
1755
1731
  windowRect: null,
1756
1732
  measuringScheduled: !1
1757
- }, $n = {
1733
+ }, kn = {
1758
1734
  activatorEvent: null,
1759
1735
  activators: [],
1760
1736
  active: null,
@@ -1762,12 +1738,12 @@ const xi = {
1762
1738
  ariaDescribedById: {
1763
1739
  draggable: ""
1764
1740
  },
1765
- dispatch: de,
1741
+ dispatch: ae,
1766
1742
  draggableNodes: /* @__PURE__ */ new Map(),
1767
1743
  over: null,
1768
- measureDroppableContainers: de
1769
- }, Kt = /* @__PURE__ */ Tt($n), Xn = /* @__PURE__ */ Tt(xi);
1770
- function Si() {
1744
+ measureDroppableContainers: ae
1745
+ }, Xt = /* @__PURE__ */ Mt(kn), Pn = /* @__PURE__ */ Mt(li);
1746
+ function ci() {
1771
1747
  return {
1772
1748
  draggable: {
1773
1749
  active: null,
@@ -1782,32 +1758,38 @@ function Si() {
1782
1758
  }
1783
1759
  },
1784
1760
  droppable: {
1785
- containers: new _t()
1761
+ containers: new It()
1786
1762
  }
1787
1763
  };
1788
1764
  }
1789
- function Di(t, e) {
1765
+ function ui(t, e) {
1790
1766
  switch (e.type) {
1791
- case _.DragStart:
1792
- return M(m({}, t), {
1793
- draggable: M(m({}, t.draggable), {
1767
+ case I.DragStart:
1768
+ return {
1769
+ ...t,
1770
+ draggable: {
1771
+ ...t.draggable,
1794
1772
  initialCoordinates: e.initialCoordinates,
1795
1773
  active: e.active
1796
- })
1797
- });
1798
- case _.DragMove:
1799
- return t.draggable.active == null ? t : M(m({}, t), {
1800
- draggable: M(m({}, t.draggable), {
1774
+ }
1775
+ };
1776
+ case I.DragMove:
1777
+ return t.draggable.active == null ? t : {
1778
+ ...t,
1779
+ draggable: {
1780
+ ...t.draggable,
1801
1781
  translate: {
1802
1782
  x: e.coordinates.x - t.draggable.initialCoordinates.x,
1803
1783
  y: e.coordinates.y - t.draggable.initialCoordinates.y
1804
1784
  }
1805
- })
1806
- });
1807
- case _.DragEnd:
1808
- case _.DragCancel:
1809
- return M(m({}, t), {
1810
- draggable: M(m({}, t.draggable), {
1785
+ }
1786
+ };
1787
+ case I.DragEnd:
1788
+ case I.DragCancel:
1789
+ return {
1790
+ ...t,
1791
+ draggable: {
1792
+ ...t.draggable,
1811
1793
  active: null,
1812
1794
  initialCoordinates: {
1813
1795
  x: 0,
@@ -1817,21 +1799,23 @@ function Di(t, e) {
1817
1799
  x: 0,
1818
1800
  y: 0
1819
1801
  }
1820
- })
1821
- });
1822
- case _.RegisterDroppable: {
1802
+ }
1803
+ };
1804
+ case I.RegisterDroppable: {
1823
1805
  const {
1824
1806
  element: n
1825
1807
  } = e, {
1826
1808
  id: r
1827
- } = n, i = new _t(t.droppable.containers);
1828
- return i.set(r, n), M(m({}, t), {
1829
- droppable: M(m({}, t.droppable), {
1809
+ } = n, i = new It(t.droppable.containers);
1810
+ return i.set(r, n), {
1811
+ ...t,
1812
+ droppable: {
1813
+ ...t.droppable,
1830
1814
  containers: i
1831
- })
1832
- });
1815
+ }
1816
+ };
1833
1817
  }
1834
- case _.SetDroppableDisabled: {
1818
+ case I.SetDroppableDisabled: {
1835
1819
  const {
1836
1820
  id: n,
1837
1821
  key: r,
@@ -1839,34 +1823,39 @@ function Di(t, e) {
1839
1823
  } = e, o = t.droppable.containers.get(n);
1840
1824
  if (!o || r !== o.key)
1841
1825
  return t;
1842
- const a = new _t(t.droppable.containers);
1843
- return a.set(n, M(m({}, o), {
1826
+ const a = new It(t.droppable.containers);
1827
+ return a.set(n, {
1828
+ ...o,
1844
1829
  disabled: i
1845
- })), M(m({}, t), {
1846
- droppable: M(m({}, t.droppable), {
1830
+ }), {
1831
+ ...t,
1832
+ droppable: {
1833
+ ...t.droppable,
1847
1834
  containers: a
1848
- })
1849
- });
1835
+ }
1836
+ };
1850
1837
  }
1851
- case _.UnregisterDroppable: {
1838
+ case I.UnregisterDroppable: {
1852
1839
  const {
1853
1840
  id: n,
1854
1841
  key: r
1855
1842
  } = e, i = t.droppable.containers.get(n);
1856
1843
  if (!i || r !== i.key)
1857
1844
  return t;
1858
- const o = new _t(t.droppable.containers);
1859
- return o.delete(n), M(m({}, t), {
1860
- droppable: M(m({}, t.droppable), {
1845
+ const o = new It(t.droppable.containers);
1846
+ return o.delete(n), {
1847
+ ...t,
1848
+ droppable: {
1849
+ ...t.droppable,
1861
1850
  containers: o
1862
- })
1863
- });
1851
+ }
1852
+ };
1864
1853
  }
1865
1854
  default:
1866
1855
  return t;
1867
1856
  }
1868
1857
  }
1869
- function Ri(t) {
1858
+ function di(t) {
1870
1859
  let {
1871
1860
  disabled: e
1872
1861
  } = t;
@@ -1874,10 +1863,10 @@ function Ri(t) {
1874
1863
  active: n,
1875
1864
  activatorEvent: r,
1876
1865
  draggableNodes: i
1877
- } = mt(Kt), o = le(r), a = le(n == null ? void 0 : n.id);
1878
- return k(() => {
1866
+ } = vt(Xt), o = ie(r), a = ie(n?.id);
1867
+ return O(() => {
1879
1868
  if (!e && !r && o && a != null) {
1880
- if (!Pe(o) || document.activeElement === o.target)
1869
+ if (!Te(o) || document.activeElement === o.target)
1881
1870
  return;
1882
1871
  const s = i.get(a);
1883
1872
  if (!s)
@@ -1892,7 +1881,7 @@ function Ri(t) {
1892
1881
  for (const d of [l.current, c.current]) {
1893
1882
  if (!d)
1894
1883
  continue;
1895
- const u = yr(d);
1884
+ const u = ar(d);
1896
1885
  if (u) {
1897
1886
  u.focus();
1898
1887
  break;
@@ -1902,600 +1891,606 @@ function Ri(t) {
1902
1891
  }
1903
1892
  }, [r, e, i, a, o]), null;
1904
1893
  }
1905
- function Un(t, e) {
1906
- let i = e, {
1907
- transform: n
1908
- } = i, r = te(i, [
1909
- "transform"
1910
- ]);
1911
- return t != null && t.length ? t.reduce((o, a) => a(m({
1912
- transform: o
1913
- }, r)), n) : n;
1914
- }
1915
- function Ci(t) {
1916
- return E(
1894
+ function Bn(t, e) {
1895
+ let {
1896
+ transform: n,
1897
+ ...r
1898
+ } = e;
1899
+ return t != null && t.length ? t.reduce((i, o) => o({
1900
+ transform: i,
1901
+ ...r
1902
+ }), n) : n;
1903
+ }
1904
+ function hi(t) {
1905
+ return C(
1917
1906
  () => ({
1918
- draggable: m(m({}, se.draggable), t == null ? void 0 : t.draggable),
1919
- droppable: m(m({}, se.droppable), t == null ? void 0 : t.droppable),
1920
- dragOverlay: m(m({}, se.dragOverlay), t == null ? void 0 : t.dragOverlay)
1907
+ draggable: {
1908
+ ...ne.draggable,
1909
+ ...t?.draggable
1910
+ },
1911
+ droppable: {
1912
+ ...ne.droppable,
1913
+ ...t?.droppable
1914
+ },
1915
+ dragOverlay: {
1916
+ ...ne.dragOverlay,
1917
+ ...t?.dragOverlay
1918
+ }
1921
1919
  }),
1922
1920
  // eslint-disable-next-line react-hooks/exhaustive-deps
1923
- [t == null ? void 0 : t.draggable, t == null ? void 0 : t.droppable, t == null ? void 0 : t.dragOverlay]
1921
+ [t?.draggable, t?.droppable, t?.dragOverlay]
1924
1922
  );
1925
1923
  }
1926
- function zi(t) {
1924
+ function fi(t) {
1927
1925
  let {
1928
1926
  activeNode: e,
1929
1927
  measure: n,
1930
1928
  initialRect: r,
1931
1929
  config: i = !0
1932
1930
  } = t;
1933
- const o = O(!1), {
1931
+ const o = T(!1), {
1934
1932
  x: a,
1935
1933
  y: s
1936
1934
  } = typeof i == "boolean" ? {
1937
1935
  x: i,
1938
1936
  y: i
1939
1937
  } : i;
1940
- ct(() => {
1938
+ at(() => {
1941
1939
  if (!a && !s || !e) {
1942
1940
  o.current = !1;
1943
1941
  return;
1944
1942
  }
1945
1943
  if (o.current || !r)
1946
1944
  return;
1947
- const c = e == null ? void 0 : e.node.current;
1945
+ const c = e?.node.current;
1948
1946
  if (!c || c.isConnected === !1)
1949
1947
  return;
1950
- const d = n(c), u = On(d, r);
1948
+ const d = n(c), u = Dn(d, r);
1951
1949
  if (a || (u.x = 0), s || (u.y = 0), o.current = !0, Math.abs(u.x) > 0 || Math.abs(u.y) > 0) {
1952
- const h = kn(c);
1953
- h && h.scrollBy({
1950
+ const f = Rn(c);
1951
+ f && f.scrollBy({
1954
1952
  top: u.y,
1955
1953
  left: u.x
1956
1954
  });
1957
1955
  }
1958
1956
  }, [e, a, s, r, n]);
1959
1957
  }
1960
- const be = /* @__PURE__ */ Tt(M(m({}, rt), {
1958
+ const fe = /* @__PURE__ */ Mt({
1959
+ ...et,
1961
1960
  scaleX: 1,
1962
1961
  scaleY: 1
1963
- }));
1964
- var vt;
1962
+ });
1963
+ var pt;
1965
1964
  (function(t) {
1966
1965
  t[t.Uninitialized = 0] = "Uninitialized", t[t.Initializing = 1] = "Initializing", t[t.Initialized = 2] = "Initialized";
1967
- })(vt || (vt = {}));
1968
- const Ei = /* @__PURE__ */ Mn(function(e) {
1966
+ })(pt || (pt = {}));
1967
+ const pi = /* @__PURE__ */ mn(function(e) {
1969
1968
  var n, r, i, o;
1970
- let en = e, {
1969
+ let {
1971
1970
  id: a,
1972
1971
  accessibility: s,
1973
1972
  autoScroll: l = !0,
1974
1973
  children: c,
1975
- sensors: d = wi,
1976
- collisionDetection: u = Pr,
1977
- measuring: h,
1978
- modifiers: p
1979
- } = en, b = te(en, [
1980
- "id",
1981
- "accessibility",
1982
- "autoScroll",
1983
- "children",
1984
- "sensors",
1985
- "collisionDetection",
1986
- "measuring",
1987
- "modifiers"
1988
- ]);
1989
- const f = dr(Di, void 0, Si), [g, w] = f, [y, v] = zr(), [x, C] = $(vt.Uninitialized), z = x === vt.Initialized, {
1974
+ sensors: d = si,
1975
+ collisionDetection: u = Dr,
1976
+ measuring: f,
1977
+ modifiers: p,
1978
+ ...b
1979
+ } = e;
1980
+ const h = Jn(ui, void 0, ci), [g, m] = h, [w, v] = fr(), [y, R] = j(pt.Uninitialized), z = y === pt.Initialized, {
1990
1981
  draggable: {
1991
- active: S,
1992
- nodes: R,
1993
- translate: N
1982
+ active: x,
1983
+ nodes: S,
1984
+ translate: E
1994
1985
  },
1995
1986
  droppable: {
1996
- containers: P
1987
+ containers: L
1997
1988
  }
1998
- } = g, A = S != null ? R.get(S) : null, F = O({
1989
+ } = g, N = x != null ? S.get(x) : null, H = T({
1999
1990
  initial: null,
2000
1991
  translated: null
2001
- }), W = E(() => {
2002
- var X;
2003
- return S != null ? {
2004
- id: S,
1992
+ }), P = C(() => {
1993
+ var Y;
1994
+ return x != null ? {
1995
+ id: x,
2005
1996
  // It's possible for the active node to unmount while dragging
2006
- data: (X = A == null ? void 0 : A.data) != null ? X : yi,
2007
- rect: F
1997
+ data: (Y = N?.data) != null ? Y : ai,
1998
+ rect: H
2008
1999
  } : null;
2009
- }, [S, A]), H = O(null), [Q, U] = $(null), [K, Gt] = $(null), at = Ft(b, Object.values(b)), St = ge("DndDescribedBy", a), me = E(() => P.getEnabled(), [P]), wt = Ci(h), {
2010
- droppableRects: Dt,
2011
- measureDroppableContainers: Vt,
2012
- measuringScheduled: je
2013
- } = li(me, {
2000
+ }, [x, N]), W = T(null), [q, $] = j(null), [X, Ut] = j(null), ot = Ht(b, Object.values(b)), yt = de("DndDescribedBy", a), pe = C(() => L.getEnabled(), [L]), bt = hi(f), {
2001
+ droppableRects: xt,
2002
+ measureDroppableContainers: Kt,
2003
+ measuringScheduled: We
2004
+ } = Vr(pe, {
2014
2005
  dragging: z,
2015
- dependencies: [N.x, N.y],
2016
- config: wt.droppable
2017
- }), et = si(R, S), Ye = E(() => K ? ue(K) : null, [K]), $e = or(), Xe = ci(et, wt.draggable.measure);
2018
- zi({
2019
- activeNode: S != null ? R.get(S) : null,
2020
- config: $e.layoutShiftCompensation,
2021
- initialRect: Xe,
2022
- measure: wt.draggable.measure
2006
+ dependencies: [E.x, E.y],
2007
+ config: bt.droppable
2008
+ }), Z = Kr(S, x), Ie = C(() => X ? se(X) : null, [X]), He = Vn(), _e = qr(Z, bt.draggable.measure);
2009
+ fi({
2010
+ activeNode: x != null ? S.get(x) : null,
2011
+ config: He.layoutShiftCompensation,
2012
+ initialRect: _e,
2013
+ measure: bt.draggable.measure
2023
2014
  });
2024
- const nt = pn(et, wt.draggable.measure, Xe), we = pn(et ? et.parentElement : null), yt = O({
2015
+ const tt = rn(Z, bt.draggable.measure, _e), ge = rn(Z ? Z.parentElement : null), mt = T({
2025
2016
  activatorEvent: null,
2026
2017
  active: null,
2027
- activeNode: et,
2018
+ activeNode: Z,
2028
2019
  collisionRect: null,
2029
2020
  collisions: null,
2030
- droppableRects: Dt,
2031
- draggableNodes: R,
2021
+ droppableRects: xt,
2022
+ draggableNodes: S,
2032
2023
  draggingNode: null,
2033
2024
  draggingNodeRect: null,
2034
- droppableContainers: P,
2025
+ droppableContainers: L,
2035
2026
  over: null,
2036
2027
  scrollableAncestors: [],
2037
2028
  scrollAdjustedTranslate: null
2038
- }), Ue = P.getNodeFor((n = yt.current.over) == null ? void 0 : n.id), xt = mi({
2039
- measure: wt.dragOverlay.measure
2040
- }), qt = (r = xt.nodeRef.current) != null ? r : et, Rt = z ? (i = xt.rect) != null ? i : nt : null, Ke = !!(xt.nodeRef.current && xt.rect), Ge = hi(Ke ? null : nt), ye = jn(qt ? G(qt) : null), dt = fi(z ? Ue != null ? Ue : et : null), Jt = bi(dt), Qt = Un(p, {
2029
+ }), Fe = L.getNodeFor((n = mt.current.over) == null ? void 0 : n.id), wt = oi({
2030
+ measure: bt.dragOverlay.measure
2031
+ }), Gt = (r = wt.nodeRef.current) != null ? r : Z, Dt = z ? (i = wt.rect) != null ? i : tt : null, je = !!(wt.nodeRef.current && wt.rect), Ye = Zr(je ? null : tt), ve = On(Gt ? U(Gt) : null), ct = ti(z ? Fe ?? Z : null), Vt = ii(ct), qt = Bn(p, {
2041
2032
  transform: {
2042
- x: N.x - Ge.x,
2043
- y: N.y - Ge.y,
2033
+ x: E.x - Ye.x,
2034
+ y: E.y - Ye.y,
2044
2035
  scaleX: 1,
2045
2036
  scaleY: 1
2046
2037
  },
2047
- activatorEvent: K,
2048
- active: W,
2049
- activeNodeRect: nt,
2050
- containerNodeRect: we,
2051
- draggingNodeRect: Rt,
2052
- over: yt.current.over,
2053
- overlayNodeRect: xt.rect,
2054
- scrollableAncestors: dt,
2055
- scrollableAncestorRects: Jt,
2056
- windowRect: ye
2057
- }), Ve = Ye ? Nt(Ye, N) : null, qe = pi(dt), Qn = vn(qe), Zn = vn(qe, [nt]), Ct = Nt(Qt, Qn), zt = Rt ? Ir(Rt, Qt) : null, kt = W && zt ? u({
2058
- active: W,
2059
- collisionRect: zt,
2060
- droppableRects: Dt,
2061
- droppableContainers: me,
2062
- pointerCoordinates: Ve
2063
- }) : null, Je = Lr(kt, "id"), [ht, Qe] = $(null), tr = Ke ? Qt : Nt(Qt, Zn), er = Br(tr, (o = ht == null ? void 0 : ht.rect) != null ? o : null, nt), xe = O(null), Ze = L(
2064
- (X, V) => {
2038
+ activatorEvent: X,
2039
+ active: P,
2040
+ activeNodeRect: tt,
2041
+ containerNodeRect: ge,
2042
+ draggingNodeRect: Dt,
2043
+ over: mt.current.over,
2044
+ overlayNodeRect: wt.rect,
2045
+ scrollableAncestors: ct,
2046
+ scrollableAncestorRects: Vt,
2047
+ windowRect: ve
2048
+ }), $e = Ie ? Et(Ie, E) : null, Xe = ei(ct), jn = sn(Xe), Yn = sn(Xe, [tt]), St = Et(qt, jn), Rt = Dt ? Cr(Dt, qt) : null, Ot = P && Rt ? u({
2049
+ active: P,
2050
+ collisionRect: Rt,
2051
+ droppableRects: xt,
2052
+ droppableContainers: pe,
2053
+ pointerCoordinates: $e
2054
+ }) : null, Ue = yr(Ot, "id"), [ut, Ke] = j(null), $n = je ? qt : Et(qt, Yn), Xn = Sr($n, (o = ut?.rect) != null ? o : null, tt), be = T(null), Ge = A(
2055
+ (Y, K) => {
2065
2056
  let {
2066
- sensor: q,
2067
- options: ft
2068
- } = V;
2069
- if (H.current == null)
2057
+ sensor: G,
2058
+ options: dt
2059
+ } = K;
2060
+ if (W.current == null)
2070
2061
  return;
2071
- const Z = R.get(H.current);
2072
- if (!Z)
2062
+ const J = S.get(W.current);
2063
+ if (!J)
2073
2064
  return;
2074
- const J = X.nativeEvent, it = new q({
2075
- active: H.current,
2076
- activeNode: Z,
2077
- event: J,
2078
- options: ft,
2065
+ const V = Y.nativeEvent, nt = new G({
2066
+ active: W.current,
2067
+ activeNode: J,
2068
+ event: V,
2069
+ options: dt,
2079
2070
  // Sensors need to be instantiated with refs for arguments that change over time
2080
2071
  // otherwise they are frozen in time with the stale arguments
2081
- context: yt,
2082
- onAbort(Y) {
2083
- if (!R.get(Y))
2072
+ context: mt,
2073
+ onAbort(F) {
2074
+ if (!S.get(F))
2084
2075
  return;
2085
2076
  const {
2086
- onDragAbort: ot
2087
- } = at.current, lt = {
2088
- id: Y
2077
+ onDragAbort: rt
2078
+ } = ot.current, st = {
2079
+ id: F
2089
2080
  };
2090
- ot == null || ot(lt), y({
2081
+ rt?.(st), w({
2091
2082
  type: "onDragAbort",
2092
- event: lt
2083
+ event: st
2093
2084
  });
2094
2085
  },
2095
- onPending(Y, pt, ot, lt) {
2096
- if (!R.get(Y))
2086
+ onPending(F, ht, rt, st) {
2087
+ if (!S.get(F))
2097
2088
  return;
2098
2089
  const {
2099
- onDragPending: Bt
2100
- } = at.current, gt = {
2101
- id: Y,
2102
- constraint: pt,
2103
- initialCoordinates: ot,
2104
- offset: lt
2090
+ onDragPending: kt
2091
+ } = ot.current, ft = {
2092
+ id: F,
2093
+ constraint: ht,
2094
+ initialCoordinates: rt,
2095
+ offset: st
2105
2096
  };
2106
- Bt == null || Bt(gt), y({
2097
+ kt?.(ft), w({
2107
2098
  type: "onDragPending",
2108
- event: gt
2099
+ event: ft
2109
2100
  });
2110
2101
  },
2111
- onStart(Y) {
2112
- const pt = H.current;
2113
- if (pt == null)
2102
+ onStart(F) {
2103
+ const ht = W.current;
2104
+ if (ht == null)
2114
2105
  return;
2115
- const ot = R.get(pt);
2116
- if (!ot)
2106
+ const rt = S.get(ht);
2107
+ if (!rt)
2117
2108
  return;
2118
2109
  const {
2119
- onDragStart: lt
2120
- } = at.current, Pt = {
2121
- activatorEvent: J,
2110
+ onDragStart: st
2111
+ } = ot.current, Lt = {
2112
+ activatorEvent: V,
2122
2113
  active: {
2123
- id: pt,
2124
- data: ot.data,
2125
- rect: F
2114
+ id: ht,
2115
+ data: rt.data,
2116
+ rect: H
2126
2117
  }
2127
2118
  };
2128
- ee(() => {
2129
- lt == null || lt(Pt), C(vt.Initializing), w({
2130
- type: _.DragStart,
2131
- initialCoordinates: Y,
2132
- active: pt
2133
- }), y({
2119
+ Jt(() => {
2120
+ st?.(Lt), R(pt.Initializing), m({
2121
+ type: I.DragStart,
2122
+ initialCoordinates: F,
2123
+ active: ht
2124
+ }), w({
2134
2125
  type: "onDragStart",
2135
- event: Pt
2136
- }), U(xe.current), Gt(J);
2126
+ event: Lt
2127
+ }), $(be.current), Ut(V);
2137
2128
  });
2138
2129
  },
2139
- onMove(Y) {
2140
- w({
2141
- type: _.DragMove,
2142
- coordinates: Y
2130
+ onMove(F) {
2131
+ m({
2132
+ type: I.DragMove,
2133
+ coordinates: F
2143
2134
  });
2144
2135
  },
2145
- onEnd: Et(_.DragEnd),
2146
- onCancel: Et(_.DragCancel)
2136
+ onEnd: Ct(I.DragEnd),
2137
+ onCancel: Ct(I.DragCancel)
2147
2138
  });
2148
- xe.current = it;
2149
- function Et(Y) {
2150
- return function() {
2151
- return sn(this, null, function* () {
2139
+ be.current = nt;
2140
+ function Ct(F) {
2141
+ return async function() {
2142
+ const {
2143
+ active: rt,
2144
+ collisions: st,
2145
+ over: Lt,
2146
+ scrollAdjustedTranslate: kt
2147
+ } = mt.current;
2148
+ let ft = null;
2149
+ if (rt && kt) {
2152
2150
  const {
2153
- active: ot,
2154
- collisions: lt,
2155
- over: Pt,
2156
- scrollAdjustedTranslate: Bt
2157
- } = yt.current;
2158
- let gt = null;
2159
- if (ot && Bt) {
2160
- const {
2161
- cancelDrop: Wt
2162
- } = at.current;
2163
- gt = {
2164
- activatorEvent: J,
2165
- active: ot,
2166
- collisions: lt,
2167
- delta: Bt,
2168
- over: Pt
2169
- }, Y === _.DragEnd && typeof Wt == "function" && (yield Promise.resolve(Wt(gt))) && (Y = _.DragCancel);
2151
+ cancelDrop: Pt
2152
+ } = ot.current;
2153
+ ft = {
2154
+ activatorEvent: V,
2155
+ active: rt,
2156
+ collisions: st,
2157
+ delta: kt,
2158
+ over: Lt
2159
+ }, F === I.DragEnd && typeof Pt == "function" && await Promise.resolve(Pt(ft)) && (F = I.DragCancel);
2160
+ }
2161
+ W.current = null, Jt(() => {
2162
+ m({
2163
+ type: F
2164
+ }), R(pt.Uninitialized), Ke(null), $(null), Ut(null), be.current = null;
2165
+ const Pt = F === I.DragEnd ? "onDragEnd" : "onDragCancel";
2166
+ if (ft) {
2167
+ const me = ot.current[Pt];
2168
+ me?.(ft), w({
2169
+ type: Pt,
2170
+ event: ft
2171
+ });
2170
2172
  }
2171
- H.current = null, ee(() => {
2172
- w({
2173
- type: Y
2174
- }), C(vt.Uninitialized), Qe(null), U(null), Gt(null), xe.current = null;
2175
- const Wt = Y === _.DragEnd ? "onDragEnd" : "onDragCancel";
2176
- if (gt) {
2177
- const Se = at.current[Wt];
2178
- Se == null || Se(gt), y({
2179
- type: Wt,
2180
- event: gt
2181
- });
2182
- }
2183
- });
2184
2173
  });
2185
2174
  };
2186
2175
  }
2187
2176
  },
2188
2177
  // eslint-disable-next-line react-hooks/exhaustive-deps
2189
- [R]
2190
- ), nr = L((X, V) => (q, ft) => {
2191
- const Z = q.nativeEvent, J = R.get(ft);
2178
+ [S]
2179
+ ), Un = A((Y, K) => (G, dt) => {
2180
+ const J = G.nativeEvent, V = S.get(dt);
2192
2181
  if (
2193
2182
  // Another sensor is already instantiating
2194
- H.current !== null || // No active draggable
2195
- !J || // Event has already been captured
2196
- Z.dndKit || Z.defaultPrevented
2183
+ W.current !== null || // No active draggable
2184
+ !V || // Event has already been captured
2185
+ J.dndKit || J.defaultPrevented
2197
2186
  )
2198
2187
  return;
2199
- const it = {
2200
- active: J
2188
+ const nt = {
2189
+ active: V
2201
2190
  };
2202
- X(q, V.options, it) === !0 && (Z.dndKit = {
2203
- capturedBy: V.sensor
2204
- }, H.current = ft, Ze(q, V));
2205
- }, [R, Ze]), tn = ai(d, nr);
2206
- gi(d), ct(() => {
2207
- nt && x === vt.Initializing && C(vt.Initialized);
2208
- }, [nt, x]), k(
2191
+ Y(G, K.options, nt) === !0 && (J.dndKit = {
2192
+ capturedBy: K.sensor
2193
+ }, W.current = dt, Ge(G, K));
2194
+ }, [S, Ge]), Ve = Gr(d, Un);
2195
+ ni(d), at(() => {
2196
+ tt && y === pt.Initializing && R(pt.Initialized);
2197
+ }, [tt, y]), O(
2209
2198
  () => {
2210
2199
  const {
2211
- onDragMove: X
2212
- } = at.current, {
2213
- active: V,
2214
- activatorEvent: q,
2215
- collisions: ft,
2216
- over: Z
2217
- } = yt.current;
2218
- if (!V || !q)
2200
+ onDragMove: Y
2201
+ } = ot.current, {
2202
+ active: K,
2203
+ activatorEvent: G,
2204
+ collisions: dt,
2205
+ over: J
2206
+ } = mt.current;
2207
+ if (!K || !G)
2219
2208
  return;
2220
- const J = {
2221
- active: V,
2222
- activatorEvent: q,
2223
- collisions: ft,
2209
+ const V = {
2210
+ active: K,
2211
+ activatorEvent: G,
2212
+ collisions: dt,
2224
2213
  delta: {
2225
- x: Ct.x,
2226
- y: Ct.y
2214
+ x: St.x,
2215
+ y: St.y
2227
2216
  },
2228
- over: Z
2217
+ over: J
2229
2218
  };
2230
- ee(() => {
2231
- X == null || X(J), y({
2219
+ Jt(() => {
2220
+ Y?.(V), w({
2232
2221
  type: "onDragMove",
2233
- event: J
2222
+ event: V
2234
2223
  });
2235
2224
  });
2236
2225
  },
2237
2226
  // eslint-disable-next-line react-hooks/exhaustive-deps
2238
- [Ct.x, Ct.y]
2239
- ), k(
2227
+ [St.x, St.y]
2228
+ ), O(
2240
2229
  () => {
2241
2230
  const {
2242
- active: X,
2243
- activatorEvent: V,
2244
- collisions: q,
2245
- droppableContainers: ft,
2246
- scrollAdjustedTranslate: Z
2247
- } = yt.current;
2248
- if (!X || H.current == null || !V || !Z)
2231
+ active: Y,
2232
+ activatorEvent: K,
2233
+ collisions: G,
2234
+ droppableContainers: dt,
2235
+ scrollAdjustedTranslate: J
2236
+ } = mt.current;
2237
+ if (!Y || W.current == null || !K || !J)
2249
2238
  return;
2250
2239
  const {
2251
- onDragOver: J
2252
- } = at.current, it = ft.get(Je), Et = it && it.rect.current ? {
2253
- id: it.id,
2254
- rect: it.rect.current,
2255
- data: it.data,
2256
- disabled: it.disabled
2257
- } : null, Y = {
2258
- active: X,
2259
- activatorEvent: V,
2260
- collisions: q,
2240
+ onDragOver: V
2241
+ } = ot.current, nt = dt.get(Ue), Ct = nt && nt.rect.current ? {
2242
+ id: nt.id,
2243
+ rect: nt.rect.current,
2244
+ data: nt.data,
2245
+ disabled: nt.disabled
2246
+ } : null, F = {
2247
+ active: Y,
2248
+ activatorEvent: K,
2249
+ collisions: G,
2261
2250
  delta: {
2262
- x: Z.x,
2263
- y: Z.y
2251
+ x: J.x,
2252
+ y: J.y
2264
2253
  },
2265
- over: Et
2254
+ over: Ct
2266
2255
  };
2267
- ee(() => {
2268
- Qe(Et), J == null || J(Y), y({
2256
+ Jt(() => {
2257
+ Ke(Ct), V?.(F), w({
2269
2258
  type: "onDragOver",
2270
- event: Y
2259
+ event: F
2271
2260
  });
2272
2261
  });
2273
2262
  },
2274
2263
  // eslint-disable-next-line react-hooks/exhaustive-deps
2275
- [Je]
2276
- ), ct(() => {
2277
- yt.current = {
2278
- activatorEvent: K,
2279
- active: W,
2280
- activeNode: et,
2281
- collisionRect: zt,
2282
- collisions: kt,
2283
- droppableRects: Dt,
2284
- draggableNodes: R,
2285
- draggingNode: qt,
2286
- draggingNodeRect: Rt,
2287
- droppableContainers: P,
2288
- over: ht,
2289
- scrollableAncestors: dt,
2290
- scrollAdjustedTranslate: Ct
2291
- }, F.current = {
2292
- initial: Rt,
2293
- translated: zt
2264
+ [Ue]
2265
+ ), at(() => {
2266
+ mt.current = {
2267
+ activatorEvent: X,
2268
+ active: P,
2269
+ activeNode: Z,
2270
+ collisionRect: Rt,
2271
+ collisions: Ot,
2272
+ droppableRects: xt,
2273
+ draggableNodes: S,
2274
+ draggingNode: Gt,
2275
+ draggingNodeRect: Dt,
2276
+ droppableContainers: L,
2277
+ over: ut,
2278
+ scrollableAncestors: ct,
2279
+ scrollAdjustedTranslate: St
2280
+ }, H.current = {
2281
+ initial: Dt,
2282
+ translated: Rt
2294
2283
  };
2295
- }, [W, et, kt, zt, R, qt, Rt, Dt, P, ht, dt, Ct]), ri(M(m({}, $e), {
2296
- delta: N,
2297
- draggingRect: zt,
2298
- pointerCoordinates: Ve,
2299
- scrollableAncestors: dt,
2300
- scrollableAncestorRects: Jt
2301
- }));
2302
- const rr = E(() => ({
2303
- active: W,
2304
- activeNode: et,
2305
- activeNodeRect: nt,
2306
- activatorEvent: K,
2307
- collisions: kt,
2308
- containerNodeRect: we,
2309
- dragOverlay: xt,
2310
- draggableNodes: R,
2311
- droppableContainers: P,
2312
- droppableRects: Dt,
2313
- over: ht,
2314
- measureDroppableContainers: Vt,
2315
- scrollableAncestors: dt,
2316
- scrollableAncestorRects: Jt,
2317
- measuringConfiguration: wt,
2318
- measuringScheduled: je,
2319
- windowRect: ye
2320
- }), [W, et, nt, K, kt, we, xt, R, P, Dt, ht, Vt, dt, Jt, wt, je, ye]), ir = E(() => ({
2321
- activatorEvent: K,
2322
- activators: tn,
2323
- active: W,
2324
- activeNodeRect: nt,
2284
+ }, [P, Z, Ot, Rt, S, Gt, Dt, xt, L, ut, ct, St]), $r({
2285
+ ...He,
2286
+ delta: E,
2287
+ draggingRect: Rt,
2288
+ pointerCoordinates: $e,
2289
+ scrollableAncestors: ct,
2290
+ scrollableAncestorRects: Vt
2291
+ });
2292
+ const Kn = C(() => ({
2293
+ active: P,
2294
+ activeNode: Z,
2295
+ activeNodeRect: tt,
2296
+ activatorEvent: X,
2297
+ collisions: Ot,
2298
+ containerNodeRect: ge,
2299
+ dragOverlay: wt,
2300
+ draggableNodes: S,
2301
+ droppableContainers: L,
2302
+ droppableRects: xt,
2303
+ over: ut,
2304
+ measureDroppableContainers: Kt,
2305
+ scrollableAncestors: ct,
2306
+ scrollableAncestorRects: Vt,
2307
+ measuringConfiguration: bt,
2308
+ measuringScheduled: We,
2309
+ windowRect: ve
2310
+ }), [P, Z, tt, X, Ot, ge, wt, S, L, xt, ut, Kt, ct, Vt, bt, We, ve]), Gn = C(() => ({
2311
+ activatorEvent: X,
2312
+ activators: Ve,
2313
+ active: P,
2314
+ activeNodeRect: tt,
2325
2315
  ariaDescribedById: {
2326
- draggable: St
2316
+ draggable: yt
2327
2317
  },
2328
- dispatch: w,
2329
- draggableNodes: R,
2330
- over: ht,
2331
- measureDroppableContainers: Vt
2332
- }), [K, tn, W, nt, w, St, R, ht, Vt]);
2333
- return B.createElement(An.Provider, {
2318
+ dispatch: m,
2319
+ draggableNodes: S,
2320
+ over: ut,
2321
+ measureDroppableContainers: Kt
2322
+ }), [X, Ve, P, tt, m, yt, S, ut, Kt]);
2323
+ return k.createElement(xn.Provider, {
2334
2324
  value: v
2335
- }, B.createElement(Kt.Provider, {
2336
- value: ir
2337
- }, B.createElement(Xn.Provider, {
2338
- value: rr
2339
- }, B.createElement(be.Provider, {
2340
- value: er
2341
- }, c)), B.createElement(Ri, {
2342
- disabled: (s == null ? void 0 : s.restoreFocus) === !1
2343
- })), B.createElement(Nr, M(m({}, s), {
2344
- hiddenTextDescribedById: St
2345
- })));
2346
- function or() {
2347
- const X = (Q == null ? void 0 : Q.autoScrollEnabled) === !1, V = typeof l == "object" ? l.enabled === !1 : l === !1, q = z && !X && !V;
2348
- return typeof l == "object" ? M(m({}, l), {
2349
- enabled: q
2350
- }) : {
2351
- enabled: q
2325
+ }, k.createElement(Xt.Provider, {
2326
+ value: Gn
2327
+ }, k.createElement(Pn.Provider, {
2328
+ value: Kn
2329
+ }, k.createElement(fe.Provider, {
2330
+ value: Xn
2331
+ }, c)), k.createElement(di, {
2332
+ disabled: s?.restoreFocus === !1
2333
+ })), k.createElement(vr, {
2334
+ ...s,
2335
+ hiddenTextDescribedById: yt
2336
+ }));
2337
+ function Vn() {
2338
+ const Y = q?.autoScrollEnabled === !1, K = typeof l == "object" ? l.enabled === !1 : l === !1, G = z && !Y && !K;
2339
+ return typeof l == "object" ? {
2340
+ ...l,
2341
+ enabled: G
2342
+ } : {
2343
+ enabled: G
2352
2344
  };
2353
2345
  }
2354
- }), Mi = /* @__PURE__ */ Tt(null), mn = "button", Ni = "Draggable";
2355
- function Ti(t) {
2346
+ }), gi = /* @__PURE__ */ Mt(null), ln = "button", vi = "Draggable";
2347
+ function bi(t) {
2356
2348
  let {
2357
2349
  id: e,
2358
2350
  data: n,
2359
2351
  disabled: r = !1,
2360
2352
  attributes: i
2361
2353
  } = t;
2362
- const o = ge(Ni), {
2354
+ const o = de(vi), {
2363
2355
  activators: a,
2364
2356
  activatorEvent: s,
2365
2357
  active: l,
2366
2358
  activeNodeRect: c,
2367
2359
  ariaDescribedById: d,
2368
2360
  draggableNodes: u,
2369
- over: h
2370
- } = mt(Kt), {
2371
- role: p = mn,
2361
+ over: f
2362
+ } = vt(Xt), {
2363
+ role: p = ln,
2372
2364
  roleDescription: b = "draggable",
2373
- tabIndex: f = 0
2374
- } = i != null ? i : {}, g = (l == null ? void 0 : l.id) === e, w = mt(g ? be : Mi), [y, v] = ae(), [x, C] = ae(), z = vi(a, e), S = Ft(n);
2375
- ct(
2365
+ tabIndex: h = 0
2366
+ } = i ?? {}, g = l?.id === e, m = vt(g ? fe : gi), [w, v] = re(), [y, R] = re(), z = ri(a, e), x = Ht(n);
2367
+ at(
2376
2368
  () => (u.set(e, {
2377
2369
  id: e,
2378
2370
  key: o,
2379
- node: y,
2380
- activatorNode: x,
2381
- data: S
2371
+ node: w,
2372
+ activatorNode: y,
2373
+ data: x
2382
2374
  }), () => {
2383
- const N = u.get(e);
2384
- N && N.key === o && u.delete(e);
2375
+ const E = u.get(e);
2376
+ E && E.key === o && u.delete(e);
2385
2377
  }),
2386
2378
  // eslint-disable-next-line react-hooks/exhaustive-deps
2387
2379
  [u, e]
2388
2380
  );
2389
- const R = E(() => ({
2381
+ const S = C(() => ({
2390
2382
  role: p,
2391
- tabIndex: f,
2383
+ tabIndex: h,
2392
2384
  "aria-disabled": r,
2393
- "aria-pressed": g && p === mn ? !0 : void 0,
2385
+ "aria-pressed": g && p === ln ? !0 : void 0,
2394
2386
  "aria-roledescription": b,
2395
2387
  "aria-describedby": d.draggable
2396
- }), [r, p, f, g, b, d.draggable]);
2388
+ }), [r, p, h, g, b, d.draggable]);
2397
2389
  return {
2398
2390
  active: l,
2399
2391
  activatorEvent: s,
2400
2392
  activeNodeRect: c,
2401
- attributes: R,
2393
+ attributes: S,
2402
2394
  isDragging: g,
2403
2395
  listeners: r ? void 0 : z,
2404
- node: y,
2405
- over: h,
2396
+ node: w,
2397
+ over: f,
2406
2398
  setNodeRef: v,
2407
- setActivatorNodeRef: C,
2408
- transform: w
2399
+ setActivatorNodeRef: R,
2400
+ transform: m
2409
2401
  };
2410
2402
  }
2411
- function Ai() {
2412
- return mt(Xn);
2403
+ function mi() {
2404
+ return vt(Pn);
2413
2405
  }
2414
- const Oi = "Droppable", Li = {
2406
+ const wi = "Droppable", yi = {
2415
2407
  timeout: 25
2416
2408
  };
2417
- function ki(t) {
2409
+ function xi(t) {
2418
2410
  let {
2419
2411
  data: e,
2420
2412
  disabled: n = !1,
2421
2413
  id: r,
2422
2414
  resizeObserverConfig: i
2423
2415
  } = t;
2424
- const o = ge(Oi), {
2416
+ const o = de(wi), {
2425
2417
  active: a,
2426
2418
  dispatch: s,
2427
2419
  over: l,
2428
2420
  measureDroppableContainers: c
2429
- } = mt(Kt), d = O({
2421
+ } = vt(Xt), d = T({
2430
2422
  disabled: n
2431
- }), u = O(!1), h = O(null), p = O(null), {
2423
+ }), u = T(!1), f = T(null), p = T(null), {
2432
2424
  disabled: b,
2433
- updateMeasurementsFor: f,
2425
+ updateMeasurementsFor: h,
2434
2426
  timeout: g
2435
- } = m(m({}, Li), i), w = Ft(f != null ? f : r), y = L(
2427
+ } = {
2428
+ ...yi,
2429
+ ...i
2430
+ }, m = Ht(h ?? r), w = A(
2436
2431
  () => {
2437
2432
  if (!u.current) {
2438
2433
  u.current = !0;
2439
2434
  return;
2440
2435
  }
2441
2436
  p.current != null && clearTimeout(p.current), p.current = setTimeout(() => {
2442
- c(Array.isArray(w.current) ? w.current : [w.current]), p.current = null;
2437
+ c(Array.isArray(m.current) ? m.current : [m.current]), p.current = null;
2443
2438
  }, g);
2444
2439
  },
2445
2440
  //eslint-disable-next-line react-hooks/exhaustive-deps
2446
2441
  [g]
2447
- ), v = ve({
2448
- callback: y,
2442
+ ), v = he({
2443
+ callback: w,
2449
2444
  disabled: b || !a
2450
- }), x = L((R, N) => {
2451
- v && (N && (v.unobserve(N), u.current = !1), R && v.observe(R));
2452
- }, [v]), [C, z] = ae(x), S = Ft(e);
2453
- return k(() => {
2454
- !v || !C.current || (v.disconnect(), u.current = !1, v.observe(C.current));
2455
- }, [C, v]), k(
2445
+ }), y = A((S, E) => {
2446
+ v && (E && (v.unobserve(E), u.current = !1), S && v.observe(S));
2447
+ }, [v]), [R, z] = re(y), x = Ht(e);
2448
+ return O(() => {
2449
+ !v || !R.current || (v.disconnect(), u.current = !1, v.observe(R.current));
2450
+ }, [R, v]), O(
2456
2451
  () => (s({
2457
- type: _.RegisterDroppable,
2452
+ type: I.RegisterDroppable,
2458
2453
  element: {
2459
2454
  id: r,
2460
2455
  key: o,
2461
2456
  disabled: n,
2462
- node: C,
2463
- rect: h,
2464
- data: S
2457
+ node: R,
2458
+ rect: f,
2459
+ data: x
2465
2460
  }
2466
2461
  }), () => s({
2467
- type: _.UnregisterDroppable,
2462
+ type: I.UnregisterDroppable,
2468
2463
  key: o,
2469
2464
  id: r
2470
2465
  })),
2471
2466
  // eslint-disable-next-line react-hooks/exhaustive-deps
2472
2467
  [r]
2473
- ), k(() => {
2468
+ ), O(() => {
2474
2469
  n !== d.current.disabled && (s({
2475
- type: _.SetDroppableDisabled,
2470
+ type: I.SetDroppableDisabled,
2476
2471
  id: r,
2477
2472
  key: o,
2478
2473
  disabled: n
2479
2474
  }), d.current.disabled = n);
2480
2475
  }, [r, o, n, s]), {
2481
2476
  active: a,
2482
- rect: h,
2483
- isOver: (l == null ? void 0 : l.id) === r,
2484
- node: C,
2477
+ rect: f,
2478
+ isOver: l?.id === r,
2479
+ node: R,
2485
2480
  over: l,
2486
2481
  setNodeRef: z
2487
2482
  };
2488
2483
  }
2489
- function Pi(t) {
2484
+ function Di(t) {
2490
2485
  let {
2491
2486
  animation: e,
2492
2487
  children: n
2493
2488
  } = t;
2494
- const [r, i] = $(null), [o, a] = $(null), s = le(n);
2495
- return !n && !r && s && i(s), ct(() => {
2489
+ const [r, i] = j(null), [o, a] = j(null), s = ie(n);
2490
+ return !n && !r && s && i(s), at(() => {
2496
2491
  if (!o)
2497
2492
  return;
2498
- const l = r == null ? void 0 : r.key, c = r == null ? void 0 : r.props.id;
2493
+ const l = r?.key, c = r?.props.id;
2499
2494
  if (l == null || c == null) {
2500
2495
  i(null);
2501
2496
  return;
@@ -2503,30 +2498,30 @@ function Pi(t) {
2503
2498
  Promise.resolve(e(c, o)).then(() => {
2504
2499
  i(null);
2505
2500
  });
2506
- }, [e, r, o]), B.createElement(B.Fragment, null, n, r ? fr(r, {
2501
+ }, [e, r, o]), k.createElement(k.Fragment, null, n, r ? Zn(r, {
2507
2502
  ref: a
2508
2503
  }) : null);
2509
2504
  }
2510
- const Bi = {
2505
+ const Si = {
2511
2506
  x: 0,
2512
2507
  y: 0,
2513
2508
  scaleX: 1,
2514
2509
  scaleY: 1
2515
2510
  };
2516
- function Wi(t) {
2511
+ function Ri(t) {
2517
2512
  let {
2518
2513
  children: e
2519
2514
  } = t;
2520
- return B.createElement(Kt.Provider, {
2521
- value: $n
2522
- }, B.createElement(be.Provider, {
2523
- value: Bi
2515
+ return k.createElement(Xt.Provider, {
2516
+ value: kn
2517
+ }, k.createElement(fe.Provider, {
2518
+ value: Si
2524
2519
  }, e));
2525
2520
  }
2526
- const Ii = {
2521
+ const Ci = {
2527
2522
  position: "fixed",
2528
2523
  touchAction: "none"
2529
- }, Hi = (t) => Pe(t) ? "transform 250ms ease" : void 0, _i = /* @__PURE__ */ hr((t, e) => {
2524
+ }, zi = (t) => Te(t) ? "transform 250ms ease" : void 0, Ei = /* @__PURE__ */ Qn((t, e) => {
2530
2525
  let {
2531
2526
  as: n,
2532
2527
  activatorEvent: r,
@@ -2536,28 +2531,31 @@ const Ii = {
2536
2531
  rect: s,
2537
2532
  style: l,
2538
2533
  transform: c,
2539
- transition: d = Hi
2534
+ transition: d = zi
2540
2535
  } = t;
2541
2536
  if (!s)
2542
2537
  return null;
2543
- const u = i ? c : M(m({}, c), {
2538
+ const u = i ? c : {
2539
+ ...c,
2544
2540
  scaleX: 1,
2545
2541
  scaleY: 1
2546
- }), h = m(M(m({}, Ii), {
2542
+ }, f = {
2543
+ ...Ci,
2547
2544
  width: s.width,
2548
2545
  height: s.height,
2549
2546
  top: s.top,
2550
2547
  left: s.left,
2551
- transform: jt.Transform.toString(u),
2552
- transformOrigin: i && r ? Ar(r, s) : void 0,
2553
- transition: typeof d == "function" ? d(r) : d
2554
- }), l);
2555
- return B.createElement(n, {
2548
+ transform: _t.Transform.toString(u),
2549
+ transformOrigin: i && r ? mr(r, s) : void 0,
2550
+ transition: typeof d == "function" ? d(r) : d,
2551
+ ...l
2552
+ };
2553
+ return k.createElement(n, {
2556
2554
  className: a,
2557
- style: h,
2555
+ style: f,
2558
2556
  ref: e
2559
2557
  }, o);
2560
- }), Fi = (t) => (e) => {
2558
+ }), Mi = (t) => (e) => {
2561
2559
  let {
2562
2560
  active: n,
2563
2561
  dragOverlay: r
@@ -2577,7 +2575,7 @@ const Ii = {
2577
2575
  n.node.style.setProperty(l, c);
2578
2576
  a != null && a.active && n.node.classList.remove(a.active);
2579
2577
  };
2580
- }, ji = (t) => {
2578
+ }, Ni = (t) => {
2581
2579
  let {
2582
2580
  transform: {
2583
2581
  initial: e,
@@ -2585,15 +2583,15 @@ const Ii = {
2585
2583
  }
2586
2584
  } = t;
2587
2585
  return [{
2588
- transform: jt.Transform.toString(e)
2586
+ transform: _t.Transform.toString(e)
2589
2587
  }, {
2590
- transform: jt.Transform.toString(n)
2588
+ transform: _t.Transform.toString(n)
2591
2589
  }];
2592
- }, Yi = {
2590
+ }, Ti = {
2593
2591
  duration: 250,
2594
2592
  easing: "ease",
2595
- keyframes: ji,
2596
- sideEffects: /* @__PURE__ */ Fi({
2593
+ keyframes: Ni,
2594
+ sideEffects: /* @__PURE__ */ Mi({
2597
2595
  styles: {
2598
2596
  active: {
2599
2597
  opacity: "0"
@@ -2601,14 +2599,14 @@ const Ii = {
2601
2599
  }
2602
2600
  })
2603
2601
  };
2604
- function $i(t) {
2602
+ function Ai(t) {
2605
2603
  let {
2606
2604
  config: e,
2607
2605
  draggableNodes: n,
2608
2606
  droppableContainers: r,
2609
2607
  measuringConfiguration: i
2610
2608
  } = t;
2611
- return pe((o, a) => {
2609
+ return ue((o, a) => {
2612
2610
  if (e === null)
2613
2611
  return;
2614
2612
  const s = n.get(o);
@@ -2617,16 +2615,16 @@ function $i(t) {
2617
2615
  const l = s.node.current;
2618
2616
  if (!l)
2619
2617
  return;
2620
- const c = Yn(a);
2618
+ const c = Ln(a);
2621
2619
  if (!c)
2622
2620
  return;
2623
2621
  const {
2624
2622
  transform: d
2625
- } = G(a).getComputedStyle(a), u = Ln(d);
2623
+ } = U(a).getComputedStyle(a), u = Sn(d);
2626
2624
  if (!u)
2627
2625
  return;
2628
- const h = typeof e == "function" ? e : Xi(e);
2629
- return _n(l, i.draggable.measure), h({
2626
+ const f = typeof e == "function" ? e : Oi(e);
2627
+ return Tn(l, i.draggable.measure), f({
2630
2628
  active: {
2631
2629
  id: o,
2632
2630
  data: s.data,
@@ -2644,23 +2642,23 @@ function $i(t) {
2644
2642
  });
2645
2643
  });
2646
2644
  }
2647
- function Xi(t) {
2645
+ function Oi(t) {
2648
2646
  const {
2649
2647
  duration: e,
2650
2648
  easing: n,
2651
2649
  sideEffects: r,
2652
2650
  keyframes: i
2653
- } = m(m({}, Yi), t);
2651
+ } = {
2652
+ ...Ti,
2653
+ ...t
2654
+ };
2654
2655
  return (o) => {
2655
- let y = o, {
2656
+ let {
2656
2657
  active: a,
2657
2658
  dragOverlay: s,
2658
- transform: l
2659
- } = y, c = te(y, [
2660
- "active",
2661
- "dragOverlay",
2662
- "transform"
2663
- ]);
2659
+ transform: l,
2660
+ ...c
2661
+ } = o;
2664
2662
  if (!e)
2665
2663
  return;
2666
2664
  const d = {
@@ -2669,42 +2667,45 @@ function Xi(t) {
2669
2667
  }, u = {
2670
2668
  scaleX: l.scaleX !== 1 ? a.rect.width * l.scaleX / s.rect.width : 1,
2671
2669
  scaleY: l.scaleY !== 1 ? a.rect.height * l.scaleY / s.rect.height : 1
2672
- }, h = m({
2670
+ }, f = {
2673
2671
  x: l.x - d.x,
2674
- y: l.y - d.y
2675
- }, u), p = i(M(m({}, c), {
2672
+ y: l.y - d.y,
2673
+ ...u
2674
+ }, p = i({
2675
+ ...c,
2676
2676
  active: a,
2677
2677
  dragOverlay: s,
2678
2678
  transform: {
2679
2679
  initial: l,
2680
- final: h
2680
+ final: f
2681
2681
  }
2682
- })), [b] = p, f = p[p.length - 1];
2683
- if (JSON.stringify(b) === JSON.stringify(f))
2682
+ }), [b] = p, h = p[p.length - 1];
2683
+ if (JSON.stringify(b) === JSON.stringify(h))
2684
2684
  return;
2685
- const g = r == null ? void 0 : r(m({
2685
+ const g = r?.({
2686
2686
  active: a,
2687
- dragOverlay: s
2688
- }, c)), w = s.node.animate(p, {
2687
+ dragOverlay: s,
2688
+ ...c
2689
+ }), m = s.node.animate(p, {
2689
2690
  duration: e,
2690
2691
  easing: n,
2691
2692
  fill: "forwards"
2692
2693
  });
2693
- return new Promise((v) => {
2694
- w.onfinish = () => {
2695
- g == null || g(), v();
2694
+ return new Promise((w) => {
2695
+ m.onfinish = () => {
2696
+ g?.(), w();
2696
2697
  };
2697
2698
  });
2698
2699
  };
2699
2700
  }
2700
- let wn = 0;
2701
- function Ui(t) {
2702
- return E(() => {
2701
+ let cn = 0;
2702
+ function Li(t) {
2703
+ return C(() => {
2703
2704
  if (t != null)
2704
- return wn++, wn;
2705
+ return cn++, cn;
2705
2706
  }, [t]);
2706
2707
  }
2707
- const Ki = /* @__PURE__ */ B.memo((t) => {
2708
+ const ki = /* @__PURE__ */ k.memo((t) => {
2708
2709
  let {
2709
2710
  adjustScale: e = !1,
2710
2711
  children: n,
@@ -2719,56 +2720,57 @@ const Ki = /* @__PURE__ */ B.memo((t) => {
2719
2720
  const {
2720
2721
  activatorEvent: d,
2721
2722
  active: u,
2722
- activeNodeRect: h,
2723
+ activeNodeRect: f,
2723
2724
  containerNodeRect: p,
2724
2725
  draggableNodes: b,
2725
- droppableContainers: f,
2726
+ droppableContainers: h,
2726
2727
  dragOverlay: g,
2727
- over: w,
2728
- measuringConfiguration: y,
2728
+ over: m,
2729
+ measuringConfiguration: w,
2729
2730
  scrollableAncestors: v,
2730
- scrollableAncestorRects: x,
2731
- windowRect: C
2732
- } = Ai(), z = mt(be), S = Ui(u == null ? void 0 : u.id), R = Un(a, {
2731
+ scrollableAncestorRects: y,
2732
+ windowRect: R
2733
+ } = mi(), z = vt(fe), x = Li(u?.id), S = Bn(a, {
2733
2734
  activatorEvent: d,
2734
2735
  active: u,
2735
- activeNodeRect: h,
2736
+ activeNodeRect: f,
2736
2737
  containerNodeRect: p,
2737
2738
  draggingNodeRect: g.rect,
2738
- over: w,
2739
+ over: m,
2739
2740
  overlayNodeRect: g.rect,
2740
2741
  scrollableAncestors: v,
2741
- scrollableAncestorRects: x,
2742
+ scrollableAncestorRects: y,
2742
2743
  transform: z,
2743
- windowRect: C
2744
- }), N = Fe(h), P = $i({
2744
+ windowRect: R
2745
+ }), E = Be(f), L = Ai({
2745
2746
  config: r,
2746
2747
  draggableNodes: b,
2747
- droppableContainers: f,
2748
- measuringConfiguration: y
2749
- }), A = N ? g.setRef : void 0;
2750
- return B.createElement(Wi, null, B.createElement(Pi, {
2751
- animation: P
2752
- }, u && S ? B.createElement(_i, {
2753
- key: S,
2748
+ droppableContainers: h,
2749
+ measuringConfiguration: w
2750
+ }), N = E ? g.setRef : void 0;
2751
+ return k.createElement(Ri, null, k.createElement(Di, {
2752
+ animation: L
2753
+ }, u && x ? k.createElement(Ei, {
2754
+ key: x,
2754
2755
  id: u.id,
2755
- ref: A,
2756
+ ref: N,
2756
2757
  as: s,
2757
2758
  activatorEvent: d,
2758
2759
  adjustScale: e,
2759
2760
  className: l,
2760
2761
  transition: o,
2761
- rect: N,
2762
- style: m({
2763
- zIndex: c
2764
- }, i),
2765
- transform: R
2762
+ rect: E,
2763
+ style: {
2764
+ zIndex: c,
2765
+ ...i
2766
+ },
2767
+ transform: S
2766
2768
  }, n) : null));
2767
- }), Kn = Tt(void 0), Gi = ({ children: t, value: e }) => /* @__PURE__ */ D(Kn.Provider, { value: e, children: t }), Lt = () => {
2768
- const t = mt(Kn);
2769
+ }), Wn = Mt(void 0), Pi = ({ children: t, value: e }) => /* @__PURE__ */ D(Wn.Provider, { value: e, children: t }), At = () => {
2770
+ const t = vt(Wn);
2769
2771
  if (t === void 0)
2770
2772
  throw new Error("useScheduler must be used within a SchedulerProvider");
2771
- const { hourHeight: e, timeSnap: n } = t, r = E(() => ({
2773
+ const { hourHeight: e, timeSnap: n } = t, r = C(() => ({
2772
2774
  gridSize: e / 60 * n,
2773
2775
  pxToMinutes: (i) => Math.round(i / e * 60),
2774
2776
  snapToTime: (i) => {
@@ -2783,8 +2785,11 @@ const Ki = /* @__PURE__ */ B.memo((t) => {
2783
2785
  },
2784
2786
  minInPx: (i) => i * (e / 60)
2785
2787
  }), [e, n]);
2786
- return m(m({}, t), r);
2787
- }, Vi = (t, e, n) => {
2788
+ return {
2789
+ ...t,
2790
+ ...r
2791
+ };
2792
+ }, Bi = (t, e, n) => {
2788
2793
  const r = new Date(t), i = r.getMinutes();
2789
2794
  let o;
2790
2795
  switch (n) {
@@ -2798,109 +2803,109 @@ const Ki = /* @__PURE__ */ B.memo((t) => {
2798
2803
  o = Math.round(i / e) * e;
2799
2804
  }
2800
2805
  return r.setMinutes(o, 0, 0), r;
2801
- }, Gn = "data-day-column";
2802
- function qi(t, e, n) {
2806
+ }, In = "data-day-column";
2807
+ function Wi(t, e, n) {
2803
2808
  const r = t.target;
2804
2809
  if (!r) throw new Error("Target not found");
2805
- const i = r.closest(`[${Gn}]`);
2810
+ const i = r.closest(`[${In}]`);
2806
2811
  if (!i) throw new Error("Day column not found");
2807
2812
  const o = i.getBoundingClientRect();
2808
- return Ji(t.clientY, o, e, n);
2813
+ return Ii(t.clientY, o, e, n);
2809
2814
  }
2810
- function Ji(t, e, n, r) {
2815
+ function Ii(t, e, n, r) {
2811
2816
  const o = (t - e.top) / e.height;
2812
- return Qi(o, n, r);
2817
+ return Hi(o, n, r);
2813
2818
  }
2814
- function Qi(t, e, n) {
2819
+ function Hi(t, e, n) {
2815
2820
  const r = Math.floor(t * 1440), i = Math.floor(r / 60), o = r % 60, a = new Date(e);
2816
- return a.setHours(i, o, 0, 0), Vi(a, n);
2821
+ return a.setHours(i, o, 0, 0), Bi(a, n);
2817
2822
  }
2818
- function yn() {
2823
+ function un() {
2819
2824
  const t = /* @__PURE__ */ new Date();
2820
2825
  return `${(t.getHours() * 60 + t.getMinutes()) / 1440 * 100}%`;
2821
2826
  }
2822
- function Zi(t) {
2827
+ function _i(t) {
2823
2828
  const e = [];
2824
2829
  t.sort((n, r) => n.startDate.getTime() - r.startDate.getTime());
2825
2830
  for (const n of t) {
2826
- const r = e.find((i) => i.some((o) => to(o, n)));
2831
+ const r = e.find((i) => i.some((o) => Fi(o, n)));
2827
2832
  r ? r.push(n) : e.push([n]);
2828
2833
  }
2829
2834
  return e;
2830
2835
  }
2831
- function to(t, e) {
2836
+ function Fi(t, e) {
2832
2837
  return t.startDate < e.endDate && t.endDate > e.startDate;
2833
2838
  }
2834
- function eo(t, e) {
2835
- const n = /* @__PURE__ */ new Map(), r = Zi(t);
2839
+ function ji(t, e) {
2840
+ const n = /* @__PURE__ */ new Map(), r = _i(t);
2836
2841
  for (const i of r)
2837
2842
  for (const [o, a] of i.entries())
2838
2843
  n.set(a.id, {
2839
- top: io(a, e) + "px",
2844
+ top: Xi(a, e) + "px",
2840
2845
  left: `${100 / i.length * o}%`,
2841
2846
  width: `${100 / i.length * (o + 1) - 100 / i.length * o}%`
2842
2847
  });
2843
2848
  return n;
2844
2849
  }
2845
- function no(t) {
2850
+ function Yi(t) {
2846
2851
  return (t.endDate.getTime() - t.startDate.getTime()) / 1e3 / 60;
2847
2852
  }
2848
- function Vn(t) {
2853
+ function Hn(t) {
2849
2854
  return t / 60;
2850
2855
  }
2851
- function ro(t, e) {
2852
- return no(t) * Vn(e);
2856
+ function $i(t, e) {
2857
+ return Yi(t) * Hn(e);
2853
2858
  }
2854
- function io(t, e) {
2855
- return oo(t.startDate) * Vn(e);
2859
+ function Xi(t, e) {
2860
+ return Ui(t.startDate) * Hn(e);
2856
2861
  }
2857
- function oo(t) {
2862
+ function Ui(t) {
2858
2863
  return t.getHours() * 60 + t.getMinutes();
2859
2864
  }
2860
- var I = function() {
2861
- return I = Object.assign || function(t) {
2865
+ var B = function() {
2866
+ return B = Object.assign || function(t) {
2862
2867
  for (var e, n = 1, r = arguments.length; n < r; n++) {
2863
2868
  e = arguments[n];
2864
2869
  for (var i in e) Object.prototype.hasOwnProperty.call(e, i) && (t[i] = e[i]);
2865
2870
  }
2866
2871
  return t;
2867
- }, I.apply(this, arguments);
2868
- }, xn = {
2872
+ }, B.apply(this, arguments);
2873
+ }, dn = {
2869
2874
  width: "100%",
2870
2875
  height: "10px",
2871
2876
  top: "0px",
2872
2877
  left: "0px",
2873
2878
  cursor: "row-resize"
2874
- }, Sn = {
2879
+ }, hn = {
2875
2880
  width: "10px",
2876
2881
  height: "100%",
2877
2882
  top: "0px",
2878
2883
  left: "0px",
2879
2884
  cursor: "col-resize"
2880
- }, ne = {
2885
+ }, Qt = {
2881
2886
  width: "20px",
2882
2887
  height: "20px",
2883
2888
  position: "absolute",
2884
2889
  zIndex: 1
2885
- }, so = {
2886
- top: I(I({}, xn), { top: "-5px" }),
2887
- right: I(I({}, Sn), { left: void 0, right: "-5px" }),
2888
- bottom: I(I({}, xn), { top: void 0, bottom: "-5px" }),
2889
- left: I(I({}, Sn), { left: "-5px" }),
2890
- topRight: I(I({}, ne), { right: "-10px", top: "-10px", cursor: "ne-resize" }),
2891
- bottomRight: I(I({}, ne), { right: "-10px", bottom: "-10px", cursor: "se-resize" }),
2892
- bottomLeft: I(I({}, ne), { left: "-10px", bottom: "-10px", cursor: "sw-resize" }),
2893
- topLeft: I(I({}, ne), { left: "-10px", top: "-10px", cursor: "nw-resize" })
2894
- }, ao = Mn(function(t) {
2895
- var e = t.onResizeStart, n = t.direction, r = t.children, i = t.replaceStyles, o = t.className, a = L(function(c) {
2890
+ }, Ki = {
2891
+ top: B(B({}, dn), { top: "-5px" }),
2892
+ right: B(B({}, hn), { left: void 0, right: "-5px" }),
2893
+ bottom: B(B({}, dn), { top: void 0, bottom: "-5px" }),
2894
+ left: B(B({}, hn), { left: "-5px" }),
2895
+ topRight: B(B({}, Qt), { right: "-10px", top: "-10px", cursor: "ne-resize" }),
2896
+ bottomRight: B(B({}, Qt), { right: "-10px", bottom: "-10px", cursor: "se-resize" }),
2897
+ bottomLeft: B(B({}, Qt), { left: "-10px", bottom: "-10px", cursor: "sw-resize" }),
2898
+ topLeft: B(B({}, Qt), { left: "-10px", top: "-10px", cursor: "nw-resize" })
2899
+ }, Gi = mn(function(t) {
2900
+ var e = t.onResizeStart, n = t.direction, r = t.children, i = t.replaceStyles, o = t.className, a = A(function(c) {
2896
2901
  e(c, n);
2897
- }, [e, n]), s = L(function(c) {
2902
+ }, [e, n]), s = A(function(c) {
2898
2903
  e(c, n);
2899
- }, [e, n]), l = E(function() {
2900
- return I(I({ position: "absolute", userSelect: "none" }, so[n]), i != null ? i : {});
2904
+ }, [e, n]), l = C(function() {
2905
+ return B(B({ position: "absolute", userSelect: "none" }, Ki[n]), i ?? {});
2901
2906
  }, [i, n]);
2902
2907
  return D("div", { className: o || void 0, style: l, onMouseDown: a, onTouchStart: s, children: r });
2903
- }), lo = /* @__PURE__ */ function() {
2908
+ }), Vi = /* @__PURE__ */ function() {
2904
2909
  var t = function(e, n) {
2905
2910
  return t = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, i) {
2906
2911
  r.__proto__ = i;
@@ -2917,37 +2922,37 @@ var I = function() {
2917
2922
  }
2918
2923
  e.prototype = n === null ? Object.create(n) : (r.prototype = n.prototype, new r());
2919
2924
  };
2920
- }(), st = function() {
2921
- return st = Object.assign || function(t) {
2925
+ }(), it = function() {
2926
+ return it = Object.assign || function(t) {
2922
2927
  for (var e, n = 1, r = arguments.length; n < r; n++) {
2923
2928
  e = arguments[n];
2924
2929
  for (var i in e) Object.prototype.hasOwnProperty.call(e, i) && (t[i] = e[i]);
2925
2930
  }
2926
2931
  return t;
2927
- }, st.apply(this, arguments);
2928
- }, co = {
2932
+ }, it.apply(this, arguments);
2933
+ }, qi = {
2929
2934
  width: "auto",
2930
2935
  height: "auto"
2931
- }, re = function(t, e, n) {
2936
+ }, Zt = function(t, e, n) {
2932
2937
  return Math.max(Math.min(t, n), e);
2933
- }, Dn = function(t, e, n) {
2938
+ }, fn = function(t, e, n) {
2934
2939
  var r = Math.round(t / e);
2935
2940
  return r * e + n * (r - 1);
2936
- }, Mt = function(t, e) {
2941
+ }, zt = function(t, e) {
2937
2942
  return new RegExp(t, "i").test(e);
2938
- }, ie = function(t) {
2943
+ }, te = function(t) {
2939
2944
  return !!(t.touches && t.touches.length);
2940
- }, uo = function(t) {
2945
+ }, Ji = function(t) {
2941
2946
  return !!((t.clientX || t.clientX === 0) && (t.clientY || t.clientY === 0));
2942
- }, Rn = function(t, e, n) {
2947
+ }, pn = function(t, e, n) {
2943
2948
  n === void 0 && (n = 0);
2944
2949
  var r = e.reduce(function(o, a, s) {
2945
2950
  return Math.abs(a - t) < Math.abs(e[o] - t) ? s : o;
2946
2951
  }, 0), i = Math.abs(e[r] - t);
2947
2952
  return n === 0 || i < n ? e[r] : t;
2948
- }, Me = function(t) {
2953
+ }, Se = function(t) {
2949
2954
  return t = t.toString(), t === "auto" || t.endsWith("px") || t.endsWith("%") || t.endsWith("vh") || t.endsWith("vw") || t.endsWith("vmax") || t.endsWith("vmin") ? t : "".concat(t, "px");
2950
- }, oe = function(t, e, n, r) {
2955
+ }, ee = function(t, e, n, r) {
2951
2956
  if (t && typeof t == "string") {
2952
2957
  if (t.endsWith("px"))
2953
2958
  return Number(t.replace("px", ""));
@@ -2965,16 +2970,16 @@ var I = function() {
2965
2970
  }
2966
2971
  }
2967
2972
  return t;
2968
- }, ho = function(t, e, n, r, i, o, a) {
2969
- return r = oe(r, t.width, e, n), i = oe(i, t.height, e, n), o = oe(o, t.width, e, n), a = oe(a, t.height, e, n), {
2970
- maxWidth: typeof r == "undefined" ? void 0 : Number(r),
2971
- maxHeight: typeof i == "undefined" ? void 0 : Number(i),
2972
- minWidth: typeof o == "undefined" ? void 0 : Number(o),
2973
- minHeight: typeof a == "undefined" ? void 0 : Number(a)
2973
+ }, Qi = function(t, e, n, r, i, o, a) {
2974
+ return r = ee(r, t.width, e, n), i = ee(i, t.height, e, n), o = ee(o, t.width, e, n), a = ee(a, t.height, e, n), {
2975
+ maxWidth: typeof r > "u" ? void 0 : Number(r),
2976
+ maxHeight: typeof i > "u" ? void 0 : Number(i),
2977
+ minWidth: typeof o > "u" ? void 0 : Number(o),
2978
+ minHeight: typeof a > "u" ? void 0 : Number(a)
2974
2979
  };
2975
- }, fo = function(t) {
2980
+ }, Zi = function(t) {
2976
2981
  return Array.isArray(t) ? t : [t, t];
2977
- }, po = [
2982
+ }, to = [
2978
2983
  "as",
2979
2984
  "ref",
2980
2985
  "style",
@@ -3006,10 +3011,10 @@ var I = function() {
3006
3011
  "scale",
3007
3012
  "resizeRatio",
3008
3013
  "snapGap"
3009
- ], Cn = "__resizable_base__", go = (
3014
+ ], gn = "__resizable_base__", eo = (
3010
3015
  /** @class */
3011
3016
  function(t) {
3012
- lo(e, t);
3017
+ Vi(e, t);
3013
3018
  function e(n) {
3014
3019
  var r, i, o, a, s = t.call(this, n) || this;
3015
3020
  return s.ratio = 1, s.resizable = null, s.parentLeft = 0, s.parentTop = 0, s.resizableLeft = 0, s.resizableRight = 0, s.resizableTop = 0, s.resizableBottom = 0, s.targetLeft = 0, s.targetTop = 0, s.delta = {
@@ -3022,7 +3027,7 @@ var I = function() {
3022
3027
  if (!l)
3023
3028
  return null;
3024
3029
  var c = s.window.document.createElement("div");
3025
- return c.style.width = "100%", c.style.height = "100%", c.style.position = "absolute", c.style.transform = "scale(0, 0)", c.style.left = "0", c.style.flex = "0 0 100%", c.classList ? c.classList.add(Cn) : c.className += Cn, l.appendChild(c), c;
3030
+ return c.style.width = "100%", c.style.height = "100%", c.style.position = "absolute", c.style.transform = "scale(0, 0)", c.style.left = "0", c.style.flex = "0 0 100%", c.classList ? c.classList.add(gn) : c.className += gn, l.appendChild(c), c;
3026
3031
  }, s.removeBase = function(l) {
3027
3032
  var c = s.parentNode;
3028
3033
  c && c.removeChild(l);
@@ -3067,7 +3072,7 @@ var I = function() {
3067
3072
  configurable: !0
3068
3073
  }), Object.defineProperty(e.prototype, "propsSize", {
3069
3074
  get: function() {
3070
- return this.props.size || this.props.defaultSize || co;
3075
+ return this.props.size || this.props.defaultSize || qi;
3071
3076
  },
3072
3077
  enumerable: !1,
3073
3078
  configurable: !0
@@ -3086,7 +3091,7 @@ var I = function() {
3086
3091
  get: function() {
3087
3092
  var n = this, r = this.props.size, i = function(s) {
3088
3093
  var l;
3089
- if (typeof n.state[s] == "undefined" || n.state[s] === "auto")
3094
+ if (typeof n.state[s] > "u" || n.state[s] === "auto")
3090
3095
  return "auto";
3091
3096
  if (n.propsSize && n.propsSize[s] && (!((l = n.propsSize[s]) === null || l === void 0) && l.toString().endsWith("%"))) {
3092
3097
  if (n.state[s].toString().endsWith("%"))
@@ -3094,8 +3099,8 @@ var I = function() {
3094
3099
  var c = n.getParentSize(), d = Number(n.state[s].toString().replace("px", "")), u = d / c[s] * 100;
3095
3100
  return "".concat(u, "%");
3096
3101
  }
3097
- return Me(n.state[s]);
3098
- }, o = r && typeof r.width != "undefined" && !this.state.isResizing ? Me(r.width) : i("width"), a = r && typeof r.height != "undefined" && !this.state.isResizing ? Me(r.height) : i("height");
3102
+ return Se(n.state[s]);
3103
+ }, o = r && typeof r.width < "u" && !this.state.isResizing ? Se(r.width) : i("width"), a = r && typeof r.height < "u" && !this.state.isResizing ? Se(r.height) : i("height");
3099
3104
  return { width: o, height: a };
3100
3105
  },
3101
3106
  enumerable: !1,
@@ -3133,24 +3138,24 @@ var I = function() {
3133
3138
  this.window && this.unbindEvents();
3134
3139
  }, e.prototype.createSizeForCssProperty = function(n, r) {
3135
3140
  var i = this.propsSize && this.propsSize[r];
3136
- return this.state[r] === "auto" && this.state.original[r] === n && (typeof i == "undefined" || i === "auto") ? "auto" : n;
3141
+ return this.state[r] === "auto" && this.state.original[r] === n && (typeof i > "u" || i === "auto") ? "auto" : n;
3137
3142
  }, e.prototype.calculateNewMaxFromBoundary = function(n, r) {
3138
- var i = this.props.boundsByDirection, o = this.state.direction, a = i && Mt("left", o), s = i && Mt("top", o), l, c;
3143
+ var i = this.props.boundsByDirection, o = this.state.direction, a = i && zt("left", o), s = i && zt("top", o), l, c;
3139
3144
  if (this.props.bounds === "parent") {
3140
3145
  var d = this.parentNode;
3141
3146
  d && (l = a ? this.resizableRight - this.parentLeft : d.offsetWidth + (this.parentLeft - this.resizableLeft), c = s ? this.resizableBottom - this.parentTop : d.offsetHeight + (this.parentTop - this.resizableTop));
3142
3147
  } else this.props.bounds === "window" ? this.window && (l = a ? this.resizableRight : this.window.innerWidth - this.resizableLeft, c = s ? this.resizableBottom : this.window.innerHeight - this.resizableTop) : this.props.bounds && (l = a ? this.resizableRight - this.targetLeft : this.props.bounds.offsetWidth + (this.targetLeft - this.resizableLeft), c = s ? this.resizableBottom - this.targetTop : this.props.bounds.offsetHeight + (this.targetTop - this.resizableTop));
3143
3148
  return l && Number.isFinite(l) && (n = n && n < l ? n : l), c && Number.isFinite(c) && (r = r && r < c ? r : c), { maxWidth: n, maxHeight: r };
3144
3149
  }, e.prototype.calculateNewSizeFromDirection = function(n, r) {
3145
- var i = this.props.scale || 1, o = fo(this.props.resizeRatio || 1), a = o[0], s = o[1], l = this.state, c = l.direction, d = l.original, u = this.props, h = u.lockAspectRatio, p = u.lockAspectRatioExtraHeight, b = u.lockAspectRatioExtraWidth, f = d.width, g = d.height, w = p || 0, y = b || 0;
3146
- return Mt("right", c) && (f = d.width + (n - d.x) * a / i, h && (g = (f - y) / this.ratio + w)), Mt("left", c) && (f = d.width - (n - d.x) * a / i, h && (g = (f - y) / this.ratio + w)), Mt("bottom", c) && (g = d.height + (r - d.y) * s / i, h && (f = (g - w) * this.ratio + y)), Mt("top", c) && (g = d.height - (r - d.y) * s / i, h && (f = (g - w) * this.ratio + y)), { newWidth: f, newHeight: g };
3150
+ var i = this.props.scale || 1, o = Zi(this.props.resizeRatio || 1), a = o[0], s = o[1], l = this.state, c = l.direction, d = l.original, u = this.props, f = u.lockAspectRatio, p = u.lockAspectRatioExtraHeight, b = u.lockAspectRatioExtraWidth, h = d.width, g = d.height, m = p || 0, w = b || 0;
3151
+ return zt("right", c) && (h = d.width + (n - d.x) * a / i, f && (g = (h - w) / this.ratio + m)), zt("left", c) && (h = d.width - (n - d.x) * a / i, f && (g = (h - w) / this.ratio + m)), zt("bottom", c) && (g = d.height + (r - d.y) * s / i, f && (h = (g - m) * this.ratio + w)), zt("top", c) && (g = d.height - (r - d.y) * s / i, f && (h = (g - m) * this.ratio + w)), { newWidth: h, newHeight: g };
3147
3152
  }, e.prototype.calculateNewSizeFromAspectRatio = function(n, r, i, o) {
3148
- var a = this.props, s = a.lockAspectRatio, l = a.lockAspectRatioExtraHeight, c = a.lockAspectRatioExtraWidth, d = typeof o.width == "undefined" ? 10 : o.width, u = typeof i.width == "undefined" || i.width < 0 ? n : i.width, h = typeof o.height == "undefined" ? 10 : o.height, p = typeof i.height == "undefined" || i.height < 0 ? r : i.height, b = l || 0, f = c || 0;
3153
+ var a = this.props, s = a.lockAspectRatio, l = a.lockAspectRatioExtraHeight, c = a.lockAspectRatioExtraWidth, d = typeof o.width > "u" ? 10 : o.width, u = typeof i.width > "u" || i.width < 0 ? n : i.width, f = typeof o.height > "u" ? 10 : o.height, p = typeof i.height > "u" || i.height < 0 ? r : i.height, b = l || 0, h = c || 0;
3149
3154
  if (s) {
3150
- var g = (h - b) * this.ratio + f, w = (p - b) * this.ratio + f, y = (d - f) / this.ratio + b, v = (u - f) / this.ratio + b, x = Math.max(d, g), C = Math.min(u, w), z = Math.max(h, y), S = Math.min(p, v);
3151
- n = re(n, x, C), r = re(r, z, S);
3155
+ var g = (f - b) * this.ratio + h, m = (p - b) * this.ratio + h, w = (d - h) / this.ratio + b, v = (u - h) / this.ratio + b, y = Math.max(d, g), R = Math.min(u, m), z = Math.max(f, w), x = Math.min(p, v);
3156
+ n = Zt(n, y, R), r = Zt(r, z, x);
3152
3157
  } else
3153
- n = re(n, d, u), r = re(r, h, p);
3158
+ n = Zt(n, d, u), r = Zt(r, f, p);
3154
3159
  return { newWidth: n, newHeight: r };
3155
3160
  }, e.prototype.setBoundingClientRect = function() {
3156
3161
  var n = 1 / (this.props.scale || 1);
@@ -3172,12 +3177,12 @@ var I = function() {
3172
3177
  }, e.prototype.onResizeStart = function(n, r) {
3173
3178
  if (!(!this.resizable || !this.window)) {
3174
3179
  var i = 0, o = 0;
3175
- if (n.nativeEvent && uo(n.nativeEvent) ? (i = n.nativeEvent.clientX, o = n.nativeEvent.clientY) : n.nativeEvent && ie(n.nativeEvent) && (i = n.nativeEvent.touches[0].clientX, o = n.nativeEvent.touches[0].clientY), this.props.onResizeStart && this.resizable) {
3180
+ if (n.nativeEvent && Ji(n.nativeEvent) ? (i = n.nativeEvent.clientX, o = n.nativeEvent.clientY) : n.nativeEvent && te(n.nativeEvent) && (i = n.nativeEvent.touches[0].clientX, o = n.nativeEvent.touches[0].clientY), this.props.onResizeStart && this.resizable) {
3176
3181
  var a = this.props.onResizeStart(n, r, this.resizable);
3177
3182
  if (a === !1)
3178
3183
  return;
3179
3184
  }
3180
- this.props.size && (typeof this.props.size.height != "undefined" && this.props.size.height !== this.state.height && this.setState({ height: this.props.size.height }), typeof this.props.size.width != "undefined" && this.props.size.width !== this.state.width && this.setState({ width: this.props.size.width })), this.ratio = typeof this.props.lockAspectRatio == "number" ? this.props.lockAspectRatio : this.size.width / this.size.height;
3185
+ this.props.size && (typeof this.props.size.height < "u" && this.props.size.height !== this.state.height && this.setState({ height: this.props.size.height }), typeof this.props.size.width < "u" && this.props.size.width !== this.state.width && this.setState({ width: this.props.size.width })), this.ratio = typeof this.props.lockAspectRatio == "number" ? this.props.lockAspectRatio : this.size.width / this.size.height;
3181
3186
  var s, l = this.window.getComputedStyle(this.resizable);
3182
3187
  if (l.flexBasis !== "auto") {
3183
3188
  var c = this.parentNode;
@@ -3195,7 +3200,7 @@ var I = function() {
3195
3200
  height: this.size.height
3196
3201
  },
3197
3202
  isResizing: !0,
3198
- backgroundStyle: st(st({}, this.state.backgroundStyle), { cursor: this.window.getComputedStyle(n.target).cursor || "auto" }),
3203
+ backgroundStyle: it(it({}, this.state.backgroundStyle), { cursor: this.window.getComputedStyle(n.target).cursor || "auto" }),
3199
3204
  direction: r,
3200
3205
  flexBasis: s
3201
3206
  };
@@ -3204,63 +3209,63 @@ var I = function() {
3204
3209
  }, e.prototype.onMouseMove = function(n) {
3205
3210
  var r = this;
3206
3211
  if (!(!this.state.isResizing || !this.resizable || !this.window)) {
3207
- if (this.window.TouchEvent && ie(n))
3212
+ if (this.window.TouchEvent && te(n))
3208
3213
  try {
3209
3214
  n.preventDefault(), n.stopPropagation();
3210
- } catch (me) {
3215
+ } catch {
3211
3216
  }
3212
- var i = this.props, o = i.maxWidth, a = i.maxHeight, s = i.minWidth, l = i.minHeight, c = ie(n) ? n.touches[0].clientX : n.clientX, d = ie(n) ? n.touches[0].clientY : n.clientY, u = this.state, h = u.direction, p = u.original, b = u.width, f = u.height, g = this.getParentSize(), w = ho(g, this.window.innerWidth, this.window.innerHeight, o, a, s, l);
3213
- o = w.maxWidth, a = w.maxHeight, s = w.minWidth, l = w.minHeight;
3214
- var y = this.calculateNewSizeFromDirection(c, d), v = y.newHeight, x = y.newWidth, C = this.calculateNewMaxFromBoundary(o, a);
3215
- this.props.snap && this.props.snap.x && (x = Rn(x, this.props.snap.x, this.props.snapGap)), this.props.snap && this.props.snap.y && (v = Rn(v, this.props.snap.y, this.props.snapGap));
3216
- var z = this.calculateNewSizeFromAspectRatio(x, v, { width: C.maxWidth, height: C.maxHeight }, { width: s, height: l });
3217
- if (x = z.newWidth, v = z.newHeight, this.props.grid) {
3218
- var S = Dn(x, this.props.grid[0], this.props.gridGap ? this.props.gridGap[0] : 0), R = Dn(v, this.props.grid[1], this.props.gridGap ? this.props.gridGap[1] : 0), N = this.props.snapGap || 0, P = N === 0 || Math.abs(S - x) <= N ? S : x, A = N === 0 || Math.abs(R - v) <= N ? R : v;
3219
- x = P, v = A;
3217
+ var i = this.props, o = i.maxWidth, a = i.maxHeight, s = i.minWidth, l = i.minHeight, c = te(n) ? n.touches[0].clientX : n.clientX, d = te(n) ? n.touches[0].clientY : n.clientY, u = this.state, f = u.direction, p = u.original, b = u.width, h = u.height, g = this.getParentSize(), m = Qi(g, this.window.innerWidth, this.window.innerHeight, o, a, s, l);
3218
+ o = m.maxWidth, a = m.maxHeight, s = m.minWidth, l = m.minHeight;
3219
+ var w = this.calculateNewSizeFromDirection(c, d), v = w.newHeight, y = w.newWidth, R = this.calculateNewMaxFromBoundary(o, a);
3220
+ this.props.snap && this.props.snap.x && (y = pn(y, this.props.snap.x, this.props.snapGap)), this.props.snap && this.props.snap.y && (v = pn(v, this.props.snap.y, this.props.snapGap));
3221
+ var z = this.calculateNewSizeFromAspectRatio(y, v, { width: R.maxWidth, height: R.maxHeight }, { width: s, height: l });
3222
+ if (y = z.newWidth, v = z.newHeight, this.props.grid) {
3223
+ var x = fn(y, this.props.grid[0], this.props.gridGap ? this.props.gridGap[0] : 0), S = fn(v, this.props.grid[1], this.props.gridGap ? this.props.gridGap[1] : 0), E = this.props.snapGap || 0, L = E === 0 || Math.abs(x - y) <= E ? x : y, N = E === 0 || Math.abs(S - v) <= E ? S : v;
3224
+ y = L, v = N;
3220
3225
  }
3221
- var F = {
3222
- width: x - p.width,
3226
+ var H = {
3227
+ width: y - p.width,
3223
3228
  height: v - p.height
3224
3229
  };
3225
- if (this.delta = F, b && typeof b == "string") {
3230
+ if (this.delta = H, b && typeof b == "string") {
3226
3231
  if (b.endsWith("%")) {
3227
- var W = x / g.width * 100;
3228
- x = "".concat(W, "%");
3232
+ var P = y / g.width * 100;
3233
+ y = "".concat(P, "%");
3229
3234
  } else if (b.endsWith("vw")) {
3230
- var H = x / this.window.innerWidth * 100;
3231
- x = "".concat(H, "vw");
3235
+ var W = y / this.window.innerWidth * 100;
3236
+ y = "".concat(W, "vw");
3232
3237
  } else if (b.endsWith("vh")) {
3233
- var Q = x / this.window.innerHeight * 100;
3234
- x = "".concat(Q, "vh");
3238
+ var q = y / this.window.innerHeight * 100;
3239
+ y = "".concat(q, "vh");
3235
3240
  }
3236
3241
  }
3237
- if (f && typeof f == "string") {
3238
- if (f.endsWith("%")) {
3239
- var W = v / g.height * 100;
3240
- v = "".concat(W, "%");
3241
- } else if (f.endsWith("vw")) {
3242
- var H = v / this.window.innerWidth * 100;
3243
- v = "".concat(H, "vw");
3244
- } else if (f.endsWith("vh")) {
3245
- var Q = v / this.window.innerHeight * 100;
3246
- v = "".concat(Q, "vh");
3242
+ if (h && typeof h == "string") {
3243
+ if (h.endsWith("%")) {
3244
+ var P = v / g.height * 100;
3245
+ v = "".concat(P, "%");
3246
+ } else if (h.endsWith("vw")) {
3247
+ var W = v / this.window.innerWidth * 100;
3248
+ v = "".concat(W, "vw");
3249
+ } else if (h.endsWith("vh")) {
3250
+ var q = v / this.window.innerHeight * 100;
3251
+ v = "".concat(q, "vh");
3247
3252
  }
3248
3253
  }
3249
- var U = {
3250
- width: this.createSizeForCssProperty(x, "width"),
3254
+ var $ = {
3255
+ width: this.createSizeForCssProperty(y, "width"),
3251
3256
  height: this.createSizeForCssProperty(v, "height")
3252
3257
  };
3253
- this.flexDir === "row" ? U.flexBasis = U.width : this.flexDir === "column" && (U.flexBasis = U.height);
3254
- var K = this.state.width !== U.width, Gt = this.state.height !== U.height, at = this.state.flexBasis !== U.flexBasis, St = K || Gt || at;
3255
- St && vr(function() {
3256
- r.setState(U);
3257
- }), this.props.onResize && St && this.props.onResize(n, h, this.resizable, F);
3258
+ this.flexDir === "row" ? $.flexBasis = $.width : this.flexDir === "column" && ($.flexBasis = $.height);
3259
+ var X = this.state.width !== $.width, Ut = this.state.height !== $.height, ot = this.state.flexBasis !== $.flexBasis, yt = X || Ut || ot;
3260
+ yt && nr(function() {
3261
+ r.setState($);
3262
+ }), this.props.onResize && yt && this.props.onResize(n, f, this.resizable, H);
3258
3263
  }
3259
3264
  }, e.prototype.onMouseUp = function(n) {
3260
3265
  var r, i, o = this.state, a = o.isResizing, s = o.direction;
3261
3266
  o.original, !(!a || !this.resizable) && (this.props.onResizeStop && this.props.onResizeStop(n, s, this.resizable, this.delta), this.props.size && this.setState({ width: (r = this.props.size.width) !== null && r !== void 0 ? r : "auto", height: (i = this.props.size.height) !== null && i !== void 0 ? i : "auto" }), this.unbindEvents(), this.setState({
3262
3267
  isResizing: !1,
3263
- backgroundStyle: st(st({}, this.state.backgroundStyle), { cursor: "auto" })
3268
+ backgroundStyle: it(it({}, this.state.backgroundStyle), { cursor: "auto" })
3264
3269
  }));
3265
3270
  }, e.prototype.updateSize = function(n) {
3266
3271
  var r, i;
@@ -3270,16 +3275,16 @@ var I = function() {
3270
3275
  if (!i)
3271
3276
  return null;
3272
3277
  var d = Object.keys(i).map(function(u) {
3273
- return i[u] !== !1 ? D(ao, { direction: u, onResizeStart: n.onResizeStart, replaceStyles: o && o[u], className: a && a[u], children: c && c[u] ? c[u] : null }, u) : null;
3278
+ return i[u] !== !1 ? D(Gi, { direction: u, onResizeStart: n.onResizeStart, replaceStyles: o && o[u], className: a && a[u], children: c && c[u] ? c[u] : null }, u) : null;
3274
3279
  });
3275
3280
  return D("div", { className: l, style: s, children: d });
3276
3281
  }, e.prototype.render = function() {
3277
3282
  var n = this, r = Object.keys(this.props).reduce(function(a, s) {
3278
- return po.indexOf(s) !== -1 || (a[s] = n.props[s]), a;
3279
- }, {}), i = st(st(st({ position: "relative", userSelect: this.state.isResizing ? "none" : "auto" }, this.props.style), this.sizeStyle), { maxWidth: this.props.maxWidth, maxHeight: this.props.maxHeight, minWidth: this.props.minWidth, minHeight: this.props.minHeight, boxSizing: "border-box", flexShrink: 0 });
3283
+ return to.indexOf(s) !== -1 || (a[s] = n.props[s]), a;
3284
+ }, {}), i = it(it(it({ position: "relative", userSelect: this.state.isResizing ? "none" : "auto" }, this.props.style), this.sizeStyle), { maxWidth: this.props.maxWidth, maxHeight: this.props.maxHeight, minWidth: this.props.minWidth, minHeight: this.props.minHeight, boxSizing: "border-box", flexShrink: 0 });
3280
3285
  this.state.flexBasis && (i.flexBasis = this.state.flexBasis);
3281
3286
  var o = this.props.as || "div";
3282
- return bt(o, st({ style: i, className: this.props.className }, r, {
3287
+ return gt(o, it({ style: i, className: this.props.className }, r, {
3283
3288
  // `ref` is after `extendsProps` to ensure this one wins over a version
3284
3289
  // passed in
3285
3290
  ref: function(a) {
@@ -3315,14 +3320,14 @@ var I = function() {
3315
3320
  resizeRatio: 1,
3316
3321
  snapGap: 0
3317
3322
  }, e;
3318
- }(pr)
3323
+ }(tr)
3319
3324
  );
3320
- const zn = () => {
3321
- const t = L((e) => {
3325
+ const vn = () => {
3326
+ const t = A((e) => {
3322
3327
  e.stopPropagation();
3323
3328
  }, []);
3324
3329
  return /* @__PURE__ */ D("div", { className: "h-full w-full", onPointerDown: t });
3325
- }, En = ut({
3330
+ }, bn = lt({
3326
3331
  base: "absolute left-0 right-0 select-none",
3327
3332
  slots: {
3328
3333
  wrapper: "h-full w-full cursor-pointer rounded border border-primary/20 bg-primary/10 px-2 py-1",
@@ -3335,7 +3340,7 @@ const zn = () => {
3335
3340
  true: "opacity-50"
3336
3341
  }
3337
3342
  }
3338
- }), qn = ({ event: t, onEventClick: e, width: n, left: r, top: i }) => {
3343
+ }), _n = ({ event: t, onEventClick: e, width: n, left: r, top: i }) => {
3339
3344
  const {
3340
3345
  eventComponent: o,
3341
3346
  isDraggable: a,
@@ -3344,188 +3349,188 @@ const zn = () => {
3344
3349
  onEventDrop: c,
3345
3350
  hourHeight: d,
3346
3351
  gridSize: u,
3347
- pxToMinutes: h,
3352
+ pxToMinutes: f,
3348
3353
  snapToTime: p
3349
- } = Lt(), b = a ? a(t) : c !== void 0, f = s ? s(t) : l !== void 0, { attributes: g, listeners: w, setNodeRef: y, transform: v } = Ti({
3354
+ } = At(), b = a ? a(t) : c !== void 0, h = s ? s(t) : l !== void 0, { attributes: g, listeners: m, setNodeRef: w, transform: v } = bi({
3350
3355
  id: t.id,
3351
3356
  data: { event: t },
3352
3357
  disabled: !b
3353
- }), x = !!v, C = E(() => ro(t, d), [t, d]), z = {
3358
+ }), y = !!v, R = C(() => $i(t, d), [t, d]), z = {
3354
3359
  top: i,
3355
- height: C,
3360
+ height: R,
3356
3361
  left: r,
3357
3362
  width: n
3358
3363
  // transform: CSS.Transform.toString(transform)
3359
- }, S = L(
3360
- (F) => {
3361
- e && (e(t), F.stopPropagation());
3364
+ }, x = A(
3365
+ (H) => {
3366
+ e && (e(t), H.stopPropagation());
3362
3367
  },
3363
3368
  [e, t]
3364
- ), R = L((F, W, H, Q) => {
3365
- W === "top" && (H.style.transform = `translateY(${-Q.height}px)`);
3366
- }, []), N = L(
3367
- (F, W, H, Q) => {
3368
- if (W === "bottom") {
3369
- const U = h(Q.height), K = new Date(t.endDate.getTime() + U * 60 * 1e3);
3370
- l == null || l(t, {
3369
+ ), S = A((H, P, W, q) => {
3370
+ P === "top" && (W.style.transform = `translateY(${-q.height}px)`);
3371
+ }, []), E = A(
3372
+ (H, P, W, q) => {
3373
+ if (P === "bottom") {
3374
+ const $ = f(q.height), X = new Date(t.endDate.getTime() + $ * 60 * 1e3);
3375
+ l?.(t, {
3371
3376
  startDate: t.startDate,
3372
- endDate: p(K)
3377
+ endDate: p(X)
3373
3378
  });
3374
- } else if (W === "top") {
3375
- H.style.transform = "none";
3376
- const U = h(Q.height), K = new Date(t.startDate.getTime() - U * 60 * 1e3);
3377
- l == null || l(t, {
3378
- startDate: p(K),
3379
+ } else if (P === "top") {
3380
+ W.style.transform = "none";
3381
+ const $ = f(q.height), X = new Date(t.startDate.getTime() - $ * 60 * 1e3);
3382
+ l?.(t, {
3383
+ startDate: p(X),
3379
3384
  endDate: t.endDate
3380
3385
  });
3381
3386
  }
3382
3387
  },
3383
- [t, l, h, p]
3384
- ), P = E(() => {
3385
- const { wrapper: F, title: W } = En(), H = /* @__PURE__ */ D("div", { className: F(), children: /* @__PURE__ */ D("div", { className: W(), children: t.title }) });
3386
- return o ? /* @__PURE__ */ D(o, { event: t, baseEventComponent: H }) : H;
3387
- }, [o, t]), { base: A } = En();
3388
+ [t, l, f, p]
3389
+ ), L = C(() => {
3390
+ const { wrapper: H, title: P } = bn(), W = /* @__PURE__ */ D("div", { className: H(), children: /* @__PURE__ */ D("div", { className: P(), children: t.title }) });
3391
+ return o ? /* @__PURE__ */ D(o, { event: t, baseEventComponent: W }) : W;
3392
+ }, [o, t]), { base: N } = bn();
3388
3393
  return /* @__PURE__ */ D(
3389
3394
  "div",
3390
- M(m(m({
3391
- className: A({ dragging: x }),
3392
- ref: y,
3393
- style: z
3394
- }, b ? g : {}), b ? w : {}), {
3395
- onClick: S,
3395
+ {
3396
+ className: N({ dragging: y }),
3397
+ ref: w,
3398
+ style: z,
3399
+ ...b ? g : {},
3400
+ ...b ? m : {},
3401
+ onClick: x,
3396
3402
  children: /* @__PURE__ */ D(
3397
- go,
3403
+ eo,
3398
3404
  {
3399
- size: { height: C },
3400
- enable: f ? vo : !1,
3405
+ size: { height: R },
3406
+ enable: h ? no : !1,
3401
3407
  grid: [0, u],
3402
- onResize: R,
3403
- onResizeStop: N,
3408
+ onResize: S,
3409
+ onResizeStop: E,
3404
3410
  handleComponent: {
3405
- bottom: /* @__PURE__ */ D(zn, {}),
3406
- top: /* @__PURE__ */ D(zn, {})
3411
+ bottom: /* @__PURE__ */ D(vn, {}),
3412
+ top: /* @__PURE__ */ D(vn, {})
3407
3413
  },
3408
- children: P
3414
+ children: L
3409
3415
  }
3410
3416
  )
3411
- })
3417
+ }
3412
3418
  );
3413
- }, vo = {
3419
+ }, no = {
3414
3420
  top: !0,
3415
3421
  bottom: !0
3416
3422
  };
3417
- function Oe(t) {
3423
+ function Ee(t) {
3418
3424
  return t.toLocaleTimeString(void 0, { hour: "2-digit", minute: "2-digit" });
3419
3425
  }
3420
- const bo = ut({
3426
+ const ro = lt({
3421
3427
  slots: {
3422
3428
  currentTime: "absolute left-0 right-0 border-t border-primary/50",
3423
3429
  currentTimeLabel: "absolute left-1 -translate-y-1/2 rounded-sm bg-primary px-1 text-xs text-primary-foreground"
3424
3430
  }
3425
- }), Jn = ({ showValue: t = !1 }) => {
3426
- const [e, n] = $(() => yn()), [r, i] = $(() => t ? Oe(/* @__PURE__ */ new Date()) : null), o = O(null);
3427
- k(() => {
3428
- var c;
3429
- (c = o.current) == null || c.scrollIntoView({ behavior: "instant", block: "center" });
3431
+ }), Fn = ({ showValue: t = !1 }) => {
3432
+ const [e, n] = j(() => un()), [r, i] = j(() => t ? Ee(/* @__PURE__ */ new Date()) : null), o = T(null);
3433
+ O(() => {
3434
+ o.current?.scrollIntoView({ behavior: "instant", block: "center" });
3430
3435
  const l = setInterval(() => {
3431
- n(yn()), t && i(Oe(/* @__PURE__ */ new Date()));
3436
+ n(un()), t && i(Ee(/* @__PURE__ */ new Date()));
3432
3437
  }, 6e4);
3433
3438
  return () => clearInterval(l);
3434
3439
  }, [t]);
3435
- const { currentTime: a, currentTimeLabel: s } = bo();
3440
+ const { currentTime: a, currentTimeLabel: s } = ro();
3436
3441
  return /* @__PURE__ */ D("div", { ref: o, className: a(), style: { top: e }, children: t && /* @__PURE__ */ D("span", { className: s(), children: r }) });
3437
- }, mo = ut({
3442
+ }, io = lt({
3438
3443
  slots: { wrapper: "relative h-full w-full overflow-visible border-l border-border first:border-l-0" }
3439
- }), wo = ({ day: t, events: e }) => {
3440
- const { timeSnap: n, onDayClick: r, onEventClick: i, hourHeight: o } = Lt(), { setNodeRef: a } = ki({ id: `day-column-${t.toISOString()}`, data: { day: t } }), s = E(() => {
3441
- const u = new Date(t.setHours(0, 0, 0, 0)), h = new Date(t.setHours(23, 59, 59, 999));
3442
- return e.filter((p) => p.startDate <= h && p.endDate >= u);
3443
- }, [t, e]), l = L(
3444
+ }), oo = ({ day: t, events: e }) => {
3445
+ const { timeSnap: n, onDayClick: r, onEventClick: i, hourHeight: o } = At(), { setNodeRef: a } = xi({ id: `day-column-${t.toISOString()}`, data: { day: t } }), s = C(() => {
3446
+ const u = new Date(t.setHours(0, 0, 0, 0)), f = new Date(t.setHours(23, 59, 59, 999));
3447
+ return e.filter((p) => p.startDate <= f && p.endDate >= u);
3448
+ }, [t, e]), l = A(
3444
3449
  (u) => {
3445
- r == null || r({ date: qi(u, t, n != null ? n : 0) });
3450
+ r?.({ date: Wi(u, t, n ?? 0) });
3446
3451
  },
3447
3452
  [r, t, n]
3448
- ), c = E(() => eo(s, o), [s, o]), { wrapper: d } = mo();
3449
- return /* @__PURE__ */ bt(
3453
+ ), c = C(() => ji(s, o), [s, o]), { wrapper: d } = io();
3454
+ return /* @__PURE__ */ gt(
3450
3455
  "div",
3451
3456
  {
3452
3457
  className: d(),
3453
3458
  style: { height: `${o * 24}px` },
3454
3459
  ref: a,
3455
3460
  onClick: l,
3456
- [Gn]: "",
3461
+ [In]: "",
3457
3462
  children: [
3458
3463
  s.map((u) => {
3459
- const h = c.get(u.id);
3464
+ const f = c.get(u.id);
3460
3465
  return /* @__PURE__ */ D(
3461
- qn,
3466
+ _n,
3462
3467
  {
3463
3468
  event: u,
3464
3469
  onEventClick: i,
3465
- top: h == null ? void 0 : h.top,
3466
- width: h == null ? void 0 : h.width,
3467
- left: h == null ? void 0 : h.left
3470
+ top: f?.top,
3471
+ width: f?.width,
3472
+ left: f?.left
3468
3473
  },
3469
3474
  u.id
3470
3475
  );
3471
3476
  }),
3472
- /* @__PURE__ */ D(Jn, {})
3477
+ /* @__PURE__ */ D(Fn, {})
3473
3478
  ]
3474
3479
  }
3475
3480
  );
3476
- }, yo = ut({
3481
+ }, so = lt({
3477
3482
  base: "flex h-full w-full"
3478
- }), xo = ({ events: t }) => {
3479
- const { onEventDrop: e, dates: n, gridSize: r, pxToMinutes: i, snapToTime: o } = Lt(), [a, s] = $(null), l = ln(_e, { activationConstraint: { distance: 10 } }), c = ln(Ie), d = Tr(l, c), u = L(
3483
+ }), ao = ({ events: t }) => {
3484
+ const { onEventDrop: e, dates: n, gridSize: r, pxToMinutes: i, snapToTime: o } = At(), [a, s] = j(null), l = Je(Pe, { activationConstraint: { distance: 10 } }), c = Je(Le), d = br(l, c), u = A(
3480
3485
  (b) => {
3481
- var C, z, S;
3482
3486
  s(null);
3483
- const f = b.delta.y, g = (C = b.active.data.current) == null ? void 0 : C.event, w = (S = (z = b.over) == null ? void 0 : z.data.current) == null ? void 0 : S.day, y = i(f), v = new Date(g.startDate.getTime() + y * 60 * 1e3);
3484
- v.setDate(w.getDate());
3485
- const x = new Date(g.endDate.getTime() + y * 60 * 1e3);
3486
- x.setDate(w.getDate()), e == null || e(g, { startDate: o(v), endDate: o(x) });
3487
+ const h = b.delta.y, g = b.active.data.current?.event, m = b.over?.data.current?.day, w = i(h), v = new Date(g.startDate.getTime() + w * 60 * 1e3);
3488
+ v.setDate(m.getDate());
3489
+ const y = new Date(g.endDate.getTime() + w * 60 * 1e3);
3490
+ y.setDate(m.getDate()), e?.(g, { startDate: o(v), endDate: o(y) });
3487
3491
  },
3488
3492
  [e, i, o]
3489
- ), h = E(() => So(r), [r]);
3490
- return /* @__PURE__ */ bt(Ei, { onDragStart: p, onDragEnd: u, sensors: d, children: [
3491
- /* @__PURE__ */ D("div", { className: yo(), children: n.map((b, f) => /* @__PURE__ */ D(wo, { day: b, events: t }, f)) }),
3492
- /* @__PURE__ */ D(Ki, { dropAnimation: null, modifiers: [h], children: a ? /* @__PURE__ */ D(qn, { event: t.find((b) => b.id === a) }) : null })
3493
+ ), f = C(() => lo(r), [r]);
3494
+ return /* @__PURE__ */ gt(pi, { onDragStart: p, onDragEnd: u, sensors: d, children: [
3495
+ /* @__PURE__ */ D("div", { className: so(), children: n.map((b, h) => /* @__PURE__ */ D(oo, { day: b, events: t }, h)) }),
3496
+ /* @__PURE__ */ D(ki, { dropAnimation: null, modifiers: [f], children: a ? /* @__PURE__ */ D(_n, { event: t.find((b) => b.id === a) }) : null })
3493
3497
  ] });
3494
3498
  function p(b) {
3495
3499
  s(b.active.id);
3496
3500
  }
3497
- }, So = (t) => (n) => {
3501
+ }, lo = (t) => (n) => {
3498
3502
  const { transform: r, draggingNodeRect: i, over: o, containerNodeRect: a } = n;
3499
- if (!i || !(o != null && o.rect) || !a) return r;
3503
+ if (!i || !o?.rect || !a) return r;
3500
3504
  const s = o.rect.left - i.left, l = (a.top - i.top) % t, c = Math.floor(r.y / t) * t + l;
3501
- return M(m({}, r), {
3505
+ return {
3506
+ ...r,
3502
3507
  x: s,
3503
3508
  y: c
3504
- });
3505
- }, Do = ut({
3509
+ };
3510
+ }, co = lt({
3506
3511
  slots: {
3507
3512
  wrapper: "pointer-events-none absolute inset-0 flex h-full flex-col justify-between",
3508
3513
  hourRow: "h-full border-t border-border"
3509
3514
  }
3510
- }), Ro = () => {
3511
- const { hourHeight: t } = Lt(), { wrapper: e, hourRow: n } = Do();
3515
+ }), uo = () => {
3516
+ const { hourHeight: t } = At(), { wrapper: e, hourRow: n } = co();
3512
3517
  return /* @__PURE__ */ D("div", { className: e(), style: { height: `${t * 24}px` }, children: Array.from({ length: 24 }).map((r, i) => /* @__PURE__ */ D("div", { className: n(), style: { height: `${t}px` } }, i)) });
3513
- }, Co = ut({
3518
+ }, ho = lt({
3514
3519
  slots: {
3515
3520
  wrapper: "relative h-full",
3516
3521
  hourMark: "h-full pl-2 pr-2",
3517
3522
  hourLabel: "-translate-y-1/2 text-xs text-muted-foreground"
3518
3523
  }
3519
- }), zo = ({ showCurrentTime: t = !1 }) => {
3520
- const { hourHeight: e } = Lt(), { wrapper: n, hourMark: r, hourLabel: i } = Co(), o = E(() => {
3524
+ }), fo = ({ showCurrentTime: t = !1 }) => {
3525
+ const { hourHeight: e } = At(), { wrapper: n, hourMark: r, hourLabel: i } = ho(), o = C(() => {
3521
3526
  const a = /* @__PURE__ */ new Date();
3522
- return Array.from({ length: 24 }, (s, l) => (a.setHours(l), a.setMinutes(0), a.setSeconds(0), a.setMilliseconds(0), Oe(a)));
3527
+ return Array.from({ length: 24 }, (s, l) => (a.setHours(l), a.setMinutes(0), a.setSeconds(0), a.setMilliseconds(0), Ee(a)));
3523
3528
  }, []);
3524
- return /* @__PURE__ */ bt("div", { className: n(), style: { height: `${e * 24}px` }, children: [
3529
+ return /* @__PURE__ */ gt("div", { className: n(), style: { height: `${e * 24}px` }, children: [
3525
3530
  o.map((a, s) => /* @__PURE__ */ D("div", { className: r(), style: { height: `${e}px` }, children: s !== 0 && /* @__PURE__ */ D("div", { className: i(), children: a }) }, a)),
3526
- t && /* @__PURE__ */ D(Jn, { showValue: !0 })
3531
+ t && /* @__PURE__ */ D(Fn, { showValue: !0 })
3527
3532
  ] });
3528
- }, Eo = ut({
3533
+ }, po = lt({
3529
3534
  slots: {
3530
3535
  wrapper: "flex w-full flex-col items-center",
3531
3536
  date: "text-3xl font-bold leading-none text-secondary-foreground",
@@ -3539,23 +3544,23 @@ const bo = ut({
3539
3544
  }
3540
3545
  }
3541
3546
  }
3542
- }), Mo = ({ date: t, holyday: e = !1 }) => {
3543
- const n = E(() => t.toLocaleDateString(void 0, { weekday: "short" }), [t]), r = E(() => t.toLocaleDateString(void 0, { month: "long" }), [t]), { wrapper: i, date: o, dayOfWeek: a, monthName: s } = Eo({ holyday: e });
3544
- return /* @__PURE__ */ bt("div", { className: i(), children: [
3547
+ }), go = ({ date: t, holyday: e = !1 }) => {
3548
+ const n = C(() => t.toLocaleDateString(void 0, { weekday: "short" }), [t]), r = C(() => t.toLocaleDateString(void 0, { month: "long" }), [t]), { wrapper: i, date: o, dayOfWeek: a, monthName: s } = po({ holyday: e });
3549
+ return /* @__PURE__ */ gt("div", { className: i(), children: [
3545
3550
  /* @__PURE__ */ D("div", { className: a(), children: n }),
3546
3551
  /* @__PURE__ */ D("div", { className: o(), children: t.getDate() }),
3547
3552
  /* @__PURE__ */ D("div", { className: s(), children: r })
3548
3553
  ] });
3549
- }, No = ut({ base: "flex w-full justify-between" }), To = () => {
3550
- const { dates: t } = Lt();
3551
- return /* @__PURE__ */ D("div", { className: No(), children: t.map((e, n) => /* @__PURE__ */ D(Mo, { date: e }, n)) });
3552
- }, Ao = ut({
3554
+ }, vo = lt({ base: "flex w-full justify-between" }), bo = () => {
3555
+ const { dates: t } = At();
3556
+ return /* @__PURE__ */ D("div", { className: vo(), children: t.map((e, n) => /* @__PURE__ */ D(go, { date: e }, n)) });
3557
+ }, mo = lt({
3553
3558
  base: "flex h-full flex-col",
3554
3559
  slots: {
3555
3560
  content: "relative flex flex-1 overflow-auto",
3556
3561
  days: "relative flex-1"
3557
3562
  }
3558
- }), Io = ({
3563
+ }), Ro = ({
3559
3564
  events: t,
3560
3565
  startDate: e,
3561
3566
  endDate: n,
@@ -3568,23 +3573,23 @@ const bo = ut({
3568
3573
  showDates: c = !0,
3569
3574
  hourHeight: d = 40,
3570
3575
  isDraggable: u,
3571
- isResizable: h
3576
+ isResizable: f
3572
3577
  }) => {
3573
- const p = E(() => {
3574
- const y = e ? new Date(e) : /* @__PURE__ */ new Date();
3575
- y.setHours(0, 0, 0, 0);
3578
+ const p = C(() => {
3579
+ const w = e ? new Date(e) : /* @__PURE__ */ new Date();
3580
+ w.setHours(0, 0, 0, 0);
3576
3581
  const v = [];
3577
3582
  if (!n)
3578
- v.push(y);
3583
+ v.push(w);
3579
3584
  else {
3580
- const x = new Date(y);
3581
- for (; x <= n; )
3582
- v.push(new Date(x)), x.setDate(x.getDate() + 1);
3585
+ const y = new Date(w);
3586
+ for (; y <= n; )
3587
+ v.push(new Date(y)), y.setDate(y.getDate() + 1);
3583
3588
  }
3584
3589
  return v;
3585
- }, [e, n]), { content: b, days: f, base: g } = Ao(), w = c ? /* @__PURE__ */ D("div", { children: /* @__PURE__ */ D(To, {}) }) : null;
3590
+ }, [e, n]), { content: b, days: h, base: g } = mo(), m = c ? /* @__PURE__ */ D("div", { children: /* @__PURE__ */ D(bo, {}) }) : null;
3586
3591
  return /* @__PURE__ */ D(
3587
- Gi,
3592
+ Pi,
3588
3593
  {
3589
3594
  value: {
3590
3595
  dates: p,
@@ -3596,15 +3601,15 @@ const bo = ut({
3596
3601
  hourHeight: d,
3597
3602
  eventComponent: l,
3598
3603
  isDraggable: u,
3599
- isResizable: h
3604
+ isResizable: f
3600
3605
  },
3601
- children: /* @__PURE__ */ D(cr, { children: /* @__PURE__ */ bt("div", { className: g(), children: [
3602
- w,
3603
- /* @__PURE__ */ bt("div", { className: b(), children: [
3604
- /* @__PURE__ */ D("div", { children: /* @__PURE__ */ D(zo, { showCurrentTime: !0 }) }),
3605
- /* @__PURE__ */ bt("div", { className: f(), children: [
3606
- /* @__PURE__ */ D(Ro, {}),
3607
- /* @__PURE__ */ D(xo, { events: t })
3606
+ children: /* @__PURE__ */ D(rr, { children: /* @__PURE__ */ gt("div", { className: g(), children: [
3607
+ m,
3608
+ /* @__PURE__ */ gt("div", { className: b(), children: [
3609
+ /* @__PURE__ */ D("div", { children: /* @__PURE__ */ D(fo, { showCurrentTime: !0 }) }),
3610
+ /* @__PURE__ */ gt("div", { className: h(), children: [
3611
+ /* @__PURE__ */ D(uo, {}),
3612
+ /* @__PURE__ */ D(ao, { events: t })
3608
3613
  ] })
3609
3614
  ] })
3610
3615
  ] }) })
@@ -3612,6 +3617,6 @@ const bo = ut({
3612
3617
  );
3613
3618
  };
3614
3619
  export {
3615
- Io as Scheduler
3620
+ Ro as Scheduler
3616
3621
  };
3617
3622
  //# sourceMappingURL=scheduler.js.map