@rpcbase/ui 0.241.0 → 0.243.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 (774) hide show
  1. package/dist/components/DayPickerField/index.d.ts.map +1 -1
  2. package/dist/components/Notifications/NotificationsDrawer.d.ts.map +1 -1
  3. package/dist/components/PhoneNumberInput/country-options.d.ts +1 -1
  4. package/dist/components/PhoneNumberInput/country-options.d.ts.map +1 -1
  5. package/dist/index100.js +8 -4
  6. package/dist/index100.js.map +1 -1
  7. package/dist/index101.js +5 -8
  8. package/dist/index101.js.map +1 -1
  9. package/dist/index102.js +4 -5
  10. package/dist/index102.js.map +1 -1
  11. package/dist/index103.js +3 -3
  12. package/dist/index103.js.map +1 -1
  13. package/dist/index104.js +6 -4
  14. package/dist/index104.js.map +1 -1
  15. package/dist/index105.js +152 -6
  16. package/dist/index105.js.map +1 -1
  17. package/dist/index106.js +38 -144
  18. package/dist/index106.js.map +1 -1
  19. package/dist/index107.js +4 -39
  20. package/dist/index107.js.map +1 -1
  21. package/dist/index108.js +7 -4
  22. package/dist/index108.js.map +1 -1
  23. package/dist/index109.js +12 -6
  24. package/dist/index109.js.map +1 -1
  25. package/dist/index110.js +13 -13
  26. package/dist/index110.js.map +1 -1
  27. package/dist/index111.js +7 -13
  28. package/dist/index111.js.map +1 -1
  29. package/dist/index112.js +30 -6
  30. package/dist/index112.js.map +1 -1
  31. package/dist/index113.js +10 -31
  32. package/dist/index113.js.map +1 -1
  33. package/dist/index114.js +10 -10
  34. package/dist/index114.js.map +1 -1
  35. package/dist/index115.js +8 -10
  36. package/dist/index115.js.map +1 -1
  37. package/dist/index116.js +13 -8
  38. package/dist/index116.js.map +1 -1
  39. package/dist/index117.js +101 -13
  40. package/dist/index117.js.map +1 -1
  41. package/dist/index118.js +20 -102
  42. package/dist/index118.js.map +1 -1
  43. package/dist/index119.js +54 -20
  44. package/dist/index119.js.map +1 -1
  45. package/dist/index120.js +70 -51
  46. package/dist/index120.js.map +1 -1
  47. package/dist/index121.js +9 -72
  48. package/dist/index121.js.map +1 -1
  49. package/dist/index122.js +20 -9
  50. package/dist/index122.js.map +1 -1
  51. package/dist/index123.js +16 -20
  52. package/dist/index123.js.map +1 -1
  53. package/dist/index124.js +23 -16
  54. package/dist/index124.js.map +1 -1
  55. package/dist/index125.js +6 -23
  56. package/dist/index125.js.map +1 -1
  57. package/dist/index126.js +5 -6
  58. package/dist/index126.js.map +1 -1
  59. package/dist/index127.js +23 -5
  60. package/dist/index127.js.map +1 -1
  61. package/dist/index128.js +35 -24
  62. package/dist/index128.js.map +1 -1
  63. package/dist/index129.js +14 -35
  64. package/dist/index129.js.map +1 -1
  65. package/dist/index130.js +5 -16
  66. package/dist/index130.js.map +1 -1
  67. package/dist/index131.js +4 -6
  68. package/dist/index131.js.map +1 -1
  69. package/dist/index132.js +4 -4
  70. package/dist/index132.js.map +1 -1
  71. package/dist/index133.js +4 -4
  72. package/dist/index133.js.map +1 -1
  73. package/dist/index134.js +4 -4
  74. package/dist/index134.js.map +1 -1
  75. package/dist/index135.js +3 -4
  76. package/dist/index135.js.map +1 -1
  77. package/dist/index136.js +4 -3
  78. package/dist/index136.js.map +1 -1
  79. package/dist/index137.js +22 -7
  80. package/dist/index137.js.map +1 -1
  81. package/dist/index138.js +6 -24
  82. package/dist/index138.js.map +1 -1
  83. package/dist/index139.js +4 -7
  84. package/dist/index139.js.map +1 -1
  85. package/dist/index140.js +5 -6
  86. package/dist/index140.js.map +1 -1
  87. package/dist/index141.js +3 -5
  88. package/dist/index141.js.map +1 -1
  89. package/dist/index142.js +3 -3
  90. package/dist/index142.js.map +1 -1
  91. package/dist/index143.js +4 -3
  92. package/dist/index143.js.map +1 -1
  93. package/dist/index144.js +3 -4
  94. package/dist/index144.js.map +1 -1
  95. package/dist/index145.js +4 -3
  96. package/dist/index145.js.map +1 -1
  97. package/dist/index146.js +3 -4
  98. package/dist/index146.js.map +1 -1
  99. package/dist/index147.js +3 -3
  100. package/dist/index147.js.map +1 -1
  101. package/dist/index148.js +3 -3
  102. package/dist/index148.js.map +1 -1
  103. package/dist/index149.js +5 -3
  104. package/dist/index149.js.map +1 -1
  105. package/dist/index150.js +68 -5
  106. package/dist/index150.js.map +1 -1
  107. package/dist/index151.js +2 -69
  108. package/dist/index151.js.map +1 -1
  109. package/dist/index152.js +386 -2
  110. package/dist/index152.js.map +1 -1
  111. package/dist/index153.js +201 -303
  112. package/dist/index153.js.map +1 -1
  113. package/dist/index154.js +46 -247
  114. package/dist/index154.js.map +1 -1
  115. package/dist/index155.js +42 -56
  116. package/dist/index155.js.map +1 -1
  117. package/dist/index156.js +169 -46
  118. package/dist/index156.js.map +1 -1
  119. package/dist/index157.js +96 -156
  120. package/dist/index157.js.map +1 -1
  121. package/dist/index158.js +24 -109
  122. package/dist/index158.js.map +1 -1
  123. package/dist/index159.js +8 -25
  124. package/dist/index159.js.map +1 -1
  125. package/dist/index16.js +91 -91
  126. package/dist/index16.js.map +1 -1
  127. package/dist/index160.js +5 -8
  128. package/dist/index160.js.map +1 -1
  129. package/dist/index161.js +5 -4
  130. package/dist/index161.js.map +1 -1
  131. package/dist/index162.js +4 -5
  132. package/dist/index162.js.map +1 -1
  133. package/dist/index163.js +487 -4
  134. package/dist/index163.js.map +1 -1
  135. package/dist/index164.js +151 -428
  136. package/dist/index164.js.map +1 -1
  137. package/dist/index165.js +13 -185
  138. package/dist/index165.js.map +1 -1
  139. package/dist/index166.js.map +1 -1
  140. package/dist/index167.js +6 -6
  141. package/dist/index167.js.map +1 -1
  142. package/dist/index168.js +3 -6
  143. package/dist/index168.js.map +1 -1
  144. package/dist/index169.js +15 -17
  145. package/dist/index169.js.map +1 -1
  146. package/dist/index170.js.map +1 -1
  147. package/dist/index171.js +12 -9
  148. package/dist/index171.js.map +1 -1
  149. package/dist/index172.js +10 -10
  150. package/dist/index172.js.map +1 -1
  151. package/dist/index173.js.map +1 -1
  152. package/dist/index174.js.map +1 -1
  153. package/dist/index175.js +1 -1
  154. package/dist/index175.js.map +1 -1
  155. package/dist/index176.js +13 -12
  156. package/dist/index176.js.map +1 -1
  157. package/dist/index177.js.map +1 -1
  158. package/dist/index178.js +1 -1
  159. package/dist/index178.js.map +1 -1
  160. package/dist/index179.js.map +1 -1
  161. package/dist/index180.js.map +1 -1
  162. package/dist/index181.js +1 -1
  163. package/dist/index181.js.map +1 -1
  164. package/dist/index182.js +2 -2
  165. package/dist/index182.js.map +1 -1
  166. package/dist/index183.js +6 -8
  167. package/dist/index183.js.map +1 -1
  168. package/dist/index184.js +161 -246
  169. package/dist/index184.js.map +1 -1
  170. package/dist/index185.js +279 -4
  171. package/dist/index185.js.map +1 -1
  172. package/dist/index186.js +5 -28
  173. package/dist/index186.js.map +1 -1
  174. package/dist/index187.js +23 -122
  175. package/dist/index187.js.map +1 -1
  176. package/dist/index188.js +126 -5
  177. package/dist/index188.js.map +1 -1
  178. package/dist/index189.js +59 -74
  179. package/dist/index189.js.map +1 -1
  180. package/dist/index190.js +7 -65
  181. package/dist/index190.js.map +1 -1
  182. package/dist/index191.js +16 -9
  183. package/dist/index191.js.map +1 -1
  184. package/dist/index192.js +31 -16
  185. package/dist/index192.js.map +1 -1
  186. package/dist/index193.js +65 -88
  187. package/dist/index193.js.map +1 -1
  188. package/dist/index194.js +58 -65
  189. package/dist/index194.js.map +1 -1
  190. package/dist/index195.js +8 -45
  191. package/dist/index195.js.map +1 -1
  192. package/dist/index196.js +77 -48
  193. package/dist/index196.js.map +1 -1
  194. package/dist/index197.js +19 -8
  195. package/dist/index197.js.map +1 -1
  196. package/dist/index198.js +15 -86
  197. package/dist/index198.js.map +1 -1
  198. package/dist/index199.js +4 -18
  199. package/dist/index199.js.map +1 -1
  200. package/dist/index200.js +4 -15
  201. package/dist/index200.js.map +1 -1
  202. package/dist/index201.js +6 -5
  203. package/dist/index201.js.map +1 -1
  204. package/dist/index202.js +4 -5
  205. package/dist/index202.js.map +1 -1
  206. package/dist/index203.js +6 -6
  207. package/dist/index203.js.map +1 -1
  208. package/dist/index204.js +16 -4
  209. package/dist/index204.js.map +1 -1
  210. package/dist/index205.js +4 -6
  211. package/dist/index205.js.map +1 -1
  212. package/dist/index206.js +4 -16
  213. package/dist/index206.js.map +1 -1
  214. package/dist/index207.js +12 -4
  215. package/dist/index207.js.map +1 -1
  216. package/dist/index208.js +9 -4
  217. package/dist/index208.js.map +1 -1
  218. package/dist/index209.js +13 -12
  219. package/dist/index209.js.map +1 -1
  220. package/dist/index210.js +13 -9
  221. package/dist/index210.js.map +1 -1
  222. package/dist/index211.js +4 -13
  223. package/dist/index211.js.map +1 -1
  224. package/dist/index212.js +5 -13
  225. package/dist/index212.js.map +1 -1
  226. package/dist/index213.js +6 -4
  227. package/dist/index213.js.map +1 -1
  228. package/dist/index214.js +5 -5
  229. package/dist/index214.js.map +1 -1
  230. package/dist/index215.js +54 -6
  231. package/dist/index215.js.map +1 -1
  232. package/dist/index216.js +8 -5
  233. package/dist/index216.js.map +1 -1
  234. package/dist/index217.js +4 -54
  235. package/dist/index217.js.map +1 -1
  236. package/dist/index218.js +4 -8
  237. package/dist/index218.js.map +1 -1
  238. package/dist/index219.js +8 -4
  239. package/dist/index219.js.map +1 -1
  240. package/dist/index220.js +4 -4
  241. package/dist/index220.js.map +1 -1
  242. package/dist/index221.js +4 -8
  243. package/dist/index221.js.map +1 -1
  244. package/dist/index222.js +3 -4
  245. package/dist/index222.js.map +1 -1
  246. package/dist/index223.js +10 -4
  247. package/dist/index223.js.map +1 -1
  248. package/dist/index224.js +9 -3
  249. package/dist/index224.js.map +1 -1
  250. package/dist/index225.js +8 -9
  251. package/dist/index225.js.map +1 -1
  252. package/dist/index226.js +10 -9
  253. package/dist/index226.js.map +1 -1
  254. package/dist/index227.js +10 -9
  255. package/dist/index227.js.map +1 -1
  256. package/dist/index228.js +9 -10
  257. package/dist/index228.js.map +1 -1
  258. package/dist/index229.js +6 -10
  259. package/dist/index229.js.map +1 -1
  260. package/dist/index230.js +5 -9
  261. package/dist/index230.js.map +1 -1
  262. package/dist/index231.js +4 -6
  263. package/dist/index231.js.map +1 -1
  264. package/dist/index232.js +5 -5
  265. package/dist/index232.js.map +1 -1
  266. package/dist/index233.js +6 -4
  267. package/dist/index233.js.map +1 -1
  268. package/dist/index234.js +5 -5
  269. package/dist/index234.js.map +1 -1
  270. package/dist/index235.js +16 -6
  271. package/dist/index235.js.map +1 -1
  272. package/dist/index236.js +7 -5
  273. package/dist/index236.js.map +1 -1
  274. package/dist/index237.js +9 -15
  275. package/dist/index237.js.map +1 -1
  276. package/dist/index238.js +10 -7
  277. package/dist/index238.js.map +1 -1
  278. package/dist/index239.js +21 -10
  279. package/dist/index239.js.map +1 -1
  280. package/dist/index240.js +8 -10
  281. package/dist/index240.js.map +1 -1
  282. package/dist/index241.js +9 -21
  283. package/dist/index241.js.map +1 -1
  284. package/dist/index242.js +9 -10
  285. package/dist/index242.js.map +1 -1
  286. package/dist/index243.js +4 -9
  287. package/dist/index243.js.map +1 -1
  288. package/dist/index244.js +5 -9
  289. package/dist/index244.js.map +1 -1
  290. package/dist/index245.js +16 -4
  291. package/dist/index245.js.map +1 -1
  292. package/dist/index246.js +9 -5
  293. package/dist/index246.js.map +1 -1
  294. package/dist/index247.js +18 -16
  295. package/dist/index247.js.map +1 -1
  296. package/dist/index248.js +20 -9
  297. package/dist/index248.js.map +1 -1
  298. package/dist/index249.js +8 -14
  299. package/dist/index249.js.map +1 -1
  300. package/dist/index250.js +29 -15
  301. package/dist/index250.js.map +1 -1
  302. package/dist/index251.js +12 -12
  303. package/dist/index251.js.map +1 -1
  304. package/dist/index252.js +24 -28
  305. package/dist/index252.js.map +1 -1
  306. package/dist/index253.js +5 -12
  307. package/dist/index253.js.map +1 -1
  308. package/dist/index254.js +152 -23
  309. package/dist/index254.js.map +1 -1
  310. package/dist/index255.js +32 -5
  311. package/dist/index255.js.map +1 -1
  312. package/dist/index256.js +12 -20
  313. package/dist/index256.js.map +1 -1
  314. package/dist/index257.js +44 -61
  315. package/dist/index257.js.map +1 -1
  316. package/dist/index258.js +9 -6
  317. package/dist/index258.js.map +1 -1
  318. package/dist/index259.js +11 -11
  319. package/dist/index259.js.map +1 -1
  320. package/dist/index260.js +41 -48
  321. package/dist/index260.js.map +1 -1
  322. package/dist/index261.js +98 -4
  323. package/dist/index261.js.map +1 -1
  324. package/dist/index262.js +84 -27
  325. package/dist/index262.js.map +1 -1
  326. package/dist/index263.js +103 -14
  327. package/dist/index263.js.map +1 -1
  328. package/dist/index264.js +52 -5
  329. package/dist/index264.js.map +1 -1
  330. package/dist/index265.js +11 -21
  331. package/dist/index265.js.map +1 -1
  332. package/dist/index266.js +4 -51
  333. package/dist/index266.js.map +1 -1
  334. package/dist/index267.js +37 -25
  335. package/dist/index267.js.map +1 -1
  336. package/dist/index268.js +8 -41
  337. package/dist/index268.js.map +1 -1
  338. package/dist/index269.js +132 -36
  339. package/dist/index269.js.map +1 -1
  340. package/dist/index27.js +421 -350
  341. package/dist/index27.js.map +1 -1
  342. package/dist/index270.js +18 -45
  343. package/dist/index270.js.map +1 -1
  344. package/dist/index271.js +14 -19
  345. package/dist/index271.js.map +1 -1
  346. package/dist/index272.js +3 -70
  347. package/dist/index272.js.map +1 -1
  348. package/dist/index273.js +34 -15
  349. package/dist/index273.js.map +1 -1
  350. package/dist/index274.js +20 -11
  351. package/dist/index274.js.map +1 -1
  352. package/dist/index275.js +8 -27
  353. package/dist/index275.js.map +1 -1
  354. package/dist/index276.js +9 -13
  355. package/dist/index276.js.map +1 -1
  356. package/dist/index277.js +24 -18
  357. package/dist/index277.js.map +1 -1
  358. package/dist/index278.js +27 -35
  359. package/dist/index278.js.map +1 -1
  360. package/dist/index279.js +16 -262
  361. package/dist/index279.js.map +1 -1
  362. package/dist/index280.js +20 -279
  363. package/dist/index280.js.map +1 -1
  364. package/dist/index281.js +64 -66
  365. package/dist/index281.js.map +1 -1
  366. package/dist/index282.js +6 -99
  367. package/dist/index282.js.map +1 -1
  368. package/dist/index283.js +5 -83
  369. package/dist/index283.js.map +1 -1
  370. package/dist/index284.js +11 -3
  371. package/dist/index284.js.map +1 -1
  372. package/dist/index285.js +3 -29
  373. package/dist/index285.js.map +1 -1
  374. package/dist/index286.js +50 -16
  375. package/dist/index286.js.map +1 -1
  376. package/dist/index287.js +4 -35
  377. package/dist/index287.js.map +1 -1
  378. package/dist/index288.js +28 -15
  379. package/dist/index288.js.map +1 -1
  380. package/dist/index289.js +16 -3
  381. package/dist/index289.js.map +1 -1
  382. package/dist/index29.js +48 -29
  383. package/dist/index29.js.map +1 -1
  384. package/dist/index290.js +5 -26
  385. package/dist/index290.js.map +1 -1
  386. package/dist/index291.js +20 -27
  387. package/dist/index291.js.map +1 -1
  388. package/dist/index292.js +54 -4
  389. package/dist/index292.js.map +1 -1
  390. package/dist/index293.js +18 -76
  391. package/dist/index293.js.map +1 -1
  392. package/dist/index294.js +37 -265
  393. package/dist/index294.js.map +1 -1
  394. package/dist/index295.js +39 -11
  395. package/dist/index295.js.map +1 -1
  396. package/dist/index296.js +45 -10
  397. package/dist/index296.js.map +1 -1
  398. package/dist/index297.js +20 -25
  399. package/dist/index297.js.map +1 -1
  400. package/dist/index298.js +69 -15
  401. package/dist/index298.js.map +1 -1
  402. package/dist/index299.js +14 -122
  403. package/dist/index299.js.map +1 -1
  404. package/dist/index300.js +3 -5
  405. package/dist/index300.js.map +1 -1
  406. package/dist/index301.js +11 -40
  407. package/dist/index301.js.map +1 -1
  408. package/dist/index302.js +12 -64
  409. package/dist/index302.js.map +1 -1
  410. package/dist/index303.js +19 -14
  411. package/dist/index303.js.map +1 -1
  412. package/dist/index304.js +36 -7
  413. package/dist/index304.js.map +1 -1
  414. package/dist/index305.js +239 -5
  415. package/dist/index305.js.map +1 -1
  416. package/dist/index306.js +252 -3
  417. package/dist/index306.js.map +1 -1
  418. package/dist/index307.js +68 -10
  419. package/dist/index307.js.map +1 -1
  420. package/dist/index308.js +99 -7
  421. package/dist/index308.js.map +1 -1
  422. package/dist/index309.js +80 -130
  423. package/dist/index309.js.map +1 -1
  424. package/dist/index31.js +194 -184
  425. package/dist/index31.js.map +1 -1
  426. package/dist/index310.js +3 -399
  427. package/dist/index310.js.map +1 -1
  428. package/dist/index311.js +29 -52
  429. package/dist/index311.js.map +1 -1
  430. package/dist/index312.js +15 -10
  431. package/dist/index312.js.map +1 -1
  432. package/dist/index313.js +35 -12
  433. package/dist/index313.js.map +1 -1
  434. package/dist/index314.js +17 -13
  435. package/dist/index314.js.map +1 -1
  436. package/dist/index315.js +3 -154
  437. package/dist/index315.js.map +1 -1
  438. package/dist/index316.js +25 -29
  439. package/dist/index316.js.map +1 -1
  440. package/dist/index317.js +28 -9
  441. package/dist/index317.js.map +1 -1
  442. package/dist/index318.js +4 -49
  443. package/dist/index318.js.map +1 -1
  444. package/dist/index319.js +77 -10
  445. package/dist/index319.js.map +1 -1
  446. package/dist/index32.js +3 -3
  447. package/dist/index32.js.map +1 -1
  448. package/dist/index320.js +271 -43
  449. package/dist/index320.js.map +1 -1
  450. package/dist/index321.js +11 -95
  451. package/dist/index321.js.map +1 -1
  452. package/dist/index322.js +11 -87
  453. package/dist/index322.js.map +1 -1
  454. package/dist/index323.js +24 -104
  455. package/dist/index323.js.map +1 -1
  456. package/dist/index324.js +16 -52
  457. package/dist/index324.js.map +1 -1
  458. package/dist/index325.js +124 -10
  459. package/dist/index325.js.map +1 -1
  460. package/dist/index326.js +5 -37
  461. package/dist/index326.js.map +1 -1
  462. package/dist/index327.js +65 -8
  463. package/dist/index327.js.map +1 -1
  464. package/dist/index328.js +14 -4
  465. package/dist/index328.js.map +1 -1
  466. package/dist/index329.js +7 -9
  467. package/dist/index329.js.map +1 -1
  468. package/dist/index330.js +5 -116
  469. package/dist/index330.js.map +1 -1
  470. package/dist/index331.js +3 -17
  471. package/dist/index331.js.map +1 -1
  472. package/dist/index332.js +10 -15
  473. package/dist/index332.js.map +1 -1
  474. package/dist/index333.js +7 -36
  475. package/dist/index333.js.map +1 -1
  476. package/dist/index334.js +131 -18
  477. package/dist/index334.js.map +1 -1
  478. package/dist/index335.js +398 -7
  479. package/dist/index335.js.map +1 -1
  480. package/dist/index336.js +5 -20
  481. package/dist/index336.js.map +1 -1
  482. package/dist/index337.js +50 -26
  483. package/dist/index337.js.map +1 -1
  484. package/dist/index338.js +11 -16
  485. package/dist/index338.js.map +1 -1
  486. package/dist/index339.js +27 -8
  487. package/dist/index339.js.map +1 -1
  488. package/dist/index34.js +7 -61
  489. package/dist/index34.js.map +1 -1
  490. package/dist/index340.js +11 -11
  491. package/dist/index340.js.map +1 -1
  492. package/dist/index341.js +8 -8
  493. package/dist/index341.js.map +1 -1
  494. package/dist/index342.js +11 -13
  495. package/dist/index342.js.map +1 -1
  496. package/dist/index343.js +8 -3
  497. package/dist/index343.js.map +1 -1
  498. package/dist/index344.js +13 -3
  499. package/dist/index344.js.map +1 -1
  500. package/dist/index345.js +3 -17
  501. package/dist/index345.js.map +1 -1
  502. package/dist/index346.js +3 -51
  503. package/dist/index346.js.map +1 -1
  504. package/dist/index347.js +17 -5
  505. package/dist/index347.js.map +1 -1
  506. package/dist/index348.js +60 -121
  507. package/dist/index348.js.map +1 -1
  508. package/dist/index349.js +65 -31
  509. package/dist/index349.js.map +1 -1
  510. package/dist/index35.js +29 -30
  511. package/dist/index35.js.map +1 -1
  512. package/dist/index350.js +47 -69
  513. package/dist/index350.js.map +1 -1
  514. package/dist/index351.js +5 -142
  515. package/dist/index351.js.map +1 -1
  516. package/dist/index352.js +7 -60
  517. package/dist/index352.js.map +1 -1
  518. package/dist/index353.js +4 -49
  519. package/dist/index353.js.map +1 -1
  520. package/dist/index354.js +12 -15
  521. package/dist/index354.js.map +1 -1
  522. package/dist/index355.js +21 -8
  523. package/dist/index355.js.map +1 -1
  524. package/dist/index356.js +17 -5
  525. package/dist/index356.js.map +1 -1
  526. package/dist/index357.js +8 -12
  527. package/dist/index357.js.map +1 -1
  528. package/dist/index358.js +144 -21
  529. package/dist/index358.js.map +1 -1
  530. package/dist/index359.js +79 -4
  531. package/dist/index359.js.map +1 -1
  532. package/dist/index36.js +52 -53
  533. package/dist/index36.js.map +1 -1
  534. package/dist/index360.js +61 -17
  535. package/dist/index360.js.map +1 -1
  536. package/dist/index361.js +15 -13
  537. package/dist/index361.js.map +1 -1
  538. package/dist/index362.js +4 -11
  539. package/dist/index362.js.map +1 -1
  540. package/dist/index363.js +18 -17
  541. package/dist/index363.js.map +1 -1
  542. package/dist/index364.js +13 -4
  543. package/dist/index364.js.map +1 -1
  544. package/dist/index365.js +4 -5
  545. package/dist/index365.js.map +1 -1
  546. package/dist/index366.js +20 -20
  547. package/dist/index366.js.map +1 -1
  548. package/dist/index367.js +4 -45
  549. package/dist/index367.js.map +1 -1
  550. package/dist/index368.js +11 -17
  551. package/dist/index368.js.map +1 -1
  552. package/dist/index369.js +6 -5
  553. package/dist/index369.js.map +1 -1
  554. package/dist/index37.js.map +1 -1
  555. package/dist/index370.js +3 -201
  556. package/dist/index370.js.map +1 -1
  557. package/dist/index371.js +20 -77
  558. package/dist/index371.js.map +1 -1
  559. package/dist/index372.js +45 -21
  560. package/dist/index372.js.map +1 -1
  561. package/dist/index373.js +18 -9
  562. package/dist/index373.js.map +1 -1
  563. package/dist/index374.js +5 -26
  564. package/dist/index374.js.map +1 -1
  565. package/dist/index375.js +196 -22
  566. package/dist/index375.js.map +1 -1
  567. package/dist/index376.js +73 -137
  568. package/dist/index376.js.map +1 -1
  569. package/dist/index377.js +121 -10
  570. package/dist/index377.js.map +1 -1
  571. package/dist/index378.js +7 -225
  572. package/dist/index378.js.map +1 -1
  573. package/dist/index379.js +27 -4
  574. package/dist/index379.js.map +1 -1
  575. package/dist/index38.js.map +1 -1
  576. package/dist/index380.js +136 -18
  577. package/dist/index380.js.map +1 -1
  578. package/dist/index381.js +10 -75
  579. package/dist/index381.js.map +1 -1
  580. package/dist/index382.js +47 -12
  581. package/dist/index382.js.map +1 -1
  582. package/dist/index383.js +3 -3
  583. package/dist/index383.js.map +1 -1
  584. package/dist/index384.js +19 -69
  585. package/dist/index384.js.map +1 -1
  586. package/dist/index385.js +76 -9
  587. package/dist/index385.js.map +1 -1
  588. package/dist/index386.js +12 -16
  589. package/dist/index386.js.map +1 -1
  590. package/dist/index387.js +3 -4
  591. package/dist/index387.js.map +1 -1
  592. package/dist/index388.js +71 -4
  593. package/dist/index388.js.map +1 -1
  594. package/dist/index389.js +36 -4
  595. package/dist/index389.js.map +1 -1
  596. package/dist/index39.js +3 -3
  597. package/dist/index39.js.map +1 -1
  598. package/dist/index390.js +7 -16
  599. package/dist/index390.js.map +1 -1
  600. package/dist/index391.js +15 -8
  601. package/dist/index391.js.map +1 -1
  602. package/dist/index392.js +4 -5
  603. package/dist/index392.js.map +1 -1
  604. package/dist/index393.js +4 -4
  605. package/dist/index393.js.map +1 -1
  606. package/dist/index394.js +4 -546
  607. package/dist/index394.js.map +1 -1
  608. package/dist/index395.js +16 -47
  609. package/dist/index395.js.map +1 -1
  610. package/dist/index396.js +8 -17
  611. package/dist/index396.js.map +1 -1
  612. package/dist/index397.js +5 -5
  613. package/dist/index397.js.map +1 -1
  614. package/dist/index398.js +4 -7
  615. package/dist/index398.js.map +1 -1
  616. package/dist/index399.js +545 -6
  617. package/dist/index399.js.map +1 -1
  618. package/dist/index40.js.map +1 -1
  619. package/dist/index400.js +47 -8
  620. package/dist/index400.js.map +1 -1
  621. package/dist/index401.js +17 -11
  622. package/dist/index401.js.map +1 -1
  623. package/dist/index402.js +5 -8
  624. package/dist/index402.js.map +1 -1
  625. package/dist/index403.js +7 -12
  626. package/dist/index403.js.map +1 -1
  627. package/dist/index404.js +7 -3
  628. package/dist/index404.js.map +1 -1
  629. package/dist/index405.js +8 -3
  630. package/dist/index405.js.map +1 -1
  631. package/dist/index406.js +11 -14
  632. package/dist/index406.js.map +1 -1
  633. package/dist/index407.js +8 -491
  634. package/dist/index407.js.map +1 -1
  635. package/dist/index408.js +12 -4
  636. package/dist/index408.js.map +1 -1
  637. package/dist/index409.js +3 -56
  638. package/dist/index409.js.map +1 -1
  639. package/dist/index41.js +45 -40
  640. package/dist/index41.js.map +1 -1
  641. package/dist/index410.js +3 -68
  642. package/dist/index410.js.map +1 -1
  643. package/dist/index411.js +15 -31
  644. package/dist/index411.js.map +1 -1
  645. package/dist/index412.js +3 -9
  646. package/dist/index412.js.map +1 -1
  647. package/dist/index413.js +488 -149
  648. package/dist/index413.js.map +1 -1
  649. package/dist/index414.js +66 -106
  650. package/dist/index414.js.map +1 -1
  651. package/dist/index415.js +31 -8
  652. package/dist/index415.js.map +1 -1
  653. package/dist/index416.js +9 -2
  654. package/dist/index416.js.map +1 -1
  655. package/dist/index417.js +150 -41
  656. package/dist/index417.js.map +1 -1
  657. package/dist/index418.js +108 -56
  658. package/dist/index418.js.map +1 -1
  659. package/dist/index419.js +4 -7
  660. package/dist/index419.js.map +1 -1
  661. package/dist/index420.js +56 -2
  662. package/dist/index420.js.map +1 -1
  663. package/dist/index421.js +7 -54
  664. package/dist/index421.js.map +1 -1
  665. package/dist/index422.js +2 -56
  666. package/dist/index422.js.map +1 -1
  667. package/dist/index423.js +44 -2
  668. package/dist/index423.js.map +1 -1
  669. package/dist/index424.js +56 -2
  670. package/dist/index424.js.map +1 -1
  671. package/dist/index425.js +8 -2
  672. package/dist/index425.js.map +1 -1
  673. package/dist/index426.js +2 -2
  674. package/dist/index427.js +54 -15
  675. package/dist/index427.js.map +1 -1
  676. package/dist/index428.js +55 -28
  677. package/dist/index428.js.map +1 -1
  678. package/dist/index429.js +31 -11
  679. package/dist/index429.js.map +1 -1
  680. package/dist/index430.js +14 -5
  681. package/dist/index430.js.map +1 -1
  682. package/dist/index431.js +32 -0
  683. package/dist/index431.js.map +1 -0
  684. package/dist/index432.js +16 -0
  685. package/dist/index432.js.map +1 -0
  686. package/dist/index433.js +10 -0
  687. package/dist/index433.js.map +1 -0
  688. package/dist/index434.js +5 -0
  689. package/dist/index434.js.map +1 -0
  690. package/dist/index435.js +5 -0
  691. package/dist/index435.js.map +1 -0
  692. package/dist/index436.js +5 -0
  693. package/dist/index436.js.map +1 -0
  694. package/dist/index437.js +5 -0
  695. package/dist/index437.js.map +1 -0
  696. package/dist/index48.js +2 -2
  697. package/dist/index48.js.map +1 -1
  698. package/dist/index49.js +274 -268
  699. package/dist/index49.js.map +1 -1
  700. package/dist/index50.js +182 -184
  701. package/dist/index50.js.map +1 -1
  702. package/dist/index51.js +3 -3
  703. package/dist/index51.js.map +1 -1
  704. package/dist/index52.js +105 -103
  705. package/dist/index52.js.map +1 -1
  706. package/dist/index53.js +5 -5
  707. package/dist/index53.js.map +1 -1
  708. package/dist/index54.js.map +1 -1
  709. package/dist/index55.js +102 -110
  710. package/dist/index55.js.map +1 -1
  711. package/dist/index56.js +4 -4
  712. package/dist/index56.js.map +1 -1
  713. package/dist/index57.js +5 -5
  714. package/dist/index57.js.map +1 -1
  715. package/dist/index58.js +9 -9
  716. package/dist/index58.js.map +1 -1
  717. package/dist/index59.js +5 -5
  718. package/dist/index59.js.map +1 -1
  719. package/dist/index6.js +43 -48
  720. package/dist/index6.js.map +1 -1
  721. package/dist/index60.js +90 -86
  722. package/dist/index60.js.map +1 -1
  723. package/dist/index61.js +2 -2
  724. package/dist/index61.js.map +1 -1
  725. package/dist/index62.js +24 -26
  726. package/dist/index62.js.map +1 -1
  727. package/dist/index76.js +1 -1
  728. package/dist/index77.js +2 -2
  729. package/dist/index77.js.map +1 -1
  730. package/dist/index78.js +2 -2
  731. package/dist/index78.js.map +1 -1
  732. package/dist/index79.js +50 -52
  733. package/dist/index79.js.map +1 -1
  734. package/dist/index80.js +4 -4
  735. package/dist/index80.js.map +1 -1
  736. package/dist/index81.js +12 -4
  737. package/dist/index81.js.map +1 -1
  738. package/dist/index82.js +5 -15
  739. package/dist/index82.js.map +1 -1
  740. package/dist/index83.js +7 -5
  741. package/dist/index83.js.map +1 -1
  742. package/dist/index84.js +17 -7
  743. package/dist/index84.js.map +1 -1
  744. package/dist/index85.js +4 -16
  745. package/dist/index85.js.map +1 -1
  746. package/dist/index86.js +1 -1
  747. package/dist/index86.js.map +1 -1
  748. package/dist/index87.js +5 -4
  749. package/dist/index87.js.map +1 -1
  750. package/dist/index88.js +4 -4
  751. package/dist/index88.js.map +1 -1
  752. package/dist/index89.js +4 -5
  753. package/dist/index89.js.map +1 -1
  754. package/dist/index90.js +2 -2
  755. package/dist/index90.js.map +1 -1
  756. package/dist/index91.js +5 -3
  757. package/dist/index91.js.map +1 -1
  758. package/dist/index92.js +24 -6
  759. package/dist/index92.js.map +1 -1
  760. package/dist/index93.js +4 -24
  761. package/dist/index93.js.map +1 -1
  762. package/dist/index94.js +4 -6
  763. package/dist/index94.js.map +1 -1
  764. package/dist/index95.js +2 -2
  765. package/dist/index95.js.map +1 -1
  766. package/dist/index96.js +5 -6
  767. package/dist/index96.js.map +1 -1
  768. package/dist/index97.js +4 -5
  769. package/dist/index97.js.map +1 -1
  770. package/dist/index98.js +4 -3
  771. package/dist/index98.js.map +1 -1
  772. package/dist/index99.js +4 -5
  773. package/dist/index99.js.map +1 -1
  774. package/package.json +14 -12
package/dist/index269.js CHANGED
@@ -1,43 +1,139 @@
1
- import * as a from "react";
2
- import { useIsoLayoutEffect as c } from "./index261.js";
3
- import { AnimationFrame as u } from "./index302.js";
4
- function g(t, s = !1, f = !1) {
5
- const [n, r] = a.useState(t && s ? "idle" : void 0), [i, d] = a.useState(t);
6
- return t && !i && (d(!0), r("starting")), !t && i && n !== "ending" && !f && r("ending"), !t && !i && n === "ending" && r(void 0), c(() => {
7
- if (!t && i && n !== "ending" && f) {
8
- const e = u.request(() => {
9
- r("ending");
10
- });
11
- return () => {
12
- u.cancel(e);
13
- };
14
- }
15
- }, [t, i, n, f]), c(() => {
16
- if (!t || s)
17
- return;
18
- const e = u.request(() => {
19
- r(void 0);
20
- });
21
- return () => {
22
- u.cancel(e);
23
- };
24
- }, [s, t]), c(() => {
25
- if (!t || !s)
1
+ import { MIN_LENGTH_FOR_NSN as P, MAX_LENGTH_FOR_NSN as h, PLUS_CHARS as s, VALID_DIGITS as y } from "./index159.js";
2
+ import c from "./index262.js";
3
+ import T from "./index163.js";
4
+ import v, { isViablePhoneNumberStart as O } from "./index270.js";
5
+ import w from "./index271.js";
6
+ import g from "./index267.js";
7
+ import { isPossibleNumber as S } from "./index255.js";
8
+ import x from "./index164.js";
9
+ import R from "./index272.js";
10
+ import E from "./index260.js";
11
+ import I from "./index273.js";
12
+ import A from "./index168.js";
13
+ import p from "./index274.js";
14
+ var H = 250, L = new RegExp("[" + s + y + "]"), U = new RegExp("[^" + y + "#]+$");
15
+ function Z(t, r, o) {
16
+ r = r || {};
17
+ var e = new T(o);
18
+ if (r.defaultCountry && !e.hasCountry(r.defaultCountry))
19
+ throw r.v2 ? new c("INVALID_COUNTRY") : new Error("Unknown country: ".concat(r.defaultCountry));
20
+ var a = G(t, r.v2, r.extract), m = a.number, n = a.ext, f = a.error;
21
+ if (!m) {
22
+ if (r.v2)
23
+ throw f === "TOO_SHORT" ? new c("TOO_SHORT") : new c("NOT_A_NUMBER");
24
+ return {};
25
+ }
26
+ var i = D(
27
+ m,
28
+ r.defaultCountry,
29
+ r.defaultCallingCode,
30
+ // If `country` is returned, its numbering plan will also be selected in `metadata`.
31
+ // Otherwise, if `countryCallingCode` is returned, its numbering plan will also be selected in `metadata`.
32
+ // Otherwise, if neither `country` nor `countryCallingCode` are returned, no numbering plan will be selected in `metadata`.
33
+ e
34
+ ), l = i.country, u = i.nationalNumber, d = i.countryCallingCode, N = i.countryCallingCodeSource, b = i.carrierCode;
35
+ if (!e.hasSelectedNumberingPlan()) {
36
+ if (r.v2)
37
+ throw new c("INVALID_COUNTRY");
38
+ return {};
39
+ }
40
+ if (!u || u.length < P) {
41
+ if (r.v2)
42
+ throw new c("TOO_SHORT");
43
+ return {};
44
+ }
45
+ if (u.length > h) {
46
+ if (r.v2)
47
+ throw new c("TOO_LONG");
48
+ return {};
49
+ }
50
+ if (r.v2) {
51
+ var C = new x(d, u, e.metadata);
52
+ return l && (C.country = l), b && (C.carrierCode = b), n && (C.ext = n), C.__countryCallingCodeSource = N, C;
53
+ }
54
+ var _ = (r.extended ? e.hasSelectedNumberingPlan() : l) ? R(u, e.nationalNumberPattern()) : !1;
55
+ return r.extended ? {
56
+ country: l,
57
+ countryCallingCode: d,
58
+ carrierCode: b,
59
+ valid: _,
60
+ possible: _ ? !0 : !!(r.extended === !0 && e.possibleLengths() && S(u, e)),
61
+ phone: u,
62
+ ext: n
63
+ } : _ ? M(l, u, n) : {};
64
+ }
65
+ function F(t, r, o) {
66
+ if (t) {
67
+ if (t.length > H) {
68
+ if (o)
69
+ throw new c("TOO_LONG");
26
70
  return;
27
- t && i && n !== "idle" && r("starting");
28
- const e = u.request(() => {
29
- r("idle");
30
- });
31
- return () => {
32
- u.cancel(e);
71
+ }
72
+ if (r === !1)
73
+ return t;
74
+ var e = t.search(L);
75
+ if (!(e < 0))
76
+ return t.slice(e).replace(U, "");
77
+ }
78
+ }
79
+ function G(t, r, o) {
80
+ var e = p(t, {
81
+ extractFormattedPhoneNumber: function(n) {
82
+ return F(n, o, r);
83
+ }
84
+ });
85
+ if (!e)
86
+ return {};
87
+ if (!v(e))
88
+ return O(e) ? {
89
+ error: "TOO_SHORT"
90
+ } : {};
91
+ var a = w(e);
92
+ return a.ext ? a : {
93
+ number: e
94
+ };
95
+ }
96
+ function M(t, r, o) {
97
+ var e = {
98
+ country: t,
99
+ phone: r
100
+ };
101
+ return o && (e.ext = o), e;
102
+ }
103
+ function D(t, r, o, e) {
104
+ var a = E(
105
+ g(t),
106
+ void 0,
107
+ // `defaultCountry` and `defaultCallingCode` are only used to detect
108
+ // if it's an "international" phone number or not. They won't be used
109
+ // to derive the resulting `countryCallingCode` from them, or anything like that.
110
+ r,
111
+ o,
112
+ e.metadata
113
+ ), m = a.countryCallingCodeSource, n = a.countryCallingCode, f = a.number, i;
114
+ if (n)
115
+ e.selectNumberingPlan(n);
116
+ else if (f && (r || o))
117
+ r ? (i = r, e.selectNumberingPlan(r), n = e.numberingPlan.callingCode()) : (e.selectNumberingPlan(o), n = o);
118
+ else return {};
119
+ if (!f)
120
+ return {
121
+ countryCallingCodeSource: m,
122
+ countryCallingCode: n
33
123
  };
34
- }, [s, t, i, n]), {
35
- mounted: i,
36
- setMounted: d,
37
- transitionStatus: n
124
+ var l = I(g(f), void 0, e), u = l.nationalNumber, d = l.carrierCode, N = A(n, {
125
+ nationalNumber: u,
126
+ metadata: e
127
+ });
128
+ return N && (i = N, N === "001" || e.selectNumberingPlan(i)), {
129
+ country: i,
130
+ countryCallingCode: n,
131
+ countryCallingCodeSource: m,
132
+ nationalNumber: u,
133
+ carrierCode: d
38
134
  };
39
135
  }
40
136
  export {
41
- g as useTransitionStatus
137
+ Z as default
42
138
  };
43
139
  //# sourceMappingURL=index269.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index269.js","sources":["../../../node_modules/@base-ui/react/esm/internals/useTransitionStatus.js"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { useIsoLayoutEffect } from '@base-ui/utils/useIsoLayoutEffect';\nimport { AnimationFrame } from '@base-ui/utils/useAnimationFrame';\n/**\n * Provides a status string for CSS animations.\n * @param open - a boolean that determines if the element is open.\n * @param enableIdleState - a boolean that enables the `'idle'` state between `'starting'` and `'ending'`\n */\nexport function useTransitionStatus(open, enableIdleState = false, deferEndingState = false) {\n const [transitionStatus, setTransitionStatus] = React.useState(open && enableIdleState ? 'idle' : undefined);\n const [mounted, setMounted] = React.useState(open);\n if (open && !mounted) {\n setMounted(true);\n setTransitionStatus('starting');\n }\n if (!open && mounted && transitionStatus !== 'ending' && !deferEndingState) {\n setTransitionStatus('ending');\n }\n if (!open && !mounted && transitionStatus === 'ending') {\n setTransitionStatus(undefined);\n }\n useIsoLayoutEffect(() => {\n if (!open && mounted && transitionStatus !== 'ending' && deferEndingState) {\n const frame = AnimationFrame.request(() => {\n setTransitionStatus('ending');\n });\n return () => {\n AnimationFrame.cancel(frame);\n };\n }\n return undefined;\n }, [open, mounted, transitionStatus, deferEndingState]);\n useIsoLayoutEffect(() => {\n if (!open || enableIdleState) {\n return undefined;\n }\n const frame = AnimationFrame.request(() => {\n // Avoid `flushSync` here due to Firefox.\n // See https://github.com/mui/base-ui/pull/3424\n setTransitionStatus(undefined);\n });\n return () => {\n AnimationFrame.cancel(frame);\n };\n }, [enableIdleState, open]);\n useIsoLayoutEffect(() => {\n if (!open || !enableIdleState) {\n return undefined;\n }\n if (open && mounted && transitionStatus !== 'idle') {\n setTransitionStatus('starting');\n }\n const frame = AnimationFrame.request(() => {\n setTransitionStatus('idle');\n });\n return () => {\n AnimationFrame.cancel(frame);\n };\n }, [enableIdleState, open, mounted, transitionStatus]);\n return {\n mounted,\n setMounted,\n transitionStatus\n };\n}"],"names":["useTransitionStatus","open","enableIdleState","deferEndingState","transitionStatus","setTransitionStatus","React","mounted","setMounted","useIsoLayoutEffect","frame","AnimationFrame"],"mappings":";;;AAUO,SAASA,EAAoBC,GAAMC,IAAkB,IAAOC,IAAmB,IAAO;AAC3F,QAAM,CAACC,GAAkBC,CAAmB,IAAIC,EAAM,SAASL,KAAQC,IAAkB,SAAS,MAAS,GACrG,CAACK,GAASC,CAAU,IAAIF,EAAM,SAASL,CAAI;AACjD,SAAIA,KAAQ,CAACM,MACXC,EAAW,EAAI,GACfH,EAAoB,UAAU,IAE5B,CAACJ,KAAQM,KAAWH,MAAqB,YAAY,CAACD,KACxDE,EAAoB,QAAQ,GAE1B,CAACJ,KAAQ,CAACM,KAAWH,MAAqB,YAC5CC,EAAoB,MAAS,GAE/BI,EAAmB,MAAM;AACvB,QAAI,CAACR,KAAQM,KAAWH,MAAqB,YAAYD,GAAkB;AACzE,YAAMO,IAAQC,EAAe,QAAQ,MAAM;AACzC,QAAAN,EAAoB,QAAQ;AAAA,MAC9B,CAAC;AACD,aAAO,MAAM;AACX,QAAAM,EAAe,OAAOD,CAAK;AAAA,MAC7B;AAAA,IACF;AAAA,EAEF,GAAG,CAACT,GAAMM,GAASH,GAAkBD,CAAgB,CAAC,GACtDM,EAAmB,MAAM;AACvB,QAAI,CAACR,KAAQC;AACX;AAEF,UAAMQ,IAAQC,EAAe,QAAQ,MAAM;AAGzC,MAAAN,EAAoB,MAAS;AAAA,IAC/B,CAAC;AACD,WAAO,MAAM;AACX,MAAAM,EAAe,OAAOD,CAAK;AAAA,IAC7B;AAAA,EACF,GAAG,CAACR,GAAiBD,CAAI,CAAC,GAC1BQ,EAAmB,MAAM;AACvB,QAAI,CAACR,KAAQ,CAACC;AACZ;AAEF,IAAID,KAAQM,KAAWH,MAAqB,UAC1CC,EAAoB,UAAU;AAEhC,UAAMK,IAAQC,EAAe,QAAQ,MAAM;AACzC,MAAAN,EAAoB,MAAM;AAAA,IAC5B,CAAC;AACD,WAAO,MAAM;AACX,MAAAM,EAAe,OAAOD,CAAK;AAAA,IAC7B;AAAA,EACF,GAAG,CAACR,GAAiBD,GAAMM,GAASH,CAAgB,CAAC,GAC9C;AAAA,IACL,SAAAG;AAAA,IACA,YAAAC;AAAA,IACA,kBAAAJ;AAAA,EACJ;AACA;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index269.js","sources":["../node_modules/libphonenumber-js/es6/parse.js"],"sourcesContent":["// This is a port of Google Android `libphonenumber`'s\n// `phonenumberutil.js` of December 31th, 2018.\n//\n// https://github.com/googlei18n/libphonenumber/commits/master/javascript/i18n/phonenumbers/phonenumberutil.js\n\nimport { VALID_DIGITS, PLUS_CHARS, MIN_LENGTH_FOR_NSN, MAX_LENGTH_FOR_NSN } from './constants.js';\nimport ParseError from './ParseError.js';\nimport Metadata from './metadata.js';\nimport isViablePhoneNumber, { isViablePhoneNumberStart } from './helpers/isViablePhoneNumber.js';\nimport extractExtension from './helpers/extension/extractExtension.js';\nimport parseIncompletePhoneNumber from './parseIncompletePhoneNumber.js';\nimport getCountryCallingCode from './getCountryCallingCode.js';\nimport { isPossibleNumber } from './isPossible.js';\n// import { parseRFC3966 } from './helpers/RFC3966.js'\nimport PhoneNumber from './PhoneNumber.js';\nimport matchesEntirely from './helpers/matchesEntirely.js';\nimport extractCountryCallingCode from './helpers/extractCountryCallingCode.js';\nimport extractNationalNumber from './helpers/extractNationalNumber.js';\n// import stripIddPrefix from './helpers/stripIddPrefix.js'\nimport getCountryByCallingCode from './helpers/getCountryByCallingCode.js';\nimport extractFormattedPhoneNumberFromPossibleRfc3966NumberUri from './helpers/extractFormattedPhoneNumberFromPossibleRfc3966NumberUri.js';\n\n// We don't allow input strings for parsing to be longer than 250 chars.\n// This prevents malicious input from consuming CPU.\nvar MAX_INPUT_STRING_LENGTH = 250;\n\n// This consists of the plus symbol, digits, and arabic-indic digits.\nvar PHONE_NUMBER_START_PATTERN = new RegExp('[' + PLUS_CHARS + VALID_DIGITS + ']');\n\n// Regular expression of trailing characters that we want to remove.\n// A trailing `#` is sometimes used when writing phone numbers with extensions in US.\n// Example: \"+1 (645) 123 1234-910#\" number has extension \"910\".\nvar AFTER_PHONE_NUMBER_END_PATTERN = new RegExp('[^' + VALID_DIGITS + '#' + ']+$');\nvar USE_NON_GEOGRAPHIC_COUNTRY_CODE = false;\n\n// Examples:\n//\n// ```js\n// parse('8 (800) 555-35-35', 'RU')\n// parse('8 (800) 555-35-35', 'RU', metadata)\n// parse('8 (800) 555-35-35', { country: { default: 'RU' } })\n// parse('8 (800) 555-35-35', { country: { default: 'RU' } }, metadata)\n// parse('+7 800 555 35 35')\n// parse('+7 800 555 35 35', metadata)\n// ```\n//\n\n/**\r\n * Parses a phone number.\r\n *\r\n * parse('123456789', { defaultCountry: 'RU', v2: true }, metadata)\r\n * parse('123456789', { defaultCountry: 'RU' }, metadata)\r\n * parse('123456789', undefined, metadata)\r\n *\r\n * @param {string} input\r\n * @param {object} [options]\r\n * @param {object} metadataJson\r\n * @return {object|PhoneNumber?} If `options.v2: true` flag is passed, it returns a `PhoneNumber?` instance. Otherwise, returns an object of shape `{ phone: '...', country: '...' }` (or just `{}` if no phone number was parsed).\r\n */\nexport default function parse(text, 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\n // Validate `defaultCountry`.\n if (options.defaultCountry && !metadata.hasCountry(options.defaultCountry)) {\n if (options.v2) {\n throw new ParseError('INVALID_COUNTRY');\n }\n throw new Error(\"Unknown country: \".concat(options.defaultCountry));\n }\n\n // Parse the phone number.\n var _parseInput = parseInput(text, options.v2, options.extract),\n formattedPhoneNumber = _parseInput.number,\n ext = _parseInput.ext,\n error = _parseInput.error;\n\n // If the phone number is not viable then return nothing.\n if (!formattedPhoneNumber) {\n if (options.v2) {\n if (error === 'TOO_SHORT') {\n throw new ParseError('TOO_SHORT');\n }\n throw new ParseError('NOT_A_NUMBER');\n }\n return {};\n }\n var _parsePhoneNumber = parsePhoneNumber(formattedPhoneNumber, options.defaultCountry, options.defaultCallingCode,\n // If `country` is returned, its numbering plan will also be selected in `metadata`.\n // Otherwise, if `countryCallingCode` is returned, its numbering plan will also be selected in `metadata`.\n // Otherwise, if neither `country` nor `countryCallingCode` are returned, no numbering plan will be selected in `metadata`.\n metadata),\n country = _parsePhoneNumber.country,\n nationalNumber = _parsePhoneNumber.nationalNumber,\n countryCallingCode = _parsePhoneNumber.countryCallingCode,\n countryCallingCodeSource = _parsePhoneNumber.countryCallingCodeSource,\n carrierCode = _parsePhoneNumber.carrierCode;\n if (!metadata.hasSelectedNumberingPlan()) {\n if (options.v2) {\n throw new ParseError('INVALID_COUNTRY');\n }\n return {};\n }\n\n // Validate national (significant) number length.\n if (!nationalNumber || nationalNumber.length < MIN_LENGTH_FOR_NSN) {\n // Won't throw here because the regexp already demands length > 1.\n /* istanbul ignore if */\n if (options.v2) {\n throw new ParseError('TOO_SHORT');\n }\n // Google's demo just throws an error in this case.\n return {};\n }\n\n // Validate national (significant) number length.\n //\n // A sidenote:\n //\n // They say that sometimes national (significant) numbers\n // can be longer than `MAX_LENGTH_FOR_NSN` (e.g. in Germany).\n // https://github.com/googlei18n/libphonenumber/blob/7e1748645552da39c4e1ba731e47969d97bdb539/resources/phonenumber.proto#L36\n // Such numbers will just be discarded.\n //\n if (nationalNumber.length > MAX_LENGTH_FOR_NSN) {\n if (options.v2) {\n throw new ParseError('TOO_LONG');\n }\n // Google's demo just throws an error in this case.\n return {};\n }\n if (options.v2) {\n var phoneNumber = new PhoneNumber(countryCallingCode, nationalNumber, metadata.metadata);\n if (country) {\n phoneNumber.country = country;\n }\n if (carrierCode) {\n phoneNumber.carrierCode = carrierCode;\n }\n if (ext) {\n phoneNumber.ext = ext;\n }\n phoneNumber.__countryCallingCodeSource = countryCallingCodeSource;\n return phoneNumber;\n }\n\n // Check if national phone number pattern matches the number.\n // National number pattern is different for each country,\n // even for those ones which are part of the \"NANPA\" group.\n var valid = (options.extended ? metadata.hasSelectedNumberingPlan() : country) ? matchesEntirely(nationalNumber, metadata.nationalNumberPattern()) : false;\n if (!options.extended) {\n return valid ? result(country, nationalNumber, ext) : {};\n }\n\n // isInternational: countryCallingCode !== undefined\n\n return {\n country: country,\n countryCallingCode: countryCallingCode,\n carrierCode: carrierCode,\n valid: valid,\n possible: valid ? true : options.extended === true && metadata.possibleLengths() && isPossibleNumber(nationalNumber, metadata) ? true : false,\n phone: nationalNumber,\n ext: ext\n };\n}\n\n/**\r\n * Extracts a formatted phone number from text.\r\n * Doesn't guarantee that the extracted phone number\r\n * is a valid phone number (for example, doesn't validate its length).\r\n * @param {string} text\r\n * @param {boolean} [extract] — If `false`, then will parse the entire `text` as a phone number.\r\n * @param {boolean} [throwOnError] — By default, it won't throw if the text is too long.\r\n * @return {string}\r\n * @example\r\n * // Returns \"(213) 373-4253\".\r\n * extractFormattedPhoneNumber(\"Call (213) 373-4253 for assistance.\")\r\n */\nfunction _extractFormattedPhoneNumber(text, extract, throwOnError) {\n if (!text) {\n return;\n }\n if (text.length > MAX_INPUT_STRING_LENGTH) {\n if (throwOnError) {\n throw new ParseError('TOO_LONG');\n }\n return;\n }\n if (extract === false) {\n return text;\n }\n // Attempt to extract a possible number from the string passed in\n var startsAt = text.search(PHONE_NUMBER_START_PATTERN);\n if (startsAt < 0) {\n return;\n }\n return text\n // Trim everything to the left of the phone number\n .slice(startsAt)\n // Remove trailing non-numerical characters\n .replace(AFTER_PHONE_NUMBER_END_PATTERN, '');\n}\n\n/**\r\n * @param {string} text - Input.\r\n * @param {boolean} v2 - Legacy API functions don't pass `v2: true` flag.\r\n * @param {boolean} [extract] - Whether to extract a phone number from `text`, or attempt to parse the entire text as a phone number.\r\n * @return {object} `{ ?number, ?ext }`.\r\n */\nfunction parseInput(text, v2, extract) {\n // // Parse RFC 3966 phone number URI.\n // if (text && text.indexOf('tel:') === 0) {\n // \treturn parseRFC3966(text)\n // }\n // let number = extractFormattedPhoneNumber(text, extract, v2)\n var number = extractFormattedPhoneNumberFromPossibleRfc3966NumberUri(text, {\n extractFormattedPhoneNumber: function extractFormattedPhoneNumber(text) {\n return _extractFormattedPhoneNumber(text, extract, v2);\n }\n });\n // If the phone number is not viable, then abort.\n if (!number) {\n return {};\n }\n if (!isViablePhoneNumber(number)) {\n if (isViablePhoneNumberStart(number)) {\n return {\n error: 'TOO_SHORT'\n };\n }\n return {};\n }\n // Attempt to parse extension first, since it doesn't require region-specific\n // data and we want to have the non-normalised number here.\n var withExtensionStripped = extractExtension(number);\n if (withExtensionStripped.ext) {\n return withExtensionStripped;\n }\n return {\n number: number\n };\n}\n\n/**\r\n * Creates `parse()` result object.\r\n */\nfunction result(country, nationalNumber, ext) {\n var result = {\n country: country,\n phone: nationalNumber\n };\n if (ext) {\n result.ext = ext;\n }\n return result;\n}\n\n/**\r\n * Parses a viable phone number.\r\n * @param {string} formattedPhoneNumber — Example: \"(213) 373-4253\".\r\n * @param {string} [defaultCountry]\r\n * @param {string} [defaultCallingCode]\r\n * @param {Metadata} metadata — Metadata instance with no pre-selected numbering plan. If `country` is returned, its numbering plan will also be selected in `metadata`. Otherwise, if `countryCallingCode` is returned, its numbering plan will also be selected in `metadata`. Otherwise, if neither `country` nor `countryCallingCode` are returned, no numbering plan will be selected in `metadata`.\r\n * @return {object} Returns `{ country: string?, countryCallingCode: string?, nationalNumber: string? }`.\r\n */\nfunction parsePhoneNumber(formattedPhoneNumber, defaultCountry, defaultCallingCode, metadata) {\n // Attempt to extract a calling code from a phone number.\n // * If the phone number is found to be \"international\":\n // * It will attempt to identify the calling code part of it and whether that part is complete and valid.\n // * If the calling code part is complete and valid, it will return two properties:\n // that calling code part (without `+`) and the rest of the digits.\n // * Otherwise, i.e. if the calling code part is incomplete or invalid,\n // it will return an empty object.\n // * Otherwise, i.e. if the phone number is national, there's no callind code to extract\n // so it will just return the originally-passed `number` string as the only property.\n var _extractCountryCallin = extractCountryCallingCode(parseIncompletePhoneNumber(formattedPhoneNumber), undefined,\n // `defaultCountry` and `defaultCallingCode` are only used to detect\n // if it's an \"international\" phone number or not. They won't be used\n // to derive the resulting `countryCallingCode` from them, or anything like that.\n defaultCountry, defaultCallingCode, metadata.metadata),\n countryCallingCodeSource = _extractCountryCallin.countryCallingCodeSource,\n countryCallingCode = _extractCountryCallin.countryCallingCode,\n number = _extractCountryCallin.number;\n\n // The exact country of the phone number\n var country;\n\n // If `formattedPhoneNumber` is passed in \"international\" format,\n // choose a country by `countryCallingCode`.\n if (countryCallingCode) {\n metadata.selectNumberingPlan(countryCallingCode);\n }\n // Else, if `formattedPhoneNumber` is passed in \"national\" format,\n // then `number` is defined and `countryCallingCode` is `undefined`.\n else if (number && (defaultCountry || defaultCallingCode)) {\n if (defaultCountry) {\n country = defaultCountry;\n metadata.selectNumberingPlan(defaultCountry);\n countryCallingCode = metadata.numberingPlan.callingCode();\n } else {\n metadata.selectNumberingPlan(defaultCallingCode);\n countryCallingCode = defaultCallingCode;\n /* istanbul ignore if */\n if (USE_NON_GEOGRAPHIC_COUNTRY_CODE) {\n if (metadata.isNonGeographicCallingCode(countryCallingCode)) {\n country = '001';\n }\n }\n }\n } else return {};\n\n // At this point, `country` could be `undefined` but `countryCallingCode` is always defined.\n //\n // Also, if `country` is defined, its numbering plan is selected in `metadata`.\n // Otherwise, the numering plan for the `countryCallingCode` is selected in `metadata`.\n\n if (!number) {\n return {\n countryCallingCodeSource: countryCallingCodeSource,\n countryCallingCode: countryCallingCode\n };\n }\n var _extractNationalNumbe = extractNationalNumber(parseIncompletePhoneNumber(number), undefined, metadata),\n nationalNumber = _extractNationalNumbe.nationalNumber,\n carrierCode = _extractNationalNumbe.carrierCode;\n\n // Sometimes there are several countries\n // corresponding to the same country phone code\n // (e.g. NANPA countries all having `1` country phone code).\n // Therefore, to reliably determine the exact country,\n // national (significant) number should have been parsed first.\n //\n // When `metadata.json` is generated, all \"ambiguous\" country phone codes\n // get their countries populated with the full set of\n // \"phone number type\" regular expressions.\n //\n var exactCountry = getCountryByCallingCode(countryCallingCode, {\n nationalNumber: nationalNumber,\n metadata: metadata\n });\n if (exactCountry) {\n country = exactCountry;\n /* istanbul ignore if */\n if (exactCountry === '001') {\n // Can't happen with `USE_NON_GEOGRAPHIC_COUNTRY_CODE` being `false`.\n // If `USE_NON_GEOGRAPHIC_COUNTRY_CODE` is set to `true` for some reason,\n // then remove the \"istanbul ignore if\".\n } else {\n metadata.selectNumberingPlan(country);\n }\n }\n return {\n country: country,\n countryCallingCode: countryCallingCode,\n countryCallingCodeSource: countryCallingCodeSource,\n nationalNumber: nationalNumber,\n carrierCode: carrierCode\n };\n}\n//# sourceMappingURL=parse.js.map"],"names":["MAX_INPUT_STRING_LENGTH","PHONE_NUMBER_START_PATTERN","PLUS_CHARS","VALID_DIGITS","AFTER_PHONE_NUMBER_END_PATTERN","parse","text","options","metadataJson","metadata","Metadata","ParseError","_parseInput","parseInput","formattedPhoneNumber","ext","error","_parsePhoneNumber","parsePhoneNumber","country","nationalNumber","countryCallingCode","countryCallingCodeSource","carrierCode","MIN_LENGTH_FOR_NSN","MAX_LENGTH_FOR_NSN","phoneNumber","PhoneNumber","valid","matchesEntirely","isPossibleNumber","result","_extractFormattedPhoneNumber","extract","throwOnError","startsAt","v2","number","extractFormattedPhoneNumberFromPossibleRfc3966NumberUri","isViablePhoneNumber","isViablePhoneNumberStart","withExtensionStripped","extractExtension","defaultCountry","defaultCallingCode","_extractCountryCallin","extractCountryCallingCode","parseIncompletePhoneNumber","_extractNationalNumbe","extractNationalNumber","exactCountry","getCountryByCallingCode"],"mappings":"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","x_google_ignoreList":[0]}