@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/index85.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index85.js","sources":["../../../node_modules/@radix-ui/react-menu/dist/index.mjs"],"sourcesContent":["\"use client\";\n\n// src/menu.tsx\nimport * as React from \"react\";\nimport { composeEventHandlers } from \"@radix-ui/primitive\";\nimport { createCollection } from \"@radix-ui/react-collection\";\nimport { useComposedRefs, composeRefs } from \"@radix-ui/react-compose-refs\";\nimport { createContextScope } from \"@radix-ui/react-context\";\nimport { useDirection } from \"@radix-ui/react-direction\";\nimport { DismissableLayer } from \"@radix-ui/react-dismissable-layer\";\nimport { useFocusGuards } from \"@radix-ui/react-focus-guards\";\nimport { FocusScope } from \"@radix-ui/react-focus-scope\";\nimport { useId } from \"@radix-ui/react-id\";\nimport * as PopperPrimitive from \"@radix-ui/react-popper\";\nimport { createPopperScope } from \"@radix-ui/react-popper\";\nimport { Portal as PortalPrimitive } from \"@radix-ui/react-portal\";\nimport { Presence } from \"@radix-ui/react-presence\";\nimport { Primitive, dispatchDiscreteCustomEvent } from \"@radix-ui/react-primitive\";\nimport * as RovingFocusGroup from \"@radix-ui/react-roving-focus\";\nimport { createRovingFocusGroupScope } from \"@radix-ui/react-roving-focus\";\nimport { createSlot } from \"@radix-ui/react-slot\";\nimport { useCallbackRef } from \"@radix-ui/react-use-callback-ref\";\nimport { hideOthers } from \"aria-hidden\";\nimport { RemoveScroll } from \"react-remove-scroll\";\nimport { jsx } from \"react/jsx-runtime\";\nvar SELECTION_KEYS = [\"Enter\", \" \"];\nvar FIRST_KEYS = [\"ArrowDown\", \"PageUp\", \"Home\"];\nvar LAST_KEYS = [\"ArrowUp\", \"PageDown\", \"End\"];\nvar FIRST_LAST_KEYS = [...FIRST_KEYS, ...LAST_KEYS];\nvar SUB_OPEN_KEYS = {\n ltr: [...SELECTION_KEYS, \"ArrowRight\"],\n rtl: [...SELECTION_KEYS, \"ArrowLeft\"]\n};\nvar SUB_CLOSE_KEYS = {\n ltr: [\"ArrowLeft\"],\n rtl: [\"ArrowRight\"]\n};\nvar MENU_NAME = \"Menu\";\nvar [Collection, useCollection, createCollectionScope] = createCollection(MENU_NAME);\nvar [createMenuContext, createMenuScope] = createContextScope(MENU_NAME, [\n createCollectionScope,\n createPopperScope,\n createRovingFocusGroupScope\n]);\nvar usePopperScope = createPopperScope();\nvar useRovingFocusGroupScope = createRovingFocusGroupScope();\nvar [MenuProvider, useMenuContext] = createMenuContext(MENU_NAME);\nvar [MenuRootProvider, useMenuRootContext] = createMenuContext(MENU_NAME);\nvar Menu = (props) => {\n const { __scopeMenu, open = false, children, dir, onOpenChange, modal = true } = props;\n const popperScope = usePopperScope(__scopeMenu);\n const [content, setContent] = React.useState(null);\n const isUsingKeyboardRef = React.useRef(false);\n const handleOpenChange = useCallbackRef(onOpenChange);\n const direction = useDirection(dir);\n React.useEffect(() => {\n const handleKeyDown = () => {\n isUsingKeyboardRef.current = true;\n document.addEventListener(\"pointerdown\", handlePointer, { capture: true, once: true });\n document.addEventListener(\"pointermove\", handlePointer, { capture: true, once: true });\n };\n const handlePointer = () => isUsingKeyboardRef.current = false;\n document.addEventListener(\"keydown\", handleKeyDown, { capture: true });\n return () => {\n document.removeEventListener(\"keydown\", handleKeyDown, { capture: true });\n document.removeEventListener(\"pointerdown\", handlePointer, { capture: true });\n document.removeEventListener(\"pointermove\", handlePointer, { capture: true });\n };\n }, []);\n return /* @__PURE__ */ jsx(PopperPrimitive.Root, { ...popperScope, children: /* @__PURE__ */ jsx(\n MenuProvider,\n {\n scope: __scopeMenu,\n open,\n onOpenChange: handleOpenChange,\n content,\n onContentChange: setContent,\n children: /* @__PURE__ */ jsx(\n MenuRootProvider,\n {\n scope: __scopeMenu,\n onClose: React.useCallback(() => handleOpenChange(false), [handleOpenChange]),\n isUsingKeyboardRef,\n dir: direction,\n modal,\n children\n }\n )\n }\n ) });\n};\nMenu.displayName = MENU_NAME;\nvar ANCHOR_NAME = \"MenuAnchor\";\nvar MenuAnchor = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeMenu, ...anchorProps } = props;\n const popperScope = usePopperScope(__scopeMenu);\n return /* @__PURE__ */ jsx(PopperPrimitive.Anchor, { ...popperScope, ...anchorProps, ref: forwardedRef });\n }\n);\nMenuAnchor.displayName = ANCHOR_NAME;\nvar PORTAL_NAME = \"MenuPortal\";\nvar [PortalProvider, usePortalContext] = createMenuContext(PORTAL_NAME, {\n forceMount: void 0\n});\nvar MenuPortal = (props) => {\n const { __scopeMenu, forceMount, children, container } = props;\n const context = useMenuContext(PORTAL_NAME, __scopeMenu);\n return /* @__PURE__ */ jsx(PortalProvider, { scope: __scopeMenu, forceMount, children: /* @__PURE__ */ jsx(Presence, { present: forceMount || context.open, children: /* @__PURE__ */ jsx(PortalPrimitive, { asChild: true, container, children }) }) });\n};\nMenuPortal.displayName = PORTAL_NAME;\nvar CONTENT_NAME = \"MenuContent\";\nvar [MenuContentProvider, useMenuContentContext] = createMenuContext(CONTENT_NAME);\nvar MenuContent = React.forwardRef(\n (props, forwardedRef) => {\n const portalContext = usePortalContext(CONTENT_NAME, props.__scopeMenu);\n const { forceMount = portalContext.forceMount, ...contentProps } = props;\n const context = useMenuContext(CONTENT_NAME, props.__scopeMenu);\n const rootContext = useMenuRootContext(CONTENT_NAME, props.__scopeMenu);\n return /* @__PURE__ */ jsx(Collection.Provider, { scope: props.__scopeMenu, children: /* @__PURE__ */ jsx(Presence, { present: forceMount || context.open, children: /* @__PURE__ */ jsx(Collection.Slot, { scope: props.__scopeMenu, children: rootContext.modal ? /* @__PURE__ */ jsx(MenuRootContentModal, { ...contentProps, ref: forwardedRef }) : /* @__PURE__ */ jsx(MenuRootContentNonModal, { ...contentProps, ref: forwardedRef }) }) }) });\n }\n);\nvar MenuRootContentModal = React.forwardRef(\n (props, forwardedRef) => {\n const context = useMenuContext(CONTENT_NAME, props.__scopeMenu);\n const ref = React.useRef(null);\n const composedRefs = useComposedRefs(forwardedRef, ref);\n React.useEffect(() => {\n const content = ref.current;\n if (content) return hideOthers(content);\n }, []);\n return /* @__PURE__ */ jsx(\n MenuContentImpl,\n {\n ...props,\n ref: composedRefs,\n trapFocus: context.open,\n disableOutsidePointerEvents: context.open,\n disableOutsideScroll: true,\n onFocusOutside: composeEventHandlers(\n props.onFocusOutside,\n (event) => event.preventDefault(),\n { checkForDefaultPrevented: false }\n ),\n onDismiss: () => context.onOpenChange(false)\n }\n );\n }\n);\nvar MenuRootContentNonModal = React.forwardRef((props, forwardedRef) => {\n const context = useMenuContext(CONTENT_NAME, props.__scopeMenu);\n return /* @__PURE__ */ jsx(\n MenuContentImpl,\n {\n ...props,\n ref: forwardedRef,\n trapFocus: false,\n disableOutsidePointerEvents: false,\n disableOutsideScroll: false,\n onDismiss: () => context.onOpenChange(false)\n }\n );\n});\nvar Slot = createSlot(\"MenuContent.ScrollLock\");\nvar MenuContentImpl = React.forwardRef(\n (props, forwardedRef) => {\n const {\n __scopeMenu,\n loop = false,\n trapFocus,\n onOpenAutoFocus,\n onCloseAutoFocus,\n disableOutsidePointerEvents,\n onEntryFocus,\n onEscapeKeyDown,\n onPointerDownOutside,\n onFocusOutside,\n onInteractOutside,\n onDismiss,\n disableOutsideScroll,\n ...contentProps\n } = props;\n const context = useMenuContext(CONTENT_NAME, __scopeMenu);\n const rootContext = useMenuRootContext(CONTENT_NAME, __scopeMenu);\n const popperScope = usePopperScope(__scopeMenu);\n const rovingFocusGroupScope = useRovingFocusGroupScope(__scopeMenu);\n const getItems = useCollection(__scopeMenu);\n const [currentItemId, setCurrentItemId] = React.useState(null);\n const contentRef = React.useRef(null);\n const composedRefs = useComposedRefs(forwardedRef, contentRef, context.onContentChange);\n const timerRef = React.useRef(0);\n const searchRef = React.useRef(\"\");\n const pointerGraceTimerRef = React.useRef(0);\n const pointerGraceIntentRef = React.useRef(null);\n const pointerDirRef = React.useRef(\"right\");\n const lastPointerXRef = React.useRef(0);\n const ScrollLockWrapper = disableOutsideScroll ? RemoveScroll : React.Fragment;\n const scrollLockWrapperProps = disableOutsideScroll ? { as: Slot, allowPinchZoom: true } : void 0;\n const handleTypeaheadSearch = (key) => {\n const search = searchRef.current + key;\n const items = getItems().filter((item) => !item.disabled);\n const currentItem = document.activeElement;\n const currentMatch = items.find((item) => item.ref.current === currentItem)?.textValue;\n const values = items.map((item) => item.textValue);\n const nextMatch = getNextMatch(values, search, currentMatch);\n const newItem = items.find((item) => item.textValue === nextMatch)?.ref.current;\n (function updateSearch(value) {\n searchRef.current = value;\n window.clearTimeout(timerRef.current);\n if (value !== \"\") timerRef.current = window.setTimeout(() => updateSearch(\"\"), 1e3);\n })(search);\n if (newItem) {\n setTimeout(() => newItem.focus());\n }\n };\n React.useEffect(() => {\n return () => window.clearTimeout(timerRef.current);\n }, []);\n useFocusGuards();\n const isPointerMovingToSubmenu = React.useCallback((event) => {\n const isMovingTowards = pointerDirRef.current === pointerGraceIntentRef.current?.side;\n return isMovingTowards && isPointerInGraceArea(event, pointerGraceIntentRef.current?.area);\n }, []);\n return /* @__PURE__ */ jsx(\n MenuContentProvider,\n {\n scope: __scopeMenu,\n searchRef,\n onItemEnter: React.useCallback(\n (event) => {\n if (isPointerMovingToSubmenu(event)) event.preventDefault();\n },\n [isPointerMovingToSubmenu]\n ),\n onItemLeave: React.useCallback(\n (event) => {\n if (isPointerMovingToSubmenu(event)) return;\n contentRef.current?.focus();\n setCurrentItemId(null);\n },\n [isPointerMovingToSubmenu]\n ),\n onTriggerLeave: React.useCallback(\n (event) => {\n if (isPointerMovingToSubmenu(event)) event.preventDefault();\n },\n [isPointerMovingToSubmenu]\n ),\n pointerGraceTimerRef,\n onPointerGraceIntentChange: React.useCallback((intent) => {\n pointerGraceIntentRef.current = intent;\n }, []),\n children: /* @__PURE__ */ jsx(ScrollLockWrapper, { ...scrollLockWrapperProps, children: /* @__PURE__ */ jsx(\n FocusScope,\n {\n asChild: true,\n trapped: trapFocus,\n onMountAutoFocus: composeEventHandlers(onOpenAutoFocus, (event) => {\n event.preventDefault();\n contentRef.current?.focus({ preventScroll: true });\n }),\n onUnmountAutoFocus: onCloseAutoFocus,\n children: /* @__PURE__ */ jsx(\n DismissableLayer,\n {\n asChild: true,\n disableOutsidePointerEvents,\n onEscapeKeyDown,\n onPointerDownOutside,\n onFocusOutside,\n onInteractOutside,\n onDismiss,\n children: /* @__PURE__ */ jsx(\n RovingFocusGroup.Root,\n {\n asChild: true,\n ...rovingFocusGroupScope,\n dir: rootContext.dir,\n orientation: \"vertical\",\n loop,\n currentTabStopId: currentItemId,\n onCurrentTabStopIdChange: setCurrentItemId,\n onEntryFocus: composeEventHandlers(onEntryFocus, (event) => {\n if (!rootContext.isUsingKeyboardRef.current) event.preventDefault();\n }),\n preventScrollOnEntryFocus: true,\n children: /* @__PURE__ */ jsx(\n PopperPrimitive.Content,\n {\n role: \"menu\",\n \"aria-orientation\": \"vertical\",\n \"data-state\": getOpenState(context.open),\n \"data-radix-menu-content\": \"\",\n dir: rootContext.dir,\n ...popperScope,\n ...contentProps,\n ref: composedRefs,\n style: { outline: \"none\", ...contentProps.style },\n onKeyDown: composeEventHandlers(contentProps.onKeyDown, (event) => {\n const target = event.target;\n const isKeyDownInside = target.closest(\"[data-radix-menu-content]\") === event.currentTarget;\n const isModifierKey = event.ctrlKey || event.altKey || event.metaKey;\n const isCharacterKey = event.key.length === 1;\n if (isKeyDownInside) {\n if (event.key === \"Tab\") event.preventDefault();\n if (!isModifierKey && isCharacterKey) handleTypeaheadSearch(event.key);\n }\n const content = contentRef.current;\n if (event.target !== content) return;\n if (!FIRST_LAST_KEYS.includes(event.key)) return;\n event.preventDefault();\n const items = getItems().filter((item) => !item.disabled);\n const candidateNodes = items.map((item) => item.ref.current);\n if (LAST_KEYS.includes(event.key)) candidateNodes.reverse();\n focusFirst(candidateNodes);\n }),\n onBlur: composeEventHandlers(props.onBlur, (event) => {\n if (!event.currentTarget.contains(event.target)) {\n window.clearTimeout(timerRef.current);\n searchRef.current = \"\";\n }\n }),\n onPointerMove: composeEventHandlers(\n props.onPointerMove,\n whenMouse((event) => {\n const target = event.target;\n const pointerXHasChanged = lastPointerXRef.current !== event.clientX;\n if (event.currentTarget.contains(target) && pointerXHasChanged) {\n const newDir = event.clientX > lastPointerXRef.current ? \"right\" : \"left\";\n pointerDirRef.current = newDir;\n lastPointerXRef.current = event.clientX;\n }\n })\n )\n }\n )\n }\n )\n }\n )\n }\n ) })\n }\n );\n }\n);\nMenuContent.displayName = CONTENT_NAME;\nvar GROUP_NAME = \"MenuGroup\";\nvar MenuGroup = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeMenu, ...groupProps } = props;\n return /* @__PURE__ */ jsx(Primitive.div, { role: \"group\", ...groupProps, ref: forwardedRef });\n }\n);\nMenuGroup.displayName = GROUP_NAME;\nvar LABEL_NAME = \"MenuLabel\";\nvar MenuLabel = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeMenu, ...labelProps } = props;\n return /* @__PURE__ */ jsx(Primitive.div, { ...labelProps, ref: forwardedRef });\n }\n);\nMenuLabel.displayName = LABEL_NAME;\nvar ITEM_NAME = \"MenuItem\";\nvar ITEM_SELECT = \"menu.itemSelect\";\nvar MenuItem = React.forwardRef(\n (props, forwardedRef) => {\n const { disabled = false, onSelect, ...itemProps } = props;\n const ref = React.useRef(null);\n const rootContext = useMenuRootContext(ITEM_NAME, props.__scopeMenu);\n const contentContext = useMenuContentContext(ITEM_NAME, props.__scopeMenu);\n const composedRefs = useComposedRefs(forwardedRef, ref);\n const isPointerDownRef = React.useRef(false);\n const handleSelect = () => {\n const menuItem = ref.current;\n if (!disabled && menuItem) {\n const itemSelectEvent = new CustomEvent(ITEM_SELECT, { bubbles: true, cancelable: true });\n menuItem.addEventListener(ITEM_SELECT, (event) => onSelect?.(event), { once: true });\n dispatchDiscreteCustomEvent(menuItem, itemSelectEvent);\n if (itemSelectEvent.defaultPrevented) {\n isPointerDownRef.current = false;\n } else {\n rootContext.onClose();\n }\n }\n };\n return /* @__PURE__ */ jsx(\n MenuItemImpl,\n {\n ...itemProps,\n ref: composedRefs,\n disabled,\n onClick: composeEventHandlers(props.onClick, handleSelect),\n onPointerDown: (event) => {\n props.onPointerDown?.(event);\n isPointerDownRef.current = true;\n },\n onPointerUp: composeEventHandlers(props.onPointerUp, (event) => {\n if (!isPointerDownRef.current) event.currentTarget?.click();\n }),\n onKeyDown: composeEventHandlers(props.onKeyDown, (event) => {\n const isTypingAhead = contentContext.searchRef.current !== \"\";\n if (disabled || isTypingAhead && event.key === \" \") return;\n if (SELECTION_KEYS.includes(event.key)) {\n event.currentTarget.click();\n event.preventDefault();\n }\n })\n }\n );\n }\n);\nMenuItem.displayName = ITEM_NAME;\nvar MenuItemImpl = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeMenu, disabled = false, textValue, ...itemProps } = props;\n const contentContext = useMenuContentContext(ITEM_NAME, __scopeMenu);\n const rovingFocusGroupScope = useRovingFocusGroupScope(__scopeMenu);\n const ref = React.useRef(null);\n const composedRefs = useComposedRefs(forwardedRef, ref);\n const [isFocused, setIsFocused] = React.useState(false);\n const [textContent, setTextContent] = React.useState(\"\");\n React.useEffect(() => {\n const menuItem = ref.current;\n if (menuItem) {\n setTextContent((menuItem.textContent ?? \"\").trim());\n }\n }, [itemProps.children]);\n return /* @__PURE__ */ jsx(\n Collection.ItemSlot,\n {\n scope: __scopeMenu,\n disabled,\n textValue: textValue ?? textContent,\n children: /* @__PURE__ */ jsx(RovingFocusGroup.Item, { asChild: true, ...rovingFocusGroupScope, focusable: !disabled, children: /* @__PURE__ */ jsx(\n Primitive.div,\n {\n role: \"menuitem\",\n \"data-highlighted\": isFocused ? \"\" : void 0,\n \"aria-disabled\": disabled || void 0,\n \"data-disabled\": disabled ? \"\" : void 0,\n ...itemProps,\n ref: composedRefs,\n onPointerMove: composeEventHandlers(\n props.onPointerMove,\n whenMouse((event) => {\n if (disabled) {\n contentContext.onItemLeave(event);\n } else {\n contentContext.onItemEnter(event);\n if (!event.defaultPrevented) {\n const item = event.currentTarget;\n item.focus({ preventScroll: true });\n }\n }\n })\n ),\n onPointerLeave: composeEventHandlers(\n props.onPointerLeave,\n whenMouse((event) => contentContext.onItemLeave(event))\n ),\n onFocus: composeEventHandlers(props.onFocus, () => setIsFocused(true)),\n onBlur: composeEventHandlers(props.onBlur, () => setIsFocused(false))\n }\n ) })\n }\n );\n }\n);\nvar CHECKBOX_ITEM_NAME = \"MenuCheckboxItem\";\nvar MenuCheckboxItem = React.forwardRef(\n (props, forwardedRef) => {\n const { checked = false, onCheckedChange, ...checkboxItemProps } = props;\n return /* @__PURE__ */ jsx(ItemIndicatorProvider, { scope: props.__scopeMenu, checked, children: /* @__PURE__ */ jsx(\n MenuItem,\n {\n role: \"menuitemcheckbox\",\n \"aria-checked\": isIndeterminate(checked) ? \"mixed\" : checked,\n ...checkboxItemProps,\n ref: forwardedRef,\n \"data-state\": getCheckedState(checked),\n onSelect: composeEventHandlers(\n checkboxItemProps.onSelect,\n () => onCheckedChange?.(isIndeterminate(checked) ? true : !checked),\n { checkForDefaultPrevented: false }\n )\n }\n ) });\n }\n);\nMenuCheckboxItem.displayName = CHECKBOX_ITEM_NAME;\nvar RADIO_GROUP_NAME = \"MenuRadioGroup\";\nvar [RadioGroupProvider, useRadioGroupContext] = createMenuContext(\n RADIO_GROUP_NAME,\n { value: void 0, onValueChange: () => {\n } }\n);\nvar MenuRadioGroup = React.forwardRef(\n (props, forwardedRef) => {\n const { value, onValueChange, ...groupProps } = props;\n const handleValueChange = useCallbackRef(onValueChange);\n return /* @__PURE__ */ jsx(RadioGroupProvider, { scope: props.__scopeMenu, value, onValueChange: handleValueChange, children: /* @__PURE__ */ jsx(MenuGroup, { ...groupProps, ref: forwardedRef }) });\n }\n);\nMenuRadioGroup.displayName = RADIO_GROUP_NAME;\nvar RADIO_ITEM_NAME = \"MenuRadioItem\";\nvar MenuRadioItem = React.forwardRef(\n (props, forwardedRef) => {\n const { value, ...radioItemProps } = props;\n const context = useRadioGroupContext(RADIO_ITEM_NAME, props.__scopeMenu);\n const checked = value === context.value;\n return /* @__PURE__ */ jsx(ItemIndicatorProvider, { scope: props.__scopeMenu, checked, children: /* @__PURE__ */ jsx(\n MenuItem,\n {\n role: \"menuitemradio\",\n \"aria-checked\": checked,\n ...radioItemProps,\n ref: forwardedRef,\n \"data-state\": getCheckedState(checked),\n onSelect: composeEventHandlers(\n radioItemProps.onSelect,\n () => context.onValueChange?.(value),\n { checkForDefaultPrevented: false }\n )\n }\n ) });\n }\n);\nMenuRadioItem.displayName = RADIO_ITEM_NAME;\nvar ITEM_INDICATOR_NAME = \"MenuItemIndicator\";\nvar [ItemIndicatorProvider, useItemIndicatorContext] = createMenuContext(\n ITEM_INDICATOR_NAME,\n { checked: false }\n);\nvar MenuItemIndicator = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeMenu, forceMount, ...itemIndicatorProps } = props;\n const indicatorContext = useItemIndicatorContext(ITEM_INDICATOR_NAME, __scopeMenu);\n return /* @__PURE__ */ jsx(\n Presence,\n {\n present: forceMount || isIndeterminate(indicatorContext.checked) || indicatorContext.checked === true,\n children: /* @__PURE__ */ jsx(\n Primitive.span,\n {\n ...itemIndicatorProps,\n ref: forwardedRef,\n \"data-state\": getCheckedState(indicatorContext.checked)\n }\n )\n }\n );\n }\n);\nMenuItemIndicator.displayName = ITEM_INDICATOR_NAME;\nvar SEPARATOR_NAME = \"MenuSeparator\";\nvar MenuSeparator = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeMenu, ...separatorProps } = props;\n return /* @__PURE__ */ jsx(\n Primitive.div,\n {\n role: \"separator\",\n \"aria-orientation\": \"horizontal\",\n ...separatorProps,\n ref: forwardedRef\n }\n );\n }\n);\nMenuSeparator.displayName = SEPARATOR_NAME;\nvar ARROW_NAME = \"MenuArrow\";\nvar MenuArrow = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeMenu, ...arrowProps } = props;\n const popperScope = usePopperScope(__scopeMenu);\n return /* @__PURE__ */ jsx(PopperPrimitive.Arrow, { ...popperScope, ...arrowProps, ref: forwardedRef });\n }\n);\nMenuArrow.displayName = ARROW_NAME;\nvar SUB_NAME = \"MenuSub\";\nvar [MenuSubProvider, useMenuSubContext] = createMenuContext(SUB_NAME);\nvar MenuSub = (props) => {\n const { __scopeMenu, children, open = false, onOpenChange } = props;\n const parentMenuContext = useMenuContext(SUB_NAME, __scopeMenu);\n const popperScope = usePopperScope(__scopeMenu);\n const [trigger, setTrigger] = React.useState(null);\n const [content, setContent] = React.useState(null);\n const handleOpenChange = useCallbackRef(onOpenChange);\n React.useEffect(() => {\n if (parentMenuContext.open === false) handleOpenChange(false);\n return () => handleOpenChange(false);\n }, [parentMenuContext.open, handleOpenChange]);\n return /* @__PURE__ */ jsx(PopperPrimitive.Root, { ...popperScope, children: /* @__PURE__ */ jsx(\n MenuProvider,\n {\n scope: __scopeMenu,\n open,\n onOpenChange: handleOpenChange,\n content,\n onContentChange: setContent,\n children: /* @__PURE__ */ jsx(\n MenuSubProvider,\n {\n scope: __scopeMenu,\n contentId: useId(),\n triggerId: useId(),\n trigger,\n onTriggerChange: setTrigger,\n children\n }\n )\n }\n ) });\n};\nMenuSub.displayName = SUB_NAME;\nvar SUB_TRIGGER_NAME = \"MenuSubTrigger\";\nvar MenuSubTrigger = React.forwardRef(\n (props, forwardedRef) => {\n const context = useMenuContext(SUB_TRIGGER_NAME, props.__scopeMenu);\n const rootContext = useMenuRootContext(SUB_TRIGGER_NAME, props.__scopeMenu);\n const subContext = useMenuSubContext(SUB_TRIGGER_NAME, props.__scopeMenu);\n const contentContext = useMenuContentContext(SUB_TRIGGER_NAME, props.__scopeMenu);\n const openTimerRef = React.useRef(null);\n const { pointerGraceTimerRef, onPointerGraceIntentChange } = contentContext;\n const scope = { __scopeMenu: props.__scopeMenu };\n const clearOpenTimer = React.useCallback(() => {\n if (openTimerRef.current) window.clearTimeout(openTimerRef.current);\n openTimerRef.current = null;\n }, []);\n React.useEffect(() => clearOpenTimer, [clearOpenTimer]);\n React.useEffect(() => {\n const pointerGraceTimer = pointerGraceTimerRef.current;\n return () => {\n window.clearTimeout(pointerGraceTimer);\n onPointerGraceIntentChange(null);\n };\n }, [pointerGraceTimerRef, onPointerGraceIntentChange]);\n return /* @__PURE__ */ jsx(MenuAnchor, { asChild: true, ...scope, children: /* @__PURE__ */ jsx(\n MenuItemImpl,\n {\n id: subContext.triggerId,\n \"aria-haspopup\": \"menu\",\n \"aria-expanded\": context.open,\n \"aria-controls\": subContext.contentId,\n \"data-state\": getOpenState(context.open),\n ...props,\n ref: composeRefs(forwardedRef, subContext.onTriggerChange),\n onClick: (event) => {\n props.onClick?.(event);\n if (props.disabled || event.defaultPrevented) return;\n event.currentTarget.focus();\n if (!context.open) context.onOpenChange(true);\n },\n onPointerMove: composeEventHandlers(\n props.onPointerMove,\n whenMouse((event) => {\n contentContext.onItemEnter(event);\n if (event.defaultPrevented) return;\n if (!props.disabled && !context.open && !openTimerRef.current) {\n contentContext.onPointerGraceIntentChange(null);\n openTimerRef.current = window.setTimeout(() => {\n context.onOpenChange(true);\n clearOpenTimer();\n }, 100);\n }\n })\n ),\n onPointerLeave: composeEventHandlers(\n props.onPointerLeave,\n whenMouse((event) => {\n clearOpenTimer();\n const contentRect = context.content?.getBoundingClientRect();\n if (contentRect) {\n const side = context.content?.dataset.side;\n const rightSide = side === \"right\";\n const bleed = rightSide ? -5 : 5;\n const contentNearEdge = contentRect[rightSide ? \"left\" : \"right\"];\n const contentFarEdge = contentRect[rightSide ? \"right\" : \"left\"];\n contentContext.onPointerGraceIntentChange({\n area: [\n // Apply a bleed on clientX to ensure that our exit point is\n // consistently within polygon bounds\n { x: event.clientX + bleed, y: event.clientY },\n { x: contentNearEdge, y: contentRect.top },\n { x: contentFarEdge, y: contentRect.top },\n { x: contentFarEdge, y: contentRect.bottom },\n { x: contentNearEdge, y: contentRect.bottom }\n ],\n side\n });\n window.clearTimeout(pointerGraceTimerRef.current);\n pointerGraceTimerRef.current = window.setTimeout(\n () => contentContext.onPointerGraceIntentChange(null),\n 300\n );\n } else {\n contentContext.onTriggerLeave(event);\n if (event.defaultPrevented) return;\n contentContext.onPointerGraceIntentChange(null);\n }\n })\n ),\n onKeyDown: composeEventHandlers(props.onKeyDown, (event) => {\n const isTypingAhead = contentContext.searchRef.current !== \"\";\n if (props.disabled || isTypingAhead && event.key === \" \") return;\n if (SUB_OPEN_KEYS[rootContext.dir].includes(event.key)) {\n context.onOpenChange(true);\n context.content?.focus();\n event.preventDefault();\n }\n })\n }\n ) });\n }\n);\nMenuSubTrigger.displayName = SUB_TRIGGER_NAME;\nvar SUB_CONTENT_NAME = \"MenuSubContent\";\nvar MenuSubContent = React.forwardRef(\n (props, forwardedRef) => {\n const portalContext = usePortalContext(CONTENT_NAME, props.__scopeMenu);\n const { forceMount = portalContext.forceMount, ...subContentProps } = props;\n const context = useMenuContext(CONTENT_NAME, props.__scopeMenu);\n const rootContext = useMenuRootContext(CONTENT_NAME, props.__scopeMenu);\n const subContext = useMenuSubContext(SUB_CONTENT_NAME, props.__scopeMenu);\n const ref = React.useRef(null);\n const composedRefs = useComposedRefs(forwardedRef, ref);\n return /* @__PURE__ */ jsx(Collection.Provider, { scope: props.__scopeMenu, children: /* @__PURE__ */ jsx(Presence, { present: forceMount || context.open, children: /* @__PURE__ */ jsx(Collection.Slot, { scope: props.__scopeMenu, children: /* @__PURE__ */ jsx(\n MenuContentImpl,\n {\n id: subContext.contentId,\n \"aria-labelledby\": subContext.triggerId,\n ...subContentProps,\n ref: composedRefs,\n align: \"start\",\n side: rootContext.dir === \"rtl\" ? \"left\" : \"right\",\n disableOutsidePointerEvents: false,\n disableOutsideScroll: false,\n trapFocus: false,\n onOpenAutoFocus: (event) => {\n if (rootContext.isUsingKeyboardRef.current) ref.current?.focus();\n event.preventDefault();\n },\n onCloseAutoFocus: (event) => event.preventDefault(),\n onFocusOutside: composeEventHandlers(props.onFocusOutside, (event) => {\n if (event.target !== subContext.trigger) context.onOpenChange(false);\n }),\n onEscapeKeyDown: composeEventHandlers(props.onEscapeKeyDown, (event) => {\n rootContext.onClose();\n event.preventDefault();\n }),\n onKeyDown: composeEventHandlers(props.onKeyDown, (event) => {\n const isKeyDownInside = event.currentTarget.contains(event.target);\n const isCloseKey = SUB_CLOSE_KEYS[rootContext.dir].includes(event.key);\n if (isKeyDownInside && isCloseKey) {\n context.onOpenChange(false);\n subContext.trigger?.focus();\n event.preventDefault();\n }\n })\n }\n ) }) }) });\n }\n);\nMenuSubContent.displayName = SUB_CONTENT_NAME;\nfunction getOpenState(open) {\n return open ? \"open\" : \"closed\";\n}\nfunction isIndeterminate(checked) {\n return checked === \"indeterminate\";\n}\nfunction getCheckedState(checked) {\n return isIndeterminate(checked) ? \"indeterminate\" : checked ? \"checked\" : \"unchecked\";\n}\nfunction focusFirst(candidates) {\n const PREVIOUSLY_FOCUSED_ELEMENT = document.activeElement;\n for (const candidate of candidates) {\n if (candidate === PREVIOUSLY_FOCUSED_ELEMENT) return;\n candidate.focus();\n if (document.activeElement !== PREVIOUSLY_FOCUSED_ELEMENT) return;\n }\n}\nfunction wrapArray(array, startIndex) {\n return array.map((_, index) => array[(startIndex + index) % array.length]);\n}\nfunction getNextMatch(values, search, currentMatch) {\n const isRepeated = search.length > 1 && Array.from(search).every((char) => char === search[0]);\n const normalizedSearch = isRepeated ? search[0] : search;\n const currentMatchIndex = currentMatch ? values.indexOf(currentMatch) : -1;\n let wrappedValues = wrapArray(values, Math.max(currentMatchIndex, 0));\n const excludeCurrentMatch = normalizedSearch.length === 1;\n if (excludeCurrentMatch) wrappedValues = wrappedValues.filter((v) => v !== currentMatch);\n const nextMatch = wrappedValues.find(\n (value) => value.toLowerCase().startsWith(normalizedSearch.toLowerCase())\n );\n return nextMatch !== currentMatch ? nextMatch : void 0;\n}\nfunction isPointInPolygon(point, polygon) {\n const { x, y } = point;\n let inside = false;\n for (let i = 0, j = polygon.length - 1; i < polygon.length; j = i++) {\n const ii = polygon[i];\n const jj = polygon[j];\n const xi = ii.x;\n const yi = ii.y;\n const xj = jj.x;\n const yj = jj.y;\n const intersect = yi > y !== yj > y && x < (xj - xi) * (y - yi) / (yj - yi) + xi;\n if (intersect) inside = !inside;\n }\n return inside;\n}\nfunction isPointerInGraceArea(event, area) {\n if (!area) return false;\n const cursorPos = { x: event.clientX, y: event.clientY };\n return isPointInPolygon(cursorPos, area);\n}\nfunction whenMouse(handler) {\n return (event) => event.pointerType === \"mouse\" ? handler(event) : void 0;\n}\nvar Root3 = Menu;\nvar Anchor2 = MenuAnchor;\nvar Portal = MenuPortal;\nvar Content2 = MenuContent;\nvar Group = MenuGroup;\nvar Label = MenuLabel;\nvar Item2 = MenuItem;\nvar CheckboxItem = MenuCheckboxItem;\nvar RadioGroup = MenuRadioGroup;\nvar RadioItem = MenuRadioItem;\nvar ItemIndicator = MenuItemIndicator;\nvar Separator = MenuSeparator;\nvar Arrow2 = MenuArrow;\nvar Sub = MenuSub;\nvar SubTrigger = MenuSubTrigger;\nvar SubContent = MenuSubContent;\nexport {\n Anchor2 as Anchor,\n Arrow2 as Arrow,\n CheckboxItem,\n Content2 as Content,\n Group,\n Item2 as Item,\n ItemIndicator,\n Label,\n Menu,\n MenuAnchor,\n MenuArrow,\n MenuCheckboxItem,\n MenuContent,\n MenuGroup,\n MenuItem,\n MenuItemIndicator,\n MenuLabel,\n MenuPortal,\n MenuRadioGroup,\n MenuRadioItem,\n MenuSeparator,\n MenuSub,\n MenuSubContent,\n MenuSubTrigger,\n Portal,\n RadioGroup,\n RadioItem,\n Root3 as Root,\n Separator,\n Sub,\n SubContent,\n SubTrigger,\n createMenuScope\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["SELECTION_KEYS","FIRST_KEYS","LAST_KEYS","FIRST_LAST_KEYS","SUB_OPEN_KEYS","SUB_CLOSE_KEYS","MENU_NAME","Collection","useCollection","createCollectionScope","createCollection","createMenuContext","createMenuScope","createContextScope","createPopperScope","createRovingFocusGroupScope","usePopperScope","useRovingFocusGroupScope","MenuProvider","useMenuContext","MenuRootProvider","useMenuRootContext","Menu","props","__scopeMenu","open","children","dir","onOpenChange","modal","popperScope","content","setContent","React","isUsingKeyboardRef","handleOpenChange","useCallbackRef","direction","useDirection","handleKeyDown","handlePointer","jsx","PopperPrimitive.Root","ANCHOR_NAME","MenuAnchor","forwardedRef","anchorProps","PopperPrimitive.Anchor","PORTAL_NAME","PortalProvider","usePortalContext","MenuPortal","forceMount","container","context","Presence","PortalPrimitive","CONTENT_NAME","MenuContentProvider","useMenuContentContext","MenuContent","portalContext","contentProps","rootContext","MenuRootContentModal","MenuRootContentNonModal","ref","composedRefs","useComposedRefs","hideOthers","MenuContentImpl","composeEventHandlers","event","Slot","createSlot","loop","trapFocus","onOpenAutoFocus","onCloseAutoFocus","disableOutsidePointerEvents","onEntryFocus","onEscapeKeyDown","onPointerDownOutside","onFocusOutside","onInteractOutside","onDismiss","disableOutsideScroll","rovingFocusGroupScope","getItems","currentItemId","setCurrentItemId","contentRef","timerRef","searchRef","pointerGraceTimerRef","pointerGraceIntentRef","pointerDirRef","lastPointerXRef","ScrollLockWrapper","RemoveScroll","scrollLockWrapperProps","handleTypeaheadSearch","key","search","items","item","currentItem","currentMatch","values","nextMatch","getNextMatch","newItem","updateSearch","value","useFocusGuards","isPointerMovingToSubmenu","isPointerInGraceArea","intent","FocusScope","DismissableLayer","RovingFocusGroup.Root","PopperPrimitive.Content","getOpenState","isKeyDownInside","isModifierKey","isCharacterKey","candidateNodes","focusFirst","whenMouse","target","pointerXHasChanged","newDir","GROUP_NAME","MenuGroup","groupProps","Primitive","LABEL_NAME","MenuLabel","labelProps","ITEM_NAME","ITEM_SELECT","MenuItem","disabled","onSelect","itemProps","contentContext","isPointerDownRef","handleSelect","menuItem","itemSelectEvent","dispatchDiscreteCustomEvent","MenuItemImpl","isTypingAhead","textValue","isFocused","setIsFocused","textContent","setTextContent","RovingFocusGroup.Item","CHECKBOX_ITEM_NAME","MenuCheckboxItem","checked","onCheckedChange","checkboxItemProps","ItemIndicatorProvider","isIndeterminate","getCheckedState","RADIO_GROUP_NAME","RadioGroupProvider","useRadioGroupContext","MenuRadioGroup","onValueChange","handleValueChange","RADIO_ITEM_NAME","MenuRadioItem","radioItemProps","ITEM_INDICATOR_NAME","useItemIndicatorContext","MenuItemIndicator","itemIndicatorProps","indicatorContext","SEPARATOR_NAME","MenuSeparator","separatorProps","ARROW_NAME","MenuArrow","arrowProps","PopperPrimitive.Arrow","SUB_NAME","MenuSubProvider","useMenuSubContext","SUB_TRIGGER_NAME","MenuSubTrigger","subContext","openTimerRef","onPointerGraceIntentChange","scope","clearOpenTimer","pointerGraceTimer","composeRefs","contentRect","side","rightSide","bleed","contentNearEdge","contentFarEdge","SUB_CONTENT_NAME","MenuSubContent","subContentProps","isCloseKey","candidates","PREVIOUSLY_FOCUSED_ELEMENT","candidate","wrapArray","array","startIndex","_","index","normalizedSearch","char","currentMatchIndex","wrappedValues","v","isPointInPolygon","point","polygon","x","y","inside","i","j","ii","jj","xi","yi","xj","yj","area","cursorPos","handler","Root3","Anchor2","Portal","Content2","Group","Label","Item2","CheckboxItem","RadioGroup","RadioItem","ItemIndicator","Separator","Arrow2","SubTrigger","SubContent"],"mappings":";;;;;;;;;;;;;;;;;;;AAyBA,IAAIA,IAAiB,CAAC,SAAS,GAAG,GAC9BC,KAAa,CAAC,aAAa,UAAU,MAAM,GAC3CC,KAAY,CAAC,WAAW,YAAY,KAAK,GACzCC,KAAkB,CAAC,GAAGF,IAAY,GAAGC,EAAS,GAC9CE,KAAgB;AAAA,EAClB,KAAK,CAAC,GAAGJ,GAAgB,YAAY;AAAA,EACrC,KAAK,CAAC,GAAGA,GAAgB,WAAW;AACtC,GACIK,KAAiB;AAAA,EACnB,KAAK,CAAC,WAAW;AAAA,EACjB,KAAK,CAAC,YAAY;AACpB,GACIC,IAAY,QACZ,CAACC,GAAYC,IAAeC,EAAqB,IAAIC,GAAiBJ,CAAS,GAC/E,CAACK,GAAmBC,EAAe,IAAIC,GAAmBP,GAAW;AAAA,EACvEG;AAAA,EACAK;AAAA,EACAC;AACF,CAAC,GACGC,IAAiBF,GAAiB,GAClCG,KAA2BF,GAA2B,GACtD,CAACG,IAAcC,CAAc,IAAIR,EAAkBL,CAAS,GAC5D,CAACc,IAAkBC,CAAkB,IAAIV,EAAkBL,CAAS,GACpEgB,KAAO,CAACC,MAAU;AACpB,QAAM,EAAE,aAAAC,GAAa,MAAAC,IAAO,IAAO,UAAAC,GAAU,KAAAC,GAAK,cAAAC,GAAc,OAAAC,IAAQ,GAAI,IAAKN,GAC3EO,IAAcd,EAAeQ,CAAW,GACxC,CAACO,GAASC,CAAU,IAAIC,EAAM,SAAS,IAAI,GAC3CC,IAAqBD,EAAM,OAAO,EAAK,GACvCE,IAAmBC,GAAeR,CAAY,GAC9CS,IAAYC,GAAaX,CAAG;AAClC,SAAAM,EAAM,UAAU,MAAM;AACpB,UAAMM,IAAgB,MAAM;AAC1B,MAAAL,EAAmB,UAAU,IAC7B,SAAS,iBAAiB,eAAeM,GAAe,EAA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AW,CAAE;AAAA,EAC5E;AACE,SAAO7G,MAAcF,IAAeE,IAAY;AAClD;AACA,SAASkH,GAAiBC,GAAOC,GAAS;AACxC,QAAM,EAAE,GAAAC,GAAG,GAAAC,EAAC,IAAKH;AACjB,MAAII,IAAS;AACb,WAASC,IAAI,GAAGC,IAAIL,EAAQ,SAAS,GAAGI,IAAIJ,EAAQ,QAAQK,IAAID,KAAK;AACnE,UAAME,IAAKN,EAAQI,CAAC,GACdG,IAAKP,EAAQK,CAAC,GACdG,IAAKF,EAAG,GACRG,IAAKH,EAAG,GACRI,IAAKH,EAAG,GACRI,IAAKJ,EAAG;AAEd,IADkBE,IAAKP,KAAMS,IAAKT,KAAKD,KAAKS,IAAKF,MAAON,IAAIO,MAAOE,IAAKF,KAAMD,MAC/DL,IAAS,CAACA;AAAA,EAC3B;AACA,SAAOA;AACT;AACA,SAAShH,GAAqB5C,GAAOqK,GAAM;AACzC,MAAI,CAACA,EAAM,QAAO;AAClB,QAAMC,IAAY,EAAE,GAAGtK,EAAM,SAAS,GAAGA,EAAM,QAAO;AACtD,SAAOuJ,GAAiBe,GAAWD,CAAI;AACzC;AACA,SAAS7G,EAAU+G,GAAS;AAC1B,SAAO,CAACvK,MAAUA,EAAM,gBAAgB,UAAUuK,EAAQvK,CAAK,IAAI;AACrE;AACG,IAACwK,KAAQ1N,IACR2N,KAAUrM,GACVsM,KAAS/L,IACTgM,KAAWvL,IACXwL,KAAQ/G,IACRgH,KAAQ5G,IACR6G,KAAQzG,GACR0G,KAAevF,IACfwF,KAAa9E,IACb+E,KAAY3E,IACZ4E,KAAgBxE,IAChByE,KAAYrE,IACZsE,KAASnE,IAEToE,KAAa7D,IACb8D,KAAa/C;","x_google_ignoreList":[0]}
|
|
1
|
+
{"version":3,"file":"index85.js","sources":["../../../node_modules/libphonenumber-js/es6/AsYouType.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 Metadata from './metadata.js';\nimport PhoneNumber from './PhoneNumber.js';\nimport AsYouTypeState from './AsYouTypeState.js';\nimport AsYouTypeFormatter, { DIGIT_PLACEHOLDER } from './AsYouTypeFormatter.js';\nimport AsYouTypeParser, { extractFormattedDigitsAndPlus } from './AsYouTypeParser.js';\nimport getCountryByCallingCode from './helpers/getCountryByCallingCode.js';\nimport getCountryByNationalNumber from './helpers/getCountryByNationalNumber.js';\nimport isObject from './helpers/isObject.js';\nvar USE_NON_GEOGRAPHIC_COUNTRY_CODE = false;\nvar AsYouType = /*#__PURE__*/function () {\n /**\r\n * @param {(string|object)?} [optionsOrDefaultCountry] - The default country used for parsing non-international phone numbers. Can also be an `options` object.\r\n * @param {Object} metadata\r\n */\n function AsYouType(optionsOrDefaultCountry, metadata) {\n _classCallCheck(this, AsYouType);\n this.metadata = new Metadata(metadata);\n var _this$getCountryAndCa = this.getCountryAndCallingCode(optionsOrDefaultCountry),\n _this$getCountryAndCa2 = _slicedToArray(_this$getCountryAndCa, 2),\n defaultCountry = _this$getCountryAndCa2[0],\n defaultCallingCode = _this$getCountryAndCa2[1];\n // `this.defaultCountry` and `this.defaultCallingCode` aren't required to be in sync.\n // For example, `this.defaultCountry` could be `\"AR\"` and `this.defaultCallingCode` could be `undefined`.\n // So `this.defaultCountry` and `this.defaultCallingCode` are totally independent.\n this.defaultCountry = defaultCountry;\n this.defaultCallingCode = defaultCallingCode;\n this.reset();\n }\n return _createClass(AsYouType, [{\n key: \"getCountryAndCallingCode\",\n value: function getCountryAndCallingCode(optionsOrDefaultCountry) {\n // Set `defaultCountry` and `defaultCallingCode` options.\n var defaultCountry;\n var defaultCallingCode;\n // Turns out `null` also has type \"object\". Weird.\n if (optionsOrDefaultCountry) {\n if (isObject(optionsOrDefaultCountry)) {\n defaultCountry = optionsOrDefaultCountry.defaultCountry;\n defaultCallingCode = optionsOrDefaultCountry.defaultCallingCode;\n } else {\n defaultCountry = optionsOrDefaultCountry;\n }\n }\n if (defaultCountry && !this.metadata.hasCountry(defaultCountry)) {\n defaultCountry = undefined;\n }\n if (defaultCallingCode) {\n /* istanbul ignore if */\n if (USE_NON_GEOGRAPHIC_COUNTRY_CODE) {\n if (this.metadata.isNonGeographicCallingCode(defaultCallingCode)) {\n defaultCountry = '001';\n }\n }\n }\n return [defaultCountry, defaultCallingCode];\n }\n\n /**\r\n * Inputs \"next\" phone number characters.\r\n * @param {string} text\r\n * @return {string} Formatted phone number characters that have been input so far.\r\n */\n }, {\n key: \"input\",\n value: function input(text) {\n var _this$parser$input = this.parser.input(text, this.state),\n digits = _this$parser$input.digits,\n justLeadingPlus = _this$parser$input.justLeadingPlus;\n if (justLeadingPlus) {\n this.formattedOutput = '+';\n } else if (digits) {\n this.determineTheCountryIfNeeded();\n // Match the available formats by the currently available leading digits.\n if (this.state.nationalSignificantNumber) {\n this.formatter.narrowDownMatchingFormats(this.state);\n }\n var formattedNationalNumber;\n if (this.metadata.hasSelectedNumberingPlan()) {\n formattedNationalNumber = this.formatter.format(digits, this.state);\n }\n if (formattedNationalNumber === undefined) {\n // See if another national (significant) number could be re-extracted.\n if (this.parser.reExtractNationalSignificantNumber(this.state)) {\n this.determineTheCountryIfNeeded();\n // If it could, then re-try formatting the new national (significant) number.\n var nationalDigits = this.state.getNationalDigits();\n if (nationalDigits) {\n formattedNationalNumber = this.formatter.format(nationalDigits, this.state);\n }\n }\n }\n this.formattedOutput = formattedNationalNumber ? this.getFullNumber(formattedNationalNumber) : this.getNonFormattedNumber();\n }\n return this.formattedOutput;\n }\n }, {\n key: \"reset\",\n value: function reset() {\n var _this = this;\n this.state = new AsYouTypeState({\n onCountryChange: function onCountryChange(country) {\n // Before version `1.6.0`, the official `AsYouType` formatter API\n // included a `.country` property on an `AsYouType` instance.\n // Since that property (along with the others) have been moved to\n // `this.state`, `this.country` property is emulated for compatibility\n // with the old versions.\n _this.country = country;\n },\n onCallingCodeChange: function onCallingCodeChange(callingCode, country) {\n _this.metadata.selectNumberingPlan(country, callingCode);\n _this.formatter.reset(_this.metadata.numberingPlan, _this.state);\n _this.parser.reset(_this.metadata.numberingPlan);\n }\n });\n this.formatter = new AsYouTypeFormatter({\n state: this.state,\n metadata: this.metadata\n });\n this.parser = new AsYouTypeParser({\n defaultCountry: this.defaultCountry,\n defaultCallingCode: this.defaultCallingCode,\n metadata: this.metadata,\n state: this.state,\n onNationalSignificantNumberChange: function onNationalSignificantNumberChange() {\n _this.determineTheCountryIfNeeded();\n _this.formatter.reset(_this.metadata.numberingPlan, _this.state);\n }\n });\n this.state.reset({\n country: this.defaultCountry,\n callingCode: this.defaultCallingCode\n });\n this.formattedOutput = '';\n return this;\n }\n\n /**\r\n * Returns `true` if the phone number is being input in international format.\r\n * In other words, returns `true` if and only if the parsed phone number starts with a `\"+\"`.\r\n * @return {boolean}\r\n */\n }, {\n key: \"isInternational\",\n value: function isInternational() {\n return this.state.international;\n }\n\n /**\r\n * Returns the \"calling code\" part of the phone number when it's being input\r\n * in an international format.\r\n * If no valid calling code has been entered so far, returns `undefined`.\r\n * @return {string} [callingCode]\r\n */\n }, {\n key: \"getCallingCode\",\n value: function getCallingCode() {\n // If the number is being input in national format and some \"default calling code\"\n // has been passed to `AsYouType` constructor, then `this.state.callingCode`\n // is equal to that \"default calling code\".\n //\n // If the number is being input in national format and no \"default calling code\"\n // has been passed to `AsYouType` constructor, then returns `undefined`,\n // even if a \"default country\" has been passed to `AsYouType` constructor.\n //\n if (this.isInternational()) {\n return this.state.callingCode;\n }\n }\n\n // A legacy alias.\n }, {\n key: \"getCountryCallingCode\",\n value: function getCountryCallingCode() {\n return this.getCallingCode();\n }\n\n /**\r\n * Returns a two-letter country code of the phone number.\r\n * Returns `undefined` for \"non-geographic\" phone numbering plans.\r\n * Returns `undefined` if no phone number has been input yet.\r\n * @return {string} [country]\r\n */\n }, {\n key: \"getCountry\",\n value: function getCountry() {\n var digits = this.state.digits;\n // Return `undefined` if no digits have been input yet.\n if (digits) {\n return this._getCountry();\n }\n }\n\n /**\r\n * Returns a two-letter country code of the phone number.\r\n * Returns `undefined` for \"non-geographic\" phone numbering plans.\r\n * @return {string} [country]\r\n */\n }, {\n key: \"_getCountry\",\n value: function _getCountry() {\n var country = this.state.country;\n /* istanbul ignore if */\n if (USE_NON_GEOGRAPHIC_COUNTRY_CODE) {\n // `AsYouType.getCountry()` returns `undefined`\n // for \"non-geographic\" phone numbering plans.\n if (country === '001') {\n return;\n }\n }\n return country;\n }\n }, {\n key: \"determineTheCountryIfNeeded\",\n value: function determineTheCountryIfNeeded() {\n // Suppose a user enters a phone number in international format,\n // and there're several countries corresponding to that country calling code,\n // and a country has been derived from the number, and then\n // a user enters one more digit and the number is no longer\n // valid for the derived country, so the country should be re-derived\n // on every new digit in those cases.\n //\n // If the phone number is being input in national format,\n // then it could be a case when `defaultCountry` wasn't specified\n // when creating `AsYouType` instance, and just `defaultCallingCode` was specified,\n // and that \"calling code\" could correspond to a \"non-geographic entity\",\n // or there could be several countries corresponding to that country calling code.\n // In those cases, `this.country` is `undefined` and should be derived\n // from the number. Again, if country calling code is ambiguous, then\n // `this.country` should be re-derived with each new digit.\n //\n if (!this.state.country || this.isCountryCallingCodeAmbiguous()) {\n this.determineTheCountry();\n }\n }\n\n // Prepends `+CountryCode ` in case of an international phone number\n }, {\n key: \"getFullNumber\",\n value: function getFullNumber(formattedNationalNumber) {\n var _this2 = this;\n if (this.isInternational()) {\n var prefix = function prefix(text) {\n return _this2.formatter.getInternationalPrefixBeforeCountryCallingCode(_this2.state, {\n spacing: text ? true : false\n }) + text;\n };\n var callingCode = this.state.callingCode;\n if (!callingCode) {\n return prefix(\"\".concat(this.state.getDigitsWithoutInternationalPrefix()));\n }\n if (!formattedNationalNumber) {\n return prefix(callingCode);\n }\n return prefix(\"\".concat(callingCode, \" \").concat(formattedNationalNumber));\n }\n return formattedNationalNumber;\n }\n }, {\n key: \"getNonFormattedNationalNumberWithPrefix\",\n value: function getNonFormattedNationalNumberWithPrefix() {\n var _this$state = this.state,\n nationalSignificantNumber = _this$state.nationalSignificantNumber,\n prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix = _this$state.prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix,\n nationalPrefix = _this$state.nationalPrefix;\n var number = nationalSignificantNumber;\n var prefix = prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix || nationalPrefix;\n if (prefix) {\n number = prefix + number;\n }\n return number;\n }\n }, {\n key: \"getNonFormattedNumber\",\n value: function getNonFormattedNumber() {\n var nationalSignificantNumberIsModified = this.state.nationalSignificantNumberIsModified;\n return this.getFullNumber(nationalSignificantNumberIsModified ? this.state.getNationalDigits() : this.getNonFormattedNationalNumberWithPrefix());\n }\n }, {\n key: \"getNonFormattedTemplate\",\n value: function getNonFormattedTemplate() {\n var number = this.getNonFormattedNumber();\n if (number) {\n return number.replace(/[\\+\\d]/g, DIGIT_PLACEHOLDER);\n }\n }\n }, {\n key: \"isCountryCallingCodeAmbiguous\",\n value: function isCountryCallingCodeAmbiguous() {\n var callingCode = this.state.callingCode;\n var countryCodes = this.metadata.getCountryCodesForCallingCode(callingCode);\n return countryCodes && countryCodes.length > 1;\n }\n\n // Determines the exact country of the phone number\n // entered so far based on the country phone code\n // and the national phone number.\n }, {\n key: \"determineTheCountry\",\n value: function determineTheCountry() {\n this.state.setCountry(getCountryByCallingCode(this.isInternational() ? this.state.callingCode : this.defaultCallingCode, {\n nationalNumber: this.state.nationalSignificantNumber,\n metadata: this.metadata\n }));\n }\n\n /**\r\n * Returns a E.164 phone number value for the user's input.\r\n *\r\n * For example, for country `\"US\"` and input `\"(222) 333-4444\"`\r\n * it will return `\"+12223334444\"`.\r\n *\r\n * For international phone number input, it will also auto-correct\r\n * some minor errors such as using a national prefix when writing\r\n * an international phone number. For example, if the user inputs\r\n * `\"+44 0 7400 000000\"` then it will return an auto-corrected\r\n * `\"+447400000000\"` phone number value.\r\n *\r\n * Will return `undefined` if no digits have been input,\r\n * or when inputting a phone number in national format and no\r\n * default country or default \"country calling code\" have been set.\r\n *\r\n * @return {string} [value]\r\n */\n }, {\n key: \"getNumberValue\",\n value: function getNumberValue() {\n var _this$state2 = this.state,\n digits = _this$state2.digits,\n callingCode = _this$state2.callingCode,\n country = _this$state2.country,\n nationalSignificantNumber = _this$state2.nationalSignificantNumber;\n\n // Will return `undefined` if no digits have been input.\n if (!digits) {\n return;\n }\n if (this.isInternational()) {\n if (callingCode) {\n return '+' + callingCode + nationalSignificantNumber;\n } else {\n return '+' + digits;\n }\n } else {\n if (country || callingCode) {\n var callingCode_ = country ? this.metadata.countryCallingCode() : callingCode;\n return '+' + callingCode_ + nationalSignificantNumber;\n }\n }\n }\n\n /**\r\n * Returns an instance of `PhoneNumber` class.\r\n * Will return `undefined` if no national (significant) number\r\n * digits have been entered so far, or if no `defaultCountry` has been\r\n * set and the user enters a phone number not in international format.\r\n */\n }, {\n key: \"getNumber\",\n value: function getNumber() {\n var _this$state3 = this.state,\n nationalSignificantNumber = _this$state3.nationalSignificantNumber,\n carrierCode = _this$state3.carrierCode,\n callingCode = _this$state3.callingCode;\n\n // `this._getCountry()` is basically same as `this.state.country`\n // with the only change that it return `undefined` in case of a\n // \"non-geographic\" numbering plan instead of `\"001\"` \"internal use\" value.\n var country = this._getCountry();\n if (!nationalSignificantNumber) {\n return;\n }\n\n // `state.country` and `state.callingCode` aren't required to be in sync.\n // For example, `country` could be `\"AR\"` and `callingCode` could be `undefined`.\n // So `country` and `callingCode` are totally independent.\n\n if (!country && !callingCode) {\n return;\n }\n\n // By default, if `defaultCountry` parameter was passed when\n // creating `AsYouType` instance, `state.country` is gonna be\n // that `defaultCountry`, which doesn't entirely conform with\n // `parsePhoneNumber()`'s behavior where it attempts to determine\n // the country more precisely in cases when multiple countries\n // could correspond to the same `countryCallingCode`.\n // https://gitlab.com/catamphetamine/libphonenumber-js/-/issues/103#note_1417192969\n //\n // Because `AsYouType.getNumber()` method is supposed to be a 1:1\n // equivalent for `parsePhoneNumber(AsYouType.getNumberValue())`,\n // then it should also behave accordingly in cases of `country` ambiguity.\n // That's how users of this library would expect it to behave anyway.\n //\n if (country) {\n if (country === this.defaultCountry) {\n // `state.country` and `state.callingCode` aren't required to be in sync.\n // For example, `state.country` could be `\"AR\"` and `state.callingCode` could be `undefined`.\n // So `state.country` and `state.callingCode` are totally independent.\n var metadata = new Metadata(this.metadata.metadata);\n metadata.selectNumberingPlan(country);\n var _callingCode = metadata.numberingPlan.callingCode();\n var ambiguousCountries = this.metadata.getCountryCodesForCallingCode(_callingCode);\n if (ambiguousCountries.length > 1) {\n var exactCountry = getCountryByNationalNumber(nationalSignificantNumber, {\n countries: ambiguousCountries,\n metadata: this.metadata.metadata\n });\n if (exactCountry) {\n country = exactCountry;\n }\n }\n }\n }\n var phoneNumber = new PhoneNumber(country || callingCode, nationalSignificantNumber, this.metadata.metadata);\n if (carrierCode) {\n phoneNumber.carrierCode = carrierCode;\n }\n // Phone number extensions are not supported by \"As You Type\" formatter.\n return phoneNumber;\n }\n\n /**\r\n * Returns `true` if the phone number is \"possible\".\r\n * Is just a shortcut for `PhoneNumber.isPossible()`.\r\n * @return {boolean}\r\n */\n }, {\n key: \"isPossible\",\n value: function isPossible() {\n var phoneNumber = this.getNumber();\n if (!phoneNumber) {\n return false;\n }\n return phoneNumber.isPossible();\n }\n\n /**\r\n * Returns `true` if the phone number is \"valid\".\r\n * Is just a shortcut for `PhoneNumber.isValid()`.\r\n * @return {boolean}\r\n */\n }, {\n key: \"isValid\",\n value: function isValid() {\n var phoneNumber = this.getNumber();\n if (!phoneNumber) {\n return false;\n }\n return phoneNumber.isValid();\n }\n\n /**\r\n * @deprecated\r\n * This method is used in `react-phone-number-input/source/input-control.js`\r\n * in versions before `3.0.16`.\r\n */\n }, {\n key: \"getNationalNumber\",\n value: function getNationalNumber() {\n return this.state.nationalSignificantNumber;\n }\n\n /**\r\n * Returns the phone number characters entered by the user.\r\n * @return {string}\r\n */\n }, {\n key: \"getChars\",\n value: function getChars() {\n return (this.state.international ? '+' : '') + this.state.digits;\n }\n\n /**\r\n * Returns the template for the formatted phone number.\r\n * @return {string}\r\n */\n }, {\n key: \"getTemplate\",\n value: function getTemplate() {\n return this.formatter.getTemplate(this.state) || this.getNonFormattedTemplate() || '';\n }\n }]);\n}();\nexport { AsYouType as default };\n//# sourceMappingURL=AsYouType.js.map"],"names":["_typeof","o","_slicedToArray","r","_arrayWithHoles","_iterableToArrayLimit","_unsupportedIterableToArray","_nonIterableRest","a","_arrayLikeToArray","e","n","l","i","u","f","_classCallCheck","_defineProperties","_toPropertyKey","_createClass","t","_toPrimitive","AsYouType","optionsOrDefaultCountry","metadata","Metadata","_this$getCountryAndCa","_this$getCountryAndCa2","defaultCountry","defaultCallingCode","isObject","text","_this$parser$input","digits","justLeadingPlus","formattedNationalNumber","nationalDigits","_this","AsYouTypeState","country","callingCode","AsYouTypeFormatter","AsYouTypeParser","_this2","prefix","_this$state","nationalSignificantNumber","prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix","nationalPrefix","number","nationalSignificantNumberIsModified","DIGIT_PLACEHOLDER","countryCodes","getCountryByCallingCode","_this$state2","callingCode_","_this$state3","carrierCode","_callingCode","ambiguousCountries","exactCountry","getCountryByNationalNumber","phoneNumber","PhoneNumber"],"mappings":";;;;;;;;;AAAA,SAASA,EAAQC,GAAG;AAAE;AAA2B,SAAOD,IAAwB,OAAO,UAArB,cAA2C,OAAO,OAAO,YAA1B,WAAqC,SAAUC,GAAG;AAAE,WAAO,OAAOA;AAAA,EAAG,IAA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
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
1
|
+
import { DIGIT_PLACEHOLDER as m, cutAndStripNonPairedParens as P, repeat as N, populateTemplateWithDigits as I } from "./index87.js";
|
|
2
|
+
import R, { canFormatCompleteNumber as E } from "./index88.js";
|
|
3
|
+
import D from "./index89.js";
|
|
4
|
+
import T from "./index90.js";
|
|
5
|
+
import { FIRST_GROUP_PATTERN as _ } from "./index91.js";
|
|
6
|
+
import { VALID_PUNCTUATION as g } from "./index92.js";
|
|
7
|
+
import C from "./index93.js";
|
|
8
|
+
function c(r) {
|
|
9
|
+
"@babel/helpers - typeof";
|
|
10
|
+
return c = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(a) {
|
|
11
|
+
return typeof a;
|
|
12
|
+
} : function(a) {
|
|
13
|
+
return a && typeof Symbol == "function" && a.constructor === Symbol && a !== Symbol.prototype ? "symbol" : typeof a;
|
|
14
|
+
}, c(r);
|
|
15
|
+
}
|
|
16
|
+
function b(r, a) {
|
|
17
|
+
var t = typeof Symbol < "u" && r[Symbol.iterator] || r["@@iterator"];
|
|
18
|
+
if (t) return (t = t.call(r)).next.bind(t);
|
|
19
|
+
if (Array.isArray(r) || (t = w(r)) || a) {
|
|
20
|
+
t && (r = t);
|
|
21
|
+
var e = 0;
|
|
22
|
+
return function() {
|
|
23
|
+
return e >= r.length ? { done: !0 } : { done: !1, value: r[e++] };
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
27
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
28
|
+
}
|
|
29
|
+
function w(r, a) {
|
|
30
|
+
if (r) {
|
|
31
|
+
if (typeof r == "string") return x(r, a);
|
|
32
|
+
var t = {}.toString.call(r).slice(8, -1);
|
|
33
|
+
return t === "Object" && r.constructor && (t = r.constructor.name), t === "Map" || t === "Set" ? Array.from(r) : t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? x(r, a) : void 0;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
function x(r, a) {
|
|
37
|
+
(a == null || a > r.length) && (a = r.length);
|
|
38
|
+
for (var t = 0, e = Array(a); t < a; t++) e[t] = r[t];
|
|
39
|
+
return e;
|
|
40
|
+
}
|
|
41
|
+
function O(r, a) {
|
|
42
|
+
if (!(r instanceof a)) throw new TypeError("Cannot call a class as a function");
|
|
43
|
+
}
|
|
44
|
+
function k(r, a) {
|
|
45
|
+
for (var t = 0; t < a.length; t++) {
|
|
46
|
+
var e = a[t];
|
|
47
|
+
e.enumerable = e.enumerable || !1, e.configurable = !0, "value" in e && (e.writable = !0), Object.defineProperty(r, L(e.key), e);
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
function M(r, a, t) {
|
|
51
|
+
return a && k(r.prototype, a), Object.defineProperty(r, "prototype", { writable: !1 }), r;
|
|
52
|
+
}
|
|
53
|
+
function L(r) {
|
|
54
|
+
var a = G(r, "string");
|
|
55
|
+
return c(a) == "symbol" ? a : a + "";
|
|
56
|
+
}
|
|
57
|
+
function G(r, a) {
|
|
58
|
+
if (c(r) != "object" || !r) return r;
|
|
59
|
+
var t = r[Symbol.toPrimitive];
|
|
60
|
+
if (t !== void 0) {
|
|
61
|
+
var e = t.call(r, a);
|
|
62
|
+
if (c(e) != "object") return e;
|
|
63
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
64
|
+
}
|
|
65
|
+
return String(r);
|
|
66
|
+
}
|
|
67
|
+
var v = "9", B = 15, U = N(v, B), H = /[- ]/, W = function() {
|
|
68
|
+
return /\[([^\[\]])*\]/g;
|
|
69
|
+
}, j = function() {
|
|
70
|
+
return /\d(?=[^,}][^,}])/g;
|
|
71
|
+
}, $ = new RegExp("[" + g + "]*\\$1[" + g + "]*(\\$\\d[" + g + "]*)*$"), A = 3, Q = /* @__PURE__ */ (function() {
|
|
72
|
+
function r(a) {
|
|
73
|
+
a.state;
|
|
74
|
+
var t = a.metadata;
|
|
75
|
+
O(this, r), this.metadata = t, this.resetFormat();
|
|
76
|
+
}
|
|
77
|
+
return M(r, [{
|
|
78
|
+
key: "resetFormat",
|
|
79
|
+
value: function() {
|
|
80
|
+
this.chosenFormat = void 0, this.template = void 0, this.nationalNumberTemplate = void 0, this.populatedNationalNumberTemplate = void 0, this.populatedNationalNumberTemplatePosition = -1;
|
|
81
|
+
}
|
|
82
|
+
}, {
|
|
83
|
+
key: "reset",
|
|
84
|
+
value: function(t, e) {
|
|
85
|
+
this.resetFormat(), t ? (this.isNANP = t.callingCode() === "1", this.matchingFormats = t.formats(), e.nationalSignificantNumber && this.narrowDownMatchingFormats(e)) : (this.isNANP = void 0, this.matchingFormats = []);
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* Formats an updated phone number.
|
|
89
|
+
* @param {string} nextDigits — Additional phone number digits.
|
|
90
|
+
* @param {object} state — `AsYouType` state.
|
|
91
|
+
* @return {[string]} Returns undefined if the updated phone number can't be formatted using any of the available formats.
|
|
92
|
+
*/
|
|
93
|
+
}, {
|
|
94
|
+
key: "format",
|
|
95
|
+
value: function(t, e) {
|
|
96
|
+
var i = this;
|
|
97
|
+
if (E(e.nationalSignificantNumber, e.country, this.metadata))
|
|
98
|
+
for (var n = b(this.matchingFormats), o; !(o = n()).done; ) {
|
|
99
|
+
var s = o.value, l = R(e, s, {
|
|
100
|
+
metadata: this.metadata,
|
|
101
|
+
shouldTryNationalPrefixFormattingRule: function(f) {
|
|
102
|
+
return i.shouldTryNationalPrefixFormattingRule(f, {
|
|
103
|
+
international: e.international,
|
|
104
|
+
nationalPrefix: e.nationalPrefix
|
|
105
|
+
});
|
|
106
|
+
},
|
|
107
|
+
getSeparatorAfterNationalPrefix: function(f) {
|
|
108
|
+
return i.getSeparatorAfterNationalPrefix(f);
|
|
109
|
+
}
|
|
110
|
+
});
|
|
111
|
+
if (l)
|
|
112
|
+
return this.resetFormat(), this.chosenFormat = s, this.setNationalNumberTemplate(l.replace(/\d/g, m), e), this.populatedNationalNumberTemplate = l, this.populatedNationalNumberTemplatePosition = this.template.lastIndexOf(m), l;
|
|
113
|
+
}
|
|
114
|
+
return this.formatNationalNumberWithNextDigits(t, e);
|
|
115
|
+
}
|
|
116
|
+
// Formats the next phone number digits.
|
|
117
|
+
}, {
|
|
118
|
+
key: "formatNationalNumberWithNextDigits",
|
|
119
|
+
value: function(t, e) {
|
|
120
|
+
var i = this.chosenFormat, n = this.chooseFormat(e);
|
|
121
|
+
if (n)
|
|
122
|
+
return n === i ? this.formatNextNationalNumberDigits(t) : this.formatNextNationalNumberDigits(e.getNationalDigits());
|
|
123
|
+
}
|
|
124
|
+
}, {
|
|
125
|
+
key: "narrowDownMatchingFormats",
|
|
126
|
+
value: function(t) {
|
|
127
|
+
var e = this, i = t.nationalSignificantNumber, n = t.nationalPrefix, o = t.international, s = i, l = s.length - A;
|
|
128
|
+
l < 0 && (l = 0), this.matchingFormats = this.matchingFormats.filter(function(u) {
|
|
129
|
+
return e.formatSuits(u, o, n) && e.formatMatches(u, s, l);
|
|
130
|
+
}), this.chosenFormat && this.matchingFormats.indexOf(this.chosenFormat) === -1 && this.resetFormat();
|
|
131
|
+
}
|
|
132
|
+
}, {
|
|
133
|
+
key: "formatSuits",
|
|
134
|
+
value: function(t, e, i) {
|
|
135
|
+
return !(i && !t.usesNationalPrefix() && // !format.domesticCarrierCodeFormattingRule() &&
|
|
136
|
+
!t.nationalPrefixIsOptionalWhenFormattingInNationalFormat() || !e && !i && t.nationalPrefixIsMandatoryWhenFormattingInNationalFormat());
|
|
137
|
+
}
|
|
138
|
+
}, {
|
|
139
|
+
key: "formatMatches",
|
|
140
|
+
value: function(t, e, i) {
|
|
141
|
+
var n = t.leadingDigitsPatterns().length;
|
|
142
|
+
if (n === 0)
|
|
143
|
+
return !0;
|
|
144
|
+
i = Math.min(i, n - 1);
|
|
145
|
+
var o = t.leadingDigitsPatterns()[i];
|
|
146
|
+
if (e.length < A)
|
|
147
|
+
try {
|
|
148
|
+
return new D(o).match(e, {
|
|
149
|
+
allowOverflow: !0
|
|
150
|
+
}) !== void 0;
|
|
151
|
+
} catch (s) {
|
|
152
|
+
return console.error(s), !0;
|
|
153
|
+
}
|
|
154
|
+
return new RegExp("^(".concat(o, ")")).test(e);
|
|
155
|
+
}
|
|
156
|
+
}, {
|
|
157
|
+
key: "getFormatFormat",
|
|
158
|
+
value: function(t, e) {
|
|
159
|
+
return e ? t.internationalFormat() : t.format();
|
|
160
|
+
}
|
|
161
|
+
}, {
|
|
162
|
+
key: "chooseFormat",
|
|
163
|
+
value: function(t) {
|
|
164
|
+
for (var e = this, i = function() {
|
|
165
|
+
var u = s.value;
|
|
166
|
+
return e.chosenFormat === u ? 0 : $.test(e.getFormatFormat(u, t.international)) ? e.createTemplateForFormat(u, t) ? (e.chosenFormat = u, 0) : (e.matchingFormats = e.matchingFormats.filter(function(f) {
|
|
167
|
+
return f !== u;
|
|
168
|
+
}), 1) : 1;
|
|
169
|
+
}, n, o = b(this.matchingFormats.slice()), s; !(s = o()).done && (n = i(), n !== 0); )
|
|
170
|
+
;
|
|
171
|
+
return this.chosenFormat || this.resetFormat(), this.chosenFormat;
|
|
172
|
+
}
|
|
173
|
+
}, {
|
|
174
|
+
key: "createTemplateForFormat",
|
|
175
|
+
value: function(t, e) {
|
|
176
|
+
if (!(t.pattern().indexOf("|") >= 0)) {
|
|
177
|
+
var i = this.getTemplateForFormat(t, e);
|
|
178
|
+
if (i)
|
|
179
|
+
return this.setNationalNumberTemplate(i, e), !0;
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
}, {
|
|
183
|
+
key: "getSeparatorAfterNationalPrefix",
|
|
184
|
+
value: function(t) {
|
|
185
|
+
return this.isNANP || t && t.nationalPrefixFormattingRule() && H.test(t.nationalPrefixFormattingRule()) ? " " : "";
|
|
186
|
+
}
|
|
187
|
+
}, {
|
|
188
|
+
key: "getInternationalPrefixBeforeCountryCallingCode",
|
|
189
|
+
value: function(t, e) {
|
|
190
|
+
var i = t.IDDPrefix, n = t.missingPlus;
|
|
191
|
+
return i ? e && e.spacing === !1 ? i : i + " " : n ? "" : "+";
|
|
192
|
+
}
|
|
193
|
+
}, {
|
|
194
|
+
key: "getTemplate",
|
|
195
|
+
value: function(t) {
|
|
196
|
+
if (this.template) {
|
|
197
|
+
for (var e = -1, i = 0, n = t.international ? this.getInternationalPrefixBeforeCountryCallingCode(t, {
|
|
198
|
+
spacing: !1
|
|
199
|
+
}) : ""; i < n.length + t.getDigitsWithoutInternationalPrefix().length; )
|
|
200
|
+
e = this.template.indexOf(m, e + 1), i++;
|
|
201
|
+
return P(this.template, e + 1);
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
}, {
|
|
205
|
+
key: "setNationalNumberTemplate",
|
|
206
|
+
value: function(t, e) {
|
|
207
|
+
this.nationalNumberTemplate = t, this.populatedNationalNumberTemplate = t, this.populatedNationalNumberTemplatePosition = -1, e.international ? this.template = this.getInternationalPrefixBeforeCountryCallingCode(e).replace(/[\d\+]/g, m) + N(m, e.callingCode.length) + " " + t : this.template = t;
|
|
208
|
+
}
|
|
209
|
+
/**
|
|
210
|
+
* Generates formatting template for a national phone number,
|
|
211
|
+
* optionally containing a national prefix, for a format.
|
|
212
|
+
* @param {Format} format
|
|
213
|
+
* @param {string} nationalPrefix
|
|
214
|
+
* @return {string}
|
|
215
|
+
*/
|
|
216
|
+
}, {
|
|
217
|
+
key: "getTemplateForFormat",
|
|
218
|
+
value: function(t, e) {
|
|
219
|
+
var i = e.nationalSignificantNumber, n = e.international, o = e.nationalPrefix, s = e.prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix, l = t.pattern();
|
|
220
|
+
l = l.replace(W(), "\\d").replace(j(), "\\d");
|
|
221
|
+
var u = U.match(l)[0];
|
|
222
|
+
if (!(i.length > u.length)) {
|
|
223
|
+
var f = new RegExp("^" + l + "$"), y = i.replace(/\d/g, v);
|
|
224
|
+
f.test(y) && (u = y);
|
|
225
|
+
var p = this.getFormatFormat(t, n), F;
|
|
226
|
+
if (this.shouldTryNationalPrefixFormattingRule(t, {
|
|
227
|
+
international: n,
|
|
228
|
+
nationalPrefix: o
|
|
229
|
+
})) {
|
|
230
|
+
var S = p.replace(_, t.nationalPrefixFormattingRule());
|
|
231
|
+
if (T(t.nationalPrefixFormattingRule()) === (o || "") + T("$1") && (p = S, F = !0, o))
|
|
232
|
+
for (var d = o.length; d > 0; )
|
|
233
|
+
p = p.replace(/\d/, m), d--;
|
|
234
|
+
}
|
|
235
|
+
var h = u.replace(new RegExp(l), p).replace(new RegExp(v, "g"), m);
|
|
236
|
+
return F || (s ? h = N(m, s.length) + " " + h : o && (h = N(m, o.length) + this.getSeparatorAfterNationalPrefix(t) + h)), n && (h = C(h)), h;
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
}, {
|
|
240
|
+
key: "formatNextNationalNumberDigits",
|
|
241
|
+
value: function(t) {
|
|
242
|
+
var e = I(this.populatedNationalNumberTemplate, this.populatedNationalNumberTemplatePosition, t);
|
|
243
|
+
if (!e) {
|
|
244
|
+
this.resetFormat();
|
|
245
|
+
return;
|
|
246
|
+
}
|
|
247
|
+
return this.populatedNationalNumberTemplate = e[0], this.populatedNationalNumberTemplatePosition = e[1], P(this.populatedNationalNumberTemplate, this.populatedNationalNumberTemplatePosition + 1);
|
|
248
|
+
}
|
|
249
|
+
}, {
|
|
250
|
+
key: "shouldTryNationalPrefixFormattingRule",
|
|
251
|
+
value: function(t, e) {
|
|
252
|
+
var i = e.international, n = e.nationalPrefix;
|
|
253
|
+
if (t.nationalPrefixFormattingRule()) {
|
|
254
|
+
var o = t.usesNationalPrefix();
|
|
255
|
+
if (o && n || !o && !i)
|
|
256
|
+
return !0;
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
}]);
|
|
260
|
+
})();
|
|
27
261
|
export {
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
x as Chevron,
|
|
31
|
-
n as Day,
|
|
32
|
-
d as DayButton,
|
|
33
|
-
u as Dropdown,
|
|
34
|
-
k as DropdownNav,
|
|
35
|
-
D as Footer,
|
|
36
|
-
i as Month,
|
|
37
|
-
v as MonthCaption,
|
|
38
|
-
y as MonthGrid,
|
|
39
|
-
b as Months,
|
|
40
|
-
l as MonthsDropdown,
|
|
41
|
-
F as Nav,
|
|
42
|
-
H as NextMonthButton,
|
|
43
|
-
O as Option,
|
|
44
|
-
R as PreviousMonthButton,
|
|
45
|
-
Y as Root,
|
|
46
|
-
j as Select,
|
|
47
|
-
z as Week,
|
|
48
|
-
Q as WeekNumber,
|
|
49
|
-
U as WeekNumberHeader,
|
|
50
|
-
E as Weekday,
|
|
51
|
-
J as Weekdays,
|
|
52
|
-
X as Weeks,
|
|
53
|
-
_ as YearsDropdown
|
|
262
|
+
m as DIGIT_PLACEHOLDER,
|
|
263
|
+
Q as default
|
|
54
264
|
};
|
|
55
265
|
//# sourceMappingURL=index86.js.map
|