@rpcbase/ui 0.164.0 → 0.166.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/index10.js +1 -1
- package/dist/index100.js +9 -24
- package/dist/index100.js.map +1 -1
- package/dist/index101.js +42 -6
- 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 -7
- package/dist/index103.js.map +1 -1
- package/dist/index104.js +4 -5
- package/dist/index104.js.map +1 -1
- package/dist/index105.js +3 -3
- package/dist/index105.js.map +1 -1
- package/dist/index106.js +15 -5
- package/dist/index106.js.map +1 -1
- package/dist/index107.js +5 -4
- package/dist/index107.js.map +1 -1
- package/dist/index108.js +6 -7
- package/dist/index108.js.map +1 -1
- package/dist/index109.js +16 -5
- package/dist/index109.js.map +1 -1
- package/dist/index11.js +6 -15
- package/dist/index11.js.map +1 -1
- package/dist/index110.js +3 -3
- package/dist/index110.js.map +1 -1
- package/dist/index111.js +2 -2
- package/dist/index111.js.map +1 -1
- package/dist/index112.js +5 -6
- package/dist/index112.js.map +1 -1
- package/dist/index113.js +5 -145
- package/dist/index113.js.map +1 -1
- package/dist/index114.js +4 -39
- package/dist/index114.js.map +1 -1
- package/dist/index115.js +4 -4
- package/dist/index115.js.map +1 -1
- package/dist/index116.js +6 -7
- package/dist/index116.js.map +1 -1
- package/dist/index117.js +24 -13
- package/dist/index117.js.map +1 -1
- package/dist/index118.js +6 -13
- package/dist/index118.js.map +1 -1
- package/dist/index119.js +4 -7
- package/dist/index119.js.map +1 -1
- package/dist/index12.js +1 -1
- package/dist/index120.js +6 -31
- package/dist/index120.js.map +1 -1
- package/dist/index121.js +5 -10
- package/dist/index121.js.map +1 -1
- package/dist/index122.js +4 -10
- package/dist/index122.js.map +1 -1
- package/dist/index123.js +5 -8
- package/dist/index123.js.map +1 -1
- package/dist/index124.js +4 -13
- package/dist/index124.js.map +1 -1
- package/dist/index125.js +8 -101
- package/dist/index125.js.map +1 -1
- package/dist/index126.js +6 -20
- package/dist/index126.js.map +1 -1
- package/dist/index127.js +4 -53
- package/dist/index127.js.map +1 -1
- package/dist/index128.js +4 -72
- package/dist/index128.js.map +1 -1
- package/dist/index129.js +6 -9
- package/dist/index129.js.map +1 -1
- package/dist/index13.js +2 -2
- package/dist/index130.js +145 -20
- package/dist/index130.js.map +1 -1
- package/dist/index131.js +38 -15
- package/dist/index131.js.map +1 -1
- package/dist/index132.js +4 -23
- package/dist/index132.js.map +1 -1
- package/dist/index133.js +7 -6
- package/dist/index133.js.map +1 -1
- package/dist/index134.js +13 -5
- package/dist/index134.js.map +1 -1
- package/dist/index135.js +13 -23
- package/dist/index135.js.map +1 -1
- package/dist/index136.js +8 -35
- package/dist/index136.js.map +1 -1
- package/dist/index137.js +32 -16
- package/dist/index137.js.map +1 -1
- package/dist/index138.js +10 -6
- package/dist/index138.js.map +1 -1
- package/dist/index139.js +10 -4
- package/dist/index139.js.map +1 -1
- package/dist/index14.js +4 -4
- package/dist/index140.js +8 -4
- package/dist/index140.js.map +1 -1
- package/dist/index141.js +13 -4
- package/dist/index141.js.map +1 -1
- package/dist/index142.js +101 -4
- package/dist/index142.js.map +1 -1
- package/dist/index143.js +20 -4
- package/dist/index143.js.map +1 -1
- package/dist/index144.js +53 -6
- package/dist/index144.js.map +1 -1
- package/dist/index145.js +73 -24
- package/dist/index145.js.map +1 -1
- package/dist/index146.js +9 -7
- 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 +23 -3
- package/dist/index149.js.map +1 -1
- package/dist/index15.js +1 -1
- package/dist/index150.js +6 -3
- package/dist/index150.js.map +1 -1
- package/dist/index151.js +5 -4
- package/dist/index151.js.map +1 -1
- package/dist/index152.js +23 -3
- 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 -4
- package/dist/index154.js.map +1 -1
- package/dist/index155.js +6 -3
- package/dist/index155.js.map +1 -1
- package/dist/index156.js +4 -3
- 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 -33
- package/dist/index158.js.map +1 -1
- package/dist/index159.js +4 -249
- package/dist/index159.js.map +1 -1
- package/dist/index16.js +1 -1
- package/dist/index160.js +3 -114
- package/dist/index160.js.map +1 -1
- package/dist/index161.js +6 -219
- package/dist/index161.js.map +1 -1
- package/dist/index162.js +24 -67
- package/dist/index162.js.map +1 -1
- package/dist/index163.js +7 -20
- package/dist/index163.js.map +1 -1
- package/dist/index164.js +6 -209
- package/dist/index164.js.map +1 -1
- package/dist/index165.js +5 -319
- package/dist/index165.js.map +1 -1
- package/dist/index166.js +3 -130
- package/dist/index166.js.map +1 -1
- package/dist/index167.js +3 -20
- package/dist/index167.js.map +1 -1
- package/dist/index168.js +4 -75
- package/dist/index168.js.map +1 -1
- package/dist/index169.js +3 -18
- package/dist/index169.js.map +1 -1
- package/dist/index17.js +1 -1
- package/dist/index170.js +4 -101
- package/dist/index170.js.map +1 -1
- package/dist/index171.js +4 -5
- package/dist/index171.js.map +1 -1
- package/dist/index172.js +3 -14
- package/dist/index172.js.map +1 -1
- package/dist/index173.js +4 -2
- package/dist/index173.js.map +1 -1
- package/dist/index174.js +24 -7
- package/dist/index174.js.map +1 -1
- package/dist/index175.js +29 -327
- package/dist/index175.js.map +1 -1
- package/dist/index176.js +5 -50
- package/dist/index176.js.map +1 -1
- package/dist/index177.js +62 -41
- package/dist/index177.js.map +1 -1
- package/dist/index178.js +176 -42
- package/dist/index178.js.map +1 -1
- package/dist/index179.js +41 -200
- package/dist/index179.js.map +1 -1
- package/dist/index18.js +3 -12
- package/dist/index18.js.map +1 -1
- package/dist/index180.js +14 -22
- package/dist/index180.js.map +1 -1
- package/dist/index181.js +153 -23
- package/dist/index181.js.map +1 -1
- package/dist/index182.js +27 -396
- package/dist/index182.js.map +1 -1
- package/dist/index183.js +9 -3
- package/dist/index183.js.map +1 -1
- package/dist/index184.js +47 -5
- package/dist/index184.js.map +1 -1
- package/dist/index185.js +10 -67
- package/dist/index185.js.map +1 -1
- package/dist/index186.js +45 -2
- package/dist/index186.js.map +1 -1
- package/dist/index187.js +86 -354
- package/dist/index187.js.map +1 -1
- package/dist/index188.js +75 -250
- package/dist/index188.js.map +1 -1
- package/dist/index189.js +92 -47
- package/dist/index189.js.map +1 -1
- package/dist/index19.js +7 -7
- package/dist/index190.js +46 -40
- package/dist/index190.js.map +1 -1
- package/dist/index191.js +10 -168
- package/dist/index191.js.map +1 -1
- package/dist/index192.js +26 -98
- package/dist/index192.js.map +1 -1
- package/dist/index193.js +8 -24
- package/dist/index193.js.map +1 -1
- package/dist/index194.js +117 -8
- package/dist/index194.js.map +1 -1
- package/dist/index195.js +17 -4
- package/dist/index195.js.map +1 -1
- package/dist/index196.js +15 -5
- package/dist/index196.js.map +1 -1
- package/dist/index197.js +3 -4
- package/dist/index197.js.map +1 -1
- package/dist/index198.js +34 -464
- package/dist/index198.js.map +1 -1
- package/dist/index199.js +19 -184
- package/dist/index199.js.map +1 -1
- package/dist/index20.js +2 -2
- package/dist/index200.js +9 -107
- package/dist/index200.js.map +1 -1
- package/dist/index201.js +8 -262
- package/dist/index201.js.map +1 -1
- package/dist/index202.js +19 -9
- package/dist/index202.js.map +1 -1
- package/dist/index203.js +27 -41
- package/dist/index203.js.map +1 -1
- package/dist/index204.js +16 -4
- package/dist/index204.js.map +1 -1
- package/dist/index205.js +59 -2
- package/dist/index205.js.map +1 -1
- package/dist/index206.js +8 -67
- package/dist/index206.js.map +1 -1
- package/dist/index207.js +66 -84
- package/dist/index207.js.map +1 -1
- package/dist/index208.js +18 -45
- package/dist/index208.js.map +1 -1
- package/dist/index209.js +16 -7
- package/dist/index209.js.map +1 -1
- package/dist/index21.js +1 -1
- package/dist/index210.js +5 -4
- package/dist/index210.js.map +1 -1
- package/dist/index211.js +4 -50
- package/dist/index211.js.map +1 -1
- package/dist/index212.js +6 -67
- package/dist/index212.js.map +1 -1
- package/dist/index213.js +4 -180
- package/dist/index213.js.map +1 -1
- package/dist/index214.js +7 -46
- package/dist/index214.js.map +1 -1
- package/dist/index215.js +17 -58
- package/dist/index215.js.map +1 -1
- package/dist/index216.js +5 -8
- package/dist/index216.js.map +1 -1
- package/dist/index217.js +5 -66
- package/dist/index217.js.map +1 -1
- package/dist/index218.js +13 -19
- package/dist/index218.js.map +1 -1
- package/dist/index219.js +10 -16
- package/dist/index219.js.map +1 -1
- package/dist/index22.js +1 -1
- package/dist/index220.js +14 -5
- package/dist/index220.js.map +1 -1
- package/dist/index221.js +14 -5
- package/dist/index221.js.map +1 -1
- package/dist/index222.js +5 -6
- package/dist/index222.js.map +1 -1
- package/dist/index223.js +6 -4
- package/dist/index223.js.map +1 -1
- package/dist/index224.js +7 -7
- package/dist/index224.js.map +1 -1
- package/dist/index225.js +6 -17
- package/dist/index225.js.map +1 -1
- package/dist/index226.js +9 -5
- package/dist/index226.js.map +1 -1
- package/dist/index227.js +5 -5
- package/dist/index227.js.map +1 -1
- package/dist/index228.js +5 -13
- package/dist/index228.js.map +1 -1
- package/dist/index229.js +9 -10
- package/dist/index229.js.map +1 -1
- package/dist/index23.js +2 -2
- package/dist/index230.js +5 -14
- package/dist/index230.js.map +1 -1
- package/dist/index231.js +4 -13
- package/dist/index231.js.map +1 -1
- package/dist/index232.js +4 -5
- package/dist/index232.js.map +1 -1
- package/dist/index233.js +10 -5
- package/dist/index233.js.map +1 -1
- package/dist/index234.js +10 -7
- package/dist/index234.js.map +1 -1
- package/dist/index235.js +10 -6
- package/dist/index235.js.map +1 -1
- package/dist/index236.js +11 -9
- package/dist/index236.js.map +1 -1
- package/dist/index237.js +11 -5
- package/dist/index237.js.map +1 -1
- package/dist/index238.js +10 -5
- package/dist/index238.js.map +1 -1
- package/dist/index239.js +7 -9
- package/dist/index239.js.map +1 -1
- package/dist/index24.js +1 -1
- package/dist/index240.js +6 -5
- package/dist/index240.js.map +1 -1
- package/dist/index241.js +4 -4
- package/dist/index241.js.map +1 -1
- package/dist/index242.js +6 -4
- package/dist/index242.js.map +1 -1
- package/dist/index243.js +7 -11
- package/dist/index243.js.map +1 -1
- package/dist/index244.js +6 -10
- package/dist/index244.js.map +1 -1
- package/dist/index245.js +55 -10
- package/dist/index245.js.map +1 -1
- package/dist/index246.js +23 -11
- package/dist/index246.js.map +1 -1
- package/dist/index247.js +16 -11
- package/dist/index247.js.map +1 -1
- package/dist/index248.js +7 -10
- package/dist/index248.js.map +1 -1
- package/dist/index249.js +10 -7
- package/dist/index249.js.map +1 -1
- package/dist/index250.js +10 -6
- package/dist/index250.js.map +1 -1
- package/dist/index251.js +21 -5
- package/dist/index251.js.map +1 -1
- package/dist/index252.js +10 -6
- package/dist/index252.js.map +1 -1
- package/dist/index253.js +9 -7
- package/dist/index253.js.map +1 -1
- package/dist/index254.js +9 -6
- package/dist/index254.js.map +1 -1
- package/dist/index255.js +4 -55
- package/dist/index255.js.map +1 -1
- package/dist/index256.js +5 -23
- package/dist/index256.js.map +1 -1
- package/dist/index257.js +15 -15
- package/dist/index257.js.map +1 -1
- package/dist/index258.js +9 -7
- package/dist/index258.js.map +1 -1
- package/dist/index259.js +18 -10
- package/dist/index259.js.map +1 -1
- package/dist/index260.js +15 -10
- package/dist/index260.js.map +1 -1
- package/dist/index261.js +12 -21
- package/dist/index261.js.map +1 -1
- package/dist/index262.js +29 -10
- package/dist/index262.js.map +1 -1
- package/dist/index263.js +12 -9
- package/dist/index263.js.map +1 -1
- package/dist/index264.js +25 -9
- package/dist/index264.js.map +1 -1
- package/dist/index265.js +5 -4
- package/dist/index265.js.map +1 -1
- package/dist/index266.js +5 -6
- package/dist/index266.js.map +1 -1
- package/dist/index267.js +3 -17
- package/dist/index267.js.map +1 -1
- package/dist/index268.js +23 -9
- package/dist/index268.js.map +1 -1
- package/dist/index269.js +112 -18
- package/dist/index269.js.map +1 -1
- package/dist/index27.js +37 -3
- package/dist/index27.js.map +1 -1
- package/dist/index270.js +15 -15
- package/dist/index270.js.map +1 -1
- package/dist/index271.js +522 -10
- package/dist/index271.js.map +1 -1
- package/dist/index272.js +126 -28
- package/dist/index272.js.map +1 -1
- package/dist/index273.js +132 -11
- package/dist/index273.js.map +1 -1
- package/dist/index274.js +20 -25
- package/dist/index274.js.map +1 -1
- package/dist/index275.js +4 -5
- package/dist/index275.js.map +1 -1
- package/dist/index276.js +18 -64
- package/dist/index276.js.map +1 -1
- package/dist/index277.js +12 -48
- package/dist/index277.js.map +1 -1
- package/dist/index278.js +62 -33
- package/dist/index278.js.map +1 -1
- package/dist/index279.js +9 -101
- package/dist/index279.js.map +1 -1
- package/dist/index28.js +3 -125
- package/dist/index28.js.map +1 -1
- package/dist/index280.js +11 -95
- package/dist/index280.js.map +1 -1
- package/dist/index281.js +65 -99
- package/dist/index281.js.map +1 -1
- package/dist/index282.js +62 -22
- package/dist/index282.js.map +1 -1
- package/dist/index283.js +6 -29
- package/dist/index283.js.map +1 -1
- package/dist/index284.js +6 -5
- package/dist/index284.js.map +1 -1
- package/dist/index285.js +4 -2
- package/dist/index285.js.map +1 -1
- package/dist/index286.js +16 -2
- package/dist/index286.js.map +1 -1
- package/dist/index287.js +8 -13
- package/dist/index287.js.map +1 -1
- package/dist/index288.js +5 -154
- package/dist/index288.js.map +1 -1
- package/dist/index289.js +4 -30
- package/dist/index289.js.map +1 -1
- package/dist/index29.js +124 -47
- package/dist/index29.js.map +1 -1
- package/dist/index290.js +545 -9
- package/dist/index290.js.map +1 -1
- package/dist/index291.js +44 -45
- package/dist/index291.js.map +1 -1
- package/dist/index292.js +16 -10
- package/dist/index292.js.map +1 -1
- package/dist/index293.js +6 -44
- package/dist/index293.js.map +1 -1
- package/dist/index294.js +8 -95
- package/dist/index294.js.map +1 -1
- package/dist/index295.js +7 -86
- package/dist/index295.js.map +1 -1
- package/dist/index296.js +8 -105
- package/dist/index296.js.map +1 -1
- package/dist/index297.js +12 -52
- package/dist/index297.js.map +1 -1
- package/dist/index298.js +9 -11
- package/dist/index298.js.map +1 -1
- package/dist/index299.js +13 -37
- package/dist/index299.js.map +1 -1
- package/dist/index30.js +230 -218
- package/dist/index30.js.map +1 -1
- package/dist/index300.js +3 -8
- package/dist/index300.js.map +1 -1
- package/dist/index301.js +20 -114
- package/dist/index301.js.map +1 -1
- package/dist/index302.js +4 -17
- package/dist/index302.js.map +1 -1
- package/dist/index303.js +55 -15
- package/dist/index303.js.map +1 -1
- package/dist/index304.js +68 -4
- package/dist/index304.js.map +1 -1
- package/dist/index305.js +31 -37
- package/dist/index305.js.map +1 -1
- package/dist/index306.js +9 -21
- package/dist/index306.js.map +1 -1
- package/dist/index307.js +153 -10
- package/dist/index307.js.map +1 -1
- package/dist/index308.js +107 -8
- package/dist/index308.js.map +1 -1
- package/dist/index309.js +21 -18
- package/dist/index309.js.map +1 -1
- package/dist/index31.js +49 -42
- package/dist/index31.js.map +1 -1
- package/dist/index310.js +11 -27
- package/dist/index310.js.map +1 -1
- package/dist/index311.js +27 -16
- package/dist/index311.js.map +1 -1
- package/dist/index312.js +5 -5
- package/dist/index312.js.map +1 -1
- package/dist/index313.js +16 -19
- package/dist/index313.js.map +1 -1
- package/dist/index314.js +28 -12
- package/dist/index314.js.map +1 -1
- package/dist/index315.js +13 -5
- package/dist/index315.js.map +1 -1
- package/dist/index316.js +7 -3
- package/dist/index316.js.map +1 -1
- package/dist/index32.js +2638 -38
- package/dist/index32.js.map +1 -1
- package/dist/index33.js +390 -25
- package/dist/index33.js.map +1 -1
- package/dist/index34.js +230 -43
- package/dist/index34.js.map +1 -1
- package/dist/index35.js +20 -30
- package/dist/index35.js.map +1 -1
- package/dist/index36.js +137 -23
- package/dist/index36.js.map +1 -1
- package/dist/index37.js +187 -23
- package/dist/index37.js.map +1 -1
- package/dist/index38.js +75 -127
- package/dist/index38.js.map +1 -1
- package/dist/index39.js +87 -228
- package/dist/index39.js.map +1 -1
- package/dist/index40.js +6 -51
- package/dist/index40.js.map +1 -1
- package/dist/index41.js +804 -2601
- package/dist/index41.js.map +1 -1
- package/dist/index42.js +63 -391
- package/dist/index42.js.map +1 -1
- package/dist/index43.js +7 -232
- package/dist/index43.js.map +1 -1
- package/dist/index44.js +2 -22
- package/dist/index44.js.map +1 -1
- package/dist/index45.js +21 -139
- package/dist/index45.js.map +1 -1
- package/dist/index46.js +230 -183
- package/dist/index46.js.map +1 -1
- package/dist/index47.js +202 -74
- package/dist/index47.js.map +1 -1
- package/dist/index48.js +3 -90
- package/dist/index48.js.map +1 -1
- package/dist/index49.js +6 -5
- package/dist/index49.js.map +1 -1
- package/dist/index5.js +1 -1
- package/dist/index50.js +41 -837
- package/dist/index50.js.map +1 -1
- package/dist/index51.js +26 -65
- package/dist/index51.js.map +1 -1
- package/dist/index52.js +48 -34
- 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 -7
- package/dist/index58.js.map +1 -1
- package/dist/index59.js +2 -2
- package/dist/index60.js +44 -24
- package/dist/index60.js.map +1 -1
- package/dist/index62.js +49 -11
- package/dist/index62.js.map +1 -1
- package/dist/index63.js +4 -4
- package/dist/index63.js.map +1 -1
- package/dist/index64.js +5 -47
- package/dist/index64.js.map +1 -1
- package/dist/index65.js +27 -50
- package/dist/index65.js.map +1 -1
- package/dist/index66.js +50 -8
- package/dist/index66.js.map +1 -1
- package/dist/index67.js +8 -14
- package/dist/index67.js.map +1 -1
- package/dist/index68.js +2 -134
- package/dist/index68.js.map +1 -1
- package/dist/index69.js +2 -11
- package/dist/index69.js.map +1 -1
- package/dist/index70.js +11 -216
- package/dist/index70.js.map +1 -1
- package/dist/index71.js +54 -13
- package/dist/index71.js.map +1 -1
- package/dist/index72.js +5 -46
- package/dist/index72.js.map +1 -1
- package/dist/index73.js +7 -49
- package/dist/index73.js.map +1 -1
- package/dist/index74.js +6 -4
- package/dist/index74.js.map +1 -1
- package/dist/index75.js +46 -5
- package/dist/index75.js.map +1 -1
- package/dist/index76.js +205 -27
- package/dist/index76.js.map +1 -1
- package/dist/index77.js +22 -50
- package/dist/index77.js.map +1 -1
- package/dist/index78.js +25 -9
- package/dist/index78.js.map +1 -1
- package/dist/index79.js +400 -2
- package/dist/index79.js.map +1 -1
- package/dist/index8.js +1 -1
- package/dist/index80.js +47 -2
- package/dist/index80.js.map +1 -1
- package/dist/index81.js +604 -52
- 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 +262 -52
- package/dist/index86.js.map +1 -1
- package/dist/index87.js +60 -4
- package/dist/index87.js.map +1 -1
- package/dist/index88.js +46 -4
- package/dist/index88.js.map +1 -1
- package/dist/index89.js +169 -15
- package/dist/index89.js.map +1 -1
- package/dist/index9.js +1 -1
- package/dist/index90.js +109 -5
- package/dist/index90.js.map +1 -1
- package/dist/index91.js +24 -7
- package/dist/index91.js.map +1 -1
- package/dist/index92.js +8 -17
- package/dist/index92.js.map +1 -1
- package/dist/index93.js +4 -4
- package/dist/index93.js.map +1 -1
- package/dist/index94.js +5 -4
- package/dist/index94.js.map +1 -1
- package/dist/index95.js +4 -5
- package/dist/index95.js.map +1 -1
- package/dist/index96.js +466 -5
- package/dist/index96.js.map +1 -1
- package/dist/index97.js +185 -4
- package/dist/index97.js.map +1 -1
- package/dist/index98.js +107 -4
- package/dist/index98.js.map +1 -1
- package/dist/index99.js +262 -6
- package/dist/index99.js.map +1 -1
- package/package.json +1 -1
- package/dist/index317.js +0 -27
- package/dist/index317.js.map +0 -1
- package/dist/index318.js +0 -116
- package/dist/index318.js.map +0 -1
- package/dist/index319.js +0 -19
- package/dist/index319.js.map +0 -1
- package/dist/index320.js +0 -528
- package/dist/index320.js.map +0 -1
- package/dist/index321.js +0 -131
- package/dist/index321.js.map +0 -1
- package/dist/index322.js +0 -137
- package/dist/index322.js.map +0 -1
- package/dist/index323.js +0 -24
- package/dist/index323.js.map +0 -1
- package/dist/index324.js +0 -9
- package/dist/index324.js.map +0 -1
- package/dist/index325.js +0 -9
- package/dist/index325.js.map +0 -1
- package/dist/index326.js +0 -7
- package/dist/index326.js.map +0 -1
- package/dist/index327.js +0 -19
- package/dist/index327.js.map +0 -1
- package/dist/index328.js +0 -12
- package/dist/index328.js.map +0 -1
- package/dist/index329.js +0 -9
- 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 -549
- package/dist/index331.js.map +0 -1
- package/dist/index332.js +0 -50
- package/dist/index332.js.map +0 -1
- package/dist/index333.js +0 -21
- package/dist/index333.js.map +0 -1
- package/dist/index334.js +0 -10
- package/dist/index334.js.map +0 -1
- package/dist/index335.js +0 -12
- package/dist/index335.js.map +0 -1
- package/dist/index336.js +0 -11
- package/dist/index336.js.map +0 -1
- package/dist/index337.js +0 -12
- package/dist/index337.js.map +0 -1
- package/dist/index338.js +0 -16
- package/dist/index338.js.map +0 -1
- package/dist/index339.js +0 -13
- package/dist/index339.js.map +0 -1
- package/dist/index340.js +0 -17
- package/dist/index340.js.map +0 -1
- package/dist/index341.js +0 -68
- package/dist/index341.js.map +0 -1
- package/dist/index342.js +0 -72
- package/dist/index342.js.map +0 -1
- package/dist/index343.js +0 -12
- package/dist/index343.js.map +0 -1
- package/dist/index344.js +0 -17
- package/dist/index344.js.map +0 -1
- package/dist/index345.js +0 -69
- package/dist/index345.js.map +0 -1
- package/dist/index346.js +0 -71
- package/dist/index346.js.map +0 -1
- package/dist/index347.js +0 -34
- package/dist/index347.js.map +0 -1
- package/dist/index348.js +0 -12
- package/dist/index348.js.map +0 -1
- package/dist/index349.js +0 -156
- package/dist/index349.js.map +0 -1
- package/dist/index350.js +0 -111
- package/dist/index350.js.map +0 -1
- package/dist/index351.js +0 -8
- package/dist/index351.js.map +0 -1
- package/dist/index352.js +0 -59
- package/dist/index352.js.map +0 -1
- package/dist/index353.js +0 -7
- package/dist/index353.js.map +0 -1
- package/dist/index354.js +0 -26
- package/dist/index354.js.map +0 -1
- package/dist/index355.js +0 -19
- package/dist/index355.js.map +0 -1
- package/dist/index356.js +0 -32
- package/dist/index356.js.map +0 -1
- package/dist/index357.js +0 -16
- package/dist/index357.js.map +0 -1
- package/dist/index358.js +0 -10
- package/dist/index358.js.map +0 -1
- package/dist/index359.js +0 -26
- package/dist/index359.js.map +0 -1
- package/dist/index360.js +0 -16
- package/dist/index360.js.map +0 -1
- package/dist/index361.js +0 -31
- package/dist/index361.js.map +0 -1
- package/dist/index362.js +0 -8
- package/dist/index362.js.map +0 -1
package/dist/index201.js
CHANGED
|
@@ -1,266 +1,12 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
"@babel/helpers - typeof";
|
|
9
|
-
return d = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(n) {
|
|
10
|
-
return typeof n;
|
|
11
|
-
} : function(n) {
|
|
12
|
-
return n && typeof Symbol == "function" && n.constructor === Symbol && n !== Symbol.prototype ? "symbol" : typeof n;
|
|
13
|
-
}, d(i);
|
|
14
|
-
}
|
|
15
|
-
function h(i, n) {
|
|
16
|
-
return I(i) || P(i, n) || S(i, n) || x();
|
|
17
|
-
}
|
|
18
|
-
function x() {
|
|
19
|
-
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
20
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
21
|
-
}
|
|
22
|
-
function S(i, n) {
|
|
23
|
-
if (i) {
|
|
24
|
-
if (typeof i == "string") return N(i, n);
|
|
25
|
-
var t = {}.toString.call(i).slice(8, -1);
|
|
26
|
-
return t === "Object" && i.constructor && (t = i.constructor.name), t === "Map" || t === "Set" ? Array.from(i) : t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? N(i, n) : void 0;
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
function N(i, n) {
|
|
30
|
-
(n == null || n > i.length) && (n = i.length);
|
|
31
|
-
for (var t = 0, e = Array(n); t < n; t++) e[t] = i[t];
|
|
32
|
-
return e;
|
|
33
|
-
}
|
|
34
|
-
function P(i, n) {
|
|
35
|
-
var t = i == null ? null : typeof Symbol < "u" && i[Symbol.iterator] || i["@@iterator"];
|
|
36
|
-
if (t != null) {
|
|
37
|
-
var e, r, a, o, u = [], l = !0, c = !1;
|
|
38
|
-
try {
|
|
39
|
-
if (a = (t = t.call(i)).next, n !== 0) for (; !(l = (e = a.call(t)).done) && (u.push(e.value), u.length !== n); l = !0) ;
|
|
40
|
-
} catch (f) {
|
|
41
|
-
c = !0, r = f;
|
|
42
|
-
} finally {
|
|
43
|
-
try {
|
|
44
|
-
if (!l && t.return != null && (o = t.return(), Object(o) !== o)) return;
|
|
45
|
-
} finally {
|
|
46
|
-
if (c) throw r;
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
return u;
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
function I(i) {
|
|
53
|
-
if (Array.isArray(i)) return i;
|
|
54
|
-
}
|
|
55
|
-
function A(i, n) {
|
|
56
|
-
if (!(i instanceof n)) throw new TypeError("Cannot call a class as a function");
|
|
57
|
-
}
|
|
58
|
-
function _(i, n) {
|
|
59
|
-
for (var t = 0; t < n.length; t++) {
|
|
60
|
-
var e = n[t];
|
|
61
|
-
e.enumerable = e.enumerable || !1, e.configurable = !0, "value" in e && (e.writable = !0), Object.defineProperty(i, T(e.key), e);
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
function E(i, n, t) {
|
|
65
|
-
return n && _(i.prototype, n), Object.defineProperty(i, "prototype", { writable: !1 }), i;
|
|
66
|
-
}
|
|
67
|
-
function T(i) {
|
|
68
|
-
var n = D(i, "string");
|
|
69
|
-
return d(n) == "symbol" ? n : n + "";
|
|
70
|
-
}
|
|
71
|
-
function D(i, n) {
|
|
72
|
-
if (d(i) != "object" || !i) return i;
|
|
73
|
-
var t = i[Symbol.toPrimitive];
|
|
74
|
-
if (t !== void 0) {
|
|
75
|
-
var e = t.call(i, n);
|
|
76
|
-
if (d(e) != "object") return e;
|
|
77
|
-
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
78
|
-
}
|
|
79
|
-
return String(i);
|
|
80
|
-
}
|
|
81
|
-
var R = "[" + s + g + "]+", F = new RegExp("^" + R + "$", "i"), k = "(?:[" + p + "][" + s + g + "]*|[" + s + g + "]+)", O = new RegExp("[^" + s + g + "]+.*$"), M = /[^\d\[\]]/, $ = /* @__PURE__ */ (function() {
|
|
82
|
-
function i(n) {
|
|
83
|
-
var t = n.defaultCountry, e = n.defaultCallingCode, r = n.metadata, a = n.onNationalSignificantNumberChange;
|
|
84
|
-
A(this, i), this.defaultCountry = t, this.defaultCallingCode = e, this.metadata = r, this.onNationalSignificantNumberChange = a;
|
|
85
|
-
}
|
|
86
|
-
return E(i, [{
|
|
87
|
-
key: "input",
|
|
88
|
-
value: function(t, e) {
|
|
89
|
-
var r = j(t), a = h(r, 2), o = a[0], u = a[1], l = v(o), c;
|
|
90
|
-
return u && (e.digits || (e.startInternationalNumber(void 0, void 0), l || (c = !0))), l && this.inputDigits(l, e), {
|
|
91
|
-
digits: l,
|
|
92
|
-
justLeadingPlus: c
|
|
93
|
-
};
|
|
94
|
-
}
|
|
95
|
-
/**
|
|
96
|
-
* Inputs "next" phone number digits.
|
|
97
|
-
* @param {string} digits
|
|
98
|
-
* @return {string} [formattedNumber] Formatted national phone number (if it can be formatted at this stage). Returning `undefined` means "don't format the national phone number at this stage".
|
|
99
|
-
*/
|
|
100
|
-
}, {
|
|
101
|
-
key: "inputDigits",
|
|
102
|
-
value: function(t, e) {
|
|
103
|
-
var r = e.digits, a = r.length < 3 && r.length + t.length >= 3;
|
|
104
|
-
if (e.appendDigits(t), a && this.extractIddPrefix(e), this.isWaitingForCountryCallingCode(e)) {
|
|
105
|
-
if (!this.extractCountryCallingCode(e))
|
|
106
|
-
return;
|
|
107
|
-
} else
|
|
108
|
-
e.appendNationalSignificantNumberDigits(t);
|
|
109
|
-
e.international || this.hasExtractedNationalSignificantNumber || this.extractNationalSignificantNumber(e.getNationalDigits(), function(o) {
|
|
110
|
-
return e.update(o);
|
|
111
|
-
});
|
|
112
|
-
}
|
|
113
|
-
}, {
|
|
114
|
-
key: "isWaitingForCountryCallingCode",
|
|
115
|
-
value: function(t) {
|
|
116
|
-
var e = t.international, r = t.callingCode;
|
|
117
|
-
return e && !r;
|
|
118
|
-
}
|
|
119
|
-
// Extracts a country calling code from a number
|
|
120
|
-
// being entered in internatonal format.
|
|
121
|
-
}, {
|
|
122
|
-
key: "extractCountryCallingCode",
|
|
123
|
-
value: function(t) {
|
|
124
|
-
var e = b("+" + t.getDigitsWithoutInternationalPrefix(), t.country, this.defaultCountry, this.defaultCallingCode, this.metadata.metadata), r = e.countryCallingCode, a = e.number;
|
|
125
|
-
if (r)
|
|
126
|
-
return t.setCallingCode(r), t.update({
|
|
127
|
-
nationalSignificantNumber: a
|
|
128
|
-
}), !0;
|
|
129
|
-
}
|
|
130
|
-
}, {
|
|
131
|
-
key: "reset",
|
|
132
|
-
value: function(t) {
|
|
133
|
-
if (t) {
|
|
134
|
-
this.hasSelectedNumberingPlan = !0;
|
|
135
|
-
var e = t._nationalPrefixForParsing();
|
|
136
|
-
this.couldPossiblyExtractAnotherNationalSignificantNumber = e && M.test(e);
|
|
137
|
-
} else
|
|
138
|
-
this.hasSelectedNumberingPlan = void 0, this.couldPossiblyExtractAnotherNationalSignificantNumber = void 0;
|
|
139
|
-
}
|
|
140
|
-
/**
|
|
141
|
-
* Extracts a national (significant) number from user input.
|
|
142
|
-
* Google's library is different in that it only applies `national_prefix_for_parsing`
|
|
143
|
-
* and doesn't apply `national_prefix_transform_rule` after that.
|
|
144
|
-
* https://github.com/google/libphonenumber/blob/a3d70b0487875475e6ad659af404943211d26456/java/libphonenumber/src/com/google/i18n/phonenumbers/AsYouTypeFormatter.java#L539
|
|
145
|
-
* @return {boolean} [extracted]
|
|
146
|
-
*/
|
|
147
|
-
}, {
|
|
148
|
-
key: "extractNationalSignificantNumber",
|
|
149
|
-
value: function(t, e) {
|
|
150
|
-
if (this.hasSelectedNumberingPlan) {
|
|
151
|
-
var r = m(t, this.metadata), a = r.nationalPrefix, o = r.nationalNumber, u = r.carrierCode;
|
|
152
|
-
if (o !== t)
|
|
153
|
-
return this.onExtractedNationalNumber(a, u, o, t, e), !0;
|
|
154
|
-
}
|
|
155
|
-
}
|
|
156
|
-
/**
|
|
157
|
-
* In Google's code this function is called "attempt to extract longer NDD".
|
|
158
|
-
* "Some national prefixes are a substring of others", they say.
|
|
159
|
-
* @return {boolean} [result] — Returns `true` if extracting a national prefix produced different results from what they were.
|
|
160
|
-
*/
|
|
161
|
-
}, {
|
|
162
|
-
key: "extractAnotherNationalSignificantNumber",
|
|
163
|
-
value: function(t, e, r) {
|
|
164
|
-
if (!this.hasExtractedNationalSignificantNumber)
|
|
165
|
-
return this.extractNationalSignificantNumber(t, r);
|
|
166
|
-
if (this.couldPossiblyExtractAnotherNationalSignificantNumber) {
|
|
167
|
-
var a = m(t, this.metadata), o = a.nationalPrefix, u = a.nationalNumber, l = a.carrierCode;
|
|
168
|
-
if (u !== e)
|
|
169
|
-
return this.onExtractedNationalNumber(o, l, u, t, r), !0;
|
|
170
|
-
}
|
|
171
|
-
}
|
|
172
|
-
}, {
|
|
173
|
-
key: "onExtractedNationalNumber",
|
|
174
|
-
value: function(t, e, r, a, o) {
|
|
175
|
-
var u = !1, l, c = a.lastIndexOf(r);
|
|
176
|
-
if (c < 0 || c !== a.length - r.length)
|
|
177
|
-
u = !0;
|
|
178
|
-
else {
|
|
179
|
-
var f = a.slice(0, c);
|
|
180
|
-
f && f !== t && (l = f);
|
|
181
|
-
}
|
|
182
|
-
o({
|
|
183
|
-
nationalPrefix: t,
|
|
184
|
-
carrierCode: e,
|
|
185
|
-
nationalSignificantNumber: r,
|
|
186
|
-
nationalSignificantNumberIsModified: u,
|
|
187
|
-
prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix: l
|
|
188
|
-
}), this.hasExtractedNationalSignificantNumber = !0, this.onNationalSignificantNumberChange();
|
|
189
|
-
}
|
|
190
|
-
}, {
|
|
191
|
-
key: "reExtractNationalSignificantNumber",
|
|
192
|
-
value: function(t) {
|
|
193
|
-
if (this.extractAnotherNationalSignificantNumber(t.getNationalDigits(), t.nationalSignificantNumber, function(e) {
|
|
194
|
-
return t.update(e);
|
|
195
|
-
}))
|
|
196
|
-
return !0;
|
|
197
|
-
if (this.extractIddPrefix(t))
|
|
198
|
-
return this.extractCallingCodeAndNationalSignificantNumber(t), !0;
|
|
199
|
-
if (this.fixMissingPlus(t))
|
|
200
|
-
return this.extractCallingCodeAndNationalSignificantNumber(t), !0;
|
|
201
|
-
}
|
|
202
|
-
}, {
|
|
203
|
-
key: "extractIddPrefix",
|
|
204
|
-
value: function(t) {
|
|
205
|
-
var e = t.international, r = t.IDDPrefix, a = t.digits;
|
|
206
|
-
if (t.nationalSignificantNumber, !(e || r)) {
|
|
207
|
-
var o = C(a, this.defaultCountry, this.defaultCallingCode, this.metadata.metadata);
|
|
208
|
-
if (o !== void 0 && o !== a)
|
|
209
|
-
return t.update({
|
|
210
|
-
IDDPrefix: a.slice(0, a.length - o.length)
|
|
211
|
-
}), this.startInternationalNumber(t, {
|
|
212
|
-
country: void 0,
|
|
213
|
-
callingCode: void 0
|
|
214
|
-
}), !0;
|
|
215
|
-
}
|
|
216
|
-
}
|
|
217
|
-
}, {
|
|
218
|
-
key: "fixMissingPlus",
|
|
219
|
-
value: function(t) {
|
|
220
|
-
if (!t.international) {
|
|
221
|
-
var e = y(t.digits, t.country, this.defaultCountry, this.defaultCallingCode, this.metadata.metadata), r = e.countryCallingCode;
|
|
222
|
-
if (r)
|
|
223
|
-
return t.update({
|
|
224
|
-
missingPlus: !0
|
|
225
|
-
}), this.startInternationalNumber(t, {
|
|
226
|
-
country: t.country,
|
|
227
|
-
callingCode: r
|
|
228
|
-
}), !0;
|
|
229
|
-
}
|
|
230
|
-
}
|
|
231
|
-
}, {
|
|
232
|
-
key: "startInternationalNumber",
|
|
233
|
-
value: function(t, e) {
|
|
234
|
-
var r = e.country, a = e.callingCode;
|
|
235
|
-
t.startInternationalNumber(r, a), t.nationalSignificantNumber && (t.resetNationalSignificantNumber(), this.onNationalSignificantNumberChange(), this.hasExtractedNationalSignificantNumber = void 0);
|
|
236
|
-
}
|
|
237
|
-
}, {
|
|
238
|
-
key: "extractCallingCodeAndNationalSignificantNumber",
|
|
239
|
-
value: function(t) {
|
|
240
|
-
this.extractCountryCallingCode(t) && this.extractNationalSignificantNumber(t.getNationalDigits(), function(e) {
|
|
241
|
-
return t.update(e);
|
|
242
|
-
});
|
|
243
|
-
}
|
|
244
|
-
}]);
|
|
245
|
-
})();
|
|
246
|
-
function L(i) {
|
|
247
|
-
var n = i.search(k);
|
|
248
|
-
if (!(n < 0)) {
|
|
249
|
-
i = i.slice(n);
|
|
250
|
-
var t;
|
|
251
|
-
return i[0] === "+" && (t = !0, i = i.slice(1)), i = i.replace(O, ""), t && (i = "+" + i), i;
|
|
252
|
-
}
|
|
253
|
-
}
|
|
254
|
-
function w(i) {
|
|
255
|
-
var n = L(i) || "";
|
|
256
|
-
return n[0] === "+" ? [n.slice(1), !0] : [n];
|
|
257
|
-
}
|
|
258
|
-
function j(i) {
|
|
259
|
-
var n = w(i), t = h(n, 2), e = t[0], r = t[1];
|
|
260
|
-
return F.test(e) || (e = ""), [e, r];
|
|
1
|
+
import { VALID_DIGITS as A } from "./index92.js";
|
|
2
|
+
var g = ";ext=", t = function(a) {
|
|
3
|
+
return "([".concat(A, "]{1,").concat(a, "})");
|
|
4
|
+
};
|
|
5
|
+
function D(x) {
|
|
6
|
+
var a = "20", o = "15", i = "9", F = "6", n = "[ \\t,]*", e = "[:\\..]?[ \\t,-]*", r = "#?", s = "(?:e?xt(?:ensi(?:ó?|ó))?n?|e?xtn?|доб|anexo)", E = "(?:[xx##~~]|int|int)", l = "[- ]+", u = "[ \\t]*", v = "(?:,{2}|;)", b = g + t(a), m = n + s + e + t(a) + r, p = n + E + e + t(i) + r, L = l + t(F) + "#", f = u + v + e + t(o) + r, c = u + "(?:,)+" + e + t(i) + r;
|
|
7
|
+
return b + "|" + m + "|" + p + "|" + L + "|" + f + "|" + c;
|
|
261
8
|
}
|
|
262
9
|
export {
|
|
263
|
-
|
|
264
|
-
j as extractFormattedDigitsAndPlus
|
|
10
|
+
D as default
|
|
265
11
|
};
|
|
266
12
|
//# sourceMappingURL=index201.js.map
|
package/dist/index201.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index201.js","sources":["../../../node_modules/libphonenumber-js/es6/AsYouTypeParser.js"],"sourcesContent":["function _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(r, a) { if (r) { if (\"string\" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return \"Object\" === t && r.constructor && (t = r.constructor.name), \"Map\" === t || \"Set\" === t ? Array.from(r) : \"Arguments\" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }\nfunction _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(r) { if (Array.isArray(r)) return r; }\nfunction _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\"); }\nfunction _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }\nfunction _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", { writable: !1 }), e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nimport _extractCountryCallingCode from './helpers/extractCountryCallingCode.js';\nimport extractCountryCallingCodeFromInternationalNumberWithoutPlusSign from './helpers/extractCountryCallingCodeFromInternationalNumberWithoutPlusSign.js';\nimport extractNationalNumberFromPossiblyIncompleteNumber from './helpers/extractNationalNumberFromPossiblyIncompleteNumber.js';\nimport stripIddPrefix from './helpers/stripIddPrefix.js';\nimport parseDigits from './helpers/parseDigits.js';\nimport { VALID_DIGITS, VALID_PUNCTUATION, PLUS_CHARS } from './constants.js';\nvar VALID_FORMATTED_PHONE_NUMBER_DIGITS_PART = '[' + VALID_PUNCTUATION + VALID_DIGITS + ']+';\nvar VALID_FORMATTED_PHONE_NUMBER_DIGITS_PART_PATTERN = new RegExp('^' + VALID_FORMATTED_PHONE_NUMBER_DIGITS_PART + '$', 'i');\nvar VALID_FORMATTED_PHONE_NUMBER_PART = '(?:' + '[' + PLUS_CHARS + ']' + '[' + VALID_PUNCTUATION + VALID_DIGITS + ']*' + '|' + '[' + VALID_PUNCTUATION + VALID_DIGITS + ']+' + ')';\nvar AFTER_PHONE_NUMBER_DIGITS_END_PATTERN = new RegExp('[^' + VALID_PUNCTUATION + VALID_DIGITS + ']+' + '.*' + '$');\n\n// Tests whether `national_prefix_for_parsing` could match\n// different national prefixes.\n// Matches anything that's not a digit or a square bracket.\nvar COMPLEX_NATIONAL_PREFIX = /[^\\d\\[\\]]/;\nvar AsYouTypeParser = /*#__PURE__*/function () {\n function AsYouTypeParser(_ref) {\n var defaultCountry = _ref.defaultCountry,\n defaultCallingCode = _ref.defaultCallingCode,\n metadata = _ref.metadata,\n onNationalSignificantNumberChange = _ref.onNationalSignificantNumberChange;\n _classCallCheck(this, AsYouTypeParser);\n this.defaultCountry = defaultCountry;\n this.defaultCallingCode = defaultCallingCode;\n this.metadata = metadata;\n this.onNationalSignificantNumberChange = onNationalSignificantNumberChange;\n }\n return _createClass(AsYouTypeParser, [{\n key: \"input\",\n value: function input(text, state) {\n var _extractFormattedDigi = extractFormattedDigitsAndPlus(text),\n _extractFormattedDigi2 = _slicedToArray(_extractFormattedDigi, 2),\n formattedDigits = _extractFormattedDigi2[0],\n hasPlus = _extractFormattedDigi2[1];\n var digits = parseDigits(formattedDigits);\n // Checks for a special case: just a leading `+` has been entered.\n var justLeadingPlus;\n if (hasPlus) {\n if (!state.digits) {\n state.startInternationalNumber(undefined, undefined);\n if (!digits) {\n justLeadingPlus = true;\n }\n }\n }\n if (digits) {\n this.inputDigits(digits, state);\n }\n return {\n digits: digits,\n justLeadingPlus: justLeadingPlus\n };\n }\n\n /**\r\n * Inputs \"next\" phone number digits.\r\n * @param {string} digits\r\n * @return {string} [formattedNumber] Formatted national phone number (if it can be formatted at this stage). Returning `undefined` means \"don't format the national phone number at this stage\".\r\n */\n }, {\n key: \"inputDigits\",\n value: function inputDigits(nextDigits, state) {\n var digits = state.digits;\n var hasReceivedThreeLeadingDigits = digits.length < 3 && digits.length + nextDigits.length >= 3;\n\n // Append phone number digits.\n state.appendDigits(nextDigits);\n\n // Attempt to extract IDD prefix:\n // Some users input their phone number in international format,\n // but in an \"out-of-country\" dialing format instead of using the leading `+`.\n // https://github.com/catamphetamine/libphonenumber-js/issues/185\n // Detect such numbers as soon as there're at least 3 digits.\n // Google's library attempts to extract IDD prefix at 3 digits,\n // so this library just copies that behavior.\n // I guess that's because the most commot IDD prefixes are\n // `00` (Europe) and `011` (US).\n // There exist really long IDD prefixes too:\n // for example, in Australia the default IDD prefix is `0011`,\n // and it could even be as long as `14880011`.\n // An IDD prefix is extracted here, and then every time when\n // there's a new digit and the number couldn't be formatted.\n if (hasReceivedThreeLeadingDigits) {\n this.extractIddPrefix(state);\n }\n if (this.isWaitingForCountryCallingCode(state)) {\n if (!this.extractCountryCallingCode(state)) {\n return;\n }\n } else {\n state.appendNationalSignificantNumberDigits(nextDigits);\n }\n\n // If a phone number is being input in international format,\n // then it's not valid for it to have a national prefix.\n // Still, some people incorrectly input such numbers with a national prefix.\n // In such cases, only attempt to strip a national prefix if the number becomes too long.\n // (but that is done later, not here)\n if (!state.international) {\n if (!this.hasExtractedNationalSignificantNumber) {\n this.extractNationalSignificantNumber(state.getNationalDigits(), function (stateUpdate) {\n return state.update(stateUpdate);\n });\n }\n }\n }\n }, {\n key: \"isWaitingForCountryCallingCode\",\n value: function isWaitingForCountryCallingCode(_ref2) {\n var international = _ref2.international,\n callingCode = _ref2.callingCode;\n return international && !callingCode;\n }\n\n // Extracts a country calling code from a number\n // being entered in internatonal format.\n }, {\n key: \"extractCountryCallingCode\",\n value: function extractCountryCallingCode(state) {\n var _extractCountryCallin = _extractCountryCallingCode('+' + state.getDigitsWithoutInternationalPrefix(), state.country, this.defaultCountry, this.defaultCallingCode, this.metadata.metadata),\n countryCallingCode = _extractCountryCallin.countryCallingCode,\n number = _extractCountryCallin.number;\n if (countryCallingCode) {\n state.setCallingCode(countryCallingCode);\n state.update({\n nationalSignificantNumber: number\n });\n return true;\n }\n }\n }, {\n key: \"reset\",\n value: function reset(numberingPlan) {\n if (numberingPlan) {\n this.hasSelectedNumberingPlan = true;\n var nationalPrefixForParsing = numberingPlan._nationalPrefixForParsing();\n this.couldPossiblyExtractAnotherNationalSignificantNumber = nationalPrefixForParsing && COMPLEX_NATIONAL_PREFIX.test(nationalPrefixForParsing);\n } else {\n this.hasSelectedNumberingPlan = undefined;\n this.couldPossiblyExtractAnotherNationalSignificantNumber = undefined;\n }\n }\n\n /**\r\n * Extracts a national (significant) number from user input.\r\n * Google's library is different in that it only applies `national_prefix_for_parsing`\r\n * and doesn't apply `national_prefix_transform_rule` after that.\r\n * https://github.com/google/libphonenumber/blob/a3d70b0487875475e6ad659af404943211d26456/java/libphonenumber/src/com/google/i18n/phonenumbers/AsYouTypeFormatter.java#L539\r\n * @return {boolean} [extracted]\r\n */\n }, {\n key: \"extractNationalSignificantNumber\",\n value: function extractNationalSignificantNumber(nationalDigits, setState) {\n if (!this.hasSelectedNumberingPlan) {\n return;\n }\n var _extractNationalNumbe = extractNationalNumberFromPossiblyIncompleteNumber(nationalDigits, this.metadata),\n nationalPrefix = _extractNationalNumbe.nationalPrefix,\n nationalNumber = _extractNationalNumbe.nationalNumber,\n carrierCode = _extractNationalNumbe.carrierCode;\n if (nationalNumber === nationalDigits) {\n return;\n }\n this.onExtractedNationalNumber(nationalPrefix, carrierCode, nationalNumber, nationalDigits, setState);\n return true;\n }\n\n /**\r\n * In Google's code this function is called \"attempt to extract longer NDD\".\r\n * \"Some national prefixes are a substring of others\", they say.\r\n * @return {boolean} [result] — Returns `true` if extracting a national prefix produced different results from what they were.\r\n */\n }, {\n key: \"extractAnotherNationalSignificantNumber\",\n value: function extractAnotherNationalSignificantNumber(nationalDigits, prevNationalSignificantNumber, setState) {\n if (!this.hasExtractedNationalSignificantNumber) {\n return this.extractNationalSignificantNumber(nationalDigits, setState);\n }\n if (!this.couldPossiblyExtractAnotherNationalSignificantNumber) {\n return;\n }\n var _extractNationalNumbe2 = extractNationalNumberFromPossiblyIncompleteNumber(nationalDigits, this.metadata),\n nationalPrefix = _extractNationalNumbe2.nationalPrefix,\n nationalNumber = _extractNationalNumbe2.nationalNumber,\n carrierCode = _extractNationalNumbe2.carrierCode;\n // If a national prefix has been extracted previously,\n // then it's always extracted as additional digits are added.\n // That's assuming `extractNationalNumberFromPossiblyIncompleteNumber()`\n // doesn't do anything different from what it currently does.\n // So, just in case, here's this check, though it doesn't occur.\n /* istanbul ignore if */\n if (nationalNumber === prevNationalSignificantNumber) {\n return;\n }\n this.onExtractedNationalNumber(nationalPrefix, carrierCode, nationalNumber, nationalDigits, setState);\n return true;\n }\n }, {\n key: \"onExtractedNationalNumber\",\n value: function onExtractedNationalNumber(nationalPrefix, carrierCode, nationalSignificantNumber, nationalDigits, setState) {\n // Tells if the parsed national (significant) number is present as-is in the input string.\n // For example, when inputting \"0343515551212999\" Argentinian mobile number,\n // the parsed national (significant) number is \"93435551212999\".\n // There, one can see how it stripped \"0\" national prefix and prepended a \"9\",\n // because that's how it is instructed to do in Argentina's metadata.\n // So in the described example, the parsed national (significant) number is not present\n // as-is in the input string. Instead, it's \"modified\" in the input string.\n // https://gitlab.com/catamphetamine/libphonenumber-js/-/blob/master/METADATA.md#national_prefix_for_parsing--national_prefix_transform_rule\n var nationalSignificantNumberIsModified = false;\n\n // In some countries, a phone number could have a prefix that is not a \"national prefix\"\n // but rather some other type of \"utility\" prefix.\n // For example, when calling within Australia, one could prepend `1831` prefix to hide\n // caller's phone number.\n // https://gitlab.com/catamphetamine/libphonenumber-js/-/blob/master/METADATA.md#national_prefix_for_parsing--national_prefix_transform_rule\n var prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix;\n\n // `nationalSignificantNumber` could be empty. In that case, `.lastIndexOf()` still works correctly.\n var nationalSignificantNumberIndex = nationalDigits.lastIndexOf(nationalSignificantNumber);\n\n // If the parsed national (significant) number is the last substring of the `nationalDigits`,\n // then it means that it's present as-is in the input string.\n // In any other case, the parsed national (significant) number is \"modified\" in the input string.\n if (nationalSignificantNumberIndex < 0 || nationalSignificantNumberIndex !== nationalDigits.length - nationalSignificantNumber.length) {\n nationalSignificantNumberIsModified = true;\n } else {\n var prefixBeforeNationalNumber = nationalDigits.slice(0, nationalSignificantNumberIndex);\n // When national (significant) number is equal to the `nationalDigits`,\n // this `onExtractedNationalNumber()` function simply doesn't get called.\n // This means that at this point, `prefixBeforeNationalNumber` is always non-empty.\n // Still, added this `if` check just to prevent potential silly bugs.\n // The `!prefixBeforeNationalNumber` case is not really testable\n // so this line is exluded from the code coverage.\n /* istanbul ignore if */\n if (prefixBeforeNationalNumber) {\n if (prefixBeforeNationalNumber !== nationalPrefix) {\n prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix = prefixBeforeNationalNumber;\n }\n }\n }\n setState({\n nationalPrefix: nationalPrefix,\n carrierCode: carrierCode,\n nationalSignificantNumber: nationalSignificantNumber,\n nationalSignificantNumberIsModified: nationalSignificantNumberIsModified,\n prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix: prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix\n });\n // `onExtractedNationalNumber()` is only called when\n // the national (significant) number actually did change.\n this.hasExtractedNationalSignificantNumber = true;\n this.onNationalSignificantNumberChange();\n }\n }, {\n key: \"reExtractNationalSignificantNumber\",\n value: function reExtractNationalSignificantNumber(state) {\n // Attempt to extract a national prefix.\n //\n // Some people incorrectly input national prefix\n // in an international phone number.\n // For example, some people write British phone numbers as `+44(0)...`.\n //\n // Also, in some rare cases, it is valid for a national prefix\n // to be a part of an international phone number.\n // For example, mobile phone numbers in Mexico are supposed to be\n // dialled internationally using a `1` national prefix,\n // so the national prefix will be part of an international number.\n //\n // Quote from:\n // https://www.mexperience.com/dialing-cell-phones-in-mexico/\n //\n // \"Dialing a Mexican cell phone from abroad\n // When you are calling a cell phone number in Mexico from outside Mexico,\n // it’s necessary to dial an additional “1” after Mexico’s country code\n // (which is “52”) and before the area code.\n // You also ignore the 045, and simply dial the area code and the\n // cell phone’s number.\n //\n // If you don’t add the “1”, you’ll receive a recorded announcement\n // asking you to redial using it.\n //\n // For example, if you are calling from the USA to a cell phone\n // in Mexico City, you would dial +52 – 1 – 55 – 1234 5678.\n // (Note that this is different to calling a land line in Mexico City\n // from abroad, where the number dialed would be +52 – 55 – 1234 5678)\".\n //\n // Google's demo output:\n // https://libphonenumber.appspot.com/phonenumberparser?number=%2b5215512345678&country=MX\n //\n if (this.extractAnotherNationalSignificantNumber(state.getNationalDigits(), state.nationalSignificantNumber, function (stateUpdate) {\n return state.update(stateUpdate);\n })) {\n return true;\n }\n // If no format matches the phone number, then it could be\n // \"a really long IDD\" (quote from a comment in Google's library).\n // An IDD prefix is first extracted when the user has entered at least 3 digits,\n // and then here — every time when there's a new digit and the number\n // couldn't be formatted.\n // For example, in Australia the default IDD prefix is `0011`,\n // and it could even be as long as `14880011`.\n //\n // Could also check `!hasReceivedThreeLeadingDigits` here\n // to filter out the case when this check duplicates the one\n // already performed when there're 3 leading digits,\n // but it's not a big deal, and in most cases there\n // will be a suitable `format` when there're 3 leading digits.\n //\n if (this.extractIddPrefix(state)) {\n this.extractCallingCodeAndNationalSignificantNumber(state);\n return true;\n }\n // Google's AsYouType formatter supports sort of an \"autocorrection\" feature\n // when it \"autocorrects\" numbers that have been input for a country\n // with that country's calling code.\n // Such \"autocorrection\" feature looks weird, but different people have been requesting it:\n // https://github.com/catamphetamine/libphonenumber-js/issues/376\n // https://github.com/catamphetamine/libphonenumber-js/issues/375\n // https://github.com/catamphetamine/libphonenumber-js/issues/316\n if (this.fixMissingPlus(state)) {\n this.extractCallingCodeAndNationalSignificantNumber(state);\n return true;\n }\n }\n }, {\n key: \"extractIddPrefix\",\n value: function extractIddPrefix(state) {\n // An IDD prefix can't be present in a number written with a `+`.\n // Also, don't re-extract an IDD prefix if has already been extracted.\n var international = state.international,\n IDDPrefix = state.IDDPrefix,\n digits = state.digits,\n nationalSignificantNumber = state.nationalSignificantNumber;\n if (international || IDDPrefix) {\n return;\n }\n // Some users input their phone number in \"out-of-country\"\n // dialing format instead of using the leading `+`.\n // https://github.com/catamphetamine/libphonenumber-js/issues/185\n // Detect such numbers.\n var numberWithoutIDD = stripIddPrefix(digits, this.defaultCountry, this.defaultCallingCode, this.metadata.metadata);\n if (numberWithoutIDD !== undefined && numberWithoutIDD !== digits) {\n // If an IDD prefix was stripped then convert the IDD-prefixed number\n // to international number for subsequent parsing.\n state.update({\n IDDPrefix: digits.slice(0, digits.length - numberWithoutIDD.length)\n });\n this.startInternationalNumber(state, {\n country: undefined,\n callingCode: undefined\n });\n return true;\n }\n }\n }, {\n key: \"fixMissingPlus\",\n value: function fixMissingPlus(state) {\n if (!state.international) {\n var _extractCountryCallin2 = extractCountryCallingCodeFromInternationalNumberWithoutPlusSign(state.digits, state.country, this.defaultCountry, this.defaultCallingCode, this.metadata.metadata),\n newCallingCode = _extractCountryCallin2.countryCallingCode;\n if (newCallingCode) {\n state.update({\n missingPlus: true\n });\n this.startInternationalNumber(state, {\n country: state.country,\n callingCode: newCallingCode\n });\n return true;\n }\n }\n }\n }, {\n key: \"startInternationalNumber\",\n value: function startInternationalNumber(state, _ref3) {\n var country = _ref3.country,\n callingCode = _ref3.callingCode;\n state.startInternationalNumber(country, callingCode);\n // If a national (significant) number has been extracted before, reset it.\n if (state.nationalSignificantNumber) {\n state.resetNationalSignificantNumber();\n this.onNationalSignificantNumberChange();\n this.hasExtractedNationalSignificantNumber = undefined;\n }\n }\n }, {\n key: \"extractCallingCodeAndNationalSignificantNumber\",\n value: function extractCallingCodeAndNationalSignificantNumber(state) {\n if (this.extractCountryCallingCode(state)) {\n // `this.extractCallingCode()` is currently called when the number\n // couldn't be formatted during the standard procedure.\n // Normally, the national prefix would be re-extracted\n // for an international number if such number couldn't be formatted,\n // but since it's already not able to be formatted,\n // there won't be yet another retry, so also extract national prefix here.\n this.extractNationalSignificantNumber(state.getNationalDigits(), function (stateUpdate) {\n return state.update(stateUpdate);\n });\n }\n }\n }]);\n}();\n/**\r\n * Extracts formatted phone number from text (if there's any).\r\n * @param {string} text\r\n * @return {string} [formattedPhoneNumber]\r\n */\nexport { AsYouTypeParser as default };\nfunction extractFormattedPhoneNumber(text) {\n // Attempt to extract a possible number from the string passed in.\n var startsAt = text.search(VALID_FORMATTED_PHONE_NUMBER_PART);\n if (startsAt < 0) {\n return;\n }\n // Trim everything to the left of the phone number.\n text = text.slice(startsAt);\n // Trim the `+`.\n var hasPlus;\n if (text[0] === '+') {\n hasPlus = true;\n text = text.slice('+'.length);\n }\n // Trim everything to the right of the phone number.\n text = text.replace(AFTER_PHONE_NUMBER_DIGITS_END_PATTERN, '');\n // Re-add the previously trimmed `+`.\n if (hasPlus) {\n text = '+' + text;\n }\n return text;\n}\n\n/**\r\n * Extracts formatted phone number digits (and a `+`) from text (if there're any).\r\n * @param {string} text\r\n * @return {any[]}\r\n */\nfunction _extractFormattedDigitsAndPlus(text) {\n // Extract a formatted phone number part from text.\n var extractedNumber = extractFormattedPhoneNumber(text) || '';\n // Trim a `+`.\n if (extractedNumber[0] === '+') {\n return [extractedNumber.slice('+'.length), true];\n }\n return [extractedNumber];\n}\n\n/**\r\n * Extracts formatted phone number digits (and a `+`) from text (if there're any).\r\n * @param {string} text\r\n * @return {any[]}\r\n */\nexport function extractFormattedDigitsAndPlus(text) {\n var _extractFormattedDigi3 = _extractFormattedDigitsAndPlus(text),\n _extractFormattedDigi4 = _slicedToArray(_extractFormattedDigi3, 2),\n formattedDigits = _extractFormattedDigi4[0],\n hasPlus = _extractFormattedDigi4[1];\n // If the extracted phone number part\n // can possibly be a part of some valid phone number\n // then parse phone number characters from a formatted phone number.\n if (!VALID_FORMATTED_PHONE_NUMBER_DIGITS_PART_PATTERN.test(formattedDigits)) {\n formattedDigits = '';\n }\n return [formattedDigits, hasPlus];\n}\n//# sourceMappingURL=AsYouTypeParser.js.map"],"names":["_typeof","o","_slicedToArray","r","e","_arrayWithHoles","_iterableToArrayLimit","_unsupportedIterableToArray","_nonIterableRest","a","_arrayLikeToArray","n","l","i","u","f","_classCallCheck","_defineProperties","_toPropertyKey","_createClass","t","_toPrimitive","VALID_FORMATTED_PHONE_NUMBER_DIGITS_PART","VALID_PUNCTUATION","VALID_DIGITS","VALID_FORMATTED_PHONE_NUMBER_DIGITS_PART_PATTERN","VALID_FORMATTED_PHONE_NUMBER_PART","PLUS_CHARS","AFTER_PHONE_NUMBER_DIGITS_END_PATTERN","COMPLEX_NATIONAL_PREFIX","AsYouTypeParser","_ref","defaultCountry","defaultCallingCode","metadata","onNationalSignificantNumberChange","text","state","_extractFormattedDigi","extractFormattedDigitsAndPlus","_extractFormattedDigi2","formattedDigits","hasPlus","digits","parseDigits","justLeadingPlus","nextDigits","hasReceivedThreeLeadingDigits","stateUpdate","_ref2","international","callingCode","_extractCountryCallin","_extractCountryCallingCode","countryCallingCode","number","numberingPlan","nationalPrefixForParsing","nationalDigits","setState","_extractNationalNumbe","extractNationalNumberFromPossiblyIncompleteNumber","nationalPrefix","nationalNumber","carrierCode","prevNationalSignificantNumber","_extractNationalNumbe2","nationalSignificantNumber","nationalSignificantNumberIsModified","prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix","nationalSignificantNumberIndex","prefixBeforeNationalNumber","IDDPrefix","numberWithoutIDD","stripIddPrefix","_extractCountryCallin2","extractCountryCallingCodeFromInternationalNumberWithoutPlusSign","newCallingCode","_ref3","country","extractFormattedPhoneNumber","startsAt","_extractFormattedDigitsAndPlus","extractedNumber","_extractFormattedDigi3","_extractFormattedDigi4"],"mappings":";;;;;;AAAA,SAASA,EAAQC,GAAG;AAAE;AAA2B,SAAOD,IAAwB,OAAO,UAArB,cAA2C,OAAO,OAAO,YAA1B,WAAqC,SAAUC,GAAG;AAAE,WAAO,OAAOA;AAAA,EAAG,IAAI,SAAUA,GAAG;AAAE,WAAOA,KAAmB,OAAO,UAArB,cAA+BA,EAAE,gBAAgB,UAAUA,MAAM,OAAO,YAAY,WAAW,OAAOA;AAAA,EAAG,GAAGD,EAAQC,CAAC;AAAG;AAC7T,SAASC,EAAeC,GAAGC,GAAG;AAAE,SAAOC,EAAgBF,CAAC,KAAKG,EAAsBH,GAAGC,CAAC,KAAKG,EAA4BJ,GAAGC,CAAC,KAAKI,EAAgB;AAAI;AACrJ,SAASA,IAAmB;AAAE,QAAM,IAAI,UAAU;AAAA,mFAA2I;AAAG;AAChM,SAASD,EAA4BJ,GAAGM,GAAG;AAAE,MAAIN,GAAG;AAAE,QAAgB,OAAOA,KAAnB,SAAsB,QAAOO,EAAkBP,GAAGM,CAAC;AAAG,QAAI,IAAI,CAAA,EAAG,SAAS,KAAKN,CAAC,EAAE,MAAM,GAAG,EAAE;AAAG,WAAoB,MAAb,YAAkBA,EAAE,gBAAgB,IAAIA,EAAE,YAAY,OAAiB,MAAV,SAAyB,MAAV,QAAc,MAAM,KAAKA,CAAC,IAAoB,MAAhB,eAAqB,2CAA2C,KAAK,CAAC,IAAIO,EAAkBP,GAAGM,CAAC,IAAI;AAAA,EAAQ;AAAE;AACzX,SAASC,EAAkBP,GAAGM,GAAG;AAAE,GAASA,KAAR,QAAaA,IAAIN,EAAE,YAAYM,IAAIN,EAAE;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AAAA,EACJ,CAAG,CAAC;AACJ,GAAC;AAOD,SAASgC,EAA4B5C,GAAM;AAEzC,MAAI6C,IAAW7C,EAAK,OAAOV,CAAiC;AAC5D,MAAI,EAAAuD,IAAW,IAIf;AAAA,IAAA7C,IAAOA,EAAK,MAAM6C,CAAQ;AAE1B,QAAIvC;AACJ,WAAIN,EAAK,CAAC,MAAM,QACdM,IAAU,IACVN,IAAOA,EAAK,MAAM,CAAU,IAG9BA,IAAOA,EAAK,QAAQR,GAAuC,EAAE,GAEzDc,MACFN,IAAO,MAAMA,IAERA;AAAA;AACT;AAOA,SAAS8C,EAA+B9C,GAAM;AAE5C,MAAI+C,IAAkBH,EAA4B5C,CAAI,KAAK;AAE3D,SAAI+C,EAAgB,CAAC,MAAM,MAClB,CAACA,EAAgB,MAAM,CAAU,GAAG,EAAI,IAE1C,CAACA,CAAe;AACzB;AAOO,SAAS5C,EAA8BH,GAAM;AAClD,MAAIgD,IAAyBF,EAA+B9C,CAAI,GAC9DiD,IAAyBnF,EAAekF,GAAwB,CAAC,GACjE3C,IAAkB4C,EAAuB,CAAC,GAC1C3C,IAAU2C,EAAuB,CAAC;AAIpC,SAAK5D,EAAiD,KAAKgB,CAAe,MACxEA,IAAkB,KAEb,CAACA,GAAiBC,CAAO;AAClC;","x_google_ignoreList":[0]}
|
|
1
|
+
{"version":3,"file":"index201.js","sources":["../../../node_modules/libphonenumber-js/es6/helpers/extension/createExtensionPattern.js"],"sourcesContent":["import { VALID_DIGITS } from '../../constants.js';\n\n// The RFC 3966 format for extensions.\nvar RFC3966_EXTN_PREFIX = ';ext=';\n\n/**\r\n * Helper method for constructing regular expressions for parsing. Creates\r\n * an expression that captures up to max_length digits.\r\n * @return {string} RegEx pattern to capture extension digits.\r\n */\nvar getExtensionDigitsPattern = function getExtensionDigitsPattern(maxLength) {\n return \"([\".concat(VALID_DIGITS, \"]{1,\").concat(maxLength, \"})\");\n};\n\n/**\r\n * Helper initialiser method to create the regular-expression pattern to match\r\n * extensions.\r\n * Copy-pasted from Google's `libphonenumber`:\r\n * https://github.com/google/libphonenumber/blob/55b2646ec9393f4d3d6661b9c82ef9e258e8b829/javascript/i18n/phonenumbers/phonenumberutil.js#L759-L766\r\n * @return {string} RegEx pattern to capture extensions.\r\n */\nexport default function createExtensionPattern(purpose) {\n // We cap the maximum length of an extension based on the ambiguity of the way\n // the extension is prefixed. As per ITU, the officially allowed length for\n // extensions is actually 40, but we don't support this since we haven't seen real\n // examples and this introduces many false interpretations as the extension labels\n // are not standardized.\n /** @type {string} */\n var extLimitAfterExplicitLabel = '20';\n /** @type {string} */\n var extLimitAfterLikelyLabel = '15';\n /** @type {string} */\n var extLimitAfterAmbiguousChar = '9';\n /** @type {string} */\n var extLimitWhenNotSure = '6';\n\n /** @type {string} */\n var possibleSeparatorsBetweenNumberAndExtLabel = \"[ \\xA0\\\\t,]*\";\n // Optional full stop (.) or colon, followed by zero or more spaces/tabs/commas.\n /** @type {string} */\n var possibleCharsAfterExtLabel = \"[:\\\\.\\uFF0E]?[ \\xA0\\\\t,-]*\";\n /** @type {string} */\n var optionalExtnSuffix = \"#?\";\n\n // Here the extension is called out in more explicit way, i.e mentioning it obvious\n // patterns like \"ext.\".\n /** @type {string} */\n var explicitExtLabels = \"(?:e?xt(?:ensi(?:o\\u0301?|\\xF3))?n?|\\uFF45?\\uFF58\\uFF54\\uFF4E?|\\u0434\\u043E\\u0431|anexo)\";\n // One-character symbols that can be used to indicate an extension, and less\n // commonly used or more ambiguous extension labels.\n /** @type {string} */\n var ambiguousExtLabels = \"(?:[x\\uFF58#\\uFF03~\\uFF5E]|int|\\uFF49\\uFF4E\\uFF54)\";\n // When extension is not separated clearly.\n /** @type {string} */\n var ambiguousSeparator = \"[- ]+\";\n // This is the same as possibleSeparatorsBetweenNumberAndExtLabel, but not matching\n // comma as extension label may have it.\n /** @type {string} */\n var possibleSeparatorsNumberExtLabelNoComma = \"[ \\xA0\\\\t]*\";\n // \",,\" is commonly used for auto dialling the extension when connected. First\n // comma is matched through possibleSeparatorsBetweenNumberAndExtLabel, so we do\n // not repeat it here. Semi-colon works in Iphone and Android also to pop up a\n // button with the extension number following.\n /** @type {string} */\n var autoDiallingAndExtLabelsFound = \"(?:,{2}|;)\";\n\n /** @type {string} */\n var rfcExtn = RFC3966_EXTN_PREFIX + getExtensionDigitsPattern(extLimitAfterExplicitLabel);\n /** @type {string} */\n var explicitExtn = possibleSeparatorsBetweenNumberAndExtLabel + explicitExtLabels + possibleCharsAfterExtLabel + getExtensionDigitsPattern(extLimitAfterExplicitLabel) + optionalExtnSuffix;\n /** @type {string} */\n var ambiguousExtn = possibleSeparatorsBetweenNumberAndExtLabel + ambiguousExtLabels + possibleCharsAfterExtLabel + getExtensionDigitsPattern(extLimitAfterAmbiguousChar) + optionalExtnSuffix;\n /** @type {string} */\n var americanStyleExtnWithSuffix = ambiguousSeparator + getExtensionDigitsPattern(extLimitWhenNotSure) + \"#\";\n\n /** @type {string} */\n var autoDiallingExtn = possibleSeparatorsNumberExtLabelNoComma + autoDiallingAndExtLabelsFound + possibleCharsAfterExtLabel + getExtensionDigitsPattern(extLimitAfterLikelyLabel) + optionalExtnSuffix;\n /** @type {string} */\n var onlyCommasExtn = possibleSeparatorsNumberExtLabelNoComma + \"(?:,)+\" + possibleCharsAfterExtLabel + getExtensionDigitsPattern(extLimitAfterAmbiguousChar) + optionalExtnSuffix;\n\n // The first regular expression covers RFC 3966 format, where the extension is added\n // using \";ext=\". The second more generic where extension is mentioned with explicit\n // labels like \"ext:\". In both the above cases we allow more numbers in extension than\n // any other extension labels. The third one captures when single character extension\n // labels or less commonly used labels are used. In such cases we capture fewer\n // extension digits in order to reduce the chance of falsely interpreting two\n // numbers beside each other as a number + extension. The fourth one covers the\n // special case of American numbers where the extension is written with a hash\n // at the end, such as \"- 503#\". The fifth one is exclusively for extension\n // autodialling formats which are used when dialling and in this case we accept longer\n // extensions. The last one is more liberal on the number of commas that acts as\n // extension labels, so we have a strict cap on the number of digits in such extensions.\n return rfcExtn + \"|\" + explicitExtn + \"|\" + ambiguousExtn + \"|\" + americanStyleExtnWithSuffix + \"|\" + autoDiallingExtn + \"|\" + onlyCommasExtn;\n}\n//# sourceMappingURL=createExtensionPattern.js.map"],"names":["RFC3966_EXTN_PREFIX","getExtensionDigitsPattern","maxLength","VALID_DIGITS","createExtensionPattern","purpose","extLimitAfterExplicitLabel","extLimitAfterLikelyLabel","extLimitAfterAmbiguousChar","extLimitWhenNotSure","possibleSeparatorsBetweenNumberAndExtLabel","possibleCharsAfterExtLabel","optionalExtnSuffix","explicitExtLabels","ambiguousExtLabels","ambiguousSeparator","possibleSeparatorsNumberExtLabelNoComma","autoDiallingAndExtLabelsFound","rfcExtn","explicitExtn","ambiguousExtn","americanStyleExtnWithSuffix","autoDiallingExtn","onlyCommasExtn"],"mappings":";AAGA,IAAIA,IAAsB,SAOtBC,IAA4B,SAAmCC,GAAW;AAC5E,SAAO,KAAK,OAAOC,GAAc,MAAM,EAAE,OAAOD,GAAW,IAAI;AACjE;AASe,SAASE,EAAuBC,GAAS;AAOtD,MAAIC,IAA6B,MAE7BC,IAA2B,MAE3BC,IAA6B,KAE7BC,IAAsB,KAGtBC,IAA6C,aAG7CC,IAA6B,sBAE7BC,IAAqB,MAKrBC,IAAoB,iDAIpBC,IAAqB,wBAGrBC,IAAqB,SAIrBC,IAA0C,YAM1CC,IAAgC,cAGhCC,IAAUlB,IAAsBC,EAA0BK,CAA0B,GAEpFa,IAAeT,IAA6CG,IAAoBF,IAA6BV,EAA0BK,CAA0B,IAAIM,GAErKQ,IAAgBV,IAA6CI,IAAqBH,IAA6BV,EAA0BO,CAA0B,IAAII,GAEvKS,IAA8BN,IAAqBd,EAA0BQ,CAAmB,IAAI,KAGpGa,IAAmBN,IAA0CC,IAAgCN,IAA6BV,EAA0BM,CAAwB,IAAIK,GAEhLW,IAAiBP,IAA0C,WAAWL,IAA6BV,EAA0BO,CAA0B,IAAII;AAc/J,SAAOM,IAAU,MAAMC,IAAe,MAAMC,IAAgB,MAAMC,IAA8B,MAAMC,IAAmB,MAAMC;AACjI;","x_google_ignoreList":[0]}
|
package/dist/index202.js
CHANGED
|
@@ -1,13 +1,23 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
import c, { getCountryCallingCode as b } from "./index96.js";
|
|
2
|
+
import g from "./index197.js";
|
|
3
|
+
import C from "./index198.js";
|
|
4
|
+
import h from "./index180.js";
|
|
5
|
+
function P(i, r, l, N, n) {
|
|
6
|
+
var e = r || l ? b(r || l, n) : N;
|
|
7
|
+
if (i.indexOf(e) === 0) {
|
|
8
|
+
n = new c(n), n.selectNumberingPlan(r || l, e);
|
|
9
|
+
var o = i.slice(e.length), f = C(o, r, n), m = f.nationalNumber, u = C(i, r, n), t = u.nationalNumber;
|
|
10
|
+
if (!g(t, n.nationalNumberPattern()) && g(m, n.nationalNumberPattern()) || h(t, r, n) === "TOO_LONG")
|
|
11
|
+
return {
|
|
12
|
+
countryCallingCode: e,
|
|
13
|
+
number: o
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
return {
|
|
17
|
+
number: i
|
|
18
|
+
};
|
|
9
19
|
}
|
|
10
20
|
export {
|
|
11
|
-
|
|
21
|
+
P as default
|
|
12
22
|
};
|
|
13
23
|
//# sourceMappingURL=index202.js.map
|
package/dist/index202.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index202.js","sources":["../../../node_modules/libphonenumber-js/es6/helpers/
|
|
1
|
+
{"version":3,"file":"index202.js","sources":["../../../node_modules/libphonenumber-js/es6/helpers/extractCountryCallingCodeFromInternationalNumberWithoutPlusSign.js"],"sourcesContent":["import Metadata from '../metadata.js';\nimport matchesEntirely from './matchesEntirely.js';\nimport extractNationalNumber from './extractNationalNumber.js';\nimport checkNumberLength from './checkNumberLength.js';\nimport getCountryCallingCode from '../getCountryCallingCode.js';\n\n/**\r\n * Sometimes some people incorrectly input international phone numbers\r\n * without the leading `+`. This function corrects such input.\r\n * @param {string} number — Phone number digits.\r\n * @param {string} [country] — Exact country of the phone number.\r\n * @param {string} [defaultCountry]\r\n * @param {string} [defaultCallingCode]\r\n * @param {object} metadata\r\n * @return {object} `{ countryCallingCode: string?, number: string }`.\r\n */\nexport default function extractCountryCallingCodeFromInternationalNumberWithoutPlusSign(number, country, defaultCountry, defaultCallingCode, metadata) {\n var countryCallingCode = country || defaultCountry ? getCountryCallingCode(country || defaultCountry, metadata) : defaultCallingCode;\n if (number.indexOf(countryCallingCode) === 0) {\n metadata = new Metadata(metadata);\n metadata.selectNumberingPlan(country || defaultCountry, countryCallingCode);\n var possibleShorterNumber = number.slice(countryCallingCode.length);\n var _extractNationalNumbe = extractNationalNumber(possibleShorterNumber, country, metadata),\n possibleShorterNationalNumber = _extractNationalNumbe.nationalNumber;\n var _extractNationalNumbe2 = extractNationalNumber(number, country, metadata),\n nationalNumber = _extractNationalNumbe2.nationalNumber;\n\n // If the number was not valid before but is valid now,\n // or if it was too long before, we consider the number\n // with the country calling code stripped to be a better result\n // and keep that instead.\n // For example, in Germany (+49), `49` is a valid area code,\n // so if a number starts with `49`, it could be both a valid\n // national German number or an international number without\n // a leading `+`.\n if (!matchesEntirely(nationalNumber, metadata.nationalNumberPattern()) && matchesEntirely(possibleShorterNationalNumber, metadata.nationalNumberPattern()) || checkNumberLength(nationalNumber, country, metadata) === 'TOO_LONG') {\n return {\n countryCallingCode: countryCallingCode,\n number: possibleShorterNumber\n };\n }\n }\n return {\n number: number\n };\n}\n//# sourceMappingURL=extractCountryCallingCodeFromInternationalNumberWithoutPlusSign.js.map"],"names":["extractCountryCallingCodeFromInternationalNumberWithoutPlusSign","number","country","defaultCountry","defaultCallingCode","metadata","countryCallingCode","getCountryCallingCode","Metadata","possibleShorterNumber","_extractNationalNumbe","extractNationalNumber","possibleShorterNationalNumber","_extractNationalNumbe2","nationalNumber","matchesEntirely","checkNumberLength"],"mappings":";;;;AAgBe,SAASA,EAAgEC,GAAQC,GAASC,GAAgBC,GAAoBC,GAAU;AACrJ,MAAIC,IAAqBJ,KAAWC,IAAiBI,EAAsBL,KAAWC,GAAgBE,CAAQ,IAAID;AAClH,MAAIH,EAAO,QAAQK,CAAkB,MAAM,GAAG;AAC5C,IAAAD,IAAW,IAAIG,EAASH,CAAQ,GAChCA,EAAS,oBAAoBH,KAAWC,GAAgBG,CAAkB;AAC1E,QAAIG,IAAwBR,EAAO,MAAMK,EAAmB,MAAM,GAC9DI,IAAwBC,EAAsBF,GAAuBP,GAASG,CAAQ,GACxFO,IAAgCF,EAAsB,gBACpDG,IAAyBF,EAAsBV,GAAQC,GAASG,CAAQ,GAC1ES,IAAiBD,EAAuB;AAU1C,QAAI,CAACE,EAAgBD,GAAgBT,EAAS,sBAAqB,CAAE,KAAKU,EAAgBH,GAA+BP,EAAS,sBAAqB,CAAE,KAAKW,EAAkBF,GAAgBZ,GAASG,CAAQ,MAAM;AACrN,aAAO;AAAA,QACL,oBAAoBC;AAAA,QACpB,QAAQG;AAAA,MAChB;AAAA,EAEE;AACA,SAAO;AAAA,IACL,QAAQR;AAAA,EACZ;AACA;","x_google_ignoreList":[0]}
|
package/dist/index203.js
CHANGED
|
@@ -1,46 +1,32 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
(r == null || r > e.length) && (r = e.length);
|
|
25
|
-
for (var t = 0, a = Array(r); t < r; t++) a[t] = e[t];
|
|
26
|
-
return a;
|
|
27
|
-
}
|
|
28
|
-
function y(e, r) {
|
|
29
|
-
var t = r.countries, a = r.metadata;
|
|
30
|
-
a = new l(a);
|
|
31
|
-
for (var u = d(t), o; !(o = u()).done; ) {
|
|
32
|
-
var n = o.value;
|
|
33
|
-
if (a.selectNumberingPlan(n), a.leadingDigits()) {
|
|
34
|
-
if (e && e.search(a.leadingDigits()) === 0)
|
|
35
|
-
return n;
|
|
36
|
-
} else if (f({
|
|
37
|
-
phone: e,
|
|
38
|
-
country: n
|
|
39
|
-
}, void 0, a.metadata))
|
|
40
|
-
return n;
|
|
1
|
+
function F(l, i) {
|
|
2
|
+
if (l && i.numberingPlan.nationalPrefixForParsing()) {
|
|
3
|
+
var g = new RegExp("^(?:" + i.numberingPlan.nationalPrefixForParsing() + ")"), n = g.exec(l);
|
|
4
|
+
if (n) {
|
|
5
|
+
var r, P, v = n.length - 1, e = v > 0 && n[v];
|
|
6
|
+
if (i.nationalPrefixTransformRule() && e)
|
|
7
|
+
r = l.replace(g, i.nationalPrefixTransformRule()), v > 1 && (P = n[1]);
|
|
8
|
+
else {
|
|
9
|
+
var o = n[0];
|
|
10
|
+
r = l.slice(o.length), e && (P = n[1]);
|
|
11
|
+
}
|
|
12
|
+
var f;
|
|
13
|
+
if (e) {
|
|
14
|
+
var s = l.indexOf(n[1]), a = l.slice(0, s);
|
|
15
|
+
a === i.numberingPlan.nationalPrefix() && (f = i.numberingPlan.nationalPrefix());
|
|
16
|
+
} else
|
|
17
|
+
f = n[0];
|
|
18
|
+
return {
|
|
19
|
+
nationalNumber: r,
|
|
20
|
+
nationalPrefix: f,
|
|
21
|
+
carrierCode: P
|
|
22
|
+
};
|
|
23
|
+
}
|
|
41
24
|
}
|
|
25
|
+
return {
|
|
26
|
+
nationalNumber: l
|
|
27
|
+
};
|
|
42
28
|
}
|
|
43
29
|
export {
|
|
44
|
-
|
|
30
|
+
F as default
|
|
45
31
|
};
|
|
46
32
|
//# sourceMappingURL=index203.js.map
|
package/dist/index203.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index203.js","sources":["../../../node_modules/libphonenumber-js/es6/helpers/
|
|
1
|
+
{"version":3,"file":"index203.js","sources":["../../../node_modules/libphonenumber-js/es6/helpers/extractNationalNumberFromPossiblyIncompleteNumber.js"],"sourcesContent":["/**\r\n * Strips any national prefix (such as 0, 1) present in a\r\n * (possibly incomplete) number provided.\r\n * \"Carrier codes\" are only used in Colombia and Brazil,\r\n * and only when dialing within those countries from a mobile phone to a fixed line number.\r\n * Sometimes it won't actually strip national prefix\r\n * and will instead prepend some digits to the `number`:\r\n * for example, when number `2345678` is passed with `VI` country selected,\r\n * it will return `{ number: \"3402345678\" }`, because `340` area code is prepended.\r\n * @param {string} number — National number digits.\r\n * @param {object} metadata — Metadata with country selected.\r\n * @return {object} `{ nationalNumber: string, nationalPrefix: string? carrierCode: string? }`. Even if a national prefix was extracted, it's not necessarily present in the returned object, so don't rely on its presence in the returned object in order to find out whether a national prefix has been extracted or not.\r\n */\nexport default function extractNationalNumberFromPossiblyIncompleteNumber(number, metadata) {\n if (number && metadata.numberingPlan.nationalPrefixForParsing()) {\n // See METADATA.md for the description of\n // `national_prefix_for_parsing` and `national_prefix_transform_rule`.\n // Attempt to parse the first digits as a national prefix.\n var prefixPattern = new RegExp('^(?:' + metadata.numberingPlan.nationalPrefixForParsing() + ')');\n var prefixMatch = prefixPattern.exec(number);\n if (prefixMatch) {\n var nationalNumber;\n var carrierCode;\n // https://gitlab.com/catamphetamine/libphonenumber-js/-/blob/master/METADATA.md#national_prefix_for_parsing--national_prefix_transform_rule\n // If a `national_prefix_for_parsing` has any \"capturing groups\"\n // then it means that the national (significant) number is equal to\n // those \"capturing groups\" transformed via `national_prefix_transform_rule`,\n // and nothing could be said about the actual national prefix:\n // what is it and was it even there.\n // If a `national_prefix_for_parsing` doesn't have any \"capturing groups\",\n // then everything it matches is a national prefix.\n // To determine whether `national_prefix_for_parsing` matched any\n // \"capturing groups\", the value of the result of calling `.exec()`\n // is looked at, and if it has non-undefined values where there're\n // \"capturing groups\" in the regular expression, then it means\n // that \"capturing groups\" have been matched.\n // It's not possible to tell whether there'll be any \"capturing gropus\"\n // before the matching process, because a `national_prefix_for_parsing`\n // could exhibit both behaviors.\n var capturedGroupsCount = prefixMatch.length - 1;\n var hasCapturedGroups = capturedGroupsCount > 0 && prefixMatch[capturedGroupsCount];\n if (metadata.nationalPrefixTransformRule() && hasCapturedGroups) {\n nationalNumber = number.replace(prefixPattern, metadata.nationalPrefixTransformRule());\n // If there's more than one captured group,\n // then carrier code is the second one.\n if (capturedGroupsCount > 1) {\n carrierCode = prefixMatch[1];\n }\n }\n // If there're no \"capturing groups\",\n // or if there're \"capturing groups\" but no\n // `national_prefix_transform_rule`,\n // then just strip the national prefix from the number,\n // and possibly a carrier code.\n // Seems like there could be more.\n else {\n // `prefixBeforeNationalNumber` is the whole substring matched by\n // the `national_prefix_for_parsing` regular expression.\n // There seem to be no guarantees that it's just a national prefix.\n // For example, if there's a carrier code, it's gonna be a\n // part of `prefixBeforeNationalNumber` too.\n var prefixBeforeNationalNumber = prefixMatch[0];\n nationalNumber = number.slice(prefixBeforeNationalNumber.length);\n // If there's at least one captured group,\n // then carrier code is the first one.\n if (hasCapturedGroups) {\n carrierCode = prefixMatch[1];\n }\n }\n // Tries to guess whether a national prefix was present in the input.\n // This is not something copy-pasted from Google's library:\n // they don't seem to have an equivalent for that.\n // So this isn't an \"officially approved\" way of doing something like that.\n // But since there seems no other existing method, this library uses it.\n var nationalPrefix;\n if (hasCapturedGroups) {\n var possiblePositionOfTheFirstCapturedGroup = number.indexOf(prefixMatch[1]);\n var possibleNationalPrefix = number.slice(0, possiblePositionOfTheFirstCapturedGroup);\n // Example: an Argentinian (AR) phone number `0111523456789`.\n // `prefixMatch[0]` is `01115`, and `$1` is `11`,\n // and the rest of the phone number is `23456789`.\n // The national number is transformed via `9$1` to `91123456789`.\n // National prefix `0` is detected being present at the start.\n // if (possibleNationalPrefix.indexOf(metadata.numberingPlan.nationalPrefix()) === 0) {\n if (possibleNationalPrefix === metadata.numberingPlan.nationalPrefix()) {\n nationalPrefix = metadata.numberingPlan.nationalPrefix();\n }\n } else {\n nationalPrefix = prefixMatch[0];\n }\n return {\n nationalNumber: nationalNumber,\n nationalPrefix: nationalPrefix,\n carrierCode: carrierCode\n };\n }\n }\n return {\n nationalNumber: number\n };\n}\n//# sourceMappingURL=extractNationalNumberFromPossiblyIncompleteNumber.js.map"],"names":["extractNationalNumberFromPossiblyIncompleteNumber","number","metadata","prefixPattern","prefixMatch","nationalNumber","carrierCode","capturedGroupsCount","hasCapturedGroups","prefixBeforeNationalNumber","nationalPrefix","possiblePositionOfTheFirstCapturedGroup","possibleNationalPrefix"],"mappings":"AAae,SAASA,EAAkDC,GAAQC,GAAU;AAC1F,MAAID,KAAUC,EAAS,cAAc,yBAAwB,GAAI;AAI/D,QAAIC,IAAgB,IAAI,OAAO,SAASD,EAAS,cAAc,yBAAwB,IAAK,GAAG,GAC3FE,IAAcD,EAAc,KAAKF,CAAM;AAC3C,QAAIG,GAAa;AACf,UAAIC,GACAC,GAiBAC,IAAsBH,EAAY,SAAS,GAC3CI,IAAoBD,IAAsB,KAAKH,EAAYG,CAAmB;AAClF,UAAIL,EAAS,4BAA2B,KAAMM;AAC5C,QAAAH,IAAiBJ,EAAO,QAAQE,GAAeD,EAAS,4BAA2B,CAAE,GAGjFK,IAAsB,MACxBD,IAAcF,EAAY,CAAC;AAAA,WAS1B;AAMH,YAAIK,IAA6BL,EAAY,CAAC;AAC9C,QAAAC,IAAiBJ,EAAO,MAAMQ,EAA2B,MAAM,GAG3DD,MACFF,IAAcF,EAAY,CAAC;AAAA,MAE/B;AAMA,UAAIM;AACJ,UAAIF,GAAmB;AACrB,YAAIG,IAA0CV,EAAO,QAAQG,EAAY,CAAC,CAAC,GACvEQ,IAAyBX,EAAO,MAAM,GAAGU,CAAuC;AAOpF,QAAIC,MAA2BV,EAAS,cAAc,eAAc,MAClEQ,IAAiBR,EAAS,cAAc,eAAc;AAAA,MAE1D;AACE,QAAAQ,IAAiBN,EAAY,CAAC;AAEhC,aAAO;AAAA,QACL,gBAAgBC;AAAA,QAChB,gBAAgBK;AAAA,QAChB,aAAaJ;AAAA,MACrB;AAAA,IACI;AAAA,EACF;AACA,SAAO;AAAA,IACL,gBAAgBL;AAAA,EACpB;AACA;","x_google_ignoreList":[0]}
|
package/dist/index204.js
CHANGED
|
@@ -1,8 +1,20 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import I from "./index96.js";
|
|
2
|
+
import { VALID_DIGITS as l } from "./index92.js";
|
|
3
|
+
var c = new RegExp("([" + l + "])");
|
|
4
|
+
function D(t, r, f, n) {
|
|
5
|
+
if (r) {
|
|
6
|
+
var a = new I(n);
|
|
7
|
+
a.selectNumberingPlan(r, f);
|
|
8
|
+
var i = new RegExp(a.IDDPrefix());
|
|
9
|
+
if (t.search(i) === 0) {
|
|
10
|
+
t = t.slice(t.match(i)[0].length);
|
|
11
|
+
var e = t.match(c);
|
|
12
|
+
if (!(e && e[1] != null && e[1].length > 0 && e[1] === "0"))
|
|
13
|
+
return t;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
4
16
|
}
|
|
5
17
|
export {
|
|
6
|
-
|
|
18
|
+
D as default
|
|
7
19
|
};
|
|
8
20
|
//# sourceMappingURL=index204.js.map
|
package/dist/index204.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index204.js","sources":["../../../node_modules/libphonenumber-js/es6/helpers/
|
|
1
|
+
{"version":3,"file":"index204.js","sources":["../../../node_modules/libphonenumber-js/es6/helpers/stripIddPrefix.js"],"sourcesContent":["import Metadata from '../metadata.js';\nimport { VALID_DIGITS } from '../constants.js';\nvar CAPTURING_DIGIT_PATTERN = new RegExp('([' + VALID_DIGITS + '])');\nexport default function stripIddPrefix(number, country, callingCode, metadata) {\n if (!country) {\n return;\n }\n // Check if the number is IDD-prefixed.\n var countryMetadata = new Metadata(metadata);\n countryMetadata.selectNumberingPlan(country, callingCode);\n var IDDPrefixPattern = new RegExp(countryMetadata.IDDPrefix());\n if (number.search(IDDPrefixPattern) !== 0) {\n return;\n }\n // Strip IDD prefix.\n number = number.slice(number.match(IDDPrefixPattern)[0].length);\n // If there're any digits after an IDD prefix,\n // then those digits are a country calling code.\n // Since no country code starts with a `0`,\n // the code below validates that the next digit (if present) is not `0`.\n var matchedGroups = number.match(CAPTURING_DIGIT_PATTERN);\n if (matchedGroups && matchedGroups[1] != null && matchedGroups[1].length > 0) {\n if (matchedGroups[1] === '0') {\n return;\n }\n }\n return number;\n}\n//# sourceMappingURL=stripIddPrefix.js.map"],"names":["CAPTURING_DIGIT_PATTERN","VALID_DIGITS","stripIddPrefix","number","country","callingCode","metadata","countryMetadata","Metadata","IDDPrefixPattern","matchedGroups"],"mappings":";;AAEA,IAAIA,IAA0B,IAAI,OAAO,OAAOC,IAAe,IAAI;AACpD,SAASC,EAAeC,GAAQC,GAASC,GAAaC,GAAU;AAC7E,MAAKF,GAIL;AAAA,QAAIG,IAAkB,IAAIC,EAASF,CAAQ;AAC3C,IAAAC,EAAgB,oBAAoBH,GAASC,CAAW;AACxD,QAAII,IAAmB,IAAI,OAAOF,EAAgB,UAAS,CAAE;AAC7D,QAAIJ,EAAO,OAAOM,CAAgB,MAAM,GAIxC;AAAA,MAAAN,IAASA,EAAO,MAAMA,EAAO,MAAMM,CAAgB,EAAE,CAAC,EAAE,MAAM;AAK9D,UAAIC,IAAgBP,EAAO,MAAMH,CAAuB;AACxD,UAAI,EAAAU,KAAiBA,EAAc,CAAC,KAAK,QAAQA,EAAc,CAAC,EAAE,SAAS,KACrEA,EAAc,CAAC,MAAM;AAI3B,eAAOP;AAAA;AAAA;AACT;","x_google_ignoreList":[0]}
|