@rpcbase/ui 0.224.0 → 0.226.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 (832) hide show
  1. package/dist/components/DayPickerField/index.d.ts.map +1 -1
  2. package/dist/components/Dialog/index.d.ts +13 -9
  3. package/dist/components/Dialog/index.d.ts.map +1 -1
  4. package/dist/components/FilesUploadField/index.d.ts.map +1 -1
  5. package/dist/components/HourPickerField/index.d.ts.map +1 -1
  6. package/dist/components/PhoneNumberInput/index.d.ts.map +1 -1
  7. package/dist/components/PhoneNumberInput/suggestions.d.ts.map +1 -1
  8. package/dist/components/Select/index.d.ts +16 -10
  9. package/dist/components/Select/index.d.ts.map +1 -1
  10. package/dist/index10.js +102 -103
  11. package/dist/index10.js.map +1 -1
  12. package/dist/index100.js +11 -4
  13. package/dist/index100.js.map +1 -1
  14. package/dist/index101.js +69 -52
  15. package/dist/index101.js.map +1 -1
  16. package/dist/index102.js +38 -5
  17. package/dist/index102.js.map +1 -1
  18. package/dist/index103.js +14 -5
  19. package/dist/index103.js.map +1 -1
  20. package/dist/index104.js +23 -15
  21. package/dist/index104.js.map +1 -1
  22. package/dist/index105.js +110 -5
  23. package/dist/index105.js.map +1 -1
  24. package/dist/index106.js +13 -8
  25. package/dist/index106.js.map +1 -1
  26. package/dist/index107.js +4 -16
  27. package/dist/index107.js.map +1 -1
  28. package/dist/index108.js +4 -5
  29. package/dist/index108.js.map +1 -1
  30. package/dist/index109.js +5 -5
  31. package/dist/index109.js.map +1 -1
  32. package/dist/index110.js +11 -5
  33. package/dist/index110.js.map +1 -1
  34. package/dist/index111.js +19 -5
  35. package/dist/index111.js.map +1 -1
  36. package/dist/index112.js +13 -5
  37. package/dist/index112.js.map +1 -1
  38. package/dist/index113.js +261 -4
  39. package/dist/index113.js.map +1 -1
  40. package/dist/index114.js +4 -6
  41. package/dist/index114.js.map +1 -1
  42. package/dist/index115.js +28 -25
  43. package/dist/index115.js.map +1 -1
  44. package/dist/index116.js +126 -6
  45. package/dist/index116.js.map +1 -1
  46. package/dist/index117.js +5 -4
  47. package/dist/index117.js.map +1 -1
  48. package/dist/index118.js +78 -6
  49. package/dist/index118.js.map +1 -1
  50. package/dist/index119.js +66 -5
  51. package/dist/index119.js.map +1 -1
  52. package/dist/index12.js +1 -1
  53. package/dist/index120.js +8 -4
  54. package/dist/index120.js.map +1 -1
  55. package/dist/index121.js +16 -6
  56. package/dist/index121.js.map +1 -1
  57. package/dist/index122.js +92 -4
  58. package/dist/index122.js.map +1 -1
  59. package/dist/index123.js +65 -8
  60. package/dist/index123.js.map +1 -1
  61. package/dist/index124.js +45 -5
  62. package/dist/index124.js.map +1 -1
  63. package/dist/index125.js +52 -5
  64. package/dist/index125.js.map +1 -1
  65. package/dist/index126.js +4 -4
  66. package/dist/index126.js.map +1 -1
  67. package/dist/index127.js +4 -6
  68. package/dist/index127.js.map +1 -1
  69. package/dist/index128.js +15 -145
  70. package/dist/index128.js.map +1 -1
  71. package/dist/index129.js +5 -39
  72. package/dist/index129.js.map +1 -1
  73. package/dist/index130.js +7 -4
  74. package/dist/index130.js.map +1 -1
  75. package/dist/index131.js +16 -7
  76. package/dist/index131.js.map +1 -1
  77. package/dist/index132.js +4 -13
  78. package/dist/index132.js.map +1 -1
  79. package/dist/index133.js +4 -13
  80. package/dist/index133.js.map +1 -1
  81. package/dist/index134.js +5 -7
  82. package/dist/index134.js.map +1 -1
  83. package/dist/index135.js +5 -31
  84. package/dist/index135.js.map +1 -1
  85. package/dist/index136.js +4 -10
  86. package/dist/index136.js.map +1 -1
  87. package/dist/index137.js +4 -10
  88. package/dist/index137.js.map +1 -1
  89. package/dist/index138.js +6 -8
  90. package/dist/index138.js.map +1 -1
  91. package/dist/index139.js +24 -13
  92. package/dist/index139.js.map +1 -1
  93. package/dist/index140.js +6 -101
  94. package/dist/index140.js.map +1 -1
  95. package/dist/index141.js +5 -20
  96. package/dist/index141.js.map +1 -1
  97. package/dist/index142.js +6 -53
  98. package/dist/index142.js.map +1 -1
  99. package/dist/index143.js +5 -72
  100. package/dist/index143.js.map +1 -1
  101. package/dist/index144.js +4 -9
  102. package/dist/index144.js.map +1 -1
  103. package/dist/index145.js +5 -20
  104. package/dist/index145.js.map +1 -1
  105. package/dist/index146.js +4 -16
  106. package/dist/index146.js.map +1 -1
  107. package/dist/index147.js +8 -23
  108. package/dist/index147.js.map +1 -1
  109. package/dist/index148.js +5 -6
  110. package/dist/index148.js.map +1 -1
  111. package/dist/index149.js +4 -5
  112. package/dist/index149.js.map +1 -1
  113. package/dist/index150.js +3 -22
  114. package/dist/index150.js.map +1 -1
  115. package/dist/index151.js +7 -35
  116. package/dist/index151.js.map +1 -1
  117. package/dist/index152.js +146 -16
  118. package/dist/index152.js.map +1 -1
  119. package/dist/index153.js +39 -6
  120. package/dist/index153.js.map +1 -1
  121. package/dist/index154.js +4 -4
  122. package/dist/index154.js.map +1 -1
  123. package/dist/index155.js +7 -4
  124. package/dist/index155.js.map +1 -1
  125. package/dist/index156.js +13 -4
  126. package/dist/index156.js.map +1 -1
  127. package/dist/index157.js +13 -4
  128. package/dist/index157.js.map +1 -1
  129. package/dist/index158.js +7 -3
  130. package/dist/index158.js.map +1 -1
  131. package/dist/index159.js +31 -6
  132. package/dist/index159.js.map +1 -1
  133. package/dist/index16.js +77 -72
  134. package/dist/index16.js.map +1 -1
  135. package/dist/index160.js +11 -24
  136. package/dist/index160.js.map +1 -1
  137. package/dist/index161.js +10 -7
  138. package/dist/index161.js.map +1 -1
  139. package/dist/index162.js +8 -6
  140. package/dist/index162.js.map +1 -1
  141. package/dist/index163.js +13 -5
  142. package/dist/index163.js.map +1 -1
  143. package/dist/index164.js +101 -3
  144. package/dist/index164.js.map +1 -1
  145. package/dist/index165.js +20 -4
  146. package/dist/index165.js.map +1 -1
  147. package/dist/index166.js +53 -4
  148. package/dist/index166.js.map +1 -1
  149. package/dist/index167.js +72 -3
  150. package/dist/index167.js.map +1 -1
  151. package/dist/index168.js +9 -4
  152. package/dist/index168.js.map +1 -1
  153. package/dist/index169.js +20 -3
  154. package/dist/index169.js.map +1 -1
  155. package/dist/index170.js +16 -3
  156. package/dist/index170.js.map +1 -1
  157. package/dist/index171.js +23 -3
  158. package/dist/index171.js.map +1 -1
  159. package/dist/index172.js +6 -46
  160. package/dist/index172.js.map +1 -1
  161. package/dist/index173.js +5 -229
  162. package/dist/index173.js.map +1 -1
  163. package/dist/index174.js +24 -22
  164. package/dist/index174.js.map +1 -1
  165. package/dist/index175.js +35 -25
  166. package/dist/index175.js.map +1 -1
  167. package/dist/index176.js +16 -401
  168. package/dist/index176.js.map +1 -1
  169. package/dist/index177.js +6 -13
  170. package/dist/index177.js.map +1 -1
  171. package/dist/index178.js +4 -154
  172. package/dist/index178.js.map +1 -1
  173. package/dist/index179.js +4 -30
  174. package/dist/index179.js.map +1 -1
  175. package/dist/index18.js +205 -186
  176. package/dist/index18.js.map +1 -1
  177. package/dist/index180.js +4 -9
  178. package/dist/index180.js.map +1 -1
  179. package/dist/index181.js +4 -48
  180. package/dist/index181.js.map +1 -1
  181. package/dist/index182.js +3 -11
  182. package/dist/index182.js.map +1 -1
  183. package/dist/index183.js +6 -44
  184. package/dist/index183.js.map +1 -1
  185. package/dist/index184.js +24 -96
  186. package/dist/index184.js.map +1 -1
  187. package/dist/index185.js +7 -86
  188. package/dist/index185.js.map +1 -1
  189. package/dist/index186.js +6 -105
  190. package/dist/index186.js.map +1 -1
  191. package/dist/index187.js +5 -52
  192. package/dist/index187.js.map +1 -1
  193. package/dist/index188.js +3 -11
  194. package/dist/index188.js.map +1 -1
  195. package/dist/index189.js +3 -37
  196. package/dist/index189.js.map +1 -1
  197. package/dist/index19.js +280 -208
  198. package/dist/index19.js.map +1 -1
  199. package/dist/index190.js +4 -8
  200. package/dist/index190.js.map +1 -1
  201. package/dist/index191.js +3 -116
  202. package/dist/index191.js.map +1 -1
  203. package/dist/index192.js +4 -17
  204. package/dist/index192.js.map +1 -1
  205. package/dist/index193.js +3 -15
  206. package/dist/index193.js.map +1 -1
  207. package/dist/index194.js +3 -3
  208. package/dist/index194.js.map +1 -1
  209. package/dist/index195.js +3 -36
  210. package/dist/index195.js.map +1 -1
  211. package/dist/index196.js +13 -20
  212. package/dist/index196.js.map +1 -1
  213. package/dist/index197.js +154 -9
  214. package/dist/index197.js.map +1 -1
  215. package/dist/index198.js +30 -8
  216. package/dist/index198.js.map +1 -1
  217. package/dist/index199.js +9 -19
  218. package/dist/index199.js.map +1 -1
  219. package/dist/index200.js +45 -25
  220. package/dist/index200.js.map +1 -1
  221. package/dist/index201.js +11 -16
  222. package/dist/index201.js.map +1 -1
  223. package/dist/index202.js +44 -58
  224. package/dist/index202.js.map +1 -1
  225. package/dist/index203.js +95 -8
  226. package/dist/index203.js.map +1 -1
  227. package/dist/index204.js +81 -61
  228. package/dist/index204.js.map +1 -1
  229. package/dist/index205.js +103 -17
  230. package/dist/index205.js.map +1 -1
  231. package/dist/index206.js +50 -14
  232. package/dist/index206.js.map +1 -1
  233. package/dist/index207.js +10 -4
  234. package/dist/index207.js.map +1 -1
  235. package/dist/index208.js +36 -4
  236. package/dist/index208.js.map +1 -1
  237. package/dist/index209.js +8 -6
  238. package/dist/index209.js.map +1 -1
  239. package/dist/index210.js +116 -4
  240. package/dist/index210.js.map +1 -1
  241. package/dist/index211.js +17 -6
  242. package/dist/index211.js.map +1 -1
  243. package/dist/index212.js +15 -16
  244. package/dist/index212.js.map +1 -1
  245. package/dist/index213.js +3 -4
  246. package/dist/index213.js.map +1 -1
  247. package/dist/index214.js +36 -4
  248. package/dist/index214.js.map +1 -1
  249. package/dist/index215.js +20 -12
  250. package/dist/index215.js.map +1 -1
  251. package/dist/index216.js +9 -9
  252. package/dist/index216.js.map +1 -1
  253. package/dist/index217.js +8 -13
  254. package/dist/index217.js.map +1 -1
  255. package/dist/index218.js +19 -13
  256. package/dist/index218.js.map +1 -1
  257. package/dist/index219.js +28 -4
  258. package/dist/index219.js.map +1 -1
  259. package/dist/index220.js +16 -5
  260. package/dist/index220.js.map +1 -1
  261. package/dist/index221.js +66 -6
  262. package/dist/index221.js.map +1 -1
  263. package/dist/index222.js +8 -5
  264. package/dist/index222.js.map +1 -1
  265. package/dist/index223.js +11 -54
  266. package/dist/index223.js.map +1 -1
  267. package/dist/index224.js +8 -8
  268. package/dist/index224.js.map +1 -1
  269. package/dist/index225.js +5 -4
  270. package/dist/index225.js.map +1 -1
  271. package/dist/index226.js +13 -4
  272. package/dist/index226.js.map +1 -1
  273. package/dist/index227.js +3 -8
  274. package/dist/index227.js.map +1 -1
  275. package/dist/index228.js +3 -4
  276. package/dist/index228.js.map +1 -1
  277. package/dist/index229.js +99 -4
  278. package/dist/index229.js.map +1 -1
  279. package/dist/index230.js +29 -3
  280. package/dist/index230.js.map +1 -1
  281. package/dist/index231.js +51 -10
  282. package/dist/index231.js.map +1 -1
  283. package/dist/index232.js +17 -9
  284. package/dist/index232.js.map +1 -1
  285. package/dist/index233.js +5 -9
  286. package/dist/index233.js.map +1 -1
  287. package/dist/index234.js +122 -10
  288. package/dist/index234.js.map +1 -1
  289. package/dist/index235.js +27 -10
  290. package/dist/index235.js.map +1 -1
  291. package/dist/index236.js +32 -9
  292. package/dist/index236.js.map +1 -1
  293. package/dist/index237.js +73 -6
  294. package/dist/index237.js.map +1 -1
  295. package/dist/index238.js +262 -5
  296. package/dist/index238.js.map +1 -1
  297. package/dist/index239.js +28 -4
  298. package/dist/index239.js.map +1 -1
  299. package/dist/index240.js +6 -5
  300. package/dist/index240.js.map +1 -1
  301. package/dist/index241.js +142 -6
  302. package/dist/index241.js.map +1 -1
  303. package/dist/index242.js +61 -5
  304. package/dist/index242.js.map +1 -1
  305. package/dist/index243.js +49 -16
  306. package/dist/index243.js.map +1 -1
  307. package/dist/index244.js +15 -8
  308. package/dist/index244.js.map +1 -1
  309. package/dist/index245.js +132 -9
  310. package/dist/index245.js.map +1 -1
  311. package/dist/index246.js +7 -9
  312. package/dist/index246.js.map +1 -1
  313. package/dist/index247.js +5 -22
  314. package/dist/index247.js.map +1 -1
  315. package/dist/index248.js +4 -11
  316. package/dist/index248.js.map +1 -1
  317. package/dist/index249.js +11 -9
  318. package/dist/index249.js.map +1 -1
  319. package/dist/index250.js +21 -9
  320. package/dist/index250.js.map +1 -1
  321. package/dist/index251.js +20 -5
  322. package/dist/index251.js.map +1 -1
  323. package/dist/index252.js +11 -5
  324. package/dist/index252.js.map +1 -1
  325. package/dist/index253.js +48 -14
  326. package/dist/index253.js.map +1 -1
  327. package/dist/index254.js +16 -9
  328. package/dist/index254.js.map +1 -1
  329. package/dist/index255.js +21 -18
  330. package/dist/index255.js.map +1 -1
  331. package/dist/index256.js +50 -14
  332. package/dist/index256.js.map +1 -1
  333. package/dist/index257.js +25 -12
  334. package/dist/index257.js.map +1 -1
  335. package/dist/index258.js +41 -29
  336. package/dist/index258.js.map +1 -1
  337. package/dist/index259.js +39 -12
  338. package/dist/index259.js.map +1 -1
  339. package/dist/index260.js +45 -26
  340. package/dist/index260.js.map +1 -1
  341. package/dist/index261.js +20 -5
  342. package/dist/index261.js.map +1 -1
  343. package/dist/index262.js +68 -22
  344. package/dist/index262.js.map +1 -1
  345. package/dist/index263.js +18 -29
  346. package/dist/index263.js.map +1 -1
  347. package/dist/index264.js +12 -5
  348. package/dist/index264.js.map +1 -1
  349. package/dist/index265.js +12 -19
  350. package/dist/index265.js.map +1 -1
  351. package/dist/index266.js +18 -4
  352. package/dist/index266.js.map +1 -1
  353. package/dist/index267.js +36 -17
  354. package/dist/index267.js.map +1 -1
  355. package/dist/index268.js +278 -12
  356. package/dist/index268.js.map +1 -1
  357. package/dist/index269.js +69 -5
  358. package/dist/index269.js.map +1 -1
  359. package/dist/index270.js +84 -3
  360. package/dist/index270.js.map +1 -1
  361. package/dist/index271.js +3 -23
  362. package/dist/index271.js.map +1 -1
  363. package/dist/index272.js +28 -111
  364. package/dist/index272.js.map +1 -1
  365. package/dist/index273.js +16 -15
  366. package/dist/index273.js.map +1 -1
  367. package/dist/index274.js +32 -527
  368. package/dist/index274.js.map +1 -1
  369. package/dist/index275.js +14 -123
  370. package/dist/index275.js.map +1 -1
  371. package/dist/index276.js +3 -133
  372. package/dist/index276.js.map +1 -1
  373. package/dist/index277.js +26 -4
  374. package/dist/index277.js.map +1 -1
  375. package/dist/index278.js +4 -5
  376. package/dist/index278.js.map +1 -1
  377. package/dist/index279.js +79 -4
  378. package/dist/index279.js.map +1 -1
  379. package/dist/index28.js +1 -1
  380. package/dist/index280.js +269 -15
  381. package/dist/index280.js.map +1 -1
  382. package/dist/index281.js +11 -8
  383. package/dist/index281.js.map +1 -1
  384. package/dist/index282.js +10 -5
  385. package/dist/index282.js.map +1 -1
  386. package/dist/index283.js +25 -4
  387. package/dist/index283.js.map +1 -1
  388. package/dist/index284.js +16 -545
  389. package/dist/index284.js.map +1 -1
  390. package/dist/index285.js +123 -44
  391. package/dist/index285.js.map +1 -1
  392. package/dist/index286.js +5 -17
  393. package/dist/index286.js.map +1 -1
  394. package/dist/index287.js +40 -5
  395. package/dist/index287.js.map +1 -1
  396. package/dist/index288.js +65 -7
  397. package/dist/index288.js.map +1 -1
  398. package/dist/index289.js +14 -7
  399. package/dist/index289.js.map +1 -1
  400. package/dist/index290.js +7 -7
  401. package/dist/index290.js.map +1 -1
  402. package/dist/index291.js +5 -11
  403. package/dist/index291.js.map +1 -1
  404. package/dist/index292.js +3 -8
  405. package/dist/index292.js.map +1 -1
  406. package/dist/index293.js +10 -12
  407. package/dist/index293.js.map +1 -1
  408. package/dist/index294.js +8 -69
  409. package/dist/index294.js.map +1 -1
  410. package/dist/index295.js +398 -7
  411. package/dist/index295.js.map +1 -1
  412. package/dist/index296.js +53 -14
  413. package/dist/index296.js.map +1 -1
  414. package/dist/index297.js +12 -66
  415. package/dist/index297.js.map +1 -1
  416. package/dist/index298.js +11 -64
  417. package/dist/index298.js.map +1 -1
  418. package/dist/index299.js +58 -4
  419. package/dist/index299.js.map +1 -1
  420. package/dist/index30.js +1 -1
  421. package/dist/index300.js +9 -56
  422. package/dist/index300.js.map +1 -1
  423. package/dist/index301.js +66 -67
  424. package/dist/index301.js.map +1 -1
  425. package/dist/index302.js +20 -31
  426. package/dist/index302.js.map +1 -1
  427. package/dist/index303.js +17 -9
  428. package/dist/index303.js.map +1 -1
  429. package/dist/index304.js +5 -152
  430. package/dist/index304.js.map +1 -1
  431. package/dist/index305.js +5 -107
  432. package/dist/index305.js.map +1 -1
  433. package/dist/index306.js +6 -3
  434. package/dist/index306.js.map +1 -1
  435. package/dist/index307.js +4 -22
  436. package/dist/index307.js.map +1 -1
  437. package/dist/index308.js +6 -15
  438. package/dist/index308.js.map +1 -1
  439. package/dist/index309.js +16 -28
  440. package/dist/index309.js.map +1 -1
  441. package/dist/index31.js +227 -120
  442. package/dist/index31.js.map +1 -1
  443. package/dist/index310.js +4 -12
  444. package/dist/index310.js.map +1 -1
  445. package/dist/index311.js +4 -6
  446. package/dist/index311.js.map +1 -1
  447. package/dist/index312.js +13 -23
  448. package/dist/index312.js.map +1 -1
  449. package/dist/index313.js +10 -13
  450. package/dist/index313.js.map +1 -1
  451. package/dist/index314.js +13 -27
  452. package/dist/index314.js.map +1 -1
  453. package/dist/index315.js +14 -5
  454. package/dist/index315.js.map +1 -1
  455. package/dist/index316.js +8 -0
  456. package/dist/index316.js.map +1 -0
  457. package/dist/index317.js +9 -0
  458. package/dist/index317.js.map +1 -0
  459. package/dist/index318.js +10 -0
  460. package/dist/index318.js.map +1 -0
  461. package/dist/index319.js +9 -0
  462. package/dist/index319.js.map +1 -0
  463. package/dist/index32.js +21 -229
  464. package/dist/index32.js.map +1 -1
  465. package/dist/index320.js +58 -0
  466. package/dist/index320.js.map +1 -0
  467. package/dist/index321.js +12 -0
  468. package/dist/index321.js.map +1 -0
  469. package/dist/index322.js +8 -0
  470. package/dist/index322.js.map +1 -0
  471. package/dist/index323.js +8 -0
  472. package/dist/index323.js.map +1 -0
  473. package/dist/index324.js +12 -0
  474. package/dist/index324.js.map +1 -0
  475. package/dist/index325.js +8 -0
  476. package/dist/index325.js.map +1 -0
  477. package/dist/index326.js +8 -0
  478. package/dist/index326.js.map +1 -0
  479. package/dist/index327.js +7 -0
  480. package/dist/index327.js.map +1 -0
  481. package/dist/index328.js +14 -0
  482. package/dist/index328.js.map +1 -0
  483. package/dist/index329.js +13 -0
  484. package/dist/index329.js.map +1 -0
  485. package/dist/index33.js +4 -23
  486. package/dist/index33.js.map +1 -1
  487. package/dist/index330.js +13 -0
  488. package/dist/index330.js.map +1 -0
  489. package/dist/index331.js +14 -0
  490. package/dist/index331.js.map +1 -0
  491. package/dist/index332.js +14 -0
  492. package/dist/index332.js.map +1 -0
  493. package/dist/index333.js +13 -0
  494. package/dist/index333.js.map +1 -0
  495. package/dist/index334.js +10 -0
  496. package/dist/index334.js.map +1 -0
  497. package/dist/index335.js +9 -0
  498. package/dist/index335.js.map +1 -0
  499. package/dist/index336.js +8 -0
  500. package/dist/index336.js.map +1 -0
  501. package/dist/index337.js +9 -0
  502. package/dist/index337.js.map +1 -0
  503. package/dist/index338.js +10 -0
  504. package/dist/index338.js.map +1 -0
  505. package/dist/index339.js +9 -0
  506. package/dist/index339.js.map +1 -0
  507. package/dist/index34.js +62 -51
  508. package/dist/index34.js.map +1 -1
  509. package/dist/index340.js +20 -0
  510. package/dist/index340.js.map +1 -0
  511. package/dist/index341.js +11 -0
  512. package/dist/index341.js.map +1 -0
  513. package/dist/index342.js +14 -0
  514. package/dist/index342.js.map +1 -0
  515. package/dist/index343.js +14 -0
  516. package/dist/index343.js.map +1 -0
  517. package/dist/index344.js +25 -0
  518. package/dist/index344.js.map +1 -0
  519. package/dist/index345.js +14 -0
  520. package/dist/index345.js.map +1 -0
  521. package/dist/index346.js +13 -0
  522. package/dist/index346.js.map +1 -0
  523. package/dist/index347.js +13 -0
  524. package/dist/index347.js.map +1 -0
  525. package/dist/index348.js +8 -0
  526. package/dist/index348.js.map +1 -0
  527. package/dist/index349.js +9 -0
  528. package/dist/index349.js.map +1 -0
  529. package/dist/index35.js +38 -21
  530. package/dist/index35.js.map +1 -1
  531. package/dist/index350.js +20 -0
  532. package/dist/index350.js.map +1 -0
  533. package/dist/index351.js +13 -0
  534. package/dist/index351.js.map +1 -0
  535. package/dist/index352.js +22 -0
  536. package/dist/index352.js.map +1 -0
  537. package/dist/index353.js +19 -0
  538. package/dist/index353.js.map +1 -0
  539. package/dist/index354.js +16 -0
  540. package/dist/index354.js.map +1 -0
  541. package/dist/index355.js +33 -0
  542. package/dist/index355.js.map +1 -0
  543. package/dist/index356.js +16 -0
  544. package/dist/index356.js.map +1 -0
  545. package/dist/index357.js +29 -0
  546. package/dist/index357.js.map +1 -0
  547. package/dist/index358.js +9 -0
  548. package/dist/index358.js.map +1 -0
  549. package/dist/index359.js +24 -0
  550. package/dist/index359.js.map +1 -0
  551. package/dist/index36.js +75 -127
  552. package/dist/index36.js.map +1 -1
  553. package/dist/index360.js +12 -0
  554. package/dist/index360.js.map +1 -0
  555. package/dist/index361.js +29 -0
  556. package/dist/index361.js.map +1 -0
  557. package/dist/index362.js +30 -0
  558. package/dist/index362.js.map +1 -0
  559. package/dist/index363.js +141 -0
  560. package/dist/index363.js.map +1 -0
  561. package/dist/index364.js +16 -0
  562. package/dist/index364.js.map +1 -0
  563. package/dist/index365.js +230 -0
  564. package/dist/index365.js.map +1 -0
  565. package/dist/index366.js +7 -0
  566. package/dist/index366.js.map +1 -0
  567. package/dist/index367.js +23 -0
  568. package/dist/index367.js.map +1 -0
  569. package/dist/index368.js +81 -0
  570. package/dist/index368.js.map +1 -0
  571. package/dist/index369.js +15 -0
  572. package/dist/index369.js.map +1 -0
  573. package/dist/index37.js +22 -221
  574. package/dist/index37.js.map +1 -1
  575. package/dist/index370.js +7 -0
  576. package/dist/index370.js.map +1 -0
  577. package/dist/index371.js +81 -0
  578. package/dist/index371.js.map +1 -0
  579. package/dist/index372.js +204 -0
  580. package/dist/index372.js.map +1 -0
  581. package/dist/index373.js +75 -0
  582. package/dist/index373.js.map +1 -0
  583. package/dist/index374.js +12 -0
  584. package/dist/index374.js.map +1 -0
  585. package/dist/index375.js +20 -0
  586. package/dist/index375.js.map +1 -0
  587. package/dist/index376.js +19 -0
  588. package/dist/index376.js.map +1 -0
  589. package/dist/index377.js +7 -0
  590. package/dist/index377.js.map +1 -0
  591. package/dist/index378.js +15 -0
  592. package/dist/index378.js.map +1 -0
  593. package/dist/index379.js +9 -0
  594. package/dist/index379.js.map +1 -0
  595. package/dist/index38.js +37 -90
  596. package/dist/index38.js.map +1 -1
  597. package/dist/index380.js +24 -0
  598. package/dist/index380.js.map +1 -0
  599. package/dist/index381.js +48 -0
  600. package/dist/index381.js.map +1 -0
  601. package/dist/index382.js +21 -0
  602. package/dist/index382.js.map +1 -0
  603. package/dist/index383.js +8 -0
  604. package/dist/index383.js.map +1 -0
  605. package/dist/index384.js +8 -0
  606. package/dist/index384.js.map +1 -0
  607. package/dist/index385.js +21 -0
  608. package/dist/index385.js.map +1 -0
  609. package/dist/index386.js +16 -0
  610. package/dist/index386.js.map +1 -0
  611. package/dist/index387.js +18 -0
  612. package/dist/index387.js.map +1 -0
  613. package/dist/index388.js +495 -0
  614. package/dist/index388.js.map +1 -0
  615. package/dist/index389.js +6 -0
  616. package/dist/index389.js.map +1 -0
  617. package/dist/index39.js +28 -119
  618. package/dist/index39.js.map +1 -1
  619. package/dist/index390.js +6 -0
  620. package/dist/index390.js.map +1 -0
  621. package/dist/index391.js +8 -0
  622. package/dist/index391.js.map +1 -0
  623. package/dist/index392.js +8 -0
  624. package/dist/index392.js.map +1 -0
  625. package/dist/index393.js +7 -0
  626. package/dist/index393.js.map +1 -0
  627. package/dist/index394.js +19 -0
  628. package/dist/index394.js.map +1 -0
  629. package/dist/index395.js +12 -0
  630. package/dist/index395.js.map +1 -0
  631. package/dist/index396.js +9 -0
  632. package/dist/index396.js.map +1 -0
  633. package/dist/index397.js +8 -0
  634. package/dist/index397.js.map +1 -0
  635. package/dist/index398.js +549 -0
  636. package/dist/index398.js.map +1 -0
  637. package/dist/index399.js +50 -0
  638. package/dist/index399.js.map +1 -0
  639. package/dist/index40.js +23 -6
  640. package/dist/index40.js.map +1 -1
  641. package/dist/index400.js +21 -0
  642. package/dist/index400.js.map +1 -0
  643. package/dist/index401.js +9 -0
  644. package/dist/index401.js.map +1 -0
  645. package/dist/index402.js +11 -0
  646. package/dist/index402.js.map +1 -0
  647. package/dist/index403.js +10 -0
  648. package/dist/index403.js.map +1 -0
  649. package/dist/index404.js +11 -0
  650. package/dist/index404.js.map +1 -0
  651. package/dist/index405.js +15 -0
  652. package/dist/index405.js.map +1 -0
  653. package/dist/index406.js +12 -0
  654. package/dist/index406.js.map +1 -0
  655. package/dist/index407.js +16 -0
  656. package/dist/index407.js.map +1 -0
  657. package/dist/index408.js +11 -0
  658. package/dist/index408.js.map +1 -0
  659. package/dist/index409.js +5 -0
  660. package/dist/index409.js.map +1 -0
  661. package/dist/index41.js +51 -817
  662. package/dist/index41.js.map +1 -1
  663. package/dist/index410.js +47 -0
  664. package/dist/index410.js.map +1 -0
  665. package/dist/index411.js +59 -0
  666. package/dist/index411.js.map +1 -0
  667. package/dist/index412.js +11 -0
  668. package/dist/index412.js.map +1 -0
  669. package/dist/index413.js +5 -0
  670. package/dist/index413.js.map +1 -0
  671. package/dist/index414.js +58 -0
  672. package/dist/index414.js.map +1 -0
  673. package/dist/index415.js +59 -0
  674. package/dist/index415.js.map +1 -0
  675. package/dist/index416.js +8 -0
  676. package/dist/index416.js.map +1 -0
  677. package/dist/index417.js +59 -0
  678. package/dist/index417.js.map +1 -0
  679. package/dist/index418.js +71 -0
  680. package/dist/index418.js.map +1 -0
  681. package/dist/index419.js +34 -0
  682. package/dist/index419.js.map +1 -0
  683. package/dist/index42.js +51 -57
  684. package/dist/index42.js.map +1 -1
  685. package/dist/index420.js +12 -0
  686. package/dist/index420.js.map +1 -0
  687. package/dist/index421.js +156 -0
  688. package/dist/index421.js.map +1 -0
  689. package/dist/index422.js +111 -0
  690. package/dist/index422.js.map +1 -0
  691. package/dist/index423.js +5 -0
  692. package/dist/index423.js.map +1 -0
  693. package/dist/index424.js +5 -0
  694. package/dist/index424.js.map +1 -0
  695. package/dist/index425.js +5 -0
  696. package/dist/index425.js.map +1 -0
  697. package/dist/index426.js +5 -0
  698. package/dist/index426.js.map +1 -0
  699. package/dist/index427.js +19 -0
  700. package/dist/index427.js.map +1 -0
  701. package/dist/index428.js +32 -0
  702. package/dist/index428.js.map +1 -0
  703. package/dist/index429.js +16 -0
  704. package/dist/index429.js.map +1 -0
  705. package/dist/index43.js +21 -7
  706. package/dist/index43.js.map +1 -1
  707. package/dist/index430.js +10 -0
  708. package/dist/index430.js.map +1 -0
  709. package/dist/index44.js +130 -2
  710. package/dist/index44.js.map +1 -1
  711. package/dist/index45.js +221 -11
  712. package/dist/index45.js.map +1 -1
  713. package/dist/index46.js +90 -18
  714. package/dist/index46.js.map +1 -1
  715. package/dist/index47.js +126 -7
  716. package/dist/index47.js.map +1 -1
  717. package/dist/index48.js +6 -2
  718. package/dist/index48.js.map +1 -1
  719. package/dist/index49.js +326 -23
  720. package/dist/index49.js.map +1 -1
  721. package/dist/index50.js +247 -221
  722. package/dist/index50.js.map +1 -1
  723. package/dist/index51.js +27 -2
  724. package/dist/index51.js.map +1 -1
  725. package/dist/index52.js +129 -2
  726. package/dist/index52.js.map +1 -1
  727. package/dist/index53.js +26 -2
  728. package/dist/index53.js.map +1 -1
  729. package/dist/index54.js +23 -2
  730. package/dist/index54.js.map +1 -1
  731. package/dist/index55.js +145 -6
  732. package/dist/index55.js.map +1 -1
  733. package/dist/index56.js +34 -33
  734. package/dist/index56.js.map +1 -1
  735. package/dist/index57.js +28 -48
  736. package/dist/index57.js.map +1 -1
  737. package/dist/index58.js +41 -8
  738. package/dist/index58.js.map +1 -1
  739. package/dist/index59.js +21 -12
  740. package/dist/index59.js.map +1 -1
  741. package/dist/index6.js +84 -85
  742. package/dist/index6.js.map +1 -1
  743. package/dist/index60.js +132 -6
  744. package/dist/index60.js.map +1 -1
  745. package/dist/index61.js +51 -8
  746. package/dist/index61.js.map +1 -1
  747. package/dist/index62.js +30 -6
  748. package/dist/index62.js.map +1 -1
  749. package/dist/index63.js +57 -4
  750. package/dist/index63.js.map +1 -1
  751. package/dist/index64.js +7 -47
  752. package/dist/index64.js.map +1 -1
  753. package/dist/index65.js +2 -51
  754. package/dist/index65.js.map +1 -1
  755. package/dist/index66.js +11 -7
  756. package/dist/index66.js.map +1 -1
  757. package/dist/index67.js +17 -13
  758. package/dist/index67.js.map +1 -1
  759. package/dist/index68.js +7 -133
  760. package/dist/index68.js.map +1 -1
  761. package/dist/index69.js +2 -11
  762. package/dist/index69.js.map +1 -1
  763. package/dist/index7.js +123 -98
  764. package/dist/index7.js.map +1 -1
  765. package/dist/index70.js +22 -215
  766. package/dist/index70.js.map +1 -1
  767. package/dist/index71.js +234 -13
  768. package/dist/index71.js.map +1 -1
  769. package/dist/index72.js +5 -46
  770. package/dist/index72.js.map +1 -1
  771. package/dist/index73.js +7 -49
  772. package/dist/index73.js.map +1 -1
  773. package/dist/index74.js +6 -4
  774. package/dist/index74.js.map +1 -1
  775. package/dist/index75.js +2 -6
  776. package/dist/index75.js.map +1 -1
  777. package/dist/index76.js +2 -28
  778. package/dist/index76.js.map +1 -1
  779. package/dist/index77.js +2 -50
  780. package/dist/index77.js.map +1 -1
  781. package/dist/index78.js +2 -9
  782. package/dist/index78.js.map +1 -1
  783. package/dist/index79.js +5 -46
  784. package/dist/index79.js.map +1 -1
  785. package/dist/index8.js +53 -54
  786. package/dist/index8.js.map +1 -1
  787. package/dist/index80.js +68 -5
  788. package/dist/index80.js.map +1 -1
  789. package/dist/index81.js +2 -69
  790. package/dist/index81.js.map +1 -1
  791. package/dist/index82.js +364 -2
  792. package/dist/index82.js.map +1 -1
  793. package/dist/index83.js +201 -303
  794. package/dist/index83.js.map +1 -1
  795. package/dist/index84.js +46 -247
  796. package/dist/index84.js.map +1 -1
  797. package/dist/index85.js +42 -56
  798. package/dist/index85.js.map +1 -1
  799. package/dist/index86.js +169 -46
  800. package/dist/index86.js.map +1 -1
  801. package/dist/index87.js +96 -156
  802. package/dist/index87.js.map +1 -1
  803. package/dist/index88.js +24 -109
  804. package/dist/index88.js.map +1 -1
  805. package/dist/index89.js +8 -25
  806. package/dist/index89.js.map +1 -1
  807. package/dist/index9.js +1 -1
  808. package/dist/index90.js +5 -8
  809. package/dist/index90.js.map +1 -1
  810. package/dist/index91.js +5 -4
  811. package/dist/index91.js.map +1 -1
  812. package/dist/index92.js +4 -5
  813. package/dist/index92.js.map +1 -1
  814. package/dist/index93.js +466 -4
  815. package/dist/index93.js.map +1 -1
  816. package/dist/index94.js +139 -420
  817. package/dist/index94.js.map +1 -1
  818. package/dist/index95.js +71 -149
  819. package/dist/index95.js.map +1 -1
  820. package/dist/index96.js +229 -74
  821. package/dist/index96.js.map +1 -1
  822. package/dist/index97.js +9 -262
  823. package/dist/index97.js.map +1 -1
  824. package/dist/index98.js +42 -9
  825. package/dist/index98.js.map +1 -1
  826. package/dist/index99.js +4 -42
  827. package/dist/index99.js.map +1 -1
  828. package/dist/lib/render-as-child.d.ts +5 -0
  829. package/dist/lib/render-as-child.d.ts.map +1 -0
  830. package/package.json +3 -6
  831. package/dist/lib/react-compose-refs.d.ts +0 -5
  832. package/dist/lib/react-compose-refs.d.ts.map +0 -1
package/dist/index37.js CHANGED
@@ -1,225 +1,26 @@
1
- import { MAX_DIAL_CODE_LENGTH as W, COMMON_IDD_PREFIXES as $, DEFAULT_COUNTRY as x, COUNTRY_DIAL_CODES as C } from "./index36.js";
2
- import { getCountryCallingCode as p } from "./index40.js";
3
- import { AsYouType as I } from "./index61.js";
4
- import { validatePhoneNumberLength as D } from "./index62.js";
5
- function g(t) {
6
- return t.replace(/\D/g, "");
7
- }
8
- function P(t) {
9
- return t ? t.length > W ? !1 : C.some((e) => e.startsWith(t)) : !0;
10
- }
11
- const N = /[\u061C\u200B-\u200F\u202A-\u202E\u2066-\u2069\uFEFF]/g;
12
- function T(t) {
13
- return t.replace(N, "");
14
- }
15
- function q(t, e, s = {}) {
1
+ import * as n from "react";
2
+ import { useDialogRootContext as p } from "./index100.js";
3
+ import { useRenderElement as a } from "./index101.js";
4
+ import { useBaseUiId as c } from "./index107.js";
5
+ const d = /* @__PURE__ */ n.forwardRef(function(e, r) {
16
6
  const {
17
- force: u = !1
18
- } = s, o = `+${e}`;
19
- if (!t.startsWith(o) || !u)
20
- return t;
21
- const i = t.slice(o.length).trimStart();
22
- if (i.startsWith("0"))
23
- return t;
24
- if (!i)
25
- return `${o} 0`;
26
- const [n, ...r] = i.split(" "), f = `0${n ?? ""}`, l = r.length > 0 ? ` ${r.join(" ")}` : "";
27
- return `${o} ${f}${l}`.replace(/\s\s+/g, " ").trimEnd();
28
- }
29
- const O = {
30
- GG: "GB",
31
- JE: "GB",
32
- IM: "GB"
33
- };
34
- function y(t) {
35
- if (t)
36
- return O[t] ?? t;
37
- }
38
- function _(t, e, s) {
39
- if (!t || !s || (t.nationalNumber ?? "").length < 4)
40
- return;
41
- const o = t.countryCallingCode;
42
- if (!o)
43
- return;
44
- const i = t.getMetadata, n = (typeof i == "function" ? i() : null)?.country_calling_codes?.[o];
45
- if (!n || n.length === 0)
46
- return;
47
- const r = [];
48
- for (const f of n) {
49
- const l = y(f);
50
- l && !r.includes(l) && r.push(l);
51
- }
52
- if (r.length !== 0)
53
- return e && r.includes(e) ? e : r.includes(x) ? x : r[0];
54
- }
55
- function B(t, e, s, u) {
56
- if (!t)
57
- return !1;
58
- if (!u)
59
- return t.startsWith("0");
60
- if (!s || !t.startsWith(s) || !t.slice(s.length).startsWith("0"))
61
- return !1;
62
- const o = t.slice(s.length + 1), i = e.startsWith(s) ? e.slice(s.length) : e;
63
- return o === i;
64
- }
65
- function S(t) {
66
- for (const e of $)
67
- if (t.startsWith(e))
68
- return t.slice(e.length);
69
- return t;
70
- }
71
- function M(t, e, s = {}) {
72
- const {
73
- allowJustPlus: u = !1,
74
- removeNationalPrefix: o = !0,
75
- previousValue: i
76
- } = s, n = T(t).trim();
77
- if (!n)
78
- return "";
79
- if (n === "+")
80
- return u ? "+" : "";
81
- if (n.startsWith("+")) {
82
- const a = g(n);
83
- if (!a)
84
- return u ? "+" : "";
85
- const d = S(a);
86
- if (d !== a)
87
- return d ? `+${d}` : u ? "+" : "";
88
- if (o && e) {
89
- const h = p(e);
90
- if (a.startsWith(h) && a.slice(h.length).startsWith("0")) {
91
- const E = a.slice(h.length + 1);
92
- return E ? `+${h}${E}` : `+${h}`;
93
- }
94
- }
95
- return `+${a}`;
96
- }
97
- const r = g(n);
98
- if (!r)
99
- return "";
100
- const f = S(r);
101
- if (f !== r)
102
- return f ? `+${f}` : u ? "+" : "";
103
- const l = typeof i == "string" ? i : "", m = l && l.startsWith("+") ? g(l) : "";
104
- if (m && m.length > r.length && m.endsWith(r) && m.length - r.length <= W)
105
- return `+${r}`;
106
- if (r === "0")
107
- return "0";
108
- if (o && e && r.length > 1 && r.startsWith("0") && !r.startsWith("00")) {
109
- const a = p(e), d = r.slice(1);
110
- return d ? `+${a}${d}` : `+${a}`;
111
- }
112
- return e ? r.length <= 4 ? `+${r}` : `+${p(e)}${r}` : r;
113
- }
114
- function Y(t, e) {
115
- if (t === "+")
116
- return {
117
- international: "+",
118
- national: "",
119
- formatted: "+",
120
- phoneNumber: null,
121
- detectedCountry: void 0,
122
- inferredCountry: void 0,
123
- hasExplicitInternationalPrefix: !0
124
- };
125
- const s = /^\s*\+/.test(t), u = e ? new I(e) : new I(), o = u.input(t), i = u.getNumber(), c = g(t), n = y(i?.country ?? u.country ?? void 0), r = n ?? !i ? void 0 : y(_(i, e, c)), f = i?.formatInternational() ?? o, l = i?.formatNational() ?? g(f);
126
- return {
127
- international: f,
128
- national: l,
129
- formatted: o,
130
- phoneNumber: i,
131
- detectedCountry: n,
132
- inferredCountry: r,
133
- hasExplicitInternationalPrefix: s
134
- };
135
- }
136
- function v(t, e) {
137
- return t.startsWith(e) ? t.slice(e.length) : t;
138
- }
139
- function H(t, e) {
140
- if (!e || !t)
141
- return null;
142
- try {
143
- return D(t, e) === "TOO_LONG" ? "TOO_LONG" : null;
144
- } catch {
145
- return null;
146
- }
147
- }
148
- function U(t, e, s, u = {}) {
149
- const {
150
- hasRemovedNationalPrefix: o = !1,
151
- detectedCountry: i,
152
- hasExplicitInternationalPrefix: c = !1
153
- } = u;
154
- if (!t)
155
- return {
156
- shouldSuggest: !1,
157
- query: ""
158
- };
159
- if (t === "+")
160
- return {
161
- shouldSuggest: !0,
162
- query: ""
163
- };
164
- const n = g(t);
165
- if (!n)
166
- return {
167
- shouldSuggest: !0,
168
- query: ""
169
- };
170
- if (o)
171
- return {
172
- shouldSuggest: !1,
173
- query: ""
174
- };
175
- if (c && !i)
176
- return P(n) ? {
177
- shouldSuggest: !0,
178
- query: n
179
- } : {
180
- shouldSuggest: !1,
181
- query: ""
182
- };
183
- let r = s?.countryCallingCode ?? null;
184
- if (!r) {
185
- if (e) {
186
- const l = p(e);
187
- n.startsWith(l) && (r = l);
188
- } else if (!c)
189
- return {
190
- shouldSuggest: !1,
191
- query: ""
192
- };
193
- }
194
- return r ? v(n, r).length === 0 ? {
195
- shouldSuggest: !0,
196
- query: n
197
- } : {
198
- shouldSuggest: !1,
199
- query: ""
200
- } : {
201
- shouldSuggest: !0,
202
- query: n
203
- };
204
- }
205
- function V(t, e) {
206
- if (t.shouldSuggest)
207
- return !1;
208
- const {
209
- hasExplicitInternationalPrefix: s = !1,
210
- detectedCountry: u
211
- } = e;
212
- return s ? !!u : !0;
213
- }
7
+ render: m,
8
+ className: f,
9
+ style: u,
10
+ id: i,
11
+ ...t
12
+ } = e, {
13
+ store: s
14
+ } = p(), o = c(i);
15
+ return s.useSyncedValueWithCleanup("descriptionElementId", o), a("p", e, {
16
+ ref: r,
17
+ props: [{
18
+ id: o
19
+ }, t]
20
+ });
21
+ });
22
+ process.env.NODE_ENV !== "production" && (d.displayName = "DialogDescription");
214
23
  export {
215
- B as detectNationalPrefixForDisplay,
216
- Y as formatWithAsYouType,
217
- H as getLengthIssue,
218
- U as getSuggestionState,
219
- q as injectNationalPrefixDisplay,
220
- M as normalizeInputValue,
221
- g as sanitizeDigits,
222
- V as shouldDisplayExplicitCountrySelection,
223
- v as stripPrefix
24
+ d as DialogDescription
224
25
  };
225
26
  //# sourceMappingURL=index37.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index37.js","sources":["../src/components/PhoneNumberInput/normalization.ts"],"sourcesContent":["import type { CountryCode } from \"libphonenumber-js\"\nimport { AsYouType, getCountryCallingCode, validatePhoneNumberLength } from \"libphonenumber-js\"\n\nimport {\n COMMON_IDD_PREFIXES,\n COUNTRY_DIAL_CODES,\n DEFAULT_COUNTRY,\n MAX_DIAL_CODE_LENGTH,\n} from \"./country-options\"\n\n\nexport type LengthIssue = \"TOO_LONG\"\n\nexport function sanitizeDigits(value: string) {\n return value.replace(/\\D/g, \"\")\n}\n\nfunction isDialCodeProgress(digits: string) {\n if (!digits) {\n return true\n }\n\n if (digits.length > MAX_DIAL_CODE_LENGTH) {\n return false\n }\n\n return COUNTRY_DIAL_CODES.some((dial) => dial.startsWith(digits))\n}\n\nconst INVISIBLE_FORMATTING_CHARACTERS =\n /[\\u061C\\u200B-\\u200F\\u202A-\\u202E\\u2066-\\u2069\\uFEFF]/g\n\nfunction stripInvisibleFormatting(value: string) {\n return value.replace(INVISIBLE_FORMATTING_CHARACTERS, \"\")\n}\n\nexport function injectNationalPrefixDisplay(\n international: string,\n dialCode: string,\n options: { force?: boolean } = {}\n) {\n // Preserve a user-typed national trunk (e.g. the French \"0\") purely for display\n // so validation can continue to use the canonical E.164 representation internally.\n const { force = false } = options\n const prefix = `+${dialCode}`\n\n if (!international.startsWith(prefix)) {\n return international\n }\n\n if (!force) {\n return international\n }\n\n const remainder = international.slice(prefix.length).trimStart()\n const alreadyHasTrunk = remainder.startsWith(\"0\")\n\n if (alreadyHasTrunk) {\n return international\n }\n\n if (!remainder) {\n return `${prefix} 0`\n }\n\n const [firstGroup, ...restGroups] = remainder.split(\" \")\n const rebuiltFirstGroup = `0${firstGroup ?? \"\"}`\n const rebuiltRemainder = restGroups.length > 0 ? ` ${restGroups.join(\" \")}` : \"\"\n\n return `${prefix} ${rebuiltFirstGroup}${rebuiltRemainder}`.replace(/\\s\\s+/g, \" \").trimEnd()\n}\n\nconst DETECTED_COUNTRY_OVERRIDES: Partial<Record<CountryCode, CountryCode>> = {\n GG: \"GB\",\n JE: \"GB\",\n IM: \"GB\",\n}\n\nfunction canonicalizeDetectedCountry(candidate: CountryCode | undefined): CountryCode | undefined {\n if (!candidate) {\n return undefined\n }\n return DETECTED_COUNTRY_OVERRIDES[candidate] ?? candidate\n}\n\ntype AsYouTypeNumber = ReturnType<AsYouType[\"getNumber\"]>\n\nfunction inferCountryFromDialCode(\n phoneNumber: AsYouTypeNumber,\n baseCountry: CountryCode | undefined,\n normalizedDigits: string\n): CountryCode | undefined {\n if (!phoneNumber) {\n return undefined\n }\n\n if (!normalizedDigits) {\n return undefined\n }\n\n const nationalDigits = phoneNumber.nationalNumber ?? \"\"\n if (nationalDigits.length < 4) {\n return undefined\n }\n\n const dial = phoneNumber.countryCallingCode\n if (!dial) {\n return undefined\n }\n\n const metadataGetter = (phoneNumber as unknown as { getMetadata?: () => unknown }).getMetadata\n const metadata =\n typeof metadataGetter === \"function\"\n ? (metadataGetter() as {\n country_calling_codes?: Record<string, string[]>\n } | null)\n : null\n\n const candidates = metadata?.country_calling_codes?.[dial]\n if (!candidates || candidates.length === 0) {\n return undefined\n }\n\n const canonicalCandidates: CountryCode[] = []\n for (const candidate of candidates) {\n const canonical = canonicalizeDetectedCountry(candidate as CountryCode)\n if (canonical && !canonicalCandidates.includes(canonical)) {\n canonicalCandidates.push(canonical)\n }\n }\n\n if (canonicalCandidates.length === 0) {\n return undefined\n }\n\n if (baseCountry && canonicalCandidates.includes(baseCountry)) {\n return baseCountry\n }\n\n if (canonicalCandidates.includes(DEFAULT_COUNTRY)) {\n return DEFAULT_COUNTRY\n }\n\n return canonicalCandidates[0]\n}\n\nexport function detectNationalPrefixForDisplay(\n rawDigits: string,\n internationalDigits: string,\n dialCode: string,\n hasExplicitInternationalPrefix: boolean\n) {\n if (!rawDigits) {\n return false\n }\n\n if (!hasExplicitInternationalPrefix) {\n return rawDigits.startsWith(\"0\")\n }\n\n if (!dialCode) {\n return false\n }\n\n if (!rawDigits.startsWith(dialCode)) {\n return false\n }\n\n if (!rawDigits.slice(dialCode.length).startsWith(\"0\")) {\n return false\n }\n\n const rawAfterTrunk = rawDigits.slice(dialCode.length + 1)\n const internationalAfterDial = internationalDigits.startsWith(dialCode)\n ? internationalDigits.slice(dialCode.length)\n : internationalDigits\n\n return rawAfterTrunk === internationalAfterDial\n}\n\nfunction stripIddPrefix(digits: string) {\n for (const prefix of COMMON_IDD_PREFIXES) {\n if (digits.startsWith(prefix)) {\n return digits.slice(prefix.length)\n }\n }\n return digits\n}\n\nexport function normalizeInputValue(\n rawValue: string,\n country: CountryCode | undefined,\n options: {\n allowJustPlus?: boolean\n removeNationalPrefix?: boolean\n previousValue?: string\n } = {}\n) {\n const { allowJustPlus = false, removeNationalPrefix = true, previousValue } = options\n const cleaned = stripInvisibleFormatting(rawValue)\n const trimmed = cleaned.trim()\n\n if (!trimmed) {\n return \"\"\n }\n\n if (trimmed === \"+\") {\n return allowJustPlus ? \"+\" : \"\"\n }\n\n if (trimmed.startsWith(\"+\")) {\n const digits = sanitizeDigits(trimmed)\n if (!digits) {\n return allowJustPlus ? \"+\" : \"\"\n }\n const digitsWithoutIdd = stripIddPrefix(digits)\n if (digitsWithoutIdd !== digits) {\n return digitsWithoutIdd ? `+${digitsWithoutIdd}` : allowJustPlus ? \"+\" : \"\"\n }\n if (removeNationalPrefix && country) {\n const dial = getCountryCallingCode(country)\n if (digits.startsWith(dial) && digits.slice(dial.length).startsWith(\"0\")) {\n const withoutPrefix = digits.slice(dial.length + 1)\n return withoutPrefix ? `+${dial}${withoutPrefix}` : `+${dial}`\n }\n }\n return `+${digits}`\n }\n\n const digitsOnly = sanitizeDigits(trimmed)\n if (!digitsOnly) {\n return \"\"\n }\n\n const digitsWithoutIdd = stripIddPrefix(digitsOnly)\n if (digitsWithoutIdd !== digitsOnly) {\n return digitsWithoutIdd ? `+${digitsWithoutIdd}` : allowJustPlus ? \"+\" : \"\"\n }\n\n const previousNormalized = typeof previousValue === \"string\" ? previousValue : \"\"\n const previousDigits =\n previousNormalized && previousNormalized.startsWith(\"+\")\n ? sanitizeDigits(previousNormalized)\n : \"\"\n\n if (previousDigits && previousDigits.length > digitsOnly.length) {\n if (previousDigits.endsWith(digitsOnly)) {\n const removedPrefixLength = previousDigits.length - digitsOnly.length\n if (removedPrefixLength <= MAX_DIAL_CODE_LENGTH) {\n return `+${digitsOnly}`\n }\n }\n }\n\n if (digitsOnly === \"0\") {\n return \"0\"\n }\n\n if (\n removeNationalPrefix &&\n country &&\n digitsOnly.length > 1 &&\n digitsOnly.startsWith(\"0\") &&\n !digitsOnly.startsWith(\"00\")\n ) {\n const dial = getCountryCallingCode(country)\n const withoutPrefix = digitsOnly.slice(1)\n return withoutPrefix ? `+${dial}${withoutPrefix}` : `+${dial}`\n }\n\n if (!country) {\n return digitsOnly\n }\n\n if (digitsOnly.length <= 4) {\n return `+${digitsOnly}`\n }\n\n const dial = getCountryCallingCode(country)\n return `+${dial}${digitsOnly}`\n}\n\nexport function formatWithAsYouType(value: string, baseCountry?: CountryCode) {\n if (value === \"+\") {\n return {\n international: \"+\",\n national: \"\",\n formatted: \"+\",\n phoneNumber: null,\n detectedCountry: undefined,\n inferredCountry: undefined,\n hasExplicitInternationalPrefix: true,\n }\n }\n\n const hasExplicitInternationalPrefix = /^\\s*\\+/.test(value)\n const formatter = baseCountry ? new AsYouType(baseCountry) : new AsYouType()\n const formatted = formatter.input(value)\n const phoneNumber = formatter.getNumber()\n const digits = sanitizeDigits(value)\n const detectedCountry = canonicalizeDetectedCountry(\n (phoneNumber?.country ?? formatter.country ?? undefined) as CountryCode | undefined\n )\n const inferredCountry =\n detectedCountry ?? !phoneNumber\n ? undefined\n : canonicalizeDetectedCountry(\n inferCountryFromDialCode(phoneNumber, baseCountry, digits)\n )\n\n const international = phoneNumber?.formatInternational() ?? formatted\n const national = phoneNumber?.formatNational() ?? sanitizeDigits(international)\n\n return {\n international,\n national,\n formatted,\n phoneNumber,\n detectedCountry,\n inferredCountry,\n hasExplicitInternationalPrefix,\n }\n}\n\nexport function stripPrefix(value: string, prefix: string) {\n return value.startsWith(prefix) ? value.slice(prefix.length) : value\n}\n\nexport function getLengthIssue(value: string, country: CountryCode | undefined): LengthIssue | null {\n if (!country || !value) {\n return null\n }\n\n try {\n const result = validatePhoneNumberLength(value, country)\n return result === \"TOO_LONG\" ? \"TOO_LONG\" : null\n } catch {\n return null\n }\n}\n\ntype SuggestionState = {\n shouldSuggest: boolean\n query: string\n}\n\nexport function getSuggestionState(\n normalized: string,\n baseCountry: CountryCode | undefined,\n phoneNumber: ReturnType<AsYouType[\"getNumber\"]>,\n options: {\n hasRemovedNationalPrefix?: boolean\n detectedCountry?: CountryCode\n hasExplicitInternationalPrefix?: boolean\n } = {}\n): SuggestionState {\n const {\n hasRemovedNationalPrefix = false,\n detectedCountry,\n hasExplicitInternationalPrefix = false,\n } = options\n\n if (!normalized) {\n return { shouldSuggest: false, query: \"\" }\n }\n\n if (normalized === \"+\") {\n return { shouldSuggest: true, query: \"\" }\n }\n\n const digits = sanitizeDigits(normalized)\n if (!digits) {\n return { shouldSuggest: true, query: \"\" }\n }\n\n if (hasRemovedNationalPrefix) {\n return { shouldSuggest: false, query: \"\" }\n }\n\n if (hasExplicitInternationalPrefix && !detectedCountry) {\n if (!isDialCodeProgress(digits)) {\n return { shouldSuggest: false, query: \"\" }\n }\n return { shouldSuggest: true, query: digits }\n }\n\n let dial = phoneNumber?.countryCallingCode ?? null\n if (!dial) {\n if (baseCountry) {\n const baseDial = getCountryCallingCode(baseCountry)\n if (digits.startsWith(baseDial)) {\n dial = baseDial\n }\n } else if (!hasExplicitInternationalPrefix) {\n return { shouldSuggest: false, query: \"\" }\n }\n }\n\n if (!dial) {\n return { shouldSuggest: true, query: digits }\n }\n\n const nationalDigits = stripPrefix(digits, dial)\n if (nationalDigits.length === 0) {\n return { shouldSuggest: true, query: digits }\n }\n\n return { shouldSuggest: false, query: \"\" }\n}\n\nexport function shouldDisplayExplicitCountrySelection(\n suggestion: SuggestionState,\n options: { detectedCountry?: CountryCode; hasExplicitInternationalPrefix?: boolean }\n) {\n if (suggestion.shouldSuggest) {\n return false\n }\n\n const { hasExplicitInternationalPrefix = false, detectedCountry } = options\n\n if (!hasExplicitInternationalPrefix) {\n return true\n }\n\n return Boolean(detectedCountry)\n}\n"],"names":["sanitizeDigits","value","replace","isDialCodeProgress","digits","length","MAX_DIAL_CODE_LENGTH","COUNTRY_DIAL_CODES","some","dial","startsWith","INVISIBLE_FORMATTING_CHARACTERS","stripInvisibleFormatting","injectNationalPrefixDisplay","international","dialCode","options","force","prefix","remainder","slice","trimStart","firstGroup","restGroups","split","rebuiltFirstGroup","rebuiltRemainder","join","trimEnd","DETECTED_COUNTRY_OVERRIDES","GG","JE","IM","canonicalizeDetectedCountry","candidate","inferCountryFromDialCode","phoneNumber","baseCountry","normalizedDigits","nationalNumber","countryCallingCode","metadataGetter","getMetadata","candidates","country_calling_codes","canonicalCandidates","canonical","includes","push","DEFAULT_COUNTRY","detectNationalPrefixForDisplay","rawDigits","internationalDigits","hasExplicitInternationalPrefix","rawAfterTrunk","internationalAfterDial","stripIddPrefix","COMMON_IDD_PREFIXES","normalizeInputValue","rawValue","country","allowJustPlus","removeNationalPrefix","previousValue","trimmed","trim","digitsWithoutIdd","getCountryCallingCode","withoutPrefix","digitsOnly","previousNormalized","previousDigits","endsWith","formatWithAsYouType","national","formatted","detectedCountry","undefined","inferredCountry","test","formatter","AsYouType","input","getNumber","formatInternational","formatNational","stripPrefix","getLengthIssue","validatePhoneNumberLength","getSuggestionState","normalized","hasRemovedNationalPrefix","shouldSuggest","query","baseD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AA,IAEX,WAAW,CAACzC;AACV,aAAO;AAAA,QAAEuC,eAAe;AAAA,QAAOC,OAAO;AAAA,MAAA;AAAA;AAI1C,SAAKpF,IAIkB6E,EAAYlF,GAAQK,CAAI,EAC5BJ,WAAW,IACrB;AAAA,IAAEuF,eAAe;AAAA,IAAMC,OAAOzF;AAAAA,EAAAA,IAGhC;AAAA,IAAEwF,eAAe;AAAA,IAAOC,OAAO;AAAA,EAAA,IAR7B;AAAA,IAAED,eAAe;AAAA,IAAMC,OAAOzF;AAAAA,EAAAA;AASzC;AAEO,SAAS2F,EACdC,GACAhF,GACA;AACA,MAAIgF,EAAWJ;AACb,WAAO;AAGT,QAAM;AAAA,IAAEvC,gCAAAA,IAAiC;AAAA,IAAOuB,iBAAAA;AAAAA,EAAAA,IAAoB5D;AAEpE,SAAKqC,IAIE4C,EAAQrB,IAHN;AAIX;"}
1
+ {"version":3,"file":"index37.js","sources":["../../../node_modules/@base-ui/react/esm/dialog/description/DialogDescription.js"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { useDialogRootContext } from \"../root/DialogRootContext.js\";\nimport { useRenderElement } from \"../../internals/useRenderElement.js\";\nimport { useBaseUiId } from \"../../internals/useBaseUiId.js\";\n/**\n * A paragraph with additional information about the dialog.\n * Renders a `<p>` element.\n *\n * Documentation: [Base UI Dialog](https://base-ui.com/react/components/dialog)\n */\nexport const DialogDescription = /*#__PURE__*/React.forwardRef(function DialogDescription(componentProps, forwardedRef) {\n const {\n render,\n className,\n style,\n id: idProp,\n ...elementProps\n } = componentProps;\n const {\n store\n } = useDialogRootContext();\n const id = useBaseUiId(idProp);\n store.useSyncedValueWithCleanup('descriptionElementId', id);\n return useRenderElement('p', componentProps, {\n ref: forwardedRef,\n props: [{\n id\n }, elementProps]\n });\n});\nif (process.env.NODE_ENV !== \"production\") DialogDescription.displayName = \"DialogDescription\";"],"names":["DialogDescription","React","componentProps","forwardedRef","render","className","style","idProp","elementProps","store","useDialogRootContext","id","useBaseUiId","useRenderElement"],"mappings":";;;;AAYY,MAACA,IAAiC,gBAAAC,EAAM,WAAW,SAA2BC,GAAgBC,GAAc;AACtH,QAAM;AAAA,IACJ,QAAAC;AAAA,IACA,WAAAC;AAAA,IACA,OAAAC;AAAA,IACA,IAAIC;AAAA,IACJ,GAAGC;AAAA,EACP,IAAMN,GACE;AAAA,IACJ,OAAAO;AAAA,EACJ,IAAMC,EAAoB,GAClBC,IAAKC,EAAYL,CAAM;AAC7B,SAAAE,EAAM,0BAA0B,wBAAwBE,CAAE,GACnDE,EAAiB,KAAKX,GAAgB;AAAA,IAC3C,KAAKC;AAAA,IACL,OAAO,CAAC;AAAA,MACN,IAAAQ;AAAA,IACN,GAAOH,CAAY;AAAA,EACnB,CAAG;AACH,CAAC;AACG,QAAQ,IAAI,aAAa,iBAAcR,EAAkB,cAAc;","x_google_ignoreList":[0]}
@@ -0,0 +1,7 @@
1
+ function n(r) {
2
+ return r == null ? r : "current" in r ? r.current : r;
3
+ }
4
+ export {
5
+ n as resolveRef
6
+ };
7
+ //# sourceMappingURL=index370.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index370.js","sources":["../../../node_modules/@base-ui/react/esm/utils/resolveRef.js"],"sourcesContent":["/**\n * If the provided argument is a ref object, returns its `current` value.\n * Otherwise, returns the argument itself.\n */\nexport function resolveRef(maybeRef) {\n if (maybeRef == null) {\n return maybeRef;\n }\n return 'current' in maybeRef ? maybeRef.current : maybeRef;\n}"],"names":["resolveRef","maybeRef"],"mappings":"AAIO,SAASA,EAAWC,GAAU;AACnC,SAAIA,KAAY,OACPA,IAEF,aAAaA,IAAWA,EAAS,UAAUA;AACpD;","x_google_ignoreList":[0]}
@@ -0,0 +1,81 @@
1
+ import * as o from "react";
2
+ import { useFloating as P } from "./index372.js";
3
+ import { isElement as s } from "./index245.js";
4
+ import { useIsoLayoutEffect as F } from "./index248.js";
5
+ import { useFloatingTree as V } from "./index369.js";
6
+ import { useFloatingRootContext as v } from "./index267.js";
7
+ function $(c = {}) {
8
+ const {
9
+ nodeId: i,
10
+ externalTree: y
11
+ } = c, I = v(c), t = c.rootContext || I, r = {
12
+ reference: t.useState("referenceElement"),
13
+ floating: t.useState("floatingElement"),
14
+ domReference: t.useState("domReferenceElement")
15
+ }, [d, M] = o.useState(null), R = o.useRef(null), b = V(y);
16
+ F(() => {
17
+ r.domReference && (R.current = r.domReference);
18
+ }, [r.domReference]);
19
+ const n = P({
20
+ ...c,
21
+ elements: {
22
+ ...r,
23
+ ...d && {
24
+ reference: d
25
+ }
26
+ }
27
+ }), g = o.useCallback((e) => {
28
+ const m = s(e) ? {
29
+ getBoundingClientRect: () => e.getBoundingClientRect(),
30
+ getClientRects: () => e.getClientRects(),
31
+ contextElement: e
32
+ } : e;
33
+ M(m), n.refs.setReference(m);
34
+ }, [n.refs]), [l, S] = o.useState(void 0), [k, D] = o.useState(null);
35
+ t.useSyncedValue("referenceElement", l ?? null);
36
+ const L = s(l) ? l : null;
37
+ t.useSyncedValue("domReferenceElement", l === void 0 ? r.domReference : L), t.useSyncedValue("floatingElement", k);
38
+ const x = o.useCallback((e) => {
39
+ (s(e) || e === null) && (R.current = e, S(e)), (s(n.refs.reference.current) || n.refs.reference.current === null || // Don't allow setting virtual elements using the old technique back to
40
+ // `null` to support `positionReference` + an unstable `reference`
41
+ // callback ref.
42
+ e !== null && !s(e)) && n.refs.setReference(e);
43
+ }, [n.refs, S]), C = o.useCallback((e) => {
44
+ D(e), n.refs.setFloating(e);
45
+ }, [n.refs]), f = o.useMemo(() => ({
46
+ ...n.refs,
47
+ setReference: x,
48
+ setFloating: C,
49
+ setPositionReference: g,
50
+ domReference: R
51
+ }), [n.refs, x, C, g]), a = o.useMemo(() => ({
52
+ ...n.elements,
53
+ domReference: r.domReference
54
+ }), [n.elements, r.domReference]), E = t.useState("open"), p = t.useState("floatingId"), u = o.useMemo(() => ({
55
+ ...n,
56
+ dataRef: t.context.dataRef,
57
+ open: E,
58
+ onOpenChange: t.setOpen,
59
+ events: t.context.events,
60
+ floatingId: p,
61
+ refs: f,
62
+ elements: a,
63
+ nodeId: i,
64
+ rootStore: t
65
+ }), [n, f, a, i, t, E, p]);
66
+ return F(() => {
67
+ t.context.dataRef.current.floatingContext = u;
68
+ const e = b?.nodesRef.current.find((m) => m.id === i);
69
+ e && (e.context = u);
70
+ }), o.useMemo(() => ({
71
+ ...n,
72
+ context: u,
73
+ refs: f,
74
+ elements: a,
75
+ rootStore: t
76
+ }), [n, f, a, u, t]);
77
+ }
78
+ export {
79
+ $ as useFloating
80
+ };
81
+ //# sourceMappingURL=index371.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index371.js","sources":["../../../node_modules/@base-ui/react/esm/floating-ui-react/hooks/useFloating.js"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { useFloating as usePosition } from '@floating-ui/react-dom';\nimport { isElement } from '@floating-ui/utils/dom';\nimport { useIsoLayoutEffect } from '@base-ui/utils/useIsoLayoutEffect';\nimport { useFloatingTree } from \"../components/FloatingTree.js\";\nimport { useFloatingRootContext } from \"./useFloatingRootContext.js\";\n/**\n * Provides data to position a floating element and context to add interactions.\n * @see https://floating-ui.com/docs/useFloating\n */\nexport function useFloating(options = {}) {\n const {\n nodeId,\n externalTree\n } = options;\n const internalRootStore = useFloatingRootContext(options);\n const rootContext = options.rootContext || internalRootStore;\n const rootContextElements = {\n reference: rootContext.useState('referenceElement'),\n floating: rootContext.useState('floatingElement'),\n domReference: rootContext.useState('domReferenceElement')\n };\n const [positionReference, setPositionReferenceRaw] = React.useState(null);\n const domReferenceRef = React.useRef(null);\n const tree = useFloatingTree(externalTree);\n useIsoLayoutEffect(() => {\n if (rootContextElements.domReference) {\n domReferenceRef.current = rootContextElements.domReference;\n }\n }, [rootContextElements.domReference]);\n const position = usePosition({\n ...options,\n elements: {\n ...rootContextElements,\n ...(positionReference && {\n reference: positionReference\n })\n }\n });\n const setPositionReference = React.useCallback(node => {\n const computedPositionReference = isElement(node) ? {\n getBoundingClientRect: () => node.getBoundingClientRect(),\n getClientRects: () => node.getClientRects(),\n contextElement: node\n } : node;\n // Store the positionReference in state if the DOM reference is specified externally via the\n // `elements.reference` option. This ensures that it won't be overridden on future renders.\n setPositionReferenceRaw(computedPositionReference);\n position.refs.setReference(computedPositionReference);\n }, [position.refs]);\n const [localDomReference, setLocalDomReference] = React.useState(undefined);\n const [localFloatingElement, setLocalFloatingElement] = React.useState(null);\n rootContext.useSyncedValue('referenceElement', localDomReference ?? null);\n const localDomReferenceElement = isElement(localDomReference) ? localDomReference : null;\n rootContext.useSyncedValue('domReferenceElement', localDomReference === undefined ? rootContextElements.domReference : localDomReferenceElement);\n rootContext.useSyncedValue('floatingElement', localFloatingElement);\n const setReference = React.useCallback(node => {\n if (isElement(node) || node === null) {\n domReferenceRef.current = node;\n setLocalDomReference(node);\n }\n\n // Backwards-compatibility for passing a virtual element to `reference`\n // after it has set the DOM reference.\n if (isElement(position.refs.reference.current) || position.refs.reference.current === null ||\n // Don't allow setting virtual elements using the old technique back to\n // `null` to support `positionReference` + an unstable `reference`\n // callback ref.\n node !== null && !isElement(node)) {\n position.refs.setReference(node);\n }\n }, [position.refs, setLocalDomReference]);\n const setFloating = React.useCallback(node => {\n setLocalFloatingElement(node);\n position.refs.setFloating(node);\n }, [position.refs]);\n const refs = React.useMemo(() => ({\n ...position.refs,\n setReference,\n setFloating,\n setPositionReference,\n domReference: domReferenceRef\n }), [position.refs, setReference, setFloating, setPositionReference]);\n const elements = React.useMemo(() => ({\n ...position.elements,\n domReference: rootContextElements.domReference\n }), [position.elements, rootContextElements.domReference]);\n const open = rootContext.useState('open');\n const floatingId = rootContext.useState('floatingId');\n const context = React.useMemo(() => ({\n ...position,\n dataRef: rootContext.context.dataRef,\n open,\n onOpenChange: rootContext.setOpen,\n events: rootContext.context.events,\n floatingId,\n refs,\n elements,\n nodeId,\n rootStore: rootContext\n }), [position, refs, elements, nodeId, rootContext, open, floatingId]);\n useIsoLayoutEffect(() => {\n rootContext.context.dataRef.current.floatingContext = context;\n const node = tree?.nodesRef.current.find(n => n.id === nodeId);\n if (node) {\n node.context = context;\n }\n });\n return React.useMemo(() => ({\n ...position,\n context,\n refs,\n elements,\n rootStore: rootContext\n }), [position, refs, elements, context, rootContext]);\n}"],"names":["useFloating","options","nodeId","externalTree","internalRootStore","useFloatingRootContext","rootContext","rootContextElements","positionReference","setPositionReferenceRaw","React","domReferenceRef","tree","useFloatingTree","useIsoLayoutEffect","position","usePosition","setPositionReference","node","computedPositionReference","isElement","localDomReference","setLocalDomReference","localFloatingElement","setLocalFloatingElement","localDomReferenceElement","setReference","setFloating","refs","elements","open","floatingId","context","n"],"mappings":";;;;;;AAYO,SAASA,EAAYC,IAAU,IAAI;AACxC,QAAM;AAAA,IACJ,QAAAC;AAAA,IACA,cAAAC;AAAA,EACJ,IAAMF,GACEG,IAAoBC,EAAuBJ,CAAO,GAClDK,IAAcL,EAAQ,eAAeG,GACrCG,IAAsB;AAAA,IAC1B,WAAWD,EAAY,SAAS,kBAAkB;AAAA,IAClD,UAAUA,EAAY,SAAS,iBAAiB;AAAA,IAChD,cAAcA,EAAY,SAAS,qBAAqB;AAAA,EAC5D,GACQ,CAACE,GAAmBC,CAAuB,IAAIC,EAAM,SAAS,IAAI,GAClEC,IAAkBD,EAAM,OAAO,IAAI,GACnCE,IAAOC,EAAgBV,CAAY;AACzC,EAAAW,EAAmB,MAAM;AACvB,IAAIP,EAAoB,iBACtBI,EAAgB,UAAUJ,EAAoB;AAAA,EAElD,GAAG,CAACA,EAAoB,YAAY,CAAC;AACrC,QAAMQ,IAAWC,EAAY;AAAA,IAC3B,GAAGf;AAAA,IACH,UAAU;AAAA,MACR,GAAGM;AAAA,MACH,GAAIC,KAAqB;AAAA,QACvB,WAAWA;AAAA,MACnB;AAAA,IACA;AAAA,EACA,CAAG,GACKS,IAAuBP,EAAM,YAAY,CAAAQ,MAAQ;AACrD,UAAMC,IAA4BC,EAAUF,CAAI,IAAI;AAAA,MAClD,uBAAuB,MAA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WnB,EAAM,QAAQ,OAAO;AAAA,IACpC,GAAGK,EAAS;AAAA,IACZ,cAAcR,EAAoB;AAAA,EACtC,IAAM,CAACQ,EAAS,UAAUR,EAAoB,YAAY,CAAC,GACnDuB,IAAOxB,EAAY,SAAS,MAAM,GAClCyB,IAAazB,EAAY,SAAS,YAAY,GAC9C0B,IAAUtB,EAAM,QAAQ,OAAO;AAAA,IACnC,GAAGK;AAAA,IACH,SAAST,EAAY,QAAQ;AAAA,IAC7B,MAAAwB;AAAA,IACA,cAAcxB,EAAY;AAAA,IAC1B,QAAQA,EAAY,QAAQ;AAAA,IAC5B,YAAAyB;AAAA,IACA,MAAAH;AAAA,IACA,UAAAC;AAAA,IACA,QAAA3B;AAAA,IACA,WAAWI;AAAA,EACf,IAAM,CAACS,GAAUa,GAAMC,GAAU3B,GAAQI,GAAawB,GAAMC,CAAU,CAAC;AACrE,SAAAjB,EAAmB,MAAM;AACvB,IAAAR,EAAY,QAAQ,QAAQ,QAAQ,kBAAkB0B;AACtD,UAAMd,IAAON,GAAM,SAAS,QAAQ,KAAK,CAAAqB,MAAKA,EAAE,OAAO/B,CAAM;AAC7D,IAAIgB,MACFA,EAAK,UAAUc;AAAA,EAEnB,CAAC,GACMtB,EAAM,QAAQ,OAAO;AAAA,IAC1B,GAAGK;AAAA,IACH,SAAAiB;AAAA,IACA,MAAAJ;AAAA,IACA,UAAAC;AAAA,IACA,WAAWvB;AAAA,EACf,IAAM,CAACS,GAAUa,GAAMC,GAAUG,GAAS1B,CAAW,CAAC;AACtD;","x_google_ignoreList":[0]}
@@ -0,0 +1,204 @@
1
+ import { flip as H, size as I, computePosition as J, offset as K, hide as N, shift as Q, limitShift as T } from "./index295.js";
2
+ import { autoUpdate as ae, platform as me } from "./index295.js";
3
+ import * as r from "react";
4
+ import { useLayoutEffect as X } from "react";
5
+ import * as Y from "react-dom";
6
+ var Z = typeof document < "u", b = function() {
7
+ }, R = Z ? X : b;
8
+ function w(e, t) {
9
+ if (e === t)
10
+ return !0;
11
+ if (typeof e != typeof t)
12
+ return !1;
13
+ if (typeof e == "function" && e.toString() === t.toString())
14
+ return !0;
15
+ let n, f, c;
16
+ if (e && t && typeof e == "object") {
17
+ if (Array.isArray(e)) {
18
+ if (n = e.length, n !== t.length) return !1;
19
+ for (f = n; f-- !== 0; )
20
+ if (!w(e[f], t[f]))
21
+ return !1;
22
+ return !0;
23
+ }
24
+ if (c = Object.keys(e), n = c.length, n !== Object.keys(t).length)
25
+ return !1;
26
+ for (f = n; f-- !== 0; )
27
+ if (!{}.hasOwnProperty.call(t, c[f]))
28
+ return !1;
29
+ for (f = n; f-- !== 0; ) {
30
+ const p = c[f];
31
+ if (!(p === "_owner" && e.$$typeof) && !w(e[p], t[p]))
32
+ return !1;
33
+ }
34
+ return !0;
35
+ }
36
+ return e !== e && t !== t;
37
+ }
38
+ function L(e) {
39
+ return typeof window > "u" ? 1 : (e.ownerDocument.defaultView || window).devicePixelRatio || 1;
40
+ }
41
+ function z(e, t) {
42
+ const n = L(e);
43
+ return Math.round(t * n) / n;
44
+ }
45
+ function k(e) {
46
+ const t = r.useRef(e);
47
+ return R(() => {
48
+ t.current = e;
49
+ }), t;
50
+ }
51
+ function ne(e) {
52
+ e === void 0 && (e = {});
53
+ const {
54
+ placement: t = "bottom",
55
+ strategy: n = "absolute",
56
+ middleware: f = [],
57
+ platform: c,
58
+ elements: {
59
+ reference: p,
60
+ floating: A
61
+ } = {},
62
+ transform: D = !0,
63
+ whileElementsMounted: E,
64
+ open: x
65
+ } = e, [s, C] = r.useState({
66
+ x: 0,
67
+ y: 0,
68
+ strategy: n,
69
+ placement: t,
70
+ middlewareData: {},
71
+ isPositioned: !1
72
+ }), [M, q] = r.useState(f);
73
+ w(M, f) || q(f);
74
+ const [B, U] = r.useState(null), [V, W] = r.useState(null), _ = r.useCallback((o) => {
75
+ o !== a.current && (a.current = o, U(o));
76
+ }, []), v = r.useCallback((o) => {
77
+ o !== m.current && (m.current = o, W(o));
78
+ }, []), i = p || B, u = A || V, a = r.useRef(null), m = r.useRef(null), y = r.useRef(s), G = E != null, S = k(E), P = k(c), F = k(x), g = r.useCallback(() => {
79
+ if (!a.current || !m.current)
80
+ return;
81
+ const o = {
82
+ placement: t,
83
+ strategy: n,
84
+ middleware: M
85
+ };
86
+ P.current && (o.platform = P.current), J(a.current, m.current, o).then((h) => {
87
+ const d = {
88
+ ...h,
89
+ // The floating element's position may be recomputed while it's closed
90
+ // but still mounted (such as when transitioning out). To ensure
91
+ // `isPositioned` will be `false` initially on the next open, avoid
92
+ // setting it to `true` when `open === false` (must be specified).
93
+ isPositioned: F.current !== !1
94
+ };
95
+ $.current && !w(y.current, d) && (y.current = d, Y.flushSync(() => {
96
+ C(d);
97
+ }));
98
+ });
99
+ }, [M, t, n, P, F]);
100
+ R(() => {
101
+ x === !1 && y.current.isPositioned && (y.current.isPositioned = !1, C((o) => ({
102
+ ...o,
103
+ isPositioned: !1
104
+ })));
105
+ }, [x]);
106
+ const $ = r.useRef(!1);
107
+ R(() => ($.current = !0, () => {
108
+ $.current = !1;
109
+ }), []), R(() => {
110
+ if (i && (a.current = i), u && (m.current = u), i && u) {
111
+ if (S.current)
112
+ return S.current(i, u, g);
113
+ g();
114
+ }
115
+ }, [i, u, g, S, G]);
116
+ const O = r.useMemo(() => ({
117
+ reference: a,
118
+ floating: m,
119
+ setReference: _,
120
+ setFloating: v
121
+ }), [_, v]), l = r.useMemo(() => ({
122
+ reference: i,
123
+ floating: u
124
+ }), [i, u]), j = r.useMemo(() => {
125
+ const o = {
126
+ position: n,
127
+ left: 0,
128
+ top: 0
129
+ };
130
+ if (!l.floating)
131
+ return o;
132
+ const h = z(l.floating, s.x), d = z(l.floating, s.y);
133
+ return D ? {
134
+ ...o,
135
+ transform: "translate(" + h + "px, " + d + "px)",
136
+ ...L(l.floating) >= 1.5 && {
137
+ willChange: "transform"
138
+ }
139
+ } : {
140
+ position: n,
141
+ left: h,
142
+ top: d
143
+ };
144
+ }, [n, D, l.floating, s.x, s.y]);
145
+ return r.useMemo(() => ({
146
+ ...s,
147
+ update: g,
148
+ refs: O,
149
+ elements: l,
150
+ floatingStyles: j
151
+ }), [s, g, O, l, j]);
152
+ }
153
+ const re = (e, t) => {
154
+ const n = K(e);
155
+ return {
156
+ name: n.name,
157
+ fn: n.fn,
158
+ options: [e, t]
159
+ };
160
+ }, oe = (e, t) => {
161
+ const n = Q(e);
162
+ return {
163
+ name: n.name,
164
+ fn: n.fn,
165
+ options: [e, t]
166
+ };
167
+ }, fe = (e, t) => ({
168
+ fn: T(e).fn,
169
+ options: [e, t]
170
+ }), se = (e, t) => {
171
+ const n = H(e);
172
+ return {
173
+ name: n.name,
174
+ fn: n.fn,
175
+ options: [e, t]
176
+ };
177
+ }, ie = (e, t) => {
178
+ const n = I(e);
179
+ return {
180
+ name: n.name,
181
+ fn: n.fn,
182
+ options: [e, t]
183
+ };
184
+ }, ue = (e, t) => {
185
+ const n = N(e);
186
+ return {
187
+ name: n.name,
188
+ fn: n.fn,
189
+ options: [e, t]
190
+ };
191
+ };
192
+ export {
193
+ ae as autoUpdate,
194
+ J as computePosition,
195
+ se as flip,
196
+ ue as hide,
197
+ fe as limitShift,
198
+ re as offset,
199
+ me as platform,
200
+ oe as shift,
201
+ ie as size,
202
+ ne as useFloating
203
+ };
204
+ //# sourceMappingURL=index372.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index372.js","sources":["../../../node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.mjs"],"sourcesContent":["import { computePosition, arrow as arrow$2, autoPlacement as autoPlacement$1, flip as flip$1, hide as hide$1, inline as inline$1, limitShift as limitShift$1, offset as offset$1, shift as shift$1, size as size$1 } from '@floating-ui/dom';\nexport { autoUpdate, computePosition, detectOverflow, getOverflowAncestors, platform } from '@floating-ui/dom';\nimport * as React from 'react';\nimport { useLayoutEffect } from 'react';\nimport * as ReactDOM from 'react-dom';\n\nvar isClient = typeof document !== 'undefined';\n\nvar noop = function noop() {};\nvar index = isClient ? useLayoutEffect : noop;\n\n// Fork of `fast-deep-equal` that only does the comparisons we need and compares\n// functions\nfunction deepEqual(a, b) {\n if (a === b) {\n return true;\n }\n if (typeof a !== typeof b) {\n return false;\n }\n if (typeof a === 'function' && a.toString() === b.toString()) {\n return true;\n }\n let length;\n let i;\n let keys;\n if (a && b && typeof a === 'object') {\n if (Array.isArray(a)) {\n length = a.length;\n if (length !== b.length) return false;\n for (i = length; i-- !== 0;) {\n if (!deepEqual(a[i], b[i])) {\n return false;\n }\n }\n return true;\n }\n keys = Object.keys(a);\n length = keys.length;\n if (length !== Object.keys(b).length) {\n return false;\n }\n for (i = length; i-- !== 0;) {\n if (!{}.hasOwnProperty.call(b, keys[i])) {\n return false;\n }\n }\n for (i = length; i-- !== 0;) {\n const key = keys[i];\n if (key === '_owner' && a.$$typeof) {\n continue;\n }\n if (!deepEqual(a[key], b[key])) {\n return false;\n }\n }\n return true;\n }\n return a !== a && b !== b;\n}\n\nfunction getDPR(element) {\n if (typeof window === 'undefined') {\n return 1;\n }\n const win = element.ownerDocument.defaultView || window;\n return win.devicePixelRatio || 1;\n}\n\nfunction roundByDPR(element, value) {\n const dpr = getDPR(element);\n return Math.round(value * dpr) / dpr;\n}\n\nfunction useLatestRef(value) {\n const ref = React.useRef(value);\n index(() => {\n ref.current = value;\n });\n return ref;\n}\n\n/**\n * Provides data to position a floating element.\n * @see https://floating-ui.com/docs/useFloating\n */\nfunction useFloating(options) {\n if (options === void 0) {\n options = {};\n }\n const {\n placement = 'bottom',\n strategy = 'absolute',\n middleware = [],\n platform,\n elements: {\n reference: externalReference,\n floating: externalFloating\n } = {},\n transform = true,\n whileElementsMounted,\n open\n } = options;\n const [data, setData] = React.useState({\n x: 0,\n y: 0,\n strategy,\n placement,\n middlewareData: {},\n isPositioned: false\n });\n const [latestMiddleware, setLatestMiddleware] = React.useState(middleware);\n if (!deepEqual(latestMiddleware, middleware)) {\n setLatestMiddleware(middleware);\n }\n const [_reference, _setReference] = React.useState(null);\n const [_floating, _setFloating] = React.useState(null);\n const setReference = React.useCallback(node => {\n if (node !== referenceRef.current) {\n referenceRef.current = node;\n _setReference(node);\n }\n }, []);\n const setFloating = React.useCallback(node => {\n if (node !== floatingRef.current) {\n floatingRef.current = node;\n _setFloating(node);\n }\n }, []);\n const referenceEl = externalReference || _reference;\n const floatingEl = externalFloating || _floating;\n const referenceRef = React.useRef(null);\n const floatingRef = React.useRef(null);\n const dataRef = React.useRef(data);\n const hasWhileElementsMounted = whileElementsMounted != null;\n const whileElementsMountedRef = useLatestRef(whileElementsMounted);\n const platformRef = useLatestRef(platform);\n const openRef = useLatestRef(open);\n const update = React.useCallback(() => {\n if (!referenceRef.current || !floatingRef.current) {\n return;\n }\n const config = {\n placement,\n strategy,\n middleware: latestMiddleware\n };\n if (platformRef.current) {\n config.platform = platformRef.current;\n }\n computePosition(referenceRef.current, floatingRef.current, config).then(data => {\n const fullData = {\n ...data,\n // The floating element's position may be recomputed while it's closed\n // but still mounted (such as when transitioning out). To ensure\n // `isPositioned` will be `false` initially on the next open, avoid\n // setting it to `true` when `open === false` (must be specified).\n isPositioned: openRef.current !== false\n };\n if (isMountedRef.current && !deepEqual(dataRef.current, fullData)) {\n dataRef.current = fullData;\n ReactDOM.flushSync(() => {\n setData(fullData);\n });\n }\n });\n }, [latestMiddleware, placement, strategy, platformRef, openRef]);\n index(() => {\n if (open === false && dataRef.current.isPositioned) {\n dataRef.current.isPositioned = false;\n setData(data => ({\n ...data,\n isPositioned: false\n }));\n }\n }, [open]);\n const isMountedRef = React.useRef(false);\n index(() => {\n isMountedRef.current = true;\n return () => {\n isMountedRef.current = false;\n };\n }, []);\n index(() => {\n if (referenceEl) referenceRef.current = referenceEl;\n if (floatingEl) floatingRef.current = floatingEl;\n if (referenceEl && floatingEl) {\n if (whileElementsMountedRef.current) {\n return whileElementsMountedRef.current(referenceEl, floatingEl, update);\n }\n update();\n }\n }, [referenceEl, floatingEl, update, whileElementsMountedRef, hasWhileElementsMounted]);\n const refs = React.useMemo(() => ({\n reference: referenceRef,\n floating: floatingRef,\n setReference,\n setFloating\n }), [setReference, setFloating]);\n const elements = React.useMemo(() => ({\n reference: referenceEl,\n floating: floatingEl\n }), [referenceEl, floatingEl]);\n const floatingStyles = React.useMemo(() => {\n const initialStyles = {\n position: strategy,\n left: 0,\n top: 0\n };\n if (!elements.floating) {\n return initialStyles;\n }\n const x = roundByDPR(elements.floating, data.x);\n const y = roundByDPR(elements.floating, data.y);\n if (transform) {\n return {\n ...initialStyles,\n transform: \"translate(\" + x + \"px, \" + y + \"px)\",\n ...(getDPR(elements.floating) >= 1.5 && {\n willChange: 'transform'\n })\n };\n }\n return {\n position: strategy,\n left: x,\n top: y\n };\n }, [strategy, transform, elements.floating, data.x, data.y]);\n return React.useMemo(() => ({\n ...data,\n update,\n refs,\n elements,\n floatingStyles\n }), [data, update, refs, elements, floatingStyles]);\n}\n\n/**\n * Provides data to position an inner element of the floating element so that it\n * appears centered to the reference element.\n * This wraps the core `arrow` middleware to allow React refs as the element.\n * @see https://floating-ui.com/docs/arrow\n */\nconst arrow$1 = options => {\n function isRef(value) {\n return {}.hasOwnProperty.call(value, 'current');\n }\n return {\n name: 'arrow',\n options,\n fn(state) {\n const {\n element,\n padding\n } = typeof options === 'function' ? options(state) : options;\n if (element && isRef(element)) {\n if (element.current != null) {\n return arrow$2({\n element: element.current,\n padding\n }).fn(state);\n }\n return {};\n }\n if (element) {\n return arrow$2({\n element,\n padding\n }).fn(state);\n }\n return {};\n }\n };\n};\n\n/**\n * Modifies the placement by translating the floating element along the\n * specified axes.\n * A number (shorthand for `mainAxis` or distance), or an axes configuration\n * object may be passed.\n * @see https://floating-ui.com/docs/offset\n */\nconst offset = (options, deps) => {\n const result = offset$1(options);\n return {\n name: result.name,\n fn: result.fn,\n options: [options, deps]\n };\n};\n\n/**\n * Optimizes the visibility of the floating element by shifting it in order to\n * keep it in view when it will overflow the clipping boundary.\n * @see https://floating-ui.com/docs/shift\n */\nconst shift = (options, deps) => {\n const result = shift$1(options);\n return {\n name: result.name,\n fn: result.fn,\n options: [options, deps]\n };\n};\n\n/**\n * Built-in `limiter` that will stop `shift()` at a certain point.\n */\nconst limitShift = (options, deps) => {\n const result = limitShift$1(options);\n return {\n fn: result.fn,\n options: [options, deps]\n };\n};\n\n/**\n * Optimizes the visibility of the floating element by flipping the `placement`\n * in order to keep it in view when the preferred placement(s) will overflow the\n * clipping boundary. Alternative to `autoPlacement`.\n * @see https://floating-ui.com/docs/flip\n */\nconst flip = (options, deps) => {\n const result = flip$1(options);\n return {\n name: result.name,\n fn: result.fn,\n options: [options, deps]\n };\n};\n\n/**\n * Provides data that allows you to change the size of the floating element —\n * for instance, prevent it from overflowing the clipping boundary or match the\n * width of the reference element.\n * @see https://floating-ui.com/docs/size\n */\nconst size = (options, deps) => {\n const result = size$1(options);\n return {\n name: result.name,\n fn: result.fn,\n options: [options, deps]\n };\n};\n\n/**\n * Optimizes the visibility of the floating element by choosing the placement\n * that has the most space available automatically, without needing to specify a\n * preferred placement. Alternative to `flip`.\n * @see https://floating-ui.com/docs/autoPlacement\n */\nconst autoPlacement = (options, deps) => {\n const result = autoPlacement$1(options);\n return {\n name: result.name,\n fn: result.fn,\n options: [options, deps]\n };\n};\n\n/**\n * Provides data to hide the floating element in applicable situations, such as\n * when it is not in the same clipping context as the reference element.\n * @see https://floating-ui.com/docs/hide\n */\nconst hide = (options, deps) => {\n const result = hide$1(options);\n return {\n name: result.name,\n fn: result.fn,\n options: [options, deps]\n };\n};\n\n/**\n * Provides improved positioning for inline reference elements that can span\n * over multiple lines, such as hyperlinks or range selections.\n * @see https://floating-ui.com/docs/inline\n */\nconst inline = (options, deps) => {\n const result = inline$1(options);\n return {\n name: result.name,\n fn: result.fn,\n options: [options, deps]\n };\n};\n\n/**\n * Provides data to position an inner element of the floating element so that it\n * appears centered to the reference element.\n * This wraps the core `arrow` middleware to allow React refs as the element.\n * @see https://floating-ui.com/docs/arrow\n */\nconst arrow = (options, deps) => {\n const result = arrow$1(options);\n return {\n name: result.name,\n fn: result.fn,\n options: [options, deps]\n };\n};\n\nexport { arrow, autoPlacement, flip, hide, inline, limitShift, offset, shift, size, useFloating };\n"],"names":["isClient","noop","index","useLayoutEffect","deepEqual","a","b","length","i","keys","key","getDPR","element","roundByDPR","value","dpr","useLatestRef","ref","React","useFloating","options","placement","strategy","middleware","platform","externalReference","externalFloating","transform","whileElementsMounted","open","data","setData","latestMiddleware","setLatestMiddleware","_reference","_setReference","_floating","_setFloating","setReference","node","referenceRef","setFloating","floatingRef","referenceEl","floatingEl","dataRef","hasWhileElementsMounted","whileElementsMountedRef","platformRef","openRef","update","config","computePosition","fullData","isMountedRef","ReactDOM","refs","elements","floatingStyles","initialStyles","x","y","offset","deps","result","offset$1","shift","shift$1","limitShift","limitShift$1","flip","flip$1","size","size$1","hide","hide$1"],"mappings":";;;;;AAMA,IAAIA,IAAW,OAAO,WAAa,KAE/BC,IAAO,WAAgB;AAAC,GACxBC,IAAQF,IAAWG,IAAkBF;AAIzC,SAASG,EAAUC,GAAGC,GAAG;AACvB,MAAID,MAAMC;AACR,WAAO;AAET,MAAI,OAAOD,KAAM,OAAOC;AACtB,WAAO;AAET,MAAI,OAAOD,KAAM,cAAcA,EAAE,eAAeC,EAAE;AAChD,WAAO;AAET,MAAIC,GACAC,GACAC;AACJ,MAAIJ,KAAKC,KAAK,OAAOD,KAAM,UAAU;AACnC,QAAI,MAAM,QAAQA,CAAC,GAAG;AAEpB,UADAE,IAASF,EAAE,QACPE,MAAWD,EAAE,OAAQ,QAAO;AAChC,WAAKE,IAAID,GAAQC,QAAQ;AACvB,YAAI,CAACJ,EAAUC,EAAEG,CAAC,GAAGF,EAAEE,CAAC,CAAC;AACvB,iBAAO;AAGX,aAAO;AAAA,IACT;AAGA,QAFAC,IAAO,OAAO,KAAKJ,CAAC,GACpBE,IAASE,EAAK,QACVF,MAAW,OAAO,KAAKD,CAAC,EAAE;AAC5B,aAAO;AAET,SAAKE,IAAID,GAAQC,QAAQ;AAC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