@rpcbase/ui 0.185.0 → 0.186.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 (555) hide show
  1. package/dist/helpers/useScrollPagination.d.ts.map +1 -1
  2. package/dist/index100.js +8 -108
  3. package/dist/index100.js.map +1 -1
  4. package/dist/index101.js +4 -262
  5. package/dist/index101.js.map +1 -1
  6. package/dist/index102.js +5 -9
  7. package/dist/index102.js.map +1 -1
  8. package/dist/index103.js +4 -42
  9. package/dist/index103.js.map +1 -1
  10. package/dist/index104.js +466 -4
  11. package/dist/index104.js.map +1 -1
  12. package/dist/index105.js +183 -44
  13. package/dist/index105.js.map +1 -1
  14. package/dist/index106.js +108 -52
  15. package/dist/index106.js.map +1 -1
  16. package/dist/index107.js +262 -4
  17. package/dist/index107.js.map +1 -1
  18. package/dist/index108.js +9 -4
  19. package/dist/index108.js.map +1 -1
  20. package/dist/index109.js +42 -15
  21. package/dist/index109.js.map +1 -1
  22. package/dist/index110.js +4 -5
  23. package/dist/index110.js.map +1 -1
  24. package/dist/index111.js +52 -8
  25. package/dist/index111.js.map +1 -1
  26. package/dist/index112.js +3 -15
  27. package/dist/index112.js.map +1 -1
  28. package/dist/index113.js +3 -3
  29. package/dist/index113.js.map +1 -1
  30. package/dist/index114.js +15 -4
  31. package/dist/index114.js.map +1 -1
  32. package/dist/index115.js +5 -5
  33. package/dist/index115.js.map +1 -1
  34. package/dist/index116.js +7 -5
  35. package/dist/index116.js.map +1 -1
  36. package/dist/index117.js +15 -3
  37. package/dist/index117.js.map +1 -1
  38. package/dist/index118.js +4 -4
  39. package/dist/index118.js.map +1 -1
  40. package/dist/index119.js +4 -6
  41. package/dist/index119.js.map +1 -1
  42. package/dist/index120.js +5 -24
  43. package/dist/index120.js.map +1 -1
  44. package/dist/index121.js +5 -6
  45. package/dist/index121.js.map +1 -1
  46. package/dist/index122.js +2 -2
  47. package/dist/index122.js.map +1 -1
  48. package/dist/index123.js +3 -5
  49. package/dist/index123.js.map +1 -1
  50. package/dist/index124.js +6 -5
  51. package/dist/index124.js.map +1 -1
  52. package/dist/index125.js +24 -4
  53. package/dist/index125.js.map +1 -1
  54. package/dist/index126.js +6 -5
  55. package/dist/index126.js.map +1 -1
  56. package/dist/index127.js +4 -4
  57. package/dist/index127.js.map +1 -1
  58. package/dist/index128.js +5 -7
  59. package/dist/index128.js.map +1 -1
  60. package/dist/index129.js +4 -4
  61. package/dist/index129.js.map +1 -1
  62. package/dist/index130.js +3 -3
  63. package/dist/index130.js.map +1 -1
  64. package/dist/index131.js +5 -4
  65. package/dist/index131.js.map +1 -1
  66. package/dist/index132.js +4 -6
  67. package/dist/index132.js.map +1 -1
  68. package/dist/index133.js +8 -145
  69. package/dist/index133.js.map +1 -1
  70. package/dist/index134.js +5 -39
  71. package/dist/index134.js.map +1 -1
  72. package/dist/index135.js +4 -4
  73. package/dist/index135.js.map +1 -1
  74. package/dist/index136.js +4 -7
  75. package/dist/index136.js.map +1 -1
  76. package/dist/index137.js +6 -13
  77. package/dist/index137.js.map +1 -1
  78. package/dist/index138.js +145 -13
  79. package/dist/index138.js.map +1 -1
  80. package/dist/index139.js +38 -6
  81. package/dist/index139.js.map +1 -1
  82. package/dist/index140.js +4 -31
  83. package/dist/index140.js.map +1 -1
  84. package/dist/index141.js +7 -10
  85. package/dist/index141.js.map +1 -1
  86. package/dist/index142.js +13 -10
  87. package/dist/index142.js.map +1 -1
  88. package/dist/index143.js +13 -8
  89. package/dist/index143.js.map +1 -1
  90. package/dist/index144.js +7 -13
  91. package/dist/index144.js.map +1 -1
  92. package/dist/index145.js +29 -99
  93. package/dist/index145.js.map +1 -1
  94. package/dist/index146.js +11 -20
  95. package/dist/index146.js.map +1 -1
  96. package/dist/index147.js +10 -53
  97. package/dist/index147.js.map +1 -1
  98. package/dist/index148.js +8 -72
  99. package/dist/index148.js.map +1 -1
  100. package/dist/index149.js +13 -9
  101. package/dist/index149.js.map +1 -1
  102. package/dist/index150.js +98 -17
  103. package/dist/index150.js.map +1 -1
  104. package/dist/index151.js +20 -17
  105. package/dist/index151.js.map +1 -1
  106. package/dist/index152.js +53 -23
  107. package/dist/index152.js.map +1 -1
  108. package/dist/index153.js +72 -6
  109. package/dist/index153.js.map +1 -1
  110. package/dist/index154.js +9 -5
  111. package/dist/index154.js.map +1 -1
  112. package/dist/index155.js +20 -23
  113. package/dist/index155.js.map +1 -1
  114. package/dist/index156.js +16 -34
  115. package/dist/index156.js.map +1 -1
  116. package/dist/index157.js +24 -16
  117. package/dist/index157.js.map +1 -1
  118. package/dist/index158.js +6 -6
  119. package/dist/index158.js.map +1 -1
  120. package/dist/index159.js +5 -4
  121. package/dist/index159.js.map +1 -1
  122. package/dist/index160.js +23 -4
  123. package/dist/index160.js.map +1 -1
  124. package/dist/index161.js +35 -5
  125. package/dist/index161.js.map +1 -1
  126. package/dist/index162.js +16 -5
  127. package/dist/index162.js.map +1 -1
  128. package/dist/index163.js +6 -3
  129. package/dist/index163.js.map +1 -1
  130. package/dist/index164.js +4 -6
  131. package/dist/index164.js.map +1 -1
  132. package/dist/index165.js +5 -24
  133. package/dist/index165.js.map +1 -1
  134. package/dist/index166.js +4 -7
  135. package/dist/index166.js.map +1 -1
  136. package/dist/index167.js +4 -6
  137. package/dist/index167.js.map +1 -1
  138. package/dist/index168.js +3 -5
  139. package/dist/index168.js.map +1 -1
  140. package/dist/index169.js +6 -3
  141. package/dist/index169.js.map +1 -1
  142. package/dist/index170.js +24 -4
  143. package/dist/index170.js.map +1 -1
  144. package/dist/index171.js +7 -4
  145. package/dist/index171.js.map +1 -1
  146. package/dist/index172.js +6 -3
  147. package/dist/index172.js.map +1 -1
  148. package/dist/index173.js +5 -4
  149. package/dist/index173.js.map +1 -1
  150. package/dist/index174.js +3 -3
  151. package/dist/index174.js.map +1 -1
  152. package/dist/index175.js +3 -3
  153. package/dist/index175.js.map +1 -1
  154. package/dist/index176.js +4 -3
  155. package/dist/index176.js.map +1 -1
  156. package/dist/index177.js +3 -46
  157. package/dist/index177.js.map +1 -1
  158. package/dist/index178.js +4 -205
  159. package/dist/index178.js.map +1 -1
  160. package/dist/index179.js +4 -22
  161. package/dist/index179.js.map +1 -1
  162. package/dist/index180.js +3 -24
  163. package/dist/index180.js.map +1 -1
  164. package/dist/index181.js +3 -399
  165. package/dist/index181.js.map +1 -1
  166. package/dist/index182.js +13 -13
  167. package/dist/index183.js +23 -12
  168. package/dist/index183.js.map +1 -1
  169. package/dist/index184.js +29 -155
  170. package/dist/index184.js.map +1 -1
  171. package/dist/index185.js +5 -31
  172. package/dist/index185.js.map +1 -1
  173. package/dist/index186.js +13 -9
  174. package/dist/index186.js.map +1 -1
  175. package/dist/index187.js +147 -40
  176. package/dist/index187.js.map +1 -1
  177. package/dist/index188.js +29 -10
  178. package/dist/index188.js.map +1 -1
  179. package/dist/index189.js +9 -44
  180. package/dist/index189.js.map +1 -1
  181. package/dist/index190.js +40 -88
  182. package/dist/index190.js.map +1 -1
  183. package/dist/index191.js +10 -85
  184. package/dist/index191.js.map +1 -1
  185. package/dist/index192.js +41 -102
  186. package/dist/index192.js.map +1 -1
  187. package/dist/index193.js +88 -45
  188. package/dist/index193.js.map +1 -1
  189. package/dist/index194.js +85 -10
  190. package/dist/index194.js.map +1 -1
  191. package/dist/index195.js +96 -28
  192. package/dist/index195.js.map +1 -1
  193. package/dist/index196.js +52 -8
  194. package/dist/index196.js.map +1 -1
  195. package/dist/index197.js +10 -115
  196. package/dist/index197.js.map +1 -1
  197. package/dist/index198.js +36 -16
  198. package/dist/index198.js.map +1 -1
  199. package/dist/index199.js +8 -15
  200. package/dist/index199.js.map +1 -1
  201. package/dist/index200.js +116 -3
  202. package/dist/index200.js.map +1 -1
  203. package/dist/index201.js +16 -35
  204. package/dist/index201.js.map +1 -1
  205. package/dist/index202.js +14 -19
  206. package/dist/index202.js.map +1 -1
  207. package/dist/index203.js +3 -9
  208. package/dist/index203.js.map +1 -1
  209. package/dist/index204.js +36 -8
  210. package/dist/index204.js.map +1 -1
  211. package/dist/index205.js +19 -18
  212. package/dist/index205.js.map +1 -1
  213. package/dist/index206.js +9 -28
  214. package/dist/index206.js.map +1 -1
  215. package/dist/index207.js +7 -15
  216. package/dist/index207.js.map +1 -1
  217. package/dist/index208.js +19 -58
  218. package/dist/index208.js.map +1 -1
  219. package/dist/index209.js +28 -8
  220. package/dist/index209.js.map +1 -1
  221. package/dist/index210.js +15 -65
  222. package/dist/index210.js.map +1 -1
  223. package/dist/index211.js +57 -18
  224. package/dist/index211.js.map +1 -1
  225. package/dist/index212.js +8 -16
  226. package/dist/index212.js.map +1 -1
  227. package/dist/index213.js +65 -4
  228. package/dist/index213.js.map +1 -1
  229. package/dist/index214.js +18 -4
  230. package/dist/index214.js.map +1 -1
  231. package/dist/index215.js +16 -6
  232. package/dist/index215.js.map +1 -1
  233. package/dist/index216.js +5 -4
  234. package/dist/index216.js.map +1 -1
  235. package/dist/index217.js +5 -7
  236. package/dist/index217.js.map +1 -1
  237. package/dist/index218.js +6 -17
  238. package/dist/index218.js.map +1 -1
  239. package/dist/index219.js +4 -5
  240. package/dist/index219.js.map +1 -1
  241. package/dist/index220.js +7 -5
  242. package/dist/index220.js.map +1 -1
  243. package/dist/index221.js +17 -13
  244. package/dist/index221.js.map +1 -1
  245. package/dist/index222.js +5 -10
  246. package/dist/index222.js.map +1 -1
  247. package/dist/index223.js +5 -14
  248. package/dist/index223.js.map +1 -1
  249. package/dist/index224.js +13 -14
  250. package/dist/index224.js.map +1 -1
  251. package/dist/index225.js +10 -5
  252. package/dist/index225.js.map +1 -1
  253. package/dist/index226.js +14 -6
  254. package/dist/index226.js.map +1 -1
  255. package/dist/index227.js +14 -7
  256. package/dist/index227.js.map +1 -1
  257. package/dist/index228.js +5 -6
  258. package/dist/index228.js.map +1 -1
  259. package/dist/index229.js +6 -9
  260. package/dist/index229.js.map +1 -1
  261. package/dist/index230.js +7 -5
  262. package/dist/index230.js.map +1 -1
  263. package/dist/index231.js +6 -5
  264. package/dist/index231.js.map +1 -1
  265. package/dist/index232.js +9 -9
  266. package/dist/index232.js.map +1 -1
  267. package/dist/index233.js +5 -5
  268. package/dist/index233.js.map +1 -1
  269. package/dist/index234.js +5 -5
  270. package/dist/index234.js.map +1 -1
  271. package/dist/index235.js +9 -4
  272. package/dist/index235.js.map +1 -1
  273. package/dist/index236.js +5 -11
  274. package/dist/index236.js.map +1 -1
  275. package/dist/index237.js +5 -10
  276. package/dist/index237.js.map +1 -1
  277. package/dist/index238.js +4 -10
  278. package/dist/index238.js.map +1 -1
  279. package/dist/index239.js +11 -11
  280. package/dist/index239.js.map +1 -1
  281. package/dist/index24.js +1 -1
  282. package/dist/index240.js +10 -11
  283. package/dist/index240.js.map +1 -1
  284. package/dist/index241.js +10 -10
  285. package/dist/index241.js.map +1 -1
  286. package/dist/index242.js +11 -7
  287. package/dist/index242.js.map +1 -1
  288. package/dist/index243.js +11 -6
  289. package/dist/index243.js.map +1 -1
  290. package/dist/index244.js +10 -5
  291. package/dist/index244.js.map +1 -1
  292. package/dist/index245.js +7 -6
  293. package/dist/index245.js.map +1 -1
  294. package/dist/index246.js +6 -7
  295. package/dist/index246.js.map +1 -1
  296. package/dist/index247.js +5 -6
  297. package/dist/index247.js.map +1 -1
  298. package/dist/index248.js +6 -55
  299. package/dist/index248.js.map +1 -1
  300. package/dist/index249.js +7 -16
  301. package/dist/index249.js.map +1 -1
  302. package/dist/index250.js +6 -7
  303. package/dist/index250.js.map +1 -1
  304. package/dist/index251.js +55 -10
  305. package/dist/index251.js.map +1 -1
  306. package/dist/index252.js +15 -9
  307. package/dist/index252.js.map +1 -1
  308. package/dist/index253.js +7 -21
  309. package/dist/index253.js.map +1 -1
  310. package/dist/index254.js +10 -10
  311. package/dist/index254.js.map +1 -1
  312. package/dist/index255.js +10 -9
  313. package/dist/index255.js.map +1 -1
  314. package/dist/index256.js +21 -9
  315. package/dist/index256.js.map +1 -1
  316. package/dist/index257.js +10 -4
  317. package/dist/index257.js.map +1 -1
  318. package/dist/index258.js +9 -5
  319. package/dist/index258.js.map +1 -1
  320. package/dist/index259.js +9 -16
  321. package/dist/index259.js.map +1 -1
  322. package/dist/index260.js +4 -9
  323. package/dist/index260.js.map +1 -1
  324. package/dist/index261.js +5 -18
  325. package/dist/index261.js.map +1 -1
  326. package/dist/index262.js +16 -15
  327. package/dist/index262.js.map +1 -1
  328. package/dist/index263.js +9 -12
  329. package/dist/index263.js.map +1 -1
  330. package/dist/index264.js +18 -29
  331. package/dist/index264.js.map +1 -1
  332. package/dist/index265.js +15 -12
  333. package/dist/index265.js.map +1 -1
  334. package/dist/index266.js +12 -25
  335. package/dist/index266.js.map +1 -1
  336. package/dist/index267.js +29 -5
  337. package/dist/index267.js.map +1 -1
  338. package/dist/index268.js +12 -24
  339. package/dist/index268.js.map +1 -1
  340. package/dist/index269.js +26 -29
  341. package/dist/index269.js.map +1 -1
  342. package/dist/index270.js +6 -5
  343. package/dist/index270.js.map +1 -1
  344. package/dist/index271.js +2 -2
  345. package/dist/index272.js +9 -9
  346. package/dist/index273.js +1 -1
  347. package/dist/index274.js +5 -21
  348. package/dist/index274.js.map +1 -1
  349. package/dist/index275.js +3 -5
  350. package/dist/index275.js.map +1 -1
  351. package/dist/index276.js +24 -19
  352. package/dist/index276.js.map +1 -1
  353. package/dist/index277.js +112 -12
  354. package/dist/index277.js.map +1 -1
  355. package/dist/index278.js +16 -5
  356. package/dist/index278.js.map +1 -1
  357. package/dist/index279.js +525 -3
  358. package/dist/index279.js.map +1 -1
  359. package/dist/index280.js +127 -23
  360. package/dist/index280.js.map +1 -1
  361. package/dist/index281.js +129 -108
  362. package/dist/index281.js.map +1 -1
  363. package/dist/index282.js +20 -15
  364. package/dist/index282.js.map +1 -1
  365. package/dist/index283.js +4 -524
  366. package/dist/index283.js.map +1 -1
  367. package/dist/index284.js +18 -127
  368. package/dist/index284.js.map +1 -1
  369. package/dist/index285.js +12 -133
  370. package/dist/index285.js.map +1 -1
  371. package/dist/index286.js +64 -5
  372. package/dist/index286.js.map +1 -1
  373. package/dist/index287.js +69 -6
  374. package/dist/index287.js.map +1 -1
  375. package/dist/index288.js +9 -4
  376. package/dist/index288.js.map +1 -1
  377. package/dist/index289.js +14 -16
  378. package/dist/index289.js.map +1 -1
  379. package/dist/index290.js +65 -8
  380. package/dist/index290.js.map +1 -1
  381. package/dist/index291.js +5 -5
  382. package/dist/index291.js.map +1 -1
  383. package/dist/index292.js +5 -4
  384. package/dist/index292.js.map +1 -1
  385. package/dist/index293.js +4 -546
  386. package/dist/index293.js.map +1 -1
  387. package/dist/index294.js +16 -47
  388. package/dist/index294.js.map +1 -1
  389. package/dist/index295.js +8 -17
  390. package/dist/index295.js.map +1 -1
  391. package/dist/index296.js +5 -6
  392. package/dist/index296.js.map +1 -1
  393. package/dist/index297.js +4 -8
  394. package/dist/index297.js.map +1 -1
  395. package/dist/index298.js +545 -7
  396. package/dist/index298.js.map +1 -1
  397. package/dist/index299.js +47 -9
  398. package/dist/index299.js.map +1 -1
  399. package/dist/index300.js +17 -12
  400. package/dist/index300.js.map +1 -1
  401. package/dist/index301.js +6 -9
  402. package/dist/index301.js.map +1 -1
  403. package/dist/index302.js +8 -13
  404. package/dist/index302.js.map +1 -1
  405. package/dist/index303.js +7 -64
  406. package/dist/index303.js.map +1 -1
  407. package/dist/index304.js +9 -69
  408. package/dist/index304.js.map +1 -1
  409. package/dist/index305.js +13 -9
  410. package/dist/index305.js.map +1 -1
  411. package/dist/index306.js +10 -14
  412. package/dist/index306.js.map +1 -1
  413. package/dist/index307.js +14 -66
  414. package/dist/index307.js.map +1 -1
  415. package/dist/index308.js +3 -4
  416. package/dist/index308.js.map +1 -1
  417. package/dist/index309.js +23 -56
  418. package/dist/index309.js.map +1 -1
  419. package/dist/index31.js +5 -5
  420. package/dist/index310.js +5 -68
  421. package/dist/index310.js.map +1 -1
  422. package/dist/index311.js +55 -30
  423. package/dist/index311.js.map +1 -1
  424. package/dist/index312.js +68 -9
  425. package/dist/index312.js.map +1 -1
  426. package/dist/index313.js +26 -148
  427. package/dist/index313.js.map +1 -1
  428. package/dist/index314.js +9 -108
  429. package/dist/index314.js.map +1 -1
  430. package/dist/index315.js +153 -4
  431. package/dist/index315.js.map +1 -1
  432. package/dist/index316.js +108 -23
  433. package/dist/index316.js.map +1 -1
  434. package/dist/index317.js +12 -15
  435. package/dist/index317.js.map +1 -1
  436. package/dist/index318.js +25 -26
  437. package/dist/index318.js.map +1 -1
  438. package/dist/index319.js +5 -13
  439. package/dist/index319.js.map +1 -1
  440. package/dist/index32.js +24 -24
  441. package/dist/index320.js +22 -6
  442. package/dist/index320.js.map +1 -1
  443. package/dist/index321.js +15 -22
  444. package/dist/index321.js.map +1 -1
  445. package/dist/index322.js +28 -12
  446. package/dist/index322.js.map +1 -1
  447. package/dist/index323.js +12 -27
  448. package/dist/index323.js.map +1 -1
  449. package/dist/index324.js +7 -5
  450. package/dist/index324.js.map +1 -1
  451. package/dist/index33.js +3 -3
  452. package/dist/index35.js +1 -1
  453. package/dist/index39.js +1 -1
  454. package/dist/index40.js +2 -2
  455. package/dist/index43.js +2 -2
  456. package/dist/index44.js +20 -20
  457. package/dist/index48.js +1 -1
  458. package/dist/index49.js +1 -1
  459. package/dist/index52.js +1 -1
  460. package/dist/index53.js +1 -1
  461. package/dist/index54.js +3 -53
  462. package/dist/index54.js.map +1 -1
  463. package/dist/index55.js +7 -2
  464. package/dist/index55.js.map +1 -1
  465. package/dist/index56.js +48 -2
  466. package/dist/index56.js.map +1 -1
  467. package/dist/index57.js +26 -5
  468. package/dist/index57.js.map +1 -1
  469. package/dist/index58.js +50 -7
  470. package/dist/index58.js.map +1 -1
  471. package/dist/index59.js +7 -5
  472. package/dist/index59.js.map +1 -1
  473. package/dist/index6.js +130 -121
  474. package/dist/index6.js.map +1 -1
  475. package/dist/index60.js +15 -2
  476. package/dist/index60.js.map +1 -1
  477. package/dist/index61.js +134 -2
  478. package/dist/index61.js.map +1 -1
  479. package/dist/index62.js +10 -6
  480. package/dist/index62.js.map +1 -1
  481. package/dist/index63.js +215 -32
  482. package/dist/index63.js.map +1 -1
  483. package/dist/index64.js +13 -27
  484. package/dist/index64.js.map +1 -1
  485. package/dist/index65.js +33 -7
  486. package/dist/index65.js.map +1 -1
  487. package/dist/index66.js +46 -11
  488. package/dist/index66.js.map +1 -1
  489. package/dist/index67.js +8 -205
  490. package/dist/index67.js.map +1 -1
  491. package/dist/index68.js +49 -3
  492. package/dist/index68.js.map +1 -1
  493. package/dist/index69.js +4 -48
  494. package/dist/index69.js.map +1 -1
  495. package/dist/index70.js +4 -49
  496. package/dist/index70.js.map +1 -1
  497. package/dist/index71.js +28 -8
  498. package/dist/index71.js.map +1 -1
  499. package/dist/index72.js +50 -15
  500. package/dist/index72.js.map +1 -1
  501. package/dist/index73.js +8 -133
  502. package/dist/index73.js.map +1 -1
  503. package/dist/index74.js +5 -10
  504. package/dist/index74.js.map +1 -1
  505. package/dist/index75.js +7 -216
  506. package/dist/index75.js.map +1 -1
  507. package/dist/index76.js +6 -13
  508. package/dist/index76.js.map +1 -1
  509. package/dist/index77.js +2 -47
  510. package/dist/index77.js.map +1 -1
  511. package/dist/index78.js +2 -50
  512. package/dist/index78.js.map +1 -1
  513. package/dist/index79.js +53 -3
  514. package/dist/index79.js.map +1 -1
  515. package/dist/index80.js +2 -6
  516. package/dist/index80.js.map +1 -1
  517. package/dist/index81.js +2 -28
  518. package/dist/index81.js.map +1 -1
  519. package/dist/index82.js +12 -50
  520. package/dist/index82.js.map +1 -1
  521. package/dist/index83.js +205 -9
  522. package/dist/index83.js.map +1 -1
  523. package/dist/index84.js +46 -5
  524. package/dist/index84.js.map +1 -1
  525. package/dist/index85.js +199 -62
  526. package/dist/index85.js.map +1 -1
  527. package/dist/index86.js +22 -2
  528. package/dist/index86.js.map +1 -1
  529. package/dist/index87.js +24 -363
  530. package/dist/index87.js.map +1 -1
  531. package/dist/index88.js +381 -243
  532. package/dist/index88.js.map +1 -1
  533. package/dist/index89.js +41 -55
  534. package/dist/index89.js.map +1 -1
  535. package/dist/index90.js +5 -46
  536. package/dist/index90.js.map +1 -1
  537. package/dist/index91.js +56 -157
  538. package/dist/index91.js.map +1 -1
  539. package/dist/index92.js +2 -110
  540. package/dist/index92.js.map +1 -1
  541. package/dist/index93.js +363 -24
  542. package/dist/index93.js.map +1 -1
  543. package/dist/index94.js +262 -8
  544. package/dist/index94.js.map +1 -1
  545. package/dist/index95.js +60 -4
  546. package/dist/index95.js.map +1 -1
  547. package/dist/index96.js +46 -5
  548. package/dist/index96.js.map +1 -1
  549. package/dist/index97.js +169 -4
  550. package/dist/index97.js.map +1 -1
  551. package/dist/index98.js +102 -459
  552. package/dist/index98.js.map +1 -1
  553. package/dist/index99.js +24 -185
  554. package/dist/index99.js.map +1 -1
  555. package/package.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"useScrollPagination.d.ts","sourceRoot":"","sources":["../../src/helpers/useScrollPagination.ts"],"names":[],"mappings":"AAAA,OAAO,EAA+B,KAAK,SAAS,EAAE,MAAM,OAAO,CAAA;AAGnE,KAAK,YAAY,CAAC,CAAC,IAAI,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,CAAA;AAErC,KAAK,aAAa,GAAG,MAAM,YAAY,CAAC,OAAO,GAAG,IAAI,CAAC,CAAA;AAEvD,MAAM,MAAM,0BAA0B,GAAG;IACvC,YAAY,EAAE,SAAS,CAAC,WAAW,GAAG,IAAI,CAAC,CAAA;IAC3C,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,eAAe,CAAC,EAAE,OAAO,CAAA;IACzB,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,cAAc,CAAC,EAAE,aAAa,CAAA;IAC9B,YAAY,CAAC,EAAE,aAAa,CAAA;IAC5B,oBAAoB,CAAC,EAAE,MAAM,CAAA;IAC7B,kBAAkB,CAAC,EAAE,MAAM,CAAA;IAC3B,0BAA0B,CAAC,EAAE,OAAO,CAAA;CACrC,CAAA;AAED,MAAM,MAAM,yBAAyB,GAAG;IACtC,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E,CAAC,IAAI,EAAE,OAAO,GAAG,IAAI,KAAK,IAAI,CAAA;IAC9C,kBAAkB,EAAE,OAAO,CAAA;IAC3B,cAAc,EAAE,OAAO,CAAA;CACxB,CAAA;AAmBD,wBAAgB,mBAAmB,CAAC,EAClC,YAAY,EACZ,OAAc,EACd,eAAuB,EACvB,WAAmB,EACnB,cAAc,EACd,YAAY,EACZ,oBAA0B,EAC1B,kBAAwB,EACxB,0BAAiC,GAClC,EAAE,0BAA0B,GAAG,yBAAyB,CA4NxD"}
package/dist/index100.js CHANGED
@@ -1,111 +1,11 @@
1
- function a(e) {
2
- "@babel/helpers - typeof";
3
- return a = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
4
- return typeof t;
5
- } : function(t) {
6
- return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
7
- }, a(e);
8
- }
9
- function l(e, t) {
10
- if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");
11
- }
12
- function s(e, t) {
13
- for (var i = 0; i < t.length; i++) {
14
- var n = t[i];
15
- n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(e, f(n.key), n);
16
- }
17
- }
18
- function u(e, t, i) {
19
- return t && s(e.prototype, t), Object.defineProperty(e, "prototype", { writable: !1 }), e;
20
- }
21
- function f(e) {
22
- var t = g(e, "string");
23
- return a(t) == "symbol" ? t : t + "";
24
- }
25
- function g(e, t) {
26
- if (a(e) != "object" || !e) return e;
27
- var i = e[Symbol.toPrimitive];
28
- if (i !== void 0) {
29
- var n = i.call(e, t);
30
- if (a(n) != "object") return n;
31
- throw new TypeError("@@toPrimitive must return a primitive value.");
32
- }
33
- return String(e);
34
- }
35
- var h = /* @__PURE__ */ (function() {
36
- function e(t) {
37
- var i = t.onCountryChange, n = t.onCallingCodeChange;
38
- l(this, e), this.onCountryChange = i, this.onCallingCodeChange = n;
39
- }
40
- return u(e, [{
41
- key: "reset",
42
- value: function(i) {
43
- var n = i.country, o = i.callingCode;
44
- this.international = !1, this.missingPlus = !1, this.IDDPrefix = void 0, this.callingCode = void 0, this.digits = "", this.resetNationalSignificantNumber(), this.initCountryAndCallingCode(n, o);
45
- }
46
- }, {
47
- key: "resetNationalSignificantNumber",
48
- value: function() {
49
- this.nationalSignificantNumber = this.getNationalDigits(), this.nationalSignificantNumberIsModified = !1, this.nationalPrefix = void 0, this.carrierCode = void 0, this.prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix = void 0;
50
- }
51
- }, {
52
- key: "update",
53
- value: function(i) {
54
- for (var n = 0, o = Object.keys(i); n < o.length; n++) {
55
- var r = o[n];
56
- this[r] = i[r];
57
- }
58
- }
59
- }, {
60
- key: "initCountryAndCallingCode",
61
- value: function(i, n) {
62
- this.setCountry(i), this.setCallingCode(n);
63
- }
64
- }, {
65
- key: "setCountry",
66
- value: function(i) {
67
- this.country = i, this.onCountryChange(i);
68
- }
69
- }, {
70
- key: "setCallingCode",
71
- value: function(i) {
72
- this.callingCode = i, this.onCallingCodeChange(i, this.country);
73
- }
74
- }, {
75
- key: "startInternationalNumber",
76
- value: function(i, n) {
77
- this.international = !0, this.initCountryAndCallingCode(i, n);
78
- }
79
- }, {
80
- key: "appendDigits",
81
- value: function(i) {
82
- this.digits += i;
83
- }
84
- }, {
85
- key: "appendNationalSignificantNumberDigits",
86
- value: function(i) {
87
- this.nationalSignificantNumber += i;
88
- }
89
- /**
90
- * Returns the part of `this.digits` that corresponds to the national number.
91
- * Basically, all digits that have been input by the user, except for the
92
- * international prefix and the country calling code part
93
- * (if the number is an international one).
94
- * @return {string}
95
- */
96
- }, {
97
- key: "getNationalDigits",
98
- value: function() {
99
- return this.international ? this.digits.slice((this.IDDPrefix ? this.IDDPrefix.length : 0) + (this.callingCode ? this.callingCode.length : 0)) : this.digits;
100
- }
101
- }, {
102
- key: "getDigitsWithoutInternationalPrefix",
103
- value: function() {
104
- return this.international && this.IDDPrefix ? this.digits.slice(this.IDDPrefix.length) : this.digits;
105
- }
106
- }]);
107
- })();
1
+ var v = 2, A = 17, E = 3, _ = "0-90-9٠-٩۰-۹", F = "-‐-―−ー-", u = "//", a = "..", S = "  ­​⁠ ", r = "()()[]\\[\\]", c = "~⁓∼~", N = "".concat(F).concat(u).concat(a).concat(S).concat(r).concat(c), T = "++";
108
2
  export {
109
- h as default
3
+ E as MAX_LENGTH_COUNTRY_CODE,
4
+ A as MAX_LENGTH_FOR_NSN,
5
+ v as MIN_LENGTH_FOR_NSN,
6
+ T as PLUS_CHARS,
7
+ _ as VALID_DIGITS,
8
+ N as VALID_PUNCTUATION,
9
+ S as WHITESPACE
110
10
  };
111
11
  //# sourceMappingURL=index100.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index100.js","sources":["../../../node_modules/libphonenumber-js/es6/AsYouTypeState.js"],"sourcesContent":["function _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\"); }\nfunction _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }\nfunction _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", { writable: !1 }), e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n// This \"state\" object simply holds the state of the \"AsYouType\" parser:\n//\n// * `country?: string` — The exact country of the phone number, if it could be determined.\n// When inputting a phone number in \"international\" format, it will derive the `country` from \"country calling code\" and the phone number digits.\n// When inputting a phone number in \"national\" format, it will derive the `country` from `defaultCountry` that was specified when creating the `AsYouType` formatter.\n// Sidenote: If `USE_NON_GEOGRAPHIC_COUNTRY_CODE` flag was `true`, then for \"non-geographic phone numbers\" `state.country` would've been \"001\".\n// * `callingCode?: string` — \"Country calling code\" that has been extracted from the input phone number.\n// When inputting a phone number in \"international\" format, it will extract the \"country calling code\" from the digits that follow the \"+\" character.\n// When inputting a phone number in \"national\" format, `callingCode` will be `undefined`.\n// Sidenote: `state.callingCode` is therefore independent from `state.country` and there could be situations when `state.country` is defined by `state.callingCode` is not — that would be when inputting a phone number not in \"international\" format.\n// * `digits: string` — Phone number digits that have been input so far, including the \"+\" character, if present. In case of inputting non-arabic digits, those will be converted to arabic ones.\n// * `international: boolean` — Whether the phone number is being input in \"international\" format, i.e. with a \"+\" character.\n// * `missingPlus: boolean` — Whether it's a phone number in \"international\" format that is missing the leading \"+\" character for some reason — apparently, Google thinks that it's a common mistake when inputting a phone number.\n// * `IDDPrefix?: string` — An \"IDD prefix\", when the phone number is being input in an \"out-of-country dialing\" format. https://wikitravel.org/en/International_dialling_prefix\n// * `carrierCode?: string` — A \"carrier code\", if the phone number contains it. Normally, those can only be present in Colombia or Brazil, and only when calling from mobile phones to fixed-line numbers.\n// * `nationalPrefix?: string` — \"National prefix\", if present in the phone number input.\n// * `nationalSignificantNumber?: string` — National (significant) number digits that have been input so far.\n// * `nationalSignificantNumberIsModified: boolean` — Tells if the parsed national (significant) number is present as-is in the input string. For example, when inputting \"0343515551212999\" Argentinian mobile number, the parsed national (significant) number is \"93435551212999\". There, one can see how it stripped \"0\" national prefix and prepended a \"9\", because that's how it is instructed to do in Argentina's metadata. So in the described example, the parsed national (significant) number is not present as-is in the input string. Instead, it's \"modified\" in the input string. https://gitlab.com/caamphetamine/libphonenumber-js/-/blob/master/METADATA.md#national_prefix_for_parsing--national_prefix_transform_rule\n// * `prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix?: string` — In some countries, a phone number could have a prefix that is not a \"national prefix\" but rather some other type of \"utility\" prefix.\n// For example, when calling within Australia, one could prepend `1831` prefix to hide caller's phone number.\n// https://gitlab.com/catamphetamine/libphonenumber-js/-/blob/master/METADATA.md#national_prefix_for_parsing--national_prefix_transform_rule\n//\nvar AsYouTypeState = /*#__PURE__*/function () {\n function AsYouTypeState(_ref) {\n var onCountryChange = _ref.onCountryChange,\n onCallingCodeChange = _ref.onCallingCodeChange;\n _classCallCheck(this, AsYouTypeState);\n this.onCountryChange = onCountryChange;\n this.onCallingCodeChange = onCallingCodeChange;\n }\n return _createClass(AsYouTypeState, [{\n key: \"reset\",\n value: function reset(_ref2) {\n var country = _ref2.country,\n callingCode = _ref2.callingCode;\n this.international = false;\n this.missingPlus = false;\n this.IDDPrefix = undefined;\n this.callingCode = undefined;\n this.digits = '';\n this.resetNationalSignificantNumber();\n this.initCountryAndCallingCode(country, callingCode);\n }\n }, {\n key: \"resetNationalSignificantNumber\",\n value: function resetNationalSignificantNumber() {\n this.nationalSignificantNumber = this.getNationalDigits();\n this.nationalSignificantNumberIsModified = false;\n this.nationalPrefix = undefined;\n this.carrierCode = undefined;\n this.prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix = undefined;\n }\n }, {\n key: \"update\",\n value: function update(properties) {\n for (var _i = 0, _Object$keys = Object.keys(properties); _i < _Object$keys.length; _i++) {\n var key = _Object$keys[_i];\n this[key] = properties[key];\n }\n }\n }, {\n key: \"initCountryAndCallingCode\",\n value: function initCountryAndCallingCode(country, callingCode) {\n this.setCountry(country);\n this.setCallingCode(callingCode);\n }\n }, {\n key: \"setCountry\",\n value: function setCountry(country) {\n this.country = country;\n this.onCountryChange(country);\n }\n }, {\n key: \"setCallingCode\",\n value: function setCallingCode(callingCode) {\n this.callingCode = callingCode;\n this.onCallingCodeChange(callingCode, this.country);\n }\n }, {\n key: \"startInternationalNumber\",\n value: function startInternationalNumber(country, callingCode) {\n // Prepend the `+` to parsed input.\n this.international = true;\n // If a default country was set then reset it\n // because an explicitly international phone\n // number is being entered.\n this.initCountryAndCallingCode(country, callingCode);\n }\n }, {\n key: \"appendDigits\",\n value: function appendDigits(nextDigits) {\n this.digits += nextDigits;\n }\n }, {\n key: \"appendNationalSignificantNumberDigits\",\n value: function appendNationalSignificantNumberDigits(nextDigits) {\n this.nationalSignificantNumber += nextDigits;\n }\n\n /**\r\n * Returns the part of `this.digits` that corresponds to the national number.\r\n * Basically, all digits that have been input by the user, except for the\r\n * international prefix and the country calling code part\r\n * (if the number is an international one).\r\n * @return {string}\r\n */\n }, {\n key: \"getNationalDigits\",\n value: function getNationalDigits() {\n if (this.international) {\n return this.digits.slice((this.IDDPrefix ? this.IDDPrefix.length : 0) + (this.callingCode ? this.callingCode.length : 0));\n }\n return this.digits;\n }\n }, {\n key: \"getDigitsWithoutInternationalPrefix\",\n value: function getDigitsWithoutInternationalPrefix() {\n if (this.international) {\n if (this.IDDPrefix) {\n return this.digits.slice(this.IDDPrefix.length);\n }\n }\n return this.digits;\n }\n }]);\n}();\nexport { AsYouTypeState as default };\n//# sourceMappingURL=AsYouTypeState.js.map"],"names":["_typeof","o","_classCallCheck","a","n","_defineProperties","r","t","_toPropertyKey","_createClass","i","_toPrimitive","e","AsYouTypeState","_ref","onCountryChange","onCallingCodeChange","_ref2","country","callingCode","properties","_i","_Object$keys","key","nextDigits"],"mappings":"AAAA,SAASA,EAAQC,GAAG;AAAE;AAA2B,SAAOD,IAAwB,OAAO,UAArB,cAA2C,OAAO,OAAO,YAA1B,WAAqC,SAAUC,GAAG;AAAE,WAAO,OAAOA;AAAA,EAAG,IAAI,SAAUA,GAAG;AAAE,WAAOA,KAAmB,OAAO,UAArB,cAA+BA,EAAE,gBAAgB,UAAUA,MAAM,OAAO,YAAY,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IAIrB,KAAK,0BAA0BD,GAASC,CAAW;AAAA,IACrD;AAAA,EACJ,GAAK;AAAA,IACD,KAAK;AAAA,IACL,OAAO,SAAsBK,GAAY;AACvC,WAAK,UAAUA;AAAA,IACjB;AAAA,EACJ,GAAK;AAAA,IACD,KAAK;AAAA,IACL,OAAO,SAA+CA,GAAY;AAChE,WAAK,6BAA6BA;AAAA,IACpC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EASJ,GAAK;AAAA,IACD,KAAK;AAAA,IACL,OAAO,WAA6B;AAClC,aAAI,KAAK,gBACA,KAAK,OAAO,OAAO,KAAK,YAAY,KAAK,UAAU,SAAS,MAAM,KAAK,cAAc,KAAK,YAAY,SAAS,EAAE,IAEnH,KAAK;AAAA,IACd;AAAA,EACJ,GAAK;AAAA,IACD,KAAK;AAAA,IACL,OAAO,WAA+C;AACpD,aAAI,KAAK,iBACH,KAAK,YACA,KAAK,OAAO,MAAM,KAAK,UAAU,MAAM,IAG3C,KAAK;AAAA,IACd;AAAA,EACJ,CAAG,CAAC;AACJ,GAAC;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index100.js","sources":["../../../node_modules/libphonenumber-js/es6/constants.js"],"sourcesContent":["// The minimum length of the national significant number.\nexport var MIN_LENGTH_FOR_NSN = 2;\n\n// The ITU says the maximum length should be 15,\n// but one can find longer numbers in Germany.\nexport var MAX_LENGTH_FOR_NSN = 17;\n\n// The maximum length of the country calling code.\nexport var MAX_LENGTH_COUNTRY_CODE = 3;\n\n// Digits accepted in phone numbers\n// (ascii, fullwidth, arabic-indic, and eastern arabic digits).\nexport var VALID_DIGITS = \"0-9\\uFF10-\\uFF19\\u0660-\\u0669\\u06F0-\\u06F9\";\n\n// `DASHES` will be right after the opening square bracket of the \"character class\"\nvar DASHES = \"-\\u2010-\\u2015\\u2212\\u30FC\\uFF0D\";\nvar SLASHES = \"\\uFF0F/\";\nvar DOTS = \"\\uFF0E.\";\nexport var WHITESPACE = \" \\xA0\\xAD\\u200B\\u2060\\u3000\";\nvar BRACKETS = \"()\\uFF08\\uFF09\\uFF3B\\uFF3D\\\\[\\\\]\";\n// export const OPENING_BRACKETS = '(\\uFF08\\uFF3B\\\\\\['\nvar TILDES = \"~\\u2053\\u223C\\uFF5E\";\n\n// Regular expression of acceptable punctuation found in phone numbers. This\n// excludes punctuation found as a leading character only. This consists of dash\n// characters, white space characters, full stops, slashes, square brackets,\n// parentheses and tildes. Full-width variants are also present.\nexport var VALID_PUNCTUATION = \"\".concat(DASHES).concat(SLASHES).concat(DOTS).concat(WHITESPACE).concat(BRACKETS).concat(TILDES);\nexport var PLUS_CHARS = \"+\\uFF0B\";\n// const LEADING_PLUS_CHARS_PATTERN = new RegExp('^[' + PLUS_CHARS + ']+')\n//# sourceMappingURL=constants.js.map"],"names":["MIN_LENGTH_FOR_NSN","MAX_LENGTH_FOR_NSN","MAX_LENGTH_COUNTRY_CODE","VALID_DIGITS","DASHES","SLASHES","DOTS","WHITESPACE","BRACKETS","TILDES","VALID_PUNCTUATION","PLUS_CHARS"],"mappings":"AACU,IAACA,IAAqB,GAIrBC,IAAqB,IAGrBC,IAA0B,GAI1BC,IAAe,gBAGtBC,IAAS,WACTC,IAAU,MACVC,IAAO,MACAC,IAAa,UACpBC,IAAW,gBAEXC,IAAS,QAMFC,IAAoB,GAAG,OAAON,CAAM,EAAE,OAAOC,CAAO,EAAE,OAAOC,CAAI,EAAE,OAAOC,CAAU,EAAE,OAAOC,CAAQ,EAAE,OAAOC,CAAM,GACpHE,IAAa;","x_google_ignoreList":[0]}
package/dist/index101.js CHANGED
@@ -1,266 +1,8 @@
1
- import b from "./index189.js";
2
- import y from "./index205.js";
3
- import m from "./index206.js";
4
- import C from "./index207.js";
5
- import v from "./index92.js";
6
- import { VALID_PUNCTUATION as s, VALID_DIGITS as g, PLUS_CHARS as p } from "./index94.js";
7
- function d(i) {
8
- "@babel/helpers - typeof";
9
- return d = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(n) {
10
- return typeof n;
11
- } : function(n) {
12
- return n && typeof Symbol == "function" && n.constructor === Symbol && n !== Symbol.prototype ? "symbol" : typeof n;
13
- }, d(i);
14
- }
15
- function h(i, n) {
16
- return I(i) || P(i, n) || S(i, n) || x();
17
- }
18
- function x() {
19
- throw new TypeError(`Invalid attempt to destructure non-iterable instance.
20
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
21
- }
22
- function S(i, n) {
23
- if (i) {
24
- if (typeof i == "string") return N(i, n);
25
- var t = {}.toString.call(i).slice(8, -1);
26
- return t === "Object" && i.constructor && (t = i.constructor.name), t === "Map" || t === "Set" ? Array.from(i) : t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? N(i, n) : void 0;
27
- }
28
- }
29
- function N(i, n) {
30
- (n == null || n > i.length) && (n = i.length);
31
- for (var t = 0, e = Array(n); t < n; t++) e[t] = i[t];
32
- return e;
33
- }
34
- function P(i, n) {
35
- var t = i == null ? null : typeof Symbol < "u" && i[Symbol.iterator] || i["@@iterator"];
36
- if (t != null) {
37
- var e, r, a, o, u = [], l = !0, c = !1;
38
- try {
39
- if (a = (t = t.call(i)).next, n !== 0) for (; !(l = (e = a.call(t)).done) && (u.push(e.value), u.length !== n); l = !0) ;
40
- } catch (f) {
41
- c = !0, r = f;
42
- } finally {
43
- try {
44
- if (!l && t.return != null && (o = t.return(), Object(o) !== o)) return;
45
- } finally {
46
- if (c) throw r;
47
- }
48
- }
49
- return u;
50
- }
51
- }
52
- function I(i) {
53
- if (Array.isArray(i)) return i;
54
- }
55
- function A(i, n) {
56
- if (!(i instanceof n)) throw new TypeError("Cannot call a class as a function");
57
- }
58
- function _(i, n) {
59
- for (var t = 0; t < n.length; t++) {
60
- var e = n[t];
61
- e.enumerable = e.enumerable || !1, e.configurable = !0, "value" in e && (e.writable = !0), Object.defineProperty(i, T(e.key), e);
62
- }
63
- }
64
- function E(i, n, t) {
65
- return n && _(i.prototype, n), Object.defineProperty(i, "prototype", { writable: !1 }), i;
66
- }
67
- function T(i) {
68
- var n = D(i, "string");
69
- return d(n) == "symbol" ? n : n + "";
70
- }
71
- function D(i, n) {
72
- if (d(i) != "object" || !i) return i;
73
- var t = i[Symbol.toPrimitive];
74
- if (t !== void 0) {
75
- var e = t.call(i, n);
76
- if (d(e) != "object") return e;
77
- throw new TypeError("@@toPrimitive must return a primitive value.");
78
- }
79
- return String(i);
80
- }
81
- var R = "[" + s + g + "]+", F = new RegExp("^" + R + "$", "i"), k = "(?:[" + p + "][" + s + g + "]*|[" + s + g + "]+)", O = new RegExp("[^" + s + g + "]+.*$"), M = /[^\d\[\]]/, $ = /* @__PURE__ */ (function() {
82
- function i(n) {
83
- var t = n.defaultCountry, e = n.defaultCallingCode, r = n.metadata, a = n.onNationalSignificantNumberChange;
84
- A(this, i), this.defaultCountry = t, this.defaultCallingCode = e, this.metadata = r, this.onNationalSignificantNumberChange = a;
85
- }
86
- return E(i, [{
87
- key: "input",
88
- value: function(t, e) {
89
- var r = j(t), a = h(r, 2), o = a[0], u = a[1], l = v(o), c;
90
- return u && (e.digits || (e.startInternationalNumber(void 0, void 0), l || (c = !0))), l && this.inputDigits(l, e), {
91
- digits: l,
92
- justLeadingPlus: c
93
- };
94
- }
95
- /**
96
- * Inputs "next" phone number digits.
97
- * @param {string} digits
98
- * @return {string} [formattedNumber] Formatted national phone number (if it can be formatted at this stage). Returning `undefined` means "don't format the national phone number at this stage".
99
- */
100
- }, {
101
- key: "inputDigits",
102
- value: function(t, e) {
103
- var r = e.digits, a = r.length < 3 && r.length + t.length >= 3;
104
- if (e.appendDigits(t), a && this.extractIddPrefix(e), this.isWaitingForCountryCallingCode(e)) {
105
- if (!this.extractCountryCallingCode(e))
106
- return;
107
- } else
108
- e.appendNationalSignificantNumberDigits(t);
109
- e.international || this.hasExtractedNationalSignificantNumber || this.extractNationalSignificantNumber(e.getNationalDigits(), function(o) {
110
- return e.update(o);
111
- });
112
- }
113
- }, {
114
- key: "isWaitingForCountryCallingCode",
115
- value: function(t) {
116
- var e = t.international, r = t.callingCode;
117
- return e && !r;
118
- }
119
- // Extracts a country calling code from a number
120
- // being entered in internatonal format.
121
- }, {
122
- key: "extractCountryCallingCode",
123
- value: function(t) {
124
- var e = b("+" + t.getDigitsWithoutInternationalPrefix(), t.country, this.defaultCountry, this.defaultCallingCode, this.metadata.metadata), r = e.countryCallingCode, a = e.number;
125
- if (r)
126
- return t.setCallingCode(r), t.update({
127
- nationalSignificantNumber: a
128
- }), !0;
129
- }
130
- }, {
131
- key: "reset",
132
- value: function(t) {
133
- if (t) {
134
- this.hasSelectedNumberingPlan = !0;
135
- var e = t._nationalPrefixForParsing();
136
- this.couldPossiblyExtractAnotherNationalSignificantNumber = e && M.test(e);
137
- } else
138
- this.hasSelectedNumberingPlan = void 0, this.couldPossiblyExtractAnotherNationalSignificantNumber = void 0;
139
- }
140
- /**
141
- * Extracts a national (significant) number from user input.
142
- * Google's library is different in that it only applies `national_prefix_for_parsing`
143
- * and doesn't apply `national_prefix_transform_rule` after that.
144
- * https://github.com/google/libphonenumber/blob/a3d70b0487875475e6ad659af404943211d26456/java/libphonenumber/src/com/google/i18n/phonenumbers/AsYouTypeFormatter.java#L539
145
- * @return {boolean} [extracted]
146
- */
147
- }, {
148
- key: "extractNationalSignificantNumber",
149
- value: function(t, e) {
150
- if (this.hasSelectedNumberingPlan) {
151
- var r = m(t, this.metadata), a = r.nationalPrefix, o = r.nationalNumber, u = r.carrierCode;
152
- if (o !== t)
153
- return this.onExtractedNationalNumber(a, u, o, t, e), !0;
154
- }
155
- }
156
- /**
157
- * In Google's code this function is called "attempt to extract longer NDD".
158
- * "Some national prefixes are a substring of others", they say.
159
- * @return {boolean} [result] — Returns `true` if extracting a national prefix produced different results from what they were.
160
- */
161
- }, {
162
- key: "extractAnotherNationalSignificantNumber",
163
- value: function(t, e, r) {
164
- if (!this.hasExtractedNationalSignificantNumber)
165
- return this.extractNationalSignificantNumber(t, r);
166
- if (this.couldPossiblyExtractAnotherNationalSignificantNumber) {
167
- var a = m(t, this.metadata), o = a.nationalPrefix, u = a.nationalNumber, l = a.carrierCode;
168
- if (u !== e)
169
- return this.onExtractedNationalNumber(o, l, u, t, r), !0;
170
- }
171
- }
172
- }, {
173
- key: "onExtractedNationalNumber",
174
- value: function(t, e, r, a, o) {
175
- var u = !1, l, c = a.lastIndexOf(r);
176
- if (c < 0 || c !== a.length - r.length)
177
- u = !0;
178
- else {
179
- var f = a.slice(0, c);
180
- f && f !== t && (l = f);
181
- }
182
- o({
183
- nationalPrefix: t,
184
- carrierCode: e,
185
- nationalSignificantNumber: r,
186
- nationalSignificantNumberIsModified: u,
187
- prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix: l
188
- }), this.hasExtractedNationalSignificantNumber = !0, this.onNationalSignificantNumberChange();
189
- }
190
- }, {
191
- key: "reExtractNationalSignificantNumber",
192
- value: function(t) {
193
- if (this.extractAnotherNationalSignificantNumber(t.getNationalDigits(), t.nationalSignificantNumber, function(e) {
194
- return t.update(e);
195
- }))
196
- return !0;
197
- if (this.extractIddPrefix(t))
198
- return this.extractCallingCodeAndNationalSignificantNumber(t), !0;
199
- if (this.fixMissingPlus(t))
200
- return this.extractCallingCodeAndNationalSignificantNumber(t), !0;
201
- }
202
- }, {
203
- key: "extractIddPrefix",
204
- value: function(t) {
205
- var e = t.international, r = t.IDDPrefix, a = t.digits;
206
- if (t.nationalSignificantNumber, !(e || r)) {
207
- var o = C(a, this.defaultCountry, this.defaultCallingCode, this.metadata.metadata);
208
- if (o !== void 0 && o !== a)
209
- return t.update({
210
- IDDPrefix: a.slice(0, a.length - o.length)
211
- }), this.startInternationalNumber(t, {
212
- country: void 0,
213
- callingCode: void 0
214
- }), !0;
215
- }
216
- }
217
- }, {
218
- key: "fixMissingPlus",
219
- value: function(t) {
220
- if (!t.international) {
221
- var e = y(t.digits, t.country, this.defaultCountry, this.defaultCallingCode, this.metadata.metadata), r = e.countryCallingCode;
222
- if (r)
223
- return t.update({
224
- missingPlus: !0
225
- }), this.startInternationalNumber(t, {
226
- country: t.country,
227
- callingCode: r
228
- }), !0;
229
- }
230
- }
231
- }, {
232
- key: "startInternationalNumber",
233
- value: function(t, e) {
234
- var r = e.country, a = e.callingCode;
235
- t.startInternationalNumber(r, a), t.nationalSignificantNumber && (t.resetNationalSignificantNumber(), this.onNationalSignificantNumberChange(), this.hasExtractedNationalSignificantNumber = void 0);
236
- }
237
- }, {
238
- key: "extractCallingCodeAndNationalSignificantNumber",
239
- value: function(t) {
240
- this.extractCountryCallingCode(t) && this.extractNationalSignificantNumber(t.getNationalDigits(), function(e) {
241
- return t.update(e);
242
- });
243
- }
244
- }]);
245
- })();
246
- function L(i) {
247
- var n = i.search(k);
248
- if (!(n < 0)) {
249
- i = i.slice(n);
250
- var t;
251
- return i[0] === "+" && (t = !0, i = i.slice(1)), i = i.replace(O, ""), t && (i = "+" + i), i;
252
- }
253
- }
254
- function w(i) {
255
- var n = L(i) || "";
256
- return n[0] === "+" ? [n.slice(1), !0] : [n];
257
- }
258
- function j(i) {
259
- var n = w(i), t = h(n, 2), e = t[0], r = t[1];
260
- return F.test(e) || (e = ""), [e, r];
1
+ import { VALID_PUNCTUATION as e } from "./index100.js";
2
+ function a(t) {
3
+ return t.replace(new RegExp("[".concat(e, "]+"), "g"), " ").trim();
261
4
  }
262
5
  export {
263
- $ as default,
264
- j as extractFormattedDigitsAndPlus
6
+ a as default
265
7
  };
266
8
  //# sourceMappingURL=index101.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index101.js","sources":["../../../node_modules/libphonenumber-js/es6/AsYouTypeParser.js"],"sourcesContent":["function _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(r, a) { if (r) { if (\"string\" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return \"Object\" === t && r.constructor && (t = r.constructor.name), \"Map\" === t || \"Set\" === t ? Array.from(r) : \"Arguments\" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }\nfunction _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(r) { if (Array.isArray(r)) return r; }\nfunction _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\"); }\nfunction _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }\nfunction _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", { writable: !1 }), e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nimport _extractCountryCallingCode from './helpers/extractCountryCallingCode.js';\nimport extractCountryCallingCodeFromInternationalNumberWithoutPlusSign from './helpers/extractCountryCallingCodeFromInternationalNumberWithoutPlusSign.js';\nimport extractNationalNumberFromPossiblyIncompleteNumber from './helpers/extractNationalNumberFromPossiblyIncompleteNumber.js';\nimport stripIddPrefix from './helpers/stripIddPrefix.js';\nimport parseDigits from './helpers/parseDigits.js';\nimport { VALID_DIGITS, VALID_PUNCTUATION, PLUS_CHARS } from './constants.js';\nvar VALID_FORMATTED_PHONE_NUMBER_DIGITS_PART = '[' + VALID_PUNCTUATION + VALID_DIGITS + ']+';\nvar VALID_FORMATTED_PHONE_NUMBER_DIGITS_PART_PATTERN = new RegExp('^' + VALID_FORMATTED_PHONE_NUMBER_DIGITS_PART + '$', 'i');\nvar VALID_FORMATTED_PHONE_NUMBER_PART = '(?:' + '[' + PLUS_CHARS + ']' + '[' + VALID_PUNCTUATION + VALID_DIGITS + ']*' + '|' + '[' + VALID_PUNCTUATION + VALID_DIGITS + ']+' + ')';\nvar AFTER_PHONE_NUMBER_DIGITS_END_PATTERN = new RegExp('[^' + VALID_PUNCTUATION + VALID_DIGITS + ']+' + '.*' + '$');\n\n// Tests whether `national_prefix_for_parsing` could match\n// different national prefixes.\n// Matches anything that's not a digit or a square bracket.\nvar COMPLEX_NATIONAL_PREFIX = /[^\\d\\[\\]]/;\nvar AsYouTypeParser = /*#__PURE__*/function () {\n function AsYouTypeParser(_ref) {\n var defaultCountry = _ref.defaultCountry,\n defaultCallingCode = _ref.defaultCallingCode,\n metadata = _ref.metadata,\n onNationalSignificantNumberChange = _ref.onNationalSignificantNumberChange;\n _classCallCheck(this, AsYouTypeParser);\n this.defaultCountry = defaultCountry;\n this.defaultCallingCode = defaultCallingCode;\n this.metadata = metadata;\n this.onNationalSignificantNumberChange = onNationalSignificantNumberChange;\n }\n return _createClass(AsYouTypeParser, [{\n key: \"input\",\n value: function input(text, state) {\n var _extractFormattedDigi = extractFormattedDigitsAndPlus(text),\n _extractFormattedDigi2 = _slicedToArray(_extractFormattedDigi, 2),\n formattedDigits = _extractFormattedDigi2[0],\n hasPlus = _extractFormattedDigi2[1];\n var digits = parseDigits(formattedDigits);\n // Checks for a special case: just a leading `+` has been entered.\n var justLeadingPlus;\n if (hasPlus) {\n if (!state.digits) {\n state.startInternationalNumber(undefined, undefined);\n if (!digits) {\n justLeadingPlus = true;\n }\n }\n }\n if (digits) {\n this.inputDigits(digits, state);\n }\n return {\n digits: digits,\n justLeadingPlus: justLeadingPlus\n };\n }\n\n /**\r\n * Inputs \"next\" phone number digits.\r\n * @param {string} digits\r\n * @return {string} [formattedNumber] Formatted national phone number (if it can be formatted at this stage). Returning `undefined` means \"don't format the national phone number at this stage\".\r\n */\n }, {\n key: \"inputDigits\",\n value: function inputDigits(nextDigits, state) {\n var digits = state.digits;\n var hasReceivedThreeLeadingDigits = digits.length < 3 && digits.length + nextDigits.length >= 3;\n\n // Append phone number digits.\n state.appendDigits(nextDigits);\n\n // Attempt to extract IDD prefix:\n // Some users input their phone number in international format,\n // but in an \"out-of-country\" dialing format instead of using the leading `+`.\n // https://github.com/catamphetamine/libphonenumber-js/issues/185\n // Detect such numbers as soon as there're at least 3 digits.\n // Google's library attempts to extract IDD prefix at 3 digits,\n // so this library just copies that behavior.\n // I guess that's because the most commot IDD prefixes are\n // `00` (Europe) and `011` (US).\n // There exist really long IDD prefixes too:\n // for example, in Australia the default IDD prefix is `0011`,\n // and it could even be as long as `14880011`.\n // An IDD prefix is extracted here, and then every time when\n // there's a new digit and the number couldn't be formatted.\n if (hasReceivedThreeLeadingDigits) {\n this.extractIddPrefix(state);\n }\n if (this.isWaitingForCountryCallingCode(state)) {\n if (!this.extractCountryCallingCode(state)) {\n return;\n }\n } else {\n state.appendNationalSignificantNumberDigits(nextDigits);\n }\n\n // If a phone number is being input in international format,\n // then it's not valid for it to have a national prefix.\n // Still, some people incorrectly input such numbers with a national prefix.\n // In such cases, only attempt to strip a national prefix if the number becomes too long.\n // (but that is done later, not here)\n if (!state.international) {\n if (!this.hasExtractedNationalSignificantNumber) {\n this.extractNationalSignificantNumber(state.getNationalDigits(), function (stateUpdate) {\n return state.update(stateUpdate);\n });\n }\n }\n }\n }, {\n key: \"isWaitingForCountryCallingCode\",\n value: function isWaitingForCountryCallingCode(_ref2) {\n var international = _ref2.international,\n callingCode = _ref2.callingCode;\n return international && !callingCode;\n }\n\n // Extracts a country calling code from a number\n // being entered in internatonal format.\n }, {\n key: \"extractCountryCallingCode\",\n value: function extractCountryCallingCode(state) {\n var _extractCountryCallin = _extractCountryCallingCode('+' + state.getDigitsWithoutInternationalPrefix(), state.country, this.defaultCountry, this.defaultCallingCode, this.metadata.metadata),\n countryCallingCode = _extractCountryCallin.countryCallingCode,\n number = _extractCountryCallin.number;\n if (countryCallingCode) {\n state.setCallingCode(countryCallingCode);\n state.update({\n nationalSignificantNumber: number\n });\n return true;\n }\n }\n }, {\n key: \"reset\",\n value: function reset(numberingPlan) {\n if (numberingPlan) {\n this.hasSelectedNumberingPlan = true;\n var nationalPrefixForParsing = numberingPlan._nationalPrefixForParsing();\n this.couldPossiblyExtractAnotherNationalSignificantNumber = nationalPrefixForParsing && COMPLEX_NATIONAL_PREFIX.test(nationalPrefixForParsing);\n } else {\n this.hasSelectedNumberingPlan = undefined;\n this.couldPossiblyExtractAnotherNationalSignificantNumber = undefined;\n }\n }\n\n /**\r\n * Extracts a national (significant) number from user input.\r\n * Google's library is different in that it only applies `national_prefix_for_parsing`\r\n * and doesn't apply `national_prefix_transform_rule` after that.\r\n * https://github.com/google/libphonenumber/blob/a3d70b0487875475e6ad659af404943211d26456/java/libphonenumber/src/com/google/i18n/phonenumbers/AsYouTypeFormatter.java#L539\r\n * @return {boolean} [extracted]\r\n */\n }, {\n key: \"extractNationalSignificantNumber\",\n value: function extractNationalSignificantNumber(nationalDigits, setState) {\n if (!this.hasSelectedNumberingPlan) {\n return;\n }\n var _extractNationalNumbe = extractNationalNumberFromPossiblyIncompleteNumber(nationalDigits, this.metadata),\n nationalPrefix = _extractNationalNumbe.nationalPrefix,\n nationalNumber = _extractNationalNumbe.nationalNumber,\n carrierCode = _extractNationalNumbe.carrierCode;\n if (nationalNumber === nationalDigits) {\n return;\n }\n this.onExtractedNationalNumber(nationalPrefix, carrierCode, nationalNumber, nationalDigits, setState);\n return true;\n }\n\n /**\r\n * In Google's code this function is called \"attempt to extract longer NDD\".\r\n * \"Some national prefixes are a substring of others\", they say.\r\n * @return {boolean} [result] — Returns `true` if extracting a national prefix produced different results from what they were.\r\n */\n }, {\n key: \"extractAnotherNationalSignificantNumber\",\n value: function extractAnotherNationalSignificantNumber(nationalDigits, prevNationalSignificantNumber, setState) {\n if (!this.hasExtractedNationalSignificantNumber) {\n return this.extractNationalSignificantNumber(nationalDigits, setState);\n }\n if (!this.couldPossiblyExtractAnotherNationalSignificantNumber) {\n return;\n }\n var _extractNationalNumbe2 = extractNationalNumberFromPossiblyIncompleteNumber(nationalDigits, this.metadata),\n nationalPrefix = _extractNationalNumbe2.nationalPrefix,\n nationalNumber = _extractNationalNumbe2.nationalNumber,\n carrierCode = _extractNationalNumbe2.carrierCode;\n // If a national prefix has been extracted previously,\n // then it's always extracted as additional digits are added.\n // That's assuming `extractNationalNumberFromPossiblyIncompleteNumber()`\n // doesn't do anything different from what it currently does.\n // So, just in case, here's this check, though it doesn't occur.\n /* istanbul ignore if */\n if (nationalNumber === prevNationalSignificantNumber) {\n return;\n }\n this.onExtractedNationalNumber(nationalPrefix, carrierCode, nationalNumber, nationalDigits, setState);\n return true;\n }\n }, {\n key: \"onExtractedNationalNumber\",\n value: function onExtractedNationalNumber(nationalPrefix, carrierCode, nationalSignificantNumber, nationalDigits, setState) {\n // Tells if the parsed national (significant) number is present as-is in the input string.\n // For example, when inputting \"0343515551212999\" Argentinian mobile number,\n // the parsed national (significant) number is \"93435551212999\".\n // There, one can see how it stripped \"0\" national prefix and prepended a \"9\",\n // because that's how it is instructed to do in Argentina's metadata.\n // So in the described example, the parsed national (significant) number is not present\n // as-is in the input string. Instead, it's \"modified\" in the input string.\n // https://gitlab.com/catamphetamine/libphonenumber-js/-/blob/master/METADATA.md#national_prefix_for_parsing--national_prefix_transform_rule\n var nationalSignificantNumberIsModified = false;\n\n // In some countries, a phone number could have a prefix that is not a \"national prefix\"\n // but rather some other type of \"utility\" prefix.\n // For example, when calling within Australia, one could prepend `1831` prefix to hide\n // caller's phone number.\n // https://gitlab.com/catamphetamine/libphonenumber-js/-/blob/master/METADATA.md#national_prefix_for_parsing--national_prefix_transform_rule\n var prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix;\n\n // `nationalSignificantNumber` could be empty. In that case, `.lastIndexOf()` still works correctly.\n var nationalSignificantNumberIndex = nationalDigits.lastIndexOf(nationalSignificantNumber);\n\n // If the parsed national (significant) number is the last substring of the `nationalDigits`,\n // then it means that it's present as-is in the input string.\n // In any other case, the parsed national (significant) number is \"modified\" in the input string.\n if (nationalSignificantNumberIndex < 0 || nationalSignificantNumberIndex !== nationalDigits.length - nationalSignificantNumber.length) {\n nationalSignificantNumberIsModified = true;\n } else {\n var prefixBeforeNationalNumber = nationalDigits.slice(0, nationalSignificantNumberIndex);\n // When national (significant) number is equal to the `nationalDigits`,\n // this `onExtractedNationalNumber()` function simply doesn't get called.\n // This means that at this point, `prefixBeforeNationalNumber` is always non-empty.\n // Still, added this `if` check just to prevent potential silly bugs.\n // The `!prefixBeforeNationalNumber` case is not really testable\n // so this line is exluded from the code coverage.\n /* istanbul ignore if */\n if (prefixBeforeNationalNumber) {\n if (prefixBeforeNationalNumber !== nationalPrefix) {\n prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix = prefixBeforeNationalNumber;\n }\n }\n }\n setState({\n nationalPrefix: nationalPrefix,\n carrierCode: carrierCode,\n nationalSignificantNumber: nationalSignificantNumber,\n nationalSignificantNumberIsModified: nationalSignificantNumberIsModified,\n prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix: prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix\n });\n // `onExtractedNationalNumber()` is only called when\n // the national (significant) number actually did change.\n this.hasExtractedNationalSignificantNumber = true;\n this.onNationalSignificantNumberChange();\n }\n }, {\n key: \"reExtractNationalSignificantNumber\",\n value: function reExtractNationalSignificantNumber(state) {\n // Attempt to extract a national prefix.\n //\n // Some people incorrectly input national prefix\n // in an international phone number.\n // For example, some people write British phone numbers as `+44(0)...`.\n //\n // Also, in some rare cases, it is valid for a national prefix\n // to be a part of an international phone number.\n // For example, mobile phone numbers in Mexico are supposed to be\n // dialled internationally using a `1` national prefix,\n // so the national prefix will be part of an international number.\n //\n // Quote from:\n // https://www.mexperience.com/dialing-cell-phones-in-mexico/\n //\n // \"Dialing a Mexican cell phone from abroad\n // When you are calling a cell phone number in Mexico from outside Mexico,\n // it’s necessary to dial an additional “1” after Mexico’s country code\n // (which is “52”) and before the area code.\n // You also ignore the 045, and simply dial the area code and the\n // cell phone’s number.\n //\n // If you don’t add the “1”, you’ll receive a recorded announcement\n // asking you to redial using it.\n //\n // For example, if you are calling from the USA to a cell phone\n // in Mexico City, you would dial +52 – 1 – 55 – 1234 5678.\n // (Note that this is different to calling a land line in Mexico City\n // from abroad, where the number dialed would be +52 – 55 – 1234 5678)\".\n //\n // Google's demo output:\n // https://libphonenumber.appspot.com/phonenumberparser?number=%2b5215512345678&country=MX\n //\n if (this.extractAnotherNationalSignificantNumber(state.getNationalDigits(), state.nationalSignificantNumber, function (stateUpdate) {\n return state.update(stateUpdate);\n })) {\n return true;\n }\n // If no format matches the phone number, then it could be\n // \"a really long IDD\" (quote from a comment in Google's library).\n // An IDD prefix is first extracted when the user has entered at least 3 digits,\n // and then here — every time when there's a new digit and the number\n // couldn't be formatted.\n // For example, in Australia the default IDD prefix is `0011`,\n // and it could even be as long as `14880011`.\n //\n // Could also check `!hasReceivedThreeLeadingDigits` here\n // to filter out the case when this check duplicates the one\n // already performed when there're 3 leading digits,\n // but it's not a big deal, and in most cases there\n // will be a suitable `format` when there're 3 leading digits.\n //\n if (this.extractIddPrefix(state)) {\n this.extractCallingCodeAndNationalSignificantNumber(state);\n return true;\n }\n // Google's AsYouType formatter supports sort of an \"autocorrection\" feature\n // when it \"autocorrects\" numbers that have been input for a country\n // with that country's calling code.\n // Such \"autocorrection\" feature looks weird, but different people have been requesting it:\n // https://github.com/catamphetamine/libphonenumber-js/issues/376\n // https://github.com/catamphetamine/libphonenumber-js/issues/375\n // https://github.com/catamphetamine/libphonenumber-js/issues/316\n if (this.fixMissingPlus(state)) {\n this.extractCallingCodeAndNationalSignificantNumber(state);\n return true;\n }\n }\n }, {\n key: \"extractIddPrefix\",\n value: function extractIddPrefix(state) {\n // An IDD prefix can't be present in a number written with a `+`.\n // Also, don't re-extract an IDD prefix if has already been extracted.\n var international = state.international,\n IDDPrefix = state.IDDPrefix,\n digits = state.digits,\n nationalSignificantNumber = state.nationalSignificantNumber;\n if (international || IDDPrefix) {\n return;\n }\n // Some users input their phone number in \"out-of-country\"\n // dialing format instead of using the leading `+`.\n // https://github.com/catamphetamine/libphonenumber-js/issues/185\n // Detect such numbers.\n var numberWithoutIDD = stripIddPrefix(digits, this.defaultCountry, this.defaultCallingCode, this.metadata.metadata);\n if (numberWithoutIDD !== undefined && numberWithoutIDD !== digits) {\n // If an IDD prefix was stripped then convert the IDD-prefixed number\n // to international number for subsequent parsing.\n state.update({\n IDDPrefix: digits.slice(0, digits.length - numberWithoutIDD.length)\n });\n this.startInternationalNumber(state, {\n country: undefined,\n callingCode: undefined\n });\n return true;\n }\n }\n }, {\n key: \"fixMissingPlus\",\n value: function fixMissingPlus(state) {\n if (!state.international) {\n var _extractCountryCallin2 = extractCountryCallingCodeFromInternationalNumberWithoutPlusSign(state.digits, state.country, this.defaultCountry, this.defaultCallingCode, this.metadata.metadata),\n newCallingCode = _extractCountryCallin2.countryCallingCode;\n if (newCallingCode) {\n state.update({\n missingPlus: true\n });\n this.startInternationalNumber(state, {\n country: state.country,\n callingCode: newCallingCode\n });\n return true;\n }\n }\n }\n }, {\n key: \"startInternationalNumber\",\n value: function startInternationalNumber(state, _ref3) {\n var country = _ref3.country,\n callingCode = _ref3.callingCode;\n state.startInternationalNumber(country, callingCode);\n // If a national (significant) number has been extracted before, reset it.\n if (state.nationalSignificantNumber) {\n state.resetNationalSignificantNumber();\n this.onNationalSignificantNumberChange();\n this.hasExtractedNationalSignificantNumber = undefined;\n }\n }\n }, {\n key: \"extractCallingCodeAndNationalSignificantNumber\",\n value: function extractCallingCodeAndNationalSignificantNumber(state) {\n if (this.extractCountryCallingCode(state)) {\n // `this.extractCallingCode()` is currently called when the number\n // couldn't be formatted during the standard procedure.\n // Normally, the national prefix would be re-extracted\n // for an international number if such number couldn't be formatted,\n // but since it's already not able to be formatted,\n // there won't be yet another retry, so also extract national prefix here.\n this.extractNationalSignificantNumber(state.getNationalDigits(), function (stateUpdate) {\n return state.update(stateUpdate);\n });\n }\n }\n }]);\n}();\n/**\r\n * Extracts formatted phone number from text (if there's any).\r\n * @param {string} text\r\n * @return {string} [formattedPhoneNumber]\r\n */\nexport { AsYouTypeParser as default };\nfunction extractFormattedPhoneNumber(text) {\n // Attempt to extract a possible number from the string passed in.\n var startsAt = text.search(VALID_FORMATTED_PHONE_NUMBER_PART);\n if (startsAt < 0) {\n return;\n }\n // Trim everything to the left of the phone number.\n text = text.slice(startsAt);\n // Trim the `+`.\n var hasPlus;\n if (text[0] === '+') {\n hasPlus = true;\n text = text.slice('+'.length);\n }\n // Trim everything to the right of the phone number.\n text = text.replace(AFTER_PHONE_NUMBER_DIGITS_END_PATTERN, '');\n // Re-add the previously trimmed `+`.\n if (hasPlus) {\n text = '+' + text;\n }\n return text;\n}\n\n/**\r\n * Extracts formatted phone number digits (and a `+`) from text (if there're any).\r\n * @param {string} text\r\n * @return {any[]}\r\n */\nfunction _extractFormattedDigitsAndPlus(text) {\n // Extract a formatted phone number part from text.\n var extractedNumber = extractFormattedPhoneNumber(text) || '';\n // Trim a `+`.\n if (extractedNumber[0] === '+') {\n return [extractedNumber.slice('+'.length), true];\n }\n return [extractedNumber];\n}\n\n/**\r\n * Extracts formatted phone number digits (and a `+`) from text (if there're any).\r\n * @param {string} text\r\n * @return {any[]}\r\n */\nexport function extractFormattedDigitsAndPlus(text) {\n var _extractFormattedDigi3 = _extractFormattedDigitsAndPlus(text),\n _extractFormattedDigi4 = _slicedToArray(_extractFormattedDigi3, 2),\n formattedDigits = _extractFormattedDigi4[0],\n hasPlus = _extractFormattedDigi4[1];\n // If the extracted phone number part\n // can possibly be a part of some valid phone number\n // then parse phone number characters from a formatted phone number.\n if (!VALID_FORMATTED_PHONE_NUMBER_DIGITS_PART_PATTERN.test(formattedDigits)) {\n formattedDigits = '';\n }\n return [formattedDigits, hasPlus];\n}\n//# sourceMappingURL=AsYouTypeParser.js.map"],"names":["_typeof","o","_slicedToArray","r","e","_arrayWithHoles","_iterableToArrayLimit","_unsupportedIterableToArray","_nonIterableRest","a","_arrayLikeToArray","n","l","i","u","f","_classCallCheck","_defineProperties","_toPropertyKey","_createClass","t","_toPrimitive","VALID_FORMATTED_PHONE_NUMBER_DIGITS_PART","VALID_PUNCTUATION","VALID_DIGITS","VALID_FORMATTED_PHONE_NUMBER_DIGITS_PART_PATTERN","VALID_FORMATTED_PHONE_NUMBER_PART","PLUS_CHARS","AFTER_PHONE_NUMBER_DIGITS_END_PATTERN","COMPLEX_NATIONAL_PREFIX","AsYouTypeParser","_ref","defaultCountry","defaultCallingCode","metadata","onNationalSignificantNumberChange","text","state","_extractFormattedDigi","extractFormattedDigitsAndPlus","_extractFormattedDigi2","formattedDigits","hasPlus","digits","parseDigits","justLeadingPlus","nextDigits","hasReceivedThreeLeadingDigits","stateUpdate","_ref2","international","callingCode","_extractCountryCallin","_extractCountryCallingCode","countryCallingCode","number","numberingPlan","nationalPrefixForParsing","nationalDigits","setState","_extractNationalNumbe","extractNationalNumberFromPossiblyIncompleteNumber","nationalPrefix","nationalNumber","carrierCode","prevNationalSignificantNumber","_extractNationalNumbe2","nationalSignificantNumber","nationalSignificantNumberIsModified","prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix","nationalSignificantNumberIndex","prefixBeforeNationalNumber","IDDPrefix","numberWithoutIDD","stripIddPrefix","_extractCountryCallin2","extractCountryCallingCodeFromInternationalNumberWithoutPlusSign","newCallingCode","_ref3","country","extractFormattedPhoneNumber","startsAt","_extractFormattedDigitsAndPlus","extractedNumber","_extractFormattedDigi3","_extractFormattedDigi4"],"mappings":";;;;;;AAAA,SAASA,EAAQC,GAAG;AAAE;AAA2B,SAAOD,IAAwB,OAAO,UAArB,cAA2C,OAAO,OAAO,YAA1B,WAAqC,SAAUC,GAAG;AAAE,WAAO,OAAOA;AAAA,EAAG,IAAI,SAAUA,GAAG;AAAE,WAAOA,KAAmB,OAAO,UAArB,cAA+BA,EAAE,gBAAgB,UAAUA,MAAM,OAAO,YAAY,WAAW,OAAOA;AAAA,EAAG,GAAGD,EAAQC,CAAC;AAAG;AAC7T,SAASC,EAAeC,GAAGC,GAAG;AAAE,SAAOC,EAAgBF,CAAC,KAAKG,EAAsBH,GAAGC,CAAC,KAAKG,EAA4BJ,GAAGC,CAAC,KAAKI,EAAgB;AAAI;AACrJ,SAASA,IAAmB;AAAE,QAAM,IAAI,UAAU;AAAA,mFAA2I;AAAG;AAChM,SAASD,EAA4BJ,GAAGM,GAAG;AAAE,MAAIN,GAAG;AAAE,QAAgB,OAAOA,KAAnB,SAAsB,QAAOO,EAAkBP,GAAGM,CAAC;AAAG,QAAI,IAAI,CAAA,EAAG,SAAS,KAAKN,CAAC,EAAE,MAAM,GAAG,EAAE;AAAG,WAAoB,MAAb,YAAkBA,EAAE,gBAAgB,IAAIA,EAAE,YAAY,OAAiB,MAA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AA,IAEjD;AAAA,EACJ,GAAK;AAAA,IACD,KAAK;AAAA,IACL,OAAO,SAAwDA,GAAO;AACpE,MAAI,KAAK,0BAA0BA,CAAK,KAOtC,KAAK,iCAAiCA,EAAM,kBAAiB,GAAI,SAAUW,GAAa;AACtF,eAAOX,EAAM,OAAOW,CAAW;AAAA,MACjC,CAAC;AAAA,IAEL;AAAA,EACJ,CAAG,CAAC;AACJ,GAAC;AAOD,SAASgC,EAA4B5C,GAAM;AAEzC,MAAI6C,IAAW7C,EAAK,OAAOV,CAAiC;AAC5D,MAAI,EAAAuD,IAAW,IAIf;AAAA,IAAA7C,IAAOA,EAAK,MAAM6C,CAAQ;AAE1B,QAAIvC;AACJ,WAAIN,EAAK,CAAC,MAAM,QACdM,IAAU,IACVN,IAAOA,EAAK,MAAM,CAAU,IAG9BA,IAAOA,EAAK,QAAQR,GAAuC,EAAE,GAEzDc,MACFN,IAAO,MAAMA,IAERA;AAAA;AACT;AAOA,SAAS8C,EAA+B9C,GAAM;AAE5C,MAAI+C,IAAkBH,EAA4B5C,CAAI,KAAK;AAE3D,SAAI+C,EAAgB,CAAC,MAAM,MAClB,CAACA,EAAgB,MAAM,CAAU,GAAG,EAAI,IAE1C,CAACA,CAAe;AACzB;AAOO,SAAS5C,EAA8BH,GAAM;AAClD,MAAIgD,IAAyBF,EAA+B9C,CAAI,GAC9DiD,IAAyBnF,EAAekF,GAAwB,CAAC,GACjE3C,IAAkB4C,EAAuB,CAAC,GAC1C3C,IAAU2C,EAAuB,CAAC;AAIpC,SAAK5D,EAAiD,KAAKgB,CAAe,MACxEA,IAAkB,KAEb,CAACA,GAAiBC,CAAO;AAClC;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index101.js","sources":["../../../node_modules/libphonenumber-js/es6/helpers/applyInternationalSeparatorStyle.js"],"sourcesContent":["import { VALID_PUNCTUATION } from '../constants.js';\n\n// Removes brackets and replaces dashes with spaces.\n//\n// E.g. \"(999) 111-22-33\" -> \"999 111 22 33\"\n//\n// For some reason Google's metadata contains `<intlFormat/>`s with brackets and dashes.\n// Meanwhile, there's no single opinion about using punctuation in international phone numbers.\n//\n// For example, Google's `<intlFormat/>` for USA is `+1 213-373-4253`.\n// And here's a quote from WikiPedia's \"North American Numbering Plan\" page:\n// https://en.wikipedia.org/wiki/North_American_Numbering_Plan\n//\n// \"The country calling code for all countries participating in the NANP is 1.\n// In international format, an NANP number should be listed as +1 301 555 01 00,\n// where 301 is an area code (Maryland).\"\n//\n// I personally prefer the international format without any punctuation.\n// For example, brackets are remnants of the old age, meaning that the\n// phone number part in brackets (so called \"area code\") can be omitted\n// if dialing within the same \"area\".\n// And hyphens were clearly introduced for splitting local numbers into memorizable groups.\n// For example, remembering \"5553535\" is difficult but \"555-35-35\" is much simpler.\n// Imagine a man taking a bus from home to work and seeing an ad with a phone number.\n// He has a couple of seconds to memorize that number until it passes by.\n// If it were spaces instead of hyphens the man wouldn't necessarily get it,\n// but with hyphens instead of spaces the grouping is more explicit.\n// I personally think that hyphens introduce visual clutter,\n// so I prefer replacing them with spaces in international numbers.\n// In the modern age all output is done on displays where spaces are clearly distinguishable\n// so hyphens can be safely replaced with spaces without losing any legibility.\n//\nexport default function applyInternationalSeparatorStyle(formattedNumber) {\n return formattedNumber.replace(new RegExp(\"[\".concat(VALID_PUNCTUATION, \"]+\"), 'g'), ' ').trim();\n}\n//# sourceMappingURL=applyInternationalSeparatorStyle.js.map"],"names":["applyInternationalSeparatorStyle","formattedNumber","VALID_PUNCTUATION"],"mappings":";AAgCe,SAASA,EAAiCC,GAAiB;AACxE,SAAOA,EAAgB,QAAQ,IAAI,OAAO,IAAI,OAAOC,GAAmB,IAAI,GAAG,GAAG,GAAG,GAAG,EAAE,KAAI;AAChG;","x_google_ignoreList":[0]}
package/dist/index102.js CHANGED
@@ -1,13 +1,9 @@
1
- import o from "./index103.js";
2
- function i(n, a) {
3
- var r = a.nationalNumber, e = a.metadata, t = e.getCountryCodesForCallingCode(n);
4
- if (t)
5
- return t.length === 1 ? t[0] : o(r, {
6
- countries: t,
7
- metadata: e.metadata
8
- });
1
+ import t from "./index90.js";
2
+ import r from "./index103.js";
3
+ function n() {
4
+ return t(r, arguments);
9
5
  }
10
6
  export {
11
- i as default
7
+ n as getCountries
12
8
  };
13
9
  //# sourceMappingURL=index102.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index102.js","sources":["../../../node_modules/libphonenumber-js/es6/helpers/getCountryByCallingCode.js"],"sourcesContent":["import getCountryByNationalNumber from './getCountryByNationalNumber.js';\nvar USE_NON_GEOGRAPHIC_COUNTRY_CODE = false;\n\n// Returns the exact country for the `nationalNumber`\n// that belongs to the specified \"country calling code\".\nexport default function getCountryByCallingCode(callingCode, _ref) {\n var nationalPhoneNumber = _ref.nationalNumber,\n metadata = _ref.metadata;\n /* istanbul ignore if */\n if (USE_NON_GEOGRAPHIC_COUNTRY_CODE) {\n if (metadata.isNonGeographicCallingCode(callingCode)) {\n return '001';\n }\n }\n var possibleCountries = metadata.getCountryCodesForCallingCode(callingCode);\n if (!possibleCountries) {\n return;\n }\n // If there's just one country corresponding to the country code,\n // then just return it, without further phone number digits validation.\n if (possibleCountries.length === 1) {\n return possibleCountries[0];\n }\n return getCountryByNationalNumber(nationalPhoneNumber, {\n countries: possibleCountries,\n metadata: metadata.metadata\n });\n}\n//# sourceMappingURL=getCountryByCallingCode.js.map"],"names":["getCountryByCallingCode","callingCode","_ref","nationalPhoneNumber","metadata","possibleCountries","getCountryByNationalNumber"],"mappings":";AAKe,SAASA,EAAwBC,GAAaC,GAAM;AACjE,MAAIC,IAAsBD,EAAK,gBAC7BE,IAAWF,EAAK,UAOdG,IAAoBD,EAAS,8BAA8BH,CAAW;AAC1E,MAAKI;AAKL,WAAIA,EAAkB,WAAW,IACxBA,EAAkB,CAAC,IAErBC,EAA2BH,GAAqB;AAAA,MACrD,WAAWE;AAAA,MACX,UAAUD,EAAS;AAAA,IACvB,CAAG;AACH;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index102.js","sources":["../../../node_modules/libphonenumber-js/min/exports/getCountries.js"],"sourcesContent":["import withMetadataArgument from './withMetadataArgument.js'\r\nimport { getCountries as _getCountries } from '../../core/index.js'\r\n\r\nexport function getCountries() {\r\n\treturn withMetadataArgument(_getCountries, arguments)\r\n}"],"names":["getCountries","withMetadataArgument","_getCountries"],"mappings":";;AAGO,SAASA,IAAe;AAC9B,SAAOC,EAAqBC,GAAe,SAAS;AACrD;","x_google_ignoreList":[0]}
package/dist/index103.js CHANGED
@@ -1,46 +1,8 @@
1
- import l from "./index98.js";
2
- import f from "./index187.js";
3
- function d(e, r) {
4
- var t = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
5
- if (t) return (t = t.call(e)).next.bind(t);
6
- if (Array.isArray(e) || (t = s(e)) || r) {
7
- t && (e = t);
8
- var a = 0;
9
- return function() {
10
- return a >= e.length ? { done: !0 } : { done: !1, value: e[a++] };
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 s(e, r) {
17
- if (e) {
18
- if (typeof e == "string") return i(e, r);
19
- var t = {}.toString.call(e).slice(8, -1);
20
- return t === "Object" && e.constructor && (t = e.constructor.name), t === "Map" || t === "Set" ? Array.from(e) : t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? i(e, r) : void 0;
21
- }
22
- }
23
- function i(e, r) {
24
- (r == null || r > e.length) && (r = e.length);
25
- for (var t = 0, a = Array(r); t < r; t++) a[t] = e[t];
26
- return a;
27
- }
28
- function y(e, r) {
29
- var t = r.countries, a = r.metadata;
30
- a = new l(a);
31
- for (var u = d(t), o; !(o = u()).done; ) {
32
- var n = o.value;
33
- if (a.selectNumberingPlan(n), a.leadingDigits()) {
34
- if (e && e.search(a.leadingDigits()) === 0)
35
- return n;
36
- } else if (f({
37
- phone: e,
38
- country: n
39
- }, void 0, a.metadata))
40
- return n;
41
- }
1
+ import e from "./index104.js";
2
+ function n(t) {
3
+ return new e(t).getCountries();
42
4
  }
43
5
  export {
44
- y as default
6
+ n as default
45
7
  };
46
8
  //# sourceMappingURL=index103.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index103.js","sources":["../../../node_modules/libphonenumber-js/es6/helpers/getCountryByNationalNumber.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 getNumberType from './getNumberType.js';\n\n// Returns the exact country that the `nationalPhoneNumber` belongs to\n// in cases of ambiguity, i.e. when multiple countries share the same \"country calling code\".\nexport default function getCountryByNationalNumber(nationalPhoneNumber, _ref) {\n var countries = _ref.countries,\n metadata = _ref.metadata;\n // Re-create `metadata` because it will be selecting a `country`.\n metadata = new Metadata(metadata);\n\n // const matchingCountries = []\n\n for (var _iterator = _createForOfIteratorHelperLoose(countries), _step; !(_step = _iterator()).done;) {\n var country = _step.value;\n metadata.selectNumberingPlan(country);\n // \"Leading digits\" patterns are only defined for about 20% of all countries.\n // By definition, matching \"leading digits\" is a sufficient but not a necessary\n // condition for a phone number to belong to a country.\n // The point of \"leading digits\" check is that it's the fastest one to get a match.\n // https://gitlab.com/catamphetamine/libphonenumber-js/blob/master/METADATA.md#leading_digits\n // I'd suppose that \"leading digits\" patterns are mutually exclusive for different countries\n // because of the intended use of that feature.\n if (metadata.leadingDigits()) {\n if (nationalPhoneNumber && nationalPhoneNumber.search(metadata.leadingDigits()) === 0) {\n return country;\n }\n }\n // Else perform full validation with all of those\n // fixed-line/mobile/etc regular expressions.\n else if (getNumberType({\n phone: nationalPhoneNumber,\n country: country\n }, undefined, metadata.metadata)) {\n // When multiple countries share the same \"country calling code\",\n // type patterns aren't guaranteed to be unique among them.\n // For example, both `US` and `CA` have the same pattern for `toll_free` numbers.\n // https://gitlab.com/catamphetamine/libphonenumber-js/-/issues/103#note_1417147572\n //\n // That means that this `if` condition could be `true` for multiple countries from the list.\n // Currently, it just returns the first one, which is also the \"main\" country for the \"country calling code\".\n // In an example with `toll_free` numbers above, `\"US\"` would be returned even though\n // it could as well be `\"CA\"`.\n //\n // There was also a time when this attempted to be overly smart\n // and kept track of all such multiple matching countries\n // and then picked the one that matched the `defaultCountry`, if provided.\n // For example, with `toll_free` numbers above, and with `defaultCountry: \"CA\"`,\n // it would've returned `\"CA\"` instead of `\"US\"`.\n // Later it turned out that such \"overly smart\" behavior turned out to be just confusing,\n // so this \"overly smart\" country detection was reverted to returning the \"main\" country\n // for the \"country calling code\".\n // https://gitlab.com/catamphetamine/libphonenumber-js/-/issues/154\n //\n return country;\n //\n // The \"overly smart\" behavior code:\n //\n // if (defaultCountry) {\n // \tif (country === defaultCountry) {\n // \t\treturn country\n // \t} else {\n // \t\tmatchingCountries.push(country)\n // \t}\n // } else {\n // \treturn country\n // }\n }\n }\n\n // // Return the first (\"main\") one of the `matchingCountries`.\n // if (matchingCountries.length > 0) {\n // \treturn matchingCountries[0]\n // }\n}\n//# sourceMappingURL=getCountryByNationalNumber.js.map"],"names":["_createForOfIteratorHelperLoose","r","e","_unsupportedIterableToArray","o","a","_arrayLikeToArray","n","getCountryByNationalNumber","nationalPhoneNumber","_ref","countries","metadata","Metadata","_iterator","_step","country","getNumberType"],"mappings":";;AAAA,SAASA,EAAgCC,GAAGC,GAAG;AAAE,MAAI,IAAmB,OAAO,SAAtB,OAAgCD,EAAE,OAAO,QAAQ,KAAKA,EAAE,YAAY;AAAG,MAAI,EAAG,SAAQ,IAAI,EAAE,KAAKA,CAAC,GAAG,KAAK,KAAK,CAAC;AAAG,MAAI,MAAM,QAAQA,CAAC,MAAM,IAAIE,EAA4BF,CAAC,MAAMC,GAAuC;AAAE,UAAMD,IAAI;AAAI,QAAIG,IAAI;AAAG,WAAO,WAAY;AAAE,aAAOA,KAAKH,EAAE,SAAS,EAAE,MAAM,GAAE,IAAK,EAAE,MAAM,IAAI,OAAOA,EAAEG,GAAG,EAAC;AAAA,IAAI;AAAA,EAAG;AAAE,QAAM,IAAI,UAAU;AAAA,mFAAuI;AAAG;AACziB,SAASD,EAA4BF,GAAGI,GAAG;AAAE,MAAIJ,GAAG;AAAE,QAAgB,OAAOA,KAAnB,SAAsB,QAAOK,EAAkBL,GAAGI,CAAC;AAAG,QAAI,IAAI,CAAA,EAAG,SAAS,KAAKJ,CAAC,EAAE,MAAM,GAAG,EAAE;AAAG,WAAoB,MAAb,YAAkBA,EAAE,gBAAgB,IAAIA,EAAE,YAAY,OAAiB,MAAV,SAAyB,MAAV,QAAc,MAAM,KAAKA,CAAC,IAAoB,MAAhB,eAAqB,2CAA2C,KAAK,CAAC,IAAIK,EAAkBL,GAAGI,CAAC,IAAI;AAAA,EAAQ;AAAE;AACzX,SAASC,EAAkBL,GAAGI,GAAG;AAAE,GAASA,KAAR,QAAaA,IAAIJ,EAAE,YAAYI,IAAIJ,EAAE;AAAS,WAASC,IAAI,GAAGK,IAAI,MAAMF,CAAC,GAAGH,IAAIG,GAAGH,IAAK,CAAAK,EAAEL,CAAC,IAAID,EAAEC,CAAC;AAAG,SAAOK;AAAG;AAMpI,SAASC,EAA2BC,GAAqBC,GAAM;AAC5E,MAAIC,IAAYD,EAAK,WACnBE,IAAWF,EAAK;AAElB,EAAAE,IAAW,IAAIC,EAASD,CAAQ;AAIhC,WAASE,IAAYd,EAAgCW,CAAS,GAAGI,GAAO,EAAEA,IAAQD,EAAS,GAAI,QAAO;AACpG,QAAIE,IAAUD,EAAM;AASpB,QARAH,EAAS,oBAAoBI,CAAO,GAQhCJ,EAAS;AACX,UAAIH,KAAuBA,EAAoB,OAAOG,EAAS,cAAa,CAAE,MAAM;AAClF,eAAOI;AAAA,eAKFC,EAAc;AAAA,MACrB,OAAOR;AAAA,MACP,SAASO;AAAA,IACf,GAAO,QAAWJ,EAAS,QAAQ;AAqB7B,aAAOI;AAAA,EAcX;AAMF;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index103.js","sources":["../../../node_modules/libphonenumber-js/es6/getCountries.js"],"sourcesContent":["import Metadata from './metadata.js';\nexport default function getCountries(metadata) {\n return new Metadata(metadata).getCountries();\n}\n//# sourceMappingURL=getCountries.js.map"],"names":["getCountries","metadata","Metadata"],"mappings":";AACe,SAASA,EAAaC,GAAU;AAC7C,SAAO,IAAIC,EAASD,CAAQ,EAAE,aAAY;AAC5C;","x_google_ignoreList":[0]}