@rpcbase/ui 0.168.0 → 0.169.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.
- package/dist/components/DayPickerField/index.d.ts.map +1 -1
- package/dist/components/HourPickerField/index.d.ts.map +1 -1
- package/dist/index10.js +1 -1
- package/dist/index100.js +10 -52
- package/dist/index100.js.map +1 -1
- package/dist/index101.js +42 -4
- package/dist/index101.js.map +1 -1
- package/dist/index102.js +4 -4
- package/dist/index102.js.map +1 -1
- package/dist/index103.js +52 -16
- package/dist/index103.js.map +1 -1
- package/dist/index104.js +4 -5
- package/dist/index104.js.map +1 -1
- package/dist/index105.js +4 -7
- package/dist/index105.js.map +1 -1
- package/dist/index106.js +11 -12
- package/dist/index106.js.map +1 -1
- package/dist/index107.js +5 -4
- package/dist/index107.js.map +1 -1
- package/dist/index108.js +7 -4
- package/dist/index108.js.map +1 -1
- package/dist/index109.js +16 -5
- package/dist/index109.js.map +1 -1
- package/dist/index11.js +99 -106
- package/dist/index11.js.map +1 -1
- package/dist/index110.js +4 -5
- package/dist/index110.js.map +1 -1
- package/dist/index111.js +4 -4
- package/dist/index111.js.map +1 -1
- package/dist/index112.js +5 -4
- package/dist/index112.js.map +1 -1
- package/dist/index113.js +5 -6
- package/dist/index113.js.map +1 -1
- package/dist/index114.js +4 -24
- package/dist/index114.js.map +1 -1
- package/dist/index115.js +4 -6
- package/dist/index115.js.map +1 -1
- package/dist/index116.js +5 -3
- package/dist/index116.js.map +1 -1
- package/dist/index117.js +24 -6
- package/dist/index117.js.map +1 -1
- package/dist/index118.js +6 -5
- package/dist/index118.js.map +1 -1
- package/dist/index119.js +4 -4
- package/dist/index119.js.map +1 -1
- package/dist/index12.js +1 -1
- package/dist/index120.js +6 -5
- package/dist/index120.js.map +1 -1
- package/dist/index121.js +5 -4
- package/dist/index121.js.map +1 -1
- package/dist/index122.js +4 -8
- package/dist/index122.js.map +1 -1
- package/dist/index123.js +2 -2
- package/dist/index123.js.map +1 -1
- package/dist/index124.js +1 -1
- package/dist/index124.js.map +1 -1
- package/dist/index125.js +8 -4
- package/dist/index125.js.map +1 -1
- package/dist/index126.js +4 -5
- package/dist/index126.js.map +1 -1
- package/dist/index127.js +4 -145
- package/dist/index127.js.map +1 -1
- package/dist/index128.js +4 -39
- package/dist/index128.js.map +1 -1
- package/dist/index129.js +6 -4
- package/dist/index129.js.map +1 -1
- package/dist/index13.js +2 -2
- package/dist/index130.js +145 -7
- package/dist/index130.js.map +1 -1
- package/dist/index131.js +38 -12
- package/dist/index131.js.map +1 -1
- package/dist/index132.js +4 -13
- package/dist/index132.js.map +1 -1
- package/dist/index133.js +6 -6
- package/dist/index133.js.map +1 -1
- package/dist/index134.js +12 -30
- package/dist/index134.js.map +1 -1
- package/dist/index135.js +13 -10
- package/dist/index135.js.map +1 -1
- package/dist/index136.js +7 -10
- package/dist/index136.js.map +1 -1
- package/dist/index137.js +31 -8
- package/dist/index137.js.map +1 -1
- package/dist/index138.js +9 -12
- package/dist/index138.js.map +1 -1
- package/dist/index139.js +10 -101
- package/dist/index139.js.map +1 -1
- package/dist/index14.js +4 -4
- package/dist/index140.js +9 -20
- package/dist/index140.js.map +1 -1
- package/dist/index141.js +12 -52
- package/dist/index141.js.map +1 -1
- package/dist/index142.js +97 -68
- package/dist/index142.js.map +1 -1
- package/dist/index143.js +20 -10
- package/dist/index143.js.map +1 -1
- package/dist/index144.js +51 -18
- package/dist/index144.js.map +1 -1
- package/dist/index145.js +71 -15
- package/dist/index145.js.map +1 -1
- package/dist/index146.js +9 -23
- package/dist/index146.js.map +1 -1
- package/dist/index147.js +20 -6
- package/dist/index147.js.map +1 -1
- package/dist/index148.js +16 -5
- package/dist/index148.js.map +1 -1
- package/dist/index149.js +21 -21
- package/dist/index149.js.map +1 -1
- package/dist/index15.js +1 -1
- package/dist/index150.js +7 -35
- package/dist/index150.js.map +1 -1
- package/dist/index151.js +6 -16
- package/dist/index151.js.map +1 -1
- package/dist/index152.js +23 -6
- package/dist/index152.js.map +1 -1
- package/dist/index153.js +35 -5
- package/dist/index153.js.map +1 -1
- package/dist/index154.js +16 -5
- package/dist/index154.js.map +1 -1
- package/dist/index155.js +6 -4
- package/dist/index155.js.map +1 -1
- package/dist/index156.js +4 -4
- package/dist/index156.js.map +1 -1
- package/dist/index157.js +4 -3
- package/dist/index157.js.map +1 -1
- package/dist/index158.js +4 -6
- package/dist/index158.js.map +1 -1
- package/dist/index159.js +5 -24
- package/dist/index159.js.map +1 -1
- package/dist/index16.js +1 -1
- package/dist/index160.js +3 -7
- package/dist/index160.js.map +1 -1
- package/dist/index161.js +6 -6
- package/dist/index161.js.map +1 -1
- package/dist/index162.js +24 -6
- package/dist/index162.js.map +1 -1
- package/dist/index163.js +7 -3
- package/dist/index163.js.map +1 -1
- package/dist/index164.js +6 -3
- package/dist/index164.js.map +1 -1
- package/dist/index165.js +5 -4
- package/dist/index165.js.map +1 -1
- package/dist/index166.js +3 -3
- package/dist/index166.js.map +1 -1
- package/dist/index167.js +3 -4
- package/dist/index167.js.map +1 -1
- package/dist/index168.js +4 -3
- package/dist/index168.js.map +1 -1
- package/dist/index169.js +3 -3
- package/dist/index169.js.map +1 -1
- package/dist/index17.js +1 -1
- package/dist/index170.js +4 -3
- package/dist/index170.js.map +1 -1
- package/dist/index171.js +3 -46
- package/dist/index171.js.map +1 -1
- package/dist/index172.js +3 -46
- package/dist/index172.js.map +1 -1
- package/dist/index173.js +3 -205
- package/dist/index173.js.map +1 -1
- package/dist/index174.js +67 -21
- package/dist/index174.js.map +1 -1
- package/dist/index175.js +180 -24
- package/dist/index175.js.map +1 -1
- package/dist/index176.js +39 -392
- package/dist/index176.js.map +1 -1
- package/dist/index177.js +24 -5
- package/dist/index177.js.map +1 -1
- package/dist/index178.js +29 -69
- package/dist/index178.js.map +1 -1
- package/dist/index179.js +5 -2
- package/dist/index179.js.map +1 -1
- package/dist/index18.js +47 -54
- package/dist/index18.js.map +1 -1
- package/dist/index180.js +13 -363
- package/dist/index180.js.map +1 -1
- package/dist/index181.js +135 -242
- package/dist/index181.js.map +1 -1
- package/dist/index182.js +28 -58
- package/dist/index182.js.map +1 -1
- package/dist/index183.js +9 -46
- package/dist/index183.js.map +1 -1
- package/dist/index184.js +39 -161
- package/dist/index184.js.map +1 -1
- package/dist/index185.js +10 -108
- package/dist/index185.js.map +1 -1
- package/dist/index186.js +44 -24
- package/dist/index186.js.map +1 -1
- package/dist/index187.js +96 -8
- package/dist/index187.js.map +1 -1
- package/dist/index188.js +86 -4
- package/dist/index188.js.map +1 -1
- package/dist/index189.js +105 -5
- package/dist/index189.js.map +1 -1
- package/dist/index19.js +7 -7
- package/dist/index190.js +52 -4
- package/dist/index190.js.map +1 -1
- package/dist/index191.js +10 -465
- package/dist/index191.js.map +1 -1
- package/dist/index192.js +31 -179
- package/dist/index192.js.map +1 -1
- package/dist/index193.js +8 -107
- package/dist/index193.js.map +1 -1
- package/dist/index194.js +107 -253
- package/dist/index194.js.map +1 -1
- package/dist/index195.js +17 -9
- package/dist/index195.js.map +1 -1
- package/dist/index196.js +14 -41
- package/dist/index196.js.map +1 -1
- package/dist/index197.js +3 -4
- package/dist/index197.js.map +1 -1
- package/dist/index198.js +31 -62
- package/dist/index198.js.map +1 -1
- package/dist/index199.js +19 -179
- package/dist/index199.js.map +1 -1
- package/dist/index20.js +2 -2
- package/dist/index200.js +9 -46
- package/dist/index200.js.map +1 -1
- package/dist/index201.js +7 -63
- package/dist/index201.js.map +1 -1
- package/dist/index202.js +19 -48
- package/dist/index202.js.map +1 -1
- package/dist/index203.js +28 -39
- package/dist/index203.js.map +1 -1
- package/dist/index204.js +14 -98
- package/dist/index204.js.map +1 -1
- package/dist/index205.js +49 -88
- package/dist/index205.js.map +1 -1
- package/dist/index206.js +8 -99
- package/dist/index206.js.map +1 -1
- package/dist/index207.js +55 -47
- package/dist/index207.js.map +1 -1
- package/dist/index208.js +19 -8
- package/dist/index208.js.map +1 -1
- package/dist/index209.js +14 -64
- package/dist/index209.js.map +1 -1
- package/dist/index21.js +1 -1
- package/dist/index210.js +4 -18
- package/dist/index210.js.map +1 -1
- package/dist/index211.js +4 -15
- package/dist/index211.js.map +1 -1
- package/dist/index212.js +6 -5
- package/dist/index212.js.map +1 -1
- package/dist/index213.js +4 -5
- package/dist/index213.js.map +1 -1
- package/dist/index214.js +7 -6
- package/dist/index214.js.map +1 -1
- package/dist/index215.js +17 -4
- package/dist/index215.js.map +1 -1
- package/dist/index216.js +5 -7
- package/dist/index216.js.map +1 -1
- package/dist/index217.js +5 -17
- package/dist/index217.js.map +1 -1
- package/dist/index218.js +13 -5
- package/dist/index218.js.map +1 -1
- package/dist/index219.js +10 -5
- package/dist/index219.js.map +1 -1
- package/dist/index22.js +1 -1
- package/dist/index220.js +14 -13
- package/dist/index220.js.map +1 -1
- package/dist/index221.js +14 -10
- package/dist/index221.js.map +1 -1
- package/dist/index222.js +5 -14
- package/dist/index222.js.map +1 -1
- package/dist/index223.js +6 -14
- package/dist/index223.js.map +1 -1
- package/dist/index224.js +7 -5
- package/dist/index224.js.map +1 -1
- package/dist/index225.js +5 -5
- package/dist/index225.js.map +1 -1
- package/dist/index226.js +9 -7
- package/dist/index226.js.map +1 -1
- package/dist/index227.js +5 -6
- package/dist/index227.js.map +1 -1
- package/dist/index228.js +5 -9
- package/dist/index228.js.map +1 -1
- package/dist/index229.js +9 -5
- package/dist/index229.js.map +1 -1
- package/dist/index23.js +2 -2
- package/dist/index230.js +5 -5
- package/dist/index230.js.map +1 -1
- package/dist/index231.js +5 -9
- package/dist/index231.js.map +1 -1
- package/dist/index232.js +4 -5
- package/dist/index232.js.map +1 -1
- package/dist/index233.js +11 -5
- package/dist/index233.js.map +1 -1
- package/dist/index234.js +10 -4
- package/dist/index234.js.map +1 -1
- package/dist/index235.js +8 -9
- package/dist/index235.js.map +1 -1
- package/dist/index236.js +11 -10
- package/dist/index236.js.map +1 -1
- package/dist/index237.js +11 -10
- package/dist/index237.js.map +1 -1
- package/dist/index238.js +10 -11
- package/dist/index238.js.map +1 -1
- package/dist/index239.js +6 -10
- package/dist/index239.js.map +1 -1
- package/dist/index24.js +1 -1
- package/dist/index240.js +6 -10
- package/dist/index240.js.map +1 -1
- package/dist/index241.js +5 -7
- package/dist/index241.js.map +1 -1
- package/dist/index242.js +5 -5
- package/dist/index242.js.map +1 -1
- package/dist/index243.js +7 -5
- package/dist/index243.js.map +1 -1
- package/dist/index244.js +6 -6
- package/dist/index244.js.map +1 -1
- package/dist/index245.js +55 -7
- package/dist/index245.js.map +1 -1
- package/dist/index246.js +23 -6
- package/dist/index246.js.map +1 -1
- package/dist/index247.js +15 -54
- package/dist/index247.js.map +1 -1
- package/dist/index248.js +7 -23
- package/dist/index248.js.map +1 -1
- package/dist/index249.js +9 -15
- package/dist/index249.js.map +1 -1
- package/dist/index250.js +10 -7
- package/dist/index250.js.map +1 -1
- package/dist/index251.js +21 -10
- package/dist/index251.js.map +1 -1
- package/dist/index252.js +10 -10
- package/dist/index252.js.map +1 -1
- package/dist/index253.js +9 -21
- package/dist/index253.js.map +1 -1
- package/dist/index254.js +9 -10
- package/dist/index254.js.map +1 -1
- package/dist/index255.js +4 -9
- package/dist/index255.js.map +1 -1
- package/dist/index256.js +5 -9
- package/dist/index256.js.map +1 -1
- package/dist/index257.js +16 -4
- package/dist/index257.js.map +1 -1
- package/dist/index258.js +9 -5
- package/dist/index258.js.map +1 -1
- package/dist/index259.js +18 -16
- package/dist/index259.js.map +1 -1
- package/dist/index260.js +15 -9
- package/dist/index260.js.map +1 -1
- package/dist/index261.js +8 -14
- package/dist/index261.js.map +1 -1
- package/dist/index262.js +29 -15
- package/dist/index262.js.map +1 -1
- package/dist/index263.js +12 -12
- package/dist/index263.js.map +1 -1
- package/dist/index264.js +24 -28
- package/dist/index264.js.map +1 -1
- package/dist/index265.js +5 -12
- package/dist/index265.js.map +1 -1
- package/dist/index266.js +5 -26
- package/dist/index266.js.map +1 -1
- package/dist/index267.js +3 -6
- package/dist/index267.js.map +1 -1
- package/dist/index268.js +22 -23
- package/dist/index268.js.map +1 -1
- package/dist/index269.js +111 -27
- package/dist/index269.js.map +1 -1
- package/dist/index27.js +3 -37
- package/dist/index27.js.map +1 -1
- package/dist/index270.js +16 -5
- package/dist/index270.js.map +1 -1
- package/dist/index271.js +523 -12
- package/dist/index271.js.map +1 -1
- package/dist/index272.js +120 -147
- package/dist/index272.js.map +1 -1
- package/dist/index273.js +129 -26
- package/dist/index273.js.map +1 -1
- package/dist/index274.js +20 -9
- package/dist/index274.js.map +1 -1
- package/dist/index275.js +4 -47
- package/dist/index275.js.map +1 -1
- package/dist/index276.js +19 -12
- package/dist/index276.js.map +1 -1
- package/dist/index277.js +12 -44
- package/dist/index277.js.map +1 -1
- package/dist/index278.js +64 -91
- package/dist/index278.js.map +1 -1
- package/dist/index279.js +9 -87
- package/dist/index279.js.map +1 -1
- package/dist/index28.js +125 -3
- package/dist/index28.js.map +1 -1
- package/dist/index280.js +12 -104
- package/dist/index280.js.map +1 -1
- package/dist/index281.js +66 -53
- package/dist/index281.js.map +1 -1
- package/dist/index282.js +64 -11
- package/dist/index282.js.map +1 -1
- package/dist/index283.js +5 -37
- package/dist/index283.js.map +1 -1
- package/dist/index284.js +5 -8
- package/dist/index284.js.map +1 -1
- package/dist/index285.js +4 -117
- package/dist/index285.js.map +1 -1
- package/dist/index286.js +15 -17
- package/dist/index286.js.map +1 -1
- package/dist/index287.js +8 -15
- package/dist/index287.js.map +1 -1
- package/dist/index288.js +5 -3
- package/dist/index288.js.map +1 -1
- package/dist/index289.js +4 -36
- package/dist/index289.js.map +1 -1
- package/dist/index29.js +227 -120
- package/dist/index29.js.map +1 -1
- package/dist/index290.js +544 -19
- package/dist/index290.js.map +1 -1
- package/dist/index291.js +47 -10
- package/dist/index291.js.map +1 -1
- package/dist/index292.js +17 -8
- package/dist/index292.js.map +1 -1
- package/dist/index293.js +6 -19
- package/dist/index293.js.map +1 -1
- package/dist/index294.js +8 -28
- package/dist/index294.js.map +1 -1
- package/dist/index295.js +7 -16
- package/dist/index295.js.map +1 -1
- package/dist/index296.js +8 -4
- package/dist/index296.js.map +1 -1
- package/dist/index297.js +13 -19
- package/dist/index297.js.map +1 -1
- package/dist/index298.js +9 -12
- package/dist/index298.js.map +1 -1
- package/dist/index299.js +14 -5
- package/dist/index299.js.map +1 -1
- package/dist/index30.js +51 -48
- package/dist/index30.js.map +1 -1
- package/dist/index300.js +4 -3
- package/dist/index300.js.map +1 -1
- package/dist/index301.js +22 -23
- package/dist/index301.js.map +1 -1
- package/dist/index302.js +68 -113
- package/dist/index302.js.map +1 -1
- package/dist/index303.js +30 -15
- package/dist/index303.js.map +1 -1
- package/dist/index304.js +9 -525
- package/dist/index304.js.map +1 -1
- package/dist/index305.js +152 -127
- package/dist/index305.js.map +1 -1
- package/dist/index306.js +107 -133
- package/dist/index306.js.map +1 -1
- package/dist/index307.js +4 -20
- package/dist/index307.js.map +1 -1
- package/dist/index308.js +56 -6
- package/dist/index308.js.map +1 -1
- package/dist/index309.js +23 -6
- package/dist/index309.js.map +1 -1
- package/dist/index31.js +2616 -195
- package/dist/index31.js.map +1 -1
- package/dist/index310.js +13 -4
- package/dist/index310.js.map +1 -1
- package/dist/index311.js +27 -15
- package/dist/index311.js.map +1 -1
- package/dist/index312.js +5 -9
- package/dist/index312.js.map +1 -1
- package/dist/index313.js +15 -5
- package/dist/index313.js.map +1 -1
- package/dist/index314.js +28 -4
- package/dist/index314.js.map +1 -1
- package/dist/index315.js +12 -545
- package/dist/index315.js.map +1 -1
- package/dist/index316.js +7 -47
- package/dist/index316.js.map +1 -1
- package/dist/index32.js +388 -38
- package/dist/index32.js.map +1 -1
- package/dist/index33.js +228 -36
- package/dist/index33.js.map +1 -1
- package/dist/index34.js +20 -27
- package/dist/index34.js.map +1 -1
- package/dist/index35.js +137 -41
- package/dist/index35.js.map +1 -1
- package/dist/index36.js +181 -26
- package/dist/index36.js.map +1 -1
- package/dist/index37.js +73 -24
- package/dist/index37.js.map +1 -1
- package/dist/index38.js +91 -24
- package/dist/index38.js.map +1 -1
- package/dist/index39.js +5 -128
- package/dist/index39.js.map +1 -1
- package/dist/index40.js +836 -224
- package/dist/index40.js.map +1 -1
- package/dist/index41.js +65 -50
- package/dist/index41.js.map +1 -1
- package/dist/index42.js +31 -2635
- package/dist/index42.js.map +1 -1
- package/dist/index43.js +197 -386
- package/dist/index43.js.map +1 -1
- package/dist/index44.js +7 -232
- package/dist/index44.js.map +1 -1
- package/dist/index45.js +2 -22
- package/dist/index45.js.map +1 -1
- package/dist/index46.js +21 -139
- package/dist/index46.js.map +1 -1
- package/dist/index47.js +230 -183
- package/dist/index47.js.map +1 -1
- package/dist/index48.js +3 -76
- package/dist/index48.js.map +1 -1
- package/dist/index49.js +5 -89
- package/dist/index49.js.map +1 -1
- package/dist/index5.js +1 -1
- package/dist/index50.js +47 -5
- package/dist/index50.js.map +1 -1
- package/dist/index51.js +23 -840
- package/dist/index51.js.map +1 -1
- package/dist/index52.js +50 -65
- package/dist/index52.js.map +1 -1
- package/dist/index53.js +7 -7
- package/dist/index53.js.map +1 -1
- package/dist/index54.js +15 -2
- package/dist/index54.js.map +1 -1
- package/dist/index55.js +132 -22
- package/dist/index55.js.map +1 -1
- package/dist/index56.js +10 -233
- package/dist/index56.js.map +1 -1
- package/dist/index57.js +203 -191
- package/dist/index57.js.map +1 -1
- package/dist/index58.js +13 -54
- package/dist/index58.js.map +1 -1
- package/dist/index59.js +33 -6
- package/dist/index59.js.map +1 -1
- package/dist/index60.js +45 -32
- package/dist/index60.js.map +1 -1
- package/dist/index61.js +7 -26
- package/dist/index61.js.map +1 -1
- package/dist/index62.js +49 -7
- package/dist/index62.js.map +1 -1
- package/dist/index63.js +4 -12
- package/dist/index63.js.map +1 -1
- package/dist/index64.js +5 -3
- package/dist/index64.js.map +1 -1
- package/dist/index65.js +27 -47
- package/dist/index65.js.map +1 -1
- package/dist/index66.js +48 -49
- package/dist/index66.js.map +1 -1
- package/dist/index67.js +9 -8
- package/dist/index67.js.map +1 -1
- package/dist/index68.js +5 -14
- package/dist/index68.js.map +1 -1
- package/dist/index69.js +7 -133
- package/dist/index69.js.map +1 -1
- package/dist/index70.js +5 -10
- package/dist/index70.js.map +1 -1
- package/dist/index71.js +2 -217
- package/dist/index71.js.map +1 -1
- package/dist/index72.js +2 -13
- package/dist/index72.js.map +1 -1
- package/dist/index73.js +11 -46
- package/dist/index73.js.map +1 -1
- package/dist/index74.js +51 -47
- package/dist/index74.js.map +1 -1
- package/dist/index75.js +605 -3
- package/dist/index75.js.map +1 -1
- package/dist/index76.js +46 -5
- package/dist/index76.js.map +1 -1
- package/dist/index77.js +205 -27
- package/dist/index77.js.map +1 -1
- package/dist/index78.js +22 -50
- package/dist/index78.js.map +1 -1
- package/dist/index79.js +25 -9
- package/dist/index79.js.map +1 -1
- package/dist/index8.js +1 -1
- package/dist/index80.js +400 -2
- package/dist/index80.js.map +1 -1
- package/dist/index81.js +47 -2
- package/dist/index81.js.map +1 -1
- package/dist/index82.js +5 -5
- package/dist/index82.js.map +1 -1
- package/dist/index83.js +68 -7
- package/dist/index83.js.map +1 -1
- package/dist/index84.js +2 -6
- package/dist/index84.js.map +1 -1
- package/dist/index85.js +352 -594
- package/dist/index85.js.map +1 -1
- package/dist/index86.js +261 -3
- package/dist/index86.js.map +1 -1
- package/dist/index87.js +56 -29
- package/dist/index87.js.map +1 -1
- package/dist/index88.js +43 -246
- package/dist/index88.js.map +1 -1
- package/dist/index89.js +160 -105
- package/dist/index89.js.map +1 -1
- package/dist/index9.js +1 -1
- package/dist/index90.js +105 -215
- package/dist/index90.js.map +1 -1
- package/dist/index91.js +24 -66
- package/dist/index91.js.map +1 -1
- package/dist/index92.js +8 -21
- package/dist/index92.js.map +1 -1
- package/dist/index93.js +4 -209
- package/dist/index93.js.map +1 -1
- package/dist/index94.js +5 -319
- package/dist/index94.js.map +1 -1
- package/dist/index95.js +4 -130
- package/dist/index95.js.map +1 -1
- package/dist/index96.js +464 -18
- package/dist/index96.js.map +1 -1
- package/dist/index97.js +179 -69
- package/dist/index97.js.map +1 -1
- package/dist/index98.js +105 -16
- package/dist/index98.js.map +1 -1
- package/dist/index99.js +253 -92
- package/dist/index99.js.map +1 -1
- package/package.json +1 -1
- package/dist/index317.js +0 -21
- package/dist/index317.js.map +0 -1
- package/dist/index318.js +0 -10
- package/dist/index318.js.map +0 -1
- package/dist/index319.js +0 -12
- package/dist/index319.js.map +0 -1
- package/dist/index320.js +0 -11
- package/dist/index320.js.map +0 -1
- package/dist/index321.js +0 -12
- package/dist/index321.js.map +0 -1
- package/dist/index322.js +0 -16
- package/dist/index322.js.map +0 -1
- package/dist/index323.js +0 -13
- package/dist/index323.js.map +0 -1
- package/dist/index324.js +0 -17
- package/dist/index324.js.map +0 -1
- package/dist/index325.js +0 -68
- package/dist/index325.js.map +0 -1
- package/dist/index326.js +0 -72
- package/dist/index326.js.map +0 -1
- package/dist/index327.js +0 -12
- package/dist/index327.js.map +0 -1
- package/dist/index328.js +0 -17
- package/dist/index328.js.map +0 -1
- package/dist/index329.js +0 -69
- package/dist/index329.js.map +0 -1
- package/dist/index330.js +0 -8
- package/dist/index330.js.map +0 -1
- package/dist/index331.js +0 -59
- package/dist/index331.js.map +0 -1
- package/dist/index332.js +0 -71
- package/dist/index332.js.map +0 -1
- package/dist/index333.js +0 -34
- package/dist/index333.js.map +0 -1
- package/dist/index334.js +0 -12
- package/dist/index334.js.map +0 -1
- package/dist/index335.js +0 -156
- package/dist/index335.js.map +0 -1
- package/dist/index336.js +0 -111
- package/dist/index336.js.map +0 -1
- package/dist/index337.js +0 -7
- package/dist/index337.js.map +0 -1
- package/dist/index338.js +0 -26
- package/dist/index338.js.map +0 -1
- package/dist/index339.js +0 -19
- package/dist/index339.js.map +0 -1
- package/dist/index340.js +0 -32
- package/dist/index340.js.map +0 -1
- package/dist/index341.js +0 -16
- package/dist/index341.js.map +0 -1
- package/dist/index342.js +0 -10
- package/dist/index342.js.map +0 -1
- package/dist/index343.js +0 -16
- package/dist/index343.js.map +0 -1
- package/dist/index344.js +0 -31
- package/dist/index344.js.map +0 -1
- package/dist/index345.js +0 -8
- package/dist/index345.js.map +0 -1
- package/dist/index346.js +0 -26
- package/dist/index346.js.map +0 -1
package/dist/index182.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index182.js","sources":["../../../node_modules/libphonenumber-js/es6/
|
|
1
|
+
{"version":3,"file":"index182.js","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} metadata\r\n * @return {string}\r\n */\nexport default function isPossiblePhoneNumber(input, options, metadata) {\n /* istanbul ignore if */\n if (options === undefined) {\n options = {};\n }\n metadata = new Metadata(metadata);\n if (options.v2) {\n if (!input.countryCallingCode) {\n throw new Error('Invalid phone number object passed');\n }\n metadata.selectNumberingPlan(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 metadata (< 1.0.18) had no \"possible length\" data.\n if (metadata.possibleLengths()) {\n return isPossibleNumber(input.phone || input.nationalNumber, input.country, metadata);\n } else {\n // There was a bug between `1.7.35` and `1.7.37` where \"possible_lengths\"\n // were missing for \"non-geographical\" numbering plans.\n // Just assume the number is possible in such cases:\n // it's unlikely that anyone generated their custom metadata\n // in that short period of time (one day).\n // This code can be removed in some future major version update.\n if (input.countryCallingCode && metadata.isNonGeographicCallingCode(input.countryCallingCode)) {\n // \"Non-geographic entities\" did't have `possibleLengths`\n // due to a bug in metadata generation process.\n return true;\n } else {\n throw new Error('Missing \"possibleLengths\" in metadata. Perhaps the metadata has been generated before v1.0.18.');\n }\n }\n}\nexport function isPossibleNumber(nationalNumber, country, metadata) {\n //, isInternational) {\n switch (checkNumberLength(nationalNumber, country, 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"],"names":["isPossiblePhoneNumber","input","options","metadata","Metadata","isPossibleNumber","nationalNumber","country","checkNumberLength"],"mappings":";;AAgBe,SAASA,EAAsBC,GAAOC,GAASC,GAAU;AAMtE,MAJID,MAAY,WACdA,IAAU,CAAA,IAEZC,IAAW,IAAIC,EAASD,CAAQ,GAC5BD,EAAQ,IAAI;AACd,QAAI,CAACD,EAAM;AACT,YAAM,IAAI,MAAM,oCAAoC;AAEtD,IAAAE,EAAS,oBAAoBF,EAAM,kBAAkB;AAAA,EACvD,OAAO;AACL,QAAI,CAACA,EAAM;AACT,aAAO;AAET,QAAIA,EAAM,SAAS;AACjB,UAAI,CAACE,EAAS,WAAWF,EAAM,OAAO;AACpC,cAAM,IAAI,MAAM,oBAAoB,OAAOA,EAAM,OAAO,CAAC;AAE3D,MAAAE,EAAS,oBAAoBF,EAAM,OAAO;AAAA,IAC5C,OAAO;AACL,UAAI,CAACA,EAAM;AACT,cAAM,IAAI,MAAM,oCAAoC;AAEtD,MAAAE,EAAS,oBAAoBF,EAAM,kBAAkB;AAAA,IACvD;AAAA,EACF;AAGA,MAAIE,EAAS;AACX,WAAOE,EAAiBJ,EAAM,SAASA,EAAM,gBAAgBA,EAAM,SAASE,CAAQ;AAQpF,MAAIF,EAAM,sBAAsBE,EAAS,2BAA2BF,EAAM,kBAAkB;AAG1F,WAAO;AAEP,QAAM,IAAI,MAAM,gGAAgG;AAGtH;AACO,SAASI,EAAiBC,GAAgBC,GAASJ,GAAU;AAElE,SAAQK,EAAkBF,GAAgBC,GAASJ,CAAQ,MACpD;AAST;","x_google_ignoreList":[0]}
|
package/dist/index183.js
CHANGED
|
@@ -1,50 +1,13 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
function
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
shouldTryNationalPrefixFormattingRule: n,
|
|
10
|
-
getSeparatorAfterNationalPrefix: o
|
|
11
|
-
});
|
|
12
|
-
}
|
|
13
|
-
function c(a, t, r) {
|
|
14
|
-
return f(a, t, r) === "IS_POSSIBLE";
|
|
15
|
-
}
|
|
16
|
-
function N(a, t, r) {
|
|
17
|
-
var e = r.metadata, n = r.shouldTryNationalPrefixFormattingRule, o = r.getSeparatorAfterNationalPrefix;
|
|
18
|
-
if (a.nationalSignificantNumber, a.international, a.nationalPrefix, a.carrierCode, n(t)) {
|
|
19
|
-
var i = l(a, t, {
|
|
20
|
-
useNationalPrefixFormattingRule: !0,
|
|
21
|
-
getSeparatorAfterNationalPrefix: o,
|
|
22
|
-
metadata: e
|
|
23
|
-
});
|
|
24
|
-
if (i)
|
|
25
|
-
return i;
|
|
26
|
-
}
|
|
27
|
-
return l(a, t, {
|
|
28
|
-
useNationalPrefixFormattingRule: !1,
|
|
29
|
-
getSeparatorAfterNationalPrefix: o,
|
|
30
|
-
metadata: e
|
|
31
|
-
});
|
|
32
|
-
}
|
|
33
|
-
function l(a, t, r) {
|
|
34
|
-
var e = r.metadata, n = r.useNationalPrefixFormattingRule, o = r.getSeparatorAfterNationalPrefix, i = m(a.nationalSignificantNumber, t, {
|
|
35
|
-
carrierCode: a.carrierCode,
|
|
36
|
-
useInternationalFormat: a.international,
|
|
37
|
-
withNationalPrefix: n,
|
|
38
|
-
metadata: e
|
|
39
|
-
});
|
|
40
|
-
if (n || (a.nationalPrefix ? i = a.nationalPrefix + o(t) + i : a.prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix && (i = a.prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix + " " + i)), g(i, a))
|
|
41
|
-
return i;
|
|
42
|
-
}
|
|
43
|
-
function g(a, t) {
|
|
44
|
-
return u(a) === t.getNationalDigits();
|
|
1
|
+
import m from "./index96.js";
|
|
2
|
+
import o from "./index197.js";
|
|
3
|
+
import u from "./index184.js";
|
|
4
|
+
function b(e, n, r) {
|
|
5
|
+
if (n = n || {}, r = new m(r), r.selectNumberingPlan(e.country, e.countryCallingCode), r.hasTypes())
|
|
6
|
+
return u(e, n, r.metadata) !== void 0;
|
|
7
|
+
var l = n.v2 ? e.nationalNumber : e.phone;
|
|
8
|
+
return o(l, r.nationalNumberPattern());
|
|
45
9
|
}
|
|
46
10
|
export {
|
|
47
|
-
|
|
48
|
-
p as default
|
|
11
|
+
b as default
|
|
49
12
|
};
|
|
50
13
|
//# sourceMappingURL=index183.js.map
|
package/dist/index183.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index183.js","sources":["../../../node_modules/libphonenumber-js/es6/
|
|
1
|
+
{"version":3,"file":"index183.js","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, metadata) {\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 metadata = new Metadata(metadata);\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"],"names":["isValidNumber","input","options","metadata","Metadata","getNumberType","nationalNumber","matchesEntirely"],"mappings":";;;AAsCe,SAASA,EAAcC,GAAOC,GAASC,GAAU;AAS9D,MANAD,IAAUA,KAAW,CAAA,GACrBC,IAAW,IAAIC,EAASD,CAAQ,GAChCA,EAAS,oBAAoBF,EAAM,SAASA,EAAM,kBAAkB,GAIhEE,EAAS;AACX,WAAOE,EAAcJ,GAAOC,GAASC,EAAS,QAAQ,MAAM;AAK9D,MAAIG,IAAiBJ,EAAQ,KAAKD,EAAM,iBAAiBA,EAAM;AAC/D,SAAOM,EAAgBD,GAAgBH,EAAS,sBAAqB,CAAE;AACzE;","x_google_ignoreList":[0]}
|
package/dist/index184.js
CHANGED
|
@@ -1,173 +1,51 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
if (
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import a from "./index96.js";
|
|
2
|
+
import E from "./index197.js";
|
|
3
|
+
function I(e, n) {
|
|
4
|
+
var r = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
5
|
+
if (r) return (r = r.call(e)).next.bind(r);
|
|
6
|
+
if (Array.isArray(e) || (r = c(e)) || n) {
|
|
7
|
+
r && (e = r);
|
|
8
|
+
var t = 0;
|
|
8
9
|
return function() {
|
|
9
|
-
return
|
|
10
|
+
return t >= e.length ? { done: !0 } : { done: !1, value: e[t++] };
|
|
10
11
|
};
|
|
11
12
|
}
|
|
12
13
|
throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
13
14
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
14
15
|
}
|
|
15
|
-
function
|
|
16
|
-
if (
|
|
17
|
-
if (typeof
|
|
18
|
-
var
|
|
19
|
-
return
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
function
|
|
23
|
-
(
|
|
24
|
-
for (var
|
|
25
|
-
return
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
for (var t = 0; t < e.length; t++) {
|
|
40
|
-
var n = e[t];
|
|
41
|
-
n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(r, O(n.key), n);
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
function A(r, e, t) {
|
|
45
|
-
return e && P(r.prototype, e), Object.defineProperty(r, "prototype", { writable: !1 }), r;
|
|
46
|
-
}
|
|
47
|
-
function O(r) {
|
|
48
|
-
var e = M(r, "string");
|
|
49
|
-
return f(e) == "symbol" ? e : e + "";
|
|
50
|
-
}
|
|
51
|
-
function M(r, e) {
|
|
52
|
-
if (f(r) != "object" || !r) return r;
|
|
53
|
-
var t = r[Symbol.toPrimitive];
|
|
54
|
-
if (t !== void 0) {
|
|
55
|
-
var n = t.call(r, e);
|
|
56
|
-
if (f(n) != "object") return n;
|
|
57
|
-
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
58
|
-
}
|
|
59
|
-
return String(r);
|
|
60
|
-
}
|
|
61
|
-
var E = /* @__PURE__ */ (function() {
|
|
62
|
-
function r(e) {
|
|
63
|
-
C(this, r), this.matchTree = new w().parse(e);
|
|
64
|
-
}
|
|
65
|
-
return A(r, [{
|
|
66
|
-
key: "match",
|
|
67
|
-
value: function(t) {
|
|
68
|
-
var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, i = n.allowOverflow;
|
|
69
|
-
if (!t)
|
|
70
|
-
throw new Error("String is required");
|
|
71
|
-
var o = l(t.split(""), this.matchTree, !0);
|
|
72
|
-
if (o && o.match && delete o.matchedChars, !(o && o.overflow && !i))
|
|
73
|
-
return o;
|
|
74
|
-
}
|
|
75
|
-
}]);
|
|
76
|
-
})();
|
|
77
|
-
function l(r, e, t) {
|
|
78
|
-
if (typeof e == "string") {
|
|
79
|
-
var n = r.join("");
|
|
80
|
-
return e.indexOf(n) === 0 ? r.length === e.length ? {
|
|
81
|
-
match: !0,
|
|
82
|
-
matchedChars: r
|
|
83
|
-
} : {
|
|
84
|
-
partialMatch: !0
|
|
85
|
-
// matchedChars: characters
|
|
86
|
-
} : n.indexOf(e) === 0 ? t && r.length > e.length ? {
|
|
87
|
-
overflow: !0
|
|
88
|
-
} : {
|
|
89
|
-
match: !0,
|
|
90
|
-
matchedChars: r.slice(0, e.length)
|
|
91
|
-
} : void 0;
|
|
92
|
-
}
|
|
93
|
-
if (Array.isArray(e)) {
|
|
94
|
-
for (var i = r.slice(), o = 0; o < e.length; ) {
|
|
95
|
-
var s = e[o], a = l(i, s, t && o === e.length - 1);
|
|
96
|
-
if (a) {
|
|
97
|
-
if (a.overflow)
|
|
98
|
-
return a;
|
|
99
|
-
if (a.match) {
|
|
100
|
-
if (i = i.slice(a.matchedChars.length), i.length === 0)
|
|
101
|
-
return o === e.length - 1 ? {
|
|
102
|
-
match: !0,
|
|
103
|
-
matchedChars: r
|
|
104
|
-
} : {
|
|
105
|
-
partialMatch: !0
|
|
106
|
-
// matchedChars: characters
|
|
107
|
-
};
|
|
108
|
-
} else {
|
|
109
|
-
if (a.partialMatch)
|
|
110
|
-
return {
|
|
111
|
-
partialMatch: !0
|
|
112
|
-
// matchedChars: characters
|
|
113
|
-
};
|
|
114
|
-
throw new Error(`Unsupported match result:
|
|
115
|
-
`.concat(JSON.stringify(a, null, 2)));
|
|
116
|
-
}
|
|
117
|
-
} else return;
|
|
118
|
-
o++;
|
|
119
|
-
}
|
|
120
|
-
return t ? {
|
|
121
|
-
overflow: !0
|
|
122
|
-
} : {
|
|
123
|
-
match: !0,
|
|
124
|
-
matchedChars: r.slice(0, r.length - i.length)
|
|
125
|
-
};
|
|
126
|
-
}
|
|
127
|
-
switch (e.op) {
|
|
128
|
-
case "|":
|
|
129
|
-
for (var c, d = p(e.args), h; !(h = d()).done; ) {
|
|
130
|
-
var g = h.value, u = l(r, g, t);
|
|
131
|
-
if (u) {
|
|
132
|
-
if (u.overflow)
|
|
133
|
-
return u;
|
|
134
|
-
if (u.match)
|
|
135
|
-
return {
|
|
136
|
-
match: !0,
|
|
137
|
-
matchedChars: u.matchedChars
|
|
138
|
-
};
|
|
139
|
-
if (u.partialMatch)
|
|
140
|
-
c = !0;
|
|
141
|
-
else
|
|
142
|
-
throw new Error(`Unsupported match result:
|
|
143
|
-
`.concat(JSON.stringify(u, null, 2)));
|
|
144
|
-
}
|
|
145
|
-
}
|
|
146
|
-
return c ? {
|
|
147
|
-
partialMatch: !0
|
|
148
|
-
// matchedChars: ...
|
|
149
|
-
} : void 0;
|
|
150
|
-
case "[]":
|
|
151
|
-
for (var b = p(e.args), m; !(m = b()).done; ) {
|
|
152
|
-
var y = m.value;
|
|
153
|
-
if (r[0] === y)
|
|
154
|
-
return r.length === 1 ? {
|
|
155
|
-
match: !0,
|
|
156
|
-
matchedChars: r
|
|
157
|
-
} : t ? {
|
|
158
|
-
overflow: !0
|
|
159
|
-
} : {
|
|
160
|
-
match: !0,
|
|
161
|
-
matchedChars: [y]
|
|
162
|
-
};
|
|
16
|
+
function c(e, n) {
|
|
17
|
+
if (e) {
|
|
18
|
+
if (typeof e == "string") return l(e, n);
|
|
19
|
+
var r = {}.toString.call(e).slice(8, -1);
|
|
20
|
+
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) ? l(e, n) : void 0;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
function l(e, n) {
|
|
24
|
+
(n == null || n > e.length) && (n = e.length);
|
|
25
|
+
for (var r = 0, t = Array(n); r < n; r++) t[r] = e[r];
|
|
26
|
+
return t;
|
|
27
|
+
}
|
|
28
|
+
var s = ["MOBILE", "PREMIUM_RATE", "TOLL_FREE", "SHARED_COST", "VOIP", "PERSONAL_NUMBER", "PAGER", "UAN", "VOICEMAIL"];
|
|
29
|
+
function _(e, n, r) {
|
|
30
|
+
if (n = n || {}, !(!e.country && !e.countryCallingCode)) {
|
|
31
|
+
r = new a(r), r.selectNumberingPlan(e.country, e.countryCallingCode);
|
|
32
|
+
var t = n.v2 ? e.nationalNumber : e.phone;
|
|
33
|
+
if (E(t, r.nationalNumberPattern())) {
|
|
34
|
+
if (o(t, "FIXED_LINE", r))
|
|
35
|
+
return r.type("MOBILE") && r.type("MOBILE").pattern() === "" || !r.type("MOBILE") || o(t, "MOBILE", r) ? "FIXED_LINE_OR_MOBILE" : "FIXED_LINE";
|
|
36
|
+
for (var f = I(s), i; !(i = f()).done; ) {
|
|
37
|
+
var u = i.value;
|
|
38
|
+
if (o(t, u, r))
|
|
39
|
+
return u;
|
|
163
40
|
}
|
|
164
|
-
|
|
165
|
-
/* istanbul ignore next */
|
|
166
|
-
default:
|
|
167
|
-
throw new Error("Unsupported instruction tree: ".concat(e));
|
|
41
|
+
}
|
|
168
42
|
}
|
|
169
43
|
}
|
|
44
|
+
function o(e, n, r) {
|
|
45
|
+
return n = r.type(n), !n || !n.pattern() || n.possibleLengths() && n.possibleLengths().indexOf(e.length) < 0 ? !1 : E(e, n.pattern());
|
|
46
|
+
}
|
|
170
47
|
export {
|
|
171
|
-
|
|
48
|
+
_ as default,
|
|
49
|
+
o as isNumberTypeEqualTo
|
|
172
50
|
};
|
|
173
51
|
//# sourceMappingURL=index184.js.map
|
package/dist/index184.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index184.js","sources":["../../../node_modules/libphonenumber-js/es6/AsYouTypeFormatter.PatternMatcher.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; }\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 PatternParser from './AsYouTypeFormatter.PatternParser.js';\nvar PatternMatcher = /*#__PURE__*/function () {\n function PatternMatcher(pattern) {\n _classCallCheck(this, PatternMatcher);\n this.matchTree = new PatternParser().parse(pattern);\n }\n return _createClass(PatternMatcher, [{\n key: \"match\",\n value: function match(string) {\n var _ref = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},\n allowOverflow = _ref.allowOverflow;\n if (!string) {\n throw new Error('String is required');\n }\n var result = _match(string.split(''), this.matchTree, true);\n if (result && result.match) {\n delete result.matchedChars;\n }\n if (result && result.overflow) {\n if (!allowOverflow) {\n return;\n }\n }\n return result;\n }\n }]);\n}();\n/**\r\n * Matches `characters` against a pattern compiled into a `tree`.\r\n * @param {string[]} characters\r\n * @param {Tree} tree — A pattern compiled into a `tree`. See the `*.d.ts` file for the description of the `tree` structure.\r\n * @param {boolean} last — Whether it's the last (rightmost) subtree on its level of the match tree.\r\n * @return {object} See the `*.d.ts` file for the description of the result object.\r\n */\nexport { PatternMatcher as default };\nfunction _match(characters, tree, last) {\n // If `tree` is a string, then `tree` is a single character.\n // That's because when a pattern is parsed, multi-character-string parts\n // of a pattern are compiled into arrays of single characters.\n // I still wrote this piece of code for a \"general\" hypothetical case\n // when `tree` could be a string of several characters, even though\n // such case is not possible with the current implementation.\n if (typeof tree === 'string') {\n var characterString = characters.join('');\n if (tree.indexOf(characterString) === 0) {\n // `tree` is always a single character.\n // If `tree.indexOf(characterString) === 0`\n // then `characters.length === tree.length`.\n /* istanbul ignore else */\n if (characters.length === tree.length) {\n return {\n match: true,\n matchedChars: characters\n };\n }\n // `tree` is always a single character.\n // If `tree.indexOf(characterString) === 0`\n // then `characters.length === tree.length`.\n /* istanbul ignore next */\n return {\n partialMatch: true\n // matchedChars: characters\n };\n }\n if (characterString.indexOf(tree) === 0) {\n if (last) {\n // The `else` path is not possible because `tree` is always a single character.\n // The `else` case for `characters.length > tree.length` would be\n // `characters.length <= tree.length` which means `characters.length <= 1`.\n // `characters` array can't be empty, so that means `characters === [tree]`,\n // which would also mean `tree.indexOf(characterString) === 0` and that'd mean\n // that the `if (tree.indexOf(characterString) === 0)` condition before this\n // `if` condition would be entered, and returned from there, not reaching this code.\n /* istanbul ignore else */\n if (characters.length > tree.length) {\n return {\n overflow: true\n };\n }\n }\n return {\n match: true,\n matchedChars: characters.slice(0, tree.length)\n };\n }\n return;\n }\n if (Array.isArray(tree)) {\n var restCharacters = characters.slice();\n var i = 0;\n while (i < tree.length) {\n var subtree = tree[i];\n var result = _match(restCharacters, subtree, last && i === tree.length - 1);\n if (!result) {\n return;\n } else if (result.overflow) {\n return result;\n } else if (result.match) {\n // Continue with the next subtree with the rest of the characters.\n restCharacters = restCharacters.slice(result.matchedChars.length);\n if (restCharacters.length === 0) {\n if (i === tree.length - 1) {\n return {\n match: true,\n matchedChars: characters\n };\n } else {\n return {\n partialMatch: true\n // matchedChars: characters\n };\n }\n }\n } else {\n /* istanbul ignore else */\n if (result.partialMatch) {\n return {\n partialMatch: true\n // matchedChars: characters\n };\n } else {\n throw new Error(\"Unsupported match result:\\n\".concat(JSON.stringify(result, null, 2)));\n }\n }\n i++;\n }\n // If `last` then overflow has already been checked\n // by the last element of the `tree` array.\n /* istanbul ignore if */\n if (last) {\n return {\n overflow: true\n };\n }\n return {\n match: true,\n matchedChars: characters.slice(0, characters.length - restCharacters.length)\n };\n }\n switch (tree.op) {\n case '|':\n var partialMatch;\n for (var _iterator = _createForOfIteratorHelperLoose(tree.args), _step; !(_step = _iterator()).done;) {\n var branch = _step.value;\n var _result = _match(characters, branch, last);\n if (_result) {\n if (_result.overflow) {\n return _result;\n } else if (_result.match) {\n return {\n match: true,\n matchedChars: _result.matchedChars\n };\n } else {\n /* istanbul ignore else */\n if (_result.partialMatch) {\n partialMatch = true;\n } else {\n throw new Error(\"Unsupported match result:\\n\".concat(JSON.stringify(_result, null, 2)));\n }\n }\n }\n }\n if (partialMatch) {\n return {\n partialMatch: true\n // matchedChars: ...\n };\n }\n // Not even a partial match.\n return;\n case '[]':\n for (var _iterator2 = _createForOfIteratorHelperLoose(tree.args), _step2; !(_step2 = _iterator2()).done;) {\n var _char = _step2.value;\n if (characters[0] === _char) {\n if (characters.length === 1) {\n return {\n match: true,\n matchedChars: characters\n };\n }\n if (last) {\n return {\n overflow: true\n };\n }\n return {\n match: true,\n matchedChars: [_char]\n };\n }\n }\n // No character matches.\n return;\n\n /* istanbul ignore next */\n default:\n throw new Error(\"Unsupported instruction tree: \".concat(tree));\n }\n}\n//# sourceMappingURL=AsYouTypeFormatter.PatternMatcher.js.map"],"names":["_createForOfIteratorHelperLoose","_unsupportedIterableToArray","o","a","_arrayLikeToArray","e","_typeof","_classCallCheck","n","_defineProperties","r","_toPropertyKey","_createClass","t","i","_toPrimitive","PatternMatcher","pattern","PatternParser","string","_ref","allowOverflow","result","_match","characters","tree","last","characterString","restCharacters","subtree","partialMatch","_iterator","_step","branch","_result","_iterator2","_step2","_char"],"mappings":";AAAA,SAASA,EAAgC,GAAG,GAAG;AAAE,MAAI,IAAmB,OAAO,SAAtB,OAAgC,EAAE,OAAO,QAAQ,KAAK,EAAE,YAAY;AAAG,MAAI,EAAG,SAAQ,IAAI,EAAE,KAAK,CAAC,GAAG,KAAK,KAAK,CAAC;AAAG,MAAI,MAAM,QAAQ,CAAC,MAAM,IAAIC,EAA4B,CAAC,MAAM,GAAuC;AAAE,UAAM,IAAI;AAAI,QAAIC,IAAI;AAAG,WAAO,WAAY;AAAE,aAAOA,KAAK,EAAE,SAAS,EAAE,MAAM,GAAE,IAAK,EAAE,MAAM,IAAI,OAAO,EAAEA,GAAG,EAAC;AAAA,IAAI;AAAA,EAAG;AAAE,QAAM,IAAI,UAAU;AAAA,mFAAuI;AAAG;AACziB,SAASD,EAA4B,GAAGE,GAAG;AAAE,MAAI,GAAG;AAAE,QAAgB,OAAO,KAAnB,SAAsB,QAAOC,EAAkB,GAAGD,CAAC;AAAG,QAAI,IAAI,CAAA,EAAG,SAAS,KAAK,CAAC,EAAE,MAAM,GAAG,EAAE;AAAG,WAAoB,MAAb,YAAkB,EAAE,gBAAgB,IAAI,EAAE,YAAY,OAAiB,MAAV,SAAyB,MAAV,QAAc,MAAM,KAAK,CAAC,IAAoB,MAAhB,eAAqB,2CAA2C,KAAK,CAAC,IAAIC,EAAkB,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AAQP,CAAI;AAC7C,YAAIQ,GAAS;AACX,cAAIA,EAAQ;AACV,mBAAOA;AACF,cAAIA,EAAQ;AACjB,mBAAO;AAAA,cACL,OAAO;AAAA,cACP,cAAcA,EAAQ;AAAA,YACpC;AAGY,cAAIA,EAAQ;AACV,YAAAJ,IAAe;AAAA;AAEf,kBAAM,IAAI,MAAM;AAAA,EAA8B,OAAO,KAAK,UAAUI,GAAS,MAAM,CAAC,CAAC,CAAC;AAAA,QAG5F;AAAA,MACF;AACA,aAAIJ,IACK;AAAA,QACL,cAAc;AAAA;AAAA,MAExB,IAGM;AAAA,IACF,KAAK;AACH,eAASK,IAAanC,EAAgCyB,EAAK,IAAI,GAAGW,GAAQ,EAAEA,IAASD,EAAU,GAAI,QAAO;AACxG,YAAIE,IAAQD,EAAO;AACnB,YAAIZ,EAAW,CAAC,MAAMa;AACpB,iBAAIb,EAAW,WAAW,IACjB;AAAA,YACL,OAAO;AAAA,YACP,cAAcA;AAAA,UAC5B,IAEcE,IACK;AAAA,YACL,UAAU;AAAA,UACxB,IAEiB;AAAA,YACL,OAAO;AAAA,YACP,cAAc,CAACW,CAAK;AAAA,UAChC;AAAA,MAEM;AAEA;AAAA;AAAA,IAGF;AACE,YAAM,IAAI,MAAM,iCAAiC,OAAOZ,CAAI,CAAC;AAAA,EACnE;AACA;","x_google_ignoreList":[0]}
|
|
1
|
+
{"version":3,"file":"index184.js","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, metadata) {\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 metadata = new Metadata(metadata);\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 type = metadata.type(type);\n if (!type || !type.pattern()) {\n return false;\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 (type.possibleLengths() && type.possibleLengths().indexOf(nationalNumber.length) < 0) {\n return false;\n }\n return matchesEntirely(nationalNumber, type.pattern());\n}\n//# sourceMappingURL=getNumberType.js.map"],"names":["_createForOfIteratorHelperLoose","r","e","t","_unsupportedIterableToArray","o","a","_arrayLikeToArray","n","NON_FIXED_LINE_PHONE_TYPES","getNumberType","input","options","metadata","Metadata","nationalNumber","matchesEntirely","isNumberTypeEqualTo","_iterator","_step","type"],"mappings":";;AAAA,SAASA,EAAgCC,GAAGC,GAAG;AAAE,MAAIC,IAAmB,OAAO,SAAtB,OAAgCF,EAAE,OAAO,QAAQ,KAAKA,EAAE,YAAY;AAAG,MAAIE,EAAG,S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,EAASD,CAAQ,GAChCA,EAAS,oBAAoBF,EAAM,SAASA,EAAM,kBAAkB;AACpE,QAAII,IAAiBH,EAAQ,KAAKD,EAAM,iBAAiBA,EAAM;AAM/D,QAAKK,EAAgBD,GAAgBF,EAAS,sBAAqB,CAAE,GAKrE;AAAA,UAAII,EAAoBF,GAAgB,cAAcF,CAAQ;AAuB5D,eAlBIA,EAAS,KAAK,QAAQ,KAAKA,EAAS,KAAK,QAAQ,EAAE,QAAO,MAAO,MAWjE,CAACA,EAAS,KAAK,QAAQ,KAOvBI,EAAoBF,GAAgB,UAAUF,CAAQ,IACjD,yBAEF;AAET,eAASK,IAAYlB,EAAgCS,CAA0B,GAAGU,GAAO,EAAEA,IAAQD,EAAS,GAAI,QAAO;AACrH,YAAIE,IAAOD,EAAM;AACjB,YAAIF,EAAoBF,GAAgBK,GAAMP,CAAQ;AACpD,iBAAOO;AAAA,MAEX;AAAA;AAAA;AACF;AACO,SAASH,EAAoBF,GAAgBK,GAAMP,GAAU;AAWlE,SAVAO,IAAOP,EAAS,KAAKO,CAAI,GACrB,CAACA,KAAQ,CAACA,EAAK,QAAO,KAStBA,EAAK,gBAAe,KAAMA,EAAK,kBAAkB,QAAQL,EAAe,MAAM,IAAI,IAC7E,KAEFC,EAAgBD,GAAgBK,EAAK,QAAO,CAAE;AACvD;","x_google_ignoreList":[0]}
|
package/dist/index185.js
CHANGED
|
@@ -1,113 +1,15 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
return function() {
|
|
8
|
-
return u >= r.length ? { done: !0 } : { done: !1, value: r[u++] };
|
|
9
|
-
};
|
|
10
|
-
}
|
|
11
|
-
throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
12
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
1
|
+
import u from "./index96.js";
|
|
2
|
+
function s(r, t, e) {
|
|
3
|
+
var n = new u(e), o = n.getCountryCodesForCallingCode(r);
|
|
4
|
+
return o ? o.filter(function(a) {
|
|
5
|
+
return i(t, a, e);
|
|
6
|
+
}) : [];
|
|
13
7
|
}
|
|
14
|
-
function
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
var e = {}.toString.call(r).slice(8, -1);
|
|
18
|
-
return e === "Object" && r.constructor && (e = r.constructor.name), e === "Map" || e === "Set" ? Array.from(r) : e === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e) ? o(r, t) : void 0;
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
function o(r, t) {
|
|
22
|
-
(t == null || t > r.length) && (t = r.length);
|
|
23
|
-
for (var e = 0, u = Array(t); e < t; e++) u[e] = r[e];
|
|
24
|
-
return u;
|
|
25
|
-
}
|
|
26
|
-
var l = {
|
|
27
|
-
0: "0",
|
|
28
|
-
1: "1",
|
|
29
|
-
2: "2",
|
|
30
|
-
3: "3",
|
|
31
|
-
4: "4",
|
|
32
|
-
5: "5",
|
|
33
|
-
6: "6",
|
|
34
|
-
7: "7",
|
|
35
|
-
8: "8",
|
|
36
|
-
9: "9",
|
|
37
|
-
"0": "0",
|
|
38
|
-
// Fullwidth digit 0
|
|
39
|
-
"1": "1",
|
|
40
|
-
// Fullwidth digit 1
|
|
41
|
-
"2": "2",
|
|
42
|
-
// Fullwidth digit 2
|
|
43
|
-
"3": "3",
|
|
44
|
-
// Fullwidth digit 3
|
|
45
|
-
"4": "4",
|
|
46
|
-
// Fullwidth digit 4
|
|
47
|
-
"5": "5",
|
|
48
|
-
// Fullwidth digit 5
|
|
49
|
-
"6": "6",
|
|
50
|
-
// Fullwidth digit 6
|
|
51
|
-
"7": "7",
|
|
52
|
-
// Fullwidth digit 7
|
|
53
|
-
"8": "8",
|
|
54
|
-
// Fullwidth digit 8
|
|
55
|
-
"9": "9",
|
|
56
|
-
// Fullwidth digit 9
|
|
57
|
-
"٠": "0",
|
|
58
|
-
// Arabic-indic digit 0
|
|
59
|
-
"١": "1",
|
|
60
|
-
// Arabic-indic digit 1
|
|
61
|
-
"٢": "2",
|
|
62
|
-
// Arabic-indic digit 2
|
|
63
|
-
"٣": "3",
|
|
64
|
-
// Arabic-indic digit 3
|
|
65
|
-
"٤": "4",
|
|
66
|
-
// Arabic-indic digit 4
|
|
67
|
-
"٥": "5",
|
|
68
|
-
// Arabic-indic digit 5
|
|
69
|
-
"٦": "6",
|
|
70
|
-
// Arabic-indic digit 6
|
|
71
|
-
"٧": "7",
|
|
72
|
-
// Arabic-indic digit 7
|
|
73
|
-
"٨": "8",
|
|
74
|
-
// Arabic-indic digit 8
|
|
75
|
-
"٩": "9",
|
|
76
|
-
// Arabic-indic digit 9
|
|
77
|
-
"۰": "0",
|
|
78
|
-
// Eastern-Arabic digit 0
|
|
79
|
-
"۱": "1",
|
|
80
|
-
// Eastern-Arabic digit 1
|
|
81
|
-
"۲": "2",
|
|
82
|
-
// Eastern-Arabic digit 2
|
|
83
|
-
"۳": "3",
|
|
84
|
-
// Eastern-Arabic digit 3
|
|
85
|
-
"۴": "4",
|
|
86
|
-
// Eastern-Arabic digit 4
|
|
87
|
-
"۵": "5",
|
|
88
|
-
// Eastern-Arabic digit 5
|
|
89
|
-
"۶": "6",
|
|
90
|
-
// Eastern-Arabic digit 6
|
|
91
|
-
"۷": "7",
|
|
92
|
-
// Eastern-Arabic digit 7
|
|
93
|
-
"۸": "8",
|
|
94
|
-
// Eastern-Arabic digit 8
|
|
95
|
-
"۹": "9"
|
|
96
|
-
// Eastern-Arabic digit 9
|
|
97
|
-
};
|
|
98
|
-
function f(r) {
|
|
99
|
-
return l[r];
|
|
100
|
-
}
|
|
101
|
-
function s(r) {
|
|
102
|
-
for (var t = "", e = i(r.split("")), u; !(u = e()).done; ) {
|
|
103
|
-
var a = u.value, n = f(a);
|
|
104
|
-
n && (t += n);
|
|
105
|
-
}
|
|
106
|
-
return t;
|
|
8
|
+
function i(r, t, e) {
|
|
9
|
+
var n = new u(e);
|
|
10
|
+
return n.selectNumberingPlan(t), n.numberingPlan.possibleLengths().indexOf(r.length) >= 0;
|
|
107
11
|
}
|
|
108
12
|
export {
|
|
109
|
-
|
|
110
|
-
s as default,
|
|
111
|
-
f as parseDigit
|
|
13
|
+
s as default
|
|
112
14
|
};
|
|
113
15
|
//# sourceMappingURL=index185.js.map
|
package/dist/index185.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index185.js","sources":["../../../node_modules/libphonenumber-js/es6/helpers/
|
|
1
|
+
{"version":3,"file":"index185.js","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, metadata) {\n var _metadata = new Metadata(metadata);\n _metadata.selectNumberingPlan(country);\n if (_metadata.numberingPlan.possibleLengths().indexOf(nationalNumber.length) >= 0) {\n return true;\n }\n return false;\n}\n//# sourceMappingURL=getPossibleCountriesForNumber.js.map"],"names":["getPossibleCountriesForNumber","callingCode","nationalNumber","metadata","_metadata","Metadata","possibleCountries","country","couldNationalNumberBelongToCountry"],"mappings":";AASe,SAASA,EAA8BC,GAAaC,GAAgBC,GAAU;AAC3F,MAAIC,IAAY,IAAIC,EAASF,CAAQ,GACjCG,IAAoBF,EAAU,8BAA8BH,CAAW;AAC3E,SAAKK,IAGEA,EAAkB,OAAO,SAAUC,GAAS;AACjD,WAAOC,EAAmCN,GAAgBK,GAASJ,CAAQ;AAAA,EAC7E,CAAC,IAJQ,CAAA;AAKX;AACA,SAASK,EAAmCN,GAAgBK,GAASJ,GAAU;AAC7E,MAAIC,IAAY,IAAIC,EAASF,CAAQ;AAErC,SADAC,EAAU,oBAAoBG,CAAO,GACjCH,EAAU,cAAc,gBAAe,EAAG,QAAQF,EAAe,MAAM,KAAK;AAIlF;","x_google_ignoreList":[0]}
|