@rpcbase/ui 0.280.0 → 0.281.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 (518) hide show
  1. package/dist/components/AddressAutocompleteInput/index.d.ts +1 -1
  2. package/dist/components/AddressAutocompleteInput/index.d.ts.map +1 -1
  3. package/dist/components/ApplePayButton/index.d.ts +1 -1
  4. package/dist/components/ApplePayButton/index.d.ts.map +1 -1
  5. package/dist/components/Checkbox/index.d.ts +1 -1
  6. package/dist/components/Checkbox/index.d.ts.map +1 -1
  7. package/dist/components/DayPickerField/index.d.ts +2 -2
  8. package/dist/components/DayPickerField/index.d.ts.map +1 -1
  9. package/dist/components/Dialog/index.d.ts +9 -9
  10. package/dist/components/Dialog/index.d.ts.map +1 -1
  11. package/dist/components/FilesUploadField/index.d.ts +1 -1
  12. package/dist/components/FilesUploadField/index.d.ts.map +1 -1
  13. package/dist/components/HourPickerField/index.d.ts +2 -2
  14. package/dist/components/HourPickerField/index.d.ts.map +1 -1
  15. package/dist/components/I18nField/index.d.ts +1 -1
  16. package/dist/components/I18nField/index.d.ts.map +1 -1
  17. package/dist/components/Image/index.d.ts +1 -1
  18. package/dist/components/Image/index.d.ts.map +1 -1
  19. package/dist/components/ImagesField/index.d.ts +1 -1
  20. package/dist/components/ImagesField/index.d.ts.map +1 -1
  21. package/dist/components/Input/index.d.ts +1 -1
  22. package/dist/components/Input/index.d.ts.map +1 -1
  23. package/dist/components/Notifications/NotificationsButton.d.ts +1 -1
  24. package/dist/components/Notifications/NotificationsButton.d.ts.map +1 -1
  25. package/dist/components/Notifications/NotificationsDrawer.d.ts +1 -1
  26. package/dist/components/Notifications/NotificationsDrawer.d.ts.map +1 -1
  27. package/dist/components/Notifications/NotificationsSettings.d.ts +1 -1
  28. package/dist/components/Notifications/NotificationsSettings.d.ts.map +1 -1
  29. package/dist/components/PhoneNumberInput/suggestions.d.ts +3 -3
  30. package/dist/components/PhoneNumberInput/suggestions.d.ts.map +1 -1
  31. package/dist/components/Select/index.d.ts +2 -2
  32. package/dist/components/Select/index.d.ts.map +1 -1
  33. package/dist/components/header/MenuPopover/index.d.ts +1 -1
  34. package/dist/components/header/MenuPopover/index.d.ts.map +1 -1
  35. package/dist/index.js +12 -12
  36. package/dist/index10.js +6 -4
  37. package/dist/index10.js.map +1 -1
  38. package/dist/index12.js.map +1 -1
  39. package/dist/index13.js.map +1 -1
  40. package/dist/index14.js.map +1 -1
  41. package/dist/index15.js.map +1 -1
  42. package/dist/index154.js +19 -7
  43. package/dist/index154.js.map +1 -1
  44. package/dist/index16.js +36 -45
  45. package/dist/index16.js.map +1 -1
  46. package/dist/index160.js +3 -3
  47. package/dist/index160.js.map +1 -1
  48. package/dist/index166.js +5 -5
  49. package/dist/index166.js.map +1 -1
  50. package/dist/index172.js +27 -25
  51. package/dist/index172.js.map +1 -1
  52. package/dist/index181.js +1 -1
  53. package/dist/index181.js.map +1 -1
  54. package/dist/index182.js +145 -162
  55. package/dist/index182.js.map +1 -1
  56. package/dist/index184.js +6 -8
  57. package/dist/index184.js.map +1 -1
  58. package/dist/index186.js +2 -8
  59. package/dist/index186.js.map +1 -1
  60. package/dist/index19.js +1 -1
  61. package/dist/index19.js.map +1 -1
  62. package/dist/index195.js +1 -1
  63. package/dist/index195.js.map +1 -1
  64. package/dist/index196.js +2 -2
  65. package/dist/index196.js.map +1 -1
  66. package/dist/index197.js +1 -1
  67. package/dist/index197.js.map +1 -1
  68. package/dist/index198.js +16 -15
  69. package/dist/index198.js.map +1 -1
  70. package/dist/index199.js +13 -17
  71. package/dist/index199.js.map +1 -1
  72. package/dist/index200.js +3 -2
  73. package/dist/index200.js.map +1 -1
  74. package/dist/index207.js +5 -90
  75. package/dist/index207.js.map +1 -1
  76. package/dist/index208.js +15 -3
  77. package/dist/index208.js.map +1 -1
  78. package/dist/index209.js +102 -22
  79. package/dist/index209.js.map +1 -1
  80. package/dist/index210.js +3 -28
  81. package/dist/index210.js.map +1 -1
  82. package/dist/index211.js +23 -19
  83. package/dist/index211.js.map +1 -1
  84. package/dist/index212.js +27 -6
  85. package/dist/index212.js.map +1 -1
  86. package/dist/index213.js +19 -14
  87. package/dist/index213.js.map +1 -1
  88. package/dist/index214.js +5 -6
  89. package/dist/index214.js.map +1 -1
  90. package/dist/index215.js +14 -26
  91. package/dist/index215.js.map +1 -1
  92. package/dist/index216.js +7 -22
  93. package/dist/index216.js.map +1 -1
  94. package/dist/index217.js +27 -6
  95. package/dist/index217.js.map +1 -1
  96. package/dist/index218.js +23 -5
  97. package/dist/index218.js.map +1 -1
  98. package/dist/index219.js +6 -4
  99. package/dist/index219.js.map +1 -1
  100. package/dist/index220.js +5 -4
  101. package/dist/index220.js.map +1 -1
  102. package/dist/index221.js +4 -24
  103. package/dist/index221.js.map +1 -1
  104. package/dist/index222.js +4 -3
  105. package/dist/index222.js.map +1 -1
  106. package/dist/index223.js +21 -21
  107. package/dist/index223.js.map +1 -1
  108. package/dist/index224.js +3 -23
  109. package/dist/index224.js.map +1 -1
  110. package/dist/index225.js +23 -6
  111. package/dist/index225.js.map +1 -1
  112. package/dist/index226.js +22 -9
  113. package/dist/index226.js.map +1 -1
  114. package/dist/index227.js +5 -17
  115. package/dist/index227.js.map +1 -1
  116. package/dist/index228.js +8 -49
  117. package/dist/index228.js.map +1 -1
  118. package/dist/index229.js +18 -5
  119. package/dist/index229.js.map +1 -1
  120. package/dist/index230.js +50 -19
  121. package/dist/index230.js.map +1 -1
  122. package/dist/index231.js +20 -28
  123. package/dist/index231.js.map +1 -1
  124. package/dist/index232.js +27 -104
  125. package/dist/index232.js.map +1 -1
  126. package/dist/index233.js +98 -33
  127. package/dist/index233.js.map +1 -1
  128. package/dist/index234.js +28 -113
  129. package/dist/index234.js.map +1 -1
  130. package/dist/index235.js +117 -11
  131. package/dist/index235.js.map +1 -1
  132. package/dist/index236.js +12 -4
  133. package/dist/index236.js.map +1 -1
  134. package/dist/index237.js +4 -15
  135. package/dist/index237.js.map +1 -1
  136. package/dist/index238.js +13 -62
  137. package/dist/index238.js.map +1 -1
  138. package/dist/index239.js +64 -9
  139. package/dist/index239.js.map +1 -1
  140. package/dist/index240.js +10 -106
  141. package/dist/index240.js.map +1 -1
  142. package/dist/index241.js +107 -13
  143. package/dist/index241.js.map +1 -1
  144. package/dist/index242.js +16 -13
  145. package/dist/index242.js.map +1 -1
  146. package/dist/index243.js +13 -5
  147. package/dist/index243.js.map +1 -1
  148. package/dist/index244.js +4 -316
  149. package/dist/index244.js.map +1 -1
  150. package/dist/index245.js +315 -58
  151. package/dist/index245.js.map +1 -1
  152. package/dist/index246.js +58 -223
  153. package/dist/index246.js.map +1 -1
  154. package/dist/index247.js +215 -318
  155. package/dist/index247.js.map +1 -1
  156. package/dist/index248.js +250 -306
  157. package/dist/index248.js.map +1 -1
  158. package/dist/index249.js +308 -173
  159. package/dist/index249.js.map +1 -1
  160. package/dist/index250.js +178 -7
  161. package/dist/index250.js.map +1 -1
  162. package/dist/index251.js +8 -15
  163. package/dist/index251.js.map +1 -1
  164. package/dist/index252.js +41 -5
  165. package/dist/index252.js.map +1 -1
  166. package/dist/index253.js +46 -38
  167. package/dist/index253.js.map +1 -1
  168. package/dist/index254.js +7 -50
  169. package/dist/index254.js.map +1 -1
  170. package/dist/index255.js +49 -6
  171. package/dist/index255.js.map +1 -1
  172. package/dist/index256.js +48 -46
  173. package/dist/index256.js.map +1 -1
  174. package/dist/index257.js +6 -51
  175. package/dist/index257.js.map +1 -1
  176. package/dist/index258.js +10 -9
  177. package/dist/index258.js.map +1 -1
  178. package/dist/index259.js +60 -8
  179. package/dist/index259.js.map +1 -1
  180. package/dist/index26.js.map +1 -1
  181. package/dist/index260.js +41 -60
  182. package/dist/index260.js.map +1 -1
  183. package/dist/index261.js +88 -34
  184. package/dist/index261.js.map +1 -1
  185. package/dist/index262.js +47 -94
  186. package/dist/index262.js.map +1 -1
  187. package/dist/index263.js +36 -49
  188. package/dist/index263.js.map +1 -1
  189. package/dist/index264.js +45 -32
  190. package/dist/index264.js.map +1 -1
  191. package/dist/index265.js +47 -46
  192. package/dist/index265.js.map +1 -1
  193. package/dist/index266.js +18 -48
  194. package/dist/index266.js.map +1 -1
  195. package/dist/index267.js +174 -15
  196. package/dist/index267.js.map +1 -1
  197. package/dist/index268.js +47 -169
  198. package/dist/index268.js.map +1 -1
  199. package/dist/index269.js +17 -34
  200. package/dist/index269.js.map +1 -1
  201. package/dist/index270.js +59 -10
  202. package/dist/index270.js.map +1 -1
  203. package/dist/index271.js +10 -66
  204. package/dist/index271.js.map +1 -1
  205. package/dist/index272.js +4 -4
  206. package/dist/index273.js +71 -69
  207. package/dist/index273.js.map +1 -1
  208. package/dist/index274.js +158 -152
  209. package/dist/index274.js.map +1 -1
  210. package/dist/index275.js +7 -13
  211. package/dist/index275.js.map +1 -1
  212. package/dist/index276.js +12 -5
  213. package/dist/index276.js.map +1 -1
  214. package/dist/index277.js +12 -6
  215. package/dist/index277.js.map +1 -1
  216. package/dist/index278.js +11 -12
  217. package/dist/index278.js.map +1 -1
  218. package/dist/index279.js +65 -9
  219. package/dist/index279.js.map +1 -1
  220. package/dist/index280.js +6 -74
  221. package/dist/index280.js.map +1 -1
  222. package/dist/index281.js +25 -6
  223. package/dist/index281.js.map +1 -1
  224. package/dist/index282.js +24 -24
  225. package/dist/index282.js.map +1 -1
  226. package/dist/index283.js +125 -24
  227. package/dist/index283.js.map +1 -1
  228. package/dist/index284.js +52 -115
  229. package/dist/index284.js.map +1 -1
  230. package/dist/index285.js +59 -55
  231. package/dist/index285.js.map +1 -1
  232. package/dist/index286.js +48 -61
  233. package/dist/index286.js.map +1 -1
  234. package/dist/index287.js +5 -48
  235. package/dist/index287.js.map +1 -1
  236. package/dist/index288.js +14 -8
  237. package/dist/index288.js.map +1 -1
  238. package/dist/index289.js +18 -14
  239. package/dist/index289.js.map +1 -1
  240. package/dist/index290.js +10 -17
  241. package/dist/index290.js.map +1 -1
  242. package/dist/index291.js +23 -11
  243. package/dist/index291.js.map +1 -1
  244. package/dist/index292.js +52 -25
  245. package/dist/index292.js.map +1 -1
  246. package/dist/index293.js +6 -52
  247. package/dist/index293.js.map +1 -1
  248. package/dist/index294.js +137 -5
  249. package/dist/index294.js.map +1 -1
  250. package/dist/index295.js +59 -149
  251. package/dist/index295.js.map +1 -1
  252. package/dist/index296.js +90 -49
  253. package/dist/index296.js.map +1 -1
  254. package/dist/index297.js +11 -117
  255. package/dist/index297.js.map +1 -1
  256. package/dist/index298.js +863 -11
  257. package/dist/index298.js.map +1 -1
  258. package/dist/index299.js +21 -865
  259. package/dist/index299.js.map +1 -1
  260. package/dist/index3.js.map +1 -1
  261. package/dist/index300.js +417 -27
  262. package/dist/index300.js.map +1 -1
  263. package/dist/index301.js +774 -483
  264. package/dist/index301.js.map +1 -1
  265. package/dist/index302.js +7436 -803
  266. package/dist/index302.js.map +1 -1
  267. package/dist/index303.js +7 -7429
  268. package/dist/index303.js.map +1 -1
  269. package/dist/index304.js +12 -6
  270. package/dist/index304.js.map +1 -1
  271. package/dist/index305.js +5 -12
  272. package/dist/index305.js.map +1 -1
  273. package/dist/index306.js +3 -3
  274. package/dist/index306.js.map +1 -1
  275. package/dist/index307.js +469 -5
  276. package/dist/index307.js.map +1 -1
  277. package/dist/index308.js +32 -464
  278. package/dist/index308.js.map +1 -1
  279. package/dist/index309.js +18 -36
  280. package/dist/index309.js.map +1 -1
  281. package/dist/index310.js +28 -17
  282. package/dist/index310.js.map +1 -1
  283. package/dist/index311.js +4 -30
  284. package/dist/index311.js.map +1 -1
  285. package/dist/index312.js +59 -4
  286. package/dist/index312.js.map +1 -1
  287. package/dist/index313.js +11 -59
  288. package/dist/index313.js.map +1 -1
  289. package/dist/index314.js +5 -9
  290. package/dist/index314.js.map +1 -1
  291. package/dist/index315.js +9 -5
  292. package/dist/index315.js.map +1 -1
  293. package/dist/index316.js +12 -9
  294. package/dist/index316.js.map +1 -1
  295. package/dist/index317.js +3 -13
  296. package/dist/index317.js.map +1 -1
  297. package/dist/index318.js +17 -3
  298. package/dist/index318.js.map +1 -1
  299. package/dist/index319.js +23 -14
  300. package/dist/index319.js.map +1 -1
  301. package/dist/index320.js +39 -23
  302. package/dist/index320.js.map +1 -1
  303. package/dist/index321.js +5 -41
  304. package/dist/index321.js.map +1 -1
  305. package/dist/index322.js +25 -5
  306. package/dist/index322.js.map +1 -1
  307. package/dist/index323.js +18 -24
  308. package/dist/index323.js.map +1 -1
  309. package/dist/index324.js +32 -17
  310. package/dist/index324.js.map +1 -1
  311. package/dist/index325.js +5 -34
  312. package/dist/index325.js.map +1 -1
  313. package/dist/index326.js +9 -5
  314. package/dist/index326.js.map +1 -1
  315. package/dist/index327.js +7 -8
  316. package/dist/index327.js.map +1 -1
  317. package/dist/index328.js +9 -8
  318. package/dist/index328.js.map +1 -1
  319. package/dist/index329.js +10 -9
  320. package/dist/index329.js.map +1 -1
  321. package/dist/index330.js +7 -10
  322. package/dist/index330.js.map +1 -1
  323. package/dist/index331.js +75 -7
  324. package/dist/index331.js.map +1 -1
  325. package/dist/index332.js +153 -66
  326. package/dist/index332.js.map +1 -1
  327. package/dist/index333.js +99 -147
  328. package/dist/index333.js.map +1 -1
  329. package/dist/index334.js +13 -113
  330. package/dist/index334.js.map +1 -1
  331. package/dist/index335.js +78 -12
  332. package/dist/index335.js.map +1 -1
  333. package/dist/index336.js +23 -57
  334. package/dist/index336.js.map +1 -1
  335. package/dist/index337.js +12 -45
  336. package/dist/index337.js.map +1 -1
  337. package/dist/index338.js +16 -13
  338. package/dist/index338.js.map +1 -1
  339. package/dist/index339.js +100 -15
  340. package/dist/index339.js.map +1 -1
  341. package/dist/index340.js +50 -95
  342. package/dist/index340.js.map +1 -1
  343. package/dist/index341.js +57 -5
  344. package/dist/index341.js.map +1 -1
  345. package/dist/index342.js +41 -78
  346. package/dist/index342.js.map +1 -1
  347. package/dist/index343.js +100 -58
  348. package/dist/index343.js.map +1 -1
  349. package/dist/index344.js +46 -104
  350. package/dist/index344.js.map +1 -1
  351. package/dist/index345.js +39 -51
  352. package/dist/index345.js.map +1 -1
  353. package/dist/index346.js +143 -42
  354. package/dist/index346.js.map +1 -1
  355. package/dist/index347.js +122 -123
  356. package/dist/index347.js.map +1 -1
  357. package/dist/index348.js +224 -108
  358. package/dist/index348.js.map +1 -1
  359. package/dist/index349.js +158 -174
  360. package/dist/index349.js.map +1 -1
  361. package/dist/index350.js +213 -144
  362. package/dist/index350.js.map +1 -1
  363. package/dist/index351.js +5 -309
  364. package/dist/index351.js.map +1 -1
  365. package/dist/index352.js +6 -5
  366. package/dist/index352.js.map +1 -1
  367. package/dist/index353.js +7 -6
  368. package/dist/index353.js.map +1 -1
  369. package/dist/index354.js +4 -5
  370. package/dist/index354.js.map +1 -1
  371. package/dist/index355.js +4 -4
  372. package/dist/index355.js.map +1 -1
  373. package/dist/index356.js +21 -6
  374. package/dist/index356.js.map +1 -1
  375. package/dist/index357.js +10 -21
  376. package/dist/index357.js.map +1 -1
  377. package/dist/index358.js +128 -10
  378. package/dist/index358.js.map +1 -1
  379. package/dist/index359.js +36 -122
  380. package/dist/index359.js.map +1 -1
  381. package/dist/index360.js +64 -38
  382. package/dist/index360.js.map +1 -1
  383. package/dist/index361.js +115 -66
  384. package/dist/index361.js.map +1 -1
  385. package/dist/index362.js +485 -112
  386. package/dist/index362.js.map +1 -1
  387. package/dist/index363.js +7 -490
  388. package/dist/index363.js.map +1 -1
  389. package/dist/index364.js +1 -1
  390. package/dist/index364.js.map +1 -1
  391. package/dist/index367.js +2 -9
  392. package/dist/index367.js.map +1 -1
  393. package/dist/index368.js +26 -5
  394. package/dist/index368.js.map +1 -1
  395. package/dist/index369.js +43 -27
  396. package/dist/index369.js.map +1 -1
  397. package/dist/index370.js +35 -46
  398. package/dist/index370.js.map +1 -1
  399. package/dist/index371.js +16 -27
  400. package/dist/index371.js.map +1 -1
  401. package/dist/index372.js +41 -16
  402. package/dist/index372.js.map +1 -1
  403. package/dist/index373.js +11 -42
  404. package/dist/index373.js.map +1 -1
  405. package/dist/index374.js +10 -14
  406. package/dist/index374.js.map +1 -1
  407. package/dist/index375.js +51 -9
  408. package/dist/index375.js.map +1 -1
  409. package/dist/index376.js +40 -53
  410. package/dist/index376.js.map +1 -1
  411. package/dist/index377.js +17 -43
  412. package/dist/index377.js.map +1 -1
  413. package/dist/index378.js +4 -15
  414. package/dist/index378.js.map +1 -1
  415. package/dist/index379.js +4 -4
  416. package/dist/index379.js.map +1 -1
  417. package/dist/index380.js +9 -4
  418. package/dist/index380.js.map +1 -1
  419. package/dist/index381.js +304 -9
  420. package/dist/index381.js.map +1 -1
  421. package/dist/index382.js +4 -339
  422. package/dist/index382.js.map +1 -1
  423. package/dist/index383.js +21 -5
  424. package/dist/index383.js.map +1 -1
  425. package/dist/index384.js +106 -16
  426. package/dist/index384.js.map +1 -1
  427. package/dist/index385.js +19 -109
  428. package/dist/index385.js.map +1 -1
  429. package/dist/index386.js +18 -18
  430. package/dist/index386.js.map +1 -1
  431. package/dist/index387.js +14 -19
  432. package/dist/index387.js.map +1 -1
  433. package/dist/index388.js +12 -4
  434. package/dist/index388.js.map +1 -1
  435. package/dist/index389.js +113 -20
  436. package/dist/index389.js.map +1 -1
  437. package/dist/index390.js +5 -11
  438. package/dist/index390.js.map +1 -1
  439. package/dist/index391.js +28 -85
  440. package/dist/index391.js.map +1 -1
  441. package/dist/index392.js +9 -9
  442. package/dist/index392.js.map +1 -1
  443. package/dist/index393.js +6 -29
  444. package/dist/index393.js.map +1 -1
  445. package/dist/index394.js +254 -10
  446. package/dist/index394.js.map +1 -1
  447. package/dist/index395.js +12 -6
  448. package/dist/index395.js.map +1 -1
  449. package/dist/index396.js +11 -252
  450. package/dist/index396.js.map +1 -1
  451. package/dist/index397.js +6 -11
  452. package/dist/index397.js.map +1 -1
  453. package/dist/index398.js +22 -10
  454. package/dist/index398.js.map +1 -1
  455. package/dist/index399.js +22 -6
  456. package/dist/index399.js.map +1 -1
  457. package/dist/index4.js.map +1 -1
  458. package/dist/index400.js +103 -21
  459. package/dist/index400.js.map +1 -1
  460. package/dist/index401.js +15 -23
  461. package/dist/index401.js.map +1 -1
  462. package/dist/index402.js +11 -108
  463. package/dist/index402.js.map +1 -1
  464. package/dist/index403.js +10 -15
  465. package/dist/index403.js.map +1 -1
  466. package/dist/index404.js +237 -10
  467. package/dist/index404.js.map +1 -1
  468. package/dist/index405.js +27 -9
  469. package/dist/index405.js.map +1 -1
  470. package/dist/index406.js +33 -238
  471. package/dist/index406.js.map +1 -1
  472. package/dist/index407.js +11 -30
  473. package/dist/index407.js.map +1 -1
  474. package/dist/index408.js +118 -48
  475. package/dist/index408.js.map +1 -1
  476. package/dist/index409.js +39 -11
  477. package/dist/index409.js.map +1 -1
  478. package/dist/index410.js +18 -121
  479. package/dist/index410.js.map +1 -1
  480. package/dist/index411.js +11 -39
  481. package/dist/index411.js.map +1 -1
  482. package/dist/index412.js +21 -24
  483. package/dist/index412.js.map +1 -1
  484. package/dist/index413.js +17 -11
  485. package/dist/index413.js.map +1 -1
  486. package/dist/index414.js +10 -20
  487. package/dist/index414.js.map +1 -1
  488. package/dist/index415.js +4 -17
  489. package/dist/index415.js.map +1 -1
  490. package/dist/index416.js +300 -14
  491. package/dist/index416.js.map +1 -1
  492. package/dist/index417.js +61 -323
  493. package/dist/index417.js.map +1 -1
  494. package/dist/index418.js +4 -63
  495. package/dist/index418.js.map +1 -1
  496. package/dist/index419.js +28 -4
  497. package/dist/index419.js.map +1 -1
  498. package/dist/index420.js +468 -25
  499. package/dist/index420.js.map +1 -1
  500. package/dist/index421.js +250 -452
  501. package/dist/index421.js.map +1 -1
  502. package/dist/index6.js.map +1 -1
  503. package/dist/index7.js +91 -133
  504. package/dist/index7.js.map +1 -1
  505. package/dist/index70.js +2 -2
  506. package/dist/index70.js.map +1 -1
  507. package/dist/index71.js +11 -4
  508. package/dist/index71.js.map +1 -1
  509. package/dist/index72.js +1 -3
  510. package/dist/index72.js.map +1 -1
  511. package/dist/index8.js.map +1 -1
  512. package/dist/index9.js +16 -19
  513. package/dist/index9.js.map +1 -1
  514. package/dist/test-only/TestCoverageTestBadge/index.d.ts +1 -1
  515. package/dist/test-only/TestCoverageTestBadge/index.d.ts.map +1 -1
  516. package/package.json +15 -15
  517. package/dist/index422.js +0 -272
  518. package/dist/index422.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"index309.js","names":[],"sources":["../../../node_modules/libphonenumber-js/es6/helpers/mergeArrays.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; }\n/**\r\n * Merges two arrays.\r\n * @param {*} a\r\n * @param {*} b\r\n * @return {*}\r\n */\nexport default function mergeArrays(a, b) {\n var merged = a.slice();\n for (var _iterator = _createForOfIteratorHelperLoose(b), _step; !(_step = _iterator()).done;) {\n var element = _step.value;\n if (a.indexOf(element) < 0) {\n merged.push(element);\n }\n }\n return merged.sort(function (a, b) {\n return a - b;\n });\n\n // ES6 version, requires Set polyfill.\n // let merged = new Set(a)\n // for (const element of b) {\n // \tmerged.add(i)\n // }\n // return Array.from(merged).sort((a, b) => a - b)\n}\n//# sourceMappingURL=mergeArrays.js.map"],"x_google_ignoreList":[0],"mappings":";AAAA,SAAS,EAAgC,GAAG,GAAG;CAAE,IAAI,IAAmB,OAAO,SAAtB,OAAgC,EAAE,OAAO,aAAa,EAAE;CAAe,IAAI,GAAG,QAAQ,IAAI,EAAE,KAAK,CAAC,EAAA,CAAG,KAAK,KAAK,CAAC;CAAG,IAAI,MAAM,QAAQ,CAAC,MAAM,IAAI,EAA4B,CAAC,MAAM,KAAK,KAAiB,OAAO,EAAE,UAArB,UAA6B;EAAE,MAAM,IAAI;EAAI,IAAI,IAAI;EAAG,OAAO,WAAY;GAAE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,CAAC,EAAE,IAAI;IAAE,MAAM,CAAC;IAAG,OAAO,EAAE;GAAK;EAAG;CAAG;CAAE,MAAU,UAAU,uIAAuI;AAAG;AACziB,SAAS,EAA4B,GAAG,GAAG;CAAE,IAAI,GAAG;EAAE,IAAgB,OAAO,KAAnB,UAAsB,OAAO,EAAkB,GAAG,CAAC;EAAG,IAAI,IAAI,CAAC,EAAE,SAAS,KAAK,CAAC,CAAC,CAAC,MAAM,GAAG,EAAE;EAAG,OAAoB,MAAb,YAAkB,EAAE,gBAAgB,IAAI,EAAE,YAAY,OAAiB,MAAV,SAAyB,MAAV,QAAc,MAAM,KAAK,CAAC,IAAoB,MAAhB,eAAqB,2CAA2C,KAAK,CAAC,IAAI,EAAkB,GAAG,CAAC,IAAI,KAAK;CAAG;AAAE;AACzX,SAAS,EAAkB,GAAG,GAAG;CAAE,CAAS,KAAR,QAAa,IAAI,EAAE,YAAY,IAAI,EAAE;CAAS,KAAK,IAAI,IAAI,GAAG,IAAI,MAAM,CAAC,GAAG,IAAI,GAAG,KAAK,EAAE,KAAK,EAAE;CAAI,OAAO;AAAG;AAOnJ,SAAwB,EAAY,GAAG,GAAG;CAExC,KAAK,IADD,IAAS,EAAE,MAAM,GACZ,IAAY,EAAgC,CAAC,GAAG,GAAO,EAAE,IAAQ,EAAU,EAAA,CAAG,OAAO;EAC5F,IAAI,IAAU,EAAM;EACpB,AAAI,EAAE,QAAQ,CAAO,IAAI,KACvB,EAAO,KAAK,CAAO;CAEvB;CACA,OAAO,EAAO,KAAK,SAAU,GAAG,GAAG;EACjC,OAAO,IAAI;CACb,CAAC;AAQH"}
1
+ {"version":3,"file":"index309.js","names":[],"sources":["../../../node_modules/libphonenumber-js/es6/helpers/checkNumberLength.js"],"sourcesContent":["import Metadata from '../metadata.js';\nimport mergeArrays from './mergeArrays.js';\n\n/**\n * Checks phone number length against the phone numbering plan selected in metadata.\n * Optionally, it could be restrained by a specific country.\n * @param {string} nationalNumber\n * @param {string?} country — Specific country to use rather than the one that is pre-selected in the metadata instance.\n * @param {Metadata} metadata — Metadata instance with a selected numbering plan.\n * @returns {string}\n */\nexport default function checkNumberLength(nationalNumber, country, metadata) {\n return checkNumberLengthForType(nationalNumber, undefined, country, metadata);\n}\n\n/**\n * Checks phone number length against the phone numbering plan selected in metadata.\n * Optionally, it could be restrained by a specific phone number type or a specific country.\n * @param {string} nationalNumber\n * @param {string?} type — Specific phone number type.\n * @param {string?} country — Specific country to use instead of the one that is pre-selected in the metadata instance.\n * @param {Metadata} metadata — Metadata instance with a selected numbering plan.\n * @returns {string} See the README on `validatePhoneNumberLength()` function, with an addition of a special case: when phone numbers of type `type` aren't possible in the telephone numbering plan, it will return \"INVALID_LENGTH\".\n */\n// Checks whether a number is possible for a certain `country` based on the number length.\n//\n// This function is not supported by metadata generated with ancient versions of\n// `libphonenumber-js` (before version `1.0.18`) which didn't include \"possible lengths\".\n//\n// There was also a known issue with `checkNumberLength()` function:\n// if a number is possible only in a certain `country` among several `countries`\n// that share the same \"country calling code\", that function would check\n// the possibility of the phone number only in the \"main\" `country` for the \"country calling code\"\n// and would not check if it's actually be possible in the speciifc `country`.\n//\n// For example, \"+1310xxxx\" numbers are valid in Canada.\n// However, they are not possible in the US due to being too short.\n// Since Canada and the US share the same country calling code — \"+1\" —\n// `checkNumberLength()` function used to return not \"IS_POSSIBLE\" for \"+1310xxxx\" numbers.\n//\n// In such cases, when using \"/max\" metadata, `isValid()` could output `true`\n// but at the same time `isPossible()` could output `false`, which was contradictory.\n//\n// See https://issuetracker.google.com/issues/335892662 for the discusson in Google's issues.\n//\n// The solution suggested by Google was implemented: an optional `country` argument\n// was added to `checkNumberLength()` function. If present, that `country` will be used\n// to check phone number length for that specific `country` rather than the \"main\" country\n// for the shared \"country calling code\".\n//\nexport function checkNumberLengthForType(nationalNumber, type, country, metadata) {\n if (country) {\n // If a specific `country` is specified, re-create a metadata instance with it.\n metadata = new Metadata(metadata.metadata);\n metadata.selectNumberingPlan(country);\n }\n var type_info = metadata.type(type);\n\n // There should always be \"<possiblePengths/>\" set for every type element.\n // This is declared in the XML schema.\n // For size efficiency, where a sub-description (e.g. fixed-line)\n // has the same \"<possiblePengths/>\" as the \"general description\", this is missing,\n // so we fall back to the \"general description\". Where no numbers of the type\n // exist at all, there is one possible length (-1) which is guaranteed\n // not to match the length of any real phone number.\n var possible_lengths = type_info && type_info.possibleLengths() || metadata.possibleLengths();\n // let local_lengths = type_info && type.possibleLengthsLocal() || metadata.possibleLengthsLocal()\n\n // Metadata before version `1.0.18` didn't contain `possible_lengths`.\n if (!possible_lengths) {\n return 'IS_POSSIBLE';\n }\n if (type === 'FIXED_LINE_OR_MOBILE') {\n // No such country in metadata.\n /* istanbul ignore next */\n if (!metadata.type('FIXED_LINE')) {\n // The rare case has been encountered where no fixedLine data is available\n // (true for some non-geographic entities), so we just check mobile.\n return checkNumberLengthForType(nationalNumber, 'MOBILE', country, metadata);\n }\n var mobile_type = metadata.type('MOBILE');\n if (mobile_type) {\n // Merge the mobile data in if there was any. \"Concat\" creates a new\n // array, it doesn't edit possible_lengths in place, so we don't need a copy.\n // Note that when adding the possible lengths from mobile, we have\n // to again check they aren't empty since if they are this indicates\n // they are the same as the general desc and should be obtained from there.\n possible_lengths = mergeArrays(possible_lengths, mobile_type.possibleLengths());\n // The current list is sorted; we need to merge in the new list and\n // re-sort (duplicates are okay). Sorting isn't so expensive because\n // the lists are very small.\n\n // if (local_lengths) {\n // \tlocal_lengths = mergeArrays(local_lengths, mobile_type.possibleLengthsLocal())\n // } else {\n // \tlocal_lengths = mobile_type.possibleLengthsLocal()\n // }\n }\n }\n // If the type doesn't exist then return 'INVALID_LENGTH'.\n else if (type && !type_info) {\n return 'INVALID_LENGTH';\n }\n var actual_length = nationalNumber.length;\n\n // In `libphonenumber-js` all \"local-only\" formats are dropped for simplicity.\n // // This is safe because there is never an overlap beween the possible lengths\n // // and the local-only lengths; this is checked at build time.\n // if (local_lengths && local_lengths.indexOf(nationalNumber.length) >= 0)\n // {\n // \treturn 'IS_POSSIBLE_LOCAL_ONLY'\n // }\n\n var minimum_length = possible_lengths[0];\n if (minimum_length === actual_length) {\n return 'IS_POSSIBLE';\n }\n if (minimum_length > actual_length) {\n return 'TOO_SHORT';\n }\n if (possible_lengths[possible_lengths.length - 1] < actual_length) {\n return 'TOO_LONG';\n }\n\n // We skip the first element since we've already checked it.\n return possible_lengths.indexOf(actual_length, 1) >= 0 ? 'IS_POSSIBLE' : 'INVALID_LENGTH';\n}\n//# sourceMappingURL=checkNumberLength.js.map"],"x_google_ignoreList":[0],"mappings":";;;AAWA,SAAwB,EAAkB,GAAgB,GAAS,GAAU;CAC3E,OAAO,EAAyB,GAAgB,KAAA,GAAW,GAAS,CAAQ;AAC9E;AAqCA,SAAgB,EAAyB,GAAgB,GAAM,GAAS,GAAU;CAChF,AAAI,MAEF,IAAW,IAAI,EAAS,EAAS,QAAQ,GACzC,EAAS,oBAAoB,CAAO;CAEtC,IAAI,IAAY,EAAS,KAAK,CAAI,GAS9B,IAAmB,KAAa,EAAU,gBAAgB,KAAK,EAAS,gBAAgB;CAI5F,IAAI,CAAC,GACH,OAAO;CAET,IAAI,MAAS,wBAAwB;;EAGnC,IAAI,CAAC,EAAS,KAAK,YAAY,GAG7B,OAAO,EAAyB,GAAgB,UAAU,GAAS,CAAQ;EAE7E,IAAI,IAAc,EAAS,KAAK,QAAQ;EACxC,AAAI,MAMF,IAAmB,EAAY,GAAkB,EAAY,gBAAgB,CAAC;CAWlF,OAEK,IAAI,KAAQ,CAAC,GAChB,OAAO;CAET,IAAI,IAAgB,EAAe,QAU/B,IAAiB,EAAiB;CAYtC,OAXI,MAAmB,IACd,gBAEL,IAAiB,IACZ,cAEL,EAAiB,EAAiB,SAAS,KAAK,IAC3C,aAIF,EAAiB,QAAQ,GAAe,CAAC,KAAK,IAAI,gBAAgB;AAC3E"}
package/dist/index310.js CHANGED
@@ -1,23 +1,34 @@
1
- import e from "./index308.js";
1
+ import e from "./index307.js";
2
2
  import t from "./index309.js";
3
- //#region ../../node_modules/libphonenumber-js/es6/helpers/checkNumberLength.js
4
- function n(e, t, n) {
5
- return r(e, void 0, t, n);
3
+ //#region ../../node_modules/libphonenumber-js/es6/isPossible.js
4
+ function n(t, n, i) {
5
+ /* istanbul ignore if */
6
+ n === void 0 && (n = {});
7
+ var a = new e(i);
8
+ if (n.v2) {
9
+ if (!t.countryCallingCode) throw Error("Invalid phone number object passed");
10
+ a.selectNumberingPlan(t.country || t.countryCallingCode);
11
+ } else {
12
+ if (!t.phone) return !1;
13
+ if (t.country) {
14
+ if (!a.hasCountry(t.country)) throw Error(`Unknown country: ${t.country}`);
15
+ a.selectNumberingPlan(t.country);
16
+ } else {
17
+ if (!t.countryCallingCode) throw Error("Invalid phone number object passed");
18
+ a.selectNumberingPlan(t.countryCallingCode);
19
+ }
20
+ }
21
+ if (a.possibleLengths()) return r(t.phone || t.nationalNumber, a);
22
+ if (t.countryCallingCode && a.isNonGeographicCallingCode(t.countryCallingCode)) return !0;
23
+ throw Error("Missing \"possibleLengths\" in metadata. Perhaps the metadata has been generated before v1.0.18.");
6
24
  }
7
- function r(n, i, a, o) {
8
- a && (o = new e(o.metadata), o.selectNumberingPlan(a));
9
- var s = o.type(i), c = s && s.possibleLengths() || o.possibleLengths();
10
- if (!c) return "IS_POSSIBLE";
11
- if (i === "FIXED_LINE_OR_MOBILE") {
12
- /* istanbul ignore next */
13
- if (!o.type("FIXED_LINE")) return r(n, "MOBILE", a, o);
14
- var l = o.type("MOBILE");
15
- l && (c = t(c, l.possibleLengths()));
16
- } else if (i && !s) return "INVALID_LENGTH";
17
- var u = n.length, d = c[0];
18
- return d === u ? "IS_POSSIBLE" : d > u ? "TOO_SHORT" : c[c.length - 1] < u ? "TOO_LONG" : c.indexOf(u, 1) >= 0 ? "IS_POSSIBLE" : "INVALID_LENGTH";
25
+ function r(e, n) {
26
+ switch (t(e, void 0, n)) {
27
+ case "IS_POSSIBLE": return !0;
28
+ default: return !1;
29
+ }
19
30
  }
20
31
  //#endregion
21
- export { r as checkNumberLengthForType, n as default };
32
+ export { n as default, r as isPossibleNumber };
22
33
 
23
34
  //# sourceMappingURL=index310.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index310.js","names":[],"sources":["../../../node_modules/libphonenumber-js/es6/helpers/checkNumberLength.js"],"sourcesContent":["import Metadata from '../metadata.js';\nimport mergeArrays from './mergeArrays.js';\n\n/**\r\n * Checks phone number length against the phone numbering plan selected in metadata.\r\n * Optionally, it could be restrained by a specific country.\r\n * @param {string} nationalNumber\r\n * @param {string?} country — Specific country to use rather than the one that is pre-selected in the metadata instance.\r\n * @param {Metadata} metadata — Metadata instance with a selected numbering plan.\r\n * @returns {string}\r\n */\nexport default function checkNumberLength(nationalNumber, country, metadata) {\n return checkNumberLengthForType(nationalNumber, undefined, country, metadata);\n}\n\n/**\r\n * Checks phone number length against the phone numbering plan selected in metadata.\r\n * Optionally, it could be restrained by a specific phone number type or a specific country.\r\n * @param {string} nationalNumber\r\n * @param {string?} type — Specific phone number type.\r\n * @param {string?} country — Specific country to use instead of the one that is pre-selected in the metadata instance.\r\n * @param {Metadata} metadata — Metadata instance with a selected numbering plan.\r\n * @returns {string} See the README on `validatePhoneNumberLength()` function, with an addition of a special case: when phone numbers of type `type` aren't possible in the telephone numbering plan, it will return \"INVALID_LENGTH\".\r\n */\n// Checks whether a number is possible for a certain `country` based on the number length.\n//\n// This function is not supported by metadata generated with ancient versions of\n// `libphonenumber-js` (before version `1.0.18`) which didn't include \"possible lengths\".\n//\n// There was also a known issue with `checkNumberLength()` function:\n// if a number is possible only in a certain `country` among several `countries`\n// that share the same \"country calling code\", that function would check\n// the possibility of the phone number only in the \"main\" `country` for the \"country calling code\"\n// and would not check if it's actually be possible in the speciifc `country`.\n//\n// For example, \"+1310xxxx\" numbers are valid in Canada.\n// However, they are not possible in the US due to being too short.\n// Since Canada and the US share the same country calling code — \"+1\" —\n// `checkNumberLength()` function used to return not \"IS_POSSIBLE\" for \"+1310xxxx\" numbers.\n//\n// In such cases, when using \"/max\" metadata, `isValid()` could output `true`\n// but at the same time `isPossible()` could output `false`, which was contradictory.\n//\n// See https://issuetracker.google.com/issues/335892662 for the discusson in Google's issues.\n//\n// The solution suggested by Google was implemented: an optional `country` argument\n// was added to `checkNumberLength()` function. If present, that `country` will be used\n// to check phone number length for that specific `country` rather than the \"main\" country\n// for the shared \"country calling code\".\n//\nexport function checkNumberLengthForType(nationalNumber, type, country, metadata) {\n if (country) {\n // If a specific `country` is specified, re-create a metadata instance with it.\n metadata = new Metadata(metadata.metadata);\n metadata.selectNumberingPlan(country);\n }\n var type_info = metadata.type(type);\n\n // There should always be \"<possiblePengths/>\" set for every type element.\n // This is declared in the XML schema.\n // For size efficiency, where a sub-description (e.g. fixed-line)\n // has the same \"<possiblePengths/>\" as the \"general description\", this is missing,\n // so we fall back to the \"general description\". Where no numbers of the type\n // exist at all, there is one possible length (-1) which is guaranteed\n // not to match the length of any real phone number.\n var possible_lengths = type_info && type_info.possibleLengths() || metadata.possibleLengths();\n // let local_lengths = type_info && type.possibleLengthsLocal() || metadata.possibleLengthsLocal()\n\n // Metadata before version `1.0.18` didn't contain `possible_lengths`.\n if (!possible_lengths) {\n return 'IS_POSSIBLE';\n }\n if (type === 'FIXED_LINE_OR_MOBILE') {\n // No such country in metadata.\n /* istanbul ignore next */\n if (!metadata.type('FIXED_LINE')) {\n // The rare case has been encountered where no fixedLine data is available\n // (true for some non-geographic entities), so we just check mobile.\n return checkNumberLengthForType(nationalNumber, 'MOBILE', country, metadata);\n }\n var mobile_type = metadata.type('MOBILE');\n if (mobile_type) {\n // Merge the mobile data in if there was any. \"Concat\" creates a new\n // array, it doesn't edit possible_lengths in place, so we don't need a copy.\n // Note that when adding the possible lengths from mobile, we have\n // to again check they aren't empty since if they are this indicates\n // they are the same as the general desc and should be obtained from there.\n possible_lengths = mergeArrays(possible_lengths, mobile_type.possibleLengths());\n // The current list is sorted; we need to merge in the new list and\n // re-sort (duplicates are okay). Sorting isn't so expensive because\n // the lists are very small.\n\n // if (local_lengths) {\n // \tlocal_lengths = mergeArrays(local_lengths, mobile_type.possibleLengthsLocal())\n // } else {\n // \tlocal_lengths = mobile_type.possibleLengthsLocal()\n // }\n }\n }\n // If the type doesn't exist then return 'INVALID_LENGTH'.\n else if (type && !type_info) {\n return 'INVALID_LENGTH';\n }\n var actual_length = nationalNumber.length;\n\n // In `libphonenumber-js` all \"local-only\" formats are dropped for simplicity.\n // // This is safe because there is never an overlap beween the possible lengths\n // // and the local-only lengths; this is checked at build time.\n // if (local_lengths && local_lengths.indexOf(nationalNumber.length) >= 0)\n // {\n // \treturn 'IS_POSSIBLE_LOCAL_ONLY'\n // }\n\n var minimum_length = possible_lengths[0];\n if (minimum_length === actual_length) {\n return 'IS_POSSIBLE';\n }\n if (minimum_length > actual_length) {\n return 'TOO_SHORT';\n }\n if (possible_lengths[possible_lengths.length - 1] < actual_length) {\n return 'TOO_LONG';\n }\n\n // We skip the first element since we've already checked it.\n return possible_lengths.indexOf(actual_length, 1) >= 0 ? 'IS_POSSIBLE' : 'INVALID_LENGTH';\n}\n//# sourceMappingURL=checkNumberLength.js.map"],"x_google_ignoreList":[0],"mappings":";;;AAWA,SAAwB,EAAkB,GAAgB,GAAS,GAAU;CAC3E,OAAO,EAAyB,GAAgB,KAAA,GAAW,GAAS,CAAQ;AAC9E;AAqCA,SAAgB,EAAyB,GAAgB,GAAM,GAAS,GAAU;CAChF,AAAI,MAEF,IAAW,IAAI,EAAS,EAAS,QAAQ,GACzC,EAAS,oBAAoB,CAAO;CAEtC,IAAI,IAAY,EAAS,KAAK,CAAI,GAS9B,IAAmB,KAAa,EAAU,gBAAgB,KAAK,EAAS,gBAAgB;CAI5F,IAAI,CAAC,GACH,OAAO;CAET,IAAI,MAAS,wBAAwB;;EAGnC,IAAI,CAAC,EAAS,KAAK,YAAY,GAG7B,OAAO,EAAyB,GAAgB,UAAU,GAAS,CAAQ;EAE7E,IAAI,IAAc,EAAS,KAAK,QAAQ;EACxC,AAAI,MAMF,IAAmB,EAAY,GAAkB,EAAY,gBAAgB,CAAC;CAWlF,OAEK,IAAI,KAAQ,CAAC,GAChB,OAAO;CAET,IAAI,IAAgB,EAAe,QAU/B,IAAiB,EAAiB;CAYtC,OAXI,MAAmB,IACd,gBAEL,IAAiB,IACZ,cAEL,EAAiB,EAAiB,SAAS,KAAK,IAC3C,aAIF,EAAiB,QAAQ,GAAe,CAAC,KAAK,IAAI,gBAAgB;AAC3E"}
1
+ {"version":3,"file":"index310.js","names":[],"sources":["../../../node_modules/libphonenumber-js/es6/isPossible.js"],"sourcesContent":["import Metadata from './metadata.js';\nimport checkNumberLength from './helpers/checkNumberLength.js';\n\n/**\n * Checks if a phone number is \"possible\" (basically just checks its length).\n *\n * isPossible(phoneNumberInstance, { ..., v2: true }, metadata)\n *\n * isPossible({ phone: '8005553535', country: 'RU' }, { ... }, metadata)\n * isPossible({ phone: '8005553535', country: 'RU' }, undefined, metadata)\n *\n * @param {object|PhoneNumber} input — If `options.v2: true` flag is passed, the `input` should be a `PhoneNumber` instance. Otherwise, it should be an object of shape `{ phone: '...', country: '...' }`.\n * @param {object} [options]\n * @param {object} metadataJson\n * @return {string}\n */\nexport default function isPossiblePhoneNumber(input, options, metadataJson) {\n /* istanbul ignore if */\n if (options === undefined) {\n options = {};\n }\n var metadata = new Metadata(metadataJson);\n if (options.v2) {\n if (!input.countryCallingCode) {\n throw new Error('Invalid phone number object passed');\n }\n metadata.selectNumberingPlan(input.country || input.countryCallingCode);\n } else {\n if (!input.phone) {\n return false;\n }\n if (input.country) {\n if (!metadata.hasCountry(input.country)) {\n throw new Error(\"Unknown country: \".concat(input.country));\n }\n metadata.selectNumberingPlan(input.country);\n } else {\n if (!input.countryCallingCode) {\n throw new Error('Invalid phone number object passed');\n }\n metadata.selectNumberingPlan(input.countryCallingCode);\n }\n }\n\n // Old (legacy) metadata (< 1.0.18) had no \"possible length\" data.\n // So `isPossibleNumber()` function is supported only for non-legacy metadata.\n if (metadata.possibleLengths()) {\n return isPossibleNumber(input.phone || input.nationalNumber, metadata);\n }\n\n // There was a bug in versions from `1.7.35` to `1.7.37` of `libphonenumber-js`\n // where \"possible_lengths\" property was missing from \"non-geographical\" numbering plans' metadata.\n // After that, the bug was noticed and fixed.\n // So for versions from `1.7.35` to `1.7.37`, just assume that all \"non=geotraphical\" numbers are possible.\n // The reason is that the bug was noticed relatively quickly (within a day or so)\n // and it's unlikely that anyone generated their custom metadata in that short time span.\n // And if they didn't generate any custom metadata then a follow-up package update would've silently fixed the bug.\n if (input.countryCallingCode && metadata.isNonGeographicCallingCode(input.countryCallingCode)) {\n return true;\n }\n\n // `isPossibleNumber()` function is not supported.\n throw new Error('Missing \"possibleLengths\" in metadata. Perhaps the metadata has been generated before v1.0.18.');\n}\n\n/**\n * Tells if a given national (significant) number is possible\n * @param {string} nationalNumber\n * @param {Metadata} metadata = Metadata instance with a pre-selected telephone numbering plan.\n * @returns {boolean}\n */\nexport function isPossibleNumber(nationalNumber, metadata) {\n switch (checkNumberLength(nationalNumber, undefined, metadata)) {\n case 'IS_POSSIBLE':\n return true;\n // This library ignores \"local-only\" phone numbers (for simplicity).\n // See the readme for more info on what are \"local-only\" phone numbers.\n // case 'IS_POSSIBLE_LOCAL_ONLY':\n // \treturn !isInternational\n default:\n return false;\n }\n}\n//# sourceMappingURL=isPossible.js.map"],"x_google_ignoreList":[0],"mappings":";;;AAgBA,SAAwB,EAAsB,GAAO,GAAS,GAAc;;CAE1E,AAAI,MAAY,KAAA,MACd,IAAU,CAAC;CAEb,IAAI,IAAW,IAAI,EAAS,CAAY;CACxC,IAAI,EAAQ,IAAI;EACd,IAAI,CAAC,EAAM,oBACT,MAAU,MAAM,oCAAoC;EAEtD,EAAS,oBAAoB,EAAM,WAAW,EAAM,kBAAkB;CACxE,OAAO;EACL,IAAI,CAAC,EAAM,OACT,OAAO;EAET,IAAI,EAAM,SAAS;GACjB,IAAI,CAAC,EAAS,WAAW,EAAM,OAAO,GACpC,MAAU,MAAM,oBAA2B,EAAM,SAAQ;GAE3D,EAAS,oBAAoB,EAAM,OAAO;EAC5C,OAAO;GACL,IAAI,CAAC,EAAM,oBACT,MAAU,MAAM,oCAAoC;GAEtD,EAAS,oBAAoB,EAAM,kBAAkB;EACvD;CACF;CAIA,IAAI,EAAS,gBAAgB,GAC3B,OAAO,EAAiB,EAAM,SAAS,EAAM,gBAAgB,CAAQ;CAUvE,IAAI,EAAM,sBAAsB,EAAS,2BAA2B,EAAM,kBAAkB,GAC1F,OAAO;CAIT,MAAU,MAAM,kGAAgG;AAClH;AAQA,SAAgB,EAAiB,GAAgB,GAAU;CACzD,QAAQ,EAAkB,GAAgB,KAAA,GAAW,CAAQ,GAA7D;EACE,KAAK,eACH,OAAO;EAKT,SACE,OAAO;CACX;AACF"}
package/dist/index311.js CHANGED
@@ -1,34 +1,8 @@
1
- import e from "./index308.js";
2
- import t from "./index310.js";
3
- //#region ../../node_modules/libphonenumber-js/es6/isPossible.js
4
- function n(t, n, i) {
5
- /* istanbul ignore if */
6
- n === void 0 && (n = {});
7
- var a = new e(i);
8
- if (n.v2) {
9
- if (!t.countryCallingCode) throw Error("Invalid phone number object passed");
10
- a.selectNumberingPlan(t.country || t.countryCallingCode);
11
- } else {
12
- if (!t.phone) return !1;
13
- if (t.country) {
14
- if (!a.hasCountry(t.country)) throw Error(`Unknown country: ${t.country}`);
15
- a.selectNumberingPlan(t.country);
16
- } else {
17
- if (!t.countryCallingCode) throw Error("Invalid phone number object passed");
18
- a.selectNumberingPlan(t.countryCallingCode);
19
- }
20
- }
21
- if (a.possibleLengths()) return r(t.phone || t.nationalNumber, a);
22
- if (t.countryCallingCode && a.isNonGeographicCallingCode(t.countryCallingCode)) return !0;
23
- throw Error("Missing \"possibleLengths\" in metadata. Perhaps the metadata has been generated before v1.0.18.");
24
- }
25
- function r(e, n) {
26
- switch (t(e, void 0, n)) {
27
- case "IS_POSSIBLE": return !0;
28
- default: return !1;
29
- }
1
+ //#region ../../node_modules/libphonenumber-js/es6/helpers/matchesEntirely.js
2
+ function e(e, t) {
3
+ return e ||= "", RegExp("^(?:" + t + ")$").test(e);
30
4
  }
31
5
  //#endregion
32
- export { n as default, r as isPossibleNumber };
6
+ export { e as default };
33
7
 
34
8
  //# sourceMappingURL=index311.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index311.js","names":[],"sources":["../../../node_modules/libphonenumber-js/es6/isPossible.js"],"sourcesContent":["import Metadata from './metadata.js';\nimport checkNumberLength from './helpers/checkNumberLength.js';\n\n/**\r\n * Checks if a phone number is \"possible\" (basically just checks its length).\r\n *\r\n * isPossible(phoneNumberInstance, { ..., v2: true }, metadata)\r\n *\r\n * isPossible({ phone: '8005553535', country: 'RU' }, { ... }, metadata)\r\n * isPossible({ phone: '8005553535', country: 'RU' }, undefined, metadata)\r\n *\r\n * @param {object|PhoneNumber} input — If `options.v2: true` flag is passed, the `input` should be a `PhoneNumber` instance. Otherwise, it should be an object of shape `{ phone: '...', country: '...' }`.\r\n * @param {object} [options]\r\n * @param {object} metadataJson\r\n * @return {string}\r\n */\nexport default function isPossiblePhoneNumber(input, options, metadataJson) {\n /* istanbul ignore if */\n if (options === undefined) {\n options = {};\n }\n var metadata = new Metadata(metadataJson);\n if (options.v2) {\n if (!input.countryCallingCode) {\n throw new Error('Invalid phone number object passed');\n }\n metadata.selectNumberingPlan(input.country || input.countryCallingCode);\n } else {\n if (!input.phone) {\n return false;\n }\n if (input.country) {\n if (!metadata.hasCountry(input.country)) {\n throw new Error(\"Unknown country: \".concat(input.country));\n }\n metadata.selectNumberingPlan(input.country);\n } else {\n if (!input.countryCallingCode) {\n throw new Error('Invalid phone number object passed');\n }\n metadata.selectNumberingPlan(input.countryCallingCode);\n }\n }\n\n // Old (legacy) metadata (< 1.0.18) had no \"possible length\" data.\n // So `isPossibleNumber()` function is supported only for non-legacy metadata.\n if (metadata.possibleLengths()) {\n return isPossibleNumber(input.phone || input.nationalNumber, metadata);\n }\n\n // There was a bug in versions from `1.7.35` to `1.7.37` of `libphonenumber-js`\n // where \"possible_lengths\" property was missing from \"non-geographical\" numbering plans' metadata.\n // After that, the bug was noticed and fixed.\n // So for versions from `1.7.35` to `1.7.37`, just assume that all \"non=geotraphical\" numbers are possible.\n // The reason is that the bug was noticed relatively quickly (within a day or so)\n // and it's unlikely that anyone generated their custom metadata in that short time span.\n // And if they didn't generate any custom metadata then a follow-up package update would've silently fixed the bug.\n if (input.countryCallingCode && metadata.isNonGeographicCallingCode(input.countryCallingCode)) {\n return true;\n }\n\n // `isPossibleNumber()` function is not supported.\n throw new Error('Missing \"possibleLengths\" in metadata. Perhaps the metadata has been generated before v1.0.18.');\n}\n\n/**\r\n * Tells if a given national (significant) number is possible\r\n * @param {string} nationalNumber\r\n * @param {Metadata} metadata = Metadata instance with a pre-selected telephone numbering plan.\r\n * @returns {boolean}\r\n */\nexport function isPossibleNumber(nationalNumber, metadata) {\n switch (checkNumberLength(nationalNumber, undefined, metadata)) {\n case 'IS_POSSIBLE':\n return true;\n // This library ignores \"local-only\" phone numbers (for simplicity).\n // See the readme for more info on what are \"local-only\" phone numbers.\n // case 'IS_POSSIBLE_LOCAL_ONLY':\n // \treturn !isInternational\n default:\n return false;\n }\n}\n//# sourceMappingURL=isPossible.js.map"],"x_google_ignoreList":[0],"mappings":";;;AAgBA,SAAwB,EAAsB,GAAO,GAAS,GAAc;;CAE1E,AAAI,MAAY,KAAA,MACd,IAAU,CAAC;CAEb,IAAI,IAAW,IAAI,EAAS,CAAY;CACxC,IAAI,EAAQ,IAAI;EACd,IAAI,CAAC,EAAM,oBACT,MAAU,MAAM,oCAAoC;EAEtD,EAAS,oBAAoB,EAAM,WAAW,EAAM,kBAAkB;CACxE,OAAO;EACL,IAAI,CAAC,EAAM,OACT,OAAO;EAET,IAAI,EAAM,SAAS;GACjB,IAAI,CAAC,EAAS,WAAW,EAAM,OAAO,GACpC,MAAU,MAAM,oBAA2B,EAAM,SAAQ;GAE3D,EAAS,oBAAoB,EAAM,OAAO;EAC5C,OAAO;GACL,IAAI,CAAC,EAAM,oBACT,MAAU,MAAM,oCAAoC;GAEtD,EAAS,oBAAoB,EAAM,kBAAkB;EACvD;CACF;CAIA,IAAI,EAAS,gBAAgB,GAC3B,OAAO,EAAiB,EAAM,SAAS,EAAM,gBAAgB,CAAQ;CAUvE,IAAI,EAAM,sBAAsB,EAAS,2BAA2B,EAAM,kBAAkB,GAC1F,OAAO;CAIT,MAAU,MAAM,kGAAgG;AAClH;AAQA,SAAgB,EAAiB,GAAgB,GAAU;CACzD,QAAQ,EAAkB,GAAgB,KAAA,GAAW,CAAQ,GAA7D;EACE,KAAK,eACH,OAAO;EAKT,SACE,OAAO;CACX;AACF"}
1
+ {"version":3,"file":"index311.js","names":[],"sources":["../../../node_modules/libphonenumber-js/es6/helpers/matchesEntirely.js"],"sourcesContent":["/**\n * Checks whether the entire input sequence can be matched\n * against the regular expression.\n * @return {boolean}\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"],"x_google_ignoreList":[0],"mappings":";AAKA,SAAwB,EAAgB,GAAM,GAAuB;CAInE,OADA,MAAe,IACJ,OAAO,SAAS,IAAwB,IAAI,CAAC,CAAC,KAAK,CAAI;AACpE"}
package/dist/index312.js CHANGED
@@ -1,8 +1,63 @@
1
- //#region ../../node_modules/libphonenumber-js/es6/helpers/matchesEntirely.js
2
- function e(e, t) {
3
- return e ||= "", RegExp("^(?:" + t + ")$").test(e);
1
+ import e from "./index307.js";
2
+ import t from "./index311.js";
3
+ //#region ../../node_modules/libphonenumber-js/es6/helpers/getNumberType.js
4
+ function n(e, t) {
5
+ var n = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
6
+ if (n) return (n = n.call(e)).next.bind(n);
7
+ if (Array.isArray(e) || (n = r(e)) || t && e && typeof e.length == "number") {
8
+ n && (e = n);
9
+ var i = 0;
10
+ return function() {
11
+ return i >= e.length ? { done: !0 } : {
12
+ done: !1,
13
+ value: e[i++]
14
+ };
15
+ };
16
+ }
17
+ throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
18
+ }
19
+ function r(e, t) {
20
+ if (e) {
21
+ if (typeof e == "string") return i(e, t);
22
+ var n = {}.toString.call(e).slice(8, -1);
23
+ return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? i(e, t) : void 0;
24
+ }
25
+ }
26
+ function i(e, t) {
27
+ (t == null || t > e.length) && (t = e.length);
28
+ for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
29
+ return r;
30
+ }
31
+ var a = [
32
+ "MOBILE",
33
+ "PREMIUM_RATE",
34
+ "TOLL_FREE",
35
+ "SHARED_COST",
36
+ "VOIP",
37
+ "PERSONAL_NUMBER",
38
+ "PAGER",
39
+ "UAN",
40
+ "VOICEMAIL"
41
+ ];
42
+ function o(r, i, o) {
43
+ if (i ||= {}, !(!r.country && !r.countryCallingCode)) {
44
+ var c = new e(o);
45
+ c.selectNumberingPlan(r.country || r.countryCallingCode);
46
+ var l = i.v2 ? r.nationalNumber : r.phone;
47
+ if (t(l, c.nationalNumberPattern())) {
48
+ if (s(l, "FIXED_LINE", c)) return c.type("MOBILE") && c.type("MOBILE").pattern() === "" || !c.type("MOBILE") || s(l, "MOBILE", c) ? "FIXED_LINE_OR_MOBILE" : "FIXED_LINE";
49
+ for (var u = n(a), d; !(d = u()).done;) {
50
+ var f = d.value;
51
+ if (s(l, f, c)) return f;
52
+ }
53
+ }
54
+ }
55
+ }
56
+ function s(e, n, r) {
57
+ var i = r.type(n);
58
+ return !i || !i.pattern() || i.possibleLengths() && i.possibleLengths().indexOf(e.length) < 0 ? !1 : t(e, i.pattern());
4
59
  }
5
60
  //#endregion
6
- export { e as default };
61
+ export { o as default, s as isNumberTypeEqualTo };
7
62
 
8
63
  //# sourceMappingURL=index312.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index312.js","names":[],"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"],"x_google_ignoreList":[0],"mappings":";AAKA,SAAwB,EAAgB,GAAM,GAAuB;CAInE,OADA,MAAe,IACJ,OAAO,SAAS,IAAwB,IAAI,CAAC,CAAC,KAAK,CAAI;AACpE"}
1
+ {"version":3,"file":"index312.js","names":[],"sources":["../../../node_modules/libphonenumber-js/es6/helpers/getNumberType.js"],"sourcesContent":["function _createForOfIteratorHelperLoose(r, e) { var t = \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (t) return (t = t.call(r)).next.bind(t); if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && \"number\" == typeof r.length) { t && (r = t); var o = 0; return function () { return o >= r.length ? { done: !0 } : { done: !1, value: r[o++] }; }; } throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(r, a) { if (r) { if (\"string\" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return \"Object\" === t && r.constructor && (t = r.constructor.name), \"Map\" === t || \"Set\" === t ? Array.from(r) : \"Arguments\" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }\nfunction _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\nimport Metadata from '../metadata.js';\nimport matchesEntirely from './matchesEntirely.js';\nvar NON_FIXED_LINE_PHONE_TYPES = ['MOBILE', 'PREMIUM_RATE', 'TOLL_FREE', 'SHARED_COST', 'VOIP', 'PERSONAL_NUMBER', 'PAGER', 'UAN', 'VOICEMAIL'];\n\n// Finds out national phone number type (fixed line, mobile, etc)\nexport default function getNumberType(input, options, metadataJson) {\n // If assigning the `{}` default value is moved to the arguments above,\n // code coverage would decrease for some weird reason.\n options = options || {};\n\n // When `parse()` returns an empty object — `{}` —\n // that means that the phone number is malformed,\n // so it can't possibly be valid.\n if (!input.country && !input.countryCallingCode) {\n return;\n }\n var metadata = new Metadata(metadataJson);\n metadata.selectNumberingPlan(input.country || input.countryCallingCode);\n var nationalNumber = options.v2 ? input.nationalNumber : input.phone;\n\n // The following is copy-pasted from the original function:\n // https://github.com/googlei18n/libphonenumber/blob/3ea547d4fbaa2d0b67588904dfa5d3f2557c27ff/javascript/i18n/phonenumbers/phonenumberutil.js#L2835\n\n // Is this national number even valid for this country\n if (!matchesEntirely(nationalNumber, metadata.nationalNumberPattern())) {\n return;\n }\n\n // Is it fixed line number\n if (isNumberTypeEqualTo(nationalNumber, 'FIXED_LINE', metadata)) {\n // Because duplicate regular expressions are removed\n // to reduce metadata size, if \"mobile\" pattern is \"\"\n // then it means it was removed due to being a duplicate of the fixed-line pattern.\n //\n if (metadata.type('MOBILE') && metadata.type('MOBILE').pattern() === '') {\n return 'FIXED_LINE_OR_MOBILE';\n }\n\n // `MOBILE` type pattern isn't included if it matched `FIXED_LINE` one.\n // For example, for \"US\" country.\n // Old metadata (< `1.0.18`) had a specific \"types\" data structure\n // that happened to be `undefined` for `MOBILE` in that case.\n // Newer metadata (>= `1.0.18`) has another data structure that is\n // not `undefined` for `MOBILE` in that case (it's just an empty array).\n // So this `if` is just for backwards compatibility with old metadata.\n if (!metadata.type('MOBILE')) {\n return 'FIXED_LINE_OR_MOBILE';\n }\n\n // Check if the number happens to qualify as both fixed line and mobile.\n // (no such country in the minimal metadata set)\n /* istanbul ignore if */\n if (isNumberTypeEqualTo(nationalNumber, 'MOBILE', metadata)) {\n return 'FIXED_LINE_OR_MOBILE';\n }\n return 'FIXED_LINE';\n }\n for (var _iterator = _createForOfIteratorHelperLoose(NON_FIXED_LINE_PHONE_TYPES), _step; !(_step = _iterator()).done;) {\n var type = _step.value;\n if (isNumberTypeEqualTo(nationalNumber, type, metadata)) {\n return type;\n }\n }\n}\nexport function isNumberTypeEqualTo(nationalNumber, type, metadata) {\n var typeDefinition = metadata.type(type);\n if (!typeDefinition || !typeDefinition.pattern()) {\n return false;\n }\n\n // Check if any possible number lengths are present;\n // if so, we use them to avoid checking\n // the validation pattern if they don't match.\n // If they are absent, this means they match\n // the general description, which we have\n // already checked before a specific number type.\n if (typeDefinition.possibleLengths() && typeDefinition.possibleLengths().indexOf(nationalNumber.length) < 0) {\n return false;\n }\n return matchesEntirely(nationalNumber, typeDefinition.pattern());\n}\n//# sourceMappingURL=getNumberType.js.map"],"x_google_ignoreList":[0],"mappings":";;;AAAA,SAAS,EAAgC,GAAG,GAAG;CAAE,IAAI,IAAmB,OAAO,SAAtB,OAAgC,EAAE,OAAO,aAAa,EAAE;CAAe,IAAI,GAAG,QAAQ,IAAI,EAAE,KAAK,CAAC,EAAA,CAAG,KAAK,KAAK,CAAC;CAAG,IAAI,MAAM,QAAQ,CAAC,MAAM,IAAI,EAA4B,CAAC,MAAM,KAAK,KAAiB,OAAO,EAAE,UAArB,UAA6B;EAAE,MAAM,IAAI;EAAI,IAAI,IAAI;EAAG,OAAO,WAAY;GAAE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,CAAC,EAAE,IAAI;IAAE,MAAM,CAAC;IAAG,OAAO,EAAE;GAAK;EAAG;CAAG;CAAE,MAAU,UAAU,uIAAuI;AAAG;AACziB,SAAS,EAA4B,GAAG,GAAG;CAAE,IAAI,GAAG;EAAE,IAAgB,OAAO,KAAnB,UAAsB,OAAO,EAAkB,GAAG,CAAC;EAAG,IAAI,IAAI,CAAC,EAAE,SAAS,KAAK,CAAC,CAAC,CAAC,MAAM,GAAG,EAAE;EAAG,OAAoB,MAAb,YAAkB,EAAE,gBAAgB,IAAI,EAAE,YAAY,OAAiB,MAAV,SAAyB,MAAV,QAAc,MAAM,KAAK,CAAC,IAAoB,MAAhB,eAAqB,2CAA2C,KAAK,CAAC,IAAI,EAAkB,GAAG,CAAC,IAAI,KAAK;CAAG;AAAE;AACzX,SAAS,EAAkB,GAAG,GAAG;CAAE,CAAS,KAAR,QAAa,IAAI,EAAE,YAAY,IAAI,EAAE;CAAS,KAAK,IAAI,IAAI,GAAG,IAAI,MAAM,CAAC,GAAG,IAAI,GAAG,KAAK,EAAE,KAAK,EAAE;CAAI,OAAO;AAAG;AAGnJ,IAAI,IAA6B;CAAC;CAAU;CAAgB;CAAa;CAAe;CAAQ;CAAmB;CAAS;CAAO;AAAW;AAG9I,SAAwB,EAAc,GAAO,GAAS,GAAc;CAGlE,UAAqB,CAAC,GAKlB,GAAC,EAAM,WAAW,CAAC,EAAM,qBAG7B;MAAI,IAAW,IAAI,EAAS,CAAY;EACxC,EAAS,oBAAoB,EAAM,WAAW,EAAM,kBAAkB;EACtE,IAAI,IAAiB,EAAQ,KAAK,EAAM,iBAAiB,EAAM;EAM1D,MAAgB,GAAgB,EAAS,sBAAsB,CAAC,GAKrE;OAAI,EAAoB,GAAgB,cAAc,CAAQ,GA0B5D,OArBI,EAAS,KAAK,QAAQ,KAAK,EAAS,KAAK,QAAQ,CAAC,CAAC,QAAQ,MAAM,MAWjE,CAAC,EAAS,KAAK,QAAQ,KAOvB,EAAoB,GAAgB,UAAU,CAAQ,IACjD,yBAEF;GAET,KAAK,IAAI,IAAY,EAAgC,CAA0B,GAAG,GAAO,EAAE,IAAQ,EAAU,EAAA,CAAG,OAAO;IACrH,IAAI,IAAO,EAAM;IACjB,IAAI,EAAoB,GAAgB,GAAM,CAAQ,GACpD,OAAO;GAEX;EANA;CAxCwC;AA+C1C;AACA,SAAgB,EAAoB,GAAgB,GAAM,GAAU;CAClE,IAAI,IAAiB,EAAS,KAAK,CAAI;CAcvC,OAbI,CAAC,KAAkB,CAAC,EAAe,QAAQ,KAU3C,EAAe,gBAAgB,KAAK,EAAe,gBAAgB,CAAC,CAAC,QAAQ,EAAe,MAAM,IAAI,IACjG,KAEF,EAAgB,GAAgB,EAAe,QAAQ,CAAC;AACjE"}
package/dist/index313.js CHANGED
@@ -1,63 +1,15 @@
1
- import e from "./index308.js";
2
- import t from "./index312.js";
3
- //#region ../../node_modules/libphonenumber-js/es6/helpers/getNumberType.js
4
- function n(e, t) {
5
- var n = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
6
- if (n) return (n = n.call(e)).next.bind(n);
7
- if (Array.isArray(e) || (n = r(e)) || t && e && typeof e.length == "number") {
8
- n && (e = n);
9
- var i = 0;
10
- return function() {
11
- return i >= e.length ? { done: !0 } : {
12
- done: !1,
13
- value: e[i++]
14
- };
15
- };
16
- }
17
- throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
18
- }
19
- function r(e, t) {
20
- if (e) {
21
- if (typeof e == "string") return i(e, t);
22
- var n = {}.toString.call(e).slice(8, -1);
23
- return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? i(e, t) : void 0;
24
- }
25
- }
26
- function i(e, t) {
27
- (t == null || t > e.length) && (t = e.length);
28
- for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
29
- return r;
30
- }
31
- var a = [
32
- "MOBILE",
33
- "PREMIUM_RATE",
34
- "TOLL_FREE",
35
- "SHARED_COST",
36
- "VOIP",
37
- "PERSONAL_NUMBER",
38
- "PAGER",
39
- "UAN",
40
- "VOICEMAIL"
41
- ];
42
- function o(r, i, o) {
43
- if (i ||= {}, !(!r.country && !r.countryCallingCode)) {
44
- var c = new e(o);
45
- c.selectNumberingPlan(r.country || r.countryCallingCode);
46
- var l = i.v2 ? r.nationalNumber : r.phone;
47
- if (t(l, c.nationalNumberPattern())) {
48
- if (s(l, "FIXED_LINE", c)) return c.type("MOBILE") && c.type("MOBILE").pattern() === "" || !c.type("MOBILE") || s(l, "MOBILE", c) ? "FIXED_LINE_OR_MOBILE" : "FIXED_LINE";
49
- for (var u = n(a), d; !(d = u()).done;) {
50
- var f = d.value;
51
- if (s(l, f, c)) return f;
52
- }
53
- }
54
- }
55
- }
56
- function s(e, n, r) {
57
- var i = r.type(n);
58
- return !i || !i.pattern() || i.possibleLengths() && i.possibleLengths().indexOf(e.length) < 0 ? !1 : t(e, i.pattern());
1
+ import e from "./index307.js";
2
+ import t from "./index311.js";
3
+ import n from "./index312.js";
4
+ //#region ../../node_modules/libphonenumber-js/es6/isValid.js
5
+ function r(r, i, a) {
6
+ i ||= {};
7
+ var o = new e(a);
8
+ if (o.selectNumberingPlan(r.country || r.countryCallingCode), o.hasTypes()) return n(r, i, o.metadata) !== void 0;
9
+ var s = i.v2 ? r.nationalNumber : r.phone;
10
+ return t(s, o.nationalNumberPattern());
59
11
  }
60
12
  //#endregion
61
- export { o as default, s as isNumberTypeEqualTo };
13
+ export { r as default };
62
14
 
63
15
  //# sourceMappingURL=index313.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index313.js","names":[],"sources":["../../../node_modules/libphonenumber-js/es6/helpers/getNumberType.js"],"sourcesContent":["function _createForOfIteratorHelperLoose(r, e) { var t = \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (t) return (t = t.call(r)).next.bind(t); if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && \"number\" == typeof r.length) { t && (r = t); var o = 0; return function () { return o >= r.length ? { done: !0 } : { done: !1, value: r[o++] }; }; } throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(r, a) { if (r) { if (\"string\" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return \"Object\" === t && r.constructor && (t = r.constructor.name), \"Map\" === t || \"Set\" === t ? Array.from(r) : \"Arguments\" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }\nfunction _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\nimport Metadata from '../metadata.js';\nimport matchesEntirely from './matchesEntirely.js';\nvar NON_FIXED_LINE_PHONE_TYPES = ['MOBILE', 'PREMIUM_RATE', 'TOLL_FREE', 'SHARED_COST', 'VOIP', 'PERSONAL_NUMBER', 'PAGER', 'UAN', 'VOICEMAIL'];\n\n// Finds out national phone number type (fixed line, mobile, etc)\nexport default function getNumberType(input, options, metadataJson) {\n // If assigning the `{}` default value is moved to the arguments above,\n // code coverage would decrease for some weird reason.\n options = options || {};\n\n // When `parse()` returns an empty object — `{}` —\n // that means that the phone number is malformed,\n // so it can't possibly be valid.\n if (!input.country && !input.countryCallingCode) {\n return;\n }\n var metadata = new Metadata(metadataJson);\n metadata.selectNumberingPlan(input.country || input.countryCallingCode);\n var nationalNumber = options.v2 ? input.nationalNumber : input.phone;\n\n // The following is copy-pasted from the original function:\n // https://github.com/googlei18n/libphonenumber/blob/3ea547d4fbaa2d0b67588904dfa5d3f2557c27ff/javascript/i18n/phonenumbers/phonenumberutil.js#L2835\n\n // Is this national number even valid for this country\n if (!matchesEntirely(nationalNumber, metadata.nationalNumberPattern())) {\n return;\n }\n\n // Is it fixed line number\n if (isNumberTypeEqualTo(nationalNumber, 'FIXED_LINE', metadata)) {\n // Because duplicate regular expressions are removed\n // to reduce metadata size, if \"mobile\" pattern is \"\"\n // then it means it was removed due to being a duplicate of the fixed-line pattern.\n //\n if (metadata.type('MOBILE') && metadata.type('MOBILE').pattern() === '') {\n return 'FIXED_LINE_OR_MOBILE';\n }\n\n // `MOBILE` type pattern isn't included if it matched `FIXED_LINE` one.\n // For example, for \"US\" country.\n // Old metadata (< `1.0.18`) had a specific \"types\" data structure\n // that happened to be `undefined` for `MOBILE` in that case.\n // Newer metadata (>= `1.0.18`) has another data structure that is\n // not `undefined` for `MOBILE` in that case (it's just an empty array).\n // So this `if` is just for backwards compatibility with old metadata.\n if (!metadata.type('MOBILE')) {\n return 'FIXED_LINE_OR_MOBILE';\n }\n\n // Check if the number happens to qualify as both fixed line and mobile.\n // (no such country in the minimal metadata set)\n /* istanbul ignore if */\n if (isNumberTypeEqualTo(nationalNumber, 'MOBILE', metadata)) {\n return 'FIXED_LINE_OR_MOBILE';\n }\n return 'FIXED_LINE';\n }\n for (var _iterator = _createForOfIteratorHelperLoose(NON_FIXED_LINE_PHONE_TYPES), _step; !(_step = _iterator()).done;) {\n var type = _step.value;\n if (isNumberTypeEqualTo(nationalNumber, type, metadata)) {\n return type;\n }\n }\n}\nexport function isNumberTypeEqualTo(nationalNumber, type, metadata) {\n var typeDefinition = metadata.type(type);\n if (!typeDefinition || !typeDefinition.pattern()) {\n return false;\n }\n\n // Check if any possible number lengths are present;\n // if so, we use them to avoid checking\n // the validation pattern if they don't match.\n // If they are absent, this means they match\n // the general description, which we have\n // already checked before a specific number type.\n if (typeDefinition.possibleLengths() && typeDefinition.possibleLengths().indexOf(nationalNumber.length) < 0) {\n return false;\n }\n return matchesEntirely(nationalNumber, typeDefinition.pattern());\n}\n//# sourceMappingURL=getNumberType.js.map"],"x_google_ignoreList":[0],"mappings":";;;AAAA,SAAS,EAAgC,GAAG,GAAG;CAAE,IAAI,IAAmB,OAAO,SAAtB,OAAgC,EAAE,OAAO,aAAa,EAAE;CAAe,IAAI,GAAG,QAAQ,IAAI,EAAE,KAAK,CAAC,EAAA,CAAG,KAAK,KAAK,CAAC;CAAG,IAAI,MAAM,QAAQ,CAAC,MAAM,IAAI,EAA4B,CAAC,MAAM,KAAK,KAAiB,OAAO,EAAE,UAArB,UAA6B;EAAE,MAAM,IAAI;EAAI,IAAI,IAAI;EAAG,OAAO,WAAY;GAAE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,CAAC,EAAE,IAAI;IAAE,MAAM,CAAC;IAAG,OAAO,EAAE;GAAK;EAAG;CAAG;CAAE,MAAU,UAAU,uIAAuI;AAAG;AACziB,SAAS,EAA4B,GAAG,GAAG;CAAE,IAAI,GAAG;EAAE,IAAgB,OAAO,KAAnB,UAAsB,OAAO,EAAkB,GAAG,CAAC;EAAG,IAAI,IAAI,CAAC,EAAE,SAAS,KAAK,CAAC,CAAC,CAAC,MAAM,GAAG,EAAE;EAAG,OAAoB,MAAb,YAAkB,EAAE,gBAAgB,IAAI,EAAE,YAAY,OAAiB,MAAV,SAAyB,MAAV,QAAc,MAAM,KAAK,CAAC,IAAoB,MAAhB,eAAqB,2CAA2C,KAAK,CAAC,IAAI,EAAkB,GAAG,CAAC,IAAI,KAAK;CAAG;AAAE;AACzX,SAAS,EAAkB,GAAG,GAAG;CAAE,CAAS,KAAR,QAAa,IAAI,EAAE,YAAY,IAAI,EAAE;CAAS,KAAK,IAAI,IAAI,GAAG,IAAI,MAAM,CAAC,GAAG,IAAI,GAAG,KAAK,EAAE,KAAK,EAAE;CAAI,OAAO;AAAG;AAGnJ,IAAI,IAA6B;CAAC;CAAU;CAAgB;CAAa;CAAe;CAAQ;CAAmB;CAAS;CAAO;AAAW;AAG9I,SAAwB,EAAc,GAAO,GAAS,GAAc;CAGlE,UAAqB,CAAC,GAKlB,GAAC,EAAM,WAAW,CAAC,EAAM,qBAG7B;MAAI,IAAW,IAAI,EAAS,CAAY;EACxC,EAAS,oBAAoB,EAAM,WAAW,EAAM,kBAAkB;EACtE,IAAI,IAAiB,EAAQ,KAAK,EAAM,iBAAiB,EAAM;EAM1D,MAAgB,GAAgB,EAAS,sBAAsB,CAAC,GAKrE;OAAI,EAAoB,GAAgB,cAAc,CAAQ,GA0B5D,OArBI,EAAS,KAAK,QAAQ,KAAK,EAAS,KAAK,QAAQ,CAAC,CAAC,QAAQ,MAAM,MAWjE,CAAC,EAAS,KAAK,QAAQ,KAOvB,EAAoB,GAAgB,UAAU,CAAQ,IACjD,yBAEF;GAET,KAAK,IAAI,IAAY,EAAgC,CAA0B,GAAG,GAAO,EAAE,IAAQ,EAAU,EAAA,CAAG,OAAO;IACrH,IAAI,IAAO,EAAM;IACjB,IAAI,EAAoB,GAAgB,GAAM,CAAQ,GACpD,OAAO;GAEX;EANA;CAxCwC;AA+C1C;AACA,SAAgB,EAAoB,GAAgB,GAAM,GAAU;CAClE,IAAI,IAAiB,EAAS,KAAK,CAAI;CAcvC,OAbI,CAAC,KAAkB,CAAC,EAAe,QAAQ,KAU3C,EAAe,gBAAgB,KAAK,EAAe,gBAAgB,CAAC,CAAC,QAAQ,EAAe,MAAM,IAAI,IACjG,KAEF,EAAgB,GAAgB,EAAe,QAAQ,CAAC;AACjE"}
1
+ {"version":3,"file":"index313.js","names":[],"sources":["../../../node_modules/libphonenumber-js/es6/isValid.js"],"sourcesContent":["import Metadata from './metadata.js';\nimport matchesEntirely from './helpers/matchesEntirely.js';\nimport getNumberType from './helpers/getNumberType.js';\n\n/**\n * Checks if a given phone number is valid.\n *\n * isValid(phoneNumberInstance, { ..., v2: true }, metadata)\n *\n * isPossible({ phone: '8005553535', country: 'RU' }, { ... }, metadata)\n * isPossible({ phone: '8005553535', country: 'RU' }, undefined, metadata)\n *\n * If the `number` is a string, it will be parsed to an object,\n * but only if it contains only valid phone number characters (including punctuation).\n * If the `number` is an object, it is used as is.\n *\n * The optional `defaultCountry` argument is the default country.\n * I.e. it does not restrict to just that country,\n * e.g. in those cases where several countries share\n * the same phone numbering rules (NANPA, Britain, etc).\n * For example, even though the number `07624 369230`\n * belongs to the Isle of Man (\"IM\" country code)\n * calling `isValidNumber('07624369230', 'GB', metadata)`\n * still returns `true` because the country is not restricted to `GB`,\n * it's just that `GB` is the default one for the phone numbering rules.\n * For restricting the country see `isValidNumberForRegion()`\n * though restricting a country might not be a good idea.\n * https://github.com/googlei18n/libphonenumber/blob/master/FAQ.md#when-should-i-use-isvalidnumberforregion\n *\n * Examples:\n *\n * ```js\n * isValidNumber('+78005553535', metadata)\n * isValidNumber('8005553535', 'RU', metadata)\n * isValidNumber('88005553535', 'RU', metadata)\n * isValidNumber({ phone: '8005553535', country: 'RU' }, metadata)\n * ```\n */\nexport default function isValidNumber(input, options, metadataJson) {\n // If assigning the `{}` default value is moved to the arguments above,\n // code coverage would decrease for some weird reason.\n options = options || {};\n var metadata = new Metadata(metadataJson);\n metadata.selectNumberingPlan(input.country || input.countryCallingCode);\n\n // By default, countries only have type regexps when it's required for\n // distinguishing different countries having the same `countryCallingCode`.\n if (metadata.hasTypes()) {\n return getNumberType(input, options, metadata.metadata) !== undefined;\n }\n\n // If there are no type regexps for this country in metadata then use\n // `nationalNumberPattern` as a \"better than nothing\" replacement.\n var nationalNumber = options.v2 ? input.nationalNumber : input.phone;\n return matchesEntirely(nationalNumber, metadata.nationalNumberPattern());\n}\n//# sourceMappingURL=isValid.js.map"],"x_google_ignoreList":[0],"mappings":";;;;AAsCA,SAAwB,EAAc,GAAO,GAAS,GAAc;CAGlE,MAAqB,CAAC;CACtB,IAAI,IAAW,IAAI,EAAS,CAAY;CAKxC,IAJA,EAAS,oBAAoB,EAAM,WAAW,EAAM,kBAAkB,GAIlE,EAAS,SAAS,GACpB,OAAO,EAAc,GAAO,GAAS,EAAS,QAAQ,MAAM,KAAA;CAK9D,IAAI,IAAiB,EAAQ,KAAK,EAAM,iBAAiB,EAAM;CAC/D,OAAO,EAAgB,GAAgB,EAAS,sBAAsB,CAAC;AACzE"}
package/dist/index314.js CHANGED
@@ -1,13 +1,9 @@
1
- import e from "./index308.js";
2
- import t from "./index312.js";
3
- import n from "./index313.js";
4
- //#region ../../node_modules/libphonenumber-js/es6/isValid.js
5
- function r(r, i, a) {
6
- i ||= {};
7
- var o = new e(a);
8
- return o.selectNumberingPlan(r.country || r.countryCallingCode), o.hasTypes() ? n(r, i, o.metadata) !== void 0 : t(i.v2 ? r.nationalNumber : r.phone, o.nationalNumberPattern());
1
+ //#region ../../node_modules/libphonenumber-js/es6/helpers/isCountryCode.js
2
+ var e = /^[A-Z]{2}$/;
3
+ function t(t) {
4
+ return e.test(t);
9
5
  }
10
6
  //#endregion
11
- export { r as default };
7
+ export { t as default };
12
8
 
13
9
  //# sourceMappingURL=index314.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index314.js","names":[],"sources":["../../../node_modules/libphonenumber-js/es6/isValid.js"],"sourcesContent":["import Metadata from './metadata.js';\nimport matchesEntirely from './helpers/matchesEntirely.js';\nimport getNumberType from './helpers/getNumberType.js';\n\n/**\r\n * Checks if a given phone number is valid.\r\n *\r\n * isValid(phoneNumberInstance, { ..., v2: true }, metadata)\r\n *\r\n * isPossible({ phone: '8005553535', country: 'RU' }, { ... }, metadata)\r\n * isPossible({ phone: '8005553535', country: 'RU' }, undefined, metadata)\r\n *\r\n * If the `number` is a string, it will be parsed to an object,\r\n * but only if it contains only valid phone number characters (including punctuation).\r\n * If the `number` is an object, it is used as is.\r\n *\r\n * The optional `defaultCountry` argument is the default country.\r\n * I.e. it does not restrict to just that country,\r\n * e.g. in those cases where several countries share\r\n * the same phone numbering rules (NANPA, Britain, etc).\r\n * For example, even though the number `07624 369230`\r\n * belongs to the Isle of Man (\"IM\" country code)\r\n * calling `isValidNumber('07624369230', 'GB', metadata)`\r\n * still returns `true` because the country is not restricted to `GB`,\r\n * it's just that `GB` is the default one for the phone numbering rules.\r\n * For restricting the country see `isValidNumberForRegion()`\r\n * though restricting a country might not be a good idea.\r\n * https://github.com/googlei18n/libphonenumber/blob/master/FAQ.md#when-should-i-use-isvalidnumberforregion\r\n *\r\n * Examples:\r\n *\r\n * ```js\r\n * isValidNumber('+78005553535', metadata)\r\n * isValidNumber('8005553535', 'RU', metadata)\r\n * isValidNumber('88005553535', 'RU', metadata)\r\n * isValidNumber({ phone: '8005553535', country: 'RU' }, metadata)\r\n * ```\r\n */\nexport default function isValidNumber(input, options, metadataJson) {\n // If assigning the `{}` default value is moved to the arguments above,\n // code coverage would decrease for some weird reason.\n options = options || {};\n var metadata = new Metadata(metadataJson);\n metadata.selectNumberingPlan(input.country || input.countryCallingCode);\n\n // By default, countries only have type regexps when it's required for\n // distinguishing different countries having the same `countryCallingCode`.\n if (metadata.hasTypes()) {\n return getNumberType(input, options, metadata.metadata) !== undefined;\n }\n\n // If there are no type regexps for this country in metadata then use\n // `nationalNumberPattern` as a \"better than nothing\" replacement.\n var nationalNumber = options.v2 ? input.nationalNumber : input.phone;\n return matchesEntirely(nationalNumber, metadata.nationalNumberPattern());\n}\n//# sourceMappingURL=isValid.js.map"],"x_google_ignoreList":[0],"mappings":";;;;AAsCA,SAAwB,EAAc,GAAO,GAAS,GAAc;CAGlE,MAAqB,CAAC;CACtB,IAAI,IAAW,IAAI,EAAS,CAAY;CAYxC,OAXA,EAAS,oBAAoB,EAAM,WAAW,EAAM,kBAAkB,GAIlE,EAAS,SAAS,IACb,EAAc,GAAO,GAAS,EAAS,QAAQ,MAAM,KAAA,IAMvD,EADc,EAAQ,KAAK,EAAM,iBAAiB,EAAM,OACxB,EAAS,sBAAsB,CAAC;AACzE"}
1
+ {"version":3,"file":"index314.js","names":[],"sources":["../../../node_modules/libphonenumber-js/es6/helpers/isCountryCode.js"],"sourcesContent":["var COUNTRY_CODE_REG_EXP = /^[A-Z]{2}$/;\nexport default function isCountryCode(string) {\n return COUNTRY_CODE_REG_EXP.test(string);\n}\n//# sourceMappingURL=isCountryCode.js.map"],"x_google_ignoreList":[0],"mappings":";AAAA,IAAI,IAAuB;AAC3B,SAAwB,EAAc,GAAQ;CAC5C,OAAO,EAAqB,KAAK,CAAM;AACzC"}
package/dist/index315.js CHANGED
@@ -1,9 +1,13 @@
1
- //#region ../../node_modules/libphonenumber-js/es6/helpers/isCountryCode.js
2
- var e = /^[A-Z]{2}$/;
3
- function t(t) {
4
- return e.test(t);
1
+ import e from "./index307.js";
2
+ import t from "./index314.js";
3
+ function n(n, r) {
4
+ var i, a, o = new e(r);
5
+ return t(n) ? (i = n, o.selectNumberingPlan(i), a = o.countryCallingCode()) : a = n, {
6
+ country: i,
7
+ callingCode: a
8
+ };
5
9
  }
6
10
  //#endregion
7
- export { t as default };
11
+ export { n as default };
8
12
 
9
13
  //# sourceMappingURL=index315.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index315.js","names":[],"sources":["../../../node_modules/libphonenumber-js/es6/helpers/isCountryCode.js"],"sourcesContent":["var COUNTRY_CODE_REG_EXP = /^[A-Z]{2}$/;\nexport default function isCountryCode(string) {\n return COUNTRY_CODE_REG_EXP.test(string);\n}\n//# sourceMappingURL=isCountryCode.js.map"],"x_google_ignoreList":[0],"mappings":";AAAA,IAAI,IAAuB;AAC3B,SAAwB,EAAc,GAAQ;CAC5C,OAAO,EAAqB,KAAK,CAAM;AACzC"}
1
+ {"version":3,"file":"index315.js","names":[],"sources":["../../../node_modules/libphonenumber-js/es6/helpers/getCountryAndCallingCodeFromOneOfThem.js"],"sourcesContent":["import Metadata from '../metadata.js';\nimport isCountryCode from './isCountryCode.js';\nvar USE_NON_GEOGRAPHIC_COUNTRY_CODE = false;\nexport default function getCountryAndCallingCodeFromOneOfThem(countryOrCallingCode, metadataJson) {\n var country;\n var callingCode;\n var metadata = new Metadata(metadataJson);\n // If country code is passed then derive `countryCallingCode` from it.\n // Also store the country code as `.country`.\n if (isCountryCode(countryOrCallingCode)) {\n country = countryOrCallingCode;\n metadata.selectNumberingPlan(country);\n callingCode = metadata.countryCallingCode();\n } else {\n callingCode = countryOrCallingCode;\n /* istanbul ignore if */\n if (USE_NON_GEOGRAPHIC_COUNTRY_CODE) {\n if (metadata.isNonGeographicCallingCode(callingCode)) {\n country = '001';\n }\n }\n }\n return {\n country: country,\n callingCode: callingCode\n };\n}\n//# sourceMappingURL=getCountryAndCallingCodeFromOneOfThem.js.map"],"x_google_ignoreList":[0],"mappings":";;AAGA,SAAwB,EAAsC,GAAsB,GAAc;CAChG,IAAI,GACA,GACA,IAAW,IAAI,EAAS,CAAY;CAgBxC,OAbI,EAAc,CAAoB,KACpC,IAAU,GACV,EAAS,oBAAoB,CAAO,GACpC,IAAc,EAAS,mBAAmB,KAE1C,IAAc,GAQT;EACI;EACI;CACf;AACF"}
package/dist/index316.js CHANGED
@@ -1,13 +1,16 @@
1
- import e from "./index308.js";
2
- import t from "./index315.js";
3
- function n(n, r) {
4
- var i, a, o = new e(r);
5
- return t(n) ? (i = n, o.selectNumberingPlan(i), a = o.countryCallingCode()) : a = n, {
6
- country: i,
7
- callingCode: a
8
- };
1
+ import e from "./index307.js";
2
+ //#region ../../node_modules/libphonenumber-js/es6/helpers/getPossibleCountriesForNumber.js
3
+ function t(t, r, i) {
4
+ var a = new e(i).getCountryCodesForCallingCode(t);
5
+ return a ? a.filter(function(e) {
6
+ return n(r, e, i);
7
+ }) : [];
8
+ }
9
+ function n(t, n, r) {
10
+ var i = new e(r);
11
+ return i.selectNumberingPlan(n), i.numberingPlan.possibleLengths().indexOf(t.length) >= 0;
9
12
  }
10
13
  //#endregion
11
- export { n as default };
14
+ export { t as default };
12
15
 
13
16
  //# sourceMappingURL=index316.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index316.js","names":[],"sources":["../../../node_modules/libphonenumber-js/es6/helpers/getCountryAndCallingCodeFromOneOfThem.js"],"sourcesContent":["import Metadata from '../metadata.js';\nimport isCountryCode from './isCountryCode.js';\nvar USE_NON_GEOGRAPHIC_COUNTRY_CODE = false;\nexport default function getCountryAndCallingCodeFromOneOfThem(countryOrCallingCode, metadataJson) {\n var country;\n var callingCode;\n var metadata = new Metadata(metadataJson);\n // If country code is passed then derive `countryCallingCode` from it.\n // Also store the country code as `.country`.\n if (isCountryCode(countryOrCallingCode)) {\n country = countryOrCallingCode;\n metadata.selectNumberingPlan(country);\n callingCode = metadata.countryCallingCode();\n } else {\n callingCode = countryOrCallingCode;\n /* istanbul ignore if */\n if (USE_NON_GEOGRAPHIC_COUNTRY_CODE) {\n if (metadata.isNonGeographicCallingCode(callingCode)) {\n country = '001';\n }\n }\n }\n return {\n country: country,\n callingCode: callingCode\n };\n}\n//# sourceMappingURL=getCountryAndCallingCodeFromOneOfThem.js.map"],"x_google_ignoreList":[0],"mappings":";;AAGA,SAAwB,EAAsC,GAAsB,GAAc;CAChG,IAAI,GACA,GACA,IAAW,IAAI,EAAS,CAAY;CAgBxC,OAbI,EAAc,CAAoB,KACpC,IAAU,GACV,EAAS,oBAAoB,CAAO,GACpC,IAAc,EAAS,mBAAmB,KAE1C,IAAc,GAQT;EACI;EACI;CACf;AACF"}
1
+ {"version":3,"file":"index316.js","names":[],"sources":["../../../node_modules/libphonenumber-js/es6/helpers/getPossibleCountriesForNumber.js"],"sourcesContent":["import Metadata from '../metadata.js';\n\n/**\n * Returns a list of countries that the phone number could potentially belong to.\n * @param {string} callingCode — Calling code.\n * @param {string} nationalNumber — National (significant) number.\n * @param {object} metadata — Metadata.\n * @return {string[]} A list of possible countries.\n */\nexport default function getPossibleCountriesForNumber(callingCode, nationalNumber, metadata) {\n var _metadata = new Metadata(metadata);\n var possibleCountries = _metadata.getCountryCodesForCallingCode(callingCode);\n if (!possibleCountries) {\n return [];\n }\n return possibleCountries.filter(function (country) {\n return couldNationalNumberBelongToCountry(nationalNumber, country, metadata);\n });\n}\nfunction couldNationalNumberBelongToCountry(nationalNumber, country, metadataJson) {\n var metadata = new Metadata(metadataJson);\n metadata.selectNumberingPlan(country);\n return metadata.numberingPlan.possibleLengths().indexOf(nationalNumber.length) >= 0;\n}\n//# sourceMappingURL=getPossibleCountriesForNumber.js.map"],"x_google_ignoreList":[0],"mappings":";;AASA,SAAwB,EAA8B,GAAa,GAAgB,GAAU;CAE3F,IAAI,IAAoB,IADJ,EAAS,CACG,CAAC,CAAC,8BAA8B,CAAW;CAI3E,OAHK,IAGE,EAAkB,OAAO,SAAU,GAAS;EACjD,OAAO,EAAmC,GAAgB,GAAS,CAAQ;CAC7E,CAAC,IAJQ,CAAC;AAKZ;AACA,SAAS,EAAmC,GAAgB,GAAS,GAAc;CACjF,IAAI,IAAW,IAAI,EAAS,CAAY;CAExC,OADA,EAAS,oBAAoB,CAAO,GAC7B,EAAS,cAAc,gBAAgB,CAAC,CAAC,QAAQ,EAAe,MAAM,KAAK;AACpF"}
package/dist/index317.js CHANGED
@@ -1,16 +1,6 @@
1
- import e from "./index308.js";
2
- //#region ../../node_modules/libphonenumber-js/es6/helpers/getPossibleCountriesForNumber.js
3
- function t(t, r, i) {
4
- var a = new e(i).getCountryCodesForCallingCode(t);
5
- return a ? a.filter(function(e) {
6
- return n(r, e, i);
7
- }) : [];
8
- }
9
- function n(t, n, r) {
10
- var i = new e(r);
11
- return i.selectNumberingPlan(n), i.numberingPlan.possibleLengths().indexOf(t.length) >= 0;
12
- }
1
+ //#region ../../node_modules/libphonenumber-js/es6/constants.js
2
+ var e = "0-90-9٠-٩۰-۹", t = "-‐-―−ー-", n = "//", r = "..", i = " \xA0­​⁠ ", a = `${t}${n}${r}${i}()()[]\\[\\]~⁓∼~`, o = "++";
13
3
  //#endregion
14
- export { t as default };
4
+ export { o as PLUS_CHARS, e as VALID_DIGITS, a as VALID_PUNCTUATION, i as WHITESPACE };
15
5
 
16
6
  //# sourceMappingURL=index317.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index317.js","names":[],"sources":["../../../node_modules/libphonenumber-js/es6/helpers/getPossibleCountriesForNumber.js"],"sourcesContent":["import Metadata from '../metadata.js';\n\n/**\r\n * Returns a list of countries that the phone number could potentially belong to.\r\n * @param {string} callingCode — Calling code.\r\n * @param {string} nationalNumber — National (significant) number.\r\n * @param {object} metadata — Metadata.\r\n * @return {string[]} A list of possible countries.\r\n */\nexport default function getPossibleCountriesForNumber(callingCode, nationalNumber, metadata) {\n var _metadata = new Metadata(metadata);\n var possibleCountries = _metadata.getCountryCodesForCallingCode(callingCode);\n if (!possibleCountries) {\n return [];\n }\n return possibleCountries.filter(function (country) {\n return couldNationalNumberBelongToCountry(nationalNumber, country, metadata);\n });\n}\nfunction couldNationalNumberBelongToCountry(nationalNumber, country, metadataJson) {\n var metadata = new Metadata(metadataJson);\n metadata.selectNumberingPlan(country);\n return metadata.numberingPlan.possibleLengths().indexOf(nationalNumber.length) >= 0;\n}\n//# sourceMappingURL=getPossibleCountriesForNumber.js.map"],"x_google_ignoreList":[0],"mappings":";;AASA,SAAwB,EAA8B,GAAa,GAAgB,GAAU;CAE3F,IAAI,IAAoB,IADJ,EAAS,CACG,CAAC,CAAC,8BAA8B,CAAW;CAI3E,OAHK,IAGE,EAAkB,OAAO,SAAU,GAAS;EACjD,OAAO,EAAmC,GAAgB,GAAS,CAAQ;CAC7E,CAAC,IAJQ,CAAC;AAKZ;AACA,SAAS,EAAmC,GAAgB,GAAS,GAAc;CACjF,IAAI,IAAW,IAAI,EAAS,CAAY;CAExC,OADA,EAAS,oBAAoB,CAAO,GAC7B,EAAS,cAAc,gBAAgB,CAAC,CAAC,QAAQ,EAAe,MAAM,KAAK;AACpF"}
1
+ {"version":3,"file":"index317.js","names":[],"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"],"x_google_ignoreList":[0],"mappings":";AAYA,IAAW,IAAe,gBAGtB,IAAS,WACT,IAAU,MACV,IAAO,MACA,IAAa,aASb,IAAoB,GAAU,IAAe,IAAgB,IAAa,qBAC1E,IAAa"}
package/dist/index318.js CHANGED
@@ -1,6 +1,20 @@
1
- //#region ../../node_modules/libphonenumber-js/es6/constants.js
2
- var e = "0-90-9٠-٩۰-۹", t = "-‐-―−ー-", n = "//", r = "..", i = " \xA0­​⁠ ", a = `${t}${n}${r}${i}()()[]\\[\\]~⁓∼~`, o = "++";
1
+ import e from "./index307.js";
2
+ import { VALID_DIGITS as t } from "./index317.js";
3
+ //#region ../../node_modules/libphonenumber-js/es6/helpers/stripIddPrefix.js
4
+ var n = RegExp("([" + t + "])");
5
+ function r(t, r, i, a) {
6
+ if (r) {
7
+ var o = new e(a);
8
+ o.selectNumberingPlan(r || i);
9
+ var s = new RegExp(o.IDDPrefix());
10
+ if (t.search(s) === 0) {
11
+ t = t.slice(t.match(s)[0].length);
12
+ var c = t.match(n);
13
+ if (!(c && c[1] != null && c[1].length > 0 && c[1] === "0")) return t;
14
+ }
15
+ }
16
+ }
3
17
  //#endregion
4
- export { o as PLUS_CHARS, e as VALID_DIGITS, a as VALID_PUNCTUATION, i as WHITESPACE };
18
+ export { r as default };
5
19
 
6
20
  //# sourceMappingURL=index318.js.map