@ck-ui/component-library 0.1.5 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (604) hide show
  1. package/README.md +152 -0
  2. package/dist/DropdownFooter-C20yRiDR.js +84 -0
  3. package/dist/Grow-D08Iq1uH.js +794 -0
  4. package/dist/IconSlot-CFKmSU2_.js +33 -0
  5. package/dist/MenuItem-DlaRT10y.js +139 -0
  6. package/dist/OptionList-BNaH2PnX.js +951 -0
  7. package/dist/Select-Cw96VEHD.js +6411 -0
  8. package/dist/_commonjsHelpers-C6fGbg64.js +6 -0
  9. package/dist/assets/DateRangePicker-BKND6jiD.css +1 -0
  10. package/dist/assets/DropdownFooter-C7Cml53c.css +1 -0
  11. package/dist/assets/IconSlot-CLpdZgmb.css +1 -0
  12. package/dist/assets/ReactToastify-tlSLHgLC.css +1 -0
  13. package/dist/assets/ToastContent-PGkBxPUW.css +1 -0
  14. package/dist/assets/index-BD0OawaZ.css +1 -0
  15. package/dist/assets/index-BLz-9Nuk.css +1 -0
  16. package/dist/assets/index-BOXxnraF.css +1 -0
  17. package/dist/assets/index-BQ0m7FKV.css +1 -0
  18. package/dist/assets/index-BgFw4AMY.css +1 -0
  19. package/dist/assets/index-BkNXS5fR.css +1 -0
  20. package/dist/assets/index-BmQOtMhS.css +1 -0
  21. package/dist/assets/index-Bo4Tx8px.css +1 -0
  22. package/dist/assets/index-BpRKr5z7.css +1 -0
  23. package/dist/assets/index-CNGtOMLm.css +1 -0
  24. package/dist/assets/index-CaWXKQ7j.css +1 -0
  25. package/dist/assets/index-CiQd_iRw.css +1 -0
  26. package/dist/assets/index-D2HelNRV.css +1 -0
  27. package/dist/assets/index-DDdi2wxl.css +1 -0
  28. package/dist/assets/index-DNhNBxL9.css +1 -0
  29. package/dist/assets/index-DewFIgpp.css +1 -0
  30. package/dist/assets/index-Dudb2XKF.css +1 -0
  31. package/dist/assets/index-DvlnFLG-.css +1 -0
  32. package/dist/assets/index-YHUWVH17.css +1 -0
  33. package/dist/assets/index-_Kh8p9R0.css +1 -0
  34. package/dist/assets/index-nXJu3Pq0.css +1 -0
  35. package/dist/assets/index-rrYSS2rl.css +1 -0
  36. package/dist/assets/index-w7AdSPwF.css +1 -0
  37. package/dist/assets/main-Dv8QUU_o.css +1 -0
  38. package/dist/assets/styles-BA66-SUu.css +1 -0
  39. package/dist/assets/styles-BS1nwHmS.css +1 -0
  40. package/dist/assets/styles-BTZL03H2.css +1 -0
  41. package/dist/assets/styles-Be-tqCP9.css +1 -0
  42. package/dist/assets/styles-CbbBUzsN.css +1 -0
  43. package/dist/assets/styles-CflOKRvX.css +1 -0
  44. package/dist/assets/styles-Chhklrps.css +1 -0
  45. package/dist/assets/styles-CwEfypOd.css +1 -0
  46. package/dist/assets/styles-D8sahtFb.css +1 -0
  47. package/dist/assets/styles-DAFhOzfn.css +1 -0
  48. package/dist/assets/theme-gJHYUL9y.css +1 -0
  49. package/dist/cancel-BAgTEOGD.js +7 -0
  50. package/dist/chevron-down-Cm9R64Fe.js +5 -0
  51. package/dist/clsx-OuTLNxxd.js +16 -0
  52. package/dist/components/Avatar/_types/avatar.types.d.ts +15 -0
  53. package/dist/components/Avatar/_types/avatar.types.d.ts.map +1 -0
  54. package/dist/components/Avatar/_types/avatar.types.js +12 -0
  55. package/dist/components/Avatar/_utils/avatar.utils.d.ts +4 -0
  56. package/dist/components/Avatar/_utils/avatar.utils.d.ts.map +1 -0
  57. package/dist/components/Avatar/_utils/avatar.utils.js +20 -0
  58. package/dist/components/Avatar/index.d.ts +6 -0
  59. package/dist/components/Avatar/index.d.ts.map +1 -0
  60. package/dist/components/Avatar/index.js +45 -0
  61. package/dist/components/Breadcrumb/_helpers/Breadcrumb.d.ts +3 -0
  62. package/dist/components/Breadcrumb/_helpers/Breadcrumb.d.ts.map +1 -0
  63. package/dist/components/Breadcrumb/_helpers/Breadcrumb.js +70 -0
  64. package/dist/components/Breadcrumb/_helpers/DefaultLink.d.ts +3 -0
  65. package/dist/components/Breadcrumb/_helpers/DefaultLink.d.ts.map +1 -0
  66. package/dist/components/Breadcrumb/_helpers/DefaultLink.js +23 -0
  67. package/dist/components/Breadcrumb/_types/breadcrumb.types.d.ts +47 -0
  68. package/dist/components/Breadcrumb/_types/breadcrumb.types.d.ts.map +1 -0
  69. package/dist/components/Breadcrumb/_types/breadcrumb.types.js +1 -0
  70. package/dist/components/Breadcrumb/_utils/handleOutsideClick.d.ts +2 -0
  71. package/dist/components/Breadcrumb/_utils/handleOutsideClick.d.ts.map +1 -0
  72. package/dist/components/Breadcrumb/_utils/handleOutsideClick.js +11 -0
  73. package/dist/components/Breadcrumb/_utils/navigateHandler.d.ts +3 -0
  74. package/dist/components/Breadcrumb/_utils/navigateHandler.d.ts.map +1 -0
  75. package/dist/components/Breadcrumb/_utils/navigateHandler.js +6 -0
  76. package/dist/components/Breadcrumb/_utils/truncatedLabel.d.ts +2 -0
  77. package/dist/components/Breadcrumb/_utils/truncatedLabel.d.ts.map +1 -0
  78. package/dist/components/Breadcrumb/_utils/truncatedLabel.js +4 -0
  79. package/dist/components/Breadcrumb/index.d.ts +4 -0
  80. package/dist/components/Breadcrumb/index.d.ts.map +1 -0
  81. package/dist/components/Breadcrumb/index.js +86 -0
  82. package/dist/components/Button/index.js +1 -1
  83. package/dist/components/CKButton/_helper/ComboLayout.d.ts +13 -0
  84. package/dist/components/CKButton/_helper/ComboLayout.d.ts.map +1 -0
  85. package/dist/components/CKButton/_helper/ComboLayout.js +30 -0
  86. package/dist/components/CKButton/_helper/IconSlot.d.ts +7 -0
  87. package/dist/components/CKButton/_helper/IconSlot.d.ts.map +1 -0
  88. package/dist/components/CKButton/_helper/IconSlot.js +5 -0
  89. package/dist/components/CKButton/_helper/StandardLayout.d.ts +9 -0
  90. package/dist/components/CKButton/_helper/StandardLayout.d.ts.map +1 -0
  91. package/dist/components/CKButton/_helper/StandardLayout.js +17 -0
  92. package/dist/components/CKButton/_types/button.types.d.ts +28 -0
  93. package/dist/components/CKButton/_types/button.types.d.ts.map +1 -0
  94. package/dist/components/CKButton/_types/button.types.js +1 -0
  95. package/dist/components/CKButton/constants.d.ts +28 -0
  96. package/dist/components/CKButton/constants.d.ts.map +1 -0
  97. package/dist/components/CKButton/constants.js +30 -0
  98. package/dist/components/CKButton/index.d.ts +3 -0
  99. package/dist/components/CKButton/index.d.ts.map +1 -0
  100. package/dist/components/CKButton/index.js +91 -0
  101. package/dist/components/CKCheckbox/_types/type.d.ts +13 -0
  102. package/dist/components/CKCheckbox/_types/type.d.ts.map +1 -0
  103. package/dist/components/CKCheckbox/_types/type.js +1 -0
  104. package/dist/components/CKCheckbox/index.d.ts +3 -0
  105. package/dist/components/CKCheckbox/index.d.ts.map +1 -0
  106. package/dist/components/CKCheckbox/index.js +65 -0
  107. package/dist/components/CKTag/_types/type.d.ts +15 -0
  108. package/dist/components/CKTag/_types/type.d.ts.map +1 -0
  109. package/dist/components/CKTag/_types/type.js +11 -0
  110. package/dist/components/CKTag/index.d.ts +3 -0
  111. package/dist/components/CKTag/index.d.ts.map +1 -0
  112. package/dist/components/CKTag/index.js +50 -0
  113. package/dist/components/CardBox/_types/cardBox.types.d.ts +10 -0
  114. package/dist/components/CardBox/_types/cardBox.types.d.ts.map +1 -0
  115. package/dist/components/CardBox/_types/cardBox.types.js +1 -0
  116. package/dist/components/CardBox/index.d.ts +3 -0
  117. package/dist/components/CardBox/index.d.ts.map +1 -0
  118. package/dist/components/CardBox/index.js +30 -0
  119. package/dist/components/Checkbox/index.js +1 -1
  120. package/dist/components/CostComparatorTable/_helpers/CostCell.d.ts +36 -0
  121. package/dist/components/CostComparatorTable/_helpers/CostCell.d.ts.map +1 -0
  122. package/dist/components/CostComparatorTable/_helpers/CostCell.js +52 -0
  123. package/dist/components/CostComparatorTable/_helpers/HeaderCheckbox.d.ts +14 -0
  124. package/dist/components/CostComparatorTable/_helpers/HeaderCheckbox.d.ts.map +1 -0
  125. package/dist/components/CostComparatorTable/_helpers/HeaderCheckbox.js +19 -0
  126. package/dist/components/CostComparatorTable/_types/costComparatorTable.types.d.ts +83 -0
  127. package/dist/components/CostComparatorTable/_types/costComparatorTable.types.d.ts.map +1 -0
  128. package/dist/components/CostComparatorTable/_types/costComparatorTable.types.js +1 -0
  129. package/dist/components/CostComparatorTable/_utils/costComparator.utils.d.ts +22 -0
  130. package/dist/components/CostComparatorTable/_utils/costComparator.utils.d.ts.map +1 -0
  131. package/dist/components/CostComparatorTable/_utils/costComparator.utils.js +50 -0
  132. package/dist/components/CostComparatorTable/index.d.ts +23 -0
  133. package/dist/components/CostComparatorTable/index.d.ts.map +1 -0
  134. package/dist/components/CostComparatorTable/index.js +177 -0
  135. package/dist/components/DateRangePicker/DateRangePicker.d.ts +5 -0
  136. package/dist/components/DateRangePicker/DateRangePicker.d.ts.map +1 -0
  137. package/dist/components/DateRangePicker/DateRangePicker.js +6027 -0
  138. package/dist/components/DateRangePicker/_types/dateRangePicker.types.d.ts +41 -0
  139. package/dist/components/DateRangePicker/_types/dateRangePicker.types.d.ts.map +1 -0
  140. package/dist/components/DateRangePicker/_types/dateRangePicker.types.js +1 -0
  141. package/dist/components/DateRangePicker/helper/util.d.ts +26 -0
  142. package/dist/components/DateRangePicker/helper/util.d.ts.map +1 -0
  143. package/dist/components/DateRangePicker/helper/util.js +54 -0
  144. package/dist/components/DeviationTag/_types/type.d.ts +11 -0
  145. package/dist/components/DeviationTag/_types/type.d.ts.map +1 -0
  146. package/dist/components/DeviationTag/_types/type.js +1 -0
  147. package/dist/components/DeviationTag/index.d.ts +3 -0
  148. package/dist/components/DeviationTag/index.d.ts.map +1 -0
  149. package/dist/components/DeviationTag/index.js +74 -0
  150. package/dist/components/EmptyState/_types/emptyState.types.d.ts +17 -0
  151. package/dist/components/EmptyState/_types/emptyState.types.d.ts.map +1 -0
  152. package/dist/components/EmptyState/_types/emptyState.types.js +1 -0
  153. package/dist/components/EmptyState/index.d.ts +3 -0
  154. package/dist/components/EmptyState/index.d.ts.map +1 -0
  155. package/dist/components/EmptyState/index.js +26 -0
  156. package/dist/components/ErrorPage/_types/errorPage.types.d.ts +4 -0
  157. package/dist/components/ErrorPage/_types/errorPage.types.d.ts.map +1 -0
  158. package/dist/components/ErrorPage/_types/errorPage.types.js +1 -0
  159. package/dist/components/ErrorPage/constant/errorConstant.d.ts +12 -0
  160. package/dist/components/ErrorPage/constant/errorConstant.d.ts.map +1 -0
  161. package/dist/components/ErrorPage/constant/errorConstant.js +29 -0
  162. package/dist/components/ErrorPage/index.d.ts +3 -0
  163. package/dist/components/ErrorPage/index.d.ts.map +1 -0
  164. package/dist/components/ErrorPage/index.js +29 -0
  165. package/dist/components/FusionChart/_config/builders.d.ts +10 -0
  166. package/dist/components/FusionChart/_config/builders.d.ts.map +1 -0
  167. package/dist/components/FusionChart/_config/builders.js +573 -0
  168. package/dist/components/FusionChart/_config/events.d.ts +7 -0
  169. package/dist/components/FusionChart/_config/events.d.ts.map +1 -0
  170. package/dist/components/FusionChart/_config/events.js +40 -0
  171. package/dist/components/FusionChart/_config/helpers.d.ts +288 -0
  172. package/dist/components/FusionChart/_config/helpers.d.ts.map +1 -0
  173. package/dist/components/FusionChart/_config/helpers.js +452 -0
  174. package/dist/components/FusionChart/_constant/chartTestData.d.ts +33 -0
  175. package/dist/components/FusionChart/_constant/chartTestData.d.ts.map +1 -0
  176. package/dist/components/FusionChart/_constant/chartTestData.js +460 -0
  177. package/dist/components/FusionChart/_constant/constants.d.ts +16 -0
  178. package/dist/components/FusionChart/_constant/constants.d.ts.map +1 -0
  179. package/dist/components/FusionChart/_constant/constants.js +18 -0
  180. package/dist/components/FusionChart/_helpers/doughnutHelper.d.ts +17 -0
  181. package/dist/components/FusionChart/_helpers/doughnutHelper.d.ts.map +1 -0
  182. package/dist/components/FusionChart/_helpers/doughnutHelper.js +57 -0
  183. package/dist/components/FusionChart/_helpers/multiAxisHelper.d.ts +8 -0
  184. package/dist/components/FusionChart/_helpers/multiAxisHelper.d.ts.map +1 -0
  185. package/dist/components/FusionChart/_helpers/multiAxisHelper.js +21 -0
  186. package/dist/components/FusionChart/_helpers/multiLineHelper.d.ts +8 -0
  187. package/dist/components/FusionChart/_helpers/multiLineHelper.d.ts.map +1 -0
  188. package/dist/components/FusionChart/_helpers/multiLineHelper.js +23 -0
  189. package/dist/components/FusionChart/_types/fusionChart.types.d.ts +128 -0
  190. package/dist/components/FusionChart/_types/fusionChart.types.d.ts.map +1 -0
  191. package/dist/components/FusionChart/_types/fusionChart.types.js +1 -0
  192. package/dist/components/FusionChart/_utils/chartHelpers.d.ts +45 -0
  193. package/dist/components/FusionChart/_utils/chartHelpers.d.ts.map +1 -0
  194. package/dist/components/FusionChart/_utils/chartHelpers.js +25 -0
  195. package/dist/components/FusionChart/index.d.ts +7 -0
  196. package/dist/components/FusionChart/index.d.ts.map +1 -0
  197. package/dist/components/FusionChart/index.js +1043 -0
  198. package/dist/components/GroupedMultiSelect/_helpers/DropdownFooter.d.ts +4 -0
  199. package/dist/components/GroupedMultiSelect/_helpers/DropdownFooter.d.ts.map +1 -0
  200. package/dist/components/GroupedMultiSelect/_helpers/DropdownFooter.js +62 -0
  201. package/dist/components/GroupedMultiSelect/_helpers/MenuItem.d.ts +4 -0
  202. package/dist/components/GroupedMultiSelect/_helpers/MenuItem.d.ts.map +1 -0
  203. package/dist/components/GroupedMultiSelect/_helpers/MenuItem.js +28 -0
  204. package/dist/components/GroupedMultiSelect/_helpers/MenuList.d.ts +4 -0
  205. package/dist/components/GroupedMultiSelect/_helpers/MenuList.d.ts.map +1 -0
  206. package/dist/components/GroupedMultiSelect/_helpers/MenuList.js +7 -0
  207. package/dist/components/GroupedMultiSelect/_helpers/OptionRow.d.ts +4 -0
  208. package/dist/components/GroupedMultiSelect/_helpers/OptionRow.d.ts.map +1 -0
  209. package/dist/components/GroupedMultiSelect/_helpers/OptionRow.js +37 -0
  210. package/dist/components/GroupedMultiSelect/_helpers/OptionsList.d.ts +4 -0
  211. package/dist/components/GroupedMultiSelect/_helpers/OptionsList.d.ts.map +1 -0
  212. package/dist/components/GroupedMultiSelect/_helpers/OptionsList.js +81 -0
  213. package/dist/components/GroupedMultiSelect/_helpers/SearchResult.d.ts +4 -0
  214. package/dist/components/GroupedMultiSelect/_helpers/SearchResult.d.ts.map +1 -0
  215. package/dist/components/GroupedMultiSelect/_helpers/SearchResult.js +37 -0
  216. package/dist/components/GroupedMultiSelect/_helpers/TagContent.d.ts +5 -0
  217. package/dist/components/GroupedMultiSelect/_helpers/TagContent.d.ts.map +1 -0
  218. package/dist/components/GroupedMultiSelect/_helpers/TagContent.js +47 -0
  219. package/dist/components/GroupedMultiSelect/_helpers/TriggerButton.d.ts +4 -0
  220. package/dist/components/GroupedMultiSelect/_helpers/TriggerButton.d.ts.map +1 -0
  221. package/dist/components/GroupedMultiSelect/_helpers/TriggerButton.js +73 -0
  222. package/dist/components/GroupedMultiSelect/_types/type.d.ts +113 -0
  223. package/dist/components/GroupedMultiSelect/_types/type.d.ts.map +1 -0
  224. package/dist/components/GroupedMultiSelect/_types/type.js +1 -0
  225. package/dist/components/GroupedMultiSelect/_utils/computeApplyDisabled.d.ts +7 -0
  226. package/dist/components/GroupedMultiSelect/_utils/computeApplyDisabled.d.ts.map +1 -0
  227. package/dist/components/GroupedMultiSelect/_utils/computeApplyDisabled.js +8 -0
  228. package/dist/components/GroupedMultiSelect/_utils/filterSeachedGroups.d.ts +3 -0
  229. package/dist/components/GroupedMultiSelect/_utils/filterSeachedGroups.d.ts.map +1 -0
  230. package/dist/components/GroupedMultiSelect/_utils/filterSeachedGroups.js +12 -0
  231. package/dist/components/GroupedMultiSelect/_utils/getDefaultSelected.d.ts +6 -0
  232. package/dist/components/GroupedMultiSelect/_utils/getDefaultSelected.d.ts.map +1 -0
  233. package/dist/components/GroupedMultiSelect/_utils/getDefaultSelected.js +8 -0
  234. package/dist/components/GroupedMultiSelect/_utils/getResponsePayload.d.ts +6 -0
  235. package/dist/components/GroupedMultiSelect/_utils/getResponsePayload.d.ts.map +1 -0
  236. package/dist/components/GroupedMultiSelect/_utils/getResponsePayload.js +9 -0
  237. package/dist/components/GroupedMultiSelect/_utils/selectAllOptions.d.ts +6 -0
  238. package/dist/components/GroupedMultiSelect/_utils/selectAllOptions.d.ts.map +1 -0
  239. package/dist/components/GroupedMultiSelect/_utils/selectAllOptions.js +8 -0
  240. package/dist/components/GroupedMultiSelect/data.d.ts +16 -0
  241. package/dist/components/GroupedMultiSelect/data.d.ts.map +1 -0
  242. package/dist/components/GroupedMultiSelect/data.js +45 -0
  243. package/dist/components/GroupedMultiSelect/index.d.ts +4 -0
  244. package/dist/components/GroupedMultiSelect/index.d.ts.map +1 -0
  245. package/dist/components/GroupedMultiSelect/index.js +176 -0
  246. package/dist/components/GroupedSingleSelect/_helpers/DropdownFooter.d.ts +4 -0
  247. package/dist/components/GroupedSingleSelect/_helpers/DropdownFooter.d.ts.map +1 -0
  248. package/dist/components/GroupedSingleSelect/_helpers/DropdownFooter.js +62 -0
  249. package/dist/components/GroupedSingleSelect/_helpers/OptionRow.d.ts +4 -0
  250. package/dist/components/GroupedSingleSelect/_helpers/OptionRow.d.ts.map +1 -0
  251. package/dist/components/GroupedSingleSelect/_helpers/OptionRow.js +40 -0
  252. package/dist/components/GroupedSingleSelect/_helpers/OptionsList.d.ts +4 -0
  253. package/dist/components/GroupedSingleSelect/_helpers/OptionsList.d.ts.map +1 -0
  254. package/dist/components/GroupedSingleSelect/_helpers/OptionsList.js +55 -0
  255. package/dist/components/GroupedSingleSelect/_helpers/TriggerButton.d.ts +4 -0
  256. package/dist/components/GroupedSingleSelect/_helpers/TriggerButton.d.ts.map +1 -0
  257. package/dist/components/GroupedSingleSelect/_helpers/TriggerButton.js +77 -0
  258. package/dist/components/GroupedSingleSelect/_types/type.d.ts +77 -0
  259. package/dist/components/GroupedSingleSelect/_types/type.d.ts.map +1 -0
  260. package/dist/components/GroupedSingleSelect/_types/type.js +1 -0
  261. package/dist/components/GroupedSingleSelect/_utils/filterSeachedGroups.d.ts +3 -0
  262. package/dist/components/GroupedSingleSelect/_utils/filterSeachedGroups.d.ts.map +1 -0
  263. package/dist/components/GroupedSingleSelect/_utils/filterSeachedGroups.js +12 -0
  264. package/dist/components/GroupedSingleSelect/_utils/getDefaultSelected.d.ts +6 -0
  265. package/dist/components/GroupedSingleSelect/_utils/getDefaultSelected.d.ts.map +1 -0
  266. package/dist/components/GroupedSingleSelect/_utils/getDefaultSelected.js +11 -0
  267. package/dist/components/GroupedSingleSelect/data.d.ts +8 -0
  268. package/dist/components/GroupedSingleSelect/data.d.ts.map +1 -0
  269. package/dist/components/GroupedSingleSelect/data.js +29 -0
  270. package/dist/components/GroupedSingleSelect/index.d.ts +4 -0
  271. package/dist/components/GroupedSingleSelect/index.d.ts.map +1 -0
  272. package/dist/components/GroupedSingleSelect/index.js +138 -0
  273. package/dist/components/IconButton/_types/iconButton.type.d.ts +18 -0
  274. package/dist/components/IconButton/_types/iconButton.type.d.ts.map +1 -0
  275. package/dist/components/IconButton/_types/iconButton.type.js +1 -0
  276. package/dist/components/IconButton/index.d.ts +3 -0
  277. package/dist/components/IconButton/index.d.ts.map +1 -0
  278. package/dist/components/IconButton/index.js +59 -0
  279. package/dist/components/Input/index.js +8 -6
  280. package/dist/components/MenuOptions/MenuOptionsWrapper.d.ts +6 -0
  281. package/dist/components/MenuOptions/MenuOptionsWrapper.d.ts.map +1 -0
  282. package/dist/components/MenuOptions/MenuOptionsWrapper.js +19 -0
  283. package/dist/components/MenuOptions/_helpers/MenuItem.d.ts +3 -0
  284. package/dist/components/MenuOptions/_helpers/MenuItem.d.ts.map +1 -0
  285. package/dist/components/MenuOptions/_helpers/MenuItem.js +13 -0
  286. package/dist/components/MenuOptions/_helpers/RadioMenuItem.d.ts +3 -0
  287. package/dist/components/MenuOptions/_helpers/RadioMenuItem.d.ts.map +1 -0
  288. package/dist/components/MenuOptions/_helpers/RadioMenuItem.js +46 -0
  289. package/dist/components/MenuOptions/_helpers/SubMenu.d.ts +21 -0
  290. package/dist/components/MenuOptions/_helpers/SubMenu.d.ts.map +1 -0
  291. package/dist/components/MenuOptions/_helpers/SubMenu.js +6 -0
  292. package/dist/components/MenuOptions/_types/menuOptions.types.d.ts +49 -0
  293. package/dist/components/MenuOptions/_types/menuOptions.types.d.ts.map +1 -0
  294. package/dist/components/MenuOptions/_types/menuOptions.types.js +1 -0
  295. package/dist/components/MenuOptions/_utils/computeMenuPosition.d.ts +12 -0
  296. package/dist/components/MenuOptions/_utils/computeMenuPosition.d.ts.map +1 -0
  297. package/dist/components/MenuOptions/_utils/computeMenuPosition.js +14 -0
  298. package/dist/components/MenuOptions/_utils/computeSubmenuPosition.d.ts +12 -0
  299. package/dist/components/MenuOptions/_utils/computeSubmenuPosition.d.ts.map +1 -0
  300. package/dist/components/MenuOptions/_utils/computeSubmenuPosition.js +8 -0
  301. package/dist/components/MenuOptions/_utils/filterMenuCategories.d.ts +9 -0
  302. package/dist/components/MenuOptions/_utils/filterMenuCategories.d.ts.map +1 -0
  303. package/dist/components/MenuOptions/_utils/filterMenuCategories.js +13 -0
  304. package/dist/components/MenuOptions/_utils/getIconStrokeColor.d.ts +6 -0
  305. package/dist/components/MenuOptions/_utils/getIconStrokeColor.d.ts.map +1 -0
  306. package/dist/components/MenuOptions/_utils/getIconStrokeColor.js +6 -0
  307. package/dist/components/MenuOptions/_utils/getMenuItemActiveState.d.ts +11 -0
  308. package/dist/components/MenuOptions/_utils/getMenuItemActiveState.d.ts.map +1 -0
  309. package/dist/components/MenuOptions/_utils/getMenuItemActiveState.js +6 -0
  310. package/dist/components/MenuOptions/index.d.ts +5 -0
  311. package/dist/components/MenuOptions/index.d.ts.map +1 -0
  312. package/dist/components/MenuOptions/index.js +128 -0
  313. package/dist/components/MetricCards/Component/CardWithIconAndForecast/index.d.ts +3 -0
  314. package/dist/components/MetricCards/Component/CardWithIconAndForecast/index.d.ts.map +1 -0
  315. package/dist/components/MetricCards/Component/CardWithIconAndForecast/index.js +71 -0
  316. package/dist/components/MetricCards/Constant/constant.d.ts +13 -0
  317. package/dist/components/MetricCards/Constant/constant.d.ts.map +1 -0
  318. package/dist/components/MetricCards/Constant/constant.js +15 -0
  319. package/dist/components/MetricCards/_types/metricCards.types.d.ts +38 -0
  320. package/dist/components/MetricCards/_types/metricCards.types.d.ts.map +1 -0
  321. package/dist/components/MetricCards/_types/metricCards.types.js +1 -0
  322. package/dist/components/MetricCards/index.d.ts +4 -0
  323. package/dist/components/MetricCards/index.d.ts.map +1 -0
  324. package/dist/components/MetricCards/index.js +31 -0
  325. package/dist/components/MultiSelect/_helpers/DropdownFooter.d.ts +4 -0
  326. package/dist/components/MultiSelect/_helpers/DropdownFooter.d.ts.map +1 -0
  327. package/dist/components/MultiSelect/_helpers/DropdownFooter.js +72 -0
  328. package/dist/components/MultiSelect/_helpers/OptionRow.d.ts +4 -0
  329. package/dist/components/MultiSelect/_helpers/OptionRow.d.ts.map +1 -0
  330. package/dist/components/MultiSelect/_helpers/OptionRow.js +40 -0
  331. package/dist/components/MultiSelect/_helpers/OverflowMenu.d.ts +4 -0
  332. package/dist/components/MultiSelect/_helpers/OverflowMenu.d.ts.map +1 -0
  333. package/dist/components/MultiSelect/_helpers/OverflowMenu.js +7 -0
  334. package/dist/components/MultiSelect/_helpers/OverflowMenuItem.d.ts +4 -0
  335. package/dist/components/MultiSelect/_helpers/OverflowMenuItem.d.ts.map +1 -0
  336. package/dist/components/MultiSelect/_helpers/OverflowMenuItem.js +30 -0
  337. package/dist/components/MultiSelect/_helpers/SearchResult.d.ts +4 -0
  338. package/dist/components/MultiSelect/_helpers/SearchResult.d.ts.map +1 -0
  339. package/dist/components/MultiSelect/_helpers/SearchResult.js +33 -0
  340. package/dist/components/MultiSelect/_helpers/TagContent.d.ts +5 -0
  341. package/dist/components/MultiSelect/_helpers/TagContent.d.ts.map +1 -0
  342. package/dist/components/MultiSelect/_helpers/TagContent.js +47 -0
  343. package/dist/components/MultiSelect/_helpers/TriggerButton.d.ts +4 -0
  344. package/dist/components/MultiSelect/_helpers/TriggerButton.d.ts.map +1 -0
  345. package/dist/components/MultiSelect/_helpers/TriggerButton.js +77 -0
  346. package/dist/components/MultiSelect/_types/type.d.ts +103 -0
  347. package/dist/components/MultiSelect/_types/type.d.ts.map +1 -0
  348. package/dist/components/MultiSelect/_types/type.js +1 -0
  349. package/dist/components/MultiSelect/_utils/computeApplyDisabled.d.ts +9 -0
  350. package/dist/components/MultiSelect/_utils/computeApplyDisabled.d.ts.map +1 -0
  351. package/dist/components/MultiSelect/_utils/computeApplyDisabled.js +9 -0
  352. package/dist/components/MultiSelect/_utils/filterOptions.d.ts +6 -0
  353. package/dist/components/MultiSelect/_utils/filterOptions.d.ts.map +1 -0
  354. package/dist/components/MultiSelect/_utils/filterOptions.js +7 -0
  355. package/dist/components/MultiSelect/_utils/getInitialSelected.d.ts +6 -0
  356. package/dist/components/MultiSelect/_utils/getInitialSelected.d.ts.map +1 -0
  357. package/dist/components/MultiSelect/_utils/getInitialSelected.js +6 -0
  358. package/dist/components/MultiSelect/index.d.ts +4 -0
  359. package/dist/components/MultiSelect/index.d.ts.map +1 -0
  360. package/dist/components/MultiSelect/index.js +232 -0
  361. package/dist/components/Pagination/_types/pagination.types.d.ts +21 -0
  362. package/dist/components/Pagination/_types/pagination.types.d.ts.map +1 -0
  363. package/dist/components/Pagination/_types/pagination.types.js +1 -0
  364. package/dist/components/Pagination/_utils/computePageSizeOptions.d.ts +5 -0
  365. package/dist/components/Pagination/_utils/computePageSizeOptions.d.ts.map +1 -0
  366. package/dist/components/Pagination/_utils/computePageSizeOptions.js +10 -0
  367. package/dist/components/Pagination/_utils/generatePageNumbers.d.ts +4 -0
  368. package/dist/components/Pagination/_utils/generatePageNumbers.d.ts.map +1 -0
  369. package/dist/components/Pagination/_utils/generatePageNumbers.js +18 -0
  370. package/dist/components/Pagination/index.d.ts +6 -0
  371. package/dist/components/Pagination/index.d.ts.map +1 -0
  372. package/dist/components/Pagination/index.js +164 -0
  373. package/dist/components/Popover/_types/popover.types.d.ts +13 -0
  374. package/dist/components/Popover/_types/popover.types.d.ts.map +1 -0
  375. package/dist/components/Popover/_types/popover.types.js +1 -0
  376. package/dist/components/Popover/index.d.ts +4 -0
  377. package/dist/components/Popover/index.d.ts.map +1 -0
  378. package/dist/components/Popover/index.js +91 -0
  379. package/dist/components/PopupAndDialogBox/_types/popupAndDialog.types.d.ts +31 -0
  380. package/dist/components/PopupAndDialogBox/_types/popupAndDialog.types.d.ts.map +1 -0
  381. package/dist/components/PopupAndDialogBox/_types/popupAndDialog.types.js +1 -0
  382. package/dist/components/PopupAndDialogBox/components/DialogContent.d.ts +5 -0
  383. package/dist/components/PopupAndDialogBox/components/DialogContent.d.ts.map +1 -0
  384. package/dist/components/PopupAndDialogBox/components/DialogContent.js +9 -0
  385. package/dist/components/PopupAndDialogBox/components/DialogFooter.d.ts +4 -0
  386. package/dist/components/PopupAndDialogBox/components/DialogFooter.d.ts.map +1 -0
  387. package/dist/components/PopupAndDialogBox/components/DialogFooter.js +49 -0
  388. package/dist/components/PopupAndDialogBox/components/DialogHeader.d.ts +4 -0
  389. package/dist/components/PopupAndDialogBox/components/DialogHeader.d.ts.map +1 -0
  390. package/dist/components/PopupAndDialogBox/components/DialogHeader.js +23 -0
  391. package/dist/components/PopupAndDialogBox/constant/popupAndDialog.d.ts +14 -0
  392. package/dist/components/PopupAndDialogBox/constant/popupAndDialog.d.ts.map +1 -0
  393. package/dist/components/PopupAndDialogBox/constant/popupAndDialog.js +17 -0
  394. package/dist/components/PopupAndDialogBox/index.d.ts +5 -0
  395. package/dist/components/PopupAndDialogBox/index.d.ts.map +1 -0
  396. package/dist/components/PopupAndDialogBox/index.js +36 -0
  397. package/dist/components/ProgressBar/_types/progressBar.types.d.ts +34 -0
  398. package/dist/components/ProgressBar/_types/progressBar.types.d.ts.map +1 -0
  399. package/dist/components/ProgressBar/_types/progressBar.types.js +1 -0
  400. package/dist/components/ProgressBar/index.d.ts +3 -0
  401. package/dist/components/ProgressBar/index.d.ts.map +1 -0
  402. package/dist/components/ProgressBar/index.js +48 -0
  403. package/dist/components/RadioButton/_types/radioButton.types.d.ts +10 -0
  404. package/dist/components/RadioButton/_types/radioButton.types.d.ts.map +1 -0
  405. package/dist/components/RadioButton/_types/radioButton.types.js +1 -0
  406. package/dist/components/RadioButton/index.d.ts +3 -0
  407. package/dist/components/RadioButton/index.d.ts.map +1 -0
  408. package/dist/components/RadioButton/index.js +53 -0
  409. package/dist/components/RadioGroup/_types/radioGroup.types.d.ts +15 -0
  410. package/dist/components/RadioGroup/_types/radioGroup.types.d.ts.map +1 -0
  411. package/dist/components/RadioGroup/_types/radioGroup.types.js +1 -0
  412. package/dist/components/RadioGroup/index.d.ts +3 -0
  413. package/dist/components/RadioGroup/index.d.ts.map +1 -0
  414. package/dist/components/RadioGroup/index.js +44 -0
  415. package/dist/components/Search/_types/search.types.d.ts +19 -0
  416. package/dist/components/Search/_types/search.types.d.ts.map +1 -0
  417. package/dist/components/Search/_types/search.types.js +1 -0
  418. package/dist/components/Search/index.d.ts +3 -0
  419. package/dist/components/Search/index.d.ts.map +1 -0
  420. package/dist/components/Search/index.js +105 -0
  421. package/dist/components/SingleSelectDropdown/_helpers/DropdownFooter.d.ts +10 -0
  422. package/dist/components/SingleSelectDropdown/_helpers/DropdownFooter.d.ts.map +1 -0
  423. package/dist/components/SingleSelectDropdown/_helpers/DropdownFooter.js +23 -0
  424. package/dist/components/SingleSelectDropdown/_types/singleSelectDropdown.types.d.ts +20 -0
  425. package/dist/components/SingleSelectDropdown/_types/singleSelectDropdown.types.d.ts.map +1 -0
  426. package/dist/components/SingleSelectDropdown/_types/singleSelectDropdown.types.js +1 -0
  427. package/dist/components/SingleSelectDropdown/index.d.ts +3 -0
  428. package/dist/components/SingleSelectDropdown/index.d.ts.map +1 -0
  429. package/dist/components/SingleSelectDropdown/index.js +151 -0
  430. package/dist/components/Stepper/_helper/StepIcon.d.ts +6 -0
  431. package/dist/components/Stepper/_helper/StepIcon.d.ts.map +1 -0
  432. package/dist/components/Stepper/_helper/StepIcon.js +30 -0
  433. package/dist/components/Stepper/_helper/StepText.d.ts +3 -0
  434. package/dist/components/Stepper/_helper/StepText.d.ts.map +1 -0
  435. package/dist/components/Stepper/_helper/StepText.js +14 -0
  436. package/dist/components/Stepper/_types/stepper.type.d.ts +16 -0
  437. package/dist/components/Stepper/_types/stepper.type.d.ts.map +1 -0
  438. package/dist/components/Stepper/_types/stepper.type.js +1 -0
  439. package/dist/components/Stepper/_utils/stepper.utils.d.ts +4 -0
  440. package/dist/components/Stepper/_utils/stepper.utils.d.ts.map +1 -0
  441. package/dist/components/Stepper/_utils/stepper.utils.js +18 -0
  442. package/dist/components/Stepper/constants.d.ts +10 -0
  443. package/dist/components/Stepper/constants.d.ts.map +1 -0
  444. package/dist/components/Stepper/constants.js +12 -0
  445. package/dist/components/Stepper/index.d.ts +6 -0
  446. package/dist/components/Stepper/index.d.ts.map +1 -0
  447. package/dist/components/Stepper/index.js +47 -0
  448. package/dist/components/Switch/index.js +3 -3
  449. package/dist/components/Tab/_types/tab.types.d.ts +23 -0
  450. package/dist/components/Tab/_types/tab.types.d.ts.map +1 -0
  451. package/dist/components/Tab/_types/tab.types.js +1 -0
  452. package/dist/components/Tab/index.d.ts +3 -0
  453. package/dist/components/Tab/index.d.ts.map +1 -0
  454. package/dist/components/Tab/index.js +72 -0
  455. package/dist/components/Table/_helpers/ColumnManager/ColumnConfig.d.ts +4 -0
  456. package/dist/components/Table/_helpers/ColumnManager/ColumnConfig.d.ts.map +1 -0
  457. package/dist/components/Table/_helpers/ColumnManager/ColumnConfig.js +85 -0
  458. package/dist/components/Table/_helpers/ColumnManager/index.d.ts +4 -0
  459. package/dist/components/Table/_helpers/ColumnManager/index.d.ts.map +1 -0
  460. package/dist/components/Table/_helpers/ColumnManager/index.js +2451 -0
  461. package/dist/components/Table/_helpers/ExpandableRow/index.d.ts +16 -0
  462. package/dist/components/Table/_helpers/ExpandableRow/index.d.ts.map +1 -0
  463. package/dist/components/Table/_helpers/ExpandableRow/index.js +44 -0
  464. package/dist/components/Table/_helpers/FilterColumnToolbar.d.ts +14 -0
  465. package/dist/components/Table/_helpers/FilterColumnToolbar.d.ts.map +1 -0
  466. package/dist/components/Table/_helpers/FilterColumnToolbar.js +121 -0
  467. package/dist/components/Table/_helpers/GroupedHeader/index.d.ts +24 -0
  468. package/dist/components/Table/_helpers/GroupedHeader/index.d.ts.map +1 -0
  469. package/dist/components/Table/_helpers/GroupedHeader/index.js +201 -0
  470. package/dist/components/Table/_helpers/SelectionCell/index.d.ts +19 -0
  471. package/dist/components/Table/_helpers/SelectionCell/index.d.ts.map +1 -0
  472. package/dist/components/Table/_helpers/SelectionCell/index.js +50 -0
  473. package/dist/components/Table/_helpers/TableFilterModal/OptionList.d.ts +3 -0
  474. package/dist/components/Table/_helpers/TableFilterModal/OptionList.d.ts.map +1 -0
  475. package/dist/components/Table/_helpers/TableFilterModal/OptionList.js +11 -0
  476. package/dist/components/Table/_helpers/TableFilterModal/OptionListItems.d.ts +3 -0
  477. package/dist/components/Table/_helpers/TableFilterModal/OptionListItems.d.ts.map +1 -0
  478. package/dist/components/Table/_helpers/TableFilterModal/OptionListItems.js +75 -0
  479. package/dist/components/Table/_helpers/TableFilterModal/RangeSelector.d.ts +3 -0
  480. package/dist/components/Table/_helpers/TableFilterModal/RangeSelector.d.ts.map +1 -0
  481. package/dist/components/Table/_helpers/TableFilterModal/RangeSelector.js +1544 -0
  482. package/dist/components/Table/_helpers/TableFilterModal/index.d.ts +4 -0
  483. package/dist/components/Table/_helpers/TableFilterModal/index.d.ts.map +1 -0
  484. package/dist/components/Table/_helpers/TableFilterModal/index.js +115 -0
  485. package/dist/components/Table/_helpers/TableRows.d.ts +3 -0
  486. package/dist/components/Table/_helpers/TableRows.d.ts.map +1 -0
  487. package/dist/components/Table/_helpers/TableRows.js +403 -0
  488. package/dist/components/Table/_hooks/useExpansion.d.ts +20 -0
  489. package/dist/components/Table/_hooks/useExpansion.d.ts.map +1 -0
  490. package/dist/components/Table/_hooks/useExpansion.js +46 -0
  491. package/dist/components/Table/_hooks/useFilterColumnState.d.ts +17 -0
  492. package/dist/components/Table/_hooks/useFilterColumnState.d.ts.map +1 -0
  493. package/dist/components/Table/_hooks/useFilterColumnState.js +94 -0
  494. package/dist/components/Table/_hooks/useSelection.d.ts +12 -0
  495. package/dist/components/Table/_hooks/useSelection.d.ts.map +1 -0
  496. package/dist/components/Table/_hooks/useSelection.js +45 -0
  497. package/dist/components/Table/_types/table.types.d.ts +280 -0
  498. package/dist/components/Table/_types/table.types.d.ts.map +1 -0
  499. package/dist/components/Table/_types/table.types.js +1 -0
  500. package/dist/components/Table/_utils/formatCellValue.d.ts +13 -0
  501. package/dist/components/Table/_utils/formatCellValue.d.ts.map +1 -0
  502. package/dist/components/Table/_utils/formatCellValue.js +17 -0
  503. package/dist/components/Table/_utils/table.utils.d.ts +7 -0
  504. package/dist/components/Table/_utils/table.utils.d.ts.map +1 -0
  505. package/dist/components/Table/_utils/table.utils.js +37 -0
  506. package/dist/components/Table/constants.d.ts +6 -0
  507. package/dist/components/Table/constants.d.ts.map +1 -0
  508. package/dist/components/Table/constants.js +13 -0
  509. package/dist/components/Table/index.d.ts +4 -0
  510. package/dist/components/Table/index.d.ts.map +1 -0
  511. package/dist/components/Table/index.js +518 -0
  512. package/dist/components/Tag/index.js +1 -1
  513. package/dist/components/TextArea/_types/textArea.types.d.ts +20 -0
  514. package/dist/components/TextArea/_types/textArea.types.d.ts.map +1 -0
  515. package/dist/components/TextArea/_types/textArea.types.js +1 -0
  516. package/dist/components/TextArea/index.d.ts +4 -0
  517. package/dist/components/TextArea/index.d.ts.map +1 -0
  518. package/dist/components/TextArea/index.js +135 -0
  519. package/dist/components/TextField/_types/textField.types.d.ts +67 -0
  520. package/dist/components/TextField/_types/textField.types.d.ts.map +1 -0
  521. package/dist/components/TextField/_types/textField.types.js +1 -0
  522. package/dist/components/TextField/index.d.ts +4 -0
  523. package/dist/components/TextField/index.d.ts.map +1 -0
  524. package/dist/components/TextField/index.js +1122 -0
  525. package/dist/components/Toast/_helper/ToastContent.d.ts +3 -0
  526. package/dist/components/Toast/_helper/ToastContent.d.ts.map +1 -0
  527. package/dist/components/Toast/_helper/ToastContent.js +91 -0
  528. package/dist/components/Toast/_helper/ToastProvider.d.ts +7 -0
  529. package/dist/components/Toast/_helper/ToastProvider.d.ts.map +1 -0
  530. package/dist/components/Toast/_helper/ToastProvider.js +28 -0
  531. package/dist/components/Toast/_hooks/useToast.d.ts +14 -0
  532. package/dist/components/Toast/_hooks/useToast.d.ts.map +1 -0
  533. package/dist/components/Toast/_hooks/useToast.js +101 -0
  534. package/dist/components/Toast/_types/toast.types.d.ts +22 -0
  535. package/dist/components/Toast/_types/toast.types.d.ts.map +1 -0
  536. package/dist/components/Toast/_types/toast.types.js +1 -0
  537. package/dist/components/Toast/index.d.ts +5 -0
  538. package/dist/components/Toast/index.d.ts.map +1 -0
  539. package/dist/components/Toast/index.js +8 -0
  540. package/dist/components/Toggle/_types/toggle.types.d.ts +7 -0
  541. package/dist/components/Toggle/_types/toggle.types.d.ts.map +1 -0
  542. package/dist/components/Toggle/_types/toggle.types.js +1 -0
  543. package/dist/components/Toggle/index.d.ts +3 -0
  544. package/dist/components/Toggle/index.d.ts.map +1 -0
  545. package/dist/components/Toggle/index.js +43 -0
  546. package/dist/components/Tooltip/_types/tooltip.types.d.ts +8 -0
  547. package/dist/components/Tooltip/_types/tooltip.types.d.ts.map +1 -0
  548. package/dist/components/Tooltip/_types/tooltip.types.js +1 -0
  549. package/dist/components/Tooltip/index.d.ts +3 -0
  550. package/dist/components/Tooltip/index.d.ts.map +1 -0
  551. package/dist/components/Tooltip/index.js +1975 -0
  552. package/dist/components/Typography/_types/typography.types.d.ts +28 -0
  553. package/dist/components/Typography/_types/typography.types.d.ts.map +1 -0
  554. package/dist/components/Typography/_types/typography.types.js +1 -0
  555. package/dist/components/Typography/index.d.ts +3 -0
  556. package/dist/components/Typography/index.d.ts.map +1 -0
  557. package/dist/components/Typography/index.js +45 -0
  558. package/dist/constants.d.ts +17 -0
  559. package/dist/constants.d.ts.map +1 -0
  560. package/dist/constants.js +19 -0
  561. package/dist/contains-kLLEGdNH.js +41 -0
  562. package/dist/index-C8cPPHJD.js +1196 -0
  563. package/dist/index-f7TB87Mf.js +1846 -0
  564. package/dist/info-icon-ooYw3va_.js +5 -0
  565. package/dist/isFocusVisible-BzX3wEi7.js +12 -0
  566. package/dist/main.d.ts +36 -0
  567. package/dist/main.d.ts.map +1 -1
  568. package/dist/main.js +481 -16
  569. package/dist/reset-icon-YxMt3Ozp.js +5 -0
  570. package/dist/search-B_cup-NN.js +5 -0
  571. package/dist/styles.module-B5fY7mP8.js +20 -0
  572. package/dist/styles.module-BZaUJMlf.js +14 -0
  573. package/dist/styles.module-CCyijXTv.js +16 -0
  574. package/dist/styles.module-CmWIIYpK.js +41 -0
  575. package/dist/styles.module-DGDgpLAB.js +29 -0
  576. package/dist/styles.module-ZyeVE7KZ.js +39 -0
  577. package/dist/styles.module-r_cdKgD9.js +19 -0
  578. package/dist/table-filter-C0zetUfo.js +6 -0
  579. package/dist/theme/Theme.js +3 -2
  580. package/dist/theme/theme.css +1 -1
  581. package/dist/useSlot-ylt7_lTY.js +4698 -0
  582. package/dist/utils/index.d.ts +2 -0
  583. package/dist/utils/index.d.ts.map +1 -0
  584. package/dist/utils/index.js +4 -0
  585. package/dist/utils/mergeClasses.d.ts +2 -0
  586. package/dist/utils/mergeClasses.d.ts.map +1 -0
  587. package/dist/utils/mergeClasses.js +6 -0
  588. package/package.json +25 -7
  589. package/dist/assets/Theme.css +0 -1
  590. package/dist/assets/index2.css +0 -1
  591. package/dist/components/Button/Button.stories.d.ts +0 -9
  592. package/dist/components/Button/Button.stories.d.ts.map +0 -1
  593. package/dist/components/Checkbox/Checkbox.stories.d.ts +0 -10
  594. package/dist/components/Checkbox/Checkbox.stories.d.ts.map +0 -1
  595. package/dist/components/Copy/Copy.stories.d.ts +0 -9
  596. package/dist/components/Copy/Copy.stories.d.ts.map +0 -1
  597. package/dist/components/Switch/Switch.stories.d.ts +0 -10
  598. package/dist/components/Switch/Switch.stories.d.ts.map +0 -1
  599. package/dist/components/Tag/Tag.stories.d.ts +0 -11
  600. package/dist/components/Tag/Tag.stories.d.ts.map +0 -1
  601. /package/dist/assets/{index5.css → index-B6Mg98vm.css} +0 -0
  602. /package/dist/assets/{index3.css → index-C7wPc9Eh.css} +0 -0
  603. /package/dist/assets/{index4.css → index-DRigR6XT.css} +0 -0
  604. /package/dist/assets/{index.css → index-t78owPAF.css} +0 -0
@@ -0,0 +1,2451 @@
1
+ import { jsx as m, jsxs as E } from "react/jsx-runtime";
2
+ import * as w from "react";
3
+ import { createContext as Ge, memo as Ye, useEffect as k, useLayoutEffect as Xe, useState as Ee, useCallback as Ie, useMemo as b, isValidElement as We, cloneElement as ae, useContext as ze, useRef as Qe } from "react";
4
+ import { CKButton as B } from "../../../CKButton/index.js";
5
+ import { Typography as _ } from "../../../Typography/index.js";
6
+ import { Switch as Ke } from "../../../Switch/index.js";
7
+ import { S as Je } from "../../../../reset-icon-YxMt3Ozp.js";
8
+ import { S as Ze } from "../../../../search-B_cup-NN.js";
9
+ import et from "./ColumnConfig.js";
10
+ import { COLUMN_ITEM_TYPE as ce } from "../../constants.js";
11
+ import '../../../../assets/styles-BTZL03H2.css';/* empty css */
12
+ import { mergeClasses as ue } from "../../../../utils/mergeClasses.js";
13
+ import { g as tt } from "../../../../_commonjsHelpers-C6fGbg64.js";
14
+ const we = Ge({
15
+ dragDropManager: void 0
16
+ });
17
+ function O(t) {
18
+ return "Minified Redux error #" + t + "; visit https://redux.js.org/Errors?code=" + t + " for the full message or use the non-minified dev environment for full errors. ";
19
+ }
20
+ var le = (function() {
21
+ return typeof Symbol == "function" && Symbol.observable || "@@observable";
22
+ })(), de = function() {
23
+ return Math.random().toString(36).substring(7).split("").join(".");
24
+ }, ge = {
25
+ INIT: "@@redux/INIT" + de(),
26
+ REPLACE: "@@redux/REPLACE" + de()
27
+ };
28
+ function rt(t) {
29
+ if (typeof t != "object" || t === null) return !1;
30
+ for (var e = t; Object.getPrototypeOf(e) !== null; )
31
+ e = Object.getPrototypeOf(e);
32
+ return Object.getPrototypeOf(t) === e;
33
+ }
34
+ function nt(t) {
35
+ if (t === void 0) return "undefined";
36
+ if (t === null) return "null";
37
+ var e = typeof t;
38
+ switch (e) {
39
+ case "boolean":
40
+ case "string":
41
+ case "number":
42
+ case "symbol":
43
+ case "function":
44
+ return e;
45
+ }
46
+ if (Array.isArray(t)) return "array";
47
+ if (ot(t)) return "date";
48
+ if (st(t)) return "error";
49
+ var r = it(t);
50
+ switch (r) {
51
+ case "Symbol":
52
+ case "Promise":
53
+ case "WeakMap":
54
+ case "WeakSet":
55
+ case "Map":
56
+ case "Set":
57
+ return r;
58
+ }
59
+ return e.slice(8, -1).toLowerCase().replace(/\s/g, "");
60
+ }
61
+ function it(t) {
62
+ return typeof t.constructor == "function" ? t.constructor.name : null;
63
+ }
64
+ function st(t) {
65
+ return t instanceof Error || typeof t.message == "string" && t.constructor && typeof t.constructor.stackTraceLimit == "number";
66
+ }
67
+ function ot(t) {
68
+ return t instanceof Date ? !0 : typeof t.toDateString == "function" && typeof t.getDate == "function" && typeof t.setDate == "function";
69
+ }
70
+ function N(t) {
71
+ var e = typeof t;
72
+ return process.env.NODE_ENV !== "production" && (e = nt(t)), e;
73
+ }
74
+ function Ce(t, e, r) {
75
+ var n;
76
+ if (typeof e == "function" && typeof r == "function" || typeof r == "function" && typeof arguments[3] == "function")
77
+ throw new Error(process.env.NODE_ENV === "production" ? O(0) : "It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function. See https://redux.js.org/tutorials/fundamentals/part-4-store#creating-a-store-with-enhancers for an example.");
78
+ if (typeof e == "function" && typeof r > "u" && (r = e, e = void 0), typeof r < "u") {
79
+ if (typeof r != "function")
80
+ throw new Error(process.env.NODE_ENV === "production" ? O(1) : "Expected the enhancer to be a function. Instead, received: '" + N(r) + "'");
81
+ return r(Ce)(t, e);
82
+ }
83
+ if (typeof t != "function")
84
+ throw new Error(process.env.NODE_ENV === "production" ? O(2) : "Expected the root reducer to be a function. Instead, received: '" + N(t) + "'");
85
+ var i = t, s = e, o = [], a = o, c = !1;
86
+ function d() {
87
+ a === o && (a = o.slice());
88
+ }
89
+ function f() {
90
+ if (c)
91
+ throw new Error(process.env.NODE_ENV === "production" ? O(3) : "You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");
92
+ return s;
93
+ }
94
+ function p(h) {
95
+ if (typeof h != "function")
96
+ throw new Error(process.env.NODE_ENV === "production" ? O(4) : "Expected the listener to be a function. Instead, received: '" + N(h) + "'");
97
+ if (c)
98
+ throw new Error(process.env.NODE_ENV === "production" ? O(5) : "You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api/store#subscribelistener for more details.");
99
+ var v = !0;
100
+ return d(), a.push(h), function() {
101
+ if (v) {
102
+ if (c)
103
+ throw new Error(process.env.NODE_ENV === "production" ? O(6) : "You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api/store#subscribelistener for more details.");
104
+ v = !1, d();
105
+ var S = a.indexOf(h);
106
+ a.splice(S, 1), o = null;
107
+ }
108
+ };
109
+ }
110
+ function g(h) {
111
+ if (!rt(h))
112
+ throw new Error(process.env.NODE_ENV === "production" ? O(7) : "Actions must be plain objects. Instead, the actual type was: '" + N(h) + "'. You may need to add middleware to your store setup to handle dispatching other values, such as 'redux-thunk' to handle dispatching functions. See https://redux.js.org/tutorials/fundamentals/part-4-store#middleware and https://redux.js.org/tutorials/fundamentals/part-6-async-logic#using-the-redux-thunk-middleware for examples.");
113
+ if (typeof h.type > "u")
114
+ throw new Error(process.env.NODE_ENV === "production" ? O(8) : 'Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');
115
+ if (c)
116
+ throw new Error(process.env.NODE_ENV === "production" ? O(9) : "Reducers may not dispatch actions.");
117
+ try {
118
+ c = !0, s = i(s, h);
119
+ } finally {
120
+ c = !1;
121
+ }
122
+ for (var v = o = a, y = 0; y < v.length; y++) {
123
+ var S = v[y];
124
+ S();
125
+ }
126
+ return h;
127
+ }
128
+ function u(h) {
129
+ if (typeof h != "function")
130
+ throw new Error(process.env.NODE_ENV === "production" ? O(10) : "Expected the nextReducer to be a function. Instead, received: '" + N(h));
131
+ i = h, g({
132
+ type: ge.REPLACE
133
+ });
134
+ }
135
+ function D() {
136
+ var h, v = p;
137
+ return h = {
138
+ /**
139
+ * The minimal observable subscription method.
140
+ * @param {Object} observer Any object that can be used as an observer.
141
+ * The observer object should have a `next` method.
142
+ * @returns {subscription} An object with an `unsubscribe` method that can
143
+ * be used to unsubscribe the observable from the store, and prevent further
144
+ * emission of values from the observable.
145
+ */
146
+ subscribe: function(S) {
147
+ if (typeof S != "object" || S === null)
148
+ throw new Error(process.env.NODE_ENV === "production" ? O(11) : "Expected the observer to be an object. Instead, received: '" + N(S) + "'");
149
+ function I() {
150
+ S.next && S.next(f());
151
+ }
152
+ I();
153
+ var F = v(I);
154
+ return {
155
+ unsubscribe: F
156
+ };
157
+ }
158
+ }, h[le] = function() {
159
+ return this;
160
+ }, h;
161
+ }
162
+ return g({
163
+ type: ge.INIT
164
+ }), n = {
165
+ dispatch: g,
166
+ subscribe: p,
167
+ getState: f,
168
+ replaceReducer: u
169
+ }, n[le] = D, n;
170
+ }
171
+ function l(t, e, ...r) {
172
+ if (at() && e === void 0)
173
+ throw new Error("invariant requires an error message argument");
174
+ if (!t) {
175
+ let n;
176
+ if (e === void 0)
177
+ n = new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");
178
+ else {
179
+ let i = 0;
180
+ n = new Error(e.replace(/%s/g, function() {
181
+ return r[i++];
182
+ })), n.name = "Invariant Violation";
183
+ }
184
+ throw n.framesToPop = 1, n;
185
+ }
186
+ }
187
+ function at() {
188
+ return typeof process < "u" && process.env.NODE_ENV === "production";
189
+ }
190
+ function ct(t, e, r) {
191
+ return e.split(".").reduce(
192
+ (n, i) => n && n[i] ? n[i] : r || null,
193
+ t
194
+ );
195
+ }
196
+ function ut(t, e) {
197
+ return t.filter(
198
+ (r) => r !== e
199
+ );
200
+ }
201
+ function Ne(t) {
202
+ return typeof t == "object";
203
+ }
204
+ function lt(t, e) {
205
+ const r = /* @__PURE__ */ new Map(), n = (s) => {
206
+ r.set(s, r.has(s) ? r.get(s) + 1 : 1);
207
+ };
208
+ t.forEach(n), e.forEach(n);
209
+ const i = [];
210
+ return r.forEach((s, o) => {
211
+ s === 1 && i.push(o);
212
+ }), i;
213
+ }
214
+ function dt(t, e) {
215
+ return t.filter(
216
+ (r) => e.indexOf(r) > -1
217
+ );
218
+ }
219
+ const ee = "dnd-core/INIT_COORDS", A = "dnd-core/BEGIN_DRAG", te = "dnd-core/PUBLISH_DRAG_SOURCE", H = "dnd-core/HOVER", j = "dnd-core/DROP", U = "dnd-core/END_DRAG";
220
+ function fe(t, e) {
221
+ return {
222
+ type: ee,
223
+ payload: {
224
+ sourceClientOffset: e || null,
225
+ clientOffset: t || null
226
+ }
227
+ };
228
+ }
229
+ const gt = {
230
+ type: ee,
231
+ payload: {
232
+ clientOffset: null,
233
+ sourceClientOffset: null
234
+ }
235
+ };
236
+ function ft(t) {
237
+ return function(r = [], n = {
238
+ publishSource: !0
239
+ }) {
240
+ const { publishSource: i = !0, clientOffset: s, getSourceClientOffset: o } = n, a = t.getMonitor(), c = t.getRegistry();
241
+ t.dispatch(fe(s)), ht(r, a, c);
242
+ const d = vt(r, a);
243
+ if (d == null) {
244
+ t.dispatch(gt);
245
+ return;
246
+ }
247
+ let f = null;
248
+ if (s) {
249
+ if (!o)
250
+ throw new Error("getSourceClientOffset must be defined");
251
+ pt(o), f = o(d);
252
+ }
253
+ t.dispatch(fe(s, f));
254
+ const g = c.getSource(d).beginDrag(a, d);
255
+ if (g == null)
256
+ return;
257
+ mt(g), c.pinSource(d);
258
+ const u = c.getSourceType(d);
259
+ return {
260
+ type: A,
261
+ payload: {
262
+ itemType: u,
263
+ item: g,
264
+ sourceId: d,
265
+ clientOffset: s || null,
266
+ sourceClientOffset: f || null,
267
+ isSourcePublic: !!i
268
+ }
269
+ };
270
+ };
271
+ }
272
+ function ht(t, e, r) {
273
+ l(!e.isDragging(), "Cannot call beginDrag while dragging."), t.forEach(function(n) {
274
+ l(r.getSource(n), "Expected sourceIds to be registered.");
275
+ });
276
+ }
277
+ function pt(t) {
278
+ l(typeof t == "function", "When clientOffset is provided, getSourceClientOffset must be a function.");
279
+ }
280
+ function mt(t) {
281
+ l(Ne(t), "Item must be an object.");
282
+ }
283
+ function vt(t, e) {
284
+ let r = null;
285
+ for (let n = t.length - 1; n >= 0; n--)
286
+ if (e.canDragSource(t[n])) {
287
+ r = t[n];
288
+ break;
289
+ }
290
+ return r;
291
+ }
292
+ function Dt(t, e, r) {
293
+ return e in t ? Object.defineProperty(t, e, {
294
+ value: r,
295
+ enumerable: !0,
296
+ configurable: !0,
297
+ writable: !0
298
+ }) : t[e] = r, t;
299
+ }
300
+ function yt(t) {
301
+ for (var e = 1; e < arguments.length; e++) {
302
+ var r = arguments[e] != null ? arguments[e] : {}, n = Object.keys(r);
303
+ typeof Object.getOwnPropertySymbols == "function" && (n = n.concat(Object.getOwnPropertySymbols(r).filter(function(i) {
304
+ return Object.getOwnPropertyDescriptor(r, i).enumerable;
305
+ }))), n.forEach(function(i) {
306
+ Dt(t, i, r[i]);
307
+ });
308
+ }
309
+ return t;
310
+ }
311
+ function St(t) {
312
+ return function(r = {}) {
313
+ const n = t.getMonitor(), i = t.getRegistry();
314
+ Ot(n), Et(n).forEach((o, a) => {
315
+ const c = Tt(o, a, i, n), d = {
316
+ type: j,
317
+ payload: {
318
+ dropResult: yt({}, r, c)
319
+ }
320
+ };
321
+ t.dispatch(d);
322
+ });
323
+ };
324
+ }
325
+ function Ot(t) {
326
+ l(t.isDragging(), "Cannot call drop while not dragging."), l(!t.didDrop(), "Cannot call drop twice during one drag operation.");
327
+ }
328
+ function Tt(t, e, r, n) {
329
+ const i = r.getTarget(t);
330
+ let s = i ? i.drop(n, t) : void 0;
331
+ return bt(s), typeof s > "u" && (s = e === 0 ? {} : n.getDropResult()), s;
332
+ }
333
+ function bt(t) {
334
+ l(typeof t > "u" || Ne(t), "Drop result must either be an object or undefined.");
335
+ }
336
+ function Et(t) {
337
+ const e = t.getTargetIds().filter(t.canDropOnTarget, t);
338
+ return e.reverse(), e;
339
+ }
340
+ function It(t) {
341
+ return function() {
342
+ const r = t.getMonitor(), n = t.getRegistry();
343
+ wt(r);
344
+ const i = r.getSourceId();
345
+ return i != null && (n.getSource(i, !0).endDrag(r, i), n.unpinSource()), {
346
+ type: U
347
+ };
348
+ };
349
+ }
350
+ function wt(t) {
351
+ l(t.isDragging(), "Cannot call endDrag while not dragging.");
352
+ }
353
+ function z(t, e) {
354
+ return e === null ? t === null : Array.isArray(t) ? t.some(
355
+ (r) => r === e
356
+ ) : t === e;
357
+ }
358
+ function Ct(t) {
359
+ return function(r, { clientOffset: n } = {}) {
360
+ Nt(r);
361
+ const i = r.slice(0), s = t.getMonitor(), o = t.getRegistry(), a = s.getItemType();
362
+ return xt(i, o, a), Pt(i, s, o), Rt(i, s, o), {
363
+ type: H,
364
+ payload: {
365
+ targetIds: i,
366
+ clientOffset: n || null
367
+ }
368
+ };
369
+ };
370
+ }
371
+ function Nt(t) {
372
+ l(Array.isArray(t), "Expected targetIds to be an array.");
373
+ }
374
+ function Pt(t, e, r) {
375
+ l(e.isDragging(), "Cannot call hover while not dragging."), l(!e.didDrop(), "Cannot call hover after drop.");
376
+ for (let n = 0; n < t.length; n++) {
377
+ const i = t[n];
378
+ l(t.lastIndexOf(i) === n, "Expected targetIds to be unique in the passed array.");
379
+ const s = r.getTarget(i);
380
+ l(s, "Expected targetIds to be registered.");
381
+ }
382
+ }
383
+ function xt(t, e, r) {
384
+ for (let n = t.length - 1; n >= 0; n--) {
385
+ const i = t[n], s = e.getTargetType(i);
386
+ z(s, r) || t.splice(n, 1);
387
+ }
388
+ }
389
+ function Rt(t, e, r) {
390
+ t.forEach(function(n) {
391
+ r.getTarget(n).hover(e, n);
392
+ });
393
+ }
394
+ function Mt(t) {
395
+ return function() {
396
+ if (t.getMonitor().isDragging())
397
+ return {
398
+ type: te
399
+ };
400
+ };
401
+ }
402
+ function _t(t) {
403
+ return {
404
+ beginDrag: ft(t),
405
+ publishDragSource: Mt(t),
406
+ hover: Ct(t),
407
+ drop: St(t),
408
+ endDrag: It(t)
409
+ };
410
+ }
411
+ class Lt {
412
+ receiveBackend(e) {
413
+ this.backend = e;
414
+ }
415
+ getMonitor() {
416
+ return this.monitor;
417
+ }
418
+ getBackend() {
419
+ return this.backend;
420
+ }
421
+ getRegistry() {
422
+ return this.monitor.registry;
423
+ }
424
+ getActions() {
425
+ const e = this, { dispatch: r } = this.store;
426
+ function n(s) {
427
+ return (...o) => {
428
+ const a = s.apply(e, o);
429
+ typeof a < "u" && r(a);
430
+ };
431
+ }
432
+ const i = _t(this);
433
+ return Object.keys(i).reduce((s, o) => {
434
+ const a = i[o];
435
+ return s[o] = n(a), s;
436
+ }, {});
437
+ }
438
+ dispatch(e) {
439
+ this.store.dispatch(e);
440
+ }
441
+ constructor(e, r) {
442
+ this.isSetUp = !1, this.handleRefCountChange = () => {
443
+ const n = this.store.getState().refCount > 0;
444
+ this.backend && (n && !this.isSetUp ? (this.backend.setup(), this.isSetUp = !0) : !n && this.isSetUp && (this.backend.teardown(), this.isSetUp = !1));
445
+ }, this.store = e, this.monitor = r, e.subscribe(this.handleRefCountChange);
446
+ }
447
+ }
448
+ function kt(t, e) {
449
+ return {
450
+ x: t.x + e.x,
451
+ y: t.y + e.y
452
+ };
453
+ }
454
+ function Pe(t, e) {
455
+ return {
456
+ x: t.x - e.x,
457
+ y: t.y - e.y
458
+ };
459
+ }
460
+ function At(t) {
461
+ const { clientOffset: e, initialClientOffset: r, initialSourceClientOffset: n } = t;
462
+ return !e || !r || !n ? null : Pe(kt(e, n), r);
463
+ }
464
+ function Ht(t) {
465
+ const { clientOffset: e, initialClientOffset: r } = t;
466
+ return !e || !r ? null : Pe(e, r);
467
+ }
468
+ const R = [], re = [];
469
+ R.__IS_NONE__ = !0;
470
+ re.__IS_ALL__ = !0;
471
+ function jt(t, e) {
472
+ return t === R ? !1 : t === re || typeof e > "u" ? !0 : dt(e, t).length > 0;
473
+ }
474
+ class Ut {
475
+ subscribeToStateChange(e, r = {}) {
476
+ const { handlerIds: n } = r;
477
+ l(typeof e == "function", "listener must be a function."), l(typeof n > "u" || Array.isArray(n), "handlerIds, when specified, must be an array of strings.");
478
+ let i = this.store.getState().stateId;
479
+ const s = () => {
480
+ const o = this.store.getState(), a = o.stateId;
481
+ try {
482
+ a === i || a === i + 1 && !jt(o.dirtyHandlerIds, n) || e();
483
+ } finally {
484
+ i = a;
485
+ }
486
+ };
487
+ return this.store.subscribe(s);
488
+ }
489
+ subscribeToOffsetChange(e) {
490
+ l(typeof e == "function", "listener must be a function.");
491
+ let r = this.store.getState().dragOffset;
492
+ const n = () => {
493
+ const i = this.store.getState().dragOffset;
494
+ i !== r && (r = i, e());
495
+ };
496
+ return this.store.subscribe(n);
497
+ }
498
+ canDragSource(e) {
499
+ if (!e)
500
+ return !1;
501
+ const r = this.registry.getSource(e);
502
+ return l(r, `Expected to find a valid source. sourceId=${e}`), this.isDragging() ? !1 : r.canDrag(this, e);
503
+ }
504
+ canDropOnTarget(e) {
505
+ if (!e)
506
+ return !1;
507
+ const r = this.registry.getTarget(e);
508
+ if (l(r, `Expected to find a valid target. targetId=${e}`), !this.isDragging() || this.didDrop())
509
+ return !1;
510
+ const n = this.registry.getTargetType(e), i = this.getItemType();
511
+ return z(n, i) && r.canDrop(this, e);
512
+ }
513
+ isDragging() {
514
+ return !!this.getItemType();
515
+ }
516
+ isDraggingSource(e) {
517
+ if (!e)
518
+ return !1;
519
+ const r = this.registry.getSource(e, !0);
520
+ if (l(r, `Expected to find a valid source. sourceId=${e}`), !this.isDragging() || !this.isSourcePublic())
521
+ return !1;
522
+ const n = this.registry.getSourceType(e), i = this.getItemType();
523
+ return n !== i ? !1 : r.isDragging(this, e);
524
+ }
525
+ isOverTarget(e, r = {
526
+ shallow: !1
527
+ }) {
528
+ if (!e)
529
+ return !1;
530
+ const { shallow: n } = r;
531
+ if (!this.isDragging())
532
+ return !1;
533
+ const i = this.registry.getTargetType(e), s = this.getItemType();
534
+ if (s && !z(i, s))
535
+ return !1;
536
+ const o = this.getTargetIds();
537
+ if (!o.length)
538
+ return !1;
539
+ const a = o.indexOf(e);
540
+ return n ? a === o.length - 1 : a > -1;
541
+ }
542
+ getItemType() {
543
+ return this.store.getState().dragOperation.itemType;
544
+ }
545
+ getItem() {
546
+ return this.store.getState().dragOperation.item;
547
+ }
548
+ getSourceId() {
549
+ return this.store.getState().dragOperation.sourceId;
550
+ }
551
+ getTargetIds() {
552
+ return this.store.getState().dragOperation.targetIds;
553
+ }
554
+ getDropResult() {
555
+ return this.store.getState().dragOperation.dropResult;
556
+ }
557
+ didDrop() {
558
+ return this.store.getState().dragOperation.didDrop;
559
+ }
560
+ isSourcePublic() {
561
+ return !!this.store.getState().dragOperation.isSourcePublic;
562
+ }
563
+ getInitialClientOffset() {
564
+ return this.store.getState().dragOffset.initialClientOffset;
565
+ }
566
+ getInitialSourceClientOffset() {
567
+ return this.store.getState().dragOffset.initialSourceClientOffset;
568
+ }
569
+ getClientOffset() {
570
+ return this.store.getState().dragOffset.clientOffset;
571
+ }
572
+ getSourceClientOffset() {
573
+ return At(this.store.getState().dragOffset);
574
+ }
575
+ getDifferenceFromInitialOffset() {
576
+ return Ht(this.store.getState().dragOffset);
577
+ }
578
+ constructor(e, r) {
579
+ this.store = e, this.registry = r;
580
+ }
581
+ }
582
+ const he = typeof global < "u" ? global : self, xe = he.MutationObserver || he.WebKitMutationObserver;
583
+ function Re(t) {
584
+ return function() {
585
+ const r = setTimeout(i, 0), n = setInterval(i, 50);
586
+ function i() {
587
+ clearTimeout(r), clearInterval(n), t();
588
+ }
589
+ };
590
+ }
591
+ function Vt(t) {
592
+ let e = 1;
593
+ const r = new xe(t), n = document.createTextNode("");
594
+ return r.observe(n, {
595
+ characterData: !0
596
+ }), function() {
597
+ e = -e, n.data = e;
598
+ };
599
+ }
600
+ const Ft = typeof xe == "function" ? (
601
+ // reliably everywhere they are implemented.
602
+ // They are implemented in all modern browsers.
603
+ //
604
+ // - Android 4-4.3
605
+ // - Chrome 26-34
606
+ // - Firefox 14-29
607
+ // - Internet Explorer 11
608
+ // - iPad Safari 6-7.1
609
+ // - iPhone Safari 7-7.1
610
+ // - Safari 6-7
611
+ Vt
612
+ ) : (
613
+ // task queue, are implemented in Internet Explorer 10, Safari 5.0-1, and Opera
614
+ // 11-12, and in web workers in many engines.
615
+ // Although message channels yield to any queued rendering and IO tasks, they
616
+ // would be better than imposing the 4ms delay of timers.
617
+ // However, they do not work reliably in Internet Explorer or Safari.
618
+ // Internet Explorer 10 is the only browser that has setImmediate but does
619
+ // not have MutationObservers.
620
+ // Although setImmediate yields to the browser's renderer, it would be
621
+ // preferrable to falling back to setTimeout since it does not have
622
+ // the minimum 4ms penalty.
623
+ // Unfortunately there appears to be a bug in Internet Explorer 10 Mobile (and
624
+ // Desktop to a lesser extent) that renders both setImmediate and
625
+ // MessageChannel useless for the purposes of ASAP.
626
+ // https://github.com/kriskowal/q/issues/396
627
+ // Timers are implemented universally.
628
+ // We fall back to timers in workers in most engines, and in foreground
629
+ // contexts in the following browsers.
630
+ // However, note that even this simple case requires nuances to operate in a
631
+ // broad spectrum of browsers.
632
+ //
633
+ // - Firefox 3-13
634
+ // - Internet Explorer 6-9
635
+ // - iPad Safari 4.3
636
+ // - Lynx 2.8.7
637
+ Re
638
+ );
639
+ class Bt {
640
+ // Use the fastest means possible to execute a task in its own turn, with
641
+ // priority over other events including IO, animation, reflow, and redraw
642
+ // events in browsers.
643
+ //
644
+ // An exception thrown by a task will permanently interrupt the processing of
645
+ // subsequent tasks. The higher level `asap` function ensures that if an
646
+ // exception is thrown by a task, that the task queue will continue flushing as
647
+ // soon as possible, but if you use `rawAsap` directly, you are responsible to
648
+ // either ensure that no exceptions are thrown from your task, or to manually
649
+ // call `rawAsap.requestFlush` if an exception is thrown.
650
+ enqueueTask(e) {
651
+ const { queue: r, requestFlush: n } = this;
652
+ r.length || (n(), this.flushing = !0), r[r.length] = e;
653
+ }
654
+ constructor() {
655
+ this.queue = [], this.pendingErrors = [], this.flushing = !1, this.index = 0, this.capacity = 1024, this.flush = () => {
656
+ const { queue: e } = this;
657
+ for (; this.index < e.length; ) {
658
+ const r = this.index;
659
+ if (this.index++, e[r].call(), this.index > this.capacity) {
660
+ for (let n = 0, i = e.length - this.index; n < i; n++)
661
+ e[n] = e[n + this.index];
662
+ e.length -= this.index, this.index = 0;
663
+ }
664
+ }
665
+ e.length = 0, this.index = 0, this.flushing = !1;
666
+ }, this.registerPendingError = (e) => {
667
+ this.pendingErrors.push(e), this.requestErrorThrow();
668
+ }, this.requestFlush = Ft(this.flush), this.requestErrorThrow = Re(() => {
669
+ if (this.pendingErrors.length)
670
+ throw this.pendingErrors.shift();
671
+ });
672
+ }
673
+ }
674
+ class qt {
675
+ call() {
676
+ try {
677
+ this.task && this.task();
678
+ } catch (e) {
679
+ this.onError(e);
680
+ } finally {
681
+ this.task = null, this.release(this);
682
+ }
683
+ }
684
+ constructor(e, r) {
685
+ this.onError = e, this.release = r, this.task = null;
686
+ }
687
+ }
688
+ class $t {
689
+ create(e) {
690
+ const r = this.freeTasks, n = r.length ? r.pop() : new qt(
691
+ this.onError,
692
+ (i) => r[r.length] = i
693
+ );
694
+ return n.task = e, n;
695
+ }
696
+ constructor(e) {
697
+ this.onError = e, this.freeTasks = [];
698
+ }
699
+ }
700
+ const Me = new Bt(), Gt = new $t(Me.registerPendingError);
701
+ function Yt(t) {
702
+ Me.enqueueTask(Gt.create(t));
703
+ }
704
+ const ne = "dnd-core/ADD_SOURCE", ie = "dnd-core/ADD_TARGET", se = "dnd-core/REMOVE_SOURCE", V = "dnd-core/REMOVE_TARGET";
705
+ function Xt(t) {
706
+ return {
707
+ type: ne,
708
+ payload: {
709
+ sourceId: t
710
+ }
711
+ };
712
+ }
713
+ function Wt(t) {
714
+ return {
715
+ type: ie,
716
+ payload: {
717
+ targetId: t
718
+ }
719
+ };
720
+ }
721
+ function zt(t) {
722
+ return {
723
+ type: se,
724
+ payload: {
725
+ sourceId: t
726
+ }
727
+ };
728
+ }
729
+ function Qt(t) {
730
+ return {
731
+ type: V,
732
+ payload: {
733
+ targetId: t
734
+ }
735
+ };
736
+ }
737
+ function Kt(t) {
738
+ l(typeof t.canDrag == "function", "Expected canDrag to be a function."), l(typeof t.beginDrag == "function", "Expected beginDrag to be a function."), l(typeof t.endDrag == "function", "Expected endDrag to be a function.");
739
+ }
740
+ function Jt(t) {
741
+ l(typeof t.canDrop == "function", "Expected canDrop to be a function."), l(typeof t.hover == "function", "Expected hover to be a function."), l(typeof t.drop == "function", "Expected beginDrag to be a function.");
742
+ }
743
+ function Q(t, e) {
744
+ if (e && Array.isArray(t)) {
745
+ t.forEach(
746
+ (r) => Q(r, !1)
747
+ );
748
+ return;
749
+ }
750
+ l(typeof t == "string" || typeof t == "symbol", e ? "Type can only be a string, a symbol, or an array of either." : "Type can only be a string or a symbol.");
751
+ }
752
+ var T;
753
+ (function(t) {
754
+ t.SOURCE = "SOURCE", t.TARGET = "TARGET";
755
+ })(T || (T = {}));
756
+ let Zt = 0;
757
+ function er() {
758
+ return Zt++;
759
+ }
760
+ function tr(t) {
761
+ const e = er().toString();
762
+ switch (t) {
763
+ case T.SOURCE:
764
+ return `S${e}`;
765
+ case T.TARGET:
766
+ return `T${e}`;
767
+ default:
768
+ throw new Error(`Unknown Handler Role: ${t}`);
769
+ }
770
+ }
771
+ function pe(t) {
772
+ switch (t[0]) {
773
+ case "S":
774
+ return T.SOURCE;
775
+ case "T":
776
+ return T.TARGET;
777
+ default:
778
+ throw new Error(`Cannot parse handler ID: ${t}`);
779
+ }
780
+ }
781
+ function me(t, e) {
782
+ const r = t.entries();
783
+ let n = !1;
784
+ do {
785
+ const { done: i, value: [, s] } = r.next();
786
+ if (s === e)
787
+ return !0;
788
+ n = !!i;
789
+ } while (!n);
790
+ return !1;
791
+ }
792
+ class rr {
793
+ addSource(e, r) {
794
+ Q(e), Kt(r);
795
+ const n = this.addHandler(T.SOURCE, e, r);
796
+ return this.store.dispatch(Xt(n)), n;
797
+ }
798
+ addTarget(e, r) {
799
+ Q(e, !0), Jt(r);
800
+ const n = this.addHandler(T.TARGET, e, r);
801
+ return this.store.dispatch(Wt(n)), n;
802
+ }
803
+ containsHandler(e) {
804
+ return me(this.dragSources, e) || me(this.dropTargets, e);
805
+ }
806
+ getSource(e, r = !1) {
807
+ return l(this.isSourceId(e), "Expected a valid source ID."), r && e === this.pinnedSourceId ? this.pinnedSource : this.dragSources.get(e);
808
+ }
809
+ getTarget(e) {
810
+ return l(this.isTargetId(e), "Expected a valid target ID."), this.dropTargets.get(e);
811
+ }
812
+ getSourceType(e) {
813
+ return l(this.isSourceId(e), "Expected a valid source ID."), this.types.get(e);
814
+ }
815
+ getTargetType(e) {
816
+ return l(this.isTargetId(e), "Expected a valid target ID."), this.types.get(e);
817
+ }
818
+ isSourceId(e) {
819
+ return pe(e) === T.SOURCE;
820
+ }
821
+ isTargetId(e) {
822
+ return pe(e) === T.TARGET;
823
+ }
824
+ removeSource(e) {
825
+ l(this.getSource(e), "Expected an existing source."), this.store.dispatch(zt(e)), Yt(() => {
826
+ this.dragSources.delete(e), this.types.delete(e);
827
+ });
828
+ }
829
+ removeTarget(e) {
830
+ l(this.getTarget(e), "Expected an existing target."), this.store.dispatch(Qt(e)), this.dropTargets.delete(e), this.types.delete(e);
831
+ }
832
+ pinSource(e) {
833
+ const r = this.getSource(e);
834
+ l(r, "Expected an existing source."), this.pinnedSourceId = e, this.pinnedSource = r;
835
+ }
836
+ unpinSource() {
837
+ l(this.pinnedSource, "No source is pinned at the time."), this.pinnedSourceId = null, this.pinnedSource = null;
838
+ }
839
+ addHandler(e, r, n) {
840
+ const i = tr(e);
841
+ return this.types.set(i, r), e === T.SOURCE ? this.dragSources.set(i, n) : e === T.TARGET && this.dropTargets.set(i, n), i;
842
+ }
843
+ constructor(e) {
844
+ this.types = /* @__PURE__ */ new Map(), this.dragSources = /* @__PURE__ */ new Map(), this.dropTargets = /* @__PURE__ */ new Map(), this.pinnedSourceId = null, this.pinnedSource = null, this.store = e;
845
+ }
846
+ }
847
+ const nr = (t, e) => t === e;
848
+ function ir(t, e) {
849
+ return !t && !e ? !0 : !t || !e ? !1 : t.x === e.x && t.y === e.y;
850
+ }
851
+ function sr(t, e, r = nr) {
852
+ if (t.length !== e.length)
853
+ return !1;
854
+ for (let n = 0; n < t.length; ++n)
855
+ if (!r(t[n], e[n]))
856
+ return !1;
857
+ return !0;
858
+ }
859
+ function or(t = R, e) {
860
+ switch (e.type) {
861
+ case H:
862
+ break;
863
+ case ne:
864
+ case ie:
865
+ case V:
866
+ case se:
867
+ return R;
868
+ case A:
869
+ case te:
870
+ case U:
871
+ case j:
872
+ default:
873
+ return re;
874
+ }
875
+ const { targetIds: r = [], prevTargetIds: n = [] } = e.payload, i = lt(r, n);
876
+ if (!(i.length > 0 || !sr(r, n)))
877
+ return R;
878
+ const o = n[n.length - 1], a = r[r.length - 1];
879
+ return o !== a && (o && i.push(o), a && i.push(a)), i;
880
+ }
881
+ function ar(t, e, r) {
882
+ return e in t ? Object.defineProperty(t, e, {
883
+ value: r,
884
+ enumerable: !0,
885
+ configurable: !0,
886
+ writable: !0
887
+ }) : t[e] = r, t;
888
+ }
889
+ function cr(t) {
890
+ for (var e = 1; e < arguments.length; e++) {
891
+ var r = arguments[e] != null ? arguments[e] : {}, n = Object.keys(r);
892
+ typeof Object.getOwnPropertySymbols == "function" && (n = n.concat(Object.getOwnPropertySymbols(r).filter(function(i) {
893
+ return Object.getOwnPropertyDescriptor(r, i).enumerable;
894
+ }))), n.forEach(function(i) {
895
+ ar(t, i, r[i]);
896
+ });
897
+ }
898
+ return t;
899
+ }
900
+ const ve = {
901
+ initialSourceClientOffset: null,
902
+ initialClientOffset: null,
903
+ clientOffset: null
904
+ };
905
+ function ur(t = ve, e) {
906
+ const { payload: r } = e;
907
+ switch (e.type) {
908
+ case ee:
909
+ case A:
910
+ return {
911
+ initialSourceClientOffset: r.sourceClientOffset,
912
+ initialClientOffset: r.clientOffset,
913
+ clientOffset: r.clientOffset
914
+ };
915
+ case H:
916
+ return ir(t.clientOffset, r.clientOffset) ? t : cr({}, t, {
917
+ clientOffset: r.clientOffset
918
+ });
919
+ case U:
920
+ case j:
921
+ return ve;
922
+ default:
923
+ return t;
924
+ }
925
+ }
926
+ function lr(t, e, r) {
927
+ return e in t ? Object.defineProperty(t, e, {
928
+ value: r,
929
+ enumerable: !0,
930
+ configurable: !0,
931
+ writable: !0
932
+ }) : t[e] = r, t;
933
+ }
934
+ function P(t) {
935
+ for (var e = 1; e < arguments.length; e++) {
936
+ var r = arguments[e] != null ? arguments[e] : {}, n = Object.keys(r);
937
+ typeof Object.getOwnPropertySymbols == "function" && (n = n.concat(Object.getOwnPropertySymbols(r).filter(function(i) {
938
+ return Object.getOwnPropertyDescriptor(r, i).enumerable;
939
+ }))), n.forEach(function(i) {
940
+ lr(t, i, r[i]);
941
+ });
942
+ }
943
+ return t;
944
+ }
945
+ const dr = {
946
+ itemType: null,
947
+ item: null,
948
+ sourceId: null,
949
+ targetIds: [],
950
+ dropResult: null,
951
+ didDrop: !1,
952
+ isSourcePublic: null
953
+ };
954
+ function gr(t = dr, e) {
955
+ const { payload: r } = e;
956
+ switch (e.type) {
957
+ case A:
958
+ return P({}, t, {
959
+ itemType: r.itemType,
960
+ item: r.item,
961
+ sourceId: r.sourceId,
962
+ isSourcePublic: r.isSourcePublic,
963
+ dropResult: null,
964
+ didDrop: !1
965
+ });
966
+ case te:
967
+ return P({}, t, {
968
+ isSourcePublic: !0
969
+ });
970
+ case H:
971
+ return P({}, t, {
972
+ targetIds: r.targetIds
973
+ });
974
+ case V:
975
+ return t.targetIds.indexOf(r.targetId) === -1 ? t : P({}, t, {
976
+ targetIds: ut(t.targetIds, r.targetId)
977
+ });
978
+ case j:
979
+ return P({}, t, {
980
+ dropResult: r.dropResult,
981
+ didDrop: !0,
982
+ targetIds: []
983
+ });
984
+ case U:
985
+ return P({}, t, {
986
+ itemType: null,
987
+ item: null,
988
+ sourceId: null,
989
+ dropResult: null,
990
+ didDrop: !1,
991
+ isSourcePublic: null,
992
+ targetIds: []
993
+ });
994
+ default:
995
+ return t;
996
+ }
997
+ }
998
+ function fr(t = 0, e) {
999
+ switch (e.type) {
1000
+ case ne:
1001
+ case ie:
1002
+ return t + 1;
1003
+ case se:
1004
+ case V:
1005
+ return t - 1;
1006
+ default:
1007
+ return t;
1008
+ }
1009
+ }
1010
+ function hr(t = 0) {
1011
+ return t + 1;
1012
+ }
1013
+ function pr(t, e, r) {
1014
+ return e in t ? Object.defineProperty(t, e, {
1015
+ value: r,
1016
+ enumerable: !0,
1017
+ configurable: !0,
1018
+ writable: !0
1019
+ }) : t[e] = r, t;
1020
+ }
1021
+ function mr(t) {
1022
+ for (var e = 1; e < arguments.length; e++) {
1023
+ var r = arguments[e] != null ? arguments[e] : {}, n = Object.keys(r);
1024
+ typeof Object.getOwnPropertySymbols == "function" && (n = n.concat(Object.getOwnPropertySymbols(r).filter(function(i) {
1025
+ return Object.getOwnPropertyDescriptor(r, i).enumerable;
1026
+ }))), n.forEach(function(i) {
1027
+ pr(t, i, r[i]);
1028
+ });
1029
+ }
1030
+ return t;
1031
+ }
1032
+ function vr(t = {}, e) {
1033
+ return {
1034
+ dirtyHandlerIds: or(t.dirtyHandlerIds, {
1035
+ type: e.type,
1036
+ payload: mr({}, e.payload, {
1037
+ prevTargetIds: ct(t, "dragOperation.targetIds", [])
1038
+ })
1039
+ }),
1040
+ dragOffset: ur(t.dragOffset, e),
1041
+ refCount: fr(t.refCount, e),
1042
+ dragOperation: gr(t.dragOperation, e),
1043
+ stateId: hr(t.stateId)
1044
+ };
1045
+ }
1046
+ function Dr(t, e = void 0, r = {}, n = !1) {
1047
+ const i = yr(n), s = new Ut(i, new rr(i)), o = new Lt(i, s), a = t(o, e, r);
1048
+ return o.receiveBackend(a), o;
1049
+ }
1050
+ function yr(t) {
1051
+ const e = typeof window < "u" && window.__REDUX_DEVTOOLS_EXTENSION__;
1052
+ return Ce(vr, t && e && e({
1053
+ name: "dnd-core",
1054
+ instanceId: "dnd-core"
1055
+ }));
1056
+ }
1057
+ function Sr(t, e) {
1058
+ if (t == null) return {};
1059
+ var r = Or(t, e), n, i;
1060
+ if (Object.getOwnPropertySymbols) {
1061
+ var s = Object.getOwnPropertySymbols(t);
1062
+ for (i = 0; i < s.length; i++)
1063
+ n = s[i], !(e.indexOf(n) >= 0) && Object.prototype.propertyIsEnumerable.call(t, n) && (r[n] = t[n]);
1064
+ }
1065
+ return r;
1066
+ }
1067
+ function Or(t, e) {
1068
+ if (t == null) return {};
1069
+ var r = {}, n = Object.keys(t), i, s;
1070
+ for (s = 0; s < n.length; s++)
1071
+ i = n[s], !(e.indexOf(i) >= 0) && (r[i] = t[i]);
1072
+ return r;
1073
+ }
1074
+ let De = 0;
1075
+ const L = /* @__PURE__ */ Symbol.for("__REACT_DND_CONTEXT_INSTANCE__");
1076
+ var Tr = /* @__PURE__ */ Ye(function(e) {
1077
+ var { children: r } = e, n = Sr(e, [
1078
+ "children"
1079
+ ]);
1080
+ const [i, s] = br(n);
1081
+ return k(() => {
1082
+ if (s) {
1083
+ const o = _e();
1084
+ return ++De, () => {
1085
+ --De === 0 && (o[L] = null);
1086
+ };
1087
+ }
1088
+ }, []), /* @__PURE__ */ m(we.Provider, {
1089
+ value: i,
1090
+ children: r
1091
+ });
1092
+ });
1093
+ function br(t) {
1094
+ if ("manager" in t)
1095
+ return [
1096
+ {
1097
+ dragDropManager: t.manager
1098
+ },
1099
+ !1
1100
+ ];
1101
+ const e = Er(t.backend, t.context, t.options, t.debugMode), r = !t.context;
1102
+ return [
1103
+ e,
1104
+ r
1105
+ ];
1106
+ }
1107
+ function Er(t, e = _e(), r, n) {
1108
+ const i = e;
1109
+ return i[L] || (i[L] = {
1110
+ dragDropManager: Dr(t, e, r, n)
1111
+ }), i[L];
1112
+ }
1113
+ function _e() {
1114
+ return typeof global < "u" ? global : window;
1115
+ }
1116
+ var q, ye;
1117
+ function Ir() {
1118
+ return ye || (ye = 1, q = function t(e, r) {
1119
+ if (e === r) return !0;
1120
+ if (e && r && typeof e == "object" && typeof r == "object") {
1121
+ if (e.constructor !== r.constructor) return !1;
1122
+ var n, i, s;
1123
+ if (Array.isArray(e)) {
1124
+ if (n = e.length, n != r.length) return !1;
1125
+ for (i = n; i-- !== 0; )
1126
+ if (!t(e[i], r[i])) return !1;
1127
+ return !0;
1128
+ }
1129
+ if (e.constructor === RegExp) return e.source === r.source && e.flags === r.flags;
1130
+ if (e.valueOf !== Object.prototype.valueOf) return e.valueOf() === r.valueOf();
1131
+ if (e.toString !== Object.prototype.toString) return e.toString() === r.toString();
1132
+ if (s = Object.keys(e), n = s.length, n !== Object.keys(r).length) return !1;
1133
+ for (i = n; i-- !== 0; )
1134
+ if (!Object.prototype.hasOwnProperty.call(r, s[i])) return !1;
1135
+ for (i = n; i-- !== 0; ) {
1136
+ var o = s[i];
1137
+ if (!t(e[o], r[o])) return !1;
1138
+ }
1139
+ return !0;
1140
+ }
1141
+ return e !== e && r !== r;
1142
+ }), q;
1143
+ }
1144
+ var wr = Ir();
1145
+ const Cr = /* @__PURE__ */ tt(wr), C = typeof window < "u" ? Xe : k;
1146
+ function Nr(t, e, r) {
1147
+ const [n, i] = Ee(
1148
+ () => e(t)
1149
+ ), s = Ie(() => {
1150
+ const o = e(t);
1151
+ Cr(n, o) || (i(o), r && r());
1152
+ }, [
1153
+ n,
1154
+ t,
1155
+ r
1156
+ ]);
1157
+ return C(s), [
1158
+ n,
1159
+ s
1160
+ ];
1161
+ }
1162
+ function Pr(t, e, r) {
1163
+ const [n, i] = Nr(t, e, r);
1164
+ return C(function() {
1165
+ const o = t.getHandlerId();
1166
+ if (o != null)
1167
+ return t.subscribeToStateChange(i, {
1168
+ handlerIds: [
1169
+ o
1170
+ ]
1171
+ });
1172
+ }, [
1173
+ t,
1174
+ i
1175
+ ]), n;
1176
+ }
1177
+ function Le(t, e, r) {
1178
+ return Pr(
1179
+ e,
1180
+ t || (() => ({})),
1181
+ () => r.reconnect()
1182
+ );
1183
+ }
1184
+ function ke(t, e) {
1185
+ const r = [];
1186
+ return typeof t != "function" && r.push(t), b(() => typeof t == "function" ? t() : t, r);
1187
+ }
1188
+ function xr(t) {
1189
+ return b(
1190
+ () => t.hooks.dragSource(),
1191
+ [
1192
+ t
1193
+ ]
1194
+ );
1195
+ }
1196
+ function Rr(t) {
1197
+ return b(
1198
+ () => t.hooks.dragPreview(),
1199
+ [
1200
+ t
1201
+ ]
1202
+ );
1203
+ }
1204
+ let $ = !1, G = !1;
1205
+ class Mr {
1206
+ receiveHandlerId(e) {
1207
+ this.sourceId = e;
1208
+ }
1209
+ getHandlerId() {
1210
+ return this.sourceId;
1211
+ }
1212
+ canDrag() {
1213
+ l(!$, "You may not call monitor.canDrag() inside your canDrag() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");
1214
+ try {
1215
+ return $ = !0, this.internalMonitor.canDragSource(this.sourceId);
1216
+ } finally {
1217
+ $ = !1;
1218
+ }
1219
+ }
1220
+ isDragging() {
1221
+ if (!this.sourceId)
1222
+ return !1;
1223
+ l(!G, "You may not call monitor.isDragging() inside your isDragging() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");
1224
+ try {
1225
+ return G = !0, this.internalMonitor.isDraggingSource(this.sourceId);
1226
+ } finally {
1227
+ G = !1;
1228
+ }
1229
+ }
1230
+ subscribeToStateChange(e, r) {
1231
+ return this.internalMonitor.subscribeToStateChange(e, r);
1232
+ }
1233
+ isDraggingSource(e) {
1234
+ return this.internalMonitor.isDraggingSource(e);
1235
+ }
1236
+ isOverTarget(e, r) {
1237
+ return this.internalMonitor.isOverTarget(e, r);
1238
+ }
1239
+ getTargetIds() {
1240
+ return this.internalMonitor.getTargetIds();
1241
+ }
1242
+ isSourcePublic() {
1243
+ return this.internalMonitor.isSourcePublic();
1244
+ }
1245
+ getSourceId() {
1246
+ return this.internalMonitor.getSourceId();
1247
+ }
1248
+ subscribeToOffsetChange(e) {
1249
+ return this.internalMonitor.subscribeToOffsetChange(e);
1250
+ }
1251
+ canDragSource(e) {
1252
+ return this.internalMonitor.canDragSource(e);
1253
+ }
1254
+ canDropOnTarget(e) {
1255
+ return this.internalMonitor.canDropOnTarget(e);
1256
+ }
1257
+ getItemType() {
1258
+ return this.internalMonitor.getItemType();
1259
+ }
1260
+ getItem() {
1261
+ return this.internalMonitor.getItem();
1262
+ }
1263
+ getDropResult() {
1264
+ return this.internalMonitor.getDropResult();
1265
+ }
1266
+ didDrop() {
1267
+ return this.internalMonitor.didDrop();
1268
+ }
1269
+ getInitialClientOffset() {
1270
+ return this.internalMonitor.getInitialClientOffset();
1271
+ }
1272
+ getInitialSourceClientOffset() {
1273
+ return this.internalMonitor.getInitialSourceClientOffset();
1274
+ }
1275
+ getSourceClientOffset() {
1276
+ return this.internalMonitor.getSourceClientOffset();
1277
+ }
1278
+ getClientOffset() {
1279
+ return this.internalMonitor.getClientOffset();
1280
+ }
1281
+ getDifferenceFromInitialOffset() {
1282
+ return this.internalMonitor.getDifferenceFromInitialOffset();
1283
+ }
1284
+ constructor(e) {
1285
+ this.sourceId = null, this.internalMonitor = e.getMonitor();
1286
+ }
1287
+ }
1288
+ let Y = !1;
1289
+ class _r {
1290
+ receiveHandlerId(e) {
1291
+ this.targetId = e;
1292
+ }
1293
+ getHandlerId() {
1294
+ return this.targetId;
1295
+ }
1296
+ subscribeToStateChange(e, r) {
1297
+ return this.internalMonitor.subscribeToStateChange(e, r);
1298
+ }
1299
+ canDrop() {
1300
+ if (!this.targetId)
1301
+ return !1;
1302
+ l(!Y, "You may not call monitor.canDrop() inside your canDrop() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target-monitor");
1303
+ try {
1304
+ return Y = !0, this.internalMonitor.canDropOnTarget(this.targetId);
1305
+ } finally {
1306
+ Y = !1;
1307
+ }
1308
+ }
1309
+ isOver(e) {
1310
+ return this.targetId ? this.internalMonitor.isOverTarget(this.targetId, e) : !1;
1311
+ }
1312
+ getItemType() {
1313
+ return this.internalMonitor.getItemType();
1314
+ }
1315
+ getItem() {
1316
+ return this.internalMonitor.getItem();
1317
+ }
1318
+ getDropResult() {
1319
+ return this.internalMonitor.getDropResult();
1320
+ }
1321
+ didDrop() {
1322
+ return this.internalMonitor.didDrop();
1323
+ }
1324
+ getInitialClientOffset() {
1325
+ return this.internalMonitor.getInitialClientOffset();
1326
+ }
1327
+ getInitialSourceClientOffset() {
1328
+ return this.internalMonitor.getInitialSourceClientOffset();
1329
+ }
1330
+ getSourceClientOffset() {
1331
+ return this.internalMonitor.getSourceClientOffset();
1332
+ }
1333
+ getClientOffset() {
1334
+ return this.internalMonitor.getClientOffset();
1335
+ }
1336
+ getDifferenceFromInitialOffset() {
1337
+ return this.internalMonitor.getDifferenceFromInitialOffset();
1338
+ }
1339
+ constructor(e) {
1340
+ this.targetId = null, this.internalMonitor = e.getMonitor();
1341
+ }
1342
+ }
1343
+ function Lr(t, e, r) {
1344
+ const n = r.getRegistry(), i = n.addTarget(t, e);
1345
+ return [
1346
+ i,
1347
+ () => n.removeTarget(i)
1348
+ ];
1349
+ }
1350
+ function kr(t, e, r) {
1351
+ const n = r.getRegistry(), i = n.addSource(t, e);
1352
+ return [
1353
+ i,
1354
+ () => n.removeSource(i)
1355
+ ];
1356
+ }
1357
+ function K(t, e, r, n) {
1358
+ let i;
1359
+ if (i !== void 0)
1360
+ return !!i;
1361
+ if (t === e)
1362
+ return !0;
1363
+ if (typeof t != "object" || !t || typeof e != "object" || !e)
1364
+ return !1;
1365
+ const s = Object.keys(t), o = Object.keys(e);
1366
+ if (s.length !== o.length)
1367
+ return !1;
1368
+ const a = Object.prototype.hasOwnProperty.bind(e);
1369
+ for (let c = 0; c < s.length; c++) {
1370
+ const d = s[c];
1371
+ if (!a(d))
1372
+ return !1;
1373
+ const f = t[d], p = e[d];
1374
+ if (i = void 0, i === !1 || i === void 0 && f !== p)
1375
+ return !1;
1376
+ }
1377
+ return !0;
1378
+ }
1379
+ function J(t) {
1380
+ return (
1381
+ // eslint-disable-next-line no-prototype-builtins
1382
+ t !== null && typeof t == "object" && Object.prototype.hasOwnProperty.call(t, "current")
1383
+ );
1384
+ }
1385
+ function Ar(t) {
1386
+ if (typeof t.type == "string")
1387
+ return;
1388
+ const e = t.type.displayName || t.type.name || "the component";
1389
+ throw new Error(`Only native element nodes can now be passed to React DnD connectors.You can either wrap ${e} into a <div>, or turn it into a drag source or a drop target itself.`);
1390
+ }
1391
+ function Hr(t) {
1392
+ return (e = null, r = null) => {
1393
+ if (!We(e)) {
1394
+ const s = e;
1395
+ return t(s, r), s;
1396
+ }
1397
+ const n = e;
1398
+ return Ar(n), jr(n, r ? (s) => t(s, r) : t);
1399
+ };
1400
+ }
1401
+ function Ae(t) {
1402
+ const e = {};
1403
+ return Object.keys(t).forEach((r) => {
1404
+ const n = t[r];
1405
+ if (r.endsWith("Ref"))
1406
+ e[r] = t[r];
1407
+ else {
1408
+ const i = Hr(n);
1409
+ e[r] = () => i;
1410
+ }
1411
+ }), e;
1412
+ }
1413
+ function Se(t, e) {
1414
+ typeof t == "function" ? t(e) : t.current = e;
1415
+ }
1416
+ function jr(t, e) {
1417
+ const r = t.ref;
1418
+ return l(typeof r != "string", "Cannot connect React DnD to an element with an existing string ref. Please convert it to use a callback ref instead, or wrap it into a <span> or <div>. Read more: https://reactjs.org/docs/refs-and-the-dom.html#callback-refs"), r ? ae(t, {
1419
+ ref: (n) => {
1420
+ Se(r, n), Se(e, n);
1421
+ }
1422
+ }) : ae(t, {
1423
+ ref: e
1424
+ });
1425
+ }
1426
+ class Ur {
1427
+ receiveHandlerId(e) {
1428
+ this.handlerId !== e && (this.handlerId = e, this.reconnect());
1429
+ }
1430
+ get connectTarget() {
1431
+ return this.dragSource;
1432
+ }
1433
+ get dragSourceOptions() {
1434
+ return this.dragSourceOptionsInternal;
1435
+ }
1436
+ set dragSourceOptions(e) {
1437
+ this.dragSourceOptionsInternal = e;
1438
+ }
1439
+ get dragPreviewOptions() {
1440
+ return this.dragPreviewOptionsInternal;
1441
+ }
1442
+ set dragPreviewOptions(e) {
1443
+ this.dragPreviewOptionsInternal = e;
1444
+ }
1445
+ reconnect() {
1446
+ const e = this.reconnectDragSource();
1447
+ this.reconnectDragPreview(e);
1448
+ }
1449
+ reconnectDragSource() {
1450
+ const e = this.dragSource, r = this.didHandlerIdChange() || this.didConnectedDragSourceChange() || this.didDragSourceOptionsChange();
1451
+ return r && this.disconnectDragSource(), this.handlerId ? e ? (r && (this.lastConnectedHandlerId = this.handlerId, this.lastConnectedDragSource = e, this.lastConnectedDragSourceOptions = this.dragSourceOptions, this.dragSourceUnsubscribe = this.backend.connectDragSource(this.handlerId, e, this.dragSourceOptions)), r) : (this.lastConnectedDragSource = e, r) : r;
1452
+ }
1453
+ reconnectDragPreview(e = !1) {
1454
+ const r = this.dragPreview, n = e || this.didHandlerIdChange() || this.didConnectedDragPreviewChange() || this.didDragPreviewOptionsChange();
1455
+ if (n && this.disconnectDragPreview(), !!this.handlerId) {
1456
+ if (!r) {
1457
+ this.lastConnectedDragPreview = r;
1458
+ return;
1459
+ }
1460
+ n && (this.lastConnectedHandlerId = this.handlerId, this.lastConnectedDragPreview = r, this.lastConnectedDragPreviewOptions = this.dragPreviewOptions, this.dragPreviewUnsubscribe = this.backend.connectDragPreview(this.handlerId, r, this.dragPreviewOptions));
1461
+ }
1462
+ }
1463
+ didHandlerIdChange() {
1464
+ return this.lastConnectedHandlerId !== this.handlerId;
1465
+ }
1466
+ didConnectedDragSourceChange() {
1467
+ return this.lastConnectedDragSource !== this.dragSource;
1468
+ }
1469
+ didConnectedDragPreviewChange() {
1470
+ return this.lastConnectedDragPreview !== this.dragPreview;
1471
+ }
1472
+ didDragSourceOptionsChange() {
1473
+ return !K(this.lastConnectedDragSourceOptions, this.dragSourceOptions);
1474
+ }
1475
+ didDragPreviewOptionsChange() {
1476
+ return !K(this.lastConnectedDragPreviewOptions, this.dragPreviewOptions);
1477
+ }
1478
+ disconnectDragSource() {
1479
+ this.dragSourceUnsubscribe && (this.dragSourceUnsubscribe(), this.dragSourceUnsubscribe = void 0);
1480
+ }
1481
+ disconnectDragPreview() {
1482
+ this.dragPreviewUnsubscribe && (this.dragPreviewUnsubscribe(), this.dragPreviewUnsubscribe = void 0, this.dragPreviewNode = null, this.dragPreviewRef = null);
1483
+ }
1484
+ get dragSource() {
1485
+ return this.dragSourceNode || this.dragSourceRef && this.dragSourceRef.current;
1486
+ }
1487
+ get dragPreview() {
1488
+ return this.dragPreviewNode || this.dragPreviewRef && this.dragPreviewRef.current;
1489
+ }
1490
+ clearDragSource() {
1491
+ this.dragSourceNode = null, this.dragSourceRef = null;
1492
+ }
1493
+ clearDragPreview() {
1494
+ this.dragPreviewNode = null, this.dragPreviewRef = null;
1495
+ }
1496
+ constructor(e) {
1497
+ this.hooks = Ae({
1498
+ dragSource: (r, n) => {
1499
+ this.clearDragSource(), this.dragSourceOptions = n || null, J(r) ? this.dragSourceRef = r : this.dragSourceNode = r, this.reconnectDragSource();
1500
+ },
1501
+ dragPreview: (r, n) => {
1502
+ this.clearDragPreview(), this.dragPreviewOptions = n || null, J(r) ? this.dragPreviewRef = r : this.dragPreviewNode = r, this.reconnectDragPreview();
1503
+ }
1504
+ }), this.handlerId = null, this.dragSourceRef = null, this.dragSourceOptionsInternal = null, this.dragPreviewRef = null, this.dragPreviewOptionsInternal = null, this.lastConnectedHandlerId = null, this.lastConnectedDragSource = null, this.lastConnectedDragSourceOptions = null, this.lastConnectedDragPreview = null, this.lastConnectedDragPreviewOptions = null, this.backend = e;
1505
+ }
1506
+ }
1507
+ class Vr {
1508
+ get connectTarget() {
1509
+ return this.dropTarget;
1510
+ }
1511
+ reconnect() {
1512
+ const e = this.didHandlerIdChange() || this.didDropTargetChange() || this.didOptionsChange();
1513
+ e && this.disconnectDropTarget();
1514
+ const r = this.dropTarget;
1515
+ if (this.handlerId) {
1516
+ if (!r) {
1517
+ this.lastConnectedDropTarget = r;
1518
+ return;
1519
+ }
1520
+ e && (this.lastConnectedHandlerId = this.handlerId, this.lastConnectedDropTarget = r, this.lastConnectedDropTargetOptions = this.dropTargetOptions, this.unsubscribeDropTarget = this.backend.connectDropTarget(this.handlerId, r, this.dropTargetOptions));
1521
+ }
1522
+ }
1523
+ receiveHandlerId(e) {
1524
+ e !== this.handlerId && (this.handlerId = e, this.reconnect());
1525
+ }
1526
+ get dropTargetOptions() {
1527
+ return this.dropTargetOptionsInternal;
1528
+ }
1529
+ set dropTargetOptions(e) {
1530
+ this.dropTargetOptionsInternal = e;
1531
+ }
1532
+ didHandlerIdChange() {
1533
+ return this.lastConnectedHandlerId !== this.handlerId;
1534
+ }
1535
+ didDropTargetChange() {
1536
+ return this.lastConnectedDropTarget !== this.dropTarget;
1537
+ }
1538
+ didOptionsChange() {
1539
+ return !K(this.lastConnectedDropTargetOptions, this.dropTargetOptions);
1540
+ }
1541
+ disconnectDropTarget() {
1542
+ this.unsubscribeDropTarget && (this.unsubscribeDropTarget(), this.unsubscribeDropTarget = void 0);
1543
+ }
1544
+ get dropTarget() {
1545
+ return this.dropTargetNode || this.dropTargetRef && this.dropTargetRef.current;
1546
+ }
1547
+ clearDropTarget() {
1548
+ this.dropTargetRef = null, this.dropTargetNode = null;
1549
+ }
1550
+ constructor(e) {
1551
+ this.hooks = Ae({
1552
+ dropTarget: (r, n) => {
1553
+ this.clearDropTarget(), this.dropTargetOptions = n, J(r) ? this.dropTargetRef = r : this.dropTargetNode = r, this.reconnect();
1554
+ }
1555
+ }), this.handlerId = null, this.dropTargetRef = null, this.dropTargetOptionsInternal = null, this.lastConnectedHandlerId = null, this.lastConnectedDropTarget = null, this.lastConnectedDropTargetOptions = null, this.backend = e;
1556
+ }
1557
+ }
1558
+ function x() {
1559
+ const { dragDropManager: t } = ze(we);
1560
+ return l(t != null, "Expected drag drop context"), t;
1561
+ }
1562
+ function Fr(t, e) {
1563
+ const r = x(), n = b(
1564
+ () => new Ur(r.getBackend()),
1565
+ [
1566
+ r
1567
+ ]
1568
+ );
1569
+ return C(() => (n.dragSourceOptions = t || null, n.reconnect(), () => n.disconnectDragSource()), [
1570
+ n,
1571
+ t
1572
+ ]), C(() => (n.dragPreviewOptions = e || null, n.reconnect(), () => n.disconnectDragPreview()), [
1573
+ n,
1574
+ e
1575
+ ]), n;
1576
+ }
1577
+ function Br() {
1578
+ const t = x();
1579
+ return b(
1580
+ () => new Mr(t),
1581
+ [
1582
+ t
1583
+ ]
1584
+ );
1585
+ }
1586
+ class qr {
1587
+ beginDrag() {
1588
+ const e = this.spec, r = this.monitor;
1589
+ let n = null;
1590
+ return typeof e.item == "object" ? n = e.item : typeof e.item == "function" ? n = e.item(r) : n = {}, n ?? null;
1591
+ }
1592
+ canDrag() {
1593
+ const e = this.spec, r = this.monitor;
1594
+ return typeof e.canDrag == "boolean" ? e.canDrag : typeof e.canDrag == "function" ? e.canDrag(r) : !0;
1595
+ }
1596
+ isDragging(e, r) {
1597
+ const n = this.spec, i = this.monitor, { isDragging: s } = n;
1598
+ return s ? s(i) : r === e.getSourceId();
1599
+ }
1600
+ endDrag() {
1601
+ const e = this.spec, r = this.monitor, n = this.connector, { end: i } = e;
1602
+ i && i(r.getItem(), r), n.reconnect();
1603
+ }
1604
+ constructor(e, r, n) {
1605
+ this.spec = e, this.monitor = r, this.connector = n;
1606
+ }
1607
+ }
1608
+ function $r(t, e, r) {
1609
+ const n = b(
1610
+ () => new qr(t, e, r),
1611
+ [
1612
+ e,
1613
+ r
1614
+ ]
1615
+ );
1616
+ return k(() => {
1617
+ n.spec = t;
1618
+ }, [
1619
+ t
1620
+ ]), n;
1621
+ }
1622
+ function Gr(t) {
1623
+ return b(() => {
1624
+ const e = t.type;
1625
+ return l(e != null, "spec.type must be defined"), e;
1626
+ }, [
1627
+ t
1628
+ ]);
1629
+ }
1630
+ function Yr(t, e, r) {
1631
+ const n = x(), i = $r(t, e, r), s = Gr(t);
1632
+ C(function() {
1633
+ if (s != null) {
1634
+ const [a, c] = kr(s, i, n);
1635
+ return e.receiveHandlerId(a), r.receiveHandlerId(a), c;
1636
+ }
1637
+ }, [
1638
+ n,
1639
+ e,
1640
+ r,
1641
+ i,
1642
+ s
1643
+ ]);
1644
+ }
1645
+ function Xr(t, e) {
1646
+ const r = ke(t);
1647
+ l(!r.begin, "useDrag::spec.begin was deprecated in v14. Replace spec.begin() with spec.item(). (see more here - https://react-dnd.github.io/react-dnd/docs/api/use-drag)");
1648
+ const n = Br(), i = Fr(r.options, r.previewOptions);
1649
+ return Yr(r, n, i), [
1650
+ Le(r.collect, n, i),
1651
+ xr(i),
1652
+ Rr(i)
1653
+ ];
1654
+ }
1655
+ function Wr(t) {
1656
+ return b(
1657
+ () => t.hooks.dropTarget(),
1658
+ [
1659
+ t
1660
+ ]
1661
+ );
1662
+ }
1663
+ function zr(t) {
1664
+ const e = x(), r = b(
1665
+ () => new Vr(e.getBackend()),
1666
+ [
1667
+ e
1668
+ ]
1669
+ );
1670
+ return C(() => (r.dropTargetOptions = t || null, r.reconnect(), () => r.disconnectDropTarget()), [
1671
+ t
1672
+ ]), r;
1673
+ }
1674
+ function Qr() {
1675
+ const t = x();
1676
+ return b(
1677
+ () => new _r(t),
1678
+ [
1679
+ t
1680
+ ]
1681
+ );
1682
+ }
1683
+ function Kr(t) {
1684
+ const { accept: e } = t;
1685
+ return b(() => (l(t.accept != null, "accept must be defined"), Array.isArray(e) ? e : [
1686
+ e
1687
+ ]), [
1688
+ e
1689
+ ]);
1690
+ }
1691
+ class Jr {
1692
+ canDrop() {
1693
+ const e = this.spec, r = this.monitor;
1694
+ return e.canDrop ? e.canDrop(r.getItem(), r) : !0;
1695
+ }
1696
+ hover() {
1697
+ const e = this.spec, r = this.monitor;
1698
+ e.hover && e.hover(r.getItem(), r);
1699
+ }
1700
+ drop() {
1701
+ const e = this.spec, r = this.monitor;
1702
+ if (e.drop)
1703
+ return e.drop(r.getItem(), r);
1704
+ }
1705
+ constructor(e, r) {
1706
+ this.spec = e, this.monitor = r;
1707
+ }
1708
+ }
1709
+ function Zr(t, e) {
1710
+ const r = b(
1711
+ () => new Jr(t, e),
1712
+ [
1713
+ e
1714
+ ]
1715
+ );
1716
+ return k(() => {
1717
+ r.spec = t;
1718
+ }, [
1719
+ t
1720
+ ]), r;
1721
+ }
1722
+ function en(t, e, r) {
1723
+ const n = x(), i = Zr(t, e), s = Kr(t);
1724
+ C(function() {
1725
+ const [a, c] = Lr(s, i, n);
1726
+ return e.receiveHandlerId(a), r.receiveHandlerId(a), c;
1727
+ }, [
1728
+ n,
1729
+ e,
1730
+ i,
1731
+ r,
1732
+ s.map(
1733
+ (o) => o.toString()
1734
+ ).join("|")
1735
+ ]);
1736
+ }
1737
+ function tn(t, e) {
1738
+ const r = ke(t), n = Qr(), i = zr(r.options);
1739
+ return en(r, n, i), [
1740
+ Le(r.collect, n, i),
1741
+ Wr(i)
1742
+ ];
1743
+ }
1744
+ function He(t) {
1745
+ let e = null;
1746
+ return () => (e == null && (e = t()), e);
1747
+ }
1748
+ function rn(t, e) {
1749
+ return t.filter(
1750
+ (r) => r !== e
1751
+ );
1752
+ }
1753
+ function nn(t, e) {
1754
+ const r = /* @__PURE__ */ new Set(), n = (s) => r.add(s);
1755
+ t.forEach(n), e.forEach(n);
1756
+ const i = [];
1757
+ return r.forEach(
1758
+ (s) => i.push(s)
1759
+ ), i;
1760
+ }
1761
+ class sn {
1762
+ enter(e) {
1763
+ const r = this.entered.length, n = (i) => this.isNodeInDocument(i) && (!i.contains || i.contains(e));
1764
+ return this.entered = nn(this.entered.filter(n), [
1765
+ e
1766
+ ]), r === 0 && this.entered.length > 0;
1767
+ }
1768
+ leave(e) {
1769
+ const r = this.entered.length;
1770
+ return this.entered = rn(this.entered.filter(this.isNodeInDocument), e), r > 0 && this.entered.length === 0;
1771
+ }
1772
+ reset() {
1773
+ this.entered = [];
1774
+ }
1775
+ constructor(e) {
1776
+ this.entered = [], this.isNodeInDocument = e;
1777
+ }
1778
+ }
1779
+ class on {
1780
+ initializeExposedProperties() {
1781
+ Object.keys(this.config.exposeProperties).forEach((e) => {
1782
+ Object.defineProperty(this.item, e, {
1783
+ configurable: !0,
1784
+ enumerable: !0,
1785
+ get() {
1786
+ return console.warn(`Browser doesn't allow reading "${e}" until the drop event.`), null;
1787
+ }
1788
+ });
1789
+ });
1790
+ }
1791
+ loadDataTransfer(e) {
1792
+ if (e) {
1793
+ const r = {};
1794
+ Object.keys(this.config.exposeProperties).forEach((n) => {
1795
+ const i = this.config.exposeProperties[n];
1796
+ i != null && (r[n] = {
1797
+ value: i(e, this.config.matchesTypes),
1798
+ configurable: !0,
1799
+ enumerable: !0
1800
+ });
1801
+ }), Object.defineProperties(this.item, r);
1802
+ }
1803
+ }
1804
+ canDrag() {
1805
+ return !0;
1806
+ }
1807
+ beginDrag() {
1808
+ return this.item;
1809
+ }
1810
+ isDragging(e, r) {
1811
+ return r === e.getSourceId();
1812
+ }
1813
+ endDrag() {
1814
+ }
1815
+ constructor(e) {
1816
+ this.config = e, this.item = {}, this.initializeExposedProperties();
1817
+ }
1818
+ }
1819
+ const je = "__NATIVE_FILE__", Ue = "__NATIVE_URL__", Ve = "__NATIVE_TEXT__", Fe = "__NATIVE_HTML__", Oe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1820
+ __proto__: null,
1821
+ FILE: je,
1822
+ HTML: Fe,
1823
+ TEXT: Ve,
1824
+ URL: Ue
1825
+ }, Symbol.toStringTag, { value: "Module" }));
1826
+ function X(t, e, r) {
1827
+ const n = e.reduce(
1828
+ (i, s) => i || t.getData(s),
1829
+ ""
1830
+ );
1831
+ return n ?? r;
1832
+ }
1833
+ const Z = {
1834
+ [je]: {
1835
+ exposeProperties: {
1836
+ files: (t) => Array.prototype.slice.call(t.files),
1837
+ items: (t) => t.items,
1838
+ dataTransfer: (t) => t
1839
+ },
1840
+ matchesTypes: [
1841
+ "Files"
1842
+ ]
1843
+ },
1844
+ [Fe]: {
1845
+ exposeProperties: {
1846
+ html: (t, e) => X(t, e, ""),
1847
+ dataTransfer: (t) => t
1848
+ },
1849
+ matchesTypes: [
1850
+ "Html",
1851
+ "text/html"
1852
+ ]
1853
+ },
1854
+ [Ue]: {
1855
+ exposeProperties: {
1856
+ urls: (t, e) => X(t, e, "").split(`
1857
+ `),
1858
+ dataTransfer: (t) => t
1859
+ },
1860
+ matchesTypes: [
1861
+ "Url",
1862
+ "text/uri-list"
1863
+ ]
1864
+ },
1865
+ [Ve]: {
1866
+ exposeProperties: {
1867
+ text: (t, e) => X(t, e, ""),
1868
+ dataTransfer: (t) => t
1869
+ },
1870
+ matchesTypes: [
1871
+ "Text",
1872
+ "text/plain"
1873
+ ]
1874
+ }
1875
+ };
1876
+ function an(t, e) {
1877
+ const r = Z[t];
1878
+ if (!r)
1879
+ throw new Error(`native type ${t} has no configuration`);
1880
+ const n = new on(r);
1881
+ return n.loadDataTransfer(e), n;
1882
+ }
1883
+ function W(t) {
1884
+ if (!t)
1885
+ return null;
1886
+ const e = Array.prototype.slice.call(t.types || []);
1887
+ return Object.keys(Z).filter((r) => {
1888
+ const n = Z[r];
1889
+ return n?.matchesTypes ? n.matchesTypes.some(
1890
+ (i) => e.indexOf(i) > -1
1891
+ ) : !1;
1892
+ })[0] || null;
1893
+ }
1894
+ const cn = He(
1895
+ () => /firefox/i.test(navigator.userAgent)
1896
+ ), Be = He(
1897
+ () => !!window.safari
1898
+ );
1899
+ class Te {
1900
+ interpolate(e) {
1901
+ const { xs: r, ys: n, c1s: i, c2s: s, c3s: o } = this;
1902
+ let a = r.length - 1;
1903
+ if (e === r[a])
1904
+ return n[a];
1905
+ let c = 0, d = o.length - 1, f;
1906
+ for (; c <= d; ) {
1907
+ f = Math.floor(0.5 * (c + d));
1908
+ const u = r[f];
1909
+ if (u < e)
1910
+ c = f + 1;
1911
+ else if (u > e)
1912
+ d = f - 1;
1913
+ else
1914
+ return n[f];
1915
+ }
1916
+ a = Math.max(0, d);
1917
+ const p = e - r[a], g = p * p;
1918
+ return n[a] + i[a] * p + s[a] * g + o[a] * p * g;
1919
+ }
1920
+ constructor(e, r) {
1921
+ const { length: n } = e, i = [];
1922
+ for (let u = 0; u < n; u++)
1923
+ i.push(u);
1924
+ i.sort(
1925
+ (u, D) => e[u] < e[D] ? -1 : 1
1926
+ );
1927
+ const s = [], o = [];
1928
+ let a, c;
1929
+ for (let u = 0; u < n - 1; u++)
1930
+ a = e[u + 1] - e[u], c = r[u + 1] - r[u], s.push(a), o.push(c / a);
1931
+ const d = [
1932
+ o[0]
1933
+ ];
1934
+ for (let u = 0; u < s.length - 1; u++) {
1935
+ const D = o[u], h = o[u + 1];
1936
+ if (D * h <= 0)
1937
+ d.push(0);
1938
+ else {
1939
+ a = s[u];
1940
+ const v = s[u + 1], y = a + v;
1941
+ d.push(3 * y / ((y + v) / D + (y + a) / h));
1942
+ }
1943
+ }
1944
+ d.push(o[o.length - 1]);
1945
+ const f = [], p = [];
1946
+ let g;
1947
+ for (let u = 0; u < d.length - 1; u++) {
1948
+ g = o[u];
1949
+ const D = d[u], h = 1 / s[u], v = D + d[u + 1] - g - g;
1950
+ f.push((g - D - v) * h), p.push(v * h * h);
1951
+ }
1952
+ this.xs = e, this.ys = r, this.c1s = d, this.c2s = f, this.c3s = p;
1953
+ }
1954
+ }
1955
+ const un = 1;
1956
+ function qe(t) {
1957
+ const e = t.nodeType === un ? t : t.parentElement;
1958
+ if (!e)
1959
+ return null;
1960
+ const { top: r, left: n } = e.getBoundingClientRect();
1961
+ return {
1962
+ x: n,
1963
+ y: r
1964
+ };
1965
+ }
1966
+ function M(t) {
1967
+ return {
1968
+ x: t.clientX,
1969
+ y: t.clientY
1970
+ };
1971
+ }
1972
+ function ln(t) {
1973
+ var e;
1974
+ return t.nodeName === "IMG" && (cn() || !(!((e = document.documentElement) === null || e === void 0) && e.contains(t)));
1975
+ }
1976
+ function dn(t, e, r, n) {
1977
+ let i = t ? e.width : r, s = t ? e.height : n;
1978
+ return Be() && t && (s /= window.devicePixelRatio, i /= window.devicePixelRatio), {
1979
+ dragPreviewWidth: i,
1980
+ dragPreviewHeight: s
1981
+ };
1982
+ }
1983
+ function gn(t, e, r, n, i) {
1984
+ const s = ln(e), a = qe(s ? t : e), c = {
1985
+ x: r.x - a.x,
1986
+ y: r.y - a.y
1987
+ }, { offsetWidth: d, offsetHeight: f } = t, { anchorX: p, anchorY: g } = n, { dragPreviewWidth: u, dragPreviewHeight: D } = dn(s, e, d, f), h = () => {
1988
+ let oe = new Te([
1989
+ 0,
1990
+ 0.5,
1991
+ 1
1992
+ ], [
1993
+ // Dock to the top
1994
+ c.y,
1995
+ // Align at the center
1996
+ c.y / f * D,
1997
+ // Dock to the bottom
1998
+ c.y + D - f
1999
+ ]).interpolate(g);
2000
+ return Be() && s && (oe += (window.devicePixelRatio - 1) * D), oe;
2001
+ }, v = () => new Te([
2002
+ 0,
2003
+ 0.5,
2004
+ 1
2005
+ ], [
2006
+ // Dock to the left
2007
+ c.x,
2008
+ // Align at the center
2009
+ c.x / d * u,
2010
+ // Dock to the right
2011
+ c.x + u - d
2012
+ ]).interpolate(p), { offsetX: y, offsetY: S } = i, I = y === 0 || y, F = S === 0 || S;
2013
+ return {
2014
+ x: I ? y : v(),
2015
+ y: F ? S : h()
2016
+ };
2017
+ }
2018
+ class fn {
2019
+ get window() {
2020
+ if (this.globalContext)
2021
+ return this.globalContext;
2022
+ if (typeof window < "u")
2023
+ return window;
2024
+ }
2025
+ get document() {
2026
+ var e;
2027
+ return !((e = this.globalContext) === null || e === void 0) && e.document ? this.globalContext.document : this.window ? this.window.document : void 0;
2028
+ }
2029
+ get rootElement() {
2030
+ var e;
2031
+ return ((e = this.optionsArgs) === null || e === void 0 ? void 0 : e.rootElement) || this.window;
2032
+ }
2033
+ constructor(e, r) {
2034
+ this.ownerDocument = null, this.globalContext = e, this.optionsArgs = r;
2035
+ }
2036
+ }
2037
+ function hn(t, e, r) {
2038
+ return e in t ? Object.defineProperty(t, e, {
2039
+ value: r,
2040
+ enumerable: !0,
2041
+ configurable: !0,
2042
+ writable: !0
2043
+ }) : t[e] = r, t;
2044
+ }
2045
+ function be(t) {
2046
+ for (var e = 1; e < arguments.length; e++) {
2047
+ var r = arguments[e] != null ? arguments[e] : {}, n = Object.keys(r);
2048
+ typeof Object.getOwnPropertySymbols == "function" && (n = n.concat(Object.getOwnPropertySymbols(r).filter(function(i) {
2049
+ return Object.getOwnPropertyDescriptor(r, i).enumerable;
2050
+ }))), n.forEach(function(i) {
2051
+ hn(t, i, r[i]);
2052
+ });
2053
+ }
2054
+ return t;
2055
+ }
2056
+ class pn {
2057
+ /**
2058
+ * Generate profiling statistics for the HTML5Backend.
2059
+ */
2060
+ profile() {
2061
+ var e, r;
2062
+ return {
2063
+ sourcePreviewNodes: this.sourcePreviewNodes.size,
2064
+ sourcePreviewNodeOptions: this.sourcePreviewNodeOptions.size,
2065
+ sourceNodeOptions: this.sourceNodeOptions.size,
2066
+ sourceNodes: this.sourceNodes.size,
2067
+ dragStartSourceIds: ((e = this.dragStartSourceIds) === null || e === void 0 ? void 0 : e.length) || 0,
2068
+ dropTargetIds: this.dropTargetIds.length,
2069
+ dragEnterTargetIds: this.dragEnterTargetIds.length,
2070
+ dragOverTargetIds: ((r = this.dragOverTargetIds) === null || r === void 0 ? void 0 : r.length) || 0
2071
+ };
2072
+ }
2073
+ // public for test
2074
+ get window() {
2075
+ return this.options.window;
2076
+ }
2077
+ get document() {
2078
+ return this.options.document;
2079
+ }
2080
+ /**
2081
+ * Get the root element to use for event subscriptions
2082
+ */
2083
+ get rootElement() {
2084
+ return this.options.rootElement;
2085
+ }
2086
+ setup() {
2087
+ const e = this.rootElement;
2088
+ if (e !== void 0) {
2089
+ if (e.__isReactDndBackendSetUp)
2090
+ throw new Error("Cannot have two HTML5 backends at the same time.");
2091
+ e.__isReactDndBackendSetUp = !0, this.addEventListeners(e);
2092
+ }
2093
+ }
2094
+ teardown() {
2095
+ const e = this.rootElement;
2096
+ if (e !== void 0 && (e.__isReactDndBackendSetUp = !1, this.removeEventListeners(this.rootElement), this.clearCurrentDragSourceNode(), this.asyncEndDragFrameId)) {
2097
+ var r;
2098
+ (r = this.window) === null || r === void 0 || r.cancelAnimationFrame(this.asyncEndDragFrameId);
2099
+ }
2100
+ }
2101
+ connectDragPreview(e, r, n) {
2102
+ return this.sourcePreviewNodeOptions.set(e, n), this.sourcePreviewNodes.set(e, r), () => {
2103
+ this.sourcePreviewNodes.delete(e), this.sourcePreviewNodeOptions.delete(e);
2104
+ };
2105
+ }
2106
+ connectDragSource(e, r, n) {
2107
+ this.sourceNodes.set(e, r), this.sourceNodeOptions.set(e, n);
2108
+ const i = (o) => this.handleDragStart(o, e), s = (o) => this.handleSelectStart(o);
2109
+ return r.setAttribute("draggable", "true"), r.addEventListener("dragstart", i), r.addEventListener("selectstart", s), () => {
2110
+ this.sourceNodes.delete(e), this.sourceNodeOptions.delete(e), r.removeEventListener("dragstart", i), r.removeEventListener("selectstart", s), r.setAttribute("draggable", "false");
2111
+ };
2112
+ }
2113
+ connectDropTarget(e, r) {
2114
+ const n = (o) => this.handleDragEnter(o, e), i = (o) => this.handleDragOver(o, e), s = (o) => this.handleDrop(o, e);
2115
+ return r.addEventListener("dragenter", n), r.addEventListener("dragover", i), r.addEventListener("drop", s), () => {
2116
+ r.removeEventListener("dragenter", n), r.removeEventListener("dragover", i), r.removeEventListener("drop", s);
2117
+ };
2118
+ }
2119
+ addEventListeners(e) {
2120
+ e.addEventListener && (e.addEventListener("dragstart", this.handleTopDragStart), e.addEventListener("dragstart", this.handleTopDragStartCapture, !0), e.addEventListener("dragend", this.handleTopDragEndCapture, !0), e.addEventListener("dragenter", this.handleTopDragEnter), e.addEventListener("dragenter", this.handleTopDragEnterCapture, !0), e.addEventListener("dragleave", this.handleTopDragLeaveCapture, !0), e.addEventListener("dragover", this.handleTopDragOver), e.addEventListener("dragover", this.handleTopDragOverCapture, !0), e.addEventListener("drop", this.handleTopDrop), e.addEventListener("drop", this.handleTopDropCapture, !0));
2121
+ }
2122
+ removeEventListeners(e) {
2123
+ e.removeEventListener && (e.removeEventListener("dragstart", this.handleTopDragStart), e.removeEventListener("dragstart", this.handleTopDragStartCapture, !0), e.removeEventListener("dragend", this.handleTopDragEndCapture, !0), e.removeEventListener("dragenter", this.handleTopDragEnter), e.removeEventListener("dragenter", this.handleTopDragEnterCapture, !0), e.removeEventListener("dragleave", this.handleTopDragLeaveCapture, !0), e.removeEventListener("dragover", this.handleTopDragOver), e.removeEventListener("dragover", this.handleTopDragOverCapture, !0), e.removeEventListener("drop", this.handleTopDrop), e.removeEventListener("drop", this.handleTopDropCapture, !0));
2124
+ }
2125
+ getCurrentSourceNodeOptions() {
2126
+ const e = this.monitor.getSourceId(), r = this.sourceNodeOptions.get(e);
2127
+ return be({
2128
+ dropEffect: this.altKeyPressed ? "copy" : "move"
2129
+ }, r || {});
2130
+ }
2131
+ getCurrentDropEffect() {
2132
+ return this.isDraggingNativeItem() ? "copy" : this.getCurrentSourceNodeOptions().dropEffect;
2133
+ }
2134
+ getCurrentSourcePreviewNodeOptions() {
2135
+ const e = this.monitor.getSourceId(), r = this.sourcePreviewNodeOptions.get(e);
2136
+ return be({
2137
+ anchorX: 0.5,
2138
+ anchorY: 0.5,
2139
+ captureDraggingState: !1
2140
+ }, r || {});
2141
+ }
2142
+ isDraggingNativeItem() {
2143
+ const e = this.monitor.getItemType();
2144
+ return Object.keys(Oe).some(
2145
+ (r) => Oe[r] === e
2146
+ );
2147
+ }
2148
+ beginDragNativeItem(e, r) {
2149
+ this.clearCurrentDragSourceNode(), this.currentNativeSource = an(e, r), this.currentNativeHandle = this.registry.addSource(e, this.currentNativeSource), this.actions.beginDrag([
2150
+ this.currentNativeHandle
2151
+ ]);
2152
+ }
2153
+ setCurrentDragSourceNode(e) {
2154
+ this.clearCurrentDragSourceNode(), this.currentDragSourceNode = e;
2155
+ const r = 1e3;
2156
+ this.mouseMoveTimeoutTimer = setTimeout(() => {
2157
+ var n;
2158
+ return (n = this.rootElement) === null || n === void 0 ? void 0 : n.addEventListener("mousemove", this.endDragIfSourceWasRemovedFromDOM, !0);
2159
+ }, r);
2160
+ }
2161
+ clearCurrentDragSourceNode() {
2162
+ if (this.currentDragSourceNode) {
2163
+ if (this.currentDragSourceNode = null, this.rootElement) {
2164
+ var e;
2165
+ (e = this.window) === null || e === void 0 || e.clearTimeout(this.mouseMoveTimeoutTimer || void 0), this.rootElement.removeEventListener("mousemove", this.endDragIfSourceWasRemovedFromDOM, !0);
2166
+ }
2167
+ return this.mouseMoveTimeoutTimer = null, !0;
2168
+ }
2169
+ return !1;
2170
+ }
2171
+ handleDragStart(e, r) {
2172
+ e.defaultPrevented || (this.dragStartSourceIds || (this.dragStartSourceIds = []), this.dragStartSourceIds.unshift(r));
2173
+ }
2174
+ handleDragEnter(e, r) {
2175
+ this.dragEnterTargetIds.unshift(r);
2176
+ }
2177
+ handleDragOver(e, r) {
2178
+ this.dragOverTargetIds === null && (this.dragOverTargetIds = []), this.dragOverTargetIds.unshift(r);
2179
+ }
2180
+ handleDrop(e, r) {
2181
+ this.dropTargetIds.unshift(r);
2182
+ }
2183
+ constructor(e, r, n) {
2184
+ this.sourcePreviewNodes = /* @__PURE__ */ new Map(), this.sourcePreviewNodeOptions = /* @__PURE__ */ new Map(), this.sourceNodes = /* @__PURE__ */ new Map(), this.sourceNodeOptions = /* @__PURE__ */ new Map(), this.dragStartSourceIds = null, this.dropTargetIds = [], this.dragEnterTargetIds = [], this.currentNativeSource = null, this.currentNativeHandle = null, this.currentDragSourceNode = null, this.altKeyPressed = !1, this.mouseMoveTimeoutTimer = null, this.asyncEndDragFrameId = null, this.dragOverTargetIds = null, this.lastClientOffset = null, this.hoverRafId = null, this.getSourceClientOffset = (i) => {
2185
+ const s = this.sourceNodes.get(i);
2186
+ return s && qe(s) || null;
2187
+ }, this.endDragNativeItem = () => {
2188
+ this.isDraggingNativeItem() && (this.actions.endDrag(), this.currentNativeHandle && this.registry.removeSource(this.currentNativeHandle), this.currentNativeHandle = null, this.currentNativeSource = null);
2189
+ }, this.isNodeInDocument = (i) => !!(i && this.document && this.document.body && this.document.body.contains(i)), this.endDragIfSourceWasRemovedFromDOM = () => {
2190
+ const i = this.currentDragSourceNode;
2191
+ i == null || this.isNodeInDocument(i) || (this.clearCurrentDragSourceNode() && this.monitor.isDragging() && this.actions.endDrag(), this.cancelHover());
2192
+ }, this.scheduleHover = (i) => {
2193
+ this.hoverRafId === null && typeof requestAnimationFrame < "u" && (this.hoverRafId = requestAnimationFrame(() => {
2194
+ this.monitor.isDragging() && this.actions.hover(i || [], {
2195
+ clientOffset: this.lastClientOffset
2196
+ }), this.hoverRafId = null;
2197
+ }));
2198
+ }, this.cancelHover = () => {
2199
+ this.hoverRafId !== null && typeof cancelAnimationFrame < "u" && (cancelAnimationFrame(this.hoverRafId), this.hoverRafId = null);
2200
+ }, this.handleTopDragStartCapture = () => {
2201
+ this.clearCurrentDragSourceNode(), this.dragStartSourceIds = [];
2202
+ }, this.handleTopDragStart = (i) => {
2203
+ if (i.defaultPrevented)
2204
+ return;
2205
+ const { dragStartSourceIds: s } = this;
2206
+ this.dragStartSourceIds = null;
2207
+ const o = M(i);
2208
+ this.monitor.isDragging() && (this.actions.endDrag(), this.cancelHover()), this.actions.beginDrag(s || [], {
2209
+ publishSource: !1,
2210
+ getSourceClientOffset: this.getSourceClientOffset,
2211
+ clientOffset: o
2212
+ });
2213
+ const { dataTransfer: a } = i, c = W(a);
2214
+ if (this.monitor.isDragging()) {
2215
+ if (a && typeof a.setDragImage == "function") {
2216
+ const f = this.monitor.getSourceId(), p = this.sourceNodes.get(f), g = this.sourcePreviewNodes.get(f) || p;
2217
+ if (g) {
2218
+ const { anchorX: u, anchorY: D, offsetX: h, offsetY: v } = this.getCurrentSourcePreviewNodeOptions(), I = gn(p, g, o, {
2219
+ anchorX: u,
2220
+ anchorY: D
2221
+ }, {
2222
+ offsetX: h,
2223
+ offsetY: v
2224
+ });
2225
+ a.setDragImage(g, I.x, I.y);
2226
+ }
2227
+ }
2228
+ try {
2229
+ a?.setData("application/json", {});
2230
+ } catch {
2231
+ }
2232
+ this.setCurrentDragSourceNode(i.target);
2233
+ const { captureDraggingState: d } = this.getCurrentSourcePreviewNodeOptions();
2234
+ d ? this.actions.publishDragSource() : setTimeout(
2235
+ () => this.actions.publishDragSource(),
2236
+ 0
2237
+ );
2238
+ } else if (c)
2239
+ this.beginDragNativeItem(c);
2240
+ else {
2241
+ if (a && !a.types && (i.target && !i.target.hasAttribute || !i.target.hasAttribute("draggable")))
2242
+ return;
2243
+ i.preventDefault();
2244
+ }
2245
+ }, this.handleTopDragEndCapture = () => {
2246
+ this.clearCurrentDragSourceNode() && this.monitor.isDragging() && this.actions.endDrag(), this.cancelHover();
2247
+ }, this.handleTopDragEnterCapture = (i) => {
2248
+ if (this.dragEnterTargetIds = [], this.isDraggingNativeItem()) {
2249
+ var s;
2250
+ (s = this.currentNativeSource) === null || s === void 0 || s.loadDataTransfer(i.dataTransfer);
2251
+ }
2252
+ if (!this.enterLeaveCounter.enter(i.target) || this.monitor.isDragging())
2253
+ return;
2254
+ const { dataTransfer: a } = i, c = W(a);
2255
+ c && this.beginDragNativeItem(c, a);
2256
+ }, this.handleTopDragEnter = (i) => {
2257
+ const { dragEnterTargetIds: s } = this;
2258
+ if (this.dragEnterTargetIds = [], !this.monitor.isDragging())
2259
+ return;
2260
+ this.altKeyPressed = i.altKey, s.length > 0 && this.actions.hover(s, {
2261
+ clientOffset: M(i)
2262
+ }), s.some(
2263
+ (a) => this.monitor.canDropOnTarget(a)
2264
+ ) && (i.preventDefault(), i.dataTransfer && (i.dataTransfer.dropEffect = this.getCurrentDropEffect()));
2265
+ }, this.handleTopDragOverCapture = (i) => {
2266
+ if (this.dragOverTargetIds = [], this.isDraggingNativeItem()) {
2267
+ var s;
2268
+ (s = this.currentNativeSource) === null || s === void 0 || s.loadDataTransfer(i.dataTransfer);
2269
+ }
2270
+ }, this.handleTopDragOver = (i) => {
2271
+ const { dragOverTargetIds: s } = this;
2272
+ if (this.dragOverTargetIds = [], !this.monitor.isDragging()) {
2273
+ i.preventDefault(), i.dataTransfer && (i.dataTransfer.dropEffect = "none");
2274
+ return;
2275
+ }
2276
+ this.altKeyPressed = i.altKey, this.lastClientOffset = M(i), this.scheduleHover(s), (s || []).some(
2277
+ (a) => this.monitor.canDropOnTarget(a)
2278
+ ) ? (i.preventDefault(), i.dataTransfer && (i.dataTransfer.dropEffect = this.getCurrentDropEffect())) : this.isDraggingNativeItem() ? i.preventDefault() : (i.preventDefault(), i.dataTransfer && (i.dataTransfer.dropEffect = "none"));
2279
+ }, this.handleTopDragLeaveCapture = (i) => {
2280
+ this.isDraggingNativeItem() && i.preventDefault(), this.enterLeaveCounter.leave(i.target) && (this.isDraggingNativeItem() && setTimeout(
2281
+ () => this.endDragNativeItem(),
2282
+ 0
2283
+ ), this.cancelHover());
2284
+ }, this.handleTopDropCapture = (i) => {
2285
+ if (this.dropTargetIds = [], this.isDraggingNativeItem()) {
2286
+ var s;
2287
+ i.preventDefault(), (s = this.currentNativeSource) === null || s === void 0 || s.loadDataTransfer(i.dataTransfer);
2288
+ } else W(i.dataTransfer) && i.preventDefault();
2289
+ this.enterLeaveCounter.reset();
2290
+ }, this.handleTopDrop = (i) => {
2291
+ const { dropTargetIds: s } = this;
2292
+ this.dropTargetIds = [], this.actions.hover(s, {
2293
+ clientOffset: M(i)
2294
+ }), this.actions.drop({
2295
+ dropEffect: this.getCurrentDropEffect()
2296
+ }), this.isDraggingNativeItem() ? this.endDragNativeItem() : this.monitor.isDragging() && this.actions.endDrag(), this.cancelHover();
2297
+ }, this.handleSelectStart = (i) => {
2298
+ const s = i.target;
2299
+ typeof s.dragDrop == "function" && (s.tagName === "INPUT" || s.tagName === "SELECT" || s.tagName === "TEXTAREA" || s.isContentEditable || (i.preventDefault(), s.dragDrop()));
2300
+ }, this.options = new fn(r, n), this.actions = e.getActions(), this.monitor = e.getMonitor(), this.registry = e.getRegistry(), this.enterLeaveCounter = new sn(this.isNodeInDocument);
2301
+ }
2302
+ }
2303
+ const mn = function(e, r, n) {
2304
+ return new pn(e, r, n);
2305
+ }, vn = (t) => /* @__PURE__ */ w.createElement("svg", { width: 16, height: 16, viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...t }, /* @__PURE__ */ w.createElement("circle", { cx: 6, cy: 4, r: 1.25, fill: "#2B2B2B" }), /* @__PURE__ */ w.createElement("circle", { cx: 10, cy: 4, r: 1.25, fill: "#2B2B2B" }), /* @__PURE__ */ w.createElement("circle", { cx: 6, cy: 8, r: 1.25, fill: "#2B2B2B" }), /* @__PURE__ */ w.createElement("circle", { cx: 10, cy: 8, r: 1.25, fill: "#2B2B2B" }), /* @__PURE__ */ w.createElement("circle", { cx: 6, cy: 12, r: 1.25, fill: "#2B2B2B" }), /* @__PURE__ */ w.createElement("circle", { cx: 10, cy: 12, r: 1.25, fill: "#2B2B2B" }));
2306
+ function Dn({
2307
+ column: t,
2308
+ index: e,
2309
+ moveListItem: r,
2310
+ visibility: n,
2311
+ onToggleVisibility: i
2312
+ }) {
2313
+ const s = t.isDraggable !== !1, o = t.toogleVisibility !== !1 && t.toggleVisibility !== !1, a = Qe(null), [, c] = tn({
2314
+ accept: ce,
2315
+ hover(p) {
2316
+ s && p.index !== e && (r(p.index, e), p.index = e);
2317
+ }
2318
+ }), [{ isDragging: d }, f] = Xr({
2319
+ type: ce,
2320
+ item: { index: e },
2321
+ canDrag: s,
2322
+ collect: (p) => ({
2323
+ isDragging: p.isDragging()
2324
+ })
2325
+ });
2326
+ return s ? f(c(a)) : c(a), /* @__PURE__ */ E(
2327
+ "div",
2328
+ {
2329
+ ref: a,
2330
+ className: ue(
2331
+ "ckds-dragable-list-item flex items-center p-2 border-none rounded-md gap-1",
2332
+ d ? "opacity-50" : "opacity-100"
2333
+ ),
2334
+ children: [
2335
+ /* @__PURE__ */ m("div", { className: ue("ckds-drag-handle", s ? "cursor-move" : "opacity-30 cursor-not-allowed"), children: /* @__PURE__ */ m(vn, { className: "text-base-content" }) }),
2336
+ /* @__PURE__ */ m(_, { variant: "body-sm", className: "text-base-content text-xs grow ml-2", children: t.header }),
2337
+ /* @__PURE__ */ m(
2338
+ Ke,
2339
+ {
2340
+ checked: n[t.accessorKey] !== !1,
2341
+ onChange: () => i(t.accessorKey),
2342
+ disabled: !o,
2343
+ className: "mr-2"
2344
+ }
2345
+ )
2346
+ ]
2347
+ }
2348
+ );
2349
+ }
2350
+ function Rn({
2351
+ draftConfig: t,
2352
+ setDraftConfig: e,
2353
+ moveDraftColumn: r,
2354
+ handleApplyPref: n,
2355
+ setModalOpen: i,
2356
+ handleResetToDefault: s,
2357
+ isDefault: o,
2358
+ isConfigChanged: a
2359
+ }) {
2360
+ const [c, d] = Ee(""), f = Ie(
2361
+ (g) => {
2362
+ e((u) => ({
2363
+ ...u,
2364
+ columnVisibility: {
2365
+ ...u.columnVisibility,
2366
+ [g]: !(u.columnVisibility[g] ?? !0)
2367
+ }
2368
+ }));
2369
+ },
2370
+ [e]
2371
+ ), p = t.columns.filter(
2372
+ (g) => g.header.toLowerCase().includes(c.toLowerCase())
2373
+ );
2374
+ return /* @__PURE__ */ E(Tr, { backend: mn, children: [
2375
+ /* @__PURE__ */ E("div", { className: "ckds-column-manager-wrapper", children: [
2376
+ /* @__PURE__ */ E("div", { className: "flex items-center justify-between", children: [
2377
+ /* @__PURE__ */ m(_, { variant: "body-lg", weight: "semibold", children: "Column Manager" }),
2378
+ /* @__PURE__ */ m(
2379
+ B,
2380
+ {
2381
+ onClick: s,
2382
+ variant: "hyperlink",
2383
+ disabled: o,
2384
+ icons: { left: /* @__PURE__ */ m(Je, {}) },
2385
+ label: "Reset to default"
2386
+ }
2387
+ )
2388
+ ] }),
2389
+ /* @__PURE__ */ E("div", { className: "flex mt-6", children: [
2390
+ /* @__PURE__ */ m(et, { draftConfig: t, setDraftConfig: e }),
2391
+ /* @__PURE__ */ E("div", { className: "flex-1 ml-7", children: [
2392
+ /* @__PURE__ */ m(_, { variant: "body-sm", weight: "medium", children: "Visible Columns" }),
2393
+ /* @__PURE__ */ m(_, { variant: "body-xs", className: "text-base-400", children: "Toggle columns on/off and drag to reorder" }),
2394
+ /* @__PURE__ */ m(
2395
+ "div",
2396
+ {
2397
+ className: `pb-3 mt-4 ${p.length > 9 ? "ckds-search-border-bottom" : ""}`,
2398
+ children: /* @__PURE__ */ E("div", { className: "ckds-search-input-wrapper", children: [
2399
+ /* @__PURE__ */ m(Ze, {}),
2400
+ /* @__PURE__ */ m(
2401
+ "input",
2402
+ {
2403
+ placeholder: "Search here",
2404
+ className: "ckds-table-search-input",
2405
+ value: c,
2406
+ onChange: (g) => d(g.target.value)
2407
+ }
2408
+ )
2409
+ ] })
2410
+ }
2411
+ ),
2412
+ /* @__PURE__ */ m("div", { children: c && p.length === 0 ? /* @__PURE__ */ m("div", { className: "flex flex-1 items-center justify-center h-[318px]", children: /* @__PURE__ */ m("p", { className: "text-sm text-base-400", children: "No columns found" }) }) : /* @__PURE__ */ m("div", { className: "ckds-dragable-list ckds-custom-scrollbar", children: p.map((g, u) => /* @__PURE__ */ m(
2413
+ Dn,
2414
+ {
2415
+ column: g,
2416
+ index: u,
2417
+ moveListItem: r,
2418
+ visibility: t.columnVisibility,
2419
+ onToggleVisibility: f
2420
+ },
2421
+ g.accessorKey
2422
+ )) }) })
2423
+ ] })
2424
+ ] })
2425
+ ] }),
2426
+ /* @__PURE__ */ E("div", { className: "ckds-column-manager-footer", children: [
2427
+ /* @__PURE__ */ m(
2428
+ B,
2429
+ {
2430
+ onClick: () => i({ open: !1, type: "columnManager", activeOption: "" }),
2431
+ variant: "secondary",
2432
+ size: "large",
2433
+ label: "Cancel"
2434
+ }
2435
+ ),
2436
+ /* @__PURE__ */ m(
2437
+ B,
2438
+ {
2439
+ onClick: n,
2440
+ variant: "primary",
2441
+ size: "large",
2442
+ disabled: !a,
2443
+ label: "Apply"
2444
+ }
2445
+ )
2446
+ ] })
2447
+ ] });
2448
+ }
2449
+ export {
2450
+ Rn as default
2451
+ };