@lanaco/lnc-react-ui 4.0.225 → 4.0.226

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 (378) hide show
  1. package/dist/Accordion.cjs +1 -1
  2. package/dist/Accordion.js +2 -2
  3. package/dist/AccordionDetails.cjs +1 -1
  4. package/dist/AccordionDetails.js +1 -1
  5. package/dist/AccordionSummary.cjs +1 -1
  6. package/dist/AccordionSummary.js +2 -2
  7. package/dist/ActionsToolbar.cjs +1 -1
  8. package/dist/ActionsToolbar.js +3 -3
  9. package/dist/AdBannerSection.cjs +1 -1
  10. package/dist/AdBannerSection.js +3 -3
  11. package/dist/Alert.cjs +1 -1
  12. package/dist/Alert.js +2 -2
  13. package/dist/Avatar.cjs +1 -1
  14. package/dist/Avatar.js +2 -2
  15. package/dist/Badge.cjs +1 -1
  16. package/dist/Badge.js +2 -2
  17. package/dist/BannerNextSection.cjs +1 -1
  18. package/dist/BannerNextSection.js +3 -3
  19. package/dist/BannerSectionBasic.cjs +1 -1
  20. package/dist/BannerSectionBasic.js +2 -2
  21. package/dist/BannerSectionCarousel.cjs +1 -1
  22. package/dist/BannerSectionCarousel.js +5 -5
  23. package/dist/BannerSectionGrid.cjs +2 -2
  24. package/dist/BannerSectionGrid.js +5 -5
  25. package/dist/BannerSectionSimple.cjs +1 -1
  26. package/dist/BannerSectionSimple.js +4 -4
  27. package/dist/BannerSectionWithList.cjs +1 -1
  28. package/dist/BannerSectionWithList.js +3 -3
  29. package/dist/BannerSectionWithListImage.cjs +1 -1
  30. package/dist/BannerSectionWithListImage.js +2 -2
  31. package/dist/BlogCardsSponsoredSection.cjs +1 -1
  32. package/dist/BlogCardsSponsoredSection.js +6 -6
  33. package/dist/BlogCategoryCardsSection.cjs +1 -1
  34. package/dist/BlogCategoryCardsSection.js +2 -2
  35. package/dist/BlogExploreSection.cjs +1 -1
  36. package/dist/BlogExploreSection.js +6 -6
  37. package/dist/BlogImagePathSection.cjs +1 -1
  38. package/dist/BlogImagePathSection.js +2 -2
  39. package/dist/BlogListSection.cjs +1 -1
  40. package/dist/BlogListSection.js +6 -6
  41. package/dist/BlogProductCardsSection.cjs +1 -1
  42. package/dist/BlogProductCardsSection.js +3 -3
  43. package/dist/BlogShopCardsSection.cjs +1 -1
  44. package/dist/BlogShopCardsSection.js +3 -3
  45. package/dist/BlogSingleSection.cjs +1 -1
  46. package/dist/BlogSingleSection.js +4 -4
  47. package/dist/BlogsSectionDetailed.cjs +1 -1
  48. package/dist/BlogsSectionDetailed.js +9 -9
  49. package/dist/BlogsSectionLarge.cjs +1 -1
  50. package/dist/BlogsSectionLarge.js +5 -5
  51. package/dist/BlogsSectionSimple.cjs +1 -1
  52. package/dist/BlogsSectionSimple.js +7 -7
  53. package/dist/BlogsSectionSimpleCentered.cjs +1 -1
  54. package/dist/BlogsSectionSimpleCentered.js +6 -6
  55. package/dist/BlogsSectionWithFilters.cjs +1 -1
  56. package/dist/BlogsSectionWithFilters.js +8 -8
  57. package/dist/BrandHitsSection.cjs +1 -1
  58. package/dist/BrandHitsSection.js +4 -4
  59. package/dist/Breadcrumbs.cjs +1 -1
  60. package/dist/Breadcrumbs.js +2 -2
  61. package/dist/Button.cjs +1 -1
  62. package/dist/Button.js +3 -3
  63. package/dist/ButtonGroup.cjs +1 -1
  64. package/dist/ButtonGroup.js +2 -2
  65. package/dist/CalorieCalculatorSection.cjs +1 -1
  66. package/dist/CalorieCalculatorSection.js +3 -3
  67. package/dist/{CategorySimpleCard-CkSwvJRw.js → CategorySimpleCard-TJRJ_2Sb.js} +3 -3
  68. package/dist/{CategorySimpleCard-CIBvknos.cjs → CategorySimpleCard-lIdzBNDa.cjs} +1 -1
  69. package/dist/CheckBoxInput.cjs +1 -1
  70. package/dist/CheckBoxInput.js +2 -2
  71. package/dist/Chip.cjs +1 -1
  72. package/dist/Chip.js +2 -2
  73. package/dist/ColorInput.cjs +1 -1
  74. package/dist/ColorInput.js +2 -2
  75. package/dist/ConfirmationForm.cjs +1 -1
  76. package/dist/ConfirmationForm.js +2 -2
  77. package/dist/ContactSection.cjs +5 -5
  78. package/dist/ContactSection.js +1765 -1712
  79. package/dist/CustomLoanMapSection.cjs +1 -1
  80. package/dist/CustomLoanMapSection.js +3 -3
  81. package/dist/{CustomStyles-DR4WuDUN.js → CustomStyles-B6uutenq.js} +58 -55
  82. package/dist/{CustomStyles-2TQQSwtU.cjs → CustomStyles-dJQPJ4s4.cjs} +4 -4
  83. package/dist/{DailyMotion-BPdBW5Yv.cjs → DailyMotion-BLODEbGN.cjs} +1 -1
  84. package/dist/{DailyMotion-P9S-WhTX.js → DailyMotion-BcKTajo7.js} +1 -1
  85. package/dist/DataView.cjs +1 -1
  86. package/dist/DataView.js +1 -1
  87. package/dist/DateInput.cjs +1 -1
  88. package/dist/DateInput.js +4 -4
  89. package/dist/DecimalInput.cjs +1 -1
  90. package/dist/DecimalInput.js +2 -2
  91. package/dist/DecimalInputV2.cjs +1 -1
  92. package/dist/DecimalInputV2.js +2 -2
  93. package/dist/DetailedProductsInfinitiveSection.cjs +1 -1
  94. package/dist/DetailedProductsInfinitiveSection.js +7 -7
  95. package/dist/DetailedProductsSection.cjs +1 -1
  96. package/dist/DetailedProductsSection.js +8 -8
  97. package/dist/DetailsView.cjs +1 -1
  98. package/dist/DetailsView.js +2 -2
  99. package/dist/DoubleRangeSlider.cjs +1 -1
  100. package/dist/DoubleRangeSlider.js +2 -2
  101. package/dist/DragAndDropFile.cjs +10 -10
  102. package/dist/DragAndDropFile.js +444 -408
  103. package/dist/DragDropFiles.cjs +1 -1
  104. package/dist/DragDropFiles.js +2 -2
  105. package/dist/Drawer.js +1 -1
  106. package/dist/Dropdown.cjs +1 -1
  107. package/dist/Dropdown.js +3 -3
  108. package/dist/DropdownItem.cjs +1 -1
  109. package/dist/DropdownItem.js +2 -2
  110. package/dist/DropdownLookup.cjs +1 -1
  111. package/dist/DropdownLookup.js +2 -2
  112. package/dist/DropdownMenu.cjs +1 -1
  113. package/dist/DropdownMenu.js +2 -2
  114. package/dist/EditableTable.cjs +1 -1
  115. package/dist/EditableTable.js +2 -2
  116. package/dist/{Facebook-C8L2KR4O.cjs → Facebook-Cxy7fSgc.cjs} +1 -1
  117. package/dist/{Facebook-vhbBr0rd.js → Facebook-o0wYiIu4.js} +25 -25
  118. package/dist/FaqSection.cjs +1 -1
  119. package/dist/FaqSection.js +4 -4
  120. package/dist/FeedbackSection.cjs +1 -1
  121. package/dist/FeedbackSection.js +3 -3
  122. package/dist/FieldOfInterestsMasonrySection.cjs +1 -1
  123. package/dist/FieldOfInterestsMasonrySection.js +4 -4
  124. package/dist/FieldOfInterestsWithAvatarsCardsSection.cjs +1 -1
  125. package/dist/FieldOfInterestsWithAvatarsCardsSection.js +5 -5
  126. package/dist/FieldOfInterestsWithTagsCardsSection.cjs +1 -1
  127. package/dist/FieldOfInterestsWithTagsCardsSection.js +4 -4
  128. package/dist/FileInput.cjs +1 -1
  129. package/dist/FileInput.js +2 -2
  130. package/dist/{FilePlayer-BVFgHY_f.cjs → FilePlayer-DyIgZGf2.cjs} +1 -1
  131. package/dist/{FilePlayer-CXTLAokk.js → FilePlayer-Evom9jRl.js} +1 -1
  132. package/dist/FlexBox.cjs +1 -1
  133. package/dist/FlexBox.js +1 -1
  134. package/dist/FlexGridItem.cjs +1 -1
  135. package/dist/FlexGridItem.js +2 -2
  136. package/dist/FormField.cjs +1 -1
  137. package/dist/FormField.js +2 -2
  138. package/dist/FormView.cjs +1 -1
  139. package/dist/FormView.js +2 -2
  140. package/dist/GeneralWithTagsCardsSection.cjs +1 -1
  141. package/dist/GeneralWithTagsCardsSection.js +4 -4
  142. package/dist/GiftCardsSection.cjs +1 -1
  143. package/dist/GiftCardsSection.js +6 -6
  144. package/dist/Grid.cjs +1 -1
  145. package/dist/Grid.js +1 -1
  146. package/dist/GridItem.cjs +1 -1
  147. package/dist/GridItem.js +1 -1
  148. package/dist/HelpBannerSection.cjs +1 -1
  149. package/dist/HelpBannerSection.js +2 -2
  150. package/dist/Icon.cjs +1 -1
  151. package/dist/Icon.js +2 -2
  152. package/dist/IconButton.cjs +1 -1
  153. package/dist/IconButton.js +2 -2
  154. package/dist/{Kaltura-CRGK2EP7.js → Kaltura-CA_8jdJe.js} +1 -1
  155. package/dist/{Kaltura-C2fRoaEg.cjs → Kaltura-l-2u1Tm7.cjs} +1 -1
  156. package/dist/Kanban.cjs +5 -5
  157. package/dist/Kanban.js +5 -5
  158. package/dist/KanbanActionsToolbar.cjs +1 -1
  159. package/dist/KanbanActionsToolbar.js +2 -2
  160. package/dist/{KanbanCard-DihrKn-I.cjs → KanbanCard-9Pe_tjMt.cjs} +1 -1
  161. package/dist/{KanbanCard-B9V9EjVE.js → KanbanCard-ffmclwO4.js} +1 -1
  162. package/dist/KanbanCard.cjs +1 -1
  163. package/dist/KanbanCard.js +2 -2
  164. package/dist/KanbanFooter.cjs +1 -1
  165. package/dist/KanbanFooter.js +1 -1
  166. package/dist/KanbanHeader.cjs +1 -1
  167. package/dist/KanbanHeader.js +1 -1
  168. package/dist/KanbanView.cjs +1 -1
  169. package/dist/KanbanView.js +3 -3
  170. package/dist/Link.cjs +1 -1
  171. package/dist/Link.js +2 -2
  172. package/dist/LoanCalculatorSection.cjs +1 -1
  173. package/dist/LoanCalculatorSection.js +4 -4
  174. package/dist/LocationFinderSection.cjs +1 -1
  175. package/dist/LocationFinderSection.js +1 -1
  176. package/dist/LocationSearchSection.cjs +1 -1
  177. package/dist/LocationSearchSection.js +3 -3
  178. package/dist/MasonryGeneralCardsSection.cjs +1 -1
  179. package/dist/MasonryGeneralCardsSection.js +4 -4
  180. package/dist/MenuItem.cjs +1 -1
  181. package/dist/MenuItem.js +2 -2
  182. package/dist/{Mixcloud-D09BQNOt.cjs → Mixcloud-BwTRg6SF.cjs} +1 -1
  183. package/dist/{Mixcloud-Cn5M-EIT.js → Mixcloud-D2JZtlPe.js} +10 -10
  184. package/dist/Modal.cjs +1 -1
  185. package/dist/Modal.js +3 -3
  186. package/dist/MultiSelectDropdown.cjs +1 -1
  187. package/dist/MultiSelectDropdown.js +1 -1
  188. package/dist/MultiSelectDropdownLookup.cjs +1 -1
  189. package/dist/MultiSelectDropdownLookup.js +1 -1
  190. package/dist/{Mux-C6szci3w.js → Mux-CBMcNvuK.js} +1 -1
  191. package/dist/{Mux-C-xD7crc.cjs → Mux-tp04uiAm.cjs} +1 -1
  192. package/dist/NestedDropdownItem.cjs +1 -1
  193. package/dist/NestedDropdownItem.js +2 -2
  194. package/dist/NestedMenuItem.cjs +1 -1
  195. package/dist/NestedMenuItem.js +2 -2
  196. package/dist/Notification.cjs +1 -1
  197. package/dist/Notification.js +1 -1
  198. package/dist/NotificationContainer.cjs +1 -1
  199. package/dist/NotificationContainer.js +3 -3
  200. package/dist/NotificationMessage.cjs +1 -1
  201. package/dist/NotificationMessage.js +2 -2
  202. package/dist/NumberInput.cjs +1 -1
  203. package/dist/NumberInput.js +2 -2
  204. package/dist/OverlayGeneralCardsSection.cjs +1 -1
  205. package/dist/OverlayGeneralCardsSection.js +3 -3
  206. package/dist/PageLayout.cjs +1 -1
  207. package/dist/PageLayout.js +1 -1
  208. package/dist/Pagination.cjs +1 -1
  209. package/dist/Pagination.js +1 -1
  210. package/dist/PartnerBannerSection.cjs +1 -1
  211. package/dist/PartnerBannerSection.js +2 -2
  212. package/dist/PartnerBrandsSection.cjs +1 -1
  213. package/dist/PartnerBrandsSection.js +4 -4
  214. package/dist/PartnerCardsSection.cjs +1 -1
  215. package/dist/PartnerCardsSection.js +4 -4
  216. package/dist/PartnerStatsSection.cjs +1 -1
  217. package/dist/PartnerStatsSection.js +3 -3
  218. package/dist/PasswordInput.cjs +1 -1
  219. package/dist/PasswordInput.js +2 -2
  220. package/dist/PopoverContent.cjs +1 -1
  221. package/dist/PopoverContent.js +3 -3
  222. package/dist/PopoverDescription.cjs +1 -1
  223. package/dist/PopoverDescription.js +1 -1
  224. package/dist/PopoverHeading.cjs +1 -1
  225. package/dist/PopoverHeading.js +1 -1
  226. package/dist/PopoverTrigger.cjs +1 -1
  227. package/dist/PopoverTrigger.js +1 -1
  228. package/dist/{Preview-B8HyPnfR.cjs → Preview-2LWO1jPt.cjs} +1 -1
  229. package/dist/{Preview-CO6WSP5f.js → Preview-CEZQvDLk.js} +6 -6
  230. package/dist/ProductsWithBannerSection.cjs +1 -1
  231. package/dist/ProductsWithBannerSection.js +7 -7
  232. package/dist/ProgressBar.cjs +1 -1
  233. package/dist/ProgressBar.js +2 -2
  234. package/dist/QuattroCardsSection.cjs +1 -1
  235. package/dist/QuattroCardsSection.js +5 -5
  236. package/dist/QuizSection.cjs +1 -1
  237. package/dist/QuizSection.js +3 -3
  238. package/dist/RadioGroup.cjs +1 -1
  239. package/dist/RadioGroup.js +1 -1
  240. package/dist/RadioInput.cjs +1 -1
  241. package/dist/RadioInput.js +2 -2
  242. package/dist/RangeSlider.cjs +1 -1
  243. package/dist/RangeSlider.js +2 -2
  244. package/dist/ReviewsSection.cjs +1 -1
  245. package/dist/ReviewsSection.js +6 -6
  246. package/dist/SalesCampaignsSection.cjs +1 -1
  247. package/dist/SalesCampaignsSection.js +6 -6
  248. package/dist/SearchBar.cjs +1 -1
  249. package/dist/SearchBar.js +2 -2
  250. package/dist/{SearchSection-BEYnWPSr.js → SearchSection-BQkugcbp.js} +17 -17
  251. package/dist/{SearchSection-DUY61r3k.cjs → SearchSection-CgbZsVg2.cjs} +2 -2
  252. package/dist/SearchSection.cjs +1 -1
  253. package/dist/SearchSection.js +1 -1
  254. package/dist/Separator.cjs +1 -1
  255. package/dist/Separator.js +2 -2
  256. package/dist/SeparatorSection.cjs +1 -1
  257. package/dist/SeparatorSection.js +2 -2
  258. package/dist/ShopCardsSection.cjs +1 -1
  259. package/dist/ShopCardsSection.js +5 -5
  260. package/dist/Sidebar.cjs +1 -1
  261. package/dist/Sidebar.js +2 -2
  262. package/dist/SimpleCategoriesSection.cjs +1 -1
  263. package/dist/SimpleCategoriesSection.js +7 -7
  264. package/dist/SimpleProductsSection.cjs +1 -1
  265. package/dist/SimpleProductsSection.js +6 -6
  266. package/dist/{SoundCloud-Cfaj1Ze1.js → SoundCloud-CK7NvImk.js} +13 -13
  267. package/dist/{SoundCloud-BsL6Onq6.cjs → SoundCloud-DVmlWv2g.cjs} +1 -1
  268. package/dist/Spinner.cjs +1 -1
  269. package/dist/Spinner.js +2 -2
  270. package/dist/StatsSection.cjs +1 -1
  271. package/dist/StatsSection.js +3 -3
  272. package/dist/{Streamable-DFtyk9Dt.cjs → Streamable-BBV7DQsj.cjs} +1 -1
  273. package/dist/{Streamable-CG8_-_w7.js → Streamable-D5oxy9aa.js} +1 -1
  274. package/dist/Surface.cjs +1 -1
  275. package/dist/Surface.js +2 -2
  276. package/dist/SwipeableDrawer.cjs +1 -1
  277. package/dist/SwipeableDrawer.js +2 -2
  278. package/dist/TabItem.cjs +1 -1
  279. package/dist/TabItem.js +2 -2
  280. package/dist/Table.cjs +1 -1
  281. package/dist/Table.js +5 -5
  282. package/dist/TableView.cjs +1 -1
  283. package/dist/TableView.js +3 -3
  284. package/dist/Tabs.cjs +1 -1
  285. package/dist/Tabs.js +1 -1
  286. package/dist/TextAreaInput.cjs +1 -1
  287. package/dist/TextAreaInput.js +2 -2
  288. package/dist/TextInput.cjs +1 -1
  289. package/dist/TextInput.js +2 -2
  290. package/dist/ThemeProvider.cjs +1 -1
  291. package/dist/ThemeProvider.js +3 -3
  292. package/dist/TimeInput.cjs +1 -1
  293. package/dist/TimeInput.js +2 -2
  294. package/dist/Toggle.cjs +1 -1
  295. package/dist/Toggle.js +2 -2
  296. package/dist/ToggleSection.cjs +1 -1
  297. package/dist/ToggleSection.js +3 -3
  298. package/dist/TreeMenu.cjs +1 -1
  299. package/dist/TreeMenu.js +1 -1
  300. package/dist/TreeMenuSeparator.cjs +1 -1
  301. package/dist/TreeMenuSeparator.js +2 -2
  302. package/dist/{Twitch-BIUEEDiE.cjs → Twitch-CH7rLHNj.cjs} +1 -1
  303. package/dist/{Twitch-CbU_0Tx9.js → Twitch-DtrfG3Wo.js} +5 -5
  304. package/dist/UploadedFile.cjs +1 -1
  305. package/dist/UploadedFile.js +2 -2
  306. package/dist/UrgentSaleProductsSection.cjs +1 -1
  307. package/dist/UrgentSaleProductsSection.js +4 -4
  308. package/dist/{Vidyard-S6Fl_F78.js → Vidyard-C66crgMN.js} +1 -1
  309. package/dist/{Vidyard-QkjVIros.cjs → Vidyard-DGbMnWlF.cjs} +1 -1
  310. package/dist/{Vimeo-5bkeYCV4.js → Vimeo-BjGe7JPl.js} +1 -1
  311. package/dist/{Vimeo-B5jsifNT.cjs → Vimeo-DdFP5z1P.cjs} +1 -1
  312. package/dist/{Wistia-dpbMmx23.cjs → Wistia-CTuM5tqn.cjs} +1 -1
  313. package/dist/{Wistia-gOZBV0XZ.js → Wistia-Cnd0mYar.js} +3 -3
  314. package/dist/{YouTube-BfZRCB6O.cjs → YouTube-Chpmigf-.cjs} +1 -1
  315. package/dist/{YouTube-XoIB4ATQ.js → YouTube-D2wx0EoX.js} +3 -3
  316. package/dist/{breakpoints-ff0SIcV3.js → breakpoints-BubDitvo.js} +3 -3
  317. package/dist/emotion-is-prop-valid.esm-DqkrfvDp.js +10 -0
  318. package/dist/emotion-is-prop-valid.esm-eyvxYx3u.cjs +1 -0
  319. package/dist/{emotion-styled.browser.esm-BNN1dTl3.js → emotion-styled.browser.esm-DfbrHHed.js} +4 -4
  320. package/dist/{emotion-styled.browser.esm-BtEseadx.cjs → emotion-styled.browser.esm-DwHBgTPn.cjs} +1 -1
  321. package/dist/floating-ui.dom-Bvf9G8UM.cjs +1 -0
  322. package/dist/floating-ui.dom-C16Oktn3.js +959 -0
  323. package/dist/{floating-ui.react.esm-CfpRzwmn.js → floating-ui.react.esm-B-RMCmpu.js} +477 -460
  324. package/dist/floating-ui.react.esm-CsrI9PVk.cjs +4 -0
  325. package/dist/{index-vQOR22Py.cjs → index-3GKF_7BJ.cjs} +1 -1
  326. package/dist/{index-41nUb2kP.cjs → index-7Jsjuf-Q.cjs} +29 -29
  327. package/dist/{index-B1vKwsDE.js → index-B2yaYXE2.js} +651 -651
  328. package/dist/{index-DZFKpq77.cjs → index-BGNavrtB.cjs} +1 -1
  329. package/dist/{index-hC-E71GE.js → index-BHcrzV2G.js} +3 -3
  330. package/dist/{index-CsTfXxpp.cjs → index-Bj1KWOV4.cjs} +1 -1
  331. package/dist/{index-Cav6G7wx.cjs → index-BkztbBWe.cjs} +1 -1
  332. package/dist/{index-oYE1Pl7q.cjs → index-BsAddfgC.cjs} +1 -1
  333. package/dist/{index-C4HycAPS.js → index-CM6vzQBx.js} +4 -4
  334. package/dist/{index-C-uOIDDa.js → index-Cn4bq6ZX.js} +3 -3
  335. package/dist/{index-BWeXujWl.js → index-CuRcxKQH.js} +3 -3
  336. package/dist/{index-DA7SIHV1.cjs → index-CxWXiOMf.cjs} +1 -1
  337. package/dist/{index-B1-PjbTA.cjs → index-D4-_TrSn.cjs} +1 -1
  338. package/dist/{index-CBZ-jNah.cjs → index-D4OKsSqi.cjs} +1 -1
  339. package/dist/{index-4wvppFLx.js → index-DB1J-G6Z.js} +2 -2
  340. package/dist/{index-BvMY2TbK.js → index-DEypPQRI.js} +1 -1
  341. package/dist/{index-CX2A-q39.cjs → index-DMbNpyIV.cjs} +1 -1
  342. package/dist/{index-BdKi2ogu.js → index-DMmw5Ad5.js} +1 -1
  343. package/dist/{index-CoQ9APCD.js → index-DdfMcHz0.js} +2 -2
  344. package/dist/{index-B9c6y2J5.cjs → index-DgUNsgfF.cjs} +1 -1
  345. package/dist/{index-BzSWu-7v.js → index-Djo0ZcRE.js} +5 -5
  346. package/dist/{index-uCWKRzoS.cjs → index-DkPva6Gr.cjs} +1 -1
  347. package/dist/{index-BEUk0FDk.js → index-Dx2hfxCG.js} +4 -4
  348. package/dist/{index-B_ilx3wM.cjs → index-fzBXDy05.cjs} +1 -1
  349. package/dist/{index-DDShXLaW.js → index-gFZSZLba.js} +6 -6
  350. package/dist/{index-D9fI5BvI.js → index-jGcy-5M_.js} +3 -3
  351. package/dist/{index-L_Va5-wK.js → index-rhYVjszT.js} +5 -5
  352. package/dist/{index-Dc0EEBRW.cjs → index-tdg_Vmed.cjs} +1 -1
  353. package/dist/{index-6RFrSPs_.js → index-vz5mtWGo.js} +5 -5
  354. package/dist/index.cjs +1 -1
  355. package/dist/index.js +6 -6
  356. package/dist/{react-toastify.esm-BoMuFZcq.cjs → react-toastify.esm-C6GBR4r3.cjs} +1 -1
  357. package/dist/{react-toastify.esm-BLQznunb.js → react-toastify.esm-CUXbGoqt.js} +1 -1
  358. package/dist/{style-DC05rdyx.cjs → style-Boz6dk5s.cjs} +1 -1
  359. package/dist/{style-Bq3rMbnN.js → style-BzaX45du.js} +2 -2
  360. package/dist/{style-BUyFad_y.js → style-D54KOzZj.js} +3 -3
  361. package/dist/{style-AYc9hnFj.cjs → style-DIWAdlai.cjs} +1 -1
  362. package/dist/{style-BwQ4djFC.js → style-DvkivBNg.js} +1 -1
  363. package/dist/{style-BAcV7F53.cjs → style-Ito6YFqi.cjs} +1 -1
  364. package/dist/{styled-components.browser.esm-CvykQBGY.cjs → styled-components.browser.esm-BaNxtZgB.cjs} +1 -1
  365. package/dist/{styled-components.browser.esm-D-n22PJk.js → styled-components.browser.esm-Cfeh8eHg.js} +1 -1
  366. package/dist/{tag-Bi8gg6hJ.js → tag-CHNc7DhI.js} +2 -2
  367. package/dist/{tag-DSnhWWHE.cjs → tag-CWcvCQcz.cjs} +1 -1
  368. package/dist/{theme-Befg4g_L.js → theme-mUflS4q4.js} +1 -1
  369. package/dist/{useDetectMobile-CcVo3PNi.js → useDetectMobile-B0Jog4jQ.js} +1 -1
  370. package/dist/usePopover.cjs +1 -1
  371. package/dist/usePopover.js +6 -6
  372. package/dist/{utils-B2fsQ6PS.js → utils-MoGhNMmj.js} +3 -3
  373. package/package.json +1 -1
  374. package/dist/emotion-is-prop-valid.esm-BNsx9k19.cjs +0 -1
  375. package/dist/emotion-is-prop-valid.esm-CbWxtx4i.js +0 -10
  376. package/dist/floating-ui.dom-B931An3C.js +0 -954
  377. package/dist/floating-ui.dom-CN4MB7mG.cjs +0 -1
  378. package/dist/floating-ui.react.esm-CiYofNnh.cjs +0 -4
@@ -1,207 +1,209 @@
1
- import { c as Je, g as fe } from "./floating-ui.dom-B931An3C.js";
1
+ import { c as et, g as fe } from "./floating-ui.dom-C16Oktn3.js";
2
2
  import * as s from "react";
3
- import { useLayoutEffect as Be, useEffect as Ke, useRef as Qe } from "react";
4
- import { r as ge } from "./index-B1vKwsDE.js";
5
- var te = typeof document < "u" ? Be : Ke;
6
- function re(e, t) {
7
- if (e === t)
3
+ import { useLayoutEffect as Ve, useEffect as Ke, useRef as tt } from "react";
4
+ import { r as ge } from "./index-B2yaYXE2.js";
5
+ var te = typeof document < "u" ? Ve : Ke;
6
+ function re(t, e) {
7
+ if (t === e)
8
8
  return !0;
9
- if (typeof e != typeof t)
9
+ if (typeof t != typeof e)
10
10
  return !1;
11
- if (typeof e == "function" && e.toString() === t.toString())
11
+ if (typeof t == "function" && t.toString() === e.toString())
12
12
  return !0;
13
13
  let n, r, o;
14
- if (e && t && typeof e == "object") {
15
- if (Array.isArray(e)) {
16
- if (n = e.length, n != t.length) return !1;
14
+ if (t && e && typeof t == "object") {
15
+ if (Array.isArray(t)) {
16
+ if (n = t.length, n != e.length) return !1;
17
17
  for (r = n; r-- !== 0; )
18
- if (!re(e[r], t[r]))
18
+ if (!re(t[r], e[r]))
19
19
  return !1;
20
20
  return !0;
21
21
  }
22
- if (o = Object.keys(e), n = o.length, n !== Object.keys(t).length)
22
+ if (o = Object.keys(t), n = o.length, n !== Object.keys(e).length)
23
23
  return !1;
24
24
  for (r = n; r-- !== 0; )
25
- if (!Object.prototype.hasOwnProperty.call(t, o[r]))
25
+ if (!Object.prototype.hasOwnProperty.call(e, o[r]))
26
26
  return !1;
27
27
  for (r = n; r-- !== 0; ) {
28
28
  const i = o[r];
29
- if (!(i === "_owner" && e.$$typeof) && !re(e[i], t[i]))
29
+ if (!(i === "_owner" && t.$$typeof) && !re(t[i], e[i]))
30
30
  return !1;
31
31
  }
32
32
  return !0;
33
33
  }
34
- return e !== e && t !== t;
34
+ return t !== t && e !== e;
35
35
  }
36
- function Ie(e) {
37
- const t = s.useRef(e);
36
+ function Ae(t) {
37
+ const e = s.useRef(t);
38
38
  return te(() => {
39
- t.current = e;
40
- }), t;
39
+ e.current = t;
40
+ }), e;
41
41
  }
42
- function et(e) {
43
- e === void 0 && (e = {});
42
+ function nt(t) {
43
+ t === void 0 && (t = {});
44
44
  const {
45
- placement: t = "bottom",
45
+ placement: e = "bottom",
46
46
  strategy: n = "absolute",
47
47
  middleware: r = [],
48
48
  platform: o,
49
49
  whileElementsMounted: i,
50
50
  open: u
51
- } = e, [a, f] = s.useState({
51
+ } = t, [a, f] = s.useState({
52
52
  x: null,
53
53
  y: null,
54
54
  strategy: n,
55
- placement: t,
55
+ placement: e,
56
56
  middlewareData: {},
57
57
  isPositioned: !1
58
- }), [v, m] = s.useState(r);
59
- re(v, r) || m(r);
60
- const c = s.useRef(null), l = s.useRef(null), p = s.useRef(a), w = Ie(i), b = Ie(o), [d, g] = s.useState(null), [I, E] = s.useState(null), F = s.useCallback((T) => {
58
+ }), [d, m] = s.useState(r);
59
+ re(d, r) || m(r);
60
+ const c = s.useRef(null), l = s.useRef(null), p = s.useRef(a), w = Ae(i), b = Ae(o), [v, g] = s.useState(null), [I, E] = s.useState(null), F = s.useCallback((T) => {
61
61
  c.current !== T && (c.current = T, g(T));
62
- }, []), k = s.useCallback((T) => {
62
+ }, []), N = s.useCallback((T) => {
63
63
  l.current !== T && (l.current = T, E(T));
64
64
  }, []), O = s.useCallback(() => {
65
65
  if (!c.current || !l.current)
66
66
  return;
67
67
  const T = {
68
- placement: t,
68
+ placement: e,
69
69
  strategy: n,
70
- middleware: v
70
+ middleware: d
71
71
  };
72
- b.current && (T.platform = b.current), Je(c.current, l.current, T).then((D) => {
72
+ b.current && (T.platform = b.current), et(c.current, l.current, T).then((D) => {
73
73
  const A = {
74
74
  ...D,
75
75
  isPositioned: !0
76
76
  };
77
- V.current && !re(p.current, A) && (p.current = A, ge.flushSync(() => {
77
+ K.current && !re(p.current, A) && (p.current = A, ge.flushSync(() => {
78
78
  f(A);
79
79
  }));
80
80
  });
81
- }, [v, t, n, b]);
81
+ }, [d, e, n, b]);
82
82
  te(() => {
83
83
  u === !1 && p.current.isPositioned && (p.current.isPositioned = !1, f((T) => ({
84
84
  ...T,
85
85
  isPositioned: !1
86
86
  })));
87
87
  }, [u]);
88
- const V = s.useRef(!1);
89
- te(() => (V.current = !0, () => {
90
- V.current = !1;
88
+ const K = s.useRef(!1);
89
+ te(() => (K.current = !0, () => {
90
+ K.current = !1;
91
91
  }), []), te(() => {
92
- if (d && I) {
92
+ if (v && I) {
93
93
  if (w.current)
94
- return w.current(d, I, O);
94
+ return w.current(v, I, O);
95
95
  O();
96
96
  }
97
- }, [d, I, O, w]);
97
+ }, [v, I, O, w]);
98
98
  const W = s.useMemo(() => ({
99
99
  reference: c,
100
100
  floating: l,
101
101
  setReference: F,
102
- setFloating: k
103
- }), [F, k]), K = s.useMemo(() => ({
104
- reference: d,
102
+ setFloating: N
103
+ }), [F, N]), V = s.useMemo(() => ({
104
+ reference: v,
105
105
  floating: I
106
- }), [d, I]);
106
+ }), [v, I]);
107
107
  return s.useMemo(() => ({
108
108
  ...a,
109
109
  update: O,
110
110
  refs: W,
111
- elements: K,
111
+ elements: V,
112
112
  reference: F,
113
- floating: k
114
- }), [a, O, W, K, F, k]);
113
+ floating: N
114
+ }), [a, O, W, V, F, N]);
115
115
  }
116
- var tt = function(e) {
116
+ var rt = function(t) {
117
117
  if (typeof document > "u")
118
118
  return null;
119
- var t = Array.isArray(e) ? e[0] : e;
120
- return t.ownerDocument.body;
121
- }, z = /* @__PURE__ */ new WeakMap(), Q = /* @__PURE__ */ new WeakMap(), ee = {}, de = 0, Ve = function(e) {
122
- return e && (e.host || Ve(e.parentNode));
123
- }, nt = function(e, t) {
124
- return t.map(function(n) {
125
- if (e.contains(n))
119
+ var e = Array.isArray(t) ? t[0] : t;
120
+ return e.ownerDocument.body;
121
+ }, z = /* @__PURE__ */ new WeakMap(), Q = /* @__PURE__ */ new WeakMap(), ee = {}, de = 0, We = function(t) {
122
+ return t && (t.host || We(t.parentNode));
123
+ }, ot = function(t, e) {
124
+ return e.map(function(n) {
125
+ if (t.contains(n))
126
126
  return n;
127
- var r = Ve(n);
128
- return r && e.contains(r) ? r : (console.error("aria-hidden", n, "in not contained inside", e, ". Doing nothing"), null);
127
+ var r = We(n);
128
+ return r && t.contains(r) ? r : (console.error("aria-hidden", n, "in not contained inside", t, ". Doing nothing"), null);
129
129
  }).filter(function(n) {
130
130
  return !!n;
131
131
  });
132
- }, rt = function(e, t, n, r) {
133
- var o = nt(t, Array.isArray(e) ? e : [e]);
132
+ }, it = function(t, e, n, r) {
133
+ var o = ot(e, Array.isArray(t) ? t : [t]);
134
134
  ee[n] || (ee[n] = /* @__PURE__ */ new WeakMap());
135
- var i = ee[n], u = [], a = /* @__PURE__ */ new Set(), f = new Set(o), v = function(c) {
136
- !c || a.has(c) || (a.add(c), v(c.parentNode));
135
+ var i = ee[n], u = [], a = /* @__PURE__ */ new Set(), f = new Set(o), d = function(c) {
136
+ !c || a.has(c) || (a.add(c), d(c.parentNode));
137
137
  };
138
- o.forEach(v);
138
+ o.forEach(d);
139
139
  var m = function(c) {
140
140
  !c || f.has(c) || Array.prototype.forEach.call(c.children, function(l) {
141
141
  if (a.has(l))
142
142
  m(l);
143
143
  else
144
144
  try {
145
- var p = l.getAttribute(r), w = p !== null && p !== "false", b = (z.get(l) || 0) + 1, d = (i.get(l) || 0) + 1;
146
- z.set(l, b), i.set(l, d), u.push(l), b === 1 && w && Q.set(l, !0), d === 1 && l.setAttribute(n, "true"), w || l.setAttribute(r, "true");
145
+ var p = l.getAttribute(r), w = p !== null && p !== "false", b = (z.get(l) || 0) + 1, v = (i.get(l) || 0) + 1;
146
+ z.set(l, b), i.set(l, v), u.push(l), b === 1 && w && Q.set(l, !0), v === 1 && l.setAttribute(n, "true"), w || l.setAttribute(r, "true");
147
147
  } catch (g) {
148
148
  console.error("aria-hidden: cannot operate on ", l, g);
149
149
  }
150
150
  });
151
151
  };
152
- return m(t), a.clear(), de++, function() {
152
+ return m(e), a.clear(), de++, function() {
153
153
  u.forEach(function(c) {
154
154
  var l = z.get(c) - 1, p = i.get(c) - 1;
155
155
  z.set(c, l), i.set(c, p), l || (Q.has(c) || c.removeAttribute(r), Q.delete(c)), p || c.removeAttribute(n);
156
156
  }), de--, de || (z = /* @__PURE__ */ new WeakMap(), z = /* @__PURE__ */ new WeakMap(), Q = /* @__PURE__ */ new WeakMap(), ee = {});
157
157
  };
158
- }, ot = function(e, t, n) {
158
+ }, ut = function(t, e, n) {
159
159
  n === void 0 && (n = "data-aria-hidden");
160
- var r = Array.from(Array.isArray(e) ? e : [e]), o = tt(e);
161
- return o ? (r.push.apply(r, Array.from(o.querySelectorAll("[aria-live], script"))), rt(r, o, n, "aria-hidden")) : function() {
160
+ var r = Array.from(Array.isArray(t) ? t : [t]), o = rt(t);
161
+ return o ? (r.push.apply(r, Array.from(o.querySelectorAll("[aria-live], script"))), it(r, o, n, "aria-hidden")) : function() {
162
162
  return null;
163
163
  };
164
164
  };
165
165
  /*!
166
- * tabbable 6.2.0
166
+ * tabbable 6.4.0
167
167
  * @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
168
168
  */
169
- var it = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])", "a[href]:not([inert])", "button:not([inert])", "[tabindex]:not(slot):not([inert])", "audio[controls]:not([inert])", "video[controls]:not([inert])", '[contenteditable]:not([contenteditable="false"]):not([inert])', "details>summary:first-of-type:not([inert])", "details:not([inert])"], he = /* @__PURE__ */ it.join(","), We = typeof Element > "u", X = We ? function() {
170
- } : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector, oe = !We && Element.prototype.getRootNode ? function(e) {
171
- var t;
172
- return e == null || (t = e.getRootNode) === null || t === void 0 ? void 0 : t.call(e);
173
- } : function(e) {
174
- return e == null ? void 0 : e.ownerDocument;
175
- }, ie = function e(t, n) {
169
+ var st = ["input:not([inert]):not([inert] *)", "select:not([inert]):not([inert] *)", "textarea:not([inert]):not([inert] *)", "a[href]:not([inert]):not([inert] *)", "button:not([inert]):not([inert] *)", "[tabindex]:not(slot):not([inert]):not([inert] *)", "audio[controls]:not([inert]):not([inert] *)", "video[controls]:not([inert]):not([inert] *)", '[contenteditable]:not([contenteditable="false"]):not([inert]):not([inert] *)', "details>summary:first-of-type:not([inert]):not([inert] *)", "details:not([inert]):not([inert] *)"], he = /* @__PURE__ */ st.join(","), $e = typeof Element > "u", X = $e ? function() {
170
+ } : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector, oe = !$e && Element.prototype.getRootNode ? function(t) {
171
+ var e;
172
+ return t == null || (e = t.getRootNode) === null || e === void 0 ? void 0 : e.call(t);
173
+ } : function(t) {
174
+ return t == null ? void 0 : t.ownerDocument;
175
+ }, ie = function(e, n) {
176
176
  var r;
177
177
  n === void 0 && (n = !0);
178
- var o = t == null || (r = t.getAttribute) === null || r === void 0 ? void 0 : r.call(t, "inert"), i = o === "" || o === "true", u = i || n && t && e(t.parentNode);
178
+ var o = e == null || (r = e.getAttribute) === null || r === void 0 ? void 0 : r.call(e, "inert"), i = o === "" || o === "true", u = i || n && e && // closest does not exist on shadow roots, so we fall back to a manual
179
+ // lookup upward, in case it is not defined.
180
+ (typeof e.closest == "function" ? e.closest("[inert]") : ie(e.parentNode));
179
181
  return u;
180
- }, ut = function(t) {
181
- var n, r = t == null || (n = t.getAttribute) === null || n === void 0 ? void 0 : n.call(t, "contenteditable");
182
+ }, at = function(e) {
183
+ var n, r = e == null || (n = e.getAttribute) === null || n === void 0 ? void 0 : n.call(e, "contenteditable");
182
184
  return r === "" || r === "true";
183
- }, st = function(t, n, r) {
184
- if (ie(t))
185
+ }, lt = function(e, n, r) {
186
+ if (ie(e))
185
187
  return [];
186
- var o = Array.prototype.slice.apply(t.querySelectorAll(he));
187
- return n && X.call(t, he) && o.unshift(t), o = o.filter(r), o;
188
- }, at = function e(t, n, r) {
189
- for (var o = [], i = Array.from(t); i.length; ) {
188
+ var o = Array.prototype.slice.apply(e.querySelectorAll(he));
189
+ return n && X.call(e, he) && o.unshift(e), o = o.filter(r), o;
190
+ }, ye = function(e, n, r) {
191
+ for (var o = [], i = Array.from(e); i.length; ) {
190
192
  var u = i.shift();
191
193
  if (!ie(u, !1))
192
194
  if (u.tagName === "SLOT") {
193
- var a = u.assignedElements(), f = a.length ? a : u.children, v = e(f, !0, r);
194
- r.flatten ? o.push.apply(o, v) : o.push({
195
+ var a = u.assignedElements(), f = a.length ? a : u.children, d = ye(f, !0, r);
196
+ r.flatten ? o.push.apply(o, d) : o.push({
195
197
  scopeParent: u,
196
- candidates: v
198
+ candidates: d
197
199
  });
198
200
  } else {
199
201
  var m = X.call(u, he);
200
- m && r.filter(u) && (n || !t.includes(u)) && o.push(u);
202
+ m && r.filter(u) && (n || !e.includes(u)) && o.push(u);
201
203
  var c = u.shadowRoot || // check for an undisclosed shadow
202
204
  typeof r.getShadowRoot == "function" && r.getShadowRoot(u), l = !ie(c, !1) && (!r.shadowRootFilter || r.shadowRootFilter(u));
203
205
  if (c && l) {
204
- var p = e(c === !0 ? u.children : c.children, !0, r);
206
+ var p = ye(c === !0 ? u.children : c.children, !0, r);
205
207
  r.flatten ? o.push.apply(o, p) : o.push({
206
208
  scopeParent: u,
207
209
  candidates: p
@@ -211,240 +213,255 @@ var it = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
211
213
  }
212
214
  }
213
215
  return o;
214
- }, $e = function(t) {
215
- return !isNaN(parseInt(t.getAttribute("tabindex"), 10));
216
- }, qe = function(t) {
217
- if (!t)
216
+ }, qe = function(e) {
217
+ return !isNaN(parseInt(e.getAttribute("tabindex"), 10));
218
+ }, je = function(e) {
219
+ if (!e)
218
220
  throw new Error("No node provided");
219
- return t.tabIndex < 0 && (/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName) || ut(t)) && !$e(t) ? 0 : t.tabIndex;
220
- }, lt = function(t, n) {
221
- var r = qe(t);
222
- return r < 0 && n && !$e(t) ? 0 : r;
223
- }, ct = function(t, n) {
224
- return t.tabIndex === n.tabIndex ? t.documentOrder - n.documentOrder : t.tabIndex - n.tabIndex;
225
- }, je = function(t) {
226
- return t.tagName === "INPUT";
227
- }, ft = function(t) {
228
- return je(t) && t.type === "hidden";
229
- }, dt = function(t) {
230
- var n = t.tagName === "DETAILS" && Array.prototype.slice.apply(t.children).some(function(r) {
221
+ return e.tabIndex < 0 && (/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName) || at(e)) && !qe(e) ? 0 : e.tabIndex;
222
+ }, ct = function(e, n) {
223
+ var r = je(e);
224
+ return r < 0 && n && !qe(e) ? 0 : r;
225
+ }, ft = function(e, n) {
226
+ return e.tabIndex === n.tabIndex ? e.documentOrder - n.documentOrder : e.tabIndex - n.tabIndex;
227
+ }, He = function(e) {
228
+ return e.tagName === "INPUT";
229
+ }, dt = function(e) {
230
+ return He(e) && e.type === "hidden";
231
+ }, vt = function(e) {
232
+ var n = e.tagName === "DETAILS" && Array.prototype.slice.apply(e.children).some(function(r) {
231
233
  return r.tagName === "SUMMARY";
232
234
  });
233
235
  return n;
234
- }, vt = function(t, n) {
235
- for (var r = 0; r < t.length; r++)
236
- if (t[r].checked && t[r].form === n)
237
- return t[r];
238
- }, pt = function(t) {
239
- if (!t.name)
236
+ }, pt = function(e, n) {
237
+ for (var r = 0; r < e.length; r++)
238
+ if (e[r].checked && e[r].form === n)
239
+ return e[r];
240
+ }, bt = function(e) {
241
+ if (!e.name)
240
242
  return !0;
241
- var n = t.form || oe(t), r = function(a) {
243
+ var n = e.form || oe(e), r = function(a) {
242
244
  return n.querySelectorAll('input[type="radio"][name="' + a + '"]');
243
245
  }, o;
244
246
  if (typeof window < "u" && typeof window.CSS < "u" && typeof window.CSS.escape == "function")
245
- o = r(window.CSS.escape(t.name));
247
+ o = r(window.CSS.escape(e.name));
246
248
  else
247
249
  try {
248
- o = r(t.name);
250
+ o = r(e.name);
249
251
  } catch (u) {
250
252
  return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s", u.message), !1;
251
253
  }
252
- var i = vt(o, t.form);
253
- return !i || i === t;
254
- }, bt = function(t) {
255
- return je(t) && t.type === "radio";
256
- }, mt = function(t) {
257
- return bt(t) && !pt(t);
258
- }, gt = function(t) {
259
- var n, r = t && oe(t), o = (n = r) === null || n === void 0 ? void 0 : n.host, i = !1;
260
- if (r && r !== t) {
254
+ var i = pt(o, e.form);
255
+ return !i || i === e;
256
+ }, mt = function(e) {
257
+ return He(e) && e.type === "radio";
258
+ }, gt = function(e) {
259
+ return mt(e) && !bt(e);
260
+ }, ht = function(e) {
261
+ var n, r = e && oe(e), o = (n = r) === null || n === void 0 ? void 0 : n.host, i = !1;
262
+ if (r && r !== e) {
261
263
  var u, a, f;
262
- for (i = !!((u = o) !== null && u !== void 0 && (a = u.ownerDocument) !== null && a !== void 0 && a.contains(o) || t != null && (f = t.ownerDocument) !== null && f !== void 0 && f.contains(t)); !i && o; ) {
263
- var v, m, c;
264
- r = oe(o), o = (v = r) === null || v === void 0 ? void 0 : v.host, i = !!((m = o) !== null && m !== void 0 && (c = m.ownerDocument) !== null && c !== void 0 && c.contains(o));
264
+ for (i = !!((u = o) !== null && u !== void 0 && (a = u.ownerDocument) !== null && a !== void 0 && a.contains(o) || e != null && (f = e.ownerDocument) !== null && f !== void 0 && f.contains(e)); !i && o; ) {
265
+ var d, m, c;
266
+ r = oe(o), o = (d = r) === null || d === void 0 ? void 0 : d.host, i = !!((m = o) !== null && m !== void 0 && (c = m.ownerDocument) !== null && c !== void 0 && c.contains(o));
265
267
  }
266
268
  }
267
269
  return i;
268
- }, Ae = function(t) {
269
- var n = t.getBoundingClientRect(), r = n.width, o = n.height;
270
+ }, Pe = function(e) {
271
+ var n = e.getBoundingClientRect(), r = n.width, o = n.height;
270
272
  return r === 0 && o === 0;
271
- }, ht = function(t, n) {
273
+ }, yt = function(e, n) {
272
274
  var r = n.displayCheck, o = n.getShadowRoot;
273
- if (getComputedStyle(t).visibility === "hidden")
275
+ if (r === "full-native" && "checkVisibility" in e) {
276
+ var i = e.checkVisibility({
277
+ // Checking opacity might be desirable for some use cases, but natively,
278
+ // opacity zero elements _are_ focusable and tabbable.
279
+ checkOpacity: !1,
280
+ opacityProperty: !1,
281
+ contentVisibilityAuto: !0,
282
+ visibilityProperty: !0,
283
+ // This is an alias for `visibilityProperty`. Contemporary browsers
284
+ // support both. However, this alias has wider browser support (Chrome
285
+ // >= 105 and Firefox >= 106, vs. Chrome >= 121 and Firefox >= 122), so
286
+ // we include it anyway.
287
+ checkVisibilityCSS: !0
288
+ });
289
+ return !i;
290
+ }
291
+ if (getComputedStyle(e).visibility === "hidden")
274
292
  return !0;
275
- var i = X.call(t, "details>summary:first-of-type"), u = i ? t.parentElement : t;
276
- if (X.call(u, "details:not([open]) *"))
293
+ var u = X.call(e, "details>summary:first-of-type"), a = u ? e.parentElement : e;
294
+ if (X.call(a, "details:not([open]) *"))
277
295
  return !0;
278
- if (!r || r === "full" || r === "legacy-full") {
296
+ if (!r || r === "full" || // full-native can run this branch when it falls through in case
297
+ // Element#checkVisibility is unsupported
298
+ r === "full-native" || r === "legacy-full") {
279
299
  if (typeof o == "function") {
280
- for (var a = t; t; ) {
281
- var f = t.parentElement, v = oe(t);
282
- if (f && !f.shadowRoot && o(f) === !0)
283
- return Ae(t);
284
- t.assignedSlot ? t = t.assignedSlot : !f && v !== t.ownerDocument ? t = v.host : t = f;
300
+ for (var f = e; e; ) {
301
+ var d = e.parentElement, m = oe(e);
302
+ if (d && !d.shadowRoot && o(d) === !0)
303
+ return Pe(e);
304
+ e.assignedSlot ? e = e.assignedSlot : !d && m !== e.ownerDocument ? e = m.host : e = d;
285
305
  }
286
- t = a;
306
+ e = f;
287
307
  }
288
- if (gt(t))
289
- return !t.getClientRects().length;
308
+ if (ht(e))
309
+ return !e.getClientRects().length;
290
310
  if (r !== "legacy-full")
291
311
  return !0;
292
312
  } else if (r === "non-zero-area")
293
- return Ae(t);
313
+ return Pe(e);
294
314
  return !1;
295
- }, yt = function(t) {
296
- if (/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))
297
- for (var n = t.parentElement; n; ) {
315
+ }, Et = function(e) {
316
+ if (/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))
317
+ for (var n = e.parentElement; n; ) {
298
318
  if (n.tagName === "FIELDSET" && n.disabled) {
299
319
  for (var r = 0; r < n.children.length; r++) {
300
320
  var o = n.children.item(r);
301
321
  if (o.tagName === "LEGEND")
302
- return X.call(n, "fieldset[disabled] *") ? !0 : !o.contains(t);
322
+ return X.call(n, "fieldset[disabled] *") ? !0 : !o.contains(e);
303
323
  }
304
324
  return !0;
305
325
  }
306
326
  n = n.parentElement;
307
327
  }
308
328
  return !1;
309
- }, Et = function(t, n) {
310
- return !(n.disabled || // we must do an inert look up to filter out any elements inside an inert ancestor
311
- // because we're limited in the type of selectors we can use in JSDom (see related
312
- // note related to `candidateSelectors`)
313
- ie(n) || ft(n) || ht(n, t) || // For a details element with a summary, the summary element gets the focus
314
- dt(n) || yt(n));
315
- }, Pe = function(t, n) {
316
- return !(mt(n) || qe(n) < 0 || !Et(t, n));
317
- }, Rt = function(t) {
318
- var n = parseInt(t.getAttribute("tabindex"), 10);
329
+ }, Rt = function(e, n) {
330
+ return !(n.disabled || dt(n) || yt(n, e) || // For a details element with a summary, the summary element gets the focus
331
+ vt(n) || Et(n));
332
+ }, Fe = function(e, n) {
333
+ return !(gt(n) || je(n) < 0 || !Rt(e, n));
334
+ }, wt = function(e) {
335
+ var n = parseInt(e.getAttribute("tabindex"), 10);
319
336
  return !!(isNaN(n) || n >= 0);
320
- }, wt = function e(t) {
337
+ }, _e = function(e) {
321
338
  var n = [], r = [];
322
- return t.forEach(function(o, i) {
323
- var u = !!o.scopeParent, a = u ? o.scopeParent : o, f = lt(a, u), v = u ? e(o.candidates) : a;
324
- f === 0 ? u ? n.push.apply(n, v) : n.push(a) : r.push({
339
+ return e.forEach(function(o, i) {
340
+ var u = !!o.scopeParent, a = u ? o.scopeParent : o, f = ct(a, u), d = u ? _e(o.candidates) : a;
341
+ f === 0 ? u ? n.push.apply(n, d) : n.push(a) : r.push({
325
342
  documentOrder: i,
326
343
  tabIndex: f,
327
344
  item: o,
328
345
  isScope: u,
329
- content: v
346
+ content: d
330
347
  });
331
- }), r.sort(ct).reduce(function(o, i) {
348
+ }), r.sort(ft).reduce(function(o, i) {
332
349
  return i.isScope ? o.push.apply(o, i.content) : o.push(i.content), o;
333
350
  }, []).concat(n);
334
- }, ue = function(t, n) {
351
+ }, ue = function(e, n) {
335
352
  n = n || {};
336
353
  var r;
337
- return n.getShadowRoot ? r = at([t], n.includeContainer, {
338
- filter: Pe.bind(null, n),
354
+ return n.getShadowRoot ? r = ye([e], n.includeContainer, {
355
+ filter: Fe.bind(null, n),
339
356
  flatten: !1,
340
357
  getShadowRoot: n.getShadowRoot,
341
- shadowRootFilter: Rt
342
- }) : r = st(t, n.includeContainer, Pe.bind(null, n)), wt(r);
343
- }, q = typeof document < "u" ? Be : Ke;
358
+ shadowRootFilter: wt
359
+ }) : r = lt(e, n.includeContainer, Fe.bind(null, n)), _e(r);
360
+ }, q = typeof document < "u" ? Ve : Ke;
344
361
  let ve = !1, St = 0;
345
- const Fe = () => "floating-ui-" + St++;
362
+ const Oe = () => "floating-ui-" + St++;
346
363
  function xt() {
347
- const [e, t] = s.useState(() => ve ? Fe() : void 0);
364
+ const [t, e] = s.useState(() => ve ? Oe() : void 0);
348
365
  return q(() => {
349
- e == null && t(Fe());
366
+ t == null && e(Oe());
350
367
  }, []), s.useEffect(() => {
351
368
  ve || (ve = !0);
352
- }, []), e;
369
+ }, []), t;
353
370
  }
354
- const Tt = s.useId, ye = Tt || xt;
371
+ const Tt = s.useId, Ee = Tt || xt;
355
372
  function Ct() {
356
- const e = /* @__PURE__ */ new Map();
373
+ const t = /* @__PURE__ */ new Map();
357
374
  return {
358
- emit(t, n) {
375
+ emit(e, n) {
359
376
  var r;
360
- (r = e.get(t)) == null || r.forEach((o) => o(n));
377
+ (r = t.get(e)) == null || r.forEach((o) => o(n));
361
378
  },
362
- on(t, n) {
363
- e.set(t, [...e.get(t) || [], n]);
379
+ on(e, n) {
380
+ t.set(e, [...t.get(e) || [], n]);
364
381
  },
365
- off(t, n) {
366
- e.set(t, (e.get(t) || []).filter((r) => r !== n));
382
+ off(e, n) {
383
+ t.set(e, (t.get(e) || []).filter((r) => r !== n));
367
384
  }
368
385
  };
369
386
  }
370
387
  const It = /* @__PURE__ */ s.createContext(null), At = /* @__PURE__ */ s.createContext(null), Pt = () => {
371
- var e;
372
- return ((e = s.useContext(It)) == null ? void 0 : e.id) || null;
373
- }, we = () => s.useContext(At);
374
- function G(e) {
375
- return (e == null ? void 0 : e.ownerDocument) || document;
388
+ var t;
389
+ return ((t = s.useContext(It)) == null ? void 0 : t.id) || null;
390
+ }, Se = () => s.useContext(At);
391
+ function G(t) {
392
+ return (t == null ? void 0 : t.ownerDocument) || document;
376
393
  }
377
- function He() {
378
- const e = navigator.userAgentData;
379
- return e != null && e.platform ? e.platform : navigator.platform;
394
+ function Ue() {
395
+ const t = navigator.userAgentData;
396
+ return t != null && t.platform ? t.platform : navigator.platform;
380
397
  }
381
398
  function Ft() {
382
- const e = navigator.userAgentData;
383
- return e && Array.isArray(e.brands) ? e.brands.map((t) => {
399
+ const t = navigator.userAgentData;
400
+ return t && Array.isArray(t.brands) ? t.brands.map((e) => {
384
401
  let {
385
402
  brand: n,
386
403
  version: r
387
- } = t;
404
+ } = e;
388
405
  return n + "/" + r;
389
406
  }).join(" ") : navigator.userAgent;
390
407
  }
391
- function Se(e) {
392
- return G(e).defaultView || window;
408
+ function xe(t) {
409
+ return G(t).defaultView || window;
393
410
  }
394
- function H(e) {
395
- return e ? e instanceof Se(e).Element : !1;
411
+ function H(t) {
412
+ return t ? t instanceof xe(t).Element : !1;
396
413
  }
397
- function Z(e) {
398
- return e ? e instanceof Se(e).HTMLElement : !1;
414
+ function Z(t) {
415
+ return t ? t instanceof xe(t).HTMLElement : !1;
399
416
  }
400
- function Ot(e) {
417
+ function Ot(t) {
401
418
  if (typeof ShadowRoot > "u")
402
419
  return !1;
403
- const t = Se(e).ShadowRoot;
404
- return e instanceof t || e instanceof ShadowRoot;
420
+ const e = xe(t).ShadowRoot;
421
+ return t instanceof e || t instanceof ShadowRoot;
405
422
  }
406
- function Dt(e) {
407
- if (e.mozInputSource === 0 && e.isTrusted)
423
+ function Dt(t) {
424
+ if (t.mozInputSource === 0 && t.isTrusted)
408
425
  return !0;
409
- const t = /Android/i;
410
- return (t.test(He()) || t.test(Ft())) && e.pointerType ? e.type === "click" && e.buttons === 1 : e.detail === 0 && !e.pointerType;
426
+ const e = /Android/i;
427
+ return (e.test(Ue()) || e.test(Ft())) && t.pointerType ? t.type === "click" && t.buttons === 1 : t.detail === 0 && !t.pointerType;
411
428
  }
412
- function Mt(e) {
413
- return e.width === 0 && e.height === 0 || e.width === 1 && e.height === 1 && e.pressure === 0 && e.detail === 0 && e.pointerType !== "mouse" || // iOS VoiceOver returns 0.333• for width/height.
414
- e.width < 1 && e.height < 1 && e.pressure === 0 && e.detail === 0;
429
+ function Mt(t) {
430
+ return t.width === 0 && t.height === 0 || t.width === 1 && t.height === 1 && t.pressure === 0 && t.detail === 0 && t.pointerType !== "mouse" || // iOS VoiceOver returns 0.333• for width/height.
431
+ t.width < 1 && t.height < 1 && t.pressure === 0 && t.detail === 0;
415
432
  }
416
- function Oe() {
433
+ function De() {
417
434
  return /apple/i.test(navigator.vendor);
418
435
  }
419
- function Nt() {
420
- return He().toLowerCase().startsWith("mac") && !navigator.maxTouchPoints;
436
+ function kt() {
437
+ return Ue().toLowerCase().startsWith("mac") && !navigator.maxTouchPoints;
421
438
  }
422
- function De(e, t) {
423
- return ["mouse", "pen"].includes(e);
439
+ function Me(t, e) {
440
+ return ["mouse", "pen"].includes(t);
424
441
  }
425
- function $(e, t) {
426
- if (!e || !t)
442
+ function $(t, e) {
443
+ if (!t || !e)
427
444
  return !1;
428
- const n = t.getRootNode && t.getRootNode();
429
- if (e.contains(t))
445
+ const n = e.getRootNode && e.getRootNode();
446
+ if (t.contains(e))
430
447
  return !0;
431
448
  if (n && Ot(n)) {
432
- let r = t;
449
+ let r = e;
433
450
  do {
434
- if (r && e === r)
451
+ if (r && t === r)
435
452
  return !0;
436
453
  r = r.parentNode || r.host;
437
454
  } while (r);
438
455
  }
439
456
  return !1;
440
457
  }
441
- function ne(e, t) {
442
- let n = e.filter((o) => {
458
+ function ne(t, e) {
459
+ let n = t.filter((o) => {
443
460
  var i;
444
- return o.parentId === t && ((i = o.context) == null ? void 0 : i.open);
461
+ return o.parentId === e && ((i = o.context) == null ? void 0 : i.open);
445
462
  }) || [], r = n;
446
463
  for (; r.length; )
447
- r = e.filter((o) => {
464
+ r = t.filter((o) => {
448
465
  var i;
449
466
  return (i = r) == null ? void 0 : i.some((u) => {
450
467
  var a;
@@ -453,62 +470,62 @@ function ne(e, t) {
453
470
  }) || [], n = n.concat(r);
454
471
  return n;
455
472
  }
456
- function Ue(e) {
457
- return "composedPath" in e ? e.composedPath()[0] : e.target;
473
+ function ze(t) {
474
+ return "composedPath" in t ? t.composedPath()[0] : t.target;
458
475
  }
459
- function kt(e) {
460
- const t = Qe(e);
476
+ function Nt(t) {
477
+ const e = tt(t);
461
478
  return q(() => {
462
- t.current = e;
463
- }), t;
479
+ e.current = t;
480
+ }), e;
464
481
  }
465
482
  function se() {
466
- return se = Object.assign || function(e) {
467
- for (var t = 1; t < arguments.length; t++) {
468
- var n = arguments[t];
483
+ return se = Object.assign || function(t) {
484
+ for (var e = 1; e < arguments.length; e++) {
485
+ var n = arguments[e];
469
486
  for (var r in n)
470
- Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
487
+ Object.prototype.hasOwnProperty.call(n, r) && (t[r] = n[r]);
471
488
  }
472
- return e;
489
+ return t;
473
490
  }, se.apply(this, arguments);
474
491
  }
475
- function Ee(e) {
476
- let t = e.activeElement;
477
- for (; ((n = t) == null || (r = n.shadowRoot) == null ? void 0 : r.activeElement) != null; ) {
492
+ function Re(t) {
493
+ let e = t.activeElement;
494
+ for (; ((n = e) == null || (r = n.shadowRoot) == null ? void 0 : r.activeElement) != null; ) {
478
495
  var n, r;
479
- t = t.shadowRoot.activeElement;
496
+ e = e.shadowRoot.activeElement;
480
497
  }
481
- return t;
498
+ return e;
482
499
  }
483
- let Me = 0;
484
- function j(e, t) {
485
- t === void 0 && (t = {});
500
+ let ke = 0;
501
+ function j(t, e) {
502
+ e === void 0 && (e = {});
486
503
  const {
487
504
  preventScroll: n = !1,
488
505
  cancelPrevious: r = !0,
489
506
  sync: o = !1
490
- } = t;
491
- r && cancelAnimationFrame(Me);
492
- const i = () => e == null ? void 0 : e.focus({
507
+ } = e;
508
+ r && cancelAnimationFrame(ke);
509
+ const i = () => t == null ? void 0 : t.focus({
493
510
  preventScroll: n
494
511
  });
495
- o ? i() : Me = requestAnimationFrame(i);
512
+ o ? i() : ke = requestAnimationFrame(i);
496
513
  }
497
- function Lt(e, t) {
514
+ function Lt(t, e) {
498
515
  var n;
499
- let r = [], o = (n = e.find((i) => i.id === t)) == null ? void 0 : n.parentId;
516
+ let r = [], o = (n = t.find((i) => i.id === e)) == null ? void 0 : n.parentId;
500
517
  for (; o; ) {
501
- const i = e.find((u) => u.id === o);
518
+ const i = t.find((u) => u.id === o);
502
519
  o = i == null ? void 0 : i.parentId, i && (r = r.concat(i));
503
520
  }
504
521
  return r;
505
522
  }
506
523
  const Bt = "input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";
507
- function _e(e) {
508
- return Z(e) && e.matches(Bt);
524
+ function Ge(t) {
525
+ return Z(t) && t.matches(Bt);
509
526
  }
510
- function pe(e) {
511
- e.preventDefault(), e.stopPropagation();
527
+ function pe(t) {
528
+ t.preventDefault(), t.stopPropagation();
512
529
  }
513
530
  const ae = () => ({
514
531
  getShadowRoot: !0,
@@ -519,48 +536,48 @@ const ae = () => ({
519
536
  typeof ResizeObserver == "function" && ResizeObserver.toString().includes("[native code]") ? "full" : "none"
520
537
  )
521
538
  });
522
- function ze(e, t) {
523
- const n = ue(e, ae());
524
- t === "prev" && n.reverse();
525
- const r = n.indexOf(Ee(G(e)));
539
+ function Ye(t, e) {
540
+ const n = ue(t, ae());
541
+ e === "prev" && n.reverse();
542
+ const r = n.indexOf(Re(G(t)));
526
543
  return n.slice(r + 1)[0];
527
544
  }
528
- function Ge() {
529
- return ze(document.body, "next");
545
+ function Xe() {
546
+ return Ye(document.body, "next");
530
547
  }
531
- function Ye() {
532
- return ze(document.body, "prev");
548
+ function Ze() {
549
+ return Ye(document.body, "prev");
533
550
  }
534
- function Y(e, t) {
535
- const n = t || e.currentTarget, r = e.relatedTarget;
551
+ function Y(t, e) {
552
+ const n = e || t.currentTarget, r = t.relatedTarget;
536
553
  return !r || !$(n, r);
537
554
  }
538
- function Kt(e) {
539
- ue(e, ae()).forEach((n) => {
555
+ function Vt(t) {
556
+ ue(t, ae()).forEach((n) => {
540
557
  n.dataset.tabindex = n.getAttribute("tabindex") || "", n.setAttribute("tabindex", "-1");
541
558
  });
542
559
  }
543
- function Vt(e) {
544
- e.querySelectorAll("[data-tabindex]").forEach((n) => {
560
+ function Kt(t) {
561
+ t.querySelectorAll("[data-tabindex]").forEach((n) => {
545
562
  const r = n.dataset.tabindex;
546
563
  delete n.dataset.tabindex, r ? n.setAttribute("tabindex", r) : n.removeAttribute("tabindex");
547
564
  });
548
565
  }
549
- const Wt = s.useInsertionEffect, $t = Wt || ((e) => e());
550
- function xe(e) {
551
- const t = s.useRef(() => {
566
+ const Wt = s.useInsertionEffect, $t = Wt || ((t) => t());
567
+ function Te(t) {
568
+ const e = s.useRef(() => {
552
569
  if (process.env.NODE_ENV !== "production")
553
570
  throw new Error("Cannot call an event handler while rendering.");
554
571
  });
555
572
  return $t(() => {
556
- t.current = e;
573
+ e.current = t;
557
574
  }), s.useCallback(function() {
558
575
  for (var n = arguments.length, r = new Array(n), o = 0; o < n; o++)
559
576
  r[o] = arguments[o];
560
- return t.current == null ? void 0 : t.current(...r);
577
+ return e.current == null ? void 0 : e.current(...r);
561
578
  }, []);
562
579
  }
563
- const Te = {
580
+ const Ce = {
564
581
  border: 0,
565
582
  clip: "rect(0 0 0 0)",
566
583
  height: "1px",
@@ -573,63 +590,63 @@ const Te = {
573
590
  top: 0,
574
591
  left: 0
575
592
  };
576
- let Re, Ce;
577
- function Ne(e) {
578
- e.key === "Tab" && (Re = e.target, clearTimeout(Ce));
593
+ let we, Ie;
594
+ function Ne(t) {
595
+ t.key === "Tab" && (we = t.target, clearTimeout(Ie));
579
596
  }
580
- function qt(e) {
581
- const t = Re === e.relatedTarget;
582
- return Re = e.relatedTarget, clearTimeout(Ce), t;
597
+ function qt(t) {
598
+ const e = we === t.relatedTarget;
599
+ return we = t.relatedTarget, clearTimeout(Ie), e;
583
600
  }
584
- const le = /* @__PURE__ */ s.forwardRef(function(t, n) {
585
- const r = xe(t.onFocus), [o, i] = s.useState();
586
- return q(() => (Oe() && i("button"), document.addEventListener("keydown", Ne), () => {
601
+ const le = /* @__PURE__ */ s.forwardRef(function(e, n) {
602
+ const r = Te(e.onFocus), [o, i] = s.useState();
603
+ return q(() => (De() && i("button"), document.addEventListener("keydown", Ne), () => {
587
604
  document.removeEventListener("keydown", Ne);
588
- }), []), /* @__PURE__ */ s.createElement("span", se({}, t, {
605
+ }), []), /* @__PURE__ */ s.createElement("span", se({}, e, {
589
606
  ref: n,
590
607
  tabIndex: 0,
591
608
  role: o,
592
609
  "aria-hidden": o ? void 0 : !0,
593
610
  "data-floating-ui-focus-guard": "",
594
- style: Te,
611
+ style: Ce,
595
612
  onFocus: (u) => {
596
- Oe() && Nt() && !qt(u) ? (u.persist(), Ce = window.setTimeout(() => {
613
+ De() && kt() && !qt(u) ? (u.persist(), Ie = window.setTimeout(() => {
597
614
  r(u);
598
615
  }, 50)) : r(u);
599
616
  }
600
617
  }));
601
- }), Xe = /* @__PURE__ */ s.createContext(null), jt = function(e) {
618
+ }), Je = /* @__PURE__ */ s.createContext(null), jt = function(t) {
602
619
  let {
603
- id: t,
620
+ id: e,
604
621
  enabled: n = !0
605
- } = e === void 0 ? {} : e;
606
- const [r, o] = s.useState(null), i = ye(), u = Ze();
622
+ } = t === void 0 ? {} : t;
623
+ const [r, o] = s.useState(null), i = Ee(), u = Qe();
607
624
  return q(() => {
608
625
  if (!n)
609
626
  return;
610
- const a = t ? document.getElementById(t) : null;
627
+ const a = e ? document.getElementById(e) : null;
611
628
  if (a)
612
629
  a.setAttribute("data-floating-ui-portal", ""), o(a);
613
630
  else {
614
631
  const f = document.createElement("div");
615
- f.id = t || i, f.setAttribute("data-floating-ui-portal", ""), o(f);
616
- const v = (u == null ? void 0 : u.portalNode) || document.body;
617
- return v.appendChild(f), () => {
618
- v.removeChild(f);
632
+ f.id = e || i, f.setAttribute("data-floating-ui-portal", ""), o(f);
633
+ const d = (u == null ? void 0 : u.portalNode) || document.body;
634
+ return d.appendChild(f), () => {
635
+ d.removeChild(f);
619
636
  };
620
637
  }
621
- }, [t, u, i, n]), r;
622
- }, Zt = (e) => {
638
+ }, [e, u, i, n]), r;
639
+ }, Zt = (t) => {
623
640
  let {
624
- children: t,
641
+ children: e,
625
642
  id: n,
626
643
  root: r = null,
627
644
  preserveTabOrder: o = !0
628
- } = e;
645
+ } = t;
629
646
  const i = jt({
630
647
  id: n,
631
648
  enabled: !r
632
- }), [u, a] = s.useState(null), f = s.useRef(null), v = s.useRef(null), m = s.useRef(null), c = s.useRef(null), l = (
649
+ }), [u, a] = s.useState(null), f = s.useRef(null), d = s.useRef(null), m = s.useRef(null), c = s.useRef(null), l = (
633
650
  // The FocusManager and therefore floating element are currently open/
634
651
  // rendered.
635
652
  !!u && // Guards are only for non-modal focus management.
@@ -639,16 +656,16 @@ const le = /* @__PURE__ */ s.forwardRef(function(t, n) {
639
656
  if (!i || !o || u != null && u.modal)
640
657
  return;
641
658
  function p(w) {
642
- i && Y(w) && (w.type === "focusin" ? Vt : Kt)(i);
659
+ i && Y(w) && (w.type === "focusin" ? Kt : Vt)(i);
643
660
  }
644
661
  return i.addEventListener("focusin", p, !0), i.addEventListener("focusout", p, !0), () => {
645
662
  i.removeEventListener("focusin", p, !0), i.removeEventListener("focusout", p, !0);
646
663
  };
647
- }, [i, o, u == null ? void 0 : u.modal]), /* @__PURE__ */ s.createElement(Xe.Provider, {
664
+ }, [i, o, u == null ? void 0 : u.modal]), /* @__PURE__ */ s.createElement(Je.Provider, {
648
665
  value: s.useMemo(() => ({
649
666
  preserveTabOrder: o,
650
667
  beforeOutsideRef: f,
651
- afterOutsideRef: v,
668
+ afterOutsideRef: d,
652
669
  beforeInsideRef: m,
653
670
  afterInsideRef: c,
654
671
  portalNode: i,
@@ -661,35 +678,35 @@ const le = /* @__PURE__ */ s.forwardRef(function(t, n) {
661
678
  var w;
662
679
  (w = m.current) == null || w.focus();
663
680
  } else {
664
- const b = Ye() || (u == null ? void 0 : u.refs.domReference.current);
681
+ const b = Ze() || (u == null ? void 0 : u.refs.domReference.current);
665
682
  b == null || b.focus();
666
683
  }
667
684
  }
668
685
  }), l && i && /* @__PURE__ */ s.createElement("span", {
669
686
  "aria-owns": i.id,
670
- style: Te
671
- }), r ? /* @__PURE__ */ ge.createPortal(t, r) : i ? /* @__PURE__ */ ge.createPortal(t, i) : null, l && i && /* @__PURE__ */ s.createElement(le, {
672
- ref: v,
687
+ style: Ce
688
+ }), r ? /* @__PURE__ */ ge.createPortal(e, r) : i ? /* @__PURE__ */ ge.createPortal(e, i) : null, l && i && /* @__PURE__ */ s.createElement(le, {
689
+ ref: d,
673
690
  onFocus: (p) => {
674
691
  if (Y(p, i)) {
675
692
  var w;
676
693
  (w = c.current) == null || w.focus();
677
694
  } else {
678
- const b = Ge() || (u == null ? void 0 : u.refs.domReference.current);
695
+ const b = Xe() || (u == null ? void 0 : u.refs.domReference.current);
679
696
  b == null || b.focus(), u != null && u.closeOnFocusOut && (u == null || u.onOpenChange(!1));
680
697
  }
681
698
  }
682
699
  }));
683
- }, Ze = () => s.useContext(Xe), Ht = /* @__PURE__ */ s.forwardRef(function(t, n) {
684
- return /* @__PURE__ */ s.createElement("button", se({}, t, {
700
+ }, Qe = () => s.useContext(Je), Ht = /* @__PURE__ */ s.forwardRef(function(e, n) {
701
+ return /* @__PURE__ */ s.createElement("button", se({}, e, {
685
702
  ref: n,
686
703
  tabIndex: -1,
687
- style: Te
704
+ style: Ce
688
705
  }));
689
706
  });
690
- function Jt(e) {
707
+ function Jt(t) {
691
708
  let {
692
- context: t,
709
+ context: e,
693
710
  children: n,
694
711
  order: r = ["content"],
695
712
  guards: o = !0,
@@ -697,8 +714,8 @@ function Jt(e) {
697
714
  returnFocus: u = !0,
698
715
  modal: a = !0,
699
716
  visuallyHiddenDismiss: f = !1,
700
- closeOnFocusOut: v = !0
701
- } = e;
717
+ closeOnFocusOut: d = !0
718
+ } = t;
702
719
  const {
703
720
  refs: m,
704
721
  nodeId: c,
@@ -707,30 +724,30 @@ function Jt(e) {
707
724
  dataRef: w,
708
725
  elements: {
709
726
  domReference: b,
710
- floating: d
727
+ floating: v
711
728
  }
712
- } = t, g = kt(r), I = we(), E = Ze(), [F, k] = s.useState(null), O = typeof i == "number" && i < 0, V = s.useRef(null), W = s.useRef(null), K = s.useRef(!1), T = s.useRef(null), D = s.useRef(!1), A = E != null, S = b && b.getAttribute("role") === "combobox" && _e(b), L = s.useCallback(function(h) {
713
- return h === void 0 && (h = d), h ? ue(h, ae()) : [];
714
- }, [d]), C = s.useCallback((h) => {
729
+ } = e, g = Nt(r), I = Se(), E = Qe(), [F, N] = s.useState(null), O = typeof i == "number" && i < 0, K = s.useRef(null), W = s.useRef(null), V = s.useRef(!1), T = s.useRef(null), D = s.useRef(!1), A = E != null, S = b && b.getAttribute("role") === "combobox" && Ge(b), L = s.useCallback(function(h) {
730
+ return h === void 0 && (h = v), h ? ue(h, ae()) : [];
731
+ }, [v]), C = s.useCallback((h) => {
715
732
  const R = L(h);
716
- return g.current.map((y) => b && y === "reference" ? b : d && y === "floating" ? d : R).filter(Boolean).flat();
717
- }, [b, d, g, L]);
733
+ return g.current.map((y) => b && y === "reference" ? b : v && y === "floating" ? v : R).filter(Boolean).flat();
734
+ }, [b, v, g, L]);
718
735
  s.useEffect(() => {
719
736
  if (!a)
720
737
  return;
721
738
  function h(y) {
722
739
  if (y.key === "Tab") {
723
740
  L().length === 0 && !S && pe(y);
724
- const x = C(), M = Ue(y);
725
- g.current[0] === "reference" && M === b && (pe(y), y.shiftKey ? j(x[x.length - 1]) : j(x[1])), g.current[1] === "floating" && M === d && y.shiftKey && (pe(y), j(x[0]));
741
+ const x = C(), M = ze(y);
742
+ g.current[0] === "reference" && M === b && (pe(y), y.shiftKey ? j(x[x.length - 1]) : j(x[1])), g.current[1] === "floating" && M === v && y.shiftKey && (pe(y), j(x[0]));
726
743
  }
727
744
  }
728
- const R = G(d);
745
+ const R = G(v);
729
746
  return R.addEventListener("keydown", h), () => {
730
747
  R.removeEventListener("keydown", h);
731
748
  };
732
- }, [b, d, a, g, m, S, L, C]), s.useEffect(() => {
733
- if (!v)
749
+ }, [b, v, a, g, m, S, L, C]), s.useEffect(() => {
750
+ if (!d)
734
751
  return;
735
752
  function h() {
736
753
  D.current = !0, setTimeout(() => {
@@ -738,62 +755,62 @@ function Jt(e) {
738
755
  });
739
756
  }
740
757
  function R(y) {
741
- const x = y.relatedTarget, M = !($(b, x) || $(d, x) || $(x, d) || $(E == null ? void 0 : E.portalNode, x) || x != null && x.hasAttribute("data-floating-ui-focus-guard") || I && (ne(I.nodesRef.current, c).find((P) => {
742
- var N, B;
743
- return $((N = P.context) == null ? void 0 : N.elements.floating, x) || $((B = P.context) == null ? void 0 : B.elements.domReference, x);
758
+ const x = y.relatedTarget, M = !($(b, x) || $(v, x) || $(x, v) || $(E == null ? void 0 : E.portalNode, x) || x != null && x.hasAttribute("data-floating-ui-focus-guard") || I && (ne(I.nodesRef.current, c).find((P) => {
759
+ var k, B;
760
+ return $((k = P.context) == null ? void 0 : k.elements.floating, x) || $((B = P.context) == null ? void 0 : B.elements.domReference, x);
744
761
  }) || Lt(I.nodesRef.current, c).find((P) => {
745
- var N, B;
746
- return ((N = P.context) == null ? void 0 : N.elements.floating) === x || ((B = P.context) == null ? void 0 : B.elements.domReference) === x;
762
+ var k, B;
763
+ return ((k = P.context) == null ? void 0 : k.elements.floating) === x || ((B = P.context) == null ? void 0 : B.elements.domReference) === x;
747
764
  })));
748
765
  x && M && !D.current && // Fix React 18 Strict Mode returnFocus due to double rendering.
749
- x !== T.current && (K.current = !0, setTimeout(() => l(!1)));
766
+ x !== T.current && (V.current = !0, setTimeout(() => l(!1)));
750
767
  }
751
- if (d && Z(b))
752
- return b.addEventListener("focusout", R), b.addEventListener("pointerdown", h), !a && d.addEventListener("focusout", R), () => {
753
- b.removeEventListener("focusout", R), b.removeEventListener("pointerdown", h), !a && d.removeEventListener("focusout", R);
768
+ if (v && Z(b))
769
+ return b.addEventListener("focusout", R), b.addEventListener("pointerdown", h), !a && v.addEventListener("focusout", R), () => {
770
+ b.removeEventListener("focusout", R), b.removeEventListener("pointerdown", h), !a && v.removeEventListener("focusout", R);
754
771
  };
755
- }, [b, d, a, c, I, E, l, v]), s.useEffect(() => {
772
+ }, [b, v, a, c, I, E, l, d]), s.useEffect(() => {
756
773
  var h;
757
774
  const R = Array.from((E == null || (h = E.portalNode) == null ? void 0 : h.querySelectorAll("[data-floating-ui-portal]")) || []);
758
775
  function y() {
759
- return [V.current, W.current].filter(Boolean);
776
+ return [K.current, W.current].filter(Boolean);
760
777
  }
761
- if (d && a) {
762
- const x = [d, ...R, ...y()], M = ot(g.current.includes("reference") || S ? x.concat(b || []) : x);
778
+ if (v && a) {
779
+ const x = [v, ...R, ...y()], M = ut(g.current.includes("reference") || S ? x.concat(b || []) : x);
763
780
  return () => {
764
781
  M();
765
782
  };
766
783
  }
767
- }, [b, d, a, g, E, S]), s.useEffect(() => {
768
- if (a && !o && d) {
769
- const h = [], R = ae(), y = ue(G(d).body, R), x = C(), M = y.filter((P) => !x.includes(P));
770
- return M.forEach((P, N) => {
771
- h[N] = P.getAttribute("tabindex"), P.setAttribute("tabindex", "-1");
784
+ }, [b, v, a, g, E, S]), s.useEffect(() => {
785
+ if (a && !o && v) {
786
+ const h = [], R = ae(), y = ue(G(v).body, R), x = C(), M = y.filter((P) => !x.includes(P));
787
+ return M.forEach((P, k) => {
788
+ h[k] = P.getAttribute("tabindex"), P.setAttribute("tabindex", "-1");
772
789
  }), () => {
773
- M.forEach((P, N) => {
774
- const B = h[N];
790
+ M.forEach((P, k) => {
791
+ const B = h[k];
775
792
  B == null ? P.removeAttribute("tabindex") : P.setAttribute("tabindex", B);
776
793
  });
777
794
  };
778
795
  }
779
- }, [d, a, o, C]), q(() => {
780
- if (!d) return;
781
- const h = G(d);
796
+ }, [v, a, o, C]), q(() => {
797
+ if (!v) return;
798
+ const h = G(v);
782
799
  let R = u, y = !1;
783
- const x = Ee(h), M = w.current;
800
+ const x = Re(h), M = w.current;
784
801
  T.current = x;
785
- const P = C(d), N = (typeof i == "number" ? P[i] : i.current) || d;
786
- !O && j(N, {
787
- preventScroll: N === d
802
+ const P = C(v), k = (typeof i == "number" ? P[i] : i.current) || v;
803
+ !O && j(k, {
804
+ preventScroll: k === v
788
805
  });
789
- function B(_) {
790
- if (_.type === "escapeKey" && m.domReference.current && (T.current = m.domReference.current), ["referencePress", "escapeKey"].includes(_.type))
806
+ function B(U) {
807
+ if (U.type === "escapeKey" && m.domReference.current && (T.current = m.domReference.current), ["referencePress", "escapeKey"].includes(U.type))
791
808
  return;
792
- const ce = _.data.returnFocus;
809
+ const ce = U.data.returnFocus;
793
810
  typeof ce == "object" ? (R = !0, y = ce.preventScroll) : R = ce;
794
811
  }
795
812
  return p.on("dismiss", B), () => {
796
- if (p.off("dismiss", B), $(d, Ee(h)) && m.domReference.current && (T.current = m.domReference.current), R && Z(T.current) && !K.current)
813
+ if (p.off("dismiss", B), $(v, Re(h)) && m.domReference.current && (T.current = m.domReference.current), R && Z(T.current) && !V.current)
797
814
  if (!m.domReference.current || D.current)
798
815
  j(T.current, {
799
816
  // When dismissing nested floating elements, by the time the rAF has
@@ -804,43 +821,43 @@ function Jt(e) {
804
821
  preventScroll: y
805
822
  });
806
823
  else {
807
- var _;
808
- M.__syncReturnFocus = !0, (_ = T.current) == null || _.focus({
824
+ var U;
825
+ M.__syncReturnFocus = !0, (U = T.current) == null || U.focus({
809
826
  preventScroll: y
810
827
  }), setTimeout(() => {
811
828
  delete M.__syncReturnFocus;
812
829
  });
813
830
  }
814
831
  };
815
- }, [d, C, i, u, w, m, p, O]), q(() => {
832
+ }, [v, C, i, u, w, m, p, O]), q(() => {
816
833
  if (E)
817
834
  return E.setFocusManagerState({
818
- ...t,
835
+ ...e,
819
836
  modal: a,
820
- closeOnFocusOut: v
837
+ closeOnFocusOut: d
821
838
  // Not concerned about the <RT> generic type.
822
839
  }), () => {
823
840
  E.setFocusManagerState(null);
824
841
  };
825
- }, [E, a, v, t]), q(() => {
826
- if (O || !d) return;
842
+ }, [E, a, d, e]), q(() => {
843
+ if (O || !v) return;
827
844
  function h() {
828
- k(L().length);
845
+ N(L().length);
829
846
  }
830
847
  if (h(), typeof MutationObserver == "function") {
831
848
  const R = new MutationObserver(h);
832
- return R.observe(d, {
849
+ return R.observe(v, {
833
850
  childList: !0,
834
851
  subtree: !0
835
852
  }), () => {
836
853
  R.disconnect();
837
854
  };
838
855
  }
839
- }, [d, L, O, m]);
856
+ }, [v, L, O, m]);
840
857
  const J = o && (A || a) && !S;
841
- function U(h) {
858
+ function _(h) {
842
859
  return f && a ? /* @__PURE__ */ s.createElement(Ht, {
843
- ref: h === "start" ? V : W,
860
+ ref: h === "start" ? K : W,
844
861
  onClick: () => l(!1)
845
862
  }, typeof f == "string" ? f : "Dismiss") : null;
846
863
  }
@@ -851,24 +868,24 @@ function Jt(e) {
851
868
  const y = C();
852
869
  j(r[0] === "reference" ? y[0] : y[y.length - 1]);
853
870
  } else if (E != null && E.preserveTabOrder && E.portalNode)
854
- if (K.current = !1, Y(h, E.portalNode)) {
855
- const y = Ge() || b;
871
+ if (V.current = !1, Y(h, E.portalNode)) {
872
+ const y = Xe() || b;
856
873
  y == null || y.focus();
857
874
  } else {
858
875
  var R;
859
876
  (R = E.beforeOutsideRef.current) == null || R.focus();
860
877
  }
861
878
  }
862
- }), S ? null : U("start"), /* @__PURE__ */ s.cloneElement(n, F === 0 || r.includes("floating") ? {
879
+ }), S ? null : _("start"), /* @__PURE__ */ s.cloneElement(n, F === 0 || r.includes("floating") ? {
863
880
  tabIndex: 0
864
- } : {}), U("end"), J && /* @__PURE__ */ s.createElement(le, {
881
+ } : {}), _("end"), J && /* @__PURE__ */ s.createElement(le, {
865
882
  ref: E == null ? void 0 : E.afterInsideRef,
866
883
  onFocus: (h) => {
867
884
  if (a)
868
885
  j(C()[0]);
869
886
  else if (E != null && E.preserveTabOrder && E.portalNode)
870
- if (K.current = !0, Y(h, E.portalNode)) {
871
- const y = Ye() || b;
887
+ if (V.current = !0, Y(h, E.portalNode)) {
888
+ const y = Ze() || b;
872
889
  y == null || y.focus();
873
890
  } else {
874
891
  var R;
@@ -877,25 +894,25 @@ function Jt(e) {
877
894
  }
878
895
  }));
879
896
  }
880
- function ke(e) {
881
- return Z(e.target) && e.target.tagName === "BUTTON";
897
+ function Le(t) {
898
+ return Z(t.target) && t.target.tagName === "BUTTON";
882
899
  }
883
- function Le(e) {
884
- return _e(e);
900
+ function Be(t) {
901
+ return Ge(t);
885
902
  }
886
- const Qt = function(e, t) {
903
+ const Qt = function(t, e) {
887
904
  let {
888
905
  open: n,
889
906
  onOpenChange: r,
890
907
  dataRef: o,
891
908
  refs: i
892
- } = e, {
909
+ } = t, {
893
910
  enabled: u = !0,
894
911
  event: a = "click",
895
912
  toggle: f = !0,
896
- ignoreMouse: v = !1,
913
+ ignoreMouse: d = !1,
897
914
  keyboardHandlers: m = !0
898
- } = t === void 0 ? {} : t;
915
+ } = e === void 0 ? {} : e;
899
916
  const c = s.useRef();
900
917
  return s.useMemo(() => u ? {
901
918
  reference: {
@@ -903,7 +920,7 @@ const Qt = function(e, t) {
903
920
  c.current = l.pointerType;
904
921
  },
905
922
  onMouseDown(l) {
906
- l.button === 0 && (De(c.current) && v || a !== "click" && (n ? f && (!o.current.openEvent || o.current.openEvent.type === "mousedown") && r(!1) : (l.preventDefault(), r(!0)), o.current.openEvent = l.nativeEvent));
923
+ l.button === 0 && (Me(c.current) && d || a !== "click" && (n ? f && (!o.current.openEvent || o.current.openEvent.type === "mousedown") && r(!1) : (l.preventDefault(), r(!0)), o.current.openEvent = l.nativeEvent));
907
924
  },
908
925
  onClick(l) {
909
926
  if (!o.current.__syncReturnFocus) {
@@ -911,41 +928,41 @@ const Qt = function(e, t) {
911
928
  c.current = void 0;
912
929
  return;
913
930
  }
914
- De(c.current) && v || (n ? f && (!o.current.openEvent || o.current.openEvent.type === "click") && r(!1) : r(!0), o.current.openEvent = l.nativeEvent);
931
+ Me(c.current) && d || (n ? f && (!o.current.openEvent || o.current.openEvent.type === "click") && r(!1) : r(!0), o.current.openEvent = l.nativeEvent);
915
932
  }
916
933
  },
917
934
  onKeyDown(l) {
918
- c.current = void 0, m && (ke(l) || (l.key === " " && !Le(i.domReference.current) && l.preventDefault(), l.key === "Enter" && (n ? f && r(!1) : r(!0))));
935
+ c.current = void 0, m && (Le(l) || (l.key === " " && !Be(i.domReference.current) && l.preventDefault(), l.key === "Enter" && (n ? f && r(!1) : r(!0))));
919
936
  },
920
937
  onKeyUp(l) {
921
- m && (ke(l) || Le(i.domReference.current) || l.key === " " && (n ? f && r(!1) : r(!0)));
938
+ m && (Le(l) || Be(i.domReference.current) || l.key === " " && (n ? f && r(!1) : r(!0)));
922
939
  }
923
940
  }
924
- } : {}, [u, o, a, v, m, i, f, n, r]);
941
+ } : {}, [u, o, a, d, m, i, f, n, r]);
925
942
  };
926
- function be(e, t) {
927
- if (t == null)
943
+ function be(t, e) {
944
+ if (e == null)
928
945
  return !1;
929
- if ("composedPath" in e)
930
- return e.composedPath().includes(t);
931
- const n = e;
932
- return n.target != null && t.contains(n.target);
946
+ if ("composedPath" in t)
947
+ return t.composedPath().includes(e);
948
+ const n = t;
949
+ return n.target != null && e.contains(n.target);
933
950
  }
934
- const Ut = {
951
+ const _t = {
935
952
  pointerdown: "onPointerDown",
936
953
  mousedown: "onMouseDown",
937
954
  click: "onClick"
938
- }, _t = {
955
+ }, Ut = {
939
956
  pointerdown: "onPointerDownCapture",
940
957
  mousedown: "onMouseDownCapture",
941
958
  click: "onClickCapture"
942
- }, zt = function(e) {
943
- var t, n;
944
- return e === void 0 && (e = !0), {
945
- escapeKeyBubbles: typeof e == "boolean" ? e : (t = e.escapeKey) != null ? t : !0,
946
- outsidePressBubbles: typeof e == "boolean" ? e : (n = e.outsidePress) != null ? n : !0
959
+ }, zt = function(t) {
960
+ var e, n;
961
+ return t === void 0 && (t = !0), {
962
+ escapeKeyBubbles: typeof t == "boolean" ? t : (e = t.escapeKey) != null ? e : !0,
963
+ outsidePressBubbles: typeof t == "boolean" ? t : (n = t.outsidePress) != null ? n : !0
947
964
  };
948
- }, en = function(e, t) {
965
+ }, en = function(t, e) {
949
966
  let {
950
967
  open: n,
951
968
  onOpenChange: r,
@@ -956,22 +973,22 @@ const Ut = {
956
973
  domReference: a,
957
974
  floating: f
958
975
  }
959
- } = e, {
960
- enabled: v = !0,
976
+ } = t, {
977
+ enabled: d = !0,
961
978
  escapeKey: m = !0,
962
979
  outsidePress: c = !0,
963
980
  outsidePressEvent: l = "pointerdown",
964
981
  referencePress: p = !1,
965
982
  referencePressEvent: w = "pointerdown",
966
983
  ancestorScroll: b = !1,
967
- bubbles: d = !0
984
+ bubbles: v = !0
968
985
  } = {};
969
- const g = we(), I = Pt() != null, E = xe(typeof c == "function" ? c : () => !1), F = typeof c == "function" ? E : c, k = s.useRef(!1), {
986
+ const g = Se(), I = Pt() != null, E = Te(typeof c == "function" ? c : () => !1), F = typeof c == "function" ? E : c, N = s.useRef(!1), {
970
987
  escapeKeyBubbles: O,
971
- outsidePressBubbles: V
972
- } = zt(d);
988
+ outsidePressBubbles: K
989
+ } = zt(v);
973
990
  return s.useEffect(() => {
974
- if (!n || !v)
991
+ if (!n || !d)
975
992
  return;
976
993
  function W(S) {
977
994
  if (S.key === "Escape") {
@@ -987,22 +1004,22 @@ const Ut = {
987
1004
  }), r(!1);
988
1005
  }
989
1006
  }
990
- function K(S) {
991
- const L = k.current;
992
- if (k.current = !1, L || typeof F == "function" && !F(S))
1007
+ function V(S) {
1008
+ const L = N.current;
1009
+ if (N.current = !1, L || typeof F == "function" && !F(S))
993
1010
  return;
994
- const C = Ue(S);
1011
+ const C = ze(S);
995
1012
  if (Z(C) && f) {
996
- const U = f.ownerDocument.defaultView || window, h = C.scrollWidth > C.clientWidth, R = C.scrollHeight > C.clientHeight;
1013
+ const _ = f.ownerDocument.defaultView || window, h = C.scrollWidth > C.clientWidth, R = C.scrollHeight > C.clientHeight;
997
1014
  let y = R && S.offsetX > C.clientWidth;
998
- if (R && U.getComputedStyle(C).direction === "rtl" && (y = S.offsetX <= C.offsetWidth - C.clientWidth), y || h && S.offsetY > C.clientHeight)
1015
+ if (R && _.getComputedStyle(C).direction === "rtl" && (y = S.offsetX <= C.offsetWidth - C.clientWidth), y || h && S.offsetY > C.clientHeight)
999
1016
  return;
1000
1017
  }
1001
- const J = g && ne(g.nodesRef.current, i).some((U) => {
1018
+ const J = g && ne(g.nodesRef.current, i).some((_) => {
1002
1019
  var h;
1003
- return be(S, (h = U.context) == null ? void 0 : h.elements.floating);
1020
+ return be(S, (h = _.context) == null ? void 0 : h.elements.floating);
1004
1021
  });
1005
- be(S, f) || be(S, a) || J || !V && g && ne(g.nodesRef.current, i).length > 0 || (o.emit("dismiss", {
1022
+ be(S, f) || be(S, a) || J || !K && g && ne(g.nodesRef.current, i).length > 0 || (o.emit("dismiss", {
1006
1023
  type: "outsidePress",
1007
1024
  data: {
1008
1025
  returnFocus: I ? {
@@ -1015,7 +1032,7 @@ const Ut = {
1015
1032
  r(!1);
1016
1033
  }
1017
1034
  const D = G(f);
1018
- m && D.addEventListener("keydown", W), F && D.addEventListener(l, K);
1035
+ m && D.addEventListener("keydown", W), F && D.addEventListener(l, V);
1019
1036
  let A = [];
1020
1037
  return b && (H(a) && (A = fe(a)), H(f) && (A = A.concat(fe(f))), !H(u) && u && u.contextElement && (A = A.concat(fe(u.contextElement)))), A = A.filter((S) => {
1021
1038
  var L;
@@ -1025,15 +1042,15 @@ const Ut = {
1025
1042
  passive: !0
1026
1043
  });
1027
1044
  }), () => {
1028
- m && D.removeEventListener("keydown", W), F && D.removeEventListener(l, K), A.forEach((S) => {
1045
+ m && D.removeEventListener("keydown", W), F && D.removeEventListener(l, V), A.forEach((S) => {
1029
1046
  S.removeEventListener("scroll", T);
1030
1047
  });
1031
1048
  };
1032
- }, [f, a, u, m, F, l, o, g, i, n, r, b, v, O, V, I]), s.useEffect(() => {
1033
- k.current = !1;
1034
- }, [F, l]), s.useMemo(() => v ? {
1049
+ }, [f, a, u, m, F, l, o, g, i, n, r, b, d, O, K, I]), s.useEffect(() => {
1050
+ N.current = !1;
1051
+ }, [F, l]), s.useMemo(() => d ? {
1035
1052
  reference: {
1036
- [Ut[w]]: () => {
1053
+ [_t[w]]: () => {
1037
1054
  p && (o.emit("dismiss", {
1038
1055
  type: "referencePress",
1039
1056
  data: {
@@ -1043,27 +1060,27 @@ const Ut = {
1043
1060
  }
1044
1061
  },
1045
1062
  floating: {
1046
- [_t[l]]: () => {
1047
- k.current = !0;
1063
+ [Ut[l]]: () => {
1064
+ N.current = !0;
1048
1065
  }
1049
1066
  }
1050
- } : {}, [v, o, p, l, w, r]);
1067
+ } : {}, [d, o, p, l, w, r]);
1051
1068
  };
1052
- function tn(e) {
1053
- return s.useMemo(() => e.every((t) => t == null) ? null : (t) => {
1054
- e.forEach((n) => {
1055
- typeof n == "function" ? n(t) : n != null && (n.current = t);
1069
+ function tn(t) {
1070
+ return s.useMemo(() => t.every((e) => e == null) ? null : (e) => {
1071
+ t.forEach((n) => {
1072
+ typeof n == "function" ? n(e) : n != null && (n.current = e);
1056
1073
  });
1057
- }, e);
1074
+ }, t);
1058
1075
  }
1059
- const nn = function(e, t) {
1076
+ const nn = function(t, e) {
1060
1077
  let {
1061
1078
  open: n
1062
- } = e, {
1079
+ } = t, {
1063
1080
  enabled: r = !0,
1064
1081
  role: o = "dialog"
1065
1082
  } = {};
1066
- const i = ye(), u = ye();
1083
+ const i = Ee(), u = Ee();
1067
1084
  return s.useMemo(() => {
1068
1085
  const a = {
1069
1086
  id: i,
@@ -1095,13 +1112,13 @@ const nn = function(e, t) {
1095
1112
  } : {};
1096
1113
  }, [r, o, n, i, u]);
1097
1114
  };
1098
- function rn(e) {
1099
- e === void 0 && (e = {});
1115
+ function rn(t) {
1116
+ t === void 0 && (t = {});
1100
1117
  const {
1101
- open: t = !1,
1118
+ open: e = !1,
1102
1119
  onOpenChange: n,
1103
1120
  nodeId: r
1104
- } = e, o = et(e), i = we(), u = s.useRef(null), a = s.useRef({}), f = s.useState(() => Ct())[0], [v, m] = s.useState(null), c = s.useCallback((g) => {
1121
+ } = t, o = nt(t), i = Se(), u = s.useRef(null), a = s.useRef({}), f = s.useState(() => Ct())[0], [d, m] = s.useState(null), c = s.useCallback((g) => {
1105
1122
  const I = H(g) ? {
1106
1123
  getBoundingClientRect: () => g.getBoundingClientRect(),
1107
1124
  contextElement: g
@@ -1119,41 +1136,41 @@ function rn(e) {
1119
1136
  domReference: u
1120
1137
  }), [o.refs, l, c]), w = s.useMemo(() => ({
1121
1138
  ...o.elements,
1122
- domReference: v
1123
- }), [o.elements, v]), b = xe(n), d = s.useMemo(() => ({
1139
+ domReference: d
1140
+ }), [o.elements, d]), b = Te(n), v = s.useMemo(() => ({
1124
1141
  ...o,
1125
1142
  refs: p,
1126
1143
  elements: w,
1127
1144
  dataRef: a,
1128
1145
  nodeId: r,
1129
1146
  events: f,
1130
- open: t,
1147
+ open: e,
1131
1148
  onOpenChange: b
1132
- }), [o, r, f, t, b, p, w]);
1149
+ }), [o, r, f, e, b, p, w]);
1133
1150
  return q(() => {
1134
1151
  const g = i == null ? void 0 : i.nodesRef.current.find((I) => I.id === r);
1135
- g && (g.context = d);
1152
+ g && (g.context = v);
1136
1153
  }), s.useMemo(() => ({
1137
1154
  ...o,
1138
- context: d,
1155
+ context: v,
1139
1156
  refs: p,
1140
1157
  reference: l,
1141
1158
  positionReference: c
1142
- }), [o, p, d, l, c]);
1159
+ }), [o, p, v, l, c]);
1143
1160
  }
1144
- function me(e, t, n) {
1161
+ function me(t, e, n) {
1145
1162
  const r = /* @__PURE__ */ new Map();
1146
1163
  return {
1147
1164
  ...n === "floating" && {
1148
1165
  tabIndex: -1
1149
1166
  },
1150
- ...e,
1151
- ...t.map((o) => o ? o[n] : null).concat(e).reduce((o, i) => (i && Object.entries(i).forEach((u) => {
1167
+ ...t,
1168
+ ...e.map((o) => o ? o[n] : null).concat(t).reduce((o, i) => (i && Object.entries(i).forEach((u) => {
1152
1169
  let [a, f] = u;
1153
1170
  if (a.indexOf("on") === 0) {
1154
1171
  if (r.has(a) || r.set(a, []), typeof f == "function") {
1155
- var v;
1156
- (v = r.get(a)) == null || v.push(f), o[a] = function() {
1172
+ var d;
1173
+ (d = r.get(a)) == null || d.push(f), o[a] = function() {
1157
1174
  for (var m, c = arguments.length, l = new Array(c), p = 0; p < c; p++)
1158
1175
  l[p] = arguments[p];
1159
1176
  (m = r.get(a)) == null || m.forEach((w) => w(...l));
@@ -1164,20 +1181,20 @@ function me(e, t, n) {
1164
1181
  }), o), {})
1165
1182
  };
1166
1183
  }
1167
- const on = function(e) {
1168
- e === void 0 && (e = []);
1169
- const t = e, n = s.useCallback(
1170
- (i) => me(i, e, "reference"),
1184
+ const on = function(t) {
1185
+ t === void 0 && (t = []);
1186
+ const e = t, n = s.useCallback(
1187
+ (i) => me(i, t, "reference"),
1171
1188
  // eslint-disable-next-line react-hooks/exhaustive-deps
1172
- t
1189
+ e
1173
1190
  ), r = s.useCallback(
1174
- (i) => me(i, e, "floating"),
1191
+ (i) => me(i, t, "floating"),
1175
1192
  // eslint-disable-next-line react-hooks/exhaustive-deps
1176
- t
1193
+ e
1177
1194
  ), o = s.useCallback(
1178
- (i) => me(i, e, "item"),
1195
+ (i) => me(i, t, "item"),
1179
1196
  // eslint-disable-next-line react-hooks/exhaustive-deps
1180
- t
1197
+ e
1181
1198
  );
1182
1199
  return s.useMemo(() => ({
1183
1200
  getReferenceProps: n,
@@ -1194,5 +1211,5 @@ export {
1194
1211
  en as e,
1195
1212
  nn as f,
1196
1213
  on as g,
1197
- ye as u
1214
+ Ee as u
1198
1215
  };