@rpcbase/ui 0.247.0 → 0.249.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 (593) hide show
  1. package/dist/components/Notifications/NotificationsDrawer.d.ts.map +1 -1
  2. package/dist/index105.js +36 -36
  3. package/dist/index117.js +6 -6
  4. package/dist/index120.js +10 -10
  5. package/dist/index122.js +2 -2
  6. package/dist/index123.js +3 -3
  7. package/dist/index124.js +1 -1
  8. package/dist/index126.js +2 -2
  9. package/dist/index128.js +2 -2
  10. package/dist/index150.js +3 -3
  11. package/dist/index156.js +1 -1
  12. package/dist/index16.js +157 -157
  13. package/dist/index16.js.map +1 -1
  14. package/dist/index163.js +2 -2
  15. package/dist/index164.js +7 -7
  16. package/dist/index167.js +4 -4
  17. package/dist/index169.js +1 -1
  18. package/dist/index171.js +14 -58
  19. package/dist/index171.js.map +1 -1
  20. package/dist/index172.js +68 -8
  21. package/dist/index172.js.map +1 -1
  22. package/dist/index173.js +37 -87
  23. package/dist/index173.js.map +1 -1
  24. package/dist/index174.js +13 -19
  25. package/dist/index174.js.map +1 -1
  26. package/dist/index175.js +23 -16
  27. package/dist/index175.js.map +1 -1
  28. package/dist/index176.js +111 -5
  29. package/dist/index176.js.map +1 -1
  30. package/dist/index177.js +13 -6
  31. package/dist/index177.js.map +1 -1
  32. package/dist/index178.js +4 -6
  33. package/dist/index178.js.map +1 -1
  34. package/dist/index179.js +4 -5
  35. package/dist/index179.js.map +1 -1
  36. package/dist/index180.js +5 -7
  37. package/dist/index180.js.map +1 -1
  38. package/dist/index181.js +11 -16
  39. package/dist/index181.js.map +1 -1
  40. package/dist/index182.js +19 -4
  41. package/dist/index182.js.map +1 -1
  42. package/dist/index183.js +11 -5
  43. package/dist/index183.js.map +1 -1
  44. package/dist/index184.js +176 -12
  45. package/dist/index184.js.map +1 -1
  46. package/dist/index185.js +279 -9
  47. package/dist/index185.js.map +1 -1
  48. package/dist/index186.js +4 -13
  49. package/dist/index186.js.map +1 -1
  50. package/dist/index187.js +28 -14
  51. package/dist/index187.js.map +1 -1
  52. package/dist/index188.js +126 -4
  53. package/dist/index188.js.map +1 -1
  54. package/dist/index189.js +63 -5
  55. package/dist/index189.js.map +1 -1
  56. package/dist/index190.js +8 -6
  57. package/dist/index190.js.map +1 -1
  58. package/dist/index191.js +16 -6
  59. package/dist/index191.js.map +1 -1
  60. package/dist/index192.js +29 -53
  61. package/dist/index192.js.map +1 -1
  62. package/dist/index193.js +69 -8
  63. package/dist/index193.js.map +1 -1
  64. package/dist/index194.js +20 -5
  65. package/dist/index194.js.map +1 -1
  66. package/dist/index195.js +66 -4
  67. package/dist/index195.js.map +1 -1
  68. package/dist/index196.js +6 -8
  69. package/dist/index196.js.map +1 -1
  70. package/dist/index197.js +5 -4
  71. package/dist/index197.js.map +1 -1
  72. package/dist/index198.js +11 -4
  73. package/dist/index198.js.map +1 -1
  74. package/dist/index199.js +3 -3
  75. package/dist/index199.js.map +1 -1
  76. package/dist/index200.js +50 -10
  77. package/dist/index200.js.map +1 -1
  78. package/dist/index201.js +4 -10
  79. package/dist/index201.js.map +1 -1
  80. package/dist/index202.js +29 -9
  81. package/dist/index202.js.map +1 -1
  82. package/dist/index203.js +16 -10
  83. package/dist/index203.js.map +1 -1
  84. package/dist/index204.js +5 -10
  85. package/dist/index204.js.map +1 -1
  86. package/dist/index205.js +21 -9
  87. package/dist/index205.js.map +1 -1
  88. package/dist/index206.js +53 -6
  89. package/dist/index206.js.map +1 -1
  90. package/dist/index207.js +20 -5
  91. package/dist/index207.js.map +1 -1
  92. package/dist/index208.js +41 -4
  93. package/dist/index208.js.map +1 -1
  94. package/dist/index209.js +39 -5
  95. package/dist/index209.js.map +1 -1
  96. package/dist/index210.js +46 -7
  97. package/dist/index210.js.map +1 -1
  98. package/dist/index211.js +20 -5
  99. package/dist/index211.js.map +1 -1
  100. package/dist/index212.js +67 -13
  101. package/dist/index212.js.map +1 -1
  102. package/dist/index213.js +17 -7
  103. package/dist/index213.js.map +1 -1
  104. package/dist/index214.js +3 -10
  105. package/dist/index214.js.map +1 -1
  106. package/dist/index215.js +11 -10
  107. package/dist/index215.js.map +1 -1
  108. package/dist/index216.js +13 -21
  109. package/dist/index216.js.map +1 -1
  110. package/dist/index217.js +18 -8
  111. package/dist/index217.js.map +1 -1
  112. package/dist/index218.js +36 -9
  113. package/dist/index218.js.map +1 -1
  114. package/dist/index219.js +239 -9
  115. package/dist/index219.js.map +1 -1
  116. package/dist/index220.js +252 -4
  117. package/dist/index220.js.map +1 -1
  118. package/dist/index221.js +68 -5
  119. package/dist/index221.js.map +1 -1
  120. package/dist/index222.js +98 -15
  121. package/dist/index222.js.map +1 -1
  122. package/dist/index223.js +83 -9
  123. package/dist/index223.js.map +1 -1
  124. package/dist/index224.js +3 -18
  125. package/dist/index224.js.map +1 -1
  126. package/dist/index225.js +28 -19
  127. package/dist/index225.js.map +1 -1
  128. package/dist/index226.js +16 -12
  129. package/dist/index226.js.map +1 -1
  130. package/dist/index227.js +34 -29
  131. package/dist/index227.js.map +1 -1
  132. package/dist/index228.js +17 -12
  133. package/dist/index228.js.map +1 -1
  134. package/dist/index229.js +3 -25
  135. package/dist/index229.js.map +1 -1
  136. package/dist/index230.js +26 -5
  137. package/dist/index230.js.map +1 -1
  138. package/dist/index231.js +28 -14
  139. package/dist/index231.js.map +1 -1
  140. package/dist/index232.js +4 -69
  141. package/dist/index232.js.map +1 -1
  142. package/dist/index233.js +79 -38
  143. package/dist/index233.js.map +1 -1
  144. package/dist/index234.js +273 -14
  145. package/dist/index234.js.map +1 -1
  146. package/dist/index235.js +11 -23
  147. package/dist/index235.js.map +1 -1
  148. package/dist/index236.js +10 -111
  149. package/dist/index236.js.map +1 -1
  150. package/dist/index237.js +26 -13
  151. package/dist/index237.js.map +1 -1
  152. package/dist/index238.js +16 -4
  153. package/dist/index238.js.map +1 -1
  154. package/dist/index239.js +126 -4
  155. package/dist/index239.js.map +1 -1
  156. package/dist/index240.js +6 -5
  157. package/dist/index240.js.map +1 -1
  158. package/dist/index241.js +65 -11
  159. package/dist/index241.js.map +1 -1
  160. package/dist/index242.js +14 -20
  161. package/dist/index242.js.map +1 -1
  162. package/dist/index243.js +8 -11
  163. package/dist/index243.js.map +1 -1
  164. package/dist/index244.js +5 -176
  165. package/dist/index244.js.map +1 -1
  166. package/dist/index245.js +3 -279
  167. package/dist/index245.js.map +1 -1
  168. package/dist/index246.js +10 -4
  169. package/dist/index246.js.map +1 -1
  170. package/dist/index247.js +8 -28
  171. package/dist/index247.js.map +1 -1
  172. package/dist/index248.js +131 -124
  173. package/dist/index248.js.map +1 -1
  174. package/dist/index249.js +397 -61
  175. package/dist/index249.js.map +1 -1
  176. package/dist/index250.js +5 -9
  177. package/dist/index250.js.map +1 -1
  178. package/dist/index251.js +53 -16
  179. package/dist/index251.js.map +1 -1
  180. package/dist/index252.js +11 -30
  181. package/dist/index252.js.map +1 -1
  182. package/dist/index253.js +27 -69
  183. package/dist/index253.js.map +1 -1
  184. package/dist/index254.js +10 -153
  185. package/dist/index254.js.map +1 -1
  186. package/dist/index255.js +58 -32
  187. package/dist/index255.js.map +1 -1
  188. package/dist/index256.js +8 -11
  189. package/dist/index256.js.map +1 -1
  190. package/dist/index257.js +81 -43
  191. package/dist/index257.js.map +1 -1
  192. package/dist/index258.js +19 -9
  193. package/dist/index258.js.map +1 -1
  194. package/dist/index259.js +16 -11
  195. package/dist/index259.js.map +1 -1
  196. package/dist/index260.js +4 -42
  197. package/dist/index260.js.map +1 -1
  198. package/dist/index261.js +4 -96
  199. package/dist/index261.js.map +1 -1
  200. package/dist/index262.js +6 -86
  201. package/dist/index262.js.map +1 -1
  202. package/dist/index263.js +4 -105
  203. package/dist/index263.js.map +1 -1
  204. package/dist/index264.js +6 -52
  205. package/dist/index264.js.map +1 -1
  206. package/dist/index265.js +16 -11
  207. package/dist/index265.js.map +1 -1
  208. package/dist/index266.js +4 -4
  209. package/dist/index266.js.map +1 -1
  210. package/dist/index267.js +4 -37
  211. package/dist/index267.js.map +1 -1
  212. package/dist/index268.js +12 -8
  213. package/dist/index268.js.map +1 -1
  214. package/dist/index269.js +9 -3
  215. package/dist/index269.js.map +1 -1
  216. package/dist/index270.js +13 -9
  217. package/dist/index270.js.map +1 -1
  218. package/dist/index271.js +13 -135
  219. package/dist/index271.js.map +1 -1
  220. package/dist/index272.js +4 -17
  221. package/dist/index272.js.map +1 -1
  222. package/dist/index273.js +5 -15
  223. package/dist/index273.js.map +1 -1
  224. package/dist/index274.js +6 -36
  225. package/dist/index274.js.map +1 -1
  226. package/dist/index275.js +5 -20
  227. package/dist/index275.js.map +1 -1
  228. package/dist/index276.js +54 -8
  229. package/dist/index276.js.map +1 -1
  230. package/dist/index277.js +8 -24
  231. package/dist/index277.js.map +1 -1
  232. package/dist/index278.js +4 -28
  233. package/dist/index278.js.map +1 -1
  234. package/dist/index279.js +4 -16
  235. package/dist/index279.js.map +1 -1
  236. package/dist/index280.js +9 -20
  237. package/dist/index280.js.map +1 -1
  238. package/dist/index281.js +4 -66
  239. package/dist/index281.js.map +1 -1
  240. package/dist/index282.js +4 -6
  241. package/dist/index282.js.map +1 -1
  242. package/dist/index283.js +3 -5
  243. package/dist/index283.js.map +1 -1
  244. package/dist/index284.js +10 -11
  245. package/dist/index284.js.map +1 -1
  246. package/dist/index285.js +9 -3
  247. package/dist/index285.js.map +1 -1
  248. package/dist/index286.js +9 -50
  249. package/dist/index286.js.map +1 -1
  250. package/dist/index287.js +11 -4
  251. package/dist/index287.js.map +1 -1
  252. package/dist/index288.js +10 -29
  253. package/dist/index288.js.map +1 -1
  254. package/dist/index289.js +9 -16
  255. package/dist/index289.js.map +1 -1
  256. package/dist/index290.js +6 -5
  257. package/dist/index290.js.map +1 -1
  258. package/dist/index291.js +5 -21
  259. package/dist/index291.js.map +1 -1
  260. package/dist/index292.js +4 -53
  261. package/dist/index292.js.map +1 -1
  262. package/dist/index293.js +5 -20
  263. package/dist/index293.js.map +1 -1
  264. package/dist/index294.js +6 -41
  265. package/dist/index294.js.map +1 -1
  266. package/dist/index295.js +5 -39
  267. package/dist/index295.js.map +1 -1
  268. package/dist/index296.js +30 -46
  269. package/dist/index296.js.map +1 -1
  270. package/dist/index297.js +11 -19
  271. package/dist/index297.js.map +1 -1
  272. package/dist/index298.js +23 -68
  273. package/dist/index298.js.map +1 -1
  274. package/dist/index299.js +5 -17
  275. package/dist/index299.js.map +1 -1
  276. package/dist/index300.js +16 -3
  277. package/dist/index300.js.map +1 -1
  278. package/dist/index301.js +7 -11
  279. package/dist/index301.js.map +1 -1
  280. package/dist/index302.js +10 -13
  281. package/dist/index302.js.map +1 -1
  282. package/dist/index303.js +10 -18
  283. package/dist/index303.js.map +1 -1
  284. package/dist/index304.js +21 -36
  285. package/dist/index304.js.map +1 -1
  286. package/dist/index305.js +8 -239
  287. package/dist/index305.js.map +1 -1
  288. package/dist/index306.js +9 -252
  289. package/dist/index306.js.map +1 -1
  290. package/dist/index307.js +9 -68
  291. package/dist/index307.js.map +1 -1
  292. package/dist/index308.js +4 -99
  293. package/dist/index308.js.map +1 -1
  294. package/dist/index309.js +5 -83
  295. package/dist/index309.js.map +1 -1
  296. package/dist/index310.js +16 -3
  297. package/dist/index310.js.map +1 -1
  298. package/dist/index311.js +9 -29
  299. package/dist/index311.js.map +1 -1
  300. package/dist/index312.js +18 -16
  301. package/dist/index312.js.map +1 -1
  302. package/dist/index313.js +21 -35
  303. package/dist/index313.js.map +1 -1
  304. package/dist/index314.js +10 -15
  305. package/dist/index314.js.map +1 -1
  306. package/dist/index315.js +154 -3
  307. package/dist/index315.js.map +1 -1
  308. package/dist/index316.js +31 -25
  309. package/dist/index316.js.map +1 -1
  310. package/dist/index317.js +11 -28
  311. package/dist/index317.js.map +1 -1
  312. package/dist/index318.js +50 -4
  313. package/dist/index318.js.map +1 -1
  314. package/dist/index319.js +9 -78
  315. package/dist/index319.js.map +1 -1
  316. package/dist/index320.js +10 -271
  317. package/dist/index320.js.map +1 -1
  318. package/dist/index321.js +43 -11
  319. package/dist/index321.js.map +1 -1
  320. package/dist/index322.js +97 -10
  321. package/dist/index322.js.map +1 -1
  322. package/dist/index323.js +86 -25
  323. package/dist/index323.js.map +1 -1
  324. package/dist/index324.js +104 -15
  325. package/dist/index324.js.map +1 -1
  326. package/dist/index325.js +50 -123
  327. package/dist/index325.js.map +1 -1
  328. package/dist/index326.js +11 -5
  329. package/dist/index326.js.map +1 -1
  330. package/dist/index327.js +4 -65
  331. package/dist/index327.js.map +1 -1
  332. package/dist/index328.js +37 -13
  333. package/dist/index328.js.map +1 -1
  334. package/dist/index329.js +8 -7
  335. package/dist/index329.js.map +1 -1
  336. package/dist/index330.js +3 -5
  337. package/dist/index330.js.map +1 -1
  338. package/dist/index331.js +135 -3
  339. package/dist/index331.js.map +1 -1
  340. package/dist/index332.js +17 -10
  341. package/dist/index332.js.map +1 -1
  342. package/dist/index333.js +15 -7
  343. package/dist/index333.js.map +1 -1
  344. package/dist/index334.js +32 -129
  345. package/dist/index334.js.map +1 -1
  346. package/dist/index335.js +18 -397
  347. package/dist/index335.js.map +1 -1
  348. package/dist/index336.js +9 -5
  349. package/dist/index336.js.map +1 -1
  350. package/dist/index337.js +9 -52
  351. package/dist/index337.js.map +1 -1
  352. package/dist/index338.js +24 -11
  353. package/dist/index338.js.map +1 -1
  354. package/dist/index339.js +28 -27
  355. package/dist/index339.js.map +1 -1
  356. package/dist/index34.js +2 -2
  357. package/dist/index340.js +16 -11
  358. package/dist/index340.js.map +1 -1
  359. package/dist/index341.js +8 -4
  360. package/dist/index341.js.map +1 -1
  361. package/dist/index342.js +12 -18
  362. package/dist/index342.js.map +1 -1
  363. package/dist/index343.js +8 -12
  364. package/dist/index343.js.map +1 -1
  365. package/dist/index344.js +13 -8
  366. package/dist/index344.js.map +1 -1
  367. package/dist/index345.js +3 -11
  368. package/dist/index345.js.map +1 -1
  369. package/dist/index346.js +3 -8
  370. package/dist/index346.js.map +1 -1
  371. package/dist/index347.js +16 -12
  372. package/dist/index347.js.map +1 -1
  373. package/dist/index348.js +51 -3
  374. package/dist/index348.js.map +1 -1
  375. package/dist/index349.js +5 -3
  376. package/dist/index349.js.map +1 -1
  377. package/dist/index35.js +5 -5
  378. package/dist/index350.js +60 -16
  379. package/dist/index350.js.map +1 -1
  380. package/dist/index351.js +66 -5
  381. package/dist/index351.js.map +1 -1
  382. package/dist/index352.js +140 -47
  383. package/dist/index352.js.map +1 -1
  384. package/dist/index353.js +77 -59
  385. package/dist/index353.js.map +1 -1
  386. package/dist/index354.js +59 -64
  387. package/dist/index354.js.map +1 -1
  388. package/dist/index355.js +15 -9
  389. package/dist/index355.js.map +1 -1
  390. package/dist/index356.js +9 -5
  391. package/dist/index356.js.map +1 -1
  392. package/dist/index357.js +4 -11
  393. package/dist/index357.js.map +1 -1
  394. package/dist/index358.js +11 -21
  395. package/dist/index358.js.map +1 -1
  396. package/dist/index359.js +19 -14
  397. package/dist/index359.js.map +1 -1
  398. package/dist/index36.js +11 -11
  399. package/dist/index360.js +17 -8
  400. package/dist/index360.js.map +1 -1
  401. package/dist/index361.js +8 -145
  402. package/dist/index361.js.map +1 -1
  403. package/dist/index362.js +4 -80
  404. package/dist/index362.js.map +1 -1
  405. package/dist/index363.js +5 -61
  406. package/dist/index363.js.map +1 -1
  407. package/dist/index364.js +3 -15
  408. package/dist/index364.js.map +1 -1
  409. package/dist/index365.js +11 -4
  410. package/dist/index365.js.map +1 -1
  411. package/dist/index366.js +20 -20
  412. package/dist/index366.js.map +1 -1
  413. package/dist/index367.js +45 -4
  414. package/dist/index367.js.map +1 -1
  415. package/dist/index368.js +18 -6
  416. package/dist/index368.js.map +1 -1
  417. package/dist/index369.js +5 -3
  418. package/dist/index369.js.map +1 -1
  419. package/dist/index37.js +3 -3
  420. package/dist/index370.js +199 -10
  421. package/dist/index370.js.map +1 -1
  422. package/dist/index371.js +73 -20
  423. package/dist/index371.js.map +1 -1
  424. package/dist/index372.js +122 -43
  425. package/dist/index372.js.map +1 -1
  426. package/dist/index373.js +5 -18
  427. package/dist/index373.js.map +1 -1
  428. package/dist/index374.js +17 -4
  429. package/dist/index374.js.map +1 -1
  430. package/dist/index375.js +12 -200
  431. package/dist/index375.js.map +1 -1
  432. package/dist/index376.js +4 -73
  433. package/dist/index376.js.map +1 -1
  434. package/dist/index377.js +19 -122
  435. package/dist/index377.js.map +1 -1
  436. package/dist/index378.js +8 -4
  437. package/dist/index378.js.map +1 -1
  438. package/dist/index379.js +27 -5
  439. package/dist/index379.js.map +1 -1
  440. package/dist/index38.js +4 -4
  441. package/dist/index380.js +138 -4
  442. package/dist/index380.js.map +1 -1
  443. package/dist/index381.js +12 -15
  444. package/dist/index381.js.map +1 -1
  445. package/dist/index382.js +46 -8
  446. package/dist/index382.js.map +1 -1
  447. package/dist/index383.js +3 -5
  448. package/dist/index383.js.map +1 -1
  449. package/dist/index384.js +21 -4
  450. package/dist/index384.js.map +1 -1
  451. package/dist/index385.js +72 -542
  452. package/dist/index385.js.map +1 -1
  453. package/dist/index386.js +11 -46
  454. package/dist/index386.js.map +1 -1
  455. package/dist/index387.js +3 -17
  456. package/dist/index387.js.map +1 -1
  457. package/dist/index388.js +71 -5
  458. package/dist/index388.js.map +1 -1
  459. package/dist/index389.js +35 -7
  460. package/dist/index389.js.map +1 -1
  461. package/dist/index39.js +5 -5
  462. package/dist/index390.js +7 -7
  463. package/dist/index390.js.map +1 -1
  464. package/dist/index391.js +15 -7
  465. package/dist/index391.js.map +1 -1
  466. package/dist/index392.js +3 -12
  467. package/dist/index392.js.map +1 -1
  468. package/dist/index393.js +3 -9
  469. package/dist/index393.js.map +1 -1
  470. package/dist/index394.js +4 -12
  471. package/dist/index394.js.map +1 -1
  472. package/dist/index395.js +4 -8
  473. package/dist/index395.js.map +1 -1
  474. package/dist/index396.js +4 -27
  475. package/dist/index396.js.map +1 -1
  476. package/dist/index397.js +14 -136
  477. package/dist/index397.js.map +1 -1
  478. package/dist/index398.js +8 -12
  479. package/dist/index398.js.map +1 -1
  480. package/dist/index399.js +5 -46
  481. package/dist/index399.js.map +1 -1
  482. package/dist/index40.js +3 -3
  483. package/dist/index400.js +4 -3
  484. package/dist/index400.js.map +1 -1
  485. package/dist/index401.js +544 -20
  486. package/dist/index401.js.map +1 -1
  487. package/dist/index402.js +46 -75
  488. package/dist/index402.js.map +1 -1
  489. package/dist/index403.js +18 -12
  490. package/dist/index403.js.map +1 -1
  491. package/dist/index404.js +5 -3
  492. package/dist/index404.js.map +1 -1
  493. package/dist/index405.js +7 -71
  494. package/dist/index405.js.map +1 -1
  495. package/dist/index406.js +6 -35
  496. package/dist/index406.js.map +1 -1
  497. package/dist/index407.js +8 -7
  498. package/dist/index407.js.map +1 -1
  499. package/dist/index408.js +11 -15
  500. package/dist/index408.js.map +1 -1
  501. package/dist/index409.js +9 -3
  502. package/dist/index409.js.map +1 -1
  503. package/dist/index41.js +10 -10
  504. package/dist/index410.js +13 -3
  505. package/dist/index410.js.map +1 -1
  506. package/dist/index411.js +3 -5
  507. package/dist/index411.js.map +1 -1
  508. package/dist/index412.js +14 -55
  509. package/dist/index412.js.map +1 -1
  510. package/dist/index413.js +490 -66
  511. package/dist/index413.js.map +1 -1
  512. package/dist/index414.js +8 -31
  513. package/dist/index414.js.map +1 -1
  514. package/dist/index415.js +2 -9
  515. package/dist/index415.js.map +1 -1
  516. package/dist/index416.js +41 -150
  517. package/dist/index416.js.map +1 -1
  518. package/dist/index417.js +56 -108
  519. package/dist/index417.js.map +1 -1
  520. package/dist/index418.js +7 -14
  521. package/dist/index418.js.map +1 -1
  522. package/dist/index419.js +2 -3
  523. package/dist/index419.js.map +1 -1
  524. package/dist/index420.js +50 -487
  525. package/dist/index420.js.map +1 -1
  526. package/dist/index421.js +55 -7
  527. package/dist/index421.js.map +1 -1
  528. package/dist/index422.js +33 -2
  529. package/dist/index422.js.map +1 -1
  530. package/dist/index423.js +4 -43
  531. package/dist/index423.js.map +1 -1
  532. package/dist/index424.js +55 -55
  533. package/dist/index424.js.map +1 -1
  534. package/dist/index425.js +68 -8
  535. package/dist/index425.js.map +1 -1
  536. package/dist/index426.js +31 -2
  537. package/dist/index426.js.map +1 -1
  538. package/dist/index427.js +9 -55
  539. package/dist/index427.js.map +1 -1
  540. package/dist/index428.js +152 -55
  541. package/dist/index428.js.map +1 -1
  542. package/dist/index429.js +107 -32
  543. package/dist/index429.js.map +1 -1
  544. package/dist/index430.js +2 -16
  545. package/dist/index430.js.map +1 -1
  546. package/dist/index431.js +2 -29
  547. package/dist/index431.js.map +1 -1
  548. package/dist/index432.js +2 -13
  549. package/dist/index432.js.map +1 -1
  550. package/dist/index433.js +2 -7
  551. package/dist/index433.js.map +1 -1
  552. package/dist/index434.js +16 -2
  553. package/dist/index434.js.map +1 -1
  554. package/dist/index435.js +29 -2
  555. package/dist/index435.js.map +1 -1
  556. package/dist/index436.js +13 -2
  557. package/dist/index436.js.map +1 -1
  558. package/dist/index437.js +7 -2
  559. package/dist/index437.js.map +1 -1
  560. package/dist/index44.js +1 -1
  561. package/dist/index45.js +2 -2
  562. package/dist/index49.js +36 -36
  563. package/dist/index50.js +29 -29
  564. package/dist/index51.js +2 -2
  565. package/dist/index52.js +12 -12
  566. package/dist/index53.js +4 -4
  567. package/dist/index54.js +1 -1
  568. package/dist/index55.js +21 -21
  569. package/dist/index56.js +5 -5
  570. package/dist/index57.js +5 -5
  571. package/dist/index58.js +8 -8
  572. package/dist/index59.js +5 -5
  573. package/dist/index60.js +17 -17
  574. package/dist/index61.js +5 -5
  575. package/dist/index62.js +3 -3
  576. package/dist/index66.js +1 -1
  577. package/dist/index67.js +1 -1
  578. package/dist/index70.js +1 -1
  579. package/dist/index71.js +1 -1
  580. package/dist/index72.js +6 -2
  581. package/dist/index72.js.map +1 -1
  582. package/dist/index73.js +8 -2
  583. package/dist/index73.js.map +1 -1
  584. package/dist/index74.js +6 -2
  585. package/dist/index74.js.map +1 -1
  586. package/dist/index75.js +2 -2
  587. package/dist/index76.js +2 -6
  588. package/dist/index76.js.map +1 -1
  589. package/dist/index77.js +2 -8
  590. package/dist/index77.js.map +1 -1
  591. package/dist/index78.js +2 -6
  592. package/dist/index78.js.map +1 -1
  593. package/package.json +1 -1
package/dist/index316.js CHANGED
@@ -1,30 +1,36 @@
1
- import { isHTMLElement as i } from "./index334.js";
2
- import { FOCUSABLE_ATTRIBUTE as u, TYPEABLE_SELECTOR as n } from "./index407.js";
3
- function a(t, r) {
4
- if (r == null)
5
- return !1;
6
- if ("composedPath" in t)
7
- return t.composedPath().includes(r);
8
- const o = t;
9
- return o.target != null && r.contains(o.target);
1
+ import a from "./index163.js";
2
+ import t from "./index165.js";
3
+ function i(e, n, o) {
4
+ n === void 0 && (n = {});
5
+ var r = new a(o);
6
+ if (n.v2) {
7
+ if (!e.countryCallingCode)
8
+ throw new Error("Invalid phone number object passed");
9
+ r.selectNumberingPlan(e.country || e.countryCallingCode);
10
+ } else {
11
+ if (!e.phone)
12
+ return !1;
13
+ if (e.country) {
14
+ if (!r.hasCountry(e.country))
15
+ throw new Error("Unknown country: ".concat(e.country));
16
+ r.selectNumberingPlan(e.country);
17
+ } else {
18
+ if (!e.countryCallingCode)
19
+ throw new Error("Invalid phone number object passed");
20
+ r.selectNumberingPlan(e.countryCallingCode);
21
+ }
22
+ }
23
+ if (r.possibleLengths())
24
+ return l(e.phone || e.nationalNumber, r);
25
+ if (e.countryCallingCode && r.isNonGeographicCallingCode(e.countryCallingCode))
26
+ return !0;
27
+ throw new Error('Missing "possibleLengths" in metadata. Perhaps the metadata has been generated before v1.0.18.');
10
28
  }
11
- function b(t) {
12
- return t.matches("html,body");
13
- }
14
- function e(t) {
15
- return i(t) && t.matches(n);
16
- }
17
- function f(t) {
18
- return t ? t.getAttribute("role") === "combobox" && e(t) : !1;
19
- }
20
- function T(t) {
21
- return t ? t.hasAttribute(u) ? t : t.querySelector(`[${u}]`) || t : null;
29
+ function l(e, n) {
30
+ return t(e, void 0, n) === "IS_POSSIBLE";
22
31
  }
23
32
  export {
24
- T as getFloatingFocusElement,
25
- a as isEventTargetWithin,
26
- b as isRootElement,
27
- f as isTypeableCombobox,
28
- e as isTypeableElement
33
+ i as default,
34
+ l as isPossibleNumber
29
35
  };
30
36
  //# sourceMappingURL=index316.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index316.js","sources":["../../../node_modules/@base-ui/react/floating-ui-react/utils/element.mjs"],"sourcesContent":["import { isElement, isHTMLElement } from '@floating-ui/utils/dom';\nimport { platform } from '@base-ui/utils/platform';\nimport { FOCUSABLE_ATTRIBUTE, TYPEABLE_SELECTOR } from \"./constants.mjs\";\nimport { activeElement, contains, getTarget } from \"../../internals/shadowDom.mjs\";\nexport { activeElement, contains, getTarget };\nexport function isTargetInsideEnabledTrigger(target, triggerElements) {\n if (!isElement(target)) {\n return false;\n }\n const targetElement = target;\n if (triggerElements.hasElement(targetElement)) {\n return !targetElement.hasAttribute('data-trigger-disabled');\n }\n for (const [, trigger] of triggerElements.entries()) {\n if (contains(trigger, targetElement)) {\n return !trigger.hasAttribute('data-trigger-disabled');\n }\n }\n return false;\n}\nexport function isEventTargetWithin(event, node) {\n if (node == null) {\n return false;\n }\n if ('composedPath' in event) {\n return event.composedPath().includes(node);\n }\n\n // TS thinks `event` is of type never as it assumes all browsers support composedPath, but browsers without shadow dom don't\n const eventAgain = event;\n return eventAgain.target != null && node.contains(eventAgain.target);\n}\nexport function isRootElement(element) {\n return element.matches('html,body');\n}\nexport function isTypeableElement(element) {\n return isHTMLElement(element) && element.matches(TYPEABLE_SELECTOR);\n}\nexport function isInteractiveElement(element) {\n return element?.closest(`button,a[href],[role=\"button\"],select,[tabindex]:not([tabindex=\"-1\"]),${TYPEABLE_SELECTOR}`) != null;\n}\nexport function isTypeableCombobox(element) {\n if (!element) {\n return false;\n }\n return element.getAttribute('role') === 'combobox' && isTypeableElement(element);\n}\nexport function matchesFocusVisible(element) {\n // We don't want to block focus from working with `visibleOnly`\n // (JSDOM doesn't match `:focus-visible` when the element has `:focus`)\n if (!element || platform.env.jsdom) {\n return true;\n }\n try {\n return element.matches(':focus-visible');\n } catch (_e) {\n return true;\n }\n}\nexport function getFloatingFocusElement(floatingElement) {\n if (!floatingElement) {\n return null;\n }\n // Try to find the element that has `{...getFloatingProps()}` spread on it.\n // This indicates the floating element is acting as a positioning wrapper, and\n // so focus should be managed on the child element with the event handlers and\n // aria props.\n return floatingElement.hasAttribute(FOCUSABLE_ATTRIBUTE) ? floatingElement : floatingElement.querySelector(`[${FOCUSABLE_ATTRIBUTE}]`) || floatingElement;\n}"],"names":["isEventTargetWithin","event","node","eventAgain","isRootElement","element","isTypeableElement","isHTMLElement","TYPEABLE_SELECTOR","isTypeableCombobox","getFloatingFocusElement","floatingElement","FOCUSABLE_ATTRIBUTE"],"mappings":";;AAoBO,SAASA,EAAoBC,GAAOC,GAAM;AAC/C,MAAIA,KAAQ;AACV,WAAO;AAET,MAAI,kBAAkBD;AACpB,WAAOA,EAAM,eAAe,SAASC,CAAI;AAI3C,QAAMC,IAAaF;AACnB,SAAOE,EAAW,UAAU,QAAQD,EAAK,SAASC,EAAW,MAAM;AACrE;AACO,SAASC,EAAcC,GAAS;AACrC,SAAOA,EAAQ,QAAQ,WAAW;AACpC;AACO,SAASC,EAAkBD,GAAS;AACzC,SAAOE,EAAcF,CAAO,KAAKA,EAAQ,QAAQG,CAAiB;AACpE;AAIO,SAASC,EAAmBJ,GAAS;AAC1C,SAAKA,IAGEA,EAAQ,aAAa,MAAM,MAAM,cAAcC,EAAkBD,CAAO,IAFtE;AAGX;AAaO,SAASK,EAAwBC,GAAiB;AACvD,SAAKA,IAOEA,EAAgB,aAAaC,CAAmB,IAAID,IAAkBA,EAAgB,cAAc,IAAIC,CAAmB,GAAG,KAAKD,IANjI;AAOX;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index316.js","sources":["../../../node_modules/libphonenumber-js/es6/isPossible.js"],"sourcesContent":["import Metadata from './metadata.js';\nimport checkNumberLength from './helpers/checkNumberLength.js';\n\n/**\r\n * Checks if a phone number is \"possible\" (basically just checks its length).\r\n *\r\n * isPossible(phoneNumberInstance, { ..., v2: true }, metadata)\r\n *\r\n * isPossible({ phone: '8005553535', country: 'RU' }, { ... }, metadata)\r\n * isPossible({ phone: '8005553535', country: 'RU' }, undefined, metadata)\r\n *\r\n * @param {object|PhoneNumber} input — If `options.v2: true` flag is passed, the `input` should be a `PhoneNumber` instance. Otherwise, it should be an object of shape `{ phone: '...', country: '...' }`.\r\n * @param {object} [options]\r\n * @param {object} metadataJson\r\n * @return {string}\r\n */\nexport default function isPossiblePhoneNumber(input, options, metadataJson) {\n /* istanbul ignore if */\n if (options === undefined) {\n options = {};\n }\n var metadata = new Metadata(metadataJson);\n if (options.v2) {\n if (!input.countryCallingCode) {\n throw new Error('Invalid phone number object passed');\n }\n metadata.selectNumberingPlan(input.country || input.countryCallingCode);\n } else {\n if (!input.phone) {\n return false;\n }\n if (input.country) {\n if (!metadata.hasCountry(input.country)) {\n throw new Error(\"Unknown country: \".concat(input.country));\n }\n metadata.selectNumberingPlan(input.country);\n } else {\n if (!input.countryCallingCode) {\n throw new Error('Invalid phone number object passed');\n }\n metadata.selectNumberingPlan(input.countryCallingCode);\n }\n }\n\n // Old (legacy) metadata (< 1.0.18) had no \"possible length\" data.\n // So `isPossibleNumber()` function is supported only for non-legacy metadata.\n if (metadata.possibleLengths()) {\n return isPossibleNumber(input.phone || input.nationalNumber, metadata);\n }\n\n // There was a bug in versions from `1.7.35` to `1.7.37` of `libphonenumber-js`\n // where \"possible_lengths\" property was missing from \"non-geographical\" numbering plans' metadata.\n // After that, the bug was noticed and fixed.\n // So for versions from `1.7.35` to `1.7.37`, just assume that all \"non=geotraphical\" numbers are possible.\n // The reason is that the bug was noticed relatively quickly (within a day or so)\n // and it's unlikely that anyone generated their custom metadata in that short time span.\n // And if they didn't generate any custom metadata then a follow-up package update would've silently fixed the bug.\n if (input.countryCallingCode && metadata.isNonGeographicCallingCode(input.countryCallingCode)) {\n return true;\n }\n\n // `isPossibleNumber()` function is not supported.\n throw new Error('Missing \"possibleLengths\" in metadata. Perhaps the metadata has been generated before v1.0.18.');\n}\n\n/**\r\n * Tells if a given national (significant) number is possible\r\n * @param {string} nationalNumber\r\n * @param {Metadata} metadata = Metadata instance with a pre-selected telephone numbering plan.\r\n * @returns {boolean}\r\n */\nexport function isPossibleNumber(nationalNumber, metadata) {\n switch (checkNumberLength(nationalNumber, undefined, metadata)) {\n case 'IS_POSSIBLE':\n return true;\n // This library ignores \"local-only\" phone numbers (for simplicity).\n // See the readme for more info on what are \"local-only\" phone numbers.\n // case 'IS_POSSIBLE_LOCAL_ONLY':\n // \treturn !isInternational\n default:\n return false;\n }\n}\n//# sourceMappingURL=isPossible.js.map"],"names":["isPossiblePhoneNumber","input","options","metadataJson","metadata","Metadata","isPossibleNumber","nationalNumber","checkNumberLength"],"mappings":";;AAgBe,SAASA,EAAsBC,GAAOC,GAASC,GAAc;AAE1E,EAAID,MAAY,WACdA,IAAU,CAAA;AAEZ,MAAIE,IAAW,IAAIC,EAASF,CAAY;AACxC,MAAID,EAAQ,IAAI;AACd,QAAI,CAACD,EAAM;AACT,YAAM,IAAI,MAAM,oCAAoC;AAEtD,IAAAG,EAAS,oBAAoBH,EAAM,WAAWA,EAAM,kBAAkB;AAAA,EACxE,OAAO;AACL,QAAI,CAACA,EAAM;AACT,aAAO;AAET,QAAIA,EAAM,SAAS;AACjB,UAAI,CAACG,EAAS,WAAWH,EAAM,OAAO;AACpC,cAAM,IAAI,MAAM,oBAAoB,OAAOA,EAAM,OAAO,CAAC;AAE3D,MAAAG,EAAS,oBAAoBH,EAAM,OAAO;AAAA,IAC5C,OAAO;AACL,UAAI,CAACA,EAAM;AACT,cAAM,IAAI,MAAM,oCAAoC;AAEtD,MAAAG,EAAS,oBAAoBH,EAAM,kBAAkB;AAAA,IACvD;AAAA,EACF;AAIA,MAAIG,EAAS;AACX,WAAOE,EAAiBL,EAAM,SAASA,EAAM,gBAAgBG,CAAQ;AAUvE,MAAIH,EAAM,sBAAsBG,EAAS,2BAA2BH,EAAM,kBAAkB;AAC1F,WAAO;AAIT,QAAM,IAAI,MAAM,gGAAgG;AAClH;AAQO,SAASK,EAAiBC,GAAgBH,GAAU;AACzD,SAAQI,EAAkBD,GAAgB,QAAWH,CAAQ,MACtD;AAST;","x_google_ignoreList":[0]}
package/dist/index317.js CHANGED
@@ -1,32 +1,15 @@
1
- import { isShadowRoot as r } from "./index334.js";
2
- function a(t) {
3
- let e = t.activeElement;
4
- for (; e?.shadowRoot?.activeElement != null; )
5
- e = e.shadowRoot.activeElement;
6
- return e;
7
- }
8
- function u(t, e) {
9
- if (!t || !e)
10
- return !1;
11
- const n = e.getRootNode?.();
12
- if (t.contains(e))
13
- return !0;
14
- if (n && r(n)) {
15
- let o = e;
16
- for (; o; ) {
17
- if (t === o)
18
- return !0;
19
- o = o.parentNode || o.host;
20
- }
21
- }
22
- return !1;
23
- }
24
- function f(t) {
25
- return "composedPath" in t ? t.composedPath()[0] : t.target;
1
+ import n from "./index163.js";
2
+ import l from "./index330.js";
3
+ import o from "./index318.js";
4
+ function i(e, a, t) {
5
+ a = a || {};
6
+ var r = new n(t);
7
+ if (r.selectNumberingPlan(e.country || e.countryCallingCode), r.hasTypes())
8
+ return o(e, a, r.metadata) !== void 0;
9
+ var m = a.v2 ? e.nationalNumber : e.phone;
10
+ return l(m, r.nationalNumberPattern());
26
11
  }
27
12
  export {
28
- a as activeElement,
29
- u as contains,
30
- f as getTarget
13
+ i as default
31
14
  };
32
15
  //# sourceMappingURL=index317.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index317.js","sources":["../../../node_modules/@base-ui/react/internals/shadowDom.mjs"],"sourcesContent":["import { isShadowRoot } from '@floating-ui/utils/dom';\nexport function activeElement(doc) {\n let element = doc.activeElement;\n while (element?.shadowRoot?.activeElement != null) {\n element = element.shadowRoot.activeElement;\n }\n return element;\n}\nexport function contains(parent, child) {\n if (!parent || !child) {\n return false;\n }\n const rootNode = child.getRootNode?.();\n\n // First, attempt with the faster native method.\n if (parent.contains(child)) {\n return true;\n }\n\n // Then fall back to traversing out of shadow roots when needed.\n if (rootNode && isShadowRoot(rootNode)) {\n let next = child;\n while (next) {\n if (parent === next) {\n return true;\n }\n next = next.parentNode || next.host;\n }\n }\n return false;\n}\nexport function getTarget(event) {\n if ('composedPath' in event) {\n return event.composedPath()[0];\n }\n\n // TS assumes `composedPath()` always exists, but older browsers without\n // shadow DOM support still fall back to `target`.\n return event.target;\n}"],"names":["activeElement","doc","element","contains","parent","child","rootNode","isShadowRoot","next","getTarget","event"],"mappings":";AACO,SAASA,EAAcC,GAAK;AACjC,MAAIC,IAAUD,EAAI;AAClB,SAAOC,GAAS,YAAY,iBAAiB;AAC3C,IAAAA,IAAUA,EAAQ,WAAW;AAE/B,SAAOA;AACT;AACO,SAASC,EAASC,GAAQC,GAAO;AACtC,MAAI,CAACD,KAAU,CAACC;AACd,WAAO;AAET,QAAMC,IAAWD,EAAM,cAAW;AAGlC,MAAID,EAAO,SAASC,CAAK;AACvB,WAAO;AAIT,MAAIC,KAAYC,EAAaD,CAAQ,GAAG;AACtC,QAAIE,IAAOH;AACX,WAAOG,KAAM;AACX,UAAIJ,MAAWI;AACb,eAAO;AAET,MAAAA,IAAOA,EAAK,cAAcA,EAAK;AAAA,IACjC;AAAA,EACF;AACA,SAAO;AACT;AACO,SAASC,EAAUC,GAAO;AAC/B,SAAI,kBAAkBA,IACbA,EAAM,aAAY,EAAG,CAAC,IAKxBA,EAAM;AACf;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index317.js","sources":["../../../node_modules/libphonenumber-js/es6/isValid.js"],"sourcesContent":["import Metadata from './metadata.js';\nimport matchesEntirely from './helpers/matchesEntirely.js';\nimport getNumberType from './helpers/getNumberType.js';\n\n/**\r\n * Checks if a given phone number is valid.\r\n *\r\n * isValid(phoneNumberInstance, { ..., v2: true }, metadata)\r\n *\r\n * isPossible({ phone: '8005553535', country: 'RU' }, { ... }, metadata)\r\n * isPossible({ phone: '8005553535', country: 'RU' }, undefined, metadata)\r\n *\r\n * If the `number` is a string, it will be parsed to an object,\r\n * but only if it contains only valid phone number characters (including punctuation).\r\n * If the `number` is an object, it is used as is.\r\n *\r\n * The optional `defaultCountry` argument is the default country.\r\n * I.e. it does not restrict to just that country,\r\n * e.g. in those cases where several countries share\r\n * the same phone numbering rules (NANPA, Britain, etc).\r\n * For example, even though the number `07624 369230`\r\n * belongs to the Isle of Man (\"IM\" country code)\r\n * calling `isValidNumber('07624369230', 'GB', metadata)`\r\n * still returns `true` because the country is not restricted to `GB`,\r\n * it's just that `GB` is the default one for the phone numbering rules.\r\n * For restricting the country see `isValidNumberForRegion()`\r\n * though restricting a country might not be a good idea.\r\n * https://github.com/googlei18n/libphonenumber/blob/master/FAQ.md#when-should-i-use-isvalidnumberforregion\r\n *\r\n * Examples:\r\n *\r\n * ```js\r\n * isValidNumber('+78005553535', metadata)\r\n * isValidNumber('8005553535', 'RU', metadata)\r\n * isValidNumber('88005553535', 'RU', metadata)\r\n * isValidNumber({ phone: '8005553535', country: 'RU' }, metadata)\r\n * ```\r\n */\nexport default function isValidNumber(input, options, metadataJson) {\n // If assigning the `{}` default value is moved to the arguments above,\n // code coverage would decrease for some weird reason.\n options = options || {};\n var metadata = new Metadata(metadataJson);\n metadata.selectNumberingPlan(input.country || input.countryCallingCode);\n\n // By default, countries only have type regexps when it's required for\n // distinguishing different countries having the same `countryCallingCode`.\n if (metadata.hasTypes()) {\n return getNumberType(input, options, metadata.metadata) !== undefined;\n }\n\n // If there are no type regexps for this country in metadata then use\n // `nationalNumberPattern` as a \"better than nothing\" replacement.\n var nationalNumber = options.v2 ? input.nationalNumber : input.phone;\n return matchesEntirely(nationalNumber, metadata.nationalNumberPattern());\n}\n//# sourceMappingURL=isValid.js.map"],"names":["isValidNumber","input","options","metadataJson","metadata","Metadata","getNumberType","nationalNumber","matchesEntirely"],"mappings":";;;AAsCe,SAASA,EAAcC,GAAOC,GAASC,GAAc;AAGlE,EAAAD,IAAUA,KAAW,CAAA;AACrB,MAAIE,IAAW,IAAIC,EAASF,CAAY;AAKxC,MAJAC,EAAS,oBAAoBH,EAAM,WAAWA,EAAM,kBAAkB,GAIlEG,EAAS;AACX,WAAOE,EAAcL,GAAOC,GAASE,EAAS,QAAQ,MAAM;AAK9D,MAAIG,IAAiBL,EAAQ,KAAKD,EAAM,iBAAiBA,EAAM;AAC/D,SAAOO,EAAgBD,GAAgBH,EAAS,sBAAqB,CAAE;AACzE;","x_google_ignoreList":[0]}
package/dist/index318.js CHANGED
@@ -1,7 +1,53 @@
1
- import * as e from "react";
2
- const t = /* @__PURE__ */ e.createContext(void 0);
3
- process.env.NODE_ENV !== "production" && (t.displayName = "SelectPortalContext");
1
+ import I from "./index163.js";
2
+ import f from "./index330.js";
3
+ function y(e, n) {
4
+ var r = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
5
+ if (r) return (r = r.call(e)).next.bind(r);
6
+ if (Array.isArray(e) || (r = c(e)) || n) {
7
+ r && (e = r);
8
+ var t = 0;
9
+ return function() {
10
+ return t >= e.length ? { done: !0 } : { done: !1, value: e[t++] };
11
+ };
12
+ }
13
+ throw new TypeError(`Invalid attempt to iterate non-iterable instance.
14
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
15
+ }
16
+ function c(e, n) {
17
+ if (e) {
18
+ if (typeof e == "string") return l(e, n);
19
+ var r = {}.toString.call(e).slice(8, -1);
20
+ return r === "Object" && e.constructor && (r = e.constructor.name), r === "Map" || r === "Set" ? Array.from(e) : r === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r) ? l(e, n) : void 0;
21
+ }
22
+ }
23
+ function l(e, n) {
24
+ (n == null || n > e.length) && (n = e.length);
25
+ for (var r = 0, t = Array(n); r < n; r++) t[r] = e[r];
26
+ return t;
27
+ }
28
+ var s = ["MOBILE", "PREMIUM_RATE", "TOLL_FREE", "SHARED_COST", "VOIP", "PERSONAL_NUMBER", "PAGER", "UAN", "VOICEMAIL"];
29
+ function O(e, n, r) {
30
+ if (n = n || {}, !(!e.country && !e.countryCallingCode)) {
31
+ var t = new I(r);
32
+ t.selectNumberingPlan(e.country || e.countryCallingCode);
33
+ var a = n.v2 ? e.nationalNumber : e.phone;
34
+ if (f(a, t.nationalNumberPattern())) {
35
+ if (o(a, "FIXED_LINE", t))
36
+ return t.type("MOBILE") && t.type("MOBILE").pattern() === "" || !t.type("MOBILE") || o(a, "MOBILE", t) ? "FIXED_LINE_OR_MOBILE" : "FIXED_LINE";
37
+ for (var E = y(s), i; !(i = E()).done; ) {
38
+ var u = i.value;
39
+ if (o(a, u, t))
40
+ return u;
41
+ }
42
+ }
43
+ }
44
+ }
45
+ function o(e, n, r) {
46
+ var t = r.type(n);
47
+ return !t || !t.pattern() || t.possibleLengths() && t.possibleLengths().indexOf(e.length) < 0 ? !1 : f(e, t.pattern());
48
+ }
4
49
  export {
5
- t as SelectPortalContext
50
+ O as default,
51
+ o as isNumberTypeEqualTo
6
52
  };
7
53
  //# sourceMappingURL=index318.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index318.js","sources":["../../../node_modules/@base-ui/react/select/portal/SelectPortalContext.mjs"],"sourcesContent":["'use client';\n\nimport _formatErrorMessage from \"@base-ui/utils/formatErrorMessage\";\nimport * as React from 'react';\nexport const SelectPortalContext = /*#__PURE__*/React.createContext(undefined);\nif (process.env.NODE_ENV !== \"production\") SelectPortalContext.displayName = \"SelectPortalContext\";\nexport function useSelectPortalContext() {\n const value = React.useContext(SelectPortalContext);\n if (value === undefined) {\n throw new Error(process.env.NODE_ENV !== \"production\" ? 'Base UI: <Select.Portal> is missing.' : _formatErrorMessage(58));\n }\n return value;\n}"],"names":["SelectPortalContext","React"],"mappings":";AAIY,MAACA,IAAmC,gBAAAC,EAAM,cAAc,MAAS;AACzE,QAAQ,IAAI,aAAa,iBAAcD,EAAoB,cAAc;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index318.js","sources":["../../../node_modules/libphonenumber-js/es6/helpers/getNumberType.js"],"sourcesContent":["function _createForOfIteratorHelperLoose(r, e) { var t = \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (t) return (t = t.call(r)).next.bind(t); if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && \"number\" == typeof r.length) { t && (r = t); var o = 0; return function () { return o >= r.length ? { done: !0 } : { done: !1, value: r[o++] }; }; } throw new TypeError(\"Invalid attempt to iterate 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; }\nimport Metadata from '../metadata.js';\nimport matchesEntirely from './matchesEntirely.js';\nvar NON_FIXED_LINE_PHONE_TYPES = ['MOBILE', 'PREMIUM_RATE', 'TOLL_FREE', 'SHARED_COST', 'VOIP', 'PERSONAL_NUMBER', 'PAGER', 'UAN', 'VOICEMAIL'];\n\n// Finds out national phone number type (fixed line, mobile, etc)\nexport default function getNumberType(input, options, metadataJson) {\n // If assigning the `{}` default value is moved to the arguments above,\n // code coverage would decrease for some weird reason.\n options = options || {};\n\n // When `parse()` returns an empty object — `{}` —\n // that means that the phone number is malformed,\n // so it can't possibly be valid.\n if (!input.country && !input.countryCallingCode) {\n return;\n }\n var metadata = new Metadata(metadataJson);\n metadata.selectNumberingPlan(input.country || input.countryCallingCode);\n var nationalNumber = options.v2 ? input.nationalNumber : input.phone;\n\n // The following is copy-pasted from the original function:\n // https://github.com/googlei18n/libphonenumber/blob/3ea547d4fbaa2d0b67588904dfa5d3f2557c27ff/javascript/i18n/phonenumbers/phonenumberutil.js#L2835\n\n // Is this national number even valid for this country\n if (!matchesEntirely(nationalNumber, metadata.nationalNumberPattern())) {\n return;\n }\n\n // Is it fixed line number\n if (isNumberTypeEqualTo(nationalNumber, 'FIXED_LINE', metadata)) {\n // Because duplicate regular expressions are removed\n // to reduce metadata size, if \"mobile\" pattern is \"\"\n // then it means it was removed due to being a duplicate of the fixed-line pattern.\n //\n if (metadata.type('MOBILE') && metadata.type('MOBILE').pattern() === '') {\n return 'FIXED_LINE_OR_MOBILE';\n }\n\n // `MOBILE` type pattern isn't included if it matched `FIXED_LINE` one.\n // For example, for \"US\" country.\n // Old metadata (< `1.0.18`) had a specific \"types\" data structure\n // that happened to be `undefined` for `MOBILE` in that case.\n // Newer metadata (>= `1.0.18`) has another data structure that is\n // not `undefined` for `MOBILE` in that case (it's just an empty array).\n // So this `if` is just for backwards compatibility with old metadata.\n if (!metadata.type('MOBILE')) {\n return 'FIXED_LINE_OR_MOBILE';\n }\n\n // Check if the number happens to qualify as both fixed line and mobile.\n // (no such country in the minimal metadata set)\n /* istanbul ignore if */\n if (isNumberTypeEqualTo(nationalNumber, 'MOBILE', metadata)) {\n return 'FIXED_LINE_OR_MOBILE';\n }\n return 'FIXED_LINE';\n }\n for (var _iterator = _createForOfIteratorHelperLoose(NON_FIXED_LINE_PHONE_TYPES), _step; !(_step = _iterator()).done;) {\n var type = _step.value;\n if (isNumberTypeEqualTo(nationalNumber, type, metadata)) {\n return type;\n }\n }\n}\nexport function isNumberTypeEqualTo(nationalNumber, type, metadata) {\n var typeDefinition = metadata.type(type);\n if (!typeDefinition || !typeDefinition.pattern()) {\n return false;\n }\n\n // Check if any possible number lengths are present;\n // if so, we use them to avoid checking\n // the validation pattern if they don't match.\n // If they are absent, this means they match\n // the general description, which we have\n // already checked before a specific number type.\n if (typeDefinition.possibleLengths() && typeDefinition.possibleLengths().indexOf(nationalNumber.length) < 0) {\n return false;\n }\n return matchesEntirely(nationalNumber, typeDefinition.pattern());\n}\n//# sourceMappingURL=getNumberType.js.map"],"names":["_createForOfIteratorHelperLoose","r","e","t","_unsupportedIterableToArray","o","a","_arrayLikeToArray","n","NON_FIXED_LINE_PHONE_TYPES","getNumberType","input","options","metadataJson","metadata","Metadata","nationalNumber","matchesEntirely","isNumberTypeEqualTo","_iterator","_step","type","typeDefinition"],"mappings":";;AAAA,SAASA,EAAgCC,GAAGC,GAAG;AAAE,MAAIC,IAAmB,OAAO,SAAtB,OAAgCF,EAAE,OAAO,QAAQ,KAAKA,EAAE,YAAY;AAAG,MAAIE,EAAG,SAAQA,IAAIA,EAAE,KAAKF,CAAC,GAAG,KAAK,KAAKE,CAAC;AAAG,MAAI,MAAM,QAAQF,CAAC,MAAME,IAAIC,EAA4BH,CAAC,MAAMC,GAAuC;AAAE,IAAAC,MAAMF,IAAIE;AAAI,QAAIE,IAAI;AAAG,WAAO,WAAY;AAAE,aAAOA,KAAKJ,EAAE,SAAS,EAAE,MAAM,GAAE,IAAK,EAAE,MAAM,IAAI,OAAOA,EAAEI,GAAG,EAAC;AAAA,IAAI;AAAA,EAAG;AAAE,QAAM,IAAI,UAAU;AAAA,mFAAuI;AAAG;AACziB,SAASD,EAA4BH,GAAGK,GAAG;AAAE,MAAIL,GAAG;AAAE,QAAgB,OAAOA,KAAnB,SAAsB,QAAOM,EAAkBN,GAAGK,CAAC;AAAG,QAAIH,IAAI,CAAA,EAAG,SAAS,KAAKF,CAAC,EAAE,MAAM,GAAG,EAAE;AAAG,WAAoBE,MAAb,YAAkBF,EAAE,gBAAgBE,IAAIF,EAAE,YAAY,OAAiBE,MAAV,SAAyBA,MAAV,QAAc,MAAM,KAAKF,CAAC,IAAoBE,MAAhB,eAAqB,2CAA2C,KAAKA,CAAC,IAAII,EAAkBN,GAAGK,CAAC,IAAI;AAAA,EAAQ;AAAE;AACzX,SAASC,EAAkBN,GAAGK,GAAG;AAAE,GAASA,KAAR,QAAaA,IAAIL,EAAE,YAAYK,IAAIL,EAAE;AAAS,WAASC,IAAI,GAAGM,IAAI,MAAMF,CAAC,GAAGJ,IAAII,GAAGJ,IAAK,CAAAM,EAAEN,CAAC,IAAID,EAAEC,CAAC;AAAG,SAAOM;AAAG;AAGnJ,IAAIC,IAA6B,CAAC,UAAU,gBAAgB,aAAa,eAAe,QAAQ,mBAAmB,SAAS,OAAO,WAAW;AAG/H,SAASC,EAAcC,GAAOC,GAASC,GAAc;AAQlE,MALAD,IAAUA,KAAW,CAAA,GAKjB,GAACD,EAAM,WAAW,CAACA,EAAM,qBAG7B;AAAA,QAAIG,IAAW,IAAIC,EAASF,CAAY;AACxC,IAAAC,EAAS,oBAAoBH,EAAM,WAAWA,EAAM,kBAAkB;AACtE,QAAIK,IAAiBJ,EAAQ,KAAKD,EAAM,iBAAiBA,EAAM;AAM/D,QAAKM,EAAgBD,GAAgBF,EAAS,sBAAqB,CAAE,GAKrE;AAAA,UAAII,EAAoBF,GAAgB,cAAcF,CAAQ;AAuB5D,eAlBIA,EAAS,KAAK,QAAQ,KAAKA,EAAS,KAAK,QAAQ,EAAE,QAAO,MAAO,MAWjE,CAACA,EAAS,KAAK,QAAQ,KAOvBI,EAAoBF,GAAgB,UAAUF,CAAQ,IACjD,yBAEF;AAET,eAASK,IAAYnB,EAAgCS,CAA0B,GAAGW,GAAO,EAAEA,IAAQD,EAAS,GAAI,QAAO;AACrH,YAAIE,IAAOD,EAAM;AACjB,YAAIF,EAAoBF,GAAgBK,GAAMP,CAAQ;AACpD,iBAAOO;AAAA,MAEX;AAAA;AAAA;AACF;AACO,SAASH,EAAoBF,GAAgBK,GAAMP,GAAU;AAClE,MAAIQ,IAAiBR,EAAS,KAAKO,CAAI;AAWvC,SAVI,CAACC,KAAkB,CAACA,EAAe,QAAO,KAU1CA,EAAe,gBAAe,KAAMA,EAAe,kBAAkB,QAAQN,EAAe,MAAM,IAAI,IACjG,KAEFC,EAAgBD,GAAgBM,EAAe,QAAO,CAAE;AACjE;","x_google_ignoreList":[0]}
package/dist/index319.js CHANGED
@@ -1,82 +1,13 @@
1
- import * as a from "react";
2
- import { useRefWithInit as T } from "./index282.js";
3
- import { useStableCallback as l } from "./index288.js";
4
- import { useIsoLayoutEffect as f } from "./index287.js";
5
- import { CompositeListContext as b } from "./index371.js";
6
- import { j as D } from "./index30.js";
7
- function k(h) {
8
- const {
9
- children: N,
10
- elementsRef: t,
11
- labelsRef: o,
12
- onMapChange: R
13
- } = h, E = l(R), O = a.useRef(0), d = T(P).current, i = T(L).current, [p, M] = a.useState(0), c = a.useRef(p), C = l((e, u) => {
14
- i.set(e, u ?? null), c.current += 1, M(c.current);
15
- }), I = l((e) => {
16
- i.delete(e), c.current += 1, M(c.current);
17
- }), r = a.useMemo(() => {
18
- const e = /* @__PURE__ */ new Map();
19
- return Array.from(i.keys()).filter((n) => n.isConnected).sort(S).forEach((n, m) => {
20
- const s = i.get(n) ?? {};
21
- e.set(n, {
22
- ...s,
23
- index: m
24
- });
25
- }), e;
26
- }, [i, p]);
27
- f(() => {
28
- if (typeof MutationObserver != "function" || r.size === 0)
29
- return;
30
- const e = new MutationObserver((u) => {
31
- const n = /* @__PURE__ */ new Set(), m = (s) => n.has(s) ? n.delete(s) : n.add(s);
32
- u.forEach((s) => {
33
- s.removedNodes.forEach(m), s.addedNodes.forEach(m);
34
- }), n.size === 0 && (c.current += 1, M(c.current));
35
- });
36
- return r.forEach((u, n) => {
37
- n.parentElement && e.observe(n.parentElement, {
38
- childList: !0
39
- });
40
- }), () => {
41
- e.disconnect();
42
- };
43
- }, [r]), f(() => {
44
- c.current === p && (t.current.length !== r.size && (t.current.length = r.size), o && o.current.length !== r.size && (o.current.length = r.size), O.current = r.size), E(r);
45
- }, [E, r, t, o, p]), f(() => () => {
46
- t.current = [];
47
- }, [t]), f(() => () => {
48
- o && (o.current = []);
49
- }, [o]);
50
- const g = l((e) => (d.add(e), () => {
51
- d.delete(e);
52
- }));
53
- f(() => {
54
- d.forEach((e) => e(r));
55
- }, [d, r]);
56
- const _ = a.useMemo(() => ({
57
- register: C,
58
- unregister: I,
59
- subscribeMapChange: g,
60
- elementsRef: t,
61
- labelsRef: o,
62
- nextIndexRef: O
63
- }), [C, I, g, t, o, O]);
64
- return /* @__PURE__ */ D.jsx(b.Provider, {
65
- value: _,
66
- children: N
67
- });
68
- }
69
- function L() {
70
- return /* @__PURE__ */ new Map();
71
- }
72
- function P() {
73
- return /* @__PURE__ */ new Set();
74
- }
75
- function S(h, N) {
76
- const t = h.compareDocumentPosition(N);
77
- return t & Node.DOCUMENT_POSITION_FOLLOWING || t & Node.DOCUMENT_POSITION_CONTAINED_BY ? -1 : t & Node.DOCUMENT_POSITION_PRECEDING || t & Node.DOCUMENT_POSITION_CONTAINS ? 1 : 0;
1
+ import r from "./index163.js";
2
+ import i from "./index376.js";
3
+ function d(e, o) {
4
+ var t, a, n = new r(o);
5
+ return i(e) ? (t = e, n.selectNumberingPlan(t), a = n.countryCallingCode()) : a = e, {
6
+ country: t,
7
+ callingCode: a
8
+ };
78
9
  }
79
10
  export {
80
- k as CompositeList
11
+ d as default
81
12
  };
82
13
  //# sourceMappingURL=index319.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index319.js","sources":["../../../node_modules/@base-ui/react/internals/composite/list/CompositeList.mjs"],"sourcesContent":["/* eslint-disable no-bitwise */\n'use client';\n\nimport * as React from 'react';\nimport { useRefWithInit } from '@base-ui/utils/useRefWithInit';\nimport { useStableCallback } from '@base-ui/utils/useStableCallback';\nimport { useIsoLayoutEffect } from '@base-ui/utils/useIsoLayoutEffect';\nimport { CompositeListContext } from \"./CompositeListContext.mjs\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\n/**\n * Provides context for a list of items in a composite component.\n * @internal\n */\nexport function CompositeList(props) {\n const {\n children,\n elementsRef,\n labelsRef,\n onMapChange: onMapChangeProp\n } = props;\n const onMapChange = useStableCallback(onMapChangeProp);\n const nextIndexRef = React.useRef(0);\n const listeners = useRefWithInit(createListeners).current;\n\n // We use a stable `map` to avoid O(n^2) re-allocation costs for large lists.\n // `mapTick` is our re-render trigger mechanism. We also need to update the\n // elements and label refs, but there's a lot of async work going on and sometimes\n // the effect that handles `onMapChange` gets called after those refs have been\n // filled, and we don't want to lose those values by setting their lengths to `0`.\n // We also need to have them at the proper length because floating-ui uses that\n // information for list navigation.\n\n const map = useRefWithInit(createMap).current;\n // `mapTick` uses a counter rather than objects for low precision-loss risk and better memory efficiency\n const [mapTick, setMapTick] = React.useState(0);\n const lastTickRef = React.useRef(mapTick);\n const register = useStableCallback((node, metadata) => {\n map.set(node, metadata ?? null);\n lastTickRef.current += 1;\n setMapTick(lastTickRef.current);\n });\n const unregister = useStableCallback(node => {\n map.delete(node);\n lastTickRef.current += 1;\n setMapTick(lastTickRef.current);\n });\n const sortedMap = React.useMemo(() => {\n // `mapTick` is the `useMemo` trigger as `map` is stable.\n disableEslintWarning(mapTick);\n const newMap = new Map();\n // Filter out disconnected elements before sorting to avoid inconsistent\n // compareDocumentPosition results when elements are detached from the DOM.\n const sortedNodes = Array.from(map.keys()).filter(node => node.isConnected).sort(sortByDocumentPosition);\n sortedNodes.forEach((node, index) => {\n const metadata = map.get(node) ?? {};\n newMap.set(node, {\n ...metadata,\n index\n });\n });\n return newMap;\n }, [map, mapTick]);\n useIsoLayoutEffect(() => {\n if (typeof MutationObserver !== 'function' || sortedMap.size === 0) {\n return undefined;\n }\n const mutationObserver = new MutationObserver(entries => {\n const diff = new Set();\n const updateDiff = node => diff.has(node) ? diff.delete(node) : diff.add(node);\n entries.forEach(entry => {\n entry.removedNodes.forEach(updateDiff);\n entry.addedNodes.forEach(updateDiff);\n });\n if (diff.size === 0) {\n lastTickRef.current += 1;\n setMapTick(lastTickRef.current);\n }\n });\n sortedMap.forEach((_, node) => {\n if (node.parentElement) {\n mutationObserver.observe(node.parentElement, {\n childList: true\n });\n }\n });\n return () => {\n mutationObserver.disconnect();\n };\n }, [sortedMap]);\n useIsoLayoutEffect(() => {\n const shouldUpdateLengths = lastTickRef.current === mapTick;\n if (shouldUpdateLengths) {\n if (elementsRef.current.length !== sortedMap.size) {\n elementsRef.current.length = sortedMap.size;\n }\n if (labelsRef && labelsRef.current.length !== sortedMap.size) {\n labelsRef.current.length = sortedMap.size;\n }\n nextIndexRef.current = sortedMap.size;\n }\n onMapChange(sortedMap);\n }, [onMapChange, sortedMap, elementsRef, labelsRef, mapTick]);\n useIsoLayoutEffect(() => {\n return () => {\n elementsRef.current = [];\n };\n }, [elementsRef]);\n useIsoLayoutEffect(() => {\n return () => {\n if (labelsRef) {\n labelsRef.current = [];\n }\n };\n }, [labelsRef]);\n const subscribeMapChange = useStableCallback(fn => {\n listeners.add(fn);\n return () => {\n listeners.delete(fn);\n };\n });\n useIsoLayoutEffect(() => {\n listeners.forEach(l => l(sortedMap));\n }, [listeners, sortedMap]);\n const contextValue = React.useMemo(() => ({\n register,\n unregister,\n subscribeMapChange,\n elementsRef,\n labelsRef,\n nextIndexRef\n }), [register, unregister, subscribeMapChange, elementsRef, labelsRef, nextIndexRef]);\n return /*#__PURE__*/_jsx(CompositeListContext.Provider, {\n value: contextValue,\n children: children\n });\n}\nfunction createMap() {\n return new Map();\n}\nfunction createListeners() {\n return new Set();\n}\nfunction sortByDocumentPosition(a, b) {\n const position = a.compareDocumentPosition(b);\n if (position & Node.DOCUMENT_POSITION_FOLLOWING || position & Node.DOCUMENT_POSITION_CONTAINED_BY) {\n return -1;\n }\n if (position & Node.DOCUMENT_POSITION_PRECEDING || position & Node.DOCUMENT_POSITION_CONTAINS) {\n return 1;\n }\n return 0;\n}\nfunction disableEslintWarning(_) {}"],"names":["CompositeList","props","children","elementsRef","labelsRef","onMapChangeProp","onMapChange","useStableCallback","nextIndexRef","React","listeners","useRefWithInit","createListeners","map","createMap","mapTick","setMapTick","lastTickRef","register","node","metadata","unregister","sortedMap","newMap","sortByDocumentPosition","index","useIsoLayoutEffect","mutationObserver","entries","diff","updateDiff","entry","_","subscribeMapChange","fn","l","contextValue","_jsx","CompositeListContext","a","b","position"],"mappings":";;;;;;AAaO,SAASA,EAAcC,GAAO;AACnC,QAAM;AAAA,IACJ,UAAAC;AAAA,IACA,aAAAC;AAAA,IACA,WAAAC;AAAA,IACA,aAAaC;AAAA,EACjB,IAAMJ,GACEK,IAAcC,EAAkBF,CAAe,GAC/CG,IAAeC,EAAM,OAAO,CAAC,GAC7BC,IAAYC,EAAeC,CAAe,EAAE,SAU5CC,IAAMF,EAAeG,CAAS,EAAE,SAEhC,CAACC,GAASC,CAAU,IAAIP,EAAM,SAAS,CAAC,GACxCQ,IAAcR,EAAM,OAAOM,CAAO,GAClCG,IAAWX,EAAkB,CAACY,GAAMC,MAAa;AACrD,IAAAP,EAAI,IAAIM,GAAMC,KAAY,IAAI,GAC9BH,EAAY,WAAW,GACvBD,EAAWC,EAAY,OAAO;AAAA,EAChC,CAAC,GACKI,IAAad,EAAkB,CAAAY,MAAQ;AAC3C,IAAAN,EAAI,OAAOM,CAAI,GACfF,EAAY,WAAW,GACvBD,EAAWC,EAAY,OAAO;AAAA,EAChC,CAAC,GACKK,IAAYb,EAAM,QAAQ,MAAM;AAGpC,UAAMc,IAAS,oBAAI,IAAG;AAItB,WADoB,MAAM,KAAKV,EAAI,KAAI,CAAE,EAAE,OAAO,CAAAM,MAAQA,EAAK,WAAW,EAAE,KAAKK,CAAsB,EAC3F,QAAQ,CAACL,GAAMM,MAAU;AACnC,YAAML,IAAWP,EAAI,IAAIM,CAAI,KAAK,CAAA;AAClC,MAAAI,EAAO,IAAIJ,GAAM;AAAA,QACf,GAAGC;AAAA,QACH,OAAAK;AAAA,MACR,CAAO;AAAA,IACH,CAAC,GACMF;AAAA,EACT,GAAG,CAACV,GAAKE,CAAO,CAAC;AACjB,EAAAW,EAAmB,MAAM;AACvB,QAAI,OAAO,oBAAqB,cAAcJ,EAAU,SAAS;AAC/D;AAEF,UAAMK,IAAmB,IAAI,iBAAiB,CAAAC,MAAW;AACvD,YAAMC,IAAO,oBAAI,IAAG,GACdC,IAAa,CAAAX,MAAQU,EAAK,IAAIV,CAAI,IAAIU,EAAK,OAAOV,CAAI,IAAIU,EAAK,IAAIV,CAAI;AAC7E,MAAAS,EAAQ,QAAQ,CAAAG,MAAS;AACvB,QAAAA,EAAM,aAAa,QAAQD,CAAU,GACrCC,EAAM,WAAW,QAAQD,CAAU;AAAA,MACrC,CAAC,GACGD,EAAK,SAAS,MAChBZ,EAAY,WAAW,GACvBD,EAAWC,EAAY,OAAO;AAAA,IAElC,CAAC;AACD,WAAAK,EAAU,QAAQ,CAACU,GAAGb,MAAS;AAC7B,MAAIA,EAAK,iBACPQ,EAAiB,QAAQR,EAAK,eAAe;AAAA,QAC3C,WAAW;AAAA,MACrB,CAAS;AAAA,IAEL,CAAC,GACM,MAAM;AACX,MAAAQ,EAAiB,WAAU;AAAA,IAC7B;AAAA,EACF,GAAG,CAACL,CAAS,CAAC,GACdI,EAAmB,MAAM;AAEvB,IAD4BT,EAAY,YAAYF,MAE9CZ,EAAY,QAAQ,WAAWmB,EAAU,SAC3CnB,EAAY,QAAQ,SAASmB,EAAU,OAErClB,KAAaA,EAAU,QAAQ,WAAWkB,EAAU,SACtDlB,EAAU,QAAQ,SAASkB,EAAU,OAEvCd,EAAa,UAAUc,EAAU,OAEnChB,EAAYgB,CAAS;AAAA,EACvB,GAAG,CAAChB,GAAagB,GAAWnB,GAAaC,GAAWW,CAAO,CAAC,GAC5DW,EAAmB,MACV,MAAM;AACX,IAAAvB,EAAY,UAAU,CAAA;AAAA,EACxB,GACC,CAACA,CAAW,CAAC,GAChBuB,EAAmB,MACV,MAAM;AACX,IAAItB,MACFA,EAAU,UAAU,CAAA;AAAA,EAExB,GACC,CAACA,CAAS,CAAC;AACd,QAAM6B,IAAqB1B,EAAkB,CAAA2B,OAC3CxB,EAAU,IAAIwB,CAAE,GACT,MAAM;AACX,IAAAxB,EAAU,OAAOwB,CAAE;AAAA,EACrB,EACD;AACD,EAAAR,EAAmB,MAAM;AACvB,IAAAhB,EAAU,QAAQ,CAAAyB,MAAKA,EAAEb,CAAS,CAAC;AAAA,EACrC,GAAG,CAACZ,GAAWY,CAAS,CAAC;AACzB,QAAMc,IAAe3B,EAAM,QAAQ,OAAO;AAAA,IACxC,UAAAS;AAAA,IACA,YAAAG;AAAA,IACA,oBAAAY;AAAA,IACA,aAAA9B;AAAA,IACA,WAAAC;AAAA,IACA,cAAAI;AAAA,EACJ,IAAM,CAACU,GAAUG,GAAYY,GAAoB9B,GAAaC,GAAWI,CAAY,CAAC;AACpF,SAAoB6B,gBAAAA,EAAAA,IAAKC,EAAqB,UAAU;AAAA,IACtD,OAAOF;AAAA,IACP,UAAUlC;AAAA,EACd,CAAG;AACH;AACA,SAASY,IAAY;AACnB,SAAO,oBAAI,IAAG;AAChB;AACA,SAASF,IAAkB;AACzB,SAAO,oBAAI,IAAG;AAChB;AACA,SAASY,EAAuBe,GAAGC,GAAG;AACpC,QAAMC,IAAWF,EAAE,wBAAwBC,CAAC;AAC5C,SAAIC,IAAW,KAAK,+BAA+BA,IAAW,KAAK,iCAC1D,KAELA,IAAW,KAAK,+BAA+BA,IAAW,KAAK,6BAC1D,IAEF;AACT;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index319.js","sources":["../../../node_modules/libphonenumber-js/es6/helpers/getCountryAndCallingCodeFromOneOfThem.js"],"sourcesContent":["import Metadata from '../metadata.js';\nimport isCountryCode from './isCountryCode.js';\nvar USE_NON_GEOGRAPHIC_COUNTRY_CODE = false;\nexport default function getCountryAndCallingCodeFromOneOfThem(countryOrCallingCode, metadataJson) {\n var country;\n var callingCode;\n var metadata = new Metadata(metadataJson);\n // If country code is passed then derive `countryCallingCode` from it.\n // Also store the country code as `.country`.\n if (isCountryCode(countryOrCallingCode)) {\n country = countryOrCallingCode;\n metadata.selectNumberingPlan(country);\n callingCode = metadata.countryCallingCode();\n } else {\n callingCode = countryOrCallingCode;\n /* istanbul ignore if */\n if (USE_NON_GEOGRAPHIC_COUNTRY_CODE) {\n if (metadata.isNonGeographicCallingCode(callingCode)) {\n country = '001';\n }\n }\n }\n return {\n country: country,\n callingCode: callingCode\n };\n}\n//# sourceMappingURL=getCountryAndCallingCodeFromOneOfThem.js.map"],"names":["getCountryAndCallingCodeFromOneOfThem","countryOrCallingCode","metadataJson","country","callingCode","metadata","Metadata","isCountryCode"],"mappings":";;AAGe,SAASA,EAAsCC,GAAsBC,GAAc;AAChG,MAAIC,GACAC,GACAC,IAAW,IAAIC,EAASJ,CAAY;AAGxC,SAAIK,EAAcN,CAAoB,KACpCE,IAAUF,GACVI,EAAS,oBAAoBF,CAAO,GACpCC,IAAcC,EAAS,mBAAkB,KAEzCD,IAAcH,GAQT;AAAA,IACL,SAASE;AAAA,IACT,aAAaC;AAAA,EACjB;AACA;","x_google_ignoreList":[0]}