@rpcbase/ui 0.196.0 → 0.197.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 (551) hide show
  1. package/dist/components/HourPickerField/index.d.ts.map +1 -1
  2. package/dist/index100.js +5 -6
  3. package/dist/index100.js.map +1 -1
  4. package/dist/index101.js +4 -24
  5. package/dist/index101.js.map +1 -1
  6. package/dist/index102.js +8 -6
  7. package/dist/index102.js.map +1 -1
  8. package/dist/index103.js +5 -4
  9. package/dist/index103.js.map +1 -1
  10. package/dist/index104.js +4 -6
  11. package/dist/index104.js.map +1 -1
  12. package/dist/index105.js +4 -5
  13. package/dist/index105.js.map +1 -1
  14. package/dist/index106.js +6 -4
  15. package/dist/index106.js.map +1 -1
  16. package/dist/index107.js +145 -5
  17. package/dist/index107.js.map +1 -1
  18. package/dist/index108.js +39 -4
  19. package/dist/index108.js.map +1 -1
  20. package/dist/index109.js +4 -8
  21. package/dist/index109.js.map +1 -1
  22. package/dist/index110.js +7 -5
  23. package/dist/index110.js.map +1 -1
  24. package/dist/index111.js +13 -4
  25. package/dist/index111.js.map +1 -1
  26. package/dist/index112.js +13 -4
  27. package/dist/index112.js.map +1 -1
  28. package/dist/index113.js +7 -6
  29. package/dist/index113.js.map +1 -1
  30. package/dist/index114.js +31 -145
  31. package/dist/index114.js.map +1 -1
  32. package/dist/index115.js +10 -39
  33. package/dist/index115.js.map +1 -1
  34. package/dist/index116.js +10 -4
  35. package/dist/index116.js.map +1 -1
  36. package/dist/index117.js +8 -7
  37. package/dist/index117.js.map +1 -1
  38. package/dist/index118.js +13 -13
  39. package/dist/index118.js.map +1 -1
  40. package/dist/index119.js +101 -13
  41. package/dist/index119.js.map +1 -1
  42. package/dist/index120.js +20 -8
  43. package/dist/index120.js.map +1 -1
  44. package/dist/index121.js +53 -31
  45. package/dist/index121.js.map +1 -1
  46. package/dist/index122.js +72 -10
  47. package/dist/index122.js.map +1 -1
  48. package/dist/index123.js +9 -10
  49. package/dist/index123.js.map +1 -1
  50. package/dist/index124.js +20 -8
  51. package/dist/index124.js.map +1 -1
  52. package/dist/index125.js +16 -13
  53. package/dist/index125.js.map +1 -1
  54. package/dist/index126.js +23 -101
  55. package/dist/index126.js.map +1 -1
  56. package/dist/index127.js +7 -20
  57. package/dist/index127.js.map +1 -1
  58. package/dist/index128.js +5 -53
  59. package/dist/index128.js.map +1 -1
  60. package/dist/index129.js +23 -72
  61. package/dist/index129.js.map +1 -1
  62. package/dist/index130.js +35 -10
  63. package/dist/index130.js.map +1 -1
  64. package/dist/index131.js +16 -21
  65. package/dist/index131.js.map +1 -1
  66. package/dist/index132.js +6 -16
  67. package/dist/index132.js.map +1 -1
  68. package/dist/index133.js +4 -23
  69. package/dist/index133.js.map +1 -1
  70. package/dist/index134.js +4 -6
  71. package/dist/index134.js.map +1 -1
  72. package/dist/index135.js +4 -5
  73. package/dist/index135.js.map +1 -1
  74. package/dist/index136.js +4 -23
  75. package/dist/index136.js.map +1 -1
  76. package/dist/index137.js +4 -35
  77. package/dist/index137.js.map +1 -1
  78. package/dist/index138.js +7 -16
  79. package/dist/index138.js.map +1 -1
  80. package/dist/index139.js +24 -7
  81. package/dist/index139.js.map +1 -1
  82. package/dist/index140.js +7 -4
  83. package/dist/index140.js.map +1 -1
  84. package/dist/index141.js +6 -4
  85. package/dist/index141.js.map +1 -1
  86. package/dist/index142.js +5 -4
  87. package/dist/index142.js.map +1 -1
  88. package/dist/index143.js +3 -4
  89. package/dist/index143.js.map +1 -1
  90. package/dist/index144.js +1 -1
  91. package/dist/index144.js.map +1 -1
  92. package/dist/index145.js +4 -6
  93. package/dist/index145.js.map +1 -1
  94. package/dist/index146.js +4 -24
  95. package/dist/index146.js.map +1 -1
  96. package/dist/index147.js +4 -7
  97. package/dist/index147.js.map +1 -1
  98. package/dist/index148.js +3 -6
  99. package/dist/index148.js.map +1 -1
  100. package/dist/index149.js +3 -5
  101. package/dist/index149.js.map +1 -1
  102. package/dist/index150.js +3 -3
  103. package/dist/index150.js.map +1 -1
  104. package/dist/index151.js +46 -3
  105. package/dist/index151.js.map +1 -1
  106. package/dist/index152.js +5 -4
  107. package/dist/index152.js.map +1 -1
  108. package/dist/index153.js +68 -3
  109. package/dist/index153.js.map +1 -1
  110. package/dist/index154.js +2 -5
  111. package/dist/index154.js.map +1 -1
  112. package/dist/index155.js +363 -3
  113. package/dist/index155.js.map +1 -1
  114. package/dist/index156.js +261 -3
  115. package/dist/index156.js.map +1 -1
  116. package/dist/index157.js +60 -3
  117. package/dist/index157.js.map +1 -1
  118. package/dist/index158.js +46 -5
  119. package/dist/index158.js.map +1 -1
  120. package/dist/index159.js +157 -56
  121. package/dist/index159.js.map +1 -1
  122. package/dist/index160.js +110 -2
  123. package/dist/index160.js.map +1 -1
  124. package/dist/index161.js +24 -363
  125. package/dist/index161.js.map +1 -1
  126. package/dist/index162.js +8 -262
  127. package/dist/index162.js.map +1 -1
  128. package/dist/index163.js +4 -60
  129. package/dist/index163.js.map +1 -1
  130. package/dist/index164.js +5 -46
  131. package/dist/index164.js.map +1 -1
  132. package/dist/index165.js +4 -169
  133. package/dist/index165.js.map +1 -1
  134. package/dist/index166.js +459 -102
  135. package/dist/index166.js.map +1 -1
  136. package/dist/index167.js +185 -24
  137. package/dist/index167.js.map +1 -1
  138. package/dist/index168.js +108 -8
  139. package/dist/index168.js.map +1 -1
  140. package/dist/index169.js +262 -4
  141. package/dist/index169.js.map +1 -1
  142. package/dist/index170.js +9 -5
  143. package/dist/index170.js.map +1 -1
  144. package/dist/index171.js +42 -4
  145. package/dist/index171.js.map +1 -1
  146. package/dist/index172.js +4 -466
  147. package/dist/index172.js.map +1 -1
  148. package/dist/index173.js +44 -183
  149. package/dist/index173.js.map +1 -1
  150. package/dist/index174.js +198 -100
  151. package/dist/index174.js.map +1 -1
  152. package/dist/index175.js +22 -263
  153. package/dist/index175.js.map +1 -1
  154. package/dist/index176.js +24 -9
  155. package/dist/index176.js.map +1 -1
  156. package/dist/index177.js +391 -34
  157. package/dist/index177.js.map +1 -1
  158. package/dist/index178.js +605 -4
  159. package/dist/index178.js.map +1 -1
  160. package/dist/index179.js +58 -24
  161. package/dist/index179.js.map +1 -1
  162. package/dist/index180.js +9 -29
  163. package/dist/index180.js.map +1 -1
  164. package/dist/index181.js +67 -5
  165. package/dist/index181.js.map +1 -1
  166. package/dist/index182.js +18 -66
  167. package/dist/index182.js.map +1 -1
  168. package/dist/index183.js +15 -179
  169. package/dist/index183.js.map +1 -1
  170. package/dist/index184.js +4 -45
  171. package/dist/index184.js.map +1 -1
  172. package/dist/index185.js +4 -57
  173. package/dist/index185.js.map +1 -1
  174. package/dist/index186.js +6 -8
  175. package/dist/index186.js.map +1 -1
  176. package/dist/index187.js +4 -66
  177. package/dist/index187.js.map +1 -1
  178. package/dist/index188.js +7 -19
  179. package/dist/index188.js.map +1 -1
  180. package/dist/index189.js +17 -16
  181. package/dist/index189.js.map +1 -1
  182. package/dist/index19.js +390 -378
  183. package/dist/index19.js.map +1 -1
  184. package/dist/index190.js +5 -5
  185. package/dist/index190.js.map +1 -1
  186. package/dist/index191.js +5 -5
  187. package/dist/index191.js.map +1 -1
  188. package/dist/index192.js +13 -6
  189. package/dist/index192.js.map +1 -1
  190. package/dist/index193.js +10 -4
  191. package/dist/index193.js.map +1 -1
  192. package/dist/index194.js +14 -7
  193. package/dist/index194.js.map +1 -1
  194. package/dist/index195.js +14 -17
  195. package/dist/index195.js.map +1 -1
  196. package/dist/index196.js +5 -5
  197. package/dist/index196.js.map +1 -1
  198. package/dist/index197.js +6 -5
  199. package/dist/index197.js.map +1 -1
  200. package/dist/index198.js +7 -13
  201. package/dist/index198.js.map +1 -1
  202. package/dist/index199.js +5 -9
  203. package/dist/index199.js.map +1 -1
  204. package/dist/index200.js +9 -14
  205. package/dist/index200.js.map +1 -1
  206. package/dist/index201.js +5 -14
  207. package/dist/index201.js.map +1 -1
  208. package/dist/index202.js +5 -5
  209. package/dist/index202.js.map +1 -1
  210. package/dist/index203.js +9 -6
  211. package/dist/index203.js.map +1 -1
  212. package/dist/index204.js +5 -7
  213. package/dist/index204.js.map +1 -1
  214. package/dist/index205.js +5 -6
  215. package/dist/index205.js.map +1 -1
  216. package/dist/index206.js +4 -9
  217. package/dist/index206.js.map +1 -1
  218. package/dist/index207.js +11 -5
  219. package/dist/index207.js.map +1 -1
  220. package/dist/index208.js +10 -5
  221. package/dist/index208.js.map +1 -1
  222. package/dist/index209.js +10 -9
  223. package/dist/index209.js.map +1 -1
  224. package/dist/index210.js +11 -5
  225. package/dist/index210.js.map +1 -1
  226. package/dist/index211.js +11 -5
  227. package/dist/index211.js.map +1 -1
  228. package/dist/index212.js +10 -4
  229. package/dist/index212.js.map +1 -1
  230. package/dist/index213.js +7 -11
  231. package/dist/index213.js.map +1 -1
  232. package/dist/index214.js +6 -10
  233. package/dist/index214.js.map +1 -1
  234. package/dist/index215.js +5 -10
  235. package/dist/index215.js.map +1 -1
  236. package/dist/index216.js +6 -11
  237. package/dist/index216.js.map +1 -1
  238. package/dist/index217.js +7 -11
  239. package/dist/index217.js.map +1 -1
  240. package/dist/index218.js +6 -10
  241. package/dist/index218.js.map +1 -1
  242. package/dist/index219.js +55 -7
  243. package/dist/index219.js.map +1 -1
  244. package/dist/index220.js +16 -6
  245. package/dist/index220.js.map +1 -1
  246. package/dist/index221.js +7 -5
  247. package/dist/index221.js.map +1 -1
  248. package/dist/index222.js +10 -6
  249. package/dist/index222.js.map +1 -1
  250. package/dist/index223.js +10 -7
  251. package/dist/index223.js.map +1 -1
  252. package/dist/index224.js +21 -6
  253. package/dist/index224.js.map +1 -1
  254. package/dist/index225.js +10 -55
  255. package/dist/index225.js.map +1 -1
  256. package/dist/index226.js +9 -16
  257. package/dist/index226.js.map +1 -1
  258. package/dist/index227.js +9 -7
  259. package/dist/index227.js.map +1 -1
  260. package/dist/index228.js +4 -10
  261. package/dist/index228.js.map +1 -1
  262. package/dist/index229.js +5 -10
  263. package/dist/index229.js.map +1 -1
  264. package/dist/index230.js +16 -21
  265. package/dist/index230.js.map +1 -1
  266. package/dist/index231.js +9 -10
  267. package/dist/index231.js.map +1 -1
  268. package/dist/index232.js +18 -9
  269. package/dist/index232.js.map +1 -1
  270. package/dist/index233.js +15 -9
  271. package/dist/index233.js.map +1 -1
  272. package/dist/index234.js +12 -4
  273. package/dist/index234.js.map +1 -1
  274. package/dist/index235.js +29 -5
  275. package/dist/index235.js.map +1 -1
  276. package/dist/index236.js +11 -15
  277. package/dist/index236.js.map +1 -1
  278. package/dist/index237.js +25 -9
  279. package/dist/index237.js.map +1 -1
  280. package/dist/index238.js +5 -18
  281. package/dist/index238.js.map +1 -1
  282. package/dist/index239.js +13 -15
  283. package/dist/index239.js.map +1 -1
  284. package/dist/index24.js +1 -1
  285. package/dist/index240.js +154 -12
  286. package/dist/index240.js.map +1 -1
  287. package/dist/index241.js +29 -28
  288. package/dist/index241.js.map +1 -1
  289. package/dist/index242.js +9 -12
  290. package/dist/index242.js.map +1 -1
  291. package/dist/index243.js +46 -23
  292. package/dist/index243.js.map +1 -1
  293. package/dist/index244.js +11 -5
  294. package/dist/index244.js.map +1 -1
  295. package/dist/index245.js +44 -13
  296. package/dist/index245.js.map +1 -1
  297. package/dist/index246.js +86 -145
  298. package/dist/index246.js.map +1 -1
  299. package/dist/index247.js +83 -27
  300. package/dist/index247.js.map +1 -1
  301. package/dist/index248.js +105 -9
  302. package/dist/index248.js.map +1 -1
  303. package/dist/index249.js +45 -41
  304. package/dist/index249.js.map +1 -1
  305. package/dist/index250.js +11 -11
  306. package/dist/index250.js.map +1 -1
  307. package/dist/index251.js +35 -42
  308. package/dist/index251.js.map +1 -1
  309. package/dist/index252.js +8 -95
  310. package/dist/index252.js.map +1 -1
  311. package/dist/index253.js +110 -80
  312. package/dist/index253.js.map +1 -1
  313. package/dist/index254.js +17 -105
  314. package/dist/index254.js.map +1 -1
  315. package/dist/index255.js +14 -51
  316. package/dist/index255.js.map +1 -1
  317. package/dist/index256.js +3 -11
  318. package/dist/index256.js.map +1 -1
  319. package/dist/index257.js +32 -33
  320. package/dist/index257.js.map +1 -1
  321. package/dist/index258.js +20 -8
  322. package/dist/index258.js.map +1 -1
  323. package/dist/index259.js +9 -3
  324. package/dist/index259.js.map +1 -1
  325. package/dist/index260.js +7 -8
  326. package/dist/index260.js.map +1 -1
  327. package/dist/index261.js +22 -114
  328. package/dist/index261.js.map +1 -1
  329. package/dist/index262.js +29 -18
  330. package/dist/index262.js.map +1 -1
  331. package/dist/index263.js +5 -16
  332. package/dist/index263.js.map +1 -1
  333. package/dist/index264.js +14 -31
  334. package/dist/index264.js.map +1 -1
  335. package/dist/index265.js +27 -19
  336. package/dist/index265.js.map +1 -1
  337. package/dist/index266.js +15 -7
  338. package/dist/index266.js.map +1 -1
  339. package/dist/index267.js +65 -17
  340. package/dist/index267.js.map +1 -1
  341. package/dist/index268.js +178 -26
  342. package/dist/index268.js.map +1 -1
  343. package/dist/index269.js +44 -14
  344. package/dist/index269.js.map +1 -1
  345. package/dist/index270.js +5 -5
  346. package/dist/index270.js.map +1 -1
  347. package/dist/index271.js +19 -3
  348. package/dist/index271.js.map +1 -1
  349. package/dist/index272.js +12 -23
  350. package/dist/index272.js.map +1 -1
  351. package/dist/index273.js +19 -111
  352. package/dist/index273.js.map +1 -1
  353. package/dist/index274.js +5 -16
  354. package/dist/index274.js.map +1 -1
  355. package/dist/index275.js +3 -525
  356. package/dist/index275.js.map +1 -1
  357. package/dist/index276.js +23 -127
  358. package/dist/index276.js.map +1 -1
  359. package/dist/index277.js +108 -129
  360. package/dist/index277.js.map +1 -1
  361. package/dist/index278.js +15 -4
  362. package/dist/index278.js.map +1 -1
  363. package/dist/index279.js +523 -17
  364. package/dist/index279.js.map +1 -1
  365. package/dist/index280.js +127 -12
  366. package/dist/index280.js.map +1 -1
  367. package/dist/index281.js +133 -20
  368. package/dist/index281.js.map +1 -1
  369. package/dist/index282.js +5 -64
  370. package/dist/index282.js.map +1 -1
  371. package/dist/index283.js +6 -69
  372. package/dist/index283.js.map +1 -1
  373. package/dist/index284.js +4 -9
  374. package/dist/index284.js.map +1 -1
  375. package/dist/index285.js +16 -14
  376. package/dist/index285.js.map +1 -1
  377. package/dist/index286.js +8 -65
  378. package/dist/index286.js.map +1 -1
  379. package/dist/index287.js +5 -5
  380. package/dist/index287.js.map +1 -1
  381. package/dist/index288.js +4 -5
  382. package/dist/index288.js.map +1 -1
  383. package/dist/index289.js +546 -4
  384. package/dist/index289.js.map +1 -1
  385. package/dist/index290.js +47 -16
  386. package/dist/index290.js.map +1 -1
  387. package/dist/index291.js +17 -8
  388. package/dist/index291.js.map +1 -1
  389. package/dist/index292.js +6 -5
  390. package/dist/index292.js.map +1 -1
  391. package/dist/index293.js +8 -4
  392. package/dist/index293.js.map +1 -1
  393. package/dist/index294.js +7 -545
  394. package/dist/index294.js.map +1 -1
  395. package/dist/index295.js +9 -47
  396. package/dist/index295.js.map +1 -1
  397. package/dist/index296.js +12 -17
  398. package/dist/index296.js.map +1 -1
  399. package/dist/index297.js +9 -6
  400. package/dist/index297.js.map +1 -1
  401. package/dist/index298.js +13 -8
  402. package/dist/index298.js.map +1 -1
  403. package/dist/index299.js +64 -7
  404. package/dist/index299.js.map +1 -1
  405. package/dist/index300.js +69 -9
  406. package/dist/index300.js.map +1 -1
  407. package/dist/index301.js +9 -13
  408. package/dist/index301.js.map +1 -1
  409. package/dist/index302.js +14 -10
  410. package/dist/index302.js.map +1 -1
  411. package/dist/index303.js +66 -14
  412. package/dist/index303.js.map +1 -1
  413. package/dist/index304.js +4 -3
  414. package/dist/index304.js.map +1 -1
  415. package/dist/index305.js +56 -23
  416. package/dist/index305.js.map +1 -1
  417. package/dist/index306.js +68 -5
  418. package/dist/index306.js.map +1 -1
  419. package/dist/index307.js +30 -55
  420. package/dist/index307.js.map +1 -1
  421. package/dist/index308.js +9 -68
  422. package/dist/index308.js.map +1 -1
  423. package/dist/index309.js +148 -26
  424. package/dist/index309.js.map +1 -1
  425. package/dist/index31.js +5 -5
  426. package/dist/index310.js +108 -9
  427. package/dist/index310.js.map +1 -1
  428. package/dist/index311.js +4 -153
  429. package/dist/index311.js.map +1 -1
  430. package/dist/index312.js +23 -108
  431. package/dist/index312.js.map +1 -1
  432. package/dist/index313.js +15 -12
  433. package/dist/index313.js.map +1 -1
  434. package/dist/index314.js +26 -25
  435. package/dist/index314.js.map +1 -1
  436. package/dist/index315.js +13 -5
  437. package/dist/index315.js.map +1 -1
  438. package/dist/index316.js +6 -22
  439. package/dist/index316.js.map +1 -1
  440. package/dist/index317.js +22 -15
  441. package/dist/index317.js.map +1 -1
  442. package/dist/index318.js +12 -28
  443. package/dist/index318.js.map +1 -1
  444. package/dist/index319.js +27 -12
  445. package/dist/index319.js.map +1 -1
  446. package/dist/index32.js +24 -24
  447. package/dist/index320.js +5 -7
  448. package/dist/index320.js.map +1 -1
  449. package/dist/index33.js +3 -3
  450. package/dist/index40.js +2 -2
  451. package/dist/index41.js +20 -20
  452. package/dist/index45.js +1 -1
  453. package/dist/index46.js +1 -1
  454. package/dist/index49.js +1 -1
  455. package/dist/index50.js +1 -1
  456. package/dist/index51.js +2 -4
  457. package/dist/index51.js.map +1 -1
  458. package/dist/index52.js +2 -7
  459. package/dist/index52.js.map +1 -1
  460. package/dist/index53.js +2 -48
  461. package/dist/index53.js.map +1 -1
  462. package/dist/index54.js +2 -27
  463. package/dist/index54.js.map +1 -1
  464. package/dist/index55.js +5 -49
  465. package/dist/index55.js.map +1 -1
  466. package/dist/index56.js +33 -7
  467. package/dist/index56.js.map +1 -1
  468. package/dist/index57.js +25 -13
  469. package/dist/index57.js.map +1 -1
  470. package/dist/index58.js +7 -133
  471. package/dist/index58.js.map +1 -1
  472. package/dist/index59.js +11 -10
  473. package/dist/index59.js.map +1 -1
  474. package/dist/index60.js +191 -203
  475. package/dist/index60.js.map +1 -1
  476. package/dist/index61.js +4 -13
  477. package/dist/index61.js.map +1 -1
  478. package/dist/index62.js +47 -33
  479. package/dist/index62.js.map +1 -1
  480. package/dist/index63.js +47 -43
  481. package/dist/index63.js.map +1 -1
  482. package/dist/index64.js +7 -7
  483. package/dist/index64.js.map +1 -1
  484. package/dist/index65.js +13 -48
  485. package/dist/index65.js.map +1 -1
  486. package/dist/index66.js +134 -4
  487. package/dist/index66.js.map +1 -1
  488. package/dist/index67.js +10 -5
  489. package/dist/index67.js.map +1 -1
  490. package/dist/index68.js +216 -27
  491. package/dist/index68.js.map +1 -1
  492. package/dist/index69.js +13 -50
  493. package/dist/index69.js.map +1 -1
  494. package/dist/index70.js +47 -9
  495. package/dist/index70.js.map +1 -1
  496. package/dist/index71.js +48 -203
  497. package/dist/index71.js.map +1 -1
  498. package/dist/index72.js +4 -2
  499. package/dist/index72.js.map +1 -1
  500. package/dist/index73.js +6 -2
  501. package/dist/index73.js.map +1 -1
  502. package/dist/index74.js +28 -2
  503. package/dist/index74.js.map +1 -1
  504. package/dist/index75.js +50 -2
  505. package/dist/index75.js.map +1 -1
  506. package/dist/index76.js +8 -11
  507. package/dist/index76.js.map +1 -1
  508. package/dist/index77.js +1 -1
  509. package/dist/index78.js +2 -2
  510. package/dist/index79.js +2 -2
  511. package/dist/index80.js +52 -47
  512. package/dist/index80.js.map +1 -1
  513. package/dist/index81.js +4 -205
  514. package/dist/index81.js.map +1 -1
  515. package/dist/index82.js +5 -22
  516. package/dist/index82.js.map +1 -1
  517. package/dist/index83.js +15 -24
  518. package/dist/index83.js.map +1 -1
  519. package/dist/index84.js +5 -399
  520. package/dist/index84.js.map +1 -1
  521. package/dist/index85.js +7 -46
  522. package/dist/index85.js.map +1 -1
  523. package/dist/index86.js +15 -604
  524. package/dist/index86.js.map +1 -1
  525. package/dist/index87.js +5 -52
  526. package/dist/index87.js.map +1 -1
  527. package/dist/index88.js +4 -4
  528. package/dist/index88.js.map +1 -1
  529. package/dist/index89.js +5 -4
  530. package/dist/index89.js.map +1 -1
  531. package/dist/index90.js +5 -15
  532. package/dist/index90.js.map +1 -1
  533. package/dist/index91.js +3 -4
  534. package/dist/index91.js.map +1 -1
  535. package/dist/index92.js +3 -6
  536. package/dist/index92.js.map +1 -1
  537. package/dist/index93.js +5 -15
  538. package/dist/index93.js.map +1 -1
  539. package/dist/index94.js +24 -4
  540. package/dist/index94.js.map +1 -1
  541. package/dist/index95.js +6 -4
  542. package/dist/index95.js.map +1 -1
  543. package/dist/index96.js +4 -5
  544. package/dist/index96.js.map +1 -1
  545. package/dist/index97.js +6 -5
  546. package/dist/index97.js.map +1 -1
  547. package/dist/index98.js +4 -3
  548. package/dist/index98.js.map +1 -1
  549. package/dist/index99.js +4 -4
  550. package/dist/index99.js.map +1 -1
  551. package/package.json +1 -1
package/dist/index255.js CHANGED
@@ -1,56 +1,19 @@
1
- import f from "./index261.js";
2
- function o(r) {
3
- "@babel/helpers - typeof";
4
- return o = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
5
- return typeof e;
6
- } : function(e) {
7
- return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
8
- }, o(r);
9
- }
10
- function i(r, e) {
11
- var t = Object.keys(r);
12
- if (Object.getOwnPropertySymbols) {
13
- var n = Object.getOwnPropertySymbols(r);
14
- e && (n = n.filter(function(c) {
15
- return Object.getOwnPropertyDescriptor(r, c).enumerable;
16
- })), t.push.apply(t, n);
17
- }
18
- return t;
19
- }
20
- function u(r) {
21
- for (var e = 1; e < arguments.length; e++) {
22
- var t = arguments[e] != null ? arguments[e] : {};
23
- e % 2 ? i(Object(t), !0).forEach(function(n) {
24
- p(r, n, t[n]);
25
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(r, Object.getOwnPropertyDescriptors(t)) : i(Object(t)).forEach(function(n) {
26
- Object.defineProperty(r, n, Object.getOwnPropertyDescriptor(t, n));
27
- });
28
- }
29
- return r;
30
- }
31
- function p(r, e, t) {
32
- return (e = b(e)) in r ? Object.defineProperty(r, e, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : r[e] = t, r;
33
- }
34
- function b(r) {
35
- var e = y(r, "string");
36
- return o(e) == "symbol" ? e : e + "";
37
- }
38
- function y(r, e) {
39
- if (o(r) != "object" || !r) return r;
40
- var t = r[Symbol.toPrimitive];
41
- if (t !== void 0) {
42
- var n = t.call(r, e);
43
- if (o(n) != "object") return n;
44
- throw new TypeError("@@toPrimitive must return a primitive value.");
1
+ import o from "./index260.js";
2
+ var n = new RegExp("(?:" + o() + ")$", "i");
3
+ function c(e) {
4
+ var a = e.search(n);
5
+ if (a < 0)
6
+ return {};
7
+ for (var i = e.slice(0, a), r = e.match(n), t = 1; t < r.length; ) {
8
+ if (r[t])
9
+ return {
10
+ number: i,
11
+ ext: r[t]
12
+ };
13
+ t++;
45
14
  }
46
- return (e === "string" ? String : Number)(r);
47
- }
48
- function l(r, e, t) {
49
- return f(r, u(u({}, e), {}, {
50
- v2: !0
51
- }), t);
52
15
  }
53
16
  export {
54
- l as default
17
+ c as default
55
18
  };
56
19
  //# sourceMappingURL=index255.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index255.js","sources":["../../../node_modules/libphonenumber-js/es6/parsePhoneNumberWithError_.js"],"sourcesContent":["function _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nimport parse from './parse.js';\nexport default function parsePhoneNumberWithError(text, options, metadata) {\n return parse(text, _objectSpread(_objectSpread({}, options), {}, {\n v2: true\n }), metadata);\n}\n//# sourceMappingURL=parsePhoneNumberWithError_.js.map"],"names":["_typeof","o","ownKeys","e","r","_objectSpread","_defineProperty","_toPropertyKey","t","i","_toPrimitive","parsePhoneNumberWithError","text","options","metadata","parse"],"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,EAAQC,GAAGC,GAAG;AAAE,MAAI,IAAI,OAAO,KAAKD,CAAC;AAAG,MAAI,OAAO,uBAAuB;AAAE,QAAIF,IAAI,OAAO,sBAAsBE,CAAC;AAAG,IAAAC,MAAMH,IAAIA,EAAE,OAAO,SAAUG,GAAG;AAAE,aAAO,OAAO,yBAAyBD,GAAGC,CAAC,EAAE;AAAA,IAAY,CAAC,IAAI,EAAE,KAAK,MAAM,GAAGH,CAAC;AAAA,EAAG;AAAE,SAAO;AAAG;AAC9P,SAASI,EAAcF,GAAG;AAAE,WAASC,IAAI,GAAGA,IAAI,UAAU,QAAQA,KAAK;AAAE,QAAI,IAAY,UAAUA,CAAC,KAAnB,OAAuB,UAAUA,CAAC,IAAI,CAAA;AAAI,IAAAA,IAAI,IAAIF,EAAQ,OAAO,CAAC,GAAG,EAAE,EAAE,QAAQ,SAAUE,GAAG;AAAE,MAAAE,EAAgBH,GAAGC,GAAG,EAAEA,CAAC,CAAC;AAAA,IAAG,CAAC,IAAI,OAAO,4BAA4B,OAAO,iBAAiBD,GAAG,OAAO,0BAA0B,CAAC,CAAC,IAAID,EAAQ,OAAO,CAAC,CAAC,EAAE,QAAQ,SAAUE,GAAG;AAAE,aAAO,eAAeD,GAAGC,GAAG,OAAO,yBAAyB,GAAGA,CAAC,CAAC;AAAA,IAAG,CAAC;AAAA,EAAG;AAAE,SAAOD;AAAG;AACtb,SAASG,EAAgBH,GAAGC,GAAG,GAAG;AAAE,UAAQA,IAAIG,EAAeH,CAAC,MAAMD,IAAI,OAAO,eAAeA,GAAGC,GAAG,EAAE,OAAO,GAAG,YAAY,IAAI,cAAc,IAAI,UAAU,GAAE,CAAE,IAAID,EAAEC,CAAC,IAAI,GAAGD;AAAG;AACnL,SAASI,EAAeC,GAAG;AAAE,MAAIC,IAAIC,EAAaF,GAAG,QAAQ;AAAG,SAAmBR,EAAQS,CAAC,KAArB,WAAyBA,IAAIA,IAAI;AAAI;AAC5G,SAASC,EAAaF,GAAGJ,GAAG;AAAE,MAAgBJ,EAAQQ,CAAC,KAArB,YAA0B,CAACA,EAAG,QAAOA;AAAG,MAAIL,IAAIK,EAAE,OAAO,WAAW;AAAG,MAAeL,MAAX,QAAc;AAAE,QAAIM,IAAIN,EAAE,KAAKK,GAAGJ,CAAc;AAAG,QAAgBJ,EAAQS,CAAC,KAArB,SAAwB,QAAOA;AAAG,UAAM,IAAI,UAAU,8CAA8C;AAAA,EAAG;AAAE,UAAqBL,MAAb,WAAiB,SAAS,QAAQI,CAAC;AAAG;AAE5S,SAASG,EAA0BC,GAAMC,GAASC,GAAU;AACzE,SAAOC,EAAMH,GAAMP,EAAcA,EAAc,IAAIQ,CAAO,GAAG,IAAI;AAAA,IAC/D,IAAI;AAAA,EACR,CAAG,GAAGC,CAAQ;AACd;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index255.js","sources":["../../../node_modules/libphonenumber-js/es6/helpers/extension/extractExtension.js"],"sourcesContent":["import createExtensionPattern from './createExtensionPattern.js';\n\n// Regexp of all known extension prefixes used by different regions followed by\n// 1 or more valid digits, for use when parsing.\nvar EXTN_PATTERN = new RegExp('(?:' + createExtensionPattern() + ')$', 'i');\n\n// Strips any extension (as in, the part of the number dialled after the call is\n// connected, usually indicated with extn, ext, x or similar) from the end of\n// the number, and returns it.\nexport default function extractExtension(number) {\n var start = number.search(EXTN_PATTERN);\n if (start < 0) {\n return {};\n }\n // If we find a potential extension, and the number preceding this is a viable\n // number, we assume it is an extension.\n var numberWithoutExtension = number.slice(0, start);\n var matches = number.match(EXTN_PATTERN);\n var i = 1;\n while (i < matches.length) {\n if (matches[i]) {\n return {\n number: numberWithoutExtension,\n ext: matches[i]\n };\n }\n i++;\n }\n}\n//# sourceMappingURL=extractExtension.js.map"],"names":["EXTN_PATTERN","createExtensionPattern","extractExtension","number","start","numberWithoutExtension","matches","i"],"mappings":";AAIA,IAAIA,IAAe,IAAI,OAAO,QAAQC,EAAsB,IAAK,MAAM,GAAG;AAK3D,SAASC,EAAiBC,GAAQ;AAC/C,MAAIC,IAAQD,EAAO,OAAOH,CAAY;AACtC,MAAII,IAAQ;AACV,WAAO,CAAA;AAOT,WAHIC,IAAyBF,EAAO,MAAM,GAAGC,CAAK,GAC9CE,IAAUH,EAAO,MAAMH,CAAY,GACnCO,IAAI,GACDA,IAAID,EAAQ,UAAQ;AACzB,QAAIA,EAAQC,CAAC;AACX,aAAO;AAAA,QACL,QAAQF;AAAA,QACR,KAAKC,EAAQC,CAAC;AAAA,MACtB;AAEI,IAAAA;AAAA,EACF;AACF;","x_google_ignoreList":[0]}
package/dist/index256.js CHANGED
@@ -1,15 +1,7 @@
1
- function f(r, t) {
2
- r = r.split("-"), t = t.split("-");
3
- for (var N = r[0].split("."), s = t[0].split("."), e = 0; e < 3; e++) {
4
- var i = Number(N[e]), u = Number(s[e]);
5
- if (i > u) return 1;
6
- if (u > i) return -1;
7
- if (!isNaN(i) && isNaN(u)) return 1;
8
- if (isNaN(i) && !isNaN(u)) return -1;
9
- }
10
- return r[1] && t[1] ? r[1] > t[1] ? 1 : r[1] < t[1] ? -1 : 0 : !r[1] && t[1] ? 1 : r[1] && !t[1] ? -1 : 0;
1
+ function r(e, n) {
2
+ return e = e || "", new RegExp("^(?:" + n + ")$").test(e);
11
3
  }
12
4
  export {
13
- f as default
5
+ r as default
14
6
  };
15
7
  //# sourceMappingURL=index256.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index256.js","sources":["../../../node_modules/libphonenumber-js/es6/tools/semver-compare.js"],"sourcesContent":["// Copy-pasted from:\n// https://github.com/substack/semver-compare/blob/master/index.js\n//\n// Inlining this function because some users reported issues with\n// importing from `semver-compare` in a browser with ES6 \"native\" modules.\n//\n// Fixes `semver-compare` not being able to compare versions with alpha/beta/etc \"tags\".\n// https://github.com/catamphetamine/libphonenumber-js/issues/381\nexport default function (a, b) {\n a = a.split('-');\n b = b.split('-');\n var pa = a[0].split('.');\n var pb = b[0].split('.');\n for (var i = 0; i < 3; i++) {\n var na = Number(pa[i]);\n var nb = Number(pb[i]);\n if (na > nb) return 1;\n if (nb > na) return -1;\n if (!isNaN(na) && isNaN(nb)) return 1;\n if (isNaN(na) && !isNaN(nb)) return -1;\n }\n if (a[1] && b[1]) {\n return a[1] > b[1] ? 1 : a[1] < b[1] ? -1 : 0;\n }\n return !a[1] && b[1] ? 1 : a[1] && !b[1] ? -1 : 0;\n}\n//# sourceMappingURL=semver-compare.js.map"],"names":["compare","a","b","pa","pb","i","na","nb"],"mappings":"AAQe,SAAAA,EAAUC,GAAGC,GAAG;AAC7B,EAAAD,IAAIA,EAAE,MAAM,GAAG,GACfC,IAAIA,EAAE,MAAM,GAAG;AAGf,WAFIC,IAAKF,EAAE,CAAC,EAAE,MAAM,GAAG,GACnBG,IAAKF,EAAE,CAAC,EAAE,MAAM,GAAG,GACdG,IAAI,GAAGA,IAAI,GAAGA,KAAK;AAC1B,QAAIC,IAAK,OAAOH,EAAGE,CAAC,CAAC,GACjBE,IAAK,OAAOH,EAAGC,CAAC,CAAC;AACrB,QAAIC,IAAKC,EAAI,QAAO;AACpB,QAAIA,IAAKD,EAAI,QAAO;AACpB,QAAI,CAAC,MAAMA,CAAE,KAAK,MAAMC,CAAE,EAAG,QAAO;AACpC,QAAI,MAAMD,CAAE,KAAK,CAAC,MAAMC,CAAE,EAAG,QAAO;AAAA,EACtC;AACA,SAAIN,EAAE,CAAC,KAAKC,EAAE,CAAC,IACND,EAAE,CAAC,IAAIC,EAAE,CAAC,IAAI,IAAID,EAAE,CAAC,IAAIC,EAAE,CAAC,IAAI,KAAK,IAEvC,CAACD,EAAE,CAAC,KAAKC,EAAE,CAAC,IAAI,IAAID,EAAE,CAAC,KAAK,CAACC,EAAE,CAAC,IAAI,KAAK;AAClD;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index256.js","sources":["../../../node_modules/libphonenumber-js/es6/helpers/matchesEntirely.js"],"sourcesContent":["/**\r\n * Checks whether the entire input sequence can be matched\r\n * against the regular expression.\r\n * @return {boolean}\r\n */\nexport default function matchesEntirely(text, regularExpressionText) {\n // If the assigning of the `''` default value is moved to the arguments above,\n // the code coverage would decrease for some weird reason.\n text = text || '';\n return new RegExp('^(?:' + regularExpressionText + ')$').test(text);\n}\n//# sourceMappingURL=matchesEntirely.js.map"],"names":["matchesEntirely","text","regularExpressionText"],"mappings":"AAKe,SAASA,EAAgBC,GAAMC,GAAuB;AAGnE,SAAAD,IAAOA,KAAQ,IACR,IAAI,OAAO,SAASC,IAAwB,IAAI,EAAE,KAAKD,CAAI;AACpE;","x_google_ignoreList":[0]}
package/dist/index257.js CHANGED
@@ -1,41 +1,40 @@
1
- import { parseDigit as i } from "./index166.js";
2
- function u(e, t) {
3
- var r = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
4
- if (r) return (r = r.call(e)).next.bind(r);
5
- if (Array.isArray(e) || (r = l(e)) || t) {
6
- r && (e = r);
7
- var n = 0;
8
- return function() {
9
- return n >= e.length ? { done: !0 } : { done: !1, value: e[n++] };
10
- };
1
+ import l from "./index265.js";
2
+ import o from "./index256.js";
3
+ import u from "./index239.js";
4
+ import N from "./index170.js";
5
+ function g(e, n, r) {
6
+ var i = l(e, r), a = i.carrierCode, t = i.nationalNumber;
7
+ if (t !== e) {
8
+ if (!m(e, t, r))
9
+ return {
10
+ nationalNumber: e
11
+ };
12
+ if (r.numberingPlan.possibleLengths() && (n || (n = N(r.numberingPlan.callingCode(), {
13
+ nationalNumber: t,
14
+ metadata: r
15
+ })), !f(t, n, r)))
16
+ return {
17
+ nationalNumber: e
18
+ };
11
19
  }
12
- throw new TypeError(`Invalid attempt to iterate non-iterable instance.
13
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
20
+ return {
21
+ nationalNumber: t,
22
+ carrierCode: a
23
+ };
14
24
  }
15
- function l(e, t) {
16
- if (e) {
17
- if (typeof e == "string") return o(e, t);
18
- var r = {}.toString.call(e).slice(8, -1);
19
- return r === "Object" && e.constructor && (r = e.constructor.name), r === "Map" || r === "Set" ? Array.from(e) : r === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r) ? o(e, t) : void 0;
20
- }
21
- }
22
- function o(e, t) {
23
- (t == null || t > e.length) && (t = e.length);
24
- for (var r = 0, n = Array(t); r < t; r++) n[r] = e[r];
25
- return n;
25
+ function m(e, n, r) {
26
+ return !(o(e, r.nationalNumberPattern()) && !o(n, r.nationalNumberPattern()));
26
27
  }
27
- function c(e) {
28
- for (var t = "", r = u(e.split("")), n; !(n = r()).done; ) {
29
- var a = n.value;
30
- t += f(a, t) || "";
28
+ function f(e, n, r) {
29
+ switch (u(e, n, r)) {
30
+ case "TOO_SHORT":
31
+ case "INVALID_LENGTH":
32
+ return !1;
33
+ default:
34
+ return !0;
31
35
  }
32
- return t;
33
- }
34
- function f(e, t, r) {
35
- return e === "+" ? t ? void 0 : "+" : i(e);
36
36
  }
37
37
  export {
38
- c as default,
39
- f as parsePhoneNumberCharacter
38
+ g as default
40
39
  };
41
40
  //# sourceMappingURL=index257.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index257.js","sources":["../../../node_modules/libphonenumber-js/es6/parseIncompletePhoneNumber.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 { parseDigit } from './helpers/parseDigits.js';\n\n/**\r\n * Parses phone number characters from a string.\r\n * Drops all punctuation leaving only digits and the leading `+` sign (if any).\r\n * Also converts wide-ascii and arabic-indic numerals to conventional numerals.\r\n * E.g. in Iraq they don't write `+442323234` but rather `+٤٤٢٣٢٣٢٣٤`.\r\n * @param {string} string\r\n * @return {string}\r\n * @example\r\n * ```js\r\n * // Outputs '8800555'.\r\n * parseIncompletePhoneNumber('8 (800) 555')\r\n * // Outputs '+7800555'.\r\n * parseIncompletePhoneNumber('+7 800 555')\r\n * ```\r\n */\nexport default function parseIncompletePhoneNumber(string) {\n var result = '';\n // Using `.split('')` here instead of normal `for ... of`\n // because the importing application doesn't neccessarily include an ES6 polyfill.\n // The `.split('')` approach discards \"exotic\" UTF-8 characters\n // (the ones consisting of four bytes) but digits\n // (including non-European ones) don't fall into that range\n // so such \"exotic\" characters would be discarded anyway.\n for (var _iterator = _createForOfIteratorHelperLoose(string.split('')), _step; !(_step = _iterator()).done;) {\n var character = _step.value;\n result += parsePhoneNumberCharacter(character, result) || '';\n }\n return result;\n}\n\n/**\r\n * Parses next character while parsing phone number digits (including a `+`)\r\n * from text: discards everything except `+` and digits, and `+` is only allowed\r\n * at the start of a phone number.\r\n * For example, is used in `react-phone-number-input` where it uses\r\n * [`input-format`](https://gitlab.com/catamphetamine/input-format).\r\n * @param {string} character - Yet another character from raw input string.\r\n * @param {string?} prevParsedCharacters - Previous parsed characters.\r\n * @param {function?} eventListener - An optional \"on event\" function.\r\n * @return {string?} The parsed character.\r\n */\nexport function parsePhoneNumberCharacter(character, prevParsedCharacters, eventListener) {\n // Only allow a leading `+`.\n if (character === '+') {\n // If this `+` is not the first parsed character\n // then discard it.\n if (prevParsedCharacters) {\n // `eventListener` argument was added to this `export`ed function on Dec 26th, 2023.\n // Any 3rd-party code that used to `import` and call this function before that\n // won't be passing any `eventListener` argument.\n //\n // The addition of the `eventListener` argument was to fix the slightly-weird behavior\n // of parsing an input string when the user inputs something like `\"2+7\"\n // https://github.com/catamphetamine/react-phone-number-input/issues/437\n //\n // If the parser encounters an unexpected `+` in a string being parsed\n // then it simply discards that out-of-place `+` and any following characters.\n //\n if (typeof eventListener === 'function') {\n eventListener('end');\n }\n return;\n }\n return '+';\n }\n // Allow digits.\n return parseDigit(character);\n}\n//# sourceMappingURL=parseIncompletePhoneNumber.js.map"],"names":["_createForOfIteratorHelperLoose","r","e","t","_unsupportedIterableToArray","o","a","_arrayLikeToArray","parseIncompletePhoneNumber","string","result","_iterator","_step","character","parsePhoneNumberCharacter","prevParsedCharacters","eventListener","parseDigit"],"mappings":";AAAA,SAASA,EAAgCC,GAAGC,GAAG;AAAE,MAAIC,IAAmB,OAAO,SAAtB,OAAgCF,EAAE,OAAO,QAAQ,KAAKA,EAAE,YAAY;AAAG,MAAIE,EAAG,SAAQA,IAAIA,EAAE,KAAKF,CAAC,GAAG,KAAK,KAAKE,CAAC;AAAG,MAAI,MAAM,QAAQF,CAAC,MAAME,IAAIC,EAA4BH,CAAC,MAAMC,GAAuC;AAAE,IAAAC,MAAMF,IAAIE;AAAI,QAAIE,IAAI;AAAG,WAAO,WAAY;AAAE,aAAOA,KAAKJ,EAAE,SAAS,EAAE,MAAM,GAAE,IAAK,EAAE,MAAM,IAAI,OAAOA,EAAEI,GAAG,EAAC;AAAA,IAAI;AAAA,EAAG;AAAE,QAAM,IAAI,UAAU;AAAA,mFAAuI;AAAG;AACziB,SAASD,EAA4BH,GAAGK,GAAG;AAAE,MAAIL,GAAG;AAAE,QAAgB,OAAOA,KAAnB,SAAsB,QAAOM,EAAkBN,GAAGK,CAAC;AAAG,QAAIH,IAAI,CAAA,EAAG,SAAS,KAAKF,CAAC,EAAE,MAAM,GAAG,EAAE;AAAG,WAAoBE,MAAb,YAAkBF,EAAE,gBAAgBE,IAAIF,EAAE,YAAY,OAAiBE,MAAV,SAAyBA,MAAV,QAAc,MAAM,KAAKF,CAAC,IAAoBE,MAAhB,eAAqB,2CAA2C,KAAKA,CAAC,IAAII,EAAkBN,GAAGK,CAAC,IAAI;AAAA,EAAQ;AAAE;AACzX,SAASC,EAAkBN,GAAGK,GAAG;AAAE,GAASA,KAAR,QAAaA,IAAIL,EAAE,YAAYK,IAAIL,EAAE;AAAS,WAASC,IAAI,GAAG,IAAI,MAAMI,CAAC,GAAGJ,IAAII,GAAGJ,IAAK,GAAEA,CAAC,IAAID,EAAEC,CAAC;AAAG,SAAO;AAAG;AAkBpI,SAASM,EAA2BC,GAAQ;AAQzD,WAPIC,IAAS,IAOJC,IAAYX,EAAgCS,EAAO,MAAM,EAAE,CAAC,GAAGG,GAAO,EAAEA,IAAQD,EAAS,GAAI,QAAO;AAC3G,QAAIE,IAAYD,EAAM;AACtB,IAAAF,KAAUI,EAA0BD,GAAWH,CAAM,KAAK;AAAA,EAC5D;AACA,SAAOA;AACT;AAaO,SAASI,EAA0BD,GAAWE,GAAsBC,GAAe;AAExF,SAAIH,MAAc,MAGZE,IAeF,SAEK,MAGFE,EAAWJ,CAAS;AAC7B;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index257.js","sources":["../../../node_modules/libphonenumber-js/es6/helpers/extractNationalNumber.js"],"sourcesContent":["import extractNationalNumberFromPossiblyIncompleteNumber from './extractNationalNumberFromPossiblyIncompleteNumber.js';\nimport matchesEntirely from './matchesEntirely.js';\nimport checkNumberLength from './checkNumberLength.js';\nimport getCountryByCallingCode from './getCountryByCallingCode.js';\n\n/**\r\n * Strips national prefix and carrier code from a complete phone number.\r\n * The difference from the non-\"FromCompleteNumber\" function is that\r\n * it won't extract national prefix if the resultant number is too short\r\n * to be a complete number for the selected phone numbering plan.\r\n * @param {string} number Complete phone number digits.\r\n * @param {string?} country Country, if known.\r\n * @param {Metadata} metadata Metadata with a phone numbering plan selected.\r\n * @return {object} `{ nationalNumber: string, carrierCode: string? }`.\r\n */\nexport default function extractNationalNumber(number, country, metadata) {\n // Parsing national prefixes and carrier codes\n // is only required for local phone numbers\n // but some people don't understand that\n // and sometimes write international phone numbers\n // with national prefixes (or maybe even carrier codes).\n // http://ucken.blogspot.ru/2016/03/trunk-prefixes-in-skype4b.html\n // Google's original library forgives such mistakes\n // and so does this library, because it has been requested:\n // https://github.com/catamphetamine/libphonenumber-js/issues/127\n var _extractNationalNumbe = extractNationalNumberFromPossiblyIncompleteNumber(number, metadata),\n carrierCode = _extractNationalNumbe.carrierCode,\n nationalNumber = _extractNationalNumbe.nationalNumber;\n if (nationalNumber !== number) {\n if (!shouldHaveExtractedNationalPrefix(number, nationalNumber, metadata)) {\n // Don't strip the national prefix.\n return {\n nationalNumber: number\n };\n }\n // Check the national (significant) number length after extracting national prefix and carrier code.\n // Legacy generated metadata (before `1.0.18`) didn't support the \"possible lengths\" feature.\n if (metadata.numberingPlan.possibleLengths()) {\n // If an exact `country` is not specified, attempt to detect it from the assumed national number.\n if (!country) {\n country = getCountryByCallingCode(metadata.numberingPlan.callingCode(), {\n nationalNumber: nationalNumber,\n metadata: metadata\n });\n }\n\n // The number remaining after stripping the national prefix and carrier code\n // should be long enough to have a possible length for the country.\n // Otherwise, don't strip the national prefix and carrier code,\n // since the original number could be a valid number.\n // This check has been copy-pasted \"as is\" from Google's original library:\n // https://github.com/google/libphonenumber/blob/876268eb1ad6cdc1b7b5bef17fc5e43052702d57/java/libphonenumber/src/com/google/i18n/phonenumbers/PhoneNumberUtil.java#L3236-L3250\n // It doesn't check for the \"possibility\" of the original `number`.\n // I guess it's fine not checking that one. It works as is anyway.\n if (!isPossibleIncompleteNationalNumber(nationalNumber, country, metadata)) {\n // Don't strip the national prefix.\n return {\n nationalNumber: number\n };\n }\n }\n }\n return {\n nationalNumber: nationalNumber,\n carrierCode: carrierCode\n };\n}\n\n// In some countries, the same digit could be a national prefix\n// or a leading digit of a valid phone number.\n// For example, in Russia, national prefix is `8`,\n// and also `800 555 35 35` is a valid number\n// in which `8` is not a national prefix, but the first digit\n// of a national (significant) number.\n// Same's with Belarus:\n// `82004910060` is a valid national (significant) number,\n// but `2004910060` is not.\n// To support such cases (to prevent the code from always stripping\n// national prefix), a condition is imposed: a national prefix\n// is not extracted when the original number is \"viable\" and the\n// resultant number is not, a \"viable\" national number being the one\n// that matches `national_number_pattern`.\nfunction shouldHaveExtractedNationalPrefix(nationalNumberBefore, nationalNumberAfter, metadata) {\n // The equivalent in Google's code is:\n // https://github.com/google/libphonenumber/blob/e326fa1fc4283bb05eb35cb3c15c18f98a31af33/java/libphonenumber/src/com/google/i18n/phonenumbers/PhoneNumberUtil.java#L2969-L3004\n if (matchesEntirely(nationalNumberBefore, metadata.nationalNumberPattern()) && !matchesEntirely(nationalNumberAfter, metadata.nationalNumberPattern())) {\n return false;\n }\n // This \"is possible\" national number (length) check has been commented out\n // because it's superceded by the (effectively) same check done in the\n // `extractNationalNumber()` function after it calls `shouldHaveExtractedNationalPrefix()`.\n // In other words, why run the same check twice if it could only be run once.\n // // Check the national (significant) number length after extracting national prefix and carrier code.\n // // Fixes a minor \"weird behavior\" bug: https://gitlab.com/catamphetamine/libphonenumber-js/-/issues/57\n // // (Legacy generated metadata (before `1.0.18`) didn't support the \"possible lengths\" feature).\n // if (metadata.possibleLengths()) {\n // \tif (isPossibleIncompleteNationalNumber(nationalNumberBefore, metadata) &&\n // \t\t!isPossibleIncompleteNationalNumber(nationalNumberAfter, metadata)) {\n // \t\treturn false\n // \t}\n // }\n return true;\n}\nfunction isPossibleIncompleteNationalNumber(nationalNumber, country, metadata) {\n switch (checkNumberLength(nationalNumber, country, metadata)) {\n case 'TOO_SHORT':\n case 'INVALID_LENGTH':\n // This library ignores \"local-only\" phone numbers (for simplicity).\n // See the readme for more info on what are \"local-only\" phone numbers.\n // case 'IS_POSSIBLE_LOCAL_ONLY':\n return false;\n default:\n return true;\n }\n}\n//# sourceMappingURL=extractNationalNumber.js.map"],"names":["extractNationalNumber","number","country","metadata","_extractNationalNumbe","extractNationalNumberFromPossiblyIncompleteNumber","carrierCode","nationalNumber","shouldHaveExtractedNationalPrefix","getCountryByCallingCode","isPossibleIncompleteNationalNumber","nationalNumberBefore","nationalNumberAfter","matchesEntirely","checkNumberLength"],"mappings":";;;;AAee,SAASA,EAAsBC,GAAQC,GAASC,GAAU;AAUvE,MAAIC,IAAwBC,EAAkDJ,GAAQE,CAAQ,GAC5FG,IAAcF,EAAsB,aACpCG,IAAiBH,EAAsB;AACzC,MAAIG,MAAmBN,GAAQ;AAC7B,QAAI,CAACO,EAAkCP,GAAQM,GAAgBJ,CAAQ;AAErE,aAAO;AAAA,QACL,gBAAgBF;AAAA,MACxB;AAII,QAAIE,EAAS,cAAc,sBAEpBD,MACHA,IAAUO,EAAwBN,EAAS,cAAc,YAAW,GAAI;AAAA,MACtE,gBAAgBI;AAAA,MAChB,UAAUJ;AAAA,IACpB,CAAS,IAWC,CAACO,EAAmCH,GAAgBL,GAASC,CAAQ;AAEvE,aAAO;AAAA,QACL,gBAAgBF;AAAA,MAC1B;AAAA,EAGE;AACA,SAAO;AAAA,IACL,gBAAgBM;AAAA,IAChB,aAAaD;AAAA,EACjB;AACA;AAgBA,SAASE,EAAkCG,GAAsBC,GAAqBT,GAAU;AAG9F,SAAI,EAAAU,EAAgBF,GAAsBR,EAAS,sBAAqB,CAAE,KAAK,CAACU,EAAgBD,GAAqBT,EAAS,sBAAqB,CAAE;AAiBvJ;AACA,SAASO,EAAmCH,GAAgBL,GAASC,GAAU;AAC7E,UAAQW,EAAkBP,GAAgBL,GAASC,CAAQ,GAAC;AAAA,IAC1D,KAAK;AAAA,IACL,KAAK;AAIH,aAAO;AAAA,IACT;AACE,aAAO;AAAA,EACb;AACA;","x_google_ignoreList":[0]}
package/dist/index258.js CHANGED
@@ -1,12 +1,24 @@
1
- function n(r) {
2
- var t = r.number, e = r.ext;
3
- if (!t)
4
- return "";
5
- if (t[0] !== "+")
6
- throw new Error('"formatRFC3966()" expects "number" to be in E.164 format.');
7
- return "tel:".concat(t).concat(e ? ";ext=" + e : "");
1
+ import s, { isPhoneContextValid as x, PLUS_SIGN as F, RFC3966_PREFIX_ as a, RFC3966_PHONE_CONTEXT_ as d, RFC3966_ISDN_SUBADDRESS_ as m } from "./index273.js";
2
+ import v from "./index247.js";
3
+ function S(r, _) {
4
+ var f = _.extractFormattedPhoneNumber, e = s(r);
5
+ if (!x(e))
6
+ throw new v("NOT_A_NUMBER");
7
+ var t;
8
+ if (e === null)
9
+ t = f(r) || "";
10
+ else {
11
+ t = "", e.charAt(0) === F && (t += e);
12
+ var n = r.indexOf(a), o;
13
+ n >= 0 ? o = n + a.length : o = 0;
14
+ var h = r.indexOf(d);
15
+ t += r.substring(o, h);
16
+ }
17
+ var i = t.indexOf(m);
18
+ if (i > 0 && (t = t.substring(0, i)), t !== "")
19
+ return t;
8
20
  }
9
21
  export {
10
- n as formatRFC3966
22
+ S as default
11
23
  };
12
24
  //# sourceMappingURL=index258.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index258.js","sources":["../../../node_modules/libphonenumber-js/es6/helpers/RFC3966.js"],"sourcesContent":["function _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 _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 _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 isViablePhoneNumber from './isViablePhoneNumber.js';\n\n// https://www.ietf.org/rfc/rfc3966.txt\n\n/**\r\n * @param {string} text - Phone URI (RFC 3966).\r\n * @return {object} `{ ?number, ?ext }`.\r\n */\nexport function parseRFC3966(text) {\n var number;\n var ext;\n\n // Replace \"tel:\" with \"tel=\" for parsing convenience.\n text = text.replace(/^tel:/, 'tel=');\n for (var _iterator = _createForOfIteratorHelperLoose(text.split(';')), _step; !(_step = _iterator()).done;) {\n var part = _step.value;\n var _part$split = part.split('='),\n _part$split2 = _slicedToArray(_part$split, 2),\n name = _part$split2[0],\n value = _part$split2[1];\n switch (name) {\n case 'tel':\n number = value;\n break;\n case 'ext':\n ext = value;\n break;\n case 'phone-context':\n // Only \"country contexts\" are supported.\n // \"Domain contexts\" are ignored.\n if (value[0] === '+') {\n number = value + number;\n }\n break;\n }\n }\n\n // If the phone number is not viable, then abort.\n if (!isViablePhoneNumber(number)) {\n return {};\n }\n var result = {\n number: number\n };\n if (ext) {\n result.ext = ext;\n }\n return result;\n}\n\n/**\r\n * @param {object} - `{ ?number, ?extension }`.\r\n * @return {string} Phone URI (RFC 3966).\r\n */\nexport function formatRFC3966(_ref) {\n var number = _ref.number,\n ext = _ref.ext;\n if (!number) {\n return '';\n }\n if (number[0] !== '+') {\n throw new Error(\"\\\"formatRFC3966()\\\" expects \\\"number\\\" to be in E.164 format.\");\n }\n return \"tel:\".concat(number).concat(ext ? ';ext=' + ext : '');\n}\n//# sourceMappingURL=RFC3966.js.map"],"names":["formatRFC3966","_ref","number","ext"],"mappings":"AA6DO,SAASA,EAAcC,GAAM;AAClC,MAAIC,IAASD,EAAK,QAChBE,IAAMF,EAAK;AACb,MAAI,CAACC;AACH,WAAO;AAET,MAAIA,EAAO,CAAC,MAAM;AAChB,UAAM,IAAI,MAAM,2DAA+D;AAEjF,SAAO,OAAO,OAAOA,CAAM,EAAE,OAAOC,IAAM,UAAUA,IAAM,EAAE;AAC9D;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index258.js","sources":["../../../node_modules/libphonenumber-js/es6/helpers/extractFormattedPhoneNumberFromPossibleRfc3966NumberUri.js"],"sourcesContent":["import extractPhoneContext, { isPhoneContextValid, PLUS_SIGN, RFC3966_PREFIX_, RFC3966_PHONE_CONTEXT_, RFC3966_ISDN_SUBADDRESS_ } from './extractPhoneContext.js';\nimport ParseError from '../ParseError.js';\n\n/**\r\n * @param {string} numberToParse\r\n * @param {string} nationalNumber\r\n * @return {}\r\n */\nexport default function extractFormattedPhoneNumberFromPossibleRfc3966NumberUri(numberToParse, _ref) {\n var extractFormattedPhoneNumber = _ref.extractFormattedPhoneNumber;\n var phoneContext = extractPhoneContext(numberToParse);\n if (!isPhoneContextValid(phoneContext)) {\n throw new ParseError('NOT_A_NUMBER');\n }\n var phoneNumberString;\n if (phoneContext === null) {\n // Extract a possible number from the string passed in.\n // (this strips leading characters that could not be the start of a phone number)\n phoneNumberString = extractFormattedPhoneNumber(numberToParse) || '';\n } else {\n phoneNumberString = '';\n\n // If the phone context contains a phone number prefix, we need to capture\n // it, whereas domains will be ignored.\n if (phoneContext.charAt(0) === PLUS_SIGN) {\n phoneNumberString += phoneContext;\n }\n\n // Now append everything between the \"tel:\" prefix and the phone-context.\n // This should include the national number, an optional extension or\n // isdn-subaddress component. Note we also handle the case when \"tel:\" is\n // missing, as we have seen in some of the phone number inputs.\n // In that case, we append everything from the beginning.\n var indexOfRfc3966Prefix = numberToParse.indexOf(RFC3966_PREFIX_);\n var indexOfNationalNumber;\n // RFC 3966 \"tel:\" prefix is preset at this stage because\n // `isPhoneContextValid()` requires it to be present.\n /* istanbul ignore else */\n if (indexOfRfc3966Prefix >= 0) {\n indexOfNationalNumber = indexOfRfc3966Prefix + RFC3966_PREFIX_.length;\n } else {\n indexOfNationalNumber = 0;\n }\n var indexOfPhoneContext = numberToParse.indexOf(RFC3966_PHONE_CONTEXT_);\n phoneNumberString += numberToParse.substring(indexOfNationalNumber, indexOfPhoneContext);\n }\n\n // Delete the isdn-subaddress and everything after it if it is present.\n // Note extension won't appear at the same time with isdn-subaddress\n // according to paragraph 5.3 of the RFC3966 spec.\n var indexOfIsdn = phoneNumberString.indexOf(RFC3966_ISDN_SUBADDRESS_);\n if (indexOfIsdn > 0) {\n phoneNumberString = phoneNumberString.substring(0, indexOfIsdn);\n }\n // If both phone context and isdn-subaddress are absent but other\n // parameters are present, the parameters are left in nationalNumber.\n // This is because we are concerned about deleting content from a potential\n // number string when there is no strong evidence that the number is\n // actually written in RFC3966.\n\n if (phoneNumberString !== '') {\n return phoneNumberString;\n }\n}\n//# sourceMappingURL=extractFormattedPhoneNumberFromPossibleRfc3966NumberUri.js.map"],"names":["extractFormattedPhoneNumberFromPossibleRfc3966NumberUri","numberToParse","_ref","extractFormattedPhoneNumber","phoneContext","extractPhoneContext","isPhoneContextValid","ParseError","phoneNumberString","PLUS_SIGN","indexOfRfc3966Prefix","RFC3966_PREFIX_","indexOfNationalNumber","indexOfPhoneContext","RFC3966_PHONE_CONTEXT_","indexOfIsdn","RFC3966_ISDN_SUBADDRESS_"],"mappings":";;AAQe,SAASA,EAAwDC,GAAeC,GAAM;AACnG,MAAIC,IAA8BD,EAAK,6BACnCE,IAAeC,EAAoBJ,CAAa;AACpD,MAAI,CAACK,EAAoBF,CAAY;AACnC,UAAM,IAAIG,EAAW,cAAc;AAErC,MAAIC;AACJ,MAAIJ,MAAiB;AAGnB,IAAAI,IAAoBL,EAA4BF,CAAa,KAAK;AAAA,OAC7D;AACL,IAAAO,IAAoB,IAIhBJ,EAAa,OAAO,CAAC,MAAMK,MAC7BD,KAAqBJ;AAQvB,QAAIM,IAAuBT,EAAc,QAAQU,CAAe,GAC5DC;AAIJ,IAAIF,KAAwB,IAC1BE,IAAwBF,IAAuBC,EAAgB,SAE/DC,IAAwB;AAE1B,QAAIC,IAAsBZ,EAAc,QAAQa,CAAsB;AACtE,IAAAN,KAAqBP,EAAc,UAAUW,GAAuBC,CAAmB;AAAA,EACzF;AAKA,MAAIE,IAAcP,EAAkB,QAAQQ,CAAwB;AAUpE,MATID,IAAc,MAChBP,IAAoBA,EAAkB,UAAU,GAAGO,CAAW,IAQ5DP,MAAsB;AACxB,WAAOA;AAEX;","x_google_ignoreList":[0]}
package/dist/index259.js CHANGED
@@ -1,7 +1,13 @@
1
- function r(e, n) {
2
- return e = e || "", new RegExp("^(?:" + n + ")$").test(e);
1
+ import f from "./index166.js";
2
+ var u = /^[\d]+(?:[~\u2053\u223C\uFF5E][\d]+)?$/;
3
+ function D(t, r, a) {
4
+ var e = new f(a);
5
+ if (e.selectNumberingPlan(t, r), e.defaultIDDPrefix())
6
+ return e.defaultIDDPrefix();
7
+ if (u.test(e.IDDPrefix()))
8
+ return e.IDDPrefix();
3
9
  }
4
10
  export {
5
- r as default
11
+ D as default
6
12
  };
7
13
  //# sourceMappingURL=index259.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index259.js","sources":["../../../node_modules/libphonenumber-js/es6/helpers/matchesEntirely.js"],"sourcesContent":["/**\r\n * Checks whether the entire input sequence can be matched\r\n * against the regular expression.\r\n * @return {boolean}\r\n */\nexport default function matchesEntirely(text, regularExpressionText) {\n // If the assigning of the `''` default value is moved to the arguments above,\n // the code coverage would decrease for some weird reason.\n text = text || '';\n return new RegExp('^(?:' + regularExpressionText + ')$').test(text);\n}\n//# sourceMappingURL=matchesEntirely.js.map"],"names":["matchesEntirely","text","regularExpressionText"],"mappings":"AAKe,SAASA,EAAgBC,GAAMC,GAAuB;AAGnE,SAAAD,IAAOA,KAAQ,IACR,IAAI,OAAO,SAASC,IAAwB,IAAI,EAAE,KAAKD,CAAI;AACpE;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index259.js","sources":["../../../node_modules/libphonenumber-js/es6/helpers/getIddPrefix.js"],"sourcesContent":["import Metadata from '../metadata.js';\n\n/**\r\n * Pattern that makes it easy to distinguish whether a region has a single\r\n * international dialing prefix or not. If a region has a single international\r\n * prefix (e.g. 011 in USA), it will be represented as a string that contains\r\n * a sequence of ASCII digits, and possibly a tilde, which signals waiting for\r\n * the tone. If there are multiple available international prefixes in a\r\n * region, they will be represented as a regex string that always contains one\r\n * or more characters that are not ASCII digits or a tilde.\r\n */\nvar SINGLE_IDD_PREFIX_REG_EXP = /^[\\d]+(?:[~\\u2053\\u223C\\uFF5E][\\d]+)?$/;\n\n// If the `country` supports IDD calling, it returns a preferred IDD prefix.\n// If the `country` doesn't support IDD calling, it returns `undefined`.\nexport default function getIddPrefix(country, callingCode, metadata) {\n var countryMetadata = new Metadata(metadata);\n countryMetadata.selectNumberingPlan(country, callingCode);\n if (countryMetadata.defaultIDDPrefix()) {\n return countryMetadata.defaultIDDPrefix();\n }\n if (SINGLE_IDD_PREFIX_REG_EXP.test(countryMetadata.IDDPrefix())) {\n return countryMetadata.IDDPrefix();\n }\n}\n//# sourceMappingURL=getIddPrefix.js.map"],"names":["SINGLE_IDD_PREFIX_REG_EXP","getIddPrefix","country","callingCode","metadata","countryMetadata","Metadata"],"mappings":";AAWA,IAAIA,IAA4B;AAIjB,SAASC,EAAaC,GAASC,GAAaC,GAAU;AACnE,MAAIC,IAAkB,IAAIC,EAASF,CAAQ;AAE3C,MADAC,EAAgB,oBAAoBH,GAASC,CAAW,GACpDE,EAAgB;AAClB,WAAOA,EAAgB,iBAAgB;AAEzC,MAAIL,EAA0B,KAAKK,EAAgB,UAAS,CAAE;AAC5D,WAAOA,EAAgB,UAAS;AAEpC;","x_google_ignoreList":[0]}
package/dist/index260.js CHANGED
@@ -1,11 +1,10 @@
1
- import f from "./index172.js";
2
- var u = /^[\d]+(?:[~\u2053\u223C\uFF5E][\d]+)?$/;
3
- function D(t, r, a) {
4
- var e = new f(a);
5
- if (e.selectNumberingPlan(t, r), e.defaultIDDPrefix())
6
- return e.defaultIDDPrefix();
7
- if (u.test(e.IDDPrefix()))
8
- return e.IDDPrefix();
1
+ import { VALID_DIGITS as A } from "./index162.js";
2
+ var g = ";ext=", t = function(a) {
3
+ return "([".concat(A, "]{1,").concat(a, "})");
4
+ };
5
+ function D(x) {
6
+ var a = "20", o = "15", i = "9", F = "6", n = "[  \\t,]*", e = "[:\\..]?[  \\t,-]*", r = "#?", s = "(?:e?xt(?:ensi(?:ó?|ó))?n?|e?xtn?|доб|anexo)", E = "(?:[xx##~~]|int|int)", l = "[- ]+", u = "[  \\t]*", v = "(?:,{2}|;)", b = g + t(a), m = n + s + e + t(a) + r, p = n + E + e + t(i) + r, L = l + t(F) + "#", f = u + v + e + t(o) + r, c = u + "(?:,)+" + e + t(i) + r;
7
+ return b + "|" + m + "|" + p + "|" + L + "|" + f + "|" + c;
9
8
  }
10
9
  export {
11
10
  D as default
@@ -1 +1 @@
1
- {"version":3,"file":"index260.js","sources":["../../../node_modules/libphonenumber-js/es6/helpers/getIddPrefix.js"],"sourcesContent":["import Metadata from '../metadata.js';\n\n/**\r\n * Pattern that makes it easy to distinguish whether a region has a single\r\n * international dialing prefix or not. If a region has a single international\r\n * prefix (e.g. 011 in USA), it will be represented as a string that contains\r\n * a sequence of ASCII digits, and possibly a tilde, which signals waiting for\r\n * the tone. If there are multiple available international prefixes in a\r\n * region, they will be represented as a regex string that always contains one\r\n * or more characters that are not ASCII digits or a tilde.\r\n */\nvar SINGLE_IDD_PREFIX_REG_EXP = /^[\\d]+(?:[~\\u2053\\u223C\\uFF5E][\\d]+)?$/;\n\n// If the `country` supports IDD calling, it returns a preferred IDD prefix.\n// If the `country` doesn't support IDD calling, it returns `undefined`.\nexport default function getIddPrefix(country, callingCode, metadata) {\n var countryMetadata = new Metadata(metadata);\n countryMetadata.selectNumberingPlan(country, callingCode);\n if (countryMetadata.defaultIDDPrefix()) {\n return countryMetadata.defaultIDDPrefix();\n }\n if (SINGLE_IDD_PREFIX_REG_EXP.test(countryMetadata.IDDPrefix())) {\n return countryMetadata.IDDPrefix();\n }\n}\n//# sourceMappingURL=getIddPrefix.js.map"],"names":["SINGLE_IDD_PREFIX_REG_EXP","getIddPrefix","country","callingCode","metadata","countryMetadata","Metadata"],"mappings":";AAWA,IAAIA,IAA4B;AAIjB,SAASC,EAAaC,GAASC,GAAaC,GAAU;AACnE,MAAIC,IAAkB,IAAIC,EAASF,CAAQ;AAE3C,MADAC,EAAgB,oBAAoBH,GAASC,CAAW,GACpDE,EAAgB;AAClB,WAAOA,EAAgB,iBAAgB;AAEzC,MAAIL,EAA0B,KAAKK,EAAgB,UAAS,CAAE;AAC5D,WAAOA,EAAgB,UAAS;AAEpC;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index260.js","sources":["../../../node_modules/libphonenumber-js/es6/helpers/extension/createExtensionPattern.js"],"sourcesContent":["import { VALID_DIGITS } from '../../constants.js';\n\n// The RFC 3966 format for extensions.\nvar RFC3966_EXTN_PREFIX = ';ext=';\n\n/**\r\n * Helper method for constructing regular expressions for parsing. Creates\r\n * an expression that captures up to max_length digits.\r\n * @return {string} RegEx pattern to capture extension digits.\r\n */\nvar getExtensionDigitsPattern = function getExtensionDigitsPattern(maxLength) {\n return \"([\".concat(VALID_DIGITS, \"]{1,\").concat(maxLength, \"})\");\n};\n\n/**\r\n * Helper initialiser method to create the regular-expression pattern to match\r\n * extensions.\r\n * Copy-pasted from Google's `libphonenumber`:\r\n * https://github.com/google/libphonenumber/blob/55b2646ec9393f4d3d6661b9c82ef9e258e8b829/javascript/i18n/phonenumbers/phonenumberutil.js#L759-L766\r\n * @return {string} RegEx pattern to capture extensions.\r\n */\nexport default function createExtensionPattern(purpose) {\n // We cap the maximum length of an extension based on the ambiguity of the way\n // the extension is prefixed. As per ITU, the officially allowed length for\n // extensions is actually 40, but we don't support this since we haven't seen real\n // examples and this introduces many false interpretations as the extension labels\n // are not standardized.\n /** @type {string} */\n var extLimitAfterExplicitLabel = '20';\n /** @type {string} */\n var extLimitAfterLikelyLabel = '15';\n /** @type {string} */\n var extLimitAfterAmbiguousChar = '9';\n /** @type {string} */\n var extLimitWhenNotSure = '6';\n\n /** @type {string} */\n var possibleSeparatorsBetweenNumberAndExtLabel = \"[ \\xA0\\\\t,]*\";\n // Optional full stop (.) or colon, followed by zero or more spaces/tabs/commas.\n /** @type {string} */\n var possibleCharsAfterExtLabel = \"[:\\\\.\\uFF0E]?[ \\xA0\\\\t,-]*\";\n /** @type {string} */\n var optionalExtnSuffix = \"#?\";\n\n // Here the extension is called out in more explicit way, i.e mentioning it obvious\n // patterns like \"ext.\".\n /** @type {string} */\n var explicitExtLabels = \"(?:e?xt(?:ensi(?:o\\u0301?|\\xF3))?n?|\\uFF45?\\uFF58\\uFF54\\uFF4E?|\\u0434\\u043E\\u0431|anexo)\";\n // One-character symbols that can be used to indicate an extension, and less\n // commonly used or more ambiguous extension labels.\n /** @type {string} */\n var ambiguousExtLabels = \"(?:[x\\uFF58#\\uFF03~\\uFF5E]|int|\\uFF49\\uFF4E\\uFF54)\";\n // When extension is not separated clearly.\n /** @type {string} */\n var ambiguousSeparator = \"[- ]+\";\n // This is the same as possibleSeparatorsBetweenNumberAndExtLabel, but not matching\n // comma as extension label may have it.\n /** @type {string} */\n var possibleSeparatorsNumberExtLabelNoComma = \"[ \\xA0\\\\t]*\";\n // \",,\" is commonly used for auto dialling the extension when connected. First\n // comma is matched through possibleSeparatorsBetweenNumberAndExtLabel, so we do\n // not repeat it here. Semi-colon works in Iphone and Android also to pop up a\n // button with the extension number following.\n /** @type {string} */\n var autoDiallingAndExtLabelsFound = \"(?:,{2}|;)\";\n\n /** @type {string} */\n var rfcExtn = RFC3966_EXTN_PREFIX + getExtensionDigitsPattern(extLimitAfterExplicitLabel);\n /** @type {string} */\n var explicitExtn = possibleSeparatorsBetweenNumberAndExtLabel + explicitExtLabels + possibleCharsAfterExtLabel + getExtensionDigitsPattern(extLimitAfterExplicitLabel) + optionalExtnSuffix;\n /** @type {string} */\n var ambiguousExtn = possibleSeparatorsBetweenNumberAndExtLabel + ambiguousExtLabels + possibleCharsAfterExtLabel + getExtensionDigitsPattern(extLimitAfterAmbiguousChar) + optionalExtnSuffix;\n /** @type {string} */\n var americanStyleExtnWithSuffix = ambiguousSeparator + getExtensionDigitsPattern(extLimitWhenNotSure) + \"#\";\n\n /** @type {string} */\n var autoDiallingExtn = possibleSeparatorsNumberExtLabelNoComma + autoDiallingAndExtLabelsFound + possibleCharsAfterExtLabel + getExtensionDigitsPattern(extLimitAfterLikelyLabel) + optionalExtnSuffix;\n /** @type {string} */\n var onlyCommasExtn = possibleSeparatorsNumberExtLabelNoComma + \"(?:,)+\" + possibleCharsAfterExtLabel + getExtensionDigitsPattern(extLimitAfterAmbiguousChar) + optionalExtnSuffix;\n\n // The first regular expression covers RFC 3966 format, where the extension is added\n // using \";ext=\". The second more generic where extension is mentioned with explicit\n // labels like \"ext:\". In both the above cases we allow more numbers in extension than\n // any other extension labels. The third one captures when single character extension\n // labels or less commonly used labels are used. In such cases we capture fewer\n // extension digits in order to reduce the chance of falsely interpreting two\n // numbers beside each other as a number + extension. The fourth one covers the\n // special case of American numbers where the extension is written with a hash\n // at the end, such as \"- 503#\". The fifth one is exclusively for extension\n // autodialling formats which are used when dialling and in this case we accept longer\n // extensions. The last one is more liberal on the number of commas that acts as\n // extension labels, so we have a strict cap on the number of digits in such extensions.\n return rfcExtn + \"|\" + explicitExtn + \"|\" + ambiguousExtn + \"|\" + americanStyleExtnWithSuffix + \"|\" + autoDiallingExtn + \"|\" + onlyCommasExtn;\n}\n//# sourceMappingURL=createExtensionPattern.js.map"],"names":["RFC3966_EXTN_PREFIX","getExtensionDigitsPattern","maxLength","VALID_DIGITS","createExtensionPattern","purpose","extLimitAfterExplicitLabel","extLimitAfterLikelyLabel","extLimitAfterAmbiguousChar","extLimitWhenNotSure","possibleSeparatorsBetweenNumberAndExtLabel","possibleCharsAfterExtLabel","optionalExtnSuffix","explicitExtLabels","ambiguousExtLabels","ambiguousSeparator","possibleSeparatorsNumberExtLabelNoComma","autoDiallingAndExtLabelsFound","rfcExtn","explicitExtn","ambiguousExtn","americanStyleExtnWithSuffix","autoDiallingExtn","onlyCommasExtn"],"mappings":";AAGA,IAAIA,IAAsB,SAOtBC,IAA4B,SAAmCC,GAAW;AAC5E,SAAO,KAAK,OAAOC,GAAc,MAAM,EAAE,OAAOD,GAAW,IAAI;AACjE;AASe,SAASE,EAAuBC,GAAS;AAOtD,MAAIC,IAA6B,MAE7BC,IAA2B,MAE3BC,IAA6B,KAE7BC,IAAsB,KAGtBC,IAA6C,aAG7CC,IAA6B,sBAE7BC,IAAqB,MAKrBC,IAAoB,iDAIpBC,IAAqB,wBAGrBC,IAAqB,SAIrBC,IAA0C,YAM1CC,IAAgC,cAGhCC,IAAUlB,IAAsBC,EAA0BK,CAA0B,GAEpFa,IAAeT,IAA6CG,IAAoBF,IAA6BV,EAA0BK,CAA0B,IAAIM,GAErKQ,IAAgBV,IAA6CI,IAAqBH,IAA6BV,EAA0BO,CAA0B,IAAII,GAEvKS,IAA8BN,IAAqBd,EAA0BQ,CAAmB,IAAI,KAGpGa,IAAmBN,IAA0CC,IAAgCN,IAA6BV,EAA0BM,CAAwB,IAAIK,GAEhLW,IAAiBP,IAA0C,WAAWL,IAA6BV,EAA0BO,CAA0B,IAAII;AAc/J,SAAOM,IAAU,MAAMC,IAAe,MAAMC,IAAgB,MAAMC,IAA8B,MAAMC,IAAmB,MAAMC;AACjI;","x_google_ignoreList":[0]}
package/dist/index261.js CHANGED
@@ -1,120 +1,28 @@
1
- import { MIN_LENGTH_FOR_NSN as g, MAX_LENGTH_FOR_NSN as h, PLUS_CHARS as P, VALID_DIGITS as d } from "./index168.js";
2
- import m from "./index253.js";
3
- import T, { getCountryCallingCode as O } from "./index172.js";
4
- import s, { isViablePhoneNumberStart as v } from "./index262.js";
5
- import w from "./index263.js";
6
- import y from "./index257.js";
7
- import { isPossibleNumber as S } from "./index247.js";
8
- import x from "./index173.js";
9
- import R from "./index259.js";
10
- import E from "./index251.js";
11
- import I from "./index264.js";
12
- import A from "./index176.js";
13
- import p from "./index265.js";
14
- var H = 250, L = new RegExp("[" + P + d + "]"), U = new RegExp("[^" + d + "#]+$");
15
- function Z(t, r, n) {
16
- if (r = r || {}, n = new T(n), r.defaultCountry && !n.hasCountry(r.defaultCountry))
17
- throw r.v2 ? new m("INVALID_COUNTRY") : new Error("Unknown country: ".concat(r.defaultCountry));
18
- var e = G(t, r.v2, r.extract), l = e.number, c = e.ext, i = e.error;
19
- if (!l) {
20
- if (r.v2)
21
- throw i === "TOO_SHORT" ? new m("TOO_SHORT") : new m("NOT_A_NUMBER");
22
- return {};
23
- }
24
- var a = D(l, r.defaultCountry, r.defaultCallingCode, n), o = a.country, u = a.nationalNumber, N = a.countryCallingCode, _ = a.countryCallingCodeSource, f = a.carrierCode;
25
- if (!n.hasSelectedNumberingPlan()) {
26
- if (r.v2)
27
- throw new m("INVALID_COUNTRY");
28
- return {};
29
- }
30
- if (!u || u.length < g) {
31
- if (r.v2)
32
- throw new m("TOO_SHORT");
33
- return {};
34
- }
35
- if (u.length > h) {
36
- if (r.v2)
37
- throw new m("TOO_LONG");
38
- return {};
39
- }
40
- if (r.v2) {
41
- var C = new x(N, u, n.metadata);
42
- return o && (C.country = o), f && (C.carrierCode = f), c && (C.ext = c), C.__countryCallingCodeSource = _, C;
43
- }
44
- var b = (r.extended ? n.hasSelectedNumberingPlan() : o) ? R(u, n.nationalNumberPattern()) : !1;
45
- return r.extended ? {
46
- country: o,
47
- countryCallingCode: N,
48
- carrierCode: f,
49
- valid: b,
50
- possible: b ? !0 : !!(r.extended === !0 && n.possibleLengths() && S(u, o, n)),
51
- phone: u,
52
- ext: c
53
- } : b ? M(o, u, c) : {};
54
- }
55
- function F(t, r, n) {
56
- if (t) {
57
- if (t.length > H) {
58
- if (n)
59
- throw new m("TOO_LONG");
60
- return;
61
- }
62
- if (r === !1)
63
- return t;
64
- var e = t.search(L);
65
- if (!(e < 0))
66
- return t.slice(e).replace(U, "");
67
- }
68
- }
69
- function G(t, r, n) {
70
- var e = p(t, {
71
- extractFormattedPhoneNumber: function(i) {
72
- return F(i, n, r);
1
+ var p = function() {
2
+ return p = Object.assign || function(e) {
3
+ for (var n, r = 1, o = arguments.length; r < o; r++) {
4
+ n = arguments[r];
5
+ for (var a in n) Object.prototype.hasOwnProperty.call(n, a) && (e[a] = n[a]);
73
6
  }
74
- });
75
- if (!e)
76
- return {};
77
- if (!s(e))
78
- return v(e) ? {
79
- error: "TOO_SHORT"
80
- } : {};
81
- var l = w(e);
82
- return l.ext ? l : {
83
- number: e
84
- };
85
- }
86
- function M(t, r, n) {
87
- var e = {
88
- country: t,
89
- phone: r
90
- };
91
- return n && (e.ext = n), e;
7
+ return e;
8
+ }, p.apply(this, arguments);
9
+ };
10
+ function c(t, e) {
11
+ var n = {};
12
+ for (var r in t) Object.prototype.hasOwnProperty.call(t, r) && e.indexOf(r) < 0 && (n[r] = t[r]);
13
+ if (t != null && typeof Object.getOwnPropertySymbols == "function")
14
+ for (var o = 0, r = Object.getOwnPropertySymbols(t); o < r.length; o++)
15
+ e.indexOf(r[o]) < 0 && Object.prototype.propertyIsEnumerable.call(t, r[o]) && (n[r[o]] = t[r[o]]);
16
+ return n;
92
17
  }
93
- function D(t, r, n, e) {
94
- var l = E(y(t), void 0, r, n, e.metadata), c = l.countryCallingCodeSource, i = l.countryCallingCode, a = l.number, o;
95
- if (i)
96
- e.selectNumberingPlan(i);
97
- else if (a && (r || n))
98
- e.selectNumberingPlan(r, n), r && (o = r), i = n || O(r, e.metadata);
99
- else return {};
100
- if (!a)
101
- return {
102
- countryCallingCodeSource: c,
103
- countryCallingCode: i
104
- };
105
- var u = I(y(a), o, e), N = u.nationalNumber, _ = u.carrierCode, f = A(i, {
106
- nationalNumber: N,
107
- metadata: e
108
- });
109
- return f && (o = f, f === "001" || e.selectNumberingPlan(o)), {
110
- country: o,
111
- countryCallingCode: i,
112
- countryCallingCodeSource: c,
113
- nationalNumber: N,
114
- carrierCode: _
115
- };
18
+ function l(t, e, n) {
19
+ if (n || arguments.length === 2) for (var r = 0, o = e.length, a; r < o; r++)
20
+ (a || !(r in e)) && (a || (a = Array.prototype.slice.call(e, 0, r)), a[r] = e[r]);
21
+ return t.concat(a || Array.prototype.slice.call(e));
116
22
  }
117
23
  export {
118
- Z as default
24
+ p as __assign,
25
+ c as __rest,
26
+ l as __spreadArray
119
27
  };
120
28
  //# sourceMappingURL=index261.js.map