@rpcbase/ui 0.243.0 → 0.244.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 (618) hide show
  1. package/dist/index105.js +36 -36
  2. package/dist/index117.js +6 -6
  3. package/dist/index120.js +10 -10
  4. package/dist/index122.js +2 -2
  5. package/dist/index123.js +3 -3
  6. package/dist/index124.js +1 -1
  7. package/dist/index126.js +2 -2
  8. package/dist/index128.js +2 -2
  9. package/dist/index149.js.map +1 -1
  10. package/dist/index150.js +3 -3
  11. package/dist/index150.js.map +1 -1
  12. package/dist/index151.js.map +1 -1
  13. package/dist/index152.js.map +1 -1
  14. package/dist/index153.js.map +1 -1
  15. package/dist/index154.js.map +1 -1
  16. package/dist/index155.js.map +1 -1
  17. package/dist/index156.js +1 -1
  18. package/dist/index156.js.map +1 -1
  19. package/dist/index157.js.map +1 -1
  20. package/dist/index158.js.map +1 -1
  21. package/dist/index159.js.map +1 -1
  22. package/dist/index160.js.map +1 -1
  23. package/dist/index161.js.map +1 -1
  24. package/dist/index162.js.map +1 -1
  25. package/dist/index163.js +2 -2
  26. package/dist/index163.js.map +1 -1
  27. package/dist/index164.js +7 -7
  28. package/dist/index164.js.map +1 -1
  29. package/dist/index165.js.map +1 -1
  30. package/dist/index166.js.map +1 -1
  31. package/dist/index167.js +4 -4
  32. package/dist/index167.js.map +1 -1
  33. package/dist/index168.js.map +1 -1
  34. package/dist/index169.js +1 -1
  35. package/dist/index169.js.map +1 -1
  36. package/dist/index170.js.map +1 -1
  37. package/dist/index171.js +58 -14
  38. package/dist/index171.js.map +1 -1
  39. package/dist/index172.js +8 -68
  40. package/dist/index172.js.map +1 -1
  41. package/dist/index173.js +87 -37
  42. package/dist/index173.js.map +1 -1
  43. package/dist/index174.js +19 -13
  44. package/dist/index174.js.map +1 -1
  45. package/dist/index175.js +16 -23
  46. package/dist/index175.js.map +1 -1
  47. package/dist/index176.js +5 -111
  48. package/dist/index176.js.map +1 -1
  49. package/dist/index177.js +6 -13
  50. package/dist/index177.js.map +1 -1
  51. package/dist/index178.js +6 -4
  52. package/dist/index178.js.map +1 -1
  53. package/dist/index179.js +5 -4
  54. package/dist/index179.js.map +1 -1
  55. package/dist/index180.js +7 -5
  56. package/dist/index180.js.map +1 -1
  57. package/dist/index181.js +16 -11
  58. package/dist/index181.js.map +1 -1
  59. package/dist/index182.js +4 -19
  60. package/dist/index182.js.map +1 -1
  61. package/dist/index183.js +5 -11
  62. package/dist/index183.js.map +1 -1
  63. package/dist/index184.js +12 -176
  64. package/dist/index184.js.map +1 -1
  65. package/dist/index185.js +9 -279
  66. package/dist/index185.js.map +1 -1
  67. package/dist/index186.js +13 -4
  68. package/dist/index186.js.map +1 -1
  69. package/dist/index187.js +14 -28
  70. package/dist/index187.js.map +1 -1
  71. package/dist/index188.js +4 -126
  72. package/dist/index188.js.map +1 -1
  73. package/dist/index189.js +5 -63
  74. package/dist/index189.js.map +1 -1
  75. package/dist/index190.js +6 -8
  76. package/dist/index190.js.map +1 -1
  77. package/dist/index191.js +6 -16
  78. package/dist/index191.js.map +1 -1
  79. package/dist/index192.js +53 -29
  80. package/dist/index192.js.map +1 -1
  81. package/dist/index193.js +8 -69
  82. package/dist/index193.js.map +1 -1
  83. package/dist/index194.js +4 -58
  84. package/dist/index194.js.map +1 -1
  85. package/dist/index195.js +4 -8
  86. package/dist/index195.js.map +1 -1
  87. package/dist/index196.js +8 -87
  88. package/dist/index196.js.map +1 -1
  89. package/dist/index197.js +4 -19
  90. package/dist/index197.js.map +1 -1
  91. package/dist/index198.js +4 -16
  92. package/dist/index198.js.map +1 -1
  93. package/dist/index199.js +3 -5
  94. package/dist/index199.js.map +1 -1
  95. package/dist/index200.js +10 -5
  96. package/dist/index200.js.map +1 -1
  97. package/dist/index201.js +9 -6
  98. package/dist/index201.js.map +1 -1
  99. package/dist/index202.js +9 -4
  100. package/dist/index202.js.map +1 -1
  101. package/dist/index203.js +10 -6
  102. package/dist/index203.js.map +1 -1
  103. package/dist/index204.js +10 -16
  104. package/dist/index204.js.map +1 -1
  105. package/dist/index205.js +9 -4
  106. package/dist/index205.js.map +1 -1
  107. package/dist/index206.js +6 -4
  108. package/dist/index206.js.map +1 -1
  109. package/dist/index207.js +5 -12
  110. package/dist/index207.js.map +1 -1
  111. package/dist/index208.js +4 -9
  112. package/dist/index208.js.map +1 -1
  113. package/dist/index209.js +5 -13
  114. package/dist/index209.js.map +1 -1
  115. package/dist/index210.js +6 -13
  116. package/dist/index210.js.map +1 -1
  117. package/dist/index211.js +5 -4
  118. package/dist/index211.js.map +1 -1
  119. package/dist/index212.js +16 -5
  120. package/dist/index212.js.map +1 -1
  121. package/dist/index213.js +7 -6
  122. package/dist/index213.js.map +1 -1
  123. package/dist/index214.js +10 -5
  124. package/dist/index214.js.map +1 -1
  125. package/dist/index215.js +10 -54
  126. package/dist/index215.js.map +1 -1
  127. package/dist/index216.js +21 -8
  128. package/dist/index216.js.map +1 -1
  129. package/dist/index217.js +8 -4
  130. package/dist/index217.js.map +1 -1
  131. package/dist/index218.js +9 -4
  132. package/dist/index218.js.map +1 -1
  133. package/dist/index219.js +9 -8
  134. package/dist/index219.js.map +1 -1
  135. package/dist/index220.js +4 -4
  136. package/dist/index220.js.map +1 -1
  137. package/dist/index221.js +5 -4
  138. package/dist/index221.js.map +1 -1
  139. package/dist/index222.js +16 -3
  140. package/dist/index222.js.map +1 -1
  141. package/dist/index223.js +9 -10
  142. package/dist/index223.js.map +1 -1
  143. package/dist/index224.js +18 -9
  144. package/dist/index224.js.map +1 -1
  145. package/dist/index225.js +20 -9
  146. package/dist/index225.js.map +1 -1
  147. package/dist/index226.js +12 -10
  148. package/dist/index226.js.map +1 -1
  149. package/dist/index227.js +29 -10
  150. package/dist/index227.js.map +1 -1
  151. package/dist/index228.js +12 -9
  152. package/dist/index228.js.map +1 -1
  153. package/dist/index229.js +25 -6
  154. package/dist/index229.js.map +1 -1
  155. package/dist/index230.js +5 -5
  156. package/dist/index230.js.map +1 -1
  157. package/dist/index231.js +20 -5
  158. package/dist/index231.js.map +1 -1
  159. package/dist/index232.js +66 -5
  160. package/dist/index232.js.map +1 -1
  161. package/dist/index233.js +6 -6
  162. package/dist/index233.js.map +1 -1
  163. package/dist/index234.js +5 -5
  164. package/dist/index234.js.map +1 -1
  165. package/dist/index235.js +11 -16
  166. package/dist/index235.js.map +1 -1
  167. package/dist/index236.js +3 -7
  168. package/dist/index236.js.map +1 -1
  169. package/dist/index237.js +49 -9
  170. package/dist/index237.js.map +1 -1
  171. package/dist/index238.js +4 -11
  172. package/dist/index238.js.map +1 -1
  173. package/dist/index239.js +28 -20
  174. package/dist/index239.js.map +1 -1
  175. package/dist/index240.js +16 -8
  176. package/dist/index240.js.map +1 -1
  177. package/dist/index241.js +5 -9
  178. package/dist/index241.js.map +1 -1
  179. package/dist/index242.js +21 -9
  180. package/dist/index242.js.map +1 -1
  181. package/dist/index243.js +53 -4
  182. package/dist/index243.js.map +1 -1
  183. package/dist/index244.js +20 -5
  184. package/dist/index244.js.map +1 -1
  185. package/dist/index245.js +41 -16
  186. package/dist/index245.js.map +1 -1
  187. package/dist/index246.js +39 -9
  188. package/dist/index246.js.map +1 -1
  189. package/dist/index247.js +46 -19
  190. package/dist/index247.js.map +1 -1
  191. package/dist/index248.js +20 -17
  192. package/dist/index248.js.map +1 -1
  193. package/dist/index249.js +19 -12
  194. package/dist/index249.js.map +1 -1
  195. package/dist/index250.js +19 -28
  196. package/dist/index250.js.map +1 -1
  197. package/dist/index251.js +68 -10
  198. package/dist/index251.js.map +1 -1
  199. package/dist/index252.js +17 -25
  200. package/dist/index252.js.map +1 -1
  201. package/dist/index253.js +3 -5
  202. package/dist/index253.js.map +1 -1
  203. package/dist/index254.js +11 -154
  204. package/dist/index254.js.map +1 -1
  205. package/dist/index255.js +29 -31
  206. package/dist/index255.js.map +1 -1
  207. package/dist/index256.js +13 -11
  208. package/dist/index256.js.map +1 -1
  209. package/dist/index257.js +15 -46
  210. package/dist/index257.js.map +1 -1
  211. package/dist/index258.js +36 -9
  212. package/dist/index258.js.map +1 -1
  213. package/dist/index259.js +69 -11
  214. package/dist/index259.js.map +1 -1
  215. package/dist/index260.js +238 -42
  216. package/dist/index260.js.map +1 -1
  217. package/dist/index261.js +245 -90
  218. package/dist/index261.js.map +1 -1
  219. package/dist/index262.js +66 -84
  220. package/dist/index262.js.map +1 -1
  221. package/dist/index263.js +86 -92
  222. package/dist/index263.js.map +1 -1
  223. package/dist/index264.js +175 -51
  224. package/dist/index264.js.map +1 -1
  225. package/dist/index265.js +83 -11
  226. package/dist/index265.js.map +1 -1
  227. package/dist/index266.js +13 -5
  228. package/dist/index266.js.map +1 -1
  229. package/dist/index267.js +3 -37
  230. package/dist/index267.js.map +1 -1
  231. package/dist/index268.js +29 -8
  232. package/dist/index268.js.map +1 -1
  233. package/dist/index269.js +16 -135
  234. package/dist/index269.js.map +1 -1
  235. package/dist/index270.js +38 -18
  236. package/dist/index270.js.map +1 -1
  237. package/dist/index271.js +34 -15
  238. package/dist/index271.js.map +1 -1
  239. package/dist/index272.js +68 -3
  240. package/dist/index272.js.map +1 -1
  241. package/dist/index273.js +15 -34
  242. package/dist/index273.js.map +1 -1
  243. package/dist/index274.js +3 -20
  244. package/dist/index274.js.map +1 -1
  245. package/dist/index275.js +111 -8
  246. package/dist/index275.js.map +1 -1
  247. package/dist/index276.js +26 -9
  248. package/dist/index276.js.map +1 -1
  249. package/dist/index277.js +27 -23
  250. package/dist/index277.js.map +1 -1
  251. package/dist/index278.js +4 -29
  252. package/dist/index278.js.map +1 -1
  253. package/dist/index279.js +125 -15
  254. package/dist/index279.js.map +1 -1
  255. package/dist/index280.js +5 -20
  256. package/dist/index280.js.map +1 -1
  257. package/dist/index281.js +75 -63
  258. package/dist/index281.js.map +1 -1
  259. package/dist/index282.js +272 -6
  260. package/dist/index282.js.map +1 -1
  261. package/dist/index283.js +10 -4
  262. package/dist/index283.js.map +1 -1
  263. package/dist/index284.js +27 -11
  264. package/dist/index284.js.map +1 -1
  265. package/dist/index285.js +16 -4
  266. package/dist/index285.js.map +1 -1
  267. package/dist/index286.js +10 -50
  268. package/dist/index286.js.map +1 -1
  269. package/dist/index287.js +26 -4
  270. package/dist/index287.js.map +1 -1
  271. package/dist/index288.js +15 -28
  272. package/dist/index288.js.map +1 -1
  273. package/dist/index289.js +124 -15
  274. package/dist/index289.js.map +1 -1
  275. package/dist/index290.js +5 -5
  276. package/dist/index290.js.map +1 -1
  277. package/dist/index291.js +64 -20
  278. package/dist/index291.js.map +1 -1
  279. package/dist/index292.js +13 -53
  280. package/dist/index292.js.map +1 -1
  281. package/dist/index293.js +14 -21
  282. package/dist/index293.js.map +1 -1
  283. package/dist/index294.js +7 -41
  284. package/dist/index294.js.map +1 -1
  285. package/dist/index295.js +11 -40
  286. package/dist/index295.js.map +1 -1
  287. package/dist/index296.js +6 -46
  288. package/dist/index296.js.map +1 -1
  289. package/dist/index297.js +3 -20
  290. package/dist/index297.js.map +1 -1
  291. package/dist/index298.js +10 -70
  292. package/dist/index298.js.map +1 -1
  293. package/dist/index299.js +7 -17
  294. package/dist/index299.js.map +1 -1
  295. package/dist/index300.js +133 -3
  296. package/dist/index300.js.map +1 -1
  297. package/dist/index301.js +279 -11
  298. package/dist/index301.js.map +1 -1
  299. package/dist/index302.js +398 -12
  300. package/dist/index302.js.map +1 -1
  301. package/dist/index303.js +5 -19
  302. package/dist/index303.js.map +1 -1
  303. package/dist/index304.js +51 -35
  304. package/dist/index304.js.map +1 -1
  305. package/dist/index305.js +11 -239
  306. package/dist/index305.js.map +1 -1
  307. package/dist/index306.js +22 -247
  308. package/dist/index306.js.map +1 -1
  309. package/dist/index307.js +11 -68
  310. package/dist/index307.js.map +1 -1
  311. package/dist/index308.js +4 -99
  312. package/dist/index308.js.map +1 -1
  313. package/dist/index309.js +14 -83
  314. package/dist/index309.js.map +1 -1
  315. package/dist/index310.js +4 -4
  316. package/dist/index310.js.map +1 -1
  317. package/dist/index311.js +5 -30
  318. package/dist/index311.js.map +1 -1
  319. package/dist/index312.js +10 -15
  320. package/dist/index312.js.map +1 -1
  321. package/dist/index313.js +64 -35
  322. package/dist/index313.js.map +1 -1
  323. package/dist/index314.js +7 -16
  324. package/dist/index314.js.map +1 -1
  325. package/dist/index315.js +154 -3
  326. package/dist/index315.js.map +1 -1
  327. package/dist/index316.js +31 -25
  328. package/dist/index316.js.map +1 -1
  329. package/dist/index317.js +11 -28
  330. package/dist/index317.js.map +1 -1
  331. package/dist/index318.js +50 -4
  332. package/dist/index318.js.map +1 -1
  333. package/dist/index319.js +9 -78
  334. package/dist/index319.js.map +1 -1
  335. package/dist/index320.js +10 -271
  336. package/dist/index320.js.map +1 -1
  337. package/dist/index321.js +43 -11
  338. package/dist/index321.js.map +1 -1
  339. package/dist/index322.js +97 -10
  340. package/dist/index322.js.map +1 -1
  341. package/dist/index323.js +86 -25
  342. package/dist/index323.js.map +1 -1
  343. package/dist/index324.js +104 -15
  344. package/dist/index324.js.map +1 -1
  345. package/dist/index325.js +50 -123
  346. package/dist/index325.js.map +1 -1
  347. package/dist/index326.js +11 -5
  348. package/dist/index326.js.map +1 -1
  349. package/dist/index327.js +4 -65
  350. package/dist/index327.js.map +1 -1
  351. package/dist/index328.js +37 -13
  352. package/dist/index328.js.map +1 -1
  353. package/dist/index329.js +8 -7
  354. package/dist/index329.js.map +1 -1
  355. package/dist/index330.js +135 -5
  356. package/dist/index330.js.map +1 -1
  357. package/dist/index331.js +17 -3
  358. package/dist/index331.js.map +1 -1
  359. package/dist/index332.js +15 -10
  360. package/dist/index332.js.map +1 -1
  361. package/dist/index333.js +3 -7
  362. package/dist/index333.js.map +1 -1
  363. package/dist/index334.js +32 -129
  364. package/dist/index334.js.map +1 -1
  365. package/dist/index335.js +18 -397
  366. package/dist/index335.js.map +1 -1
  367. package/dist/index336.js +10 -5
  368. package/dist/index336.js.map +1 -1
  369. package/dist/index337.js +8 -52
  370. package/dist/index337.js.map +1 -1
  371. package/dist/index338.js +24 -11
  372. package/dist/index338.js.map +1 -1
  373. package/dist/index339.js +28 -27
  374. package/dist/index339.js.map +1 -1
  375. package/dist/index34.js +2 -2
  376. package/dist/index34.js.map +1 -1
  377. package/dist/index340.js +16 -11
  378. package/dist/index340.js.map +1 -1
  379. package/dist/index341.js +4 -8
  380. package/dist/index341.js.map +1 -1
  381. package/dist/index342.js +18 -12
  382. package/dist/index342.js.map +1 -1
  383. package/dist/index343.js +12 -8
  384. package/dist/index343.js.map +1 -1
  385. package/dist/index344.js +8 -13
  386. package/dist/index344.js.map +1 -1
  387. package/dist/index345.js +11 -3
  388. package/dist/index345.js.map +1 -1
  389. package/dist/index346.js +8 -3
  390. package/dist/index346.js.map +1 -1
  391. package/dist/index347.js +12 -16
  392. package/dist/index347.js.map +1 -1
  393. package/dist/index348.js +3 -61
  394. package/dist/index348.js.map +1 -1
  395. package/dist/index349.js +3 -66
  396. package/dist/index349.js.map +1 -1
  397. package/dist/index35.js +5 -5
  398. package/dist/index35.js.map +1 -1
  399. package/dist/index350.js +4 -52
  400. package/dist/index350.js.map +1 -1
  401. package/dist/index351.js +15 -6
  402. package/dist/index351.js.map +1 -1
  403. package/dist/index352.js +10 -7
  404. package/dist/index352.js.map +1 -1
  405. package/dist/index353.js +6 -5
  406. package/dist/index353.js.map +1 -1
  407. package/dist/index354.js +4 -11
  408. package/dist/index354.js.map +1 -1
  409. package/dist/index355.js +3 -22
  410. package/dist/index355.js.map +1 -1
  411. package/dist/index356.js +8 -16
  412. package/dist/index356.js.map +1 -1
  413. package/dist/index357.js +52 -8
  414. package/dist/index357.js.map +1 -1
  415. package/dist/index358.js +15 -143
  416. package/dist/index358.js.map +1 -1
  417. package/dist/index359.js +8 -80
  418. package/dist/index359.js.map +1 -1
  419. package/dist/index36.js +11 -11
  420. package/dist/index36.js.map +1 -1
  421. package/dist/index360.js +5 -61
  422. package/dist/index360.js.map +1 -1
  423. package/dist/index361.js +21 -15
  424. package/dist/index361.js.map +1 -1
  425. package/dist/index362.js +45 -5
  426. package/dist/index362.js.map +1 -1
  427. package/dist/index363.js +16 -16
  428. package/dist/index363.js.map +1 -1
  429. package/dist/index364.js +5 -13
  430. package/dist/index364.js.map +1 -1
  431. package/dist/index365.js +200 -4
  432. package/dist/index365.js.map +1 -1
  433. package/dist/index366.js +73 -20
  434. package/dist/index366.js.map +1 -1
  435. package/dist/index367.js +124 -4
  436. package/dist/index367.js.map +1 -1
  437. package/dist/index368.js +16 -10
  438. package/dist/index368.js.map +1 -1
  439. package/dist/index369.js +61 -5
  440. package/dist/index369.js.map +1 -1
  441. package/dist/index37.js +3 -3
  442. package/dist/index37.js.map +1 -1
  443. package/dist/index370.js +67 -3
  444. package/dist/index370.js.map +1 -1
  445. package/dist/index371.js +11 -20
  446. package/dist/index371.js.map +1 -1
  447. package/dist/index372.js +21 -44
  448. package/dist/index372.js.map +1 -1
  449. package/dist/index373.js +143 -16
  450. package/dist/index373.js.map +1 -1
  451. package/dist/index374.js +79 -4
  452. package/dist/index374.js.map +1 -1
  453. package/dist/index375.js +59 -198
  454. package/dist/index375.js.map +1 -1
  455. package/dist/index376.js +4 -73
  456. package/dist/index376.js.map +1 -1
  457. package/dist/index377.js +19 -122
  458. package/dist/index377.js.map +1 -1
  459. package/dist/index378.js +4 -8
  460. package/dist/index378.js.map +1 -1
  461. package/dist/index379.js +5 -27
  462. package/dist/index379.js.map +1 -1
  463. package/dist/index38.js +4 -4
  464. package/dist/index38.js.map +1 -1
  465. package/dist/index380.js +4 -138
  466. package/dist/index380.js.map +1 -1
  467. package/dist/index381.js +15 -12
  468. package/dist/index381.js.map +1 -1
  469. package/dist/index382.js +8 -46
  470. package/dist/index382.js.map +1 -1
  471. package/dist/index383.js +5 -3
  472. package/dist/index383.js.map +1 -1
  473. package/dist/index384.js +4 -21
  474. package/dist/index384.js.map +1 -1
  475. package/dist/index385.js +542 -72
  476. package/dist/index385.js.map +1 -1
  477. package/dist/index386.js +46 -11
  478. package/dist/index386.js.map +1 -1
  479. package/dist/index387.js +17 -3
  480. package/dist/index387.js.map +1 -1
  481. package/dist/index388.js +5 -71
  482. package/dist/index388.js.map +1 -1
  483. package/dist/index389.js +7 -35
  484. package/dist/index389.js.map +1 -1
  485. package/dist/index39.js +5 -5
  486. package/dist/index39.js.map +1 -1
  487. package/dist/index390.js +7 -7
  488. package/dist/index390.js.map +1 -1
  489. package/dist/index391.js +7 -15
  490. package/dist/index391.js.map +1 -1
  491. package/dist/index392.js +11 -4
  492. package/dist/index392.js.map +1 -1
  493. package/dist/index393.js +8 -4
  494. package/dist/index393.js.map +1 -1
  495. package/dist/index394.js +13 -4
  496. package/dist/index394.js.map +1 -1
  497. package/dist/index395.js +3 -16
  498. package/dist/index395.js.map +1 -1
  499. package/dist/index396.js +3 -9
  500. package/dist/index396.js.map +1 -1
  501. package/dist/index397.js +7 -6
  502. package/dist/index397.js.map +1 -1
  503. package/dist/index398.js +12 -4
  504. package/dist/index398.js.map +1 -1
  505. package/dist/index399.js +44 -543
  506. package/dist/index399.js.map +1 -1
  507. package/dist/index40.js +3 -3
  508. package/dist/index40.js.map +1 -1
  509. package/dist/index400.js +135 -44
  510. package/dist/index400.js.map +1 -1
  511. package/dist/index401.js +8 -17
  512. package/dist/index401.js.map +1 -1
  513. package/dist/index402.js +27 -6
  514. package/dist/index402.js.map +1 -1
  515. package/dist/index403.js +3 -7
  516. package/dist/index403.js.map +1 -1
  517. package/dist/index404.js +21 -6
  518. package/dist/index404.js.map +1 -1
  519. package/dist/index405.js +75 -7
  520. package/dist/index405.js.map +1 -1
  521. package/dist/index406.js +12 -12
  522. package/dist/index406.js.map +1 -1
  523. package/dist/index407.js +3 -8
  524. package/dist/index407.js.map +1 -1
  525. package/dist/index408.js +71 -12
  526. package/dist/index408.js.map +1 -1
  527. package/dist/index409.js +36 -3
  528. package/dist/index409.js.map +1 -1
  529. package/dist/index41.js +10 -10
  530. package/dist/index41.js.map +1 -1
  531. package/dist/index410.js +16 -3
  532. package/dist/index410.js.map +1 -1
  533. package/dist/index411.js +4 -14
  534. package/dist/index411.js.map +1 -1
  535. package/dist/index412.js +56 -3
  536. package/dist/index412.js.map +1 -1
  537. package/dist/index413.js +66 -490
  538. package/dist/index413.js.map +1 -1
  539. package/dist/index414.js +30 -67
  540. package/dist/index414.js.map +1 -1
  541. package/dist/index415.js +9 -31
  542. package/dist/index415.js.map +1 -1
  543. package/dist/index416.js +153 -9
  544. package/dist/index416.js.map +1 -1
  545. package/dist/index417.js +97 -142
  546. package/dist/index417.js.map +1 -1
  547. package/dist/index418.js +8 -108
  548. package/dist/index418.js.map +1 -1
  549. package/dist/index419.js +2 -5
  550. package/dist/index419.js.map +1 -1
  551. package/dist/index420.js +42 -54
  552. package/dist/index420.js.map +1 -1
  553. package/dist/index421.js +55 -7
  554. package/dist/index421.js.map +1 -1
  555. package/dist/index422.js +8 -2
  556. package/dist/index422.js.map +1 -1
  557. package/dist/index423.js +2 -44
  558. package/dist/index423.js.map +1 -1
  559. package/dist/index424.js +54 -55
  560. package/dist/index424.js.map +1 -1
  561. package/dist/index425.js +55 -7
  562. package/dist/index425.js.map +1 -1
  563. package/dist/index426.js +3 -2
  564. package/dist/index426.js.map +1 -1
  565. package/dist/index427.js +14 -54
  566. package/dist/index427.js.map +1 -1
  567. package/dist/index428.js +487 -51
  568. package/dist/index428.js.map +1 -1
  569. package/dist/index429.js.map +1 -1
  570. package/dist/index430.js +2 -16
  571. package/dist/index430.js.map +1 -1
  572. package/dist/index431.js +2 -29
  573. package/dist/index431.js.map +1 -1
  574. package/dist/index432.js +2 -13
  575. package/dist/index432.js.map +1 -1
  576. package/dist/index433.js +2 -7
  577. package/dist/index433.js.map +1 -1
  578. package/dist/index434.js +16 -2
  579. package/dist/index434.js.map +1 -1
  580. package/dist/index435.js +29 -2
  581. package/dist/index435.js.map +1 -1
  582. package/dist/index436.js +13 -2
  583. package/dist/index436.js.map +1 -1
  584. package/dist/index437.js +7 -2
  585. package/dist/index437.js.map +1 -1
  586. package/dist/index44.js.map +1 -1
  587. package/dist/index48.js.map +1 -1
  588. package/dist/index49.js +36 -36
  589. package/dist/index49.js.map +1 -1
  590. package/dist/index50.js +29 -29
  591. package/dist/index50.js.map +1 -1
  592. package/dist/index51.js +2 -2
  593. package/dist/index51.js.map +1 -1
  594. package/dist/index52.js +12 -12
  595. package/dist/index52.js.map +1 -1
  596. package/dist/index53.js +4 -4
  597. package/dist/index53.js.map +1 -1
  598. package/dist/index54.js +1 -1
  599. package/dist/index54.js.map +1 -1
  600. package/dist/index55.js +21 -21
  601. package/dist/index55.js.map +1 -1
  602. package/dist/index56.js +5 -5
  603. package/dist/index56.js.map +1 -1
  604. package/dist/index57.js +5 -5
  605. package/dist/index57.js.map +1 -1
  606. package/dist/index58.js +8 -8
  607. package/dist/index58.js.map +1 -1
  608. package/dist/index59.js +5 -5
  609. package/dist/index59.js.map +1 -1
  610. package/dist/index60.js +17 -17
  611. package/dist/index60.js.map +1 -1
  612. package/dist/index61.js +5 -5
  613. package/dist/index61.js.map +1 -1
  614. package/dist/index62.js +3 -3
  615. package/dist/index62.js.map +1 -1
  616. package/dist/index77.js.map +1 -1
  617. package/dist/index78.js.map +1 -1
  618. package/package.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"index262.js","sources":["../node_modules/libphonenumber-js/es6/ParseError.js"],"sourcesContent":["function _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }\nfunction _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", { writable: !1 }), e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nfunction _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\"); }\nfunction _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }\nfunction _possibleConstructorReturn(t, e) { if (e && (\"object\" == _typeof(e) || \"function\" == typeof e)) return e; if (void 0 !== e) throw new TypeError(\"Derived constructors may only return object or undefined\"); return _assertThisInitialized(t); }\nfunction _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); return e; }\nfunction _inherits(t, e) { if (\"function\" != typeof e && null !== e) throw new TypeError(\"Super expression must either be null or a function\"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, \"prototype\", { writable: !1 }), e && _setPrototypeOf(t, e); }\nfunction _wrapNativeSuper(t) { var r = \"function\" == typeof Map ? new Map() : void 0; return _wrapNativeSuper = function _wrapNativeSuper(t) { if (null === t || !_isNativeFunction(t)) return t; if (\"function\" != typeof t) throw new TypeError(\"Super expression must either be null or a function\"); if (void 0 !== r) { if (r.has(t)) return r.get(t); r.set(t, Wrapper); } function Wrapper() { return _construct(t, arguments, _getPrototypeOf(this).constructor); } return Wrapper.prototype = Object.create(t.prototype, { constructor: { value: Wrapper, enumerable: !1, writable: !0, configurable: !0 } }), _setPrototypeOf(Wrapper, t); }, _wrapNativeSuper(t); }\nfunction _construct(t, e, r) { if (_isNativeReflectConstruct()) return Reflect.construct.apply(null, arguments); var o = [null]; o.push.apply(o, e); var p = new (t.bind.apply(t, o))(); return r && _setPrototypeOf(p, r.prototype), p; }\nfunction _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }\nfunction _isNativeFunction(t) { try { return -1 !== Function.toString.call(t).indexOf(\"[native code]\"); } catch (n) { return \"function\" == typeof t; } }\nfunction _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }\nfunction _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }\n// https://stackoverflow.com/a/46971044/970769\n// \"Breaking changes in Typescript 2.1\"\n// \"Extending built-ins like Error, Array, and Map may no longer work.\"\n// \"As a recommendation, you can manually adjust the prototype immediately after any super(...) calls.\"\n// https://github.com/Microsoft/TypeScript-wiki/blob/main/Breaking-Changes.md#extending-built-ins-like-error-array-and-map-may-no-longer-work\nvar ParseError = /*#__PURE__*/function (_Error) {\n function ParseError(code) {\n var _this;\n _classCallCheck(this, ParseError);\n _this = _callSuper(this, ParseError, [code]);\n // Set the prototype explicitly.\n // Any subclass of FooError will have to manually set the prototype as well.\n Object.setPrototypeOf(_this, ParseError.prototype);\n _this.name = _this.constructor.name;\n return _this;\n }\n _inherits(ParseError, _Error);\n return _createClass(ParseError);\n}(/*#__PURE__*/_wrapNativeSuper(Error));\nexport { ParseError as default };\n//# sourceMappingURL=ParseError.js.map"],"names":["_typeof","o","_createClass","e","r","t","_classCallCheck","a","n","_callSuper","_getPrototypeOf","_possibleConstructorReturn","_isNativeReflectConstruct","_assertThisInitialized","_inherits","_setPrototypeOf","_wrapNativeSuper","_isNativeFunction","Wrapper","_construct","p","ParseError","_Error","code","_this"],"mapp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AC,CAAC,CAAC;AAAA,EAAG,QAAY;AAAA,EAAC;AAAE,UAAQO,IAA4B,WAAqC;AAAE,WAAO,CAAC,CAACP;AAAA,EAAG,GAAC;AAAK;AAClP,SAASY,EAAkBZ,GAAG;AAAE,MAAI;AAAE,WAAc,SAAS,SAAS,KAAKA,CAAC,EAAE,QAAQ,eAAe,MAAxD;AAAA,EAA2D,QAAY;AAAE,WAAqB,OAAOA,KAArB;AAAA,EAAwB;AAAE;AACvJ,SAASU,EAAgBV,GAAGF,GAAG;AAAE,SAAOY,IAAkB,OAAO,iBAAiB,OAAO,eAAe,KAAI,IAAK,SAAUV,GAAG,GAAG;AAAE,WAAOA,EAAE,YAAY,GAAGA;AAAA,EAAG,GAAGU,EAAgBV,GAAGF,CAAC;AAAG;AACxL,SAASO,EAAgBL,GAAG;AAAE,SAAOK,IAAkB,OAAO,iBAAiB,OAAO,eAAe,KAAI,IAAK,SAAU,GAAG;AAAE,WAAO,EAAE,aAAa,OAAO,eAAe,CAAC;AAAA,EAAG,GAAGA,EAAgBL,CAAC;AAAG;AAMjM,IAACgB,IAA0B,0BAAUC,GAAQ;AAC9C,WAASD,EAAWE,GAAM;AACxB,QAAIC;AACJ,WAAAlB,EAAgB,MAAMe,CAAU,GAChCG,IAAQf,EAAW,MAAMY,GAAY,CAACE,CAAI,CAAC,GAG3C,OAAO,eAAeC,GAAOH,EAAW,SAAS,GACjDG,EAAM,OAAOA,EAAM,YAAY,MACxBA;AAAA,EACT;AACA,SAAAV,EAAUO,GAAYC,CAAM,GACrBpB,EAAamB,CAAU;AAChC,GAAe,gBAAAL,EAAiB,KAAK,CAAC;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index262.js","sources":["../../../node_modules/@base-ui/react/floating-ui-react/hooks/useTypeahead.mjs"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { useIsoLayoutEffect } from '@base-ui/utils/useIsoLayoutEffect';\nimport { useStableCallback } from '@base-ui/utils/useStableCallback';\nimport { useTimeout } from '@base-ui/utils/useTimeout';\nimport { EMPTY_ARRAY } from '@base-ui/utils/empty';\nimport { isElementVisible, isListIndexDisabled } from \"../utils/composite.mjs\";\nimport { contains } from \"../utils/element.mjs\";\nimport { stopEvent } from \"../utils/event.mjs\";\n/**\n * Provides a matching callback that can be used to focus an item as the user\n * types, often used in tandem with `useListNavigation()`.\n * @see https://floating-ui.com/docs/useTypeahead\n */\nexport function useTypeahead(context, props) {\n const {\n listRef,\n elementsRef,\n activeIndex,\n onMatch: onMatchProp,\n disabledIndices,\n onTyping,\n enabled = true,\n resetMs = 750,\n selectedIndex = null\n } = props;\n const store = 'rootStore' in context ? context.rootStore : context;\n const open = store.useState('open');\n const timeout = useTimeout();\n const stringRef = React.useRef('');\n const prevIndexRef = React.useRef(selectedIndex ?? activeIndex ?? -1);\n const matchIndexRef = React.useRef(null);\n const onKeyDown = useStableCallback(event => {\n function isVisible(index) {\n const element = elementsRef?.current[index];\n return !element || isElementVisible(element);\n }\n function isItemAvailable(index) {\n if (!isVisible(index)) {\n return false;\n }\n // Visibility is handled above; pass an empty element list so `isListIndexDisabled`\n // resolves only the explicit `disabledIndices` (array/predicate) and skips its own\n // visibility/attribute fallbacks. Consumers that don't opt in keep matching every\n // visible item.\n return disabledIndices == null || !isListIndexDisabled(EMPTY_ARRAY, index, disabledIndices);\n }\n function getMatchingIndex(list, string, startIndex = 0) {\n if (list.length === 0) {\n return -1;\n }\n const normalizedStartIndex = (startIndex % list.length + list.length) % list.length;\n const lowerString = string.toLowerCase();\n for (let offset = 0; offset < list.length; offset += 1) {\n const index = (normalizedStartIndex + offset) % list.length;\n const text = list[index];\n if (!text?.toLowerCase().startsWith(lowerString) || !isItemAvailable(index)) {\n continue;\n }\n return index;\n }\n return -1;\n }\n const listContent = listRef.current;\n if (stringRef.current.length > 0 && event.key === ' ') {\n // Space should continue the in-progress typeahead session.\n stopEvent(event);\n onTyping?.(true);\n }\n if (stringRef.current.length > 0 && stringRef.current[0] !== ' ') {\n if (getMatchingIndex(listContent, stringRef.current) === -1 && event.key !== ' ') {\n onTyping?.(false);\n }\n }\n if (listContent == null ||\n // Character key.\n event.key.length !== 1 ||\n // Modifier key.\n event.ctrlKey || event.metaKey || event.altKey) {\n return;\n }\n if (open && event.key !== ' ') {\n stopEvent(event);\n onTyping?.(true);\n }\n\n // Capture whether this is a new typing session before mutating the string.\n const isNewSession = stringRef.current === '';\n if (isNewSession) {\n prevIndexRef.current = selectedIndex ?? activeIndex ?? -1;\n }\n\n // Bail out if the list contains a word like \"llama\" or \"aaron\". TODO:\n // allow it in this case, too. Unavailable items are skipped while matching, so\n // they must be ignored here as well — otherwise a hidden or disabled double-letter\n // label would block rapid cycling through the available items.\n const allowRapidSuccessionOfFirstLetter = listContent.every((text, index) => text && isItemAvailable(index) ? text[0]?.toLowerCase() !== text[1]?.toLowerCase() : true);\n\n // Allows the user to cycle through items that start with the same letter\n // in rapid succession.\n if (allowRapidSuccessionOfFirstLetter && stringRef.current === event.key) {\n stringRef.current = '';\n prevIndexRef.current = matchIndexRef.current;\n }\n stringRef.current += event.key;\n timeout.start(resetMs, () => {\n stringRef.current = '';\n prevIndexRef.current = matchIndexRef.current;\n onTyping?.(false);\n });\n\n // Compute the starting index for this search.\n // If this is a new typing session (string is empty), base it on the current\n // selection/active item; otherwise continue from the last matched index.\n const prevIndex = isNewSession ? selectedIndex ?? activeIndex ?? -1 : prevIndexRef.current;\n const startIndex = (prevIndex ?? 0) + 1;\n const index = getMatchingIndex(listContent, stringRef.current, startIndex);\n if (index !== -1) {\n onMatchProp?.(index);\n matchIndexRef.current = index;\n } else if (event.key !== ' ') {\n stringRef.current = '';\n onTyping?.(false);\n }\n });\n const onBlur = useStableCallback(event => {\n const next = event.relatedTarget;\n const currentDomReferenceElement = store.select('domReferenceElement');\n const currentFloatingElement = store.select('floatingElement');\n const withinComposite = contains(currentDomReferenceElement, next) || contains(currentFloatingElement, next);\n\n // Keep the session if focus moves within the composite (reference <-> floating).\n if (withinComposite) {\n return;\n }\n\n // End the current typing session when focus leaves the composite entirely.\n timeout.clear();\n stringRef.current = '';\n prevIndexRef.current = matchIndexRef.current;\n onTyping?.(false);\n });\n useIsoLayoutEffect(() => {\n if (!open && selectedIndex !== null) {\n return;\n }\n timeout.clear();\n matchIndexRef.current = null;\n if (stringRef.current !== '') {\n stringRef.current = '';\n }\n }, [open, selectedIndex, timeout]);\n useIsoLayoutEffect(() => {\n // Sync arrow key navigation but not typeahead navigation.\n if (open && stringRef.current === '') {\n prevIndexRef.current = selectedIndex ?? activeIndex ?? -1;\n }\n }, [open, selectedIndex, activeIndex]);\n const sharedProps = React.useMemo(() => ({\n onKeyDown,\n onBlur\n }), [onKeyDown, onBlur]);\n return React.useMemo(() => enabled ? {\n reference: sharedProps,\n floating: sharedProps\n } : {}, [enabled, sharedProps]);\n}"],"names":["useTypeahead","context","props","listRef","elementsRef","activeIndex","onMatchProp","disabledIndices","onTyping","enabled","resetMs","selectedIndex","store","open","timeout","useTimeout","stringRef","React","prevIndexRef","matchIndexRef","onKeyDown","useStableCallback","event","isVisible","index","element","isElementVisible","isItemAvailable","isListIndexDisabled","EMPTY_ARRAY","getMatchingIndex","list","string","startIndex","normalizedStartIndex","lowerString","offset","listContent","stopEvent","isNewSession","text","onBlur","next","currentDomReferenceElement","currentFloatingElement","contains","useIsoLayoutEffect","sharedProps"],"mappings":";;;;;;;;AAeO,SAASA,GAAaC,GAASC,GAAO;AAC3C,QAAM;AAAA,IACJ,SAAAC;AAAA,IACA,aAAAC;AAAA,IACA,aAAAC;AAAA,IACA,SAASC;AAAA,IACT,iBAAAC;AAAA,IACA,UAAAC;AAAA,IACA,SAAAC,IAAU;AAAA,IACV,SAAAC,IAAU;AAAA,IACV,eAAAC,IAAgB;AAAA,EACpB,IAAMT,GACEU,IAAQ,eAAeX,IAAUA,EAAQ,YAAYA,GACrDY,IAAOD,EAAM,SAAS,MAAM,GAC5BE,IAAUC,EAAU,GACpBC,IAAYC,EAAM,OAAO,EAAE,GAC3BC,I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,OAChCE,EAAa,UAAUP,KAAiBN,KAAe;AAAA,EAE3D,GAAG,CAACQ,GAAMF,GAAeN,CAAW,CAAC;AACrC,QAAM0C,IAAc9B,EAAM,QAAQ,OAAO;AAAA,IACvC,WAAAG;AAAA,IACA,QAAAqB;AAAA,EACJ,IAAM,CAACrB,GAAWqB,CAAM,CAAC;AACvB,SAAOxB,EAAM,QAAQ,MAAMR,IAAU;AAAA,IACnC,WAAWsC;AAAA,IACX,UAAUA;AAAA,EACd,IAAM,IAAI,CAACtC,GAASsC,CAAW,CAAC;AAChC;","x_google_ignoreList":[0]}
package/dist/index263.js CHANGED
@@ -1,109 +1,103 @@
1
- import b from "./index170.js";
2
- function f(r) {
3
- "@babel/helpers - typeof";
4
- return f = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
5
- return typeof t;
6
- } : function(t) {
7
- return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
8
- }, f(r);
1
+ import { mergeObjects as y } from "./index345.js";
2
+ const o = {};
3
+ function j(t, n, e, r, c) {
4
+ if (!e && !r && !c && !t)
5
+ return u(n);
6
+ let f = u(t);
7
+ return n && (f = i(f, n)), e && (f = i(f, e)), r && (f = i(f, r)), c && (f = i(f, c)), f;
9
8
  }
10
- function y(r, t) {
11
- var e = Object.keys(r);
12
- if (Object.getOwnPropertySymbols) {
13
- var n = Object.getOwnPropertySymbols(r);
14
- t && (n = n.filter(function(o) {
15
- return Object.getOwnPropertyDescriptor(r, o).enumerable;
16
- })), e.push.apply(e, n);
17
- }
18
- return e;
19
- }
20
- function m(r) {
21
- for (var t = 1; t < arguments.length; t++) {
22
- var e = arguments[t] != null ? arguments[t] : {};
23
- t % 2 ? y(Object(e), !0).forEach(function(n) {
24
- g(r, n, e[n]);
25
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(r, Object.getOwnPropertyDescriptors(e)) : y(Object(e)).forEach(function(n) {
26
- Object.defineProperty(r, n, Object.getOwnPropertyDescriptor(e, n));
27
- });
28
- }
29
- return r;
9
+ function w(t) {
10
+ if (t.length === 0)
11
+ return o;
12
+ if (t.length === 1)
13
+ return u(t[0]);
14
+ let n = u(t[0]);
15
+ for (let e = 1; e < t.length; e += 1)
16
+ n = i(n, t[e]);
17
+ return n;
30
18
  }
31
- function g(r, t, e) {
32
- return (t = v(t)) in r ? Object.defineProperty(r, t, { value: e, enumerable: !0, configurable: !0, writable: !0 }) : r[t] = e, r;
19
+ function u(t) {
20
+ return l(t) ? {
21
+ ...s(t, o)
22
+ } : m(t);
33
23
  }
34
- function v(r) {
35
- var t = d(r, "string");
36
- return f(t) == "symbol" ? t : t + "";
24
+ function i(t, n) {
25
+ return l(n) ? s(n, t) : U(t, n);
37
26
  }
38
- function d(r, t) {
39
- if (f(r) != "object" || !r) return r;
40
- var e = r[Symbol.toPrimitive];
41
- if (e !== void 0) {
42
- var n = e.call(r, t);
43
- if (f(n) != "object") return n;
44
- throw new TypeError("@@toPrimitive must return a primitive value.");
27
+ function m(t) {
28
+ const n = {
29
+ ...t
30
+ };
31
+ for (const e in n) {
32
+ const r = n[e];
33
+ a(e, r) && (n[e] = v(r));
45
34
  }
46
- return (t === "string" ? String : Number)(r);
35
+ return n;
47
36
  }
48
- function O(r, t) {
49
- return _(r) || w(r, t) || h(r, t) || j();
37
+ function U(t, n) {
38
+ if (!n)
39
+ return t;
40
+ for (const e in n) {
41
+ const r = n[e];
42
+ switch (e) {
43
+ case "style": {
44
+ t[e] = y(t.style, r);
45
+ break;
46
+ }
47
+ case "className": {
48
+ t[e] = M(t.className, r);
49
+ break;
50
+ }
51
+ default:
52
+ a(e, r) ? t[e] = A(t[e], r) : t[e] = r;
53
+ }
54
+ }
55
+ return t;
50
56
  }
51
- function j() {
52
- throw new TypeError(`Invalid attempt to destructure non-iterable instance.
53
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
57
+ function a(t, n) {
58
+ const e = t.charCodeAt(0), r = t.charCodeAt(1), c = t.charCodeAt(2);
59
+ return e === 111 && r === 110 && c >= 65 && c <= 90 && (typeof n == "function" || typeof n > "u");
54
60
  }
55
- function h(r, t) {
56
- if (r) {
57
- if (typeof r == "string") return s(r, t);
58
- var e = {}.toString.call(r).slice(8, -1);
59
- return e === "Object" && r.constructor && (e = r.constructor.name), e === "Map" || e === "Set" ? Array.from(r) : e === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e) ? s(r, t) : void 0;
60
- }
61
+ function l(t) {
62
+ return typeof t == "function";
61
63
  }
62
- function s(r, t) {
63
- (t == null || t > r.length) && (t = r.length);
64
- for (var e = 0, n = Array(t); e < t; e++) n[e] = r[e];
65
- return n;
64
+ function s(t, n) {
65
+ return l(t) ? t(n) : t ?? o;
66
66
  }
67
- function w(r, t) {
68
- var e = r == null ? null : typeof Symbol < "u" && r[Symbol.iterator] || r["@@iterator"];
69
- if (e != null) {
70
- var n, o, u, l, c = [], i = !0, a = !1;
71
- try {
72
- if (u = (e = e.call(r)).next, t !== 0) for (; !(i = (n = u.call(e)).done) && (c.push(n.value), c.length !== t); i = !0) ;
73
- } catch (p) {
74
- a = !0, o = p;
75
- } finally {
76
- try {
77
- if (!i && e.return != null && (l = e.return(), Object(l) !== l)) return;
78
- } finally {
79
- if (a) throw o;
80
- }
67
+ function A(t, n) {
68
+ return n ? t ? (...e) => {
69
+ const r = e[0];
70
+ if (I(r)) {
71
+ const f = r;
72
+ E(f);
73
+ const b = n(...e);
74
+ return f.baseUIHandlerPrevented || t?.(...e), b;
81
75
  }
82
- return c;
83
- }
76
+ const c = n(...e);
77
+ return t?.(...e), c;
78
+ } : v(n) : t;
84
79
  }
85
- function _(r) {
86
- if (Array.isArray(r)) return r;
80
+ function v(t) {
81
+ return t && ((...n) => {
82
+ const e = n[0];
83
+ return I(e) && E(e), t(...n);
84
+ });
87
85
  }
88
- function S(r) {
89
- var t = Array.prototype.slice.call(r), e = O(t, 4), n = e[0], o = e[1], u = e[2], l = e[3], c, i, a;
90
- if (typeof n == "string")
91
- c = n;
92
- else throw new TypeError("A text for parsing must be a string.");
93
- if (!o || typeof o == "string")
94
- l ? (i = u, a = l) : (i = void 0, a = u), o && (i = m({
95
- defaultCountry: o
96
- }, i));
97
- else if (b(o))
98
- u ? (i = o, a = u) : a = o;
99
- else throw new Error("Invalid second argument: ".concat(o));
100
- return {
101
- text: c,
102
- options: i,
103
- metadata: a
104
- };
86
+ function E(t) {
87
+ return t.preventBaseUIHandler = () => {
88
+ t.baseUIHandlerPrevented = !0;
89
+ }, t;
90
+ }
91
+ function M(t, n) {
92
+ return n ? t ? n + " " + t : n : t;
93
+ }
94
+ function I(t) {
95
+ return t != null && typeof t == "object" && "nativeEvent" in t;
105
96
  }
106
97
  export {
107
- S as default
98
+ E as makeEventPreventable,
99
+ M as mergeClassNames,
100
+ j as mergeProps,
101
+ w as mergePropsN
108
102
  };
109
103
  //# sourceMappingURL=index263.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index263.js","sources":["../node_modules/libphonenumber-js/es6/normalizeArguments.js"],"sourcesContent":["function _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nfunction _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(r, a) { if (r) { if (\"string\" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return \"Object\" === t && r.constructor && (t = r.constructor.name), \"Map\" === t || \"Set\" === t ? Array.from(r) : \"Arguments\" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }\nfunction _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(r) { if (Array.isArray(r)) return r; }\nimport isObject from './helpers/isObject.js';\n\n// Extracts the following properties from function arguments:\n// * input `text`\n// * `options` object\n// * `metadata` JSON\nexport default function normalizeArguments(args) {\n var _Array$prototype$slic = Array.prototype.slice.call(args),\n _Array$prototype$slic2 = _slicedToArray(_Array$prototype$slic, 4),\n arg_1 = _Array$prototype$slic2[0],\n arg_2 = _Array$prototype$slic2[1],\n arg_3 = _Array$prototype$slic2[2],\n arg_4 = _Array$prototype$slic2[3];\n var text;\n var options;\n var metadata;\n\n // If the phone number is passed as a string.\n // `parsePhoneNumber('88005553535', ...)`.\n if (typeof arg_1 === 'string') {\n text = arg_1;\n } else throw new TypeError('A text for parsing must be a string.');\n\n // If \"default country\" argument is being passed then move it to `options`.\n // `parsePhoneNumber('88005553535', 'RU', [options], metadata)`.\n if (!arg_2 || typeof arg_2 === 'string') {\n if (arg_4) {\n options = arg_3;\n metadata = arg_4;\n } else {\n options = undefined;\n metadata = arg_3;\n }\n if (arg_2) {\n options = _objectSpread({\n defaultCountry: arg_2\n }, options);\n }\n }\n // `defaultCountry` is not passed.\n // Example: `parsePhoneNumber('+78005553535', [options], metadata)`.\n else if (isObject(arg_2)) {\n if (arg_3) {\n options = arg_2;\n metadata = arg_3;\n } else {\n metadata = arg_2;\n }\n } else throw new Error(\"Invalid second argument: \".concat(arg_2));\n return {\n text: text,\n options: options,\n metadata: metadata\n };\n}\n//# sourceMappingURL=normalizeArguments.js.map"],"names":["_typeof","o","ownKeys","e","r","t","_objectSpread","_defineProperty","_toPropertyKey","i","_toPrimitive","_slicedToArray","_arrayWithHoles","_iterableToArrayLimit","_unsupportedIterableToArray","_nonIterableRest","a","_arrayLikeToArray","l","n","u","f","normalizeArguments","args","_Array$prototype$slic","_Array$prototype$slic2","arg_1","arg_2","arg_3","arg_4","text","options","metadata","isObject"],"mappings":";AAAA,SAASA,EAAQC,GAAG;AAAE;AAA2B,SAAOD,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C;AAIJ,MAAI,OAAON,KAAU;AACnB,IAAAI,IAAOJ;AAAA,MACF,OAAM,IAAI,UAAU,sCAAsC;AAIjE,MAAI,CAACC,KAAS,OAAOA,KAAU;AAC7B,IAAIE,KACFE,IAAUH,GACVI,IAAWH,MAEXE,IAAU,QACVC,IAAWJ,IAETD,MACFI,IAAUzB,EAAc;AAAA,MACtB,gBAAgBqB;AAAA,IACxB,GAASI,CAAO;AAAA,WAKLE,EAASN,CAAK;AACrB,IAAIC,KACFG,IAAUJ,GACVK,IAAWJ,KAEXI,IAAWL;AAAA,MAER,OAAM,IAAI,MAAM,4BAA4B,OAAOA,CAAK,CAAC;AAChE,SAAO;AAAA,IACL,MAAMG;AAAA,IACN,SAASC;AAAA,IACT,UAAUC;AAAA,EACd;AACA;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index263.js","sources":["../../../node_modules/@base-ui/react/merge-props/mergeProps.mjs"],"sourcesContent":["import { mergeObjects } from '@base-ui/utils/mergeObjects';\nconst EMPTY_PROPS = {};\n\n/* eslint-disable id-denylist */\n/**\n * Merges multiple sets of React props. It follows the Object.assign pattern where the rightmost object's fields overwrite\n * the conflicting ones from others. This doesn't apply to event handlers, `className` and `style` props.\n *\n * Event handlers are merged and called in right-to-left order (rightmost handler executes first, leftmost last).\n * For React synthetic events, the rightmost handler can prevent prior (left-positioned) handlers from executing\n * by calling `event.preventBaseUIHandler()`. For non-synthetic events (custom events with primitive/object values),\n * all handlers always execute without prevention capability.\n *\n * The `className` prop is merged by concatenating classes in right-to-left order (rightmost class appears first in the string).\n * The `style` prop is merged with rightmost styles overwriting the prior ones.\n *\n * Props can either be provided as objects or as functions that take the previous props as an argument.\n * The function will receive the merged props up to that point (going from left to right):\n * so in the case of `(obj1, obj2, fn, obj3)`, `fn` will receive the merged props of `obj1` and `obj2`.\n * The function is responsible for chaining event handlers if needed (that is, we don't run the merge logic).\n *\n * Event handlers returned by the functions are not automatically prevented when `preventBaseUIHandler` is called.\n * They must check `event.baseUIHandlerPrevented` themselves and bail out if it's true.\n *\n * @important **`ref` is not merged.**\n * @param a Props object to merge.\n * @param b Props object to merge. The function will overwrite conflicting props from `a`.\n * @param c Props object to merge. The function will overwrite conflicting props from previous parameters.\n * @param d Props object to merge. The function will overwrite conflicting props from previous parameters.\n * @param e Props object to merge. The function will overwrite conflicting props from previous parameters.\n * @returns The merged props.\n * @public\n */\n\nexport function mergeProps(a, b, c, d, e) {\n if (!c && !d && !e && !a) {\n return createInitialMergedProps(b);\n }\n\n // We need to mutably own `merged`.\n let merged = createInitialMergedProps(a);\n if (b) {\n merged = mergeInto(merged, b);\n }\n if (c) {\n merged = mergeInto(merged, c);\n }\n if (d) {\n merged = mergeInto(merged, d);\n }\n if (e) {\n merged = mergeInto(merged, e);\n }\n return merged;\n}\n/* eslint-enable id-denylist */\n\n/**\n * Merges an arbitrary number of React props using the same logic as {@link mergeProps}.\n * This function accepts an array of props instead of individual arguments.\n *\n * This has slightly lower performance than {@link mergeProps} due to accepting an array\n * instead of a fixed number of arguments. Prefer {@link mergeProps} when merging 5 or\n * fewer prop sets for better performance.\n *\n * @param props Array of props to merge.\n * @returns The merged props.\n * @see mergeProps\n * @public\n */\nexport function mergePropsN(props) {\n if (props.length === 0) {\n return EMPTY_PROPS;\n }\n if (props.length === 1) {\n return createInitialMergedProps(props[0]);\n }\n\n // We need to mutably own `merged`.\n let merged = createInitialMergedProps(props[0]);\n for (let i = 1; i < props.length; i += 1) {\n merged = mergeInto(merged, props[i]);\n }\n return merged;\n}\nfunction createInitialMergedProps(inputProps) {\n if (isPropsGetter(inputProps)) {\n // Getter-returned handlers intentionally keep their existing semantics.\n return {\n ...resolvePropsGetter(inputProps, EMPTY_PROPS)\n };\n }\n return copyInitialProps(inputProps);\n}\nfunction mergeInto(merged, inputProps) {\n if (isPropsGetter(inputProps)) {\n return resolvePropsGetter(inputProps, merged);\n }\n return mutablyMergeInto(merged, inputProps);\n}\nfunction copyInitialProps(inputProps) {\n const copiedProps = {\n ...inputProps\n };\n\n // `copiedProps` is our fresh own-object copy, so iterating with `for...in` is safe here.\n // eslint-disable-next-line guard-for-in\n for (const propName in copiedProps) {\n const propValue = copiedProps[propName];\n if (isEventHandler(propName, propValue)) {\n copiedProps[propName] = wrapEventHandler(propValue);\n }\n }\n return copiedProps;\n}\n\n/**\n * Merges two sets of props. In case of conflicts, the external props take precedence.\n */\nfunction mutablyMergeInto(mergedProps, externalProps) {\n if (!externalProps) {\n return mergedProps;\n }\n\n // eslint-disable-next-line guard-for-in\n for (const propName in externalProps) {\n const externalPropValue = externalProps[propName];\n switch (propName) {\n case 'style':\n {\n mergedProps[propName] = mergeObjects(mergedProps.style, externalPropValue);\n break;\n }\n case 'className':\n {\n mergedProps[propName] = mergeClassNames(mergedProps.className, externalPropValue);\n break;\n }\n default:\n {\n if (isEventHandler(propName, externalPropValue)) {\n mergedProps[propName] = mergeEventHandlers(mergedProps[propName], externalPropValue);\n } else {\n mergedProps[propName] = externalPropValue;\n }\n }\n }\n }\n return mergedProps;\n}\nfunction isEventHandler(key, value) {\n // This approach is more efficient than using a regex.\n const code0 = key.charCodeAt(0);\n const code1 = key.charCodeAt(1);\n const code2 = key.charCodeAt(2);\n return code0 === 111 /* o */ && code1 === 110 /* n */ && code2 >= 65 /* A */ && code2 <= 90 /* Z */ && (typeof value === 'function' || typeof value === 'undefined');\n}\nfunction isPropsGetter(inputProps) {\n return typeof inputProps === 'function';\n}\nfunction resolvePropsGetter(inputProps, previousProps) {\n if (isPropsGetter(inputProps)) {\n return inputProps(previousProps);\n }\n return inputProps ?? EMPTY_PROPS;\n}\nfunction mergeEventHandlers(ourHandler, theirHandler) {\n if (!theirHandler) {\n return ourHandler;\n }\n if (!ourHandler) {\n return wrapEventHandler(theirHandler);\n }\n return (...args) => {\n const event = args[0];\n if (isSyntheticEvent(event)) {\n const baseUIEvent = event;\n makeEventPreventable(baseUIEvent);\n const result = theirHandler(...args);\n if (!baseUIEvent.baseUIHandlerPrevented) {\n ourHandler?.(...args);\n }\n return result;\n }\n const result = theirHandler(...args);\n ourHandler?.(...args);\n return result;\n };\n}\nfunction wrapEventHandler(handler) {\n if (!handler) {\n return handler;\n }\n return (...args) => {\n const event = args[0];\n if (isSyntheticEvent(event)) {\n makeEventPreventable(event);\n }\n return handler(...args);\n };\n}\nexport function makeEventPreventable(event) {\n event.preventBaseUIHandler = () => {\n event.baseUIHandlerPrevented = true;\n };\n return event;\n}\nexport function mergeClassNames(ourClassName, theirClassName) {\n if (theirClassName) {\n if (ourClassName) {\n // eslint-disable-next-line prefer-template\n return theirClassName + ' ' + ourClassName;\n }\n return theirClassName;\n }\n return ourClassName;\n}\nfunction isSyntheticEvent(event) {\n return event != null && typeof event === 'object' && 'nativeEvent' in event;\n}"],"names":["EMPTY_PROPS","mergeProps","a","b","c","d","e","createInitialMergedProps","merged","mergeInto","mergePropsN","props","i","inputProps","isPropsGetter","resolvePropsGetter","copyInitialProps","mutablyMergeInto","copiedProps","propName","propValue","isEventHandler","wrapEventHandler","mergedProps","externalProps","externalPropValue","mergeObjects","mergeClassNames","mergeEventHandlers","key","value","code0","code1","code2","previousProps","ourHandler","theirHandler","args","event","isSyntheticEvent","baseUIEvent","makeEventPreventable","result","handler","ourClassName","theirClassName"],"mappings":";AACA,MAAMA,IAAc,CAAA;AAiCb,SAASC,EAAWC,GAAGC,GAAGC,GAAGC,GAAGC,GAAG;AACxC,MAAI,CAACF,KAAK,CAACC,KAAK,CAACC,KAAK,CAACJ;AACrB,WAAOK,EAAyBJ,CAAC;AAInC,MAAIK,IAASD,EAAyBL,CAAC;AACvC,SAAIC,MACFK,IAASC,EAAUD,GAAQL,CAAC,IAE1BC,MACFI,IAASC,EAAUD,GAAQJ,CAAC,IAE1BC,MACFG,IAASC,EAAUD,GAAQH,CAAC,IAE1BC,MACFE,IAASC,EAAUD,GAAQF,CAAC,IAEvBE;AACT;AAgBO,SAASE,EAAYC,GAAO;AACjC,MAAIA,EAAM,WAAW;AACnB,WAAOX;AAET,MAAIW,EA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D,IAEzBC,IAEFD;AACT;AACA,SAASL,EAAiBD,GAAO;AAC/B,SAAOA,KAAS,QAAQ,OAAOA,KAAU,YAAY,iBAAiBA;AACxE;","x_google_ignoreList":[0]}
package/dist/index264.js CHANGED
@@ -1,56 +1,180 @@
1
- import f from "./index269.js";
2
- function o(r) {
3
- "@babel/helpers - typeof";
4
- return o = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
5
- return typeof e;
6
- } : function(e) {
7
- return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
8
- }, o(r);
9
- }
10
- function i(r, e) {
11
- var t = Object.keys(r);
12
- if (Object.getOwnPropertySymbols) {
13
- var n = Object.getOwnPropertySymbols(r);
14
- e && (n = n.filter(function(c) {
15
- return Object.getOwnPropertyDescriptor(r, c).enumerable;
16
- })), t.push.apply(t, n);
17
- }
18
- return t;
19
- }
20
- function u(r) {
21
- for (var e = 1; e < arguments.length; e++) {
22
- var t = arguments[e] != null ? arguments[e] : {};
23
- e % 2 ? i(Object(t), !0).forEach(function(n) {
24
- p(r, n, t[n]);
25
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(r, Object.getOwnPropertyDescriptors(t)) : i(Object(t)).forEach(function(n) {
26
- Object.defineProperty(r, n, Object.getOwnPropertyDescriptor(t, n));
1
+ import * as a from "react";
2
+ import "react-dom";
3
+ import { EMPTY_OBJECT as f } from "./index241.js";
4
+ import { useId as T } from "./index368.js";
5
+ import { useStableCallback as p } from "./index239.js";
6
+ import { useIsoLayoutEffect as s } from "./index238.js";
7
+ import { FOCUSABLE_ATTRIBUTE as v } from "./index397.js";
8
+ import { useFloatingParentNodeId as C } from "./index406.js";
9
+ import { useSyncedFloatingRootContext as E } from "./index409.js";
10
+ import { useTransitionStatus as I } from "./index246.js";
11
+ import { useOpenChangeComplete as O } from "./index249.js";
12
+ import { createChangeEventDetails as S } from "./index248.js";
13
+ import { none as P } from "./index266.js";
14
+ const L = {
15
+ tabIndex: -1,
16
+ [v]: ""
17
+ };
18
+ function z(e) {
19
+ return (t) => t === "touch" ? e.current : !0;
20
+ }
21
+ function V(e, t, i = !1) {
22
+ const r = T(), u = C() != null, o = a.useRef(null);
23
+ e === void 0 && o.current === null && (o.current = t(r, u));
24
+ const n = e ?? o.current;
25
+ return E({
26
+ popupStore: n,
27
+ treatPopupAsFloatingElement: i,
28
+ floatingRootContext: n.state.floatingRootContext,
29
+ floatingId: r,
30
+ nested: u,
31
+ onOpenChange: n.setOpen
32
+ }), {
33
+ store: n,
34
+ internalStore: o.current
35
+ };
36
+ }
37
+ function R(e, t) {
38
+ const i = a.useRef(null), r = a.useRef(null);
39
+ return a.useCallback((u) => {
40
+ if (e === void 0)
41
+ return;
42
+ let o = !1;
43
+ if (i.current !== null) {
44
+ const n = i.current, g = r.current, l = t.context.triggerElements.getById(n);
45
+ g && l === g && (t.context.triggerElements.delete(n), o = !0), i.current = null, r.current = null;
46
+ }
47
+ if (u !== null && (i.current = e, r.current = u, t.context.triggerElements.add(e, u), o = !0), o) {
48
+ const n = t.context.triggerElements.size;
49
+ t.select("open") && t.state.triggerCount !== n && t.set("triggerCount", n);
50
+ }
51
+ }, [t, e]);
52
+ }
53
+ function j(e, t, i, r = !1) {
54
+ t ? e.preventUnmountingOnClose = !1 : r && (e.preventUnmountingOnClose = !0);
55
+ const u = i?.id ?? null;
56
+ (u || t) && (e.activeTriggerId = u, e.activeTriggerElement = i ?? null);
57
+ }
58
+ function q(e, t, i, r) {
59
+ const u = i.useState("isMountedByTrigger", e), o = R(e, i), n = p((g) => {
60
+ if (o(g), !g)
61
+ return;
62
+ const l = i.select("open"), c = i.select("activeTriggerId");
63
+ if (c === e) {
64
+ i.update({
65
+ activeTriggerElement: g,
66
+ ...l ? r : null
67
+ });
68
+ return;
69
+ }
70
+ c == null && l && i.update({
71
+ activeTriggerId: e,
72
+ activeTriggerElement: g,
73
+ ...r
74
+ });
75
+ });
76
+ return s(() => {
77
+ u && i.update({
78
+ activeTriggerElement: t.current,
79
+ ...r
27
80
  });
28
- }
29
- return r;
30
- }
31
- function p(r, e, t) {
32
- return (e = b(e)) in r ? Object.defineProperty(r, e, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : r[e] = t, r;
33
- }
34
- function b(r) {
35
- var e = y(r, "string");
36
- return o(e) == "symbol" ? e : e + "";
37
- }
38
- function y(r, e) {
39
- if (o(r) != "object" || !r) return r;
40
- var t = r[Symbol.toPrimitive];
41
- if (t !== void 0) {
42
- var n = t.call(r, e);
43
- if (o(n) != "object") return n;
44
- throw new TypeError("@@toPrimitive must return a primitive value.");
45
- }
46
- return (e === "string" ? String : Number)(r);
47
- }
48
- function l(r, e, t) {
49
- return f(r, u(u({}, e), {}, {
50
- v2: !0
51
- }), t);
81
+ }, [u, i, t, ...Object.values(r)]), {
82
+ registerTrigger: n,
83
+ isMountedByThisTrigger: u
84
+ };
85
+ }
86
+ function w(e, t = {}) {
87
+ const {
88
+ closeOnActiveTriggerUnmount: i = !1
89
+ } = t, r = e.useState("open"), u = e.useState("triggerCount");
90
+ s(() => {
91
+ if (!r) {
92
+ e.state.triggerCount !== 0 && e.set("triggerCount", 0);
93
+ return;
94
+ }
95
+ const o = e.context.triggerElements.size, n = {};
96
+ e.state.triggerCount !== o && (n.triggerCount = o);
97
+ const g = e.select("activeTriggerId");
98
+ let l = null;
99
+ if (g) {
100
+ const c = e.context.triggerElements.getById(g);
101
+ c ? c !== e.state.activeTriggerElement && (n.activeTriggerElement = c) : l = g;
102
+ }
103
+ if (!l && !g && o === 1) {
104
+ const c = e.context.triggerElements.entries().next();
105
+ if (!c.done) {
106
+ const [m, d] = c.value;
107
+ n.activeTriggerId = m, n.activeTriggerElement = d;
108
+ }
109
+ }
110
+ (n.triggerCount !== void 0 || n.activeTriggerId !== void 0 || n.activeTriggerElement !== void 0) && e.update(n), l && i && queueMicrotask(() => {
111
+ if (e.select("open") && e.select("activeTriggerId") === l && !e.context.triggerElements.getById(l)) {
112
+ const c = S(P);
113
+ e.setOpen(!1, c), c.isCanceled || e.update({
114
+ activeTriggerId: null,
115
+ activeTriggerElement: null
116
+ });
117
+ }
118
+ });
119
+ }, [r, e, u, i]);
120
+ }
121
+ function J(e, t, i) {
122
+ const {
123
+ mounted: r,
124
+ setMounted: u,
125
+ transitionStatus: o
126
+ } = I(e), n = t.useState("preventUnmountingOnClose"), g = e ? !1 : n;
127
+ t.useSyncedValues({
128
+ mounted: r,
129
+ transitionStatus: o,
130
+ preventUnmountingOnClose: g
131
+ });
132
+ const l = p(() => {
133
+ u(!1), t.update({
134
+ activeTriggerId: null,
135
+ activeTriggerElement: null,
136
+ mounted: !1,
137
+ preventUnmountingOnClose: !1
138
+ }), t.context.onOpenChangeComplete?.(!1);
139
+ });
140
+ return O({
141
+ enabled: r && !e && !g,
142
+ open: e,
143
+ ref: t.context.popupRef,
144
+ onComplete() {
145
+ e || l();
146
+ }
147
+ }), {
148
+ forceUnmount: l,
149
+ transitionStatus: o
150
+ };
151
+ }
152
+ function N(e, t) {
153
+ e.useSyncedValues(t), s(() => () => {
154
+ e.update({
155
+ activeTriggerProps: f,
156
+ inactiveTriggerProps: f,
157
+ popupProps: f
158
+ });
159
+ }, [e]);
160
+ }
161
+ function Y(e, t) {
162
+ s(() => {
163
+ !t && e.state.openMethod !== null && e.set("openMethod", null);
164
+ }, [t, e]), s(() => () => {
165
+ e.state.openMethod !== null && e.set("openMethod", null);
166
+ }, [e]);
52
167
  }
53
168
  export {
54
- l as default
169
+ L as FOCUSABLE_POPUP_PROPS,
170
+ z as createDefaultInitialFocus,
171
+ j as setPopupOpenState,
172
+ w as useImplicitActiveTrigger,
173
+ J as useOpenStateTransitions,
174
+ N as usePopupInteractionProps,
175
+ Y as usePopupRootSync,
176
+ V as usePopupStore,
177
+ q as useTriggerDataForwarding,
178
+ R as useTriggerRegistration
55
179
  };
56
180
  //# sourceMappingURL=index264.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index264.js","sources":["../node_modules/libphonenumber-js/es6/parsePhoneNumberWithError_.js"],"sourcesContent":["function _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nimport parse from './parse.js';\nexport default function parsePhoneNumberWithError(text, options, metadata) {\n return parse(text, _objectSpread(_objectSpread({}, options), {}, {\n v2: true\n }), metadata);\n}\n//# sourceMappingURL=parsePhoneNumberWithError_.js.map"],"names":["_typeof","o","ownKeys","e","r","_objectSpread","_defineProperty","_toPropertyKey","t","i","_toPrimitive","parsePhoneNumberWithError","text","options","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A,IAAIG,EAAeH,CAAC,MAAMD,IAAI,OAAO,eAAeA,GAAGC,GAAG,EAAE,OAAO,GAAG,YAAY,IAAI,cAAc,IAAI,UAAU,GAAE,CAAE,IAAID,EAAEC,CAAC,IAAI,GAAGD;AAAG;AACnL,SAASI,EAAeC,GAAG;AAAE,MAAIC,IAAIC,EAAaF,GAAG,QAAQ;AAAG,SAAmBR,EAAQS,CAAC,KAArB,WAAyBA,IAAIA,IAAI;AAAI;AAC5G,SAASC,EAAaF,GAAGJ,GAAG;AAAE,MAAgBJ,EAAQQ,CAAC,KAArB,YAA0B,CAACA,EAAG,QAAOA;AAAG,MAAIL,IAAIK,EAAE,OAAO,WAAW;AAAG,MAAeL,MAAX,QAAc;AAAE,QAAIM,IAAIN,EAAE,KAAKK,GAAGJ,CAAc;AAAG,QAAgBJ,EAAQS,CAAC,KAArB,SAAwB,QAAOA;AAAG,UAAM,IAAI,UAAU,8CAA8C;AAAA,EAAG;AAAE,UAAqBL,MAAb,WAAiB,SAAS,QAAQI,CAAC;AAAG;AAE5S,SAASG,EAA0BC,GAAMC,GAASC,GAAU;AACzE,SAAOC,EAAMH,GAAMP,EAAcA,EAAc,IAAIQ,CAAO,GAAG,IAAI;AAAA,IAC/D,IAAI;AAAA,EACR,CAAG,GAAGC,CAAQ;AACd;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index264.js","sources":["../../../node_modules/@base-ui/react/utils/popups/popupStoreUtils.mjs"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport * as ReactDOM from 'react-dom';\nimport { EMPTY_OBJECT } from '@base-ui/utils/empty';\nimport { useId } from '@base-ui/utils/useId';\nimport { useStableCallback } from '@base-ui/utils/useStableCallback';\nimport { useIsoLayoutEffect } from '@base-ui/utils/useIsoLayoutEffect';\nimport { useOnFirstRender } from '@base-ui/utils/useOnFirstRender';\nimport { FOCUSABLE_ATTRIBUTE } from \"../../floating-ui-react/utils/constants.mjs\";\nimport { useFloatingParentNodeId } from \"../../floating-ui-react/components/FloatingTree.mjs\";\nimport { useSyncedFloatingRootContext } from \"../../floating-ui-react/hooks/useSyncedFloatingRootContext.mjs\";\nimport { useTransitionStatus } from \"../../internals/useTransitionStatus.mjs\";\nimport { useOpenChangeComplete } from \"../../internals/useOpenChangeComplete.mjs\";\nimport { createChangeEventDetails } from \"../../internals/createBaseUIEventDetails.mjs\";\nimport { REASONS } from \"../../internals/reasons.mjs\";\nexport const FOCUSABLE_POPUP_PROPS = {\n tabIndex: -1,\n [FOCUSABLE_ATTRIBUTE]: ''\n};\n\n/**\n * Returns the default `initialFocus` resolver for a popup. When opened by touch it focuses the\n * popup element itself to prevent the virtual keyboard from opening (required for Android\n * specifically; iOS handles this automatically). Otherwise it falls back to the default behavior.\n */\nexport function createDefaultInitialFocus(popupRef) {\n return interactionType => interactionType === 'touch' ? popupRef.current : true;\n}\nexport function usePopupStore(externalStore, createStore, treatPopupAsFloatingElement = false) {\n const floatingId = useId();\n const nested = useFloatingParentNodeId() != null;\n const internalStoreRef = React.useRef(null);\n if (externalStore === undefined && internalStoreRef.current === null) {\n internalStoreRef.current = createStore(floatingId, nested);\n }\n const store = externalStore ?? internalStoreRef.current;\n useSyncedFloatingRootContext({\n popupStore: store,\n treatPopupAsFloatingElement,\n floatingRootContext: store.state.floatingRootContext,\n floatingId,\n nested,\n onOpenChange: store.setOpen\n });\n return {\n store,\n internalStore: internalStoreRef.current\n };\n}\n\n/**\n * Returns a callback ref that registers/unregisters the trigger element in the store.\n *\n * @param store The Store instance where the trigger should be registered.\n */\nexport function useTriggerRegistration(id, store) {\n // Keep track of the currently registered element to unregister it on unmount or id change.\n const registeredElementIdRef = React.useRef(null);\n const registeredElementRef = React.useRef(null);\n return React.useCallback(element => {\n if (id === undefined) {\n return;\n }\n let shouldSyncTriggerCount = false;\n if (registeredElementIdRef.current !== null) {\n const registeredId = registeredElementIdRef.current;\n const registeredElement = registeredElementRef.current;\n const currentElement = store.context.triggerElements.getById(registeredId);\n if (registeredElement && currentElement === registeredElement) {\n store.context.triggerElements.delete(registeredId);\n shouldSyncTriggerCount = true;\n }\n registeredElementIdRef.current = null;\n registeredElementRef.current = null;\n }\n if (element !== null) {\n registeredElementIdRef.current = id;\n registeredElementRef.current = element;\n store.context.triggerElements.add(id, element);\n shouldSyncTriggerCount = true;\n }\n if (shouldSyncTriggerCount) {\n const triggerCount = store.context.triggerElements.size;\n if (store.select('open') && store.state.triggerCount !== triggerCount) {\n store.set('triggerCount', triggerCount);\n }\n }\n }, [store, id]);\n}\nexport function setPopupOpenState(state, open, trigger, preventUnmountOnClose = false) {\n if (open) {\n // Opening starts a new close cycle, so clear any previous request to keep the popup mounted.\n state.preventUnmountingOnClose = false;\n } else if (preventUnmountOnClose) {\n state.preventUnmountingOnClose = true;\n }\n const triggerId = trigger?.id ?? null;\n\n // If a popup is closing, the `trigger` may be undefined.\n // We want to keep the previous value so that exit animations are played and focus is returned correctly.\n if (triggerId || open) {\n state.activeTriggerId = triggerId;\n state.activeTriggerElement = trigger ?? null;\n }\n}\nexport function attachPreventUnmountOnClose(eventDetails) {\n let preventUnmountOnClose = false;\n eventDetails.preventUnmountOnClose = () => {\n preventUnmountOnClose = true;\n };\n return () => preventUnmountOnClose;\n}\n\n/**\n * Runs the shared open-change sequence for a popup store: notifies `onOpenChange`,\n * honors cancellation, dispatches the floating root change, maps the reason to an\n * `instantType`, and commits the state update (synchronously for hover so\n * `getAnimations()` observes it). Stores supply their own differences via\n * `extraState` (e.g. the last change reason) and `onBeforeDispatch` (e.g. updating\n * inline-rect coordinates).\n */\nexport function applyPopupOpenChange(store, nextOpen, eventDetails, options = {}) {\n const reason = eventDetails.reason;\n const isHover = reason === REASONS.triggerHover;\n const isFocusOpen = nextOpen && reason === REASONS.triggerFocus;\n const isDismissClose = !nextOpen && (reason === REASONS.triggerPress || reason === REASONS.escapeKey);\n const shouldPreventUnmountOnClose = attachPreventUnmountOnClose(eventDetails);\n store.context.onOpenChange?.(nextOpen, eventDetails);\n if (eventDetails.isCanceled) {\n return;\n }\n options.onBeforeDispatch?.();\n store.state.floatingRootContext.dispatchOpenChange(nextOpen, eventDetails);\n const changeState = () => {\n // Spread `extraState` first so `open` always reflects `nextOpen`, keeping it in\n // sync with the value already passed to `dispatchOpenChange`/`setPopupOpenState`.\n const updatedState = {\n ...options.extraState,\n open: nextOpen\n };\n if (isFocusOpen) {\n updatedState.instantType = 'focus';\n } else if (isDismissClose) {\n updatedState.instantType = 'dismiss';\n } else if (isHover) {\n updatedState.instantType = undefined;\n }\n setPopupOpenState(updatedState, nextOpen, eventDetails.trigger, shouldPreventUnmountOnClose());\n store.update(updatedState);\n };\n if (isHover) {\n // Flush synchronously for hover so `node.getAnimations()` sees the new state.\n ReactDOM.flushSync(changeState);\n } else {\n changeState();\n }\n}\nexport function useInitialOpenSync(store, openProp, defaultOpen, defaultTriggerId) {\n useOnFirstRender(() => {\n if (openProp === undefined && store.state.open === false && defaultOpen) {\n // Avoid notifying detached trigger subscribers while the Root is rendering.\n store.state = {\n ...store.state,\n open: true,\n activeTriggerId: defaultTriggerId,\n preventUnmountingOnClose: false\n };\n }\n });\n}\n\n/**\n * Sets up trigger data forwarding to the store.\n *\n * @param triggerId Id of the trigger.\n * @param triggerElementRef Ref for the trigger DOM element.\n * @param store The Store instance managing the popup state.\n * @param stateUpdates An object with state updates to apply when the trigger is active.\n */\nexport function useTriggerDataForwarding(triggerId, triggerElementRef, store, stateUpdates) {\n const isMountedByThisTrigger = store.useState('isMountedByTrigger', triggerId);\n const baseRegisterTrigger = useTriggerRegistration(triggerId, store);\n const registerTrigger = useStableCallback(element => {\n baseRegisterTrigger(element);\n if (!element) {\n return;\n }\n const open = store.select('open');\n const activeTriggerId = store.select('activeTriggerId');\n if (activeTriggerId === triggerId) {\n store.update({\n activeTriggerElement: element,\n ...(open ? stateUpdates : null)\n });\n return;\n }\n if (activeTriggerId == null && open) {\n // If a popup is already open, a detached trigger can mount before any active trigger\n // has been established. Claim the first registered trigger so trigger-owned focus\n // management and ARIA relationships work.\n store.update({\n activeTriggerId: triggerId,\n activeTriggerElement: element,\n ...stateUpdates\n });\n }\n });\n useIsoLayoutEffect(() => {\n if (isMountedByThisTrigger) {\n store.update({\n activeTriggerElement: triggerElementRef.current,\n ...stateUpdates\n });\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [isMountedByThisTrigger, store, triggerElementRef, ...Object.values(stateUpdates)]);\n return {\n registerTrigger,\n isMountedByThisTrigger\n };\n}\n/**\n * Keeps trigger registration state synchronized while the popup is open.\n *\n * When a popup opens without an explicit trigger id and exactly one trigger is registered, that\n * trigger is claimed as the active trigger. When the active trigger id is still registered but its\n * element changed, the active element is refreshed. When the active trigger unregisters, the\n * default path preserves existing ownership so non-closing popup families do not silently claim a\n * different trigger while staying open.\n *\n * If `closeOnActiveTriggerUnmount` is enabled, unregistering the active trigger requests a close\n * after a microtask so a same-tick replacement trigger with the same id can register first.\n *\n * This should be called on the Root part.\n *\n * @param store The Store instance managing the popup state.\n * @param options Options for active trigger unmount behavior.\n */\nexport function useImplicitActiveTrigger(store, options = {}) {\n const {\n closeOnActiveTriggerUnmount = false\n } = options;\n const open = store.useState('open');\n const reactiveTriggerCount = store.useState('triggerCount');\n useIsoLayoutEffect(() => {\n if (!open) {\n if (store.state.triggerCount !== 0) {\n store.set('triggerCount', 0);\n }\n return;\n }\n const triggerCount = store.context.triggerElements.size;\n const stateUpdates = {};\n if (store.state.triggerCount !== triggerCount) {\n stateUpdates.triggerCount = triggerCount;\n }\n const activeTriggerId = store.select('activeTriggerId');\n let lostActiveTriggerId = null;\n if (activeTriggerId) {\n const activeTriggerElement = store.context.triggerElements.getById(activeTriggerId);\n if (!activeTriggerElement) {\n lostActiveTriggerId = activeTriggerId;\n } else if (activeTriggerElement !== store.state.activeTriggerElement) {\n stateUpdates.activeTriggerElement = activeTriggerElement;\n }\n }\n if (!lostActiveTriggerId && !activeTriggerId && triggerCount === 1) {\n const iteratorResult = store.context.triggerElements.entries().next();\n if (!iteratorResult.done) {\n const [implicitTriggerId, implicitTriggerElement] = iteratorResult.value;\n stateUpdates.activeTriggerId = implicitTriggerId;\n stateUpdates.activeTriggerElement = implicitTriggerElement;\n }\n }\n if (stateUpdates.triggerCount !== undefined || stateUpdates.activeTriggerId !== undefined || stateUpdates.activeTriggerElement !== undefined) {\n store.update(stateUpdates);\n }\n if (lostActiveTriggerId) {\n if (closeOnActiveTriggerUnmount) {\n // Defer so a same-tick replacement trigger with the same id can register first.\n queueMicrotask(() => {\n if (store.select('open') && store.select('activeTriggerId') === lostActiveTriggerId && !store.context.triggerElements.getById(lostActiveTriggerId)) {\n const eventDetails = createChangeEventDetails(REASONS.none);\n store.setOpen(false, eventDetails);\n // If closing is canceled, keep the previous active trigger ownership for the\n // still-open popup instead of claiming another trigger implicitly.\n if (!eventDetails.isCanceled) {\n store.update({\n activeTriggerId: null,\n activeTriggerElement: null\n });\n }\n }\n });\n }\n }\n }, [open, store, reactiveTriggerCount, closeOnActiveTriggerUnmount]);\n}\n\n/**\n * Manages the mounted state of the popup.\n * Sets up the transition status listeners and handles unmounting when needed.\n * Updates the `mounted`, `transitionStatus`, and `preventUnmountingOnClose` states in the store.\n *\n * @param open Whether the popup is open.\n * @param store The Store instance managing the popup state.\n * @param onUnmount Optional callback to be called when the popup is unmounted.\n *\n * @returns A function to forcibly unmount the popup.\n */\nexport function useOpenStateTransitions(open, store, onUnmount) {\n const {\n mounted,\n setMounted,\n transitionStatus\n } = useTransitionStatus(open);\n const preventUnmountingOnClose = store.useState('preventUnmountingOnClose');\n // Opening starts a new close cycle. Clear during render so the close-completion hook below\n // reads the synchronized value on the same pass.\n const syncedPreventUnmountingOnClose = open ? false : preventUnmountingOnClose;\n store.useSyncedValues({\n mounted,\n transitionStatus,\n preventUnmountingOnClose: syncedPreventUnmountingOnClose\n });\n const forceUnmount = useStableCallback(() => {\n setMounted(false);\n store.update({\n activeTriggerId: null,\n activeTriggerElement: null,\n mounted: false,\n preventUnmountingOnClose: false\n });\n onUnmount?.();\n store.context.onOpenChangeComplete?.(false);\n });\n useOpenChangeComplete({\n enabled: mounted && !open && !syncedPreventUnmountingOnClose,\n open,\n ref: store.context.popupRef,\n onComplete() {\n if (!open) {\n forceUnmount();\n }\n }\n });\n return {\n forceUnmount,\n transitionStatus\n };\n}\nexport function usePopupInteractionProps(store, statePart) {\n store.useSyncedValues(statePart);\n useIsoLayoutEffect(() => () => {\n store.update({\n activeTriggerProps: EMPTY_OBJECT,\n inactiveTriggerProps: EMPTY_OBJECT,\n popupProps: EMPTY_OBJECT\n });\n }, [store]);\n}\nexport function usePopupRootSync(store, open) {\n useIsoLayoutEffect(() => {\n if (!open && store.state.openMethod !== null) {\n store.set('openMethod', null);\n }\n }, [open, store]);\n useIsoLayoutEffect(() => () => {\n if (store.state.openMethod !== null) {\n store.set('openMethod', null);\n }\n }, [store]);\n}"],"names":["FOCUSABLE_POPUP_PROPS","FOCUSABLE_ATTRIBUTE","createDefaultInitialFocus","popupRef","interactionType","usePopupStore","externalStore","createStore","treatPopupAsFloatingElement","floatingId","useId","nested","useFloatingParentNodeId","internalStoreRef","React","store","useSyncedFloatingRootContext","useTriggerRegistration","id","registeredElementIdRef","registeredElementRef","element","shouldSyncTriggerCount","registeredId","registeredElement","currentElement","triggerCount","setPopupOpenState","state","open","trigger","preventUnmountOnClose","triggerId","useTriggerDataForwarding","triggerElementRef","stateUpdates","isMountedByThisTrigger","baseRegisterTrigger","registerTrigger","useStableCallback","activeTriggerId","useIsoLayoutEffect","useImplicitActiveTrigger","options","closeOnActiveTriggerUnmount","reactiveTriggerCount","lostActiveTriggerId","activeTriggerElement","iteratorResult","implicitTriggerId","implicitTriggerElement","eventDetails","createChangeEventDetails","REASONS.none","useOpenStateTransitions","onUnmount","mounted","setMounted","transitionStatus","useTransitionStatus","preventUnmountingOnClose","syncedPreventUnmountingOnClose","forceUnmount","useOpenChangeComplete","usePopupInteractionProps","statePart","EMPTY_OBJECT","usePopupRootSync"],"mappings":";;;;;;;;;;;;;AAgBY,MA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