@rpcbase/ui 0.280.0 → 0.282.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 (519) 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 +88 -88
  41. package/dist/index14.js.map +1 -1
  42. package/dist/index15.js.map +1 -1
  43. package/dist/index154.js +19 -7
  44. package/dist/index154.js.map +1 -1
  45. package/dist/index16.js +36 -45
  46. package/dist/index16.js.map +1 -1
  47. package/dist/index160.js +3 -3
  48. package/dist/index160.js.map +1 -1
  49. package/dist/index166.js +5 -5
  50. package/dist/index166.js.map +1 -1
  51. package/dist/index172.js +27 -25
  52. package/dist/index172.js.map +1 -1
  53. package/dist/index181.js +1 -1
  54. package/dist/index181.js.map +1 -1
  55. package/dist/index182.js +145 -162
  56. package/dist/index182.js.map +1 -1
  57. package/dist/index184.js +6 -8
  58. package/dist/index184.js.map +1 -1
  59. package/dist/index186.js +2 -8
  60. package/dist/index186.js.map +1 -1
  61. package/dist/index19.js +1 -1
  62. package/dist/index19.js.map +1 -1
  63. package/dist/index195.js +1 -1
  64. package/dist/index195.js.map +1 -1
  65. package/dist/index196.js +2 -2
  66. package/dist/index196.js.map +1 -1
  67. package/dist/index197.js +1 -1
  68. package/dist/index197.js.map +1 -1
  69. package/dist/index198.js +16 -15
  70. package/dist/index198.js.map +1 -1
  71. package/dist/index199.js +13 -17
  72. package/dist/index199.js.map +1 -1
  73. package/dist/index200.js +3 -2
  74. package/dist/index200.js.map +1 -1
  75. package/dist/index207.js +5 -90
  76. package/dist/index207.js.map +1 -1
  77. package/dist/index208.js +15 -3
  78. package/dist/index208.js.map +1 -1
  79. package/dist/index209.js +102 -22
  80. package/dist/index209.js.map +1 -1
  81. package/dist/index210.js +3 -28
  82. package/dist/index210.js.map +1 -1
  83. package/dist/index211.js +23 -19
  84. package/dist/index211.js.map +1 -1
  85. package/dist/index212.js +27 -6
  86. package/dist/index212.js.map +1 -1
  87. package/dist/index213.js +19 -14
  88. package/dist/index213.js.map +1 -1
  89. package/dist/index214.js +5 -6
  90. package/dist/index214.js.map +1 -1
  91. package/dist/index215.js +14 -26
  92. package/dist/index215.js.map +1 -1
  93. package/dist/index216.js +7 -22
  94. package/dist/index216.js.map +1 -1
  95. package/dist/index217.js +27 -6
  96. package/dist/index217.js.map +1 -1
  97. package/dist/index218.js +23 -5
  98. package/dist/index218.js.map +1 -1
  99. package/dist/index219.js +6 -4
  100. package/dist/index219.js.map +1 -1
  101. package/dist/index220.js +5 -4
  102. package/dist/index220.js.map +1 -1
  103. package/dist/index221.js +4 -24
  104. package/dist/index221.js.map +1 -1
  105. package/dist/index222.js +4 -3
  106. package/dist/index222.js.map +1 -1
  107. package/dist/index223.js +21 -21
  108. package/dist/index223.js.map +1 -1
  109. package/dist/index224.js +3 -23
  110. package/dist/index224.js.map +1 -1
  111. package/dist/index225.js +23 -6
  112. package/dist/index225.js.map +1 -1
  113. package/dist/index226.js +22 -9
  114. package/dist/index226.js.map +1 -1
  115. package/dist/index227.js +5 -17
  116. package/dist/index227.js.map +1 -1
  117. package/dist/index228.js +8 -49
  118. package/dist/index228.js.map +1 -1
  119. package/dist/index229.js +18 -5
  120. package/dist/index229.js.map +1 -1
  121. package/dist/index230.js +50 -19
  122. package/dist/index230.js.map +1 -1
  123. package/dist/index231.js +20 -28
  124. package/dist/index231.js.map +1 -1
  125. package/dist/index232.js +27 -104
  126. package/dist/index232.js.map +1 -1
  127. package/dist/index233.js +98 -33
  128. package/dist/index233.js.map +1 -1
  129. package/dist/index234.js +28 -113
  130. package/dist/index234.js.map +1 -1
  131. package/dist/index235.js +117 -11
  132. package/dist/index235.js.map +1 -1
  133. package/dist/index236.js +12 -4
  134. package/dist/index236.js.map +1 -1
  135. package/dist/index237.js +4 -15
  136. package/dist/index237.js.map +1 -1
  137. package/dist/index238.js +13 -62
  138. package/dist/index238.js.map +1 -1
  139. package/dist/index239.js +64 -9
  140. package/dist/index239.js.map +1 -1
  141. package/dist/index240.js +10 -106
  142. package/dist/index240.js.map +1 -1
  143. package/dist/index241.js +107 -13
  144. package/dist/index241.js.map +1 -1
  145. package/dist/index242.js +16 -13
  146. package/dist/index242.js.map +1 -1
  147. package/dist/index243.js +13 -5
  148. package/dist/index243.js.map +1 -1
  149. package/dist/index244.js +4 -316
  150. package/dist/index244.js.map +1 -1
  151. package/dist/index245.js +315 -58
  152. package/dist/index245.js.map +1 -1
  153. package/dist/index246.js +58 -223
  154. package/dist/index246.js.map +1 -1
  155. package/dist/index247.js +215 -318
  156. package/dist/index247.js.map +1 -1
  157. package/dist/index248.js +250 -306
  158. package/dist/index248.js.map +1 -1
  159. package/dist/index249.js +308 -173
  160. package/dist/index249.js.map +1 -1
  161. package/dist/index250.js +178 -7
  162. package/dist/index250.js.map +1 -1
  163. package/dist/index251.js +8 -15
  164. package/dist/index251.js.map +1 -1
  165. package/dist/index252.js +41 -5
  166. package/dist/index252.js.map +1 -1
  167. package/dist/index253.js +46 -38
  168. package/dist/index253.js.map +1 -1
  169. package/dist/index254.js +7 -50
  170. package/dist/index254.js.map +1 -1
  171. package/dist/index255.js +49 -6
  172. package/dist/index255.js.map +1 -1
  173. package/dist/index256.js +48 -46
  174. package/dist/index256.js.map +1 -1
  175. package/dist/index257.js +6 -51
  176. package/dist/index257.js.map +1 -1
  177. package/dist/index258.js +10 -9
  178. package/dist/index258.js.map +1 -1
  179. package/dist/index259.js +60 -8
  180. package/dist/index259.js.map +1 -1
  181. package/dist/index26.js.map +1 -1
  182. package/dist/index260.js +41 -60
  183. package/dist/index260.js.map +1 -1
  184. package/dist/index261.js +88 -34
  185. package/dist/index261.js.map +1 -1
  186. package/dist/index262.js +47 -94
  187. package/dist/index262.js.map +1 -1
  188. package/dist/index263.js +36 -49
  189. package/dist/index263.js.map +1 -1
  190. package/dist/index264.js +45 -32
  191. package/dist/index264.js.map +1 -1
  192. package/dist/index265.js +47 -46
  193. package/dist/index265.js.map +1 -1
  194. package/dist/index266.js +18 -48
  195. package/dist/index266.js.map +1 -1
  196. package/dist/index267.js +174 -15
  197. package/dist/index267.js.map +1 -1
  198. package/dist/index268.js +47 -169
  199. package/dist/index268.js.map +1 -1
  200. package/dist/index269.js +17 -34
  201. package/dist/index269.js.map +1 -1
  202. package/dist/index270.js +59 -10
  203. package/dist/index270.js.map +1 -1
  204. package/dist/index271.js +10 -66
  205. package/dist/index271.js.map +1 -1
  206. package/dist/index272.js +4 -4
  207. package/dist/index273.js +71 -69
  208. package/dist/index273.js.map +1 -1
  209. package/dist/index274.js +158 -152
  210. package/dist/index274.js.map +1 -1
  211. package/dist/index275.js +7 -13
  212. package/dist/index275.js.map +1 -1
  213. package/dist/index276.js +12 -5
  214. package/dist/index276.js.map +1 -1
  215. package/dist/index277.js +12 -6
  216. package/dist/index277.js.map +1 -1
  217. package/dist/index278.js +11 -12
  218. package/dist/index278.js.map +1 -1
  219. package/dist/index279.js +65 -9
  220. package/dist/index279.js.map +1 -1
  221. package/dist/index280.js +6 -74
  222. package/dist/index280.js.map +1 -1
  223. package/dist/index281.js +25 -6
  224. package/dist/index281.js.map +1 -1
  225. package/dist/index282.js +24 -24
  226. package/dist/index282.js.map +1 -1
  227. package/dist/index283.js +125 -24
  228. package/dist/index283.js.map +1 -1
  229. package/dist/index284.js +52 -115
  230. package/dist/index284.js.map +1 -1
  231. package/dist/index285.js +59 -55
  232. package/dist/index285.js.map +1 -1
  233. package/dist/index286.js +48 -61
  234. package/dist/index286.js.map +1 -1
  235. package/dist/index287.js +5 -48
  236. package/dist/index287.js.map +1 -1
  237. package/dist/index288.js +14 -8
  238. package/dist/index288.js.map +1 -1
  239. package/dist/index289.js +18 -14
  240. package/dist/index289.js.map +1 -1
  241. package/dist/index290.js +10 -17
  242. package/dist/index290.js.map +1 -1
  243. package/dist/index291.js +23 -11
  244. package/dist/index291.js.map +1 -1
  245. package/dist/index292.js +52 -25
  246. package/dist/index292.js.map +1 -1
  247. package/dist/index293.js +6 -52
  248. package/dist/index293.js.map +1 -1
  249. package/dist/index294.js +137 -5
  250. package/dist/index294.js.map +1 -1
  251. package/dist/index295.js +59 -149
  252. package/dist/index295.js.map +1 -1
  253. package/dist/index296.js +90 -49
  254. package/dist/index296.js.map +1 -1
  255. package/dist/index297.js +11 -117
  256. package/dist/index297.js.map +1 -1
  257. package/dist/index298.js +863 -11
  258. package/dist/index298.js.map +1 -1
  259. package/dist/index299.js +21 -865
  260. package/dist/index299.js.map +1 -1
  261. package/dist/index3.js.map +1 -1
  262. package/dist/index300.js +417 -27
  263. package/dist/index300.js.map +1 -1
  264. package/dist/index301.js +774 -483
  265. package/dist/index301.js.map +1 -1
  266. package/dist/index302.js +7436 -803
  267. package/dist/index302.js.map +1 -1
  268. package/dist/index303.js +7 -7429
  269. package/dist/index303.js.map +1 -1
  270. package/dist/index304.js +12 -6
  271. package/dist/index304.js.map +1 -1
  272. package/dist/index305.js +5 -12
  273. package/dist/index305.js.map +1 -1
  274. package/dist/index306.js +3 -3
  275. package/dist/index306.js.map +1 -1
  276. package/dist/index307.js +469 -5
  277. package/dist/index307.js.map +1 -1
  278. package/dist/index308.js +32 -464
  279. package/dist/index308.js.map +1 -1
  280. package/dist/index309.js +18 -36
  281. package/dist/index309.js.map +1 -1
  282. package/dist/index310.js +28 -17
  283. package/dist/index310.js.map +1 -1
  284. package/dist/index311.js +4 -30
  285. package/dist/index311.js.map +1 -1
  286. package/dist/index312.js +59 -4
  287. package/dist/index312.js.map +1 -1
  288. package/dist/index313.js +11 -59
  289. package/dist/index313.js.map +1 -1
  290. package/dist/index314.js +5 -9
  291. package/dist/index314.js.map +1 -1
  292. package/dist/index315.js +9 -5
  293. package/dist/index315.js.map +1 -1
  294. package/dist/index316.js +12 -9
  295. package/dist/index316.js.map +1 -1
  296. package/dist/index317.js +3 -13
  297. package/dist/index317.js.map +1 -1
  298. package/dist/index318.js +17 -3
  299. package/dist/index318.js.map +1 -1
  300. package/dist/index319.js +23 -14
  301. package/dist/index319.js.map +1 -1
  302. package/dist/index320.js +39 -23
  303. package/dist/index320.js.map +1 -1
  304. package/dist/index321.js +5 -41
  305. package/dist/index321.js.map +1 -1
  306. package/dist/index322.js +25 -5
  307. package/dist/index322.js.map +1 -1
  308. package/dist/index323.js +18 -24
  309. package/dist/index323.js.map +1 -1
  310. package/dist/index324.js +32 -17
  311. package/dist/index324.js.map +1 -1
  312. package/dist/index325.js +5 -34
  313. package/dist/index325.js.map +1 -1
  314. package/dist/index326.js +9 -5
  315. package/dist/index326.js.map +1 -1
  316. package/dist/index327.js +7 -8
  317. package/dist/index327.js.map +1 -1
  318. package/dist/index328.js +9 -8
  319. package/dist/index328.js.map +1 -1
  320. package/dist/index329.js +10 -9
  321. package/dist/index329.js.map +1 -1
  322. package/dist/index330.js +7 -10
  323. package/dist/index330.js.map +1 -1
  324. package/dist/index331.js +75 -7
  325. package/dist/index331.js.map +1 -1
  326. package/dist/index332.js +153 -66
  327. package/dist/index332.js.map +1 -1
  328. package/dist/index333.js +99 -147
  329. package/dist/index333.js.map +1 -1
  330. package/dist/index334.js +13 -113
  331. package/dist/index334.js.map +1 -1
  332. package/dist/index335.js +78 -12
  333. package/dist/index335.js.map +1 -1
  334. package/dist/index336.js +23 -57
  335. package/dist/index336.js.map +1 -1
  336. package/dist/index337.js +12 -45
  337. package/dist/index337.js.map +1 -1
  338. package/dist/index338.js +16 -13
  339. package/dist/index338.js.map +1 -1
  340. package/dist/index339.js +100 -15
  341. package/dist/index339.js.map +1 -1
  342. package/dist/index340.js +50 -95
  343. package/dist/index340.js.map +1 -1
  344. package/dist/index341.js +57 -5
  345. package/dist/index341.js.map +1 -1
  346. package/dist/index342.js +41 -78
  347. package/dist/index342.js.map +1 -1
  348. package/dist/index343.js +100 -58
  349. package/dist/index343.js.map +1 -1
  350. package/dist/index344.js +46 -104
  351. package/dist/index344.js.map +1 -1
  352. package/dist/index345.js +39 -51
  353. package/dist/index345.js.map +1 -1
  354. package/dist/index346.js +143 -42
  355. package/dist/index346.js.map +1 -1
  356. package/dist/index347.js +122 -123
  357. package/dist/index347.js.map +1 -1
  358. package/dist/index348.js +224 -108
  359. package/dist/index348.js.map +1 -1
  360. package/dist/index349.js +158 -174
  361. package/dist/index349.js.map +1 -1
  362. package/dist/index350.js +213 -144
  363. package/dist/index350.js.map +1 -1
  364. package/dist/index351.js +5 -309
  365. package/dist/index351.js.map +1 -1
  366. package/dist/index352.js +6 -5
  367. package/dist/index352.js.map +1 -1
  368. package/dist/index353.js +7 -6
  369. package/dist/index353.js.map +1 -1
  370. package/dist/index354.js +4 -5
  371. package/dist/index354.js.map +1 -1
  372. package/dist/index355.js +4 -4
  373. package/dist/index355.js.map +1 -1
  374. package/dist/index356.js +21 -6
  375. package/dist/index356.js.map +1 -1
  376. package/dist/index357.js +10 -21
  377. package/dist/index357.js.map +1 -1
  378. package/dist/index358.js +128 -10
  379. package/dist/index358.js.map +1 -1
  380. package/dist/index359.js +36 -122
  381. package/dist/index359.js.map +1 -1
  382. package/dist/index360.js +64 -38
  383. package/dist/index360.js.map +1 -1
  384. package/dist/index361.js +115 -66
  385. package/dist/index361.js.map +1 -1
  386. package/dist/index362.js +485 -112
  387. package/dist/index362.js.map +1 -1
  388. package/dist/index363.js +7 -490
  389. package/dist/index363.js.map +1 -1
  390. package/dist/index364.js +1 -1
  391. package/dist/index364.js.map +1 -1
  392. package/dist/index367.js +2 -9
  393. package/dist/index367.js.map +1 -1
  394. package/dist/index368.js +26 -5
  395. package/dist/index368.js.map +1 -1
  396. package/dist/index369.js +43 -27
  397. package/dist/index369.js.map +1 -1
  398. package/dist/index370.js +35 -46
  399. package/dist/index370.js.map +1 -1
  400. package/dist/index371.js +16 -27
  401. package/dist/index371.js.map +1 -1
  402. package/dist/index372.js +41 -16
  403. package/dist/index372.js.map +1 -1
  404. package/dist/index373.js +11 -42
  405. package/dist/index373.js.map +1 -1
  406. package/dist/index374.js +10 -14
  407. package/dist/index374.js.map +1 -1
  408. package/dist/index375.js +51 -9
  409. package/dist/index375.js.map +1 -1
  410. package/dist/index376.js +40 -53
  411. package/dist/index376.js.map +1 -1
  412. package/dist/index377.js +17 -43
  413. package/dist/index377.js.map +1 -1
  414. package/dist/index378.js +4 -15
  415. package/dist/index378.js.map +1 -1
  416. package/dist/index379.js +4 -4
  417. package/dist/index379.js.map +1 -1
  418. package/dist/index380.js +9 -4
  419. package/dist/index380.js.map +1 -1
  420. package/dist/index381.js +304 -9
  421. package/dist/index381.js.map +1 -1
  422. package/dist/index382.js +4 -339
  423. package/dist/index382.js.map +1 -1
  424. package/dist/index383.js +21 -5
  425. package/dist/index383.js.map +1 -1
  426. package/dist/index384.js +106 -16
  427. package/dist/index384.js.map +1 -1
  428. package/dist/index385.js +19 -109
  429. package/dist/index385.js.map +1 -1
  430. package/dist/index386.js +18 -18
  431. package/dist/index386.js.map +1 -1
  432. package/dist/index387.js +14 -19
  433. package/dist/index387.js.map +1 -1
  434. package/dist/index388.js +12 -4
  435. package/dist/index388.js.map +1 -1
  436. package/dist/index389.js +113 -20
  437. package/dist/index389.js.map +1 -1
  438. package/dist/index390.js +5 -11
  439. package/dist/index390.js.map +1 -1
  440. package/dist/index391.js +28 -85
  441. package/dist/index391.js.map +1 -1
  442. package/dist/index392.js +9 -9
  443. package/dist/index392.js.map +1 -1
  444. package/dist/index393.js +6 -29
  445. package/dist/index393.js.map +1 -1
  446. package/dist/index394.js +254 -10
  447. package/dist/index394.js.map +1 -1
  448. package/dist/index395.js +12 -6
  449. package/dist/index395.js.map +1 -1
  450. package/dist/index396.js +11 -252
  451. package/dist/index396.js.map +1 -1
  452. package/dist/index397.js +6 -11
  453. package/dist/index397.js.map +1 -1
  454. package/dist/index398.js +22 -10
  455. package/dist/index398.js.map +1 -1
  456. package/dist/index399.js +22 -6
  457. package/dist/index399.js.map +1 -1
  458. package/dist/index4.js.map +1 -1
  459. package/dist/index400.js +103 -21
  460. package/dist/index400.js.map +1 -1
  461. package/dist/index401.js +15 -23
  462. package/dist/index401.js.map +1 -1
  463. package/dist/index402.js +11 -108
  464. package/dist/index402.js.map +1 -1
  465. package/dist/index403.js +10 -15
  466. package/dist/index403.js.map +1 -1
  467. package/dist/index404.js +237 -10
  468. package/dist/index404.js.map +1 -1
  469. package/dist/index405.js +27 -9
  470. package/dist/index405.js.map +1 -1
  471. package/dist/index406.js +33 -238
  472. package/dist/index406.js.map +1 -1
  473. package/dist/index407.js +11 -30
  474. package/dist/index407.js.map +1 -1
  475. package/dist/index408.js +118 -48
  476. package/dist/index408.js.map +1 -1
  477. package/dist/index409.js +39 -11
  478. package/dist/index409.js.map +1 -1
  479. package/dist/index410.js +18 -121
  480. package/dist/index410.js.map +1 -1
  481. package/dist/index411.js +11 -39
  482. package/dist/index411.js.map +1 -1
  483. package/dist/index412.js +21 -24
  484. package/dist/index412.js.map +1 -1
  485. package/dist/index413.js +17 -11
  486. package/dist/index413.js.map +1 -1
  487. package/dist/index414.js +10 -20
  488. package/dist/index414.js.map +1 -1
  489. package/dist/index415.js +4 -17
  490. package/dist/index415.js.map +1 -1
  491. package/dist/index416.js +300 -14
  492. package/dist/index416.js.map +1 -1
  493. package/dist/index417.js +61 -323
  494. package/dist/index417.js.map +1 -1
  495. package/dist/index418.js +4 -63
  496. package/dist/index418.js.map +1 -1
  497. package/dist/index419.js +28 -4
  498. package/dist/index419.js.map +1 -1
  499. package/dist/index420.js +468 -25
  500. package/dist/index420.js.map +1 -1
  501. package/dist/index421.js +250 -452
  502. package/dist/index421.js.map +1 -1
  503. package/dist/index6.js.map +1 -1
  504. package/dist/index7.js +91 -133
  505. package/dist/index7.js.map +1 -1
  506. package/dist/index70.js +2 -2
  507. package/dist/index70.js.map +1 -1
  508. package/dist/index71.js +11 -4
  509. package/dist/index71.js.map +1 -1
  510. package/dist/index72.js +1 -3
  511. package/dist/index72.js.map +1 -1
  512. package/dist/index8.js.map +1 -1
  513. package/dist/index9.js +16 -19
  514. package/dist/index9.js.map +1 -1
  515. package/dist/test-only/TestCoverageTestBadge/index.d.ts +1 -1
  516. package/dist/test-only/TestCoverageTestBadge/index.d.ts.map +1 -1
  517. package/package.json +15 -15
  518. package/dist/index422.js +0 -272
  519. package/dist/index422.js.map +0 -1
package/dist/index308.js CHANGED
@@ -1,473 +1,41 @@
1
- import e from "./index305.js";
2
- import t from "./index306.js";
3
- import n from "./index307.js";
4
- //#region ../../node_modules/libphonenumber-js/es6/metadata.js
5
- function r(e) {
6
- "@babel/helpers - typeof";
7
- return r = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
8
- return typeof e;
9
- } : function(e) {
10
- return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
11
- }, r(e);
12
- }
13
- function i(e, t) {
14
- if (!(e instanceof t)) throw TypeError("Cannot call a class as a function");
15
- }
16
- function a(e, t) {
17
- for (var n = 0; n < t.length; n++) {
18
- var r = t[n];
19
- r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, s(r.key), r);
20
- }
21
- }
22
- function o(e, t, n) {
23
- return t && a(e.prototype, t), n && a(e, n), Object.defineProperty(e, "prototype", { writable: !1 }), e;
24
- }
25
- function s(e) {
26
- var t = c(e, "string");
27
- return r(t) == "symbol" ? t : t + "";
28
- }
29
- function c(e, t) {
30
- if (r(e) != "object" || !e) return e;
31
- var n = e[Symbol.toPrimitive];
32
- if (n !== void 0) {
33
- var i = n.call(e, t || "default");
34
- if (r(i) != "object") return i;
35
- throw TypeError("@@toPrimitive must return a primitive value.");
1
+ //#region ../../node_modules/libphonenumber-js/es6/helpers/mergeArrays.js
2
+ function e(e, n) {
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 = t(e)) || n && e && typeof e.length == "number") {
6
+ r && (e = r);
7
+ var i = 0;
8
+ return function() {
9
+ return i >= e.length ? { done: !0 } : {
10
+ done: !1,
11
+ value: e[i++]
12
+ };
13
+ };
36
14
  }
37
- return (t === "string" ? String : Number)(e);
15
+ throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
38
16
  }
39
- var l = "1.2.0", u = "1.7.35", d = " ext. ", f = /*#__PURE__*/ function() {
40
- function e(t) {
41
- i(this, e), v(t), this.metadata = t, x.call(this, t);
17
+ function t(e, t) {
18
+ if (e) {
19
+ if (typeof e == "string") return n(e, t);
20
+ var r = {}.toString.call(e).slice(8, -1);
21
+ 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) ? n(e, t) : void 0;
42
22
  }
43
- return o(e, [
44
- {
45
- key: "getCountries",
46
- value: function() {
47
- return Object.keys(this.metadata.countries).filter(function(e) {
48
- return e !== "001";
49
- });
50
- }
51
- },
52
- {
53
- key: "getCountryMetadata",
54
- value: function(e) {
55
- return this.metadata.countries[e];
56
- }
57
- },
58
- {
59
- key: "nonGeographic",
60
- value: function() {
61
- if (!(this.v1 || this.v2 || this.v3)) return this.metadata.nonGeographic || this.metadata.nonGeographical;
62
- }
63
- },
64
- {
65
- key: "hasCountry",
66
- value: function(e) {
67
- return this.getCountryMetadata(e) !== void 0;
68
- }
69
- },
70
- {
71
- key: "hasCallingCode",
72
- value: function(e) {
73
- if (this.getCountryCodesForCallingCode(e)) return !0;
74
- if (this.nonGeographic()) {
75
- if (this.nonGeographic()[e]) return !0;
76
- } else {
77
- var t = this.countryCallingCodes()[e];
78
- if (t && t.length === 1 && t[0] === "001") return !0;
79
- }
80
- }
81
- },
82
- {
83
- key: "isNonGeographicCallingCode",
84
- value: function(e) {
85
- return this.nonGeographic() ? !!this.nonGeographic()[e] : !this.getCountryCodesForCallingCode(e);
86
- }
87
- },
88
- {
89
- key: "country",
90
- value: function(e) {
91
- return this.selectNumberingPlan(e);
92
- }
93
- },
94
- {
95
- key: "selectNumberingPlan",
96
- value: function(e, t) {
97
- var r, i;
98
- if (e && (n(e) ? i = e : r = e), t && (i = t), r && r !== "001") {
99
- var a = this.getCountryMetadata(r);
100
- if (!a) throw Error(`Unknown country: ${r}`);
101
- this.numberingPlan = new p(a, this);
102
- } else if (i) {
103
- if (!this.hasCallingCode(i)) throw Error(`Unknown calling code: ${i}`);
104
- this.numberingPlan = new p(this.getNumberingPlanMetadata(i), this);
105
- } else this.numberingPlan = void 0;
106
- return this;
107
- }
108
- },
109
- {
110
- key: "getCountryCodesForCallingCode",
111
- value: function(e) {
112
- var t = this.countryCallingCodes()[e];
113
- if (t) return t.length === 1 && t[0].length === 3 ? void 0 : t;
114
- }
115
- },
116
- {
117
- key: "getCountryCodeForCallingCode",
118
- value: function(e) {
119
- var t = this.getCountryCodesForCallingCode(e);
120
- if (t) return t[0];
121
- }
122
- },
123
- {
124
- key: "getNumberingPlanMetadata",
125
- value: function(e) {
126
- var t = this.getCountryCodeForCallingCode(e);
127
- if (t) return this.getCountryMetadata(t);
128
- if (this.nonGeographic()) {
129
- var n = this.nonGeographic()[e];
130
- if (n) return n;
131
- } else {
132
- var r = this.countryCallingCodes()[e];
133
- if (r && r.length === 1 && r[0] === "001") return this.metadata.countries["001"];
134
- }
135
- }
136
- },
137
- {
138
- key: "countryCallingCode",
139
- value: function() {
140
- return this.numberingPlan.callingCode();
141
- }
142
- },
143
- {
144
- key: "IDDPrefix",
145
- value: function() {
146
- return this.numberingPlan.IDDPrefix();
147
- }
148
- },
149
- {
150
- key: "defaultIDDPrefix",
151
- value: function() {
152
- return this.numberingPlan.defaultIDDPrefix();
153
- }
154
- },
155
- {
156
- key: "nationalNumberPattern",
157
- value: function() {
158
- return this.numberingPlan.nationalNumberPattern();
159
- }
160
- },
161
- {
162
- key: "possibleLengths",
163
- value: function() {
164
- return this.numberingPlan.possibleLengths();
165
- }
166
- },
167
- {
168
- key: "formats",
169
- value: function() {
170
- return this.numberingPlan.formats();
171
- }
172
- },
173
- {
174
- key: "nationalPrefixForParsing",
175
- value: function() {
176
- return this.numberingPlan.nationalPrefixForParsing();
177
- }
178
- },
179
- {
180
- key: "nationalPrefixTransformRule",
181
- value: function() {
182
- return this.numberingPlan.nationalPrefixTransformRule();
183
- }
184
- },
185
- {
186
- key: "leadingDigits",
187
- value: function() {
188
- return this.numberingPlan.leadingDigits();
189
- }
190
- },
191
- {
192
- key: "hasTypes",
193
- value: function() {
194
- return this.numberingPlan.hasTypes();
195
- }
196
- },
197
- {
198
- key: "type",
199
- value: function(e) {
200
- return this.numberingPlan.type(e);
201
- }
202
- },
203
- {
204
- key: "ext",
205
- value: function() {
206
- return this.numberingPlan.ext();
207
- }
208
- },
209
- {
210
- key: "countryCallingCodes",
211
- value: function() {
212
- return this.v1 ? this.metadata.country_phone_code_to_countries : this.metadata.country_calling_codes;
213
- }
214
- },
215
- {
216
- key: "chooseCountryByCountryCallingCode",
217
- value: function(e) {
218
- return this.selectNumberingPlan(e);
219
- }
220
- },
221
- {
222
- key: "hasSelectedNumberingPlan",
223
- value: function() {
224
- return this.numberingPlan !== void 0;
225
- }
226
- }
227
- ]);
228
- }(), p = /*#__PURE__*/ function() {
229
- function e(t, n) {
230
- i(this, e), this.globalMetadataObject = n, this.metadata = t, x.call(this, n.metadata);
231
- }
232
- return o(e, [
233
- {
234
- key: "callingCode",
235
- value: function() {
236
- return this.metadata[0];
237
- }
238
- },
239
- {
240
- key: "_getDefaultCountryMetadataForThisCallingCode",
241
- value: function() {
242
- return this.globalMetadataObject.getNumberingPlanMetadata(this.callingCode());
243
- }
244
- },
245
- {
246
- key: "getDefaultCountryMetadataForRegion",
247
- value: function() {
248
- return this._getDefaultCountryMetadataForThisCallingCode();
249
- }
250
- },
251
- {
252
- key: "IDDPrefix",
253
- value: function() {
254
- if (!(this.v1 || this.v2)) return this.metadata[1];
255
- }
256
- },
257
- {
258
- key: "defaultIDDPrefix",
259
- value: function() {
260
- if (!(this.v1 || this.v2)) return this.metadata[12];
261
- }
262
- },
263
- {
264
- key: "nationalNumberPattern",
265
- value: function() {
266
- return this.v1 || this.v2 ? this.metadata[1] : this.metadata[2];
267
- }
268
- },
269
- {
270
- key: "possibleLengths",
271
- value: function() {
272
- if (!this.v1) return this.metadata[this.v2 ? 2 : 3];
273
- }
274
- },
275
- {
276
- key: "_getFormats",
277
- value: function(e) {
278
- return e[this.v1 ? 2 : this.v2 ? 3 : 4];
279
- }
280
- },
281
- {
282
- key: "formats",
283
- value: function() {
284
- var e = this;
285
- return (this._getFormats(this.metadata) || this._getFormats(this._getDefaultCountryMetadataForThisCallingCode()) || []).map(function(t) {
286
- return new m(t, e);
287
- });
288
- }
289
- },
290
- {
291
- key: "nationalPrefix",
292
- value: function() {
293
- return this.metadata[this.v1 ? 3 : this.v2 ? 4 : 5];
294
- }
295
- },
296
- {
297
- key: "_getNationalPrefixFormattingRule",
298
- value: function(e) {
299
- return e[this.v1 ? 4 : this.v2 ? 5 : 6];
300
- }
301
- },
302
- {
303
- key: "nationalPrefixFormattingRule",
304
- value: function() {
305
- return this._getNationalPrefixFormattingRule(this.metadata) || this._getNationalPrefixFormattingRule(this._getDefaultCountryMetadataForThisCallingCode());
306
- }
307
- },
308
- {
309
- key: "_nationalPrefixForParsing",
310
- value: function() {
311
- return this.metadata[this.v1 ? 5 : this.v2 ? 6 : 7];
312
- }
313
- },
314
- {
315
- key: "nationalPrefixForParsing",
316
- value: function() {
317
- return this._nationalPrefixForParsing() || this.nationalPrefix();
318
- }
319
- },
320
- {
321
- key: "nationalPrefixTransformRule",
322
- value: function() {
323
- return this.metadata[this.v1 ? 6 : this.v2 ? 7 : 8];
324
- }
325
- },
326
- {
327
- key: "_getNationalPrefixIsOptionalWhenFormatting",
328
- value: function() {
329
- return !!this.metadata[this.v1 ? 7 : this.v2 ? 8 : 9];
330
- }
331
- },
332
- {
333
- key: "nationalPrefixIsOptionalWhenFormattingInNationalFormat",
334
- value: function() {
335
- return this._getNationalPrefixIsOptionalWhenFormatting(this.metadata) || this._getNationalPrefixIsOptionalWhenFormatting(this._getDefaultCountryMetadataForThisCallingCode());
336
- }
337
- },
338
- {
339
- key: "leadingDigits",
340
- value: function() {
341
- return this.metadata[this.v1 ? 8 : this.v2 ? 9 : 10];
342
- }
343
- },
344
- {
345
- key: "types",
346
- value: function() {
347
- return this.metadata[this.v1 ? 9 : this.v2 ? 10 : 11];
348
- }
349
- },
350
- {
351
- key: "hasTypes",
352
- value: function() {
353
- return this.types() && this.types().length === 0 ? !1 : !!this.types();
354
- }
355
- },
356
- {
357
- key: "type",
358
- value: function(e) {
359
- if (this.hasTypes() && _(this.types(), e)) return new g(_(this.types(), e), this);
360
- }
361
- },
362
- {
363
- key: "ext",
364
- value: function() {
365
- return this.v1 || this.v2 ? d : this.metadata[13] || d;
366
- }
367
- }
368
- ]);
369
- }(), m = /*#__PURE__*/ function() {
370
- function e(t, n) {
371
- i(this, e), this._format = t, this.metadata = n;
372
- }
373
- return o(e, [
374
- {
375
- key: "pattern",
376
- value: function() {
377
- return this._format[0];
378
- }
379
- },
380
- {
381
- key: "format",
382
- value: function() {
383
- return this._format[1];
384
- }
385
- },
386
- {
387
- key: "leadingDigitsPatterns",
388
- value: function() {
389
- return this._format[2] || [];
390
- }
391
- },
392
- {
393
- key: "nationalPrefixFormattingRule",
394
- value: function() {
395
- return this._format[3] || this.metadata.nationalPrefixFormattingRule();
396
- }
397
- },
398
- {
399
- key: "nationalPrefixIsOptionalWhenFormattingInNationalFormat",
400
- value: function() {
401
- return !!this._format[4] || this.metadata.nationalPrefixIsOptionalWhenFormattingInNationalFormat();
402
- }
403
- },
404
- {
405
- key: "nationalPrefixIsMandatoryWhenFormattingInNationalFormat",
406
- value: function() {
407
- return this.usesNationalPrefix() && !this.nationalPrefixIsOptionalWhenFormattingInNationalFormat();
408
- }
409
- },
410
- {
411
- key: "usesNationalPrefix",
412
- value: function() {
413
- return !!(this.nationalPrefixFormattingRule() && !h.test(this.nationalPrefixFormattingRule()));
414
- }
415
- },
416
- {
417
- key: "internationalFormat",
418
- value: function() {
419
- return this._format[5] || this.format();
420
- }
421
- }
422
- ]);
423
- }(), h = /^\(?\$1\)?$/, g = /*#__PURE__*/ function() {
424
- function e(t, n) {
425
- i(this, e), this.type = t, this.metadata = n;
426
- }
427
- return o(e, [{
428
- key: "pattern",
429
- value: function() {
430
- return this.metadata.v1 ? this.type : this.type[0];
431
- }
432
- }, {
433
- key: "possibleLengths",
434
- value: function() {
435
- if (!this.metadata.v1) return this.type[1] || this.metadata.possibleLengths();
436
- }
437
- }]);
438
- }();
439
- function _(e, t) {
440
- switch (t) {
441
- case "FIXED_LINE": return e[0];
442
- case "MOBILE": return e[1];
443
- case "TOLL_FREE": return e[2];
444
- case "PREMIUM_RATE": return e[3];
445
- case "PERSONAL_NUMBER": return e[4];
446
- case "VOICEMAIL": return e[5];
447
- case "UAN": return e[6];
448
- case "PAGER": return e[7];
449
- case "VOIP": return e[8];
450
- case "SHARED_COST": return e[9];
451
- }
452
- }
453
- function v(e) {
454
- if (!e) throw Error("[libphonenumber-js] `metadata` argument not passed. Check your arguments.");
455
- if (!t(e) || !t(e.countries)) throw Error(`[libphonenumber-js] \`metadata\` argument was passed but it's not a valid metadata. Must be an object having \`.countries\` child object property. Got ${t(e) ? "an object of shape: { " + Object.keys(e).join(", ") + " }" : "a " + y(e) + ": " + e}.`);
456
23
  }
457
- /* istanbul ignore next */
458
- var y = function(e) {
459
- return r(e);
460
- };
461
- function b(e, t) {
462
- var n = new f(t);
463
- if (n.hasCountry(e)) return n.selectNumberingPlan(e).countryCallingCode();
464
- throw Error(`Unknown country: ${e}`);
24
+ function n(e, t) {
25
+ (t == null || t > e.length) && (t = e.length);
26
+ for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
27
+ return r;
465
28
  }
466
- function x(t) {
467
- var n = t.version;
468
- typeof n == "number" ? (this.v1 = n === 1, this.v2 = n === 2, this.v3 = n === 3, this.v4 = n === 4) : n ? e(n, l) === -1 ? this.v2 = !0 : e(n, u) === -1 ? this.v3 = !0 : this.v4 = !0 : this.v1 = !0;
29
+ function r(t, n) {
30
+ for (var r = t.slice(), i = e(n), a; !(a = i()).done;) {
31
+ var o = a.value;
32
+ t.indexOf(o) < 0 && r.push(o);
33
+ }
34
+ return r.sort(function(e, t) {
35
+ return e - t;
36
+ });
469
37
  }
470
38
  //#endregion
471
- export { f as default, b as getCountryCallingCode, v as validateMetadata };
39
+ export { r as default };
472
40
 
473
41
  //# sourceMappingURL=index308.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index308.js","names":["compare"],"sources":["../../../node_modules/libphonenumber-js/es6/metadata.js"],"sourcesContent":["function _readOnlyError(r) { throw new TypeError('\"' + r + '\" is read-only'); }\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\"); }\nfunction _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }\nfunction _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", { writable: !1 }), e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nimport compare from './tools/semver-compare.js';\nimport isObject from './helpers/isObject.js';\nimport isCallingCode from './helpers/isCallingCode.js';\n\n// Added \"possibleLengths\" and renamed\n// \"country_phone_code_to_countries\" to \"country_calling_codes\".\nvar V2 = '1.0.18';\n\n// Added \"idd_prefix\" and \"default_idd_prefix\".\nvar V3 = '1.2.0';\n\n// Moved `001` country code to \"nonGeographic\" section of metadata.\nvar V4 = '1.7.35';\nvar DEFAULT_EXT_PREFIX = ' ext. ';\n\n/**\r\n * See: https://gitlab.com/catamphetamine/libphonenumber-js/blob/master/METADATA.md\r\n */\nvar Metadata = /*#__PURE__*/function () {\n /**\r\n * @param {object} metadata — Metadata JSON.\r\n */\n function Metadata(metadata) {\n _classCallCheck(this, Metadata);\n validateMetadata(metadata);\n this.metadata = metadata;\n setVersion.call(this, metadata);\n }\n return _createClass(Metadata, [{\n key: \"getCountries\",\n value: function getCountries() {\n return Object.keys(this.metadata.countries).filter(function (_) {\n return _ !== '001';\n });\n }\n }, {\n key: \"getCountryMetadata\",\n value: function getCountryMetadata(countryCode) {\n return this.metadata.countries[countryCode];\n }\n }, {\n key: \"nonGeographic\",\n value: function nonGeographic() {\n if (this.v1 || this.v2 || this.v3) return;\n // `nonGeographical` was a typo.\n // It's present in metadata generated from `1.7.35` to `1.7.37`.\n // The test case could be found by searching for \"nonGeographical\".\n return this.metadata.nonGeographic || this.metadata.nonGeographical;\n }\n }, {\n key: \"hasCountry\",\n value: function hasCountry(country) {\n return this.getCountryMetadata(country) !== undefined;\n }\n }, {\n key: \"hasCallingCode\",\n value: function hasCallingCode(callingCode) {\n if (this.getCountryCodesForCallingCode(callingCode)) {\n return true;\n }\n if (this.nonGeographic()) {\n if (this.nonGeographic()[callingCode]) {\n return true;\n }\n } else {\n // A hacky workaround for old custom metadata (generated before V4).\n var countryCodes = this.countryCallingCodes()[callingCode];\n if (countryCodes && countryCodes.length === 1 && countryCodes[0] === '001') {\n return true;\n }\n }\n }\n }, {\n key: \"isNonGeographicCallingCode\",\n value: function isNonGeographicCallingCode(callingCode) {\n if (this.nonGeographic()) {\n return this.nonGeographic()[callingCode] ? true : false;\n } else {\n return this.getCountryCodesForCallingCode(callingCode) ? false : true;\n }\n }\n\n // Deprecated.\n }, {\n key: \"country\",\n value: function country(countryCode) {\n return this.selectNumberingPlan(countryCode);\n }\n\n /**\r\n * Selects a telephone numbering plan based on either a country code or a calling code.\r\n * @param {string} argument — Country code or calling code.\r\n * @param {string} legacyArgumentCallingCode — Legacy argument: calling code, if the first argument is not passed.\r\n */\n }, {\n key: \"selectNumberingPlan\",\n value: function selectNumberingPlan(argument, legacyArgumentCallingCode) {\n var countryCode;\n var callingCode;\n if (argument) {\n if (isCallingCode(argument)) {\n callingCode = argument;\n } else {\n countryCode = argument;\n }\n }\n // Previously, the signature of this method was: `.selectNumberingPlan(country, callingCode)`.\n // And if `country` argument wasn't passed, it looked into the second argument `callingCode`.\n // Now it's preferred to only pass either `country` or `callingCode` as the first argument.\n if (legacyArgumentCallingCode) {\n callingCode = legacyArgumentCallingCode;\n }\n\n // Select a telephone numbering plan.\n if (countryCode && countryCode !== '001') {\n var countryMetadata = this.getCountryMetadata(countryCode);\n if (!countryMetadata) {\n throw new Error(\"Unknown country: \".concat(countryCode));\n }\n this.numberingPlan = new NumberingPlan(countryMetadata, this);\n } else if (callingCode) {\n if (!this.hasCallingCode(callingCode)) {\n throw new Error(\"Unknown calling code: \".concat(callingCode));\n }\n this.numberingPlan = new NumberingPlan(this.getNumberingPlanMetadata(callingCode), this);\n } else {\n this.numberingPlan = undefined;\n }\n return this;\n }\n }, {\n key: \"getCountryCodesForCallingCode\",\n value: function getCountryCodesForCallingCode(callingCode) {\n var countryCodes = this.countryCallingCodes()[callingCode];\n if (countryCodes) {\n // Metadata before V4 included \"non-geographic entity\" calling codes\n // inside `country_calling_codes` (for example, `\"881\":[\"001\"]`).\n // Now the semantics of `country_calling_codes` has changed:\n // it's specifically for \"countries\" now.\n // Older versions of custom metadata will simply skip parsing\n // \"non-geographic entity\" phone numbers with new versions\n // of this library: it's not considered a bug,\n // because such numbers are extremely rare,\n // and developers extremely rarely use custom metadata.\n if (countryCodes.length === 1 && countryCodes[0].length === 3) {\n return;\n }\n return countryCodes;\n }\n }\n }, {\n key: \"getCountryCodeForCallingCode\",\n value: function getCountryCodeForCallingCode(callingCode) {\n var countryCodes = this.getCountryCodesForCallingCode(callingCode);\n if (countryCodes) {\n return countryCodes[0];\n }\n }\n }, {\n key: \"getNumberingPlanMetadata\",\n value: function getNumberingPlanMetadata(callingCode) {\n // If a calling code is specified, choose the telephone numbering plan\n // of the \"default\" country for this calling code.\n // For example, if calling code `1` is passed,\n // the telephone numbering plan of `US` will be selected.\n var countryCode = this.getCountryCodeForCallingCode(callingCode);\n if (countryCode) {\n return this.getCountryMetadata(countryCode);\n }\n if (this.nonGeographic()) {\n var metadata = this.nonGeographic()[callingCode];\n if (metadata) {\n return metadata;\n }\n } else {\n // A hacky workaround for old custom metadata (generated before V4).\n // In that metadata, there was no concept of \"non-geographic\" metadata\n // so metadata for `001` country code was stored along with other countries.\n // The test case can be found by searching for:\n // \"should work around `nonGeographic` metadata not existing\".\n var countryCodes = this.countryCallingCodes()[callingCode];\n if (countryCodes && countryCodes.length === 1 && countryCodes[0] === '001') {\n return this.metadata.countries['001'];\n }\n }\n }\n\n // Deprecated.\n }, {\n key: \"countryCallingCode\",\n value: function countryCallingCode() {\n return this.numberingPlan.callingCode();\n }\n\n // Deprecated.\n }, {\n key: \"IDDPrefix\",\n value: function IDDPrefix() {\n return this.numberingPlan.IDDPrefix();\n }\n\n // Deprecated.\n }, {\n key: \"defaultIDDPrefix\",\n value: function defaultIDDPrefix() {\n return this.numberingPlan.defaultIDDPrefix();\n }\n\n // Deprecated.\n }, {\n key: \"nationalNumberPattern\",\n value: function nationalNumberPattern() {\n return this.numberingPlan.nationalNumberPattern();\n }\n\n // Deprecated.\n }, {\n key: \"possibleLengths\",\n value: function possibleLengths() {\n return this.numberingPlan.possibleLengths();\n }\n\n // Deprecated.\n }, {\n key: \"formats\",\n value: function formats() {\n return this.numberingPlan.formats();\n }\n\n // Deprecated.\n }, {\n key: \"nationalPrefixForParsing\",\n value: function nationalPrefixForParsing() {\n return this.numberingPlan.nationalPrefixForParsing();\n }\n\n // Deprecated.\n }, {\n key: \"nationalPrefixTransformRule\",\n value: function nationalPrefixTransformRule() {\n return this.numberingPlan.nationalPrefixTransformRule();\n }\n\n // Deprecated.\n }, {\n key: \"leadingDigits\",\n value: function leadingDigits() {\n return this.numberingPlan.leadingDigits();\n }\n\n // Deprecated.\n }, {\n key: \"hasTypes\",\n value: function hasTypes() {\n return this.numberingPlan.hasTypes();\n }\n\n // Deprecated.\n }, {\n key: \"type\",\n value: function type(_type) {\n return this.numberingPlan.type(_type);\n }\n\n // Deprecated.\n }, {\n key: \"ext\",\n value: function ext() {\n return this.numberingPlan.ext();\n }\n }, {\n key: \"countryCallingCodes\",\n value: function countryCallingCodes() {\n if (this.v1) return this.metadata.country_phone_code_to_countries;\n return this.metadata.country_calling_codes;\n }\n\n // Deprecated.\n }, {\n key: \"chooseCountryByCountryCallingCode\",\n value: function chooseCountryByCountryCallingCode(callingCode) {\n return this.selectNumberingPlan(callingCode);\n }\n }, {\n key: \"hasSelectedNumberingPlan\",\n value: function hasSelectedNumberingPlan() {\n return this.numberingPlan !== undefined;\n }\n }]);\n}();\nexport { Metadata as default };\nvar NumberingPlan = /*#__PURE__*/function () {\n function NumberingPlan(metadata, globalMetadataObject) {\n _classCallCheck(this, NumberingPlan);\n this.globalMetadataObject = globalMetadataObject;\n this.metadata = metadata;\n setVersion.call(this, globalMetadataObject.metadata);\n }\n return _createClass(NumberingPlan, [{\n key: \"callingCode\",\n value: function callingCode() {\n return this.metadata[0];\n }\n\n // When multiple countries share the same calling code,\n // all phone number formatting rules are included in the metadata\n // of the \"default\" country for that calling code.\n // Any other countries' metdata doesn't include any formatting rules.\n // Google developers said that such storage architecture was chosen for performance reasons.\n //\n // For example, for NANPA region (\"North American Numbering Plan Administration\",\n // which includes USA, Canada, Cayman Islands, Bahamas, etc) all formatting rules\n // are contained in the metadata of `US` country.\n //\n // This is not public API.\n //\n }, {\n key: \"_getDefaultCountryMetadataForThisCallingCode\",\n value: function _getDefaultCountryMetadataForThisCallingCode() {\n return this.globalMetadataObject.getNumberingPlanMetadata(this.callingCode());\n }\n\n // Deprecated.\n }, {\n key: \"getDefaultCountryMetadataForRegion\",\n value: function getDefaultCountryMetadataForRegion() {\n return this._getDefaultCountryMetadataForThisCallingCode();\n }\n\n // Is always present.\n }, {\n key: \"IDDPrefix\",\n value: function IDDPrefix() {\n if (this.v1 || this.v2) return;\n return this.metadata[1];\n }\n\n // Is only present when a country supports multiple IDD prefixes.\n }, {\n key: \"defaultIDDPrefix\",\n value: function defaultIDDPrefix() {\n if (this.v1 || this.v2) return;\n return this.metadata[12];\n }\n }, {\n key: \"nationalNumberPattern\",\n value: function nationalNumberPattern() {\n if (this.v1 || this.v2) return this.metadata[1];\n return this.metadata[2];\n }\n\n // \"possible length\" data is always present in Google's metadata.\n }, {\n key: \"possibleLengths\",\n value: function possibleLengths() {\n if (this.v1) return;\n return this.metadata[this.v2 ? 2 : 3];\n }\n }, {\n key: \"_getFormats\",\n value: function _getFormats(metadata) {\n return metadata[this.v1 ? 2 : this.v2 ? 3 : 4];\n }\n\n // For countries of the same region (e.g. NANPA)\n // formats are all stored in the \"main\" country for that region.\n // E.g. \"RU\" and \"KZ\", \"US\" and \"CA\".\n }, {\n key: \"formats\",\n value: function formats() {\n var _this = this;\n var formats = this._getFormats(this.metadata) || this._getFormats(this._getDefaultCountryMetadataForThisCallingCode()) || [];\n return formats.map(function (_) {\n return new Format(_, _this);\n });\n }\n }, {\n key: \"nationalPrefix\",\n value: function nationalPrefix() {\n return this.metadata[this.v1 ? 3 : this.v2 ? 4 : 5];\n }\n }, {\n key: \"_getNationalPrefixFormattingRule\",\n value: function _getNationalPrefixFormattingRule(metadata) {\n return metadata[this.v1 ? 4 : this.v2 ? 5 : 6];\n }\n\n // For countries of the same region (e.g. NANPA)\n // national prefix formatting rule is stored in the \"main\" country for that region.\n // E.g. \"RU\" and \"KZ\", \"US\" and \"CA\".\n }, {\n key: \"nationalPrefixFormattingRule\",\n value: function nationalPrefixFormattingRule() {\n return this._getNationalPrefixFormattingRule(this.metadata) || this._getNationalPrefixFormattingRule(this._getDefaultCountryMetadataForThisCallingCode());\n }\n }, {\n key: \"_nationalPrefixForParsing\",\n value: function _nationalPrefixForParsing() {\n return this.metadata[this.v1 ? 5 : this.v2 ? 6 : 7];\n }\n }, {\n key: \"nationalPrefixForParsing\",\n value: function nationalPrefixForParsing() {\n // If `national_prefix_for_parsing` is not set explicitly,\n // then infer it from `national_prefix` (if any)\n return this._nationalPrefixForParsing() || this.nationalPrefix();\n }\n }, {\n key: \"nationalPrefixTransformRule\",\n value: function nationalPrefixTransformRule() {\n return this.metadata[this.v1 ? 6 : this.v2 ? 7 : 8];\n }\n }, {\n key: \"_getNationalPrefixIsOptionalWhenFormatting\",\n value: function _getNationalPrefixIsOptionalWhenFormatting() {\n return !!this.metadata[this.v1 ? 7 : this.v2 ? 8 : 9];\n }\n\n // For countries of the same region (e.g. NANPA)\n // \"national prefix is optional when formatting\" flag is\n // stored in the \"main\" country for that region.\n // E.g. \"RU\" and \"KZ\", \"US\" and \"CA\".\n }, {\n key: \"nationalPrefixIsOptionalWhenFormattingInNationalFormat\",\n value: function nationalPrefixIsOptionalWhenFormattingInNationalFormat() {\n return this._getNationalPrefixIsOptionalWhenFormatting(this.metadata) || this._getNationalPrefixIsOptionalWhenFormatting(this._getDefaultCountryMetadataForThisCallingCode());\n }\n }, {\n key: \"leadingDigits\",\n value: function leadingDigits() {\n return this.metadata[this.v1 ? 8 : this.v2 ? 9 : 10];\n }\n }, {\n key: \"types\",\n value: function types() {\n return this.metadata[this.v1 ? 9 : this.v2 ? 10 : 11];\n }\n }, {\n key: \"hasTypes\",\n value: function hasTypes() {\n // Versions 1.2.0 - 1.2.4: can be `[]`.\n /* istanbul ignore next */\n if (this.types() && this.types().length === 0) {\n return false;\n }\n // Versions <= 1.2.4: can be `undefined`.\n // Version >= 1.2.5: can be `0`.\n return !!this.types();\n }\n }, {\n key: \"type\",\n value: function type(_type2) {\n if (this.hasTypes() && getType(this.types(), _type2)) {\n return new Type(getType(this.types(), _type2), this);\n }\n }\n }, {\n key: \"ext\",\n value: function ext() {\n if (this.v1 || this.v2) return DEFAULT_EXT_PREFIX;\n return this.metadata[13] || DEFAULT_EXT_PREFIX;\n }\n }]);\n}();\nvar Format = /*#__PURE__*/function () {\n function Format(format, metadata) {\n _classCallCheck(this, Format);\n this._format = format;\n this.metadata = metadata;\n }\n return _createClass(Format, [{\n key: \"pattern\",\n value: function pattern() {\n return this._format[0];\n }\n }, {\n key: \"format\",\n value: function format() {\n return this._format[1];\n }\n }, {\n key: \"leadingDigitsPatterns\",\n value: function leadingDigitsPatterns() {\n return this._format[2] || [];\n }\n }, {\n key: \"nationalPrefixFormattingRule\",\n value: function nationalPrefixFormattingRule() {\n return this._format[3] || this.metadata.nationalPrefixFormattingRule();\n }\n }, {\n key: \"nationalPrefixIsOptionalWhenFormattingInNationalFormat\",\n value: function nationalPrefixIsOptionalWhenFormattingInNationalFormat() {\n return !!this._format[4] || this.metadata.nationalPrefixIsOptionalWhenFormattingInNationalFormat();\n }\n }, {\n key: \"nationalPrefixIsMandatoryWhenFormattingInNationalFormat\",\n value: function nationalPrefixIsMandatoryWhenFormattingInNationalFormat() {\n // National prefix is omitted if there's no national prefix formatting rule\n // set for this country, or when the national prefix formatting rule\n // contains no national prefix itself, or when this rule is set but\n // national prefix is optional for this phone number format\n // (and it is not enforced explicitly)\n return this.usesNationalPrefix() && !this.nationalPrefixIsOptionalWhenFormattingInNationalFormat();\n }\n\n // Checks whether national prefix formatting rule contains national prefix.\n }, {\n key: \"usesNationalPrefix\",\n value: function usesNationalPrefix() {\n return this.nationalPrefixFormattingRule() &&\n // Check that national prefix formatting rule is not a \"dummy\" one.\n !FIRST_GROUP_ONLY_PREFIX_PATTERN.test(this.nationalPrefixFormattingRule())\n // In compressed metadata, `this.nationalPrefixFormattingRule()` is `0`\n // when `national_prefix_formatting_rule` is not present.\n // So, `true` or `false` are returned explicitly here, so that\n // `0` number isn't returned.\n ? true : false;\n }\n }, {\n key: \"internationalFormat\",\n value: function internationalFormat() {\n return this._format[5] || this.format();\n }\n }]);\n}();\n/**\r\n * A pattern that is used to determine if the national prefix formatting rule\r\n * has the first group only, i.e., does not start with the national prefix.\r\n * Note that the pattern explicitly allows for unbalanced parentheses.\r\n */\nvar FIRST_GROUP_ONLY_PREFIX_PATTERN = /^\\(?\\$1\\)?$/;\nvar Type = /*#__PURE__*/function () {\n function Type(type, metadata) {\n _classCallCheck(this, Type);\n this.type = type;\n this.metadata = metadata;\n }\n return _createClass(Type, [{\n key: \"pattern\",\n value: function pattern() {\n if (this.metadata.v1) return this.type;\n return this.type[0];\n }\n }, {\n key: \"possibleLengths\",\n value: function possibleLengths() {\n if (this.metadata.v1) return;\n return this.type[1] || this.metadata.possibleLengths();\n }\n }]);\n}();\nfunction getType(types, type) {\n switch (type) {\n case 'FIXED_LINE':\n return types[0];\n case 'MOBILE':\n return types[1];\n case 'TOLL_FREE':\n return types[2];\n case 'PREMIUM_RATE':\n return types[3];\n case 'PERSONAL_NUMBER':\n return types[4];\n case 'VOICEMAIL':\n return types[5];\n case 'UAN':\n return types[6];\n case 'PAGER':\n return types[7];\n case 'VOIP':\n return types[8];\n case 'SHARED_COST':\n return types[9];\n }\n}\nexport function validateMetadata(metadata) {\n if (!metadata) {\n throw new Error('[libphonenumber-js] `metadata` argument not passed. Check your arguments.');\n }\n\n // `country_phone_code_to_countries` was renamed to `country_calling_codes` in `1.0.18`.\n // For that reason, it's not used in this detection algorithm.\n // Instead, it detects by `countries: {}` property existence.\n if (!isObject(metadata) || !isObject(metadata.countries)) {\n throw new Error(\"[libphonenumber-js] `metadata` argument was passed but it's not a valid metadata. Must be an object having `.countries` child object property. Got \".concat(isObject(metadata) ? 'an object of shape: { ' + Object.keys(metadata).join(', ') + ' }' : 'a ' + typeOf(metadata) + ': ' + metadata, \".\"));\n }\n}\n\n// Babel transforms `typeof` into some \"branches\"\n// so istanbul will show this as \"branch not covered\".\n/* istanbul ignore next */\nvar typeOf = function typeOf(_) {\n return _typeof(_);\n};\n\n/**\r\n * Returns extension prefix for a country.\r\n * @param {string} country\r\n * @param {object} metadata\r\n * @return {string?}\r\n * @example\r\n * // Returns \" ext. \"\r\n * getExtPrefix(\"US\")\r\n */\nexport function getExtPrefix(country, metadataJson) {\n var metadata = new Metadata(metadataJson);\n if (metadata.hasCountry(country)) {\n return metadata.selectNumberingPlan(country).ext();\n }\n return DEFAULT_EXT_PREFIX;\n}\n\n/**\r\n * Returns \"country calling code\" for a country.\r\n * Throws an error if the country doesn't exist or isn't supported by this library.\r\n * @param {string} country\r\n * @param {object} metadataJson\r\n * @return {string}\r\n * @example\r\n * // Returns \"44\"\r\n * getCountryCallingCode(\"GB\")\r\n */\nexport function getCountryCallingCode(country, metadataJson) {\n var metadata = new Metadata(metadataJson);\n if (metadata.hasCountry(country)) {\n return metadata.selectNumberingPlan(country).countryCallingCode();\n }\n throw new Error(\"Unknown country: \".concat(country));\n}\n\n/**\r\n * Tells if a country code is supported.\r\n * @param {string} country\r\n * @param {object} metadataJson\r\n * @return {boolean}\r\n * @example\r\n * // Returns `true`\r\n * isSupportedCountry(\"GB\")\r\n */\nexport function isSupportedCountry(country, metadataJson) {\n // const metadata = new Metadata(metadataJson)\n // return metadata.hasCountry(country)\n return metadataJson.countries.hasOwnProperty(country);\n}\n\n/**\r\n * Sets `v1`/`v2`/`v3`/`v4` properties on `this` object.\r\n * @param {object} metadata — Metadata JSON\r\n */\nfunction setVersion(metadata) {\n var version = metadata.version;\n if (typeof version === 'number') {\n this.v1 = version === 1;\n this.v2 = version === 2;\n this.v3 = version === 3;\n this.v4 = version === 4;\n } else {\n if (!version) {\n this.v1 = true;\n } else if (compare(version, V3) === -1) {\n this.v2 = true;\n } else if (compare(version, V4) === -1) {\n this.v3 = true;\n } else {\n this.v4 = true;\n }\n }\n}\n//# sourceMappingURL=metadata.js.map"],"x_google_ignoreList":[0],"mappings":";;;;AACA,SAAS,EAAQ,GAAG;CAAE;CAA2B,OAAO,IAAwB,OAAO,UAArB,cAA2C,OAAO,OAAO,YAA1B,WAAqC,SAAU,GAAG;EAAE,OAAO,OAAO;CAAG,IAAI,SAAU,GAAG;EAAE,OAAO,KAAmB,OAAO,UAArB,cAA+B,EAAE,gBAAgB,UAAU,MAAM,OAAO,YAAY,WAAW,OAAO;CAAG,GAAG,EAAQ,CAAC;AAAG;AAC7T,SAAS,EAAgB,GAAG,GAAG;CAAE,IAAI,EAAE,aAAa,IAAI,MAAU,UAAU,mCAAmC;AAAG;AAClH,SAAS,EAAkB,GAAG,GAAG;CAAE,KAAK,IAAI,IAAI,GAAG,IAAI,EAAE,QAAQ,KAAK;EAAE,IAAI,IAAI,EAAE;EAAI,EAAE,aAAa,EAAE,cAAc,CAAC,GAAG,EAAE,eAAe,CAAC,GAAG,WAAW,MAAM,EAAE,WAAW,CAAC,IAAI,OAAO,eAAe,GAAG,EAAe,EAAE,GAAG,GAAG,CAAC;CAAG;AAAE;AACvO,SAAS,EAAa,GAAG,GAAG,GAAG;CAAE,OAAO,KAAK,EAAkB,EAAE,WAAW,CAAC,GAAG,KAAK,EAAkB,GAAG,CAAC,GAAG,OAAO,eAAe,GAAG,aAAa,EAAE,UAAU,CAAC,EAAE,CAAC,GAAG;AAAG;AAC1K,SAAS,EAAe,GAAG;CAAE,IAAI,IAAI,EAAa,GAAG,QAAQ;CAAG,OAAmB,EAAQ,CAAC,KAArB,WAAyB,IAAI,IAAI;AAAI;AAC5G,SAAS,EAAa,GAAG,GAAG;CAAE,IAAgB,EAAQ,CAAC,KAArB,YAA0B,CAAC,GAAG,OAAO;CAAG,IAAI,IAAI,EAAE,OAAO;CAAc,IAAe,MAAX,KAAK,GAAS;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W,IAAI,EAAS,CAAY;CACxC,IAAI,EAAS,WAAW,CAAO,GAC7B,OAAO,EAAS,oBAAoB,CAAO,CAAC,CAAC,mBAAmB;CAElE,MAAU,MAAM,oBAA2B,GAAQ;AACrD;AAqBA,SAAS,EAAW,GAAU;CAC5B,IAAI,IAAU,EAAS;CACvB,AAAI,OAAO,KAAY,YACrB,KAAK,KAAK,MAAY,GACtB,KAAK,KAAK,MAAY,GACtB,KAAK,KAAK,MAAY,GACtB,KAAK,KAAK,MAAY,KAEjB,IAEMA,EAAQ,GAAS,CAAE,MAAM,KAClC,KAAK,KAAK,KACDA,EAAQ,GAAS,CAAE,MAAM,KAClC,KAAK,KAAK,KAEV,KAAK,KAAK,KANV,KAAK,KAAK;AAShB"}
1
+ {"version":3,"file":"index308.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/**\n * Merges two arrays.\n * @param {*} a\n * @param {*} b\n * @return {*}\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"}
package/dist/index309.js CHANGED
@@ -1,41 +1,23 @@
1
- //#region ../../node_modules/libphonenumber-js/es6/helpers/mergeArrays.js
2
- function e(e, n) {
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 = t(e)) || n && e && typeof e.length == "number") {
6
- r && (e = r);
7
- var i = 0;
8
- return function() {
9
- return i >= e.length ? { done: !0 } : {
10
- done: !1,
11
- value: e[i++]
12
- };
13
- };
14
- }
15
- throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
1
+ import e from "./index307.js";
2
+ import t from "./index308.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);
16
6
  }
17
- function t(e, t) {
18
- if (e) {
19
- if (typeof e == "string") return n(e, t);
20
- var r = {}.toString.call(e).slice(8, -1);
21
- 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) ? n(e, t) : void 0;
22
- }
23
- }
24
- function n(e, t) {
25
- (t == null || t > e.length) && (t = e.length);
26
- for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
27
- return r;
28
- }
29
- function r(t, n) {
30
- for (var r = t.slice(), i = e(n), a; !(a = i()).done;) {
31
- var o = a.value;
32
- t.indexOf(o) < 0 && r.push(o);
33
- }
34
- return r.sort(function(e, t) {
35
- return e - t;
36
- });
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";
37
19
  }
38
20
  //#endregion
39
- export { r as default };
21
+ export { r as checkNumberLengthForType, n as default };
40
22
 
41
23
  //# sourceMappingURL=index309.js.map