@rpcbase/ui 0.166.0 → 0.167.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/index100.js +318 -8
- package/dist/index100.js.map +1 -1
- package/dist/index101.js +126 -38
- package/dist/index101.js.map +1 -1
- package/dist/index102.js +20 -4
- package/dist/index102.js.map +1 -1
- package/dist/index103.js +76 -52
- package/dist/index103.js.map +1 -1
- package/dist/index104.js +18 -4
- package/dist/index104.js.map +1 -1
- package/dist/index105.js +101 -4
- package/dist/index105.js.map +1 -1
- package/dist/index106.js +5 -16
- package/dist/index106.js.map +1 -1
- package/dist/index107.js +14 -5
- package/dist/index107.js.map +1 -1
- package/dist/index108.js +2 -8
- package/dist/index108.js.map +1 -1
- package/dist/index109.js +7 -16
- package/dist/index109.js.map +1 -1
- package/dist/index11.js +13 -4
- package/dist/index11.js.map +1 -1
- package/dist/index110.js +326 -4
- package/dist/index110.js.map +1 -1
- package/dist/index111.js +49 -4
- package/dist/index111.js.map +1 -1
- package/dist/index112.js +52 -6
- package/dist/index112.js.map +1 -1
- package/dist/index113.js +4 -5
- package/dist/index113.js.map +1 -1
- package/dist/index114.js +4 -4
- package/dist/index114.js.map +1 -1
- package/dist/index115.js +14 -3
- package/dist/index115.js.map +1 -1
- package/dist/index116.js +5 -6
- package/dist/index116.js.map +1 -1
- package/dist/index117.js +7 -24
- package/dist/index117.js.map +1 -1
- package/dist/index118.js +16 -6
- package/dist/index118.js.map +1 -1
- package/dist/index119.js +4 -4
- package/dist/index119.js.map +1 -1
- package/dist/index120.js +4 -6
- package/dist/index120.js.map +1 -1
- package/dist/index121.js +5 -5
- package/dist/index121.js.map +1 -1
- package/dist/index122.js +5 -4
- package/dist/index122.js.map +1 -1
- package/dist/index123.js +4 -5
- package/dist/index123.js.map +1 -1
- package/dist/index124.js +4 -4
- package/dist/index124.js.map +1 -1
- package/dist/index125.js +5 -7
- package/dist/index125.js.map +1 -1
- package/dist/index126.js +24 -5
- package/dist/index126.js.map +1 -1
- package/dist/index127.js +6 -4
- package/dist/index127.js.map +1 -1
- package/dist/index128.js +4 -4
- package/dist/index128.js.map +1 -1
- package/dist/index129.js +6 -6
- package/dist/index129.js.map +1 -1
- package/dist/index13.js +1 -1
- package/dist/index130.js +5 -145
- package/dist/index130.js.map +1 -1
- package/dist/index131.js +4 -39
- package/dist/index131.js.map +1 -1
- package/dist/index132.js +5 -4
- package/dist/index132.js.map +1 -1
- package/dist/index133.js +4 -7
- package/dist/index133.js.map +1 -1
- package/dist/index134.js +8 -13
- package/dist/index134.js.map +1 -1
- package/dist/index135.js +5 -13
- package/dist/index135.js.map +1 -1
- package/dist/index136.js +4 -7
- package/dist/index136.js.map +1 -1
- package/dist/index137.js +4 -31
- package/dist/index137.js.map +1 -1
- package/dist/index138.js +6 -10
- package/dist/index138.js.map +1 -1
- package/dist/index139.js +145 -10
- package/dist/index139.js.map +1 -1
- package/dist/index14.js +3 -3
- package/dist/index140.js +38 -7
- package/dist/index140.js.map +1 -1
- package/dist/index141.js +4 -13
- package/dist/index141.js.map +1 -1
- package/dist/index142.js +5 -99
- package/dist/index142.js.map +1 -1
- package/dist/index143.js +14 -20
- package/dist/index143.js.map +1 -1
- package/dist/index144.js +13 -53
- package/dist/index144.js.map +1 -1
- package/dist/index145.js +6 -71
- package/dist/index145.js.map +1 -1
- package/dist/index146.js +31 -9
- package/dist/index146.js.map +1 -1
- package/dist/index147.js +10 -20
- package/dist/index147.js.map +1 -1
- package/dist/index148.js +10 -16
- package/dist/index148.js.map +1 -1
- package/dist/index149.js +8 -23
- package/dist/index149.js.map +1 -1
- package/dist/index150.js +13 -6
- package/dist/index150.js.map +1 -1
- package/dist/index151.js +101 -5
- package/dist/index151.js.map +1 -1
- package/dist/index152.js +20 -24
- package/dist/index152.js.map +1 -1
- package/dist/index153.js +53 -34
- package/dist/index153.js.map +1 -1
- package/dist/index154.js +73 -16
- package/dist/index154.js.map +1 -1
- package/dist/index155.js +9 -6
- package/dist/index155.js.map +1 -1
- package/dist/index156.js +20 -4
- package/dist/index156.js.map +1 -1
- package/dist/index157.js +16 -4
- package/dist/index157.js.map +1 -1
- package/dist/index158.js +23 -4
- package/dist/index158.js.map +1 -1
- package/dist/index159.js +6 -4
- package/dist/index159.js.map +1 -1
- package/dist/index160.js +5 -3
- package/dist/index160.js.map +1 -1
- package/dist/index161.js +23 -6
- package/dist/index161.js.map +1 -1
- package/dist/index162.js +35 -24
- package/dist/index162.js.map +1 -1
- package/dist/index163.js +16 -8
- package/dist/index163.js.map +1 -1
- package/dist/index164.js +5 -5
- package/dist/index164.js.map +1 -1
- package/dist/index165.js +4 -5
- package/dist/index165.js.map +1 -1
- package/dist/index166.js +4 -3
- package/dist/index166.js.map +1 -1
- package/dist/index167.js +4 -3
- package/dist/index167.js.map +1 -1
- package/dist/index168.js +4 -4
- package/dist/index168.js.map +1 -1
- package/dist/index169.js +3 -3
- package/dist/index169.js.map +1 -1
- package/dist/index170.js +6 -4
- package/dist/index170.js.map +1 -1
- package/dist/index171.js +24 -4
- package/dist/index171.js.map +1 -1
- package/dist/index172.js +7 -3
- package/dist/index172.js.map +1 -1
- package/dist/index173.js +6 -3
- package/dist/index173.js.map +1 -1
- package/dist/index174.js +5 -24
- package/dist/index174.js.map +1 -1
- package/dist/index175.js +4 -29
- package/dist/index175.js.map +1 -1
- package/dist/index176.js +4 -5
- package/dist/index176.js.map +1 -1
- package/dist/index177.js +4 -67
- package/dist/index177.js.map +1 -1
- package/dist/index178.js +3 -180
- package/dist/index178.js.map +1 -1
- package/dist/index179.js +4 -46
- package/dist/index179.js.map +1 -1
- package/dist/index18.js +10 -1
- package/dist/index18.js.map +1 -1
- package/dist/index180.js +3 -13
- package/dist/index180.js.map +1 -1
- package/dist/index181.js +3 -154
- package/dist/index181.js.map +1 -1
- package/dist/index182.js +3 -30
- package/dist/index182.js.map +1 -1
- package/dist/index183.js +3 -9
- package/dist/index183.js.map +1 -1
- package/dist/index184.js +2 -48
- package/dist/index184.js.map +1 -1
- package/dist/index185.js +67 -11
- package/dist/index185.js.map +1 -1
- package/dist/index186.js +83 -43
- package/dist/index186.js.map +1 -1
- package/dist/index187.js +41 -90
- package/dist/index187.js.map +1 -1
- package/dist/index188.js +7 -86
- package/dist/index188.js.map +1 -1
- package/dist/index189.js +4 -105
- package/dist/index189.js.map +1 -1
- package/dist/index19.js +6 -6
- package/dist/index190.js +49 -50
- package/dist/index190.js.map +1 -1
- package/dist/index191.js +24 -11
- package/dist/index191.js.map +1 -1
- package/dist/index192.js +29 -38
- package/dist/index192.js.map +1 -1
- package/dist/index193.js +5 -9
- package/dist/index193.js.map +1 -1
- package/dist/index194.js +5 -116
- package/dist/index194.js.map +1 -1
- package/dist/index195.js +67 -16
- package/dist/index195.js.map +1 -1
- package/dist/index196.js +2 -16
- package/dist/index196.js.map +1 -1
- package/dist/index197.js +363 -3
- package/dist/index197.js.map +1 -1
- package/dist/index198.js +259 -34
- package/dist/index198.js.map +1 -1
- package/dist/index199.js +59 -19
- package/dist/index199.js.map +1 -1
- package/dist/index20.js +1 -1
- package/dist/index200.js +46 -9
- package/dist/index200.js.map +1 -1
- package/dist/index201.js +169 -8
- package/dist/index201.js.map +1 -1
- package/dist/index202.js +108 -18
- package/dist/index202.js.map +1 -1
- package/dist/index203.js +24 -28
- package/dist/index203.js.map +1 -1
- package/dist/index204.js +8 -17
- package/dist/index204.js.map +1 -1
- package/dist/index205.js +4 -58
- package/dist/index205.js.map +1 -1
- package/dist/index206.js +5 -8
- package/dist/index206.js.map +1 -1
- package/dist/index207.js +4 -66
- package/dist/index207.js.map +1 -1
- package/dist/index208.js +464 -17
- package/dist/index208.js.map +1 -1
- package/dist/index209.js +183 -14
- package/dist/index209.js.map +1 -1
- package/dist/index21.js +1 -1
- package/dist/index210.js +106 -4
- package/dist/index210.js.map +1 -1
- package/dist/index211.js +261 -4
- package/dist/index211.js.map +1 -1
- package/dist/index212.js +9 -6
- package/dist/index212.js.map +1 -1
- package/dist/index213.js +42 -4
- package/dist/index213.js.map +1 -1
- package/dist/index214.js +4 -7
- package/dist/index214.js.map +1 -1
- package/dist/index215.js +64 -17
- package/dist/index215.js.map +1 -1
- package/dist/index216.js +47 -4
- package/dist/index216.js.map +1 -1
- package/dist/index217.js +67 -5
- package/dist/index217.js.map +1 -1
- package/dist/index218.js +180 -13
- package/dist/index218.js.map +1 -1
- package/dist/index219.js +46 -10
- package/dist/index219.js.map +1 -1
- package/dist/index220.js +39 -14
- package/dist/index220.js.map +1 -1
- package/dist/index221.js +100 -14
- package/dist/index221.js.map +1 -1
- package/dist/index222.js +97 -5
- package/dist/index222.js.map +1 -1
- package/dist/index223.js +99 -6
- package/dist/index223.js.map +1 -1
- package/dist/index224.js +58 -7
- package/dist/index224.js.map +1 -1
- package/dist/index225.js +8 -6
- package/dist/index225.js.map +1 -1
- package/dist/index226.js +66 -9
- package/dist/index226.js.map +1 -1
- package/dist/index227.js +19 -5
- package/dist/index227.js.map +1 -1
- package/dist/index228.js +16 -5
- package/dist/index228.js.map +1 -1
- package/dist/index229.js +5 -9
- package/dist/index229.js.map +1 -1
- package/dist/index23.js +1 -1
- package/dist/index230.js +5 -5
- package/dist/index230.js.map +1 -1
- package/dist/index231.js +6 -5
- package/dist/index231.js.map +1 -1
- package/dist/index232.js +4 -4
- package/dist/index232.js.map +1 -1
- package/dist/index233.js +7 -11
- package/dist/index233.js.map +1 -1
- package/dist/index234.js +16 -9
- package/dist/index234.js.map +1 -1
- package/dist/index235.js +5 -10
- package/dist/index235.js.map +1 -1
- package/dist/index236.js +5 -11
- package/dist/index236.js.map +1 -1
- package/dist/index237.js +13 -11
- package/dist/index237.js.map +1 -1
- package/dist/index238.js +10 -10
- package/dist/index238.js.map +1 -1
- package/dist/index239.js +13 -6
- package/dist/index239.js.map +1 -1
- package/dist/index240.js +14 -6
- 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 -6
- package/dist/index242.js.map +1 -1
- package/dist/index243.js +6 -6
- package/dist/index243.js.map +1 -1
- package/dist/index244.js +5 -5
- package/dist/index244.js.map +1 -1
- package/dist/index245.js +9 -55
- package/dist/index245.js.map +1 -1
- package/dist/index246.js +5 -23
- package/dist/index246.js.map +1 -1
- package/dist/index247.js +5 -16
- package/dist/index247.js.map +1 -1
- package/dist/index248.js +9 -7
- package/dist/index248.js.map +1 -1
- package/dist/index249.js +5 -10
- package/dist/index249.js.map +1 -1
- package/dist/index250.js +5 -10
- package/dist/index250.js.map +1 -1
- package/dist/index251.js +4 -21
- package/dist/index251.js.map +1 -1
- package/dist/index252.js +11 -10
- package/dist/index252.js.map +1 -1
- package/dist/index253.js +10 -9
- package/dist/index253.js.map +1 -1
- package/dist/index254.js +10 -9
- package/dist/index254.js.map +1 -1
- package/dist/index255.js +11 -4
- package/dist/index255.js.map +1 -1
- package/dist/index256.js +11 -5
- package/dist/index256.js.map +1 -1
- package/dist/index257.js +10 -16
- package/dist/index257.js.map +1 -1
- package/dist/index258.js +7 -9
- package/dist/index258.js.map +1 -1
- package/dist/index259.js +6 -18
- package/dist/index259.js.map +1 -1
- package/dist/index260.js +5 -15
- package/dist/index260.js.map +1 -1
- package/dist/index261.js +6 -12
- package/dist/index261.js.map +1 -1
- package/dist/index262.js +7 -29
- package/dist/index262.js.map +1 -1
- package/dist/index263.js +6 -12
- package/dist/index263.js.map +1 -1
- package/dist/index264.js +54 -24
- package/dist/index264.js.map +1 -1
- package/dist/index265.js +23 -5
- package/dist/index265.js.map +1 -1
- package/dist/index266.js +17 -5
- package/dist/index266.js.map +1 -1
- package/dist/index267.js +8 -3
- package/dist/index267.js.map +1 -1
- package/dist/index268.js +10 -23
- package/dist/index268.js.map +1 -1
- package/dist/index269.js +10 -112
- package/dist/index269.js.map +1 -1
- package/dist/index270.js +21 -15
- package/dist/index270.js.map +1 -1
- package/dist/index271.js +10 -524
- package/dist/index271.js.map +1 -1
- package/dist/index272.js +9 -127
- package/dist/index272.js.map +1 -1
- package/dist/index273.js +9 -133
- package/dist/index273.js.map +1 -1
- package/dist/index274.js +4 -20
- package/dist/index274.js.map +1 -1
- package/dist/index275.js +5 -4
- package/dist/index275.js.map +1 -1
- package/dist/index276.js +16 -18
- package/dist/index276.js.map +1 -1
- package/dist/index277.js +9 -12
- package/dist/index277.js.map +1 -1
- package/dist/index278.js +19 -69
- package/dist/index278.js.map +1 -1
- package/dist/index279.js +15 -8
- package/dist/index279.js.map +1 -1
- package/dist/index28.js +1 -1
- package/dist/index280.js +13 -14
- package/dist/index280.js.map +1 -1
- package/dist/index281.js +30 -66
- package/dist/index281.js.map +1 -1
- package/dist/index282.js +12 -64
- package/dist/index282.js.map +1 -1
- package/dist/index283.js +25 -5
- package/dist/index283.js.map +1 -1
- package/dist/index284.js +5 -5
- package/dist/index284.js.map +1 -1
- package/dist/index285.js +2 -4
- package/dist/index285.js.map +1 -1
- package/dist/index286.js +2 -16
- package/dist/index286.js.map +1 -1
- package/dist/index287.js +5 -9
- package/dist/index287.js.map +1 -1
- package/dist/index288.js +3 -6
- package/dist/index288.js.map +1 -1
- package/dist/index289.js +23 -4
- package/dist/index289.js.map +1 -1
- package/dist/index29.js +5 -5
- package/dist/index290.js +111 -544
- package/dist/index290.js.map +1 -1
- package/dist/index291.js +15 -46
- package/dist/index291.js.map +1 -1
- package/dist/index292.js +521 -14
- package/dist/index292.js.map +1 -1
- package/dist/index293.js +127 -6
- package/dist/index293.js.map +1 -1
- package/dist/index294.js +133 -8
- package/dist/index294.js.map +1 -1
- package/dist/index295.js +13 -7
- package/dist/index295.js.map +1 -1
- package/dist/index296.js +154 -8
- package/dist/index296.js.map +1 -1
- package/dist/index297.js +30 -12
- package/dist/index297.js.map +1 -1
- package/dist/index298.js +9 -9
- package/dist/index298.js.map +1 -1
- package/dist/index299.js +47 -13
- package/dist/index299.js.map +1 -1
- package/dist/index30.js +47 -231
- package/dist/index30.js.map +1 -1
- package/dist/index300.js +11 -3
- package/dist/index300.js.map +1 -1
- package/dist/index301.js +43 -21
- package/dist/index301.js.map +1 -1
- package/dist/index302.js +95 -4
- package/dist/index302.js.map +1 -1
- package/dist/index303.js +85 -54
- package/dist/index303.js.map +1 -1
- package/dist/index304.js +105 -67
- package/dist/index304.js.map +1 -1
- package/dist/index305.js +53 -31
- package/dist/index305.js.map +1 -1
- package/dist/index306.js +12 -9
- package/dist/index306.js.map +1 -1
- package/dist/index307.js +36 -151
- package/dist/index307.js.map +1 -1
- package/dist/index308.js +9 -108
- package/dist/index308.js.map +1 -1
- package/dist/index309.js +4 -23
- package/dist/index309.js.map +1 -1
- package/dist/index31.js +218 -49
- package/dist/index31.js.map +1 -1
- package/dist/index310.js +10 -13
- package/dist/index310.js.map +1 -1
- package/dist/index311.js +113 -24
- package/dist/index311.js.map +1 -1
- package/dist/index312.js +18 -5
- package/dist/index312.js.map +1 -1
- package/dist/index313.js +15 -15
- package/dist/index313.js.map +1 -1
- package/dist/index314.js +33 -25
- package/dist/index314.js.map +1 -1
- package/dist/index315.js +20 -12
- package/dist/index315.js.map +1 -1
- package/dist/index316.js +8 -6
- package/dist/index316.js.map +1 -1
- package/dist/index317.js +23 -0
- package/dist/index317.js.map +1 -0
- package/dist/index318.js +32 -0
- package/dist/index318.js.map +1 -0
- package/dist/index319.js +20 -0
- package/dist/index319.js.map +1 -0
- package/dist/index32.js +36 -2633
- package/dist/index32.js.map +1 -1
- package/dist/index320.js +8 -0
- package/dist/index320.js.map +1 -0
- package/dist/index321.js +22 -0
- package/dist/index321.js.map +1 -0
- package/dist/index322.js +16 -0
- package/dist/index322.js.map +1 -0
- package/dist/index323.js +72 -0
- package/dist/index323.js.map +1 -0
- package/dist/index324.js +12 -0
- package/dist/index324.js.map +1 -0
- package/dist/index325.js +17 -0
- package/dist/index325.js.map +1 -0
- package/dist/index326.js +69 -0
- package/dist/index326.js.map +1 -0
- package/dist/index327.js +68 -0
- package/dist/index327.js.map +1 -0
- package/dist/index328.js +24 -0
- package/dist/index328.js.map +1 -0
- package/dist/index329.js +9 -0
- package/dist/index329.js.map +1 -0
- package/dist/index33.js +35 -388
- package/dist/index33.js.map +1 -1
- package/dist/index330.js +9 -0
- package/dist/index330.js.map +1 -0
- package/dist/index331.js +7 -0
- package/dist/index331.js.map +1 -0
- package/dist/index332.js +19 -0
- package/dist/index332.js.map +1 -0
- package/dist/index333.js +12 -0
- package/dist/index333.js.map +1 -0
- package/dist/index334.js +9 -0
- package/dist/index334.js.map +1 -0
- package/dist/index335.js +8 -0
- package/dist/index335.js.map +1 -0
- package/dist/index336.js +549 -0
- package/dist/index336.js.map +1 -0
- package/dist/index337.js +50 -0
- package/dist/index337.js.map +1 -0
- package/dist/index338.js +21 -0
- package/dist/index338.js.map +1 -0
- package/dist/index339.js +10 -0
- package/dist/index339.js.map +1 -0
- package/dist/index34.js +26 -230
- package/dist/index34.js.map +1 -1
- package/dist/index340.js +12 -0
- package/dist/index340.js.map +1 -0
- package/dist/index341.js +11 -0
- package/dist/index341.js.map +1 -0
- package/dist/index342.js +12 -0
- package/dist/index342.js.map +1 -0
- package/dist/index343.js +16 -0
- package/dist/index343.js.map +1 -0
- package/dist/index344.js +13 -0
- package/dist/index344.js.map +1 -0
- package/dist/index345.js +17 -0
- package/dist/index345.js.map +1 -0
- package/dist/index346.js +7 -0
- package/dist/index346.js.map +1 -0
- package/dist/index347.js +26 -0
- package/dist/index347.js.map +1 -0
- package/dist/index348.js +8 -0
- package/dist/index348.js.map +1 -0
- package/dist/index349.js +59 -0
- package/dist/index349.js.map +1 -0
- package/dist/index35.js +44 -20
- package/dist/index35.js.map +1 -1
- package/dist/index350.js +71 -0
- package/dist/index350.js.map +1 -0
- package/dist/index351.js +34 -0
- package/dist/index351.js.map +1 -0
- package/dist/index352.js +12 -0
- package/dist/index352.js.map +1 -0
- package/dist/index353.js +156 -0
- package/dist/index353.js.map +1 -0
- package/dist/index354.js +111 -0
- package/dist/index354.js.map +1 -0
- package/dist/index355.js +26 -0
- package/dist/index355.js.map +1 -0
- package/dist/index356.js +16 -0
- package/dist/index356.js.map +1 -0
- package/dist/index357.js +31 -0
- package/dist/index357.js.map +1 -0
- package/dist/index358.js +8 -0
- package/dist/index358.js.map +1 -0
- package/dist/index359.js +19 -0
- package/dist/index359.js.map +1 -0
- package/dist/index36.js +27 -137
- package/dist/index36.js.map +1 -1
- package/dist/index360.js +32 -0
- package/dist/index360.js.map +1 -0
- package/dist/index361.js +16 -0
- package/dist/index361.js.map +1 -0
- package/dist/index362.js +10 -0
- package/dist/index362.js.map +1 -0
- package/dist/index37.js +22 -181
- package/dist/index37.js.map +1 -1
- package/dist/index38.js +23 -77
- package/dist/index38.js.map +1 -1
- package/dist/index39.js +127 -89
- package/dist/index39.js.map +1 -1
- package/dist/index40.js +231 -5
- package/dist/index40.js.map +1 -1
- package/dist/index41.js +51 -844
- package/dist/index41.js.map +1 -1
- package/dist/index42.js +2636 -61
- package/dist/index42.js.map +1 -1
- package/dist/index43.js +393 -7
- package/dist/index43.js.map +1 -1
- package/dist/index44.js +233 -2
- package/dist/index44.js.map +1 -1
- package/dist/index45.js +20 -22
- package/dist/index45.js.map +1 -1
- package/dist/index46.js +140 -232
- package/dist/index46.js.map +1 -1
- package/dist/index47.js +180 -198
- package/dist/index47.js.map +1 -1
- package/dist/index48.js +76 -3
- package/dist/index48.js.map +1 -1
- package/dist/index49.js +89 -5
- package/dist/index49.js.map +1 -1
- package/dist/index50.js +5 -47
- package/dist/index50.js.map +1 -1
- package/dist/index51.js +840 -23
- package/dist/index51.js.map +1 -1
- package/dist/index52.js +65 -50
- package/dist/index52.js.map +1 -1
- package/dist/index53.js +7 -7
- package/dist/index53.js.map +1 -1
- package/dist/index54.js +2 -15
- package/dist/index54.js.map +1 -1
- package/dist/index55.js +22 -132
- package/dist/index55.js.map +1 -1
- package/dist/index56.js +233 -10
- package/dist/index56.js.map +1 -1
- package/dist/index57.js +191 -203
- package/dist/index57.js.map +1 -1
- package/dist/index58.js +4 -13
- package/dist/index58.js.map +1 -1
- package/dist/index59.js +6 -33
- package/dist/index59.js.map +1 -1
- package/dist/index60.js +44 -43
- package/dist/index60.js.map +1 -1
- package/dist/index61.js +26 -7
- package/dist/index61.js.map +1 -1
- package/dist/index62.js +48 -47
- package/dist/index62.js.map +1 -1
- package/dist/index63.js +7 -3
- package/dist/index63.js.map +1 -1
- package/dist/index64.js +14 -5
- package/dist/index64.js.map +1 -1
- package/dist/index65.js +133 -27
- package/dist/index65.js.map +1 -1
- package/dist/index66.js +11 -50
- package/dist/index66.js.map +1 -1
- package/dist/index67.js +216 -8
- package/dist/index67.js.map +1 -1
- package/dist/index68.js +13 -2
- package/dist/index68.js.map +1 -1
- package/dist/index69.js +34 -2
- package/dist/index69.js.map +1 -1
- package/dist/index70.js +46 -11
- package/dist/index70.js.map +1 -1
- package/dist/index71.js +7 -53
- package/dist/index71.js.map +1 -1
- package/dist/index72.js +49 -5
- package/dist/index72.js.map +1 -1
- package/dist/index73.js +4 -8
- package/dist/index73.js.map +1 -1
- package/dist/index74.js +5 -5
- package/dist/index74.js.map +1 -1
- package/dist/index75.js +27 -46
- package/dist/index75.js.map +1 -1
- package/dist/index76.js +48 -204
- package/dist/index76.js.map +1 -1
- package/dist/index77.js +8 -21
- package/dist/index77.js.map +1 -1
- package/dist/index78.js +11 -24
- package/dist/index78.js.map +1 -1
- package/dist/index79.js +2 -400
- package/dist/index79.js.map +1 -1
- package/dist/index80.js +2 -47
- package/dist/index80.js.map +1 -1
- package/dist/index81.js +52 -604
- package/dist/index81.js.map +1 -1
- package/dist/index82.js +46 -5
- package/dist/index82.js.map +1 -1
- package/dist/index83.js +199 -62
- package/dist/index83.js.map +1 -1
- package/dist/index84.js +22 -2
- package/dist/index84.js.map +1 -1
- package/dist/index85.js +24 -363
- package/dist/index85.js.map +1 -1
- package/dist/index86.js +381 -243
- package/dist/index86.js.map +1 -1
- package/dist/index87.js +41 -55
- package/dist/index87.js.map +1 -1
- package/dist/index88.js +5 -46
- package/dist/index88.js.map +1 -1
- package/dist/index89.js +7 -169
- package/dist/index89.js.map +1 -1
- package/dist/index90.js +5 -109
- package/dist/index90.js.map +1 -1
- package/dist/index91.js +605 -24
- package/dist/index91.js.map +1 -1
- package/dist/index92.js +4 -8
- package/dist/index92.js.map +1 -1
- package/dist/index93.js +33 -4
- package/dist/index93.js.map +1 -1
- package/dist/index94.js +249 -5
- package/dist/index94.js.map +1 -1
- package/dist/index95.js +114 -4
- package/dist/index95.js.map +1 -1
- package/dist/index96.js +214 -461
- package/dist/index96.js.map +1 -1
- package/dist/index97.js +60 -179
- package/dist/index97.js.map +1 -1
- package/dist/index98.js +18 -105
- package/dist/index98.js.map +1 -1
- package/dist/index99.js +197 -250
- package/dist/index99.js.map +1 -1
- package/package.json +1 -1
package/dist/index91.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index91.js","sources":["../../../node_modules/libphonenumber-js/es6/helpers/formatNationalNumberUsingFormat.js"],"sourcesContent":["import applyInternationalSeparatorStyle from './applyInternationalSeparatorStyle.js';\n\n// This was originally set to $1 but there are some countries for which the\n// first group is not used in the national pattern (e.g. Argentina) so the $1\n// group does not match correctly. Therefore, we use `\\d`, so that the first\n// group actually used in the pattern will be matched.\nexport var FIRST_GROUP_PATTERN = /(\\$\\d)/;\nexport default function formatNationalNumberUsingFormat(number, format, _ref) {\n var useInternationalFormat = _ref.useInternationalFormat,\n withNationalPrefix = _ref.withNationalPrefix,\n carrierCode = _ref.carrierCode,\n metadata = _ref.metadata;\n var formattedNumber = number.replace(new RegExp(format.pattern()), useInternationalFormat ? format.internationalFormat() :\n // This library doesn't use `domestic_carrier_code_formatting_rule`,\n // because that one is only used when formatting phone numbers\n // for dialing from a mobile phone, and this is not a dialing library.\n // carrierCode && format.domesticCarrierCodeFormattingRule()\n // \t// First, replace the $CC in the formatting rule with the desired carrier code.\n // \t// Then, replace the $FG in the formatting rule with the first group\n // \t// and the carrier code combined in the appropriate way.\n // \t? format.format().replace(FIRST_GROUP_PATTERN, format.domesticCarrierCodeFormattingRule().replace('$CC', carrierCode))\n // \t: (\n // \t\twithNationalPrefix && format.nationalPrefixFormattingRule()\n // \t\t\t? format.format().replace(FIRST_GROUP_PATTERN, format.nationalPrefixFormattingRule())\n // \t\t\t: format.format()\n // \t)\n withNationalPrefix && format.nationalPrefixFormattingRule() ? format.format().replace(FIRST_GROUP_PATTERN, format.nationalPrefixFormattingRule()) : format.format());\n if (useInternationalFormat) {\n return applyInternationalSeparatorStyle(formattedNumber);\n }\n return formattedNumber;\n}\n//# sourceMappingURL=formatNationalNumberUsingFormat.js.map"],"names":["FIRST_GROUP_PATTERN","formatNationalNumberUsingFormat","number","format","_ref","useInternationalFormat","withNationalPrefix","formattedNumber","applyInternationalSeparatorStyle"],"mappings":";AAMU,IAACA,IAAsB;AAClB,SAASC,EAAgCC,GAAQC,GAAQC,GAAM;AACzE,MAACC,IAAyBD,EAAK,wBAChCE,IAAqBF,EAAK;AACZ,EAAAA,EAAK,aACRA,EAAK;AAClB,MAAIG,IAAkBL,EAAO,QAAQ,IAAI,OAAOC,EAAO,SAAS,GAAGE,IAAyBF,EAAO,oBAAmB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IActHG,KAAsBH,EAAO,6BAA4B,IAAKA,EAAO,OAAM,EAAG,QAAQH,GAAqBG,EAAO,6BAA4B,CAAE,IAAIA,EAAO,OAAM;AAAA,GAAE;AACnK,SAAIE,IACKG,EAAiCD,CAAe,IAElDA;AACT;","x_google_ignoreList":[0]}
|
|
1
|
+
{"version":3,"file":"index91.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,C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,IACZ4E,KAAgBxE,IAChByE,KAAYrE,IACZsE,KAASnE,IAEToE,KAAa7D,IACb8D,KAAa/C;","x_google_ignoreList":[0]}
|
package/dist/index92.js
CHANGED
|
@@ -1,11 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
function a(n, t) {
|
|
2
|
+
return new a.InputMask(n, t);
|
|
3
|
+
}
|
|
2
4
|
export {
|
|
3
|
-
|
|
4
|
-
A as MAX_LENGTH_FOR_NSN,
|
|
5
|
-
v as MIN_LENGTH_FOR_NSN,
|
|
6
|
-
T as PLUS_CHARS,
|
|
7
|
-
_ as VALID_DIGITS,
|
|
8
|
-
N as VALID_PUNCTUATION,
|
|
9
|
-
S as WHITESPACE
|
|
5
|
+
a as default
|
|
10
6
|
};
|
|
11
7
|
//# sourceMappingURL=index92.js.map
|
package/dist/index92.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index92.js","sources":["../../../node_modules/
|
|
1
|
+
{"version":3,"file":"index92.js","sources":["../../../node_modules/imask/esm/core/holder.js"],"sourcesContent":["/** Applies mask on element */\nfunction IMask(el, opts) {\n // currently available only for input-like elements\n return new IMask.InputMask(el, opts);\n}\n\nexport { IMask as default };\n"],"names":["IMask","el","opts"],"mappings":"AACA,SAASA,EAAMC,GAAIC,GAAM;AAEvB,SAAO,IAAIF,EAAM,UAAUC,GAAIC,CAAI;AACrC;","x_google_ignoreList":[0]}
|
package/dist/index93.js
CHANGED
|
@@ -1,8 +1,37 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import i from "./index92.js";
|
|
2
|
+
class s {
|
|
3
|
+
/** Inserted symbols */
|
|
4
|
+
/** Additional offset if any changes occurred before tail */
|
|
5
|
+
/** Raw inserted is used by dynamic mask */
|
|
6
|
+
/** Can skip chars */
|
|
7
|
+
static normalize(t) {
|
|
8
|
+
return Array.isArray(t) ? t : [t, new s()];
|
|
9
|
+
}
|
|
10
|
+
constructor(t) {
|
|
11
|
+
Object.assign(this, {
|
|
12
|
+
inserted: "",
|
|
13
|
+
rawInserted: "",
|
|
14
|
+
tailShift: 0,
|
|
15
|
+
skip: !1
|
|
16
|
+
}, t);
|
|
17
|
+
}
|
|
18
|
+
/** Aggregate changes */
|
|
19
|
+
aggregate(t) {
|
|
20
|
+
return this.inserted += t.inserted, this.rawInserted += t.rawInserted, this.tailShift += t.tailShift, this.skip = this.skip || t.skip, this;
|
|
21
|
+
}
|
|
22
|
+
/** Total offset considering all changes */
|
|
23
|
+
get offset() {
|
|
24
|
+
return this.tailShift + this.inserted.length;
|
|
25
|
+
}
|
|
26
|
+
get consumed() {
|
|
27
|
+
return !!this.rawInserted || this.skip;
|
|
28
|
+
}
|
|
29
|
+
equals(t) {
|
|
30
|
+
return this.inserted === t.inserted && this.tailShift === t.tailShift && this.rawInserted === t.rawInserted && this.skip === t.skip;
|
|
31
|
+
}
|
|
4
32
|
}
|
|
33
|
+
i.ChangeDetails = s;
|
|
5
34
|
export {
|
|
6
|
-
|
|
35
|
+
s as default
|
|
7
36
|
};
|
|
8
37
|
//# sourceMappingURL=index93.js.map
|
package/dist/index93.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index93.js","sources":["../../../node_modules/
|
|
1
|
+
{"version":3,"file":"index93.js","sources":["../../../node_modules/imask/esm/core/change-details.js"],"sourcesContent":["import IMask from './holder.js';\n\n/** Provides details of changing model value */\nclass ChangeDetails {\n /** Inserted symbols */\n\n /** Additional offset if any changes occurred before tail */\n\n /** Raw inserted is used by dynamic mask */\n\n /** Can skip chars */\n\n static normalize(prep) {\n return Array.isArray(prep) ? prep : [prep, new ChangeDetails()];\n }\n constructor(details) {\n Object.assign(this, {\n inserted: '',\n rawInserted: '',\n tailShift: 0,\n skip: false\n }, details);\n }\n\n /** Aggregate changes */\n aggregate(details) {\n this.inserted += details.inserted;\n this.rawInserted += details.rawInserted;\n this.tailShift += details.tailShift;\n this.skip = this.skip || details.skip;\n return this;\n }\n\n /** Total offset considering all changes */\n get offset() {\n return this.tailShift + this.inserted.length;\n }\n get consumed() {\n return Boolean(this.rawInserted) || this.skip;\n }\n equals(details) {\n return this.inserted === details.inserted && this.tailShift === details.tailShift && this.rawInserted === details.rawInserted && this.skip === details.skip;\n }\n}\nIMask.ChangeDetails = ChangeDetails;\n\nexport { ChangeDetails as default };\n"],"names":["ChangeDetails","prep","details","IMask"],"mappings":";AAGA,MAAMA,EAAc;AAAA;AAAA;AAAA;AAAA;AAAA,EASlB,OAAO,UAAUC,GAAM;AACrB,WAAO,MAAM,QAAQA,CAAI,IAAIA,IAAO,CAACA,GAAM,IAAID,GAAe;AAAA,EAChE;AAAA,EACA,YAAYE,GAAS;AACnB,WAAO,OAAO,MAAM;AAAA,MAClB,UAAU;AAAA,MACV,aAAa;AAAA,MACb,WAAW;AAAA,MACX,MAAM;AAAA,IACZ,GAAOA,CAAO;AAAA,EACZ;AAAA;AAAA,EAGA,UAAUA,GAAS;AACjB,gBAAK,YAAYA,EAAQ,UACzB,KAAK,eAAeA,EAAQ,aAC5B,KAAK,aAAaA,EAAQ,WAC1B,KAAK,OAAO,KAAK,QAAQA,EAAQ,MAC1B;AAAA,EACT;AAAA;AAAA,EAGA,IAAI,SAAS;AACX,WAAO,KAAK,YAAY,KAAK,SAAS;AAAA,EACxC;AAAA,EACA,IAAI,WAAW;AACb,WAAO,EAAQ,KAAK,eAAgB,KAAK;AAAA,EAC3C;AAAA,EACA,OAAOA,GAAS;AACd,WAAO,KAAK,aAAaA,EAAQ,YAAY,KAAK,cAAcA,EAAQ,aAAa,KAAK,gBAAgBA,EAAQ,eAAe,KAAK,SAASA,EAAQ;AAAA,EACzJ;AACF;AACAC,EAAM,gBAAgBH;","x_google_ignoreList":[0]}
|
package/dist/index94.js
CHANGED
|
@@ -1,9 +1,253 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import h from "./index93.js";
|
|
2
|
+
import f from "./index220.js";
|
|
3
|
+
import { isString as v, DIRECTION as o, objectIncludes as V, forceDirection as I } from "./index215.js";
|
|
4
|
+
import _ from "./index92.js";
|
|
5
|
+
class p {
|
|
6
|
+
/** */
|
|
7
|
+
/** */
|
|
8
|
+
/** Transforms value before mask processing */
|
|
9
|
+
/** Transforms each char before mask processing */
|
|
10
|
+
/** Validates if value is acceptable */
|
|
11
|
+
/** Does additional processing at the end of editing */
|
|
12
|
+
/** Format typed value to string */
|
|
13
|
+
/** Parse string to get typed value */
|
|
14
|
+
/** Enable characters overwriting */
|
|
15
|
+
/** */
|
|
16
|
+
/** */
|
|
17
|
+
/** */
|
|
18
|
+
/** */
|
|
19
|
+
constructor(t) {
|
|
20
|
+
this._value = "", this._update({
|
|
21
|
+
...p.DEFAULTS,
|
|
22
|
+
...t
|
|
23
|
+
}), this._initialized = !0;
|
|
24
|
+
}
|
|
25
|
+
/** Sets and applies new options */
|
|
26
|
+
updateOptions(t) {
|
|
27
|
+
this.optionsIsChanged(t) && this.withValueRefresh(this._update.bind(this, t));
|
|
28
|
+
}
|
|
29
|
+
/** Sets new options */
|
|
30
|
+
_update(t) {
|
|
31
|
+
Object.assign(this, t);
|
|
32
|
+
}
|
|
33
|
+
/** Mask state */
|
|
34
|
+
get state() {
|
|
35
|
+
return {
|
|
36
|
+
_value: this.value,
|
|
37
|
+
_rawInputValue: this.rawInputValue
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
set state(t) {
|
|
41
|
+
this._value = t._value;
|
|
42
|
+
}
|
|
43
|
+
/** Resets value */
|
|
44
|
+
reset() {
|
|
45
|
+
this._value = "";
|
|
46
|
+
}
|
|
47
|
+
get value() {
|
|
48
|
+
return this._value;
|
|
49
|
+
}
|
|
50
|
+
set value(t) {
|
|
51
|
+
this.resolve(t, {
|
|
52
|
+
input: !0
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
/** Resolve new value */
|
|
56
|
+
resolve(t, e) {
|
|
57
|
+
e === void 0 && (e = {
|
|
58
|
+
input: !0
|
|
59
|
+
}), this.reset(), this.append(t, e, ""), this.doCommit();
|
|
60
|
+
}
|
|
61
|
+
get unmaskedValue() {
|
|
62
|
+
return this.value;
|
|
63
|
+
}
|
|
64
|
+
set unmaskedValue(t) {
|
|
65
|
+
this.resolve(t, {});
|
|
66
|
+
}
|
|
67
|
+
get typedValue() {
|
|
68
|
+
return this.parse ? this.parse(this.value, this) : this.unmaskedValue;
|
|
69
|
+
}
|
|
70
|
+
set typedValue(t) {
|
|
71
|
+
this.format ? this.value = this.format(t, this) : this.unmaskedValue = String(t);
|
|
72
|
+
}
|
|
73
|
+
/** Value that includes raw user input */
|
|
74
|
+
get rawInputValue() {
|
|
75
|
+
return this.extractInput(0, this.displayValue.length, {
|
|
76
|
+
raw: !0
|
|
77
|
+
});
|
|
78
|
+
}
|
|
79
|
+
set rawInputValue(t) {
|
|
80
|
+
this.resolve(t, {
|
|
81
|
+
raw: !0
|
|
82
|
+
});
|
|
83
|
+
}
|
|
84
|
+
get displayValue() {
|
|
85
|
+
return this.value;
|
|
86
|
+
}
|
|
87
|
+
get isComplete() {
|
|
88
|
+
return !0;
|
|
89
|
+
}
|
|
90
|
+
get isFilled() {
|
|
91
|
+
return this.isComplete;
|
|
92
|
+
}
|
|
93
|
+
/** Finds nearest input position in direction */
|
|
94
|
+
nearestInputPos(t, e) {
|
|
95
|
+
return t;
|
|
96
|
+
}
|
|
97
|
+
totalInputPositions(t, e) {
|
|
98
|
+
return t === void 0 && (t = 0), e === void 0 && (e = this.displayValue.length), Math.min(this.displayValue.length, e - t);
|
|
99
|
+
}
|
|
100
|
+
/** Extracts value in range considering flags */
|
|
101
|
+
extractInput(t, e, i) {
|
|
102
|
+
return t === void 0 && (t = 0), e === void 0 && (e = this.displayValue.length), this.displayValue.slice(t, e);
|
|
103
|
+
}
|
|
104
|
+
/** Extracts tail in range */
|
|
105
|
+
extractTail(t, e) {
|
|
106
|
+
return t === void 0 && (t = 0), e === void 0 && (e = this.displayValue.length), new f(this.extractInput(t, e), t);
|
|
107
|
+
}
|
|
108
|
+
/** Appends tail */
|
|
109
|
+
appendTail(t) {
|
|
110
|
+
return v(t) && (t = new f(String(t))), t.appendTo(this);
|
|
111
|
+
}
|
|
112
|
+
/** Appends char */
|
|
113
|
+
_appendCharRaw(t, e) {
|
|
114
|
+
return t ? (this._value += t, new h({
|
|
115
|
+
inserted: t,
|
|
116
|
+
rawInserted: t
|
|
117
|
+
})) : new h();
|
|
118
|
+
}
|
|
119
|
+
/** Appends char */
|
|
120
|
+
_appendChar(t, e, i) {
|
|
121
|
+
e === void 0 && (e = {});
|
|
122
|
+
const s = this.state;
|
|
123
|
+
let a;
|
|
124
|
+
if ([t, a] = this.doPrepareChar(t, e), t && (a = a.aggregate(this._appendCharRaw(t, e)), !a.rawInserted && this.autofix === "pad")) {
|
|
125
|
+
const n = this.state;
|
|
126
|
+
this.state = s;
|
|
127
|
+
let r = this.pad(e);
|
|
128
|
+
const l = this._appendCharRaw(t, e);
|
|
129
|
+
r = r.aggregate(l), l.rawInserted || r.equals(a) ? a = r : this.state = n;
|
|
130
|
+
}
|
|
131
|
+
if (a.inserted) {
|
|
132
|
+
let n, r = this.doValidate(e) !== !1;
|
|
133
|
+
if (r && i != null) {
|
|
134
|
+
const l = this.state;
|
|
135
|
+
if (this.overwrite === !0) {
|
|
136
|
+
n = i.state;
|
|
137
|
+
for (let d = 0; d < a.rawInserted.length; ++d)
|
|
138
|
+
i.unshift(this.displayValue.length - a.tailShift);
|
|
139
|
+
}
|
|
140
|
+
let u = this.appendTail(i);
|
|
141
|
+
if (r = u.rawInserted.length === i.toString().length, !(r && u.inserted) && this.overwrite === "shift") {
|
|
142
|
+
this.state = l, n = i.state;
|
|
143
|
+
for (let d = 0; d < a.rawInserted.length; ++d)
|
|
144
|
+
i.shift();
|
|
145
|
+
u = this.appendTail(i), r = u.rawInserted.length === i.toString().length;
|
|
146
|
+
}
|
|
147
|
+
r && u.inserted && (this.state = l);
|
|
148
|
+
}
|
|
149
|
+
r || (a = new h(), this.state = s, i && n && (i.state = n));
|
|
150
|
+
}
|
|
151
|
+
return a;
|
|
152
|
+
}
|
|
153
|
+
/** Appends optional placeholder at the end */
|
|
154
|
+
_appendPlaceholder() {
|
|
155
|
+
return new h();
|
|
156
|
+
}
|
|
157
|
+
/** Appends optional eager placeholder at the end */
|
|
158
|
+
_appendEager() {
|
|
159
|
+
return new h();
|
|
160
|
+
}
|
|
161
|
+
/** Appends symbols considering flags */
|
|
162
|
+
append(t, e, i) {
|
|
163
|
+
if (!v(t)) throw new Error("value should be string");
|
|
164
|
+
const s = v(i) ? new f(String(i)) : i;
|
|
165
|
+
e != null && e.tail && (e._beforeTailState = this.state);
|
|
166
|
+
let a;
|
|
167
|
+
[t, a] = this.doPrepare(t, e);
|
|
168
|
+
for (let n = 0; n < t.length; ++n) {
|
|
169
|
+
const r = this._appendChar(t[n], e, s);
|
|
170
|
+
if (!r.rawInserted && !this.doSkipInvalid(t[n], e, s)) break;
|
|
171
|
+
a.aggregate(r);
|
|
172
|
+
}
|
|
173
|
+
return (this.eager === !0 || this.eager === "append") && e != null && e.input && t && a.aggregate(this._appendEager()), s != null && (a.tailShift += this.appendTail(s).tailShift), a;
|
|
174
|
+
}
|
|
175
|
+
remove(t, e) {
|
|
176
|
+
return t === void 0 && (t = 0), e === void 0 && (e = this.displayValue.length), this._value = this.displayValue.slice(0, t) + this.displayValue.slice(e), new h();
|
|
177
|
+
}
|
|
178
|
+
/** Calls function and reapplies current value */
|
|
179
|
+
withValueRefresh(t) {
|
|
180
|
+
if (this._refreshing || !this._initialized) return t();
|
|
181
|
+
this._refreshing = !0;
|
|
182
|
+
const e = this.rawInputValue, i = this.value, s = t();
|
|
183
|
+
return this.rawInputValue = e, this.value && this.value !== i && i.indexOf(this.value) === 0 && (this.append(i.slice(this.displayValue.length), {}, ""), this.doCommit()), delete this._refreshing, s;
|
|
184
|
+
}
|
|
185
|
+
runIsolated(t) {
|
|
186
|
+
if (this._isolated || !this._initialized) return t(this);
|
|
187
|
+
this._isolated = !0;
|
|
188
|
+
const e = this.state, i = t(this);
|
|
189
|
+
return this.state = e, delete this._isolated, i;
|
|
190
|
+
}
|
|
191
|
+
doSkipInvalid(t, e, i) {
|
|
192
|
+
return !!this.skipInvalid;
|
|
193
|
+
}
|
|
194
|
+
/** Prepares string before mask processing */
|
|
195
|
+
doPrepare(t, e) {
|
|
196
|
+
return e === void 0 && (e = {}), h.normalize(this.prepare ? this.prepare(t, this, e) : t);
|
|
197
|
+
}
|
|
198
|
+
/** Prepares each char before mask processing */
|
|
199
|
+
doPrepareChar(t, e) {
|
|
200
|
+
return e === void 0 && (e = {}), h.normalize(this.prepareChar ? this.prepareChar(t, this, e) : t);
|
|
201
|
+
}
|
|
202
|
+
/** Validates if value is acceptable */
|
|
203
|
+
doValidate(t) {
|
|
204
|
+
return (!this.validate || this.validate(this.value, this, t)) && (!this.parent || this.parent.doValidate(t));
|
|
205
|
+
}
|
|
206
|
+
/** Does additional processing at the end of editing */
|
|
207
|
+
doCommit() {
|
|
208
|
+
this.commit && this.commit(this.value, this);
|
|
209
|
+
}
|
|
210
|
+
splice(t, e, i, s, a) {
|
|
211
|
+
i === void 0 && (i = ""), s === void 0 && (s = o.NONE), a === void 0 && (a = {
|
|
212
|
+
input: !0
|
|
213
|
+
});
|
|
214
|
+
const n = t + e, r = this.extractTail(n), l = this.eager === !0 || this.eager === "remove";
|
|
215
|
+
let u;
|
|
216
|
+
l && (s = I(s), u = this.extractInput(0, n, {
|
|
217
|
+
raw: !0
|
|
218
|
+
}));
|
|
219
|
+
let d = t;
|
|
220
|
+
const g = new h();
|
|
221
|
+
if (s !== o.NONE && (d = this.nearestInputPos(t, e > 1 && t !== 0 && !l ? o.NONE : s), g.tailShift = d - t), g.aggregate(this.remove(d)), l && s !== o.NONE && u === this.rawInputValue)
|
|
222
|
+
if (s === o.FORCE_LEFT) {
|
|
223
|
+
let w;
|
|
224
|
+
for (; u === this.rawInputValue && (w = this.displayValue.length); )
|
|
225
|
+
g.aggregate(new h({
|
|
226
|
+
tailShift: -1
|
|
227
|
+
})).aggregate(this.remove(w - 1));
|
|
228
|
+
} else s === o.FORCE_RIGHT && r.unshift();
|
|
229
|
+
return g.aggregate(this.append(i, a, r));
|
|
230
|
+
}
|
|
231
|
+
maskEquals(t) {
|
|
232
|
+
return this.mask === t;
|
|
233
|
+
}
|
|
234
|
+
optionsIsChanged(t) {
|
|
235
|
+
return !V(this, t);
|
|
236
|
+
}
|
|
237
|
+
typedValueEquals(t) {
|
|
238
|
+
const e = this.typedValue;
|
|
239
|
+
return t === e || p.EMPTY_VALUES.includes(t) && p.EMPTY_VALUES.includes(e) || (this.format ? this.format(t, this) === this.format(this.typedValue, this) : !1);
|
|
240
|
+
}
|
|
241
|
+
pad(t) {
|
|
242
|
+
return new h();
|
|
243
|
+
}
|
|
5
244
|
}
|
|
245
|
+
p.DEFAULTS = {
|
|
246
|
+
skipInvalid: !0
|
|
247
|
+
};
|
|
248
|
+
p.EMPTY_VALUES = [void 0, null, ""];
|
|
249
|
+
_.Masked = p;
|
|
6
250
|
export {
|
|
7
|
-
|
|
251
|
+
p as default
|
|
8
252
|
};
|
|
9
253
|
//# sourceMappingURL=index94.js.map
|
package/dist/index94.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index94.js","sources":["../../../node_modules/libphonenumber-js/min/exports/getCountries.js"],"sourcesContent":["import withMetadataArgument from './withMetadataArgument.js'\r\nimport { getCountries as _getCountries } from '../../core/index.js'\r\n\r\nexport function getCountries() {\r\n\treturn withMetadataArgument(_getCountries, arguments)\r\n}"],"names":["getCountries","withMetadataArgument","_getCountries"],"mappings":";;AAGO,SAASA,IAAe;AAC9B,SAAOC,EAAqBC,GAAe,SAAS;AACrD;","x_google_ignoreList":[0]}
|
|
1
|
+
{"version":3,"file":"index94.js","sources":["../../../node_modules/imask/esm/masked/base.js"],"sourcesContent":["import ChangeDetails from '../core/change-details.js';\nimport ContinuousTailDetails from '../core/continuous-tail-details.js';\nimport { isString, DIRECTION, objectIncludes, forceDirection } from '../core/utils.js';\nimport IMask from '../core/holder.js';\n\n/** Append flags */\n\n/** Extract flags */\n\n// see https://github.com/microsoft/TypeScript/issues/6223\n\n/** Provides common masking stuff */\nclass Masked {\n /** */\n\n /** */\n\n /** Transforms value before mask processing */\n\n /** Transforms each char before mask processing */\n\n /** Validates if value is acceptable */\n\n /** Does additional processing at the end of editing */\n\n /** Format typed value to string */\n\n /** Parse string to get typed value */\n\n /** Enable characters overwriting */\n\n /** */\n\n /** */\n\n /** */\n\n /** */\n\n constructor(opts) {\n this._value = '';\n this._update({\n ...Masked.DEFAULTS,\n ...opts\n });\n this._initialized = true;\n }\n\n /** Sets and applies new options */\n updateOptions(opts) {\n if (!this.optionsIsChanged(opts)) return;\n this.withValueRefresh(this._update.bind(this, opts));\n }\n\n /** Sets new options */\n _update(opts) {\n Object.assign(this, opts);\n }\n\n /** Mask state */\n get state() {\n return {\n _value: this.value,\n _rawInputValue: this.rawInputValue\n };\n }\n set state(state) {\n this._value = state._value;\n }\n\n /** Resets value */\n reset() {\n this._value = '';\n }\n get value() {\n return this._value;\n }\n set value(value) {\n this.resolve(value, {\n input: true\n });\n }\n\n /** Resolve new value */\n resolve(value, flags) {\n if (flags === void 0) {\n flags = {\n input: true\n };\n }\n this.reset();\n this.append(value, flags, '');\n this.doCommit();\n }\n get unmaskedValue() {\n return this.value;\n }\n set unmaskedValue(value) {\n this.resolve(value, {});\n }\n get typedValue() {\n return this.parse ? this.parse(this.value, this) : this.unmaskedValue;\n }\n set typedValue(value) {\n if (this.format) {\n this.value = this.format(value, this);\n } else {\n this.unmaskedValue = String(value);\n }\n }\n\n /** Value that includes raw user input */\n get rawInputValue() {\n return this.extractInput(0, this.displayValue.length, {\n raw: true\n });\n }\n set rawInputValue(value) {\n this.resolve(value, {\n raw: true\n });\n }\n get displayValue() {\n return this.value;\n }\n get isComplete() {\n return true;\n }\n get isFilled() {\n return this.isComplete;\n }\n\n /** Finds nearest input position in direction */\n nearestInputPos(cursorPos, direction) {\n return cursorPos;\n }\n totalInputPositions(fromPos, toPos) {\n if (fromPos === void 0) {\n fromPos = 0;\n }\n if (toPos === void 0) {\n toPos = this.displayValue.length;\n }\n return Math.min(this.displayValue.length, toPos - fromPos);\n }\n\n /** Extracts value in range considering flags */\n extractInput(fromPos, toPos, flags) {\n if (fromPos === void 0) {\n fromPos = 0;\n }\n if (toPos === void 0) {\n toPos = this.displayValue.length;\n }\n return this.displayValue.slice(fromPos, toPos);\n }\n\n /** Extracts tail in range */\n extractTail(fromPos, toPos) {\n if (fromPos === void 0) {\n fromPos = 0;\n }\n if (toPos === void 0) {\n toPos = this.displayValue.length;\n }\n return new ContinuousTailDetails(this.extractInput(fromPos, toPos), fromPos);\n }\n\n /** Appends tail */\n appendTail(tail) {\n if (isString(tail)) tail = new ContinuousTailDetails(String(tail));\n return tail.appendTo(this);\n }\n\n /** Appends char */\n _appendCharRaw(ch, flags) {\n if (!ch) return new ChangeDetails();\n this._value += ch;\n return new ChangeDetails({\n inserted: ch,\n rawInserted: ch\n });\n }\n\n /** Appends char */\n _appendChar(ch, flags, checkTail) {\n if (flags === void 0) {\n flags = {};\n }\n const consistentState = this.state;\n let details;\n [ch, details] = this.doPrepareChar(ch, flags);\n if (ch) {\n details = details.aggregate(this._appendCharRaw(ch, flags));\n\n // TODO handle `skip`?\n\n // try `autofix` lookahead\n if (!details.rawInserted && this.autofix === 'pad') {\n const noFixState = this.state;\n this.state = consistentState;\n let fixDetails = this.pad(flags);\n const chDetails = this._appendCharRaw(ch, flags);\n fixDetails = fixDetails.aggregate(chDetails);\n\n // if fix was applied or\n // if details are equal use skip restoring state optimization\n if (chDetails.rawInserted || fixDetails.equals(details)) {\n details = fixDetails;\n } else {\n this.state = noFixState;\n }\n }\n }\n if (details.inserted) {\n let consistentTail;\n let appended = this.doValidate(flags) !== false;\n if (appended && checkTail != null) {\n // validation ok, check tail\n const beforeTailState = this.state;\n if (this.overwrite === true) {\n consistentTail = checkTail.state;\n for (let i = 0; i < details.rawInserted.length; ++i) {\n checkTail.unshift(this.displayValue.length - details.tailShift);\n }\n }\n let tailDetails = this.appendTail(checkTail);\n appended = tailDetails.rawInserted.length === checkTail.toString().length;\n\n // not ok, try shift\n if (!(appended && tailDetails.inserted) && this.overwrite === 'shift') {\n this.state = beforeTailState;\n consistentTail = checkTail.state;\n for (let i = 0; i < details.rawInserted.length; ++i) {\n checkTail.shift();\n }\n tailDetails = this.appendTail(checkTail);\n appended = tailDetails.rawInserted.length === checkTail.toString().length;\n }\n\n // if ok, rollback state after tail\n if (appended && tailDetails.inserted) this.state = beforeTailState;\n }\n\n // revert all if something went wrong\n if (!appended) {\n details = new ChangeDetails();\n this.state = consistentState;\n if (checkTail && consistentTail) checkTail.state = consistentTail;\n }\n }\n return details;\n }\n\n /** Appends optional placeholder at the end */\n _appendPlaceholder() {\n return new ChangeDetails();\n }\n\n /** Appends optional eager placeholder at the end */\n _appendEager() {\n return new ChangeDetails();\n }\n\n /** Appends symbols considering flags */\n append(str, flags, tail) {\n if (!isString(str)) throw new Error('value should be string');\n const checkTail = isString(tail) ? new ContinuousTailDetails(String(tail)) : tail;\n if (flags != null && flags.tail) flags._beforeTailState = this.state;\n let details;\n [str, details] = this.doPrepare(str, flags);\n for (let ci = 0; ci < str.length; ++ci) {\n const d = this._appendChar(str[ci], flags, checkTail);\n if (!d.rawInserted && !this.doSkipInvalid(str[ci], flags, checkTail)) break;\n details.aggregate(d);\n }\n if ((this.eager === true || this.eager === 'append') && flags != null && flags.input && str) {\n details.aggregate(this._appendEager());\n }\n\n // append tail but aggregate only tailShift\n if (checkTail != null) {\n details.tailShift += this.appendTail(checkTail).tailShift;\n // TODO it's a good idea to clear state after appending ends\n // but it causes bugs when one append calls another (when dynamic dispatch set rawInputValue)\n // this._resetBeforeTailState();\n }\n return details;\n }\n remove(fromPos, toPos) {\n if (fromPos === void 0) {\n fromPos = 0;\n }\n if (toPos === void 0) {\n toPos = this.displayValue.length;\n }\n this._value = this.displayValue.slice(0, fromPos) + this.displayValue.slice(toPos);\n return new ChangeDetails();\n }\n\n /** Calls function and reapplies current value */\n withValueRefresh(fn) {\n if (this._refreshing || !this._initialized) return fn();\n this._refreshing = true;\n const rawInput = this.rawInputValue;\n const value = this.value;\n const ret = fn();\n this.rawInputValue = rawInput;\n // append lost trailing chars at the end\n if (this.value && this.value !== value && value.indexOf(this.value) === 0) {\n this.append(value.slice(this.displayValue.length), {}, '');\n this.doCommit();\n }\n delete this._refreshing;\n return ret;\n }\n runIsolated(fn) {\n if (this._isolated || !this._initialized) return fn(this);\n this._isolated = true;\n const state = this.state;\n const ret = fn(this);\n this.state = state;\n delete this._isolated;\n return ret;\n }\n doSkipInvalid(ch, flags, checkTail) {\n return Boolean(this.skipInvalid);\n }\n\n /** Prepares string before mask processing */\n doPrepare(str, flags) {\n if (flags === void 0) {\n flags = {};\n }\n return ChangeDetails.normalize(this.prepare ? this.prepare(str, this, flags) : str);\n }\n\n /** Prepares each char before mask processing */\n doPrepareChar(str, flags) {\n if (flags === void 0) {\n flags = {};\n }\n return ChangeDetails.normalize(this.prepareChar ? this.prepareChar(str, this, flags) : str);\n }\n\n /** Validates if value is acceptable */\n doValidate(flags) {\n return (!this.validate || this.validate(this.value, this, flags)) && (!this.parent || this.parent.doValidate(flags));\n }\n\n /** Does additional processing at the end of editing */\n doCommit() {\n if (this.commit) this.commit(this.value, this);\n }\n splice(start, deleteCount, inserted, removeDirection, flags) {\n if (inserted === void 0) {\n inserted = '';\n }\n if (removeDirection === void 0) {\n removeDirection = DIRECTION.NONE;\n }\n if (flags === void 0) {\n flags = {\n input: true\n };\n }\n const tailPos = start + deleteCount;\n const tail = this.extractTail(tailPos);\n const eagerRemove = this.eager === true || this.eager === 'remove';\n let oldRawValue;\n if (eagerRemove) {\n removeDirection = forceDirection(removeDirection);\n oldRawValue = this.extractInput(0, tailPos, {\n raw: true\n });\n }\n let startChangePos = start;\n const details = new ChangeDetails();\n\n // if it is just deletion without insertion\n if (removeDirection !== DIRECTION.NONE) {\n startChangePos = this.nearestInputPos(start, deleteCount > 1 && start !== 0 && !eagerRemove ? DIRECTION.NONE : removeDirection);\n\n // adjust tailShift if start was aligned\n details.tailShift = startChangePos - start;\n }\n details.aggregate(this.remove(startChangePos));\n if (eagerRemove && removeDirection !== DIRECTION.NONE && oldRawValue === this.rawInputValue) {\n if (removeDirection === DIRECTION.FORCE_LEFT) {\n let valLength;\n while (oldRawValue === this.rawInputValue && (valLength = this.displayValue.length)) {\n details.aggregate(new ChangeDetails({\n tailShift: -1\n })).aggregate(this.remove(valLength - 1));\n }\n } else if (removeDirection === DIRECTION.FORCE_RIGHT) {\n tail.unshift();\n }\n }\n return details.aggregate(this.append(inserted, flags, tail));\n }\n maskEquals(mask) {\n return this.mask === mask;\n }\n optionsIsChanged(opts) {\n return !objectIncludes(this, opts);\n }\n typedValueEquals(value) {\n const tval = this.typedValue;\n return value === tval || Masked.EMPTY_VALUES.includes(value) && Masked.EMPTY_VALUES.includes(tval) || (this.format ? this.format(value, this) === this.format(this.typedValue, this) : false);\n }\n pad(flags) {\n return new ChangeDetails();\n }\n}\nMasked.DEFAULTS = {\n skipInvalid: true\n};\nMasked.EMPTY_VALUES = [undefined, null, ''];\nIMask.Masked = Masked;\n\nexport { Masked as default };\n"],"names":["Masked","opts","state","value","flags","cursorPos","direction","fromPos","toPos","ContinuousTailDetails","tail","isString","ch","ChangeDetails","checkTail","consistentState","details","noFixState","fixDetails","chDetails","consistentTail","appended","beforeTailState","i","tailDetails","str","ci","d","fn","rawInput","ret","start","deleteCount","inserted","removeDirection","DIRECTION","tailPos","eagerRemove","oldRawValue","forceDirection","startChangePos","valLength","mask","objectIncludes","tval","IMask"],"mappings":";;;;AAYA,MAAMA,EAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EA2BX,YAAYC,GAAM;AAChB,SAAK,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