@devtron-labs/devtron-fe-common-lib 0.0.58-beta-13 → 0.0.58-beta-18

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 (538) hide show
  1. package/.eslintignore +96 -0
  2. package/.eslintrc.js +109 -0
  3. package/.github/pull_request_template.md +25 -0
  4. package/.github/workflows/ci.yml +31 -0
  5. package/.github/workflows/release-package.yml +48 -0
  6. package/.husky/pre-commit +5 -0
  7. package/.lintstagedrc +3 -0
  8. package/.nvmrc +1 -0
  9. package/.prettierrc.js +7 -0
  10. package/dist/Common/AddCDButton/AddCDButton.d.ts +3 -3
  11. package/dist/Common/AddCDButton/index.d.ts +2 -2
  12. package/dist/Common/AddCDButton/types.d.ts +26 -26
  13. package/dist/Common/AddCDButton/utils.d.ts +2 -2
  14. package/dist/Common/Api.d.ts +5 -5
  15. package/dist/Common/AppStatus/AppStatus.d.ts +3 -3
  16. package/dist/Common/AppStatus/constants.d.ts +51 -51
  17. package/dist/Common/AppStatus/index.d.ts +1 -1
  18. package/dist/Common/AppStatus/types.d.ts +12 -12
  19. package/dist/Common/AppStatus/utils.d.ts +1 -1
  20. package/dist/Common/BreadCrumb/BreadCrumb.d.ts +5 -5
  21. package/dist/Common/BreadCrumb/BreadcrumbStore.d.ts +17 -17
  22. package/dist/Common/BreadCrumb/Types.d.ts +28 -28
  23. package/dist/Common/CIPipeline.Types.d.ts +265 -265
  24. package/dist/Common/ChartVersionAndTypeSelector.d.ts +4 -3
  25. package/dist/Common/Checkbox.d.ts +5 -5
  26. package/dist/Common/ClipboardButton/ClipboardButton.d.ts +10 -10
  27. package/dist/Common/ClipboardButton/types.d.ts +8 -8
  28. package/dist/Common/Common.service.d.ts +20 -20
  29. package/dist/Common/Constants.d.ts +75 -81
  30. package/dist/Common/CustomInput/CustomInput.d.ts +3 -2
  31. package/dist/Common/CustomInput/Types.d.ts +31 -30
  32. package/dist/Common/CustomInput/index.d.ts +2 -2
  33. package/dist/Common/CustomTagSelector/PropagateTagInfo.d.ts +4 -4
  34. package/dist/Common/CustomTagSelector/ResizableTagTextArea.d.ts +3 -2
  35. package/dist/Common/CustomTagSelector/TagDetails.d.ts +3 -2
  36. package/dist/Common/CustomTagSelector/TagLabelSelect.d.ts +3 -2
  37. package/dist/Common/CustomTagSelector/TagLabelValueSelector.d.ts +3 -2
  38. package/dist/Common/CustomTagSelector/TagSelector.utils.d.ts +12 -12
  39. package/dist/Common/CustomTagSelector/Types.d.ts +68 -68
  40. package/dist/Common/CustomTagSelector/ValidationRules.d.ts +10 -10
  41. package/dist/Common/CustomTagSelector/index.d.ts +6 -6
  42. package/dist/Common/DebouncedSearch/DebouncedSearch.d.ts +17 -17
  43. package/dist/Common/DebouncedSearch/Types.d.ts +14 -14
  44. package/dist/Common/DebouncedSearch/Utils.d.ts +1 -1
  45. package/dist/Common/DeleteComponentModal/DeleteComponent.d.ts +4 -3
  46. package/dist/Common/DeleteComponentModal/types.d.ts +15 -15
  47. package/dist/Common/DevtronProgressing/DevtronProgressing.d.ts +3 -2
  48. package/dist/Common/DevtronProgressing/index.d.ts +1 -1
  49. package/dist/Common/DevtronProgressing/types.d.ts +4 -4
  50. package/dist/Common/Dialogs/ConfirmationDialog.d.ts +9 -8
  51. package/dist/Common/Dialogs/DeleteDialog.d.ts +5 -5
  52. package/dist/Common/Dialogs/DialogForm.d.ts +14 -14
  53. package/dist/Common/Dialogs/ForceDeleteDialog.d.ts +3 -3
  54. package/dist/Common/Dialogs/Types.d.ts +45 -45
  55. package/dist/Common/Dialogs/index.d.ts +4 -4
  56. package/dist/Common/DraggableWrapper/DraggableButton.d.ts +3 -3
  57. package/dist/Common/DraggableWrapper/DraggableWrapper.d.ts +9 -9
  58. package/dist/Common/DraggableWrapper/index.d.ts +3 -3
  59. package/dist/Common/DraggableWrapper/types.d.ts +23 -23
  60. package/dist/Common/Drawer/Drawer.d.ts +16 -14
  61. package/dist/Common/EmptyState/EmptyState.d.ts +25 -31
  62. package/dist/Common/EmptyState/GenericEmptyState.d.ts +5 -3
  63. package/dist/Common/Error.d.ts +17 -17
  64. package/dist/Common/ErrorScreenNotFound.d.ts +3 -2
  65. package/dist/Common/Grid/Grid.d.ts +3 -3
  66. package/dist/Common/Grid/types.d.ts +10 -10
  67. package/dist/Common/Helper.d.ts +64 -65
  68. package/dist/Common/Hooks/UseClickOutside/UseClickOutside.d.ts +1 -1
  69. package/dist/Common/Hooks/UseSuperAdmin/UseSuperAdmin.d.ts +6 -6
  70. package/dist/Common/Hooks/UseSuperAdmin/types.d.ts +3 -3
  71. package/dist/Common/Hooks/UseWindowSize/UseWindowSize.d.ts +4 -4
  72. package/dist/Common/Hooks/index.d.ts +3 -3
  73. package/dist/Common/ImageTags.Types.d.ts +40 -40
  74. package/dist/Common/ImageTags.d.ts +4 -3
  75. package/dist/Common/InfoColorBar/InfoColourbar.d.ts +5 -3
  76. package/dist/Common/Modals/Modal.d.ts +3 -3
  77. package/dist/Common/Modals/OpaqueModal.d.ts +12 -12
  78. package/dist/Common/Modals/VisibleModal.d.ts +15 -15
  79. package/dist/Common/Modals/VisibleModal2.d.ts +12 -12
  80. package/dist/Common/MultiSelectCustomization.d.ts +37 -37
  81. package/dist/Common/Pagination/PageSizeSelector.d.ts +4 -3
  82. package/dist/Common/Pagination/Pagination.d.ts +5 -3
  83. package/dist/Common/Pagination/constants.d.ts +5 -5
  84. package/dist/Common/Pagination/index.d.ts +1 -1
  85. package/dist/Common/Pagination/types.d.ts +51 -51
  86. package/dist/Common/Pagination/utils.d.ts +6 -6
  87. package/dist/Common/Policy.Types.d.ts +56 -56
  88. package/dist/Common/PopupMenu.d.ts +8 -7
  89. package/dist/Common/Progressing.d.ts +4 -3
  90. package/dist/Common/RJSF/Form.d.ts +4 -2
  91. package/dist/Common/RJSF/common/FieldRow.d.ts +6 -5
  92. package/dist/Common/RJSF/common/types.d.ts +8 -8
  93. package/dist/Common/RJSF/config.d.ts +4 -4
  94. package/dist/Common/RJSF/constants.d.ts +7 -7
  95. package/dist/Common/RJSF/index.d.ts +3 -3
  96. package/dist/Common/RJSF/templates/ArrayFieldItemTemplate.d.ts +3 -2
  97. package/dist/Common/RJSF/templates/ArrayFieldTemplate.d.ts +3 -2
  98. package/dist/Common/RJSF/templates/BaseInput.d.ts +3 -2
  99. package/dist/Common/RJSF/templates/ButtonTemplates/AddButton.d.ts +3 -2
  100. package/dist/Common/RJSF/templates/ButtonTemplates/RemoveButton.d.ts +3 -2
  101. package/dist/Common/RJSF/templates/ButtonTemplates/SubmitButton.d.ts +3 -2
  102. package/dist/Common/RJSF/templates/ButtonTemplates/index.d.ts +3 -3
  103. package/dist/Common/RJSF/templates/Description.d.ts +3 -2
  104. package/dist/Common/RJSF/templates/Field.d.ts +3 -2
  105. package/dist/Common/RJSF/templates/FieldErrorTemplate.d.ts +3 -2
  106. package/dist/Common/RJSF/templates/ObjectFieldTemplate.d.ts +3 -2
  107. package/dist/Common/RJSF/templates/TitleField.d.ts +3 -2
  108. package/dist/Common/RJSF/templates/WrapIfAdditionalTemplate.d.ts +3 -2
  109. package/dist/Common/RJSF/templates/index.d.ts +10 -10
  110. package/dist/Common/RJSF/types.d.ts +3 -3
  111. package/dist/Common/RJSF/utils.d.ts +26 -25
  112. package/dist/Common/RJSF/widgets/Checkbox.d.ts +3 -2
  113. package/dist/Common/RJSF/widgets/Select.d.ts +3 -2
  114. package/dist/Common/RJSF/widgets/index.d.ts +2 -2
  115. package/dist/Common/RadioGroup/RadioGroup.d.ts +17 -16
  116. package/dist/Common/RadioGroup.d.ts +8 -8
  117. package/dist/Common/Reload.d.ts +3 -3
  118. package/dist/Common/ResizableTextarea.d.ts +3 -3
  119. package/dist/Common/SearchBar/SearchBar.component.d.ts +39 -37
  120. package/dist/Common/SearchBar/index.d.ts +2 -2
  121. package/dist/Common/SearchBar/types.d.ts +44 -35
  122. package/dist/Common/Security/ScanVulnerabilitiesTable.d.ts +4 -3
  123. package/dist/Common/ServerError.d.ts +15 -15
  124. package/dist/Common/TippyCustomized.d.ts +4 -2
  125. package/dist/Common/ToastBody.d.ts +23 -23
  126. package/dist/Common/Toggle/Toggle.d.ts +14 -12
  127. package/dist/Common/Types.d.ts +691 -691
  128. package/dist/Common/index.d.ts +50 -51
  129. package/dist/index.d.ts +1 -1
  130. package/dist/index.js +28883 -225
  131. package/package.json +23 -35
  132. package/rollup.config.js +31 -0
  133. package/src/Assets/Icon/ic-add.svg +3 -0
  134. package/src/Assets/Icon/ic-appstatus-cancelled.svg +6 -0
  135. package/src/Assets/Icon/ic-arrow-counter-clockwise.svg +5 -0
  136. package/src/Assets/Icon/ic-check.svg +5 -0
  137. package/src/Assets/Icon/ic-chevron-down.svg +5 -0
  138. package/src/Assets/Icon/ic-copy.svg +3 -0
  139. package/src/Assets/Icon/ic-cross.svg +3 -0
  140. package/src/Assets/Icon/ic-drag.svg +8 -0
  141. package/src/Assets/Icon/ic-enter.svg +3 -0
  142. package/src/Assets/Icon/ic-error-cross.svg +8 -0
  143. package/src/Assets/Icon/ic-error-exclamation.svg +6 -0
  144. package/src/Assets/Icon/ic-error-medium.svg +6 -0
  145. package/src/Assets/Icon/ic-help-outline.svg +3 -0
  146. package/src/Assets/Icon/ic-help.svg +3 -0
  147. package/src/Assets/Icon/ic-info-filled.svg +7 -0
  148. package/src/Assets/Icon/ic-info-outlined.svg +13 -0
  149. package/src/Assets/Icon/ic-minus.svg +3 -0
  150. package/src/Assets/Icon/ic-pencil.svg +3 -0
  151. package/src/Assets/Icon/ic-progressing.svg +6 -0
  152. package/src/Assets/Icon/ic-rotate-devtron.svg +103 -0
  153. package/src/Assets/Icon/ic-search.svg +6 -0
  154. package/src/Assets/Icon/ic-warning.svg +7 -0
  155. package/src/Assets/Icon/inject-tag.svg +5 -0
  156. package/src/Assets/Img/app-not-deployed.png +0 -0
  157. package/src/Assets/Img/delete-medium.svg +15 -0
  158. package/src/Assets/Img/ic-empty-error@2x.png +0 -0
  159. package/src/Assets/Img/ic-loading-failure.png +0 -0
  160. package/src/Assets/Img/ic-not-authorized.svg +62 -0
  161. package/src/Common/AddCDButton/AddCDButton.tsx +68 -0
  162. package/src/Common/AddCDButton/index.ts +2 -0
  163. package/src/Common/AddCDButton/types.ts +38 -0
  164. package/src/Common/AddCDButton/utils.tsx +35 -0
  165. package/src/Common/Api.ts +230 -0
  166. package/src/Common/AppStatus/AppStatus.tsx +64 -0
  167. package/src/Common/AppStatus/constants.ts +53 -0
  168. package/src/Common/AppStatus/index.ts +1 -0
  169. package/src/Common/AppStatus/types.ts +12 -0
  170. package/src/Common/AppStatus/utils.ts +14 -0
  171. package/src/Common/BreadCrumb/BreadCrumb.tsx +105 -0
  172. package/src/Common/BreadCrumb/BreadcrumbStore.tsx +25 -0
  173. package/src/Common/BreadCrumb/Types.ts +30 -0
  174. package/src/Common/CIPipeline.Types.ts +277 -0
  175. package/src/Common/ChartVersionAndTypeSelector.tsx +78 -0
  176. package/src/Common/Checkbox.tsx +36 -0
  177. package/src/Common/ClipboardButton/ClipboardButton.tsx +61 -0
  178. package/src/Common/ClipboardButton/__tests__/ClipboardButton.test.tsx +43 -0
  179. package/src/Common/ClipboardButton/types.ts +7 -0
  180. package/src/Common/Common.service.ts +315 -0
  181. package/src/Common/Constants.ts +254 -0
  182. package/src/Common/CustomInput/CustomInput.tsx +133 -0
  183. package/src/Common/CustomInput/Types.ts +32 -0
  184. package/src/Common/CustomInput/index.ts +2 -0
  185. package/src/Common/CustomTagSelector/PropagateTagInfo.tsx +46 -0
  186. package/src/Common/CustomTagSelector/ResizableTagTextArea.tsx +84 -0
  187. package/src/Common/CustomTagSelector/TagDetails.tsx +76 -0
  188. package/src/Common/CustomTagSelector/TagLabelSelect.tsx +61 -0
  189. package/src/Common/CustomTagSelector/TagLabelValueSelector.tsx +198 -0
  190. package/src/Common/CustomTagSelector/TagSelector.utils.ts +71 -0
  191. package/src/Common/CustomTagSelector/Types.ts +72 -0
  192. package/src/Common/CustomTagSelector/ValidationRules.ts +58 -0
  193. package/src/Common/CustomTagSelector/index.ts +6 -0
  194. package/src/Common/DebouncedSearch/DebouncedSearch.tsx +78 -0
  195. package/src/Common/DebouncedSearch/Types.ts +13 -0
  196. package/src/Common/DebouncedSearch/Utils.ts +19 -0
  197. package/src/Common/DebouncedSearch/__tests__/DebouncedSearch.test.tsx +61 -0
  198. package/src/Common/DeleteComponentModal/DeleteComponent.tsx +95 -0
  199. package/src/Common/DeleteComponentModal/types.ts +15 -0
  200. package/src/Common/DevtronProgressing/DevtronProgressing.tsx +11 -0
  201. package/src/Common/DevtronProgressing/index.ts +1 -0
  202. package/src/Common/DevtronProgressing/types.ts +4 -0
  203. package/src/Common/Dialogs/ConfirmationDialog.tsx +34 -0
  204. package/src/Common/Dialogs/DeleteDialog.tsx +69 -0
  205. package/src/Common/Dialogs/DialogForm.tsx +86 -0
  206. package/src/Common/Dialogs/ForceDeleteDialog.tsx +19 -0
  207. package/src/Common/Dialogs/Types.ts +47 -0
  208. package/src/Common/Dialogs/index.ts +4 -0
  209. package/src/Common/DraggableWrapper/DraggableButton.tsx +14 -0
  210. package/src/Common/DraggableWrapper/DraggableWrapper.tsx +116 -0
  211. package/src/Common/DraggableWrapper/index.ts +3 -0
  212. package/src/Common/DraggableWrapper/types.ts +27 -0
  213. package/src/Common/Drawer/Drawer.scss +40 -0
  214. package/src/Common/Drawer/Drawer.tsx +49 -0
  215. package/src/Common/EmptyState/EmptyState.tsx +42 -0
  216. package/src/Common/EmptyState/GenericEmptyState.tsx +81 -0
  217. package/src/Common/EmptyState/emptyState.scss +74 -0
  218. package/src/Common/Error.tsx +61 -0
  219. package/src/Common/ErrorScreenNotFound.tsx +31 -0
  220. package/src/Common/Grid/Grid.tsx +44 -0
  221. package/src/Common/Grid/types.ts +11 -0
  222. package/src/Common/Helper.tsx +576 -0
  223. package/src/Common/Hooks/UseClickOutside/UseClickOutside.tsx +15 -0
  224. package/src/Common/Hooks/UseSuperAdmin/UseSuperAdmin.tsx +24 -0
  225. package/src/Common/Hooks/UseSuperAdmin/types.ts +3 -0
  226. package/src/Common/Hooks/UseWindowSize/UseWindowSize.tsx +31 -0
  227. package/src/Common/Hooks/index.ts +3 -0
  228. package/src/Common/ImageTags.Types.ts +44 -0
  229. package/src/Common/ImageTags.tsx +586 -0
  230. package/src/Common/InfoColorBar/InfoColourbar.tsx +80 -0
  231. package/src/Common/InfoColorBar/infoColourBar.scss +28 -0
  232. package/src/Common/Modals/Modal.tsx +68 -0
  233. package/src/Common/Modals/OpaqueModal.tsx +36 -0
  234. package/src/Common/Modals/VisibleModal.tsx +55 -0
  235. package/src/Common/Modals/VisibleModal2.tsx +35 -0
  236. package/src/Common/MultiSelectCustomization.tsx +148 -0
  237. package/src/Common/Pagination/PageSizeSelector.tsx +78 -0
  238. package/src/Common/Pagination/Pagination.tsx +127 -0
  239. package/src/Common/Pagination/constants.ts +6 -0
  240. package/src/Common/Pagination/index.tsx +3 -0
  241. package/src/Common/Pagination/pagination.scss +123 -0
  242. package/src/Common/Pagination/types.ts +55 -0
  243. package/src/Common/Pagination/utils.tsx +24 -0
  244. package/src/Common/Policy.Types.ts +63 -0
  245. package/src/Common/PopupMenu.tsx +199 -0
  246. package/src/Common/Progressing.tsx +53 -0
  247. package/src/Common/RJSF/Form.tsx +29 -0
  248. package/src/Common/RJSF/common/FieldRow.tsx +35 -0
  249. package/src/Common/RJSF/common/types.ts +9 -0
  250. package/src/Common/RJSF/config.ts +37 -0
  251. package/src/Common/RJSF/constants.ts +10 -0
  252. package/src/Common/RJSF/index.ts +3 -0
  253. package/src/Common/RJSF/rjsfForm.scss +18 -0
  254. package/src/Common/RJSF/templates/ArrayFieldItemTemplate.tsx +31 -0
  255. package/src/Common/RJSF/templates/ArrayFieldTemplate.tsx +78 -0
  256. package/src/Common/RJSF/templates/BaseInput.tsx +16 -0
  257. package/src/Common/RJSF/templates/ButtonTemplates/AddButton.tsx +18 -0
  258. package/src/Common/RJSF/templates/ButtonTemplates/RemoveButton.tsx +10 -0
  259. package/src/Common/RJSF/templates/ButtonTemplates/SubmitButton.tsx +18 -0
  260. package/src/Common/RJSF/templates/ButtonTemplates/index.ts +3 -0
  261. package/src/Common/RJSF/templates/Description.tsx +12 -0
  262. package/src/Common/RJSF/templates/Field.tsx +30 -0
  263. package/src/Common/RJSF/templates/FieldErrorTemplate.tsx +25 -0
  264. package/src/Common/RJSF/templates/ObjectFieldTemplate.tsx +105 -0
  265. package/src/Common/RJSF/templates/TitleField.tsx +9 -0
  266. package/src/Common/RJSF/templates/WrapIfAdditionalTemplate.tsx +51 -0
  267. package/src/Common/RJSF/templates/index.ts +10 -0
  268. package/src/Common/RJSF/types.ts +4 -0
  269. package/src/Common/RJSF/utils.ts +123 -0
  270. package/src/Common/RJSF/widgets/Checkbox.tsx +44 -0
  271. package/src/Common/RJSF/widgets/Select.tsx +77 -0
  272. package/src/Common/RJSF/widgets/index.ts +2 -0
  273. package/src/Common/RadioGroup/RadioGroup.tsx +105 -0
  274. package/src/Common/RadioGroup/radioGroup.scss +46 -0
  275. package/src/Common/RadioGroup.tsx +53 -0
  276. package/src/Common/Reload.tsx +23 -0
  277. package/src/Common/ResizableTextarea.tsx +73 -0
  278. package/src/Common/SearchBar/SearchBar.component.tsx +122 -0
  279. package/src/Common/SearchBar/index.ts +2 -0
  280. package/src/Common/SearchBar/searchBar.scss +31 -0
  281. package/src/Common/SearchBar/types.ts +45 -0
  282. package/src/Common/Security/ScanVulnerabilitiesTable.tsx +55 -0
  283. package/src/Common/Security/scanVulnerabilities.css +69 -0
  284. package/src/Common/ServerError.ts +31 -0
  285. package/src/Common/TippyCustomized.tsx +172 -0
  286. package/src/Common/ToastBody.tsx +62 -0
  287. package/src/Common/Toggle/Toggle.scss +78 -0
  288. package/src/Common/Toggle/Toggle.tsx +50 -0
  289. package/src/Common/Types.ts +764 -0
  290. package/src/Common/index.ts +50 -0
  291. package/src/custom.d.ts +13 -0
  292. package/src/index.ts +1 -0
  293. package/tsconfig.json +40 -0
  294. package/dist/CodeEditor-f831f400.js +0 -103695
  295. package/dist/Common/AddCDButton/AddCDButton.js +0 -59
  296. package/dist/Common/AddCDButton/index.js +0 -6
  297. package/dist/Common/AddCDButton/types.js +0 -1
  298. package/dist/Common/AddCDButton/utils.js +0 -19
  299. package/dist/Common/Api.js +0 -169
  300. package/dist/Common/AppStatus/AppStatus.js +0 -37
  301. package/dist/Common/AppStatus/constants.js +0 -37
  302. package/dist/Common/AppStatus/index.js +0 -4
  303. package/dist/Common/AppStatus/types.js +0 -1
  304. package/dist/Common/AppStatus/utils.js +0 -8
  305. package/dist/Common/BreadCrumb/BreadCrumb.js +0 -73
  306. package/dist/Common/BreadCrumb/BreadcrumbStore.js +0 -22
  307. package/dist/Common/BreadCrumb/Types.js +0 -1
  308. package/dist/Common/CIPipeline.Types.js +0 -10
  309. package/dist/Common/ChartVersionAndTypeSelector.js +0 -61
  310. package/dist/Common/Checkbox.js +0 -28
  311. package/dist/Common/ClipboardButton/ClipboardButton.js +0 -40
  312. package/dist/Common/ClipboardButton/__tests__/ClipboardButton.test.js +0 -27
  313. package/dist/Common/ClipboardButton/types.js +0 -1
  314. package/dist/Common/CodeEditor/CodeEditor.d.ts +0 -47
  315. package/dist/Common/CodeEditor/CodeEditor.js +0 -15
  316. package/dist/Common/Common.service.js +0 -196
  317. package/dist/Common/Constants.js +0 -239
  318. package/dist/Common/CustomInput/CustomInput.js +0 -81
  319. package/dist/Common/CustomInput/Types.js +0 -1
  320. package/dist/Common/CustomInput/index.js +0 -4
  321. package/dist/Common/CustomTagSelector/PropagateTagInfo.js +0 -43
  322. package/dist/Common/CustomTagSelector/ResizableTagTextArea.js +0 -58
  323. package/dist/Common/CustomTagSelector/TagDetails.js +0 -73
  324. package/dist/Common/CustomTagSelector/TagLabelSelect.js +0 -53
  325. package/dist/Common/CustomTagSelector/TagLabelValueSelector.js +0 -121
  326. package/dist/Common/CustomTagSelector/TagSelector.utils.js +0 -61
  327. package/dist/Common/CustomTagSelector/Types.js +0 -1
  328. package/dist/Common/CustomTagSelector/ValidationRules.js +0 -35
  329. package/dist/Common/CustomTagSelector/index.js +0 -12
  330. package/dist/Common/DebouncedSearch/DebouncedSearch.js +0 -56
  331. package/dist/Common/DebouncedSearch/Types.js +0 -1
  332. package/dist/Common/DebouncedSearch/Utils.js +0 -19
  333. package/dist/Common/DebouncedSearch/__tests__/DebouncedSearch.test.js +0 -34
  334. package/dist/Common/DeleteComponentModal/DeleteComponent.js +0 -63
  335. package/dist/Common/DeleteComponentModal/types.js +0 -1
  336. package/dist/Common/DevtronProgressing/DevtronProgressing.js +0 -95
  337. package/dist/Common/DevtronProgressing/index.js +0 -4
  338. package/dist/Common/DevtronProgressing/types.js +0 -1
  339. package/dist/Common/Dialogs/ConfirmationDialog.js +0 -13
  340. package/dist/Common/Dialogs/DeleteDialog.js +0 -46
  341. package/dist/Common/Dialogs/DialogForm.js +0 -63
  342. package/dist/Common/Dialogs/ForceDeleteDialog.js +0 -28
  343. package/dist/Common/Dialogs/Types.js +0 -1
  344. package/dist/Common/Dialogs/index.js +0 -11
  345. package/dist/Common/DraggableWrapper/DraggableButton.js +0 -16
  346. package/dist/Common/DraggableWrapper/DraggableWrapper.js +0 -73
  347. package/dist/Common/DraggableWrapper/index.js +0 -8
  348. package/dist/Common/DraggableWrapper/types.js +0 -4
  349. package/dist/Common/Drawer/Drawer.js +0 -22
  350. package/dist/Common/EmptyState/EmptyState.js +0 -25
  351. package/dist/Common/EmptyState/GenericEmptyState.js +0 -79
  352. package/dist/Common/Error.js +0 -49
  353. package/dist/Common/ErrorScreenNotFound.js +0 -22
  354. package/dist/Common/Grid/Grid.js +0 -31
  355. package/dist/Common/Grid/types.js +0 -1
  356. package/dist/Common/Helper.js +0 -39
  357. package/dist/Common/Hooks/UseClickOutside/UseClickOutside.js +0 -14
  358. package/dist/Common/Hooks/UseSuperAdmin/UseSuperAdmin.js +0 -16
  359. package/dist/Common/Hooks/UseSuperAdmin/types.js +0 -1
  360. package/dist/Common/Hooks/UseWindowSize/UseWindowSize.js +0 -17
  361. package/dist/Common/Hooks/index.js +0 -8
  362. package/dist/Common/ImageTags.Types.js +0 -1
  363. package/dist/Common/ImageTags.js +0 -382
  364. package/dist/Common/InfoColorBar/InfoColourbar.js +0 -67
  365. package/dist/Common/Modals/Modal.js +0 -48
  366. package/dist/Common/Modals/OpaqueModal.js +0 -40
  367. package/dist/Common/Modals/VisibleModal.js +0 -39
  368. package/dist/Common/Modals/VisibleModal2.js +0 -39
  369. package/dist/Common/MultiSelectCustomization.js +0 -97
  370. package/dist/Common/Pagination/PageSizeSelector.js +0 -51
  371. package/dist/Common/Pagination/Pagination.js +0 -98
  372. package/dist/Common/Pagination/constants.js +0 -9
  373. package/dist/Common/Pagination/index.js +0 -4
  374. package/dist/Common/Pagination/types.js +0 -1
  375. package/dist/Common/Pagination/utils.js +0 -15
  376. package/dist/Common/Policy.Types.js +0 -6
  377. package/dist/Common/PopupMenu.js +0 -146
  378. package/dist/Common/Progressing.js +0 -49
  379. package/dist/Common/RJSF/Form.js +0 -25
  380. package/dist/Common/RJSF/common/FieldRow.js +0 -25
  381. package/dist/Common/RJSF/common/types.js +0 -1
  382. package/dist/Common/RJSF/config.js +0 -33
  383. package/dist/Common/RJSF/constants.js +0 -10
  384. package/dist/Common/RJSF/index.js +0 -7
  385. package/dist/Common/RJSF/templates/ArrayFieldItemTemplate.js +0 -30
  386. package/dist/Common/RJSF/templates/ArrayFieldTemplate.js +0 -60
  387. package/dist/Common/RJSF/templates/BaseInput.js +0 -16
  388. package/dist/Common/RJSF/templates/ButtonTemplates/AddButton.js +0 -18
  389. package/dist/Common/RJSF/templates/ButtonTemplates/RemoveButton.js +0 -6
  390. package/dist/Common/RJSF/templates/ButtonTemplates/SubmitButton.js +0 -9
  391. package/dist/Common/RJSF/templates/ButtonTemplates/index.js +0 -8
  392. package/dist/Common/RJSF/templates/Description.js +0 -9
  393. package/dist/Common/RJSF/templates/Field.js +0 -31
  394. package/dist/Common/RJSF/templates/FieldErrorTemplate.js +0 -13
  395. package/dist/Common/RJSF/templates/ObjectFieldTemplate.js +0 -71
  396. package/dist/Common/RJSF/templates/TitleField.js +0 -8
  397. package/dist/Common/RJSF/templates/WrapIfAdditionalTemplate.js +0 -43
  398. package/dist/Common/RJSF/templates/index.js +0 -26
  399. package/dist/Common/RJSF/types.js +0 -1
  400. package/dist/Common/RJSF/utils.js +0 -95
  401. package/dist/Common/RJSF/widgets/Checkbox.js +0 -39
  402. package/dist/Common/RJSF/widgets/Select.js +0 -625
  403. package/dist/Common/RJSF/widgets/index.js +0 -6
  404. package/dist/Common/RadioGroup/RadioGroup.js +0 -69
  405. package/dist/Common/RadioGroup.js +0 -53
  406. package/dist/Common/Reload.js +0 -16
  407. package/dist/Common/ResizableTextarea.js +0 -60
  408. package/dist/Common/SearchBar/SearchBar.component.js +0 -66
  409. package/dist/Common/SearchBar/index.js +0 -4
  410. package/dist/Common/SearchBar/types.js +0 -1
  411. package/dist/Common/Security/ScanVulnerabilitiesTable.js +0 -49
  412. package/dist/Common/Select/Select.d.ts +0 -4
  413. package/dist/Common/Select/Select.js +0 -193
  414. package/dist/Common/Select/types.d.ts +0 -29
  415. package/dist/Common/Select/types.js +0 -1
  416. package/dist/Common/ServerError.js +0 -26
  417. package/dist/Common/TippyCustomized.js +0 -10
  418. package/dist/Common/ToastBody.js +0 -41
  419. package/dist/Common/Toggle/Toggle.js +0 -40
  420. package/dist/Common/Types.js +0 -24
  421. package/dist/Common/index.js +0 -226
  422. package/dist/Helper-b720768b.js +0 -9837
  423. package/dist/TippyCustomized-b66513ba.js +0 -124
  424. package/dist/_commonjsHelpers-aeeeeb92.js +0 -30
  425. package/dist/abap-9f67f57a.js +0 -1314
  426. package/dist/apex-ff62e532.js +0 -315
  427. package/dist/assets/CodeEditor.css +0 -1
  428. package/dist/assets/Drawer.css +0 -1
  429. package/dist/assets/Form.css +0 -1
  430. package/dist/assets/GenericEmptyState.css +0 -1
  431. package/dist/assets/InfoColourbar.css +0 -1
  432. package/dist/assets/Pagination.css +0 -1
  433. package/dist/assets/RadioGroup.css +0 -1
  434. package/dist/assets/ScanVulnerabilitiesTable.css +0 -1
  435. package/dist/assets/SearchBar.component.css +0 -1
  436. package/dist/assets/Select.css +0 -1
  437. package/dist/assets/TippyCustomized.css +0 -1
  438. package/dist/assets/Toggle.css +0 -1
  439. package/dist/assets/editor.worker-d26000ef.js +0 -9
  440. package/dist/assets/json.worker-f23a4654.js +0 -40
  441. package/dist/assets/yaml.worker-64fecd27.js +0 -463
  442. package/dist/azcli-31e64a7f.js +0 -74
  443. package/dist/bat-0ffe897e.js +0 -95
  444. package/dist/bicep-3414a2b1.js +0 -108
  445. package/dist/cameligo-df1f3f25.js +0 -168
  446. package/dist/clojure-65b0f010.js +0 -754
  447. package/dist/coffee-437f0fba.js +0 -228
  448. package/dist/cpp-66843dd5.js +0 -390
  449. package/dist/csharp-621d9a49.js +0 -320
  450. package/dist/csp-de0d5244.js +0 -57
  451. package/dist/css-7cd5ed4c.js +0 -186
  452. package/dist/cssMode-3b27e147.js +0 -1446
  453. package/dist/cypher-70ad96fe.js +0 -262
  454. package/dist/dart-33ae3739.js +0 -270
  455. package/dist/dockerfile-f2274a50.js +0 -132
  456. package/dist/ecl-3b8294a3.js +0 -454
  457. package/dist/elixir-b9dcc73a.js +0 -489
  458. package/dist/extends-70f3d2a3.js +0 -13
  459. package/dist/flow9-bdde8316.js +0 -141
  460. package/dist/freemarker2-fdbf3c64.js +0 -643
  461. package/dist/fsharp-eac2e449.js +0 -210
  462. package/dist/go-d12ed8d4.js +0 -208
  463. package/dist/graphql-c7356b69.js +0 -141
  464. package/dist/handlebars-42bbca08.js +0 -391
  465. package/dist/hcl-e883a0d4.js +0 -177
  466. package/dist/html-2b761b4c.js +0 -281
  467. package/dist/htmlMode-5e3287f4.js +0 -1456
  468. package/dist/ic-add-4787ded5.js +0 -5
  469. package/dist/ic-chevron-down-eb7fd953.js +0 -6
  470. package/dist/ic-copy-118b83dc.js +0 -5
  471. package/dist/ic-cross-0e71861d.js +0 -6
  472. package/dist/ic-error-cross-2760059a.js +0 -5
  473. package/dist/ic-error-exclamation-5f9af461.js +0 -5
  474. package/dist/ic-info-filled-31a15add.js +0 -6
  475. package/dist/ic-info-outlined-8fa45e87.js +0 -5
  476. package/dist/ic-warning-42534af1.js +0 -5
  477. package/dist/ini-425ab711.js +0 -68
  478. package/dist/inject-tag-824bf92c.js +0 -5
  479. package/dist/java-2bc0fd68.js +0 -221
  480. package/dist/javascript-7349b260.js +0 -75
  481. package/dist/jsonMode-b06032c4.js +0 -1867
  482. package/dist/jsx-runtime-0dcb030c.js +0 -667
  483. package/dist/julia-1c932615.js +0 -496
  484. package/dist/kotlin-1ab839c8.js +0 -245
  485. package/dist/less-6fe856f5.js +0 -168
  486. package/dist/lexon-4955ac52.js +0 -151
  487. package/dist/liquid-4f07e77f.js +0 -238
  488. package/dist/lua-3cca0047.js +0 -157
  489. package/dist/m3-132e9cb6.js +0 -210
  490. package/dist/markdown-ea59a0c1.js +0 -202
  491. package/dist/mips-19811f4b.js +0 -194
  492. package/dist/msdax-69954a10.js +0 -377
  493. package/dist/mysql-82088e5d.js +0 -876
  494. package/dist/objective-c-1976eccc.js +0 -188
  495. package/dist/pascal-8ef177cb.js +0 -245
  496. package/dist/pascaligo-bc517b9e.js +0 -158
  497. package/dist/perl-8b93582c.js +0 -599
  498. package/dist/pgsql-00c11a6d.js +0 -847
  499. package/dist/php-4c8c276f.js +0 -471
  500. package/dist/pla-e9b4ffb1.js +0 -131
  501. package/dist/postiats-2071af8c.js +0 -544
  502. package/dist/powerquery-8e388ceb.js +0 -890
  503. package/dist/powershell-e35db398.js +0 -233
  504. package/dist/protobuf-a24b9176.js +0 -422
  505. package/dist/pug-2c94d9b8.js +0 -393
  506. package/dist/python-16256213.js +0 -259
  507. package/dist/qsharp-d730d7fe.js +0 -282
  508. package/dist/r-be193556.js +0 -245
  509. package/dist/razor-b4aa4372.js +0 -512
  510. package/dist/react-select.esm-97f26847.js +0 -4160
  511. package/dist/react-toastify.esm-1042de65.js +0 -792
  512. package/dist/react.esm-2c92920f.js +0 -13727
  513. package/dist/redis-9690c6ac.js +0 -298
  514. package/dist/redshift-6bdcdeaa.js +0 -806
  515. package/dist/restructuredtext-a08c1d20.js +0 -162
  516. package/dist/ruby-2247692b.js +0 -444
  517. package/dist/rust-1dffb4d5.js +0 -337
  518. package/dist/sb-136598e9.js +0 -110
  519. package/dist/scala-b1100fed.js +0 -353
  520. package/dist/scheme-038c8094.js +0 -114
  521. package/dist/scss-700d1b52.js +0 -244
  522. package/dist/shell-86c16e0f.js +0 -224
  523. package/dist/solidity-c05fdf3c.js +0 -1351
  524. package/dist/sophia-cd645d71.js +0 -190
  525. package/dist/sparql-01d9ec9c.js +0 -193
  526. package/dist/sql-4c33df41.js +0 -818
  527. package/dist/st-52cf1408.js +0 -414
  528. package/dist/swift-13c792ba.js +0 -315
  529. package/dist/systemverilog-0bd8b730.js +0 -556
  530. package/dist/tcl-463d7c75.js +0 -232
  531. package/dist/tippy-react.esm-8dc66a75.js +0 -2018
  532. package/dist/tsMode-426d35c9.js +0 -811
  533. package/dist/twig-0d98f5ec.js +0 -323
  534. package/dist/typescript-936e1f48.js +0 -328
  535. package/dist/vb-3a2b0a51.js +0 -364
  536. package/dist/wgsl-b2ddb3e4.js +0 -420
  537. package/dist/xml-5430ab58.js +0 -95
  538. package/dist/yaml-9bde48c0.js +0 -184
@@ -1,2018 +0,0 @@
1
- import bt, { forwardRef as $n, cloneElement as on, useState as dt, useLayoutEffect as kn, useEffect as In, useRef as Bn } from "react";
2
- import { createPortal as Hn } from "react-dom";
3
- var F = "top", X = "bottom", G = "right", U = "left", ct = "auto", Ue = [F, X, G, U], Se = "start", He = "end", Wn = "clippingParents", an = "viewport", $e = "popper", _n = "reference", Vt = /* @__PURE__ */ Ue.reduce(function(e, t) {
4
- return e.concat([t + "-" + Se, t + "-" + He]);
5
- }, []), sn = /* @__PURE__ */ [].concat(Ue, [ct]).reduce(function(e, t) {
6
- return e.concat([t, t + "-" + Se, t + "-" + He]);
7
- }, []), Fn = "beforeRead", Un = "read", qn = "afterRead", zn = "beforeMain", Yn = "main", Xn = "afterMain", Gn = "beforeWrite", Kn = "write", Jn = "afterWrite", wt = [Fn, Un, qn, zn, Yn, Xn, Gn, Kn, Jn];
8
- function ne(e) {
9
- return e ? (e.nodeName || "").toLowerCase() : null;
10
- }
11
- function K(e) {
12
- if (e == null)
13
- return window;
14
- if (e.toString() !== "[object Window]") {
15
- var t = e.ownerDocument;
16
- return t && t.defaultView || window;
17
- }
18
- return e;
19
- }
20
- function be(e) {
21
- var t = K(e).Element;
22
- return e instanceof t || e instanceof Element;
23
- }
24
- function z(e) {
25
- var t = K(e).HTMLElement;
26
- return e instanceof t || e instanceof HTMLElement;
27
- }
28
- function St(e) {
29
- if (typeof ShadowRoot > "u")
30
- return !1;
31
- var t = K(e).ShadowRoot;
32
- return e instanceof t || e instanceof ShadowRoot;
33
- }
34
- function Qn(e) {
35
- var t = e.state;
36
- Object.keys(t.elements).forEach(function(n) {
37
- var r = t.styles[n] || {}, o = t.attributes[n] || {}, a = t.elements[n];
38
- !z(a) || !ne(a) || (Object.assign(a.style, r), Object.keys(o).forEach(function(c) {
39
- var p = o[c];
40
- p === !1 ? a.removeAttribute(c) : a.setAttribute(c, p === !0 ? "" : p);
41
- }));
42
- });
43
- }
44
- function Zn(e) {
45
- var t = e.state, n = {
46
- popper: {
47
- position: t.options.strategy,
48
- left: "0",
49
- top: "0",
50
- margin: "0"
51
- },
52
- arrow: {
53
- position: "absolute"
54
- },
55
- reference: {}
56
- };
57
- return Object.assign(t.elements.popper.style, n.popper), t.styles = n, t.elements.arrow && Object.assign(t.elements.arrow.style, n.arrow), function() {
58
- Object.keys(t.elements).forEach(function(r) {
59
- var o = t.elements[r], a = t.attributes[r] || {}, c = Object.keys(t.styles.hasOwnProperty(r) ? t.styles[r] : n[r]), p = c.reduce(function(u, d) {
60
- return u[d] = "", u;
61
- }, {});
62
- !z(o) || !ne(o) || (Object.assign(o.style, p), Object.keys(a).forEach(function(u) {
63
- o.removeAttribute(u);
64
- }));
65
- });
66
- };
67
- }
68
- const un = {
69
- name: "applyStyles",
70
- enabled: !0,
71
- phase: "write",
72
- fn: Qn,
73
- effect: Zn,
74
- requires: ["computeStyles"]
75
- };
76
- function Q(e) {
77
- return e.split("-")[0];
78
- }
79
- var ye = Math.max, st = Math.min, Ce = Math.round;
80
- function Ot() {
81
- var e = navigator.userAgentData;
82
- return e != null && e.brands ? e.brands.map(function(t) {
83
- return t.brand + "/" + t.version;
84
- }).join(" ") : navigator.userAgent;
85
- }
86
- function cn() {
87
- return !/^((?!chrome|android).)*safari/i.test(Ot());
88
- }
89
- function Ne(e, t, n) {
90
- t === void 0 && (t = !1), n === void 0 && (n = !1);
91
- var r = e.getBoundingClientRect(), o = 1, a = 1;
92
- t && z(e) && (o = e.offsetWidth > 0 && Ce(r.width) / e.offsetWidth || 1, a = e.offsetHeight > 0 && Ce(r.height) / e.offsetHeight || 1);
93
- var c = be(e) ? K(e) : window, p = c.visualViewport, u = !cn() && n, d = (r.left + (u && p ? p.offsetLeft : 0)) / o, f = (r.top + (u && p ? p.offsetTop : 0)) / a, y = r.width / o, D = r.height / a;
94
- return {
95
- width: y,
96
- height: D,
97
- top: f,
98
- right: d + y,
99
- bottom: f + D,
100
- left: d,
101
- x: d,
102
- y: f
103
- };
104
- }
105
- function Ct(e) {
106
- var t = Ne(e), n = e.offsetWidth, r = e.offsetHeight;
107
- return Math.abs(t.width - n) <= 1 && (n = t.width), Math.abs(t.height - r) <= 1 && (r = t.height), {
108
- x: e.offsetLeft,
109
- y: e.offsetTop,
110
- width: n,
111
- height: r
112
- };
113
- }
114
- function pn(e, t) {
115
- var n = t.getRootNode && t.getRootNode();
116
- if (e.contains(t))
117
- return !0;
118
- if (n && St(n)) {
119
- var r = t;
120
- do {
121
- if (r && e.isSameNode(r))
122
- return !0;
123
- r = r.parentNode || r.host;
124
- } while (r);
125
- }
126
- return !1;
127
- }
128
- function Z(e) {
129
- return K(e).getComputedStyle(e);
130
- }
131
- function er(e) {
132
- return ["table", "td", "th"].indexOf(ne(e)) >= 0;
133
- }
134
- function fe(e) {
135
- return ((be(e) ? e.ownerDocument : (
136
- // $FlowFixMe[prop-missing]
137
- e.document
138
- )) || window.document).documentElement;
139
- }
140
- function pt(e) {
141
- return ne(e) === "html" ? e : (
142
- // this is a quicker (but less type safe) way to save quite some bytes from the bundle
143
- // $FlowFixMe[incompatible-return]
144
- // $FlowFixMe[prop-missing]
145
- e.assignedSlot || // step into the shadow DOM of the parent of a slotted node
146
- e.parentNode || // DOM Element detected
147
- (St(e) ? e.host : null) || // ShadowRoot detected
148
- // $FlowFixMe[incompatible-call]: HTMLElement is a Node
149
- fe(e)
150
- );
151
- }
152
- function $t(e) {
153
- return !z(e) || // https://github.com/popperjs/popper-core/issues/837
154
- Z(e).position === "fixed" ? null : e.offsetParent;
155
- }
156
- function tr(e) {
157
- var t = /firefox/i.test(Ot()), n = /Trident/i.test(Ot());
158
- if (n && z(e)) {
159
- var r = Z(e);
160
- if (r.position === "fixed")
161
- return null;
162
- }
163
- var o = pt(e);
164
- for (St(o) && (o = o.host); z(o) && ["html", "body"].indexOf(ne(o)) < 0; ) {
165
- var a = Z(o);
166
- if (a.transform !== "none" || a.perspective !== "none" || a.contain === "paint" || ["transform", "perspective"].indexOf(a.willChange) !== -1 || t && a.willChange === "filter" || t && a.filter && a.filter !== "none")
167
- return o;
168
- o = o.parentNode;
169
- }
170
- return null;
171
- }
172
- function qe(e) {
173
- for (var t = K(e), n = $t(e); n && er(n) && Z(n).position === "static"; )
174
- n = $t(n);
175
- return n && (ne(n) === "html" || ne(n) === "body" && Z(n).position === "static") ? t : n || tr(e) || t;
176
- }
177
- function Nt(e) {
178
- return ["top", "bottom"].indexOf(e) >= 0 ? "x" : "y";
179
- }
180
- function ke(e, t, n) {
181
- return ye(e, st(t, n));
182
- }
183
- function nr(e, t, n) {
184
- var r = ke(e, t, n);
185
- return r > n ? n : r;
186
- }
187
- function fn() {
188
- return {
189
- top: 0,
190
- right: 0,
191
- bottom: 0,
192
- left: 0
193
- };
194
- }
195
- function ln(e) {
196
- return Object.assign({}, fn(), e);
197
- }
198
- function dn(e, t) {
199
- return t.reduce(function(n, r) {
200
- return n[r] = e, n;
201
- }, {});
202
- }
203
- var rr = function(t, n) {
204
- return t = typeof t == "function" ? t(Object.assign({}, n.rects, {
205
- placement: n.placement
206
- })) : t, ln(typeof t != "number" ? t : dn(t, Ue));
207
- };
208
- function ir(e) {
209
- var t, n = e.state, r = e.name, o = e.options, a = n.elements.arrow, c = n.modifiersData.popperOffsets, p = Q(n.placement), u = Nt(p), d = [U, G].indexOf(p) >= 0, f = d ? "height" : "width";
210
- if (!(!a || !c)) {
211
- var y = rr(o.padding, n), D = Ct(a), m = u === "y" ? F : U, w = u === "y" ? X : G, g = n.rects.reference[f] + n.rects.reference[u] - c[u] - n.rects.popper[f], b = c[u] - n.rects.reference[u], S = qe(a), L = S ? u === "y" ? S.clientHeight || 0 : S.clientWidth || 0 : 0, M = g / 2 - b / 2, i = y[m], E = L - D[f] - y[w], l = L / 2 - D[f] / 2 + M, N = ke(i, l, E), V = u;
212
- n.modifiersData[r] = (t = {}, t[V] = N, t.centerOffset = N - l, t);
213
- }
214
- }
215
- function or(e) {
216
- var t = e.state, n = e.options, r = n.element, o = r === void 0 ? "[data-popper-arrow]" : r;
217
- if (o != null && !(typeof o == "string" && (o = t.elements.popper.querySelector(o), !o))) {
218
- if (process.env.NODE_ENV !== "production" && (z(o) || console.error(['Popper: "arrow" element must be an HTMLElement (not an SVGElement).', "To use an SVG arrow, wrap it in an HTMLElement that will be used as", "the arrow."].join(" "))), !pn(t.elements.popper, o)) {
219
- process.env.NODE_ENV !== "production" && console.error(['Popper: "arrow" modifier\'s `element` must be a child of the popper', "element."].join(" "));
220
- return;
221
- }
222
- t.elements.arrow = o;
223
- }
224
- }
225
- const ar = {
226
- name: "arrow",
227
- enabled: !0,
228
- phase: "main",
229
- fn: ir,
230
- effect: or,
231
- requires: ["popperOffsets"],
232
- requiresIfExists: ["preventOverflow"]
233
- };
234
- function Pe(e) {
235
- return e.split("-")[1];
236
- }
237
- var sr = {
238
- top: "auto",
239
- right: "auto",
240
- bottom: "auto",
241
- left: "auto"
242
- };
243
- function ur(e) {
244
- var t = e.x, n = e.y, r = window, o = r.devicePixelRatio || 1;
245
- return {
246
- x: Ce(t * o) / o || 0,
247
- y: Ce(n * o) / o || 0
248
- };
249
- }
250
- function kt(e) {
251
- var t, n = e.popper, r = e.popperRect, o = e.placement, a = e.variation, c = e.offsets, p = e.position, u = e.gpuAcceleration, d = e.adaptive, f = e.roundOffsets, y = e.isFixed, D = c.x, m = D === void 0 ? 0 : D, w = c.y, g = w === void 0 ? 0 : w, b = typeof f == "function" ? f({
252
- x: m,
253
- y: g
254
- }) : {
255
- x: m,
256
- y: g
257
- };
258
- m = b.x, g = b.y;
259
- var S = c.hasOwnProperty("x"), L = c.hasOwnProperty("y"), M = U, i = F, E = window;
260
- if (d) {
261
- var l = qe(n), N = "clientHeight", V = "clientWidth";
262
- if (l === K(n) && (l = fe(n), Z(l).position !== "static" && p === "absolute" && (N = "scrollHeight", V = "scrollWidth")), l = l, o === F || (o === U || o === G) && a === He) {
263
- i = X;
264
- var T = y && l === E && E.visualViewport ? E.visualViewport.height : (
265
- // $FlowFixMe[prop-missing]
266
- l[N]
267
- );
268
- g -= T - r.height, g *= u ? 1 : -1;
269
- }
270
- if (o === U || (o === F || o === X) && a === He) {
271
- M = G;
272
- var C = y && l === E && E.visualViewport ? E.visualViewport.width : (
273
- // $FlowFixMe[prop-missing]
274
- l[V]
275
- );
276
- m -= C - r.width, m *= u ? 1 : -1;
277
- }
278
- }
279
- var x = Object.assign({
280
- position: p
281
- }, d && sr), P = f === !0 ? ur({
282
- x: m,
283
- y: g
284
- }) : {
285
- x: m,
286
- y: g
287
- };
288
- if (m = P.x, g = P.y, u) {
289
- var $;
290
- return Object.assign({}, x, ($ = {}, $[i] = L ? "0" : "", $[M] = S ? "0" : "", $.transform = (E.devicePixelRatio || 1) <= 1 ? "translate(" + m + "px, " + g + "px)" : "translate3d(" + m + "px, " + g + "px, 0)", $));
291
- }
292
- return Object.assign({}, x, (t = {}, t[i] = L ? g + "px" : "", t[M] = S ? m + "px" : "", t.transform = "", t));
293
- }
294
- function cr(e) {
295
- var t = e.state, n = e.options, r = n.gpuAcceleration, o = r === void 0 ? !0 : r, a = n.adaptive, c = a === void 0 ? !0 : a, p = n.roundOffsets, u = p === void 0 ? !0 : p;
296
- if (process.env.NODE_ENV !== "production") {
297
- var d = Z(t.elements.popper).transitionProperty || "";
298
- c && ["transform", "top", "right", "bottom", "left"].some(function(y) {
299
- return d.indexOf(y) >= 0;
300
- }) && console.warn(["Popper: Detected CSS transitions on at least one of the following", 'CSS properties: "transform", "top", "right", "bottom", "left".', `
301
-
302
- `, 'Disable the "computeStyles" modifier\'s `adaptive` option to allow', "for smooth transitions, or remove these properties from the CSS", "transition declaration on the popper element if only transitioning", "opacity or background-color for example.", `
303
-
304
- `, "We recommend using the popper element as a wrapper around an inner", "element that can have any CSS property transitioned for animations."].join(" "));
305
- }
306
- var f = {
307
- placement: Q(t.placement),
308
- variation: Pe(t.placement),
309
- popper: t.elements.popper,
310
- popperRect: t.rects.popper,
311
- gpuAcceleration: o,
312
- isFixed: t.options.strategy === "fixed"
313
- };
314
- t.modifiersData.popperOffsets != null && (t.styles.popper = Object.assign({}, t.styles.popper, kt(Object.assign({}, f, {
315
- offsets: t.modifiersData.popperOffsets,
316
- position: t.options.strategy,
317
- adaptive: c,
318
- roundOffsets: u
319
- })))), t.modifiersData.arrow != null && (t.styles.arrow = Object.assign({}, t.styles.arrow, kt(Object.assign({}, f, {
320
- offsets: t.modifiersData.arrow,
321
- position: "absolute",
322
- adaptive: !1,
323
- roundOffsets: u
324
- })))), t.attributes.popper = Object.assign({}, t.attributes.popper, {
325
- "data-popper-placement": t.placement
326
- });
327
- }
328
- const pr = {
329
- name: "computeStyles",
330
- enabled: !0,
331
- phase: "beforeWrite",
332
- fn: cr,
333
- data: {}
334
- };
335
- var it = {
336
- passive: !0
337
- };
338
- function fr(e) {
339
- var t = e.state, n = e.instance, r = e.options, o = r.scroll, a = o === void 0 ? !0 : o, c = r.resize, p = c === void 0 ? !0 : c, u = K(t.elements.popper), d = [].concat(t.scrollParents.reference, t.scrollParents.popper);
340
- return a && d.forEach(function(f) {
341
- f.addEventListener("scroll", n.update, it);
342
- }), p && u.addEventListener("resize", n.update, it), function() {
343
- a && d.forEach(function(f) {
344
- f.removeEventListener("scroll", n.update, it);
345
- }), p && u.removeEventListener("resize", n.update, it);
346
- };
347
- }
348
- const lr = {
349
- name: "eventListeners",
350
- enabled: !0,
351
- phase: "write",
352
- fn: function() {
353
- },
354
- effect: fr,
355
- data: {}
356
- };
357
- var dr = {
358
- left: "right",
359
- right: "left",
360
- bottom: "top",
361
- top: "bottom"
362
- };
363
- function at(e) {
364
- return e.replace(/left|right|bottom|top/g, function(t) {
365
- return dr[t];
366
- });
367
- }
368
- var vr = {
369
- start: "end",
370
- end: "start"
371
- };
372
- function It(e) {
373
- return e.replace(/start|end/g, function(t) {
374
- return vr[t];
375
- });
376
- }
377
- function Pt(e) {
378
- var t = K(e), n = t.pageXOffset, r = t.pageYOffset;
379
- return {
380
- scrollLeft: n,
381
- scrollTop: r
382
- };
383
- }
384
- function jt(e) {
385
- return Ne(fe(e)).left + Pt(e).scrollLeft;
386
- }
387
- function mr(e, t) {
388
- var n = K(e), r = fe(e), o = n.visualViewport, a = r.clientWidth, c = r.clientHeight, p = 0, u = 0;
389
- if (o) {
390
- a = o.width, c = o.height;
391
- var d = cn();
392
- (d || !d && t === "fixed") && (p = o.offsetLeft, u = o.offsetTop);
393
- }
394
- return {
395
- width: a,
396
- height: c,
397
- x: p + jt(e),
398
- y: u
399
- };
400
- }
401
- function hr(e) {
402
- var t, n = fe(e), r = Pt(e), o = (t = e.ownerDocument) == null ? void 0 : t.body, a = ye(n.scrollWidth, n.clientWidth, o ? o.scrollWidth : 0, o ? o.clientWidth : 0), c = ye(n.scrollHeight, n.clientHeight, o ? o.scrollHeight : 0, o ? o.clientHeight : 0), p = -r.scrollLeft + jt(e), u = -r.scrollTop;
403
- return Z(o || n).direction === "rtl" && (p += ye(n.clientWidth, o ? o.clientWidth : 0) - a), {
404
- width: a,
405
- height: c,
406
- x: p,
407
- y: u
408
- };
409
- }
410
- function Lt(e) {
411
- var t = Z(e), n = t.overflow, r = t.overflowX, o = t.overflowY;
412
- return /auto|scroll|overlay|hidden/.test(n + o + r);
413
- }
414
- function vn(e) {
415
- return ["html", "body", "#document"].indexOf(ne(e)) >= 0 ? e.ownerDocument.body : z(e) && Lt(e) ? e : vn(pt(e));
416
- }
417
- function Ie(e, t) {
418
- var n;
419
- t === void 0 && (t = []);
420
- var r = vn(e), o = r === ((n = e.ownerDocument) == null ? void 0 : n.body), a = K(r), c = o ? [a].concat(a.visualViewport || [], Lt(r) ? r : []) : r, p = t.concat(c);
421
- return o ? p : (
422
- // $FlowFixMe[incompatible-call]: isBody tells us target will be an HTMLElement here
423
- p.concat(Ie(pt(c)))
424
- );
425
- }
426
- function Et(e) {
427
- return Object.assign({}, e, {
428
- left: e.x,
429
- top: e.y,
430
- right: e.x + e.width,
431
- bottom: e.y + e.height
432
- });
433
- }
434
- function gr(e, t) {
435
- var n = Ne(e, !1, t === "fixed");
436
- return n.top = n.top + e.clientTop, n.left = n.left + e.clientLeft, n.bottom = n.top + e.clientHeight, n.right = n.left + e.clientWidth, n.width = e.clientWidth, n.height = e.clientHeight, n.x = n.left, n.y = n.top, n;
437
- }
438
- function Bt(e, t, n) {
439
- return t === an ? Et(mr(e, n)) : be(t) ? gr(t, n) : Et(hr(fe(e)));
440
- }
441
- function yr(e) {
442
- var t = Ie(pt(e)), n = ["absolute", "fixed"].indexOf(Z(e).position) >= 0, r = n && z(e) ? qe(e) : e;
443
- return be(r) ? t.filter(function(o) {
444
- return be(o) && pn(o, r) && ne(o) !== "body";
445
- }) : [];
446
- }
447
- function br(e, t, n, r) {
448
- var o = t === "clippingParents" ? yr(e) : [].concat(t), a = [].concat(o, [n]), c = a[0], p = a.reduce(function(u, d) {
449
- var f = Bt(e, d, r);
450
- return u.top = ye(f.top, u.top), u.right = st(f.right, u.right), u.bottom = st(f.bottom, u.bottom), u.left = ye(f.left, u.left), u;
451
- }, Bt(e, c, r));
452
- return p.width = p.right - p.left, p.height = p.bottom - p.top, p.x = p.left, p.y = p.top, p;
453
- }
454
- function mn(e) {
455
- var t = e.reference, n = e.element, r = e.placement, o = r ? Q(r) : null, a = r ? Pe(r) : null, c = t.x + t.width / 2 - n.width / 2, p = t.y + t.height / 2 - n.height / 2, u;
456
- switch (o) {
457
- case F:
458
- u = {
459
- x: c,
460
- y: t.y - n.height
461
- };
462
- break;
463
- case X:
464
- u = {
465
- x: c,
466
- y: t.y + t.height
467
- };
468
- break;
469
- case G:
470
- u = {
471
- x: t.x + t.width,
472
- y: p
473
- };
474
- break;
475
- case U:
476
- u = {
477
- x: t.x - n.width,
478
- y: p
479
- };
480
- break;
481
- default:
482
- u = {
483
- x: t.x,
484
- y: t.y
485
- };
486
- }
487
- var d = o ? Nt(o) : null;
488
- if (d != null) {
489
- var f = d === "y" ? "height" : "width";
490
- switch (a) {
491
- case Se:
492
- u[d] = u[d] - (t[f] / 2 - n[f] / 2);
493
- break;
494
- case He:
495
- u[d] = u[d] + (t[f] / 2 - n[f] / 2);
496
- break;
497
- }
498
- }
499
- return u;
500
- }
501
- function We(e, t) {
502
- t === void 0 && (t = {});
503
- var n = t, r = n.placement, o = r === void 0 ? e.placement : r, a = n.strategy, c = a === void 0 ? e.strategy : a, p = n.boundary, u = p === void 0 ? Wn : p, d = n.rootBoundary, f = d === void 0 ? an : d, y = n.elementContext, D = y === void 0 ? $e : y, m = n.altBoundary, w = m === void 0 ? !1 : m, g = n.padding, b = g === void 0 ? 0 : g, S = ln(typeof b != "number" ? b : dn(b, Ue)), L = D === $e ? _n : $e, M = e.rects.popper, i = e.elements[w ? L : D], E = br(be(i) ? i : i.contextElement || fe(e.elements.popper), u, f, c), l = Ne(e.elements.reference), N = mn({
504
- reference: l,
505
- element: M,
506
- strategy: "absolute",
507
- placement: o
508
- }), V = Et(Object.assign({}, M, N)), T = D === $e ? V : l, C = {
509
- top: E.top - T.top + S.top,
510
- bottom: T.bottom - E.bottom + S.bottom,
511
- left: E.left - T.left + S.left,
512
- right: T.right - E.right + S.right
513
- }, x = e.modifiersData.offset;
514
- if (D === $e && x) {
515
- var P = x[o];
516
- Object.keys(C).forEach(function($) {
517
- var R = [G, X].indexOf($) >= 0 ? 1 : -1, O = [F, X].indexOf($) >= 0 ? "y" : "x";
518
- C[$] += P[O] * R;
519
- });
520
- }
521
- return C;
522
- }
523
- function wr(e, t) {
524
- t === void 0 && (t = {});
525
- var n = t, r = n.placement, o = n.boundary, a = n.rootBoundary, c = n.padding, p = n.flipVariations, u = n.allowedAutoPlacements, d = u === void 0 ? sn : u, f = Pe(r), y = f ? p ? Vt : Vt.filter(function(w) {
526
- return Pe(w) === f;
527
- }) : Ue, D = y.filter(function(w) {
528
- return d.indexOf(w) >= 0;
529
- });
530
- D.length === 0 && (D = y, process.env.NODE_ENV !== "production" && console.error(["Popper: The `allowedAutoPlacements` option did not allow any", "placements. Ensure the `placement` option matches the variation", "of the allowed placements.", 'For example, "auto" cannot be used to allow "bottom-start".', 'Use "auto-start" instead.'].join(" ")));
531
- var m = D.reduce(function(w, g) {
532
- return w[g] = We(e, {
533
- placement: g,
534
- boundary: o,
535
- rootBoundary: a,
536
- padding: c
537
- })[Q(g)], w;
538
- }, {});
539
- return Object.keys(m).sort(function(w, g) {
540
- return m[w] - m[g];
541
- });
542
- }
543
- function Or(e) {
544
- if (Q(e) === ct)
545
- return [];
546
- var t = at(e);
547
- return [It(e), t, It(t)];
548
- }
549
- function Er(e) {
550
- var t = e.state, n = e.options, r = e.name;
551
- if (!t.modifiersData[r]._skip) {
552
- for (var o = n.mainAxis, a = o === void 0 ? !0 : o, c = n.altAxis, p = c === void 0 ? !0 : c, u = n.fallbackPlacements, d = n.padding, f = n.boundary, y = n.rootBoundary, D = n.altBoundary, m = n.flipVariations, w = m === void 0 ? !0 : m, g = n.allowedAutoPlacements, b = t.options.placement, S = Q(b), L = S === b, M = u || (L || !w ? [at(b)] : Or(b)), i = [b].concat(M).reduce(function(re, J) {
553
- return re.concat(Q(J) === ct ? wr(t, {
554
- placement: J,
555
- boundary: f,
556
- rootBoundary: y,
557
- padding: d,
558
- flipVariations: w,
559
- allowedAutoPlacements: g
560
- }) : J);
561
- }, []), E = t.rects.reference, l = t.rects.popper, N = /* @__PURE__ */ new Map(), V = !0, T = i[0], C = 0; C < i.length; C++) {
562
- var x = i[C], P = Q(x), $ = Pe(x) === Se, R = [F, X].indexOf(P) >= 0, O = R ? "width" : "height", B = We(t, {
563
- placement: x,
564
- boundary: f,
565
- rootBoundary: y,
566
- altBoundary: D,
567
- padding: d
568
- }), I = R ? $ ? G : U : $ ? X : F;
569
- E[O] > l[O] && (I = at(I));
570
- var k = at(I), W = [];
571
- if (a && W.push(B[P] <= 0), p && W.push(B[I] <= 0, B[k] <= 0), W.every(function(re) {
572
- return re;
573
- })) {
574
- T = x, V = !1;
575
- break;
576
- }
577
- N.set(x, W);
578
- }
579
- if (V)
580
- for (var H = w ? 3 : 1, le = function(J) {
581
- var ie = i.find(function(we) {
582
- var oe = N.get(we);
583
- if (oe)
584
- return oe.slice(0, J).every(function(Oe) {
585
- return Oe;
586
- });
587
- });
588
- if (ie)
589
- return T = ie, "break";
590
- }, ee = H; ee > 0; ee--) {
591
- var de = le(ee);
592
- if (de === "break")
593
- break;
594
- }
595
- t.placement !== T && (t.modifiersData[r]._skip = !0, t.placement = T, t.reset = !0);
596
- }
597
- }
598
- const xr = {
599
- name: "flip",
600
- enabled: !0,
601
- phase: "main",
602
- fn: Er,
603
- requiresIfExists: ["offset"],
604
- data: {
605
- _skip: !1
606
- }
607
- };
608
- function Ht(e, t, n) {
609
- return n === void 0 && (n = {
610
- x: 0,
611
- y: 0
612
- }), {
613
- top: e.top - t.height - n.y,
614
- right: e.right - t.width + n.x,
615
- bottom: e.bottom - t.height + n.y,
616
- left: e.left - t.width - n.x
617
- };
618
- }
619
- function Wt(e) {
620
- return [F, G, X, U].some(function(t) {
621
- return e[t] >= 0;
622
- });
623
- }
624
- function Tr(e) {
625
- var t = e.state, n = e.name, r = t.rects.reference, o = t.rects.popper, a = t.modifiersData.preventOverflow, c = We(t, {
626
- elementContext: "reference"
627
- }), p = We(t, {
628
- altBoundary: !0
629
- }), u = Ht(c, r), d = Ht(p, o, a), f = Wt(u), y = Wt(d);
630
- t.modifiersData[n] = {
631
- referenceClippingOffsets: u,
632
- popperEscapeOffsets: d,
633
- isReferenceHidden: f,
634
- hasPopperEscaped: y
635
- }, t.attributes.popper = Object.assign({}, t.attributes.popper, {
636
- "data-popper-reference-hidden": f,
637
- "data-popper-escaped": y
638
- });
639
- }
640
- const Dr = {
641
- name: "hide",
642
- enabled: !0,
643
- phase: "main",
644
- requiresIfExists: ["preventOverflow"],
645
- fn: Tr
646
- };
647
- function Ar(e, t, n) {
648
- var r = Q(e), o = [U, F].indexOf(r) >= 0 ? -1 : 1, a = typeof n == "function" ? n(Object.assign({}, t, {
649
- placement: e
650
- })) : n, c = a[0], p = a[1];
651
- return c = c || 0, p = (p || 0) * o, [U, G].indexOf(r) >= 0 ? {
652
- x: p,
653
- y: c
654
- } : {
655
- x: c,
656
- y: p
657
- };
658
- }
659
- function Sr(e) {
660
- var t = e.state, n = e.options, r = e.name, o = n.offset, a = o === void 0 ? [0, 0] : o, c = sn.reduce(function(f, y) {
661
- return f[y] = Ar(y, t.rects, a), f;
662
- }, {}), p = c[t.placement], u = p.x, d = p.y;
663
- t.modifiersData.popperOffsets != null && (t.modifiersData.popperOffsets.x += u, t.modifiersData.popperOffsets.y += d), t.modifiersData[r] = c;
664
- }
665
- const Cr = {
666
- name: "offset",
667
- enabled: !0,
668
- phase: "main",
669
- requires: ["popperOffsets"],
670
- fn: Sr
671
- };
672
- function Nr(e) {
673
- var t = e.state, n = e.name;
674
- t.modifiersData[n] = mn({
675
- reference: t.rects.reference,
676
- element: t.rects.popper,
677
- strategy: "absolute",
678
- placement: t.placement
679
- });
680
- }
681
- const Pr = {
682
- name: "popperOffsets",
683
- enabled: !0,
684
- phase: "read",
685
- fn: Nr,
686
- data: {}
687
- };
688
- function jr(e) {
689
- return e === "x" ? "y" : "x";
690
- }
691
- function Lr(e) {
692
- var t = e.state, n = e.options, r = e.name, o = n.mainAxis, a = o === void 0 ? !0 : o, c = n.altAxis, p = c === void 0 ? !1 : c, u = n.boundary, d = n.rootBoundary, f = n.altBoundary, y = n.padding, D = n.tether, m = D === void 0 ? !0 : D, w = n.tetherOffset, g = w === void 0 ? 0 : w, b = We(t, {
693
- boundary: u,
694
- rootBoundary: d,
695
- padding: y,
696
- altBoundary: f
697
- }), S = Q(t.placement), L = Pe(t.placement), M = !L, i = Nt(S), E = jr(i), l = t.modifiersData.popperOffsets, N = t.rects.reference, V = t.rects.popper, T = typeof g == "function" ? g(Object.assign({}, t.rects, {
698
- placement: t.placement
699
- })) : g, C = typeof T == "number" ? {
700
- mainAxis: T,
701
- altAxis: T
702
- } : Object.assign({
703
- mainAxis: 0,
704
- altAxis: 0
705
- }, T), x = t.modifiersData.offset ? t.modifiersData.offset[t.placement] : null, P = {
706
- x: 0,
707
- y: 0
708
- };
709
- if (l) {
710
- if (a) {
711
- var $, R = i === "y" ? F : U, O = i === "y" ? X : G, B = i === "y" ? "height" : "width", I = l[i], k = I + b[R], W = I - b[O], H = m ? -V[B] / 2 : 0, le = L === Se ? N[B] : V[B], ee = L === Se ? -V[B] : -N[B], de = t.elements.arrow, re = m && de ? Ct(de) : {
712
- width: 0,
713
- height: 0
714
- }, J = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : fn(), ie = J[R], we = J[O], oe = ke(0, N[B], re[B]), Oe = M ? N[B] / 2 - H - oe - ie - C.mainAxis : le - oe - ie - C.mainAxis, ue = M ? -N[B] / 2 + H + oe + we + C.mainAxis : ee + oe + we + C.mainAxis, Ee = t.elements.arrow && qe(t.elements.arrow), Ye = Ee ? i === "y" ? Ee.clientTop || 0 : Ee.clientLeft || 0 : 0, je = ($ = x?.[i]) != null ? $ : 0, Xe = I + Oe - je - Ye, Ge = I + ue - je, Le = ke(m ? st(k, Xe) : k, I, m ? ye(W, Ge) : W);
715
- l[i] = Le, P[i] = Le - I;
716
- }
717
- if (p) {
718
- var Re, Ke = i === "x" ? F : U, Je = i === "x" ? X : G, ae = l[E], ce = E === "y" ? "height" : "width", Me = ae + b[Ke], ve = ae - b[Je], Ve = [F, U].indexOf(S) !== -1, Qe = (Re = x?.[E]) != null ? Re : 0, Ze = Ve ? Me : ae - N[ce] - V[ce] - Qe + C.altAxis, et = Ve ? ae + N[ce] + V[ce] - Qe - C.altAxis : ve, tt = m && Ve ? nr(Ze, ae, et) : ke(m ? Ze : Me, ae, m ? et : ve);
719
- l[E] = tt, P[E] = tt - ae;
720
- }
721
- t.modifiersData[r] = P;
722
- }
723
- }
724
- const Rr = {
725
- name: "preventOverflow",
726
- enabled: !0,
727
- phase: "main",
728
- fn: Lr,
729
- requiresIfExists: ["offset"]
730
- };
731
- function Mr(e) {
732
- return {
733
- scrollLeft: e.scrollLeft,
734
- scrollTop: e.scrollTop
735
- };
736
- }
737
- function Vr(e) {
738
- return e === K(e) || !z(e) ? Pt(e) : Mr(e);
739
- }
740
- function $r(e) {
741
- var t = e.getBoundingClientRect(), n = Ce(t.width) / e.offsetWidth || 1, r = Ce(t.height) / e.offsetHeight || 1;
742
- return n !== 1 || r !== 1;
743
- }
744
- function kr(e, t, n) {
745
- n === void 0 && (n = !1);
746
- var r = z(t), o = z(t) && $r(t), a = fe(t), c = Ne(e, o, n), p = {
747
- scrollLeft: 0,
748
- scrollTop: 0
749
- }, u = {
750
- x: 0,
751
- y: 0
752
- };
753
- return (r || !r && !n) && ((ne(t) !== "body" || // https://github.com/popperjs/popper-core/issues/1078
754
- Lt(a)) && (p = Vr(t)), z(t) ? (u = Ne(t, !0), u.x += t.clientLeft, u.y += t.clientTop) : a && (u.x = jt(a))), {
755
- x: c.left + p.scrollLeft - u.x,
756
- y: c.top + p.scrollTop - u.y,
757
- width: c.width,
758
- height: c.height
759
- };
760
- }
761
- function Ir(e) {
762
- var t = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Set(), r = [];
763
- e.forEach(function(a) {
764
- t.set(a.name, a);
765
- });
766
- function o(a) {
767
- n.add(a.name);
768
- var c = [].concat(a.requires || [], a.requiresIfExists || []);
769
- c.forEach(function(p) {
770
- if (!n.has(p)) {
771
- var u = t.get(p);
772
- u && o(u);
773
- }
774
- }), r.push(a);
775
- }
776
- return e.forEach(function(a) {
777
- n.has(a.name) || o(a);
778
- }), r;
779
- }
780
- function Br(e) {
781
- var t = Ir(e);
782
- return wt.reduce(function(n, r) {
783
- return n.concat(t.filter(function(o) {
784
- return o.phase === r;
785
- }));
786
- }, []);
787
- }
788
- function Hr(e) {
789
- var t;
790
- return function() {
791
- return t || (t = new Promise(function(n) {
792
- Promise.resolve().then(function() {
793
- t = void 0, n(e());
794
- });
795
- })), t;
796
- };
797
- }
798
- function pe(e) {
799
- for (var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), r = 1; r < t; r++)
800
- n[r - 1] = arguments[r];
801
- return [].concat(n).reduce(function(o, a) {
802
- return o.replace(/%s/, a);
803
- }, e);
804
- }
805
- var he = 'Popper: modifier "%s" provided an invalid %s property, expected %s but got %s', Wr = 'Popper: modifier "%s" requires "%s", but "%s" modifier is not available', _t = ["name", "enabled", "phase", "fn", "effect", "requires", "options"];
806
- function _r(e) {
807
- e.forEach(function(t) {
808
- [].concat(Object.keys(t), _t).filter(function(n, r, o) {
809
- return o.indexOf(n) === r;
810
- }).forEach(function(n) {
811
- switch (n) {
812
- case "name":
813
- typeof t.name != "string" && console.error(pe(he, String(t.name), '"name"', '"string"', '"' + String(t.name) + '"'));
814
- break;
815
- case "enabled":
816
- typeof t.enabled != "boolean" && console.error(pe(he, t.name, '"enabled"', '"boolean"', '"' + String(t.enabled) + '"'));
817
- break;
818
- case "phase":
819
- wt.indexOf(t.phase) < 0 && console.error(pe(he, t.name, '"phase"', "either " + wt.join(", "), '"' + String(t.phase) + '"'));
820
- break;
821
- case "fn":
822
- typeof t.fn != "function" && console.error(pe(he, t.name, '"fn"', '"function"', '"' + String(t.fn) + '"'));
823
- break;
824
- case "effect":
825
- t.effect != null && typeof t.effect != "function" && console.error(pe(he, t.name, '"effect"', '"function"', '"' + String(t.fn) + '"'));
826
- break;
827
- case "requires":
828
- t.requires != null && !Array.isArray(t.requires) && console.error(pe(he, t.name, '"requires"', '"array"', '"' + String(t.requires) + '"'));
829
- break;
830
- case "requiresIfExists":
831
- Array.isArray(t.requiresIfExists) || console.error(pe(he, t.name, '"requiresIfExists"', '"array"', '"' + String(t.requiresIfExists) + '"'));
832
- break;
833
- case "options":
834
- case "data":
835
- break;
836
- default:
837
- console.error('PopperJS: an invalid property has been provided to the "' + t.name + '" modifier, valid properties are ' + _t.map(function(r) {
838
- return '"' + r + '"';
839
- }).join(", ") + '; but "' + n + '" was provided.');
840
- }
841
- t.requires && t.requires.forEach(function(r) {
842
- e.find(function(o) {
843
- return o.name === r;
844
- }) == null && console.error(pe(Wr, String(t.name), r, r));
845
- });
846
- });
847
- });
848
- }
849
- function Fr(e, t) {
850
- var n = /* @__PURE__ */ new Set();
851
- return e.filter(function(r) {
852
- var o = t(r);
853
- if (!n.has(o))
854
- return n.add(o), !0;
855
- });
856
- }
857
- function Ur(e) {
858
- var t = e.reduce(function(n, r) {
859
- var o = n[r.name];
860
- return n[r.name] = o ? Object.assign({}, o, r, {
861
- options: Object.assign({}, o.options, r.options),
862
- data: Object.assign({}, o.data, r.data)
863
- }) : r, n;
864
- }, {});
865
- return Object.keys(t).map(function(n) {
866
- return t[n];
867
- });
868
- }
869
- var Ft = "Popper: Invalid reference or popper argument provided. They must be either a DOM element or virtual element.", qr = "Popper: An infinite loop in the modifiers cycle has been detected! The cycle has been interrupted to prevent a browser crash.", Ut = {
870
- placement: "bottom",
871
- modifiers: [],
872
- strategy: "absolute"
873
- };
874
- function qt() {
875
- for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++)
876
- t[n] = arguments[n];
877
- return !t.some(function(r) {
878
- return !(r && typeof r.getBoundingClientRect == "function");
879
- });
880
- }
881
- function zr(e) {
882
- e === void 0 && (e = {});
883
- var t = e, n = t.defaultModifiers, r = n === void 0 ? [] : n, o = t.defaultOptions, a = o === void 0 ? Ut : o;
884
- return function(p, u, d) {
885
- d === void 0 && (d = a);
886
- var f = {
887
- placement: "bottom",
888
- orderedModifiers: [],
889
- options: Object.assign({}, Ut, a),
890
- modifiersData: {},
891
- elements: {
892
- reference: p,
893
- popper: u
894
- },
895
- attributes: {},
896
- styles: {}
897
- }, y = [], D = !1, m = {
898
- state: f,
899
- setOptions: function(S) {
900
- var L = typeof S == "function" ? S(f.options) : S;
901
- g(), f.options = Object.assign({}, a, f.options, L), f.scrollParents = {
902
- reference: be(p) ? Ie(p) : p.contextElement ? Ie(p.contextElement) : [],
903
- popper: Ie(u)
904
- };
905
- var M = Br(Ur([].concat(r, f.options.modifiers)));
906
- if (f.orderedModifiers = M.filter(function(x) {
907
- return x.enabled;
908
- }), process.env.NODE_ENV !== "production") {
909
- var i = Fr([].concat(M, f.options.modifiers), function(x) {
910
- var P = x.name;
911
- return P;
912
- });
913
- if (_r(i), Q(f.options.placement) === ct) {
914
- var E = f.orderedModifiers.find(function(x) {
915
- var P = x.name;
916
- return P === "flip";
917
- });
918
- E || console.error(['Popper: "auto" placements require the "flip" modifier be', "present and enabled to work."].join(" "));
919
- }
920
- var l = Z(u), N = l.marginTop, V = l.marginRight, T = l.marginBottom, C = l.marginLeft;
921
- [N, V, T, C].some(function(x) {
922
- return parseFloat(x);
923
- }) && console.warn(['Popper: CSS "margin" styles cannot be used to apply padding', "between the popper and its reference element or boundary.", "To replicate margin, use the `offset` modifier, as well as", "the `padding` option in the `preventOverflow` and `flip`", "modifiers."].join(" "));
924
- }
925
- return w(), m.update();
926
- },
927
- // Sync update – it will always be executed, even if not necessary. This
928
- // is useful for low frequency updates where sync behavior simplifies the
929
- // logic.
930
- // For high frequency updates (e.g. `resize` and `scroll` events), always
931
- // prefer the async Popper#update method
932
- forceUpdate: function() {
933
- if (!D) {
934
- var S = f.elements, L = S.reference, M = S.popper;
935
- if (!qt(L, M)) {
936
- process.env.NODE_ENV !== "production" && console.error(Ft);
937
- return;
938
- }
939
- f.rects = {
940
- reference: kr(L, qe(M), f.options.strategy === "fixed"),
941
- popper: Ct(M)
942
- }, f.reset = !1, f.placement = f.options.placement, f.orderedModifiers.forEach(function(x) {
943
- return f.modifiersData[x.name] = Object.assign({}, x.data);
944
- });
945
- for (var i = 0, E = 0; E < f.orderedModifiers.length; E++) {
946
- if (process.env.NODE_ENV !== "production" && (i += 1, i > 100)) {
947
- console.error(qr);
948
- break;
949
- }
950
- if (f.reset === !0) {
951
- f.reset = !1, E = -1;
952
- continue;
953
- }
954
- var l = f.orderedModifiers[E], N = l.fn, V = l.options, T = V === void 0 ? {} : V, C = l.name;
955
- typeof N == "function" && (f = N({
956
- state: f,
957
- options: T,
958
- name: C,
959
- instance: m
960
- }) || f);
961
- }
962
- }
963
- },
964
- // Async and optimistically optimized update – it will not be executed if
965
- // not necessary (debounced to run at most once-per-tick)
966
- update: Hr(function() {
967
- return new Promise(function(b) {
968
- m.forceUpdate(), b(f);
969
- });
970
- }),
971
- destroy: function() {
972
- g(), D = !0;
973
- }
974
- };
975
- if (!qt(p, u))
976
- return process.env.NODE_ENV !== "production" && console.error(Ft), m;
977
- m.setOptions(d).then(function(b) {
978
- !D && d.onFirstUpdate && d.onFirstUpdate(b);
979
- });
980
- function w() {
981
- f.orderedModifiers.forEach(function(b) {
982
- var S = b.name, L = b.options, M = L === void 0 ? {} : L, i = b.effect;
983
- if (typeof i == "function") {
984
- var E = i({
985
- state: f,
986
- name: S,
987
- instance: m,
988
- options: M
989
- }), l = function() {
990
- };
991
- y.push(E || l);
992
- }
993
- });
994
- }
995
- function g() {
996
- y.forEach(function(b) {
997
- return b();
998
- }), y = [];
999
- }
1000
- return m;
1001
- };
1002
- }
1003
- var Yr = [lr, Pr, pr, un, Cr, xr, Rr, ar, Dr], Xr = /* @__PURE__ */ zr({
1004
- defaultModifiers: Yr
1005
- }), Gr = "tippy-box", hn = "tippy-content", Kr = "tippy-backdrop", gn = "tippy-arrow", yn = "tippy-svg-arrow", ge = {
1006
- passive: !0,
1007
- capture: !0
1008
- }, bn = function() {
1009
- return document.body;
1010
- };
1011
- function Jr(e, t) {
1012
- return {}.hasOwnProperty.call(e, t);
1013
- }
1014
- function vt(e, t, n) {
1015
- if (Array.isArray(e)) {
1016
- var r = e[t];
1017
- return r ?? (Array.isArray(n) ? n[t] : n);
1018
- }
1019
- return e;
1020
- }
1021
- function Rt(e, t) {
1022
- var n = {}.toString.call(e);
1023
- return n.indexOf("[object") === 0 && n.indexOf(t + "]") > -1;
1024
- }
1025
- function wn(e, t) {
1026
- return typeof e == "function" ? e.apply(void 0, t) : e;
1027
- }
1028
- function zt(e, t) {
1029
- if (t === 0)
1030
- return e;
1031
- var n;
1032
- return function(r) {
1033
- clearTimeout(n), n = setTimeout(function() {
1034
- e(r);
1035
- }, t);
1036
- };
1037
- }
1038
- function Qr(e, t) {
1039
- var n = Object.assign({}, e);
1040
- return t.forEach(function(r) {
1041
- delete n[r];
1042
- }), n;
1043
- }
1044
- function Zr(e) {
1045
- return e.split(/\s+/).filter(Boolean);
1046
- }
1047
- function Ae(e) {
1048
- return [].concat(e);
1049
- }
1050
- function Yt(e, t) {
1051
- e.indexOf(t) === -1 && e.push(t);
1052
- }
1053
- function ei(e) {
1054
- return e.filter(function(t, n) {
1055
- return e.indexOf(t) === n;
1056
- });
1057
- }
1058
- function ti(e) {
1059
- return e.split("-")[0];
1060
- }
1061
- function ut(e) {
1062
- return [].slice.call(e);
1063
- }
1064
- function Xt(e) {
1065
- return Object.keys(e).reduce(function(t, n) {
1066
- return e[n] !== void 0 && (t[n] = e[n]), t;
1067
- }, {});
1068
- }
1069
- function Be() {
1070
- return document.createElement("div");
1071
- }
1072
- function _e(e) {
1073
- return ["Element", "Fragment"].some(function(t) {
1074
- return Rt(e, t);
1075
- });
1076
- }
1077
- function ni(e) {
1078
- return Rt(e, "NodeList");
1079
- }
1080
- function ri(e) {
1081
- return Rt(e, "MouseEvent");
1082
- }
1083
- function ii(e) {
1084
- return !!(e && e._tippy && e._tippy.reference === e);
1085
- }
1086
- function oi(e) {
1087
- return _e(e) ? [e] : ni(e) ? ut(e) : Array.isArray(e) ? e : ut(document.querySelectorAll(e));
1088
- }
1089
- function mt(e, t) {
1090
- e.forEach(function(n) {
1091
- n && (n.style.transitionDuration = t + "ms");
1092
- });
1093
- }
1094
- function Gt(e, t) {
1095
- e.forEach(function(n) {
1096
- n && n.setAttribute("data-state", t);
1097
- });
1098
- }
1099
- function ai(e) {
1100
- var t, n = Ae(e), r = n[0];
1101
- return r != null && (t = r.ownerDocument) != null && t.body ? r.ownerDocument : document;
1102
- }
1103
- function si(e, t) {
1104
- var n = t.clientX, r = t.clientY;
1105
- return e.every(function(o) {
1106
- var a = o.popperRect, c = o.popperState, p = o.props, u = p.interactiveBorder, d = ti(c.placement), f = c.modifiersData.offset;
1107
- if (!f)
1108
- return !0;
1109
- var y = d === "bottom" ? f.top.y : 0, D = d === "top" ? f.bottom.y : 0, m = d === "right" ? f.left.x : 0, w = d === "left" ? f.right.x : 0, g = a.top - r + y > u, b = r - a.bottom - D > u, S = a.left - n + m > u, L = n - a.right - w > u;
1110
- return g || b || S || L;
1111
- });
1112
- }
1113
- function ht(e, t, n) {
1114
- var r = t + "EventListener";
1115
- ["transitionend", "webkitTransitionEnd"].forEach(function(o) {
1116
- e[r](o, n);
1117
- });
1118
- }
1119
- function Kt(e, t) {
1120
- for (var n = t; n; ) {
1121
- var r;
1122
- if (e.contains(n))
1123
- return !0;
1124
- n = n.getRootNode == null || (r = n.getRootNode()) == null ? void 0 : r.host;
1125
- }
1126
- return !1;
1127
- }
1128
- var te = {
1129
- isTouch: !1
1130
- }, Jt = 0;
1131
- function ui() {
1132
- te.isTouch || (te.isTouch = !0, window.performance && document.addEventListener("mousemove", On));
1133
- }
1134
- function On() {
1135
- var e = performance.now();
1136
- e - Jt < 20 && (te.isTouch = !1, document.removeEventListener("mousemove", On)), Jt = e;
1137
- }
1138
- function ci() {
1139
- var e = document.activeElement;
1140
- if (ii(e)) {
1141
- var t = e._tippy;
1142
- e.blur && !t.state.isVisible && e.blur();
1143
- }
1144
- }
1145
- function pi() {
1146
- document.addEventListener("touchstart", ui, ge), window.addEventListener("blur", ci);
1147
- }
1148
- var fi = typeof window < "u" && typeof document < "u", li = fi ? (
1149
- // @ts-ignore
1150
- !!window.msCrypto
1151
- ) : !1;
1152
- function De(e) {
1153
- var t = e === "destroy" ? "n already-" : " ";
1154
- return [e + "() was called on a" + t + "destroyed instance. This is a no-op but", "indicates a potential memory leak."].join(" ");
1155
- }
1156
- function Qt(e) {
1157
- var t = /[ \t]{2,}/g, n = /^[ \t]*/gm;
1158
- return e.replace(t, " ").replace(n, "").trim();
1159
- }
1160
- function di(e) {
1161
- return Qt(`
1162
- %ctippy.js
1163
-
1164
- %c` + Qt(e) + `
1165
-
1166
- %c👷‍ This is a development-only message. It will be removed in production.
1167
- `);
1168
- }
1169
- function En(e) {
1170
- return [
1171
- di(e),
1172
- // title
1173
- "color: #00C584; font-size: 1.3em; font-weight: bold;",
1174
- // message
1175
- "line-height: 1.5",
1176
- // footer
1177
- "color: #a6a095;"
1178
- ];
1179
- }
1180
- var Fe;
1181
- process.env.NODE_ENV !== "production" && vi();
1182
- function vi() {
1183
- Fe = /* @__PURE__ */ new Set();
1184
- }
1185
- function se(e, t) {
1186
- if (e && !Fe.has(t)) {
1187
- var n;
1188
- Fe.add(t), (n = console).warn.apply(n, En(t));
1189
- }
1190
- }
1191
- function xt(e, t) {
1192
- if (e && !Fe.has(t)) {
1193
- var n;
1194
- Fe.add(t), (n = console).error.apply(n, En(t));
1195
- }
1196
- }
1197
- function mi(e) {
1198
- var t = !e, n = Object.prototype.toString.call(e) === "[object Object]" && !e.addEventListener;
1199
- xt(t, ["tippy() was passed", "`" + String(e) + "`", "as its targets (first) argument. Valid types are: String, Element,", "Element[], or NodeList."].join(" ")), xt(n, ["tippy() was passed a plain object which is not supported as an argument", "for virtual positioning. Use props.getReferenceClientRect instead."].join(" "));
1200
- }
1201
- var xn = {
1202
- animateFill: !1,
1203
- followCursor: !1,
1204
- inlinePositioning: !1,
1205
- sticky: !1
1206
- }, hi = {
1207
- allowHTML: !1,
1208
- animation: "fade",
1209
- arrow: !0,
1210
- content: "",
1211
- inertia: !1,
1212
- maxWidth: 350,
1213
- role: "tooltip",
1214
- theme: "",
1215
- zIndex: 9999
1216
- }, q = Object.assign({
1217
- appendTo: bn,
1218
- aria: {
1219
- content: "auto",
1220
- expanded: "auto"
1221
- },
1222
- delay: 0,
1223
- duration: [300, 250],
1224
- getReferenceClientRect: null,
1225
- hideOnClick: !0,
1226
- ignoreAttributes: !1,
1227
- interactive: !1,
1228
- interactiveBorder: 2,
1229
- interactiveDebounce: 0,
1230
- moveTransition: "",
1231
- offset: [0, 10],
1232
- onAfterUpdate: function() {
1233
- },
1234
- onBeforeUpdate: function() {
1235
- },
1236
- onCreate: function() {
1237
- },
1238
- onDestroy: function() {
1239
- },
1240
- onHidden: function() {
1241
- },
1242
- onHide: function() {
1243
- },
1244
- onMount: function() {
1245
- },
1246
- onShow: function() {
1247
- },
1248
- onShown: function() {
1249
- },
1250
- onTrigger: function() {
1251
- },
1252
- onUntrigger: function() {
1253
- },
1254
- onClickOutside: function() {
1255
- },
1256
- placement: "top",
1257
- plugins: [],
1258
- popperOptions: {},
1259
- render: null,
1260
- showOnCreate: !1,
1261
- touch: !0,
1262
- trigger: "mouseenter focus",
1263
- triggerTarget: null
1264
- }, xn, hi), gi = Object.keys(q), yi = function(t) {
1265
- process.env.NODE_ENV !== "production" && Dn(t, []);
1266
- var n = Object.keys(t);
1267
- n.forEach(function(r) {
1268
- q[r] = t[r];
1269
- });
1270
- };
1271
- function Tn(e) {
1272
- var t = e.plugins || [], n = t.reduce(function(r, o) {
1273
- var a = o.name, c = o.defaultValue;
1274
- if (a) {
1275
- var p;
1276
- r[a] = e[a] !== void 0 ? e[a] : (p = q[a]) != null ? p : c;
1277
- }
1278
- return r;
1279
- }, {});
1280
- return Object.assign({}, e, n);
1281
- }
1282
- function bi(e, t) {
1283
- var n = t ? Object.keys(Tn(Object.assign({}, q, {
1284
- plugins: t
1285
- }))) : gi, r = n.reduce(function(o, a) {
1286
- var c = (e.getAttribute("data-tippy-" + a) || "").trim();
1287
- if (!c)
1288
- return o;
1289
- if (a === "content")
1290
- o[a] = c;
1291
- else
1292
- try {
1293
- o[a] = JSON.parse(c);
1294
- } catch {
1295
- o[a] = c;
1296
- }
1297
- return o;
1298
- }, {});
1299
- return r;
1300
- }
1301
- function Zt(e, t) {
1302
- var n = Object.assign({}, t, {
1303
- content: wn(t.content, [e])
1304
- }, t.ignoreAttributes ? {} : bi(e, t.plugins));
1305
- return n.aria = Object.assign({}, q.aria, n.aria), n.aria = {
1306
- expanded: n.aria.expanded === "auto" ? t.interactive : n.aria.expanded,
1307
- content: n.aria.content === "auto" ? t.interactive ? null : "describedby" : n.aria.content
1308
- }, n;
1309
- }
1310
- function Dn(e, t) {
1311
- e === void 0 && (e = {}), t === void 0 && (t = []);
1312
- var n = Object.keys(e);
1313
- n.forEach(function(r) {
1314
- var o = Qr(q, Object.keys(xn)), a = !Jr(o, r);
1315
- a && (a = t.filter(function(c) {
1316
- return c.name === r;
1317
- }).length === 0), se(a, ["`" + r + "`", "is not a valid prop. You may have spelled it incorrectly, or if it's", "a plugin, forgot to pass it in an array as props.plugins.", `
1318
-
1319
- `, `All props: https://atomiks.github.io/tippyjs/v6/all-props/
1320
- `, "Plugins: https://atomiks.github.io/tippyjs/v6/plugins/"].join(" "));
1321
- });
1322
- }
1323
- var wi = function() {
1324
- return "innerHTML";
1325
- };
1326
- function Tt(e, t) {
1327
- e[wi()] = t;
1328
- }
1329
- function en(e) {
1330
- var t = Be();
1331
- return e === !0 ? t.className = gn : (t.className = yn, _e(e) ? t.appendChild(e) : Tt(t, e)), t;
1332
- }
1333
- function tn(e, t) {
1334
- _e(t.content) ? (Tt(e, ""), e.appendChild(t.content)) : typeof t.content != "function" && (t.allowHTML ? Tt(e, t.content) : e.textContent = t.content);
1335
- }
1336
- function Dt(e) {
1337
- var t = e.firstElementChild, n = ut(t.children);
1338
- return {
1339
- box: t,
1340
- content: n.find(function(r) {
1341
- return r.classList.contains(hn);
1342
- }),
1343
- arrow: n.find(function(r) {
1344
- return r.classList.contains(gn) || r.classList.contains(yn);
1345
- }),
1346
- backdrop: n.find(function(r) {
1347
- return r.classList.contains(Kr);
1348
- })
1349
- };
1350
- }
1351
- function An(e) {
1352
- var t = Be(), n = Be();
1353
- n.className = Gr, n.setAttribute("data-state", "hidden"), n.setAttribute("tabindex", "-1");
1354
- var r = Be();
1355
- r.className = hn, r.setAttribute("data-state", "hidden"), tn(r, e.props), t.appendChild(n), n.appendChild(r), o(e.props, e.props);
1356
- function o(a, c) {
1357
- var p = Dt(t), u = p.box, d = p.content, f = p.arrow;
1358
- c.theme ? u.setAttribute("data-theme", c.theme) : u.removeAttribute("data-theme"), typeof c.animation == "string" ? u.setAttribute("data-animation", c.animation) : u.removeAttribute("data-animation"), c.inertia ? u.setAttribute("data-inertia", "") : u.removeAttribute("data-inertia"), u.style.maxWidth = typeof c.maxWidth == "number" ? c.maxWidth + "px" : c.maxWidth, c.role ? u.setAttribute("role", c.role) : u.removeAttribute("role"), (a.content !== c.content || a.allowHTML !== c.allowHTML) && tn(d, e.props), c.arrow ? f ? a.arrow !== c.arrow && (u.removeChild(f), u.appendChild(en(c.arrow))) : u.appendChild(en(c.arrow)) : f && u.removeChild(f);
1359
- }
1360
- return {
1361
- popper: t,
1362
- onUpdate: o
1363
- };
1364
- }
1365
- An.$$tippy = !0;
1366
- var Oi = 1, ot = [], gt = [];
1367
- function Ei(e, t) {
1368
- var n = Zt(e, Object.assign({}, q, Tn(Xt(t)))), r, o, a, c = !1, p = !1, u = !1, d = !1, f, y, D, m = [], w = zt(Xe, n.interactiveDebounce), g, b = Oi++, S = null, L = ei(n.plugins), M = {
1369
- // Is the instance currently enabled?
1370
- isEnabled: !0,
1371
- // Is the tippy currently showing and not transitioning out?
1372
- isVisible: !1,
1373
- // Has the instance been destroyed?
1374
- isDestroyed: !1,
1375
- // Is the tippy currently mounted to the DOM?
1376
- isMounted: !1,
1377
- // Has the tippy finished transitioning in?
1378
- isShown: !1
1379
- }, i = {
1380
- // properties
1381
- id: b,
1382
- reference: e,
1383
- popper: Be(),
1384
- popperInstance: S,
1385
- props: n,
1386
- state: M,
1387
- plugins: L,
1388
- // methods
1389
- clearDelayTimeouts: Ze,
1390
- setProps: et,
1391
- setContent: tt,
1392
- show: Pn,
1393
- hide: jn,
1394
- hideWithInteractivity: Ln,
1395
- enable: Ve,
1396
- disable: Qe,
1397
- unmount: Rn,
1398
- destroy: Mn
1399
- };
1400
- if (!n.render)
1401
- return process.env.NODE_ENV !== "production" && xt(!0, "render() function has not been supplied."), i;
1402
- var E = n.render(i), l = E.popper, N = E.onUpdate;
1403
- l.setAttribute("data-tippy-root", ""), l.id = "tippy-" + i.id, i.popper = l, e._tippy = i, l._tippy = i;
1404
- var V = L.map(function(s) {
1405
- return s.fn(i);
1406
- }), T = e.hasAttribute("aria-expanded");
1407
- return Ee(), H(), I(), k("onCreate", [i]), n.showOnCreate && Me(), l.addEventListener("mouseenter", function() {
1408
- i.props.interactive && i.state.isVisible && i.clearDelayTimeouts();
1409
- }), l.addEventListener("mouseleave", function() {
1410
- i.props.interactive && i.props.trigger.indexOf("mouseenter") >= 0 && R().addEventListener("mousemove", w);
1411
- }), i;
1412
- function C() {
1413
- var s = i.props.touch;
1414
- return Array.isArray(s) ? s : [s, 0];
1415
- }
1416
- function x() {
1417
- return C()[0] === "hold";
1418
- }
1419
- function P() {
1420
- var s;
1421
- return !!((s = i.props.render) != null && s.$$tippy);
1422
- }
1423
- function $() {
1424
- return g || e;
1425
- }
1426
- function R() {
1427
- var s = $().parentNode;
1428
- return s ? ai(s) : document;
1429
- }
1430
- function O() {
1431
- return Dt(l);
1432
- }
1433
- function B(s) {
1434
- return i.state.isMounted && !i.state.isVisible || te.isTouch || f && f.type === "focus" ? 0 : vt(i.props.delay, s ? 0 : 1, q.delay);
1435
- }
1436
- function I(s) {
1437
- s === void 0 && (s = !1), l.style.pointerEvents = i.props.interactive && !s ? "" : "none", l.style.zIndex = "" + i.props.zIndex;
1438
- }
1439
- function k(s, v, h) {
1440
- if (h === void 0 && (h = !0), V.forEach(function(A) {
1441
- A[s] && A[s].apply(A, v);
1442
- }), h) {
1443
- var j;
1444
- (j = i.props)[s].apply(j, v);
1445
- }
1446
- }
1447
- function W() {
1448
- var s = i.props.aria;
1449
- if (s.content) {
1450
- var v = "aria-" + s.content, h = l.id, j = Ae(i.props.triggerTarget || e);
1451
- j.forEach(function(A) {
1452
- var _ = A.getAttribute(v);
1453
- if (i.state.isVisible)
1454
- A.setAttribute(v, _ ? _ + " " + h : h);
1455
- else {
1456
- var Y = _ && _.replace(h, "").trim();
1457
- Y ? A.setAttribute(v, Y) : A.removeAttribute(v);
1458
- }
1459
- });
1460
- }
1461
- }
1462
- function H() {
1463
- if (!(T || !i.props.aria.expanded)) {
1464
- var s = Ae(i.props.triggerTarget || e);
1465
- s.forEach(function(v) {
1466
- i.props.interactive ? v.setAttribute("aria-expanded", i.state.isVisible && v === $() ? "true" : "false") : v.removeAttribute("aria-expanded");
1467
- });
1468
- }
1469
- }
1470
- function le() {
1471
- R().removeEventListener("mousemove", w), ot = ot.filter(function(s) {
1472
- return s !== w;
1473
- });
1474
- }
1475
- function ee(s) {
1476
- if (!(te.isTouch && (u || s.type === "mousedown"))) {
1477
- var v = s.composedPath && s.composedPath()[0] || s.target;
1478
- if (!(i.props.interactive && Kt(l, v))) {
1479
- if (Ae(i.props.triggerTarget || e).some(function(h) {
1480
- return Kt(h, v);
1481
- })) {
1482
- if (te.isTouch || i.state.isVisible && i.props.trigger.indexOf("click") >= 0)
1483
- return;
1484
- } else
1485
- k("onClickOutside", [i, s]);
1486
- i.props.hideOnClick === !0 && (i.clearDelayTimeouts(), i.hide(), p = !0, setTimeout(function() {
1487
- p = !1;
1488
- }), i.state.isMounted || ie());
1489
- }
1490
- }
1491
- }
1492
- function de() {
1493
- u = !0;
1494
- }
1495
- function re() {
1496
- u = !1;
1497
- }
1498
- function J() {
1499
- var s = R();
1500
- s.addEventListener("mousedown", ee, !0), s.addEventListener("touchend", ee, ge), s.addEventListener("touchstart", re, ge), s.addEventListener("touchmove", de, ge);
1501
- }
1502
- function ie() {
1503
- var s = R();
1504
- s.removeEventListener("mousedown", ee, !0), s.removeEventListener("touchend", ee, ge), s.removeEventListener("touchstart", re, ge), s.removeEventListener("touchmove", de, ge);
1505
- }
1506
- function we(s, v) {
1507
- Oe(s, function() {
1508
- !i.state.isVisible && l.parentNode && l.parentNode.contains(l) && v();
1509
- });
1510
- }
1511
- function oe(s, v) {
1512
- Oe(s, v);
1513
- }
1514
- function Oe(s, v) {
1515
- var h = O().box;
1516
- function j(A) {
1517
- A.target === h && (ht(h, "remove", j), v());
1518
- }
1519
- if (s === 0)
1520
- return v();
1521
- ht(h, "remove", y), ht(h, "add", j), y = j;
1522
- }
1523
- function ue(s, v, h) {
1524
- h === void 0 && (h = !1);
1525
- var j = Ae(i.props.triggerTarget || e);
1526
- j.forEach(function(A) {
1527
- A.addEventListener(s, v, h), m.push({
1528
- node: A,
1529
- eventType: s,
1530
- handler: v,
1531
- options: h
1532
- });
1533
- });
1534
- }
1535
- function Ee() {
1536
- x() && (ue("touchstart", je, {
1537
- passive: !0
1538
- }), ue("touchend", Ge, {
1539
- passive: !0
1540
- })), Zr(i.props.trigger).forEach(function(s) {
1541
- if (s !== "manual")
1542
- switch (ue(s, je), s) {
1543
- case "mouseenter":
1544
- ue("mouseleave", Ge);
1545
- break;
1546
- case "focus":
1547
- ue(li ? "focusout" : "blur", Le);
1548
- break;
1549
- case "focusin":
1550
- ue("focusout", Le);
1551
- break;
1552
- }
1553
- });
1554
- }
1555
- function Ye() {
1556
- m.forEach(function(s) {
1557
- var v = s.node, h = s.eventType, j = s.handler, A = s.options;
1558
- v.removeEventListener(h, j, A);
1559
- }), m = [];
1560
- }
1561
- function je(s) {
1562
- var v, h = !1;
1563
- if (!(!i.state.isEnabled || Re(s) || p)) {
1564
- var j = ((v = f) == null ? void 0 : v.type) === "focus";
1565
- f = s, g = s.currentTarget, H(), !i.state.isVisible && ri(s) && ot.forEach(function(A) {
1566
- return A(s);
1567
- }), s.type === "click" && (i.props.trigger.indexOf("mouseenter") < 0 || c) && i.props.hideOnClick !== !1 && i.state.isVisible ? h = !0 : Me(s), s.type === "click" && (c = !h), h && !j && ve(s);
1568
- }
1569
- }
1570
- function Xe(s) {
1571
- var v = s.target, h = $().contains(v) || l.contains(v);
1572
- if (!(s.type === "mousemove" && h)) {
1573
- var j = ce().concat(l).map(function(A) {
1574
- var _, Y = A._tippy, xe = (_ = Y.popperInstance) == null ? void 0 : _.state;
1575
- return xe ? {
1576
- popperRect: A.getBoundingClientRect(),
1577
- popperState: xe,
1578
- props: n
1579
- } : null;
1580
- }).filter(Boolean);
1581
- si(j, s) && (le(), ve(s));
1582
- }
1583
- }
1584
- function Ge(s) {
1585
- var v = Re(s) || i.props.trigger.indexOf("click") >= 0 && c;
1586
- if (!v) {
1587
- if (i.props.interactive) {
1588
- i.hideWithInteractivity(s);
1589
- return;
1590
- }
1591
- ve(s);
1592
- }
1593
- }
1594
- function Le(s) {
1595
- i.props.trigger.indexOf("focusin") < 0 && s.target !== $() || i.props.interactive && s.relatedTarget && l.contains(s.relatedTarget) || ve(s);
1596
- }
1597
- function Re(s) {
1598
- return te.isTouch ? x() !== s.type.indexOf("touch") >= 0 : !1;
1599
- }
1600
- function Ke() {
1601
- Je();
1602
- var s = i.props, v = s.popperOptions, h = s.placement, j = s.offset, A = s.getReferenceClientRect, _ = s.moveTransition, Y = P() ? Dt(l).arrow : null, xe = A ? {
1603
- getBoundingClientRect: A,
1604
- contextElement: A.contextElement || $()
1605
- } : e, Mt = {
1606
- name: "$$tippy",
1607
- enabled: !0,
1608
- phase: "beforeWrite",
1609
- requires: ["computeStyles"],
1610
- fn: function(nt) {
1611
- var Te = nt.state;
1612
- if (P()) {
1613
- var Vn = O(), lt = Vn.box;
1614
- ["placement", "reference-hidden", "escaped"].forEach(function(rt) {
1615
- rt === "placement" ? lt.setAttribute("data-placement", Te.placement) : Te.attributes.popper["data-popper-" + rt] ? lt.setAttribute("data-" + rt, "") : lt.removeAttribute("data-" + rt);
1616
- }), Te.attributes.popper = {};
1617
- }
1618
- }
1619
- }, me = [{
1620
- name: "offset",
1621
- options: {
1622
- offset: j
1623
- }
1624
- }, {
1625
- name: "preventOverflow",
1626
- options: {
1627
- padding: {
1628
- top: 2,
1629
- bottom: 2,
1630
- left: 5,
1631
- right: 5
1632
- }
1633
- }
1634
- }, {
1635
- name: "flip",
1636
- options: {
1637
- padding: 5
1638
- }
1639
- }, {
1640
- name: "computeStyles",
1641
- options: {
1642
- adaptive: !_
1643
- }
1644
- }, Mt];
1645
- P() && Y && me.push({
1646
- name: "arrow",
1647
- options: {
1648
- element: Y,
1649
- padding: 3
1650
- }
1651
- }), me.push.apply(me, v?.modifiers || []), i.popperInstance = Xr(xe, l, Object.assign({}, v, {
1652
- placement: h,
1653
- onFirstUpdate: D,
1654
- modifiers: me
1655
- }));
1656
- }
1657
- function Je() {
1658
- i.popperInstance && (i.popperInstance.destroy(), i.popperInstance = null);
1659
- }
1660
- function ae() {
1661
- var s = i.props.appendTo, v, h = $();
1662
- i.props.interactive && s === bn || s === "parent" ? v = h.parentNode : v = wn(s, [h]), v.contains(l) || v.appendChild(l), i.state.isMounted = !0, Ke(), process.env.NODE_ENV !== "production" && se(i.props.interactive && s === q.appendTo && h.nextElementSibling !== l, ["Interactive tippy element may not be accessible via keyboard", "navigation because it is not directly after the reference element", "in the DOM source order.", `
1663
-
1664
- `, "Using a wrapper <div> or <span> tag around the reference element", "solves this by creating a new parentNode context.", `
1665
-
1666
- `, "Specifying `appendTo: document.body` silences this warning, but it", "assumes you are using a focus management solution to handle", "keyboard navigation.", `
1667
-
1668
- `, "See: https://atomiks.github.io/tippyjs/v6/accessibility/#interactivity"].join(" "));
1669
- }
1670
- function ce() {
1671
- return ut(l.querySelectorAll("[data-tippy-root]"));
1672
- }
1673
- function Me(s) {
1674
- i.clearDelayTimeouts(), s && k("onTrigger", [i, s]), J();
1675
- var v = B(!0), h = C(), j = h[0], A = h[1];
1676
- te.isTouch && j === "hold" && A && (v = A), v ? r = setTimeout(function() {
1677
- i.show();
1678
- }, v) : i.show();
1679
- }
1680
- function ve(s) {
1681
- if (i.clearDelayTimeouts(), k("onUntrigger", [i, s]), !i.state.isVisible) {
1682
- ie();
1683
- return;
1684
- }
1685
- if (!(i.props.trigger.indexOf("mouseenter") >= 0 && i.props.trigger.indexOf("click") >= 0 && ["mouseleave", "mousemove"].indexOf(s.type) >= 0 && c)) {
1686
- var v = B(!1);
1687
- v ? o = setTimeout(function() {
1688
- i.state.isVisible && i.hide();
1689
- }, v) : a = requestAnimationFrame(function() {
1690
- i.hide();
1691
- });
1692
- }
1693
- }
1694
- function Ve() {
1695
- i.state.isEnabled = !0;
1696
- }
1697
- function Qe() {
1698
- i.hide(), i.state.isEnabled = !1;
1699
- }
1700
- function Ze() {
1701
- clearTimeout(r), clearTimeout(o), cancelAnimationFrame(a);
1702
- }
1703
- function et(s) {
1704
- if (process.env.NODE_ENV !== "production" && se(i.state.isDestroyed, De("setProps")), !i.state.isDestroyed) {
1705
- k("onBeforeUpdate", [i, s]), Ye();
1706
- var v = i.props, h = Zt(e, Object.assign({}, v, Xt(s), {
1707
- ignoreAttributes: !0
1708
- }));
1709
- i.props = h, Ee(), v.interactiveDebounce !== h.interactiveDebounce && (le(), w = zt(Xe, h.interactiveDebounce)), v.triggerTarget && !h.triggerTarget ? Ae(v.triggerTarget).forEach(function(j) {
1710
- j.removeAttribute("aria-expanded");
1711
- }) : h.triggerTarget && e.removeAttribute("aria-expanded"), H(), I(), N && N(v, h), i.popperInstance && (Ke(), ce().forEach(function(j) {
1712
- requestAnimationFrame(j._tippy.popperInstance.forceUpdate);
1713
- })), k("onAfterUpdate", [i, s]);
1714
- }
1715
- }
1716
- function tt(s) {
1717
- i.setProps({
1718
- content: s
1719
- });
1720
- }
1721
- function Pn() {
1722
- process.env.NODE_ENV !== "production" && se(i.state.isDestroyed, De("show"));
1723
- var s = i.state.isVisible, v = i.state.isDestroyed, h = !i.state.isEnabled, j = te.isTouch && !i.props.touch, A = vt(i.props.duration, 0, q.duration);
1724
- if (!(s || v || h || j) && !$().hasAttribute("disabled") && (k("onShow", [i], !1), i.props.onShow(i) !== !1)) {
1725
- if (i.state.isVisible = !0, P() && (l.style.visibility = "visible"), I(), J(), i.state.isMounted || (l.style.transition = "none"), P()) {
1726
- var _ = O(), Y = _.box, xe = _.content;
1727
- mt([Y, xe], 0);
1728
- }
1729
- D = function() {
1730
- var me;
1731
- if (!(!i.state.isVisible || d)) {
1732
- if (d = !0, l.offsetHeight, l.style.transition = i.props.moveTransition, P() && i.props.animation) {
1733
- var ft = O(), nt = ft.box, Te = ft.content;
1734
- mt([nt, Te], A), Gt([nt, Te], "visible");
1735
- }
1736
- W(), H(), Yt(gt, i), (me = i.popperInstance) == null || me.forceUpdate(), k("onMount", [i]), i.props.animation && P() && oe(A, function() {
1737
- i.state.isShown = !0, k("onShown", [i]);
1738
- });
1739
- }
1740
- }, ae();
1741
- }
1742
- }
1743
- function jn() {
1744
- process.env.NODE_ENV !== "production" && se(i.state.isDestroyed, De("hide"));
1745
- var s = !i.state.isVisible, v = i.state.isDestroyed, h = !i.state.isEnabled, j = vt(i.props.duration, 1, q.duration);
1746
- if (!(s || v || h) && (k("onHide", [i], !1), i.props.onHide(i) !== !1)) {
1747
- if (i.state.isVisible = !1, i.state.isShown = !1, d = !1, c = !1, P() && (l.style.visibility = "hidden"), le(), ie(), I(!0), P()) {
1748
- var A = O(), _ = A.box, Y = A.content;
1749
- i.props.animation && (mt([_, Y], j), Gt([_, Y], "hidden"));
1750
- }
1751
- W(), H(), i.props.animation ? P() && we(j, i.unmount) : i.unmount();
1752
- }
1753
- }
1754
- function Ln(s) {
1755
- process.env.NODE_ENV !== "production" && se(i.state.isDestroyed, De("hideWithInteractivity")), R().addEventListener("mousemove", w), Yt(ot, w), w(s);
1756
- }
1757
- function Rn() {
1758
- process.env.NODE_ENV !== "production" && se(i.state.isDestroyed, De("unmount")), i.state.isVisible && i.hide(), i.state.isMounted && (Je(), ce().forEach(function(s) {
1759
- s._tippy.unmount();
1760
- }), l.parentNode && l.parentNode.removeChild(l), gt = gt.filter(function(s) {
1761
- return s !== i;
1762
- }), i.state.isMounted = !1, k("onHidden", [i]));
1763
- }
1764
- function Mn() {
1765
- process.env.NODE_ENV !== "production" && se(i.state.isDestroyed, De("destroy")), !i.state.isDestroyed && (i.clearDelayTimeouts(), i.unmount(), Ye(), delete e._tippy, i.state.isDestroyed = !0, k("onDestroy", [i]));
1766
- }
1767
- }
1768
- function ze(e, t) {
1769
- t === void 0 && (t = {});
1770
- var n = q.plugins.concat(t.plugins || []);
1771
- process.env.NODE_ENV !== "production" && (mi(e), Dn(t, n)), pi();
1772
- var r = Object.assign({}, t, {
1773
- plugins: n
1774
- }), o = oi(e);
1775
- if (process.env.NODE_ENV !== "production") {
1776
- var a = _e(r.content), c = o.length > 1;
1777
- se(a && c, ["tippy() was passed an Element as the `content` prop, but more than", "one tippy instance was created by this invocation. This means the", "content element will only be appended to the last tippy instance.", `
1778
-
1779
- `, "Instead, pass the .innerHTML of the element, or use a function that", "returns a cloned version of the element instead.", `
1780
-
1781
- `, `1) content: element.innerHTML
1782
- `, "2) content: () => element.cloneNode(true)"].join(" "));
1783
- }
1784
- var p = o.reduce(function(u, d) {
1785
- var f = d && Ei(d, r);
1786
- return f && u.push(f), u;
1787
- }, []);
1788
- return _e(e) ? p[0] : p;
1789
- }
1790
- ze.defaultProps = q;
1791
- ze.setDefaultProps = yi;
1792
- ze.currentInput = te;
1793
- Object.assign({}, un, {
1794
- effect: function(t) {
1795
- var n = t.state, r = {
1796
- popper: {
1797
- position: n.options.strategy,
1798
- left: "0",
1799
- top: "0",
1800
- margin: "0"
1801
- },
1802
- arrow: {
1803
- position: "absolute"
1804
- },
1805
- reference: {}
1806
- };
1807
- Object.assign(n.elements.popper.style, r.popper), n.styles = r, n.elements.arrow && Object.assign(n.elements.arrow.style, r.arrow);
1808
- }
1809
- });
1810
- ze.setDefaultProps({
1811
- render: An
1812
- });
1813
- function Sn(e, t) {
1814
- if (e == null)
1815
- return {};
1816
- var n = {}, r = Object.keys(e), o, a;
1817
- for (a = 0; a < r.length; a++)
1818
- o = r[a], !(t.indexOf(o) >= 0) && (n[o] = e[o]);
1819
- return n;
1820
- }
1821
- var Cn = typeof window < "u" && typeof document < "u";
1822
- function At(e, t) {
1823
- e && (typeof e == "function" && e(t), {}.hasOwnProperty.call(e, "current") && (e.current = t));
1824
- }
1825
- function nn() {
1826
- return Cn && document.createElement("div");
1827
- }
1828
- function xi(e) {
1829
- var t = {
1830
- "data-placement": e.placement
1831
- };
1832
- return e.referenceHidden && (t["data-reference-hidden"] = ""), e.escaped && (t["data-escaped"] = ""), t;
1833
- }
1834
- function Nn(e, t) {
1835
- if (e === t)
1836
- return !0;
1837
- if (typeof e == "object" && e != null && typeof t == "object" && t != null) {
1838
- if (Object.keys(e).length !== Object.keys(t).length)
1839
- return !1;
1840
- for (var n in e)
1841
- if (t.hasOwnProperty(n)) {
1842
- if (!Nn(e[n], t[n]))
1843
- return !1;
1844
- } else
1845
- return !1;
1846
- return !0;
1847
- } else
1848
- return !1;
1849
- }
1850
- function Ti(e) {
1851
- var t = [];
1852
- return e.forEach(function(n) {
1853
- t.find(function(r) {
1854
- return Nn(n, r);
1855
- }) || t.push(n);
1856
- }), t;
1857
- }
1858
- function Di(e, t) {
1859
- var n, r;
1860
- return Object.assign({}, t, {
1861
- popperOptions: Object.assign({}, e.popperOptions, t.popperOptions, {
1862
- modifiers: Ti([].concat(((n = e.popperOptions) == null ? void 0 : n.modifiers) || [], ((r = t.popperOptions) == null ? void 0 : r.modifiers) || []))
1863
- })
1864
- });
1865
- }
1866
- var yt = Cn ? kn : In;
1867
- function Ai(e) {
1868
- var t = Bn();
1869
- return t.current || (t.current = typeof e == "function" ? e() : e), t.current;
1870
- }
1871
- function rn(e, t, n) {
1872
- n.split(/\s+/).forEach(function(r) {
1873
- r && e.classList[t](r);
1874
- });
1875
- }
1876
- var Si = {
1877
- name: "className",
1878
- defaultValue: "",
1879
- fn: function(t) {
1880
- var n = t.popper.firstElementChild, r = function() {
1881
- var p;
1882
- return !!((p = t.props.render) != null && p.$$tippy);
1883
- };
1884
- function o() {
1885
- if (t.props.className && !r()) {
1886
- process.env.NODE_ENV !== "production" && console.warn(["@tippyjs/react: Cannot use `className` prop in conjunction with", "`render` prop. Place the className on the element you are", "rendering."].join(" "));
1887
- return;
1888
- }
1889
- rn(n, "add", t.props.className);
1890
- }
1891
- function a() {
1892
- r() && rn(n, "remove", t.props.className);
1893
- }
1894
- return {
1895
- onCreate: o,
1896
- onBeforeUpdate: a,
1897
- onAfterUpdate: o
1898
- };
1899
- }
1900
- };
1901
- function Ci(e) {
1902
- function t(n) {
1903
- var r = n.children, o = n.content, a = n.visible, c = n.singleton, p = n.render, u = n.reference, d = n.disabled, f = d === void 0 ? !1 : d, y = n.ignoreAttributes, D = y === void 0 ? !0 : y;
1904
- n.__source, n.__self;
1905
- var m = Sn(n, ["children", "content", "visible", "singleton", "render", "reference", "disabled", "ignoreAttributes", "__source", "__self"]), w = a !== void 0, g = c !== void 0, b = dt(!1), S = b[0], L = b[1], M = dt({}), i = M[0], E = M[1], l = dt(), N = l[0], V = l[1], T = Ai(function() {
1906
- return {
1907
- container: nn(),
1908
- renders: 1
1909
- };
1910
- }), C = Object.assign({
1911
- ignoreAttributes: D
1912
- }, m, {
1913
- content: T.container
1914
- });
1915
- w && (process.env.NODE_ENV !== "production" && ["trigger", "hideOnClick", "showOnCreate"].forEach(function(R) {
1916
- C[R] !== void 0 && console.warn(["@tippyjs/react: Cannot specify `" + R + "` prop in", "controlled mode (`visible` prop)"].join(" "));
1917
- }), C.trigger = "manual", C.hideOnClick = !1), g && (f = !0);
1918
- var x = C, P = C.plugins || [];
1919
- p && (x = Object.assign({}, C, {
1920
- plugins: g && c.data != null ? [].concat(P, [{
1921
- fn: function() {
1922
- return {
1923
- onTrigger: function(B, I) {
1924
- var k = c.data.children.find(function(W) {
1925
- var H = W.instance;
1926
- return H.reference === I.currentTarget;
1927
- });
1928
- B.state.$$activeSingletonInstance = k.instance, V(k.content);
1929
- }
1930
- };
1931
- }
1932
- }]) : P,
1933
- render: function() {
1934
- return {
1935
- popper: T.container
1936
- };
1937
- }
1938
- }));
1939
- var $ = [u].concat(r ? [r.type] : []);
1940
- return yt(function() {
1941
- var R = u;
1942
- u && u.hasOwnProperty("current") && (R = u.current);
1943
- var O = e(R || T.ref || nn(), Object.assign({}, x, {
1944
- plugins: [Si].concat(C.plugins || [])
1945
- }));
1946
- return T.instance = O, f && O.disable(), a && O.show(), g && c.hook({
1947
- instance: O,
1948
- content: o,
1949
- props: x,
1950
- setSingletonContent: V
1951
- }), L(!0), function() {
1952
- O.destroy(), c?.cleanup(O);
1953
- };
1954
- }, $), yt(function() {
1955
- var R;
1956
- if (T.renders === 1) {
1957
- T.renders++;
1958
- return;
1959
- }
1960
- var O = T.instance;
1961
- O.setProps(Di(O.props, x)), (R = O.popperInstance) == null || R.forceUpdate(), f ? O.disable() : O.enable(), w && (a ? O.show() : O.hide()), g && c.hook({
1962
- instance: O,
1963
- content: o,
1964
- props: x,
1965
- setSingletonContent: V
1966
- });
1967
- }), yt(function() {
1968
- var R;
1969
- if (p) {
1970
- var O = T.instance;
1971
- O.setProps({
1972
- popperOptions: Object.assign({}, O.props.popperOptions, {
1973
- modifiers: [].concat((((R = O.props.popperOptions) == null ? void 0 : R.modifiers) || []).filter(function(B) {
1974
- var I = B.name;
1975
- return I !== "$$tippyReact";
1976
- }), [{
1977
- name: "$$tippyReact",
1978
- enabled: !0,
1979
- phase: "beforeWrite",
1980
- requires: ["computeStyles"],
1981
- fn: function(I) {
1982
- var k, W = I.state, H = (k = W.modifiersData) == null ? void 0 : k.hide;
1983
- (i.placement !== W.placement || i.referenceHidden !== H?.isReferenceHidden || i.escaped !== H?.hasPopperEscaped) && E({
1984
- placement: W.placement,
1985
- referenceHidden: H?.isReferenceHidden,
1986
- escaped: H?.hasPopperEscaped
1987
- }), W.attributes.popper = {};
1988
- }
1989
- }])
1990
- })
1991
- });
1992
- }
1993
- }, [i.placement, i.referenceHidden, i.escaped].concat($)), /* @__PURE__ */ bt.createElement(bt.Fragment, null, r ? /* @__PURE__ */ on(r, {
1994
- ref: function(O) {
1995
- T.ref = O, At(r.ref, O);
1996
- }
1997
- }) : null, S && /* @__PURE__ */ Hn(p ? p(xi(i), N, T.instance) : o, T.container));
1998
- }
1999
- return t;
2000
- }
2001
- var Ni = function(e, t) {
2002
- return /* @__PURE__ */ $n(function(r, o) {
2003
- var a = r.children, c = Sn(r, ["children"]);
2004
- return (
2005
- // If I spread them separately here, Babel adds the _extends ponyfill for
2006
- // some reason
2007
- /* @__PURE__ */ bt.createElement(e, Object.assign({}, t, c), a ? /* @__PURE__ */ on(a, {
2008
- ref: function(u) {
2009
- At(o, u), At(a.ref, u);
2010
- }
2011
- }) : null)
2012
- );
2013
- });
2014
- }, Pi = /* @__PURE__ */ Ni(/* @__PURE__ */ Ci(ze));
2015
- const Ri = Pi;
2016
- export {
2017
- Ri as T
2018
- };