@rpcbase/ui 0.245.0 → 0.247.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 +2 -2
- package/dist/index105.js +36 -36
- package/dist/index106.js +1 -1
- package/dist/index11.js +2 -2
- package/dist/index117.js +6 -6
- package/dist/index12.js +3 -3
- package/dist/index120.js +10 -10
- package/dist/index122.js +2 -2
- package/dist/index123.js +3 -3
- package/dist/index124.js +1 -1
- package/dist/index126.js +2 -2
- package/dist/index128.js +2 -2
- package/dist/index13.js +2 -2
- package/dist/index14.js +2 -2
- package/dist/index149.js +5 -14
- package/dist/index149.js.map +1 -1
- package/dist/index15.js +2 -2
- package/dist/index150.js +63 -63
- package/dist/index150.js.map +1 -1
- package/dist/index151.js +2 -38
- package/dist/index151.js.map +1 -1
- package/dist/index152.js +385 -13
- package/dist/index152.js.map +1 -1
- package/dist/index153.js +261 -23
- package/dist/index153.js.map +1 -1
- package/dist/index154.js +58 -109
- package/dist/index154.js.map +1 -1
- package/dist/index155.js +47 -13
- package/dist/index155.js.map +1 -1
- package/dist/index156.js +169 -4
- package/dist/index156.js.map +1 -1
- package/dist/index157.js +110 -4
- package/dist/index157.js.map +1 -1
- package/dist/index158.js +25 -5
- package/dist/index158.js.map +1 -1
- package/dist/index159.js +8 -12
- package/dist/index159.js.map +1 -1
- package/dist/index16.js +8 -8
- package/dist/index160.js +4 -19
- package/dist/index160.js.map +1 -1
- package/dist/index161.js +6 -11
- package/dist/index161.js.map +1 -1
- package/dist/index162.js +4 -176
- package/dist/index162.js.map +1 -1
- package/dist/index163.js +476 -268
- package/dist/index163.js.map +1 -1
- package/dist/index164.js +189 -4
- package/dist/index164.js.map +1 -1
- package/dist/index165.js +14 -28
- package/dist/index165.js.map +1 -1
- package/dist/index166.js +105 -124
- package/dist/index166.js.map +1 -1
- package/dist/index167.js +262 -63
- package/dist/index167.js.map +1 -1
- package/dist/index168.js +6 -8
- package/dist/index168.js.map +1 -1
- package/dist/index169.js +40 -15
- package/dist/index169.js.map +1 -1
- package/dist/index17.js +1 -1
- package/dist/index170.js +4 -30
- package/dist/index170.js.map +1 -1
- package/dist/index171.js +58 -69
- package/dist/index171.js.map +1 -1
- package/dist/index172.js +8 -5
- package/dist/index172.js.map +1 -1
- package/dist/index173.js +80 -61
- package/dist/index173.js.map +1 -1
- package/dist/index174.js +20 -2
- package/dist/index174.js.map +1 -1
- package/dist/index175.js +14 -383
- package/dist/index175.js.map +1 -1
- package/dist/index176.js +4 -260
- package/dist/index176.js.map +1 -1
- package/dist/index177.js +4 -59
- package/dist/index177.js.map +1 -1
- package/dist/index178.js +6 -46
- package/dist/index178.js.map +1 -1
- package/dist/index179.js +4 -169
- package/dist/index179.js.map +1 -1
- package/dist/index18.js +7 -7
- package/dist/index180.js +6 -109
- package/dist/index180.js.map +1 -1
- package/dist/index181.js +16 -24
- package/dist/index181.js.map +1 -1
- package/dist/index182.js +5 -8
- package/dist/index182.js.map +1 -1
- package/dist/index183.js +4 -4
- package/dist/index183.js.map +1 -1
- package/dist/index184.js +12 -5
- package/dist/index184.js.map +1 -1
- package/dist/index185.js +9 -4
- package/dist/index185.js.map +1 -1
- package/dist/index186.js +13 -487
- package/dist/index186.js.map +1 -1
- package/dist/index187.js +13 -189
- package/dist/index187.js.map +1 -1
- package/dist/index188.js +4 -13
- package/dist/index188.js.map +1 -1
- package/dist/index189.js +5 -107
- package/dist/index189.js.map +1 -1
- package/dist/index19.js +16 -16
- package/dist/index190.js +6 -262
- package/dist/index190.js.map +1 -1
- package/dist/index191.js +5 -6
- package/dist/index191.js.map +1 -1
- package/dist/index192.js +53 -39
- package/dist/index192.js.map +1 -1
- package/dist/index193.js +8 -4
- package/dist/index193.js.map +1 -1
- package/dist/index194.js +4 -58
- package/dist/index194.js.map +1 -1
- package/dist/index195.js +4 -8
- package/dist/index195.js.map +1 -1
- package/dist/index196.js +8 -87
- package/dist/index196.js.map +1 -1
- package/dist/index197.js +4 -19
- package/dist/index197.js.map +1 -1
- package/dist/index198.js +4 -16
- package/dist/index198.js.map +1 -1
- package/dist/index199.js +3 -5
- package/dist/index199.js.map +1 -1
- package/dist/index200.js +10 -5
- package/dist/index200.js.map +1 -1
- package/dist/index201.js +9 -6
- package/dist/index201.js.map +1 -1
- package/dist/index202.js +9 -4
- package/dist/index202.js.map +1 -1
- package/dist/index203.js +10 -6
- package/dist/index203.js.map +1 -1
- package/dist/index204.js +10 -16
- package/dist/index204.js.map +1 -1
- package/dist/index205.js +9 -4
- package/dist/index205.js.map +1 -1
- package/dist/index206.js +6 -4
- package/dist/index206.js.map +1 -1
- package/dist/index207.js +5 -12
- package/dist/index207.js.map +1 -1
- package/dist/index208.js +4 -9
- package/dist/index208.js.map +1 -1
- package/dist/index209.js +5 -13
- package/dist/index209.js.map +1 -1
- package/dist/index21.js +1 -1
- package/dist/index210.js +6 -13
- package/dist/index210.js.map +1 -1
- package/dist/index211.js +5 -4
- package/dist/index211.js.map +1 -1
- package/dist/index212.js +16 -5
- package/dist/index212.js.map +1 -1
- package/dist/index213.js +7 -6
- package/dist/index213.js.map +1 -1
- package/dist/index214.js +10 -5
- package/dist/index214.js.map +1 -1
- package/dist/index215.js +10 -54
- package/dist/index215.js.map +1 -1
- package/dist/index216.js +21 -8
- package/dist/index216.js.map +1 -1
- package/dist/index217.js +8 -4
- package/dist/index217.js.map +1 -1
- package/dist/index218.js +9 -4
- package/dist/index218.js.map +1 -1
- package/dist/index219.js +9 -8
- package/dist/index219.js.map +1 -1
- package/dist/index22.js +2 -2
- package/dist/index220.js +4 -4
- package/dist/index220.js.map +1 -1
- package/dist/index221.js +5 -4
- package/dist/index221.js.map +1 -1
- package/dist/index222.js +16 -3
- package/dist/index222.js.map +1 -1
- package/dist/index223.js +9 -10
- package/dist/index223.js.map +1 -1
- package/dist/index224.js +18 -9
- package/dist/index224.js.map +1 -1
- package/dist/index225.js +20 -9
- package/dist/index225.js.map +1 -1
- package/dist/index226.js +12 -10
- package/dist/index226.js.map +1 -1
- package/dist/index227.js +29 -10
- package/dist/index227.js.map +1 -1
- package/dist/index228.js +12 -9
- package/dist/index228.js.map +1 -1
- package/dist/index229.js +25 -6
- package/dist/index229.js.map +1 -1
- package/dist/index23.js +1 -1
- package/dist/index230.js +5 -5
- package/dist/index230.js.map +1 -1
- package/dist/index231.js +14 -4
- package/dist/index231.js.map +1 -1
- package/dist/index232.js +68 -5
- package/dist/index232.js.map +1 -1
- package/dist/index233.js +38 -7
- package/dist/index233.js.map +1 -1
- package/dist/index234.js +14 -6
- package/dist/index234.js.map +1 -1
- package/dist/index235.js +23 -16
- package/dist/index235.js.map +1 -1
- package/dist/index236.js +111 -7
- package/dist/index236.js.map +1 -1
- package/dist/index237.js +13 -11
- package/dist/index237.js.map +1 -1
- package/dist/index238.js +4 -10
- package/dist/index238.js.map +1 -1
- package/dist/index239.js +4 -22
- package/dist/index239.js.map +1 -1
- package/dist/index24.js +1 -1
- package/dist/index240.js +5 -9
- package/dist/index240.js.map +1 -1
- package/dist/index241.js +11 -9
- package/dist/index241.js.map +1 -1
- package/dist/index242.js +19 -9
- package/dist/index242.js.map +1 -1
- package/dist/index243.js +11 -5
- package/dist/index243.js.map +1 -1
- package/dist/index244.js +176 -5
- package/dist/index244.js.map +1 -1
- package/dist/index245.js +278 -15
- package/dist/index245.js.map +1 -1
- package/dist/index246.js +4 -9
- package/dist/index246.js.map +1 -1
- package/dist/index247.js +28 -19
- package/dist/index247.js.map +1 -1
- package/dist/index248.js +124 -18
- package/dist/index248.js.map +1 -1
- package/dist/index249.js +63 -12
- package/dist/index249.js.map +1 -1
- package/dist/index25.js +1 -1
- package/dist/index250.js +8 -29
- package/dist/index250.js.map +1 -1
- package/dist/index251.js +15 -12
- package/dist/index251.js.map +1 -1
- package/dist/index252.js +30 -25
- package/dist/index252.js.map +1 -1
- package/dist/index253.js +69 -5
- package/dist/index253.js.map +1 -1
- package/dist/index254.js +146 -58
- package/dist/index254.js.map +1 -1
- package/dist/index255.js +32 -8
- package/dist/index255.js.map +1 -1
- package/dist/index256.js +11 -11
- package/dist/index256.js.map +1 -1
- package/dist/index257.js +48 -7
- package/dist/index257.js.map +1 -1
- package/dist/index258.js +9 -5
- package/dist/index258.js.map +1 -1
- package/dist/index259.js +11 -13
- package/dist/index259.js.map +1 -1
- package/dist/index260.js +43 -3
- package/dist/index260.js.map +1 -1
- package/dist/index261.js +97 -3
- package/dist/index261.js.map +1 -1
- package/dist/index262.js +74 -87
- package/dist/index262.js.map +1 -1
- package/dist/index263.js +104 -16
- package/dist/index263.js.map +1 -1
- package/dist/index264.js +50 -27
- package/dist/index264.js.map +1 -1
- package/dist/index265.js +11 -51
- package/dist/index265.js.map +1 -1
- package/dist/index266.js +4 -5
- package/dist/index266.js.map +1 -1
- package/dist/index267.js +37 -5
- package/dist/index267.js.map +1 -1
- package/dist/index268.js +8 -61
- package/dist/index268.js.map +1 -1
- package/dist/index269.js +3 -66
- package/dist/index269.js.map +1 -1
- package/dist/index270.js +9 -133
- package/dist/index270.js.map +1 -1
- package/dist/index271.js +134 -7
- package/dist/index271.js.map +1 -1
- package/dist/index272.js +18 -5
- package/dist/index272.js.map +1 -1
- package/dist/index273.js +16 -4
- package/dist/index273.js.map +1 -1
- package/dist/index274.js +36 -11
- package/dist/index274.js.map +1 -1
- package/dist/index275.js +20 -21
- package/dist/index275.js.map +1 -1
- package/dist/index276.js +8 -16
- package/dist/index276.js.map +1 -1
- package/dist/index277.js +24 -11
- package/dist/index277.js.map +1 -1
- package/dist/index278.js +29 -8
- package/dist/index278.js.map +1 -1
- package/dist/index279.js +14 -142
- package/dist/index279.js.map +1 -1
- package/dist/index28.js +1 -1
- package/dist/index280.js +19 -79
- package/dist/index280.js.map +1 -1
- package/dist/index281.js +65 -60
- package/dist/index281.js.map +1 -1
- package/dist/index282.js +7 -15
- package/dist/index282.js.map +1 -1
- package/dist/index283.js +6 -20
- package/dist/index283.js.map +1 -1
- package/dist/index284.js +11 -6
- package/dist/index284.js.map +1 -1
- package/dist/index285.js +3 -11
- package/dist/index285.js.map +1 -1
- package/dist/index286.js +50 -3
- package/dist/index286.js.map +1 -1
- package/dist/index287.js +4 -51
- package/dist/index287.js.map +1 -1
- package/dist/index288.js +25 -12
- package/dist/index288.js.map +1 -1
- package/dist/index289.js +14 -19
- package/dist/index289.js.map +1 -1
- package/dist/index29.js +56 -3
- package/dist/index29.js.map +1 -1
- package/dist/index290.js +5 -53
- package/dist/index290.js.map +1 -1
- package/dist/index291.js +21 -20
- package/dist/index291.js.map +1 -1
- package/dist/index292.js +53 -41
- package/dist/index292.js.map +1 -1
- package/dist/index293.js +19 -38
- package/dist/index293.js.map +1 -1
- package/dist/index294.js +42 -46
- package/dist/index294.js.map +1 -1
- package/dist/index295.js +38 -19
- package/dist/index295.js.map +1 -1
- package/dist/index296.js +46 -71
- package/dist/index296.js.map +1 -1
- package/dist/index297.js +20 -17
- package/dist/index297.js.map +1 -1
- package/dist/index298.js +70 -3
- package/dist/index298.js.map +1 -1
- package/dist/index299.js +16 -12
- package/dist/index299.js.map +1 -1
- package/dist/index3.js +2 -2
- package/dist/index30.js +3 -242
- package/dist/index30.js.map +1 -1
- package/dist/index300.js +3 -18
- package/dist/index300.js.map +1 -1
- package/dist/index301.js +11 -36
- package/dist/index301.js.map +1 -1
- package/dist/index302.js +12 -238
- package/dist/index302.js.map +1 -1
- package/dist/index303.js +15 -249
- package/dist/index303.js.map +1 -1
- package/dist/index304.js +35 -67
- package/dist/index304.js.map +1 -1
- package/dist/index305.js +233 -77
- package/dist/index305.js.map +1 -1
- package/dist/index306.js +252 -3
- package/dist/index306.js.map +1 -1
- package/dist/index307.js +68 -29
- package/dist/index307.js.map +1 -1
- package/dist/index308.js +99 -16
- package/dist/index308.js.map +1 -1
- package/dist/index309.js +82 -33
- package/dist/index309.js.map +1 -1
- package/dist/index31.js +239 -21
- package/dist/index31.js.map +1 -1
- package/dist/index310.js +3 -17
- package/dist/index310.js.map +1 -1
- package/dist/index311.js +29 -3
- package/dist/index311.js.map +1 -1
- package/dist/index312.js +16 -26
- package/dist/index312.js.map +1 -1
- package/dist/index313.js +34 -28
- package/dist/index313.js.map +1 -1
- package/dist/index314.js +18 -4
- package/dist/index314.js.map +1 -1
- package/dist/index315.js +3 -78
- package/dist/index315.js.map +1 -1
- package/dist/index316.js +23 -269
- package/dist/index316.js.map +1 -1
- package/dist/index317.js +27 -10
- package/dist/index317.js.map +1 -1
- package/dist/index318.js +4 -11
- package/dist/index318.js.map +1 -1
- package/dist/index319.js +77 -24
- package/dist/index319.js.map +1 -1
- package/dist/index32.js +23 -4
- package/dist/index32.js.map +1 -1
- package/dist/index320.js +271 -15
- package/dist/index320.js.map +1 -1
- package/dist/index321.js +11 -125
- package/dist/index321.js.map +1 -1
- package/dist/index322.js +10 -5
- package/dist/index322.js.map +1 -1
- package/dist/index323.js +24 -64
- package/dist/index323.js.map +1 -1
- package/dist/index324.js +17 -14
- package/dist/index324.js.map +1 -1
- package/dist/index325.js +125 -7
- package/dist/index325.js.map +1 -1
- package/dist/index326.js +5 -5
- package/dist/index326.js.map +1 -1
- package/dist/index327.js +65 -3
- package/dist/index327.js.map +1 -1
- package/dist/index328.js +13 -10
- package/dist/index328.js.map +1 -1
- package/dist/index329.js +7 -7
- package/dist/index329.js.map +1 -1
- package/dist/index33.js +3 -6
- package/dist/index33.js.map +1 -1
- package/dist/index330.js +5 -399
- package/dist/index330.js.map +1 -1
- package/dist/index331.js +4 -5
- package/dist/index331.js.map +1 -1
- package/dist/index332.js +10 -52
- package/dist/index332.js.map +1 -1
- package/dist/index333.js +6 -10
- package/dist/index333.js.map +1 -1
- package/dist/index334.js +128 -22
- package/dist/index334.js.map +1 -1
- package/dist/index335.js +399 -11
- package/dist/index335.js.map +1 -1
- package/dist/index336.js +5 -155
- package/dist/index336.js.map +1 -1
- package/dist/index337.js +51 -31
- package/dist/index337.js.map +1 -1
- package/dist/index338.js +11 -11
- package/dist/index338.js.map +1 -1
- package/dist/index339.js +23 -45
- package/dist/index339.js.map +1 -1
- package/dist/index34.js +8 -38
- package/dist/index34.js.map +1 -1
- package/dist/index340.js +11 -9
- package/dist/index340.js.map +1 -1
- package/dist/index341.js +4 -11
- package/dist/index341.js.map +1 -1
- package/dist/index342.js +17 -43
- package/dist/index342.js.map +1 -1
- package/dist/index343.js +12 -97
- package/dist/index343.js.map +1 -1
- package/dist/index344.js +8 -86
- package/dist/index344.js.map +1 -1
- package/dist/index345.js +11 -105
- package/dist/index345.js.map +1 -1
- package/dist/index346.js +7 -51
- package/dist/index346.js.map +1 -1
- package/dist/index347.js +12 -10
- package/dist/index347.js.map +1 -1
- package/dist/index348.js +3 -4
- package/dist/index348.js.map +1 -1
- package/dist/index349.js +3 -37
- package/dist/index349.js.map +1 -1
- package/dist/index35.js +35 -74
- package/dist/index35.js.map +1 -1
- package/dist/index350.js +17 -8
- package/dist/index350.js.map +1 -1
- package/dist/index351.js +5 -135
- package/dist/index351.js.map +1 -1
- package/dist/index352.js +51 -17
- package/dist/index352.js.map +1 -1
- package/dist/index353.js +60 -14
- package/dist/index353.js.map +1 -1
- package/dist/index354.js +66 -3
- package/dist/index354.js.map +1 -1
- package/dist/index355.js +7 -35
- package/dist/index355.js.map +1 -1
- package/dist/index356.js +5 -21
- package/dist/index356.js.map +1 -1
- package/dist/index357.js +11 -9
- package/dist/index357.js.map +1 -1
- package/dist/index358.js +21 -8
- package/dist/index358.js.map +1 -1
- package/dist/index359.js +14 -22
- package/dist/index359.js.map +1 -1
- package/dist/index36.js +74 -20
- package/dist/index36.js.map +1 -1
- package/dist/index360.js +8 -29
- package/dist/index360.js.map +1 -1
- package/dist/index361.js +142 -14
- package/dist/index361.js.map +1 -1
- package/dist/index362.js +79 -4
- package/dist/index362.js.map +1 -1
- package/dist/index363.js +61 -17
- package/dist/index363.js.map +1 -1
- package/dist/index364.js +15 -13
- package/dist/index364.js.map +1 -1
- package/dist/index365.js +4 -8
- package/dist/index365.js.map +1 -1
- package/dist/index366.js +21 -27
- package/dist/index366.js.map +1 -1
- package/dist/index367.js +4 -138
- package/dist/index367.js.map +1 -1
- package/dist/index368.js +5 -12
- package/dist/index368.js.map +1 -1
- package/dist/index369.js +3 -47
- package/dist/index369.js.map +1 -1
- package/dist/index37.js +18 -33
- package/dist/index37.js.map +1 -1
- package/dist/index370.js +11 -3
- package/dist/index370.js.map +1 -1
- package/dist/index371.js +19 -20
- package/dist/index371.js.map +1 -1
- package/dist/index372.js +44 -75
- package/dist/index372.js.map +1 -1
- package/dist/index373.js +17 -11
- package/dist/index373.js.map +1 -1
- package/dist/index374.js +5 -4
- package/dist/index374.js.map +1 -1
- package/dist/index375.js +197 -70
- package/dist/index375.js.map +1 -1
- package/dist/index376.js +70 -197
- package/dist/index376.js.map +1 -1
- package/dist/index377.js +118 -66
- package/dist/index377.js.map +1 -1
- package/dist/index378.js +4 -35
- package/dist/index378.js.map +1 -1
- package/dist/index379.js +5 -7
- package/dist/index379.js.map +1 -1
- package/dist/index38.js +36 -26
- package/dist/index38.js.map +1 -1
- package/dist/index380.js +4 -16
- package/dist/index380.js.map +1 -1
- package/dist/index381.js +15 -123
- package/dist/index381.js.map +1 -1
- package/dist/index382.js +9 -4
- package/dist/index382.js.map +1 -1
- package/dist/index383.js +5 -11
- package/dist/index383.js.map +1 -1
- package/dist/index384.js +4 -5
- package/dist/index384.js.map +1 -1
- package/dist/index385.js +546 -3
- package/dist/index385.js.map +1 -1
- package/dist/index386.js +46 -20
- package/dist/index386.js.map +1 -1
- package/dist/index387.js +18 -45
- package/dist/index387.js.map +1 -1
- package/dist/index388.js +6 -18
- package/dist/index388.js.map +1 -1
- package/dist/index389.js +8 -5
- package/dist/index389.js.map +1 -1
- package/dist/index39.js +26 -21
- package/dist/index39.js.map +1 -1
- package/dist/index390.js +6 -4
- package/dist/index390.js.map +1 -1
- package/dist/index391.js +7 -20
- package/dist/index391.js.map +1 -1
- package/dist/index392.js +11 -4
- package/dist/index392.js.map +1 -1
- package/dist/index393.js +8 -4
- package/dist/index393.js.map +1 -1
- package/dist/index394.js +13 -4
- package/dist/index394.js.map +1 -1
- package/dist/index395.js +8 -15
- package/dist/index395.js.map +1 -1
- package/dist/index396.js +27 -9
- package/dist/index396.js.map +1 -1
- package/dist/index397.js +137 -5
- package/dist/index397.js.map +1 -1
- package/dist/index398.js +12 -4
- package/dist/index398.js.map +1 -1
- package/dist/index399.js +44 -543
- package/dist/index399.js.map +1 -1
- package/dist/index4.js +2 -2
- package/dist/index40.js +20 -56
- package/dist/index40.js.map +1 -1
- package/dist/index400.js +4 -47
- package/dist/index400.js.map +1 -1
- package/dist/index401.js +21 -17
- package/dist/index401.js.map +1 -1
- package/dist/index402.js +75 -5
- package/dist/index402.js.map +1 -1
- package/dist/index403.js +12 -8
- package/dist/index403.js.map +1 -1
- package/dist/index404.js +3 -6
- package/dist/index404.js.map +1 -1
- package/dist/index405.js +71 -7
- package/dist/index405.js.map +1 -1
- package/dist/index406.js +35 -11
- package/dist/index406.js.map +1 -1
- package/dist/index407.js +7 -9
- package/dist/index407.js.map +1 -1
- package/dist/index408.js +15 -12
- package/dist/index408.js.map +1 -1
- package/dist/index409.js +3 -3
- package/dist/index409.js.map +1 -1
- package/dist/index41.js +59 -51
- package/dist/index41.js.map +1 -1
- package/dist/index410.js +3 -15
- package/dist/index410.js.map +1 -1
- package/dist/index411.js +4 -491
- package/dist/index411.js.map +1 -1
- package/dist/index412.js +56 -3
- package/dist/index412.js.map +1 -1
- package/dist/index413.js +68 -3
- package/dist/index413.js.map +1 -1
- package/dist/index414.js +31 -5
- package/dist/index414.js.map +1 -1
- package/dist/index415.js +9 -56
- package/dist/index415.js.map +1 -1
- package/dist/index416.js +146 -61
- package/dist/index416.js.map +1 -1
- package/dist/index417.js +103 -26
- package/dist/index417.js.map +1 -1
- package/dist/index418.js +15 -9
- package/dist/index418.js.map +1 -1
- package/dist/index419.js +3 -153
- package/dist/index419.js.map +1 -1
- package/dist/index42.js +50 -21
- package/dist/index42.js.map +1 -1
- package/dist/index420.js +490 -106
- package/dist/index420.js.map +1 -1
- package/dist/index421.js +7 -32
- package/dist/index421.js.map +1 -1
- package/dist/index422.js +2 -8
- package/dist/index422.js.map +1 -1
- package/dist/index423.js +44 -2
- package/dist/index423.js.map +1 -1
- package/dist/index424.js +52 -40
- package/dist/index424.js.map +1 -1
- package/dist/index425.js +7 -55
- package/dist/index425.js.map +1 -1
- package/dist/index426.js +2 -8
- package/dist/index426.js.map +1 -1
- package/dist/index427.js +55 -2
- package/dist/index427.js.map +1 -1
- package/dist/index428.js +53 -52
- package/dist/index428.js.map +1 -1
- package/dist/index429.js +32 -55
- package/dist/index429.js.map +1 -1
- package/dist/index43.js +18 -127
- package/dist/index43.js.map +1 -1
- package/dist/index44.js +122 -39
- package/dist/index44.js.map +1 -1
- package/dist/index45.js +42 -85
- package/dist/index45.js.map +1 -1
- package/dist/index46.js +87 -123
- package/dist/index46.js.map +1 -1
- package/dist/index47.js +126 -5
- package/dist/index47.js.map +1 -1
- package/dist/index48.js +5 -332
- package/dist/index48.js.map +1 -1
- package/dist/index49.js +321 -246
- package/dist/index49.js.map +1 -1
- package/dist/index5.js +2 -2
- package/dist/index50.js +254 -23
- package/dist/index50.js.map +1 -1
- package/dist/index51.js +25 -129
- package/dist/index51.js.map +1 -1
- package/dist/index52.js +129 -24
- package/dist/index52.js.map +1 -1
- package/dist/index53.js +22 -19
- package/dist/index53.js.map +1 -1
- package/dist/index54.js +19 -134
- package/dist/index54.js.map +1 -1
- package/dist/index55.js +133 -30
- package/dist/index55.js.map +1 -1
- package/dist/index56.js +30 -24
- package/dist/index56.js.map +1 -1
- package/dist/index57.js +26 -38
- package/dist/index57.js.map +1 -1
- package/dist/index58.js +39 -19
- package/dist/index58.js.map +1 -1
- package/dist/index59.js +18 -133
- package/dist/index59.js.map +1 -1
- package/dist/index6.js +4 -4
- package/dist/index60.js +134 -49
- package/dist/index60.js.map +1 -1
- package/dist/index61.js +48 -25
- package/dist/index61.js.map +1 -1
- package/dist/index62.js +28 -57
- package/dist/index62.js.map +1 -1
- package/dist/index63.js +57 -56
- package/dist/index63.js.map +1 -1
- package/dist/index64.js +5 -5
- package/dist/index64.js.map +1 -1
- package/dist/index66.js +10 -22
- package/dist/index66.js.map +1 -1
- package/dist/index67.js +17 -232
- package/dist/index67.js.map +1 -1
- package/dist/index68.js +5 -5
- package/dist/index68.js.map +1 -1
- package/dist/index7.js +11 -11
- package/dist/index70.js +22 -10
- package/dist/index70.js.map +1 -1
- package/dist/index71.js +232 -17
- package/dist/index71.js.map +1 -1
- package/dist/index76.js +1 -1
- package/dist/index77.js +2 -2
- package/dist/index78.js +2 -2
- package/dist/index8.js +2 -2
- package/dist/index9.js +1 -1
- package/package.json +1 -1
package/dist/index166.js
CHANGED
|
@@ -1,130 +1,111 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
function
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
1
|
+
function a(e) {
|
|
2
|
+
"@babel/helpers - typeof";
|
|
3
|
+
return a = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
|
|
4
|
+
return typeof t;
|
|
5
|
+
} : function(t) {
|
|
6
|
+
return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
|
|
7
|
+
}, a(e);
|
|
8
|
+
}
|
|
9
|
+
function l(e, t) {
|
|
10
|
+
if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");
|
|
11
|
+
}
|
|
12
|
+
function s(e, t) {
|
|
13
|
+
for (var i = 0; i < t.length; i++) {
|
|
14
|
+
var n = t[i];
|
|
15
|
+
n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(e, f(n.key), n);
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
function u(e, t, i) {
|
|
19
|
+
return t && s(e.prototype, t), Object.defineProperty(e, "prototype", { writable: !1 }), e;
|
|
20
|
+
}
|
|
21
|
+
function f(e) {
|
|
22
|
+
var t = g(e, "string");
|
|
23
|
+
return a(t) == "symbol" ? t : t + "";
|
|
24
|
+
}
|
|
25
|
+
function g(e, t) {
|
|
26
|
+
if (a(e) != "object" || !e) return e;
|
|
27
|
+
var i = e[Symbol.toPrimitive];
|
|
28
|
+
if (i !== void 0) {
|
|
29
|
+
var n = i.call(e, t);
|
|
30
|
+
if (a(n) != "object") return n;
|
|
31
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
32
|
+
}
|
|
33
|
+
return String(e);
|
|
34
|
+
}
|
|
35
|
+
var h = /* @__PURE__ */ (function() {
|
|
36
|
+
function e(t) {
|
|
37
|
+
var i = t.onCountryChange, n = t.onCallingCodeChange;
|
|
38
|
+
l(this, e), this.onCountryChange = i, this.onCallingCodeChange = n;
|
|
39
|
+
}
|
|
40
|
+
return u(e, [{
|
|
41
|
+
key: "reset",
|
|
42
|
+
value: function(i) {
|
|
43
|
+
var n = i.country, o = i.callingCode;
|
|
44
|
+
this.international = !1, this.missingPlus = !1, this.IDDPrefix = void 0, this.callingCode = void 0, this.digits = "", this.resetNationalSignificantNumber(), this.initCountryAndCallingCode(n, o);
|
|
34
45
|
}
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
r.current && (r.current = null, u(null), c(null));
|
|
40
|
-
return;
|
|
46
|
+
}, {
|
|
47
|
+
key: "resetNationalSignificantNumber",
|
|
48
|
+
value: function() {
|
|
49
|
+
this.nationalSignificantNumber = this.getNationalDigits(), this.nationalSignificantNumberIsModified = !1, this.nationalPrefix = void 0, this.carrierCode = void 0, this.prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix = void 0;
|
|
41
50
|
}
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
function
|
|
78
|
-
|
|
51
|
+
}, {
|
|
52
|
+
key: "update",
|
|
53
|
+
value: function(i) {
|
|
54
|
+
for (var n = 0, o = Object.keys(i); n < o.length; n++) {
|
|
55
|
+
var r = o[n];
|
|
56
|
+
this[r] = i[r];
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}, {
|
|
60
|
+
key: "initCountryAndCallingCode",
|
|
61
|
+
value: function(i, n) {
|
|
62
|
+
this.setCountry(i), this.setCallingCode(n);
|
|
63
|
+
}
|
|
64
|
+
}, {
|
|
65
|
+
key: "setCountry",
|
|
66
|
+
value: function(i) {
|
|
67
|
+
this.country = i, this.onCountryChange(i);
|
|
68
|
+
}
|
|
69
|
+
}, {
|
|
70
|
+
key: "setCallingCode",
|
|
71
|
+
value: function(i) {
|
|
72
|
+
this.callingCode = i, this.onCallingCodeChange(i, this.country);
|
|
73
|
+
}
|
|
74
|
+
}, {
|
|
75
|
+
key: "startInternationalNumber",
|
|
76
|
+
value: function(i, n) {
|
|
77
|
+
this.international = !0, this.initCountryAndCallingCode(i, n);
|
|
78
|
+
}
|
|
79
|
+
}, {
|
|
80
|
+
key: "appendDigits",
|
|
81
|
+
value: function(i) {
|
|
82
|
+
this.digits += i;
|
|
83
|
+
}
|
|
84
|
+
}, {
|
|
85
|
+
key: "appendNationalSignificantNumberDigits",
|
|
86
|
+
value: function(i) {
|
|
87
|
+
this.nationalSignificantNumber += i;
|
|
88
|
+
}
|
|
89
|
+
/**
|
|
90
|
+
* Returns the part of `this.digits` that corresponds to the national number.
|
|
91
|
+
* Basically, all digits that have been input by the user, except for the
|
|
92
|
+
* international prefix and the country calling code part
|
|
93
|
+
* (if the number is an international one).
|
|
94
|
+
* @return {string}
|
|
95
|
+
*/
|
|
96
|
+
}, {
|
|
97
|
+
key: "getNationalDigits",
|
|
98
|
+
value: function() {
|
|
99
|
+
return this.international ? this.digits.slice((this.IDDPrefix ? this.IDDPrefix.length : 0) + (this.callingCode ? this.callingCode.length : 0)) : this.digits;
|
|
100
|
+
}
|
|
101
|
+
}, {
|
|
102
|
+
key: "getDigitsWithoutInternationalPrefix",
|
|
103
|
+
value: function() {
|
|
104
|
+
return this.international && this.IDDPrefix ? this.digits.slice(this.IDDPrefix.length) : this.digits;
|
|
79
105
|
}
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
!e || O !== !0 || !f.current || (I(e), f.current = !1);
|
|
83
|
-
}, [O, e]);
|
|
84
|
-
const M = o.useMemo(() => ({
|
|
85
|
-
beforeOutsideRef: R,
|
|
86
|
-
afterOutsideRef: r,
|
|
87
|
-
beforeInsideRef: i,
|
|
88
|
-
afterInsideRef: x,
|
|
89
|
-
portalNode: e,
|
|
90
|
-
setFocusManagerState: D
|
|
91
|
-
}), [e]);
|
|
92
|
-
return /* @__PURE__ */ d.jsxs(o.Fragment, {
|
|
93
|
-
children: [u, /* @__PURE__ */ d.jsxs(N.Provider, {
|
|
94
|
-
value: M,
|
|
95
|
-
children: [P && e && /* @__PURE__ */ d.jsx(T, {
|
|
96
|
-
"data-type": "outside",
|
|
97
|
-
ref: R,
|
|
98
|
-
onFocus: (s) => {
|
|
99
|
-
if (E(s, e))
|
|
100
|
-
i.current?.focus();
|
|
101
|
-
else {
|
|
102
|
-
const l = t ? t.domReference : null;
|
|
103
|
-
q(l)?.focus();
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
}), P && e && /* @__PURE__ */ d.jsx("span", {
|
|
107
|
-
"aria-owns": e.id,
|
|
108
|
-
style: z
|
|
109
|
-
}), e && /* @__PURE__ */ j.createPortal(v, e), P && e && /* @__PURE__ */ d.jsx(T, {
|
|
110
|
-
"data-type": "outside",
|
|
111
|
-
ref: r,
|
|
112
|
-
onFocus: (s) => {
|
|
113
|
-
if (E(s, e))
|
|
114
|
-
x.current?.focus();
|
|
115
|
-
else {
|
|
116
|
-
const l = t ? t.domReference : null;
|
|
117
|
-
A(l)?.focus(), t?.closeOnFocusOut && t?.onOpenChange(!1, H(K, s.nativeEvent));
|
|
118
|
-
}
|
|
119
|
-
}
|
|
120
|
-
})]
|
|
121
|
-
})]
|
|
122
|
-
});
|
|
123
|
-
});
|
|
124
|
-
process.env.NODE_ENV !== "production" && (X.displayName = "FloatingPortal");
|
|
106
|
+
}]);
|
|
107
|
+
})();
|
|
125
108
|
export {
|
|
126
|
-
|
|
127
|
-
W as useFloatingPortalNode,
|
|
128
|
-
Q as usePortalContext
|
|
109
|
+
h as default
|
|
129
110
|
};
|
|
130
111
|
//# sourceMappingURL=index166.js.map
|
package/dist/index166.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index166.js","sources":["../../../node_modules/@base-ui/react/floating-ui-react/components/FloatingPortal.mjs"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport * as ReactDOM from 'react-dom';\nimport { isNode } from '@floating-ui/utils/dom';\nimport { addEventListener } from '@base-ui/utils/addEventListener';\nimport { mergeCleanups } from '@base-ui/utils/mergeCleanups';\nimport { useId } from '@base-ui/utils/useId';\nimport { useIsoLayoutEffect } from '@base-ui/utils/useIsoLayoutEffect';\nimport { useStableCallback } from '@base-ui/utils/useStableCallback';\nimport { EMPTY_OBJECT } from '@base-ui/utils/empty';\nimport { FocusGuard } from \"../../utils/FocusGuard.mjs\";\nimport { enableFocusInside, disableFocusInside, getPreviousTabbable, getNextTabbable, isOutsideEvent } from \"../utils/tabbable.mjs\";\nimport { createChangeEventDetails } from \"../../internals/createBaseUIEventDetails.mjs\";\nimport { REASONS } from \"../../internals/reasons.mjs\";\nimport { createAttribute } from \"../utils/createAttribute.mjs\";\nimport { useRenderElement } from \"../../internals/useRenderElement.mjs\";\nimport { ownerVisuallyHidden } from \"../../internals/constants.mjs\";\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nconst PortalContext = /*#__PURE__*/React.createContext(null);\nif (process.env.NODE_ENV !== \"production\") PortalContext.displayName = \"PortalContext\";\nexport const usePortalContext = () => React.useContext(PortalContext);\nconst attr = createAttribute('portal');\nexport function useFloatingPortalNode(props = {}) {\n const {\n ref,\n container: containerProp,\n componentProps = EMPTY_OBJECT,\n elementProps\n } = props;\n const uniqueId = useId();\n const portalContext = usePortalContext();\n const parentPortalNode = portalContext?.portalNode;\n const [containerElement, setContainerElement] = React.useState(null);\n const [portalNode, setPortalNode] = React.useState(null);\n const setPortalNodeRef = useStableCallback(node => {\n if (node !== null) {\n // the useIsoLayoutEffect below watching containerProp / parentPortalNode\n // sets setPortalNode(null) when the container becomes null or changes.\n // So even though the ref callback now ignores null, the portal node still gets cleared.\n setPortalNode(node);\n }\n });\n const containerRef = React.useRef(null);\n useIsoLayoutEffect(() => {\n // Wait for the container to be resolved if explicitly `null`.\n if (containerProp === null) {\n if (containerRef.current) {\n containerRef.current = null;\n setPortalNode(null);\n setContainerElement(null);\n }\n return;\n }\n\n // React 17 does not use React.useId().\n if (uniqueId == null) {\n return;\n }\n const resolvedContainer = (containerProp && (isNode(containerProp) ? containerProp : containerProp.current)) ?? parentPortalNode ?? document.body;\n if (resolvedContainer == null) {\n if (containerRef.current) {\n containerRef.current = null;\n setPortalNode(null);\n setContainerElement(null);\n }\n return;\n }\n if (containerRef.current !== resolvedContainer) {\n containerRef.current = resolvedContainer;\n setPortalNode(null);\n setContainerElement(resolvedContainer);\n }\n }, [containerProp, parentPortalNode, uniqueId]);\n const portalElement = useRenderElement('div', componentProps, {\n ref: [ref, setPortalNodeRef],\n props: [{\n id: uniqueId,\n [attr]: ''\n }, elementProps]\n });\n\n // This `createPortal` call injects `portalElement` into the `container`.\n // Another call inside `FloatingPortal`/`FloatingPortalLite` then injects the children into `portalElement`.\n const portalSubtree = containerElement && portalElement ? /*#__PURE__*/ReactDOM.createPortal(portalElement, containerElement) : null;\n return {\n portalNode,\n portalSubtree\n };\n}\n\n/**\n * Portals the floating element into a given container element — by default,\n * outside of the app root and into the body.\n * This is necessary to ensure the floating element can appear outside any\n * potential parent containers that cause clipping (such as `overflow: hidden`),\n * while retaining its location in the React tree.\n * @see https://floating-ui.com/docs/FloatingPortal\n * @internal\n */\nexport const FloatingPortal = /*#__PURE__*/React.forwardRef(function FloatingPortal(componentProps, forwardedRef) {\n const {\n render,\n className,\n style,\n children,\n container,\n renderGuards,\n ...elementProps\n } = componentProps;\n const {\n portalNode,\n portalSubtree\n } = useFloatingPortalNode({\n container,\n ref: forwardedRef,\n componentProps,\n elementProps\n });\n const beforeOutsideRef = React.useRef(null);\n const afterOutsideRef = React.useRef(null);\n const beforeInsideRef = React.useRef(null);\n const afterInsideRef = React.useRef(null);\n const [focusManagerState, setFocusManagerState] = React.useState(null);\n const focusInsideDisabledRef = React.useRef(false);\n const modal = focusManagerState?.modal;\n const open = focusManagerState?.open;\n const shouldRenderGuards = typeof renderGuards === 'boolean' ? renderGuards : !!focusManagerState && !focusManagerState.modal && focusManagerState.open && !!portalNode;\n\n // https://codesandbox.io/s/tabbable-portal-f4tng?file=/src/TabbablePortal.tsx\n React.useEffect(() => {\n if (!portalNode || modal) {\n return undefined;\n }\n\n // Make sure elements inside the portal element are tabbable only when the\n // portal has already been focused, either by tabbing into a focus trap\n // element outside or using the mouse.\n function onFocus(event) {\n if (portalNode && event.relatedTarget && isOutsideEvent(event)) {\n if (event.type === 'focusin') {\n if (focusInsideDisabledRef.current) {\n enableFocusInside(portalNode);\n focusInsideDisabledRef.current = false;\n }\n } else {\n disableFocusInside(portalNode);\n focusInsideDisabledRef.current = true;\n }\n }\n }\n\n // Listen to the event on the capture phase so they run before the focus\n // trap elements onFocus prop is called.\n return mergeCleanups(addEventListener(portalNode, 'focusin', onFocus, true), addEventListener(portalNode, 'focusout', onFocus, true));\n }, [portalNode, modal]);\n useIsoLayoutEffect(() => {\n if (!portalNode || open !== true || !focusInsideDisabledRef.current) {\n return;\n }\n\n // Restore tabbability before the focus manager's queued focus-on-open step runs.\n enableFocusInside(portalNode);\n focusInsideDisabledRef.current = false;\n }, [open, portalNode]);\n const portalContextValue = React.useMemo(() => ({\n beforeOutsideRef,\n afterOutsideRef,\n beforeInsideRef,\n afterInsideRef,\n portalNode,\n setFocusManagerState\n }), [portalNode]);\n return /*#__PURE__*/_jsxs(React.Fragment, {\n children: [portalSubtree, /*#__PURE__*/_jsxs(PortalContext.Provider, {\n value: portalContextValue,\n children: [shouldRenderGuards && portalNode && /*#__PURE__*/_jsx(FocusGuard, {\n \"data-type\": \"outside\",\n ref: beforeOutsideRef,\n onFocus: event => {\n if (isOutsideEvent(event, portalNode)) {\n beforeInsideRef.current?.focus();\n } else {\n const domReference = focusManagerState ? focusManagerState.domReference : null;\n const prevTabbable = getPreviousTabbable(domReference);\n prevTabbable?.focus();\n }\n }\n }), shouldRenderGuards && portalNode && /*#__PURE__*/_jsx(\"span\", {\n \"aria-owns\": portalNode.id,\n style: ownerVisuallyHidden\n }), portalNode && /*#__PURE__*/ReactDOM.createPortal(children, portalNode), shouldRenderGuards && portalNode && /*#__PURE__*/_jsx(FocusGuard, {\n \"data-type\": \"outside\",\n ref: afterOutsideRef,\n onFocus: event => {\n if (isOutsideEvent(event, portalNode)) {\n afterInsideRef.current?.focus();\n } else {\n const domReference = focusManagerState ? focusManagerState.domReference : null;\n const nextTabbable = getNextTabbable(domReference);\n nextTabbable?.focus();\n if (focusManagerState?.closeOnFocusOut) {\n focusManagerState?.onOpenChange(false, createChangeEventDetails(REASONS.focusOut, event.nativeEvent));\n }\n }\n }\n })]\n })]\n });\n});\nif (process.env.NODE_ENV !== \"production\") FloatingPortal.displayName = \"FloatingPortal\";"],"names":["PortalContext","React","usePortalContext","attr","createAttribute","useFloatingPortalNode","props","ref","containerProp","componentProps","EMPTY_OBJECT","elementProps","uniqueId","useId","parentPortalNode","containerElement","setContainerElement","portalNode","setPortalNode","setPortalNodeRef","useStableCallback","node","containerRef","useIsoLayoutEffect","resolvedContainer","isNode","portalElement","useRenderElement","ReactDOM","FloatingPortal","forwardedRef","render","className","style","children","container","renderGuards","portalSubtree","beforeOutsideRef","afterOutsideRef","beforeInsideRef","afterInsideRef","focusManagerState","setFocusManagerState","focusInsideDisabledRef","modal","open","shouldRenderGuards","onFocus","event","isOutsideEvent","enableFocusInside","disableFocusInside","mergeCleanups","addEventListener","portalContextValue","_jsxs","_jsx","FocusGuard","domReference","getPreviousTabbable","ownerVisuallyHidden","getNextTabbable","createChangeEventDetails","REASONS.focusOut"],"mappings":";;;;;;;;;;;;;;;;;AAmBA,MAAMA,IAA6B,gBAAAC,EAAM,cAAc,IAAI;AACvD,QAAQ,IAAI,aAAa,iBAAcD,EAAc,cAAc;AAC3D,MAACE,IAAmB,MAAMD,EAAM,WAAWD,CAAa,GAC9DG,IAAOC,EAAgB,QAAQ;AAC9B,SAASC,EAAsBC,IAAQ,IAAI;AAChD,QAAM;AAAA,IACJ,KAAAC;AAAA,IACA,WAAWC;AAAA,IACX,gBAAAC,IAAiBC;AAAA,IACjB,cAAAC;AAAA,EACJ,IAAML,GACEM,IAAWC,EAAK,GAEhBC,IADgBZ,EAAgB,GACE,YAClC,CAACa,GAAkBC,CAAmB,IAAIf,EAAM,SAAS,IAAI,GAC7D,CAACgB,GAAYC,CAAa,IAA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;AAAA,EACN,CAAG;AACH,CAAC;AACG,QAAQ,IAAI,aAAa,iBAAcpB,EAAe,cAAc;","x_google_ignoreList":[0]}
|
|
1
|
+
{"version":3,"file":"index166.js","sources":["../../../node_modules/libphonenumber-js/es6/AsYouTypeState.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 _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); }\n// This \"state\" object simply holds the state of the \"AsYouType\" parser:\n//\n// Sidenote:\n// `state.callingCode` and `state.country` are somewhat independent from one another\n// and there could be situations when one is defined but the other is not.\n// * Situations when `state.country` would be defined but `state.callingCode` would be `undefined`:\n// \t\t * When `defaultCountry` is specified and inputting a phone number not in \"international\" format.\n// * When `defaultCountry` is specified and inputting a phone number in \"international\" format,\n// but before the `+` character has been input.\n// * Situations when `state.country` would be `undefined` but `state.callingCode` would be defined:\n// * When `defaultCountry` is not specified and inputting a phone number in \"international\" format,\n// and the \"calling code\" part is already complete, but multiple countries share this \"calling code\"\n// and there's not enough national (significant) number digits yet to determine the exact country.\n// * In any other sigutations, `state.country` and `state.callingCode` are either both defined or both `undefined`.\n// * When they're both defined, `state.callingCode` always corresponds to `state.country`.\n// So both are always consistent in this case.\n//\n// * `country?: string` — The exact country of the phone number, if it could be determined.\n// When inputting a phone number in \"international\" format, it will derive the `country` from \"country calling code\" and the phone number digits.\n// When inputting a phone number in \"national\" format, it will derive the `country` from `defaultCountry` that was specified when creating the `AsYouType` formatter.\n// Sidenote: If `USE_NON_GEOGRAPHIC_COUNTRY_CODE` flag was `true`, then for \"non-geographic phone numbers\" `state.country` would've been \"001\".\n// * `callingCode?: string` — \"Country calling code\" that has been extracted from the input phone number.\n// When inputting a phone number in \"international\" format, it will extract the \"country calling code\" from the digits that follow the \"+\" character.\n// When inputting a phone number in \"national\" format, `callingCode` will be `undefined`.\n// * `digits: string` — Phone number digits that have been input so far, including the \"+\" character, if present. In case of inputting non-arabic digits, those will be converted to arabic ones.\n// * `international: boolean` — Whether the phone number is being input in \"international\" format, i.e. with a \"+\" character.\n// * `missingPlus: boolean` — Whether it's a phone number in \"international\" format that is missing the leading \"+\" character for some reason — apparently, Google thinks that it's a common mistake when inputting a phone number.\n// * `IDDPrefix?: string` — An \"IDD prefix\", when the phone number is being input in an \"out-of-country dialing\" format. https://wikitravel.org/en/International_dialling_prefix\n// * `carrierCode?: string` — A \"carrier code\", if the phone number contains it. Normally, those can only be present in Colombia or Brazil, and only when calling from mobile phones to fixed-line numbers.\n// * `nationalPrefix?: string` — \"National prefix\", if present in the phone number input.\n// * `nationalSignificantNumber?: string` — National (significant) number digits that have been input so far.\n// * `nationalSignificantNumberIsModified: boolean` — Tells if the parsed national (significant) number is present as-is in the input string. For example, when inputting \"0343515551212999\" Argentinian mobile number, the parsed national (significant) number is \"93435551212999\". There, one can see how it stripped \"0\" national prefix and prepended a \"9\", because that's how it is instructed to do in Argentina's metadata. So in the described example, the parsed national (significant) number is not present as-is in the input string. Instead, it's \"modified\" in the input string. https://gitlab.com/caamphetamine/libphonenumber-js/-/blob/master/METADATA.md#national_prefix_for_parsing--national_prefix_transform_rule\n// * `prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix?: string` — In some countries, a phone number could have a prefix that is not a \"national prefix\" but rather some other type of \"utility\" prefix.\n// For example, when calling within Australia, one could prepend `1831` prefix to hide caller's phone number.\n// https://gitlab.com/catamphetamine/libphonenumber-js/-/blob/master/METADATA.md#national_prefix_for_parsing--national_prefix_transform_rule\n//\nvar AsYouTypeState = /*#__PURE__*/function () {\n function AsYouTypeState(_ref) {\n var onCountryChange = _ref.onCountryChange,\n onCallingCodeChange = _ref.onCallingCodeChange;\n _classCallCheck(this, AsYouTypeState);\n this.onCountryChange = onCountryChange;\n this.onCallingCodeChange = onCallingCodeChange;\n }\n return _createClass(AsYouTypeState, [{\n key: \"reset\",\n value: function reset(_ref2) {\n var country = _ref2.country,\n callingCode = _ref2.callingCode;\n this.international = false;\n this.missingPlus = false;\n this.IDDPrefix = undefined;\n this.callingCode = undefined;\n this.digits = '';\n this.resetNationalSignificantNumber();\n this.initCountryAndCallingCode(country, callingCode);\n }\n }, {\n key: \"resetNationalSignificantNumber\",\n value: function resetNationalSignificantNumber() {\n this.nationalSignificantNumber = this.getNationalDigits();\n this.nationalSignificantNumberIsModified = false;\n this.nationalPrefix = undefined;\n this.carrierCode = undefined;\n this.prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix = undefined;\n }\n }, {\n key: \"update\",\n value: function update(properties) {\n for (var _i = 0, _Object$keys = Object.keys(properties); _i < _Object$keys.length; _i++) {\n var key = _Object$keys[_i];\n this[key] = properties[key];\n }\n }\n }, {\n key: \"initCountryAndCallingCode\",\n value: function initCountryAndCallingCode(country, callingCode) {\n this.setCountry(country);\n this.setCallingCode(callingCode);\n }\n }, {\n key: \"setCountry\",\n value: function setCountry(country) {\n this.country = country;\n this.onCountryChange(country);\n }\n }, {\n key: \"setCallingCode\",\n value: function setCallingCode(callingCode) {\n this.callingCode = callingCode;\n this.onCallingCodeChange(callingCode, this.country);\n }\n }, {\n key: \"startInternationalNumber\",\n value: function startInternationalNumber(country, callingCode) {\n // Prepend the `+` to parsed input.\n this.international = true;\n // If a default country was set then reset it\n // because an explicitly international phone\n // number is being entered.\n this.initCountryAndCallingCode(country, callingCode);\n }\n }, {\n key: \"appendDigits\",\n value: function appendDigits(nextDigits) {\n this.digits += nextDigits;\n }\n }, {\n key: \"appendNationalSignificantNumberDigits\",\n value: function appendNationalSignificantNumberDigits(nextDigits) {\n this.nationalSignificantNumber += nextDigits;\n }\n\n /**\r\n * Returns the part of `this.digits` that corresponds to the national number.\r\n * Basically, all digits that have been input by the user, except for the\r\n * international prefix and the country calling code part\r\n * (if the number is an international one).\r\n * @return {string}\r\n */\n }, {\n key: \"getNationalDigits\",\n value: function getNationalDigits() {\n if (this.international) {\n return this.digits.slice((this.IDDPrefix ? this.IDDPrefix.length : 0) + (this.callingCode ? this.callingCode.length : 0));\n }\n return this.digits;\n }\n }, {\n key: \"getDigitsWithoutInternationalPrefix\",\n value: function getDigitsWithoutInternationalPrefix() {\n if (this.international) {\n if (this.IDDPrefix) {\n return this.digits.slice(this.IDDPrefix.length);\n }\n }\n return this.digits;\n }\n }]);\n}();\nexport { AsYouTypeState as default };\n//# sourceMappingURL=AsYouTypeState.js.map"],"names":["_typeof","o","_classCallCheck","a","n","_defineProperties","r","t","_toPropertyKey","_createClass","i","_toPrimitive","e","AsYouTypeState","_ref","onCountryChange","onCallingCodeChange","_ref2","country","callingCode","properties","_i","_Object$keys","key","nextDigits"],"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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AAa;AAE7D,WAAK,gBAAgB,IAIrB,KAAK,0BAA0BD,GAASC,CAAW;AAAA,IACrD;AAAA,EACJ,GAAK;AAAA,IACD,KAAK;AAAA,IACL,OAAO,SAAsBK,GAAY;AACvC,WAAK,UAAUA;AAAA,IACjB;AAAA,EACJ,GAAK;AAAA,IACD,KAAK;AAAA,IACL,OAAO,SAA+CA,GAAY;AAChE,WAAK,6BAA6BA;AAAA,IACpC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EASJ,GAAK;AAAA,IACD,KAAK;AAAA,IACL,OAAO,WAA6B;AAClC,aAAI,KAAK,gBACA,KAAK,OAAO,OAAO,KAAK,YAAY,KAAK,UAAU,SAAS,MAAM,KAAK,cAAc,KAAK,YAAY,SAAS,EAAE,IAEnH,KAAK;AAAA,IACd;AAAA,EACJ,GAAK;AAAA,IACD,KAAK;AAAA,IACL,OAAO,WAA+C;AACpD,aAAI,KAAK,iBACH,KAAK,YACA,KAAK,OAAO,MAAM,KAAK,UAAU,MAAM,IAG3C,KAAK;AAAA,IACd;AAAA,EACJ,CAAG,CAAC;AACJ,GAAC;","x_google_ignoreList":[0]}
|
package/dist/index167.js
CHANGED
|
@@ -1,67 +1,266 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import {
|
|
7
|
-
function
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
o
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
}
|
|
1
|
+
import b from "./index260.js";
|
|
2
|
+
import y from "./index277.js";
|
|
3
|
+
import m from "./index278.js";
|
|
4
|
+
import C from "./index279.js";
|
|
5
|
+
import v from "./index157.js";
|
|
6
|
+
import { VALID_PUNCTUATION as s, VALID_DIGITS as g, PLUS_CHARS as p } from "./index159.js";
|
|
7
|
+
function d(i) {
|
|
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];
|
|
63
261
|
}
|
|
64
262
|
export {
|
|
65
|
-
|
|
263
|
+
$ as default,
|
|
264
|
+
j as extractFormattedDigitsAndPlus
|
|
66
265
|
};
|
|
67
266
|
//# sourceMappingURL=index167.js.map
|