@dartcom/ui-kit 3.4.1 → 3.4.2

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 (878) hide show
  1. package/dist/_virtual/_commonjsHelpers.js +8 -0
  2. package/dist/_virtual/_commonjsHelpers.js.map +1 -0
  3. package/dist/_virtual/hoist-non-react-statics.cjs.js +6 -0
  4. package/dist/_virtual/hoist-non-react-statics.cjs.js.map +1 -0
  5. package/dist/_virtual/index.js +12 -0
  6. package/dist/_virtual/index.js.map +1 -0
  7. package/dist/_virtual/index2.js +8 -0
  8. package/dist/_virtual/index2.js.map +1 -0
  9. package/dist/_virtual/index3.js +6 -0
  10. package/dist/_virtual/index3.js.map +1 -0
  11. package/dist/_virtual/index4.js +6 -0
  12. package/dist/_virtual/index4.js.map +1 -0
  13. package/dist/_virtual/index5.js +6 -0
  14. package/dist/_virtual/index5.js.map +1 -0
  15. package/dist/_virtual/index6.js +6 -0
  16. package/dist/_virtual/index6.js.map +1 -0
  17. package/dist/_virtual/react-is.development.js +6 -0
  18. package/dist/_virtual/react-is.development.js.map +1 -0
  19. package/dist/_virtual/react-is.development2.js +6 -0
  20. package/dist/_virtual/react-is.development2.js.map +1 -0
  21. package/dist/_virtual/react-is.development3.js +6 -0
  22. package/dist/_virtual/react-is.development3.js.map +1 -0
  23. package/dist/_virtual/react-is.production.js +6 -0
  24. package/dist/_virtual/react-is.production.js.map +1 -0
  25. package/dist/_virtual/react-is.production.min.js +6 -0
  26. package/dist/_virtual/react-is.production.min.js.map +1 -0
  27. package/dist/_virtual/react-is.production.min2.js +6 -0
  28. package/dist/_virtual/react-is.production.min2.js.map +1 -0
  29. package/dist/components/buttons/delete/delete.js +68 -0
  30. package/dist/components/buttons/delete/delete.js.map +1 -0
  31. package/dist/components/buttons/edit/edit.js +35 -0
  32. package/dist/components/buttons/edit/edit.js.map +1 -0
  33. package/dist/components/checkbox/checkbox.js +70 -0
  34. package/dist/components/checkbox/checkbox.js.map +1 -0
  35. package/dist/components/drag-list/drag-list.js +30 -0
  36. package/dist/components/drag-list/drag-list.js.map +1 -0
  37. package/dist/components/drag-list/draggable/draggable.js +34 -0
  38. package/dist/components/drag-list/draggable/draggable.js.map +1 -0
  39. package/dist/components/form/form.js +30 -0
  40. package/dist/components/form/form.js.map +1 -0
  41. package/dist/components/input/input.js +54 -0
  42. package/dist/components/input/input.js.map +1 -0
  43. package/dist/components/layers/leaflet/hooks/useGetLeafletLayer.js +51 -0
  44. package/dist/components/layers/leaflet/hooks/useGetLeafletLayer.js.map +1 -0
  45. package/dist/components/layers/leaflet/leaflet.js +42 -0
  46. package/dist/components/layers/leaflet/leaflet.js.map +1 -0
  47. package/dist/components/list/list.js +54 -0
  48. package/dist/components/list/list.js.map +1 -0
  49. package/dist/components/no-data/no-data.js +16 -0
  50. package/dist/components/no-data/no-data.js.map +1 -0
  51. package/dist/components/paragraph/paragraph.js +17 -0
  52. package/dist/components/paragraph/paragraph.js.map +1 -0
  53. package/dist/components/select/select.js +52 -0
  54. package/dist/components/select/select.js.map +1 -0
  55. package/dist/components/text-field/text-field.js +13 -0
  56. package/dist/components/text-field/text-field.js.map +1 -0
  57. package/dist/configs/global/constants.js +11 -0
  58. package/dist/configs/global/constants.js.map +1 -0
  59. package/dist/configs/global/global.js +63 -0
  60. package/dist/configs/global/global.js.map +1 -0
  61. package/dist/constants/api.js +10 -0
  62. package/dist/constants/api.js.map +1 -0
  63. package/dist/constants/map.js +10 -0
  64. package/dist/constants/map.js.map +1 -0
  65. package/dist/esm/types/components/checkbox/checkbox.stories.d.ts.map +1 -1
  66. package/dist/esm/types/components/dialog/dialog.d.ts.map +1 -1
  67. package/dist/esm/types/components/select/select.stories.d.ts.map +1 -1
  68. package/dist/index.js +42 -0
  69. package/dist/index.js.map +1 -0
  70. package/dist/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js +11 -0
  71. package/dist/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js.map +1 -0
  72. package/dist/node_modules/@babel/runtime/helpers/esm/extends.js +16 -0
  73. package/dist/node_modules/@babel/runtime/helpers/esm/extends.js.map +1 -0
  74. package/dist/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js +12 -0
  75. package/dist/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js.map +1 -0
  76. package/dist/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js +16 -0
  77. package/dist/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js.map +1 -0
  78. package/dist/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js +12 -0
  79. package/dist/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js.map +1 -0
  80. package/dist/node_modules/@dnd-kit/accessibility/dist/accessibility.esm.js +65 -0
  81. package/dist/node_modules/@dnd-kit/accessibility/dist/accessibility.esm.js.map +1 -0
  82. package/dist/node_modules/@dnd-kit/core/dist/core.esm.js +3461 -0
  83. package/dist/node_modules/@dnd-kit/core/dist/core.esm.js.map +1 -0
  84. package/dist/node_modules/@dnd-kit/sortable/dist/sortable.esm.js +535 -0
  85. package/dist/node_modules/@dnd-kit/sortable/dist/sortable.esm.js.map +1 -0
  86. package/dist/node_modules/@dnd-kit/utilities/dist/utilities.esm.js +359 -0
  87. package/dist/node_modules/@dnd-kit/utilities/dist/utilities.esm.js.map +1 -0
  88. package/dist/node_modules/@emotion/cache/dist/emotion-cache.browser.esm.js +446 -0
  89. package/dist/node_modules/@emotion/cache/dist/emotion-cache.browser.esm.js.map +1 -0
  90. package/dist/node_modules/@emotion/hash/dist/emotion-hash.esm.js +60 -0
  91. package/dist/node_modules/@emotion/hash/dist/emotion-hash.esm.js.map +1 -0
  92. package/dist/node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.esm.js +21 -0
  93. package/dist/node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.esm.js.map +1 -0
  94. package/dist/node_modules/@emotion/memoize/dist/emotion-memoize.esm.js +14 -0
  95. package/dist/node_modules/@emotion/memoize/dist/emotion-memoize.esm.js.map +1 -0
  96. package/dist/node_modules/@emotion/react/dist/emotion-element-f0de968e.browser.esm.js +130 -0
  97. package/dist/node_modules/@emotion/react/dist/emotion-element-f0de968e.browser.esm.js.map +1 -0
  98. package/dist/node_modules/@emotion/react/dist/emotion-react.browser.esm.js +150 -0
  99. package/dist/node_modules/@emotion/react/dist/emotion-react.browser.esm.js.map +1 -0
  100. package/dist/node_modules/@emotion/serialize/dist/emotion-serialize.esm.js +232 -0
  101. package/dist/node_modules/@emotion/serialize/dist/emotion-serialize.esm.js.map +1 -0
  102. package/dist/node_modules/@emotion/sheet/dist/emotion-sheet.esm.js +141 -0
  103. package/dist/node_modules/@emotion/sheet/dist/emotion-sheet.esm.js.map +1 -0
  104. package/dist/node_modules/@emotion/styled/base/dist/emotion-styled-base.browser.esm.js +190 -0
  105. package/dist/node_modules/@emotion/styled/base/dist/emotion-styled-base.browser.esm.js.map +1 -0
  106. package/dist/node_modules/@emotion/styled/dist/emotion-styled.browser.esm.js +18 -0
  107. package/dist/node_modules/@emotion/styled/dist/emotion-styled.browser.esm.js.map +1 -0
  108. package/dist/node_modules/@emotion/unitless/dist/emotion-unitless.esm.js +57 -0
  109. package/dist/node_modules/@emotion/unitless/dist/emotion-unitless.esm.js.map +1 -0
  110. package/dist/node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.browser.esm.js +34 -0
  111. package/dist/node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.browser.esm.js.map +1 -0
  112. package/dist/node_modules/@emotion/utils/dist/emotion-utils.browser.esm.js +50 -0
  113. package/dist/node_modules/@emotion/utils/dist/emotion-utils.browser.esm.js.map +1 -0
  114. package/dist/node_modules/@mui/icons-material/esm/Delete.js +14 -0
  115. package/dist/node_modules/@mui/icons-material/esm/Delete.js.map +1 -0
  116. package/dist/node_modules/@mui/icons-material/esm/Edit.js +14 -0
  117. package/dist/node_modules/@mui/icons-material/esm/Edit.js.map +1 -0
  118. package/dist/node_modules/@mui/material/esm/Autocomplete/Autocomplete.js +1228 -0
  119. package/dist/node_modules/@mui/material/esm/Autocomplete/Autocomplete.js.map +1 -0
  120. package/dist/node_modules/@mui/material/esm/Autocomplete/autocompleteClasses.js +15 -0
  121. package/dist/node_modules/@mui/material/esm/Autocomplete/autocompleteClasses.js.map +1 -0
  122. package/dist/node_modules/@mui/material/esm/Backdrop/Backdrop.js +231 -0
  123. package/dist/node_modules/@mui/material/esm/Backdrop/Backdrop.js.map +1 -0
  124. package/dist/node_modules/@mui/material/esm/Backdrop/backdropClasses.js +12 -0
  125. package/dist/node_modules/@mui/material/esm/Backdrop/backdropClasses.js.map +1 -0
  126. package/dist/node_modules/@mui/material/esm/Box/Box.js +41 -0
  127. package/dist/node_modules/@mui/material/esm/Box/Box.js.map +1 -0
  128. package/dist/node_modules/@mui/material/esm/Box/boxClasses.js +10 -0
  129. package/dist/node_modules/@mui/material/esm/Box/boxClasses.js.map +1 -0
  130. package/dist/node_modules/@mui/material/esm/Button/Button.js +710 -0
  131. package/dist/node_modules/@mui/material/esm/Button/Button.js.map +1 -0
  132. package/dist/node_modules/@mui/material/esm/Button/buttonClasses.js +15 -0
  133. package/dist/node_modules/@mui/material/esm/Button/buttonClasses.js.map +1 -0
  134. package/dist/node_modules/@mui/material/esm/ButtonBase/ButtonBase.js +472 -0
  135. package/dist/node_modules/@mui/material/esm/ButtonBase/ButtonBase.js.map +1 -0
  136. package/dist/node_modules/@mui/material/esm/ButtonBase/Ripple.js +109 -0
  137. package/dist/node_modules/@mui/material/esm/ButtonBase/Ripple.js.map +1 -0
  138. package/dist/node_modules/@mui/material/esm/ButtonBase/TouchRipple.js +353 -0
  139. package/dist/node_modules/@mui/material/esm/ButtonBase/TouchRipple.js.map +1 -0
  140. package/dist/node_modules/@mui/material/esm/ButtonBase/buttonBaseClasses.js +15 -0
  141. package/dist/node_modules/@mui/material/esm/ButtonBase/buttonBaseClasses.js.map +1 -0
  142. package/dist/node_modules/@mui/material/esm/ButtonBase/touchRippleClasses.js +10 -0
  143. package/dist/node_modules/@mui/material/esm/ButtonBase/touchRippleClasses.js.map +1 -0
  144. package/dist/node_modules/@mui/material/esm/ButtonGroup/ButtonGroupButtonContext.js +36 -0
  145. package/dist/node_modules/@mui/material/esm/ButtonGroup/ButtonGroupButtonContext.js.map +1 -0
  146. package/dist/node_modules/@mui/material/esm/ButtonGroup/ButtonGroupContext.js +36 -0
  147. package/dist/node_modules/@mui/material/esm/ButtonGroup/ButtonGroupContext.js.map +1 -0
  148. package/dist/node_modules/@mui/material/esm/Checkbox/Checkbox.js +304 -0
  149. package/dist/node_modules/@mui/material/esm/Checkbox/Checkbox.js.map +1 -0
  150. package/dist/node_modules/@mui/material/esm/Checkbox/checkboxClasses.js +15 -0
  151. package/dist/node_modules/@mui/material/esm/Checkbox/checkboxClasses.js.map +1 -0
  152. package/dist/node_modules/@mui/material/esm/Chip/Chip.js +652 -0
  153. package/dist/node_modules/@mui/material/esm/Chip/Chip.js.map +1 -0
  154. package/dist/node_modules/@mui/material/esm/Chip/chipClasses.js +15 -0
  155. package/dist/node_modules/@mui/material/esm/Chip/chipClasses.js.map +1 -0
  156. package/dist/node_modules/@mui/material/esm/CircularProgress/CircularProgress.js +337 -0
  157. package/dist/node_modules/@mui/material/esm/CircularProgress/CircularProgress.js.map +1 -0
  158. package/dist/node_modules/@mui/material/esm/CircularProgress/circularProgressClasses.js +12 -0
  159. package/dist/node_modules/@mui/material/esm/CircularProgress/circularProgressClasses.js.map +1 -0
  160. package/dist/node_modules/@mui/material/esm/DefaultPropsProvider/DefaultPropsProvider.js +28 -0
  161. package/dist/node_modules/@mui/material/esm/DefaultPropsProvider/DefaultPropsProvider.js.map +1 -0
  162. package/dist/node_modules/@mui/material/esm/Dialog/Dialog.js +535 -0
  163. package/dist/node_modules/@mui/material/esm/Dialog/Dialog.js.map +1 -0
  164. package/dist/node_modules/@mui/material/esm/Dialog/DialogContext.js +33 -0
  165. package/dist/node_modules/@mui/material/esm/Dialog/DialogContext.js.map +1 -0
  166. package/dist/node_modules/@mui/material/esm/Dialog/dialogClasses.js +15 -0
  167. package/dist/node_modules/@mui/material/esm/Dialog/dialogClasses.js.map +1 -0
  168. package/dist/node_modules/@mui/material/esm/DialogActions/DialogActions.js +121 -0
  169. package/dist/node_modules/@mui/material/esm/DialogActions/DialogActions.js.map +1 -0
  170. package/dist/node_modules/@mui/material/esm/DialogActions/dialogActionsClasses.js +12 -0
  171. package/dist/node_modules/@mui/material/esm/DialogActions/dialogActionsClasses.js.map +1 -0
  172. package/dist/node_modules/@mui/material/esm/DialogContent/DialogContent.js +134 -0
  173. package/dist/node_modules/@mui/material/esm/DialogContent/DialogContent.js.map +1 -0
  174. package/dist/node_modules/@mui/material/esm/DialogContent/dialogContentClasses.js +12 -0
  175. package/dist/node_modules/@mui/material/esm/DialogContent/dialogContentClasses.js.map +1 -0
  176. package/dist/node_modules/@mui/material/esm/DialogContentText/DialogContentText.js +101 -0
  177. package/dist/node_modules/@mui/material/esm/DialogContentText/DialogContentText.js.map +1 -0
  178. package/dist/node_modules/@mui/material/esm/DialogContentText/dialogContentTextClasses.js +12 -0
  179. package/dist/node_modules/@mui/material/esm/DialogContentText/dialogContentTextClasses.js.map +1 -0
  180. package/dist/node_modules/@mui/material/esm/DialogTitle/DialogTitle.js +105 -0
  181. package/dist/node_modules/@mui/material/esm/DialogTitle/DialogTitle.js.map +1 -0
  182. package/dist/node_modules/@mui/material/esm/DialogTitle/dialogTitleClasses.js +15 -0
  183. package/dist/node_modules/@mui/material/esm/DialogTitle/dialogTitleClasses.js.map +1 -0
  184. package/dist/node_modules/@mui/material/esm/Fade/Fade.js +234 -0
  185. package/dist/node_modules/@mui/material/esm/Fade/Fade.js.map +1 -0
  186. package/dist/node_modules/@mui/material/esm/FilledInput/FilledInput.js +540 -0
  187. package/dist/node_modules/@mui/material/esm/FilledInput/FilledInput.js.map +1 -0
  188. package/dist/node_modules/@mui/material/esm/FilledInput/filledInputClasses.js +19 -0
  189. package/dist/node_modules/@mui/material/esm/FilledInput/filledInputClasses.js.map +1 -0
  190. package/dist/node_modules/@mui/material/esm/FormControl/FormControl.js +330 -0
  191. package/dist/node_modules/@mui/material/esm/FormControl/FormControl.js.map +1 -0
  192. package/dist/node_modules/@mui/material/esm/FormControl/FormControlContext.js +36 -0
  193. package/dist/node_modules/@mui/material/esm/FormControl/FormControlContext.js.map +1 -0
  194. package/dist/node_modules/@mui/material/esm/FormControl/formControlClasses.js +12 -0
  195. package/dist/node_modules/@mui/material/esm/FormControl/formControlClasses.js.map +1 -0
  196. package/dist/node_modules/@mui/material/esm/FormControl/formControlState.js +22 -0
  197. package/dist/node_modules/@mui/material/esm/FormControl/formControlState.js.map +1 -0
  198. package/dist/node_modules/@mui/material/esm/FormControl/useFormControl.js +33 -0
  199. package/dist/node_modules/@mui/material/esm/FormControl/useFormControl.js.map +1 -0
  200. package/dist/node_modules/@mui/material/esm/FormControlLabel/FormControlLabel.js +308 -0
  201. package/dist/node_modules/@mui/material/esm/FormControlLabel/FormControlLabel.js.map +1 -0
  202. package/dist/node_modules/@mui/material/esm/FormControlLabel/formControlLabelClasses.js +15 -0
  203. package/dist/node_modules/@mui/material/esm/FormControlLabel/formControlLabelClasses.js.map +1 -0
  204. package/dist/node_modules/@mui/material/esm/FormHelperText/FormHelperText.js +211 -0
  205. package/dist/node_modules/@mui/material/esm/FormHelperText/FormHelperText.js.map +1 -0
  206. package/dist/node_modules/@mui/material/esm/FormHelperText/formHelperTextClasses.js +15 -0
  207. package/dist/node_modules/@mui/material/esm/FormHelperText/formHelperTextClasses.js.map +1 -0
  208. package/dist/node_modules/@mui/material/esm/FormLabel/FormLabel.js +207 -0
  209. package/dist/node_modules/@mui/material/esm/FormLabel/FormLabel.js.map +1 -0
  210. package/dist/node_modules/@mui/material/esm/FormLabel/formLabelClasses.js +15 -0
  211. package/dist/node_modules/@mui/material/esm/FormLabel/formLabelClasses.js.map +1 -0
  212. package/dist/node_modules/@mui/material/esm/GlobalStyles/GlobalStyles.js +31 -0
  213. package/dist/node_modules/@mui/material/esm/GlobalStyles/GlobalStyles.js.map +1 -0
  214. package/dist/node_modules/@mui/material/esm/Grow/Grow.js +287 -0
  215. package/dist/node_modules/@mui/material/esm/Grow/Grow.js.map +1 -0
  216. package/dist/node_modules/@mui/material/esm/IconButton/IconButton.js +345 -0
  217. package/dist/node_modules/@mui/material/esm/IconButton/IconButton.js.map +1 -0
  218. package/dist/node_modules/@mui/material/esm/IconButton/iconButtonClasses.js +15 -0
  219. package/dist/node_modules/@mui/material/esm/IconButton/iconButtonClasses.js.map +1 -0
  220. package/dist/node_modules/@mui/material/esm/Input/Input.js +385 -0
  221. package/dist/node_modules/@mui/material/esm/Input/Input.js.map +1 -0
  222. package/dist/node_modules/@mui/material/esm/Input/inputClasses.js +19 -0
  223. package/dist/node_modules/@mui/material/esm/Input/inputClasses.js.map +1 -0
  224. package/dist/node_modules/@mui/material/esm/InputBase/InputBase.js +779 -0
  225. package/dist/node_modules/@mui/material/esm/InputBase/InputBase.js.map +1 -0
  226. package/dist/node_modules/@mui/material/esm/InputBase/inputBaseClasses.js +15 -0
  227. package/dist/node_modules/@mui/material/esm/InputBase/inputBaseClasses.js.map +1 -0
  228. package/dist/node_modules/@mui/material/esm/InputBase/utils.js +37 -0
  229. package/dist/node_modules/@mui/material/esm/InputBase/utils.js.map +1 -0
  230. package/dist/node_modules/@mui/material/esm/InputLabel/InputLabel.js +309 -0
  231. package/dist/node_modules/@mui/material/esm/InputLabel/InputLabel.js.map +1 -0
  232. package/dist/node_modules/@mui/material/esm/InputLabel/inputLabelClasses.js +12 -0
  233. package/dist/node_modules/@mui/material/esm/InputLabel/inputLabelClasses.js.map +1 -0
  234. package/dist/node_modules/@mui/material/esm/List/List.js +159 -0
  235. package/dist/node_modules/@mui/material/esm/List/List.js.map +1 -0
  236. package/dist/node_modules/@mui/material/esm/List/ListContext.js +36 -0
  237. package/dist/node_modules/@mui/material/esm/List/ListContext.js.map +1 -0
  238. package/dist/node_modules/@mui/material/esm/List/listClasses.js +12 -0
  239. package/dist/node_modules/@mui/material/esm/List/listClasses.js.map +1 -0
  240. package/dist/node_modules/@mui/material/esm/ListItem/ListItem.js +414 -0
  241. package/dist/node_modules/@mui/material/esm/ListItem/ListItem.js.map +1 -0
  242. package/dist/node_modules/@mui/material/esm/ListItem/listItemClasses.js +12 -0
  243. package/dist/node_modules/@mui/material/esm/ListItem/listItemClasses.js.map +1 -0
  244. package/dist/node_modules/@mui/material/esm/ListItemButton/listItemButtonClasses.js +10 -0
  245. package/dist/node_modules/@mui/material/esm/ListItemButton/listItemButtonClasses.js.map +1 -0
  246. package/dist/node_modules/@mui/material/esm/ListItemSecondaryAction/ListItemSecondaryAction.js +121 -0
  247. package/dist/node_modules/@mui/material/esm/ListItemSecondaryAction/ListItemSecondaryAction.js.map +1 -0
  248. package/dist/node_modules/@mui/material/esm/ListItemSecondaryAction/listItemSecondaryActionClasses.js +12 -0
  249. package/dist/node_modules/@mui/material/esm/ListItemSecondaryAction/listItemSecondaryActionClasses.js.map +1 -0
  250. package/dist/node_modules/@mui/material/esm/ListSubheader/ListSubheader.js +192 -0
  251. package/dist/node_modules/@mui/material/esm/ListSubheader/ListSubheader.js.map +1 -0
  252. package/dist/node_modules/@mui/material/esm/ListSubheader/listSubheaderClasses.js +12 -0
  253. package/dist/node_modules/@mui/material/esm/ListSubheader/listSubheaderClasses.js.map +1 -0
  254. package/dist/node_modules/@mui/material/esm/Menu/Menu.js +364 -0
  255. package/dist/node_modules/@mui/material/esm/Menu/Menu.js.map +1 -0
  256. package/dist/node_modules/@mui/material/esm/Menu/menuClasses.js +12 -0
  257. package/dist/node_modules/@mui/material/esm/Menu/menuClasses.js.map +1 -0
  258. package/dist/node_modules/@mui/material/esm/MenuList/MenuList.js +315 -0
  259. package/dist/node_modules/@mui/material/esm/MenuList/MenuList.js.map +1 -0
  260. package/dist/node_modules/@mui/material/esm/Modal/Modal.js +415 -0
  261. package/dist/node_modules/@mui/material/esm/Modal/Modal.js.map +1 -0
  262. package/dist/node_modules/@mui/material/esm/Modal/ModalManager.js +220 -0
  263. package/dist/node_modules/@mui/material/esm/Modal/ModalManager.js.map +1 -0
  264. package/dist/node_modules/@mui/material/esm/Modal/modalClasses.js +12 -0
  265. package/dist/node_modules/@mui/material/esm/Modal/modalClasses.js.map +1 -0
  266. package/dist/node_modules/@mui/material/esm/Modal/useModal.js +218 -0
  267. package/dist/node_modules/@mui/material/esm/Modal/useModal.js.map +1 -0
  268. package/dist/node_modules/@mui/material/esm/NativeSelect/NativeSelectInput.js +271 -0
  269. package/dist/node_modules/@mui/material/esm/NativeSelect/NativeSelectInput.js.map +1 -0
  270. package/dist/node_modules/@mui/material/esm/NativeSelect/nativeSelectClasses.js +15 -0
  271. package/dist/node_modules/@mui/material/esm/NativeSelect/nativeSelectClasses.js.map +1 -0
  272. package/dist/node_modules/@mui/material/esm/OutlinedInput/NotchedOutline.js +162 -0
  273. package/dist/node_modules/@mui/material/esm/OutlinedInput/NotchedOutline.js.map +1 -0
  274. package/dist/node_modules/@mui/material/esm/OutlinedInput/OutlinedInput.js +454 -0
  275. package/dist/node_modules/@mui/material/esm/OutlinedInput/OutlinedInput.js.map +1 -0
  276. package/dist/node_modules/@mui/material/esm/OutlinedInput/outlinedInputClasses.js +19 -0
  277. package/dist/node_modules/@mui/material/esm/OutlinedInput/outlinedInputClasses.js.map +1 -0
  278. package/dist/node_modules/@mui/material/esm/Paper/Paper.js +196 -0
  279. package/dist/node_modules/@mui/material/esm/Paper/Paper.js.map +1 -0
  280. package/dist/node_modules/@mui/material/esm/Paper/paperClasses.js +12 -0
  281. package/dist/node_modules/@mui/material/esm/Paper/paperClasses.js.map +1 -0
  282. package/dist/node_modules/@mui/material/esm/Popover/Popover.js +610 -0
  283. package/dist/node_modules/@mui/material/esm/Popover/Popover.js.map +1 -0
  284. package/dist/node_modules/@mui/material/esm/Popover/popoverClasses.js +12 -0
  285. package/dist/node_modules/@mui/material/esm/Popover/popoverClasses.js.map +1 -0
  286. package/dist/node_modules/@mui/material/esm/Popper/BasePopper.js +400 -0
  287. package/dist/node_modules/@mui/material/esm/Popper/BasePopper.js.map +1 -0
  288. package/dist/node_modules/@mui/material/esm/Popper/Popper.js +234 -0
  289. package/dist/node_modules/@mui/material/esm/Popper/Popper.js.map +1 -0
  290. package/dist/node_modules/@mui/material/esm/Popper/popperClasses.js +12 -0
  291. package/dist/node_modules/@mui/material/esm/Popper/popperClasses.js.map +1 -0
  292. package/dist/node_modules/@mui/material/esm/Portal/Portal.js +117 -0
  293. package/dist/node_modules/@mui/material/esm/Portal/Portal.js.map +1 -0
  294. package/dist/node_modules/@mui/material/esm/Select/Select.js +324 -0
  295. package/dist/node_modules/@mui/material/esm/Select/Select.js.map +1 -0
  296. package/dist/node_modules/@mui/material/esm/Select/SelectInput.js +701 -0
  297. package/dist/node_modules/@mui/material/esm/Select/SelectInput.js.map +1 -0
  298. package/dist/node_modules/@mui/material/esm/Select/selectClasses.js +15 -0
  299. package/dist/node_modules/@mui/material/esm/Select/selectClasses.js.map +1 -0
  300. package/dist/node_modules/@mui/material/esm/Slide/Slide.js +361 -0
  301. package/dist/node_modules/@mui/material/esm/Slide/Slide.js.map +1 -0
  302. package/dist/node_modules/@mui/material/esm/SvgIcon/SvgIcon.js +259 -0
  303. package/dist/node_modules/@mui/material/esm/SvgIcon/SvgIcon.js.map +1 -0
  304. package/dist/node_modules/@mui/material/esm/SvgIcon/svgIconClasses.js +12 -0
  305. package/dist/node_modules/@mui/material/esm/SvgIcon/svgIconClasses.js.map +1 -0
  306. package/dist/node_modules/@mui/material/esm/TextField/TextField.js +481 -0
  307. package/dist/node_modules/@mui/material/esm/TextField/TextField.js.map +1 -0
  308. package/dist/node_modules/@mui/material/esm/TextField/textFieldClasses.js +12 -0
  309. package/dist/node_modules/@mui/material/esm/TextField/textFieldClasses.js.map +1 -0
  310. package/dist/node_modules/@mui/material/esm/TextareaAutosize/TextareaAutosize.js +281 -0
  311. package/dist/node_modules/@mui/material/esm/TextareaAutosize/TextareaAutosize.js.map +1 -0
  312. package/dist/node_modules/@mui/material/esm/Typography/Typography.js +295 -0
  313. package/dist/node_modules/@mui/material/esm/Typography/Typography.js.map +1 -0
  314. package/dist/node_modules/@mui/material/esm/Typography/typographyClasses.js +12 -0
  315. package/dist/node_modules/@mui/material/esm/Typography/typographyClasses.js.map +1 -0
  316. package/dist/node_modules/@mui/material/esm/Unstable_TrapFocus/FocusTrap.js +357 -0
  317. package/dist/node_modules/@mui/material/esm/Unstable_TrapFocus/FocusTrap.js.map +1 -0
  318. package/dist/node_modules/@mui/material/esm/colors/blue.js +13 -0
  319. package/dist/node_modules/@mui/material/esm/colors/blue.js.map +1 -0
  320. package/dist/node_modules/@mui/material/esm/colors/common.js +11 -0
  321. package/dist/node_modules/@mui/material/esm/colors/common.js.map +1 -0
  322. package/dist/node_modules/@mui/material/esm/colors/green.js +14 -0
  323. package/dist/node_modules/@mui/material/esm/colors/green.js.map +1 -0
  324. package/dist/node_modules/@mui/material/esm/colors/grey.js +23 -0
  325. package/dist/node_modules/@mui/material/esm/colors/grey.js.map +1 -0
  326. package/dist/node_modules/@mui/material/esm/colors/lightBlue.js +13 -0
  327. package/dist/node_modules/@mui/material/esm/colors/lightBlue.js.map +1 -0
  328. package/dist/node_modules/@mui/material/esm/colors/orange.js +13 -0
  329. package/dist/node_modules/@mui/material/esm/colors/orange.js.map +1 -0
  330. package/dist/node_modules/@mui/material/esm/colors/purple.js +14 -0
  331. package/dist/node_modules/@mui/material/esm/colors/purple.js.map +1 -0
  332. package/dist/node_modules/@mui/material/esm/colors/red.js +13 -0
  333. package/dist/node_modules/@mui/material/esm/colors/red.js.map +1 -0
  334. package/dist/node_modules/@mui/material/esm/internal/SwitchBase.js +383 -0
  335. package/dist/node_modules/@mui/material/esm/internal/SwitchBase.js.map +1 -0
  336. package/dist/node_modules/@mui/material/esm/internal/svg-icons/ArrowDropDown.js +14 -0
  337. package/dist/node_modules/@mui/material/esm/internal/svg-icons/ArrowDropDown.js.map +1 -0
  338. package/dist/node_modules/@mui/material/esm/internal/svg-icons/Cancel.js +14 -0
  339. package/dist/node_modules/@mui/material/esm/internal/svg-icons/Cancel.js.map +1 -0
  340. package/dist/node_modules/@mui/material/esm/internal/svg-icons/CheckBox.js +14 -0
  341. package/dist/node_modules/@mui/material/esm/internal/svg-icons/CheckBox.js.map +1 -0
  342. package/dist/node_modules/@mui/material/esm/internal/svg-icons/CheckBoxOutlineBlank.js +14 -0
  343. package/dist/node_modules/@mui/material/esm/internal/svg-icons/CheckBoxOutlineBlank.js.map +1 -0
  344. package/dist/node_modules/@mui/material/esm/internal/svg-icons/Close.js +14 -0
  345. package/dist/node_modules/@mui/material/esm/internal/svg-icons/Close.js.map +1 -0
  346. package/dist/node_modules/@mui/material/esm/internal/svg-icons/IndeterminateCheckBox.js +14 -0
  347. package/dist/node_modules/@mui/material/esm/internal/svg-icons/IndeterminateCheckBox.js.map +1 -0
  348. package/dist/node_modules/@mui/material/esm/internal/switchBaseClasses.js +12 -0
  349. package/dist/node_modules/@mui/material/esm/internal/switchBaseClasses.js.map +1 -0
  350. package/dist/node_modules/@mui/material/esm/styles/createColorScheme.js +56 -0
  351. package/dist/node_modules/@mui/material/esm/styles/createColorScheme.js.map +1 -0
  352. package/dist/node_modules/@mui/material/esm/styles/createGetSelector.js +68 -0
  353. package/dist/node_modules/@mui/material/esm/styles/createGetSelector.js.map +1 -0
  354. package/dist/node_modules/@mui/material/esm/styles/createMixins.js +23 -0
  355. package/dist/node_modules/@mui/material/esm/styles/createMixins.js.map +1 -0
  356. package/dist/node_modules/@mui/material/esm/styles/createPalette.js +340 -0
  357. package/dist/node_modules/@mui/material/esm/styles/createPalette.js.map +1 -0
  358. package/dist/node_modules/@mui/material/esm/styles/createTheme.js +106 -0
  359. package/dist/node_modules/@mui/material/esm/styles/createTheme.js.map +1 -0
  360. package/dist/node_modules/@mui/material/esm/styles/createThemeNoVars.js +157 -0
  361. package/dist/node_modules/@mui/material/esm/styles/createThemeNoVars.js.map +1 -0
  362. package/dist/node_modules/@mui/material/esm/styles/createThemeWithVars.js +428 -0
  363. package/dist/node_modules/@mui/material/esm/styles/createThemeWithVars.js.map +1 -0
  364. package/dist/node_modules/@mui/material/esm/styles/createTransitions.js +98 -0
  365. package/dist/node_modules/@mui/material/esm/styles/createTransitions.js.map +1 -0
  366. package/dist/node_modules/@mui/material/esm/styles/createTypography.js +100 -0
  367. package/dist/node_modules/@mui/material/esm/styles/createTypography.js.map +1 -0
  368. package/dist/node_modules/@mui/material/esm/styles/defaultTheme.js +11 -0
  369. package/dist/node_modules/@mui/material/esm/styles/defaultTheme.js.map +1 -0
  370. package/dist/node_modules/@mui/material/esm/styles/excludeVariablesFromRoot.js +11 -0
  371. package/dist/node_modules/@mui/material/esm/styles/excludeVariablesFromRoot.js.map +1 -0
  372. package/dist/node_modules/@mui/material/esm/styles/getOverlayAlpha.js +17 -0
  373. package/dist/node_modules/@mui/material/esm/styles/getOverlayAlpha.js.map +1 -0
  374. package/dist/node_modules/@mui/material/esm/styles/identifier.js +8 -0
  375. package/dist/node_modules/@mui/material/esm/styles/identifier.js.map +1 -0
  376. package/dist/node_modules/@mui/material/esm/styles/rootShouldForwardProp.js +10 -0
  377. package/dist/node_modules/@mui/material/esm/styles/rootShouldForwardProp.js.map +1 -0
  378. package/dist/node_modules/@mui/material/esm/styles/shadows.js +16 -0
  379. package/dist/node_modules/@mui/material/esm/styles/shadows.js.map +1 -0
  380. package/dist/node_modules/@mui/material/esm/styles/shouldSkipGeneratingVar.js +12 -0
  381. package/dist/node_modules/@mui/material/esm/styles/shouldSkipGeneratingVar.js.map +1 -0
  382. package/dist/node_modules/@mui/material/esm/styles/slotShouldForwardProp.js +11 -0
  383. package/dist/node_modules/@mui/material/esm/styles/slotShouldForwardProp.js.map +1 -0
  384. package/dist/node_modules/@mui/material/esm/styles/stringifyTheme.js +60 -0
  385. package/dist/node_modules/@mui/material/esm/styles/stringifyTheme.js.map +1 -0
  386. package/dist/node_modules/@mui/material/esm/styles/styled.js +19 -0
  387. package/dist/node_modules/@mui/material/esm/styles/styled.js.map +1 -0
  388. package/dist/node_modules/@mui/material/esm/styles/useTheme.js +41 -0
  389. package/dist/node_modules/@mui/material/esm/styles/useTheme.js.map +1 -0
  390. package/dist/node_modules/@mui/material/esm/styles/zIndex.js +19 -0
  391. package/dist/node_modules/@mui/material/esm/styles/zIndex.js.map +1 -0
  392. package/dist/node_modules/@mui/material/esm/transitions/utils.js +19 -0
  393. package/dist/node_modules/@mui/material/esm/transitions/utils.js.map +1 -0
  394. package/dist/node_modules/@mui/material/esm/useAutocomplete/useAutocomplete.js +1065 -0
  395. package/dist/node_modules/@mui/material/esm/useAutocomplete/useAutocomplete.js.map +1 -0
  396. package/dist/node_modules/@mui/material/esm/useLazyRipple/useLazyRipple.js +112 -0
  397. package/dist/node_modules/@mui/material/esm/useLazyRipple/useLazyRipple.js.map +1 -0
  398. package/dist/node_modules/@mui/material/esm/utils/capitalize.js +10 -0
  399. package/dist/node_modules/@mui/material/esm/utils/capitalize.js.map +1 -0
  400. package/dist/node_modules/@mui/material/esm/utils/createSimplePaletteValueFilter.js +48 -0
  401. package/dist/node_modules/@mui/material/esm/utils/createSimplePaletteValueFilter.js.map +1 -0
  402. package/dist/node_modules/@mui/material/esm/utils/createSvgIcon.js +48 -0
  403. package/dist/node_modules/@mui/material/esm/utils/createSvgIcon.js.map +1 -0
  404. package/dist/node_modules/@mui/material/esm/utils/debounce.js +10 -0
  405. package/dist/node_modules/@mui/material/esm/utils/debounce.js.map +1 -0
  406. package/dist/node_modules/@mui/material/esm/utils/getScrollbarSize.js +10 -0
  407. package/dist/node_modules/@mui/material/esm/utils/getScrollbarSize.js.map +1 -0
  408. package/dist/node_modules/@mui/material/esm/utils/isMuiElement.js +10 -0
  409. package/dist/node_modules/@mui/material/esm/utils/isMuiElement.js.map +1 -0
  410. package/dist/node_modules/@mui/material/esm/utils/memoTheme.js +10 -0
  411. package/dist/node_modules/@mui/material/esm/utils/memoTheme.js.map +1 -0
  412. package/dist/node_modules/@mui/material/esm/utils/mergeSlotProps.js +82 -0
  413. package/dist/node_modules/@mui/material/esm/utils/mergeSlotProps.js.map +1 -0
  414. package/dist/node_modules/@mui/material/esm/utils/ownerDocument.js +10 -0
  415. package/dist/node_modules/@mui/material/esm/utils/ownerDocument.js.map +1 -0
  416. package/dist/node_modules/@mui/material/esm/utils/ownerWindow.js +10 -0
  417. package/dist/node_modules/@mui/material/esm/utils/ownerWindow.js.map +1 -0
  418. package/dist/node_modules/@mui/material/esm/utils/unsupportedProp.js +10 -0
  419. package/dist/node_modules/@mui/material/esm/utils/unsupportedProp.js.map +1 -0
  420. package/dist/node_modules/@mui/material/esm/utils/useControlled.js +11 -0
  421. package/dist/node_modules/@mui/material/esm/utils/useControlled.js.map +1 -0
  422. package/dist/node_modules/@mui/material/esm/utils/useEnhancedEffect.js +11 -0
  423. package/dist/node_modules/@mui/material/esm/utils/useEnhancedEffect.js.map +1 -0
  424. package/dist/node_modules/@mui/material/esm/utils/useEventCallback.js +11 -0
  425. package/dist/node_modules/@mui/material/esm/utils/useEventCallback.js.map +1 -0
  426. package/dist/node_modules/@mui/material/esm/utils/useForkRef.js +11 -0
  427. package/dist/node_modules/@mui/material/esm/utils/useForkRef.js.map +1 -0
  428. package/dist/node_modules/@mui/material/esm/utils/useId.js +11 -0
  429. package/dist/node_modules/@mui/material/esm/utils/useId.js.map +1 -0
  430. package/dist/node_modules/@mui/material/esm/utils/useSlot.js +87 -0
  431. package/dist/node_modules/@mui/material/esm/utils/useSlot.js.map +1 -0
  432. package/dist/node_modules/@mui/material/esm/zero-styled/index.js +29 -0
  433. package/dist/node_modules/@mui/material/esm/zero-styled/index.js.map +1 -0
  434. package/dist/node_modules/@mui/styled-engine/esm/GlobalStyles/GlobalStyles.js +29 -0
  435. package/dist/node_modules/@mui/styled-engine/esm/GlobalStyles/GlobalStyles.js.map +1 -0
  436. package/dist/node_modules/@mui/styled-engine/esm/index.js +52 -0
  437. package/dist/node_modules/@mui/styled-engine/esm/index.js.map +1 -0
  438. package/dist/node_modules/@mui/system/esm/DefaultPropsProvider/DefaultPropsProvider.js +78 -0
  439. package/dist/node_modules/@mui/system/esm/DefaultPropsProvider/DefaultPropsProvider.js.map +1 -0
  440. package/dist/node_modules/@mui/system/esm/GlobalStyles/GlobalStyles.js +67 -0
  441. package/dist/node_modules/@mui/system/esm/GlobalStyles/GlobalStyles.js.map +1 -0
  442. package/dist/node_modules/@mui/system/esm/RtlProvider/index.js +38 -0
  443. package/dist/node_modules/@mui/system/esm/RtlProvider/index.js.map +1 -0
  444. package/dist/node_modules/@mui/system/esm/borders/borders.js +67 -0
  445. package/dist/node_modules/@mui/system/esm/borders/borders.js.map +1 -0
  446. package/dist/node_modules/@mui/system/esm/breakpoints/breakpoints.js +90 -0
  447. package/dist/node_modules/@mui/system/esm/breakpoints/breakpoints.js.map +1 -0
  448. package/dist/node_modules/@mui/system/esm/colorManipulator/colorManipulator.js +326 -0
  449. package/dist/node_modules/@mui/system/esm/colorManipulator/colorManipulator.js.map +1 -0
  450. package/dist/node_modules/@mui/system/esm/compose/compose.js +31 -0
  451. package/dist/node_modules/@mui/system/esm/compose/compose.js.map +1 -0
  452. package/dist/node_modules/@mui/system/esm/createBox/createBox.js +62 -0
  453. package/dist/node_modules/@mui/system/esm/createBox/createBox.js.map +1 -0
  454. package/dist/node_modules/@mui/system/esm/createBreakpoints/createBreakpoints.js +87 -0
  455. package/dist/node_modules/@mui/system/esm/createBreakpoints/createBreakpoints.js.map +1 -0
  456. package/dist/node_modules/@mui/system/esm/createStyled/createStyled.js +298 -0
  457. package/dist/node_modules/@mui/system/esm/createStyled/createStyled.js.map +1 -0
  458. package/dist/node_modules/@mui/system/esm/createTheme/applyStyles.js +94 -0
  459. package/dist/node_modules/@mui/system/esm/createTheme/applyStyles.js.map +1 -0
  460. package/dist/node_modules/@mui/system/esm/createTheme/createSpacing.js +38 -0
  461. package/dist/node_modules/@mui/system/esm/createTheme/createSpacing.js.map +1 -0
  462. package/dist/node_modules/@mui/system/esm/createTheme/createTheme.js +56 -0
  463. package/dist/node_modules/@mui/system/esm/createTheme/createTheme.js.map +1 -0
  464. package/dist/node_modules/@mui/system/esm/createTheme/shape.js +10 -0
  465. package/dist/node_modules/@mui/system/esm/createTheme/shape.js.map +1 -0
  466. package/dist/node_modules/@mui/system/esm/cssContainerQueries/cssContainerQueries.js +80 -0
  467. package/dist/node_modules/@mui/system/esm/cssContainerQueries/cssContainerQueries.js.map +1 -0
  468. package/dist/node_modules/@mui/system/esm/cssGrid/cssGrid.js +100 -0
  469. package/dist/node_modules/@mui/system/esm/cssGrid/cssGrid.js.map +1 -0
  470. package/dist/node_modules/@mui/system/esm/cssVars/createGetCssVar.js +29 -0
  471. package/dist/node_modules/@mui/system/esm/cssVars/createGetCssVar.js.map +1 -0
  472. package/dist/node_modules/@mui/system/esm/cssVars/cssVarsParser.js +138 -0
  473. package/dist/node_modules/@mui/system/esm/cssVars/cssVarsParser.js.map +1 -0
  474. package/dist/node_modules/@mui/system/esm/cssVars/getColorSchemeSelector.js +31 -0
  475. package/dist/node_modules/@mui/system/esm/cssVars/getColorSchemeSelector.js.map +1 -0
  476. package/dist/node_modules/@mui/system/esm/cssVars/prepareCssVars.js +171 -0
  477. package/dist/node_modules/@mui/system/esm/cssVars/prepareCssVars.js.map +1 -0
  478. package/dist/node_modules/@mui/system/esm/cssVars/prepareTypographyVars.js +18 -0
  479. package/dist/node_modules/@mui/system/esm/cssVars/prepareTypographyVars.js.map +1 -0
  480. package/dist/node_modules/@mui/system/esm/memoTheme.js +35 -0
  481. package/dist/node_modules/@mui/system/esm/memoTheme.js.map +1 -0
  482. package/dist/node_modules/@mui/system/esm/memoize/memoize.js +16 -0
  483. package/dist/node_modules/@mui/system/esm/memoize/memoize.js.map +1 -0
  484. package/dist/node_modules/@mui/system/esm/merge/merge.js +17 -0
  485. package/dist/node_modules/@mui/system/esm/merge/merge.js.map +1 -0
  486. package/dist/node_modules/@mui/system/esm/palette/palette.js +34 -0
  487. package/dist/node_modules/@mui/system/esm/palette/palette.js.map +1 -0
  488. package/dist/node_modules/@mui/system/esm/preprocessStyles.js +33 -0
  489. package/dist/node_modules/@mui/system/esm/preprocessStyles.js.map +1 -0
  490. package/dist/node_modules/@mui/system/esm/responsivePropType/responsivePropType.js +10 -0
  491. package/dist/node_modules/@mui/system/esm/responsivePropType/responsivePropType.js.map +1 -0
  492. package/dist/node_modules/@mui/system/esm/sizing/sizing.js +76 -0
  493. package/dist/node_modules/@mui/system/esm/sizing/sizing.js.map +1 -0
  494. package/dist/node_modules/@mui/system/esm/spacing/spacing.js +165 -0
  495. package/dist/node_modules/@mui/system/esm/spacing/spacing.js.map +1 -0
  496. package/dist/node_modules/@mui/system/esm/style/style.js +84 -0
  497. package/dist/node_modules/@mui/system/esm/style/style.js.map +1 -0
  498. package/dist/node_modules/@mui/system/esm/styleFunctionSx/defaultSxConfig.js +301 -0
  499. package/dist/node_modules/@mui/system/esm/styleFunctionSx/defaultSxConfig.js.map +1 -0
  500. package/dist/node_modules/@mui/system/esm/styleFunctionSx/extendSxProp.js +59 -0
  501. package/dist/node_modules/@mui/system/esm/styleFunctionSx/extendSxProp.js.map +1 -0
  502. package/dist/node_modules/@mui/system/esm/styleFunctionSx/styleFunctionSx.js +142 -0
  503. package/dist/node_modules/@mui/system/esm/styleFunctionSx/styleFunctionSx.js.map +1 -0
  504. package/dist/node_modules/@mui/system/esm/useTheme/useTheme.js +16 -0
  505. package/dist/node_modules/@mui/system/esm/useTheme/useTheme.js.map +1 -0
  506. package/dist/node_modules/@mui/system/esm/useThemeWithoutDefault/useThemeWithoutDefault.js +37 -0
  507. package/dist/node_modules/@mui/system/esm/useThemeWithoutDefault/useThemeWithoutDefault.js.map +1 -0
  508. package/dist/node_modules/@mui/utils/esm/ClassNameGenerator/ClassNameGenerator.js +23 -0
  509. package/dist/node_modules/@mui/utils/esm/ClassNameGenerator/ClassNameGenerator.js.map +1 -0
  510. package/dist/node_modules/@mui/utils/esm/HTMLElementType/HTMLElementType.js +21 -0
  511. package/dist/node_modules/@mui/utils/esm/HTMLElementType/HTMLElementType.js.map +1 -0
  512. package/dist/node_modules/@mui/utils/esm/appendOwnerState/appendOwnerState.js +34 -0
  513. package/dist/node_modules/@mui/utils/esm/appendOwnerState/appendOwnerState.js.map +1 -0
  514. package/dist/node_modules/@mui/utils/esm/capitalize/capitalize.js +19 -0
  515. package/dist/node_modules/@mui/utils/esm/capitalize/capitalize.js.map +1 -0
  516. package/dist/node_modules/@mui/utils/esm/chainPropTypes/chainPropTypes.js +15 -0
  517. package/dist/node_modules/@mui/utils/esm/chainPropTypes/chainPropTypes.js.map +1 -0
  518. package/dist/node_modules/@mui/utils/esm/clamp/clamp.js +10 -0
  519. package/dist/node_modules/@mui/utils/esm/clamp/clamp.js.map +1 -0
  520. package/dist/node_modules/@mui/utils/esm/composeClasses/composeClasses.js +60 -0
  521. package/dist/node_modules/@mui/utils/esm/composeClasses/composeClasses.js.map +1 -0
  522. package/dist/node_modules/@mui/utils/esm/createChainedFunction/createChainedFunction.js +24 -0
  523. package/dist/node_modules/@mui/utils/esm/createChainedFunction/createChainedFunction.js.map +1 -0
  524. package/dist/node_modules/@mui/utils/esm/debounce/debounce.js +24 -0
  525. package/dist/node_modules/@mui/utils/esm/debounce/debounce.js.map +1 -0
  526. package/dist/node_modules/@mui/utils/esm/deepmerge/deepmerge.js +91 -0
  527. package/dist/node_modules/@mui/utils/esm/deepmerge/deepmerge.js.map +1 -0
  528. package/dist/node_modules/@mui/utils/esm/elementAcceptingRef/elementAcceptingRef.js +49 -0
  529. package/dist/node_modules/@mui/utils/esm/elementAcceptingRef/elementAcceptingRef.js.map +1 -0
  530. package/dist/node_modules/@mui/utils/esm/elementTypeAcceptingRef/elementTypeAcceptingRef.js +48 -0
  531. package/dist/node_modules/@mui/utils/esm/elementTypeAcceptingRef/elementTypeAcceptingRef.js.map +1 -0
  532. package/dist/node_modules/@mui/utils/esm/exactProp/exactProp.js +27 -0
  533. package/dist/node_modules/@mui/utils/esm/exactProp/exactProp.js.map +1 -0
  534. package/dist/node_modules/@mui/utils/esm/extractEventHandlers/extractEventHandlers.js +24 -0
  535. package/dist/node_modules/@mui/utils/esm/extractEventHandlers/extractEventHandlers.js.map +1 -0
  536. package/dist/node_modules/@mui/utils/esm/formatMuiErrorMessage/formatMuiErrorMessage.js +22 -0
  537. package/dist/node_modules/@mui/utils/esm/formatMuiErrorMessage/formatMuiErrorMessage.js.map +1 -0
  538. package/dist/node_modules/@mui/utils/esm/generateUtilityClass/generateUtilityClass.js +28 -0
  539. package/dist/node_modules/@mui/utils/esm/generateUtilityClass/generateUtilityClass.js.map +1 -0
  540. package/dist/node_modules/@mui/utils/esm/generateUtilityClasses/generateUtilityClasses.js +16 -0
  541. package/dist/node_modules/@mui/utils/esm/generateUtilityClasses/generateUtilityClasses.js.map +1 -0
  542. package/dist/node_modules/@mui/utils/esm/getDisplayName/getDisplayName.js +46 -0
  543. package/dist/node_modules/@mui/utils/esm/getDisplayName/getDisplayName.js.map +1 -0
  544. package/dist/node_modules/@mui/utils/esm/getReactElementRef/getReactElementRef.js +44 -0
  545. package/dist/node_modules/@mui/utils/esm/getReactElementRef/getReactElementRef.js.map +1 -0
  546. package/dist/node_modules/@mui/utils/esm/getScrollbarSize/getScrollbarSize.js +14 -0
  547. package/dist/node_modules/@mui/utils/esm/getScrollbarSize/getScrollbarSize.js.map +1 -0
  548. package/dist/node_modules/@mui/utils/esm/integerPropType/integerPropType.js +52 -0
  549. package/dist/node_modules/@mui/utils/esm/integerPropType/integerPropType.js.map +1 -0
  550. package/dist/node_modules/@mui/utils/esm/isFocusVisible/isFocusVisible.js +22 -0
  551. package/dist/node_modules/@mui/utils/esm/isFocusVisible/isFocusVisible.js.map +1 -0
  552. package/dist/node_modules/@mui/utils/esm/isHostComponent/isHostComponent.js +13 -0
  553. package/dist/node_modules/@mui/utils/esm/isHostComponent/isHostComponent.js.map +1 -0
  554. package/dist/node_modules/@mui/utils/esm/isMuiElement/isMuiElement.js +35 -0
  555. package/dist/node_modules/@mui/utils/esm/isMuiElement/isMuiElement.js.map +1 -0
  556. package/dist/node_modules/@mui/utils/esm/mergeSlotProps/mergeSlotProps.js +97 -0
  557. package/dist/node_modules/@mui/utils/esm/mergeSlotProps/mergeSlotProps.js.map +1 -0
  558. package/dist/node_modules/@mui/utils/esm/omitEventHandlers/omitEventHandlers.js +24 -0
  559. package/dist/node_modules/@mui/utils/esm/omitEventHandlers/omitEventHandlers.js.map +1 -0
  560. package/dist/node_modules/@mui/utils/esm/ownerDocument/ownerDocument.js +10 -0
  561. package/dist/node_modules/@mui/utils/esm/ownerDocument/ownerDocument.js.map +1 -0
  562. package/dist/node_modules/@mui/utils/esm/ownerWindow/ownerWindow.js +13 -0
  563. package/dist/node_modules/@mui/utils/esm/ownerWindow/ownerWindow.js.map +1 -0
  564. package/dist/node_modules/@mui/utils/esm/refType/refType.js +10 -0
  565. package/dist/node_modules/@mui/utils/esm/refType/refType.js.map +1 -0
  566. package/dist/node_modules/@mui/utils/esm/resolveComponentProps/resolveComponentProps.js +17 -0
  567. package/dist/node_modules/@mui/utils/esm/resolveComponentProps/resolveComponentProps.js.map +1 -0
  568. package/dist/node_modules/@mui/utils/esm/resolveProps/resolveProps.js +62 -0
  569. package/dist/node_modules/@mui/utils/esm/resolveProps/resolveProps.js.map +1 -0
  570. package/dist/node_modules/@mui/utils/esm/setRef/setRef.js +27 -0
  571. package/dist/node_modules/@mui/utils/esm/setRef/setRef.js.map +1 -0
  572. package/dist/node_modules/@mui/utils/esm/unsupportedProp/unsupportedProp.js +17 -0
  573. package/dist/node_modules/@mui/utils/esm/unsupportedProp/unsupportedProp.js.map +1 -0
  574. package/dist/node_modules/@mui/utils/esm/useControlled/useControlled.js +69 -0
  575. package/dist/node_modules/@mui/utils/esm/useControlled/useControlled.js.map +1 -0
  576. package/dist/node_modules/@mui/utils/esm/useEnhancedEffect/useEnhancedEffect.js +37 -0
  577. package/dist/node_modules/@mui/utils/esm/useEnhancedEffect/useEnhancedEffect.js.map +1 -0
  578. package/dist/node_modules/@mui/utils/esm/useEventCallback/useEventCallback.js +44 -0
  579. package/dist/node_modules/@mui/utils/esm/useEventCallback/useEventCallback.js.map +1 -0
  580. package/dist/node_modules/@mui/utils/esm/useForkRef/useForkRef.js +85 -0
  581. package/dist/node_modules/@mui/utils/esm/useForkRef/useForkRef.js.map +1 -0
  582. package/dist/node_modules/@mui/utils/esm/useId/useId.js +71 -0
  583. package/dist/node_modules/@mui/utils/esm/useId/useId.js.map +1 -0
  584. package/dist/node_modules/@mui/utils/esm/useLazyRef/useLazyRef.js +45 -0
  585. package/dist/node_modules/@mui/utils/esm/useLazyRef/useLazyRef.js.map +1 -0
  586. package/dist/node_modules/@mui/utils/esm/useOnMount/useOnMount.js +40 -0
  587. package/dist/node_modules/@mui/utils/esm/useOnMount/useOnMount.js.map +1 -0
  588. package/dist/node_modules/@mui/utils/esm/usePreviousProps/usePreviousProps.js +36 -0
  589. package/dist/node_modules/@mui/utils/esm/usePreviousProps/usePreviousProps.js.map +1 -0
  590. package/dist/node_modules/@mui/utils/esm/useSlotProps/useSlotProps.js +44 -0
  591. package/dist/node_modules/@mui/utils/esm/useSlotProps/useSlotProps.js.map +1 -0
  592. package/dist/node_modules/@mui/utils/esm/useTimeout/useTimeout.js +43 -0
  593. package/dist/node_modules/@mui/utils/esm/useTimeout/useTimeout.js.map +1 -0
  594. package/dist/node_modules/@popperjs/core/lib/createPopper.js +201 -0
  595. package/dist/node_modules/@popperjs/core/lib/createPopper.js.map +1 -0
  596. package/dist/node_modules/@popperjs/core/lib/dom-utils/contains.js +31 -0
  597. package/dist/node_modules/@popperjs/core/lib/dom-utils/contains.js.map +1 -0
  598. package/dist/node_modules/@popperjs/core/lib/dom-utils/getBoundingClientRect.js +49 -0
  599. package/dist/node_modules/@popperjs/core/lib/dom-utils/getBoundingClientRect.js.map +1 -0
  600. package/dist/node_modules/@popperjs/core/lib/dom-utils/getClippingRect.js +77 -0
  601. package/dist/node_modules/@popperjs/core/lib/dom-utils/getClippingRect.js.map +1 -0
  602. package/dist/node_modules/@popperjs/core/lib/dom-utils/getCompositeRect.js +65 -0
  603. package/dist/node_modules/@popperjs/core/lib/dom-utils/getCompositeRect.js.map +1 -0
  604. package/dist/node_modules/@popperjs/core/lib/dom-utils/getComputedStyle.js +12 -0
  605. package/dist/node_modules/@popperjs/core/lib/dom-utils/getComputedStyle.js.map +1 -0
  606. package/dist/node_modules/@popperjs/core/lib/dom-utils/getDocumentElement.js +14 -0
  607. package/dist/node_modules/@popperjs/core/lib/dom-utils/getDocumentElement.js.map +1 -0
  608. package/dist/node_modules/@popperjs/core/lib/dom-utils/getDocumentRect.js +37 -0
  609. package/dist/node_modules/@popperjs/core/lib/dom-utils/getDocumentRect.js.map +1 -0
  610. package/dist/node_modules/@popperjs/core/lib/dom-utils/getHTMLElementScroll.js +13 -0
  611. package/dist/node_modules/@popperjs/core/lib/dom-utils/getHTMLElementScroll.js.map +1 -0
  612. package/dist/node_modules/@popperjs/core/lib/dom-utils/getLayoutRect.js +33 -0
  613. package/dist/node_modules/@popperjs/core/lib/dom-utils/getLayoutRect.js.map +1 -0
  614. package/dist/node_modules/@popperjs/core/lib/dom-utils/getNodeName.js +10 -0
  615. package/dist/node_modules/@popperjs/core/lib/dom-utils/getNodeName.js.map +1 -0
  616. package/dist/node_modules/@popperjs/core/lib/dom-utils/getNodeScroll.js +19 -0
  617. package/dist/node_modules/@popperjs/core/lib/dom-utils/getNodeScroll.js.map +1 -0
  618. package/dist/node_modules/@popperjs/core/lib/dom-utils/getOffsetParent.js +76 -0
  619. package/dist/node_modules/@popperjs/core/lib/dom-utils/getOffsetParent.js.map +1 -0
  620. package/dist/node_modules/@popperjs/core/lib/dom-utils/getParentNode.js +27 -0
  621. package/dist/node_modules/@popperjs/core/lib/dom-utils/getParentNode.js.map +1 -0
  622. package/dist/node_modules/@popperjs/core/lib/dom-utils/getScrollParent.js +24 -0
  623. package/dist/node_modules/@popperjs/core/lib/dom-utils/getScrollParent.js.map +1 -0
  624. package/dist/node_modules/@popperjs/core/lib/dom-utils/getViewportRect.js +39 -0
  625. package/dist/node_modules/@popperjs/core/lib/dom-utils/getViewportRect.js.map +1 -0
  626. package/dist/node_modules/@popperjs/core/lib/dom-utils/getWindow.js +19 -0
  627. package/dist/node_modules/@popperjs/core/lib/dom-utils/getWindow.js.map +1 -0
  628. package/dist/node_modules/@popperjs/core/lib/dom-utils/getWindowScroll.js +18 -0
  629. package/dist/node_modules/@popperjs/core/lib/dom-utils/getWindowScroll.js.map +1 -0
  630. package/dist/node_modules/@popperjs/core/lib/dom-utils/getWindowScrollBarX.js +21 -0
  631. package/dist/node_modules/@popperjs/core/lib/dom-utils/getWindowScrollBarX.js.map +1 -0
  632. package/dist/node_modules/@popperjs/core/lib/dom-utils/instanceOf.js +28 -0
  633. package/dist/node_modules/@popperjs/core/lib/dom-utils/instanceOf.js.map +1 -0
  634. package/dist/node_modules/@popperjs/core/lib/dom-utils/isLayoutViewport.js +12 -0
  635. package/dist/node_modules/@popperjs/core/lib/dom-utils/isLayoutViewport.js.map +1 -0
  636. package/dist/node_modules/@popperjs/core/lib/dom-utils/isScrollParent.js +18 -0
  637. package/dist/node_modules/@popperjs/core/lib/dom-utils/isScrollParent.js.map +1 -0
  638. package/dist/node_modules/@popperjs/core/lib/dom-utils/isTableElement.js +12 -0
  639. package/dist/node_modules/@popperjs/core/lib/dom-utils/isTableElement.js.map +1 -0
  640. package/dist/node_modules/@popperjs/core/lib/dom-utils/listScrollParents.js +34 -0
  641. package/dist/node_modules/@popperjs/core/lib/dom-utils/listScrollParents.js.map +1 -0
  642. package/dist/node_modules/@popperjs/core/lib/enums.js +59 -0
  643. package/dist/node_modules/@popperjs/core/lib/enums.js.map +1 -0
  644. package/dist/node_modules/@popperjs/core/lib/modifiers/applyStyles.js +92 -0
  645. package/dist/node_modules/@popperjs/core/lib/modifiers/applyStyles.js.map +1 -0
  646. package/dist/node_modules/@popperjs/core/lib/modifiers/arrow.js +97 -0
  647. package/dist/node_modules/@popperjs/core/lib/modifiers/arrow.js.map +1 -0
  648. package/dist/node_modules/@popperjs/core/lib/modifiers/computeStyles.js +177 -0
  649. package/dist/node_modules/@popperjs/core/lib/modifiers/computeStyles.js.map +1 -0
  650. package/dist/node_modules/@popperjs/core/lib/modifiers/eventListeners.js +56 -0
  651. package/dist/node_modules/@popperjs/core/lib/modifiers/eventListeners.js.map +1 -0
  652. package/dist/node_modules/@popperjs/core/lib/modifiers/flip.js +154 -0
  653. package/dist/node_modules/@popperjs/core/lib/modifiers/flip.js.map +1 -0
  654. package/dist/node_modules/@popperjs/core/lib/modifiers/hide.js +68 -0
  655. package/dist/node_modules/@popperjs/core/lib/modifiers/hide.js.map +1 -0
  656. package/dist/node_modules/@popperjs/core/lib/modifiers/offset.js +62 -0
  657. package/dist/node_modules/@popperjs/core/lib/modifiers/offset.js.map +1 -0
  658. package/dist/node_modules/@popperjs/core/lib/modifiers/popperOffsets.js +31 -0
  659. package/dist/node_modules/@popperjs/core/lib/modifiers/popperOffsets.js.map +1 -0
  660. package/dist/node_modules/@popperjs/core/lib/modifiers/preventOverflow.js +149 -0
  661. package/dist/node_modules/@popperjs/core/lib/modifiers/preventOverflow.js.map +1 -0
  662. package/dist/node_modules/@popperjs/core/lib/popper.js +31 -0
  663. package/dist/node_modules/@popperjs/core/lib/popper.js.map +1 -0
  664. package/dist/node_modules/@popperjs/core/lib/utils/computeAutoPlacement.js +51 -0
  665. package/dist/node_modules/@popperjs/core/lib/utils/computeAutoPlacement.js.map +1 -0
  666. package/dist/node_modules/@popperjs/core/lib/utils/computeOffsets.js +76 -0
  667. package/dist/node_modules/@popperjs/core/lib/utils/computeOffsets.js.map +1 -0
  668. package/dist/node_modules/@popperjs/core/lib/utils/debounce.js +22 -0
  669. package/dist/node_modules/@popperjs/core/lib/utils/debounce.js.map +1 -0
  670. package/dist/node_modules/@popperjs/core/lib/utils/detectOverflow.js +71 -0
  671. package/dist/node_modules/@popperjs/core/lib/utils/detectOverflow.js.map +1 -0
  672. package/dist/node_modules/@popperjs/core/lib/utils/expandToHashMap.js +13 -0
  673. package/dist/node_modules/@popperjs/core/lib/utils/expandToHashMap.js.map +1 -0
  674. package/dist/node_modules/@popperjs/core/lib/utils/getAltAxis.js +10 -0
  675. package/dist/node_modules/@popperjs/core/lib/utils/getAltAxis.js.map +1 -0
  676. package/dist/node_modules/@popperjs/core/lib/utils/getBasePlacement.js +10 -0
  677. package/dist/node_modules/@popperjs/core/lib/utils/getBasePlacement.js.map +1 -0
  678. package/dist/node_modules/@popperjs/core/lib/utils/getFreshSideObject.js +15 -0
  679. package/dist/node_modules/@popperjs/core/lib/utils/getFreshSideObject.js.map +1 -0
  680. package/dist/node_modules/@popperjs/core/lib/utils/getMainAxisFromPlacement.js +10 -0
  681. package/dist/node_modules/@popperjs/core/lib/utils/getMainAxisFromPlacement.js.map +1 -0
  682. package/dist/node_modules/@popperjs/core/lib/utils/getOppositePlacement.js +18 -0
  683. package/dist/node_modules/@popperjs/core/lib/utils/getOppositePlacement.js.map +1 -0
  684. package/dist/node_modules/@popperjs/core/lib/utils/getOppositeVariationPlacement.js +16 -0
  685. package/dist/node_modules/@popperjs/core/lib/utils/getOppositeVariationPlacement.js.map +1 -0
  686. package/dist/node_modules/@popperjs/core/lib/utils/getVariation.js +10 -0
  687. package/dist/node_modules/@popperjs/core/lib/utils/getVariation.js.map +1 -0
  688. package/dist/node_modules/@popperjs/core/lib/utils/math.js +10 -0
  689. package/dist/node_modules/@popperjs/core/lib/utils/math.js.map +1 -0
  690. package/dist/node_modules/@popperjs/core/lib/utils/mergeByName.js +21 -0
  691. package/dist/node_modules/@popperjs/core/lib/utils/mergeByName.js.map +1 -0
  692. package/dist/node_modules/@popperjs/core/lib/utils/mergePaddingObject.js +12 -0
  693. package/dist/node_modules/@popperjs/core/lib/utils/mergePaddingObject.js.map +1 -0
  694. package/dist/node_modules/@popperjs/core/lib/utils/orderModifiers.js +51 -0
  695. package/dist/node_modules/@popperjs/core/lib/utils/orderModifiers.js.map +1 -0
  696. package/dist/node_modules/@popperjs/core/lib/utils/rectToClientRect.js +15 -0
  697. package/dist/node_modules/@popperjs/core/lib/utils/rectToClientRect.js.map +1 -0
  698. package/dist/node_modules/@popperjs/core/lib/utils/userAgent.js +18 -0
  699. package/dist/node_modules/@popperjs/core/lib/utils/userAgent.js.map +1 -0
  700. package/dist/node_modules/@popperjs/core/lib/utils/within.js +15 -0
  701. package/dist/node_modules/@popperjs/core/lib/utils/within.js.map +1 -0
  702. package/dist/node_modules/@react-leaflet/core/lib/context.js +16 -0
  703. package/dist/node_modules/@react-leaflet/core/lib/context.js.map +1 -0
  704. package/dist/node_modules/axios/index.js +46 -0
  705. package/dist/node_modules/axios/index.js.map +1 -0
  706. package/dist/node_modules/axios/lib/adapters/adapters.js +133 -0
  707. package/dist/node_modules/axios/lib/adapters/adapters.js.map +1 -0
  708. package/dist/node_modules/axios/lib/adapters/fetch.js +291 -0
  709. package/dist/node_modules/axios/lib/adapters/fetch.js.map +1 -0
  710. package/dist/node_modules/axios/lib/adapters/xhr.js +207 -0
  711. package/dist/node_modules/axios/lib/adapters/xhr.js.map +1 -0
  712. package/dist/node_modules/axios/lib/axios.js +92 -0
  713. package/dist/node_modules/axios/lib/axios.js.map +1 -0
  714. package/dist/node_modules/axios/lib/cancel/CancelToken.js +139 -0
  715. package/dist/node_modules/axios/lib/cancel/CancelToken.js.map +1 -0
  716. package/dist/node_modules/axios/lib/cancel/CanceledError.js +29 -0
  717. package/dist/node_modules/axios/lib/cancel/CanceledError.js.map +1 -0
  718. package/dist/node_modules/axios/lib/cancel/isCancel.js +11 -0
  719. package/dist/node_modules/axios/lib/cancel/isCancel.js.map +1 -0
  720. package/dist/node_modules/axios/lib/core/Axios.js +242 -0
  721. package/dist/node_modules/axios/lib/core/Axios.js.map +1 -0
  722. package/dist/node_modules/axios/lib/core/AxiosError.js +114 -0
  723. package/dist/node_modules/axios/lib/core/AxiosError.js.map +1 -0
  724. package/dist/node_modules/axios/lib/core/AxiosHeaders.js +318 -0
  725. package/dist/node_modules/axios/lib/core/AxiosHeaders.js.map +1 -0
  726. package/dist/node_modules/axios/lib/core/InterceptorManager.js +75 -0
  727. package/dist/node_modules/axios/lib/core/InterceptorManager.js.map +1 -0
  728. package/dist/node_modules/axios/lib/core/buildFullPath.js +28 -0
  729. package/dist/node_modules/axios/lib/core/buildFullPath.js.map +1 -0
  730. package/dist/node_modules/axios/lib/core/dispatchRequest.js +87 -0
  731. package/dist/node_modules/axios/lib/core/dispatchRequest.js.map +1 -0
  732. package/dist/node_modules/axios/lib/core/mergeConfig.js +112 -0
  733. package/dist/node_modules/axios/lib/core/mergeConfig.js.map +1 -0
  734. package/dist/node_modules/axios/lib/core/settle.js +33 -0
  735. package/dist/node_modules/axios/lib/core/settle.js.map +1 -0
  736. package/dist/node_modules/axios/lib/core/transformData.js +34 -0
  737. package/dist/node_modules/axios/lib/core/transformData.js.map +1 -0
  738. package/dist/node_modules/axios/lib/defaults/index.js +165 -0
  739. package/dist/node_modules/axios/lib/defaults/index.js.map +1 -0
  740. package/dist/node_modules/axios/lib/defaults/transitional.js +13 -0
  741. package/dist/node_modules/axios/lib/defaults/transitional.js.map +1 -0
  742. package/dist/node_modules/axios/lib/env/data.js +6 -0
  743. package/dist/node_modules/axios/lib/env/data.js.map +1 -0
  744. package/dist/node_modules/axios/lib/helpers/AxiosURLSearchParams.js +62 -0
  745. package/dist/node_modules/axios/lib/helpers/AxiosURLSearchParams.js.map +1 -0
  746. package/dist/node_modules/axios/lib/helpers/HttpStatusCode.js +82 -0
  747. package/dist/node_modules/axios/lib/helpers/HttpStatusCode.js.map +1 -0
  748. package/dist/node_modules/axios/lib/helpers/bind.js +20 -0
  749. package/dist/node_modules/axios/lib/helpers/bind.js.map +1 -0
  750. package/dist/node_modules/axios/lib/helpers/buildURL.js +73 -0
  751. package/dist/node_modules/axios/lib/helpers/buildURL.js.map +1 -0
  752. package/dist/node_modules/axios/lib/helpers/combineURLs.js +21 -0
  753. package/dist/node_modules/axios/lib/helpers/combineURLs.js.map +1 -0
  754. package/dist/node_modules/axios/lib/helpers/composeSignals.js +53 -0
  755. package/dist/node_modules/axios/lib/helpers/composeSignals.js.map +1 -0
  756. package/dist/node_modules/axios/lib/helpers/cookies.js +59 -0
  757. package/dist/node_modules/axios/lib/helpers/cookies.js.map +1 -0
  758. package/dist/node_modules/axios/lib/helpers/formDataToJSON.js +99 -0
  759. package/dist/node_modules/axios/lib/helpers/formDataToJSON.js.map +1 -0
  760. package/dist/node_modules/axios/lib/helpers/isAbsoluteURL.js +21 -0
  761. package/dist/node_modules/axios/lib/helpers/isAbsoluteURL.js.map +1 -0
  762. package/dist/node_modules/axios/lib/helpers/isAxiosError.js +20 -0
  763. package/dist/node_modules/axios/lib/helpers/isAxiosError.js.map +1 -0
  764. package/dist/node_modules/axios/lib/helpers/isURLSameOrigin.js +21 -0
  765. package/dist/node_modules/axios/lib/helpers/isURLSameOrigin.js.map +1 -0
  766. package/dist/node_modules/axios/lib/helpers/null.js +9 -0
  767. package/dist/node_modules/axios/lib/helpers/null.js.map +1 -0
  768. package/dist/node_modules/axios/lib/helpers/parseHeaders.js +61 -0
  769. package/dist/node_modules/axios/lib/helpers/parseHeaders.js.map +1 -0
  770. package/dist/node_modules/axios/lib/helpers/parseProtocol.js +12 -0
  771. package/dist/node_modules/axios/lib/helpers/parseProtocol.js.map +1 -0
  772. package/dist/node_modules/axios/lib/helpers/progressEventReducer.js +51 -0
  773. package/dist/node_modules/axios/lib/helpers/progressEventReducer.js.map +1 -0
  774. package/dist/node_modules/axios/lib/helpers/resolveConfig.js +67 -0
  775. package/dist/node_modules/axios/lib/helpers/resolveConfig.js.map +1 -0
  776. package/dist/node_modules/axios/lib/helpers/speedometer.js +59 -0
  777. package/dist/node_modules/axios/lib/helpers/speedometer.js.map +1 -0
  778. package/dist/node_modules/axios/lib/helpers/spread.js +34 -0
  779. package/dist/node_modules/axios/lib/helpers/spread.js.map +1 -0
  780. package/dist/node_modules/axios/lib/helpers/throttle.js +49 -0
  781. package/dist/node_modules/axios/lib/helpers/throttle.js.map +1 -0
  782. package/dist/node_modules/axios/lib/helpers/toFormData.js +225 -0
  783. package/dist/node_modules/axios/lib/helpers/toFormData.js.map +1 -0
  784. package/dist/node_modules/axios/lib/helpers/toURLEncodedForm.js +25 -0
  785. package/dist/node_modules/axios/lib/helpers/toURLEncodedForm.js.map +1 -0
  786. package/dist/node_modules/axios/lib/helpers/trackStream.js +93 -0
  787. package/dist/node_modules/axios/lib/helpers/trackStream.js.map +1 -0
  788. package/dist/node_modules/axios/lib/helpers/validator.js +105 -0
  789. package/dist/node_modules/axios/lib/helpers/validator.js.map +1 -0
  790. package/dist/node_modules/axios/lib/platform/browser/classes/Blob.js +9 -0
  791. package/dist/node_modules/axios/lib/platform/browser/classes/Blob.js.map +1 -0
  792. package/dist/node_modules/axios/lib/platform/browser/classes/FormData.js +9 -0
  793. package/dist/node_modules/axios/lib/platform/browser/classes/FormData.js.map +1 -0
  794. package/dist/node_modules/axios/lib/platform/browser/classes/URLSearchParams.js +11 -0
  795. package/dist/node_modules/axios/lib/platform/browser/classes/URLSearchParams.js.map +1 -0
  796. package/dist/node_modules/axios/lib/platform/browser/index.js +20 -0
  797. package/dist/node_modules/axios/lib/platform/browser/index.js.map +1 -0
  798. package/dist/node_modules/axios/lib/platform/common/utils.js +52 -0
  799. package/dist/node_modules/axios/lib/platform/common/utils.js.map +1 -0
  800. package/dist/node_modules/axios/lib/platform/index.js +14 -0
  801. package/dist/node_modules/axios/lib/platform/index.js.map +1 -0
  802. package/dist/node_modules/axios/lib/utils.js +788 -0
  803. package/dist/node_modules/axios/lib/utils.js.map +1 -0
  804. package/dist/node_modules/clsx/dist/clsx.js +9 -0
  805. package/dist/node_modules/clsx/dist/clsx.js.map +1 -0
  806. package/dist/node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js +117 -0
  807. package/dist/node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js.map +1 -0
  808. package/dist/node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.js +193 -0
  809. package/dist/node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.js.map +1 -0
  810. package/dist/node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.production.min.js +29 -0
  811. package/dist/node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.production.min.js.map +1 -0
  812. package/dist/node_modules/hoist-non-react-statics/node_modules/react-is/index.js +22 -0
  813. package/dist/node_modules/hoist-non-react-statics/node_modules/react-is/index.js.map +1 -0
  814. package/dist/node_modules/mobx/dist/mobx.esm.js +5378 -0
  815. package/dist/node_modules/mobx/dist/mobx.esm.js.map +1 -0
  816. package/dist/node_modules/object-assign/index.js +102 -0
  817. package/dist/node_modules/object-assign/index.js.map +1 -0
  818. package/dist/node_modules/prop-types/checkPropTypes.js +118 -0
  819. package/dist/node_modules/prop-types/checkPropTypes.js.map +1 -0
  820. package/dist/node_modules/prop-types/factoryWithThrowingShims.js +77 -0
  821. package/dist/node_modules/prop-types/factoryWithThrowingShims.js.map +1 -0
  822. package/dist/node_modules/prop-types/factoryWithTypeCheckers.js +628 -0
  823. package/dist/node_modules/prop-types/factoryWithTypeCheckers.js.map +1 -0
  824. package/dist/node_modules/prop-types/index.js +36 -0
  825. package/dist/node_modules/prop-types/index.js.map +1 -0
  826. package/dist/node_modules/prop-types/lib/ReactPropTypesSecret.js +24 -0
  827. package/dist/node_modules/prop-types/lib/ReactPropTypesSecret.js.map +1 -0
  828. package/dist/node_modules/prop-types/lib/has.js +14 -0
  829. package/dist/node_modules/prop-types/lib/has.js.map +1 -0
  830. package/dist/node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js +193 -0
  831. package/dist/node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js.map +1 -0
  832. package/dist/node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js +29 -0
  833. package/dist/node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js.map +1 -0
  834. package/dist/node_modules/prop-types/node_modules/react-is/index.js +22 -0
  835. package/dist/node_modules/prop-types/node_modules/react-is/index.js.map +1 -0
  836. package/dist/node_modules/react-hook-form/dist/index.esm.js +611 -0
  837. package/dist/node_modules/react-hook-form/dist/index.esm.js.map +1 -0
  838. package/dist/node_modules/react-is/cjs/react-is.development.js +145 -0
  839. package/dist/node_modules/react-is/cjs/react-is.development.js.map +1 -0
  840. package/dist/node_modules/react-is/cjs/react-is.production.js +142 -0
  841. package/dist/node_modules/react-is/cjs/react-is.production.js.map +1 -0
  842. package/dist/node_modules/react-is/index.js +22 -0
  843. package/dist/node_modules/react-is/index.js.map +1 -0
  844. package/dist/node_modules/react-leaflet/lib/hooks.js +11 -0
  845. package/dist/node_modules/react-leaflet/lib/hooks.js.map +1 -0
  846. package/dist/node_modules/react-transition-group/esm/Transition.js +637 -0
  847. package/dist/node_modules/react-transition-group/esm/Transition.js.map +1 -0
  848. package/dist/node_modules/react-transition-group/esm/TransitionGroup.js +195 -0
  849. package/dist/node_modules/react-transition-group/esm/TransitionGroup.js.map +1 -0
  850. package/dist/node_modules/react-transition-group/esm/TransitionGroupContext.js +10 -0
  851. package/dist/node_modules/react-transition-group/esm/TransitionGroupContext.js.map +1 -0
  852. package/dist/node_modules/react-transition-group/esm/config.js +10 -0
  853. package/dist/node_modules/react-transition-group/esm/config.js.map +1 -0
  854. package/dist/node_modules/react-transition-group/esm/utils/ChildMapping.js +149 -0
  855. package/dist/node_modules/react-transition-group/esm/utils/ChildMapping.js.map +1 -0
  856. package/dist/node_modules/react-transition-group/esm/utils/PropTypes.js +24 -0
  857. package/dist/node_modules/react-transition-group/esm/utils/PropTypes.js.map +1 -0
  858. package/dist/node_modules/react-transition-group/esm/utils/reflow.js +8 -0
  859. package/dist/node_modules/react-transition-group/esm/utils/reflow.js.map +1 -0
  860. package/dist/node_modules/stylis/src/Enum.js +23 -0
  861. package/dist/node_modules/stylis/src/Enum.js.map +1 -0
  862. package/dist/node_modules/stylis/src/Middleware.js +36 -0
  863. package/dist/node_modules/stylis/src/Middleware.js.map +1 -0
  864. package/dist/node_modules/stylis/src/Parser.js +200 -0
  865. package/dist/node_modules/stylis/src/Parser.js.map +1 -0
  866. package/dist/node_modules/stylis/src/Serializer.js +42 -0
  867. package/dist/node_modules/stylis/src/Serializer.js.map +1 -0
  868. package/dist/node_modules/stylis/src/Tokenizer.js +242 -0
  869. package/dist/node_modules/stylis/src/Tokenizer.js.map +1 -0
  870. package/dist/node_modules/stylis/src/Utility.js +133 -0
  871. package/dist/node_modules/stylis/src/Utility.js.map +1 -0
  872. package/dist/node_modules/tangram/dist/tangram.min.js +52 -0
  873. package/dist/node_modules/tangram/dist/tangram.min.js.map +1 -0
  874. package/dist/scene.yaml.js +2 -0
  875. package/dist/scene.yaml.js.map +1 -0
  876. package/dist/services/api/api.service.js +44 -0
  877. package/dist/services/api/api.service.js.map +1 -0
  878. package/package.json +31 -33
@@ -0,0 +1,3461 @@
1
+ 'use strict';
2
+
3
+ var React = require('react');
4
+ var ReactDOM = require('react-dom');
5
+ var utilities_esm = require('../../utilities/dist/utilities.esm.js');
6
+ var accessibility_esm = require('../../accessibility/dist/accessibility.esm.js');
7
+
8
+ const DndMonitorContext = /*#__PURE__*/React.createContext(null);
9
+
10
+ function useDndMonitor(listener) {
11
+ const registerListener = React.useContext(DndMonitorContext);
12
+ React.useEffect(() => {
13
+ if (!registerListener) {
14
+ throw new Error('useDndMonitor must be used within a children of <DndContext>');
15
+ }
16
+
17
+ const unsubscribe = registerListener(listener);
18
+ return unsubscribe;
19
+ }, [listener, registerListener]);
20
+ }
21
+
22
+ function useDndMonitorProvider() {
23
+ const [listeners] = React.useState(() => new Set());
24
+ const registerListener = React.useCallback(listener => {
25
+ listeners.add(listener);
26
+ return () => listeners.delete(listener);
27
+ }, [listeners]);
28
+ const dispatch = React.useCallback(_ref => {
29
+ let {
30
+ type,
31
+ event
32
+ } = _ref;
33
+ listeners.forEach(listener => {
34
+ var _listener$type;
35
+
36
+ return (_listener$type = listener[type]) == null ? void 0 : _listener$type.call(listener, event);
37
+ });
38
+ }, [listeners]);
39
+ return [dispatch, registerListener];
40
+ }
41
+
42
+ const defaultScreenReaderInstructions = {
43
+ draggable: "\n To pick up a draggable item, press the space bar.\n While dragging, use the arrow keys to move the item.\n Press space again to drop the item in its new position, or press escape to cancel.\n "
44
+ };
45
+ const defaultAnnouncements = {
46
+ onDragStart(_ref) {
47
+ let {
48
+ active
49
+ } = _ref;
50
+ return "Picked up draggable item " + active.id + ".";
51
+ },
52
+
53
+ onDragOver(_ref2) {
54
+ let {
55
+ active,
56
+ over
57
+ } = _ref2;
58
+
59
+ if (over) {
60
+ return "Draggable item " + active.id + " was moved over droppable area " + over.id + ".";
61
+ }
62
+
63
+ return "Draggable item " + active.id + " is no longer over a droppable area.";
64
+ },
65
+
66
+ onDragEnd(_ref3) {
67
+ let {
68
+ active,
69
+ over
70
+ } = _ref3;
71
+
72
+ if (over) {
73
+ return "Draggable item " + active.id + " was dropped over droppable area " + over.id;
74
+ }
75
+
76
+ return "Draggable item " + active.id + " was dropped.";
77
+ },
78
+
79
+ onDragCancel(_ref4) {
80
+ let {
81
+ active
82
+ } = _ref4;
83
+ return "Dragging was cancelled. Draggable item " + active.id + " was dropped.";
84
+ }
85
+
86
+ };
87
+
88
+ function Accessibility(_ref) {
89
+ let {
90
+ announcements = defaultAnnouncements,
91
+ container,
92
+ hiddenTextDescribedById,
93
+ screenReaderInstructions = defaultScreenReaderInstructions
94
+ } = _ref;
95
+ const {
96
+ announce,
97
+ announcement
98
+ } = accessibility_esm.useAnnouncement();
99
+ const liveRegionId = utilities_esm.useUniqueId("DndLiveRegion");
100
+ const [mounted, setMounted] = React.useState(false);
101
+ React.useEffect(() => {
102
+ setMounted(true);
103
+ }, []);
104
+ useDndMonitor(React.useMemo(() => ({
105
+ onDragStart(_ref2) {
106
+ let {
107
+ active
108
+ } = _ref2;
109
+ announce(announcements.onDragStart({
110
+ active
111
+ }));
112
+ },
113
+
114
+ onDragMove(_ref3) {
115
+ let {
116
+ active,
117
+ over
118
+ } = _ref3;
119
+
120
+ if (announcements.onDragMove) {
121
+ announce(announcements.onDragMove({
122
+ active,
123
+ over
124
+ }));
125
+ }
126
+ },
127
+
128
+ onDragOver(_ref4) {
129
+ let {
130
+ active,
131
+ over
132
+ } = _ref4;
133
+ announce(announcements.onDragOver({
134
+ active,
135
+ over
136
+ }));
137
+ },
138
+
139
+ onDragEnd(_ref5) {
140
+ let {
141
+ active,
142
+ over
143
+ } = _ref5;
144
+ announce(announcements.onDragEnd({
145
+ active,
146
+ over
147
+ }));
148
+ },
149
+
150
+ onDragCancel(_ref6) {
151
+ let {
152
+ active,
153
+ over
154
+ } = _ref6;
155
+ announce(announcements.onDragCancel({
156
+ active,
157
+ over
158
+ }));
159
+ }
160
+
161
+ }), [announce, announcements]));
162
+
163
+ if (!mounted) {
164
+ return null;
165
+ }
166
+
167
+ const markup = React.createElement(React.Fragment, null, React.createElement(accessibility_esm.HiddenText, {
168
+ id: hiddenTextDescribedById,
169
+ value: screenReaderInstructions.draggable
170
+ }), React.createElement(accessibility_esm.LiveRegion, {
171
+ id: liveRegionId,
172
+ announcement: announcement
173
+ }));
174
+ return container ? ReactDOM.createPortal(markup, container) : markup;
175
+ }
176
+
177
+ var Action;
178
+
179
+ (function (Action) {
180
+ Action["DragStart"] = "dragStart";
181
+ Action["DragMove"] = "dragMove";
182
+ Action["DragEnd"] = "dragEnd";
183
+ Action["DragCancel"] = "dragCancel";
184
+ Action["DragOver"] = "dragOver";
185
+ Action["RegisterDroppable"] = "registerDroppable";
186
+ Action["SetDroppableDisabled"] = "setDroppableDisabled";
187
+ Action["UnregisterDroppable"] = "unregisterDroppable";
188
+ })(Action || (Action = {}));
189
+
190
+ function noop() {}
191
+
192
+ function useSensor(sensor, options) {
193
+ return React.useMemo(() => ({
194
+ sensor,
195
+ options: options != null ? options : {}
196
+ }), // eslint-disable-next-line react-hooks/exhaustive-deps
197
+ [sensor, options]);
198
+ }
199
+
200
+ function useSensors() {
201
+ for (var _len = arguments.length, sensors = new Array(_len), _key = 0; _key < _len; _key++) {
202
+ sensors[_key] = arguments[_key];
203
+ }
204
+
205
+ return React.useMemo(() => [...sensors].filter(sensor => sensor != null), // eslint-disable-next-line react-hooks/exhaustive-deps
206
+ [...sensors]);
207
+ }
208
+
209
+ const defaultCoordinates = /*#__PURE__*/Object.freeze({
210
+ x: 0,
211
+ y: 0
212
+ });
213
+
214
+ /**
215
+ * Returns the distance between two points
216
+ */
217
+ function distanceBetween(p1, p2) {
218
+ return Math.sqrt(Math.pow(p1.x - p2.x, 2) + Math.pow(p1.y - p2.y, 2));
219
+ }
220
+
221
+ /**
222
+ * Sort collisions from smallest to greatest value
223
+ */
224
+ function sortCollisionsAsc(_ref, _ref2) {
225
+ let {
226
+ data: {
227
+ value: a
228
+ }
229
+ } = _ref;
230
+ let {
231
+ data: {
232
+ value: b
233
+ }
234
+ } = _ref2;
235
+ return a - b;
236
+ }
237
+ /**
238
+ * Sort collisions from greatest to smallest value
239
+ */
240
+
241
+ function sortCollisionsDesc(_ref3, _ref4) {
242
+ let {
243
+ data: {
244
+ value: a
245
+ }
246
+ } = _ref3;
247
+ let {
248
+ data: {
249
+ value: b
250
+ }
251
+ } = _ref4;
252
+ return b - a;
253
+ }
254
+ function getFirstCollision(collisions, property) {
255
+ if (!collisions || collisions.length === 0) {
256
+ return null;
257
+ }
258
+
259
+ const [firstCollision] = collisions;
260
+ return firstCollision[property] ;
261
+ }
262
+
263
+ /**
264
+ * Returns the coordinates of the center of a given ClientRect
265
+ */
266
+
267
+ function centerOfRectangle(rect, left, top) {
268
+ if (left === void 0) {
269
+ left = rect.left;
270
+ }
271
+
272
+ if (top === void 0) {
273
+ top = rect.top;
274
+ }
275
+
276
+ return {
277
+ x: left + rect.width * 0.5,
278
+ y: top + rect.height * 0.5
279
+ };
280
+ }
281
+ /**
282
+ * Returns the closest rectangles from an array of rectangles to the center of a given
283
+ * rectangle.
284
+ */
285
+
286
+
287
+ const closestCenter = _ref => {
288
+ let {
289
+ collisionRect,
290
+ droppableRects,
291
+ droppableContainers
292
+ } = _ref;
293
+ const centerRect = centerOfRectangle(collisionRect, collisionRect.left, collisionRect.top);
294
+ const collisions = [];
295
+
296
+ for (const droppableContainer of droppableContainers) {
297
+ const {
298
+ id
299
+ } = droppableContainer;
300
+ const rect = droppableRects.get(id);
301
+
302
+ if (rect) {
303
+ const distBetween = distanceBetween(centerOfRectangle(rect), centerRect);
304
+ collisions.push({
305
+ id,
306
+ data: {
307
+ droppableContainer,
308
+ value: distBetween
309
+ }
310
+ });
311
+ }
312
+ }
313
+
314
+ return collisions.sort(sortCollisionsAsc);
315
+ };
316
+
317
+ /**
318
+ * Returns the intersecting rectangle area between two rectangles
319
+ */
320
+
321
+ function getIntersectionRatio(entry, target) {
322
+ const top = Math.max(target.top, entry.top);
323
+ const left = Math.max(target.left, entry.left);
324
+ const right = Math.min(target.left + target.width, entry.left + entry.width);
325
+ const bottom = Math.min(target.top + target.height, entry.top + entry.height);
326
+ const width = right - left;
327
+ const height = bottom - top;
328
+
329
+ if (left < right && top < bottom) {
330
+ const targetArea = target.width * target.height;
331
+ const entryArea = entry.width * entry.height;
332
+ const intersectionArea = width * height;
333
+ const intersectionRatio = intersectionArea / (targetArea + entryArea - intersectionArea);
334
+ return Number(intersectionRatio.toFixed(4));
335
+ } // Rectangles do not overlap, or overlap has an area of zero (edge/corner overlap)
336
+
337
+
338
+ return 0;
339
+ }
340
+ /**
341
+ * Returns the rectangles that has the greatest intersection area with a given
342
+ * rectangle in an array of rectangles.
343
+ */
344
+
345
+ const rectIntersection = _ref => {
346
+ let {
347
+ collisionRect,
348
+ droppableRects,
349
+ droppableContainers
350
+ } = _ref;
351
+ const collisions = [];
352
+
353
+ for (const droppableContainer of droppableContainers) {
354
+ const {
355
+ id
356
+ } = droppableContainer;
357
+ const rect = droppableRects.get(id);
358
+
359
+ if (rect) {
360
+ const intersectionRatio = getIntersectionRatio(rect, collisionRect);
361
+
362
+ if (intersectionRatio > 0) {
363
+ collisions.push({
364
+ id,
365
+ data: {
366
+ droppableContainer,
367
+ value: intersectionRatio
368
+ }
369
+ });
370
+ }
371
+ }
372
+ }
373
+
374
+ return collisions.sort(sortCollisionsDesc);
375
+ };
376
+
377
+ function adjustScale(transform, rect1, rect2) {
378
+ return { ...transform,
379
+ scaleX: rect1 && rect2 ? rect1.width / rect2.width : 1,
380
+ scaleY: rect1 && rect2 ? rect1.height / rect2.height : 1
381
+ };
382
+ }
383
+
384
+ function getRectDelta(rect1, rect2) {
385
+ return rect1 && rect2 ? {
386
+ x: rect1.left - rect2.left,
387
+ y: rect1.top - rect2.top
388
+ } : defaultCoordinates;
389
+ }
390
+
391
+ function createRectAdjustmentFn(modifier) {
392
+ return function adjustClientRect(rect) {
393
+ for (var _len = arguments.length, adjustments = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
394
+ adjustments[_key - 1] = arguments[_key];
395
+ }
396
+
397
+ return adjustments.reduce((acc, adjustment) => ({ ...acc,
398
+ top: acc.top + modifier * adjustment.y,
399
+ bottom: acc.bottom + modifier * adjustment.y,
400
+ left: acc.left + modifier * adjustment.x,
401
+ right: acc.right + modifier * adjustment.x
402
+ }), { ...rect
403
+ });
404
+ };
405
+ }
406
+ const getAdjustedRect = /*#__PURE__*/createRectAdjustmentFn(1);
407
+
408
+ function parseTransform(transform) {
409
+ if (transform.startsWith('matrix3d(')) {
410
+ const transformArray = transform.slice(9, -1).split(/, /);
411
+ return {
412
+ x: +transformArray[12],
413
+ y: +transformArray[13],
414
+ scaleX: +transformArray[0],
415
+ scaleY: +transformArray[5]
416
+ };
417
+ } else if (transform.startsWith('matrix(')) {
418
+ const transformArray = transform.slice(7, -1).split(/, /);
419
+ return {
420
+ x: +transformArray[4],
421
+ y: +transformArray[5],
422
+ scaleX: +transformArray[0],
423
+ scaleY: +transformArray[3]
424
+ };
425
+ }
426
+
427
+ return null;
428
+ }
429
+
430
+ function inverseTransform(rect, transform, transformOrigin) {
431
+ const parsedTransform = parseTransform(transform);
432
+
433
+ if (!parsedTransform) {
434
+ return rect;
435
+ }
436
+
437
+ const {
438
+ scaleX,
439
+ scaleY,
440
+ x: translateX,
441
+ y: translateY
442
+ } = parsedTransform;
443
+ const x = rect.left - translateX - (1 - scaleX) * parseFloat(transformOrigin);
444
+ const y = rect.top - translateY - (1 - scaleY) * parseFloat(transformOrigin.slice(transformOrigin.indexOf(' ') + 1));
445
+ const w = scaleX ? rect.width / scaleX : rect.width;
446
+ const h = scaleY ? rect.height / scaleY : rect.height;
447
+ return {
448
+ width: w,
449
+ height: h,
450
+ top: y,
451
+ right: x + w,
452
+ bottom: y + h,
453
+ left: x
454
+ };
455
+ }
456
+
457
+ const defaultOptions = {
458
+ ignoreTransform: false
459
+ };
460
+ /**
461
+ * Returns the bounding client rect of an element relative to the viewport.
462
+ */
463
+
464
+ function getClientRect(element, options) {
465
+ if (options === void 0) {
466
+ options = defaultOptions;
467
+ }
468
+
469
+ let rect = element.getBoundingClientRect();
470
+
471
+ if (options.ignoreTransform) {
472
+ const {
473
+ transform,
474
+ transformOrigin
475
+ } = utilities_esm.getWindow(element).getComputedStyle(element);
476
+
477
+ if (transform) {
478
+ rect = inverseTransform(rect, transform, transformOrigin);
479
+ }
480
+ }
481
+
482
+ const {
483
+ top,
484
+ left,
485
+ width,
486
+ height,
487
+ bottom,
488
+ right
489
+ } = rect;
490
+ return {
491
+ top,
492
+ left,
493
+ width,
494
+ height,
495
+ bottom,
496
+ right
497
+ };
498
+ }
499
+ /**
500
+ * Returns the bounding client rect of an element relative to the viewport.
501
+ *
502
+ * @remarks
503
+ * The ClientRect returned by this method does not take into account transforms
504
+ * applied to the element it measures.
505
+ *
506
+ */
507
+
508
+ function getTransformAgnosticClientRect(element) {
509
+ return getClientRect(element, {
510
+ ignoreTransform: true
511
+ });
512
+ }
513
+
514
+ function getWindowClientRect(element) {
515
+ const width = element.innerWidth;
516
+ const height = element.innerHeight;
517
+ return {
518
+ top: 0,
519
+ left: 0,
520
+ right: width,
521
+ bottom: height,
522
+ width,
523
+ height
524
+ };
525
+ }
526
+
527
+ function isFixed(node, computedStyle) {
528
+ if (computedStyle === void 0) {
529
+ computedStyle = utilities_esm.getWindow(node).getComputedStyle(node);
530
+ }
531
+
532
+ return computedStyle.position === 'fixed';
533
+ }
534
+
535
+ function isScrollable(element, computedStyle) {
536
+ if (computedStyle === void 0) {
537
+ computedStyle = utilities_esm.getWindow(element).getComputedStyle(element);
538
+ }
539
+
540
+ const overflowRegex = /(auto|scroll|overlay)/;
541
+ const properties = ['overflow', 'overflowX', 'overflowY'];
542
+ return properties.some(property => {
543
+ const value = computedStyle[property];
544
+ return typeof value === 'string' ? overflowRegex.test(value) : false;
545
+ });
546
+ }
547
+
548
+ function getScrollableAncestors(element, limit) {
549
+ const scrollParents = [];
550
+
551
+ function findScrollableAncestors(node) {
552
+ if (limit != null && scrollParents.length >= limit) {
553
+ return scrollParents;
554
+ }
555
+
556
+ if (!node) {
557
+ return scrollParents;
558
+ }
559
+
560
+ if (utilities_esm.isDocument(node) && node.scrollingElement != null && !scrollParents.includes(node.scrollingElement)) {
561
+ scrollParents.push(node.scrollingElement);
562
+ return scrollParents;
563
+ }
564
+
565
+ if (!utilities_esm.isHTMLElement(node) || utilities_esm.isSVGElement(node)) {
566
+ return scrollParents;
567
+ }
568
+
569
+ if (scrollParents.includes(node)) {
570
+ return scrollParents;
571
+ }
572
+
573
+ const computedStyle = utilities_esm.getWindow(element).getComputedStyle(node);
574
+
575
+ if (node !== element) {
576
+ if (isScrollable(node, computedStyle)) {
577
+ scrollParents.push(node);
578
+ }
579
+ }
580
+
581
+ if (isFixed(node, computedStyle)) {
582
+ return scrollParents;
583
+ }
584
+
585
+ return findScrollableAncestors(node.parentNode);
586
+ }
587
+
588
+ if (!element) {
589
+ return scrollParents;
590
+ }
591
+
592
+ return findScrollableAncestors(element);
593
+ }
594
+ function getFirstScrollableAncestor(node) {
595
+ const [firstScrollableAncestor] = getScrollableAncestors(node, 1);
596
+ return firstScrollableAncestor != null ? firstScrollableAncestor : null;
597
+ }
598
+
599
+ function getScrollableElement(element) {
600
+ if (!utilities_esm.canUseDOM || !element) {
601
+ return null;
602
+ }
603
+
604
+ if (utilities_esm.isWindow(element)) {
605
+ return element;
606
+ }
607
+
608
+ if (!utilities_esm.isNode(element)) {
609
+ return null;
610
+ }
611
+
612
+ if (utilities_esm.isDocument(element) || element === utilities_esm.getOwnerDocument(element).scrollingElement) {
613
+ return window;
614
+ }
615
+
616
+ if (utilities_esm.isHTMLElement(element)) {
617
+ return element;
618
+ }
619
+
620
+ return null;
621
+ }
622
+
623
+ function getScrollXCoordinate(element) {
624
+ if (utilities_esm.isWindow(element)) {
625
+ return element.scrollX;
626
+ }
627
+
628
+ return element.scrollLeft;
629
+ }
630
+ function getScrollYCoordinate(element) {
631
+ if (utilities_esm.isWindow(element)) {
632
+ return element.scrollY;
633
+ }
634
+
635
+ return element.scrollTop;
636
+ }
637
+ function getScrollCoordinates(element) {
638
+ return {
639
+ x: getScrollXCoordinate(element),
640
+ y: getScrollYCoordinate(element)
641
+ };
642
+ }
643
+
644
+ var Direction;
645
+
646
+ (function (Direction) {
647
+ Direction[Direction["Forward"] = 1] = "Forward";
648
+ Direction[Direction["Backward"] = -1] = "Backward";
649
+ })(Direction || (Direction = {}));
650
+
651
+ function isDocumentScrollingElement(element) {
652
+ if (!utilities_esm.canUseDOM || !element) {
653
+ return false;
654
+ }
655
+
656
+ return element === document.scrollingElement;
657
+ }
658
+
659
+ function getScrollPosition(scrollingContainer) {
660
+ const minScroll = {
661
+ x: 0,
662
+ y: 0
663
+ };
664
+ const dimensions = isDocumentScrollingElement(scrollingContainer) ? {
665
+ height: window.innerHeight,
666
+ width: window.innerWidth
667
+ } : {
668
+ height: scrollingContainer.clientHeight,
669
+ width: scrollingContainer.clientWidth
670
+ };
671
+ const maxScroll = {
672
+ x: scrollingContainer.scrollWidth - dimensions.width,
673
+ y: scrollingContainer.scrollHeight - dimensions.height
674
+ };
675
+ const isTop = scrollingContainer.scrollTop <= minScroll.y;
676
+ const isLeft = scrollingContainer.scrollLeft <= minScroll.x;
677
+ const isBottom = scrollingContainer.scrollTop >= maxScroll.y;
678
+ const isRight = scrollingContainer.scrollLeft >= maxScroll.x;
679
+ return {
680
+ isTop,
681
+ isLeft,
682
+ isBottom,
683
+ isRight,
684
+ maxScroll,
685
+ minScroll
686
+ };
687
+ }
688
+
689
+ const defaultThreshold = {
690
+ x: 0.2,
691
+ y: 0.2
692
+ };
693
+ function getScrollDirectionAndSpeed(scrollContainer, scrollContainerRect, _ref, acceleration, thresholdPercentage) {
694
+ let {
695
+ top,
696
+ left,
697
+ right,
698
+ bottom
699
+ } = _ref;
700
+
701
+ if (acceleration === void 0) {
702
+ acceleration = 10;
703
+ }
704
+
705
+ if (thresholdPercentage === void 0) {
706
+ thresholdPercentage = defaultThreshold;
707
+ }
708
+
709
+ const {
710
+ isTop,
711
+ isBottom,
712
+ isLeft,
713
+ isRight
714
+ } = getScrollPosition(scrollContainer);
715
+ const direction = {
716
+ x: 0,
717
+ y: 0
718
+ };
719
+ const speed = {
720
+ x: 0,
721
+ y: 0
722
+ };
723
+ const threshold = {
724
+ height: scrollContainerRect.height * thresholdPercentage.y,
725
+ width: scrollContainerRect.width * thresholdPercentage.x
726
+ };
727
+
728
+ if (!isTop && top <= scrollContainerRect.top + threshold.height) {
729
+ // Scroll Up
730
+ direction.y = Direction.Backward;
731
+ speed.y = acceleration * Math.abs((scrollContainerRect.top + threshold.height - top) / threshold.height);
732
+ } else if (!isBottom && bottom >= scrollContainerRect.bottom - threshold.height) {
733
+ // Scroll Down
734
+ direction.y = Direction.Forward;
735
+ speed.y = acceleration * Math.abs((scrollContainerRect.bottom - threshold.height - bottom) / threshold.height);
736
+ }
737
+
738
+ if (!isRight && right >= scrollContainerRect.right - threshold.width) {
739
+ // Scroll Right
740
+ direction.x = Direction.Forward;
741
+ speed.x = acceleration * Math.abs((scrollContainerRect.right - threshold.width - right) / threshold.width);
742
+ } else if (!isLeft && left <= scrollContainerRect.left + threshold.width) {
743
+ // Scroll Left
744
+ direction.x = Direction.Backward;
745
+ speed.x = acceleration * Math.abs((scrollContainerRect.left + threshold.width - left) / threshold.width);
746
+ }
747
+
748
+ return {
749
+ direction,
750
+ speed
751
+ };
752
+ }
753
+
754
+ function getScrollElementRect(element) {
755
+ if (element === document.scrollingElement) {
756
+ const {
757
+ innerWidth,
758
+ innerHeight
759
+ } = window;
760
+ return {
761
+ top: 0,
762
+ left: 0,
763
+ right: innerWidth,
764
+ bottom: innerHeight,
765
+ width: innerWidth,
766
+ height: innerHeight
767
+ };
768
+ }
769
+
770
+ const {
771
+ top,
772
+ left,
773
+ right,
774
+ bottom
775
+ } = element.getBoundingClientRect();
776
+ return {
777
+ top,
778
+ left,
779
+ right,
780
+ bottom,
781
+ width: element.clientWidth,
782
+ height: element.clientHeight
783
+ };
784
+ }
785
+
786
+ function getScrollOffsets(scrollableAncestors) {
787
+ return scrollableAncestors.reduce((acc, node) => {
788
+ return utilities_esm.add(acc, getScrollCoordinates(node));
789
+ }, defaultCoordinates);
790
+ }
791
+ function getScrollXOffset(scrollableAncestors) {
792
+ return scrollableAncestors.reduce((acc, node) => {
793
+ return acc + getScrollXCoordinate(node);
794
+ }, 0);
795
+ }
796
+ function getScrollYOffset(scrollableAncestors) {
797
+ return scrollableAncestors.reduce((acc, node) => {
798
+ return acc + getScrollYCoordinate(node);
799
+ }, 0);
800
+ }
801
+
802
+ function scrollIntoViewIfNeeded(element, measure) {
803
+ if (measure === void 0) {
804
+ measure = getClientRect;
805
+ }
806
+
807
+ if (!element) {
808
+ return;
809
+ }
810
+
811
+ const {
812
+ top,
813
+ left,
814
+ bottom,
815
+ right
816
+ } = measure(element);
817
+ const firstScrollableAncestor = getFirstScrollableAncestor(element);
818
+
819
+ if (!firstScrollableAncestor) {
820
+ return;
821
+ }
822
+
823
+ if (bottom <= 0 || right <= 0 || top >= window.innerHeight || left >= window.innerWidth) {
824
+ element.scrollIntoView({
825
+ block: 'center',
826
+ inline: 'center'
827
+ });
828
+ }
829
+ }
830
+
831
+ const properties = [['x', ['left', 'right'], getScrollXOffset], ['y', ['top', 'bottom'], getScrollYOffset]];
832
+ class Rect {
833
+ constructor(rect, element) {
834
+ this.rect = void 0;
835
+ this.width = void 0;
836
+ this.height = void 0;
837
+ this.top = void 0;
838
+ this.bottom = void 0;
839
+ this.right = void 0;
840
+ this.left = void 0;
841
+ const scrollableAncestors = getScrollableAncestors(element);
842
+ const scrollOffsets = getScrollOffsets(scrollableAncestors);
843
+ this.rect = { ...rect
844
+ };
845
+ this.width = rect.width;
846
+ this.height = rect.height;
847
+
848
+ for (const [axis, keys, getScrollOffset] of properties) {
849
+ for (const key of keys) {
850
+ Object.defineProperty(this, key, {
851
+ get: () => {
852
+ const currentOffsets = getScrollOffset(scrollableAncestors);
853
+ const scrollOffsetsDeltla = scrollOffsets[axis] - currentOffsets;
854
+ return this.rect[key] + scrollOffsetsDeltla;
855
+ },
856
+ enumerable: true
857
+ });
858
+ }
859
+ }
860
+
861
+ Object.defineProperty(this, 'rect', {
862
+ enumerable: false
863
+ });
864
+ }
865
+
866
+ }
867
+
868
+ class Listeners {
869
+ constructor(target) {
870
+ this.target = void 0;
871
+ this.listeners = [];
872
+
873
+ this.removeAll = () => {
874
+ this.listeners.forEach(listener => {
875
+ var _this$target;
876
+
877
+ return (_this$target = this.target) == null ? void 0 : _this$target.removeEventListener(...listener);
878
+ });
879
+ };
880
+
881
+ this.target = target;
882
+ }
883
+
884
+ add(eventName, handler, options) {
885
+ var _this$target2;
886
+
887
+ (_this$target2 = this.target) == null ? void 0 : _this$target2.addEventListener(eventName, handler, options);
888
+ this.listeners.push([eventName, handler, options]);
889
+ }
890
+
891
+ }
892
+
893
+ function getEventListenerTarget(target) {
894
+ // If the `event.target` element is removed from the document events will still be targeted
895
+ // at it, and hence won't always bubble up to the window or document anymore.
896
+ // If there is any risk of an element being removed while it is being dragged,
897
+ // the best practice is to attach the event listeners directly to the target.
898
+ // https://developer.mozilla.org/en-US/docs/Web/API/EventTarget
899
+ const {
900
+ EventTarget
901
+ } = utilities_esm.getWindow(target);
902
+ return target instanceof EventTarget ? target : utilities_esm.getOwnerDocument(target);
903
+ }
904
+
905
+ function hasExceededDistance(delta, measurement) {
906
+ const dx = Math.abs(delta.x);
907
+ const dy = Math.abs(delta.y);
908
+
909
+ if (typeof measurement === 'number') {
910
+ return Math.sqrt(dx ** 2 + dy ** 2) > measurement;
911
+ }
912
+
913
+ if ('x' in measurement && 'y' in measurement) {
914
+ return dx > measurement.x && dy > measurement.y;
915
+ }
916
+
917
+ if ('x' in measurement) {
918
+ return dx > measurement.x;
919
+ }
920
+
921
+ if ('y' in measurement) {
922
+ return dy > measurement.y;
923
+ }
924
+
925
+ return false;
926
+ }
927
+
928
+ var EventName;
929
+
930
+ (function (EventName) {
931
+ EventName["Click"] = "click";
932
+ EventName["DragStart"] = "dragstart";
933
+ EventName["Keydown"] = "keydown";
934
+ EventName["ContextMenu"] = "contextmenu";
935
+ EventName["Resize"] = "resize";
936
+ EventName["SelectionChange"] = "selectionchange";
937
+ EventName["VisibilityChange"] = "visibilitychange";
938
+ })(EventName || (EventName = {}));
939
+
940
+ function preventDefault(event) {
941
+ event.preventDefault();
942
+ }
943
+ function stopPropagation(event) {
944
+ event.stopPropagation();
945
+ }
946
+
947
+ exports.KeyboardCode = void 0;
948
+
949
+ (function (KeyboardCode) {
950
+ KeyboardCode["Space"] = "Space";
951
+ KeyboardCode["Down"] = "ArrowDown";
952
+ KeyboardCode["Right"] = "ArrowRight";
953
+ KeyboardCode["Left"] = "ArrowLeft";
954
+ KeyboardCode["Up"] = "ArrowUp";
955
+ KeyboardCode["Esc"] = "Escape";
956
+ KeyboardCode["Enter"] = "Enter";
957
+ KeyboardCode["Tab"] = "Tab";
958
+ })(exports.KeyboardCode || (exports.KeyboardCode = {}));
959
+
960
+ const defaultKeyboardCodes = {
961
+ start: [exports.KeyboardCode.Space, exports.KeyboardCode.Enter],
962
+ cancel: [exports.KeyboardCode.Esc],
963
+ end: [exports.KeyboardCode.Space, exports.KeyboardCode.Enter, exports.KeyboardCode.Tab]
964
+ };
965
+ const defaultKeyboardCoordinateGetter = (event, _ref) => {
966
+ let {
967
+ currentCoordinates
968
+ } = _ref;
969
+
970
+ switch (event.code) {
971
+ case exports.KeyboardCode.Right:
972
+ return { ...currentCoordinates,
973
+ x: currentCoordinates.x + 25
974
+ };
975
+
976
+ case exports.KeyboardCode.Left:
977
+ return { ...currentCoordinates,
978
+ x: currentCoordinates.x - 25
979
+ };
980
+
981
+ case exports.KeyboardCode.Down:
982
+ return { ...currentCoordinates,
983
+ y: currentCoordinates.y + 25
984
+ };
985
+
986
+ case exports.KeyboardCode.Up:
987
+ return { ...currentCoordinates,
988
+ y: currentCoordinates.y - 25
989
+ };
990
+ }
991
+
992
+ return undefined;
993
+ };
994
+
995
+ class KeyboardSensor {
996
+ constructor(props) {
997
+ this.props = void 0;
998
+ this.autoScrollEnabled = false;
999
+ this.referenceCoordinates = void 0;
1000
+ this.listeners = void 0;
1001
+ this.windowListeners = void 0;
1002
+ this.props = props;
1003
+ const {
1004
+ event: {
1005
+ target
1006
+ }
1007
+ } = props;
1008
+ this.props = props;
1009
+ this.listeners = new Listeners(utilities_esm.getOwnerDocument(target));
1010
+ this.windowListeners = new Listeners(utilities_esm.getWindow(target));
1011
+ this.handleKeyDown = this.handleKeyDown.bind(this);
1012
+ this.handleCancel = this.handleCancel.bind(this);
1013
+ this.attach();
1014
+ }
1015
+
1016
+ attach() {
1017
+ this.handleStart();
1018
+ this.windowListeners.add(EventName.Resize, this.handleCancel);
1019
+ this.windowListeners.add(EventName.VisibilityChange, this.handleCancel);
1020
+ setTimeout(() => this.listeners.add(EventName.Keydown, this.handleKeyDown));
1021
+ }
1022
+
1023
+ handleStart() {
1024
+ const {
1025
+ activeNode,
1026
+ onStart
1027
+ } = this.props;
1028
+ const node = activeNode.node.current;
1029
+
1030
+ if (node) {
1031
+ scrollIntoViewIfNeeded(node);
1032
+ }
1033
+
1034
+ onStart(defaultCoordinates);
1035
+ }
1036
+
1037
+ handleKeyDown(event) {
1038
+ if (utilities_esm.isKeyboardEvent(event)) {
1039
+ const {
1040
+ active,
1041
+ context,
1042
+ options
1043
+ } = this.props;
1044
+ const {
1045
+ keyboardCodes = defaultKeyboardCodes,
1046
+ coordinateGetter = defaultKeyboardCoordinateGetter,
1047
+ scrollBehavior = 'smooth'
1048
+ } = options;
1049
+ const {
1050
+ code
1051
+ } = event;
1052
+
1053
+ if (keyboardCodes.end.includes(code)) {
1054
+ this.handleEnd(event);
1055
+ return;
1056
+ }
1057
+
1058
+ if (keyboardCodes.cancel.includes(code)) {
1059
+ this.handleCancel(event);
1060
+ return;
1061
+ }
1062
+
1063
+ const {
1064
+ collisionRect
1065
+ } = context.current;
1066
+ const currentCoordinates = collisionRect ? {
1067
+ x: collisionRect.left,
1068
+ y: collisionRect.top
1069
+ } : defaultCoordinates;
1070
+
1071
+ if (!this.referenceCoordinates) {
1072
+ this.referenceCoordinates = currentCoordinates;
1073
+ }
1074
+
1075
+ const newCoordinates = coordinateGetter(event, {
1076
+ active,
1077
+ context: context.current,
1078
+ currentCoordinates
1079
+ });
1080
+
1081
+ if (newCoordinates) {
1082
+ const coordinatesDelta = utilities_esm.subtract(newCoordinates, currentCoordinates);
1083
+ const scrollDelta = {
1084
+ x: 0,
1085
+ y: 0
1086
+ };
1087
+ const {
1088
+ scrollableAncestors
1089
+ } = context.current;
1090
+
1091
+ for (const scrollContainer of scrollableAncestors) {
1092
+ const direction = event.code;
1093
+ const {
1094
+ isTop,
1095
+ isRight,
1096
+ isLeft,
1097
+ isBottom,
1098
+ maxScroll,
1099
+ minScroll
1100
+ } = getScrollPosition(scrollContainer);
1101
+ const scrollElementRect = getScrollElementRect(scrollContainer);
1102
+ const clampedCoordinates = {
1103
+ x: Math.min(direction === exports.KeyboardCode.Right ? scrollElementRect.right - scrollElementRect.width / 2 : scrollElementRect.right, Math.max(direction === exports.KeyboardCode.Right ? scrollElementRect.left : scrollElementRect.left + scrollElementRect.width / 2, newCoordinates.x)),
1104
+ y: Math.min(direction === exports.KeyboardCode.Down ? scrollElementRect.bottom - scrollElementRect.height / 2 : scrollElementRect.bottom, Math.max(direction === exports.KeyboardCode.Down ? scrollElementRect.top : scrollElementRect.top + scrollElementRect.height / 2, newCoordinates.y))
1105
+ };
1106
+ const canScrollX = direction === exports.KeyboardCode.Right && !isRight || direction === exports.KeyboardCode.Left && !isLeft;
1107
+ const canScrollY = direction === exports.KeyboardCode.Down && !isBottom || direction === exports.KeyboardCode.Up && !isTop;
1108
+
1109
+ if (canScrollX && clampedCoordinates.x !== newCoordinates.x) {
1110
+ const newScrollCoordinates = scrollContainer.scrollLeft + coordinatesDelta.x;
1111
+ const canScrollToNewCoordinates = direction === exports.KeyboardCode.Right && newScrollCoordinates <= maxScroll.x || direction === exports.KeyboardCode.Left && newScrollCoordinates >= minScroll.x;
1112
+
1113
+ if (canScrollToNewCoordinates && !coordinatesDelta.y) {
1114
+ // We don't need to update coordinates, the scroll adjustment alone will trigger
1115
+ // logic to auto-detect the new container we are over
1116
+ scrollContainer.scrollTo({
1117
+ left: newScrollCoordinates,
1118
+ behavior: scrollBehavior
1119
+ });
1120
+ return;
1121
+ }
1122
+
1123
+ if (canScrollToNewCoordinates) {
1124
+ scrollDelta.x = scrollContainer.scrollLeft - newScrollCoordinates;
1125
+ } else {
1126
+ scrollDelta.x = direction === exports.KeyboardCode.Right ? scrollContainer.scrollLeft - maxScroll.x : scrollContainer.scrollLeft - minScroll.x;
1127
+ }
1128
+
1129
+ if (scrollDelta.x) {
1130
+ scrollContainer.scrollBy({
1131
+ left: -scrollDelta.x,
1132
+ behavior: scrollBehavior
1133
+ });
1134
+ }
1135
+
1136
+ break;
1137
+ } else if (canScrollY && clampedCoordinates.y !== newCoordinates.y) {
1138
+ const newScrollCoordinates = scrollContainer.scrollTop + coordinatesDelta.y;
1139
+ const canScrollToNewCoordinates = direction === exports.KeyboardCode.Down && newScrollCoordinates <= maxScroll.y || direction === exports.KeyboardCode.Up && newScrollCoordinates >= minScroll.y;
1140
+
1141
+ if (canScrollToNewCoordinates && !coordinatesDelta.x) {
1142
+ // We don't need to update coordinates, the scroll adjustment alone will trigger
1143
+ // logic to auto-detect the new container we are over
1144
+ scrollContainer.scrollTo({
1145
+ top: newScrollCoordinates,
1146
+ behavior: scrollBehavior
1147
+ });
1148
+ return;
1149
+ }
1150
+
1151
+ if (canScrollToNewCoordinates) {
1152
+ scrollDelta.y = scrollContainer.scrollTop - newScrollCoordinates;
1153
+ } else {
1154
+ scrollDelta.y = direction === exports.KeyboardCode.Down ? scrollContainer.scrollTop - maxScroll.y : scrollContainer.scrollTop - minScroll.y;
1155
+ }
1156
+
1157
+ if (scrollDelta.y) {
1158
+ scrollContainer.scrollBy({
1159
+ top: -scrollDelta.y,
1160
+ behavior: scrollBehavior
1161
+ });
1162
+ }
1163
+
1164
+ break;
1165
+ }
1166
+ }
1167
+
1168
+ this.handleMove(event, utilities_esm.add(utilities_esm.subtract(newCoordinates, this.referenceCoordinates), scrollDelta));
1169
+ }
1170
+ }
1171
+ }
1172
+
1173
+ handleMove(event, coordinates) {
1174
+ const {
1175
+ onMove
1176
+ } = this.props;
1177
+ event.preventDefault();
1178
+ onMove(coordinates);
1179
+ }
1180
+
1181
+ handleEnd(event) {
1182
+ const {
1183
+ onEnd
1184
+ } = this.props;
1185
+ event.preventDefault();
1186
+ this.detach();
1187
+ onEnd();
1188
+ }
1189
+
1190
+ handleCancel(event) {
1191
+ const {
1192
+ onCancel
1193
+ } = this.props;
1194
+ event.preventDefault();
1195
+ this.detach();
1196
+ onCancel();
1197
+ }
1198
+
1199
+ detach() {
1200
+ this.listeners.removeAll();
1201
+ this.windowListeners.removeAll();
1202
+ }
1203
+
1204
+ }
1205
+ KeyboardSensor.activators = [{
1206
+ eventName: 'onKeyDown',
1207
+ handler: (event, _ref, _ref2) => {
1208
+ let {
1209
+ keyboardCodes = defaultKeyboardCodes,
1210
+ onActivation
1211
+ } = _ref;
1212
+ let {
1213
+ active
1214
+ } = _ref2;
1215
+ const {
1216
+ code
1217
+ } = event.nativeEvent;
1218
+
1219
+ if (keyboardCodes.start.includes(code)) {
1220
+ const activator = active.activatorNode.current;
1221
+
1222
+ if (activator && event.target !== activator) {
1223
+ return false;
1224
+ }
1225
+
1226
+ event.preventDefault();
1227
+ onActivation == null ? void 0 : onActivation({
1228
+ event: event.nativeEvent
1229
+ });
1230
+ return true;
1231
+ }
1232
+
1233
+ return false;
1234
+ }
1235
+ }];
1236
+
1237
+ function isDistanceConstraint(constraint) {
1238
+ return Boolean(constraint && 'distance' in constraint);
1239
+ }
1240
+
1241
+ function isDelayConstraint(constraint) {
1242
+ return Boolean(constraint && 'delay' in constraint);
1243
+ }
1244
+
1245
+ class AbstractPointerSensor {
1246
+ constructor(props, events, listenerTarget) {
1247
+ var _getEventCoordinates;
1248
+
1249
+ if (listenerTarget === void 0) {
1250
+ listenerTarget = getEventListenerTarget(props.event.target);
1251
+ }
1252
+
1253
+ this.props = void 0;
1254
+ this.events = void 0;
1255
+ this.autoScrollEnabled = true;
1256
+ this.document = void 0;
1257
+ this.activated = false;
1258
+ this.initialCoordinates = void 0;
1259
+ this.timeoutId = null;
1260
+ this.listeners = void 0;
1261
+ this.documentListeners = void 0;
1262
+ this.windowListeners = void 0;
1263
+ this.props = props;
1264
+ this.events = events;
1265
+ const {
1266
+ event
1267
+ } = props;
1268
+ const {
1269
+ target
1270
+ } = event;
1271
+ this.props = props;
1272
+ this.events = events;
1273
+ this.document = utilities_esm.getOwnerDocument(target);
1274
+ this.documentListeners = new Listeners(this.document);
1275
+ this.listeners = new Listeners(listenerTarget);
1276
+ this.windowListeners = new Listeners(utilities_esm.getWindow(target));
1277
+ this.initialCoordinates = (_getEventCoordinates = utilities_esm.getEventCoordinates(event)) != null ? _getEventCoordinates : defaultCoordinates;
1278
+ this.handleStart = this.handleStart.bind(this);
1279
+ this.handleMove = this.handleMove.bind(this);
1280
+ this.handleEnd = this.handleEnd.bind(this);
1281
+ this.handleCancel = this.handleCancel.bind(this);
1282
+ this.handleKeydown = this.handleKeydown.bind(this);
1283
+ this.removeTextSelection = this.removeTextSelection.bind(this);
1284
+ this.attach();
1285
+ }
1286
+
1287
+ attach() {
1288
+ const {
1289
+ events,
1290
+ props: {
1291
+ options: {
1292
+ activationConstraint,
1293
+ bypassActivationConstraint
1294
+ }
1295
+ }
1296
+ } = this;
1297
+ this.listeners.add(events.move.name, this.handleMove, {
1298
+ passive: false
1299
+ });
1300
+ this.listeners.add(events.end.name, this.handleEnd);
1301
+
1302
+ if (events.cancel) {
1303
+ this.listeners.add(events.cancel.name, this.handleCancel);
1304
+ }
1305
+
1306
+ this.windowListeners.add(EventName.Resize, this.handleCancel);
1307
+ this.windowListeners.add(EventName.DragStart, preventDefault);
1308
+ this.windowListeners.add(EventName.VisibilityChange, this.handleCancel);
1309
+ this.windowListeners.add(EventName.ContextMenu, preventDefault);
1310
+ this.documentListeners.add(EventName.Keydown, this.handleKeydown);
1311
+
1312
+ if (activationConstraint) {
1313
+ if (bypassActivationConstraint != null && bypassActivationConstraint({
1314
+ event: this.props.event,
1315
+ activeNode: this.props.activeNode,
1316
+ options: this.props.options
1317
+ })) {
1318
+ return this.handleStart();
1319
+ }
1320
+
1321
+ if (isDelayConstraint(activationConstraint)) {
1322
+ this.timeoutId = setTimeout(this.handleStart, activationConstraint.delay);
1323
+ this.handlePending(activationConstraint);
1324
+ return;
1325
+ }
1326
+
1327
+ if (isDistanceConstraint(activationConstraint)) {
1328
+ this.handlePending(activationConstraint);
1329
+ return;
1330
+ }
1331
+ }
1332
+
1333
+ this.handleStart();
1334
+ }
1335
+
1336
+ detach() {
1337
+ this.listeners.removeAll();
1338
+ this.windowListeners.removeAll(); // Wait until the next event loop before removing document listeners
1339
+ // This is necessary because we listen for `click` and `selection` events on the document
1340
+
1341
+ setTimeout(this.documentListeners.removeAll, 50);
1342
+
1343
+ if (this.timeoutId !== null) {
1344
+ clearTimeout(this.timeoutId);
1345
+ this.timeoutId = null;
1346
+ }
1347
+ }
1348
+
1349
+ handlePending(constraint, offset) {
1350
+ const {
1351
+ active,
1352
+ onPending
1353
+ } = this.props;
1354
+ onPending(active, constraint, this.initialCoordinates, offset);
1355
+ }
1356
+
1357
+ handleStart() {
1358
+ const {
1359
+ initialCoordinates
1360
+ } = this;
1361
+ const {
1362
+ onStart
1363
+ } = this.props;
1364
+
1365
+ if (initialCoordinates) {
1366
+ this.activated = true; // Stop propagation of click events once activation constraints are met
1367
+
1368
+ this.documentListeners.add(EventName.Click, stopPropagation, {
1369
+ capture: true
1370
+ }); // Remove any text selection from the document
1371
+
1372
+ this.removeTextSelection(); // Prevent further text selection while dragging
1373
+
1374
+ this.documentListeners.add(EventName.SelectionChange, this.removeTextSelection);
1375
+ onStart(initialCoordinates);
1376
+ }
1377
+ }
1378
+
1379
+ handleMove(event) {
1380
+ var _getEventCoordinates2;
1381
+
1382
+ const {
1383
+ activated,
1384
+ initialCoordinates,
1385
+ props
1386
+ } = this;
1387
+ const {
1388
+ onMove,
1389
+ options: {
1390
+ activationConstraint
1391
+ }
1392
+ } = props;
1393
+
1394
+ if (!initialCoordinates) {
1395
+ return;
1396
+ }
1397
+
1398
+ const coordinates = (_getEventCoordinates2 = utilities_esm.getEventCoordinates(event)) != null ? _getEventCoordinates2 : defaultCoordinates;
1399
+ const delta = utilities_esm.subtract(initialCoordinates, coordinates); // Constraint validation
1400
+
1401
+ if (!activated && activationConstraint) {
1402
+ if (isDistanceConstraint(activationConstraint)) {
1403
+ if (activationConstraint.tolerance != null && hasExceededDistance(delta, activationConstraint.tolerance)) {
1404
+ return this.handleCancel();
1405
+ }
1406
+
1407
+ if (hasExceededDistance(delta, activationConstraint.distance)) {
1408
+ return this.handleStart();
1409
+ }
1410
+ }
1411
+
1412
+ if (isDelayConstraint(activationConstraint)) {
1413
+ if (hasExceededDistance(delta, activationConstraint.tolerance)) {
1414
+ return this.handleCancel();
1415
+ }
1416
+ }
1417
+
1418
+ this.handlePending(activationConstraint, delta);
1419
+ return;
1420
+ }
1421
+
1422
+ if (event.cancelable) {
1423
+ event.preventDefault();
1424
+ }
1425
+
1426
+ onMove(coordinates);
1427
+ }
1428
+
1429
+ handleEnd() {
1430
+ const {
1431
+ onAbort,
1432
+ onEnd
1433
+ } = this.props;
1434
+ this.detach();
1435
+
1436
+ if (!this.activated) {
1437
+ onAbort(this.props.active);
1438
+ }
1439
+
1440
+ onEnd();
1441
+ }
1442
+
1443
+ handleCancel() {
1444
+ const {
1445
+ onAbort,
1446
+ onCancel
1447
+ } = this.props;
1448
+ this.detach();
1449
+
1450
+ if (!this.activated) {
1451
+ onAbort(this.props.active);
1452
+ }
1453
+
1454
+ onCancel();
1455
+ }
1456
+
1457
+ handleKeydown(event) {
1458
+ if (event.code === exports.KeyboardCode.Esc) {
1459
+ this.handleCancel();
1460
+ }
1461
+ }
1462
+
1463
+ removeTextSelection() {
1464
+ var _this$document$getSel;
1465
+
1466
+ (_this$document$getSel = this.document.getSelection()) == null ? void 0 : _this$document$getSel.removeAllRanges();
1467
+ }
1468
+
1469
+ }
1470
+
1471
+ const events = {
1472
+ cancel: {
1473
+ name: 'pointercancel'
1474
+ },
1475
+ move: {
1476
+ name: 'pointermove'
1477
+ },
1478
+ end: {
1479
+ name: 'pointerup'
1480
+ }
1481
+ };
1482
+ class PointerSensor extends AbstractPointerSensor {
1483
+ constructor(props) {
1484
+ const {
1485
+ event
1486
+ } = props; // Pointer events stop firing if the target is unmounted while dragging
1487
+ // Therefore we attach listeners to the owner document instead
1488
+
1489
+ const listenerTarget = utilities_esm.getOwnerDocument(event.target);
1490
+ super(props, events, listenerTarget);
1491
+ }
1492
+
1493
+ }
1494
+ PointerSensor.activators = [{
1495
+ eventName: 'onPointerDown',
1496
+ handler: (_ref, _ref2) => {
1497
+ let {
1498
+ nativeEvent: event
1499
+ } = _ref;
1500
+ let {
1501
+ onActivation
1502
+ } = _ref2;
1503
+
1504
+ if (!event.isPrimary || event.button !== 0) {
1505
+ return false;
1506
+ }
1507
+
1508
+ onActivation == null ? void 0 : onActivation({
1509
+ event
1510
+ });
1511
+ return true;
1512
+ }
1513
+ }];
1514
+
1515
+ const events$1 = {
1516
+ move: {
1517
+ name: 'mousemove'
1518
+ },
1519
+ end: {
1520
+ name: 'mouseup'
1521
+ }
1522
+ };
1523
+ var MouseButton;
1524
+
1525
+ (function (MouseButton) {
1526
+ MouseButton[MouseButton["RightClick"] = 2] = "RightClick";
1527
+ })(MouseButton || (MouseButton = {}));
1528
+
1529
+ class MouseSensor extends AbstractPointerSensor {
1530
+ constructor(props) {
1531
+ super(props, events$1, utilities_esm.getOwnerDocument(props.event.target));
1532
+ }
1533
+
1534
+ }
1535
+ MouseSensor.activators = [{
1536
+ eventName: 'onMouseDown',
1537
+ handler: (_ref, _ref2) => {
1538
+ let {
1539
+ nativeEvent: event
1540
+ } = _ref;
1541
+ let {
1542
+ onActivation
1543
+ } = _ref2;
1544
+
1545
+ if (event.button === MouseButton.RightClick) {
1546
+ return false;
1547
+ }
1548
+
1549
+ onActivation == null ? void 0 : onActivation({
1550
+ event
1551
+ });
1552
+ return true;
1553
+ }
1554
+ }];
1555
+
1556
+ const events$2 = {
1557
+ cancel: {
1558
+ name: 'touchcancel'
1559
+ },
1560
+ move: {
1561
+ name: 'touchmove'
1562
+ },
1563
+ end: {
1564
+ name: 'touchend'
1565
+ }
1566
+ };
1567
+ class TouchSensor extends AbstractPointerSensor {
1568
+ constructor(props) {
1569
+ super(props, events$2);
1570
+ }
1571
+
1572
+ static setup() {
1573
+ // Adding a non-capture and non-passive `touchmove` listener in order
1574
+ // to force `event.preventDefault()` calls to work in dynamically added
1575
+ // touchmove event handlers. This is required for iOS Safari.
1576
+ window.addEventListener(events$2.move.name, noop, {
1577
+ capture: false,
1578
+ passive: false
1579
+ });
1580
+ return function teardown() {
1581
+ window.removeEventListener(events$2.move.name, noop);
1582
+ }; // We create a new handler because the teardown function of another sensor
1583
+ // could remove our event listener if we use a referentially equal listener.
1584
+
1585
+ function noop() {}
1586
+ }
1587
+
1588
+ }
1589
+ TouchSensor.activators = [{
1590
+ eventName: 'onTouchStart',
1591
+ handler: (_ref, _ref2) => {
1592
+ let {
1593
+ nativeEvent: event
1594
+ } = _ref;
1595
+ let {
1596
+ onActivation
1597
+ } = _ref2;
1598
+ const {
1599
+ touches
1600
+ } = event;
1601
+
1602
+ if (touches.length > 1) {
1603
+ return false;
1604
+ }
1605
+
1606
+ onActivation == null ? void 0 : onActivation({
1607
+ event
1608
+ });
1609
+ return true;
1610
+ }
1611
+ }];
1612
+
1613
+ exports.AutoScrollActivator = void 0;
1614
+
1615
+ (function (AutoScrollActivator) {
1616
+ AutoScrollActivator[AutoScrollActivator["Pointer"] = 0] = "Pointer";
1617
+ AutoScrollActivator[AutoScrollActivator["DraggableRect"] = 1] = "DraggableRect";
1618
+ })(exports.AutoScrollActivator || (exports.AutoScrollActivator = {}));
1619
+
1620
+ exports.TraversalOrder = void 0;
1621
+
1622
+ (function (TraversalOrder) {
1623
+ TraversalOrder[TraversalOrder["TreeOrder"] = 0] = "TreeOrder";
1624
+ TraversalOrder[TraversalOrder["ReversedTreeOrder"] = 1] = "ReversedTreeOrder";
1625
+ })(exports.TraversalOrder || (exports.TraversalOrder = {}));
1626
+
1627
+ function useAutoScroller(_ref) {
1628
+ let {
1629
+ acceleration,
1630
+ activator = exports.AutoScrollActivator.Pointer,
1631
+ canScroll,
1632
+ draggingRect,
1633
+ enabled,
1634
+ interval = 5,
1635
+ order = exports.TraversalOrder.TreeOrder,
1636
+ pointerCoordinates,
1637
+ scrollableAncestors,
1638
+ scrollableAncestorRects,
1639
+ delta,
1640
+ threshold
1641
+ } = _ref;
1642
+ const scrollIntent = useScrollIntent({
1643
+ delta,
1644
+ disabled: !enabled
1645
+ });
1646
+ const [setAutoScrollInterval, clearAutoScrollInterval] = utilities_esm.useInterval();
1647
+ const scrollSpeed = React.useRef({
1648
+ x: 0,
1649
+ y: 0
1650
+ });
1651
+ const scrollDirection = React.useRef({
1652
+ x: 0,
1653
+ y: 0
1654
+ });
1655
+ const rect = React.useMemo(() => {
1656
+ switch (activator) {
1657
+ case exports.AutoScrollActivator.Pointer:
1658
+ return pointerCoordinates ? {
1659
+ top: pointerCoordinates.y,
1660
+ bottom: pointerCoordinates.y,
1661
+ left: pointerCoordinates.x,
1662
+ right: pointerCoordinates.x
1663
+ } : null;
1664
+
1665
+ case exports.AutoScrollActivator.DraggableRect:
1666
+ return draggingRect;
1667
+ }
1668
+ }, [activator, draggingRect, pointerCoordinates]);
1669
+ const scrollContainerRef = React.useRef(null);
1670
+ const autoScroll = React.useCallback(() => {
1671
+ const scrollContainer = scrollContainerRef.current;
1672
+
1673
+ if (!scrollContainer) {
1674
+ return;
1675
+ }
1676
+
1677
+ const scrollLeft = scrollSpeed.current.x * scrollDirection.current.x;
1678
+ const scrollTop = scrollSpeed.current.y * scrollDirection.current.y;
1679
+ scrollContainer.scrollBy(scrollLeft, scrollTop);
1680
+ }, []);
1681
+ const sortedScrollableAncestors = React.useMemo(() => order === exports.TraversalOrder.TreeOrder ? [...scrollableAncestors].reverse() : scrollableAncestors, [order, scrollableAncestors]);
1682
+ React.useEffect(() => {
1683
+ if (!enabled || !scrollableAncestors.length || !rect) {
1684
+ clearAutoScrollInterval();
1685
+ return;
1686
+ }
1687
+
1688
+ for (const scrollContainer of sortedScrollableAncestors) {
1689
+ if ((canScroll == null ? void 0 : canScroll(scrollContainer)) === false) {
1690
+ continue;
1691
+ }
1692
+
1693
+ const index = scrollableAncestors.indexOf(scrollContainer);
1694
+ const scrollContainerRect = scrollableAncestorRects[index];
1695
+
1696
+ if (!scrollContainerRect) {
1697
+ continue;
1698
+ }
1699
+
1700
+ const {
1701
+ direction,
1702
+ speed
1703
+ } = getScrollDirectionAndSpeed(scrollContainer, scrollContainerRect, rect, acceleration, threshold);
1704
+
1705
+ for (const axis of ['x', 'y']) {
1706
+ if (!scrollIntent[axis][direction[axis]]) {
1707
+ speed[axis] = 0;
1708
+ direction[axis] = 0;
1709
+ }
1710
+ }
1711
+
1712
+ if (speed.x > 0 || speed.y > 0) {
1713
+ clearAutoScrollInterval();
1714
+ scrollContainerRef.current = scrollContainer;
1715
+ setAutoScrollInterval(autoScroll, interval);
1716
+ scrollSpeed.current = speed;
1717
+ scrollDirection.current = direction;
1718
+ return;
1719
+ }
1720
+ }
1721
+
1722
+ scrollSpeed.current = {
1723
+ x: 0,
1724
+ y: 0
1725
+ };
1726
+ scrollDirection.current = {
1727
+ x: 0,
1728
+ y: 0
1729
+ };
1730
+ clearAutoScrollInterval();
1731
+ }, // eslint-disable-next-line react-hooks/exhaustive-deps
1732
+ [acceleration, autoScroll, canScroll, clearAutoScrollInterval, enabled, interval, // eslint-disable-next-line react-hooks/exhaustive-deps
1733
+ JSON.stringify(rect), // eslint-disable-next-line react-hooks/exhaustive-deps
1734
+ JSON.stringify(scrollIntent), setAutoScrollInterval, scrollableAncestors, sortedScrollableAncestors, scrollableAncestorRects, // eslint-disable-next-line react-hooks/exhaustive-deps
1735
+ JSON.stringify(threshold)]);
1736
+ }
1737
+ const defaultScrollIntent = {
1738
+ x: {
1739
+ [Direction.Backward]: false,
1740
+ [Direction.Forward]: false
1741
+ },
1742
+ y: {
1743
+ [Direction.Backward]: false,
1744
+ [Direction.Forward]: false
1745
+ }
1746
+ };
1747
+
1748
+ function useScrollIntent(_ref2) {
1749
+ let {
1750
+ delta,
1751
+ disabled
1752
+ } = _ref2;
1753
+ const previousDelta = utilities_esm.usePrevious(delta);
1754
+ return utilities_esm.useLazyMemo(previousIntent => {
1755
+ if (disabled || !previousDelta || !previousIntent) {
1756
+ // Reset scroll intent tracking when auto-scrolling is disabled
1757
+ return defaultScrollIntent;
1758
+ }
1759
+
1760
+ const direction = {
1761
+ x: Math.sign(delta.x - previousDelta.x),
1762
+ y: Math.sign(delta.y - previousDelta.y)
1763
+ }; // Keep track of the user intent to scroll in each direction for both axis
1764
+
1765
+ return {
1766
+ x: {
1767
+ [Direction.Backward]: previousIntent.x[Direction.Backward] || direction.x === -1,
1768
+ [Direction.Forward]: previousIntent.x[Direction.Forward] || direction.x === 1
1769
+ },
1770
+ y: {
1771
+ [Direction.Backward]: previousIntent.y[Direction.Backward] || direction.y === -1,
1772
+ [Direction.Forward]: previousIntent.y[Direction.Forward] || direction.y === 1
1773
+ }
1774
+ };
1775
+ }, [disabled, delta, previousDelta]);
1776
+ }
1777
+
1778
+ function useCachedNode(draggableNodes, id) {
1779
+ const draggableNode = id != null ? draggableNodes.get(id) : undefined;
1780
+ const node = draggableNode ? draggableNode.node.current : null;
1781
+ return utilities_esm.useLazyMemo(cachedNode => {
1782
+ var _ref;
1783
+
1784
+ if (id == null) {
1785
+ return null;
1786
+ } // In some cases, the draggable node can unmount while dragging
1787
+ // This is the case for virtualized lists. In those situations,
1788
+ // we fall back to the last known value for that node.
1789
+
1790
+
1791
+ return (_ref = node != null ? node : cachedNode) != null ? _ref : null;
1792
+ }, [node, id]);
1793
+ }
1794
+
1795
+ function useCombineActivators(sensors, getSyntheticHandler) {
1796
+ return React.useMemo(() => sensors.reduce((accumulator, sensor) => {
1797
+ const {
1798
+ sensor: Sensor
1799
+ } = sensor;
1800
+ const sensorActivators = Sensor.activators.map(activator => ({
1801
+ eventName: activator.eventName,
1802
+ handler: getSyntheticHandler(activator.handler, sensor)
1803
+ }));
1804
+ return [...accumulator, ...sensorActivators];
1805
+ }, []), [sensors, getSyntheticHandler]);
1806
+ }
1807
+
1808
+ exports.MeasuringStrategy = void 0;
1809
+
1810
+ (function (MeasuringStrategy) {
1811
+ MeasuringStrategy[MeasuringStrategy["Always"] = 0] = "Always";
1812
+ MeasuringStrategy[MeasuringStrategy["BeforeDragging"] = 1] = "BeforeDragging";
1813
+ MeasuringStrategy[MeasuringStrategy["WhileDragging"] = 2] = "WhileDragging";
1814
+ })(exports.MeasuringStrategy || (exports.MeasuringStrategy = {}));
1815
+
1816
+ exports.MeasuringFrequency = void 0;
1817
+
1818
+ (function (MeasuringFrequency) {
1819
+ MeasuringFrequency["Optimized"] = "optimized";
1820
+ })(exports.MeasuringFrequency || (exports.MeasuringFrequency = {}));
1821
+
1822
+ const defaultValue = /*#__PURE__*/new Map();
1823
+ function useDroppableMeasuring(containers, _ref) {
1824
+ let {
1825
+ dragging,
1826
+ dependencies,
1827
+ config
1828
+ } = _ref;
1829
+ const [queue, setQueue] = React.useState(null);
1830
+ const {
1831
+ frequency,
1832
+ measure,
1833
+ strategy
1834
+ } = config;
1835
+ const containersRef = React.useRef(containers);
1836
+ const disabled = isDisabled();
1837
+ const disabledRef = utilities_esm.useLatestValue(disabled);
1838
+ const measureDroppableContainers = React.useCallback(function (ids) {
1839
+ if (ids === void 0) {
1840
+ ids = [];
1841
+ }
1842
+
1843
+ if (disabledRef.current) {
1844
+ return;
1845
+ }
1846
+
1847
+ setQueue(value => {
1848
+ if (value === null) {
1849
+ return ids;
1850
+ }
1851
+
1852
+ return value.concat(ids.filter(id => !value.includes(id)));
1853
+ });
1854
+ }, [disabledRef]);
1855
+ const timeoutId = React.useRef(null);
1856
+ const droppableRects = utilities_esm.useLazyMemo(previousValue => {
1857
+ if (disabled && !dragging) {
1858
+ return defaultValue;
1859
+ }
1860
+
1861
+ if (!previousValue || previousValue === defaultValue || containersRef.current !== containers || queue != null) {
1862
+ const map = new Map();
1863
+
1864
+ for (let container of containers) {
1865
+ if (!container) {
1866
+ continue;
1867
+ }
1868
+
1869
+ if (queue && queue.length > 0 && !queue.includes(container.id) && container.rect.current) {
1870
+ // This container does not need to be re-measured
1871
+ map.set(container.id, container.rect.current);
1872
+ continue;
1873
+ }
1874
+
1875
+ const node = container.node.current;
1876
+ const rect = node ? new Rect(measure(node), node) : null;
1877
+ container.rect.current = rect;
1878
+
1879
+ if (rect) {
1880
+ map.set(container.id, rect);
1881
+ }
1882
+ }
1883
+
1884
+ return map;
1885
+ }
1886
+
1887
+ return previousValue;
1888
+ }, [containers, queue, dragging, disabled, measure]);
1889
+ React.useEffect(() => {
1890
+ containersRef.current = containers;
1891
+ }, [containers]);
1892
+ React.useEffect(() => {
1893
+ if (disabled) {
1894
+ return;
1895
+ }
1896
+
1897
+ measureDroppableContainers();
1898
+ }, // eslint-disable-next-line react-hooks/exhaustive-deps
1899
+ [dragging, disabled]);
1900
+ React.useEffect(() => {
1901
+ if (queue && queue.length > 0) {
1902
+ setQueue(null);
1903
+ }
1904
+ }, //eslint-disable-next-line react-hooks/exhaustive-deps
1905
+ [JSON.stringify(queue)]);
1906
+ React.useEffect(() => {
1907
+ if (disabled || typeof frequency !== 'number' || timeoutId.current !== null) {
1908
+ return;
1909
+ }
1910
+
1911
+ timeoutId.current = setTimeout(() => {
1912
+ measureDroppableContainers();
1913
+ timeoutId.current = null;
1914
+ }, frequency);
1915
+ }, // eslint-disable-next-line react-hooks/exhaustive-deps
1916
+ [frequency, disabled, measureDroppableContainers, ...dependencies]);
1917
+ return {
1918
+ droppableRects,
1919
+ measureDroppableContainers,
1920
+ measuringScheduled: queue != null
1921
+ };
1922
+
1923
+ function isDisabled() {
1924
+ switch (strategy) {
1925
+ case exports.MeasuringStrategy.Always:
1926
+ return false;
1927
+
1928
+ case exports.MeasuringStrategy.BeforeDragging:
1929
+ return dragging;
1930
+
1931
+ default:
1932
+ return !dragging;
1933
+ }
1934
+ }
1935
+ }
1936
+
1937
+ function useInitialValue(value, computeFn) {
1938
+ return utilities_esm.useLazyMemo(previousValue => {
1939
+ if (!value) {
1940
+ return null;
1941
+ }
1942
+
1943
+ if (previousValue) {
1944
+ return previousValue;
1945
+ }
1946
+
1947
+ return typeof computeFn === 'function' ? computeFn(value) : value;
1948
+ }, [computeFn, value]);
1949
+ }
1950
+
1951
+ function useInitialRect(node, measure) {
1952
+ return useInitialValue(node, measure);
1953
+ }
1954
+
1955
+ /**
1956
+ * Returns a new MutationObserver instance.
1957
+ * If `MutationObserver` is undefined in the execution environment, returns `undefined`.
1958
+ */
1959
+
1960
+ function useMutationObserver(_ref) {
1961
+ let {
1962
+ callback,
1963
+ disabled
1964
+ } = _ref;
1965
+ const handleMutations = utilities_esm.useEvent(callback);
1966
+ const mutationObserver = React.useMemo(() => {
1967
+ if (disabled || typeof window === 'undefined' || typeof window.MutationObserver === 'undefined') {
1968
+ return undefined;
1969
+ }
1970
+
1971
+ const {
1972
+ MutationObserver
1973
+ } = window;
1974
+ return new MutationObserver(handleMutations);
1975
+ }, [handleMutations, disabled]);
1976
+ React.useEffect(() => {
1977
+ return () => mutationObserver == null ? void 0 : mutationObserver.disconnect();
1978
+ }, [mutationObserver]);
1979
+ return mutationObserver;
1980
+ }
1981
+
1982
+ /**
1983
+ * Returns a new ResizeObserver instance bound to the `onResize` callback.
1984
+ * If `ResizeObserver` is undefined in the execution environment, returns `undefined`.
1985
+ */
1986
+
1987
+ function useResizeObserver(_ref) {
1988
+ let {
1989
+ callback,
1990
+ disabled
1991
+ } = _ref;
1992
+ const handleResize = utilities_esm.useEvent(callback);
1993
+ const resizeObserver = React.useMemo(() => {
1994
+ if (disabled || typeof window === 'undefined' || typeof window.ResizeObserver === 'undefined') {
1995
+ return undefined;
1996
+ }
1997
+
1998
+ const {
1999
+ ResizeObserver
2000
+ } = window;
2001
+ return new ResizeObserver(handleResize);
2002
+ }, // eslint-disable-next-line react-hooks/exhaustive-deps
2003
+ [disabled]);
2004
+ React.useEffect(() => {
2005
+ return () => resizeObserver == null ? void 0 : resizeObserver.disconnect();
2006
+ }, [resizeObserver]);
2007
+ return resizeObserver;
2008
+ }
2009
+
2010
+ function defaultMeasure(element) {
2011
+ return new Rect(getClientRect(element), element);
2012
+ }
2013
+
2014
+ function useRect(element, measure, fallbackRect) {
2015
+ if (measure === void 0) {
2016
+ measure = defaultMeasure;
2017
+ }
2018
+
2019
+ const [rect, setRect] = React.useState(null);
2020
+
2021
+ function measureRect() {
2022
+ setRect(currentRect => {
2023
+ if (!element) {
2024
+ return null;
2025
+ }
2026
+
2027
+ if (element.isConnected === false) {
2028
+ var _ref;
2029
+
2030
+ // Fall back to last rect we measured if the element is
2031
+ // no longer connected to the DOM.
2032
+ return (_ref = currentRect != null ? currentRect : fallbackRect) != null ? _ref : null;
2033
+ }
2034
+
2035
+ const newRect = measure(element);
2036
+
2037
+ if (JSON.stringify(currentRect) === JSON.stringify(newRect)) {
2038
+ return currentRect;
2039
+ }
2040
+
2041
+ return newRect;
2042
+ });
2043
+ }
2044
+
2045
+ const mutationObserver = useMutationObserver({
2046
+ callback(records) {
2047
+ if (!element) {
2048
+ return;
2049
+ }
2050
+
2051
+ for (const record of records) {
2052
+ const {
2053
+ type,
2054
+ target
2055
+ } = record;
2056
+
2057
+ if (type === 'childList' && target instanceof HTMLElement && target.contains(element)) {
2058
+ measureRect();
2059
+ break;
2060
+ }
2061
+ }
2062
+ }
2063
+
2064
+ });
2065
+ const resizeObserver = useResizeObserver({
2066
+ callback: measureRect
2067
+ });
2068
+ utilities_esm.useIsomorphicLayoutEffect(() => {
2069
+ measureRect();
2070
+
2071
+ if (element) {
2072
+ resizeObserver == null ? void 0 : resizeObserver.observe(element);
2073
+ mutationObserver == null ? void 0 : mutationObserver.observe(document.body, {
2074
+ childList: true,
2075
+ subtree: true
2076
+ });
2077
+ } else {
2078
+ resizeObserver == null ? void 0 : resizeObserver.disconnect();
2079
+ mutationObserver == null ? void 0 : mutationObserver.disconnect();
2080
+ }
2081
+ }, [element]);
2082
+ return rect;
2083
+ }
2084
+
2085
+ function useRectDelta(rect) {
2086
+ const initialRect = useInitialValue(rect);
2087
+ return getRectDelta(rect, initialRect);
2088
+ }
2089
+
2090
+ const defaultValue$1 = [];
2091
+ function useScrollableAncestors(node) {
2092
+ const previousNode = React.useRef(node);
2093
+ const ancestors = utilities_esm.useLazyMemo(previousValue => {
2094
+ if (!node) {
2095
+ return defaultValue$1;
2096
+ }
2097
+
2098
+ if (previousValue && previousValue !== defaultValue$1 && node && previousNode.current && node.parentNode === previousNode.current.parentNode) {
2099
+ return previousValue;
2100
+ }
2101
+
2102
+ return getScrollableAncestors(node);
2103
+ }, [node]);
2104
+ React.useEffect(() => {
2105
+ previousNode.current = node;
2106
+ }, [node]);
2107
+ return ancestors;
2108
+ }
2109
+
2110
+ function useScrollOffsets(elements) {
2111
+ const [scrollCoordinates, setScrollCoordinates] = React.useState(null);
2112
+ const prevElements = React.useRef(elements); // To-do: Throttle the handleScroll callback
2113
+
2114
+ const handleScroll = React.useCallback(event => {
2115
+ const scrollingElement = getScrollableElement(event.target);
2116
+
2117
+ if (!scrollingElement) {
2118
+ return;
2119
+ }
2120
+
2121
+ setScrollCoordinates(scrollCoordinates => {
2122
+ if (!scrollCoordinates) {
2123
+ return null;
2124
+ }
2125
+
2126
+ scrollCoordinates.set(scrollingElement, getScrollCoordinates(scrollingElement));
2127
+ return new Map(scrollCoordinates);
2128
+ });
2129
+ }, []);
2130
+ React.useEffect(() => {
2131
+ const previousElements = prevElements.current;
2132
+
2133
+ if (elements !== previousElements) {
2134
+ cleanup(previousElements);
2135
+ const entries = elements.map(element => {
2136
+ const scrollableElement = getScrollableElement(element);
2137
+
2138
+ if (scrollableElement) {
2139
+ scrollableElement.addEventListener('scroll', handleScroll, {
2140
+ passive: true
2141
+ });
2142
+ return [scrollableElement, getScrollCoordinates(scrollableElement)];
2143
+ }
2144
+
2145
+ return null;
2146
+ }).filter(entry => entry != null);
2147
+ setScrollCoordinates(entries.length ? new Map(entries) : null);
2148
+ prevElements.current = elements;
2149
+ }
2150
+
2151
+ return () => {
2152
+ cleanup(elements);
2153
+ cleanup(previousElements);
2154
+ };
2155
+
2156
+ function cleanup(elements) {
2157
+ elements.forEach(element => {
2158
+ const scrollableElement = getScrollableElement(element);
2159
+ scrollableElement == null ? void 0 : scrollableElement.removeEventListener('scroll', handleScroll);
2160
+ });
2161
+ }
2162
+ }, [handleScroll, elements]);
2163
+ return React.useMemo(() => {
2164
+ if (elements.length) {
2165
+ return scrollCoordinates ? Array.from(scrollCoordinates.values()).reduce((acc, coordinates) => utilities_esm.add(acc, coordinates), defaultCoordinates) : getScrollOffsets(elements);
2166
+ }
2167
+
2168
+ return defaultCoordinates;
2169
+ }, [elements, scrollCoordinates]);
2170
+ }
2171
+
2172
+ function useScrollOffsetsDelta(scrollOffsets, dependencies) {
2173
+ if (dependencies === void 0) {
2174
+ dependencies = [];
2175
+ }
2176
+
2177
+ const initialScrollOffsets = React.useRef(null);
2178
+ React.useEffect(() => {
2179
+ initialScrollOffsets.current = null;
2180
+ }, // eslint-disable-next-line react-hooks/exhaustive-deps
2181
+ dependencies);
2182
+ React.useEffect(() => {
2183
+ const hasScrollOffsets = scrollOffsets !== defaultCoordinates;
2184
+
2185
+ if (hasScrollOffsets && !initialScrollOffsets.current) {
2186
+ initialScrollOffsets.current = scrollOffsets;
2187
+ }
2188
+
2189
+ if (!hasScrollOffsets && initialScrollOffsets.current) {
2190
+ initialScrollOffsets.current = null;
2191
+ }
2192
+ }, [scrollOffsets]);
2193
+ return initialScrollOffsets.current ? utilities_esm.subtract(scrollOffsets, initialScrollOffsets.current) : defaultCoordinates;
2194
+ }
2195
+
2196
+ function useSensorSetup(sensors) {
2197
+ React.useEffect(() => {
2198
+ if (!utilities_esm.canUseDOM) {
2199
+ return;
2200
+ }
2201
+
2202
+ const teardownFns = sensors.map(_ref => {
2203
+ let {
2204
+ sensor
2205
+ } = _ref;
2206
+ return sensor.setup == null ? void 0 : sensor.setup();
2207
+ });
2208
+ return () => {
2209
+ for (const teardown of teardownFns) {
2210
+ teardown == null ? void 0 : teardown();
2211
+ }
2212
+ };
2213
+ }, // TO-DO: Sensors length could theoretically change which would not be a valid dependency
2214
+ // eslint-disable-next-line react-hooks/exhaustive-deps
2215
+ sensors.map(_ref2 => {
2216
+ let {
2217
+ sensor
2218
+ } = _ref2;
2219
+ return sensor;
2220
+ }));
2221
+ }
2222
+
2223
+ function useSyntheticListeners(listeners, id) {
2224
+ return React.useMemo(() => {
2225
+ return listeners.reduce((acc, _ref) => {
2226
+ let {
2227
+ eventName,
2228
+ handler
2229
+ } = _ref;
2230
+
2231
+ acc[eventName] = event => {
2232
+ handler(event, id);
2233
+ };
2234
+
2235
+ return acc;
2236
+ }, {});
2237
+ }, [listeners, id]);
2238
+ }
2239
+
2240
+ function useWindowRect(element) {
2241
+ return React.useMemo(() => element ? getWindowClientRect(element) : null, [element]);
2242
+ }
2243
+
2244
+ const defaultValue$2 = [];
2245
+ function useRects(elements, measure) {
2246
+ if (measure === void 0) {
2247
+ measure = getClientRect;
2248
+ }
2249
+
2250
+ const [firstElement] = elements;
2251
+ const windowRect = useWindowRect(firstElement ? utilities_esm.getWindow(firstElement) : null);
2252
+ const [rects, setRects] = React.useState(defaultValue$2);
2253
+
2254
+ function measureRects() {
2255
+ setRects(() => {
2256
+ if (!elements.length) {
2257
+ return defaultValue$2;
2258
+ }
2259
+
2260
+ return elements.map(element => isDocumentScrollingElement(element) ? windowRect : new Rect(measure(element), element));
2261
+ });
2262
+ }
2263
+
2264
+ const resizeObserver = useResizeObserver({
2265
+ callback: measureRects
2266
+ });
2267
+ utilities_esm.useIsomorphicLayoutEffect(() => {
2268
+ resizeObserver == null ? void 0 : resizeObserver.disconnect();
2269
+ measureRects();
2270
+ elements.forEach(element => resizeObserver == null ? void 0 : resizeObserver.observe(element));
2271
+ }, [elements]);
2272
+ return rects;
2273
+ }
2274
+
2275
+ function getMeasurableNode(node) {
2276
+ if (!node) {
2277
+ return null;
2278
+ }
2279
+
2280
+ if (node.children.length > 1) {
2281
+ return node;
2282
+ }
2283
+
2284
+ const firstChild = node.children[0];
2285
+ return utilities_esm.isHTMLElement(firstChild) ? firstChild : node;
2286
+ }
2287
+
2288
+ function useDragOverlayMeasuring(_ref) {
2289
+ let {
2290
+ measure
2291
+ } = _ref;
2292
+ const [rect, setRect] = React.useState(null);
2293
+ const handleResize = React.useCallback(entries => {
2294
+ for (const {
2295
+ target
2296
+ } of entries) {
2297
+ if (utilities_esm.isHTMLElement(target)) {
2298
+ setRect(rect => {
2299
+ const newRect = measure(target);
2300
+ return rect ? { ...rect,
2301
+ width: newRect.width,
2302
+ height: newRect.height
2303
+ } : newRect;
2304
+ });
2305
+ break;
2306
+ }
2307
+ }
2308
+ }, [measure]);
2309
+ const resizeObserver = useResizeObserver({
2310
+ callback: handleResize
2311
+ });
2312
+ const handleNodeChange = React.useCallback(element => {
2313
+ const node = getMeasurableNode(element);
2314
+ resizeObserver == null ? void 0 : resizeObserver.disconnect();
2315
+
2316
+ if (node) {
2317
+ resizeObserver == null ? void 0 : resizeObserver.observe(node);
2318
+ }
2319
+
2320
+ setRect(node ? measure(node) : null);
2321
+ }, [measure, resizeObserver]);
2322
+ const [nodeRef, setRef] = utilities_esm.useNodeRef(handleNodeChange);
2323
+ return React.useMemo(() => ({
2324
+ nodeRef,
2325
+ rect,
2326
+ setRef
2327
+ }), [rect, nodeRef, setRef]);
2328
+ }
2329
+
2330
+ const defaultSensors = [{
2331
+ sensor: PointerSensor,
2332
+ options: {}
2333
+ }, {
2334
+ sensor: KeyboardSensor,
2335
+ options: {}
2336
+ }];
2337
+ const defaultData = {
2338
+ current: {}
2339
+ };
2340
+ const defaultMeasuringConfiguration = {
2341
+ draggable: {
2342
+ measure: getTransformAgnosticClientRect
2343
+ },
2344
+ droppable: {
2345
+ measure: getTransformAgnosticClientRect,
2346
+ strategy: exports.MeasuringStrategy.WhileDragging,
2347
+ frequency: exports.MeasuringFrequency.Optimized
2348
+ },
2349
+ dragOverlay: {
2350
+ measure: getClientRect
2351
+ }
2352
+ };
2353
+
2354
+ class DroppableContainersMap extends Map {
2355
+ get(id) {
2356
+ var _super$get;
2357
+
2358
+ return id != null ? (_super$get = super.get(id)) != null ? _super$get : undefined : undefined;
2359
+ }
2360
+
2361
+ toArray() {
2362
+ return Array.from(this.values());
2363
+ }
2364
+
2365
+ getEnabled() {
2366
+ return this.toArray().filter(_ref => {
2367
+ let {
2368
+ disabled
2369
+ } = _ref;
2370
+ return !disabled;
2371
+ });
2372
+ }
2373
+
2374
+ getNodeFor(id) {
2375
+ var _this$get$node$curren, _this$get;
2376
+
2377
+ return (_this$get$node$curren = (_this$get = this.get(id)) == null ? void 0 : _this$get.node.current) != null ? _this$get$node$curren : undefined;
2378
+ }
2379
+
2380
+ }
2381
+
2382
+ const defaultPublicContext = {
2383
+ activatorEvent: null,
2384
+ active: null,
2385
+ activeNode: null,
2386
+ activeNodeRect: null,
2387
+ collisions: null,
2388
+ containerNodeRect: null,
2389
+ draggableNodes: /*#__PURE__*/new Map(),
2390
+ droppableRects: /*#__PURE__*/new Map(),
2391
+ droppableContainers: /*#__PURE__*/new DroppableContainersMap(),
2392
+ over: null,
2393
+ dragOverlay: {
2394
+ nodeRef: {
2395
+ current: null
2396
+ },
2397
+ rect: null,
2398
+ setRef: noop
2399
+ },
2400
+ scrollableAncestors: [],
2401
+ scrollableAncestorRects: [],
2402
+ measuringConfiguration: defaultMeasuringConfiguration,
2403
+ measureDroppableContainers: noop,
2404
+ windowRect: null,
2405
+ measuringScheduled: false
2406
+ };
2407
+ const defaultInternalContext = {
2408
+ activatorEvent: null,
2409
+ activators: [],
2410
+ active: null,
2411
+ activeNodeRect: null,
2412
+ ariaDescribedById: {
2413
+ draggable: ''
2414
+ },
2415
+ dispatch: noop,
2416
+ draggableNodes: /*#__PURE__*/new Map(),
2417
+ over: null,
2418
+ measureDroppableContainers: noop
2419
+ };
2420
+ const InternalContext = /*#__PURE__*/React.createContext(defaultInternalContext);
2421
+ const PublicContext = /*#__PURE__*/React.createContext(defaultPublicContext);
2422
+
2423
+ function getInitialState() {
2424
+ return {
2425
+ draggable: {
2426
+ active: null,
2427
+ initialCoordinates: {
2428
+ x: 0,
2429
+ y: 0
2430
+ },
2431
+ nodes: new Map(),
2432
+ translate: {
2433
+ x: 0,
2434
+ y: 0
2435
+ }
2436
+ },
2437
+ droppable: {
2438
+ containers: new DroppableContainersMap()
2439
+ }
2440
+ };
2441
+ }
2442
+ function reducer(state, action) {
2443
+ switch (action.type) {
2444
+ case Action.DragStart:
2445
+ return { ...state,
2446
+ draggable: { ...state.draggable,
2447
+ initialCoordinates: action.initialCoordinates,
2448
+ active: action.active
2449
+ }
2450
+ };
2451
+
2452
+ case Action.DragMove:
2453
+ if (state.draggable.active == null) {
2454
+ return state;
2455
+ }
2456
+
2457
+ return { ...state,
2458
+ draggable: { ...state.draggable,
2459
+ translate: {
2460
+ x: action.coordinates.x - state.draggable.initialCoordinates.x,
2461
+ y: action.coordinates.y - state.draggable.initialCoordinates.y
2462
+ }
2463
+ }
2464
+ };
2465
+
2466
+ case Action.DragEnd:
2467
+ case Action.DragCancel:
2468
+ return { ...state,
2469
+ draggable: { ...state.draggable,
2470
+ active: null,
2471
+ initialCoordinates: {
2472
+ x: 0,
2473
+ y: 0
2474
+ },
2475
+ translate: {
2476
+ x: 0,
2477
+ y: 0
2478
+ }
2479
+ }
2480
+ };
2481
+
2482
+ case Action.RegisterDroppable:
2483
+ {
2484
+ const {
2485
+ element
2486
+ } = action;
2487
+ const {
2488
+ id
2489
+ } = element;
2490
+ const containers = new DroppableContainersMap(state.droppable.containers);
2491
+ containers.set(id, element);
2492
+ return { ...state,
2493
+ droppable: { ...state.droppable,
2494
+ containers
2495
+ }
2496
+ };
2497
+ }
2498
+
2499
+ case Action.SetDroppableDisabled:
2500
+ {
2501
+ const {
2502
+ id,
2503
+ key,
2504
+ disabled
2505
+ } = action;
2506
+ const element = state.droppable.containers.get(id);
2507
+
2508
+ if (!element || key !== element.key) {
2509
+ return state;
2510
+ }
2511
+
2512
+ const containers = new DroppableContainersMap(state.droppable.containers);
2513
+ containers.set(id, { ...element,
2514
+ disabled
2515
+ });
2516
+ return { ...state,
2517
+ droppable: { ...state.droppable,
2518
+ containers
2519
+ }
2520
+ };
2521
+ }
2522
+
2523
+ case Action.UnregisterDroppable:
2524
+ {
2525
+ const {
2526
+ id,
2527
+ key
2528
+ } = action;
2529
+ const element = state.droppable.containers.get(id);
2530
+
2531
+ if (!element || key !== element.key) {
2532
+ return state;
2533
+ }
2534
+
2535
+ const containers = new DroppableContainersMap(state.droppable.containers);
2536
+ containers.delete(id);
2537
+ return { ...state,
2538
+ droppable: { ...state.droppable,
2539
+ containers
2540
+ }
2541
+ };
2542
+ }
2543
+
2544
+ default:
2545
+ {
2546
+ return state;
2547
+ }
2548
+ }
2549
+ }
2550
+
2551
+ function RestoreFocus(_ref) {
2552
+ let {
2553
+ disabled
2554
+ } = _ref;
2555
+ const {
2556
+ active,
2557
+ activatorEvent,
2558
+ draggableNodes
2559
+ } = React.useContext(InternalContext);
2560
+ const previousActivatorEvent = utilities_esm.usePrevious(activatorEvent);
2561
+ const previousActiveId = utilities_esm.usePrevious(active == null ? void 0 : active.id); // Restore keyboard focus on the activator node
2562
+
2563
+ React.useEffect(() => {
2564
+ if (disabled) {
2565
+ return;
2566
+ }
2567
+
2568
+ if (!activatorEvent && previousActivatorEvent && previousActiveId != null) {
2569
+ if (!utilities_esm.isKeyboardEvent(previousActivatorEvent)) {
2570
+ return;
2571
+ }
2572
+
2573
+ if (document.activeElement === previousActivatorEvent.target) {
2574
+ // No need to restore focus
2575
+ return;
2576
+ }
2577
+
2578
+ const draggableNode = draggableNodes.get(previousActiveId);
2579
+
2580
+ if (!draggableNode) {
2581
+ return;
2582
+ }
2583
+
2584
+ const {
2585
+ activatorNode,
2586
+ node
2587
+ } = draggableNode;
2588
+
2589
+ if (!activatorNode.current && !node.current) {
2590
+ return;
2591
+ }
2592
+
2593
+ requestAnimationFrame(() => {
2594
+ for (const element of [activatorNode.current, node.current]) {
2595
+ if (!element) {
2596
+ continue;
2597
+ }
2598
+
2599
+ const focusableNode = utilities_esm.findFirstFocusableNode(element);
2600
+
2601
+ if (focusableNode) {
2602
+ focusableNode.focus();
2603
+ break;
2604
+ }
2605
+ }
2606
+ });
2607
+ }
2608
+ }, [activatorEvent, disabled, draggableNodes, previousActiveId, previousActivatorEvent]);
2609
+ return null;
2610
+ }
2611
+
2612
+ function applyModifiers(modifiers, _ref) {
2613
+ let {
2614
+ transform,
2615
+ ...args
2616
+ } = _ref;
2617
+ return modifiers != null && modifiers.length ? modifiers.reduce((accumulator, modifier) => {
2618
+ return modifier({
2619
+ transform: accumulator,
2620
+ ...args
2621
+ });
2622
+ }, transform) : transform;
2623
+ }
2624
+
2625
+ function useMeasuringConfiguration(config) {
2626
+ return React.useMemo(() => ({
2627
+ draggable: { ...defaultMeasuringConfiguration.draggable,
2628
+ ...(config == null ? void 0 : config.draggable)
2629
+ },
2630
+ droppable: { ...defaultMeasuringConfiguration.droppable,
2631
+ ...(config == null ? void 0 : config.droppable)
2632
+ },
2633
+ dragOverlay: { ...defaultMeasuringConfiguration.dragOverlay,
2634
+ ...(config == null ? void 0 : config.dragOverlay)
2635
+ }
2636
+ }), // eslint-disable-next-line react-hooks/exhaustive-deps
2637
+ [config == null ? void 0 : config.draggable, config == null ? void 0 : config.droppable, config == null ? void 0 : config.dragOverlay]);
2638
+ }
2639
+
2640
+ function useLayoutShiftScrollCompensation(_ref) {
2641
+ let {
2642
+ activeNode,
2643
+ measure,
2644
+ initialRect,
2645
+ config = true
2646
+ } = _ref;
2647
+ const initialized = React.useRef(false);
2648
+ const {
2649
+ x,
2650
+ y
2651
+ } = typeof config === 'boolean' ? {
2652
+ x: config,
2653
+ y: config
2654
+ } : config;
2655
+ utilities_esm.useIsomorphicLayoutEffect(() => {
2656
+ const disabled = !x && !y;
2657
+
2658
+ if (disabled || !activeNode) {
2659
+ initialized.current = false;
2660
+ return;
2661
+ }
2662
+
2663
+ if (initialized.current || !initialRect) {
2664
+ // Return early if layout shift scroll compensation was already attempted
2665
+ // or if there is no initialRect to compare to.
2666
+ return;
2667
+ } // Get the most up to date node ref for the active draggable
2668
+
2669
+
2670
+ const node = activeNode == null ? void 0 : activeNode.node.current;
2671
+
2672
+ if (!node || node.isConnected === false) {
2673
+ // Return early if there is no attached node ref or if the node is
2674
+ // disconnected from the document.
2675
+ return;
2676
+ }
2677
+
2678
+ const rect = measure(node);
2679
+ const rectDelta = getRectDelta(rect, initialRect);
2680
+
2681
+ if (!x) {
2682
+ rectDelta.x = 0;
2683
+ }
2684
+
2685
+ if (!y) {
2686
+ rectDelta.y = 0;
2687
+ } // Only perform layout shift scroll compensation once
2688
+
2689
+
2690
+ initialized.current = true;
2691
+
2692
+ if (Math.abs(rectDelta.x) > 0 || Math.abs(rectDelta.y) > 0) {
2693
+ const firstScrollableAncestor = getFirstScrollableAncestor(node);
2694
+
2695
+ if (firstScrollableAncestor) {
2696
+ firstScrollableAncestor.scrollBy({
2697
+ top: rectDelta.y,
2698
+ left: rectDelta.x
2699
+ });
2700
+ }
2701
+ }
2702
+ }, [activeNode, x, y, initialRect, measure]);
2703
+ }
2704
+
2705
+ const ActiveDraggableContext = /*#__PURE__*/React.createContext({ ...defaultCoordinates,
2706
+ scaleX: 1,
2707
+ scaleY: 1
2708
+ });
2709
+ var Status;
2710
+
2711
+ (function (Status) {
2712
+ Status[Status["Uninitialized"] = 0] = "Uninitialized";
2713
+ Status[Status["Initializing"] = 1] = "Initializing";
2714
+ Status[Status["Initialized"] = 2] = "Initialized";
2715
+ })(Status || (Status = {}));
2716
+
2717
+ const DndContext = /*#__PURE__*/React.memo(function DndContext(_ref) {
2718
+ var _sensorContext$curren, _dragOverlay$nodeRef$, _dragOverlay$rect, _over$rect;
2719
+
2720
+ let {
2721
+ id,
2722
+ accessibility,
2723
+ autoScroll = true,
2724
+ children,
2725
+ sensors = defaultSensors,
2726
+ collisionDetection = rectIntersection,
2727
+ measuring,
2728
+ modifiers,
2729
+ ...props
2730
+ } = _ref;
2731
+ const store = React.useReducer(reducer, undefined, getInitialState);
2732
+ const [state, dispatch] = store;
2733
+ const [dispatchMonitorEvent, registerMonitorListener] = useDndMonitorProvider();
2734
+ const [status, setStatus] = React.useState(Status.Uninitialized);
2735
+ const isInitialized = status === Status.Initialized;
2736
+ const {
2737
+ draggable: {
2738
+ active: activeId,
2739
+ nodes: draggableNodes,
2740
+ translate
2741
+ },
2742
+ droppable: {
2743
+ containers: droppableContainers
2744
+ }
2745
+ } = state;
2746
+ const node = activeId != null ? draggableNodes.get(activeId) : null;
2747
+ const activeRects = React.useRef({
2748
+ initial: null,
2749
+ translated: null
2750
+ });
2751
+ const active = React.useMemo(() => {
2752
+ var _node$data;
2753
+
2754
+ return activeId != null ? {
2755
+ id: activeId,
2756
+ // It's possible for the active node to unmount while dragging
2757
+ data: (_node$data = node == null ? void 0 : node.data) != null ? _node$data : defaultData,
2758
+ rect: activeRects
2759
+ } : null;
2760
+ }, [activeId, node]);
2761
+ const activeRef = React.useRef(null);
2762
+ const [activeSensor, setActiveSensor] = React.useState(null);
2763
+ const [activatorEvent, setActivatorEvent] = React.useState(null);
2764
+ const latestProps = utilities_esm.useLatestValue(props, Object.values(props));
2765
+ const draggableDescribedById = utilities_esm.useUniqueId("DndDescribedBy", id);
2766
+ const enabledDroppableContainers = React.useMemo(() => droppableContainers.getEnabled(), [droppableContainers]);
2767
+ const measuringConfiguration = useMeasuringConfiguration(measuring);
2768
+ const {
2769
+ droppableRects,
2770
+ measureDroppableContainers,
2771
+ measuringScheduled
2772
+ } = useDroppableMeasuring(enabledDroppableContainers, {
2773
+ dragging: isInitialized,
2774
+ dependencies: [translate.x, translate.y],
2775
+ config: measuringConfiguration.droppable
2776
+ });
2777
+ const activeNode = useCachedNode(draggableNodes, activeId);
2778
+ const activationCoordinates = React.useMemo(() => activatorEvent ? utilities_esm.getEventCoordinates(activatorEvent) : null, [activatorEvent]);
2779
+ const autoScrollOptions = getAutoScrollerOptions();
2780
+ const initialActiveNodeRect = useInitialRect(activeNode, measuringConfiguration.draggable.measure);
2781
+ useLayoutShiftScrollCompensation({
2782
+ activeNode: activeId != null ? draggableNodes.get(activeId) : null,
2783
+ config: autoScrollOptions.layoutShiftCompensation,
2784
+ initialRect: initialActiveNodeRect,
2785
+ measure: measuringConfiguration.draggable.measure
2786
+ });
2787
+ const activeNodeRect = useRect(activeNode, measuringConfiguration.draggable.measure, initialActiveNodeRect);
2788
+ const containerNodeRect = useRect(activeNode ? activeNode.parentElement : null);
2789
+ const sensorContext = React.useRef({
2790
+ activatorEvent: null,
2791
+ active: null,
2792
+ activeNode,
2793
+ collisionRect: null,
2794
+ collisions: null,
2795
+ droppableRects,
2796
+ draggableNodes,
2797
+ draggingNode: null,
2798
+ draggingNodeRect: null,
2799
+ droppableContainers,
2800
+ over: null,
2801
+ scrollableAncestors: [],
2802
+ scrollAdjustedTranslate: null
2803
+ });
2804
+ const overNode = droppableContainers.getNodeFor((_sensorContext$curren = sensorContext.current.over) == null ? void 0 : _sensorContext$curren.id);
2805
+ const dragOverlay = useDragOverlayMeasuring({
2806
+ measure: measuringConfiguration.dragOverlay.measure
2807
+ }); // Use the rect of the drag overlay if it is mounted
2808
+
2809
+ const draggingNode = (_dragOverlay$nodeRef$ = dragOverlay.nodeRef.current) != null ? _dragOverlay$nodeRef$ : activeNode;
2810
+ const draggingNodeRect = isInitialized ? (_dragOverlay$rect = dragOverlay.rect) != null ? _dragOverlay$rect : activeNodeRect : null;
2811
+ const usesDragOverlay = Boolean(dragOverlay.nodeRef.current && dragOverlay.rect); // The delta between the previous and new position of the draggable node
2812
+ // is only relevant when there is no drag overlay
2813
+
2814
+ const nodeRectDelta = useRectDelta(usesDragOverlay ? null : activeNodeRect); // Get the window rect of the dragging node
2815
+
2816
+ const windowRect = useWindowRect(draggingNode ? utilities_esm.getWindow(draggingNode) : null); // Get scrollable ancestors of the dragging node
2817
+
2818
+ const scrollableAncestors = useScrollableAncestors(isInitialized ? overNode != null ? overNode : activeNode : null);
2819
+ const scrollableAncestorRects = useRects(scrollableAncestors); // Apply modifiers
2820
+
2821
+ const modifiedTranslate = applyModifiers(modifiers, {
2822
+ transform: {
2823
+ x: translate.x - nodeRectDelta.x,
2824
+ y: translate.y - nodeRectDelta.y,
2825
+ scaleX: 1,
2826
+ scaleY: 1
2827
+ },
2828
+ activatorEvent,
2829
+ active,
2830
+ activeNodeRect,
2831
+ containerNodeRect,
2832
+ draggingNodeRect,
2833
+ over: sensorContext.current.over,
2834
+ overlayNodeRect: dragOverlay.rect,
2835
+ scrollableAncestors,
2836
+ scrollableAncestorRects,
2837
+ windowRect
2838
+ });
2839
+ const pointerCoordinates = activationCoordinates ? utilities_esm.add(activationCoordinates, translate) : null;
2840
+ const scrollOffsets = useScrollOffsets(scrollableAncestors); // Represents the scroll delta since dragging was initiated
2841
+
2842
+ const scrollAdjustment = useScrollOffsetsDelta(scrollOffsets); // Represents the scroll delta since the last time the active node rect was measured
2843
+
2844
+ const activeNodeScrollDelta = useScrollOffsetsDelta(scrollOffsets, [activeNodeRect]);
2845
+ const scrollAdjustedTranslate = utilities_esm.add(modifiedTranslate, scrollAdjustment);
2846
+ const collisionRect = draggingNodeRect ? getAdjustedRect(draggingNodeRect, modifiedTranslate) : null;
2847
+ const collisions = active && collisionRect ? collisionDetection({
2848
+ active,
2849
+ collisionRect,
2850
+ droppableRects,
2851
+ droppableContainers: enabledDroppableContainers,
2852
+ pointerCoordinates
2853
+ }) : null;
2854
+ const overId = getFirstCollision(collisions, 'id');
2855
+ const [over, setOver] = React.useState(null); // When there is no drag overlay used, we need to account for the
2856
+ // window scroll delta
2857
+
2858
+ const appliedTranslate = usesDragOverlay ? modifiedTranslate : utilities_esm.add(modifiedTranslate, activeNodeScrollDelta);
2859
+ const transform = adjustScale(appliedTranslate, (_over$rect = over == null ? void 0 : over.rect) != null ? _over$rect : null, activeNodeRect);
2860
+ const activeSensorRef = React.useRef(null);
2861
+ const instantiateSensor = React.useCallback((event, _ref2) => {
2862
+ let {
2863
+ sensor: Sensor,
2864
+ options
2865
+ } = _ref2;
2866
+
2867
+ if (activeRef.current == null) {
2868
+ return;
2869
+ }
2870
+
2871
+ const activeNode = draggableNodes.get(activeRef.current);
2872
+
2873
+ if (!activeNode) {
2874
+ return;
2875
+ }
2876
+
2877
+ const activatorEvent = event.nativeEvent;
2878
+ const sensorInstance = new Sensor({
2879
+ active: activeRef.current,
2880
+ activeNode,
2881
+ event: activatorEvent,
2882
+ options,
2883
+ // Sensors need to be instantiated with refs for arguments that change over time
2884
+ // otherwise they are frozen in time with the stale arguments
2885
+ context: sensorContext,
2886
+
2887
+ onAbort(id) {
2888
+ const draggableNode = draggableNodes.get(id);
2889
+
2890
+ if (!draggableNode) {
2891
+ return;
2892
+ }
2893
+
2894
+ const {
2895
+ onDragAbort
2896
+ } = latestProps.current;
2897
+ const event = {
2898
+ id
2899
+ };
2900
+ onDragAbort == null ? void 0 : onDragAbort(event);
2901
+ dispatchMonitorEvent({
2902
+ type: 'onDragAbort',
2903
+ event
2904
+ });
2905
+ },
2906
+
2907
+ onPending(id, constraint, initialCoordinates, offset) {
2908
+ const draggableNode = draggableNodes.get(id);
2909
+
2910
+ if (!draggableNode) {
2911
+ return;
2912
+ }
2913
+
2914
+ const {
2915
+ onDragPending
2916
+ } = latestProps.current;
2917
+ const event = {
2918
+ id,
2919
+ constraint,
2920
+ initialCoordinates,
2921
+ offset
2922
+ };
2923
+ onDragPending == null ? void 0 : onDragPending(event);
2924
+ dispatchMonitorEvent({
2925
+ type: 'onDragPending',
2926
+ event
2927
+ });
2928
+ },
2929
+
2930
+ onStart(initialCoordinates) {
2931
+ const id = activeRef.current;
2932
+
2933
+ if (id == null) {
2934
+ return;
2935
+ }
2936
+
2937
+ const draggableNode = draggableNodes.get(id);
2938
+
2939
+ if (!draggableNode) {
2940
+ return;
2941
+ }
2942
+
2943
+ const {
2944
+ onDragStart
2945
+ } = latestProps.current;
2946
+ const event = {
2947
+ activatorEvent,
2948
+ active: {
2949
+ id,
2950
+ data: draggableNode.data,
2951
+ rect: activeRects
2952
+ }
2953
+ };
2954
+ ReactDOM.unstable_batchedUpdates(() => {
2955
+ onDragStart == null ? void 0 : onDragStart(event);
2956
+ setStatus(Status.Initializing);
2957
+ dispatch({
2958
+ type: Action.DragStart,
2959
+ initialCoordinates,
2960
+ active: id
2961
+ });
2962
+ dispatchMonitorEvent({
2963
+ type: 'onDragStart',
2964
+ event
2965
+ });
2966
+ setActiveSensor(activeSensorRef.current);
2967
+ setActivatorEvent(activatorEvent);
2968
+ });
2969
+ },
2970
+
2971
+ onMove(coordinates) {
2972
+ dispatch({
2973
+ type: Action.DragMove,
2974
+ coordinates
2975
+ });
2976
+ },
2977
+
2978
+ onEnd: createHandler(Action.DragEnd),
2979
+ onCancel: createHandler(Action.DragCancel)
2980
+ });
2981
+ activeSensorRef.current = sensorInstance;
2982
+
2983
+ function createHandler(type) {
2984
+ return async function handler() {
2985
+ const {
2986
+ active,
2987
+ collisions,
2988
+ over,
2989
+ scrollAdjustedTranslate
2990
+ } = sensorContext.current;
2991
+ let event = null;
2992
+
2993
+ if (active && scrollAdjustedTranslate) {
2994
+ const {
2995
+ cancelDrop
2996
+ } = latestProps.current;
2997
+ event = {
2998
+ activatorEvent,
2999
+ active: active,
3000
+ collisions,
3001
+ delta: scrollAdjustedTranslate,
3002
+ over
3003
+ };
3004
+
3005
+ if (type === Action.DragEnd && typeof cancelDrop === 'function') {
3006
+ const shouldCancel = await Promise.resolve(cancelDrop(event));
3007
+
3008
+ if (shouldCancel) {
3009
+ type = Action.DragCancel;
3010
+ }
3011
+ }
3012
+ }
3013
+
3014
+ activeRef.current = null;
3015
+ ReactDOM.unstable_batchedUpdates(() => {
3016
+ dispatch({
3017
+ type
3018
+ });
3019
+ setStatus(Status.Uninitialized);
3020
+ setOver(null);
3021
+ setActiveSensor(null);
3022
+ setActivatorEvent(null);
3023
+ activeSensorRef.current = null;
3024
+ const eventName = type === Action.DragEnd ? 'onDragEnd' : 'onDragCancel';
3025
+
3026
+ if (event) {
3027
+ const handler = latestProps.current[eventName];
3028
+ handler == null ? void 0 : handler(event);
3029
+ dispatchMonitorEvent({
3030
+ type: eventName,
3031
+ event
3032
+ });
3033
+ }
3034
+ });
3035
+ };
3036
+ }
3037
+ }, // eslint-disable-next-line react-hooks/exhaustive-deps
3038
+ [draggableNodes]);
3039
+ const bindActivatorToSensorInstantiator = React.useCallback((handler, sensor) => {
3040
+ return (event, active) => {
3041
+ const nativeEvent = event.nativeEvent;
3042
+ const activeDraggableNode = draggableNodes.get(active);
3043
+
3044
+ if ( // Another sensor is already instantiating
3045
+ activeRef.current !== null || // No active draggable
3046
+ !activeDraggableNode || // Event has already been captured
3047
+ nativeEvent.dndKit || nativeEvent.defaultPrevented) {
3048
+ return;
3049
+ }
3050
+
3051
+ const activationContext = {
3052
+ active: activeDraggableNode
3053
+ };
3054
+ const shouldActivate = handler(event, sensor.options, activationContext);
3055
+
3056
+ if (shouldActivate === true) {
3057
+ nativeEvent.dndKit = {
3058
+ capturedBy: sensor.sensor
3059
+ };
3060
+ activeRef.current = active;
3061
+ instantiateSensor(event, sensor);
3062
+ }
3063
+ };
3064
+ }, [draggableNodes, instantiateSensor]);
3065
+ const activators = useCombineActivators(sensors, bindActivatorToSensorInstantiator);
3066
+ useSensorSetup(sensors);
3067
+ utilities_esm.useIsomorphicLayoutEffect(() => {
3068
+ if (activeNodeRect && status === Status.Initializing) {
3069
+ setStatus(Status.Initialized);
3070
+ }
3071
+ }, [activeNodeRect, status]);
3072
+ React.useEffect(() => {
3073
+ const {
3074
+ onDragMove
3075
+ } = latestProps.current;
3076
+ const {
3077
+ active,
3078
+ activatorEvent,
3079
+ collisions,
3080
+ over
3081
+ } = sensorContext.current;
3082
+
3083
+ if (!active || !activatorEvent) {
3084
+ return;
3085
+ }
3086
+
3087
+ const event = {
3088
+ active,
3089
+ activatorEvent,
3090
+ collisions,
3091
+ delta: {
3092
+ x: scrollAdjustedTranslate.x,
3093
+ y: scrollAdjustedTranslate.y
3094
+ },
3095
+ over
3096
+ };
3097
+ ReactDOM.unstable_batchedUpdates(() => {
3098
+ onDragMove == null ? void 0 : onDragMove(event);
3099
+ dispatchMonitorEvent({
3100
+ type: 'onDragMove',
3101
+ event
3102
+ });
3103
+ });
3104
+ }, // eslint-disable-next-line react-hooks/exhaustive-deps
3105
+ [scrollAdjustedTranslate.x, scrollAdjustedTranslate.y]);
3106
+ React.useEffect(() => {
3107
+ const {
3108
+ active,
3109
+ activatorEvent,
3110
+ collisions,
3111
+ droppableContainers,
3112
+ scrollAdjustedTranslate
3113
+ } = sensorContext.current;
3114
+
3115
+ if (!active || activeRef.current == null || !activatorEvent || !scrollAdjustedTranslate) {
3116
+ return;
3117
+ }
3118
+
3119
+ const {
3120
+ onDragOver
3121
+ } = latestProps.current;
3122
+ const overContainer = droppableContainers.get(overId);
3123
+ const over = overContainer && overContainer.rect.current ? {
3124
+ id: overContainer.id,
3125
+ rect: overContainer.rect.current,
3126
+ data: overContainer.data,
3127
+ disabled: overContainer.disabled
3128
+ } : null;
3129
+ const event = {
3130
+ active,
3131
+ activatorEvent,
3132
+ collisions,
3133
+ delta: {
3134
+ x: scrollAdjustedTranslate.x,
3135
+ y: scrollAdjustedTranslate.y
3136
+ },
3137
+ over
3138
+ };
3139
+ ReactDOM.unstable_batchedUpdates(() => {
3140
+ setOver(over);
3141
+ onDragOver == null ? void 0 : onDragOver(event);
3142
+ dispatchMonitorEvent({
3143
+ type: 'onDragOver',
3144
+ event
3145
+ });
3146
+ });
3147
+ }, // eslint-disable-next-line react-hooks/exhaustive-deps
3148
+ [overId]);
3149
+ utilities_esm.useIsomorphicLayoutEffect(() => {
3150
+ sensorContext.current = {
3151
+ activatorEvent,
3152
+ active,
3153
+ activeNode,
3154
+ collisionRect,
3155
+ collisions,
3156
+ droppableRects,
3157
+ draggableNodes,
3158
+ draggingNode,
3159
+ draggingNodeRect,
3160
+ droppableContainers,
3161
+ over,
3162
+ scrollableAncestors,
3163
+ scrollAdjustedTranslate
3164
+ };
3165
+ activeRects.current = {
3166
+ initial: draggingNodeRect,
3167
+ translated: collisionRect
3168
+ };
3169
+ }, [active, activeNode, collisions, collisionRect, draggableNodes, draggingNode, draggingNodeRect, droppableRects, droppableContainers, over, scrollableAncestors, scrollAdjustedTranslate]);
3170
+ useAutoScroller({ ...autoScrollOptions,
3171
+ delta: translate,
3172
+ draggingRect: collisionRect,
3173
+ pointerCoordinates,
3174
+ scrollableAncestors,
3175
+ scrollableAncestorRects
3176
+ });
3177
+ const publicContext = React.useMemo(() => {
3178
+ const context = {
3179
+ active,
3180
+ activeNode,
3181
+ activeNodeRect,
3182
+ activatorEvent,
3183
+ collisions,
3184
+ containerNodeRect,
3185
+ dragOverlay,
3186
+ draggableNodes,
3187
+ droppableContainers,
3188
+ droppableRects,
3189
+ over,
3190
+ measureDroppableContainers,
3191
+ scrollableAncestors,
3192
+ scrollableAncestorRects,
3193
+ measuringConfiguration,
3194
+ measuringScheduled,
3195
+ windowRect
3196
+ };
3197
+ return context;
3198
+ }, [active, activeNode, activeNodeRect, activatorEvent, collisions, containerNodeRect, dragOverlay, draggableNodes, droppableContainers, droppableRects, over, measureDroppableContainers, scrollableAncestors, scrollableAncestorRects, measuringConfiguration, measuringScheduled, windowRect]);
3199
+ const internalContext = React.useMemo(() => {
3200
+ const context = {
3201
+ activatorEvent,
3202
+ activators,
3203
+ active,
3204
+ activeNodeRect,
3205
+ ariaDescribedById: {
3206
+ draggable: draggableDescribedById
3207
+ },
3208
+ dispatch,
3209
+ draggableNodes,
3210
+ over,
3211
+ measureDroppableContainers
3212
+ };
3213
+ return context;
3214
+ }, [activatorEvent, activators, active, activeNodeRect, dispatch, draggableDescribedById, draggableNodes, over, measureDroppableContainers]);
3215
+ return React.createElement(DndMonitorContext.Provider, {
3216
+ value: registerMonitorListener
3217
+ }, React.createElement(InternalContext.Provider, {
3218
+ value: internalContext
3219
+ }, React.createElement(PublicContext.Provider, {
3220
+ value: publicContext
3221
+ }, React.createElement(ActiveDraggableContext.Provider, {
3222
+ value: transform
3223
+ }, children)), React.createElement(RestoreFocus, {
3224
+ disabled: (accessibility == null ? void 0 : accessibility.restoreFocus) === false
3225
+ })), React.createElement(Accessibility, { ...accessibility,
3226
+ hiddenTextDescribedById: draggableDescribedById
3227
+ }));
3228
+
3229
+ function getAutoScrollerOptions() {
3230
+ const activeSensorDisablesAutoscroll = (activeSensor == null ? void 0 : activeSensor.autoScrollEnabled) === false;
3231
+ const autoScrollGloballyDisabled = typeof autoScroll === 'object' ? autoScroll.enabled === false : autoScroll === false;
3232
+ const enabled = isInitialized && !activeSensorDisablesAutoscroll && !autoScrollGloballyDisabled;
3233
+
3234
+ if (typeof autoScroll === 'object') {
3235
+ return { ...autoScroll,
3236
+ enabled
3237
+ };
3238
+ }
3239
+
3240
+ return {
3241
+ enabled
3242
+ };
3243
+ }
3244
+ });
3245
+
3246
+ const NullContext = /*#__PURE__*/React.createContext(null);
3247
+ const defaultRole = 'button';
3248
+ const ID_PREFIX = 'Draggable';
3249
+ function useDraggable(_ref) {
3250
+ let {
3251
+ id,
3252
+ data,
3253
+ disabled = false,
3254
+ attributes
3255
+ } = _ref;
3256
+ const key = utilities_esm.useUniqueId(ID_PREFIX);
3257
+ const {
3258
+ activators,
3259
+ activatorEvent,
3260
+ active,
3261
+ activeNodeRect,
3262
+ ariaDescribedById,
3263
+ draggableNodes,
3264
+ over
3265
+ } = React.useContext(InternalContext);
3266
+ const {
3267
+ role = defaultRole,
3268
+ roleDescription = 'draggable',
3269
+ tabIndex = 0
3270
+ } = attributes != null ? attributes : {};
3271
+ const isDragging = (active == null ? void 0 : active.id) === id;
3272
+ const transform = React.useContext(isDragging ? ActiveDraggableContext : NullContext);
3273
+ const [node, setNodeRef] = utilities_esm.useNodeRef();
3274
+ const [activatorNode, setActivatorNodeRef] = utilities_esm.useNodeRef();
3275
+ const listeners = useSyntheticListeners(activators, id);
3276
+ const dataRef = utilities_esm.useLatestValue(data);
3277
+ utilities_esm.useIsomorphicLayoutEffect(() => {
3278
+ draggableNodes.set(id, {
3279
+ id,
3280
+ key,
3281
+ node,
3282
+ activatorNode,
3283
+ data: dataRef
3284
+ });
3285
+ return () => {
3286
+ const node = draggableNodes.get(id);
3287
+
3288
+ if (node && node.key === key) {
3289
+ draggableNodes.delete(id);
3290
+ }
3291
+ };
3292
+ }, // eslint-disable-next-line react-hooks/exhaustive-deps
3293
+ [draggableNodes, id]);
3294
+ const memoizedAttributes = React.useMemo(() => ({
3295
+ role,
3296
+ tabIndex,
3297
+ 'aria-disabled': disabled,
3298
+ 'aria-pressed': isDragging && role === defaultRole ? true : undefined,
3299
+ 'aria-roledescription': roleDescription,
3300
+ 'aria-describedby': ariaDescribedById.draggable
3301
+ }), [disabled, role, tabIndex, isDragging, roleDescription, ariaDescribedById.draggable]);
3302
+ return {
3303
+ active,
3304
+ activatorEvent,
3305
+ activeNodeRect,
3306
+ attributes: memoizedAttributes,
3307
+ isDragging,
3308
+ listeners: disabled ? undefined : listeners,
3309
+ node,
3310
+ over,
3311
+ setNodeRef,
3312
+ setActivatorNodeRef,
3313
+ transform
3314
+ };
3315
+ }
3316
+
3317
+ function useDndContext() {
3318
+ return React.useContext(PublicContext);
3319
+ }
3320
+
3321
+ const ID_PREFIX$1 = 'Droppable';
3322
+ const defaultResizeObserverConfig = {
3323
+ timeout: 25
3324
+ };
3325
+ function useDroppable(_ref) {
3326
+ let {
3327
+ data,
3328
+ disabled = false,
3329
+ id,
3330
+ resizeObserverConfig
3331
+ } = _ref;
3332
+ const key = utilities_esm.useUniqueId(ID_PREFIX$1);
3333
+ const {
3334
+ active,
3335
+ dispatch,
3336
+ over,
3337
+ measureDroppableContainers
3338
+ } = React.useContext(InternalContext);
3339
+ const previous = React.useRef({
3340
+ disabled
3341
+ });
3342
+ const resizeObserverConnected = React.useRef(false);
3343
+ const rect = React.useRef(null);
3344
+ const callbackId = React.useRef(null);
3345
+ const {
3346
+ disabled: resizeObserverDisabled,
3347
+ updateMeasurementsFor,
3348
+ timeout: resizeObserverTimeout
3349
+ } = { ...defaultResizeObserverConfig,
3350
+ ...resizeObserverConfig
3351
+ };
3352
+ const ids = utilities_esm.useLatestValue(updateMeasurementsFor != null ? updateMeasurementsFor : id);
3353
+ const handleResize = React.useCallback(() => {
3354
+ if (!resizeObserverConnected.current) {
3355
+ // ResizeObserver invokes the `handleResize` callback as soon as `observe` is called,
3356
+ // assuming the element is rendered and displayed.
3357
+ resizeObserverConnected.current = true;
3358
+ return;
3359
+ }
3360
+
3361
+ if (callbackId.current != null) {
3362
+ clearTimeout(callbackId.current);
3363
+ }
3364
+
3365
+ callbackId.current = setTimeout(() => {
3366
+ measureDroppableContainers(Array.isArray(ids.current) ? ids.current : [ids.current]);
3367
+ callbackId.current = null;
3368
+ }, resizeObserverTimeout);
3369
+ }, //eslint-disable-next-line react-hooks/exhaustive-deps
3370
+ [resizeObserverTimeout]);
3371
+ const resizeObserver = useResizeObserver({
3372
+ callback: handleResize,
3373
+ disabled: resizeObserverDisabled || !active
3374
+ });
3375
+ const handleNodeChange = React.useCallback((newElement, previousElement) => {
3376
+ if (!resizeObserver) {
3377
+ return;
3378
+ }
3379
+
3380
+ if (previousElement) {
3381
+ resizeObserver.unobserve(previousElement);
3382
+ resizeObserverConnected.current = false;
3383
+ }
3384
+
3385
+ if (newElement) {
3386
+ resizeObserver.observe(newElement);
3387
+ }
3388
+ }, [resizeObserver]);
3389
+ const [nodeRef, setNodeRef] = utilities_esm.useNodeRef(handleNodeChange);
3390
+ const dataRef = utilities_esm.useLatestValue(data);
3391
+ React.useEffect(() => {
3392
+ if (!resizeObserver || !nodeRef.current) {
3393
+ return;
3394
+ }
3395
+
3396
+ resizeObserver.disconnect();
3397
+ resizeObserverConnected.current = false;
3398
+ resizeObserver.observe(nodeRef.current);
3399
+ }, [nodeRef, resizeObserver]);
3400
+ React.useEffect(() => {
3401
+ dispatch({
3402
+ type: Action.RegisterDroppable,
3403
+ element: {
3404
+ id,
3405
+ key,
3406
+ disabled,
3407
+ node: nodeRef,
3408
+ rect,
3409
+ data: dataRef
3410
+ }
3411
+ });
3412
+ return () => dispatch({
3413
+ type: Action.UnregisterDroppable,
3414
+ key,
3415
+ id
3416
+ });
3417
+ }, // eslint-disable-next-line react-hooks/exhaustive-deps
3418
+ [id]);
3419
+ React.useEffect(() => {
3420
+ if (disabled !== previous.current.disabled) {
3421
+ dispatch({
3422
+ type: Action.SetDroppableDisabled,
3423
+ id,
3424
+ key,
3425
+ disabled
3426
+ });
3427
+ previous.current.disabled = disabled;
3428
+ }
3429
+ }, [id, key, disabled, dispatch]);
3430
+ return {
3431
+ active,
3432
+ rect,
3433
+ isOver: (over == null ? void 0 : over.id) === id,
3434
+ node: nodeRef,
3435
+ over,
3436
+ setNodeRef
3437
+ };
3438
+ }
3439
+
3440
+ exports.DndContext = DndContext;
3441
+ exports.KeyboardSensor = KeyboardSensor;
3442
+ exports.MouseSensor = MouseSensor;
3443
+ exports.PointerSensor = PointerSensor;
3444
+ exports.TouchSensor = TouchSensor;
3445
+ exports.applyModifiers = applyModifiers;
3446
+ exports.closestCenter = closestCenter;
3447
+ exports.defaultAnnouncements = defaultAnnouncements;
3448
+ exports.defaultCoordinates = defaultCoordinates;
3449
+ exports.defaultKeyboardCoordinateGetter = defaultKeyboardCoordinateGetter;
3450
+ exports.defaultScreenReaderInstructions = defaultScreenReaderInstructions;
3451
+ exports.getClientRect = getClientRect;
3452
+ exports.getFirstCollision = getFirstCollision;
3453
+ exports.getScrollableAncestors = getScrollableAncestors;
3454
+ exports.rectIntersection = rectIntersection;
3455
+ exports.useDndContext = useDndContext;
3456
+ exports.useDndMonitor = useDndMonitor;
3457
+ exports.useDraggable = useDraggable;
3458
+ exports.useDroppable = useDroppable;
3459
+ exports.useSensor = useSensor;
3460
+ exports.useSensors = useSensors;
3461
+ //# sourceMappingURL=core.esm.js.map