@ck-ui/component-library 0.1.4 → 0.2.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 (387) hide show
  1. package/README.md +152 -0
  2. package/dist/DropdownFooter-De6BYlLK.js +77 -0
  3. package/dist/Grow-Bsrwqfek.js +5468 -0
  4. package/dist/IconSlot-CbpGCbaA.js +32 -0
  5. package/dist/MenuItem-DlaRT10y.js +139 -0
  6. package/dist/assets/DropdownFooter-C7Cml53c.css +1 -0
  7. package/dist/assets/IconSlot-Ct_SZh2X.css +1 -0
  8. package/dist/assets/ReactToastify-GNLSjkBZ.css +1 -0
  9. package/dist/assets/ToastContent-DpF5zCks.css +1 -0
  10. package/dist/assets/index-0R9p-l95.css +1 -0
  11. package/dist/assets/index-BD0OawaZ.css +1 -0
  12. package/dist/assets/index-BOXxnraF.css +1 -0
  13. package/dist/assets/index-BbJZjGLb.css +1 -0
  14. package/dist/assets/index-BgFw4AMY.css +1 -0
  15. package/dist/assets/index-Bo4Tx8px.css +1 -0
  16. package/dist/assets/index-BpRKr5z7.css +1 -0
  17. package/dist/assets/index-Bu-eyi44.css +1 -0
  18. package/dist/assets/index-CNGtOMLm.css +1 -0
  19. package/dist/assets/index-CaWXKQ7j.css +1 -0
  20. package/dist/assets/index-D2HelNRV.css +1 -0
  21. package/dist/assets/index-DAtOlGx5.css +1 -0
  22. package/dist/assets/index-DDdi2wxl.css +1 -0
  23. package/dist/assets/index-DewFIgpp.css +1 -0
  24. package/dist/assets/index-Dudb2XKF.css +1 -0
  25. package/dist/assets/index-w7AdSPwF.css +1 -0
  26. package/dist/assets/main-3OqLSdPm.css +1 -0
  27. package/dist/assets/styles-BS1nwHmS.css +1 -0
  28. package/dist/assets/styles-C5uYY4fL.css +1 -0
  29. package/dist/assets/styles-CGTFG68B.css +1 -0
  30. package/dist/assets/styles-CwEfypOd.css +1 -0
  31. package/dist/assets/styles-DAFhOzfn.css +1 -0
  32. package/dist/assets/theme-gJHYUL9y.css +1 -0
  33. package/dist/cancel-BAgTEOGD.js +7 -0
  34. package/dist/chevron-down-Cm9R64Fe.js +5 -0
  35. package/dist/clsx-OuTLNxxd.js +16 -0
  36. package/dist/components/Avatar/_types/avatar.types.d.ts +15 -0
  37. package/dist/components/Avatar/_types/avatar.types.d.ts.map +1 -0
  38. package/dist/components/Avatar/_types/avatar.types.js +12 -0
  39. package/dist/components/Avatar/_utils/avatar.utils.d.ts +4 -0
  40. package/dist/components/Avatar/_utils/avatar.utils.d.ts.map +1 -0
  41. package/dist/components/Avatar/_utils/avatar.utils.js +20 -0
  42. package/dist/components/Avatar/index.d.ts +6 -0
  43. package/dist/components/Avatar/index.d.ts.map +1 -0
  44. package/dist/components/Avatar/index.js +45 -0
  45. package/dist/components/Breadcrumb/_helpers/Breadcrumb.d.ts +3 -0
  46. package/dist/components/Breadcrumb/_helpers/Breadcrumb.d.ts.map +1 -0
  47. package/dist/components/Breadcrumb/_helpers/Breadcrumb.js +70 -0
  48. package/dist/components/Breadcrumb/_helpers/DefaultLink.d.ts +3 -0
  49. package/dist/components/Breadcrumb/_helpers/DefaultLink.d.ts.map +1 -0
  50. package/dist/components/Breadcrumb/_helpers/DefaultLink.js +23 -0
  51. package/dist/components/Breadcrumb/_types/breadcrumb.types.d.ts +47 -0
  52. package/dist/components/Breadcrumb/_types/breadcrumb.types.d.ts.map +1 -0
  53. package/dist/components/Breadcrumb/_types/breadcrumb.types.js +1 -0
  54. package/dist/components/Breadcrumb/_utils/handleOutsideClick.d.ts +2 -0
  55. package/dist/components/Breadcrumb/_utils/handleOutsideClick.d.ts.map +1 -0
  56. package/dist/components/Breadcrumb/_utils/handleOutsideClick.js +11 -0
  57. package/dist/components/Breadcrumb/_utils/navigateHandler.d.ts +3 -0
  58. package/dist/components/Breadcrumb/_utils/navigateHandler.d.ts.map +1 -0
  59. package/dist/components/Breadcrumb/_utils/navigateHandler.js +6 -0
  60. package/dist/components/Breadcrumb/_utils/truncatedLabel.d.ts +2 -0
  61. package/dist/components/Breadcrumb/_utils/truncatedLabel.d.ts.map +1 -0
  62. package/dist/components/Breadcrumb/_utils/truncatedLabel.js +4 -0
  63. package/dist/components/Breadcrumb/index.d.ts +4 -0
  64. package/dist/components/Breadcrumb/index.d.ts.map +1 -0
  65. package/dist/components/Breadcrumb/index.js +86 -0
  66. package/dist/components/Button/index.js +1 -1
  67. package/dist/components/CKButton/_helper/ComboLayout.d.ts +13 -0
  68. package/dist/components/CKButton/_helper/ComboLayout.d.ts.map +1 -0
  69. package/dist/components/CKButton/_helper/ComboLayout.js +30 -0
  70. package/dist/components/CKButton/_helper/IconSlot.d.ts +7 -0
  71. package/dist/components/CKButton/_helper/IconSlot.d.ts.map +1 -0
  72. package/dist/components/CKButton/_helper/IconSlot.js +5 -0
  73. package/dist/components/CKButton/_helper/StandardLayout.d.ts +9 -0
  74. package/dist/components/CKButton/_helper/StandardLayout.d.ts.map +1 -0
  75. package/dist/components/CKButton/_helper/StandardLayout.js +17 -0
  76. package/dist/components/CKButton/_types/button.types.d.ts +26 -0
  77. package/dist/components/CKButton/_types/button.types.d.ts.map +1 -0
  78. package/dist/components/CKButton/_types/button.types.js +1 -0
  79. package/dist/components/CKButton/constants.d.ts +28 -0
  80. package/dist/components/CKButton/constants.d.ts.map +1 -0
  81. package/dist/components/CKButton/constants.js +30 -0
  82. package/dist/components/CKButton/index.d.ts +3 -0
  83. package/dist/components/CKButton/index.d.ts.map +1 -0
  84. package/dist/components/CKButton/index.js +89 -0
  85. package/dist/components/CKCheckbox/_types/type.d.ts +9 -0
  86. package/dist/components/CKCheckbox/_types/type.d.ts.map +1 -0
  87. package/dist/components/CKCheckbox/_types/type.js +1 -0
  88. package/dist/components/CKCheckbox/index.d.ts +3 -0
  89. package/dist/components/CKCheckbox/index.d.ts.map +1 -0
  90. package/dist/components/CKCheckbox/index.js +50 -0
  91. package/dist/components/CKTag/_types/type.d.ts +15 -0
  92. package/dist/components/CKTag/_types/type.d.ts.map +1 -0
  93. package/dist/components/CKTag/_types/type.js +11 -0
  94. package/dist/components/CKTag/index.d.ts +3 -0
  95. package/dist/components/CKTag/index.d.ts.map +1 -0
  96. package/dist/components/CKTag/index.js +41 -0
  97. package/dist/components/CardBox/_types/cardBox.types.d.ts +10 -0
  98. package/dist/components/CardBox/_types/cardBox.types.d.ts.map +1 -0
  99. package/dist/components/CardBox/_types/cardBox.types.js +1 -0
  100. package/dist/components/CardBox/index.d.ts +3 -0
  101. package/dist/components/CardBox/index.d.ts.map +1 -0
  102. package/dist/components/CardBox/index.js +30 -0
  103. package/dist/components/Checkbox/index.js +1 -1
  104. package/dist/components/DeviationTag/_types/type.d.ts +11 -0
  105. package/dist/components/DeviationTag/_types/type.d.ts.map +1 -0
  106. package/dist/components/DeviationTag/_types/type.js +1 -0
  107. package/dist/components/DeviationTag/index.d.ts +3 -0
  108. package/dist/components/DeviationTag/index.d.ts.map +1 -0
  109. package/dist/components/DeviationTag/index.js +61 -0
  110. package/dist/components/EmptyState/_types/emptyState.types.d.ts +17 -0
  111. package/dist/components/EmptyState/_types/emptyState.types.d.ts.map +1 -0
  112. package/dist/components/EmptyState/_types/emptyState.types.js +1 -0
  113. package/dist/components/EmptyState/index.d.ts +3 -0
  114. package/dist/components/EmptyState/index.d.ts.map +1 -0
  115. package/dist/components/EmptyState/index.js +26 -0
  116. package/dist/components/ErrorPage/_types/errorPage.types.d.ts +4 -0
  117. package/dist/components/ErrorPage/_types/errorPage.types.d.ts.map +1 -0
  118. package/dist/components/ErrorPage/_types/errorPage.types.js +1 -0
  119. package/dist/components/ErrorPage/constant/errorConstant.d.ts +12 -0
  120. package/dist/components/ErrorPage/constant/errorConstant.d.ts.map +1 -0
  121. package/dist/components/ErrorPage/constant/errorConstant.js +29 -0
  122. package/dist/components/ErrorPage/index.d.ts +3 -0
  123. package/dist/components/ErrorPage/index.d.ts.map +1 -0
  124. package/dist/components/ErrorPage/index.js +29 -0
  125. package/dist/components/GroupedMultiSelect/_helpers/DropdownFooter.d.ts +4 -0
  126. package/dist/components/GroupedMultiSelect/_helpers/DropdownFooter.d.ts.map +1 -0
  127. package/dist/components/GroupedMultiSelect/_helpers/DropdownFooter.js +53 -0
  128. package/dist/components/GroupedMultiSelect/_helpers/MenuList.d.ts +11 -0
  129. package/dist/components/GroupedMultiSelect/_helpers/MenuList.d.ts.map +1 -0
  130. package/dist/components/GroupedMultiSelect/_helpers/MenuList.js +16 -0
  131. package/dist/components/GroupedMultiSelect/_helpers/OptionRow.d.ts +4 -0
  132. package/dist/components/GroupedMultiSelect/_helpers/OptionRow.d.ts.map +1 -0
  133. package/dist/components/GroupedMultiSelect/_helpers/OptionRow.js +30 -0
  134. package/dist/components/GroupedMultiSelect/_helpers/OptionsList.d.ts +4 -0
  135. package/dist/components/GroupedMultiSelect/_helpers/OptionsList.d.ts.map +1 -0
  136. package/dist/components/GroupedMultiSelect/_helpers/OptionsList.js +61 -0
  137. package/dist/components/GroupedMultiSelect/_helpers/SearchResult.d.ts +4 -0
  138. package/dist/components/GroupedMultiSelect/_helpers/SearchResult.d.ts.map +1 -0
  139. package/dist/components/GroupedMultiSelect/_helpers/SearchResult.js +29 -0
  140. package/dist/components/GroupedMultiSelect/_helpers/TagContent.d.ts +5 -0
  141. package/dist/components/GroupedMultiSelect/_helpers/TagContent.d.ts.map +1 -0
  142. package/dist/components/GroupedMultiSelect/_helpers/TagContent.js +44 -0
  143. package/dist/components/GroupedMultiSelect/_helpers/TriggerButton.d.ts +4 -0
  144. package/dist/components/GroupedMultiSelect/_helpers/TriggerButton.d.ts.map +1 -0
  145. package/dist/components/GroupedMultiSelect/_helpers/TriggerButton.js +64 -0
  146. package/dist/components/GroupedMultiSelect/_types/type.d.ts +106 -0
  147. package/dist/components/GroupedMultiSelect/_types/type.d.ts.map +1 -0
  148. package/dist/components/GroupedMultiSelect/_types/type.js +1 -0
  149. package/dist/components/GroupedMultiSelect/_utils/filterSeachedGroups.d.ts +3 -0
  150. package/dist/components/GroupedMultiSelect/_utils/filterSeachedGroups.d.ts.map +1 -0
  151. package/dist/components/GroupedMultiSelect/_utils/filterSeachedGroups.js +12 -0
  152. package/dist/components/GroupedMultiSelect/_utils/getDefaultSelected.d.ts +6 -0
  153. package/dist/components/GroupedMultiSelect/_utils/getDefaultSelected.d.ts.map +1 -0
  154. package/dist/components/GroupedMultiSelect/_utils/getDefaultSelected.js +8 -0
  155. package/dist/components/GroupedMultiSelect/_utils/getResponsePayload.d.ts +6 -0
  156. package/dist/components/GroupedMultiSelect/_utils/getResponsePayload.d.ts.map +1 -0
  157. package/dist/components/GroupedMultiSelect/_utils/getResponsePayload.js +9 -0
  158. package/dist/components/GroupedMultiSelect/_utils/selectAllOptions.d.ts +6 -0
  159. package/dist/components/GroupedMultiSelect/_utils/selectAllOptions.d.ts.map +1 -0
  160. package/dist/components/GroupedMultiSelect/_utils/selectAllOptions.js +8 -0
  161. package/dist/components/GroupedMultiSelect/data.d.ts +16 -0
  162. package/dist/components/GroupedMultiSelect/data.d.ts.map +1 -0
  163. package/dist/components/GroupedMultiSelect/data.js +45 -0
  164. package/dist/components/GroupedMultiSelect/index.d.ts +4 -0
  165. package/dist/components/GroupedMultiSelect/index.d.ts.map +1 -0
  166. package/dist/components/GroupedMultiSelect/index.js +166 -0
  167. package/dist/components/GroupedSingleSelect/_helpers/DropdownFooter.d.ts +4 -0
  168. package/dist/components/GroupedSingleSelect/_helpers/DropdownFooter.d.ts.map +1 -0
  169. package/dist/components/GroupedSingleSelect/_helpers/DropdownFooter.js +53 -0
  170. package/dist/components/GroupedSingleSelect/_helpers/OptionRow.d.ts +4 -0
  171. package/dist/components/GroupedSingleSelect/_helpers/OptionRow.d.ts.map +1 -0
  172. package/dist/components/GroupedSingleSelect/_helpers/OptionRow.js +30 -0
  173. package/dist/components/GroupedSingleSelect/_helpers/OptionsList.d.ts +4 -0
  174. package/dist/components/GroupedSingleSelect/_helpers/OptionsList.d.ts.map +1 -0
  175. package/dist/components/GroupedSingleSelect/_helpers/OptionsList.js +44 -0
  176. package/dist/components/GroupedSingleSelect/_helpers/TriggerButton.d.ts +4 -0
  177. package/dist/components/GroupedSingleSelect/_helpers/TriggerButton.d.ts.map +1 -0
  178. package/dist/components/GroupedSingleSelect/_helpers/TriggerButton.js +59 -0
  179. package/dist/components/GroupedSingleSelect/_types/type.d.ts +77 -0
  180. package/dist/components/GroupedSingleSelect/_types/type.d.ts.map +1 -0
  181. package/dist/components/GroupedSingleSelect/_types/type.js +1 -0
  182. package/dist/components/GroupedSingleSelect/_utils/filterSeachedGroups.d.ts +3 -0
  183. package/dist/components/GroupedSingleSelect/_utils/filterSeachedGroups.d.ts.map +1 -0
  184. package/dist/components/GroupedSingleSelect/_utils/filterSeachedGroups.js +12 -0
  185. package/dist/components/GroupedSingleSelect/_utils/getDefaultSelected.d.ts +6 -0
  186. package/dist/components/GroupedSingleSelect/_utils/getDefaultSelected.d.ts.map +1 -0
  187. package/dist/components/GroupedSingleSelect/_utils/getDefaultSelected.js +11 -0
  188. package/dist/components/GroupedSingleSelect/data.d.ts +8 -0
  189. package/dist/components/GroupedSingleSelect/data.d.ts.map +1 -0
  190. package/dist/components/GroupedSingleSelect/data.js +29 -0
  191. package/dist/components/GroupedSingleSelect/index.d.ts +4 -0
  192. package/dist/components/GroupedSingleSelect/index.d.ts.map +1 -0
  193. package/dist/components/GroupedSingleSelect/index.js +128 -0
  194. package/dist/components/IconButton/_types/iconButton.type.d.ts +18 -0
  195. package/dist/components/IconButton/_types/iconButton.type.d.ts.map +1 -0
  196. package/dist/components/IconButton/_types/iconButton.type.js +1 -0
  197. package/dist/components/IconButton/index.d.ts +3 -0
  198. package/dist/components/IconButton/index.d.ts.map +1 -0
  199. package/dist/components/IconButton/index.js +59 -0
  200. package/dist/components/Input/index.js +8 -6
  201. package/dist/components/MenuOptions/MenuOptionsWrapper.d.ts +6 -0
  202. package/dist/components/MenuOptions/MenuOptionsWrapper.d.ts.map +1 -0
  203. package/dist/components/MenuOptions/MenuOptionsWrapper.js +19 -0
  204. package/dist/components/MenuOptions/_helpers/MenuItem.d.ts +3 -0
  205. package/dist/components/MenuOptions/_helpers/MenuItem.d.ts.map +1 -0
  206. package/dist/components/MenuOptions/_helpers/MenuItem.js +13 -0
  207. package/dist/components/MenuOptions/_helpers/RadioMenuItem.d.ts +3 -0
  208. package/dist/components/MenuOptions/_helpers/RadioMenuItem.d.ts.map +1 -0
  209. package/dist/components/MenuOptions/_helpers/RadioMenuItem.js +46 -0
  210. package/dist/components/MenuOptions/_helpers/SubMenu.d.ts +21 -0
  211. package/dist/components/MenuOptions/_helpers/SubMenu.d.ts.map +1 -0
  212. package/dist/components/MenuOptions/_helpers/SubMenu.js +6 -0
  213. package/dist/components/MenuOptions/_types/menuOptions.types.d.ts +55 -0
  214. package/dist/components/MenuOptions/_types/menuOptions.types.d.ts.map +1 -0
  215. package/dist/components/MenuOptions/_types/menuOptions.types.js +1 -0
  216. package/dist/components/MenuOptions/_utils/computeMenuPosition.d.ts +12 -0
  217. package/dist/components/MenuOptions/_utils/computeMenuPosition.d.ts.map +1 -0
  218. package/dist/components/MenuOptions/_utils/computeMenuPosition.js +14 -0
  219. package/dist/components/MenuOptions/_utils/computeSubmenuPosition.d.ts +12 -0
  220. package/dist/components/MenuOptions/_utils/computeSubmenuPosition.d.ts.map +1 -0
  221. package/dist/components/MenuOptions/_utils/computeSubmenuPosition.js +8 -0
  222. package/dist/components/MenuOptions/_utils/filterMenuCategories.d.ts +9 -0
  223. package/dist/components/MenuOptions/_utils/filterMenuCategories.d.ts.map +1 -0
  224. package/dist/components/MenuOptions/_utils/filterMenuCategories.js +13 -0
  225. package/dist/components/MenuOptions/_utils/getIconStrokeColor.d.ts +6 -0
  226. package/dist/components/MenuOptions/_utils/getIconStrokeColor.d.ts.map +1 -0
  227. package/dist/components/MenuOptions/_utils/getIconStrokeColor.js +6 -0
  228. package/dist/components/MenuOptions/_utils/getMenuItemActiveState.d.ts +11 -0
  229. package/dist/components/MenuOptions/_utils/getMenuItemActiveState.d.ts.map +1 -0
  230. package/dist/components/MenuOptions/_utils/getMenuItemActiveState.js +6 -0
  231. package/dist/components/MenuOptions/index.d.ts +5 -0
  232. package/dist/components/MenuOptions/index.d.ts.map +1 -0
  233. package/dist/components/MenuOptions/index.js +122 -0
  234. package/dist/components/MetricCards/Component/CardWithIconAndForecast/index.d.ts +3 -0
  235. package/dist/components/MetricCards/Component/CardWithIconAndForecast/index.d.ts.map +1 -0
  236. package/dist/components/MetricCards/Component/CardWithIconAndForecast/index.js +71 -0
  237. package/dist/components/MetricCards/Constant/constant.d.ts +13 -0
  238. package/dist/components/MetricCards/Constant/constant.d.ts.map +1 -0
  239. package/dist/components/MetricCards/Constant/constant.js +15 -0
  240. package/dist/components/MetricCards/_types/metricCards.types.d.ts +38 -0
  241. package/dist/components/MetricCards/_types/metricCards.types.d.ts.map +1 -0
  242. package/dist/components/MetricCards/_types/metricCards.types.js +1 -0
  243. package/dist/components/MetricCards/index.d.ts +4 -0
  244. package/dist/components/MetricCards/index.d.ts.map +1 -0
  245. package/dist/components/MetricCards/index.js +31 -0
  246. package/dist/components/PopupAndDialogBox/_types/popupAndDialog.types.d.ts +31 -0
  247. package/dist/components/PopupAndDialogBox/_types/popupAndDialog.types.d.ts.map +1 -0
  248. package/dist/components/PopupAndDialogBox/_types/popupAndDialog.types.js +1 -0
  249. package/dist/components/PopupAndDialogBox/components/DialogContent.d.ts +5 -0
  250. package/dist/components/PopupAndDialogBox/components/DialogContent.d.ts.map +1 -0
  251. package/dist/components/PopupAndDialogBox/components/DialogContent.js +9 -0
  252. package/dist/components/PopupAndDialogBox/components/DialogFooter.d.ts +4 -0
  253. package/dist/components/PopupAndDialogBox/components/DialogFooter.d.ts.map +1 -0
  254. package/dist/components/PopupAndDialogBox/components/DialogFooter.js +49 -0
  255. package/dist/components/PopupAndDialogBox/components/DialogHeader.d.ts +4 -0
  256. package/dist/components/PopupAndDialogBox/components/DialogHeader.d.ts.map +1 -0
  257. package/dist/components/PopupAndDialogBox/components/DialogHeader.js +23 -0
  258. package/dist/components/PopupAndDialogBox/constant/popupAndDialog.d.ts +14 -0
  259. package/dist/components/PopupAndDialogBox/constant/popupAndDialog.d.ts.map +1 -0
  260. package/dist/components/PopupAndDialogBox/constant/popupAndDialog.js +17 -0
  261. package/dist/components/PopupAndDialogBox/index.d.ts +5 -0
  262. package/dist/components/PopupAndDialogBox/index.d.ts.map +1 -0
  263. package/dist/components/PopupAndDialogBox/index.js +36 -0
  264. package/dist/components/RadioButton/_types/radioButton.types.d.ts +10 -0
  265. package/dist/components/RadioButton/_types/radioButton.types.d.ts.map +1 -0
  266. package/dist/components/RadioButton/_types/radioButton.types.js +1 -0
  267. package/dist/components/RadioButton/index.d.ts +3 -0
  268. package/dist/components/RadioButton/index.d.ts.map +1 -0
  269. package/dist/components/RadioButton/index.js +53 -0
  270. package/dist/components/Search/_types/search.types.d.ts +19 -0
  271. package/dist/components/Search/_types/search.types.d.ts.map +1 -0
  272. package/dist/components/Search/_types/search.types.js +1 -0
  273. package/dist/components/Search/index.d.ts +3 -0
  274. package/dist/components/Search/index.d.ts.map +1 -0
  275. package/dist/components/Search/index.js +95 -0
  276. package/dist/components/SingleSelectDropdown/_helpers/DropdownFooter.d.ts +10 -0
  277. package/dist/components/SingleSelectDropdown/_helpers/DropdownFooter.d.ts.map +1 -0
  278. package/dist/components/SingleSelectDropdown/_helpers/DropdownFooter.js +16 -0
  279. package/dist/components/SingleSelectDropdown/_types/singleSelectDropdown.types.d.ts +20 -0
  280. package/dist/components/SingleSelectDropdown/_types/singleSelectDropdown.types.d.ts.map +1 -0
  281. package/dist/components/SingleSelectDropdown/_types/singleSelectDropdown.types.js +1 -0
  282. package/dist/components/SingleSelectDropdown/index.d.ts +3 -0
  283. package/dist/components/SingleSelectDropdown/index.d.ts.map +1 -0
  284. package/dist/components/SingleSelectDropdown/index.js +144 -0
  285. package/dist/components/Stepper/_helper/StepIcon.d.ts +6 -0
  286. package/dist/components/Stepper/_helper/StepIcon.d.ts.map +1 -0
  287. package/dist/components/Stepper/_helper/StepIcon.js +30 -0
  288. package/dist/components/Stepper/_helper/StepText.d.ts +3 -0
  289. package/dist/components/Stepper/_helper/StepText.d.ts.map +1 -0
  290. package/dist/components/Stepper/_helper/StepText.js +14 -0
  291. package/dist/components/Stepper/_types/stepper.type.d.ts +16 -0
  292. package/dist/components/Stepper/_types/stepper.type.d.ts.map +1 -0
  293. package/dist/components/Stepper/_types/stepper.type.js +1 -0
  294. package/dist/components/Stepper/_utils/stepper.utils.d.ts +4 -0
  295. package/dist/components/Stepper/_utils/stepper.utils.d.ts.map +1 -0
  296. package/dist/components/Stepper/_utils/stepper.utils.js +18 -0
  297. package/dist/components/Stepper/constants.d.ts +10 -0
  298. package/dist/components/Stepper/constants.d.ts.map +1 -0
  299. package/dist/components/Stepper/constants.js +12 -0
  300. package/dist/components/Stepper/index.d.ts +6 -0
  301. package/dist/components/Stepper/index.d.ts.map +1 -0
  302. package/dist/components/Stepper/index.js +47 -0
  303. package/dist/components/Switch/index.js +1 -1
  304. package/dist/components/Tab/_types/tab.types.d.ts +23 -0
  305. package/dist/components/Tab/_types/tab.types.d.ts.map +1 -0
  306. package/dist/components/Tab/_types/tab.types.js +1 -0
  307. package/dist/components/Tab/index.d.ts +3 -0
  308. package/dist/components/Tab/index.d.ts.map +1 -0
  309. package/dist/components/Tab/index.js +72 -0
  310. package/dist/components/Tag/index.js +1 -1
  311. package/dist/components/TextArea/_types/textArea.types.d.ts +20 -0
  312. package/dist/components/TextArea/_types/textArea.types.d.ts.map +1 -0
  313. package/dist/components/TextArea/_types/textArea.types.js +1 -0
  314. package/dist/components/TextArea/index.d.ts +4 -0
  315. package/dist/components/TextArea/index.d.ts.map +1 -0
  316. package/dist/components/TextArea/index.js +135 -0
  317. package/dist/components/TextField/_types/textField.types.d.ts +67 -0
  318. package/dist/components/TextField/_types/textField.types.d.ts.map +1 -0
  319. package/dist/components/TextField/_types/textField.types.js +1 -0
  320. package/dist/components/TextField/index.d.ts +4 -0
  321. package/dist/components/TextField/index.d.ts.map +1 -0
  322. package/dist/components/TextField/index.js +7393 -0
  323. package/dist/components/Toast/_helper/ToastContent.d.ts +3 -0
  324. package/dist/components/Toast/_helper/ToastContent.d.ts.map +1 -0
  325. package/dist/components/Toast/_helper/ToastContent.js +91 -0
  326. package/dist/components/Toast/_helper/ToastProvider.d.ts +7 -0
  327. package/dist/components/Toast/_helper/ToastProvider.d.ts.map +1 -0
  328. package/dist/components/Toast/_helper/ToastProvider.js +28 -0
  329. package/dist/components/Toast/_hooks/useToast.d.ts +14 -0
  330. package/dist/components/Toast/_hooks/useToast.d.ts.map +1 -0
  331. package/dist/components/Toast/_hooks/useToast.js +101 -0
  332. package/dist/components/Toast/_types/toast.types.d.ts +22 -0
  333. package/dist/components/Toast/_types/toast.types.d.ts.map +1 -0
  334. package/dist/components/Toast/_types/toast.types.js +1 -0
  335. package/dist/components/Toast/index.d.ts +5 -0
  336. package/dist/components/Toast/index.d.ts.map +1 -0
  337. package/dist/components/Toast/index.js +8 -0
  338. package/dist/components/Toggle/_types/toggle.types.d.ts +7 -0
  339. package/dist/components/Toggle/_types/toggle.types.d.ts.map +1 -0
  340. package/dist/components/Toggle/_types/toggle.types.js +1 -0
  341. package/dist/components/Toggle/index.d.ts +3 -0
  342. package/dist/components/Toggle/index.d.ts.map +1 -0
  343. package/dist/components/Toggle/index.js +43 -0
  344. package/dist/components/Tooltip/_types/tooltip.types.d.ts +8 -0
  345. package/dist/components/Tooltip/_types/tooltip.types.d.ts.map +1 -0
  346. package/dist/components/Tooltip/_types/tooltip.types.js +1 -0
  347. package/dist/components/Tooltip/index.d.ts +3 -0
  348. package/dist/components/Tooltip/index.d.ts.map +1 -0
  349. package/dist/components/Tooltip/index.js +2057 -0
  350. package/dist/constants.d.ts +17 -0
  351. package/dist/constants.d.ts.map +1 -0
  352. package/dist/constants.js +19 -0
  353. package/dist/index-BR6M9zUI.js +382 -0
  354. package/dist/info-icon-ooYw3va_.js +5 -0
  355. package/dist/main.d.ts +24 -0
  356. package/dist/main.d.ts.map +1 -1
  357. package/dist/main.js +459 -16
  358. package/dist/styles.module-B5fY7mP8.js +20 -0
  359. package/dist/styles.module-BpAF4ufQ.js +38 -0
  360. package/dist/styles.module-DGDgpLAB.js +29 -0
  361. package/dist/styles.module-r_cdKgD9.js +19 -0
  362. package/dist/styles.module-yNDMDNO-.js +14 -0
  363. package/dist/theme/Theme.js +3 -2
  364. package/dist/theme/theme.css +1 -1
  365. package/dist/utils/index.d.ts +2 -0
  366. package/dist/utils/index.d.ts.map +1 -0
  367. package/dist/utils/index.js +4 -0
  368. package/dist/utils/mergeClasses.d.ts +2 -0
  369. package/dist/utils/mergeClasses.d.ts.map +1 -0
  370. package/dist/utils/mergeClasses.js +6 -0
  371. package/package.json +9 -5
  372. package/dist/assets/Theme.css +0 -1
  373. package/dist/components/Button/Button.stories.d.ts +0 -9
  374. package/dist/components/Button/Button.stories.d.ts.map +0 -1
  375. package/dist/components/Checkbox/Checkbox.stories.d.ts +0 -10
  376. package/dist/components/Checkbox/Checkbox.stories.d.ts.map +0 -1
  377. package/dist/components/Copy/Copy.stories.d.ts +0 -9
  378. package/dist/components/Copy/Copy.stories.d.ts.map +0 -1
  379. package/dist/components/Switch/Switch.stories.d.ts +0 -10
  380. package/dist/components/Switch/Switch.stories.d.ts.map +0 -1
  381. package/dist/components/Tag/Tag.stories.d.ts +0 -11
  382. package/dist/components/Tag/Tag.stories.d.ts.map +0 -1
  383. /package/dist/assets/{index5.css → index-B6Mg98vm.css} +0 -0
  384. /package/dist/assets/{index3.css → index-C7wPc9Eh.css} +0 -0
  385. /package/dist/assets/{index4.css → index-DRigR6XT.css} +0 -0
  386. /package/dist/assets/{index2.css → index-fvceox3b.css} +0 -0
  387. /package/dist/assets/{index.css → index-t78owPAF.css} +0 -0
@@ -0,0 +1,2057 @@
1
+ import { jsx as oe, jsxs as vt } from "react/jsx-runtime";
2
+ import * as j from "react";
3
+ import { g as jt, a as Ct, o as mt, P as ro, u as ot, b as ht, i as St, c as no, d as $t, e as n, r as Dt, f as ao, H as Ye, h as kt, j as Bt, s as Ke, k as io, l as Fe, m as so, n as po, p as gt, q as lo, t as He, G as co, T as fo, v as Lt, w as at, x as uo } from "../../Grow-Bsrwqfek.js";
4
+ import { c as vo } from "../../clsx-OuTLNxxd.js";
5
+ function yt(t) {
6
+ try {
7
+ return t.matches(":focus-visible");
8
+ } catch {
9
+ process.env.NODE_ENV !== "production" && !window.navigator.userAgent.includes("jsdom") && console.warn(["MUI: The `:focus-visible` pseudo class is not supported in this browser.", "Some components rely on this feature to work properly."].join(`
10
+ `));
11
+ }
12
+ return !1;
13
+ }
14
+ var H = "top", X = "bottom", G = "right", U = "left", it = "auto", De = [H, X, G, U], Oe = "start", Se = "end", mo = "clippingParents", Nt = "viewport", Ae = "popper", ho = "reference", bt = /* @__PURE__ */ De.reduce(function(t, e) {
15
+ return t.concat([e + "-" + Oe, e + "-" + Se]);
16
+ }, []), Wt = /* @__PURE__ */ [].concat(De, [it]).reduce(function(t, e) {
17
+ return t.concat([e, e + "-" + Oe, e + "-" + Se]);
18
+ }, []), go = "beforeRead", yo = "read", bo = "afterRead", wo = "beforeMain", Oo = "main", xo = "afterMain", To = "beforeWrite", Po = "write", Eo = "afterWrite", Ro = [go, yo, bo, wo, Oo, xo, To, Po, Eo];
19
+ function _(t) {
20
+ return t ? (t.nodeName || "").toLowerCase() : null;
21
+ }
22
+ function q(t) {
23
+ if (t == null)
24
+ return window;
25
+ if (t.toString() !== "[object Window]") {
26
+ var e = t.ownerDocument;
27
+ return e && e.defaultView || window;
28
+ }
29
+ return t;
30
+ }
31
+ function ye(t) {
32
+ var e = q(t).Element;
33
+ return t instanceof e || t instanceof Element;
34
+ }
35
+ function Y(t) {
36
+ var e = q(t).HTMLElement;
37
+ return t instanceof e || t instanceof HTMLElement;
38
+ }
39
+ function st(t) {
40
+ if (typeof ShadowRoot > "u")
41
+ return !1;
42
+ var e = q(t).ShadowRoot;
43
+ return t instanceof e || t instanceof ShadowRoot;
44
+ }
45
+ function Ao(t) {
46
+ var e = t.state;
47
+ Object.keys(e.elements).forEach(function(o) {
48
+ var r = e.styles[o] || {}, a = e.attributes[o] || {}, i = e.elements[o];
49
+ !Y(i) || !_(i) || (Object.assign(i.style, r), Object.keys(a).forEach(function(c) {
50
+ var s = a[c];
51
+ s === !1 ? i.removeAttribute(c) : i.setAttribute(c, s === !0 ? "" : s);
52
+ }));
53
+ });
54
+ }
55
+ function Mo(t) {
56
+ var e = t.state, o = {
57
+ popper: {
58
+ position: e.options.strategy,
59
+ left: "0",
60
+ top: "0",
61
+ margin: "0"
62
+ },
63
+ arrow: {
64
+ position: "absolute"
65
+ },
66
+ reference: {}
67
+ };
68
+ return Object.assign(e.elements.popper.style, o.popper), e.styles = o, e.elements.arrow && Object.assign(e.elements.arrow.style, o.arrow), function() {
69
+ Object.keys(e.elements).forEach(function(r) {
70
+ var a = e.elements[r], i = e.attributes[r] || {}, c = Object.keys(e.styles.hasOwnProperty(r) ? e.styles[r] : o[r]), s = c.reduce(function(p, f) {
71
+ return p[f] = "", p;
72
+ }, {});
73
+ !Y(a) || !_(a) || (Object.assign(a.style, s), Object.keys(i).forEach(function(p) {
74
+ a.removeAttribute(p);
75
+ }));
76
+ });
77
+ };
78
+ }
79
+ const jo = {
80
+ name: "applyStyles",
81
+ enabled: !0,
82
+ phase: "write",
83
+ fn: Ao,
84
+ effect: Mo,
85
+ requires: ["computeStyles"]
86
+ };
87
+ function Z(t) {
88
+ return t.split("-")[0];
89
+ }
90
+ var ge = Math.max, Xe = Math.min, xe = Math.round;
91
+ function rt() {
92
+ var t = navigator.userAgentData;
93
+ return t != null && t.brands && Array.isArray(t.brands) ? t.brands.map(function(e) {
94
+ return e.brand + "/" + e.version;
95
+ }).join(" ") : navigator.userAgent;
96
+ }
97
+ function It() {
98
+ return !/^((?!chrome|android).)*safari/i.test(rt());
99
+ }
100
+ function Te(t, e, o) {
101
+ e === void 0 && (e = !1), o === void 0 && (o = !1);
102
+ var r = t.getBoundingClientRect(), a = 1, i = 1;
103
+ e && Y(t) && (a = t.offsetWidth > 0 && xe(r.width) / t.offsetWidth || 1, i = t.offsetHeight > 0 && xe(r.height) / t.offsetHeight || 1);
104
+ var c = ye(t) ? q(t) : window, s = c.visualViewport, p = !It() && o, f = (r.left + (p && s ? s.offsetLeft : 0)) / a, l = (r.top + (p && s ? s.offsetTop : 0)) / i, g = r.width / a, O = r.height / i;
105
+ return {
106
+ width: g,
107
+ height: O,
108
+ top: l,
109
+ right: f + g,
110
+ bottom: l + O,
111
+ left: f,
112
+ x: f,
113
+ y: l
114
+ };
115
+ }
116
+ function pt(t) {
117
+ var e = Te(t), o = t.offsetWidth, r = t.offsetHeight;
118
+ return Math.abs(e.width - o) <= 1 && (o = e.width), Math.abs(e.height - r) <= 1 && (r = e.height), {
119
+ x: t.offsetLeft,
120
+ y: t.offsetTop,
121
+ width: o,
122
+ height: r
123
+ };
124
+ }
125
+ function Ft(t, e) {
126
+ var o = e.getRootNode && e.getRootNode();
127
+ if (t.contains(e))
128
+ return !0;
129
+ if (o && st(o)) {
130
+ var r = e;
131
+ do {
132
+ if (r && t.isSameNode(r))
133
+ return !0;
134
+ r = r.parentNode || r.host;
135
+ } while (r);
136
+ }
137
+ return !1;
138
+ }
139
+ function re(t) {
140
+ return q(t).getComputedStyle(t);
141
+ }
142
+ function Co(t) {
143
+ return ["table", "td", "th"].indexOf(_(t)) >= 0;
144
+ }
145
+ function ue(t) {
146
+ return ((ye(t) ? t.ownerDocument : (
147
+ // $FlowFixMe[prop-missing]
148
+ t.document
149
+ )) || window.document).documentElement;
150
+ }
151
+ function Je(t) {
152
+ return _(t) === "html" ? t : (
153
+ // this is a quicker (but less type safe) way to save quite some bytes from the bundle
154
+ // $FlowFixMe[incompatible-return]
155
+ // $FlowFixMe[prop-missing]
156
+ t.assignedSlot || // step into the shadow DOM of the parent of a slotted node
157
+ t.parentNode || // DOM Element detected
158
+ (st(t) ? t.host : null) || // ShadowRoot detected
159
+ // $FlowFixMe[incompatible-call]: HTMLElement is a Node
160
+ ue(t)
161
+ );
162
+ }
163
+ function wt(t) {
164
+ return !Y(t) || // https://github.com/popperjs/popper-core/issues/837
165
+ re(t).position === "fixed" ? null : t.offsetParent;
166
+ }
167
+ function So(t) {
168
+ var e = /firefox/i.test(rt()), o = /Trident/i.test(rt());
169
+ if (o && Y(t)) {
170
+ var r = re(t);
171
+ if (r.position === "fixed")
172
+ return null;
173
+ }
174
+ var a = Je(t);
175
+ for (st(a) && (a = a.host); Y(a) && ["html", "body"].indexOf(_(a)) < 0; ) {
176
+ var i = re(a);
177
+ if (i.transform !== "none" || i.perspective !== "none" || i.contain === "paint" || ["transform", "perspective"].indexOf(i.willChange) !== -1 || e && i.willChange === "filter" || e && i.filter && i.filter !== "none")
178
+ return a;
179
+ a = a.parentNode;
180
+ }
181
+ return null;
182
+ }
183
+ function ke(t) {
184
+ for (var e = q(t), o = wt(t); o && Co(o) && re(o).position === "static"; )
185
+ o = wt(o);
186
+ return o && (_(o) === "html" || _(o) === "body" && re(o).position === "static") ? e : o || So(t) || e;
187
+ }
188
+ function lt(t) {
189
+ return ["top", "bottom"].indexOf(t) >= 0 ? "x" : "y";
190
+ }
191
+ function je(t, e, o) {
192
+ return ge(t, Xe(e, o));
193
+ }
194
+ function $o(t, e, o) {
195
+ var r = je(t, e, o);
196
+ return r > o ? o : r;
197
+ }
198
+ function Ht() {
199
+ return {
200
+ top: 0,
201
+ right: 0,
202
+ bottom: 0,
203
+ left: 0
204
+ };
205
+ }
206
+ function Ut(t) {
207
+ return Object.assign({}, Ht(), t);
208
+ }
209
+ function Vt(t, e) {
210
+ return e.reduce(function(o, r) {
211
+ return o[r] = t, o;
212
+ }, {});
213
+ }
214
+ var Do = function(e, o) {
215
+ return e = typeof e == "function" ? e(Object.assign({}, o.rects, {
216
+ placement: o.placement
217
+ })) : e, Ut(typeof e != "number" ? e : Vt(e, De));
218
+ };
219
+ function ko(t) {
220
+ var e, o = t.state, r = t.name, a = t.options, i = o.elements.arrow, c = o.modifiersData.popperOffsets, s = Z(o.placement), p = lt(s), f = [U, G].indexOf(s) >= 0, l = f ? "height" : "width";
221
+ if (!(!i || !c)) {
222
+ var g = Do(a.padding, o), O = pt(i), u = p === "y" ? H : U, E = p === "y" ? X : G, v = o.rects.reference[l] + o.rects.reference[p] - c[p] - o.rects.popper[l], h = c[p] - o.rects.reference[p], x = ke(i), A = x ? p === "y" ? x.clientHeight || 0 : x.clientWidth || 0 : 0, T = v / 2 - h / 2, d = g[u], y = A - O[l] - g[E], b = A / 2 - O[l] / 2 + T, P = je(d, b, y), C = p;
223
+ o.modifiersData[r] = (e = {}, e[C] = P, e.centerOffset = P - b, e);
224
+ }
225
+ }
226
+ function Bo(t) {
227
+ var e = t.state, o = t.options, r = o.element, a = r === void 0 ? "[data-popper-arrow]" : r;
228
+ a != null && (typeof a == "string" && (a = e.elements.popper.querySelector(a), !a) || Ft(e.elements.popper, a) && (e.elements.arrow = a));
229
+ }
230
+ const Lo = {
231
+ name: "arrow",
232
+ enabled: !0,
233
+ phase: "main",
234
+ fn: ko,
235
+ effect: Bo,
236
+ requires: ["popperOffsets"],
237
+ requiresIfExists: ["preventOverflow"]
238
+ };
239
+ function Pe(t) {
240
+ return t.split("-")[1];
241
+ }
242
+ var No = {
243
+ top: "auto",
244
+ right: "auto",
245
+ bottom: "auto",
246
+ left: "auto"
247
+ };
248
+ function Wo(t, e) {
249
+ var o = t.x, r = t.y, a = e.devicePixelRatio || 1;
250
+ return {
251
+ x: xe(o * a) / a || 0,
252
+ y: xe(r * a) / a || 0
253
+ };
254
+ }
255
+ function Ot(t) {
256
+ var e, o = t.popper, r = t.popperRect, a = t.placement, i = t.variation, c = t.offsets, s = t.position, p = t.gpuAcceleration, f = t.adaptive, l = t.roundOffsets, g = t.isFixed, O = c.x, u = O === void 0 ? 0 : O, E = c.y, v = E === void 0 ? 0 : E, h = typeof l == "function" ? l({
257
+ x: u,
258
+ y: v
259
+ }) : {
260
+ x: u,
261
+ y: v
262
+ };
263
+ u = h.x, v = h.y;
264
+ var x = c.hasOwnProperty("x"), A = c.hasOwnProperty("y"), T = U, d = H, y = window;
265
+ if (f) {
266
+ var b = ke(o), P = "clientHeight", C = "clientWidth";
267
+ if (b === q(o) && (b = ue(o), re(b).position !== "static" && s === "absolute" && (P = "scrollHeight", C = "scrollWidth")), b = b, a === H || (a === U || a === G) && i === Se) {
268
+ d = X;
269
+ var w = g && b === y && y.visualViewport ? y.visualViewport.height : (
270
+ // $FlowFixMe[prop-missing]
271
+ b[P]
272
+ );
273
+ v -= w - r.height, v *= p ? 1 : -1;
274
+ }
275
+ if (a === U || (a === H || a === X) && i === Se) {
276
+ T = G;
277
+ var M = g && b === y && y.visualViewport ? y.visualViewport.width : (
278
+ // $FlowFixMe[prop-missing]
279
+ b[C]
280
+ );
281
+ u -= M - r.width, u *= p ? 1 : -1;
282
+ }
283
+ }
284
+ var R = Object.assign({
285
+ position: s
286
+ }, f && No), L = l === !0 ? Wo({
287
+ x: u,
288
+ y: v
289
+ }, q(o)) : {
290
+ x: u,
291
+ y: v
292
+ };
293
+ if (u = L.x, v = L.y, p) {
294
+ var k;
295
+ return Object.assign({}, R, (k = {}, k[d] = A ? "0" : "", k[T] = x ? "0" : "", k.transform = (y.devicePixelRatio || 1) <= 1 ? "translate(" + u + "px, " + v + "px)" : "translate3d(" + u + "px, " + v + "px, 0)", k));
296
+ }
297
+ return Object.assign({}, R, (e = {}, e[d] = A ? v + "px" : "", e[T] = x ? u + "px" : "", e.transform = "", e));
298
+ }
299
+ function Io(t) {
300
+ var e = t.state, o = t.options, r = o.gpuAcceleration, a = r === void 0 ? !0 : r, i = o.adaptive, c = i === void 0 ? !0 : i, s = o.roundOffsets, p = s === void 0 ? !0 : s, f = {
301
+ placement: Z(e.placement),
302
+ variation: Pe(e.placement),
303
+ popper: e.elements.popper,
304
+ popperRect: e.rects.popper,
305
+ gpuAcceleration: a,
306
+ isFixed: e.options.strategy === "fixed"
307
+ };
308
+ e.modifiersData.popperOffsets != null && (e.styles.popper = Object.assign({}, e.styles.popper, Ot(Object.assign({}, f, {
309
+ offsets: e.modifiersData.popperOffsets,
310
+ position: e.options.strategy,
311
+ adaptive: c,
312
+ roundOffsets: p
313
+ })))), e.modifiersData.arrow != null && (e.styles.arrow = Object.assign({}, e.styles.arrow, Ot(Object.assign({}, f, {
314
+ offsets: e.modifiersData.arrow,
315
+ position: "absolute",
316
+ adaptive: !1,
317
+ roundOffsets: p
318
+ })))), e.attributes.popper = Object.assign({}, e.attributes.popper, {
319
+ "data-popper-placement": e.placement
320
+ });
321
+ }
322
+ const Fo = {
323
+ name: "computeStyles",
324
+ enabled: !0,
325
+ phase: "beforeWrite",
326
+ fn: Io,
327
+ data: {}
328
+ };
329
+ var Ue = {
330
+ passive: !0
331
+ };
332
+ function Ho(t) {
333
+ var e = t.state, o = t.instance, r = t.options, a = r.scroll, i = a === void 0 ? !0 : a, c = r.resize, s = c === void 0 ? !0 : c, p = q(e.elements.popper), f = [].concat(e.scrollParents.reference, e.scrollParents.popper);
334
+ return i && f.forEach(function(l) {
335
+ l.addEventListener("scroll", o.update, Ue);
336
+ }), s && p.addEventListener("resize", o.update, Ue), function() {
337
+ i && f.forEach(function(l) {
338
+ l.removeEventListener("scroll", o.update, Ue);
339
+ }), s && p.removeEventListener("resize", o.update, Ue);
340
+ };
341
+ }
342
+ const Uo = {
343
+ name: "eventListeners",
344
+ enabled: !0,
345
+ phase: "write",
346
+ fn: function() {
347
+ },
348
+ effect: Ho,
349
+ data: {}
350
+ };
351
+ var Vo = {
352
+ left: "right",
353
+ right: "left",
354
+ bottom: "top",
355
+ top: "bottom"
356
+ };
357
+ function ze(t) {
358
+ return t.replace(/left|right|bottom|top/g, function(e) {
359
+ return Vo[e];
360
+ });
361
+ }
362
+ var qo = {
363
+ start: "end",
364
+ end: "start"
365
+ };
366
+ function xt(t) {
367
+ return t.replace(/start|end/g, function(e) {
368
+ return qo[e];
369
+ });
370
+ }
371
+ function ct(t) {
372
+ var e = q(t), o = e.pageXOffset, r = e.pageYOffset;
373
+ return {
374
+ scrollLeft: o,
375
+ scrollTop: r
376
+ };
377
+ }
378
+ function ft(t) {
379
+ return Te(ue(t)).left + ct(t).scrollLeft;
380
+ }
381
+ function zo(t, e) {
382
+ var o = q(t), r = ue(t), a = o.visualViewport, i = r.clientWidth, c = r.clientHeight, s = 0, p = 0;
383
+ if (a) {
384
+ i = a.width, c = a.height;
385
+ var f = It();
386
+ (f || !f && e === "fixed") && (s = a.offsetLeft, p = a.offsetTop);
387
+ }
388
+ return {
389
+ width: i,
390
+ height: c,
391
+ x: s + ft(t),
392
+ y: p
393
+ };
394
+ }
395
+ function Yo(t) {
396
+ var e, o = ue(t), r = ct(t), a = (e = t.ownerDocument) == null ? void 0 : e.body, i = ge(o.scrollWidth, o.clientWidth, a ? a.scrollWidth : 0, a ? a.clientWidth : 0), c = ge(o.scrollHeight, o.clientHeight, a ? a.scrollHeight : 0, a ? a.clientHeight : 0), s = -r.scrollLeft + ft(t), p = -r.scrollTop;
397
+ return re(a || o).direction === "rtl" && (s += ge(o.clientWidth, a ? a.clientWidth : 0) - i), {
398
+ width: i,
399
+ height: c,
400
+ x: s,
401
+ y: p
402
+ };
403
+ }
404
+ function ut(t) {
405
+ var e = re(t), o = e.overflow, r = e.overflowX, a = e.overflowY;
406
+ return /auto|scroll|overlay|hidden/.test(o + a + r);
407
+ }
408
+ function qt(t) {
409
+ return ["html", "body", "#document"].indexOf(_(t)) >= 0 ? t.ownerDocument.body : Y(t) && ut(t) ? t : qt(Je(t));
410
+ }
411
+ function Ce(t, e) {
412
+ var o;
413
+ e === void 0 && (e = []);
414
+ var r = qt(t), a = r === ((o = t.ownerDocument) == null ? void 0 : o.body), i = q(r), c = a ? [i].concat(i.visualViewport || [], ut(r) ? r : []) : r, s = e.concat(c);
415
+ return a ? s : (
416
+ // $FlowFixMe[incompatible-call]: isBody tells us target will be an HTMLElement here
417
+ s.concat(Ce(Je(c)))
418
+ );
419
+ }
420
+ function nt(t) {
421
+ return Object.assign({}, t, {
422
+ left: t.x,
423
+ top: t.y,
424
+ right: t.x + t.width,
425
+ bottom: t.y + t.height
426
+ });
427
+ }
428
+ function Xo(t, e) {
429
+ var o = Te(t, !1, e === "fixed");
430
+ return o.top = o.top + t.clientTop, o.left = o.left + t.clientLeft, o.bottom = o.top + t.clientHeight, o.right = o.left + t.clientWidth, o.width = t.clientWidth, o.height = t.clientHeight, o.x = o.left, o.y = o.top, o;
431
+ }
432
+ function Tt(t, e, o) {
433
+ return e === Nt ? nt(zo(t, o)) : ye(e) ? Xo(e, o) : nt(Yo(ue(t)));
434
+ }
435
+ function Go(t) {
436
+ var e = Ce(Je(t)), o = ["absolute", "fixed"].indexOf(re(t).position) >= 0, r = o && Y(t) ? ke(t) : t;
437
+ return ye(r) ? e.filter(function(a) {
438
+ return ye(a) && Ft(a, r) && _(a) !== "body";
439
+ }) : [];
440
+ }
441
+ function Ko(t, e, o, r) {
442
+ var a = e === "clippingParents" ? Go(t) : [].concat(e), i = [].concat(a, [o]), c = i[0], s = i.reduce(function(p, f) {
443
+ var l = Tt(t, f, r);
444
+ return p.top = ge(l.top, p.top), p.right = Xe(l.right, p.right), p.bottom = Xe(l.bottom, p.bottom), p.left = ge(l.left, p.left), p;
445
+ }, Tt(t, c, r));
446
+ return s.width = s.right - s.left, s.height = s.bottom - s.top, s.x = s.left, s.y = s.top, s;
447
+ }
448
+ function zt(t) {
449
+ var e = t.reference, o = t.element, r = t.placement, a = r ? Z(r) : null, i = r ? Pe(r) : null, c = e.x + e.width / 2 - o.width / 2, s = e.y + e.height / 2 - o.height / 2, p;
450
+ switch (a) {
451
+ case H:
452
+ p = {
453
+ x: c,
454
+ y: e.y - o.height
455
+ };
456
+ break;
457
+ case X:
458
+ p = {
459
+ x: c,
460
+ y: e.y + e.height
461
+ };
462
+ break;
463
+ case G:
464
+ p = {
465
+ x: e.x + e.width,
466
+ y: s
467
+ };
468
+ break;
469
+ case U:
470
+ p = {
471
+ x: e.x - o.width,
472
+ y: s
473
+ };
474
+ break;
475
+ default:
476
+ p = {
477
+ x: e.x,
478
+ y: e.y
479
+ };
480
+ }
481
+ var f = a ? lt(a) : null;
482
+ if (f != null) {
483
+ var l = f === "y" ? "height" : "width";
484
+ switch (i) {
485
+ case Oe:
486
+ p[f] = p[f] - (e[l] / 2 - o[l] / 2);
487
+ break;
488
+ case Se:
489
+ p[f] = p[f] + (e[l] / 2 - o[l] / 2);
490
+ break;
491
+ }
492
+ }
493
+ return p;
494
+ }
495
+ function $e(t, e) {
496
+ e === void 0 && (e = {});
497
+ var o = e, r = o.placement, a = r === void 0 ? t.placement : r, i = o.strategy, c = i === void 0 ? t.strategy : i, s = o.boundary, p = s === void 0 ? mo : s, f = o.rootBoundary, l = f === void 0 ? Nt : f, g = o.elementContext, O = g === void 0 ? Ae : g, u = o.altBoundary, E = u === void 0 ? !1 : u, v = o.padding, h = v === void 0 ? 0 : v, x = Ut(typeof h != "number" ? h : Vt(h, De)), A = O === Ae ? ho : Ae, T = t.rects.popper, d = t.elements[E ? A : O], y = Ko(ye(d) ? d : d.contextElement || ue(t.elements.popper), p, l, c), b = Te(t.elements.reference), P = zt({
498
+ reference: b,
499
+ element: T,
500
+ placement: a
501
+ }), C = nt(Object.assign({}, T, P)), w = O === Ae ? C : b, M = {
502
+ top: y.top - w.top + x.top,
503
+ bottom: w.bottom - y.bottom + x.bottom,
504
+ left: y.left - w.left + x.left,
505
+ right: w.right - y.right + x.right
506
+ }, R = t.modifiersData.offset;
507
+ if (O === Ae && R) {
508
+ var L = R[a];
509
+ Object.keys(M).forEach(function(k) {
510
+ var S = [G, X].indexOf(k) >= 0 ? 1 : -1, z = [H, X].indexOf(k) >= 0 ? "y" : "x";
511
+ M[k] += L[z] * S;
512
+ });
513
+ }
514
+ return M;
515
+ }
516
+ function Jo(t, e) {
517
+ e === void 0 && (e = {});
518
+ var o = e, r = o.placement, a = o.boundary, i = o.rootBoundary, c = o.padding, s = o.flipVariations, p = o.allowedAutoPlacements, f = p === void 0 ? Wt : p, l = Pe(r), g = l ? s ? bt : bt.filter(function(E) {
519
+ return Pe(E) === l;
520
+ }) : De, O = g.filter(function(E) {
521
+ return f.indexOf(E) >= 0;
522
+ });
523
+ O.length === 0 && (O = g);
524
+ var u = O.reduce(function(E, v) {
525
+ return E[v] = $e(t, {
526
+ placement: v,
527
+ boundary: a,
528
+ rootBoundary: i,
529
+ padding: c
530
+ })[Z(v)], E;
531
+ }, {});
532
+ return Object.keys(u).sort(function(E, v) {
533
+ return u[E] - u[v];
534
+ });
535
+ }
536
+ function Qo(t) {
537
+ if (Z(t) === it)
538
+ return [];
539
+ var e = ze(t);
540
+ return [xt(t), e, xt(e)];
541
+ }
542
+ function Zo(t) {
543
+ var e = t.state, o = t.options, r = t.name;
544
+ if (!e.modifiersData[r]._skip) {
545
+ for (var a = o.mainAxis, i = a === void 0 ? !0 : a, c = o.altAxis, s = c === void 0 ? !0 : c, p = o.fallbackPlacements, f = o.padding, l = o.boundary, g = o.rootBoundary, O = o.altBoundary, u = o.flipVariations, E = u === void 0 ? !0 : u, v = o.allowedAutoPlacements, h = e.options.placement, x = Z(h), A = x === h, T = p || (A || !E ? [ze(h)] : Qo(h)), d = [h].concat(T).reduce(function(ne, J) {
546
+ return ne.concat(Z(J) === it ? Jo(e, {
547
+ placement: J,
548
+ boundary: l,
549
+ rootBoundary: g,
550
+ padding: f,
551
+ flipVariations: E,
552
+ allowedAutoPlacements: v
553
+ }) : J);
554
+ }, []), y = e.rects.reference, b = e.rects.popper, P = /* @__PURE__ */ new Map(), C = !0, w = d[0], M = 0; M < d.length; M++) {
555
+ var R = d[M], L = Z(R), k = Pe(R) === Oe, S = [H, X].indexOf(L) >= 0, z = S ? "width" : "height", $ = $e(e, {
556
+ placement: R,
557
+ boundary: l,
558
+ rootBoundary: g,
559
+ altBoundary: O,
560
+ padding: f
561
+ }), N = S ? k ? G : U : k ? X : H;
562
+ y[z] > b[z] && (N = ze(N));
563
+ var B = ze(N), K = [];
564
+ if (i && K.push($[L] <= 0), s && K.push($[N] <= 0, $[B] <= 0), K.every(function(ne) {
565
+ return ne;
566
+ })) {
567
+ w = R, C = !1;
568
+ break;
569
+ }
570
+ P.set(R, K);
571
+ }
572
+ if (C)
573
+ for (var de = E ? 3 : 1, ve = function(J) {
574
+ var W = d.find(function(ae) {
575
+ var V = P.get(ae);
576
+ if (V)
577
+ return V.slice(0, J).every(function(ie) {
578
+ return ie;
579
+ });
580
+ });
581
+ if (W)
582
+ return w = W, "break";
583
+ }, Q = de; Q > 0; Q--) {
584
+ var me = ve(Q);
585
+ if (me === "break") break;
586
+ }
587
+ e.placement !== w && (e.modifiersData[r]._skip = !0, e.placement = w, e.reset = !0);
588
+ }
589
+ }
590
+ const _o = {
591
+ name: "flip",
592
+ enabled: !0,
593
+ phase: "main",
594
+ fn: Zo,
595
+ requiresIfExists: ["offset"],
596
+ data: {
597
+ _skip: !1
598
+ }
599
+ };
600
+ function Pt(t, e, o) {
601
+ return o === void 0 && (o = {
602
+ x: 0,
603
+ y: 0
604
+ }), {
605
+ top: t.top - e.height - o.y,
606
+ right: t.right - e.width + o.x,
607
+ bottom: t.bottom - e.height + o.y,
608
+ left: t.left - e.width - o.x
609
+ };
610
+ }
611
+ function Et(t) {
612
+ return [H, G, X, U].some(function(e) {
613
+ return t[e] >= 0;
614
+ });
615
+ }
616
+ function er(t) {
617
+ var e = t.state, o = t.name, r = e.rects.reference, a = e.rects.popper, i = e.modifiersData.preventOverflow, c = $e(e, {
618
+ elementContext: "reference"
619
+ }), s = $e(e, {
620
+ altBoundary: !0
621
+ }), p = Pt(c, r), f = Pt(s, a, i), l = Et(p), g = Et(f);
622
+ e.modifiersData[o] = {
623
+ referenceClippingOffsets: p,
624
+ popperEscapeOffsets: f,
625
+ isReferenceHidden: l,
626
+ hasPopperEscaped: g
627
+ }, e.attributes.popper = Object.assign({}, e.attributes.popper, {
628
+ "data-popper-reference-hidden": l,
629
+ "data-popper-escaped": g
630
+ });
631
+ }
632
+ const tr = {
633
+ name: "hide",
634
+ enabled: !0,
635
+ phase: "main",
636
+ requiresIfExists: ["preventOverflow"],
637
+ fn: er
638
+ };
639
+ function or(t, e, o) {
640
+ var r = Z(t), a = [U, H].indexOf(r) >= 0 ? -1 : 1, i = typeof o == "function" ? o(Object.assign({}, e, {
641
+ placement: t
642
+ })) : o, c = i[0], s = i[1];
643
+ return c = c || 0, s = (s || 0) * a, [U, G].indexOf(r) >= 0 ? {
644
+ x: s,
645
+ y: c
646
+ } : {
647
+ x: c,
648
+ y: s
649
+ };
650
+ }
651
+ function rr(t) {
652
+ var e = t.state, o = t.options, r = t.name, a = o.offset, i = a === void 0 ? [0, 0] : a, c = Wt.reduce(function(l, g) {
653
+ return l[g] = or(g, e.rects, i), l;
654
+ }, {}), s = c[e.placement], p = s.x, f = s.y;
655
+ e.modifiersData.popperOffsets != null && (e.modifiersData.popperOffsets.x += p, e.modifiersData.popperOffsets.y += f), e.modifiersData[r] = c;
656
+ }
657
+ const nr = {
658
+ name: "offset",
659
+ enabled: !0,
660
+ phase: "main",
661
+ requires: ["popperOffsets"],
662
+ fn: rr
663
+ };
664
+ function ar(t) {
665
+ var e = t.state, o = t.name;
666
+ e.modifiersData[o] = zt({
667
+ reference: e.rects.reference,
668
+ element: e.rects.popper,
669
+ placement: e.placement
670
+ });
671
+ }
672
+ const ir = {
673
+ name: "popperOffsets",
674
+ enabled: !0,
675
+ phase: "read",
676
+ fn: ar,
677
+ data: {}
678
+ };
679
+ function sr(t) {
680
+ return t === "x" ? "y" : "x";
681
+ }
682
+ function pr(t) {
683
+ var e = t.state, o = t.options, r = t.name, a = o.mainAxis, i = a === void 0 ? !0 : a, c = o.altAxis, s = c === void 0 ? !1 : c, p = o.boundary, f = o.rootBoundary, l = o.altBoundary, g = o.padding, O = o.tether, u = O === void 0 ? !0 : O, E = o.tetherOffset, v = E === void 0 ? 0 : E, h = $e(e, {
684
+ boundary: p,
685
+ rootBoundary: f,
686
+ padding: g,
687
+ altBoundary: l
688
+ }), x = Z(e.placement), A = Pe(e.placement), T = !A, d = lt(x), y = sr(d), b = e.modifiersData.popperOffsets, P = e.rects.reference, C = e.rects.popper, w = typeof v == "function" ? v(Object.assign({}, e.rects, {
689
+ placement: e.placement
690
+ })) : v, M = typeof w == "number" ? {
691
+ mainAxis: w,
692
+ altAxis: w
693
+ } : Object.assign({
694
+ mainAxis: 0,
695
+ altAxis: 0
696
+ }, w), R = e.modifiersData.offset ? e.modifiersData.offset[e.placement] : null, L = {
697
+ x: 0,
698
+ y: 0
699
+ };
700
+ if (b) {
701
+ if (i) {
702
+ var k, S = d === "y" ? H : U, z = d === "y" ? X : G, $ = d === "y" ? "height" : "width", N = b[d], B = N + h[S], K = N - h[z], de = u ? -C[$] / 2 : 0, ve = A === Oe ? P[$] : C[$], Q = A === Oe ? -C[$] : -P[$], me = e.elements.arrow, ne = u && me ? pt(me) : {
703
+ width: 0,
704
+ height: 0
705
+ }, J = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : Ht(), W = J[S], ae = J[z], V = je(0, P[$], ne[$]), ie = T ? P[$] / 2 - de - V - W - M.mainAxis : ve - V - W - M.mainAxis, Be = T ? -P[$] / 2 + de + V + ae + M.mainAxis : Q + V + ae + M.mainAxis, se = e.elements.arrow && ke(e.elements.arrow), be = se ? d === "y" ? se.clientTop || 0 : se.clientLeft || 0 : 0, we = (k = R?.[d]) != null ? k : 0, Le = N + ie - we - be, Ne = N + Be - we, Ee = je(u ? Xe(B, Le) : B, N, u ? ge(K, Ne) : K);
706
+ b[d] = Ee, L[d] = Ee - N;
707
+ }
708
+ if (s) {
709
+ var Re, Ze = d === "x" ? H : U, _e = d === "x" ? X : G, ee = b[y], pe = y === "y" ? "height" : "width", We = ee + h[Ze], le = ee - h[_e], he = [H, U].indexOf(x) !== -1, I = (Re = R?.[y]) != null ? Re : 0, ce = he ? We : ee - P[pe] - C[pe] - I + M.altAxis, te = he ? ee + P[pe] + C[pe] - I - M.altAxis : le, fe = u && he ? $o(ce, ee, te) : je(u ? ce : We, ee, u ? te : le);
710
+ b[y] = fe, L[y] = fe - ee;
711
+ }
712
+ e.modifiersData[r] = L;
713
+ }
714
+ }
715
+ const lr = {
716
+ name: "preventOverflow",
717
+ enabled: !0,
718
+ phase: "main",
719
+ fn: pr,
720
+ requiresIfExists: ["offset"]
721
+ };
722
+ function cr(t) {
723
+ return {
724
+ scrollLeft: t.scrollLeft,
725
+ scrollTop: t.scrollTop
726
+ };
727
+ }
728
+ function fr(t) {
729
+ return t === q(t) || !Y(t) ? ct(t) : cr(t);
730
+ }
731
+ function ur(t) {
732
+ var e = t.getBoundingClientRect(), o = xe(e.width) / t.offsetWidth || 1, r = xe(e.height) / t.offsetHeight || 1;
733
+ return o !== 1 || r !== 1;
734
+ }
735
+ function dr(t, e, o) {
736
+ o === void 0 && (o = !1);
737
+ var r = Y(e), a = Y(e) && ur(e), i = ue(e), c = Te(t, a, o), s = {
738
+ scrollLeft: 0,
739
+ scrollTop: 0
740
+ }, p = {
741
+ x: 0,
742
+ y: 0
743
+ };
744
+ return (r || !r && !o) && ((_(e) !== "body" || // https://github.com/popperjs/popper-core/issues/1078
745
+ ut(i)) && (s = fr(e)), Y(e) ? (p = Te(e, !0), p.x += e.clientLeft, p.y += e.clientTop) : i && (p.x = ft(i))), {
746
+ x: c.left + s.scrollLeft - p.x,
747
+ y: c.top + s.scrollTop - p.y,
748
+ width: c.width,
749
+ height: c.height
750
+ };
751
+ }
752
+ function vr(t) {
753
+ var e = /* @__PURE__ */ new Map(), o = /* @__PURE__ */ new Set(), r = [];
754
+ t.forEach(function(i) {
755
+ e.set(i.name, i);
756
+ });
757
+ function a(i) {
758
+ o.add(i.name);
759
+ var c = [].concat(i.requires || [], i.requiresIfExists || []);
760
+ c.forEach(function(s) {
761
+ if (!o.has(s)) {
762
+ var p = e.get(s);
763
+ p && a(p);
764
+ }
765
+ }), r.push(i);
766
+ }
767
+ return t.forEach(function(i) {
768
+ o.has(i.name) || a(i);
769
+ }), r;
770
+ }
771
+ function mr(t) {
772
+ var e = vr(t);
773
+ return Ro.reduce(function(o, r) {
774
+ return o.concat(e.filter(function(a) {
775
+ return a.phase === r;
776
+ }));
777
+ }, []);
778
+ }
779
+ function hr(t) {
780
+ var e;
781
+ return function() {
782
+ return e || (e = new Promise(function(o) {
783
+ Promise.resolve().then(function() {
784
+ e = void 0, o(t());
785
+ });
786
+ })), e;
787
+ };
788
+ }
789
+ function gr(t) {
790
+ var e = t.reduce(function(o, r) {
791
+ var a = o[r.name];
792
+ return o[r.name] = a ? Object.assign({}, a, r, {
793
+ options: Object.assign({}, a.options, r.options),
794
+ data: Object.assign({}, a.data, r.data)
795
+ }) : r, o;
796
+ }, {});
797
+ return Object.keys(e).map(function(o) {
798
+ return e[o];
799
+ });
800
+ }
801
+ var Rt = {
802
+ placement: "bottom",
803
+ modifiers: [],
804
+ strategy: "absolute"
805
+ };
806
+ function At() {
807
+ for (var t = arguments.length, e = new Array(t), o = 0; o < t; o++)
808
+ e[o] = arguments[o];
809
+ return !e.some(function(r) {
810
+ return !(r && typeof r.getBoundingClientRect == "function");
811
+ });
812
+ }
813
+ function yr(t) {
814
+ t === void 0 && (t = {});
815
+ var e = t, o = e.defaultModifiers, r = o === void 0 ? [] : o, a = e.defaultOptions, i = a === void 0 ? Rt : a;
816
+ return function(s, p, f) {
817
+ f === void 0 && (f = i);
818
+ var l = {
819
+ placement: "bottom",
820
+ orderedModifiers: [],
821
+ options: Object.assign({}, Rt, i),
822
+ modifiersData: {},
823
+ elements: {
824
+ reference: s,
825
+ popper: p
826
+ },
827
+ attributes: {},
828
+ styles: {}
829
+ }, g = [], O = !1, u = {
830
+ state: l,
831
+ setOptions: function(x) {
832
+ var A = typeof x == "function" ? x(l.options) : x;
833
+ v(), l.options = Object.assign({}, i, l.options, A), l.scrollParents = {
834
+ reference: ye(s) ? Ce(s) : s.contextElement ? Ce(s.contextElement) : [],
835
+ popper: Ce(p)
836
+ };
837
+ var T = mr(gr([].concat(r, l.options.modifiers)));
838
+ return l.orderedModifiers = T.filter(function(d) {
839
+ return d.enabled;
840
+ }), E(), u.update();
841
+ },
842
+ // Sync update – it will always be executed, even if not necessary. This
843
+ // is useful for low frequency updates where sync behavior simplifies the
844
+ // logic.
845
+ // For high frequency updates (e.g. `resize` and `scroll` events), always
846
+ // prefer the async Popper#update method
847
+ forceUpdate: function() {
848
+ if (!O) {
849
+ var x = l.elements, A = x.reference, T = x.popper;
850
+ if (At(A, T)) {
851
+ l.rects = {
852
+ reference: dr(A, ke(T), l.options.strategy === "fixed"),
853
+ popper: pt(T)
854
+ }, l.reset = !1, l.placement = l.options.placement, l.orderedModifiers.forEach(function(M) {
855
+ return l.modifiersData[M.name] = Object.assign({}, M.data);
856
+ });
857
+ for (var d = 0; d < l.orderedModifiers.length; d++) {
858
+ if (l.reset === !0) {
859
+ l.reset = !1, d = -1;
860
+ continue;
861
+ }
862
+ var y = l.orderedModifiers[d], b = y.fn, P = y.options, C = P === void 0 ? {} : P, w = y.name;
863
+ typeof b == "function" && (l = b({
864
+ state: l,
865
+ options: C,
866
+ name: w,
867
+ instance: u
868
+ }) || l);
869
+ }
870
+ }
871
+ }
872
+ },
873
+ // Async and optimistically optimized update – it will not be executed if
874
+ // not necessary (debounced to run at most once-per-tick)
875
+ update: hr(function() {
876
+ return new Promise(function(h) {
877
+ u.forceUpdate(), h(l);
878
+ });
879
+ }),
880
+ destroy: function() {
881
+ v(), O = !0;
882
+ }
883
+ };
884
+ if (!At(s, p))
885
+ return u;
886
+ u.setOptions(f).then(function(h) {
887
+ !O && f.onFirstUpdate && f.onFirstUpdate(h);
888
+ });
889
+ function E() {
890
+ l.orderedModifiers.forEach(function(h) {
891
+ var x = h.name, A = h.options, T = A === void 0 ? {} : A, d = h.effect;
892
+ if (typeof d == "function") {
893
+ var y = d({
894
+ state: l,
895
+ name: x,
896
+ instance: u,
897
+ options: T
898
+ }), b = function() {
899
+ };
900
+ g.push(y || b);
901
+ }
902
+ });
903
+ }
904
+ function v() {
905
+ g.forEach(function(h) {
906
+ return h();
907
+ }), g = [];
908
+ }
909
+ return u;
910
+ };
911
+ }
912
+ var br = [Uo, ir, Fo, jo, nr, _o, lr, Lo, tr], wr = /* @__PURE__ */ yr({
913
+ defaultModifiers: br
914
+ });
915
+ function Or(t) {
916
+ return jt("MuiPopper", t);
917
+ }
918
+ Ct("MuiPopper", ["root"]);
919
+ function xr(t, e) {
920
+ if (e === "ltr")
921
+ return t;
922
+ switch (t) {
923
+ case "bottom-end":
924
+ return "bottom-start";
925
+ case "bottom-start":
926
+ return "bottom-end";
927
+ case "top-end":
928
+ return "top-start";
929
+ case "top-start":
930
+ return "top-end";
931
+ default:
932
+ return t;
933
+ }
934
+ }
935
+ function Ge(t) {
936
+ return typeof t == "function" ? t() : t;
937
+ }
938
+ function Qe(t) {
939
+ return t.nodeType !== void 0;
940
+ }
941
+ function Tr(t) {
942
+ return !Qe(t);
943
+ }
944
+ const Pr = (t) => {
945
+ const {
946
+ classes: e
947
+ } = t;
948
+ return $t({
949
+ root: ["root"]
950
+ }, Or, e);
951
+ }, Er = {}, Rr = /* @__PURE__ */ j.forwardRef(function(e, o) {
952
+ const {
953
+ anchorEl: r,
954
+ children: a,
955
+ direction: i,
956
+ disablePortal: c,
957
+ modifiers: s,
958
+ open: p,
959
+ placement: f,
960
+ popperOptions: l,
961
+ popperRef: g,
962
+ slotProps: O = {},
963
+ slots: u = {},
964
+ TransitionProps: E,
965
+ // @ts-ignore internal logic
966
+ ownerState: v,
967
+ // prevent from spreading to DOM, it can come from the parent component e.g. Select.
968
+ ...h
969
+ } = e, x = j.useRef(null), A = ot(x, o), T = j.useRef(null), d = ot(T, g), y = j.useRef(d);
970
+ ht(() => {
971
+ y.current = d;
972
+ }, [d]), j.useImperativeHandle(g, () => T.current, []);
973
+ const b = xr(f, i), [P, C] = j.useState(b), [w, M] = j.useState(Ge(r));
974
+ j.useEffect(() => {
975
+ T.current && T.current.forceUpdate();
976
+ }), j.useEffect(() => {
977
+ r && M(Ge(r));
978
+ }, [r]), ht(() => {
979
+ if (!w || !p)
980
+ return;
981
+ const z = (B) => {
982
+ C(B.placement);
983
+ };
984
+ if (process.env.NODE_ENV !== "production" && w && Qe(w) && w.nodeType === 1) {
985
+ const B = w.getBoundingClientRect();
986
+ St() && B.top === 0 && B.left === 0 && B.right === 0 && B.bottom === 0 && console.warn(["MUI: The `anchorEl` prop provided to the component is invalid.", "The anchor element should be part of the document layout.", "Make sure the element is present in the document or that it's not display none."].join(`
987
+ `));
988
+ }
989
+ let $ = [{
990
+ name: "preventOverflow",
991
+ options: {
992
+ altBoundary: c
993
+ }
994
+ }, {
995
+ name: "flip",
996
+ options: {
997
+ altBoundary: c
998
+ }
999
+ }, {
1000
+ name: "onUpdate",
1001
+ enabled: !0,
1002
+ phase: "afterWrite",
1003
+ fn: ({
1004
+ state: B
1005
+ }) => {
1006
+ z(B);
1007
+ }
1008
+ }];
1009
+ s != null && ($ = $.concat(s)), l && l.modifiers != null && ($ = $.concat(l.modifiers));
1010
+ const N = wr(w, x.current, {
1011
+ placement: b,
1012
+ ...l,
1013
+ modifiers: $
1014
+ });
1015
+ return y.current(N), () => {
1016
+ N.destroy(), y.current(null);
1017
+ };
1018
+ }, [w, c, s, p, l, b]);
1019
+ const R = {
1020
+ placement: P
1021
+ };
1022
+ E !== null && (R.TransitionProps = E);
1023
+ const L = Pr(e), k = u.root ?? "div", S = no({
1024
+ elementType: k,
1025
+ externalSlotProps: O.root,
1026
+ externalForwardedProps: h,
1027
+ additionalProps: {
1028
+ role: "tooltip",
1029
+ ref: A
1030
+ },
1031
+ ownerState: e,
1032
+ className: L.root
1033
+ });
1034
+ return /* @__PURE__ */ oe(k, {
1035
+ ...S,
1036
+ children: typeof a == "function" ? a(R) : a
1037
+ });
1038
+ }), Yt = /* @__PURE__ */ j.forwardRef(function(e, o) {
1039
+ const {
1040
+ anchorEl: r,
1041
+ children: a,
1042
+ container: i,
1043
+ direction: c = "ltr",
1044
+ disablePortal: s = !1,
1045
+ keepMounted: p = !1,
1046
+ modifiers: f,
1047
+ open: l,
1048
+ placement: g = "bottom",
1049
+ popperOptions: O = Er,
1050
+ popperRef: u,
1051
+ style: E,
1052
+ transition: v = !1,
1053
+ slotProps: h = {},
1054
+ slots: x = {},
1055
+ ...A
1056
+ } = e, [T, d] = j.useState(!0), y = () => {
1057
+ d(!1);
1058
+ }, b = () => {
1059
+ d(!0);
1060
+ };
1061
+ if (!p && !l && (!v || T))
1062
+ return null;
1063
+ let P;
1064
+ if (i)
1065
+ P = i;
1066
+ else if (r) {
1067
+ const M = Ge(r);
1068
+ P = M && Qe(M) ? mt(M).body : mt(null).body;
1069
+ }
1070
+ const C = !l && p && (!v || T) ? "none" : void 0, w = v ? {
1071
+ in: l,
1072
+ onEnter: y,
1073
+ onExited: b
1074
+ } : void 0;
1075
+ return /* @__PURE__ */ oe(ro, {
1076
+ disablePortal: s,
1077
+ container: P,
1078
+ children: /* @__PURE__ */ oe(Rr, {
1079
+ anchorEl: r,
1080
+ direction: c,
1081
+ disablePortal: s,
1082
+ modifiers: f,
1083
+ ref: o,
1084
+ open: v ? !T : l,
1085
+ placement: g,
1086
+ popperOptions: O,
1087
+ popperRef: u,
1088
+ slotProps: h,
1089
+ slots: x,
1090
+ ...A,
1091
+ style: {
1092
+ // Prevents scroll issue, waiting for Popper.js to add this style once initiated.
1093
+ position: "fixed",
1094
+ // Fix Popper.js display issue
1095
+ top: 0,
1096
+ left: 0,
1097
+ display: C,
1098
+ ...E
1099
+ },
1100
+ TransitionProps: w,
1101
+ children: a
1102
+ })
1103
+ });
1104
+ });
1105
+ process.env.NODE_ENV !== "production" && (Yt.propTypes = {
1106
+ // ┌────────────────────────────── Warning ──────────────────────────────┐
1107
+ // │ These PropTypes are generated from the TypeScript type definitions. │
1108
+ // │ To update them, edit the TypeScript types and run `pnpm proptypes`. │
1109
+ // └─────────────────────────────────────────────────────────────────────┘
1110
+ /**
1111
+ * An HTML element, [virtualElement](https://popper.js.org/docs/v2/virtual-elements/),
1112
+ * or a function that returns either.
1113
+ * It's used to set the position of the popper.
1114
+ * The return value will passed as the reference object of the Popper instance.
1115
+ */
1116
+ anchorEl: ao(n.oneOfType([Ye, n.object, n.func]), (t) => {
1117
+ if (t.open) {
1118
+ const e = Ge(t.anchorEl);
1119
+ if (e && Qe(e) && e.nodeType === 1) {
1120
+ const o = e.getBoundingClientRect();
1121
+ if (process.env.NODE_ENV !== "production" && St() && o.top === 0 && o.left === 0 && o.right === 0 && o.bottom === 0)
1122
+ return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.", "The anchor element should be part of the document layout.", "Make sure the element is present in the document or that it's not display none."].join(`
1123
+ `));
1124
+ } else if (!e || typeof e.getBoundingClientRect != "function" || Tr(e) && e.contextElement != null && e.contextElement.nodeType !== 1)
1125
+ return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.", "It should be an HTML element instance or a virtualElement ", "(https://popper.js.org/docs/v2/virtual-elements/)."].join(`
1126
+ `));
1127
+ }
1128
+ return null;
1129
+ }),
1130
+ /**
1131
+ * Popper render function or node.
1132
+ */
1133
+ children: n.oneOfType([n.node, n.func]),
1134
+ /**
1135
+ * An HTML element or function that returns one.
1136
+ * The `container` will have the portal children appended to it.
1137
+ *
1138
+ * You can also provide a callback, which is called in a React layout effect.
1139
+ * This lets you set the container from a ref, and also makes server-side rendering possible.
1140
+ *
1141
+ * By default, it uses the body of the top-level document object,
1142
+ * so it's simply `document.body` most of the time.
1143
+ */
1144
+ container: n.oneOfType([Ye, n.func]),
1145
+ /**
1146
+ * Direction of the text.
1147
+ * @default 'ltr'
1148
+ */
1149
+ direction: n.oneOf(["ltr", "rtl"]),
1150
+ /**
1151
+ * The `children` will be under the DOM hierarchy of the parent component.
1152
+ * @default false
1153
+ */
1154
+ disablePortal: n.bool,
1155
+ /**
1156
+ * Always keep the children in the DOM.
1157
+ * This prop can be useful in SEO situation or
1158
+ * when you want to maximize the responsiveness of the Popper.
1159
+ * @default false
1160
+ */
1161
+ keepMounted: n.bool,
1162
+ /**
1163
+ * Popper.js is based on a "plugin-like" architecture,
1164
+ * most of its features are fully encapsulated "modifiers".
1165
+ *
1166
+ * A modifier is a function that is called each time Popper.js needs to
1167
+ * compute the position of the popper.
1168
+ * For this reason, modifiers should be very performant to avoid bottlenecks.
1169
+ * To learn how to create a modifier, [read the modifiers documentation](https://popper.js.org/docs/v2/modifiers/).
1170
+ */
1171
+ modifiers: n.arrayOf(n.shape({
1172
+ data: n.object,
1173
+ effect: n.func,
1174
+ enabled: n.bool,
1175
+ fn: n.func,
1176
+ name: n.any,
1177
+ options: n.object,
1178
+ phase: n.oneOf(["afterMain", "afterRead", "afterWrite", "beforeMain", "beforeRead", "beforeWrite", "main", "read", "write"]),
1179
+ requires: n.arrayOf(n.string),
1180
+ requiresIfExists: n.arrayOf(n.string)
1181
+ })),
1182
+ /**
1183
+ * If `true`, the component is shown.
1184
+ */
1185
+ open: n.bool.isRequired,
1186
+ /**
1187
+ * Popper placement.
1188
+ * @default 'bottom'
1189
+ */
1190
+ placement: n.oneOf(["auto-end", "auto-start", "auto", "bottom-end", "bottom-start", "bottom", "left-end", "left-start", "left", "right-end", "right-start", "right", "top-end", "top-start", "top"]),
1191
+ /**
1192
+ * Options provided to the [`Popper.js`](https://popper.js.org/docs/v2/constructors/#options) instance.
1193
+ * @default {}
1194
+ */
1195
+ popperOptions: n.shape({
1196
+ modifiers: n.array,
1197
+ onFirstUpdate: n.func,
1198
+ placement: n.oneOf(["auto-end", "auto-start", "auto", "bottom-end", "bottom-start", "bottom", "left-end", "left-start", "left", "right-end", "right-start", "right", "top-end", "top-start", "top"]),
1199
+ strategy: n.oneOf(["absolute", "fixed"])
1200
+ }),
1201
+ /**
1202
+ * A ref that points to the used popper instance.
1203
+ */
1204
+ popperRef: Dt,
1205
+ /**
1206
+ * The props used for each slot inside the Popper.
1207
+ * @default {}
1208
+ */
1209
+ slotProps: n.shape({
1210
+ root: n.oneOfType([n.func, n.object])
1211
+ }),
1212
+ /**
1213
+ * The components used for each slot inside the Popper.
1214
+ * Either a string to use a HTML element or a component.
1215
+ * @default {}
1216
+ */
1217
+ slots: n.shape({
1218
+ root: n.elementType
1219
+ }),
1220
+ /**
1221
+ * Help supporting a react-transition-group/Transition component.
1222
+ * @default false
1223
+ */
1224
+ transition: n.bool
1225
+ });
1226
+ const Ar = Ke(Yt, {
1227
+ name: "MuiPopper",
1228
+ slot: "Root"
1229
+ })({}), dt = /* @__PURE__ */ j.forwardRef(function(e, o) {
1230
+ const r = kt(), a = Bt({
1231
+ props: e,
1232
+ name: "MuiPopper"
1233
+ }), {
1234
+ anchorEl: i,
1235
+ component: c,
1236
+ container: s,
1237
+ disablePortal: p,
1238
+ keepMounted: f,
1239
+ modifiers: l,
1240
+ open: g,
1241
+ placement: O,
1242
+ popperOptions: u,
1243
+ popperRef: E,
1244
+ transition: v,
1245
+ slots: h,
1246
+ slotProps: x,
1247
+ ...A
1248
+ } = a, T = {
1249
+ anchorEl: i,
1250
+ container: s,
1251
+ disablePortal: p,
1252
+ keepMounted: f,
1253
+ modifiers: l,
1254
+ open: g,
1255
+ placement: O,
1256
+ popperOptions: u,
1257
+ popperRef: E,
1258
+ transition: v,
1259
+ ...A
1260
+ };
1261
+ return /* @__PURE__ */ oe(Ar, {
1262
+ as: c,
1263
+ direction: r ? "rtl" : "ltr",
1264
+ slots: h,
1265
+ slotProps: x,
1266
+ ...T,
1267
+ ref: o
1268
+ });
1269
+ });
1270
+ process.env.NODE_ENV !== "production" && (dt.propTypes = {
1271
+ // ┌────────────────────────────── Warning ──────────────────────────────┐
1272
+ // │ These PropTypes are generated from the TypeScript type definitions. │
1273
+ // │ To update them, edit the TypeScript types and run `pnpm proptypes`. │
1274
+ // └─────────────────────────────────────────────────────────────────────┘
1275
+ /**
1276
+ * An HTML element, [virtualElement](https://popper.js.org/docs/v2/virtual-elements/),
1277
+ * or a function that returns either.
1278
+ * It's used to set the position of the popper.
1279
+ * The return value will passed as the reference object of the Popper instance.
1280
+ */
1281
+ anchorEl: n.oneOfType([Ye, n.object, n.func]),
1282
+ /**
1283
+ * Popper render function or node.
1284
+ */
1285
+ children: n.oneOfType([n.node, n.func]),
1286
+ /**
1287
+ * The component used for the root node.
1288
+ * Either a string to use a HTML element or a component.
1289
+ */
1290
+ component: n.elementType,
1291
+ /**
1292
+ * An HTML element or function that returns one.
1293
+ * The `container` will have the portal children appended to it.
1294
+ *
1295
+ * You can also provide a callback, which is called in a React layout effect.
1296
+ * This lets you set the container from a ref, and also makes server-side rendering possible.
1297
+ *
1298
+ * By default, it uses the body of the top-level document object,
1299
+ * so it's simply `document.body` most of the time.
1300
+ */
1301
+ container: n.oneOfType([Ye, n.func]),
1302
+ /**
1303
+ * The `children` will be under the DOM hierarchy of the parent component.
1304
+ * @default false
1305
+ */
1306
+ disablePortal: n.bool,
1307
+ /**
1308
+ * Always keep the children in the DOM.
1309
+ * This prop can be useful in SEO situation or
1310
+ * when you want to maximize the responsiveness of the Popper.
1311
+ * @default false
1312
+ */
1313
+ keepMounted: n.bool,
1314
+ /**
1315
+ * Popper.js is based on a "plugin-like" architecture,
1316
+ * most of its features are fully encapsulated "modifiers".
1317
+ *
1318
+ * A modifier is a function that is called each time Popper.js needs to
1319
+ * compute the position of the popper.
1320
+ * For this reason, modifiers should be very performant to avoid bottlenecks.
1321
+ * To learn how to create a modifier, [read the modifiers documentation](https://popper.js.org/docs/v2/modifiers/).
1322
+ */
1323
+ modifiers: n.arrayOf(n.shape({
1324
+ data: n.object,
1325
+ effect: n.func,
1326
+ enabled: n.bool,
1327
+ fn: n.func,
1328
+ name: n.any,
1329
+ options: n.object,
1330
+ phase: n.oneOf(["afterMain", "afterRead", "afterWrite", "beforeMain", "beforeRead", "beforeWrite", "main", "read", "write"]),
1331
+ requires: n.arrayOf(n.string),
1332
+ requiresIfExists: n.arrayOf(n.string)
1333
+ })),
1334
+ /**
1335
+ * If `true`, the component is shown.
1336
+ */
1337
+ open: n.bool.isRequired,
1338
+ /**
1339
+ * Popper placement.
1340
+ * @default 'bottom'
1341
+ */
1342
+ placement: n.oneOf(["auto-end", "auto-start", "auto", "bottom-end", "bottom-start", "bottom", "left-end", "left-start", "left", "right-end", "right-start", "right", "top-end", "top-start", "top"]),
1343
+ /**
1344
+ * Options provided to the [`Popper.js`](https://popper.js.org/docs/v2/constructors/#options) instance.
1345
+ * @default {}
1346
+ */
1347
+ popperOptions: n.shape({
1348
+ modifiers: n.array,
1349
+ onFirstUpdate: n.func,
1350
+ placement: n.oneOf(["auto-end", "auto-start", "auto", "bottom-end", "bottom-start", "bottom", "left-end", "left-start", "left", "right-end", "right-start", "right", "top-end", "top-start", "top"]),
1351
+ strategy: n.oneOf(["absolute", "fixed"])
1352
+ }),
1353
+ /**
1354
+ * A ref that points to the used popper instance.
1355
+ */
1356
+ popperRef: Dt,
1357
+ /**
1358
+ * The props used for each slot inside the Popper.
1359
+ * @default {}
1360
+ */
1361
+ slotProps: n.shape({
1362
+ root: n.oneOfType([n.func, n.object])
1363
+ }),
1364
+ /**
1365
+ * The components used for each slot inside the Popper.
1366
+ * Either a string to use a HTML element or a component.
1367
+ * @default {}
1368
+ */
1369
+ slots: n.shape({
1370
+ root: n.elementType
1371
+ }),
1372
+ /**
1373
+ * The system prop that allows defining system overrides as well as additional CSS styles.
1374
+ */
1375
+ sx: n.oneOfType([n.arrayOf(n.oneOfType([n.func, n.object, n.bool])), n.func, n.object]),
1376
+ /**
1377
+ * Help supporting a react-transition-group/Transition component.
1378
+ * @default false
1379
+ */
1380
+ transition: n.bool
1381
+ });
1382
+ function Mr(t) {
1383
+ return jt("MuiTooltip", t);
1384
+ }
1385
+ const D = Ct("MuiTooltip", ["popper", "popperInteractive", "popperArrow", "popperClose", "tooltip", "tooltipArrow", "touch", "tooltipPlacementLeft", "tooltipPlacementRight", "tooltipPlacementTop", "tooltipPlacementBottom", "arrow"]);
1386
+ function jr(t) {
1387
+ return Math.round(t * 1e5) / 1e5;
1388
+ }
1389
+ const Cr = (t) => {
1390
+ const {
1391
+ classes: e,
1392
+ disableInteractive: o,
1393
+ arrow: r,
1394
+ touch: a,
1395
+ placement: i
1396
+ } = t, c = {
1397
+ popper: ["popper", !o && "popperInteractive", r && "popperArrow"],
1398
+ tooltip: ["tooltip", r && "tooltipArrow", a && "touch", `tooltipPlacement${Lt(i.split("-")[0])}`],
1399
+ arrow: ["arrow"]
1400
+ };
1401
+ return $t(c, Mr, e);
1402
+ }, Sr = Ke(dt, {
1403
+ name: "MuiTooltip",
1404
+ slot: "Popper",
1405
+ overridesResolver: (t, e) => {
1406
+ const {
1407
+ ownerState: o
1408
+ } = t;
1409
+ return [e.popper, !o.disableInteractive && e.popperInteractive, o.arrow && e.popperArrow, !o.open && e.popperClose];
1410
+ }
1411
+ })(at(({
1412
+ theme: t
1413
+ }) => ({
1414
+ zIndex: (t.vars || t).zIndex.tooltip,
1415
+ pointerEvents: "none",
1416
+ variants: [{
1417
+ props: ({
1418
+ ownerState: e
1419
+ }) => !e.disableInteractive,
1420
+ style: {
1421
+ pointerEvents: "auto"
1422
+ }
1423
+ }, {
1424
+ props: ({
1425
+ open: e
1426
+ }) => !e,
1427
+ style: {
1428
+ pointerEvents: "none"
1429
+ }
1430
+ }, {
1431
+ props: ({
1432
+ ownerState: e
1433
+ }) => e.arrow,
1434
+ style: {
1435
+ [`&[data-popper-placement*="bottom"] .${D.arrow}`]: {
1436
+ top: 0,
1437
+ marginTop: "-0.71em",
1438
+ "&::before": {
1439
+ transformOrigin: "0 100%"
1440
+ }
1441
+ },
1442
+ [`&[data-popper-placement*="top"] .${D.arrow}`]: {
1443
+ bottom: 0,
1444
+ marginBottom: "-0.71em",
1445
+ "&::before": {
1446
+ transformOrigin: "100% 0"
1447
+ }
1448
+ },
1449
+ [`&[data-popper-placement*="right"] .${D.arrow}`]: {
1450
+ height: "1em",
1451
+ width: "0.71em",
1452
+ "&::before": {
1453
+ transformOrigin: "100% 100%"
1454
+ }
1455
+ },
1456
+ [`&[data-popper-placement*="left"] .${D.arrow}`]: {
1457
+ height: "1em",
1458
+ width: "0.71em",
1459
+ "&::before": {
1460
+ transformOrigin: "0 0"
1461
+ }
1462
+ }
1463
+ }
1464
+ }, {
1465
+ props: ({
1466
+ ownerState: e
1467
+ }) => e.arrow && !e.isRtl,
1468
+ style: {
1469
+ [`&[data-popper-placement*="right"] .${D.arrow}`]: {
1470
+ left: 0,
1471
+ marginLeft: "-0.71em"
1472
+ }
1473
+ }
1474
+ }, {
1475
+ props: ({
1476
+ ownerState: e
1477
+ }) => e.arrow && !!e.isRtl,
1478
+ style: {
1479
+ [`&[data-popper-placement*="right"] .${D.arrow}`]: {
1480
+ right: 0,
1481
+ marginRight: "-0.71em"
1482
+ }
1483
+ }
1484
+ }, {
1485
+ props: ({
1486
+ ownerState: e
1487
+ }) => e.arrow && !e.isRtl,
1488
+ style: {
1489
+ [`&[data-popper-placement*="left"] .${D.arrow}`]: {
1490
+ right: 0,
1491
+ marginRight: "-0.71em"
1492
+ }
1493
+ }
1494
+ }, {
1495
+ props: ({
1496
+ ownerState: e
1497
+ }) => e.arrow && !!e.isRtl,
1498
+ style: {
1499
+ [`&[data-popper-placement*="left"] .${D.arrow}`]: {
1500
+ left: 0,
1501
+ marginLeft: "-0.71em"
1502
+ }
1503
+ }
1504
+ }]
1505
+ }))), $r = Ke("div", {
1506
+ name: "MuiTooltip",
1507
+ slot: "Tooltip",
1508
+ overridesResolver: (t, e) => {
1509
+ const {
1510
+ ownerState: o
1511
+ } = t;
1512
+ return [e.tooltip, o.touch && e.touch, o.arrow && e.tooltipArrow, e[`tooltipPlacement${Lt(o.placement.split("-")[0])}`]];
1513
+ }
1514
+ })(at(({
1515
+ theme: t
1516
+ }) => ({
1517
+ backgroundColor: t.vars ? t.vars.palette.Tooltip.bg : t.alpha(t.palette.grey[700], 0.92),
1518
+ borderRadius: (t.vars || t).shape.borderRadius,
1519
+ color: (t.vars || t).palette.common.white,
1520
+ fontFamily: t.typography.fontFamily,
1521
+ padding: "4px 8px",
1522
+ fontSize: t.typography.pxToRem(11),
1523
+ maxWidth: 300,
1524
+ margin: 2,
1525
+ wordWrap: "break-word",
1526
+ fontWeight: t.typography.fontWeightMedium,
1527
+ [`.${D.popper}[data-popper-placement*="left"] &`]: {
1528
+ transformOrigin: "right center"
1529
+ },
1530
+ [`.${D.popper}[data-popper-placement*="right"] &`]: {
1531
+ transformOrigin: "left center"
1532
+ },
1533
+ [`.${D.popper}[data-popper-placement*="top"] &`]: {
1534
+ transformOrigin: "center bottom",
1535
+ marginBottom: "14px"
1536
+ },
1537
+ [`.${D.popper}[data-popper-placement*="bottom"] &`]: {
1538
+ transformOrigin: "center top",
1539
+ marginTop: "14px"
1540
+ },
1541
+ variants: [{
1542
+ props: ({
1543
+ ownerState: e
1544
+ }) => e.arrow,
1545
+ style: {
1546
+ position: "relative",
1547
+ margin: 0
1548
+ }
1549
+ }, {
1550
+ props: ({
1551
+ ownerState: e
1552
+ }) => e.touch,
1553
+ style: {
1554
+ padding: "8px 16px",
1555
+ fontSize: t.typography.pxToRem(14),
1556
+ lineHeight: `${jr(16 / 14)}em`,
1557
+ fontWeight: t.typography.fontWeightRegular
1558
+ }
1559
+ }, {
1560
+ props: ({
1561
+ ownerState: e
1562
+ }) => !e.isRtl,
1563
+ style: {
1564
+ [`.${D.popper}[data-popper-placement*="left"] &`]: {
1565
+ marginRight: "14px"
1566
+ },
1567
+ [`.${D.popper}[data-popper-placement*="right"] &`]: {
1568
+ marginLeft: "14px"
1569
+ }
1570
+ }
1571
+ }, {
1572
+ props: ({
1573
+ ownerState: e
1574
+ }) => !e.isRtl && e.touch,
1575
+ style: {
1576
+ [`.${D.popper}[data-popper-placement*="left"] &`]: {
1577
+ marginRight: "24px"
1578
+ },
1579
+ [`.${D.popper}[data-popper-placement*="right"] &`]: {
1580
+ marginLeft: "24px"
1581
+ }
1582
+ }
1583
+ }, {
1584
+ props: ({
1585
+ ownerState: e
1586
+ }) => !!e.isRtl,
1587
+ style: {
1588
+ [`.${D.popper}[data-popper-placement*="left"] &`]: {
1589
+ marginLeft: "14px"
1590
+ },
1591
+ [`.${D.popper}[data-popper-placement*="right"] &`]: {
1592
+ marginRight: "14px"
1593
+ }
1594
+ }
1595
+ }, {
1596
+ props: ({
1597
+ ownerState: e
1598
+ }) => !!e.isRtl && e.touch,
1599
+ style: {
1600
+ [`.${D.popper}[data-popper-placement*="left"] &`]: {
1601
+ marginLeft: "24px"
1602
+ },
1603
+ [`.${D.popper}[data-popper-placement*="right"] &`]: {
1604
+ marginRight: "24px"
1605
+ }
1606
+ }
1607
+ }, {
1608
+ props: ({
1609
+ ownerState: e
1610
+ }) => e.touch,
1611
+ style: {
1612
+ [`.${D.popper}[data-popper-placement*="top"] &`]: {
1613
+ marginBottom: "24px"
1614
+ }
1615
+ }
1616
+ }, {
1617
+ props: ({
1618
+ ownerState: e
1619
+ }) => e.touch,
1620
+ style: {
1621
+ [`.${D.popper}[data-popper-placement*="bottom"] &`]: {
1622
+ marginTop: "24px"
1623
+ }
1624
+ }
1625
+ }]
1626
+ }))), Dr = Ke("span", {
1627
+ name: "MuiTooltip",
1628
+ slot: "Arrow"
1629
+ })(at(({
1630
+ theme: t
1631
+ }) => ({
1632
+ overflow: "hidden",
1633
+ position: "absolute",
1634
+ width: "1em",
1635
+ height: "0.71em",
1636
+ boxSizing: "border-box",
1637
+ color: t.vars ? t.vars.palette.Tooltip.bg : t.alpha(t.palette.grey[700], 0.9),
1638
+ "&::before": {
1639
+ content: '""',
1640
+ margin: "auto",
1641
+ display: "block",
1642
+ width: "100%",
1643
+ height: "100%",
1644
+ backgroundColor: "currentColor",
1645
+ transform: "rotate(45deg)"
1646
+ }
1647
+ })));
1648
+ let Ve = !1;
1649
+ const Mt = new fo();
1650
+ let Me = {
1651
+ x: 0,
1652
+ y: 0
1653
+ };
1654
+ function qe(t, e) {
1655
+ return (o, ...r) => {
1656
+ e && e(o, ...r), t(o, ...r);
1657
+ };
1658
+ }
1659
+ const Xt = /* @__PURE__ */ j.forwardRef(function(e, o) {
1660
+ const r = Bt({
1661
+ props: e,
1662
+ name: "MuiTooltip"
1663
+ }), {
1664
+ arrow: a = !1,
1665
+ children: i,
1666
+ classes: c,
1667
+ describeChild: s = !1,
1668
+ disableFocusListener: p = !1,
1669
+ disableHoverListener: f = !1,
1670
+ disableInteractive: l = !1,
1671
+ disableTouchListener: g = !1,
1672
+ enterDelay: O = 100,
1673
+ enterNextDelay: u = 0,
1674
+ enterTouchDelay: E = 700,
1675
+ followCursor: v = !1,
1676
+ id: h,
1677
+ leaveDelay: x = 0,
1678
+ leaveTouchDelay: A = 1500,
1679
+ onClose: T,
1680
+ onOpen: d,
1681
+ open: y,
1682
+ placement: b = "bottom",
1683
+ slotProps: P = {},
1684
+ slots: C = {},
1685
+ title: w,
1686
+ ...M
1687
+ } = r, R = /* @__PURE__ */ j.isValidElement(i) ? i : /* @__PURE__ */ oe("span", {
1688
+ children: i
1689
+ }), L = io(), k = kt(), [S, z] = j.useState(), [$, N] = j.useState(null), B = j.useRef(!1), K = l || v, de = Fe(), ve = Fe(), Q = Fe(), me = Fe(), [ne, J] = so({
1690
+ controlled: y,
1691
+ default: !1,
1692
+ name: "Tooltip",
1693
+ state: "open"
1694
+ });
1695
+ let W = ne;
1696
+ if (process.env.NODE_ENV !== "production") {
1697
+ const {
1698
+ current: m
1699
+ } = j.useRef(y !== void 0);
1700
+ j.useEffect(() => {
1701
+ S && S.disabled && !m && w !== "" && S.tagName.toLowerCase() === "button" && console.warn(["MUI: You are providing a disabled `button` child to the Tooltip component.", "A disabled element does not fire events.", "Tooltip needs to listen to the child element's events to display the title.", "", "Add a simple wrapper element, such as a `span`."].join(`
1702
+ `));
1703
+ }, [w, S, m]);
1704
+ }
1705
+ const ae = po(h), V = j.useRef(), ie = gt(() => {
1706
+ V.current !== void 0 && (document.body.style.WebkitUserSelect = V.current, V.current = void 0), me.clear();
1707
+ });
1708
+ j.useEffect(() => ie, [ie]);
1709
+ const Be = (m) => {
1710
+ Mt.clear(), Ve = !0, J(!0), d && !W && d(m);
1711
+ }, se = gt(
1712
+ /**
1713
+ * @param {React.SyntheticEvent | Event} event
1714
+ */
1715
+ (m) => {
1716
+ Mt.start(800 + x, () => {
1717
+ Ve = !1;
1718
+ }), J(!1), T && W && T(m), de.start(L.transitions.duration.shortest, () => {
1719
+ B.current = !1;
1720
+ });
1721
+ }
1722
+ ), be = (m) => {
1723
+ B.current && m.type !== "touchstart" || (S && S.removeAttribute("title"), ve.clear(), Q.clear(), O || Ve && u ? ve.start(Ve ? u : O, () => {
1724
+ Be(m);
1725
+ }) : Be(m));
1726
+ }, we = (m) => {
1727
+ ve.clear(), Q.start(x, () => {
1728
+ se(m);
1729
+ });
1730
+ }, [, Le] = j.useState(!1), Ne = (m) => {
1731
+ const F = m?.target ?? S;
1732
+ if (!F || !yt(F)) {
1733
+ Le(!1);
1734
+ const tt = m ?? new Event("blur");
1735
+ !m && F && (Object.defineProperty(tt, "target", {
1736
+ value: F
1737
+ }), Object.defineProperty(tt, "currentTarget", {
1738
+ value: F
1739
+ })), we(tt);
1740
+ }
1741
+ }, Ee = (m) => {
1742
+ S || z(m.currentTarget), yt(m.target) && (Le(!0), be(m));
1743
+ }, Re = (m) => {
1744
+ B.current = !0;
1745
+ const F = R.props;
1746
+ F.onTouchStart && F.onTouchStart(m);
1747
+ }, Ze = (m) => {
1748
+ Re(m), Q.clear(), de.clear(), ie(), V.current = document.body.style.WebkitUserSelect, document.body.style.WebkitUserSelect = "none", me.start(E, () => {
1749
+ document.body.style.WebkitUserSelect = V.current, be(m);
1750
+ });
1751
+ }, _e = (m) => {
1752
+ R.props.onTouchEnd && R.props.onTouchEnd(m), ie(), Q.start(A, () => {
1753
+ se(m);
1754
+ });
1755
+ };
1756
+ j.useEffect(() => {
1757
+ if (!W)
1758
+ return;
1759
+ function m(F) {
1760
+ F.key === "Escape" && se(F);
1761
+ }
1762
+ return document.addEventListener("keydown", m), () => {
1763
+ document.removeEventListener("keydown", m);
1764
+ };
1765
+ }, [se, W]);
1766
+ const ee = ot(lo(R), z, o);
1767
+ !w && w !== 0 && (W = !1);
1768
+ const pe = j.useRef(), We = (m) => {
1769
+ const F = R.props;
1770
+ F.onMouseMove && F.onMouseMove(m), Me = {
1771
+ x: m.clientX,
1772
+ y: m.clientY
1773
+ }, pe.current && pe.current.update();
1774
+ }, le = {}, he = typeof w == "string";
1775
+ s ? (le.title = !W && he && !f ? w : null, le["aria-describedby"] = W ? ae : null) : (le["aria-label"] = he ? w : null, le["aria-labelledby"] = W && !he ? ae : null);
1776
+ const I = {
1777
+ ...le,
1778
+ ...M,
1779
+ ...R.props,
1780
+ className: vo(M.className, R.props.className),
1781
+ onTouchStart: Re,
1782
+ ref: ee,
1783
+ ...v ? {
1784
+ onMouseMove: We
1785
+ } : {}
1786
+ };
1787
+ process.env.NODE_ENV !== "production" && (I["data-mui-internal-clone-element"] = !0, j.useEffect(() => {
1788
+ S && !S.getAttribute("data-mui-internal-clone-element") && console.error(["MUI: The `children` component of the Tooltip is not forwarding its props correctly.", "Please make sure that props are spread on the same element that the ref is applied to."].join(`
1789
+ `));
1790
+ }, [S]));
1791
+ const ce = {};
1792
+ g || (I.onTouchStart = Ze, I.onTouchEnd = _e), f || (I.onMouseOver = qe(be, I.onMouseOver), I.onMouseLeave = qe(we, I.onMouseLeave), K || (ce.onMouseOver = be, ce.onMouseLeave = we)), p || (I.onFocus = qe(Ee, I.onFocus), I.onBlur = qe(Ne, I.onBlur), K || (ce.onFocus = Ee, ce.onBlur = Ne)), process.env.NODE_ENV !== "production" && R.props.title && console.error(["MUI: You have provided a `title` prop to the child of <Tooltip />.", `Remove this title prop \`${R.props.title}\` or the Tooltip component.`].join(`
1793
+ `));
1794
+ const te = {
1795
+ ...r,
1796
+ isRtl: k,
1797
+ arrow: a,
1798
+ disableInteractive: K,
1799
+ placement: b,
1800
+ touch: B.current
1801
+ }, fe = typeof P.popper == "function" ? P.popper(te) : P.popper, Gt = j.useMemo(() => {
1802
+ let m = [{
1803
+ name: "arrow",
1804
+ enabled: !!$,
1805
+ options: {
1806
+ element: $,
1807
+ padding: 4
1808
+ }
1809
+ }];
1810
+ return fe?.popperOptions?.modifiers && (m = m.concat(fe.popperOptions.modifiers)), {
1811
+ ...fe?.popperOptions,
1812
+ modifiers: m
1813
+ };
1814
+ }, [$, fe?.popperOptions]), et = Cr(te), Ie = {
1815
+ slots: C,
1816
+ slotProps: {
1817
+ arrow: P.arrow,
1818
+ popper: fe,
1819
+ tooltip: P.tooltip,
1820
+ transition: P.transition
1821
+ }
1822
+ }, [Kt, Jt] = He("popper", {
1823
+ elementType: Sr,
1824
+ externalForwardedProps: Ie,
1825
+ ownerState: te,
1826
+ className: et.popper
1827
+ }), [Qt, Zt] = He("transition", {
1828
+ elementType: co,
1829
+ externalForwardedProps: Ie,
1830
+ ownerState: te
1831
+ }), [_t, eo] = He("tooltip", {
1832
+ elementType: $r,
1833
+ className: et.tooltip,
1834
+ externalForwardedProps: Ie,
1835
+ ownerState: te
1836
+ }), [to, oo] = He("arrow", {
1837
+ elementType: Dr,
1838
+ className: et.arrow,
1839
+ externalForwardedProps: Ie,
1840
+ ownerState: te,
1841
+ ref: N
1842
+ });
1843
+ return /* @__PURE__ */ vt(j.Fragment, {
1844
+ children: [/* @__PURE__ */ j.cloneElement(R, I), /* @__PURE__ */ oe(Kt, {
1845
+ as: dt,
1846
+ placement: b,
1847
+ anchorEl: v ? {
1848
+ getBoundingClientRect: () => ({
1849
+ top: Me.y,
1850
+ left: Me.x,
1851
+ right: Me.x,
1852
+ bottom: Me.y,
1853
+ width: 0,
1854
+ height: 0
1855
+ })
1856
+ } : S,
1857
+ popperRef: pe,
1858
+ open: S ? W : !1,
1859
+ id: ae,
1860
+ transition: !0,
1861
+ ...ce,
1862
+ ...Jt,
1863
+ popperOptions: Gt,
1864
+ children: ({
1865
+ TransitionProps: m
1866
+ }) => /* @__PURE__ */ oe(Qt, {
1867
+ timeout: L.transitions.duration.shorter,
1868
+ ...m,
1869
+ ...Zt,
1870
+ children: /* @__PURE__ */ vt(_t, {
1871
+ ...eo,
1872
+ children: [w, a ? /* @__PURE__ */ oe(to, {
1873
+ ...oo
1874
+ }) : null]
1875
+ })
1876
+ })
1877
+ })]
1878
+ });
1879
+ });
1880
+ process.env.NODE_ENV !== "production" && (Xt.propTypes = {
1881
+ // ┌────────────────────────────── Warning ──────────────────────────────┐
1882
+ // │ These PropTypes are generated from the TypeScript type definitions. │
1883
+ // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
1884
+ // └─────────────────────────────────────────────────────────────────────┘
1885
+ /**
1886
+ * If `true`, adds an arrow to the tooltip.
1887
+ * @default false
1888
+ */
1889
+ arrow: n.bool,
1890
+ /**
1891
+ * Tooltip reference element.
1892
+ */
1893
+ children: uo.isRequired,
1894
+ /**
1895
+ * Override or extend the styles applied to the component.
1896
+ */
1897
+ classes: n.object,
1898
+ /**
1899
+ * @ignore
1900
+ */
1901
+ className: n.string,
1902
+ /**
1903
+ * Set to `true` if the `title` acts as an accessible description.
1904
+ * By default the `title` acts as an accessible label for the child.
1905
+ * @default false
1906
+ */
1907
+ describeChild: n.bool,
1908
+ /**
1909
+ * Do not respond to focus-visible events.
1910
+ * @default false
1911
+ */
1912
+ disableFocusListener: n.bool,
1913
+ /**
1914
+ * Do not respond to hover events.
1915
+ * @default false
1916
+ */
1917
+ disableHoverListener: n.bool,
1918
+ /**
1919
+ * Makes a tooltip not interactive, i.e. it will close when the user
1920
+ * hovers over the tooltip before the `leaveDelay` is expired.
1921
+ * @default false
1922
+ */
1923
+ disableInteractive: n.bool,
1924
+ /**
1925
+ * Do not respond to long press touch events.
1926
+ * @default false
1927
+ */
1928
+ disableTouchListener: n.bool,
1929
+ /**
1930
+ * The number of milliseconds to wait before showing the tooltip.
1931
+ * This prop won't impact the enter touch delay (`enterTouchDelay`).
1932
+ * @default 100
1933
+ */
1934
+ enterDelay: n.number,
1935
+ /**
1936
+ * The number of milliseconds to wait before showing the tooltip when one was already recently opened.
1937
+ * @default 0
1938
+ */
1939
+ enterNextDelay: n.number,
1940
+ /**
1941
+ * The number of milliseconds a user must touch the element before showing the tooltip.
1942
+ * @default 700
1943
+ */
1944
+ enterTouchDelay: n.number,
1945
+ /**
1946
+ * If `true`, the tooltip follow the cursor over the wrapped element.
1947
+ * @default false
1948
+ */
1949
+ followCursor: n.bool,
1950
+ /**
1951
+ * This prop is used to help implement the accessibility logic.
1952
+ * If you don't provide this prop. It falls back to a randomly generated id.
1953
+ */
1954
+ id: n.string,
1955
+ /**
1956
+ * The number of milliseconds to wait before hiding the tooltip.
1957
+ * This prop won't impact the leave touch delay (`leaveTouchDelay`).
1958
+ * @default 0
1959
+ */
1960
+ leaveDelay: n.number,
1961
+ /**
1962
+ * The number of milliseconds after the user stops touching an element before hiding the tooltip.
1963
+ * @default 1500
1964
+ */
1965
+ leaveTouchDelay: n.number,
1966
+ /**
1967
+ * Callback fired when the component requests to be closed.
1968
+ *
1969
+ * @param {React.SyntheticEvent} event The event source of the callback.
1970
+ */
1971
+ onClose: n.func,
1972
+ /**
1973
+ * Callback fired when the component requests to be open.
1974
+ *
1975
+ * @param {React.SyntheticEvent} event The event source of the callback.
1976
+ */
1977
+ onOpen: n.func,
1978
+ /**
1979
+ * If `true`, the component is shown.
1980
+ */
1981
+ open: n.bool,
1982
+ /**
1983
+ * Tooltip placement.
1984
+ * @default 'bottom'
1985
+ */
1986
+ placement: n.oneOf(["auto-end", "auto-start", "auto", "bottom-end", "bottom-start", "bottom", "left-end", "left-start", "left", "right-end", "right-start", "right", "top-end", "top-start", "top"]),
1987
+ /**
1988
+ * The props used for each slot inside.
1989
+ * @default {}
1990
+ */
1991
+ slotProps: n.shape({
1992
+ arrow: n.oneOfType([n.func, n.object]),
1993
+ popper: n.oneOfType([n.func, n.object]),
1994
+ tooltip: n.oneOfType([n.func, n.object]),
1995
+ transition: n.oneOfType([n.func, n.object])
1996
+ }),
1997
+ /**
1998
+ * The components used for each slot inside.
1999
+ * @default {}
2000
+ */
2001
+ slots: n.shape({
2002
+ arrow: n.elementType,
2003
+ popper: n.elementType,
2004
+ tooltip: n.elementType,
2005
+ transition: n.elementType
2006
+ }),
2007
+ /**
2008
+ * The system prop that allows defining system overrides as well as additional CSS styles.
2009
+ */
2010
+ sx: n.oneOfType([n.arrayOf(n.oneOfType([n.func, n.object, n.bool])), n.func, n.object]),
2011
+ /**
2012
+ * Tooltip title. Zero-length titles string, undefined, null and false are never displayed.
2013
+ */
2014
+ title: n.node
2015
+ });
2016
+ function Nr({
2017
+ children: t,
2018
+ title: e = "",
2019
+ placement: o = "bottom",
2020
+ arrow: r = !0,
2021
+ ...a
2022
+ }) {
2023
+ return /* @__PURE__ */ oe(
2024
+ Xt,
2025
+ {
2026
+ title: e,
2027
+ arrow: r,
2028
+ placement: o,
2029
+ slotProps: {
2030
+ tooltip: {
2031
+ sx: {
2032
+ maxWidth: "196px",
2033
+ whiteSpace: "normal",
2034
+ backgroundColor: "var(--ckcl-black-350, #676666)",
2035
+ color: "var(--ckcl-white, #FFFFFF)",
2036
+ fontSize: "var(--ckcl-fs-3xs, 10px)",
2037
+ padding: "var(--ckcl-spacing-sm, 8px) var(--ckcl-spacing-ms, 12px)",
2038
+ borderRadius: "8px",
2039
+ lineHeight: "var(--ckcl-leading-sm, 16px)",
2040
+ borderColor: "var(--ckcl-black-350, #676666)"
2041
+ }
2042
+ },
2043
+ arrow: {
2044
+ sx: {
2045
+ color: "var(--ckcl-black-350, #676666)",
2046
+ fontSize: "17px"
2047
+ }
2048
+ }
2049
+ },
2050
+ ...a,
2051
+ children: t
2052
+ }
2053
+ );
2054
+ }
2055
+ export {
2056
+ Nr as Tooltip
2057
+ };