@rpcbase/ui 0.229.0 → 0.230.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (708) hide show
  1. package/dist/index100.js +52 -12
  2. package/dist/index100.js.map +1 -1
  3. package/dist/index101.js +4 -68
  4. package/dist/index101.js.map +1 -1
  5. package/dist/index102.js +5 -38
  6. package/dist/index102.js.map +1 -1
  7. package/dist/index103.js +16 -14
  8. package/dist/index103.js.map +1 -1
  9. package/dist/index104.js +5 -23
  10. package/dist/index104.js.map +1 -1
  11. package/dist/index105.js +7 -110
  12. package/dist/index105.js.map +1 -1
  13. package/dist/index106.js +17 -13
  14. package/dist/index106.js.map +1 -1
  15. package/dist/index107.js +4 -4
  16. package/dist/index107.js.map +1 -1
  17. package/dist/index108.js +5 -4
  18. package/dist/index108.js.map +1 -1
  19. package/dist/index109.js +6 -5
  20. package/dist/index109.js.map +1 -1
  21. package/dist/index110.js +5 -11
  22. package/dist/index110.js.map +1 -1
  23. package/dist/index111.js +4 -19
  24. package/dist/index111.js.map +1 -1
  25. package/dist/index112.js +5 -13
  26. package/dist/index112.js.map +1 -1
  27. package/dist/index113.js +6 -261
  28. package/dist/index113.js.map +1 -1
  29. package/dist/index114.js +24 -4
  30. package/dist/index114.js.map +1 -1
  31. package/dist/index115.js +7 -28
  32. package/dist/index115.js.map +1 -1
  33. package/dist/index116.js +4 -126
  34. package/dist/index116.js.map +1 -1
  35. package/dist/index117.js +6 -5
  36. package/dist/index117.js.map +1 -1
  37. package/dist/index118.js +5 -78
  38. package/dist/index118.js.map +1 -1
  39. package/dist/index119.js +4 -66
  40. package/dist/index119.js.map +1 -1
  41. package/dist/index120.js +5 -8
  42. package/dist/index120.js.map +1 -1
  43. package/dist/index121.js +5 -16
  44. package/dist/index121.js.map +1 -1
  45. package/dist/index122.js +8 -92
  46. package/dist/index122.js.map +1 -1
  47. package/dist/index123.js +5 -65
  48. package/dist/index123.js.map +1 -1
  49. package/dist/index124.js +4 -45
  50. package/dist/index124.js.map +1 -1
  51. package/dist/index125.js +5 -52
  52. package/dist/index125.js.map +1 -1
  53. package/dist/index126.js +6 -4
  54. package/dist/index126.js.map +1 -1
  55. package/dist/index127.js +145 -4
  56. package/dist/index127.js.map +1 -1
  57. package/dist/index128.js +39 -15
  58. package/dist/index128.js.map +1 -1
  59. package/dist/index129.js +4 -5
  60. package/dist/index129.js.map +1 -1
  61. package/dist/index130.js +7 -7
  62. package/dist/index130.js.map +1 -1
  63. package/dist/index131.js +13 -16
  64. package/dist/index131.js.map +1 -1
  65. package/dist/index132.js +13 -4
  66. package/dist/index132.js.map +1 -1
  67. package/dist/index133.js +7 -4
  68. package/dist/index133.js.map +1 -1
  69. package/dist/index134.js +31 -5
  70. package/dist/index134.js.map +1 -1
  71. package/dist/index135.js +10 -5
  72. package/dist/index135.js.map +1 -1
  73. package/dist/index136.js +10 -4
  74. package/dist/index136.js.map +1 -1
  75. package/dist/index137.js +8 -4
  76. package/dist/index137.js.map +1 -1
  77. package/dist/index138.js +13 -6
  78. package/dist/index138.js.map +1 -1
  79. package/dist/index139.js +101 -24
  80. package/dist/index139.js.map +1 -1
  81. package/dist/index140.js +20 -7
  82. package/dist/index140.js.map +1 -1
  83. package/dist/index141.js +53 -4
  84. package/dist/index141.js.map +1 -1
  85. package/dist/index142.js +72 -6
  86. package/dist/index142.js.map +1 -1
  87. package/dist/index143.js +9 -5
  88. package/dist/index143.js.map +1 -1
  89. package/dist/index144.js +20 -4
  90. package/dist/index144.js.map +1 -1
  91. package/dist/index145.js +16 -5
  92. package/dist/index145.js.map +1 -1
  93. package/dist/index146.js +23 -4
  94. package/dist/index146.js.map +1 -1
  95. package/dist/index147.js +6 -8
  96. package/dist/index147.js.map +1 -1
  97. package/dist/index148.js +5 -5
  98. package/dist/index148.js.map +1 -1
  99. package/dist/index149.js +23 -4
  100. package/dist/index149.js.map +1 -1
  101. package/dist/index150.js +35 -5
  102. package/dist/index150.js.map +1 -1
  103. package/dist/index151.js +16 -7
  104. package/dist/index151.js.map +1 -1
  105. package/dist/index152.js +6 -145
  106. package/dist/index152.js.map +1 -1
  107. package/dist/index153.js +4 -39
  108. package/dist/index153.js.map +1 -1
  109. package/dist/index154.js +4 -4
  110. package/dist/index154.js.map +1 -1
  111. package/dist/index155.js +4 -7
  112. package/dist/index155.js.map +1 -1
  113. package/dist/index156.js +4 -13
  114. package/dist/index156.js.map +1 -1
  115. package/dist/index157.js +3 -13
  116. package/dist/index157.js.map +1 -1
  117. package/dist/index158.js +6 -7
  118. package/dist/index158.js.map +1 -1
  119. package/dist/index159.js +24 -32
  120. package/dist/index159.js.map +1 -1
  121. package/dist/index160.js +7 -10
  122. package/dist/index160.js.map +1 -1
  123. package/dist/index161.js +6 -10
  124. package/dist/index161.js.map +1 -1
  125. package/dist/index162.js +5 -8
  126. package/dist/index162.js.map +1 -1
  127. package/dist/index163.js +3 -13
  128. package/dist/index163.js.map +1 -1
  129. package/dist/index164.js +3 -101
  130. package/dist/index164.js.map +1 -1
  131. package/dist/index165.js +5 -20
  132. package/dist/index165.js.map +1 -1
  133. package/dist/index166.js +3 -53
  134. package/dist/index166.js.map +1 -1
  135. package/dist/index167.js +4 -72
  136. package/dist/index167.js.map +1 -1
  137. package/dist/index168.js +3 -9
  138. package/dist/index168.js.map +1 -1
  139. package/dist/index169.js +3 -20
  140. package/dist/index169.js.map +1 -1
  141. package/dist/index170.js +3 -16
  142. package/dist/index170.js.map +1 -1
  143. package/dist/index171.js +12 -22
  144. package/dist/index171.js.map +1 -1
  145. package/dist/index172.js +154 -6
  146. package/dist/index172.js.map +1 -1
  147. package/dist/index173.js +30 -5
  148. package/dist/index173.js.map +1 -1
  149. package/dist/index174.js +9 -23
  150. package/dist/index174.js.map +1 -1
  151. package/dist/index175.js +47 -33
  152. package/dist/index175.js.map +1 -1
  153. package/dist/index176.js +12 -16
  154. package/dist/index176.js.map +1 -1
  155. package/dist/index177.js +44 -6
  156. package/dist/index177.js.map +1 -1
  157. package/dist/index178.js +95 -4
  158. package/dist/index178.js.map +1 -1
  159. package/dist/index179.js +86 -4
  160. package/dist/index179.js.map +1 -1
  161. package/dist/index180.js +105 -4
  162. package/dist/index180.js.map +1 -1
  163. package/dist/index181.js +52 -4
  164. package/dist/index181.js.map +1 -1
  165. package/dist/index182.js +11 -3
  166. package/dist/index182.js.map +1 -1
  167. package/dist/index183.js +37 -6
  168. package/dist/index183.js.map +1 -1
  169. package/dist/index184.js +9 -24
  170. package/dist/index184.js.map +1 -1
  171. package/dist/index185.js +116 -7
  172. package/dist/index185.js.map +1 -1
  173. package/dist/index186.js +17 -6
  174. package/dist/index186.js.map +1 -1
  175. package/dist/index187.js +15 -5
  176. package/dist/index187.js.map +1 -1
  177. package/dist/index188.js +3 -3
  178. package/dist/index188.js.map +1 -1
  179. package/dist/index189.js +36 -3
  180. package/dist/index189.js.map +1 -1
  181. package/dist/index190.js +20 -4
  182. package/dist/index190.js.map +1 -1
  183. package/dist/index191.js +9 -3
  184. package/dist/index191.js.map +1 -1
  185. package/dist/index192.js +8 -4
  186. package/dist/index192.js.map +1 -1
  187. package/dist/index193.js +19 -3
  188. package/dist/index193.js.map +1 -1
  189. package/dist/index194.js +28 -3
  190. package/dist/index194.js.map +1 -1
  191. package/dist/index195.js +16 -3
  192. package/dist/index195.js.map +1 -1
  193. package/dist/index196.js +58 -13
  194. package/dist/index196.js.map +1 -1
  195. package/dist/index197.js +8 -154
  196. package/dist/index197.js.map +1 -1
  197. package/dist/index198.js +64 -28
  198. package/dist/index198.js.map +1 -1
  199. package/dist/index199.js +19 -9
  200. package/dist/index199.js.map +1 -1
  201. package/dist/index200.js +14 -46
  202. package/dist/index200.js.map +1 -1
  203. package/dist/index201.js +5 -11
  204. package/dist/index201.js.map +1 -1
  205. package/dist/index202.js +4 -43
  206. package/dist/index202.js.map +1 -1
  207. package/dist/index203.js +6 -95
  208. package/dist/index203.js.map +1 -1
  209. package/dist/index204.js +4 -86
  210. package/dist/index204.js.map +1 -1
  211. package/dist/index205.js +6 -105
  212. package/dist/index205.js.map +1 -1
  213. package/dist/index206.js +16 -52
  214. package/dist/index206.js.map +1 -1
  215. package/dist/index207.js +4 -11
  216. package/dist/index207.js.map +1 -1
  217. package/dist/index208.js +4 -37
  218. package/dist/index208.js.map +1 -1
  219. package/dist/index209.js +12 -8
  220. package/dist/index209.js.map +1 -1
  221. package/dist/index210.js +9 -3
  222. package/dist/index210.js.map +1 -1
  223. package/dist/index211.js +13 -9
  224. package/dist/index211.js.map +1 -1
  225. package/dist/index212.js +13 -116
  226. package/dist/index212.js.map +1 -1
  227. package/dist/index213.js +4 -17
  228. package/dist/index213.js.map +1 -1
  229. package/dist/index214.js +5 -15
  230. package/dist/index214.js.map +1 -1
  231. package/dist/index215.js +6 -36
  232. package/dist/index215.js.map +1 -1
  233. package/dist/index216.js +5 -20
  234. package/dist/index216.js.map +1 -1
  235. package/dist/index217.js +54 -8
  236. package/dist/index217.js.map +1 -1
  237. package/dist/index218.js +8 -19
  238. package/dist/index218.js.map +1 -1
  239. package/dist/index219.js +4 -28
  240. package/dist/index219.js.map +1 -1
  241. package/dist/index220.js +4 -16
  242. package/dist/index220.js.map +1 -1
  243. package/dist/index221.js +9 -20
  244. package/dist/index221.js.map +1 -1
  245. package/dist/index222.js +4 -66
  246. package/dist/index222.js.map +1 -1
  247. package/dist/index223.js +4 -6
  248. package/dist/index223.js.map +1 -1
  249. package/dist/index224.js +3 -11
  250. package/dist/index224.js.map +1 -1
  251. package/dist/index225.js +10 -50
  252. package/dist/index225.js.map +1 -1
  253. package/dist/index226.js +10 -4
  254. package/dist/index226.js.map +1 -1
  255. package/dist/index227.js +9 -29
  256. package/dist/index227.js.map +1 -1
  257. package/dist/index228.js +10 -16
  258. package/dist/index228.js.map +1 -1
  259. package/dist/index229.js +10 -5
  260. package/dist/index229.js.map +1 -1
  261. package/dist/index230.js +9 -21
  262. package/dist/index230.js.map +1 -1
  263. package/dist/index231.js +6 -51
  264. package/dist/index231.js.map +1 -1
  265. package/dist/index232.js +5 -25
  266. package/dist/index232.js.map +1 -1
  267. package/dist/index233.js +4 -41
  268. package/dist/index233.js.map +1 -1
  269. package/dist/index234.js +5 -39
  270. package/dist/index234.js.map +1 -1
  271. package/dist/index235.js +7 -45
  272. package/dist/index235.js.map +1 -1
  273. package/dist/index236.js +5 -20
  274. package/dist/index236.js.map +1 -1
  275. package/dist/index237.js +13 -67
  276. package/dist/index237.js.map +1 -1
  277. package/dist/index238.js +7 -17
  278. package/dist/index238.js.map +1 -1
  279. package/dist/index239.js +10 -11
  280. package/dist/index239.js.map +1 -1
  281. package/dist/index240.js +10 -27
  282. package/dist/index240.js.map +1 -1
  283. package/dist/index241.js +21 -13
  284. package/dist/index241.js.map +1 -1
  285. package/dist/index242.js +10 -18
  286. package/dist/index242.js.map +1 -1
  287. package/dist/index243.js +9 -36
  288. package/dist/index243.js.map +1 -1
  289. package/dist/index244.js +9 -262
  290. package/dist/index244.js.map +1 -1
  291. package/dist/index245.js +4 -278
  292. package/dist/index245.js.map +1 -1
  293. package/dist/index246.js +5 -68
  294. package/dist/index246.js.map +1 -1
  295. package/dist/index247.js +15 -98
  296. package/dist/index247.js.map +1 -1
  297. package/dist/index248.js +9 -83
  298. package/dist/index248.js.map +1 -1
  299. package/dist/index249.js +18 -3
  300. package/dist/index249.js.map +1 -1
  301. package/dist/index250.js +14 -28
  302. package/dist/index250.js.map +1 -1
  303. package/dist/index251.js +12 -16
  304. package/dist/index251.js.map +1 -1
  305. package/dist/index252.js +29 -34
  306. package/dist/index252.js.map +1 -1
  307. package/dist/index253.js +12 -16
  308. package/dist/index253.js.map +1 -1
  309. package/dist/index254.js +25 -3
  310. package/dist/index254.js.map +1 -1
  311. package/dist/index255.js +5 -26
  312. package/dist/index255.js.map +1 -1
  313. package/dist/index256.js +20 -29
  314. package/dist/index256.js.map +1 -1
  315. package/dist/index257.js +67 -4
  316. package/dist/index257.js.map +1 -1
  317. package/dist/index258.js +6 -78
  318. package/dist/index258.js.map +1 -1
  319. package/dist/index259.js +5 -269
  320. package/dist/index259.js.map +1 -1
  321. package/dist/index260.js +11 -11
  322. package/dist/index260.js.map +1 -1
  323. package/dist/index261.js +50 -10
  324. package/dist/index261.js.map +1 -1
  325. package/dist/index262.js +4 -26
  326. package/dist/index262.js.map +1 -1
  327. package/dist/index263.js +28 -15
  328. package/dist/index263.js.map +1 -1
  329. package/dist/index264.js +15 -124
  330. package/dist/index264.js.map +1 -1
  331. package/dist/index265.js +5 -5
  332. package/dist/index265.js.map +1 -1
  333. package/dist/index266.js +19 -38
  334. package/dist/index266.js.map +1 -1
  335. package/dist/index267.js +50 -64
  336. package/dist/index267.js.map +1 -1
  337. package/dist/index268.js +26 -14
  338. package/dist/index268.js.map +1 -1
  339. package/dist/index269.js +41 -7
  340. package/dist/index269.js.map +1 -1
  341. package/dist/index270.js +39 -5
  342. package/dist/index270.js.map +1 -1
  343. package/dist/index271.js +45 -4
  344. package/dist/index271.js.map +1 -1
  345. package/dist/index272.js +23 -10
  346. package/dist/index272.js.map +1 -1
  347. package/dist/index273.js +19 -7
  348. package/dist/index273.js.map +1 -1
  349. package/dist/index274.js +19 -132
  350. package/dist/index274.js.map +1 -1
  351. package/dist/index275.js +61 -390
  352. package/dist/index275.js.map +1 -1
  353. package/dist/index276.js +17 -52
  354. package/dist/index276.js.map +1 -1
  355. package/dist/index277.js +11 -11
  356. package/dist/index277.js.map +1 -1
  357. package/dist/index278.js +27 -11
  358. package/dist/index278.js.map +1 -1
  359. package/dist/index279.js +13 -8
  360. package/dist/index279.js.map +1 -1
  361. package/dist/index280.js +18 -11
  362. package/dist/index280.js.map +1 -1
  363. package/dist/index281.js +34 -6
  364. package/dist/index281.js.map +1 -1
  365. package/dist/index282.js +64 -12
  366. package/dist/index282.js.map +1 -1
  367. package/dist/index283.js +262 -3
  368. package/dist/index283.js.map +1 -1
  369. package/dist/index284.js +278 -3
  370. package/dist/index284.js.map +1 -1
  371. package/dist/index285.js +68 -17
  372. package/dist/index285.js.map +1 -1
  373. package/dist/index286.js +45 -51
  374. package/dist/index286.js.map +1 -1
  375. package/dist/index287.js +99 -5
  376. package/dist/index287.js.map +1 -1
  377. package/dist/index288.js +76 -115
  378. package/dist/index288.js.map +1 -1
  379. package/dist/index289.js +13 -33
  380. package/dist/index289.js.map +1 -1
  381. package/dist/index290.js +3 -73
  382. package/dist/index290.js.map +1 -1
  383. package/dist/index291.js +24 -137
  384. package/dist/index291.js.map +1 -1
  385. package/dist/index292.js +16 -61
  386. package/dist/index292.js.map +1 -1
  387. package/dist/index293.js +37 -49
  388. package/dist/index293.js.map +1 -1
  389. package/dist/index294.js +34 -14
  390. package/dist/index294.js.map +1 -1
  391. package/dist/index295.js +67 -7
  392. package/dist/index295.js.map +1 -1
  393. package/dist/index296.js +17 -5
  394. package/dist/index296.js.map +1 -1
  395. package/dist/index297.js +3 -11
  396. package/dist/index297.js.map +1 -1
  397. package/dist/index298.js +106 -17
  398. package/dist/index298.js.map +1 -1
  399. package/dist/index299.js +26 -58
  400. package/dist/index299.js.map +1 -1
  401. package/dist/index300.js +28 -8
  402. package/dist/index300.js.map +1 -1
  403. package/dist/index301.js +4 -67
  404. package/dist/index301.js.map +1 -1
  405. package/dist/index302.js +126 -19
  406. package/dist/index302.js.map +1 -1
  407. package/dist/index303.js +4 -16
  408. package/dist/index303.js.map +1 -1
  409. package/dist/index304.js +78 -5
  410. package/dist/index304.js.map +1 -1
  411. package/dist/index305.js +269 -5
  412. package/dist/index305.js.map +1 -1
  413. package/dist/index306.js +11 -6
  414. package/dist/index306.js.map +1 -1
  415. package/dist/index307.js +28 -5
  416. package/dist/index307.js.map +1 -1
  417. package/dist/index308.js +16 -7
  418. package/dist/index308.js.map +1 -1
  419. package/dist/index309.js +10 -16
  420. package/dist/index309.js.map +1 -1
  421. package/dist/index31.js +24 -24
  422. package/dist/index310.js +25 -4
  423. package/dist/index310.js.map +1 -1
  424. package/dist/index311.js +16 -4
  425. package/dist/index311.js.map +1 -1
  426. package/dist/index312.js +125 -12
  427. package/dist/index312.js.map +1 -1
  428. package/dist/index313.js +5 -9
  429. package/dist/index313.js.map +1 -1
  430. package/dist/index314.js +40 -13
  431. package/dist/index314.js.map +1 -1
  432. package/dist/index315.js +65 -13
  433. package/dist/index315.js.map +1 -1
  434. package/dist/index316.js +14 -5
  435. package/dist/index316.js.map +1 -1
  436. package/dist/index317.js +14 -6
  437. package/dist/index317.js.map +1 -1
  438. package/dist/index318.js +7 -6
  439. package/dist/index318.js.map +1 -1
  440. package/dist/index319.js +13 -6
  441. package/dist/index319.js.map +1 -1
  442. package/dist/index32.js +3 -3
  443. package/dist/index320.js +5 -54
  444. package/dist/index320.js.map +1 -1
  445. package/dist/index321.js +3 -8
  446. package/dist/index321.js.map +1 -1
  447. package/dist/index322.js +10 -4
  448. package/dist/index322.js.map +1 -1
  449. package/dist/index323.js +7 -4
  450. package/dist/index323.js.map +1 -1
  451. package/dist/index324.js +133 -8
  452. package/dist/index324.js.map +1 -1
  453. package/dist/index325.js +261 -4
  454. package/dist/index325.js.map +1 -1
  455. package/dist/index326.js +399 -4
  456. package/dist/index326.js.map +1 -1
  457. package/dist/index327.js +52 -3
  458. package/dist/index327.js.map +1 -1
  459. package/dist/index328.js +11 -10
  460. package/dist/index328.js.map +1 -1
  461. package/dist/index329.js +11 -9
  462. package/dist/index329.js.map +1 -1
  463. package/dist/index330.js +4 -9
  464. package/dist/index330.js.map +1 -1
  465. package/dist/index331.js +11 -10
  466. package/dist/index331.js.map +1 -1
  467. package/dist/index332.js +4 -11
  468. package/dist/index332.js.map +1 -1
  469. package/dist/index333.js +5 -10
  470. package/dist/index333.js.map +1 -1
  471. package/dist/index334.js +11 -6
  472. package/dist/index334.js.map +1 -1
  473. package/dist/index335.js +78 -5
  474. package/dist/index335.js.map +1 -1
  475. package/dist/index336.js +66 -4
  476. package/dist/index336.js.map +1 -1
  477. package/dist/index337.js +8 -5
  478. package/dist/index337.js.map +1 -1
  479. package/dist/index338.js +92 -6
  480. package/dist/index338.js.map +1 -1
  481. package/dist/index339.js +20 -5
  482. package/dist/index339.js.map +1 -1
  483. package/dist/index34.js +4 -4
  484. package/dist/index340.js +4 -16
  485. package/dist/index340.js.map +1 -1
  486. package/dist/index341.js +18 -8
  487. package/dist/index341.js.map +1 -1
  488. package/dist/index342.js +12 -10
  489. package/dist/index342.js.map +1 -1
  490. package/dist/index343.js +8 -10
  491. package/dist/index343.js.map +1 -1
  492. package/dist/index344.js +11 -21
  493. package/dist/index344.js.map +1 -1
  494. package/dist/index345.js +8 -10
  495. package/dist/index345.js.map +1 -1
  496. package/dist/index346.js +13 -9
  497. package/dist/index346.js.map +1 -1
  498. package/dist/index347.js +3 -9
  499. package/dist/index347.js.map +1 -1
  500. package/dist/index348.js +3 -4
  501. package/dist/index348.js.map +1 -1
  502. package/dist/index349.js +4 -6
  503. package/dist/index349.js.map +1 -1
  504. package/dist/index35.js +5 -5
  505. package/dist/index350.js +15 -17
  506. package/dist/index350.js.map +1 -1
  507. package/dist/index351.js +8 -9
  508. package/dist/index351.js.map +1 -1
  509. package/dist/index352.js +50 -17
  510. package/dist/index352.js.map +1 -1
  511. package/dist/index353.js +11 -15
  512. package/dist/index353.js.map +1 -1
  513. package/dist/index354.js +14 -10
  514. package/dist/index354.js.map +1 -1
  515. package/dist/index355.js +5 -29
  516. package/dist/index355.js.map +1 -1
  517. package/dist/index356.js +5 -12
  518. package/dist/index356.js.map +1 -1
  519. package/dist/index357.js +19 -24
  520. package/dist/index357.js.map +1 -1
  521. package/dist/index358.js +45 -6
  522. package/dist/index358.js.map +1 -1
  523. package/dist/index359.js +18 -21
  524. package/dist/index359.js.map +1 -1
  525. package/dist/index36.js +10 -10
  526. package/dist/index360.js +5 -4
  527. package/dist/index360.js.map +1 -1
  528. package/dist/index361.js +199 -10
  529. package/dist/index361.js.map +1 -1
  530. package/dist/index362.js +76 -15
  531. package/dist/index362.js.map +1 -1
  532. package/dist/index363.js +122 -5
  533. package/dist/index363.js.map +1 -1
  534. package/dist/index364.js +16 -19
  535. package/dist/index364.js.map +1 -1
  536. package/dist/index365.js +32 -44
  537. package/dist/index365.js.map +1 -1
  538. package/dist/index366.js +72 -16
  539. package/dist/index366.js.map +1 -1
  540. package/dist/index367.js +143 -5
  541. package/dist/index367.js.map +1 -1
  542. package/dist/index368.js +59 -198
  543. package/dist/index368.js.map +1 -1
  544. package/dist/index369.js +49 -77
  545. package/dist/index369.js.map +1 -1
  546. package/dist/index37.js +3 -3
  547. package/dist/index370.js +5 -9
  548. package/dist/index370.js.map +1 -1
  549. package/dist/index371.js +12 -26
  550. package/dist/index371.js.map +1 -1
  551. package/dist/index372.js +21 -26
  552. package/dist/index372.js.map +1 -1
  553. package/dist/index373.js +4 -137
  554. package/dist/index373.js.map +1 -1
  555. package/dist/index374.js +4 -12
  556. package/dist/index374.js.map +1 -1
  557. package/dist/index375.js +4 -227
  558. package/dist/index375.js.map +1 -1
  559. package/dist/index376.js +15 -3
  560. package/dist/index376.js.map +1 -1
  561. package/dist/index377.js +8 -19
  562. package/dist/index377.js.map +1 -1
  563. package/dist/index378.js +5 -77
  564. package/dist/index378.js.map +1 -1
  565. package/dist/index379.js +5 -12
  566. package/dist/index379.js.map +1 -1
  567. package/dist/index38.js +4 -4
  568. package/dist/index380.js +545 -3
  569. package/dist/index380.js.map +1 -1
  570. package/dist/index381.js +46 -71
  571. package/dist/index381.js.map +1 -1
  572. package/dist/index382.js +18 -9
  573. package/dist/index382.js.map +1 -1
  574. package/dist/index383.js +5 -15
  575. package/dist/index383.js.map +1 -1
  576. package/dist/index384.js +7 -4
  577. package/dist/index384.js.map +1 -1
  578. package/dist/index385.js +7 -18
  579. package/dist/index385.js.map +1 -1
  580. package/dist/index386.js +7 -12
  581. package/dist/index386.js.map +1 -1
  582. package/dist/index387.js +12 -3
  583. package/dist/index387.js.map +1 -1
  584. package/dist/index388.js +9 -3
  585. package/dist/index388.js.map +1 -1
  586. package/dist/index389.js +12 -14
  587. package/dist/index389.js.map +1 -1
  588. package/dist/index39.js +5 -5
  589. package/dist/index390.js +3 -492
  590. package/dist/index390.js.map +1 -1
  591. package/dist/index391.js +3 -5
  592. package/dist/index391.js.map +1 -1
  593. package/dist/index392.js +8 -4
  594. package/dist/index392.js.map +1 -1
  595. package/dist/index393.js +26 -4
  596. package/dist/index393.js.map +1 -1
  597. package/dist/index394.js +26 -15
  598. package/dist/index394.js.map +1 -1
  599. package/dist/index395.js +137 -8
  600. package/dist/index395.js.map +1 -1
  601. package/dist/index396.js +12 -5
  602. package/dist/index396.js.map +1 -1
  603. package/dist/index397.js +226 -4
  604. package/dist/index397.js.map +1 -1
  605. package/dist/index398.js +3 -545
  606. package/dist/index398.js.map +1 -1
  607. package/dist/index399.js +20 -47
  608. package/dist/index399.js.map +1 -1
  609. package/dist/index40.js +3 -3
  610. package/dist/index400.js +74 -14
  611. package/dist/index400.js.map +1 -1
  612. package/dist/index401.js +12 -6
  613. package/dist/index401.js.map +1 -1
  614. package/dist/index402.js +3 -7
  615. package/dist/index402.js.map +1 -1
  616. package/dist/index403.js +71 -6
  617. package/dist/index403.js.map +1 -1
  618. package/dist/index404.js +9 -8
  619. package/dist/index404.js.map +1 -1
  620. package/dist/index405.js +15 -11
  621. package/dist/index405.js.map +1 -1
  622. package/dist/index406.js +4 -8
  623. package/dist/index406.js.map +1 -1
  624. package/dist/index407.js +56 -13
  625. package/dist/index407.js.map +1 -1
  626. package/dist/index408.js +68 -8
  627. package/dist/index408.js.map +1 -1
  628. package/dist/index409.js +31 -2
  629. package/dist/index409.js.map +1 -1
  630. package/dist/index41.js +10 -10
  631. package/dist/index410.js +9 -44
  632. package/dist/index410.js.map +1 -1
  633. package/dist/index411.js +152 -55
  634. package/dist/index411.js.map +1 -1
  635. package/dist/index412.js +108 -8
  636. package/dist/index412.js.map +1 -1
  637. package/dist/index413.js +8 -2
  638. package/dist/index413.js.map +1 -1
  639. package/dist/index414.js +2 -55
  640. package/dist/index414.js.map +1 -1
  641. package/dist/index415.js +42 -54
  642. package/dist/index415.js.map +1 -1
  643. package/dist/index416.js +55 -4
  644. package/dist/index416.js.map +1 -1
  645. package/dist/index417.js +8 -56
  646. package/dist/index417.js.map +1 -1
  647. package/dist/index418.js +2 -68
  648. package/dist/index418.js.map +1 -1
  649. package/dist/index419.js +55 -31
  650. package/dist/index419.js.map +1 -1
  651. package/dist/index420.js +56 -9
  652. package/dist/index420.js.map +1 -1
  653. package/dist/index421.js +14 -152
  654. package/dist/index421.js.map +1 -1
  655. package/dist/index422.js +490 -106
  656. package/dist/index422.js.map +1 -1
  657. package/dist/index423.js +16 -2
  658. package/dist/index423.js.map +1 -1
  659. package/dist/index424.js +29 -2
  660. package/dist/index424.js.map +1 -1
  661. package/dist/index425.js +13 -2
  662. package/dist/index425.js.map +1 -1
  663. package/dist/index426.js +7 -2
  664. package/dist/index426.js.map +1 -1
  665. package/dist/index427.js +2 -16
  666. package/dist/index427.js.map +1 -1
  667. package/dist/index428.js +2 -29
  668. package/dist/index428.js.map +1 -1
  669. package/dist/index429.js +2 -13
  670. package/dist/index429.js.map +1 -1
  671. package/dist/index430.js +2 -7
  672. package/dist/index430.js.map +1 -1
  673. package/dist/index44.js +1 -1
  674. package/dist/index45.js +2 -2
  675. package/dist/index49.js +34 -34
  676. package/dist/index50.js +29 -29
  677. package/dist/index51.js +2 -2
  678. package/dist/index52.js +12 -12
  679. package/dist/index53.js +4 -4
  680. package/dist/index54.js +1 -1
  681. package/dist/index55.js +22 -22
  682. package/dist/index56.js +5 -5
  683. package/dist/index57.js +5 -5
  684. package/dist/index58.js +8 -8
  685. package/dist/index59.js +5 -5
  686. package/dist/index60.js +17 -17
  687. package/dist/index61.js +5 -5
  688. package/dist/index62.js +3 -3
  689. package/dist/index66.js +1 -1
  690. package/dist/index67.js +1 -1
  691. package/dist/index72.js +2 -6
  692. package/dist/index72.js.map +1 -1
  693. package/dist/index73.js +2 -8
  694. package/dist/index73.js.map +1 -1
  695. package/dist/index74.js +5 -5
  696. package/dist/index74.js.map +1 -1
  697. package/dist/index75.js +8 -2
  698. package/dist/index75.js.map +1 -1
  699. package/dist/index76.js +6 -2
  700. package/dist/index76.js.map +1 -1
  701. package/dist/index80.js +4 -4
  702. package/dist/index85.js +1 -1
  703. package/dist/index86.js +1 -1
  704. package/dist/index93.js +1 -1
  705. package/dist/index94.js +6 -6
  706. package/dist/index96.js +4 -4
  707. package/dist/index98.js +1 -1
  708. package/package.json +1 -1
package/dist/index325.js CHANGED
@@ -1,8 +1,265 @@
1
- import { toDate as t } from "./index392.js";
2
- function f(r, o) {
3
- return +t(r) > +t(o);
1
+ import * as p from "react";
2
+ import { isHTMLElement as G, getNodeName as We, getWindow as _e } from "./index324.js";
3
+ import { addEventListener as I } from "./index313.js";
4
+ import { mergeCleanups as Te } from "./index392.js";
5
+ import { useMergedRefs as Fe } from "./index257.js";
6
+ import { useValueAsRef as te } from "./index264.js";
7
+ import { useStableCallback as ne } from "./index263.js";
8
+ import { useIsoLayoutEffect as _ } from "./index262.js";
9
+ import { useTimeout as ye } from "./index291.js";
10
+ import { isWebKit as Ue } from "./index314.js";
11
+ import { useAnimationFrame as $e } from "./index315.js";
12
+ import { ownerDocument as O } from "./index290.js";
13
+ import { FocusGuard as xe } from "./index393.js";
14
+ import { isTypeableCombobox as Ie, getFloatingFocusElement as he, isTypeableElement as Be } from "./index299.js";
15
+ import { isVirtualClick as ze, isVirtualPointerEvent as Je, stopEvent as Qe } from "./index394.js";
16
+ import { isOutsideEvent as ve, getNextTabbable as Xe, getPreviousTabbable as Ye, tabbable as Se, isTabbable as ue, focusable as Ze } from "./index395.js";
17
+ import { getNodeAncestors as Ce, getNodeChildren as ke } from "./index396.js";
18
+ import { isElementVisible as et } from "./index397.js";
19
+ import { createChangeEventDetails as tt } from "./index272.js";
20
+ import { createAttribute as Ae } from "./index398.js";
21
+ import { enqueueFocus as re } from "./index399.js";
22
+ import { markOthers as Oe } from "./index400.js";
23
+ import { usePortalContext as nt } from "./index302.js";
24
+ import { useFloatingTree as rt } from "./index401.js";
25
+ import { CLICK_TRIGGER_IDENTIFIER as ot } from "./index308.js";
26
+ import { resolveRef as w } from "./index402.js";
27
+ import { j as oe } from "./index30.js";
28
+ import { activeElement as V, contains as a, getTarget as B } from "./index300.js";
29
+ import { triggerHover as st, outsidePress as ut, focusOut as it } from "./index289.js";
30
+ function ct(t, h) {
31
+ const D = _e(B(t));
32
+ return t instanceof D.KeyboardEvent ? "keyboard" : t instanceof D.FocusEvent ? h || "keyboard" : "pointerType" in t ? t.pointerType || "keyboard" : "touches" in t ? "touch" : t instanceof D.MouseEvent ? h || (t.detail === 0 ? "keyboard" : "mouse") : "";
33
+ }
34
+ const we = 20;
35
+ let N = [];
36
+ function ie() {
37
+ N = N.filter((t) => t.deref()?.isConnected);
38
+ }
39
+ function ft(t) {
40
+ ie(), t && We(t) !== "body" && (N.push(new WeakRef(t)), N.length > we && (N = N.slice(-we)));
41
+ }
42
+ function se() {
43
+ return ie(), N[N.length - 1]?.deref();
44
+ }
45
+ function at(t) {
46
+ return t ? ue(t) ? t : Se(t)[0] || t : null;
47
+ }
48
+ function Ne(t, h) {
49
+ if (t.hasAttribute("tabindex") && !t.hasAttribute("data-tabindex") || !h.current.includes("floating") && !t.getAttribute("role")?.includes("dialog"))
50
+ return;
51
+ const c = Ze(t).filter((L) => {
52
+ const j = L.getAttribute("data-tabindex") || "";
53
+ return ue(L) || L.hasAttribute("data-tabindex") && !j.startsWith("-");
54
+ }), q = t.getAttribute("tabindex");
55
+ h.current.includes("floating") || c.length === 0 ? q !== "0" && t.setAttribute("tabindex", "0") : (q !== "-1" || t.hasAttribute("data-tabindex") && t.getAttribute("data-tabindex") !== "-1") && (t.setAttribute("tabindex", "-1"), t.setAttribute("data-tabindex", "-1"));
56
+ }
57
+ function Lt(t) {
58
+ const {
59
+ context: h,
60
+ children: D,
61
+ disabled: c = !1,
62
+ initialFocus: q = !0,
63
+ returnFocus: L = !0,
64
+ restoreFocus: j = !1,
65
+ modal: E = !0,
66
+ closeOnFocusOut: K = !0,
67
+ openInteractionType: De = "",
68
+ nextFocusableElement: H,
69
+ previousFocusableElement: W,
70
+ beforeContentFocusGuardRef: Pe,
71
+ externalTree: Me,
72
+ getInsideElements: Ge
73
+ } = t, v = "rootStore" in h ? h.rootStore : h, T = v.useState("open"), f = v.useState("domReferenceElement"), i = v.useState("floatingElement"), {
74
+ events: z,
75
+ dataRef: S
76
+ } = v.context, P = ne(() => S.current.floatingContext?.nodeId), ce = q === !1, C = Ie(f) && ce, M = p.useRef(["content"]), fe = te(q), J = te(L), ae = te(De), F = rt(Me), u = nt(), y = p.useRef(!1), U = p.useRef(!1), Q = p.useRef(!1), le = p.useRef(null), de = p.useRef(""), X = p.useRef(""), Y = p.useRef(null), Z = p.useRef(null), Ve = Fe(Y, Pe, u?.beforeInsideRef), qe = Fe(Z, u?.afterInsideRef), me = ye(), be = ye(), pe = $e(), Le = u != null, o = he(i), k = ne((n = o) => n ? Se(n) : []), A = ne(() => Ge?.().filter((n) => n != null) ?? []);
77
+ p.useEffect(() => {
78
+ if (c || !E)
79
+ return;
80
+ function n(m) {
81
+ m.key === "Tab" && a(o, V(O(o))) && k().length === 0 && !C && Qe(m);
82
+ }
83
+ const d = O(o);
84
+ return I(d, "keydown", n);
85
+ }, [c, f, o, E, M, C, k]), p.useEffect(() => {
86
+ if (c || !T)
87
+ return;
88
+ const n = O(o);
89
+ function d() {
90
+ Q.current = !1;
91
+ }
92
+ function m(s) {
93
+ const r = B(s), l = A(), e = a(i, r) || a(f, r) || a(u?.portalNode, r) || l.some((g) => g === r || a(g, r));
94
+ Q.current = !e, X.current = s.pointerType || "keyboard", r?.closest(`[${ot}]`) && (U.current = !0);
95
+ }
96
+ function R() {
97
+ X.current = "keyboard";
98
+ }
99
+ return Te(I(n, "pointerdown", m, !0), I(n, "pointerup", d, !0), I(n, "pointercancel", d, !0), I(n, "keydown", R, !0));
100
+ }, [c, i, f, o, T, u, A]), p.useEffect(() => {
101
+ if (c || !K)
102
+ return;
103
+ const n = O(o);
104
+ function d() {
105
+ U.current = !0, be.start(0, () => {
106
+ U.current = !1;
107
+ });
108
+ }
109
+ function m(l) {
110
+ const e = B(l);
111
+ ue(e) && (le.current = e);
112
+ }
113
+ function R(l) {
114
+ const e = l.relatedTarget, g = l.currentTarget, x = B(l);
115
+ queueMicrotask(() => {
116
+ const $ = P(), ge = v.context.triggerElements, je = A(), Ke = e?.hasAttribute(Ae("focus-guard")) && [Y.current, Z.current, u?.beforeInsideRef.current, u?.afterInsideRef.current, u?.beforeOutsideRef.current, u?.afterOutsideRef.current, w(W), w(H)].includes(e), He = !(a(f, e) || a(i, e) || a(e, i) || a(u?.portalNode, e) || je.some((b) => b === e || a(b, e)) || e != null && ge.hasElement(e) || ge.hasMatchingElement((b) => a(b, e)) || Ke || F && (ke(F.nodesRef.current, $).find((b) => a(b.context?.elements.floating, e) || a(b.context?.elements.domReference, e)) || Ce(F.nodesRef.current, $).find((b) => [b.context?.elements.floating, he(b.context?.elements.floating)].includes(e) || b.context?.elements.domReference === e)));
117
+ if (g === f && o && Ne(o, M), j && g !== f && !et(x) && V(n) === n.body) {
118
+ if (G(o) && (o.focus(), j === "popup")) {
119
+ pe.request(() => {
120
+ o.focus();
121
+ });
122
+ return;
123
+ }
124
+ const b = k(), ee = le.current, Ee = (ee && b.includes(ee) ? ee : null) || b[b.length - 1] || o;
125
+ G(Ee) && Ee.focus();
126
+ }
127
+ if (S.current.insideReactTree) {
128
+ S.current.insideReactTree = !1;
129
+ return;
130
+ }
131
+ (C || !E) && e && He && !U.current && // Fix React 18 Strict Mode returnFocus due to double rendering.
132
+ // For an "untrapped" typeable combobox (input role=combobox with
133
+ // initialFocus=false), re-opening the popup and tabbing out should still close it even
134
+ // when the previously focused element (e.g. the next tabbable outside the popup) is
135
+ // focused again. Otherwise, the popup remains open on the second Tab sequence:
136
+ // click input -> Tab (closes) -> click input -> Tab.
137
+ // Allow closing when `isUntrappedTypeableCombobox` regardless of the previously focused element.
138
+ (C || e !== se()) && (y.current = !0, v.setOpen(!1, tt(it, l)));
139
+ });
140
+ }
141
+ function s() {
142
+ Q.current || (S.current.insideReactTree = !0, me.start(0, () => {
143
+ S.current.insideReactTree = !1;
144
+ }));
145
+ }
146
+ const r = G(f) ? f : null;
147
+ if (!(!i && !r))
148
+ return Te(r && I(r, "focusout", R), r && I(r, "pointerdown", d), i && I(i, "focusin", m), i && I(i, "focusout", R), i && u && I(i, "focusout", s, !0));
149
+ }, [c, f, i, o, E, F, u, v, K, j, k, C, P, M, S, me, be, pe, H, W, A]), p.useEffect(() => {
150
+ if (c || !i || !T)
151
+ return;
152
+ const n = Array.from(u?.portalNode?.querySelectorAll(`[${Ae("portal")}]`) || []), m = (F ? Ce(F.nodesRef.current, P()) : []).find((g) => Ie(g.context?.elements.domReference || null))?.context?.elements.domReference, s = [...[i, ...n, Y.current, Z.current, u?.beforeOutsideRef.current, u?.afterOutsideRef.current, ...A()], m, w(W), w(H), C ? f : null].filter((g) => g != null), r = Oe(s, {
153
+ ariaHidden: E || C,
154
+ mark: !1
155
+ }), l = [i, ...n].filter((g) => g != null), e = Oe(l);
156
+ return () => {
157
+ e(), r();
158
+ };
159
+ }, [T, c, f, i, E, M, u, C, F, P, H, W, A]), _(() => {
160
+ if (!T || c || !G(o))
161
+ return;
162
+ const n = O(o), d = V(n);
163
+ queueMicrotask(() => {
164
+ const m = fe.current, R = typeof m == "function" ? m(ae.current || "") : m;
165
+ if (R === void 0 || R === !1 || a(o, d))
166
+ return;
167
+ let r = null;
168
+ const l = () => (r == null && (r = k(o)), r[0] || o);
169
+ let e;
170
+ R === !0 || R === null ? e = l() : e = w(R), e = e || l(), re(e, {
171
+ preventScroll: e === o
172
+ });
173
+ });
174
+ }, [c, T, o, ce, k, fe, ae]), _(() => {
175
+ if (c || !o)
176
+ return;
177
+ const n = O(o), d = V(n);
178
+ ft(d);
179
+ function m(s) {
180
+ if (s.open || (de.current = ct(s.nativeEvent, X.current)), s.reason === st && s.nativeEvent.type === "mouseleave" && (y.current = !0), s.reason === ut)
181
+ if (s.nested)
182
+ y.current = !1;
183
+ else if (ze(s.nativeEvent) || Je(s.nativeEvent))
184
+ y.current = !1;
185
+ else {
186
+ let r = !1;
187
+ O(o).createElement("div").focus({
188
+ get preventScroll() {
189
+ return r = !0, !1;
190
+ }
191
+ }), r ? y.current = !1 : y.current = !0;
192
+ }
193
+ }
194
+ z.on("openchange", m);
195
+ function R() {
196
+ const s = J.current;
197
+ let r = typeof s == "function" ? s(de.current) : s;
198
+ if (r === void 0 || r === !1)
199
+ return null;
200
+ if (r === null && (r = !0), typeof r == "boolean") {
201
+ const e = f || se();
202
+ return e && e.isConnected ? e : null;
203
+ }
204
+ const l = f || se();
205
+ return w(r) || l || null;
206
+ }
207
+ return () => {
208
+ z.off("openchange", m);
209
+ const s = V(n), r = A(), l = a(i, s) || r.some((x) => x === s || a(x, s)) || F && ke(F.nodesRef.current, P(), !1).some((x) => a(x.context?.elements.floating, s)), e = J.current, g = R();
210
+ queueMicrotask(() => {
211
+ const x = at(g), $ = typeof e != "boolean";
212
+ e && !y.current && G(x) && // If the focus moved somewhere else after mount, avoid returning focus
213
+ // since it likely entered a different element which should be
214
+ // respected: https://github.com/floating-ui/floating-ui/issues/2607
215
+ (!(!$ && x !== s && s !== n.body) || l) && x.focus({
216
+ preventScroll: !0
217
+ }), y.current = !1;
218
+ });
219
+ };
220
+ }, [c, i, o, J, S, z, F, f, P, A]), _(() => {
221
+ if (!Ue || T || !i)
222
+ return;
223
+ const n = V(O(i));
224
+ !G(n) || !Be(n) || a(i, n) && n.blur();
225
+ }, [T, i]), _(() => {
226
+ if (!(c || !u))
227
+ return u.setFocusManagerState({
228
+ modal: E,
229
+ closeOnFocusOut: K,
230
+ open: T,
231
+ onOpenChange: v.setOpen,
232
+ domReference: f
233
+ }), () => {
234
+ u.setFocusManagerState(null);
235
+ };
236
+ }, [c, u, E, T, v, K, f]), _(() => {
237
+ if (!(c || !o))
238
+ return Ne(o, M), () => {
239
+ queueMicrotask(ie);
240
+ };
241
+ }, [c, o, M]);
242
+ const Re = !c && (E ? !C : !0) && (Le || E);
243
+ return /* @__PURE__ */ oe.jsxs(p.Fragment, {
244
+ children: [Re && /* @__PURE__ */ oe.jsx(xe, {
245
+ "data-type": "inside",
246
+ ref: Ve,
247
+ onFocus: (n) => {
248
+ if (E) {
249
+ const d = k();
250
+ re(d[d.length - 1]);
251
+ } else u?.portalNode && (y.current = !1, ve(n, u.portalNode) ? Xe(f)?.focus() : w(W ?? u.beforeOutsideRef)?.focus());
252
+ }
253
+ }), D, Re && /* @__PURE__ */ oe.jsx(xe, {
254
+ "data-type": "inside",
255
+ ref: qe,
256
+ onFocus: (n) => {
257
+ E ? re(k()[0]) : u?.portalNode && (K && (y.current = !0), ve(n, u.portalNode) ? Ye(f)?.focus() : w(H ?? u.afterOutsideRef)?.focus());
258
+ }
259
+ })]
260
+ });
4
261
  }
5
262
  export {
6
- f as isAfter
263
+ Lt as FloatingFocusManager
7
264
  };
8
265
  //# sourceMappingURL=index325.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index325.js","sources":["../../../node_modules/date-fns/isAfter.js"],"sourcesContent":["import { toDate } from \"./toDate.js\";\n\n/**\n * @name isAfter\n * @category Common Helpers\n * @summary Is the first date after the second one?\n *\n * @description\n * Is the first date after the second one?\n *\n * @param date - The date that should be after the other one to return true\n * @param dateToCompare - The date to compare with\n *\n * @returns The first date is after the second date\n *\n * @example\n * // Is 10 July 1989 after 11 February 1987?\n * const result = isAfter(new Date(1989, 6, 10), new Date(1987, 1, 11))\n * //=> true\n */\nexport function isAfter(date, dateToCompare) {\n return +toDate(date) > +toDate(dateToCompare);\n}\n\n// Fallback for modularized imports:\nexport default isAfter;\n"],"names":["isAfter","date","dateToCompare","toDate"],"mappings":";AAoBO,SAASA,EAAQC,GAAMC,GAAe;AAC3C,SAAO,CAACC,EAAOF,CAAI,IAAI,CAACE,EAAOD,CAAa;AAC9C;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index325.js","sources":["../../../node_modules/@base-ui/react/esm/floating-ui-react/components/FloatingFocusManager.js"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { getNodeName, isHTMLElement } from '@floating-ui/utils/dom';\nimport { addEventListener } from '@base-ui/utils/addEventListener';\nimport { mergeCleanups } from '@base-ui/utils/mergeCleanups';\nimport { useMergedRefs } from '@base-ui/utils/useMergedRefs';\nimport { useValueAsRef } from '@base-ui/utils/useValueAsRef';\nimport { useStableCallback } from '@base-ui/utils/useStableCallback';\nimport { useIsoLayoutEffect } from '@base-ui/utils/useIsoLayoutEffect';\nimport { useTimeout } from '@base-ui/utils/useTimeout';\nimport { isWebKit } from '@base-ui/utils/detectBrowser';\nimport { useAnimationFrame } from '@base-ui/utils/useAnimationFrame';\nimport { ownerDocument, ownerWindow } from '@base-ui/utils/owner';\nimport { FocusGuard } from \"../../utils/FocusGuard.js\";\nimport { activeElement, contains, getTarget, isTypeableCombobox, getFloatingFocusElement, isTypeableElement } from \"../utils/element.js\";\nimport { isVirtualClick, isVirtualPointerEvent, stopEvent } from \"../utils/event.js\";\nimport { tabbable, focusable, isOutsideEvent, isTabbable, getNextTabbable, getPreviousTabbable } from \"../utils/tabbable.js\";\nimport { getNodeAncestors, getNodeChildren } from \"../utils/nodes.js\";\nimport { isElementVisible } from \"../utils/composite.js\";\nimport { createChangeEventDetails } from \"../../internals/createBaseUIEventDetails.js\";\nimport { REASONS } from \"../../internals/reasons.js\";\nimport { createAttribute } from \"../utils/createAttribute.js\";\nimport { enqueueFocus } from \"../utils/enqueueFocus.js\";\nimport { markOthers } from \"../utils/markOthers.js\";\nimport { usePortalContext } from \"./FloatingPortal.js\";\nimport { useFloatingTree } from \"./FloatingTree.js\";\nimport { CLICK_TRIGGER_IDENTIFIER } from \"../../internals/constants.js\";\nimport { resolveRef } from \"../../utils/resolveRef.js\";\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nfunction getEventType(event, lastInteractionType) {\n const win = ownerWindow(getTarget(event));\n if (event instanceof win.KeyboardEvent) {\n return 'keyboard';\n }\n if (event instanceof win.FocusEvent) {\n // Focus events can be caused by a preceding pointer interaction (e.g., focusout on outside press).\n // Prefer the last known pointer type if provided, else treat as keyboard.\n return lastInteractionType || 'keyboard';\n }\n if ('pointerType' in event) {\n return event.pointerType || 'keyboard';\n }\n if ('touches' in event) {\n return 'touch';\n }\n if (event instanceof win.MouseEvent) {\n // onClick events may not contain pointer events, and will fall through to here\n return lastInteractionType || (event.detail === 0 ? 'keyboard' : 'mouse');\n }\n return '';\n}\nconst LIST_LIMIT = 20;\nlet previouslyFocusedElements = [];\nfunction clearDisconnectedPreviouslyFocusedElements() {\n previouslyFocusedElements = previouslyFocusedElements.filter(entry => {\n return entry.deref()?.isConnected;\n });\n}\nfunction addPreviouslyFocusedElement(element) {\n clearDisconnectedPreviouslyFocusedElements();\n if (element && getNodeName(element) !== 'body') {\n previouslyFocusedElements.push(new WeakRef(element));\n if (previouslyFocusedElements.length > LIST_LIMIT) {\n previouslyFocusedElements = previouslyFocusedElements.slice(-LIST_LIMIT);\n }\n }\n}\nfunction getPreviouslyFocusedElement() {\n clearDisconnectedPreviouslyFocusedElements();\n return previouslyFocusedElements[previouslyFocusedElements.length - 1]?.deref();\n}\nfunction getFirstTabbableElement(container) {\n if (!container) {\n return null;\n }\n if (isTabbable(container)) {\n return container;\n }\n return tabbable(container)[0] || container;\n}\nfunction handleTabIndex(floatingFocusElement, orderRef) {\n if (floatingFocusElement.hasAttribute('tabindex') && !floatingFocusElement.hasAttribute('data-tabindex')) {\n return;\n }\n if (!orderRef.current.includes('floating') && !floatingFocusElement.getAttribute('role')?.includes('dialog')) {\n return;\n }\n const focusableElements = focusable(floatingFocusElement);\n const tabbableContent = focusableElements.filter(element => {\n const dataTabIndex = element.getAttribute('data-tabindex') || '';\n return isTabbable(element) || element.hasAttribute('data-tabindex') && !dataTabIndex.startsWith('-');\n });\n const tabIndex = floatingFocusElement.getAttribute('tabindex');\n if (orderRef.current.includes('floating') || tabbableContent.length === 0) {\n if (tabIndex !== '0') {\n floatingFocusElement.setAttribute('tabindex', '0');\n }\n } else if (tabIndex !== '-1' || floatingFocusElement.hasAttribute('data-tabindex') && floatingFocusElement.getAttribute('data-tabindex') !== '-1') {\n floatingFocusElement.setAttribute('tabindex', '-1');\n floatingFocusElement.setAttribute('data-tabindex', '-1');\n }\n}\n/**\n * Provides focus management for the floating element.\n * @see https://floating-ui.com/docs/FloatingFocusManager\n * @internal\n */\nexport function FloatingFocusManager(props) {\n const {\n context,\n children,\n disabled = false,\n initialFocus = true,\n returnFocus = true,\n restoreFocus = false,\n modal = true,\n closeOnFocusOut = true,\n openInteractionType = '',\n nextFocusableElement,\n previousFocusableElement,\n beforeContentFocusGuardRef,\n externalTree,\n getInsideElements\n } = props;\n const store = 'rootStore' in context ? context.rootStore : context;\n const open = store.useState('open');\n const domReference = store.useState('domReferenceElement');\n const floating = store.useState('floatingElement');\n const {\n events,\n dataRef\n } = store.context;\n const getNodeId = useStableCallback(() => dataRef.current.floatingContext?.nodeId);\n const ignoreInitialFocus = initialFocus === false;\n // If the reference is a combobox and is typeable (e.g. input/textarea),\n // there are different focus semantics. The guards should not be rendered, but\n // aria-hidden should be applied to all nodes still. Further, the visually\n // hidden dismiss button should only appear at the end of the list, not the\n // start.\n const isUntrappedTypeableCombobox = isTypeableCombobox(domReference) && ignoreInitialFocus;\n const orderRef = React.useRef(['content']);\n const initialFocusRef = useValueAsRef(initialFocus);\n const returnFocusRef = useValueAsRef(returnFocus);\n const openInteractionTypeRef = useValueAsRef(openInteractionType);\n const tree = useFloatingTree(externalTree);\n const portalContext = usePortalContext();\n const preventReturnFocusRef = React.useRef(false);\n const isPointerDownRef = React.useRef(false);\n const pointerDownOutsideRef = React.useRef(false);\n const lastFocusedTabbableRef = React.useRef(null);\n const closeTypeRef = React.useRef('');\n const lastInteractionTypeRef = React.useRef('');\n const beforeGuardRef = React.useRef(null);\n const afterGuardRef = React.useRef(null);\n const mergedBeforeGuardRef = useMergedRefs(beforeGuardRef, beforeContentFocusGuardRef, portalContext?.beforeInsideRef);\n const mergedAfterGuardRef = useMergedRefs(afterGuardRef, portalContext?.afterInsideRef);\n const blurTimeout = useTimeout();\n const pointerDownTimeout = useTimeout();\n const restoreFocusFrame = useAnimationFrame();\n const isInsidePortal = portalContext != null;\n const floatingFocusElement = getFloatingFocusElement(floating);\n const getTabbableContent = useStableCallback((container = floatingFocusElement) => {\n return container ? tabbable(container) : [];\n });\n const getResolvedInsideElements = useStableCallback(() => getInsideElements?.().filter(element => element != null) ?? []);\n\n // Prevent Tab from escaping the modal when there are no tabbable elements.\n React.useEffect(() => {\n if (disabled || !modal) {\n return undefined;\n }\n function onKeyDown(event) {\n if (event.key === 'Tab') {\n // The focus guards have nothing to focus, so we need to stop the event.\n if (contains(floatingFocusElement, activeElement(ownerDocument(floatingFocusElement))) && getTabbableContent().length === 0 && !isUntrappedTypeableCombobox) {\n stopEvent(event);\n }\n }\n }\n const doc = ownerDocument(floatingFocusElement);\n return addEventListener(doc, 'keydown', onKeyDown);\n }, [disabled, domReference, floatingFocusElement, modal, orderRef, isUntrappedTypeableCombobox, getTabbableContent]);\n\n // Track pointer/keyboard interactions to disambiguate focus and outside presses.\n React.useEffect(() => {\n if (disabled || !open) {\n return undefined;\n }\n const doc = ownerDocument(floatingFocusElement);\n function clearPointerDownOutside() {\n pointerDownOutsideRef.current = false;\n }\n function onPointerDown(event) {\n const target = getTarget(event);\n const insideElements = getResolvedInsideElements();\n const pointerTargetInside = contains(floating, target) || contains(domReference, target) || contains(portalContext?.portalNode, target) || insideElements.some(element => element === target || contains(element, target));\n pointerDownOutsideRef.current = !pointerTargetInside;\n lastInteractionTypeRef.current = event.pointerType || 'keyboard';\n if (target?.closest(`[${CLICK_TRIGGER_IDENTIFIER}]`)) {\n isPointerDownRef.current = true;\n }\n }\n function onKeyDown() {\n lastInteractionTypeRef.current = 'keyboard';\n }\n return mergeCleanups(addEventListener(doc, 'pointerdown', onPointerDown, true), addEventListener(doc, 'pointerup', clearPointerDownOutside, true), addEventListener(doc, 'pointercancel', clearPointerDownOutside, true), addEventListener(doc, 'keydown', onKeyDown, true));\n }, [disabled, floating, domReference, floatingFocusElement, open, portalContext, getResolvedInsideElements]);\n\n // Close on focus out and restore focus within the floating tree when needed.\n React.useEffect(() => {\n if (disabled || !closeOnFocusOut) {\n return undefined;\n }\n const doc = ownerDocument(floatingFocusElement);\n\n // In Safari, buttons lose focus when pressing them.\n function handlePointerDown() {\n isPointerDownRef.current = true;\n pointerDownTimeout.start(0, () => {\n isPointerDownRef.current = false;\n });\n }\n function handleFocusIn(event) {\n const target = getTarget(event);\n if (isTabbable(target)) {\n lastFocusedTabbableRef.current = target;\n }\n }\n function handleFocusOutside(event) {\n const relatedTarget = event.relatedTarget;\n const currentTarget = event.currentTarget;\n const target = getTarget(event);\n queueMicrotask(() => {\n const nodeId = getNodeId();\n const triggers = store.context.triggerElements;\n const insideElements = getResolvedInsideElements();\n const isRelatedFocusGuard = relatedTarget?.hasAttribute(createAttribute('focus-guard')) && [beforeGuardRef.current, afterGuardRef.current, portalContext?.beforeInsideRef.current, portalContext?.afterInsideRef.current, portalContext?.beforeOutsideRef.current, portalContext?.afterOutsideRef.current, resolveRef(previousFocusableElement), resolveRef(nextFocusableElement)].includes(relatedTarget);\n const movedToUnrelatedNode = !(contains(domReference, relatedTarget) || contains(floating, relatedTarget) || contains(relatedTarget, floating) || contains(portalContext?.portalNode, relatedTarget) || insideElements.some(element => element === relatedTarget || contains(element, relatedTarget)) || relatedTarget != null && triggers.hasElement(relatedTarget) || triggers.hasMatchingElement(trigger => contains(trigger, relatedTarget)) || isRelatedFocusGuard || tree && (getNodeChildren(tree.nodesRef.current, nodeId).find(node => contains(node.context?.elements.floating, relatedTarget) || contains(node.context?.elements.domReference, relatedTarget)) || getNodeAncestors(tree.nodesRef.current, nodeId).find(node => [node.context?.elements.floating, getFloatingFocusElement(node.context?.elements.floating)].includes(relatedTarget) || node.context?.elements.domReference === relatedTarget)));\n if (currentTarget === domReference && floatingFocusElement) {\n handleTabIndex(floatingFocusElement, orderRef);\n }\n\n // Restore focus to the previous tabbable element index to prevent\n // focus from being lost outside the floating tree.\n if (restoreFocus && currentTarget !== domReference && !isElementVisible(target) && activeElement(doc) === doc.body) {\n // Let `FloatingPortal` effect knows that focus is still inside the\n // floating tree.\n if (isHTMLElement(floatingFocusElement)) {\n floatingFocusElement.focus();\n // If explicitly requested to restore focus to the popup container, do not search\n // for the next/previous tabbable element.\n if (restoreFocus === 'popup') {\n // If the element is removed on pointerdown, focus tries to move it,\n // but since it's removed at the same time, focus gets lost as it\n // happens after the .focus() call above.\n // In this case, focus needs to be moved asynchronously.\n restoreFocusFrame.request(() => {\n floatingFocusElement.focus();\n });\n return;\n }\n }\n const tabbableContent = getTabbableContent();\n const prevTabbable = lastFocusedTabbableRef.current;\n const nodeToFocus = (prevTabbable && tabbableContent.includes(prevTabbable) ? prevTabbable : null) || tabbableContent[tabbableContent.length - 1] || floatingFocusElement;\n if (isHTMLElement(nodeToFocus)) {\n nodeToFocus.focus();\n }\n }\n\n // https://github.com/floating-ui/floating-ui/issues/3060\n if (dataRef.current.insideReactTree) {\n dataRef.current.insideReactTree = false;\n return;\n }\n\n // Focus did not move inside the floating tree, and there are no tabbable\n // portal guards to handle closing.\n if ((isUntrappedTypeableCombobox ? true : !modal) && relatedTarget && movedToUnrelatedNode && !isPointerDownRef.current && (\n // Fix React 18 Strict Mode returnFocus due to double rendering.\n // For an \"untrapped\" typeable combobox (input role=combobox with\n // initialFocus=false), re-opening the popup and tabbing out should still close it even\n // when the previously focused element (e.g. the next tabbable outside the popup) is\n // focused again. Otherwise, the popup remains open on the second Tab sequence:\n // click input -> Tab (closes) -> click input -> Tab.\n // Allow closing when `isUntrappedTypeableCombobox` regardless of the previously focused element.\n isUntrappedTypeableCombobox || relatedTarget !== getPreviouslyFocusedElement())) {\n preventReturnFocusRef.current = true;\n store.setOpen(false, createChangeEventDetails(REASONS.focusOut, event));\n }\n });\n }\n function markInsideReactTree() {\n if (pointerDownOutsideRef.current) {\n return;\n }\n dataRef.current.insideReactTree = true;\n blurTimeout.start(0, () => {\n dataRef.current.insideReactTree = false;\n });\n }\n const domReferenceElement = isHTMLElement(domReference) ? domReference : null;\n if (!floating && !domReferenceElement) {\n return undefined;\n }\n return mergeCleanups(domReferenceElement && addEventListener(domReferenceElement, 'focusout', handleFocusOutside), domReferenceElement && addEventListener(domReferenceElement, 'pointerdown', handlePointerDown), floating && addEventListener(floating, 'focusin', handleFocusIn), floating && addEventListener(floating, 'focusout', handleFocusOutside), floating && portalContext && addEventListener(floating, 'focusout', markInsideReactTree, true));\n }, [disabled, domReference, floating, floatingFocusElement, modal, tree, portalContext, store, closeOnFocusOut, restoreFocus, getTabbableContent, isUntrappedTypeableCombobox, getNodeId, orderRef, dataRef, blurTimeout, pointerDownTimeout, restoreFocusFrame, nextFocusableElement, previousFocusableElement, getResolvedInsideElements]);\n\n // Hide everything outside the floating tree from assistive tech while open.\n React.useEffect(() => {\n if (disabled || !floating || !open) {\n return undefined;\n }\n\n // Don't hide portals nested within the parent portal.\n const portalNodes = Array.from(portalContext?.portalNode?.querySelectorAll(`[${createAttribute('portal')}]`) || []);\n const ancestors = tree ? getNodeAncestors(tree.nodesRef.current, getNodeId()) : [];\n const rootAncestorComboboxDomReference = ancestors.find(node => isTypeableCombobox(node.context?.elements.domReference || null))?.context?.elements.domReference;\n const controlInsideElements = [floating, ...portalNodes, beforeGuardRef.current, afterGuardRef.current, portalContext?.beforeOutsideRef.current, portalContext?.afterOutsideRef.current, ...getResolvedInsideElements()];\n const insideElements = [...controlInsideElements, rootAncestorComboboxDomReference, resolveRef(previousFocusableElement), resolveRef(nextFocusableElement), isUntrappedTypeableCombobox ? domReference : null].filter(x => x != null);\n const ariaHiddenCleanup = markOthers(insideElements, {\n ariaHidden: modal || isUntrappedTypeableCombobox,\n mark: false\n });\n const markerInsideElements = [floating, ...portalNodes].filter(x => x != null);\n const markerCleanup = markOthers(markerInsideElements);\n return () => {\n markerCleanup();\n ariaHiddenCleanup();\n };\n }, [open, disabled, domReference, floating, modal, orderRef, portalContext, isUntrappedTypeableCombobox, tree, getNodeId, nextFocusableElement, previousFocusableElement, getResolvedInsideElements]);\n\n // Focus the initial element when the floating element opens.\n useIsoLayoutEffect(() => {\n if (!open || disabled || !isHTMLElement(floatingFocusElement)) {\n return;\n }\n const doc = ownerDocument(floatingFocusElement);\n const previouslyFocusedElement = activeElement(doc);\n\n // Wait for any layout effect state setters to execute to set `tabIndex`.\n queueMicrotask(() => {\n const initialFocusValueOrFn = initialFocusRef.current;\n const resolvedInitialFocus = typeof initialFocusValueOrFn === 'function' ? initialFocusValueOrFn(openInteractionTypeRef.current || '') : initialFocusValueOrFn;\n\n // `null` should fallback to default behavior in case of an empty ref.\n if (resolvedInitialFocus === undefined || resolvedInitialFocus === false) {\n return;\n }\n const focusAlreadyInsideFloatingEl = contains(floatingFocusElement, previouslyFocusedElement);\n if (focusAlreadyInsideFloatingEl) {\n return;\n }\n let focusableElements = null;\n const getDefaultFocusElement = () => {\n if (focusableElements == null) {\n focusableElements = getTabbableContent(floatingFocusElement);\n }\n return focusableElements[0] || floatingFocusElement;\n };\n let elToFocus;\n if (resolvedInitialFocus === true || resolvedInitialFocus === null) {\n elToFocus = getDefaultFocusElement();\n } else {\n elToFocus = resolveRef(resolvedInitialFocus);\n }\n elToFocus = elToFocus || getDefaultFocusElement();\n enqueueFocus(elToFocus, {\n preventScroll: elToFocus === floatingFocusElement\n });\n });\n }, [disabled, open, floatingFocusElement, ignoreInitialFocus, getTabbableContent, initialFocusRef, openInteractionTypeRef]);\n\n // Track return focus targets and restore focus on unmount/close.\n useIsoLayoutEffect(() => {\n if (disabled || !floatingFocusElement) {\n return undefined;\n }\n const doc = ownerDocument(floatingFocusElement);\n const previouslyFocusedElement = activeElement(doc);\n addPreviouslyFocusedElement(previouslyFocusedElement);\n\n // Dismissing via outside press should always ignore `returnFocus` to\n // prevent unwanted scrolling.\n function onOpenChangeLocal(details) {\n if (!details.open) {\n closeTypeRef.current = getEventType(details.nativeEvent, lastInteractionTypeRef.current);\n }\n if (details.reason === REASONS.triggerHover && details.nativeEvent.type === 'mouseleave') {\n preventReturnFocusRef.current = true;\n }\n if (details.reason !== REASONS.outsidePress) {\n return;\n }\n if (details.nested) {\n preventReturnFocusRef.current = false;\n } else if (isVirtualClick(details.nativeEvent) || isVirtualPointerEvent(details.nativeEvent)) {\n preventReturnFocusRef.current = false;\n } else {\n let isPreventScrollSupported = false;\n ownerDocument(floatingFocusElement).createElement('div').focus({\n get preventScroll() {\n isPreventScrollSupported = true;\n return false;\n }\n });\n if (isPreventScrollSupported) {\n preventReturnFocusRef.current = false;\n } else {\n preventReturnFocusRef.current = true;\n }\n }\n }\n events.on('openchange', onOpenChangeLocal);\n function getReturnElement() {\n const returnFocusValueOrFn = returnFocusRef.current;\n let resolvedReturnFocusValue = typeof returnFocusValueOrFn === 'function' ? returnFocusValueOrFn(closeTypeRef.current) : returnFocusValueOrFn;\n\n // `null` should fallback to default behavior in case of an empty ref.\n if (resolvedReturnFocusValue === undefined || resolvedReturnFocusValue === false) {\n return null;\n }\n if (resolvedReturnFocusValue === null) {\n resolvedReturnFocusValue = true;\n }\n if (typeof resolvedReturnFocusValue === 'boolean') {\n const el = domReference || getPreviouslyFocusedElement();\n return el && el.isConnected ? el : null;\n }\n const fallback = domReference || getPreviouslyFocusedElement();\n return resolveRef(resolvedReturnFocusValue) || fallback || null;\n }\n return () => {\n events.off('openchange', onOpenChangeLocal);\n const activeEl = activeElement(doc);\n const insideElements = getResolvedInsideElements();\n const isFocusInsideFloatingTree = contains(floating, activeEl) || insideElements.some(element => element === activeEl || contains(element, activeEl)) || tree && getNodeChildren(tree.nodesRef.current, getNodeId(), false).some(node => contains(node.context?.elements.floating, activeEl));\n\n // eslint-disable-next-line react-hooks/exhaustive-deps\n const returnFocusValueOrFn = returnFocusRef.current;\n const returnElement = getReturnElement();\n queueMicrotask(() => {\n // This is `returnElement`, if it's tabbable, or its first tabbable child.\n const tabbableReturnElement = getFirstTabbableElement(returnElement);\n const hasExplicitReturnFocus = typeof returnFocusValueOrFn !== 'boolean';\n if (returnFocusValueOrFn && !preventReturnFocusRef.current && isHTMLElement(tabbableReturnElement) && (\n // If the focus moved somewhere else after mount, avoid returning focus\n // since it likely entered a different element which should be\n // respected: https://github.com/floating-ui/floating-ui/issues/2607\n !hasExplicitReturnFocus && tabbableReturnElement !== activeEl && activeEl !== doc.body ? isFocusInsideFloatingTree : true)) {\n tabbableReturnElement.focus({\n preventScroll: true\n });\n }\n preventReturnFocusRef.current = false;\n });\n };\n }, [disabled, floating, floatingFocusElement, returnFocusRef, dataRef, events, tree, domReference, getNodeId, getResolvedInsideElements]);\n\n // Safari may randomly scroll to the bottom of the page if an input inside a popup has focus\n // when the popup unmounts from the DOM.\n // By blurring it before the popup unmounts, we can prevent this behavior.\n useIsoLayoutEffect(() => {\n if (!isWebKit || open || !floating) {\n return;\n }\n const activeEl = activeElement(ownerDocument(floating));\n if (!isHTMLElement(activeEl) || !isTypeableElement(activeEl)) {\n return;\n }\n if (contains(floating, activeEl)) {\n activeEl.blur();\n }\n }, [open, floating]);\n // Synchronize the `context` & `modal` value to the FloatingPortal context.\n // It will decide whether or not it needs to render its own guards.\n useIsoLayoutEffect(() => {\n if (disabled || !portalContext) {\n return undefined;\n }\n portalContext.setFocusManagerState({\n modal,\n closeOnFocusOut,\n open,\n onOpenChange: store.setOpen,\n domReference\n });\n return () => {\n portalContext.setFocusManagerState(null);\n };\n }, [disabled, portalContext, modal, open, store, closeOnFocusOut, domReference]);\n\n // Keep the floating element tabIndex in sync and clear stale focus records.\n useIsoLayoutEffect(() => {\n if (disabled || !floatingFocusElement) {\n return undefined;\n }\n handleTabIndex(floatingFocusElement, orderRef);\n return () => {\n queueMicrotask(clearDisconnectedPreviouslyFocusedElements);\n };\n }, [disabled, floatingFocusElement, orderRef]);\n const shouldRenderGuards = !disabled && (modal ? !isUntrappedTypeableCombobox : true) && (isInsidePortal || modal);\n return /*#__PURE__*/_jsxs(React.Fragment, {\n children: [shouldRenderGuards && /*#__PURE__*/_jsx(FocusGuard, {\n \"data-type\": \"inside\",\n ref: mergedBeforeGuardRef,\n onFocus: event => {\n if (modal) {\n const els = getTabbableContent();\n enqueueFocus(els[els.length - 1]);\n } else if (portalContext?.portalNode) {\n preventReturnFocusRef.current = false;\n if (isOutsideEvent(event, portalContext.portalNode)) {\n const nextTabbable = getNextTabbable(domReference);\n nextTabbable?.focus();\n } else {\n resolveRef(previousFocusableElement ?? portalContext.beforeOutsideRef)?.focus();\n }\n }\n }\n }), children, shouldRenderGuards && /*#__PURE__*/_jsx(FocusGuard, {\n \"data-type\": \"inside\",\n ref: mergedAfterGuardRef,\n onFocus: event => {\n if (modal) {\n enqueueFocus(getTabbableContent()[0]);\n } else if (portalContext?.portalNode) {\n if (closeOnFocusOut) {\n preventReturnFocusRef.current = true;\n }\n if (isOutsideEvent(event, portalContext.portalNode)) {\n const prevTabbable = getPreviousTabbable(domReference);\n prevTabbable?.focus();\n } else {\n resolveRef(nextFocusableElement ?? portalContext.afterOutsideRef)?.focus();\n }\n }\n }\n })]\n });\n}"],"names":["getEventType","event","lastInteractionType","win","ownerWindow","getTarget","LIST_LIMIT","previouslyFocusedElements","clearDisconnectedPreviouslyFocusedElements","entry","addPreviouslyFocusedElement","element","getNodeName","getPreviouslyFocusedElement","getFirstTabbableElement","container","isTabbable","tabbable","handleTabIndex","floatingFocusElement","orderRef","tabbableContent","focusable","dataTabIndex","tabIndex","FloatingFocusManager","props","context","children","disabled","initialFocus","returnFocus","restoreFocus","modal","closeOnFocusOut","openInteractionType","nextFocusableElement","previousFocusableElement","beforeContentFocusGuardRef","externalTree","getInsideElements","store","open","domReference","floating","events","dataRef","getNodeId","useStableCallback","ignoreInitialFocus","isUntrappedTypeableCombobox","isTypeableCombobox","React","initialFocusRef","useValueAsRef","returnFocusRef","openInteractionTypeRef","tree","useFloatingTree","portalContext","usePortalContext","preventReturnFocusRef","isPointerDownRef","pointerDownOutsideRef","lastFocusedTabbableRef","closeTypeRef","lastInteractionTypeRef","beforeGuardRef","afterGuardRef","mergedBeforeGuardRef","useMergedRefs","mergedAfterGuardRef","blurTimeout","useTimeout","pointerDownTimeout","restoreFocusFrame","useAnimationFrame","isInsidePortal","getFloatingFocusElement","getTabbableContent","getResolvedInsideElements","onKeyDown","contains","activeElement","ownerDocument","stopEvent","doc","addEventListener","clearPointerDownOutside","onPointerDown","target","insideElements","pointerTargetInside","CLICK_TRIGGER_IDENTIFIER","mergeCleanups","handlePointerDown","handleFocusIn","handleFocusOutside","relatedTarget","currentTarget","nodeId","triggers","isRelatedFocusGuard","createAttribute","resolveRef","movedToUnrelatedNode","trigger","getNodeChildren","node","getNodeAncestors","isElementVisible","isHTMLElement","prevTabbable","nodeToFocus","createChangeEventDetails","REASONS.focusOut","markInsideReactTree","domReferenceElement","portalNodes","rootAncestorComboboxDomReference","x","ariaHiddenCleanup","markOthers","markerInsideElements","markerCleanup","useIsoLayoutEffect","previouslyFocusedElement","initialFocusValueOrFn","resolvedInitialFocus","focusableElements","getDefaultFocusElement","elToFocus","enqueueFocus","onOpenChangeLocal","details","REASONS.triggerHover","REASONS.outsidePress","isVirtualClick","isVirtualPointerEvent","isPreventScrollSupported","getReturnElement","returnFocusValueOrFn","resolvedReturnFocusValue","el","fallback","activeEl","isFocusInsideFloatingTree","returnElement","tabbableReturnElement","hasExplicitReturnFocus","isWebKit","isTypeableElement","shouldRenderGuards","_jsxs","_jsx","FocusGuard","els","isOutsideEvent","getNextTabbable","getPreviousTabbable"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA8BA,SAASA,GAAaC,GAAOC,GAAqB;AAChD,QAAMC,IAAMC,GAAYC,EAAUJ,CAAK,CAAC;AACxC,SAAIA,aAAiBE,EAAI,gBAChB,aAELF,aAAiBE,EAAI,aAGhBD,KAAuB,aAE5B,iBAAiBD,IACZA,EAAM,eAAe,aAE1B,aAAaA,IACR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