@sisense/sdk-shared-ui 2.1.1 → 2.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 (380) hide show
  1. package/dist/Breadcrumbs-B-OHBus7.cjs +3 -0
  2. package/dist/{Breadcrumbs-qJmt9n6B.js → Breadcrumbs-DrCp8avo.js} +12 -13
  3. package/dist/Button-CvkAcTyS.cjs +1 -0
  4. package/dist/{Button-Y7DwfxdO.js → Button-cvim-8Bz.js} +345 -165
  5. package/dist/{ButtonBase-UWHDpyst.js → ButtonBase-4TqAVSBf.js} +166 -164
  6. package/dist/ButtonBase-hZEG-21k.cjs +74 -0
  7. package/dist/Checkbox-BbF4jutm.cjs +1 -0
  8. package/dist/{Checkbox-BNkk6YDz.js → Checkbox-aMi60WQj.js} +249 -171
  9. package/dist/CircularProgress-B3FkrcM6.js +249 -0
  10. package/dist/CircularProgress-BWqRJiR-.cjs +28 -0
  11. package/dist/DEPRECATED_Tooltip-C3s_235Q.js +1961 -0
  12. package/dist/DEPRECATED_Tooltip-DL3MmzWZ.cjs +25 -0
  13. package/dist/{Dropdown-D8rLKKcl.cjs → Dropdown-B6uSaA3z.cjs} +1 -1
  14. package/dist/{Dropdown-DtWYpFk8.js → Dropdown-BzcjbX6k.js} +2 -2
  15. package/dist/{Icon-KwS2TWVq.cjs → Icon-DFhY5sRf.cjs} +1 -1
  16. package/dist/{Icon-JQpFT2bY.js → Icon-DVO7Byvy.js} +2 -2
  17. package/dist/{Menu-DkPO8bCf.cjs → Menu-CgLII61r.cjs} +1 -1
  18. package/dist/{Menu-EXiwd8T_.js → Menu-DqvdoiKn.js} +2 -2
  19. package/dist/{Popover-BjgDIgO7.cjs → Popover-DHy8NRMc.cjs} +1 -1
  20. package/dist/{Popover-CiYeL2VE.js → Popover-KR_Rc69g.js} +1 -1
  21. package/dist/Portal-B6TDsfBi.cjs +1 -0
  22. package/dist/{Portal-DUw3q8Mq.js → Portal-C6RJkJ6n.js} +253 -318
  23. package/dist/{SvgIcon-DXzFs5aw.cjs → SvgIcon-CjUZ_jwt.cjs} +1 -1
  24. package/dist/{SvgIcon-5KhsYNcu.js → SvgIcon-a_07YA77.js} +7 -7
  25. package/dist/TablePagination-CNwjJIdB.cjs +15 -0
  26. package/dist/{TablePagination-CgaKWA2r.js → TablePagination-D4-bcrO_.js} +2003 -1784
  27. package/dist/Tooltip-BjyR1mIC.cjs +7 -0
  28. package/dist/{Tooltip-BpA4opI3.js → Tooltip-CWF5y-3F.js} +20 -19
  29. package/dist/TransitionGroupContext-BNiEy2cD.js +119 -0
  30. package/dist/TransitionGroupContext-CJJeIdck.cjs +2 -0
  31. package/dist/{Typography-BDMqUlbg.cjs → Typography-Pieq_mxw.cjs} +1 -1
  32. package/dist/{Typography-pY0gGUzu.js → Typography-ReSKaH87.js} +6 -6
  33. package/dist/__test-helpers__/test-setup.d.ts +2 -0
  34. package/dist/__test-helpers__/test-setup.d.ts.map +1 -0
  35. package/dist/{createSvgIcon-B28x3Jky.js → createSvgIcon-CiRZfwSO.js} +1 -1
  36. package/dist/{createSvgIcon-KaV60kcg.cjs → createSvgIcon-DgE0zN0k.cjs} +1 -1
  37. package/dist/{emotion-cache-provider-CsTOkc-k.js → emotion-cache-provider-B6yKtm_a.js} +1980 -2095
  38. package/dist/emotion-cache-provider-XZE1SDsY.cjs +122 -0
  39. package/dist/index.cjs +1 -1
  40. package/dist/index.js +11 -11
  41. package/dist/index.umd.js +188 -0
  42. package/dist/lib/Breadcrumbs/Breadcrumbs.cjs +1 -1
  43. package/dist/lib/Breadcrumbs/Breadcrumbs.js +2 -2
  44. package/dist/lib/Button/Button.cjs +1 -1
  45. package/dist/lib/Button/Button.js +2 -2
  46. package/dist/lib/Checkbox/Checkbox.cjs +1 -1
  47. package/dist/lib/Checkbox/Checkbox.js +1 -1
  48. package/dist/lib/DEPRECATED_Tooltip/DEPRECATED_Tooltip.cjs +1 -1
  49. package/dist/lib/DEPRECATED_Tooltip/DEPRECATED_Tooltip.d.ts +1 -1
  50. package/dist/lib/DEPRECATED_Tooltip/DEPRECATED_Tooltip.d.ts.map +1 -1
  51. package/dist/lib/DEPRECATED_Tooltip/DEPRECATED_Tooltip.js +1 -1
  52. package/dist/lib/Dropdown/Dropdown.cjs +1 -1
  53. package/dist/lib/Dropdown/Dropdown.js +1 -1
  54. package/dist/lib/Icon/Icon.cjs +1 -1
  55. package/dist/lib/Icon/Icon.js +1 -1
  56. package/dist/lib/Menu/Menu.cjs +1 -1
  57. package/dist/lib/Menu/Menu.js +2 -2
  58. package/dist/lib/Popover/Popover.cjs +1 -1
  59. package/dist/lib/Popover/Popover.d.ts +1 -1
  60. package/dist/lib/Popover/Popover.d.ts.map +1 -1
  61. package/dist/lib/Popover/Popover.js +1 -1
  62. package/dist/lib/TablePagination/TablePagination.cjs +1 -1
  63. package/dist/lib/TablePagination/TablePagination.js +1 -1
  64. package/dist/lib/Tooltip/Tooltip.cjs +1 -1
  65. package/dist/lib/Tooltip/Tooltip.js +2 -2
  66. package/dist/lib/Typography/Typography.cjs +1 -1
  67. package/dist/lib/Typography/Typography.js +2 -2
  68. package/dist/lightweight/Breadcrumbs-BMR7xumU.js +37 -0
  69. package/dist/lightweight/Breadcrumbs-BgNa_noo.cjs +1 -0
  70. package/dist/lightweight/Button-C0bT7IWv.js +96 -0
  71. package/dist/lightweight/Button-O3zEYLfM.cjs +1 -0
  72. package/dist/lightweight/CheckableList-1Jq4spYu.cjs +1 -0
  73. package/dist/lightweight/CheckableList-DTTE9oEw.js +21 -0
  74. package/dist/lightweight/Checkbox-DqAy-3w-.js +34 -0
  75. package/dist/lightweight/Checkbox-hyvVpMGp.cjs +1 -0
  76. package/dist/lightweight/DEPRECATED_Button-CKGdJitl.cjs +1 -0
  77. package/dist/lightweight/DEPRECATED_Button-Dhs0ieAl.js +87 -0
  78. package/dist/lightweight/DEPRECATED_Checkbox-Be1l_Vce.js +63 -0
  79. package/dist/lightweight/DEPRECATED_Checkbox-BggU0HO5.cjs +1 -0
  80. package/dist/lightweight/DEPRECATED_Icon-Bgufd-9Q.js +56 -0
  81. package/dist/lightweight/DEPRECATED_Icon-DC1Hc9iB.cjs +1 -0
  82. package/dist/lightweight/DEPRECATED_Toggle-DMnlQO3F.js +30 -0
  83. package/dist/lightweight/DEPRECATED_Toggle-Dp0ZZ_6E.cjs +1 -0
  84. package/dist/lightweight/DEPRECATED_Tooltip-C3s_235Q.js +1961 -0
  85. package/dist/lightweight/DEPRECATED_Tooltip-DL3MmzWZ.cjs +25 -0
  86. package/dist/lightweight/Dropdown-B6uSaA3z.cjs +1 -0
  87. package/dist/lightweight/Dropdown-C5DcG6WG.js +231 -0
  88. package/dist/lightweight/Icon-4kNYAFUz.cjs +1 -0
  89. package/dist/lightweight/Icon-DQNqONXU.js +133 -0
  90. package/dist/lightweight/Input-CNvYE0Er.js +119 -0
  91. package/dist/lightweight/Input-_wNCDCdI.cjs +1 -0
  92. package/dist/lightweight/LazyLoader-DB86QSSx.js +18 -0
  93. package/dist/lightweight/LazyLoader-gOLNhxc-.cjs +1 -0
  94. package/dist/lightweight/Menu-CgLII61r.cjs +1 -0
  95. package/dist/lightweight/Menu-DeHgR0JO.js +1211 -0
  96. package/dist/lightweight/Popover-BAehEo3a.js +49 -0
  97. package/dist/lightweight/Popover-DHy8NRMc.cjs +1 -0
  98. package/dist/lightweight/RadioButton-BpAksn2s.js +70 -0
  99. package/dist/lightweight/RadioButton-Ds-0wj0r.cjs +1 -0
  100. package/dist/lightweight/TablePagination-Czpnhvp6.cjs +1 -0
  101. package/dist/lightweight/TablePagination-D1tyNTa7.js +338 -0
  102. package/dist/lightweight/Tooltip-BcjJxRj4.cjs +1 -0
  103. package/dist/lightweight/Tooltip-DUpknkQW.js +59 -0
  104. package/dist/lightweight/Typography-BT1q5az1.cjs +1 -0
  105. package/dist/lightweight/Typography-CvzdielF.js +153 -0
  106. package/dist/lightweight/__test-helpers__/test-setup.d.ts +2 -0
  107. package/dist/lightweight/__test-helpers__/test-setup.d.ts.map +1 -0
  108. package/dist/lightweight/align.interface-B17uA473.cjs +1 -0
  109. package/dist/lightweight/align.interface-DdWsijrT.js +4 -0
  110. package/dist/lightweight/emotion-cache-provider-BsnmG_09.cjs +1 -0
  111. package/dist/lightweight/emotion-cache-provider-CE1QZs6M.js +18 -0
  112. package/dist/lightweight/index-B-zZeebW.cjs +20 -0
  113. package/dist/lightweight/index-D0lMis-I.js +667 -0
  114. package/dist/lightweight/index.cjs +1 -0
  115. package/dist/lightweight/index.d.ts +2 -0
  116. package/dist/lightweight/index.d.ts.map +1 -0
  117. package/dist/lightweight/index.js +48 -0
  118. package/dist/lightweight/lib/Breadcrumbs/Breadcrumbs.cjs +1 -0
  119. package/dist/lightweight/lib/Breadcrumbs/Breadcrumbs.d.ts +16 -0
  120. package/dist/lightweight/lib/Breadcrumbs/Breadcrumbs.d.ts.map +1 -0
  121. package/dist/lightweight/lib/Breadcrumbs/Breadcrumbs.js +7 -0
  122. package/dist/lightweight/lib/Breadcrumbs/index.d.ts +5 -0
  123. package/dist/lightweight/lib/Breadcrumbs/index.d.ts.map +1 -0
  124. package/dist/lightweight/lib/Breadcrumbs/themes/breadcrumbsTheme.d.ts +4 -0
  125. package/dist/lightweight/lib/Breadcrumbs/themes/breadcrumbsTheme.d.ts.map +1 -0
  126. package/dist/lightweight/lib/Breadcrumbs/themes/index.d.ts +2 -0
  127. package/dist/lightweight/lib/Breadcrumbs/themes/index.d.ts.map +1 -0
  128. package/dist/lightweight/lib/Button/Button.cjs +1 -0
  129. package/dist/lightweight/lib/Button/Button.d.ts +10 -0
  130. package/dist/lightweight/lib/Button/Button.d.ts.map +1 -0
  131. package/dist/lightweight/lib/Button/Button.js +7 -0
  132. package/dist/lightweight/lib/Button/index.d.ts +5 -0
  133. package/dist/lightweight/lib/Button/index.d.ts.map +1 -0
  134. package/dist/lightweight/lib/Button/themes/buttonsTheme.d.ts +11 -0
  135. package/dist/lightweight/lib/Button/themes/buttonsTheme.d.ts.map +1 -0
  136. package/dist/lightweight/lib/Button/themes/index.d.ts +2 -0
  137. package/dist/lightweight/lib/Button/themes/index.d.ts.map +1 -0
  138. package/dist/lightweight/lib/CheckableList/CheckableList.cjs +1 -0
  139. package/dist/lightweight/lib/CheckableList/CheckableList.d.ts +16 -0
  140. package/dist/lightweight/lib/CheckableList/CheckableList.d.ts.map +1 -0
  141. package/dist/lightweight/lib/CheckableList/CheckableList.js +5 -0
  142. package/dist/lightweight/lib/CheckableList/index.d.ts +4 -0
  143. package/dist/lightweight/lib/CheckableList/index.d.ts.map +1 -0
  144. package/dist/lightweight/lib/Checkbox/Checkbox.cjs +1 -0
  145. package/dist/lightweight/lib/Checkbox/Checkbox.d.ts +20 -0
  146. package/dist/lightweight/lib/Checkbox/Checkbox.d.ts.map +1 -0
  147. package/dist/lightweight/lib/Checkbox/Checkbox.js +5 -0
  148. package/dist/lightweight/lib/Checkbox/index.d.ts +4 -0
  149. package/dist/lightweight/lib/Checkbox/index.d.ts.map +1 -0
  150. package/dist/lightweight/lib/Checkbox/themes/checkboxTheme.d.ts +12 -0
  151. package/dist/lightweight/lib/Checkbox/themes/checkboxTheme.d.ts.map +1 -0
  152. package/dist/lightweight/lib/Checkbox/themes/index.d.ts +2 -0
  153. package/dist/lightweight/lib/Checkbox/themes/index.d.ts.map +1 -0
  154. package/dist/lightweight/lib/Checkbox/themes/uiCustomization.d.ts +12 -0
  155. package/dist/lightweight/lib/Checkbox/themes/uiCustomization.d.ts.map +1 -0
  156. package/dist/lightweight/lib/DEPRECATED_Button/DEPRECATED_Button.cjs +1 -0
  157. package/dist/lightweight/lib/DEPRECATED_Button/DEPRECATED_Button.d.ts +43 -0
  158. package/dist/lightweight/lib/DEPRECATED_Button/DEPRECATED_Button.d.ts.map +1 -0
  159. package/dist/lightweight/lib/DEPRECATED_Button/DEPRECATED_Button.js +5 -0
  160. package/dist/lightweight/lib/DEPRECATED_Button/index.d.ts +4 -0
  161. package/dist/lightweight/lib/DEPRECATED_Button/index.d.ts.map +1 -0
  162. package/dist/lightweight/lib/DEPRECATED_Checkbox/DEPRECATED_Checkbox.cjs +1 -0
  163. package/dist/lightweight/lib/DEPRECATED_Checkbox/DEPRECATED_Checkbox.d.ts +20 -0
  164. package/dist/lightweight/lib/DEPRECATED_Checkbox/DEPRECATED_Checkbox.d.ts.map +1 -0
  165. package/dist/lightweight/lib/DEPRECATED_Checkbox/DEPRECATED_Checkbox.js +5 -0
  166. package/dist/lightweight/lib/DEPRECATED_Checkbox/index.d.ts +4 -0
  167. package/dist/lightweight/lib/DEPRECATED_Checkbox/index.d.ts.map +1 -0
  168. package/dist/lightweight/lib/DEPRECATED_Icon/DEPRECATED_Icon.cjs +1 -0
  169. package/dist/lightweight/lib/DEPRECATED_Icon/DEPRECATED_Icon.d.ts +17 -0
  170. package/dist/lightweight/lib/DEPRECATED_Icon/DEPRECATED_Icon.d.ts.map +1 -0
  171. package/dist/lightweight/lib/DEPRECATED_Icon/DEPRECATED_Icon.js +5 -0
  172. package/dist/lightweight/lib/DEPRECATED_Icon/index.d.ts +4 -0
  173. package/dist/lightweight/lib/DEPRECATED_Icon/index.d.ts.map +1 -0
  174. package/dist/lightweight/lib/DEPRECATED_Toggle/DEPRECATED_Toggle.cjs +1 -0
  175. package/dist/lightweight/lib/DEPRECATED_Toggle/DEPRECATED_Toggle.d.ts +13 -0
  176. package/dist/lightweight/lib/DEPRECATED_Toggle/DEPRECATED_Toggle.d.ts.map +1 -0
  177. package/dist/lightweight/lib/DEPRECATED_Toggle/DEPRECATED_Toggle.js +5 -0
  178. package/dist/lightweight/lib/DEPRECATED_Toggle/index.d.ts +4 -0
  179. package/dist/lightweight/lib/DEPRECATED_Toggle/index.d.ts.map +1 -0
  180. package/dist/lightweight/lib/DEPRECATED_Tooltip/DEPRECATED_Tooltip.cjs +1 -0
  181. package/dist/lightweight/lib/DEPRECATED_Tooltip/DEPRECATED_Tooltip.d.ts +15 -0
  182. package/dist/lightweight/lib/DEPRECATED_Tooltip/DEPRECATED_Tooltip.d.ts.map +1 -0
  183. package/dist/lightweight/lib/DEPRECATED_Tooltip/DEPRECATED_Tooltip.js +5 -0
  184. package/dist/lightweight/lib/DEPRECATED_Tooltip/index.d.ts +4 -0
  185. package/dist/lightweight/lib/DEPRECATED_Tooltip/index.d.ts.map +1 -0
  186. package/dist/lightweight/lib/Dropdown/Dropdown.cjs +1 -0
  187. package/dist/lightweight/lib/Dropdown/Dropdown.d.ts +32 -0
  188. package/dist/lightweight/lib/Dropdown/Dropdown.d.ts.map +1 -0
  189. package/dist/lightweight/lib/Dropdown/Dropdown.js +5 -0
  190. package/dist/lightweight/lib/Dropdown/DropdownButton/DropdownButton.d.ts +18 -0
  191. package/dist/lightweight/lib/Dropdown/DropdownButton/DropdownButton.d.ts.map +1 -0
  192. package/dist/lightweight/lib/Dropdown/DropdownButton/DropdownButtonBody/DropdownButtonBody.d.ts +12 -0
  193. package/dist/lightweight/lib/Dropdown/DropdownButton/DropdownButtonBody/DropdownButtonBody.d.ts.map +1 -0
  194. package/dist/lightweight/lib/Dropdown/DropdownButton/DropdownButtonBody/index.d.ts +3 -0
  195. package/dist/lightweight/lib/Dropdown/DropdownButton/DropdownButtonBody/index.d.ts.map +1 -0
  196. package/dist/lightweight/lib/Dropdown/DropdownButton/DropdownButtonSearch/DropdownButtonSearch.d.ts +10 -0
  197. package/dist/lightweight/lib/Dropdown/DropdownButton/DropdownButtonSearch/DropdownButtonSearch.d.ts.map +1 -0
  198. package/dist/lightweight/lib/Dropdown/DropdownButton/DropdownButtonSearch/constants.d.ts +2 -0
  199. package/dist/lightweight/lib/Dropdown/DropdownButton/DropdownButtonSearch/constants.d.ts.map +1 -0
  200. package/dist/lightweight/lib/Dropdown/DropdownButton/DropdownButtonSearch/index.d.ts +3 -0
  201. package/dist/lightweight/lib/Dropdown/DropdownButton/DropdownButtonSearch/index.d.ts.map +1 -0
  202. package/dist/lightweight/lib/Dropdown/DropdownButton/hooks/index.d.ts +2 -0
  203. package/dist/lightweight/lib/Dropdown/DropdownButton/hooks/index.d.ts.map +1 -0
  204. package/dist/lightweight/lib/Dropdown/DropdownButton/hooks/useDropdownButtonSearch.d.ts +15 -0
  205. package/dist/lightweight/lib/Dropdown/DropdownButton/hooks/useDropdownButtonSearch.d.ts.map +1 -0
  206. package/dist/lightweight/lib/Dropdown/DropdownButton/index.d.ts +2 -0
  207. package/dist/lightweight/lib/Dropdown/DropdownButton/index.d.ts.map +1 -0
  208. package/dist/lightweight/lib/Dropdown/hooks/index.d.ts +2 -0
  209. package/dist/lightweight/lib/Dropdown/hooks/index.d.ts.map +1 -0
  210. package/dist/lightweight/lib/Dropdown/hooks/useDropdown.d.ts +9 -0
  211. package/dist/lightweight/lib/Dropdown/hooks/useDropdown.d.ts.map +1 -0
  212. package/dist/lightweight/lib/Dropdown/index.d.ts +5 -0
  213. package/dist/lightweight/lib/Dropdown/index.d.ts.map +1 -0
  214. package/dist/lightweight/lib/Dropdown/types.d.ts +12 -0
  215. package/dist/lightweight/lib/Dropdown/types.d.ts.map +1 -0
  216. package/dist/lightweight/lib/Icon/Icon.cjs +1 -0
  217. package/dist/lightweight/lib/Icon/Icon.d.ts +13 -0
  218. package/dist/lightweight/lib/Icon/Icon.d.ts.map +1 -0
  219. package/dist/lightweight/lib/Icon/Icon.js +5 -0
  220. package/dist/lightweight/lib/Icon/index.d.ts +4 -0
  221. package/dist/lightweight/lib/Icon/index.d.ts.map +1 -0
  222. package/dist/lightweight/lib/Icon/themes/iconTheme.d.ts +8 -0
  223. package/dist/lightweight/lib/Icon/themes/iconTheme.d.ts.map +1 -0
  224. package/dist/lightweight/lib/Icon/themes/index.d.ts +2 -0
  225. package/dist/lightweight/lib/Icon/themes/index.d.ts.map +1 -0
  226. package/dist/lightweight/lib/Icon/themes/uiCustomization.d.ts +2 -0
  227. package/dist/lightweight/lib/Icon/themes/uiCustomization.d.ts.map +1 -0
  228. package/dist/lightweight/lib/Input/Input.cjs +1 -0
  229. package/dist/lightweight/lib/Input/Input.d.ts +28 -0
  230. package/dist/lightweight/lib/Input/Input.d.ts.map +1 -0
  231. package/dist/lightweight/lib/Input/Input.js +5 -0
  232. package/dist/lightweight/lib/Input/index.d.ts +4 -0
  233. package/dist/lightweight/lib/Input/index.d.ts.map +1 -0
  234. package/dist/lightweight/lib/LazyLoader/LazyLoader.cjs +1 -0
  235. package/dist/lightweight/lib/LazyLoader/LazyLoader.d.ts +9 -0
  236. package/dist/lightweight/lib/LazyLoader/LazyLoader.d.ts.map +1 -0
  237. package/dist/lightweight/lib/LazyLoader/LazyLoader.js +5 -0
  238. package/dist/lightweight/lib/LazyLoader/index.d.ts +4 -0
  239. package/dist/lightweight/lib/LazyLoader/index.d.ts.map +1 -0
  240. package/dist/lightweight/lib/Menu/Confirmation/Confirmation.d.ts +8 -0
  241. package/dist/lightweight/lib/Menu/Confirmation/Confirmation.d.ts.map +1 -0
  242. package/dist/lightweight/lib/Menu/Confirmation/index.d.ts +2 -0
  243. package/dist/lightweight/lib/Menu/Confirmation/index.d.ts.map +1 -0
  244. package/dist/lightweight/lib/Menu/Confirmation/translation.d.ts +2 -0
  245. package/dist/lightweight/lib/Menu/Confirmation/translation.d.ts.map +1 -0
  246. package/dist/lightweight/lib/Menu/Menu.cjs +1 -0
  247. package/dist/lightweight/lib/Menu/Menu.d.ts +80 -0
  248. package/dist/lightweight/lib/Menu/Menu.d.ts.map +1 -0
  249. package/dist/lightweight/lib/Menu/Menu.js +8 -0
  250. package/dist/lightweight/lib/Menu/MenuItem/MenuItem.d.ts +36 -0
  251. package/dist/lightweight/lib/Menu/MenuItem/MenuItem.d.ts.map +1 -0
  252. package/dist/lightweight/lib/Menu/MenuItem/index.d.ts +3 -0
  253. package/dist/lightweight/lib/Menu/MenuItem/index.d.ts.map +1 -0
  254. package/dist/lightweight/lib/Menu/index.d.ts +6 -0
  255. package/dist/lightweight/lib/Menu/index.d.ts.map +1 -0
  256. package/dist/lightweight/lib/Menu/utils.d.ts +6 -0
  257. package/dist/lightweight/lib/Menu/utils.d.ts.map +1 -0
  258. package/dist/lightweight/lib/Popover/Popover.cjs +1 -0
  259. package/dist/lightweight/lib/Popover/Popover.d.ts +16 -0
  260. package/dist/lightweight/lib/Popover/Popover.d.ts.map +1 -0
  261. package/dist/lightweight/lib/Popover/Popover.js +7 -0
  262. package/dist/lightweight/lib/Popover/align.interface.d.ts +23 -0
  263. package/dist/lightweight/lib/Popover/align.interface.d.ts.map +1 -0
  264. package/dist/lightweight/lib/Popover/index.d.ts +6 -0
  265. package/dist/lightweight/lib/Popover/index.d.ts.map +1 -0
  266. package/dist/lightweight/lib/RadioButton/RadioButton.cjs +1 -0
  267. package/dist/lightweight/lib/RadioButton/RadioButton.d.ts +20 -0
  268. package/dist/lightweight/lib/RadioButton/RadioButton.d.ts.map +1 -0
  269. package/dist/lightweight/lib/RadioButton/RadioButton.js +5 -0
  270. package/dist/lightweight/lib/RadioButton/index.d.ts +4 -0
  271. package/dist/lightweight/lib/RadioButton/index.d.ts.map +1 -0
  272. package/dist/lightweight/lib/TablePagination/PaginationActionsComponent/PaginationActionsComponent.d.ts +9 -0
  273. package/dist/lightweight/lib/TablePagination/PaginationActionsComponent/PaginationActionsComponent.d.ts.map +1 -0
  274. package/dist/lightweight/lib/TablePagination/PaginationActionsComponent/index.d.ts +2 -0
  275. package/dist/lightweight/lib/TablePagination/PaginationActionsComponent/index.d.ts.map +1 -0
  276. package/dist/lightweight/lib/TablePagination/PaginationActionsComponent/themes/index.d.ts +2 -0
  277. package/dist/lightweight/lib/TablePagination/PaginationActionsComponent/themes/index.d.ts.map +1 -0
  278. package/dist/lightweight/lib/TablePagination/PaginationActionsComponent/themes/paginationActionsComponentTheme.d.ts +3 -0
  279. package/dist/lightweight/lib/TablePagination/PaginationActionsComponent/themes/paginationActionsComponentTheme.d.ts.map +1 -0
  280. package/dist/lightweight/lib/TablePagination/PaginationActionsComponent/themes/uiCustomization.d.ts +2 -0
  281. package/dist/lightweight/lib/TablePagination/PaginationActionsComponent/themes/uiCustomization.d.ts.map +1 -0
  282. package/dist/lightweight/lib/TablePagination/TablePagination.cjs +1 -0
  283. package/dist/lightweight/lib/TablePagination/TablePagination.d.ts +19 -0
  284. package/dist/lightweight/lib/TablePagination/TablePagination.d.ts.map +1 -0
  285. package/dist/lightweight/lib/TablePagination/TablePagination.js +5 -0
  286. package/dist/lightweight/lib/TablePagination/TablePaginationContext.d.ts +3 -0
  287. package/dist/lightweight/lib/TablePagination/TablePaginationContext.d.ts.map +1 -0
  288. package/dist/lightweight/lib/TablePagination/index.d.ts +4 -0
  289. package/dist/lightweight/lib/TablePagination/index.d.ts.map +1 -0
  290. package/dist/lightweight/lib/TablePagination/themes/index.d.ts +2 -0
  291. package/dist/lightweight/lib/TablePagination/themes/index.d.ts.map +1 -0
  292. package/dist/lightweight/lib/TablePagination/themes/tablePaginationResponsiveDesign.d.ts +10 -0
  293. package/dist/lightweight/lib/TablePagination/themes/tablePaginationResponsiveDesign.d.ts.map +1 -0
  294. package/dist/lightweight/lib/TablePagination/themes/tablePaginationTheme.d.ts +3 -0
  295. package/dist/lightweight/lib/TablePagination/themes/tablePaginationTheme.d.ts.map +1 -0
  296. package/dist/lightweight/lib/TablePagination/themes/uiCustomization.d.ts +2 -0
  297. package/dist/lightweight/lib/TablePagination/themes/uiCustomization.d.ts.map +1 -0
  298. package/dist/lightweight/lib/Tooltip/Tooltip.cjs +1 -0
  299. package/dist/lightweight/lib/Tooltip/Tooltip.d.ts +10 -0
  300. package/dist/lightweight/lib/Tooltip/Tooltip.d.ts.map +1 -0
  301. package/dist/lightweight/lib/Tooltip/Tooltip.js +7 -0
  302. package/dist/lightweight/lib/Tooltip/index.d.ts +5 -0
  303. package/dist/lightweight/lib/Tooltip/index.d.ts.map +1 -0
  304. package/dist/lightweight/lib/Tooltip/themes/index.d.ts +2 -0
  305. package/dist/lightweight/lib/Tooltip/themes/index.d.ts.map +1 -0
  306. package/dist/lightweight/lib/Tooltip/themes/tooltipTheme.d.ts +3 -0
  307. package/dist/lightweight/lib/Tooltip/themes/tooltipTheme.d.ts.map +1 -0
  308. package/dist/lightweight/lib/Typography/Typography.cjs +1 -0
  309. package/dist/lightweight/lib/Typography/Typography.d.ts +11 -0
  310. package/dist/lightweight/lib/Typography/Typography.d.ts.map +1 -0
  311. package/dist/lightweight/lib/Typography/Typography.js +7 -0
  312. package/dist/lightweight/lib/Typography/index.d.ts +5 -0
  313. package/dist/lightweight/lib/Typography/index.d.ts.map +1 -0
  314. package/dist/lightweight/lib/Typography/themes/index.d.ts +2 -0
  315. package/dist/lightweight/lib/Typography/themes/index.d.ts.map +1 -0
  316. package/dist/lightweight/lib/Typography/themes/typographyTheme.d.ts +21 -0
  317. package/dist/lightweight/lib/Typography/themes/typographyTheme.d.ts.map +1 -0
  318. package/dist/lightweight/lib/Typography/themes/uiCustomization.d.ts +2 -0
  319. package/dist/lightweight/lib/Typography/themes/uiCustomization.d.ts.map +1 -0
  320. package/dist/lightweight/lib/common/emotion-cache-provider.d.ts +11 -0
  321. package/dist/lightweight/lib/common/emotion-cache-provider.d.ts.map +1 -0
  322. package/dist/lightweight/lib/constants/styleguideConstants.d.ts +9 -0
  323. package/dist/lightweight/lib/constants/styleguideConstants.d.ts.map +1 -0
  324. package/dist/lightweight/lib/index.d.ts +20 -0
  325. package/dist/lightweight/lib/index.d.ts.map +1 -0
  326. package/dist/lightweight/lib/themes/colors/index.d.ts +2 -0
  327. package/dist/lightweight/lib/themes/colors/index.d.ts.map +1 -0
  328. package/dist/lightweight/lib/themes/colors/siColors.d.ts +140 -0
  329. package/dist/lightweight/lib/themes/colors/siColors.d.ts.map +1 -0
  330. package/dist/lightweight/lib/themes/index.d.ts +3 -0
  331. package/dist/lightweight/lib/themes/index.d.ts.map +1 -0
  332. package/dist/lightweight/lib/themes/themes.cjs +2 -0
  333. package/dist/lightweight/lib/themes/themes.js +142 -0
  334. package/dist/lightweight/lib/themes/types/SisenseTheme.d.ts +12 -0
  335. package/dist/lightweight/lib/themes/types/SisenseTheme.d.ts.map +1 -0
  336. package/dist/lightweight/lib/themes/types/index.d.ts +2 -0
  337. package/dist/lightweight/lib/themes/types/index.d.ts.map +1 -0
  338. package/dist/lightweight/package.json +248 -0
  339. package/dist/lightweight/styleguideConstants-CtXkvIZK.cjs +1 -0
  340. package/dist/lightweight/styleguideConstants-D4Yls16w.js +11 -0
  341. package/dist/package.json +34 -14
  342. package/dist/resolveComponentProps-BjHOskdg.cjs +1 -0
  343. package/dist/resolveComponentProps-L5VTqIs8.js +80 -0
  344. package/dist/useFormControl-DNim9J_T.cjs +1 -0
  345. package/dist/useFormControl-lYrMmqEx.js +56 -0
  346. package/dist/useId-CK6Kn3Tn.js +21 -0
  347. package/dist/useId-DNXtOFeX.cjs +1 -0
  348. package/dist/useSlot-BHK4fbKV.cjs +3 -0
  349. package/dist/useSlot-DUGuD2Ya.js +77 -0
  350. package/dist/useSlotProps-9rt1So3E.js +25 -0
  351. package/dist/useSlotProps-ChaoOi-_.cjs +1 -0
  352. package/dist/{useTheme-CzEManLl.js → useTheme-DPwUUXTG.js} +1 -1
  353. package/dist/{useTheme-DmoPdQRb.cjs → useTheme-Dn8Us9iT.cjs} +1 -1
  354. package/package.json +34 -14
  355. package/dist/Breadcrumbs-Da5cnPID.cjs +0 -3
  356. package/dist/Button-RoXZvXZf.cjs +0 -1
  357. package/dist/ButtonBase-CISYuRKV.cjs +0 -74
  358. package/dist/Checkbox-DpGUO-Li.cjs +0 -1
  359. package/dist/DEPRECATED_Tooltip-C2bU8ipb.js +0 -2316
  360. package/dist/DEPRECATED_Tooltip-D3ReAkFF.cjs +0 -27
  361. package/dist/Portal-CtJkkaJ7.cjs +0 -1
  362. package/dist/TablePagination-baLnBUNn.cjs +0 -15
  363. package/dist/Tooltip-Dcsip2Zy.cjs +0 -7
  364. package/dist/assertThisInitialized-BSnhOY1M.cjs +0 -1
  365. package/dist/assertThisInitialized-lz6cHcRv.js +0 -8
  366. package/dist/deepmerge-BuAjuQR6.cjs +0 -17
  367. package/dist/deepmerge-DNqbOtFI.js +0 -177
  368. package/dist/emotion-cache-provider-C66nBUtN.cjs +0 -114
  369. package/dist/extends-DX42hfxm.js +0 -13
  370. package/dist/extends-q0Hkx4pQ.cjs +0 -1
  371. package/dist/setPrototypeOf-BmHXYjK5.cjs +0 -1
  372. package/dist/setPrototypeOf-CEtRTXk2.js +0 -19
  373. package/dist/useControlled-BYdyS7Pn.js +0 -31
  374. package/dist/useControlled-Ysk4KqoX.cjs +0 -3
  375. package/dist/useFormControl-CatNKXAi.js +0 -10
  376. package/dist/useFormControl-haP0iPhl.cjs +0 -1
  377. package/dist/useSlotProps-BxlgPyQJ.js +0 -102
  378. package/dist/useSlotProps-DS82uuM_.cjs +0 -1
  379. package/dist/useTimeout-DwkOFF8P.cjs +0 -2
  380. package/dist/useTimeout-Oe_jK-ia.js +0 -92
@@ -0,0 +1,25 @@
1
+ "use strict";const Xt=require("react/jsx-runtime"),Re=require("classnames"),K=require("react"),bo=require("react-dom"),vo=require("./styleguideConstants-CtXkvIZK.cjs");function Eo(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const o=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,o.get?o:{enumerable:!0,get:()=>e[t]})}}return n.default=e,Object.freeze(n)}const s=Eo(K),wo=e=>{const{children:n,prefixCls:t,id:o,overlayInnerStyle:r,bodyClassName:i,className:f,style:a}=e;return s.createElement("div",{className:Re(`${t}-content`,f),style:a},s.createElement("div",{className:Re(`${t}-inner`,i),id:o,role:"tooltip",style:r},typeof n=="function"?n():n))};function we(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}var Zt={exports:{}},A={};/**
2
+ * @license React
3
+ * react-is.production.min.js
4
+ *
5
+ * Copyright (c) Facebook, Inc. and its affiliates.
6
+ *
7
+ * This source code is licensed under the MIT license found in the
8
+ * LICENSE file in the root directory of this source tree.
9
+ */var yn;function Ro(){if(yn)return A;yn=1;var e=Symbol.for("react.element"),n=Symbol.for("react.portal"),t=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),r=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),f=Symbol.for("react.context"),a=Symbol.for("react.server_context"),p=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),m=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),R=Symbol.for("react.offscreen"),E;E=Symbol.for("react.module.reference");function g(c){if(typeof c=="object"&&c!==null){var P=c.$$typeof;switch(P){case e:switch(c=c.type,c){case t:case r:case o:case h:case d:return c;default:switch(c=c&&c.$$typeof,c){case a:case f:case p:case b:case m:case i:return c;default:return P}}case n:return P}}}return A.ContextConsumer=f,A.ContextProvider=i,A.Element=e,A.ForwardRef=p,A.Fragment=t,A.Lazy=b,A.Memo=m,A.Portal=n,A.Profiler=r,A.StrictMode=o,A.Suspense=h,A.SuspenseList=d,A.isAsyncMode=function(){return!1},A.isConcurrentMode=function(){return!1},A.isContextConsumer=function(c){return g(c)===f},A.isContextProvider=function(c){return g(c)===i},A.isElement=function(c){return typeof c=="object"&&c!==null&&c.$$typeof===e},A.isForwardRef=function(c){return g(c)===p},A.isFragment=function(c){return g(c)===t},A.isLazy=function(c){return g(c)===b},A.isMemo=function(c){return g(c)===m},A.isPortal=function(c){return g(c)===n},A.isProfiler=function(c){return g(c)===r},A.isStrictMode=function(c){return g(c)===o},A.isSuspense=function(c){return g(c)===h},A.isSuspenseList=function(c){return g(c)===d},A.isValidElementType=function(c){return typeof c=="string"||typeof c=="function"||c===t||c===r||c===o||c===h||c===d||c===R||typeof c=="object"&&c!==null&&(c.$$typeof===b||c.$$typeof===m||c.$$typeof===i||c.$$typeof===f||c.$$typeof===p||c.$$typeof===E||c.getModuleId!==void 0)},A.typeOf=g,A}var O={};/**
10
+ * @license React
11
+ * react-is.development.js
12
+ *
13
+ * Copyright (c) Facebook, Inc. and its affiliates.
14
+ *
15
+ * This source code is licensed under the MIT license found in the
16
+ * LICENSE file in the root directory of this source tree.
17
+ */var bn;function So(){return bn||(bn=1,process.env.NODE_ENV!=="production"&&function(){var e=Symbol.for("react.element"),n=Symbol.for("react.portal"),t=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),r=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),f=Symbol.for("react.context"),a=Symbol.for("react.server_context"),p=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),m=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),R=Symbol.for("react.offscreen"),E=!1,g=!1,c=!1,P=!1,y=!1,w;w=Symbol.for("react.module.reference");function L(l){return!!(typeof l=="string"||typeof l=="function"||l===t||l===r||y||l===o||l===h||l===d||P||l===R||E||g||c||typeof l=="object"&&l!==null&&(l.$$typeof===b||l.$$typeof===m||l.$$typeof===i||l.$$typeof===f||l.$$typeof===p||l.$$typeof===w||l.getModuleId!==void 0))}function S(l){if(typeof l=="object"&&l!==null){var Ne=l.$$typeof;switch(Ne){case e:var Z=l.type;switch(Z){case t:case r:case o:case h:case d:return Z;default:var ke=Z&&Z.$$typeof;switch(ke){case a:case f:case p:case b:case m:case i:return ke;default:return Ne}}case n:return Ne}}}var V=f,W=i,C=e,H=p,D=t,M=b,B=m,z=n,F=r,T=o,x=h,fe=d,U=!1,ae=!1;function G(l){return U||(U=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function me(l){return ae||(ae=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function J(l){return S(l)===f}function ee(l){return S(l)===i}function Q(l){return typeof l=="object"&&l!==null&&l.$$typeof===e}function re(l){return S(l)===p}function X(l){return S(l)===t}function _(l){return S(l)===b}function I(l){return S(l)===m}function $(l){return S(l)===n}function te(l){return S(l)===r}function q(l){return S(l)===o}function k(l){return S(l)===h}function Se(l){return S(l)===d}O.ContextConsumer=V,O.ContextProvider=W,O.Element=C,O.ForwardRef=H,O.Fragment=D,O.Lazy=M,O.Memo=B,O.Portal=z,O.Profiler=F,O.StrictMode=T,O.Suspense=x,O.SuspenseList=fe,O.isAsyncMode=G,O.isConcurrentMode=me,O.isContextConsumer=J,O.isContextProvider=ee,O.isElement=Q,O.isForwardRef=re,O.isFragment=X,O.isLazy=_,O.isMemo=I,O.isPortal=$,O.isProfiler=te,O.isStrictMode=q,O.isSuspense=k,O.isSuspenseList=Se,O.isValidElementType=L,O.typeOf=S}()),O}process.env.NODE_ENV==="production"?Zt.exports=Ro():Zt.exports=So();var qt=Zt.exports;function xo(e,n,t){const o=s.useRef({});return(!("value"in o.current)||t(o.current.condition,n))&&(o.current.value=e(),o.current.condition=n),o.current.value}const Po=Symbol.for("react.element"),To=Symbol.for("react.transitional.element"),Co=Symbol.for("react.fragment");function Wn(e){return e&&typeof e=="object"&&(e.$$typeof===Po||e.$$typeof===To)&&e.type===Co}const Mo=Number(K.version.split(".")[0]),_o=(e,n)=>{typeof e=="function"?e(n):typeof e=="object"&&e&&"current"in e&&(e.current=n)},Yn=(...e)=>{const n=e.filter(Boolean);return n.length<=1?n[0]:t=>{e.forEach(o=>{_o(o,t)})}},Fn=(...e)=>xo(()=>Yn(...e),e,(n,t)=>n.length!==t.length||n.every((o,r)=>o!==t[r])),an=e=>{var t,o;if(!e)return!1;if(jn(e)&&Mo>=19)return!0;const n=qt.isMemo(e)?e.type.type:e.type;return!(typeof n=="function"&&!((t=n.prototype)!=null&&t.render)&&n.$$typeof!==qt.ForwardRef||typeof e=="function"&&!((o=e.prototype)!=null&&o.render)&&e.$$typeof!==qt.ForwardRef)};function jn(e){return K.isValidElement(e)&&!Wn(e)}const ln=e=>{if(e&&jn(e)){const n=e;return n.props.propertyIsEnumerable("ref")?n.props.ref:n.ref}return null};let Gt={};const dn=[],No=e=>{dn.push(e)};function Ct(e,n){if(process.env.NODE_ENV!=="production"&&!e&&console!==void 0){const t=dn.reduce((o,r)=>r(o??"","warning"),n);t&&console.error(`Warning: ${t}`)}}function Ao(e,n){if(process.env.NODE_ENV!=="production"&&!e&&console!==void 0){const t=dn.reduce((o,r)=>r(o??"","note"),n);t&&console.warn(`Note: ${t}`)}}function Oo(){Gt={}}function Bn(e,n,t){!n&&!Gt[t]&&(e(!1,t),Gt[t]=!0)}function _t(e,n){Bn(Ct,e,n)}function Lo(e,n){Bn(Ao,e,n)}_t.preMessage=No;_t.resetWarned=Oo;_t.noteOnce=Lo;const Hn=s.createContext(null);let Io=!1;function $o(e){return Io}const vn=process.env.NODE_ENV!=="test"&&we()?s.useLayoutEffect:s.useEffect,pe=(e,n)=>{const t=s.useRef(!0);vn(()=>e(t.current),n),vn(()=>(t.current=!1,()=>{t.current=!0}),[])},En=[];function Do(e,n){const[t]=s.useState(()=>{if(!we())return null;const d=document.createElement("div");return process.env.NODE_ENV!=="production"&&n&&d.setAttribute("data-debug",n),d}),o=s.useRef(!1),r=s.useContext(Hn),[i,f]=s.useState(En),a=r||(o.current?void 0:d=>{f(m=>[d,...m])});function p(){t.parentElement||document.body.appendChild(t),o.current=!0}function h(){var d;(d=t.parentElement)==null||d.removeChild(t),o.current=!1}return pe(()=>(e?r?r(p):p():h(),h),[e]),pe(()=>{i.length&&(i.forEach(d=>d()),f(En))},[i]),[t,a]}function ko(e,n){if(!e)return!1;if(e.contains)return e.contains(n);let t=n;for(;t;){if(t===e)return!0;t=t.parentNode}return!1}const wn="data-rc-order",Rn="data-rc-priority",Vo="rc-util-key",Kt=new Map;function zn({mark:e}={}){return e?e.startsWith("data-")?e:`data-${e}`:Vo}function Nt(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function Wo(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function pn(e){return Array.from((Kt.get(e)||e).children).filter(n=>n.tagName==="STYLE")}function Xn(e,n={}){if(!we())return null;const{csp:t,prepend:o,priority:r=0}=n,i=Wo(o),f=i==="prependQueue",a=document.createElement("style");a.setAttribute(wn,i),f&&r&&a.setAttribute(Rn,`${r}`),t!=null&&t.nonce&&(a.nonce=t==null?void 0:t.nonce),a.innerHTML=e;const p=Nt(n),{firstChild:h}=p;if(o){if(f){const d=(n.styles||pn(p)).filter(m=>{if(!["prepend","prependQueue"].includes(m.getAttribute(wn)))return!1;const b=Number(m.getAttribute(Rn)||0);return r>=b});if(d.length)return p.insertBefore(a,d[d.length-1].nextSibling),a}p.insertBefore(a,h)}else p.appendChild(a);return a}function qn(e,n={}){let{styles:t}=n;return t||(t=pn(Nt(n))),t.find(o=>o.getAttribute(zn(n))===e)}function Jt(e,n={}){const t=qn(e,n);t&&Nt(n).removeChild(t)}function Yo(e,n){const t=Kt.get(e);if(!t||!ko(document,t)){const o=Xn("",n),{parentNode:r}=o;Kt.set(e,r),e.removeChild(o)}}function Un(e,n,t={}){var p,h,d;const o=Nt(t),r=pn(o),i={...t,styles:r};Yo(o,i);const f=qn(n,i);if(f)return(p=i.csp)!=null&&p.nonce&&f.nonce!==((h=i.csp)==null?void 0:h.nonce)&&(f.nonce=(d=i.csp)==null?void 0:d.nonce),f.innerHTML!==e&&(f.innerHTML=e),f;const a=Xn(e,i);return a.setAttribute(zn(i),n),a}function Fo(e){const n=`rc-scrollbar-measure-${Math.random().toString(36).substring(7)}`,t=document.createElement("div");t.id=n;const o=t.style;o.position="absolute",o.left="0",o.top="0",o.width="100px",o.height="100px",o.overflow="scroll";let r,i;if(e){const p=getComputedStyle(e);o.scrollbarColor=p.scrollbarColor,o.scrollbarWidth=p.scrollbarWidth;const h=getComputedStyle(e,"::-webkit-scrollbar"),d=parseInt(h.width,10),m=parseInt(h.height,10);try{const b=d?`width: ${h.width};`:"",R=m?`height: ${h.height};`:"";Un(`
18
+ #${n}::-webkit-scrollbar {
19
+ ${b}
20
+ ${R}
21
+ }`,n)}catch(b){console.error(b),r=d,i=m}}document.body.appendChild(t);const f=e&&r&&!isNaN(r)?r:t.offsetWidth-t.clientWidth,a=e&&i&&!isNaN(i)?i:t.offsetHeight-t.clientHeight;return document.body.removeChild(t),Jt(n),{width:f,height:a}}function jo(e){return typeof document>"u"||!e||!(e instanceof Element)?{width:0,height:0}:Fo(e)}function Bo(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}const Ho=`rc-util-locker-${Date.now()}`;let Sn=0;function zo(e){const n=!!e,[t]=s.useState(()=>(Sn+=1,`${Ho}_${Sn}`));pe(()=>{if(n){const o=jo(document.body).width,r=Bo();Un(`
22
+ html body {
23
+ overflow-y: hidden;
24
+ ${r?`width: calc(100% - ${o}px);`:""}
25
+ }`,t)}else Jt(t);return()=>{Jt(t)}},[n,t])}const xn=e=>e===!1?!1:!we()||!e?null:typeof e=="string"?document.querySelector(e):typeof e=="function"?e():e,mn=s.forwardRef((e,n)=>{const{open:t,autoLock:o,getContainer:r,debug:i,autoDestroy:f=!0,children:a}=e,[p,h]=s.useState(t),d=p||t;process.env.NODE_ENV!=="production"&&_t(we()||!t,"Portal only work in client side. Please call 'useEffect' to show Portal instead default render in SSR."),s.useEffect(()=>{(f||t)&&h(t)},[t,f]);const[m,b]=s.useState(()=>xn(r));s.useEffect(()=>{const L=xn(r);b(L??null)});const[R,E]=Do(d&&!m,i),g=m??R;zo(o&&t&&we()&&(g===R||g===document.body));let c=null;a&&an(a)&&n&&(c=ln(a));const P=Fn(c,n);if(!d||!we()||m===void 0)return null;const y=g===!1||$o();let w=a;return n&&(w=s.cloneElement(a,{ref:P})),s.createElement(Hn.Provider,{value:E},y?w:bo.createPortal(w,g))});process.env.NODE_ENV!=="production"&&(mn.displayName="Portal");function en(e,n={}){let t=[];return K.Children.forEach(e,o=>{o==null&&!n.keepEmpty||(Array.isArray(o)?t=t.concat(en(o)):Wn(o)&&o.props?t=t.concat(en(o.props.children,n)):t.push(o))}),t}function at(e){return e instanceof HTMLElement||e instanceof SVGElement}function Qn(e){return e&&typeof e=="object"&&at(e.nativeElement)?e.nativeElement:at(e)?e:null}const tn=s.createContext(null);function Xo({children:e,onBatchResize:n}){const t=s.useRef(0),o=s.useRef([]),r=s.useContext(tn),i=s.useCallback((f,a,p)=>{t.current+=1;const h=t.current;o.current.push({size:f,element:a,data:p}),Promise.resolve().then(()=>{h===t.current&&(n==null||n(o.current),o.current=[])}),r==null||r(f,a,p)},[n,r]);return s.createElement(tn.Provider,{value:i},e)}const _e=new Map;function Zn(e){e.forEach(n=>{var o;const{target:t}=n;(o=_e.get(t))==null||o.forEach(r=>r(t))})}let Ut;function Gn(){return Ut||(Ut=new ResizeObserver(Zn)),Ut}process.env.NODE_ENV;process.env.NODE_ENV;function qo(e,n){_e.has(e)||(_e.set(e,new Set),Gn().observe(e)),_e.get(e).add(n)}function Uo(e,n){_e.has(e)&&(_e.get(e).delete(n),_e.get(e).size||(Gn().unobserve(e),_e.delete(e)))}function Qo(e,n){const{children:t,disabled:o}=e,r=s.useRef(null),i=s.useContext(tn),f=typeof t=="function",a=f?t(r):t,p=s.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),h=!f&&s.isValidElement(a)&&an(a),d=h?ln(a):null,m=Fn(d,r),b=()=>Qn(r.current);s.useImperativeHandle(n,()=>b());const R=s.useRef(e);R.current=e;const E=s.useCallback(g=>{const{onResize:c,data:P}=R.current,{width:y,height:w}=g.getBoundingClientRect(),{offsetWidth:L,offsetHeight:S}=g,V=Math.floor(y),W=Math.floor(w);if(p.current.width!==V||p.current.height!==W||p.current.offsetWidth!==L||p.current.offsetHeight!==S){const C={width:V,height:W,offsetWidth:L,offsetHeight:S};p.current=C;const H=L===Math.round(y)?y:L,D=S===Math.round(w)?w:S,M={...C,offsetWidth:H,offsetHeight:D};i==null||i(M,g,P),c&&Promise.resolve().then(()=>{c(M,g)})}},[]);return s.useEffect(()=>{const g=b();return g&&!o&&qo(g,E),()=>Uo(g,E)},[r.current,o]),h?s.cloneElement(a,{ref:m}):a}const Kn=s.forwardRef(Qo);process.env.NODE_ENV!=="production"&&(Kn.displayName="SingleObserver");function nn(){return nn=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},nn.apply(this,arguments)}const Zo="rc-observer-key";function Go(e,n){const{children:t}=e,o=typeof t=="function"?[t]:en(t);return process.env.NODE_ENV!=="production"&&(o.length>1?Ct(!1,"Find more than one child node with `children` in ResizeObserver. Please use ResizeObserver.Collection instead."):o.length===0&&Ct(!1,"`children` of ResizeObserver is empty. Nothing is in observe.")),o.map((r,i)=>{const f=(r==null?void 0:r.key)||`${Zo}-${i}`;return s.createElement(Kn,nn({},e,{key:f,ref:i===0?n:void 0}),r)})}const At=s.forwardRef(Go);process.env.NODE_ENV!=="production"&&(At.displayName="ResizeObserver");At.Collection=Xo;function Jn(e){var n;return(n=e==null?void 0:e.getRootNode)==null?void 0:n.call(e)}function Ko(e){return Jn(e)instanceof ShadowRoot}function on(e){return Ko(e)?Jn(e):null}function Ee(e){const n=s.useRef();return n.current=e,s.useCallback((...o)=>{var r;return(r=n.current)==null?void 0:r.call(n,...o)},[])}function Jo(){return{...s}.useId}let Pn=0;const Tn=Jo(),eo=Tn?function(n){const t=Tn();return n||(process.env.NODE_ENV==="test"?"test-id":t)}:function(n){const[t,o]=s.useState("ssr-id");return s.useEffect(()=>{const r=Pn;Pn+=1,o(`rc_unique_${r}`)},[]),n||(process.env.NODE_ENV==="test"?"test-id":t)},er=()=>{if(typeof navigator>"u"||typeof window>"u")return!1;const e=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(e==null?void 0:e.substr(0,4))},tr=s.createContext({});function rn(e){const n=s.useRef(!1),[t,o]=s.useState(e);s.useEffect(()=>(n.current=!1,()=>{n.current=!0}),[]);function r(i,f){f&&n.current||o(i)}return[t,r]}function nr(e){const[,n]=s.useReducer(i=>i+1,0),t=s.useRef(e),o=Ee(()=>t.current),r=Ee(i=>{t.current=typeof i=="function"?i(t.current):i,n()});return[o,r]}const Me="none",St="appear",xt="enter",Pt="leave",Cn="none",be="prepare",Je="start",et="active",hn="end",to="prepared";function Mn(e,n){const t={};return t[e.toLowerCase()]=n.toLowerCase(),t[`Webkit${e}`]=`webkit${n}`,t[`Moz${e}`]=`moz${n}`,t[`ms${e}`]=`MS${n}`,t[`O${e}`]=`o${n.toLowerCase()}`,t}function or(e,n){const t={animationend:Mn("Animation","AnimationEnd"),transitionend:Mn("Transition","TransitionEnd")};return e&&("AnimationEvent"in n||delete t.animationend.animation,"TransitionEvent"in n||delete t.transitionend.transition),t}const rr=or(we(),typeof window<"u"?window:{});let no={};we()&&({style:no}=document.createElement("div"));const Tt={};function oo(e){if(Tt[e])return Tt[e];const n=rr[e];if(n){const t=Object.keys(n),o=t.length;for(let r=0;r<o;r+=1){const i=t[r];if(Object.prototype.hasOwnProperty.call(n,i)&&i in no)return Tt[e]=n[i],Tt[e]}}return""}const ro=oo("animationend"),so=oo("transitionend"),sr=!!(ro&&so),_n=ro||"animationend",Nn=so||"transitionend";function An(e,n){if(!e)return null;if(typeof e=="object"){const t=n.replace(/-\w/g,o=>o[1].toUpperCase());return e[t]}return`${e}-${n}`}const ir=e=>{const n=K.useRef();function t(r){r&&(r.removeEventListener(Nn,e),r.removeEventListener(_n,e))}function o(r){n.current&&n.current!==r&&t(n.current),r&&r!==n.current&&(r.addEventListener(Nn,e),r.addEventListener(_n,e),n.current=r)}return s.useEffect(()=>()=>{t(n.current)},[]),[o,t]},io=we()?K.useLayoutEffect:K.useEffect;let co=e=>+setTimeout(e,16),uo=e=>clearTimeout(e);typeof window<"u"&&"requestAnimationFrame"in window&&(co=e=>window.requestAnimationFrame(e),uo=e=>window.cancelAnimationFrame(e));let On=0;const Ot=new Map;function fo(e){Ot.delete(e)}const Mt=(e,n=1)=>{On+=1;const t=On;function o(r){if(r===0)fo(t),e();else{const i=co(()=>{o(r-1)});Ot.set(t,i)}}return o(n),t};Mt.cancel=e=>{const n=Ot.get(e);return fo(e),uo(n)};process.env.NODE_ENV!=="production"&&(Mt.ids=()=>Ot);const cr=()=>{const e=s.useRef(null);function n(){Mt.cancel(e.current)}function t(o,r=2){n();const i=Mt(()=>{r<=1?o({isCanceled:()=>i!==e.current}):t(o,r-1)});e.current=i}return s.useEffect(()=>()=>{n()},[]),[t,n]},ur=[be,Je,et,hn],fr=[be,to],ao=!1,ar=!0;function lo(e){return e===et||e===hn}const lr=(e,n,t)=>{const[o,r]=rn(Cn),[i,f]=cr();function a(){r(be,!0)}const p=n?fr:ur;return io(()=>{if(o!==Cn&&o!==hn){const h=p.indexOf(o),d=p[h+1],m=t(o);m===ao?r(d,!0):d&&i(b=>{function R(){b.isCanceled()||r(d,!0)}m===!0?R():Promise.resolve(m).then(R)})}},[e,o]),s.useEffect(()=>()=>{f()},[]),[a,o]};function dr(e,n,t,{motionEnter:o=!0,motionAppear:r=!0,motionLeave:i=!0,motionDeadline:f,motionLeaveImmediately:a,onAppearPrepare:p,onEnterPrepare:h,onLeavePrepare:d,onAppearStart:m,onEnterStart:b,onLeaveStart:R,onAppearActive:E,onEnterActive:g,onLeaveActive:c,onAppearEnd:P,onEnterEnd:y,onLeaveEnd:w,onVisibleChanged:L}){const[S,V]=rn(),[W,C]=nr(Me),[H,D]=rn(null),M=W(),B=K.useRef(!1),z=K.useRef(null);function F(){return t()}const T=K.useRef(!1);function x(){C(Me),D(null,!0)}const fe=Ee(_=>{const I=W();if(I===Me)return;const $=F();if(_&&!_.deadline&&_.target!==$)return;const te=T.current;let q;I===St&&te?q=P==null?void 0:P($,_):I===xt&&te?q=y==null?void 0:y($,_):I===Pt&&te&&(q=w==null?void 0:w($,_)),te&&q!==!1&&x()}),[U]=ir(fe),ae=_=>{switch(_){case St:return{[be]:p,[Je]:m,[et]:E};case xt:return{[be]:h,[Je]:b,[et]:g};case Pt:return{[be]:d,[Je]:R,[et]:c};default:return{}}},G=s.useMemo(()=>ae(M),[M]),[me,J]=lr(M,!e,_=>{var I;if(_===be){const $=G[be];return $?$(F()):ao}return J in G&&D(((I=G[J])==null?void 0:I.call(G,F(),null))||null),J===et&&M!==Me&&(U(F()),f>0&&(clearTimeout(z.current),z.current=setTimeout(()=>{fe({deadline:!0})},f))),J===to&&x(),ar}),ee=lo(J);T.current=ee;const Q=K.useRef(null);io(()=>{if(B.current&&Q.current===n)return;V(n);const _=B.current;B.current=!0;let I;!_&&n&&r&&(I=St),_&&n&&o&&(I=xt),(_&&!n&&i||!_&&a&&!n&&i)&&(I=Pt);const $=ae(I);I&&(e||$[be])?(C(I),me()):C(Me),Q.current=n},[n]),K.useEffect(()=>{(M===St&&!r||M===xt&&!o||M===Pt&&!i)&&C(Me)},[r,o,i]),K.useEffect(()=>()=>{B.current=!1,clearTimeout(z.current)},[]);const re=s.useRef(!1);K.useEffect(()=>{S&&(re.current=!0),S!==void 0&&M===Me&&((re.current||S)&&(L==null||L(S)),re.current=!0)},[S,M]);let X=H;return G[be]&&J===Je&&(X={transition:"none",...X}),[W,J,X,S??n]}function pr(e){let n=e;typeof e=="object"&&({transitionSupport:n}=e);function t(r,i){return!!(r.motionName&&n&&i!==!1)}const o=s.forwardRef((r,i)=>{const{visible:f=!0,removeOnLeave:a=!0,forceRender:p,children:h,motionName:d,leavedClassName:m,eventProps:b}=r,{motion:R}=s.useContext(tr),E=t(r,R),g=K.useRef();function c(){return Qn(g.current)}const[P,y,w,L]=dr(E,f,c,r),S=P(),V=s.useRef(L);L&&(V.current=!0);const W=s.useMemo(()=>{const D={};return Object.defineProperties(D,{nativeElement:{enumerable:!0,get:c},inMotion:{enumerable:!0,get:()=>()=>P()!==Me},enableMotion:{enumerable:!0,get:()=>()=>E}}),D},[]);s.useImperativeHandle(i,()=>W,[]);let C;const H={...b,visible:f};if(!h)C=null;else if(S===Me)L?C=h({...H},g):!a&&V.current&&m?C=h({...H,className:m},g):p||!a&&!m?C=h({...H,style:{display:"none"}},g):C=null;else{let D;y===be?D="prepare":lo(y)?D="active":y===Je&&(D="start");const M=An(d,`${S}-${D}`);C=h({...H,className:Re(An(d,S),{[M]:M&&D,[d]:typeof d=="string"}),style:w},g)}return s.isValidElement(C)&&an(C)&&(ln(C)||(C=s.cloneElement(C,{ref:g}))),C});return o.displayName="CSSMotion",o}const po=pr(sr);function mr(e){const{prefixCls:n,align:t,arrow:o,arrowPos:r}=e,{className:i,content:f}=o||{},{x:a=0,y:p=0}=r,h=s.useRef(null);if(!t||!t.points)return null;const d={position:"absolute"};if(t.autoArrow!==!1){const m=t.points[0],b=t.points[1],R=m[0],E=m[1],g=b[0],c=b[1];R===g||!["t","b"].includes(R)?d.top=p:R==="t"?d.top=0:d.bottom=0,E===c||!["l","r"].includes(E)?d.left=a:E==="l"?d.left=0:d.right=0}return s.createElement("div",{ref:h,className:Re(`${n}-arrow`,i),style:d},f)}function sn(){return sn=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},sn.apply(this,arguments)}function hr(e){const{prefixCls:n,open:t,zIndex:o,mask:r,motion:i}=e;return r?s.createElement(po,sn({},i,{motionAppear:!0,visible:t,removeOnLeave:!0}),({className:f})=>s.createElement("div",{style:{zIndex:o},className:Re(`${n}-mask`,f)})):null}const mo=s.memo(({children:e})=>e,(e,n)=>n.cache);process.env.NODE_ENV!=="production"&&(mo.displayName="PopupContent");function cn(){return cn=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},cn.apply(this,arguments)}const ho=s.forwardRef((e,n)=>{var $;const{popup:t,className:o,prefixCls:r,style:i,target:f,onVisibleChanged:a,open:p,keepDom:h,fresh:d,onClick:m,mask:b,arrow:R,arrowPos:E,align:g,motion:c,maskMotion:P,forceRender:y,getPopupContainer:w,autoDestroy:L,portal:S,zIndex:V,onMouseEnter:W,onMouseLeave:C,onPointerEnter:H,onPointerDownCapture:D,ready:M,offsetX:B,offsetY:z,offsetR:F,offsetB:T,onAlign:x,onPrepare:fe,stretch:U,targetWidth:ae,targetHeight:G}=e,me=typeof t=="function"?t():t,J=p||h,ee=(w==null?void 0:w.length)>0,[Q,re]=s.useState(!w||!ee);if(pe(()=>{!Q&&ee&&f&&re(!0)},[Q,ee,f]),!Q)return null;const X="auto",_={left:"-1000vw",top:"-1000vh",right:X,bottom:X};if(M||!p){const{points:te}=g,q=g.dynamicInset||(($=g._experimental)==null?void 0:$.dynamicInset),k=q&&te[0][1]==="r",Se=q&&te[0][0]==="b";k?(_.right=F,_.left=X):(_.left=B,_.right=X),Se?(_.bottom=T,_.top=X):(_.top=z,_.bottom=X)}const I={};return U&&(U.includes("height")&&G?I.height=G:U.includes("minHeight")&&G&&(I.minHeight=G),U.includes("width")&&ae?I.width=ae:U.includes("minWidth")&&ae&&(I.minWidth=ae)),p||(I.pointerEvents="none"),s.createElement(S,{open:y||J,getContainer:w&&(()=>w(f)),autoDestroy:L},s.createElement(hr,{prefixCls:r,open:p,zIndex:V,mask:b,motion:P}),s.createElement(At,{onResize:x,disabled:!p},te=>s.createElement(po,cn({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:y,leavedClassName:`${r}-hidden`},c,{onAppearPrepare:fe,onEnterPrepare:fe,visible:p,onVisibleChanged:q=>{var k;(k=c==null?void 0:c.onVisibleChanged)==null||k.call(c,q),a(q)}}),({className:q,style:k},Se)=>{const l=Re(r,q,o);return s.createElement("div",{ref:Yn(te,n,Se),className:l,style:{"--arrow-x":`${E.x||0}px`,"--arrow-y":`${E.y||0}px`,..._,...I,...k,boxSizing:"border-box",zIndex:V,...i},onMouseEnter:W,onMouseLeave:C,onPointerEnter:H,onClick:m,onPointerDownCapture:D},R&&s.createElement(mr,{prefixCls:r,arrow:R,arrowPos:E,align:g}),s.createElement(mo,{cache:!p&&!d},me))})))});process.env.NODE_ENV!=="production"&&(ho.displayName="Popup");const Ln=s.createContext(null);function In(e){return e?Array.isArray(e)?e:[e]:[]}function gr(e,n,t,o){return s.useMemo(()=>{const r=In(t??n),i=In(o??n),f=new Set(r),a=new Set(i);return e&&(f.has("hover")&&(f.delete("hover"),f.add("click")),a.has("hover")&&(a.delete("hover"),a.add("click"))),[f,a]},[e,n,t,o])}const yr=e=>{if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){const{width:n,height:t}=e.getBBox();if(n||t)return!0}if(e.getBoundingClientRect){const{width:n,height:t}=e.getBoundingClientRect();if(n||t)return!0}}return!1};function br(e=[],n=[],t){return t?e[0]===n[0]:e[0]===n[0]&&e[1]===n[1]}function vr(e,n,t,o){var f;const{points:r}=t,i=Object.keys(e);for(let a=0;a<i.length;a+=1){const p=i[a];if(br((f=e[p])==null?void 0:f.points,r,o))return`${n}-placement-${p}`}return""}function dt(e){return e.ownerDocument.defaultView}function un(e){const n=[];let t=e==null?void 0:e.parentElement;const o=["hidden","scroll","clip","auto"];for(;t;){const{overflowX:r,overflowY:i,overflow:f}=dt(t).getComputedStyle(t);[r,i,f].some(a=>o.includes(a))&&n.push(t),t=t.parentElement}return n}function lt(e,n=1){return Number.isNaN(e)?n:e}function ft(e){return lt(parseFloat(e),0)}function $n(e,n){const t={...e};return(n||[]).forEach(o=>{if(o instanceof HTMLBodyElement||o instanceof HTMLHtmlElement)return;const{overflow:r,overflowClipMargin:i,borderTopWidth:f,borderBottomWidth:a,borderLeftWidth:p,borderRightWidth:h}=dt(o).getComputedStyle(o),d=o.getBoundingClientRect(),{offsetHeight:m,clientHeight:b,offsetWidth:R,clientWidth:E}=o,g=ft(f),c=ft(a),P=ft(p),y=ft(h),w=lt(Math.round(d.width/R*1e3)/1e3),L=lt(Math.round(d.height/m*1e3)/1e3),S=(R-E-P-y)*w,V=(m-b-g-c)*L,W=g*L,C=c*L,H=P*w,D=y*w;let M=0,B=0;if(r==="clip"){const fe=ft(i);M=fe*w,B=fe*L}const z=d.x+H-M,F=d.y+W-B,T=z+d.width+2*M-H-D-S,x=F+d.height+2*B-W-C-V;t.left=Math.max(t.left,z),t.top=Math.max(t.top,F),t.right=Math.min(t.right,T),t.bottom=Math.min(t.bottom,x)}),t}function Dn(e,n=0){const t=`${n}`,o=t.match(/^(.*)\%$/);return o?e*(parseFloat(o[1])/100):parseFloat(t)}function kn(e,n){const[t,o]=n||[];return[Dn(e.width,t),Dn(e.height,o)]}function Vn(e=""){return[e[0],e[1]]}function Ze(e,n){const t=n[0],o=n[1];let r,i;return t==="t"?i=e.y:t==="b"?i=e.y+e.height:i=e.y+e.height/2,o==="l"?r=e.x:o==="r"?r=e.x+e.width:r=e.x+e.width/2,{x:r,y:i}}function De(e,n){const t={t:"b",b:"t",l:"r",r:"l"};return e.map((o,r)=>r===n?t[o]||"c":o).join("")}function Er(e,n,t,o,r,i,f){const[a,p]=s.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:r[o]||{}}),h=s.useRef(0),d=s.useMemo(()=>n?un(n):[],[n]),m=s.useRef({});e||(()=>{m.current={}})();const R=Ee(()=>{var c,P;if(n&&t&&e){let de=function(v,ue,u=Ne){const Y=x.x+v,oe=x.y+ue,$e=Y+Q,Ce=oe+ee,zt=Math.max(Y,u.left),Rt=Math.max(oe,u.top),go=Math.min($e,u.right),yo=Math.min(Ce,u.bottom);return Math.max(0,(go-zt)*(yo-Rt))},Fe=function(){Ye=x.y+j,Xe=Ye+ee,ve=x.x+N,Oe=ve+Q};const y=n,w=y.ownerDocument,L=dt(y),{width:S,height:V,position:W}=L.getComputedStyle(y),C=y.style.left,H=y.style.top,D=y.style.right,M=y.style.bottom,B=y.style.overflow,z={...r[o],...i},F=w.createElement("div");(c=y.parentElement)==null||c.appendChild(F),F.style.left=`${y.offsetLeft}px`,F.style.top=`${y.offsetTop}px`,F.style.position=W,F.style.height=`${y.offsetHeight}px`,F.style.width=`${y.offsetWidth}px`,y.style.left="0",y.style.top="0",y.style.right="auto",y.style.bottom="auto",y.style.overflow="hidden";let T;if(Array.isArray(t))T={x:t[0],y:t[1],width:0,height:0};else{const v=t.getBoundingClientRect();v.x=v.x??v.left,v.y=v.y??v.top,T={x:v.x,y:v.y,width:v.width,height:v.height}}const x=y.getBoundingClientRect();x.x=x.x??x.left,x.y=x.y??x.top;const{clientWidth:fe,clientHeight:U,scrollWidth:ae,scrollHeight:G,scrollTop:me,scrollLeft:J}=w.documentElement,ee=x.height,Q=x.width,re=T.height,X=T.width,_={left:0,top:0,right:fe,bottom:U},I={left:-J,top:-me,right:ae-J,bottom:G-me};let{htmlRegion:$}=z;const te="visible",q="visibleFirst";$!=="scroll"&&$!==q&&($=te);const k=$===q,Se=$n(I,d),l=$n(_,d),Ne=$===te?l:Se,Z=k?l:Ne;y.style.left="auto",y.style.top="auto",y.style.right="0",y.style.bottom="0";const ke=y.getBoundingClientRect();y.style.left=C,y.style.top=H,y.style.right=D,y.style.bottom=M,y.style.overflow=B,(P=y.parentElement)==null||P.removeChild(F);const xe=lt(Math.round(Q/parseFloat(S)*1e3)/1e3),Ae=lt(Math.round(ee/parseFloat(V)*1e3)/1e3);if(xe===0||Ae===0||at(t)&&!yr(t))return;const{offset:He,targetOffset:se}=z;let[ie,ye]=kn(x,He);const[Lt,pt]=kn(T,se);T.x-=Lt,T.y-=pt;const[ce,It]=z.points||[],le=Vn(It),ne=Vn(ce),tt=Ze(T,le),nt=Ze(x,ne),Pe={...z};let N=tt.x-nt.x+ie,j=tt.y-nt.y+ye;const he=de(N,j),Ve=de(N,j,l),ze=Ze(T,["t","l"]),mt=Ze(x,["t","l"]),We=Ze(T,["b","r"]),ht=Ze(x,["b","r"]),$t=z.overflow||{},{adjustX:Dt,adjustY:kt,shiftX:gt,shiftY:yt}=$t,bt=v=>typeof v=="boolean"?v:v>=0;let Ye,Xe,ve,Oe;Fe();const Le=bt(kt),ot=ne[0]===le[0];if(Le&&ne[0]==="t"&&(Xe>Z.bottom||m.current.bt)){let v=j;ot?v-=ee-re:v=ze.y-ht.y-ye;const ue=de(N,v),u=de(N,v,l);ue>he||ue===he&&(!k||u>=Ve)?(m.current.bt=!0,j=v,ye=-ye,Pe.points=[De(ne,0),De(le,0)]):m.current.bt=!1}if(Le&&ne[0]==="b"&&(Ye<Z.top||m.current.tb)){let v=j;ot?v+=ee-re:v=We.y-mt.y-ye;const ue=de(N,v),u=de(N,v,l);ue>he||ue===he&&(!k||u>=Ve)?(m.current.tb=!0,j=v,ye=-ye,Pe.points=[De(ne,0),De(le,0)]):m.current.tb=!1}const je=bt(Dt),Te=ne[1]===le[1];if(je&&ne[1]==="l"&&(Oe>Z.right||m.current.rl)){let v=N;Te?v-=Q-X:v=ze.x-ht.x-ie;const ue=de(v,j),u=de(v,j,l);ue>he||ue===he&&(!k||u>=Ve)?(m.current.rl=!0,N=v,ie=-ie,Pe.points=[De(ne,1),De(le,1)]):m.current.rl=!1}if(je&&ne[1]==="r"&&(ve<Z.left||m.current.lr)){let v=N;Te?v+=Q-X:v=We.x-mt.x-ie;const ue=de(v,j),u=de(v,j,l);ue>he||ue===he&&(!k||u>=Ve)?(m.current.lr=!0,N=v,ie=-ie,Pe.points=[De(ne,1),De(le,1)]):m.current.lr=!1}Fe();const qe=gt===!0?0:gt;typeof qe=="number"&&(ve<l.left&&(N-=ve-l.left-ie,T.x+X<l.left+qe&&(N+=T.x-l.left+X-qe)),Oe>l.right&&(N-=Oe-l.right-ie,T.x>l.right-qe&&(N+=T.x-l.right+qe)));const Be=yt===!0?0:yt;typeof Be=="number"&&(Ye<l.top&&(j-=Ye-l.top-ye,T.y+re<l.top+Be&&(j+=T.y-l.top+re-Be)),Xe>l.bottom&&(j-=Xe-l.bottom-ye,T.y>l.bottom-Be&&(j+=T.y-l.bottom+Be)));const rt=x.x+N,Vt=rt+Q,st=x.y+j,Wt=st+ee,it=T.x,Yt=it+X,vt=T.y,Ft=vt+re,Ie=Math.max(rt,it),jt=Math.min(Vt,Yt),Bt=(Ie+jt)/2-rt,ct=Math.max(st,vt),Et=Math.min(Wt,Ft),Ue=(ct+Et)/2-st;f==null||f(n,Pe);let Qe=ke.right-x.x-(N+x.width),wt=ke.bottom-x.y-(j+x.height);xe===1&&(N=Math.round(N),Qe=Math.round(Qe)),Ae===1&&(j=Math.round(j),wt=Math.round(wt));const Ht={ready:!0,offsetX:N/xe,offsetY:j/Ae,offsetR:Qe/xe,offsetB:wt/Ae,arrowX:Bt/xe,arrowY:Ue/Ae,scaleX:xe,scaleY:Ae,align:Pe};p(Ht)}}),E=()=>{h.current+=1;const c=h.current;Promise.resolve().then(()=>{h.current===c&&R()})},g=()=>{p(c=>({...c,ready:!1}))};return pe(g,[o]),pe(()=>{e||g()},[e]),[a.ready,a.offsetX,a.offsetY,a.offsetR,a.offsetB,a.arrowX,a.arrowY,a.scaleX,a.scaleY,a.align,E]}function wr(e,n,t,o,r){pe(()=>{if(e&&n&&t){let m=function(){o(),r()};const i=n,f=t,a=un(i),p=un(f),h=dt(f),d=new Set([h,...a,...p]);return d.forEach(b=>{b.addEventListener("scroll",m,{passive:!0})}),h.addEventListener("resize",m,{passive:!0}),o(),()=>{d.forEach(b=>{b.removeEventListener("scroll",m),h.removeEventListener("resize",m)})}}},[e,n,t])}function Rr(e,n,t,o,r,i,f,a){const p=s.useRef(e);p.current=e;const h=s.useRef(!1);s.useEffect(()=>{var m,b;if(n&&o&&(!r||i)){const R=()=>{h.current=!1},E=P=>{var y,w;p.current&&!f(((w=(y=P.composedPath)==null?void 0:y.call(P))==null?void 0:w[0])||P.target)&&!h.current&&a(!1)},g=dt(o);g.addEventListener("pointerdown",R,!0),g.addEventListener("mousedown",E,!0),g.addEventListener("contextmenu",E,!0);const c=on(t);if(c&&(c.addEventListener("mousedown",E,!0),c.addEventListener("contextmenu",E,!0)),process.env.NODE_ENV!=="production"){const P=(m=t==null?void 0:t.getRootNode)==null?void 0:m.call(t),y=(b=o.getRootNode)==null?void 0:b.call(o);Ct(P===y,"trigger element and popup element should in same shadow root.")}return()=>{g.removeEventListener("pointerdown",R,!0),g.removeEventListener("mousedown",E,!0),g.removeEventListener("contextmenu",E,!0),c&&(c.removeEventListener("mousedown",E,!0),c.removeEventListener("contextmenu",E,!0))}}},[n,t,o,r,i]);function d(){h.current=!0}return d}function Sr(e=mn){const n=s.forwardRef((t,o)=>{const{prefixCls:r="rc-trigger-popup",children:i,action:f="hover",showAction:a,hideAction:p,popupVisible:h,defaultPopupVisible:d,onOpenChange:m,afterOpenChange:b,onPopupVisibleChange:R,afterPopupVisibleChange:E,mouseEnterDelay:g,mouseLeaveDelay:c=.1,focusDelay:P,blurDelay:y,mask:w,maskClosable:L=!0,getPopupContainer:S,forceRender:V,autoDestroy:W,popup:C,popupClassName:H,popupStyle:D,popupPlacement:M,builtinPlacements:B={},popupAlign:z,zIndex:F,stretch:T,getPopupClassNameFromAlign:x,fresh:fe,alignPoint:U,onPopupClick:ae,onPopupAlign:G,arrow:me,popupMotion:J,maskMotion:ee,...Q}=t,re=W||!1,[X,_]=s.useState(!1);pe(()=>{_(er())},[]);const I=s.useRef({}),$=s.useContext(Ln),te=s.useMemo(()=>({registerSubPopup:(u,Y)=>{I.current[u]=Y,$==null||$.registerSubPopup(u,Y)}}),[$]),q=eo(),[k,Se]=s.useState(null),l=s.useRef(null),Ne=Ee(u=>{l.current=u,at(u)&&k!==u&&Se(u),$==null||$.registerSubPopup(q,u)}),[Z,ke]=s.useState(null),xe=s.useRef(null),Ae=Ee(u=>{at(u)&&Z!==u&&(ke(u),xe.current=u)}),He=s.Children.only(i),se=(He==null?void 0:He.props)||{},ie={},ye=Ee(u=>{var oe,$e;const Y=Z;return(Y==null?void 0:Y.contains(u))||((oe=on(Y))==null?void 0:oe.host)===u||u===Y||(k==null?void 0:k.contains(u))||(($e=on(k))==null?void 0:$e.host)===u||u===k||Object.values(I.current).some(Ce=>(Ce==null?void 0:Ce.contains(u))||u===Ce)}),[Lt,pt]=s.useState(d||!1),ce=h??Lt,It=Ee(u=>{h===void 0&&pt(u)});pe(()=>{pt(h||!1)},[h]);const le=s.useRef(ce);le.current=ce;const ne=s.useRef([]);ne.current=[];const tt=Ee(u=>{It(u),(ne.current[ne.current.length-1]??ce)!==u&&(ne.current.push(u),m==null||m(u),R==null||R(u))}),nt=s.useRef(null),Pe=()=>{clearTimeout(nt.current)},N=(u,Y=0)=>{Pe(),Y===0?tt(u):nt.current=setTimeout(()=>{tt(u)},Y*1e3)};s.useEffect(()=>Pe,[]);const[j,de]=s.useState(!1);pe(u=>{(!u||ce)&&de(!0)},[ce]);const[he,Ve]=s.useState(null),[ze,mt]=s.useState(null),We=u=>{mt([u.clientX,u.clientY])},[ht,$t,Dt,kt,gt,yt,bt,Ye,Xe,ve,Oe]=Er(ce,k,U&&ze!==null?ze:Z,M,B,z,G),[Fe,Le]=gr(X,f,a,p),ot=Fe.has("click"),je=Le.has("click")||Le.has("contextMenu"),Te=Ee(()=>{j||Oe()});wr(ce,Z,k,Te,()=>{le.current&&U&&je&&N(!1)}),pe(()=>{Te()},[ze,M]),pe(()=>{ce&&!(B!=null&&B[M])&&Te()},[JSON.stringify(z)]);const Be=s.useMemo(()=>{const u=vr(B,r,ve,U);return Re(u,x==null?void 0:x(ve))},[ve,x,B,r,U]);s.useImperativeHandle(o,()=>({nativeElement:xe.current,popupElement:l.current,forceAlign:Te}));const[rt,Vt]=s.useState(0),[st,Wt]=s.useState(0),it=()=>{if(T&&Z){const u=Z.getBoundingClientRect();Vt(u.width),Wt(u.height)}},Yt=()=>{it(),Te()},vt=u=>{de(!1),Oe(),b==null||b(u),E==null||E(u)},Ft=()=>new Promise(u=>{it(),Ve(()=>u)});pe(()=>{he&&(Oe(),he(),Ve(null))},[he]);function Ie(u,Y,oe,$e){ie[u]=(Ce,...zt)=>{var Rt;$e==null||$e(Ce),N(Y,oe),(Rt=se[u])==null||Rt.call(se,Ce,...zt)}}(ot||je)&&(ie.onClick=(u,...Y)=>{var oe;le.current&&je?N(!1):!le.current&&ot&&(We(u),N(!0)),(oe=se.onClick)==null||oe.call(se,u,...Y)});const jt=Rr(ce,je,Z,k,w,L,ye,N),gn=Fe.has("hover"),Bt=Le.has("hover");let ct,Et;gn&&(Ie("onMouseEnter",!0,g,u=>{We(u)}),Ie("onPointerEnter",!0,g,u=>{We(u)}),ct=u=>{(ce||j)&&(k!=null&&k.contains(u.target))&&N(!0,g)},U&&(ie.onMouseMove=u=>{var Y;(Y=se.onMouseMove)==null||Y.call(se,u)})),Bt&&(Ie("onMouseLeave",!1,c),Ie("onPointerLeave",!1,c),Et=()=>{N(!1,c)}),Fe.has("focus")&&Ie("onFocus",!0,P),Le.has("focus")&&Ie("onBlur",!1,y),Fe.has("contextMenu")&&(ie.onContextMenu=(u,...Y)=>{var oe;le.current&&Le.has("contextMenu")?N(!1):(We(u),N(!0)),u.preventDefault(),(oe=se.onContextMenu)==null||oe.call(se,u,...Y)});const ut=s.useRef(!1);ut.current||(ut.current=V||ce||j);const Ue={...se,...ie},Qe={};["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"].forEach(u=>{Q[u]&&(Qe[u]=(...Y)=>{var oe;(oe=Ue[u])==null||oe.call(Ue,...Y),Q[u](...Y)})});const Ht={x:yt,y:bt},v=me?{...me!==!0?me:{}}:null,ue=s.cloneElement(He,{...Ue,...Qe});return s.createElement(s.Fragment,null,s.createElement(At,{disabled:!ce,ref:Ae,onResize:Yt},ue),ut.current&&s.createElement(Ln.Provider,{value:te},s.createElement(ho,{portal:e,ref:Ne,prefixCls:r,popup:C,className:Re(H,Be),style:D,target:Z,onMouseEnter:ct,onMouseLeave:Et,onPointerEnter:ct,zIndex:F,open:ce,keepDom:j,fresh:fe,onClick:ae,onPointerDownCapture:jt,mask:w,motion:J,maskMotion:ee,onVisibleChanged:vt,onPrepare:Ft,forceRender:V,autoDestroy:re,getPopupContainer:S,align:ve,arrow:v,arrowPos:Ht,ready:ht,offsetX:$t,offsetY:Dt,offsetR:kt,offsetB:gt,onAlign:Te,stretch:T,targetWidth:rt/Ye,targetHeight:st/Xe})))});return process.env.NODE_ENV!=="production"&&(n.displayName="Trigger"),n}const xr=Sr(mn),Ge={shiftX:64,adjustY:1},Ke={adjustX:1,shiftY:!0},ge=[0,0],Pr={left:{points:["cr","cl"],overflow:Ke,offset:[-4,0],targetOffset:ge},right:{points:["cl","cr"],overflow:Ke,offset:[4,0],targetOffset:ge},top:{points:["bc","tc"],overflow:Ge,offset:[0,-4],targetOffset:ge},bottom:{points:["tc","bc"],overflow:Ge,offset:[0,4],targetOffset:ge},topLeft:{points:["bl","tl"],overflow:Ge,offset:[0,-4],targetOffset:ge},leftTop:{points:["tr","tl"],overflow:Ke,offset:[-4,0],targetOffset:ge},topRight:{points:["br","tr"],overflow:Ge,offset:[0,-4],targetOffset:ge},rightTop:{points:["tl","tr"],overflow:Ke,offset:[4,0],targetOffset:ge},bottomRight:{points:["tr","br"],overflow:Ge,offset:[0,4],targetOffset:ge},rightBottom:{points:["bl","br"],overflow:Ke,offset:[4,0],targetOffset:ge},bottomLeft:{points:["tl","bl"],overflow:Ge,offset:[0,4],targetOffset:ge},leftBottom:{points:["br","bl"],overflow:Ke,offset:[-4,0],targetOffset:ge}};function fn(){return fn=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},fn.apply(this,arguments)}const Tr=s.forwardRef((e,n)=>{const{overlayClassName:t,trigger:o=["hover"],mouseEnterDelay:r=0,mouseLeaveDelay:i=.1,overlayStyle:f,prefixCls:a="rc-tooltip",children:p,onVisibleChange:h,afterVisibleChange:d,motion:m,placement:b="right",align:R={},destroyOnHidden:E=!1,defaultVisible:g,getTooltipContainer:c,overlayInnerStyle:P,arrowContent:y,overlay:w,id:L,showArrow:S=!0,classNames:V,styles:W,...C}=e,H=eo(L),D=K.useRef(null);K.useImperativeHandle(n,()=>D.current);const M={...C};"visible"in e&&(M.popupVisible=e.visible);const B=()=>s.createElement(wo,{key:"content",prefixCls:a,id:H,bodyClassName:V==null?void 0:V.body,overlayInnerStyle:{...P,...W==null?void 0:W.body}},w),z=()=>{const F=s.Children.only(p),x={...(F==null?void 0:F.props)||{},"aria-describedby":w?H:null};return s.cloneElement(p,x)};return s.createElement(xr,fn({popupClassName:Re(t,V==null?void 0:V.root),prefixCls:a,popup:B,action:o,builtinPlacements:Pr,popupPlacement:b,ref:D,popupAlign:R,getPopupContainer:c,onOpenChange:h,afterOpenChange:d,popupMotion:m,defaultPopupVisible:g,autoDestroy:E,mouseLeaveDelay:i,popupStyle:{...f,...W==null?void 0:W.root},mouseEnterDelay:r,arrow:S},M),z())}),Cr="DEPRECATED_Tooltip-module__breakLongWord___kWwu0",Mr="DEPRECATED_Tooltip-module__rcToolTipZoomIn___0ddOq",_r="DEPRECATED_Tooltip-module__rcToolTipZoomOut___kpbOG",Qt={breakLongWord:Cr,rcToolTipZoomIn:Mr,rcToolTipZoomOut:_r},Nr=e=>{const{breakingLongWord:n,hideArrow:t=!1,overlayClassName:o,overlay:r,imgOverlay:i=!1,semanticText:f,...a}=e,p=Re(o,"slf-default",vo.styleguideConstants.SISENSE_NAMESPACE,{"hide-arrow":t,[Qt.breakLongWord]:n,[Qt.semanticText]:f,[Qt.semanticText]:f}),h=()=>typeof r=="string"?i?Xt.jsx("img",{src:r}):Xt.jsx("div",{dangerouslySetInnerHTML:{__html:r}}):r;return Xt.jsx(Tr,{destroyOnHidden:!0,overlay:h(),...a,overlayClassName:p})};exports.DEPRECATED_Tooltip=Nr;
@@ -1 +1 @@
1
- "use strict";const t=require("react/jsx-runtime"),S=require("classnames"),C=require("react"),M=require("./styleguideConstants-CtXkvIZK.cjs"),j=require("./Menu-DkPO8bCf.cjs"),O=require("./Popover-BjgDIgO7.cjs"),V=require("./Input-_wNCDCdI.cjs"),x=require("./DEPRECATED_Icon-DC1Hc9iB.cjs"),F="Dropdown-module__menu___u8qzp",$={menu:F},z="#2c3342",L="#f4f4f8",U="#dee1e7",G="#fff",J="DropdownButton-module__dropdownButton___oc3-H",K="DropdownButton-module__inlineVariant___WSkxA",Q="DropdownButton-module__open___bh-yG",X="DropdownButton-module__disabled___I9nuu",Y="DropdownButton-module__selectedIcon___hIp5j",Z="DropdownButton-module__chosenTitle___AgQJR",I="DropdownButton-module__clickIcon___U2low",p={loginDarkColor:z,darkBtnHoverColor:L,greyHoverColor:U,defaultBackgroundColor:G,dropdownButton:J,inlineVariant:K,open:Q,disabled:X,selectedIcon:Y,chosenTitle:Z,clickIcon:I},P=({selectedItem:s,width:o,dropDownButtonClasses:n,selectedShowIcon:e=!0,placeholder:a=""})=>{const{caption:l,iconName:r}=s||{},u=o?{width:o,minWidth:"inherit"}:{};return t.jsxs("div",{className:n,title:l,style:u,children:[e&&r&&t.jsx(x.DEPRECATED_Icon,{className:p.selectedIcon,name:r}),t.jsx("div",{className:p.chosenTitle,children:l||a}),t.jsx("div",{className:p.clickIcon,children:t.jsx(x.DEPRECATED_Icon,{name:"general-arrow-down"})})]})},nn=136,on="DropdownButtonSearch-module__searchInputWrapper___zKFuM",en={searchInputWrapper:on},y=()=>{},tn=C.forwardRef(({width:s=nn,onClick:o=y,inputProps:n={onChange:y},className:e=""},a)=>{const l=S(e||en.searchInputWrapper),r={width:s};return t.jsx("div",{ref:a,style:r,className:l,"data-testid":"search_input_container",children:t.jsx(V.Input,{onClicked:o,...n})})}),ln=(s,o,n,e)=>{const[a,l]=C.useState({...n,value:o==null?void 0:o.caption}),r=c=>{c.stopPropagation()},u=c=>{n==null||n.onChange(c),l({...n,value:c})},d=C.useCallback(()=>{var _;const c=(_=e==null?void 0:e.current)==null?void 0:_.getElementsByTagName("input")[0];c==null||c.select()},[e]);return C.useEffect(()=>{s?(l({...n,value:o==null?void 0:o.caption}),d()):n==null||n.onChange("")},[s,n,o==null?void 0:o.caption,d]),C.useEffect(()=>{s&&a.value!==(n==null?void 0:n.value)&&d()},[a.value,s,n==null?void 0:n.value,d]),{handlers:{handleOnSearchInputClick:r,handleOnSearchInputChange:u},inputProps:a}},sn=({items:s=[],selectedShowIcon:o=!0,placeholder:n="",disabled:e,selectedItemId:a,width:l,inlineVariant:r,classNameDropdown:u,classNameButton:d,classNameSearch:D,searchInputProps:c,isOpen:_=!1})=>{const w=s.find(m=>m.id===a),f=C.useRef(null),{inputProps:g,handlers:{handleOnSearchInputClick:h,handleOnSearchInputChange:v}}=ln(_,w,c,f),B=S(d,p.dropdownButton,{[p.disabled]:e,[p.open]:_,[p.inlineVariant]:r},u);return t.jsx(t.Fragment,{children:c&&_&&!e?t.jsx(tn,{ref:f,width:l,onClick:h,inputProps:{...g,onChange:v},className:D}):t.jsx(P,{selectedItem:w,width:l,placeholder:n,selectedShowIcon:o,dropDownButtonClasses:B})})},cn=(s,o,n)=>{const[e,a]=C.useState(o),l=()=>{n||a(!e)};return{handlers:{handleOnSelectItem:d=>{s(d),l()},handleDropdownClick:l},isOpen:e}},an=()=>{},rn=C.forwardRef(({bubblePopoverMouseEvents:s=!1,items:o=[],onSelectItem:n=an,popoverOverlayLevel:e=0,selectedShowIcon:a=!0,mask:l=!0,placeholder:r="",placement:u="bottomLeft",disabled:d=!1,selectedItemId:D,width:c,scrollbarProps:_,classNameMenu:w,inlineVariant:f,classNameDropdown:g,classNameButton:h,classNameSearch:v,classNameTooltip:B,zIndex:m,searchInputProps:N,open:b=!1,isLoading:T=!1},R)=>{const q=f?12:0,A=o.map(i=>({id:i.id,caption:i.caption||i.id,type:j.itemTypes.ITEM,iconName:i.iconName,iconClass:i.iconClass,selected:i.id===D,tooltip:i.tooltip,disabled:i.disabled})),{isOpen:k,handlers:{handleOnSelectItem:H,handleDropdownClick:E}}=cn(n,b,d),W=()=>{const i=S($.menu,M.styleguideConstants.SISENSE_NAMESPACE,w);return t.jsx(j.Menu,{items:A,onItemSelected:H,className:i,width:c,scrollbarProps:_,isLoading:T,classNameTooltip:B})};return t.jsx("div",{ref:R,"data-testid":"popover_container",children:t.jsx(O.Popover,{zIndex:m,bubbleMouseEvents:s,trigger:["click"],visible:k,placement:u,overlay:W,level:e,onVisibleChange:E,onRequestClose:E,align:{offset:[0,q]},mask:l,children:t.jsx("div",{children:t.jsx(sn,{isOpen:k,items:o,selectedShowIcon:a,placeholder:r,width:c,disabled:d,classNameButton:h,classNameDropdown:g,classNameSearch:v,inlineVariant:f,searchInputProps:N,selectedItemId:D})})})})});exports.Dropdown=rn;
1
+ "use strict";const t=require("react/jsx-runtime"),S=require("classnames"),C=require("react"),M=require("./styleguideConstants-CtXkvIZK.cjs"),j=require("./Menu-CgLII61r.cjs"),O=require("./Popover-DHy8NRMc.cjs"),V=require("./Input-_wNCDCdI.cjs"),x=require("./DEPRECATED_Icon-DC1Hc9iB.cjs"),F="Dropdown-module__menu___u8qzp",$={menu:F},z="#2c3342",L="#f4f4f8",U="#dee1e7",G="#fff",J="DropdownButton-module__dropdownButton___oc3-H",K="DropdownButton-module__inlineVariant___WSkxA",Q="DropdownButton-module__open___bh-yG",X="DropdownButton-module__disabled___I9nuu",Y="DropdownButton-module__selectedIcon___hIp5j",Z="DropdownButton-module__chosenTitle___AgQJR",I="DropdownButton-module__clickIcon___U2low",p={loginDarkColor:z,darkBtnHoverColor:L,greyHoverColor:U,defaultBackgroundColor:G,dropdownButton:J,inlineVariant:K,open:Q,disabled:X,selectedIcon:Y,chosenTitle:Z,clickIcon:I},P=({selectedItem:s,width:o,dropDownButtonClasses:n,selectedShowIcon:e=!0,placeholder:a=""})=>{const{caption:l,iconName:r}=s||{},u=o?{width:o,minWidth:"inherit"}:{};return t.jsxs("div",{className:n,title:l,style:u,children:[e&&r&&t.jsx(x.DEPRECATED_Icon,{className:p.selectedIcon,name:r}),t.jsx("div",{className:p.chosenTitle,children:l||a}),t.jsx("div",{className:p.clickIcon,children:t.jsx(x.DEPRECATED_Icon,{name:"general-arrow-down"})})]})},nn=136,on="DropdownButtonSearch-module__searchInputWrapper___zKFuM",en={searchInputWrapper:on},y=()=>{},tn=C.forwardRef(({width:s=nn,onClick:o=y,inputProps:n={onChange:y},className:e=""},a)=>{const l=S(e||en.searchInputWrapper),r={width:s};return t.jsx("div",{ref:a,style:r,className:l,"data-testid":"search_input_container",children:t.jsx(V.Input,{onClicked:o,...n})})}),ln=(s,o,n,e)=>{const[a,l]=C.useState({...n,value:o==null?void 0:o.caption}),r=c=>{c.stopPropagation()},u=c=>{n==null||n.onChange(c),l({...n,value:c})},d=C.useCallback(()=>{var _;const c=(_=e==null?void 0:e.current)==null?void 0:_.getElementsByTagName("input")[0];c==null||c.select()},[e]);return C.useEffect(()=>{s?(l({...n,value:o==null?void 0:o.caption}),d()):n==null||n.onChange("")},[s,n,o==null?void 0:o.caption,d]),C.useEffect(()=>{s&&a.value!==(n==null?void 0:n.value)&&d()},[a.value,s,n==null?void 0:n.value,d]),{handlers:{handleOnSearchInputClick:r,handleOnSearchInputChange:u},inputProps:a}},sn=({items:s=[],selectedShowIcon:o=!0,placeholder:n="",disabled:e,selectedItemId:a,width:l,inlineVariant:r,classNameDropdown:u,classNameButton:d,classNameSearch:D,searchInputProps:c,isOpen:_=!1})=>{const w=s.find(m=>m.id===a),f=C.useRef(null),{inputProps:g,handlers:{handleOnSearchInputClick:h,handleOnSearchInputChange:v}}=ln(_,w,c,f),B=S(d,p.dropdownButton,{[p.disabled]:e,[p.open]:_,[p.inlineVariant]:r},u);return t.jsx(t.Fragment,{children:c&&_&&!e?t.jsx(tn,{ref:f,width:l,onClick:h,inputProps:{...g,onChange:v},className:D}):t.jsx(P,{selectedItem:w,width:l,placeholder:n,selectedShowIcon:o,dropDownButtonClasses:B})})},cn=(s,o,n)=>{const[e,a]=C.useState(o),l=()=>{n||a(!e)};return{handlers:{handleOnSelectItem:d=>{s(d),l()},handleDropdownClick:l},isOpen:e}},an=()=>{},rn=C.forwardRef(({bubblePopoverMouseEvents:s=!1,items:o=[],onSelectItem:n=an,popoverOverlayLevel:e=0,selectedShowIcon:a=!0,mask:l=!0,placeholder:r="",placement:u="bottomLeft",disabled:d=!1,selectedItemId:D,width:c,scrollbarProps:_,classNameMenu:w,inlineVariant:f,classNameDropdown:g,classNameButton:h,classNameSearch:v,classNameTooltip:B,zIndex:m,searchInputProps:N,open:b=!1,isLoading:T=!1},R)=>{const q=f?12:0,A=o.map(i=>({id:i.id,caption:i.caption||i.id,type:j.itemTypes.ITEM,iconName:i.iconName,iconClass:i.iconClass,selected:i.id===D,tooltip:i.tooltip,disabled:i.disabled})),{isOpen:k,handlers:{handleOnSelectItem:H,handleDropdownClick:E}}=cn(n,b,d),W=()=>{const i=S($.menu,M.styleguideConstants.SISENSE_NAMESPACE,w);return t.jsx(j.Menu,{items:A,onItemSelected:H,className:i,width:c,scrollbarProps:_,isLoading:T,classNameTooltip:B})};return t.jsx("div",{ref:R,"data-testid":"popover_container",children:t.jsx(O.Popover,{zIndex:m,bubbleMouseEvents:s,trigger:["click"],visible:k,placement:u,overlay:W,level:e,onVisibleChange:E,onRequestClose:E,align:{offset:[0,q]},mask:l,children:t.jsx("div",{children:t.jsx(sn,{isOpen:k,items:o,selectedShowIcon:a,placeholder:r,width:c,disabled:d,classNameButton:h,classNameDropdown:g,classNameSearch:v,inlineVariant:f,searchInputProps:N,selectedItemId:D})})})})});exports.Dropdown=rn;
@@ -2,8 +2,8 @@ import { jsxs as x, jsx as c, Fragment as j } from "react/jsx-runtime";
2
2
  import v from "classnames";
3
3
  import { forwardRef as E, useState as T, useCallback as F, useEffect as y, useRef as $ } from "react";
4
4
  import { s as q } from "./styleguideConstants-D4Yls16w.js";
5
- import { i as z, a as L } from "./Menu-EXiwd8T_.js";
6
- import { P as U } from "./Popover-CiYeL2VE.js";
5
+ import { i as z, a as L } from "./Menu-DqvdoiKn.js";
6
+ import { P as U } from "./Popover-KR_Rc69g.js";
7
7
  import { I as G } from "./Input-CNvYE0Er.js";
8
8
  import { D as N } from "./DEPRECATED_Icon-Bgufd-9Q.js";
9
9
  const J = "Dropdown-module__menu___u8qzp", K = {
@@ -1 +1 @@
1
- "use strict";const l=require("react/jsx-runtime"),s=require("./emotion-cache-provider-C66nBUtN.cjs"),i=require("classnames"),d=require("react"),x=require("./lib/themes/themes.cjs"),h=require("./SvgIcon-DXzFs5aw.cjs"),m=s.createTheme$1({components:{MuiIcon:{styleOverrides:{root:{color:`${x.siColors.StPrimaryColors.primary}`,top:0}}},MuiSvgIcon:{}}}),j=e=>{const{name:r,sx:a}=e,o=i("app-icon__svg");return l.jsxs(h.SvgIcon,{classes:{root:o},sx:a,inheritViewBox:!0,children:[l.jsx("use",{xlinkHref:`#${r}`}),l.jsx("symbol",{id:"general-arrow-big-down",viewBox:"0 0 24 24",children:l.jsx("path",{fill:"currentColor",d:"M7.589 10L7 10.777 11.99 15 17 10.777 16.413 10l-4.422 3.727z"})}),l.jsx("symbol",{id:"general-arrow-left",viewBox:"0 0 24 24",children:l.jsx("path",{fill:"currentColor",d:"M13.878 9.325a.5.5 0 1 0-.76-.65l-2.998 3.5a.5.5 0 0 0 0 .65l2.999 3.5a.5.5 0 1 0 .76-.65l-2.72-3.175 2.72-3.175z"})}),l.jsx("symbol",{id:"general-arrow-long-right",viewBox:"0 0 29 8",children:l.jsx("path",{d:"M28.354 4.354a.5.5 0 0 0 0-.708L25.172.464a.5.5 0 1 0-.707.708L27.293 4l-2.828 2.828a.5.5 0 1 0 .707.708l3.182-3.182zM0 4.5h28v-1H0v1z",fill:"#3A4356"})}),l.jsx("symbol",{id:"general-arrow-right",viewBox:"0 0 24 24",children:l.jsx("path",{fill:"currentColor",d:"M13.34 12.5l-2.72-3.175a.5.5 0 1 1 .76-.65l2.998 3.5a.5.5 0 0 1 0 .65l-2.998 3.5a.5.5 0 1 1-.76-.65l2.72-3.175z"})}),l.jsx("symbol",{id:"general-arrow-up",viewBox:"0 0 24 24",children:l.jsx("path",{fill:"currentColor",d:"M12 10.16l-3.174 2.719a.5.5 0 0 1-.65-.76l3.5-2.998a.5.5 0 0 1 .65 0l3.5 2.998a.5.5 0 1 1-.65.76L12 10.159z"})}),l.jsx("symbol",{id:"general-arrow-up-down",viewBox:"0 0 24 24",children:l.jsx("path",{fill:"currentColor",d:"M15.646 14.646a.5.5 0 0 1 .708.708l-4 4a.5.5 0 0 1-.708 0l-4-4a.5.5 0 0 1 .708-.708L12 18.293l3.646-3.647zm0-5.292L12 5.707 8.354 9.354a.5.5 0 1 1-.708-.708l4-4a.5.5 0 0 1 .708 0l4 4a.5.5 0 0 1-.708.708z"})}),l.jsx("symbol",{id:"general-double-arrow-back",viewBox:"0 0 24 24",children:l.jsx("path",{fill:"currentColor",d:"M9.658 12.5l2.72 3.175a.5.5 0 1 1-.76.65l-2.998-3.5a.5.5 0 0 1 0-.65l2.999-3.5a.5.5 0 1 1 .76.65L9.658 12.5zm5.719-3.175l-2.72 3.175 2.72 3.175a.5.5 0 1 1-.76.65l-2.998-3.5a.5.5 0 0 1 0-.65l2.998-3.5a.5.5 0 1 1 .76.65z"})}),l.jsx("symbol",{id:"general-double-arrow-front",viewBox:"0 0 24 24",children:l.jsx("path",{fill:"currentColor",d:"M11.34 12.5L8.62 9.325a.5.5 0 0 1 .76-.65l2.998 3.5a.5.5 0 0 1 0 .65l-2.998 3.5a.5.5 0 1 1-.76-.65l2.72-3.175zm.279-3.175a.5.5 0 0 1 .76-.65l2.998 3.5a.5.5 0 0 1 0 .65l-2.999 3.5a.5.5 0 1 1-.76-.65l2.72-3.175-2.72-3.175z"})}),l.jsx("symbol",{id:"general-double-big-arrow-back",viewBox:"0 0 31 31",children:l.jsxs("g",{fill:"currentColor",children:[l.jsx("path",{d:"M16 11.825l-3.842 4.297 3.662 4.087a.5.5 0 1 1-.76.65l-3.94-4.412a.5.5 0 0 1 0-.65l4.12-4.622a.5.5 0 1 1 .76.65zm5 0l-3.842 4.297 3.662 4.087a.5.5 0 1 1-.76.65l-3.94-4.412a.5.5 0 0 1 0-.65l4.12-4.622a.5.5 0 1 1 .76.65z"}),l.jsx("path",{d:"M10 11.5a.5.5 0 0 1 1 0v9a.5.5 0 0 1-1 0v-9z"})]})}),l.jsx("symbol",{id:"general-double-big-arrow-front",viewBox:"0 0 31 31",children:l.jsxs("g",{fill:"currentColor",children:[l.jsx("path",{d:"M15 20.175l3.842-4.297-3.662-4.087a.5.5 0 1 1 .76-.65l3.94 4.412a.5.5 0 0 1 0 .65l-4.12 4.622a.5.5 0 1 1-.76-.65zm-5 0l3.842-4.297-3.662-4.087a.5.5 0 1 1 .76-.65l3.94 4.412a.5.5 0 0 1 0 .65l-4.12 4.622a.5.5 0 1 1-.76-.65z"}),l.jsx("path",{d:"M21 20.5a.5.5 0 0 1-1 0v-9a.5.5 0 0 1 1 0v9z"})]})}),l.jsx("symbol",{id:"general-x",viewBox:"0 0 24 24",children:l.jsx("path",{fill:"currentColor",d:"M12 12.293L6.854 7.146a.5.5 0 1 0-.708.708L11.293 13l-5.147 5.146a.5.5 0 0 0 .708.708L12 13.707l5.146 5.147a.5.5 0 0 0 .708-.708L12.707 13l5.147-5.146a.5.5 0 0 0-.708-.708L12 12.293z"})}),l.jsx("symbol",{id:"header-doc",viewBox:"0 0 24 24",children:l.jsx("path",{fill:"currentColor",d:"M14 5.562V10h3.698L14 5.562zM18 11h-5V5H7a1 1 0 0 0-1 1v13a1 1 0 0 0 1 1h10a1 1 0 0 0 1-1v-8zm1-1v9a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h7l5 6zm-7 5.84l3.174-2.719a.5.5 0 0 1 .65.76l-3.5 2.998a.5.5 0 0 1-.65 0l-3.5-2.998a.5.5 0 1 1 .65-.76L12 15.841z"})}),l.jsx("symbol",{id:"general-arrow-down",viewBox:"0 0 24 24",children:l.jsx("path",{fill:"currentColor",d:"M12 13.84l3.174-2.719a.5.5 0 0 1 .65.76l-3.5 2.998a.5.5 0 0 1-.65 0l-3.5-2.998a.5.5 0 1 1 .65-.76L12 13.841z"})}),l.jsx("symbol",{id:"general-plus",viewBox:"0 0 24 24",children:l.jsx("path",{fill:"currentColor",d:"M12 12V7.5a.5.5 0 1 0-1 0V12H6.5a.5.5 0 1 0 0 1H11v4.5a.5.5 0 1 0 1 0V13h4.5a.5.5 0 1 0 0-1H12z"})})]})},u=d.forwardRef((e,r)=>{const{dataTestId:a,name:o,className:n}=e,t=l.jsx(j,{...e}),c=i("app-icon",`app-icon--${o}`,n);return l.jsx(s.EmotionCacheProvider,{children:l.jsx(s.ThemeProvider,{theme:m,children:l.jsx("span",{"data-testid":a,...e,ref:r,className:c,children:t})})})});exports.Icon=u;
1
+ "use strict";const l=require("react/jsx-runtime"),s=require("./emotion-cache-provider-XZE1SDsY.cjs"),i=require("classnames"),d=require("react"),x=require("./lib/themes/themes.cjs"),h=require("./SvgIcon-CjUZ_jwt.cjs"),m=s.createTheme$1({components:{MuiIcon:{styleOverrides:{root:{color:`${x.siColors.StPrimaryColors.primary}`,top:0}}},MuiSvgIcon:{}}}),j=e=>{const{name:r,sx:a}=e,o=i("app-icon__svg");return l.jsxs(h.SvgIcon,{classes:{root:o},sx:a,inheritViewBox:!0,children:[l.jsx("use",{xlinkHref:`#${r}`}),l.jsx("symbol",{id:"general-arrow-big-down",viewBox:"0 0 24 24",children:l.jsx("path",{fill:"currentColor",d:"M7.589 10L7 10.777 11.99 15 17 10.777 16.413 10l-4.422 3.727z"})}),l.jsx("symbol",{id:"general-arrow-left",viewBox:"0 0 24 24",children:l.jsx("path",{fill:"currentColor",d:"M13.878 9.325a.5.5 0 1 0-.76-.65l-2.998 3.5a.5.5 0 0 0 0 .65l2.999 3.5a.5.5 0 1 0 .76-.65l-2.72-3.175 2.72-3.175z"})}),l.jsx("symbol",{id:"general-arrow-long-right",viewBox:"0 0 29 8",children:l.jsx("path",{d:"M28.354 4.354a.5.5 0 0 0 0-.708L25.172.464a.5.5 0 1 0-.707.708L27.293 4l-2.828 2.828a.5.5 0 1 0 .707.708l3.182-3.182zM0 4.5h28v-1H0v1z",fill:"#3A4356"})}),l.jsx("symbol",{id:"general-arrow-right",viewBox:"0 0 24 24",children:l.jsx("path",{fill:"currentColor",d:"M13.34 12.5l-2.72-3.175a.5.5 0 1 1 .76-.65l2.998 3.5a.5.5 0 0 1 0 .65l-2.998 3.5a.5.5 0 1 1-.76-.65l2.72-3.175z"})}),l.jsx("symbol",{id:"general-arrow-up",viewBox:"0 0 24 24",children:l.jsx("path",{fill:"currentColor",d:"M12 10.16l-3.174 2.719a.5.5 0 0 1-.65-.76l3.5-2.998a.5.5 0 0 1 .65 0l3.5 2.998a.5.5 0 1 1-.65.76L12 10.159z"})}),l.jsx("symbol",{id:"general-arrow-up-down",viewBox:"0 0 24 24",children:l.jsx("path",{fill:"currentColor",d:"M15.646 14.646a.5.5 0 0 1 .708.708l-4 4a.5.5 0 0 1-.708 0l-4-4a.5.5 0 0 1 .708-.708L12 18.293l3.646-3.647zm0-5.292L12 5.707 8.354 9.354a.5.5 0 1 1-.708-.708l4-4a.5.5 0 0 1 .708 0l4 4a.5.5 0 0 1-.708.708z"})}),l.jsx("symbol",{id:"general-double-arrow-back",viewBox:"0 0 24 24",children:l.jsx("path",{fill:"currentColor",d:"M9.658 12.5l2.72 3.175a.5.5 0 1 1-.76.65l-2.998-3.5a.5.5 0 0 1 0-.65l2.999-3.5a.5.5 0 1 1 .76.65L9.658 12.5zm5.719-3.175l-2.72 3.175 2.72 3.175a.5.5 0 1 1-.76.65l-2.998-3.5a.5.5 0 0 1 0-.65l2.998-3.5a.5.5 0 1 1 .76.65z"})}),l.jsx("symbol",{id:"general-double-arrow-front",viewBox:"0 0 24 24",children:l.jsx("path",{fill:"currentColor",d:"M11.34 12.5L8.62 9.325a.5.5 0 0 1 .76-.65l2.998 3.5a.5.5 0 0 1 0 .65l-2.998 3.5a.5.5 0 1 1-.76-.65l2.72-3.175zm.279-3.175a.5.5 0 0 1 .76-.65l2.998 3.5a.5.5 0 0 1 0 .65l-2.999 3.5a.5.5 0 1 1-.76-.65l2.72-3.175-2.72-3.175z"})}),l.jsx("symbol",{id:"general-double-big-arrow-back",viewBox:"0 0 31 31",children:l.jsxs("g",{fill:"currentColor",children:[l.jsx("path",{d:"M16 11.825l-3.842 4.297 3.662 4.087a.5.5 0 1 1-.76.65l-3.94-4.412a.5.5 0 0 1 0-.65l4.12-4.622a.5.5 0 1 1 .76.65zm5 0l-3.842 4.297 3.662 4.087a.5.5 0 1 1-.76.65l-3.94-4.412a.5.5 0 0 1 0-.65l4.12-4.622a.5.5 0 1 1 .76.65z"}),l.jsx("path",{d:"M10 11.5a.5.5 0 0 1 1 0v9a.5.5 0 0 1-1 0v-9z"})]})}),l.jsx("symbol",{id:"general-double-big-arrow-front",viewBox:"0 0 31 31",children:l.jsxs("g",{fill:"currentColor",children:[l.jsx("path",{d:"M15 20.175l3.842-4.297-3.662-4.087a.5.5 0 1 1 .76-.65l3.94 4.412a.5.5 0 0 1 0 .65l-4.12 4.622a.5.5 0 1 1-.76-.65zm-5 0l3.842-4.297-3.662-4.087a.5.5 0 1 1 .76-.65l3.94 4.412a.5.5 0 0 1 0 .65l-4.12 4.622a.5.5 0 1 1-.76-.65z"}),l.jsx("path",{d:"M21 20.5a.5.5 0 0 1-1 0v-9a.5.5 0 0 1 1 0v9z"})]})}),l.jsx("symbol",{id:"general-x",viewBox:"0 0 24 24",children:l.jsx("path",{fill:"currentColor",d:"M12 12.293L6.854 7.146a.5.5 0 1 0-.708.708L11.293 13l-5.147 5.146a.5.5 0 0 0 .708.708L12 13.707l5.146 5.147a.5.5 0 0 0 .708-.708L12.707 13l5.147-5.146a.5.5 0 0 0-.708-.708L12 12.293z"})}),l.jsx("symbol",{id:"header-doc",viewBox:"0 0 24 24",children:l.jsx("path",{fill:"currentColor",d:"M14 5.562V10h3.698L14 5.562zM18 11h-5V5H7a1 1 0 0 0-1 1v13a1 1 0 0 0 1 1h10a1 1 0 0 0 1-1v-8zm1-1v9a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h7l5 6zm-7 5.84l3.174-2.719a.5.5 0 0 1 .65.76l-3.5 2.998a.5.5 0 0 1-.65 0l-3.5-2.998a.5.5 0 1 1 .65-.76L12 15.841z"})}),l.jsx("symbol",{id:"general-arrow-down",viewBox:"0 0 24 24",children:l.jsx("path",{fill:"currentColor",d:"M12 13.84l3.174-2.719a.5.5 0 0 1 .65.76l-3.5 2.998a.5.5 0 0 1-.65 0l-3.5-2.998a.5.5 0 1 1 .65-.76L12 13.841z"})}),l.jsx("symbol",{id:"general-plus",viewBox:"0 0 24 24",children:l.jsx("path",{fill:"currentColor",d:"M12 12V7.5a.5.5 0 1 0-1 0V12H6.5a.5.5 0 1 0 0 1H11v4.5a.5.5 0 1 0 1 0V13h4.5a.5.5 0 1 0 0-1H12z"})})]})},u=d.forwardRef((e,r)=>{const{dataTestId:a,name:o,className:n}=e,t=l.jsx(j,{...e}),c=i("app-icon",`app-icon--${o}`,n);return l.jsx(s.EmotionCacheProvider,{children:l.jsx(s.ThemeProvider,{theme:m,children:l.jsx("span",{"data-testid":a,...e,ref:r,className:c,children:t})})})});exports.Icon=u;
@@ -1,9 +1,9 @@
1
1
  import { jsx as l, jsxs as i } from "react/jsx-runtime";
2
- import { a as s, E as h, T as m } from "./emotion-cache-provider-CsTOkc-k.js";
2
+ import { i as s, E as h, T as m } from "./emotion-cache-provider-B6yKtm_a.js";
3
3
  import n from "classnames";
4
4
  import { forwardRef as p } from "react";
5
5
  import { siColors as v } from "./lib/themes/themes.js";
6
- import { S as w } from "./SvgIcon-5KhsYNcu.js";
6
+ import { S as w } from "./SvgIcon-a_07YA77.js";
7
7
  const u = s({
8
8
  components: {
9
9
  MuiIcon: {
@@ -1 +1 @@
1
- "use strict";const v=require("react/jsx-runtime"),E=require("classnames"),ce=require("react"),we=require("./index-B-zZeebW.cjs"),Ge=require("./LazyLoader-gOLNhxc-.cjs"),Se=require("./Popover-BjgDIgO7.cjs"),J=require("./styleguideConstants-CtXkvIZK.cjs"),Ye=require("./DEPRECATED_Checkbox-BggU0HO5.cjs"),oe=require("./DEPRECATED_Icon-DC1Hc9iB.cjs"),Ze=require("./DEPRECATED_Toggle-Dp0ZZ_6E.cjs"),Qe=require("./DEPRECATED_Tooltip-D3ReAkFF.cjs"),Je=require("./RadioButton-Ds-0wj0r.cjs");var Le={},ze={},de={exports:{}},K={exports:{}};(function(){var n,o,e,i,u,d;typeof performance<"u"&&performance!==null&&performance.now?K.exports=function(){return performance.now()}:typeof process<"u"&&process!==null&&process.hrtime?(K.exports=function(){return(n()-u)/1e6},o=process.hrtime,n=function(){var c;return c=o(),c[0]*1e9+c[1]},i=n(),d=process.uptime()*1e9,u=i-d):Date.now?(K.exports=function(){return Date.now()-e},e=Date.now()):(K.exports=function(){return new Date().getTime()-e},e=new Date().getTime())}).call(we.commonjsGlobal);var Ke=K.exports,et=Ke,V=typeof window>"u"?we.commonjsGlobal:window,ie=["moz","webkit"],$="AnimationFrame",G=V["request"+$],te=V["cancel"+$]||V["cancelRequest"+$];for(var Q=0;!G&&Q<ie.length;Q++)G=V[ie[Q]+"Request"+$],te=V[ie[Q]+"Cancel"+$]||V[ie[Q]+"CancelRequest"+$];if(!G||!te){var ye=0,De=0,q=[],tt=1e3/60;G=function(n){if(q.length===0){var o=et(),e=Math.max(0,tt-(o-ye));ye=e+o,setTimeout(function(){var i=q.slice(0);q.length=0;for(var u=0;u<i.length;u++)if(!i[u].cancelled)try{i[u].callback(ye)}catch(d){setTimeout(function(){throw d},0)}},Math.round(e))}return q.push({handle:++De,callback:n,cancelled:!1}),De},te=function(n){for(var o=0;o<q.length;o++)q[o].handle===n&&(q[o].cancelled=!0)}}de.exports=function(n){return G.call(V,n)};de.exports.cancel=function(){te.apply(V,arguments)};de.exports.polyfill=function(n){n||(n=V),n.requestAnimationFrame=G,n.cancelAnimationFrame=te};var rt=de.exports,he={exports:{}},ke=null,Ee=["Webkit","Moz","O","ms"],nt=function(o){ke||(ke=document.createElement("div"));var e=ke.style;if(o in e)return o;for(var i=o.charAt(0).toUpperCase()+o.slice(1),u=Ee.length;u>=0;u--){var d=Ee[u]+i;if(d in e)return d}return!1},ot=st,it=/\s/,at=/(_|-|\.|:)/,lt=/([a-z][A-Z]|[A-Z][a-z])/;function st(n){return it.test(n)?n.toLowerCase():at.test(n)?(ct(n)||n).toLowerCase():lt.test(n)?ht(n).toLowerCase():n.toLowerCase()}var ut=/[\W_]+(.|$)/g;function ct(n){return n.replace(ut,function(o,e){return e?" "+e:""})}var dt=/(.)([A-Z]+)/g;function ht(n){return n.replace(dt,function(o,e,i){return e+" "+i.toLowerCase().split("").join(" ")})}var ft=ot,vt=mt;function mt(n){return ft(n).replace(/[\W_]+(.|$)/g,function(o,e){return e?" "+e:""}).trim()}var pt=vt,gt=bt;function bt(n){return pt(n).replace(/\s(\w)/g,function(o,e){return e.toUpperCase()})}var Tt={animationIterationCount:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridColumn:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,stopOpacity:!0,strokeDashoffset:!0,strokeOpacity:!0,strokeWidth:!0},_t=function(n,o){return typeof o=="number"&&!Tt[n]?o+"px":o},St=nt,yt=gt,ae={float:"cssFloat"},kt=_t;function le(n,o,e){var i=ae[o];if(typeof i>"u"&&(i=wt(o)),i){if(e===void 0)return n.style[i];n.style[i]=kt(i,e)}}function Ht(n,o){for(var e in o)o.hasOwnProperty(e)&&le(n,e,o[e])}function wt(n){var o=yt(n),e=St(o);return ae[o]=ae[n]=ae[e]=e,e}function Ie(){arguments.length===2?typeof arguments[1]=="string"?arguments[0].style.cssText=arguments[1]:Ht(arguments[0],arguments[1]):le(arguments[0],arguments[1],arguments[2])}he.exports=Ie;he.exports.set=Ie;he.exports.get=function(n,o){return Array.isArray(o)?o.reduce(function(e,i){return e[i]=le(n,i||""),e},{}):le(n,o||"")};var Ve=he.exports,Oe={};(function(n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=o;function o(e){return typeof e=="string"}})(Oe);var We={};(function(n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=d;var o=Ve,e=i(o);function i(c){return c&&c.__esModule?c:{default:c}}var u=!1;function d(){if(u!==!1)return u;if(typeof document<"u"){var c=document.createElement("div");(0,e.default)(c,{width:100,height:100,position:"absolute",top:-9999,overflow:"scroll",MsOverflowStyle:"scrollbar"}),document.body.appendChild(c),u=c.offsetWidth-c.clientWidth,document.body.removeChild(c)}else u=0;return u||0}})(We);var Re={};(function(n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=o;function o(){return!1}})(Re);var Ne={};(function(n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=o;function o(e){var i=e.clientWidth,u=getComputedStyle(e),d=u.paddingLeft,c=u.paddingRight;return i-parseFloat(d)-parseFloat(c)}})(Ne);var Pe={};(function(n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=o;function o(e){var i=e.clientHeight,u=getComputedStyle(e),d=u.paddingTop,c=u.paddingBottom;return i-parseFloat(d)-parseFloat(c)}})(Pe);var H={};Object.defineProperty(H,"__esModule",{value:!0});H.containerStyleDefault={position:"relative",overflow:"hidden",width:"100%",height:"100%"};H.containerStyleAutoHeight={height:"auto"};H.viewStyleDefault={position:"absolute",top:0,left:0,right:0,bottom:0,overflow:"scroll",WebkitOverflowScrolling:"touch"};H.viewStyleAutoHeight={position:"relative",top:void 0,left:void 0,right:void 0,bottom:void 0};H.viewStyleUniversalInitial={overflow:"hidden",marginRight:0,marginBottom:0};H.trackHorizontalStyleDefault={position:"absolute",height:6};H.trackVerticalStyleDefault={position:"absolute",width:6};H.thumbHorizontalStyleDefault={position:"relative",display:"block",height:"100%"};H.thumbVerticalStyleDefault={position:"relative",display:"block",width:"100%"};H.disableSelectStyle={userSelect:"none"};H.disableSelectStyleReset={userSelect:""};var U={};Object.defineProperty(U,"__esModule",{value:!0});var F=Object.assign||function(n){for(var o=1;o<arguments.length;o++){var e=arguments[o];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(n[i]=e[i])}return n};U.renderViewDefault=Dt;U.renderTrackHorizontalDefault=Et;U.renderTrackVerticalDefault=xt;U.renderThumbHorizontalDefault=Lt;U.renderThumbVerticalDefault=zt;var Mt=ce,re=Ct(Mt);function Ct(n){return n&&n.__esModule?n:{default:n}}function fe(n,o){var e={};for(var i in n)o.indexOf(i)>=0||Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i]);return e}function Dt(n){return re.default.createElement("div",n)}function Et(n){var o=n.style,e=fe(n,["style"]),i=F({},o,{right:2,bottom:2,left:2,borderRadius:3});return re.default.createElement("div",F({style:i},e))}function xt(n){var o=n.style,e=fe(n,["style"]),i=F({},o,{right:2,bottom:2,top:2,borderRadius:3});return re.default.createElement("div",F({style:i},e))}function Lt(n){var o=n.style,e=fe(n,["style"]),i=F({},o,{cursor:"pointer",borderRadius:"inherit",backgroundColor:"rgba(0,0,0,.2)"});return re.default.createElement("div",F({style:i},e))}function zt(n){var o=n.style,e=fe(n,["style"]),i=F({},o,{cursor:"pointer",borderRadius:"inherit",backgroundColor:"rgba(0,0,0,.2)"});return re.default.createElement("div",F({style:i},e))}(function(n){Object.defineProperty(n,"__esModule",{value:!0});var o=Object.assign||function(g){for(var m=1;m<arguments.length;m++){var l=arguments[m];for(var r in l)Object.prototype.hasOwnProperty.call(l,r)&&(g[r]=l[r])}return g},e=function(){function g(m,l){for(var r=0;r<l.length;r++){var a=l[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(m,a.key,a)}}return function(m,l,r){return l&&g(m.prototype,l),r&&g(m,r),m}}(),i=rt,u=R(i),d=Ve,c=R(d),y=ce,x=we.propTypesExports,f=R(x),O=Oe,I=R(O),k=We,b=R(k),w=Re,W=R(w),Ae=Ne,ve=R(Ae),je=Pe,me=R(je),M=H,Y=U;function R(g){return g&&g.__esModule?g:{default:g}}function Be(g,m){var l={};for(var r in g)m.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(g,r)&&(l[r]=g[r]);return l}function Fe(g,m){if(!(g instanceof m))throw new TypeError("Cannot call a class as a function")}function qe(g,m){if(!g)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:g}function Ue(g,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);g.prototype=Object.create(m&&m.prototype,{constructor:{value:g,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(g,m):g.__proto__=m)}var pe=function(g){Ue(m,g);function m(l){var r;Fe(this,m);for(var a=arguments.length,s=Array(a>1?a-1:0),h=1;h<a;h++)s[h-1]=arguments[h];var t=qe(this,(r=m.__proto__||Object.getPrototypeOf(m)).call.apply(r,[this,l].concat(s)));return t.getScrollLeft=t.getScrollLeft.bind(t),t.getScrollTop=t.getScrollTop.bind(t),t.getScrollWidth=t.getScrollWidth.bind(t),t.getScrollHeight=t.getScrollHeight.bind(t),t.getClientWidth=t.getClientWidth.bind(t),t.getClientHeight=t.getClientHeight.bind(t),t.getValues=t.getValues.bind(t),t.getThumbHorizontalWidth=t.getThumbHorizontalWidth.bind(t),t.getThumbVerticalHeight=t.getThumbVerticalHeight.bind(t),t.getScrollLeftForOffset=t.getScrollLeftForOffset.bind(t),t.getScrollTopForOffset=t.getScrollTopForOffset.bind(t),t.scrollLeft=t.scrollLeft.bind(t),t.scrollTop=t.scrollTop.bind(t),t.scrollToLeft=t.scrollToLeft.bind(t),t.scrollToTop=t.scrollToTop.bind(t),t.scrollToRight=t.scrollToRight.bind(t),t.scrollToBottom=t.scrollToBottom.bind(t),t.handleTrackMouseEnter=t.handleTrackMouseEnter.bind(t),t.handleTrackMouseLeave=t.handleTrackMouseLeave.bind(t),t.handleHorizontalTrackMouseDown=t.handleHorizontalTrackMouseDown.bind(t),t.handleVerticalTrackMouseDown=t.handleVerticalTrackMouseDown.bind(t),t.handleHorizontalThumbMouseDown=t.handleHorizontalThumbMouseDown.bind(t),t.handleVerticalThumbMouseDown=t.handleVerticalThumbMouseDown.bind(t),t.handleWindowResize=t.handleWindowResize.bind(t),t.handleScroll=t.handleScroll.bind(t),t.handleDrag=t.handleDrag.bind(t),t.handleDragEnd=t.handleDragEnd.bind(t),t.state={didMountUniversal:!1},t}return e(m,[{key:"componentDidMount",value:function(){this.addListeners(),this.update(),this.componentDidMountUniversal()}},{key:"componentDidMountUniversal",value:function(){var r=this.props.universal;r&&this.setState({didMountUniversal:!0})}},{key:"componentDidUpdate",value:function(){this.update()}},{key:"componentWillUnmount",value:function(){this.removeListeners(),(0,i.cancel)(this.requestFrame),clearTimeout(this.hideTracksTimeout),clearInterval(this.detectScrollingInterval)}},{key:"getScrollLeft",value:function(){return this.view?this.view.scrollLeft:0}},{key:"getScrollTop",value:function(){return this.view?this.view.scrollTop:0}},{key:"getScrollWidth",value:function(){return this.view?this.view.scrollWidth:0}},{key:"getScrollHeight",value:function(){return this.view?this.view.scrollHeight:0}},{key:"getClientWidth",value:function(){return this.view?this.view.clientWidth:0}},{key:"getClientHeight",value:function(){return this.view?this.view.clientHeight:0}},{key:"getValues",value:function(){var r=this.view||{},a=r.scrollLeft,s=a===void 0?0:a,h=r.scrollTop,t=h===void 0?0:h,p=r.scrollWidth,T=p===void 0?0:p,S=r.scrollHeight,N=S===void 0?0:S,L=r.clientWidth,P=L===void 0?0:L,C=r.clientHeight,z=C===void 0?0:C;return{left:s/(T-P)||0,top:t/(N-z)||0,scrollLeft:s,scrollTop:t,scrollWidth:T,scrollHeight:N,clientWidth:P,clientHeight:z}}},{key:"getThumbHorizontalWidth",value:function(){var r=this.props,a=r.thumbSize,s=r.thumbMinSize,h=this.view,t=h.scrollWidth,p=h.clientWidth,T=(0,ve.default)(this.trackHorizontal),S=Math.ceil(p/t*T);return T===S?0:a||Math.max(S,s)}},{key:"getThumbVerticalHeight",value:function(){var r=this.props,a=r.thumbSize,s=r.thumbMinSize,h=this.view,t=h.scrollHeight,p=h.clientHeight,T=(0,me.default)(this.trackVertical),S=Math.ceil(p/t*T);return T===S?0:a||Math.max(S,s)}},{key:"getScrollLeftForOffset",value:function(r){var a=this.view,s=a.scrollWidth,h=a.clientWidth,t=(0,ve.default)(this.trackHorizontal),p=this.getThumbHorizontalWidth();return r/(t-p)*(s-h)}},{key:"getScrollTopForOffset",value:function(r){var a=this.view,s=a.scrollHeight,h=a.clientHeight,t=(0,me.default)(this.trackVertical),p=this.getThumbVerticalHeight();return r/(t-p)*(s-h)}},{key:"scrollLeft",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;this.view&&(this.view.scrollLeft=r)}},{key:"scrollTop",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;this.view&&(this.view.scrollTop=r)}},{key:"scrollToLeft",value:function(){this.view&&(this.view.scrollLeft=0)}},{key:"scrollToTop",value:function(){this.view&&(this.view.scrollTop=0)}},{key:"scrollToRight",value:function(){this.view&&(this.view.scrollLeft=this.view.scrollWidth)}},{key:"scrollToBottom",value:function(){this.view&&(this.view.scrollTop=this.view.scrollHeight)}},{key:"addListeners",value:function(){if(!(typeof document>"u"||!this.view)){var r=this.view,a=this.trackHorizontal,s=this.trackVertical,h=this.thumbHorizontal,t=this.thumbVertical;r.addEventListener("scroll",this.handleScroll),(0,b.default)()&&(a.addEventListener("mouseenter",this.handleTrackMouseEnter),a.addEventListener("mouseleave",this.handleTrackMouseLeave),a.addEventListener("mousedown",this.handleHorizontalTrackMouseDown),s.addEventListener("mouseenter",this.handleTrackMouseEnter),s.addEventListener("mouseleave",this.handleTrackMouseLeave),s.addEventListener("mousedown",this.handleVerticalTrackMouseDown),h.addEventListener("mousedown",this.handleHorizontalThumbMouseDown),t.addEventListener("mousedown",this.handleVerticalThumbMouseDown),window.addEventListener("resize",this.handleWindowResize))}}},{key:"removeListeners",value:function(){if(!(typeof document>"u"||!this.view)){var r=this.view,a=this.trackHorizontal,s=this.trackVertical,h=this.thumbHorizontal,t=this.thumbVertical;r.removeEventListener("scroll",this.handleScroll),(0,b.default)()&&(a.removeEventListener("mouseenter",this.handleTrackMouseEnter),a.removeEventListener("mouseleave",this.handleTrackMouseLeave),a.removeEventListener("mousedown",this.handleHorizontalTrackMouseDown),s.removeEventListener("mouseenter",this.handleTrackMouseEnter),s.removeEventListener("mouseleave",this.handleTrackMouseLeave),s.removeEventListener("mousedown",this.handleVerticalTrackMouseDown),h.removeEventListener("mousedown",this.handleHorizontalThumbMouseDown),t.removeEventListener("mousedown",this.handleVerticalThumbMouseDown),window.removeEventListener("resize",this.handleWindowResize),this.teardownDragging())}}},{key:"handleScroll",value:function(r){var a=this,s=this.props,h=s.onScroll,t=s.onScrollFrame;h&&h(r),this.update(function(p){var T=p.scrollLeft,S=p.scrollTop;a.viewScrollLeft=T,a.viewScrollTop=S,t&&t(p)}),this.detectScrolling()}},{key:"handleScrollStart",value:function(){var r=this.props.onScrollStart;r&&r(),this.handleScrollStartAutoHide()}},{key:"handleScrollStartAutoHide",value:function(){var r=this.props.autoHide;r&&this.showTracks()}},{key:"handleScrollStop",value:function(){var r=this.props.onScrollStop;r&&r(),this.handleScrollStopAutoHide()}},{key:"handleScrollStopAutoHide",value:function(){var r=this.props.autoHide;r&&this.hideTracks()}},{key:"handleWindowResize",value:function(){this.update()}},{key:"handleHorizontalTrackMouseDown",value:function(r){r.preventDefault();var a=r.target,s=r.clientX,h=a.getBoundingClientRect(),t=h.left,p=this.getThumbHorizontalWidth(),T=Math.abs(t-s)-p/2;this.view.scrollLeft=this.getScrollLeftForOffset(T)}},{key:"handleVerticalTrackMouseDown",value:function(r){r.preventDefault();var a=r.target,s=r.clientY,h=a.getBoundingClientRect(),t=h.top,p=this.getThumbVerticalHeight(),T=Math.abs(t-s)-p/2;this.view.scrollTop=this.getScrollTopForOffset(T)}},{key:"handleHorizontalThumbMouseDown",value:function(r){r.preventDefault(),this.handleDragStart(r);var a=r.target,s=r.clientX,h=a.offsetWidth,t=a.getBoundingClientRect(),p=t.left;this.prevPageX=h-(s-p)}},{key:"handleVerticalThumbMouseDown",value:function(r){r.preventDefault(),this.handleDragStart(r);var a=r.target,s=r.clientY,h=a.offsetHeight,t=a.getBoundingClientRect(),p=t.top;this.prevPageY=h-(s-p)}},{key:"setupDragging",value:function(){(0,c.default)(document.body,M.disableSelectStyle),document.addEventListener("mousemove",this.handleDrag),document.addEventListener("mouseup",this.handleDragEnd),document.onselectstart=W.default}},{key:"teardownDragging",value:function(){(0,c.default)(document.body,M.disableSelectStyleReset),document.removeEventListener("mousemove",this.handleDrag),document.removeEventListener("mouseup",this.handleDragEnd),document.onselectstart=void 0}},{key:"handleDragStart",value:function(r){this.dragging=!0,r.stopImmediatePropagation(),this.setupDragging()}},{key:"handleDrag",value:function(r){if(this.prevPageX){var a=r.clientX,s=this.trackHorizontal.getBoundingClientRect(),h=s.left,t=this.getThumbHorizontalWidth(),p=t-this.prevPageX,T=-h+a-p;this.view.scrollLeft=this.getScrollLeftForOffset(T)}if(this.prevPageY){var S=r.clientY,N=this.trackVertical.getBoundingClientRect(),L=N.top,P=this.getThumbVerticalHeight(),C=P-this.prevPageY,z=-L+S-C;this.view.scrollTop=this.getScrollTopForOffset(z)}return!1}},{key:"handleDragEnd",value:function(){this.dragging=!1,this.prevPageX=this.prevPageY=0,this.teardownDragging(),this.handleDragEndAutoHide()}},{key:"handleDragEndAutoHide",value:function(){var r=this.props.autoHide;r&&this.hideTracks()}},{key:"handleTrackMouseEnter",value:function(){this.trackMouseOver=!0,this.handleTrackMouseEnterAutoHide()}},{key:"handleTrackMouseEnterAutoHide",value:function(){var r=this.props.autoHide;r&&this.showTracks()}},{key:"handleTrackMouseLeave",value:function(){this.trackMouseOver=!1,this.handleTrackMouseLeaveAutoHide()}},{key:"handleTrackMouseLeaveAutoHide",value:function(){var r=this.props.autoHide;r&&this.hideTracks()}},{key:"showTracks",value:function(){clearTimeout(this.hideTracksTimeout),(0,c.default)(this.trackHorizontal,{opacity:1}),(0,c.default)(this.trackVertical,{opacity:1})}},{key:"hideTracks",value:function(){var r=this;if(!this.dragging&&!this.scrolling&&!this.trackMouseOver){var a=this.props.autoHideTimeout;clearTimeout(this.hideTracksTimeout),this.hideTracksTimeout=setTimeout(function(){(0,c.default)(r.trackHorizontal,{opacity:0}),(0,c.default)(r.trackVertical,{opacity:0})},a)}}},{key:"detectScrolling",value:function(){var r=this;this.scrolling||(this.scrolling=!0,this.handleScrollStart(),this.detectScrollingInterval=setInterval(function(){r.lastViewScrollLeft===r.viewScrollLeft&&r.lastViewScrollTop===r.viewScrollTop&&(clearInterval(r.detectScrollingInterval),r.scrolling=!1,r.handleScrollStop()),r.lastViewScrollLeft=r.viewScrollLeft,r.lastViewScrollTop=r.viewScrollTop},100))}},{key:"raf",value:function(r){var a=this;this.requestFrame&&u.default.cancel(this.requestFrame),this.requestFrame=(0,u.default)(function(){a.requestFrame=void 0,r()})}},{key:"update",value:function(r){var a=this;this.raf(function(){return a._update(r)})}},{key:"_update",value:function(r){var a=this.props,s=a.onUpdate,h=a.hideTracksWhenNotNeeded,t=this.getValues();if((0,b.default)()){var p=t.scrollLeft,T=t.clientWidth,S=t.scrollWidth,N=(0,ve.default)(this.trackHorizontal),L=this.getThumbHorizontalWidth(),P=p/(S-T)*(N-L),C={width:L,transform:"translateX("+P+"px)"},z=t.scrollTop,A=t.clientHeight,j=t.scrollHeight,ge=(0,me.default)(this.trackVertical),ne=this.getThumbVerticalHeight(),be=z/(j-A)*(ge-ne),X={height:ne,transform:"translateY("+be+"px)"};if(h){var Te={visibility:S>T?"visible":"hidden"},_e={visibility:j>A?"visible":"hidden"};(0,c.default)(this.trackHorizontal,Te),(0,c.default)(this.trackVertical,_e)}(0,c.default)(this.thumbHorizontal,C),(0,c.default)(this.thumbVertical,X)}s&&s(t),typeof r=="function"&&r(t)}},{key:"render",value:function(){var r=this,a=(0,b.default)(),s=this.props;s.onScroll,s.onScrollFrame,s.onScrollStart,s.onScrollStop,s.onUpdate;var h=s.renderView,t=s.renderTrackHorizontal,p=s.renderTrackVertical,T=s.renderThumbHorizontal,S=s.renderThumbVertical,N=s.tagName;s.hideTracksWhenNotNeeded;var L=s.autoHide;s.autoHideTimeout;var P=s.autoHideDuration;s.thumbSize,s.thumbMinSize;var C=s.universal,z=s.autoHeight,A=s.autoHeightMin,j=s.autoHeightMax,ge=s.style,ne=s.children,be=Be(s,["onScroll","onScrollFrame","onScrollStart","onScrollStop","onUpdate","renderView","renderTrackHorizontal","renderTrackVertical","renderThumbHorizontal","renderThumbVertical","tagName","hideTracksWhenNotNeeded","autoHide","autoHideTimeout","autoHideDuration","thumbSize","thumbMinSize","universal","autoHeight","autoHeightMin","autoHeightMax","style","children"]),X=this.state.didMountUniversal,Te=o({},M.containerStyleDefault,z&&o({},M.containerStyleAutoHeight,{minHeight:A,maxHeight:j}),ge),_e=o({},M.viewStyleDefault,{marginRight:a?-a:0,marginBottom:a?-a:0},z&&o({},M.viewStyleAutoHeight,{minHeight:(0,I.default)(A)?"calc("+A+" + "+a+"px)":A+a,maxHeight:(0,I.default)(j)?"calc("+j+" + "+a+"px)":j+a}),z&&C&&!X&&{minHeight:A,maxHeight:j},C&&!X&&M.viewStyleUniversalInitial),Ce={transition:"opacity "+P+"ms",opacity:0},Xe=o({},M.trackHorizontalStyleDefault,L&&Ce,(!a||C&&!X)&&{display:"none"}),$e=o({},M.trackVerticalStyleDefault,L&&Ce,(!a||C&&!X)&&{display:"none"});return(0,y.createElement)(N,o({},be,{style:Te,ref:function(D){r.container=D}}),[(0,y.cloneElement)(h({style:_e}),{key:"view",ref:function(D){r.view=D}},ne),(0,y.cloneElement)(t({style:Xe}),{key:"trackHorizontal",ref:function(D){r.trackHorizontal=D}},(0,y.cloneElement)(T({style:M.thumbHorizontalStyleDefault}),{ref:function(D){r.thumbHorizontal=D}})),(0,y.cloneElement)(p({style:$e}),{key:"trackVertical",ref:function(D){r.trackVertical=D}},(0,y.cloneElement)(S({style:M.thumbVerticalStyleDefault}),{ref:function(D){r.thumbVertical=D}}))])}}]),m}(y.Component);n.default=pe,pe.propTypes={onScroll:f.default.func,onScrollFrame:f.default.func,onScrollStart:f.default.func,onScrollStop:f.default.func,onUpdate:f.default.func,renderView:f.default.func,renderTrackHorizontal:f.default.func,renderTrackVertical:f.default.func,renderThumbHorizontal:f.default.func,renderThumbVertical:f.default.func,tagName:f.default.string,thumbSize:f.default.number,thumbMinSize:f.default.number,hideTracksWhenNotNeeded:f.default.bool,autoHide:f.default.bool,autoHideTimeout:f.default.number,autoHideDuration:f.default.number,autoHeight:f.default.bool,autoHeightMin:f.default.oneOfType([f.default.number,f.default.string]),autoHeightMax:f.default.oneOfType([f.default.number,f.default.string]),universal:f.default.bool,style:f.default.object,children:f.default.node},pe.defaultProps={renderView:Y.renderViewDefault,renderTrackHorizontal:Y.renderTrackHorizontalDefault,renderTrackVertical:Y.renderTrackVerticalDefault,renderThumbHorizontal:Y.renderThumbHorizontalDefault,renderThumbVertical:Y.renderThumbVerticalDefault,tagName:"div",thumbMinSize:30,hideTracksWhenNotNeeded:!1,autoHide:!1,autoHideTimeout:1e3,autoHideDuration:200,autoHeight:!1,autoHeightMin:0,autoHeightMax:200,universal:!1}})(ze);(function(n){Object.defineProperty(n,"__esModule",{value:!0}),n.Scrollbars=void 0;var o=ze,e=i(o);function i(u){return u&&u.__esModule?u:{default:u}}n.default=e.default,n.Scrollbars=e.default})(Le);const It="Confirmation-module__container___45eSd",Vt="Confirmation-module__message___4r1SC",Ot="Confirmation-module__buttons___QYVqm",Wt="Confirmation-module__button___gJmIL",Rt="Confirmation-module__confirm___DqtMv",Nt="Confirmation-module__cancel___3CIW9",B={container:It,message:Vt,buttons:Ot,button:Wt,confirm:Rt,cancel:Nt},Pt=({message:n,title:o,onCancel:e,onConfirm:i})=>{const u=E(B.button,B.confirm),d=E(B.button,B.cancel);return v.jsxs("div",{className:B.container,children:[v.jsx("div",{className:B.title,children:o}),v.jsx("div",{className:E(B.message,J.styleguideConstants.TEXT_SECONDARY),children:n}),v.jsxs("div",{className:B.buttons,children:[v.jsx("button",{className:u,onClick:i,children:"Yes"}),v.jsx("button",{className:d,onClick:e,children:"No"})]})]})},At="Menu-module__container___KGp0N",jt="Menu-module__disabled___xdT-F",Bt="Menu-module__groupHeader___-d7MT",Ft="Menu-module__isDrill___6OfQP",qt="Menu-module__separator___OQ--M",Ut="Menu-module__noIcon___MYkPf",Xt="Menu-module__item___nmDUr",$t="Menu-module__checked___6OJEB",Gt="Menu-module__radio___OlxcQ",Yt="Menu-module__checkbox___HocC7",Zt="Menu-module__icon___ZxKUL",Qt="Menu-module__itemType___VLiEZ",Jt="Menu-module__nestedType___gayzp",Kt="Menu-module__nestedIcon___VyPyZ",er="Menu-module__menuItemText___agoSf",tr="Menu-module__separateGroup___0J5WE",rr="Menu-module__itemCheckBox___2DHy4",nr="Menu-module__itemRadioButton___h2ifs",or="Menu-module__scrollbar___li1b-",ir="Menu-module__itemContainer___m0XPy",ar="Menu-module__inlineConfirmation___0JCIX",lr="Menu-module__menuItemTooltip___5jA0S",sr="Menu-module__toggleButtonMenu___qwLCQ",ur="Menu-module__loader___pzNnL",_={container:At,disabled:jt,groupHeader:Bt,isDrill:Ft,separator:qt,noIcon:Ut,item:Xt,checked:$t,radio:Gt,checkbox:Yt,icon:Zt,itemType:Qt,nestedType:Jt,nestedIcon:Kt,menuItemText:er,separateGroup:tr,itemCheckBox:rr,itemRadioButton:nr,scrollbar:or,itemContainer:ir,inlineConfirmation:ar,menuItemTooltip:lr,toggleButtonMenu:sr,loader:ur},ee=Object.freeze({ITEM:"item",RADIO:"radio",CHECKBOX:"checkbox",TOGGLE:"toggle",NESTED:"nested"}),Me=class Me extends ce.Component{constructor(o){super(o),this.renderRegularMenuItem=()=>{const{dataTestId:e,iconName:i,iconClass:u,isDrill:d}=this.props;return v.jsxs("span",{className:_.itemContainer,children:[i&&v.jsx(oe.DEPRECATED_Icon,{name:i,className:u}),v.jsx("span",{"data-testid":e,className:E(_.menuItemText,J.styleguideConstants.TEXT_PRIMARY),children:this.getContent()}),d&&v.jsx(oe.DEPRECATED_Icon,{name:"general-arrow-right"})]})},this.renderMenuItem=()=>{const{tooltip:e,classNameTooltip:i,level:u}=this.props,d=this.renderRegularMenuItem();if(e){const c=v.jsx("div",{children:e});return v.jsx(Qe.DEPRECATED_Tooltip,{overlay:c,placement:"right",overlayClassName:E(i,_.menuItemTooltip),mouseLeaveDelay:0,align:{offset:[u?5:10,0]},children:d})}return d},this.state={inInlineConfirmation:!1}}getContent(){const{type:o,caption:e,subCaption:i,checked:u,selected:d}=this.props;switch(o){case ee.RADIO:return v.jsx(Je.RadioButton,{text:e,name:e,onChange:()=>null,value:e,checked:!!u,preventClick:!0});case ee.CHECKBOX:return v.jsx(Ye.DEPRECATED_Checkbox,{title:e,text:e,onChange:()=>null,checked:!!u,className:_.itemCheckBox});case ee.TOGGLE:return v.jsxs("div",{children:[v.jsx("span",{children:e}),v.jsx(Ze.DEPRECATED_Toggle,{onChange:()=>null,className:_.toggleButtonMenu,checked:!!u})]});case ee.NESTED:return v.jsxs("div",{className:_.nestedType,children:[v.jsx("div",{children:e}),v.jsx(oe.DEPRECATED_Icon,{className:_.nestedIcon,name:"general-double-arrow-front"}),v.jsx("div",{children:i})]});default:return v.jsxs("div",{className:_.itemType,children:[e,d&&v.jsx(oe.DEPRECATED_Icon,{name:"general-vi-small-white"})]})}}handleClick(o){o.stopPropagation();const{handleClick:e,disabled:i}=this.props;i||e()}render(){const{checked:o,className:e,iconName:i,handleOver:u,handleOut:d,disabled:c}=this.props,y=!1,x=E(e,{[_.checked]:o,[_.noIcon]:!i||y,[_.disabled]:c,[J.styleguideConstants.TEXT_PRIMARY]:o,[J.styleguideConstants.TEXT_SECONDARY_HOVER]:!o&&!c,[J.styleguideConstants.TEXT_SECONDARY]:c});return v.jsx("li",{"data-menu-item":!0,className:x,onClick:this.handleClick.bind(this),onMouseOver:u,onMouseOut:d,children:this.renderMenuItem()})}};Me.defaultProps={className:""};let se=Me;function cr(n,o){const e={};return n.reduce(function(i,u){const d=o(u);return i[d]||(i[d]=[]),i[d].push(u),i},e)}const xe=()=>{},ue=class ue extends ce.Component{constructor(o){super(o),this.handleClick=e=>{if(e.subItems||e.actionableComponent){this.clearTimeout(),this.state.activeSubMenu===e.id?this.closeSubMenu():this.setState({activeSubMenu:e.id});return}else if(e.confirmation&&!e.confirmation.inline){this.clearTimeout(),this.setState({activeSubMenu:e.id});return}const{onItemSelected:i}=this.props;i(e,e.value)},this.handleOver=e=>{this.clearTimeout(),this.setState({isHoverSubMenu:!1});const i=e.subItems||e.actionableComponent?e.id:null;this.timeoutIn=window.setTimeout(()=>{this.setState({activeSubMenu:i})},900)},this.handleOut=e=>{(e.subItems||e.actionableComponent)&&this.state.activeSubMenu&&this.clearTimeout()},this.onSubMenuMouseEnter=()=>{this.clearTimeout(),this.setState({isHoverSubMenu:!0})},this.onSubMenuMouseLeave=()=>{this.setState({isHoverSubMenu:!1})},this.closeSubMenu=()=>{this.setState({activeSubMenu:null})},this.onConfirm=e=>{const{onItemSelected:i}=this.props;this.closeSubMenu(),i(e)},this.renderMenuItem=e=>{const{onItemSelected:i,onRequestClose:u,level:d,classNameTooltip:c,zIndex:y,className:x}=this.props;let f=E(_[e.type],{[_.isDrill]:e.subItems,[_.separator]:e.separator,fakeHover:e.checked,[_.groupHeader]:e.groupTitle});const O=k=>{const b=E(e.iconClass,_.icon);return v.jsx(se,{className:k,checked:e.checked,dataTestId:e.dataTestId,disabled:e.disabled,type:e.type,caption:e.caption,subCaption:e.subCaption,tooltip:e.tooltip,classNameTooltip:c,iconName:e.iconName,iconClass:b,isDrill:!!e.subItems||!!e.actionableComponent,level:d,selected:e.selected,handleClick:()=>this.handleClick(e),handleOver:()=>this.handleOver(e),handleOut:()=>this.handleOut(e)},e.id)};let I=e.subItems;if(I){const k=this.state.activeSubMenu===e.id;let b=this.handleClick;f=E(f,{fakeHover:k&&this.state.isHoverSubMenu}),e.value!==void 0&&(I=I.map(function(W){return{...W,checked:W.value===e.value}}),b=W=>i(e,W.value));const w=()=>v.jsx(ue,{items:I||[],className:x,onItemSelected:b,onMouseEnter:this.onSubMenuMouseEnter,scrollbarProps:{className:e.subItemScrollbarClassName},level:(d||0)+1,zIndex:(y||1)+1});return v.jsx(Se.Popover,{visible:k,level:1,mask:!1,trigger:[],placement:"rightTop",align:{offset:[0,0]},overlay:w,onRequestClose:u,zIndex:(y||1)+1,children:O(f)},e.id)}else if(e.actionableComponent){const{componentProps:k}=e.actionableComponent,b=e.actionableComponent.component,w=this.state.activeSubMenu===e.id,W=()=>v.jsx(b,{...k,onRequestClose:u});return v.jsx(Se.Popover,{visible:w,level:1,mask:!1,trigger:[],placement:"rightTop",align:{offset:[10,0]},overlay:W,onRequestClose:u,children:O(f)},e.id)}else if(e.confirmation&&!e.confirmation.inline){const k=e.confirmation,b=this.state.activeSubMenu===e.id,w=()=>v.jsx(Pt,{title:k.title,message:k.message,onCancel:this.closeSubMenu,onConfirm:()=>this.onConfirm(e)});return v.jsx(Se.Popover,{visible:b,level:1,mask:!0,trigger:[],placement:"rightBottom",align:{offset:[10,0]},overlay:w,onRequestClose:this.closeSubMenu,children:O(f)},e.id)}return O(f)},this.state={activeSubMenu:null,isHoverSubMenu:!1},this.timeoutIn=null}componentWillUnmount(){this.clearTimeout()}clearTimeout(){this.timeoutIn&&(clearTimeout(this.timeoutIn),this.timeoutIn=null)}getSeparateGroups(o){const e=cr(o,d=>d.groupId||""),i=Object.values(e);return i.slice(1).forEach(d=>d[0].separator=!0),i}render(){const{items:o,className:e,onMouseEnter:i,scrollbarProps:{className:u,...d},width:c,isLoading:y}=this.props;let x=o.filter(b=>!b.hidden);x=x.map((b,w)=>(b.separator&&!x[w-1]&&(b.separator=!1),b));const f=E(_.container,e),O=E(_.scrollbar,u),I=c?{width:`${c}px`,minWidth:"inherit"}:{},k=y?_.loader:"";return v.jsx("div",{className:f,onMouseEnter:i,style:I,children:v.jsxs(Le.Scrollbars,{className:O,...d,hideTracksWhenNotNeeded:!0,children:[this.getSeparateGroups(x).map((b,w)=>v.jsx("div",{className:_.separateGroup,children:b.map(this.renderMenuItem)},w)),v.jsx("div",{className:k,children:v.jsx(Ge.LazyLoader,{isLoading:y})})]})})}};ue.defaultProps={onMouseEnter:xe,onRequestClose:xe,scrollbarProps:{},level:0,isLoading:!1,zIndex:1};let He=ue;exports.Menu=He;exports.MenuItem=se;exports.itemTypes=ee;
1
+ "use strict";const v=require("react/jsx-runtime"),E=require("classnames"),ce=require("react"),we=require("./index-B-zZeebW.cjs"),Ge=require("./LazyLoader-gOLNhxc-.cjs"),Se=require("./Popover-DHy8NRMc.cjs"),J=require("./styleguideConstants-CtXkvIZK.cjs"),Ye=require("./DEPRECATED_Checkbox-BggU0HO5.cjs"),oe=require("./DEPRECATED_Icon-DC1Hc9iB.cjs"),Ze=require("./DEPRECATED_Toggle-Dp0ZZ_6E.cjs"),Qe=require("./DEPRECATED_Tooltip-DL3MmzWZ.cjs"),Je=require("./RadioButton-Ds-0wj0r.cjs");var Le={},ze={},de={exports:{}},K={exports:{}};(function(){var n,o,e,i,u,d;typeof performance<"u"&&performance!==null&&performance.now?K.exports=function(){return performance.now()}:typeof process<"u"&&process!==null&&process.hrtime?(K.exports=function(){return(n()-u)/1e6},o=process.hrtime,n=function(){var c;return c=o(),c[0]*1e9+c[1]},i=n(),d=process.uptime()*1e9,u=i-d):Date.now?(K.exports=function(){return Date.now()-e},e=Date.now()):(K.exports=function(){return new Date().getTime()-e},e=new Date().getTime())}).call(we.commonjsGlobal);var Ke=K.exports,et=Ke,V=typeof window>"u"?we.commonjsGlobal:window,ie=["moz","webkit"],$="AnimationFrame",G=V["request"+$],te=V["cancel"+$]||V["cancelRequest"+$];for(var Q=0;!G&&Q<ie.length;Q++)G=V[ie[Q]+"Request"+$],te=V[ie[Q]+"Cancel"+$]||V[ie[Q]+"CancelRequest"+$];if(!G||!te){var ye=0,De=0,q=[],tt=1e3/60;G=function(n){if(q.length===0){var o=et(),e=Math.max(0,tt-(o-ye));ye=e+o,setTimeout(function(){var i=q.slice(0);q.length=0;for(var u=0;u<i.length;u++)if(!i[u].cancelled)try{i[u].callback(ye)}catch(d){setTimeout(function(){throw d},0)}},Math.round(e))}return q.push({handle:++De,callback:n,cancelled:!1}),De},te=function(n){for(var o=0;o<q.length;o++)q[o].handle===n&&(q[o].cancelled=!0)}}de.exports=function(n){return G.call(V,n)};de.exports.cancel=function(){te.apply(V,arguments)};de.exports.polyfill=function(n){n||(n=V),n.requestAnimationFrame=G,n.cancelAnimationFrame=te};var rt=de.exports,he={exports:{}},ke=null,Ee=["Webkit","Moz","O","ms"],nt=function(o){ke||(ke=document.createElement("div"));var e=ke.style;if(o in e)return o;for(var i=o.charAt(0).toUpperCase()+o.slice(1),u=Ee.length;u>=0;u--){var d=Ee[u]+i;if(d in e)return d}return!1},ot=st,it=/\s/,at=/(_|-|\.|:)/,lt=/([a-z][A-Z]|[A-Z][a-z])/;function st(n){return it.test(n)?n.toLowerCase():at.test(n)?(ct(n)||n).toLowerCase():lt.test(n)?ht(n).toLowerCase():n.toLowerCase()}var ut=/[\W_]+(.|$)/g;function ct(n){return n.replace(ut,function(o,e){return e?" "+e:""})}var dt=/(.)([A-Z]+)/g;function ht(n){return n.replace(dt,function(o,e,i){return e+" "+i.toLowerCase().split("").join(" ")})}var ft=ot,vt=mt;function mt(n){return ft(n).replace(/[\W_]+(.|$)/g,function(o,e){return e?" "+e:""}).trim()}var pt=vt,gt=bt;function bt(n){return pt(n).replace(/\s(\w)/g,function(o,e){return e.toUpperCase()})}var Tt={animationIterationCount:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridColumn:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,stopOpacity:!0,strokeDashoffset:!0,strokeOpacity:!0,strokeWidth:!0},_t=function(n,o){return typeof o=="number"&&!Tt[n]?o+"px":o},St=nt,yt=gt,ae={float:"cssFloat"},kt=_t;function le(n,o,e){var i=ae[o];if(typeof i>"u"&&(i=wt(o)),i){if(e===void 0)return n.style[i];n.style[i]=kt(i,e)}}function Ht(n,o){for(var e in o)o.hasOwnProperty(e)&&le(n,e,o[e])}function wt(n){var o=yt(n),e=St(o);return ae[o]=ae[n]=ae[e]=e,e}function Ie(){arguments.length===2?typeof arguments[1]=="string"?arguments[0].style.cssText=arguments[1]:Ht(arguments[0],arguments[1]):le(arguments[0],arguments[1],arguments[2])}he.exports=Ie;he.exports.set=Ie;he.exports.get=function(n,o){return Array.isArray(o)?o.reduce(function(e,i){return e[i]=le(n,i||""),e},{}):le(n,o||"")};var Ve=he.exports,Oe={};(function(n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=o;function o(e){return typeof e=="string"}})(Oe);var We={};(function(n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=d;var o=Ve,e=i(o);function i(c){return c&&c.__esModule?c:{default:c}}var u=!1;function d(){if(u!==!1)return u;if(typeof document<"u"){var c=document.createElement("div");(0,e.default)(c,{width:100,height:100,position:"absolute",top:-9999,overflow:"scroll",MsOverflowStyle:"scrollbar"}),document.body.appendChild(c),u=c.offsetWidth-c.clientWidth,document.body.removeChild(c)}else u=0;return u||0}})(We);var Re={};(function(n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=o;function o(){return!1}})(Re);var Ne={};(function(n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=o;function o(e){var i=e.clientWidth,u=getComputedStyle(e),d=u.paddingLeft,c=u.paddingRight;return i-parseFloat(d)-parseFloat(c)}})(Ne);var Pe={};(function(n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=o;function o(e){var i=e.clientHeight,u=getComputedStyle(e),d=u.paddingTop,c=u.paddingBottom;return i-parseFloat(d)-parseFloat(c)}})(Pe);var H={};Object.defineProperty(H,"__esModule",{value:!0});H.containerStyleDefault={position:"relative",overflow:"hidden",width:"100%",height:"100%"};H.containerStyleAutoHeight={height:"auto"};H.viewStyleDefault={position:"absolute",top:0,left:0,right:0,bottom:0,overflow:"scroll",WebkitOverflowScrolling:"touch"};H.viewStyleAutoHeight={position:"relative",top:void 0,left:void 0,right:void 0,bottom:void 0};H.viewStyleUniversalInitial={overflow:"hidden",marginRight:0,marginBottom:0};H.trackHorizontalStyleDefault={position:"absolute",height:6};H.trackVerticalStyleDefault={position:"absolute",width:6};H.thumbHorizontalStyleDefault={position:"relative",display:"block",height:"100%"};H.thumbVerticalStyleDefault={position:"relative",display:"block",width:"100%"};H.disableSelectStyle={userSelect:"none"};H.disableSelectStyleReset={userSelect:""};var U={};Object.defineProperty(U,"__esModule",{value:!0});var F=Object.assign||function(n){for(var o=1;o<arguments.length;o++){var e=arguments[o];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(n[i]=e[i])}return n};U.renderViewDefault=Dt;U.renderTrackHorizontalDefault=Et;U.renderTrackVerticalDefault=xt;U.renderThumbHorizontalDefault=Lt;U.renderThumbVerticalDefault=zt;var Mt=ce,re=Ct(Mt);function Ct(n){return n&&n.__esModule?n:{default:n}}function fe(n,o){var e={};for(var i in n)o.indexOf(i)>=0||Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i]);return e}function Dt(n){return re.default.createElement("div",n)}function Et(n){var o=n.style,e=fe(n,["style"]),i=F({},o,{right:2,bottom:2,left:2,borderRadius:3});return re.default.createElement("div",F({style:i},e))}function xt(n){var o=n.style,e=fe(n,["style"]),i=F({},o,{right:2,bottom:2,top:2,borderRadius:3});return re.default.createElement("div",F({style:i},e))}function Lt(n){var o=n.style,e=fe(n,["style"]),i=F({},o,{cursor:"pointer",borderRadius:"inherit",backgroundColor:"rgba(0,0,0,.2)"});return re.default.createElement("div",F({style:i},e))}function zt(n){var o=n.style,e=fe(n,["style"]),i=F({},o,{cursor:"pointer",borderRadius:"inherit",backgroundColor:"rgba(0,0,0,.2)"});return re.default.createElement("div",F({style:i},e))}(function(n){Object.defineProperty(n,"__esModule",{value:!0});var o=Object.assign||function(g){for(var m=1;m<arguments.length;m++){var l=arguments[m];for(var r in l)Object.prototype.hasOwnProperty.call(l,r)&&(g[r]=l[r])}return g},e=function(){function g(m,l){for(var r=0;r<l.length;r++){var a=l[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(m,a.key,a)}}return function(m,l,r){return l&&g(m.prototype,l),r&&g(m,r),m}}(),i=rt,u=R(i),d=Ve,c=R(d),y=ce,x=we.propTypesExports,f=R(x),O=Oe,I=R(O),k=We,b=R(k),w=Re,W=R(w),Ae=Ne,ve=R(Ae),je=Pe,me=R(je),M=H,Y=U;function R(g){return g&&g.__esModule?g:{default:g}}function Be(g,m){var l={};for(var r in g)m.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(g,r)&&(l[r]=g[r]);return l}function Fe(g,m){if(!(g instanceof m))throw new TypeError("Cannot call a class as a function")}function qe(g,m){if(!g)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:g}function Ue(g,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);g.prototype=Object.create(m&&m.prototype,{constructor:{value:g,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(g,m):g.__proto__=m)}var pe=function(g){Ue(m,g);function m(l){var r;Fe(this,m);for(var a=arguments.length,s=Array(a>1?a-1:0),h=1;h<a;h++)s[h-1]=arguments[h];var t=qe(this,(r=m.__proto__||Object.getPrototypeOf(m)).call.apply(r,[this,l].concat(s)));return t.getScrollLeft=t.getScrollLeft.bind(t),t.getScrollTop=t.getScrollTop.bind(t),t.getScrollWidth=t.getScrollWidth.bind(t),t.getScrollHeight=t.getScrollHeight.bind(t),t.getClientWidth=t.getClientWidth.bind(t),t.getClientHeight=t.getClientHeight.bind(t),t.getValues=t.getValues.bind(t),t.getThumbHorizontalWidth=t.getThumbHorizontalWidth.bind(t),t.getThumbVerticalHeight=t.getThumbVerticalHeight.bind(t),t.getScrollLeftForOffset=t.getScrollLeftForOffset.bind(t),t.getScrollTopForOffset=t.getScrollTopForOffset.bind(t),t.scrollLeft=t.scrollLeft.bind(t),t.scrollTop=t.scrollTop.bind(t),t.scrollToLeft=t.scrollToLeft.bind(t),t.scrollToTop=t.scrollToTop.bind(t),t.scrollToRight=t.scrollToRight.bind(t),t.scrollToBottom=t.scrollToBottom.bind(t),t.handleTrackMouseEnter=t.handleTrackMouseEnter.bind(t),t.handleTrackMouseLeave=t.handleTrackMouseLeave.bind(t),t.handleHorizontalTrackMouseDown=t.handleHorizontalTrackMouseDown.bind(t),t.handleVerticalTrackMouseDown=t.handleVerticalTrackMouseDown.bind(t),t.handleHorizontalThumbMouseDown=t.handleHorizontalThumbMouseDown.bind(t),t.handleVerticalThumbMouseDown=t.handleVerticalThumbMouseDown.bind(t),t.handleWindowResize=t.handleWindowResize.bind(t),t.handleScroll=t.handleScroll.bind(t),t.handleDrag=t.handleDrag.bind(t),t.handleDragEnd=t.handleDragEnd.bind(t),t.state={didMountUniversal:!1},t}return e(m,[{key:"componentDidMount",value:function(){this.addListeners(),this.update(),this.componentDidMountUniversal()}},{key:"componentDidMountUniversal",value:function(){var r=this.props.universal;r&&this.setState({didMountUniversal:!0})}},{key:"componentDidUpdate",value:function(){this.update()}},{key:"componentWillUnmount",value:function(){this.removeListeners(),(0,i.cancel)(this.requestFrame),clearTimeout(this.hideTracksTimeout),clearInterval(this.detectScrollingInterval)}},{key:"getScrollLeft",value:function(){return this.view?this.view.scrollLeft:0}},{key:"getScrollTop",value:function(){return this.view?this.view.scrollTop:0}},{key:"getScrollWidth",value:function(){return this.view?this.view.scrollWidth:0}},{key:"getScrollHeight",value:function(){return this.view?this.view.scrollHeight:0}},{key:"getClientWidth",value:function(){return this.view?this.view.clientWidth:0}},{key:"getClientHeight",value:function(){return this.view?this.view.clientHeight:0}},{key:"getValues",value:function(){var r=this.view||{},a=r.scrollLeft,s=a===void 0?0:a,h=r.scrollTop,t=h===void 0?0:h,p=r.scrollWidth,T=p===void 0?0:p,S=r.scrollHeight,N=S===void 0?0:S,L=r.clientWidth,P=L===void 0?0:L,C=r.clientHeight,z=C===void 0?0:C;return{left:s/(T-P)||0,top:t/(N-z)||0,scrollLeft:s,scrollTop:t,scrollWidth:T,scrollHeight:N,clientWidth:P,clientHeight:z}}},{key:"getThumbHorizontalWidth",value:function(){var r=this.props,a=r.thumbSize,s=r.thumbMinSize,h=this.view,t=h.scrollWidth,p=h.clientWidth,T=(0,ve.default)(this.trackHorizontal),S=Math.ceil(p/t*T);return T===S?0:a||Math.max(S,s)}},{key:"getThumbVerticalHeight",value:function(){var r=this.props,a=r.thumbSize,s=r.thumbMinSize,h=this.view,t=h.scrollHeight,p=h.clientHeight,T=(0,me.default)(this.trackVertical),S=Math.ceil(p/t*T);return T===S?0:a||Math.max(S,s)}},{key:"getScrollLeftForOffset",value:function(r){var a=this.view,s=a.scrollWidth,h=a.clientWidth,t=(0,ve.default)(this.trackHorizontal),p=this.getThumbHorizontalWidth();return r/(t-p)*(s-h)}},{key:"getScrollTopForOffset",value:function(r){var a=this.view,s=a.scrollHeight,h=a.clientHeight,t=(0,me.default)(this.trackVertical),p=this.getThumbVerticalHeight();return r/(t-p)*(s-h)}},{key:"scrollLeft",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;this.view&&(this.view.scrollLeft=r)}},{key:"scrollTop",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;this.view&&(this.view.scrollTop=r)}},{key:"scrollToLeft",value:function(){this.view&&(this.view.scrollLeft=0)}},{key:"scrollToTop",value:function(){this.view&&(this.view.scrollTop=0)}},{key:"scrollToRight",value:function(){this.view&&(this.view.scrollLeft=this.view.scrollWidth)}},{key:"scrollToBottom",value:function(){this.view&&(this.view.scrollTop=this.view.scrollHeight)}},{key:"addListeners",value:function(){if(!(typeof document>"u"||!this.view)){var r=this.view,a=this.trackHorizontal,s=this.trackVertical,h=this.thumbHorizontal,t=this.thumbVertical;r.addEventListener("scroll",this.handleScroll),(0,b.default)()&&(a.addEventListener("mouseenter",this.handleTrackMouseEnter),a.addEventListener("mouseleave",this.handleTrackMouseLeave),a.addEventListener("mousedown",this.handleHorizontalTrackMouseDown),s.addEventListener("mouseenter",this.handleTrackMouseEnter),s.addEventListener("mouseleave",this.handleTrackMouseLeave),s.addEventListener("mousedown",this.handleVerticalTrackMouseDown),h.addEventListener("mousedown",this.handleHorizontalThumbMouseDown),t.addEventListener("mousedown",this.handleVerticalThumbMouseDown),window.addEventListener("resize",this.handleWindowResize))}}},{key:"removeListeners",value:function(){if(!(typeof document>"u"||!this.view)){var r=this.view,a=this.trackHorizontal,s=this.trackVertical,h=this.thumbHorizontal,t=this.thumbVertical;r.removeEventListener("scroll",this.handleScroll),(0,b.default)()&&(a.removeEventListener("mouseenter",this.handleTrackMouseEnter),a.removeEventListener("mouseleave",this.handleTrackMouseLeave),a.removeEventListener("mousedown",this.handleHorizontalTrackMouseDown),s.removeEventListener("mouseenter",this.handleTrackMouseEnter),s.removeEventListener("mouseleave",this.handleTrackMouseLeave),s.removeEventListener("mousedown",this.handleVerticalTrackMouseDown),h.removeEventListener("mousedown",this.handleHorizontalThumbMouseDown),t.removeEventListener("mousedown",this.handleVerticalThumbMouseDown),window.removeEventListener("resize",this.handleWindowResize),this.teardownDragging())}}},{key:"handleScroll",value:function(r){var a=this,s=this.props,h=s.onScroll,t=s.onScrollFrame;h&&h(r),this.update(function(p){var T=p.scrollLeft,S=p.scrollTop;a.viewScrollLeft=T,a.viewScrollTop=S,t&&t(p)}),this.detectScrolling()}},{key:"handleScrollStart",value:function(){var r=this.props.onScrollStart;r&&r(),this.handleScrollStartAutoHide()}},{key:"handleScrollStartAutoHide",value:function(){var r=this.props.autoHide;r&&this.showTracks()}},{key:"handleScrollStop",value:function(){var r=this.props.onScrollStop;r&&r(),this.handleScrollStopAutoHide()}},{key:"handleScrollStopAutoHide",value:function(){var r=this.props.autoHide;r&&this.hideTracks()}},{key:"handleWindowResize",value:function(){this.update()}},{key:"handleHorizontalTrackMouseDown",value:function(r){r.preventDefault();var a=r.target,s=r.clientX,h=a.getBoundingClientRect(),t=h.left,p=this.getThumbHorizontalWidth(),T=Math.abs(t-s)-p/2;this.view.scrollLeft=this.getScrollLeftForOffset(T)}},{key:"handleVerticalTrackMouseDown",value:function(r){r.preventDefault();var a=r.target,s=r.clientY,h=a.getBoundingClientRect(),t=h.top,p=this.getThumbVerticalHeight(),T=Math.abs(t-s)-p/2;this.view.scrollTop=this.getScrollTopForOffset(T)}},{key:"handleHorizontalThumbMouseDown",value:function(r){r.preventDefault(),this.handleDragStart(r);var a=r.target,s=r.clientX,h=a.offsetWidth,t=a.getBoundingClientRect(),p=t.left;this.prevPageX=h-(s-p)}},{key:"handleVerticalThumbMouseDown",value:function(r){r.preventDefault(),this.handleDragStart(r);var a=r.target,s=r.clientY,h=a.offsetHeight,t=a.getBoundingClientRect(),p=t.top;this.prevPageY=h-(s-p)}},{key:"setupDragging",value:function(){(0,c.default)(document.body,M.disableSelectStyle),document.addEventListener("mousemove",this.handleDrag),document.addEventListener("mouseup",this.handleDragEnd),document.onselectstart=W.default}},{key:"teardownDragging",value:function(){(0,c.default)(document.body,M.disableSelectStyleReset),document.removeEventListener("mousemove",this.handleDrag),document.removeEventListener("mouseup",this.handleDragEnd),document.onselectstart=void 0}},{key:"handleDragStart",value:function(r){this.dragging=!0,r.stopImmediatePropagation(),this.setupDragging()}},{key:"handleDrag",value:function(r){if(this.prevPageX){var a=r.clientX,s=this.trackHorizontal.getBoundingClientRect(),h=s.left,t=this.getThumbHorizontalWidth(),p=t-this.prevPageX,T=-h+a-p;this.view.scrollLeft=this.getScrollLeftForOffset(T)}if(this.prevPageY){var S=r.clientY,N=this.trackVertical.getBoundingClientRect(),L=N.top,P=this.getThumbVerticalHeight(),C=P-this.prevPageY,z=-L+S-C;this.view.scrollTop=this.getScrollTopForOffset(z)}return!1}},{key:"handleDragEnd",value:function(){this.dragging=!1,this.prevPageX=this.prevPageY=0,this.teardownDragging(),this.handleDragEndAutoHide()}},{key:"handleDragEndAutoHide",value:function(){var r=this.props.autoHide;r&&this.hideTracks()}},{key:"handleTrackMouseEnter",value:function(){this.trackMouseOver=!0,this.handleTrackMouseEnterAutoHide()}},{key:"handleTrackMouseEnterAutoHide",value:function(){var r=this.props.autoHide;r&&this.showTracks()}},{key:"handleTrackMouseLeave",value:function(){this.trackMouseOver=!1,this.handleTrackMouseLeaveAutoHide()}},{key:"handleTrackMouseLeaveAutoHide",value:function(){var r=this.props.autoHide;r&&this.hideTracks()}},{key:"showTracks",value:function(){clearTimeout(this.hideTracksTimeout),(0,c.default)(this.trackHorizontal,{opacity:1}),(0,c.default)(this.trackVertical,{opacity:1})}},{key:"hideTracks",value:function(){var r=this;if(!this.dragging&&!this.scrolling&&!this.trackMouseOver){var a=this.props.autoHideTimeout;clearTimeout(this.hideTracksTimeout),this.hideTracksTimeout=setTimeout(function(){(0,c.default)(r.trackHorizontal,{opacity:0}),(0,c.default)(r.trackVertical,{opacity:0})},a)}}},{key:"detectScrolling",value:function(){var r=this;this.scrolling||(this.scrolling=!0,this.handleScrollStart(),this.detectScrollingInterval=setInterval(function(){r.lastViewScrollLeft===r.viewScrollLeft&&r.lastViewScrollTop===r.viewScrollTop&&(clearInterval(r.detectScrollingInterval),r.scrolling=!1,r.handleScrollStop()),r.lastViewScrollLeft=r.viewScrollLeft,r.lastViewScrollTop=r.viewScrollTop},100))}},{key:"raf",value:function(r){var a=this;this.requestFrame&&u.default.cancel(this.requestFrame),this.requestFrame=(0,u.default)(function(){a.requestFrame=void 0,r()})}},{key:"update",value:function(r){var a=this;this.raf(function(){return a._update(r)})}},{key:"_update",value:function(r){var a=this.props,s=a.onUpdate,h=a.hideTracksWhenNotNeeded,t=this.getValues();if((0,b.default)()){var p=t.scrollLeft,T=t.clientWidth,S=t.scrollWidth,N=(0,ve.default)(this.trackHorizontal),L=this.getThumbHorizontalWidth(),P=p/(S-T)*(N-L),C={width:L,transform:"translateX("+P+"px)"},z=t.scrollTop,A=t.clientHeight,j=t.scrollHeight,ge=(0,me.default)(this.trackVertical),ne=this.getThumbVerticalHeight(),be=z/(j-A)*(ge-ne),X={height:ne,transform:"translateY("+be+"px)"};if(h){var Te={visibility:S>T?"visible":"hidden"},_e={visibility:j>A?"visible":"hidden"};(0,c.default)(this.trackHorizontal,Te),(0,c.default)(this.trackVertical,_e)}(0,c.default)(this.thumbHorizontal,C),(0,c.default)(this.thumbVertical,X)}s&&s(t),typeof r=="function"&&r(t)}},{key:"render",value:function(){var r=this,a=(0,b.default)(),s=this.props;s.onScroll,s.onScrollFrame,s.onScrollStart,s.onScrollStop,s.onUpdate;var h=s.renderView,t=s.renderTrackHorizontal,p=s.renderTrackVertical,T=s.renderThumbHorizontal,S=s.renderThumbVertical,N=s.tagName;s.hideTracksWhenNotNeeded;var L=s.autoHide;s.autoHideTimeout;var P=s.autoHideDuration;s.thumbSize,s.thumbMinSize;var C=s.universal,z=s.autoHeight,A=s.autoHeightMin,j=s.autoHeightMax,ge=s.style,ne=s.children,be=Be(s,["onScroll","onScrollFrame","onScrollStart","onScrollStop","onUpdate","renderView","renderTrackHorizontal","renderTrackVertical","renderThumbHorizontal","renderThumbVertical","tagName","hideTracksWhenNotNeeded","autoHide","autoHideTimeout","autoHideDuration","thumbSize","thumbMinSize","universal","autoHeight","autoHeightMin","autoHeightMax","style","children"]),X=this.state.didMountUniversal,Te=o({},M.containerStyleDefault,z&&o({},M.containerStyleAutoHeight,{minHeight:A,maxHeight:j}),ge),_e=o({},M.viewStyleDefault,{marginRight:a?-a:0,marginBottom:a?-a:0},z&&o({},M.viewStyleAutoHeight,{minHeight:(0,I.default)(A)?"calc("+A+" + "+a+"px)":A+a,maxHeight:(0,I.default)(j)?"calc("+j+" + "+a+"px)":j+a}),z&&C&&!X&&{minHeight:A,maxHeight:j},C&&!X&&M.viewStyleUniversalInitial),Ce={transition:"opacity "+P+"ms",opacity:0},Xe=o({},M.trackHorizontalStyleDefault,L&&Ce,(!a||C&&!X)&&{display:"none"}),$e=o({},M.trackVerticalStyleDefault,L&&Ce,(!a||C&&!X)&&{display:"none"});return(0,y.createElement)(N,o({},be,{style:Te,ref:function(D){r.container=D}}),[(0,y.cloneElement)(h({style:_e}),{key:"view",ref:function(D){r.view=D}},ne),(0,y.cloneElement)(t({style:Xe}),{key:"trackHorizontal",ref:function(D){r.trackHorizontal=D}},(0,y.cloneElement)(T({style:M.thumbHorizontalStyleDefault}),{ref:function(D){r.thumbHorizontal=D}})),(0,y.cloneElement)(p({style:$e}),{key:"trackVertical",ref:function(D){r.trackVertical=D}},(0,y.cloneElement)(S({style:M.thumbVerticalStyleDefault}),{ref:function(D){r.thumbVertical=D}}))])}}]),m}(y.Component);n.default=pe,pe.propTypes={onScroll:f.default.func,onScrollFrame:f.default.func,onScrollStart:f.default.func,onScrollStop:f.default.func,onUpdate:f.default.func,renderView:f.default.func,renderTrackHorizontal:f.default.func,renderTrackVertical:f.default.func,renderThumbHorizontal:f.default.func,renderThumbVertical:f.default.func,tagName:f.default.string,thumbSize:f.default.number,thumbMinSize:f.default.number,hideTracksWhenNotNeeded:f.default.bool,autoHide:f.default.bool,autoHideTimeout:f.default.number,autoHideDuration:f.default.number,autoHeight:f.default.bool,autoHeightMin:f.default.oneOfType([f.default.number,f.default.string]),autoHeightMax:f.default.oneOfType([f.default.number,f.default.string]),universal:f.default.bool,style:f.default.object,children:f.default.node},pe.defaultProps={renderView:Y.renderViewDefault,renderTrackHorizontal:Y.renderTrackHorizontalDefault,renderTrackVertical:Y.renderTrackVerticalDefault,renderThumbHorizontal:Y.renderThumbHorizontalDefault,renderThumbVertical:Y.renderThumbVerticalDefault,tagName:"div",thumbMinSize:30,hideTracksWhenNotNeeded:!1,autoHide:!1,autoHideTimeout:1e3,autoHideDuration:200,autoHeight:!1,autoHeightMin:0,autoHeightMax:200,universal:!1}})(ze);(function(n){Object.defineProperty(n,"__esModule",{value:!0}),n.Scrollbars=void 0;var o=ze,e=i(o);function i(u){return u&&u.__esModule?u:{default:u}}n.default=e.default,n.Scrollbars=e.default})(Le);const It="Confirmation-module__container___45eSd",Vt="Confirmation-module__message___4r1SC",Ot="Confirmation-module__buttons___QYVqm",Wt="Confirmation-module__button___gJmIL",Rt="Confirmation-module__confirm___DqtMv",Nt="Confirmation-module__cancel___3CIW9",B={container:It,message:Vt,buttons:Ot,button:Wt,confirm:Rt,cancel:Nt},Pt=({message:n,title:o,onCancel:e,onConfirm:i})=>{const u=E(B.button,B.confirm),d=E(B.button,B.cancel);return v.jsxs("div",{className:B.container,children:[v.jsx("div",{className:B.title,children:o}),v.jsx("div",{className:E(B.message,J.styleguideConstants.TEXT_SECONDARY),children:n}),v.jsxs("div",{className:B.buttons,children:[v.jsx("button",{className:u,onClick:i,children:"Yes"}),v.jsx("button",{className:d,onClick:e,children:"No"})]})]})},At="Menu-module__container___KGp0N",jt="Menu-module__disabled___xdT-F",Bt="Menu-module__groupHeader___-d7MT",Ft="Menu-module__isDrill___6OfQP",qt="Menu-module__separator___OQ--M",Ut="Menu-module__noIcon___MYkPf",Xt="Menu-module__item___nmDUr",$t="Menu-module__checked___6OJEB",Gt="Menu-module__radio___OlxcQ",Yt="Menu-module__checkbox___HocC7",Zt="Menu-module__icon___ZxKUL",Qt="Menu-module__itemType___VLiEZ",Jt="Menu-module__nestedType___gayzp",Kt="Menu-module__nestedIcon___VyPyZ",er="Menu-module__menuItemText___agoSf",tr="Menu-module__separateGroup___0J5WE",rr="Menu-module__itemCheckBox___2DHy4",nr="Menu-module__itemRadioButton___h2ifs",or="Menu-module__scrollbar___li1b-",ir="Menu-module__itemContainer___m0XPy",ar="Menu-module__inlineConfirmation___0JCIX",lr="Menu-module__menuItemTooltip___5jA0S",sr="Menu-module__toggleButtonMenu___qwLCQ",ur="Menu-module__loader___pzNnL",_={container:At,disabled:jt,groupHeader:Bt,isDrill:Ft,separator:qt,noIcon:Ut,item:Xt,checked:$t,radio:Gt,checkbox:Yt,icon:Zt,itemType:Qt,nestedType:Jt,nestedIcon:Kt,menuItemText:er,separateGroup:tr,itemCheckBox:rr,itemRadioButton:nr,scrollbar:or,itemContainer:ir,inlineConfirmation:ar,menuItemTooltip:lr,toggleButtonMenu:sr,loader:ur},ee=Object.freeze({ITEM:"item",RADIO:"radio",CHECKBOX:"checkbox",TOGGLE:"toggle",NESTED:"nested"}),Me=class Me extends ce.Component{constructor(o){super(o),this.renderRegularMenuItem=()=>{const{dataTestId:e,iconName:i,iconClass:u,isDrill:d}=this.props;return v.jsxs("span",{className:_.itemContainer,children:[i&&v.jsx(oe.DEPRECATED_Icon,{name:i,className:u}),v.jsx("span",{"data-testid":e,className:E(_.menuItemText,J.styleguideConstants.TEXT_PRIMARY),children:this.getContent()}),d&&v.jsx(oe.DEPRECATED_Icon,{name:"general-arrow-right"})]})},this.renderMenuItem=()=>{const{tooltip:e,classNameTooltip:i,level:u}=this.props,d=this.renderRegularMenuItem();if(e){const c=v.jsx("div",{children:e});return v.jsx(Qe.DEPRECATED_Tooltip,{overlay:c,placement:"right",overlayClassName:E(i,_.menuItemTooltip),mouseLeaveDelay:0,align:{offset:[u?5:10,0]},children:d})}return d},this.state={inInlineConfirmation:!1}}getContent(){const{type:o,caption:e,subCaption:i,checked:u,selected:d}=this.props;switch(o){case ee.RADIO:return v.jsx(Je.RadioButton,{text:e,name:e,onChange:()=>null,value:e,checked:!!u,preventClick:!0});case ee.CHECKBOX:return v.jsx(Ye.DEPRECATED_Checkbox,{title:e,text:e,onChange:()=>null,checked:!!u,className:_.itemCheckBox});case ee.TOGGLE:return v.jsxs("div",{children:[v.jsx("span",{children:e}),v.jsx(Ze.DEPRECATED_Toggle,{onChange:()=>null,className:_.toggleButtonMenu,checked:!!u})]});case ee.NESTED:return v.jsxs("div",{className:_.nestedType,children:[v.jsx("div",{children:e}),v.jsx(oe.DEPRECATED_Icon,{className:_.nestedIcon,name:"general-double-arrow-front"}),v.jsx("div",{children:i})]});default:return v.jsxs("div",{className:_.itemType,children:[e,d&&v.jsx(oe.DEPRECATED_Icon,{name:"general-vi-small-white"})]})}}handleClick(o){o.stopPropagation();const{handleClick:e,disabled:i}=this.props;i||e()}render(){const{checked:o,className:e,iconName:i,handleOver:u,handleOut:d,disabled:c}=this.props,y=!1,x=E(e,{[_.checked]:o,[_.noIcon]:!i||y,[_.disabled]:c,[J.styleguideConstants.TEXT_PRIMARY]:o,[J.styleguideConstants.TEXT_SECONDARY_HOVER]:!o&&!c,[J.styleguideConstants.TEXT_SECONDARY]:c});return v.jsx("li",{"data-menu-item":!0,className:x,onClick:this.handleClick.bind(this),onMouseOver:u,onMouseOut:d,children:this.renderMenuItem()})}};Me.defaultProps={className:""};let se=Me;function cr(n,o){const e={};return n.reduce(function(i,u){const d=o(u);return i[d]||(i[d]=[]),i[d].push(u),i},e)}const xe=()=>{},ue=class ue extends ce.Component{constructor(o){super(o),this.handleClick=e=>{if(e.subItems||e.actionableComponent){this.clearTimeout(),this.state.activeSubMenu===e.id?this.closeSubMenu():this.setState({activeSubMenu:e.id});return}else if(e.confirmation&&!e.confirmation.inline){this.clearTimeout(),this.setState({activeSubMenu:e.id});return}const{onItemSelected:i}=this.props;i(e,e.value)},this.handleOver=e=>{this.clearTimeout(),this.setState({isHoverSubMenu:!1});const i=e.subItems||e.actionableComponent?e.id:null;this.timeoutIn=window.setTimeout(()=>{this.setState({activeSubMenu:i})},900)},this.handleOut=e=>{(e.subItems||e.actionableComponent)&&this.state.activeSubMenu&&this.clearTimeout()},this.onSubMenuMouseEnter=()=>{this.clearTimeout(),this.setState({isHoverSubMenu:!0})},this.onSubMenuMouseLeave=()=>{this.setState({isHoverSubMenu:!1})},this.closeSubMenu=()=>{this.setState({activeSubMenu:null})},this.onConfirm=e=>{const{onItemSelected:i}=this.props;this.closeSubMenu(),i(e)},this.renderMenuItem=e=>{const{onItemSelected:i,onRequestClose:u,level:d,classNameTooltip:c,zIndex:y,className:x}=this.props;let f=E(_[e.type],{[_.isDrill]:e.subItems,[_.separator]:e.separator,fakeHover:e.checked,[_.groupHeader]:e.groupTitle});const O=k=>{const b=E(e.iconClass,_.icon);return v.jsx(se,{className:k,checked:e.checked,dataTestId:e.dataTestId,disabled:e.disabled,type:e.type,caption:e.caption,subCaption:e.subCaption,tooltip:e.tooltip,classNameTooltip:c,iconName:e.iconName,iconClass:b,isDrill:!!e.subItems||!!e.actionableComponent,level:d,selected:e.selected,handleClick:()=>this.handleClick(e),handleOver:()=>this.handleOver(e),handleOut:()=>this.handleOut(e)},e.id)};let I=e.subItems;if(I){const k=this.state.activeSubMenu===e.id;let b=this.handleClick;f=E(f,{fakeHover:k&&this.state.isHoverSubMenu}),e.value!==void 0&&(I=I.map(function(W){return{...W,checked:W.value===e.value}}),b=W=>i(e,W.value));const w=()=>v.jsx(ue,{items:I||[],className:x,onItemSelected:b,onMouseEnter:this.onSubMenuMouseEnter,scrollbarProps:{className:e.subItemScrollbarClassName},level:(d||0)+1,zIndex:(y||1)+1});return v.jsx(Se.Popover,{visible:k,level:1,mask:!1,trigger:[],placement:"rightTop",align:{offset:[0,0]},overlay:w,onRequestClose:u,zIndex:(y||1)+1,children:O(f)},e.id)}else if(e.actionableComponent){const{componentProps:k}=e.actionableComponent,b=e.actionableComponent.component,w=this.state.activeSubMenu===e.id,W=()=>v.jsx(b,{...k,onRequestClose:u});return v.jsx(Se.Popover,{visible:w,level:1,mask:!1,trigger:[],placement:"rightTop",align:{offset:[10,0]},overlay:W,onRequestClose:u,children:O(f)},e.id)}else if(e.confirmation&&!e.confirmation.inline){const k=e.confirmation,b=this.state.activeSubMenu===e.id,w=()=>v.jsx(Pt,{title:k.title,message:k.message,onCancel:this.closeSubMenu,onConfirm:()=>this.onConfirm(e)});return v.jsx(Se.Popover,{visible:b,level:1,mask:!0,trigger:[],placement:"rightBottom",align:{offset:[10,0]},overlay:w,onRequestClose:this.closeSubMenu,children:O(f)},e.id)}return O(f)},this.state={activeSubMenu:null,isHoverSubMenu:!1},this.timeoutIn=null}componentWillUnmount(){this.clearTimeout()}clearTimeout(){this.timeoutIn&&(clearTimeout(this.timeoutIn),this.timeoutIn=null)}getSeparateGroups(o){const e=cr(o,d=>d.groupId||""),i=Object.values(e);return i.slice(1).forEach(d=>d[0].separator=!0),i}render(){const{items:o,className:e,onMouseEnter:i,scrollbarProps:{className:u,...d},width:c,isLoading:y}=this.props;let x=o.filter(b=>!b.hidden);x=x.map((b,w)=>(b.separator&&!x[w-1]&&(b.separator=!1),b));const f=E(_.container,e),O=E(_.scrollbar,u),I=c?{width:`${c}px`,minWidth:"inherit"}:{},k=y?_.loader:"";return v.jsx("div",{className:f,onMouseEnter:i,style:I,children:v.jsxs(Le.Scrollbars,{className:O,...d,hideTracksWhenNotNeeded:!0,children:[this.getSeparateGroups(x).map((b,w)=>v.jsx("div",{className:_.separateGroup,children:b.map(this.renderMenuItem)},w)),v.jsx("div",{className:k,children:v.jsx(Ge.LazyLoader,{isLoading:y})})]})})}};ue.defaultProps={onMouseEnter:xe,onRequestClose:xe,scrollbarProps:{},level:0,isLoading:!1,zIndex:1};let He=ue;exports.Menu=He;exports.MenuItem=se;exports.itemTypes=ee;
@@ -3,12 +3,12 @@ import D from "classnames";
3
3
  import Le, { Component as ze } from "react";
4
4
  import { c as Ve, p as Ze } from "./index-D0lMis-I.js";
5
5
  import { L as Qe } from "./LazyLoader-DB86QSSx.js";
6
- import { P as _e } from "./Popover-CiYeL2VE.js";
6
+ import { P as _e } from "./Popover-KR_Rc69g.js";
7
7
  import { s as K } from "./styleguideConstants-D4Yls16w.js";
8
8
  import { D as Je } from "./DEPRECATED_Checkbox-Be1l_Vce.js";
9
9
  import { D as oe } from "./DEPRECATED_Icon-Bgufd-9Q.js";
10
10
  import { D as Ke } from "./DEPRECATED_Toggle-DMnlQO3F.js";
11
- import { D as et } from "./DEPRECATED_Tooltip-C2bU8ipb.js";
11
+ import { D as et } from "./DEPRECATED_Tooltip-C3s_235Q.js";
12
12
  import { R as tt } from "./RadioButton-BpAksn2s.js";
13
13
  var Ie = {}, Oe = {}, ce = { exports: {} }, ee = { exports: {} };
14
14
  (function() {
@@ -1 +1 @@
1
- "use strict";const t=require("react/jsx-runtime"),m=require("classnames"),d=require("react-dom"),E=require("./DEPRECATED_Tooltip-D3ReAkFF.cjs"),k="Popover-module__popover___39yjG",P="Popover-module__popoverMask___4ZLl9",l={popover:k,popoverMask:P},x=()=>{},C=1069,D=e=>{const{bubbleMouseEvents:i=!1,level:n=0,mask:c=!0,onRequestClose:r=x,visible:p=!1,zIndex:s=C,maskClassName:v,getTooltipContainer:a}=e,u=()=>{let o=document.body;return a&&(o=a()),o},_=o=>{i||(o.preventDefault(),o.stopPropagation())};return t.jsxs(t.Fragment,{children:[p&&c&&t.jsx(g,{portalRootEl:u(),children:t.jsx("div",{className:m(l.popoverMask,v),style:{zIndex:(s+n).toString()},onClick:o=>r==null?void 0:r(o.nativeEvent)})}),t.jsx(E.DEPRECATED_Tooltip,{...e,overlayClassName:l.popover,hideArrow:!0,onClick:_,zIndex:s+n+1,align:e.align})]})},g=e=>d.createPortal(e.children,e.portalRootEl);exports.Popover=D;
1
+ "use strict";const t=require("react/jsx-runtime"),m=require("classnames"),d=require("react-dom"),E=require("./DEPRECATED_Tooltip-DL3MmzWZ.cjs"),k="Popover-module__popover___39yjG",P="Popover-module__popoverMask___4ZLl9",l={popover:k,popoverMask:P},x=()=>{},C=1069,D=e=>{const{bubbleMouseEvents:i=!1,level:n=0,mask:c=!0,onRequestClose:r=x,visible:p=!1,zIndex:s=C,maskClassName:v,getTooltipContainer:a}=e,u=()=>{let o=document.body;return a&&(o=a()),o},_=o=>{i||(o.preventDefault(),o.stopPropagation())};return t.jsxs(t.Fragment,{children:[p&&c&&t.jsx(g,{portalRootEl:u(),children:t.jsx("div",{className:m(l.popoverMask,v),style:{zIndex:(s+n).toString()},onClick:o=>r==null?void 0:r(o.nativeEvent)})}),t.jsx(E.DEPRECATED_Tooltip,{...e,overlayClassName:l.popover,hideArrow:!0,onClick:_,zIndex:s+n+1,align:e.align})]})},g=e=>d.createPortal(e.children,e.portalRootEl);exports.Popover=D;
@@ -1,7 +1,7 @@
1
1
  import { jsxs as d, Fragment as u, jsx as r } from "react/jsx-runtime";
2
2
  import f from "classnames";
3
3
  import k from "react-dom";
4
- import { D as E } from "./DEPRECATED_Tooltip-C2bU8ipb.js";
4
+ import { D as E } from "./DEPRECATED_Tooltip-C3s_235Q.js";
5
5
  const P = "Popover-module__popover___39yjG", g = "Popover-module__popoverMask___4ZLl9", l = {
6
6
  popover: P,
7
7
  popoverMask: g
@@ -0,0 +1 @@
1
+ "use strict";const S=require("react"),t=require("./index-B-zZeebW.cjs"),M=require("./emotion-cache-provider-XZE1SDsY.cjs"),ce=require("./useTheme-Dn8Us9iT.cjs"),le=require("react/jsx-runtime"),y=require("./TransitionGroupContext-CJJeIdck.cjs"),C=require("react-dom");function z(o){const a=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(o){for(const s in o)if(s!=="default"){const i=Object.getOwnPropertyDescriptor(o,s);Object.defineProperty(a,s,i.get?i:{enumerable:!0,get:()=>o[s]})}}return a.default=o,Object.freeze(a)}const l=z(S),fe=z(C);function de(o){const{prototype:a={}}=o;return!!a.isReactComponent}function B(o,a,s,i,n){const e=o[a],r=n||a;if(e==null||typeof window>"u")return null;let p;const c=e.type;return typeof c=="function"&&!de(c)&&(p="Did you accidentally use a plain function component for an element instead?"),p!==void 0?new Error(`Invalid ${i} \`${r}\` supplied to \`${s}\`. Expected an element that can hold a ref. ${p} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const F=y.chainPropTypes(t.PropTypes.element,B);F.isRequired=y.chainPropTypes(t.PropTypes.element.isRequired,B);function K(o,a,s,i,n){if(process.env.NODE_ENV==="production")return null;const e=o[a],r=n||a;return e==null?null:e&&e.nodeType!==1?new Error(`Invalid ${i} \`${r}\` supplied to \`${s}\`. Expected an HTMLElement.`):null}function Ee(o){return o&&o.ownerDocument||document}function W(o,a){typeof o=="function"?o(a):o&&(o.current=a)}function U(o){var a;return parseInt(l.version,10)>=19?((a=o==null?void 0:o.props)==null?void 0:a.ref)||null:(o==null?void 0:o.ref)||null}function J(){const o=ce.useTheme(M.defaultTheme);return process.env.NODE_ENV!=="production"&&l.useDebugValue(o),o[M.THEME_ID]||o}const X={disabled:!1};var Te=process.env.NODE_ENV!=="production"?t.PropTypes.oneOfType([t.PropTypes.number,t.PropTypes.shape({enter:t.PropTypes.number,exit:t.PropTypes.number,appear:t.PropTypes.number}).isRequired]):null;process.env.NODE_ENV!=="production"&&t.PropTypes.oneOfType([t.PropTypes.string,t.PropTypes.shape({enter:t.PropTypes.string,exit:t.PropTypes.string,active:t.PropTypes.string}),t.PropTypes.shape({enter:t.PropTypes.string,enterDone:t.PropTypes.string,enterActive:t.PropTypes.string,exit:t.PropTypes.string,exitDone:t.PropTypes.string,exitActive:t.PropTypes.string})]);var ye=function(a){return a.scrollTop},w="unmounted",P="exited",g="entering",R="entered",G="exiting",E=function(o){y._inheritsLoose(a,o);function a(i,n){var e;e=o.call(this,i,n)||this;var r=n,p=r&&!r.isMounting?i.enter:i.appear,c;return e.appearStatus=null,i.in?p?(c=P,e.appearStatus=g):c=R:i.unmountOnExit||i.mountOnEnter?c=w:c=P,e.state={status:c},e.nextCallback=null,e}a.getDerivedStateFromProps=function(n,e){var r=n.in;return r&&e.status===w?{status:P}:null};var s=a.prototype;return s.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},s.componentDidUpdate=function(n){var e=null;if(n!==this.props){var r=this.state.status;this.props.in?r!==g&&r!==R&&(e=g):(r===g||r===R)&&(e=G)}this.updateStatus(!1,e)},s.componentWillUnmount=function(){this.cancelNextCallback()},s.getTimeouts=function(){var n=this.props.timeout,e,r,p;return e=r=p=n,n!=null&&typeof n!="number"&&(e=n.exit,r=n.enter,p=n.appear!==void 0?n.appear:r),{exit:e,enter:r,appear:p}},s.updateStatus=function(n,e){if(n===void 0&&(n=!1),e!==null)if(this.cancelNextCallback(),e===g){if(this.props.unmountOnExit||this.props.mountOnEnter){var r=this.props.nodeRef?this.props.nodeRef.current:C.findDOMNode(this);r&&ye(r)}this.performEnter(n)}else this.performExit();else this.props.unmountOnExit&&this.state.status===P&&this.setState({status:w})},s.performEnter=function(n){var e=this,r=this.props.enter,p=this.context?this.context.isMounting:n,c=this.props.nodeRef?[p]:[C.findDOMNode(this),p],f=c[0],m=c[1],O=this.getTimeouts(),I=p?O.appear:O.enter;if(!n&&!r||X.disabled){this.safeSetState({status:R},function(){e.props.onEntered(f)});return}this.props.onEnter(f,m),this.safeSetState({status:g},function(){e.props.onEntering(f,m),e.onTransitionEnd(I,function(){e.safeSetState({status:R},function(){e.props.onEntered(f,m)})})})},s.performExit=function(){var n=this,e=this.props.exit,r=this.getTimeouts(),p=this.props.nodeRef?void 0:C.findDOMNode(this);if(!e||X.disabled){this.safeSetState({status:P},function(){n.props.onExited(p)});return}this.props.onExit(p),this.safeSetState({status:G},function(){n.props.onExiting(p),n.onTransitionEnd(r.exit,function(){n.safeSetState({status:P},function(){n.props.onExited(p)})})})},s.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},s.safeSetState=function(n,e){e=this.setNextCallback(e),this.setState(n,e)},s.setNextCallback=function(n){var e=this,r=!0;return this.nextCallback=function(p){r&&(r=!1,e.nextCallback=null,n(p))},this.nextCallback.cancel=function(){r=!1},this.nextCallback},s.onTransitionEnd=function(n,e){this.setNextCallback(e);var r=this.props.nodeRef?this.props.nodeRef.current:C.findDOMNode(this),p=n==null&&!this.props.addEndListener;if(!r||p){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var c=this.props.nodeRef?[this.nextCallback]:[r,this.nextCallback],f=c[0],m=c[1];this.props.addEndListener(f,m)}n!=null&&setTimeout(this.nextCallback,n)},s.render=function(){var n=this.state.status;if(n===w)return null;var e=this.props,r=e.children;e.in,e.mountOnEnter,e.unmountOnExit,e.appear,e.enter,e.exit,e.timeout,e.addEndListener,e.onEnter,e.onEntering,e.onEntered,e.onExit,e.onExiting,e.onExited,e.nodeRef;var p=y._objectWithoutPropertiesLoose(e,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return S.createElement(y.TransitionGroupContext.Provider,{value:null},typeof r=="function"?r(n,p):S.cloneElement(S.Children.only(r),p))},a}(S.Component);E.contextType=y.TransitionGroupContext;E.propTypes=process.env.NODE_ENV!=="production"?{nodeRef:t.PropTypes.shape({current:typeof Element>"u"?t.PropTypes.any:function(o,a,s,i,n,e){var r=o[a];return t.PropTypes.instanceOf(r&&"ownerDocument"in r?r.ownerDocument.defaultView.Element:Element)(o,a,s,i,n,e)}}),children:t.PropTypes.oneOfType([t.PropTypes.func.isRequired,t.PropTypes.element.isRequired]).isRequired,in:t.PropTypes.bool,mountOnEnter:t.PropTypes.bool,unmountOnExit:t.PropTypes.bool,appear:t.PropTypes.bool,enter:t.PropTypes.bool,exit:t.PropTypes.bool,timeout:function(a){var s=Te;a.addEndListener||(s=s.isRequired);for(var i=arguments.length,n=new Array(i>1?i-1:0),e=1;e<i;e++)n[e-1]=arguments[e];return s.apply(void 0,[a].concat(n))},addEndListener:t.PropTypes.func,onEnter:t.PropTypes.func,onEntering:t.PropTypes.func,onEntered:t.PropTypes.func,onExit:t.PropTypes.func,onExiting:t.PropTypes.func,onExited:t.PropTypes.func}:{};function D(){}E.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:D,onEntering:D,onEntered:D,onExit:D,onExiting:D,onExited:D};E.UNMOUNTED=w;E.EXITED=P;E.ENTERING=g;E.ENTERED=R;E.EXITING=G;const Q=o=>o.scrollTop;function H(o,a){const{timeout:s,easing:i,style:n={}}=o;return{duration:n.transitionDuration??(typeof s=="number"?s:s[a.mode]||0),easing:n.transitionTimingFunction??(typeof i=="object"?i[a.mode]:i),delay:n.transitionDelay}}function $(o){return`scale(${o}, ${o**2})`}const me={entering:{opacity:1,transform:$(1)},entered:{opacity:1,transform:"none"}},A=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),k=l.forwardRef(function(a,s){const{addEndListener:i,appear:n=!0,children:e,easing:r,in:p,onEnter:c,onEntered:f,onEntering:m,onExit:O,onExited:I,onExiting:Y,style:V,timeout:h="auto",TransitionComponent:Z=E,...ee}=a,te=y.useTimeout(),j=l.useRef(),v=J(),L=l.useRef(null),ne=y.useForkRef(L,U(e),s),b=u=>x=>{if(u){const d=L.current;x===void 0?u(d):u(d,x)}},oe=b(m),re=b((u,x)=>{Q(u);const{duration:d,delay:_,easing:T}=H({style:V,timeout:h,easing:r},{mode:"enter"});let N;h==="auto"?(N=v.transitions.getAutoHeightDuration(u.clientHeight),j.current=N):N=d,u.style.transition=[v.transitions.create("opacity",{duration:N,delay:_}),v.transitions.create("transform",{duration:A?N:N*.666,delay:_,easing:T})].join(","),c&&c(u,x)}),ie=b(f),se=b(Y),ae=b(u=>{const{duration:x,delay:d,easing:_}=H({style:V,timeout:h,easing:r},{mode:"exit"});let T;h==="auto"?(T=v.transitions.getAutoHeightDuration(u.clientHeight),j.current=T):T=x,u.style.transition=[v.transitions.create("opacity",{duration:T,delay:d}),v.transitions.create("transform",{duration:A?T:T*.666,delay:A?d:d||T*.333,easing:_})].join(","),u.style.opacity=0,u.style.transform=$(.75),O&&O(u)}),pe=b(I),ue=u=>{h==="auto"&&te.start(j.current||0,u),i&&i(L.current,u)};return le.jsx(Z,{appear:n,in:p,nodeRef:L,onEnter:re,onEntered:ie,onEntering:oe,onExit:ae,onExited:pe,onExiting:se,addEndListener:ue,timeout:h==="auto"?null:h,...ee,children:(u,{ownerState:x,...d})=>l.cloneElement(e,{style:{opacity:0,transform:$(.75),visibility:u==="exited"&&!p?"hidden":void 0,...me[u],...V,...e.props.style},ref:ne,...d})})});process.env.NODE_ENV!=="production"&&(k.propTypes={addEndListener:t.PropTypes.func,appear:t.PropTypes.bool,children:F.isRequired,easing:t.PropTypes.oneOfType([t.PropTypes.shape({enter:t.PropTypes.string,exit:t.PropTypes.string}),t.PropTypes.string]),in:t.PropTypes.bool,onEnter:t.PropTypes.func,onEntered:t.PropTypes.func,onEntering:t.PropTypes.func,onExit:t.PropTypes.func,onExited:t.PropTypes.func,onExiting:t.PropTypes.func,style:t.PropTypes.object,timeout:t.PropTypes.oneOfType([t.PropTypes.oneOf(["auto"]),t.PropTypes.number,t.PropTypes.shape({appear:t.PropTypes.number,enter:t.PropTypes.number,exit:t.PropTypes.number})])});k&&(k.muiSupportAuto=!0);function he(o){return typeof o=="function"?o():o}const q=l.forwardRef(function(a,s){const{children:i,container:n,disablePortal:e=!1}=a,[r,p]=l.useState(null),c=y.useForkRef(l.isValidElement(i)?U(i):null,s);if(M.useEnhancedEffect(()=>{e||p(he(n)||document.body)},[n,e]),M.useEnhancedEffect(()=>{if(r&&!e)return W(s,r),()=>{W(s,null)}},[s,r,e]),e){if(l.isValidElement(i)){const f={ref:c};return l.cloneElement(i,f)}return i}return r&&fe.createPortal(i,r)});process.env.NODE_ENV!=="production"&&(q.propTypes={children:t.PropTypes.node,container:t.PropTypes.oneOfType([K,t.PropTypes.func]),disablePortal:t.PropTypes.bool});process.env.NODE_ENV!=="production"&&(q.propTypes=M.exactProp(q.propTypes));exports.Grow=k;exports.HTMLElementType=K;exports.Portal=q;exports.Transition=E;exports.elementAcceptingRef=F;exports.getReactElementRef=U;exports.getTransitionProps=H;exports.ownerDocument=Ee;exports.reflow=Q;exports.useTheme=J;